@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
package/dist/manifest.js CHANGED
@@ -1,27 +1,25 @@
1
1
  /**
2
- * The component manifest, contract v1 (TAG-201): the declarative description of one component that the
3
- * SDK extracts (TAG-202), the builder stores with each version, the API serves and the runtime
2
+ * The component manifest, contract v1: the declarative description of one component that the
3
+ * SDK extracts, the builder stores with each version, the API serves and the runtime
4
4
  * reads to register the custom element, coerce attributes, dispatch events and expose slots.
5
5
  *
6
6
  * The manifest is data only: nothing in it is code, an expression or a template, every
7
7
  * collection is bounded, and unknown keys are rejected at every level. Field names are camelCase
8
8
  * (it is authored in TypeScript and mirrors the DOM); anything that travels in the data API is
9
- * snake_case (see `data-api.ts`). TAG-207 moved the contract version and the `__proto__` guard to
10
- * `contract-version.ts` and `proto-guard.ts` (both Zod-free) and checks the version first.
11
- * TAG-212 (contract 1.1) added `data.personal` and `data.privacyPolicyUrl`, the declaration that
12
- * makes the SDK require the visitor's consent on every submit. TAG-211 (contract 1.2) added
13
- * `locales`, the languages the component ships messages for and the one it falls back to. TAG-213
14
- * (contract 1.3) added `assets`, the images and fonts the builder found imported, by content hash.
15
- * TAG-314 (contract 1.4) added `formAssociated` (the element takes part in the host page's
16
- * `<form>` through `ElementInternals`) and `delegatesFocus` (the shadow root delegates focus).
17
- * TAG-210 (contract 1.5) added `libraries`, the workspace-scoped packages and semver ranges a
18
- * component expects; resolution and ownership stay with the API/builder, which has workspace context.
9
+ * snake_case (see `data-api.ts`). The contract version and the `__proto__` guard live in
10
+ * `contract-version.ts` and `proto-guard.ts` (both Zod-free), and the version is checked first.
11
+ * The manifest also declares `locales` (the languages the
12
+ * component ships messages for and the one it falls back to), `assets` (the images and fonts the
13
+ * builder found imported, by content hash), `formAssociated` (the element takes part in the host
14
+ * page's `<form>` through `ElementInternals`), `delegatesFocus` (the shadow root delegates focus)
15
+ * and `libraries` (the workspace-scoped packages and semver ranges a
16
+ * component expects); resolution and ownership stay with the API/builder, which has workspace context.
19
17
  */
20
18
  import * as z from "zod";
21
19
  import { boundedRecord, cssValueSchema, memberDescriptionSchema, plainText, uniqueArray, } from "./bounded.js";
22
20
  import { ASSET_LIMITS, LOCALE_LIMITS, MANIFEST_LIMITS } from "./limits.js";
23
21
  import { ASSET_HASH_PATTERN, ASSET_TYPES } from "./assets.js";
24
- import { cssVarNameSchema, memberNameSchema, propNameSchema, snakeNameSchema, componentNameSchema, } from "./names.js";
22
+ import { cssVarNameSchema, memberNameSchema, propNameSchema, fieldNameSchema, snakeNameSchema, componentNameSchema, } from "./names.js";
25
23
  import { tagNameSchema } from "./tag-name.js";
26
24
  import { CONTRACT_VERSION_POLICY, classifyContractVersion, contractVersionMessage, contractVersionPattern, } from "./contract-version.js";
27
25
  import { boundedPath, boundedSegment } from "./bounded-path.js";
@@ -31,7 +29,6 @@ import { LOCALE_ATTRIBUTE, LOCALE_TAG_MESSAGE, LOCALE_TAG_PATTERN } from "./loca
31
29
  import { CSS_VALUE_PATTERN, FONT_FAMILY_PATTERN } from "./css-value.js";
32
30
  import { propDeclarationSchema } from "./props.js";
33
31
  import { componentLibrariesSchema } from "./libraries.js";
34
- import { DEFAULT_URL_PROTOCOLS } from "./url-value.js";
35
32
  import { arrayValueSchema, booleanValueSchema, enumValueTypeSchema, numberValueSchema, scalarValueSchema, stringValueSchema, valueSchema, } from "./value-schema.js";
36
33
  /** Browser capabilities a component may declare; anything else is impossible to request. */
37
34
  export const PERMISSION_APIS = Object.freeze([
@@ -93,7 +90,7 @@ const collectionFieldSchema = z
93
90
  arrayValueSchema(scalarValueSchema),
94
91
  ])
95
92
  .meta({ id: "CollectionField" });
96
- /** One declared collection of `data.collections` (TAG-703 reuses it in the site manifest). */
93
+ /** One declared collection of `data.collections` (the site manifest reuses it). */
97
94
  export const collectionSchema = z
98
95
  .strictObject({
99
96
  description: memberDescriptionSchema,
@@ -110,31 +107,29 @@ export const collectionSchema = z
110
107
  error: "required must only name declared fields",
111
108
  })
112
109
  .meta({ id: "CollectionDeclaration" });
113
- /** A track prop: number, boolean or enum. Free text is impossible, so no PII can ride along. */
110
+ /**
111
+ * A track parameter hint: the type the component expects (TypeScript hint for `track` and the
112
+ * documentation of the event). It is never a filter: whatever the component passes is sent, within
113
+ * the technical limits of `event-params.ts`.
114
+ */
114
115
  const trackPropSchema = z
115
- .discriminatedUnion("type", [numberValueSchema, booleanValueSchema, enumValueTypeSchema])
116
+ .discriminatedUnion("type", [
117
+ stringValueSchema,
118
+ numberValueSchema,
119
+ booleanValueSchema,
120
+ enumValueTypeSchema,
121
+ ])
116
122
  .meta({ id: "TrackProp" });
117
123
  const trackEventSchema = z
118
124
  .strictObject({
119
125
  description: memberDescriptionSchema,
120
- props: boundedRecord(snakeNameSchema, trackPropSchema, MANIFEST_LIMITS.maxTrackProps, "track props").optional(),
126
+ props: boundedRecord(fieldNameSchema, trackPropSchema, MANIFEST_LIMITS.maxTrackProps, "track props").optional(),
121
127
  })
122
128
  .meta({ id: "TrackEventDeclaration" });
123
129
  const dataSchema = z
124
130
  .strictObject({
125
131
  collections: boundedRecord(memberNameSchema, collectionSchema, MANIFEST_LIMITS.maxCollections, "collections").optional(),
126
132
  track: boundedRecord(memberNameSchema, trackEventSchema, MANIFEST_LIMITS.maxTrackEvents, "track events").optional(),
127
- personal: z.boolean().optional().meta({
128
- description: "True when the collections hold personal data (TAG-212): every submit then carries the visitor's consent. Defaults to false.",
129
- }),
130
- privacyPolicyUrl: propNameSchema.optional().meta({
131
- description: 'Name of the prop of type "url" that links the privacy policy, set per site (TAG-212). Required when personal is true.',
132
- }),
133
- })
134
- .refine((data) => data.personal !== true || data.privacyPolicyUrl !== undefined, {
135
- // zod-only: personal-requires-privacy-policy
136
- error: 'a component with personal data must declare privacyPolicyUrl, the name of its "url" prop that links the privacy policy',
137
- path: ["privacyPolicyUrl"],
138
133
  })
139
134
  .meta({ id: "DataDeclaration" });
140
135
  const pixelsSchema = z.int().min(0).max(MANIFEST_LIMITS.sizeMaxPixels);
@@ -164,7 +159,7 @@ const localeTagSchema = z
164
159
  })
165
160
  .regex(LOCALE_TAG_PATTERN, { error: LOCALE_TAG_MESSAGE });
166
161
  /**
167
- * The languages a component ships messages for (TAG-211, contract 1.2). The SDK's `useLocale` picks
162
+ * The languages a component ships messages for (contract 1.2). The SDK's `useLocale` picks
168
163
  * one of `supported` from the element's `locale` attribute, the nearest `lang`, the browser's
169
164
  * language and finally `default`; the builder extracts both from the author's message catalogs.
170
165
  */
@@ -188,8 +183,8 @@ const assetHashSchema = z.string().max(64).regex(ASSET_HASH_PATTERN, {
188
183
  error: "an asset key must be the SHA-256 of the file's bytes, in 64 lowercase hex digits",
189
184
  });
190
185
  /**
191
- * One asset of `assets` (TAG-213, contract 1.3), keyed by its hash: its type and size. The builder
192
- * (TAG-410) writes it; the author never does. Served at `/a/<hash>.<extension of type>`.
186
+ * One asset of `assets` (contract 1.3), keyed by its hash: its type and size. The builder
187
+ * writes it; the author never does. Served at `/a/<hash>.<extension of type>`.
193
188
  */
194
189
  const assetSchema = z
195
190
  .strictObject({
@@ -205,7 +200,7 @@ const assetSchema = z
205
200
  .meta({ description: "Size of the file in bytes." }),
206
201
  })
207
202
  .meta({ id: "AssetDeclaration" });
208
- /** Semantic versions of the current major up to the newest minor this package knows (TAG-207). */
203
+ /** Semantic versions of the current major up to the newest minor this package knows. */
209
204
  const CONTRACT_VERSION_PATTERN = contractVersionPattern();
210
205
  /**
211
206
  * The component manifest schema (contract v1).
@@ -215,7 +210,7 @@ const CONTRACT_VERSION_PATTERN = contractVersionPattern();
215
210
  * not fit its prop). Side effects: none.
216
211
  */
217
212
  /**
218
- * The share of `interaction` and `custom` events the browser sends (TAG-819, contract 1.10; the description was reworded in 1.11, TAG-824);
213
+ * The share of `track` events the browser sends (contract 1.10; the description was reworded in 1.11);
219
214
  * `render` and `error` are never sampled. The edge weights each stored event by
220
215
  * `1 / eventSampleRate` from the stored manifest, so the metrics stay estimates of the real total.
221
216
  */
@@ -224,7 +219,7 @@ export const eventSampleRateSchema = z
224
219
  .min(EVENT_SAMPLE_RATE_MIN)
225
220
  .max(1)
226
221
  .meta({
227
- description: `Share of interaction and custom events the browser sends, from ${String(EVENT_SAMPLE_RATE_MIN)} to 1 (default 1: all). Render and error events are never sampled. Each stored event is weighted by 1 divided by this rate, so totals stay estimates of the real count.`,
222
+ description: `Share of the track events the browser sends, from ${String(EVENT_SAMPLE_RATE_MIN)} to 1 (default 1: all). Render and error events are never sampled. Each stored event is weighted by 1 divided by this rate, so totals stay estimates of the real count.`,
228
223
  });
229
224
  export const componentManifestSchema = z
230
225
  .strictObject({
@@ -249,30 +244,15 @@ export const componentManifestSchema = z
249
244
  locales: localesSchema.optional(),
250
245
  assets: boundedRecord(assetHashSchema, assetSchema, ASSET_LIMITS.maxAssets, "assets").optional(),
251
246
  formAssociated: z.boolean().optional().meta({
252
- 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.",
247
+ description: "True for a form field component: 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.",
253
248
  }),
254
249
  eventSampleRate: eventSampleRateSchema.optional(),
255
250
  delegatesFocus: z.boolean().optional().meta({
256
- 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.",
251
+ description: "Whether the shadow root delegates focus: 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.",
257
252
  }),
258
253
  })
259
- // The policy link must be able to be an https page (security review of TAG-212): a prop limited
260
- // to http or mailto could never carry one. No `protocols` means the default, https only.
261
- .refine(
262
- // zod-only: privacy-policy-https-url-prop
263
- ({ data, props }) => {
264
- if (data?.privacyPolicyUrl === undefined)
265
- return true;
266
- if (props === undefined || !Object.hasOwn(props, data.privacyPolicyUrl))
267
- return false;
268
- const policy = props[data.privacyPolicyUrl];
269
- return (policy?.type === "url" && (policy.protocols ?? DEFAULT_URL_PROTOCOLS).includes("https"));
270
- }, {
271
- error: 'privacyPolicyUrl must name a declared prop of type "url" whose protocols include https',
272
- path: ["data", "privacyPolicyUrl"],
273
- })
274
- // The `locale` attribute belongs to the SDK's language choice once `locales` is declared
275
- // (TAG-211); a prop of that name would read the same attribute with another meaning. Only
254
+ // The `locale` attribute belongs to the SDK's language choice once `locales` is declared;
255
+ // a prop of that name would read the same attribute with another meaning. Only
276
256
  // manifests declaring `locales` (new in 1.2) are refused, so no older manifest becomes invalid.
277
257
  .refine(
278
258
  // zod-only: locales-no-locale-prop
@@ -288,8 +268,8 @@ export const componentManifestSchema = z
288
268
  const MAX_KEYS_IN_MESSAGE = 10;
289
269
  /**
290
270
  * The message of one Zod issue for a person or an agent: a bad record key shows the key's own
291
- * problems, and unknown keys (which come from the input) are quoted bounded (TAG-220). Shared
292
- * with the source package's metadata files (TAG-407).
271
+ * problems, and unknown keys (which come from the input) are quoted bounded. Shared
272
+ * with the source package's metadata files.
293
273
  *
294
274
  * Inputs: a Zod issue. Output: its message. Errors: none. Side effects: none.
295
275
  */
@@ -303,7 +283,7 @@ export function issueMessage(issue) {
303
283
  ? `${message} (the page receives it as "<tag>:<name>", so write the name without the tag or a colon)`
304
284
  : message;
305
285
  }
306
- // Zod quotes every unknown key in full; keys come from the input, so bound them (TAG-220).
286
+ // Zod quotes every unknown key in full; keys come from the input, so bound them.
307
287
  if (issue.code === "unrecognized_keys") {
308
288
  const shown = issue.keys.slice(0, MAX_KEYS_IN_MESSAGE).map((key) => `"${boundedSegment(key)}"`);
309
289
  const more = issue.keys.length - shown.length;
@@ -313,7 +293,7 @@ export function issueMessage(issue) {
313
293
  return issue.message;
314
294
  }
315
295
  /**
316
- * How a missing required `<map>.<name>.<field>` is fixed (TAG-206), keyed by `<map>.<field>`;
296
+ * How a missing required `<map>.<name>.<field>` is fixed, keyed by `<map>.<field>`;
317
297
  * `name` is already bounded.
318
298
  */
319
299
  const MISSING_MEMBER_FIELD_HINTS = {
@@ -322,7 +302,7 @@ const MISSING_MEMBER_FIELD_HINTS = {
322
302
  };
323
303
  /**
324
304
  * Per-parse error map: a missing required field gets a message that names it and, for an event's
325
- * `detail` and a CSS variable's `default`, says what to write (TAG-206). Zod's own message
305
+ * `detail` and a CSS variable's `default`, says what to write. Zod's own message
326
306
  * ("Invalid input: expected object, received undefined") does neither. Returns `undefined` for
327
307
  * every other issue, so Zod and schema-level messages stay as they are.
328
308
  */
@@ -346,7 +326,7 @@ const manifestErrorMap = (issue) => {
346
326
  };
347
327
  function toIssues(error) {
348
328
  return error.issues.map((issue) => ({
349
- // Paths quote keys of the input: bounded like a __proto__ refusal (TAG-220).
329
+ // Paths quote keys of the input: bounded like a __proto__ refusal.
350
330
  path: boundedPath(issue.path.map(String)),
351
331
  message: issueMessage(issue),
352
332
  }));
@@ -354,7 +334,7 @@ function toIssues(error) {
354
334
  /**
355
335
  * The `contractVersion` issue of a decoded manifest, if its version is not a known minor of the
356
336
  * current major. Checked before the schema so the message says what to do (update the toolchain,
357
- * migrate, declare the version) instead of quoting a pattern (TAG-207).
337
+ * migrate, declare the version) instead of quoting a pattern.
358
338
  */
359
339
  function contractVersionIssue(input) {
360
340
  if (typeof input !== "object" || input === null || Array.isArray(input))
@@ -1 +1 @@
1
- {"version":3,"file":"manifest.js","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,O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KAAK,SAAS;QAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,YAAY,CAAC,EAAE,CAAC;IAC7E,MAAM,MAAM,GAAG,uBAAuB,CAAC,SAAS,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,gBAAgB,EAAE,CAAC,CAAC;IACrF,OAAO,MAAM,CAAC,OAAO;QACnB,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,CAAC,IAAI,EAAE;QACrC,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;AACpD,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAY;IAC5C,IAAI,IAAI,CAAC,MAAM,GAAG,eAAe,CAAC,aAAa,EAAE,CAAC;QAChD,OAAO;YACL,EAAE,EAAE,KAAK;YACT,MAAM,EAAE;gBACN;oBACE,IAAI,EAAE,EAAE;oBACR,OAAO,EAAE,iCAAiC,MAAM,CAAC,eAAe,CAAC,aAAa,CAAC,aAAa;iBAC7F;aACF;SACF,CAAC;IACJ,CAAC;IACD,IAAI,OAAgB,CAAC;IACrB,IAAI,CAAC;QACH,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,4BAA4B,EAAE,CAAC,EAAE,CAAC;IACtF,CAAC;IACD,OAAO,aAAa,CAAC,OAAO,CAAC,CAAC;AAChC,CAAC"}
@@ -1,15 +1,14 @@
1
1
  /**
2
- * The metering contract of the loader hit point (TAG-801): the one place that names what the edge
2
+ * The metering contract of the loader hit point: the one place that names what the edge
3
3
  * writes per loader delivery and what counts toward a plan's usage, shared by the writer
4
- * (apps/edge, domain/loader-hit.ts) and the readers (the API's usage reader; TAG-712 and TAG-1603
5
- * build the quotas on it).
4
+ * (apps/edge, domain/loader-hit.ts) and the readers (the API's usage reader, which builds the quotas on it).
6
5
  *
7
- * Point layout of the `loader_hits` dataset (TAG-1823: a request writes a DELIVERY point, with no ASN and no
6
+ * Point layout of the `loader_hits` dataset (a request writes a DELIVERY point, with no ASN and no
8
7
  * visitor identifier, and a separate NETWORK point, with the ASN and `doubles[0] = 0`; `blobs[3]` is reserved and
9
- * always empty, it held the visitor hash until TAG-1823; only the delivery count under a honored `Sec-GPC: 1`), append-only (a reader of an older layout keeps
8
+ * always empty, it held the visitor hash; only the delivery count under a honored `Sec-GPC: 1`), append-only (a reader of an older layout keeps
10
9
  * working): `indexes[0]` site key; `blobs[0]` hostname; `blobs[1]` allowance; `blobs[2]` traffic
11
10
  * class; `doubles[0]` 1 (a delivery; sampling weights come from `_sample_interval`);
12
- * `doubles[1]` the number of components the delivered manifest offered; since TAG-1730 also
11
+ * `doubles[1]` the number of components the delivered manifest offered; also
13
12
  * `blobs[3]` reserved (always empty) and `blobs[4]` the ASN of a network point (the anomaly guard, `usage-guard.ts`).
14
13
  *
15
14
  * Privacy (golden rule 6): none of it identifies a visitor. The traffic class is derived from the
@@ -17,7 +16,7 @@
17
16
  */
18
17
  /**
19
18
  * The header the API sets when it reads a site's loader itself (`?preload=true` needs the runtime
20
- * version the loader names, TAG-335). The edge does not record a hit point for such a request: it
19
+ * version the loader names). The edge does not record a hit point for such a request: it
21
20
  * is not a page loading the snippet, and counting it would make the installation check say
22
21
  * "detected" before any page has the snippet. No secret guards it on purpose: sending it can only
23
22
  * LOWER the counts of the caller's own non-visitor requests (a real visitor never sends it, and
@@ -46,7 +45,7 @@ export declare function countsTowardUsage(allowance: HostAllowance, traffic: Tra
46
45
  */
47
46
  export declare function usageMonthStart(date: Date): Date;
48
47
  /**
49
- * The kinds of event the browser can report to `POST /e/<siteKey>` (TAG-816), the layout of the
48
+ * The kinds of event the browser can report to `POST /e/<siteKey>`, the layout of the
50
49
  * `component_events` dataset (append-only): `indexes[0]` site key; `blobs[0]` kind; `blobs[1]` the
51
50
  * component tag; `blobs[2]` the published version hash; `blobs[3]` the hostname of the page's
52
51
  * `Origin`; `blobs[4]` traffic class; `blobs[5]` the event name (`""` for `render`);
@@ -54,12 +53,25 @@ export declare function usageMonthStart(date: Date): Date;
54
53
  * `blobs[7]` a coarse device class (`DEVICE_CLASSES`, derived from the user agent on the edge);
55
54
  * `doubles[0]` 1 (one point per event; sampling weights come from `_sample_interval`). No IP, no
56
55
  * visitor identifier, no city or region, no path, no user agent. `render` is the aggregate count; the rest are
57
- * interactions and are not stored when the visitor sends a privacy signal the site honors.
56
+ * `track` and error events and are not stored when the visitor sends a privacy signal the site honors.
58
57
  */
59
- export declare const COMPONENT_EVENT_KINDS: readonly ["render", "interaction", "custom", "error"];
58
+ export declare const COMPONENT_EVENT_KINDS: readonly ["render", "custom", "error"];
60
59
  export type ComponentEventKind = (typeof COMPONENT_EVENT_KINDS)[number];
61
60
  /**
62
- * The server-render points of `GET /r/<siteKey>/<tag>` (spike, ADR 0066, no ticket), written by the
61
+ * The kind of a PARAMETER point: next to the event point of a
62
+ * `custom` event (a `track` call), the edge writes one point per free parameter the event carried,
63
+ * into the same `component_events` dataset, append-only: `indexes[0]` site key; `blobs[0]` this kind;
64
+ * `blobs[1]` to `blobs[7]` as the event point (the tag, the version hash, the hostname, the traffic
65
+ * class, the event name, the country, the device class); `blobs[8]` the parameter name;
66
+ * `blobs[9]` the value (at most `EVENT_PARAM_LIMITS.valueMaxLength` characters, as sent); `blobs[10]` the kind of the
67
+ * event it belongs to (always `custom`); `doubles[0]` the weight of the event (`1 / rate`).
68
+ * It is NOT in `COMPONENT_EVENT_KINDS`: `POST /e/` never takes it from a body, and the event counts of
69
+ * the metrics (which name their kinds) never include it; only the parameter reader asks for it. It
70
+ * follows its event: not stored when the visitor sends a privacy signal the site honors.
71
+ */
72
+ export declare const EVENT_PARAM_POINT_KIND = "param";
73
+ /**
74
+ * The server-render points of `GET /r/<siteKey>/<tag>`, written by the
63
75
  * edge itself into the same `component_events` dataset with the same layout: `indexes[0]` site key;
64
76
  * `blobs[0]` the kind; `blobs[1]` the component tag; `blobs[2]` the version hash; every other blob
65
77
  * `""` (no hostname, traffic class, name, country nor device: the caller is the customer's server,
@@ -74,32 +86,32 @@ export type ComponentEventKind = (typeof COMPONENT_EVENT_KINDS)[number];
74
86
  export declare const SSR_POINT_KINDS: readonly ["ssr_render", "ssr_hit"];
75
87
  export type SsrPointKind = (typeof SSR_POINT_KINDS)[number];
76
88
  /**
77
- * The kind of a render that gave no fragment (TAG-635): written by the edge with the same layout,
89
+ * The kind of a render that gave no fragment: written by the edge with the same layout,
78
90
  * for staff queries and alerts. Not in `SSR_POINT_KINDS` on purpose: that list is what the API's
79
91
  * usage reader asks for, and a failed render is never counted or billed.
80
92
  */
81
93
  export declare const SSR_FAILED_POINT_KIND = "ssr_failed";
82
94
  /**
83
- * The coarse device class of an event (TAG-816), derived from the `User-Agent` on the edge, which
95
+ * The coarse device class of an event, derived from the `User-Agent` on the edge, which
84
96
  * keeps only the class: `mobile` (a phone), `tablet`, `desktop`, or `other` (a bot, a library, no
85
97
  * header, anything not recognized). Four values, so the dataset's cardinality stays four.
86
98
  */
87
99
  export declare const DEVICE_CLASSES: readonly ["mobile", "desktop", "tablet", "other"];
88
100
  export type DeviceClass = (typeof DEVICE_CLASSES)[number];
89
101
  /**
90
- * The smallest `eventSampleRate` a manifest may declare (TAG-819): one event in a thousand, so the
102
+ * The smallest `eventSampleRate` a manifest may declare: one event in a thousand, so the
91
103
  * weight of a sent event (`1 / rate`) never passes 1000 and one forged or lucky event cannot stand
92
104
  * for an unbounded count.
93
105
  */
94
106
  export declare const EVENT_SAMPLE_RATE_MIN = 0.001;
95
107
  /**
96
- * The kinds the browser never samples (TAG-819): the render count, the `error` reports of the
97
- * runtime (rare, and a sample would hide a failing release). Only `interaction` and `custom` follow `eventSampleRate`.
108
+ * The kinds the browser never samples: the render count, the `error` reports of the
109
+ * runtime (rare, and a sample would hide a failing release). Only `custom` follows `eventSampleRate`.
98
110
  */
99
111
  export declare const UNSAMPLED_EVENT_KINDS: readonly ComponentEventKind[];
100
112
  /**
101
- * Whether the browser sends one event of this kind, given the component's `eventSampleRate`
102
- * (TAG-819). A kind that is never sampled, an undeclared rate and a rate outside its bounds always
113
+ * Whether the browser sends one event of this kind, given the component's `eventSampleRate`.
114
+ * A kind that is never sampled, an undeclared rate and a rate outside its bounds always
103
115
  * send (a bad value must never silently drop events). Otherwise the event is sent with
104
116
  * probability `rate`.
105
117
  * Inputs: the kind, the declared rate (or `undefined`) and a draw in `[0, 1)` (`Math.random()` in
@@ -107,7 +119,7 @@ export declare const UNSAMPLED_EVENT_KINDS: readonly ComponentEventKind[];
107
119
  */
108
120
  export declare function shouldSendEvent(kind: ComponentEventKind, rate: number | undefined, draw: number): boolean;
109
121
  /**
110
- * How many real events one stored event stands for (TAG-819): `1 / rate` for a sampled kind, and 1
122
+ * How many real events one stored event stands for: `1 / rate` for a sampled kind, and 1
111
123
  * for a kind that is never sampled or a rate that is not usable. The edge writes it as
112
124
  * `doubles[0]` from the rate of the STORED manifest, never from the request, so a visitor cannot
113
125
  * claim a weight; summing the weights over the sent events estimates the real total.
@@ -116,8 +128,8 @@ export declare function shouldSendEvent(kind: ComponentEventKind, rate: number |
116
128
  */
117
129
  export declare function eventWeight(kind: ComponentEventKind, rate: number | undefined): number;
118
130
  /**
119
- * The most beacons of one kind (`interaction` or `custom`) a component sends in one page view
120
- * (TAG-820), counted in the SDK's data transport: a component that emits on every keystroke or
131
+ * The most `track` beacons a component sends in one page view,
132
+ * counted in the SDK's data transport: a component that tracks on every keystroke or
121
133
  * slider move cannot flood the visitor's network or the dataset. Sampling (`shouldSendEvent`)
122
134
  * applies on top; the edge's flood keys stay the technical protection.
123
135
  */
@@ -1 +1 @@
1
- {"version":3,"file":"metering.d.ts","sourceRoot":"","sources":["../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ACH,eAAO,MAAM,qBAAqB,eAAe,CAAC;AAElD;;;;GAIG;AACH,eAAO,MAAM,cAAc,mDAAoD,CAAC;AAChF,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,QAAQ,CAAC;AAE3C;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,SAAS,kBAAkB,EAAwB,CAAC;AAOxF;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,kBAAkB,EACxB,IAAI,EAAE,MAAM,GAAG,SAAS,EACxB,IAAI,EAAE,MAAM,GACX,OAAO,CAGT;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAGtF;AAED;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,KAAK,CAAC"}
package/dist/metering.js CHANGED
@@ -1,15 +1,14 @@
1
1
  /**
2
- * The metering contract of the loader hit point (TAG-801): the one place that names what the edge
2
+ * The metering contract of the loader hit point: the one place that names what the edge
3
3
  * writes per loader delivery and what counts toward a plan's usage, shared by the writer
4
- * (apps/edge, domain/loader-hit.ts) and the readers (the API's usage reader; TAG-712 and TAG-1603
5
- * build the quotas on it).
4
+ * (apps/edge, domain/loader-hit.ts) and the readers (the API's usage reader, which builds the quotas on it).
6
5
  *
7
- * Point layout of the `loader_hits` dataset (TAG-1823: a request writes a DELIVERY point, with no ASN and no
6
+ * Point layout of the `loader_hits` dataset (a request writes a DELIVERY point, with no ASN and no
8
7
  * visitor identifier, and a separate NETWORK point, with the ASN and `doubles[0] = 0`; `blobs[3]` is reserved and
9
- * always empty, it held the visitor hash until TAG-1823; only the delivery count under a honored `Sec-GPC: 1`), append-only (a reader of an older layout keeps
8
+ * always empty, it held the visitor hash; only the delivery count under a honored `Sec-GPC: 1`), append-only (a reader of an older layout keeps
10
9
  * working): `indexes[0]` site key; `blobs[0]` hostname; `blobs[1]` allowance; `blobs[2]` traffic
11
10
  * class; `doubles[0]` 1 (a delivery; sampling weights come from `_sample_interval`);
12
- * `doubles[1]` the number of components the delivered manifest offered; since TAG-1730 also
11
+ * `doubles[1]` the number of components the delivered manifest offered; also
13
12
  * `blobs[3]` reserved (always empty) and `blobs[4]` the ASN of a network point (the anomaly guard, `usage-guard.ts`).
14
13
  *
15
14
  * Privacy (golden rule 6): none of it identifies a visitor. The traffic class is derived from the
@@ -17,7 +16,7 @@
17
16
  */
18
17
  /**
19
18
  * The header the API sets when it reads a site's loader itself (`?preload=true` needs the runtime
20
- * version the loader names, TAG-335). The edge does not record a hit point for such a request: it
19
+ * version the loader names). The edge does not record a hit point for such a request: it
21
20
  * is not a page loading the snippet, and counting it would make the installation check say
22
21
  * "detected" before any page has the snippet. No secret guards it on purpose: sending it can only
23
22
  * LOWER the counts of the caller's own non-visitor requests (a real visitor never sends it, and
@@ -48,7 +47,7 @@ export function usageMonthStart(date) {
48
47
  return new Date(Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), 1));
49
48
  }
50
49
  /**
51
- * The kinds of event the browser can report to `POST /e/<siteKey>` (TAG-816), the layout of the
50
+ * The kinds of event the browser can report to `POST /e/<siteKey>`, the layout of the
52
51
  * `component_events` dataset (append-only): `indexes[0]` site key; `blobs[0]` kind; `blobs[1]` the
53
52
  * component tag; `blobs[2]` the published version hash; `blobs[3]` the hostname of the page's
54
53
  * `Origin`; `blobs[4]` traffic class; `blobs[5]` the event name (`""` for `render`);
@@ -56,11 +55,24 @@ export function usageMonthStart(date) {
56
55
  * `blobs[7]` a coarse device class (`DEVICE_CLASSES`, derived from the user agent on the edge);
57
56
  * `doubles[0]` 1 (one point per event; sampling weights come from `_sample_interval`). No IP, no
58
57
  * visitor identifier, no city or region, no path, no user agent. `render` is the aggregate count; the rest are
59
- * interactions and are not stored when the visitor sends a privacy signal the site honors.
58
+ * `track` and error events and are not stored when the visitor sends a privacy signal the site honors.
60
59
  */
61
- export const COMPONENT_EVENT_KINDS = ["render", "interaction", "custom", "error"];
60
+ export const COMPONENT_EVENT_KINDS = ["render", "custom", "error"];
62
61
  /**
63
- * The server-render points of `GET /r/<siteKey>/<tag>` (spike, ADR 0066, no ticket), written by the
62
+ * The kind of a PARAMETER point: next to the event point of a
63
+ * `custom` event (a `track` call), the edge writes one point per free parameter the event carried,
64
+ * into the same `component_events` dataset, append-only: `indexes[0]` site key; `blobs[0]` this kind;
65
+ * `blobs[1]` to `blobs[7]` as the event point (the tag, the version hash, the hostname, the traffic
66
+ * class, the event name, the country, the device class); `blobs[8]` the parameter name;
67
+ * `blobs[9]` the value (at most `EVENT_PARAM_LIMITS.valueMaxLength` characters, as sent); `blobs[10]` the kind of the
68
+ * event it belongs to (always `custom`); `doubles[0]` the weight of the event (`1 / rate`).
69
+ * It is NOT in `COMPONENT_EVENT_KINDS`: `POST /e/` never takes it from a body, and the event counts of
70
+ * the metrics (which name their kinds) never include it; only the parameter reader asks for it. It
71
+ * follows its event: not stored when the visitor sends a privacy signal the site honors.
72
+ */
73
+ export const EVENT_PARAM_POINT_KIND = "param";
74
+ /**
75
+ * The server-render points of `GET /r/<siteKey>/<tag>`, written by the
64
76
  * edge itself into the same `component_events` dataset with the same layout: `indexes[0]` site key;
65
77
  * `blobs[0]` the kind; `blobs[1]` the component tag; `blobs[2]` the version hash; every other blob
66
78
  * `""` (no hostname, traffic class, name, country nor device: the caller is the customer's server,
@@ -74,26 +86,26 @@ export const COMPONENT_EVENT_KINDS = ["render", "interaction", "custom", "error"
74
86
  */
75
87
  export const SSR_POINT_KINDS = ["ssr_render", "ssr_hit"];
76
88
  /**
77
- * The kind of a render that gave no fragment (TAG-635): written by the edge with the same layout,
89
+ * The kind of a render that gave no fragment: written by the edge with the same layout,
78
90
  * for staff queries and alerts. Not in `SSR_POINT_KINDS` on purpose: that list is what the API's
79
91
  * usage reader asks for, and a failed render is never counted or billed.
80
92
  */
81
93
  export const SSR_FAILED_POINT_KIND = "ssr_failed";
82
94
  /**
83
- * The coarse device class of an event (TAG-816), derived from the `User-Agent` on the edge, which
95
+ * The coarse device class of an event, derived from the `User-Agent` on the edge, which
84
96
  * keeps only the class: `mobile` (a phone), `tablet`, `desktop`, or `other` (a bot, a library, no
85
97
  * header, anything not recognized). Four values, so the dataset's cardinality stays four.
86
98
  */
87
99
  export const DEVICE_CLASSES = ["mobile", "desktop", "tablet", "other"];
88
100
  /**
89
- * The smallest `eventSampleRate` a manifest may declare (TAG-819): one event in a thousand, so the
101
+ * The smallest `eventSampleRate` a manifest may declare: one event in a thousand, so the
90
102
  * weight of a sent event (`1 / rate`) never passes 1000 and one forged or lucky event cannot stand
91
103
  * for an unbounded count.
92
104
  */
93
105
  export const EVENT_SAMPLE_RATE_MIN = 0.001;
94
106
  /**
95
- * The kinds the browser never samples (TAG-819): the render count, the `error` reports of the
96
- * runtime (rare, and a sample would hide a failing release). Only `interaction` and `custom` follow `eventSampleRate`.
107
+ * The kinds the browser never samples: the render count, the `error` reports of the
108
+ * runtime (rare, and a sample would hide a failing release). Only `custom` follows `eventSampleRate`.
97
109
  */
98
110
  export const UNSAMPLED_EVENT_KINDS = ["render", "error"];
99
111
  /** A rate the manifest may declare: finite and within `[EVENT_SAMPLE_RATE_MIN, 1]`. */
@@ -101,8 +113,8 @@ function usableRate(rate) {
101
113
  return typeof rate === "number" && rate >= EVENT_SAMPLE_RATE_MIN && rate <= 1;
102
114
  }
103
115
  /**
104
- * Whether the browser sends one event of this kind, given the component's `eventSampleRate`
105
- * (TAG-819). A kind that is never sampled, an undeclared rate and a rate outside its bounds always
116
+ * Whether the browser sends one event of this kind, given the component's `eventSampleRate`.
117
+ * A kind that is never sampled, an undeclared rate and a rate outside its bounds always
106
118
  * send (a bad value must never silently drop events). Otherwise the event is sent with
107
119
  * probability `rate`.
108
120
  * Inputs: the kind, the declared rate (or `undefined`) and a draw in `[0, 1)` (`Math.random()` in
@@ -114,7 +126,7 @@ export function shouldSendEvent(kind, rate, draw) {
114
126
  return draw < rate;
115
127
  }
116
128
  /**
117
- * How many real events one stored event stands for (TAG-819): `1 / rate` for a sampled kind, and 1
129
+ * How many real events one stored event stands for: `1 / rate` for a sampled kind, and 1
118
130
  * for a kind that is never sampled or a rate that is not usable. The edge writes it as
119
131
  * `doubles[0]` from the rate of the STORED manifest, never from the request, so a visitor cannot
120
132
  * claim a weight; summing the weights over the sent events estimates the real total.
@@ -127,8 +139,8 @@ export function eventWeight(kind, rate) {
127
139
  return 1 / rate;
128
140
  }
129
141
  /**
130
- * The most beacons of one kind (`interaction` or `custom`) a component sends in one page view
131
- * (TAG-820), counted in the SDK's data transport: a component that emits on every keystroke or
142
+ * The most `track` beacons a component sends in one page view,
143
+ * counted in the SDK's data transport: a component that tracks on every keystroke or
132
144
  * slider move cannot flood the visitor's network or the dataset. Sampling (`shouldSendEvent`)
133
145
  * applies on top; the edge's flood keys stay the technical protection.
134
146
  */
@@ -1 +1 @@
1
- {"version":3,"file":"metering.js","sourceRoot":"","sources":["../src/metering.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,wBAAwB,CAAC;AAE7D,qGAAqG;AACrG,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,CAAU,CAAC;AAG1E,+FAA+F;AAC/F,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,OAAO,EAAE,KAAK,CAAU,CAAC;AAGzD;;;;;;;GAOG;AACH,MAAM,UAAU,iBAAiB,CAAC,SAAwB,EAAE,OAAqB;IAC/E,OAAO,SAAS,KAAK,SAAS,IAAI,OAAO,KAAK,OAAO,CAAC;AACxD,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,IAAU;IACxC,OAAO,IAAI,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC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AAQ,EAAE,OAAO,CAAU,CAAC;AAGhF;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,KAAK,CAAC;AAE3C;;;GAGG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAkC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAExF,uFAAuF;AACvF,SAAS,UAAU,CAAC,IAAwB;IAC1C,OAAO,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,IAAI,qBAAqB,IAAI,IAAI,IAAI,CAAC,CAAC;AAChF,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,eAAe,CAC7B,IAAwB,EACxB,IAAwB,EACxB,IAAY;IAEZ,IAAI,qBAAqB,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC;IAC3E,OAAO,IAAI,GAAG,IAAI,CAAC;AACrB,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,WAAW,CAAC,IAAwB,EAAE,IAAwB;IAC5E,IAAI,qBAAqB,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;QAAE,OAAO,CAAC,CAAC;IACxE,OAAO,CAAC,GAAG,IAAI,CAAC;AAClB,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,EAAE,CAAC"}
package/dist/migrate.d.ts CHANGED
@@ -16,7 +16,7 @@ export interface ManifestMigration {
16
16
  */
17
17
  export declare const MANIFEST_MIGRATIONS: readonly ManifestMigration[];
18
18
  /**
19
- * Why `migrateManifest` refused, stable for callers and logs (TAG-220):
19
+ * Why `migrateManifest` refused, stable for callers and logs:
20
20
  * - `not-an-object`: the input (or what its `toJSON` produced) is not a JSON object;
21
21
  * - `proto-key`, `too-large`: see `findOwnProtoKey`, checked on the input and again on the copy;
22
22
  * - `unreadable`: reading or copying the input threw (a throwing getter, proxy or `toJSON`, a