@allyhub/sdk 0.1.0-alpha.8 → 0.2.0-next.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/LICENSE.md +241 -0
- package/NOTICE +85 -0
- package/client.d.ts +45 -1
- package/dist/anim.js +2 -75
- package/dist/define.d.ts +10 -4
- package/dist/define.js +2 -95
- package/dist/dom.d.ts +1 -1
- package/dist/dom.js +2 -457
- package/dist/fit.js +2 -60
- package/dist/free.d.ts +18 -0
- package/dist/free.js +2 -0
- package/dist/index.d.ts +28 -13
- package/dist/index.js +2 -11
- package/dist/input.d.ts +306 -0
- package/dist/input.js +2 -0
- package/dist/media.d.ts +3 -6
- package/dist/media.js +2 -27
- package/dist/messages.d.ts +3 -2
- package/dist/messages.js +2 -2
- package/dist/module.d.ts +24 -0
- package/dist/module.js +2 -0
- package/dist/noise.js +2 -233
- package/dist/parts.d.ts +98 -22
- package/dist/parts.js +2 -414
- package/dist/paths.d.ts +1 -1
- package/dist/paths.js +2 -720
- package/dist/phone.d.ts +26 -0
- package/dist/phone.js +2 -0
- package/dist/piece.d.ts +106 -35
- package/dist/piece.js +2 -38
- package/dist/props.d.ts +1 -1
- package/dist/props.js +2 -35
- package/dist/scenery.d.ts +2 -0
- package/dist/scenery.js +2 -0
- package/dist/text.js +2 -38
- package/dist/written.d.ts +12 -0
- package/dist/written.js +2 -0
- package/docs/README.md +18 -0
- package/docs/batches.md +148 -0
- package/docs/contract.md +51 -0
- package/docs/defaults.md +703 -0
- package/docs/docs.md +148 -0
- package/docs/footage.md +249 -0
- package/docs/layers.md +317 -0
- package/docs/modeling.md +143 -0
- package/docs/project.md +265 -0
- package/docs/scenery.md +308 -0
- package/docs/sheets.md +119 -0
- package/docs/slides.md +111 -0
- package/docs/sound.md +170 -0
- package/docs/speech.md +289 -0
- package/docs/video.md +265 -0
- package/node_modules/@allyhub-next/audio/LICENSE +241 -0
- package/node_modules/@allyhub-next/audio/dist/at-cut.d.ts +52 -0
- package/node_modules/@allyhub-next/audio/dist/at-cut.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/decode.d.ts +33 -0
- package/node_modules/@allyhub-next/audio/dist/decode.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/envelope.d.ts +37 -0
- package/node_modules/@allyhub-next/audio/dist/envelope.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/index.d.ts +17 -0
- package/node_modules/@allyhub-next/audio/dist/index.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/levels.d.ts +97 -0
- package/node_modules/@allyhub-next/audio/dist/levels.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/master.d.ts +29 -0
- package/node_modules/@allyhub-next/audio/dist/master.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/music.d.ts +11 -0
- package/node_modules/@allyhub-next/audio/dist/music.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/node/decode.d.ts +39 -0
- package/node_modules/@allyhub-next/audio/dist/node/decode.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/node/ebur128.d.ts +25 -0
- package/node_modules/@allyhub-next/audio/dist/node/ebur128.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/node/ffmpeg.d.ts +31 -0
- package/node_modules/@allyhub-next/audio/dist/node/ffmpeg.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/node/index.d.ts +8 -0
- package/node_modules/@allyhub-next/audio/dist/node/index.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/node/loudness.d.ts +18 -0
- package/node_modules/@allyhub-next/audio/dist/node/loudness.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/node/master.d.ts +42 -0
- package/node_modules/@allyhub-next/audio/dist/node/master.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/node/measure.d.ts +60 -0
- package/node_modules/@allyhub-next/audio/dist/node/measure.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/node/mix.d.ts +31 -0
- package/node_modules/@allyhub-next/audio/dist/node/mix.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/plan.d.ts +143 -0
- package/node_modules/@allyhub-next/audio/dist/plan.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recorded.d.ts +26 -0
- package/node_modules/@allyhub-next/audio/dist/recorded.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/bandwidth.d.ts +47 -0
- package/node_modules/@allyhub-next/audio/dist/recording/bandwidth.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/chain.d.ts +89 -0
- package/node_modules/@allyhub-next/audio/dist/recording/chain.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/dynamics.d.ts +64 -0
- package/node_modules/@allyhub-next/audio/dist/recording/dynamics.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/fft.d.ts +26 -0
- package/node_modules/@allyhub-next/audio/dist/recording/fft.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/filters.d.ts +42 -0
- package/node_modules/@allyhub-next/audio/dist/recording/filters.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/fit.d.ts +56 -0
- package/node_modules/@allyhub-next/audio/dist/recording/fit.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/index.d.ts +10 -0
- package/node_modules/@allyhub-next/audio/dist/recording/index.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/loudness.d.ts +12 -0
- package/node_modules/@allyhub-next/audio/dist/recording/loudness.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/measure.d.ts +67 -0
- package/node_modules/@allyhub-next/audio/dist/recording/measure.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/mic.d.ts +32 -0
- package/node_modules/@allyhub-next/audio/dist/recording/mic.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/noise.d.ts +27 -0
- package/node_modules/@allyhub-next/audio/dist/recording/noise.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/presets.d.ts +64 -0
- package/node_modules/@allyhub-next/audio/dist/recording/presets.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/room.d.ts +78 -0
- package/node_modules/@allyhub-next/audio/dist/recording/room.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/setup.d.ts +111 -0
- package/node_modules/@allyhub-next/audio/dist/recording/setup.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/recording/vec.d.ts +3 -0
- package/node_modules/@allyhub-next/audio/dist/recording/vec.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/render.d.ts +26 -0
- package/node_modules/@allyhub-next/audio/dist/render.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/sfx.d.ts +10 -0
- package/node_modules/@allyhub-next/audio/dist/sfx.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/shape.d.ts +118 -0
- package/node_modules/@allyhub-next/audio/dist/shape.js +2 -0
- package/node_modules/@allyhub-next/audio/dist/voice.d.ts +45 -0
- package/node_modules/@allyhub-next/audio/dist/voice.js +2 -0
- package/node_modules/@allyhub-next/audio/package.json +17 -0
- package/node_modules/@allyhub-next/formats/LICENSE +241 -0
- package/node_modules/@allyhub-next/formats/dist/data/comments.d.ts +94 -0
- package/node_modules/@allyhub-next/formats/dist/data/comments.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/data/config.d.ts +10 -0
- package/node_modules/@allyhub-next/formats/dist/data/config.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/data/edits.d.ts +28 -0
- package/node_modules/@allyhub-next/formats/dist/data/edits.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/data/elements.d.ts +6 -0
- package/node_modules/@allyhub-next/formats/dist/data/elements.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/data/faces.d.ts +38 -0
- package/node_modules/@allyhub-next/formats/dist/data/faces.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/data/file.d.ts +11 -0
- package/node_modules/@allyhub-next/formats/dist/data/file.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/data/gen.d.ts +31 -0
- package/node_modules/@allyhub-next/formats/dist/data/gen.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/data/messages.d.ts +34 -0
- package/node_modules/@allyhub-next/formats/dist/data/messages.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/data/reference.d.ts +676 -0
- package/node_modules/@allyhub-next/formats/dist/data/reference.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/data/script.d.ts +37 -0
- package/node_modules/@allyhub-next/formats/dist/data/script.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +214 -0
- package/node_modules/@allyhub-next/formats/dist/data/sheet.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/data/words.d.ts +25 -0
- package/node_modules/@allyhub-next/formats/dist/data/words.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/index.d.ts +16 -0
- package/node_modules/@allyhub-next/formats/dist/index.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/items.d.ts +94 -0
- package/node_modules/@allyhub-next/formats/dist/items.js +2 -0
- package/node_modules/@allyhub-next/formats/dist/layout.d.ts +50 -0
- package/node_modules/@allyhub-next/formats/dist/layout.js +5 -0
- package/node_modules/@allyhub-next/formats/dist/schemas.d.ts +301 -0
- package/node_modules/@allyhub-next/formats/dist/schemas.js +2 -0
- package/node_modules/@allyhub-next/formats/package.json +14 -0
- package/node_modules/@allyhub-next/protocol/LICENSE +241 -0
- package/node_modules/@allyhub-next/protocol/dist/app.d.ts +98 -0
- package/node_modules/@allyhub-next/protocol/dist/app.js +2 -0
- package/node_modules/@allyhub-next/protocol/dist/auth.d.ts +116 -0
- package/node_modules/@allyhub-next/protocol/dist/auth.js +2 -0
- package/node_modules/@allyhub-next/protocol/dist/cli.d.ts +59 -0
- package/node_modules/@allyhub-next/protocol/dist/cli.js +2 -0
- package/node_modules/@allyhub-next/protocol/dist/cloud.d.ts +274 -0
- package/node_modules/@allyhub-next/protocol/dist/cloud.js +2 -0
- package/node_modules/@allyhub-next/protocol/dist/editor.d.ts +405 -0
- package/node_modules/@allyhub-next/protocol/dist/editor.js +2 -0
- package/node_modules/@allyhub-next/protocol/dist/files.d.ts +101 -0
- package/node_modules/@allyhub-next/protocol/dist/files.js +2 -0
- package/node_modules/@allyhub-next/protocol/dist/index.d.ts +12 -0
- package/node_modules/@allyhub-next/protocol/dist/index.js +2 -0
- package/node_modules/@allyhub-next/protocol/dist/jsonrpc.d.ts +83 -0
- package/node_modules/@allyhub-next/protocol/dist/jsonrpc.js +2 -0
- package/node_modules/@allyhub-next/protocol/dist/registry.d.ts +53 -0
- package/node_modules/@allyhub-next/protocol/dist/registry.js +2 -0
- package/node_modules/@allyhub-next/protocol/dist/runtimes.d.ts +93 -0
- package/node_modules/@allyhub-next/protocol/dist/runtimes.js +2 -0
- package/node_modules/@allyhub-next/protocol/dist/teams.d.ts +67 -0
- package/node_modules/@allyhub-next/protocol/dist/teams.js +2 -0
- package/node_modules/@allyhub-next/protocol/dist/tools.d.ts +345 -0
- package/node_modules/@allyhub-next/protocol/dist/tools.js +2 -0
- package/node_modules/@allyhub-next/protocol/package.json +13 -0
- package/node_modules/@allyhub-next/runtimes/LICENSE +241 -0
- package/node_modules/@allyhub-next/runtimes/dist/bundled.d.ts +10 -0
- package/node_modules/@allyhub-next/runtimes/dist/bundled.js +2 -0
- package/node_modules/@allyhub-next/runtimes/dist/download.d.ts +15 -0
- package/node_modules/@allyhub-next/runtimes/dist/download.js +2 -0
- package/node_modules/@allyhub-next/runtimes/dist/errors.d.ts +16 -0
- package/node_modules/@allyhub-next/runtimes/dist/errors.js +2 -0
- package/node_modules/@allyhub-next/runtimes/dist/home.d.ts +2 -0
- package/node_modules/@allyhub-next/runtimes/dist/home.js +2 -0
- package/node_modules/@allyhub-next/runtimes/dist/index.d.ts +9 -0
- package/node_modules/@allyhub-next/runtimes/dist/index.js +2 -0
- package/node_modules/@allyhub-next/runtimes/dist/lock.d.ts +6 -0
- package/node_modules/@allyhub-next/runtimes/dist/lock.js +2 -0
- package/node_modules/@allyhub-next/runtimes/dist/manifest.d.ts +3 -0
- package/node_modules/@allyhub-next/runtimes/dist/manifest.js +2 -0
- package/node_modules/@allyhub-next/runtimes/dist/runtimes.d.ts +63 -0
- package/node_modules/@allyhub-next/runtimes/dist/runtimes.js +3 -0
- package/node_modules/@allyhub-next/runtimes/dist/unpack.d.ts +7 -0
- package/node_modules/@allyhub-next/runtimes/dist/unpack.js +2 -0
- package/node_modules/@allyhub-next/runtimes/manifest.json +395 -0
- package/node_modules/@allyhub-next/runtimes/package.json +14 -0
- package/node_modules/@allyhub-next/runtimes/schemas/runtimes.schema.json +153 -0
- package/node_modules/@allyhub-next/scenery/LICENSE +241 -0
- package/node_modules/@allyhub-next/scenery/NOTICE +42 -0
- package/node_modules/@allyhub-next/scenery/dist/aim.d.ts +55 -0
- package/node_modules/@allyhub-next/scenery/dist/aim.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/bake.d.ts +203 -0
- package/node_modules/@allyhub-next/scenery/dist/bake.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/camera.d.ts +150 -0
- package/node_modules/@allyhub-next/scenery/dist/camera.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/curve.d.ts +40 -0
- package/node_modules/@allyhub-next/scenery/dist/curve.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/define.d.ts +164 -0
- package/node_modules/@allyhub-next/scenery/dist/define.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/fit.d.ts +64 -0
- package/node_modules/@allyhub-next/scenery/dist/fit.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/glass.d.ts +34 -0
- package/node_modules/@allyhub-next/scenery/dist/glass.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/handheld.d.ts +184 -0
- package/node_modules/@allyhub-next/scenery/dist/handheld.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/hull.d.ts +23 -0
- package/node_modules/@allyhub-next/scenery/dist/hull.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/index.d.ts +22 -0
- package/node_modules/@allyhub-next/scenery/dist/index.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/lens.d.ts +48 -0
- package/node_modules/@allyhub-next/scenery/dist/lens.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/moire.d.ts +136 -0
- package/node_modules/@allyhub-next/scenery/dist/moire.js +93 -0
- package/node_modules/@allyhub-next/scenery/dist/motion.d.ts +48 -0
- package/node_modules/@allyhub-next/scenery/dist/motion.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/move.d.ts +260 -0
- package/node_modules/@allyhub-next/scenery/dist/move.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/noise.d.ts +41 -0
- package/node_modules/@allyhub-next/scenery/dist/noise.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/phone.d.ts +34 -0
- package/node_modules/@allyhub-next/scenery/dist/phone.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/report.d.ts +677 -0
- package/node_modules/@allyhub-next/scenery/dist/report.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/screen-focus.d.ts +55 -0
- package/node_modules/@allyhub-next/scenery/dist/screen-focus.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/screen.d.ts +71 -0
- package/node_modules/@allyhub-next/scenery/dist/screen.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/solve.d.ts +82 -0
- package/node_modules/@allyhub-next/scenery/dist/solve.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/timing.d.ts +26 -0
- package/node_modules/@allyhub-next/scenery/dist/timing.js +2 -0
- package/node_modules/@allyhub-next/scenery/dist/vec.d.ts +19 -0
- package/node_modules/@allyhub-next/scenery/dist/vec.js +2 -0
- package/node_modules/@allyhub-next/scenery/package.json +13 -0
- package/node_modules/@allyhub-next/video-core/LICENSE +241 -0
- package/node_modules/@allyhub-next/video-core/dist/anchors.d.ts +164 -0
- package/node_modules/@allyhub-next/video-core/dist/anchors.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/audio-types.d.ts +148 -0
- package/node_modules/@allyhub-next/video-core/dist/audio-types.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/backdrop.d.ts +87 -0
- package/node_modules/@allyhub-next/video-core/dist/backdrop.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/captions.d.ts +122 -0
- package/node_modules/@allyhub-next/video-core/dist/captions.js +11 -0
- package/node_modules/@allyhub-next/video-core/dist/console.d.ts +91 -0
- package/node_modules/@allyhub-next/video-core/dist/console.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/contrast.d.ts +98 -0
- package/node_modules/@allyhub-next/video-core/dist/contrast.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/cut-report.d.ts +77 -0
- package/node_modules/@allyhub-next/video-core/dist/cut-report.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/edit.d.ts +77 -0
- package/node_modules/@allyhub-next/video-core/dist/edit.js +13 -0
- package/node_modules/@allyhub-next/video-core/dist/edits.d.ts +163 -0
- package/node_modules/@allyhub-next/video-core/dist/edits.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/export.d.ts +96 -0
- package/node_modules/@allyhub-next/video-core/dist/export.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/fact.d.ts +965 -0
- package/node_modules/@allyhub-next/video-core/dist/fact.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/footage-motion.d.ts +168 -0
- package/node_modules/@allyhub-next/video-core/dist/footage-motion.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/formats.d.ts +240 -0
- package/node_modules/@allyhub-next/video-core/dist/formats.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/gen.d.ts +37 -0
- package/node_modules/@allyhub-next/video-core/dist/gen.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/index.d.ts +40 -0
- package/node_modules/@allyhub-next/video-core/dist/index.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/look.d.ts +66 -0
- package/node_modules/@allyhub-next/video-core/dist/look.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/marks.d.ts +34 -0
- package/node_modules/@allyhub-next/video-core/dist/marks.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/matrix.d.ts +289 -0
- package/node_modules/@allyhub-next/video-core/dist/matrix.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/measure.d.ts +465 -0
- package/node_modules/@allyhub-next/video-core/dist/measure.js +5 -0
- package/node_modules/@allyhub-next/video-core/dist/media.d.ts +226 -0
- package/node_modules/@allyhub-next/video-core/dist/media.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/messages.d.ts +88 -0
- package/node_modules/@allyhub-next/video-core/dist/messages.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/motion.d.ts +56 -0
- package/node_modules/@allyhub-next/video-core/dist/motion.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/music.d.ts +110 -0
- package/node_modules/@allyhub-next/video-core/dist/music.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/piece.d.ts +1146 -0
- package/node_modules/@allyhub-next/video-core/dist/piece.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/placement.d.ts +37 -0
- package/node_modules/@allyhub-next/video-core/dist/placement.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/problem.d.ts +262 -0
- package/node_modules/@allyhub-next/video-core/dist/problem.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/render-types.d.ts +49 -0
- package/node_modules/@allyhub-next/video-core/dist/render-types.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/schema.d.ts +352 -0
- package/node_modules/@allyhub-next/video-core/dist/schema.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/script-edit.d.ts +176 -0
- package/node_modules/@allyhub-next/video-core/dist/script-edit.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/script.d.ts +67 -0
- package/node_modules/@allyhub-next/video-core/dist/script.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/seams.d.ts +214 -0
- package/node_modules/@allyhub-next/video-core/dist/seams.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/slides.d.ts +37 -0
- package/node_modules/@allyhub-next/video-core/dist/slides.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/sound-under.d.ts +72 -0
- package/node_modules/@allyhub-next/video-core/dist/sound-under.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/speech.d.ts +83 -0
- package/node_modules/@allyhub-next/video-core/dist/speech.js +5 -0
- package/node_modules/@allyhub-next/video-core/dist/timeline.d.ts +616 -0
- package/node_modules/@allyhub-next/video-core/dist/timeline.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/timing.d.ts +88 -0
- package/node_modules/@allyhub-next/video-core/dist/timing.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/transcript.d.ts +288 -0
- package/node_modules/@allyhub-next/video-core/dist/transcript.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/transition.d.ts +289 -0
- package/node_modules/@allyhub-next/video-core/dist/transition.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/voice.d.ts +175 -0
- package/node_modules/@allyhub-next/video-core/dist/voice.js +2 -0
- package/node_modules/@allyhub-next/video-core/dist/words.d.ts +128 -0
- package/node_modules/@allyhub-next/video-core/dist/words.js +2 -0
- package/node_modules/@allyhub-next/video-core/package.json +14 -0
- package/package.json +52 -41
- package/README.md +0 -17
- package/dist/anim.d.ts.map +0 -1
- package/dist/anim.js.map +0 -1
- package/dist/define.d.ts.map +0 -1
- package/dist/define.js.map +0 -1
- package/dist/dom.d.ts.map +0 -1
- package/dist/dom.js.map +0 -1
- package/dist/fit.d.ts.map +0 -1
- package/dist/fit.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/media.d.ts.map +0 -1
- package/dist/media.js.map +0 -1
- package/dist/messages.d.ts.map +0 -1
- package/dist/messages.js.map +0 -1
- package/dist/noise.d.ts.map +0 -1
- package/dist/noise.js.map +0 -1
- package/dist/parts.d.ts.map +0 -1
- package/dist/parts.js.map +0 -1
- package/dist/paths.d.ts.map +0 -1
- package/dist/paths.js.map +0 -1
- package/dist/piece.d.ts.map +0 -1
- package/dist/piece.js.map +0 -1
- package/dist/props.d.ts.map +0 -1
- package/dist/props.js.map +0 -1
- package/dist/text.d.ts.map +0 -1
- package/dist/text.js.map +0 -1
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const TargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
|
+
type: z.ZodLiteral<"quote">;
|
|
4
|
+
exact: z.ZodString;
|
|
5
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
6
|
+
suffix: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
8
|
+
type: z.ZodLiteral<"cells">;
|
|
9
|
+
range: z.ZodString;
|
|
10
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
11
|
+
type: z.ZodLiteral<"item">;
|
|
12
|
+
}, z.core.$strict>], "type">;
|
|
13
|
+
export type Target = z.infer<typeof TargetSchema>;
|
|
14
|
+
export declare const AuthorSchema: z.ZodObject<{
|
|
15
|
+
kind: z.ZodEnum<{
|
|
16
|
+
person: "person";
|
|
17
|
+
agent: "agent";
|
|
18
|
+
}>;
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
}, z.core.$strict>;
|
|
21
|
+
export declare const CommentSchema: z.ZodObject<{
|
|
22
|
+
id: z.ZodString;
|
|
23
|
+
author: z.ZodObject<{
|
|
24
|
+
kind: z.ZodEnum<{
|
|
25
|
+
person: "person";
|
|
26
|
+
agent: "agent";
|
|
27
|
+
}>;
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
}, z.core.$strict>;
|
|
30
|
+
text: z.ZodString;
|
|
31
|
+
at: z.ZodISODateTime;
|
|
32
|
+
}, z.core.$strict>;
|
|
33
|
+
export declare const ThreadSchema: z.ZodObject<{
|
|
34
|
+
id: z.ZodString;
|
|
35
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
36
|
+
type: z.ZodLiteral<"quote">;
|
|
37
|
+
exact: z.ZodString;
|
|
38
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
39
|
+
suffix: z.ZodOptional<z.ZodString>;
|
|
40
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
41
|
+
type: z.ZodLiteral<"cells">;
|
|
42
|
+
range: z.ZodString;
|
|
43
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
44
|
+
type: z.ZodLiteral<"item">;
|
|
45
|
+
}, z.core.$strict>], "type">;
|
|
46
|
+
resolved: z.ZodDefault<z.ZodBoolean>;
|
|
47
|
+
comments: z.ZodArray<z.ZodObject<{
|
|
48
|
+
id: z.ZodString;
|
|
49
|
+
author: z.ZodObject<{
|
|
50
|
+
kind: z.ZodEnum<{
|
|
51
|
+
person: "person";
|
|
52
|
+
agent: "agent";
|
|
53
|
+
}>;
|
|
54
|
+
name: z.ZodString;
|
|
55
|
+
}, z.core.$strict>;
|
|
56
|
+
text: z.ZodString;
|
|
57
|
+
at: z.ZodISODateTime;
|
|
58
|
+
}, z.core.$strict>>;
|
|
59
|
+
}, z.core.$strict>;
|
|
60
|
+
export type Thread = z.infer<typeof ThreadSchema>;
|
|
61
|
+
export declare const CommentsFileSchema: z.ZodObject<{
|
|
62
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
63
|
+
version: z.ZodLiteral<1>;
|
|
64
|
+
threads: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
65
|
+
id: z.ZodString;
|
|
66
|
+
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
67
|
+
type: z.ZodLiteral<"quote">;
|
|
68
|
+
exact: z.ZodString;
|
|
69
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
70
|
+
suffix: z.ZodOptional<z.ZodString>;
|
|
71
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
72
|
+
type: z.ZodLiteral<"cells">;
|
|
73
|
+
range: z.ZodString;
|
|
74
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
75
|
+
type: z.ZodLiteral<"item">;
|
|
76
|
+
}, z.core.$strict>], "type">;
|
|
77
|
+
resolved: z.ZodDefault<z.ZodBoolean>;
|
|
78
|
+
comments: z.ZodArray<z.ZodObject<{
|
|
79
|
+
id: z.ZodString;
|
|
80
|
+
author: z.ZodObject<{
|
|
81
|
+
kind: z.ZodEnum<{
|
|
82
|
+
person: "person";
|
|
83
|
+
agent: "agent";
|
|
84
|
+
}>;
|
|
85
|
+
name: z.ZodString;
|
|
86
|
+
}, z.core.$strict>;
|
|
87
|
+
text: z.ZodString;
|
|
88
|
+
at: z.ZodISODateTime;
|
|
89
|
+
}, z.core.$strict>>;
|
|
90
|
+
}, z.core.$strict>>>;
|
|
91
|
+
}, z.core.$strict>;
|
|
92
|
+
export type CommentsFile = z.infer<typeof CommentsFileSchema>;
|
|
93
|
+
export declare const COMMENTS_FILE = "comments.json";
|
|
94
|
+
//# sourceMappingURL=comments.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 t}from"zod";import{INSTANT as e,dataFile as r}from"./file.js";export const TargetSchema=t.discriminatedUnion("type",[t.strictObject({type:t.literal("quote"),exact:t.string().min(1),prefix:t.string().optional(),suffix:t.string().optional()}),t.strictObject({type:t.literal("cells"),range:t.string().regex(/^[A-Z]+[1-9]\d*(?::[A-Z]+[1-9]\d*)?$/u)}),t.strictObject({type:t.literal("item")})]),AuthorSchema=t.strictObject({kind:t.enum(["person","agent"]),name:t.string().min(1)}),CommentSchema=t.strictObject({id:t.string().min(1),author:AuthorSchema,text:t.string().min(1),at:e}),ThreadSchema=t.strictObject({id:t.string().min(1),target:TargetSchema,resolved:t.boolean().default(!1),comments:t.array(CommentSchema).min(1)}),CommentsFileSchema=r({version:t.literal(1),threads:t.array(ThreadSchema).default([])}),COMMENTS_FILE="comments.json";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ConfigSchema: z.ZodObject<{
|
|
3
|
+
fonts: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4
|
+
text: z.ZodOptional<z.ZodString>;
|
|
5
|
+
locales: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6
|
+
look: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7
|
+
defaults: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
8
|
+
}, z.core.$strict>;
|
|
9
|
+
export type Config = z.infer<typeof ConfigSchema>;
|
|
10
|
+
//# sourceMappingURL=config.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 n}from"zod";export const ConfigSchema=n.strictObject({fonts:n.array(n.string().min(1)).default([]),text:n.string().optional(),locales:n.array(n.string().min(2)).min(1).optional(),look:n.record(n.string(),n.unknown()).optional(),defaults:n.record(n.string(),n.unknown()).optional()});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** The most seconds of room a cut keeps on a side (video-core's parseEditList, which plays the file). */
|
|
3
|
+
export declare const PAD_MAX = 2;
|
|
4
|
+
export declare const EditsFileSchema: z.ZodObject<{
|
|
5
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
6
|
+
version: z.ZodLiteral<1>;
|
|
7
|
+
take: z.ZodOptional<z.ZodString>;
|
|
8
|
+
remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
9
|
+
from: z.ZodInt;
|
|
10
|
+
to: z.ZodInt;
|
|
11
|
+
text: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, z.core.$strict>>>;
|
|
13
|
+
sounds: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
14
|
+
from: z.ZodNumber;
|
|
15
|
+
to: z.ZodNumber;
|
|
16
|
+
}, z.core.$strict>>>;
|
|
17
|
+
inWord: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
18
|
+
from: z.ZodNumber;
|
|
19
|
+
to: z.ZodNumber;
|
|
20
|
+
}, z.core.$strict>>>;
|
|
21
|
+
maxPause: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
pad: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
before: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
after: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
}, z.core.$strict>>;
|
|
26
|
+
}, z.core.$strict>;
|
|
27
|
+
export type EditsFile = z.infer<typeof EditsFileSchema>;
|
|
28
|
+
//# sourceMappingURL=edits.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 t}from"zod";import{SECONDS as e,dataFile as n}from"./file.js";const a=t.strictObject({from:e,to:e}).refine(o=>o.to>o.from,{message:"A stretch ends after its start.",path:["to"]});export const PAD_MAX=2;const r=t.number().min(0).max(PAD_MAX);export const EditsFileSchema=n({version:t.literal(1),take:t.string().optional(),remove:t.array(t.strictObject({from:t.int().nonnegative(),to:t.int().nonnegative(),text:t.string().optional()}).refine(o=>o.to>=o.from,{message:"A range ends at or after its start.",path:["to"]})).optional(),sounds:t.array(a).optional(),inWord:t.array(a).optional(),maxPause:t.number().min(.05).max(10).optional(),pad:t.strictObject({before:r.optional(),after:r.optional()}).optional()});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** [x, y, width, height] in the picture's pixels. */
|
|
3
|
+
export declare const ElementBoxSchema: z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>;
|
|
4
|
+
export declare const ElementsFileSchema: z.ZodRecord<z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodNumber, z.ZodNumber, z.ZodNumber], null>>;
|
|
5
|
+
export type ElementsFile = z.infer<typeof ElementsFileSchema>;
|
|
6
|
+
//# sourceMappingURL=elements.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";export const ElementBoxSchema=e.tuple([e.number(),e.number(),e.number().nonnegative(),e.number().nonnegative()]),ElementsFileSchema=e.record(e.string().min(1),ElementBoxSchema);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/** A face at a moment of a video: seconds, and its box in the displayed picture's pixels. */
|
|
2
|
+
export interface FaceSample {
|
|
3
|
+
t: number;
|
|
4
|
+
box: [x: number, y: number, w: number, h: number];
|
|
5
|
+
/** The detector's confidence, 0 where the box was filled in between detections. */
|
|
6
|
+
score: number;
|
|
7
|
+
}
|
|
8
|
+
/** One face followed over a video: its id, and a sample per sampled moment from its first detection to its last (gaps filled in). */
|
|
9
|
+
export interface TrackedFace {
|
|
10
|
+
/** Stable over the video: faces are numbered from 0 in the order they first appear. */
|
|
11
|
+
id: number;
|
|
12
|
+
samples: FaceSample[];
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Every face of a video, sampled at `fps`, each followed from frame to
|
|
16
|
+
* frame with a stable id and smoothed, and the default speaker. Kept in
|
|
17
|
+
* the media index (.allyhub/cache/index/<sha256>/faces.json).
|
|
18
|
+
*/
|
|
19
|
+
export interface FaceTrack {
|
|
20
|
+
version: 2;
|
|
21
|
+
/** The detector, e.g. "yunet-2023mar". */
|
|
22
|
+
model: string;
|
|
23
|
+
/** The displayed picture's pixels the boxes are in. */
|
|
24
|
+
width: number;
|
|
25
|
+
height: number;
|
|
26
|
+
/** Samples per second. */
|
|
27
|
+
fps: number;
|
|
28
|
+
/** Every face found, by id. Empty when no face was found. */
|
|
29
|
+
faces: TrackedFace[];
|
|
30
|
+
/**
|
|
31
|
+
* The default speaker's id: the face chosen as the main face in the most
|
|
32
|
+
* sampled frames, where a frame's main face is the largest, kept through
|
|
33
|
+
* a bigger face passing by. What reads a face without naming one follows
|
|
34
|
+
* it. Absent when no face was found.
|
|
35
|
+
*/
|
|
36
|
+
speaker?: number;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=faces.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const SHA256: z.ZodString;
|
|
3
|
+
/** Seconds, from the start of a recording. */
|
|
4
|
+
export declare const SECONDS: z.ZodNumber;
|
|
5
|
+
/** A moment in ISO 8601, with its offset. */
|
|
6
|
+
export declare const INSTANT: z.ZodISODateTime;
|
|
7
|
+
/** A data file's object: strict, with an optional `$schema`. */
|
|
8
|
+
export declare function dataFile<S extends z.ZodRawShape>(shape: S): z.ZodObject<{
|
|
9
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
10
|
+
} & S extends infer T ? { -readonly [P in keyof T]: T[P]; } : never, z.core.$strict>;
|
|
11
|
+
//# sourceMappingURL=file.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 t}from"zod";export const SHA256=t.string().regex(/^[0-9a-f]{64}$/u,"A sha256 is 64 lowercase hexadecimal digits."),SECONDS=t.number().nonnegative(),INSTANT=t.iso.datetime({offset:!0});export function dataFile(e){return t.strictObject({$schema:t.string().optional(),...e})}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const Omitted: z.ZodObject<{
|
|
3
|
+
omitted: z.ZodLiteral<true>;
|
|
4
|
+
sha256: z.ZodString;
|
|
5
|
+
bytes: z.ZodInt;
|
|
6
|
+
}, z.core.$strict>;
|
|
7
|
+
export declare const GenFileSchema: z.ZodObject<{
|
|
8
|
+
$schema: z.ZodOptional<z.ZodString>;
|
|
9
|
+
version: z.ZodLiteral<1>;
|
|
10
|
+
ai: z.ZodBoolean;
|
|
11
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
12
|
+
model: z.ZodOptional<z.ZodString>;
|
|
13
|
+
input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
14
|
+
inputHash: z.ZodOptional<z.ZodString>;
|
|
15
|
+
output: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
16
|
+
credits: z.ZodOptional<z.ZodNumber>;
|
|
17
|
+
at: z.ZodISODateTime;
|
|
18
|
+
sha256: z.ZodString;
|
|
19
|
+
bytes: z.ZodInt;
|
|
20
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
21
|
+
library: z.ZodString;
|
|
22
|
+
page: z.ZodURL;
|
|
23
|
+
authors: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
24
|
+
license: z.ZodString;
|
|
25
|
+
}, z.core.$strict>>;
|
|
26
|
+
}, z.core.$strict>;
|
|
27
|
+
export type GenFile = z.infer<typeof GenFileSchema>;
|
|
28
|
+
export { Omitted as OmittedValueSchema };
|
|
29
|
+
/** The record of a file: beside it, `.gen.json` added. */
|
|
30
|
+
export declare const genFileFor: (file: string) => string;
|
|
31
|
+
//# sourceMappingURL=gen.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 t}from"zod";import{INSTANT as e,SHA256 as n,dataFile as i}from"./file.js";const r=t.strictObject({omitted:t.literal(!0),sha256:n,bytes:t.int().nonnegative()});export const GenFileSchema=i({version:t.literal(1),ai:t.boolean(),tool:t.string().optional(),model:t.string().optional(),input:t.record(t.string(),t.unknown()).optional(),inputHash:n.optional(),output:t.record(t.string(),t.unknown()).optional(),credits:t.number().nonnegative().optional(),at:e,sha256:n,bytes:t.int().nonnegative(),source:t.strictObject({library:t.string(),page:t.url(),authors:t.array(t.string()).default([]),license:t.string()}).optional()});export{r as OmittedValueSchema};export const genFileFor=o=>`${o}.gen.json`;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** A key: segments of letters, digits, `_` and `-`, joined by dots. */
|
|
3
|
+
export declare const MESSAGE_KEY: RegExp;
|
|
4
|
+
export declare const SpokenSchema: z.ZodObject<{
|
|
5
|
+
display: z.ZodString;
|
|
6
|
+
speak: z.ZodString;
|
|
7
|
+
}, z.core.$strict>;
|
|
8
|
+
/** A message with variants, as a script writes it: one object. */
|
|
9
|
+
export declare const VariantsSchema: z.ZodObject<{
|
|
10
|
+
declarations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
11
|
+
selectors: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
12
|
+
match: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
13
|
+
}, z.core.$strict>;
|
|
14
|
+
/** One message in a messages file: a variant message is wrapped in a list, as inlang writes it. */
|
|
15
|
+
export declare const MessageSchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
16
|
+
display: z.ZodString;
|
|
17
|
+
speak: z.ZodString;
|
|
18
|
+
}, z.core.$strict>, z.ZodTuple<[z.ZodObject<{
|
|
19
|
+
declarations: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
20
|
+
selectors: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
21
|
+
match: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
22
|
+
}, z.core.$strict>], null>]>;
|
|
23
|
+
export type Message = z.infer<typeof MessageSchema>;
|
|
24
|
+
/** assets/text/<locale>.json: the words several items share, by flat key. */
|
|
25
|
+
export declare const MessagesFileSchema: z.ZodPipe<z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodTransform<Record<string, string | {
|
|
26
|
+
display: string;
|
|
27
|
+
speak: string;
|
|
28
|
+
} | [{
|
|
29
|
+
declarations: string[];
|
|
30
|
+
selectors: string[];
|
|
31
|
+
match: Record<string, string>;
|
|
32
|
+
}]>, Record<string, unknown>>>;
|
|
33
|
+
export type MessagesFile = z.infer<typeof MessagesFileSchema>;
|
|
34
|
+
//# sourceMappingURL=messages.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 s}from"zod";export const MESSAGE_KEY=/^[A-Za-z0-9_-]+(?:\.[A-Za-z0-9_-]+)*$/u,SpokenSchema=s.strictObject({display:s.string(),speak:s.string()}),VariantsSchema=s.strictObject({declarations:s.array(s.string()).default([]),selectors:s.array(s.string()).default([]),match:s.record(s.string(),s.string()).refine(a=>Object.keys(a).length>0,"A match needs at least one case.")}),MessageSchema=s.union([s.string(),SpokenSchema,s.tuple([VariantsSchema])]),MessagesFileSchema=s.record(s.string(),s.unknown()).superRefine((a,e)=>{for(const[t,r]of Object.entries(a)){if(t==="$schema"){typeof r!="string"&&e.addIssue({code:"custom",path:[t],message:"$schema is a string."});continue}MESSAGE_KEY.test(t)||e.addIssue({code:"custom",path:[t],message:`"${t}" is not a message key: letters, digits, _ and -, in segments joined by dots.`});const n=MessageSchema.safeParse(r);n.success||e.addIssue({code:"custom",path:[t],message:Array.isArray(r)?`A message with variants is [{ "declarations": […], "selectors": […], "match": {…} }]: ${n.error.issues.map(o=>o.message).join("; ")}`:"A message is a string, { display, speak }, or [{ declarations, selectors, match }]."})}}).transform(a=>{const e={...a};return delete e.$schema,e});
|