@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
|
@@ -5,7 +5,7 @@ export declare const RegistryFileSchema: z.ZodObject<{
|
|
|
5
5
|
target: z.ZodString;
|
|
6
6
|
sha256: z.ZodString;
|
|
7
7
|
content: z.ZodOptional<z.ZodString>;
|
|
8
|
-
}, z.core.$
|
|
8
|
+
}, z.core.$strip>;
|
|
9
9
|
/**
|
|
10
10
|
* A CC0 asset an item uses, fetched from its library when the item is
|
|
11
11
|
* added (never re-hosted): a Poly Haven model, HDRI or texture, at a
|
|
@@ -16,7 +16,7 @@ export declare const RegistryAssetSchema: z.ZodObject<{
|
|
|
16
16
|
id: z.ZodString;
|
|
17
17
|
resolution: z.ZodOptional<z.ZodString>;
|
|
18
18
|
maps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
19
|
-
}, z.core.$
|
|
19
|
+
}, z.core.$strip>;
|
|
20
20
|
export type RegistryAsset = z.infer<typeof RegistryAssetSchema>;
|
|
21
21
|
/**
|
|
22
22
|
* A scenery's baked light, made once on the CPU and laid by every
|
|
@@ -30,14 +30,14 @@ export declare const RegistryBakeSchema: z.ZodObject<{
|
|
|
30
30
|
sha256: z.ZodString;
|
|
31
31
|
size: z.ZodNumber;
|
|
32
32
|
url: z.ZodURL;
|
|
33
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$strip>;
|
|
34
34
|
export type RegistryBake = z.infer<typeof RegistryBakeSchema>;
|
|
35
35
|
/** A skill's card in one language: its name, its line, what the composer starts with. */
|
|
36
36
|
export declare const SkillCardWordsSchema: z.ZodObject<{
|
|
37
37
|
title: z.ZodString;
|
|
38
38
|
description: z.ZodString;
|
|
39
39
|
prompt: z.ZodOptional<z.ZodString>;
|
|
40
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$strip>;
|
|
41
41
|
export type SkillCardWords = z.infer<typeof SkillCardWordsSchema>;
|
|
42
42
|
/**
|
|
43
43
|
* What Studio shows of a skill it offers (a skill's `agents/` card files):
|
|
@@ -45,24 +45,20 @@ export type SkillCardWords = z.infer<typeof SkillCardWordsSchema>;
|
|
|
45
45
|
* they are written in, by locale; a field a language leaves out is English.
|
|
46
46
|
*/
|
|
47
47
|
export declare const SkillCardSchema: z.ZodObject<{
|
|
48
|
-
category: z.
|
|
49
|
-
video: "video";
|
|
50
|
-
writing: "writing";
|
|
51
|
-
research: "research";
|
|
52
|
-
}>;
|
|
48
|
+
category: z.ZodString;
|
|
53
49
|
order: z.ZodNumber;
|
|
54
50
|
cover: z.ZodOptional<z.ZodString>;
|
|
55
51
|
words: z.ZodObject<{
|
|
56
52
|
title: z.ZodString;
|
|
57
53
|
description: z.ZodString;
|
|
58
54
|
prompt: z.ZodOptional<z.ZodString>;
|
|
59
|
-
}, z.core.$
|
|
55
|
+
}, z.core.$strip>;
|
|
60
56
|
languages: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
61
57
|
title: z.ZodOptional<z.ZodString>;
|
|
62
58
|
description: z.ZodOptional<z.ZodString>;
|
|
63
59
|
prompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
64
|
-
}, z.core.$
|
|
65
|
-
}, z.core.$
|
|
60
|
+
}, z.core.$strip>>>;
|
|
61
|
+
}, z.core.$strip>;
|
|
66
62
|
export type SkillCard = z.infer<typeof SkillCardSchema>;
|
|
67
63
|
export declare const RegistryItemSchema: z.ZodObject<{
|
|
68
64
|
$schema: z.ZodOptional<z.ZodString>;
|
|
@@ -86,13 +82,13 @@ export declare const RegistryItemSchema: z.ZodObject<{
|
|
|
86
82
|
target: z.ZodString;
|
|
87
83
|
sha256: z.ZodString;
|
|
88
84
|
content: z.ZodOptional<z.ZodString>;
|
|
89
|
-
}, z.core.$
|
|
85
|
+
}, z.core.$strip>>;
|
|
90
86
|
assets: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
91
87
|
source: z.ZodLiteral<"polyhaven">;
|
|
92
88
|
id: z.ZodString;
|
|
93
89
|
resolution: z.ZodOptional<z.ZodString>;
|
|
94
90
|
maps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
95
|
-
}, z.core.$
|
|
91
|
+
}, z.core.$strip>>>;
|
|
96
92
|
bakes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
97
93
|
scenery: z.ZodString;
|
|
98
94
|
digest: z.ZodString;
|
|
@@ -100,72 +96,90 @@ export declare const RegistryItemSchema: z.ZodObject<{
|
|
|
100
96
|
sha256: z.ZodString;
|
|
101
97
|
size: z.ZodNumber;
|
|
102
98
|
url: z.ZodURL;
|
|
103
|
-
}, z.core.$
|
|
99
|
+
}, z.core.$strip>>>;
|
|
104
100
|
categories: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
105
101
|
preview: z.ZodOptional<z.ZodString>;
|
|
106
102
|
version: z.ZodOptional<z.ZodString>;
|
|
107
103
|
card: z.ZodOptional<z.ZodObject<{
|
|
108
|
-
category: z.
|
|
109
|
-
video: "video";
|
|
110
|
-
writing: "writing";
|
|
111
|
-
research: "research";
|
|
112
|
-
}>;
|
|
104
|
+
category: z.ZodString;
|
|
113
105
|
order: z.ZodNumber;
|
|
114
106
|
cover: z.ZodOptional<z.ZodString>;
|
|
115
107
|
words: z.ZodObject<{
|
|
116
108
|
title: z.ZodString;
|
|
117
109
|
description: z.ZodString;
|
|
118
110
|
prompt: z.ZodOptional<z.ZodString>;
|
|
119
|
-
}, z.core.$
|
|
111
|
+
}, z.core.$strip>;
|
|
120
112
|
languages: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
121
113
|
title: z.ZodOptional<z.ZodString>;
|
|
122
114
|
description: z.ZodOptional<z.ZodString>;
|
|
123
115
|
prompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
124
|
-
}, z.core.$
|
|
125
|
-
}, z.core.$
|
|
126
|
-
}, z.core.$
|
|
116
|
+
}, z.core.$strip>>>;
|
|
117
|
+
}, z.core.$strip>>;
|
|
118
|
+
}, z.core.$strip>;
|
|
127
119
|
export type RegistryItem = z.infer<typeof RegistryItemSchema>;
|
|
128
120
|
/** An item as its file is written: what the schema fills in (`assets`, `bakes`) may be left out. */
|
|
129
121
|
export type RegistryItemInput = z.input<typeof RegistryItemSchema>;
|
|
122
|
+
/** An item as the index lists it. */
|
|
123
|
+
export declare const RegistryIndexEntrySchema: z.ZodObject<{
|
|
124
|
+
type: z.ZodEnum<{
|
|
125
|
+
"allyhub:component": "allyhub:component";
|
|
126
|
+
"allyhub:template": "allyhub:template";
|
|
127
|
+
"allyhub:scenery": "allyhub:scenery";
|
|
128
|
+
"allyhub:model": "allyhub:model";
|
|
129
|
+
"allyhub:skill": "allyhub:skill";
|
|
130
|
+
"allyhub:lib": "allyhub:lib";
|
|
131
|
+
}>;
|
|
132
|
+
name: z.ZodString;
|
|
133
|
+
version: z.ZodOptional<z.ZodString>;
|
|
134
|
+
card: z.ZodOptional<z.ZodObject<{
|
|
135
|
+
category: z.ZodString;
|
|
136
|
+
order: z.ZodNumber;
|
|
137
|
+
cover: z.ZodOptional<z.ZodString>;
|
|
138
|
+
words: z.ZodObject<{
|
|
139
|
+
title: z.ZodString;
|
|
140
|
+
description: z.ZodString;
|
|
141
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
languages: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
144
|
+
title: z.ZodOptional<z.ZodString>;
|
|
145
|
+
description: z.ZodOptional<z.ZodString>;
|
|
146
|
+
prompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
147
|
+
}, z.core.$strip>>>;
|
|
148
|
+
}, z.core.$strip>>;
|
|
149
|
+
title: z.ZodString;
|
|
150
|
+
description: z.ZodString;
|
|
151
|
+
categories: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
152
|
+
preview: z.ZodOptional<z.ZodString>;
|
|
153
|
+
}, z.core.$strip>;
|
|
154
|
+
export type RegistryIndexEntry = z.infer<typeof RegistryIndexEntrySchema>;
|
|
130
155
|
export declare const RegistryIndexSchema: z.ZodObject<{
|
|
131
156
|
$schema: z.ZodOptional<z.ZodString>;
|
|
132
157
|
name: z.ZodString;
|
|
133
158
|
homepage: z.ZodOptional<z.ZodURL>;
|
|
134
|
-
items: z.ZodArray<z.
|
|
135
|
-
type:
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
research: "research";
|
|
159
|
+
items: z.ZodPipe<z.ZodArray<z.ZodUnknown>, z.ZodTransform<{
|
|
160
|
+
type: "allyhub:component" | "allyhub:template" | "allyhub:scenery" | "allyhub:model" | "allyhub:skill" | "allyhub:lib";
|
|
161
|
+
name: string;
|
|
162
|
+
title: string;
|
|
163
|
+
description: string;
|
|
164
|
+
categories: string[];
|
|
165
|
+
version?: string | undefined;
|
|
166
|
+
card?: {
|
|
167
|
+
category: string;
|
|
168
|
+
order: number;
|
|
169
|
+
words: {
|
|
170
|
+
title: string;
|
|
171
|
+
description: string;
|
|
172
|
+
prompt?: string | undefined;
|
|
173
|
+
};
|
|
174
|
+
languages: Record<string, {
|
|
175
|
+
title?: string | undefined;
|
|
176
|
+
description?: string | undefined;
|
|
177
|
+
prompt?: string | undefined;
|
|
154
178
|
}>;
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
prompt: z.ZodOptional<z.ZodString>;
|
|
161
|
-
}, z.core.$strict>;
|
|
162
|
-
languages: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
163
|
-
title: z.ZodOptional<z.ZodString>;
|
|
164
|
-
description: z.ZodOptional<z.ZodString>;
|
|
165
|
-
prompt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
166
|
-
}, z.core.$strict>>>;
|
|
167
|
-
}, z.core.$strict>>;
|
|
168
|
-
}, z.core.$strict>>;
|
|
169
|
-
}, z.core.$strict>;
|
|
179
|
+
cover?: string | undefined;
|
|
180
|
+
} | undefined;
|
|
181
|
+
preview?: string | undefined;
|
|
182
|
+
}[], unknown[]>>;
|
|
183
|
+
}, z.core.$strip>;
|
|
170
184
|
export type RegistryIndex = z.infer<typeof RegistryIndexSchema>;
|
|
171
185
|
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as
|
|
2
|
+
import{z as e}from"zod";import{readable as r}from"./open.js";export const REGISTRY_TYPES=["allyhub:component","allyhub:template","allyhub:scenery","allyhub:model","allyhub:skill","allyhub:lib"];const t=e.string().regex(/^[a-z0-9][a-z0-9-]*$/u);export const RegistryFileSchema=e.object({path:e.string().min(1),target:e.string().min(1),sha256:e.string().regex(/^[0-9a-f]{64}$/u),content:e.string().optional()}),RegistryAssetSchema=e.object({source:e.literal("polyhaven"),id:e.string().min(1),resolution:e.string().min(1).optional(),maps:e.array(e.string().min(1)).optional()}),RegistryBakeSchema=e.object({scenery:e.string().min(1),digest:e.string().regex(/^[0-9a-f]+$/u),renderer:e.string().min(1),sha256:e.string().regex(/^[0-9a-f]{64}$/u),size:e.number().int().positive(),url:e.url()}),SkillCardWordsSchema=e.object({title:e.string().min(1),description:e.string().min(1),prompt:e.string().min(1).optional()}),SkillCardSchema=e.object({category:e.string().min(1),order:e.number().int().positive(),cover:e.string().optional(),words:SkillCardWordsSchema,languages:e.record(e.string(),SkillCardWordsSchema.partial()).default({})}),RegistryItemSchema=e.object({$schema:e.string().optional(),name:t,type:e.enum(REGISTRY_TYPES),title:e.string().min(1),description:e.string().min(1),author:e.string().optional(),license:e.string().min(1),dependencies:e.array(e.string()).default([]),registryDependencies:e.array(t).default([]),files:e.array(RegistryFileSchema).min(1),assets:e.array(RegistryAssetSchema).default([]),bakes:e.array(RegistryBakeSchema).default([]),categories:e.array(e.string()).default([]),preview:e.string().optional(),version:e.string().optional(),card:SkillCardSchema.optional()}),RegistryIndexEntrySchema=RegistryItemSchema.pick({name:!0,type:!0,title:!0,description:!0,categories:!0,preview:!0,version:!0,card:!0}),RegistryIndexSchema=e.object({$schema:e.string().optional(),name:e.string().min(1),homepage:e.url().optional(),items:r(RegistryIndexEntrySchema)});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{
|
|
2
|
+
import{ACCOUNT_CALLS as P}from"./account.js";import{ACCOUNT_PATH as S,BROWSER_LINK_PATH as i,METADATA_PATH as r}from"./auth.js";import{CATALOG_PATH as A,FILES_PATH as e,LLM_MESSAGES_PATH as O,LLM_MODELS_PATH as _}from"./cloud.js";import{SHARES_PATH as o}from"./shares.js";import{PROJECTS_PATH as T,SNAPSHOTS_PATH as d,SNAPSHOT_BLOBS_PATH as H}from"./snapshots.js";import{SITES_PATH as t}from"./sites.js";import{ORGANIZATIONS_PATH as n,STUDIO_OPEN_PATH as s,STUDIO_PATH as m,STUDIO_TICKET_PATH as L,STUDIO_WAKE_PATH as G}from"./teams.js";export const CLIENT_ROUTES=[{method:"GET",path:r},{method:"GET",path:S},{method:"POST",path:i},{method:"GET",path:_},{method:"POST",path:O},{method:"GET",path:A},{method:"POST",path:"/api/tools/:name/calls"},{method:"GET",path:"/api/calls/:id"},{method:"POST",path:e},{method:"POST",path:`${e}/:id/done`},{method:"GET",path:`${e}/:id/content`},{method:"GET",path:n},{method:"GET",path:m},{method:"DELETE",path:m},{method:"POST",path:s},{method:"POST",path:L},{method:"PUT",path:G},{method:"POST",path:H},{method:"POST",path:d},{method:"POST",path:`${d}/:id/view`},{method:"GET",path:T},{method:"DELETE",path:`${T}/:id`},{method:"PUT",path:`${T}/:id/executor`},{method:"POST",path:o},{method:"GET",path:o},{method:"PATCH",path:`${o}/:id`},{method:"DELETE",path:`${o}/:id`},{method:"GET",path:"/api/s/:token"},{method:"POST",path:"/api/s/:token/report"},...Object.values(P).map(h=>({method:h.http,path:h.route})),{method:"GET",path:t},{method:"POST",path:t},{method:"GET",path:`${t}/:id`},{method:"DELETE",path:`${t}/:id`},{method:"POST",path:`${t}/:id/deployments`},{method:"POST",path:`${t}/:id/blobs`},{method:"PUT",path:`${t}/:id/live`},{method:"DELETE",path:`${t}/:id/live`},{method:"PUT",path:`${t}/:id/settings`}],probePath=h=>h.path.replace(/:[A-Za-z]+/gu,"probe");export function routeMissing(h,a,E){if(a!==404)return!1;const p=E.error;return p?.code==="not_found"&&p.message===`There is no ${h.method} ${probePath(h)}.`}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const SHARE_AUDIENCES: readonly ["anyone", "organization"];
|
|
3
|
+
export type ShareAudience = (typeof SHARE_AUDIENCES)[number];
|
|
4
|
+
/** What can be shared alone: what a person reads, watches or pages through. */
|
|
5
|
+
export declare const SHARED_KINDS: readonly ["video", "slides", "doc", "sheet"];
|
|
6
|
+
export declare const SHARE_STATES: readonly ["shared", "revoked", "taken-down"];
|
|
7
|
+
/** A share, as its organization's members see it. */
|
|
8
|
+
export declare const ShareSchema: z.ZodObject<{
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
projectId: z.ZodString;
|
|
11
|
+
item: z.ZodString;
|
|
12
|
+
audience: z.ZodUnion<readonly [z.ZodEnum<{
|
|
13
|
+
organization: "organization";
|
|
14
|
+
anyone: "anyone";
|
|
15
|
+
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
16
|
+
state: z.ZodUnion<readonly [z.ZodEnum<{
|
|
17
|
+
shared: "shared";
|
|
18
|
+
revoked: "revoked";
|
|
19
|
+
"taken-down": "taken-down";
|
|
20
|
+
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
21
|
+
url: z.ZodURL;
|
|
22
|
+
createdAt: z.ZodISODateTime;
|
|
23
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export type Share = z.infer<typeof ShareSchema>;
|
|
26
|
+
/** `POST { projectId, item, audience }` (a member, or the project's executor): a share made, answered as a `Share`. `GET ?projectId=`: the project's shares. */
|
|
27
|
+
export declare const SHARES_PATH = "/api/shares";
|
|
28
|
+
export declare const ShareCreateSchema: z.ZodObject<{
|
|
29
|
+
projectId: z.ZodString;
|
|
30
|
+
item: z.ZodString;
|
|
31
|
+
audience: z.ZodEnum<{
|
|
32
|
+
organization: "organization";
|
|
33
|
+
anyone: "anyone";
|
|
34
|
+
}>;
|
|
35
|
+
}, z.core.$strict>;
|
|
36
|
+
export type ShareCreate = z.infer<typeof ShareCreateSchema>;
|
|
37
|
+
export declare const SharesResponseSchema: z.ZodObject<{
|
|
38
|
+
shares: z.ZodArray<z.ZodObject<{
|
|
39
|
+
id: z.ZodString;
|
|
40
|
+
projectId: z.ZodString;
|
|
41
|
+
item: z.ZodString;
|
|
42
|
+
audience: z.ZodUnion<readonly [z.ZodEnum<{
|
|
43
|
+
organization: "organization";
|
|
44
|
+
anyone: "anyone";
|
|
45
|
+
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
46
|
+
state: z.ZodUnion<readonly [z.ZodEnum<{
|
|
47
|
+
shared: "shared";
|
|
48
|
+
revoked: "revoked";
|
|
49
|
+
"taken-down": "taken-down";
|
|
50
|
+
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
51
|
+
url: z.ZodURL;
|
|
52
|
+
createdAt: z.ZodISODateTime;
|
|
53
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
/** `PATCH { audience }`: its audience changed; `DELETE`: revoked. */
|
|
57
|
+
export declare const sharePath: (id: string) => string;
|
|
58
|
+
/** Where a share is seen: the viewer's page on the app's origin. */
|
|
59
|
+
export declare const shareLink: (app: string, token: string) => string;
|
|
60
|
+
/**
|
|
61
|
+
* `GET`, anyone's (a signed-in member's for the organization's audience):
|
|
62
|
+
* what a share shows now, with a read view of the item's latest snapshot.
|
|
63
|
+
* 404 for a token that is not a share or was revoked, 410 when taken down
|
|
64
|
+
* (`TakenDownSchema`), 401 when it is the organization's and the viewer is not
|
|
65
|
+
* signed in, 403 when signed in elsewhere.
|
|
66
|
+
*/
|
|
67
|
+
export declare const sharedPath: (token: string) => string;
|
|
68
|
+
export declare const SharedSchema: z.ZodObject<{
|
|
69
|
+
project: z.ZodString;
|
|
70
|
+
item: z.ZodObject<{
|
|
71
|
+
dir: z.ZodString;
|
|
72
|
+
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
73
|
+
video: "video";
|
|
74
|
+
slides: "slides";
|
|
75
|
+
doc: "doc";
|
|
76
|
+
sheet: "sheet";
|
|
77
|
+
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
78
|
+
name: z.ZodString;
|
|
79
|
+
}, z.core.$strip>;
|
|
80
|
+
view: z.ZodObject<{
|
|
81
|
+
origin: z.ZodURL;
|
|
82
|
+
expiresAt: z.ZodISODateTime;
|
|
83
|
+
}, z.core.$strip>;
|
|
84
|
+
madeAt: z.ZodISODateTime;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
export type Shared = z.infer<typeof SharedSchema>;
|
|
87
|
+
/** A taken-down share's 410: the server's error envelope, staff's reason in its `data`. */
|
|
88
|
+
export declare const TakenDownSchema: z.ZodObject<{
|
|
89
|
+
error: z.ZodObject<{
|
|
90
|
+
code: z.ZodLiteral<"gone">;
|
|
91
|
+
data: z.ZodObject<{
|
|
92
|
+
reason: z.ZodString;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
export type TakenDown = z.infer<typeof TakenDownSchema>;
|
|
97
|
+
/** `POST { reason, details, email? }`, anyone's: a share reported to staff. */
|
|
98
|
+
export declare const shareReportPath: (token: string) => string;
|
|
99
|
+
export declare const SHARE_REPORT_REASONS: readonly ["phishing", "malware", "sexual", "violence", "hate", "copyright", "privacy", "other"];
|
|
100
|
+
export declare const ShareReportSchema: z.ZodObject<{
|
|
101
|
+
reason: z.ZodEnum<{
|
|
102
|
+
other: "other";
|
|
103
|
+
phishing: "phishing";
|
|
104
|
+
malware: "malware";
|
|
105
|
+
sexual: "sexual";
|
|
106
|
+
violence: "violence";
|
|
107
|
+
hate: "hate";
|
|
108
|
+
copyright: "copyright";
|
|
109
|
+
privacy: "privacy";
|
|
110
|
+
}>;
|
|
111
|
+
details: z.ZodString;
|
|
112
|
+
email: z.ZodOptional<z.ZodEmail>;
|
|
113
|
+
}, z.core.$strict>;
|
|
114
|
+
export type ShareReport = z.infer<typeof ShareReportSchema>;
|
|
115
|
+
//# sourceMappingURL=shares.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{openEnum as o}from"./open.js";import{SnapshotViewSchema as n}from"./snapshots.js";export const SHARE_AUDIENCES=["anyone","organization"],SHARED_KINDS=["video","slides","doc","sheet"],SHARE_STATES=["shared","revoked","taken-down"],ShareSchema=e.object({id:e.string().min(1),projectId:e.string().min(1),item:e.string(),audience:o(SHARE_AUDIENCES),state:o(SHARE_STATES),url:e.url(),createdAt:e.iso.datetime(),reason:e.string().optional()}),SHARES_PATH="/api/shares",ShareCreateSchema=e.strictObject({projectId:e.string().min(1),item:e.string(),audience:e.enum(SHARE_AUDIENCES)}),SharesResponseSchema=e.object({shares:e.array(ShareSchema)}),sharePath=t=>`${SHARES_PATH}/${encodeURIComponent(t)}`,shareLink=(t,r)=>`${t.replace(/\/+$/u,"")}/s/${encodeURIComponent(r)}`,sharedPath=t=>`/api/s/${encodeURIComponent(t)}`,SharedSchema=e.object({project:e.string(),item:e.object({dir:e.string(),kind:o(SHARED_KINDS),name:e.string()}),view:n,madeAt:e.iso.datetime()}),TakenDownSchema=e.object({error:e.object({code:e.literal("gone"),data:e.object({reason:e.string()})})}),shareReportPath=t=>`${sharedPath(t)}/report`,SHARE_REPORT_REASONS=["phishing","malware","sexual","violence","hate","copyright","privacy","other"],ShareReportSchema=e.strictObject({reason:e.enum(SHARE_REPORT_REASONS),details:e.string().max(2e3),email:e.email().optional()});
|