@taggor/contract 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +61 -2
- package/dist/.tsbuildinfo +1 -0
- package/dist/artifact-keys.d.ts +169 -0
- package/dist/artifact-keys.d.ts.map +1 -0
- package/dist/artifact-keys.js +195 -0
- package/dist/artifact-keys.js.map +1 -0
- package/dist/assets.d.ts +72 -0
- package/dist/assets.d.ts.map +1 -0
- package/dist/assets.js +94 -0
- package/dist/assets.js.map +1 -0
- package/dist/bounded-path.d.ts +29 -0
- package/dist/bounded-path.d.ts.map +1 -0
- package/dist/bounded-path.js +57 -0
- package/dist/bounded-path.js.map +1 -0
- package/dist/bounded.d.ts +47 -0
- package/dist/bounded.d.ts.map +1 -0
- package/dist/bounded.js +93 -0
- package/dist/bounded.js.map +1 -0
- package/dist/build-diagnostic.d.ts +89 -0
- package/dist/build-diagnostic.d.ts.map +1 -0
- package/dist/build-diagnostic.js +91 -0
- package/dist/build-diagnostic.js.map +1 -0
- package/dist/component-types.d.ts +61 -0
- package/dist/component-types.d.ts.map +1 -0
- package/dist/component-types.js +277 -0
- package/dist/component-types.js.map +1 -0
- package/dist/consent-text.d.ts +31 -0
- package/dist/consent-text.d.ts.map +1 -0
- package/dist/consent-text.js +41 -0
- package/dist/consent-text.js.map +1 -0
- package/dist/contract-version.d.ts +150 -0
- package/dist/contract-version.d.ts.map +1 -0
- package/dist/contract-version.js +198 -0
- package/dist/contract-version.js.map +1 -0
- package/dist/credential-fields.d.ts +31 -0
- package/dist/credential-fields.d.ts.map +1 -0
- package/dist/credential-fields.js +36 -0
- package/dist/credential-fields.js.map +1 -0
- package/dist/css-tokens.d.ts +46 -0
- package/dist/css-tokens.d.ts.map +1 -0
- package/dist/css-tokens.js +189 -0
- package/dist/css-tokens.js.map +1 -0
- package/dist/css-value.d.ts +42 -0
- package/dist/css-value.d.ts.map +1 -0
- package/dist/css-value.js +78 -0
- package/dist/css-value.js.map +1 -0
- package/dist/data-api.d.ts +127 -0
- package/dist/data-api.d.ts.map +1 -0
- package/dist/data-api.js +167 -0
- package/dist/data-api.js.map +1 -0
- package/dist/denylist-keys.d.ts +19 -0
- package/dist/denylist-keys.d.ts.map +1 -0
- package/dist/denylist-keys.js +48 -0
- package/dist/denylist-keys.js.map +1 -0
- package/dist/diagnostic-catalog.d.ts +1402 -0
- package/dist/diagnostic-catalog.d.ts.map +1 -0
- package/dist/diagnostic-catalog.js +1311 -0
- package/dist/diagnostic-catalog.js.map +1 -0
- package/dist/dom-members.snapshot.d.ts +33 -0
- package/dist/dom-members.snapshot.d.ts.map +1 -0
- package/dist/dom-members.snapshot.js +760 -0
- package/dist/dom-members.snapshot.js.map +1 -0
- package/dist/early-loading.d.ts +27 -0
- package/dist/early-loading.d.ts.map +1 -0
- package/dist/early-loading.js +44 -0
- package/dist/early-loading.js.map +1 -0
- package/dist/error-catalog.d.ts +749 -0
- package/dist/error-catalog.d.ts.map +1 -0
- package/dist/error-catalog.js +720 -0
- package/dist/error-catalog.js.map +1 -0
- package/dist/executable-config.d.ts +35 -0
- package/dist/executable-config.d.ts.map +1 -0
- package/dist/executable-config.js +44 -0
- package/dist/executable-config.js.map +1 -0
- package/dist/freeze.d.ts +17 -0
- package/dist/freeze.d.ts.map +1 -0
- package/dist/freeze.js +29 -0
- package/dist/freeze.js.map +1 -0
- package/dist/gunzip.d.ts +33 -0
- package/dist/gunzip.d.ts.map +1 -0
- package/dist/gunzip.js +330 -0
- package/dist/gunzip.js.map +1 -0
- package/dist/hostname.d.ts +74 -0
- package/dist/hostname.d.ts.map +1 -0
- package/dist/hostname.js +215 -0
- package/dist/hostname.js.map +1 -0
- package/dist/human-actions.d.ts +49 -0
- package/dist/human-actions.d.ts.map +1 -0
- package/dist/human-actions.js +272 -0
- package/dist/human-actions.js.map +1 -0
- package/dist/index.d.ts +72 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +72 -0
- package/dist/index.js.map +1 -0
- package/dist/json-schema.d.ts +108 -0
- package/dist/json-schema.d.ts.map +1 -0
- package/dist/json-schema.js +240 -0
- package/dist/json-schema.js.map +1 -0
- package/dist/key-checksum.d.ts +33 -0
- package/dist/key-checksum.d.ts.map +1 -0
- package/dist/key-checksum.js +67 -0
- package/dist/key-checksum.js.map +1 -0
- package/dist/libraries.d.ts +60 -0
- package/dist/libraries.d.ts.map +1 -0
- package/dist/libraries.js +120 -0
- package/dist/libraries.js.map +1 -0
- package/dist/limit-catalog.d.ts +371 -0
- package/dist/limit-catalog.d.ts.map +1 -0
- package/dist/limit-catalog.js +414 -0
- package/dist/limit-catalog.js.map +1 -0
- package/dist/limits.d.ts +167 -0
- package/dist/limits.d.ts.map +1 -0
- package/dist/limits.js +175 -0
- package/dist/limits.js.map +1 -0
- package/dist/locale-tag.d.ts +21 -0
- package/dist/locale-tag.d.ts.map +1 -0
- package/dist/locale-tag.js +21 -0
- package/dist/locale-tag.js.map +1 -0
- package/dist/make-diagnostic.d.ts +74 -0
- package/dist/make-diagnostic.d.ts.map +1 -0
- package/dist/make-diagnostic.js +100 -0
- package/dist/make-diagnostic.js.map +1 -0
- package/dist/manifest-compat-diagnostics.d.ts +23 -0
- package/dist/manifest-compat-diagnostics.d.ts.map +1 -0
- package/dist/manifest-compat-diagnostics.js +150 -0
- package/dist/manifest-compat-diagnostics.js.map +1 -0
- package/dist/manifest-compat.d.ts +58 -0
- package/dist/manifest-compat.d.ts.map +1 -0
- package/dist/manifest-compat.js +377 -0
- package/dist/manifest-compat.js.map +1 -0
- package/dist/manifest.d.ts +1769 -0
- package/dist/manifest.d.ts.map +1 -0
- package/dist/manifest.js +421 -0
- package/dist/manifest.js.map +1 -0
- package/dist/metering.d.ts +126 -0
- package/dist/metering.d.ts.map +1 -0
- package/dist/metering.js +147 -0
- package/dist/metering.js.map +1 -0
- package/dist/migrate.d.ts +70 -0
- package/dist/migrate.d.ts.map +1 -0
- package/dist/migrate.js +159 -0
- package/dist/migrate.js.map +1 -0
- package/dist/names.d.ts +37 -0
- package/dist/names.d.ts.map +1 -0
- package/dist/names.js +55 -0
- package/dist/names.js.map +1 -0
- package/dist/overage-pricing.d.ts +89 -0
- package/dist/overage-pricing.d.ts.map +1 -0
- package/dist/overage-pricing.js +170 -0
- package/dist/overage-pricing.js.map +1 -0
- package/dist/plan-ids.d.ts +10 -0
- package/dist/plan-ids.d.ts.map +1 -0
- package/dist/plan-ids.js +8 -0
- package/dist/plan-ids.js.map +1 -0
- package/dist/plan-limits.d.ts +138 -0
- package/dist/plan-limits.d.ts.map +1 -0
- package/dist/plan-limits.js +112 -0
- package/dist/plan-limits.js.map +1 -0
- package/dist/plan-pricing.d.ts +145 -0
- package/dist/plan-pricing.d.ts.map +1 -0
- package/dist/plan-pricing.js +172 -0
- package/dist/plan-pricing.js.map +1 -0
- package/dist/plan-usage.d.ts +112 -0
- package/dist/plan-usage.d.ts.map +1 -0
- package/dist/plan-usage.js +134 -0
- package/dist/plan-usage.js.map +1 -0
- package/dist/preview-token.d.ts +52 -0
- package/dist/preview-token.d.ts.map +1 -0
- package/dist/preview-token.js +106 -0
- package/dist/preview-token.js.map +1 -0
- package/dist/prop-names.d.ts +51 -0
- package/dist/prop-names.d.ts.map +1 -0
- package/dist/prop-names.js +150 -0
- package/dist/prop-names.js.map +1 -0
- package/dist/prop-type-docs.d.ts +20 -0
- package/dist/prop-type-docs.d.ts.map +1 -0
- package/dist/prop-type-docs.js +89 -0
- package/dist/prop-type-docs.js.map +1 -0
- package/dist/prop-types.d.ts +97 -0
- package/dist/prop-types.d.ts.map +1 -0
- package/dist/prop-types.js +299 -0
- package/dist/prop-types.js.map +1 -0
- package/dist/props.d.ts +996 -0
- package/dist/props.d.ts.map +1 -0
- package/dist/props.js +183 -0
- package/dist/props.js.map +1 -0
- package/dist/proto-guard.d.ts +29 -0
- package/dist/proto-guard.d.ts.map +1 -0
- package/dist/proto-guard.js +79 -0
- package/dist/proto-guard.js.map +1 -0
- package/dist/runtime-errors.d.ts +42 -0
- package/dist/runtime-errors.d.ts.map +1 -0
- package/dist/runtime-errors.js +42 -0
- package/dist/runtime-errors.js.map +1 -0
- package/dist/runtime-pointers.d.ts +58 -0
- package/dist/runtime-pointers.d.ts.map +1 -0
- package/dist/runtime-pointers.js +84 -0
- package/dist/runtime-pointers.js.map +1 -0
- package/dist/secret-scan.d.ts +191 -0
- package/dist/secret-scan.d.ts.map +1 -0
- package/dist/secret-scan.js +542 -0
- package/dist/secret-scan.js.map +1 -0
- package/dist/semver.d.ts +89 -0
- package/dist/semver.d.ts.map +1 -0
- package/dist/semver.js +400 -0
- package/dist/semver.js.map +1 -0
- package/dist/server-key.d.ts +68 -0
- package/dist/server-key.d.ts.map +1 -0
- package/dist/server-key.js +150 -0
- package/dist/server-key.js.map +1 -0
- package/dist/site-manifest-keys.d.ts +107 -0
- package/dist/site-manifest-keys.d.ts.map +1 -0
- package/dist/site-manifest-keys.js +146 -0
- package/dist/site-manifest-keys.js.map +1 -0
- package/dist/site-manifest.d.ts +286 -0
- package/dist/site-manifest.d.ts.map +1 -0
- package/dist/site-manifest.js +100 -0
- package/dist/site-manifest.js.map +1 -0
- package/dist/source-archive.d.ts +119 -0
- package/dist/source-archive.d.ts.map +1 -0
- package/dist/source-archive.js +644 -0
- package/dist/source-archive.js.map +1 -0
- package/dist/source-package-corpus.d.ts +55 -0
- package/dist/source-package-corpus.d.ts.map +1 -0
- package/dist/source-package-corpus.js +303 -0
- package/dist/source-package-corpus.js.map +1 -0
- package/dist/source-package.d.ts +227 -0
- package/dist/source-package.d.ts.map +1 -0
- package/dist/source-package.js +361 -0
- package/dist/source-package.js.map +1 -0
- package/dist/source-secrets.d.ts +21 -0
- package/dist/source-secrets.d.ts.map +1 -0
- package/dist/source-secrets.js +43 -0
- package/dist/source-secrets.js.map +1 -0
- package/dist/ssr-cap.d.ts +61 -0
- package/dist/ssr-cap.d.ts.map +1 -0
- package/dist/ssr-cap.js +107 -0
- package/dist/ssr-cap.js.map +1 -0
- package/dist/ssr-kv.d.ts +18 -0
- package/dist/ssr-kv.d.ts.map +1 -0
- package/dist/ssr-kv.js +18 -0
- package/dist/ssr-kv.js.map +1 -0
- package/dist/ssr-version-ledger.d.ts +53 -0
- package/dist/ssr-version-ledger.d.ts.map +1 -0
- package/dist/ssr-version-ledger.js +88 -0
- package/dist/ssr-version-ledger.js.map +1 -0
- package/dist/style-references.d.ts +58 -0
- package/dist/style-references.d.ts.map +1 -0
- package/dist/style-references.js +241 -0
- package/dist/style-references.js.map +1 -0
- package/dist/tag-name.d.ts +87 -0
- package/dist/tag-name.d.ts.map +1 -0
- package/dist/tag-name.js +222 -0
- package/dist/tag-name.js.map +1 -0
- package/dist/tar-writer.d.ts +74 -0
- package/dist/tar-writer.d.ts.map +1 -0
- package/dist/tar-writer.js +148 -0
- package/dist/tar-writer.js.map +1 -0
- package/dist/testing.d.ts +11 -0
- package/dist/testing.d.ts.map +1 -0
- package/dist/testing.js +11 -0
- package/dist/testing.js.map +1 -0
- package/dist/text-codec.d.ts +36 -0
- package/dist/text-codec.d.ts.map +1 -0
- package/dist/text-codec.js +32 -0
- package/dist/text-codec.js.map +1 -0
- package/dist/url-value.d.ts +41 -0
- package/dist/url-value.d.ts.map +1 -0
- package/dist/url-value.js +147 -0
- package/dist/url-value.js.map +1 -0
- package/dist/usage-guard.d.ts +99 -0
- package/dist/usage-guard.d.ts.map +1 -0
- package/dist/usage-guard.js +104 -0
- package/dist/usage-guard.js.map +1 -0
- package/dist/usage-mirror.d.ts +55 -0
- package/dist/usage-mirror.d.ts.map +1 -0
- package/dist/usage-mirror.js +52 -0
- package/dist/usage-mirror.js.map +1 -0
- package/dist/value-check.d.ts +88 -0
- package/dist/value-check.d.ts.map +1 -0
- package/dist/value-check.js +279 -0
- package/dist/value-check.js.map +1 -0
- package/dist/value-patterns.d.ts +9 -0
- package/dist/value-patterns.d.ts.map +1 -0
- package/dist/value-patterns.js +17 -0
- package/dist/value-patterns.js.map +1 -0
- package/dist/value-schema.d.ts +796 -0
- package/dist/value-schema.d.ts.map +1 -0
- package/dist/value-schema.js +231 -0
- package/dist/value-schema.js.map +1 -0
- package/dist/zod-free.d.ts +59 -0
- package/dist/zod-free.d.ts.map +1 -0
- package/dist/zod-free.js +57 -0
- package/dist/zod-free.js.map +1 -0
- package/package.json +75 -3
- package/schema/DEPLOYED +12 -0
- package/schema/build-diagnostic.v1.json +63 -0
- package/schema/component-manifest.v1.json +1000 -0
- package/schema/data-api.v1.json +194 -0
- package/schema/library-manifest.v1.json +60 -0
- package/schema/published/SHA256SUMS +36 -0
- package/schema/published/build-diagnostic/v1.10.json +83 -0
- package/schema/published/build-diagnostic/v1.3.json +83 -0
- package/schema/published/build-diagnostic/v1.4.json +83 -0
- package/schema/published/build-diagnostic/v1.5.json +83 -0
- package/schema/published/build-diagnostic/v1.6.json +83 -0
- package/schema/published/build-diagnostic/v1.7.json +83 -0
- package/schema/published/build-diagnostic/v1.8.json +83 -0
- package/schema/published/build-diagnostic/v1.9.json +83 -0
- package/schema/published/component-manifest/v1.10.json +1443 -0
- package/schema/published/component-manifest/v1.3.json +1411 -0
- package/schema/published/component-manifest/v1.4.json +1419 -0
- package/schema/published/component-manifest/v1.5.json +1437 -0
- package/schema/published/component-manifest/v1.6.json +1437 -0
- package/schema/published/component-manifest/v1.7.json +1437 -0
- package/schema/published/component-manifest/v1.8.json +1437 -0
- package/schema/published/component-manifest/v1.9.json +1437 -0
- package/schema/published/data-api/v1.10.json +282 -0
- package/schema/published/data-api/v1.3.json +281 -0
- package/schema/published/data-api/v1.4.json +281 -0
- package/schema/published/data-api/v1.5.json +281 -0
- package/schema/published/data-api/v1.6.json +281 -0
- package/schema/published/data-api/v1.7.json +281 -0
- package/schema/published/data-api/v1.8.json +282 -0
- package/schema/published/data-api/v1.9.json +282 -0
- package/schema/published/library-manifest/v1.10.json +68 -0
- package/schema/published/library-manifest/v1.5.json +68 -0
- package/schema/published/library-manifest/v1.6.json +68 -0
- package/schema/published/library-manifest/v1.7.json +68 -0
- package/schema/published/library-manifest/v1.8.json +68 -0
- package/schema/published/library-manifest/v1.9.json +68 -0
- package/schema/published/taggor-config/v1.10.json +56 -0
- package/schema/published/taggor-config/v1.5.json +56 -0
- package/schema/published/taggor-config/v1.6.json +56 -0
- package/schema/published/taggor-config/v1.7.json +56 -0
- package/schema/published/taggor-config/v1.8.json +56 -0
- package/schema/published/taggor-config/v1.9.json +56 -0
- package/schema/taggor-config.v1.json +39 -0
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The limit catalog (TAG-1627, decisions 78 to 80): the ONE place that says what each limit of a
|
|
3
|
+
* plan is. Zod-free.
|
|
4
|
+
*
|
|
5
|
+
* Every limit a plan carries is one entry here: its name, unit, window, where it is enforced,
|
|
6
|
+
* its default per plan and how the customer is told. `planLimits`, `planQuotas` and `planUsage`
|
|
7
|
+
* (the tables other workspaces read), the API's `LIMIT_NAMES` (what an override may name) and the
|
|
8
|
+
* usage view (`GET /v1/usage`, the portal, `taggor usage`) all read from it, so a limit cannot
|
|
9
|
+
* exist in one of them and not in the others; `limit-catalog.test.ts` fails when it does.
|
|
10
|
+
*
|
|
11
|
+
* The rule of the owner (decision 79): one limit, one window, the advertised number. No hourly or
|
|
12
|
+
* daily sublimit sits beside it. The defaults live in this file; a per-account change is an
|
|
13
|
+
* `entitlement_adjustments` row (decision 80), never a column or a second table.
|
|
14
|
+
*
|
|
15
|
+
* The numbers are PROVISIONAL until the owner approves the plans (TAG-1602), except where a
|
|
16
|
+
* decision fixed them (77: components per site; 78: builds per week).
|
|
17
|
+
*
|
|
18
|
+
* Pay-as-you-go (TAG-1628, decision 84, ADR 0067): every spec also carries a `policy` per plan.
|
|
19
|
+
* Free is `hard` on every limit (the number is the cut). A paid plan is `metered` on the limits
|
|
20
|
+
* whose excess is billed at the end of the month (the rate table is `OVERAGE_RATES` in
|
|
21
|
+
* `plan-pricing.ts`) and `hard` on the rest (security caps, per-build technical caps, members,
|
|
22
|
+
* retention). A `metered` limit never refuses or cuts a paid plan.
|
|
23
|
+
*
|
|
24
|
+
* Server-side rendering (spike, ADR 0066, no ticket) has ONE plan limit, `ssrRendersPerMonth`, a
|
|
25
|
+
* working default the owner has NOT confirmed (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 (owner,
|
|
27
|
+
* 2026-11-13): they are the vendor's billing unit, measured as usage (`ssr-version-ledger.ts`) for
|
|
28
|
+
* a later pay-as-you-go price, and nothing is refused because of them.
|
|
29
|
+
*/
|
|
30
|
+
import { PLAN_IDS } from "./plan-ids.js";
|
|
31
|
+
const KIB = 1024;
|
|
32
|
+
const MIB = 1024 * KIB;
|
|
33
|
+
const MB = 1000 * 1000;
|
|
34
|
+
const GB = 1000 * MB;
|
|
35
|
+
/**
|
|
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 (decision 82: the
|
|
38
|
+
* versions rendered per day are not a limit); the others are the `meter` of a catalog limit.
|
|
39
|
+
*/
|
|
40
|
+
export const OVERAGE_METRICS = [
|
|
41
|
+
"renders",
|
|
42
|
+
"ssr_renders",
|
|
43
|
+
"ssr_version_days",
|
|
44
|
+
"builds",
|
|
45
|
+
"submissions",
|
|
46
|
+
"storage",
|
|
47
|
+
"extra_sites",
|
|
48
|
+
];
|
|
49
|
+
const perPlan = (free, pro, agency) => ({
|
|
50
|
+
free,
|
|
51
|
+
pro,
|
|
52
|
+
agency,
|
|
53
|
+
});
|
|
54
|
+
const HARD = Object.freeze({ mode: "hard" });
|
|
55
|
+
/** Hard on every plan: the limit protects security or one build, nothing is billed for it. */
|
|
56
|
+
const hardForAll = () => ({
|
|
57
|
+
free: HARD,
|
|
58
|
+
pro: HARD,
|
|
59
|
+
agency: HARD,
|
|
60
|
+
});
|
|
61
|
+
/** Hard on Free, billed on Pro and Agency (decision 84). */
|
|
62
|
+
const meteredOnPaid = (metric) => {
|
|
63
|
+
const metered = Object.freeze({ mode: "metered", metric });
|
|
64
|
+
return { free: HARD, pro: metered, agency: metered };
|
|
65
|
+
};
|
|
66
|
+
// What one build may use is the same on every plan for now: the container instance is the ceiling.
|
|
67
|
+
const sameForAll = (value) => perPlan(value, value, value);
|
|
68
|
+
/** Loader deliveries a plan counts in a month (proposal v3, decision 71). */
|
|
69
|
+
const RENDERS_PER_MONTH = perPlan(10_000, 1_250_000, 4_000_000);
|
|
70
|
+
/**
|
|
71
|
+
* SSR working default (ADR 0066, research §9), NOT confirmed by the owner: change it here only.
|
|
72
|
+
* Server renders per month: equal to the plan's renders, so an honest site never meets it (each
|
|
73
|
+
* server render is a page view the loader already counts, and only cache misses are renders).
|
|
74
|
+
*/
|
|
75
|
+
const SSR_RENDERS_PER_MONTH = RENDERS_PER_MONTH;
|
|
76
|
+
/**
|
|
77
|
+
* Every limit, in the order the tables and the usage view list them. Add a limit here and
|
|
78
|
+
* nowhere else; the types of the tables follow from it.
|
|
79
|
+
*/
|
|
80
|
+
const SPECS = [
|
|
81
|
+
{
|
|
82
|
+
name: "buildTimeoutMs",
|
|
83
|
+
group: "build",
|
|
84
|
+
unit: "ms",
|
|
85
|
+
window: "each",
|
|
86
|
+
enforcedAt: "builder, one whole build",
|
|
87
|
+
notice: "on_refusal",
|
|
88
|
+
meter: null,
|
|
89
|
+
defaults: sameForAll(60_000),
|
|
90
|
+
policy: hardForAll(),
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: "maxSourceBytes",
|
|
94
|
+
group: "build",
|
|
95
|
+
unit: "bytes",
|
|
96
|
+
window: "each",
|
|
97
|
+
enforcedAt: "POST /v1/components/{id}/builds upload and builder, the compressed source",
|
|
98
|
+
notice: "on_refusal",
|
|
99
|
+
meter: null,
|
|
100
|
+
defaults: sameForAll(5 * MIB),
|
|
101
|
+
policy: hardForAll(),
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
name: "maxFiles",
|
|
105
|
+
group: "build",
|
|
106
|
+
unit: "count",
|
|
107
|
+
window: "each",
|
|
108
|
+
enforcedAt: "builder, files in the source package",
|
|
109
|
+
notice: "on_refusal",
|
|
110
|
+
meter: null,
|
|
111
|
+
defaults: sameForAll(500),
|
|
112
|
+
policy: hardForAll(),
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
name: "maxDependencies",
|
|
116
|
+
group: "build",
|
|
117
|
+
unit: "count",
|
|
118
|
+
window: "each",
|
|
119
|
+
enforcedAt: "builder, packages the component imports by name",
|
|
120
|
+
notice: "on_refusal",
|
|
121
|
+
meter: null,
|
|
122
|
+
defaults: sameForAll(100),
|
|
123
|
+
policy: hardForAll(),
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: "maxOutputBytes",
|
|
127
|
+
group: "build",
|
|
128
|
+
unit: "bytes",
|
|
129
|
+
window: "each",
|
|
130
|
+
enforcedAt: "builder, bundle and CSS together (2 MiB plus 512 KiB)",
|
|
131
|
+
notice: "on_refusal",
|
|
132
|
+
meter: null,
|
|
133
|
+
defaults: sameForAll(2560 * KIB),
|
|
134
|
+
policy: hardForAll(),
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
name: "maxAssetBytes",
|
|
138
|
+
group: "build",
|
|
139
|
+
unit: "bytes",
|
|
140
|
+
window: "each",
|
|
141
|
+
enforcedAt: "builder, one image or font a component imports",
|
|
142
|
+
notice: "on_refusal",
|
|
143
|
+
meter: null,
|
|
144
|
+
defaults: sameForAll(MIB),
|
|
145
|
+
policy: hardForAll(),
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
name: "maxAssetsBytes",
|
|
149
|
+
group: "build",
|
|
150
|
+
unit: "bytes",
|
|
151
|
+
window: "each",
|
|
152
|
+
enforcedAt: "builder, all assets of one component together",
|
|
153
|
+
notice: "on_refusal",
|
|
154
|
+
meter: null,
|
|
155
|
+
defaults: sameForAll(4 * MIB),
|
|
156
|
+
policy: hardForAll(),
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
// Decision 78: one limit, a rolling 7-day window. Free is a flat 150 for every account (no
|
|
160
|
+
// ramp, decision 68); Pro and Agency are seven times the daily numbers of proposal v3.
|
|
161
|
+
name: "buildsPerWeek",
|
|
162
|
+
group: "build",
|
|
163
|
+
unit: "count",
|
|
164
|
+
window: "week",
|
|
165
|
+
enforcedAt: "POST /v1/components/{id}/builds, 429 with Retry-After",
|
|
166
|
+
notice: "on_refusal",
|
|
167
|
+
meter: "builds_week",
|
|
168
|
+
defaults: perPlan(150, 700, 2100),
|
|
169
|
+
policy: meteredOnPaid("builds"),
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
// At most half of the ten container instances, so no workspace takes the builder.
|
|
173
|
+
name: "concurrentBuilds",
|
|
174
|
+
group: "build",
|
|
175
|
+
unit: "count",
|
|
176
|
+
window: "each",
|
|
177
|
+
enforcedAt: "builder, a build over it waits for a retry",
|
|
178
|
+
notice: "on_refusal",
|
|
179
|
+
meter: null,
|
|
180
|
+
defaults: perPlan(2, 3, 5),
|
|
181
|
+
policy: hardForAll(),
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
// Plans proposal v3 section 1.1 (Free 3) and decision 68 (Pro 25, Agency 100 included).
|
|
185
|
+
name: "maxSites",
|
|
186
|
+
group: "quota",
|
|
187
|
+
unit: "count",
|
|
188
|
+
window: "total",
|
|
189
|
+
enforcedAt: "POST /v1/sites, 409 site_quota_exceeded",
|
|
190
|
+
notice: "on_refusal",
|
|
191
|
+
meter: "sites",
|
|
192
|
+
defaults: perPlan(3, 25, 100),
|
|
193
|
+
// Pro bills the sites past its 25. Agency's extra sites are the existing `extra_site` add-on on
|
|
194
|
+
// the plan subscription (up to 500, `planPricing.agency.siteExtension`), so it is not metered twice.
|
|
195
|
+
policy: {
|
|
196
|
+
free: HARD,
|
|
197
|
+
pro: Object.freeze({ mode: "metered", metric: "extra_sites" }),
|
|
198
|
+
agency: HARD,
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
name: "activeApiKeys",
|
|
203
|
+
group: "quota",
|
|
204
|
+
unit: "count",
|
|
205
|
+
window: "total",
|
|
206
|
+
enforcedAt: "POST /v1/api-keys, 409 api_key_quota_exceeded",
|
|
207
|
+
notice: "on_refusal",
|
|
208
|
+
meter: "api_keys",
|
|
209
|
+
defaults: perPlan(20, 20, 50),
|
|
210
|
+
policy: hardForAll(),
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: "activeApiKeysPerCreator",
|
|
214
|
+
group: "quota",
|
|
215
|
+
unit: "count",
|
|
216
|
+
window: "each",
|
|
217
|
+
enforcedAt: "POST /v1/api-keys, one admin or member (TAG-2293)",
|
|
218
|
+
notice: "on_refusal",
|
|
219
|
+
meter: null,
|
|
220
|
+
defaults: perPlan(10, 10, 25),
|
|
221
|
+
policy: hardForAll(),
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
name: "ownerReservedApiKeys",
|
|
225
|
+
group: "quota",
|
|
226
|
+
unit: "count",
|
|
227
|
+
window: "each",
|
|
228
|
+
enforcedAt: "POST /v1/api-keys, places only an owner may fill (TAG-2293)",
|
|
229
|
+
notice: "on_refusal",
|
|
230
|
+
meter: null,
|
|
231
|
+
defaults: sameForAll(5),
|
|
232
|
+
policy: hardForAll(),
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
// Decision 77 (owner): 50, 300 and 800. Only a NEW attach is refused; after a downgrade what
|
|
236
|
+
// is attached stays served. The highest value is the platform ceiling of a site manifest.
|
|
237
|
+
name: "componentsPerSite",
|
|
238
|
+
group: "quota",
|
|
239
|
+
unit: "count",
|
|
240
|
+
window: "each",
|
|
241
|
+
enforcedAt: "attach a component to a site, 409 site_component_limit",
|
|
242
|
+
notice: "on_refusal",
|
|
243
|
+
meter: "components_per_site",
|
|
244
|
+
defaults: perPlan(50, 300, 800),
|
|
245
|
+
policy: hardForAll(),
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
// TAG-1625: what was the trust level's `connectOrigins`, the one control of it with no equal
|
|
249
|
+
// in a plan (a security cap on `permissions.connect`). Generous: a real component needs a few.
|
|
250
|
+
// The highest value is the platform ceiling of the manifest (`MANIFEST_LIMITS.maxConnectOrigins`,
|
|
251
|
+
// 10): a plan cannot allow what the manifest schema refuses, and a test keeps them in line.
|
|
252
|
+
name: "connectOriginsPerVersion",
|
|
253
|
+
group: "quota",
|
|
254
|
+
unit: "count",
|
|
255
|
+
window: "each",
|
|
256
|
+
enforcedAt: "POST /v1/components/{id}/versions, 402 plan_limit_reached before the INSERT",
|
|
257
|
+
notice: "on_refusal",
|
|
258
|
+
meter: null,
|
|
259
|
+
defaults: perPlan(5, 10, 10),
|
|
260
|
+
policy: hardForAll(),
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
name: "rendersPerMonth",
|
|
264
|
+
group: "usage",
|
|
265
|
+
unit: "count",
|
|
266
|
+
window: "month",
|
|
267
|
+
enforcedAt: "hourly usage job: notices at 80% and 100%; Free is cut at 1x (loader mark, off until approved); a paid plan is never cut and, while renders are not billed (`OVERAGE_BILLING_GATES`), the excess is not billed either",
|
|
268
|
+
notice: "usage_notice",
|
|
269
|
+
meter: "renders",
|
|
270
|
+
defaults: RENDERS_PER_MONTH,
|
|
271
|
+
policy: meteredOnPaid("renders"),
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
// ADR 0066: renders the edge performed for `GET /r/` (cache misses that rendered); cache hits are
|
|
275
|
+
// metered but not counted. Never counted against `rendersPerMonth`: the page view is the loader's.
|
|
276
|
+
name: "ssrRendersPerMonth",
|
|
277
|
+
group: "usage",
|
|
278
|
+
unit: "count",
|
|
279
|
+
window: "month",
|
|
280
|
+
enforcedAt: "GET /r/ on the edge: only Free is cut (the hourly usage job writes the ssrcap mark, ssrCapAction), no fragment over it; a paid plan keeps serving and the excess is billed",
|
|
281
|
+
notice: "on_refusal",
|
|
282
|
+
meter: "ssr_renders",
|
|
283
|
+
defaults: SSR_RENDERS_PER_MONTH,
|
|
284
|
+
policy: meteredOnPaid("ssr_renders"),
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
name: "submissionsPerMonth",
|
|
288
|
+
group: "usage",
|
|
289
|
+
unit: "count",
|
|
290
|
+
window: "month",
|
|
291
|
+
enforcedAt: "edge ingest consumer counts each accepted submission; Free is refused at its number, a paid plan keeps them (the excess is billed only when the submissions gate of `OVERAGE_BILLING_GATES` is on)",
|
|
292
|
+
notice: "usage_notice",
|
|
293
|
+
meter: "submissions",
|
|
294
|
+
defaults: perPlan(250, 50_000, 200_000),
|
|
295
|
+
policy: meteredOnPaid("submissions"),
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
name: "storageBytes",
|
|
299
|
+
group: "usage",
|
|
300
|
+
unit: "bytes",
|
|
301
|
+
window: "total",
|
|
302
|
+
enforcedAt: "the JSON of the submissions the workspace holds: Free refuses new ones at its number, a paid plan keeps them (the excess is billed only when the submissions gate of `OVERAGE_BILLING_GATES` is on)",
|
|
303
|
+
notice: "view_only",
|
|
304
|
+
meter: "storage",
|
|
305
|
+
defaults: perPlan(250 * MB, 3 * GB, 50 * GB),
|
|
306
|
+
policy: meteredOnPaid("storage"),
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
// Decision 68, item 11: 12, 24 and 36 months. A collection may choose fewer days, never more.
|
|
310
|
+
name: "retentionDays",
|
|
311
|
+
group: "usage",
|
|
312
|
+
unit: "days",
|
|
313
|
+
window: "each",
|
|
314
|
+
enforcedAt: "collection settings and the daily retention purge",
|
|
315
|
+
notice: "on_refusal",
|
|
316
|
+
meter: null,
|
|
317
|
+
defaults: perPlan(365, 730, 1095),
|
|
318
|
+
policy: hardForAll(),
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
// TAG-808: 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 (decision 79); the daily
|
|
323
|
+
// purge of the aggregates is its only enforcement and nothing refuses a request.
|
|
324
|
+
name: "metricsRetentionDays",
|
|
325
|
+
group: "plan",
|
|
326
|
+
unit: "days",
|
|
327
|
+
window: "each",
|
|
328
|
+
enforcedAt: "the daily purge of metrics_daily and the window of GET /v1/metrics",
|
|
329
|
+
notice: "view_only",
|
|
330
|
+
meter: null,
|
|
331
|
+
defaults: perPlan(365, 730, 1095),
|
|
332
|
+
policy: hardForAll(),
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
name: "immediateEmailsPerMonth",
|
|
336
|
+
group: "plan",
|
|
337
|
+
unit: "count",
|
|
338
|
+
window: "month",
|
|
339
|
+
// TAG-1628: 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 owner approves the Free hard cut flag (the API's).
|
|
341
|
+
enforcedAt: "submission notification e-mails: past the number an instant e-mail goes to the daily digest, on every plan",
|
|
342
|
+
notice: "view_only",
|
|
343
|
+
meter: null,
|
|
344
|
+
defaults: perPlan(10, 300, 1500),
|
|
345
|
+
policy: hardForAll(),
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
name: "members",
|
|
349
|
+
group: "plan",
|
|
350
|
+
unit: "count",
|
|
351
|
+
window: "total",
|
|
352
|
+
// TAG-1628: a new invitation is refused (409 `member_limit_reached`) when the members and the
|
|
353
|
+
// pending invitations already fill the number; hard on every plan. Off until the Free hard cut flag
|
|
354
|
+
// is approved.
|
|
355
|
+
enforcedAt: "POST /v1/workspaces/{id}/invitations, 409 member_limit_reached",
|
|
356
|
+
notice: "on_refusal",
|
|
357
|
+
meter: null,
|
|
358
|
+
defaults: perPlan(2, 5, 25),
|
|
359
|
+
policy: hardForAll(),
|
|
360
|
+
},
|
|
361
|
+
];
|
|
362
|
+
/**
|
|
363
|
+
* The catalog: every limit, deeply frozen.
|
|
364
|
+
*
|
|
365
|
+
* Inputs: none. Output: the entries in listing order. Errors: none. Side effects: none.
|
|
366
|
+
*/
|
|
367
|
+
export const LIMIT_CATALOG = Object.freeze(SPECS.map((spec) => Object.freeze({
|
|
368
|
+
...spec,
|
|
369
|
+
defaults: Object.freeze({ ...spec.defaults }),
|
|
370
|
+
policy: Object.freeze({ ...spec.policy }),
|
|
371
|
+
})));
|
|
372
|
+
/** The names of every limit in the catalog: what an override may name and an entitlement carries. */
|
|
373
|
+
export const CATALOG_LIMIT_NAMES = Object.freeze(SPECS.map((spec) => spec.name));
|
|
374
|
+
/**
|
|
375
|
+
* The defaults of every plan for the limits of one group, the rows `planLimits`, `planQuotas` and
|
|
376
|
+
* `planUsage` expose.
|
|
377
|
+
*
|
|
378
|
+
* Inputs: the group. Output: a plan id to row map (frozen rows) holding exactly the group's names.
|
|
379
|
+
* Errors: none. Side effects: none.
|
|
380
|
+
*/
|
|
381
|
+
export function catalogRows(group) {
|
|
382
|
+
const rows = {};
|
|
383
|
+
for (const id of PLAN_IDS) {
|
|
384
|
+
const row = {};
|
|
385
|
+
for (const spec of SPECS)
|
|
386
|
+
if (spec.group === group)
|
|
387
|
+
row[spec.name] = spec.defaults[id];
|
|
388
|
+
rows[id] = Object.freeze(row);
|
|
389
|
+
}
|
|
390
|
+
return rows;
|
|
391
|
+
}
|
|
392
|
+
/**
|
|
393
|
+
* The entry of one limit.
|
|
394
|
+
* Inputs: a catalog name. Output: its entry. Errors: none for a name of the catalog. Side effects:
|
|
395
|
+
* none.
|
|
396
|
+
*/
|
|
397
|
+
export function limitSpec(name) {
|
|
398
|
+
const found = LIMIT_CATALOG.find((spec) => spec.name === name);
|
|
399
|
+
if (found === undefined)
|
|
400
|
+
throw new Error(`unknown limit ${name}`);
|
|
401
|
+
return found;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* The billed metric of a limit on a plan, or `null` when the plan is cut or refused at the number.
|
|
405
|
+
*
|
|
406
|
+
* Inputs: a catalog name and a plan id. Output: the `OverageMetric` its excess is billed under, or
|
|
407
|
+
* `null` for a `hard` policy (always the case for Free). Errors: throws for an unknown name. No side
|
|
408
|
+
* effects.
|
|
409
|
+
*/
|
|
410
|
+
export function overageMetricOf(name, planId) {
|
|
411
|
+
const policy = limitSpec(name).policy[planId];
|
|
412
|
+
return policy.mode === "metered" ? policy.metric : null;
|
|
413
|
+
}
|
|
414
|
+
//# sourceMappingURL=limit-catalog.js.map
|
|
@@ -0,0 +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;AAqCrB;;;;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,4DAA4D;AAC5D,MAAM,aAAa,GAAG,CAAC,MAAqB,EAAyC,EAAE;IACrF,MAAM,OAAO,GAAgB,MAAM,CAA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AAS,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC9C,OAAO,MAAM,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;AAC1D,CAAC"}
|
package/dist/limits.d.ts
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hard limits of component contract v1 (TAG-201).
|
|
3
|
+
*
|
|
4
|
+
* Every list, record and string in the manifest and in the data API is bounded so that a hostile
|
|
5
|
+
* manifest or payload cannot make the runtime, the builder, the edge or the API do unbounded work
|
|
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 (TAG-207).
|
|
8
|
+
*/
|
|
9
|
+
/** `MANIFEST_LIMITS.maxJsonLength`: a manifest's JSON length, and a value check's work budget. */
|
|
10
|
+
export declare const MAX_JSON_LENGTH = 65536;
|
|
11
|
+
/** `MANIFEST_LIMITS.stringMaxLength`: upper bound of any declared string. */
|
|
12
|
+
export declare const STRING_MAX_LENGTH = 10000;
|
|
13
|
+
/** `MANIFEST_LIMITS.arrayMaxItems`: upper bound of any declared array. */
|
|
14
|
+
export declare const ARRAY_MAX_ITEMS = 1000;
|
|
15
|
+
/** `MANIFEST_LIMITS.urlMaxLength`: any `url` value. */
|
|
16
|
+
export declare const URL_MAX_LENGTH = 2048;
|
|
17
|
+
/**
|
|
18
|
+
* Limits of the component manifest.
|
|
19
|
+
*
|
|
20
|
+
* Inputs: none. Output: frozen numbers used by the manifest schemas. Errors: none. Side effects:
|
|
21
|
+
* none. Marked `@__PURE__` (TAG-238) so a bundler drops it from a component that imports another
|
|
22
|
+
* limit: esbuild keeps an unmarked `Object.freeze` call.
|
|
23
|
+
*/
|
|
24
|
+
export declare const MANIFEST_LIMITS: Readonly<{
|
|
25
|
+
/** Maximum length, in UTF-16 code units, of a manifest serialized as JSON. */
|
|
26
|
+
maxJsonLength: 65536;
|
|
27
|
+
/** Component `name` and custom element `tag`. */
|
|
28
|
+
nameMaxLength: 64;
|
|
29
|
+
titleMaxLength: 80;
|
|
30
|
+
descriptionMaxLength: 500;
|
|
31
|
+
/** Description attached to a prop, event, slot, part, CSS variable, collection or field. */
|
|
32
|
+
memberDescriptionMaxLength: 300;
|
|
33
|
+
/** Prop names, event names, slot names, part names, collection names, field names. */
|
|
34
|
+
memberNameMaxLength: 40;
|
|
35
|
+
cssVarNameMaxLength: 64;
|
|
36
|
+
cssValueMaxLength: 100;
|
|
37
|
+
maxProps: 50;
|
|
38
|
+
maxEvents: 20;
|
|
39
|
+
maxSlots: 10;
|
|
40
|
+
maxParts: 30;
|
|
41
|
+
maxCssVars: 30;
|
|
42
|
+
maxCollections: 10;
|
|
43
|
+
maxCollectionFields: 50;
|
|
44
|
+
maxTrackEvents: 30;
|
|
45
|
+
maxTrackProps: 8;
|
|
46
|
+
maxEnumValues: 50;
|
|
47
|
+
enumValueMaxLength: 64;
|
|
48
|
+
/** Fields of one declared object value (prop, event detail). */
|
|
49
|
+
maxObjectFields: 50;
|
|
50
|
+
/** Upper bound of any declared string (`maxLength` may only lower it). */
|
|
51
|
+
stringMaxLength: 10000;
|
|
52
|
+
/** Upper bound of any declared array (`maxItems` may only lower it). */
|
|
53
|
+
arrayMaxItems: 1000;
|
|
54
|
+
/** Nesting levels of arrays and objects inside a value schema. */
|
|
55
|
+
valueSchemaDepth: 3;
|
|
56
|
+
/** Default of a `color` prop (a CSS color, validated by the runtime with `CSS.supports`). */
|
|
57
|
+
colorMaxLength: 64;
|
|
58
|
+
/** Any `url` value: default, attribute or property. */
|
|
59
|
+
urlMaxLength: 2048;
|
|
60
|
+
/** Attribute text of a `number` prop, checked before parsing (TAG-205). */
|
|
61
|
+
numberTextMaxLength: 32;
|
|
62
|
+
/** JSON text of an `array` or `object` prop read from an attribute, checked before parsing. */
|
|
63
|
+
propJsonMaxLength: 32768;
|
|
64
|
+
maxConnectOrigins: 10;
|
|
65
|
+
/** Pixel bounds of the `size` hints. */
|
|
66
|
+
sizeMaxPixels: 4000;
|
|
67
|
+
aspectRatioMaxTerm: 100;
|
|
68
|
+
}>;
|
|
69
|
+
/**
|
|
70
|
+
* Limits only the browser runtime reads (TAG-304), kept out of `MANIFEST_LIMITS`, which the SDK
|
|
71
|
+
* bundle carried whole until TAG-238 (the runtime still does), so a component does not pay for them.
|
|
72
|
+
*
|
|
73
|
+
* Inputs: none. Output: frozen numbers. Errors: none. Side effects: none.
|
|
74
|
+
*/
|
|
75
|
+
export declare const RUNTIME_LIMITS: Readonly<{
|
|
76
|
+
/**
|
|
77
|
+
* JSON text of a `<script type="application/json" data-props>` child (all its props in one
|
|
78
|
+
* object), checked before parsing; nesting is `valueSchemaDepth` + 1 there.
|
|
79
|
+
*/
|
|
80
|
+
propsScriptMaxLength: 65536;
|
|
81
|
+
}>;
|
|
82
|
+
/**
|
|
83
|
+
* Limits of workspace settings the contract validates (TAG-204).
|
|
84
|
+
*
|
|
85
|
+
* Inputs: none. Output: frozen numbers. The tag prefix stays short so that a prefixed tag still
|
|
86
|
+
* fits `MANIFEST_LIMITS.nameMaxLength` with room for the component's own name. Errors: none. Side
|
|
87
|
+
* effects: none. Marked `@__PURE__` like `MANIFEST_LIMITS` (TAG-238).
|
|
88
|
+
*/
|
|
89
|
+
export declare const WORKSPACE_LIMITS: Readonly<{
|
|
90
|
+
/** Workspace tag prefix, without the trailing hyphen (`acme`). */
|
|
91
|
+
tagPrefixMaxLength: 20;
|
|
92
|
+
}>;
|
|
93
|
+
/**
|
|
94
|
+
* Limits of the data API (submit, read, track) between a component and the edge.
|
|
95
|
+
*
|
|
96
|
+
* Inputs: none. Output: frozen numbers used by the data API schemas and, later, by the edge
|
|
97
|
+
* (TAG-702) before it parses a body. Errors: none. Side effects: none.
|
|
98
|
+
*/
|
|
99
|
+
export declare const DATA_API_LIMITS: Readonly<{
|
|
100
|
+
/** Maximum body of `POST /d/<siteKey>/<collection>` in bytes (threat T-76). */
|
|
101
|
+
submitBodyMaxBytes: 32768;
|
|
102
|
+
/** Maximum body of a `track` beacon in bytes. */
|
|
103
|
+
trackBodyMaxBytes: 2048;
|
|
104
|
+
/** Maximum keys in the `data` object of a submission before field validation. */
|
|
105
|
+
submitDataMaxKeys: 50;
|
|
106
|
+
idempotencyKeyMinLength: 16;
|
|
107
|
+
idempotencyKeyMaxLength: 64;
|
|
108
|
+
turnstileTokenMaxLength: 2048;
|
|
109
|
+
honeypotMaxLength: 256;
|
|
110
|
+
/** Page size of `read`. */
|
|
111
|
+
readPageMax: 100;
|
|
112
|
+
readPageDefault: 20;
|
|
113
|
+
cursorMaxLength: 512;
|
|
114
|
+
errorMessageMaxLength: 500;
|
|
115
|
+
maxErrorFields: 50;
|
|
116
|
+
}>;
|
|
117
|
+
/**
|
|
118
|
+
* Limits of the consent proof a submission carries (TAG-212, `consent` of the data API's
|
|
119
|
+
* `submit`). Apart from `DATA_API_LIMITS` on purpose: the SDK bundles that object (its transports
|
|
120
|
+
* read it), and only the server-side schema reads these; the `@__PURE__` mark lets a bundler drop
|
|
121
|
+
* them from a component that imports another limit (esbuild keeps an unmarked `Object.freeze` call).
|
|
122
|
+
*
|
|
123
|
+
* Inputs: none. Output: frozen numbers used by `consentProofSchema`. Errors: none. Side effects:
|
|
124
|
+
* none.
|
|
125
|
+
*/
|
|
126
|
+
export declare const CONSENT_PROOF_LIMITS: Readonly<{
|
|
127
|
+
/** `consent.text_hash`: SHA-256 in lowercase hex. */
|
|
128
|
+
consentTextHashLength: 64;
|
|
129
|
+
/** `consent.locale`: a BCP 47 language tag such as `pt-BR`. */
|
|
130
|
+
consentLocaleMaxLength: 35;
|
|
131
|
+
}>;
|
|
132
|
+
/**
|
|
133
|
+
* Limits of the `locales` declaration of a manifest (TAG-211, contract 1.2): the languages a
|
|
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 TAG-238 (the runtime still
|
|
136
|
+
* does), and only the manifest schema reads these.
|
|
137
|
+
*
|
|
138
|
+
* Inputs: none. Output: frozen numbers used by the manifest schema. Errors: none. Side effects:
|
|
139
|
+
* none.
|
|
140
|
+
*/
|
|
141
|
+
export declare const LOCALE_LIMITS: Readonly<{
|
|
142
|
+
/** Entries of `locales.supported`. */
|
|
143
|
+
maxLocales: 30;
|
|
144
|
+
/** One language tag of `locales` (`supported` entries and `default`), such as `pt-BR`. */
|
|
145
|
+
localeTagMaxLength: 35;
|
|
146
|
+
/**
|
|
147
|
+
* Messages in one catalog (keys of one language), checked by the SDK's build-time
|
|
148
|
+
* `checkMessages` before it compares the catalogs; the catalogs are not in the manifest.
|
|
149
|
+
*/
|
|
150
|
+
maxMessagesPerLocale: 2000;
|
|
151
|
+
}>;
|
|
152
|
+
/**
|
|
153
|
+
* Limits of the `assets` declaration of a manifest (TAG-213, contract 1.3): the files a component
|
|
154
|
+
* imports (images and fonts), which the builder (TAG-410) lists after bundling. These are the
|
|
155
|
+
* contract's hard bounds; each plan sets tighter ones, which the builder applies. Apart from
|
|
156
|
+
* `MANIFEST_LIMITS` for the same reason as `LOCALE_LIMITS`.
|
|
157
|
+
*
|
|
158
|
+
* Inputs: none. Output: frozen numbers used by the manifest schema. Errors: none. Side effects:
|
|
159
|
+
* none.
|
|
160
|
+
*/
|
|
161
|
+
export declare const ASSET_LIMITS: Readonly<{
|
|
162
|
+
/** Entries of `assets`: distinct files (by content) one component version imports. */
|
|
163
|
+
maxAssets: 50;
|
|
164
|
+
/** Size in bytes of one asset. */
|
|
165
|
+
assetMaxBytes: 2097152;
|
|
166
|
+
}>;
|
|
167
|
+
//# sourceMappingURL=limits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"limits.d.ts","sourceRoot":"","sources":["../src/limits.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAWH,kGAAkG;AAClG,eAAO,MA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