@allyhub/sdk 0.8.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/NOTICE +46 -49
- package/dist/dom.d.ts +1 -209
- package/dist/dom.js +1 -1
- package/dist/image.d.ts +2 -0
- package/dist/image.js +2 -0
- package/dist/index.d.ts +1 -21
- package/dist/index.js +1 -1
- package/dist/media.d.ts +1 -5
- package/dist/media.js +1 -1
- package/dist/node_modules/@allyhub/audio/dist/levels.d.ts +4 -5
- package/dist/node_modules/@allyhub/audio/dist/levels.js +1 -1
- package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.d.ts +1 -6
- package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.js +1 -1
- package/dist/node_modules/@allyhub/audio/package.json +1 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-file.js +1 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.d.ts +4 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
- package/dist/node_modules/@allyhub/chart/dist/chart.d.ts +22 -0
- package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/chart/package.json +1 -1
- package/dist/node_modules/@allyhub/diagnostics/LICENSE +241 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/fact.d.ts +37 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/fact.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/index.d.ts +4 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +43 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/problem.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/rules.d.ts +30 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/package.json +14 -0
- package/dist/node_modules/@allyhub/formats/dist/contributed.d.ts +126 -0
- package/dist/node_modules/@allyhub/formats/dist/contributed.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +7 -12
- package/dist/node_modules/@allyhub/formats/dist/data/reference.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/script.d.ts +9 -4
- package/dist/node_modules/@allyhub/formats/dist/data/script.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +107 -83
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +185 -8
- package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/website.d.ts +2 -1
- package/dist/node_modules/@allyhub/formats/dist/data/website.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
- package/dist/node_modules/@allyhub/formats/dist/data/work.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/extension.d.ts +91 -0
- package/dist/node_modules/@allyhub/formats/dist/extension.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/files.d.ts +51 -0
- package/dist/node_modules/@allyhub/formats/dist/files.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/index.d.ts +5 -1
- package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/items.d.ts +226 -90
- package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +7 -1
- package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +96 -42
- package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
- package/dist/node_modules/@allyhub/formats/package.json +1 -1
- package/dist/node_modules/@allyhub/image-draw/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-draw/dist/context.d.ts +5 -0
- package/dist/node_modules/@allyhub/image-draw/dist/context.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/contrast.d.ts +13 -0
- package/dist/node_modules/@allyhub/image-draw/dist/contrast.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/env.d.ts +112 -0
- package/dist/node_modules/@allyhub/image-draw/dist/env.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/errors.d.ts +20 -0
- package/dist/node_modules/@allyhub/image-draw/dist/errors.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/fonts.d.ts +110 -0
- package/dist/node_modules/@allyhub/image-draw/dist/fonts.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/guards.d.ts +32 -0
- package/dist/node_modules/@allyhub/image-draw/dist/guards.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/hash.d.ts +3 -0
- package/dist/node_modules/@allyhub/image-draw/dist/hash.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/inspect.d.ts +113 -0
- package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +3 -0
- package/dist/node_modules/@allyhub/image-draw/dist/layer-style.d.ts +151 -0
- package/dist/node_modules/@allyhub/image-draw/dist/layer-style.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/paint.d.ts +29 -0
- package/dist/node_modules/@allyhub/image-draw/dist/paint.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/pictures.d.ts +39 -0
- package/dist/node_modules/@allyhub/image-draw/dist/pictures.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/plan.d.ts +52 -0
- package/dist/node_modules/@allyhub/image-draw/dist/plan.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/reads.d.ts +145 -0
- package/dist/node_modules/@allyhub/image-draw/dist/reads.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/shape-path.d.ts +26 -0
- package/dist/node_modules/@allyhub/image-draw/dist/shape-path.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/stage.d.ts +56 -0
- package/dist/node_modules/@allyhub/image-draw/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/styles.d.ts +35 -0
- package/dist/node_modules/@allyhub/image-draw/dist/styles.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/tone.d.ts +53 -0
- package/dist/node_modules/@allyhub/image-draw/dist/tone.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/package.json +14 -0
- package/dist/node_modules/@allyhub/image-measure/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-measure/dist/contrast.d.ts +43 -0
- package/dist/node_modules/@allyhub/image-measure/dist/contrast.js +2 -0
- package/dist/node_modules/@allyhub/image-measure/dist/layout.d.ts +186 -0
- package/dist/node_modules/@allyhub/image-measure/dist/layout.js +5 -0
- package/dist/node_modules/@allyhub/image-measure/package.json +14 -0
- package/dist/node_modules/@allyhub/image-sdk/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.d.ts +13 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.js +2 -0
- package/dist/{define.d.ts → node_modules/@allyhub/image-sdk/dist/define.d.ts} +21 -4
- package/dist/node_modules/@allyhub/image-sdk/dist/define.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/dom.d.ts +210 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/dom.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/fill.d.ts +21 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/fill.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/group.d.ts +17 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/group.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/index.d.ts +166 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/media.d.ts +6 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/media.js +2 -0
- package/dist/{messages.d.ts → node_modules/@allyhub/image-sdk/dist/messages.d.ts} +1 -1
- package/dist/node_modules/@allyhub/image-sdk/dist/picture.d.ts +59 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/picture.js +2 -0
- package/dist/{props.d.ts → node_modules/@allyhub/image-sdk/dist/props.d.ts} +4 -4
- package/dist/node_modules/@allyhub/image-sdk/dist/shape.d.ts +34 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/shape.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/stack.d.ts +16 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/stack.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.d.ts +38 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.js +2 -0
- package/dist/{written.js → node_modules/@allyhub/image-sdk/dist/written.js} +1 -1
- package/dist/node_modules/@allyhub/image-sdk/package.json +19 -0
- package/dist/node_modules/@allyhub/measure/LICENSE +241 -0
- package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +195 -0
- package/dist/node_modules/@allyhub/measure/dist/compare.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +8 -0
- package/dist/node_modules/@allyhub/measure/dist/grain.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/image.d.ts +16 -0
- package/dist/node_modules/@allyhub/measure/dist/image.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/index.d.ts +4 -0
- package/dist/node_modules/@allyhub/measure/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/measure/package.json +13 -0
- package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.d.ts +4 -1
- package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.d.ts +15 -1
- package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
- package/dist/node_modules/@allyhub/piece/LICENSE +241 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.d.ts +1 -9
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/context.d.ts +39 -0
- package/dist/node_modules/@allyhub/piece/dist/context.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.d.ts +2 -2
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/export.d.ts +27 -10
- package/dist/node_modules/@allyhub/piece/dist/export.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/formats.d.ts +12 -68
- package/dist/node_modules/@allyhub/piece/dist/formats.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/gen.d.ts +104 -0
- package/dist/node_modules/@allyhub/piece/dist/index.d.ts +26 -0
- package/dist/node_modules/@allyhub/piece/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/layer-style.d.ts +1558 -0
- package/dist/node_modules/@allyhub/piece/dist/layer-style.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +389 -0
- package/dist/node_modules/@allyhub/piece/dist/layer.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +437 -0
- package/dist/node_modules/@allyhub/piece/dist/layout.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.d.ts +1 -1
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.d.ts +39 -9
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.js +1 -1
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.d.ts +6 -0
- package/dist/node_modules/@allyhub/piece/dist/names.d.ts +26 -0
- package/dist/node_modules/@allyhub/piece/dist/names.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +21 -0
- package/dist/node_modules/@allyhub/piece/dist/page/console.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +3 -0
- package/dist/node_modules/@allyhub/piece/dist/page/index.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +4 -0
- package/dist/node_modules/@allyhub/piece/dist/page/locate.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/picture.d.ts +62 -0
- package/dist/node_modules/@allyhub/piece/dist/picture.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/piece.d.ts +15 -0
- package/dist/node_modules/@allyhub/piece/dist/piece.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/script.d.ts +9 -4
- package/dist/node_modules/@allyhub/piece/dist/script.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/source.d.ts +131 -0
- package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +291 -0
- package/dist/node_modules/@allyhub/piece/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/version.d.ts +15 -0
- package/dist/node_modules/@allyhub/piece/dist/version.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.d.ts +1 -20
- package/dist/node_modules/@allyhub/piece/package.json +18 -0
- package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +271 -0
- package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +3 -10
- package/dist/node_modules/@allyhub/protocol/dist/app.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +19 -1
- package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.d.ts +337 -0
- package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +12 -1
- package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +155 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +235 -133
- package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/files.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +65 -197
- package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +8 -0
- package/dist/node_modules/@allyhub/protocol/dist/image.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +6 -0
- package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +6 -6
- package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +98 -0
- package/dist/node_modules/@allyhub/protocol/dist/kinds.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +274 -0
- package/dist/node_modules/@allyhub/protocol/dist/mail.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +77 -91
- package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +59 -0
- package/dist/node_modules/@allyhub/protocol/dist/peer.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +21 -0
- package/dist/node_modules/@allyhub/protocol/dist/place.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +125 -0
- package/dist/node_modules/@allyhub/protocol/dist/presence.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +35 -0
- package/dist/node_modules/@allyhub/protocol/dist/shape.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +2 -8
- package/dist/node_modules/@allyhub/protocol/dist/shares.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +70 -40
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +224 -177
- package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/protocol/package.json +5 -1
- package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +14 -0
- package/dist/node_modules/@allyhub/runtimes/dist/declared.js +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +15 -0
- package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.js +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/packages.js +3 -3
- package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +1 -0
- package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/manifest.json +0 -82
- package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/define.d.ts +2 -0
- package/dist/node_modules/@allyhub/scenery/dist/define.js +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/index.d.ts +2 -2
- package/dist/node_modules/@allyhub/scenery/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/moire.d.ts +45 -5
- package/dist/node_modules/@allyhub/scenery/dist/moire.js +2 -2
- package/dist/node_modules/@allyhub/scenery/dist/phone.d.ts +4 -3
- package/dist/node_modules/@allyhub/scenery/dist/phone.js +1 -1
- package/dist/node_modules/@allyhub/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/code.d.ts +4 -4
- package/dist/node_modules/@allyhub/sheet/dist/api/code.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/workbook.d.ts +15 -11
- package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/engine.d.ts +70 -0
- package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.d.ts +6 -0
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.d.ts +3 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.d.ts +9 -0
- package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/server.d.ts +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/types.d.ts +6 -0
- package/dist/node_modules/@allyhub/sheet/dist/calc/types.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/chart.d.ts +9 -0
- package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/file.d.ts +5 -0
- package/dist/node_modules/@allyhub/sheet/dist/file.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/ast.d.ts +12 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/move.d.ts +5 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/move.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/parse.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/print.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/generated.d.ts +5 -19
- package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/import.d.ts +3 -1
- package/dist/node_modules/@allyhub/sheet/dist/import.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/index.d.ts +5 -5
- package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/inspect.d.ts +88 -3
- package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/patch.d.ts +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/patch.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/printed.d.ts +19 -0
- package/dist/node_modules/@allyhub/sheet/dist/printed.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/sdk.d.ts +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/sdk.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/values.d.ts +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/values.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/workbook.d.ts +8 -6
- package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/write.js +15 -15
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.d.ts +6 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.d.ts +2 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.d.ts +3 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.d.ts +7 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.js +3 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.d.ts +6 -0
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.d.ts +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.d.ts +12 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.js +3 -2
- package/dist/node_modules/@allyhub/sheet/package.json +5 -1
- package/dist/node_modules/@allyhub/slides-core/dist/animation.d.ts +23 -7
- package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/api.d.ts +101 -11
- package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
- package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/chart-api.d.ts +18 -1
- package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/code.d.ts +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/connect.d.ts +62 -0
- package/dist/node_modules/@allyhub/slides-core/dist/connect.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/enums.d.ts +24 -0
- package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/fact.d.ts +223 -0
- package/dist/node_modules/@allyhub/slides-core/dist/fact.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/file.d.ts +4 -4
- package/dist/node_modules/@allyhub/slides-core/dist/file.js +2 -2
- package/dist/node_modules/@allyhub/slides-core/dist/index.d.ts +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/measure.d.ts +4 -2
- package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/merge.d.ts +5 -5
- package/dist/node_modules/@allyhub/slides-core/dist/merge.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/model.d.ts +25 -4
- package/dist/node_modules/@allyhub/slides-core/dist/office.d.ts +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/path.d.ts +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.d.ts +20 -11
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/sdk.d.ts +18 -0
- package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/stage.d.ts +28 -11
- package/dist/node_modules/@allyhub/slides-core/dist/units.d.ts +3 -6
- package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/package.json +5 -1
- package/dist/node_modules/@allyhub/video-core/dist/audio-types.d.ts +1 -2
- package/dist/node_modules/@allyhub/video-core/dist/captions.d.ts +1 -10
- package/dist/node_modules/@allyhub/video-core/dist/captions.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/check.d.ts +62 -0
- package/dist/node_modules/@allyhub/video-core/dist/check.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/cut-report.d.ts +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/cut-report.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/edits.d.ts +3 -3
- package/dist/node_modules/@allyhub/video-core/dist/edits.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/fact.d.ts +21 -762
- package/dist/node_modules/@allyhub/video-core/dist/fact.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/footage-motion.d.ts +3 -2
- package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/index.d.ts +3 -17
- package/dist/node_modules/@allyhub/video-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/measure.d.ts +72 -423
- package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -4
- package/dist/node_modules/@allyhub/video-core/dist/mix-plan.d.ts +44 -0
- package/dist/node_modules/@allyhub/video-core/dist/mix-plan.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/motion.d.ts +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/piece.d.ts +24 -432
- package/dist/node_modules/@allyhub/video-core/dist/piece.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/placement.d.ts +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/schema.d.ts +8 -14
- package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/script-edit.d.ts +11 -6
- package/dist/node_modules/@allyhub/video-core/dist/script-edit.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/seams.d.ts +2 -3
- package/dist/node_modules/@allyhub/video-core/dist/sound-under.d.ts +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/sound-under.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/speech.d.ts +2 -4
- package/dist/node_modules/@allyhub/video-core/dist/speech.js +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/stage.d.ts +52 -0
- package/dist/node_modules/@allyhub/video-core/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/timeline.d.ts +18 -136
- package/dist/node_modules/@allyhub/video-core/dist/timeline.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/timing.d.ts +3 -3
- package/dist/node_modules/@allyhub/video-core/dist/timing.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/transcript.d.ts +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/transcript.js +1 -1
- package/dist/node_modules/@allyhub/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub/video-sdk/LICENSE +241 -0
- package/dist/node_modules/@allyhub/video-sdk/NOTICE +118 -0
- package/dist/{free.d.ts → node_modules/@allyhub/video-sdk/dist/free.d.ts} +14 -10
- package/dist/node_modules/@allyhub/video-sdk/dist/free.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/index.d.ts +28 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/index.js +2 -0
- package/dist/{input.d.ts → node_modules/@allyhub/video-sdk/dist/input.d.ts} +76 -22
- package/dist/node_modules/@allyhub/video-sdk/dist/input.js +2 -0
- package/dist/{module.d.ts → node_modules/@allyhub/video-sdk/dist/module.d.ts} +6 -4
- package/dist/node_modules/@allyhub/video-sdk/dist/module.js +2 -0
- package/dist/{parts.d.ts → node_modules/@allyhub/video-sdk/dist/parts.d.ts} +15 -6
- package/dist/node_modules/@allyhub/video-sdk/dist/parts.js +2 -0
- package/dist/{phone.d.ts → node_modules/@allyhub/video-sdk/dist/phone.d.ts} +12 -5
- package/dist/node_modules/@allyhub/video-sdk/dist/phone.js +2 -0
- package/dist/{piece.d.ts → node_modules/@allyhub/video-sdk/dist/piece.d.ts} +26 -16
- package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/route.d.ts +46 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/route.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/scenery.d.ts +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/scenery.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/package.json +19 -0
- package/dist/scenery.d.ts +1 -1
- package/dist/scenery.js +1 -1
- package/dist/sheets.d.ts +1 -1
- package/dist/sheets.js +1 -1
- package/dist/slides.d.ts +1 -9
- package/dist/slides.js +1 -1
- package/docs/README.md +10 -6
- package/docs/batches.md +5 -5
- package/docs/canvas.md +28 -0
- package/docs/contract.md +2 -2
- package/docs/defaults.md +298 -22
- package/docs/docs.md +80 -66
- package/docs/footage.md +7 -7
- package/docs/image.md +165 -0
- package/docs/layers.md +22 -13
- package/docs/modeling.md +4 -4
- package/docs/pictures.md +65 -0
- package/docs/project.md +51 -31
- package/docs/scenery.md +14 -15
- package/docs/sheets.md +46 -28
- package/docs/slides.md +121 -67
- package/docs/sound.md +3 -3
- package/docs/speech.md +8 -8
- package/docs/video.md +16 -13
- package/docs/websites.md +4 -4
- package/docs/x.md +73 -0
- package/package.json +7 -2
- package/dist/define.js +0 -2
- package/dist/free.js +0 -2
- package/dist/input.js +0 -2
- package/dist/module.js +0 -2
- package/dist/node_modules/@allyhub/formats/dist/data/comments.d.ts +0 -94
- package/dist/node_modules/@allyhub/formats/dist/data/comments.js +0 -2
- package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package-lock.json +0 -227
- package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package.json +0 -8
- package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package-lock.json +0 -105
- package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package.json +0 -8
- package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package-lock.json +0 -128
- package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package.json +0 -9
- package/dist/node_modules/@allyhub/video-core/dist/export.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/formats.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/gen.d.ts +0 -37
- package/dist/node_modules/@allyhub/video-core/dist/problem.d.ts +0 -278
- package/dist/node_modules/@allyhub/video-core/dist/problem.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/script.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/source.d.ts +0 -7
- package/dist/parts.js +0 -2
- package/dist/phone.js +0 -2
- package/dist/piece.js +0 -2
- /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.js +0 -0
- /package/dist/{fit.d.ts → node_modules/@allyhub/image-sdk/dist/fit.d.ts} +0 -0
- /package/dist/{fit.js → node_modules/@allyhub/image-sdk/dist/fit.js} +0 -0
- /package/dist/{messages.js → node_modules/@allyhub/image-sdk/dist/messages.js} +0 -0
- /package/dist/{props.js → node_modules/@allyhub/image-sdk/dist/props.js} +0 -0
- /package/dist/{text.d.ts → node_modules/@allyhub/image-sdk/dist/text.d.ts} +0 -0
- /package/dist/{text.js → node_modules/@allyhub/image-sdk/dist/text.js} +0 -0
- /package/dist/{written.d.ts → node_modules/@allyhub/image-sdk/dist/written.d.ts} +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/gen.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/source.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.js +0 -0
- /package/dist/{anim.d.ts → node_modules/@allyhub/video-sdk/dist/anim.d.ts} +0 -0
- /package/dist/{anim.js → node_modules/@allyhub/video-sdk/dist/anim.js} +0 -0
- /package/dist/{noise.d.ts → node_modules/@allyhub/video-sdk/dist/noise.d.ts} +0 -0
- /package/dist/{noise.js → node_modules/@allyhub/video-sdk/dist/noise.js} +0 -0
- /package/dist/{paths.d.ts → node_modules/@allyhub/video-sdk/dist/paths.d.ts} +0 -0
- /package/dist/{paths.js → node_modules/@allyhub/video-sdk/dist/paths.js} +0 -0
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** What a mailbox keeps and lists, each checked by the server. */
|
|
3
|
+
export declare const MAIL_LIMITS: {
|
|
4
|
+
/** The most messages a search answers. */
|
|
5
|
+
readonly listed: 100;
|
|
6
|
+
/** How much of a message's text is kept to search and read, in bytes. */
|
|
7
|
+
readonly textBytes: number;
|
|
8
|
+
/** Aliases a mailbox may have. */
|
|
9
|
+
readonly aliases: 20;
|
|
10
|
+
/** Recipients of a message sent, To and Cc together: Email Service's own limit. */
|
|
11
|
+
readonly recipients: 50;
|
|
12
|
+
/** A subject's length: RFC 5322's line. */
|
|
13
|
+
readonly subject: 998;
|
|
14
|
+
/** A body sent, its text or its HTML, in characters. */
|
|
15
|
+
readonly body: number;
|
|
16
|
+
/** Attachments of a message sent, together, in bytes before base64. */
|
|
17
|
+
readonly attachmentBytes: number;
|
|
18
|
+
/** Attachments of a message sent: Email Service's own limit. */
|
|
19
|
+
readonly attachments: 32;
|
|
20
|
+
/** The days a mailbox may keep mail. */
|
|
21
|
+
readonly retentionDays: {
|
|
22
|
+
readonly min: 1;
|
|
23
|
+
readonly max: 365;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
/** The words a display name must hold: a recipient knows an AI agent writes to them. */
|
|
27
|
+
export declare const MAIL_AGENT_WORDS = "AI agent";
|
|
28
|
+
/** A name in an address: the person's, an alias's or a team's. */
|
|
29
|
+
export declare const MAIL_NAME_LENGTH: {
|
|
30
|
+
readonly min: 2;
|
|
31
|
+
readonly max: 40;
|
|
32
|
+
};
|
|
33
|
+
/** Why a name cannot be one, in English (the API's and the CLI's); undefined when it can. */
|
|
34
|
+
export declare function mailNameProblem(name: string): string | undefined;
|
|
35
|
+
export declare const MailNameSchema: z.ZodString;
|
|
36
|
+
export declare const MAIL_PATH = "/api/mail";
|
|
37
|
+
/** A person's settings of their mailbox (PUT), said by the person, never by an agent. */
|
|
38
|
+
export declare const MAIL_SETTINGS_PATH = "/api/mail/settings";
|
|
39
|
+
/** Added to the settings' address by Studio's window when the person changes them there, as a site's live version is (`SITE_PERSON_QUERY`). */
|
|
40
|
+
export declare const MAIL_PERSON_QUERY = "person=1";
|
|
41
|
+
export declare const MAIL_SEND_PATH = "/api/mail/send";
|
|
42
|
+
export declare const MAIL_ALIASES_PATH = "/api/mail/aliases";
|
|
43
|
+
export declare const MAIL_MESSAGES_PATH = "/api/mail/messages";
|
|
44
|
+
export declare const mailMessagePath: (id: string) => string;
|
|
45
|
+
/** The message as it came, `message/rfc822`. */
|
|
46
|
+
export declare const mailRawPath: (id: string) => string;
|
|
47
|
+
/** A reply to a message, in its thread. */
|
|
48
|
+
export declare const mailReplyPath: (id: string) => string;
|
|
49
|
+
/** Whom a mailbox's agents may write to: no one, the organization's people and mailboxes, or anyone. */
|
|
50
|
+
export declare const MAIL_SEND_POLICIES: readonly ["off", "team", "anyone"];
|
|
51
|
+
/** Received, or sent. */
|
|
52
|
+
export declare const MAIL_DIRECTIONS: readonly ["in", "out"];
|
|
53
|
+
export declare const MAIL_ADDRESS_KINDS: readonly ["main", "alias"];
|
|
54
|
+
export declare const MailAddressSchema: z.ZodObject<{
|
|
55
|
+
address: z.ZodString;
|
|
56
|
+
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
57
|
+
main: "main";
|
|
58
|
+
alias: "alias";
|
|
59
|
+
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
60
|
+
project: z.ZodNullable<z.ZodString>;
|
|
61
|
+
createdAt: z.ZodString;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
export type MailAddress = z.infer<typeof MailAddressSchema>;
|
|
64
|
+
/** The caller's mailbox in its organization, made the first time it is asked for. */
|
|
65
|
+
export declare const MailboxSchema: z.ZodObject<{
|
|
66
|
+
domain: z.ZodString;
|
|
67
|
+
displayName: z.ZodString;
|
|
68
|
+
retentionDays: z.ZodNumber;
|
|
69
|
+
sendPolicy: z.ZodUnion<readonly [z.ZodEnum<{
|
|
70
|
+
off: "off";
|
|
71
|
+
team: "team";
|
|
72
|
+
anyone: "anyone";
|
|
73
|
+
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
74
|
+
sendsLeft: z.ZodNumber;
|
|
75
|
+
sendsPerDay: z.ZodOptional<z.ZodNumber>;
|
|
76
|
+
addresses: z.ZodArray<z.ZodObject<{
|
|
77
|
+
address: z.ZodString;
|
|
78
|
+
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
79
|
+
main: "main";
|
|
80
|
+
alias: "alias";
|
|
81
|
+
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
82
|
+
project: z.ZodNullable<z.ZodString>;
|
|
83
|
+
createdAt: z.ZodString;
|
|
84
|
+
}, z.core.$strip>>;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
export type Mailbox = z.infer<typeof MailboxSchema>;
|
|
87
|
+
export declare const MailAliasCreateSchema: z.ZodObject<{
|
|
88
|
+
name: z.ZodString;
|
|
89
|
+
project: z.ZodOptional<z.ZodString>;
|
|
90
|
+
}, z.core.$strict>;
|
|
91
|
+
export type MailAliasCreate = z.infer<typeof MailAliasCreateSchema>;
|
|
92
|
+
export declare const MailPersonSchema: z.ZodObject<{
|
|
93
|
+
address: z.ZodString;
|
|
94
|
+
name: z.ZodString;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
export type MailPerson = z.infer<typeof MailPersonSchema>;
|
|
97
|
+
/** A message as a search lists it. */
|
|
98
|
+
export declare const MailSummarySchema: z.ZodObject<{
|
|
99
|
+
id: z.ZodString;
|
|
100
|
+
direction: z.ZodUnion<readonly [z.ZodEnum<{
|
|
101
|
+
out: "out";
|
|
102
|
+
in: "in";
|
|
103
|
+
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
104
|
+
receivedAt: z.ZodString;
|
|
105
|
+
to: z.ZodString;
|
|
106
|
+
tag: z.ZodNullable<z.ZodString>;
|
|
107
|
+
from: z.ZodNullable<z.ZodObject<{
|
|
108
|
+
address: z.ZodString;
|
|
109
|
+
name: z.ZodString;
|
|
110
|
+
}, z.core.$strip>>;
|
|
111
|
+
recipients: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
112
|
+
address: z.ZodString;
|
|
113
|
+
name: z.ZodString;
|
|
114
|
+
}, z.core.$strip>>>;
|
|
115
|
+
subject: z.ZodString;
|
|
116
|
+
threadId: z.ZodString;
|
|
117
|
+
size: z.ZodNumber;
|
|
118
|
+
}, z.core.$strip>;
|
|
119
|
+
export type MailSummary = z.infer<typeof MailSummarySchema>;
|
|
120
|
+
export declare const MailLinkSchema: z.ZodObject<{
|
|
121
|
+
href: z.ZodString;
|
|
122
|
+
text: z.ZodString;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
export declare const MailHeaderSchema: z.ZodObject<{
|
|
125
|
+
name: z.ZodString;
|
|
126
|
+
value: z.ZodString;
|
|
127
|
+
}, z.core.$strip>;
|
|
128
|
+
export declare const MailAttachmentSchema: z.ZodObject<{
|
|
129
|
+
name: z.ZodNullable<z.ZodString>;
|
|
130
|
+
type: z.ZodString;
|
|
131
|
+
size: z.ZodNumber;
|
|
132
|
+
}, z.core.$strip>;
|
|
133
|
+
/** A message read whole: what was searched, and the rest of what it says. */
|
|
134
|
+
export declare const MailMessageSchema: z.ZodObject<{
|
|
135
|
+
id: z.ZodString;
|
|
136
|
+
direction: z.ZodUnion<readonly [z.ZodEnum<{
|
|
137
|
+
out: "out";
|
|
138
|
+
in: "in";
|
|
139
|
+
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
140
|
+
receivedAt: z.ZodString;
|
|
141
|
+
to: z.ZodString;
|
|
142
|
+
tag: z.ZodNullable<z.ZodString>;
|
|
143
|
+
from: z.ZodNullable<z.ZodObject<{
|
|
144
|
+
address: z.ZodString;
|
|
145
|
+
name: z.ZodString;
|
|
146
|
+
}, z.core.$strip>>;
|
|
147
|
+
recipients: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
148
|
+
address: z.ZodString;
|
|
149
|
+
name: z.ZodString;
|
|
150
|
+
}, z.core.$strip>>>;
|
|
151
|
+
subject: z.ZodString;
|
|
152
|
+
threadId: z.ZodString;
|
|
153
|
+
size: z.ZodNumber;
|
|
154
|
+
cc: z.ZodArray<z.ZodObject<{
|
|
155
|
+
address: z.ZodString;
|
|
156
|
+
name: z.ZodString;
|
|
157
|
+
}, z.core.$strip>>;
|
|
158
|
+
replyTo: z.ZodArray<z.ZodObject<{
|
|
159
|
+
address: z.ZodString;
|
|
160
|
+
name: z.ZodString;
|
|
161
|
+
}, z.core.$strip>>;
|
|
162
|
+
date: z.ZodNullable<z.ZodString>;
|
|
163
|
+
messageId: z.ZodNullable<z.ZodString>;
|
|
164
|
+
inReplyTo: z.ZodNullable<z.ZodString>;
|
|
165
|
+
references: z.ZodArray<z.ZodString>;
|
|
166
|
+
text: z.ZodString;
|
|
167
|
+
textCut: z.ZodBoolean;
|
|
168
|
+
links: z.ZodArray<z.ZodObject<{
|
|
169
|
+
href: z.ZodString;
|
|
170
|
+
text: z.ZodString;
|
|
171
|
+
}, z.core.$strip>>;
|
|
172
|
+
headers: z.ZodArray<z.ZodObject<{
|
|
173
|
+
name: z.ZodString;
|
|
174
|
+
value: z.ZodString;
|
|
175
|
+
}, z.core.$strip>>;
|
|
176
|
+
attachments: z.ZodArray<z.ZodObject<{
|
|
177
|
+
name: z.ZodNullable<z.ZodString>;
|
|
178
|
+
type: z.ZodString;
|
|
179
|
+
size: z.ZodNumber;
|
|
180
|
+
}, z.core.$strip>>;
|
|
181
|
+
html: z.ZodOptional<z.ZodString>;
|
|
182
|
+
}, z.core.$strip>;
|
|
183
|
+
export type MailMessage = z.infer<typeof MailMessageSchema>;
|
|
184
|
+
export declare const MAIL_ORDERS: readonly ["newest", "oldest"];
|
|
185
|
+
/** A search, as a query string's fields: each narrows it, all together. */
|
|
186
|
+
export declare const MailSearchSchema: z.ZodObject<{
|
|
187
|
+
to: z.ZodOptional<z.ZodString>;
|
|
188
|
+
from: z.ZodOptional<z.ZodString>;
|
|
189
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
190
|
+
text: z.ZodOptional<z.ZodString>;
|
|
191
|
+
project: z.ZodOptional<z.ZodString>;
|
|
192
|
+
thread: z.ZodOptional<z.ZodString>;
|
|
193
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
194
|
+
out: "out";
|
|
195
|
+
in: "in";
|
|
196
|
+
}>>;
|
|
197
|
+
since: z.ZodOptional<z.ZodISODateTime>;
|
|
198
|
+
order: z.ZodDefault<z.ZodEnum<{
|
|
199
|
+
newest: "newest";
|
|
200
|
+
oldest: "oldest";
|
|
201
|
+
}>>;
|
|
202
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
203
|
+
}, z.core.$strict>;
|
|
204
|
+
export type MailSearch = z.input<typeof MailSearchSchema>;
|
|
205
|
+
/** A search as the server reads it, its defaults filled in. */
|
|
206
|
+
export type MailQuery = z.output<typeof MailSearchSchema>;
|
|
207
|
+
export declare const MailSearchResponseSchema: z.ZodObject<{
|
|
208
|
+
messages: z.ZodArray<z.ZodObject<{
|
|
209
|
+
id: z.ZodString;
|
|
210
|
+
direction: z.ZodUnion<readonly [z.ZodEnum<{
|
|
211
|
+
out: "out";
|
|
212
|
+
in: "in";
|
|
213
|
+
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
214
|
+
receivedAt: z.ZodString;
|
|
215
|
+
to: z.ZodString;
|
|
216
|
+
tag: z.ZodNullable<z.ZodString>;
|
|
217
|
+
from: z.ZodNullable<z.ZodObject<{
|
|
218
|
+
address: z.ZodString;
|
|
219
|
+
name: z.ZodString;
|
|
220
|
+
}, z.core.$strip>>;
|
|
221
|
+
recipients: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
222
|
+
address: z.ZodString;
|
|
223
|
+
name: z.ZodString;
|
|
224
|
+
}, z.core.$strip>>>;
|
|
225
|
+
subject: z.ZodString;
|
|
226
|
+
threadId: z.ZodString;
|
|
227
|
+
size: z.ZodNumber;
|
|
228
|
+
}, z.core.$strip>>;
|
|
229
|
+
}, z.core.$strip>;
|
|
230
|
+
/** A file sent with a message, its bytes in base64. */
|
|
231
|
+
export declare const MailAttachmentSendSchema: z.ZodObject<{
|
|
232
|
+
name: z.ZodString;
|
|
233
|
+
type: z.ZodString;
|
|
234
|
+
content: z.ZodBase64;
|
|
235
|
+
}, z.core.$strict>;
|
|
236
|
+
export declare const MailSendSchema: z.ZodObject<{
|
|
237
|
+
text: z.ZodString;
|
|
238
|
+
html: z.ZodOptional<z.ZodString>;
|
|
239
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
240
|
+
name: z.ZodString;
|
|
241
|
+
type: z.ZodString;
|
|
242
|
+
content: z.ZodBase64;
|
|
243
|
+
}, z.core.$strict>>>;
|
|
244
|
+
from: z.ZodOptional<z.ZodString>;
|
|
245
|
+
to: z.ZodArray<z.ZodEmail>;
|
|
246
|
+
cc: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
|
|
247
|
+
subject: z.ZodString;
|
|
248
|
+
}, z.core.$strict>;
|
|
249
|
+
export type MailSend = z.infer<typeof MailSendSchema>;
|
|
250
|
+
/** A reply: to its sender (its Reply-To when it has one), or with `all` to everyone it named too. */
|
|
251
|
+
export declare const MailReplySchema: z.ZodObject<{
|
|
252
|
+
text: z.ZodString;
|
|
253
|
+
html: z.ZodOptional<z.ZodString>;
|
|
254
|
+
attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
255
|
+
name: z.ZodString;
|
|
256
|
+
type: z.ZodString;
|
|
257
|
+
content: z.ZodBase64;
|
|
258
|
+
}, z.core.$strict>>>;
|
|
259
|
+
from: z.ZodOptional<z.ZodString>;
|
|
260
|
+
all: z.ZodOptional<z.ZodBoolean>;
|
|
261
|
+
}, z.core.$strict>;
|
|
262
|
+
export type MailReply = z.infer<typeof MailReplySchema>;
|
|
263
|
+
/** A person's settings of their mailbox; each given is changed. */
|
|
264
|
+
export declare const MailSettingsSchema: z.ZodObject<{
|
|
265
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
266
|
+
sendPolicy: z.ZodOptional<z.ZodEnum<{
|
|
267
|
+
off: "off";
|
|
268
|
+
team: "team";
|
|
269
|
+
anyone: "anyone";
|
|
270
|
+
}>>;
|
|
271
|
+
retentionDays: z.ZodOptional<z.ZodNumber>;
|
|
272
|
+
}, z.core.$strict>;
|
|
273
|
+
export type MailSettings = z.infer<typeof MailSettingsSchema>;
|
|
274
|
+
//# sourceMappingURL=mail.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{z as t}from"zod";import{openEnum as n}from"./open.js";export const MAIL_LIMITS={listed:100,textBytes:256*1024,aliases:20,recipients:50,subject:998,body:1024*1024,attachmentBytes:10*1024*1024,attachments:32,retentionDays:{min:1,max:365}},MAIL_AGENT_WORDS="AI agent",MAIL_NAME_LENGTH={min:2,max:40};export function mailNameProblem(e){if(e.length<MAIL_NAME_LENGTH.min||e.length>MAIL_NAME_LENGTH.max)return`A name is ${String(MAIL_NAME_LENGTH.min)} to ${String(MAIL_NAME_LENGTH.max)} characters.`;if(!/^[a-z0-9-]+$/u.test(e))return"A name is lowercase letters, digits and hyphens.";if(e.startsWith("-")||e.endsWith("-"))return"A name neither starts nor ends with a hyphen.";if(e.includes("--"))return"A name does not have two hyphens in a row."}export const MailNameSchema=t.string().superRefine((e,r)=>{const a=mailNameProblem(e);a!==void 0&&r.addIssue({code:"custom",message:a})}),MAIL_PATH="/api/mail",MAIL_SETTINGS_PATH="/api/mail/settings",MAIL_PERSON_QUERY="person=1",MAIL_SEND_PATH="/api/mail/send",MAIL_ALIASES_PATH="/api/mail/aliases",MAIL_MESSAGES_PATH="/api/mail/messages",mailMessagePath=e=>`${MAIL_MESSAGES_PATH}/${encodeURIComponent(e)}`,mailRawPath=e=>`${mailMessagePath(e)}/raw`,mailReplyPath=e=>`${mailMessagePath(e)}/reply`,MAIL_SEND_POLICIES=["off","team","anyone"],MAIL_DIRECTIONS=["in","out"],MAIL_ADDRESS_KINDS=["main","alias"],MailAddressSchema=t.object({address:t.string(),kind:n(MAIL_ADDRESS_KINDS),project:t.string().nullable(),createdAt:t.string()}),MailboxSchema=t.object({domain:t.string(),displayName:t.string(),retentionDays:t.number(),sendPolicy:n(MAIL_SEND_POLICIES),sendsLeft:t.number(),sendsPerDay:t.number().optional(),addresses:t.array(MailAddressSchema)}),MailAliasCreateSchema=t.strictObject({name:MailNameSchema,project:t.string().min(1).max(200).optional()}),MailPersonSchema=t.object({address:t.string(),name:t.string()}),MailSummarySchema=t.object({id:t.string(),direction:n(MAIL_DIRECTIONS),receivedAt:t.string(),to:t.string(),tag:t.string().nullable(),from:MailPersonSchema.nullable(),recipients:t.array(MailPersonSchema).default([]),subject:t.string(),threadId:t.string(),size:t.number()}),MailLinkSchema=t.object({href:t.string(),text:t.string()}),MailHeaderSchema=t.object({name:t.string(),value:t.string()}),MailAttachmentSchema=t.object({name:t.string().nullable(),type:t.string(),size:t.number()}),MailMessageSchema=MailSummarySchema.extend({cc:t.array(MailPersonSchema),replyTo:t.array(MailPersonSchema),date:t.string().nullable(),messageId:t.string().nullable(),inReplyTo:t.string().nullable(),references:t.array(t.string()),text:t.string(),textCut:t.boolean(),links:t.array(MailLinkSchema),headers:t.array(MailHeaderSchema),attachments:t.array(MailAttachmentSchema),html:t.string().optional()}),MAIL_ORDERS=["newest","oldest"],MailSearchSchema=t.strictObject({to:t.string().min(1).max(320).optional(),from:t.string().min(1).max(320).optional(),subject:t.string().min(1).max(500).optional(),text:t.string().min(1).max(500).optional(),project:t.string().min(1).max(200).optional(),thread:t.string().min(1).max(200).optional(),direction:t.enum(MAIL_DIRECTIONS).optional(),since:t.iso.datetime({offset:!0}).optional(),order:t.enum(MAIL_ORDERS).default("newest"),limit:t.coerce.number().int().min(1).max(MAIL_LIMITS.listed).default(20)}),MailSearchResponseSchema=t.object({messages:t.array(MailSummarySchema)});const i=t.email().max(320);export const MailAttachmentSendSchema=t.strictObject({name:t.string().min(1).max(255),type:t.string().min(1).max(255),content:t.base64()});const s={text:t.string().max(MAIL_LIMITS.body),html:t.string().max(MAIL_LIMITS.body).optional(),attachments:t.array(MailAttachmentSendSchema).max(MAIL_LIMITS.attachments).optional(),from:t.string().min(3).max(320).optional()};export const MailSendSchema=t.strictObject({to:t.array(i).min(1).max(MAIL_LIMITS.recipients),cc:t.array(i).max(MAIL_LIMITS.recipients).optional(),subject:t.string().max(MAIL_LIMITS.subject),...s}),MailReplySchema=t.strictObject({all:t.boolean().optional(),...s}),MailSettingsSchema=t.strictObject({displayName:t.string().min(1).max(100).refine(e=>e.toLowerCase().includes(MAIL_AGENT_WORDS.toLowerCase()),{message:`A display name says "${MAIL_AGENT_WORDS}", so a recipient knows who writes.`}).optional(),sendPolicy:t.enum(MAIL_SEND_POLICIES).optional(),retentionDays:t.number().int().min(MAIL_LIMITS.retentionDays.min).max(MAIL_LIMITS.retentionDays.max).optional()});
|
|
@@ -47,44 +47,6 @@ export declare const NoteShapeSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
47
47
|
}, z.core.$strict>>;
|
|
48
48
|
}, z.core.$strict>], "kind">;
|
|
49
49
|
export { mapShape, pointsOf, touches };
|
|
50
|
-
/** A mark's shape in the units of the anchor it is pinned to. */
|
|
51
|
-
export declare const AnchoredShapeSchema: z.ZodObject<{
|
|
52
|
-
anchor: z.ZodString;
|
|
53
|
-
shape: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
54
|
-
kind: z.ZodLiteral<"box">;
|
|
55
|
-
rect: z.ZodObject<{
|
|
56
|
-
x: z.ZodNumber;
|
|
57
|
-
y: z.ZodNumber;
|
|
58
|
-
width: z.ZodNumber;
|
|
59
|
-
height: z.ZodNumber;
|
|
60
|
-
}, z.core.$strict>;
|
|
61
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
62
|
-
kind: z.ZodLiteral<"round">;
|
|
63
|
-
rect: z.ZodObject<{
|
|
64
|
-
x: z.ZodNumber;
|
|
65
|
-
y: z.ZodNumber;
|
|
66
|
-
width: z.ZodNumber;
|
|
67
|
-
height: z.ZodNumber;
|
|
68
|
-
}, z.core.$strict>;
|
|
69
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
70
|
-
kind: z.ZodLiteral<"arrow">;
|
|
71
|
-
from: z.ZodObject<{
|
|
72
|
-
x: z.ZodNumber;
|
|
73
|
-
y: z.ZodNumber;
|
|
74
|
-
}, z.core.$strict>;
|
|
75
|
-
to: z.ZodObject<{
|
|
76
|
-
x: z.ZodNumber;
|
|
77
|
-
y: z.ZodNumber;
|
|
78
|
-
}, z.core.$strict>;
|
|
79
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
80
|
-
kind: z.ZodLiteral<"line">;
|
|
81
|
-
points: z.ZodArray<z.ZodObject<{
|
|
82
|
-
x: z.ZodNumber;
|
|
83
|
-
y: z.ZodNumber;
|
|
84
|
-
}, z.core.$strict>>;
|
|
85
|
-
}, z.core.$strict>], "kind">;
|
|
86
|
-
}, z.core.$strict>;
|
|
87
|
-
export type AnchoredShape = z.infer<typeof AnchoredShapeSchema>;
|
|
88
50
|
export type { NoteShape };
|
|
89
51
|
/** Where to change something: a project's file, and its line. */
|
|
90
52
|
export declare const NoteSourceSchema: z.ZodObject<{
|
|
@@ -103,39 +65,6 @@ export declare const HeldSchema: z.ZodObject<{
|
|
|
103
65
|
}, z.core.$strict>>;
|
|
104
66
|
}, z.core.$strict>;
|
|
105
67
|
export type Held = z.infer<typeof HeldSchema>;
|
|
106
|
-
/**
|
|
107
|
-
* Where an anchor is on the card now: card px = origin + the anchor's own
|
|
108
|
-
* units × scale, on each axis (a timeline's seconds and its rows zoom apart),
|
|
109
|
-
* seen through `clip`, the box of what scrolls it. Null where it is not on
|
|
110
|
-
* show: another slide, another moment, scrolled out of what is drawn, gone.
|
|
111
|
-
*/
|
|
112
|
-
export declare const NotePlacementSchema: z.ZodNullable<z.ZodObject<{
|
|
113
|
-
x: z.ZodNumber;
|
|
114
|
-
y: z.ZodNumber;
|
|
115
|
-
sx: z.ZodNumber;
|
|
116
|
-
sy: z.ZodNumber;
|
|
117
|
-
clip: z.ZodObject<{
|
|
118
|
-
x: z.ZodNumber;
|
|
119
|
-
y: z.ZodNumber;
|
|
120
|
-
width: z.ZodNumber;
|
|
121
|
-
height: z.ZodNumber;
|
|
122
|
-
}, z.core.$strict>;
|
|
123
|
-
}, z.core.$strict>>;
|
|
124
|
-
export type NotePlacement = z.infer<typeof NotePlacementSchema>;
|
|
125
|
-
/** Anchors by id, and where each is. */
|
|
126
|
-
export declare const NotePlacementsSchema: z.ZodRecord<z.ZodString, z.ZodNullable<z.ZodObject<{
|
|
127
|
-
x: z.ZodNumber;
|
|
128
|
-
y: z.ZodNumber;
|
|
129
|
-
sx: z.ZodNumber;
|
|
130
|
-
sy: z.ZodNumber;
|
|
131
|
-
clip: z.ZodObject<{
|
|
132
|
-
x: z.ZodNumber;
|
|
133
|
-
y: z.ZodNumber;
|
|
134
|
-
width: z.ZodNumber;
|
|
135
|
-
height: z.ZodNumber;
|
|
136
|
-
}, z.core.$strict>;
|
|
137
|
-
}, z.core.$strict>>>;
|
|
138
|
-
export type NotePlacements = z.infer<typeof NotePlacementsSchema>;
|
|
139
68
|
export declare const NotePictureSchema: z.ZodObject<{
|
|
140
69
|
rect: z.ZodOptional<z.ZodObject<{
|
|
141
70
|
x: z.ZodNumber;
|
|
@@ -147,6 +76,23 @@ export declare const NotePictureSchema: z.ZodObject<{
|
|
|
147
76
|
data: z.ZodString;
|
|
148
77
|
}, z.core.$strict>;
|
|
149
78
|
export type NotePicture = z.infer<typeof NotePictureSchema>;
|
|
79
|
+
/**
|
|
80
|
+
* A mark as a region of an element's own pixels: what a tool that takes a
|
|
81
|
+
* mask (inpaint, remove, edit a region) is handed. The element's surface
|
|
82
|
+
* says where its pixels are, the mark's shape mapped into them; the host
|
|
83
|
+
* passes it on unread. An element may give several: a picture layer in
|
|
84
|
+
* its board's pixels and in its file's.
|
|
85
|
+
*/
|
|
86
|
+
export declare const NoteRegionSchema: z.ZodObject<{
|
|
87
|
+
in: z.ZodString;
|
|
88
|
+
file: z.ZodOptional<z.ZodString>;
|
|
89
|
+
width: z.ZodNumber;
|
|
90
|
+
height: z.ZodNumber;
|
|
91
|
+
path: z.ZodString;
|
|
92
|
+
area: z.ZodBoolean;
|
|
93
|
+
scale: z.ZodNumber;
|
|
94
|
+
}, z.core.$strict>;
|
|
95
|
+
export type NoteRegion = z.infer<typeof NoteRegionSchema>;
|
|
150
96
|
export declare const NoteElementSchema: z.ZodObject<{
|
|
151
97
|
name: z.ZodString;
|
|
152
98
|
source: z.ZodOptional<z.ZodObject<{
|
|
@@ -155,33 +101,73 @@ export declare const NoteElementSchema: z.ZodObject<{
|
|
|
155
101
|
endLine: z.ZodOptional<z.ZodInt>;
|
|
156
102
|
}, z.core.$strict>>;
|
|
157
103
|
text: z.ZodOptional<z.ZodString>;
|
|
104
|
+
regions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
105
|
+
in: z.ZodString;
|
|
106
|
+
file: z.ZodOptional<z.ZodString>;
|
|
107
|
+
width: z.ZodNumber;
|
|
108
|
+
height: z.ZodNumber;
|
|
109
|
+
path: z.ZodString;
|
|
110
|
+
area: z.ZodBoolean;
|
|
111
|
+
scale: z.ZodNumber;
|
|
112
|
+
}, z.core.$strict>>>;
|
|
158
113
|
}, z.core.$strict>;
|
|
159
114
|
export type NoteElement = z.infer<typeof NoteElementSchema>;
|
|
115
|
+
/** What a mark is on, as a surface answers: the elements under it, and where it is in words. */
|
|
116
|
+
export declare const NoteFoundSchema: z.ZodObject<{
|
|
117
|
+
elements: z.ZodArray<z.ZodObject<{
|
|
118
|
+
name: z.ZodString;
|
|
119
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
120
|
+
path: z.ZodString;
|
|
121
|
+
line: z.ZodOptional<z.ZodInt>;
|
|
122
|
+
endLine: z.ZodOptional<z.ZodInt>;
|
|
123
|
+
}, z.core.$strict>>;
|
|
124
|
+
text: z.ZodOptional<z.ZodString>;
|
|
125
|
+
regions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
126
|
+
in: z.ZodString;
|
|
127
|
+
file: z.ZodOptional<z.ZodString>;
|
|
128
|
+
width: z.ZodNumber;
|
|
129
|
+
height: z.ZodNumber;
|
|
130
|
+
path: z.ZodString;
|
|
131
|
+
area: z.ZodBoolean;
|
|
132
|
+
scale: z.ZodNumber;
|
|
133
|
+
}, z.core.$strict>>>;
|
|
134
|
+
}, z.core.$strict>>;
|
|
135
|
+
where: z.ZodOptional<z.ZodString>;
|
|
136
|
+
}, z.core.$strict>;
|
|
137
|
+
export type NoteFound = z.infer<typeof NoteFoundSchema>;
|
|
160
138
|
/**
|
|
161
|
-
* What
|
|
162
|
-
* show.
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
*
|
|
139
|
+
* What every editor gives its host for notes on it, for as long as it is on
|
|
140
|
+
* show (docs/design/notes.md, "The contract"): Mark up takes a picture of
|
|
141
|
+
* the page and the person marks it. From `hold` to `release` nothing on
|
|
142
|
+
* show changes: the editor stops what moves by itself, and the page holds
|
|
143
|
+
* back what its host tells it. The page draws itself; what it cannot draw
|
|
144
|
+
* (a frame, a WebGL view, a video) is an inset's (`NoteInset`). Points and
|
|
145
|
+
* shapes are px of the page.
|
|
166
146
|
*/
|
|
167
147
|
export interface NoteSurface {
|
|
168
|
-
/** Stops what moves by itself (playback) and says what is on show. Answered once it is drawn. */
|
|
148
|
+
/** Stops what moves by itself (playback, an animation) and says what is on show. Answered once it is drawn. */
|
|
169
149
|
hold(): Promise<Held>;
|
|
170
|
-
/**
|
|
171
|
-
|
|
172
|
-
/** Where one of its own anchors is now; undefined where the id is not its own. */
|
|
173
|
-
placement?(anchor: string): NotePlacement | undefined;
|
|
174
|
-
/** Calls `moved` whenever its anchors may have moved (a scroll of its own, a zoom, a turn, a seek); answers how to stop. */
|
|
175
|
-
onMoved?(moved: () => void): () => void;
|
|
176
|
-
/** Where a place is, in words for the agent: "under the heading Pricing", "slide 4", "at 3.20 s". */
|
|
177
|
-
where?(at: NotePoint): string | undefined;
|
|
178
|
-
/** What is on show drawn better than the page draws it, each at its rect. */
|
|
179
|
-
pictures?(): Promise<NotePicture[]>;
|
|
180
|
-
/** What a mark is on, while it is on show. */
|
|
181
|
-
locate?(mark: NoteShape): Promise<NoteElement[]>;
|
|
182
|
-
/** Brings a point of one of its own anchors back on show (turns to the slide, seeks the moment); false where it cannot. */
|
|
183
|
-
show?(anchor: string, at: NotePoint): Promise<boolean>;
|
|
150
|
+
/** What a mark is on, among what the editor draws in the page itself; insets answer for theirs. Empty is an answer. */
|
|
151
|
+
locate(mark: NoteShape): Promise<NoteFound>;
|
|
184
152
|
/** The person is done. Nothing starts by itself: a video that was paused stays paused. */
|
|
185
153
|
release?(): void;
|
|
186
154
|
}
|
|
155
|
+
/**
|
|
156
|
+
* A box of the page that draws itself and answers for what is in it: a
|
|
157
|
+
* stage's frame, a 3D view, a video, an item embedded in another. Whatever
|
|
158
|
+
* puts in the page what the page cannot draw gives one, whichever
|
|
159
|
+
* extension it is; insets nest by where they are, the page composes them
|
|
160
|
+
* and never asks what they show.
|
|
161
|
+
*/
|
|
162
|
+
export interface NoteInset {
|
|
163
|
+
/** The part of it that shows, px of the page (cut by what scrolls or clips it): its pictures are cut to it. None while it is not on show. */
|
|
164
|
+
box(): NoteRect | undefined;
|
|
165
|
+
/** It drawn as it shows now, each part at its rect in px of the page; none where the page draws it. */
|
|
166
|
+
pictures?(): Promise<NotePicture[]>;
|
|
167
|
+
/** What a mark (px of the page) is on inside it. */
|
|
168
|
+
locate?(mark: NoteShape): Promise<NoteFound>;
|
|
169
|
+
/** Stops what moves by itself in it. */
|
|
170
|
+
hold?(): Promise<void>;
|
|
171
|
+
release?(): void;
|
|
172
|
+
}
|
|
187
173
|
//# sourceMappingURL=notes.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{pointsOf as
|
|
2
|
+
import{z as t}from"zod";import{pointsOf as i,mapShape as o,touches as n}from"@allyhub/formats";import{PathSchema as e}from"./files.js";export const NoteRectSchema=t.strictObject({x:t.number(),y:t.number(),width:t.number().nonnegative(),height:t.number().nonnegative()}),NotePointSchema=t.strictObject({x:t.number(),y:t.number()}),NoteShapeSchema=t.discriminatedUnion("kind",[t.strictObject({kind:t.literal("box"),rect:NoteRectSchema}),t.strictObject({kind:t.literal("round"),rect:NoteRectSchema}),t.strictObject({kind:t.literal("arrow"),from:NotePointSchema,to:NotePointSchema}),t.strictObject({kind:t.literal("line"),points:t.array(NotePointSchema).min(1)})]);export{o as mapShape,i as pointsOf,n as touches};export const NoteSourceSchema=t.strictObject({path:e,line:t.int().positive().optional(),endLine:t.int().positive().optional()}),HeldSchema=t.strictObject({key:t.string().min(1),what:t.string(),source:NoteSourceSchema.optional()}),NotePictureSchema=t.strictObject({rect:NoteRectSchema.optional(),mime:t.string().min(1),data:t.string().min(1)}),NoteRegionSchema=t.strictObject({in:t.string().min(1),file:e.optional(),width:t.number().positive(),height:t.number().positive(),path:t.string().min(1),area:t.boolean(),scale:t.number().positive()}),NoteElementSchema=t.strictObject({name:t.string().min(1),source:NoteSourceSchema.optional(),text:t.string().optional(),regions:t.array(NoteRegionSchema).optional()}),NoteFoundSchema=t.strictObject({elements:t.array(NoteElementSchema),where:t.string().optional()});
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { type MethodSpec, type NotificationSpec } from "./jsonrpc.js";
|
|
3
|
+
/** A way to send messages and hear them: what a transport gives. */
|
|
4
|
+
export interface Channel {
|
|
5
|
+
send(message: unknown): void;
|
|
6
|
+
/** Hears every message; answers how to stop. */
|
|
7
|
+
listen(on: (message: unknown) => void): () => void;
|
|
8
|
+
close?(): void;
|
|
9
|
+
}
|
|
10
|
+
/** LSP's code for a request its caller cancelled. */
|
|
11
|
+
export declare const REQUEST_CANCELLED = -32800;
|
|
12
|
+
/** A handler that can be cancelled: its params, and a signal aborted when the caller cancels. */
|
|
13
|
+
export type CancellableHandlersOf<M extends Record<string, MethodSpec>> = {
|
|
14
|
+
[K in keyof M]: (params: z.output<M[K]["params"]>, signal: AbortSignal) => Promise<z.input<M[K]["result"]>>;
|
|
15
|
+
};
|
|
16
|
+
/** A typed caller of a table of methods, each call cancellable. */
|
|
17
|
+
export type CallerOf<M extends Record<string, MethodSpec>> = {
|
|
18
|
+
[K in keyof M]: (params: z.input<M[K]["params"]>, signal?: AbortSignal) => Promise<z.output<M[K]["result"]>>;
|
|
19
|
+
};
|
|
20
|
+
export interface PeerOptions {
|
|
21
|
+
/** A call with no answer after this long, ms, fails (default five minutes). */
|
|
22
|
+
timeout?: number;
|
|
23
|
+
/** A call with no answer after this long, ms, is reported once (default ten seconds). */
|
|
24
|
+
stallAfter?: number;
|
|
25
|
+
/** Hears a stalled call. */
|
|
26
|
+
onStall?: (stall: {
|
|
27
|
+
method: string;
|
|
28
|
+
ms: number;
|
|
29
|
+
}) => void;
|
|
30
|
+
}
|
|
31
|
+
export declare class Peer {
|
|
32
|
+
private next;
|
|
33
|
+
private readonly pending;
|
|
34
|
+
private readonly running;
|
|
35
|
+
private readonly methods;
|
|
36
|
+
private readonly listeners;
|
|
37
|
+
private readonly stopListening;
|
|
38
|
+
private readonly timeout;
|
|
39
|
+
private readonly stallAfter;
|
|
40
|
+
private readonly onStall;
|
|
41
|
+
private closed;
|
|
42
|
+
private readonly channel;
|
|
43
|
+
constructor(channel: Channel, o?: PeerOptions);
|
|
44
|
+
/** Answers a table of methods; answers how to stop answering them. */
|
|
45
|
+
serve<M extends Record<string, MethodSpec>>(methods: M, handlers: CancellableHandlersOf<M>): () => void;
|
|
46
|
+
/** A typed caller of a table of methods the other side serves. */
|
|
47
|
+
caller<M extends Record<string, MethodSpec>>(methods: M): CallerOf<M>;
|
|
48
|
+
/** Calls a method; aborting `signal` cancels it on the other side. */
|
|
49
|
+
request(method: string, params: unknown, signal?: AbortSignal): Promise<unknown>;
|
|
50
|
+
notify<P extends z.ZodType>(name: string, spec: NotificationSpec<P>, params: z.input<P>): void;
|
|
51
|
+
/** Hears a notification; answers how to stop. */
|
|
52
|
+
on(name: string, listener: (params: unknown) => void): () => void;
|
|
53
|
+
close(): void;
|
|
54
|
+
private settle;
|
|
55
|
+
private receive;
|
|
56
|
+
}
|
|
57
|
+
/** Two channels joined to each other in one process: the direct transport. */
|
|
58
|
+
export declare function pairedChannels(): [Channel, Channel];
|
|
59
|
+
//# sourceMappingURL=peer.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 a}from"zod";import{JSONRPC as d,RPC_ERROR as u,RpcError as m}from"./jsonrpc.js";export const REQUEST_CANCELLED=-32800;const p="$/cancelRequest",f=a.object({jsonrpc:a.literal(d),id:a.union([a.string(),a.int(),a.null()]).optional(),method:a.string().optional(),params:a.unknown().optional(),result:a.unknown().optional(),error:a.object({code:a.int(),message:a.string(),data:a.unknown().optional()}).optional()});export class Peer{next=1;pending=new Map;running=new Map;methods=new Map;listeners=new Map;stopListening;timeout;stallAfter;onStall;closed=!1;channel;constructor(t,s={}){this.channel=t,this.timeout=s.timeout??5*6e4,this.stallAfter=s.stallAfter??1e4,this.onStall=s.onStall,this.stopListening=t.listen(e=>{this.receive(e)})}serve(t,s){for(const[e,r]of Object.entries(t)){const o=s[e];this.methods.set(e,{spec:r,run:o})}return()=>{for(const e of Object.keys(t))this.methods.delete(e)}}caller(t){const s={};for(const[e,r]of Object.entries(t))s[e]=async(o,i)=>r.result.parse(await this.request(e,r.params.parse(o),i));return s}request(t,s,e){if(this.closed)return Promise.reject(new Error("The channel is closed."));const r=this.next++;return new Promise((o,i)=>{const l=Date.now(),c={method:t,resolve:o,reject:i,timers:[setTimeout(()=>{this.onStall?.({method:t,ms:Date.now()-l})},this.stallAfter),setTimeout(()=>{this.settle(r),i(new Error(`${t} had no answer in ${String(this.timeout)} ms.`))},this.timeout)]};if(e){const n=()=>{this.channel.send({jsonrpc:d,method:p,params:{id:r}})};e.aborted?n():(e.addEventListener("abort",n,{once:!0}),c.stop=()=>{e.removeEventListener("abort",n)})}this.pending.set(r,c),this.channel.send({jsonrpc:d,id:r,method:t,params:s})})}notify(t,s,e){this.channel.send({jsonrpc:d,method:t,params:s.params.parse(e)})}on(t,s){const e=this.listeners.get(t)??new Set;return e.add(s),this.listeners.set(t,e),()=>e.delete(s)}close(){this.closed=!0,this.stopListening();for(const[t,s]of this.pending)this.settle(t),s.reject(new Error("The channel closed."));for(const t of this.running.values())t.abort();this.channel.close?.()}settle(t){const s=this.pending.get(t);if(s){this.pending.delete(t);for(const e of s.timers)clearTimeout(e);return s.stop?.(),s}}async receive(t){const s=f.safeParse(t);if(!s.success)return;const e=s.data;if(e.method===void 0){if(typeof e.id!="number")return;const n=this.settle(e.id);if(!n)return;e.error?n.reject(new m(e.error.code,e.error.message,e.error.data)):n.resolve(e.result);return}if(e.id===void 0||e.id===null){if(e.method===p){const n=e.params?.id;n!==void 0&&this.running.get(n)?.abort();return}for(const n of this.listeners.get(e.method)??[])n(e.params);return}const r=e.id,o=n=>{this.closed||this.channel.send({jsonrpc:d,id:r,...n})},i=this.methods.get(e.method);if(!i){o({error:{code:u.methodNotFound,message:`There is no method "${e.method}".`}});return}const l=i.spec.params.safeParse(e.params??{});if(!l.success){o({error:{code:u.invalidParams,message:l.error.message}});return}const c=new AbortController;this.running.set(r,c);try{const n=await i.run(l.data,c.signal);if(c.signal.aborted){o({error:{code:REQUEST_CANCELLED,message:`${e.method} was cancelled.`}});return}o({result:i.spec.result.parse(n)})}catch(n){c.signal.aborted?o({error:{code:REQUEST_CANCELLED,message:`${e.method} was cancelled.`}}):n instanceof m?o({error:{code:n.code,message:n.message,...n.data===void 0?{}:{data:n.data}}}):o({error:{code:u.internal,message:n instanceof Error?n.message:String(n)}})}finally{this.running.delete(r)}}}export function pairedChannels(){const h=()=>({hear:new Set,channel:void 0}),t=h(),s=h(),e=(r,o)=>({send(i){const l=structuredClone(i);queueMicrotask(()=>{for(const c of o.hear)c(l)})},listen(i){return r.hear.add(i),()=>r.hear.delete(i)}});return[e(t,s),e(s,t)]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/**
|
|
3
|
+
* Where the person is in an item, as its editor says it (`editor/place`)
|
|
4
|
+
* and opens it again (HostContext's `place`): a JSON object only the
|
|
5
|
+
* editor reads, a video's moment or a deck's slide, in the shape its
|
|
6
|
+
* `editors` contribution's `place` schema says. A host carries it
|
|
7
|
+
* without reading it, as VS Code's webviews keep their state; the editors'
|
|
8
|
+
* page drops one its editor's schema does not take, and the item opens at
|
|
9
|
+
* its start.
|
|
10
|
+
*/
|
|
11
|
+
export declare const PlaceSchema: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
12
|
+
export type Place = z.infer<typeof PlaceSchema>;
|
|
13
|
+
/** The parameter an editors' page's address says a place by: `place=`, its JSON. */
|
|
14
|
+
export declare const PLACE_PARAM = "place";
|
|
15
|
+
/** A place as an editors' page's address says it; none, nothing. */
|
|
16
|
+
export declare function placeParams(place: Place | undefined): Partial<Record<typeof PLACE_PARAM, string>>;
|
|
17
|
+
/** The place an editors' page's address says (its query, as URLSearchParams reads it), if it says a JSON object. */
|
|
18
|
+
export declare function placeIn(q: {
|
|
19
|
+
get(name: string): string | null;
|
|
20
|
+
}): Place | undefined;
|
|
21
|
+
//# sourceMappingURL=place.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{z as n}from"zod";export const PlaceSchema=n.record(n.string(),n.json()),PLACE_PARAM="place";export function placeParams(e){return e===void 0?{}:{[PLACE_PARAM]:JSON.stringify(e)}}export function placeIn(e){const t=e.get(PLACE_PARAM);if(t===null)return;let r;try{r=JSON.parse(t)}catch{return}const c=PlaceSchema.safeParse(r);return c.success?c.data:void 0}
|