@taggor/contract 0.4.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 +13 -12
- package/dist/contract-version.d.ts.map +1 -1
- package/dist/contract-version.js +13 -12
- 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 +67 -7
- package/dist/error-catalog.d.ts.map +1 -1
- package/dist/error-catalog.js +105 -49
- 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 +3 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/json-schema.d.ts +15 -15
- package/dist/json-schema.d.ts.map +1 -1
- package/dist/json-schema.js +22 -22
- 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 +21 -22
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js +31 -32
- 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 +16 -16
- 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 +17 -17
- package/dist/source-package.d.ts.map +1 -1
- package/dist/source-package.js +15 -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 +1 -1
- package/dist/ssr-kv.js +1 -1
- 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 +20 -20
- package/dist/value-check.js.map +1 -1
- package/dist/value-patterns.js +2 -2
- package/dist/value-schema.d.ts +3 -3
- package/dist/value-schema.d.ts.map +1 -1
- package/dist/value-schema.js +4 -4
- package/dist/value-schema.js.map +1 -1
- package/dist/zod-free.d.ts +24 -23
- package/dist/zod-free.d.ts.map +1 -1
- package/dist/zod-free.js +25 -24
- 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/json-schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-schema.js","sourceRoot":"","sources":["../src/json-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAEhE;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,4BAA4B,CAAC;AAErE;;;;;;GAMG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAY,EAAE,KAAa;IAC3D,OAAO,GAAG,wBAAwB,GAAG,IAAI,IAAI,KAAK,OAAO,CAAC;AAC5D,CAAC;AAED,
|
|
1
|
+
{"version":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AAC,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,IAAI,EAAE,UAAU,IAAI,KAAK,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC;AACnG,CAAC;AAED;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAsC,MAAM,CAAC,MAAM,CAAC;IACxF,cAAc,CAAC,oBAAoB,EAAE,CAAC,EAAE,kBAAkB,EAAE,kBAAkB,CAAC;IAC/E,cAAc,CAAC,kBAAkB,EAAE,CAAC,EAAE,0BAA0B,EAAE,yBAAyB,CAAC;IAC5F,cAAc,CAAC,UAAU,EAAE,CAAC,EAAE,kBAAkB,EAAE,iBAAiB,CAAC;IACpE,cAAc,CAAC,kBAAkB,EAAE,CAAC,EAAE,0BAA0B,EAAE,yBAAyB,CAAC;IAC5F,cAAc,CAAC,eAAe,EAAE,CAAC,EAAE,yBAAyB,EAAE,sBAAsB,CAAC;CACtF,CAAC,CAAC"}
|
package/dist/key-checksum.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The checksum primitives of Taggor's secret key formats (moved here from apps/api's
|
|
3
|
-
* domain/api-key.ts
|
|
3
|
+
* domain/api-key.ts): the base62
|
|
4
4
|
* alphabet, CRC-32 (the zlib variant) and a fixed-width base62 encoding. The API key
|
|
5
5
|
* (`tgr_<mode>_…`, apps/api) and the server key (`tgs_<mode>_…`, `server-key.ts`) both end in the
|
|
6
6
|
* CRC-32 of the text before it, in base62, so a mistyped or truncated key is refused without a
|
package/dist/key-checksum.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The checksum primitives of Taggor's secret key formats (moved here from apps/api's
|
|
3
|
-
* domain/api-key.ts
|
|
3
|
+
* domain/api-key.ts): the base62
|
|
4
4
|
* alphabet, CRC-32 (the zlib variant) and a fixed-width base62 encoding. The API key
|
|
5
5
|
* (`tgr_<mode>_…`, apps/api) and the server key (`tgs_<mode>_…`, `server-key.ts`) both end in the
|
|
6
6
|
* CRC-32 of the text before it, in base62, so a mistyped or truncated key is refused without a
|
package/dist/libraries.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Workspace library contracts
|
|
2
|
+
* Workspace library contracts: a library's immutable package name/version, its public
|
|
3
3
|
* source entry points and peer dependency ranges, plus the ranges a component requests. Ownership
|
|
4
4
|
* is deliberately not encoded here: the API/builder resolves names against the authenticated
|
|
5
|
-
* workspace
|
|
5
|
+
* workspace, never against a client-supplied workspace id.
|
|
6
6
|
*
|
|
7
7
|
* Inputs are JSON-like values and bounded names, paths, maps and semver strings. Outputs are
|
|
8
8
|
* Zod-validated library manifests and component library declarations. Errors are Zod issues, or
|
|
@@ -25,7 +25,7 @@ export declare const LIBRARY_LIMITS: Readonly<{
|
|
|
25
25
|
export declare const LIBRARY_NAME_PATTERN = "^@[a-z0-9][a-z0-9_-]{0,31}/[a-z0-9][a-z0-9._-]{0,63}$";
|
|
26
26
|
/** Scoped package name under which workspace libraries are imported. */
|
|
27
27
|
export declare const libraryNameSchema: z.ZodString;
|
|
28
|
-
/** A bounded semver range in npm's supported grammar; resolution shares
|
|
28
|
+
/** A bounded semver range in npm's supported grammar; resolution shares the parser. */
|
|
29
29
|
export declare const semverRangeSchema: z.ZodString;
|
|
30
30
|
/**
|
|
31
31
|
* Schema for one library package's declarative metadata.
|
|
@@ -54,7 +54,7 @@ export declare const componentLibrariesSchema: z.ZodRecord<z.ZodString, z.ZodStr
|
|
|
54
54
|
* Inputs: available version strings and a bounded npm semver range. Output: the original version
|
|
55
55
|
* string with greatest semver precedence, or `undefined` if the range is invalid or has no match.
|
|
56
56
|
* Errors: none. Side effects: none. Workspace ownership must be checked by the caller before this
|
|
57
|
-
* helper is used
|
|
57
|
+
* helper is used.
|
|
58
58
|
*/
|
|
59
59
|
export declare function resolveLibraryVersion(availableVersions: readonly string[], range: string): string | undefined;
|
|
60
60
|
//# sourceMappingURL=libraries.d.ts.map
|
package/dist/libraries.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libraries.d.ts","sourceRoot":"","sources":["../src/libraries.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAKzB,uFAAuF;AACvF,eAAO,MAAM,cAAc;IACzB,sEAAsE;;IAEtE,0CAA0C;;IAE1C,sDAAsD;;IAEtD,2CAA2C;;EAE3C,CAAC;AAEH,2EAA2E;AAC3E,eAAO,MAAM,oBAAoB,0DAA0D,CAAC;AAe5F,wEAAwE;AACxE,eAAO,MAAM,iBAAiB,aAMA,CAAC;AAU/B,
|
|
1
|
+
{"version":3,"file":"libraries.d.ts","sourceRoot":"","sources":["../src/libraries.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAKzB,uFAAuF;AACvF,eAAO,MAAM,cAAc;IACzB,sEAAsE;;IAEtE,0CAA0C;;IAE1C,sDAAsD;;IAEtD,2CAA2C;;EAE3C,CAAC;AAEH,2EAA2E;AAC3E,eAAO,MAAM,oBAAoB,0DAA0D,CAAC;AAe5F,wEAAwE;AACxE,eAAO,MAAM,iBAAiB,aAMA,CAAC;AAU/B,uFAAuF;AACvF,eAAO,MAAM,iBAAiB,aAO+C,CAAC;AAiC9E;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;;;;;kBAuB9B,CAAC;AAEL,8EAA8E;AAC9E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,uCAKpC,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,iBAAiB,EAAE,SAAS,MAAM,EAAE,EACpC,KAAK,EAAE,MAAM,GACZ,MAAM,GAAG,SAAS,CAEpB"}
|
package/dist/libraries.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Workspace library contracts
|
|
2
|
+
* Workspace library contracts: a library's immutable package name/version, its public
|
|
3
3
|
* source entry points and peer dependency ranges, plus the ranges a component requests. Ownership
|
|
4
4
|
* is deliberately not encoded here: the API/builder resolves names against the authenticated
|
|
5
|
-
* workspace
|
|
5
|
+
* workspace, never against a client-supplied workspace id.
|
|
6
6
|
*
|
|
7
7
|
* Inputs are JSON-like values and bounded names, paths, maps and semver strings. Outputs are
|
|
8
8
|
* Zod-validated library manifests and component library declarations. Errors are Zod issues, or
|
|
@@ -47,7 +47,7 @@ const packageNameSchema = z
|
|
|
47
47
|
error: "peer dependency name must be a lowercase npm package name",
|
|
48
48
|
})
|
|
49
49
|
.meta({ id: "LibraryPeerPackageName" });
|
|
50
|
-
/** A bounded semver range in npm's supported grammar; resolution shares
|
|
50
|
+
/** A bounded semver range in npm's supported grammar; resolution shares the parser. */
|
|
51
51
|
export const semverRangeSchema = z
|
|
52
52
|
.string()
|
|
53
53
|
.max(MAX_RANGE_LENGTH)
|
|
@@ -112,7 +112,7 @@ export const componentLibrariesSchema = boundedRecord(libraryNameSchema, semverR
|
|
|
112
112
|
* Inputs: available version strings and a bounded npm semver range. Output: the original version
|
|
113
113
|
* string with greatest semver precedence, or `undefined` if the range is invalid or has no match.
|
|
114
114
|
* Errors: none. Side effects: none. Workspace ownership must be checked by the caller before this
|
|
115
|
-
* helper is used
|
|
115
|
+
* helper is used.
|
|
116
116
|
*/
|
|
117
117
|
export function resolveLibraryVersion(availableVersions, range) {
|
|
118
118
|
return maxSatisfying(availableVersions, range);
|
package/dist/libraries.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libraries.js","sourceRoot":"","sources":["../src/libraries.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB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AC;KACD,IAAI,CAAC,EAAE,WAAW,EAAE,iEAAiE,EAAE,CAAC,CAAC;AAE5F;;;;;GAKG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC;KACnC,YAAY,CAAC;IACZ,IAAI,EAAE,iBAAiB;IACvB,OAAO,EAAE,kBAAkB;IAC3B,OAAO,EAAE,aAAa,CACpB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,CAAC,UAAU,EACzB,SAAS,EACT,CAAC,CACF;IACD,gBAAgB,EAAE,aAAa,CAC7B,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,CAAC,mBAAmB,EAClC,kBAAkB,CACnB,CAAC,QAAQ,EAAE;CACb,CAAC;KACD,IAAI,CAAC;IACJ,EAAE,EAAE,iBAAiB;IACrB,KAAK,EAAE,sCAAsC;IAC7C,WAAW,EACT,sIAAsI;CACzI,CAAC,CAAC;AAKL;;;;;GAKG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,aAAa,CACnD,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,CAAC,qBAAqB,EACpC,WAAW,CACZ,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,UAAU,qBAAqB,CACnC,iBAAoC,EACpC,KAAa;IAEb,OAAO,aAAa,CAAC,iBAAiB,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC"}
|
package/dist/limit-catalog.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The limit catalog
|
|
2
|
+
* The limit catalog: the ONE place that says what each limit of a
|
|
3
3
|
* plan is. Zod-free.
|
|
4
4
|
*
|
|
5
5
|
* Every limit a plan carries is one entry here: its name, unit, window, where it is enforced,
|
|
@@ -8,23 +8,23 @@
|
|
|
8
8
|
* usage view (`GET /v1/usage`, the portal, `taggor usage`) all read from it, so a limit cannot
|
|
9
9
|
* exist in one of them and not in the others; `limit-catalog.test.ts` fails when it does.
|
|
10
10
|
*
|
|
11
|
-
* The rule
|
|
11
|
+
* The rule: one limit, one window, the advertised number. No hourly or
|
|
12
12
|
* daily sublimit sits beside it. The defaults live in this file; a per-account change is an
|
|
13
|
-
* `entitlement_adjustments` row
|
|
13
|
+
* `entitlement_adjustments` row, never a column or a second table.
|
|
14
14
|
*
|
|
15
|
-
* The numbers are
|
|
16
|
-
*
|
|
15
|
+
* The numbers are provisional until the plans are final, except where they were fixed
|
|
16
|
+
* (components per site, builds per week).
|
|
17
17
|
*
|
|
18
|
-
* Pay-as-you-go
|
|
18
|
+
* Pay-as-you-go: every spec also carries a `policy` per plan.
|
|
19
19
|
* Free is `hard` on every limit (the number is the cut). A paid plan is `metered` on the limits
|
|
20
20
|
* whose excess is billed at the end of the month (the rate table is `OVERAGE_RATES` in
|
|
21
21
|
* `plan-pricing.ts`) and `hard` on the rest (security caps, per-build technical caps, members,
|
|
22
22
|
* retention). A `metered` limit never refuses or cuts a paid plan.
|
|
23
23
|
*
|
|
24
|
-
* Server-side rendering
|
|
25
|
-
* working default
|
|
26
|
-
* distinct component versions rendered on the server per day are NOT a limit of any kind
|
|
27
|
-
*
|
|
24
|
+
* Server-side rendering has ONE plan limit, `ssrRendersPerMonth`, a
|
|
25
|
+
* working default that is not final (it lives only in `SSR_RENDERS_PER_MONTH` below). The
|
|
26
|
+
* distinct component versions rendered on the server per day are NOT a limit of any kind:
|
|
27
|
+
* they are the vendor's billing unit, measured as usage (`ssr-version-ledger.ts`) for
|
|
28
28
|
* a later pay-as-you-go price, and nothing is refused because of them.
|
|
29
29
|
*/
|
|
30
30
|
import { type PlanId } from "./plan-ids.js";
|
|
@@ -38,7 +38,7 @@ export type LimitUnit = "count" | "bytes" | "ms" | "days";
|
|
|
38
38
|
*/
|
|
39
39
|
export type LimitWindow = "month" | "week" | "total" | "each";
|
|
40
40
|
/**
|
|
41
|
-
* How the customer is told: `usage_notice` (the 80% and 100% e-mails
|
|
41
|
+
* How the customer is told: `usage_notice` (the 80% and 100% e-mails, plus the usage
|
|
42
42
|
* view), `view_only` (measured and shown in the usage view, nothing e-mails or refuses),
|
|
43
43
|
* `on_refusal` (the usage view when the limit has a counter, and the error of the refused action
|
|
44
44
|
* with the limit and the plan) or `not_enforced` (nothing enforces it yet).
|
|
@@ -51,7 +51,7 @@ export type LimitNotice = "usage_notice" | "view_only" | "on_refusal" | "not_enf
|
|
|
51
51
|
export type LimitMeter = "renders" | "ssr_renders" | "submissions" | "storage" | "sites" | "api_keys" | "builds_week" | "components_per_site" | "members" | "immediate_emails" | null;
|
|
52
52
|
/**
|
|
53
53
|
* What a billed excess is counted in. One metric is one line of the end-of-month overage ledger and
|
|
54
|
-
* one Stripe meter. `ssr_version_days` is metered usage without a plan limit (
|
|
54
|
+
* one Stripe meter. `ssr_version_days` is metered usage without a plan limit (the
|
|
55
55
|
* versions rendered per day are not a limit); the others are the `meter` of a catalog limit.
|
|
56
56
|
*/
|
|
57
57
|
export declare const OVERAGE_METRICS: readonly ["renders", "ssr_renders", "ssr_version_days", "builds", "submissions", "storage", "extra_sites"];
|
|
@@ -79,7 +79,7 @@ export interface LimitSpec {
|
|
|
79
79
|
readonly meter: LimitMeter;
|
|
80
80
|
/** The default of each plan. */
|
|
81
81
|
readonly defaults: Readonly<Record<PlanId, number>>;
|
|
82
|
-
/** What each plan does at the number
|
|
82
|
+
/** What each plan does at the number: Free always `hard`. */
|
|
83
83
|
readonly policy: Readonly<Record<PlanId, LimitPolicy>>;
|
|
84
84
|
}
|
|
85
85
|
/**
|
|
@@ -212,7 +212,7 @@ declare const SPECS: readonly [{
|
|
|
212
212
|
readonly group: "quota";
|
|
213
213
|
readonly unit: "count";
|
|
214
214
|
readonly window: "each";
|
|
215
|
-
readonly enforcedAt: "POST /v1/api-keys, one admin or member
|
|
215
|
+
readonly enforcedAt: "POST /v1/api-keys, one admin or member";
|
|
216
216
|
readonly notice: "on_refusal";
|
|
217
217
|
readonly meter: null;
|
|
218
218
|
readonly defaults: Readonly<Record<"free" | "pro" | "agency", number>>;
|
|
@@ -222,7 +222,7 @@ declare const SPECS: readonly [{
|
|
|
222
222
|
readonly group: "quota";
|
|
223
223
|
readonly unit: "count";
|
|
224
224
|
readonly window: "each";
|
|
225
|
-
readonly enforcedAt: "POST /v1/api-keys, places only an owner may fill
|
|
225
|
+
readonly enforcedAt: "POST /v1/api-keys, places only an owner may fill";
|
|
226
226
|
readonly notice: "on_refusal";
|
|
227
227
|
readonly meter: null;
|
|
228
228
|
readonly defaults: Readonly<Record<"free" | "pro" | "agency", number>>;
|
|
@@ -370,8 +370,8 @@ export declare function overageMetricOf(name: CatalogLimitName, planId: PlanId):
|
|
|
370
370
|
/**
|
|
371
371
|
* Whether a usage price (metric, plan) is informational only: the metric is a limit's overage on
|
|
372
372
|
* another plan, but this plan never meters it. Today that is the Agency's extra site, the existing
|
|
373
|
-
* add-on on its subscription
|
|
374
|
-
* schedule for it must be refused
|
|
373
|
+
* add-on on its subscription, so a usage price for it would bill nothing and a
|
|
374
|
+
* schedule for it must be refused. A metric tied to no limit (`ssr_version_days`) is
|
|
375
375
|
* never informational.
|
|
376
376
|
*
|
|
377
377
|
* Inputs: an overage metric and a plan id. Output: the verdict. Errors: none. No side effects.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"limit-catalog.d.ts","sourceRoot":"","sources":["../src/limit-catalog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EAAY,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAOtD,kIAAkI;AAClI,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;AAE9D,8BAA8B;AAC9B,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,IAAI,GAAG,MAAM,CAAC;AAE1D;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAE9D;;;;;GAKG;AACH,MAAM,MAAM,WA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;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,UAAU,EAAE,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAQvF;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,gBAAgB,GAAG,SAAS,CAI3D;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,GAAG,aAAa,GAAG,IAAI,CAG5F;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAKlF"}
|
package/dist/limit-catalog.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The limit catalog
|
|
2
|
+
* The limit catalog: the ONE place that says what each limit of a
|
|
3
3
|
* plan is. Zod-free.
|
|
4
4
|
*
|
|
5
5
|
* Every limit a plan carries is one entry here: its name, unit, window, where it is enforced,
|
|
@@ -8,23 +8,23 @@
|
|
|
8
8
|
* usage view (`GET /v1/usage`, the portal, `taggor usage`) all read from it, so a limit cannot
|
|
9
9
|
* exist in one of them and not in the others; `limit-catalog.test.ts` fails when it does.
|
|
10
10
|
*
|
|
11
|
-
* The rule
|
|
11
|
+
* The rule: one limit, one window, the advertised number. No hourly or
|
|
12
12
|
* daily sublimit sits beside it. The defaults live in this file; a per-account change is an
|
|
13
|
-
* `entitlement_adjustments` row
|
|
13
|
+
* `entitlement_adjustments` row, never a column or a second table.
|
|
14
14
|
*
|
|
15
|
-
* The numbers are
|
|
16
|
-
*
|
|
15
|
+
* The numbers are provisional until the plans are final, except where they were fixed
|
|
16
|
+
* (components per site, builds per week).
|
|
17
17
|
*
|
|
18
|
-
* Pay-as-you-go
|
|
18
|
+
* Pay-as-you-go: every spec also carries a `policy` per plan.
|
|
19
19
|
* Free is `hard` on every limit (the number is the cut). A paid plan is `metered` on the limits
|
|
20
20
|
* whose excess is billed at the end of the month (the rate table is `OVERAGE_RATES` in
|
|
21
21
|
* `plan-pricing.ts`) and `hard` on the rest (security caps, per-build technical caps, members,
|
|
22
22
|
* retention). A `metered` limit never refuses or cuts a paid plan.
|
|
23
23
|
*
|
|
24
|
-
* Server-side rendering
|
|
25
|
-
* working default
|
|
26
|
-
* distinct component versions rendered on the server per day are NOT a limit of any kind
|
|
27
|
-
*
|
|
24
|
+
* Server-side rendering has ONE plan limit, `ssrRendersPerMonth`, a
|
|
25
|
+
* working default that is not final (it lives only in `SSR_RENDERS_PER_MONTH` below). The
|
|
26
|
+
* distinct component versions rendered on the server per day are NOT a limit of any kind:
|
|
27
|
+
* they are the vendor's billing unit, measured as usage (`ssr-version-ledger.ts`) for
|
|
28
28
|
* a later pay-as-you-go price, and nothing is refused because of them.
|
|
29
29
|
*/
|
|
30
30
|
import { PLAN_IDS } from "./plan-ids.js";
|
|
@@ -34,7 +34,7 @@ const MB = 1000 * 1000;
|
|
|
34
34
|
const GB = 1000 * MB;
|
|
35
35
|
/**
|
|
36
36
|
* What a billed excess is counted in. One metric is one line of the end-of-month overage ledger and
|
|
37
|
-
* one Stripe meter. `ssr_version_days` is metered usage without a plan limit (
|
|
37
|
+
* one Stripe meter. `ssr_version_days` is metered usage without a plan limit (the
|
|
38
38
|
* versions rendered per day are not a limit); the others are the `meter` of a catalog limit.
|
|
39
39
|
*/
|
|
40
40
|
export const OVERAGE_METRICS = [
|
|
@@ -58,17 +58,17 @@ const hardForAll = () => ({
|
|
|
58
58
|
pro: HARD,
|
|
59
59
|
agency: HARD,
|
|
60
60
|
});
|
|
61
|
-
/** Hard on Free, billed on Pro and Agency
|
|
61
|
+
/** Hard on Free, billed on Pro and Agency. */
|
|
62
62
|
const meteredOnPaid = (metric) => {
|
|
63
63
|
const metered = Object.freeze({ mode: "metered", metric });
|
|
64
64
|
return { free: HARD, pro: metered, agency: metered };
|
|
65
65
|
};
|
|
66
66
|
// What one build may use is the same on every plan for now: the container instance is the ceiling.
|
|
67
67
|
const sameForAll = (value) => perPlan(value, value, value);
|
|
68
|
-
/** Loader deliveries a plan counts in a month (proposal v3
|
|
68
|
+
/** Loader deliveries a plan counts in a month (proposal v3). */
|
|
69
69
|
const RENDERS_PER_MONTH = perPlan(10_000, 1_250_000, 4_000_000);
|
|
70
70
|
/**
|
|
71
|
-
* SSR working default
|
|
71
|
+
* SSR working default, not final: change it here only.
|
|
72
72
|
* Server renders per month: equal to the plan's renders, so an honest site never meets it (each
|
|
73
73
|
* server render is a page view the loader already counts, and only cache misses are renders).
|
|
74
74
|
*/
|
|
@@ -156,8 +156,8 @@ const SPECS = [
|
|
|
156
156
|
policy: hardForAll(),
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
|
-
//
|
|
160
|
-
// ramp
|
|
159
|
+
// One limit, a rolling 7-day window. Free is a flat 150 for every account (no
|
|
160
|
+
// ramp); Pro and Agency are seven times the daily numbers of proposal v3.
|
|
161
161
|
name: "buildsPerWeek",
|
|
162
162
|
group: "build",
|
|
163
163
|
unit: "count",
|
|
@@ -181,7 +181,7 @@ const SPECS = [
|
|
|
181
181
|
policy: hardForAll(),
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
|
-
//
|
|
184
|
+
// Free 3, Pro 25, Agency 100 included.
|
|
185
185
|
name: "maxSites",
|
|
186
186
|
group: "quota",
|
|
187
187
|
unit: "count",
|
|
@@ -214,7 +214,7 @@ const SPECS = [
|
|
|
214
214
|
group: "quota",
|
|
215
215
|
unit: "count",
|
|
216
216
|
window: "each",
|
|
217
|
-
enforcedAt: "POST /v1/api-keys, one admin or member
|
|
217
|
+
enforcedAt: "POST /v1/api-keys, one admin or member",
|
|
218
218
|
notice: "on_refusal",
|
|
219
219
|
meter: null,
|
|
220
220
|
defaults: perPlan(10, 10, 25),
|
|
@@ -225,14 +225,14 @@ const SPECS = [
|
|
|
225
225
|
group: "quota",
|
|
226
226
|
unit: "count",
|
|
227
227
|
window: "each",
|
|
228
|
-
enforcedAt: "POST /v1/api-keys, places only an owner may fill
|
|
228
|
+
enforcedAt: "POST /v1/api-keys, places only an owner may fill",
|
|
229
229
|
notice: "on_refusal",
|
|
230
230
|
meter: null,
|
|
231
231
|
defaults: sameForAll(5),
|
|
232
232
|
policy: hardForAll(),
|
|
233
233
|
},
|
|
234
234
|
{
|
|
235
|
-
//
|
|
235
|
+
// 50, 300 and 800. Only a NEW attach is refused; after a downgrade what
|
|
236
236
|
// is attached stays served. The highest value is the platform ceiling of a site manifest.
|
|
237
237
|
name: "componentsPerSite",
|
|
238
238
|
group: "quota",
|
|
@@ -245,7 +245,7 @@ const SPECS = [
|
|
|
245
245
|
policy: hardForAll(),
|
|
246
246
|
},
|
|
247
247
|
{
|
|
248
|
-
//
|
|
248
|
+
// What was the trust level's `connectOrigins`, the one control of it with no equal
|
|
249
249
|
// in a plan (a security cap on `permissions.connect`). Generous: a real component needs a few.
|
|
250
250
|
// The highest value is the platform ceiling of the manifest (`MANIFEST_LIMITS.maxConnectOrigins`,
|
|
251
251
|
// 10): a plan cannot allow what the manifest schema refuses, and a test keeps them in line.
|
|
@@ -271,7 +271,7 @@ const SPECS = [
|
|
|
271
271
|
policy: meteredOnPaid("renders"),
|
|
272
272
|
},
|
|
273
273
|
{
|
|
274
|
-
//
|
|
274
|
+
// Renders the edge performed for `GET /r/` (cache misses that rendered); cache hits are
|
|
275
275
|
// metered but not counted. Never counted against `rendersPerMonth`: the page view is the loader's.
|
|
276
276
|
name: "ssrRendersPerMonth",
|
|
277
277
|
group: "usage",
|
|
@@ -306,7 +306,7 @@ const SPECS = [
|
|
|
306
306
|
policy: meteredOnPaid("storage"),
|
|
307
307
|
},
|
|
308
308
|
{
|
|
309
|
-
//
|
|
309
|
+
// 12, 24 and 36 months. A collection may choose fewer days, never more.
|
|
310
310
|
name: "retentionDays",
|
|
311
311
|
group: "usage",
|
|
312
312
|
unit: "days",
|
|
@@ -318,8 +318,8 @@ const SPECS = [
|
|
|
318
318
|
policy: hardForAll(),
|
|
319
319
|
},
|
|
320
320
|
{
|
|
321
|
-
//
|
|
322
|
-
// Analytics Engine's three months. One window, the advertised number
|
|
321
|
+
// How long `metrics_daily` keeps the daily aggregates of the component metrics, after the
|
|
322
|
+
// Analytics Engine's three months. One window, the advertised number; the daily
|
|
323
323
|
// purge of the aggregates is its only enforcement and nothing refuses a request.
|
|
324
324
|
name: "metricsRetentionDays",
|
|
325
325
|
group: "plan",
|
|
@@ -336,8 +336,8 @@ const SPECS = [
|
|
|
336
336
|
group: "plan",
|
|
337
337
|
unit: "count",
|
|
338
338
|
window: "month",
|
|
339
|
-
//
|
|
340
|
-
// billed; the submission is stored either way). Off until the
|
|
339
|
+
// Past the number the e-mail falls to the daily digest, on every plan (nothing is cut or
|
|
340
|
+
// billed; the submission is stored either way). Off until the Free hard cut flag (the API's) is turned on.
|
|
341
341
|
enforcedAt: "submission notification e-mails: past the number an instant e-mail goes to the daily digest, on every plan",
|
|
342
342
|
notice: "view_only",
|
|
343
343
|
meter: "immediate_emails",
|
|
@@ -349,7 +349,7 @@ const SPECS = [
|
|
|
349
349
|
group: "plan",
|
|
350
350
|
unit: "count",
|
|
351
351
|
window: "total",
|
|
352
|
-
//
|
|
352
|
+
// A new invitation is refused (409 `member_limit_reached`) when the members and the
|
|
353
353
|
// pending invitations already fill the number; hard on every plan. Off until the Free hard cut flag
|
|
354
354
|
// is approved.
|
|
355
355
|
enforcedAt: "POST /v1/workspaces/{id}/invitations, 409 member_limit_reached",
|
|
@@ -414,8 +414,8 @@ export function overageMetricOf(name, planId) {
|
|
|
414
414
|
/**
|
|
415
415
|
* Whether a usage price (metric, plan) is informational only: the metric is a limit's overage on
|
|
416
416
|
* another plan, but this plan never meters it. Today that is the Agency's extra site, the existing
|
|
417
|
-
* add-on on its subscription
|
|
418
|
-
* schedule for it must be refused
|
|
417
|
+
* add-on on its subscription, so a usage price for it would bill nothing and a
|
|
418
|
+
* schedule for it must be refused. A metric tied to no limit (`ssr_version_days`) is
|
|
419
419
|
* never informational.
|
|
420
420
|
*
|
|
421
421
|
* Inputs: an overage metric and a plan id. Output: the verdict. Errors: none. No side effects.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"limit-catalog.js","sourceRoot":"","sources":["../src/limit-catalog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EAAE,QAAQ,EAAe,MAAM,eAAe,CAAC;AAEtD,MAAM,GAAG,GAAG,IAAI,CAAC;AACjB,MAAM,GAAG,GAAG,IAAI,GAAG,GAAG,CAAC;AACvB,MAAM,EAAE,GAAG,IAAI,GAAG,IAAI,CAAC;AACvB,MAAM,EAAE,GAAG,IAAI,GAAG,EAAE,CAAC;AAuCrB;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,SAAS;IACT,aAAa;IACb,kBAAkB;IAClB,QAAQ;IACR,aAAa;IACb,SAAS;IACT,aAAa;CACL,CAAC;AA4BX,MAAM,OAAO,GAAG,CAAC,IAAY,EAAE,GAAW,EAAE,MAAc,EAAoC,EAAE,CAAC,CAAC;IAChG,IAAI;IACJ,GAAG;IACH,MAAM;CACP,CAAC,CAAC;AAEH,MAAM,IAAI,GAAgB,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;AAE1D,8FAA8F;AAC9F,MAAM,UAAU,GAAG,GAA0C,EAAE,CAAC,CAAC;IAC/D,IAAI,EAAE,IAAI;IACV,GAAG,EAAE,IAAI;IACT,MAAM,EAAE,IAAI;CACb,CAAC,CAAC;AAEH,
|
|
1
|
+
{"version":3,"file":"limit-catalog.js","sourceRoot":"","sources":["../src/limit-catalog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EAAE,QAAQ,EAAe,MAAM,eAAe,CAAC;AAEtD,MAAM,GAAG,GAAG,IAAI,CA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M,CAAC,IAAI,KAAK,SAAS,IAAI,MAAM,CAAC,MAAM,KAAK,MAAM,CAAC;IAC/F,MAAM,UAAU,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAC9E,OAAO,CAAC,UAAU,IAAI,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;AAC/C,CAAC"}
|
package/dist/limits.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hard limits of component contract v1
|
|
2
|
+
* Hard limits of component contract v1.
|
|
3
3
|
*
|
|
4
4
|
* Every list, record and string in the manifest and in the data API is bounded so that a hostile
|
|
5
5
|
* manifest or payload cannot make the runtime, the builder, the edge or the API do unbounded work
|
|
6
6
|
* (golden rules 2 and 5). The schemas read these constants; `SPEC.md` documents them. Changing a
|
|
7
|
-
* value is a contract change: loosening is a minor bump, tightening is a major one
|
|
7
|
+
* value is a contract change: loosening is a minor bump, tightening is a major one.
|
|
8
8
|
*/
|
|
9
9
|
/** `MANIFEST_LIMITS.maxJsonLength`: a manifest's JSON length, and a value check's work budget. */
|
|
10
10
|
export declare const MAX_JSON_LENGTH = 65536;
|
|
@@ -18,7 +18,7 @@ export declare const URL_MAX_LENGTH = 2048;
|
|
|
18
18
|
* Limits of the component manifest.
|
|
19
19
|
*
|
|
20
20
|
* Inputs: none. Output: frozen numbers used by the manifest schemas. Errors: none. Side effects:
|
|
21
|
-
* none. Marked `@__PURE__`
|
|
21
|
+
* none. Marked `@__PURE__` so a bundler drops it from a component that imports another
|
|
22
22
|
* limit: esbuild keeps an unmarked `Object.freeze` call.
|
|
23
23
|
*/
|
|
24
24
|
export declare const MANIFEST_LIMITS: Readonly<{
|
|
@@ -57,7 +57,7 @@ export declare const MANIFEST_LIMITS: Readonly<{
|
|
|
57
57
|
colorMaxLength: 64;
|
|
58
58
|
/** Any `url` value: default, attribute or property. */
|
|
59
59
|
urlMaxLength: 2048;
|
|
60
|
-
/** Attribute text of a `number` prop, checked before parsing
|
|
60
|
+
/** Attribute text of a `number` prop, checked before parsing. */
|
|
61
61
|
numberTextMaxLength: 32;
|
|
62
62
|
/** JSON text of an `array` or `object` prop read from an attribute, checked before parsing. */
|
|
63
63
|
propJsonMaxLength: 32768;
|
|
@@ -67,8 +67,8 @@ export declare const MANIFEST_LIMITS: Readonly<{
|
|
|
67
67
|
aspectRatioMaxTerm: 100;
|
|
68
68
|
}>;
|
|
69
69
|
/**
|
|
70
|
-
* Limits only the browser runtime reads
|
|
71
|
-
* bundle carried whole until
|
|
70
|
+
* Limits only the browser runtime reads, kept out of `MANIFEST_LIMITS`, which the SDK
|
|
71
|
+
* bundle carried whole until the limits were split (the runtime still does), so a component does not pay for them.
|
|
72
72
|
*
|
|
73
73
|
* Inputs: none. Output: frozen numbers. Errors: none. Side effects: none.
|
|
74
74
|
*/
|
|
@@ -80,11 +80,11 @@ export declare const RUNTIME_LIMITS: Readonly<{
|
|
|
80
80
|
propsScriptMaxLength: 65536;
|
|
81
81
|
}>;
|
|
82
82
|
/**
|
|
83
|
-
* Limits of workspace settings the contract validates
|
|
83
|
+
* Limits of workspace settings the contract validates.
|
|
84
84
|
*
|
|
85
85
|
* Inputs: none. Output: frozen numbers. The tag prefix stays short so that a prefixed tag still
|
|
86
86
|
* fits `MANIFEST_LIMITS.nameMaxLength` with room for the component's own name. Errors: none. Side
|
|
87
|
-
* effects: none. Marked `@__PURE__` like `MANIFEST_LIMITS
|
|
87
|
+
* effects: none. Marked `@__PURE__` like `MANIFEST_LIMITS`.
|
|
88
88
|
*/
|
|
89
89
|
export declare const WORKSPACE_LIMITS: Readonly<{
|
|
90
90
|
/** Workspace tag prefix, without the trailing hyphen (`acme`). */
|
|
@@ -94,10 +94,10 @@ export declare const WORKSPACE_LIMITS: Readonly<{
|
|
|
94
94
|
* Limits of the data API (submit, read, track) between a component and the edge.
|
|
95
95
|
*
|
|
96
96
|
* Inputs: none. Output: frozen numbers used by the data API schemas and, later, by the edge
|
|
97
|
-
*
|
|
97
|
+
* before it parses a body. Errors: none. Side effects: none.
|
|
98
98
|
*/
|
|
99
99
|
export declare const DATA_API_LIMITS: Readonly<{
|
|
100
|
-
/** Maximum body of `POST /d/<siteKey>/<collection>` in bytes
|
|
100
|
+
/** Maximum body of `POST /d/<siteKey>/<collection>` in bytes. */
|
|
101
101
|
submitBodyMaxBytes: 32768;
|
|
102
102
|
/** Maximum body of a `track` beacon in bytes. */
|
|
103
103
|
trackBodyMaxBytes: 2048;
|
|
@@ -115,7 +115,7 @@ export declare const DATA_API_LIMITS: Readonly<{
|
|
|
115
115
|
maxErrorFields: 50;
|
|
116
116
|
}>;
|
|
117
117
|
/**
|
|
118
|
-
* Limits of the consent proof a submission carries (
|
|
118
|
+
* Limits of the consent proof a submission carries (`consent` of the data API's
|
|
119
119
|
* `submit`). Apart from `DATA_API_LIMITS` on purpose: the SDK bundles that object (its transports
|
|
120
120
|
* read it), and only the server-side schema reads these; the `@__PURE__` mark lets a bundler drop
|
|
121
121
|
* them from a component that imports another limit (esbuild keeps an unmarked `Object.freeze` call).
|
|
@@ -130,9 +130,9 @@ export declare const CONSENT_PROOF_LIMITS: Readonly<{
|
|
|
130
130
|
consentLocaleMaxLength: 35;
|
|
131
131
|
}>;
|
|
132
132
|
/**
|
|
133
|
-
* Limits of the `locales` declaration of a manifest (
|
|
133
|
+
* Limits of the `locales` declaration of a manifest (contract 1.2): the languages a
|
|
134
134
|
* component ships messages for. Apart from `MANIFEST_LIMITS` for the same reason as
|
|
135
|
-
* `CONSENT_PROOF_LIMITS`: the SDK bundled that whole object until
|
|
135
|
+
* `CONSENT_PROOF_LIMITS`: the SDK bundled that whole object until the limits were split (the runtime still
|
|
136
136
|
* does), and only the manifest schema reads these.
|
|
137
137
|
*
|
|
138
138
|
* Inputs: none. Output: frozen numbers used by the manifest schema. Errors: none. Side effects:
|
|
@@ -150,8 +150,8 @@ export declare const LOCALE_LIMITS: Readonly<{
|
|
|
150
150
|
maxMessagesPerLocale: 2000;
|
|
151
151
|
}>;
|
|
152
152
|
/**
|
|
153
|
-
* Limits of the `assets` declaration of a manifest (
|
|
154
|
-
* imports (images and fonts), which the builder
|
|
153
|
+
* Limits of the `assets` declaration of a manifest (contract 1.3): the files a component
|
|
154
|
+
* imports (images and fonts), which the builder lists after bundling. These are the
|
|
155
155
|
* contract's hard bounds; each plan sets tighter ones, which the builder applies. Apart from
|
|
156
156
|
* `MANIFEST_LIMITS` for the same reason as `LOCALE_LIMITS`.
|
|
157
157
|
*
|
package/dist/limits.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"limits.d.ts","sourceRoot":"","sources":["../src/limits.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAWH,kGAAkG;AAClG,eAAO,MAAM,eAAe,QAAS,CAAC;AACtC,6EAA6E;AAC7E,eAAO,MAAM,iBAAiB,QAAS,CAAC;AACxC,0EAA0E;AAC1E,eAAO,MAAM,eAAe,OAAQ,CAAC;AACrC,uDAAuD;AACvD,eAAO,MAAM,cAAc,OAAQ,CAAC;AAEpC;;;;;;GAMG;AACH,eAAO,MAAM,eAAe;IAC1B,8EAA8E;;IAE9E,iDAAiD;;;;IAIjD,4FAA4F;;IAE5F,sFAAsF;;;;;;;;;;;;;;;IAetF,gEAAgE;;IAEhE,0EAA0E;;IAE1E,wEAAwE;;IAExE,kEAAkE;;IAElE,6FAA6F;;IAE7F,uDAAuD;;IAEvD,
|
|
1
|
+
{"version":3,"file":"limits.d.ts","sourceRoot":"","sources":["../src/limits.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAWH,kGAAkG;AAClG,eAAO,MAAM,eAAe,QAAS,CAAC;AACtC,6EAA6E;AAC7E,eAAO,MAAM,iBAAiB,QAAS,CAAC;AACxC,0EAA0E;AAC1E,eAAO,MAAM,eAAe,OAAQ,CAAC;AACrC,u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