@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/video-generation.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
|
GENERATED_VIDEO_MAX_BYTES,
|
|
@@ -9,423 +11,490 @@ export const VIDEO_GENERATION_SCHEMA_VERSION = 1 as const;
|
|
|
9
11
|
export const SEEDANCE_2_5_MODEL_ID = "bytedance/seedance-2.5" as const;
|
|
10
12
|
export const GROK_IMAGINE_VIDEO_1_5_MODEL_ID = "xai/grok-imagine-video-1.5" as const;
|
|
11
13
|
|
|
12
|
-
export const VideoGenerationSourceMode =
|
|
13
|
-
"text",
|
|
14
|
-
|
|
15
|
-
"first_and_last_frames",
|
|
16
|
-
"image_reference",
|
|
17
|
-
"video_reference",
|
|
18
|
-
]);
|
|
14
|
+
export const VideoGenerationSourceMode = /* @__PURE__ */ defineSchema(() =>
|
|
15
|
+
z.enum(["text", "first_frame", "first_and_last_frames", "image_reference", "video_reference"]),
|
|
16
|
+
);
|
|
19
17
|
export type VideoGenerationSourceMode = z.infer<typeof VideoGenerationSourceMode>;
|
|
20
18
|
|
|
21
|
-
export const VideoGenerationResolution =
|
|
19
|
+
export const VideoGenerationResolution = /* @__PURE__ */ defineSchema(() =>
|
|
20
|
+
z.enum(["480p", "720p"]),
|
|
21
|
+
);
|
|
22
22
|
export type VideoGenerationResolution = z.infer<typeof VideoGenerationResolution>;
|
|
23
23
|
|
|
24
|
-
export const VideoGenerationFundingSource =
|
|
25
|
-
"opengeni_credits",
|
|
26
|
-
|
|
27
|
-
"supergrok_subscription",
|
|
28
|
-
]);
|
|
24
|
+
export const VideoGenerationFundingSource = /* @__PURE__ */ defineSchema(() =>
|
|
25
|
+
z.enum(["opengeni_credits", "workspace_gateway", "supergrok_subscription"]),
|
|
26
|
+
);
|
|
29
27
|
export type VideoGenerationFundingSource = z.infer<typeof VideoGenerationFundingSource>;
|
|
30
28
|
|
|
31
|
-
export const VideoGenerationAspectRatio =
|
|
32
|
-
"16:9",
|
|
33
|
-
|
|
34
|
-
"1:1",
|
|
35
|
-
"3:4",
|
|
36
|
-
"9:16",
|
|
37
|
-
"21:9",
|
|
38
|
-
"adaptive",
|
|
39
|
-
]);
|
|
29
|
+
export const VideoGenerationAspectRatio = /* @__PURE__ */ defineSchema(() =>
|
|
30
|
+
z.enum(["16:9", "4:3", "1:1", "3:4", "9:16", "21:9", "adaptive"]),
|
|
31
|
+
);
|
|
40
32
|
export type VideoGenerationAspectRatio = z.infer<typeof VideoGenerationAspectRatio>;
|
|
41
33
|
|
|
42
|
-
const SandboxVideoReferencePath =
|
|
43
|
-
.string()
|
|
44
|
-
.min(1)
|
|
45
|
-
.max(1_024)
|
|
46
|
-
.refine((value) => value.startsWith("/workspace/"), {
|
|
47
|
-
message: "video references must use an absolute /workspace path",
|
|
48
|
-
});
|
|
49
|
-
|
|
50
|
-
export const VideoGenerationSource = z.discriminatedUnion("mode", [
|
|
51
|
-
z.object({ mode: z.literal("text") }).strict(),
|
|
34
|
+
const SandboxVideoReferencePath = /* @__PURE__ */ defineSchema(() =>
|
|
52
35
|
z
|
|
53
|
-
.
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
z
|
|
59
|
-
.object({
|
|
60
|
-
mode: z.literal("first_and_last_frames"),
|
|
61
|
-
firstFramePath: SandboxVideoReferencePath,
|
|
62
|
-
lastFramePath: SandboxVideoReferencePath,
|
|
63
|
-
})
|
|
64
|
-
.strict()
|
|
65
|
-
.refine((value) => value.firstFramePath !== value.lastFramePath, {
|
|
66
|
-
path: ["lastFramePath"],
|
|
67
|
-
message: "first and last frame paths must differ",
|
|
36
|
+
.string()
|
|
37
|
+
.min(1)
|
|
38
|
+
.max(1_024)
|
|
39
|
+
.refine((value) => value.startsWith("/workspace/"), {
|
|
40
|
+
message: "video references must use an absolute /workspace path",
|
|
68
41
|
}),
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
export const VideoGenerationSource = /* @__PURE__ */ defineSchema(() =>
|
|
45
|
+
z.discriminatedUnion("mode", [
|
|
46
|
+
z.object({ mode: z.literal("text") }).strict(),
|
|
47
|
+
z
|
|
48
|
+
.object({
|
|
49
|
+
mode: z.literal("first_frame"),
|
|
50
|
+
imagePath: SandboxVideoReferencePath,
|
|
51
|
+
})
|
|
52
|
+
.strict(),
|
|
53
|
+
z
|
|
54
|
+
.object({
|
|
55
|
+
mode: z.literal("first_and_last_frames"),
|
|
56
|
+
firstFramePath: SandboxVideoReferencePath,
|
|
57
|
+
lastFramePath: SandboxVideoReferencePath,
|
|
58
|
+
})
|
|
59
|
+
.strict()
|
|
60
|
+
.refine((value) => value.firstFramePath !== value.lastFramePath, {
|
|
61
|
+
path: ["lastFramePath"],
|
|
62
|
+
message: "first and last frame paths must differ",
|
|
63
|
+
}),
|
|
64
|
+
z
|
|
65
|
+
.object({
|
|
66
|
+
mode: z.literal("image_reference"),
|
|
67
|
+
imagePath: SandboxVideoReferencePath,
|
|
68
|
+
})
|
|
69
|
+
.strict(),
|
|
70
|
+
z
|
|
71
|
+
.object({
|
|
72
|
+
mode: z.literal("video_reference"),
|
|
73
|
+
videoPath: SandboxVideoReferencePath,
|
|
74
|
+
})
|
|
75
|
+
.strict(),
|
|
76
|
+
]),
|
|
77
|
+
);
|
|
78
|
+
export type VideoGenerationSource = z.infer<typeof VideoGenerationSource>;
|
|
79
|
+
|
|
80
|
+
/** Stable provider-neutral function-tool input. Dynamic capability facts never enter this schema. */
|
|
81
|
+
export const GenerateVideoToolInput = /* @__PURE__ */ defineSchema(() =>
|
|
69
82
|
z
|
|
70
83
|
.object({
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
84
|
+
prompt: z
|
|
85
|
+
.string()
|
|
86
|
+
.min(1)
|
|
87
|
+
.max(32_000)
|
|
88
|
+
.refine((value) => value.trim().length > 0),
|
|
89
|
+
modelId: z.string().min(1).max(256).optional(),
|
|
90
|
+
source: VideoGenerationSource.optional(),
|
|
91
|
+
durationSeconds: z.number().int().min(4).max(30).optional(),
|
|
92
|
+
aspectRatio: VideoGenerationAspectRatio.optional(),
|
|
93
|
+
resolution: VideoGenerationResolution.optional(),
|
|
94
|
+
generateAudio: primitives.optionalBoolean,
|
|
79
95
|
})
|
|
80
96
|
.strict(),
|
|
81
|
-
|
|
82
|
-
export type VideoGenerationSource = z.infer<typeof VideoGenerationSource>;
|
|
83
|
-
|
|
84
|
-
/** Stable provider-neutral function-tool input. Dynamic capability facts never enter this schema. */
|
|
85
|
-
export const GenerateVideoToolInput = z
|
|
86
|
-
.object({
|
|
87
|
-
prompt: z
|
|
88
|
-
.string()
|
|
89
|
-
.min(1)
|
|
90
|
-
.max(32_000)
|
|
91
|
-
.refine((value) => value.trim().length > 0),
|
|
92
|
-
modelId: z.string().min(1).max(256).optional(),
|
|
93
|
-
source: VideoGenerationSource.optional(),
|
|
94
|
-
durationSeconds: z.number().int().min(4).max(30).optional(),
|
|
95
|
-
aspectRatio: VideoGenerationAspectRatio.optional(),
|
|
96
|
-
resolution: VideoGenerationResolution.optional(),
|
|
97
|
-
generateAudio: z.boolean().optional(),
|
|
98
|
-
})
|
|
99
|
-
.strict();
|
|
97
|
+
);
|
|
100
98
|
export type GenerateVideoToolInput = z.infer<typeof GenerateVideoToolInput>;
|
|
101
99
|
|
|
102
|
-
export const GetVideoGenerationCapabilitiesToolInput =
|
|
100
|
+
export const GetVideoGenerationCapabilitiesToolInput = /* @__PURE__ */ defineSchema(() =>
|
|
101
|
+
z.object({}).strict(),
|
|
102
|
+
);
|
|
103
103
|
export type GetVideoGenerationCapabilitiesToolInput = z.infer<
|
|
104
104
|
typeof GetVideoGenerationCapabilitiesToolInput
|
|
105
105
|
>;
|
|
106
106
|
|
|
107
|
-
export const VideoGenerationModelCapability =
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
107
|
+
export const VideoGenerationModelCapability = /* @__PURE__ */ defineSchema(() =>
|
|
108
|
+
z
|
|
109
|
+
.object({
|
|
110
|
+
modelId: z.string().min(1).max(256),
|
|
111
|
+
label: z.string().min(1).max(128),
|
|
112
|
+
providerLabel: z.string().min(1).max(128),
|
|
113
|
+
sourceModes: z.array(VideoGenerationSourceMode).min(1).max(5),
|
|
114
|
+
resolutions: z.array(VideoGenerationResolution).min(1).max(2),
|
|
115
|
+
aspectRatios: z.array(VideoGenerationAspectRatio).min(1).max(7),
|
|
116
|
+
duration: z
|
|
117
|
+
.object({
|
|
118
|
+
minSeconds: primitives.positiveInteger,
|
|
119
|
+
maxSeconds: primitives.positiveInteger,
|
|
120
|
+
stepSeconds: primitives.positiveInteger,
|
|
121
|
+
})
|
|
122
|
+
.strict()
|
|
123
|
+
.refine((value) => value.maxSeconds >= value.minSeconds),
|
|
124
|
+
supportsAudio: primitives.boolean,
|
|
125
|
+
})
|
|
126
|
+
.strict(),
|
|
127
|
+
);
|
|
126
128
|
export type VideoGenerationModelCapability = z.infer<typeof VideoGenerationModelCapability>;
|
|
127
129
|
|
|
128
|
-
export const VideoGenerationCapabilities =
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
130
|
+
export const VideoGenerationCapabilities = /* @__PURE__ */ defineSchema(() =>
|
|
131
|
+
z
|
|
132
|
+
.object({
|
|
133
|
+
schemaVersion: z.literal(VIDEO_GENERATION_SCHEMA_VERSION),
|
|
134
|
+
capabilityRevision: z.string().min(1).max(128),
|
|
135
|
+
defaultModelId: z.string().min(1).max(256),
|
|
136
|
+
models: z.array(VideoGenerationModelCapability).min(1).max(16),
|
|
137
|
+
})
|
|
138
|
+
.strict()
|
|
139
|
+
.superRefine((value, ctx) => {
|
|
140
|
+
const ids = new Set(value.models.map((model) => model.modelId));
|
|
141
|
+
if (ids.size !== value.models.length) {
|
|
142
|
+
ctx.addIssue({
|
|
143
|
+
code: "custom",
|
|
144
|
+
path: ["models"],
|
|
145
|
+
message: "model ids must be unique",
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
if (!ids.has(value.defaultModelId)) {
|
|
149
|
+
ctx.addIssue({
|
|
150
|
+
code: "custom",
|
|
151
|
+
path: ["defaultModelId"],
|
|
152
|
+
message: "default model must be present in the enabled model list",
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
}),
|
|
156
|
+
);
|
|
153
157
|
export type VideoGenerationCapabilities = z.infer<typeof VideoGenerationCapabilities>;
|
|
154
158
|
|
|
155
|
-
export const VideoGenerationPolicy =
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
159
|
+
export const VideoGenerationPolicy = /* @__PURE__ */ defineSchema(() =>
|
|
160
|
+
z
|
|
161
|
+
.object({
|
|
162
|
+
schemaVersion: z.literal(VIDEO_GENERATION_SCHEMA_VERSION),
|
|
163
|
+
revision: primitives.nonnegativeInteger.safe(),
|
|
164
|
+
fundingSource: VideoGenerationFundingSource,
|
|
165
|
+
enabledModelIds: z.array(z.string().min(1).max(256)).max(16),
|
|
166
|
+
defaultModelId: z.string().min(1).max(256).nullable(),
|
|
167
|
+
})
|
|
168
|
+
.strict()
|
|
169
|
+
.superRefine((value, ctx) => {
|
|
170
|
+
const ids = new Set(value.enabledModelIds);
|
|
171
|
+
if (ids.size !== value.enabledModelIds.length) {
|
|
172
|
+
ctx.addIssue({
|
|
173
|
+
code: "custom",
|
|
174
|
+
path: ["enabledModelIds"],
|
|
175
|
+
message: "enabled model ids must be unique",
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
if (value.defaultModelId !== null && !ids.has(value.defaultModelId)) {
|
|
179
|
+
ctx.addIssue({
|
|
180
|
+
code: "custom",
|
|
181
|
+
path: ["defaultModelId"],
|
|
182
|
+
message: "default model must be enabled",
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
}),
|
|
186
|
+
);
|
|
181
187
|
export type VideoGenerationPolicy = z.infer<typeof VideoGenerationPolicy>;
|
|
182
188
|
|
|
183
|
-
export const UpdateVideoGenerationPolicyRequest =
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
189
|
+
export const UpdateVideoGenerationPolicyRequest = /* @__PURE__ */ defineSchema(() =>
|
|
190
|
+
z
|
|
191
|
+
.object({
|
|
192
|
+
expectedRevision: primitives.nonnegativeInteger.safe(),
|
|
193
|
+
fundingSource: VideoGenerationFundingSource,
|
|
194
|
+
enabledModelIds: z.array(z.string().min(1).max(256)).max(16),
|
|
195
|
+
defaultModelId: z.string().min(1).max(256).nullable(),
|
|
196
|
+
})
|
|
197
|
+
.strict(),
|
|
198
|
+
);
|
|
191
199
|
export type UpdateVideoGenerationPolicyRequest = z.infer<typeof UpdateVideoGenerationPolicyRequest>;
|
|
192
200
|
|
|
193
|
-
export const VideoGenerationFundingOption =
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
201
|
+
export const VideoGenerationFundingOption = /* @__PURE__ */ defineSchema(() =>
|
|
202
|
+
z
|
|
203
|
+
.object({
|
|
204
|
+
source: VideoGenerationFundingSource,
|
|
205
|
+
label: z.string().min(1).max(128),
|
|
206
|
+
description: z.string().min(1).max(256),
|
|
207
|
+
available: primitives.boolean,
|
|
208
|
+
unavailableReason: z.string().min(1).max(256).nullable(),
|
|
209
|
+
})
|
|
210
|
+
.strict()
|
|
211
|
+
.superRefine((value, ctx) => {
|
|
212
|
+
if (value.available !== (value.unavailableReason === null)) {
|
|
213
|
+
ctx.addIssue({
|
|
214
|
+
code: "custom",
|
|
215
|
+
path: ["unavailableReason"],
|
|
216
|
+
message: "available funding options cannot have an unavailable reason",
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
}),
|
|
220
|
+
);
|
|
211
221
|
export type VideoGenerationFundingOption = z.infer<typeof VideoGenerationFundingOption>;
|
|
212
222
|
|
|
213
|
-
export const WorkspaceVideoGenerationSettings =
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
223
|
+
export const WorkspaceVideoGenerationSettings = /* @__PURE__ */ defineSchema(() =>
|
|
224
|
+
z
|
|
225
|
+
.object({
|
|
226
|
+
schemaVersion: z.literal(VIDEO_GENERATION_SCHEMA_VERSION),
|
|
227
|
+
policy: VideoGenerationPolicy,
|
|
228
|
+
fundingOptions: z.array(VideoGenerationFundingOption).length(3),
|
|
229
|
+
availableModels: z.array(VideoGenerationModelCapability).max(16),
|
|
230
|
+
capabilities: VideoGenerationCapabilities.nullable(),
|
|
231
|
+
})
|
|
232
|
+
.strict()
|
|
233
|
+
.superRefine((value, ctx) => {
|
|
234
|
+
if (
|
|
235
|
+
new Set(value.fundingOptions.map((option) => option.source)).size !== 3 ||
|
|
236
|
+
!value.fundingOptions.some((option) => option.source === "opengeni_credits") ||
|
|
237
|
+
!value.fundingOptions.some((option) => option.source === "workspace_gateway") ||
|
|
238
|
+
!value.fundingOptions.some((option) => option.source === "supergrok_subscription")
|
|
239
|
+
) {
|
|
240
|
+
ctx.addIssue({
|
|
241
|
+
code: "custom",
|
|
242
|
+
path: ["fundingOptions"],
|
|
243
|
+
message: "all funding sources must be described exactly once",
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
const selected = value.fundingOptions.find(
|
|
247
|
+
(option) => option.source === value.policy.fundingSource,
|
|
248
|
+
);
|
|
249
|
+
if (!selected) {
|
|
250
|
+
ctx.addIssue({
|
|
251
|
+
code: "custom",
|
|
252
|
+
path: ["fundingOptions"],
|
|
253
|
+
message: "the selected funding source must be described",
|
|
254
|
+
});
|
|
255
|
+
} else if (!selected.available && value.capabilities !== null) {
|
|
256
|
+
ctx.addIssue({
|
|
257
|
+
code: "custom",
|
|
258
|
+
path: ["capabilities"],
|
|
259
|
+
message: "unavailable funding cannot expose executable capabilities",
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
}),
|
|
263
|
+
);
|
|
252
264
|
export type WorkspaceVideoGenerationSettings = z.infer<typeof WorkspaceVideoGenerationSettings>;
|
|
253
265
|
|
|
254
|
-
export const VideoGenerationAcceptedReceipt =
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
266
|
+
export const VideoGenerationAcceptedReceipt = /* @__PURE__ */ defineSchema(() =>
|
|
267
|
+
z
|
|
268
|
+
.object({
|
|
269
|
+
schemaVersion: z.literal(VIDEO_GENERATION_SCHEMA_VERSION),
|
|
270
|
+
status: z.literal("accepted"),
|
|
271
|
+
operationId: primitives.uuid,
|
|
272
|
+
})
|
|
273
|
+
.strict(),
|
|
274
|
+
);
|
|
261
275
|
export type VideoGenerationAcceptedReceipt = z.infer<typeof VideoGenerationAcceptedReceipt>;
|
|
262
276
|
|
|
263
|
-
export const VideoGenerationRejectedCode =
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
277
|
+
export const VideoGenerationRejectedCode = /* @__PURE__ */ defineSchema(() =>
|
|
278
|
+
z.enum([
|
|
279
|
+
"invalid_reference_path",
|
|
280
|
+
"reference_not_stable",
|
|
281
|
+
"reference_too_large",
|
|
282
|
+
"reference_media_type_mismatch",
|
|
283
|
+
"unsupported_reference_media",
|
|
284
|
+
]),
|
|
285
|
+
);
|
|
270
286
|
export type VideoGenerationRejectedCode = z.infer<typeof VideoGenerationRejectedCode>;
|
|
271
287
|
|
|
272
288
|
/** Deterministic pre-admission rejection: no provider request or durable operation was created. */
|
|
273
|
-
export const VideoGenerationRejectedResult =
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
289
|
+
export const VideoGenerationRejectedResult = /* @__PURE__ */ defineSchema(() =>
|
|
290
|
+
z
|
|
291
|
+
.object({
|
|
292
|
+
schemaVersion: z.literal(VIDEO_GENERATION_SCHEMA_VERSION),
|
|
293
|
+
status: z.literal("rejected"),
|
|
294
|
+
code: VideoGenerationRejectedCode,
|
|
295
|
+
message: z.string().min(1).max(512),
|
|
296
|
+
operationCreated: z.literal(false),
|
|
297
|
+
})
|
|
298
|
+
.strict(),
|
|
299
|
+
);
|
|
282
300
|
export type VideoGenerationRejectedResult = z.infer<typeof VideoGenerationRejectedResult>;
|
|
283
301
|
|
|
284
|
-
export const
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
302
|
+
export const VideoGenerationUnavailableCode = /* @__PURE__ */ defineSchema(() =>
|
|
303
|
+
z.enum([
|
|
304
|
+
"video_generation_off",
|
|
305
|
+
"video_generation_unfunded",
|
|
306
|
+
"video_generation_unsupported",
|
|
307
|
+
"insufficient_credits",
|
|
308
|
+
"generation_limit_reached",
|
|
309
|
+
"video_storage_full",
|
|
310
|
+
]),
|
|
311
|
+
);
|
|
312
|
+
export type VideoGenerationUnavailableCode = z.infer<typeof VideoGenerationUnavailableCode>;
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Video generation can't run right now (off, unpaid, unsupported here, or
|
|
316
|
+
* refused by credits or limits): no operation or provider request was
|
|
317
|
+
* created. `turnOn`, when present, is the exact app action call that turns
|
|
318
|
+
* video on for this workspace, built from live state.
|
|
319
|
+
*/
|
|
320
|
+
export const VideoGenerationUnavailableResult = /* @__PURE__ */ defineSchema(() =>
|
|
321
|
+
z
|
|
322
|
+
.object({
|
|
323
|
+
schemaVersion: z.literal(VIDEO_GENERATION_SCHEMA_VERSION),
|
|
324
|
+
status: z.literal("unavailable"),
|
|
325
|
+
code: VideoGenerationUnavailableCode,
|
|
326
|
+
message: z.string().min(1).max(1024),
|
|
327
|
+
operationCreated: z.literal(false),
|
|
328
|
+
turnOn: z
|
|
329
|
+
.object({
|
|
330
|
+
id: z.literal("updateVideoGenerationPolicy"),
|
|
331
|
+
pathParameters: z.object({ workspaceId: z.string().min(1).max(128) }).strict(),
|
|
332
|
+
body: UpdateVideoGenerationPolicyRequest,
|
|
333
|
+
})
|
|
334
|
+
.strict()
|
|
335
|
+
.optional(),
|
|
336
|
+
})
|
|
337
|
+
.strict(),
|
|
338
|
+
);
|
|
339
|
+
export type VideoGenerationUnavailableResult = z.infer<typeof VideoGenerationUnavailableResult>;
|
|
340
|
+
|
|
341
|
+
export const VideoGenerationToolResult = /* @__PURE__ */ defineSchema(() =>
|
|
342
|
+
z.discriminatedUnion("status", [
|
|
343
|
+
VideoGenerationAcceptedReceipt,
|
|
344
|
+
VideoGenerationRejectedResult,
|
|
345
|
+
VideoGenerationUnavailableResult,
|
|
346
|
+
]),
|
|
347
|
+
);
|
|
288
348
|
export type VideoGenerationToolResult = z.infer<typeof VideoGenerationToolResult>;
|
|
289
349
|
|
|
290
|
-
export const GeneratedVideoFacts =
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
350
|
+
export const GeneratedVideoFacts = /* @__PURE__ */ defineSchema(() =>
|
|
351
|
+
z
|
|
352
|
+
.object({
|
|
353
|
+
durationSeconds: z.number().positive().max(120),
|
|
354
|
+
width: z.number().int().positive().max(8_192),
|
|
355
|
+
height: z.number().int().positive().max(8_192),
|
|
356
|
+
fps: z.number().positive().max(120),
|
|
357
|
+
hasAudio: primitives.boolean,
|
|
358
|
+
videoCodec: z.literal("h264"),
|
|
359
|
+
audioCodec: z.literal("aac").nullable(),
|
|
360
|
+
})
|
|
361
|
+
.strict(),
|
|
362
|
+
);
|
|
301
363
|
export type GeneratedVideoFacts = z.infer<typeof GeneratedVideoFacts>;
|
|
302
364
|
|
|
303
|
-
export const GeneratedVideoReceipt =
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
365
|
+
export const GeneratedVideoReceipt = /* @__PURE__ */ defineSchema(() =>
|
|
366
|
+
z
|
|
367
|
+
.object({
|
|
368
|
+
type: z.literal("generated_video"),
|
|
369
|
+
schemaVersion: z.literal(VIDEO_GENERATION_SCHEMA_VERSION),
|
|
370
|
+
operationId: primitives.uuid,
|
|
371
|
+
artifact: RetainedArtifactReferenceSchema,
|
|
372
|
+
video: GeneratedVideoFacts,
|
|
373
|
+
sandboxPath: z
|
|
374
|
+
.string()
|
|
375
|
+
.max(256)
|
|
376
|
+
.regex(
|
|
377
|
+
/^\/workspace\/generated-videos\/generated-video-[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}\.mp4$/,
|
|
378
|
+
),
|
|
379
|
+
})
|
|
380
|
+
.strict()
|
|
381
|
+
.superRefine((value, ctx) => {
|
|
382
|
+
if (
|
|
383
|
+
value.artifact.kind !== "generated_video" ||
|
|
384
|
+
value.artifact.contentType !== "video/mp4" ||
|
|
385
|
+
value.artifact.originalBytes <= 0 ||
|
|
386
|
+
value.artifact.originalBytes > GENERATED_VIDEO_MAX_BYTES ||
|
|
387
|
+
value.artifact.retention.policy !== "workspace_file" ||
|
|
388
|
+
value.artifact.retrieval.maxRangeBytes !== RETAINED_OUTPUT_MAX_PAGE_BYTES
|
|
389
|
+
) {
|
|
390
|
+
ctx.addIssue({
|
|
391
|
+
code: "custom",
|
|
392
|
+
path: ["artifact"],
|
|
393
|
+
message: "generated-video artifact metadata is invalid",
|
|
394
|
+
});
|
|
395
|
+
}
|
|
396
|
+
if (
|
|
397
|
+
value.artifact.dimensions?.width !== value.video.width ||
|
|
398
|
+
value.artifact.dimensions?.height !== value.video.height
|
|
399
|
+
) {
|
|
400
|
+
ctx.addIssue({
|
|
401
|
+
code: "custom",
|
|
402
|
+
path: ["video"],
|
|
403
|
+
message: "video dimensions must match the retained artifact",
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
if (
|
|
407
|
+
value.sandboxPath !==
|
|
408
|
+
`/workspace/generated-videos/generated-video-${value.artifact.artifactId}.mp4`
|
|
409
|
+
) {
|
|
410
|
+
ctx.addIssue({
|
|
411
|
+
code: "custom",
|
|
412
|
+
path: ["sandboxPath"],
|
|
413
|
+
message: "generated-video sandbox path does not match its artifact",
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
}),
|
|
417
|
+
);
|
|
354
418
|
export type GeneratedVideoReceipt = z.infer<typeof GeneratedVideoReceipt>;
|
|
355
419
|
|
|
356
|
-
export const VideoGenerationTerminalFailureStatus =
|
|
357
|
-
"provider_failed",
|
|
358
|
-
|
|
359
|
-
"cancelled_before_submit",
|
|
360
|
-
"outcome_unknown",
|
|
361
|
-
]);
|
|
420
|
+
export const VideoGenerationTerminalFailureStatus = /* @__PURE__ */ defineSchema(() =>
|
|
421
|
+
z.enum(["provider_failed", "retention_failed", "cancelled_before_submit", "outcome_unknown"]),
|
|
422
|
+
);
|
|
362
423
|
export type VideoGenerationTerminalFailureStatus = z.infer<
|
|
363
424
|
typeof VideoGenerationTerminalFailureStatus
|
|
364
425
|
>;
|
|
365
426
|
|
|
366
|
-
export const MediaGenerationResult =
|
|
427
|
+
export const MediaGenerationResult = /* @__PURE__ */ defineSchema(() =>
|
|
428
|
+
z.discriminatedUnion("status", [
|
|
429
|
+
z
|
|
430
|
+
.object({
|
|
431
|
+
type: z.literal("media_generation_result"),
|
|
432
|
+
schemaVersion: z.literal(VIDEO_GENERATION_SCHEMA_VERSION),
|
|
433
|
+
status: z.literal("ready"),
|
|
434
|
+
operationId: primitives.uuid,
|
|
435
|
+
receipt: GeneratedVideoReceipt,
|
|
436
|
+
})
|
|
437
|
+
.strict()
|
|
438
|
+
.refine((value) => value.receipt.operationId === value.operationId, {
|
|
439
|
+
path: ["receipt", "operationId"],
|
|
440
|
+
message: "terminal receipt must match its operation",
|
|
441
|
+
}),
|
|
442
|
+
z
|
|
443
|
+
.object({
|
|
444
|
+
type: z.literal("media_generation_result"),
|
|
445
|
+
schemaVersion: z.literal(VIDEO_GENERATION_SCHEMA_VERSION),
|
|
446
|
+
status: VideoGenerationTerminalFailureStatus,
|
|
447
|
+
operationId: primitives.uuid,
|
|
448
|
+
boundedPublicReason: z.string().min(1).max(1_000),
|
|
449
|
+
})
|
|
450
|
+
.strict(),
|
|
451
|
+
]),
|
|
452
|
+
);
|
|
453
|
+
export type MediaGenerationResult = z.infer<typeof MediaGenerationResult>;
|
|
454
|
+
|
|
455
|
+
export const VideoGenerationPublicStatus = /* @__PURE__ */ defineSchema(() =>
|
|
456
|
+
z.enum([
|
|
457
|
+
"preparing",
|
|
458
|
+
"prepared",
|
|
459
|
+
"accepted",
|
|
460
|
+
"provider_started",
|
|
461
|
+
"retaining",
|
|
462
|
+
"completed",
|
|
463
|
+
"provider_failed",
|
|
464
|
+
"cancelled_before_submit",
|
|
465
|
+
"outcome_unknown",
|
|
466
|
+
"retention_failed",
|
|
467
|
+
]),
|
|
468
|
+
);
|
|
469
|
+
export type VideoGenerationPublicStatus = z.infer<typeof VideoGenerationPublicStatus>;
|
|
470
|
+
|
|
471
|
+
export const VideoGenerationOperationSummary = /* @__PURE__ */ defineSchema(() =>
|
|
367
472
|
z
|
|
368
473
|
.object({
|
|
369
|
-
type: z.literal("media_generation_result"),
|
|
370
474
|
schemaVersion: z.literal(VIDEO_GENERATION_SCHEMA_VERSION),
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
475
|
+
operationId: primitives.uuid,
|
|
476
|
+
modelId: z.string().min(1).max(256),
|
|
477
|
+
status: VideoGenerationPublicStatus,
|
|
478
|
+
createdAt: primitives.string.datetime({ offset: true }),
|
|
479
|
+
updatedAt: primitives.string.datetime({ offset: true }),
|
|
480
|
+
terminal: MediaGenerationResult.nullable(),
|
|
374
481
|
})
|
|
375
|
-
.strict()
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
482
|
+
.strict(),
|
|
483
|
+
);
|
|
484
|
+
export type VideoGenerationOperationSummary = z.infer<typeof VideoGenerationOperationSummary>;
|
|
485
|
+
|
|
486
|
+
export const VideoArtifactPlaybackSource = /* @__PURE__ */ defineSchema(() =>
|
|
380
487
|
z
|
|
381
488
|
.object({
|
|
382
|
-
type: z.literal("media_generation_result"),
|
|
383
489
|
schemaVersion: z.literal(VIDEO_GENERATION_SCHEMA_VERSION),
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
490
|
+
artifactId: primitives.uuid,
|
|
491
|
+
url: z.string().url().max(8_192),
|
|
492
|
+
expiresAt: primitives.string.datetime({ offset: true }),
|
|
493
|
+
contentType: z.literal("video/mp4"),
|
|
494
|
+
sizeBytes: primitives.positiveInteger.max(GENERATED_VIDEO_MAX_BYTES),
|
|
495
|
+
sha256: primitives.string.regex(/^[0-9a-f]{64}$/),
|
|
496
|
+
acceptRanges: z.literal("bytes"),
|
|
387
497
|
})
|
|
388
498
|
.strict(),
|
|
389
|
-
|
|
390
|
-
export type MediaGenerationResult = z.infer<typeof MediaGenerationResult>;
|
|
391
|
-
|
|
392
|
-
export const VideoGenerationPublicStatus = z.enum([
|
|
393
|
-
"preparing",
|
|
394
|
-
"prepared",
|
|
395
|
-
"accepted",
|
|
396
|
-
"provider_started",
|
|
397
|
-
"retaining",
|
|
398
|
-
"completed",
|
|
399
|
-
"provider_failed",
|
|
400
|
-
"cancelled_before_submit",
|
|
401
|
-
"outcome_unknown",
|
|
402
|
-
"retention_failed",
|
|
403
|
-
]);
|
|
404
|
-
export type VideoGenerationPublicStatus = z.infer<typeof VideoGenerationPublicStatus>;
|
|
405
|
-
|
|
406
|
-
export const VideoGenerationOperationSummary = z
|
|
407
|
-
.object({
|
|
408
|
-
schemaVersion: z.literal(VIDEO_GENERATION_SCHEMA_VERSION),
|
|
409
|
-
operationId: z.string().uuid(),
|
|
410
|
-
modelId: z.string().min(1).max(256),
|
|
411
|
-
status: VideoGenerationPublicStatus,
|
|
412
|
-
createdAt: z.string().datetime({ offset: true }),
|
|
413
|
-
updatedAt: z.string().datetime({ offset: true }),
|
|
414
|
-
terminal: MediaGenerationResult.nullable(),
|
|
415
|
-
})
|
|
416
|
-
.strict();
|
|
417
|
-
export type VideoGenerationOperationSummary = z.infer<typeof VideoGenerationOperationSummary>;
|
|
418
|
-
|
|
419
|
-
export const VideoArtifactPlaybackSource = z
|
|
420
|
-
.object({
|
|
421
|
-
schemaVersion: z.literal(VIDEO_GENERATION_SCHEMA_VERSION),
|
|
422
|
-
artifactId: z.string().uuid(),
|
|
423
|
-
url: z.string().url().max(8_192),
|
|
424
|
-
expiresAt: z.string().datetime({ offset: true }),
|
|
425
|
-
contentType: z.literal("video/mp4"),
|
|
426
|
-
sizeBytes: z.number().int().positive().max(GENERATED_VIDEO_MAX_BYTES),
|
|
427
|
-
sha256: z.string().regex(/^[0-9a-f]{64}$/),
|
|
428
|
-
acceptRanges: z.literal("bytes"),
|
|
429
|
-
})
|
|
430
|
-
.strict();
|
|
499
|
+
);
|
|
431
500
|
export type VideoArtifactPlaybackSource = z.infer<typeof VideoArtifactPlaybackSource>;
|