@taggor/contract 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/artifact-keys.d.ts +11 -11
- package/dist/artifact-keys.d.ts.map +1 -1
- package/dist/artifact-keys.js +11 -11
- package/dist/artifact-keys.js.map +1 -1
- package/dist/assets.d.ts +5 -5
- package/dist/assets.js +5 -5
- package/dist/bounded-path.d.ts +2 -2
- package/dist/bounded-path.js +2 -2
- package/dist/bounded.d.ts +2 -2
- package/dist/bounded.js +2 -2
- package/dist/build-diagnostic.d.ts +5 -5
- package/dist/build-diagnostic.js +5 -5
- package/dist/component-types.d.ts +7 -7
- package/dist/component-types.js +4 -4
- package/dist/component-types.js.map +1 -1
- package/dist/consent-text.d.ts +1 -1
- package/dist/consent-text.js +1 -1
- package/dist/contract-version.d.ts +17 -16
- package/dist/contract-version.d.ts.map +1 -1
- package/dist/contract-version.js +17 -16
- package/dist/contract-version.js.map +1 -1
- package/dist/credential-fields.d.ts +1 -1
- package/dist/credential-fields.js +1 -1
- package/dist/css-tokens.d.ts +1 -1
- package/dist/css-tokens.js +1 -1
- package/dist/css-value.d.ts +4 -4
- package/dist/css-value.js +4 -4
- package/dist/data-api.d.ts +11 -11
- package/dist/data-api.js +14 -14
- package/dist/data-api.js.map +1 -1
- package/dist/denylist-keys.d.ts +1 -1
- package/dist/denylist-keys.js +4 -4
- package/dist/diagnostic-catalog.d.ts +44 -36
- package/dist/diagnostic-catalog.d.ts.map +1 -1
- package/dist/diagnostic-catalog.js +44 -40
- package/dist/diagnostic-catalog.js.map +1 -1
- package/dist/dom-members.snapshot.d.ts +4 -4
- package/dist/dom-members.snapshot.js +8 -8
- package/dist/early-loading.d.ts +1 -1
- package/dist/early-loading.js +1 -1
- package/dist/error-catalog.d.ts +106 -7
- package/dist/error-catalog.d.ts.map +1 -1
- package/dist/error-catalog.js +143 -48
- package/dist/error-catalog.js.map +1 -1
- package/dist/executable-config.d.ts +1 -1
- package/dist/freeze.d.ts +2 -2
- package/dist/freeze.js +2 -2
- package/dist/gunzip.d.ts +3 -3
- package/dist/gunzip.js +4 -4
- package/dist/gunzip.js.map +1 -1
- package/dist/hostname.d.ts +5 -6
- package/dist/hostname.d.ts.map +1 -1
- package/dist/hostname.js +7 -8
- package/dist/hostname.js.map +1 -1
- package/dist/human-actions.d.ts +4 -4
- package/dist/human-actions.d.ts.map +1 -1
- package/dist/human-actions.js +21 -0
- package/dist/human-actions.js.map +1 -1
- package/dist/index.d.ts +5 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/json-schema.d.ts +15 -16
- package/dist/json-schema.d.ts.map +1 -1
- package/dist/json-schema.js +22 -23
- package/dist/json-schema.js.map +1 -1
- package/dist/key-checksum.d.ts +1 -1
- package/dist/key-checksum.js +1 -1
- package/dist/libraries.d.ts +4 -4
- package/dist/libraries.d.ts.map +1 -1
- package/dist/libraries.js +4 -4
- package/dist/libraries.js.map +1 -1
- package/dist/limit-catalog.d.ts +17 -17
- package/dist/limit-catalog.d.ts.map +1 -1
- package/dist/limit-catalog.js +30 -30
- package/dist/limit-catalog.js.map +1 -1
- package/dist/limits.d.ts +15 -15
- package/dist/limits.d.ts.map +1 -1
- package/dist/limits.js +16 -16
- package/dist/limits.js.map +1 -1
- package/dist/locale-tag.d.ts +2 -2
- package/dist/locale-tag.js +2 -2
- package/dist/make-diagnostic.d.ts +2 -3
- package/dist/make-diagnostic.d.ts.map +1 -1
- package/dist/make-diagnostic.js.map +1 -1
- package/dist/manifest-compat-diagnostics.d.ts +1 -1
- package/dist/manifest-compat.js +1 -1
- package/dist/manifest.d.ts +22 -23
- package/dist/manifest.d.ts.map +1 -1
- package/dist/manifest.js +32 -33
- package/dist/manifest.js.map +1 -1
- package/dist/metering.d.ts +17 -18
- package/dist/metering.d.ts.map +1 -1
- package/dist/metering.js +17 -18
- package/dist/metering.js.map +1 -1
- package/dist/migrate.d.ts +1 -1
- package/dist/migrate.js +5 -5
- package/dist/migrate.js.map +1 -1
- package/dist/money.d.ts +2 -2
- package/dist/money.js +2 -2
- package/dist/names.d.ts +4 -4
- package/dist/names.js +4 -4
- package/dist/overage-pricing.d.ts +1 -1
- package/dist/overage-pricing.js +1 -1
- package/dist/plan-ids.d.ts +1 -1
- package/dist/plan-ids.js +1 -1
- package/dist/plan-limits.d.ts +13 -13
- package/dist/plan-limits.d.ts.map +1 -1
- package/dist/plan-limits.js +8 -8
- package/dist/plan-limits.js.map +1 -1
- package/dist/plan-pricing.d.ts +10 -12
- package/dist/plan-pricing.d.ts.map +1 -1
- package/dist/plan-pricing.js +12 -14
- package/dist/plan-pricing.js.map +1 -1
- package/dist/plan-usage.d.ts +18 -18
- package/dist/plan-usage.d.ts.map +1 -1
- package/dist/plan-usage.js +19 -20
- package/dist/plan-usage.js.map +1 -1
- package/dist/preview-token.js +2 -2
- package/dist/prop-names.d.ts +5 -5
- package/dist/prop-names.d.ts.map +1 -1
- package/dist/prop-names.js +10 -10
- package/dist/prop-names.js.map +1 -1
- package/dist/prop-type-docs.js +1 -1
- package/dist/prop-types.d.ts +6 -6
- package/dist/prop-types.js +17 -17
- package/dist/prop-types.js.map +1 -1
- package/dist/props.d.ts +5 -5
- package/dist/props.js +6 -6
- package/dist/props.js.map +1 -1
- package/dist/proto-guard.js +3 -3
- package/dist/proto-guard.js.map +1 -1
- package/dist/runtime-errors.d.ts +2 -2
- package/dist/runtime-errors.js +2 -2
- package/dist/runtime-pointers.d.ts +2 -2
- package/dist/runtime-pointers.js +2 -2
- package/{schema → dist/schema}/component-manifest.v1.json +5 -5
- package/dist/secret-scan.d.ts +10 -10
- package/dist/secret-scan.d.ts.map +1 -1
- package/dist/secret-scan.js +15 -16
- package/dist/secret-scan.js.map +1 -1
- package/dist/semver.d.ts +2 -2
- package/dist/semver.js +2 -2
- package/dist/server-key.js +1 -1
- package/dist/site-manifest-keys.d.ts +11 -11
- package/dist/site-manifest-keys.d.ts.map +1 -1
- package/dist/site-manifest-keys.js +18 -18
- package/dist/site-manifest-keys.js.map +1 -1
- package/dist/site-manifest.d.ts +2 -2
- package/dist/site-manifest.js +9 -9
- package/dist/site-manifest.js.map +1 -1
- package/dist/source-archive.d.ts +13 -13
- package/dist/source-archive.js +25 -25
- package/dist/source-archive.js.map +1 -1
- package/dist/source-package-corpus.d.ts +3 -4
- package/dist/source-package-corpus.d.ts.map +1 -1
- package/dist/source-package-corpus.js +4 -6
- package/dist/source-package-corpus.js.map +1 -1
- package/dist/source-package.d.ts +18 -17
- package/dist/source-package.d.ts.map +1 -1
- package/dist/source-package.js +16 -15
- package/dist/source-package.js.map +1 -1
- package/dist/source-secrets.js +1 -1
- package/dist/ssr-cap.d.ts +1 -1
- package/dist/ssr-cap.js +4 -4
- package/dist/ssr-kv.d.ts +2 -2
- package/dist/ssr-kv.js +2 -2
- package/dist/ssr-render.d.ts +2 -2
- package/dist/ssr-render.d.ts.map +1 -1
- package/dist/ssr-render.js +3 -3
- package/dist/ssr-render.js.map +1 -1
- package/dist/ssr-version-ledger.js +3 -3
- package/dist/style-references.d.ts +2 -3
- package/dist/style-references.d.ts.map +1 -1
- package/dist/style-references.js +10 -11
- package/dist/style-references.js.map +1 -1
- package/dist/support-contact.d.ts +11 -0
- package/dist/support-contact.d.ts.map +1 -0
- package/dist/support-contact.js +11 -0
- package/dist/support-contact.js.map +1 -0
- package/dist/tag-name.d.ts +6 -6
- package/dist/tag-name.d.ts.map +1 -1
- package/dist/tag-name.js +7 -7
- package/dist/tag-name.js.map +1 -1
- package/dist/tar-writer.js +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +1 -1
- package/dist/text-codec.d.ts +2 -2
- package/dist/text-codec.js +2 -2
- package/dist/url-value.d.ts +1 -1
- package/dist/url-value.js +6 -6
- package/dist/usage-guard.d.ts +16 -16
- package/dist/usage-guard.js +15 -15
- package/dist/usage-mirror.d.ts +5 -5
- package/dist/value-check.d.ts +6 -6
- package/dist/value-check.js +21 -21
- package/dist/value-check.js.map +1 -1
- package/dist/value-patterns.js +2 -2
- package/dist/value-schema.d.ts +4 -4
- package/dist/value-schema.d.ts.map +1 -1
- package/dist/value-schema.js +5 -5
- package/dist/value-schema.js.map +1 -1
- package/dist/zod-free.d.ts +25 -24
- package/dist/zod-free.d.ts.map +1 -1
- package/dist/zod-free.js +26 -25
- package/dist/zod-free.js.map +1 -1
- package/package.json +9 -10
- package/schema/DEPLOYED +0 -12
- package/schema/published/SHA256SUMS +0 -41
- package/schema/published/build-diagnostic/v1.10.json +0 -83
- package/schema/published/build-diagnostic/v1.11.json +0 -83
- package/schema/published/build-diagnostic/v1.3.json +0 -83
- package/schema/published/build-diagnostic/v1.4.json +0 -83
- package/schema/published/build-diagnostic/v1.5.json +0 -83
- package/schema/published/build-diagnostic/v1.6.json +0 -83
- package/schema/published/build-diagnostic/v1.7.json +0 -83
- package/schema/published/build-diagnostic/v1.8.json +0 -83
- package/schema/published/build-diagnostic/v1.9.json +0 -83
- package/schema/published/component-manifest/v1.10.json +0 -1443
- package/schema/published/component-manifest/v1.11.json +0 -1443
- package/schema/published/component-manifest/v1.3.json +0 -1411
- package/schema/published/component-manifest/v1.4.json +0 -1419
- package/schema/published/component-manifest/v1.5.json +0 -1437
- package/schema/published/component-manifest/v1.6.json +0 -1437
- package/schema/published/component-manifest/v1.7.json +0 -1437
- package/schema/published/component-manifest/v1.8.json +0 -1437
- package/schema/published/component-manifest/v1.9.json +0 -1437
- package/schema/published/data-api/v1.10.json +0 -282
- package/schema/published/data-api/v1.11.json +0 -282
- package/schema/published/data-api/v1.3.json +0 -281
- package/schema/published/data-api/v1.4.json +0 -281
- package/schema/published/data-api/v1.5.json +0 -281
- package/schema/published/data-api/v1.6.json +0 -281
- package/schema/published/data-api/v1.7.json +0 -281
- package/schema/published/data-api/v1.8.json +0 -282
- package/schema/published/data-api/v1.9.json +0 -282
- package/schema/published/library-manifest/v1.10.json +0 -68
- package/schema/published/library-manifest/v1.11.json +0 -68
- package/schema/published/library-manifest/v1.5.json +0 -68
- package/schema/published/library-manifest/v1.6.json +0 -68
- package/schema/published/library-manifest/v1.7.json +0 -68
- package/schema/published/library-manifest/v1.8.json +0 -68
- package/schema/published/library-manifest/v1.9.json +0 -68
- package/schema/published/taggor-config/v1.10.json +0 -56
- package/schema/published/taggor-config/v1.11.json +0 -56
- package/schema/published/taggor-config/v1.5.json +0 -56
- package/schema/published/taggor-config/v1.6.json +0 -56
- package/schema/published/taggor-config/v1.7.json +0 -56
- package/schema/published/taggor-config/v1.8.json +0 -56
- package/schema/published/taggor-config/v1.9.json +0 -56
- /package/{schema → dist/schema}/build-diagnostic.v1.json +0 -0
- /package/{schema → dist/schema}/data-api.v1.json +0 -0
- /package/{schema → dist/schema}/library-manifest.v1.json +0 -0
- /package/{schema → dist/schema}/taggor-config.v1.json +0 -0
package/dist/migrate.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Migration of manifests between contract majors
|
|
2
|
+
* Migration of manifests between contract majors.
|
|
3
3
|
*
|
|
4
4
|
* When a major ships, the change that bumps `CONTRACT_MAJOR` adds one step `from: N, to: N + 1`
|
|
5
5
|
* to `MANIFEST_MIGRATIONS`: a pure function from a manifest of major N to an equivalent manifest
|
|
6
6
|
* of major N + 1 (renames, removed fields mapped to their replacement, new required fields given
|
|
7
7
|
* their old implicit value). `migrateManifest` chains the steps. The compatibility test
|
|
8
|
-
* (compat.test.ts) runs every
|
|
8
|
+
* (compat.test.ts) runs every sample of an older major through it and requires the result to
|
|
9
9
|
* pass the current schema, so a major cannot ship without its migration.
|
|
10
10
|
*
|
|
11
11
|
* A migration is applied when a manifest is read for a new build or for display, never written
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* explicit action of the customer (golden rule 3).
|
|
14
14
|
*
|
|
15
15
|
* The input is untrusted (golden rule 5) and the runtime may call this on a host page (golden rule
|
|
16
|
-
* 2), so it never throws
|
|
16
|
+
* 2), so it never throws: every refusal is a result with a stable `reason`.
|
|
17
17
|
*
|
|
18
18
|
* Zod-free and pure. The output is not validated here: callers parse it (`parseManifest`).
|
|
19
19
|
*/
|
|
@@ -38,7 +38,7 @@ const SAFE_ERROR_NAME = /^[A-Za-z][A-Za-z0-9]{0,63}$/;
|
|
|
38
38
|
* Name of a caught value, for a message that never echoes input data. The value may come from the
|
|
39
39
|
* input (a throwing `toJSON` or getter): `instanceof` runs a Proxy's `getPrototypeOf` trap and
|
|
40
40
|
* `.name` may be a getter, both of which can throw, so they run inside a try and the name is
|
|
41
|
-
* echoed only when it is a short identifier
|
|
41
|
+
* echoed only when it is a short identifier.
|
|
42
42
|
*/
|
|
43
43
|
function errorName(error) {
|
|
44
44
|
try {
|
|
@@ -111,7 +111,7 @@ export function migrateManifest(input, options = {}) {
|
|
|
111
111
|
try {
|
|
112
112
|
// The first scan refuses what is too large before JSON.stringify walks it (a sparse array of
|
|
113
113
|
// length 2**32 - 1 used to throw a RangeError here); the second one checks what the copy
|
|
114
|
-
// really holds, since a toJSON may produce anything
|
|
114
|
+
// really holds, since a toJSON may produce anything.
|
|
115
115
|
const scanned = checkDocument(input, "manifest");
|
|
116
116
|
if (!scanned.ok)
|
|
117
117
|
return scanned;
|
package/dist/migrate.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrate.js","sourceRoot":"","sources":["../src/migrate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAezE;;;;GAIG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAiC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAqDnF,SAAS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* The one formatter of US dollar amounts for every surface
|
|
2
|
+
* The one formatter of US dollar amounts for every surface: the portal, the staff
|
|
3
3
|
* backoffice, the CLI and the public site read money through these functions, so a figure is written
|
|
4
|
-
* the same way everywhere and its rounding is defined once. Money is always US dollars
|
|
4
|
+
* the same way everywhere and its rounding is defined once. Money is always US dollars.
|
|
5
5
|
*
|
|
6
6
|
* Rounding rule: an amount of micro dollars is shown in whole cents rounded DOWN, because an estimate
|
|
7
7
|
* must never overstate a bill (the CLOSE bills the ledger, not this text). A price per unit
|
package/dist/money.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The one formatter of US dollar amounts for every surface
|
|
2
|
+
* The one formatter of US dollar amounts for every surface: the portal, the staff
|
|
3
3
|
* backoffice, the CLI and the public site read money through these functions, so a figure is written
|
|
4
|
-
* the same way everywhere and its rounding is defined once. Money is always US dollars
|
|
4
|
+
* the same way everywhere and its rounding is defined once. Money is always US dollars.
|
|
5
5
|
*
|
|
6
6
|
* Rounding rule: an amount of micro dollars is shown in whole cents rounded DOWN, because an estimate
|
|
7
7
|
* must never overstate a bill (the CLOSE bills the ledger, not this text). A price per unit
|
package/dist/names.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Identifier schemas of component contract v1
|
|
3
|
-
* variable, collection and field names. Custom element tags live in `tag-name.ts
|
|
2
|
+
* Identifier schemas of component contract v1: component name, prop, event, slot, part, CSS
|
|
3
|
+
* variable, collection and field names. Custom element tags live in `tag-name.ts`.
|
|
4
4
|
*
|
|
5
5
|
* Every rule is a plain regular expression, so the generated JSON Schema enforces exactly what Zod
|
|
6
6
|
* enforces (no refinement that only Zod would see). Lookaheads carry the deny lists (prop names
|
|
7
7
|
* that would collide with the host element). The prop name rules themselves live in the Zod-free
|
|
8
|
-
* `prop-names.ts
|
|
8
|
+
* `prop-names.ts`, which the runtime may import.
|
|
9
9
|
*/
|
|
10
10
|
import * as z from "zod";
|
|
11
11
|
/** Kebab-case member name: events, slots, parts, collections, track events, component name. */
|
|
12
12
|
export declare const KEBAB_NAME_PATTERN: RegExp;
|
|
13
13
|
/**
|
|
14
|
-
* `Object.prototype` members a field name must not be
|
|
14
|
+
* `Object.prototype` members a field name must not be: validators and consumers read
|
|
15
15
|
* `value[name]`, which finds the inherited member when the field is absent (Zod's object schema
|
|
16
16
|
* then rejects every value without a `toString` field, and component code may call it).
|
|
17
17
|
*/
|
package/dist/names.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Identifier schemas of component contract v1
|
|
3
|
-
* variable, collection and field names. Custom element tags live in `tag-name.ts
|
|
2
|
+
* Identifier schemas of component contract v1: component name, prop, event, slot, part, CSS
|
|
3
|
+
* variable, collection and field names. Custom element tags live in `tag-name.ts`.
|
|
4
4
|
*
|
|
5
5
|
* Every rule is a plain regular expression, so the generated JSON Schema enforces exactly what Zod
|
|
6
6
|
* enforces (no refinement that only Zod would see). Lookaheads carry the deny lists (prop names
|
|
7
7
|
* that would collide with the host element). The prop name rules themselves live in the Zod-free
|
|
8
|
-
* `prop-names.ts
|
|
8
|
+
* `prop-names.ts`, which the runtime may import.
|
|
9
9
|
*/
|
|
10
10
|
import * as z from "zod";
|
|
11
11
|
import { DOM_MEMBER_SNAPSHOT } from "./dom-members.snapshot.js";
|
|
@@ -28,7 +28,7 @@ const KEBAB_BODY = "[a-z][a-z0-9]*(?:-[a-z0-9]+)*";
|
|
|
28
28
|
/** Kebab-case member name: events, slots, parts, collections, track events, component name. */
|
|
29
29
|
export const KEBAB_NAME_PATTERN = new RegExp(`^${KEBAB_BODY}$`);
|
|
30
30
|
/**
|
|
31
|
-
* `Object.prototype` members a field name must not be
|
|
31
|
+
* `Object.prototype` members a field name must not be: validators and consumers read
|
|
32
32
|
* `value[name]`, which finds the inherited member when the field is absent (Zod's object schema
|
|
33
33
|
* then rejects every value without a `toString` field, and component code may call it).
|
|
34
34
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The overage rate table as DATA
|
|
2
|
+
* The overage rate table as DATA: one row per
|
|
3
3
|
* (metric, paid plan, version) with the instant it starts to apply, in micro US dollars. The rows
|
|
4
4
|
* live in the database (`overage_rates`) and staff edits them; `OVERAGE_RATES` in `plan-pricing.ts`
|
|
5
5
|
* is only the seed of version 1. This module is the pure part every reader shares: the row shape,
|
package/dist/overage-pricing.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The overage rate table as DATA
|
|
2
|
+
* The overage rate table as DATA: one row per
|
|
3
3
|
* (metric, paid plan, version) with the instant it starts to apply, in micro US dollars. The rows
|
|
4
4
|
* live in the database (`overage_rates`) and staff edits them; `OVERAGE_RATES` in `plan-pricing.ts`
|
|
5
5
|
* is only the seed of version 1. This module is the pure part every reader shares: the row shape,
|
package/dist/plan-ids.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The plan ids, apart from every table that has a row per plan
|
|
2
|
+
* The plan ids, apart from every table that has a row per plan: the limit catalog
|
|
3
3
|
* (`limit-catalog.ts`) and `planLimits` both need them, and neither may import the other first.
|
|
4
4
|
* Zod-free.
|
|
5
5
|
*/
|
package/dist/plan-ids.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The plan ids, apart from every table that has a row per plan
|
|
2
|
+
* The plan ids, apart from every table that has a row per plan: the limit catalog
|
|
3
3
|
* (`limit-catalog.ts`) and `planLimits` both need them, and neither may import the other first.
|
|
4
4
|
* Zod-free.
|
|
5
5
|
*/
|
package/dist/plan-limits.d.ts
CHANGED
|
@@ -15,15 +15,15 @@ export interface PlanLimits {
|
|
|
15
15
|
/** What visitors download: the bundle and the CSS together. */
|
|
16
16
|
readonly maxOutputBytes: number;
|
|
17
17
|
/**
|
|
18
|
-
* One asset file a component imports (
|
|
18
|
+
* One asset file a component imports (an image or a WOFF2 font, as stored), at most the
|
|
19
19
|
* contract's `ASSET_LIMITS.assetMaxBytes`; over it the build fails with `ASSET_TOO_LARGE`.
|
|
20
20
|
*/
|
|
21
21
|
readonly maxAssetBytes: number;
|
|
22
|
-
/** All the asset files one component imports together (
|
|
22
|
+
/** All the asset files one component imports together (`ASSET_TOO_LARGE`). */
|
|
23
23
|
readonly maxAssetsBytes: number;
|
|
24
24
|
/**
|
|
25
|
-
* Builds a workspace may queue in a rolling 7-day window (the API's `POST /builds
|
|
26
|
-
* one limit, one window, no hourly or daily sublimit beside it
|
|
25
|
+
* Builds a workspace may queue in a rolling 7-day window (the API's `POST /builds`):
|
|
26
|
+
* one limit, one window, no hourly or daily sublimit beside it.
|
|
27
27
|
*/
|
|
28
28
|
readonly buildsPerWeek: number;
|
|
29
29
|
/** Builds of one workspace running at once; always fewer than the container instances. */
|
|
@@ -73,7 +73,7 @@ export declare function planAbove(limit: PlanLimitName, current: number, plans?:
|
|
|
73
73
|
* Inputs: the current time. Output: seconds. Errors: none. Side effects: none.
|
|
74
74
|
*/
|
|
75
75
|
export declare function secondsUntilNextUtcDay(now: Date): number;
|
|
76
|
-
/** The window of `buildsPerWeek`: a rolling 7 days
|
|
76
|
+
/** The window of `buildsPerWeek`: a rolling 7 days. */
|
|
77
77
|
export declare const BUILD_WINDOW_MS: number;
|
|
78
78
|
/** When a full build window frees a place, and how long a client waits for it. */
|
|
79
79
|
export interface BuildWindowReset {
|
|
@@ -93,31 +93,31 @@ export interface BuildWindowReset {
|
|
|
93
93
|
export declare function buildWindowReset(freeingBuildCreatedAt: Date, now: Date): BuildWindowReset;
|
|
94
94
|
/** What each plan allows a workspace to HOLD (as opposed to `PlanLimits`, what one build may use). */
|
|
95
95
|
export interface PlanQuotas {
|
|
96
|
-
/** Sites (not deleted) at once; `POST /v1/sites` answers 409 `site_quota_exceeded` past it
|
|
96
|
+
/** Sites (not deleted) at once; `POST /v1/sites` answers 409 `site_quota_exceeded` past it. */
|
|
97
97
|
readonly maxSites: number;
|
|
98
|
-
/** Unrevoked API keys at once; `POST /v1/api-keys` answers 409 `api_key_quota_exceeded` past it
|
|
98
|
+
/** Unrevoked API keys at once; `POST /v1/api-keys` answers 409 `api_key_quota_exceeded` past it. */
|
|
99
99
|
readonly activeApiKeys: number;
|
|
100
100
|
/**
|
|
101
|
-
* Unrevoked API keys one admin or member may have created at once
|
|
101
|
+
* Unrevoked API keys one admin or member may have created at once; an owner is bound
|
|
102
102
|
* by `activeApiKeys` only. Past it, `POST /v1/api-keys` answers 409 `api_key_quota_exceeded`.
|
|
103
103
|
*/
|
|
104
104
|
readonly activeApiKeysPerCreator: number;
|
|
105
105
|
/**
|
|
106
|
-
* Places of `activeApiKeys` that only an owner may fill
|
|
106
|
+
* Places of `activeApiKeys` that only an owner may fill, so no admin or member, even
|
|
107
107
|
* several together, can leave the owner without a place to create a key.
|
|
108
108
|
*/
|
|
109
109
|
readonly ownerReservedApiKeys: number;
|
|
110
110
|
/**
|
|
111
|
-
* Components attached to one site at once
|
|
112
|
-
* `site_component_limit`.
|
|
111
|
+
* Components attached to one site at once; an attach past it answers 409
|
|
112
|
+
* `site_component_limit`. Provisional until the plans are final. It only
|
|
113
113
|
* stops a NEW attach: after a downgrade, what is attached stays served (golden rule 2). The
|
|
114
114
|
* highest value is the platform ceiling `SITE_MANIFEST_MAX_COMPONENTS` (site-manifest.ts).
|
|
115
115
|
*/
|
|
116
116
|
readonly componentsPerSite: number;
|
|
117
117
|
/**
|
|
118
|
-
* Network origins one version may declare in `permissions.connect` (
|
|
118
|
+
* Network origins one version may declare in `permissions.connect` (the old trust
|
|
119
119
|
* level's `connectOrigins`); a version past it is refused with 402 `plan_limit_reached` before
|
|
120
|
-
* the INSERT.
|
|
120
|
+
* the INSERT. Provisional until the plans are final.
|
|
121
121
|
*/
|
|
122
122
|
readonly connectOriginsPerVersion: number;
|
|
123
123
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-limits.d.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pC;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,qBAAqB,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,GAAG,gBAAgB,CAIzF;AAED,sGAAsG;AACtG,MAAM,WAAW,UAAU;IACzB,+FAA+F;IAC/F,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,oGAAoG;IACpG,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B;;;OAGG;IACH,QAAQ,CAAC,uBAAuB,EAAE,MAAM,CAAC;IACzC;;;OAGG;IACH,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;IACtC;;;;;OAKG;IACH,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC;;;;OAIG;IACH,QAAQ,CAAC,wBAAwB,EAAE,MAAM,CAAC;CAC3C;AAID;;;;;GAKG;AACH,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAA0B,CAAC;AAEvF;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,UAAU,CAEnE"}
|
package/dist/plan-limits.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* `planLimits
|
|
2
|
+
* `planLimits`: the single table of what each plan allows a workspace to build. Zod-free.
|
|
3
3
|
*
|
|
4
4
|
* The builder reads it for every build (timeout, source size, files, dependencies, output size,
|
|
5
|
-
* asset sizes
|
|
6
|
-
* rolling week, `POST /builds` answers 429 with `Retry-After` past it
|
|
5
|
+
* asset sizes, builds at once) and the API reads it before queueing one (builds per
|
|
6
|
+
* rolling week, `POST /builds` answers 429 with `Retry-After` past it). Billing reuses the same rows for its
|
|
7
7
|
* entitlements, so a limit lives here once. It sits in the contract because both the API and the
|
|
8
8
|
* builder already depend on it, and the customer's agent sees these numbers in the
|
|
9
9
|
* `LIMIT_EXCEEDED` diagnostics.
|
|
10
10
|
*
|
|
11
|
-
* The values are provisional until the
|
|
12
|
-
* there is one plan, `free`, with the limits every build already had
|
|
11
|
+
* The values are provisional until the plans and prices are final: today
|
|
12
|
+
* there is one plan, `free`, with the limits every build already had, so
|
|
13
13
|
* nothing gets stricter. The builder's platform ceilings (`BUILD_LIMIT_BOUNDS`, tuned with the
|
|
14
14
|
* `TAGGOR_BUILD_MAX_*` variables) still cap every plan: a plan only lowers a limit, never raises
|
|
15
15
|
* it past what one container instance holds.
|
|
@@ -20,8 +20,8 @@ import { PLAN_IDS } from "./plan-ids.js";
|
|
|
20
20
|
export { PLAN_IDS };
|
|
21
21
|
/** The plan of a workspace without one (and of every build until workspaces have plans). */
|
|
22
22
|
export const DEFAULT_PLAN_ID = "free";
|
|
23
|
-
// The rows come from the limit catalog (`limit-catalog.ts`), the one place that holds the numbers
|
|
24
|
-
//
|
|
23
|
+
// The rows come from the limit catalog (`limit-catalog.ts`), the one place that holds the numbers.
|
|
24
|
+
// The types check that the catalog's `build` group is exactly `PlanLimits`.
|
|
25
25
|
const table = catalogRows("build");
|
|
26
26
|
/**
|
|
27
27
|
* The limits of every plan, by plan id.
|
|
@@ -76,7 +76,7 @@ export function secondsUntilNextUtcDay(now) {
|
|
|
76
76
|
const nextMidnight = (Math.floor(now.getTime() / DAY_MS) + 1) * DAY_MS;
|
|
77
77
|
return Math.max(1, Math.ceil((nextMidnight - now.getTime()) / 1000));
|
|
78
78
|
}
|
|
79
|
-
/** The window of `buildsPerWeek`: a rolling 7 days
|
|
79
|
+
/** The window of `buildsPerWeek`: a rolling 7 days. */
|
|
80
80
|
export const BUILD_WINDOW_MS = 7 * DAY_MS;
|
|
81
81
|
/**
|
|
82
82
|
* When the rolling 7-day window frees one place (`POST /builds` answers 429 with
|
package/dist/plan-limits.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-limits.js","sourceRoot":"","sources":["../src/plan-limits.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;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,EAAE,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;IAC9F,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,CAAC;AACzC,CAAC;AAiCD,MAAM,UAAU,GAA+B,WAAW,CAAC,OAAO,CAAC,CAAC;AAEpE;;;;;GAKG;AACH,MAAM,CAAC,MAAM,UAAU,GAAyC,UAAU,CAAC,UAAU,CAAC,CAAC;AAEvF;;;;;GAKG;AACH,MAAM,UAAU,YAAY,CAAC,MAA0B;IACrD,OAAO,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC;AACjE,CAAC"}
|
package/dist/plan-pricing.d.ts
CHANGED
|
@@ -41,25 +41,25 @@ export interface OverageRate {
|
|
|
41
41
|
readonly microUsdPerUnit: Readonly<Record<PaidPlanId, number>>;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
* THE SEED of the rate table
|
|
44
|
+
* THE SEED of the rate table: the tariffs live in the database
|
|
45
45
|
* (`overage_rates`, versions with an effective date, edited by staff with a reason) and this table
|
|
46
46
|
* is only what migration 0081 inserted as version 1 and what every reader falls back to when the
|
|
47
47
|
* database cannot be read. A test compares it with the migration; nothing else reads it for a price.
|
|
48
48
|
*
|
|
49
|
-
* The tariffs
|
|
49
|
+
* The tariffs (provisional), in micro USD per unit:
|
|
50
50
|
* renders US$ 0,02 per 1.000; SSR renders US$ 0,015 per 1.000; SSR version-day US$ 0,01 (no
|
|
51
51
|
* included amount in v1); build over the weekly limit US$ 0,01; stored submission US$ 0,25 per
|
|
52
|
-
* 1.000; storage US$ 1,00 per GB-month (1000 per MB,
|
|
52
|
+
* 1.000; storage US$ 1,00 per GB-month (1000 per MB, on the average of the cycle's daily readings); extra site US$ 1 (Pro) and US$ 2 (Agency, the existing
|
|
53
53
|
* add-on price, billed on the plan subscription, so its overage rate is informational).
|
|
54
54
|
*/
|
|
55
55
|
export declare const OVERAGE_RATES: Readonly<Record<OverageMetric, OverageRate>>;
|
|
56
56
|
/** The metrics in a fixed order (ledger and Stripe meters follow it). */
|
|
57
57
|
export declare const OVERAGE_METRIC_LIST: readonly OverageMetric[];
|
|
58
58
|
/**
|
|
59
|
-
* The rules around the money of an overage
|
|
59
|
+
* The rules around the money of an overage, numbers only:
|
|
60
60
|
* - `minInvoiceUsdCents`: below it the amount carries to the next month.
|
|
61
61
|
* - `lagHours`: the ledger bills what was counted at least this long ago, never the live count.
|
|
62
|
-
* - NO default spending limit
|
|
62
|
+
* - NO default spending limit: the customer pays what they use. A
|
|
63
63
|
* spending LIMIT is OPTIONAL, set by the customer or by staff, between `spendCapMinUsdCents` and
|
|
64
64
|
* `spendCapMaxUsdCents` (staff: `staffSpendCapMaxUsdCents`). It is a trigger, not a ceiling on the
|
|
65
65
|
* bill: Taggor TRIES to stop the use when the overage reaches it, WITHOUT guarantee, and what was
|
|
@@ -68,8 +68,7 @@ export declare const OVERAGE_METRIC_LIST: readonly OverageMetric[];
|
|
|
68
68
|
* e-mail per milestone per cycle. `spendMilestonePercents` are the named steps of the DEFAULT list
|
|
69
69
|
* (percent of the plan's monthly price: 50%, 100%, 200%, 500%); from there it keeps going, doubling
|
|
70
70
|
* from `spendMilestoneDoublingFrom` (1000%, 2000%, 4000%...) up to `maxSpendMilestones` milestones
|
|
71
|
-
* in all (`defaultSpendMilestonePercents`), so a runaway use keeps warning past 500
|
|
72
|
-
* review M4). The customer may set their own list of up to `maxSpendMilestones` amounts, each at
|
|
71
|
+
* in all (`defaultSpendMilestonePercents`), so a runaway use keeps warning past 500%. The customer may set their own list of up to `maxSpendMilestones` amounts, each at
|
|
73
72
|
* most `spendMilestoneMaxUsdCents`.
|
|
74
73
|
* - `dunningDays`: how long an unpaid overage invoice is chased before new overage is suspended.
|
|
75
74
|
* - `freeCutMultiple`: Free is cut at this multiple of its number (1x, no grace).
|
|
@@ -101,10 +100,9 @@ export declare function defaultSpendMilestonePercents(): readonly number[];
|
|
|
101
100
|
*/
|
|
102
101
|
export declare function overageMicroUsdPerUnit(metric: OverageMetric, planId: PlanId): number | null;
|
|
103
102
|
/**
|
|
104
|
-
* Which of the forgeable metrics are billed (
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
* decided that a customer pays what was used, so the three metrics are billed; the guard (a spike
|
|
103
|
+
* Which of the forgeable metrics are billed (all three are on). A render and a stored submission can be forged by
|
|
104
|
+
* anyone with the public site key, so they were kept off the bill until a guard existed. The rule
|
|
105
|
+
* is that a customer pays what was used, so the three metrics are billed; the guard (a surge
|
|
108
106
|
* flag per site, `usage-guard.ts`) no longer holds anything back, it only keeps the Free plan from
|
|
109
107
|
* being cut by forged traffic and warns the customer of an unusual day, and the safety net for a wrong
|
|
110
108
|
* bill is the credit on request (runbook). The switch stays in ONE place: the billing code of the API
|
|
@@ -119,7 +117,7 @@ export interface OverageBillingGates {
|
|
|
119
117
|
/** The submissions metric and the storage that follows it. */
|
|
120
118
|
readonly submissions: boolean;
|
|
121
119
|
}
|
|
122
|
-
/** The gates as the code ships them: both on
|
|
120
|
+
/** The gates as the code ships them: both on; frozen, the literal types are `true`. */
|
|
123
121
|
export declare const OVERAGE_BILLING_GATES: Readonly<{
|
|
124
122
|
readonly loaderHits: true;
|
|
125
123
|
readonly submissions: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-pricing.d.ts","sourceRoot":"","sources":["../src/plan-pricing.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plan-pricing.d.ts","sourceRoot":"","sources":["../src/plan-pricing.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAkC,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExF,iFAAiF;AACjF,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,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,eAAO,MAAM,aAAa;;;;;;;;;;;;;EAaxB,CAAC;AAEH;;;;GAIG;AACH,wBAAgB,6BAA6B,IAAI,SAAS,MAAM,EAAE,CAUjE;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAI3F;AAED;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,mBAAmB;IAClC,0CAA0C;IAC1C,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,8DAA8D;IAC9D,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC/B;AAED,uFAAuF;AACvF,eAAO,MAAM,qBAAqB;;;EAGvB,CAAC;AAEZ;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,aAAa,EACrB,KAAK,GAAE,mBAA2C,GACjD,OAAO,CAIT;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,MAAM,EACZ,KAAK,GAAE,mBAA2C,GACjD,OAAO,CAGT;AAED,gGAAgG;AAChG,eAAO,MAAM,sBAAsB,EAAE,SAAS,aAAa,EAE1D,CAAC"}
|
package/dist/plan-pricing.js
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* What each plan COSTS, the Agency site extension and the overage rates and rules
|
|
3
|
-
* decisions 68 and 71; TAG-1628, decision 84, replaced the cut rule of decisions 69 and 71). Zod-free, frozen, same style as `plan-usage.ts` and `plan-limits.ts`.
|
|
2
|
+
* What each plan COSTS, the Agency site extension and the overage rates and rules. Zod-free, frozen, same style as `plan-usage.ts` and `plan-limits.ts`.
|
|
4
3
|
*
|
|
5
4
|
* Why it lives in the contract: the billing catalog (`apps/api/src/domain/billing/plans.ts`) and the
|
|
6
5
|
* public site both need these numbers, and a number written twice drifts. The billing catalog
|
|
7
6
|
* composes its rows from here; the site reads them through its figures registry, so no plan price
|
|
8
7
|
* is typed by hand in site copy.
|
|
9
8
|
*
|
|
10
|
-
* ALL NUMBERS ARE PROVISIONAL until the
|
|
11
|
-
*
|
|
9
|
+
* ALL NUMBERS ARE PROVISIONAL until the plans and prices are final.
|
|
10
|
+
* Money is US dollar cents.
|
|
12
11
|
* Nothing here charges or cuts; it is a table.
|
|
13
12
|
*
|
|
14
|
-
*
|
|
13
|
+
* The overage rate table below (`OVERAGE_RATES`) is the ONE place
|
|
15
14
|
* the price of a unit above the plan is written; the site, the portal, the API and the Stripe
|
|
16
|
-
* prices read it. Rates are
|
|
15
|
+
* prices read it. Rates are provisional until the prices are final.
|
|
17
16
|
*/
|
|
18
17
|
import { planQuotas } from "./plan-limits.js";
|
|
19
18
|
import { LIMIT_CATALOG, OVERAGE_METRICS } from "./limit-catalog.js";
|
|
@@ -40,15 +39,15 @@ export const planPricing = Object.freeze({
|
|
|
40
39
|
});
|
|
41
40
|
const bothPaid = (value) => Object.freeze({ pro: value, agency: value });
|
|
42
41
|
/**
|
|
43
|
-
* THE SEED of the rate table
|
|
42
|
+
* THE SEED of the rate table: the tariffs live in the database
|
|
44
43
|
* (`overage_rates`, versions with an effective date, edited by staff with a reason) and this table
|
|
45
44
|
* is only what migration 0081 inserted as version 1 and what every reader falls back to when the
|
|
46
45
|
* database cannot be read. A test compares it with the migration; nothing else reads it for a price.
|
|
47
46
|
*
|
|
48
|
-
* The tariffs
|
|
47
|
+
* The tariffs (provisional), in micro USD per unit:
|
|
49
48
|
* renders US$ 0,02 per 1.000; SSR renders US$ 0,015 per 1.000; SSR version-day US$ 0,01 (no
|
|
50
49
|
* included amount in v1); build over the weekly limit US$ 0,01; stored submission US$ 0,25 per
|
|
51
|
-
* 1.000; storage US$ 1,00 per GB-month (1000 per MB,
|
|
50
|
+
* 1.000; storage US$ 1,00 per GB-month (1000 per MB, on the average of the cycle's daily readings); extra site US$ 1 (Pro) and US$ 2 (Agency, the existing
|
|
52
51
|
* add-on price, billed on the plan subscription, so its overage rate is informational).
|
|
53
52
|
*/
|
|
54
53
|
export const OVERAGE_RATES = Object.freeze({
|
|
@@ -83,10 +82,10 @@ export const OVERAGE_RATES = Object.freeze({
|
|
|
83
82
|
/** The metrics in a fixed order (ledger and Stripe meters follow it). */
|
|
84
83
|
export const OVERAGE_METRIC_LIST = OVERAGE_METRICS;
|
|
85
84
|
/**
|
|
86
|
-
* The rules around the money of an overage
|
|
85
|
+
* The rules around the money of an overage, numbers only:
|
|
87
86
|
* - `minInvoiceUsdCents`: below it the amount carries to the next month.
|
|
88
87
|
* - `lagHours`: the ledger bills what was counted at least this long ago, never the live count.
|
|
89
|
-
* - NO default spending limit
|
|
88
|
+
* - NO default spending limit: the customer pays what they use. A
|
|
90
89
|
* spending LIMIT is OPTIONAL, set by the customer or by staff, between `spendCapMinUsdCents` and
|
|
91
90
|
* `spendCapMaxUsdCents` (staff: `staffSpendCapMaxUsdCents`). It is a trigger, not a ceiling on the
|
|
92
91
|
* bill: Taggor TRIES to stop the use when the overage reaches it, WITHOUT guarantee, and what was
|
|
@@ -95,8 +94,7 @@ export const OVERAGE_METRIC_LIST = OVERAGE_METRICS;
|
|
|
95
94
|
* e-mail per milestone per cycle. `spendMilestonePercents` are the named steps of the DEFAULT list
|
|
96
95
|
* (percent of the plan's monthly price: 50%, 100%, 200%, 500%); from there it keeps going, doubling
|
|
97
96
|
* from `spendMilestoneDoublingFrom` (1000%, 2000%, 4000%...) up to `maxSpendMilestones` milestones
|
|
98
|
-
* in all (`defaultSpendMilestonePercents`), so a runaway use keeps warning past 500
|
|
99
|
-
* review M4). The customer may set their own list of up to `maxSpendMilestones` amounts, each at
|
|
97
|
+
* in all (`defaultSpendMilestonePercents`), so a runaway use keeps warning past 500%. The customer may set their own list of up to `maxSpendMilestones` amounts, each at
|
|
100
98
|
* most `spendMilestoneMaxUsdCents`.
|
|
101
99
|
* - `dunningDays`: how long an unpaid overage invoice is chased before new overage is suspended.
|
|
102
100
|
* - `freeCutMultiple`: Free is cut at this multiple of its number (1x, no grace).
|
|
@@ -137,7 +135,7 @@ export function overageMicroUsdPerUnit(metric, planId) {
|
|
|
137
135
|
const rates = OVERAGE_RATES[metric].microUsdPerUnit;
|
|
138
136
|
return rates[planId] ?? null;
|
|
139
137
|
}
|
|
140
|
-
/** The gates as the code ships them: both on
|
|
138
|
+
/** The gates as the code ships them: both on; frozen, the literal types are `true`. */
|
|
141
139
|
export const OVERAGE_BILLING_GATES = Object.freeze({
|
|
142
140
|
loaderHits: true,
|
|
143
141
|
submissions: true,
|
package/dist/plan-pricing.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-pricing.js","sourceRoot":"","sources":["../src/plan-pricing.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"plan-pricing.js","sourceRoot":"","sources":["../src/plan-pricing.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EAAE,aAAa,EAAE,eAAe,EAAsB,MAAM,oBAAoB,CAAC;AA2BxF,MAAM,KAAK,GAAG,CAAC,OAAe,EAAE,MAAc,EAAa,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAC;AAEjG,MAAM,KAAK,GAAG;IACZ,IAAI,EAAE,EAAE,aAAa,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE;IACzD,GAAG,EAAE,EAAE,aAAa,EAAE,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC,EAAE,aAAa,EAAE,IAAI,EAAE;IAChE,MAAM,EAAE;QACN,aAAa,EAAE,KAAK,CAAC,IAAI,EAAE,MAAM,CAAC;QAClC,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC;YAC3B,aAAa,EAAE,UAAU,CAAC,MAAM,CAAC,QAAQ;YACzC,QAAQ,EAAE,GAAG;YACb,sB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CAAC;AAED,gGAAgG;AAChG,MAAM,CAAC,MAAM,sBAAsB,GAA6B,MAAM,CAAC,MAAM,CAC3E,eAAe,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC,CAClE,CAAC"}
|
package/dist/plan-usage.d.ts
CHANGED
|
@@ -3,25 +3,25 @@ import { type PlanId } from "./plan-limits.js";
|
|
|
3
3
|
export interface PlanUsage {
|
|
4
4
|
/** Loader deliveries that count toward the plan (`countsTowardUsage`), the proxy of renders. */
|
|
5
5
|
readonly rendersPerMonth: number;
|
|
6
|
-
/** Server renders of `GET /r/` (cache misses the edge rendered) in the month
|
|
6
|
+
/** Server renders of `GET /r/` (cache misses the edge rendered) in the month. */
|
|
7
7
|
readonly ssrRendersPerMonth: number;
|
|
8
8
|
/** Submissions accepted (not spam, not from a staging site). */
|
|
9
9
|
readonly submissionsPerMonth: number;
|
|
10
10
|
/** Bytes the submissions of the workspace hold (the JSON of `data`). */
|
|
11
11
|
readonly storageBytes: number;
|
|
12
12
|
/**
|
|
13
|
-
* The most days a submission lives (
|
|
14
|
-
* may choose fewer days, never more
|
|
13
|
+
* The most days a submission lives (12, 24 and 36 months). A collection
|
|
14
|
+
* may choose fewer days, never more.
|
|
15
15
|
*/
|
|
16
16
|
readonly retentionDays: number;
|
|
17
17
|
}
|
|
18
18
|
/** The usage allowance of every plan, by plan id. Frozen. */
|
|
19
19
|
export declare const planUsage: Readonly<Record<PlanId, PlanUsage>>;
|
|
20
|
-
/** The percentages of an allowance at which a customer is warned (
|
|
20
|
+
/** The percentages of an allowance at which a customer is warned (80% and 100%). */
|
|
21
21
|
export declare const USAGE_WARNING_PERCENTS: readonly [80, 100];
|
|
22
22
|
/**
|
|
23
23
|
* Where a count stands against its allowance. `ok` below 80%, `warning` from 80%, `reached` from
|
|
24
|
-
* 100%. Nothing acts on it in this ticket;
|
|
24
|
+
* 100%. Nothing acts on it in this ticket; adds grace and the rest.
|
|
25
25
|
*/
|
|
26
26
|
export declare const USAGE_LEVELS: readonly ["ok", "warning", "reached"];
|
|
27
27
|
export type UsageLevel = (typeof USAGE_LEVELS)[number];
|
|
@@ -38,17 +38,17 @@ export declare function usagePercent(used: number, limit: number): number;
|
|
|
38
38
|
*/
|
|
39
39
|
export declare function usageLevel(used: number, limit: number): UsageLevel;
|
|
40
40
|
/**
|
|
41
|
-
* The rule that marks a site's render count as suspect
|
|
41
|
+
* The rule that marks a site's render count as suspect: the key of a
|
|
42
42
|
* site and its allowed domains are public, so anyone can forge loader hits with a `Referer` and a
|
|
43
43
|
* `User-Agent`. A day with more than `multiplier` times the mean of the `baselineDays` days before
|
|
44
|
-
* it, and at least `minViews`, is a
|
|
44
|
+
* it, and at least `minViews`, is a surge. Provisional.
|
|
45
45
|
*
|
|
46
46
|
* What it does NOT catch: a slow ramp (each day under `multiplier` times the days before it) and
|
|
47
47
|
* steady traffic below `minViews` a day. `minViews` here is only the ceiling of the floor; the
|
|
48
48
|
* plan's own floor is `spikeMinViews`, so steady forging is bounded by the plan (at most about
|
|
49
49
|
* `rendersPerMonth` in a month) instead of by a fixed 1,000 a day. The guard is a brake on sudden
|
|
50
|
-
*
|
|
51
|
-
* having looked
|
|
50
|
+
* surges, not proof of authenticity: nothing may cut a component for renders without a person
|
|
51
|
+
* having looked.
|
|
52
52
|
*/
|
|
53
53
|
export declare const VIEW_SPIKE_RULE: Readonly<{
|
|
54
54
|
multiplier: 10;
|
|
@@ -56,22 +56,22 @@ export declare const VIEW_SPIKE_RULE: Readonly<{
|
|
|
56
56
|
/** The most a day's floor is, whatever the plan; see `spikeMinViews`. */
|
|
57
57
|
minViews: 1000;
|
|
58
58
|
}>;
|
|
59
|
-
/** A
|
|
59
|
+
/** A surge rule with its own floor. */
|
|
60
60
|
export interface ViewSpikeRule {
|
|
61
61
|
readonly multiplier: number;
|
|
62
62
|
readonly baselineDays: number;
|
|
63
63
|
readonly minViews: number;
|
|
64
64
|
}
|
|
65
65
|
/**
|
|
66
|
-
* The daily floor of a plan: a day below it is never a
|
|
66
|
+
* The daily floor of a plan: a day below it is never a surge.
|
|
67
67
|
* Inputs: the plan's renders per month. Output: the lower of `VIEW_SPIKE_RULE.minViews` and a
|
|
68
68
|
* thirtieth of the month (at least 1), so quietly forging the plan's whole month in 30 equal days
|
|
69
|
-
* is a
|
|
69
|
+
* is a surge on the first day that passes the floor rather than going unseen. Errors: none. No
|
|
70
70
|
* side effects.
|
|
71
71
|
*/
|
|
72
72
|
export declare function spikeMinViews(rendersPerMonth: number): number;
|
|
73
73
|
/**
|
|
74
|
-
* The
|
|
74
|
+
* The surge rule of a plan. Inputs: a plan id (unknown: the default plan). Output: the rule with
|
|
75
75
|
* the plan's floor. Errors: none. No side effects.
|
|
76
76
|
*/
|
|
77
77
|
export declare function spikeRuleOf(planId: string | undefined): ViewSpikeRule;
|
|
@@ -89,19 +89,19 @@ export interface ViewSpike {
|
|
|
89
89
|
readonly baselineMean: number;
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
|
-
* Every day of a series that is a
|
|
92
|
+
* Every day of a series that is a surge, earliest first.
|
|
93
93
|
* Inputs: the counted views per UTC day (any order; a missing day is zero), the current time, the
|
|
94
94
|
* rule and the first day to examine (default: yesterday, so today, still partial, and yesterday are
|
|
95
|
-
* looked at). Output: the
|
|
96
|
-
* the `baselineDays` days before it (possibly none). All of them, not the first: a
|
|
95
|
+
* looked at). Output: the surges among the days from `from` to today, each day against the mean of
|
|
96
|
+
* the `baselineDays` days before it (possibly none). All of them, not the first: a surge a person
|
|
97
97
|
* already judged `legit` must not hide a later one. A caller that measures a workspace only
|
|
98
|
-
* every few hours passes the first day of the month, so a
|
|
98
|
+
* every few hours passes the first day of the month, so a surge that happened between two visits
|
|
99
99
|
* is still found. Days before the series count as zero: give it `baselineDays` days before `from`.
|
|
100
100
|
* Errors: none. No side effects.
|
|
101
101
|
*/
|
|
102
102
|
export declare function detectViewSpikes(series: readonly DailyViews[], now: Date, rule?: ViewSpikeRule, from?: Date): ViewSpike[];
|
|
103
103
|
/**
|
|
104
|
-
* The first
|
|
104
|
+
* The first surge of `detectViewSpikes`, or `null`. Same inputs. Errors: none. No side effects.
|
|
105
105
|
*/
|
|
106
106
|
export declare function detectViewSpike(series: readonly DailyViews[], now: Date, rule?: ViewSpikeRule, from?: Date): ViewSpike | null;
|
|
107
107
|
/**
|
package/dist/plan-usage.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-usage.d.ts","sourceRoot":"","sources":["../src/plan-usage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"plan-usage.d.ts","sourceRoot":"","sources":["../src/plan-usage.ts"],"names":[],"mappings":"AAWA,OAAO,EAAuC,KAAK,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAEpF,+FAA+F;AAC/F,MAAM,WAAW,SAAS;IACxB,gGAAgG;IAChG,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,iFAAiF;IACjF,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,gEAAgE;IAChE,QAAQ,CAAC,mBAAmB,EAAE,MAAM,CAAC;IACrC,wEAAwE;IACxE,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B;;;OAGG;IACH,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAChC;AAKD,6DAA6D;AAC7D,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAKzD,CAAC;AAEF,oFAAoF;AACpF,eAAO,MAAM,sBAAsB,oBAAoC,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,YAAY,uCAAwC,CAAC;AAClE,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvD;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAA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