@opengeni/contracts 5.5.0 → 5.5.2-canary.40656248492001
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/agent-authored-durable-text.d.ts +9 -9
- package/dist/agent-config.d.ts +148 -37
- package/dist/api-key-presets.d.ts +19 -0
- package/dist/app-action-catalog-types.d.ts +32 -0
- package/dist/app-action-catalog.gen.d.ts +2 -0
- package/dist/app-actions.d.ts +91 -0
- package/dist/app-actions.js +10130 -0
- package/dist/app-actions.js.map +1 -0
- package/dist/app-shot.d.ts +55 -0
- package/dist/artifact-catalog.d.ts +33 -0
- package/dist/artifacts.d.ts +166 -0
- package/dist/atlassian-native-retirement.d.ts +16 -0
- package/dist/atlassian-native-retirement.js +30 -0
- package/dist/atlassian-native-retirement.js.map +1 -0
- package/dist/atlassian.js +48 -23
- package/dist/automation-templates.d.ts +434 -0
- package/dist/automation-templates.js +31 -0
- package/dist/automation-templates.js.map +1 -0
- package/dist/billing-subscriptions.d.ts +61 -0
- package/dist/bots.d.ts +583 -0
- package/dist/bundled-skills.d.ts +58 -2
- package/dist/canonical-human-identities.js +3 -1
- package/dist/child-lifecycle-notice-protocol.d.ts +45 -0
- package/dist/chunk-2QKIEAGY.js +396 -0
- package/dist/chunk-2QKIEAGY.js.map +1 -0
- package/dist/chunk-2WOWEWXV.js +426 -0
- package/dist/chunk-2WOWEWXV.js.map +1 -0
- package/dist/chunk-2ZIHHL72.js +153 -0
- package/dist/chunk-2ZIHHL72.js.map +1 -0
- package/dist/chunk-32U6NKQQ.js +389 -0
- package/dist/chunk-32U6NKQQ.js.map +1 -0
- package/dist/chunk-4YDDHSO2.js +799 -0
- package/dist/chunk-4YDDHSO2.js.map +1 -0
- package/dist/chunk-56SNIMDO.js +9 -0
- package/dist/chunk-56SNIMDO.js.map +1 -0
- package/dist/chunk-5RWB6QVL.js +101 -0
- package/dist/chunk-5RWB6QVL.js.map +1 -0
- package/dist/chunk-5UGUOT3L.js +243 -0
- package/dist/chunk-5UGUOT3L.js.map +1 -0
- package/dist/chunk-6LAT33BH.js +130 -0
- package/dist/chunk-6LAT33BH.js.map +1 -0
- package/dist/chunk-7272KVWZ.js +60 -0
- package/dist/chunk-7272KVWZ.js.map +1 -0
- package/dist/chunk-72QC2GTL.js +36 -0
- package/dist/chunk-72QC2GTL.js.map +1 -0
- package/dist/chunk-7EQGGZBY.js +105 -0
- package/dist/chunk-7EQGGZBY.js.map +1 -0
- package/dist/chunk-A3LXWVYU.js +382 -0
- package/dist/chunk-A3LXWVYU.js.map +1 -0
- package/dist/chunk-AQYDZUJV.js +34 -0
- package/dist/chunk-AQYDZUJV.js.map +1 -0
- package/dist/chunk-BHCEVVUP.js +93 -0
- package/dist/chunk-BHCEVVUP.js.map +1 -0
- package/dist/chunk-BMUTAZX5.js +486 -0
- package/dist/chunk-BMUTAZX5.js.map +1 -0
- package/dist/chunk-DGG6IBBK.js +150 -0
- package/dist/chunk-DGG6IBBK.js.map +1 -0
- package/dist/{chunk-YBW5JSA3.js → chunk-FBCTUMHI.js} +123 -102
- package/dist/chunk-FBCTUMHI.js.map +1 -0
- package/dist/chunk-G2KJTFIC.js +97 -0
- package/dist/chunk-G2KJTFIC.js.map +1 -0
- package/dist/chunk-G4RKARXZ.js +1167 -0
- package/dist/chunk-G4RKARXZ.js.map +1 -0
- package/dist/chunk-H6UJJIUM.js +350 -0
- package/dist/chunk-H6UJJIUM.js.map +1 -0
- package/dist/chunk-JOTHDW4H.js +18 -0
- package/dist/chunk-JOTHDW4H.js.map +1 -0
- package/dist/chunk-L4GUEP7K.js +56480 -0
- package/dist/chunk-L4GUEP7K.js.map +1 -0
- package/dist/{chunk-SIOU2K4U.js → chunk-LJH2EYGT.js} +23 -23
- package/dist/chunk-MTJKSIGA.js +161 -0
- package/dist/chunk-MTJKSIGA.js.map +1 -0
- package/dist/chunk-MYHMB6GZ.js +202 -0
- package/dist/chunk-MYHMB6GZ.js.map +1 -0
- package/dist/chunk-PI5VIKJY.js +660 -0
- package/dist/chunk-PI5VIKJY.js.map +1 -0
- package/dist/{chunk-RIY7GYQS.js → chunk-PTSROVDG.js} +2 -2
- package/dist/chunk-PUIUXIOL.js +189 -0
- package/dist/chunk-PUIUXIOL.js.map +1 -0
- package/dist/chunk-R6VXJIMB.js +19 -0
- package/dist/chunk-R6VXJIMB.js.map +1 -0
- package/dist/chunk-RLJUNVAM.js +15 -0
- package/dist/chunk-RLJUNVAM.js.map +1 -0
- package/dist/chunk-RR6APCBK.js +213 -0
- package/dist/chunk-RR6APCBK.js.map +1 -0
- package/dist/{chunk-TXTQIYCV.js → chunk-RUQ4I6DO.js} +59 -13
- package/dist/chunk-RUQ4I6DO.js.map +1 -0
- package/dist/{chunk-WYBDERIY.js → chunk-RWEEUDHD.js} +53 -42
- package/dist/chunk-RWEEUDHD.js.map +1 -0
- package/dist/chunk-S7MSQQL6.js +158 -0
- package/dist/chunk-S7MSQQL6.js.map +1 -0
- package/dist/{chunk-5Q54VCCH.js → chunk-SHO4YO4B.js} +20 -36
- package/dist/chunk-SHO4YO4B.js.map +1 -0
- package/dist/{chunk-HHZSZYYF.js → chunk-T3HSWMA5.js} +20 -4
- package/dist/chunk-T3HSWMA5.js.map +1 -0
- package/dist/{chunk-YRKRZ6OF.js → chunk-TOOJIBJC.js} +2 -2
- package/dist/chunk-UCUOTRS6.js +431 -0
- package/dist/chunk-UCUOTRS6.js.map +1 -0
- package/dist/chunk-UH4K7GP7.js +424 -0
- package/dist/chunk-UH4K7GP7.js.map +1 -0
- package/dist/chunk-UIZWGPHV.js +120 -0
- package/dist/chunk-UIZWGPHV.js.map +1 -0
- package/dist/chunk-VLUKBV6Y.js +1170 -0
- package/dist/chunk-VLUKBV6Y.js.map +1 -0
- package/dist/chunk-W2QQ5Y6K.js +55 -0
- package/dist/chunk-W2QQ5Y6K.js.map +1 -0
- package/dist/{chunk-Y3KNXVTD.js → chunk-W3NBPR4E.js} +131 -31
- package/dist/chunk-W3NBPR4E.js.map +1 -0
- package/dist/{chunk-NRMCVHAU.js → chunk-WMGO4HJU.js} +11 -9
- package/dist/chunk-WMGO4HJU.js.map +1 -0
- package/dist/{chunk-MYBZRDTY.js → chunk-WQI7VNN4.js} +19 -9
- package/dist/chunk-WQI7VNN4.js.map +1 -0
- package/dist/{chunk-PX3VCKAU.js → chunk-WVCFSOUZ.js} +1 -1
- package/dist/{chunk-PX3VCKAU.js.map → chunk-WVCFSOUZ.js.map} +1 -1
- package/dist/chunk-XB6GQLBH.js +76 -0
- package/dist/chunk-XB6GQLBH.js.map +1 -0
- package/dist/{chunk-D2HKF2EF.js → chunk-XP5M3IKT.js} +2 -2
- package/dist/{chunk-O77VSFYZ.js → chunk-ZMPU5BWE.js} +12 -2
- package/dist/chunk-ZMPU5BWE.js.map +1 -0
- package/dist/{chunk-3SIZGL3O.js → chunk-ZYVEJFNU.js} +22 -18
- package/dist/chunk-ZYVEJFNU.js.map +1 -0
- package/dist/claude-provider-account-authority.d.ts +18 -0
- package/dist/claude-subscription-oauth.d.ts +25 -0
- package/dist/claude-subscription-usage.d.ts +95 -1
- package/dist/client-error-report.d.ts +154 -8
- package/dist/client-error-report.js +157 -2
- package/dist/client-error-report.js.map +1 -1
- package/dist/code-search.d.ts +1 -1
- package/dist/code-search.js.map +1 -1
- package/dist/codex-provider-account-authority.js +23 -12
- package/dist/codex-provider-account-authority.js.map +1 -1
- package/dist/company-profile.d.ts +144 -0
- package/dist/connect.d.ts +38 -0
- package/dist/connect.js +244 -164
- package/dist/connect.js.map +1 -1
- package/dist/connection-account-label.d.ts +2 -0
- package/dist/connection-account-label.js +34 -0
- package/dist/connection-account-label.js.map +1 -0
- package/dist/connection-authority.js +49 -24
- package/dist/connector-attachments.js +3 -1
- package/dist/connector-destinations.js +3 -1
- package/dist/connector-tool-permissions.d.ts +68 -4
- package/dist/credential-profiles.d.ts +166 -0
- package/dist/cua-desktop-tools.d.ts +19 -0
- package/dist/define-schema.d.ts +8 -0
- package/dist/desktop-app.d.ts +28 -0
- package/dist/direct-model-provider.d.ts +38 -0
- package/dist/document-artifact-commands.js +2 -2
- package/dist/document-artifact-query.js +2 -2
- package/dist/editable-artifact-binary.d.ts +7 -0
- package/dist/editable-artifact-causal-frontier.js +2 -2
- package/dist/editable-artifact-codec-registry.js +7 -7
- package/dist/editable-artifact-committed-transaction.js +4 -2
- package/dist/editable-artifact-live.js +8 -8
- package/dist/editable-artifact-serialized-commit.js +9 -9
- package/dist/editable-artifact-versions.d.ts +7 -1
- package/dist/editable-artifact-versions.js +1 -1
- package/dist/editable-artifacts.js +49 -43
- package/dist/event-preview.d.ts +22 -0
- package/dist/event-triggers.d.ts +1253 -0
- package/dist/event-triggers.js +148 -0
- package/dist/event-triggers.js.map +1 -0
- package/dist/external-identities.d.ts +34 -0
- package/dist/external-identities.js +4 -2
- package/dist/feedback.d.ts +181 -0
- package/dist/file-access.d.ts +23 -0
- package/dist/first-party-tool-authorization.d.ts +852 -0
- package/dist/github-repository-contracts.js +64 -43
- package/dist/github-repository-contracts.js.map +1 -1
- package/dist/google-drive-native-retirement.d.ts +12 -0
- package/dist/google-drive-native-retirement.js +20 -0
- package/dist/google-drive-native-retirement.js.map +1 -0
- package/dist/google-drive.d.ts +1 -1
- package/dist/google-drive.js +323 -239
- package/dist/google-drive.js.map +1 -1
- package/dist/host-mcp-bindings.js +250 -198
- package/dist/host-mcp-bindings.js.map +1 -1
- package/dist/index.d.ts +29072 -20593
- package/dist/index.js +2432 -366
- package/dist/inference-residency.d.ts +22 -0
- package/dist/insights-usage.d.ts +948 -0
- package/dist/insights-usage.js +608 -0
- package/dist/insights-usage.js.map +1 -0
- package/dist/integration-capability-id.d.ts +8 -0
- package/dist/interaction-action-deadline.d.ts +48 -0
- package/dist/interaction-driver-diagnostic.d.ts +28 -0
- package/dist/interaction.d.ts +2126 -881
- package/dist/knowledge-entries.d.ts +38 -0
- package/dist/knowledge-preparation.d.ts +4 -0
- package/dist/learning-refusal.d.ts +43 -0
- package/dist/learning-refusal.js +49 -0
- package/dist/learning-refusal.js.map +1 -0
- package/dist/managed-auth-session-sets.d.ts +1 -0
- package/dist/managed-auth-session-sets.js +207 -146
- package/dist/managed-auth-session-sets.js.map +1 -1
- package/dist/managed-sign-in-methods.d.ts +96 -0
- package/dist/managed-sign-in-methods.js +157 -35
- package/dist/managed-sign-in-methods.js.map +1 -1
- package/dist/mcp-structured-content.d.ts +25 -0
- package/dist/message-time-zone.d.ts +38 -0
- package/dist/message-time-zone.js +19 -0
- package/dist/message-time-zone.js.map +1 -0
- package/dist/modal-native-proof-v2.d.ts +587 -0
- package/dist/modal-native-proof-v2.js +39 -0
- package/dist/modal-native-proof-v2.js.map +1 -0
- package/dist/model-account-choice.d.ts +237 -0
- package/dist/model-account-settings.d.ts +422 -0
- package/dist/model-availability.d.ts +15 -0
- package/dist/model-connection-access.d.ts +13 -0
- package/dist/model-context-inspector.d.ts +8 -0
- package/dist/model-display.d.ts +43 -0
- package/dist/model-display.js +17 -0
- package/dist/model-display.js.map +1 -0
- package/dist/model-picker-order.js.map +1 -1
- package/dist/model-residency.d.ts +304 -0
- package/dist/organization-access.d.ts +416 -0
- package/dist/organization-access.js +40 -0
- package/dist/organization-access.js.map +1 -0
- package/dist/organization-integration-policy.d.ts +18 -0
- package/dist/organization-membership-lifecycle.d.ts +66 -0
- package/dist/organization-model-usage.d.ts +146 -0
- package/dist/organization-model-usage.js +87 -0
- package/dist/organization-model-usage.js.map +1 -0
- package/dist/organization-recovery.js +3 -1
- package/dist/organization-usage.d.ts +12 -0
- package/dist/passkey-only-account.d.ts +14 -0
- package/dist/passkey-only-account.js +13 -0
- package/dist/passkey-only-account.js.map +1 -0
- package/dist/permissions.d.ts +19 -0
- package/dist/personal-github.js +220 -148
- package/dist/personal-github.js.map +1 -1
- package/dist/personal-integration-setup.d.ts +81 -0
- package/dist/personal-integration-setup.js +42 -0
- package/dist/personal-integration-setup.js.map +1 -0
- package/dist/prepared-mcp-setup.d.ts +54 -0
- package/dist/prepared-mcp-setup.js +13 -0
- package/dist/prepared-mcp-setup.js.map +1 -0
- package/dist/presentation-artifact-commands.js +2 -2
- package/dist/presentation-artifact-query.js +2 -2
- package/dist/primitives.d.ts +18 -0
- package/dist/product-analytics.d.ts +27 -10
- package/dist/product-lifecycle-facts.d.ts +26 -3
- package/dist/prompt-cache-diagnostics.d.ts +92 -0
- package/dist/recordings.d.ts +1371 -0
- package/dist/remember.d.ts +98 -2
- package/dist/retained-output.d.ts +4 -2
- package/dist/sandbox-file-artifacts.d.ts +19 -2
- package/dist/sandbox-provider-command.d.ts +5 -44
- package/dist/sandbox-recovery.d.ts +139 -8
- package/dist/secret-generator.d.ts +44 -0
- package/dist/secret-mask-strings.d.ts +32 -0
- package/dist/secret-references.d.ts +90 -0
- package/dist/secret-resolution.d.ts +143 -0
- package/dist/secret-shape-masking.d.ts +52 -0
- package/dist/secret-shape-masking.js +19 -0
- package/dist/secret-shape-masking.js.map +1 -0
- package/dist/secret-totp.d.ts +41 -0
- package/dist/secret-use-approval-question.d.ts +11 -0
- package/dist/secret-use-approval-question.js +11 -0
- package/dist/secret-use-approval-question.js.map +1 -0
- package/dist/secret-use-approvals.d.ts +106 -0
- package/dist/secret-value-masking.d.ts +299 -0
- package/dist/secret-value-masking.js +62 -0
- package/dist/secret-value-masking.js.map +1 -0
- package/dist/secret-value.d.ts +19 -0
- package/dist/session-history-import.d.ts +444 -8
- package/dist/session-history.d.ts +111 -0
- package/dist/session-history.js +35 -0
- package/dist/session-history.js.map +1 -0
- package/dist/session-list-entries.d.ts +8 -0
- package/dist/session-list-entries.js +61 -0
- package/dist/session-list-entries.js.map +1 -0
- package/dist/session-mcp-projections.d.ts +13 -1
- package/dist/session-mcp-tool-permissions.d.ts +62 -0
- package/dist/session-target.d.ts +18 -0
- package/dist/session-titles.d.ts +8 -0
- package/dist/session-titles.js +5 -1
- package/dist/session-usage-limit-refusal.d.ts +34 -0
- package/dist/session-usage-limit-refusal.js +15 -0
- package/dist/session-usage-limit-refusal.js.map +1 -0
- package/dist/session-usage-limits.d.ts +127 -0
- package/dist/session-usage-limits.js +43 -0
- package/dist/session-usage-limits.js.map +1 -0
- package/dist/site-data.d.ts +286 -0
- package/dist/site-operations.d.ts +39 -0
- package/dist/site-publishing.d.ts +813 -0
- package/dist/site-session-http.d.ts +103 -4
- package/dist/site-session-http.js +27 -1
- package/dist/site-sql.d.ts +425 -0
- package/dist/skills.d.ts +38 -0
- package/dist/slack-bot-scopes.d.ts +9 -7
- package/dist/slack-bot-scopes.js +6 -3
- package/dist/slack-rest-mcp.d.ts +36 -0
- package/dist/slack-rest-mcp.js +25 -0
- package/dist/slack-rest-mcp.js.map +1 -0
- package/dist/spreadsheet-artifact-commands.d.ts +14 -1
- package/dist/spreadsheet-artifact-commands.js +9 -2
- package/dist/spreadsheet-artifact-query.d.ts +13 -6
- package/dist/spreadsheet-artifact-query.js +4 -3
- package/dist/subscription-account-actions.d.ts +83 -0
- package/dist/subscription-account-pools.d.ts +326 -0
- package/dist/subscription-personal-authority-v2.d.ts +28 -0
- package/dist/subscription-personal-authority-v2.js +13 -0
- package/dist/subscription-personal-authority-v2.js.map +1 -0
- package/dist/subscription-plans.d.ts +38 -0
- package/dist/subscription-usage-pool.d.ts +89 -0
- package/dist/tool-action-review.d.ts +141 -0
- package/dist/tool-catalog.d.ts +479 -0
- package/dist/tool-policy.d.ts +5 -0
- package/dist/tool-review-presentation.d.ts +29 -0
- package/dist/tool-review-presentation.js +21 -0
- package/dist/tool-review-presentation.js.map +1 -0
- package/dist/turn-serving-policy.d.ts +223 -0
- package/dist/usage-allowances.d.ts +30 -0
- package/dist/usage-allowances.js +5 -1
- package/dist/values.d.ts +11 -0
- package/dist/values.js +19 -0
- package/dist/values.js.map +1 -0
- package/dist/vault-provider-wire.d.ts +907 -0
- package/dist/vault-provider-wire.js +74 -0
- package/dist/vault-provider-wire.js.map +1 -0
- package/dist/vaults.d.ts +2185 -0
- package/dist/video-generation.d.ts +75 -0
- package/dist/video-generation.js +8 -1
- package/dist/workspace-control-event.d.ts +18 -0
- package/dist/workspace-control-event.js +18 -0
- package/dist/workspace-control-event.js.map +1 -0
- package/dist/workspace-governance-context.d.ts +18 -0
- package/dist/workspace-integration-wire.d.ts +1 -1
- package/dist/workspace-integration-wire.js +1 -1
- package/dist/workspace-integrations.d.ts +212 -12
- package/dist/xai-provider-account-authority.js +3 -1
- package/package.json +121 -4
- package/src/agent-authored-durable-text.ts +14 -11
- package/src/agent-config.ts +382 -203
- package/src/agent-instruction-changes.ts +94 -74
- package/src/agent-learning.ts +94 -66
- package/src/agent-topology.ts +58 -52
- package/src/api-key-presets.ts +28 -0
- package/src/app-action-catalog-types.ts +32 -0
- package/src/app-action-catalog.gen.ts +9905 -0
- package/src/app-actions.ts +365 -0
- package/src/app-shot.ts +176 -0
- package/src/artifact-catalog.ts +81 -46
- package/src/artifacts.ts +360 -227
- package/src/atlassian-native-retirement.ts +33 -0
- package/src/atlassian.ts +136 -108
- package/src/automation-templates.ts +201 -0
- package/src/billing-subscriptions.ts +48 -0
- package/src/bots.ts +238 -0
- package/src/bundled-skills.ts +79 -22
- package/src/canonical-human-identities.ts +65 -62
- package/src/child-lifecycle-notice-protocol.gen.json +1310 -0
- package/src/child-lifecycle-notice-protocol.ts +224 -0
- package/src/claude-provider-account-authority.ts +12 -0
- package/src/claude-subscription-oauth.ts +61 -19
- package/src/claude-subscription-usage.ts +64 -35
- package/src/client-error-report.ts +344 -9
- package/src/code-search.ts +1 -1
- package/src/codex-provider-account-authority.ts +22 -16
- package/src/company-brain-governed-writes.ts +265 -244
- package/src/company-brain.ts +165 -154
- package/src/company-profile.ts +362 -297
- package/src/connect.ts +222 -173
- package/src/connection-account-label.ts +45 -0
- package/src/connection-authority.ts +172 -152
- package/src/connector-attachments.ts +139 -123
- package/src/connector-destinations.ts +48 -43
- package/src/connector-tool-permissions.ts +104 -46
- package/src/credential-profiles.ts +161 -0
- package/src/cua-desktop-tools.gen.json +6722 -0
- package/src/cua-desktop-tools.linux.gen.json +6798 -0
- package/src/cua-desktop-tools.ts +42 -0
- package/src/cua-desktop-tools.windows.gen.json +6739 -0
- package/src/define-schema.ts +10 -0
- package/src/desktop-app.ts +50 -0
- package/src/direct-model-provider.ts +112 -0
- package/src/editable-artifact-binary.ts +29 -8
- package/src/editable-artifact-committed-transaction.ts +19 -18
- package/src/editable-artifact-serialized-commit.ts +8 -2
- package/src/editable-artifact-versions.ts +7 -1
- package/src/event-preview.ts +53 -3
- package/src/event-triggers.ts +891 -0
- package/src/external-identities.ts +239 -195
- package/src/feedback.ts +125 -30
- package/src/file-access.ts +26 -0
- package/src/first-party-tool-authorization.ts +383 -0
- package/src/github-repository-contracts.ts +78 -64
- package/src/google-drive-native-retirement.ts +20 -0
- package/src/google-drive.ts +286 -234
- package/src/governed-learning-activation.ts +159 -137
- package/src/governed-learning-evaluator.ts +141 -133
- package/src/host-mcp-bindings.ts +244 -221
- package/src/image-generation.ts +105 -95
- package/src/index.ts +13928 -9899
- package/src/inference-residency.ts +36 -0
- package/src/insights-usage.ts +774 -0
- package/src/integration-capability-id.ts +16 -0
- package/src/interaction-action-deadline.ts +143 -0
- package/src/interaction-driver-diagnostic.ts +89 -0
- package/src/interaction.ts +3527 -2427
- package/src/knowledge-entries.ts +386 -299
- package/src/knowledge-preparation.ts +49 -41
- package/src/knowledge.ts +242 -213
- package/src/learning-refusal.ts +90 -0
- package/src/managed-auth-session-sets.ts +180 -133
- package/src/managed-sign-in-methods.ts +156 -34
- package/src/mcp-oauth.ts +58 -46
- package/src/mcp-receipts.ts +199 -194
- package/src/mcp-structured-content.ts +81 -0
- package/src/memory-slack-delivery.ts +172 -142
- package/src/message-time-zone.ts +109 -0
- package/src/modal-native-proof-v2.ts +430 -0
- package/src/model-account-choice.ts +178 -0
- package/src/model-account-settings.ts +210 -0
- package/src/model-availability.ts +22 -0
- package/src/model-connection-access.ts +62 -14
- package/src/model-context-inspector.ts +130 -109
- package/src/model-display.ts +221 -0
- package/src/model-picker-order.ts +1 -1
- package/src/model-residency.ts +535 -0
- package/src/organization-access.ts +216 -0
- package/src/organization-integration-policy.ts +47 -28
- package/src/organization-membership-lifecycle.ts +558 -384
- package/src/organization-model-usage.ts +82 -0
- package/src/organization-recovery.ts +148 -135
- package/src/organization-usage.ts +84 -52
- package/src/passkey-only-account.ts +29 -0
- package/src/permissions.ts +94 -52
- package/src/personal-github.ts +211 -171
- package/src/personal-integration-setup.ts +150 -0
- package/src/preference-registry.ts +319 -263
- package/src/prepared-mcp-setup.ts +190 -0
- package/src/primitives.ts +22 -0
- package/src/product-analytics.ts +40 -15
- package/src/product-lifecycle-facts.ts +50 -20
- package/src/prompt-cache-diagnostics.ts +212 -0
- package/src/recordings.ts +1153 -0
- package/src/remember.ts +184 -172
- package/src/retained-output.ts +181 -168
- package/src/sandbox-file-artifacts.ts +78 -57
- package/src/sandbox-provider-command.ts +55 -72
- package/src/sandbox-recovery.ts +163 -77
- package/src/scoped-knowledge.ts +62 -43
- package/src/secret-generator.ts +156 -0
- package/src/secret-mask-strings.ts +175 -0
- package/src/secret-references.ts +414 -0
- package/src/secret-resolution.ts +322 -0
- package/src/secret-shape-masking.ts +573 -0
- package/src/secret-totp.ts +188 -0
- package/src/secret-use-approval-question.ts +22 -0
- package/src/secret-use-approvals.ts +219 -0
- package/src/secret-value-masking.ts +1283 -0
- package/src/secret-value.ts +22 -0
- package/src/session-goal-reports.ts +55 -49
- package/src/session-history-import.ts +84 -68
- package/src/session-history.ts +197 -0
- package/src/session-list-entries.ts +106 -0
- package/src/session-mcp-projections.ts +21 -3
- package/src/session-mcp-tool-permissions.ts +109 -0
- package/src/session-message-search.ts +46 -38
- package/src/session-target.ts +58 -0
- package/src/session-titles.ts +40 -4
- package/src/session-topology-primitives.ts +20 -12
- package/src/session-usage-limit-refusal.ts +101 -0
- package/src/session-usage-limits.ts +169 -0
- package/src/signup-attribution.ts +20 -15
- package/src/site-data.ts +337 -0
- package/src/site-operations.ts +154 -0
- package/src/site-publishing.ts +903 -0
- package/src/site-session-http.ts +344 -16
- package/src/site-sql.ts +1120 -0
- package/src/skill-use.ts +18 -17
- package/src/skills.ts +105 -50
- package/src/slack-bot-scopes.ts +18 -35
- package/src/slack-rest-mcp.ts +222 -0
- package/src/slack-task-policy.ts +97 -73
- package/src/spreadsheet-artifact-commands.ts +74 -13
- package/src/spreadsheet-artifact-query.ts +188 -50
- package/src/subscription-account-actions.ts +103 -0
- package/src/subscription-account-pools.ts +74 -0
- package/src/subscription-personal-authority-v2.ts +69 -0
- package/src/subscription-plans.ts +51 -0
- package/src/subscription-usage-pool.ts +44 -0
- package/src/task-notes.ts +70 -68
- package/src/tool-action-review.ts +271 -0
- package/src/tool-catalog.ts +694 -379
- package/src/tool-policy.ts +82 -0
- package/src/tool-result-spill.ts +13 -9
- package/src/tool-review-presentation.ts +643 -0
- package/src/turn-serving-policy.ts +167 -0
- package/src/usage-allowances.ts +212 -136
- package/src/values.ts +25 -0
- package/src/vault-provider-wire.ts +580 -0
- package/src/vaults.ts +1296 -0
- package/src/video-generation.ts +430 -361
- package/src/work-claims.ts +183 -166
- package/src/workspace-control-event.ts +134 -0
- package/src/workspace-governance-context.ts +63 -0
- package/src/workspace-instruction-policies.ts +346 -279
- package/src/workspace-integration-wire.ts +10 -0
- package/src/workspace-integrations.ts +488 -398
- package/src/workspace-learning-administration.ts +58 -44
- package/src/workspace-learning-policy.ts +126 -99
- package/src/workspace-state.ts +239 -220
- package/src/xai-provider-account-authority.ts +23 -17
- package/dist/chunk-3SIZGL3O.js.map +0 -1
- package/dist/chunk-566IFOVP.js +0 -26133
- package/dist/chunk-566IFOVP.js.map +0 -1
- package/dist/chunk-5IXYF6XN.js +0 -728
- package/dist/chunk-5IXYF6XN.js.map +0 -1
- package/dist/chunk-5Q54VCCH.js.map +0 -1
- package/dist/chunk-BCS7WHCK.js +0 -139
- package/dist/chunk-BCS7WHCK.js.map +0 -1
- package/dist/chunk-EK7NDGFR.js +0 -128
- package/dist/chunk-EK7NDGFR.js.map +0 -1
- package/dist/chunk-GRG7PHWQ.js +0 -25
- package/dist/chunk-GRG7PHWQ.js.map +0 -1
- package/dist/chunk-HHZSZYYF.js.map +0 -1
- package/dist/chunk-ICDZGUX2.js +0 -186
- package/dist/chunk-ICDZGUX2.js.map +0 -1
- package/dist/chunk-JUFK3T4Q.js +0 -80
- package/dist/chunk-JUFK3T4Q.js.map +0 -1
- package/dist/chunk-MYBZRDTY.js.map +0 -1
- package/dist/chunk-NRMCVHAU.js.map +0 -1
- package/dist/chunk-O77VSFYZ.js.map +0 -1
- package/dist/chunk-P3HLDT77.js +0 -59
- package/dist/chunk-P3HLDT77.js.map +0 -1
- package/dist/chunk-TXTQIYCV.js.map +0 -1
- package/dist/chunk-WYBDERIY.js.map +0 -1
- package/dist/chunk-Y3KNXVTD.js.map +0 -1
- package/dist/chunk-YBW5JSA3.js.map +0 -1
- package/dist/chunk-YRXAWWCU.js +0 -45
- package/dist/chunk-YRXAWWCU.js.map +0 -1
- package/dist/chunk-YWMOIZ6A.js +0 -185
- package/dist/chunk-YWMOIZ6A.js.map +0 -1
- package/dist/site-request-headers.test.d.ts +0 -1
- package/dist/transcription-recordings.d.ts +0 -300
- package/src/transcription-recordings.ts +0 -169
- /package/dist/{chunk-SIOU2K4U.js.map → chunk-LJH2EYGT.js.map} +0 -0
- /package/dist/{chunk-RIY7GYQS.js.map → chunk-PTSROVDG.js.map} +0 -0
- /package/dist/{chunk-YRKRZ6OF.js.map → chunk-TOOJIBJC.js.map} +0 -0
- /package/dist/{chunk-D2HKF2EF.js.map → chunk-XP5M3IKT.js.map} +0 -0
package/dist/remember.d.ts
CHANGED
|
@@ -22,8 +22,8 @@ export declare const RememberScope: z.ZodEnum<{
|
|
|
22
22
|
export type RememberScope = z.infer<typeof RememberScope>;
|
|
23
23
|
/**
|
|
24
24
|
* Ceiling for the Knowledge lane, which is retrieval evidence rather than
|
|
25
|
-
* always-composed prompt text.
|
|
26
|
-
*
|
|
25
|
+
* always-composed prompt text. Other lanes have their own destination bounds:
|
|
26
|
+
* see `AGENT_AUTHORED_INSTRUCTION_POLICY_CONTENT_MAX_CHARS` and
|
|
27
27
|
* `AGENT_AUTHORED_PREFERENCE_CONTENT_MAX_CHARS`.
|
|
28
28
|
*/
|
|
29
29
|
export declare const REMEMBER_CONTENT_MAX_CHARS = 4000;
|
|
@@ -82,6 +82,7 @@ export declare const RememberHumanInputPrompt: z.ZodObject<{
|
|
|
82
82
|
id: z.ZodString;
|
|
83
83
|
kind: z.ZodEnum<{
|
|
84
84
|
multi_select: "multi_select";
|
|
85
|
+
secret: "secret";
|
|
85
86
|
single_select: "single_select";
|
|
86
87
|
text: "text";
|
|
87
88
|
}>;
|
|
@@ -101,6 +102,53 @@ export declare const RememberHumanInputPrompt: z.ZodObject<{
|
|
|
101
102
|
label: z.ZodString;
|
|
102
103
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
103
104
|
}, z.core.$strip>>>;
|
|
105
|
+
secret: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
106
|
+
item: z.ZodString;
|
|
107
|
+
field: z.ZodDefault<z.ZodString>;
|
|
108
|
+
fieldKind: z.ZodDefault<z.ZodEnum<{
|
|
109
|
+
concealed: "concealed";
|
|
110
|
+
text: "text";
|
|
111
|
+
totp: "totp";
|
|
112
|
+
}>>;
|
|
113
|
+
itemType: z.ZodDefault<z.ZodEnum<{
|
|
114
|
+
api_key: "api_key";
|
|
115
|
+
card: "card";
|
|
116
|
+
identity: "identity";
|
|
117
|
+
login: "login";
|
|
118
|
+
note: "note";
|
|
119
|
+
ssh_key: "ssh_key";
|
|
120
|
+
}>>;
|
|
121
|
+
username: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
122
|
+
prompt: z.ZodString;
|
|
123
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
124
|
+
}, z.core.$strict>>>;
|
|
125
|
+
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
126
|
+
looksLike: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
127
|
+
pattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
128
|
+
saveTo: z.ZodDefault<z.ZodEnum<{
|
|
129
|
+
task: "task";
|
|
130
|
+
user: "user";
|
|
131
|
+
workspace: "workspace";
|
|
132
|
+
}>>;
|
|
133
|
+
vault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
134
|
+
allowGenerate: z.ZodDefault<z.ZodBoolean>;
|
|
135
|
+
generate: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
136
|
+
length: z.ZodDefault<z.ZodNumber>;
|
|
137
|
+
lowercase: z.ZodDefault<z.ZodBoolean>;
|
|
138
|
+
uppercase: z.ZodDefault<z.ZodBoolean>;
|
|
139
|
+
digits: z.ZodDefault<z.ZodBoolean>;
|
|
140
|
+
symbols: z.ZodDefault<z.ZodBoolean>;
|
|
141
|
+
symbolSet: z.ZodDefault<z.ZodString>;
|
|
142
|
+
excludeAmbiguous: z.ZodDefault<z.ZodBoolean>;
|
|
143
|
+
requireEachClass: z.ZodDefault<z.ZodBoolean>;
|
|
144
|
+
}, z.core.$strict>>>;
|
|
145
|
+
autocomplete: z.ZodDefault<z.ZodEnum<{
|
|
146
|
+
"current-password": "current-password";
|
|
147
|
+
"new-password": "new-password";
|
|
148
|
+
off: "off";
|
|
149
|
+
"one-time-code": "one-time-code";
|
|
150
|
+
}>>;
|
|
151
|
+
}, z.core.$strict>>>;
|
|
104
152
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
105
153
|
allowOther: z.ZodDefault<z.ZodBoolean>;
|
|
106
154
|
validation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -273,6 +321,7 @@ export declare const RememberReceipt: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
273
321
|
id: z.ZodString;
|
|
274
322
|
kind: z.ZodEnum<{
|
|
275
323
|
multi_select: "multi_select";
|
|
324
|
+
secret: "secret";
|
|
276
325
|
single_select: "single_select";
|
|
277
326
|
text: "text";
|
|
278
327
|
}>;
|
|
@@ -292,6 +341,53 @@ export declare const RememberReceipt: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
292
341
|
label: z.ZodString;
|
|
293
342
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
294
343
|
}, z.core.$strip>>>;
|
|
344
|
+
secret: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
345
|
+
item: z.ZodString;
|
|
346
|
+
field: z.ZodDefault<z.ZodString>;
|
|
347
|
+
fieldKind: z.ZodDefault<z.ZodEnum<{
|
|
348
|
+
concealed: "concealed";
|
|
349
|
+
text: "text";
|
|
350
|
+
totp: "totp";
|
|
351
|
+
}>>;
|
|
352
|
+
itemType: z.ZodDefault<z.ZodEnum<{
|
|
353
|
+
api_key: "api_key";
|
|
354
|
+
card: "card";
|
|
355
|
+
identity: "identity";
|
|
356
|
+
login: "login";
|
|
357
|
+
note: "note";
|
|
358
|
+
ssh_key: "ssh_key";
|
|
359
|
+
}>>;
|
|
360
|
+
username: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
361
|
+
prompt: z.ZodString;
|
|
362
|
+
value: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
363
|
+
}, z.core.$strict>>>;
|
|
364
|
+
website: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
365
|
+
looksLike: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
366
|
+
pattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
367
|
+
saveTo: z.ZodDefault<z.ZodEnum<{
|
|
368
|
+
task: "task";
|
|
369
|
+
user: "user";
|
|
370
|
+
workspace: "workspace";
|
|
371
|
+
}>>;
|
|
372
|
+
vault: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
373
|
+
allowGenerate: z.ZodDefault<z.ZodBoolean>;
|
|
374
|
+
generate: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
375
|
+
length: z.ZodDefault<z.ZodNumber>;
|
|
376
|
+
lowercase: z.ZodDefault<z.ZodBoolean>;
|
|
377
|
+
uppercase: z.ZodDefault<z.ZodBoolean>;
|
|
378
|
+
digits: z.ZodDefault<z.ZodBoolean>;
|
|
379
|
+
symbols: z.ZodDefault<z.ZodBoolean>;
|
|
380
|
+
symbolSet: z.ZodDefault<z.ZodString>;
|
|
381
|
+
excludeAmbiguous: z.ZodDefault<z.ZodBoolean>;
|
|
382
|
+
requireEachClass: z.ZodDefault<z.ZodBoolean>;
|
|
383
|
+
}, z.core.$strict>>>;
|
|
384
|
+
autocomplete: z.ZodDefault<z.ZodEnum<{
|
|
385
|
+
"current-password": "current-password";
|
|
386
|
+
"new-password": "new-password";
|
|
387
|
+
off: "off";
|
|
388
|
+
"one-time-code": "one-time-code";
|
|
389
|
+
}>>;
|
|
390
|
+
}, z.core.$strict>>>;
|
|
295
391
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
296
392
|
allowOther: z.ZodDefault<z.ZodBoolean>;
|
|
297
393
|
validation: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
@@ -11,8 +11,6 @@ export declare const COMPUTER_SCREENSHOT_MAX_DIMENSION = 16384;
|
|
|
11
11
|
export declare const COMPUTER_SCREENSHOT_MAX_PIXELS = 67108864;
|
|
12
12
|
/** Canonical ready-object retention window: 30 days from successful settlement. */
|
|
13
13
|
export declare const COMPUTER_SCREENSHOT_RETENTION_MS: number;
|
|
14
|
-
/** Hard workspace reservation across pending + ready screenshot artifacts. */
|
|
15
|
-
export declare const COMPUTER_SCREENSHOT_WORKSPACE_QUOTA_BYTES: number;
|
|
16
14
|
/** Generated images are permanent workspace files, never inline history blobs. */
|
|
17
15
|
export declare const GENERATED_IMAGE_MAX_BYTES: number;
|
|
18
16
|
/** Generated videos are permanent workspace files and are always streamed. */
|
|
@@ -38,6 +36,7 @@ export declare const RetainedOutputUnavailableReason: z.ZodEnum<{
|
|
|
38
36
|
not_retained: "not_retained";
|
|
39
37
|
oversized: "oversized";
|
|
40
38
|
pending: "pending";
|
|
39
|
+
private: "private";
|
|
41
40
|
quota_exceeded: "quota_exceeded";
|
|
42
41
|
storage_write_failed: "storage_write_failed";
|
|
43
42
|
unsupported: "unsupported";
|
|
@@ -97,6 +96,7 @@ export declare const RetainedOutputEvidenceSchema: z.ZodDiscriminatedUnion<[z.Zo
|
|
|
97
96
|
not_retained: "not_retained";
|
|
98
97
|
oversized: "oversized";
|
|
99
98
|
pending: "pending";
|
|
99
|
+
private: "private";
|
|
100
100
|
quota_exceeded: "quota_exceeded";
|
|
101
101
|
storage_write_failed: "storage_write_failed";
|
|
102
102
|
unsupported: "unsupported";
|
|
@@ -153,6 +153,7 @@ export declare const RetainedArtifactUnavailableSchema: z.ZodObject<{
|
|
|
153
153
|
not_retained: "not_retained";
|
|
154
154
|
oversized: "oversized";
|
|
155
155
|
pending: "pending";
|
|
156
|
+
private: "private";
|
|
156
157
|
quota_exceeded: "quota_exceeded";
|
|
157
158
|
storage_write_failed: "storage_write_failed";
|
|
158
159
|
unsupported: "unsupported";
|
|
@@ -207,6 +208,7 @@ export declare const RetainedArtifactMetadataSchema: z.ZodUnion<readonly [z.ZodO
|
|
|
207
208
|
not_retained: "not_retained";
|
|
208
209
|
oversized: "oversized";
|
|
209
210
|
pending: "pending";
|
|
211
|
+
private: "private";
|
|
210
212
|
quota_exceeded: "quota_exceeded";
|
|
211
213
|
storage_write_failed: "storage_write_failed";
|
|
212
214
|
unsupported: "unsupported";
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Largest publishable sandbox file: one object-storage PUT. Files up to
|
|
4
|
+
* SANDBOX_FILE_ARTIFACT_INLINE_MAX_BYTES are read through Channel-A; larger
|
|
5
|
+
* files are hashed and uploaded by the box itself.
|
|
6
|
+
*/
|
|
7
|
+
export declare const SANDBOX_FILE_ARTIFACT_MAX_BYTES = 5000000000;
|
|
8
|
+
/**
|
|
9
|
+
* Channel-A returns one bounded binary-safe read. Keep inline publication
|
|
4
10
|
* below that ceiling so an extra sentinel byte can distinguish an exact file
|
|
5
11
|
* from a truncated prefix.
|
|
6
12
|
*/
|
|
7
|
-
export declare const
|
|
13
|
+
export declare const SANDBOX_FILE_ARTIFACT_INLINE_MAX_BYTES: number;
|
|
8
14
|
export declare const PublishSandboxFileArtifactRequest: z.ZodObject<{
|
|
9
15
|
path: z.ZodString;
|
|
16
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
17
|
+
private: "private";
|
|
18
|
+
workspace: "workspace";
|
|
19
|
+
}>>;
|
|
10
20
|
}, z.core.$strict>;
|
|
11
21
|
export type PublishSandboxFileArtifactRequest = z.infer<typeof PublishSandboxFileArtifactRequest>;
|
|
12
22
|
/**
|
|
@@ -53,5 +63,12 @@ export declare const SandboxFileArtifactReceipt: z.ZodObject<{
|
|
|
53
63
|
maxRangeBytes: z.ZodNumber;
|
|
54
64
|
}, z.core.$strict>;
|
|
55
65
|
}, z.core.$strict>;
|
|
66
|
+
access: z.ZodOptional<z.ZodObject<{
|
|
67
|
+
visibility: z.ZodEnum<{
|
|
68
|
+
private: "private";
|
|
69
|
+
workspace: "workspace";
|
|
70
|
+
}>;
|
|
71
|
+
whoCanOpen: z.ZodString;
|
|
72
|
+
}, z.core.$strict>>;
|
|
56
73
|
}, z.core.$strict>;
|
|
57
74
|
export type SandboxFileArtifactReceipt = z.infer<typeof SandboxFileArtifactReceipt>;
|
|
@@ -1,26 +1,4 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
/** Provider-owned execution identity and acknowledged output cursors. These
|
|
3
|
-
* values are retained by the control plane, never recovered from sandbox files. */
|
|
4
|
-
export declare const ModalLegacyProviderCommand: z.ZodObject<{
|
|
5
|
-
kind: z.ZodLiteral<"modal-control-v1">;
|
|
6
|
-
sandboxId: z.ZodString;
|
|
7
|
-
taskId: z.ZodString;
|
|
8
|
-
execId: z.ZodString;
|
|
9
|
-
pty: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
-
streams: z.ZodObject<{
|
|
11
|
-
stdout: z.ZodObject<{
|
|
12
|
-
batchIndex: z.ZodNumber;
|
|
13
|
-
utf8Remainder: z.ZodString;
|
|
14
|
-
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
15
|
-
}, z.core.$strict>;
|
|
16
|
-
stderr: z.ZodObject<{
|
|
17
|
-
batchIndex: z.ZodNumber;
|
|
18
|
-
utf8Remainder: z.ZodString;
|
|
19
|
-
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
20
|
-
}, z.core.$strict>;
|
|
21
|
-
}, z.core.$strict>;
|
|
22
|
-
}, z.core.$strict>;
|
|
23
|
-
export type ModalLegacyProviderCommand = z.infer<typeof ModalLegacyProviderCommand>;
|
|
24
2
|
export declare const CommandSupervisionDescriptor: z.ZodObject<{
|
|
25
3
|
protocol: z.ZodLiteral<"native-subreaper-v1">;
|
|
26
4
|
invocationId: z.ZodString;
|
|
@@ -63,27 +41,10 @@ export declare const ModalRouterProviderCommand: z.ZodObject<{
|
|
|
63
41
|
}, z.core.$strict>;
|
|
64
42
|
}, z.core.$strict>;
|
|
65
43
|
export type ModalRouterProviderCommand = z.infer<typeof ModalRouterProviderCommand>;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
sandboxId: z.ZodString;
|
|
71
|
-
taskId: z.ZodString;
|
|
72
|
-
execId: z.ZodString;
|
|
73
|
-
pty: z.ZodOptional<z.ZodBoolean>;
|
|
74
|
-
streams: z.ZodObject<{
|
|
75
|
-
stdout: z.ZodObject<{
|
|
76
|
-
batchIndex: z.ZodNumber;
|
|
77
|
-
utf8Remainder: z.ZodString;
|
|
78
|
-
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
79
|
-
}, z.core.$strict>;
|
|
80
|
-
stderr: z.ZodObject<{
|
|
81
|
-
batchIndex: z.ZodNumber;
|
|
82
|
-
utf8Remainder: z.ZodString;
|
|
83
|
-
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
84
|
-
}, z.core.$strict>;
|
|
85
|
-
}, z.core.$strict>;
|
|
86
|
-
}, z.core.$strict>, z.ZodObject<{
|
|
44
|
+
/** Provider-owned execution identity and acknowledged byte-offset cursors.
|
|
45
|
+
* These values are retained by the control plane, never recovered from
|
|
46
|
+
* sandbox files. */
|
|
47
|
+
export declare const SandboxProviderCommand: z.ZodObject<{
|
|
87
48
|
kind: z.ZodLiteral<"modal-router-v1">;
|
|
88
49
|
sandboxId: z.ZodString;
|
|
89
50
|
taskId: z.ZodString;
|
|
@@ -109,5 +70,5 @@ export declare const SandboxProviderCommand: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
109
70
|
exitCode: z.ZodNullable<z.ZodNumber>;
|
|
110
71
|
}, z.core.$strict>;
|
|
111
72
|
}, z.core.$strict>;
|
|
112
|
-
}, z.core.$strict
|
|
73
|
+
}, z.core.$strict>;
|
|
113
74
|
export type SandboxProviderCommand = z.infer<typeof SandboxProviderCommand>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
/** Public, content-free selection
|
|
2
|
+
/** Public, content-free selection of a registered native checkpoint, offered
|
|
3
|
+
* for human consent. Never include native provider bindings. */
|
|
3
4
|
export declare const SandboxRecoverySelection: z.ZodObject<{
|
|
4
5
|
version: z.ZodLiteral<1>;
|
|
5
6
|
sessionId: z.ZodString;
|
|
@@ -10,11 +11,46 @@ export declare const SandboxRecoverySelection: z.ZodObject<{
|
|
|
10
11
|
leaseEpoch: z.ZodNumber;
|
|
11
12
|
workspaceGeneration: z.ZodNumber;
|
|
12
13
|
archiveGeneration: z.ZodNumber;
|
|
13
|
-
artifactId: z.ZodString;
|
|
14
14
|
revision: z.ZodString;
|
|
15
15
|
capturedAt: z.ZodString;
|
|
16
|
+
artifactId: z.ZodString;
|
|
16
17
|
}, z.core.$strict>;
|
|
17
18
|
export type SandboxRecoverySelection = z.infer<typeof SandboxRecoverySelection>;
|
|
19
|
+
/** The checkpoint automatic recovery restores, native or portable. `artifactId`
|
|
20
|
+
* is the registered native checkpoint (Modal), or null for a portable archive,
|
|
21
|
+
* whose bytes are verified against `revision` instead. Only human consent uses
|
|
22
|
+
* {@link SandboxRecoverySelection}, which always names a native checkpoint. */
|
|
23
|
+
export declare const SandboxCheckpointSelection: z.ZodObject<{
|
|
24
|
+
version: z.ZodLiteral<1>;
|
|
25
|
+
sessionId: z.ZodString;
|
|
26
|
+
sandboxGroupId: z.ZodString;
|
|
27
|
+
leaseId: z.ZodString;
|
|
28
|
+
routeEpoch: z.ZodNumber;
|
|
29
|
+
authorityEpoch: z.ZodNumber;
|
|
30
|
+
leaseEpoch: z.ZodNumber;
|
|
31
|
+
workspaceGeneration: z.ZodNumber;
|
|
32
|
+
archiveGeneration: z.ZodNumber;
|
|
33
|
+
revision: z.ZodString;
|
|
34
|
+
capturedAt: z.ZodString;
|
|
35
|
+
artifactId: z.ZodNullable<z.ZodString>;
|
|
36
|
+
}, z.core.$strict>;
|
|
37
|
+
export type SandboxCheckpointSelection = z.infer<typeof SandboxCheckpointSelection>;
|
|
38
|
+
/** Exact failed/current workspace selection; portable archives need no native
|
|
39
|
+
* checkpoint artifact. Contains no object keys or provider credentials. */
|
|
40
|
+
export declare const SandboxRecoveryTarget: z.ZodObject<{
|
|
41
|
+
sessionId: z.ZodString;
|
|
42
|
+
sandboxGroupId: z.ZodString;
|
|
43
|
+
leaseId: z.ZodString;
|
|
44
|
+
routeEpoch: z.ZodNumber;
|
|
45
|
+
authorityEpoch: z.ZodNumber;
|
|
46
|
+
leaseEpoch: z.ZodNumber;
|
|
47
|
+
workspaceGeneration: z.ZodNumber;
|
|
48
|
+
archiveGeneration: z.ZodNullable<z.ZodNumber>;
|
|
49
|
+
revision: z.ZodNullable<z.ZodString>;
|
|
50
|
+
restoreStatus: z.ZodString;
|
|
51
|
+
restoreCompletedAt: z.ZodNullable<z.ZodString>;
|
|
52
|
+
}, z.core.$strict>;
|
|
53
|
+
export type SandboxRecoveryTarget = z.infer<typeof SandboxRecoveryTarget>;
|
|
18
54
|
export declare const SandboxRecoveryProjection: z.ZodObject<{
|
|
19
55
|
version: z.ZodLiteral<1>;
|
|
20
56
|
status: z.ZodEnum<{
|
|
@@ -36,16 +72,46 @@ export declare const SandboxRecoveryProjection: z.ZodObject<{
|
|
|
36
72
|
leaseEpoch: z.ZodNumber;
|
|
37
73
|
workspaceGeneration: z.ZodNumber;
|
|
38
74
|
archiveGeneration: z.ZodNumber;
|
|
39
|
-
artifactId: z.ZodString;
|
|
40
75
|
revision: z.ZodString;
|
|
41
76
|
capturedAt: z.ZodString;
|
|
77
|
+
artifactId: z.ZodString;
|
|
42
78
|
}, z.core.$strict>>;
|
|
43
79
|
operationId: z.ZodNullable<z.ZodString>;
|
|
80
|
+
target: z.ZodOptional<z.ZodObject<{
|
|
81
|
+
sessionId: z.ZodString;
|
|
82
|
+
sandboxGroupId: z.ZodString;
|
|
83
|
+
leaseId: z.ZodString;
|
|
84
|
+
routeEpoch: z.ZodNumber;
|
|
85
|
+
authorityEpoch: z.ZodNumber;
|
|
86
|
+
leaseEpoch: z.ZodNumber;
|
|
87
|
+
workspaceGeneration: z.ZodNumber;
|
|
88
|
+
archiveGeneration: z.ZodNullable<z.ZodNumber>;
|
|
89
|
+
revision: z.ZodNullable<z.ZodString>;
|
|
90
|
+
restoreStatus: z.ZodString;
|
|
91
|
+
restoreCompletedAt: z.ZodNullable<z.ZodString>;
|
|
92
|
+
}, z.core.$strict>>;
|
|
93
|
+
retryAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
+
freshWorkspaceAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
95
|
+
groupSessionCount: z.ZodOptional<z.ZodNumber>;
|
|
44
96
|
automaticAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
45
97
|
automaticLane: z.ZodOptional<z.ZodEnum<{
|
|
46
98
|
checkpoint: "checkpoint";
|
|
47
99
|
fresh_workspace: "fresh_workspace";
|
|
48
100
|
}>>;
|
|
101
|
+
automaticCheckpoint: z.ZodOptional<z.ZodObject<{
|
|
102
|
+
version: z.ZodLiteral<1>;
|
|
103
|
+
sessionId: z.ZodString;
|
|
104
|
+
sandboxGroupId: z.ZodString;
|
|
105
|
+
leaseId: z.ZodString;
|
|
106
|
+
routeEpoch: z.ZodNumber;
|
|
107
|
+
authorityEpoch: z.ZodNumber;
|
|
108
|
+
leaseEpoch: z.ZodNumber;
|
|
109
|
+
workspaceGeneration: z.ZodNumber;
|
|
110
|
+
archiveGeneration: z.ZodNumber;
|
|
111
|
+
revision: z.ZodString;
|
|
112
|
+
capturedAt: z.ZodString;
|
|
113
|
+
artifactId: z.ZodNullable<z.ZodString>;
|
|
114
|
+
}, z.core.$strict>>;
|
|
49
115
|
availableAt: z.ZodOptional<z.ZodString>;
|
|
50
116
|
}, z.core.$strict>;
|
|
51
117
|
export type SandboxRecoveryProjection = z.infer<typeof SandboxRecoveryProjection>;
|
|
@@ -55,6 +121,7 @@ export declare const SandboxFreshWorkspaceReason: z.ZodEnum<{
|
|
|
55
121
|
archive_unverified: "archive_unverified";
|
|
56
122
|
checkpoint_restore_failed: "checkpoint_restore_failed";
|
|
57
123
|
checkpoint_unrestorable: "checkpoint_unrestorable";
|
|
124
|
+
restore_abandoned: "restore_abandoned";
|
|
58
125
|
}>;
|
|
59
126
|
export type SandboxFreshWorkspaceReason = z.infer<typeof SandboxFreshWorkspaceReason>;
|
|
60
127
|
/** Durable, content-free fresh-workspace decision for one group member. */
|
|
@@ -72,10 +139,11 @@ export declare const SandboxFreshWorkspaceRecovery: z.ZodObject<{
|
|
|
72
139
|
archive_unverified: "archive_unverified";
|
|
73
140
|
checkpoint_restore_failed: "checkpoint_restore_failed";
|
|
74
141
|
checkpoint_unrestorable: "checkpoint_unrestorable";
|
|
142
|
+
restore_abandoned: "restore_abandoned";
|
|
75
143
|
}>;
|
|
76
144
|
}, z.core.$strict>;
|
|
77
145
|
export type SandboxFreshWorkspaceRecovery = z.infer<typeof SandboxFreshWorkspaceRecovery>;
|
|
78
|
-
export declare const SandboxRecoveryRequest: z.ZodObject<{
|
|
146
|
+
export declare const SandboxRecoveryRequest: z.ZodUnion<readonly [z.ZodObject<{
|
|
79
147
|
operationId: z.ZodString;
|
|
80
148
|
acceptHistoricalCheckpoint: z.ZodLiteral<true>;
|
|
81
149
|
selection: z.ZodObject<{
|
|
@@ -88,11 +156,44 @@ export declare const SandboxRecoveryRequest: z.ZodObject<{
|
|
|
88
156
|
leaseEpoch: z.ZodNumber;
|
|
89
157
|
workspaceGeneration: z.ZodNumber;
|
|
90
158
|
archiveGeneration: z.ZodNumber;
|
|
91
|
-
artifactId: z.ZodString;
|
|
92
159
|
revision: z.ZodString;
|
|
93
160
|
capturedAt: z.ZodString;
|
|
161
|
+
artifactId: z.ZodString;
|
|
94
162
|
}, z.core.$strict>;
|
|
95
|
-
}, z.core.$strict
|
|
163
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
164
|
+
operationId: z.ZodString;
|
|
165
|
+
action: z.ZodLiteral<"retry">;
|
|
166
|
+
target: z.ZodObject<{
|
|
167
|
+
sessionId: z.ZodString;
|
|
168
|
+
sandboxGroupId: z.ZodString;
|
|
169
|
+
leaseId: z.ZodString;
|
|
170
|
+
routeEpoch: z.ZodNumber;
|
|
171
|
+
authorityEpoch: z.ZodNumber;
|
|
172
|
+
leaseEpoch: z.ZodNumber;
|
|
173
|
+
workspaceGeneration: z.ZodNumber;
|
|
174
|
+
archiveGeneration: z.ZodNullable<z.ZodNumber>;
|
|
175
|
+
revision: z.ZodNullable<z.ZodString>;
|
|
176
|
+
restoreStatus: z.ZodString;
|
|
177
|
+
restoreCompletedAt: z.ZodNullable<z.ZodString>;
|
|
178
|
+
}, z.core.$strict>;
|
|
179
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
180
|
+
operationId: z.ZodString;
|
|
181
|
+
action: z.ZodLiteral<"continue_fresh">;
|
|
182
|
+
acceptEmptyWorkspace: z.ZodLiteral<true>;
|
|
183
|
+
target: z.ZodObject<{
|
|
184
|
+
sessionId: z.ZodString;
|
|
185
|
+
sandboxGroupId: z.ZodString;
|
|
186
|
+
leaseId: z.ZodString;
|
|
187
|
+
routeEpoch: z.ZodNumber;
|
|
188
|
+
authorityEpoch: z.ZodNumber;
|
|
189
|
+
leaseEpoch: z.ZodNumber;
|
|
190
|
+
workspaceGeneration: z.ZodNumber;
|
|
191
|
+
archiveGeneration: z.ZodNullable<z.ZodNumber>;
|
|
192
|
+
revision: z.ZodNullable<z.ZodString>;
|
|
193
|
+
restoreStatus: z.ZodString;
|
|
194
|
+
restoreCompletedAt: z.ZodNullable<z.ZodString>;
|
|
195
|
+
}, z.core.$strict>;
|
|
196
|
+
}, z.core.$strict>]>;
|
|
96
197
|
export type SandboxRecoveryRequest = z.infer<typeof SandboxRecoveryRequest>;
|
|
97
198
|
export declare const SandboxRecoveryResponse: z.ZodObject<{
|
|
98
199
|
outcome: z.ZodEnum<{
|
|
@@ -121,16 +222,46 @@ export declare const SandboxRecoveryResponse: z.ZodObject<{
|
|
|
121
222
|
leaseEpoch: z.ZodNumber;
|
|
122
223
|
workspaceGeneration: z.ZodNumber;
|
|
123
224
|
archiveGeneration: z.ZodNumber;
|
|
124
|
-
artifactId: z.ZodString;
|
|
125
225
|
revision: z.ZodString;
|
|
126
226
|
capturedAt: z.ZodString;
|
|
227
|
+
artifactId: z.ZodString;
|
|
127
228
|
}, z.core.$strict>>;
|
|
128
229
|
operationId: z.ZodNullable<z.ZodString>;
|
|
230
|
+
target: z.ZodOptional<z.ZodObject<{
|
|
231
|
+
sessionId: z.ZodString;
|
|
232
|
+
sandboxGroupId: z.ZodString;
|
|
233
|
+
leaseId: z.ZodString;
|
|
234
|
+
routeEpoch: z.ZodNumber;
|
|
235
|
+
authorityEpoch: z.ZodNumber;
|
|
236
|
+
leaseEpoch: z.ZodNumber;
|
|
237
|
+
workspaceGeneration: z.ZodNumber;
|
|
238
|
+
archiveGeneration: z.ZodNullable<z.ZodNumber>;
|
|
239
|
+
revision: z.ZodNullable<z.ZodString>;
|
|
240
|
+
restoreStatus: z.ZodString;
|
|
241
|
+
restoreCompletedAt: z.ZodNullable<z.ZodString>;
|
|
242
|
+
}, z.core.$strict>>;
|
|
243
|
+
retryAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
244
|
+
freshWorkspaceAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
245
|
+
groupSessionCount: z.ZodOptional<z.ZodNumber>;
|
|
129
246
|
automaticAvailable: z.ZodOptional<z.ZodBoolean>;
|
|
130
247
|
automaticLane: z.ZodOptional<z.ZodEnum<{
|
|
131
248
|
checkpoint: "checkpoint";
|
|
132
249
|
fresh_workspace: "fresh_workspace";
|
|
133
250
|
}>>;
|
|
251
|
+
automaticCheckpoint: z.ZodOptional<z.ZodObject<{
|
|
252
|
+
version: z.ZodLiteral<1>;
|
|
253
|
+
sessionId: z.ZodString;
|
|
254
|
+
sandboxGroupId: z.ZodString;
|
|
255
|
+
leaseId: z.ZodString;
|
|
256
|
+
routeEpoch: z.ZodNumber;
|
|
257
|
+
authorityEpoch: z.ZodNumber;
|
|
258
|
+
leaseEpoch: z.ZodNumber;
|
|
259
|
+
workspaceGeneration: z.ZodNumber;
|
|
260
|
+
archiveGeneration: z.ZodNumber;
|
|
261
|
+
revision: z.ZodString;
|
|
262
|
+
capturedAt: z.ZodString;
|
|
263
|
+
artifactId: z.ZodNullable<z.ZodString>;
|
|
264
|
+
}, z.core.$strict>>;
|
|
134
265
|
availableAt: z.ZodOptional<z.ZodString>;
|
|
135
266
|
}, z.core.$strict>;
|
|
136
267
|
}, z.core.$strict>;
|
|
@@ -140,7 +271,7 @@ export declare function sandboxRecoveryDiscontinuity(selection: SandboxRecoveryS
|
|
|
140
271
|
/** Stable tail instructions, sourced from a durable system recovery receipt.
|
|
141
272
|
* `shared` names the sandbox this session shares with other sessions; every
|
|
142
273
|
* member of that group receives its own receipt for the same selection. */
|
|
143
|
-
export declare function automaticSandboxRecoveryDiscontinuity(selection:
|
|
274
|
+
export declare function automaticSandboxRecoveryDiscontinuity(selection: SandboxCheckpointSelection, scope?: "session" | "shared"): string;
|
|
144
275
|
/** Stable tail instructions for continuing on a new empty workspace. The text
|
|
145
276
|
* is true on every later turn too: it names the loss, not the current tree. */
|
|
146
277
|
export declare function freshWorkspaceSandboxRecoveryDiscontinuity(recovery: SandboxFreshWorkspaceRecovery): string;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The one password generator shared by agents (`secret_save` with
|
|
3
|
+
* `generate`), the ask card's server-side generate, and the web/mobile UI.
|
|
4
|
+
*
|
|
5
|
+
* Isomorphic and dependency-free: randomness comes from
|
|
6
|
+
* `crypto.getRandomValues` unless a test injects `random`. Output is ASCII
|
|
7
|
+
* only, and every character is drawn uniformly from the selected alphabet by
|
|
8
|
+
* rejection sampling, so no modulo bias is introduced. When
|
|
9
|
+
* `requireEachClass` is set, whole candidates lacking an enabled class are
|
|
10
|
+
* rejected and redrawn, which keeps the result uniform over all compliant
|
|
11
|
+
* passwords.
|
|
12
|
+
*/
|
|
13
|
+
import { z } from "zod";
|
|
14
|
+
export declare const SECRET_GENERATOR_DEFAULT_SYMBOLS = "!#%+-.:=?@_";
|
|
15
|
+
/** Characters that are easy to confuse when a person reads them. */
|
|
16
|
+
export declare const SECRET_GENERATOR_AMBIGUOUS_CHARACTERS = "0O1lI|";
|
|
17
|
+
export declare const GeneratePasswordSpec: z.ZodObject<{
|
|
18
|
+
length: z.ZodDefault<z.ZodNumber>;
|
|
19
|
+
lowercase: z.ZodDefault<z.ZodBoolean>;
|
|
20
|
+
uppercase: z.ZodDefault<z.ZodBoolean>;
|
|
21
|
+
digits: z.ZodDefault<z.ZodBoolean>;
|
|
22
|
+
symbols: z.ZodDefault<z.ZodBoolean>;
|
|
23
|
+
symbolSet: z.ZodDefault<z.ZodString>;
|
|
24
|
+
excludeAmbiguous: z.ZodDefault<z.ZodBoolean>;
|
|
25
|
+
requireEachClass: z.ZodDefault<z.ZodBoolean>;
|
|
26
|
+
}, z.core.$strict>;
|
|
27
|
+
export type GeneratePasswordSpec = z.infer<typeof GeneratePasswordSpec>;
|
|
28
|
+
export type GeneratePasswordSpecInput = z.input<typeof GeneratePasswordSpec>;
|
|
29
|
+
export declare class PasswordGeneratorError extends Error {
|
|
30
|
+
constructor(message: string);
|
|
31
|
+
}
|
|
32
|
+
/** The enabled character classes after exclusions; empty classes are dropped. */
|
|
33
|
+
export declare function passwordCharacterClasses(spec: GeneratePasswordSpec): string[];
|
|
34
|
+
/** Generate a password. The spec input is parsed (defaults applied) first. */
|
|
35
|
+
export declare function generatePassword(spec?: GeneratePasswordSpecInput, random?: (n: number) => Uint8Array): string;
|
|
36
|
+
export type PasswordStrengthLabel = "weak" | "fair" | "strong" | "very_strong";
|
|
37
|
+
/**
|
|
38
|
+
* Estimated entropy from length and the character pools the password uses.
|
|
39
|
+
* A display hint for the UI, not a security decision.
|
|
40
|
+
*/
|
|
41
|
+
export declare function passwordStrength(password: string): {
|
|
42
|
+
bits: number;
|
|
43
|
+
label: PasswordStrengthLabel;
|
|
44
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The string walk shared by the secret maskers (known values and, later,
|
|
3
|
+
* secret shapes): every string a masker may change.
|
|
4
|
+
*
|
|
5
|
+
* Binary payloads keep their exact bytes: a string that is entirely a base64
|
|
6
|
+
* data URL, and the `data` of an object that also carries a MIME type (image
|
|
7
|
+
* and file content). A payload of a text type (`text/*`, JSON, XML, YAML and
|
|
8
|
+
* similar) is decoded, masked as text and encoded again, so a secret inside a
|
|
9
|
+
* text file is masked while the payload stays valid base64.
|
|
10
|
+
*/
|
|
11
|
+
export declare function isBase64DataUrl(text: string): boolean;
|
|
12
|
+
/** Whether a payload of this media type is text (and so is searched decoded). */
|
|
13
|
+
export declare function isTextMediaType(mediaType: string | null | undefined): boolean;
|
|
14
|
+
/**
|
|
15
|
+
* For the `data` of an object that also carries a MIME type (a file or image
|
|
16
|
+
* payload): that media type, or null when it is not a string. Undefined when
|
|
17
|
+
* the string is not such a payload.
|
|
18
|
+
*/
|
|
19
|
+
export declare function payloadMediaType(key: string | null, parent: Record<string, unknown> | null): string | null | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* `map` applied to the text a base64 payload encodes, encoded again; the
|
|
22
|
+
* payload itself when it is not UTF-8 text, is too large, or `map` changes
|
|
23
|
+
* nothing.
|
|
24
|
+
*/
|
|
25
|
+
export declare function mapBase64TextPayload(payload: string, map: (text: string) => string): string;
|
|
26
|
+
/**
|
|
27
|
+
* Deep copy of `value` with `map` applied to every string a masker may
|
|
28
|
+
* change (object keys are kept; an own `__proto__` key stays data). Binary
|
|
29
|
+
* payloads are skipped and text payloads mapped decoded (see the module
|
|
30
|
+
* comment). Inputs that need no change keep their identity.
|
|
31
|
+
*/
|
|
32
|
+
export declare function mapSecretMaskableStrings<T>(value: T, map: (text: string) => string, skipKey?: (key: string) => boolean): T;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export type SecretReferenceKind = "secret" | "secretfile";
|
|
2
|
+
export type SecretReferenceTarget = {
|
|
3
|
+
form: "id";
|
|
4
|
+
itemId: string;
|
|
5
|
+
field: string | null;
|
|
6
|
+
} | {
|
|
7
|
+
form: "path";
|
|
8
|
+
segments: [string] | [string, string] | [string, string, string];
|
|
9
|
+
};
|
|
10
|
+
export interface SecretReference {
|
|
11
|
+
kind: SecretReferenceKind;
|
|
12
|
+
raw: string;
|
|
13
|
+
/** Offsets in the source text; `end` is exclusive. */
|
|
14
|
+
start: number;
|
|
15
|
+
end: number;
|
|
16
|
+
target: SecretReferenceTarget;
|
|
17
|
+
otp: boolean;
|
|
18
|
+
previous: boolean;
|
|
19
|
+
}
|
|
20
|
+
export type SecretTextToken =
|
|
21
|
+
/** Escapes already unescaped. */
|
|
22
|
+
{
|
|
23
|
+
type: "text";
|
|
24
|
+
value: string;
|
|
25
|
+
} | {
|
|
26
|
+
type: "reference";
|
|
27
|
+
reference: SecretReference;
|
|
28
|
+
} | {
|
|
29
|
+
type: "invalid";
|
|
30
|
+
raw: string;
|
|
31
|
+
start: number;
|
|
32
|
+
end: number;
|
|
33
|
+
reason: string;
|
|
34
|
+
};
|
|
35
|
+
/** Fast-path needle; also matches `{{secretfile:`. */
|
|
36
|
+
export declare const SECRET_REFERENCE_MARKER = "{{secret";
|
|
37
|
+
export declare class SecretReferenceSyntaxError extends Error {
|
|
38
|
+
readonly reason: string;
|
|
39
|
+
constructor(reason: string, message?: string);
|
|
40
|
+
}
|
|
41
|
+
export declare function containsSecretReference(text: string): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Split text into literal text, references and invalid candidates. Adjacent
|
|
44
|
+
* text is merged; an escaped reference (`\{{secret:…}}`) becomes literal
|
|
45
|
+
* text without the backslash. Never throws.
|
|
46
|
+
*/
|
|
47
|
+
export declare function tokenizeSecretText(text: string): SecretTextToken[];
|
|
48
|
+
/** Valid references only, in text order. */
|
|
49
|
+
export declare function findSecretReferences(text: string): SecretReference[];
|
|
50
|
+
/** Invalid candidates only, in text order. */
|
|
51
|
+
export declare function findInvalidSecretReferences(text: string): Array<Extract<SecretTextToken, {
|
|
52
|
+
type: "invalid";
|
|
53
|
+
}>>;
|
|
54
|
+
/** Parse exactly one reference (`{{…}}`). Throws SecretReferenceSyntaxError. */
|
|
55
|
+
export declare function parseSecretReference(raw: string): SecretReference;
|
|
56
|
+
export type FormatSecretReferenceInput = {
|
|
57
|
+
kind?: SecretReferenceKind;
|
|
58
|
+
vault?: string;
|
|
59
|
+
item: string;
|
|
60
|
+
field?: string;
|
|
61
|
+
otp?: boolean;
|
|
62
|
+
previous?: boolean;
|
|
63
|
+
} | {
|
|
64
|
+
kind?: SecretReferenceKind;
|
|
65
|
+
itemId: string;
|
|
66
|
+
field?: string;
|
|
67
|
+
otp?: boolean;
|
|
68
|
+
previous?: boolean;
|
|
69
|
+
};
|
|
70
|
+
/** Build a reference. Throws SecretReferenceSyntaxError when a name cannot be referenced. */
|
|
71
|
+
export declare function formatSecretReference(input: FormatSecretReferenceInput): string;
|
|
72
|
+
/** NFC + trim + lowercase. For UI and dedupe only; SQL `vault_name_key` is authoritative. */
|
|
73
|
+
export declare function secretNameKey(name: string): string;
|
|
74
|
+
/** Canonical dedupe key within one call (same target and modifiers → same key). */
|
|
75
|
+
export declare function referenceKey(ref: SecretReference): string;
|
|
76
|
+
/** Remove escapes (`\{{secret:…}}` → `{{secret:…}}`); references stay as written. */
|
|
77
|
+
export declare function unescapeSecretText(text: string): string;
|
|
78
|
+
/** Every valid reference in every string value of a JSON-like structure. */
|
|
79
|
+
export declare function collectReferencesDeep(value: unknown): SecretReference[];
|
|
80
|
+
/** Every invalid candidate in every string value of a JSON-like structure. */
|
|
81
|
+
export declare function collectInvalidReferencesDeep(value: unknown): Array<Extract<SecretTextToken, {
|
|
82
|
+
type: "invalid";
|
|
83
|
+
}>>;
|
|
84
|
+
/**
|
|
85
|
+
* Deep copy with each reference replaced by `replace(ref)` and escapes
|
|
86
|
+
* removed. Strings without the marker are copied unchanged; invalid
|
|
87
|
+
* candidates are kept verbatim (callers reject them before replacing).
|
|
88
|
+
* Object keys are not rewritten.
|
|
89
|
+
*/
|
|
90
|
+
export declare function replaceReferencesDeep<T>(value: T, replace: (ref: SecretReference) => string): T;
|