allyhub 0.9.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 +8 -0
- package/dist/commands/auth.js +4 -4
- package/dist/commands/cloud-tools.js +11 -11
- package/dist/commands/frames/compare.js +2 -2
- package/dist/commands/frames/piece.js +1 -1
- package/dist/commands/frames.js +8 -8
- package/dist/commands/index.js +1 -1
- package/dist/commands/inspect/common.js +4 -2
- package/dist/commands/inspect/facts.js +3 -3
- package/dist/commands/inspect/layout.js +1 -1
- package/dist/commands/orgs.js +2 -2
- package/dist/help.js +4 -4
- package/dist/main.js +8 -7
- package/dist/node_modules/@allyhub/3d-extension/package.json +34 -2
- package/dist/node_modules/@allyhub/audio/package.json +1 -1
- package/dist/node_modules/@allyhub/browser/package.json +1 -1
- package/dist/node_modules/@allyhub/build/package.json +1 -1
- package/dist/node_modules/@allyhub/canvas-extension/package.json +2 -1
- package/dist/node_modules/@allyhub/canvas-extension/skills/allyhub/references/canvas.md +4 -24
- package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
- 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/check/package.json +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +10 -0
- package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +9 -0
- package/dist/node_modules/@allyhub/cloud/dist/config.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/credentials.d.ts +4 -4
- package/dist/node_modules/@allyhub/cloud/dist/credentials.js +2 -2
- package/dist/node_modules/@allyhub/cloud/dist/device.d.ts +12 -0
- package/dist/node_modules/@allyhub/cloud/dist/device.js +2 -0
- package/dist/node_modules/@allyhub/cloud/package.json +1 -1
- package/dist/node_modules/@allyhub/components/package.json +1 -1
- package/dist/node_modules/@allyhub/components/r/callout.json +1 -1
- package/dist/node_modules/@allyhub/components/src/callout.ts +98 -13
- package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
- package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
- package/dist/node_modules/@allyhub/doc/dist/captions.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/docx.js +4 -4
- package/dist/node_modules/@allyhub/doc/dist/html.js +50 -47
- package/dist/node_modules/@allyhub/doc/dist/model.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/page.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/paper.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/table.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/write.js +22 -22
- package/dist/node_modules/@allyhub/doc/package.json +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/package.json +17 -2
- package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
- package/dist/node_modules/@allyhub/export/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/export/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-host/dist/points.js +1 -1
- package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +87 -1
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +89 -0
- package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +50 -0
- package/dist/node_modules/@allyhub/formats/package.json +1 -1
- package/dist/node_modules/@allyhub/i18n/package.json +1 -1
- package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
- package/dist/node_modules/@allyhub/image-extension/package.json +16 -1
- package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +7 -39
- package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
- package/dist/node_modules/@allyhub/image-render/package.json +1 -1
- package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/jobs/package.json +1 -1
- package/dist/node_modules/@allyhub/measure/package.json +1 -1
- package/dist/node_modules/@allyhub/media/package.json +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/vision/faces.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/package.json +7 -4
- package/dist/node_modules/@allyhub/model/package.json +1 -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/dist/layout.d.ts +16 -0
- package/dist/node_modules/@allyhub/piece/dist/page/locate.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +6 -0
- package/dist/node_modules/@allyhub/piece/package.json +1 -1
- package/dist/node_modules/@allyhub/project/dist/version.js +1 -1
- package/dist/node_modules/@allyhub/project/package.json +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +132 -0
- package/dist/node_modules/@allyhub/protocol/dist/account.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/cloud.d.ts +153 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +4 -2
- package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +43 -188
- package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +1 -0
- package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +1 -0
- package/dist/node_modules/@allyhub/protocol/dist/mail.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +51 -91
- package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +3 -3
- package/dist/node_modules/@allyhub/protocol/package.json +5 -1
- package/dist/node_modules/@allyhub/registry/package.json +1 -1
- package/dist/node_modules/@allyhub/render/dist/look.js +1 -1
- package/dist/node_modules/@allyhub/render/package.json +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/compose.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/embed.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/player/clips.js +1 -1
- package/dist/node_modules/@allyhub/runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub/scaffold/package.json +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/scenery-host/dist/layer/grade.d.ts +7 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.d.ts +4 -3
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.d.ts +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/facts.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.d.ts +8 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/page/screens.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
- 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.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.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/types.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -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/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/printed.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/values.js +1 -1
- 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.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.js +3 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.js +3 -2
- package/dist/node_modules/@allyhub/sheet/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +4 -4
- package/dist/node_modules/@allyhub/sheet-extension/package.json +22 -3
- 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/enums.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-extension/package.json +20 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/common.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/text.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/shapes.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/text.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/xml.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
- package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +5 -5
- package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/stage/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400-italic.css +19 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400.css +19 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700-italic.css +19 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700.css +19 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/cambria.css +76 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/files/caladea-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400-italic.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700-italic.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/courier-new.css +316 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-greek-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-hebrew-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/files/cousine-vietnamese-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400-italic.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700-italic.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700.css +79 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-cyrillic-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-greek-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-hebrew-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/files/tinos-vietnamese-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/times-new-roman.css +316 -0
- package/dist/node_modules/@allyhub/stage-page/dist/host.js +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.html +3 -0
- package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +19 -19
- package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
- package/dist/node_modules/@allyhub/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub/video-extension/package.json +16 -1
- package/dist/node_modules/@allyhub/video-measure/dist/version.js +1 -1
- package/dist/node_modules/@allyhub/video-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/video-sdk/dist/phone.js +1 -1
- package/dist/node_modules/@allyhub/video-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/website/package.json +1 -1
- package/dist/node_modules/@allyhub/website-extension/dist/held.js +2 -0
- package/dist/node_modules/@allyhub/website-extension/dist/project-tools.js +24 -1
- package/dist/node_modules/@allyhub/website-extension/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/website-extension/package.json +49 -2
- package/dist/node_modules/@allyhub/x-extension/package.json +34 -4
- package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +7 -62
- package/dist/node_modules/@allyhub/x-model/package.json +1 -1
- package/dist/node_modules/@allyhub/x-view/dist/article.js +1 -1
- package/dist/node_modules/@allyhub/x-view/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/x-view/dist/post.js +2 -2
- package/dist/node_modules/@allyhub/x-view/package.json +1 -1
- package/dist/package.json +10 -10
- package/dist/text/facts-text.js +5 -5
- package/dist/text/index.js +1 -1
- package/dist/text/long-text.js +4 -0
- package/dist/works.js +1 -1
- package/editor-web/assets/{abnfDiagram-WEYOIA3C-CN5PiJYY.js → abnfDiagram-WEYOIA3C-CjAmWsNR.js} +1 -1
- package/editor-web/assets/alt-DnBZJzEh.js +4 -0
- package/editor-web/assets/{architecture-WOLXFQ4H-BnvZtQYk.js → architecture-WOLXFQ4H-DeeKhyhZ.js} +1 -1
- package/editor-web/assets/{architectureDiagram-ZHVYKT53-tkcEcFQ8.js → architectureDiagram-ZHVYKT53-b32qTaJg.js} +1 -1
- package/editor-web/assets/{arrow-up-DTP2yVSU.js → arrow-up-L4YV_65f.js} +1 -1
- package/editor-web/assets/article-DLMjAdbP.js +73 -0
- package/editor-web/assets/{audio-lines-Ti8-m7H2.js → audio-lines-BFcM7G2L.js} +1 -1
- package/editor-web/assets/{blockDiagram-RJAE7QA3-DhqEIpie.js → blockDiagram-RJAE7QA3-BNbnMNmw.js} +1 -1
- package/editor-web/assets/button-Chk675Xu.js +41 -0
- package/editor-web/assets/{c4Diagram-XDPPPE54-Bg9G95tl.js → c4Diagram-XDPPPE54-BEuemvMw.js} +1 -1
- package/editor-web/assets/calc-worker-D2pGis6e.js +45 -0
- package/editor-web/assets/channel-EzYq4r0d.js +1 -0
- package/editor-web/assets/chart-Be9Hj5GL.js +1 -0
- package/editor-web/assets/choice-BgmBh4yu.js +1 -0
- package/editor-web/assets/{chunk-2E7WHVMD-C8Ve9lAa.js → chunk-2E7WHVMD-Zb5nPx_e.js} +1 -1
- package/editor-web/assets/{chunk-4EMNKR2T-BDWwPUnT.js → chunk-4EMNKR2T-DSEM2reX.js} +1 -1
- package/editor-web/assets/{chunk-55XCU76K-BQiNPKgx.js → chunk-55XCU76K-BOZa_65H.js} +1 -1
- package/editor-web/assets/{chunk-7S6XSTFO-QoEt-6jf.js → chunk-7S6XSTFO-DeiGeVpB.js} +1 -1
- package/editor-web/assets/{chunk-AQDTSKZB-BeuwIv0-.js → chunk-AQDTSKZB-fPuQFBJc.js} +1 -1
- package/editor-web/assets/{chunk-DSNLSHJZ-BHW7sLAz.js → chunk-DSNLSHJZ-5vdnoak2.js} +1 -1
- package/editor-web/assets/{chunk-HAGFOTED-bbGED0hu.js → chunk-HAGFOTED-DFF2mZJ1.js} +1 -1
- package/editor-web/assets/{chunk-HNE4Q36P-FltWp8yo.js → chunk-HNE4Q36P-g6-ZLbTg.js} +1 -1
- package/editor-web/assets/{chunk-NQOKRVIF-NeQzr6kH.js → chunk-NQOKRVIF-o3hNcHMJ.js} +1 -1
- package/editor-web/assets/{chunk-UHW7PFBP-eA4-WUhn.js → chunk-UHW7PFBP-BQiDI9dK.js} +1 -1
- package/editor-web/assets/{chunk-VQ5W62QI-BPPv325z.js → chunk-VQ5W62QI-CJlMXWWz.js} +1 -1
- package/editor-web/assets/{chunk-WQQL4CDK-DOCIz7Te.js → chunk-WQQL4CDK-pNBU8dXv.js} +1 -1
- package/editor-web/assets/{chunk-YZO67HFG-Dc_ihQJi.js → chunk-YZO67HFG-2x-BiWd-.js} +1 -1
- package/editor-web/assets/{chunk-ZAUX2LTX-CoqwCPSm.js → chunk-ZAUX2LTX-etFStEM8.js} +1 -1
- package/editor-web/assets/{chunk-ZCHMQSOR-CZUQPkJx.js → chunk-ZCHMQSOR-B3AYRhIY.js} +1 -1
- package/editor-web/assets/{classDiagram-v2-4MYWR3UA-DUh9c50k.js → classDiagram-v2-4MYWR3UA-6y2yX0oq.js} +1 -1
- package/editor-web/assets/collaborator-LRd0hELn.js +1 -0
- package/editor-web/assets/createLucideIcon-CPS-TrJJ.js +1 -0
- package/editor-web/assets/{cynefin-EF2NZ3EQ-DUTZiog0.js → cynefin-EF2NZ3EQ-CX4BTQQe.js} +1 -1
- package/editor-web/assets/{cynefinDiagram-WF24UDRP-oAjpfbrU.js → cynefinDiagram-WF24UDRP-LbDkOTy3.js} +1 -1
- package/editor-web/assets/{dagre-NK4GIZVX-BrKvKCvb.js → dagre-NK4GIZVX-wCKQk7hi.js} +1 -1
- package/editor-web/assets/{diagram-CBK3MWTC-GekVRnmm.js → diagram-CBK3MWTC-a9fofQwk.js} +1 -1
- package/editor-web/assets/{diagram-I5XIIV2D-CDd1VFRT.js → diagram-I5XIIV2D-UCLZWch5.js} +1 -1
- package/editor-web/assets/{diagram-ODIL2UCW-535RISTn.js → diagram-ODIL2UCW-CAEe88Lp.js} +1 -1
- package/editor-web/assets/{diagram-PFBEJUXE-MXzzKCGG.js → diagram-PFBEJUXE-Cp1o45bs.js} +1 -1
- package/editor-web/assets/{diagram-RJA3I4VV-vKVwkQxY.js → diagram-RJA3I4VV-c6OVxDyq.js} +1 -1
- package/editor-web/assets/{diagram-TYUNFSNR-UwGAiQLx.js → diagram-TYUNFSNR-BVRWslDM.js} +1 -1
- package/editor-web/assets/{dist-CKyfo5RM.js → dist--KKyT5zP.js} +1 -1
- package/editor-web/assets/dist-1k0MHB3i.js +1 -0
- package/editor-web/assets/dist-B9KHJqL5.js +4 -0
- package/editor-web/assets/dist-BbJyrhIY.js +1 -0
- package/editor-web/assets/dist-CJXCQxQM.js +37 -0
- package/editor-web/assets/dist-D9xQGwe9.js +5 -0
- package/editor-web/assets/dist-DFiLzbx8.js +219 -0
- package/editor-web/assets/{dist-shKo7XVN.js → dist-DIPV6xfF.js} +1 -1
- package/editor-web/assets/dist-Dp-fQMtx.js +6 -0
- package/editor-web/assets/dist-Duw28VxJ.js +16 -0
- package/editor-web/assets/{dist-9ymlIMhr.js → dist-DwGhfliS.js} +1 -1
- package/editor-web/assets/dist-OBE2IIYP.js +24 -0
- package/editor-web/assets/dist-j6ZLVcgf.js +38 -0
- package/editor-web/assets/{ebnfDiagram-V4P3TTPT-73yGokYa.js → ebnfDiagram-V4P3TTPT-KdOTJgFu.js} +1 -1
- package/editor-web/assets/{elk-QONTBCTQ-BW6V9y6a.js → elk-QONTBCTQ-Cmlrp7qB.js} +1 -1
- package/editor-web/assets/{erDiagram-KYQIGQAA-BPqIJ22h.js → erDiagram-KYQIGQAA-CBM7-aQm.js} +1 -1
- package/editor-web/assets/{eventmodeling-K75KTNOO-_VZ8jvuy.js → eventmodeling-K75KTNOO-CEoJkbuW.js} +1 -1
- package/editor-web/assets/flowDiagram-IUGLLWBU-Xm2E2ib_.js +1 -0
- package/editor-web/assets/{ganttDiagram-R7GPNTJY-DZ157JN2.js → ganttDiagram-R7GPNTJY-D4S6ZSYD.js} +1 -1
- package/editor-web/assets/{gitGraph-VSP46ZUC-fmcNL9bq.js → gitGraph-VSP46ZUC-BvkL6RSh.js} +1 -1
- package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-DiZDyksR.js → gitGraphDiagram-PDYL7XHY-lTGguloH.js} +1 -1
- package/editor-web/assets/hint-BimUgJms.js +1 -0
- package/editor-web/assets/index-C-i_iuxN.js +28 -0
- package/editor-web/assets/index-Cxh_Shkm.css +2 -0
- package/editor-web/assets/{info-OHQRW6UA-V06620kN.js → info-OHQRW6UA-DvKzqNvp.js} +1 -1
- package/editor-web/assets/{infoDiagram-MVDRKAX5-CbIgheWX.js → infoDiagram-MVDRKAX5-D7hCpehs.js} +1 -1
- package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-D5oJQPkG.js → ishikawaDiagram-HPEHV2GE-Bg93sZQe.js} +1 -1
- package/editor-web/assets/{italic-CDhZKo_q.js → italic-BQBwRTe8.js} +1 -1
- package/editor-web/assets/{journeyDiagram-BOSHW7O7-BZEv6JI4.js → journeyDiagram-BOSHW7O7-CKm_KONJ.js} +1 -1
- package/editor-web/assets/{kanban-definition-FNSA4HC5-CLG1R8y_.js → kanban-definition-FNSA4HC5-BKknnpTR.js} +1 -1
- package/editor-web/assets/{mermaid-parser.core-DxDwXM7z.js → mermaid-parser.core-BzqkDnqL.js} +3 -3
- package/editor-web/assets/{mermaid.core-tU55ZwVG.js → mermaid.core-CEpvTOAe.js} +4 -4
- package/editor-web/assets/{mindmap-definition-6OY57UG3-CYf4zzAh.js → mindmap-definition-6OY57UG3-BJ0qG8Wi.js} +1 -1
- package/editor-web/assets/minus-oPj1GxwA.js +1 -0
- package/editor-web/assets/{packet-JDAUHWVQ-DsHeKYNL.js → packet-JDAUHWVQ-ew3kvyFm.js} +1 -1
- package/editor-web/assets/{pegDiagram-ECIUJNBX-CQyh6TTa.js → pegDiagram-ECIUJNBX-DqUS2xit.js} +1 -1
- package/editor-web/assets/{pie-XZMESJXO-3vCIvpNB.js → pie-XZMESJXO-DTIAMPGm.js} +1 -1
- package/editor-web/assets/{pieDiagram-GNMPY74T-DF5yGBLn.js → pieDiagram-GNMPY74T-DoKOE02-.js} +1 -1
- package/editor-web/assets/progress-CPEbDOoN.js +6 -0
- package/editor-web/assets/{quadrantDiagram-D57K4MC3-B7pxlDYP.js → quadrantDiagram-D57K4MC3-DauOpYun.js} +1 -1
- package/editor-web/assets/{radar-ABXABTNO-cpEA41mL.js → radar-ABXABTNO-BvMJXUU-.js} +1 -1
- package/editor-web/assets/{railroad-I3PHUGI6-BLyy5R2c.js → railroad-I3PHUGI6-D3jdJmhM.js} +1 -1
- package/editor-web/assets/{railroad-abnf-LNEFI6M7-Y-oyol19.js → railroad-abnf-LNEFI6M7-Dm8ZpmPj.js} +1 -1
- package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-o58wHZsr.js → railroad-ebnf-DWYD2UWJ-oc0Du7Ag.js} +1 -1
- package/editor-web/assets/{railroad-peg-JR7BVNR7-CcD3PXZ8.js → railroad-peg-JR7BVNR7-CMrQL_7U.js} +1 -1
- package/editor-web/assets/{railroadDiagram-Y72NRBL7-BuCC4eyy.js → railroadDiagram-Y72NRBL7-y99z0C7i.js} +1 -1
- package/editor-web/assets/react-DztDSW4P.js +1 -0
- package/editor-web/assets/{repeat-2-C5PCbNsg.js → repeat-2-DJi4LW5C.js} +1 -1
- package/editor-web/assets/{requirementDiagram-EQYSW5RA-Dp-JFGn4.js → requirementDiagram-EQYSW5RA-jMr_uoF6.js} +1 -1
- package/editor-web/assets/row-ClBisiBs.js +1 -0
- package/editor-web/assets/{sankeyDiagram-SY24JHO5-rYuCqEvw.js → sankeyDiagram-SY24JHO5-DcUyx03Q.js} +1 -1
- package/editor-web/assets/schemas-68mjUjP5.js +1 -0
- package/editor-web/assets/{sequenceDiagram-BLEHNHQU-DryW8x6d.js → sequenceDiagram-BLEHNHQU-R4X8wRCd.js} +1 -1
- package/editor-web/assets/session-2u9U7koW.js +1 -0
- package/editor-web/assets/slides-BByblSSR.js +1 -0
- package/editor-web/assets/snapshots-C9KV-Y2_.js +56 -0
- package/editor-web/assets/sound-DExlNJbb.js +1 -0
- package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-Bnp0XfpT.js → stateDiagram-v2-A6IESKWZ-BqvXKbCA.js} +1 -1
- package/editor-web/assets/{strikethrough-DJckA35o.js → strikethrough-CyUBnGTl.js} +1 -1
- package/editor-web/assets/{svg-BjM9RazX.js → svg-lBRT-uhy.js} +1 -1
- package/editor-web/assets/swatch-1c1uVn1z.js +1 -0
- package/editor-web/assets/{swimlanes-B3ENRKFQ-BiRRhhbd.js → swimlanes-B3ENRKFQ-hjTXIc6M.js} +1 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-BLfytmPY.js +8 -0
- package/editor-web/assets/switch-D0K-K8-C.js +1 -0
- package/editor-web/assets/{syntax-CC6QYhCz.js → syntax-Bih_jv7W.js} +1 -1
- package/editor-web/assets/tabs-CxxOnGLR.js +1 -0
- package/editor-web/assets/{textarea-BGtPqZdB.js → textarea-Fu93tFO3.js} +1 -1
- package/editor-web/assets/{timeline-definition-JXYKGLGB-D-Q5ZtDF.js → timeline-definition-JXYKGLGB-BcSoN4Dq.js} +1 -1
- package/editor-web/assets/{trash-2-Bjj6cWzP.js → trash-2-BAKAeziW.js} +1 -1
- package/editor-web/assets/{treeView-D4JQ5SDB-B6DDatXq.js → treeView-D4JQ5SDB-CsFN2jrc.js} +1 -1
- package/editor-web/assets/{treemap-SAJKECNS-D7j5ZhiI.js → treemap-SAJKECNS-DP1eqXJ2.js} +1 -1
- package/editor-web/assets/{undo-2-yOSG766T.js → undo-2-DQ5CBmki.js} +1 -1
- package/editor-web/assets/{usecaseDiagram-WPOLBNNX-tkrdKUJB.js → usecaseDiagram-WPOLBNNX-BGxa0osF.js} +1 -1
- package/editor-web/assets/{vennDiagram-Q3Y3IDCW-Ch4XbSnD.js → vennDiagram-Q3Y3IDCW-D2XhTF49.js} +1 -1
- package/editor-web/assets/video-CDbPX4Cr.js +1 -0
- package/editor-web/assets/{wardley-7MLQ67FV-Bynt7qNQ.js → wardley-7MLQ67FV-DM3jMAbZ.js} +1 -1
- package/editor-web/assets/{wardleyDiagram-IVAIDKWA-DRuSgm_L.js → wardleyDiagram-IVAIDKWA-Bf-DaZEg.js} +1 -1
- package/editor-web/assets/{xychartDiagram-4URNHDU4-DctpvfkL.js → xychartDiagram-4URNHDU4-dp-mdcWd.js} +1 -1
- package/editor-web/index.html +6 -5
- package/package.json +2 -2
- package/editor-web/assets/alt-BOVao_9S.js +0 -4
- package/editor-web/assets/article-B6YCzhj8.js +0 -73
- package/editor-web/assets/calc-worker-B5-fDWnb.js +0 -45
- package/editor-web/assets/channel-C26aBI4o.js +0 -1
- package/editor-web/assets/chart-BOnxneyw.js +0 -1
- package/editor-web/assets/choice-O5nwc2N0.js +0 -1
- package/editor-web/assets/collaborator-BJU5qwHd.js +0 -1
- package/editor-web/assets/createLucideIcon-B3B95oX5.js +0 -1
- package/editor-web/assets/dist-C6NqUEG4.js +0 -16
- package/editor-web/assets/dist-C9UGmCG9.js +0 -6
- package/editor-web/assets/dist-CAk5bjBm.js +0 -1
- package/editor-web/assets/dist-CRaWqNwq.js +0 -37
- package/editor-web/assets/dist-CwIBc7HQ.js +0 -1
- package/editor-web/assets/dist-DXRmkezB.js +0 -38
- package/editor-web/assets/dist-EKK5i0dG.js +0 -219
- package/editor-web/assets/dist-hHJlpLWo.js +0 -5
- package/editor-web/assets/dist-oYKcwWUj.js +0 -4
- package/editor-web/assets/dist-wrKxBrVu.js +0 -24
- package/editor-web/assets/flowDiagram-IUGLLWBU-ouDQYiTr.js +0 -1
- package/editor-web/assets/hint-_AQWCDMj.js +0 -1
- package/editor-web/assets/index-BsstP-cI.js +0 -28
- package/editor-web/assets/index-DQRcmxBO.css +0 -2
- package/editor-web/assets/minus-Cgmm6ncD.js +0 -1
- package/editor-web/assets/progress-0B_TVsPi.js +0 -6
- package/editor-web/assets/react-BP46yLMB.js +0 -1
- package/editor-web/assets/react-pgBZqVxJ.js +0 -96
- package/editor-web/assets/schemas-Ewwjtbf4.js +0 -1
- package/editor-web/assets/session-DiI9KYRI.js +0 -1
- package/editor-web/assets/slides-CCwgBcGH.js +0 -1
- package/editor-web/assets/sound-CqryteNl.js +0 -1
- package/editor-web/assets/swatch-DL3HqIjW.js +0 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-BkOls8Tv.js +0 -8
- package/editor-web/assets/switch-DltnKqN-.js +0 -1
- package/editor-web/assets/tabs-C-re0Kxn.js +0 -1
- package/editor-web/assets/video-DXFiCNGc.js +0 -1
|
@@ -32,6 +32,11 @@ export declare const ProfileSchema: z.ZodObject<{
|
|
|
32
32
|
name: z.ZodString;
|
|
33
33
|
email: z.ZodString;
|
|
34
34
|
google: z.ZodBoolean;
|
|
35
|
+
v1: z.ZodOptional<z.ZodObject<{
|
|
36
|
+
url: z.ZodURL;
|
|
37
|
+
closesAt: z.ZodISODateTime;
|
|
38
|
+
bonusCredits: z.ZodDefault<z.ZodNumber>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
35
40
|
}, z.core.$strip>;
|
|
36
41
|
export type Profile = z.infer<typeof ProfileSchema>;
|
|
37
42
|
/** The roles of a team, the strongest last. */
|
|
@@ -125,6 +130,103 @@ export declare const ACCOUNT_CALLS: {
|
|
|
125
130
|
byKind: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
126
131
|
}, z.core.$strip>>;
|
|
127
132
|
}, z.core.$strip>>;
|
|
133
|
+
readonly catalog: AccountCall<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
|
|
134
|
+
version: z.ZodString;
|
|
135
|
+
works: z.ZodArray<z.ZodObject<{
|
|
136
|
+
id: z.ZodString;
|
|
137
|
+
title: z.ZodString;
|
|
138
|
+
description: z.ZodString;
|
|
139
|
+
kind: z.ZodDefault<z.ZodUnion<readonly [z.ZodEnum<{
|
|
140
|
+
data: "data";
|
|
141
|
+
ai: "ai";
|
|
142
|
+
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>>;
|
|
143
|
+
line: z.ZodOptional<z.ZodString>;
|
|
144
|
+
}, z.core.$strip>>;
|
|
145
|
+
tools: z.ZodArray<z.ZodObject<{
|
|
146
|
+
name: z.ZodString;
|
|
147
|
+
work: z.ZodString;
|
|
148
|
+
title: z.ZodString;
|
|
149
|
+
description: z.ZodString;
|
|
150
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
151
|
+
output: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
152
|
+
long: z.ZodBoolean;
|
|
153
|
+
example: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
154
|
+
price: z.ZodOptional<z.ZodObject<{
|
|
155
|
+
credits: z.ZodNumber;
|
|
156
|
+
per: z.ZodUnion<readonly [z.ZodEnum<{
|
|
157
|
+
call: "call";
|
|
158
|
+
result: "result";
|
|
159
|
+
page: "page";
|
|
160
|
+
second: "second";
|
|
161
|
+
minute: "minute";
|
|
162
|
+
thousand_characters: "thousand_characters";
|
|
163
|
+
image: "image";
|
|
164
|
+
frame: "frame";
|
|
165
|
+
megapixel: "megapixel";
|
|
166
|
+
question: "question";
|
|
167
|
+
phrase: "phrase";
|
|
168
|
+
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
169
|
+
varies: z.ZodBoolean;
|
|
170
|
+
}, z.core.$strip>>;
|
|
171
|
+
shown: z.ZodOptional<z.ZodObject<{
|
|
172
|
+
name: z.ZodString;
|
|
173
|
+
line: z.ZodString;
|
|
174
|
+
section: z.ZodUnion<readonly [z.ZodEnum<{
|
|
175
|
+
image: "image";
|
|
176
|
+
video: "video";
|
|
177
|
+
voice: "voice";
|
|
178
|
+
music: "music";
|
|
179
|
+
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
180
|
+
}, z.core.$strip>>;
|
|
181
|
+
}, z.core.$strip>>;
|
|
182
|
+
}, z.core.$strip>>;
|
|
183
|
+
readonly editors: AccountCall<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
|
|
184
|
+
editors: z.ZodArray<z.ZodObject<{
|
|
185
|
+
id: z.ZodString;
|
|
186
|
+
name: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
187
|
+
plural: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
188
|
+
line: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
189
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
190
|
+
color: z.ZodOptional<z.ZodString>;
|
|
191
|
+
}, z.core.$strip>>;
|
|
192
|
+
}, z.core.$strip>>;
|
|
193
|
+
readonly capabilities: AccountCall<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
|
|
194
|
+
off: z.ZodObject<{
|
|
195
|
+
works: z.ZodArray<z.ZodString>;
|
|
196
|
+
tools: z.ZodArray<z.ZodString>;
|
|
197
|
+
}, z.core.$strip>;
|
|
198
|
+
}, z.core.$strip>>;
|
|
199
|
+
readonly "capabilities/set": AccountCall<z.ZodUnion<readonly [z.ZodObject<{
|
|
200
|
+
work: z.ZodString;
|
|
201
|
+
on: z.ZodBoolean;
|
|
202
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
203
|
+
tool: z.ZodString;
|
|
204
|
+
on: z.ZodBoolean;
|
|
205
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
206
|
+
off: z.ZodObject<{
|
|
207
|
+
works: z.ZodArray<z.ZodString>;
|
|
208
|
+
tools: z.ZodArray<z.ZodString>;
|
|
209
|
+
}, z.core.$strip>;
|
|
210
|
+
}, z.core.$strip>>;
|
|
211
|
+
readonly spends: AccountCall<z.ZodObject<{
|
|
212
|
+
days: z.ZodInt;
|
|
213
|
+
limit: z.ZodOptional<z.ZodInt>;
|
|
214
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
215
|
+
spends: z.ZodArray<z.ZodObject<{
|
|
216
|
+
at: z.ZodString;
|
|
217
|
+
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
218
|
+
models: "models";
|
|
219
|
+
tools: "tools";
|
|
220
|
+
studio: "studio";
|
|
221
|
+
other: "other";
|
|
222
|
+
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
223
|
+
what: z.ZodNullable<z.ZodString>;
|
|
224
|
+
seconds: z.ZodNullable<z.ZodNumber>;
|
|
225
|
+
member: z.ZodNullable<z.ZodString>;
|
|
226
|
+
credits: z.ZodNumber;
|
|
227
|
+
}, z.core.$strip>>;
|
|
228
|
+
more: z.ZodBoolean;
|
|
229
|
+
}, z.core.$strip>>;
|
|
128
230
|
readonly checkout: AccountCall<z.ZodUnion<readonly [z.ZodObject<{
|
|
129
231
|
plan: z.ZodString;
|
|
130
232
|
interval: z.ZodEnum<{
|
|
@@ -208,6 +310,22 @@ export declare const ACCOUNT_CALLS: {
|
|
|
208
310
|
}, z.core.$strip>>;
|
|
209
311
|
email: z.ZodNullable<z.ZodString>;
|
|
210
312
|
}, z.core.$strip>>;
|
|
313
|
+
readonly invoices: AccountCall<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{
|
|
314
|
+
invoices: z.ZodArray<z.ZodObject<{
|
|
315
|
+
id: z.ZodString;
|
|
316
|
+
number: z.ZodNullable<z.ZodString>;
|
|
317
|
+
createdAt: z.ZodString;
|
|
318
|
+
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
319
|
+
credits: "credits";
|
|
320
|
+
plan: "plan";
|
|
321
|
+
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
322
|
+
totalCents: z.ZodNumber;
|
|
323
|
+
currency: z.ZodString;
|
|
324
|
+
status: z.ZodString;
|
|
325
|
+
pdf: z.ZodNullable<z.ZodString>;
|
|
326
|
+
url: z.ZodNullable<z.ZodString>;
|
|
327
|
+
}, z.core.$strip>>;
|
|
328
|
+
}, z.core.$strip>>;
|
|
211
329
|
readonly topUp: AccountCall<z.ZodObject<{
|
|
212
330
|
topUpCents: z.ZodNumber;
|
|
213
331
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -316,6 +434,7 @@ export declare const ACCOUNT_CALLS: {
|
|
|
316
434
|
anyone: "anyone";
|
|
317
435
|
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
318
436
|
sendsLeft: z.ZodNumber;
|
|
437
|
+
sendsPerDay: z.ZodOptional<z.ZodNumber>;
|
|
319
438
|
addresses: z.ZodArray<z.ZodObject<{
|
|
320
439
|
address: z.ZodString;
|
|
321
440
|
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
@@ -344,6 +463,7 @@ export declare const ACCOUNT_CALLS: {
|
|
|
344
463
|
anyone: "anyone";
|
|
345
464
|
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
346
465
|
sendsLeft: z.ZodNumber;
|
|
466
|
+
sendsPerDay: z.ZodOptional<z.ZodNumber>;
|
|
347
467
|
addresses: z.ZodArray<z.ZodObject<{
|
|
348
468
|
address: z.ZodString;
|
|
349
469
|
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
@@ -449,6 +569,11 @@ export declare const ACCOUNT_CALLS: {
|
|
|
449
569
|
name: z.ZodString;
|
|
450
570
|
email: z.ZodString;
|
|
451
571
|
google: z.ZodBoolean;
|
|
572
|
+
v1: z.ZodOptional<z.ZodObject<{
|
|
573
|
+
url: z.ZodURL;
|
|
574
|
+
closesAt: z.ZodISODateTime;
|
|
575
|
+
bonusCredits: z.ZodDefault<z.ZodNumber>;
|
|
576
|
+
}, z.core.$strip>>;
|
|
452
577
|
}, z.core.$strip>>;
|
|
453
578
|
readonly "profile/set": AccountCall<z.ZodObject<{
|
|
454
579
|
name: z.ZodString;
|
|
@@ -459,11 +584,18 @@ export declare const ACCOUNT_CALLS: {
|
|
|
459
584
|
client: z.ZodString;
|
|
460
585
|
signedInAt: z.ZodISODateTime;
|
|
461
586
|
lastActiveAt: z.ZodISODateTime;
|
|
587
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
588
|
+
app: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
589
|
+
os: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
590
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
591
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
592
|
+
current: z.ZodOptional<z.ZodBoolean>;
|
|
462
593
|
}, z.core.$strip>>;
|
|
463
594
|
}, z.core.$strip>>;
|
|
464
595
|
readonly "devices/signOut": AccountCall<z.ZodObject<{
|
|
465
596
|
id: z.ZodString;
|
|
466
597
|
}, z.core.$strict>, z.ZodObject<{}, z.core.$strip>>;
|
|
598
|
+
readonly "devices/signOutOthers": AccountCall<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{}, z.core.$strip>>;
|
|
467
599
|
readonly export: AccountCall<z.ZodObject<{}, z.core.$strict>, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
468
600
|
readonly close: AccountCall<z.ZodObject<{}, z.core.$strict>, z.ZodObject<{}, z.core.$strip>>;
|
|
469
601
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as e}from"zod";import{ACCOUNT_DELETE_PATH as
|
|
2
|
+
import{z as e}from"zod";import{ACCOUNT_DELETE_PATH as _,ACCOUNT_EXPORT_PATH as f,DEVICES_PATH as p,DevicesSchema as y}from"./auth.js";import{AUTO_TOP_UP_PATH as b,AutoTopUpRequestSchema as L,BILLING_CHECKOUT_PATH as v,BILLING_PAYMENT_PATH as G,BILLING_PLANS_PATH as j,BILLING_PORTAL_PATH as U,BILLING_REQUEST_PATH as H,BILLING_RESUME_PATH as k,BILLING_SUMMARY_PATH as N,BILLING_TOP_UP_PATH as C,BILLING_USAGE_PATH as R,BillingPaymentSchema as x,BillingPlansSchema as M,BillingSummarySchema as u,BillingUsageSchema as B,CheckoutRequestSchema as D,PortalRequestSchema as $,TopUpRequestSchema as z,BILLING_INVOICES_PATH as q,BILLING_SPENDS_PATH as V,BillingInvoicesSchema as Y,CAPABILITIES_PATH as A,CATALOG_PATH as Z,EDITORS_PATH as K,EditorsSchema as F,CapabilitiesSchema as E,CapabilityRequestSchema as Q,CatalogSchema as X,BillingSpendsSchema as J}from"./cloud.js";import{MAIL_MESSAGES_PATH as g,MAIL_PATH as W,MAIL_PERSON_QUERY as ee,MAIL_SETTINGS_PATH as te,MailMessageSchema as ie,MailSearchResponseSchema as ne,MailSearchSchema as oe,MailSettingsSchema as se,MailboxSchema as S}from"./mail.js";import{MEMBERS_PATH as l,MemberLimitSchema as ae,MembersSchema as re,ORGANIZATIONS_PATH as P,ORGANIZATION_PATH as I}from"./teams.js";export const INVITATIONS_PATH="/api/organization/invitations",InvitationsSchema=e.object({invitations:e.array(e.object({id:e.string(),email:e.string(),role:e.string(),expiresAt:e.iso.datetime()}))}),LEAVE_PATH="/api/organization/leave",KEYS_PATH="/api/keys",KeysSchema=e.object({keys:e.array(e.object({id:e.string(),name:e.string().nullable(),start:e.string().nullable(),enabled:e.boolean(),createdAt:e.iso.datetime(),lastUsedAt:e.iso.datetime().nullable()}))}),PROFILE_PATH="/api/account/profile",ProfileSchema=e.object({name:e.string(),email:e.string(),google:e.boolean(),v1:e.object({url:e.url(),closesAt:e.iso.datetime({offset:!0}),bonusCredits:e.number().int().nonnegative().default(0)}).optional()}),ROLES=["member","admin","owner"];const i=e.strictObject({}),n=e.object({}),w=e.object({url:e.url()}),d=e.string().trim().min(1).max(100),t=(o,h,m,c,s)=>({http:o,route:h,params:m,result:c,about:s});export const ACCOUNT_CALLS={balance:t("GET",N,i,u,"The organization's credits, this month's plan credits, its plan and its auto top-up."),plans:t("GET",j,i,M,"The plans, their prices, and what a top-up buys."),usage:t("GET",R,e.strictObject({days:e.int().min(1).max(400),timeZone:e.string().min(1)}),B,"Credits spent each day by what they were spent on, the days with none left out."),catalog:t("GET",Z,i,X,"The cloud tools' catalog: its works and every tool, with what it costs."),editors:t("GET",K,i,F,"The editors the console lists, free in every product, in their order."),capabilities:t("GET",A,i,E,"The cloud tools the team turned off: works and tools."),"capabilities/set":t("PUT",A,Q,E,"A work or a tool switched on or off for the team, an owner's or an admin's; what is off now."),spends:t("GET",V,e.strictObject({days:e.int().min(1).max(400),limit:e.int().min(1).max(5e3).optional()}),J,"Each spend of the last days, the latest first: when, by whom, on what and how many credits; a member reads their own."),checkout:t("POST",v,D,w,"Stripe Checkout for a plan or a top-up, to open in a browser."),portal:t("POST",U,$,w,"Stripe's Customer Portal at its home (the card, billing details, invoices) or at a flow (a new card, a change of plan, the plan's cancellation), to open in a browser."),resume:t("POST",k,i,u,"A plan cancelled at its period's end taken up again."),payment:t("GET",G,i,x,"The card charged without the person there, and where Stripe's emails go."),invoices:t("GET",q,i,Y,"The organization's invoices, the latest first, each with its PDF."),topUp:t("POST",C,z,e.object({credits:e.number()}),"Credits bought with the saved card at once; answers what was added."),"autoTopUp/set":t("PUT",b,L,e.union([e.object({on:e.literal(!0)}),e.object({saveCard:e.url()})]),"Auto top-up on, or Stripe Checkout that saves a card first (or another), to open in a browser."),"autoTopUp/off":t("DELETE",b,i,n,"Auto top-up off."),"credits/request":t("POST",H,i,e.object({asked:e.literal(!0)}),"The organization's owners and admins asked by email to add credits, at most once a day for each member."),members:t("GET",l,i,re,"The members with their limits and spend; a member sees their own row."),"members/limit":t("PUT",`${l}/:userId/limit`,e.strictObject({userId:e.string().min(1)}).extend(ae.shape),n,"A member's limit in credits a month, null for none."),"members/role":t("PUT",`${l}/:userId/role`,e.strictObject({userId:e.string().min(1),role:e.enum(ROLES)}),n,"A member's role; only an owner makes or unmakes an owner."),"members/remove":t("DELETE",`${l}/:userId`,e.strictObject({userId:e.string().min(1)}),n,"A member removed from the team."),invitations:t("GET",INVITATIONS_PATH,i,InvitationsSchema,"The invitations waiting to be accepted."),"invitations/send":t("POST",INVITATIONS_PATH,e.strictObject({email:e.email(),role:e.enum(["member","admin"])}),n,"Invites a person by email; one invited already is sent a new invitation."),"invitations/cancel":t("DELETE",`${INVITATIONS_PATH}/:id`,e.strictObject({id:e.string().min(1)}),n,"An invitation cancelled."),"team/create":t("POST",P,e.strictObject({name:d}),e.object({id:e.string()}),"A new team, the person its owner."),"team/rename":t("PUT",I,e.strictObject({name:d}),n,"The team renamed."),"team/leave":t("POST",LEAVE_PATH,i,n,"The person leaves the team; its last owner cannot."),"team/dissolve":t("DELETE",I,i,n,"The team dissolved by its owner; it can be restored for 30 days."),"team/restore":t("POST",`${P}/:id/restore`,e.strictObject({id:e.string().min(1)}),n,"A dissolved team restored by its owner."),keys:t("GET",KEYS_PATH,i,KeysSchema,"The person's API keys for the organization."),"keys/create":t("POST",KEYS_PATH,e.strictObject({name:d}),e.object({id:e.string(),key:e.string()}),"A new API key; its secret is in this answer alone."),"keys/enable":t("PUT",`${KEYS_PATH}/:id`,e.strictObject({id:e.string().min(1),enabled:e.boolean()}),n,"An API key turned off or on again."),"keys/remove":t("DELETE",`${KEYS_PATH}/:id`,e.strictObject({id:e.string().min(1)}),n,"An API key deleted."),mail:t("GET",W,i,S,"The person's mailbox in the organization: its addresses and settings."),"mail/settings":t("PUT",`${te}?${ee}`,se,S,"The mailbox's display name, whom its agents may write to, and how long it keeps mail."),"mail/messages":t("GET",g,oe,ne,"The mailbox's messages, newest first."),"mail/message":t("GET",`${g}/:id`,e.strictObject({id:e.string().min(1)}),ie,"One message, read whole."),profile:t("GET",PROFILE_PATH,i,ProfileSchema,"The person's name and email, whether Google signs them in, and AllyHub's previous version while it is open to them."),"profile/set":t("PUT",PROFILE_PATH,e.strictObject({name:d}),n,"The person's name."),devices:t("GET",p,i,y,"The computers signed in as the person."),"devices/signOut":t("DELETE",`${p}/:id`,e.strictObject({id:e.string().min(1)}),n,"A computer signed out."),"devices/signOutOthers":t("DELETE",p,i,n,"Every computer signed out but the one that asks."),export:t("GET",f,i,e.record(e.string(),e.unknown()),"Everything kept about the person."),close:t("POST",_,i,n,"Mails the link that deletes the person's account: a browser's session alone, so a computer opens the page in the browser.")};export function accountRequest(o,h){const m=h,c=new Set,s=o.route.replace(/:([A-Za-z]+)/gu,(r,a)=>(c.add(a),encodeURIComponent(String(m[a])))),T=Object.entries(m).filter(([r,a])=>!c.has(r)&&a!==void 0);if(o.http==="GET"||o.http==="DELETE"){const r=T.map(([a,O])=>`${encodeURIComponent(a)}=${encodeURIComponent(String(O))}`).join("&");return{method:o.http,path:r===""?s:`${s}?${r}`}}return T.length===0?{method:o.http,path:s}:{method:o.http,path:s,body:Object.fromEntries(T)}}
|
|
@@ -21,8 +21,19 @@ export declare const SCOPES = "openid profile email offline_access";
|
|
|
21
21
|
export declare const ACCOUNT_PATH = "/api/account";
|
|
22
22
|
/** The header that names the organization a request acts in; without it, the person's own. */
|
|
23
23
|
export declare const ORGANIZATION_HEADER = "x-allyhub-organization";
|
|
24
|
-
/** `GET`: the computers signed in as the person; `DELETE <path>/<id>` signs one out. */
|
|
24
|
+
/** `GET`: the computers signed in as the person; `DELETE <path>/<id>` signs one out; `DELETE <path>` signs out every one but the asking computer. */
|
|
25
25
|
export declare const DEVICES_PATH = "/api/account/devices";
|
|
26
|
+
/**
|
|
27
|
+
* The header that names a computer's sign-in: an id it makes once and
|
|
28
|
+
* keeps in its credentials file, sent with its token requests and its
|
|
29
|
+
* calls, so AllyHub tells its sign-ins apart and knows which one asks.
|
|
30
|
+
* It only tells them apart; the sign-in itself authorizes.
|
|
31
|
+
*/
|
|
32
|
+
export declare const DEVICE_HEADER = "x-allyhub-device";
|
|
33
|
+
/** With a token request: the computer's name as its owner set it, percent-encoded (RFC 3986). */
|
|
34
|
+
export declare const DEVICE_NAME_HEADER = "x-allyhub-device-name";
|
|
35
|
+
/** A sign-in's id, as a computer makes it. */
|
|
36
|
+
export declare const DeviceIdSchema: z.ZodString;
|
|
26
37
|
/** `GET`: everything kept about the person, as a file. */
|
|
27
38
|
export declare const ACCOUNT_EXPORT_PATH = "/api/account/export";
|
|
28
39
|
/** `POST`, a browser's session alone: mails the link that deletes the account, unless something stands in the way. */
|
|
@@ -33,6 +44,12 @@ export declare const DevicesSchema: z.ZodObject<{
|
|
|
33
44
|
client: z.ZodString;
|
|
34
45
|
signedInAt: z.ZodISODateTime;
|
|
35
46
|
lastActiveAt: z.ZodISODateTime;
|
|
47
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
|
+
app: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
os: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
current: z.ZodOptional<z.ZodBoolean>;
|
|
36
53
|
}, z.core.$strip>>;
|
|
37
54
|
}, z.core.$strip>;
|
|
38
55
|
export type Devices = z.infer<typeof DevicesSchema>;
|
|
@@ -114,6 +131,7 @@ export declare const CredentialsFileSchema: z.ZodObject<{
|
|
|
114
131
|
}, z.core.$strip>>;
|
|
115
132
|
keychain: z.ZodOptional<z.ZodString>;
|
|
116
133
|
since: z.ZodISODateTime;
|
|
134
|
+
device: z.ZodOptional<z.ZodString>;
|
|
117
135
|
}, z.core.$strip>;
|
|
118
136
|
export type CredentialsFile = z.infer<typeof CredentialsFileSchema>;
|
|
119
137
|
//# sourceMappingURL=auth.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as e}from"zod";export const AuthServerSchema=e.object({issuer:e.url(),authorization_endpoint:e.url(),token_endpoint:e.url(),device_authorization_endpoint:e.url(),revocation_endpoint:e.url(),code_challenge_methods_supported:e.array(e.string()).refine(t=>t.includes("S256"),{message:"The server must take S256 PKCE challenges."})}),CLIENT_ID="allyhub-cli",ISSUER_PATH="/api/auth",METADATA_PATH=`/.well-known/oauth-authorization-server${ISSUER_PATH}`,SCOPES="openid profile email offline_access",ACCOUNT_PATH="/api/account",ORGANIZATION_HEADER="x-allyhub-organization",DEVICES_PATH="/api/account/devices",ACCOUNT_EXPORT_PATH="/api/account/export",ACCOUNT_DELETE_PATH="/api/account/delete",DevicesSchema=e.object({devices:e.array(e.object({id:e.string(),client:e.string(),signedInAt:e.iso.datetime(),lastActiveAt:e.iso.datetime()}))}),BROWSER_LINK_PATH="/api/account/browser-link",BrowserLinkRequestSchema=e.strictObject({to:e.string().startsWith("/")}),BrowserLinkSchema=e.object({url:e.url()}),CREDENTIALS_FILE=".allyhub/credentials.json",TokenResponseSchema=e.object({access_token:e.string().min(1),token_type:e.string(),expires_in:e.number().positive(),refresh_token:e.string().min(1).optional(),scope:e.string().optional()}),OAuthErrorSchema=e.object({error:e.string(),error_description:e.string().optional()}),DeviceAuthorizationSchema=e.object({device_code:e.string().min(1),user_code:e.string().min(1),verification_uri:e.url(),verification_uri_complete:e.url().optional(),expires_in:e.number().positive(),interval:e.number().positive().optional()}),AccountSchema=e.object({id:e.string().min(1),email:e.email(),name:e.string().optional(),organization:e.object({id:e.string().min(1),name:e.string()}).optional()}),CredentialsFileSchema=e.object({version:e.literal(1),url:e.url(),issuer:e.url(),account:AccountSchema,refreshToken:e.string().min(1).optional(),access:e.object({token:e.string().min(1),expiresAt:e.iso.datetime({offset:!0})}).optional(),keychain:e.string().min(1).optional(),since:e.iso.datetime({offset:!0})});
|
|
2
|
+
import{z as e}from"zod";export const AuthServerSchema=e.object({issuer:e.url(),authorization_endpoint:e.url(),token_endpoint:e.url(),device_authorization_endpoint:e.url(),revocation_endpoint:e.url(),code_challenge_methods_supported:e.array(e.string()).refine(t=>t.includes("S256"),{message:"The server must take S256 PKCE challenges."})}),CLIENT_ID="allyhub-cli",ISSUER_PATH="/api/auth",METADATA_PATH=`/.well-known/oauth-authorization-server${ISSUER_PATH}`,SCOPES="openid profile email offline_access",ACCOUNT_PATH="/api/account",ORGANIZATION_HEADER="x-allyhub-organization",DEVICES_PATH="/api/account/devices",DEVICE_HEADER="x-allyhub-device",DEVICE_NAME_HEADER="x-allyhub-device-name",DeviceIdSchema=e.string().regex(/^[\w-]{16,64}$/u),ACCOUNT_EXPORT_PATH="/api/account/export",ACCOUNT_DELETE_PATH="/api/account/delete",DevicesSchema=e.object({devices:e.array(e.object({id:e.string(),client:e.string(),signedInAt:e.iso.datetime(),lastActiveAt:e.iso.datetime(),name:e.string().nullable().optional(),app:e.string().nullable().optional(),os:e.string().nullable().optional(),city:e.string().nullable().optional(),country:e.string().nullable().optional(),current:e.boolean().optional()}))}),BROWSER_LINK_PATH="/api/account/browser-link",BrowserLinkRequestSchema=e.strictObject({to:e.string().startsWith("/")}),BrowserLinkSchema=e.object({url:e.url()}),CREDENTIALS_FILE=".allyhub/credentials.json",TokenResponseSchema=e.object({access_token:e.string().min(1),token_type:e.string(),expires_in:e.number().positive(),refresh_token:e.string().min(1).optional(),scope:e.string().optional()}),OAuthErrorSchema=e.object({error:e.string(),error_description:e.string().optional()}),DeviceAuthorizationSchema=e.object({device_code:e.string().min(1),user_code:e.string().min(1),verification_uri:e.url(),verification_uri_complete:e.url().optional(),expires_in:e.number().positive(),interval:e.number().positive().optional()}),AccountSchema=e.object({id:e.string().min(1),email:e.email(),name:e.string().optional(),organization:e.object({id:e.string().min(1),name:e.string()}).optional()}),CredentialsFileSchema=e.object({version:e.literal(1),url:e.url(),issuer:e.url(),account:AccountSchema,refreshToken:e.string().min(1).optional(),access:e.object({token:e.string().min(1),expiresAt:e.iso.datetime({offset:!0})}).optional(),keychain:e.string().min(1).optional(),since:e.iso.datetime({offset:!0}),device:e.string().min(1).optional()});
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** The version of these messages; `bridge/hello` carries each end's. */
|
|
3
|
+
export declare const BRIDGE_PROTOCOL = 1;
|
|
4
|
+
/** The native messaging host Studio installs, by the name Chrome knows it. */
|
|
5
|
+
export declare const BRIDGE_NATIVE_HOST = "com.allyhub.browser";
|
|
6
|
+
/**
|
|
7
|
+
* What an agent names the person's own browser by when it does not care
|
|
8
|
+
* which (`ALLYHUB_BROWSER=person`): their default one if it is connected,
|
|
9
|
+
* else the one connected.
|
|
10
|
+
*/
|
|
11
|
+
export declare const PERSON_BROWSER = "person";
|
|
12
|
+
/** Where a Host's door takes the extension's WebSocket (behind a cloud Studio's gateway, with a ticket). */
|
|
13
|
+
export declare const BRIDGE_PATH = "/browser";
|
|
14
|
+
/**
|
|
15
|
+
* The extension's IDs: the store's (v1's listing, which carries the
|
|
16
|
+
* bridge beside v1's features) and the development build's, fixed by the
|
|
17
|
+
* `key` in its manifest. A native host's manifest names both; a Host's
|
|
18
|
+
* door lets in only their origins.
|
|
19
|
+
*/
|
|
20
|
+
export declare const BRIDGE_EXTENSION_IDS: {
|
|
21
|
+
readonly store: "pmckbhaedjblcbkbkcbmmogpealiaeol";
|
|
22
|
+
readonly development: "dbmenjkebdgjkhjdcicplkaakmjcjhdp";
|
|
23
|
+
};
|
|
24
|
+
/** Where a person installs the extension (Chrome's store; Edge, Brave, Arc and the others install from it too). */
|
|
25
|
+
export declare const BRIDGE_STORE_URL: string;
|
|
26
|
+
/** The origins a Host's door accepts the extension's WebSocket from. */
|
|
27
|
+
export declare const BRIDGE_EXTENSION_ORIGINS: readonly string[];
|
|
28
|
+
/**
|
|
29
|
+
* The pages that may hand the extension a ticket to a cloud Studio (its
|
|
30
|
+
* `externally_connectable`): AllyHub's window, production's and staging's.
|
|
31
|
+
* Never `*.allyhub.studio`, which serves projects' code.
|
|
32
|
+
*/
|
|
33
|
+
export declare const BRIDGE_WINDOW_ORIGINS: readonly ["https://app.allyhub.com", "https://app.allyhub-staging.com"];
|
|
34
|
+
/** The domains a cloud Studio's Host is reached under (its gateway's), production's and staging's. */
|
|
35
|
+
export declare const BRIDGE_STUDIO_DOMAINS: readonly ["allyhub.studio", "allyhub-studio-staging.com"];
|
|
36
|
+
/** What AllyHub's window asks the extension (`chrome.runtime.sendMessage` to it). */
|
|
37
|
+
export declare const BridgeWindowMessageSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
38
|
+
type: z.ZodLiteral<"allyhub/bridge/status">;
|
|
39
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
+
type: z.ZodLiteral<"allyhub/bridge/connect">;
|
|
41
|
+
url: z.ZodString;
|
|
42
|
+
}, z.core.$strip>], "type">;
|
|
43
|
+
export type BridgeWindowMessage = z.infer<typeof BridgeWindowMessageSchema>;
|
|
44
|
+
/** The extension's answer to the window. */
|
|
45
|
+
export declare const BridgeWindowAnswerSchema: z.ZodObject<{
|
|
46
|
+
version: z.ZodString;
|
|
47
|
+
connected: z.ZodArray<z.ZodString>;
|
|
48
|
+
error: z.ZodOptional<z.ZodString>;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
export type BridgeWindowAnswer = z.infer<typeof BridgeWindowAnswerSchema>;
|
|
51
|
+
/**
|
|
52
|
+
* The address the extension may connect to, a window gave it: a cloud
|
|
53
|
+
* Studio's door (`wss://<sandbox>.allyhub.studio/browser`), never another
|
|
54
|
+
* server; a development build, a Host on this computer too, named
|
|
55
|
+
* `localhost`, `127.0.0.1` or any `*.localhost` (`cloud:local` reaches a
|
|
56
|
+
* Host as `<sandbox>.studio.localhost`). `undefined` for any other.
|
|
57
|
+
*
|
|
58
|
+
* Read by the URL parser, not a pattern: what it returns is the address
|
|
59
|
+
* the extension connects to, so a spelling a pattern reads apart from the
|
|
60
|
+
* parser (a backslash, an encoded slash) cannot reach another server.
|
|
61
|
+
*/
|
|
62
|
+
export declare function bridgeTarget(url: string, development: boolean): URL | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* The largest message Chrome passes from a native host to its extension
|
|
65
|
+
* is 1 MB; the other way, 64 MiB. A Host splits what it sends over native
|
|
66
|
+
* messaging into parts well under that (`splitNative`), and the extension
|
|
67
|
+
* puts them together again (`NativeParts`).
|
|
68
|
+
*/
|
|
69
|
+
export declare const NATIVE_PART_CHARS: number;
|
|
70
|
+
/** Browsers the extension runs in, by their product. */
|
|
71
|
+
export declare const BROWSER_PRODUCTS: readonly ["chrome", "edge", "brave", "arc", "opera", "vivaldi", "chromium"];
|
|
72
|
+
export declare const BrowserProductSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
73
|
+
chrome: "chrome";
|
|
74
|
+
edge: "edge";
|
|
75
|
+
brave: "brave";
|
|
76
|
+
arc: "arc";
|
|
77
|
+
opera: "opera";
|
|
78
|
+
vivaldi: "vivaldi";
|
|
79
|
+
chromium: "chromium";
|
|
80
|
+
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
81
|
+
export type BrowserProduct = z.infer<typeof BrowserProductSchema>;
|
|
82
|
+
/** How a browser is called to a person. */
|
|
83
|
+
export declare const BROWSER_PRODUCT_NAMES: Record<(typeof BROWSER_PRODUCTS)[number], string>;
|
|
84
|
+
/** A browser's name for a person: its product's, or the word itself for one this version does not know. */
|
|
85
|
+
export declare const browserName: (product: string) => string;
|
|
86
|
+
/** The extension says who it is, first, on every connection. */
|
|
87
|
+
export declare const BridgeHelloSchema: z.ZodObject<{
|
|
88
|
+
protocol: z.ZodInt;
|
|
89
|
+
extension: z.ZodObject<{
|
|
90
|
+
id: z.ZodString;
|
|
91
|
+
version: z.ZodString;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
browser: z.ZodObject<{
|
|
94
|
+
id: z.ZodString;
|
|
95
|
+
product: z.ZodUnion<readonly [z.ZodEnum<{
|
|
96
|
+
chrome: "chrome";
|
|
97
|
+
edge: "edge";
|
|
98
|
+
brave: "brave";
|
|
99
|
+
arc: "arc";
|
|
100
|
+
opera: "opera";
|
|
101
|
+
vivaldi: "vivaldi";
|
|
102
|
+
chromium: "chromium";
|
|
103
|
+
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
104
|
+
version: z.ZodString;
|
|
105
|
+
userAgent: z.ZodString;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
}, z.core.$strip>;
|
|
108
|
+
export type BridgeHello = z.infer<typeof BridgeHelloSchema>;
|
|
109
|
+
/** The Host's answer: who it is, so the extension can name it. */
|
|
110
|
+
export declare const BridgeWelcomeSchema: z.ZodObject<{
|
|
111
|
+
protocol: z.ZodInt;
|
|
112
|
+
host: z.ZodObject<{
|
|
113
|
+
name: z.ZodString;
|
|
114
|
+
remote: z.ZodBoolean;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
export type BridgeWelcome = z.infer<typeof BridgeWelcomeSchema>;
|
|
118
|
+
/** A tab, as `chrome.tabs` describes it, and only what the Host uses. */
|
|
119
|
+
export declare const BridgeTabSchema: z.ZodObject<{
|
|
120
|
+
tabId: z.ZodInt;
|
|
121
|
+
windowId: z.ZodOptional<z.ZodInt>;
|
|
122
|
+
url: z.ZodOptional<z.ZodString>;
|
|
123
|
+
title: z.ZodOptional<z.ZodString>;
|
|
124
|
+
openerTabId: z.ZodOptional<z.ZodInt>;
|
|
125
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
+
status: z.ZodOptional<z.ZodString>;
|
|
127
|
+
}, z.core.$strip>;
|
|
128
|
+
export type BridgeTab = z.infer<typeof BridgeTabSchema>;
|
|
129
|
+
/**
|
|
130
|
+
* A group of the agent's tabs: a Chrome tab group per project, named for
|
|
131
|
+
* it. `key` is the Host's, the same for the same project.
|
|
132
|
+
*/
|
|
133
|
+
export declare const BridgeGroupSchema: z.ZodObject<{
|
|
134
|
+
key: z.ZodString;
|
|
135
|
+
title: z.ZodString;
|
|
136
|
+
}, z.core.$strip>;
|
|
137
|
+
export type BridgeGroup = z.infer<typeof BridgeGroupSchema>;
|
|
138
|
+
/** Why Chrome let go of a tab (`chrome.debugger.onDetach`'s reasons, and the extension's own). */
|
|
139
|
+
export declare const DETACH_REASONS: readonly ["target_closed", "canceled_by_user", "not_allowed", "released"];
|
|
140
|
+
export declare const DetachReasonSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
141
|
+
target_closed: "target_closed";
|
|
142
|
+
canceled_by_user: "canceled_by_user";
|
|
143
|
+
not_allowed: "not_allowed";
|
|
144
|
+
released: "released";
|
|
145
|
+
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
146
|
+
/** A CDP command for a tab: the tab's own session, or a child's (a frame in another process, a worker). */
|
|
147
|
+
export declare const BridgeCdpSchema: z.ZodObject<{
|
|
148
|
+
tabId: z.ZodInt;
|
|
149
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
150
|
+
method: z.ZodString;
|
|
151
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
152
|
+
}, z.core.$strip>;
|
|
153
|
+
/** What the Host asks of the extension. */
|
|
154
|
+
export declare const BRIDGE_EXTENSION_METHODS: {
|
|
155
|
+
readonly "tabs/create": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
156
|
+
group: z.ZodObject<{
|
|
157
|
+
key: z.ZodString;
|
|
158
|
+
title: z.ZodString;
|
|
159
|
+
}, z.core.$strip>;
|
|
160
|
+
url: z.ZodOptional<z.ZodString>;
|
|
161
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
162
|
+
tabId: z.ZodInt;
|
|
163
|
+
windowId: z.ZodOptional<z.ZodInt>;
|
|
164
|
+
url: z.ZodOptional<z.ZodString>;
|
|
165
|
+
title: z.ZodOptional<z.ZodString>;
|
|
166
|
+
openerTabId: z.ZodOptional<z.ZodInt>;
|
|
167
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
168
|
+
status: z.ZodOptional<z.ZodString>;
|
|
169
|
+
}, z.core.$strip>>;
|
|
170
|
+
readonly "tabs/close": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
171
|
+
tabId: z.ZodInt;
|
|
172
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
|
|
173
|
+
readonly "tabs/activate": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
174
|
+
tabId: z.ZodInt;
|
|
175
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
|
|
176
|
+
readonly "debugger/attach": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
177
|
+
tabId: z.ZodInt;
|
|
178
|
+
group: z.ZodObject<{
|
|
179
|
+
key: z.ZodString;
|
|
180
|
+
title: z.ZodString;
|
|
181
|
+
}, z.core.$strip>;
|
|
182
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
183
|
+
targetInfo: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
184
|
+
}, z.core.$strip>>;
|
|
185
|
+
readonly "debugger/detach": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
186
|
+
tabId: z.ZodInt;
|
|
187
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
|
|
188
|
+
readonly "debugger/send": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
189
|
+
tabId: z.ZodInt;
|
|
190
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
191
|
+
method: z.ZodString;
|
|
192
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
193
|
+
}, z.core.$strip>, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
194
|
+
readonly "groups/release": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
195
|
+
key: z.ZodString;
|
|
196
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>>;
|
|
197
|
+
};
|
|
198
|
+
/** What the extension asks of the Host. */
|
|
199
|
+
export declare const BRIDGE_HOST_METHODS: {
|
|
200
|
+
readonly "bridge/hello": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
201
|
+
protocol: z.ZodInt;
|
|
202
|
+
extension: z.ZodObject<{
|
|
203
|
+
id: z.ZodString;
|
|
204
|
+
version: z.ZodString;
|
|
205
|
+
}, z.core.$strip>;
|
|
206
|
+
browser: z.ZodObject<{
|
|
207
|
+
id: z.ZodString;
|
|
208
|
+
product: z.ZodUnion<readonly [z.ZodEnum<{
|
|
209
|
+
chrome: "chrome";
|
|
210
|
+
edge: "edge";
|
|
211
|
+
brave: "brave";
|
|
212
|
+
arc: "arc";
|
|
213
|
+
opera: "opera";
|
|
214
|
+
vivaldi: "vivaldi";
|
|
215
|
+
chromium: "chromium";
|
|
216
|
+
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
217
|
+
version: z.ZodString;
|
|
218
|
+
userAgent: z.ZodString;
|
|
219
|
+
}, z.core.$strip>;
|
|
220
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
221
|
+
protocol: z.ZodInt;
|
|
222
|
+
host: z.ZodObject<{
|
|
223
|
+
name: z.ZodString;
|
|
224
|
+
remote: z.ZodBoolean;
|
|
225
|
+
}, z.core.$strip>;
|
|
226
|
+
}, z.core.$strip>>;
|
|
227
|
+
};
|
|
228
|
+
/** What the extension tells the Host. */
|
|
229
|
+
export declare const BRIDGE_HOST_NOTIFICATIONS: {
|
|
230
|
+
readonly "tabs/added": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
231
|
+
key: z.ZodString;
|
|
232
|
+
tab: z.ZodObject<{
|
|
233
|
+
tabId: z.ZodInt;
|
|
234
|
+
windowId: z.ZodOptional<z.ZodInt>;
|
|
235
|
+
url: z.ZodOptional<z.ZodString>;
|
|
236
|
+
title: z.ZodOptional<z.ZodString>;
|
|
237
|
+
openerTabId: z.ZodOptional<z.ZodInt>;
|
|
238
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
239
|
+
status: z.ZodOptional<z.ZodString>;
|
|
240
|
+
}, z.core.$strip>;
|
|
241
|
+
}, z.core.$strip>>;
|
|
242
|
+
readonly "tabs/updated": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
243
|
+
tab: z.ZodObject<{
|
|
244
|
+
tabId: z.ZodInt;
|
|
245
|
+
windowId: z.ZodOptional<z.ZodInt>;
|
|
246
|
+
url: z.ZodOptional<z.ZodString>;
|
|
247
|
+
title: z.ZodOptional<z.ZodString>;
|
|
248
|
+
openerTabId: z.ZodOptional<z.ZodInt>;
|
|
249
|
+
active: z.ZodOptional<z.ZodBoolean>;
|
|
250
|
+
status: z.ZodOptional<z.ZodString>;
|
|
251
|
+
}, z.core.$strip>;
|
|
252
|
+
}, z.core.$strip>>;
|
|
253
|
+
readonly "tabs/removed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
254
|
+
tabId: z.ZodInt;
|
|
255
|
+
}, z.core.$strip>>;
|
|
256
|
+
readonly "debugger/event": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
257
|
+
tabId: z.ZodInt;
|
|
258
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
259
|
+
method: z.ZodString;
|
|
260
|
+
params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
261
|
+
}, z.core.$strip>>;
|
|
262
|
+
readonly "debugger/detached": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
263
|
+
tabId: z.ZodInt;
|
|
264
|
+
reason: z.ZodUnion<readonly [z.ZodEnum<{
|
|
265
|
+
target_closed: "target_closed";
|
|
266
|
+
canceled_by_user: "canceled_by_user";
|
|
267
|
+
not_allowed: "not_allowed";
|
|
268
|
+
released: "released";
|
|
269
|
+
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
270
|
+
}, z.core.$strip>>;
|
|
271
|
+
readonly "bridge/stopped": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{}, z.core.$strip>>;
|
|
272
|
+
readonly "bridge/ping": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{}, z.core.$strip>>;
|
|
273
|
+
};
|
|
274
|
+
/** Why a CDP command is refused, or undefined when it is relayed. */
|
|
275
|
+
export declare function refusedCdp(cdpMethod: string): string | undefined;
|
|
276
|
+
/** Pages no agent may use: the browser's own, other extensions', the store. */
|
|
277
|
+
export declare function usableUrl(url: string | undefined): boolean;
|
|
278
|
+
/** One part of a message too large for native messaging. */
|
|
279
|
+
export declare const NativePartSchema: z.ZodObject<{
|
|
280
|
+
part: z.ZodObject<{
|
|
281
|
+
id: z.ZodInt;
|
|
282
|
+
index: z.ZodInt;
|
|
283
|
+
count: z.ZodInt;
|
|
284
|
+
text: z.ZodString;
|
|
285
|
+
}, z.core.$strip>;
|
|
286
|
+
}, z.core.$strip>;
|
|
287
|
+
/** A message as native messaging carries it to the extension: whole, or in parts. */
|
|
288
|
+
export declare function splitNative(text: string, nextId: () => number, max?: number): string[];
|
|
289
|
+
/** Puts a message sent in parts together again: undefined until its last part. */
|
|
290
|
+
export declare class NativeParts {
|
|
291
|
+
private readonly pending;
|
|
292
|
+
/** A message received: itself when whole, its text once its last part came, or undefined. */
|
|
293
|
+
take(message: unknown): unknown;
|
|
294
|
+
}
|
|
295
|
+
/** An error the other end answered with. */
|
|
296
|
+
export declare class BridgeError extends Error {
|
|
297
|
+
readonly code: number;
|
|
298
|
+
constructor(code: number, message: string);
|
|
299
|
+
}
|
|
300
|
+
export interface BridgePeerOptions {
|
|
301
|
+
/** Sends one message to the other end. */
|
|
302
|
+
send(message: unknown): void;
|
|
303
|
+
/** Answers a request: its result, or throws (a `BridgeError` keeps its code). */
|
|
304
|
+
request?(method: string, params: unknown): Promise<unknown>;
|
|
305
|
+
/** Hears a notification. */
|
|
306
|
+
notify?(method: string, params: unknown): void;
|
|
307
|
+
/** How long a request waits for its answer, by method; default 30 s. */
|
|
308
|
+
timeoutMs?(method: string): number;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* One end of the bridge: requests both ways, notifications both ways, over
|
|
312
|
+
* any transport that carries a message at a time. An answer is handed to
|
|
313
|
+
* its caller as it arrives, before any message after it is read, so a CDP
|
|
314
|
+
* client sees a command's answer and the events after it in Chrome's
|
|
315
|
+
* order (Browser MCP's ordering fix).
|
|
316
|
+
*/
|
|
317
|
+
export declare class BridgePeer {
|
|
318
|
+
private readonly o;
|
|
319
|
+
private readonly pending;
|
|
320
|
+
private next;
|
|
321
|
+
private closed;
|
|
322
|
+
constructor(options: BridgePeerOptions);
|
|
323
|
+
request(method: string, params: unknown): Promise<unknown>;
|
|
324
|
+
/**
|
|
325
|
+
* A request whose answer is handed to `done` as it is read, before any
|
|
326
|
+
* message after it: what a relay uses to keep a command's answer ahead
|
|
327
|
+
* of the events Chrome sent after it.
|
|
328
|
+
*/
|
|
329
|
+
call(method: string, params: unknown, done: (error: Error | undefined, result: unknown) => void): void;
|
|
330
|
+
notify(method: string, params: unknown): void;
|
|
331
|
+
/** A message from the other end. */
|
|
332
|
+
receive(message: unknown): void;
|
|
333
|
+
/** The transport ended: every request waiting fails. */
|
|
334
|
+
close(reason: string): void;
|
|
335
|
+
get isClosed(): boolean;
|
|
336
|
+
}
|
|
337
|
+
//# sourceMappingURL=browser-bridge.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{z as e}from"zod";import{method as d,notification as g}from"./jsonrpc.js";import{known as b,openEnum as l}from"./open.js";export const BRIDGE_PROTOCOL=1,BRIDGE_NATIVE_HOST="com.allyhub.browser",PERSON_BROWSER="person",BRIDGE_PATH="/browser",BRIDGE_EXTENSION_IDS={store:"pmckbhaedjblcbkbkcbmmogpealiaeol",development:"dbmenjkebdgjkhjdcicplkaakmjcjhdp"},BRIDGE_STORE_URL=`https://chromewebstore.google.com/detail/${BRIDGE_EXTENSION_IDS.store}`,BRIDGE_EXTENSION_ORIGINS=Object.values(BRIDGE_EXTENSION_IDS).map(r=>`chrome-extension://${r}`),BRIDGE_WINDOW_ORIGINS=["https://app.allyhub.com","https://app.allyhub-staging.com"],BRIDGE_STUDIO_DOMAINS=["allyhub.studio","allyhub-studio-staging.com"],BridgeWindowMessageSchema=e.discriminatedUnion("type",[e.object({type:e.literal("allyhub/bridge/status")}),e.object({type:e.literal("allyhub/bridge/connect"),url:e.string()})]),BridgeWindowAnswerSchema=e.object({version:e.string(),connected:e.array(e.string()),error:e.string().optional()});export function bridgeTarget(r,o){let t;try{t=new URL(r)}catch{return}if(t.username!==""||t.password!==""||t.pathname!==BRIDGE_PATH||t.hash!=="")return;const n=t.protocol.toLowerCase(),s=t.hostname.toLowerCase();if(n==="wss:"&&BRIDGE_STUDIO_DOMAINS.some(a=>s.endsWith(`.${a}`))||o&&(n==="ws:"||n==="wss:")&&(s==="127.0.0.1"||s==="localhost"||s.endsWith(".localhost")))return t}export const NATIVE_PART_CHARS=128*1024,BROWSER_PRODUCTS=["chrome","edge","brave","arc","opera","vivaldi","chromium"],BrowserProductSchema=l(BROWSER_PRODUCTS),BROWSER_PRODUCT_NAMES={chrome:"Google Chrome",edge:"Microsoft Edge",brave:"Brave",arc:"Arc",opera:"Opera",vivaldi:"Vivaldi",chromium:"Chromium"},browserName=r=>b(BROWSER_PRODUCTS,r)?BROWSER_PRODUCT_NAMES[r]:r,BridgeHelloSchema=e.object({protocol:e.int().min(1),extension:e.object({id:e.string(),version:e.string()}),browser:e.object({id:e.string().min(1).max(100),product:BrowserProductSchema,version:e.string(),userAgent:e.string()})}),BridgeWelcomeSchema=e.object({protocol:e.int().min(1),host:e.object({name:e.string(),remote:e.boolean()})}),BridgeTabSchema=e.object({tabId:e.int(),windowId:e.int().optional(),url:e.string().optional(),title:e.string().optional(),openerTabId:e.int().optional(),active:e.boolean().optional(),status:e.string().optional()}),BridgeGroupSchema=e.object({key:e.string().min(1).max(200),title:e.string().min(1).max(80)}),DETACH_REASONS=["target_closed","canceled_by_user","not_allowed","released"],DetachReasonSchema=l(DETACH_REASONS),BridgeCdpSchema=e.object({tabId:e.int(),sessionId:e.string().optional(),method:e.string().min(1),params:e.record(e.string(),e.unknown()).optional()});const p=e.object({});export const BRIDGE_EXTENSION_METHODS={"tabs/create":d(e.object({group:BridgeGroupSchema,url:e.string().optional()}),BridgeTabSchema,"Opens a tab in the background, in the group, and attaches the debugger to it."),"tabs/close":d(e.object({tabId:e.int()}),p,"Closes a tab."),"tabs/activate":d(e.object({tabId:e.int()}),p,"Shows a tab to the person (a handoff: something only they can do)."),"debugger/attach":d(e.object({tabId:e.int(),group:BridgeGroupSchema}),e.object({targetInfo:e.record(e.string(),e.unknown())}),"Attaches the debugger to a tab and keeps it in the group: its Target.getTargetInfo."),"debugger/detach":d(e.object({tabId:e.int()}),p,"Lets go of a tab; it stays open, in its group."),"debugger/send":d(BridgeCdpSchema,e.record(e.string(),e.unknown()),"Sends a CDP command to an attached tab, refused when it reaches past the tab."),"groups/release":d(e.object({key:e.string()}),p,"Lets go of every tab of a group and ungroups them; they stay open for the person.")},BRIDGE_HOST_METHODS={"bridge/hello":d(BridgeHelloSchema,BridgeWelcomeSchema,"The extension says who it is; the Host who it is.")},BRIDGE_HOST_NOTIFICATIONS={"tabs/added":g(e.object({key:e.string(),tab:BridgeTabSchema}),"A tab joined a group: the person dragged it in, or one of the group's pages opened it."),"tabs/updated":g(e.object({tab:BridgeTabSchema}),"A tab of a group changed: its address, title or loading."),"tabs/removed":g(e.object({tabId:e.int()}),"A tab of a group closed or left it."),"debugger/event":g(BridgeCdpSchema,"A CDP event from an attached tab."),"debugger/detached":g(e.object({tabId:e.int(),reason:DetachReasonSchema}),"Chrome let go of a tab, or the extension did."),"bridge/stopped":g(e.object({}),"The person stopped the agents (Cancel on Chrome's debugging bar): every tab was let go."),"bridge/ping":g(e.object({}),"Keeps a WebSocket, and so the extension's service worker, alive.")};const m=new Set(["Network.getAllCookies","Network.getCookies","Network.setCookie","Network.setCookies","Network.deleteCookies","Network.clearBrowserCookies","Network.clearBrowserCache","Network.loadNetworkResource","Page.setDownloadBehavior","Security.setIgnoreCertificateErrors","Target.attachToTarget","Target.attachToBrowserTarget","Target.activateTarget","Target.closeTarget","Target.createTarget","Target.createBrowserContext","Target.disposeBrowserContext","Target.exposeDevToolsProtocol","Target.getTargets","Target.sendMessageToTarget","Target.setDiscoverTargets","Target.setRemoteLocations"]),f=new Set(["Storage","IndexedDB","CacheStorage","DOMStorage","Browser","SystemInfo"]);export function refusedCdp(r){const o=r.split(".")[0]??"";if(m.has(r)||f.has(o))return`AllyHub's extension does not allow ${r} in the person's browser: it reaches past the tab (other sites, other tabs, or the browser itself).`}export function usableUrl(r){if(r===void 0||r===""||r==="about:blank")return!0;const o=/^https?:\/\/(?:[^@/?#]*@)?(\[[^\]]*\]|[^:/?#]+)(?::\d*)?([^?#]*)/iu.exec(r);if(!o)return!1;const t=(o[1]??"").toLowerCase(),n=o[2]===void 0||o[2]===""?"/":o[2];return!w.some(s=>t===s.host&&n.startsWith(s.path))}const w=[{host:"chromewebstore.google.com",path:"/"},{host:"chrome.google.com",path:"/webstore"},{host:"microsoftedge.microsoft.com",path:"/addons"}];export const NativePartSchema=e.object({part:e.object({id:e.int(),index:e.int().min(0),count:e.int().min(1),text:e.string()})});export function splitNative(r,o,t=NATIVE_PART_CHARS){if(r.length<=t)return[r];const n=o(),s=Math.ceil(r.length/t),a=[];for(let i=0;i<s;i++)a.push(JSON.stringify({part:{id:n,index:i,count:s,text:r.slice(i*t,(i+1)*t)}}));return a}export class NativeParts{pending=new Map;take(o){const t=NativePartSchema.safeParse(o);if(!t.success)return o;const{id:n,index:s,count:a,text:i}=t.data.part;let c=this.pending.get(n);if(c||(c=[],this.pending.set(n,c)),c[s]=i,!(c.filter(u=>typeof u=="string").length<a))return this.pending.delete(n),JSON.parse(c.join(""))}}export class BridgeError extends Error{code;constructor(o,t){super(t),this.name="BridgeError",this.code=o}}const h=globalThis;export class BridgePeer{o;pending=new Map;next=1;closed;constructor(o){this.o=o}request(o,t){return new Promise((n,s)=>{this.call(o,t,(a,i)=>{a?s(a):n(i)})})}call(o,t,n){if(this.closed){n(this.closed,void 0);return}const s=this.next++,a=this.o.timeoutMs?.(o)??3e4,i=h.setTimeout(()=>{this.pending.delete(s),n(new BridgeError(-32005,`${o} had no answer in ${String(a/1e3)} s.`),void 0)},a);this.pending.set(s,{method:o,done:n,timer:i});try{this.o.send({jsonrpc:"2.0",id:s,method:o,params:t})}catch(c){h.clearTimeout(i),this.pending.delete(s),n(c instanceof Error?c:new Error(String(c)),void 0)}}notify(o,t){this.closed||this.o.send({jsonrpc:"2.0",method:o,params:t})}receive(o){if(typeof o!="object"||o===null)return;const t=o;if(typeof t.method=="string"){if(typeof t.id=="number"||typeof t.id=="string"){const s=t.id;(this.o.request?this.o.request(t.method,t.params??{}):Promise.reject(new BridgeError(-32601,`There is no method "${t.method}".`))).then(i=>{this.closed||this.o.send({jsonrpc:"2.0",id:s,result:i??{}})},i=>{this.closed||this.o.send({jsonrpc:"2.0",id:s,error:{code:i instanceof BridgeError?i.code:-32603,message:i instanceof Error?i.message:String(i)}})})}else this.o.notify?.(t.method,t.params??{});return}if(typeof t.id!="number")return;const n=this.pending.get(t.id);n&&(this.pending.delete(t.id),h.clearTimeout(n.timer),t.error!==void 0?n.done(new BridgeError(typeof t.error.code=="number"?t.error.code:-32603,typeof t.error.message=="string"?t.error.message:n.method),void 0):n.done(void 0,t.result))}close(o){if(!this.closed){this.closed=new BridgeError(-32005,o);for(const t of this.pending.values())h.clearTimeout(t.timer),t.done(this.closed,void 0);this.pending.clear()}}get isClosed(){return this.closed!==void 0}}
|