@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
|
@@ -1,30 +1,11 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { type ClientOf } from "./jsonrpc.js";
|
|
3
|
-
import { type NoteSurface } from "./notes.js";
|
|
3
|
+
import { type NoteInset, type NoteSurface } from "./notes.js";
|
|
4
|
+
export { PLACE_PARAM, PlaceSchema, placeIn, placeParams, type Place, } from "./place.js";
|
|
4
5
|
export declare const ThemeSchema: z.ZodEnum<{
|
|
5
6
|
light: "light";
|
|
6
7
|
dark: "dark";
|
|
7
8
|
}>;
|
|
8
|
-
/**
|
|
9
|
-
* Where the person is in an item, as its editor knows it: a video's moment
|
|
10
|
-
* (seconds) or a deck's slide (its id). The editor says it as it changes
|
|
11
|
-
* (`editor/place`), and a host that opens the item again, live or read
|
|
12
|
-
* only, opens it there (HostContext's `place`).
|
|
13
|
-
*/
|
|
14
|
-
export declare const PlaceSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
15
|
-
t: z.ZodNumber;
|
|
16
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
17
|
-
slide: z.ZodString;
|
|
18
|
-
}, z.core.$strict>]>;
|
|
19
|
-
export type Place = z.infer<typeof PlaceSchema>;
|
|
20
|
-
/** The parameters an editors' page's address says a place by: `t=` a video's seconds, `slide=` a deck's slide. */
|
|
21
|
-
export declare const PLACE_PARAMS: readonly ["t", "slide"];
|
|
22
|
-
/** A place as an editors' page's address says it; none, nothing. */
|
|
23
|
-
export declare function placeParams(place: Place | undefined): Partial<Record<(typeof PLACE_PARAMS)[number], string>>;
|
|
24
|
-
/** The place an editors' page's address says (its query, as URLSearchParams reads it), if it says a valid one. */
|
|
25
|
-
export declare function placeIn(q: {
|
|
26
|
-
get(name: string): string | null;
|
|
27
|
-
}): Place | undefined;
|
|
28
9
|
export declare const HostContextSchema: z.ZodObject<{
|
|
29
10
|
locale: z.ZodString;
|
|
30
11
|
theme: z.ZodEnum<{
|
|
@@ -43,32 +24,32 @@ export declare const HostContextSchema: z.ZodObject<{
|
|
|
43
24
|
audienceWindow: z.ZodOptional<z.ZodBoolean>;
|
|
44
25
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
45
26
|
viewer: z.ZodOptional<z.ZodBoolean>;
|
|
46
|
-
place: z.ZodOptional<z.
|
|
47
|
-
t: z.ZodNumber;
|
|
48
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
49
|
-
slide: z.ZodString;
|
|
50
|
-
}, z.core.$strict>]>>;
|
|
27
|
+
place: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
51
28
|
item: z.ZodObject<{
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
doc: "doc";
|
|
56
|
-
sheet: "sheet";
|
|
57
|
-
scenery: "scenery";
|
|
58
|
-
model: "model";
|
|
59
|
-
website: "website";
|
|
60
|
-
}>;
|
|
61
|
-
dir: z.ZodString;
|
|
29
|
+
id: z.ZodString;
|
|
30
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
31
|
+
dir: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
|
|
62
32
|
entry: z.ZodString;
|
|
33
|
+
kindInfo: z.ZodObject<{
|
|
34
|
+
noun: z.ZodString;
|
|
35
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
36
|
+
color: z.ZodOptional<z.ZodString>;
|
|
37
|
+
editor: z.ZodOptional<z.ZodString>;
|
|
38
|
+
exports: z.ZodOptional<z.ZodObject<{
|
|
39
|
+
types: z.ZodArray<z.ZodString>;
|
|
40
|
+
extras: z.ZodArray<z.ZodString>;
|
|
41
|
+
options: z.ZodArray<z.ZodObject<{
|
|
42
|
+
name: z.ZodString;
|
|
43
|
+
only: z.ZodArray<z.ZodString>;
|
|
44
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
45
|
+
}, z.core.$strip>>;
|
|
46
|
+
names: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
share: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
+
name: z.ZodString;
|
|
50
|
+
}, z.core.$strip>;
|
|
63
51
|
}, z.core.$strict>;
|
|
64
|
-
editor: z.
|
|
65
|
-
video: "video";
|
|
66
|
-
slides: "slides";
|
|
67
|
-
doc: "doc";
|
|
68
|
-
sheet: "sheet";
|
|
69
|
-
scenery: "scenery";
|
|
70
|
-
website: "website";
|
|
71
|
-
}>;
|
|
52
|
+
editor: z.ZodString;
|
|
72
53
|
}, z.core.$strict>;
|
|
73
54
|
export type HostContext = z.infer<typeof HostContextSchema>;
|
|
74
55
|
/** What `items/open` shows: a file of the project, or a browser page (as Codex's `open_in_codex` names it). */
|
|
@@ -92,8 +73,8 @@ export declare const ExportStateSchema: z.ZodObject<{
|
|
|
92
73
|
failed: "failed";
|
|
93
74
|
running: "running";
|
|
94
75
|
idle: "idle";
|
|
95
|
-
done: "done";
|
|
96
76
|
queued: "queued";
|
|
77
|
+
done: "done";
|
|
97
78
|
}>;
|
|
98
79
|
percent: z.ZodOptional<z.ZodNumber>;
|
|
99
80
|
open: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -118,32 +99,32 @@ export declare const HOST_METHODS: {
|
|
|
118
99
|
audienceWindow: z.ZodOptional<z.ZodBoolean>;
|
|
119
100
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
120
101
|
viewer: z.ZodOptional<z.ZodBoolean>;
|
|
121
|
-
place: z.ZodOptional<z.
|
|
122
|
-
t: z.ZodNumber;
|
|
123
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
124
|
-
slide: z.ZodString;
|
|
125
|
-
}, z.core.$strict>]>>;
|
|
102
|
+
place: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
126
103
|
item: z.ZodObject<{
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
doc: "doc";
|
|
131
|
-
sheet: "sheet";
|
|
132
|
-
scenery: "scenery";
|
|
133
|
-
model: "model";
|
|
134
|
-
website: "website";
|
|
135
|
-
}>;
|
|
136
|
-
dir: z.ZodString;
|
|
104
|
+
id: z.ZodString;
|
|
105
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
106
|
+
dir: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
|
|
137
107
|
entry: z.ZodString;
|
|
108
|
+
kindInfo: z.ZodObject<{
|
|
109
|
+
noun: z.ZodString;
|
|
110
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
111
|
+
color: z.ZodOptional<z.ZodString>;
|
|
112
|
+
editor: z.ZodOptional<z.ZodString>;
|
|
113
|
+
exports: z.ZodOptional<z.ZodObject<{
|
|
114
|
+
types: z.ZodArray<z.ZodString>;
|
|
115
|
+
extras: z.ZodArray<z.ZodString>;
|
|
116
|
+
options: z.ZodArray<z.ZodObject<{
|
|
117
|
+
name: z.ZodString;
|
|
118
|
+
only: z.ZodArray<z.ZodString>;
|
|
119
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
120
|
+
}, z.core.$strip>>;
|
|
121
|
+
names: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
122
|
+
}, z.core.$strip>>;
|
|
123
|
+
share: z.ZodOptional<z.ZodBoolean>;
|
|
124
|
+
name: z.ZodString;
|
|
125
|
+
}, z.core.$strip>;
|
|
138
126
|
}, z.core.$strict>;
|
|
139
|
-
editor: z.
|
|
140
|
-
video: "video";
|
|
141
|
-
slides: "slides";
|
|
142
|
-
doc: "doc";
|
|
143
|
-
sheet: "sheet";
|
|
144
|
-
scenery: "scenery";
|
|
145
|
-
website: "website";
|
|
146
|
-
}>;
|
|
127
|
+
editor: z.ZodString;
|
|
147
128
|
}, z.core.$strict>>;
|
|
148
129
|
readonly "items/open": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
149
130
|
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -179,18 +160,24 @@ export declare const HOST_METHODS: {
|
|
|
179
160
|
failed: "failed";
|
|
180
161
|
running: "running";
|
|
181
162
|
idle: "idle";
|
|
182
|
-
done: "done";
|
|
183
163
|
queued: "queued";
|
|
164
|
+
done: "done";
|
|
184
165
|
}>;
|
|
185
166
|
percent: z.ZodOptional<z.ZodNumber>;
|
|
186
167
|
open: z.ZodOptional<z.ZodBoolean>;
|
|
187
168
|
}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
|
|
169
|
+
readonly "agent/here": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
170
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
171
|
+
name: z.ZodString;
|
|
172
|
+
doing: z.ZodEnum<{
|
|
173
|
+
looking: "looking";
|
|
174
|
+
editing: "editing";
|
|
175
|
+
}>;
|
|
176
|
+
}, z.core.$strict>>;
|
|
177
|
+
following: z.ZodBoolean;
|
|
178
|
+
}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
|
|
188
179
|
readonly "editor/place": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
189
|
-
place: z.
|
|
190
|
-
t: z.ZodNumber;
|
|
191
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
192
|
-
slide: z.ZodString;
|
|
193
|
-
}, z.core.$strict>]>;
|
|
180
|
+
place: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
194
181
|
}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
|
|
195
182
|
readonly "agent/ask": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
196
183
|
text: z.ZodString;
|
|
@@ -221,16 +208,38 @@ export declare const HOST_METHODS: {
|
|
|
221
208
|
}, z.core.$strict>>;
|
|
222
209
|
};
|
|
223
210
|
export declare const HOST_NOTIFICATIONS: {
|
|
211
|
+
readonly "presence/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
212
|
+
collaborators: z.ZodArray<z.ZodObject<{
|
|
213
|
+
doing: z.ZodOptional<z.ZodEnum<{
|
|
214
|
+
looking: "looking";
|
|
215
|
+
editing: "editing";
|
|
216
|
+
}>>;
|
|
217
|
+
item: z.ZodOptional<z.ZodString>;
|
|
218
|
+
place: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
219
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
220
|
+
path: z.ZodString;
|
|
221
|
+
from: z.ZodOptional<z.ZodInt>;
|
|
222
|
+
to: z.ZodOptional<z.ZodInt>;
|
|
223
|
+
}, z.core.$strict>>;
|
|
224
|
+
id: z.ZodString;
|
|
225
|
+
kind: z.ZodEnum<{
|
|
226
|
+
person: "person";
|
|
227
|
+
agent: "agent";
|
|
228
|
+
}>;
|
|
229
|
+
name: z.ZodString;
|
|
230
|
+
at: z.ZodNumber;
|
|
231
|
+
}, z.core.$strict>>;
|
|
232
|
+
}, z.core.$strict>>;
|
|
224
233
|
readonly "project/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
225
234
|
revision: z.ZodInt;
|
|
226
235
|
}, z.core.$strict>>;
|
|
227
236
|
readonly "check/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
228
237
|
status: z.ZodEnum<{
|
|
238
|
+
off: "off";
|
|
229
239
|
failed: "failed";
|
|
230
240
|
running: "running";
|
|
231
|
-
off: "off";
|
|
232
|
-
waiting: "waiting";
|
|
233
241
|
done: "done";
|
|
242
|
+
waiting: "waiting";
|
|
234
243
|
}>;
|
|
235
244
|
revision: z.ZodInt;
|
|
236
245
|
problems: z.ZodArray<z.ZodObject<{
|
|
@@ -265,8 +274,8 @@ export declare const HOST_NOTIFICATIONS: {
|
|
|
265
274
|
state: z.ZodEnum<{
|
|
266
275
|
failed: "failed";
|
|
267
276
|
running: "running";
|
|
268
|
-
done: "done";
|
|
269
277
|
queued: "queued";
|
|
278
|
+
done: "done";
|
|
270
279
|
cancelled: "cancelled";
|
|
271
280
|
}>;
|
|
272
281
|
progress: z.ZodNumber;
|
|
@@ -286,6 +295,71 @@ export declare const HOST_NOTIFICATIONS: {
|
|
|
286
295
|
share: z.ZodOptional<z.ZodNumber>;
|
|
287
296
|
}, z.core.$strict>>;
|
|
288
297
|
}, z.core.$strict>>;
|
|
298
|
+
readonly "jobs/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
299
|
+
job: z.ZodObject<{
|
|
300
|
+
id: z.ZodString;
|
|
301
|
+
about: z.ZodObject<{
|
|
302
|
+
kind: z.ZodEnum<{
|
|
303
|
+
studio: "studio";
|
|
304
|
+
project: "project";
|
|
305
|
+
agent: "agent";
|
|
306
|
+
piece: "piece";
|
|
307
|
+
plugin: "plugin";
|
|
308
|
+
skill: "skill";
|
|
309
|
+
website: "website";
|
|
310
|
+
}>;
|
|
311
|
+
id: z.ZodString;
|
|
312
|
+
}, z.core.$strict>;
|
|
313
|
+
what: z.ZodEnum<{
|
|
314
|
+
update: "update";
|
|
315
|
+
install: "install";
|
|
316
|
+
start: "start";
|
|
317
|
+
download: "download";
|
|
318
|
+
wake: "wake";
|
|
319
|
+
export: "export";
|
|
320
|
+
publish: "publish";
|
|
321
|
+
}>;
|
|
322
|
+
name: z.ZodOptional<z.ZodString>;
|
|
323
|
+
state: z.ZodEnum<{
|
|
324
|
+
failed: "failed";
|
|
325
|
+
running: "running";
|
|
326
|
+
paused: "paused";
|
|
327
|
+
queued: "queued";
|
|
328
|
+
done: "done";
|
|
329
|
+
cancelled: "cancelled";
|
|
330
|
+
}>;
|
|
331
|
+
completed: z.ZodNumber;
|
|
332
|
+
total: z.ZodOptional<z.ZodNumber>;
|
|
333
|
+
unit: z.ZodEnum<{
|
|
334
|
+
files: "files";
|
|
335
|
+
share: "share";
|
|
336
|
+
bytes: "bytes";
|
|
337
|
+
}>;
|
|
338
|
+
left: z.ZodOptional<z.ZodNumber>;
|
|
339
|
+
stalled: z.ZodOptional<z.ZodBoolean>;
|
|
340
|
+
step: z.ZodOptional<z.ZodEnum<{
|
|
341
|
+
"first-setup": "first-setup";
|
|
342
|
+
}>>;
|
|
343
|
+
cancellable: z.ZodBoolean;
|
|
344
|
+
pausable: z.ZodOptional<z.ZodBoolean>;
|
|
345
|
+
quiet: z.ZodOptional<z.ZodBoolean>;
|
|
346
|
+
retryable: z.ZodBoolean;
|
|
347
|
+
failure: z.ZodOptional<z.ZodObject<{
|
|
348
|
+
reason: z.ZodEnum<{
|
|
349
|
+
other: "other";
|
|
350
|
+
offline: "offline";
|
|
351
|
+
"no-space": "no-space";
|
|
352
|
+
"no-credits": "no-credits";
|
|
353
|
+
unavailable: "unavailable";
|
|
354
|
+
}>;
|
|
355
|
+
details: z.ZodString;
|
|
356
|
+
}, z.core.$strict>>;
|
|
357
|
+
made: z.ZodOptional<z.ZodString>;
|
|
358
|
+
started: z.ZodNumber;
|
|
359
|
+
ended: z.ZodOptional<z.ZodNumber>;
|
|
360
|
+
}, z.core.$strict>;
|
|
361
|
+
item: z.ZodString;
|
|
362
|
+
}, z.core.$strict>>;
|
|
289
363
|
readonly "files/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
290
364
|
watch: z.ZodString;
|
|
291
365
|
changes: z.ZodArray<z.ZodObject<{
|
|
@@ -319,42 +393,62 @@ export declare const HOST_NOTIFICATIONS: {
|
|
|
319
393
|
audienceWindow: z.ZodOptional<z.ZodBoolean>;
|
|
320
394
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
321
395
|
viewer: z.ZodOptional<z.ZodBoolean>;
|
|
322
|
-
place: z.ZodOptional<z.
|
|
323
|
-
t: z.ZodNumber;
|
|
324
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
325
|
-
slide: z.ZodString;
|
|
326
|
-
}, z.core.$strict>]>>;
|
|
396
|
+
place: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
327
397
|
item: z.ZodObject<{
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
doc: "doc";
|
|
332
|
-
sheet: "sheet";
|
|
333
|
-
scenery: "scenery";
|
|
334
|
-
model: "model";
|
|
335
|
-
website: "website";
|
|
336
|
-
}>;
|
|
337
|
-
dir: z.ZodString;
|
|
398
|
+
id: z.ZodString;
|
|
399
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
400
|
+
dir: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
|
|
338
401
|
entry: z.ZodString;
|
|
402
|
+
kindInfo: z.ZodObject<{
|
|
403
|
+
noun: z.ZodString;
|
|
404
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
405
|
+
color: z.ZodOptional<z.ZodString>;
|
|
406
|
+
editor: z.ZodOptional<z.ZodString>;
|
|
407
|
+
exports: z.ZodOptional<z.ZodObject<{
|
|
408
|
+
types: z.ZodArray<z.ZodString>;
|
|
409
|
+
extras: z.ZodArray<z.ZodString>;
|
|
410
|
+
options: z.ZodArray<z.ZodObject<{
|
|
411
|
+
name: z.ZodString;
|
|
412
|
+
only: z.ZodArray<z.ZodString>;
|
|
413
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
414
|
+
}, z.core.$strip>>;
|
|
415
|
+
names: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
416
|
+
}, z.core.$strip>>;
|
|
417
|
+
share: z.ZodOptional<z.ZodBoolean>;
|
|
418
|
+
name: z.ZodString;
|
|
419
|
+
}, z.core.$strip>;
|
|
339
420
|
}, z.core.$strict>;
|
|
340
|
-
editor: z.
|
|
341
|
-
video: "video";
|
|
342
|
-
slides: "slides";
|
|
343
|
-
doc: "doc";
|
|
344
|
-
sheet: "sheet";
|
|
345
|
-
scenery: "scenery";
|
|
346
|
-
website: "website";
|
|
347
|
-
}>;
|
|
421
|
+
editor: z.ZodString;
|
|
348
422
|
}, z.core.$strict>>;
|
|
349
423
|
readonly "editor/command": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
350
|
-
command: z.
|
|
351
|
-
export: "export";
|
|
352
|
-
}>;
|
|
424
|
+
command: z.ZodString;
|
|
353
425
|
open: z.ZodOptional<z.ZodBoolean>;
|
|
354
426
|
}, z.core.$strict>>;
|
|
355
427
|
};
|
|
356
428
|
/** Every method an editor may call on its host. */
|
|
357
429
|
export declare const EDITOR_HOST_METHODS: {
|
|
430
|
+
readonly "presence/get": import("./jsonrpc.js").MethodSpec<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
|
|
431
|
+
collaborators: z.ZodArray<z.ZodObject<{
|
|
432
|
+
doing: z.ZodOptional<z.ZodEnum<{
|
|
433
|
+
looking: "looking";
|
|
434
|
+
editing: "editing";
|
|
435
|
+
}>>;
|
|
436
|
+
item: z.ZodOptional<z.ZodString>;
|
|
437
|
+
place: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
438
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
439
|
+
path: z.ZodString;
|
|
440
|
+
from: z.ZodOptional<z.ZodInt>;
|
|
441
|
+
to: z.ZodOptional<z.ZodInt>;
|
|
442
|
+
}, z.core.$strict>>;
|
|
443
|
+
id: z.ZodString;
|
|
444
|
+
kind: z.ZodEnum<{
|
|
445
|
+
person: "person";
|
|
446
|
+
agent: "agent";
|
|
447
|
+
}>;
|
|
448
|
+
name: z.ZodString;
|
|
449
|
+
at: z.ZodNumber;
|
|
450
|
+
}, z.core.$strict>>;
|
|
451
|
+
}, z.core.$strict>>;
|
|
358
452
|
readonly "host/context": import("./jsonrpc.js").MethodSpec<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
|
|
359
453
|
locale: z.ZodString;
|
|
360
454
|
theme: z.ZodEnum<{
|
|
@@ -373,32 +467,32 @@ export declare const EDITOR_HOST_METHODS: {
|
|
|
373
467
|
audienceWindow: z.ZodOptional<z.ZodBoolean>;
|
|
374
468
|
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
375
469
|
viewer: z.ZodOptional<z.ZodBoolean>;
|
|
376
|
-
place: z.ZodOptional<z.
|
|
377
|
-
t: z.ZodNumber;
|
|
378
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
379
|
-
slide: z.ZodString;
|
|
380
|
-
}, z.core.$strict>]>>;
|
|
470
|
+
place: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodJSONSchema>>;
|
|
381
471
|
item: z.ZodObject<{
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
doc: "doc";
|
|
386
|
-
sheet: "sheet";
|
|
387
|
-
scenery: "scenery";
|
|
388
|
-
model: "model";
|
|
389
|
-
website: "website";
|
|
390
|
-
}>;
|
|
391
|
-
dir: z.ZodString;
|
|
472
|
+
id: z.ZodString;
|
|
473
|
+
kind: z.ZodOptional<z.ZodString>;
|
|
474
|
+
dir: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
|
|
392
475
|
entry: z.ZodString;
|
|
476
|
+
kindInfo: z.ZodObject<{
|
|
477
|
+
noun: z.ZodString;
|
|
478
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
479
|
+
color: z.ZodOptional<z.ZodString>;
|
|
480
|
+
editor: z.ZodOptional<z.ZodString>;
|
|
481
|
+
exports: z.ZodOptional<z.ZodObject<{
|
|
482
|
+
types: z.ZodArray<z.ZodString>;
|
|
483
|
+
extras: z.ZodArray<z.ZodString>;
|
|
484
|
+
options: z.ZodArray<z.ZodObject<{
|
|
485
|
+
name: z.ZodString;
|
|
486
|
+
only: z.ZodArray<z.ZodString>;
|
|
487
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
488
|
+
}, z.core.$strip>>;
|
|
489
|
+
names: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
490
|
+
}, z.core.$strip>>;
|
|
491
|
+
share: z.ZodOptional<z.ZodBoolean>;
|
|
492
|
+
name: z.ZodString;
|
|
493
|
+
}, z.core.$strip>;
|
|
393
494
|
}, z.core.$strict>;
|
|
394
|
-
editor: z.
|
|
395
|
-
video: "video";
|
|
396
|
-
slides: "slides";
|
|
397
|
-
doc: "doc";
|
|
398
|
-
sheet: "sheet";
|
|
399
|
-
scenery: "scenery";
|
|
400
|
-
website: "website";
|
|
401
|
-
}>;
|
|
495
|
+
editor: z.ZodString;
|
|
402
496
|
}, z.core.$strict>>;
|
|
403
497
|
readonly "items/open": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
404
498
|
target: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -434,18 +528,24 @@ export declare const EDITOR_HOST_METHODS: {
|
|
|
434
528
|
failed: "failed";
|
|
435
529
|
running: "running";
|
|
436
530
|
idle: "idle";
|
|
437
|
-
done: "done";
|
|
438
531
|
queued: "queued";
|
|
532
|
+
done: "done";
|
|
439
533
|
}>;
|
|
440
534
|
percent: z.ZodOptional<z.ZodNumber>;
|
|
441
535
|
open: z.ZodOptional<z.ZodBoolean>;
|
|
442
536
|
}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
|
|
537
|
+
readonly "agent/here": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
538
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
539
|
+
name: z.ZodString;
|
|
540
|
+
doing: z.ZodEnum<{
|
|
541
|
+
looking: "looking";
|
|
542
|
+
editing: "editing";
|
|
543
|
+
}>;
|
|
544
|
+
}, z.core.$strict>>;
|
|
545
|
+
following: z.ZodBoolean;
|
|
546
|
+
}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
|
|
443
547
|
readonly "editor/place": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
444
|
-
place: z.
|
|
445
|
-
t: z.ZodNumber;
|
|
446
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
447
|
-
slide: z.ZodString;
|
|
448
|
-
}, z.core.$strict>]>;
|
|
548
|
+
place: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
449
549
|
}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
|
|
450
550
|
readonly "agent/ask": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
451
551
|
text: z.ZodString;
|
|
@@ -543,9 +643,11 @@ export declare const EDITOR_HOST_METHODS: {
|
|
|
543
643
|
};
|
|
544
644
|
/** What an editor holds: its host, as typed calls. */
|
|
545
645
|
export type EditorHost = ClientOf<typeof EDITOR_HOST_METHODS> & {
|
|
546
|
-
/** Tells `files/changed`, `host/context-changed` and the tools' notifications; answers how to stop. */
|
|
646
|
+
/** Tells `files/changed`, `host/context-changed`, `presence/changed` and the tools' notifications; answers how to stop. */
|
|
547
647
|
on<N extends keyof typeof HOST_NOTIFICATIONS>(name: N, listener: (params: z.output<(typeof HOST_NOTIFICATIONS)[N]["params"]>) => void): () => void;
|
|
548
648
|
/** Gives the host what it asks of the editor for a person's notes; answers how to stop. Absent where nobody takes notes. */
|
|
549
649
|
notes?(surface: NoteSurface): () => void;
|
|
650
|
+
/** Gives the host a box of the page that draws itself and answers for its marks; answers how to stop. Absent where nobody takes notes. */
|
|
651
|
+
noteInset?(inset: NoteInset): () => void;
|
|
550
652
|
};
|
|
551
653
|
//# sourceMappingURL=editor.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as t}from"zod";import{
|
|
2
|
+
import{z as t}from"zod";import{FILE_METHODS as r,FILE_NOTIFICATIONS as a,FolderSchema as i,PathSchema as o}from"./files.js";import{method as e,notification as n}from"./jsonrpc.js";import{KindInfoSchema as h}from"./kinds.js";import{NoteRectSchema as c}from"./notes.js";import{PlaceSchema as s}from"./place.js";import{AgentHereSchema as l,PRESENCE_METHODS as m,PRESENCE_NOTIFICATIONS as p}from"./presence.js";import{TOOL_NOTIFICATIONS as d}from"./tools.js";export{PLACE_PARAM,PlaceSchema,placeIn,placeParams}from"./place.js";export const ThemeSchema=t.enum(["light","dark"]),HostContextSchema=t.strictObject({locale:t.string().min(2),theme:ThemeSchema,agent:t.strictObject({name:t.string().min(1)}).optional(),project:t.strictObject({name:t.string().min(1)}),notes:t.boolean().optional(),share:t.boolean().optional(),commands:t.boolean().optional(),audienceWindow:t.boolean().optional(),readOnly:t.boolean().optional(),viewer:t.boolean().optional(),place:s.optional(),item:t.strictObject({id:o,kind:t.string().min(1).optional(),dir:i,entry:o,kindInfo:h}),editor:t.string().min(1)}),OpenTargetSchema=t.discriminatedUnion("type",[t.strictObject({type:t.literal("file"),path:o,line:t.int().positive().optional()}),t.strictObject({type:t.literal("browser"),url:t.url({protocol:/^https?$/u}).optional(),tabId:t.string().min(1).optional()})]),AUDIENCE_WINDOW="allyhub-audience",EDITOR_STATES=["saved","saving","unsaved","error"],EXPORT_BUTTON_STATES=["idle","queued","running","done","failed"],ExportStateSchema=t.strictObject({at:t.enum(EXPORT_BUTTON_STATES),percent:t.number().min(0).max(100).optional(),open:t.boolean().optional()}),HOST_METHODS={"host/context":e(t.strictObject({}),HostContextSchema,"Where the editor runs."),"items/open":e(t.strictObject({target:OpenTargetSchema}),t.strictObject({}),"Shows another item, a file or a page, where the host shows things."),"storage/get":e(t.strictObject({key:t.string().min(1)}),t.strictObject({value:t.unknown()}),"What the editor kept for this person on this computer (a hand sort, what was last seen), or null."),"storage/set":e(t.strictObject({key:t.string().min(1),value:t.unknown()}),t.strictObject({}),"Keeps a value for this person on this computer; null removes it."),"editor/state":e(t.strictObject({state:t.enum(EDITOR_STATES),message:t.string().optional()}),t.strictObject({}),"Says whether what the person typed is saved."),"export/state":e(ExportStateSchema,t.strictObject({}),"Says how the item's exports go, for a host that draws Export itself (HostContext's `commands`)."),"agent/here":e(l,t.strictObject({}),"Says whether the project's agent is in the item and what it does there, and whether the editor follows it, for a host that draws the agent's name itself (HostContext's `commands`); the host's button asks back with `editor/command`'s `follow` or `unfollow`."),"editor/place":e(t.strictObject({place:s}),t.strictObject({}),"Says where the person is in the item (a video's moment, a deck's slide), on a pause, a seek or another slide, never each frame, so the host opens it there again (HostContext's `place`). The place is the editor's, in the shape its `editors` contribution's schema says; the host keeps it unread."),"agent/ask":e(t.strictObject({text:t.string().min(1)}),t.strictObject({delivered:t.boolean()}),"Puts words before the person's agent, for them to go on and send; false where no agent takes them. Never sent by itself."),"note/begin":e(t.strictObject({from:c.optional()}),t.strictObject({begun:t.boolean()}),"Starts the host's Mark up on what is on show, as its own Note button does, so a person can mark anything up for their agent from wherever they are; false where the host has none. Sends nothing."),"share/begin":e(t.strictObject({}),t.strictObject({begun:t.boolean()}),"Opens the host's Share panel for the item on show, as the editor's own Share button does (HostContext's `share`); false where the host shares nothing. Shares nothing by itself."),"edit/request":e(t.strictObject({}),t.strictObject({asked:t.boolean()}),"The person tried to change what a read-only host shows (`readOnly`): the host offers to wake the machine that changes it; false where nothing does."),"tools/call":e(t.strictObject({name:t.string().min(1),arguments:t.record(t.string(),t.unknown()).default({})}),t.strictObject({result:t.unknown()}),"Runs one of the project server's tools (tools.ts's PROJECT_TOOLS), for an editor that needs more than files (a video's preview, a still).")},HOST_NOTIFICATIONS={"host/context-changed":n(HostContextSchema,"The language, theme or agent changed."),"editor/command":n(t.strictObject({command:t.string().min(1),open:t.boolean().optional()}),"The host around the editor asked it to run a command: what its own shortcut does (Export, ⌘E), or a command its extension contributes."),...a,...d,...p},EDITOR_HOST_METHODS={...r,...HOST_METHODS,...m};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
/** A project path: forward slashes, inside the project, no `..`. */
|
|
3
3
|
export declare const PathSchema: z.ZodString;
|
|
4
|
+
/** A folder of the project: a path, or "" for its root. */
|
|
5
|
+
export declare const FolderSchema: z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodString]>;
|
|
4
6
|
/** The sha256 of a file's bytes, or null for a file that is not there. */
|
|
5
7
|
export declare const VersionSchema: z.ZodNullable<z.ZodString>;
|
|
6
8
|
/** Who changed a file, when the host knows. */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as t}from"zod";import{method as e,notification as r}from"./jsonrpc.js";export const PathSchema=t.string().min(1).refine(i=>!i.startsWith("/")&&!i.split("/").includes(".."),{message:"A path is inside the project."}),VersionSchema=t.string().regex(/^[0-9a-f]{64}$/u).nullable(),WriterSchema=t.strictObject({kind:t.enum(["person","agent","tool"]),name:t.string().min(1)});const s=t.strictObject({path:PathSchema,size:t.int().nonnegative(),modified:t.number()});export const FILE_METHODS={"files/read":e(t.strictObject({path:PathSchema}),t.strictObject({text:t.string(),version:VersionSchema}),"A text file, with its version; a file that is not there reads as empty with version null."),"files/write":e(t.strictObject({path:PathSchema,text:t.string(),over:VersionSchema}),t.strictObject({version:VersionSchema}),"Writes a text file over the version read. Errors: conflict (data: { text, version }) when it changed; invalid (data: { problems }) when its format refuses it."),"files/upload":e(t.strictObject({dir:PathSchema,name:t.string().min(1),data:t.base64()}),t.strictObject({path:PathSchema}),"Keeps a file the person added, under a free name in the folder."),"files/url":e(t.strictObject({path:PathSchema}),t.strictObject({url:t.string()}),"An address a page can load the file from (a picture, a video)."),"files/list":e(t.strictObject({dir:t.string()}),t.strictObject({files:t.array(s),dirs:t.array(PathSchema)}),"A folder's files and folders, as on disk."),"files/move":e(t.strictObject({from:PathSchema,to:PathSchema}),t.strictObject({rewritten:t.array(PathSchema)}),"Moves a file or a folder, and rewrites the relative imports and links that pointed at it, as an editor does."),"files/remove":e(t.strictObject({path:PathSchema}),t.strictObject({trash:t.string()}),"Moves a file or folder to the recycle bin (nothing is deleted)."),"files/trash":e(t.strictObject({}),t.strictObject({entries:t.array(t.strictObject({id:t.string(),path:PathSchema,removed:t.number()}))}),"What the recycle bin holds."),"files/restore":e(t.strictObject({id:t.string()}),t.strictObject({path:PathSchema}),"Puts a removed thing back where it was; refused while something is there."),"files/watch":e(t.strictObject({paths:t.array(PathSchema).min(1)}),t.strictObject({watch:t.string()}),"Starts telling `files/changed` for these files or folders."),"files/unwatch":e(t.strictObject({watch:t.string()}),t.strictObject({}),"Stops a watch.")},FILE_NOTIFICATIONS={"files/changed":r(t.strictObject({watch:t.string(),changes:t.array(t.strictObject({path:PathSchema,version:VersionSchema,by:WriterSchema.optional()}))}),"Files under a watch changed, other than by this client's own writes.")};
|
|
2
|
+
import{z as t}from"zod";import{method as e,notification as r}from"./jsonrpc.js";export const PathSchema=t.string().min(1).refine(i=>!i.startsWith("/")&&!i.split("/").includes(".."),{message:"A path is inside the project."}),FolderSchema=t.union([t.literal(""),PathSchema]),VersionSchema=t.string().regex(/^[0-9a-f]{64}$/u).nullable(),WriterSchema=t.strictObject({kind:t.enum(["person","agent","tool"]),name:t.string().min(1)});const s=t.strictObject({path:PathSchema,size:t.int().nonnegative(),modified:t.number()});export const FILE_METHODS={"files/read":e(t.strictObject({path:PathSchema}),t.strictObject({text:t.string(),version:VersionSchema}),"A text file, with its version; a file that is not there reads as empty with version null."),"files/write":e(t.strictObject({path:PathSchema,text:t.string(),over:VersionSchema}),t.strictObject({version:VersionSchema}),"Writes a text file over the version read. Errors: conflict (data: { text, version }) when it changed; invalid (data: { problems }) when its format refuses it."),"files/upload":e(t.strictObject({dir:PathSchema,name:t.string().min(1),data:t.base64()}),t.strictObject({path:PathSchema}),"Keeps a file the person added, under a free name in the folder."),"files/url":e(t.strictObject({path:PathSchema}),t.strictObject({url:t.string()}),"An address a page can load the file from (a picture, a video)."),"files/list":e(t.strictObject({dir:t.string()}),t.strictObject({files:t.array(s),dirs:t.array(PathSchema)}),"A folder's files and folders, as on disk."),"files/move":e(t.strictObject({from:PathSchema,to:PathSchema}),t.strictObject({rewritten:t.array(PathSchema)}),"Moves a file or a folder, and rewrites the relative imports and links that pointed at it, as an editor does."),"files/remove":e(t.strictObject({path:PathSchema}),t.strictObject({trash:t.string()}),"Moves a file or folder to the recycle bin (nothing is deleted)."),"files/trash":e(t.strictObject({}),t.strictObject({entries:t.array(t.strictObject({id:t.string(),path:PathSchema,removed:t.number()}))}),"What the recycle bin holds."),"files/restore":e(t.strictObject({id:t.string()}),t.strictObject({path:PathSchema}),"Puts a removed thing back where it was; refused while something is there."),"files/watch":e(t.strictObject({paths:t.array(PathSchema).min(1)}),t.strictObject({watch:t.string()}),"Starts telling `files/changed` for these files or folders."),"files/unwatch":e(t.strictObject({watch:t.string()}),t.strictObject({}),"Stops a watch.")},FILE_NOTIFICATIONS={"files/changed":r(t.strictObject({watch:t.string(),changes:t.array(t.strictObject({path:PathSchema,version:VersionSchema,by:WriterSchema.optional()}))}),"Files under a watch changed, other than by this client's own writes.")};
|