@allyhub/sdk 0.6.0 → 0.7.1
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/define.d.ts +4 -0
- package/dist/define.js +1 -1
- package/dist/node_modules/@allyhub-next/audio/dist/node/index.d.ts +1 -1
- package/dist/node_modules/@allyhub-next/audio/dist/node/index.js +1 -1
- package/dist/node_modules/@allyhub-next/audio/dist/node/master.d.ts +4 -0
- package/dist/node_modules/@allyhub-next/audio/dist/node/master.js +1 -1
- package/dist/node_modules/@allyhub-next/audio/package.json +1 -1
- package/dist/node_modules/@allyhub-next/chart/dist/chart-xml.js +2 -2
- package/dist/node_modules/@allyhub-next/chart/dist/chart.d.ts +14 -5
- package/dist/node_modules/@allyhub-next/chart/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub-next/chart/package.json +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/deck-code.d.ts +205 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/deck-code.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/script.d.ts +4 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/script.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +69 -18
- package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/slides.d.ts +847 -116
- package/dist/node_modules/@allyhub-next/formats/dist/data/slides.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/website.d.ts +20 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/website.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/index.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/formats/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/items.d.ts +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/items.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/media-type.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/formats/dist/media-type.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/schemas.d.ts +501 -38
- package/dist/node_modules/@allyhub-next/formats/dist/schemas.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/strict.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/strict.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/package.json +2 -1
- package/dist/node_modules/@allyhub-next/ooxml/LICENSE +241 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/brightness.d.ts +31 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/brightness.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/color.d.ts +33 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/color.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/enums.d.ts +13 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/enums.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/ext.d.ts +79 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/ext.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/enums.d.ts +132 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/enums.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/presets.d.ts +28 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/presets.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/spec.d.ts +4708 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/spec.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/geometry/index.d.ts +57 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/geometry/index.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/index.d.ts +10 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/index.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/mce.d.ts +12 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/mce.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/node.d.ts +111 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/node.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/ns.d.ts +45 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/ns.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/opc.d.ts +48 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/opc.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/report.d.ts +45 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/report.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/xml.d.ts +28 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/xml.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/package.json +26 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/account.d.ts +338 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/account.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/auth.d.ts +12 -13
- package/dist/node_modules/@allyhub-next/protocol/dist/auth.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/blobs.d.ts +35 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/blobs.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/cloud.d.ts +101 -32
- package/dist/node_modules/@allyhub-next/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/editor.d.ts +79 -5
- package/dist/node_modules/@allyhub-next/protocol/dist/editor.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/files.d.ts +2 -2
- package/dist/node_modules/@allyhub-next/protocol/dist/index.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/notes.d.ts +21 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/notes.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/open.d.ts +13 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/open.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/registry.d.ts +73 -59
- package/dist/node_modules/@allyhub-next/protocol/dist/registry.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/routes.d.ts +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/routes.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/shares.d.ts +115 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/shares.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/sites.d.ts +293 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/sites.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/snapshots.d.ts +396 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/snapshots.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/teams.d.ts +27 -9
- package/dist/node_modules/@allyhub-next/protocol/dist/teams.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/tools.d.ts +53 -14
- package/dist/node_modules/@allyhub-next/protocol/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/package.json +2 -1
- package/dist/node_modules/@allyhub-next/runtimes/dist/download.d.ts +19 -1
- package/dist/node_modules/@allyhub-next/runtimes/dist/download.js +1 -1
- package/dist/node_modules/@allyhub-next/runtimes/dist/index.d.ts +2 -2
- package/dist/node_modules/@allyhub-next/runtimes/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/runtimes/dist/lock.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/runtimes/dist/lock.js +1 -1
- package/dist/node_modules/@allyhub-next/runtimes/dist/packages.d.ts +19 -2
- package/dist/node_modules/@allyhub-next/runtimes/dist/packages.js +3 -3
- package/dist/node_modules/@allyhub-next/runtimes/dist/runtimes.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/runtimes/dist/runtimes.js +3 -3
- package/dist/node_modules/@allyhub-next/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub-next/runtimes/schemas/runtimes.schema.json +25 -5
- package/dist/node_modules/@allyhub-next/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.d.ts +9 -3
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.d.ts +5 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.d.ts +60 -13
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/aggregate.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/convert.d.ts +4 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/convert.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/criteria.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/database.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/date.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.d.ts +27 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/delimiters.d.ts +16 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/delimiters.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.d.ts +18 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/finance.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/info.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/kernels.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/logical.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/lookup.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/maths.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/modern.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/modern.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/text.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/graph.d.ts +38 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/graph.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/indexes.d.ts +19 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/indexes.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/remote.d.ts +49 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/remote.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/server.d.ts +82 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/server.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.d.ts +6 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/check.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/diff.d.ts +15 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/diff.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/export.d.ts +29 -8
- package/dist/node_modules/@allyhub-next/sheet/dist/export.js +3 -4
- package/dist/node_modules/@allyhub-next/sheet/dist/file.js +2 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/format.d.ts +8 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/format.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/html.d.ts +52 -4
- package/dist/node_modules/@allyhub-next/sheet/dist/html.js +43 -11
- package/dist/node_modules/@allyhub-next/sheet/dist/index.d.ts +7 -3
- package/dist/node_modules/@allyhub-next/sheet/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/inspect.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/paginate.d.ts +98 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/paginate.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/structure.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/table-style.d.ts +32 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/table-style.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/table-styles.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/table-styles.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/values.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/workbook.d.ts +10 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/workbook.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.d.ts +10 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.d.ts +14 -4
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.js +2 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.d.ts +11 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.js +36 -16
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.d.ts +3 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.d.ts +42 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.js +2 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/sax.d.ts +23 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/sax.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/zip.d.ts +40 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/zip.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/package.json +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/animation.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/api.d.ts +59 -39
- package/dist/node_modules/@allyhub-next/slides-core/dist/api.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-core/dist/capabilities.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.d.ts +27 -13
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/check.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/code.d.ts +33 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/code.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/components.d.ts +31 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/components.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/enums.d.ts +179 -16
- package/dist/node_modules/@allyhub-next/slides-core/dist/enums.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/file.d.ts +43 -21
- package/dist/node_modules/@allyhub-next/slides-core/dist/file.js +3 -3
- package/dist/node_modules/@allyhub-next/slides-core/dist/identity.d.ts +17 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/identity.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/index.d.ts +5 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/lang.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/lang.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/measure.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/merge.d.ts +58 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/merge.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/model.d.ts +2 -4
- package/dist/node_modules/@allyhub-next/slides-core/dist/office.d.ts +17 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/office.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.d.ts +21 -5
- package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/script.d.ts +18 -16
- package/dist/node_modules/@allyhub-next/slides-core/dist/script.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-core/dist/stage.d.ts +51 -53
- package/dist/node_modules/@allyhub-next/slides-core/dist/strict.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/units.d.ts +27 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/units.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/values.d.ts +7 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/values.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/package.json +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/captions.js +6 -6
- package/dist/node_modules/@allyhub-next/video-core/dist/fact.d.ts +47 -8
- package/dist/node_modules/@allyhub-next/video-core/dist/fact.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/index.d.ts +1 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/marks.d.ts +14 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/marks.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/music.d.ts +2 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/piece.d.ts +11 -2
- package/dist/node_modules/@allyhub-next/video-core/dist/problem.d.ts +4 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/problem.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/schema.d.ts +2 -2
- package/dist/node_modules/@allyhub-next/video-core/dist/schema.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/script.d.ts +2 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/script.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/source.d.ts +7 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/source.js +2 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/timeline.d.ts +10 -33
- package/dist/node_modules/@allyhub-next/video-core/package.json +1 -1
- package/dist/slides.d.ts +3 -1
- package/dist/slides.js +1 -1
- package/docs/README.md +1 -0
- package/docs/contract.md +1 -1
- package/docs/defaults.md +2 -2
- package/docs/layers.md +1 -1
- package/docs/project.md +3 -1
- package/docs/sheets.md +7 -6
- package/docs/slides.md +16 -12
- package/docs/sound.md +1 -1
- package/docs/websites.md +57 -0
- package/package.json +3 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/preset.d.ts +0 -5
- package/dist/node_modules/@allyhub-next/slides-core/dist/preset.js +0 -2
|
@@ -0,0 +1,293 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** The manifest's format; a reader that does not know it serves nothing. */
|
|
3
|
+
export declare const SITE_MANIFEST_FORMAT = 1;
|
|
4
|
+
/** What one deployment may hold, each checked by the server. */
|
|
5
|
+
export declare const SITE_LIMITS: {
|
|
6
|
+
readonly files: 20000;
|
|
7
|
+
readonly bytes: number;
|
|
8
|
+
/** Rules of a site's `_redirects`. */
|
|
9
|
+
readonly redirects: 2000;
|
|
10
|
+
/** Rules of a site's `_headers`. */
|
|
11
|
+
readonly headers: 100;
|
|
12
|
+
};
|
|
13
|
+
/** How long an address is. */
|
|
14
|
+
export declare const SLUG_LENGTH: {
|
|
15
|
+
readonly min: 3;
|
|
16
|
+
readonly max: 40;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Addresses no site may have: the platform's own, and names mail, browsers
|
|
20
|
+
* and other clients ask for by themselves.
|
|
21
|
+
*/
|
|
22
|
+
export declare const RESERVED_SLUGS: ReadonlySet<string>;
|
|
23
|
+
/** Why a slug cannot be one; undefined when it can. */
|
|
24
|
+
export declare function slugProblem(slug: string): string | undefined;
|
|
25
|
+
export declare const SiteSlugSchema: z.ZodString;
|
|
26
|
+
/** The statuses a `_redirects` rule answers with: a redirect, a rewrite, or a page shown as missing or gone. */
|
|
27
|
+
export declare const REDIRECT_STATUSES: readonly [200, 301, 302, 303, 307, 308, 404, 410];
|
|
28
|
+
export declare const RedirectRuleSchema: z.ZodObject<{
|
|
29
|
+
from: z.ZodString;
|
|
30
|
+
to: z.ZodString;
|
|
31
|
+
status: z.ZodUnion<z.ZodLiteral<200 | 301 | 302 | 303 | 307 | 308 | 404 | 410>[]>;
|
|
32
|
+
force: z.ZodBoolean;
|
|
33
|
+
}, z.core.$strict>;
|
|
34
|
+
export type RedirectRule = z.infer<typeof RedirectRuleSchema>;
|
|
35
|
+
/** Headers a site cannot set: a site's bytes and transport are the platform's, and it sets no cookies on a shared domain. */
|
|
36
|
+
export declare const PLATFORM_HEADERS: ReadonlySet<string>;
|
|
37
|
+
export declare const HeaderRuleSchema: z.ZodObject<{
|
|
38
|
+
for: z.ZodString;
|
|
39
|
+
set: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
40
|
+
}, z.core.$strict>;
|
|
41
|
+
export type HeaderRule = z.infer<typeof HeaderRuleSchema>;
|
|
42
|
+
/**
|
|
43
|
+
* What a site is: its files by path from its root, each a blob and the
|
|
44
|
+
* type it is served as, and its `_redirects` and `_headers`, read. Nothing
|
|
45
|
+
* in it names a project or a person.
|
|
46
|
+
*/
|
|
47
|
+
export declare const SiteManifestSchema: z.ZodObject<{
|
|
48
|
+
format: z.ZodLiteral<1>;
|
|
49
|
+
files: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
50
|
+
sha256: z.ZodString;
|
|
51
|
+
size: z.ZodInt;
|
|
52
|
+
type: z.ZodString;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
redirects: z.ZodArray<z.ZodObject<{
|
|
55
|
+
from: z.ZodString;
|
|
56
|
+
to: z.ZodString;
|
|
57
|
+
status: z.ZodUnion<z.ZodLiteral<200 | 301 | 302 | 303 | 307 | 308 | 404 | 410>[]>;
|
|
58
|
+
force: z.ZodBoolean;
|
|
59
|
+
}, z.core.$strict>>;
|
|
60
|
+
headers: z.ZodArray<z.ZodObject<{
|
|
61
|
+
for: z.ZodString;
|
|
62
|
+
set: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
63
|
+
}, z.core.$strict>>;
|
|
64
|
+
}, z.core.$strict>;
|
|
65
|
+
export type SiteManifest = z.infer<typeof SiteManifestSchema>;
|
|
66
|
+
/** How a deployment was made: its files uploaded, or from a project's git. */
|
|
67
|
+
export declare const SITE_SOURCE_KINDS: readonly ["upload", "git"];
|
|
68
|
+
/** Where a deployment came from. `commit` once a project is in git; `digest`, the website's folder when it was built. */
|
|
69
|
+
export declare const SiteSourceSchema: z.ZodObject<{
|
|
70
|
+
kind: z.ZodEnum<{
|
|
71
|
+
upload: "upload";
|
|
72
|
+
git: "git";
|
|
73
|
+
}>;
|
|
74
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
75
|
+
digest: z.ZodOptional<z.ZodString>;
|
|
76
|
+
}, z.core.$strict>;
|
|
77
|
+
export type SiteSource = z.infer<typeof SiteSourceSchema>;
|
|
78
|
+
export declare const DeploymentSchema: z.ZodObject<{
|
|
79
|
+
id: z.ZodString;
|
|
80
|
+
siteId: z.ZodString;
|
|
81
|
+
source: z.ZodObject<{
|
|
82
|
+
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
83
|
+
upload: "upload";
|
|
84
|
+
git: "git";
|
|
85
|
+
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
86
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
87
|
+
digest: z.ZodOptional<z.ZodString>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
note: z.ZodNullable<z.ZodString>;
|
|
90
|
+
files: z.ZodNumber;
|
|
91
|
+
bytes: z.ZodNumber;
|
|
92
|
+
createdBy: z.ZodString;
|
|
93
|
+
createdAt: z.ZodISODateTime;
|
|
94
|
+
live: z.ZodBoolean;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
export type Deployment = z.infer<typeof DeploymentSchema>;
|
|
97
|
+
export declare const SiteSchema: z.ZodObject<{
|
|
98
|
+
id: z.ZodString;
|
|
99
|
+
slug: z.ZodString;
|
|
100
|
+
name: z.ZodString;
|
|
101
|
+
url: z.ZodURL;
|
|
102
|
+
liveDeployment: z.ZodNullable<z.ZodString>;
|
|
103
|
+
approved: z.ZodBoolean;
|
|
104
|
+
autoPublish: z.ZodBoolean;
|
|
105
|
+
indexing: z.ZodBoolean;
|
|
106
|
+
createdAt: z.ZodISODateTime;
|
|
107
|
+
}, z.core.$strip>;
|
|
108
|
+
export type Site = z.infer<typeof SiteSchema>;
|
|
109
|
+
/** `GET`: the organization's sites. `POST { slug, name }`: a site made. */
|
|
110
|
+
export declare const SITES_PATH = "/api/sites";
|
|
111
|
+
export declare const SiteCreateSchema: z.ZodObject<{
|
|
112
|
+
slug: z.ZodString;
|
|
113
|
+
name: z.ZodString;
|
|
114
|
+
}, z.core.$strict>;
|
|
115
|
+
export type SiteCreate = z.infer<typeof SiteCreateSchema>;
|
|
116
|
+
export declare const SitesResponseSchema: z.ZodObject<{
|
|
117
|
+
sites: z.ZodArray<z.ZodObject<{
|
|
118
|
+
id: z.ZodString;
|
|
119
|
+
slug: z.ZodString;
|
|
120
|
+
name: z.ZodString;
|
|
121
|
+
url: z.ZodURL;
|
|
122
|
+
liveDeployment: z.ZodNullable<z.ZodString>;
|
|
123
|
+
approved: z.ZodBoolean;
|
|
124
|
+
autoPublish: z.ZodBoolean;
|
|
125
|
+
indexing: z.ZodBoolean;
|
|
126
|
+
createdAt: z.ZodISODateTime;
|
|
127
|
+
}, z.core.$strip>>;
|
|
128
|
+
domain: z.ZodString;
|
|
129
|
+
hosting: z.ZodBoolean;
|
|
130
|
+
}, z.core.$strip>;
|
|
131
|
+
/**
|
|
132
|
+
* `GET`: a site and its versions, newest first. `DELETE ?person=1`: the site
|
|
133
|
+
* offline for good; its address is never given to anyone else. A site its
|
|
134
|
+
* organization removed answers 410, so a folder that still names it can make
|
|
135
|
+
* another; one that was never the organization's answers 404.
|
|
136
|
+
*/
|
|
137
|
+
export declare const sitePath: (id: string) => string;
|
|
138
|
+
export declare const SiteDetailSchema: z.ZodObject<{
|
|
139
|
+
site: z.ZodObject<{
|
|
140
|
+
id: z.ZodString;
|
|
141
|
+
slug: z.ZodString;
|
|
142
|
+
name: z.ZodString;
|
|
143
|
+
url: z.ZodURL;
|
|
144
|
+
liveDeployment: z.ZodNullable<z.ZodString>;
|
|
145
|
+
approved: z.ZodBoolean;
|
|
146
|
+
autoPublish: z.ZodBoolean;
|
|
147
|
+
indexing: z.ZodBoolean;
|
|
148
|
+
createdAt: z.ZodISODateTime;
|
|
149
|
+
}, z.core.$strip>;
|
|
150
|
+
deployments: z.ZodArray<z.ZodObject<{
|
|
151
|
+
id: z.ZodString;
|
|
152
|
+
siteId: z.ZodString;
|
|
153
|
+
source: z.ZodObject<{
|
|
154
|
+
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
155
|
+
upload: "upload";
|
|
156
|
+
git: "git";
|
|
157
|
+
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
158
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
159
|
+
digest: z.ZodOptional<z.ZodString>;
|
|
160
|
+
}, z.core.$strip>;
|
|
161
|
+
note: z.ZodNullable<z.ZodString>;
|
|
162
|
+
files: z.ZodNumber;
|
|
163
|
+
bytes: z.ZodNumber;
|
|
164
|
+
createdBy: z.ZodString;
|
|
165
|
+
createdAt: z.ZodISODateTime;
|
|
166
|
+
live: z.ZodBoolean;
|
|
167
|
+
}, z.core.$strip>>;
|
|
168
|
+
}, z.core.$strip>;
|
|
169
|
+
export type SiteDetail = z.infer<typeof SiteDetailSchema>;
|
|
170
|
+
/** `POST { blobs }` (`BlobsRequestSchema`): which of these the site's organization lacks, each with where to put it. */
|
|
171
|
+
export declare const siteBlobsPath: (site: string) => string;
|
|
172
|
+
/**
|
|
173
|
+
* `POST { manifest, source, note }`: a version made from its manifest, a
|
|
174
|
+
* blob put already. Refused as a conflict, with the blobs storage does not
|
|
175
|
+
* hold, and nothing is recorded: a version is whole or it is not there.
|
|
176
|
+
*/
|
|
177
|
+
export declare const siteDeploymentsPath: (site: string) => string;
|
|
178
|
+
export declare const DeploymentCreateSchema: z.ZodObject<{
|
|
179
|
+
manifest: z.ZodString;
|
|
180
|
+
source: z.ZodObject<{
|
|
181
|
+
kind: z.ZodEnum<{
|
|
182
|
+
upload: "upload";
|
|
183
|
+
git: "git";
|
|
184
|
+
}>;
|
|
185
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
186
|
+
digest: z.ZodOptional<z.ZodString>;
|
|
187
|
+
}, z.core.$strict>;
|
|
188
|
+
note: z.ZodOptional<z.ZodString>;
|
|
189
|
+
}, z.core.$strict>;
|
|
190
|
+
export type DeploymentCreate = z.infer<typeof DeploymentCreateSchema>;
|
|
191
|
+
export declare const DeploymentMadeSchema: z.ZodObject<{
|
|
192
|
+
site: z.ZodObject<{
|
|
193
|
+
id: z.ZodString;
|
|
194
|
+
slug: z.ZodString;
|
|
195
|
+
name: z.ZodString;
|
|
196
|
+
url: z.ZodURL;
|
|
197
|
+
liveDeployment: z.ZodNullable<z.ZodString>;
|
|
198
|
+
approved: z.ZodBoolean;
|
|
199
|
+
autoPublish: z.ZodBoolean;
|
|
200
|
+
indexing: z.ZodBoolean;
|
|
201
|
+
createdAt: z.ZodISODateTime;
|
|
202
|
+
}, z.core.$strip>;
|
|
203
|
+
deployment: z.ZodObject<{
|
|
204
|
+
id: z.ZodString;
|
|
205
|
+
siteId: z.ZodString;
|
|
206
|
+
source: z.ZodObject<{
|
|
207
|
+
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
208
|
+
upload: "upload";
|
|
209
|
+
git: "git";
|
|
210
|
+
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
211
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
212
|
+
digest: z.ZodOptional<z.ZodString>;
|
|
213
|
+
}, z.core.$strip>;
|
|
214
|
+
note: z.ZodNullable<z.ZodString>;
|
|
215
|
+
files: z.ZodNumber;
|
|
216
|
+
bytes: z.ZodNumber;
|
|
217
|
+
createdBy: z.ZodString;
|
|
218
|
+
createdAt: z.ZodISODateTime;
|
|
219
|
+
live: z.ZodBoolean;
|
|
220
|
+
}, z.core.$strip>;
|
|
221
|
+
}, z.core.$strip>;
|
|
222
|
+
export type DeploymentMade = z.infer<typeof DeploymentMadeSchema>;
|
|
223
|
+
/**
|
|
224
|
+
* `PUT { deployment }`: the site serves this version, a publish and a
|
|
225
|
+
* rollback alike. `DELETE ?person=1`: it serves nothing, and keeps its
|
|
226
|
+
* address.
|
|
227
|
+
*
|
|
228
|
+
* Going public is a person's to say, and who asks is one of three:
|
|
229
|
+
*
|
|
230
|
+
* - the browser: a session on the account site's own origin, on the page
|
|
231
|
+
* `confirm` names. The first time a site goes public takes this. An agent
|
|
232
|
+
* has no session of its own, so this stops it from taking a site public by
|
|
233
|
+
* the CLI or the API. It is not proof against everything on the computer:
|
|
234
|
+
* the sign-in there can ask for a link that signs a browser in, which is
|
|
235
|
+
* how Studio opens that page, and something that drives a browser could
|
|
236
|
+
* press the button.
|
|
237
|
+
* - the person: `?person=1`, sent by Studio's window and never by the CLI.
|
|
238
|
+
* It moves a site already approved, and is all that changes a site's
|
|
239
|
+
* settings. An agent shares a computer's sign-in, so this keeps an agent
|
|
240
|
+
* that uses the CLI out, not one that forges a request.
|
|
241
|
+
* - the agent: anything else. It moves a site whose person let it
|
|
242
|
+
* (`autoPublish`), and does nothing else.
|
|
243
|
+
*/
|
|
244
|
+
export declare const siteLivePath: (site: string) => string;
|
|
245
|
+
export declare const SiteLiveSchema: z.ZodObject<{
|
|
246
|
+
deployment: z.ZodString;
|
|
247
|
+
}, z.core.$strict>;
|
|
248
|
+
export type SiteLive = z.infer<typeof SiteLiveSchema>;
|
|
249
|
+
export declare const SiteLiveAnswerSchema: z.ZodObject<{
|
|
250
|
+
site: z.ZodObject<{
|
|
251
|
+
id: z.ZodString;
|
|
252
|
+
slug: z.ZodString;
|
|
253
|
+
name: z.ZodString;
|
|
254
|
+
url: z.ZodURL;
|
|
255
|
+
liveDeployment: z.ZodNullable<z.ZodString>;
|
|
256
|
+
approved: z.ZodBoolean;
|
|
257
|
+
autoPublish: z.ZodBoolean;
|
|
258
|
+
indexing: z.ZodBoolean;
|
|
259
|
+
createdAt: z.ZodISODateTime;
|
|
260
|
+
}, z.core.$strip>;
|
|
261
|
+
live: z.ZodBoolean;
|
|
262
|
+
confirm: z.ZodOptional<z.ZodURL>;
|
|
263
|
+
}, z.core.$strip>;
|
|
264
|
+
export type SiteLiveAnswer = z.infer<typeof SiteLiveAnswerSchema>;
|
|
265
|
+
/** The query that says a person asked, from Studio's window. */
|
|
266
|
+
export declare const SITE_PERSON_QUERY = "person=1";
|
|
267
|
+
/** The account site's page where a person says yes to a site going public. */
|
|
268
|
+
export declare const SITE_CONFIRM_PAGE = "/publish";
|
|
269
|
+
/** That page, for a version of a site. */
|
|
270
|
+
export declare const siteConfirmPath: (o: {
|
|
271
|
+
site: string;
|
|
272
|
+
version: string;
|
|
273
|
+
organization: string;
|
|
274
|
+
}) => string;
|
|
275
|
+
/** `PUT ?person=1`: what the person changes of a site. */
|
|
276
|
+
export declare const siteSettingsPath: (site: string) => string;
|
|
277
|
+
export declare const SiteSettingsSchema: z.ZodObject<{
|
|
278
|
+
autoPublish: z.ZodOptional<z.ZodBoolean>;
|
|
279
|
+
indexing: z.ZodOptional<z.ZodBoolean>;
|
|
280
|
+
}, z.core.$strict>;
|
|
281
|
+
export type SiteSettings = z.infer<typeof SiteSettingsSchema>;
|
|
282
|
+
/** What the edge reads for a hostname. */
|
|
283
|
+
export declare const SitePointerSchema: z.ZodObject<{
|
|
284
|
+
site: z.ZodString;
|
|
285
|
+
organization: z.ZodString;
|
|
286
|
+
deployment: z.ZodString;
|
|
287
|
+
manifest: z.ZodString;
|
|
288
|
+
indexing: z.ZodBoolean;
|
|
289
|
+
}, z.core.$strip>;
|
|
290
|
+
export type SitePointer = z.infer<typeof SitePointerSchema>;
|
|
291
|
+
/** Where the edge's store keeps a hostname's pointer. */
|
|
292
|
+
export declare const sitePointerKey: (hostname: string) => string;
|
|
293
|
+
//# sourceMappingURL=sites.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{z as e}from"zod";import{Sha256Schema as o,TreeFileSchema as i,TreePathSchema as a}from"./blobs.js";import{openEnum as c}from"./open.js";export const SITE_MANIFEST_FORMAT=1,SITE_LIMITS={files:2e4,bytes:5*1024*1024*1024,redirects:2e3,headers:100},SLUG_LENGTH={min:3,max:40},RESERVED_SLUGS=new Set(["abuse","account","accounts","admin","administrator","allyhub","api","app","assets","auth","autoconfig","autodiscover","billing","blog","cdn","dashboard","dev","dns","docs","download","downloads","ftp","help","hostmaster","imap","login","mail","mta-sts","ns1","ns2","ops","pop","postmaster","preview","root","security","signin","smtp","staging","static","status","studio","support","test","webmaster","wpad","www"]);export function slugProblem(t){if(t.length<SLUG_LENGTH.min||t.length>SLUG_LENGTH.max)return`An address is ${String(SLUG_LENGTH.min)} to ${String(SLUG_LENGTH.max)} characters.`;if(!/^[a-z0-9-]+$/u.test(t))return"An address is lowercase letters, digits and hyphens.";if(t.startsWith("-")||t.endsWith("-"))return"An address neither starts nor ends with a hyphen.";if(t.includes("--"))return"An address does not have two hyphens in a row.";if(RESERVED_SLUGS.has(t))return"That address is reserved."}export const SiteSlugSchema=e.string().superRefine((t,r)=>{const n=slugProblem(t);n!==void 0&&r.addIssue({code:"custom",message:n})}),REDIRECT_STATUSES=[200,301,302,303,307,308,404,410];const s=e.string().min(1).max(1024).regex(/^\/[^\s]*$/u,"A rule's path starts with /.");export const RedirectRuleSchema=e.strictObject({from:s,to:e.string().min(1).max(2048).regex(/^(\/[^\s]*|https?:\/\/[^\s]+)$/u,"A rule goes to a path or an http(s) address."),status:e.union(REDIRECT_STATUSES.map(t=>e.literal(t))),force:e.boolean()}),PLATFORM_HEADERS=new Set(["accept-ranges","connection","content-encoding","content-length","content-range","date","keep-alive","set-cookie","strict-transport-security","trailer","transfer-encoding","upgrade","x-content-type-options"]);const p=e.string().regex(/^[A-Za-z0-9-]+$/u).max(128).refine(t=>!PLATFORM_HEADERS.has(t.toLowerCase()),"That header is the platform's.");export const HeaderRuleSchema=e.strictObject({for:s,set:e.record(p,e.string().max(2048))}),SiteManifestSchema=e.strictObject({format:e.literal(SITE_MANIFEST_FORMAT),files:e.record(a,i),redirects:e.array(RedirectRuleSchema).max(SITE_LIMITS.redirects),headers:e.array(HeaderRuleSchema).max(SITE_LIMITS.headers)}),SITE_SOURCE_KINDS=["upload","git"],SiteSourceSchema=e.strictObject({kind:e.enum(SITE_SOURCE_KINDS),commit:e.string().min(1).max(64).optional(),digest:o.optional()}),DeploymentSchema=e.object({id:e.string(),siteId:e.string(),source:e.object({...SiteSourceSchema.shape,kind:c(SITE_SOURCE_KINDS)}),note:e.string().nullable(),files:e.number(),bytes:e.number(),createdBy:e.string(),createdAt:e.iso.datetime(),live:e.boolean()}),SiteSchema=e.object({id:e.string(),slug:e.string(),name:e.string(),url:e.url(),liveDeployment:e.string().nullable(),approved:e.boolean(),autoPublish:e.boolean(),indexing:e.boolean(),createdAt:e.iso.datetime()}),SITES_PATH="/api/sites",SiteCreateSchema=e.strictObject({slug:SiteSlugSchema,name:e.string().min(1).max(255)}),SitesResponseSchema=e.object({sites:e.array(SiteSchema),domain:e.string(),hosting:e.boolean()}),sitePath=t=>`${SITES_PATH}/${encodeURIComponent(t)}`,SiteDetailSchema=e.object({site:SiteSchema,deployments:e.array(DeploymentSchema)}),siteBlobsPath=t=>`${sitePath(t)}/blobs`,siteDeploymentsPath=t=>`${sitePath(t)}/deployments`,DeploymentCreateSchema=e.strictObject({manifest:o,source:SiteSourceSchema,note:e.string().max(500).optional()}),DeploymentMadeSchema=e.object({site:SiteSchema,deployment:DeploymentSchema}),siteLivePath=t=>`${sitePath(t)}/live`,SiteLiveSchema=e.strictObject({deployment:e.string().min(1)}),SiteLiveAnswerSchema=e.object({site:SiteSchema,live:e.boolean(),confirm:e.url().optional()}),SITE_PERSON_QUERY="person=1",SITE_CONFIRM_PAGE="/publish",siteConfirmPath=t=>`${SITE_CONFIRM_PAGE}?site=${encodeURIComponent(t.site)}&version=${encodeURIComponent(t.version)}&org=${encodeURIComponent(t.organization)}`,siteSettingsPath=t=>`${sitePath(t)}/settings`,SiteSettingsSchema=e.strictObject({autoPublish:e.boolean().optional(),indexing:e.boolean().optional()}),SitePointerSchema=e.object({site:e.string(),organization:e.string(),deployment:e.string(),manifest:o,indexing:e.boolean()}),sitePointerKey=t=>`host:${t}`;
|