@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/src/company-profile.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as primitives from "./primitives";
|
|
2
|
+
import { defineSchema } from "./define-schema";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
import {
|
|
3
5
|
AGENT_AUTHORED_COMPANY_PROFILE_CONTENT_MAX_UTF8_BYTES,
|
|
@@ -16,36 +18,33 @@ export const COMPANY_PROFILE_SOURCE_ID_MAX_CHARS = 512;
|
|
|
16
18
|
export const COMPANY_PROFILE_CONTENT_MAX_UTF8_BYTES = 28_672;
|
|
17
19
|
export const COMPANY_PROFILE_PROMPT_MAX_UTF8_BYTES = 32_768;
|
|
18
20
|
|
|
19
|
-
export const CompanyProfileStableKey =
|
|
20
|
-
.
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
export const CompanyProfileStableKey = /* @__PURE__ */ defineSchema(() =>
|
|
22
|
+
primitives.nonEmptyString
|
|
23
|
+
.max(COMPANY_PROFILE_STABLE_KEY_MAX_CHARS)
|
|
24
|
+
.regex(/^[a-z0-9](?:[a-z0-9._-]*[a-z0-9])?$/),
|
|
25
|
+
);
|
|
24
26
|
export type CompanyProfileStableKey = z.infer<typeof CompanyProfileStableKey>;
|
|
25
27
|
|
|
26
28
|
export function normalizeCompanyProfileStableKey(value: string): string {
|
|
27
29
|
return value.normalize("NFKC").trim().toLowerCase().replace(/\s+/gu, "-").replace(/-+/g, "-");
|
|
28
30
|
}
|
|
29
31
|
|
|
30
|
-
export const CompanyProfileStableKeyInput =
|
|
31
|
-
.string()
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
});
|
|
32
|
+
export const CompanyProfileStableKeyInput = /* @__PURE__ */ defineSchema(() =>
|
|
33
|
+
primitives.string.transform(normalizeCompanyProfileStableKey).pipe(CompanyProfileStableKey),
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
export const CompanyProfileEntry = /* @__PURE__ */ defineSchema(() =>
|
|
37
|
+
z.object({
|
|
38
|
+
key: CompanyProfileStableKeyInput,
|
|
39
|
+
content: primitives.nonEmptyString
|
|
40
|
+
.max(COMPANY_PROFILE_ENTRY_MAX_CHARS)
|
|
41
|
+
.refine((value) => value.trim().length > 0, "company-profile entries must not be blank"),
|
|
42
|
+
}),
|
|
43
|
+
);
|
|
43
44
|
export type CompanyProfileEntry = z.infer<typeof CompanyProfileEntry>;
|
|
44
45
|
|
|
45
46
|
function boundedScalar() {
|
|
46
|
-
return
|
|
47
|
-
.string()
|
|
48
|
-
.min(1)
|
|
47
|
+
return primitives.nonEmptyString
|
|
49
48
|
.max(COMPANY_PROFILE_SCALAR_MAX_CHARS)
|
|
50
49
|
.refine((value) => value.trim().length > 0, "company-profile scalar content must not be blank")
|
|
51
50
|
.nullable();
|
|
@@ -69,42 +68,44 @@ function uniqueEntryKeys(
|
|
|
69
68
|
}
|
|
70
69
|
}
|
|
71
70
|
|
|
72
|
-
export const CompanyProfileContent =
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
71
|
+
export const CompanyProfileContent = /* @__PURE__ */ defineSchema(() =>
|
|
72
|
+
z
|
|
73
|
+
.object({
|
|
74
|
+
identity: boundedScalar(),
|
|
75
|
+
mission: boundedScalar(),
|
|
76
|
+
products: z.array(CompanyProfileEntry).max(COMPANY_PROFILE_ENTRY_MAX_COUNT),
|
|
77
|
+
customers: z.array(CompanyProfileEntry).max(COMPANY_PROFILE_ENTRY_MAX_COUNT),
|
|
78
|
+
goals: z.array(CompanyProfileEntry).max(COMPANY_PROFILE_ENTRY_MAX_COUNT),
|
|
79
|
+
constraints: z.array(CompanyProfileEntry).max(COMPANY_PROFILE_ENTRY_MAX_COUNT),
|
|
80
|
+
})
|
|
81
|
+
.strict()
|
|
82
|
+
.superRefine((value, context) => {
|
|
83
|
+
uniqueEntryKeys(value.products, "products", context);
|
|
84
|
+
uniqueEntryKeys(value.customers, "customers", context);
|
|
85
|
+
uniqueEntryKeys(value.goals, "goals", context);
|
|
86
|
+
uniqueEntryKeys(value.constraints, "constraints", context);
|
|
87
|
+
if (
|
|
88
|
+
value.identity === null &&
|
|
89
|
+
value.mission === null &&
|
|
90
|
+
value.products.length === 0 &&
|
|
91
|
+
value.customers.length === 0 &&
|
|
92
|
+
value.goals.length === 0 &&
|
|
93
|
+
value.constraints.length === 0
|
|
94
|
+
) {
|
|
95
|
+
context.addIssue({
|
|
96
|
+
code: "custom",
|
|
97
|
+
message: "a company profile must contain at least one field",
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
const contentBytes = new TextEncoder().encode(JSON.stringify(value)).byteLength;
|
|
101
|
+
if (contentBytes > COMPANY_PROFILE_CONTENT_MAX_UTF8_BYTES) {
|
|
102
|
+
context.addIssue({
|
|
103
|
+
code: "custom",
|
|
104
|
+
message: `company profile is ${contentBytes} UTF-8 bytes; limit is ${COMPANY_PROFILE_CONTENT_MAX_UTF8_BYTES}`,
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
}),
|
|
108
|
+
);
|
|
108
109
|
export type CompanyProfileContent = z.infer<typeof CompanyProfileContent>;
|
|
109
110
|
|
|
110
111
|
/**
|
|
@@ -114,8 +115,8 @@ export type CompanyProfileContent = z.infer<typeof CompanyProfileContent>;
|
|
|
114
115
|
* accepts only identity and mission and writes empty compatibility lists, but
|
|
115
116
|
* the validator must still read historical revisions without rewriting them.
|
|
116
117
|
*/
|
|
117
|
-
export const AgentAuthoredCompanyProfileContent =
|
|
118
|
-
(value, context) => {
|
|
118
|
+
export const AgentAuthoredCompanyProfileContent = /* @__PURE__ */ defineSchema(() =>
|
|
119
|
+
CompanyProfileContent.superRefine((value, context) => {
|
|
119
120
|
for (const field of ["identity", "mission"] as const) {
|
|
120
121
|
const scalar = value[field];
|
|
121
122
|
if (scalar !== null && scalar.length > AGENT_AUTHORED_COMPANY_PROFILE_SCALAR_MAX_CHARS) {
|
|
@@ -144,329 +145,393 @@ export const AgentAuthoredCompanyProfileContent = CompanyProfileContent.superRef
|
|
|
144
145
|
message: `this profile is ${contentBytes} UTF-8 bytes. ${AGENT_AUTHORED_COMPANY_PROFILE_TOO_LONG_MESSAGE}`,
|
|
145
146
|
});
|
|
146
147
|
}
|
|
147
|
-
},
|
|
148
|
+
}),
|
|
148
149
|
);
|
|
149
150
|
export type AgentAuthoredCompanyProfileContent = z.infer<typeof AgentAuthoredCompanyProfileContent>;
|
|
150
151
|
|
|
151
|
-
export const CompanyProfileRevisionIntent =
|
|
152
|
+
export const CompanyProfileRevisionIntent = /* @__PURE__ */ defineSchema(() =>
|
|
153
|
+
z.enum(["active", "proposal"]),
|
|
154
|
+
);
|
|
152
155
|
export type CompanyProfileRevisionIntent = z.infer<typeof CompanyProfileRevisionIntent>;
|
|
153
156
|
|
|
154
|
-
export const CompanyProfileProvenanceSource =
|
|
155
|
-
"human",
|
|
156
|
-
|
|
157
|
-
"durable_learning",
|
|
158
|
-
"migration",
|
|
159
|
-
]);
|
|
157
|
+
export const CompanyProfileProvenanceSource = /* @__PURE__ */ defineSchema(() =>
|
|
158
|
+
z.enum(["human", "agent_admin", "durable_learning", "migration"]),
|
|
159
|
+
);
|
|
160
160
|
export type CompanyProfileProvenanceSource = z.infer<typeof CompanyProfileProvenanceSource>;
|
|
161
161
|
|
|
162
|
-
export const CompanyProfilePrincipalKind =
|
|
162
|
+
export const CompanyProfilePrincipalKind = /* @__PURE__ */ defineSchema(() =>
|
|
163
|
+
z.enum(["human_session", "agent_attempt", "service"]),
|
|
164
|
+
);
|
|
163
165
|
export type CompanyProfilePrincipalKind = z.infer<typeof CompanyProfilePrincipalKind>;
|
|
164
166
|
|
|
165
|
-
export const CompanyProfileActivationType =
|
|
167
|
+
export const CompanyProfileActivationType = /* @__PURE__ */ defineSchema(() =>
|
|
168
|
+
z.enum(["activate", "rollback"]),
|
|
169
|
+
);
|
|
166
170
|
export type CompanyProfileActivationType = z.infer<typeof CompanyProfileActivationType>;
|
|
167
171
|
|
|
168
|
-
export const CompanyProfileRevisionIdentity =
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
})
|
|
172
|
+
export const CompanyProfileRevisionIdentity = /* @__PURE__ */ defineSchema(() =>
|
|
173
|
+
z.object({
|
|
174
|
+
id: primitives.uuid,
|
|
175
|
+
revision: primitives.positiveInteger,
|
|
176
|
+
contentHash: primitives.string.regex(/^[0-9a-f]{64}$/),
|
|
177
|
+
}),
|
|
178
|
+
);
|
|
173
179
|
export type CompanyProfileRevisionIdentity = z.infer<typeof CompanyProfileRevisionIdentity>;
|
|
174
180
|
|
|
175
|
-
export const CompanyProfileRevision =
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
181
|
+
export const CompanyProfileRevision = /* @__PURE__ */ defineSchema(() =>
|
|
182
|
+
CompanyProfileRevisionIdentity.extend({
|
|
183
|
+
operationId: primitives.uuid,
|
|
184
|
+
accountId: primitives.uuid,
|
|
185
|
+
intent: CompanyProfileRevisionIntent,
|
|
186
|
+
profile: CompanyProfileContent,
|
|
187
|
+
provenance: z.object({
|
|
188
|
+
source: CompanyProfileProvenanceSource,
|
|
189
|
+
sourceId: primitives.nonEmptyString.max(COMPANY_PROFILE_SOURCE_ID_MAX_CHARS).nullable(),
|
|
190
|
+
}),
|
|
191
|
+
supersedesRevisionId: primitives.nullableUuid,
|
|
192
|
+
createdBySubjectId: z.string().min(1).max(1_024),
|
|
193
|
+
createdAt: primitives.dateTime,
|
|
183
194
|
}),
|
|
184
|
-
|
|
185
|
-
createdBySubjectId: z.string().min(1).max(1_024),
|
|
186
|
-
createdAt: z.string().datetime(),
|
|
187
|
-
});
|
|
195
|
+
);
|
|
188
196
|
export type CompanyProfileRevision = z.infer<typeof CompanyProfileRevision>;
|
|
189
197
|
|
|
190
|
-
export const CompanyProfileHead =
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
+
export const CompanyProfileHead = /* @__PURE__ */ defineSchema(() =>
|
|
199
|
+
z.object({
|
|
200
|
+
accountId: primitives.uuid,
|
|
201
|
+
revisionId: primitives.uuid,
|
|
202
|
+
revision: primitives.positiveInteger,
|
|
203
|
+
contentHash: primitives.string.regex(/^[0-9a-f]{64}$/),
|
|
204
|
+
activationVersion: primitives.positiveInteger,
|
|
205
|
+
activatedAt: primitives.dateTime,
|
|
206
|
+
}),
|
|
207
|
+
);
|
|
198
208
|
export type CompanyProfileHead = z.infer<typeof CompanyProfileHead>;
|
|
199
209
|
|
|
200
|
-
export const CompanyProfileActivationEvent =
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
210
|
+
export const CompanyProfileActivationEvent = /* @__PURE__ */ defineSchema(() =>
|
|
211
|
+
z.object({
|
|
212
|
+
id: primitives.uuid,
|
|
213
|
+
operationId: primitives.uuid,
|
|
214
|
+
accountId: primitives.uuid,
|
|
215
|
+
type: CompanyProfileActivationType,
|
|
216
|
+
activationVersion: primitives.positiveInteger,
|
|
217
|
+
oldRevision: CompanyProfileRevisionIdentity.nullable(),
|
|
218
|
+
newRevision: CompanyProfileRevisionIdentity.nullable(),
|
|
219
|
+
actorSubjectId: z.string().min(1).max(1_024),
|
|
220
|
+
reason: primitives.nonEmptyString.max(COMPANY_PROFILE_REASON_MAX_CHARS),
|
|
221
|
+
createdAt: primitives.dateTime,
|
|
222
|
+
}),
|
|
223
|
+
);
|
|
212
224
|
export type CompanyProfileActivationEvent = z.infer<typeof CompanyProfileActivationEvent>;
|
|
213
225
|
|
|
214
|
-
export const CompanyProfileSnapshotEntry =
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
.string()
|
|
221
|
-
|
|
222
|
-
.nullable(),
|
|
226
|
+
export const CompanyProfileSnapshotEntry = /* @__PURE__ */ defineSchema(() =>
|
|
227
|
+
CompanyProfileRevisionIdentity.extend({
|
|
228
|
+
activationVersion: primitives.positiveInteger,
|
|
229
|
+
activatedAt: primitives.dateTime,
|
|
230
|
+
provenance: z.object({
|
|
231
|
+
source: CompanyProfileProvenanceSource,
|
|
232
|
+
sourceIdHash: primitives.string.regex(/^[0-9a-f]{64}$/).nullable(),
|
|
233
|
+
}),
|
|
223
234
|
}),
|
|
224
|
-
|
|
235
|
+
);
|
|
225
236
|
export type CompanyProfileSnapshotEntry = z.infer<typeof CompanyProfileSnapshotEntry>;
|
|
226
237
|
|
|
227
|
-
export const CompanyProfileSnapshot =
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
238
|
+
export const CompanyProfileSnapshot = /* @__PURE__ */ defineSchema(() =>
|
|
239
|
+
z.object({
|
|
240
|
+
id: primitives.uuid,
|
|
241
|
+
accountId: primitives.uuid,
|
|
242
|
+
workspaceId: primitives.uuid,
|
|
243
|
+
sessionId: primitives.uuid,
|
|
244
|
+
turnId: primitives.uuid,
|
|
245
|
+
attemptId: primitives.uuid,
|
|
246
|
+
executionGeneration: primitives.positiveInteger,
|
|
247
|
+
profile: CompanyProfileSnapshotEntry.nullable(),
|
|
248
|
+
snapshotHash: primitives.string.regex(/^[0-9a-f]{64}$/),
|
|
249
|
+
createdAt: primitives.dateTime,
|
|
250
|
+
}),
|
|
251
|
+
);
|
|
239
252
|
export type CompanyProfileSnapshot = z.infer<typeof CompanyProfileSnapshot>;
|
|
240
253
|
|
|
241
|
-
export const ResolvedCompanyProfileSnapshot =
|
|
242
|
-
|
|
243
|
-
})
|
|
254
|
+
export const ResolvedCompanyProfileSnapshot = /* @__PURE__ */ defineSchema(() =>
|
|
255
|
+
CompanyProfileSnapshot.extend({
|
|
256
|
+
profile: CompanyProfileSnapshotEntry.extend({ profile: CompanyProfileContent }).nullable(),
|
|
257
|
+
}),
|
|
258
|
+
);
|
|
244
259
|
export type ResolvedCompanyProfileSnapshot = z.infer<typeof ResolvedCompanyProfileSnapshot>;
|
|
245
260
|
|
|
246
|
-
export const CompanyProfileListQuery =
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
261
|
+
export const CompanyProfileListQuery = /* @__PURE__ */ defineSchema(() =>
|
|
262
|
+
z.object({
|
|
263
|
+
afterRevision: z.coerce.number().int().positive().optional(),
|
|
264
|
+
limit: z.coerce.number().int().min(1).max(100).default(50),
|
|
265
|
+
}),
|
|
266
|
+
);
|
|
250
267
|
export type CompanyProfileListQuery = z.infer<typeof CompanyProfileListQuery>;
|
|
251
268
|
|
|
252
|
-
export const CompanyProfileListResponse =
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
269
|
+
export const CompanyProfileListResponse = /* @__PURE__ */ defineSchema(() =>
|
|
270
|
+
z.object({
|
|
271
|
+
current: CompanyProfileHead.nullable(),
|
|
272
|
+
activeRevision: CompanyProfileRevision.nullable(),
|
|
273
|
+
revisions: z.array(CompanyProfileRevision),
|
|
274
|
+
activationEvents: z.array(CompanyProfileActivationEvent),
|
|
275
|
+
nextAfterRevision: z.number().int().positive().nullable(),
|
|
276
|
+
}),
|
|
277
|
+
);
|
|
259
278
|
export type CompanyProfileListResponse = z.infer<typeof CompanyProfileListResponse>;
|
|
260
279
|
|
|
261
|
-
export const UpdateCompanyProfileRequest =
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
280
|
+
export const UpdateCompanyProfileRequest = /* @__PURE__ */ defineSchema(() =>
|
|
281
|
+
z.object({
|
|
282
|
+
operationId: primitives.optionalUuid,
|
|
283
|
+
profile: CompanyProfileContent,
|
|
284
|
+
expectedCurrentRevisionId: primitives.nullableUuid,
|
|
285
|
+
expectedActivationVersion: primitives.nonnegativeInteger,
|
|
286
|
+
reason: primitives.string.trim().min(1).max(COMPANY_PROFILE_REASON_MAX_CHARS),
|
|
287
|
+
}),
|
|
288
|
+
);
|
|
268
289
|
export type UpdateCompanyProfileRequest = z.infer<typeof UpdateCompanyProfileRequest>;
|
|
269
290
|
|
|
270
|
-
export const ActivateCompanyProfileRevisionRequest =
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
291
|
+
export const ActivateCompanyProfileRevisionRequest = /* @__PURE__ */ defineSchema(() =>
|
|
292
|
+
z.object({
|
|
293
|
+
operationId: primitives.optionalUuid,
|
|
294
|
+
expectedCurrentRevisionId: primitives.nullableUuid,
|
|
295
|
+
expectedActivationVersion: primitives.nonnegativeInteger,
|
|
296
|
+
reason: primitives.string.trim().min(1).max(COMPANY_PROFILE_REASON_MAX_CHARS),
|
|
297
|
+
}),
|
|
298
|
+
);
|
|
276
299
|
export type ActivateCompanyProfileRevisionRequest = z.infer<
|
|
277
300
|
typeof ActivateCompanyProfileRevisionRequest
|
|
278
301
|
>;
|
|
279
302
|
|
|
280
|
-
export const RollbackCompanyProfileRequest =
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
303
|
+
export const RollbackCompanyProfileRequest = /* @__PURE__ */ defineSchema(() =>
|
|
304
|
+
z.object({
|
|
305
|
+
operationId: primitives.optionalUuid,
|
|
306
|
+
targetRevisionId: primitives.uuid,
|
|
307
|
+
expectedCurrentRevisionId: primitives.uuid,
|
|
308
|
+
expectedActivationVersion: primitives.positiveInteger,
|
|
309
|
+
reason: primitives.string.trim().min(1).max(COMPANY_PROFILE_REASON_MAX_CHARS),
|
|
310
|
+
}),
|
|
311
|
+
);
|
|
287
312
|
export type RollbackCompanyProfileRequest = z.infer<typeof RollbackCompanyProfileRequest>;
|
|
288
313
|
|
|
289
|
-
export const CompanyProfileMutationResponse =
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
314
|
+
export const CompanyProfileMutationResponse = /* @__PURE__ */ defineSchema(() =>
|
|
315
|
+
z.object({
|
|
316
|
+
revision: CompanyProfileRevision.nullable(),
|
|
317
|
+
head: CompanyProfileHead.nullable(),
|
|
318
|
+
event: CompanyProfileActivationEvent.nullable(),
|
|
319
|
+
}),
|
|
320
|
+
);
|
|
294
321
|
export type CompanyProfileMutationResponse = z.infer<typeof CompanyProfileMutationResponse>;
|
|
295
322
|
|
|
296
323
|
export const COMPANY_PROFILE_AGENT_APPROVE_OPTION = "activate" as const;
|
|
297
324
|
export const COMPANY_PROFILE_AGENT_REJECT_OPTION = "skip" as const;
|
|
298
325
|
|
|
299
|
-
export const CompanyProfileAgentPolicyMode =
|
|
326
|
+
export const CompanyProfileAgentPolicyMode = /* @__PURE__ */ defineSchema(() =>
|
|
327
|
+
z.enum(["off", "suggest", "automatic"]),
|
|
328
|
+
);
|
|
300
329
|
export type CompanyProfileAgentPolicyMode = z.infer<typeof CompanyProfileAgentPolicyMode>;
|
|
301
330
|
|
|
302
|
-
export const CompanyProfileAgentPolicy =
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
331
|
+
export const CompanyProfileAgentPolicy = /* @__PURE__ */ defineSchema(() =>
|
|
332
|
+
z.object({
|
|
333
|
+
organizationId: primitives.uuid,
|
|
334
|
+
mode: CompanyProfileAgentPolicyMode,
|
|
335
|
+
version: primitives.nonnegativeInteger,
|
|
336
|
+
updatedAt: primitives.string.datetime({ offset: true }),
|
|
337
|
+
changed: primitives.optionalBoolean,
|
|
338
|
+
}),
|
|
339
|
+
);
|
|
309
340
|
export type CompanyProfileAgentPolicy = z.infer<typeof CompanyProfileAgentPolicy>;
|
|
310
341
|
|
|
311
|
-
export const UpdateCompanyProfileAgentPolicyRequest =
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
342
|
+
export const UpdateCompanyProfileAgentPolicyRequest = /* @__PURE__ */ defineSchema(() =>
|
|
343
|
+
z
|
|
344
|
+
.object({
|
|
345
|
+
mode: CompanyProfileAgentPolicyMode,
|
|
346
|
+
expectedVersion: primitives.nonnegativeInteger,
|
|
347
|
+
operationId: primitives.uuid,
|
|
348
|
+
})
|
|
349
|
+
.strict(),
|
|
350
|
+
);
|
|
318
351
|
export type UpdateCompanyProfileAgentPolicyRequest = z.infer<
|
|
319
352
|
typeof UpdateCompanyProfileAgentPolicyRequest
|
|
320
353
|
>;
|
|
321
354
|
|
|
322
|
-
export const CompanyProfileAgentAttempt =
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
355
|
+
export const CompanyProfileAgentAttempt = /* @__PURE__ */ defineSchema(() =>
|
|
356
|
+
z
|
|
357
|
+
.object({
|
|
358
|
+
accountId: primitives.uuid,
|
|
359
|
+
workspaceId: primitives.uuid,
|
|
360
|
+
sessionId: primitives.uuid,
|
|
361
|
+
turnId: primitives.uuid,
|
|
362
|
+
attemptId: primitives.uuid,
|
|
363
|
+
executionGeneration: primitives.positiveInteger,
|
|
364
|
+
agentSubjectId: primitives.string.trim().min(1).max(1_024),
|
|
365
|
+
})
|
|
366
|
+
.strict(),
|
|
367
|
+
);
|
|
333
368
|
export type CompanyProfileAgentAttempt = z.infer<typeof CompanyProfileAgentAttempt>;
|
|
334
369
|
|
|
335
|
-
export const CompanyProfileAgentProposalRequest =
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
370
|
+
export const CompanyProfileAgentProposalRequest = /* @__PURE__ */ defineSchema(() =>
|
|
371
|
+
z
|
|
372
|
+
.object({
|
|
373
|
+
operationId: primitives.uuid,
|
|
374
|
+
profile: CompanyProfileContent,
|
|
375
|
+
reason: primitives.string.trim().min(1).max(COMPANY_PROFILE_REASON_MAX_CHARS),
|
|
376
|
+
})
|
|
377
|
+
.strict(),
|
|
378
|
+
);
|
|
342
379
|
export type CompanyProfileAgentProposalRequest = z.infer<typeof CompanyProfileAgentProposalRequest>;
|
|
343
380
|
|
|
344
381
|
// z.lazy avoids an import cycle because HumanInputQuestion is declared in the
|
|
345
382
|
// root contracts module that re-exports this file.
|
|
346
|
-
export const CompanyProfileAgentHumanInputPrompt =
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
383
|
+
export const CompanyProfileAgentHumanInputPrompt = /* @__PURE__ */ defineSchema(() =>
|
|
384
|
+
z.object({
|
|
385
|
+
questions: z.array(z.lazy(() => HumanInputQuestion)).length(1),
|
|
386
|
+
allowSkip: z.literal(false),
|
|
387
|
+
}),
|
|
388
|
+
);
|
|
350
389
|
export type CompanyProfileAgentHumanInputPrompt = z.infer<
|
|
351
390
|
typeof CompanyProfileAgentHumanInputPrompt
|
|
352
391
|
>;
|
|
353
392
|
|
|
354
|
-
export const CompanyProfileAgentReviewRequiredReceipt =
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
393
|
+
export const CompanyProfileAgentReviewRequiredReceipt = /* @__PURE__ */ defineSchema(() =>
|
|
394
|
+
z.object({
|
|
395
|
+
status: z.literal("confirmation_required"),
|
|
396
|
+
operationId: primitives.uuid,
|
|
397
|
+
proposalReceiptId: primitives.uuid,
|
|
398
|
+
revision: CompanyProfileRevision,
|
|
399
|
+
policyMode: z.literal("suggest"),
|
|
400
|
+
humanInput: CompanyProfileAgentHumanInputPrompt,
|
|
401
|
+
confirmWith: z.literal("company_profile_confirm"),
|
|
402
|
+
replayed: primitives.boolean,
|
|
403
|
+
}),
|
|
404
|
+
);
|
|
364
405
|
export type CompanyProfileAgentReviewRequiredReceipt = z.infer<
|
|
365
406
|
typeof CompanyProfileAgentReviewRequiredReceipt
|
|
366
407
|
>;
|
|
367
408
|
|
|
368
|
-
export const CompanyProfileAgentAutomaticActivationReceipt =
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
409
|
+
export const CompanyProfileAgentAutomaticActivationReceipt = /* @__PURE__ */ defineSchema(() =>
|
|
410
|
+
z.object({
|
|
411
|
+
status: z.literal("activated"),
|
|
412
|
+
operationId: primitives.uuid,
|
|
413
|
+
proposalReceiptId: primitives.uuid,
|
|
414
|
+
automaticActivationReceiptId: primitives.uuid,
|
|
415
|
+
policyMode: z.literal("automatic"),
|
|
416
|
+
mutation: CompanyProfileMutationResponse,
|
|
417
|
+
replayed: primitives.boolean,
|
|
418
|
+
}),
|
|
419
|
+
);
|
|
377
420
|
export type CompanyProfileAgentAutomaticActivationReceipt = z.infer<
|
|
378
421
|
typeof CompanyProfileAgentAutomaticActivationReceipt
|
|
379
422
|
>;
|
|
380
423
|
|
|
381
|
-
export const CompanyProfileAgentProposalReceipt =
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
424
|
+
export const CompanyProfileAgentProposalReceipt = /* @__PURE__ */ defineSchema(() =>
|
|
425
|
+
z.discriminatedUnion("status", [
|
|
426
|
+
CompanyProfileAgentReviewRequiredReceipt,
|
|
427
|
+
CompanyProfileAgentAutomaticActivationReceipt,
|
|
428
|
+
]),
|
|
429
|
+
);
|
|
385
430
|
export type CompanyProfileAgentProposalReceipt = z.infer<typeof CompanyProfileAgentProposalReceipt>;
|
|
386
431
|
|
|
387
|
-
export const CompanyProfileAgentConfirmRequest =
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
432
|
+
export const CompanyProfileAgentConfirmRequest = /* @__PURE__ */ defineSchema(() =>
|
|
433
|
+
z
|
|
434
|
+
.object({
|
|
435
|
+
operationId: primitives.uuid,
|
|
436
|
+
proposalReceiptId: primitives.uuid,
|
|
437
|
+
humanInputRequestId: primitives.uuid,
|
|
438
|
+
})
|
|
439
|
+
.strict(),
|
|
440
|
+
);
|
|
394
441
|
export type CompanyProfileAgentConfirmRequest = z.infer<typeof CompanyProfileAgentConfirmRequest>;
|
|
395
442
|
|
|
396
|
-
export const CompanyProfileAgentConfirmationReceipt =
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
443
|
+
export const CompanyProfileAgentConfirmationReceipt = /* @__PURE__ */ defineSchema(() =>
|
|
444
|
+
z.object({
|
|
445
|
+
status: z.literal("activated"),
|
|
446
|
+
operationId: primitives.uuid,
|
|
447
|
+
confirmationReceiptId: primitives.uuid,
|
|
448
|
+
proposalReceiptId: primitives.uuid,
|
|
449
|
+
humanInputRequestId: primitives.uuid,
|
|
450
|
+
mutation: CompanyProfileMutationResponse,
|
|
451
|
+
replayed: primitives.boolean,
|
|
452
|
+
}),
|
|
453
|
+
);
|
|
405
454
|
export type CompanyProfileAgentConfirmationReceipt = z.infer<
|
|
406
455
|
typeof CompanyProfileAgentConfirmationReceipt
|
|
407
456
|
>;
|
|
408
457
|
|
|
409
|
-
export const CompanyProfileDiffRequest =
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
458
|
+
export const CompanyProfileDiffRequest = /* @__PURE__ */ defineSchema(() =>
|
|
459
|
+
z
|
|
460
|
+
.object({ fromRevisionId: primitives.uuid, toRevisionId: primitives.uuid })
|
|
461
|
+
.refine((value) => value.fromRevisionId !== value.toRevisionId, {
|
|
462
|
+
path: ["toRevisionId"],
|
|
463
|
+
message: "diff revisions must be different",
|
|
464
|
+
}),
|
|
465
|
+
);
|
|
415
466
|
export type CompanyProfileDiffRequest = z.infer<typeof CompanyProfileDiffRequest>;
|
|
416
467
|
|
|
417
|
-
export const CompanyProfileDiffResponse =
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
468
|
+
export const CompanyProfileDiffResponse = /* @__PURE__ */ defineSchema(() =>
|
|
469
|
+
z.object({
|
|
470
|
+
from: CompanyProfileRevision,
|
|
471
|
+
to: CompanyProfileRevision,
|
|
472
|
+
format: z.literal("unified_json"),
|
|
473
|
+
diff: primitives.string,
|
|
474
|
+
}),
|
|
475
|
+
);
|
|
423
476
|
export type CompanyProfileDiffResponse = z.infer<typeof CompanyProfileDiffResponse>;
|
|
424
477
|
|
|
425
|
-
export const CompanyProfileConflictResponse =
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
478
|
+
export const CompanyProfileConflictResponse = /* @__PURE__ */ defineSchema(() =>
|
|
479
|
+
z.object({
|
|
480
|
+
code: z.literal("COMPANY_PROFILE_CONFLICT"),
|
|
481
|
+
message: primitives.string,
|
|
482
|
+
currentHead: CompanyProfileHead.nullable(),
|
|
483
|
+
}),
|
|
484
|
+
);
|
|
485
|
+
|
|
486
|
+
export const CompanyProfileOperationReuseResponse = /* @__PURE__ */ defineSchema(() =>
|
|
487
|
+
z.object({
|
|
488
|
+
code: z.literal("COMPANY_PROFILE_OPERATION_REUSED"),
|
|
489
|
+
message: primitives.string,
|
|
490
|
+
}),
|
|
491
|
+
);
|
|
492
|
+
|
|
493
|
+
export const CompanyProfileLearningSubjectKind = /* @__PURE__ */ defineSchema(() =>
|
|
494
|
+
z.enum([
|
|
495
|
+
"company_identity",
|
|
496
|
+
"company_mission",
|
|
497
|
+
"company_product",
|
|
498
|
+
"company_customer",
|
|
499
|
+
"company_goal",
|
|
500
|
+
"company_constraint",
|
|
501
|
+
]),
|
|
502
|
+
);
|
|
444
503
|
export type CompanyProfileLearningSubjectKind = z.infer<typeof CompanyProfileLearningSubjectKind>;
|
|
445
504
|
|
|
446
|
-
const CompanyProfileScalarLearningSubject =
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
505
|
+
const CompanyProfileScalarLearningSubject = /* @__PURE__ */ defineSchema(() =>
|
|
506
|
+
z.object({
|
|
507
|
+
kind: z.enum(["company_identity", "company_mission"]),
|
|
508
|
+
content: primitives.string.trim().min(1).max(COMPANY_PROFILE_SCALAR_MAX_CHARS),
|
|
509
|
+
stableKey: z.null(),
|
|
510
|
+
}),
|
|
511
|
+
);
|
|
451
512
|
|
|
452
|
-
const CompanyProfileRepeatableLearningSubject =
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
513
|
+
const CompanyProfileRepeatableLearningSubject = /* @__PURE__ */ defineSchema(() =>
|
|
514
|
+
z.object({
|
|
515
|
+
kind: z.enum(["company_product", "company_customer", "company_goal", "company_constraint"]),
|
|
516
|
+
content: primitives.string.trim().min(1).max(COMPANY_PROFILE_ENTRY_MAX_CHARS),
|
|
517
|
+
stableKey: CompanyProfileStableKeyInput,
|
|
518
|
+
}),
|
|
519
|
+
);
|
|
457
520
|
|
|
458
521
|
/** Authority-native seam invoked only by the canonical durable-learning router adapter. */
|
|
459
|
-
export const CompanyProfileLearningWrite =
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
522
|
+
export const CompanyProfileLearningWrite = /* @__PURE__ */ defineSchema(() =>
|
|
523
|
+
z.object({
|
|
524
|
+
operationId: primitives.uuid,
|
|
525
|
+
accountId: primitives.uuid,
|
|
526
|
+
workspaceId: primitives.uuid,
|
|
527
|
+
actorSubjectId: z.string().min(1).max(1_024),
|
|
528
|
+
actorKind: z.enum(["human", "agent", "service"]),
|
|
529
|
+
authority: z.enum(["active", "proposal"]),
|
|
530
|
+
subject: z.discriminatedUnion("kind", [
|
|
531
|
+
CompanyProfileScalarLearningSubject,
|
|
532
|
+
CompanyProfileRepeatableLearningSubject,
|
|
533
|
+
]),
|
|
534
|
+
sourceId: primitives.nonEmptyString.max(COMPANY_PROFILE_SOURCE_ID_MAX_CHARS),
|
|
535
|
+
}),
|
|
536
|
+
);
|
|
472
537
|
export type CompanyProfileLearningWrite = z.infer<typeof CompanyProfileLearningWrite>;
|