@intentic/sandbox-contract 1.344.0 → 1.346.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/README.md +27 -9
- package/dist/contracts/accounts.contract.d.ts +24 -80
- package/dist/contracts/accounts.contract.d.ts.map +1 -1
- package/dist/contracts/agent.contract.d.ts +247 -8
- package/dist/contracts/agent.contract.d.ts.map +1 -1
- package/dist/contracts/agent.contract.js +13 -2
- package/dist/contracts/agent.contract.js.map +1 -1
- package/dist/contracts/agents.contract.d.ts +1570 -33
- package/dist/contracts/agents.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.js +47 -4
- package/dist/contracts/agents.contract.js.map +1 -1
- package/dist/contracts/device.contract.d.ts +244 -1
- package/dist/contracts/device.contract.d.ts.map +1 -1
- package/dist/contracts/device.contract.js +5 -1
- package/dist/contracts/device.contract.js.map +1 -1
- package/dist/contracts/endpoints.contract.d.ts +2 -1
- package/dist/contracts/endpoints.contract.d.ts.map +1 -1
- package/dist/contracts/endpoints.contract.js +1 -0
- package/dist/contracts/endpoints.contract.js.map +1 -1
- package/dist/contracts/providers.contract.d.ts +0 -1
- package/dist/contracts/providers.contract.d.ts.map +1 -1
- package/dist/contracts/push.contract.d.ts +11 -0
- package/dist/contracts/push.contract.d.ts.map +1 -1
- package/dist/contracts/push.contract.js +10 -1
- package/dist/contracts/push.contract.js.map +1 -1
- package/dist/contracts/runner.contract.d.ts +149 -123
- package/dist/contracts/runner.contract.d.ts.map +1 -1
- package/dist/contracts/secrets.contract.d.ts +169 -0
- package/dist/contracts/secrets.contract.d.ts.map +1 -1
- package/dist/contracts/secrets.contract.js +35 -0
- package/dist/contracts/secrets.contract.js.map +1 -1
- package/dist/contracts/sessions.contract.d.ts +2 -0
- package/dist/contracts/sessions.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.d.ts +37 -0
- package/dist/contracts/settings.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.d.ts +235 -31
- package/dist/contracts/system.contract.d.ts.map +1 -1
- package/dist/contracts/translator.contract.d.ts +24 -80
- package/dist/contracts/translator.contract.d.ts.map +1 -1
- package/dist/contracts/workspace.contract.d.ts +11 -0
- package/dist/contracts/workspace.contract.d.ts.map +1 -1
- package/dist/contracts/workspace.contract.js +11 -1
- package/dist/contracts/workspace.contract.js.map +1 -1
- package/dist/events/agent-events.d.ts +60 -0
- package/dist/events/agent-events.d.ts.map +1 -1
- package/dist/events/agent-events.js +44 -38
- package/dist/events/agent-events.js.map +1 -1
- package/dist/events/agent-transcript.d.ts +727 -0
- package/dist/events/agent-transcript.d.ts.map +1 -0
- package/dist/events/agent-transcript.js +34 -0
- package/dist/events/agent-transcript.js.map +1 -0
- package/dist/events/agent-words.d.ts +5 -0
- package/dist/events/agent-words.d.ts.map +1 -1
- package/dist/events/agent-words.js +9 -0
- package/dist/events/agent-words.js.map +1 -1
- package/dist/events/failure-rows.d.ts +14 -0
- package/dist/events/failure-rows.d.ts.map +1 -0
- package/dist/events/failure-rows.js +109 -0
- package/dist/events/failure-rows.js.map +1 -0
- package/dist/events/requests.d.ts +143 -0
- package/dist/events/requests.d.ts.map +1 -1
- package/dist/events/requests.js +35 -1
- package/dist/events/requests.js.map +1 -1
- package/dist/events/sandbox-notice.d.ts +23 -0
- package/dist/events/sandbox-notice.d.ts.map +1 -1
- package/dist/events/sandbox-notice.js +2 -0
- package/dist/events/sandbox-notice.js.map +1 -1
- package/dist/events/system-events.d.ts +156 -0
- package/dist/events/system-events.d.ts.map +1 -1
- package/dist/events/system-events.js +7 -1
- package/dist/events/system-events.js.map +1 -1
- package/dist/events/transcript.d.ts +20 -720
- package/dist/events/transcript.d.ts.map +1 -1
- package/dist/events/transcript.js +17 -19
- package/dist/events/transcript.js.map +1 -1
- package/dist/ids/conversation-ids.d.ts +2 -0
- package/dist/ids/conversation-ids.d.ts.map +1 -1
- package/dist/ids/conversation-ids.js +2 -0
- package/dist/ids/conversation-ids.js.map +1 -1
- package/dist/ids/row-ids.d.ts +3 -0
- package/dist/ids/row-ids.d.ts.map +1 -0
- package/dist/ids/row-ids.js +11 -0
- package/dist/ids/row-ids.js.map +1 -0
- package/dist/index.d.ts +2296 -199
- package/dist/index.d.ts.map +1 -1
- package/dist/models/agent-lanes.d.ts.map +1 -1
- package/dist/models/agent-lanes.js +6 -7
- package/dist/models/agent-lanes.js.map +1 -1
- package/dist/models/agent-standing.d.ts +6 -19
- package/dist/models/agent-standing.d.ts.map +1 -1
- package/dist/models/agent-standing.js +14 -38
- package/dist/models/agent-standing.js.map +1 -1
- package/dist/models/model-pins.d.ts +3 -0
- package/dist/models/model-pins.d.ts.map +1 -1
- package/dist/models/model-pins.js +2 -0
- package/dist/models/model-pins.js.map +1 -1
- package/dist/models/plan-pools.d.ts +26 -4
- package/dist/models/plan-pools.d.ts.map +1 -1
- package/dist/models/plan-pools.js +159 -40
- package/dist/models/plan-pools.js.map +1 -1
- package/dist/netd/generated/wire.d.ts +5 -0
- package/dist/netd/generated/wire.d.ts.map +1 -1
- package/dist/policy/command-classes.d.ts +1 -1
- package/dist/policy/command-classes.d.ts.map +1 -1
- package/dist/policy/command-classes.js +2 -2
- package/dist/policy/command-classes.js.map +1 -1
- package/dist/policy/keyring-origins.d.ts +27 -0
- package/dist/policy/keyring-origins.d.ts.map +1 -0
- package/dist/policy/keyring-origins.js +213 -0
- package/dist/policy/keyring-origins.js.map +1 -0
- package/dist/policy/keyring-seal.d.ts +9 -0
- package/dist/policy/keyring-seal.d.ts.map +1 -1
- package/dist/policy/keyring-seal.js +18 -6
- package/dist/policy/keyring-seal.js.map +1 -1
- package/dist/policy/safety-policy.d.ts +1 -1
- package/dist/policy/safety-policy.d.ts.map +1 -1
- package/dist/policy/safety-policy.js +1 -1
- package/dist/policy/safety-policy.js.map +1 -1
- package/dist/policy/turned-away.d.ts +1 -0
- package/dist/policy/turned-away.d.ts.map +1 -1
- package/dist/policy/turned-away.js +10 -0
- package/dist/policy/turned-away.js.map +1 -1
- package/dist/protocol/doors/host-protocol.d.ts +1 -0
- package/dist/protocol/doors/host-protocol.d.ts.map +1 -1
- package/dist/protocol/doors/host-protocol.js +1 -0
- package/dist/protocol/doors/host-protocol.js.map +1 -1
- package/dist/protocol/doors/runner-protocol.d.ts +1 -0
- package/dist/protocol/doors/runner-protocol.d.ts.map +1 -1
- package/dist/protocol/doors/runner-protocol.js +1 -0
- package/dist/protocol/doors/runner-protocol.js.map +1 -1
- package/dist/protocol/doors/webext-links.d.ts +1 -0
- package/dist/protocol/doors/webext-links.d.ts.map +1 -1
- package/dist/protocol/doors/webext-links.js +1 -0
- package/dist/protocol/doors/webext-links.js.map +1 -1
- package/dist/protocol/peer-dial.d.ts +2 -0
- package/dist/protocol/peer-dial.d.ts.map +1 -1
- package/dist/protocol/peer-dial.js +62 -29
- package/dist/protocol/peer-dial.js.map +1 -1
- package/dist/protocol/raw/raw-json-routes.d.ts +179 -1
- package/dist/protocol/raw/raw-json-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-json-routes.js +5 -0
- package/dist/protocol/raw/raw-json-routes.js.map +1 -1
- package/dist/protocol/raw/raw-routes.d.ts +35 -0
- package/dist/protocol/raw/raw-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-routes.js +9 -0
- package/dist/protocol/raw/raw-routes.js.map +1 -1
- package/dist/schemas/agent-next.d.ts +21 -0
- package/dist/schemas/agent-next.d.ts.map +1 -0
- package/dist/schemas/agent-next.js +21 -0
- package/dist/schemas/agent-next.js.map +1 -0
- package/dist/schemas/agent-place.d.ts +10 -0
- package/dist/schemas/agent-place.d.ts.map +1 -0
- package/dist/schemas/agent-place.js +15 -0
- package/dist/schemas/agent-place.js.map +1 -0
- package/dist/schemas/agent-search.d.ts +45 -0
- package/dist/schemas/agent-search.d.ts.map +1 -0
- package/dist/schemas/agent-search.js +28 -0
- package/dist/schemas/agent-search.js.map +1 -0
- package/dist/schemas/agent.d.ts +120 -78
- package/dist/schemas/agent.d.ts.map +1 -1
- package/dist/schemas/agent.js +40 -49
- package/dist/schemas/agent.js.map +1 -1
- package/dist/schemas/agents-list.d.ts +54 -0
- package/dist/schemas/agents-list.d.ts.map +1 -1
- package/dist/schemas/agents.d.ts +165 -59
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/agents.js +25 -50
- package/dist/schemas/agents.js.map +1 -1
- package/dist/schemas/attach.d.ts +8 -0
- package/dist/schemas/attach.d.ts.map +1 -0
- package/dist/schemas/attach.js +14 -0
- package/dist/schemas/attach.js.map +1 -0
- package/dist/schemas/command-admission.d.ts +71 -0
- package/dist/schemas/command-admission.d.ts.map +1 -0
- package/dist/schemas/command-admission.js +27 -0
- package/dist/schemas/command-admission.js.map +1 -0
- package/dist/schemas/compose-overlay.d.ts +9 -0
- package/dist/schemas/compose-overlay.d.ts.map +1 -0
- package/dist/schemas/compose-overlay.js +11 -0
- package/dist/schemas/compose-overlay.js.map +1 -0
- package/dist/schemas/composer-drafts.d.ts +169 -0
- package/dist/schemas/composer-drafts.d.ts.map +1 -0
- package/dist/schemas/composer-drafts.js +60 -0
- package/dist/schemas/composer-drafts.js.map +1 -0
- package/dist/schemas/conversation-links.d.ts +44 -0
- package/dist/schemas/conversation-links.d.ts.map +1 -0
- package/dist/schemas/conversation-links.js +35 -0
- package/dist/schemas/conversation-links.js.map +1 -0
- package/dist/schemas/data-protection.d.ts +1 -1
- package/dist/schemas/data-protection.d.ts.map +1 -1
- package/dist/schemas/device-commands.d.ts +63 -0
- package/dist/schemas/device-commands.d.ts.map +1 -0
- package/dist/schemas/device-commands.js +42 -0
- package/dist/schemas/device-commands.js.map +1 -0
- package/dist/schemas/device-folder.d.ts +11 -0
- package/dist/schemas/device-folder.d.ts.map +1 -1
- package/dist/schemas/device-folder.js +1 -0
- package/dist/schemas/device-folder.js.map +1 -1
- package/dist/schemas/devices.d.ts +18 -68
- package/dist/schemas/devices.d.ts.map +1 -1
- package/dist/schemas/devices.js +8 -45
- package/dist/schemas/devices.js.map +1 -1
- package/dist/schemas/environment.d.ts.map +1 -1
- package/dist/schemas/environment.js.map +1 -1
- package/dist/schemas/hosts.d.ts +29 -0
- package/dist/schemas/hosts.d.ts.map +1 -1
- package/dist/schemas/hosts.js +23 -0
- package/dist/schemas/hosts.js.map +1 -1
- package/dist/schemas/keyring-native.d.ts +137 -0
- package/dist/schemas/keyring-native.d.ts.map +1 -0
- package/dist/schemas/keyring-native.js +69 -0
- package/dist/schemas/keyring-native.js.map +1 -0
- package/dist/schemas/keyring.d.ts +413 -0
- package/dist/schemas/keyring.d.ts.map +1 -1
- package/dist/schemas/keyring.js +139 -4
- package/dist/schemas/keyring.js.map +1 -1
- package/dist/schemas/phone-passwords.d.ts +186 -0
- package/dist/schemas/phone-passwords.d.ts.map +1 -0
- package/dist/schemas/phone-passwords.js +25 -0
- package/dist/schemas/phone-passwords.js.map +1 -0
- package/dist/schemas/privacy-egress.d.ts +41 -0
- package/dist/schemas/privacy-egress.d.ts.map +1 -0
- package/dist/schemas/privacy-egress.js +30 -0
- package/dist/schemas/privacy-egress.js.map +1 -0
- package/dist/schemas/privacy.d.ts +1 -0
- package/dist/schemas/privacy.d.ts.map +1 -1
- package/dist/schemas/privacy.js +1 -0
- package/dist/schemas/privacy.js.map +1 -1
- package/dist/schemas/providers/plan-limits.d.ts +76 -130
- package/dist/schemas/providers/plan-limits.d.ts.map +1 -1
- package/dist/schemas/providers/plan-limits.js +36 -23
- package/dist/schemas/providers/plan-limits.js.map +1 -1
- package/dist/schemas/providers/provider-oauth.d.ts +24 -82
- package/dist/schemas/providers/provider-oauth.d.ts.map +1 -1
- package/dist/schemas/providers/provider-oauth.js +1 -6
- package/dist/schemas/providers/provider-oauth.js.map +1 -1
- package/dist/schemas/providers/refusals.d.ts +64 -0
- package/dist/schemas/providers/refusals.d.ts.map +1 -0
- package/dist/schemas/providers/refusals.js +33 -0
- package/dist/schemas/providers/refusals.js.map +1 -0
- package/dist/schemas/providers/usage.d.ts +1 -0
- package/dist/schemas/providers/usage.d.ts.map +1 -1
- package/dist/schemas/providers/usage.js +1 -0
- package/dist/schemas/providers/usage.js.map +1 -1
- package/dist/schemas/push.d.ts +13 -0
- package/dist/schemas/push.d.ts.map +1 -1
- package/dist/schemas/push.js +11 -1
- package/dist/schemas/push.js.map +1 -1
- package/dist/schemas/sandbox-passwords.d.ts +288 -0
- package/dist/schemas/sandbox-passwords.d.ts.map +1 -0
- package/dist/schemas/sandbox-passwords.js +66 -0
- package/dist/schemas/sandbox-passwords.js.map +1 -0
- package/dist/schemas/secrets.d.ts +2 -0
- package/dist/schemas/secrets.d.ts.map +1 -1
- package/dist/schemas/secrets.js +4 -0
- package/dist/schemas/secrets.js.map +1 -1
- package/dist/schemas/sessions.js +1 -1
- package/dist/schemas/sessions.js.map +1 -1
- package/dist/schemas/settings-savings.d.ts +709 -0
- package/dist/schemas/settings-savings.d.ts.map +1 -0
- package/dist/schemas/settings-savings.js +53 -0
- package/dist/schemas/settings-savings.js.map +1 -0
- package/dist/schemas/settings.d.ts +7 -671
- package/dist/schemas/settings.d.ts.map +1 -1
- package/dist/schemas/settings.js +5 -50
- package/dist/schemas/settings.js.map +1 -1
- package/dist/schemas/system.d.ts +16 -0
- package/dist/schemas/system.d.ts.map +1 -1
- package/dist/schemas/system.js +11 -0
- package/dist/schemas/system.js.map +1 -1
- package/dist/schemas/terminal.d.ts +5 -0
- package/dist/schemas/terminal.d.ts.map +1 -1
- package/dist/schemas/terminal.js +4 -0
- package/dist/schemas/terminal.js.map +1 -1
- package/dist/schemas/work-assurance.d.ts +24 -0
- package/dist/schemas/work-assurance.d.ts.map +1 -0
- package/dist/schemas/work-assurance.js +23 -0
- package/dist/schemas/work-assurance.js.map +1 -0
- package/dist/schemas/workspace/workspace-tree.d.ts +23 -0
- package/dist/schemas/workspace/workspace-tree.d.ts.map +1 -1
- package/dist/schemas/workspace/workspace-tree.js +20 -0
- package/dist/schemas/workspace/workspace-tree.js.map +1 -1
- package/dist/state/auth-state.d.ts +4 -0
- package/dist/state/auth-state.d.ts.map +1 -0
- package/dist/state/auth-state.js +37 -0
- package/dist/state/auth-state.js.map +1 -0
- package/dist/state/definition.d.ts +12 -0
- package/dist/state/definition.d.ts.map +1 -1
- package/dist/state/runtime-state.d.ts +3 -0
- package/dist/state/runtime-state.d.ts.map +1 -1
- package/dist/state/runtime-state.js +1 -0
- package/dist/state/runtime-state.js.map +1 -1
- package/dist/state/sandbox-build.d.ts +20 -0
- package/dist/state/sandbox-build.d.ts.map +1 -0
- package/dist/state/sandbox-build.js +43 -0
- package/dist/state/sandbox-build.js.map +1 -0
- package/dist/state/ways-back.d.ts +4 -0
- package/dist/state/ways-back.d.ts.map +1 -0
- package/dist/state/ways-back.js +8 -0
- package/dist/state/ways-back.js.map +1 -0
- package/dist/text/land-rows.d.ts +14 -0
- package/dist/text/land-rows.d.ts.map +1 -0
- package/dist/text/land-rows.js +86 -0
- package/dist/text/land-rows.js.map +1 -0
- package/dist/text/transcript-fold.d.ts +4 -2
- package/dist/text/transcript-fold.d.ts.map +1 -1
- package/dist/text/transcript-fold.js +21 -187
- package/dist/text/transcript-fold.js.map +1 -1
- package/dist/webext/index.d.ts +1 -0
- package/dist/webext/index.d.ts.map +1 -1
- package/dist/webext/index.js +1 -0
- package/dist/webext/index.js.map +1 -1
- package/package.json +7 -6
- package/src/contracts/agent.contract.ts +13 -1
- package/src/contracts/agents.contract.ts +53 -28
- package/src/contracts/device.contract.ts +16 -0
- package/src/contracts/endpoints.contract.ts +3 -0
- package/src/contracts/push.contract.ts +23 -1
- package/src/contracts/secrets.contract.ts +39 -0
- package/src/contracts/workspace.contract.ts +16 -0
- package/src/events/agent-events.ts +99 -79
- package/src/events/agent-transcript.ts +48 -0
- package/src/events/agent-words.ts +13 -0
- package/src/events/failure-rows.ts +148 -0
- package/src/events/requests.ts +41 -3
- package/src/events/sandbox-notice.ts +14 -2
- package/src/events/system-events.ts +14 -4
- package/src/events/transcript.ts +30 -28
- package/src/ids/conversation-ids.ts +7 -0
- package/src/ids/project-dir.test.ts +2 -2
- package/src/ids/project-dir.ts +4 -4
- package/src/ids/row-ids.ts +20 -0
- package/src/models/agent-lanes.ts +16 -24
- package/src/models/agent-runtimes.ts +2 -2
- package/src/models/agent-standing.ts +38 -95
- package/src/models/model-pins.test.ts +31 -1
- package/src/models/model-pins.ts +17 -0
- package/src/models/plan-pools.test.ts +274 -31
- package/src/models/plan-pools.ts +294 -79
- package/src/netd/generated/netd-wire.json +25 -0
- package/src/netd/generated/wire.ts +1 -1
- package/src/policy/command-classes.ts +2 -2
- package/src/policy/keyring-origins.test.ts +132 -0
- package/src/policy/keyring-origins.ts +287 -0
- package/src/policy/keyring-seal.test.ts +37 -2
- package/src/policy/keyring-seal.ts +33 -7
- package/src/policy/safety-policy.ts +1 -1
- package/src/policy/tests/safety-policy.test.ts +1 -1
- package/src/policy/turned-away.ts +15 -0
- package/src/protocol/doors/host-protocol.ts +3 -0
- package/src/protocol/doors/runner-protocol.ts +4 -1
- package/src/protocol/doors/webext-links.ts +3 -0
- package/src/protocol/peer-dial.test.ts +90 -4
- package/src/protocol/peer-dial.ts +83 -39
- package/src/protocol/raw/raw-json-routes.ts +13 -0
- package/src/protocol/raw/raw-routes.ts +13 -1
- package/src/schemas/agent-next.ts +34 -0
- package/src/schemas/agent-place.ts +22 -0
- package/src/schemas/agent-search.ts +51 -0
- package/src/schemas/agent.ts +63 -90
- package/src/schemas/agents.ts +55 -99
- package/src/schemas/attach.ts +23 -0
- package/src/schemas/command-admission.ts +57 -0
- package/src/schemas/compose-overlay.test.ts +35 -0
- package/src/schemas/compose-overlay.ts +19 -0
- package/src/schemas/composer-drafts.ts +86 -0
- package/src/schemas/conversation-links.ts +62 -0
- package/src/schemas/data-protection.ts +1 -1
- package/src/schemas/device-commands.ts +89 -0
- package/src/schemas/device-folder.ts +9 -0
- package/src/schemas/devices.ts +28 -110
- package/src/schemas/environment.ts +8 -9
- package/src/schemas/hosts.ts +60 -0
- package/src/schemas/keyring-native.test.ts +13 -0
- package/src/schemas/keyring-native.ts +101 -0
- package/src/schemas/keyring.ts +202 -4
- package/src/schemas/machine-presence.test.ts +33 -0
- package/src/schemas/phone-passwords.ts +51 -0
- package/src/schemas/privacy-egress.test.ts +83 -0
- package/src/schemas/privacy-egress.ts +86 -0
- package/src/schemas/privacy.ts +4 -0
- package/src/schemas/project-delivery.ts +1 -1
- package/src/schemas/providers/plan-limits.test.ts +16 -0
- package/src/schemas/providers/plan-limits.ts +55 -49
- package/src/schemas/providers/provider-oauth.ts +1 -13
- package/src/schemas/providers/refusals.ts +62 -0
- package/src/schemas/providers/usage.ts +2 -0
- package/src/schemas/push.ts +19 -3
- package/src/schemas/sandbox-passwords.ts +88 -0
- package/src/schemas/secrets.ts +4 -0
- package/src/schemas/sessions.ts +1 -1
- package/src/schemas/settings-savings.ts +125 -0
- package/src/schemas/settings.ts +10 -116
- package/src/schemas/system.ts +15 -0
- package/src/schemas/terminal.ts +8 -0
- package/src/schemas/work-assurance.ts +36 -0
- package/src/schemas/workspace/workspace-tree.ts +32 -0
- package/src/state/auth-state.ts +89 -0
- package/src/state/runtime-state.ts +10 -4
- package/src/state/sandbox-build.test.ts +95 -0
- package/src/state/sandbox-build.ts +96 -0
- package/src/state/ways-back.test.ts +36 -0
- package/src/state/ways-back.ts +19 -0
- package/src/state/workspace-state.ts +1 -1
- package/src/text/land-rows.ts +111 -0
- package/src/text/transcript-fold.test.ts +105 -9
- package/src/text/transcript-fold.ts +30 -232
- package/src/webext/index.ts +2 -0
- package/dist/events/undelivered.d.ts +0 -6
- package/dist/events/undelivered.d.ts.map +0 -1
- package/dist/events/undelivered.js +0 -9
- package/dist/events/undelivered.js.map +0 -1
- package/dist/state/history-state.d.ts +0 -3
- package/dist/state/history-state.d.ts.map +0 -1
- package/dist/state/history-state.js +0 -137
- package/dist/state/history-state.js.map +0 -1
- package/src/events/undelivered.ts +0 -15
- package/src/state/history-state.ts +0 -270
|
@@ -55,6 +55,14 @@ export declare const KeyringSandboxKeysSchema: z.ZodObject<{
|
|
|
55
55
|
seal: z.ZodString;
|
|
56
56
|
}, z.core.$strip>;
|
|
57
57
|
export type KeyringSandboxKeys = z.infer<typeof KeyringSandboxKeysSchema>;
|
|
58
|
+
export declare const KeyringRememberSchema: z.ZodObject<{
|
|
59
|
+
browser: z.ZodBoolean;
|
|
60
|
+
terminal: z.ZodBoolean;
|
|
61
|
+
apps: z.ZodBoolean;
|
|
62
|
+
phone: z.ZodBoolean;
|
|
63
|
+
sandbox: z.ZodBoolean;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
export type KeyringRemember = z.infer<typeof KeyringRememberSchema>;
|
|
58
66
|
export declare const KeyringStateSchema: z.ZodObject<{
|
|
59
67
|
version: z.ZodString;
|
|
60
68
|
locked: z.ZodBoolean;
|
|
@@ -62,12 +70,21 @@ export declare const KeyringStateSchema: z.ZodObject<{
|
|
|
62
70
|
unlock: z.ZodArray<z.ZodEnum<{
|
|
63
71
|
hello: "hello";
|
|
64
72
|
passphrase: "passphrase";
|
|
73
|
+
polkit: "polkit";
|
|
65
74
|
}>>;
|
|
66
75
|
keys: z.ZodOptional<z.ZodObject<{
|
|
67
76
|
seal: z.ZodString;
|
|
68
77
|
inbox: z.ZodString;
|
|
69
78
|
}, z.core.$strip>>;
|
|
70
79
|
pendingInbox: z.ZodNumber;
|
|
80
|
+
pendingCaptures: z.ZodOptional<z.ZodNumber>;
|
|
81
|
+
remember: z.ZodOptional<z.ZodObject<{
|
|
82
|
+
browser: z.ZodBoolean;
|
|
83
|
+
terminal: z.ZodBoolean;
|
|
84
|
+
apps: z.ZodBoolean;
|
|
85
|
+
phone: z.ZodBoolean;
|
|
86
|
+
sandbox: z.ZodBoolean;
|
|
87
|
+
}, z.core.$strip>>;
|
|
71
88
|
}, z.core.$strip>;
|
|
72
89
|
export type KeyringState = z.infer<typeof KeyringStateSchema>;
|
|
73
90
|
export declare const KeyringSharesSchema: z.ZodObject<{
|
|
@@ -78,12 +95,21 @@ export declare const KeyringSharesSchema: z.ZodObject<{
|
|
|
78
95
|
unlock: z.ZodArray<z.ZodEnum<{
|
|
79
96
|
hello: "hello";
|
|
80
97
|
passphrase: "passphrase";
|
|
98
|
+
polkit: "polkit";
|
|
81
99
|
}>>;
|
|
82
100
|
keys: z.ZodOptional<z.ZodObject<{
|
|
83
101
|
seal: z.ZodString;
|
|
84
102
|
inbox: z.ZodString;
|
|
85
103
|
}, z.core.$strip>>;
|
|
86
104
|
pendingInbox: z.ZodNumber;
|
|
105
|
+
pendingCaptures: z.ZodOptional<z.ZodNumber>;
|
|
106
|
+
remember: z.ZodOptional<z.ZodObject<{
|
|
107
|
+
browser: z.ZodBoolean;
|
|
108
|
+
terminal: z.ZodBoolean;
|
|
109
|
+
apps: z.ZodBoolean;
|
|
110
|
+
phone: z.ZodBoolean;
|
|
111
|
+
sandbox: z.ZodBoolean;
|
|
112
|
+
}, z.core.$strip>>;
|
|
87
113
|
}, z.core.$strip>>;
|
|
88
114
|
pointers: z.ZodArray<z.ZodObject<{
|
|
89
115
|
name: z.ZodString;
|
|
@@ -201,6 +227,7 @@ export declare const KeyringRefusalCodeSchema: z.ZodEnum<{
|
|
|
201
227
|
locked: "locked";
|
|
202
228
|
"no-keyring": "no-keyring";
|
|
203
229
|
"not-shared": "not-shared";
|
|
230
|
+
pending: "pending";
|
|
204
231
|
replayed: "replayed";
|
|
205
232
|
unavailable: "unavailable";
|
|
206
233
|
unknown: "unknown";
|
|
@@ -227,6 +254,7 @@ export declare const KeyringReleaseResultSchema: z.ZodDiscriminatedUnion<[z.ZodO
|
|
|
227
254
|
locked: "locked";
|
|
228
255
|
"no-keyring": "no-keyring";
|
|
229
256
|
"not-shared": "not-shared";
|
|
257
|
+
pending: "pending";
|
|
230
258
|
replayed: "replayed";
|
|
231
259
|
unavailable: "unavailable";
|
|
232
260
|
unknown: "unknown";
|
|
@@ -267,6 +295,7 @@ export declare const KeyringTypeResultSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
267
295
|
locked: "locked";
|
|
268
296
|
"no-keyring": "no-keyring";
|
|
269
297
|
"not-shared": "not-shared";
|
|
298
|
+
pending: "pending";
|
|
270
299
|
replayed: "replayed";
|
|
271
300
|
unavailable: "unavailable";
|
|
272
301
|
unknown: "unknown";
|
|
@@ -311,6 +340,7 @@ export declare const KeyringInboxResultSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
311
340
|
locked: "locked";
|
|
312
341
|
"no-keyring": "no-keyring";
|
|
313
342
|
"not-shared": "not-shared";
|
|
343
|
+
pending: "pending";
|
|
314
344
|
replayed: "replayed";
|
|
315
345
|
unavailable: "unavailable";
|
|
316
346
|
unknown: "unknown";
|
|
@@ -381,6 +411,7 @@ export declare const KeyringSyncPairResultSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
381
411
|
locked: "locked";
|
|
382
412
|
"no-keyring": "no-keyring";
|
|
383
413
|
"not-shared": "not-shared";
|
|
414
|
+
pending: "pending";
|
|
384
415
|
replayed: "replayed";
|
|
385
416
|
unavailable: "unavailable";
|
|
386
417
|
unknown: "unknown";
|
|
@@ -418,4 +449,386 @@ export declare const KeyringSyncDeliverSchema: z.ZodObject<{
|
|
|
418
449
|
export declare const KeyringSyncDeliverResultSchema: z.ZodObject<{
|
|
419
450
|
accepted: z.ZodNumber;
|
|
420
451
|
}, z.core.$strip>;
|
|
452
|
+
export declare const KeyringOriginSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
453
|
+
kind: z.ZodLiteral<"site">;
|
|
454
|
+
host: z.ZodString;
|
|
455
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
456
|
+
kind: z.ZodLiteral<"program">;
|
|
457
|
+
program: z.ZodString;
|
|
458
|
+
label: z.ZodOptional<z.ZodString>;
|
|
459
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
460
|
+
kind: z.ZodLiteral<"package">;
|
|
461
|
+
package: z.ZodString;
|
|
462
|
+
label: z.ZodOptional<z.ZodString>;
|
|
463
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
464
|
+
kind: z.ZodLiteral<"ssh">;
|
|
465
|
+
target: z.ZodString;
|
|
466
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
467
|
+
kind: z.ZodLiteral<"ssh-key">;
|
|
468
|
+
path: z.ZodString;
|
|
469
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
470
|
+
kind: z.ZodLiteral<"sudo">;
|
|
471
|
+
user: z.ZodOptional<z.ZodString>;
|
|
472
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
473
|
+
kind: z.ZodLiteral<"git">;
|
|
474
|
+
url: z.ZodString;
|
|
475
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
476
|
+
kind: z.ZodLiteral<"prompt">;
|
|
477
|
+
text: z.ZodString;
|
|
478
|
+
command: z.ZodOptional<z.ZodString>;
|
|
479
|
+
sandbox: z.ZodOptional<z.ZodString>;
|
|
480
|
+
}, z.core.$strict>], "kind">;
|
|
481
|
+
export type KeyringOrigin = z.infer<typeof KeyringOriginSchema>;
|
|
482
|
+
export declare const KeyringCaptureSourceSchema: z.ZodEnum<{
|
|
483
|
+
agent: "agent";
|
|
484
|
+
app: "app";
|
|
485
|
+
askpass: "askpass";
|
|
486
|
+
browser: "browser";
|
|
487
|
+
git: "git";
|
|
488
|
+
import: "import";
|
|
489
|
+
manual: "manual";
|
|
490
|
+
phone: "phone";
|
|
491
|
+
terminal: "terminal";
|
|
492
|
+
}>;
|
|
493
|
+
export type KeyringCaptureSource = z.infer<typeof KeyringCaptureSourceSchema>;
|
|
494
|
+
export declare const KEYRING_CAPTURE_BATCH_MAX = 5000;
|
|
495
|
+
export declare const KeyringCaptureItemSchema: z.ZodObject<{
|
|
496
|
+
origin: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
497
|
+
kind: z.ZodLiteral<"site">;
|
|
498
|
+
host: z.ZodString;
|
|
499
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
500
|
+
kind: z.ZodLiteral<"program">;
|
|
501
|
+
program: z.ZodString;
|
|
502
|
+
label: z.ZodOptional<z.ZodString>;
|
|
503
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
504
|
+
kind: z.ZodLiteral<"package">;
|
|
505
|
+
package: z.ZodString;
|
|
506
|
+
label: z.ZodOptional<z.ZodString>;
|
|
507
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
508
|
+
kind: z.ZodLiteral<"ssh">;
|
|
509
|
+
target: z.ZodString;
|
|
510
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
511
|
+
kind: z.ZodLiteral<"ssh-key">;
|
|
512
|
+
path: z.ZodString;
|
|
513
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
514
|
+
kind: z.ZodLiteral<"sudo">;
|
|
515
|
+
user: z.ZodOptional<z.ZodString>;
|
|
516
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
517
|
+
kind: z.ZodLiteral<"git">;
|
|
518
|
+
url: z.ZodString;
|
|
519
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
520
|
+
kind: z.ZodLiteral<"prompt">;
|
|
521
|
+
text: z.ZodString;
|
|
522
|
+
command: z.ZodOptional<z.ZodString>;
|
|
523
|
+
sandbox: z.ZodOptional<z.ZodString>;
|
|
524
|
+
}, z.core.$strict>], "kind">;
|
|
525
|
+
username: z.ZodOptional<z.ZodString>;
|
|
526
|
+
sealed: z.ZodObject<{
|
|
527
|
+
v: z.ZodLiteral<1>;
|
|
528
|
+
epk: z.ZodString;
|
|
529
|
+
iv: z.ZodString;
|
|
530
|
+
tag: z.ZodString;
|
|
531
|
+
data: z.ZodString;
|
|
532
|
+
}, z.core.$strict>;
|
|
533
|
+
source: z.ZodEnum<{
|
|
534
|
+
agent: "agent";
|
|
535
|
+
app: "app";
|
|
536
|
+
askpass: "askpass";
|
|
537
|
+
browser: "browser";
|
|
538
|
+
git: "git";
|
|
539
|
+
import: "import";
|
|
540
|
+
manual: "manual";
|
|
541
|
+
phone: "phone";
|
|
542
|
+
terminal: "terminal";
|
|
543
|
+
}>;
|
|
544
|
+
via: z.ZodString;
|
|
545
|
+
kind: z.ZodDefault<z.ZodEnum<{
|
|
546
|
+
password: "password";
|
|
547
|
+
text: "text";
|
|
548
|
+
}>>;
|
|
549
|
+
title: z.ZodOptional<z.ZodString>;
|
|
550
|
+
at: z.ZodNumber;
|
|
551
|
+
failed: z.ZodOptional<z.ZodBoolean>;
|
|
552
|
+
}, z.core.$strict>;
|
|
553
|
+
export type KeyringCaptureItem = z.infer<typeof KeyringCaptureItemSchema>;
|
|
554
|
+
export declare const KeyringCaptureOutcomeSchema: z.ZodEnum<{
|
|
555
|
+
pending: "pending";
|
|
556
|
+
saved: "saved";
|
|
557
|
+
skipped: "skipped";
|
|
558
|
+
unchanged: "unchanged";
|
|
559
|
+
updated: "updated";
|
|
560
|
+
}>;
|
|
561
|
+
export type KeyringCaptureOutcome = z.infer<typeof KeyringCaptureOutcomeSchema>;
|
|
562
|
+
export declare const KeyringCaptureResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
563
|
+
ok: z.ZodLiteral<true>;
|
|
564
|
+
outcome: z.ZodEnum<{
|
|
565
|
+
pending: "pending";
|
|
566
|
+
saved: "saved";
|
|
567
|
+
skipped: "skipped";
|
|
568
|
+
unchanged: "unchanged";
|
|
569
|
+
updated: "updated";
|
|
570
|
+
}>;
|
|
571
|
+
name: z.ZodOptional<z.ZodString>;
|
|
572
|
+
title: z.ZodOptional<z.ZodString>;
|
|
573
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
574
|
+
ok: z.ZodLiteral<false>;
|
|
575
|
+
code: z.ZodEnum<{
|
|
576
|
+
"bad-grant": "bad-grant";
|
|
577
|
+
busy: "busy";
|
|
578
|
+
declined: "declined";
|
|
579
|
+
expired: "expired";
|
|
580
|
+
guard: "guard";
|
|
581
|
+
locked: "locked";
|
|
582
|
+
"no-keyring": "no-keyring";
|
|
583
|
+
"not-shared": "not-shared";
|
|
584
|
+
pending: "pending";
|
|
585
|
+
replayed: "replayed";
|
|
586
|
+
unavailable: "unavailable";
|
|
587
|
+
unknown: "unknown";
|
|
588
|
+
}>;
|
|
589
|
+
refusal: z.ZodString;
|
|
590
|
+
}, z.core.$strip>], "ok">;
|
|
591
|
+
export type KeyringCaptureResult = z.infer<typeof KeyringCaptureResultSchema>;
|
|
592
|
+
export declare const KeyringNeedSchema: z.ZodObject<{
|
|
593
|
+
origin: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
594
|
+
kind: z.ZodLiteral<"site">;
|
|
595
|
+
host: z.ZodString;
|
|
596
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
597
|
+
kind: z.ZodLiteral<"program">;
|
|
598
|
+
program: z.ZodString;
|
|
599
|
+
label: z.ZodOptional<z.ZodString>;
|
|
600
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
601
|
+
kind: z.ZodLiteral<"package">;
|
|
602
|
+
package: z.ZodString;
|
|
603
|
+
label: z.ZodOptional<z.ZodString>;
|
|
604
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
605
|
+
kind: z.ZodLiteral<"ssh">;
|
|
606
|
+
target: z.ZodString;
|
|
607
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
608
|
+
kind: z.ZodLiteral<"ssh-key">;
|
|
609
|
+
path: z.ZodString;
|
|
610
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
611
|
+
kind: z.ZodLiteral<"sudo">;
|
|
612
|
+
user: z.ZodOptional<z.ZodString>;
|
|
613
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
614
|
+
kind: z.ZodLiteral<"git">;
|
|
615
|
+
url: z.ZodString;
|
|
616
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
617
|
+
kind: z.ZodLiteral<"prompt">;
|
|
618
|
+
text: z.ZodString;
|
|
619
|
+
command: z.ZodOptional<z.ZodString>;
|
|
620
|
+
sandbox: z.ZodOptional<z.ZodString>;
|
|
621
|
+
}, z.core.$strict>], "kind">;
|
|
622
|
+
username: z.ZodOptional<z.ZodString>;
|
|
623
|
+
detail: z.ZodString;
|
|
624
|
+
conversation: z.ZodOptional<z.ZodString>;
|
|
625
|
+
purpose: z.ZodDefault<z.ZodEnum<{
|
|
626
|
+
agent: "agent";
|
|
627
|
+
owner: "owner";
|
|
628
|
+
}>>;
|
|
629
|
+
typeOnce: z.ZodDefault<z.ZodBoolean>;
|
|
630
|
+
}, z.core.$strict>;
|
|
631
|
+
export type KeyringNeed = z.infer<typeof KeyringNeedSchema>;
|
|
632
|
+
export declare const KeyringNeedAnswerSchema: z.ZodEnum<{
|
|
633
|
+
always: "always";
|
|
634
|
+
deny: "deny";
|
|
635
|
+
once: "once";
|
|
636
|
+
"while-here": "while-here";
|
|
637
|
+
}>;
|
|
638
|
+
export type KeyringNeedAnswer = z.infer<typeof KeyringNeedAnswerSchema>;
|
|
639
|
+
export declare const KeyringNeedResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
640
|
+
ok: z.ZodLiteral<true>;
|
|
641
|
+
pointer: z.ZodObject<{
|
|
642
|
+
name: z.ZodString;
|
|
643
|
+
mode: z.ZodEnum<{
|
|
644
|
+
copy: "copy";
|
|
645
|
+
"each-use": "each-use";
|
|
646
|
+
"while-here": "while-here";
|
|
647
|
+
}>;
|
|
648
|
+
kind: z.ZodEnum<{
|
|
649
|
+
password: "password";
|
|
650
|
+
text: "text";
|
|
651
|
+
}>;
|
|
652
|
+
programs: z.ZodArray<z.ZodString>;
|
|
653
|
+
packages: z.ZodArray<z.ZodString>;
|
|
654
|
+
hosts: z.ZodArray<z.ZodString>;
|
|
655
|
+
anyField: z.ZodBoolean;
|
|
656
|
+
source: z.ZodEnum<{
|
|
657
|
+
"1password": "1password";
|
|
658
|
+
bitwarden: "bitwarden";
|
|
659
|
+
keepassxc: "keepassxc";
|
|
660
|
+
keyring: "keyring";
|
|
661
|
+
}>;
|
|
662
|
+
updatedAt: z.ZodNumber;
|
|
663
|
+
}, z.core.$strip>;
|
|
664
|
+
asked: z.ZodBoolean;
|
|
665
|
+
saved: z.ZodBoolean;
|
|
666
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
667
|
+
ok: z.ZodLiteral<false>;
|
|
668
|
+
code: z.ZodEnum<{
|
|
669
|
+
"bad-grant": "bad-grant";
|
|
670
|
+
busy: "busy";
|
|
671
|
+
declined: "declined";
|
|
672
|
+
expired: "expired";
|
|
673
|
+
guard: "guard";
|
|
674
|
+
locked: "locked";
|
|
675
|
+
"no-keyring": "no-keyring";
|
|
676
|
+
"not-shared": "not-shared";
|
|
677
|
+
pending: "pending";
|
|
678
|
+
replayed: "replayed";
|
|
679
|
+
unavailable: "unavailable";
|
|
680
|
+
unknown: "unknown";
|
|
681
|
+
}>;
|
|
682
|
+
refusal: z.ZodString;
|
|
683
|
+
}, z.core.$strip>], "ok">;
|
|
684
|
+
export type KeyringNeedResult = z.infer<typeof KeyringNeedResultSchema>;
|
|
685
|
+
export declare const KeyringPendingNeedSchema: z.ZodObject<{
|
|
686
|
+
id: z.ZodString;
|
|
687
|
+
sandbox: z.ZodString;
|
|
688
|
+
need: z.ZodObject<{
|
|
689
|
+
origin: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
690
|
+
kind: z.ZodLiteral<"site">;
|
|
691
|
+
host: z.ZodString;
|
|
692
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
693
|
+
kind: z.ZodLiteral<"program">;
|
|
694
|
+
program: z.ZodString;
|
|
695
|
+
label: z.ZodOptional<z.ZodString>;
|
|
696
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
697
|
+
kind: z.ZodLiteral<"package">;
|
|
698
|
+
package: z.ZodString;
|
|
699
|
+
label: z.ZodOptional<z.ZodString>;
|
|
700
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
701
|
+
kind: z.ZodLiteral<"ssh">;
|
|
702
|
+
target: z.ZodString;
|
|
703
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
704
|
+
kind: z.ZodLiteral<"ssh-key">;
|
|
705
|
+
path: z.ZodString;
|
|
706
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
707
|
+
kind: z.ZodLiteral<"sudo">;
|
|
708
|
+
user: z.ZodOptional<z.ZodString>;
|
|
709
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
710
|
+
kind: z.ZodLiteral<"git">;
|
|
711
|
+
url: z.ZodString;
|
|
712
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
713
|
+
kind: z.ZodLiteral<"prompt">;
|
|
714
|
+
text: z.ZodString;
|
|
715
|
+
command: z.ZodOptional<z.ZodString>;
|
|
716
|
+
sandbox: z.ZodOptional<z.ZodString>;
|
|
717
|
+
}, z.core.$strict>], "kind">;
|
|
718
|
+
username: z.ZodOptional<z.ZodString>;
|
|
719
|
+
detail: z.ZodString;
|
|
720
|
+
conversation: z.ZodOptional<z.ZodString>;
|
|
721
|
+
purpose: z.ZodDefault<z.ZodEnum<{
|
|
722
|
+
agent: "agent";
|
|
723
|
+
owner: "owner";
|
|
724
|
+
}>>;
|
|
725
|
+
typeOnce: z.ZodDefault<z.ZodBoolean>;
|
|
726
|
+
}, z.core.$strict>;
|
|
727
|
+
matches: z.ZodArray<z.ZodString>;
|
|
728
|
+
at: z.ZodNumber;
|
|
729
|
+
}, z.core.$strip>;
|
|
730
|
+
export type KeyringPendingNeed = z.infer<typeof KeyringPendingNeedSchema>;
|
|
731
|
+
export declare const KeyringPhoneKeysSchema: z.ZodObject<{
|
|
732
|
+
device: z.ZodString;
|
|
733
|
+
label: z.ZodString;
|
|
734
|
+
seal: z.ZodString;
|
|
735
|
+
presence: z.ZodString;
|
|
736
|
+
}, z.core.$strict>;
|
|
737
|
+
export type KeyringPhoneKeys = z.infer<typeof KeyringPhoneKeysSchema>;
|
|
738
|
+
export declare const KeyringPhonePairResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
739
|
+
ok: z.ZodLiteral<true>;
|
|
740
|
+
fingerprint: z.ZodString;
|
|
741
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
742
|
+
ok: z.ZodLiteral<false>;
|
|
743
|
+
code: z.ZodEnum<{
|
|
744
|
+
"bad-grant": "bad-grant";
|
|
745
|
+
busy: "busy";
|
|
746
|
+
declined: "declined";
|
|
747
|
+
expired: "expired";
|
|
748
|
+
guard: "guard";
|
|
749
|
+
locked: "locked";
|
|
750
|
+
"no-keyring": "no-keyring";
|
|
751
|
+
"not-shared": "not-shared";
|
|
752
|
+
pending: "pending";
|
|
753
|
+
replayed: "replayed";
|
|
754
|
+
unavailable: "unavailable";
|
|
755
|
+
unknown: "unknown";
|
|
756
|
+
}>;
|
|
757
|
+
refusal: z.ZodString;
|
|
758
|
+
}, z.core.$strip>], "ok">;
|
|
759
|
+
export type KeyringPhonePairResult = z.infer<typeof KeyringPhonePairResultSchema>;
|
|
760
|
+
export declare const KeyringPhoneFillSchema: z.ZodObject<{
|
|
761
|
+
v: z.ZodLiteral<1>;
|
|
762
|
+
device: z.ZodString;
|
|
763
|
+
origin: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
764
|
+
kind: z.ZodLiteral<"site">;
|
|
765
|
+
host: z.ZodString;
|
|
766
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
767
|
+
kind: z.ZodLiteral<"program">;
|
|
768
|
+
program: z.ZodString;
|
|
769
|
+
label: z.ZodOptional<z.ZodString>;
|
|
770
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
771
|
+
kind: z.ZodLiteral<"package">;
|
|
772
|
+
package: z.ZodString;
|
|
773
|
+
label: z.ZodOptional<z.ZodString>;
|
|
774
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
775
|
+
kind: z.ZodLiteral<"ssh">;
|
|
776
|
+
target: z.ZodString;
|
|
777
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
778
|
+
kind: z.ZodLiteral<"ssh-key">;
|
|
779
|
+
path: z.ZodString;
|
|
780
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
781
|
+
kind: z.ZodLiteral<"sudo">;
|
|
782
|
+
user: z.ZodOptional<z.ZodString>;
|
|
783
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
784
|
+
kind: z.ZodLiteral<"git">;
|
|
785
|
+
url: z.ZodString;
|
|
786
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
787
|
+
kind: z.ZodLiteral<"prompt">;
|
|
788
|
+
text: z.ZodString;
|
|
789
|
+
command: z.ZodOptional<z.ZodString>;
|
|
790
|
+
sandbox: z.ZodOptional<z.ZodString>;
|
|
791
|
+
}, z.core.$strict>], "kind">;
|
|
792
|
+
username: z.ZodOptional<z.ZodString>;
|
|
793
|
+
nonce: z.ZodString;
|
|
794
|
+
issuedAt: z.ZodNumber;
|
|
795
|
+
expiresAt: z.ZodNumber;
|
|
796
|
+
}, z.core.$strict>;
|
|
797
|
+
export type KeyringPhoneFill = z.infer<typeof KeyringPhoneFillSchema>;
|
|
798
|
+
export declare const SignedKeyringPhoneFillSchema: z.ZodObject<{
|
|
799
|
+
payload: z.ZodString;
|
|
800
|
+
sig: z.ZodString;
|
|
801
|
+
}, z.core.$strict>;
|
|
802
|
+
export type SignedKeyringPhoneFill = z.infer<typeof SignedKeyringPhoneFillSchema>;
|
|
803
|
+
export declare const KeyringPhoneFillResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
804
|
+
ok: z.ZodLiteral<true>;
|
|
805
|
+
username: z.ZodOptional<z.ZodString>;
|
|
806
|
+
sealed: z.ZodObject<{
|
|
807
|
+
v: z.ZodLiteral<1>;
|
|
808
|
+
epk: z.ZodString;
|
|
809
|
+
iv: z.ZodString;
|
|
810
|
+
tag: z.ZodString;
|
|
811
|
+
data: z.ZodString;
|
|
812
|
+
}, z.core.$strict>;
|
|
813
|
+
name: z.ZodString;
|
|
814
|
+
title: z.ZodString;
|
|
815
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
816
|
+
ok: z.ZodLiteral<false>;
|
|
817
|
+
code: z.ZodEnum<{
|
|
818
|
+
"bad-grant": "bad-grant";
|
|
819
|
+
busy: "busy";
|
|
820
|
+
declined: "declined";
|
|
821
|
+
expired: "expired";
|
|
822
|
+
guard: "guard";
|
|
823
|
+
locked: "locked";
|
|
824
|
+
"no-keyring": "no-keyring";
|
|
825
|
+
"not-shared": "not-shared";
|
|
826
|
+
pending: "pending";
|
|
827
|
+
replayed: "replayed";
|
|
828
|
+
unavailable: "unavailable";
|
|
829
|
+
unknown: "unknown";
|
|
830
|
+
}>;
|
|
831
|
+
refusal: z.ZodString;
|
|
832
|
+
}, z.core.$strip>], "ok">;
|
|
833
|
+
export type KeyringPhoneFillResult = z.infer<typeof KeyringPhoneFillResultSchema>;
|
|
421
834
|
//# sourceMappingURL=keyring.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"keyring.d.ts","sourceRoot":"","sources":["../../src/schemas/keyring.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,cAAc,QAAyB,CAAC;AACrD,eAAO,MAAM,sBAAsB,aAAoG,CAAC;AAIxI,eAAO,MAAM,eAAe,QAAoC,CAAC;AACjE,eAAO,MAAM,uBAAuB,aAGqF,CAAC;AAE1H,eAAO,MAAM,sBAAsB;;;;EAI9B,CAAC;AACN,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAItE,eAAO,MAAM,mBAAmB,MAAM,CAAC;AACvC,eAAO,MAAM,oBAAoB,aAKmF,CAAC;AACrH,eAAO,MAAM,kBAAkB,QAA+C,CAAC;AAC/E,eAAO,MAAM,oBAAoB,aAA8H,CAAC;AAChK,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC,eAAO,MAAM,mBAAmB;;;;;EAE+G,CAAC;AAChJ,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAIhE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;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K,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,4BAA4B;;;kBAK5B,CAAC;AACd,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBASvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
|
package/dist/schemas/keyring.js
CHANGED
|
@@ -47,15 +47,24 @@ export const KeyringSandboxKeysSchema = z.object({
|
|
|
47
47
|
sign: KeyringPublicKeySchema.describe("Verifies the grants this sandbox signs (Ed25519)."),
|
|
48
48
|
seal: KeyringPublicKeySchema.describe("What a value released to this sandbox is sealed to (X25519)."),
|
|
49
49
|
});
|
|
50
|
+
export const KeyringRememberSchema = z.object({
|
|
51
|
+
browser: z.boolean().describe("Sign-ins in a browser with the Intentic extension."),
|
|
52
|
+
terminal: z.boolean().describe("ssh, sudo and git prompts on this computer, and git's credential helper."),
|
|
53
|
+
apps: z.boolean().describe("Password fields in programs on this computer, typed once into the keyring's own box."),
|
|
54
|
+
phone: z.boolean().describe("The paired phone's autofill."),
|
|
55
|
+
sandbox: z.boolean().describe("Prompts that hide what is typed, in a sandbox terminal the person types into."),
|
|
56
|
+
});
|
|
50
57
|
export const KeyringStateSchema = z.object({
|
|
51
58
|
version: z.string().describe("The keyring's own release."),
|
|
52
59
|
locked: z.boolean().describe("Whether the vault is locked. Locked, `while-here` entries ask like `each-use` ones."),
|
|
53
60
|
unlockedUntil: z.number().optional().describe("When the current unlock ends, in milliseconds. Absent while locked."),
|
|
54
61
|
unlock: z
|
|
55
|
-
.array(z.enum(["hello", "passphrase"]))
|
|
56
|
-
.describe("How a person unlocks it here: Windows Hello,
|
|
62
|
+
.array(z.enum(["hello", "passphrase", "polkit"]))
|
|
63
|
+
.describe("How a person unlocks it here: Windows Hello, the keyring's passphrase (its recovery key), or polkit's own check on Linux."),
|
|
57
64
|
keys: KeyringDeviceKeysSchema.optional().describe("Absent until the keyring is set up: there is no vault, so no inbox to seal a value to."),
|
|
58
65
|
pendingInbox: z.number().int().nonnegative().describe("Values sent to be kept that wait for the next unlock."),
|
|
66
|
+
pendingCaptures: z.number().int().nonnegative().optional().describe("Credentials seen in use while locked, kept sealed until the next unlock. Absent from a keyring older than 2026-10-19."),
|
|
67
|
+
remember: KeyringRememberSchema.optional().describe("Which sources the person let the keyring remember passwords from, so a collector knows whether to send one. Absent before setup and from an older keyring."),
|
|
59
68
|
});
|
|
60
69
|
export const KeyringSharesSchema = z.object({
|
|
61
70
|
keyring: KeyringStateSchema.optional().describe("The keyring on this computer. Absent when none is installed or it does not answer."),
|
|
@@ -108,8 +117,8 @@ export const SealedBoxSchema = z
|
|
|
108
117
|
})
|
|
109
118
|
.strict();
|
|
110
119
|
export const KeyringRefusalCodeSchema = z
|
|
111
|
-
.enum(["no-keyring", "locked", "declined", "unknown", "not-shared", "bad-grant", "expired", "replayed", "guard", "unavailable", "busy"])
|
|
112
|
-
.describe("Why: no keyring here; locked with nobody to unlock it; the person said no; no such entry; not shared with this sandbox; a grant that does not verify; one past its time; one already spent; the focused window or field is not one it may go to; its password manager did not answer; another prompt is open.");
|
|
120
|
+
.enum(["no-keyring", "locked", "declined", "unknown", "not-shared", "bad-grant", "expired", "replayed", "guard", "unavailable", "busy", "pending"])
|
|
121
|
+
.describe("Why: no keyring here; locked with nobody to unlock it; the person said no; no such entry; not shared with this sandbox; a grant that does not verify; one past its time; one already spent; the focused window or field is not one it may go to; its password manager did not answer; another prompt is open; nobody has answered yet, and the request waits in the Passwords app.");
|
|
113
122
|
const refusal = z.object({ ok: z.literal(false), code: KeyringRefusalCodeSchema, refusal: z.string().describe("What happened, in words a person can act on.") });
|
|
114
123
|
export const KeyringReleaseResultSchema = z.discriminatedUnion("ok", [
|
|
115
124
|
z.object({ ok: z.literal(true), sealed: SealedBoxSchema, asked: z.boolean().describe("Whether the person at the computer was asked.") }),
|
|
@@ -173,4 +182,130 @@ export const KeyringSyncPairResultSchema = z.discriminatedUnion("ok", [z.object(
|
|
|
173
182
|
export const KeyringSyncOutboxSchema = z.object({ items: z.array(KeyringSyncItemSchema) });
|
|
174
183
|
export const KeyringSyncDeliverSchema = z.object({ items: z.array(KeyringSyncItemSchema).max(64) }).strict();
|
|
175
184
|
export const KeyringSyncDeliverResultSchema = z.object({ accepted: z.number().int().nonnegative().describe("How many it took; the rest were not from a paired keyring or did not open.") });
|
|
185
|
+
export const KeyringOriginSchema = z.discriminatedUnion("kind", [
|
|
186
|
+
z.object({ kind: z.literal("site"), host: z.string().min(1).max(253).describe("The page's host, `github.com`; never a path.") }).strict(),
|
|
187
|
+
z
|
|
188
|
+
.object({
|
|
189
|
+
kind: z.literal("program"),
|
|
190
|
+
program: KeyringProgramSchema,
|
|
191
|
+
label: z.string().max(200).optional().describe("The program's own name for people, `FortiClient VPN`, when the window says it."),
|
|
192
|
+
})
|
|
193
|
+
.strict(),
|
|
194
|
+
z.object({ kind: z.literal("package"), package: KeyringPackageSchema, label: z.string().max(200).optional() }).strict(),
|
|
195
|
+
z.object({ kind: z.literal("ssh"), target: z.string().min(1).max(300).describe("`user@host`, as ssh's prompt names it.") }).strict(),
|
|
196
|
+
z.object({ kind: z.literal("ssh-key"), path: z.string().min(1).max(1000) }).strict(),
|
|
197
|
+
z.object({ kind: z.literal("sudo"), user: z.string().max(64).optional() }).strict(),
|
|
198
|
+
z.object({ kind: z.literal("git"), url: z.string().min(1).max(500).describe("`https://host`, as git's credential helper or askpass names it.") }).strict(),
|
|
199
|
+
z
|
|
200
|
+
.object({
|
|
201
|
+
kind: z.literal("prompt"),
|
|
202
|
+
text: z.string().min(1).max(300).describe("The prompt's own words, `Password for npm:`."),
|
|
203
|
+
command: z.string().max(200).optional().describe("The command that asked, `npm login`, when known."),
|
|
204
|
+
sandbox: z.string().url().optional().describe("The sandbox whose terminal asked, for a prompt seen there rather than on this computer."),
|
|
205
|
+
})
|
|
206
|
+
.strict(),
|
|
207
|
+
]);
|
|
208
|
+
export const KeyringCaptureSourceSchema = z
|
|
209
|
+
.enum(["browser", "askpass", "git", "app", "phone", "terminal", "import", "agent", "manual"])
|
|
210
|
+
.describe("What saw it: the browser extension, an ssh/sudo/git prompt answered through the keyring, git's credential helper, a password field in an app on this computer, the phone's autofill, a sandbox terminal's prompt, an import, an agent's `secrets ask`, or the person adding it by hand.");
|
|
211
|
+
export const KEYRING_CAPTURE_BATCH_MAX = 5000;
|
|
212
|
+
export const KeyringCaptureItemSchema = z
|
|
213
|
+
.object({
|
|
214
|
+
origin: KeyringOriginSchema,
|
|
215
|
+
username: z.string().max(256).optional().describe("The account it signs in as, when the form or prompt said. Not a secret."),
|
|
216
|
+
sealed: SealedBoxSchema,
|
|
217
|
+
source: KeyringCaptureSourceSchema,
|
|
218
|
+
via: z.string().min(1).max(200).describe("Who saw it, in words for the title line: `Brave`, `Pixel 8`, `intentic-dev`. Also bound into the seal."),
|
|
219
|
+
kind: z.enum(["password", "text"]).default("password"),
|
|
220
|
+
title: z.string().max(200).optional().describe("The site's or app's own name, when it said one; the keyring derives one otherwise."),
|
|
221
|
+
at: z.number().int().describe("When it was seen, in milliseconds. Also bound into the seal."),
|
|
222
|
+
failed: z
|
|
223
|
+
.boolean()
|
|
224
|
+
.optional()
|
|
225
|
+
.describe("The last value captured for this origin and user did not work (ssh asked again, git erased it, the form came back): replace it rather than keep it as history."),
|
|
226
|
+
})
|
|
227
|
+
.strict();
|
|
228
|
+
export const KeyringCaptureOutcomeSchema = z
|
|
229
|
+
.enum(["saved", "updated", "unchanged", "pending", "skipped"])
|
|
230
|
+
.describe("A new entry; a new value for an existing one (the old kept in its history); the same value it already had; kept sealed until the next unlock; not kept, because remembering is off for its source or its origin is on the never-save list.");
|
|
231
|
+
export const KeyringCaptureResultSchema = z.discriminatedUnion("ok", [
|
|
232
|
+
z.object({
|
|
233
|
+
ok: z.literal(true),
|
|
234
|
+
outcome: KeyringCaptureOutcomeSchema,
|
|
235
|
+
name: KeyringSecretNameSchema.optional().describe("The entry it went to. Absent while pending or skipped."),
|
|
236
|
+
title: z.string().optional().describe("That entry's title, for the 'Saved github.com' notice."),
|
|
237
|
+
}),
|
|
238
|
+
refusal,
|
|
239
|
+
]);
|
|
240
|
+
export const KeyringNeedSchema = z
|
|
241
|
+
.object({
|
|
242
|
+
origin: KeyringOriginSchema,
|
|
243
|
+
username: z.string().max(256).optional().describe("The account wanted, when the agent knows it."),
|
|
244
|
+
detail: z.string().min(1).max(300).describe("What it is for, in words for the prompt: `sign in to push the release branch`."),
|
|
245
|
+
conversation: z.string().max(200).optional(),
|
|
246
|
+
purpose: z.enum(["agent", "owner"]).default("agent"),
|
|
247
|
+
typeOnce: z
|
|
248
|
+
.boolean()
|
|
249
|
+
.default(false)
|
|
250
|
+
.describe("Nothing matched on any of the owner's computers: offer the person here the keyring's type-once box. Without it, a keyring with no match answers `unknown` at once, so the sandbox can ask the next computer without a box opening on each."),
|
|
251
|
+
})
|
|
252
|
+
.strict();
|
|
253
|
+
export const KeyringNeedAnswerSchema = z
|
|
254
|
+
.enum(["once", "while-here", "always", "deny"])
|
|
255
|
+
.describe("The person's answer: this one use (an `each-use` share), unasked while unlocked, a copy in the sandbox, or no.");
|
|
256
|
+
export const KeyringNeedResultSchema = z.discriminatedUnion("ok", [
|
|
257
|
+
z.object({
|
|
258
|
+
ok: z.literal(true),
|
|
259
|
+
pointer: KeyringPointerSchema.describe("The entry now shared with the asking sandbox, as its next `shares` read will also list it."),
|
|
260
|
+
asked: z.boolean(),
|
|
261
|
+
saved: z.boolean().describe("Nothing matched, and the person typed it once into the keyring's own box: a new entry, kept here and shared."),
|
|
262
|
+
}),
|
|
263
|
+
refusal,
|
|
264
|
+
]);
|
|
265
|
+
export const KeyringPendingNeedSchema = z.object({
|
|
266
|
+
id: z.string().regex(KEYRING_NONCE_RE),
|
|
267
|
+
sandbox: z.string().url(),
|
|
268
|
+
need: KeyringNeedSchema,
|
|
269
|
+
matches: z.array(KeyringSecretNameSchema).describe("The entries that fit, best first. Empty: none yet, the app offers to type one once."),
|
|
270
|
+
at: z.number().int(),
|
|
271
|
+
});
|
|
272
|
+
export const KeyringPhoneKeysSchema = z
|
|
273
|
+
.object({
|
|
274
|
+
device: z.string().min(1).max(128).describe("The phone, by its device card."),
|
|
275
|
+
label: z.string().min(1).max(200).describe("The phone's name for people, `Pixel 8`."),
|
|
276
|
+
seal: KeyringPublicKeySchema,
|
|
277
|
+
presence: z.string().min(1).max(512).describe("The presence key, X.509 SubjectPublicKeyInfo DER, base64."),
|
|
278
|
+
})
|
|
279
|
+
.strict();
|
|
280
|
+
export const KeyringPhonePairResultSchema = z.discriminatedUnion("ok", [
|
|
281
|
+
z.object({ ok: z.literal(true), fingerprint: z.string().describe("The keyring's own fingerprint, for the phone to show beside its own.") }),
|
|
282
|
+
refusal,
|
|
283
|
+
]);
|
|
284
|
+
export const KeyringPhoneFillSchema = z
|
|
285
|
+
.object({
|
|
286
|
+
v: z.literal(1),
|
|
287
|
+
device: z.string().min(1).max(128),
|
|
288
|
+
origin: KeyringOriginSchema.describe("Where the phone is filling: a `package`, or a `site` for a browser on the phone."),
|
|
289
|
+
username: z.string().max(256).optional(),
|
|
290
|
+
nonce: z.string().regex(KEYRING_NONCE_RE),
|
|
291
|
+
issuedAt: z.number().int(),
|
|
292
|
+
expiresAt: z.number().int(),
|
|
293
|
+
})
|
|
294
|
+
.strict();
|
|
295
|
+
export const SignedKeyringPhoneFillSchema = z
|
|
296
|
+
.object({
|
|
297
|
+
payload: z.string().min(1).max(4096).describe("The fill request's JSON, base64url."),
|
|
298
|
+
sig: z.string().min(1).max(256).describe("The presence key's ECDSA P-256 signature (DER) over the payload, base64url."),
|
|
299
|
+
})
|
|
300
|
+
.strict();
|
|
301
|
+
export const KeyringPhoneFillResultSchema = z.discriminatedUnion("ok", [
|
|
302
|
+
z.object({
|
|
303
|
+
ok: z.literal(true),
|
|
304
|
+
username: z.string().max(256).optional(),
|
|
305
|
+
sealed: SealedBoxSchema.describe("The value, sealed to the phone's `seal` key for `{ kind: \"phone\" }`."),
|
|
306
|
+
name: KeyringSecretNameSchema,
|
|
307
|
+
title: z.string(),
|
|
308
|
+
}),
|
|
309
|
+
refusal,
|
|
310
|
+
]);
|
|
176
311
|
//# sourceMappingURL=keyring.js.map
|