@opengeni/contracts 3.1.0-canary.1 → 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 +110 -0
- package/dist/agent-learning.d.ts +243 -0
- 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-WBYTNVIW.js → chunk-RKX3NQYS.js} +1 -1
- 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-brain.d.ts +19 -81
- 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 +174 -0
- package/dist/external-identities.js +15 -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 +39 -10
- package/dist/host-mcp-bindings.js +256 -171
- package/dist/host-mcp-bindings.js.map +1 -1
- package/dist/image-generation.d.ts +1 -0
- package/dist/index.d.ts +15715 -3850
- package/dist/index.js +2088 -289
- 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 +984 -0
- 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-endpoint.js +9 -0
- package/dist/mcp-endpoint.js.map +1 -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/plugin-discovery.js +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-instruction-policies.d.ts +13 -0
- 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/workspace-state.d.ts +85 -416
- package/dist/xai-provider-account-authority.js +2 -1
- package/package.json +98 -2
- package/src/agent-authored-durable-text.ts +14 -11
- package/src/agent-config.ts +1698 -0
- package/src/agent-instruction-changes.ts +115 -0
- package/src/agent-learning.ts +188 -0
- 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 +262 -145
- 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 +292 -198
- package/src/image-generation.ts +104 -95
- package/src/index.ts +13354 -8654
- package/src/insights-usage.ts +727 -0
- package/src/interaction.ts +3070 -2326
- package/src/knowledge-entries.ts +428 -0
- 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 -275
- 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 +253 -333
- package/src/xai-provider-account-authority.ts +22 -17
- 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-OSBYTE3O.js +0 -348
- package/dist/chunk-OSBYTE3O.js.map +0 -1
- package/dist/chunk-P3HLDT77.js +0 -59
- package/dist/chunk-P3HLDT77.js.map +0 -1
- package/dist/chunk-TEMFILR7.js +0 -143
- package/dist/chunk-TEMFILR7.js.map +0 -1
- package/dist/chunk-TXTQIYCV.js.map +0 -1
- package/dist/chunk-UR2GFYIE.js +0 -22598
- package/dist/chunk-UR2GFYIE.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-5LYFSZ7O.js.map → chunk-352X6ENP.js.map} +0 -0
- /package/dist/{chunk-WBYTNVIW.js.map → chunk-RKX3NQYS.js.map} +0 -0
- /package/dist/{chunk-O5LEQHDM.js.map → chunk-Z7WEVGCL.js.map} +0 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const AgentInstructionEditMode: z.ZodEnum<{
|
|
3
|
+
append: "append";
|
|
4
|
+
edit: "edit";
|
|
5
|
+
}>;
|
|
6
|
+
export type AgentInstructionEditMode = z.infer<typeof AgentInstructionEditMode>;
|
|
7
|
+
export declare const AgentInstructionSaveRequest: z.ZodObject<{
|
|
8
|
+
operationId: z.ZodUUID;
|
|
9
|
+
target: z.ZodObject<{
|
|
10
|
+
kind: z.ZodEnum<{
|
|
11
|
+
charter: "charter";
|
|
12
|
+
policy: "policy";
|
|
13
|
+
}>;
|
|
14
|
+
scope: z.ZodEnum<{
|
|
15
|
+
global: "global";
|
|
16
|
+
role: "role";
|
|
17
|
+
}>;
|
|
18
|
+
roleKey: z.ZodNullable<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
editMode: z.ZodEnum<{
|
|
21
|
+
append: "append";
|
|
22
|
+
edit: "edit";
|
|
23
|
+
}>;
|
|
24
|
+
content: z.ZodOptional<z.ZodString>;
|
|
25
|
+
oldText: z.ZodOptional<z.ZodString>;
|
|
26
|
+
newText: z.ZodOptional<z.ZodString>;
|
|
27
|
+
expectedCurrentRevisionId: z.ZodNullable<z.ZodUUID>;
|
|
28
|
+
expectedActivationVersion: z.ZodNumber;
|
|
29
|
+
evidence: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
30
|
+
entryId: z.ZodUUID;
|
|
31
|
+
revisionId: z.ZodUUID;
|
|
32
|
+
location: z.ZodDefault<z.ZodObject<{
|
|
33
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
34
|
+
passage: z.ZodOptional<z.ZodString>;
|
|
35
|
+
messageIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
36
|
+
path: z.ZodOptional<z.ZodString>;
|
|
37
|
+
commit: z.ZodOptional<z.ZodString>;
|
|
38
|
+
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
}, z.core.$strict>>;
|
|
41
|
+
quote: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strict>>>;
|
|
43
|
+
reason: z.ZodString;
|
|
44
|
+
}, z.core.$strict>;
|
|
45
|
+
export type AgentInstructionSaveRequest = z.input<typeof AgentInstructionSaveRequest>;
|
|
46
|
+
export declare const AgentInstructionReviewRequest: z.ZodObject<{
|
|
47
|
+
operationId: z.ZodUUID;
|
|
48
|
+
revisionId: z.ZodUUID;
|
|
49
|
+
decision: z.ZodEnum<{
|
|
50
|
+
approve: "approve";
|
|
51
|
+
reject: "reject";
|
|
52
|
+
}>;
|
|
53
|
+
reason: z.ZodString;
|
|
54
|
+
}, z.core.$strict>;
|
|
55
|
+
export type AgentInstructionReviewRequest = z.infer<typeof AgentInstructionReviewRequest>;
|
|
56
|
+
export declare const AgentInstructionReceipt: z.ZodObject<{
|
|
57
|
+
operationId: z.ZodUUID;
|
|
58
|
+
revisionId: z.ZodUUID;
|
|
59
|
+
outcome: z.ZodEnum<{
|
|
60
|
+
pending: "pending";
|
|
61
|
+
published: "published";
|
|
62
|
+
rejected: "rejected";
|
|
63
|
+
}>;
|
|
64
|
+
reviewBatchId: z.ZodNullable<z.ZodUUID>;
|
|
65
|
+
replayed: z.ZodBoolean;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
export type AgentInstructionReceipt = z.infer<typeof AgentInstructionReceipt>;
|
|
68
|
+
export declare const AgentInstructionReviewItem: z.ZodObject<{
|
|
69
|
+
revisionId: z.ZodUUID;
|
|
70
|
+
content: z.ZodString;
|
|
71
|
+
target: z.ZodObject<{
|
|
72
|
+
kind: z.ZodEnum<{
|
|
73
|
+
charter: "charter";
|
|
74
|
+
policy: "policy";
|
|
75
|
+
}>;
|
|
76
|
+
scope: z.ZodEnum<{
|
|
77
|
+
global: "global";
|
|
78
|
+
role: "role";
|
|
79
|
+
}>;
|
|
80
|
+
roleKey: z.ZodNullable<z.ZodString>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
reviewBatchId: z.ZodNullable<z.ZodUUID>;
|
|
83
|
+
sessionId: z.ZodNullable<z.ZodUUID>;
|
|
84
|
+
reason: z.ZodString;
|
|
85
|
+
createdAt: z.ZodString;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
export type AgentInstructionReviewItem = z.infer<typeof AgentInstructionReviewItem>;
|
|
88
|
+
export declare const AgentInstructionReviewListResponse: z.ZodObject<{
|
|
89
|
+
entries: z.ZodArray<z.ZodObject<{
|
|
90
|
+
revisionId: z.ZodUUID;
|
|
91
|
+
content: z.ZodString;
|
|
92
|
+
target: z.ZodObject<{
|
|
93
|
+
kind: z.ZodEnum<{
|
|
94
|
+
charter: "charter";
|
|
95
|
+
policy: "policy";
|
|
96
|
+
}>;
|
|
97
|
+
scope: z.ZodEnum<{
|
|
98
|
+
global: "global";
|
|
99
|
+
role: "role";
|
|
100
|
+
}>;
|
|
101
|
+
roleKey: z.ZodNullable<z.ZodString>;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
reviewBatchId: z.ZodNullable<z.ZodUUID>;
|
|
104
|
+
sessionId: z.ZodNullable<z.ZodUUID>;
|
|
105
|
+
reason: z.ZodString;
|
|
106
|
+
createdAt: z.ZodString;
|
|
107
|
+
}, z.core.$strip>>;
|
|
108
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
export type AgentInstructionReviewListResponse = z.infer<typeof AgentInstructionReviewListResponse>;
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Review controls publication. It never grants content or external-action authority. */
|
|
3
|
+
export declare const AgentLearningMode: z.ZodEnum<{
|
|
4
|
+
automatic: "automatic";
|
|
5
|
+
off: "off";
|
|
6
|
+
review_first: "review_first";
|
|
7
|
+
}>;
|
|
8
|
+
export type AgentLearningMode = z.infer<typeof AgentLearningMode>;
|
|
9
|
+
export declare const AgentLearningCategory: z.ZodEnum<{
|
|
10
|
+
instructions: "instructions";
|
|
11
|
+
knowledge: "knowledge";
|
|
12
|
+
skills: "skills";
|
|
13
|
+
}>;
|
|
14
|
+
export type AgentLearningCategory = z.infer<typeof AgentLearningCategory>;
|
|
15
|
+
export declare const AgentLearningDefaults: z.ZodObject<{
|
|
16
|
+
knowledge: z.ZodEnum<{
|
|
17
|
+
automatic: "automatic";
|
|
18
|
+
off: "off";
|
|
19
|
+
review_first: "review_first";
|
|
20
|
+
}>;
|
|
21
|
+
instructions: z.ZodEnum<{
|
|
22
|
+
automatic: "automatic";
|
|
23
|
+
off: "off";
|
|
24
|
+
review_first: "review_first";
|
|
25
|
+
}>;
|
|
26
|
+
skills: z.ZodEnum<{
|
|
27
|
+
automatic: "automatic";
|
|
28
|
+
off: "off";
|
|
29
|
+
review_first: "review_first";
|
|
30
|
+
}>;
|
|
31
|
+
}, z.core.$strict>;
|
|
32
|
+
export type AgentLearningDefaults = z.infer<typeof AgentLearningDefaults>;
|
|
33
|
+
export declare const DEFAULT_AGENT_LEARNING: Readonly<AgentLearningDefaults>;
|
|
34
|
+
/** An absent category inherits. `inherit` is a reset request, not persisted policy. */
|
|
35
|
+
export declare const AgentLearningOverrides: z.ZodObject<{
|
|
36
|
+
knowledge: z.ZodOptional<z.ZodEnum<{
|
|
37
|
+
automatic: "automatic";
|
|
38
|
+
off: "off";
|
|
39
|
+
review_first: "review_first";
|
|
40
|
+
}>>;
|
|
41
|
+
instructions: z.ZodOptional<z.ZodEnum<{
|
|
42
|
+
automatic: "automatic";
|
|
43
|
+
off: "off";
|
|
44
|
+
review_first: "review_first";
|
|
45
|
+
}>>;
|
|
46
|
+
skills: z.ZodOptional<z.ZodEnum<{
|
|
47
|
+
automatic: "automatic";
|
|
48
|
+
off: "off";
|
|
49
|
+
review_first: "review_first";
|
|
50
|
+
}>>;
|
|
51
|
+
}, z.core.$strict>;
|
|
52
|
+
export type AgentLearningOverrides = z.infer<typeof AgentLearningOverrides>;
|
|
53
|
+
export declare const AgentLearningOverridePatch: z.ZodObject<{
|
|
54
|
+
knowledge: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
|
55
|
+
automatic: "automatic";
|
|
56
|
+
off: "off";
|
|
57
|
+
review_first: "review_first";
|
|
58
|
+
}>, z.ZodLiteral<"inherit">]>>;
|
|
59
|
+
instructions: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
|
60
|
+
automatic: "automatic";
|
|
61
|
+
off: "off";
|
|
62
|
+
review_first: "review_first";
|
|
63
|
+
}>, z.ZodLiteral<"inherit">]>>;
|
|
64
|
+
skills: z.ZodOptional<z.ZodUnion<[z.ZodEnum<{
|
|
65
|
+
automatic: "automatic";
|
|
66
|
+
off: "off";
|
|
67
|
+
review_first: "review_first";
|
|
68
|
+
}>, z.ZodLiteral<"inherit">]>>;
|
|
69
|
+
}, z.core.$strict>;
|
|
70
|
+
export type AgentLearningOverridePatch = z.infer<typeof AgentLearningOverridePatch>;
|
|
71
|
+
export declare const AgentLearningContext: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
72
|
+
kind: z.ZodLiteral<"chat">;
|
|
73
|
+
id: z.ZodUUID;
|
|
74
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
75
|
+
kind: z.ZodLiteral<"scheduled_task">;
|
|
76
|
+
id: z.ZodUUID;
|
|
77
|
+
}, z.core.$strict>], "kind">;
|
|
78
|
+
export type AgentLearningContext = z.infer<typeof AgentLearningContext>;
|
|
79
|
+
export declare const AgentLearningOwner: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
80
|
+
kind: z.ZodLiteral<"workspace">;
|
|
81
|
+
workspaceId: z.ZodUUID;
|
|
82
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
83
|
+
kind: z.ZodLiteral<"personal">;
|
|
84
|
+
subjectId: z.ZodString;
|
|
85
|
+
}, z.core.$strict>], "kind">;
|
|
86
|
+
export type AgentLearningOwner = z.infer<typeof AgentLearningOwner>;
|
|
87
|
+
export declare const AgentLearningSettings: z.ZodObject<{
|
|
88
|
+
owner: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
89
|
+
kind: z.ZodLiteral<"workspace">;
|
|
90
|
+
workspaceId: z.ZodUUID;
|
|
91
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
92
|
+
kind: z.ZodLiteral<"personal">;
|
|
93
|
+
subjectId: z.ZodString;
|
|
94
|
+
}, z.core.$strict>], "kind">;
|
|
95
|
+
version: z.ZodNumber;
|
|
96
|
+
defaults: z.ZodObject<{
|
|
97
|
+
knowledge: z.ZodEnum<{
|
|
98
|
+
automatic: "automatic";
|
|
99
|
+
off: "off";
|
|
100
|
+
review_first: "review_first";
|
|
101
|
+
}>;
|
|
102
|
+
instructions: z.ZodEnum<{
|
|
103
|
+
automatic: "automatic";
|
|
104
|
+
off: "off";
|
|
105
|
+
review_first: "review_first";
|
|
106
|
+
}>;
|
|
107
|
+
skills: z.ZodEnum<{
|
|
108
|
+
automatic: "automatic";
|
|
109
|
+
off: "off";
|
|
110
|
+
review_first: "review_first";
|
|
111
|
+
}>;
|
|
112
|
+
}, z.core.$strict>;
|
|
113
|
+
}, z.core.$strict>;
|
|
114
|
+
export type AgentLearningSettings = z.infer<typeof AgentLearningSettings>;
|
|
115
|
+
export declare const AgentLearningContextSettings: z.ZodObject<{
|
|
116
|
+
context: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
117
|
+
kind: z.ZodLiteral<"chat">;
|
|
118
|
+
id: z.ZodUUID;
|
|
119
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
120
|
+
kind: z.ZodLiteral<"scheduled_task">;
|
|
121
|
+
id: z.ZodUUID;
|
|
122
|
+
}, z.core.$strict>], "kind">;
|
|
123
|
+
version: z.ZodNumber;
|
|
124
|
+
overrides: z.ZodObject<{
|
|
125
|
+
knowledge: z.ZodOptional<z.ZodEnum<{
|
|
126
|
+
automatic: "automatic";
|
|
127
|
+
off: "off";
|
|
128
|
+
review_first: "review_first";
|
|
129
|
+
}>>;
|
|
130
|
+
instructions: z.ZodOptional<z.ZodEnum<{
|
|
131
|
+
automatic: "automatic";
|
|
132
|
+
off: "off";
|
|
133
|
+
review_first: "review_first";
|
|
134
|
+
}>>;
|
|
135
|
+
skills: z.ZodOptional<z.ZodEnum<{
|
|
136
|
+
automatic: "automatic";
|
|
137
|
+
off: "off";
|
|
138
|
+
review_first: "review_first";
|
|
139
|
+
}>>;
|
|
140
|
+
}, z.core.$strict>;
|
|
141
|
+
}, z.core.$strict>;
|
|
142
|
+
export type AgentLearningContextSettings = z.infer<typeof AgentLearningContextSettings>;
|
|
143
|
+
/** Versioned settings returned by both central and contextual editors. */
|
|
144
|
+
export declare const AgentLearningSettingsRecord: z.ZodObject<{
|
|
145
|
+
ownerKey: z.ZodString;
|
|
146
|
+
contextKey: z.ZodString;
|
|
147
|
+
version: z.ZodNumber;
|
|
148
|
+
settings: z.ZodObject<{
|
|
149
|
+
knowledge: z.ZodOptional<z.ZodEnum<{
|
|
150
|
+
automatic: "automatic";
|
|
151
|
+
off: "off";
|
|
152
|
+
review_first: "review_first";
|
|
153
|
+
}>>;
|
|
154
|
+
instructions: z.ZodOptional<z.ZodEnum<{
|
|
155
|
+
automatic: "automatic";
|
|
156
|
+
off: "off";
|
|
157
|
+
review_first: "review_first";
|
|
158
|
+
}>>;
|
|
159
|
+
skills: z.ZodOptional<z.ZodEnum<{
|
|
160
|
+
automatic: "automatic";
|
|
161
|
+
off: "off";
|
|
162
|
+
review_first: "review_first";
|
|
163
|
+
}>>;
|
|
164
|
+
}, z.core.$strict>;
|
|
165
|
+
}, z.core.$strip>;
|
|
166
|
+
export type AgentLearningSettingsRecord = z.infer<typeof AgentLearningSettingsRecord>;
|
|
167
|
+
export declare const AgentLearningOverrideRecord: z.ZodObject<{
|
|
168
|
+
contextKey: z.ZodString;
|
|
169
|
+
version: z.ZodNumber;
|
|
170
|
+
settings: z.ZodObject<{
|
|
171
|
+
knowledge: z.ZodOptional<z.ZodEnum<{
|
|
172
|
+
automatic: "automatic";
|
|
173
|
+
off: "off";
|
|
174
|
+
review_first: "review_first";
|
|
175
|
+
}>>;
|
|
176
|
+
instructions: z.ZodOptional<z.ZodEnum<{
|
|
177
|
+
automatic: "automatic";
|
|
178
|
+
off: "off";
|
|
179
|
+
review_first: "review_first";
|
|
180
|
+
}>>;
|
|
181
|
+
skills: z.ZodOptional<z.ZodEnum<{
|
|
182
|
+
automatic: "automatic";
|
|
183
|
+
off: "off";
|
|
184
|
+
review_first: "review_first";
|
|
185
|
+
}>>;
|
|
186
|
+
}, z.core.$strict>;
|
|
187
|
+
updatedAt: z.ZodString;
|
|
188
|
+
label: z.ZodString;
|
|
189
|
+
}, z.core.$strip>;
|
|
190
|
+
export type AgentLearningOverrideRecord = z.infer<typeof AgentLearningOverrideRecord>;
|
|
191
|
+
export type SaveAgentLearningSettingsRequest = {
|
|
192
|
+
scope: "workspace" | "personal";
|
|
193
|
+
source?: AgentLearningContext;
|
|
194
|
+
operationId: string;
|
|
195
|
+
expectedVersion: number;
|
|
196
|
+
settings: AgentLearningOverridePatch;
|
|
197
|
+
};
|
|
198
|
+
export declare const AgentLearningEffectiveCategory: z.ZodObject<{
|
|
199
|
+
mode: z.ZodEnum<{
|
|
200
|
+
automatic: "automatic";
|
|
201
|
+
off: "off";
|
|
202
|
+
review_first: "review_first";
|
|
203
|
+
}>;
|
|
204
|
+
inherited: z.ZodBoolean;
|
|
205
|
+
}, z.core.$strict>;
|
|
206
|
+
export declare const AgentLearningEffectivePolicy: z.ZodObject<{
|
|
207
|
+
knowledge: z.ZodObject<{
|
|
208
|
+
mode: z.ZodEnum<{
|
|
209
|
+
automatic: "automatic";
|
|
210
|
+
off: "off";
|
|
211
|
+
review_first: "review_first";
|
|
212
|
+
}>;
|
|
213
|
+
inherited: z.ZodBoolean;
|
|
214
|
+
}, z.core.$strict>;
|
|
215
|
+
instructions: z.ZodObject<{
|
|
216
|
+
mode: z.ZodEnum<{
|
|
217
|
+
automatic: "automatic";
|
|
218
|
+
off: "off";
|
|
219
|
+
review_first: "review_first";
|
|
220
|
+
}>;
|
|
221
|
+
inherited: z.ZodBoolean;
|
|
222
|
+
}, z.core.$strict>;
|
|
223
|
+
skills: z.ZodObject<{
|
|
224
|
+
mode: z.ZodEnum<{
|
|
225
|
+
automatic: "automatic";
|
|
226
|
+
off: "off";
|
|
227
|
+
review_first: "review_first";
|
|
228
|
+
}>;
|
|
229
|
+
inherited: z.ZodBoolean;
|
|
230
|
+
}, z.core.$strict>;
|
|
231
|
+
}, z.core.$strict>;
|
|
232
|
+
export type AgentLearningEffectivePolicy = z.infer<typeof AgentLearningEffectivePolicy>;
|
|
233
|
+
/** Apply only at an authorized settings boundary; this function confers no authority. */
|
|
234
|
+
export declare function patchAgentLearningOverrides(current: AgentLearningOverrides, patch: AgentLearningOverridePatch): AgentLearningOverrides;
|
|
235
|
+
/** Pure resolution over accepted settings. Runtime callers persist the resulting snapshot. */
|
|
236
|
+
export declare function resolveAgentLearningPolicy(defaults: AgentLearningDefaults, overrides: AgentLearningOverrides): AgentLearningEffectivePolicy;
|
|
237
|
+
/** Migration adapter preserves explicit opt-outs and existing instruction/Skill choices. */
|
|
238
|
+
export declare function agentLearningDefaultsFromLegacy(input: {
|
|
239
|
+
memoryEnabled?: boolean;
|
|
240
|
+
workspaceMode?: "off" | "suggest" | "automatic";
|
|
241
|
+
}): AgentLearningDefaults;
|
|
242
|
+
/** Existing instruction and Skill lifecycles retain their native mode vocabulary. */
|
|
243
|
+
export declare function agentLearningDestinationMode(mode: AgentLearningMode): "automatic" | "off" | "suggest";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AllowanceExhaustedRefusal } from "./usage-allowances.js";
|
|
2
|
+
/** Select only public refusal fields, including from an API error's details.
|
|
3
|
+
* LimitDecision's allowed:false and transport/SQL diagnostics never cross out.
|
|
4
|
+
*/
|
|
5
|
+
export declare function parseAllowanceExhaustedRefusal(value: unknown): AllowanceExhaustedRefusal | null;
|
|
6
|
+
/** Bounded, fixed remedies: a ceiling is not an exhausted billing source.
|
|
7
|
+
* Never interpolate arbitrary exception prose or a member identifier.
|
|
8
|
+
*/
|
|
9
|
+
export declare function allowanceExhaustedMessage(refusal: AllowanceExhaustedRefusal): string;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// src/allowance-refusal.ts
|
|
2
|
+
var MESSAGE_MAX_UTF8_BYTES = 1024;
|
|
3
|
+
function record(value) {
|
|
4
|
+
return value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
5
|
+
}
|
|
6
|
+
function resetTimestamp(value) {
|
|
7
|
+
if (value === null) return true;
|
|
8
|
+
if (typeof value !== "string" || value.length > 64) return false;
|
|
9
|
+
const parts = /^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\d|3[01])T(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/.exec(
|
|
10
|
+
value
|
|
11
|
+
);
|
|
12
|
+
if (!parts || !Number.isFinite(Date.parse(value))) return false;
|
|
13
|
+
const year = Number(parts[1]);
|
|
14
|
+
const month = Number(parts[2]);
|
|
15
|
+
const day = Number(parts[3]);
|
|
16
|
+
const leapYear = year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
|
17
|
+
const days = [31, leapYear ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
18
|
+
return day <= days[month - 1];
|
|
19
|
+
}
|
|
20
|
+
function parseAllowanceExhaustedRefusal(value) {
|
|
21
|
+
const source = record(value);
|
|
22
|
+
if (source?.code !== "allowance_exhausted") return null;
|
|
23
|
+
const fields = record(source.details) ?? source;
|
|
24
|
+
const scope = fields.scope;
|
|
25
|
+
const subjectId = scope === "member" ? fields.subjectId : void 0;
|
|
26
|
+
if (typeof source.message !== "string" || scope !== "workspace" && scope !== "member" || !resetTimestamp(fields.resetsAt) || subjectId !== void 0 && (typeof subjectId !== "string" || subjectId.length === 0 || subjectId.length > 1024 || subjectId.includes("\0"))) {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
const normalized = source.message.slice(0, MESSAGE_MAX_UTF8_BYTES * 2).replace(/[\u0000-\u001f\u007f]+/g, " ").trim();
|
|
30
|
+
const bytes = new TextEncoder().encode(normalized.slice(0, MESSAGE_MAX_UTF8_BYTES * 2));
|
|
31
|
+
let end = Math.min(bytes.length, MESSAGE_MAX_UTF8_BYTES);
|
|
32
|
+
while (end > 0 && end < bytes.length && (bytes[end] & 192) === 128) end -= 1;
|
|
33
|
+
return {
|
|
34
|
+
code: "allowance_exhausted",
|
|
35
|
+
scope,
|
|
36
|
+
resetsAt: fields.resetsAt,
|
|
37
|
+
...typeof subjectId === "string" ? { subjectId } : {},
|
|
38
|
+
message: new TextDecoder().decode(bytes.slice(0, end)).trim()
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function allowanceExhaustedMessage(refusal) {
|
|
42
|
+
const remedy = refusal.scope === "workspace" ? "The workspace usage allowance is exhausted. An organization administrator or a full-access organization API key can raise the workspace ceiling or add an allowance grant." : "The member usage allowance is exhausted. A workspace administrator or a full-access organization API key can adjust the member ceiling.";
|
|
43
|
+
const reset = refusal.resetsAt === null ? "This allowance has no automatic reset." : `It resets at ${new Date(refusal.resetsAt).toISOString().slice(0, 16).replace("T", " ")} UTC.`;
|
|
44
|
+
return `${remedy} ${reset}`;
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
allowanceExhaustedMessage,
|
|
48
|
+
parseAllowanceExhaustedRefusal
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=allowance-refusal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/allowance-refusal.ts"],"sourcesContent":["import type { AllowanceExhaustedRefusal } from \"./usage-allowances\";\n\nconst MESSAGE_MAX_UTF8_BYTES = 1_024;\n\nfunction record(value: unknown): Record<string, unknown> | null {\n return value !== null && typeof value === \"object\" && !Array.isArray(value)\n ? (value as Record<string, unknown>)\n : null;\n}\n\n/** Mirror the canonical offset datetime's calendar/time bounds without loading\n * the schema runtime into synchronous browser/React Native session projection.\n * Contract-parity tests guard this deliberately small, bounded wire leaf.\n */\nfunction resetTimestamp(value: unknown): value is string | null {\n if (value === null) return true;\n if (typeof value !== \"string\" || value.length > 64) return false;\n const parts =\n /^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12]\\d|3[01])T(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|[+-](?:[01]\\d|2[0-3]):[0-5]\\d)$/.exec(\n value,\n );\n if (!parts || !Number.isFinite(Date.parse(value))) return false;\n const year = Number(parts[1]);\n const month = Number(parts[2]);\n const day = Number(parts[3]);\n const leapYear = year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);\n const days = [31, leapYear ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\n return day <= days[month - 1]!;\n}\n\n/** Select only public refusal fields, including from an API error's details.\n * LimitDecision's allowed:false and transport/SQL diagnostics never cross out.\n */\nexport function parseAllowanceExhaustedRefusal(value: unknown): AllowanceExhaustedRefusal | null {\n const source = record(value);\n if (source?.code !== \"allowance_exhausted\") return null;\n const fields = record(source.details) ?? source;\n const scope = fields.scope;\n const subjectId = scope === \"member\" ? fields.subjectId : undefined;\n if (\n typeof source.message !== \"string\" ||\n (scope !== \"workspace\" && scope !== \"member\") ||\n !resetTimestamp(fields.resetsAt) ||\n (subjectId !== undefined &&\n (typeof subjectId !== \"string\" ||\n subjectId.length === 0 ||\n subjectId.length > 1_024 ||\n subjectId.includes(\"\\0\")))\n ) {\n return null;\n }\n const normalized = source.message\n .slice(0, MESSAGE_MAX_UTF8_BYTES * 2)\n .replace(/[\\u0000-\\u001f\\u007f]+/g, \" \")\n .trim();\n const bytes = new TextEncoder().encode(normalized.slice(0, MESSAGE_MAX_UTF8_BYTES * 2));\n let end = Math.min(bytes.length, MESSAGE_MAX_UTF8_BYTES);\n while (end > 0 && end < bytes.length && (bytes[end]! & 0xc0) === 0x80) end -= 1;\n return {\n code: \"allowance_exhausted\",\n scope,\n resetsAt: fields.resetsAt,\n ...(typeof subjectId === \"string\" ? { subjectId } : {}),\n message: new TextDecoder().decode(bytes.slice(0, end)).trim(),\n };\n}\n\n/** Bounded, fixed remedies: a ceiling is not an exhausted billing source.\n * Never interpolate arbitrary exception prose or a member identifier.\n */\nexport function allowanceExhaustedMessage(refusal: AllowanceExhaustedRefusal): string {\n const remedy =\n refusal.scope === \"workspace\"\n ? \"The workspace usage allowance is exhausted. An organization administrator or a full-access organization API key can raise the workspace ceiling or add an allowance grant.\"\n : \"The member usage allowance is exhausted. A workspace administrator or a full-access organization API key can adjust the member ceiling.\";\n const reset =\n refusal.resetsAt === null\n ? \"This allowance has no automatic reset.\"\n : `It resets at ${new Date(refusal.resetsAt).toISOString().slice(0, 16).replace(\"T\", \" \")} UTC.`;\n return `${remedy} ${reset}`;\n}\n"],"mappings":";AAEA,IAAM,yBAAyB;AAE/B,SAAS,OAAO,OAAgD;AAC9D,SAAO,UAAU,QAAQ,OAAO,UAAU,YAAY,CAAC,MAAM,QAAQ,KAAK,IACrE,QACD;AACN;AAMA,SAAS,eAAe,OAAwC;AAC9D,MAAI,UAAU,KAAM,QAAO;AAC3B,MAAI,OAAO,UAAU,YAAY,MAAM,SAAS,GAAI,QAAO;AAC3D,QAAM,QACJ,sIAAsI;AAAA,IACpI;AAAA,EACF;AACF,MAAI,CAAC,SAAS,CAAC,OAAO,SAAS,KAAK,MAAM,KAAK,CAAC,EAAG,QAAO;AAC1D,QAAM,OAAO,OAAO,MAAM,CAAC,CAAC;AAC5B,QAAM,QAAQ,OAAO,MAAM,CAAC,CAAC;AAC7B,QAAM,MAAM,OAAO,MAAM,CAAC,CAAC;AAC3B,QAAM,WAAW,OAAO,MAAM,MAAM,OAAO,QAAQ,KAAK,OAAO,QAAQ;AACvE,QAAM,OAAO,CAAC,IAAI,WAAW,KAAK,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,IAAI,EAAE;AAC5E,SAAO,OAAO,KAAK,QAAQ,CAAC;AAC9B;AAKO,SAAS,+BAA+B,OAAkD;AAC/F,QAAM,SAAS,OAAO,KAAK;AAC3B,MAAI,QAAQ,SAAS,sBAAuB,QAAO;AACnD,QAAM,SAAS,OAAO,OAAO,OAAO,KAAK;AACzC,QAAM,QAAQ,OAAO;AACrB,QAAM,YAAY,UAAU,WAAW,OAAO,YAAY;AAC1D,MACE,OAAO,OAAO,YAAY,YACzB,UAAU,eAAe,UAAU,YACpC,CAAC,eAAe,OAAO,QAAQ,KAC9B,cAAc,WACZ,OAAO,cAAc,YACpB,UAAU,WAAW,KACrB,UAAU,SAAS,QACnB,UAAU,SAAS,IAAI,IAC3B;AACA,WAAO;AAAA,EACT;AACA,QAAM,aAAa,OAAO,QACvB,MAAM,GAAG,yBAAyB,CAAC,EACnC,QAAQ,2BAA2B,GAAG,EACtC,KAAK;AACR,QAAM,QAAQ,IAAI,YAAY,EAAE,OAAO,WAAW,MAAM,GAAG,yBAAyB,CAAC,CAAC;AACtF,MAAI,MAAM,KAAK,IAAI,MAAM,QAAQ,sBAAsB;AACvD,SAAO,MAAM,KAAK,MAAM,MAAM,WAAW,MAAM,GAAG,IAAK,SAAU,IAAM,QAAO;AAC9E,SAAO;AAAA,IACL,MAAM;AAAA,IACN;AAAA,IACA,UAAU,OAAO;AAAA,IACjB,GAAI,OAAO,cAAc,WAAW,EAAE,UAAU,IAAI,CAAC;AAAA,IACrD,SAAS,IAAI,YAAY,EAAE,OAAO,MAAM,MAAM,GAAG,GAAG,CAAC,EAAE,KAAK;AAAA,EAC9D;AACF;AAKO,SAAS,0BAA0B,SAA4C;AACpF,QAAM,SACJ,QAAQ,UAAU,cACd,+KACA;AACN,QAAM,QACJ,QAAQ,aAAa,OACjB,2CACA,gBAAgB,IAAI,KAAK,QAAQ,QAAQ,EAAE,YAAY,EAAE,MAAM,GAAG,EAAE,EAAE,QAAQ,KAAK,GAAG,CAAC;AAC7F,SAAO,GAAG,MAAM,IAAI,KAAK;AAC3B;","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Wire grammar of the content-free analytics consent beacon
|
|
3
|
+
* (`POST /v1/analytics-consent`).
|
|
4
|
+
*
|
|
5
|
+
* When a person answers the web console's optional-analytics banner, the
|
|
6
|
+
* browser reports only the closed decision so the API can count choices in
|
|
7
|
+
* `opengeni_analytics_consent_total{decision}`. The count shows how much of
|
|
8
|
+
* the audience the consent-gated analytics providers never see. A report
|
|
9
|
+
* carries no identifier, URL, cookie, or user content, and the web client and
|
|
10
|
+
* the API route both validate against these exact values.
|
|
11
|
+
*/
|
|
12
|
+
export declare const ANALYTICS_CONSENT_PATH = "/v1/analytics-consent";
|
|
13
|
+
export declare const ANALYTICS_CONSENT_DECISIONS: readonly ["granted", "denied"];
|
|
14
|
+
export type AnalyticsConsentDecision = (typeof ANALYTICS_CONSENT_DECISIONS)[number];
|
|
15
|
+
/** Largest accepted report body. A valid report is under 32 bytes. */
|
|
16
|
+
export declare const ANALYTICS_CONSENT_REPORT_MAX_BYTES = 128;
|
|
17
|
+
export type AnalyticsConsentReport = {
|
|
18
|
+
decision: AnalyticsConsentDecision;
|
|
19
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// src/analytics-consent-report.ts
|
|
2
|
+
var ANALYTICS_CONSENT_PATH = "/v1/analytics-consent";
|
|
3
|
+
var ANALYTICS_CONSENT_DECISIONS = ["granted", "denied"];
|
|
4
|
+
var ANALYTICS_CONSENT_REPORT_MAX_BYTES = 128;
|
|
5
|
+
export {
|
|
6
|
+
ANALYTICS_CONSENT_DECISIONS,
|
|
7
|
+
ANALYTICS_CONSENT_PATH,
|
|
8
|
+
ANALYTICS_CONSENT_REPORT_MAX_BYTES
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=analytics-consent-report.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/analytics-consent-report.ts"],"sourcesContent":["/**\n * Wire grammar of the content-free analytics consent beacon\n * (`POST /v1/analytics-consent`).\n *\n * When a person answers the web console's optional-analytics banner, the\n * browser reports only the closed decision so the API can count choices in\n * `opengeni_analytics_consent_total{decision}`. The count shows how much of\n * the audience the consent-gated analytics providers never see. A report\n * carries no identifier, URL, cookie, or user content, and the web client and\n * the API route both validate against these exact values.\n */\nexport const ANALYTICS_CONSENT_PATH = \"/v1/analytics-consent\";\n\nexport const ANALYTICS_CONSENT_DECISIONS = [\"granted\", \"denied\"] as const;\nexport type AnalyticsConsentDecision = (typeof ANALYTICS_CONSENT_DECISIONS)[number];\n\n/** Largest accepted report body. A valid report is under 32 bytes. */\nexport const ANALYTICS_CONSENT_REPORT_MAX_BYTES = 128;\n\nexport type AnalyticsConsentReport = { decision: AnalyticsConsentDecision };\n"],"mappings":";AAWO,IAAM,yBAAyB;AAE/B,IAAM,8BAA8B,CAAC,WAAW,QAAQ;AAIxD,IAAM,qCAAqC;","names":[]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Optional creation alias for the developer_setup organization access tier. */
|
|
3
|
+
export declare const OrganizationApiKeyPreset: z.ZodEnum<{
|
|
4
|
+
developer_setup: "developer_setup";
|
|
5
|
+
}>;
|
|
6
|
+
export type OrganizationApiKeyPreset = z.infer<typeof OrganizationApiKeyPreset>;
|
|
7
|
+
/**
|
|
8
|
+
* The current setup-route floor: workspace provisioning, configuration/cleanup,
|
|
9
|
+
* and explicit literal budget authority. workspace:admin also covers discovery and session/tool/
|
|
10
|
+
* schedule guards. It is broad authority, not setup-only, and never confers
|
|
11
|
+
* literal secrets:read. No account:admin, billing, or redundant read scopes.
|
|
12
|
+
*/
|
|
13
|
+
export declare const DEVELOPER_SETUP_API_KEY_PRESET: {
|
|
14
|
+
readonly id: "developer_setup";
|
|
15
|
+
readonly label: "Developer setup";
|
|
16
|
+
readonly description: "Set up shared workspaces, tools and budgets. Includes broad workspace administration and expires after 24 hours. Can't manage API keys.";
|
|
17
|
+
readonly permissions: ("usage_allowances:manage" | "workspace:admin" | "workspace:create")[];
|
|
18
|
+
readonly defaultExpiryHours: 24;
|
|
19
|
+
};
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ArtifactCatalogKind: z.ZodEnum<{
|
|
3
|
+
document: "document";
|
|
4
|
+
file: "file";
|
|
5
|
+
image: "image";
|
|
6
|
+
presentation: "presentation";
|
|
7
|
+
site: "site";
|
|
8
|
+
spreadsheet: "spreadsheet";
|
|
9
|
+
}>;
|
|
10
|
+
export type ArtifactCatalogKind = z.infer<typeof ArtifactCatalogKind>;
|
|
11
|
+
/** Metadata only: native domain IDs, never content, storage keys or credentials. */
|
|
12
|
+
export declare const ArtifactCatalogItem: z.ZodObject<{
|
|
13
|
+
id: z.ZodString;
|
|
14
|
+
kind: z.ZodEnum<{
|
|
15
|
+
document: "document";
|
|
16
|
+
file: "file";
|
|
17
|
+
image: "image";
|
|
18
|
+
presentation: "presentation";
|
|
19
|
+
site: "site";
|
|
20
|
+
spreadsheet: "spreadsheet";
|
|
21
|
+
}>;
|
|
22
|
+
title: z.ZodString;
|
|
23
|
+
createdAt: z.ZodString;
|
|
24
|
+
updatedAt: z.ZodString;
|
|
25
|
+
status: z.ZodEnum<{
|
|
26
|
+
active: "active";
|
|
27
|
+
archived: "archived";
|
|
28
|
+
}>;
|
|
29
|
+
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
31
|
+
private: "private";
|
|
32
|
+
workspace: "workspace";
|
|
33
|
+
}>>;
|
|
34
|
+
sourceSessionId: z.ZodOptional<z.ZodString>;
|
|
35
|
+
versionId: z.ZodOptional<z.ZodString>;
|
|
36
|
+
file: z.ZodOptional<z.ZodObject<{
|
|
37
|
+
available: z.ZodLiteral<true>;
|
|
38
|
+
artifactId: z.ZodString;
|
|
39
|
+
kind: z.ZodEnum<{
|
|
40
|
+
assistant_completion: "assistant_completion";
|
|
41
|
+
browser_screenshot: "browser_screenshot";
|
|
42
|
+
computer_screenshot: "computer_screenshot";
|
|
43
|
+
event_media: "event_media";
|
|
44
|
+
file: "file";
|
|
45
|
+
generated_image: "generated_image";
|
|
46
|
+
generated_video: "generated_video";
|
|
47
|
+
internal_update: "internal_update";
|
|
48
|
+
tool_result: "tool_result";
|
|
49
|
+
}>;
|
|
50
|
+
contentType: z.ZodString;
|
|
51
|
+
originalBytes: z.ZodNumber;
|
|
52
|
+
sha256: z.ZodString;
|
|
53
|
+
retainedAt: z.ZodString;
|
|
54
|
+
dimensions: z.ZodOptional<z.ZodObject<{
|
|
55
|
+
width: z.ZodNumber;
|
|
56
|
+
height: z.ZodNumber;
|
|
57
|
+
}, z.core.$strict>>;
|
|
58
|
+
retention: z.ZodUnion<readonly [z.ZodObject<{
|
|
59
|
+
policy: z.ZodLiteral<"workspace_file">;
|
|
60
|
+
expiresAt: z.ZodNull;
|
|
61
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
62
|
+
policy: z.ZodLiteral<"session_screenshot">;
|
|
63
|
+
expiresAt: z.ZodString;
|
|
64
|
+
}, z.core.$strict>]>;
|
|
65
|
+
retrieval: z.ZodObject<{
|
|
66
|
+
method: z.ZodLiteral<"GET">;
|
|
67
|
+
path: z.ZodString;
|
|
68
|
+
acceptRanges: z.ZodLiteral<"bytes">;
|
|
69
|
+
maxRangeBytes: z.ZodNumber;
|
|
70
|
+
}, z.core.$strict>;
|
|
71
|
+
}, z.core.$strict>>;
|
|
72
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
73
|
+
contentType: z.ZodOptional<z.ZodString>;
|
|
74
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
75
|
+
}, z.core.$strict>;
|
|
76
|
+
export type ArtifactCatalogItem = z.infer<typeof ArtifactCatalogItem>;
|
|
77
|
+
export declare const ArtifactCatalogListQuery: z.ZodObject<{
|
|
78
|
+
sourceSessionId: z.ZodOptional<z.ZodString>;
|
|
79
|
+
q: z.ZodOptional<z.ZodString>;
|
|
80
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
81
|
+
document: "document";
|
|
82
|
+
file: "file";
|
|
83
|
+
image: "image";
|
|
84
|
+
presentation: "presentation";
|
|
85
|
+
site: "site";
|
|
86
|
+
spreadsheet: "spreadsheet";
|
|
87
|
+
}>>;
|
|
88
|
+
sort: z.ZodDefault<z.ZodEnum<{
|
|
89
|
+
newest: "newest";
|
|
90
|
+
title: "title";
|
|
91
|
+
updated: "updated";
|
|
92
|
+
}>>;
|
|
93
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
94
|
+
active: "active";
|
|
95
|
+
archived: "archived";
|
|
96
|
+
}>>;
|
|
97
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
98
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
99
|
+
}, z.core.$strict>;
|
|
100
|
+
export type ArtifactCatalogListQuery = z.infer<typeof ArtifactCatalogListQuery>;
|
|
101
|
+
export type ArtifactCatalogListOptions = Omit<z.input<typeof ArtifactCatalogListQuery>, "limit"> & {
|
|
102
|
+
limit?: number;
|
|
103
|
+
};
|
|
104
|
+
export declare const ArtifactCatalogListResponse: z.ZodObject<{
|
|
105
|
+
items: z.ZodArray<z.ZodObject<{
|
|
106
|
+
id: z.ZodString;
|
|
107
|
+
kind: z.ZodEnum<{
|
|
108
|
+
document: "document";
|
|
109
|
+
file: "file";
|
|
110
|
+
image: "image";
|
|
111
|
+
presentation: "presentation";
|
|
112
|
+
site: "site";
|
|
113
|
+
spreadsheet: "spreadsheet";
|
|
114
|
+
}>;
|
|
115
|
+
title: z.ZodString;
|
|
116
|
+
createdAt: z.ZodString;
|
|
117
|
+
updatedAt: z.ZodString;
|
|
118
|
+
status: z.ZodEnum<{
|
|
119
|
+
active: "active";
|
|
120
|
+
archived: "archived";
|
|
121
|
+
}>;
|
|
122
|
+
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
123
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
124
|
+
private: "private";
|
|
125
|
+
workspace: "workspace";
|
|
126
|
+
}>>;
|
|
127
|
+
sourceSessionId: z.ZodOptional<z.ZodString>;
|
|
128
|
+
versionId: z.ZodOptional<z.ZodString>;
|
|
129
|
+
file: z.ZodOptional<z.ZodObject<{
|
|
130
|
+
available: z.ZodLiteral<true>;
|
|
131
|
+
artifactId: z.ZodString;
|
|
132
|
+
kind: z.ZodEnum<{
|
|
133
|
+
assistant_completion: "assistant_completion";
|
|
134
|
+
browser_screenshot: "browser_screenshot";
|
|
135
|
+
computer_screenshot: "computer_screenshot";
|
|
136
|
+
event_media: "event_media";
|
|
137
|
+
file: "file";
|
|
138
|
+
generated_image: "generated_image";
|
|
139
|
+
generated_video: "generated_video";
|
|
140
|
+
internal_update: "internal_update";
|
|
141
|
+
tool_result: "tool_result";
|
|
142
|
+
}>;
|
|
143
|
+
contentType: z.ZodString;
|
|
144
|
+
originalBytes: z.ZodNumber;
|
|
145
|
+
sha256: z.ZodString;
|
|
146
|
+
retainedAt: z.ZodString;
|
|
147
|
+
dimensions: z.ZodOptional<z.ZodObject<{
|
|
148
|
+
width: z.ZodNumber;
|
|
149
|
+
height: z.ZodNumber;
|
|
150
|
+
}, z.core.$strict>>;
|
|
151
|
+
retention: z.ZodUnion<readonly [z.ZodObject<{
|
|
152
|
+
policy: z.ZodLiteral<"workspace_file">;
|
|
153
|
+
expiresAt: z.ZodNull;
|
|
154
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
155
|
+
policy: z.ZodLiteral<"session_screenshot">;
|
|
156
|
+
expiresAt: z.ZodString;
|
|
157
|
+
}, z.core.$strict>]>;
|
|
158
|
+
retrieval: z.ZodObject<{
|
|
159
|
+
method: z.ZodLiteral<"GET">;
|
|
160
|
+
path: z.ZodString;
|
|
161
|
+
acceptRanges: z.ZodLiteral<"bytes">;
|
|
162
|
+
maxRangeBytes: z.ZodNumber;
|
|
163
|
+
}, z.core.$strict>;
|
|
164
|
+
}, z.core.$strict>>;
|
|
165
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
166
|
+
contentType: z.ZodOptional<z.ZodString>;
|
|
167
|
+
sizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
168
|
+
}, z.core.$strict>>;
|
|
169
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
170
|
+
}, z.core.$strict>;
|
|
171
|
+
export type ArtifactCatalogListResponse = z.infer<typeof ArtifactCatalogListResponse>;
|
|
172
|
+
export declare const UpdateArtifactPinRequest: z.ZodObject<{
|
|
173
|
+
pinned: z.ZodBoolean;
|
|
174
|
+
}, z.core.$strict>;
|
|
175
|
+
export type UpdateArtifactPinRequest = z.infer<typeof UpdateArtifactPinRequest>;
|
|
176
|
+
export declare const ArtifactPinResponse: z.ZodObject<{
|
|
177
|
+
kind: z.ZodEnum<{
|
|
178
|
+
document: "document";
|
|
179
|
+
file: "file";
|
|
180
|
+
image: "image";
|
|
181
|
+
presentation: "presentation";
|
|
182
|
+
site: "site";
|
|
183
|
+
spreadsheet: "spreadsheet";
|
|
184
|
+
}>;
|
|
185
|
+
artifactId: z.ZodString;
|
|
186
|
+
pinned: z.ZodBoolean;
|
|
187
|
+
}, z.core.$strict>;
|
|
188
|
+
export type ArtifactPinResponse = z.infer<typeof ArtifactPinResponse>;
|