@taggor/contract 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/artifact-keys.d.ts +11 -11
- package/dist/artifact-keys.d.ts.map +1 -1
- package/dist/artifact-keys.js +11 -11
- package/dist/artifact-keys.js.map +1 -1
- package/dist/assets.d.ts +5 -5
- package/dist/assets.js +5 -5
- package/dist/bounded-path.d.ts +2 -2
- package/dist/bounded-path.js +2 -2
- package/dist/bounded.d.ts +2 -2
- package/dist/bounded.js +2 -2
- package/dist/build-diagnostic.d.ts +5 -5
- package/dist/build-diagnostic.js +5 -5
- package/dist/component-types.d.ts +7 -7
- package/dist/component-types.js +4 -4
- package/dist/component-types.js.map +1 -1
- package/dist/consent-text.d.ts +1 -1
- package/dist/consent-text.js +1 -1
- package/dist/contract-version.d.ts +17 -16
- package/dist/contract-version.d.ts.map +1 -1
- package/dist/contract-version.js +17 -16
- package/dist/contract-version.js.map +1 -1
- package/dist/credential-fields.d.ts +1 -1
- package/dist/credential-fields.js +1 -1
- package/dist/css-tokens.d.ts +1 -1
- package/dist/css-tokens.js +1 -1
- package/dist/css-value.d.ts +4 -4
- package/dist/css-value.js +4 -4
- package/dist/data-api.d.ts +11 -11
- package/dist/data-api.js +14 -14
- package/dist/data-api.js.map +1 -1
- package/dist/denylist-keys.d.ts +1 -1
- package/dist/denylist-keys.js +4 -4
- package/dist/diagnostic-catalog.d.ts +44 -36
- package/dist/diagnostic-catalog.d.ts.map +1 -1
- package/dist/diagnostic-catalog.js +44 -40
- package/dist/diagnostic-catalog.js.map +1 -1
- package/dist/dom-members.snapshot.d.ts +4 -4
- package/dist/dom-members.snapshot.js +8 -8
- package/dist/early-loading.d.ts +1 -1
- package/dist/early-loading.js +1 -1
- package/dist/error-catalog.d.ts +106 -7
- package/dist/error-catalog.d.ts.map +1 -1
- package/dist/error-catalog.js +143 -48
- package/dist/error-catalog.js.map +1 -1
- package/dist/executable-config.d.ts +1 -1
- package/dist/freeze.d.ts +2 -2
- package/dist/freeze.js +2 -2
- package/dist/gunzip.d.ts +3 -3
- package/dist/gunzip.js +4 -4
- package/dist/gunzip.js.map +1 -1
- package/dist/hostname.d.ts +5 -6
- package/dist/hostname.d.ts.map +1 -1
- package/dist/hostname.js +7 -8
- package/dist/hostname.js.map +1 -1
- package/dist/human-actions.d.ts +4 -4
- package/dist/human-actions.d.ts.map +1 -1
- package/dist/human-actions.js +21 -0
- package/dist/human-actions.js.map +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/json-schema.d.ts +15 -16
- package/dist/json-schema.d.ts.map +1 -1
- package/dist/json-schema.js +22 -23
- package/dist/json-schema.js.map +1 -1
- package/dist/key-checksum.d.ts +1 -1
- package/dist/key-checksum.js +1 -1
- package/dist/libraries.d.ts +4 -4
- package/dist/libraries.d.ts.map +1 -1
- package/dist/libraries.js +4 -4
- package/dist/libraries.js.map +1 -1
- package/dist/limit-catalog.d.ts +17 -17
- package/dist/limit-catalog.d.ts.map +1 -1
- package/dist/limit-catalog.js +30 -30
- package/dist/limit-catalog.js.map +1 -1
- package/dist/limits.d.ts +15 -15
- package/dist/limits.d.ts.map +1 -1
- package/dist/limits.js +16 -16
- package/dist/limits.js.map +1 -1
- package/dist/locale-tag.d.ts +2 -2
- package/dist/locale-tag.js +2 -2
- package/dist/make-diagnostic.d.ts +2 -3
- package/dist/make-diagnostic.d.ts.map +1 -1
- package/dist/make-diagnostic.js.map +1 -1
- package/dist/manifest-compat-diagnostics.d.ts +1 -1
- package/dist/manifest-compat.js +1 -1
- package/dist/manifest.d.ts +22 -23
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js +32 -33
- package/dist/manifest.js.map +1 -1
- package/dist/metering.d.ts +17 -18
- package/dist/metering.d.ts.map +1 -1
- package/dist/metering.js +17 -18
- package/dist/metering.js.map +1 -1
- package/dist/migrate.d.ts +1 -1
- package/dist/migrate.js +5 -5
- package/dist/migrate.js.map +1 -1
- package/dist/money.d.ts +2 -2
- package/dist/money.js +2 -2
- package/dist/names.d.ts +4 -4
- package/dist/names.js +4 -4
- package/dist/overage-pricing.d.ts +1 -1
- package/dist/overage-pricing.js +1 -1
- package/dist/plan-ids.d.ts +1 -1
- package/dist/plan-ids.js +1 -1
- package/dist/plan-limits.d.ts +13 -13
- package/dist/plan-limits.d.ts.map +1 -1
- package/dist/plan-limits.js +8 -8
- package/dist/plan-limits.js.map +1 -1
- package/dist/plan-pricing.d.ts +10 -12
- package/dist/plan-pricing.d.ts.map +1 -1
- package/dist/plan-pricing.js +12 -14
- package/dist/plan-pricing.js.map +1 -1
- package/dist/plan-usage.d.ts +18 -18
- package/dist/plan-usage.d.ts.map +1 -1
- package/dist/plan-usage.js +19 -20
- package/dist/plan-usage.js.map +1 -1
- package/dist/preview-token.js +2 -2
- package/dist/prop-names.d.ts +5 -5
- package/dist/prop-names.d.ts.map +1 -1
- package/dist/prop-names.js +10 -10
- package/dist/prop-names.js.map +1 -1
- package/dist/prop-type-docs.js +1 -1
- package/dist/prop-types.d.ts +6 -6
- package/dist/prop-types.js +17 -17
- package/dist/prop-types.js.map +1 -1
- package/dist/props.d.ts +5 -5
- package/dist/props.js +6 -6
- package/dist/props.js.map +1 -1
- package/dist/proto-guard.js +3 -3
- package/dist/proto-guard.js.map +1 -1
- package/dist/runtime-errors.d.ts +2 -2
- package/dist/runtime-errors.js +2 -2
- package/dist/runtime-pointers.d.ts +2 -2
- package/dist/runtime-pointers.js +2 -2
- package/{schema → dist/schema}/component-manifest.v1.json +5 -5
- package/dist/secret-scan.d.ts +10 -10
- package/dist/secret-scan.d.ts.map +1 -1
- package/dist/secret-scan.js +15 -16
- package/dist/secret-scan.js.map +1 -1
- package/dist/semver.d.ts +2 -2
- package/dist/semver.js +2 -2
- package/dist/server-key.js +1 -1
- package/dist/site-manifest-keys.d.ts +11 -11
- package/dist/site-manifest-keys.d.ts.map +1 -1
- package/dist/site-manifest-keys.js +18 -18
- package/dist/site-manifest-keys.js.map +1 -1
- package/dist/site-manifest.d.ts +2 -2
- package/dist/site-manifest.js +9 -9
- package/dist/site-manifest.js.map +1 -1
- package/dist/source-archive.d.ts +13 -13
- package/dist/source-archive.js +25 -25
- package/dist/source-archive.js.map +1 -1
- package/dist/source-package-corpus.d.ts +3 -4
- package/dist/source-package-corpus.d.ts.map +1 -1
- package/dist/source-package-corpus.js +4 -6
- package/dist/source-package-corpus.js.map +1 -1
- package/dist/source-package.d.ts +18 -17
- package/dist/source-package.d.ts.map +1 -1
- package/dist/source-package.js +16 -15
- package/dist/source-package.js.map +1 -1
- package/dist/source-secrets.js +1 -1
- package/dist/ssr-cap.d.ts +1 -1
- package/dist/ssr-cap.js +4 -4
- package/dist/ssr-kv.d.ts +2 -2
- package/dist/ssr-kv.js +2 -2
- package/dist/ssr-render.d.ts +2 -2
- package/dist/ssr-render.d.ts.map +1 -1
- package/dist/ssr-render.js +3 -3
- package/dist/ssr-render.js.map +1 -1
- package/dist/ssr-version-ledger.js +3 -3
- package/dist/style-references.d.ts +2 -3
- package/dist/style-references.d.ts.map +1 -1
- package/dist/style-references.js +10 -11
- package/dist/style-references.js.map +1 -1
- package/dist/support-contact.d.ts +11 -0
- package/dist/support-contact.d.ts.map +1 -0
- package/dist/support-contact.js +11 -0
- package/dist/support-contact.js.map +1 -0
- package/dist/tag-name.d.ts +6 -6
- package/dist/tag-name.d.ts.map +1 -1
- package/dist/tag-name.js +7 -7
- package/dist/tag-name.js.map +1 -1
- package/dist/tar-writer.js +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +1 -1
- package/dist/text-codec.d.ts +2 -2
- package/dist/text-codec.js +2 -2
- package/dist/url-value.d.ts +1 -1
- package/dist/url-value.js +6 -6
- package/dist/usage-guard.d.ts +16 -16
- package/dist/usage-guard.js +15 -15
- package/dist/usage-mirror.d.ts +5 -5
- package/dist/value-check.d.ts +6 -6
- package/dist/value-check.js +21 -21
- package/dist/value-check.js.map +1 -1
- package/dist/value-patterns.js +2 -2
- package/dist/value-schema.d.ts +4 -4
- package/dist/value-schema.d.ts.map +1 -1
- package/dist/value-schema.js +5 -5
- package/dist/value-schema.js.map +1 -1
- package/dist/zod-free.d.ts +25 -24
- package/dist/zod-free.d.ts.map +1 -1
- package/dist/zod-free.js +26 -25
- package/dist/zod-free.js.map +1 -1
- package/package.json +9 -10
- package/schema/DEPLOYED +0 -12
- package/schema/published/SHA256SUMS +0 -41
- package/schema/published/build-diagnostic/v1.10.json +0 -83
- package/schema/published/build-diagnostic/v1.11.json +0 -83
- package/schema/published/build-diagnostic/v1.3.json +0 -83
- package/schema/published/build-diagnostic/v1.4.json +0 -83
- package/schema/published/build-diagnostic/v1.5.json +0 -83
- package/schema/published/build-diagnostic/v1.6.json +0 -83
- package/schema/published/build-diagnostic/v1.7.json +0 -83
- package/schema/published/build-diagnostic/v1.8.json +0 -83
- package/schema/published/build-diagnostic/v1.9.json +0 -83
- package/schema/published/component-manifest/v1.10.json +0 -1443
- package/schema/published/component-manifest/v1.11.json +0 -1443
- package/schema/published/component-manifest/v1.3.json +0 -1411
- package/schema/published/component-manifest/v1.4.json +0 -1419
- package/schema/published/component-manifest/v1.5.json +0 -1437
- package/schema/published/component-manifest/v1.6.json +0 -1437
- package/schema/published/component-manifest/v1.7.json +0 -1437
- package/schema/published/component-manifest/v1.8.json +0 -1437
- package/schema/published/component-manifest/v1.9.json +0 -1437
- package/schema/published/data-api/v1.10.json +0 -282
- package/schema/published/data-api/v1.11.json +0 -282
- package/schema/published/data-api/v1.3.json +0 -281
- package/schema/published/data-api/v1.4.json +0 -281
- package/schema/published/data-api/v1.5.json +0 -281
- package/schema/published/data-api/v1.6.json +0 -281
- package/schema/published/data-api/v1.7.json +0 -281
- package/schema/published/data-api/v1.8.json +0 -282
- package/schema/published/data-api/v1.9.json +0 -282
- package/schema/published/library-manifest/v1.10.json +0 -68
- package/schema/published/library-manifest/v1.11.json +0 -68
- package/schema/published/library-manifest/v1.5.json +0 -68
- package/schema/published/library-manifest/v1.6.json +0 -68
- package/schema/published/library-manifest/v1.7.json +0 -68
- package/schema/published/library-manifest/v1.8.json +0 -68
- package/schema/published/library-manifest/v1.9.json +0 -68
- package/schema/published/taggor-config/v1.10.json +0 -56
- package/schema/published/taggor-config/v1.11.json +0 -56
- package/schema/published/taggor-config/v1.5.json +0 -56
- package/schema/published/taggor-config/v1.6.json +0 -56
- package/schema/published/taggor-config/v1.7.json +0 -56
- package/schema/published/taggor-config/v1.8.json +0 -56
- package/schema/published/taggor-config/v1.9.json +0 -56
- /package/{schema → dist/schema}/build-diagnostic.v1.json +0 -0
- /package/{schema → dist/schema}/data-api.v1.json +0 -0
- /package/{schema → dist/schema}/library-manifest.v1.json +0 -0
- /package/{schema → dist/schema}/taggor-config.v1.json +0 -0
package/dist/manifest.d.ts
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The component manifest, contract v1
|
|
3
|
-
* SDK extracts
|
|
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
|
-
* The manifest is data only
|
|
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`).
|
|
10
|
-
* `contract-version.ts` and `proto-guard.ts` (both Zod-free) and
|
|
11
|
-
*
|
|
12
|
-
* makes the SDK require the visitor's consent on every submit
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
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 `data.personal` and `data.privacyPolicyUrl` (the declaration that
|
|
12
|
+
* makes the SDK require the visitor's consent on every submit), `locales` (the languages the
|
|
13
|
+
* component ships messages for and the one it falls back to), `assets` (the images and fonts the
|
|
14
|
+
* builder found imported, by content hash), `formAssociated` (the element takes part in the host
|
|
15
|
+
* page's `<form>` through `ElementInternals`), `delegatesFocus` (the shadow root delegates focus)
|
|
16
|
+
* and `libraries` (the workspace-scoped packages and semver ranges a
|
|
17
|
+
* component expects); resolution and ownership stay with the API/builder, which has workspace context.
|
|
19
18
|
*/
|
|
20
19
|
import * as z from "zod";
|
|
21
20
|
import { componentLibrariesSchema } from "./libraries.js";
|
|
@@ -499,7 +498,7 @@ declare const cssVarSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
499
498
|
default: z.ZodString;
|
|
500
499
|
description: z.ZodOptional<z.ZodString>;
|
|
501
500
|
}, z.core.$strict>], "type">;
|
|
502
|
-
/** One declared collection of `data.collections` (
|
|
501
|
+
/** One declared collection of `data.collections` (the site manifest reuses it). */
|
|
503
502
|
export declare const collectionSchema: z.ZodObject<{
|
|
504
503
|
description: z.ZodOptional<z.ZodString>;
|
|
505
504
|
fields: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -583,7 +582,7 @@ declare const trackEventSchema: z.ZodObject<{
|
|
|
583
582
|
}, z.core.$strict>], "type">>>;
|
|
584
583
|
}, z.core.$strict>;
|
|
585
584
|
/**
|
|
586
|
-
* The languages a component ships messages for (
|
|
585
|
+
* The languages a component ships messages for (contract 1.2). The SDK's `useLocale` picks
|
|
587
586
|
* one of `supported` from the element's `locale` attribute, the nearest `lang`, the browser's
|
|
588
587
|
* language and finally `default`; the builder extracts both from the author's message catalogs.
|
|
589
588
|
*/
|
|
@@ -592,8 +591,8 @@ declare const localesSchema: z.ZodObject<{
|
|
|
592
591
|
default: z.ZodString;
|
|
593
592
|
}, z.core.$strict>;
|
|
594
593
|
/**
|
|
595
|
-
* One asset of `assets` (
|
|
596
|
-
*
|
|
594
|
+
* One asset of `assets` (contract 1.3), keyed by its hash: its type and size. The builder
|
|
595
|
+
* writes it; the author never does. Served at `/a/<hash>.<extension of type>`.
|
|
597
596
|
*/
|
|
598
597
|
declare const assetSchema: z.ZodObject<{
|
|
599
598
|
type: z.ZodEnum<{
|
|
@@ -614,7 +613,7 @@ declare const assetSchema: z.ZodObject<{
|
|
|
614
613
|
* not fit its prop). Side effects: none.
|
|
615
614
|
*/
|
|
616
615
|
/**
|
|
617
|
-
* The share of `interaction` and `custom` events the browser sends (
|
|
616
|
+
* The share of `interaction` and `custom` events the browser sends (contract 1.10; the description was reworded in 1.11);
|
|
618
617
|
* `render` and `error` are never sampled. The edge weights each stored event by
|
|
619
618
|
* `1 / eventSampleRate` from the stored manifest, so the metrics stay estimates of the real total.
|
|
620
619
|
*/
|
|
@@ -1719,11 +1718,11 @@ export type CollectionDeclaration = z.infer<typeof collectionSchema>;
|
|
|
1719
1718
|
export type TrackEventDeclaration = z.infer<typeof trackEventSchema>;
|
|
1720
1719
|
/** A public CSS variable declaration. */
|
|
1721
1720
|
export type CssVarDeclaration = z.infer<typeof cssVarSchema>;
|
|
1722
|
-
/** The `locales` declaration
|
|
1721
|
+
/** The `locales` declaration. */
|
|
1723
1722
|
export type LocalesDeclaration = z.infer<typeof localesSchema>;
|
|
1724
|
-
/** The optional workspace library ranges of one component
|
|
1723
|
+
/** The optional workspace library ranges of one component. */
|
|
1725
1724
|
export type LibrariesDeclaration = z.infer<typeof componentLibrariesSchema>;
|
|
1726
|
-
/** One entry of `assets`, the value under its hash
|
|
1725
|
+
/** One entry of `assets`, the value under its hash. */
|
|
1727
1726
|
export type AssetDeclaration = z.infer<typeof assetSchema>;
|
|
1728
1727
|
/** One problem found in a manifest: a dotted path (`props.rate.default`) and a message. */
|
|
1729
1728
|
export interface ManifestIssue {
|
|
@@ -1740,8 +1739,8 @@ export type ManifestParseResult = {
|
|
|
1740
1739
|
};
|
|
1741
1740
|
/**
|
|
1742
1741
|
* The message of one Zod issue for a person or an agent: a bad record key shows the key's own
|
|
1743
|
-
* problems, and unknown keys (which come from the input) are quoted bounded
|
|
1744
|
-
* with the source package's metadata files
|
|
1742
|
+
* problems, and unknown keys (which come from the input) are quoted bounded. Shared
|
|
1743
|
+
* with the source package's metadata files.
|
|
1745
1744
|
*
|
|
1746
1745
|
* Inputs: a Zod issue. Output: its message. Errors: none. Side effects: none.
|
|
1747
1746
|
*/
|
package/dist/manifest.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AA+BzB,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAY1D,4FAA4F;AAC5F,eAAO,MAAM,eAAe,wEAKjB,CAAC;AAEZ,uFAAuF;AACvF,eAAO,MAAM,aAAa,qEAMf,CAAC;AAEZ,uFAAuF;AACvF,eAAO,MAAM,aAAa,oCAAoD,CAAC;AAE/E,iGAAiG;AACjG,eAAO,MAAM,uBAAuB,gCAAgD,CAAC;AAErF,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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|
|
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
|
-
* The manifest is data only
|
|
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`).
|
|
10
|
-
* `contract-version.ts` and `proto-guard.ts` (both Zod-free) and
|
|
11
|
-
*
|
|
12
|
-
* makes the SDK require the visitor's consent on every submit
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
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 `data.personal` and `data.privacyPolicyUrl` (the declaration that
|
|
12
|
+
* makes the SDK require the visitor's consent on every submit), `locales` (the languages the
|
|
13
|
+
* component ships messages for and the one it falls back to), `assets` (the images and fonts the
|
|
14
|
+
* builder found imported, by content hash), `formAssociated` (the element takes part in the host
|
|
15
|
+
* page's `<form>` through `ElementInternals`), `delegatesFocus` (the shadow root delegates focus)
|
|
16
|
+
* and `libraries` (the workspace-scoped packages and semver ranges a
|
|
17
|
+
* component expects); resolution and ownership stay with the API/builder, which has workspace context.
|
|
19
18
|
*/
|
|
20
19
|
import * as z from "zod";
|
|
21
20
|
import { boundedRecord, cssValueSchema, memberDescriptionSchema, plainText, uniqueArray, } from "./bounded.js";
|
|
@@ -93,7 +92,7 @@ const collectionFieldSchema = z
|
|
|
93
92
|
arrayValueSchema(scalarValueSchema),
|
|
94
93
|
])
|
|
95
94
|
.meta({ id: "CollectionField" });
|
|
96
|
-
/** One declared collection of `data.collections` (
|
|
95
|
+
/** One declared collection of `data.collections` (the site manifest reuses it). */
|
|
97
96
|
export const collectionSchema = z
|
|
98
97
|
.strictObject({
|
|
99
98
|
description: memberDescriptionSchema,
|
|
@@ -125,10 +124,10 @@ const dataSchema = z
|
|
|
125
124
|
collections: boundedRecord(memberNameSchema, collectionSchema, MANIFEST_LIMITS.maxCollections, "collections").optional(),
|
|
126
125
|
track: boundedRecord(memberNameSchema, trackEventSchema, MANIFEST_LIMITS.maxTrackEvents, "track events").optional(),
|
|
127
126
|
personal: z.boolean().optional().meta({
|
|
128
|
-
description: "True when the collections hold personal data
|
|
127
|
+
description: "True when the collections hold personal data: every submit then carries the visitor's consent. Defaults to false.",
|
|
129
128
|
}),
|
|
130
129
|
privacyPolicyUrl: propNameSchema.optional().meta({
|
|
131
|
-
description: 'Name of the prop of type "url" that links the privacy policy, set per site
|
|
130
|
+
description: 'Name of the prop of type "url" that links the privacy policy, set per site. Required when personal is true.',
|
|
132
131
|
}),
|
|
133
132
|
})
|
|
134
133
|
.refine((data) => data.personal !== true || data.privacyPolicyUrl !== undefined, {
|
|
@@ -164,7 +163,7 @@ const localeTagSchema = z
|
|
|
164
163
|
})
|
|
165
164
|
.regex(LOCALE_TAG_PATTERN, { error: LOCALE_TAG_MESSAGE });
|
|
166
165
|
/**
|
|
167
|
-
* The languages a component ships messages for (
|
|
166
|
+
* The languages a component ships messages for (contract 1.2). The SDK's `useLocale` picks
|
|
168
167
|
* one of `supported` from the element's `locale` attribute, the nearest `lang`, the browser's
|
|
169
168
|
* language and finally `default`; the builder extracts both from the author's message catalogs.
|
|
170
169
|
*/
|
|
@@ -188,8 +187,8 @@ const assetHashSchema = z.string().max(64).regex(ASSET_HASH_PATTERN, {
|
|
|
188
187
|
error: "an asset key must be the SHA-256 of the file's bytes, in 64 lowercase hex digits",
|
|
189
188
|
});
|
|
190
189
|
/**
|
|
191
|
-
* One asset of `assets` (
|
|
192
|
-
*
|
|
190
|
+
* One asset of `assets` (contract 1.3), keyed by its hash: its type and size. The builder
|
|
191
|
+
* writes it; the author never does. Served at `/a/<hash>.<extension of type>`.
|
|
193
192
|
*/
|
|
194
193
|
const assetSchema = z
|
|
195
194
|
.strictObject({
|
|
@@ -205,7 +204,7 @@ const assetSchema = z
|
|
|
205
204
|
.meta({ description: "Size of the file in bytes." }),
|
|
206
205
|
})
|
|
207
206
|
.meta({ id: "AssetDeclaration" });
|
|
208
|
-
/** Semantic versions of the current major up to the newest minor this package knows
|
|
207
|
+
/** Semantic versions of the current major up to the newest minor this package knows. */
|
|
209
208
|
const CONTRACT_VERSION_PATTERN = contractVersionPattern();
|
|
210
209
|
/**
|
|
211
210
|
* The component manifest schema (contract v1).
|
|
@@ -215,7 +214,7 @@ const CONTRACT_VERSION_PATTERN = contractVersionPattern();
|
|
|
215
214
|
* not fit its prop). Side effects: none.
|
|
216
215
|
*/
|
|
217
216
|
/**
|
|
218
|
-
* The share of `interaction` and `custom` events the browser sends (
|
|
217
|
+
* The share of `interaction` and `custom` events the browser sends (contract 1.10; the description was reworded in 1.11);
|
|
219
218
|
* `render` and `error` are never sampled. The edge weights each stored event by
|
|
220
219
|
* `1 / eventSampleRate` from the stored manifest, so the metrics stay estimates of the real total.
|
|
221
220
|
*/
|
|
@@ -249,14 +248,14 @@ export const componentManifestSchema = z
|
|
|
249
248
|
locales: localesSchema.optional(),
|
|
250
249
|
assets: boundedRecord(assetHashSchema, assetSchema, ASSET_LIMITS.maxAssets, "assets").optional(),
|
|
251
250
|
formAssociated: z.boolean().optional().meta({
|
|
252
|
-
description: "True for a form field component
|
|
251
|
+
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
252
|
}),
|
|
254
253
|
eventSampleRate: eventSampleRateSchema.optional(),
|
|
255
254
|
delegatesFocus: z.boolean().optional().meta({
|
|
256
|
-
description: "Whether the shadow root delegates focus
|
|
255
|
+
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
256
|
}),
|
|
258
257
|
})
|
|
259
|
-
// The policy link must be able to be an https page
|
|
258
|
+
// The policy link must be able to be an https page: a prop limited
|
|
260
259
|
// to http or mailto could never carry one. No `protocols` means the default, https only.
|
|
261
260
|
.refine(
|
|
262
261
|
// zod-only: privacy-policy-https-url-prop
|
|
@@ -271,8 +270,8 @@ export const componentManifestSchema = z
|
|
|
271
270
|
error: 'privacyPolicyUrl must name a declared prop of type "url" whose protocols include https',
|
|
272
271
|
path: ["data", "privacyPolicyUrl"],
|
|
273
272
|
})
|
|
274
|
-
// The `locale` attribute belongs to the SDK's language choice once `locales` is declared
|
|
275
|
-
//
|
|
273
|
+
// The `locale` attribute belongs to the SDK's language choice once `locales` is declared;
|
|
274
|
+
// a prop of that name would read the same attribute with another meaning. Only
|
|
276
275
|
// manifests declaring `locales` (new in 1.2) are refused, so no older manifest becomes invalid.
|
|
277
276
|
.refine(
|
|
278
277
|
// zod-only: locales-no-locale-prop
|
|
@@ -288,8 +287,8 @@ export const componentManifestSchema = z
|
|
|
288
287
|
const MAX_KEYS_IN_MESSAGE = 10;
|
|
289
288
|
/**
|
|
290
289
|
* 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
|
|
292
|
-
* with the source package's metadata files
|
|
290
|
+
* problems, and unknown keys (which come from the input) are quoted bounded. Shared
|
|
291
|
+
* with the source package's metadata files.
|
|
293
292
|
*
|
|
294
293
|
* Inputs: a Zod issue. Output: its message. Errors: none. Side effects: none.
|
|
295
294
|
*/
|
|
@@ -303,7 +302,7 @@ export function issueMessage(issue) {
|
|
|
303
302
|
? `${message} (the page receives it as "<tag>:<name>", so write the name without the tag or a colon)`
|
|
304
303
|
: message;
|
|
305
304
|
}
|
|
306
|
-
// Zod quotes every unknown key in full; keys come from the input, so bound them
|
|
305
|
+
// Zod quotes every unknown key in full; keys come from the input, so bound them.
|
|
307
306
|
if (issue.code === "unrecognized_keys") {
|
|
308
307
|
const shown = issue.keys.slice(0, MAX_KEYS_IN_MESSAGE).map((key) => `"${boundedSegment(key)}"`);
|
|
309
308
|
const more = issue.keys.length - shown.length;
|
|
@@ -313,7 +312,7 @@ export function issueMessage(issue) {
|
|
|
313
312
|
return issue.message;
|
|
314
313
|
}
|
|
315
314
|
/**
|
|
316
|
-
* How a missing required `<map>.<name>.<field>` is fixed
|
|
315
|
+
* How a missing required `<map>.<name>.<field>` is fixed, keyed by `<map>.<field>`;
|
|
317
316
|
* `name` is already bounded.
|
|
318
317
|
*/
|
|
319
318
|
const MISSING_MEMBER_FIELD_HINTS = {
|
|
@@ -322,7 +321,7 @@ const MISSING_MEMBER_FIELD_HINTS = {
|
|
|
322
321
|
};
|
|
323
322
|
/**
|
|
324
323
|
* 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
|
|
324
|
+
* `detail` and a CSS variable's `default`, says what to write. Zod's own message
|
|
326
325
|
* ("Invalid input: expected object, received undefined") does neither. Returns `undefined` for
|
|
327
326
|
* every other issue, so Zod and schema-level messages stay as they are.
|
|
328
327
|
*/
|
|
@@ -346,7 +345,7 @@ const manifestErrorMap = (issue) => {
|
|
|
346
345
|
};
|
|
347
346
|
function toIssues(error) {
|
|
348
347
|
return error.issues.map((issue) => ({
|
|
349
|
-
// Paths quote keys of the input: bounded like a __proto__ refusal
|
|
348
|
+
// Paths quote keys of the input: bounded like a __proto__ refusal.
|
|
350
349
|
path: boundedPath(issue.path.map(String)),
|
|
351
350
|
message: issueMessage(issue),
|
|
352
351
|
}));
|
|
@@ -354,7 +353,7 @@ function toIssues(error) {
|
|
|
354
353
|
/**
|
|
355
354
|
* The `contractVersion` issue of a decoded manifest, if its version is not a known minor of the
|
|
356
355
|
* 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
|
|
356
|
+
* migrate, declare the version) instead of quoting a pattern.
|
|
358
357
|
*/
|
|
359
358
|
function contractVersionIssue(input) {
|
|
360
359
|
if (typeof input !== "object" || input === null || Array.isArray(input))
|
package/dist/manifest.js.map
CHANGED
|
@@ -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,OAAO,EACL,aAAa,EACb,cAAc,EACd,uBAAuB,EACvB,SAAS,EACT,WAAW,GACZ,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC9D,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,mBAAmB,GACpB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC3F,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAE,w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AE,CAAC,EAAE,CAAC;IACtF,CAAC;IACD,OAAO,aAAa,CAAC,OAAO,CAAC,CAAC;AAChC,CAAC"}
|
package/dist/metering.d.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The metering contract of the loader hit point
|
|
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
|
|
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 (
|
|
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
|
|
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;
|
|
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
|
|
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
|
|
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`);
|
|
@@ -59,7 +58,7 @@ export declare function usageMonthStart(date: Date): Date;
|
|
|
59
58
|
export declare const COMPONENT_EVENT_KINDS: readonly ["render", "interaction", "custom", "error"];
|
|
60
59
|
export type ComponentEventKind = (typeof COMPONENT_EVENT_KINDS)[number];
|
|
61
60
|
/**
|
|
62
|
-
* The server-render points of `GET /r/<siteKey>/<tag
|
|
61
|
+
* The server-render points of `GET /r/<siteKey>/<tag>`, written by the
|
|
63
62
|
* edge itself into the same `component_events` dataset with the same layout: `indexes[0]` site key;
|
|
64
63
|
* `blobs[0]` the kind; `blobs[1]` the component tag; `blobs[2]` the version hash; every other blob
|
|
65
64
|
* `""` (no hostname, traffic class, name, country nor device: the caller is the customer's server,
|
|
@@ -74,32 +73,32 @@ export type ComponentEventKind = (typeof COMPONENT_EVENT_KINDS)[number];
|
|
|
74
73
|
export declare const SSR_POINT_KINDS: readonly ["ssr_render", "ssr_hit"];
|
|
75
74
|
export type SsrPointKind = (typeof SSR_POINT_KINDS)[number];
|
|
76
75
|
/**
|
|
77
|
-
* The kind of a render that gave no fragment
|
|
76
|
+
* The kind of a render that gave no fragment: written by the edge with the same layout,
|
|
78
77
|
* for staff queries and alerts. Not in `SSR_POINT_KINDS` on purpose: that list is what the API's
|
|
79
78
|
* usage reader asks for, and a failed render is never counted or billed.
|
|
80
79
|
*/
|
|
81
80
|
export declare const SSR_FAILED_POINT_KIND = "ssr_failed";
|
|
82
81
|
/**
|
|
83
|
-
* The coarse device class of an event
|
|
82
|
+
* The coarse device class of an event, derived from the `User-Agent` on the edge, which
|
|
84
83
|
* keeps only the class: `mobile` (a phone), `tablet`, `desktop`, or `other` (a bot, a library, no
|
|
85
84
|
* header, anything not recognized). Four values, so the dataset's cardinality stays four.
|
|
86
85
|
*/
|
|
87
86
|
export declare const DEVICE_CLASSES: readonly ["mobile", "desktop", "tablet", "other"];
|
|
88
87
|
export type DeviceClass = (typeof DEVICE_CLASSES)[number];
|
|
89
88
|
/**
|
|
90
|
-
* The smallest `eventSampleRate` a manifest may declare
|
|
89
|
+
* The smallest `eventSampleRate` a manifest may declare: one event in a thousand, so the
|
|
91
90
|
* weight of a sent event (`1 / rate`) never passes 1000 and one forged or lucky event cannot stand
|
|
92
91
|
* for an unbounded count.
|
|
93
92
|
*/
|
|
94
93
|
export declare const EVENT_SAMPLE_RATE_MIN = 0.001;
|
|
95
94
|
/**
|
|
96
|
-
* The kinds the browser never samples
|
|
95
|
+
* The kinds the browser never samples: the render count, the `error` reports of the
|
|
97
96
|
* runtime (rare, and a sample would hide a failing release). Only `interaction` and `custom` follow `eventSampleRate`.
|
|
98
97
|
*/
|
|
99
98
|
export declare const UNSAMPLED_EVENT_KINDS: readonly ComponentEventKind[];
|
|
100
99
|
/**
|
|
101
|
-
* Whether the browser sends one event of this kind, given the component's `eventSampleRate
|
|
102
|
-
*
|
|
100
|
+
* Whether the browser sends one event of this kind, given the component's `eventSampleRate`.
|
|
101
|
+
* A kind that is never sampled, an undeclared rate and a rate outside its bounds always
|
|
103
102
|
* send (a bad value must never silently drop events). Otherwise the event is sent with
|
|
104
103
|
* probability `rate`.
|
|
105
104
|
* Inputs: the kind, the declared rate (or `undefined`) and a draw in `[0, 1)` (`Math.random()` in
|
|
@@ -107,7 +106,7 @@ export declare const UNSAMPLED_EVENT_KINDS: readonly ComponentEventKind[];
|
|
|
107
106
|
*/
|
|
108
107
|
export declare function shouldSendEvent(kind: ComponentEventKind, rate: number | undefined, draw: number): boolean;
|
|
109
108
|
/**
|
|
110
|
-
* How many real events one stored event stands for
|
|
109
|
+
* How many real events one stored event stands for: `1 / rate` for a sampled kind, and 1
|
|
111
110
|
* for a kind that is never sampled or a rate that is not usable. The edge writes it as
|
|
112
111
|
* `doubles[0]` from the rate of the STORED manifest, never from the request, so a visitor cannot
|
|
113
112
|
* claim a weight; summing the weights over the sent events estimates the real total.
|
|
@@ -116,8 +115,8 @@ export declare function shouldSendEvent(kind: ComponentEventKind, rate: number |
|
|
|
116
115
|
*/
|
|
117
116
|
export declare function eventWeight(kind: ComponentEventKind, rate: number | undefined): number;
|
|
118
117
|
/**
|
|
119
|
-
* The most beacons of one kind (`interaction` or `custom`) a component sends in one page view
|
|
120
|
-
*
|
|
118
|
+
* The most beacons of one kind (`interaction` or `custom`) a component sends in one page view,
|
|
119
|
+
* counted in the SDK's data transport: a component that emits on every keystroke or
|
|
121
120
|
* slider move cannot flood the visitor's network or the dataset. Sampling (`shouldSendEvent`)
|
|
122
121
|
* applies on top; the edge's flood keys stay the technical protection.
|
|
123
122
|
*/
|
package/dist/metering.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metering.d.ts","sourceRoot":"","sources":["../src/metering.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"metering.d.ts","sourceRoot":"","sources":["../src/metering.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAE7D,qGAAqG;AACrG,eAAO,MAAM,eAAe,4CAA6C,CAAC;AAC1E,MAA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S,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
|
|
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
|
|
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 (
|
|
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
|
|
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;
|
|
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
|
|
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
|
|
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`);
|
|
@@ -60,7 +59,7 @@ export function usageMonthStart(date) {
|
|
|
60
59
|
*/
|
|
61
60
|
export const COMPONENT_EVENT_KINDS = ["render", "interaction", "custom", "error"];
|
|
62
61
|
/**
|
|
63
|
-
* The server-render points of `GET /r/<siteKey>/<tag
|
|
62
|
+
* The server-render points of `GET /r/<siteKey>/<tag>`, written by the
|
|
64
63
|
* edge itself into the same `component_events` dataset with the same layout: `indexes[0]` site key;
|
|
65
64
|
* `blobs[0]` the kind; `blobs[1]` the component tag; `blobs[2]` the version hash; every other blob
|
|
66
65
|
* `""` (no hostname, traffic class, name, country nor device: the caller is the customer's server,
|
|
@@ -74,25 +73,25 @@ export const COMPONENT_EVENT_KINDS = ["render", "interaction", "custom", "error"
|
|
|
74
73
|
*/
|
|
75
74
|
export const SSR_POINT_KINDS = ["ssr_render", "ssr_hit"];
|
|
76
75
|
/**
|
|
77
|
-
* The kind of a render that gave no fragment
|
|
76
|
+
* The kind of a render that gave no fragment: written by the edge with the same layout,
|
|
78
77
|
* for staff queries and alerts. Not in `SSR_POINT_KINDS` on purpose: that list is what the API's
|
|
79
78
|
* usage reader asks for, and a failed render is never counted or billed.
|
|
80
79
|
*/
|
|
81
80
|
export const SSR_FAILED_POINT_KIND = "ssr_failed";
|
|
82
81
|
/**
|
|
83
|
-
* The coarse device class of an event
|
|
82
|
+
* The coarse device class of an event, derived from the `User-Agent` on the edge, which
|
|
84
83
|
* keeps only the class: `mobile` (a phone), `tablet`, `desktop`, or `other` (a bot, a library, no
|
|
85
84
|
* header, anything not recognized). Four values, so the dataset's cardinality stays four.
|
|
86
85
|
*/
|
|
87
86
|
export const DEVICE_CLASSES = ["mobile", "desktop", "tablet", "other"];
|
|
88
87
|
/**
|
|
89
|
-
* The smallest `eventSampleRate` a manifest may declare
|
|
88
|
+
* The smallest `eventSampleRate` a manifest may declare: one event in a thousand, so the
|
|
90
89
|
* weight of a sent event (`1 / rate`) never passes 1000 and one forged or lucky event cannot stand
|
|
91
90
|
* for an unbounded count.
|
|
92
91
|
*/
|
|
93
92
|
export const EVENT_SAMPLE_RATE_MIN = 0.001;
|
|
94
93
|
/**
|
|
95
|
-
* The kinds the browser never samples
|
|
94
|
+
* The kinds the browser never samples: the render count, the `error` reports of the
|
|
96
95
|
* runtime (rare, and a sample would hide a failing release). Only `interaction` and `custom` follow `eventSampleRate`.
|
|
97
96
|
*/
|
|
98
97
|
export const UNSAMPLED_EVENT_KINDS = ["render", "error"];
|
|
@@ -101,8 +100,8 @@ function usableRate(rate) {
|
|
|
101
100
|
return typeof rate === "number" && rate >= EVENT_SAMPLE_RATE_MIN && rate <= 1;
|
|
102
101
|
}
|
|
103
102
|
/**
|
|
104
|
-
* Whether the browser sends one event of this kind, given the component's `eventSampleRate
|
|
105
|
-
*
|
|
103
|
+
* Whether the browser sends one event of this kind, given the component's `eventSampleRate`.
|
|
104
|
+
* A kind that is never sampled, an undeclared rate and a rate outside its bounds always
|
|
106
105
|
* send (a bad value must never silently drop events). Otherwise the event is sent with
|
|
107
106
|
* probability `rate`.
|
|
108
107
|
* Inputs: the kind, the declared rate (or `undefined`) and a draw in `[0, 1)` (`Math.random()` in
|
|
@@ -114,7 +113,7 @@ export function shouldSendEvent(kind, rate, draw) {
|
|
|
114
113
|
return draw < rate;
|
|
115
114
|
}
|
|
116
115
|
/**
|
|
117
|
-
* How many real events one stored event stands for
|
|
116
|
+
* How many real events one stored event stands for: `1 / rate` for a sampled kind, and 1
|
|
118
117
|
* for a kind that is never sampled or a rate that is not usable. The edge writes it as
|
|
119
118
|
* `doubles[0]` from the rate of the STORED manifest, never from the request, so a visitor cannot
|
|
120
119
|
* claim a weight; summing the weights over the sent events estimates the real total.
|
|
@@ -127,8 +126,8 @@ export function eventWeight(kind, rate) {
|
|
|
127
126
|
return 1 / rate;
|
|
128
127
|
}
|
|
129
128
|
/**
|
|
130
|
-
* The most beacons of one kind (`interaction` or `custom`) a component sends in one page view
|
|
131
|
-
*
|
|
129
|
+
* The most beacons of one kind (`interaction` or `custom`) a component sends in one page view,
|
|
130
|
+
* counted in the SDK's data transport: a component that emits on every keystroke or
|
|
132
131
|
* slider move cannot flood the visitor's network or the dataset. Sampling (`shouldSendEvent`)
|
|
133
132
|
* applies on top; the edge's flood keys stay the technical protection.
|
|
134
133
|
*/
|
package/dist/metering.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metering.js","sourceRoot":"","sources":["../src/metering.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"metering.js","sourceRoot":"","sources":["../src/metering.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;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,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I,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
|
|
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
|