allyhub 0.15.3 → 0.16.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 +9 -0
- package/dist/commands/add.js +1 -1
- package/dist/commands/cloud-tools.js +1 -1
- package/dist/commands/dev.js +5 -5
- package/dist/commands/doctor.js +3 -3
- package/dist/commands/frames/doc.js +1 -1
- package/dist/commands/inspect/common.js +3 -3
- package/dist/commands/inspect/facts.js +2 -2
- package/dist/commands/inspect/layout.js +1 -1
- package/dist/commands/mail.js +6 -6
- package/dist/commands/render.js +1 -1
- package/dist/main.js +8 -8
- package/dist/node_modules/@allyhub/3d-extension/dist/cli/scenery-text.js +2 -2
- package/dist/node_modules/@allyhub/3d-extension/package.json +1 -1
- 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/dist/file-check.d.ts +2 -2
- package/dist/node_modules/@allyhub/build/dist/index.d.ts +1 -1
- package/dist/node_modules/@allyhub/build/dist/inspect-view.d.ts +1 -1
- package/dist/node_modules/@allyhub/build/dist/inspect-view.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
- package/dist/node_modules/@allyhub/build/dist/work.d.ts +9 -1
- package/dist/node_modules/@allyhub/build/dist/work.js +3 -3
- package/dist/node_modules/@allyhub/build/package.json +1 -1
- package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/canvas-extension/skills/allyhub/references/canvas.md +2 -2
- package/dist/node_modules/@allyhub/canvas-model/package.json +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/blobs.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +12 -3
- package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/index.d.ts +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/index.js +1 -1
- 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/dev-server/dist/deletion.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/inputs.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/writer.js +3 -2
- 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/package.json +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/inspect.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/doc-print/package.json +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/package.json +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/website.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/items.d.ts +30 -4
- package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +15 -4
- package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
- package/dist/node_modules/@allyhub/formats/package.json +1 -1
- package/dist/node_modules/@allyhub/i18n/dist/index.js +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/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/image-extension/dist/workspace.js +1 -1
- package/dist/node_modules/@allyhub/image-extension/package.json +2 -2
- package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +3 -3
- 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/dist/load.js +2 -2
- 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/linkedin-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-extension/skills/allyhub/references/linkedin.md +1 -1
- package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-view/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/package.json +1 -1
- package/dist/node_modules/@allyhub/model/package.json +1 -1
- package/dist/node_modules/@allyhub/office-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/office-extension/markup/csv/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/office-extension/markup/csv/data/leads.csv +5 -0
- package/dist/node_modules/@allyhub/office-extension/markup/csv/markup.json +19 -0
- package/dist/node_modules/@allyhub/office-extension/markup/document/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/office-extension/markup/document/briefs/launch.docx +0 -0
- package/dist/node_modules/@allyhub/office-extension/markup/document/markup.json +11 -0
- package/dist/node_modules/@allyhub/office-extension/markup/presentation/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/office-extension/markup/presentation/decks/pitch.pptx +0 -0
- package/dist/node_modules/@allyhub/office-extension/markup/presentation/markup.json +11 -0
- package/dist/node_modules/@allyhub/office-extension/markup/workbook/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/office-extension/markup/workbook/data/plans.xlsx +0 -0
- package/dist/node_modules/@allyhub/office-extension/markup/workbook/markup.json +10 -0
- package/dist/node_modules/@allyhub/office-extension/package.json +124 -0
- package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
- package/dist/node_modules/@allyhub/piece/dist/source.d.ts +2 -0
- package/dist/node_modules/@allyhub/piece/dist/source.js +1 -1
- package/dist/node_modules/@allyhub/piece/package.json +1 -1
- package/dist/node_modules/@allyhub/project/dist/part-keys.js +1 -1
- package/dist/node_modules/@allyhub/project/package.json +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +10 -5
- package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +7 -0
- package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/blobs.d.ts +9 -0
- package/dist/node_modules/@allyhub/protocol/dist/blobs.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.d.ts +77 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +39 -9
- package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +15 -15
- package/dist/node_modules/@allyhub/protocol/dist/events.d.ts +441 -5
- package/dist/node_modules/@allyhub/protocol/dist/events.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +2 -2
- package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +8 -0
- package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +5 -5
- package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +15 -0
- package/dist/node_modules/@allyhub/protocol/dist/kinds.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/paywall.d.ts +134 -0
- package/dist/node_modules/@allyhub/protocol/dist/paywall.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/place.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +3 -3
- package/dist/node_modules/@allyhub/protocol/dist/purposes.d.ts +47 -0
- package/dist/node_modules/@allyhub/protocol/dist/purposes.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +52 -5
- package/dist/node_modules/@allyhub/protocol/dist/shares.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.d.ts +34 -0
- package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/sites.d.ts +1 -0
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +21 -52
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/studio-server.d.ts +264 -0
- package/dist/node_modules/@allyhub/protocol/dist/studio-server.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.d.ts +18 -0
- package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.d.ts +97 -0
- package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/teams.d.ts +3 -2
- package/dist/node_modules/@allyhub/protocol/dist/teams.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +20 -20
- package/dist/node_modules/@allyhub/protocol/dist/turns.d.ts +71 -0
- package/dist/node_modules/@allyhub/protocol/dist/turns.js +2 -0
- package/dist/node_modules/@allyhub/protocol/package.json +1 -1
- package/dist/node_modules/@allyhub/registry/package.json +1 -1
- package/dist/node_modules/@allyhub/render/package.json +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/dist/index.js +4 -4
- package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/cli/sheet.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/package.json +3 -3
- package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-extension/dist/cli/slides.js +2 -2
- package/dist/node_modules/@allyhub/slides-extension/package.json +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/audio-icon.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/package.json +5 -1
- package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/dist/slide-css.js +20 -0
- 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/runtime/stage.html +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.js +2 -2
- package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +15 -15
- package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/telemetry/dist/doc.js +17 -2
- package/dist/node_modules/@allyhub/telemetry/dist/level.js +2 -2
- package/dist/node_modules/@allyhub/telemetry/dist/levels.js +2 -0
- package/dist/node_modules/@allyhub/telemetry/dist/scrub.js +1 -1
- package/dist/node_modules/@allyhub/telemetry/package.json +5 -1
- package/dist/node_modules/@allyhub/text-extension/markup/markup.json +1 -1
- package/dist/node_modules/@allyhub/text-extension/markup-file/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/text-extension/markup-file/archive/assets.zip +0 -0
- package/dist/node_modules/@allyhub/text-extension/markup-file/markup.json +10 -0
- package/dist/node_modules/@allyhub/text-extension/package.json +35 -1
- package/dist/node_modules/@allyhub/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub/video-extension/dist/cli/reference-text.js +3 -3
- package/dist/node_modules/@allyhub/video-extension/package.json +2 -2
- package/dist/node_modules/@allyhub/video-measure/package.json +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/package.json +1 -1
- package/dist/node_modules/@allyhub/x-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +1 -1
- package/dist/node_modules/@allyhub/x-model/package.json +1 -1
- package/dist/node_modules/@allyhub/x-view/package.json +1 -1
- package/dist/package.json +13 -12
- package/dist/project.js +1 -1
- package/dist/telemetry.js +3 -3
- package/dist/text/console-text.js +2 -2
- package/editor-web/assets/{abnfDiagram-WEYOIA3C-arPHIJYC.js → abnfDiagram-WEYOIA3C-B1AxOB-Y.js} +1 -1
- package/editor-web/assets/{architecture-WOLXFQ4H-XPJlj9Iq.js → architecture-WOLXFQ4H-C-7xKJ2Z.js} +1 -1
- package/editor-web/assets/{architectureDiagram-ZHVYKT53-BZNJvOtd.js → architectureDiagram-ZHVYKT53-CyWb8_iD.js} +1 -1
- package/editor-web/assets/arrow-down-B8VUPCGi.js +1 -0
- package/editor-web/assets/arrow-up-Ds4juY8X.js +1 -0
- package/editor-web/assets/{article-Ck2ii-gZ.js → article-CTKW7Eo0.js} +2 -2
- package/editor-web/assets/article-qt4W_BKH.js +3 -0
- package/editor-web/assets/{audio-lines-1s1eRs4Q.js → audio-lines-PZj77e7t.js} +1 -1
- package/editor-web/assets/{bar-button-6Perrucg.js → bar-button-J9vbfzTx.js} +1 -1
- package/editor-web/assets/{blockDiagram-RJAE7QA3-B4L2P9Zz.js → blockDiagram-RJAE7QA3-uii4-7Ix.js} +4 -4
- package/editor-web/assets/browser-C1XuTMlp.js +1 -0
- package/editor-web/assets/{c4Diagram-XDPPPE54-D5t2-Sm8.js → c4Diagram-XDPPPE54-BtL5Z-wF.js} +1 -1
- package/editor-web/assets/channel-dEO-yacZ.js +1 -0
- package/editor-web/assets/chart-amT4lgX3.js +2 -0
- package/editor-web/assets/chart-file-HE-uXGmJ.js +1 -0
- package/editor-web/assets/{chart-no-axes-column-CJmeYOSo.js → chart-no-axes-column-Be0lFcGF.js} +1 -1
- package/editor-web/assets/{chunk-2E7WHVMD-bWUHKM6h.js → chunk-2E7WHVMD-BJjuZYBs.js} +1 -1
- package/editor-web/assets/{chunk-4EMNKR2T-CGGaxE7r.js → chunk-4EMNKR2T-nzPdUHaI.js} +1 -1
- package/editor-web/assets/{chunk-55XCU76K-BXCHI3wC.js → chunk-55XCU76K-CH52E3Nl.js} +1 -1
- package/editor-web/assets/{chunk-7S6XSTFO-H4tWSKhS.js → chunk-7S6XSTFO-Ba4LNKCV.js} +1 -1
- package/editor-web/assets/{chunk-AQDTSKZB-kyBZy8vG.js → chunk-AQDTSKZB-Co9SmoqD.js} +1 -1
- package/editor-web/assets/chunk-DSNLSHJZ-BHRvxRGi.js +127 -0
- package/editor-web/assets/{chunk-HAGFOTED-P8dIUq9O.js → chunk-HAGFOTED-F5Wd8ETY.js} +1 -1
- package/editor-web/assets/{chunk-HNE4Q36P-B_BAZXMj.js → chunk-HNE4Q36P-C_E0__p9.js} +1 -1
- package/editor-web/assets/{chunk-NQOKRVIF-Bubl63jI.js → chunk-NQOKRVIF-BvrtbbWm.js} +17 -17
- package/editor-web/assets/{chunk-UHW7PFBP-DYGk0ZDz.js → chunk-UHW7PFBP-D0HTPXRF.js} +1 -1
- package/editor-web/assets/{chunk-VQ5W62QI-BLFRyEGi.js → chunk-VQ5W62QI-B9hF2YMk.js} +1 -1
- package/editor-web/assets/{chunk-WQQL4CDK-kiwalF_c.js → chunk-WQQL4CDK-D7N3o-Ub.js} +1 -1
- package/editor-web/assets/{chunk-YZO67HFG-D-bT0L2N.js → chunk-YZO67HFG-XaLSrI_W.js} +1 -1
- package/editor-web/assets/{chunk-ZAUX2LTX-C_P5nPKV.js → chunk-ZAUX2LTX-sXc6qmw-.js} +1 -1
- package/editor-web/assets/{chunk-ZCHMQSOR-Deizt1PO.js → chunk-ZCHMQSOR-B0X6sNMX.js} +1 -1
- package/editor-web/assets/{classDiagram-v2-4MYWR3UA-PUtBnliw.js → classDiagram-v2-4MYWR3UA-CjXVvOUp.js} +7 -7
- package/editor-web/assets/code-CD-CbJG9.js +1 -0
- package/editor-web/assets/{collaborator--S95EupA.js → collaborator-BU4qU7O3.js} +1 -1
- package/editor-web/assets/{copy-DvOiv9Ra.js → copy-CuJSs0nI.js} +1 -1
- package/editor-web/assets/{createLucideIcon-REX213UO.js → createLucideIcon-lm_6n8YT.js} +1 -1
- package/editor-web/assets/csv-Bwre9FdI.js +11 -0
- package/editor-web/assets/{cynefin-EF2NZ3EQ-C09G_QFD.js → cynefin-EF2NZ3EQ-PQ9VyM9v.js} +1 -1
- package/editor-web/assets/{cynefinDiagram-WF24UDRP-JxxJ5-Ov.js → cynefinDiagram-WF24UDRP-KXuXFAhX.js} +1 -1
- package/editor-web/assets/{dagre-NK4GIZVX-6DkhWeGP.js → dagre-NK4GIZVX-CBTyfYD5.js} +1 -1
- package/editor-web/assets/deck-C-p17098.js +1 -0
- package/editor-web/assets/{diagram-CBK3MWTC-kI_Q07du.js → diagram-CBK3MWTC-CsVO64Bf.js} +1 -1
- package/editor-web/assets/{diagram-I5XIIV2D-FYaR41qP.js → diagram-I5XIIV2D-fzbUm1St.js} +1 -1
- package/editor-web/assets/{diagram-ODIL2UCW-29WBGOdl.js → diagram-ODIL2UCW-up6ihgN5.js} +1 -1
- package/editor-web/assets/{diagram-PFBEJUXE-BFZJ9s9P.js → diagram-PFBEJUXE-T6hVBoCD.js} +1 -1
- package/editor-web/assets/{diagram-RJA3I4VV-BSNFe4e-.js → diagram-RJA3I4VV-BDntFeuR.js} +1 -1
- package/editor-web/assets/{diagram-TYUNFSNR-Cb1wZgqj.js → diagram-TYUNFSNR-Dv1-mqbf.js} +16 -16
- package/editor-web/assets/dist-B-lYrbqX.js +43 -0
- package/editor-web/assets/dist-B94TkgAP.js +18 -0
- package/editor-web/assets/dist-BW8IR8bR.js +17 -0
- package/editor-web/assets/dist-Ba5Kv4A-.js +4 -0
- package/editor-web/assets/{dist-BrGYx10E.js → dist-Bd8IxQPP.js} +1 -1
- package/editor-web/assets/dist-Bfs4cZI_.js +24 -0
- package/editor-web/assets/dist-C66KgS8g.js +19 -0
- package/editor-web/assets/dist-CBeeIAlh.js +1 -0
- package/editor-web/assets/{dist-DXUMNYNX.js → dist-CHKVUdcE.js} +4 -4
- package/editor-web/assets/dist-CWXGbcPB.js +3 -0
- package/editor-web/assets/{dist-BaCVkpwc.js → dist-D3C6FyrO.js} +1 -1
- package/editor-web/assets/{dist-BuG-vxxb.js → dist-DhMagA-B.js} +3 -3
- package/editor-web/assets/{dist-BlqK1Oua.js → dist-DruvDNQe.js} +1 -1
- package/editor-web/assets/dist-DxcrMrCR.js +6 -0
- package/editor-web/assets/dist-DzjSp2i2.js +17 -0
- package/editor-web/assets/{dist-CnbKC_fW.js → dist-_ooK0TT9.js} +1 -1
- package/editor-web/assets/dist-aTV6Rwon.js +530 -0
- package/editor-web/assets/dist-mrWPE-br.js +1 -0
- package/editor-web/assets/docx-draw-CeiLkccT.js +4 -0
- package/editor-web/assets/docx-preview-pcg9ioe3.js +21 -0
- package/editor-web/assets/{ebnfDiagram-V4P3TTPT-t3vO5qHB.js → ebnfDiagram-V4P3TTPT-CZzljBYN.js} +1 -1
- package/editor-web/assets/{elk-QONTBCTQ-DfIcGBDb.js → elk-QONTBCTQ-6vNb82av.js} +1 -1
- package/editor-web/assets/{erDiagram-KYQIGQAA-Bgy1PYQf.js → erDiagram-KYQIGQAA-B8smxURG.js} +2 -2
- package/editor-web/assets/esm-CNi9O1ya.js +21 -0
- package/editor-web/assets/{eventmodeling-K75KTNOO-b8j935GM.js → eventmodeling-K75KTNOO-CngIhoUF.js} +1 -1
- package/editor-web/assets/{file-exclamation-point-C_fX4fpI.js → file-exclamation-point-_L3ElCJ5.js} +1 -1
- package/editor-web/assets/file-question-mark-DlIjUK37.js +1 -0
- package/editor-web/assets/flowDiagram-IUGLLWBU-CL0AVU4Y.js +1 -0
- package/editor-web/assets/{ganttDiagram-R7GPNTJY-B6C_nkwn.js → ganttDiagram-R7GPNTJY-BtzqHUiP.js} +1 -1
- package/editor-web/assets/{gitGraph-VSP46ZUC-CWtulOri.js → gitGraph-VSP46ZUC-DOOpoQDh.js} +1 -1
- package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-BT80Z9gj.js → gitGraphDiagram-PDYL7XHY-Cu4T8UUo.js} +1 -1
- package/editor-web/assets/{group-pebHQTdP.js → group-BdrTp7gi.js} +1 -1
- package/editor-web/assets/{hint-CKIaljPY.js → hint-rlht0uxG.js} +1 -1
- package/editor-web/assets/index-BCjGdcPh.js +28 -0
- package/editor-web/assets/index-D9ng69En.css +2 -0
- package/editor-web/assets/{info-OHQRW6UA-CyWiLOaB.js → info-OHQRW6UA-CiNozx0c.js} +1 -1
- package/editor-web/assets/{infoDiagram-MVDRKAX5-3TQgBeRh.js → infoDiagram-MVDRKAX5-A3mxzTmc.js} +1 -1
- package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-C3RAGFl7.js → ishikawaDiagram-HPEHV2GE-CIbVgY0Z.js} +1 -1
- package/editor-web/assets/iso-ahTwmFwH.js +56 -0
- package/editor-web/assets/{italic-CtlNOXN9.js → italic-zw4_eUNF.js} +1 -1
- package/editor-web/assets/{journeyDiagram-BOSHW7O7-B3ZJp3pT.js → journeyDiagram-BOSHW7O7-BwPXFmyS.js} +1 -1
- package/editor-web/assets/{kanban-definition-FNSA4HC5-ChjUoDH7.js → kanban-definition-FNSA4HC5-biRlEeb1.js} +4 -4
- package/editor-web/assets/{link-CW2KxKT_.js → link-DopSU3aa.js} +1 -1
- package/editor-web/assets/{mermaid-parser.core-CqJ7hTUI.js → mermaid-parser.core-ikwPmNne.js} +3 -3
- package/editor-web/assets/mermaid.core-B4GR7QVa.js +44 -0
- package/editor-web/assets/{mindmap-definition-6OY57UG3-Di0DNds3.js → mindmap-definition-6OY57UG3-BN8aiUmO.js} +3 -3
- package/editor-web/assets/minus-CbPnUIOy.js +1 -0
- package/editor-web/assets/{packet-JDAUHWVQ-CkCyk5LQ.js → packet-JDAUHWVQ-DWesZv6p.js} +1 -1
- package/editor-web/assets/{pegDiagram-ECIUJNBX-DGyUszOM.js → pegDiagram-ECIUJNBX-Bh3QEAL_.js} +1 -1
- package/editor-web/assets/{pie-XZMESJXO-D56l6NOA.js → pie-XZMESJXO-DT1ANL51.js} +1 -1
- package/editor-web/assets/{pieDiagram-GNMPY74T-C6Gy4c9c.js → pieDiagram-GNMPY74T-xXxgiv6O.js} +1 -1
- package/editor-web/assets/{progress-I2qmIfF4.js → progress-CwKcXARv.js} +1 -1
- package/editor-web/assets/props-form-BwZY8ZWd.js +1 -0
- package/editor-web/assets/purify.es-B9ve_eFf.js +3 -0
- package/editor-web/assets/{quadrantDiagram-D57K4MC3-CWfkAwXQ.js → quadrantDiagram-D57K4MC3-BGzRd8iZ.js} +1 -1
- package/editor-web/assets/{radar-ABXABTNO-BhyQtVw_.js → radar-ABXABTNO-C-rmMB0D.js} +1 -1
- package/editor-web/assets/{railroad-I3PHUGI6-CyOyOgY6.js → railroad-I3PHUGI6-CvLOq2i8.js} +1 -1
- package/editor-web/assets/{railroad-abnf-LNEFI6M7-ExhYWNk4.js → railroad-abnf-LNEFI6M7-DMsb025s.js} +1 -1
- package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-B7vR6DFd.js → railroad-ebnf-DWYD2UWJ-5bvVcIvh.js} +1 -1
- package/editor-web/assets/{railroad-peg-JR7BVNR7-hqCnhLuG.js → railroad-peg-JR7BVNR7-LKZ9-9ja.js} +1 -1
- package/editor-web/assets/{railroadDiagram-Y72NRBL7-D5X_R2ve.js → railroadDiagram-Y72NRBL7-DVBhzkmC.js} +1 -1
- package/editor-web/assets/{react-Bk7NnOLX.js → react-Edyoga_4.js} +1 -1
- package/editor-web/assets/{requirementDiagram-EQYSW5RA-CIP8sDsk.js → requirementDiagram-EQYSW5RA-B5RyzWna.js} +1 -1
- package/editor-web/assets/{row-k2eAfT-g.js → row-C_svyL8o.js} +1 -1
- package/editor-web/assets/{sankeyDiagram-SY24JHO5-BKDJlzrK.js → sankeyDiagram-SY24JHO5-BvOJG-gB.js} +1 -1
- package/editor-web/assets/schemas-BmdNnDyt.js +1 -0
- package/editor-web/assets/{scissors-BURkYWPv.js → scissors-B_xOiUhd.js} +1 -1
- package/editor-web/assets/{search-jKDvFIEU.js → search-Ba2BbT6T.js} +1 -1
- package/editor-web/assets/{sequenceDiagram-BLEHNHQU-CkRLYFZ7.js → sequenceDiagram-BLEHNHQU-BI7-Daqy.js} +1 -1
- package/editor-web/assets/{session-CUCSWPTE.js → session-D8E3nUwU.js} +1 -1
- package/editor-web/assets/{sigma-CY2Chbro.js → sigma-DSUsJhMn.js} +1 -1
- package/editor-web/assets/slides-bj0WJT_G.js +1 -0
- package/editor-web/assets/snapshots-CuflsO8Q.js +1 -0
- package/editor-web/assets/{sound-DUCxe9eC.js → sound-bTlco_K3.js} +1 -1
- package/editor-web/assets/{split-Cjm6rVDC.js → split-BrF9ECYb.js} +2 -2
- package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-CCvwoTcz.js → stateDiagram-v2-A6IESKWZ-C01p8WHX.js} +7 -7
- package/editor-web/assets/{sticky-note-C5qUDHhC.js → sticky-note-BdkIu5_D.js} +1 -1
- package/editor-web/assets/{strikethrough-DP-7tMz0.js → strikethrough-BwXWi4zg.js} +1 -1
- package/editor-web/assets/{surface-BocGwSox.js → surface-DtCjIlrq.js} +1 -1
- package/editor-web/assets/svg-CWIBMIQ9.js +1 -0
- package/editor-web/assets/{swatch-DGdJ5SeN.js → swatch-DhztHwPU.js} +1 -1
- package/editor-web/assets/{swimlanes-B3ENRKFQ-BXgW4pi4.js → swimlanes-B3ENRKFQ-B00P2SqG.js} +1 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-ChmNuO4G.js +8 -0
- package/editor-web/assets/{switch-Dwqxw1kp.js → switch-8MU4Nfxe.js} +1 -1
- package/editor-web/assets/{syntax-DSsHrzWF.js → syntax-CU_WPKxt.js} +1 -1
- package/editor-web/assets/{table-CTjNpE4W.js → table-DRbddzx0.js} +1 -1
- package/editor-web/assets/tabs-CloHB5Z4.js +1 -0
- package/editor-web/assets/tag-CIfWT8B_.js +1 -0
- package/editor-web/assets/text-align-start-Cic2-TLh.js +1 -0
- package/editor-web/assets/{textarea-BNH6Y1-o.js → textarea-D7TnPwv1.js} +1 -1
- package/editor-web/assets/{timeline-definition-JXYKGLGB-BwuUmgv1.js → timeline-definition-JXYKGLGB-BIBoOYJY.js} +3 -3
- package/editor-web/assets/{treeView-D4JQ5SDB-Da35tnkE.js → treeView-D4JQ5SDB-CL6DL8V0.js} +1 -1
- package/editor-web/assets/{treemap-SAJKECNS-4TcJReov.js → treemap-SAJKECNS-CPLGr0WY.js} +1 -1
- package/editor-web/assets/{undo-2-DUGGyBdX.js → undo-2-C47jrRp5.js} +1 -1
- package/editor-web/assets/{usecaseDiagram-WPOLBNNX-wj02og_C.js → usecaseDiagram-WPOLBNNX-L03lK2bO.js} +1 -1
- package/editor-web/assets/{vennDiagram-Q3Y3IDCW-Cun6o3pg.js → vennDiagram-Q3Y3IDCW-B5tKKP_-.js} +3 -3
- package/editor-web/assets/{video-DkuN7Uu7.js → video-BWUznyLR.js} +1 -1
- package/editor-web/assets/{wardley-7MLQ67FV-DiL2aSXm.js → wardley-7MLQ67FV-vsBpXT56.js} +1 -1
- package/editor-web/assets/{wardleyDiagram-IVAIDKWA-Cll7rTnv.js → wardleyDiagram-IVAIDKWA-CMCnVUgh.js} +1 -1
- package/editor-web/assets/{whole-word-6DliXke2.js → whole-word-D3ZAtnkw.js} +1 -1
- package/editor-web/assets/{words-QKSIyC_P.js → words-0Ww2RyT4.js} +1 -1
- package/editor-web/assets/{words-B-7GbYO2.js → words-XlXG79Ur.js} +1 -1
- package/editor-web/assets/workbook-C1QR6Cts.js +45 -0
- package/editor-web/assets/x-DlhyIKuu.js +41 -0
- package/editor-web/assets/{xychartDiagram-4URNHDU4-s55eVncs.js → xychartDiagram-4URNHDU4-C9XkBiEO.js} +1 -1
- package/editor-web/assets/{zoom-in-C4lxmIDE.js → zoom-in-PgsC94hP.js} +1 -1
- package/editor-web/index.html +8 -7
- package/package.json +2 -2
- package/editor-web/assets/arrow-down-DzZjFrBL.js +0 -1
- package/editor-web/assets/arrow-up-hdmh9LVD.js +0 -1
- package/editor-web/assets/article-v30Q5cvX.js +0 -3
- package/editor-web/assets/channel-B8881pqR.js +0 -1
- package/editor-web/assets/chart-BC3kUUDD.js +0 -2
- package/editor-web/assets/chunk-DSNLSHJZ-BlB7YIMo.js +0 -129
- package/editor-web/assets/code-BID_OoRp.js +0 -1
- package/editor-web/assets/dist-B3RkByp0.js +0 -1
- package/editor-web/assets/dist-BAeqmRLA.js +0 -530
- package/editor-web/assets/dist-CGJv5-SE.js +0 -45
- package/editor-web/assets/dist-CUdvgRW5.js +0 -1
- package/editor-web/assets/dist-DhKxOqdu.js +0 -43
- package/editor-web/assets/dist-Dx2yV02v.js +0 -6
- package/editor-web/assets/dist-QuK0-suW.js +0 -24
- package/editor-web/assets/dist-Sl2_j-4w.js +0 -38
- package/editor-web/assets/dist-b5nFx4mV.js +0 -3
- package/editor-web/assets/dist-tteqAu5L.js +0 -4
- package/editor-web/assets/flowDiagram-IUGLLWBU-CnzC5OOy.js +0 -1
- package/editor-web/assets/index-C3A0pCmH.css +0 -2
- package/editor-web/assets/index-CFqSJBZ-.js +0 -28
- package/editor-web/assets/mermaid.core-DR2O-coV.js +0 -44
- package/editor-web/assets/minus-D1tgAHbU.js +0 -1
- package/editor-web/assets/props-form-gwp-8pGV.js +0 -1
- package/editor-web/assets/schemas-B89k2jEC.js +0 -1
- package/editor-web/assets/slides-BdaWgL_N.js +0 -1
- package/editor-web/assets/snapshots-CTS2iez5.js +0 -56
- package/editor-web/assets/svg-nJtFNJ-7.js +0 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-AFpLq-Wf.js +0 -8
- package/editor-web/assets/tabs-B0bv2mMP.js +0 -1
- package/editor-web/assets/x-BsePFh6d.js +0 -41
|
@@ -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 G,ACCOUNT_EXPORT_PATH as j,DEVICES_PATH as b,DevicesSchema as v}from"./auth.js";import{FILES_PATH as H,AUTO_TOP_UP_PATH as A,AutoTopUpRequestSchema as k,BILLING_CHECKOUT_PATH as R,BILLING_PAYMENT_PATH as C,BILLING_PLANS_PATH as U,BILLING_PORTAL_PATH as N,BILLING_REQUEST_PATH as x,BILLING_RESUME_PATH as M,BILLING_SUMMARY_PATH as D,BILLING_TOP_UP_PATH as B,BILLING_USAGE_PATH as $,BillingPaymentSchema as z,BillingPlansSchema as q,BillingSummarySchema as S,BillingUsageSchema as Y,CheckoutRequestSchema as F,PortalRequestSchema as K,TopUpRequestSchema as V,BILLING_INVOICES_PATH as Z,BILLING_SPENDS_PATH as J,BillingInvoicesSchema as Q,IDEMPOTENCY_KEY_HEADER as W,CAPABILITIES_PATH as P,CATALOG_PATH as X,EDITORS_PATH as ee,EditorsSchema as te,CapabilitiesSchema as O,CapabilityRequestSchema as se,CatalogSchema as oe,BillingSpendsSchema as ie}from"./cloud.js";import{PROJECTS_PATH as ne,STORAGE_CLEARING_PATH as ae,STORAGE_FILES_PATH as re,STORAGE_PATH as ce,STORAGE_PROJECTS_PATH as me,StoragePageSchema as w,StorageSchema as le,StoredFilesSchema as he,StoredProjectsSchema as de}from"./snapshots.js";import{MAIL_MESSAGES_PATH as f,MAIL_PATH as pe,MAIL_PERSON_QUERY as Te,MAIL_SETTINGS_PATH as ue,MailMessageSchema as Ee,MailSearchResponseSchema as be,MailSearchSchema as ge,MailSettingsSchema as Ae,MailboxSchema as I}from"./mail.js";import{MEMBERS_PATH as d,MemberLimitSchema as Se,MembersSchema as Pe,ORGANIZATIONS_PATH as _,ORGANIZATION_PATH as y}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 s=e.strictObject({}),o=e.object({}),L=e.object({url:e.url()}),p=e.string().trim().min(1).max(100),t=(i,T,c,l,r,m)=>({http:i,route:T,params:c,result:l,about:r,...m===void 0?{}:{headers:m}});export const ACCOUNT_CALLS={balance:t("GET",D,s,S,"The organization's credits, this month's plan credits, its plan and its auto top-up."),plans:t("GET",U,s,q,"The plans, their prices, and what a top-up buys."),usage:t("GET",$,e.strictObject({days:e.int().min(1).max(400),timeZone:e.string().min(1)}),Y,"Credits spent each day by what they were spent on, the days with none left out."),catalog:t("GET",X,s,oe,"The cloud tools' catalog: its works and every tool, with what it costs."),editors:t("GET",ee,s,te,"The editors the console lists, free in every product, in their order."),capabilities:t("GET",P,s,O,"The cloud tools the team turned off: works and tools."),"capabilities/set":t("PUT",P,se,O,"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",J,e.strictObject({days:e.int().min(1).max(400),limit:e.int().min(1).max(5e3).optional()}),ie,"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",R,F,L,"Stripe Checkout for a plan or a top-up, to open in a browser."),portal:t("POST",N,K,L,"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",M,s,S,"A plan cancelled at its period's end taken up again."),payment:t("GET",C,s,z,"The card charged without the person there, and where Stripe's emails go."),invoices:t("GET",Z,s,Q,"The organization's invoices, the latest first, each with its PDF."),topUp:t("POST",B,V.extend({key:e.uuid()}),e.object({credits:e.number()}),"Credits bought with the saved card at once, once by the purchase's key; answers what was added. A browser's session alone.",{key:W}),"autoTopUp/set":t("PUT",A,k,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. A browser's session alone."),"autoTopUp/off":t("DELETE",A,s,o,"Auto top-up off."),"credits/request":t("POST",x,s,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",d,s,Pe,"The members with their limits and spend; a member sees their own row."),"members/limit":t("PUT",`${d}/:userId/limit`,e.strictObject({userId:e.string().min(1)}).extend(Se.shape),o,"A member's limit in credits a month, null for none."),"members/role":t("PUT",`${d}/:userId/role`,e.strictObject({userId:e.string().min(1),role:e.enum(ROLES)}),o,"A member's role; only an owner makes or unmakes an owner."),"members/remove":t("DELETE",`${d}/:userId`,e.strictObject({userId:e.string().min(1)}),o,"A member removed from the team."),invitations:t("GET",INVITATIONS_PATH,s,InvitationsSchema,"The invitations waiting to be accepted."),"invitations/send":t("POST",INVITATIONS_PATH,e.strictObject({email:e.email(),role:e.enum(["member","admin"])}),o,"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)}),o,"An invitation cancelled."),"team/create":t("POST",_,e.strictObject({name:p}),e.object({id:e.string()}),"A new team, the person its owner."),"team/rename":t("PUT",y,e.strictObject({name:p}),o,"The team renamed."),"team/leave":t("POST",LEAVE_PATH,s,o,"The person leaves the team; its last owner cannot."),"team/dissolve":t("DELETE",y,s,o,"The team dissolved by its owner; it can be restored for 30 days."),"team/restore":t("POST",`${_}/:id/restore`,e.strictObject({id:e.string().min(1)}),o,"A dissolved team restored by its owner."),keys:t("GET",KEYS_PATH,s,KeysSchema,"The person's API keys for the organization."),"keys/create":t("POST",KEYS_PATH,e.strictObject({name:p}),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()}),o,"An API key turned off or on again."),"keys/remove":t("DELETE",`${KEYS_PATH}/:id`,e.strictObject({id:e.string().min(1)}),o,"An API key deleted."),mail:t("GET",pe,s,I,"The person's mailbox in the organization: its addresses and settings."),"mail/settings":t("PUT",`${ue}?${Te}`,Ae,I,"The mailbox's display name, whom its agents may write to, and how long it keeps mail."),"mail/messages":t("GET",f,ge,be,"The mailbox's messages, newest first."),"mail/message":t("GET",`${f}/:id`,e.strictObject({id:e.string().min(1)}),Ee,"One message, read whole."),profile:t("GET",PROFILE_PATH,s,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:p}),o,"The person's name."),storage:t("GET",ce,s,le,"What the organization keeps in the cloud of what it may."),"storage/projects":t("GET",me,w,de,"A page of the person's projects in the cloud and their cloud Studio's home, the largest first, each with what it alone holds."),"storage/files":t("GET",re,w,he,"A page of the person's tools' inputs and outputs kept in the cloud, the largest first."),"storage/clear":t("DELETE",ae,s,o,"What the organization keeps that no longer is in use, deleted from the cloud now rather than at the daily sweep."),"files/delete":t("DELETE",`${H}/:id`,e.strictObject({id:e.string().min(1)}),o,"One of the person's tools' inputs or outputs deleted from the cloud; its bytes stay while a project names them."),"projects/delete":t("DELETE",`${ne}/:id`,e.strictObject({id:e.string().min(1)}),o,"One of the person's projects deleted from the cloud, with its snapshots; a copy on a computer stays."),devices:t("GET",b,s,v,"The computers signed in as the person."),"devices/signOut":t("DELETE",`${b}/:id`,e.strictObject({id:e.string().min(1)}),o,"A computer signed out."),"devices/signOutOthers":t("DELETE",b,s,o,"Every computer signed out but the one that asks."),export:t("GET",j,s,e.record(e.string(),e.unknown()),"Everything kept about the person."),close:t("POST",G,s,o,"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(i,T){const c=T,l=new Set,r=i.route.replace(/:([A-Za-z]+)/gu,(n,a)=>(l.add(a),encodeURIComponent(String(c[a])))),m=i.headers??{},g=Object.entries(m).flatMap(([n,a])=>{const h=c[n];return typeof h=="string"?[[a,h]]:[]}),u=g.length===0?{}:{headers:Object.fromEntries(g)},E=Object.entries(c).filter(([n,a])=>!l.has(n)&&!(n in m)&&a!==void 0);if(i.http==="GET"||i.http==="DELETE"){const n=E.map(([a,h])=>`${encodeURIComponent(a)}=${encodeURIComponent(String(h))}`).join("&");return{method:i.http,path:n===""?r:`${r}?${n}`,...u}}return E.length===0?{method:i.http,path:r,...u}:{method:i.http,path:r,body:Object.fromEntries(E),...u}}
|
|
@@ -30,6 +30,13 @@ export declare const DEVICES_PATH = "/api/account/devices";
|
|
|
30
30
|
* It only tells them apart; the sign-in itself authorizes.
|
|
31
31
|
*/
|
|
32
32
|
export declare const DEVICE_HEADER = "x-allyhub-device";
|
|
33
|
+
/**
|
|
34
|
+
* The header a program's call carries when no person asked for it, such
|
|
35
|
+
* as a Studio server's save on its clock: AllyHub marks a refusal of it as
|
|
36
|
+
* background (`refusal_met`'s `background`), so the paywall's funnel can
|
|
37
|
+
* leave it out. Its value is `1`; any other, or none, is a person's call.
|
|
38
|
+
*/
|
|
39
|
+
export declare const BACKGROUND_HEADER = "x-allyhub-background";
|
|
33
40
|
/** With a token request: the computer's name as its owner set it, percent-encoded (RFC 3986). */
|
|
34
41
|
export declare const DEVICE_NAME_HEADER = "x-allyhub-device-name";
|
|
35
42
|
/** A sign-in's id, as a computer makes it. */
|
|
@@ -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",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()}),SIGN_IN_PATH="/api/sign-in",SignInSchema=e.object({turnstile:e.object({siteKey:e.string().min(1)}).optional()}),CAPTCHA_HEADER="x-captcha-response",SIGN_IN_LINK_PATH=`${ISSUER_PATH}/sign-in/link`,SignInLinkRequestSchema=e.strictObject({email:e.email(),authorization:e.url()}),DESKTOP_SCHEME="allyhub",DESKTOP_OPEN=`${DESKTOP_SCHEME}://open`;export function signedInAddress(t,o={}){return`${t}/signed-in${o.desktop===!0?"?from=desktop":""}`}export function signedInFromDesktop(t){return new URLSearchParams(t).get("from")==="desktop"}export const 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()});
|
|
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",BACKGROUND_HEADER="x-allyhub-background",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()}),SIGN_IN_PATH="/api/sign-in",SignInSchema=e.object({turnstile:e.object({siteKey:e.string().min(1)}).optional()}),CAPTCHA_HEADER="x-captcha-response",SIGN_IN_LINK_PATH=`${ISSUER_PATH}/sign-in/link`,SignInLinkRequestSchema=e.strictObject({email:e.email(),authorization:e.url()}),DESKTOP_SCHEME="allyhub",DESKTOP_OPEN=`${DESKTOP_SCHEME}://open`;export function signedInAddress(t,o={}){return`${t}/signed-in${o.desktop===!0?"?from=desktop":""}`}export function signedInFromDesktop(t){return new URLSearchParams(t).get("from")==="desktop"}export const 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()});
|
|
@@ -12,6 +12,7 @@ export declare const TreeFileSchema: z.ZodObject<{
|
|
|
12
12
|
sha256: z.ZodString;
|
|
13
13
|
size: z.ZodInt;
|
|
14
14
|
type: z.ZodString;
|
|
15
|
+
immutable: z.ZodOptional<z.ZodLiteral<true>>;
|
|
15
16
|
}, z.core.$strip>;
|
|
16
17
|
export type TreeFile = z.infer<typeof TreeFileSchema>;
|
|
17
18
|
/** How many blobs are asked about at once. */
|
|
@@ -32,4 +33,12 @@ export declare const BlobsResponseSchema: z.ZodObject<{
|
|
|
32
33
|
}, z.core.$strip>>;
|
|
33
34
|
}, z.core.$strip>;
|
|
34
35
|
export type BlobsResponse = z.infer<typeof BlobsResponseSchema>;
|
|
36
|
+
/** A tree's file: its blob, the type it is served as, and whether its name changes with its bytes. */
|
|
37
|
+
export declare const treeFileOf: (blob: {
|
|
38
|
+
sha256: string;
|
|
39
|
+
size: number;
|
|
40
|
+
}, recorded: {
|
|
41
|
+
type: string;
|
|
42
|
+
immutable?: true | undefined;
|
|
43
|
+
}) => TreeFile;
|
|
35
44
|
//# sourceMappingURL=blobs.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as e}from"zod";import{FILE_MAX_BYTES as
|
|
2
|
+
import{z as e}from"zod";import{FILE_MAX_BYTES as a}from"./cloud.js";export const Sha256Schema=e.string().regex(/^[0-9a-f]{64}$/u),TreePathSchema=e.string().min(1).max(1024).refine(t=>!t.startsWith("/")&&!t.includes("\\")&&t.split("/").every(r=>r!==""&&r!=="."&&r!==".."),"a relative path of forward slashes, without . or .."),BlobSchema=e.object({sha256:Sha256Schema,size:e.int().nonnegative().max(a)}),TreeFileSchema=BlobSchema.extend({type:e.string().min(1).max(255),immutable:e.literal(!0).optional()}),BLOBS_MAX=1e3,BlobsRequestSchema=e.strictObject({blobs:e.array(BlobSchema.extend({contentType:e.string().min(1).max(255)})).min(1).max(BLOBS_MAX)}),BlobsResponseSchema=e.object({uploads:e.array(e.object({sha256:Sha256Schema,url:e.url(),headers:e.record(e.string(),e.string())}))}),treeFileOf=(t,r)=>({sha256:t.sha256,size:t.size,type:r.type,...r.immutable===!0?{immutable:!0}:{}});
|
|
@@ -17,6 +17,8 @@ export declare const EXIT: {
|
|
|
17
17
|
readonly interrupted: 130;
|
|
18
18
|
};
|
|
19
19
|
export type ExitCode = (typeof EXIT)[keyof typeof EXIT];
|
|
20
|
+
/** The code a command that ran and found problems (a check, an item that failed with no code of its own) is told with: apart from one that failed. */
|
|
21
|
+
export declare const PROBLEMS_FOUND = "problems-found";
|
|
20
22
|
/** A failure as --json prints it, on stdout, with the exit code. */
|
|
21
23
|
export declare const CliErrorSchema: z.ZodObject<{
|
|
22
24
|
error: z.ZodObject<{
|
|
@@ -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 EXIT={ok:0,failed:1,usage:2,conflict:3,auth:4,platform:5,notFound:6,interrupted:130},CliErrorSchema=e.strictObject({error:e.strictObject({code:e.string().regex(/^[a-z][a-z0-9-]*$/u),message:e.string().min(1),hint:e.string().optional()})}),COMMAND_NAME=/^[a-z0-9][a-z0-9-]*(?: [a-z0-9][a-z0-9-]*)*$/u;export function command(t){if(!COMMAND_NAME.test(t.name))throw new Error(`"${t.name}" is not a command name.`);const r=Object.keys(t.input.shape);for(const n of t.positional??[])if(!r.includes(n))throw new Error(`${t.name}: positional "${n}" is not a field of its input.`);for(const[n,o]of Object.entries(t.input.shape))if(!o.description)throw new Error(`${t.name}: "${n}" has no description.`);return t}export function describeCommand(t){return{name:t.name,summary:t.summary,positional:[...t.positional??[]],input:e.toJSONSchema(t.input,{io:"input",unrepresentable:"any"}),output:e.toJSONSchema(t.output,{io:"output",unrepresentable:"any"}),examples:[...t.examples??[]]}}export class CommandError extends Error{code;hint;exit;constructor(r,n,o={}){super(n,o.cause===void 0?void 0:{cause:o.cause}),this.name="CommandError",this.code=r,this.hint=o.hint,this.exit=o.exit??EXIT.failed}}
|
|
2
|
+
import{z as e}from"zod";export const EXIT={ok:0,failed:1,usage:2,conflict:3,auth:4,platform:5,notFound:6,interrupted:130},PROBLEMS_FOUND="problems-found",CliErrorSchema=e.strictObject({error:e.strictObject({code:e.string().regex(/^[a-z][a-z0-9-]*$/u),message:e.string().min(1),hint:e.string().optional()})}),COMMAND_NAME=/^[a-z0-9][a-z0-9-]*(?: [a-z0-9][a-z0-9-]*)*$/u;export function command(t){if(!COMMAND_NAME.test(t.name))throw new Error(`"${t.name}" is not a command name.`);const r=Object.keys(t.input.shape);for(const n of t.positional??[])if(!r.includes(n))throw new Error(`${t.name}: positional "${n}" is not a field of its input.`);for(const[n,o]of Object.entries(t.input.shape))if(!o.description)throw new Error(`${t.name}: "${n}" has no description.`);return t}export function describeCommand(t){return{name:t.name,summary:t.summary,positional:[...t.positional??[]],input:e.toJSONSchema(t.input,{io:"input",unrepresentable:"any"}),output:e.toJSONSchema(t.output,{io:"output",unrepresentable:"any"}),examples:[...t.examples??[]]}}export class CommandError extends Error{code;hint;exit;constructor(r,n,o={}){super(n,o.cause===void 0?void 0:{cause:o.cause}),this.name="CommandError",this.code=r,this.hint=o.hint,this.exit=o.exit??EXIT.failed}}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const CLOUD_COMPUTER_PATH = "/api/cloud-computer";
|
|
3
|
+
/** Made or resumed, at the cost of the person's organization. */
|
|
4
|
+
export declare const CLOUD_COMPUTER_RESUME_PATH = "/api/cloud-computer/resume";
|
|
5
|
+
/** Paused, if no work runs on it. */
|
|
6
|
+
export declare const CLOUD_COMPUTER_PAUSE_PATH = "/api/cloud-computer/pause";
|
|
7
|
+
/** Where it is reached, and a pass. */
|
|
8
|
+
export declare const CLOUD_COMPUTER_PASS_PATH = "/api/cloud-computer/pass";
|
|
9
|
+
/** How long it may stand idle. */
|
|
10
|
+
export declare const CLOUD_COMPUTER_IDLE_PATH = "/api/cloud-computer/idle";
|
|
11
|
+
/**
|
|
12
|
+
* What a released window asks when its person presses Restart to update,
|
|
13
|
+
* which a window of now never shows: answered, and nothing is done (the
|
|
14
|
+
* services only add, so the route stays for such a window).
|
|
15
|
+
*/
|
|
16
|
+
export declare const CLOUD_COMPUTER_UPDATE_PATH = "/api/cloud-computer/update";
|
|
17
|
+
/** What a cloud computer is. `none`: there is none. The three others are a change of it under way. */
|
|
18
|
+
export declare const CLOUD_COMPUTER_STATES: readonly ["none", "running", "paused", "resuming", "pausing", "upgrading"];
|
|
19
|
+
/** A person's cloud computer, as last written down, what an hour of it costs in credits, and how long it may stand idle. */
|
|
20
|
+
export declare const CloudComputerInfoSchema: z.ZodObject<{
|
|
21
|
+
computer: z.ZodObject<{
|
|
22
|
+
state: z.ZodUnion<readonly [z.ZodEnum<{
|
|
23
|
+
paused: "paused";
|
|
24
|
+
running: "running";
|
|
25
|
+
none: "none";
|
|
26
|
+
resuming: "resuming";
|
|
27
|
+
pausing: "pausing";
|
|
28
|
+
upgrading: "upgrading";
|
|
29
|
+
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
30
|
+
confirmedAtMs: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
studioServerVersion: z.ZodOptional<z.ZodString>;
|
|
32
|
+
ranSinceMs: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
creditsPerHour: z.ZodNumber;
|
|
35
|
+
idle: z.ZodObject<{
|
|
36
|
+
minutes: z.ZodNumber;
|
|
37
|
+
chosen: z.ZodNullable<z.ZodNumber>;
|
|
38
|
+
min: z.ZodNumber;
|
|
39
|
+
max: z.ZodNumber;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
update: z.ZodOptional<z.ZodObject<{
|
|
42
|
+
version: z.ZodString;
|
|
43
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
export type CloudComputerInfo = z.infer<typeof CloudComputerInfoSchema>;
|
|
47
|
+
/** What a window says as it asks for the computer to be made or resumed. What the services receive is strict. */
|
|
48
|
+
export declare const CloudComputerResumeSchema: z.ZodObject<{
|
|
49
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
50
|
+
}, z.core.$strict>;
|
|
51
|
+
export type CloudComputerResume = z.infer<typeof CloudComputerResumeSchema>;
|
|
52
|
+
/** How a released window's asking to update it now is answered: never updated now, with why. */
|
|
53
|
+
export declare const CloudComputerUpdatedSchema: z.ZodObject<{
|
|
54
|
+
updated: z.ZodBoolean;
|
|
55
|
+
version: z.ZodOptional<z.ZodString>;
|
|
56
|
+
because: z.ZodOptional<z.ZodString>;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
export type CloudComputerUpdated = z.infer<typeof CloudComputerUpdatedSchema>;
|
|
59
|
+
/** Where a window reaches its person's cloud computer, and what lets it in: a Studio client's address. */
|
|
60
|
+
export declare const CloudComputerPassSchema: z.ZodObject<{
|
|
61
|
+
url: z.ZodString;
|
|
62
|
+
token: z.ZodString;
|
|
63
|
+
expiresAtMs: z.ZodNumber;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
export type CloudComputerPass = z.infer<typeof CloudComputerPassSchema>;
|
|
66
|
+
/** How an asking to pause was answered: it is paused, or it is not, since work runs on it or its Studio server did not say. */
|
|
67
|
+
export declare const CloudComputerPausedSchema: z.ZodObject<{
|
|
68
|
+
paused: z.ZodBoolean;
|
|
69
|
+
because: z.ZodOptional<z.ZodString>;
|
|
70
|
+
}, z.core.$strip>;
|
|
71
|
+
export type CloudComputerPaused = z.infer<typeof CloudComputerPausedSchema>;
|
|
72
|
+
/** A person's own idle time, minutes; null: the default again. What the services receive is strict. */
|
|
73
|
+
export declare const CloudComputerIdleSchema: z.ZodObject<{
|
|
74
|
+
minutes: z.ZodNullable<z.ZodNumber>;
|
|
75
|
+
}, z.core.$strict>;
|
|
76
|
+
export type CloudComputerIdle = z.infer<typeof CloudComputerIdleSchema>;
|
|
77
|
+
//# sourceMappingURL=cloud-computer.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 o}from"zod";import{openEnum as e}from"./open.js";export const CLOUD_COMPUTER_PATH="/api/cloud-computer",CLOUD_COMPUTER_RESUME_PATH="/api/cloud-computer/resume",CLOUD_COMPUTER_PAUSE_PATH="/api/cloud-computer/pause",CLOUD_COMPUTER_PASS_PATH="/api/cloud-computer/pass",CLOUD_COMPUTER_IDLE_PATH="/api/cloud-computer/idle",CLOUD_COMPUTER_UPDATE_PATH="/api/cloud-computer/update",CLOUD_COMPUTER_STATES=["none","running","paused","resuming","pausing","upgrading"],CloudComputerInfoSchema=o.object({computer:o.object({state:e(CLOUD_COMPUTER_STATES),confirmedAtMs:o.number().optional(),studioServerVersion:o.string().optional(),ranSinceMs:o.number().optional()}),creditsPerHour:o.number(),idle:o.object({minutes:o.number(),chosen:o.number().nullable(),min:o.number(),max:o.number()}),update:o.object({version:o.string(),required:o.boolean().optional()}).optional()}),CloudComputerResumeSchema=o.strictObject({timeZone:o.string().min(1).max(64).optional()}),CloudComputerUpdatedSchema=o.object({updated:o.boolean(),version:o.string().optional(),because:o.string().optional()}),CloudComputerPassSchema=o.object({url:o.string(),token:o.string(),expiresAtMs:o.number()}),CloudComputerPausedSchema=o.object({paused:o.boolean(),because:o.string().optional()}),CloudComputerIdleSchema=o.strictObject({minutes:o.number().int().nullable()});
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
+
import type { CheckoutWhat } from "./events.js";
|
|
2
3
|
/** The environment variable that signs in with an API key instead: automation (CI, servers). */
|
|
3
4
|
export declare const API_KEY_ENV = "ALLYHUB_API_KEY";
|
|
4
5
|
/** `GET`: the organization's credits, its plan and its auto top-up. */
|
|
@@ -76,6 +77,7 @@ export declare const BillingPlansSchema: z.ZodObject<{
|
|
|
76
77
|
family: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
77
78
|
recommended: z.ZodDefault<z.ZodBoolean>;
|
|
78
79
|
monthlyCredits: z.ZodNumber;
|
|
80
|
+
storageBytes: z.ZodOptional<z.ZodNumber>;
|
|
79
81
|
prices: z.ZodArray<z.ZodObject<{
|
|
80
82
|
interval: z.ZodUnion<readonly [z.ZodEnum<{
|
|
81
83
|
month: "month";
|
|
@@ -93,6 +95,7 @@ export declare const BillingPlansSchema: z.ZodObject<{
|
|
|
93
95
|
presetsCents: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
94
96
|
}, z.core.$strip>;
|
|
95
97
|
welcomeCredits: z.ZodOptional<z.ZodNumber>;
|
|
98
|
+
freeStorageBytes: z.ZodOptional<z.ZodNumber>;
|
|
96
99
|
}, z.core.$strip>;
|
|
97
100
|
export type BillingPlans = z.infer<typeof BillingPlansSchema>;
|
|
98
101
|
/** `GET ?days=30&timeZone=Asia/Shanghai`: credits spent each day, the days with none left out. */
|
|
@@ -118,10 +121,10 @@ export declare const BillingSpendsSchema: z.ZodObject<{
|
|
|
118
121
|
spends: z.ZodArray<z.ZodObject<{
|
|
119
122
|
at: z.ZodString;
|
|
120
123
|
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
124
|
+
other: "other";
|
|
121
125
|
models: "models";
|
|
122
126
|
tools: "tools";
|
|
123
127
|
studio: "studio";
|
|
124
|
-
other: "other";
|
|
125
128
|
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
126
129
|
what: z.ZodNullable<z.ZodString>;
|
|
127
130
|
seconds: z.ZodNullable<z.ZodNumber>;
|
|
@@ -150,8 +153,8 @@ export declare const CheckoutRequestSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
150
153
|
export declare const BILLING_PORTAL_PATH = "/api/billing/portal";
|
|
151
154
|
export declare const PortalRequestSchema: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
152
155
|
flow: z.ZodEnum<{
|
|
153
|
-
home: "home";
|
|
154
156
|
payment_method: "payment_method";
|
|
157
|
+
home: "home";
|
|
155
158
|
cancel: "cancel";
|
|
156
159
|
}>;
|
|
157
160
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -185,8 +188,8 @@ export declare const BillingInvoicesSchema: z.ZodObject<{
|
|
|
185
188
|
number: z.ZodNullable<z.ZodString>;
|
|
186
189
|
createdAt: z.ZodString;
|
|
187
190
|
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
188
|
-
credits: "credits";
|
|
189
191
|
plan: "plan";
|
|
192
|
+
credits: "credits";
|
|
190
193
|
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
191
194
|
totalCents: z.ZodNumber;
|
|
192
195
|
currency: z.ZodString;
|
|
@@ -251,9 +254,19 @@ export declare const TEAM_PARAM = "team";
|
|
|
251
254
|
export declare const PLAN_VIEW_PARAM = "view";
|
|
252
255
|
/** Back from paying, in the plan page's address (`?paid=1`): the page follows the balance until what was paid for is there. */
|
|
253
256
|
export declare const PAID_PARAM = "paid";
|
|
257
|
+
/**
|
|
258
|
+
* Back from Stripe's Checkout without paying (its `cancel_url`), in the
|
|
259
|
+
* plan page's address (`?unpaid=plan`): what the person went to pay for
|
|
260
|
+
* (`CHECKOUT_WHATS`). The page asks them what stopped them.
|
|
261
|
+
*/
|
|
262
|
+
export declare const UNPAID_PARAM = "unpaid";
|
|
254
263
|
/** What the plan page opens at: its plans, credits to buy, or back from paying. */
|
|
255
264
|
export declare const PLAN_PAGE_OPENS: readonly ["plans", "credits", "paid"];
|
|
256
265
|
export type PlanPageOpen = (typeof PLAN_PAGE_OPENS)[number];
|
|
266
|
+
/** Where Stripe's Checkout sends a person back to: paid, or back without paying from Checkout for this. */
|
|
267
|
+
export type PlanPageReturn = "paid" | {
|
|
268
|
+
unpaid: CheckoutWhat;
|
|
269
|
+
};
|
|
257
270
|
/**
|
|
258
271
|
* The plan page's address on a site (its origin), in the team it acts in
|
|
259
272
|
* and at what it opens. Everything that sends a person to the plan page
|
|
@@ -263,7 +276,7 @@ export type PlanPageOpen = (typeof PLAN_PAGE_OPENS)[number];
|
|
|
263
276
|
export declare function planPageAddress(origin: string, o?: {
|
|
264
277
|
/** The team it acts in, by the organization's id. */
|
|
265
278
|
organization?: string | undefined;
|
|
266
|
-
open?: PlanPageOpen | undefined;
|
|
279
|
+
open?: PlanPageOpen | PlanPageReturn | undefined;
|
|
267
280
|
}): string;
|
|
268
281
|
/** The models the organization may use. */
|
|
269
282
|
export declare const LLM_MODELS_PATH = "/api/llm/models";
|
|
@@ -285,6 +298,21 @@ export declare const ReasoningOptionSchema: z.ZodObject<{
|
|
|
285
298
|
max: z.ZodOptional<z.ZodNumber>;
|
|
286
299
|
}, z.core.$strip>;
|
|
287
300
|
export type ReasoningOption = z.infer<typeof ReasoningOptionSchema>;
|
|
301
|
+
/**
|
|
302
|
+
* Auto's id in the catalog: the model a person is on until they choose one.
|
|
303
|
+
* It runs on a model the server picks (and may change), at that model's
|
|
304
|
+
* prices; the catalog lists it with that model's limits and no tier or maker,
|
|
305
|
+
* and a client names it in its own words.
|
|
306
|
+
*/
|
|
307
|
+
export declare const AUTO_MODEL = "auto";
|
|
308
|
+
/**
|
|
309
|
+
* A model's family: its id without its version, so "gpt-6.1-sol" and
|
|
310
|
+
* "gpt-6.2-sol" are both "gpt-sol" and "claude-opus-5-5" is "claude-opus"
|
|
311
|
+
* (a prefix stays: "allyhub/gpt-6.1-sol" is "allyhub/gpt-sol"). Studio
|
|
312
|
+
* moves a person on a model it no longer offers (one `retired`) to the one
|
|
313
|
+
* it offers in the same family; the server calls only the model asked for.
|
|
314
|
+
*/
|
|
315
|
+
export declare const familyOf: (id: string) => string;
|
|
288
316
|
export declare const ModelCatalogSchema: z.ZodObject<{
|
|
289
317
|
models: z.ZodArray<z.ZodObject<{
|
|
290
318
|
reasoning: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -303,6 +331,7 @@ export declare const ModelCatalogSchema: z.ZodObject<{
|
|
|
303
331
|
efficient: "efficient";
|
|
304
332
|
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>>;
|
|
305
333
|
maker: z.ZodOptional<z.ZodString>;
|
|
334
|
+
retired: z.ZodOptional<z.ZodBoolean>;
|
|
306
335
|
id: z.ZodString;
|
|
307
336
|
name: z.ZodString;
|
|
308
337
|
}, z.core.$loose>>;
|
|
@@ -314,6 +343,7 @@ export declare const ModelCatalogSchema: z.ZodObject<{
|
|
|
314
343
|
efficient: "efficient";
|
|
315
344
|
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>>;
|
|
316
345
|
maker: z.ZodOptional<z.ZodString>;
|
|
346
|
+
retired: z.ZodOptional<z.ZodBoolean>;
|
|
317
347
|
id: z.ZodString;
|
|
318
348
|
name: z.ZodString;
|
|
319
349
|
}, z.core.$loose>>>;
|
|
@@ -351,16 +381,16 @@ export declare const CatalogToolSchema: z.ZodObject<{
|
|
|
351
381
|
price: z.ZodOptional<z.ZodObject<{
|
|
352
382
|
credits: z.ZodNumber;
|
|
353
383
|
per: z.ZodUnion<readonly [z.ZodEnum<{
|
|
354
|
-
|
|
384
|
+
question: "question";
|
|
355
385
|
result: "result";
|
|
356
386
|
page: "page";
|
|
387
|
+
call: "call";
|
|
357
388
|
second: "second";
|
|
358
389
|
minute: "minute";
|
|
359
390
|
thousand_characters: "thousand_characters";
|
|
360
391
|
image: "image";
|
|
361
392
|
frame: "frame";
|
|
362
393
|
megapixel: "megapixel";
|
|
363
|
-
question: "question";
|
|
364
394
|
phrase: "phrase";
|
|
365
395
|
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
366
396
|
varies: z.ZodBoolean;
|
|
@@ -401,16 +431,16 @@ export declare const CatalogSchema: z.ZodObject<{
|
|
|
401
431
|
price: z.ZodOptional<z.ZodObject<{
|
|
402
432
|
credits: z.ZodNumber;
|
|
403
433
|
per: z.ZodUnion<readonly [z.ZodEnum<{
|
|
404
|
-
|
|
434
|
+
question: "question";
|
|
405
435
|
result: "result";
|
|
406
436
|
page: "page";
|
|
437
|
+
call: "call";
|
|
407
438
|
second: "second";
|
|
408
439
|
minute: "minute";
|
|
409
440
|
thousand_characters: "thousand_characters";
|
|
410
441
|
image: "image";
|
|
411
442
|
frame: "frame";
|
|
412
443
|
megapixel: "megapixel";
|
|
413
|
-
question: "question";
|
|
414
444
|
phrase: "phrase";
|
|
415
445
|
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
416
446
|
varies: z.ZodBoolean;
|
|
@@ -491,9 +521,9 @@ export declare const ToolCallSchema: z.ZodObject<{
|
|
|
491
521
|
id: z.ZodString;
|
|
492
522
|
tool: z.ZodString;
|
|
493
523
|
status: z.ZodUnion<readonly [z.ZodEnum<{
|
|
524
|
+
failed: "failed";
|
|
494
525
|
working: "working";
|
|
495
526
|
completed: "completed";
|
|
496
|
-
failed: "failed";
|
|
497
527
|
}>, z.core.$ZodBranded<z.ZodString, "Unknown", "out">]>;
|
|
498
528
|
output: z.ZodOptional<z.ZodUnknown>;
|
|
499
529
|
error: z.ZodOptional<z.ZodObject<{
|
|
@@ -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{openEnum as o,readable as
|
|
2
|
+
import{z as t}from"zod";import{openEnum as o,readable as c}from"./open.js";export const API_KEY_ENV="ALLYHUB_API_KEY",BILLING_SUMMARY_PATH="/api/billing/summary",AUTO_TOP_UP_STOPS=["no_card","saving_card","not_a_card","declined","needs_authentication","not_charged","under_line","refunded","disputed","monthly_limit"],BILLING_INTERVALS=["month","year"],BillingSummarySchema=t.object({credits:t.number(),held:t.number(),owed:t.number(),frozen:t.string().nullable().default(null),plan:t.object({id:t.string(),name:t.string(),interval:o(BILLING_INTERVALS),status:t.string(),renewsAt:t.iso.datetime().nullable(),endsAt:t.iso.datetime().nullable(),monthlyCredits:t.number().default(0),price:t.object({amountCents:t.number(),currency:t.string()}).nullable().default(null)}).nullable(),allowance:t.object({total:t.number(),used:t.number(),renewsAt:t.iso.datetime()}).nullable().default(null),bought:t.number().default(0),expiring:t.array(t.object({credits:t.number(),expiresAt:t.iso.datetime()})).default([]),customer:t.boolean().default(!1),autoTopUp:t.object({below:t.number(),amountCents:t.number(),monthlyLimitCents:t.number().nullable().default(null),chargedThisMonthCents:t.number().default(0),stopped:o(AUTO_TOP_UP_STOPS).nullable()}).nullable()}),BILLING_PLANS_PATH="/api/billing/plans",BillingPlansSchema=t.object({plans:t.array(t.object({id:t.string(),name:t.string(),family:t.string().nullable().default(null),recommended:t.boolean().default(!1),monthlyCredits:t.number(),storageBytes:t.number().optional(),prices:t.array(t.object({interval:o(BILLING_INTERVALS),amountCents:t.number(),currency:t.string()}))})),topUp:t.object({currency:t.string(),creditsPerDollar:t.number(),minCents:t.number(),maxCents:t.number(),presetsCents:t.array(t.number()).default([])}),welcomeCredits:t.number().optional(),freeStorageBytes:t.number().optional()}),BILLING_USAGE_PATH="/api/billing/usage",SPEND_KINDS=["models","tools","studio","other"],BillingUsageSchema=t.object({days:t.array(t.object({day:t.iso.date(),credits:t.number(),byKind:t.record(t.string(),t.number()).default({})}))}),BILLING_SPENDS_PATH="/api/billing/spends",BillingSpendsSchema=t.object({spends:t.array(t.object({at:t.string(),kind:o(SPEND_KINDS),what:t.string().nullable(),seconds:t.number().nullable(),member:t.string().nullable(),credits:t.number()})),more:t.boolean()}),BILLING_CHECKOUT_PATH="/api/billing/checkout",CheckoutRequestSchema=t.union([t.strictObject({plan:t.string(),interval:t.enum(BILLING_INTERVALS)}),t.strictObject({topUpCents:t.number().int()})]),BILLING_PORTAL_PATH="/api/billing/portal",PortalRequestSchema=t.union([t.strictObject({flow:t.enum(["home","payment_method","cancel"])}),t.strictObject({flow:t.literal("change_plan"),plan:t.string(),interval:t.enum(BILLING_INTERVALS)})]).default({flow:"home"}),BILLING_RESUME_PATH="/api/billing/resume",BILLING_PAYMENT_PATH="/api/billing/payment",BillingPaymentSchema=t.object({card:t.object({brand:t.string(),last4:t.string(),expMonth:t.number(),expYear:t.number()}).nullable(),email:t.string().nullable()}),BILLING_INVOICES_PATH="/api/billing/invoices",BillingInvoicesSchema=t.object({invoices:t.array(t.object({id:t.string(),number:t.string().nullable(),createdAt:t.string(),kind:o(["plan","credits"]),totalCents:t.number(),currency:t.string(),status:t.string(),pdf:t.string().nullable(),url:t.string().nullable()}))}),BILLING_TOP_UP_PATH="/api/billing/top-up",TopUpRequestSchema=t.strictObject({topUpCents:t.number().int()}),IDEMPOTENCY_KEY_HEADER="idempotency-key",BILLING_REQUEST_PATH="/api/billing/request",AUTO_TOP_UP_PATH="/api/billing/auto-top-up",AutoTopUpRequestSchema=t.strictObject({below:t.number().nonnegative(),amountCents:t.number().int().positive(),monthlyLimitCents:t.number().int().positive().nullable().optional(),newCard:t.boolean().optional()}),BILLING_REFUSALS=["top_up_amount","monthly_limit","has_plan","no_plan","no_such_plan","not_customer","no_card","frozen","not_charged","asked_today","too_many_charges"],BILLING_PAGE_PATH="/settings/plan",TEAM_PARAM="team",PLAN_VIEW_PARAM="view",PAID_PARAM="paid",UNPAID_PARAM="unpaid",PLAN_PAGE_OPENS=["plans","credits","paid"];export function planPageAddress(e,n={}){const i=new URLSearchParams;typeof n.open=="object"?i.set(UNPAID_PARAM,n.open.unpaid):n.open==="paid"?i.set(PAID_PARAM,"1"):n.open!==void 0&&i.set(PLAN_VIEW_PARAM,n.open),n.organization!==void 0&&i.set(TEAM_PARAM,n.organization);const r=i.toString();return`${e}${BILLING_PAGE_PATH}${r===""?"":`?${r}`}`}export const LLM_MODELS_PATH="/api/llm/models",LLM_MESSAGES_PATH="/api/llm/v1/messages",MODEL_TIERS=["premium","standard","efficient"];const l={tier:o(MODEL_TIERS).optional(),maker:t.string().min(1).optional(),retired:t.boolean().optional()};export const REASONING_OPTION_TYPES=["toggle","effort","budget_tokens"],ReasoningOptionSchema=t.object({type:o(REASONING_OPTION_TYPES),values:t.array(t.string().min(1)).optional(),min:t.number().int().nonnegative().optional(),max:t.number().int().positive().optional()}),AUTO_MODEL="auto",familyOf=e=>e.split("-").filter(n=>!/^\d+(\.\d+)*$/u.test(n)).join("-"),ModelCatalogSchema=t.object({models:t.array(t.looseObject({id:t.string().min(1),name:t.string().min(1),...l,reasoning:t.boolean().optional(),reasoningOptions:c(ReasoningOptionSchema).optional(),input:t.array(t.string()).optional(),contextWindow:t.number().int().positive().optional(),maxOutput:t.number().int().positive().optional()})).min(1),defaultModel:t.string().min(1),needPlan:t.array(t.looseObject({id:t.string().min(1),name:t.string().min(1),...l})).default([])}),JsonSchemaSchema=t.record(t.string(),t.unknown()),CATALOG_PATH="/api/catalog",PRICE_UNITS=["call","result","page","second","minute","thousand_characters","image","frame","megapixel","question","phrase"],TOOL_SECTIONS=["video","image","voice","music"],WORK_KINDS=["data","ai"],CatalogWorkSchema=t.object({id:t.string().min(1),title:t.string().min(1),description:t.string().min(1),kind:o(WORK_KINDS).default("data"),line:t.string().optional()}),CatalogToolSchema=t.object({name:t.string().min(1),work:t.string().min(1),title:t.string().min(1),description:t.string().min(1),input:JsonSchemaSchema,output:JsonSchemaSchema,long:t.boolean(),example:t.record(t.string(),t.unknown()).optional(),price:t.object({credits:t.number().nonnegative(),per:o(PRICE_UNITS),varies:t.boolean()}).optional(),shown:t.object({name:t.string(),line:t.string(),section:o(TOOL_SECTIONS)}).optional()}),CatalogSchema=t.object({version:t.string().min(1),works:t.array(CatalogWorkSchema),tools:t.array(CatalogToolSchema)}),CAPABILITIES_PATH="/api/capabilities",CapabilitiesSchema=t.object({off:t.object({works:t.array(t.string()),tools:t.array(t.string())})}),CapabilityRequestSchema=t.union([t.strictObject({work:t.string().min(1),on:t.boolean()}),t.strictObject({tool:t.string().min(1),on:t.boolean()})]),EDITORS_PATH="/api/editors",EditorsSchema=t.object({editors:t.array(t.object({id:t.string().min(1),name:t.record(t.string(),t.string()),plural:t.record(t.string(),t.string()).optional(),line:t.record(t.string(),t.string()),icon:t.string().optional(),color:t.string().optional()}))}),toolCallsPath=e=>`/api/tools/${encodeURIComponent(e)}/calls`,IDEMPOTENCY_KEY_MAX=255,callPath=e=>`/api/calls/${encodeURIComponent(e)}`,ToolCallRequestSchema=t.strictObject({input:t.record(t.string(),t.unknown())}),CALL_STATUS=["working","completed","failed"],ToolCallSchema=t.object({id:t.string().min(1),tool:t.string().min(1),status:o(CALL_STATUS),output:t.unknown().optional(),error:t.object({kind:t.string().min(1),message:t.string().min(1)}).optional(),credits:t.number().nonnegative().optional(),pollAfterMs:t.number().int().nonnegative().optional(),createdAt:t.string(),endedAt:t.string().optional()});const a="ally://data-tool-results/";export const allyFilePath=(e,n)=>`${a}${encodeURIComponent(e)}/${encodeURIComponent(n)}`;export function parseAllyFilePath(e){if(!e.startsWith(a))return;const[n,i,...r]=e.slice(a.length).split("/");if(!(!n||!i||r.length>0))try{return{id:decodeURIComponent(n),name:decodeURIComponent(i)}}catch(s){if(s instanceof URIError)return;throw s}}export const FILE_MAX_BYTES=1024*1024*1024,FILES_PATH="/api/files",FileCreateRequestSchema=t.strictObject({name:t.string().min(1).max(255),size:t.int().positive().max(FILE_MAX_BYTES),sha256:t.string().regex(/^[0-9a-f]{64}$/u),contentType:t.string().min(1).max(255)}),FileCreatedSchema=t.object({id:t.string().min(1),upload:t.object({url:t.url(),headers:t.record(t.string(),t.string())}).nullable()}),fileDonePath=e=>`${FILES_PATH}/${encodeURIComponent(e)}/done`,UploadedFileSchema=t.object({id:t.string().min(1),name:t.string()}),FileContentResponseSchema=t.object({url:t.url()}),fileContentPath=(e,n)=>`${FILES_PATH}/${encodeURIComponent(e)}/content?disposition=${n}`;
|
|
@@ -79,10 +79,10 @@ export declare const EDITOR_STATES: readonly ["saved", "saving", "unsaved", "err
|
|
|
79
79
|
export declare const EXPORT_BUTTON_STATES: readonly ["idle", "queued", "running", "done", "failed"];
|
|
80
80
|
export declare const ExportStateSchema: z.ZodObject<{
|
|
81
81
|
at: z.ZodEnum<{
|
|
82
|
+
done: "done";
|
|
82
83
|
failed: "failed";
|
|
83
84
|
queued: "queued";
|
|
84
85
|
running: "running";
|
|
85
|
-
done: "done";
|
|
86
86
|
idle: "idle";
|
|
87
87
|
}>;
|
|
88
88
|
percent: z.ZodOptional<z.ZodNumber>;
|
|
@@ -168,10 +168,10 @@ export declare const HOST_METHODS: {
|
|
|
168
168
|
}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
|
|
169
169
|
readonly "export/state": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
170
170
|
at: z.ZodEnum<{
|
|
171
|
+
done: "done";
|
|
171
172
|
failed: "failed";
|
|
172
173
|
queued: "queued";
|
|
173
174
|
running: "running";
|
|
174
|
-
done: "done";
|
|
175
175
|
idle: "idle";
|
|
176
176
|
}>;
|
|
177
177
|
percent: z.ZodOptional<z.ZodNumber>;
|
|
@@ -235,8 +235,8 @@ export declare const HOST_NOTIFICATIONS: {
|
|
|
235
235
|
}, z.core.$strict>>;
|
|
236
236
|
id: z.ZodString;
|
|
237
237
|
kind: z.ZodEnum<{
|
|
238
|
-
person: "person";
|
|
239
238
|
agent: "agent";
|
|
239
|
+
person: "person";
|
|
240
240
|
}>;
|
|
241
241
|
name: z.ZodString;
|
|
242
242
|
at: z.ZodNumber;
|
|
@@ -251,10 +251,10 @@ export declare const HOST_NOTIFICATIONS: {
|
|
|
251
251
|
}, z.core.$strict>>;
|
|
252
252
|
readonly "check/changed": import("./jsonrpc.js").NotificationSpec<z.ZodObject<{
|
|
253
253
|
status: z.ZodEnum<{
|
|
254
|
-
|
|
254
|
+
done: "done";
|
|
255
255
|
failed: "failed";
|
|
256
|
+
off: "off";
|
|
256
257
|
running: "running";
|
|
257
|
-
done: "done";
|
|
258
258
|
waiting: "waiting";
|
|
259
259
|
}>;
|
|
260
260
|
revision: z.ZodInt;
|
|
@@ -288,11 +288,11 @@ export declare const HOST_NOTIFICATIONS: {
|
|
|
288
288
|
types: z.ZodArray<z.ZodString>;
|
|
289
289
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>>;
|
|
290
290
|
state: z.ZodEnum<{
|
|
291
|
+
done: "done";
|
|
291
292
|
failed: "failed";
|
|
293
|
+
cancelled: "cancelled";
|
|
292
294
|
queued: "queued";
|
|
293
295
|
running: "running";
|
|
294
|
-
done: "done";
|
|
295
|
-
cancelled: "cancelled";
|
|
296
296
|
}>;
|
|
297
297
|
progress: z.ZodNumber;
|
|
298
298
|
files: z.ZodArray<z.ZodString>;
|
|
@@ -303,9 +303,9 @@ export declare const HOST_NOTIFICATIONS: {
|
|
|
303
303
|
jobs: z.ZodArray<z.ZodObject<{
|
|
304
304
|
file: z.ZodString;
|
|
305
305
|
status: z.ZodEnum<{
|
|
306
|
+
done: "done";
|
|
306
307
|
failed: "failed";
|
|
307
308
|
running: "running";
|
|
308
|
-
done: "done";
|
|
309
309
|
}>;
|
|
310
310
|
message: z.ZodString;
|
|
311
311
|
share: z.ZodOptional<z.ZodNumber>;
|
|
@@ -316,8 +316,8 @@ export declare const HOST_NOTIFICATIONS: {
|
|
|
316
316
|
id: z.ZodString;
|
|
317
317
|
about: z.ZodObject<{
|
|
318
318
|
kind: z.ZodEnum<{
|
|
319
|
-
studio: "studio";
|
|
320
319
|
agent: "agent";
|
|
320
|
+
studio: "studio";
|
|
321
321
|
project: "project";
|
|
322
322
|
piece: "piece";
|
|
323
323
|
plugin: "plugin";
|
|
@@ -337,12 +337,12 @@ export declare const HOST_NOTIFICATIONS: {
|
|
|
337
337
|
}>;
|
|
338
338
|
name: z.ZodOptional<z.ZodString>;
|
|
339
339
|
state: z.ZodEnum<{
|
|
340
|
+
done: "done";
|
|
340
341
|
failed: "failed";
|
|
342
|
+
cancelled: "cancelled";
|
|
343
|
+
paused: "paused";
|
|
341
344
|
queued: "queued";
|
|
342
345
|
running: "running";
|
|
343
|
-
paused: "paused";
|
|
344
|
-
done: "done";
|
|
345
|
-
cancelled: "cancelled";
|
|
346
346
|
}>;
|
|
347
347
|
completed: z.ZodNumber;
|
|
348
348
|
total: z.ZodOptional<z.ZodNumber>;
|
|
@@ -383,9 +383,9 @@ export declare const HOST_NOTIFICATIONS: {
|
|
|
383
383
|
version: z.ZodNullable<z.ZodString>;
|
|
384
384
|
by: z.ZodOptional<z.ZodObject<{
|
|
385
385
|
kind: z.ZodEnum<{
|
|
386
|
+
agent: "agent";
|
|
386
387
|
tool: "tool";
|
|
387
388
|
person: "person";
|
|
388
|
-
agent: "agent";
|
|
389
389
|
}>;
|
|
390
390
|
name: z.ZodString;
|
|
391
391
|
}, z.core.$strict>>;
|
|
@@ -460,8 +460,8 @@ export declare const EDITOR_HOST_METHODS: {
|
|
|
460
460
|
}, z.core.$strict>>;
|
|
461
461
|
id: z.ZodString;
|
|
462
462
|
kind: z.ZodEnum<{
|
|
463
|
-
person: "person";
|
|
464
463
|
agent: "agent";
|
|
464
|
+
person: "person";
|
|
465
465
|
}>;
|
|
466
466
|
name: z.ZodString;
|
|
467
467
|
at: z.ZodNumber;
|
|
@@ -545,10 +545,10 @@ export declare const EDITOR_HOST_METHODS: {
|
|
|
545
545
|
}, z.core.$strict>, z.ZodObject<{}, z.core.$strict>>;
|
|
546
546
|
readonly "export/state": import("./jsonrpc.js").MethodSpec<z.ZodObject<{
|
|
547
547
|
at: z.ZodEnum<{
|
|
548
|
+
done: "done";
|
|
548
549
|
failed: "failed";
|
|
549
550
|
queued: "queued";
|
|
550
551
|
running: "running";
|
|
551
|
-
done: "done";
|
|
552
552
|
idle: "idle";
|
|
553
553
|
}>;
|
|
554
554
|
percent: z.ZodOptional<z.ZodNumber>;
|