@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/google-drive.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
|
|
|
3
5
|
import { ConnectionMetadata } from "./index";
|
|
@@ -21,13 +23,15 @@ export const GOOGLE_DRIVE_PUBLICATION_SERVER_ID = "google-drive-publishing" as c
|
|
|
21
23
|
export const GOOGLE_DRIVE_PUBLICATION_TOOL_NAME = "google_drive_publish_file" as const;
|
|
22
24
|
export const GOOGLE_DRIVE_PUBLICATION_CREATE_ACTION = "create" as const;
|
|
23
25
|
|
|
24
|
-
export const GoogleDriveOAuthCapability =
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
export const GoogleDriveOAuthCapability = /* @__PURE__ */ defineSchema(() =>
|
|
27
|
+
z.enum([
|
|
28
|
+
"picker_file_read",
|
|
29
|
+
"publish_file",
|
|
30
|
+
"source_metadata_discovery",
|
|
31
|
+
"source_content_read",
|
|
32
|
+
"recursive_source_sync",
|
|
33
|
+
]),
|
|
34
|
+
);
|
|
31
35
|
export type GoogleDriveOAuthCapability = z.infer<typeof GoogleDriveOAuthCapability>;
|
|
32
36
|
|
|
33
37
|
export type GoogleDriveOAuthScopeDecision = {
|
|
@@ -36,7 +40,7 @@ export type GoogleDriveOAuthScopeDecision = {
|
|
|
36
40
|
};
|
|
37
41
|
|
|
38
42
|
/**
|
|
39
|
-
* Converts exact Google OAuth grants into the Drive capabilities
|
|
43
|
+
* Converts exact Google OAuth grants into the Drive capabilities Opengeni may
|
|
40
44
|
* rely on. Unknown or malformed grants add no authority. In particular,
|
|
41
45
|
* drive.file covers only files explicitly opened or shared with the app and
|
|
42
46
|
* never authorizes arbitrary recursive descendant discovery.
|
|
@@ -78,281 +82,329 @@ export function googleDriveScopesAllowCapability(
|
|
|
78
82
|
}
|
|
79
83
|
|
|
80
84
|
/** @deprecated Connector document destinations use organization/workspace/personal authority. */
|
|
81
|
-
export const GoogleDriveTargetScope =
|
|
85
|
+
export const GoogleDriveTargetScope = /* @__PURE__ */ defineSchema(() =>
|
|
86
|
+
z.enum(["user", "workspace", "organization"]),
|
|
87
|
+
);
|
|
82
88
|
export type GoogleDriveTargetScope = z.infer<typeof GoogleDriveTargetScope>;
|
|
83
89
|
|
|
84
|
-
export const GoogleDriveSyncCadence =
|
|
90
|
+
export const GoogleDriveSyncCadence = /* @__PURE__ */ defineSchema(() =>
|
|
91
|
+
z.enum(["manual", "hourly", "daily"]),
|
|
92
|
+
);
|
|
85
93
|
export type GoogleDriveSyncCadence = z.infer<typeof GoogleDriveSyncCadence>;
|
|
86
94
|
|
|
87
|
-
export const GoogleDriveReadPolicy =
|
|
95
|
+
export const GoogleDriveReadPolicy = /* @__PURE__ */ defineSchema(() =>
|
|
96
|
+
z.enum(["allow", "ask", "block"]),
|
|
97
|
+
);
|
|
88
98
|
export type GoogleDriveReadPolicy = z.infer<typeof GoogleDriveReadPolicy>;
|
|
89
99
|
|
|
90
|
-
export const GoogleDriveConnectionLifecycleState =
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
100
|
+
export const GoogleDriveConnectionLifecycleState = /* @__PURE__ */ defineSchema(() =>
|
|
101
|
+
z.enum([
|
|
102
|
+
"active",
|
|
103
|
+
"paused",
|
|
104
|
+
"token_revoked",
|
|
105
|
+
"app_removed",
|
|
106
|
+
"disconnected",
|
|
107
|
+
"reconnect_required",
|
|
108
|
+
"reconsent_required",
|
|
109
|
+
]),
|
|
110
|
+
);
|
|
99
111
|
export type GoogleDriveConnectionLifecycleState = z.infer<
|
|
100
112
|
typeof GoogleDriveConnectionLifecycleState
|
|
101
113
|
>;
|
|
102
114
|
|
|
103
|
-
const GoogleDriveLifecycleObservedAt =
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
115
|
+
const GoogleDriveLifecycleObservedAt = /* @__PURE__ */ defineSchema(() =>
|
|
116
|
+
primitives.string.datetime({ offset: true }),
|
|
117
|
+
);
|
|
118
|
+
export const GoogleDriveConnectionLifecycle = /* @__PURE__ */ defineSchema(() =>
|
|
119
|
+
z.discriminatedUnion("state", [
|
|
120
|
+
z.object({
|
|
121
|
+
state: z.literal("active"),
|
|
122
|
+
recoverable: z.literal(true),
|
|
123
|
+
observedAt: GoogleDriveLifecycleObservedAt,
|
|
124
|
+
}),
|
|
125
|
+
z.object({
|
|
126
|
+
state: z.literal("paused"),
|
|
127
|
+
recoverable: z.literal(true),
|
|
128
|
+
observedAt: GoogleDriveLifecycleObservedAt,
|
|
129
|
+
}),
|
|
130
|
+
z.object({
|
|
131
|
+
state: z.literal("token_revoked"),
|
|
132
|
+
recoverable: z.literal(true),
|
|
133
|
+
observedAt: GoogleDriveLifecycleObservedAt,
|
|
134
|
+
}),
|
|
135
|
+
z.object({
|
|
136
|
+
state: z.literal("app_removed"),
|
|
137
|
+
recoverable: z.literal(false),
|
|
138
|
+
observedAt: GoogleDriveLifecycleObservedAt,
|
|
139
|
+
}),
|
|
140
|
+
z.object({
|
|
141
|
+
state: z.literal("disconnected"),
|
|
142
|
+
recoverable: z.literal(true),
|
|
143
|
+
observedAt: GoogleDriveLifecycleObservedAt,
|
|
144
|
+
}),
|
|
145
|
+
z.object({
|
|
146
|
+
state: z.literal("reconnect_required"),
|
|
147
|
+
recoverable: z.literal(true),
|
|
148
|
+
observedAt: GoogleDriveLifecycleObservedAt,
|
|
149
|
+
}),
|
|
150
|
+
z.object({
|
|
151
|
+
state: z.literal("reconsent_required"),
|
|
152
|
+
recoverable: z.literal(true),
|
|
153
|
+
observedAt: GoogleDriveLifecycleObservedAt,
|
|
154
|
+
}),
|
|
155
|
+
]),
|
|
156
|
+
);
|
|
141
157
|
export type GoogleDriveConnectionLifecycle = z.infer<typeof GoogleDriveConnectionLifecycle>;
|
|
142
158
|
|
|
143
|
-
export const GoogleDriveSelectedSource =
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
})
|
|
159
|
+
export const GoogleDriveSelectedSource = /* @__PURE__ */ defineSchema(() =>
|
|
160
|
+
z.object({
|
|
161
|
+
id: z.string().min(1).max(256),
|
|
162
|
+
name: z.string().min(1).max(1024),
|
|
163
|
+
mimeType: z.string().min(1).max(256),
|
|
164
|
+
driveId: z.string().min(1).max(256).nullable().default(null),
|
|
165
|
+
destination: ConnectorDocumentDestination.optional(),
|
|
166
|
+
/** @deprecated Missing destinations resolve to the current workspace boundary. */
|
|
167
|
+
targetScope: GoogleDriveTargetScope.optional(),
|
|
168
|
+
syncCadence: GoogleDriveSyncCadence.default("hourly"),
|
|
169
|
+
syncEnabled: primitives.boolean.default(false),
|
|
170
|
+
configGeneration: primitives.positiveInteger.default(1),
|
|
171
|
+
readPolicy: GoogleDriveReadPolicy.default("allow"),
|
|
172
|
+
selectedAt: primitives.string.datetime({ offset: true }),
|
|
173
|
+
}),
|
|
174
|
+
);
|
|
157
175
|
export type GoogleDriveSelectedSource = z.infer<typeof GoogleDriveSelectedSource>;
|
|
158
176
|
|
|
159
|
-
export const GoogleDriveOutputDestination =
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
+
export const GoogleDriveOutputDestination = /* @__PURE__ */ defineSchema(() =>
|
|
178
|
+
z
|
|
179
|
+
.object({
|
|
180
|
+
folderId: z.string().min(1).max(256),
|
|
181
|
+
folderName: z.string().min(1).max(1024),
|
|
182
|
+
driveId: z.string().min(1).max(256).nullable(),
|
|
183
|
+
location: z.enum(["my_drive", "shared_drive"]),
|
|
184
|
+
selectedAt: primitives.string.datetime({ offset: true }),
|
|
185
|
+
})
|
|
186
|
+
.strict()
|
|
187
|
+
.superRefine((value, context) => {
|
|
188
|
+
if ((value.location === "my_drive") !== (value.driveId === null)) {
|
|
189
|
+
context.addIssue({
|
|
190
|
+
code: "custom",
|
|
191
|
+
path: ["driveId"],
|
|
192
|
+
message: "Google Drive destination location does not match its drive identity",
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
}),
|
|
196
|
+
);
|
|
177
197
|
export type GoogleDriveOutputDestination = z.infer<typeof GoogleDriveOutputDestination>;
|
|
178
198
|
|
|
179
|
-
export const GoogleDriveConnectionMetadata =
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
z.
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
+
export const GoogleDriveConnectionMetadata = /* @__PURE__ */ defineSchema(() =>
|
|
200
|
+
z
|
|
201
|
+
.object({
|
|
202
|
+
credentialRole: z.literal(GOOGLE_DRIVE_CREDENTIAL_ROLE),
|
|
203
|
+
credentialLabel: z.union([
|
|
204
|
+
z.literal(GOOGLE_DRIVE_CREDENTIAL_LABEL),
|
|
205
|
+
z.literal(GOOGLE_DRIVE_LEGACY_CREDENTIAL_LABEL),
|
|
206
|
+
]),
|
|
207
|
+
googlePermissionId: z.string().min(1).max(256),
|
|
208
|
+
googleEmail: z.string().email().max(320),
|
|
209
|
+
googleDisplayName: z.string().min(1).max(512).nullable(),
|
|
210
|
+
verifiedAt: primitives.string.datetime({ offset: true }),
|
|
211
|
+
accessMode: z.enum(["file_only", "metadata_readonly", "readonly"]),
|
|
212
|
+
lifecycle: GoogleDriveConnectionLifecycle.optional(),
|
|
213
|
+
outputDestination: GoogleDriveOutputDestination.optional(),
|
|
214
|
+
documentDestination: ConnectorDocumentDestination.optional(),
|
|
215
|
+
selectedSources: z.array(GoogleDriveSelectedSource).max(100).optional(),
|
|
216
|
+
/** @deprecated Read `selectedSources`; retained while existing connections migrate. */
|
|
217
|
+
selectedSource: GoogleDriveSelectedSource.nullable().optional(),
|
|
218
|
+
})
|
|
219
|
+
.passthrough(),
|
|
220
|
+
);
|
|
199
221
|
export type GoogleDriveConnectionMetadata = z.infer<typeof GoogleDriveConnectionMetadata>;
|
|
200
222
|
|
|
201
|
-
export const GoogleDriveOAuthStartRequest =
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
223
|
+
export const GoogleDriveOAuthStartRequest = /* @__PURE__ */ defineSchema(() =>
|
|
224
|
+
z.object({
|
|
225
|
+
connectionId: primitives.optionalUuid,
|
|
226
|
+
capability: z.enum(["source_read", "publish"]).default("source_read"),
|
|
227
|
+
}),
|
|
228
|
+
);
|
|
205
229
|
export type GoogleDriveOAuthStartRequest = z.infer<typeof GoogleDriveOAuthStartRequest>;
|
|
206
230
|
|
|
207
|
-
export const GoogleDriveOAuthStartResponse =
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
})
|
|
231
|
+
export const GoogleDriveOAuthStartResponse = /* @__PURE__ */ defineSchema(() =>
|
|
232
|
+
z.object({
|
|
233
|
+
authorizationUrl: z.string().url(),
|
|
234
|
+
expiresAt: primitives.string.datetime({ offset: true }),
|
|
235
|
+
}),
|
|
236
|
+
);
|
|
211
237
|
export type GoogleDriveOAuthStartResponse = z.infer<typeof GoogleDriveOAuthStartResponse>;
|
|
212
238
|
|
|
213
|
-
export const GoogleDriveLifecycleActionRequest =
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
239
|
+
export const GoogleDriveLifecycleActionRequest = /* @__PURE__ */ defineSchema(() =>
|
|
240
|
+
z.object({
|
|
241
|
+
action: z.enum(["pause", "resume"]),
|
|
242
|
+
expectedVersion: primitives.positiveInteger,
|
|
243
|
+
}),
|
|
244
|
+
);
|
|
217
245
|
export type GoogleDriveLifecycleActionRequest = z.infer<typeof GoogleDriveLifecycleActionRequest>;
|
|
218
246
|
|
|
219
|
-
export const GoogleDriveDisconnectRequest =
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
247
|
+
export const GoogleDriveDisconnectRequest = /* @__PURE__ */ defineSchema(() =>
|
|
248
|
+
z.object({
|
|
249
|
+
expectedVersion: primitives.positiveInteger,
|
|
250
|
+
idempotencyKey: primitives.string.trim().min(1).max(200),
|
|
251
|
+
}),
|
|
252
|
+
);
|
|
223
253
|
export type GoogleDriveDisconnectRequest = z.infer<typeof GoogleDriveDisconnectRequest>;
|
|
224
254
|
|
|
225
|
-
export const GoogleDrivePublicationExportFile =
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
255
|
+
export const GoogleDrivePublicationExportFile = /* @__PURE__ */ defineSchema(() =>
|
|
256
|
+
z
|
|
257
|
+
.object({
|
|
258
|
+
fileId: primitives.uuid,
|
|
259
|
+
filename: primitives.string.trim().min(1).max(512),
|
|
260
|
+
contentType: primitives.string.trim().min(1).max(256),
|
|
261
|
+
sizeBytes: primitives.positiveInteger,
|
|
262
|
+
sha256: primitives.string.regex(/^[0-9a-f]{64}$/u),
|
|
263
|
+
artifactId: primitives.string.regex(/^[0-9a-f]{32}$/u),
|
|
264
|
+
versionId: primitives.string.regex(/^[0-9a-f]{32}$/u),
|
|
265
|
+
materializationJobId: primitives.string.regex(/^[0-9a-f]{32}$/u),
|
|
266
|
+
sourceHeadSequence: primitives.nonnegativeInteger,
|
|
267
|
+
sourceStateHash: primitives.string.regex(/^sha256:[0-9a-f]{64}$/u),
|
|
268
|
+
})
|
|
269
|
+
.strict(),
|
|
270
|
+
);
|
|
239
271
|
export type GoogleDrivePublicationExportFile = z.infer<typeof GoogleDrivePublicationExportFile>;
|
|
240
272
|
|
|
241
|
-
export const GoogleDrivePublicationToolInput =
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
273
|
+
export const GoogleDrivePublicationToolInput = /* @__PURE__ */ defineSchema(() =>
|
|
274
|
+
z
|
|
275
|
+
.object({
|
|
276
|
+
title: primitives.string.trim().min(1).max(512),
|
|
277
|
+
modality: z.enum(["document", "spreadsheet", "presentation"]),
|
|
278
|
+
file: GoogleDrivePublicationExportFile,
|
|
279
|
+
idempotencyKey: primitives.string.trim().min(1).max(200),
|
|
280
|
+
})
|
|
281
|
+
.strict(),
|
|
282
|
+
);
|
|
249
283
|
export type GoogleDrivePublicationToolInput = z.infer<typeof GoogleDrivePublicationToolInput>;
|
|
250
284
|
|
|
251
|
-
export const GoogleDrivePublicationReceipt =
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
285
|
+
export const GoogleDrivePublicationReceipt = /* @__PURE__ */ defineSchema(() =>
|
|
286
|
+
z
|
|
287
|
+
.object({
|
|
288
|
+
connectionId: primitives.uuid,
|
|
289
|
+
providerFileId: z.string().min(1).max(256),
|
|
290
|
+
webViewLink: z.string().url(),
|
|
291
|
+
mimeType: z.enum([
|
|
292
|
+
"application/vnd.google-apps.document",
|
|
293
|
+
"application/vnd.google-apps.spreadsheet",
|
|
294
|
+
"application/vnd.google-apps.presentation",
|
|
295
|
+
]),
|
|
296
|
+
destination: GoogleDriveOutputDestination,
|
|
297
|
+
replayed: primitives.boolean,
|
|
298
|
+
})
|
|
299
|
+
.strict(),
|
|
300
|
+
);
|
|
265
301
|
export type GoogleDrivePublicationReceipt = z.infer<typeof GoogleDrivePublicationReceipt>;
|
|
266
302
|
|
|
267
|
-
export const GoogleDriveBrowseItem =
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
303
|
+
export const GoogleDriveBrowseItem = /* @__PURE__ */ defineSchema(() =>
|
|
304
|
+
z.object({
|
|
305
|
+
id: z.string().min(1).max(256),
|
|
306
|
+
name: z.string().min(1).max(1024),
|
|
307
|
+
mimeType: z.string().min(1).max(256),
|
|
308
|
+
kind: z.enum(["folder", "file"]),
|
|
309
|
+
driveId: z.string().min(1).max(256).nullable(),
|
|
310
|
+
modifiedTime: primitives.string.datetime({ offset: true }).nullable(),
|
|
311
|
+
size: primitives.string.regex(/^\d+$/).nullable(),
|
|
312
|
+
webViewLink: z.string().url().nullable(),
|
|
313
|
+
}),
|
|
314
|
+
);
|
|
277
315
|
export type GoogleDriveBrowseItem = z.infer<typeof GoogleDriveBrowseItem>;
|
|
278
316
|
|
|
279
|
-
export const GoogleDriveBrowseResponse =
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
317
|
+
export const GoogleDriveBrowseResponse = /* @__PURE__ */ defineSchema(() =>
|
|
318
|
+
z.object({
|
|
319
|
+
connection: z.lazy(() => ConnectionMetadata),
|
|
320
|
+
parentId: z.string().min(1).max(256),
|
|
321
|
+
current: GoogleDriveBrowseItem.nullable(),
|
|
322
|
+
items: z.array(GoogleDriveBrowseItem),
|
|
323
|
+
nextPageToken: z.string().min(1).max(4096).nullable(),
|
|
324
|
+
incompleteSearch: primitives.boolean,
|
|
325
|
+
}),
|
|
326
|
+
);
|
|
287
327
|
export type GoogleDriveBrowseResponse = z.infer<typeof GoogleDriveBrowseResponse>;
|
|
288
328
|
|
|
289
|
-
const GoogleDriveSourceSelection =
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
329
|
+
const GoogleDriveSourceSelection = /* @__PURE__ */ defineSchema(() =>
|
|
330
|
+
z
|
|
331
|
+
.array(
|
|
332
|
+
GoogleDriveBrowseItem.pick({
|
|
333
|
+
id: true,
|
|
334
|
+
name: true,
|
|
335
|
+
mimeType: true,
|
|
336
|
+
driveId: true,
|
|
337
|
+
}),
|
|
338
|
+
)
|
|
339
|
+
.max(100)
|
|
340
|
+
.refine((sources) => new Set(sources.map((source) => source.id)).size === sources.length, {
|
|
341
|
+
message: "Google Drive sources must be unique",
|
|
296
342
|
}),
|
|
297
|
-
|
|
298
|
-
.max(100)
|
|
299
|
-
.refine((sources) => new Set(sources.map((source) => source.id)).size === sources.length, {
|
|
300
|
-
message: "Google Drive sources must be unique",
|
|
301
|
-
});
|
|
343
|
+
);
|
|
302
344
|
|
|
303
|
-
export const SaveGoogleDriveSourceRequest =
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
345
|
+
export const SaveGoogleDriveSourceRequest = /* @__PURE__ */ defineSchema(() =>
|
|
346
|
+
z
|
|
347
|
+
.object({
|
|
348
|
+
sources: GoogleDriveSourceSelection,
|
|
349
|
+
destination: ConnectorDocumentDestinationSelection.optional(),
|
|
350
|
+
/** @deprecated Legacy requests are accepted but resolve to workspace authority. */
|
|
351
|
+
targetScope: GoogleDriveTargetScope.optional(),
|
|
352
|
+
syncCadence: GoogleDriveSyncCadence.default("hourly"),
|
|
353
|
+
syncEnabled: primitives.boolean.default(false),
|
|
354
|
+
readPolicy: GoogleDriveReadPolicy.default("allow"),
|
|
355
|
+
})
|
|
356
|
+
.refine((request) => request.destination !== undefined || request.targetScope !== undefined, {
|
|
357
|
+
message: "Google Drive document destination is required",
|
|
358
|
+
}),
|
|
359
|
+
);
|
|
316
360
|
export type SaveGoogleDriveSourceRequest = z.infer<typeof SaveGoogleDriveSourceRequest>;
|
|
317
361
|
|
|
318
|
-
export const GoogleDriveKnowledgeSourceItem =
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
362
|
+
export const GoogleDriveKnowledgeSourceItem = /* @__PURE__ */ defineSchema(() =>
|
|
363
|
+
z.object({
|
|
364
|
+
id: z.string().min(1).max(512),
|
|
365
|
+
name: z.string().min(1).max(1024),
|
|
366
|
+
mimeType: z.string().min(1).max(256),
|
|
367
|
+
driveId: z.string().min(1).max(512).optional(),
|
|
368
|
+
sourceKind: z.enum(["my_drive", "shared_drive", "folder"]),
|
|
369
|
+
includeDescendants: primitives.boolean,
|
|
370
|
+
}),
|
|
371
|
+
);
|
|
326
372
|
export type GoogleDriveKnowledgeSourceItem = z.infer<typeof GoogleDriveKnowledgeSourceItem>;
|
|
327
373
|
|
|
328
|
-
export const GoogleDriveKnowledgeSourceDestination =
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
374
|
+
export const GoogleDriveKnowledgeSourceDestination = /* @__PURE__ */ defineSchema(() =>
|
|
375
|
+
z.object({
|
|
376
|
+
authorityKind: z.enum(["organization", "workspace", "personal"]),
|
|
377
|
+
authorityAccountId: z.string().min(1).max(128),
|
|
378
|
+
authorityWorkspaceId: z.string().min(1).max(128).optional(),
|
|
379
|
+
authoritySubjectId: z.string().min(1).max(512).optional(),
|
|
380
|
+
collectionId: z.string().min(1).max(512).optional(),
|
|
381
|
+
}),
|
|
382
|
+
);
|
|
335
383
|
export type GoogleDriveKnowledgeSourceDestination = z.infer<
|
|
336
384
|
typeof GoogleDriveKnowledgeSourceDestination
|
|
337
385
|
>;
|
|
338
386
|
|
|
339
|
-
export const GoogleDriveKnowledgeSourceConfig =
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
387
|
+
export const GoogleDriveKnowledgeSourceConfig = /* @__PURE__ */ defineSchema(() =>
|
|
388
|
+
z.object({
|
|
389
|
+
sources: z.array(GoogleDriveKnowledgeSourceItem).min(1).max(100),
|
|
390
|
+
destination: GoogleDriveKnowledgeSourceDestination,
|
|
391
|
+
syncCadence: GoogleDriveSyncCadence,
|
|
392
|
+
readPolicy: GoogleDriveReadPolicy,
|
|
393
|
+
}),
|
|
394
|
+
);
|
|
345
395
|
export type GoogleDriveKnowledgeSourceConfig = z.infer<typeof GoogleDriveKnowledgeSourceConfig>;
|
|
346
396
|
|
|
347
|
-
export const SaveGoogleDriveIntegrationSourceRequest =
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
397
|
+
export const SaveGoogleDriveIntegrationSourceRequest = /* @__PURE__ */ defineSchema(() =>
|
|
398
|
+
z.intersection(
|
|
399
|
+
SaveGoogleDriveSourceRequest,
|
|
400
|
+
z.object({
|
|
401
|
+
sources: GoogleDriveSourceSelection.refine((sources) => sources.length > 0, {
|
|
402
|
+
message: "At least one Google Drive source is required",
|
|
403
|
+
}),
|
|
404
|
+
expectedVersion: z.number().int().positive().optional(),
|
|
405
|
+
idempotencyKey: primitives.uuid,
|
|
352
406
|
}),
|
|
353
|
-
|
|
354
|
-
idempotencyKey: z.string().uuid(),
|
|
355
|
-
}),
|
|
407
|
+
),
|
|
356
408
|
);
|
|
357
409
|
export type SaveGoogleDriveIntegrationSourceRequest = z.infer<
|
|
358
410
|
typeof SaveGoogleDriveIntegrationSourceRequest
|