@allyhub/sdk 0.8.0 → 0.10.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/CHANGELOG.md +19 -0
- package/NOTICE +46 -49
- package/dist/dom.d.ts +1 -209
- package/dist/dom.js +1 -1
- package/dist/image.d.ts +2 -0
- package/dist/image.js +2 -0
- package/dist/index.d.ts +1 -21
- package/dist/index.js +1 -1
- package/dist/media.d.ts +1 -5
- package/dist/media.js +1 -1
- package/dist/node_modules/@allyhub/audio/dist/levels.d.ts +4 -5
- package/dist/node_modules/@allyhub/audio/dist/levels.js +1 -1
- package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.d.ts +1 -6
- package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.js +1 -1
- package/dist/node_modules/@allyhub/audio/package.json +1 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-file.js +1 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.d.ts +4 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
- package/dist/node_modules/@allyhub/chart/dist/chart.d.ts +22 -0
- package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/chart/package.json +1 -1
- package/dist/node_modules/@allyhub/diagnostics/LICENSE +241 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/fact.d.ts +37 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/fact.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/index.d.ts +4 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +43 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/problem.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/rules.d.ts +30 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/package.json +14 -0
- package/dist/node_modules/@allyhub/formats/dist/contributed.d.ts +126 -0
- package/dist/node_modules/@allyhub/formats/dist/contributed.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +7 -12
- package/dist/node_modules/@allyhub/formats/dist/data/reference.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/script.d.ts +9 -4
- package/dist/node_modules/@allyhub/formats/dist/data/script.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +107 -83
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +185 -8
- package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/website.d.ts +2 -1
- package/dist/node_modules/@allyhub/formats/dist/data/website.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
- package/dist/node_modules/@allyhub/formats/dist/data/work.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/extension.d.ts +91 -0
- package/dist/node_modules/@allyhub/formats/dist/extension.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/files.d.ts +51 -0
- package/dist/node_modules/@allyhub/formats/dist/files.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/index.d.ts +5 -1
- package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/items.d.ts +226 -90
- package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +7 -1
- package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +96 -42
- package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
- package/dist/node_modules/@allyhub/formats/package.json +1 -1
- package/dist/node_modules/@allyhub/image-draw/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-draw/dist/context.d.ts +5 -0
- package/dist/node_modules/@allyhub/image-draw/dist/context.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/contrast.d.ts +13 -0
- package/dist/node_modules/@allyhub/image-draw/dist/contrast.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/env.d.ts +112 -0
- package/dist/node_modules/@allyhub/image-draw/dist/env.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/errors.d.ts +20 -0
- package/dist/node_modules/@allyhub/image-draw/dist/errors.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/fonts.d.ts +110 -0
- package/dist/node_modules/@allyhub/image-draw/dist/fonts.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/guards.d.ts +32 -0
- package/dist/node_modules/@allyhub/image-draw/dist/guards.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/hash.d.ts +3 -0
- package/dist/node_modules/@allyhub/image-draw/dist/hash.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/inspect.d.ts +113 -0
- package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +3 -0
- package/dist/node_modules/@allyhub/image-draw/dist/layer-style.d.ts +151 -0
- package/dist/node_modules/@allyhub/image-draw/dist/layer-style.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/paint.d.ts +29 -0
- package/dist/node_modules/@allyhub/image-draw/dist/paint.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/pictures.d.ts +39 -0
- package/dist/node_modules/@allyhub/image-draw/dist/pictures.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/plan.d.ts +52 -0
- package/dist/node_modules/@allyhub/image-draw/dist/plan.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/reads.d.ts +145 -0
- package/dist/node_modules/@allyhub/image-draw/dist/reads.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/shape-path.d.ts +26 -0
- package/dist/node_modules/@allyhub/image-draw/dist/shape-path.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/stage.d.ts +56 -0
- package/dist/node_modules/@allyhub/image-draw/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/styles.d.ts +35 -0
- package/dist/node_modules/@allyhub/image-draw/dist/styles.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/tone.d.ts +53 -0
- package/dist/node_modules/@allyhub/image-draw/dist/tone.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/package.json +14 -0
- package/dist/node_modules/@allyhub/image-measure/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-measure/dist/contrast.d.ts +43 -0
- package/dist/node_modules/@allyhub/image-measure/dist/contrast.js +2 -0
- package/dist/node_modules/@allyhub/image-measure/dist/layout.d.ts +186 -0
- package/dist/node_modules/@allyhub/image-measure/dist/layout.js +5 -0
- package/dist/node_modules/@allyhub/image-measure/package.json +14 -0
- package/dist/node_modules/@allyhub/image-sdk/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.d.ts +13 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.js +2 -0
- package/dist/{define.d.ts → node_modules/@allyhub/image-sdk/dist/define.d.ts} +21 -4
- package/dist/node_modules/@allyhub/image-sdk/dist/define.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/dom.d.ts +210 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/dom.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/fill.d.ts +21 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/fill.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/group.d.ts +17 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/group.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/index.d.ts +166 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/media.d.ts +6 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/media.js +2 -0
- package/dist/{messages.d.ts → node_modules/@allyhub/image-sdk/dist/messages.d.ts} +1 -1
- package/dist/node_modules/@allyhub/image-sdk/dist/picture.d.ts +59 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/picture.js +2 -0
- package/dist/{props.d.ts → node_modules/@allyhub/image-sdk/dist/props.d.ts} +4 -4
- package/dist/node_modules/@allyhub/image-sdk/dist/shape.d.ts +34 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/shape.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/stack.d.ts +16 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/stack.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.d.ts +38 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.js +2 -0
- package/dist/{written.js → node_modules/@allyhub/image-sdk/dist/written.js} +1 -1
- package/dist/node_modules/@allyhub/image-sdk/package.json +19 -0
- package/dist/node_modules/@allyhub/measure/LICENSE +241 -0
- package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +195 -0
- package/dist/node_modules/@allyhub/measure/dist/compare.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +8 -0
- package/dist/node_modules/@allyhub/measure/dist/grain.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/image.d.ts +16 -0
- package/dist/node_modules/@allyhub/measure/dist/image.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/index.d.ts +4 -0
- package/dist/node_modules/@allyhub/measure/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/measure/package.json +13 -0
- package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.d.ts +4 -1
- package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.d.ts +15 -1
- package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
- package/dist/node_modules/@allyhub/piece/LICENSE +241 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.d.ts +1 -9
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/context.d.ts +39 -0
- package/dist/node_modules/@allyhub/piece/dist/context.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.d.ts +2 -2
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/export.d.ts +27 -10
- package/dist/node_modules/@allyhub/piece/dist/export.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/formats.d.ts +12 -68
- package/dist/node_modules/@allyhub/piece/dist/formats.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/gen.d.ts +104 -0
- package/dist/node_modules/@allyhub/piece/dist/index.d.ts +26 -0
- package/dist/node_modules/@allyhub/piece/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/layer-style.d.ts +1558 -0
- package/dist/node_modules/@allyhub/piece/dist/layer-style.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +389 -0
- package/dist/node_modules/@allyhub/piece/dist/layer.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +437 -0
- package/dist/node_modules/@allyhub/piece/dist/layout.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.d.ts +1 -1
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.d.ts +39 -9
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.js +1 -1
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.d.ts +6 -0
- package/dist/node_modules/@allyhub/piece/dist/names.d.ts +26 -0
- package/dist/node_modules/@allyhub/piece/dist/names.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +21 -0
- package/dist/node_modules/@allyhub/piece/dist/page/console.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +3 -0
- package/dist/node_modules/@allyhub/piece/dist/page/index.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +4 -0
- package/dist/node_modules/@allyhub/piece/dist/page/locate.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/picture.d.ts +62 -0
- package/dist/node_modules/@allyhub/piece/dist/picture.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/piece.d.ts +15 -0
- package/dist/node_modules/@allyhub/piece/dist/piece.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/script.d.ts +9 -4
- package/dist/node_modules/@allyhub/piece/dist/script.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/source.d.ts +131 -0
- package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +291 -0
- package/dist/node_modules/@allyhub/piece/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/version.d.ts +15 -0
- package/dist/node_modules/@allyhub/piece/dist/version.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.d.ts +1 -20
- package/dist/node_modules/@allyhub/piece/package.json +18 -0
- package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +271 -0
- package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +3 -10
- package/dist/node_modules/@allyhub/protocol/dist/app.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +19 -1
- package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.d.ts +337 -0
- package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +12 -1
- package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +155 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +235 -133
- package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/files.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +65 -197
- package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +8 -0
- package/dist/node_modules/@allyhub/protocol/dist/image.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +6 -0
- package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +6 -6
- package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +98 -0
- package/dist/node_modules/@allyhub/protocol/dist/kinds.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +274 -0
- package/dist/node_modules/@allyhub/protocol/dist/mail.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +77 -91
- package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +59 -0
- package/dist/node_modules/@allyhub/protocol/dist/peer.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +21 -0
- package/dist/node_modules/@allyhub/protocol/dist/place.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +125 -0
- package/dist/node_modules/@allyhub/protocol/dist/presence.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +35 -0
- package/dist/node_modules/@allyhub/protocol/dist/shape.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +2 -8
- package/dist/node_modules/@allyhub/protocol/dist/shares.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +70 -40
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +224 -177
- package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/protocol/package.json +5 -1
- package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +14 -0
- package/dist/node_modules/@allyhub/runtimes/dist/declared.js +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +15 -0
- package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.js +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/packages.js +3 -3
- package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +1 -0
- package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/manifest.json +0 -82
- package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/define.d.ts +2 -0
- package/dist/node_modules/@allyhub/scenery/dist/define.js +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/index.d.ts +2 -2
- package/dist/node_modules/@allyhub/scenery/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/moire.d.ts +45 -5
- package/dist/node_modules/@allyhub/scenery/dist/moire.js +2 -2
- package/dist/node_modules/@allyhub/scenery/dist/phone.d.ts +4 -3
- package/dist/node_modules/@allyhub/scenery/dist/phone.js +1 -1
- package/dist/node_modules/@allyhub/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/code.d.ts +4 -4
- package/dist/node_modules/@allyhub/sheet/dist/api/code.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/workbook.d.ts +15 -11
- package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/engine.d.ts +70 -0
- package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.d.ts +6 -0
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.d.ts +3 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.d.ts +9 -0
- package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/server.d.ts +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/types.d.ts +6 -0
- package/dist/node_modules/@allyhub/sheet/dist/calc/types.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/chart.d.ts +9 -0
- package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/file.d.ts +5 -0
- package/dist/node_modules/@allyhub/sheet/dist/file.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/ast.d.ts +12 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/move.d.ts +5 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/move.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/parse.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/print.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/generated.d.ts +5 -19
- package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/import.d.ts +3 -1
- package/dist/node_modules/@allyhub/sheet/dist/import.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/index.d.ts +5 -5
- package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/inspect.d.ts +88 -3
- package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/patch.d.ts +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/patch.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/printed.d.ts +19 -0
- package/dist/node_modules/@allyhub/sheet/dist/printed.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/sdk.d.ts +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/sdk.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/values.d.ts +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/values.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/workbook.d.ts +8 -6
- package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/write.js +15 -15
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.d.ts +6 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.d.ts +2 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.d.ts +3 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.d.ts +7 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.js +3 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.d.ts +6 -0
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.d.ts +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.d.ts +12 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.js +3 -2
- package/dist/node_modules/@allyhub/sheet/package.json +5 -1
- package/dist/node_modules/@allyhub/slides-core/dist/animation.d.ts +23 -7
- package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/api.d.ts +101 -11
- package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
- package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/chart-api.d.ts +18 -1
- package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/code.d.ts +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/connect.d.ts +62 -0
- package/dist/node_modules/@allyhub/slides-core/dist/connect.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/enums.d.ts +24 -0
- package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/fact.d.ts +223 -0
- package/dist/node_modules/@allyhub/slides-core/dist/fact.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/file.d.ts +4 -4
- package/dist/node_modules/@allyhub/slides-core/dist/file.js +2 -2
- package/dist/node_modules/@allyhub/slides-core/dist/index.d.ts +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/measure.d.ts +4 -2
- package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/merge.d.ts +5 -5
- package/dist/node_modules/@allyhub/slides-core/dist/merge.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/model.d.ts +25 -4
- package/dist/node_modules/@allyhub/slides-core/dist/office.d.ts +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/path.d.ts +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.d.ts +20 -11
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/sdk.d.ts +18 -0
- package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/stage.d.ts +28 -11
- package/dist/node_modules/@allyhub/slides-core/dist/units.d.ts +3 -6
- package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/package.json +5 -1
- package/dist/node_modules/@allyhub/video-core/dist/audio-types.d.ts +1 -2
- package/dist/node_modules/@allyhub/video-core/dist/captions.d.ts +1 -10
- package/dist/node_modules/@allyhub/video-core/dist/captions.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/check.d.ts +62 -0
- package/dist/node_modules/@allyhub/video-core/dist/check.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/cut-report.d.ts +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/cut-report.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/edits.d.ts +3 -3
- package/dist/node_modules/@allyhub/video-core/dist/edits.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/fact.d.ts +21 -762
- package/dist/node_modules/@allyhub/video-core/dist/fact.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/footage-motion.d.ts +3 -2
- package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/index.d.ts +3 -17
- package/dist/node_modules/@allyhub/video-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/measure.d.ts +72 -423
- package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -4
- package/dist/node_modules/@allyhub/video-core/dist/mix-plan.d.ts +44 -0
- package/dist/node_modules/@allyhub/video-core/dist/mix-plan.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/motion.d.ts +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/piece.d.ts +24 -432
- package/dist/node_modules/@allyhub/video-core/dist/piece.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/placement.d.ts +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/schema.d.ts +8 -14
- package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/script-edit.d.ts +11 -6
- package/dist/node_modules/@allyhub/video-core/dist/script-edit.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/seams.d.ts +2 -3
- package/dist/node_modules/@allyhub/video-core/dist/sound-under.d.ts +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/sound-under.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/speech.d.ts +2 -4
- package/dist/node_modules/@allyhub/video-core/dist/speech.js +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/stage.d.ts +52 -0
- package/dist/node_modules/@allyhub/video-core/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/timeline.d.ts +18 -136
- package/dist/node_modules/@allyhub/video-core/dist/timeline.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/timing.d.ts +3 -3
- package/dist/node_modules/@allyhub/video-core/dist/timing.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/transcript.d.ts +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/transcript.js +1 -1
- package/dist/node_modules/@allyhub/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub/video-sdk/LICENSE +241 -0
- package/dist/node_modules/@allyhub/video-sdk/NOTICE +118 -0
- package/dist/{free.d.ts → node_modules/@allyhub/video-sdk/dist/free.d.ts} +14 -10
- package/dist/node_modules/@allyhub/video-sdk/dist/free.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/index.d.ts +28 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/index.js +2 -0
- package/dist/{input.d.ts → node_modules/@allyhub/video-sdk/dist/input.d.ts} +76 -22
- package/dist/node_modules/@allyhub/video-sdk/dist/input.js +2 -0
- package/dist/{module.d.ts → node_modules/@allyhub/video-sdk/dist/module.d.ts} +6 -4
- package/dist/node_modules/@allyhub/video-sdk/dist/module.js +2 -0
- package/dist/{parts.d.ts → node_modules/@allyhub/video-sdk/dist/parts.d.ts} +15 -6
- package/dist/node_modules/@allyhub/video-sdk/dist/parts.js +2 -0
- package/dist/{phone.d.ts → node_modules/@allyhub/video-sdk/dist/phone.d.ts} +12 -5
- package/dist/node_modules/@allyhub/video-sdk/dist/phone.js +2 -0
- package/dist/{piece.d.ts → node_modules/@allyhub/video-sdk/dist/piece.d.ts} +26 -16
- package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/route.d.ts +46 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/route.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/scenery.d.ts +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/scenery.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/package.json +19 -0
- package/dist/scenery.d.ts +1 -1
- package/dist/scenery.js +1 -1
- package/dist/sheets.d.ts +1 -1
- package/dist/sheets.js +1 -1
- package/dist/slides.d.ts +1 -9
- package/dist/slides.js +1 -1
- package/docs/README.md +10 -6
- package/docs/batches.md +5 -5
- package/docs/canvas.md +28 -0
- package/docs/contract.md +2 -2
- package/docs/defaults.md +298 -22
- package/docs/docs.md +80 -66
- package/docs/footage.md +7 -7
- package/docs/image.md +165 -0
- package/docs/layers.md +22 -13
- package/docs/modeling.md +4 -4
- package/docs/pictures.md +65 -0
- package/docs/project.md +51 -31
- package/docs/scenery.md +14 -15
- package/docs/sheets.md +46 -28
- package/docs/slides.md +121 -67
- package/docs/sound.md +3 -3
- package/docs/speech.md +8 -8
- package/docs/video.md +16 -13
- package/docs/websites.md +4 -4
- package/docs/x.md +73 -0
- package/package.json +7 -2
- package/dist/define.js +0 -2
- package/dist/free.js +0 -2
- package/dist/input.js +0 -2
- package/dist/module.js +0 -2
- package/dist/node_modules/@allyhub/formats/dist/data/comments.d.ts +0 -94
- package/dist/node_modules/@allyhub/formats/dist/data/comments.js +0 -2
- package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package-lock.json +0 -227
- package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package.json +0 -8
- package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package-lock.json +0 -105
- package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package.json +0 -8
- package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package-lock.json +0 -128
- package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package.json +0 -9
- package/dist/node_modules/@allyhub/video-core/dist/export.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/formats.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/gen.d.ts +0 -37
- package/dist/node_modules/@allyhub/video-core/dist/problem.d.ts +0 -278
- package/dist/node_modules/@allyhub/video-core/dist/problem.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/script.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/source.d.ts +0 -7
- package/dist/parts.js +0 -2
- package/dist/phone.js +0 -2
- package/dist/piece.js +0 -2
- /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.js +0 -0
- /package/dist/{fit.d.ts → node_modules/@allyhub/image-sdk/dist/fit.d.ts} +0 -0
- /package/dist/{fit.js → node_modules/@allyhub/image-sdk/dist/fit.js} +0 -0
- /package/dist/{messages.js → node_modules/@allyhub/image-sdk/dist/messages.js} +0 -0
- /package/dist/{props.js → node_modules/@allyhub/image-sdk/dist/props.js} +0 -0
- /package/dist/{text.d.ts → node_modules/@allyhub/image-sdk/dist/text.d.ts} +0 -0
- /package/dist/{text.js → node_modules/@allyhub/image-sdk/dist/text.js} +0 -0
- /package/dist/{written.d.ts → node_modules/@allyhub/image-sdk/dist/written.d.ts} +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/gen.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/source.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.js +0 -0
- /package/dist/{anim.d.ts → node_modules/@allyhub/video-sdk/dist/anim.d.ts} +0 -0
- /package/dist/{anim.js → node_modules/@allyhub/video-sdk/dist/anim.js} +0 -0
- /package/dist/{noise.d.ts → node_modules/@allyhub/video-sdk/dist/noise.d.ts} +0 -0
- /package/dist/{noise.js → node_modules/@allyhub/video-sdk/dist/noise.js} +0 -0
- /package/dist/{paths.d.ts → node_modules/@allyhub/video-sdk/dist/paths.d.ts} +0 -0
- /package/dist/{paths.js → node_modules/@allyhub/video-sdk/dist/paths.js} +0 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/** A step after an export, as its extension contributes it (`exportProcessors`). */
|
|
2
|
+
export interface ExportProcessorSpec {
|
|
3
|
+
/** Its id: its extension's id and a name, `acme.sums.sha256`. */
|
|
4
|
+
readonly id: string;
|
|
5
|
+
/** The file types it applies to: every file of one of them an export makes. */
|
|
6
|
+
readonly types: readonly string[];
|
|
7
|
+
/** Its module, where the export imports it from: its default export is `@allyhub/export`'s ExportProcessor. */
|
|
8
|
+
readonly module: string;
|
|
9
|
+
/** The extension that contributes it. */
|
|
10
|
+
readonly extension: string;
|
|
11
|
+
}
|
|
12
|
+
/** The export processors the extensions loaded contribute, in their order. */
|
|
13
|
+
export type ProcessorTable = readonly ExportProcessorSpec[];
|
|
14
|
+
/** An analysis of media, as its extension contributes it (`mediaAnalyses`). */
|
|
15
|
+
export interface MediaAnalysisSpec {
|
|
16
|
+
/** Its id, as a version's needs name it in the media index (`faces`). */
|
|
17
|
+
readonly id: string;
|
|
18
|
+
/** What it measures, for a person and an agent. */
|
|
19
|
+
readonly about: string;
|
|
20
|
+
/** What it makes, as a line of progress names it: `the face track`. */
|
|
21
|
+
readonly what: string;
|
|
22
|
+
/** The kinds of media file it takes (`video`). */
|
|
23
|
+
readonly media: readonly string[];
|
|
24
|
+
/** The runtimes it downloads when first run (`yt-dlp`), by their names in the runtime manager. */
|
|
25
|
+
readonly runtimes: readonly string[];
|
|
26
|
+
/** Its module, where the index imports it from: its default export is `@allyhub/media`'s MediaAnalysis. */
|
|
27
|
+
readonly module: string;
|
|
28
|
+
/** The extension that contributes it. */
|
|
29
|
+
readonly extension: string;
|
|
30
|
+
}
|
|
31
|
+
/** The media analyses the extensions loaded contribute, in their order: the order the index runs them in. */
|
|
32
|
+
export type AnalysisTable = readonly MediaAnalysisSpec[];
|
|
33
|
+
/** A command of the CLI, as its extension contributes it (`cliCommands`). */
|
|
34
|
+
export interface CliCommandSpec {
|
|
35
|
+
/** Its words: `allyhub <name>`. */
|
|
36
|
+
readonly name: string;
|
|
37
|
+
/** Its one line in `allyhub help`. */
|
|
38
|
+
readonly summary: string;
|
|
39
|
+
/** The work `allyhub help <work>` lists it in. */
|
|
40
|
+
readonly work?: string;
|
|
41
|
+
/** Its module, where the CLI imports it from: its default export is `@allyhub/build`'s CliCommands, which has this command by name. */
|
|
42
|
+
readonly module: string;
|
|
43
|
+
/** The extension that contributes it. */
|
|
44
|
+
readonly extension: string;
|
|
45
|
+
}
|
|
46
|
+
/** A view of `allyhub inspect`, as its extension contributes it (`inspectViews`). */
|
|
47
|
+
export interface InspectViewSpec {
|
|
48
|
+
/** Its word: `allyhub inspect <name>`. */
|
|
49
|
+
readonly name: string;
|
|
50
|
+
/** Its one line in `allyhub help`. */
|
|
51
|
+
readonly summary: string;
|
|
52
|
+
/** Its module, where the CLI imports it from: its default export is `@allyhub/build`'s InspectViews, which has this view by name. */
|
|
53
|
+
readonly module: string;
|
|
54
|
+
/** The extension that contributes it. */
|
|
55
|
+
readonly extension: string;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* What does for the agent what a project tool does for an editor: a CLI
|
|
59
|
+
* command, or the files it reads or writes instead; or, for what only a
|
|
60
|
+
* person decides (taking a website offline), why the agent has none.
|
|
61
|
+
*/
|
|
62
|
+
export type ToolCounterpart = {
|
|
63
|
+
readonly command: string;
|
|
64
|
+
} | {
|
|
65
|
+
readonly files: string;
|
|
66
|
+
} | {
|
|
67
|
+
readonly person: string;
|
|
68
|
+
};
|
|
69
|
+
/** What a stage page loads from a folder of the tree: the CSP fetch directive it needs (`script-src` for "script"). */
|
|
70
|
+
export declare const STAGE_LOADS: readonly ["script", "style", "font", "img", "media", "connect"];
|
|
71
|
+
export type StageLoad = (typeof STAGE_LOADS)[number];
|
|
72
|
+
/** A folder of the stage's tree an extension serves, as it contributes it (`stageRoutes`). */
|
|
73
|
+
export interface StageRouteSpec {
|
|
74
|
+
/** Its folder at the tree's root, ending in "/" (`sound/`). */
|
|
75
|
+
readonly folder: string;
|
|
76
|
+
/** What the stage's pages load from it, which their CSP allows there. */
|
|
77
|
+
readonly loads: readonly StageLoad[];
|
|
78
|
+
/** Its module, where the dev server imports it from: its default export is `@allyhub/build`'s StageRoutes, which has this folder. */
|
|
79
|
+
readonly module: string;
|
|
80
|
+
/** The extension that contributes it. */
|
|
81
|
+
readonly extension: string;
|
|
82
|
+
}
|
|
83
|
+
/** A tool of the project's server, as its extension contributes it (`projectTools`). */
|
|
84
|
+
export interface ProjectToolSpec {
|
|
85
|
+
/** Its method: `video/timeline`, namespaced by its kind or its extension. */
|
|
86
|
+
readonly name: string;
|
|
87
|
+
/** Where a read view answers it with no machine (@allyhub/protocol's MethodSource): from the snapshot, as nothing, or by the machine. */
|
|
88
|
+
readonly source: "project" | "asleep" | "machine";
|
|
89
|
+
/** What does the same for the agent. */
|
|
90
|
+
readonly does: ToolCounterpart;
|
|
91
|
+
/** Its module, where the dev server imports it from: its default export is `@allyhub/build`'s ProjectTools, which has this tool by name. */
|
|
92
|
+
readonly module: string;
|
|
93
|
+
/** The extension that contributes it. */
|
|
94
|
+
readonly extension: string;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* A part of a skill (`skills`): a folder laid out as an Agent Skill's
|
|
98
|
+
* (its SKILL.md, references/, scripts/, assets/), named as the skill is.
|
|
99
|
+
* A skill is assembled from every part of its name: the one that holds
|
|
100
|
+
* its SKILL.md, and those that add files to it.
|
|
101
|
+
*/
|
|
102
|
+
export interface SkillSpec {
|
|
103
|
+
/** The skill's name: its folder's (`allyhub`). */
|
|
104
|
+
readonly name: string;
|
|
105
|
+
/** Where the folder is. */
|
|
106
|
+
readonly folder: string;
|
|
107
|
+
/** What gives it: the extension that contributes it, or the app whose own part it is. */
|
|
108
|
+
readonly extension: string;
|
|
109
|
+
}
|
|
110
|
+
/** An MCP server, as its extension contributes it (`mcpServers`): a local program or an address, as `.mcp.json` names one. */
|
|
111
|
+
export type McpServerSpec = {
|
|
112
|
+
/** Its name, as an agent names its tools (`mcp__<name>__<tool>`). */
|
|
113
|
+
readonly name: string;
|
|
114
|
+
/** The extension that contributes it. */
|
|
115
|
+
readonly extension: string;
|
|
116
|
+
} & ({
|
|
117
|
+
readonly command: string;
|
|
118
|
+
readonly args: readonly string[];
|
|
119
|
+
readonly env: Readonly<Record<string, string>>;
|
|
120
|
+
/** Where it runs: its extension's folder unless it says. */
|
|
121
|
+
readonly cwd: string;
|
|
122
|
+
} | {
|
|
123
|
+
readonly url: string;
|
|
124
|
+
readonly headers: Readonly<Record<string, string>>;
|
|
125
|
+
});
|
|
126
|
+
//# sourceMappingURL=contributed.d.ts.map
|
|
@@ -18,7 +18,7 @@ export interface TrackedFace {
|
|
|
18
18
|
*/
|
|
19
19
|
export interface FaceTrack {
|
|
20
20
|
version: 2;
|
|
21
|
-
/**
|
|
21
|
+
/** What found the faces: the cloud tool ("detect-faces"), never the model behind it. */
|
|
22
22
|
model: string;
|
|
23
23
|
/** The displayed picture's pixels the boxes are in. */
|
|
24
24
|
width: number;
|
|
@@ -43,7 +43,6 @@ export declare const ReferenceTextSchema: z.ZodObject<{
|
|
|
43
43
|
text: z.ZodString;
|
|
44
44
|
box: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
45
45
|
height: z.ZodNumber;
|
|
46
|
-
conf: z.ZodNumber;
|
|
47
46
|
words: z.ZodNumber;
|
|
48
47
|
upper: z.ZodNumber;
|
|
49
48
|
start: z.ZodNumber;
|
|
@@ -276,6 +275,12 @@ export declare const ReferenceSchema: z.ZodObject<{
|
|
|
276
275
|
hint: z.ZodOptional<z.ZodString>;
|
|
277
276
|
instead: z.ZodString;
|
|
278
277
|
}, z.core.$strip>>;
|
|
278
|
+
textMissing: z.ZodOptional<z.ZodObject<{
|
|
279
|
+
code: z.ZodOptional<z.ZodString>;
|
|
280
|
+
message: z.ZodString;
|
|
281
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
282
|
+
instead: z.ZodString;
|
|
283
|
+
}, z.core.$strip>>;
|
|
279
284
|
shots: z.ZodObject<{
|
|
280
285
|
threshold: z.ZodNumber;
|
|
281
286
|
minShot: z.ZodNumber;
|
|
@@ -346,26 +351,16 @@ export declare const ReferenceSchema: z.ZodObject<{
|
|
|
346
351
|
}, z.core.$strip>;
|
|
347
352
|
ocr: z.ZodObject<{
|
|
348
353
|
engine: z.ZodString;
|
|
349
|
-
confidence: z.ZodObject<{
|
|
350
|
-
word: z.ZodNumber;
|
|
351
|
-
short: z.ZodNumber;
|
|
352
|
-
}, z.core.$strip>;
|
|
353
354
|
frames: z.ZodNumber;
|
|
355
|
+
unread: z.ZodOptional<z.ZodNumber>;
|
|
354
356
|
samePlace: z.ZodNumber;
|
|
355
357
|
saidWithin: z.ZodNumber;
|
|
356
|
-
low: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
357
|
-
t: z.ZodNumber;
|
|
358
|
-
text: z.ZodString;
|
|
359
|
-
conf: z.ZodNumber;
|
|
360
|
-
box: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
361
|
-
}, z.core.$strip>>>;
|
|
362
358
|
}, z.core.$strip>;
|
|
363
359
|
text: z.ZodArray<z.ZodObject<{
|
|
364
360
|
id: z.ZodNumber;
|
|
365
361
|
text: z.ZodString;
|
|
366
362
|
box: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
367
363
|
height: z.ZodNumber;
|
|
368
|
-
conf: z.ZodNumber;
|
|
369
364
|
words: z.ZodNumber;
|
|
370
365
|
upper: z.ZodNumber;
|
|
371
366
|
start: z.ZodNumber;
|
|
@@ -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 e}from"zod";import{SECONDS as n,SHA256 as
|
|
2
|
+
import{z as e}from"zod";import{SECONDS as n,SHA256 as s,dataFile as c}from"./file.js";const m=e.tuple([e.number(),e.number(),e.number(),e.number()]),r=e.object({t:n,score:e.number()}),t=e.number().nullable(),o=e.number().int().nonnegative();export const ReferenceSentenceSchema=e.object({index:o,start:n,end:n,words:e.tuple([e.number().int(),e.number().int()]),text:e.string(),punctuation:e.boolean(),pauseAfter:n.optional()}),ReferenceGapSchema=e.object({after:o,start:n,end:n,dur:n}),ReferenceBoundarySchema=e.object({t:n,cut:r.optional(),weak:r.optional(),pause:e.object({start:n,end:n,dur:n}).optional(),sentence:o.optional()}),ReferenceTextSchema=e.object({id:o,text:e.string(),box:m,height:e.number(),words:o,upper:e.number().min(0).max(1),start:n,end:n,spans:e.array(e.tuple([n,n])),seconds:n,seen:e.number().int().positive(),frames:e.number().min(0).max(1),spread:e.number().min(0).max(1),said:e.number().min(0).max(1)}),SectionNumbersSchema=e.object({start:n,end:n,dur:n,said:e.string(),words:o,wordsPerMinute:e.number().nonnegative(),cuts:e.array(n),shots:e.number().int().positive(),cutsPerMinute:e.number().nonnegative(),text:e.array(o),textSeconds:n}),ReferenceSegmentSchema=SectionNumbersSchema.extend({index:o,name:e.string(),sentences:e.tuple([e.number().int(),e.number().int()]).optional()}),ReferencePacingSchema=e.object({cutsPerMinute:e.number().nonnegative(),meanShot:n,medianShot:n,wordsPerMinute:e.number().nonnegative(),speakingRate:e.number().nonnegative(),timeToFirstWord:n.optional(),timeToFirstCut:n.optional(),textShare:e.number().min(0).max(1),speechShare:e.number().min(0).max(1),tempo:e.object({bpm:e.number().positive(),confidence:e.number().min(0),candidates:e.array(e.object({bpm:e.number(),r:e.number(),score:e.number()})).optional(),prior:e.number().optional()}).optional(),onsetsPerMinute:e.number().nonnegative()});const a=e.object({seconds:n,p10:e.number(),median:e.number(),p90:e.number()});export const ReferenceSoundSchema=e.object({gap:n,edge:n,voiced:e.number().min(0).max(100),whole:a,words:a.optional(),between:a.extend({voicedShare:e.number().min(0).max(1),onsetsPerMinute:e.number().nonnegative()}).optional(),floor:e.number()}),ReferencePictureSchema=e.object({params:e.record(e.string(),e.unknown()),frames:e.object({tone:o,color:o,motion:o}),luma:e.object({p1:t,p50:t,p99:t}),blackShare:t,noise:t,sharpness:t,saturation:t,warmth:t,motion:e.object({speed:e.object({p50:t,p90:t}),shake:e.object({p50:t,p90:t}),stillShare:t,runs:o}),sharpnessBySpeed:e.array(e.object({from:e.number(),to:t,frames:o,sharpness:t})),noiseByLuma:e.array(e.object({from:e.number(),to:e.number(),blocks:o,noise:t,median:t})),shake:e.array(e.object({start:n,end:n,rms:e.number(),peaks:e.array(e.object({hz:e.number(),share:e.number()})),flatness:e.number()}))});const i=e.object({frames:o,reach:e.array(e.object({drop:e.number(),hz:t})),rolloff95:t,rolloff99:t,steps:e.array(e.object({hz:e.number(),db:e.number()}))});export const ReferenceAudioSchema=e.object({loudness:e.object({integrated:t,range:t,truePeak:t}),recording:e.object({params:e.record(e.string(),e.unknown()),spectrum:e.array(e.object({hz:e.number(),db:e.number()})),dynamics:e.object({spread:e.number(),crest:e.number()})}).loose(),bandwidth:i.extend({params:e.record(e.string(),e.unknown())}),voice:i.optional()}),ReferenceSchema=e.object({version:e.literal(1),id:e.string(),source:e.object({file:e.string(),url:e.string().optional(),title:e.string().optional(),sha256:s}),analysedAt:e.string(),duration:n,width:e.number().int().positive(),height:e.number().int().positive(),fps:e.number().positive(),encoding:e.object({codec:e.string().optional(),bitrate:e.number().positive().optional(),audio:e.object({codec:e.string().optional(),profile:e.string().optional(),bitrate:e.number().positive().optional(),rate:e.number().positive().optional(),channels:e.number().int().positive().optional()}).optional()}).optional(),words:e.string().optional(),wordCount:o,asr:e.string().optional(),wordsMissing:e.object({code:e.string().optional(),message:e.string(),hint:e.string().optional(),instead:e.string()}).optional(),textMissing:e.object({code:e.string().optional(),message:e.string(),hint:e.string().optional(),instead:e.string()}).optional(),shots:e.object({threshold:e.number().min(0).max(1),minShot:e.number().nonnegative(),weakFloor:e.number().min(0).max(1),prominence:e.number().nonnegative(),cuts:e.array(r),weak:e.array(r),candidates:e.array(e.object({t:n,score:e.number(),source:e.enum(["jump","change"]),around:e.number(),passes:e.boolean()})).optional()}),speech:e.object({pause:n,sentences:e.array(ReferenceSentenceSchema),pauses:e.array(ReferenceGapSchema),gaps:e.array(ReferenceGapSchema).optional()}),boundaries:e.object({cutWithin:n,candidates:e.array(ReferenceBoundarySchema)}),ocr:e.object({engine:e.string(),frames:o,unread:o.optional(),samePlace:e.number(),saidWithin:n}),text:e.array(ReferenceTextSchema),pacing:ReferencePacingSchema,sound:ReferenceSoundSchema.optional(),segments:e.object({rule:e.string(),pause:n,cutWithin:n,minLength:n,list:e.array(ReferenceSegmentSchema).min(1)}),sheets:e.array(e.string()),picture:ReferencePictureSchema,audio:ReferenceAudioSchema.optional()}),REFERENCE_FILE="reference.json",INTERPRETATION_FILE="interpretation.json",InterpretedSectionSchema=e.strictObject({start:n,end:n,name:e.string().min(1).optional(),role:e.string().min(1).optional(),picture:e.string().optional(),onScreen:e.array(e.string()).optional(),notes:e.string().optional()}),InterpretationSchema=c({version:e.literal(1).default(1),summary:e.string().optional(),layout:e.string().optional(),hook:e.string().optional(),sections:e.array(InterpretedSectionSchema).min(1),captions:e.strictObject({lines:e.array(o).optional(),style:e.string().optional()}).optional(),watermarks:e.array(o).optional(),notes:e.string().optional(),labels:e.record(e.string(),e.union([e.string(),e.number(),e.boolean(),e.array(e.string())])).optional()});
|
|
@@ -31,6 +31,11 @@ export declare const ScriptSlideSchema: z.ZodObject<{
|
|
|
31
31
|
match: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
32
32
|
}, z.core.$strict>]>>;
|
|
33
33
|
}, z.core.$strict>;
|
|
34
|
+
/** An image's board in its script: the words of its layers by their names. */
|
|
35
|
+
export declare const ScriptBoardSchema: z.ZodObject<{
|
|
36
|
+
id: z.ZodString;
|
|
37
|
+
text: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<ScriptText, unknown, z.core.$ZodTypeInternals<ScriptText, unknown>>>>;
|
|
38
|
+
}, z.core.$strict>;
|
|
34
39
|
export declare const ScriptFileSchema: z.ZodObject<{
|
|
35
40
|
title: z.ZodOptional<z.ZodString>;
|
|
36
41
|
text: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<ScriptText, unknown, z.core.$ZodTypeInternals<ScriptText, unknown>>>>;
|
|
@@ -53,10 +58,10 @@ export declare const ScriptFileSchema: z.ZodObject<{
|
|
|
53
58
|
match: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
54
59
|
}, z.core.$strict>]>>;
|
|
55
60
|
}, z.core.$strict>>>;
|
|
61
|
+
boards: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
62
|
+
id: z.ZodString;
|
|
63
|
+
text: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<ScriptText, unknown, z.core.$ZodTypeInternals<ScriptText, unknown>>>>;
|
|
64
|
+
}, z.core.$strict>>>;
|
|
56
65
|
}, z.core.$strict>;
|
|
57
66
|
export type ScriptFile = z.infer<typeof ScriptFileSchema>;
|
|
58
|
-
/** The script of an item in a language. */
|
|
59
|
-
export declare const scriptFileFor: (dir: string, locale: string) => string;
|
|
60
|
-
/** The language a script file is in, or undefined for another file. */
|
|
61
|
-
export declare function scriptLocale(path: string): string | undefined;
|
|
62
67
|
//# sourceMappingURL=script.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 t}from"zod";import{SpokenSchema as
|
|
2
|
+
import{z as t}from"zod";import{SpokenSchema as p,VariantsSchema as i}from"./messages.js";export const SCRIPT_NAME=/^[A-Za-z0-9_-]+$/u;const a=t.string().regex(SCRIPT_NAME,"A name is letters, digits, _ and -.");export const ScriptTextSchema=t.lazy(()=>t.union([t.string(),p,i,t.array(ScriptTextSchema),t.record(a,ScriptTextSchema)])),ScriptPartSchema=t.strictObject({id:a,say:t.union([t.string(),i]).optional(),screen:t.record(a,ScriptTextSchema).optional()}),ScriptSlideSchema=t.strictObject({id:a,text:t.record(a,ScriptTextSchema).optional(),alt:t.record(a,t.string()).optional(),notes:t.union([t.string(),i]).optional()}),ScriptBoardSchema=t.strictObject({id:a,text:t.record(a,ScriptTextSchema).optional()}),ScriptFileSchema=t.strictObject({title:t.string().optional(),text:t.record(a,ScriptTextSchema).optional(),parts:t.array(ScriptPartSchema).default([]),slides:t.array(ScriptSlideSchema).default([]),boards:t.array(ScriptBoardSchema).default([])}).superRefine((o,r)=>{const d=new Set;o.parts.forEach((e,s)=>{d.has(e.id)&&r.addIssue({code:"custom",path:["parts",s,"id"],message:`Two parts are "${e.id}".`}),d.add(e.id)});const c=new Set;o.slides.forEach((e,s)=>{c.has(e.id)&&r.addIssue({code:"custom",path:["slides",s,"id"],message:`Two slides are "${e.id}".`}),c.add(e.id)});const n=new Set;o.boards.forEach((e,s)=>{n.has(e.id)&&r.addIssue({code:"custom",path:["boards",s,"id"],message:`Two boards are "${e.id}".`}),n.add(e.id)})});
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
/**
|
|
2
|
+
/** The name a new sheet's file is written as when none is asked (an import); a sheet's file may be named anything, the project's list naming it. */
|
|
3
3
|
export declare const SHEET_FILE = "sheet.yaml";
|
|
4
|
-
/** The folder beside it that holds its CSV files. */
|
|
5
|
-
export declare const SHEET_DATA = "data";
|
|
6
|
-
/** The code beside it that makes sheets. */
|
|
7
|
-
export declare const SHEET_CODE = "sheet.ts";
|
|
8
|
-
/** The folder beside it that holds the files its cells name. */
|
|
9
|
-
export declare const SHEET_FILES = "files";
|
|
10
4
|
/** What joins the choices of a cell, and the files of one, unless it says. */
|
|
11
5
|
export declare const SHEET_SEPARATOR = ", ";
|
|
12
6
|
/** How tall a `files` column draws a picture, in pixels, unless it says. */
|
|
@@ -181,6 +175,7 @@ declare const CellEntry: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber,
|
|
|
181
175
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
|
|
182
176
|
formula: z.ZodOptional<z.ZodString>;
|
|
183
177
|
name: z.ZodOptional<z.ZodString>;
|
|
178
|
+
start: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
|
|
184
179
|
}, z.core.$strict>]>;
|
|
185
180
|
export type SheetCell = z.output<typeof CellEntry>;
|
|
186
181
|
declare const FormatEntry: z.ZodObject<{
|
|
@@ -1604,12 +1599,12 @@ export declare const SHEET_VALIDATIONS: readonly ["whole", "decimal", "list", "d
|
|
|
1604
1599
|
declare const Validation: z.ZodObject<{
|
|
1605
1600
|
range: z.ZodString;
|
|
1606
1601
|
type: z.ZodEnum<{
|
|
1607
|
-
list: "list";
|
|
1608
1602
|
date: "date";
|
|
1609
1603
|
custom: "custom";
|
|
1604
|
+
list: "list";
|
|
1605
|
+
time: "time";
|
|
1610
1606
|
whole: "whole";
|
|
1611
1607
|
decimal: "decimal";
|
|
1612
|
-
time: "time";
|
|
1613
1608
|
textLength: "textLength";
|
|
1614
1609
|
}>;
|
|
1615
1610
|
operator: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1645,7 +1640,6 @@ declare const Validation: z.ZodObject<{
|
|
|
1645
1640
|
}, z.core.$strict>>;
|
|
1646
1641
|
}, z.core.$strict>;
|
|
1647
1642
|
export type SheetValidation = z.output<typeof Validation>;
|
|
1648
|
-
/** A chart's series: where its numbers are read from, and its look. */
|
|
1649
1643
|
declare const ChartSeries: z.ZodObject<{
|
|
1650
1644
|
values: z.ZodString;
|
|
1651
1645
|
x: z.ZodOptional<z.ZodString>;
|
|
@@ -1655,6 +1649,17 @@ declare const ChartSeries: z.ZodObject<{
|
|
|
1655
1649
|
smooth: z.ZodOptional<z.ZodBoolean>;
|
|
1656
1650
|
line_width: z.ZodOptional<z.ZodNumber>;
|
|
1657
1651
|
marker_size: z.ZodOptional<z.ZodNumber>;
|
|
1652
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1653
|
+
line: "line";
|
|
1654
|
+
"column-clustered": "column-clustered";
|
|
1655
|
+
"column-stacked": "column-stacked";
|
|
1656
|
+
"column-stacked-100": "column-stacked-100";
|
|
1657
|
+
"line-markers": "line-markers";
|
|
1658
|
+
area: "area";
|
|
1659
|
+
"area-stacked": "area-stacked";
|
|
1660
|
+
"area-stacked-100": "area-stacked-100";
|
|
1661
|
+
}>>;
|
|
1662
|
+
secondary: z.ZodOptional<z.ZodBoolean>;
|
|
1658
1663
|
}, z.core.$strict>;
|
|
1659
1664
|
export type SheetChartSeries = z.output<typeof ChartSeries>;
|
|
1660
1665
|
declare const ChartAxis: z.ZodObject<{
|
|
@@ -1704,6 +1709,17 @@ declare const Chart: z.ZodObject<{
|
|
|
1704
1709
|
smooth: z.ZodOptional<z.ZodBoolean>;
|
|
1705
1710
|
line_width: z.ZodOptional<z.ZodNumber>;
|
|
1706
1711
|
marker_size: z.ZodOptional<z.ZodNumber>;
|
|
1712
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
1713
|
+
line: "line";
|
|
1714
|
+
"column-clustered": "column-clustered";
|
|
1715
|
+
"column-stacked": "column-stacked";
|
|
1716
|
+
"column-stacked-100": "column-stacked-100";
|
|
1717
|
+
"line-markers": "line-markers";
|
|
1718
|
+
area: "area";
|
|
1719
|
+
"area-stacked": "area-stacked";
|
|
1720
|
+
"area-stacked-100": "area-stacked-100";
|
|
1721
|
+
}>>;
|
|
1722
|
+
secondary: z.ZodOptional<z.ZodBoolean>;
|
|
1707
1723
|
}, z.core.$strict>>;
|
|
1708
1724
|
legend: z.ZodOptional<z.ZodEnum<{
|
|
1709
1725
|
left: "left";
|
|
@@ -1768,6 +1784,16 @@ declare const Chart: z.ZodObject<{
|
|
|
1768
1784
|
format: z.ZodOptional<z.ZodString>;
|
|
1769
1785
|
reverse: z.ZodOptional<z.ZodBoolean>;
|
|
1770
1786
|
}, z.core.$strict>>;
|
|
1787
|
+
secondary_axis: z.ZodOptional<z.ZodObject<{
|
|
1788
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1789
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
1790
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
1791
|
+
major: z.ZodOptional<z.ZodNumber>;
|
|
1792
|
+
gridlines: z.ZodOptional<z.ZodBoolean>;
|
|
1793
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
1794
|
+
format: z.ZodOptional<z.ZodString>;
|
|
1795
|
+
reverse: z.ZodOptional<z.ZodBoolean>;
|
|
1796
|
+
}, z.core.$strict>>;
|
|
1771
1797
|
size: z.ZodOptional<z.ZodNumber>;
|
|
1772
1798
|
title_size: z.ZodOptional<z.ZodNumber>;
|
|
1773
1799
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -2457,6 +2483,7 @@ declare const Worksheet: z.ZodObject<{
|
|
|
2457
2483
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
|
|
2458
2484
|
formula: z.ZodOptional<z.ZodString>;
|
|
2459
2485
|
name: z.ZodOptional<z.ZodString>;
|
|
2486
|
+
start: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
|
|
2460
2487
|
}, z.core.$strict>]>>>;
|
|
2461
2488
|
format: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2462
2489
|
format: z.ZodOptional<z.ZodString>;
|
|
@@ -3248,12 +3275,12 @@ declare const Worksheet: z.ZodObject<{
|
|
|
3248
3275
|
validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3249
3276
|
range: z.ZodString;
|
|
3250
3277
|
type: z.ZodEnum<{
|
|
3251
|
-
list: "list";
|
|
3252
3278
|
date: "date";
|
|
3253
3279
|
custom: "custom";
|
|
3280
|
+
list: "list";
|
|
3281
|
+
time: "time";
|
|
3254
3282
|
whole: "whole";
|
|
3255
3283
|
decimal: "decimal";
|
|
3256
|
-
time: "time";
|
|
3257
3284
|
textLength: "textLength";
|
|
3258
3285
|
}>;
|
|
3259
3286
|
operator: z.ZodOptional<z.ZodEnum<{
|
|
@@ -3323,6 +3350,17 @@ declare const Worksheet: z.ZodObject<{
|
|
|
3323
3350
|
smooth: z.ZodOptional<z.ZodBoolean>;
|
|
3324
3351
|
line_width: z.ZodOptional<z.ZodNumber>;
|
|
3325
3352
|
marker_size: z.ZodOptional<z.ZodNumber>;
|
|
3353
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
3354
|
+
line: "line";
|
|
3355
|
+
"column-clustered": "column-clustered";
|
|
3356
|
+
"column-stacked": "column-stacked";
|
|
3357
|
+
"column-stacked-100": "column-stacked-100";
|
|
3358
|
+
"line-markers": "line-markers";
|
|
3359
|
+
area: "area";
|
|
3360
|
+
"area-stacked": "area-stacked";
|
|
3361
|
+
"area-stacked-100": "area-stacked-100";
|
|
3362
|
+
}>>;
|
|
3363
|
+
secondary: z.ZodOptional<z.ZodBoolean>;
|
|
3326
3364
|
}, z.core.$strict>>;
|
|
3327
3365
|
legend: z.ZodOptional<z.ZodEnum<{
|
|
3328
3366
|
left: "left";
|
|
@@ -3387,6 +3425,16 @@ declare const Worksheet: z.ZodObject<{
|
|
|
3387
3425
|
format: z.ZodOptional<z.ZodString>;
|
|
3388
3426
|
reverse: z.ZodOptional<z.ZodBoolean>;
|
|
3389
3427
|
}, z.core.$strict>>;
|
|
3428
|
+
secondary_axis: z.ZodOptional<z.ZodObject<{
|
|
3429
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3430
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
3431
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
3432
|
+
major: z.ZodOptional<z.ZodNumber>;
|
|
3433
|
+
gridlines: z.ZodOptional<z.ZodBoolean>;
|
|
3434
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
3435
|
+
format: z.ZodOptional<z.ZodString>;
|
|
3436
|
+
reverse: z.ZodOptional<z.ZodBoolean>;
|
|
3437
|
+
}, z.core.$strict>>;
|
|
3390
3438
|
size: z.ZodOptional<z.ZodNumber>;
|
|
3391
3439
|
title_size: z.ZodOptional<z.ZodNumber>;
|
|
3392
3440
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -3462,9 +3510,16 @@ declare const Check: z.ZodObject<{
|
|
|
3462
3510
|
formula: z.ZodString;
|
|
3463
3511
|
}, z.core.$strict>;
|
|
3464
3512
|
export type SheetCheck = z.output<typeof Check>;
|
|
3465
|
-
/**
|
|
3513
|
+
/** Excel's iterative calculation: `true`, or its limits. */
|
|
3514
|
+
declare const Iteration: z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodObject<{
|
|
3515
|
+
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
3516
|
+
max_change: z.ZodOptional<z.ZodNumber>;
|
|
3517
|
+
}, z.core.$strict>]>;
|
|
3518
|
+
export type SheetIteration = z.output<typeof Iteration>;
|
|
3519
|
+
/** A sheet's file. */
|
|
3466
3520
|
export declare const SheetFileSchema: z.ZodObject<{
|
|
3467
3521
|
title: z.ZodOptional<z.ZodString>;
|
|
3522
|
+
code: z.ZodOptional<z.ZodString>;
|
|
3468
3523
|
names: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>>;
|
|
3469
3524
|
hidden_names: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3470
3525
|
sheets: z.ZodArray<z.ZodObject<{
|
|
@@ -4056,6 +4111,7 @@ export declare const SheetFileSchema: z.ZodObject<{
|
|
|
4056
4111
|
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
|
|
4057
4112
|
formula: z.ZodOptional<z.ZodString>;
|
|
4058
4113
|
name: z.ZodOptional<z.ZodString>;
|
|
4114
|
+
start: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>;
|
|
4059
4115
|
}, z.core.$strict>]>>>;
|
|
4060
4116
|
format: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4061
4117
|
format: z.ZodOptional<z.ZodString>;
|
|
@@ -4847,12 +4903,12 @@ export declare const SheetFileSchema: z.ZodObject<{
|
|
|
4847
4903
|
validations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4848
4904
|
range: z.ZodString;
|
|
4849
4905
|
type: z.ZodEnum<{
|
|
4850
|
-
list: "list";
|
|
4851
4906
|
date: "date";
|
|
4852
4907
|
custom: "custom";
|
|
4908
|
+
list: "list";
|
|
4909
|
+
time: "time";
|
|
4853
4910
|
whole: "whole";
|
|
4854
4911
|
decimal: "decimal";
|
|
4855
|
-
time: "time";
|
|
4856
4912
|
textLength: "textLength";
|
|
4857
4913
|
}>;
|
|
4858
4914
|
operator: z.ZodOptional<z.ZodEnum<{
|
|
@@ -4922,6 +4978,17 @@ export declare const SheetFileSchema: z.ZodObject<{
|
|
|
4922
4978
|
smooth: z.ZodOptional<z.ZodBoolean>;
|
|
4923
4979
|
line_width: z.ZodOptional<z.ZodNumber>;
|
|
4924
4980
|
marker_size: z.ZodOptional<z.ZodNumber>;
|
|
4981
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
4982
|
+
line: "line";
|
|
4983
|
+
"column-clustered": "column-clustered";
|
|
4984
|
+
"column-stacked": "column-stacked";
|
|
4985
|
+
"column-stacked-100": "column-stacked-100";
|
|
4986
|
+
"line-markers": "line-markers";
|
|
4987
|
+
area: "area";
|
|
4988
|
+
"area-stacked": "area-stacked";
|
|
4989
|
+
"area-stacked-100": "area-stacked-100";
|
|
4990
|
+
}>>;
|
|
4991
|
+
secondary: z.ZodOptional<z.ZodBoolean>;
|
|
4925
4992
|
}, z.core.$strict>>;
|
|
4926
4993
|
legend: z.ZodOptional<z.ZodEnum<{
|
|
4927
4994
|
left: "left";
|
|
@@ -4986,6 +5053,16 @@ export declare const SheetFileSchema: z.ZodObject<{
|
|
|
4986
5053
|
format: z.ZodOptional<z.ZodString>;
|
|
4987
5054
|
reverse: z.ZodOptional<z.ZodBoolean>;
|
|
4988
5055
|
}, z.core.$strict>>;
|
|
5056
|
+
secondary_axis: z.ZodOptional<z.ZodObject<{
|
|
5057
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5058
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
5059
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
5060
|
+
major: z.ZodOptional<z.ZodNumber>;
|
|
5061
|
+
gridlines: z.ZodOptional<z.ZodBoolean>;
|
|
5062
|
+
visible: z.ZodOptional<z.ZodBoolean>;
|
|
5063
|
+
format: z.ZodOptional<z.ZodString>;
|
|
5064
|
+
reverse: z.ZodOptional<z.ZodBoolean>;
|
|
5065
|
+
}, z.core.$strict>>;
|
|
4989
5066
|
size: z.ZodOptional<z.ZodNumber>;
|
|
4990
5067
|
title_size: z.ZodOptional<z.ZodNumber>;
|
|
4991
5068
|
color: z.ZodOptional<z.ZodString>;
|
|
@@ -5060,79 +5137,26 @@ export declare const SheetFileSchema: z.ZodObject<{
|
|
|
5060
5137
|
formula: z.ZodString;
|
|
5061
5138
|
}, z.core.$strict>>>;
|
|
5062
5139
|
scenarios: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodBoolean, z.ZodString, z.ZodNull]>>>>;
|
|
5140
|
+
iteration: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<true>, z.ZodObject<{
|
|
5141
|
+
max_iterations: z.ZodOptional<z.ZodNumber>;
|
|
5142
|
+
max_change: z.ZodOptional<z.ZodNumber>;
|
|
5143
|
+
}, z.core.$strict>]>>;
|
|
5063
5144
|
}, z.core.$strict>;
|
|
5064
5145
|
export type SheetFile = z.output<typeof SheetFileSchema>;
|
|
5065
|
-
/** What
|
|
5066
|
-
export interface
|
|
5067
|
-
/**
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
};
|
|
5076
|
-
/** Numbers written into a formula. */
|
|
5077
|
-
"sheet-number": {
|
|
5078
|
-
sheet: string;
|
|
5079
|
-
/** The cell its formula is written for. */
|
|
5080
|
-
cell: string;
|
|
5081
|
-
/** How many cells hold this formula. */
|
|
5082
|
-
cells: number;
|
|
5083
|
-
formula: string;
|
|
5084
|
-
/** Each number, and the operator or function it is given to. */
|
|
5085
|
-
numbers: {
|
|
5086
|
-
value: number;
|
|
5087
|
-
in: string;
|
|
5088
|
-
}[];
|
|
5089
|
-
};
|
|
5090
|
-
/** A cell between neighbours that agree, unlike them. */
|
|
5091
|
-
"sheet-unlike": {
|
|
5092
|
-
sheet: string;
|
|
5093
|
-
cell: string;
|
|
5094
|
-
/** What it holds: its formula, or its value. */
|
|
5095
|
-
holds: string;
|
|
5096
|
-
/** What the neighbours hold, as the first of them reads. */
|
|
5097
|
-
neighbour: string;
|
|
5098
|
-
along: "column" | "row";
|
|
5099
|
-
/** How many cells together read alike either side. */
|
|
5100
|
-
run: number;
|
|
5101
|
-
};
|
|
5102
|
-
/** A cell of a calculated column set apart from its formula. */
|
|
5103
|
-
"sheet-exception": {
|
|
5104
|
-
sheet: string;
|
|
5105
|
-
table: string;
|
|
5106
|
-
column: string;
|
|
5107
|
-
cell: string;
|
|
5108
|
-
text: string;
|
|
5109
|
-
};
|
|
5110
|
-
/** An input nothing reads. */
|
|
5111
|
-
"sheet-unused": {
|
|
5112
|
-
/** A defined name, a typed cell, or a table's column (with --all). */
|
|
5113
|
-
what: "name" | "cell" | "column";
|
|
5114
|
-
name: string;
|
|
5115
|
-
sheet?: string;
|
|
5116
|
-
value?: string;
|
|
5117
|
-
};
|
|
5118
|
-
/** A cell that breaks its data validation. */
|
|
5119
|
-
"sheet-invalid": {
|
|
5120
|
-
sheet: string;
|
|
5121
|
-
cell: string;
|
|
5122
|
-
value: string | number | boolean | null;
|
|
5123
|
-
rule: string;
|
|
5124
|
-
range: string;
|
|
5125
|
-
};
|
|
5126
|
-
/** A number sheet.ts typed that neither its data nor its code holds: what it computed, where a formula should. */
|
|
5127
|
-
"sheet-typed": {
|
|
5146
|
+
/** What a sheet's code makes, beside what its file holds: sheets as sheet.yaml would hold them, with their tables' rows as CSV text, and names. */
|
|
5147
|
+
export interface GeneratedSheets {
|
|
5148
|
+
/** The sheets it makes, in the order it made them, as sheet.yaml would hold them. */
|
|
5149
|
+
sheets: SheetWorksheet[];
|
|
5150
|
+
/** Names it defines. */
|
|
5151
|
+
names?: NonNullable<SheetFile["names"]>;
|
|
5152
|
+
/** Its tables' and blocks' rows, as CSV text, by the paths its sheets name. */
|
|
5153
|
+
csv: Record<string, string>;
|
|
5154
|
+
/** Numbers it typed that neither its data nor its code holds. */
|
|
5155
|
+
typed?: {
|
|
5128
5156
|
sheet: string;
|
|
5129
5157
|
cell: string;
|
|
5130
5158
|
value: number;
|
|
5131
|
-
};
|
|
5132
|
-
/** A sheet sheet.ts makes and sheet.yaml holds too: sheet.yaml's stands. */
|
|
5133
|
-
"sheet-ordinary": {
|
|
5134
|
-
sheet: string;
|
|
5135
|
-
};
|
|
5159
|
+
}[];
|
|
5136
5160
|
}
|
|
5137
5161
|
export {};
|
|
5138
5162
|
//# sourceMappingURL=sheet.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 t}from"zod";import{CHART_LEGEND_POSITIONS as h,ChartSchema as e,SHEET_CHART_TYPES as y}from"./slides.js";export const SHEET_FILE="sheet.yaml",SHEET_DATA="data",SHEET_CODE="sheet.ts",SHEET_FILES="files",SHEET_SEPARATOR=", ",SHEET_PICTURE_HEIGHT=60;const o=t.string().regex(/^#[0-9a-fA-F]{6}$/u,"A colour is #RRGGBB.");export const SHEET_ALIGNS=["general","left","center","right","fill","justify","centerContinuous","distributed"],SHEET_VALIGNS=["top","center","bottom","justify","distributed"],SHEET_UNDERLINES=["single","double","singleAccounting","doubleAccounting"],SHEET_BORDERS=["none","thin","medium","thick","double","hair","dotted","dashed","dashDot","dashDotDot","mediumDashed","mediumDashDot","mediumDashDotDot","slantDashDot"],SHEET_PATTERNS=["solid","darkDown","darkGray","darkGrid","darkHorizontal","darkTrellis","darkUp","darkVertical","gray0625","gray125","lightDown","lightGray","lightGrid","lightHorizontal","lightTrellis","lightUp","lightVertical","mediumGray"];const l=t.strictObject({style:t.enum(SHEET_BORDERS),color:o.optional()}),m={bold:t.boolean().optional(),italic:t.boolean().optional(),underline:t.union([t.boolean(),t.enum(SHEET_UNDERLINES)]).optional(),strike:t.boolean().optional(),font:t.string().min(1).optional(),size:t.number().positive().optional(),color:o.optional(),fill:t.union([o,t.strictObject({pattern:t.enum(SHEET_PATTERNS),color:o.optional(),background:o.optional()})]).optional(),align:t.enum(SHEET_ALIGNS).optional(),valign:t.enum(SHEET_VALIGNS).optional(),wrap:t.boolean().optional(),shrink:t.boolean().optional(),indent:t.number().int().min(0).optional(),rotation:t.number().int().min(-90).max(180).optional(),border:t.strictObject({left:l.optional(),right:l.optional(),top:l.optional(),bottom:l.optional()}).optional()},a={...m,format:t.string().min(1).optional()},r=t.union([t.number(),t.boolean(),t.string(),t.null()]),E=t.strictObject({value:r.optional(),formula:t.string().min(1).optional(),name:t.string().min(1).optional(),...a}).refine(c=>c.value===void 0||c.formula===void 0,{message:"A cell has a value or a formula, not both."}),O=t.union([r,E]),f=t.strictObject({range:t.string().min(1),...a}),b=t.union([t.literal(!0),t.strictObject({separator:t.string().min(1).optional(),height:t.number().positive().optional()})]),S=t.strictObject({formula:t.string().min(1).optional(),...a,width:t.number().positive().optional(),files:b.optional()}),u=t.strictObject({values:t.array(t.string()).optional(),blanks:t.boolean().optional()}),x=t.strictObject({name:t.string().min(1),at:t.string().min(1),rows:t.string().min(1),key:t.string().min(1).optional(),style:t.string().min(1).optional(),columns:t.record(t.string(),S).optional(),filter:t.union([t.literal(!1),t.strictObject({columns:t.record(t.string(),u)})]).optional()}),j=t.strictObject({at:t.string().min(1),rows:t.string().min(1)}),T=t.strictObject({width:t.number().positive().optional(),hidden:t.boolean().optional(),level:t.number().int().min(1).max(7).optional(),...a,files:b.optional()}),_=t.strictObject({height:t.number().positive().optional(),hidden:t.boolean().optional(),level:t.number().int().min(1).max(7).optional(),...a}),v=t.strictObject({range:t.string().min(1),columns:t.record(t.string(),u).optional()});export const SHEET_OPERATORS=["between","notBetween","equal","notEqual","greaterThan","lessThan","greaterThanOrEqual","lessThanOrEqual"];const p=t.union([t.number(),t.string()]),i={bold:t.boolean().optional(),italic:t.boolean().optional(),underline:t.boolean().optional(),strike:t.boolean().optional(),color:o.optional(),fill:o.optional(),border:m.border},n={range:t.string().min(1),stop:t.boolean().optional()},s=t.strictObject({at:t.enum(["min","max","num","percent","percentile","formula"]),value:p.optional()});export const SHEET_ICONS=["3Arrows","3ArrowsGray","3Flags","3TrafficLights1","3TrafficLights2","3Signs","3Symbols","3Symbols2","4Arrows","4ArrowsGray","4RedToBlack","4Rating","4TrafficLights","5Arrows","5ArrowsGray","5Rating","5Quarters"];const w=t.discriminatedUnion("type",[t.strictObject({...n,...i,type:t.literal("cellIs"),operator:t.enum(SHEET_OPERATORS),formula:t.array(p).min(1).max(2)}),t.strictObject({...n,...i,type:t.literal("containsText"),operator:t.enum(["contains","notContains","beginsWith","endsWith"]).optional(),text:t.string()}),t.strictObject({...n,...i,type:t.enum(["duplicateValues","uniqueValues"])}),t.strictObject({...n,...i,type:t.literal("top10"),rank:t.number().int().positive(),percent:t.boolean().optional(),bottom:t.boolean().optional()}),t.strictObject({...n,...i,type:t.literal("aboveAverage"),below:t.boolean().optional(),equal:t.boolean().optional()}),t.strictObject({...n,...i,type:t.literal("expression"),formula:t.string().min(1)}),t.strictObject({...n,type:t.literal("dataBar"),color:o,min:s.optional(),max:s.optional(),show:t.boolean().optional()}),t.strictObject({...n,type:t.literal("colorScale"),stops:t.array(t.strictObject({...s.shape,color:o})).min(2).max(3)}),t.strictObject({...n,type:t.literal("iconSet"),icons:t.enum(SHEET_ICONS),stops:t.array(s).min(3).max(5).optional(),reverse:t.boolean().optional(),show:t.boolean().optional()})]);export const SHEET_VALIDATIONS=["whole","decimal","list","date","time","textLength","custom"];const A=t.strictObject({range:t.string().min(1),type:t.enum(SHEET_VALIDATIONS),operator:t.enum(SHEET_OPERATORS).optional(),formula:t.array(p).max(2).optional(),values:t.array(t.string()).optional(),multiple:t.boolean().optional(),separator:t.string().min(1).optional(),blank:t.boolean().optional(),dropdown:t.boolean().optional(),prompt:t.strictObject({title:t.string().optional(),message:t.string().optional(),show:t.boolean().optional()}).optional(),error:t.strictObject({style:t.enum(["stop","warning","information"]).optional(),title:t.string().optional(),message:t.string().optional(),show:t.boolean().optional()}).optional()}),k=t.strictObject({values:t.string().min(1),x:t.string().min(1).optional(),name:t.string().optional(),color:o.optional(),format:t.string().min(1).optional(),smooth:t.boolean().optional(),line_width:t.number().positive().optional(),marker_size:t.number().int().min(2).max(72).optional()}),g=t.strictObject({title:t.string().optional(),min:t.number().optional(),max:t.number().optional(),major:t.number().positive().optional(),gridlines:t.boolean().optional(),visible:t.boolean().optional(),format:t.string().min(1).optional(),reverse:t.boolean().optional()}),H=t.strictObject({type:t.enum(y),at:t.string().min(1),x:t.number().min(0).optional(),y:t.number().min(0).optional(),width:t.number().positive().optional(),height:t.number().positive().optional(),title:t.string().optional(),categories:t.string().min(1).optional(),series:t.array(k).min(1),legend:t.enum(h).optional(),labels:e.shape.labels,gap_width:e.shape.gap_width,overlap:e.shape.overlap,vary_by_categories:e.shape.vary_by_categories,hole_size:e.shape.hole_size,value_axis:g.optional(),category_axis:g.optional(),size:t.number().positive().optional(),title_size:t.number().positive().optional(),color:o.optional()});export const SHEET_PAPERS={letter:1,tabloid:3,ledger:4,legal:5,executive:7,a3:8,a4:9,a5:11,b4:12,b5:13},SHEET_MARGINS={left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},SHEET_NOTE_AUTHOR="AllyHub";const d=t.strictObject({left:t.string().optional(),center:t.string().optional(),right:t.string().optional()}),R=t.strictObject({area:t.string().min(1).optional(),title_rows:t.string().regex(/^\d+:\d+$/u).optional(),title_cols:t.string().regex(/^[A-Za-z]+:[A-Za-z]+$/u).optional(),orientation:t.enum(["portrait","landscape"]).optional(),paper:t.enum(Object.keys(SHEET_PAPERS)).optional(),fit:t.strictObject({width:t.number().int().min(0).optional(),height:t.number().int().min(0).optional()}).optional(),scale:t.number().int().min(10).max(400).optional(),breaks:t.strictObject({rows:t.array(t.number().int().min(2)).optional(),cols:t.array(t.string().regex(/^[A-Za-z]+$/u)).optional()}).optional(),margins:t.strictObject({left:t.number().min(0).optional(),right:t.number().min(0).optional(),top:t.number().min(0).optional(),bottom:t.number().min(0).optional(),header:t.number().min(0).optional(),footer:t.number().min(0).optional()}).optional(),header:d.optional(),footer:d.optional()}),C=t.strictObject({file:t.string().min(1),at:t.string().min(1),x:t.number().min(0).optional(),y:t.number().min(0).optional(),width:t.number().positive().optional(),height:t.number().positive().optional()}),D=t.union([t.string().min(1),t.strictObject({text:t.string().min(1),author:t.string().optional()})]),G=t.strictObject({name:t.string().min(1),hidden:t.boolean().optional(),gridlines:t.boolean().optional(),tab:o.optional(),freeze:t.string().min(1).optional(),tables:t.array(x).optional(),columns:t.record(t.string(),T).optional(),rows:t.record(t.string(),_).optional(),cells:t.record(t.string(),O).optional(),format:t.array(f).optional(),merges:t.array(t.string().min(1)).optional(),blocks:t.array(j).optional(),filter:v.optional(),conditional:t.array(w).optional(),validations:t.array(A).optional(),charts:t.array(H).optional(),pictures:t.array(C).optional(),links:t.record(t.string(),t.string().min(1)).optional(),notes:t.record(t.string(),D).optional(),print:R.optional(),protect:t.boolean().optional(),names:t.record(t.string(),r).optional(),hidden_names:t.array(t.string().min(1)).optional()}),I=t.strictObject({name:t.string().min(1),formula:t.string().min(1)});export const SheetFileSchema=t.strictObject({title:t.string().optional(),names:t.record(t.string(),r).optional(),hidden_names:t.array(t.string().min(1)).optional(),sheets:t.array(G).min(1),checks:t.array(I).optional(),scenarios:t.record(t.string(),t.record(t.string(),r)).optional()});
|
|
2
|
+
import{z as t}from"zod";import{CHART_LEGEND_POSITIONS as h,ChartSchema as r,SHEET_CHART_TYPES as y}from"./slides.js";export const SHEET_FILE="sheet.yaml",SHEET_SEPARATOR=", ",SHEET_PICTURE_HEIGHT=60;const o=t.string().regex(/^#[0-9a-fA-F]{6}$/u,"A colour is #RRGGBB.");export const SHEET_ALIGNS=["general","left","center","right","fill","justify","centerContinuous","distributed"],SHEET_VALIGNS=["top","center","bottom","justify","distributed"],SHEET_UNDERLINES=["single","double","singleAccounting","doubleAccounting"],SHEET_BORDERS=["none","thin","medium","thick","double","hair","dotted","dashed","dashDot","dashDotDot","mediumDashed","mediumDashDot","mediumDashDotDot","slantDashDot"],SHEET_PATTERNS=["solid","darkDown","darkGray","darkGrid","darkHorizontal","darkTrellis","darkUp","darkVertical","gray0625","gray125","lightDown","lightGray","lightGrid","lightHorizontal","lightTrellis","lightUp","lightVertical","mediumGray"];const s=t.strictObject({style:t.enum(SHEET_BORDERS),color:o.optional()}),b={bold:t.boolean().optional(),italic:t.boolean().optional(),underline:t.union([t.boolean(),t.enum(SHEET_UNDERLINES)]).optional(),strike:t.boolean().optional(),font:t.string().min(1).optional(),size:t.number().positive().optional(),color:o.optional(),fill:t.union([o,t.strictObject({pattern:t.enum(SHEET_PATTERNS),color:o.optional(),background:o.optional()})]).optional(),align:t.enum(SHEET_ALIGNS).optional(),valign:t.enum(SHEET_VALIGNS).optional(),wrap:t.boolean().optional(),shrink:t.boolean().optional(),indent:t.number().int().min(0).optional(),rotation:t.number().int().min(-90).max(180).optional(),border:t.strictObject({left:s.optional(),right:s.optional(),top:s.optional(),bottom:s.optional()}).optional()},l={...b,format:t.string().min(1).optional()},i=t.union([t.number(),t.boolean(),t.string(),t.null()]),O=t.strictObject({value:i.optional(),formula:t.string().min(1).optional(),name:t.string().min(1).optional(),start:i.optional(),...l}).refine(a=>a.value===void 0||a.formula===void 0,{message:"A cell has a value or a formula, not both."}).refine(a=>a.start===void 0||a.formula!==void 0,{message:"A cell's start is a formula's."}),E=t.union([i,O]),f=t.strictObject({range:t.string().min(1),...l}),u=t.union([t.literal(!0),t.strictObject({separator:t.string().min(1).optional(),height:t.number().positive().optional()})]),x=t.strictObject({formula:t.string().min(1).optional(),...l,width:t.number().positive().optional(),files:u.optional()}),g=t.strictObject({values:t.array(t.string()).optional(),blanks:t.boolean().optional()}),j=t.strictObject({name:t.string().min(1),at:t.string().min(1),rows:t.string().min(1),key:t.string().min(1).optional(),style:t.string().min(1).optional(),columns:t.record(t.string(),x).optional(),filter:t.union([t.literal(!1),t.strictObject({columns:t.record(t.string(),g)})]).optional()}),S=t.strictObject({at:t.string().min(1),rows:t.string().min(1)}),T=t.strictObject({width:t.number().positive().optional(),hidden:t.boolean().optional(),level:t.number().int().min(1).max(7).optional(),...l,files:u.optional()}),_=t.strictObject({height:t.number().positive().optional(),hidden:t.boolean().optional(),level:t.number().int().min(1).max(7).optional(),...l}),v=t.strictObject({range:t.string().min(1),columns:t.record(t.string(),g).optional()});export const SHEET_OPERATORS=["between","notBetween","equal","notEqual","greaterThan","lessThan","greaterThanOrEqual","lessThanOrEqual"];const c=t.union([t.number(),t.string()]),e={bold:t.boolean().optional(),italic:t.boolean().optional(),underline:t.boolean().optional(),strike:t.boolean().optional(),color:o.optional(),fill:o.optional(),border:b.border},n={range:t.string().min(1),stop:t.boolean().optional()},p=t.strictObject({at:t.enum(["min","max","num","percent","percentile","formula"]),value:c.optional()});export const SHEET_ICONS=["3Arrows","3ArrowsGray","3Flags","3TrafficLights1","3TrafficLights2","3Signs","3Symbols","3Symbols2","4Arrows","4ArrowsGray","4RedToBlack","4Rating","4TrafficLights","5Arrows","5ArrowsGray","5Rating","5Quarters"];const k=t.discriminatedUnion("type",[t.strictObject({...n,...e,type:t.literal("cellIs"),operator:t.enum(SHEET_OPERATORS),formula:t.array(c).min(1).max(2)}),t.strictObject({...n,...e,type:t.literal("containsText"),operator:t.enum(["contains","notContains","beginsWith","endsWith"]).optional(),text:t.string()}),t.strictObject({...n,...e,type:t.enum(["duplicateValues","uniqueValues"])}),t.strictObject({...n,...e,type:t.literal("top10"),rank:t.number().int().positive(),percent:t.boolean().optional(),bottom:t.boolean().optional()}),t.strictObject({...n,...e,type:t.literal("aboveAverage"),below:t.boolean().optional(),equal:t.boolean().optional()}),t.strictObject({...n,...e,type:t.literal("expression"),formula:t.string().min(1)}),t.strictObject({...n,type:t.literal("dataBar"),color:o,min:p.optional(),max:p.optional(),show:t.boolean().optional()}),t.strictObject({...n,type:t.literal("colorScale"),stops:t.array(t.strictObject({...p.shape,color:o})).min(2).max(3)}),t.strictObject({...n,type:t.literal("iconSet"),icons:t.enum(SHEET_ICONS),stops:t.array(p).min(3).max(5).optional(),reverse:t.boolean().optional(),show:t.boolean().optional()})]);export const SHEET_VALIDATIONS=["whole","decimal","list","date","time","textLength","custom"];const w=t.strictObject({range:t.string().min(1),type:t.enum(SHEET_VALIDATIONS),operator:t.enum(SHEET_OPERATORS).optional(),formula:t.array(c).max(2).optional(),values:t.array(t.string()).optional(),multiple:t.boolean().optional(),separator:t.string().min(1).optional(),blank:t.boolean().optional(),dropdown:t.boolean().optional(),prompt:t.strictObject({title:t.string().optional(),message:t.string().optional(),show:t.boolean().optional()}).optional(),error:t.strictObject({style:t.enum(["stop","warning","information"]).optional(),title:t.string().optional(),message:t.string().optional(),show:t.boolean().optional()}).optional()}),A=["column-clustered","column-stacked","column-stacked-100","line","line-markers","area","area-stacked","area-stacked-100"],H=t.strictObject({values:t.string().min(1),x:t.string().min(1).optional(),name:t.string().optional(),color:o.optional(),format:t.string().min(1).optional(),smooth:t.boolean().optional(),line_width:t.number().positive().optional(),marker_size:t.number().int().min(2).max(72).optional(),type:t.enum(A).optional(),secondary:t.boolean().optional()}),m=t.strictObject({title:t.string().optional(),min:t.number().optional(),max:t.number().optional(),major:t.number().positive().optional(),gridlines:t.boolean().optional(),visible:t.boolean().optional(),format:t.string().min(1).optional(),reverse:t.boolean().optional()}),R=t.strictObject({type:t.enum(y),at:t.string().min(1),x:t.number().min(0).optional(),y:t.number().min(0).optional(),width:t.number().positive().optional(),height:t.number().positive().optional(),title:t.string().optional(),categories:t.string().min(1).optional(),series:t.array(H).min(1),legend:t.enum(h).optional(),labels:r.shape.labels,gap_width:r.shape.gap_width,overlap:r.shape.overlap,vary_by_categories:r.shape.vary_by_categories,hole_size:r.shape.hole_size,value_axis:m.optional(),category_axis:m.optional(),secondary_axis:m.optional(),size:t.number().positive().optional(),title_size:t.number().positive().optional(),color:o.optional()});export const SHEET_PAPERS={letter:1,tabloid:3,ledger:4,legal:5,executive:7,a3:8,a4:9,a5:11,b4:12,b5:13},SHEET_MARGINS={left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},SHEET_NOTE_AUTHOR="AllyHub";const d=t.strictObject({left:t.string().optional(),center:t.string().optional(),right:t.string().optional()}),C=t.strictObject({area:t.string().min(1).optional(),title_rows:t.string().regex(/^\d+:\d+$/u).optional(),title_cols:t.string().regex(/^[A-Za-z]+:[A-Za-z]+$/u).optional(),orientation:t.enum(["portrait","landscape"]).optional(),paper:t.enum(Object.keys(SHEET_PAPERS)).optional(),fit:t.strictObject({width:t.number().int().min(0).optional(),height:t.number().int().min(0).optional()}).optional(),scale:t.number().int().min(10).max(400).optional(),breaks:t.strictObject({rows:t.array(t.number().int().min(2)).optional(),cols:t.array(t.string().regex(/^[A-Za-z]+$/u)).optional()}).optional(),margins:t.strictObject({left:t.number().min(0).optional(),right:t.number().min(0).optional(),top:t.number().min(0).optional(),bottom:t.number().min(0).optional(),header:t.number().min(0).optional(),footer:t.number().min(0).optional()}).optional(),header:d.optional(),footer:d.optional()}),D=t.strictObject({file:t.string().min(1),at:t.string().min(1),x:t.number().min(0).optional(),y:t.number().min(0).optional(),width:t.number().positive().optional(),height:t.number().positive().optional()}),G=t.union([t.string().min(1),t.strictObject({text:t.string().min(1),author:t.string().optional()})]),I=t.strictObject({name:t.string().min(1),hidden:t.boolean().optional(),gridlines:t.boolean().optional(),tab:o.optional(),freeze:t.string().min(1).optional(),tables:t.array(j).optional(),columns:t.record(t.string(),T).optional(),rows:t.record(t.string(),_).optional(),cells:t.record(t.string(),E).optional(),format:t.array(f).optional(),merges:t.array(t.string().min(1)).optional(),blocks:t.array(S).optional(),filter:v.optional(),conditional:t.array(k).optional(),validations:t.array(w).optional(),charts:t.array(R).optional(),pictures:t.array(D).optional(),links:t.record(t.string(),t.string().min(1)).optional(),notes:t.record(t.string(),G).optional(),print:C.optional(),protect:t.boolean().optional(),names:t.record(t.string(),i).optional(),hidden_names:t.array(t.string().min(1)).optional()}),z=t.strictObject({name:t.string().min(1),formula:t.string().min(1)}),L=t.union([t.literal(!0),t.strictObject({max_iterations:t.number().int().min(1).max(32767).optional(),max_change:t.number().min(0).optional()})]);export const SheetFileSchema=t.strictObject({title:t.string().optional(),code:t.string().min(1).optional(),names:t.record(t.string(),i).optional(),hidden_names:t.array(t.string().min(1)).optional(),sheets:t.array(I).min(1),checks:t.array(z).optional(),scenarios:t.record(t.string(),t.record(t.string(),i)).optional(),iteration:L.optional()});
|