@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
|
@@ -11,42 +11,39 @@ export declare const FRAME_METHODS: {
|
|
|
11
11
|
}, z.core.$strict>>;
|
|
12
12
|
}, z.core.$strict>>;
|
|
13
13
|
readonly "note/locate": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}, z.core.$strict>>;
|
|
48
|
-
}, z.core.$strict>], "kind">;
|
|
49
|
-
}, z.core.$strict>;
|
|
14
|
+
shape: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
15
|
+
kind: z.ZodLiteral<"box">;
|
|
16
|
+
rect: z.ZodObject<{
|
|
17
|
+
x: z.ZodNumber;
|
|
18
|
+
y: z.ZodNumber;
|
|
19
|
+
width: z.ZodNumber;
|
|
20
|
+
height: z.ZodNumber;
|
|
21
|
+
}, z.core.$strict>;
|
|
22
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
23
|
+
kind: z.ZodLiteral<"round">;
|
|
24
|
+
rect: z.ZodObject<{
|
|
25
|
+
x: z.ZodNumber;
|
|
26
|
+
y: z.ZodNumber;
|
|
27
|
+
width: z.ZodNumber;
|
|
28
|
+
height: z.ZodNumber;
|
|
29
|
+
}, z.core.$strict>;
|
|
30
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
31
|
+
kind: z.ZodLiteral<"arrow">;
|
|
32
|
+
from: z.ZodObject<{
|
|
33
|
+
x: z.ZodNumber;
|
|
34
|
+
y: z.ZodNumber;
|
|
35
|
+
}, z.core.$strict>;
|
|
36
|
+
to: z.ZodObject<{
|
|
37
|
+
x: z.ZodNumber;
|
|
38
|
+
y: z.ZodNumber;
|
|
39
|
+
}, z.core.$strict>;
|
|
40
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
41
|
+
kind: z.ZodLiteral<"line">;
|
|
42
|
+
points: z.ZodArray<z.ZodObject<{
|
|
43
|
+
x: z.ZodNumber;
|
|
44
|
+
y: z.ZodNumber;
|
|
45
|
+
}, z.core.$strict>>;
|
|
46
|
+
}, z.core.$strict>], "kind">;
|
|
50
47
|
}, z.core.$strict>, z.ZodObject<{
|
|
51
48
|
elements: z.ZodArray<z.ZodObject<{
|
|
52
49
|
name: z.ZodString;
|
|
@@ -56,21 +53,19 @@ export declare const FRAME_METHODS: {
|
|
|
56
53
|
endLine: z.ZodOptional<z.ZodInt>;
|
|
57
54
|
}, z.core.$strict>>;
|
|
58
55
|
text: z.ZodOptional<z.ZodString>;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
readonly "note/pictures": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
63
|
-
anchors: z.ZodArray<z.ZodString>;
|
|
64
|
-
region: z.ZodOptional<z.ZodObject<{
|
|
65
|
-
anchor: z.ZodString;
|
|
66
|
-
rect: z.ZodObject<{
|
|
67
|
-
x: z.ZodNumber;
|
|
68
|
-
y: z.ZodNumber;
|
|
56
|
+
regions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
57
|
+
in: z.ZodString;
|
|
58
|
+
file: z.ZodOptional<z.ZodString>;
|
|
69
59
|
width: z.ZodNumber;
|
|
70
60
|
height: z.ZodNumber;
|
|
71
|
-
|
|
61
|
+
path: z.ZodString;
|
|
62
|
+
area: z.ZodBoolean;
|
|
63
|
+
scale: z.ZodNumber;
|
|
64
|
+
}, z.core.$strict>>>;
|
|
72
65
|
}, z.core.$strict>>;
|
|
73
|
-
|
|
66
|
+
where: z.ZodOptional<z.ZodString>;
|
|
67
|
+
}, z.core.$strict>>;
|
|
68
|
+
readonly "note/pictures": import("./jsonrpc.js").MethodSpec<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
|
|
74
69
|
pictures: z.ZodArray<z.ZodObject<{
|
|
75
70
|
rect: z.ZodOptional<z.ZodObject<{
|
|
76
71
|
x: z.ZodNumber;
|
|
@@ -81,169 +76,36 @@ export declare const FRAME_METHODS: {
|
|
|
81
76
|
mime: z.ZodString;
|
|
82
77
|
data: z.ZodString;
|
|
83
78
|
}, z.core.$strict>>;
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
sx: z.ZodNumber;
|
|
88
|
-
sy: z.ZodNumber;
|
|
89
|
-
clip: z.ZodObject<{
|
|
90
|
-
x: z.ZodNumber;
|
|
91
|
-
y: z.ZodNumber;
|
|
92
|
-
width: z.ZodNumber;
|
|
93
|
-
height: z.ZodNumber;
|
|
94
|
-
}, z.core.$strict>;
|
|
95
|
-
}, z.core.$strict>>>;
|
|
96
|
-
}, z.core.$strict>>;
|
|
97
|
-
readonly "note/where": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
98
|
-
anchors: z.ZodArray<z.ZodString>;
|
|
99
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
100
|
-
placements: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodObject<{
|
|
101
|
-
x: z.ZodNumber;
|
|
102
|
-
y: z.ZodNumber;
|
|
103
|
-
sx: z.ZodNumber;
|
|
104
|
-
sy: z.ZodNumber;
|
|
105
|
-
clip: z.ZodObject<{
|
|
79
|
+
uncovered: z.ZodArray<z.ZodObject<{
|
|
80
|
+
name: z.ZodString;
|
|
81
|
+
rect: z.ZodObject<{
|
|
106
82
|
x: z.ZodNumber;
|
|
107
83
|
y: z.ZodNumber;
|
|
108
84
|
width: z.ZodNumber;
|
|
109
85
|
height: z.ZodNumber;
|
|
110
86
|
}, z.core.$strict>;
|
|
111
|
-
}, z.core.$strict
|
|
112
|
-
}, z.core.$strict>>;
|
|
113
|
-
readonly "note/show": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
114
|
-
anchor: z.ZodString;
|
|
115
|
-
at: z.ZodObject<{
|
|
116
|
-
x: z.ZodNumber;
|
|
117
|
-
y: z.ZodNumber;
|
|
118
|
-
}, z.core.$strict>;
|
|
119
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
120
|
-
shown: z.ZodBoolean;
|
|
87
|
+
}, z.core.$strict>>;
|
|
121
88
|
}, z.core.$strict>>;
|
|
122
89
|
readonly "note/release": import("./jsonrpc.js").MethodSpec<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
|
|
123
90
|
};
|
|
124
91
|
/** What the window tells the page. */
|
|
125
92
|
export declare const WINDOW_NOTIFICATIONS: {
|
|
126
|
-
readonly "note/mode": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
127
|
-
catch: z.ZodBoolean;
|
|
128
|
-
cursor: z.ZodString;
|
|
129
|
-
nudge: z.ZodBoolean;
|
|
130
|
-
}, z.core.$strict>>;
|
|
131
93
|
readonly "editor/command": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
132
|
-
command: z.
|
|
133
|
-
export: "export";
|
|
134
|
-
}>;
|
|
94
|
+
command: z.ZodString;
|
|
135
95
|
open: z.ZodOptional<z.ZodBoolean>;
|
|
136
96
|
}, z.core.$strict>>;
|
|
137
97
|
};
|
|
138
|
-
export declare const NoteInputSchema: z.ZodObject<{
|
|
139
|
-
anchor: z.ZodOptional<z.ZodObject<{
|
|
140
|
-
id: z.ZodString;
|
|
141
|
-
placement: z.ZodNullable<z.ZodObject<{
|
|
142
|
-
x: z.ZodNumber;
|
|
143
|
-
y: z.ZodNumber;
|
|
144
|
-
sx: z.ZodNumber;
|
|
145
|
-
sy: z.ZodNumber;
|
|
146
|
-
clip: z.ZodObject<{
|
|
147
|
-
x: z.ZodNumber;
|
|
148
|
-
y: z.ZodNumber;
|
|
149
|
-
width: z.ZodNumber;
|
|
150
|
-
height: z.ZodNumber;
|
|
151
|
-
}, z.core.$strict>;
|
|
152
|
-
}, z.core.$strict>>;
|
|
153
|
-
}, z.core.$strict>>;
|
|
154
|
-
shift: z.ZodBoolean;
|
|
155
|
-
alt: z.ZodBoolean;
|
|
156
|
-
meta: z.ZodBoolean;
|
|
157
|
-
ctrl: z.ZodBoolean;
|
|
158
|
-
type: z.ZodEnum<{
|
|
159
|
-
cancel: "cancel";
|
|
160
|
-
down: "down";
|
|
161
|
-
move: "move";
|
|
162
|
-
up: "up";
|
|
163
|
-
double: "double";
|
|
164
|
-
}>;
|
|
165
|
-
x: z.ZodNumber;
|
|
166
|
-
y: z.ZodNumber;
|
|
167
|
-
buttons: z.ZodInt;
|
|
168
|
-
}, z.core.$strict>;
|
|
169
|
-
export type NoteInput = z.infer<typeof NoteInputSchema>;
|
|
170
|
-
export declare const NoteKeySchema: z.ZodObject<{
|
|
171
|
-
shift: z.ZodBoolean;
|
|
172
|
-
alt: z.ZodBoolean;
|
|
173
|
-
meta: z.ZodBoolean;
|
|
174
|
-
ctrl: z.ZodBoolean;
|
|
175
|
-
type: z.ZodEnum<{
|
|
176
|
-
down: "down";
|
|
177
|
-
up: "up";
|
|
178
|
-
}>;
|
|
179
|
-
key: z.ZodString;
|
|
180
|
-
code: z.ZodString;
|
|
181
|
-
repeat: z.ZodBoolean;
|
|
182
|
-
}, z.core.$strict>;
|
|
183
|
-
export type NoteKey = z.infer<typeof NoteKeySchema>;
|
|
184
98
|
/** What the page tells the window. */
|
|
185
99
|
export declare const FRAME_NOTIFICATIONS: {
|
|
186
100
|
readonly "note/ready": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{}, z.core.$strict>>;
|
|
187
101
|
readonly "note/gone": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{}, z.core.$strict>>;
|
|
188
|
-
readonly "
|
|
189
|
-
events: z.ZodArray<z.ZodObject<{
|
|
190
|
-
anchor: z.ZodOptional<z.ZodObject<{
|
|
191
|
-
id: z.ZodString;
|
|
192
|
-
placement: z.ZodNullable<z.ZodObject<{
|
|
193
|
-
x: z.ZodNumber;
|
|
194
|
-
y: z.ZodNumber;
|
|
195
|
-
sx: z.ZodNumber;
|
|
196
|
-
sy: z.ZodNumber;
|
|
197
|
-
clip: z.ZodObject<{
|
|
198
|
-
x: z.ZodNumber;
|
|
199
|
-
y: z.ZodNumber;
|
|
200
|
-
width: z.ZodNumber;
|
|
201
|
-
height: z.ZodNumber;
|
|
202
|
-
}, z.core.$strict>;
|
|
203
|
-
}, z.core.$strict>>;
|
|
204
|
-
}, z.core.$strict>>;
|
|
205
|
-
shift: z.ZodBoolean;
|
|
206
|
-
alt: z.ZodBoolean;
|
|
207
|
-
meta: z.ZodBoolean;
|
|
208
|
-
ctrl: z.ZodBoolean;
|
|
209
|
-
type: z.ZodEnum<{
|
|
210
|
-
cancel: "cancel";
|
|
211
|
-
down: "down";
|
|
212
|
-
move: "move";
|
|
213
|
-
up: "up";
|
|
214
|
-
double: "double";
|
|
215
|
-
}>;
|
|
216
|
-
x: z.ZodNumber;
|
|
217
|
-
y: z.ZodNumber;
|
|
218
|
-
buttons: z.ZodInt;
|
|
219
|
-
}, z.core.$strict>>;
|
|
220
|
-
}, z.core.$strict>>;
|
|
221
|
-
readonly "note/key": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
222
|
-
shift: z.ZodBoolean;
|
|
223
|
-
alt: z.ZodBoolean;
|
|
224
|
-
meta: z.ZodBoolean;
|
|
225
|
-
ctrl: z.ZodBoolean;
|
|
226
|
-
type: z.ZodEnum<{
|
|
227
|
-
down: "down";
|
|
228
|
-
up: "up";
|
|
229
|
-
}>;
|
|
102
|
+
readonly "window/key": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
230
103
|
key: z.ZodString;
|
|
231
104
|
code: z.ZodString;
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
x: z.ZodNumber;
|
|
237
|
-
y: z.ZodNumber;
|
|
238
|
-
sx: z.ZodNumber;
|
|
239
|
-
sy: z.ZodNumber;
|
|
240
|
-
clip: z.ZodObject<{
|
|
241
|
-
x: z.ZodNumber;
|
|
242
|
-
y: z.ZodNumber;
|
|
243
|
-
width: z.ZodNumber;
|
|
244
|
-
height: z.ZodNumber;
|
|
245
|
-
}, z.core.$strict>;
|
|
246
|
-
}, z.core.$strict>>>;
|
|
105
|
+
meta: z.ZodBoolean;
|
|
106
|
+
ctrl: z.ZodBoolean;
|
|
107
|
+
shift: z.ZodBoolean;
|
|
108
|
+
alt: z.ZodBoolean;
|
|
247
109
|
}, z.core.$strict>>;
|
|
248
110
|
readonly "agent/ask": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
249
111
|
text: z.ZodString;
|
|
@@ -260,19 +122,15 @@ export declare const FRAME_NOTIFICATIONS: {
|
|
|
260
122
|
readonly "edit/request": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{}, z.core.$strict>>;
|
|
261
123
|
readonly "editor/place": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
262
124
|
item: z.ZodString;
|
|
263
|
-
place: z.
|
|
264
|
-
t: z.ZodNumber;
|
|
265
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
266
|
-
slide: z.ZodString;
|
|
267
|
-
}, z.core.$strict>]>;
|
|
125
|
+
place: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
268
126
|
}, z.core.$strict>>;
|
|
269
127
|
readonly "export/state": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
270
128
|
at: z.ZodEnum<{
|
|
271
129
|
failed: "failed";
|
|
272
130
|
running: "running";
|
|
273
131
|
idle: "idle";
|
|
274
|
-
done: "done";
|
|
275
132
|
queued: "queued";
|
|
133
|
+
done: "done";
|
|
276
134
|
}>;
|
|
277
135
|
percent: z.ZodOptional<z.ZodNumber>;
|
|
278
136
|
open: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -286,5 +144,15 @@ export declare const FRAME_NOTIFICATIONS: {
|
|
|
286
144
|
}>;
|
|
287
145
|
message: z.ZodOptional<z.ZodString>;
|
|
288
146
|
}, z.core.$strict>>;
|
|
147
|
+
readonly "agent/here": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
148
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
149
|
+
name: z.ZodString;
|
|
150
|
+
doing: z.ZodEnum<{
|
|
151
|
+
looking: "looking";
|
|
152
|
+
editing: "editing";
|
|
153
|
+
}>;
|
|
154
|
+
}, z.core.$strict>>;
|
|
155
|
+
following: z.ZodBoolean;
|
|
156
|
+
}, z.core.$strict>>;
|
|
289
157
|
};
|
|
290
158
|
//# sourceMappingURL=frame.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 e}from"zod";import{EDITOR_STATES as
|
|
2
|
+
import{z as e}from"zod";import{EDITOR_STATES as r,ExportStateSchema as i,PlaceSchema as a}from"./editor.js";import{AgentHereSchema as n}from"./presence.js";import{PathSchema as h}from"./files.js";import{method as o,notification as t}from"./jsonrpc.js";import{HeldSchema as c,NoteFoundSchema as d,NotePictureSchema as m,NoteRectSchema as s,NoteShapeSchema as p}from"./notes.js";export const FRAME_METHODS={"note/hold":o(e.strictObject({}),c,"Holds what moves by itself while the person marks a picture of it; says what is on show."),"note/locate":o(e.strictObject({shape:p}),d,"What a mark is on: the editor's answer and every inset's under it, innermost first. Empty is an answer: the mark's place still goes."),"note/pictures":o(e.strictObject({}),e.strictObject({pictures:e.array(m),uncovered:e.array(e.strictObject({name:e.string(),rect:s}))}),"The page as it shows now, drawn without the window's marks, then its insets' pictures, each at its rect, outermost first."),"note/release":o(e.strictObject({}),e.strictObject({}),"The person is done marking. Nothing starts by itself.")},WINDOW_NOTIFICATIONS={"editor/command":t(e.strictObject({command:e.string().min(1),open:e.boolean().optional()}),"A shortcut the window took, its header's Export or its agent's name, or a command of the editor's extension, for the editor to do as its own.")},FRAME_NOTIFICATIONS={"note/ready":t(e.strictObject({}),"The page's editor has given its surface: the page answers notes."),"note/gone":t(e.strictObject({}),"The page no longer answers notes: its editor went, or the page goes."),"window/key":t(e.strictObject({key:e.string(),code:e.string(),meta:e.boolean(),ctrl:e.boolean(),shift:e.boolean(),alt:e.boolean()}),"A key with ⌘ or Ctrl pressed in the page that its editor did not take: the window's shortcut (⌘⇧M, ⌘K), heard where the keys are in the page. A desktop shell's menu hears them itself, so a page framed there tells none."),"agent/ask":t(e.strictObject({text:e.string().min(1)}),"Words the editor puts before the person's agent, for them to go on and send."),"note/begin":t(e.strictObject({from:s.optional()}),"The person asked for Mark up from the editor: the window shows its tools; `from` is what they pressed, in the page's viewport."),"share/begin":t(e.strictObject({}),"The person asked to share the item on show."),"edit/request":t(e.strictObject({}),"The person tried to change what a read-only page shows, or the page needs the machine: the window offers to wake it."),"editor/place":t(e.strictObject({item:h,place:a}),"Where the person is in an item, as its editor says it, so the window opens it there again; the window keeps it unread."),"export/state":t(i,"How the item's exports go, for its Export button in the window's header."),"editor/state":t(e.strictObject({state:e.enum(r),message:e.string().optional()}),"Whether what the person typed is saved, for the window's header."),"agent/here":t(n,"The project's agent in the item on show and whether its editor follows it, for the window's header; its button asks back with `editor/command`'s `follow` or `unfollow`.")};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from "./jsonrpc.js";
|
|
2
2
|
export * from "./files.js";
|
|
3
3
|
export * from "./editor.js";
|
|
4
|
+
export * from "./presence.js";
|
|
5
|
+
export * from "./kinds.js";
|
|
4
6
|
export * from "./notes.js";
|
|
5
7
|
export * from "./frame.js";
|
|
6
8
|
export * from "./tools.js";
|
|
@@ -14,10 +16,14 @@ export * from "./app.js";
|
|
|
14
16
|
export * from "./routes.js";
|
|
15
17
|
export * from "./blobs.js";
|
|
16
18
|
export * from "./sites.js";
|
|
19
|
+
export * from "./mail.js";
|
|
17
20
|
export * from "./snapshots.js";
|
|
18
21
|
export * from "./sources.js";
|
|
19
22
|
export * from "./shares.js";
|
|
20
23
|
export * from "./account.js";
|
|
21
24
|
export * from "./open.js";
|
|
25
|
+
export * from "./browser-bridge.js";
|
|
22
26
|
export * from "./jobs.js";
|
|
27
|
+
export * from "./peer.js";
|
|
28
|
+
export * from "./shape.js";
|
|
23
29
|
//# sourceMappingURL=index.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
|
-
export*from"./jsonrpc.js";export*from"./files.js";export*from"./editor.js";export*from"./notes.js";export*from"./frame.js";export*from"./tools.js";export*from"./cli.js";export*from"./auth.js";export*from"./registry.js";export*from"./runtimes.js";export*from"./cloud.js";export*from"./teams.js";export*from"./app.js";export*from"./routes.js";export*from"./blobs.js";export*from"./sites.js";export*from"./snapshots.js";export*from"./sources.js";export*from"./shares.js";export*from"./account.js";export*from"./open.js";export*from"./jobs.js";
|
|
2
|
+
export*from"./jsonrpc.js";export*from"./files.js";export*from"./editor.js";export*from"./presence.js";export*from"./kinds.js";export*from"./notes.js";export*from"./frame.js";export*from"./tools.js";export*from"./cli.js";export*from"./auth.js";export*from"./registry.js";export*from"./runtimes.js";export*from"./cloud.js";export*from"./teams.js";export*from"./app.js";export*from"./routes.js";export*from"./blobs.js";export*from"./sites.js";export*from"./mail.js";export*from"./snapshots.js";export*from"./sources.js";export*from"./shares.js";export*from"./account.js";export*from"./open.js";export*from"./browser-bridge.js";export*from"./jobs.js";export*from"./peer.js";export*from"./shape.js";
|
|
@@ -15,12 +15,12 @@ export type JobFailureReason = (typeof JOB_FAILURES)[number];
|
|
|
15
15
|
export declare const JobAboutSchema: z.ZodObject<{
|
|
16
16
|
kind: z.ZodEnum<{
|
|
17
17
|
studio: "studio";
|
|
18
|
-
agent: "agent";
|
|
19
18
|
project: "project";
|
|
19
|
+
agent: "agent";
|
|
20
20
|
piece: "piece";
|
|
21
|
-
website: "website";
|
|
22
21
|
plugin: "plugin";
|
|
23
22
|
skill: "skill";
|
|
23
|
+
website: "website";
|
|
24
24
|
}>;
|
|
25
25
|
id: z.ZodString;
|
|
26
26
|
}, z.core.$strict>;
|
|
@@ -30,12 +30,12 @@ export declare const JobSchema: z.ZodObject<{
|
|
|
30
30
|
about: z.ZodObject<{
|
|
31
31
|
kind: z.ZodEnum<{
|
|
32
32
|
studio: "studio";
|
|
33
|
-
agent: "agent";
|
|
34
33
|
project: "project";
|
|
34
|
+
agent: "agent";
|
|
35
35
|
piece: "piece";
|
|
36
|
-
website: "website";
|
|
37
36
|
plugin: "plugin";
|
|
38
37
|
skill: "skill";
|
|
38
|
+
website: "website";
|
|
39
39
|
}>;
|
|
40
40
|
id: z.ZodString;
|
|
41
41
|
}, z.core.$strict>;
|
|
@@ -43,9 +43,9 @@ export declare const JobSchema: z.ZodObject<{
|
|
|
43
43
|
update: "update";
|
|
44
44
|
install: "install";
|
|
45
45
|
start: "start";
|
|
46
|
-
export: "export";
|
|
47
46
|
download: "download";
|
|
48
47
|
wake: "wake";
|
|
48
|
+
export: "export";
|
|
49
49
|
publish: "publish";
|
|
50
50
|
}>;
|
|
51
51
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -53,8 +53,8 @@ export declare const JobSchema: z.ZodObject<{
|
|
|
53
53
|
failed: "failed";
|
|
54
54
|
running: "running";
|
|
55
55
|
paused: "paused";
|
|
56
|
-
done: "done";
|
|
57
56
|
queued: "queued";
|
|
57
|
+
done: "done";
|
|
58
58
|
cancelled: "cancelled";
|
|
59
59
|
}>;
|
|
60
60
|
completed: z.ZodNumber;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { FileEditorSpec, KindSpec } from "@allyhub/formats";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
/** What a kind's editor offers to export: the file types, the first the default; those that may come with one; how they are made. */
|
|
4
|
+
export declare const ExportOfferSchema: z.ZodObject<{
|
|
5
|
+
types: z.ZodArray<z.ZodString>;
|
|
6
|
+
extras: z.ZodArray<z.ZodString>;
|
|
7
|
+
options: z.ZodArray<z.ZodObject<{
|
|
8
|
+
name: z.ZodString;
|
|
9
|
+
only: z.ZodArray<z.ZodString>;
|
|
10
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
|
+
}, z.core.$strip>>;
|
|
12
|
+
names: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export type ExportOffer = z.infer<typeof ExportOfferSchema>;
|
|
15
|
+
/** An item's kind, its name in the person's language: HostContext's `item.kindInfo`. */
|
|
16
|
+
export declare const KindInfoSchema: z.ZodObject<{
|
|
17
|
+
noun: z.ZodString;
|
|
18
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
19
|
+
color: z.ZodOptional<z.ZodString>;
|
|
20
|
+
editor: z.ZodOptional<z.ZodString>;
|
|
21
|
+
exports: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
types: z.ZodArray<z.ZodString>;
|
|
23
|
+
extras: z.ZodArray<z.ZodString>;
|
|
24
|
+
options: z.ZodArray<z.ZodObject<{
|
|
25
|
+
name: z.ZodString;
|
|
26
|
+
only: z.ZodArray<z.ZodString>;
|
|
27
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
names: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
share: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
name: z.ZodString;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export type KindInfo = z.infer<typeof KindInfoSchema>;
|
|
35
|
+
/**
|
|
36
|
+
* An item's kind as a listing of items gives it: its name in every
|
|
37
|
+
* language its manifest has, for the page to choose from. A listing is
|
|
38
|
+
* answered without the person's language, and recorded once into a
|
|
39
|
+
* snapshot that anyone a share reaches reads in theirs.
|
|
40
|
+
*/
|
|
41
|
+
export declare const ListedKindSchema: z.ZodObject<{
|
|
42
|
+
noun: z.ZodString;
|
|
43
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
44
|
+
color: z.ZodOptional<z.ZodString>;
|
|
45
|
+
editor: z.ZodOptional<z.ZodString>;
|
|
46
|
+
exports: z.ZodOptional<z.ZodObject<{
|
|
47
|
+
types: z.ZodArray<z.ZodString>;
|
|
48
|
+
extras: z.ZodArray<z.ZodString>;
|
|
49
|
+
options: z.ZodArray<z.ZodObject<{
|
|
50
|
+
name: z.ZodString;
|
|
51
|
+
only: z.ZodArray<z.ZodString>;
|
|
52
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53
|
+
}, z.core.$strip>>;
|
|
54
|
+
names: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
55
|
+
}, z.core.$strip>>;
|
|
56
|
+
share: z.ZodOptional<z.ZodBoolean>;
|
|
57
|
+
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
58
|
+
plural: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
59
|
+
starter: z.ZodOptional<z.ZodObject<{
|
|
60
|
+
files: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
61
|
+
entry: z.ZodString;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
export type ListedKind = z.infer<typeof ListedKindSchema>;
|
|
65
|
+
/** A kind of the kind table as a listing gives it to page code. */
|
|
66
|
+
export declare function listedKind(spec: KindSpec): ListedKind;
|
|
67
|
+
/**
|
|
68
|
+
* What a listing gives of a file an editor opens by its name, in a listed
|
|
69
|
+
* kind's shape: its name and heading, its sign and colour, and the editor
|
|
70
|
+
* (no starter, no Export, no Share: a file of a pattern is no item).
|
|
71
|
+
*/
|
|
72
|
+
export declare function listedFileEditor(spec: FileEditorSpec): ListedKind;
|
|
73
|
+
/** A listed kind's name in a language: English where its manifest has none in it, its noun where it has none at all. */
|
|
74
|
+
export declare const kindNameIn: (listed: ListedKind, locale: string) => string;
|
|
75
|
+
/** A listed kind's heading over its items in a language: its plural, else its name. */
|
|
76
|
+
export declare const kindPluralIn: (listed: ListedKind, locale: string) => string;
|
|
77
|
+
/**
|
|
78
|
+
* A new item's files from its kind's starter, in the order they are
|
|
79
|
+
* written, each a path inside its folder, and the one the project's list
|
|
80
|
+
* names (`work/add`): `{{locale}}` in a path or a text is `locale`,
|
|
81
|
+
* `{{name}}` in a path or a text is `name` (as a file is named: a module
|
|
82
|
+
* names its files by it), `{{title}}` in a text is `title` (a JSON string
|
|
83
|
+
* in a YAML or JSON file, which YAML reads back).
|
|
84
|
+
*/
|
|
85
|
+
export declare function starterFiles(starter: NonNullable<ListedKind["starter"]>, title: string, locale: string, name: string): {
|
|
86
|
+
files: {
|
|
87
|
+
path: string;
|
|
88
|
+
text: string;
|
|
89
|
+
}[];
|
|
90
|
+
entry: string;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* An item's kind for HostContext, its name in the person's language; a
|
|
94
|
+
* kind its listing did not describe (a snapshot recorded before kinds were
|
|
95
|
+
* listed) is named by its id and offers nothing.
|
|
96
|
+
*/
|
|
97
|
+
export declare function kindInfoIn(kind: string | undefined, listed: ListedKind | undefined, locale: string): KindInfo;
|
|
98
|
+
//# sourceMappingURL=kinds.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 r}from"zod";const s=r.object({name:r.string().min(1),only:r.array(r.string().min(1)),values:r.array(r.string().min(1)).optional()});export const ExportOfferSchema=r.object({types:r.array(r.string().min(1)),extras:r.array(r.string().min(1)),options:r.array(s),names:r.record(r.string(),r.record(r.string(),r.string())).optional()});const u={noun:r.string().min(1),icon:r.string().min(1).optional(),color:r.string().min(1).optional(),editor:r.string().min(1).optional(),exports:ExportOfferSchema.optional(),share:r.boolean().optional()};export const KindInfoSchema=r.object({name:r.string().min(1),...u}),ListedKindSchema=r.object({name:r.record(r.string(),r.string().min(1)),plural:r.record(r.string(),r.string().min(1)).optional(),starter:r.object({files:r.record(r.string().min(1),r.string()),entry:r.string().min(1)}).optional(),...u});export function listedKind(n){return{name:n.name??{en:n.noun},...n.plural===void 0?{}:{plural:{...n.plural}},...n.starter===void 0?{}:{starter:{files:{...n.starter.files},entry:n.starter.entry}},noun:n.noun,...n.icon===void 0?{}:{icon:n.icon},...n.color===void 0?{}:{color:n.color},...n.editor===void 0?{}:{editor:n.editor},...n.exports===void 0?{}:{exports:{types:[...n.exports.types],extras:[...n.exports.extras],options:n.exports.options.map(o=>({name:o.name,only:[...o.only],...o.values===void 0?{}:{values:[...o.values]}})),...n.exports.names===void 0?{}:{names:Object.fromEntries(Object.entries(n.exports.names).map(([o,e])=>[o,{...e}]))}}},...n.share===void 0?{}:{share:n.share}}}export function listedFileEditor(n){return{name:{...n.name},...n.plural===void 0?{}:{plural:{...n.plural}},noun:n.noun,...n.icon===void 0?{}:{icon:n.icon},...n.color===void 0?{}:{color:n.color},editor:n.id}}export const kindNameIn=(n,o)=>n.name[o]??n.name.en??n.noun,kindPluralIn=(n,o)=>n.plural?.[o]??n.plural?.en??kindNameIn(n,o);const f=/\.(ya?ml|json)$/u;export function starterFiles(n,o,e,i){const a=t=>t.replaceAll("{{locale}}",e).replaceAll("{{name}}",i);return{files:Object.entries(n.files).map(([t,d])=>{const l=a(t),m=f.test(l)?JSON.stringify(o):o;return{path:l,text:d.replaceAll("{{locale}}",e).replaceAll("{{name}}",i).replaceAll("{{title}}",()=>m)}}),entry:a(n.entry)}}export function kindInfoIn(n,o,e){return o===void 0?{name:n??"file",noun:n??"file"}:{name:kindNameIn(o,e),noun:o.noun,...o.icon===void 0?{}:{icon:o.icon},...o.color===void 0?{}:{color:o.color},...o.editor===void 0?{}:{editor:o.editor},...o.exports===void 0?{}:{exports:o.exports},...o.share===void 0?{}:{share:o.share}}}
|