@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style-references.js","sourceRoot":"","sources":["../src/style-references.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,WAAW,EAA0B,MAAM,iBAAiB,CAAC;AAElF,yFAAyF;AACzF,MAAM,CAAC,MAAM,sBAAsB,GAAG,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"style-references.js","sourceRoot":"","sources":["../src/style-references.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,WAAW,EAA0B,MAAM,iBAAiB,CAAC;AAElF,yFAAyF;AACzF,MAAM,CAAC,MAAM,sBAAsB,GAAG,EAAE,CAAC;AA4CzC,0EAA0E;AAC1E,SAAS,eAAe,CAAC,MAAwB,EAAE,IAAY;IAC7D,KAAK,IAAI,CAAC,G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,CAAC,CAAC,EAAE,QAAQ,MAAM,CAAC,IAAI,CAAC,YAAY,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QACpI,MAAM,CAAC,IAAI,CAAC;YACV,IAAI;YACJ,IAAI;YACJ,KAAK,EAAE,SAAS,CAAC,KAAK;YACtB,IAAI;YACJ,MAAM;YACN,OAAO,EAAE,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,CAAC;SACzC,CAAC,CAAC;IACL,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The two mailboxes the error and diagnostic texts send a reader to: `SUPPORT_EMAIL`
|
|
3
|
+
* for "write to support" and `ABUSE_EMAIL` for the abuse channel. They are the mailboxes the
|
|
4
|
+
* Terms and the public site list (`apps/site/src/company.ts`, checked equal by a site test), so a
|
|
5
|
+
* hint that says "write to us" always carries the address next to it. Zod-free.
|
|
6
|
+
*/
|
|
7
|
+
/** Where a customer writes for help with a failure Taggor caused or a suspension. */
|
|
8
|
+
export declare const SUPPORT_EMAIL = "contact@taggor.dev";
|
|
9
|
+
/** Where a person reports abuse when the form is unavailable. */
|
|
10
|
+
export declare const ABUSE_EMAIL = "abuse@taggor.dev";
|
|
11
|
+
//# sourceMappingURL=support-contact.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"support-contact.d.ts","sourceRoot":"","sources":["../src/support-contact.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,qFAAqF;AACrF,eAAO,MAAM,aAAa,uBAAuB,CAAC;AAElD,iEAAiE;AACjE,eAAO,MAAM,WAAW,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The two mailboxes the error and diagnostic texts send a reader to: `SUPPORT_EMAIL`
|
|
3
|
+
* for "write to support" and `ABUSE_EMAIL` for the abuse channel. They are the mailboxes the
|
|
4
|
+
* Terms and the public site list (`apps/site/src/company.ts`, checked equal by a site test), so a
|
|
5
|
+
* hint that says "write to us" always carries the address next to it. Zod-free.
|
|
6
|
+
*/
|
|
7
|
+
/** Where a customer writes for help with a failure Taggor caused or a suspension. */
|
|
8
|
+
export const SUPPORT_EMAIL = "contact@taggor.dev";
|
|
9
|
+
/** Where a person reports abuse when the form is unavailable. */
|
|
10
|
+
export const ABUSE_EMAIL = "abuse@taggor.dev";
|
|
11
|
+
//# sourceMappingURL=support-contact.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"support-contact.js","sourceRoot":"","sources":["../src/support-contact.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,qFAAqF;AACrF,MAAM,CAAC,MAAM,aAAa,GAAG,oBAAoB,CAAC;AAElD,iEAAiE;AACjE,MAAM,CAAC,MAAM,WAAW,GAAG,kBAAkB,CAAC"}
|
package/dist/tag-name.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Custom element tag rules of component contract v1
|
|
2
|
+
* Custom element tag rules of component contract v1: the tag pattern,
|
|
3
3
|
* the reserved names and prefix, the optional workspace tag prefix, and the explanation plus a
|
|
4
4
|
* valid suggestion for any refused name.
|
|
5
5
|
*
|
|
6
6
|
* The accepted set is a strict ASCII subset of the HTML "valid custom element name" (lowercase
|
|
7
7
|
* letters, digits and single hyphens, starting with a letter, at least one hyphen), minus the names
|
|
8
8
|
* the HTML spec reserves and the `taggor-` prefix. Everything here is pure: uniqueness inside a
|
|
9
|
-
* workspace and the workspace prefix are enforced by the API when a component is created
|
|
10
|
-
* what the runtime does when a tag is already defined on the page is
|
|
9
|
+
* workspace and the workspace prefix are enforced by the API when a component is created;
|
|
10
|
+
* what the runtime does when a tag is already defined on the page is described in the runtime guide.
|
|
11
11
|
*/
|
|
12
12
|
import * as z from "zod";
|
|
13
13
|
/**
|
|
@@ -15,7 +15,7 @@ import * as z from "zod";
|
|
|
15
15
|
* elements); `customElements.define` throws for them.
|
|
16
16
|
*/
|
|
17
17
|
export declare const RESERVED_TAG_NAMES: readonly ["annotation-xml", "color-profile", "font-face", "font-face-src", "font-face-uri", "font-face-format", "font-face-name", "missing-glyph"];
|
|
18
|
-
/** Prefix kept for elements Taggor itself defines (for example the generic tag
|
|
18
|
+
/** Prefix kept for elements Taggor itself defines (for example the generic tag). */
|
|
19
19
|
export declare const RESERVED_TAG_PREFIX = "taggor-";
|
|
20
20
|
/** Custom element name: ASCII subset of the HTML spec, hyphen required, deny lists applied. */
|
|
21
21
|
export declare const TAG_NAME_PATTERN: RegExp;
|
|
@@ -65,7 +65,7 @@ export declare function tagNameProblems(tag: string, workspacePrefix?: string):
|
|
|
65
65
|
export declare function suggestTagName(input: string, workspacePrefix?: string): string;
|
|
66
66
|
/**
|
|
67
67
|
* Checks a tag against every rule, including the workspace prefix when there is one. This is the
|
|
68
|
-
* check the API runs when a component is created (
|
|
68
|
+
* check the API runs when a component is created (`invalid_tag_name` with the message in
|
|
69
69
|
* `detail`); uniqueness inside the workspace needs storage and stays in the API.
|
|
70
70
|
*
|
|
71
71
|
* Inputs: the tag and, optionally, a workspace prefix accepted by `workspaceTagPrefixSchema`.
|
|
@@ -74,7 +74,7 @@ export declare function suggestTagName(input: string, workspacePrefix?: string):
|
|
|
74
74
|
*/
|
|
75
75
|
export declare function checkTagName(tag: string, workspacePrefix?: string): TagNameCheck;
|
|
76
76
|
/**
|
|
77
|
-
* Custom element tag of a manifest. Workspace prefixes are checked by the API
|
|
77
|
+
* Custom element tag of a manifest. Workspace prefixes are checked by the API, not here:
|
|
78
78
|
* the same manifest serves several workspaces (templates). The error message says what is wrong and
|
|
79
79
|
* suggests a valid tag.
|
|
80
80
|
*/
|
package/dist/tag-name.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag-name.d.ts","sourceRoot":"","sources":["../src/tag-name.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAC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KAAK,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,MAAM,GAAG,MAAM,CAgB9E;AAkCD;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,eAAe,CAAC,EAAE,MAAM,GAAG,YAAY,CAKhF;AAQD;;;;GAIG;AACH,eAAO,MAAM,aAAa,aAMA,CAAC;AAE3B;;;GAGG;AACH,eAAO,MAAM,wBAAwB,aAOA,CAAC"}
|
package/dist/tag-name.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Custom element tag rules of component contract v1
|
|
2
|
+
* Custom element tag rules of component contract v1: the tag pattern,
|
|
3
3
|
* the reserved names and prefix, the optional workspace tag prefix, and the explanation plus a
|
|
4
4
|
* valid suggestion for any refused name.
|
|
5
5
|
*
|
|
6
6
|
* The accepted set is a strict ASCII subset of the HTML "valid custom element name" (lowercase
|
|
7
7
|
* letters, digits and single hyphens, starting with a letter, at least one hyphen), minus the names
|
|
8
8
|
* the HTML spec reserves and the `taggor-` prefix. Everything here is pure: uniqueness inside a
|
|
9
|
-
* workspace and the workspace prefix are enforced by the API when a component is created
|
|
10
|
-
* what the runtime does when a tag is already defined on the page is
|
|
9
|
+
* workspace and the workspace prefix are enforced by the API when a component is created;
|
|
10
|
+
* what the runtime does when a tag is already defined on the page is described in the runtime guide.
|
|
11
11
|
*/
|
|
12
12
|
import * as z from "zod";
|
|
13
13
|
import { MANIFEST_LIMITS, WORKSPACE_LIMITS } from "./limits.js";
|
|
@@ -25,7 +25,7 @@ export const RESERVED_TAG_NAMES = Object.freeze([
|
|
|
25
25
|
"font-face-name",
|
|
26
26
|
"missing-glyph",
|
|
27
27
|
]);
|
|
28
|
-
/** Prefix kept for elements Taggor itself defines (for example the generic tag
|
|
28
|
+
/** Prefix kept for elements Taggor itself defines (for example the generic tag). */
|
|
29
29
|
export const RESERVED_TAG_PREFIX = "taggor-";
|
|
30
30
|
/** Custom element name: ASCII subset of the HTML spec, hyphen required, deny lists applied. */
|
|
31
31
|
export const TAG_NAME_PATTERN = new RegExp(`^(?!${RESERVED_TAG_PREFIX})(?!(?:${RESERVED_TAG_NAMES.join("|")})$)[a-z][a-z0-9]*(?:-[a-z0-9]+)+$`);
|
|
@@ -169,13 +169,13 @@ function refusalMessage(tag, problems, workspacePrefix) {
|
|
|
169
169
|
hint += `, or "${PREFIX_PLACEHOLDER}${prefixed}" if your workspace sets a tag prefix`;
|
|
170
170
|
}
|
|
171
171
|
const message = `${rules}; ${echo(tag)}: ${why}. ${hint}`;
|
|
172
|
-
// Keeps the length error's historical lead
|
|
172
|
+
// Keeps the length error's historical lead, which clients may already match on.
|
|
173
173
|
const lead = problems.includes("too-long") ? `${LENGTH_TEXT}. ` : "";
|
|
174
174
|
return { message: lead + message, suggestion };
|
|
175
175
|
}
|
|
176
176
|
/**
|
|
177
177
|
* Checks a tag against every rule, including the workspace prefix when there is one. This is the
|
|
178
|
-
* check the API runs when a component is created (
|
|
178
|
+
* check the API runs when a component is created (`invalid_tag_name` with the message in
|
|
179
179
|
* `detail`); uniqueness inside the workspace needs storage and stays in the API.
|
|
180
180
|
*
|
|
181
181
|
* Inputs: the tag and, optionally, a workspace prefix accepted by `workspaceTagPrefixSchema`.
|
|
@@ -196,7 +196,7 @@ function manifestTagError(issue) {
|
|
|
196
196
|
return refusalMessage(tag, tagNameProblems(tag), undefined).message;
|
|
197
197
|
}
|
|
198
198
|
/**
|
|
199
|
-
* Custom element tag of a manifest. Workspace prefixes are checked by the API
|
|
199
|
+
* Custom element tag of a manifest. Workspace prefixes are checked by the API, not here:
|
|
200
200
|
* the same manifest serves several workspaces (templates). The error message says what is wrong and
|
|
201
201
|
* suggests a valid tag.
|
|
202
202
|
*/
|
package/dist/tag-name.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag-name.js","sourceRoot":"","sources":["../src/tag-name.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH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G;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC;KAC3B,MAAM,EAAE;IACT,4EAA4E;KAC3E,GAAG,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;KAChD,GAAG,CAAC,eAAe,CAAC,aAAa,EAAE,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;KAC5E,KAAK,CAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,gBAAgB,EAAE,CAAC;KACpD,IAAI,CAAC,EAAE,EAAE,EAAE,SAAS,EAAE,CAAC,CAAC;AAE3B;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC;KACtC,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,gBAAgB,CAAC,kBAAkB,CAAC;KACxC,KAAK,CAAC,4BAA4B,EAAE;IACnC,KAAK,EAAE,kNAAkN,mBAAmB,GAAG;CAChP,CAAC;KACD,IAAI,CAAC,EAAE,EAAE,EAAE,oBAAoB,EAAE,CAAC,CAAC"}
|
package/dist/tar-writer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Tar writer for tests (
|
|
2
|
+
* Tar writer for tests (for tests): writes POSIX
|
|
3
3
|
* tar archives, so tests of the archive reader, the package validator, the builder's container
|
|
4
4
|
* and the API's upload use case can describe a source package as a list of entries, hostile ones
|
|
5
5
|
* included (symlinks, `..`, absolute paths, pax long names).
|
package/dist/testing.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `@taggor/contract/testing
|
|
2
|
+
* `@taggor/contract/testing`: test data builders for the contract's formats, shared by
|
|
3
3
|
* the tests of the contract, the builder and the API. Never imported by production code.
|
|
4
4
|
*
|
|
5
5
|
* Today: POSIX tar archives (`tarArchive`, `sourceArchive`, pax records), so a test can describe
|
package/dist/testing.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `@taggor/contract/testing
|
|
2
|
+
* `@taggor/contract/testing`: test data builders for the contract's formats, shared by
|
|
3
3
|
* the tests of the contract, the builder and the API. Never imported by production code.
|
|
4
4
|
*
|
|
5
5
|
* Today: POSIX tar archives (`tarArchive`, `sourceArchive`, pax records), so a test can describe
|
package/dist/text-codec.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Text encoding for the source package reader
|
|
2
|
+
* Text encoding for the source package reader, typed without the DOM library.
|
|
3
3
|
*
|
|
4
4
|
* `TextDecoder` and `TextEncoder` exist in every place the contract runs (Workers, Node,
|
|
5
5
|
* browsers), but the contract builds against plain ES2023 (`types: []`, no DOM), so they are read
|
|
@@ -25,7 +25,7 @@ interface Encoder {
|
|
|
25
25
|
export declare const strictUtf8: Decoder;
|
|
26
26
|
/**
|
|
27
27
|
* Strict UTF-8 that keeps a leading U+FEFF, for tar names and pax keys and values: a dropped BOM
|
|
28
|
-
* would make this reader see another name than bsdtar
|
|
28
|
+
* would make this reader see another name than bsdtar.
|
|
29
29
|
*/
|
|
30
30
|
export declare const strictUtf8KeepingBom: Decoder;
|
|
31
31
|
/** Latin-1: one character per byte, never throws (tar's numeric fields). */
|
package/dist/text-codec.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Text encoding for the source package reader
|
|
2
|
+
* Text encoding for the source package reader, typed without the DOM library.
|
|
3
3
|
*
|
|
4
4
|
* `TextDecoder` and `TextEncoder` exist in every place the contract runs (Workers, Node,
|
|
5
5
|
* browsers), but the contract builds against plain ES2023 (`types: []`, no DOM), so they are read
|
|
@@ -19,7 +19,7 @@ export const strictUtf8 = new codecs.TextDecoder("utf-8", {
|
|
|
19
19
|
});
|
|
20
20
|
/**
|
|
21
21
|
* Strict UTF-8 that keeps a leading U+FEFF, for tar names and pax keys and values: a dropped BOM
|
|
22
|
-
* would make this reader see another name than bsdtar
|
|
22
|
+
* would make this reader see another name than bsdtar.
|
|
23
23
|
*/
|
|
24
24
|
export const strictUtf8KeepingBom = new codecs.TextDecoder("utf-8", {
|
|
25
25
|
fatal: true,
|
package/dist/url-value.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export declare function isAllowedUrl(text: unknown, protocols: readonly UrlProto
|
|
|
32
32
|
/**
|
|
33
33
|
* `isAllowedUrl(text, WEB_URL_PROTOCOLS)` without the `mailto:` rule, which it can never need: the
|
|
34
34
|
* `url` string format of value schemas uses it, so a bundle that only checks values (the SDK's
|
|
35
|
-
* `track
|
|
35
|
+
* `track`) leaves the `mailto:` code out (size budget).
|
|
36
36
|
*
|
|
37
37
|
* Inputs: any value. Output: `true` only for an `https://` or `http://` URL that `isAllowedUrl`
|
|
38
38
|
* accepts with those schemes. Errors: none. Side effects: none.
|
package/dist/url-value.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* URL values of component contract v1 without Zod (
|
|
2
|
+
* URL values of component contract v1 without Zod (made Zod-free and stricter):
|
|
3
3
|
* the scheme allowlist, the text rule and `isAllowedUrl`, shared by `url` props (default, attribute
|
|
4
4
|
* and property) and by the `url` string format of value schemas.
|
|
5
5
|
*
|
|
@@ -10,15 +10,15 @@
|
|
|
10
10
|
* `JaVaScRiPt:` and scheme-relative `//host` are impossible. The WHATWG URL parser then confirms the
|
|
11
11
|
* text is a URL and that its scheme is the one the text starts with.
|
|
12
12
|
*
|
|
13
|
-
*
|
|
14
|
-
* a reader sees: `http`/`https` refuse userinfo (`https://good.com@evil.com` goes to `evil.com`),
|
|
13
|
+
* Two ways a URL could say something other than what
|
|
14
|
+
* a reader sees are closed: `http`/`https` refuse userinfo (`https://good.com@evil.com` goes to `evil.com`),
|
|
15
15
|
* and `mailto:` takes exactly one address (no `,` list, no percent-encoding) with only the
|
|
16
16
|
* `subject` and `body` fields, so `cc`, `bcc`, `to` and any other header cannot add recipients;
|
|
17
17
|
* the whole text is checked (no `#`, one `?`, no `;` in values, encoded line breaks only in
|
|
18
18
|
* `body`), because the whole text is what reaches `href`.
|
|
19
19
|
* A scheme a declaration lists but `URL_PROTOCOLS` does not know (a newer contract, a hand-made
|
|
20
20
|
* manifest) is denied, never turned into a pattern.
|
|
21
|
-
*
|
|
21
|
+
* The length cap is the plain `URL_MAX_LENGTH`, so a component bundle does not carry the
|
|
22
22
|
* whole `MANIFEST_LIMITS` object for it.
|
|
23
23
|
*/
|
|
24
24
|
import { URL_MAX_LENGTH } from "./limits.js";
|
|
@@ -78,7 +78,7 @@ function isMailtoField(field) {
|
|
|
78
78
|
}
|
|
79
79
|
/**
|
|
80
80
|
* `mailto:` text after the scheme, all of it (the whole text reaches `href`, so nothing may hide
|
|
81
|
-
* after a `#` or a second
|
|
81
|
+
* after a `#` or a second `?`): one address that `EMAIL_PATTERN`
|
|
82
82
|
* accepts as written (no comma list, no percent-encoded `@` or `,`), then optionally one `?` with
|
|
83
83
|
* `subject`/`body` fields only. No `#` at all. Field names are compared as written,
|
|
84
84
|
* case-insensitively (an encoded name is refused); no value holds `;`, and only `body` may hold
|
|
@@ -135,7 +135,7 @@ export function isAllowedUrl(text, protocols) {
|
|
|
135
135
|
/**
|
|
136
136
|
* `isAllowedUrl(text, WEB_URL_PROTOCOLS)` without the `mailto:` rule, which it can never need: the
|
|
137
137
|
* `url` string format of value schemas uses it, so a bundle that only checks values (the SDK's
|
|
138
|
-
* `track
|
|
138
|
+
* `track`) leaves the `mailto:` code out (size budget).
|
|
139
139
|
*
|
|
140
140
|
* Inputs: any value. Output: `true` only for an `https://` or `http://` URL that `isAllowedUrl`
|
|
141
141
|
* accepts with those schemes. Errors: none. Side effects: none.
|
package/dist/usage-guard.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The anomaly guard of the render count
|
|
2
|
+
* The anomaly guard of the render count the pure rule that turns
|
|
3
3
|
* what the loader hit points say into the count a rendering cut may be judged on.
|
|
4
4
|
*
|
|
5
5
|
* Why it exists: the site key and its allowed domains are public, so anyone can forge loader hits
|
|
@@ -7,49 +7,49 @@
|
|
|
7
7
|
* cut of someone's components must never rest on it. The guarded count differs from the raw one in
|
|
8
8
|
* three ways, all of which can only LOWER it (every doubt falls on the customer's side):
|
|
9
9
|
* 1. only human-class traffic counts (the readers filter it; bots are kept for audit);
|
|
10
|
-
* 2. only deliveries that name their network count at all (
|
|
10
|
+
* 2. only deliveries that name their network count at all (the network is written in a
|
|
11
11
|
* point of its own, without the visitor hash, so a request under a honored `Sec-GPC: 1` or
|
|
12
12
|
* without a known ASN adds nothing here);
|
|
13
13
|
* 3. no network source (an ASN) may contribute more than `sourceShare` of the cut line, so one
|
|
14
14
|
* network alone can never move a workspace over it: more than `1 / sourceShare` (ten) networks
|
|
15
15
|
* are needed.
|
|
16
|
-
* What it does NOT stop: a botnet spread over many networks that stays under the
|
|
16
|
+
* What it does NOT stop: a botnet spread over many networks that stays under the surge rule. That is
|
|
17
17
|
* why the cut also needs the open-flag exclusion (`suspectSiteKeys`: an open flag only holds the Free cut, it never holds a bill) and the
|
|
18
|
-
* owner's approval of the cut line
|
|
18
|
+
* owner's approval of the cut line; the cut flag stays off until then.
|
|
19
19
|
*
|
|
20
|
-
* Zod-free. Privacy: a source is an ASN (a network, not a person); the visitor hash is never read here and never sits in the same point as the ASN
|
|
20
|
+
* Zod-free. Privacy: a source is an ASN (a network, not a person); the visitor hash is never read here and never sits in the same point as the ASN.
|
|
21
21
|
*/
|
|
22
22
|
/**
|
|
23
23
|
* The provisional numbers of the guard. The cut line it judges a count against is the caller's
|
|
24
|
-
* (Free: 1x its number, `OVERAGE_RULES.freeCutMultiple
|
|
24
|
+
* (Free: 1x its number, `OVERAGE_RULES.freeCutMultiple`).
|
|
25
25
|
*/
|
|
26
26
|
export declare const USAGE_GUARD: Readonly<{
|
|
27
27
|
/**
|
|
28
|
-
* The most one source may add, as a share of the cut line. 0.10
|
|
28
|
+
* The most one source may add, as a share of the cut line. 0.10 (it was 0.25): the guard
|
|
29
29
|
* counts deliveries per network now, so one machine of one network reaches the cap; at 0.25 two VPS networks
|
|
30
30
|
* took the count to 1.5 times the allowance and could trigger the notice of an honest customer. At 0.10 a
|
|
31
31
|
* network adds at most 0.3 times the allowance and more than ten are needed to cross the line. A flood
|
|
32
|
-
* from many networks can still raise a notice; the cut needs the flag and a person
|
|
32
|
+
* from many networks can still raise a notice; the cut needs the flag and a person.
|
|
33
33
|
*/
|
|
34
34
|
sourceShare: 0.1;
|
|
35
35
|
/**
|
|
36
|
-
* The share when the line is the allowance itself (
|
|
36
|
+
* The share when the line is the allowance itself (the Free plan is cut at 1x, no
|
|
37
37
|
* grace). Cutting at 1x instead of 3x makes a forged flood three times cheaper, so each network adds half
|
|
38
38
|
* as much (5% of the line): more than TWENTY networks are needed to cross it (exactly twenty reach the line, and the cut reads
|
|
39
|
-
* the count ABOVE it
|
|
39
|
+
* the count ABOVE it), where the 3x line needed
|
|
40
40
|
* more than ten at 30% of an allowance each. The cut still needs the open-flag exclusion and the 100% notice.
|
|
41
41
|
*/
|
|
42
42
|
freeSourceShare: 0.05;
|
|
43
43
|
}>;
|
|
44
44
|
/**
|
|
45
|
-
* The
|
|
45
|
+
* The surge rule of a site's stored submissions: the daily signal that feeds `suspectSites`: it
|
|
46
46
|
* protects the Free cut by count (review B2) and triggers the customer's unusual-traffic e-mail. It never
|
|
47
|
-
* holds or changes a bill (
|
|
47
|
+
* holds or changes a bill (a customer pays what was used). A
|
|
48
48
|
* stored submission keeps no network (visitor privacy), so the guard of the renders (per network) is
|
|
49
49
|
* not possible; the signal is the SITE's own daily rate against its own baseline and an absolute floor,
|
|
50
50
|
* the same shape as `VIEW_SPIKE_RULE` (see `detectViewSpikes`, which judges both). A day with more than
|
|
51
|
-
* `multiplier` times the mean of the `baselineDays` days before it, and at least the floor, is a
|
|
52
|
-
*
|
|
51
|
+
* `multiplier` times the mean of the `baselineDays` days before it, and at least the floor, is a surge.
|
|
52
|
+
* Provisional. What it does not catch: steady forging under the floor (bounded by
|
|
53
53
|
* the floor times the days, per site) and a slow ramp.
|
|
54
54
|
*/
|
|
55
55
|
export declare const SUBMISSION_SPIKE_RULE: Readonly<{
|
|
@@ -59,7 +59,7 @@ export declare const SUBMISSION_SPIKE_RULE: Readonly<{
|
|
|
59
59
|
minCount: 50;
|
|
60
60
|
}>;
|
|
61
61
|
/**
|
|
62
|
-
* The submissions
|
|
62
|
+
* The submissions surge rule of a plan.
|
|
63
63
|
* Inputs: the plan's submissions per month. Output: the rule with the plan's floor: the lower of
|
|
64
64
|
* `SUBMISSION_SPIKE_RULE.minCount` and a thirtieth of the month (at least 1), so a Free site (250 a
|
|
65
65
|
* month) is judged at 8 a day. Shaped like `ViewSpikeRule` so `detectViewSpikes` reads it. Pure.
|
|
@@ -71,7 +71,7 @@ export declare function submissionSpikeRule(submissionsPerMonth: number): {
|
|
|
71
71
|
};
|
|
72
72
|
/**
|
|
73
73
|
* The human deliveries one network brought to one site on one UTC day, counted in the network's own
|
|
74
|
-
* point (
|
|
74
|
+
* point (never next to a visitor hash, so a distinct count per network is not possible;
|
|
75
75
|
* the per-source cap does the work a distinct count did: a loop from one place stays at its cap).
|
|
76
76
|
*/
|
|
77
77
|
export interface SourceDay {
|
package/dist/usage-guard.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The anomaly guard of the render count
|
|
2
|
+
* The anomaly guard of the render count the pure rule that turns
|
|
3
3
|
* what the loader hit points say into the count a rendering cut may be judged on.
|
|
4
4
|
*
|
|
5
5
|
* Why it exists: the site key and its allowed domains are public, so anyone can forge loader hits
|
|
@@ -7,49 +7,49 @@
|
|
|
7
7
|
* cut of someone's components must never rest on it. The guarded count differs from the raw one in
|
|
8
8
|
* three ways, all of which can only LOWER it (every doubt falls on the customer's side):
|
|
9
9
|
* 1. only human-class traffic counts (the readers filter it; bots are kept for audit);
|
|
10
|
-
* 2. only deliveries that name their network count at all (
|
|
10
|
+
* 2. only deliveries that name their network count at all (the network is written in a
|
|
11
11
|
* point of its own, without the visitor hash, so a request under a honored `Sec-GPC: 1` or
|
|
12
12
|
* without a known ASN adds nothing here);
|
|
13
13
|
* 3. no network source (an ASN) may contribute more than `sourceShare` of the cut line, so one
|
|
14
14
|
* network alone can never move a workspace over it: more than `1 / sourceShare` (ten) networks
|
|
15
15
|
* are needed.
|
|
16
|
-
* What it does NOT stop: a botnet spread over many networks that stays under the
|
|
16
|
+
* What it does NOT stop: a botnet spread over many networks that stays under the surge rule. That is
|
|
17
17
|
* why the cut also needs the open-flag exclusion (`suspectSiteKeys`: an open flag only holds the Free cut, it never holds a bill) and the
|
|
18
|
-
* owner's approval of the cut line
|
|
18
|
+
* owner's approval of the cut line; the cut flag stays off until then.
|
|
19
19
|
*
|
|
20
|
-
* Zod-free. Privacy: a source is an ASN (a network, not a person); the visitor hash is never read here and never sits in the same point as the ASN
|
|
20
|
+
* Zod-free. Privacy: a source is an ASN (a network, not a person); the visitor hash is never read here and never sits in the same point as the ASN.
|
|
21
21
|
*/
|
|
22
22
|
/**
|
|
23
23
|
* The provisional numbers of the guard. The cut line it judges a count against is the caller's
|
|
24
|
-
* (Free: 1x its number, `OVERAGE_RULES.freeCutMultiple
|
|
24
|
+
* (Free: 1x its number, `OVERAGE_RULES.freeCutMultiple`).
|
|
25
25
|
*/
|
|
26
26
|
export const USAGE_GUARD = Object.freeze({
|
|
27
27
|
/**
|
|
28
|
-
* The most one source may add, as a share of the cut line. 0.10
|
|
28
|
+
* The most one source may add, as a share of the cut line. 0.10 (it was 0.25): the guard
|
|
29
29
|
* counts deliveries per network now, so one machine of one network reaches the cap; at 0.25 two VPS networks
|
|
30
30
|
* took the count to 1.5 times the allowance and could trigger the notice of an honest customer. At 0.10 a
|
|
31
31
|
* network adds at most 0.3 times the allowance and more than ten are needed to cross the line. A flood
|
|
32
|
-
* from many networks can still raise a notice; the cut needs the flag and a person
|
|
32
|
+
* from many networks can still raise a notice; the cut needs the flag and a person.
|
|
33
33
|
*/
|
|
34
34
|
sourceShare: 0.1,
|
|
35
35
|
/**
|
|
36
|
-
* The share when the line is the allowance itself (
|
|
36
|
+
* The share when the line is the allowance itself (the Free plan is cut at 1x, no
|
|
37
37
|
* grace). Cutting at 1x instead of 3x makes a forged flood three times cheaper, so each network adds half
|
|
38
38
|
* as much (5% of the line): more than TWENTY networks are needed to cross it (exactly twenty reach the line, and the cut reads
|
|
39
|
-
* the count ABOVE it
|
|
39
|
+
* the count ABOVE it), where the 3x line needed
|
|
40
40
|
* more than ten at 30% of an allowance each. The cut still needs the open-flag exclusion and the 100% notice.
|
|
41
41
|
*/
|
|
42
42
|
freeSourceShare: 0.05,
|
|
43
43
|
});
|
|
44
44
|
/**
|
|
45
|
-
* The
|
|
45
|
+
* The surge rule of a site's stored submissions: the daily signal that feeds `suspectSites`: it
|
|
46
46
|
* protects the Free cut by count (review B2) and triggers the customer's unusual-traffic e-mail. It never
|
|
47
|
-
* holds or changes a bill (
|
|
47
|
+
* holds or changes a bill (a customer pays what was used). A
|
|
48
48
|
* stored submission keeps no network (visitor privacy), so the guard of the renders (per network) is
|
|
49
49
|
* not possible; the signal is the SITE's own daily rate against its own baseline and an absolute floor,
|
|
50
50
|
* the same shape as `VIEW_SPIKE_RULE` (see `detectViewSpikes`, which judges both). A day with more than
|
|
51
|
-
* `multiplier` times the mean of the `baselineDays` days before it, and at least the floor, is a
|
|
52
|
-
*
|
|
51
|
+
* `multiplier` times the mean of the `baselineDays` days before it, and at least the floor, is a surge.
|
|
52
|
+
* Provisional. What it does not catch: steady forging under the floor (bounded by
|
|
53
53
|
* the floor times the days, per site) and a slow ramp.
|
|
54
54
|
*/
|
|
55
55
|
export const SUBMISSION_SPIKE_RULE = Object.freeze({
|
|
@@ -59,7 +59,7 @@ export const SUBMISSION_SPIKE_RULE = Object.freeze({
|
|
|
59
59
|
minCount: 50,
|
|
60
60
|
});
|
|
61
61
|
/**
|
|
62
|
-
* The submissions
|
|
62
|
+
* The submissions surge rule of a plan.
|
|
63
63
|
* Inputs: the plan's submissions per month. Output: the rule with the plan's floor: the lower of
|
|
64
64
|
* `SUBMISSION_SPIKE_RULE.minCount` and a thirtieth of the month (at least 1), so a Free site (250 a
|
|
65
65
|
* month) is judged at 8 a day. Shaped like `ViewSpikeRule` so `detectViewSpikes` reads it. Pure.
|
package/dist/usage-mirror.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The `quota:<workspaceId>` mirror
|
|
2
|
+
* The `quota:<workspaceId>` mirror: the workspace's usage as the API's hourly job last
|
|
3
3
|
* measured it, in the Workers KV namespace the edge already reads, so a consumer on the request
|
|
4
|
-
* path (the edge;
|
|
4
|
+
* path (the edge; enforces from it) never queries Postgres or the Analytics Engine.
|
|
5
5
|
* Written by apps/api (application/usage/usage-mirror.ts), read by whoever enforces. Zod-free.
|
|
6
6
|
*
|
|
7
7
|
* It is approximate and about an hour old or more by design. `enforceableRenders` leaves out the
|
|
8
|
-
* sites whose render count looks forged (`suspectSiteKeys`: an open
|
|
8
|
+
* sites whose render count looks forged (`suspectSiteKeys`: an open surge flag, or one a person
|
|
9
9
|
* closed as forged): a reader must act on it, never on `renders.used`. The guard catches sudden
|
|
10
|
-
*
|
|
10
|
+
* surges only; a slow ramp or steady forging under the plan's daily floor passes it (bounded by
|
|
11
11
|
* the plan, `spikeMinViews`). So a reader must never cut or degrade a workspace on renders alone:
|
|
12
|
-
* a person looks first
|
|
12
|
+
* a person looks first.
|
|
13
13
|
*/
|
|
14
14
|
import type { UsageLevel } from "./plan-usage.js";
|
|
15
15
|
/** Layout version; a reader of a newer one treats the mirror as absent. */
|
package/dist/value-check.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export declare function accepted<T>(value: T): ValueOutcome<T>;
|
|
|
23
23
|
export declare function refused(problem: ValueProblem): ValueOutcome<never>;
|
|
24
24
|
/**
|
|
25
25
|
* Length of a string in Unicode code points, the one unit of every string value limit in the
|
|
26
|
-
* contract (
|
|
26
|
+
* contract (`SPEC.md` "Unidade de tamanho de string"): a surrogate pair counts as one
|
|
27
27
|
* and a lone surrogate as one, exactly as Zod's string `min`/`max` and JSON Schema's
|
|
28
28
|
* `minLength`/`maxLength` (Ajv with its default `unicode: true`) count.
|
|
29
29
|
*
|
|
@@ -45,17 +45,17 @@ export declare const FIELD_NAME_SHAPE: RegExp;
|
|
|
45
45
|
* with a new array or object for containers (undeclared object keys dropped, like Zod's "strip"),
|
|
46
46
|
* or `{ ok: false, problem }` for the first problem (`not-allowed` for a schema `type` this release
|
|
47
47
|
* does not know, or a field name outside `FIELD_NAME_SHAPE` in a schema that was never
|
|
48
|
-
* validated). String lengths are in code points (`codePointLength
|
|
48
|
+
* validated). String lengths are in code points (`codePointLength`), as in Zod and JSON
|
|
49
49
|
* Schema. Strings without `maxLength` are capped at `MANIFEST_LIMITS.stringMaxLength`, arrays
|
|
50
50
|
* without `maxItems` at `arrayMaxItems`. Arrays are read by index from `0` to their `length`,
|
|
51
51
|
* which is read once and checked against `maxItems` first, never through `Symbol.iterator`, so a
|
|
52
52
|
* live array (own iterator, Proxy) cannot pass more items than it declares. Only own fields count:
|
|
53
|
-
* a declared field the value merely inherits is absent (
|
|
54
|
-
* by `Object.fromEntries`, never assigned
|
|
53
|
+
* a declared field the value merely inherits is absent (parity test). Fields are defined
|
|
54
|
+
* by `Object.fromEntries`, never assigned; items are appended with `push`, which only a
|
|
55
55
|
* page setter on a numeric key of `Array.prototype`/`Object.prototype` could intercept (that page
|
|
56
56
|
* breaks every array, its own included). Recursion follows the schema, which nests at most
|
|
57
57
|
* `valueSchemaDepth` levels once validated. Each call has a budget of
|
|
58
|
-
* `MANIFEST_LIMITS.maxJsonLength` work units
|
|
58
|
+
* `MANIFEST_LIMITS.maxJsonLength` work units: every visited value costs 1, a string
|
|
59
59
|
* also its UTF-16 length and an object also the number of fields its schema declares (each is
|
|
60
60
|
* read, present or not); past the budget the call stops with `too-large`. A value costs at most
|
|
61
61
|
* its JSON text length plus one per declared field it leaves out (each value takes at least one
|
|
@@ -80,7 +80,7 @@ export declare function checkValue(schema: ValueSchema, value: unknown): ValueOu
|
|
|
80
80
|
*
|
|
81
81
|
* Inputs: the text, its maximum length in UTF-16 code units (a bound on the text itself, not a
|
|
82
82
|
* value limit, so not in code points) and the maximum nesting of arrays and
|
|
83
|
-
* objects. Output: the parsed value (
|
|
83
|
+
* objects. Output: the parsed value (still unchecked against any schema: pass it to `checkValue`),
|
|
84
84
|
* or `too-long`, `too-deep` or `malformed`. Errors: none (parser errors become `malformed`).
|
|
85
85
|
* Side effects: none.
|
|
86
86
|
*/
|