@opengeni/contracts 3.1.0-canary.2 → 3.1.2
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 +971 -0
- package/dist/agent-instruction-changes.d.ts +0 -2
- package/dist/allowance-refusal.d.ts +9 -0
- package/dist/allowance-refusal.js +50 -0
- package/dist/allowance-refusal.js.map +1 -0
- package/dist/analytics-consent-report.d.ts +19 -0
- package/dist/analytics-consent-report.js +10 -0
- package/dist/analytics-consent-report.js.map +1 -0
- package/dist/api-key-presets.d.ts +19 -0
- package/dist/artifact-catalog.d.ts +188 -0
- package/dist/artifacts.d.ts +86 -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.d.ts +1 -0
- package/dist/atlassian.js +34 -19
- package/dist/browser-storage.d.ts +5 -0
- package/dist/browser-storage.js +9 -0
- package/dist/browser-storage.js.map +1 -0
- package/dist/bundled-skills.d.ts +24 -1
- package/dist/canonical-human-identities.js +2 -1
- package/dist/chunk-2ZIHHL72.js +153 -0
- package/dist/chunk-2ZIHHL72.js.map +1 -0
- package/dist/{chunk-5LYFSZ7O.js → chunk-352X6ENP.js} +31 -31
- package/dist/chunk-4JGHSSB7.js +11 -0
- package/dist/chunk-4JGHSSB7.js.map +1 -0
- package/dist/chunk-4QO6GJUX.js +85 -0
- package/dist/chunk-4QO6GJUX.js.map +1 -0
- package/dist/chunk-4VDMHLLL.js +49 -0
- package/dist/chunk-4VDMHLLL.js.map +1 -0
- package/dist/chunk-56SNIMDO.js +9 -0
- package/dist/chunk-56SNIMDO.js.map +1 -0
- package/dist/chunk-6C2HKFTU.js +207 -0
- package/dist/chunk-6C2HKFTU.js.map +1 -0
- package/dist/chunk-6IXO76Z6.js +72 -0
- package/dist/chunk-6IXO76Z6.js.map +1 -0
- package/dist/chunk-7272KVWZ.js +60 -0
- package/dist/chunk-7272KVWZ.js.map +1 -0
- package/dist/{chunk-7ABONTXE.js → chunk-E3GGUBHS.js} +49 -5
- package/dist/chunk-E3GGUBHS.js.map +1 -0
- package/dist/chunk-EFZYKUE2.js +767 -0
- package/dist/chunk-EFZYKUE2.js.map +1 -0
- package/dist/chunk-EKWNTOG3.js +154 -0
- package/dist/chunk-EKWNTOG3.js.map +1 -0
- package/dist/chunk-HABQ7ADB.js +234 -0
- package/dist/chunk-HABQ7ADB.js.map +1 -0
- package/dist/chunk-HRRU4QPI.js +91 -0
- package/dist/chunk-HRRU4QPI.js.map +1 -0
- package/dist/{chunk-3SIZGL3O.js → chunk-IK36LXKC.js} +18 -2
- package/dist/chunk-IK36LXKC.js.map +1 -0
- package/dist/{chunk-TXTQIYCV.js → chunk-ILJ72KPO.js} +56 -3
- package/dist/chunk-ILJ72KPO.js.map +1 -0
- package/dist/chunk-J4HQ3UKY.js +93 -0
- package/dist/chunk-J4HQ3UKY.js.map +1 -0
- package/dist/chunk-KHHZTBP7.js +11 -0
- package/dist/chunk-KHHZTBP7.js.map +1 -0
- package/dist/{chunk-WYBDERIY.js → chunk-LZ2LAHIX.js} +47 -41
- package/dist/chunk-LZ2LAHIX.js.map +1 -0
- package/dist/chunk-NDZHPTCL.js +400 -0
- package/dist/chunk-NDZHPTCL.js.map +1 -0
- package/dist/chunk-OF6OKOBF.js +54793 -0
- package/dist/chunk-OF6OKOBF.js.map +1 -0
- package/dist/chunk-OL23ARTF.js +94 -0
- package/dist/chunk-OL23ARTF.js.map +1 -0
- package/dist/chunk-PUIUXIOL.js +189 -0
- package/dist/chunk-PUIUXIOL.js.map +1 -0
- package/dist/{chunk-Y3KNXVTD.js → chunk-RMWXDZEO.js} +128 -21
- package/dist/chunk-RMWXDZEO.js.map +1 -0
- package/dist/{chunk-MRWYRAS5.js → chunk-SHO4YO4B.js} +27 -35
- package/dist/chunk-SHO4YO4B.js.map +1 -0
- package/dist/chunk-SWRN2DJ3.js +153 -0
- package/dist/chunk-SWRN2DJ3.js.map +1 -0
- package/dist/chunk-TCXCRBPF.js +267 -0
- package/dist/chunk-TCXCRBPF.js.map +1 -0
- package/dist/chunk-TLU3UEMD.js +324 -0
- package/dist/chunk-TLU3UEMD.js.map +1 -0
- package/dist/chunk-TSWWZMUS.js +186 -0
- package/dist/chunk-TSWWZMUS.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-XDLAGX66.js +127 -0
- package/dist/chunk-XDLAGX66.js.map +1 -0
- package/dist/chunk-YKZ4WU4P.js +33 -0
- package/dist/chunk-YKZ4WU4P.js.map +1 -0
- package/dist/{chunk-O5LEQHDM.js → chunk-Z7WEVGCL.js} +3 -3
- package/dist/{chunk-YBW5JSA3.js → chunk-ZDCRWCGZ.js} +119 -101
- package/dist/chunk-ZDCRWCGZ.js.map +1 -0
- package/dist/claude-provider-account-authority.d.ts +18 -0
- package/dist/claude-subscription-oauth.d.ts +42 -0
- package/dist/claude-subscription-usage.d.ts +159 -0
- package/dist/client-error-report.d.ts +158 -0
- package/dist/client-error-report.js +164 -0
- package/dist/client-error-report.js.map +1 -0
- package/dist/code-search.d.ts +52 -0
- package/dist/code-search.js +40 -0
- package/dist/code-search.js.map +1 -0
- package/dist/codex-provider-account-authority.js +20 -12
- package/dist/codex-provider-account-authority.js.map +1 -1
- package/dist/company-profile.d.ts +144 -6
- package/dist/connect.d.ts +37 -0
- package/dist/connect.js +216 -159
- package/dist/connect.js.map +1 -1
- package/dist/connection-account-label.d.ts +2 -0
- package/dist/connection-account-label.js +35 -0
- package/dist/connection-account-label.js.map +1 -0
- package/dist/connection-authority.d.ts +9 -317
- package/dist/connection-authority.js +37 -42
- package/dist/connector-attachments.js +2 -1
- package/dist/connector-destinations.js +2 -1
- package/dist/connector-tool-permissions.d.ts +137 -0
- package/dist/cua-desktop-tools.d.ts +17 -0
- package/dist/define-schema.d.ts +8 -0
- package/dist/direct-model-provider.d.ts +36 -0
- package/dist/editable-artifact-codec-registry.js +5 -5
- package/dist/editable-artifact-committed-transaction.js +3 -2
- package/dist/editable-artifact-live.js +5 -5
- package/dist/editable-artifact-serialized-commit.js +6 -6
- package/dist/editable-artifact-versions.d.ts +7 -1
- package/dist/editable-artifact-versions.js +1 -1
- package/dist/editable-artifacts.js +62 -56
- package/dist/event-preview.d.ts +22 -0
- package/dist/external-identities.d.ts +138 -0
- package/dist/external-identities.js +9 -4
- package/dist/first-party-tool-authorization.d.ts +815 -0
- package/dist/github-repository-contracts.js +60 -43
- package/dist/github-repository-contracts.js.map +1 -1
- package/dist/google-drive.d.ts +2 -1
- package/dist/google-drive.js +305 -238
- package/dist/google-drive.js.map +1 -1
- package/dist/host-mcp-bindings.d.ts +5 -0
- package/dist/host-mcp-bindings.js +233 -170
- package/dist/host-mcp-bindings.js.map +1 -1
- package/dist/image-generation.d.ts +1 -0
- package/dist/index.d.ts +16761 -5946
- package/dist/index.js +1973 -260
- package/dist/insights-usage.d.ts +877 -0
- package/dist/insights-usage.js +559 -0
- package/dist/insights-usage.js.map +1 -0
- package/dist/interaction.d.ts +1176 -829
- package/dist/knowledge-entries.d.ts +81 -2
- package/dist/knowledge-preparation.d.ts +239 -0
- package/dist/managed-auth-session-sets.d.ts +7 -0
- package/dist/managed-auth-session-sets.js +198 -132
- package/dist/managed-auth-session-sets.js.map +1 -1
- package/dist/managed-sign-in-methods.d.ts +56 -0
- package/dist/managed-sign-in-methods.js +64 -0
- package/dist/managed-sign-in-methods.js.map +1 -0
- package/dist/mcp-catalog-limits.d.ts +2 -0
- package/dist/mcp-oauth.d.ts +2 -2
- package/dist/mcp-structured-content.d.ts +25 -0
- package/dist/modal-native-proof-v2.d.ts +587 -0
- package/dist/modal-native-proof-v2.js +38 -0
- package/dist/modal-native-proof-v2.js.map +1 -0
- package/dist/model-account-choice.d.ts +235 -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 +98 -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.d.ts +3 -1
- package/dist/model-picker-order.js +3 -0
- package/dist/model-picker-order.js.map +1 -1
- package/dist/organization-access.d.ts +412 -0
- package/dist/organization-access.js +39 -0
- package/dist/organization-access.js.map +1 -0
- package/dist/organization-integration-policy.d.ts +27 -0
- package/dist/organization-membership-lifecycle.d.ts +38 -0
- package/dist/organization-model-usage.d.ts +146 -0
- package/dist/organization-model-usage.js +78 -0
- package/dist/organization-model-usage.js.map +1 -0
- package/dist/organization-recovery.js +2 -1
- package/dist/organization-usage.d.ts +138 -0
- package/dist/permissions.d.ts +18 -0
- package/dist/personal-github.d.ts +1 -0
- package/dist/personal-github.js +199 -144
- package/dist/personal-github.js.map +1 -1
- package/dist/prepared-mcp-setup.d.ts +54 -0
- package/dist/prepared-mcp-setup.js +12 -0
- package/dist/prepared-mcp-setup.js.map +1 -0
- package/dist/product-analytics.d.ts +116 -0
- package/dist/product-lifecycle-facts.d.ts +73 -0
- package/dist/remember.d.ts +98 -6
- package/dist/retained-output.d.ts +8 -0
- package/dist/sandbox-file-artifacts.d.ts +1 -0
- package/dist/sandbox-provider-command.d.ts +91 -1
- package/dist/sandbox-recovery.d.ts +146 -0
- package/dist/secret-generator.d.ts +44 -0
- package/dist/secret-references.d.ts +90 -0
- package/dist/secret-resolution.d.ts +111 -0
- package/dist/secret-totp.d.ts +41 -0
- package/dist/session-final-reply.d.ts +6 -0
- package/dist/session-final-reply.js +9 -0
- package/dist/session-final-reply.js.map +1 -0
- package/dist/session-goal-reports.d.ts +21 -0
- package/dist/session-history-import.d.ts +1272 -0
- package/dist/session-list-entries.d.ts +4 -0
- package/dist/session-list-entries.js +56 -0
- package/dist/session-list-entries.js.map +1 -0
- package/dist/session-mcp-projections.d.ts +6 -0
- package/dist/session-mcp-tool-permissions.d.ts +62 -0
- package/dist/session-message-search.d.ts +68 -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 +41 -0
- package/dist/session-usage-limits.js.map +1 -0
- package/dist/signup-attribution.d.ts +39 -0
- package/dist/site-data.d.ts +286 -0
- package/dist/site-operations.d.ts +39 -0
- package/dist/site-publishing.d.ts +778 -0
- package/dist/site-session-http.d.ts +89 -4
- package/dist/site-session-http.js +25 -1
- package/dist/site-sql.d.ts +421 -0
- package/dist/skill-catalog-context.d.ts +7 -0
- package/dist/skill-files.d.ts +1 -1
- package/dist/skill-use.d.ts +61 -0
- package/dist/skills.d.ts +15 -0
- package/dist/slack-bot-scopes.d.ts +17 -12
- package/dist/slack-bot-scopes.js +10 -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 +8 -2
- package/dist/spreadsheet-artifact-query.d.ts +13 -6
- package/dist/spreadsheet-artifact-query.js +3 -3
- package/dist/subscription-account-actions.d.ts +64 -0
- package/dist/subscription-account-pools.d.ts +292 -0
- package/dist/subscription-personal-authority-v2.d.ts +28 -0
- package/dist/subscription-personal-authority-v2.js +12 -0
- package/dist/subscription-personal-authority-v2.js.map +1 -0
- package/dist/tool-action-review.d.ts +132 -0
- package/dist/tool-catalog.d.ts +408 -0
- package/dist/tool-policy.d.ts +5 -0
- package/dist/tool-review-presentation.d.ts +12 -0
- package/dist/tool-review-presentation.js +17 -0
- package/dist/tool-review-presentation.js.map +1 -0
- package/dist/transcription-recordings.d.ts +21 -0
- package/dist/turn-serving-policy.d.ts +221 -0
- package/dist/usage-allowances.d.ts +314 -0
- package/dist/usage-allowances.js +52 -0
- package/dist/usage-allowances.js.map +1 -0
- package/dist/vaults.d.ts +1286 -0
- package/dist/video-generation.d.ts +3 -0
- package/dist/video-generation.js +2 -1
- package/dist/workspace-integration-wire.d.ts +36 -0
- package/dist/workspace-integration-wire.js +23 -0
- package/dist/workspace-integration-wire.js.map +1 -0
- package/dist/workspace-integrations.d.ts +1028 -0
- package/dist/xai-provider-account-authority.js +2 -1
- package/package.json +93 -5
- package/src/agent-authored-durable-text.ts +14 -11
- package/src/agent-config.ts +1698 -0
- package/src/agent-instruction-changes.ts +91 -74
- package/src/agent-learning.ts +94 -67
- package/src/agent-topology.ts +57 -52
- package/src/allowance-refusal.ts +81 -0
- package/src/analytics-consent-report.ts +20 -0
- package/src/api-key-presets.ts +28 -0
- package/src/artifact-catalog.ts +82 -0
- package/src/artifacts.ts +299 -227
- package/src/atlassian-native-retirement.ts +33 -0
- package/src/atlassian.ts +135 -108
- package/src/browser-storage.ts +10 -0
- package/src/bundled-skills.ts +60 -17
- package/src/canonical-human-identities.ts +60 -58
- package/src/claude-provider-account-authority.ts +12 -0
- package/src/claude-subscription-oauth.ts +73 -0
- package/src/claude-subscription-usage.ts +68 -0
- package/src/client-error-report.ts +343 -0
- package/src/code-search.ts +105 -0
- package/src/codex-provider-account-authority.ts +21 -16
- package/src/company-brain-governed-writes.ts +255 -233
- package/src/company-brain.ts +164 -153
- package/src/company-profile.ts +365 -292
- package/src/connect.ts +212 -173
- package/src/connection-account-label.ts +46 -0
- package/src/connection-authority.ts +183 -364
- package/src/connector-attachments.ts +137 -122
- package/src/connector-destinations.ts +46 -42
- package/src/connector-tool-permissions.ts +117 -0
- package/src/cua-desktop-tools.gen.json +6512 -0
- package/src/cua-desktop-tools.linux.gen.json +6600 -0
- package/src/cua-desktop-tools.ts +36 -0
- package/src/cua-desktop-tools.windows.gen.json +6353 -0
- package/src/define-schema.ts +10 -0
- package/src/direct-model-provider.ts +108 -0
- package/src/editable-artifact-committed-transaction.ts +17 -0
- package/src/editable-artifact-versions.ts +7 -1
- package/src/event-preview.ts +53 -3
- package/src/external-identities.ts +249 -176
- package/src/feedback.ts +43 -30
- package/src/first-party-tool-authorization.ts +356 -0
- package/src/github-repository-contracts.ts +78 -64
- package/src/google-drive.ts +285 -234
- package/src/governed-learning-activation.ts +152 -131
- package/src/governed-learning-evaluator.ts +140 -133
- package/src/host-mcp-bindings.ts +252 -198
- package/src/image-generation.ts +104 -95
- package/src/index.ts +13235 -8687
- package/src/insights-usage.ts +727 -0
- package/src/interaction.ts +3070 -2326
- package/src/knowledge-entries.ts +361 -276
- package/src/knowledge-preparation.ts +57 -0
- package/src/knowledge.ts +246 -213
- package/src/managed-auth-session-sets.ts +220 -144
- package/src/managed-sign-in-methods.ts +52 -0
- package/src/mcp-catalog-limits.ts +2 -0
- package/src/mcp-oauth.ts +43 -34
- package/src/mcp-receipts.ts +192 -192
- package/src/mcp-structured-content.ts +81 -0
- package/src/memory-slack-delivery.ts +171 -142
- package/src/modal-native-proof-v2.ts +429 -0
- package/src/model-account-choice.ts +177 -0
- package/src/model-account-settings.ts +210 -0
- package/src/model-availability.ts +22 -0
- package/src/model-connection-access.ts +61 -14
- package/src/model-context-inspector.ts +133 -99
- package/src/model-display.ts +221 -0
- package/src/model-picker-order.ts +12 -1
- package/src/organization-access.ts +217 -0
- package/src/organization-integration-policy.ts +63 -0
- package/src/organization-membership-lifecycle.ts +528 -382
- package/src/organization-model-usage.ts +81 -0
- package/src/organization-recovery.ts +147 -135
- package/src/organization-usage.ts +94 -0
- package/src/permissions.ts +88 -52
- package/src/personal-github.ts +210 -171
- package/src/preference-registry.ts +314 -258
- package/src/prepared-mcp-setup.ts +189 -0
- package/src/product-analytics.ts +261 -0
- package/src/product-lifecycle-facts.ts +122 -0
- package/src/remember.ts +181 -167
- package/src/retained-output.ts +194 -165
- package/src/sandbox-file-artifacts.ts +60 -47
- package/src/sandbox-provider-command.ts +88 -20
- package/src/sandbox-recovery.ts +129 -0
- package/src/scoped-knowledge.ts +61 -43
- package/src/secret-generator.ts +155 -0
- package/src/secret-references.ts +414 -0
- package/src/secret-resolution.ts +274 -0
- package/src/secret-totp.ts +188 -0
- package/src/session-final-reply.ts +16 -0
- package/src/session-goal-reports.ts +64 -0
- package/src/session-history-import.ts +177 -0
- package/src/session-list-entries.ts +96 -0
- package/src/session-mcp-projections.ts +11 -0
- package/src/session-mcp-tool-permissions.ts +108 -0
- package/src/session-message-search.ts +61 -0
- package/src/session-target.ts +57 -0
- package/src/session-titles.ts +80 -10
- package/src/session-topology-primitives.ts +19 -12
- package/src/session-usage-limit-refusal.ts +101 -0
- package/src/session-usage-limits.ts +171 -0
- package/src/signup-attribution.ts +86 -0
- package/src/site-data.ts +339 -0
- package/src/site-operations.ts +154 -0
- package/src/site-publishing.ts +876 -0
- package/src/site-session-http.ts +294 -16
- package/src/site-sql.ts +1123 -0
- package/src/skill-catalog-context.ts +50 -0
- package/src/skill-files.ts +3 -3
- package/src/skill-use.ts +80 -0
- package/src/skills.ts +82 -54
- package/src/slack-bot-scopes.ts +31 -39
- package/src/slack-rest-mcp.ts +222 -0
- package/src/slack-task-policy.ts +96 -73
- package/src/spreadsheet-artifact-commands.ts +73 -2
- package/src/spreadsheet-artifact-query.ts +187 -39
- package/src/subscription-account-actions.ts +84 -0
- package/src/subscription-account-pools.ts +53 -0
- package/src/subscription-personal-authority-v2.ts +66 -0
- package/src/task-notes.ts +55 -51
- package/src/tool-action-review.ts +258 -0
- package/src/tool-catalog.ts +609 -372
- package/src/tool-policy.ts +82 -0
- package/src/tool-result-spill.ts +12 -9
- package/src/tool-review-presentation.ts +385 -0
- package/src/transcription-recordings.ts +145 -131
- package/src/turn-serving-policy.ts +166 -0
- package/src/usage-allowances.ts +248 -0
- package/src/vaults.ts +850 -0
- package/src/video-generation.ts +385 -360
- package/src/work-claims.ts +173 -149
- package/src/workspace-instruction-policies.ts +349 -276
- package/src/workspace-integration-wire.ts +101 -0
- package/src/workspace-integrations.ts +724 -0
- package/src/workspace-learning-administration.ts +57 -44
- package/src/workspace-learning-policy.ts +127 -96
- package/src/workspace-state.ts +250 -220
- package/src/xai-provider-account-authority.ts +22 -17
- package/dist/chunk-2AC63F4S.js +0 -171
- package/dist/chunk-2AC63F4S.js.map +0 -1
- package/dist/chunk-3SIZGL3O.js.map +0 -1
- package/dist/chunk-7ABONTXE.js.map +0 -1
- package/dist/chunk-BCS7WHCK.js +0 -139
- package/dist/chunk-BCS7WHCK.js.map +0 -1
- package/dist/chunk-GRG7PHWQ.js +0 -25
- package/dist/chunk-GRG7PHWQ.js.map +0 -1
- package/dist/chunk-JUFK3T4Q.js +0 -80
- package/dist/chunk-JUFK3T4Q.js.map +0 -1
- package/dist/chunk-M5ZGRVIQ.js +0 -719
- package/dist/chunk-M5ZGRVIQ.js.map +0 -1
- package/dist/chunk-MRWYRAS5.js.map +0 -1
- package/dist/chunk-OVFORMPW.js +0 -348
- package/dist/chunk-OVFORMPW.js.map +0 -1
- package/dist/chunk-P3HLDT77.js +0 -59
- package/dist/chunk-P3HLDT77.js.map +0 -1
- package/dist/chunk-QQUJ6NPW.js +0 -23093
- package/dist/chunk-QQUJ6NPW.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/host-mcp-resolvers.d.ts +0 -32
- package/dist/host-mcp-resolvers.js +0 -34
- package/dist/host-mcp-resolvers.js.map +0 -1
- package/src/host-mcp-resolvers.ts +0 -50
- /package/dist/{chunk-5LYFSZ7O.js.map → chunk-352X6ENP.js.map} +0 -0
- /package/dist/{chunk-O5LEQHDM.js.map → chunk-Z7WEVGCL.js.map} +0 -0
|
@@ -1,162 +1,176 @@
|
|
|
1
|
+
import { defineSchema } from "./define-schema";
|
|
1
2
|
import { z } from "zod";
|
|
2
3
|
|
|
3
|
-
export const TranscriptionRecordingErrorCode =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
4
|
+
export const TranscriptionRecordingErrorCode = /* @__PURE__ */ defineSchema(() =>
|
|
5
|
+
z.enum([
|
|
6
|
+
"permission_denied",
|
|
7
|
+
"not_supported",
|
|
8
|
+
"network",
|
|
9
|
+
"provider",
|
|
10
|
+
"policy_blocked",
|
|
11
|
+
"timeout",
|
|
12
|
+
"cancelled",
|
|
13
|
+
"unavailable",
|
|
14
|
+
"too_large",
|
|
15
|
+
"invalid_audio",
|
|
16
|
+
"unknown",
|
|
17
|
+
"insufficient_credits",
|
|
18
|
+
"allowance_exhausted",
|
|
19
|
+
"monthly_model_cost_limit",
|
|
20
|
+
]),
|
|
21
|
+
);
|
|
16
22
|
export type TranscriptionRecordingErrorCode = z.infer<typeof TranscriptionRecordingErrorCode>;
|
|
17
23
|
|
|
18
|
-
export const TranscriptionRecordingState =
|
|
19
|
-
"uploading",
|
|
20
|
-
|
|
21
|
-
"ready",
|
|
22
|
-
"transcribing",
|
|
23
|
-
"complete",
|
|
24
|
-
"failed",
|
|
25
|
-
"discarded",
|
|
26
|
-
]);
|
|
24
|
+
export const TranscriptionRecordingState = /* @__PURE__ */ defineSchema(() =>
|
|
25
|
+
z.enum(["uploading", "segmenting", "ready", "transcribing", "complete", "failed", "discarded"]),
|
|
26
|
+
);
|
|
27
27
|
export type TranscriptionRecordingState = z.infer<typeof TranscriptionRecordingState>;
|
|
28
28
|
|
|
29
|
-
export const TranscriptionRecordingSegmentState =
|
|
30
|
-
"preparing",
|
|
31
|
-
|
|
32
|
-
"transcribing",
|
|
33
|
-
"complete",
|
|
34
|
-
"failed",
|
|
35
|
-
]);
|
|
29
|
+
export const TranscriptionRecordingSegmentState = /* @__PURE__ */ defineSchema(() =>
|
|
30
|
+
z.enum(["preparing", "pending", "transcribing", "complete", "failed"]),
|
|
31
|
+
);
|
|
36
32
|
export type TranscriptionRecordingSegmentState = z.infer<typeof TranscriptionRecordingSegmentState>;
|
|
37
33
|
|
|
38
|
-
export const ClientResumableVoiceInputConfig =
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
34
|
+
export const ClientResumableVoiceInputConfig = /* @__PURE__ */ defineSchema(() =>
|
|
35
|
+
z
|
|
36
|
+
.object({
|
|
37
|
+
maxDurationSeconds: z
|
|
38
|
+
.number()
|
|
39
|
+
.int()
|
|
40
|
+
.positive()
|
|
41
|
+
.max(8 * 60 * 60),
|
|
42
|
+
maxSizeBytes: z
|
|
43
|
+
.number()
|
|
44
|
+
.int()
|
|
45
|
+
.positive()
|
|
46
|
+
.max(512 * 1024 * 1024),
|
|
47
|
+
maxChunkSizeBytes: z
|
|
48
|
+
.number()
|
|
49
|
+
.int()
|
|
50
|
+
.positive()
|
|
51
|
+
.max(25 * 1024 * 1024),
|
|
52
|
+
providerSegmentSeconds: z.number().int().positive().max(600),
|
|
53
|
+
})
|
|
54
|
+
.strict(),
|
|
55
|
+
);
|
|
58
56
|
export type ClientResumableVoiceInputConfig = z.infer<typeof ClientResumableVoiceInputConfig>;
|
|
59
57
|
|
|
60
|
-
export const CreateTranscriptionRecordingRequest =
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
58
|
+
export const CreateTranscriptionRecordingRequest = /* @__PURE__ */ defineSchema(() =>
|
|
59
|
+
z
|
|
60
|
+
.object({
|
|
61
|
+
recordingId: z.string().uuid(),
|
|
62
|
+
mimeType: z.string().trim().min(1).max(128),
|
|
63
|
+
})
|
|
64
|
+
.strict(),
|
|
65
|
+
);
|
|
66
66
|
export type CreateTranscriptionRecordingRequest = z.infer<
|
|
67
67
|
typeof CreateTranscriptionRecordingRequest
|
|
68
68
|
>;
|
|
69
69
|
|
|
70
|
-
export const FinalizeTranscriptionRecordingRequest =
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
70
|
+
export const FinalizeTranscriptionRecordingRequest = /* @__PURE__ */ defineSchema(() =>
|
|
71
|
+
z
|
|
72
|
+
.object({
|
|
73
|
+
chunkCount: z.number().int().positive().max(100_000),
|
|
74
|
+
totalBytes: z
|
|
75
|
+
.number()
|
|
76
|
+
.int()
|
|
77
|
+
.positive()
|
|
78
|
+
.max(512 * 1024 * 1024),
|
|
79
|
+
totalDurationMilliseconds: z
|
|
80
|
+
.number()
|
|
81
|
+
.int()
|
|
82
|
+
.positive()
|
|
83
|
+
.max(8 * 60 * 60 * 1_000),
|
|
84
|
+
})
|
|
85
|
+
.strict(),
|
|
86
|
+
);
|
|
85
87
|
export type FinalizeTranscriptionRecordingRequest = z.infer<
|
|
86
88
|
typeof FinalizeTranscriptionRecordingRequest
|
|
87
89
|
>;
|
|
88
90
|
|
|
89
|
-
export const TranscriptionRecordingChunk =
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
91
|
+
export const TranscriptionRecordingChunk = /* @__PURE__ */ defineSchema(() =>
|
|
92
|
+
z
|
|
93
|
+
.object({
|
|
94
|
+
chunkNumber: z.number().int().nonnegative(),
|
|
95
|
+
byteLength: z.number().int().positive(),
|
|
96
|
+
sha256: z.string().regex(/^[0-9a-f]{64}$/),
|
|
97
|
+
startMilliseconds: z.number().int().nonnegative(),
|
|
98
|
+
durationMilliseconds: z.number().int().nonnegative(),
|
|
99
|
+
deduplicated: z.boolean(),
|
|
100
|
+
})
|
|
101
|
+
.strict(),
|
|
102
|
+
);
|
|
99
103
|
export type TranscriptionRecordingChunk = z.infer<typeof TranscriptionRecordingChunk>;
|
|
100
104
|
|
|
101
|
-
export const TranscriptionRecordingSegment =
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
105
|
+
export const TranscriptionRecordingSegment = /* @__PURE__ */ defineSchema(() =>
|
|
106
|
+
z
|
|
107
|
+
.object({
|
|
108
|
+
segmentNumber: z.number().int().nonnegative(),
|
|
109
|
+
state: TranscriptionRecordingSegmentState,
|
|
110
|
+
startMilliseconds: z.number().int().nonnegative(),
|
|
111
|
+
durationMilliseconds: z.number().int().positive(),
|
|
112
|
+
byteLength: z.number().int().positive(),
|
|
113
|
+
errorCode: TranscriptionRecordingErrorCode.nullable(),
|
|
114
|
+
retryable: z.boolean(),
|
|
115
|
+
})
|
|
116
|
+
.strict(),
|
|
117
|
+
);
|
|
112
118
|
export type TranscriptionRecordingSegment = z.infer<typeof TranscriptionRecordingSegment>;
|
|
113
119
|
|
|
114
|
-
export const TranscriptionRecording =
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
120
|
+
export const TranscriptionRecording = /* @__PURE__ */ defineSchema(() =>
|
|
121
|
+
z
|
|
122
|
+
.object({
|
|
123
|
+
id: z.string().uuid(),
|
|
124
|
+
workspaceId: z.string().uuid(),
|
|
125
|
+
mimeType: z.string().trim().min(1).max(128),
|
|
126
|
+
state: TranscriptionRecordingState,
|
|
127
|
+
nextChunkNumber: z.number().int().nonnegative(),
|
|
128
|
+
chunkCount: z.number().int().nonnegative(),
|
|
129
|
+
totalBytes: z.number().int().nonnegative(),
|
|
130
|
+
totalDurationMilliseconds: z.number().int().nonnegative(),
|
|
131
|
+
segmentCount: z.number().int().nonnegative(),
|
|
132
|
+
completedSegmentCount: z.number().int().nonnegative(),
|
|
133
|
+
transcriptText: z.string().max(1_000_000).nullable(),
|
|
134
|
+
languages: z.array(z.string().trim().min(1).max(64)).max(64),
|
|
135
|
+
errorCode: TranscriptionRecordingErrorCode.nullable(),
|
|
136
|
+
retryable: z.boolean(),
|
|
137
|
+
objectsCleaned: z.boolean(),
|
|
138
|
+
createdAt: z.string().datetime(),
|
|
139
|
+
updatedAt: z.string().datetime(),
|
|
140
|
+
expiresAt: z.string().datetime(),
|
|
141
|
+
})
|
|
142
|
+
.strict(),
|
|
143
|
+
);
|
|
136
144
|
export type TranscriptionRecording = z.infer<typeof TranscriptionRecording>;
|
|
137
145
|
|
|
138
|
-
export const TranscriptionRecordingResponse =
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
146
|
+
export const TranscriptionRecordingResponse = /* @__PURE__ */ defineSchema(() =>
|
|
147
|
+
z
|
|
148
|
+
.object({
|
|
149
|
+
recording: TranscriptionRecording,
|
|
150
|
+
segments: z.array(TranscriptionRecordingSegment).max(1_000),
|
|
151
|
+
retryAfterMilliseconds: z.number().int().positive().max(60_000).optional(),
|
|
152
|
+
})
|
|
153
|
+
.strict(),
|
|
154
|
+
);
|
|
145
155
|
export type TranscriptionRecordingResponse = z.infer<typeof TranscriptionRecordingResponse>;
|
|
146
156
|
|
|
147
|
-
export const TranscriptionRecordingListResponse =
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
157
|
+
export const TranscriptionRecordingListResponse = /* @__PURE__ */ defineSchema(() =>
|
|
158
|
+
z
|
|
159
|
+
.object({
|
|
160
|
+
recordings: z.array(TranscriptionRecording).max(50),
|
|
161
|
+
})
|
|
162
|
+
.strict(),
|
|
163
|
+
);
|
|
152
164
|
export type TranscriptionRecordingListResponse = z.infer<typeof TranscriptionRecordingListResponse>;
|
|
153
165
|
|
|
154
|
-
export const UploadTranscriptionRecordingChunkResponse =
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
166
|
+
export const UploadTranscriptionRecordingChunkResponse = /* @__PURE__ */ defineSchema(() =>
|
|
167
|
+
z
|
|
168
|
+
.object({
|
|
169
|
+
recording: TranscriptionRecording,
|
|
170
|
+
chunk: TranscriptionRecordingChunk,
|
|
171
|
+
})
|
|
172
|
+
.strict(),
|
|
173
|
+
);
|
|
160
174
|
export type UploadTranscriptionRecordingChunkResponse = z.infer<
|
|
161
175
|
typeof UploadTranscriptionRecordingChunkResponse
|
|
162
176
|
>;
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { defineSchema } from "./define-schema";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import { TurnExecutionPolicyV1 } from "./index";
|
|
4
|
+
|
|
5
|
+
export const TURN_SERVING_POLICY_METADATA_KEY = "turnServingPolicyV1" as const;
|
|
6
|
+
export const TURN_PENDING_SERVING_POLICY_METADATA_KEY = "turnPendingServingPolicyV1" as const;
|
|
7
|
+
|
|
8
|
+
const ServingReason = /* @__PURE__ */ defineSchema(() =>
|
|
9
|
+
z.enum([
|
|
10
|
+
"initial",
|
|
11
|
+
"sticky",
|
|
12
|
+
"pinned",
|
|
13
|
+
"reselected_cold",
|
|
14
|
+
"failover_same_provider",
|
|
15
|
+
"failover_cross_provider",
|
|
16
|
+
"return_to_preferred",
|
|
17
|
+
]),
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
/** One immutable serving receipt, not a replacement for the accepted policy.
|
|
21
|
+
* The lazy reference keeps the contracts barrel free of initialization cycles.
|
|
22
|
+
* Connection ids are references only; no credential material belongs here.
|
|
23
|
+
*/
|
|
24
|
+
export const TurnServingPolicyV1 = /* @__PURE__ */ defineSchema(() =>
|
|
25
|
+
z
|
|
26
|
+
.object({
|
|
27
|
+
schemaVersion: z.literal(1),
|
|
28
|
+
policy: z.lazy(() => TurnExecutionPolicyV1),
|
|
29
|
+
executionGeneration: z.number().int().positive().max(Number.MAX_SAFE_INTEGER),
|
|
30
|
+
/** Selection reference; advisory until the generation is placed. */
|
|
31
|
+
connectionId: z.string().uuid(),
|
|
32
|
+
reason: ServingReason,
|
|
33
|
+
/** Highest session history position at recording, including inactive rows.
|
|
34
|
+
* Fractional positions exist in historical compaction layouts. A revision
|
|
35
|
+
* applies strictly AFTER this boundary, never to the row at the boundary.
|
|
36
|
+
*/
|
|
37
|
+
historyPosition: z.number().finite().nonnegative(),
|
|
38
|
+
})
|
|
39
|
+
.strict()
|
|
40
|
+
.superRefine((revision, context) => {
|
|
41
|
+
if (revision.policy.credentialRestriction !== undefined) {
|
|
42
|
+
context.addIssue({
|
|
43
|
+
code: "custom",
|
|
44
|
+
path: ["policy", "credentialRestriction"],
|
|
45
|
+
message: "Restricted policies cannot switch",
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
if (
|
|
49
|
+
revision.policy.billing.metering !== "external" ||
|
|
50
|
+
revision.policy.credentialSource.kind === "deployment"
|
|
51
|
+
) {
|
|
52
|
+
context.addIssue({
|
|
53
|
+
code: "custom",
|
|
54
|
+
path: ["policy", "billing"],
|
|
55
|
+
message: "Serving revisions require externally funded connected access",
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}),
|
|
59
|
+
);
|
|
60
|
+
export type TurnServingPolicyV1 = z.infer<typeof TurnServingPolicyV1>;
|
|
61
|
+
|
|
62
|
+
/** A recovery proposal, NOT provenance. Its history boundary is assigned only
|
|
63
|
+
* when a newer claimed generation commits a serving revision. C2 will stage it
|
|
64
|
+
* atomically with recovery using the transaction-local database helper.
|
|
65
|
+
*/
|
|
66
|
+
export const TurnPendingServingPolicyV1 = /* @__PURE__ */ defineSchema(() =>
|
|
67
|
+
z
|
|
68
|
+
.object({
|
|
69
|
+
schemaVersion: z.literal(1),
|
|
70
|
+
sourceExecutionGeneration: z.number().int().positive().max(Number.MAX_SAFE_INTEGER),
|
|
71
|
+
sourceAttemptId: z.string().uuid(),
|
|
72
|
+
policy: z.lazy(() => TurnExecutionPolicyV1),
|
|
73
|
+
connectionId: z.string().uuid(),
|
|
74
|
+
reason: ServingReason,
|
|
75
|
+
})
|
|
76
|
+
.strict()
|
|
77
|
+
.superRefine((target, context) => {
|
|
78
|
+
const candidate = TurnServingPolicyV1.safeParse({
|
|
79
|
+
schemaVersion: 1,
|
|
80
|
+
policy: target.policy,
|
|
81
|
+
connectionId: target.connectionId,
|
|
82
|
+
reason: target.reason,
|
|
83
|
+
executionGeneration: target.sourceExecutionGeneration,
|
|
84
|
+
historyPosition: 0,
|
|
85
|
+
});
|
|
86
|
+
if (!candidate.success)
|
|
87
|
+
context.addIssue({ code: "custom", message: "Invalid pending serving selection" });
|
|
88
|
+
}),
|
|
89
|
+
);
|
|
90
|
+
export type TurnPendingServingPolicyV1 = z.infer<typeof TurnPendingServingPolicyV1>;
|
|
91
|
+
|
|
92
|
+
export function readTurnPendingServingPolicyV1(
|
|
93
|
+
metadata: unknown,
|
|
94
|
+
): TurnPendingServingPolicyV1 | null {
|
|
95
|
+
if (metadata === null || metadata === undefined) return null;
|
|
96
|
+
if (typeof metadata !== "object" || Array.isArray(metadata))
|
|
97
|
+
throw new Error("Malformed pending serving metadata");
|
|
98
|
+
if (!Object.prototype.hasOwnProperty.call(metadata, TURN_PENDING_SERVING_POLICY_METADATA_KEY))
|
|
99
|
+
return null;
|
|
100
|
+
const parsed = TurnPendingServingPolicyV1.safeParse(
|
|
101
|
+
(metadata as Record<string, unknown>)[TURN_PENDING_SERVING_POLICY_METADATA_KEY],
|
|
102
|
+
);
|
|
103
|
+
if (!parsed.success) throw new Error("Malformed pending serving policy");
|
|
104
|
+
return parsed.data;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
const ServingRevisions = /* @__PURE__ */ defineSchema(() =>
|
|
108
|
+
z
|
|
109
|
+
.array(TurnServingPolicyV1)
|
|
110
|
+
.nonempty()
|
|
111
|
+
.superRefine((revisions, context) => {
|
|
112
|
+
for (let index = 1; index < revisions.length; index++) {
|
|
113
|
+
const previous = revisions[index - 1]!;
|
|
114
|
+
const current = revisions[index]!;
|
|
115
|
+
if (
|
|
116
|
+
current.executionGeneration <= previous.executionGeneration ||
|
|
117
|
+
current.historyPosition < previous.historyPosition
|
|
118
|
+
) {
|
|
119
|
+
context.addIssue({
|
|
120
|
+
code: "custom",
|
|
121
|
+
path: [index],
|
|
122
|
+
message: "Serving revisions must advance generation and never move history backwards",
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}),
|
|
127
|
+
);
|
|
128
|
+
|
|
129
|
+
export type TurnServingPolicyReadV1 =
|
|
130
|
+
| { kind: "absent" }
|
|
131
|
+
| { kind: "valid"; revisions: TurnServingPolicyV1[] };
|
|
132
|
+
|
|
133
|
+
/** Only absence is legacy. Malformed present metadata fails closed, without
|
|
134
|
+
* reflecting untrusted values (which might contain credentials) into errors.
|
|
135
|
+
*/
|
|
136
|
+
export function readTurnServingPolicyV1(metadata: unknown): TurnServingPolicyReadV1 {
|
|
137
|
+
if (metadata === null || metadata === undefined) return { kind: "absent" };
|
|
138
|
+
if (typeof metadata !== "object" || Array.isArray(metadata)) {
|
|
139
|
+
throw new Error("Malformed turn serving policy metadata");
|
|
140
|
+
}
|
|
141
|
+
if (!Object.prototype.hasOwnProperty.call(metadata, TURN_SERVING_POLICY_METADATA_KEY))
|
|
142
|
+
return { kind: "absent" };
|
|
143
|
+
const parsed = ServingRevisions.safeParse(
|
|
144
|
+
(metadata as Record<string, unknown>)[TURN_SERVING_POLICY_METADATA_KEY],
|
|
145
|
+
);
|
|
146
|
+
if (!parsed.success) throw new Error("Malformed turn serving policy revisions");
|
|
147
|
+
return { kind: "valid", revisions: parsed.data };
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/** D-39: the first receipt establishes the baseline. Reclaims, account-only
|
|
151
|
+
* rotations and reasoning changes do not spend the model/provider bound.
|
|
152
|
+
* Combine this with the all-provider refusal count at the recovery boundary.
|
|
153
|
+
*/
|
|
154
|
+
export function countTurnServingPolicyChangesV1(revisions: readonly TurnServingPolicyV1[]): number {
|
|
155
|
+
let count = 0;
|
|
156
|
+
for (let index = 1; index < revisions.length; index++) {
|
|
157
|
+
const previous = revisions[index - 1]!.policy;
|
|
158
|
+
const current = revisions[index]!.policy;
|
|
159
|
+
if (
|
|
160
|
+
previous.providerId !== current.providerId ||
|
|
161
|
+
previous.productModelId !== current.productModelId
|
|
162
|
+
)
|
|
163
|
+
count++;
|
|
164
|
+
}
|
|
165
|
+
return count;
|
|
166
|
+
}
|