ontrackd 0.0.1 → 0.11.1
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/LICENSE +14 -0
- package/README.md +133 -2
- package/dist/cli/build.d.ts +1 -0
- package/dist/cli/build.js +172 -0
- package/dist/cli/build.js.map +1 -0
- package/dist/cli/cloud.d.ts +20 -0
- package/dist/cli/cloud.js +395 -0
- package/dist/cli/cloud.js.map +1 -0
- package/dist/cli/feedback.d.ts +4 -0
- package/dist/cli/feedback.js +90 -0
- package/dist/cli/feedback.js.map +1 -0
- package/dist/cli/hugo.d.ts +1 -0
- package/dist/cli/hugo.js +396 -0
- package/dist/cli/hugo.js.map +1 -0
- package/dist/cli/init.d.ts +8 -0
- package/dist/cli/init.js +346 -0
- package/dist/cli/init.js.map +1 -0
- package/dist/cli/invite.d.ts +2 -0
- package/dist/cli/invite.js +65 -0
- package/dist/cli/invite.js.map +1 -0
- package/dist/cli/link.d.ts +20 -0
- package/dist/cli/link.js +287 -0
- package/dist/cli/link.js.map +1 -0
- package/dist/cli/pull.d.ts +31 -0
- package/dist/cli/pull.js +273 -0
- package/dist/cli/pull.js.map +1 -0
- package/dist/cli/push.d.ts +9 -0
- package/dist/cli/push.js +57 -0
- package/dist/cli/push.js.map +1 -0
- package/dist/cli/remote.d.ts +1 -0
- package/dist/cli/remote.js +114 -0
- package/dist/cli/remote.js.map +1 -0
- package/dist/cli/serve.d.ts +1 -0
- package/dist/cli/serve.js +178 -0
- package/dist/cli/serve.js.map +1 -0
- package/dist/cli/sidecar.d.ts +9 -0
- package/dist/cli/sidecar.js +23 -0
- package/dist/cli/sidecar.js.map +1 -0
- package/dist/core/anchorId.d.ts +42 -0
- package/dist/core/anchorId.js +50 -0
- package/dist/core/anchorId.js.map +1 -0
- package/dist/core/apiKind.d.ts +42 -0
- package/dist/core/apiKind.js +83 -0
- package/dist/core/apiKind.js.map +1 -0
- package/dist/core/astroAnchors.d.ts +39 -0
- package/dist/core/astroAnchors.js +217 -0
- package/dist/core/astroAnchors.js.map +1 -0
- package/dist/core/attachmentTypes.d.ts +74 -0
- package/dist/core/attachmentTypes.js +199 -0
- package/dist/core/attachmentTypes.js.map +1 -0
- package/dist/core/elementHints.d.ts +40 -0
- package/dist/core/elementHints.js +116 -0
- package/dist/core/elementHints.js.map +1 -0
- package/dist/core/exportTaskDoc.d.ts +81 -0
- package/dist/core/exportTaskDoc.js +828 -0
- package/dist/core/exportTaskDoc.js.map +1 -0
- package/dist/core/feedbackTypes.d.ts +241 -0
- package/dist/core/feedbackTypes.js +2 -0
- package/dist/core/feedbackTypes.js.map +1 -0
- package/dist/core/fingerprint.d.ts +12 -0
- package/dist/core/fingerprint.js +24 -0
- package/dist/core/fingerprint.js.map +1 -0
- package/dist/core/htmlAnchors.d.ts +18 -0
- package/dist/core/htmlAnchors.js +157 -0
- package/dist/core/htmlAnchors.js.map +1 -0
- package/dist/core/imageSniff.d.ts +7 -0
- package/dist/core/imageSniff.js +12 -0
- package/dist/core/imageSniff.js.map +1 -0
- package/dist/core/ordering.d.ts +16 -0
- package/dist/core/ordering.js +10 -0
- package/dist/core/ordering.js.map +1 -0
- package/dist/core/oxcAst.d.ts +39 -0
- package/dist/core/oxcAst.js +147 -0
- package/dist/core/oxcAst.js.map +1 -0
- package/dist/core/pageUrl.d.ts +10 -0
- package/dist/core/pageUrl.js +27 -0
- package/dist/core/pageUrl.js.map +1 -0
- package/dist/core/participants.d.ts +14 -0
- package/dist/core/participants.js +38 -0
- package/dist/core/participants.js.map +1 -0
- package/dist/core/ports.d.ts +86 -0
- package/dist/core/ports.js +2 -0
- package/dist/core/ports.js.map +1 -0
- package/dist/core/projectSecret.d.ts +9 -0
- package/dist/core/projectSecret.js +57 -0
- package/dist/core/projectSecret.js.map +1 -0
- package/dist/core/recipe.d.ts +117 -0
- package/dist/core/recipe.js +181 -0
- package/dist/core/recipe.js.map +1 -0
- package/dist/core/recordingSummary.d.ts +12 -0
- package/dist/core/recordingSummary.js +150 -0
- package/dist/core/recordingSummary.js.map +1 -0
- package/dist/core/resolveAnchors.d.ts +70 -0
- package/dist/core/resolveAnchors.js +101 -0
- package/dist/core/resolveAnchors.js.map +1 -0
- package/dist/core/scriptImport.d.ts +10 -0
- package/dist/core/scriptImport.js +18 -0
- package/dist/core/scriptImport.js.map +1 -0
- package/dist/core/sourceAnchors.d.ts +62 -0
- package/dist/core/sourceAnchors.js +82 -0
- package/dist/core/sourceAnchors.js.map +1 -0
- package/dist/core/sourceContext.d.ts +62 -0
- package/dist/core/sourceContext.js +182 -0
- package/dist/core/sourceContext.js.map +1 -0
- package/dist/core/sourcePath.d.ts +2 -0
- package/dist/core/sourcePath.js +11 -0
- package/dist/core/sourcePath.js.map +1 -0
- package/dist/core/staleness.d.ts +118 -0
- package/dist/core/staleness.js +155 -0
- package/dist/core/staleness.js.map +1 -0
- package/dist/core/styleOrigin.d.ts +98 -0
- package/dist/core/styleOrigin.js +142 -0
- package/dist/core/styleOrigin.js.map +1 -0
- package/dist/core/svelteAnchors.d.ts +18 -0
- package/dist/core/svelteAnchors.js +125 -0
- package/dist/core/svelteAnchors.js.map +1 -0
- package/dist/core/taskFiles.d.ts +31 -0
- package/dist/core/taskFiles.js +55 -0
- package/dist/core/taskFiles.js.map +1 -0
- package/dist/core/untrusted.d.ts +57 -0
- package/dist/core/untrusted.js +268 -0
- package/dist/core/untrusted.js.map +1 -0
- package/dist/core/vueAnchors.d.ts +21 -0
- package/dist/core/vueAnchors.js +130 -0
- package/dist/core/vueAnchors.js.map +1 -0
- package/dist/expo/app/Avatar.d.ts +6 -0
- package/dist/expo/app/Avatar.js +12 -0
- package/dist/expo/app/Avatar.js.map +1 -0
- package/dist/expo/app/Bars.d.ts +9 -0
- package/dist/expo/app/Bars.js +38 -0
- package/dist/expo/app/Bars.js.map +1 -0
- package/dist/expo/app/CommentThreadSheet.d.ts +35 -0
- package/dist/expo/app/CommentThreadSheet.js +200 -0
- package/dist/expo/app/CommentThreadSheet.js.map +1 -0
- package/dist/expo/app/CommentsSheet.d.ts +22 -0
- package/dist/expo/app/CommentsSheet.js +76 -0
- package/dist/expo/app/CommentsSheet.js.map +1 -0
- package/dist/expo/app/Files.d.ts +16 -0
- package/dist/expo/app/Files.js +62 -0
- package/dist/expo/app/Files.js.map +1 -0
- package/dist/expo/app/Highlight.d.ts +5 -0
- package/dist/expo/app/Highlight.js +12 -0
- package/dist/expo/app/Highlight.js.map +1 -0
- package/dist/expo/app/Icon.d.ts +9 -0
- package/dist/expo/app/Icon.js +22 -0
- package/dist/expo/app/Icon.js.map +1 -0
- package/dist/expo/app/MarkerPins.d.ts +10 -0
- package/dist/expo/app/MarkerPins.js +70 -0
- package/dist/expo/app/MarkerPins.js.map +1 -0
- package/dist/expo/app/Provider.d.ts +13 -0
- package/dist/expo/app/Provider.js +597 -0
- package/dist/expo/app/Provider.js.map +1 -0
- package/dist/expo/app/Sheet.d.ts +53 -0
- package/dist/expo/app/Sheet.js +106 -0
- package/dist/expo/app/Sheet.js.map +1 -0
- package/dist/expo/app/Toolbar.d.ts +26 -0
- package/dist/expo/app/Toolbar.js +71 -0
- package/dist/expo/app/Toolbar.js.map +1 -0
- package/dist/expo/app/adapter.d.ts +55 -0
- package/dist/expo/app/adapter.js +145 -0
- package/dist/expo/app/adapter.js.map +1 -0
- package/dist/expo/app/api.d.ts +68 -0
- package/dist/expo/app/api.js +86 -0
- package/dist/expo/app/api.js.map +1 -0
- package/dist/expo/app/assets/attach.png +0 -0
- package/dist/expo/app/assets/close.png +0 -0
- package/dist/expo/app/assets/comment.png +0 -0
- package/dist/expo/app/assets/edit.png +0 -0
- package/dist/expo/app/assets/file.png +0 -0
- package/dist/expo/app/assets/narrow.png +0 -0
- package/dist/expo/app/assets/panel.png +0 -0
- package/dist/expo/app/assets/pins.png +0 -0
- package/dist/expo/app/assets/pinsOff.png +0 -0
- package/dist/expo/app/assets/remove.png +0 -0
- package/dist/expo/app/assets/reopen.png +0 -0
- package/dist/expo/app/assets/resolve.png +0 -0
- package/dist/expo/app/assets/send.png +0 -0
- package/dist/expo/app/assets/widen.png +0 -0
- package/dist/expo/app/attachments.d.ts +93 -0
- package/dist/expo/app/attachments.js +181 -0
- package/dist/expo/app/attachments.js.map +1 -0
- package/dist/expo/app/cloudApi.d.ts +63 -0
- package/dist/expo/app/cloudApi.js +330 -0
- package/dist/expo/app/cloudApi.js.map +1 -0
- package/dist/expo/app/cloudAuth.d.ts +20 -0
- package/dist/expo/app/cloudAuth.js +71 -0
- package/dist/expo/app/cloudAuth.js.map +1 -0
- package/dist/expo/app/cloudHttp.d.ts +20 -0
- package/dist/expo/app/cloudHttp.js +46 -0
- package/dist/expo/app/cloudHttp.js.map +1 -0
- package/dist/expo/app/cloudSession.d.ts +30 -0
- package/dist/expo/app/cloudSession.js +72 -0
- package/dist/expo/app/cloudSession.js.map +1 -0
- package/dist/expo/app/comments.d.ts +20 -0
- package/dist/expo/app/comments.js +131 -0
- package/dist/expo/app/comments.js.map +1 -0
- package/dist/expo/app/devMenuNone.d.ts +5 -0
- package/dist/expo/app/devMenuNone.js +3 -0
- package/dist/expo/app/devMenuNone.js.map +1 -0
- package/dist/expo/app/devServerNone.d.ts +4 -0
- package/dist/expo/app/devServerNone.js +4 -0
- package/dist/expo/app/devServerNone.js.map +1 -0
- package/dist/expo/app/embeddedConfig.d.ts +1 -0
- package/dist/expo/app/embeddedConfig.js +12 -0
- package/dist/expo/app/embeddedConfig.js.map +1 -0
- package/dist/expo/app/embeddedConfigCloud.d.ts +2 -0
- package/dist/expo/app/embeddedConfigCloud.js +8 -0
- package/dist/expo/app/embeddedConfigCloud.js.map +1 -0
- package/dist/expo/app/embeddedConfigNone.d.ts +2 -0
- package/dist/expo/app/embeddedConfigNone.js +3 -0
- package/dist/expo/app/embeddedConfigNone.js.map +1 -0
- package/dist/expo/app/expo.d.ts +4 -0
- package/dist/expo/app/expo.js +35 -0
- package/dist/expo/app/expo.js.map +1 -0
- package/dist/expo/app/expoGo.d.ts +4 -0
- package/dist/expo/app/expoGo.js +33 -0
- package/dist/expo/app/expoGo.js.map +1 -0
- package/dist/expo/app/expoPickers.d.ts +11 -0
- package/dist/expo/app/expoPickers.js +91 -0
- package/dist/expo/app/expoPickers.js.map +1 -0
- package/dist/expo/app/expoRandom.d.ts +6 -0
- package/dist/expo/app/expoRandom.js +21 -0
- package/dist/expo/app/expoRandom.js.map +1 -0
- package/dist/expo/app/idle.d.ts +4 -0
- package/dist/expo/app/idle.js +7 -0
- package/dist/expo/app/idle.js.map +1 -0
- package/dist/expo/app/index.d.ts +3 -0
- package/dist/expo/app/index.js +3 -0
- package/dist/expo/app/index.js.map +1 -0
- package/dist/expo/app/interactions.d.ts +38 -0
- package/dist/expo/app/interactions.js +40 -0
- package/dist/expo/app/interactions.js.map +1 -0
- package/dist/expo/app/markers.d.ts +28 -0
- package/dist/expo/app/markers.js +187 -0
- package/dist/expo/app/markers.js.map +1 -0
- package/dist/expo/app/movedAnchors.d.ts +46 -0
- package/dist/expo/app/movedAnchors.js +39 -0
- package/dist/expo/app/movedAnchors.js.map +1 -0
- package/dist/expo/app/native.d.ts +12 -0
- package/dist/expo/app/native.js +78 -0
- package/dist/expo/app/native.js.map +1 -0
- package/dist/expo/app/panel.d.ts +27 -0
- package/dist/expo/app/panel.js +37 -0
- package/dist/expo/app/panel.js.map +1 -0
- package/dist/expo/app/payload.d.ts +43 -0
- package/dist/expo/app/payload.js +22 -0
- package/dist/expo/app/payload.js.map +1 -0
- package/dist/expo/app/pick.d.ts +14 -0
- package/dist/expo/app/pick.js +124 -0
- package/dist/expo/app/pick.js.map +1 -0
- package/dist/expo/app/pickerNone.d.ts +1 -0
- package/dist/expo/app/pickerNone.js +2 -0
- package/dist/expo/app/pickerNone.js.map +1 -0
- package/dist/expo/app/placement.d.ts +53 -0
- package/dist/expo/app/placement.js +100 -0
- package/dist/expo/app/placement.js.map +1 -0
- package/dist/expo/app/random.d.ts +13 -0
- package/dist/expo/app/random.js +56 -0
- package/dist/expo/app/random.js.map +1 -0
- package/dist/expo/app/reactNative.d.ts +2 -0
- package/dist/expo/app/reactNative.js +3 -0
- package/dist/expo/app/reactNative.js.map +1 -0
- package/dist/expo/app/runtimeConfig.d.ts +30 -0
- package/dist/expo/app/runtimeConfig.js +104 -0
- package/dist/expo/app/runtimeConfig.js.map +1 -0
- package/dist/expo/app/sheetMotion.d.ts +22 -0
- package/dist/expo/app/sheetMotion.js +39 -0
- package/dist/expo/app/sheetMotion.js.map +1 -0
- package/dist/expo/app/signIn.d.ts +32 -0
- package/dist/expo/app/signIn.js +28 -0
- package/dist/expo/app/signIn.js.map +1 -0
- package/dist/expo/app/state.d.ts +45 -0
- package/dist/expo/app/state.js +32 -0
- package/dist/expo/app/state.js.map +1 -0
- package/dist/expo/app/theme.d.ts +15 -0
- package/dist/expo/app/theme.js +9 -0
- package/dist/expo/app/theme.js.map +1 -0
- package/dist/expo/app/types.d.ts +87 -0
- package/dist/expo/app/types.js +2 -0
- package/dist/expo/app/types.js.map +1 -0
- package/dist/expo/app/useCloudReviewer.d.ts +75 -0
- package/dist/expo/app/useCloudReviewer.js +211 -0
- package/dist/expo/app/useCloudReviewer.js.map +1 -0
- package/dist/expo/app/useComments.d.ts +64 -0
- package/dist/expo/app/useComments.js +156 -0
- package/dist/expo/app/useComments.js.map +1 -0
- package/dist/expo/app/useUploads.d.ts +32 -0
- package/dist/expo/app/useUploads.js +106 -0
- package/dist/expo/app/useUploads.js.map +1 -0
- package/dist/expo/expoGoMetro.cjs +83 -0
- package/dist/expo/expoMetro.cjs +86 -0
- package/dist/expo/metro.cjs +304 -0
- package/dist/expo/metroBuild.d.ts +22 -0
- package/dist/expo/metroBuild.js +169 -0
- package/dist/expo/metroBuild.js.map +1 -0
- package/dist/expo/middleware.d.ts +11 -0
- package/dist/expo/middleware.js +26 -0
- package/dist/expo/middleware.js.map +1 -0
- package/dist/expo/mode.d.ts +20 -0
- package/dist/expo/mode.js +37 -0
- package/dist/expo/mode.js.map +1 -0
- package/dist/expo/publicConfig.d.ts +37 -0
- package/dist/expo/publicConfig.js +87 -0
- package/dist/expo/publicConfig.js.map +1 -0
- package/dist/expo/transform.d.ts +22 -0
- package/dist/expo/transform.js +38 -0
- package/dist/expo/transform.js.map +1 -0
- package/dist/expo/transformer.cjs +73 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -0
- package/dist/integration/apiRoutes.d.ts +2 -0
- package/dist/integration/apiRoutes.js +3 -0
- package/dist/integration/apiRoutes.js.map +1 -0
- package/dist/integration/buildCredentials.d.ts +12 -0
- package/dist/integration/buildCredentials.js +97 -0
- package/dist/integration/buildCredentials.js.map +1 -0
- package/dist/integration/buildSession.d.ts +8 -0
- package/dist/integration/buildSession.js +96 -0
- package/dist/integration/buildSession.js.map +1 -0
- package/dist/integration/bundleCheck.d.ts +43 -0
- package/dist/integration/bundleCheck.js +111 -0
- package/dist/integration/bundleCheck.js.map +1 -0
- package/dist/integration/commentPull.d.ts +134 -0
- package/dist/integration/commentPull.js +260 -0
- package/dist/integration/commentPull.js.map +1 -0
- package/dist/integration/configuredApi.d.ts +7 -0
- package/dist/integration/configuredApi.js +24 -0
- package/dist/integration/configuredApi.js.map +1 -0
- package/dist/integration/devCloud.d.ts +27 -0
- package/dist/integration/devCloud.js +56 -0
- package/dist/integration/devCloud.js.map +1 -0
- package/dist/integration/devReviewLinks.d.ts +2 -0
- package/dist/integration/devReviewLinks.js +10 -0
- package/dist/integration/devReviewLinks.js.map +1 -0
- package/dist/integration/gitBranch.d.ts +19 -0
- package/dist/integration/gitBranch.js +56 -0
- package/dist/integration/gitBranch.js.map +1 -0
- package/dist/integration/importPlan.d.ts +19 -0
- package/dist/integration/importPlan.js +90 -0
- package/dist/integration/importPlan.js.map +1 -0
- package/dist/integration/index.d.ts +14 -0
- package/dist/integration/index.js +13 -0
- package/dist/integration/index.js.map +1 -0
- package/dist/integration/manifest.d.ts +120 -0
- package/dist/integration/manifest.js +147 -0
- package/dist/integration/manifest.js.map +1 -0
- package/dist/integration/manifestParts.d.ts +29 -0
- package/dist/integration/manifestParts.js +65 -0
- package/dist/integration/manifestParts.js.map +1 -0
- package/dist/integration/manifestSink.d.ts +75 -0
- package/dist/integration/manifestSink.js +157 -0
- package/dist/integration/manifestSink.js.map +1 -0
- package/dist/integration/manifestUpload.d.ts +64 -0
- package/dist/integration/manifestUpload.js +177 -0
- package/dist/integration/manifestUpload.js.map +1 -0
- package/dist/integration/middleware.d.ts +55 -0
- package/dist/integration/middleware.js +379 -0
- package/dist/integration/middleware.js.map +1 -0
- package/dist/integration/nextStyles.d.ts +4 -0
- package/dist/integration/nextStyles.js +121 -0
- package/dist/integration/nextStyles.js.map +1 -0
- package/dist/integration/requestGuards.d.ts +71 -0
- package/dist/integration/requestGuards.js +255 -0
- package/dist/integration/requestGuards.js.map +1 -0
- package/dist/integration/sharedBuild.d.ts +71 -0
- package/dist/integration/sharedBuild.js +105 -0
- package/dist/integration/sharedBuild.js.map +1 -0
- package/dist/integration/sharedInject.d.ts +88 -0
- package/dist/integration/sharedInject.js +164 -0
- package/dist/integration/sharedInject.js.map +1 -0
- package/dist/integration/sidecarProcess.d.ts +26 -0
- package/dist/integration/sidecarProcess.js +137 -0
- package/dist/integration/sidecarProcess.js.map +1 -0
- package/dist/integration/styleCollector.d.ts +49 -0
- package/dist/integration/styleCollector.js +220 -0
- package/dist/integration/styleCollector.js.map +1 -0
- package/dist/integration/transform.d.ts +24 -0
- package/dist/integration/transform.js +36 -0
- package/dist/integration/transform.js.map +1 -0
- package/dist/integration/tunnelClient.d.ts +44 -0
- package/dist/integration/tunnelClient.js +148 -0
- package/dist/integration/tunnelClient.js.map +1 -0
- package/dist/integration/tunnelProtocol.d.ts +152 -0
- package/dist/integration/tunnelProtocol.js +110 -0
- package/dist/integration/tunnelProtocol.js.map +1 -0
- package/dist/mcp/cli.d.ts +2 -0
- package/dist/mcp/cli.js +327 -0
- package/dist/mcp/cli.js.map +1 -0
- package/dist/mcp/cloudRefresh.d.ts +36 -0
- package/dist/mcp/cloudRefresh.js +52 -0
- package/dist/mcp/cloudRefresh.js.map +1 -0
- package/dist/mcp/context.d.ts +7 -0
- package/dist/mcp/context.js +18 -0
- package/dist/mcp/context.js.map +1 -0
- package/dist/mcp/files.d.ts +66 -0
- package/dist/mcp/files.js +157 -0
- package/dist/mcp/files.js.map +1 -0
- package/dist/mcp/search.d.ts +3 -0
- package/dist/mcp/search.js +9 -0
- package/dist/mcp/search.js.map +1 -0
- package/dist/mcp/server.d.ts +50 -0
- package/dist/mcp/server.js +555 -0
- package/dist/mcp/server.js.map +1 -0
- package/dist/overlay/anchors.d.ts +130 -0
- package/dist/overlay/anchors.js +365 -0
- package/dist/overlay/anchors.js.map +1 -0
- package/dist/overlay/api.d.ts +150 -0
- package/dist/overlay/api.js +259 -0
- package/dist/overlay/api.js.map +1 -0
- package/dist/overlay/attachments.d.ts +60 -0
- package/dist/overlay/attachments.js +163 -0
- package/dist/overlay/attachments.js.map +1 -0
- package/dist/overlay/browser.d.ts +1 -0
- package/dist/overlay/browser.js +203 -0
- package/dist/overlay/browser.js.map +1 -0
- package/dist/overlay/chip.d.ts +27 -0
- package/dist/overlay/chip.js +31 -0
- package/dist/overlay/chip.js.map +1 -0
- package/dist/overlay/compact.d.ts +11 -0
- package/dist/overlay/compact.js +21 -0
- package/dist/overlay/compact.js.map +1 -0
- package/dist/overlay/cssScope.d.ts +46 -0
- package/dist/overlay/cssScope.js +180 -0
- package/dist/overlay/cssScope.js.map +1 -0
- package/dist/overlay/cursor.d.ts +2 -0
- package/dist/overlay/cursor.js +68 -0
- package/dist/overlay/cursor.js.map +1 -0
- package/dist/overlay/devBrowser.d.ts +1 -0
- package/dist/overlay/devBrowser.js +18 -0
- package/dist/overlay/devBrowser.js.map +1 -0
- package/dist/overlay/devReview.d.ts +4 -0
- package/dist/overlay/devReview.js +18 -0
- package/dist/overlay/devReview.js.map +1 -0
- package/dist/overlay/directReviewer.d.ts +149 -0
- package/dist/overlay/directReviewer.js +448 -0
- package/dist/overlay/directReviewer.js.map +1 -0
- package/dist/overlay/elementDescription.d.ts +10 -0
- package/dist/overlay/elementDescription.js +251 -0
- package/dist/overlay/elementDescription.js.map +1 -0
- package/dist/overlay/icons.d.ts +8 -0
- package/dist/overlay/icons.js +36 -0
- package/dist/overlay/icons.js.map +1 -0
- package/dist/overlay/identity.d.ts +48 -0
- package/dist/overlay/identity.js +125 -0
- package/dist/overlay/identity.js.map +1 -0
- package/dist/overlay/localMachine.d.ts +23 -0
- package/dist/overlay/localMachine.js +40 -0
- package/dist/overlay/localMachine.js.map +1 -0
- package/dist/overlay/magicLink.d.ts +10 -0
- package/dist/overlay/magicLink.js +87 -0
- package/dist/overlay/magicLink.js.map +1 -0
- package/dist/overlay/modern-screenshot.js +1676 -0
- package/dist/overlay/movedAnchors.d.ts +30 -0
- package/dist/overlay/movedAnchors.js +128 -0
- package/dist/overlay/movedAnchors.js.map +1 -0
- package/dist/overlay/notificationGroups.d.ts +2 -0
- package/dist/overlay/notificationGroups.js +41 -0
- package/dist/overlay/notificationGroups.js.map +1 -0
- package/dist/overlay/permissions.d.ts +10 -0
- package/dist/overlay/permissions.js +9 -0
- package/dist/overlay/permissions.js.map +1 -0
- package/dist/overlay/pinGroups.d.ts +16 -0
- package/dist/overlay/pinGroups.js +17 -0
- package/dist/overlay/pinGroups.js.map +1 -0
- package/dist/overlay/presence.d.ts +50 -0
- package/dist/overlay/presence.js +258 -0
- package/dist/overlay/presence.js.map +1 -0
- package/dist/overlay/projectChannel.d.ts +11 -0
- package/dist/overlay/projectChannel.js +111 -0
- package/dist/overlay/projectChannel.js.map +1 -0
- package/dist/overlay/recorder.d.ts +56 -0
- package/dist/overlay/recorder.js +130 -0
- package/dist/overlay/recorder.js.map +1 -0
- package/dist/overlay/reviewMode.d.ts +21 -0
- package/dist/overlay/reviewMode.js +59 -0
- package/dist/overlay/reviewMode.js.map +1 -0
- package/dist/overlay/reviewerAuth.d.ts +131 -0
- package/dist/overlay/reviewerAuth.js +279 -0
- package/dist/overlay/reviewerAuth.js.map +1 -0
- package/dist/overlay/route.d.ts +18 -0
- package/dist/overlay/route.js +56 -0
- package/dist/overlay/route.js.map +1 -0
- package/dist/overlay/rrweb-record.js +63 -0
- package/dist/overlay/runtime.d.ts +1 -0
- package/dist/overlay/runtime.js +4857 -0
- package/dist/overlay/runtime.js.map +1 -0
- package/dist/overlay/session.d.ts +32 -0
- package/dist/overlay/session.js +76 -0
- package/dist/overlay/session.js.map +1 -0
- package/dist/overlay/sharedMode.d.ts +38 -0
- package/dist/overlay/sharedMode.js +37 -0
- package/dist/overlay/sharedMode.js.map +1 -0
- package/dist/overlay/sheet.d.ts +73 -0
- package/dist/overlay/sheet.js +278 -0
- package/dist/overlay/sheet.js.map +1 -0
- package/dist/overlay/snapshot.d.ts +26 -0
- package/dist/overlay/snapshot.js +185 -0
- package/dist/overlay/snapshot.js.map +1 -0
- package/dist/overlay/state.d.ts +63 -0
- package/dist/overlay/state.js +241 -0
- package/dist/overlay/state.js.map +1 -0
- package/dist/overlay/steps.d.ts +22 -0
- package/dist/overlay/steps.js +34 -0
- package/dist/overlay/steps.js.map +1 -0
- package/dist/overlay/styles.d.ts +7 -0
- package/dist/overlay/styles.js +1449 -0
- package/dist/overlay/styles.js.map +1 -0
- package/dist/overlay/trace.d.ts +19 -0
- package/dist/overlay/trace.js +29 -0
- package/dist/overlay/trace.js.map +1 -0
- package/dist/overlay/upload.d.ts +35 -0
- package/dist/overlay/upload.js +99 -0
- package/dist/overlay/upload.js.map +1 -0
- package/dist/plugin/astro.d.ts +31 -0
- package/dist/plugin/astro.js +22 -0
- package/dist/plugin/astro.js.map +1 -0
- package/dist/plugin/eleventy.d.ts +44 -0
- package/dist/plugin/eleventy.js +186 -0
- package/dist/plugin/eleventy.js.map +1 -0
- package/dist/plugin/next-loader.cjs +11 -0
- package/dist/plugin/next.d.ts +29 -0
- package/dist/plugin/next.js +176 -0
- package/dist/plugin/next.js.map +1 -0
- package/dist/plugin/nextOverlay.d.ts +2 -0
- package/dist/plugin/nextOverlay.js +22 -0
- package/dist/plugin/nextOverlay.js.map +1 -0
- package/dist/plugin/nextTransform.d.ts +19 -0
- package/dist/plugin/nextTransform.js +29 -0
- package/dist/plugin/nextTransform.js.map +1 -0
- package/dist/plugin/rsbuild.d.ts +25 -0
- package/dist/plugin/rsbuild.js +56 -0
- package/dist/plugin/rsbuild.js.map +1 -0
- package/dist/plugin/vite.d.ts +40 -0
- package/dist/plugin/vite.js +585 -0
- package/dist/plugin/vite.js.map +1 -0
- package/dist/plugin/webpack.d.ts +69 -0
- package/dist/plugin/webpack.js +192 -0
- package/dist/plugin/webpack.js.map +1 -0
- package/dist/remote/account.d.ts +41 -0
- package/dist/remote/account.js +177 -0
- package/dist/remote/account.js.map +1 -0
- package/dist/remote/base64url.d.ts +14 -0
- package/dist/remote/base64url.js +71 -0
- package/dist/remote/base64url.js.map +1 -0
- package/dist/remote/branchLabel.d.ts +12 -0
- package/dist/remote/branchLabel.js +20 -0
- package/dist/remote/branchLabel.js.map +1 -0
- package/dist/remote/client.d.ts +340 -0
- package/dist/remote/client.js +424 -0
- package/dist/remote/client.js.map +1 -0
- package/dist/remote/cloudApi.d.ts +72 -0
- package/dist/remote/cloudApi.js +72 -0
- package/dist/remote/cloudApi.js.map +1 -0
- package/dist/remote/codec.d.ts +54 -0
- package/dist/remote/codec.js +62 -0
- package/dist/remote/codec.js.map +1 -0
- package/dist/remote/config.d.ts +30 -0
- package/dist/remote/config.js +112 -0
- package/dist/remote/config.js.map +1 -0
- package/dist/remote/content-schema.d.ts +428 -0
- package/dist/remote/content-schema.js +209 -0
- package/dist/remote/content-schema.js.map +1 -0
- package/dist/remote/content.d.ts +44 -0
- package/dist/remote/content.js +75 -0
- package/dist/remote/content.js.map +1 -0
- package/dist/remote/envelope.d.ts +76 -0
- package/dist/remote/envelope.js +109 -0
- package/dist/remote/envelope.js.map +1 -0
- package/dist/remote/errors.d.ts +55 -0
- package/dist/remote/errors.js +63 -0
- package/dist/remote/errors.js.map +1 -0
- package/dist/remote/ids.d.ts +8 -0
- package/dist/remote/ids.js +25 -0
- package/dist/remote/ids.js.map +1 -0
- package/dist/remote/index.d.ts +7 -0
- package/dist/remote/index.js +8 -0
- package/dist/remote/index.js.map +1 -0
- package/dist/remote/keys.d.ts +62 -0
- package/dist/remote/keys.js +162 -0
- package/dist/remote/keys.js.map +1 -0
- package/dist/remote/localAnchors.d.ts +4 -0
- package/dist/remote/localAnchors.js +23 -0
- package/dist/remote/localAnchors.js.map +1 -0
- package/dist/remote/mapping.d.ts +11 -0
- package/dist/remote/mapping.js +22 -0
- package/dist/remote/mapping.js.map +1 -0
- package/dist/remote/presence.d.ts +63 -0
- package/dist/remote/presence.js +143 -0
- package/dist/remote/presence.js.map +1 -0
- package/dist/remote/realtime.d.ts +142 -0
- package/dist/remote/realtime.js +326 -0
- package/dist/remote/realtime.js.map +1 -0
- package/dist/remote/store.d.ts +183 -0
- package/dist/remote/store.js +907 -0
- package/dist/remote/store.js.map +1 -0
- package/dist/remote/sync.d.ts +113 -0
- package/dist/remote/sync.js +370 -0
- package/dist/remote/sync.js.map +1 -0
- package/dist/remote/types.d.ts +99 -0
- package/dist/remote/types.js +6 -0
- package/dist/remote/types.js.map +1 -0
- package/dist/setup/agents.d.ts +23 -0
- package/dist/setup/agents.js +80 -0
- package/dist/setup/agents.js.map +1 -0
- package/dist/setup/configure.d.ts +27 -0
- package/dist/setup/configure.js +201 -0
- package/dist/setup/configure.js.map +1 -0
- package/dist/setup/connect.d.ts +60 -0
- package/dist/setup/connect.js +244 -0
- package/dist/setup/connect.js.map +1 -0
- package/dist/setup/detect.d.ts +67 -0
- package/dist/setup/detect.js +168 -0
- package/dist/setup/detect.js.map +1 -0
- package/dist/setup/frameworks.d.ts +41 -0
- package/dist/setup/frameworks.js +81 -0
- package/dist/setup/frameworks.js.map +1 -0
- package/dist/sidecar/cli.d.ts +1 -0
- package/dist/sidecar/cli.js +70 -0
- package/dist/sidecar/cli.js.map +1 -0
- package/dist/sidecar/cloudSync.d.ts +33 -0
- package/dist/sidecar/cloudSync.js +139 -0
- package/dist/sidecar/cloudSync.js.map +1 -0
- package/dist/sidecar/commentFiles.d.ts +59 -0
- package/dist/sidecar/commentFiles.js +217 -0
- package/dist/sidecar/commentFiles.js.map +1 -0
- package/dist/sidecar/cssAttribution.d.ts +26 -0
- package/dist/sidecar/cssAttribution.js +114 -0
- package/dist/sidecar/cssAttribution.js.map +1 -0
- package/dist/sidecar/exportTasks.d.ts +38 -0
- package/dist/sidecar/exportTasks.js +249 -0
- package/dist/sidecar/exportTasks.js.map +1 -0
- package/dist/sidecar/http.d.ts +20 -0
- package/dist/sidecar/http.js +904 -0
- package/dist/sidecar/http.js.map +1 -0
- package/dist/sidecar/inviteTarget.d.ts +4 -0
- package/dist/sidecar/inviteTarget.js +32 -0
- package/dist/sidecar/inviteTarget.js.map +1 -0
- package/dist/sidecar/presence.d.ts +4 -0
- package/dist/sidecar/presence.js +92 -0
- package/dist/sidecar/presence.js.map +1 -0
- package/dist/storage/cliSession.d.ts +8 -0
- package/dist/storage/cliSession.js +41 -0
- package/dist/storage/cliSession.js.map +1 -0
- package/dist/storage/devStyleMap.d.ts +12 -0
- package/dist/storage/devStyleMap.js +31 -0
- package/dist/storage/devStyleMap.js.map +1 -0
- package/dist/storage/fileCache.d.ts +34 -0
- package/dist/storage/fileCache.js +122 -0
- package/dist/storage/fileCache.js.map +1 -0
- package/dist/storage/localAttachments.d.ts +82 -0
- package/dist/storage/localAttachments.js +276 -0
- package/dist/storage/localAttachments.js.map +1 -0
- package/dist/storage/localComments.d.ts +31 -0
- package/dist/storage/localComments.js +159 -0
- package/dist/storage/localComments.js.map +1 -0
- package/dist/storage/localCredentials.d.ts +74 -0
- package/dist/storage/localCredentials.js +210 -0
- package/dist/storage/localCredentials.js.map +1 -0
- package/dist/storage/localParticipants.d.ts +33 -0
- package/dist/storage/localParticipants.js +110 -0
- package/dist/storage/localParticipants.js.map +1 -0
- package/dist/storage/localRecipe.d.ts +22 -0
- package/dist/storage/localRecipe.js +46 -0
- package/dist/storage/localRecipe.js.map +1 -0
- package/dist/storage/localScreenshots.d.ts +23 -0
- package/dist/storage/localScreenshots.js +55 -0
- package/dist/storage/localScreenshots.js.map +1 -0
- package/dist/storage/localSource.d.ts +31 -0
- package/dist/storage/localSource.js +175 -0
- package/dist/storage/localSource.js.map +1 -0
- package/dist/storage/pulledComments.d.ts +81 -0
- package/dist/storage/pulledComments.js +107 -0
- package/dist/storage/pulledComments.js.map +1 -0
- package/dist/storage/remoteRecipe.d.ts +7 -0
- package/dist/storage/remoteRecipe.js +85 -0
- package/dist/storage/remoteRecipe.js.map +1 -0
- package/dist/storage/savedRemote.d.ts +2 -0
- package/dist/storage/savedRemote.js +22 -0
- package/dist/storage/savedRemote.js.map +1 -0
- package/dist/storage/sidecarAccess.d.ts +7 -0
- package/dist/storage/sidecarAccess.js +68 -0
- package/dist/storage/sidecarAccess.js.map +1 -0
- package/package.json +306 -4
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `baseUrl` is mandatory: there is deliberately no default host. Credentials travel only over
|
|
3
|
+
* HTTPS, or plain HTTP to a loopback address in development (README section 2.3).
|
|
4
|
+
* @param {unknown} baseUrl
|
|
5
|
+
*/
|
|
6
|
+
export function normalizeBaseUrl(baseUrl: unknown): string;
|
|
7
|
+
export const CLIENT_PRODUCT: "feedback-reference-client";
|
|
8
|
+
export const CLIENT_VERSION: "0.2.0";
|
|
9
|
+
/**
|
|
10
|
+
* @typedef {object} RetryOptions
|
|
11
|
+
* @property {number} [maxAttempts] Total attempts per request, first included. Default 5.
|
|
12
|
+
* @property {number} [baseDelayMs] Backoff base: retry n waits random in [0, min(maxDelayMs, base * 2^n)]. Default 1000.
|
|
13
|
+
* @property {number} [maxDelayMs] Default 30000.
|
|
14
|
+
* @property {number} [maxRetryAfterMs] A longer `Retry-After` is not waited out; the error is thrown. Default 60000.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* @typedef {object} ClientOptions
|
|
18
|
+
* @property {string} baseUrl
|
|
19
|
+
* @property {typeof fetch} [fetch]
|
|
20
|
+
* @property {string} [product] `Feedback-Client` product, `[a-z][a-z0-9-]{0,63}`.
|
|
21
|
+
* @property {string} [version] Full SemVer.
|
|
22
|
+
* @property {RetryOptions} [retry]
|
|
23
|
+
* @property {number} [timeoutMs] Per attempt. Default 30000.
|
|
24
|
+
* @property {(ms: number) => Promise<void>} [sleep]
|
|
25
|
+
* @property {() => number} [random] In [0, 1).
|
|
26
|
+
* @property {(event: RequestEvent) => void} [onRequest] Observability hook; receives no secrets.
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* @typedef {object} RequestEvent
|
|
30
|
+
* @property {string} method @property {string} path @property {number} attempt
|
|
31
|
+
* @property {number} [status] @property {string} [requestId] @property {string} [error]
|
|
32
|
+
*/
|
|
33
|
+
/** @typedef {{ idempotencyKey?: string }} WriteOptions */
|
|
34
|
+
/**
|
|
35
|
+
* The request credential: Standalone derived keys, or (Cloud) an account token or participant
|
|
36
|
+
* credential holder. Only `authorizationHeader()` is used by the transport.
|
|
37
|
+
* @typedef {{ authorizationHeader(): string }} RequestAuth
|
|
38
|
+
*/
|
|
39
|
+
export class FeedbackClient {
|
|
40
|
+
/** @param {ClientOptions} options */
|
|
41
|
+
constructor(options: ClientOptions);
|
|
42
|
+
baseUrl: string;
|
|
43
|
+
fetch: typeof fetch;
|
|
44
|
+
userAgent: string;
|
|
45
|
+
timeoutMs: number;
|
|
46
|
+
retry: {
|
|
47
|
+
/**
|
|
48
|
+
* Total attempts per request, first included. Default 5.
|
|
49
|
+
*/
|
|
50
|
+
maxAttempts: number;
|
|
51
|
+
/**
|
|
52
|
+
* Backoff base: retry n waits random in [0, min(maxDelayMs, base * 2^n)]. Default 1000.
|
|
53
|
+
*/
|
|
54
|
+
baseDelayMs: number;
|
|
55
|
+
/**
|
|
56
|
+
* Default 30000.
|
|
57
|
+
*/
|
|
58
|
+
maxDelayMs: number;
|
|
59
|
+
/**
|
|
60
|
+
* A longer `Retry-After` is not waited out; the error is thrown. Default 60000.
|
|
61
|
+
*/
|
|
62
|
+
maxRetryAfterMs: number;
|
|
63
|
+
};
|
|
64
|
+
sleep: (ms: number) => Promise<void>;
|
|
65
|
+
random: () => number;
|
|
66
|
+
onRequest: ((event: RequestEvent) => void) | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Low-level request with retries. `auth` is the credential for the project in the path.
|
|
69
|
+
* @param {string} method
|
|
70
|
+
* @param {string} path Starts with /v0.
|
|
71
|
+
* @param {{ auth?: RequestAuth, body?: unknown, idempotencyKey?: string, query?: Record<string, string | number | undefined>, headers?: Record<string, string>, allowStatus?: number[] }} [options]
|
|
72
|
+
* @returns {Promise<{ status: number, body: any, headers: Headers }>}
|
|
73
|
+
*/
|
|
74
|
+
request(method: string, path: string, { auth, body, idempotencyKey, query, headers, allowStatus }?: {
|
|
75
|
+
auth?: RequestAuth;
|
|
76
|
+
body?: unknown;
|
|
77
|
+
idempotencyKey?: string;
|
|
78
|
+
query?: Record<string, string | number | undefined>;
|
|
79
|
+
headers?: Record<string, string>;
|
|
80
|
+
allowStatus?: number[];
|
|
81
|
+
}): Promise<{
|
|
82
|
+
status: number;
|
|
83
|
+
body: any;
|
|
84
|
+
headers: Headers;
|
|
85
|
+
}>;
|
|
86
|
+
/**
|
|
87
|
+
* `GET /v0/health`. A 503 still carries a health document (`status: "unavailable"`), returned
|
|
88
|
+
* rather than thrown. Public; no credential.
|
|
89
|
+
* @returns {Promise<import('./types.js').Health>}
|
|
90
|
+
*/
|
|
91
|
+
health(): Promise<import("./types.js").Health>;
|
|
92
|
+
/**
|
|
93
|
+
* `GET /v0/markdown-spec?format=…`, with `If-None-Match` support. Public.
|
|
94
|
+
* @param {{ formats?: number[], etag?: string }} [options]
|
|
95
|
+
* @returns {Promise<{ notModified: true, etag?: string } | { notModified: false, etag?: string, spec: any }>}
|
|
96
|
+
*/
|
|
97
|
+
markdownSpec({ formats, etag }?: {
|
|
98
|
+
formats?: number[];
|
|
99
|
+
etag?: string;
|
|
100
|
+
}): Promise<{
|
|
101
|
+
notModified: true;
|
|
102
|
+
etag?: string;
|
|
103
|
+
} | {
|
|
104
|
+
notModified: false;
|
|
105
|
+
etag?: string;
|
|
106
|
+
spec: any;
|
|
107
|
+
}>;
|
|
108
|
+
/** Single-use exchange. Never retry an uncertain acceptance automatically.
|
|
109
|
+
* @param {string} projectId @param {string} sessionId @param {string} token
|
|
110
|
+
*/
|
|
111
|
+
acceptInvite(projectId: string, sessionId: string, token: string): Promise<any>;
|
|
112
|
+
/**
|
|
113
|
+
* `POST /v0/standalone/projects`: registers the verifier of `keys` (never the key itself).
|
|
114
|
+
* @param {import('./keys.js').DerivedKeys} keys
|
|
115
|
+
* @param {WriteOptions} [options]
|
|
116
|
+
* @returns {Promise<import('./types.js').Project>}
|
|
117
|
+
*/
|
|
118
|
+
createStandaloneProject(keys: import("./keys.js").DerivedKeys, { idempotencyKey }?: WriteOptions): Promise<import("./types.js").Project>;
|
|
119
|
+
/**
|
|
120
|
+
* Authenticated calls for one project.
|
|
121
|
+
* @template {RequestAuth} Auth
|
|
122
|
+
* @param {string} projectId @param {Auth} keys
|
|
123
|
+
*/
|
|
124
|
+
project<Auth extends RequestAuth>(projectId: string, keys: Auth): ProjectApi<Auth>;
|
|
125
|
+
#private;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Calls scoped to one project and its credential (derived from its key on Standalone).
|
|
129
|
+
* @template {RequestAuth} [Auth = RequestAuth]
|
|
130
|
+
*/
|
|
131
|
+
export class ProjectApi<Auth extends RequestAuth = RequestAuth> {
|
|
132
|
+
/** @param {FeedbackClient} client @param {string} projectId @param {Auth} keys */
|
|
133
|
+
constructor(client: FeedbackClient, projectId: string, keys: Auth);
|
|
134
|
+
client: FeedbackClient;
|
|
135
|
+
projectId: string;
|
|
136
|
+
keys: Auth;
|
|
137
|
+
/** @param {string} sessionId @param {{ displayName: string, origin: string, ttlDays?: number }} invite */
|
|
138
|
+
createInvite(sessionId: string, { displayName, origin, ttlDays }: {
|
|
139
|
+
displayName: string;
|
|
140
|
+
origin: string;
|
|
141
|
+
ttlDays?: number;
|
|
142
|
+
}): Promise<any>;
|
|
143
|
+
/** @param {string} sessionId */
|
|
144
|
+
listParticipants(sessionId: string): Promise<any>;
|
|
145
|
+
/** @param {string} sessionId @param {string} participantId */
|
|
146
|
+
revokeParticipant(sessionId: string, participantId: string): Promise<any>;
|
|
147
|
+
/** @returns {Promise<import('./types.js').Project>} */
|
|
148
|
+
getProject(): Promise<import("./types.js").Project>;
|
|
149
|
+
/**
|
|
150
|
+
* Standalone: `expiresAt` is fixed at creation (createdAt + server-configured days, default 7).
|
|
151
|
+
* @param {{ branchId?: string } & WriteOptions} [options]
|
|
152
|
+
* @returns {Promise<import('./types.js').Session>}
|
|
153
|
+
*/
|
|
154
|
+
createSession({ branchId, idempotencyKey }?: {
|
|
155
|
+
branchId?: string;
|
|
156
|
+
} & WriteOptions): Promise<import("./types.js").Session>;
|
|
157
|
+
/**
|
|
158
|
+
* @param {{ cursor?: string, limit?: number }} [options]
|
|
159
|
+
* @returns {Promise<{ sessions: import('./types.js').Session[], nextCursor: string | null }>}
|
|
160
|
+
*/
|
|
161
|
+
listSessions({ cursor, limit }?: {
|
|
162
|
+
cursor?: string;
|
|
163
|
+
limit?: number;
|
|
164
|
+
}): Promise<{
|
|
165
|
+
sessions: import("./types.js").Session[];
|
|
166
|
+
nextCursor: string | null;
|
|
167
|
+
}>;
|
|
168
|
+
/** @param {string} sessionId @returns {Promise<import('./types.js').Session>} */
|
|
169
|
+
getSession(sessionId: string): Promise<import("./types.js").Session>;
|
|
170
|
+
/**
|
|
171
|
+
* Creates a comment with a client-generated ID. The envelope must be bound to that ID, so a
|
|
172
|
+
* caller that supplies `id` must have sealed against it. Cloud projects take plaintext `content`
|
|
173
|
+
* instead of `envelope` (README section 4.6), and may carry the `branch` label (section 4.7).
|
|
174
|
+
* @param {string} sessionId
|
|
175
|
+
* @param {{ id: string, authorId: string, envelope?: import('./types.js').Envelope, content?: object, status?: 'open' | 'resolved', branch?: string, attachmentIds?: string[] } & WriteOptions} comment
|
|
176
|
+
* @returns {Promise<import('./types.js').Comment>}
|
|
177
|
+
*/
|
|
178
|
+
createComment(sessionId: string, { id, authorId, envelope, content, status, branch, attachmentIds, idempotencyKey }: {
|
|
179
|
+
id: string;
|
|
180
|
+
authorId: string;
|
|
181
|
+
envelope?: import("./types.js").Envelope;
|
|
182
|
+
content?: object;
|
|
183
|
+
status?: "open" | "resolved";
|
|
184
|
+
branch?: string;
|
|
185
|
+
attachmentIds?: string[];
|
|
186
|
+
} & WriteOptions): Promise<import("./types.js").Comment>;
|
|
187
|
+
/**
|
|
188
|
+
* Edits a comment's envelope, status, or both, as one revision. `baseRevision` is the comment
|
|
189
|
+
* revision the caller last saw (409 `conflict` otherwise).
|
|
190
|
+
* @param {string} sessionId @param {string} commentId
|
|
191
|
+
* @param {{ actorId: string, baseRevision: number, envelope?: import('./types.js').Envelope, content?: object, status?: 'open' | 'resolved' } & WriteOptions} update
|
|
192
|
+
* @returns {Promise<import('./types.js').Comment>}
|
|
193
|
+
*/
|
|
194
|
+
updateComment(sessionId: string, commentId: string, { actorId, baseRevision, envelope, content, status, idempotencyKey }: {
|
|
195
|
+
actorId: string;
|
|
196
|
+
baseRevision: number;
|
|
197
|
+
envelope?: import("./types.js").Envelope;
|
|
198
|
+
content?: object;
|
|
199
|
+
status?: "open" | "resolved";
|
|
200
|
+
} & WriteOptions): Promise<import("./types.js").Comment>;
|
|
201
|
+
/**
|
|
202
|
+
* Status-only change. Setting the current status again is a 200 no-op without a revision.
|
|
203
|
+
* @param {string} sessionId @param {string} commentId
|
|
204
|
+
* @param {{ actorId: string, status: 'open' | 'resolved', baseRevision: number } & WriteOptions} change
|
|
205
|
+
*/
|
|
206
|
+
setCommentStatus(sessionId: string, commentId: string, { actorId, status, baseRevision, idempotencyKey }: {
|
|
207
|
+
actorId: string;
|
|
208
|
+
status: "open" | "resolved";
|
|
209
|
+
baseRevision: number;
|
|
210
|
+
} & WriteOptions): Promise<import("./types.js").Comment>;
|
|
211
|
+
/**
|
|
212
|
+
* @param {string} sessionId @param {string} commentId
|
|
213
|
+
* @param {{ id: string, authorId: string, envelope?: import('./types.js').Envelope, content?: object, attachmentIds?: string[] } & WriteOptions} reply
|
|
214
|
+
* @returns {Promise<import('./types.js').Reply>}
|
|
215
|
+
*/
|
|
216
|
+
createReply(sessionId: string, commentId: string, { id, authorId, envelope, content, attachmentIds, idempotencyKey }: {
|
|
217
|
+
id: string;
|
|
218
|
+
authorId: string;
|
|
219
|
+
envelope?: import("./types.js").Envelope;
|
|
220
|
+
content?: object;
|
|
221
|
+
attachmentIds?: string[];
|
|
222
|
+
} & WriteOptions): Promise<import("./types.js").Reply>;
|
|
223
|
+
/**
|
|
224
|
+
* @param {string} sessionId @param {string} commentId @param {string} replyId
|
|
225
|
+
* @param {{ actorId: string, baseRevision: number, envelope?: import('./types.js').Envelope, content?: object } & WriteOptions} update
|
|
226
|
+
* @returns {Promise<import('./types.js').Reply>}
|
|
227
|
+
*/
|
|
228
|
+
updateReply(sessionId: string, commentId: string, replyId: string, { actorId, baseRevision, envelope, content, idempotencyKey }: {
|
|
229
|
+
actorId: string;
|
|
230
|
+
baseRevision: number;
|
|
231
|
+
envelope?: import("./types.js").Envelope;
|
|
232
|
+
content?: object;
|
|
233
|
+
} & WriteOptions): Promise<import("./types.js").Reply>;
|
|
234
|
+
/**
|
|
235
|
+
* @param {string} sessionId @param {string} commentId
|
|
236
|
+
* @param {{ actorId: string, baseRevision: number } & WriteOptions} deletion
|
|
237
|
+
* @returns {Promise<import('./types.js').Tombstone>}
|
|
238
|
+
*/
|
|
239
|
+
deleteComment(sessionId: string, commentId: string, { actorId, baseRevision, idempotencyKey }: {
|
|
240
|
+
actorId: string;
|
|
241
|
+
baseRevision: number;
|
|
242
|
+
} & WriteOptions): Promise<import("./types.js").Tombstone>;
|
|
243
|
+
/**
|
|
244
|
+
* @param {string} sessionId @param {string} commentId @param {string} replyId
|
|
245
|
+
* @param {{ actorId: string, baseRevision: number } & WriteOptions} deletion
|
|
246
|
+
* @returns {Promise<import('./types.js').Tombstone>}
|
|
247
|
+
*/
|
|
248
|
+
deleteReply(sessionId: string, commentId: string, replyId: string, { actorId, baseRevision, idempotencyKey }: {
|
|
249
|
+
actorId: string;
|
|
250
|
+
baseRevision: number;
|
|
251
|
+
} & WriteOptions): Promise<import("./types.js").Tombstone>;
|
|
252
|
+
/**
|
|
253
|
+
* `GET …/changes?after&limit`. 409 `snapshot_required` is thrown as an {@link ApiError}.
|
|
254
|
+
* @param {string} sessionId @param {{ after?: number, limit?: number }} [options]
|
|
255
|
+
* @returns {Promise<import('./types.js').ChangesPage>}
|
|
256
|
+
*/
|
|
257
|
+
getChanges(sessionId: string, { after, limit }?: {
|
|
258
|
+
after?: number;
|
|
259
|
+
limit?: number;
|
|
260
|
+
}): Promise<import("./types.js").ChangesPage>;
|
|
261
|
+
/**
|
|
262
|
+
* `GET …/snapshot?after&limit`.
|
|
263
|
+
* @param {string} sessionId @param {{ after?: number, limit?: number }} [options]
|
|
264
|
+
* @returns {Promise<import('./types.js').SnapshotPage>}
|
|
265
|
+
*/
|
|
266
|
+
getSnapshot(sessionId: string, { after, limit }?: {
|
|
267
|
+
after?: number;
|
|
268
|
+
limit?: number;
|
|
269
|
+
}): Promise<import("./types.js").SnapshotPage>;
|
|
270
|
+
/**
|
|
271
|
+
* `POST …/ws-tickets`: a single-use ticket (30 s) for one WebSocket upgrade. No Idempotency-Key
|
|
272
|
+
* (every call mints a new ticket).
|
|
273
|
+
* @param {string} sessionId
|
|
274
|
+
* @returns {Promise<import('./types.js').WsTicket>}
|
|
275
|
+
*/
|
|
276
|
+
createWsTicket(sessionId: string): Promise<import("./types.js").WsTicket>;
|
|
277
|
+
#private;
|
|
278
|
+
}
|
|
279
|
+
export type RetryOptions = {
|
|
280
|
+
/**
|
|
281
|
+
* Total attempts per request, first included. Default 5.
|
|
282
|
+
*/
|
|
283
|
+
maxAttempts?: number | undefined;
|
|
284
|
+
/**
|
|
285
|
+
* Backoff base: retry n waits random in [0, min(maxDelayMs, base * 2^n)]. Default 1000.
|
|
286
|
+
*/
|
|
287
|
+
baseDelayMs?: number | undefined;
|
|
288
|
+
/**
|
|
289
|
+
* Default 30000.
|
|
290
|
+
*/
|
|
291
|
+
maxDelayMs?: number | undefined;
|
|
292
|
+
/**
|
|
293
|
+
* A longer `Retry-After` is not waited out; the error is thrown. Default 60000.
|
|
294
|
+
*/
|
|
295
|
+
maxRetryAfterMs?: number | undefined;
|
|
296
|
+
};
|
|
297
|
+
export type ClientOptions = {
|
|
298
|
+
baseUrl: string;
|
|
299
|
+
fetch?: typeof fetch | undefined;
|
|
300
|
+
/**
|
|
301
|
+
* `Feedback-Client` product, `[a-z][a-z0-9-]{0,63}`.
|
|
302
|
+
*/
|
|
303
|
+
product?: string | undefined;
|
|
304
|
+
/**
|
|
305
|
+
* Full SemVer.
|
|
306
|
+
*/
|
|
307
|
+
version?: string | undefined;
|
|
308
|
+
retry?: RetryOptions | undefined;
|
|
309
|
+
/**
|
|
310
|
+
* Per attempt. Default 30000.
|
|
311
|
+
*/
|
|
312
|
+
timeoutMs?: number | undefined;
|
|
313
|
+
sleep?: ((ms: number) => Promise<void>) | undefined;
|
|
314
|
+
/**
|
|
315
|
+
* In [0, 1).
|
|
316
|
+
*/
|
|
317
|
+
random?: (() => number) | undefined;
|
|
318
|
+
/**
|
|
319
|
+
* Observability hook; receives no secrets.
|
|
320
|
+
*/
|
|
321
|
+
onRequest?: ((event: RequestEvent) => void) | undefined;
|
|
322
|
+
};
|
|
323
|
+
export type RequestEvent = {
|
|
324
|
+
method: string;
|
|
325
|
+
path: string;
|
|
326
|
+
attempt: number;
|
|
327
|
+
status?: number | undefined;
|
|
328
|
+
requestId?: string | undefined;
|
|
329
|
+
error?: string | undefined;
|
|
330
|
+
};
|
|
331
|
+
export type WriteOptions = {
|
|
332
|
+
idempotencyKey?: string;
|
|
333
|
+
};
|
|
334
|
+
/**
|
|
335
|
+
* The request credential: Standalone derived keys, or (Cloud) an account token or participant
|
|
336
|
+
* credential holder. Only `authorizationHeader()` is used by the transport.
|
|
337
|
+
*/
|
|
338
|
+
export type RequestAuth = {
|
|
339
|
+
authorizationHeader(): string;
|
|
340
|
+
};
|