@dreamlake/dreamlake-cli 0.88.0 → 0.89.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/dist/api/access.d.ts +83 -0
- package/dist/api/access.js +77 -0
- package/dist/api/agent.d.ts +156 -0
- package/dist/api/agent.js +111 -0
- package/dist/api/browser.d.ts +90 -0
- package/dist/api/browser.js +102 -0
- package/dist/api/client.d.ts +53 -0
- package/dist/api/client.js +102 -0
- package/dist/api/common.d.ts +28 -0
- package/dist/api/common.js +16 -0
- package/dist/api/content.d.ts +195 -0
- package/dist/api/content.js +147 -0
- package/dist/api/execution.d.ts +84 -0
- package/dist/api/execution.js +73 -0
- package/dist/api/http.d.ts +19 -0
- package/dist/api/http.js +66 -0
- package/dist/api/index.d.ts +2330 -0
- package/dist/api/index.js +114 -0
- package/dist/api/infra.d.ts +2 -0
- package/dist/api/infra.js +2 -0
- package/dist/api/jobs.d.ts +2 -0
- package/dist/api/jobs.js +2 -0
- package/dist/api/layout.d.ts +2 -0
- package/dist/api/layout.js +2 -0
- package/dist/api/library-edit.d.ts +3 -0
- package/dist/api/library-edit.js +3 -0
- package/dist/api/library-manifest.d.ts +2 -0
- package/dist/api/library-manifest.js +2 -0
- package/dist/api/note-character-plan.d.ts +2 -0
- package/dist/api/note-character-plan.js +2 -0
- package/dist/api/note-editing.d.ts +2 -0
- package/dist/api/note-editing.js +2 -0
- package/dist/api/note-edits.d.ts +21 -0
- package/dist/api/note-edits.js +10 -0
- package/dist/api/note-events.d.ts +5 -0
- package/dist/api/note-events.js +11 -0
- package/dist/api/note-files.d.ts +75 -0
- package/dist/api/note-files.js +65 -0
- package/dist/api/note-html-read.d.ts +2 -0
- package/dist/api/note-html-read.js +2 -0
- package/dist/api/note-html.d.ts +2 -0
- package/dist/api/note-html.js +2 -0
- package/dist/api/note-toc.d.ts +2 -0
- package/dist/api/note-toc.js +2 -0
- package/dist/api/notes.d.ts +304 -0
- package/dist/api/notes.js +181 -0
- package/dist/api/open-resources.d.ts +27 -0
- package/dist/api/open-resources.js +102 -0
- package/dist/api/ownership.d.ts +12 -0
- package/dist/api/ownership.js +24 -0
- package/dist/api/platform.d.ts +83 -0
- package/dist/api/platform.js +56 -0
- package/dist/api/presigned-transfer.d.ts +2 -0
- package/dist/api/presigned-transfer.js +2 -0
- package/dist/api/registered-runs.d.ts +48 -0
- package/dist/api/registered-runs.js +33 -0
- package/dist/api/sessions.d.ts +299 -0
- package/dist/api/sessions.js +105 -0
- package/dist/api/storage.d.ts +46 -0
- package/dist/api/storage.js +34 -0
- package/dist/api/streams.d.ts +18 -0
- package/dist/api/streams.js +70 -0
- package/dist/api/vault.d.ts +93 -0
- package/dist/api/vault.js +79 -0
- package/dist/api/workspace.d.ts +180 -0
- package/dist/api/workspace.js +146 -0
- package/dist/cli/agent-identity.d.ts +4 -0
- package/dist/cli/agent-identity.js +21 -0
- package/dist/cli/agents/identity.d.ts +50 -0
- package/dist/cli/agents/identity.js +105 -0
- package/dist/cli/agents/index.d.ts +31 -0
- package/dist/cli/agents/index.js +580 -0
- package/dist/cli/agents/manage.d.ts +43 -0
- package/dist/cli/agents/manage.js +376 -0
- package/dist/cli/agents/spec.d.ts +104 -0
- package/dist/cli/agents/spec.js +280 -0
- package/dist/cli/agents/web.d.ts +7 -0
- package/dist/cli/agents/web.js +109 -0
- package/dist/cli/artifact/incremental.d.ts +21 -0
- package/dist/cli/artifact/incremental.js +80 -0
- package/dist/cli/artifact/index.d.ts +52 -0
- package/dist/cli/artifact/index.js +405 -0
- package/dist/cli/artifact/meta.d.ts +69 -0
- package/dist/cli/artifact/meta.js +189 -0
- package/dist/cli/auth/commands.d.ts +29 -0
- package/dist/cli/auth/commands.js +327 -0
- package/dist/cli/auth/constants.d.ts +13 -0
- package/dist/cli/auth/constants.js +18 -0
- package/dist/cli/auth/credentials.d.ts +37 -0
- package/dist/cli/auth/credentials.js +155 -0
- package/dist/cli/auth/device-flow.d.ts +32 -0
- package/dist/cli/auth/device-flow.js +154 -0
- package/dist/cli/auth/device-secret.d.ts +6 -0
- package/dist/cli/auth/device-secret.js +26 -0
- package/dist/cli/auth/machine.d.ts +15 -0
- package/dist/cli/auth/machine.js +126 -0
- package/dist/cli/auth/materialized.d.ts +32 -0
- package/dist/cli/auth/materialized.js +102 -0
- package/dist/cli/auth/migrate.d.ts +10 -0
- package/dist/cli/auth/migrate.js +75 -0
- package/dist/cli/client.d.ts +102 -0
- package/dist/cli/client.js +206 -0
- package/dist/cli/collection-list.d.ts +3 -0
- package/dist/cli/collection-list.js +25 -0
- package/dist/cli/compat/ctx.d.ts +26 -0
- package/dist/cli/compat/ctx.js +76 -0
- package/dist/cli/compat/dreamdb-wasm-embedded.d.ts +2 -0
- package/dist/cli/compat/dreamdb-wasm-embedded.js +8 -0
- package/dist/cli/compat/dreamdb-wasm.d.ts +1 -0
- package/dist/cli/compat/dreamdb-wasm.js +26 -0
- package/dist/cli/compat/dreamdb.d.ts +112 -0
- package/dist/cli/compat/dreamdb.js +219 -0
- package/dist/cli/compat/flags.d.ts +2 -0
- package/dist/cli/compat/flags.js +13 -0
- package/dist/cli/compat/http.d.ts +23 -0
- package/dist/cli/compat/http.js +137 -0
- package/dist/cli/compat/presignedTransfer.d.ts +139 -0
- package/dist/cli/compat/presignedTransfer.js +580 -0
- package/dist/cli/compat/s3-backend.d.ts +73 -0
- package/dist/cli/compat/s3-backend.js +132 -0
- package/dist/cli/config.d.ts +22 -0
- package/dist/cli/config.js +96 -0
- package/dist/cli/connection/dto.d.ts +159 -0
- package/dist/cli/connection/dto.js +497 -0
- package/dist/cli/connection/index.d.ts +50 -0
- package/dist/cli/connection/index.js +413 -0
- package/dist/cli/connection/oauth.d.ts +23 -0
- package/dist/cli/connection/oauth.js +290 -0
- package/dist/cli/connection/write.d.ts +47 -0
- package/dist/cli/connection/write.js +573 -0
- package/dist/cli/create/index.d.ts +19 -0
- package/dist/cli/create/index.js +209 -0
- package/dist/cli/declare/index.d.ts +29 -0
- package/dist/cli/declare/index.js +304 -0
- package/dist/cli/delete/index.d.ts +18 -0
- package/dist/cli/delete/index.js +232 -0
- package/dist/cli/download/index.d.ts +9 -0
- package/dist/cli/download/index.js +128 -0
- package/dist/cli/env/compose.d.ts +88 -0
- package/dist/cli/env/compose.js +402 -0
- package/dist/cli/env/index.d.ts +176 -0
- package/dist/cli/env/index.js +1011 -0
- package/dist/cli/experiments/index.d.ts +11 -0
- package/dist/cli/experiments/index.js +168 -0
- package/dist/cli/glob.d.ts +1 -0
- package/dist/cli/glob.js +45 -0
- package/dist/cli/graphql-helpers.d.ts +23 -0
- package/dist/cli/graphql-helpers.js +42 -0
- package/dist/cli/graphql.d.ts +10 -0
- package/dist/cli/graphql.js +47 -0
- package/dist/cli/help-examples.generated.d.ts +1 -0
- package/dist/cli/help-examples.generated.js +192 -0
- package/dist/cli/helpers.d.ts +8 -0
- package/dist/cli/helpers.js +106 -0
- package/dist/cli/hosts/api.d.ts +29 -0
- package/dist/cli/hosts/api.js +54 -0
- package/dist/cli/hosts/bootstrap-source.d.ts +1 -0
- package/dist/cli/hosts/bootstrap-source.js +2 -0
- package/dist/cli/hosts/catalog.d.ts +26 -0
- package/dist/cli/hosts/catalog.js +55 -0
- package/dist/cli/hosts/config.d.ts +45 -0
- package/dist/cli/hosts/config.js +179 -0
- package/dist/cli/hosts/credentials.d.ts +19 -0
- package/dist/cli/hosts/credentials.js +173 -0
- package/dist/cli/hosts/enroll.d.ts +17 -0
- package/dist/cli/hosts/enroll.js +109 -0
- package/dist/cli/hosts/enrollments.d.ts +25 -0
- package/dist/cli/hosts/enrollments.js +54 -0
- package/dist/cli/hosts/index.d.ts +6 -0
- package/dist/cli/hosts/index.js +279 -0
- package/dist/cli/hosts/inventory.d.ts +40 -0
- package/dist/cli/hosts/inventory.js +91 -0
- package/dist/cli/hosts/lifecycle.d.ts +15 -0
- package/dist/cli/hosts/lifecycle.js +108 -0
- package/dist/cli/hosts/metrics-source.d.ts +12 -0
- package/dist/cli/hosts/metrics-source.js +89 -0
- package/dist/cli/hosts/observations.d.ts +39 -0
- package/dist/cli/hosts/observations.js +102 -0
- package/dist/cli/hosts/remote.d.ts +5 -0
- package/dist/cli/hosts/remote.js +66 -0
- package/dist/cli/hosts/ssh.d.ts +63 -0
- package/dist/cli/hosts/ssh.js +276 -0
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +288 -0
- package/dist/cli/infra/api.d.ts +95 -0
- package/dist/cli/infra/api.js +291 -0
- package/dist/cli/infra/index.d.ts +5 -0
- package/dist/cli/infra/index.js +102 -0
- package/dist/cli/infra/move.d.ts +15 -0
- package/dist/cli/infra/move.js +123 -0
- package/dist/cli/infra/transfer.d.ts +15 -0
- package/dist/cli/infra/transfer.js +280 -0
- package/dist/cli/jobs/api.d.ts +69 -0
- package/dist/cli/jobs/api.js +121 -0
- package/dist/cli/jobs/index.d.ts +5 -0
- package/dist/cli/jobs/index.js +140 -0
- package/dist/cli/lakeshore/index.d.ts +98 -0
- package/dist/cli/lakeshore/index.js +502 -0
- package/dist/cli/launch/index.d.ts +43 -0
- package/dist/cli/launch/index.js +270 -0
- package/dist/cli/layout/index.d.ts +2 -0
- package/dist/cli/layout/index.js +44 -0
- package/dist/cli/layout/transport.d.ts +12 -0
- package/dist/cli/layout/transport.js +70 -0
- package/dist/cli/library/add.d.ts +60 -0
- package/dist/cli/library/add.js +348 -0
- package/dist/cli/library/cache.d.ts +26 -0
- package/dist/cli/library/cache.js +88 -0
- package/dist/cli/library/config.d.ts +75 -0
- package/dist/cli/library/config.js +198 -0
- package/dist/cli/library/digest.d.ts +5 -0
- package/dist/cli/library/digest.js +19 -0
- package/dist/cli/library/discover.d.ts +87 -0
- package/dist/cli/library/discover.js +534 -0
- package/dist/cli/library/freshness.d.ts +35 -0
- package/dist/cli/library/freshness.js +109 -0
- package/dist/cli/library/generation.d.ts +35 -0
- package/dist/cli/library/generation.js +211 -0
- package/dist/cli/library/index.d.ts +2 -0
- package/dist/cli/library/index.js +36 -0
- package/dist/cli/library/info.d.ts +69 -0
- package/dist/cli/library/info.js +311 -0
- package/dist/cli/library/list.d.ts +33 -0
- package/dist/cli/library/list.js +86 -0
- package/dist/cli/library/manifest.d.ts +81 -0
- package/dist/cli/library/manifest.js +200 -0
- package/dist/cli/library/manifestCache.d.ts +45 -0
- package/dist/cli/library/manifestCache.js +169 -0
- package/dist/cli/library/pull.d.ts +30 -0
- package/dist/cli/library/pull.js +438 -0
- package/dist/cli/library/push.d.ts +72 -0
- package/dist/cli/library/push.js +642 -0
- package/dist/cli/library/rm.d.ts +31 -0
- package/dist/cli/library/rm.js +200 -0
- package/dist/cli/library/search.d.ts +18 -0
- package/dist/cli/library/search.js +181 -0
- package/dist/cli/library/stat.d.ts +15 -0
- package/dist/cli/library/stat.js +127 -0
- package/dist/cli/library/tools.d.ts +104 -0
- package/dist/cli/library/tools.js +163 -0
- package/dist/cli/library/wire.d.ts +47 -0
- package/dist/cli/library/wire.js +120 -0
- package/dist/cli/list/index.d.ts +26 -0
- package/dist/cli/list/index.js +256 -0
- package/dist/cli/notes/character-plan.d.ts +22 -0
- package/dist/cli/notes/character-plan.js +232 -0
- package/dist/cli/notes/document.d.ts +73 -0
- package/dist/cli/notes/document.js +306 -0
- package/dist/cli/notes/edit-commands.d.ts +106 -0
- package/dist/cli/notes/edit-commands.js +623 -0
- package/dist/cli/notes/editing.d.ts +81 -0
- package/dist/cli/notes/editing.js +305 -0
- package/dist/cli/notes/events.d.ts +36 -0
- package/dist/cli/notes/events.js +54 -0
- package/dist/cli/notes/files-commands.d.ts +120 -0
- package/dist/cli/notes/files-commands.js +554 -0
- package/dist/cli/notes/html-read.d.ts +9 -0
- package/dist/cli/notes/html-read.js +90 -0
- package/dist/cli/notes/html.d.ts +73 -0
- package/dist/cli/notes/html.js +381 -0
- package/dist/cli/notes/index.d.ts +123 -0
- package/dist/cli/notes/index.js +1303 -0
- package/dist/cli/notes/linger.d.ts +59 -0
- package/dist/cli/notes/linger.js +339 -0
- package/dist/cli/notes/media-commands.d.ts +5 -0
- package/dist/cli/notes/media-commands.js +51 -0
- package/dist/cli/notes/move-command.d.ts +83 -0
- package/dist/cli/notes/move-command.js +259 -0
- package/dist/cli/notes/rm-command.d.ts +22 -0
- package/dist/cli/notes/rm-command.js +110 -0
- package/dist/cli/notes/select-command.d.ts +12 -0
- package/dist/cli/notes/select-command.js +84 -0
- package/dist/cli/notes/suggest-diff.d.ts +56 -0
- package/dist/cli/notes/suggest-diff.js +311 -0
- package/dist/cli/notes/toc.d.ts +38 -0
- package/dist/cli/notes/toc.js +144 -0
- package/dist/cli/notes/transfer-command.d.ts +6 -0
- package/dist/cli/notes/transfer-command.js +9 -0
- package/dist/cli/notes/version-commands.d.ts +19 -0
- package/dist/cli/notes/version-commands.js +178 -0
- package/dist/cli/nymph/index.d.ts +74 -0
- package/dist/cli/nymph/index.js +349 -0
- package/dist/cli/org/index.d.ts +34 -0
- package/dist/cli/org/index.js +341 -0
- package/dist/cli/ownership/index.d.ts +12 -0
- package/dist/cli/ownership/index.js +122 -0
- package/dist/cli/ownership/metadata-transfer.d.ts +20 -0
- package/dist/cli/ownership/metadata-transfer.js +159 -0
- package/dist/cli/page/index.d.ts +58 -0
- package/dist/cli/page/index.js +387 -0
- package/dist/cli/pipeline/index.d.ts +69 -0
- package/dist/cli/pipeline/index.js +604 -0
- package/dist/cli/progress.d.ts +60 -0
- package/dist/cli/progress.js +276 -0
- package/dist/cli/project/attachments.d.ts +10 -0
- package/dist/cli/project/attachments.js +39 -0
- package/dist/cli/project/grants.d.ts +10 -0
- package/dist/cli/project/grants.js +39 -0
- package/dist/cli/project/index.d.ts +8 -0
- package/dist/cli/project/index.js +92 -0
- package/dist/cli/project/move.d.ts +57 -0
- package/dist/cli/project/move.js +242 -0
- package/dist/cli/project/output.d.ts +2 -0
- package/dist/cli/project/output.js +29 -0
- package/dist/cli/project/stream.d.ts +55 -0
- package/dist/cli/project/stream.js +207 -0
- package/dist/cli/project/transfer-preview.d.ts +8 -0
- package/dist/cli/project/transfer-preview.js +10 -0
- package/dist/cli/prompt.d.ts +1 -0
- package/dist/cli/prompt.js +17 -0
- package/dist/cli/provider/dreamdir.d.ts +52 -0
- package/dist/cli/provider/dreamdir.js +138 -0
- package/dist/cli/provider/index.d.ts +4 -0
- package/dist/cli/provider/index.js +419 -0
- package/dist/cli/provider/jump-worker.d.ts +9 -0
- package/dist/cli/provider/jump-worker.js +141 -0
- package/dist/cli/provider/lifecycle.d.ts +149 -0
- package/dist/cli/provider/lifecycle.js +1390 -0
- package/dist/cli/provider/machine.d.ts +17 -0
- package/dist/cli/provider/machine.js +116 -0
- package/dist/cli/provider/ssh.d.ts +105 -0
- package/dist/cli/provider/ssh.js +305 -0
- package/dist/cli/provider/terraform.d.ts +140 -0
- package/dist/cli/provider/terraform.js +288 -0
- package/dist/cli/providers/index.d.ts +18 -0
- package/dist/cli/providers/index.js +422 -0
- package/dist/cli/python.d.ts +61 -0
- package/dist/cli/python.js +255 -0
- package/dist/cli/queues/index.d.ts +33 -0
- package/dist/cli/queues/index.js +248 -0
- package/dist/cli/queues/slurm.d.ts +10 -0
- package/dist/cli/queues/slurm.js +134 -0
- package/dist/cli/resources.d.ts +72 -0
- package/dist/cli/resources.js +137 -0
- package/dist/cli/run/index.d.ts +15 -0
- package/dist/cli/run/index.js +163 -0
- package/dist/cli/run/input.d.ts +34 -0
- package/dist/cli/run/input.js +135 -0
- package/dist/cli/run/recovery.d.ts +2 -0
- package/dist/cli/run/recovery.js +18 -0
- package/dist/cli/run/setup.d.ts +3 -0
- package/dist/cli/run/setup.js +62 -0
- package/dist/cli/runconfig/index.d.ts +12 -0
- package/dist/cli/runconfig/index.js +130 -0
- package/dist/cli/runnable/index.d.ts +35 -0
- package/dist/cli/runnable/index.js +575 -0
- package/dist/cli/runnable/path.d.ts +115 -0
- package/dist/cli/runnable/path.js +288 -0
- package/dist/cli/runnable/run.d.ts +91 -0
- package/dist/cli/runnable/run.js +239 -0
- package/dist/cli/runnable/upload.d.ts +43 -0
- package/dist/cli/runnable/upload.js +342 -0
- package/dist/cli/runnable/worker.d.ts +1 -0
- package/dist/cli/runnable/worker.js +44 -0
- package/dist/cli/schemas/workflow-spec.schema.json +335 -0
- package/dist/cli/self-update/index.d.ts +5 -0
- package/dist/cli/self-update/index.js +107 -0
- package/dist/cli/self-update/install.d.ts +60 -0
- package/dist/cli/self-update/install.js +428 -0
- package/dist/cli/self-update/paths.d.ts +40 -0
- package/dist/cli/self-update/paths.js +87 -0
- package/dist/cli/self-update/releases.d.ts +41 -0
- package/dist/cli/self-update/releases.js +153 -0
- package/dist/cli/self-update/settings.d.ts +16 -0
- package/dist/cli/self-update/settings.js +68 -0
- package/dist/cli/self-update/update.d.ts +18 -0
- package/dist/cli/self-update/update.js +241 -0
- package/dist/cli/service-accounts/index.d.ts +3 -0
- package/dist/cli/service-accounts/index.js +149 -0
- package/dist/cli/session-affiliation.d.ts +26 -0
- package/dist/cli/session-affiliation.js +135 -0
- package/dist/cli/sessions/affiliation.d.ts +8 -0
- package/dist/cli/sessions/affiliation.js +66 -0
- package/dist/cli/sessions/api.d.ts +55 -0
- package/dist/cli/sessions/api.js +88 -0
- package/dist/cli/sessions/control.d.ts +6 -0
- package/dist/cli/sessions/control.js +159 -0
- package/dist/cli/sessions/conversation.d.ts +15 -0
- package/dist/cli/sessions/conversation.js +118 -0
- package/dist/cli/sessions/index.d.ts +2 -0
- package/dist/cli/sessions/index.js +209 -0
- package/dist/cli/sessions/managed.d.ts +39 -0
- package/dist/cli/sessions/managed.js +63 -0
- package/dist/cli/sessions/redaction.d.ts +2 -0
- package/dist/cli/sessions/redaction.js +11 -0
- package/dist/cli/sessions/runner/exec.d.ts +108 -0
- package/dist/cli/sessions/runner/exec.js +335 -0
- package/dist/cli/sessions/runner/journal.d.ts +26 -0
- package/dist/cli/sessions/runner/journal.js +49 -0
- package/dist/cli/sessions/runner/native.d.ts +48 -0
- package/dist/cli/sessions/runner/native.js +170 -0
- package/dist/cli/sessions/runner/pod.d.ts +30 -0
- package/dist/cli/sessions/runner/pod.js +129 -0
- package/dist/cli/sessions/runner/serve.d.ts +85 -0
- package/dist/cli/sessions/runner/serve.js +558 -0
- package/dist/cli/sessions/sync.d.ts +47 -0
- package/dist/cli/sessions/sync.js +80 -0
- package/dist/cli/sessions/transport.d.ts +14 -0
- package/dist/cli/sessions/transport.js +116 -0
- package/dist/cli/share.d.ts +15 -0
- package/dist/cli/share.js +139 -0
- package/dist/cli/skill/catalog.d.ts +141 -0
- package/dist/cli/skill/catalog.js +442 -0
- package/dist/cli/skill/files.d.ts +89 -0
- package/dist/cli/skill/files.js +264 -0
- package/dist/cli/skill/index.d.ts +268 -0
- package/dist/cli/skill/index.js +1216 -0
- package/dist/cli/skill/manifest.d.ts +30 -0
- package/dist/cli/skill/manifest.js +101 -0
- package/dist/cli/skill/prefs.d.ts +9 -0
- package/dist/cli/skill/prefs.js +32 -0
- package/dist/cli/skill/reminders.d.ts +15 -0
- package/dist/cli/skill/reminders.js +105 -0
- package/dist/cli/skill/tar.d.ts +17 -0
- package/dist/cli/skill/tar.js +195 -0
- package/dist/cli/snapshot/index.d.ts +24 -0
- package/dist/cli/snapshot/index.js +146 -0
- package/dist/cli/source/access.d.ts +45 -0
- package/dist/cli/source/access.js +563 -0
- package/dist/cli/source/control.d.ts +103 -0
- package/dist/cli/source/control.js +546 -0
- package/dist/cli/source/delete.d.ts +89 -0
- package/dist/cli/source/delete.js +463 -0
- package/dist/cli/source/index.d.ts +288 -0
- package/dist/cli/source/index.js +1348 -0
- package/dist/cli/source/share.d.ts +65 -0
- package/dist/cli/source/share.js +530 -0
- package/dist/cli/source/upload.d.ts +62 -0
- package/dist/cli/source/upload.js +258 -0
- package/dist/cli/source/write.d.ts +77 -0
- package/dist/cli/source/write.js +335 -0
- package/dist/cli/spawn.d.ts +28 -0
- package/dist/cli/spawn.js +81 -0
- package/dist/cli/target.d.ts +22 -0
- package/dist/cli/target.js +85 -0
- package/dist/cli/tasks/index.d.ts +38 -0
- package/dist/cli/tasks/index.js +365 -0
- package/dist/cli/team/index.d.ts +37 -0
- package/dist/cli/team/index.js +407 -0
- package/dist/cli/telemetry.d.ts +23 -0
- package/dist/cli/telemetry.js +262 -0
- package/dist/cli/telemetryJournal.d.ts +26 -0
- package/dist/cli/telemetryJournal.js +104 -0
- package/dist/cli/update/index.d.ts +21 -0
- package/dist/cli/update/index.js +284 -0
- package/dist/cli/upload/index.d.ts +11 -0
- package/dist/cli/upload/index.js +261 -0
- package/dist/cli/upload/kinds.d.ts +10 -0
- package/dist/cli/upload/kinds.js +85 -0
- package/dist/cli/upload/multipart.d.ts +21 -0
- package/dist/cli/upload/multipart.js +248 -0
- package/dist/cli/vault/affected-preview.d.ts +15 -0
- package/dist/cli/vault/affected-preview.js +38 -0
- package/dist/cli/vault/cloud.d.ts +55 -0
- package/dist/cli/vault/cloud.js +287 -0
- package/dist/cli/vault/format.d.ts +18 -0
- package/dist/cli/vault/format.js +104 -0
- package/dist/cli/vault/hostCredentials.d.ts +21 -0
- package/dist/cli/vault/hostCredentials.js +71 -0
- package/dist/cli/vault/hostSupersessions.d.ts +18 -0
- package/dist/cli/vault/hostSupersessions.js +68 -0
- package/dist/cli/vault/import.d.ts +3 -0
- package/dist/cli/vault/import.js +79 -0
- package/dist/cli/vault/index.d.ts +14 -0
- package/dist/cli/vault/index.js +225 -0
- package/dist/cli/vault/keys.d.ts +5 -0
- package/dist/cli/vault/keys.js +165 -0
- package/dist/cli/vault/kms.d.ts +6 -0
- package/dist/cli/vault/kms.js +169 -0
- package/dist/cli/vault/list.d.ts +13 -0
- package/dist/cli/vault/list.js +60 -0
- package/dist/cli/vault/listView.d.ts +21 -0
- package/dist/cli/vault/listView.js +123 -0
- package/dist/cli/vault/managementMetadata.d.ts +2 -0
- package/dist/cli/vault/managementMetadata.js +23 -0
- package/dist/cli/vault/mutations.d.ts +8 -0
- package/dist/cli/vault/mutations.js +151 -0
- package/dist/cli/vault/otp.d.ts +6 -0
- package/dist/cli/vault/otp.js +62 -0
- package/dist/cli/vault/otpIntent.d.ts +23 -0
- package/dist/cli/vault/otpIntent.js +76 -0
- package/dist/cli/vault/passImport.d.ts +25 -0
- package/dist/cli/vault/passImport.js +129 -0
- package/dist/cli/vault/passOtp.d.ts +51 -0
- package/dist/cli/vault/passOtp.js +101 -0
- package/dist/cli/vault/passStore.d.ts +26 -0
- package/dist/cli/vault/passStore.js +134 -0
- package/dist/cli/vault/passwordCommand.d.ts +39 -0
- package/dist/cli/vault/passwordCommand.js +101 -0
- package/dist/cli/vault/passwordProbe.d.ts +27 -0
- package/dist/cli/vault/passwordProbe.js +282 -0
- package/dist/cli/vault/passwordRotation.d.ts +9 -0
- package/dist/cli/vault/passwordRotation.js +273 -0
- package/dist/cli/vault/rotationApi.d.ts +13 -0
- package/dist/cli/vault/rotationApi.js +58 -0
- package/dist/cli/vault/rotationCommand.d.ts +2 -0
- package/dist/cli/vault/rotationCommand.js +75 -0
- package/dist/cli/vault/rotationEngine.d.ts +19 -0
- package/dist/cli/vault/rotationEngine.js +65 -0
- package/dist/cli/vault/rotationHelperSource.d.ts +2 -0
- package/dist/cli/vault/rotationHelperSource.js +3 -0
- package/dist/cli/vault/rotationInput.d.ts +11 -0
- package/dist/cli/vault/rotationInput.js +48 -0
- package/dist/cli/vault/rotationJournal.d.ts +16 -0
- package/dist/cli/vault/rotationJournal.js +183 -0
- package/dist/cli/vault/rotationKeys.d.ts +4 -0
- package/dist/cli/vault/rotationKeys.js +48 -0
- package/dist/cli/vault/rotationPrepare.d.ts +17 -0
- package/dist/cli/vault/rotationPrepare.js +108 -0
- package/dist/cli/vault/rotationRemote.d.ts +33 -0
- package/dist/cli/vault/rotationRemote.js +156 -0
- package/dist/cli/vault/rotationState.d.ts +42 -0
- package/dist/cli/vault/rotationState.js +115 -0
- package/dist/cli/vault/rotationTransport.d.ts +18 -0
- package/dist/cli/vault/rotationTransport.js +71 -0
- package/dist/cli/vault/sshSource.d.ts +18 -0
- package/dist/cli/vault/sshSource.js +196 -0
- package/dist/cli/vault/sshSync.d.ts +17 -0
- package/dist/cli/vault/sshSync.js +224 -0
- package/dist/cli/vault/sshTransfer.d.ts +22 -0
- package/dist/cli/vault/sshTransfer.js +140 -0
- package/dist/cli/vault/terraformState.d.ts +66 -0
- package/dist/cli/vault/terraformState.js +252 -0
- package/dist/cli/vault/terraformStateCommand.d.ts +2 -0
- package/dist/cli/vault/terraformStateCommand.js +61 -0
- package/dist/cli/vault/tree.d.ts +43 -0
- package/dist/cli/vault/tree.js +292 -0
- package/dist/cli/version.d.ts +1 -0
- package/dist/cli/version.js +9 -0
- package/dist/cli/workflow/index.d.ts +76 -0
- package/dist/cli/workflow/index.js +826 -0
- package/dist/cli/workflow/validate.d.ts +19 -0
- package/dist/cli/workflow/validate.js +353 -0
- package/dist/package.json +1 -0
- package/package.json +28 -10
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
// The OAuth half of `dreamlake connection …`.
|
|
2
|
+
//
|
|
3
|
+
// The division of labour is not negotiable and is worth stating plainly,
|
|
4
|
+
// because getting it wrong is how a CLI ends up holding secrets it has no
|
|
5
|
+
// business holding:
|
|
6
|
+
//
|
|
7
|
+
// The server owns the callback endpoint, PKCE, the token exchange and the
|
|
8
|
+
// Secret Store. It is the only party that ever sees an authorization code or
|
|
9
|
+
// an access token.
|
|
10
|
+
//
|
|
11
|
+
// This CLI begins an operation, shows the user a URL, opens a browser, and
|
|
12
|
+
// asks the server what happened. That is the whole of it. There is no local
|
|
13
|
+
// listener, no `redirect_uri` pointing at localhost, no code parsing and no
|
|
14
|
+
// credential broker. A CLI that ran its own callback would be a second
|
|
15
|
+
// implementation of the most security-sensitive part of the flow.
|
|
16
|
+
import { spawn } from "node:child_process";
|
|
17
|
+
import { setTimeout as sleep } from "node:timers/promises";
|
|
18
|
+
import { requestJson } from "../client.js";
|
|
19
|
+
import { emitJson, fail, ok } from "../helpers.js";
|
|
20
|
+
import { parseBegin, parseOAuthStatus } from "./dto.js";
|
|
21
|
+
import { ctx, explain, fetchConnection, seg, strictArgs } from "./index.js";
|
|
22
|
+
/*
|
|
23
|
+
* Where the browser lands once the provider redirects back.
|
|
24
|
+
*
|
|
25
|
+
* A fixed, site-relative path, and deliberately not a flag. The server resolves
|
|
26
|
+
* it against the configured Web origin and rejects anything that could escape
|
|
27
|
+
* that origin, but the reason it is not exposed here is simpler: a CLI flag
|
|
28
|
+
* that sets a post-authorization landing page is an open redirect with a
|
|
29
|
+
* friendly name, and no caller of this command needs one.
|
|
30
|
+
*/
|
|
31
|
+
const RETURN_TO = "/settings/connections";
|
|
32
|
+
/**
|
|
33
|
+
* The follow-up command, as something the reader can paste.
|
|
34
|
+
*
|
|
35
|
+
* It carries the RESOLVED namespace rather than whatever flag the caller
|
|
36
|
+
* typed. An operation id is scoped to the namespace that issued it, and the
|
|
37
|
+
* active login is not necessarily that namespace — after `--namespace other`,
|
|
38
|
+
* a bare `oauth status <id>` looks the operation up somewhere it does not
|
|
39
|
+
* exist and reports it as missing, which is indistinguishable from a failed
|
|
40
|
+
* authorization.
|
|
41
|
+
*/
|
|
42
|
+
function statusCommand(c, operationId) {
|
|
43
|
+
return `dreamlake connection oauth status ${operationId} --namespace ${c.ns}`;
|
|
44
|
+
}
|
|
45
|
+
const POLL_INTERVAL_MS = 2000;
|
|
46
|
+
const DEFAULT_TIMEOUT_MS = 5 * 60 * 1000;
|
|
47
|
+
function operationsPath(c) {
|
|
48
|
+
return `/namespaces/${seg(c.ns)}/connection-oauth-operations`;
|
|
49
|
+
}
|
|
50
|
+
/** Open a URL in the user's browser, best effort. Never fatal. */
|
|
51
|
+
function openBrowser(url) {
|
|
52
|
+
const cmd = process.platform === "darwin" ? "open" : process.platform === "win32" ? "start" : "xdg-open";
|
|
53
|
+
try {
|
|
54
|
+
const child = spawn(cmd, [url], { stdio: "ignore", detached: true });
|
|
55
|
+
child.on("error", () => {
|
|
56
|
+
/*
|
|
57
|
+
* Silent on purpose. The URL has already been printed, so a machine with
|
|
58
|
+
* no browser opener is not a failed command — the user finishes the flow
|
|
59
|
+
* by pasting it. Turning this into an error would break exactly the
|
|
60
|
+
* headless case `--no-browser` exists to serve.
|
|
61
|
+
*/
|
|
62
|
+
});
|
|
63
|
+
child.unref();
|
|
64
|
+
}
|
|
65
|
+
catch {
|
|
66
|
+
/* same */
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
// ─── begin ────────────────────────────────────────────────────────────────────
|
|
70
|
+
async function begin(c, body) {
|
|
71
|
+
try {
|
|
72
|
+
const res = await requestJson(c.remote, operationsPath(c), {
|
|
73
|
+
method: "POST",
|
|
74
|
+
token: c.token,
|
|
75
|
+
json: { ...body, returnTo: RETURN_TO },
|
|
76
|
+
});
|
|
77
|
+
return parseBegin(res, "begin");
|
|
78
|
+
}
|
|
79
|
+
catch (err) {
|
|
80
|
+
/*
|
|
81
|
+
* No idempotency key, and none invented.
|
|
82
|
+
*
|
|
83
|
+
* This route does not run under the server's idempotency wrapper — there is
|
|
84
|
+
* no key to repeat and no stored result to return. Telling the caller to
|
|
85
|
+
* "retry with the same key" would be describing a mechanism that does not
|
|
86
|
+
* exist. What is true: a retry starts a NEW authorization, and an operation
|
|
87
|
+
* nobody completes expires on its own without creating anything, because
|
|
88
|
+
* nothing is committed until the browser flow finishes.
|
|
89
|
+
*/
|
|
90
|
+
if (!(err instanceof Error) || !("status" in err)) {
|
|
91
|
+
fail("begin: the request was sent but the response never arrived.\n" +
|
|
92
|
+
" This endpoint has no idempotency key, so there is nothing to repeat\n" +
|
|
93
|
+
" safely. Running the command again starts a new authorization; an\n" +
|
|
94
|
+
" operation nobody completes expires on its own and creates nothing.\n" +
|
|
95
|
+
" Check what exists first: dreamlake connection list\n" +
|
|
96
|
+
` (${err.message})`);
|
|
97
|
+
return null;
|
|
98
|
+
}
|
|
99
|
+
fail(explain(err));
|
|
100
|
+
return null;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
// ─── status ───────────────────────────────────────────────────────────────────
|
|
104
|
+
async function readStatus(c, operationId) {
|
|
105
|
+
const res = await requestJson(c.remote, `${operationsPath(c)}/${seg(operationId)}`, { token: c.token });
|
|
106
|
+
return parseOAuthStatus(res, "status");
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Render one operation state, in whichever mode the caller asked for.
|
|
110
|
+
*
|
|
111
|
+
* Both modes go through the SAME already-validated union: `parseOAuthStatus`
|
|
112
|
+
* refuses a `succeeded` without a Connection and a `failed` without an error
|
|
113
|
+
* before either branch runs. An earlier version emitted the raw response under
|
|
114
|
+
* `--json` and only validated on the human path, which meant `--json` was the
|
|
115
|
+
* one mode where an empty success could be printed as a success — the mode a
|
|
116
|
+
* script reads.
|
|
117
|
+
*/
|
|
118
|
+
function renderStatus(operationId, s, json) {
|
|
119
|
+
if (json) {
|
|
120
|
+
emitJson({ operationId, ...s });
|
|
121
|
+
return s.state === "failed" ? 1 : 0;
|
|
122
|
+
}
|
|
123
|
+
if (s.state === "succeeded") {
|
|
124
|
+
const one = s.connection;
|
|
125
|
+
ok(`Authorized ${one.label} (${one.id}) — ${one.lifecycle}, revision ${one.settingsRevision}`);
|
|
126
|
+
return 0;
|
|
127
|
+
}
|
|
128
|
+
if (s.state === "failed") {
|
|
129
|
+
fail(`authorization failed: ${s.error.code} — ${s.error.message} [${s.error.requestId}]`);
|
|
130
|
+
return 1;
|
|
131
|
+
}
|
|
132
|
+
// `pending` and `exchanging` are both "not finished". Neither is an error,
|
|
133
|
+
// and neither is a result — saying "done" here would be a lie a script acts on.
|
|
134
|
+
process.stdout.write(` state: ${s.state} — not finished yet\n`);
|
|
135
|
+
return 0;
|
|
136
|
+
}
|
|
137
|
+
export async function runOAuthStatus(operationId, opts) {
|
|
138
|
+
const c = await ctx(opts.namespace);
|
|
139
|
+
if (!c)
|
|
140
|
+
return 1;
|
|
141
|
+
try {
|
|
142
|
+
const s = await readStatus(c, operationId);
|
|
143
|
+
if (!s)
|
|
144
|
+
return 1;
|
|
145
|
+
return renderStatus(operationId, s, opts.json === true);
|
|
146
|
+
}
|
|
147
|
+
catch (err) {
|
|
148
|
+
fail(explain(err));
|
|
149
|
+
return 1;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
// ─── the shared begin → open → wait flow ─────────────────────────────────────
|
|
153
|
+
async function flow(c, body, opts) {
|
|
154
|
+
const started = await begin(c, body);
|
|
155
|
+
if (!started)
|
|
156
|
+
return 1;
|
|
157
|
+
const json = opts.json === true;
|
|
158
|
+
const waiting = opts.wait !== false;
|
|
159
|
+
/*
|
|
160
|
+
* The operation id and the URL come out BEFORE the browser opens and before
|
|
161
|
+
* any waiting. If this process is killed at any point after here, the user
|
|
162
|
+
* still has both, and `connection oauth status <id>` still works. Losing the
|
|
163
|
+
* id to a Ctrl-C would strand an authorization nobody can look up.
|
|
164
|
+
*
|
|
165
|
+
* Under `--json` they go to STDERR whenever the command is going to wait,
|
|
166
|
+
* because stdout has to stay one parseable document. Writing the begin object
|
|
167
|
+
* and then the final object would leave two JSON values concatenated, and
|
|
168
|
+
* `JSON.parse` does not fail on the second one — it fails on the whole
|
|
169
|
+
* stream, so a caller loses the result as well as the handle. Nothing is
|
|
170
|
+
* lost by moving them: the id is on the terminal, and it is in the final
|
|
171
|
+
* object too.
|
|
172
|
+
*/
|
|
173
|
+
if (json && !waiting) {
|
|
174
|
+
emitJson({
|
|
175
|
+
operationId: started.operationId,
|
|
176
|
+
authorizationUrl: started.authorizationUrl,
|
|
177
|
+
expiresAt: started.expiresAt,
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
else {
|
|
181
|
+
const write = json
|
|
182
|
+
? (line) => process.stderr.write(line)
|
|
183
|
+
: (line) => process.stdout.write(line);
|
|
184
|
+
write(` operation: ${started.operationId}\n`);
|
|
185
|
+
write(` authorize: ${started.authorizationUrl}\n`);
|
|
186
|
+
write(` expires: ${started.expiresAt}\n`);
|
|
187
|
+
write(`\n If the browser does not open, paste that URL into one.\n` +
|
|
188
|
+
` Then: ${statusCommand(c, started.operationId)}\n`);
|
|
189
|
+
}
|
|
190
|
+
if (opts.browser !== false)
|
|
191
|
+
openBrowser(started.authorizationUrl);
|
|
192
|
+
if (!waiting)
|
|
193
|
+
return 0;
|
|
194
|
+
const timeoutMs = opts.timeoutMs ?? DEFAULT_TIMEOUT_MS;
|
|
195
|
+
const deadline = Date.now() + timeoutMs;
|
|
196
|
+
for (;;) {
|
|
197
|
+
await sleep(POLL_INTERVAL_MS);
|
|
198
|
+
let s;
|
|
199
|
+
try {
|
|
200
|
+
s = await readStatus(c, started.operationId);
|
|
201
|
+
}
|
|
202
|
+
catch (err) {
|
|
203
|
+
fail(explain(err));
|
|
204
|
+
return 1;
|
|
205
|
+
}
|
|
206
|
+
if (!s)
|
|
207
|
+
return 1;
|
|
208
|
+
if (s.state === "succeeded" || s.state === "failed") {
|
|
209
|
+
return renderStatus(started.operationId, s, json);
|
|
210
|
+
}
|
|
211
|
+
if (Date.now() >= deadline) {
|
|
212
|
+
/*
|
|
213
|
+
* A deadline, not a hang. The command gives up watching; the operation
|
|
214
|
+
* itself is untouched and may still complete, so the id is repeated
|
|
215
|
+
* rather than the whole thing being reported as a failure.
|
|
216
|
+
*
|
|
217
|
+
* Under --json this is the single document stdout gets: a script has to
|
|
218
|
+
* be able to tell "we stopped watching" from "it failed", and both exit
|
|
219
|
+
* 1. `waitTimedOut` is that distinction, and `state` is the last thing
|
|
220
|
+
* the server actually said.
|
|
221
|
+
*/
|
|
222
|
+
if (json) {
|
|
223
|
+
emitJson({ operationId: started.operationId, state: s.state, waitTimedOut: true });
|
|
224
|
+
return 1;
|
|
225
|
+
}
|
|
226
|
+
fail(`still ${s.state} after ${Math.round(timeoutMs / 1000)}s — no longer waiting.\n` +
|
|
227
|
+
` The authorization may still complete. Check it with:\n` +
|
|
228
|
+
` ${statusCommand(c, started.operationId)}`);
|
|
229
|
+
return 1;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
// ─── commands ─────────────────────────────────────────────────────────────────
|
|
234
|
+
export async function runOAuthCreate(opts) {
|
|
235
|
+
const c = await ctx(opts.namespace);
|
|
236
|
+
if (!c)
|
|
237
|
+
return 1;
|
|
238
|
+
return flow(c, { intent: "create", connectorKind: opts.connector, label: opts.label }, opts);
|
|
239
|
+
}
|
|
240
|
+
export async function runOAuthReconnect(id, opts) {
|
|
241
|
+
const c = await ctx(opts.namespace);
|
|
242
|
+
if (!c)
|
|
243
|
+
return 1;
|
|
244
|
+
/*
|
|
245
|
+
* Reconnect is a CAS write like every other lifecycle change, so the current
|
|
246
|
+
* revision is read and validated before it is handed back — an unusable one
|
|
247
|
+
* stops the command rather than being refused later as a malformed request.
|
|
248
|
+
*/
|
|
249
|
+
let one;
|
|
250
|
+
try {
|
|
251
|
+
one = await fetchConnection(c, id);
|
|
252
|
+
}
|
|
253
|
+
catch (err) {
|
|
254
|
+
fail(explain(err));
|
|
255
|
+
return 1;
|
|
256
|
+
}
|
|
257
|
+
if (!one)
|
|
258
|
+
return 1;
|
|
259
|
+
return flow(c, {
|
|
260
|
+
intent: "reconnect",
|
|
261
|
+
connectorKind: opts.connector,
|
|
262
|
+
connectionId: id,
|
|
263
|
+
expectedSettingsRevision: one.settingsRevision,
|
|
264
|
+
}, opts);
|
|
265
|
+
}
|
|
266
|
+
// ─── registration ─────────────────────────────────────────────────────────────
|
|
267
|
+
export function registerConnectionOAuthCommands(connection) {
|
|
268
|
+
const oauth = connection
|
|
269
|
+
.command("oauth")
|
|
270
|
+
.description("authorize a connection through a provider's browser flow");
|
|
271
|
+
const shared = (cmd) => cmd
|
|
272
|
+
.option("--no-browser", "print the URL instead of opening a browser")
|
|
273
|
+
.option("--no-wait", "print the operation id and exit without watching")
|
|
274
|
+
.option("--namespace <slug>", "namespace slug (default: active login)")
|
|
275
|
+
.option("--json", "emit JSON");
|
|
276
|
+
shared(strictArgs(oauth.command("create"))
|
|
277
|
+
.description("create a connection through an OAuth authorization")
|
|
278
|
+
.requiredOption("--connector <kind>", "connector kind (the server defines these)")
|
|
279
|
+
.requiredOption("--label <text>", "human label")).action(async (opts) => process.exit(await runOAuthCreate(opts)));
|
|
280
|
+
shared(strictArgs(oauth.command("reconnect"))
|
|
281
|
+
.description("re-authorize an existing connection")
|
|
282
|
+
.argument("<id>", "connection id")
|
|
283
|
+
.requiredOption("--connector <kind>", "connector kind")).action(async (id, opts) => process.exit(await runOAuthReconnect(id, opts)));
|
|
284
|
+
strictArgs(oauth.command("status"))
|
|
285
|
+
.description("read the outcome of an authorization")
|
|
286
|
+
.argument("<operationId>", "operation id printed when the flow began")
|
|
287
|
+
.option("--namespace <slug>", "namespace slug (default: active login)")
|
|
288
|
+
.option("--json", "emit JSON")
|
|
289
|
+
.action(async (id, opts) => process.exit(await runOAuthStatus(id, opts)));
|
|
290
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { Command } from "commander";
|
|
2
|
+
export declare function runConnectionCreate(opts: {
|
|
3
|
+
label: string;
|
|
4
|
+
connector: string;
|
|
5
|
+
authKind: string;
|
|
6
|
+
credentialFile?: string;
|
|
7
|
+
credentialStdin?: boolean;
|
|
8
|
+
/** Commander's `--no-credential`: `false` when the flag was passed. */
|
|
9
|
+
credential?: boolean;
|
|
10
|
+
privateConfigFile?: string;
|
|
11
|
+
namespace?: string;
|
|
12
|
+
idempotencyKey?: string;
|
|
13
|
+
json?: boolean;
|
|
14
|
+
}): Promise<number>;
|
|
15
|
+
export declare function runConnectionRename(id: string, opts: {
|
|
16
|
+
label: string;
|
|
17
|
+
namespace?: string;
|
|
18
|
+
idempotencyKey?: string;
|
|
19
|
+
json?: boolean;
|
|
20
|
+
}): Promise<number>;
|
|
21
|
+
export declare function runConnectionCheck(id: string, opts: {
|
|
22
|
+
namespace?: string;
|
|
23
|
+
json?: boolean;
|
|
24
|
+
}): Promise<number>;
|
|
25
|
+
export declare function runConnectionReconnect(id: string, opts: {
|
|
26
|
+
credentialFile?: string;
|
|
27
|
+
credentialStdin?: boolean;
|
|
28
|
+
privateConfigFile?: string;
|
|
29
|
+
enableAfterSuccess?: boolean;
|
|
30
|
+
namespace?: string;
|
|
31
|
+
idempotencyKey?: string;
|
|
32
|
+
json?: boolean;
|
|
33
|
+
}): Promise<number>;
|
|
34
|
+
declare function lifecycle(id: string, action: "enable" | "disable", opts: {
|
|
35
|
+
namespace?: string;
|
|
36
|
+
idempotencyKey?: string;
|
|
37
|
+
json?: boolean;
|
|
38
|
+
}): Promise<number>;
|
|
39
|
+
export declare const runConnectionEnable: (id: string, o: Parameters<typeof lifecycle>[2]) => Promise<number>;
|
|
40
|
+
export declare const runConnectionDisable: (id: string, o: Parameters<typeof lifecycle>[2]) => Promise<number>;
|
|
41
|
+
export declare function runConnectionDelete(id: string, opts: {
|
|
42
|
+
namespace?: string;
|
|
43
|
+
idempotencyKey?: string;
|
|
44
|
+
json?: boolean;
|
|
45
|
+
}): Promise<number>;
|
|
46
|
+
export declare function registerConnectionWriteCommands(connection: Command): void;
|
|
47
|
+
export {};
|