@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/json-schema.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Public base URL of the contract JSON Schemas
|
|
2
|
+
* Public base URL of the contract JSON Schemas: the site serves each document at
|
|
3
3
|
* `<base><name>/v<major>.json`, which is also its `$id`, so an editor that follows `"$schema"` gets
|
|
4
|
-
* the same document Ajv registers by id. The brand domain
|
|
5
|
-
* ADR 0042) moved it from an old host Taggor does not own; the documents sealed in
|
|
4
|
+
* the same document Ajv registers by id. The brand domain. Contract 1.6 moved it from an old host Taggor does not own; the documents sealed in
|
|
6
5
|
* `schema/published/` for 1.3 to 1.5 keep their old `$id` byte for byte and are never regenerated
|
|
7
6
|
* from this constant, so only the documents of 1.6 and later name this base.
|
|
8
7
|
*/
|
|
@@ -15,28 +14,28 @@ export declare const CONTRACT_SCHEMA_BASE_URL = "https://taggor.dev/schema/";
|
|
|
15
14
|
* callers pass constants. Side effects: none.
|
|
16
15
|
*/
|
|
17
16
|
export declare function contractSchemaUrl(name: string, label: string): string;
|
|
18
|
-
/** `$id` of the manifest JSON Schema: its public URL
|
|
17
|
+
/** `$id` of the manifest JSON Schema: its public URL. */
|
|
19
18
|
export declare const MANIFEST_SCHEMA_ID: string;
|
|
20
19
|
/** `$id` of the data API JSON Schema. */
|
|
21
20
|
export declare const DATA_API_SCHEMA_ID: string;
|
|
22
|
-
/** `$id` of the build diagnostic JSON Schema
|
|
21
|
+
/** `$id` of the build diagnostic JSON Schema. */
|
|
23
22
|
export declare const BUILD_DIAGNOSTIC_SCHEMA_ID: string;
|
|
24
|
-
/** `$id` of the workspace library JSON Schema
|
|
23
|
+
/** `$id` of the workspace library JSON Schema. */
|
|
25
24
|
export declare const LIBRARY_MANIFEST_SCHEMA_ID: string;
|
|
26
|
-
/** `$id` of the `taggor.json` JSON Schema, project and source package
|
|
25
|
+
/** `$id` of the `taggor.json` JSON Schema, project and source package. */
|
|
27
26
|
export declare const CONFIG_DOCUMENT_SCHEMA_ID: string;
|
|
28
27
|
/** One rule of the manifest that only Zod checks: a stable id and what it requires. */
|
|
29
28
|
export interface SemanticRule {
|
|
30
|
-
/** Stable kebab-case id, cited by the `semanticOnly`
|
|
29
|
+
/** Stable kebab-case id, cited by the `semanticOnly` samples and the `zod-only:` markers. */
|
|
31
30
|
readonly id: string;
|
|
32
31
|
readonly description: string;
|
|
33
32
|
}
|
|
34
33
|
/**
|
|
35
34
|
* Every rule of the manifest that only Zod checks (JSON Schema 2020-12 cannot compare two values
|
|
36
35
|
* of the same document), so a manifest the JSON Schema accepts may still be refused by
|
|
37
|
-
* `parseManifest
|
|
38
|
-
* `semanticOnly`
|
|
39
|
-
* names no rule of this list, or a rule here has no
|
|
36
|
+
* `parseManifest`. SPEC.md §2 lists them; `semantic-rules.test.ts` proves each with a
|
|
37
|
+
* `semanticOnly` sample that Ajv accepts and Zod refuses, and fails when a refinement in `src/`
|
|
38
|
+
* names no rule of this list, or a rule here has no sample or no refinement.
|
|
40
39
|
*
|
|
41
40
|
* Inputs: none. Output: frozen rules in document order. Errors: none. Side effects: none.
|
|
42
41
|
*/
|
|
@@ -50,14 +49,14 @@ type JsonObject = Record<string, unknown>;
|
|
|
50
49
|
*/
|
|
51
50
|
export declare function manifestJsonSchema(): JsonObject;
|
|
52
51
|
/**
|
|
53
|
-
* JSON Schema of a workspace library manifest
|
|
52
|
+
* JSON Schema of a workspace library manifest.
|
|
54
53
|
*
|
|
55
54
|
* Inputs: none. Output: a fresh JSON-serializable object. Errors: throws only if the Zod schema
|
|
56
55
|
* has no JSON Schema form. Side effects: none.
|
|
57
56
|
*/
|
|
58
57
|
export declare function libraryManifestJsonSchema(): JsonObject;
|
|
59
58
|
/**
|
|
60
|
-
* JSON Schema of `taggor.json`, the project's and the source package's
|
|
59
|
+
* JSON Schema of `taggor.json`, the project's and the source package's, from
|
|
61
60
|
* `sourcePackageConfigSchema`.
|
|
62
61
|
*
|
|
63
62
|
* Inputs: none. Output: a fresh JSON-serializable object. Errors: as `libraryManifestJsonSchema`.
|
|
@@ -75,8 +74,8 @@ export declare function taggorConfigJsonSchema(): JsonObject;
|
|
|
75
74
|
*/
|
|
76
75
|
export declare function dataApiJsonSchema(): JsonObject;
|
|
77
76
|
/**
|
|
78
|
-
* JSON Schema of one build diagnostic
|
|
79
|
-
* use TypeScript. Generated from `buildDiagnosticWireSchema
|
|
77
|
+
* JSON Schema of one build diagnostic, for clients of `GET /v1/builds/{id}` that do not
|
|
78
|
+
* use TypeScript. Generated from `buildDiagnosticWireSchema`: `code` is a format, not
|
|
80
79
|
* the catalog's list, so a new catalog code leaves this document unchanged.
|
|
81
80
|
*
|
|
82
81
|
* Inputs: none. Output: a fresh JSON-serializable object. Errors: as `manifestJsonSchema`. Side
|
|
@@ -98,7 +97,7 @@ export interface ContractSchemaDocument {
|
|
|
98
97
|
}
|
|
99
98
|
/**
|
|
100
99
|
* Every JSON Schema document of the contract: what `gen` writes to `schema/` and what the site
|
|
101
|
-
* publishes under `CONTRACT_SCHEMA_BASE_URL
|
|
100
|
+
* publishes under `CONTRACT_SCHEMA_BASE_URL`. A new document (or a new major of one)
|
|
102
101
|
* is added here once and reaches both.
|
|
103
102
|
*
|
|
104
103
|
* Inputs: none. Output: frozen descriptors in a fixed order. Errors: none. Side effects: none.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-schema.d.ts","sourceRoot":"","sources":["../src/json-schema.ts"],"names":[],"mappings":"AAwBA
|
|
1
|
+
{"version":3,"file":"json-schema.d.ts","sourceRoot":"","sources":["../src/json-schema.ts"],"names":[],"mappings":"AAwBA;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,+BAA+B,CAAC;AAErE;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAErE;AAED,yDAAyD;AACzD,eAAO,MAAM,kBAAkB,QAAgD,CAAC;AAChF,yCAAyC;AACzC,eAAO,MAAM,kBAAkB,QAAsC,CAAC;AACtE,iDAAiD;AACjD,eAAO,MAAM,0BAA0B,QAA8C,CAAC;AACtF,kDAAkD;AAClD,eAAO,MAAM,0BAA0B,QAA8C,CAAC;AACtF,0EAA0E;AAC1E,eAAO,MAAM,yBAAyB,QAA2C,CAAC;AAElF,uFAAuF;AACvF,MAAM,WAAW,YAAY;IAC3B,6FAA6F;IAC7F,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;CAC9B;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,EAAE,SAAS,YAAY,EAmFjD,CAAC;AAEF,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAa1C;;;;;GAKG;AACH,wBAAgB,kBAAkB,IAAI,UAAU,CAI/C;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,IAAI,UAAU,CAGtD;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,IAAI,UAAU,CAGnD;AAED;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,IAAI,UAAU,CA8B9C;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,IAAI,UAAU,CAGtD;AAED,kGAAkG;AAClG,MAAM,WAAW,sBAAsB;IACrC,4EAA4E;IAC5E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,kFAAkF;IAClF,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,6DAA6D;IAC7D,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,iGAAiG;IACjG,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,uDAAuD;IACvD,QAAQ,CAAC,MAAM,EAAE,MAAM,UAAU,CAAC;CACnC;AAWD;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,EAAE,SAAS,sBAAsB,EAMrE,CAAC"}
|
package/dist/json-schema.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* JSON Schema (draft 2020-12) of component contract v1, derived from the Zod source
|
|
2
|
+
* JSON Schema (draft 2020-12) of component contract v1, derived from the Zod source.
|
|
3
3
|
*
|
|
4
4
|
* These documents are what `pnpm --filter @taggor/contract gen` writes to `schema/` and what
|
|
5
5
|
* editors, agents and non-TypeScript consumers use. They are generated, never written by hand.
|
|
6
6
|
* The JSON Schema enforces every structural rule (types, names, lengths, counts, unknown keys);
|
|
7
7
|
* the cross-field rules listed in `SEMANTIC_RULES` exist only in Zod, so `parseManifest`
|
|
8
|
-
* remains the authoritative validator and the JSON Schema alone is not enough
|
|
8
|
+
* remains the authoritative validator and the JSON Schema alone is not enough.
|
|
9
9
|
*/
|
|
10
10
|
import * as z from "zod";
|
|
11
11
|
import { buildDiagnosticWireSchema } from "./build-diagnostic.js";
|
|
@@ -14,10 +14,9 @@ import { dataErrorSchema, readRequestSchema, readResponseSchema, submitAcceptedS
|
|
|
14
14
|
import { componentManifestSchema } from "./manifest.js";
|
|
15
15
|
import { sourcePackageConfigSchema } from "./source-package.js";
|
|
16
16
|
/**
|
|
17
|
-
* Public base URL of the contract JSON Schemas
|
|
17
|
+
* Public base URL of the contract JSON Schemas: the site serves each document at
|
|
18
18
|
* `<base><name>/v<major>.json`, which is also its `$id`, so an editor that follows `"$schema"` gets
|
|
19
|
-
* the same document Ajv registers by id. The brand domain
|
|
20
|
-
* ADR 0042) moved it from an old host Taggor does not own; the documents sealed in
|
|
19
|
+
* the same document Ajv registers by id. The brand domain. Contract 1.6 moved it from an old host Taggor does not own; the documents sealed in
|
|
21
20
|
* `schema/published/` for 1.3 to 1.5 keep their old `$id` byte for byte and are never regenerated
|
|
22
21
|
* from this constant, so only the documents of 1.6 and later name this base.
|
|
23
22
|
*/
|
|
@@ -32,22 +31,22 @@ export const CONTRACT_SCHEMA_BASE_URL = "https://taggor.dev/schema/";
|
|
|
32
31
|
export function contractSchemaUrl(name, label) {
|
|
33
32
|
return `${CONTRACT_SCHEMA_BASE_URL}${name}/${label}.json`;
|
|
34
33
|
}
|
|
35
|
-
/** `$id` of the manifest JSON Schema: its public URL
|
|
34
|
+
/** `$id` of the manifest JSON Schema: its public URL. */
|
|
36
35
|
export const MANIFEST_SCHEMA_ID = contractSchemaUrl("component-manifest", "v1");
|
|
37
36
|
/** `$id` of the data API JSON Schema. */
|
|
38
37
|
export const DATA_API_SCHEMA_ID = contractSchemaUrl("data-api", "v1");
|
|
39
|
-
/** `$id` of the build diagnostic JSON Schema
|
|
38
|
+
/** `$id` of the build diagnostic JSON Schema. */
|
|
40
39
|
export const BUILD_DIAGNOSTIC_SCHEMA_ID = contractSchemaUrl("build-diagnostic", "v1");
|
|
41
|
-
/** `$id` of the workspace library JSON Schema
|
|
40
|
+
/** `$id` of the workspace library JSON Schema. */
|
|
42
41
|
export const LIBRARY_MANIFEST_SCHEMA_ID = contractSchemaUrl("library-manifest", "v1");
|
|
43
|
-
/** `$id` of the `taggor.json` JSON Schema, project and source package
|
|
42
|
+
/** `$id` of the `taggor.json` JSON Schema, project and source package. */
|
|
44
43
|
export const CONFIG_DOCUMENT_SCHEMA_ID = contractSchemaUrl("taggor-config", "v1");
|
|
45
44
|
/**
|
|
46
45
|
* Every rule of the manifest that only Zod checks (JSON Schema 2020-12 cannot compare two values
|
|
47
46
|
* of the same document), so a manifest the JSON Schema accepts may still be refused by
|
|
48
|
-
* `parseManifest
|
|
49
|
-
* `semanticOnly`
|
|
50
|
-
* names no rule of this list, or a rule here has no
|
|
47
|
+
* `parseManifest`. SPEC.md §2 lists them; `semantic-rules.test.ts` proves each with a
|
|
48
|
+
* `semanticOnly` sample that Ajv accepts and Zod refuses, and fails when a refinement in `src/`
|
|
49
|
+
* names no rule of this list, or a rule here has no sample or no refinement.
|
|
51
50
|
*
|
|
52
51
|
* Inputs: none. Output: frozen rules in document order. Errors: none. Side effects: none.
|
|
53
52
|
*/
|
|
@@ -104,27 +103,27 @@ export const SEMANTIC_RULES = Object.freeze([
|
|
|
104
103
|
},
|
|
105
104
|
{
|
|
106
105
|
id: "personal-requires-privacy-policy",
|
|
107
|
-
description: "data.personal true requires data.privacyPolicyUrl
|
|
106
|
+
description: "data.personal true requires data.privacyPolicyUrl",
|
|
108
107
|
},
|
|
109
108
|
{
|
|
110
109
|
id: "privacy-policy-https-url-prop",
|
|
111
|
-
description: 'data.privacyPolicyUrl names a declared prop of type "url" whose protocols include https
|
|
110
|
+
description: 'data.privacyPolicyUrl names a declared prop of type "url" whose protocols include https',
|
|
112
111
|
},
|
|
113
112
|
{
|
|
114
113
|
id: "locales-default-supported",
|
|
115
|
-
description: "locales.default is one of locales.supported
|
|
114
|
+
description: "locales.default is one of locales.supported",
|
|
116
115
|
},
|
|
117
116
|
{
|
|
118
117
|
id: "locales-case-unique",
|
|
119
|
-
description: "locales.supported has no two tags that differ only in case
|
|
118
|
+
description: "locales.supported has no two tags that differ only in case",
|
|
120
119
|
},
|
|
121
120
|
{
|
|
122
121
|
id: "locales-no-locale-prop",
|
|
123
|
-
description: "a manifest declaring locales has no prop named locale
|
|
122
|
+
description: "a manifest declaring locales has no prop named locale",
|
|
124
123
|
},
|
|
125
124
|
{
|
|
126
125
|
id: "library-semver-range",
|
|
127
|
-
description: "component library and library peer dependency ranges use the supported npm semver grammar
|
|
126
|
+
description: "component library and library peer dependency ranges use the supported npm semver grammar",
|
|
128
127
|
},
|
|
129
128
|
].map((rule) => Object.freeze(rule)));
|
|
130
129
|
function generate(schema) {
|
|
@@ -149,7 +148,7 @@ export function manifestJsonSchema() {
|
|
|
149
148
|
return { $schema, $id: MANIFEST_SCHEMA_ID, ...rest };
|
|
150
149
|
}
|
|
151
150
|
/**
|
|
152
|
-
* JSON Schema of a workspace library manifest
|
|
151
|
+
* JSON Schema of a workspace library manifest.
|
|
153
152
|
*
|
|
154
153
|
* Inputs: none. Output: a fresh JSON-serializable object. Errors: throws only if the Zod schema
|
|
155
154
|
* has no JSON Schema form. Side effects: none.
|
|
@@ -159,7 +158,7 @@ export function libraryManifestJsonSchema() {
|
|
|
159
158
|
return { $schema, $id: LIBRARY_MANIFEST_SCHEMA_ID, ...rest };
|
|
160
159
|
}
|
|
161
160
|
/**
|
|
162
|
-
* JSON Schema of `taggor.json`, the project's and the source package's
|
|
161
|
+
* JSON Schema of `taggor.json`, the project's and the source package's, from
|
|
163
162
|
* `sourcePackageConfigSchema`.
|
|
164
163
|
*
|
|
165
164
|
* Inputs: none. Output: a fresh JSON-serializable object. Errors: as `libraryManifestJsonSchema`.
|
|
@@ -209,8 +208,8 @@ export function dataApiJsonSchema() {
|
|
|
209
208
|
};
|
|
210
209
|
}
|
|
211
210
|
/**
|
|
212
|
-
* JSON Schema of one build diagnostic
|
|
213
|
-
* use TypeScript. Generated from `buildDiagnosticWireSchema
|
|
211
|
+
* JSON Schema of one build diagnostic, for clients of `GET /v1/builds/{id}` that do not
|
|
212
|
+
* use TypeScript. Generated from `buildDiagnosticWireSchema`: `code` is a format, not
|
|
214
213
|
* the catalog's list, so a new catalog code leaves this document unchanged.
|
|
215
214
|
*
|
|
216
215
|
* Inputs: none. Output: a fresh JSON-serializable object. Errors: as `manifestJsonSchema`. Side
|
|
@@ -225,7 +224,7 @@ function schemaDocument(name, major, id, render) {
|
|
|
225
224
|
}
|
|
226
225
|
/**
|
|
227
226
|
* Every JSON Schema document of the contract: what `gen` writes to `schema/` and what the site
|
|
228
|
-
* publishes under `CONTRACT_SCHEMA_BASE_URL
|
|
227
|
+
* publishes under `CONTRACT_SCHEMA_BASE_URL`. A new document (or a new major of one)
|
|
229
228
|
* is added here once and reaches both.
|
|
230
229
|
*
|
|
231
230
|
* Inputs: none. Output: frozen descriptors in a fixed order. Errors: none. Side effects: none.
|
package/dist/json-schema.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json-schema.js","sourceRoot":"","sources":["../src/json-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAEhE
|
|
1
|
+
{"version":3,"file":"json-schema.js","sourceRoot":"","sources":["../src/json-schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,GACnB,M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,EAAE,CAAC,EAAE,0BAA0B,EAAE,yBAAyB,CAAC;IAC5F,cAAc,CAAC,UAAU,EAAE,CAAC,EAAE,kBAAkB,EAAE,iBAAiB,CAAC;IACpE,cAAc,CAAC,kBAAkB,EAAE,CAAC,EAAE,0BAA0B,EAAE,yBAAyB,CAAC;IAC5F,cAAc,CAAC,eAAe,EAAE,CAAC,EAAE,yBAAyB,EAAE,sBAAsB,CAAC;CACtF,CAAC,CAAC"}
|
package/dist/key-checksum.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The checksum primitives of Taggor's secret key formats (moved here from apps/api's
|
|
3
|
-
* domain/api-key.ts
|
|
3
|
+
* domain/api-key.ts): the base62
|
|
4
4
|
* alphabet, CRC-32 (the zlib variant) and a fixed-width base62 encoding. The API key
|
|
5
5
|
* (`tgr_<mode>_…`, apps/api) and the server key (`tgs_<mode>_…`, `server-key.ts`) both end in the
|
|
6
6
|
* CRC-32 of the text before it, in base62, so a mistyped or truncated key is refused without a
|
package/dist/key-checksum.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The checksum primitives of Taggor's secret key formats (moved here from apps/api's
|
|
3
|
-
* domain/api-key.ts
|
|
3
|
+
* domain/api-key.ts): the base62
|
|
4
4
|
* alphabet, CRC-32 (the zlib variant) and a fixed-width base62 encoding. The API key
|
|
5
5
|
* (`tgr_<mode>_…`, apps/api) and the server key (`tgs_<mode>_…`, `server-key.ts`) both end in the
|
|
6
6
|
* CRC-32 of the text before it, in base62, so a mistyped or truncated key is refused without a
|
package/dist/libraries.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Workspace library contracts
|
|
2
|
+
* Workspace library contracts: a library's immutable package name/version, its public
|
|
3
3
|
* source entry points and peer dependency ranges, plus the ranges a component requests. Ownership
|
|
4
4
|
* is deliberately not encoded here: the API/builder resolves names against the authenticated
|
|
5
|
-
* workspace
|
|
5
|
+
* workspace, never against a client-supplied workspace id.
|
|
6
6
|
*
|
|
7
7
|
* Inputs are JSON-like values and bounded names, paths, maps and semver strings. Outputs are
|
|
8
8
|
* Zod-validated library manifests and component library declarations. Errors are Zod issues, or
|
|
@@ -25,7 +25,7 @@ export declare const LIBRARY_LIMITS: Readonly<{
|
|
|
25
25
|
export declare const LIBRARY_NAME_PATTERN = "^@[a-z0-9][a-z0-9_-]{0,31}/[a-z0-9][a-z0-9._-]{0,63}$";
|
|
26
26
|
/** Scoped package name under which workspace libraries are imported. */
|
|
27
27
|
export declare const libraryNameSchema: z.ZodString;
|
|
28
|
-
/** A bounded semver range in npm's supported grammar; resolution shares
|
|
28
|
+
/** A bounded semver range in npm's supported grammar; resolution shares the parser. */
|
|
29
29
|
export declare const semverRangeSchema: z.ZodString;
|
|
30
30
|
/**
|
|
31
31
|
* Schema for one library package's declarative metadata.
|
|
@@ -54,7 +54,7 @@ export declare const componentLibrariesSchema: z.ZodRecord<z.ZodString, z.ZodStr
|
|
|
54
54
|
* Inputs: available version strings and a bounded npm semver range. Output: the original version
|
|
55
55
|
* string with greatest semver precedence, or `undefined` if the range is invalid or has no match.
|
|
56
56
|
* Errors: none. Side effects: none. Workspace ownership must be checked by the caller before this
|
|
57
|
-
* helper is used
|
|
57
|
+
* helper is used.
|
|
58
58
|
*/
|
|
59
59
|
export declare function resolveLibraryVersion(availableVersions: readonly string[], range: string): string | undefined;
|
|
60
60
|
//# sourceMappingURL=libraries.d.ts.map
|
package/dist/libraries.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libraries.d.ts","sourceRoot":"","sources":["../src/libraries.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAKzB,uFAAuF;AACvF,eAAO,MAAM,cAAc;IACzB,sEAAsE;;IAEtE,0CAA0C;;IAE1C,sDAAsD;;IAEtD,2CAA2C;;EAE3C,CAAC;AAEH,2EAA2E;AAC3E,eAAO,MAAM,oBAAoB,0DAA0D,CAAC;AAe5F,wEAAwE;AACxE,eAAO,MAAM,iBAAiB,aAMA,CAAC;AAU/B,
|
|
1
|
+
{"version":3,"file":"libraries.d.ts","sourceRoot":"","sources":["../src/libraries.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAKzB,uFAAuF;AACvF,eAAO,MAAM,cAAc;IACzB,sEAAsE;;IAEtE,0CAA0C;;IAE1C,sDAAsD;;IAEtD,2CAA2C;;EAE3C,CAAC;AAEH,2EAA2E;AAC3E,eAAO,MAAM,oBAAoB,0DAA0D,CAAC;AAe5F,wEAAwE;AACxE,eAAO,MAAM,iBAAiB,aAMA,CAAC;AAU/B,uFAAuF;AACvF,eAAO,MAAM,iBAAiB,aAO+C,CAAC;AAiC9E;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;;;;;kBAuB9B,CAAC;AAEL,8EAA8E;AAC9E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,uCAKpC,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,iBAAiB,EAAE,SAAS,MAAM,EAAE,EACpC,KAAK,EAAE,MAAM,GACZ,MAAM,GAAG,SAAS,CAEpB"}
|
package/dist/libraries.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Workspace library contracts
|
|
2
|
+
* Workspace library contracts: a library's immutable package name/version, its public
|
|
3
3
|
* source entry points and peer dependency ranges, plus the ranges a component requests. Ownership
|
|
4
4
|
* is deliberately not encoded here: the API/builder resolves names against the authenticated
|
|
5
|
-
* workspace
|
|
5
|
+
* workspace, never against a client-supplied workspace id.
|
|
6
6
|
*
|
|
7
7
|
* Inputs are JSON-like values and bounded names, paths, maps and semver strings. Outputs are
|
|
8
8
|
* Zod-validated library manifests and component library declarations. Errors are Zod issues, or
|
|
@@ -47,7 +47,7 @@ const packageNameSchema = z
|
|
|
47
47
|
error: "peer dependency name must be a lowercase npm package name",
|
|
48
48
|
})
|
|
49
49
|
.meta({ id: "LibraryPeerPackageName" });
|
|
50
|
-
/** A bounded semver range in npm's supported grammar; resolution shares
|
|
50
|
+
/** A bounded semver range in npm's supported grammar; resolution shares the parser. */
|
|
51
51
|
export const semverRangeSchema = z
|
|
52
52
|
.string()
|
|
53
53
|
.max(MAX_RANGE_LENGTH)
|
|
@@ -112,7 +112,7 @@ export const componentLibrariesSchema = boundedRecord(libraryNameSchema, semverR
|
|
|
112
112
|
* Inputs: available version strings and a bounded npm semver range. Output: the original version
|
|
113
113
|
* string with greatest semver precedence, or `undefined` if the range is invalid or has no match.
|
|
114
114
|
* Errors: none. Side effects: none. Workspace ownership must be checked by the caller before this
|
|
115
|
-
* helper is used
|
|
115
|
+
* helper is used.
|
|
116
116
|
*/
|
|
117
117
|
export function resolveLibraryVersion(availableVersions, range) {
|
|
118
118
|
return maxSatisfying(availableVersions, range);
|
package/dist/libraries.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"libraries.js","sourceRoot":"","sources":["../src/libraries.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE1E,uFAAuF;AACvF,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,CAAC;IAC1C,sEAAsE;IACtE,aAAa,EAAE,GAAG;IAClB,0CAA0C;IAC1C,UAAU,EAAE,EAAE;IACd,sDAAsD;IACtD,qBAAqB,EAAE,EAAE;IACzB,2CAA2C;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CAC7B,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,CAAC,mBAAmB,EAClC,kBAAkB,CACnB,CAAC,QAAQ,EAAE;CACb,CAAC;KACD,IAAI,CAAC;IACJ,EAAE,EAAE,iBAAiB;IACrB,KAAK,EAAE,sCAAsC;IAC7C,WAAW,EACT,sIAAsI;CACzI,CAAC,CAAC;AAKL;;;;;GAKG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,aAAa,CACnD,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,CAAC,qBAAqB,EACpC,WAAW,CACZ,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,UAAU,qBAAqB,CACnC,iBAAoC,EACpC,KAAa;IAEb,OAAO,aAAa,CAAC,iBAAiB,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC"}
|
package/dist/limit-catalog.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The limit catalog
|
|
2
|
+
* The limit catalog: the ONE place that says what each limit of a
|
|
3
3
|
* plan is. Zod-free.
|
|
4
4
|
*
|
|
5
5
|
* Every limit a plan carries is one entry here: its name, unit, window, where it is enforced,
|
|
@@ -8,23 +8,23 @@
|
|
|
8
8
|
* usage view (`GET /v1/usage`, the portal, `taggor usage`) all read from it, so a limit cannot
|
|
9
9
|
* exist in one of them and not in the others; `limit-catalog.test.ts` fails when it does.
|
|
10
10
|
*
|
|
11
|
-
* The rule
|
|
11
|
+
* The rule: one limit, one window, the advertised number. No hourly or
|
|
12
12
|
* daily sublimit sits beside it. The defaults live in this file; a per-account change is an
|
|
13
|
-
* `entitlement_adjustments` row
|
|
13
|
+
* `entitlement_adjustments` row, never a column or a second table.
|
|
14
14
|
*
|
|
15
|
-
* The numbers are
|
|
16
|
-
*
|
|
15
|
+
* The numbers are provisional until the plans are final, except where they were fixed
|
|
16
|
+
* (components per site, builds per week).
|
|
17
17
|
*
|
|
18
|
-
* Pay-as-you-go
|
|
18
|
+
* Pay-as-you-go: every spec also carries a `policy` per plan.
|
|
19
19
|
* Free is `hard` on every limit (the number is the cut). A paid plan is `metered` on the limits
|
|
20
20
|
* whose excess is billed at the end of the month (the rate table is `OVERAGE_RATES` in
|
|
21
21
|
* `plan-pricing.ts`) and `hard` on the rest (security caps, per-build technical caps, members,
|
|
22
22
|
* retention). A `metered` limit never refuses or cuts a paid plan.
|
|
23
23
|
*
|
|
24
|
-
* Server-side rendering
|
|
25
|
-
* working default
|
|
26
|
-
* distinct component versions rendered on the server per day are NOT a limit of any kind
|
|
27
|
-
*
|
|
24
|
+
* Server-side rendering has ONE plan limit, `ssrRendersPerMonth`, a
|
|
25
|
+
* working default that is not final (it lives only in `SSR_RENDERS_PER_MONTH` below). The
|
|
26
|
+
* distinct component versions rendered on the server per day are NOT a limit of any kind:
|
|
27
|
+
* they are the vendor's billing unit, measured as usage (`ssr-version-ledger.ts`) for
|
|
28
28
|
* a later pay-as-you-go price, and nothing is refused because of them.
|
|
29
29
|
*/
|
|
30
30
|
import { type PlanId } from "./plan-ids.js";
|
|
@@ -38,7 +38,7 @@ export type LimitUnit = "count" | "bytes" | "ms" | "days";
|
|
|
38
38
|
*/
|
|
39
39
|
export type LimitWindow = "month" | "week" | "total" | "each";
|
|
40
40
|
/**
|
|
41
|
-
* How the customer is told: `usage_notice` (the 80% and 100% e-mails
|
|
41
|
+
* How the customer is told: `usage_notice` (the 80% and 100% e-mails, plus the usage
|
|
42
42
|
* view), `view_only` (measured and shown in the usage view, nothing e-mails or refuses),
|
|
43
43
|
* `on_refusal` (the usage view when the limit has a counter, and the error of the refused action
|
|
44
44
|
* with the limit and the plan) or `not_enforced` (nothing enforces it yet).
|
|
@@ -51,7 +51,7 @@ export type LimitNotice = "usage_notice" | "view_only" | "on_refusal" | "not_enf
|
|
|
51
51
|
export type LimitMeter = "renders" | "ssr_renders" | "submissions" | "storage" | "sites" | "api_keys" | "builds_week" | "components_per_site" | "members" | "immediate_emails" | null;
|
|
52
52
|
/**
|
|
53
53
|
* What a billed excess is counted in. One metric is one line of the end-of-month overage ledger and
|
|
54
|
-
* one Stripe meter. `ssr_version_days` is metered usage without a plan limit (
|
|
54
|
+
* one Stripe meter. `ssr_version_days` is metered usage without a plan limit (the
|
|
55
55
|
* versions rendered per day are not a limit); the others are the `meter` of a catalog limit.
|
|
56
56
|
*/
|
|
57
57
|
export declare const OVERAGE_METRICS: readonly ["renders", "ssr_renders", "ssr_version_days", "builds", "submissions", "storage", "extra_sites"];
|
|
@@ -79,7 +79,7 @@ export interface LimitSpec {
|
|
|
79
79
|
readonly meter: LimitMeter;
|
|
80
80
|
/** The default of each plan. */
|
|
81
81
|
readonly defaults: Readonly<Record<PlanId, number>>;
|
|
82
|
-
/** What each plan does at the number
|
|
82
|
+
/** What each plan does at the number: Free always `hard`. */
|
|
83
83
|
readonly policy: Readonly<Record<PlanId, LimitPolicy>>;
|
|
84
84
|
}
|
|
85
85
|
/**
|
|
@@ -212,7 +212,7 @@ declare const SPECS: readonly [{
|
|
|
212
212
|
readonly group: "quota";
|
|
213
213
|
readonly unit: "count";
|
|
214
214
|
readonly window: "each";
|
|
215
|
-
readonly enforcedAt: "POST /v1/api-keys, one admin or member
|
|
215
|
+
readonly enforcedAt: "POST /v1/api-keys, one admin or member";
|
|
216
216
|
readonly notice: "on_refusal";
|
|
217
217
|
readonly meter: null;
|
|
218
218
|
readonly defaults: Readonly<Record<"free" | "pro" | "agency", number>>;
|
|
@@ -222,7 +222,7 @@ declare const SPECS: readonly [{
|
|
|
222
222
|
readonly group: "quota";
|
|
223
223
|
readonly unit: "count";
|
|
224
224
|
readonly window: "each";
|
|
225
|
-
readonly enforcedAt: "POST /v1/api-keys, places only an owner may fill
|
|
225
|
+
readonly enforcedAt: "POST /v1/api-keys, places only an owner may fill";
|
|
226
226
|
readonly notice: "on_refusal";
|
|
227
227
|
readonly meter: null;
|
|
228
228
|
readonly defaults: Readonly<Record<"free" | "pro" | "agency", number>>;
|
|
@@ -370,8 +370,8 @@ export declare function overageMetricOf(name: CatalogLimitName, planId: PlanId):
|
|
|
370
370
|
/**
|
|
371
371
|
* Whether a usage price (metric, plan) is informational only: the metric is a limit's overage on
|
|
372
372
|
* another plan, but this plan never meters it. Today that is the Agency's extra site, the existing
|
|
373
|
-
* add-on on its subscription
|
|
374
|
-
* schedule for it must be refused
|
|
373
|
+
* add-on on its subscription, so a usage price for it would bill nothing and a
|
|
374
|
+
* schedule for it must be refused. A metric tied to no limit (`ssr_version_days`) is
|
|
375
375
|
* never informational.
|
|
376
376
|
*
|
|
377
377
|
* Inputs: an overage metric and a plan id. Output: the verdict. Errors: none. No side effects.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"limit-catalog.d.ts","sourceRoot":"","sources":["../src/limit-catalog.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EAAY,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AAOtD,kIAAkI;AAClI,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,CAAC;AAE9D,8BAA8B;AAC9B,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,IAAI,GAAG,MAAM,CAAC;AAE1D;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAE9D;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG,WAAW,GAAG,YAAY,GAAG,cAAc,CAAC;AAEvF;;;GAGG;AACH,MAAM,MAAM,UAAU,GAClB,SAAS,GACT,aAAa,GACb,aAAa,GACb,SAAS,GACT,OAAO,GACP,UAAU,GACV,aAAa,GACb,qBAAqB,GACrB,SAAS,GACT,kBAAkB,GAClB,IAAI,CAAC;AAET;;;;GAIG;AACH,eAAO,MAAM,eAAe,4GAQlB,CAAC;AAEX,yBAAyB;AACzB,MAAM,MAAM,aAAa,GAAG,CA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