@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,221 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const TURN_SERVING_POLICY_METADATA_KEY: "turnServingPolicyV1";
|
|
3
|
+
export declare const TURN_PENDING_SERVING_POLICY_METADATA_KEY: "turnPendingServingPolicyV1";
|
|
4
|
+
/** One immutable serving receipt, not a replacement for the accepted policy.
|
|
5
|
+
* The lazy reference keeps the contracts barrel free of initialization cycles.
|
|
6
|
+
* Connection ids are references only; no credential material belongs here.
|
|
7
|
+
*/
|
|
8
|
+
export declare const TurnServingPolicyV1: z.ZodObject<{
|
|
9
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
10
|
+
policy: z.ZodLazy<z.ZodObject<{
|
|
11
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
12
|
+
productModelId: z.ZodString;
|
|
13
|
+
requestedModelId: z.ZodNullable<z.ZodString>;
|
|
14
|
+
modelSource: z.ZodEnum<{
|
|
15
|
+
continuation: "continuation";
|
|
16
|
+
deployment: "deployment";
|
|
17
|
+
explicit: "explicit";
|
|
18
|
+
session: "session";
|
|
19
|
+
}>;
|
|
20
|
+
reasoningEffort: z.ZodEnum<{
|
|
21
|
+
high: "high";
|
|
22
|
+
low: "low";
|
|
23
|
+
max: "max";
|
|
24
|
+
medium: "medium";
|
|
25
|
+
minimal: "minimal";
|
|
26
|
+
none: "none";
|
|
27
|
+
xhigh: "xhigh";
|
|
28
|
+
}>;
|
|
29
|
+
reasoningSource: z.ZodEnum<{
|
|
30
|
+
continuation: "continuation";
|
|
31
|
+
deployment: "deployment";
|
|
32
|
+
explicit: "explicit";
|
|
33
|
+
session: "session";
|
|
34
|
+
}>;
|
|
35
|
+
latencyMode: z.ZodDefault<z.ZodEnum<{
|
|
36
|
+
fast: "fast";
|
|
37
|
+
priority: "priority";
|
|
38
|
+
standard: "standard";
|
|
39
|
+
}>>;
|
|
40
|
+
latencyModeSource: z.ZodDefault<z.ZodEnum<{
|
|
41
|
+
continuation: "continuation";
|
|
42
|
+
deployment: "deployment";
|
|
43
|
+
explicit: "explicit";
|
|
44
|
+
session: "session";
|
|
45
|
+
}>>;
|
|
46
|
+
providerId: z.ZodString;
|
|
47
|
+
upstreamModelId: z.ZodString;
|
|
48
|
+
wireApi: z.ZodEnum<{
|
|
49
|
+
"anthropic-messages": "anthropic-messages";
|
|
50
|
+
chat: "chat";
|
|
51
|
+
responses: "responses";
|
|
52
|
+
}>;
|
|
53
|
+
credentialSource: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
54
|
+
kind: z.ZodLiteral<"deployment">;
|
|
55
|
+
mechanism: z.ZodEnum<{
|
|
56
|
+
api_key: "api_key";
|
|
57
|
+
azure_ad_bearer: "azure_ad_bearer";
|
|
58
|
+
}>;
|
|
59
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
60
|
+
kind: z.ZodLiteral<"connected_subscription">;
|
|
61
|
+
provider: z.ZodEnum<{
|
|
62
|
+
claude: "claude";
|
|
63
|
+
codex: "codex";
|
|
64
|
+
xai: "xai";
|
|
65
|
+
}>;
|
|
66
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
67
|
+
kind: z.ZodLiteral<"workspace_connection">;
|
|
68
|
+
mechanism: z.ZodLiteral<"api_key">;
|
|
69
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
70
|
+
kind: z.ZodLiteral<"organization_connection">;
|
|
71
|
+
mechanism: z.ZodLiteral<"api_key">;
|
|
72
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
73
|
+
kind: z.ZodLiteral<"deployment">;
|
|
74
|
+
mechanism: z.ZodLiteral<"none">;
|
|
75
|
+
}, z.core.$strict>]>;
|
|
76
|
+
billing: z.ZodObject<{
|
|
77
|
+
upstreamPayer: z.ZodEnum<{
|
|
78
|
+
connected_subscription: "connected_subscription";
|
|
79
|
+
deployment: "deployment";
|
|
80
|
+
organization: "organization";
|
|
81
|
+
workspace: "workspace";
|
|
82
|
+
}>;
|
|
83
|
+
metering: z.ZodEnum<{
|
|
84
|
+
external: "external";
|
|
85
|
+
opengeni_credits: "opengeni_credits";
|
|
86
|
+
}>;
|
|
87
|
+
}, z.core.$strict>;
|
|
88
|
+
definitionVersion: z.ZodString;
|
|
89
|
+
credentialRestriction: z.ZodOptional<z.ZodLiteral<"developer_setup">>;
|
|
90
|
+
}, z.core.$strict>>;
|
|
91
|
+
executionGeneration: z.ZodNumber;
|
|
92
|
+
connectionId: z.ZodString;
|
|
93
|
+
reason: z.ZodEnum<{
|
|
94
|
+
failover_cross_provider: "failover_cross_provider";
|
|
95
|
+
failover_same_provider: "failover_same_provider";
|
|
96
|
+
initial: "initial";
|
|
97
|
+
pinned: "pinned";
|
|
98
|
+
reselected_cold: "reselected_cold";
|
|
99
|
+
return_to_preferred: "return_to_preferred";
|
|
100
|
+
sticky: "sticky";
|
|
101
|
+
}>;
|
|
102
|
+
historyPosition: z.ZodNumber;
|
|
103
|
+
}, z.core.$strict>;
|
|
104
|
+
export type TurnServingPolicyV1 = z.infer<typeof TurnServingPolicyV1>;
|
|
105
|
+
/** A recovery proposal, NOT provenance. Its history boundary is assigned only
|
|
106
|
+
* when a newer claimed generation commits a serving revision. C2 will stage it
|
|
107
|
+
* atomically with recovery using the transaction-local database helper.
|
|
108
|
+
*/
|
|
109
|
+
export declare const TurnPendingServingPolicyV1: z.ZodObject<{
|
|
110
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
111
|
+
sourceExecutionGeneration: z.ZodNumber;
|
|
112
|
+
sourceAttemptId: z.ZodString;
|
|
113
|
+
policy: z.ZodLazy<z.ZodObject<{
|
|
114
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
115
|
+
productModelId: z.ZodString;
|
|
116
|
+
requestedModelId: z.ZodNullable<z.ZodString>;
|
|
117
|
+
modelSource: z.ZodEnum<{
|
|
118
|
+
continuation: "continuation";
|
|
119
|
+
deployment: "deployment";
|
|
120
|
+
explicit: "explicit";
|
|
121
|
+
session: "session";
|
|
122
|
+
}>;
|
|
123
|
+
reasoningEffort: z.ZodEnum<{
|
|
124
|
+
high: "high";
|
|
125
|
+
low: "low";
|
|
126
|
+
max: "max";
|
|
127
|
+
medium: "medium";
|
|
128
|
+
minimal: "minimal";
|
|
129
|
+
none: "none";
|
|
130
|
+
xhigh: "xhigh";
|
|
131
|
+
}>;
|
|
132
|
+
reasoningSource: z.ZodEnum<{
|
|
133
|
+
continuation: "continuation";
|
|
134
|
+
deployment: "deployment";
|
|
135
|
+
explicit: "explicit";
|
|
136
|
+
session: "session";
|
|
137
|
+
}>;
|
|
138
|
+
latencyMode: z.ZodDefault<z.ZodEnum<{
|
|
139
|
+
fast: "fast";
|
|
140
|
+
priority: "priority";
|
|
141
|
+
standard: "standard";
|
|
142
|
+
}>>;
|
|
143
|
+
latencyModeSource: z.ZodDefault<z.ZodEnum<{
|
|
144
|
+
continuation: "continuation";
|
|
145
|
+
deployment: "deployment";
|
|
146
|
+
explicit: "explicit";
|
|
147
|
+
session: "session";
|
|
148
|
+
}>>;
|
|
149
|
+
providerId: z.ZodString;
|
|
150
|
+
upstreamModelId: z.ZodString;
|
|
151
|
+
wireApi: z.ZodEnum<{
|
|
152
|
+
"anthropic-messages": "anthropic-messages";
|
|
153
|
+
chat: "chat";
|
|
154
|
+
responses: "responses";
|
|
155
|
+
}>;
|
|
156
|
+
credentialSource: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodObject<{
|
|
157
|
+
kind: z.ZodLiteral<"deployment">;
|
|
158
|
+
mechanism: z.ZodEnum<{
|
|
159
|
+
api_key: "api_key";
|
|
160
|
+
azure_ad_bearer: "azure_ad_bearer";
|
|
161
|
+
}>;
|
|
162
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
163
|
+
kind: z.ZodLiteral<"connected_subscription">;
|
|
164
|
+
provider: z.ZodEnum<{
|
|
165
|
+
claude: "claude";
|
|
166
|
+
codex: "codex";
|
|
167
|
+
xai: "xai";
|
|
168
|
+
}>;
|
|
169
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
170
|
+
kind: z.ZodLiteral<"workspace_connection">;
|
|
171
|
+
mechanism: z.ZodLiteral<"api_key">;
|
|
172
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
173
|
+
kind: z.ZodLiteral<"organization_connection">;
|
|
174
|
+
mechanism: z.ZodLiteral<"api_key">;
|
|
175
|
+
}, z.core.$strict>]>, z.ZodObject<{
|
|
176
|
+
kind: z.ZodLiteral<"deployment">;
|
|
177
|
+
mechanism: z.ZodLiteral<"none">;
|
|
178
|
+
}, z.core.$strict>]>;
|
|
179
|
+
billing: z.ZodObject<{
|
|
180
|
+
upstreamPayer: z.ZodEnum<{
|
|
181
|
+
connected_subscription: "connected_subscription";
|
|
182
|
+
deployment: "deployment";
|
|
183
|
+
organization: "organization";
|
|
184
|
+
workspace: "workspace";
|
|
185
|
+
}>;
|
|
186
|
+
metering: z.ZodEnum<{
|
|
187
|
+
external: "external";
|
|
188
|
+
opengeni_credits: "opengeni_credits";
|
|
189
|
+
}>;
|
|
190
|
+
}, z.core.$strict>;
|
|
191
|
+
definitionVersion: z.ZodString;
|
|
192
|
+
credentialRestriction: z.ZodOptional<z.ZodLiteral<"developer_setup">>;
|
|
193
|
+
}, z.core.$strict>>;
|
|
194
|
+
connectionId: z.ZodString;
|
|
195
|
+
reason: z.ZodEnum<{
|
|
196
|
+
failover_cross_provider: "failover_cross_provider";
|
|
197
|
+
failover_same_provider: "failover_same_provider";
|
|
198
|
+
initial: "initial";
|
|
199
|
+
pinned: "pinned";
|
|
200
|
+
reselected_cold: "reselected_cold";
|
|
201
|
+
return_to_preferred: "return_to_preferred";
|
|
202
|
+
sticky: "sticky";
|
|
203
|
+
}>;
|
|
204
|
+
}, z.core.$strict>;
|
|
205
|
+
export type TurnPendingServingPolicyV1 = z.infer<typeof TurnPendingServingPolicyV1>;
|
|
206
|
+
export declare function readTurnPendingServingPolicyV1(metadata: unknown): TurnPendingServingPolicyV1 | null;
|
|
207
|
+
export type TurnServingPolicyReadV1 = {
|
|
208
|
+
kind: "absent";
|
|
209
|
+
} | {
|
|
210
|
+
kind: "valid";
|
|
211
|
+
revisions: TurnServingPolicyV1[];
|
|
212
|
+
};
|
|
213
|
+
/** Only absence is legacy. Malformed present metadata fails closed, without
|
|
214
|
+
* reflecting untrusted values (which might contain credentials) into errors.
|
|
215
|
+
*/
|
|
216
|
+
export declare function readTurnServingPolicyV1(metadata: unknown): TurnServingPolicyReadV1;
|
|
217
|
+
/** D-39: the first receipt establishes the baseline. Reclaims, account-only
|
|
218
|
+
* rotations and reasoning changes do not spend the model/provider bound.
|
|
219
|
+
* Combine this with the all-provider refusal count at the recovery boundary.
|
|
220
|
+
*/
|
|
221
|
+
export declare function countTurnServingPolicyChangesV1(revisions: readonly TurnServingPolicyV1[]): number;
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
/** Credit amounts are integer USD micros (1 USD = 1,000,000), never floating-point dollars. */
|
|
3
|
+
export declare const AllowanceCredits: z.ZodNumber;
|
|
4
|
+
/**
|
|
5
|
+
* A share scales with the current workspace pool, including unexpired grants.
|
|
6
|
+
* Shares may exceed 1 and their sum may exceed 1: they are ceilings, not reserved
|
|
7
|
+
* allocations. Concurrent/in-flight calls can overshoot a ceiling; enforcement
|
|
8
|
+
* happens before the next call, after actual usage is settled.
|
|
9
|
+
* null removes the override and uses the workspace's memberDefault.
|
|
10
|
+
*/
|
|
11
|
+
export declare const MemberAllowanceRule: z.ZodUnion<readonly [z.ZodObject<{
|
|
12
|
+
share: z.ZodNumber;
|
|
13
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
14
|
+
credits: z.ZodNumber;
|
|
15
|
+
}, z.core.$strict>, z.ZodNull]>;
|
|
16
|
+
export type MemberAllowanceRule = z.infer<typeof MemberAllowanceRule>;
|
|
17
|
+
export declare const MemberAllowanceDefault: z.ZodUnion<readonly [z.ZodEnum<{
|
|
18
|
+
equal_share: "equal_share";
|
|
19
|
+
none: "none";
|
|
20
|
+
}>, z.ZodObject<{
|
|
21
|
+
share: z.ZodNumber;
|
|
22
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
23
|
+
credits: z.ZodNumber;
|
|
24
|
+
}, z.core.$strict>]>;
|
|
25
|
+
export type MemberAllowanceDefault = z.infer<typeof MemberAllowanceDefault>;
|
|
26
|
+
/**
|
|
27
|
+
* How model calls that spend no Opengeni credits count: subscription
|
|
28
|
+
* connections, workspace-owned keys and deployments without credit billing.
|
|
29
|
+
* "ignore" (the default) keeps the allowance credit-only. "list_price" counts
|
|
30
|
+
* each such call at its configured list-price estimate in USD micros and
|
|
31
|
+
* admits those turns against the allowance; calls without a list price are
|
|
32
|
+
* not counted.
|
|
33
|
+
*/
|
|
34
|
+
export declare const UnbilledUsageMetering: z.ZodEnum<{
|
|
35
|
+
ignore: "ignore";
|
|
36
|
+
list_price: "list_price";
|
|
37
|
+
}>;
|
|
38
|
+
export type UnbilledUsageMetering = z.infer<typeof UnbilledUsageMetering>;
|
|
39
|
+
/** Omitted threshold lists default to [0.8, 1]. Monthly boundaries are UTC. */
|
|
40
|
+
export declare const WorkspaceAllowanceConfig: z.ZodObject<{
|
|
41
|
+
includedCredits: z.ZodNumber;
|
|
42
|
+
period: z.ZodEnum<{
|
|
43
|
+
monthly: "monthly";
|
|
44
|
+
none: "none";
|
|
45
|
+
}>;
|
|
46
|
+
anchorDay: z.ZodOptional<z.ZodNumber>;
|
|
47
|
+
memberDefault: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
48
|
+
equal_share: "equal_share";
|
|
49
|
+
none: "none";
|
|
50
|
+
}>, z.ZodObject<{
|
|
51
|
+
share: z.ZodNumber;
|
|
52
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
53
|
+
credits: z.ZodNumber;
|
|
54
|
+
}, z.core.$strict>]>>;
|
|
55
|
+
thresholds: z.ZodOptional<z.ZodObject<{
|
|
56
|
+
workspace: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
57
|
+
member: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
58
|
+
}, z.core.$strict>>;
|
|
59
|
+
unbilledUsage: z.ZodOptional<z.ZodEnum<{
|
|
60
|
+
ignore: "ignore";
|
|
61
|
+
list_price: "list_price";
|
|
62
|
+
}>>;
|
|
63
|
+
}, z.core.$strict>;
|
|
64
|
+
export type WorkspaceAllowanceConfig = z.infer<typeof WorkspaceAllowanceConfig>;
|
|
65
|
+
export declare const WorkspaceAllowance: z.ZodObject<{
|
|
66
|
+
includedCredits: z.ZodNumber;
|
|
67
|
+
period: z.ZodEnum<{
|
|
68
|
+
monthly: "monthly";
|
|
69
|
+
none: "none";
|
|
70
|
+
}>;
|
|
71
|
+
anchorDay: z.ZodOptional<z.ZodNumber>;
|
|
72
|
+
memberDefault: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
73
|
+
equal_share: "equal_share";
|
|
74
|
+
none: "none";
|
|
75
|
+
}>, z.ZodObject<{
|
|
76
|
+
share: z.ZodNumber;
|
|
77
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
78
|
+
credits: z.ZodNumber;
|
|
79
|
+
}, z.core.$strict>]>>;
|
|
80
|
+
thresholds: z.ZodOptional<z.ZodObject<{
|
|
81
|
+
workspace: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
82
|
+
member: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
83
|
+
}, z.core.$strict>>;
|
|
84
|
+
unbilledUsage: z.ZodOptional<z.ZodEnum<{
|
|
85
|
+
ignore: "ignore";
|
|
86
|
+
list_price: "list_price";
|
|
87
|
+
}>>;
|
|
88
|
+
version: z.ZodNumber;
|
|
89
|
+
}, z.core.$strict>;
|
|
90
|
+
export type WorkspaceAllowance = z.infer<typeof WorkspaceAllowance>;
|
|
91
|
+
/**
|
|
92
|
+
* Lifecycle version survives clear. version=0 means never configured; a null
|
|
93
|
+
* config with a positive version is cleared. Use this version for recreation.
|
|
94
|
+
* The existing nullable configuration read remains unchanged.
|
|
95
|
+
*/
|
|
96
|
+
export declare const WorkspaceAllowanceState: z.ZodObject<{
|
|
97
|
+
version: z.ZodNumber;
|
|
98
|
+
config: z.ZodNullable<z.ZodObject<{
|
|
99
|
+
includedCredits: z.ZodNumber;
|
|
100
|
+
period: z.ZodEnum<{
|
|
101
|
+
monthly: "monthly";
|
|
102
|
+
none: "none";
|
|
103
|
+
}>;
|
|
104
|
+
anchorDay: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
memberDefault: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
106
|
+
equal_share: "equal_share";
|
|
107
|
+
none: "none";
|
|
108
|
+
}>, z.ZodObject<{
|
|
109
|
+
share: z.ZodNumber;
|
|
110
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
111
|
+
credits: z.ZodNumber;
|
|
112
|
+
}, z.core.$strict>]>>;
|
|
113
|
+
thresholds: z.ZodOptional<z.ZodObject<{
|
|
114
|
+
workspace: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
115
|
+
member: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
116
|
+
}, z.core.$strict>>;
|
|
117
|
+
unbilledUsage: z.ZodOptional<z.ZodEnum<{
|
|
118
|
+
ignore: "ignore";
|
|
119
|
+
list_price: "list_price";
|
|
120
|
+
}>>;
|
|
121
|
+
version: z.ZodNumber;
|
|
122
|
+
}, z.core.$strict>>;
|
|
123
|
+
}, z.core.$strict>;
|
|
124
|
+
export type WorkspaceAllowanceState = z.infer<typeof WorkspaceAllowanceState>;
|
|
125
|
+
export declare const SetWorkspaceAllowanceRequest: z.ZodObject<{
|
|
126
|
+
includedCredits: z.ZodNumber;
|
|
127
|
+
period: z.ZodEnum<{
|
|
128
|
+
monthly: "monthly";
|
|
129
|
+
none: "none";
|
|
130
|
+
}>;
|
|
131
|
+
anchorDay: z.ZodOptional<z.ZodNumber>;
|
|
132
|
+
memberDefault: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
133
|
+
equal_share: "equal_share";
|
|
134
|
+
none: "none";
|
|
135
|
+
}>, z.ZodObject<{
|
|
136
|
+
share: z.ZodNumber;
|
|
137
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
138
|
+
credits: z.ZodNumber;
|
|
139
|
+
}, z.core.$strict>]>>;
|
|
140
|
+
thresholds: z.ZodOptional<z.ZodObject<{
|
|
141
|
+
workspace: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
142
|
+
member: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
143
|
+
}, z.core.$strict>>;
|
|
144
|
+
unbilledUsage: z.ZodOptional<z.ZodEnum<{
|
|
145
|
+
ignore: "ignore";
|
|
146
|
+
list_price: "list_price";
|
|
147
|
+
}>>;
|
|
148
|
+
expectedVersion: z.ZodNumber;
|
|
149
|
+
}, z.core.$strict>;
|
|
150
|
+
export type SetWorkspaceAllowanceRequest = z.infer<typeof SetWorkspaceAllowanceRequest>;
|
|
151
|
+
/** Reuse operationId and the exact expectedVersion to recover a lost clear
|
|
152
|
+
* receipt. A later lifecycle change conflicts; read the state before deciding
|
|
153
|
+
* on a new mutation, never guess a version or change it for a retry. */
|
|
154
|
+
export declare const ClearWorkspaceAllowanceRequest: z.ZodObject<{
|
|
155
|
+
expectedVersion: z.ZodNumber;
|
|
156
|
+
operationId: z.ZodOptional<z.ZodString>;
|
|
157
|
+
}, z.core.$strict>;
|
|
158
|
+
export type ClearWorkspaceAllowanceRequest = z.infer<typeof ClearWorkspaceAllowanceRequest>;
|
|
159
|
+
export declare const ClearWorkspaceAllowanceResponse: z.ZodObject<{
|
|
160
|
+
version: z.ZodNumber;
|
|
161
|
+
}, z.core.$strict>;
|
|
162
|
+
export type ClearWorkspaceAllowanceResponse = z.infer<typeof ClearWorkspaceAllowanceResponse>;
|
|
163
|
+
/** Reuse the operationId and exact request to recover an uncertain grant response. */
|
|
164
|
+
export declare const GrantWorkspaceCreditsRequest: z.ZodObject<{
|
|
165
|
+
operationId: z.ZodString;
|
|
166
|
+
credits: z.ZodNumber;
|
|
167
|
+
expiresAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
168
|
+
}, z.core.$strict>;
|
|
169
|
+
export type GrantWorkspaceCreditsRequest = z.infer<typeof GrantWorkspaceCreditsRequest>;
|
|
170
|
+
export declare const WorkspaceCreditGrant: z.ZodObject<{
|
|
171
|
+
operationId: z.ZodString;
|
|
172
|
+
credits: z.ZodNumber;
|
|
173
|
+
remaining: z.ZodNumber;
|
|
174
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
175
|
+
}, z.core.$strict>;
|
|
176
|
+
export type WorkspaceCreditGrant = z.infer<typeof WorkspaceCreditGrant>;
|
|
177
|
+
export declare const SetMemberAllowanceRequest: z.ZodObject<{
|
|
178
|
+
rule: z.ZodUnion<readonly [z.ZodObject<{
|
|
179
|
+
share: z.ZodNumber;
|
|
180
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
181
|
+
credits: z.ZodNumber;
|
|
182
|
+
}, z.core.$strict>, z.ZodNull]>;
|
|
183
|
+
expectedVersion: z.ZodNumber;
|
|
184
|
+
}, z.core.$strict>;
|
|
185
|
+
export type SetMemberAllowanceRequest = z.infer<typeof SetMemberAllowanceRequest>;
|
|
186
|
+
export declare const MemberAllowance: z.ZodObject<{
|
|
187
|
+
subjectId: z.ZodString;
|
|
188
|
+
rule: z.ZodUnion<readonly [z.ZodObject<{
|
|
189
|
+
share: z.ZodNumber;
|
|
190
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
191
|
+
credits: z.ZodNumber;
|
|
192
|
+
}, z.core.$strict>, z.ZodNull]>;
|
|
193
|
+
version: z.ZodNumber;
|
|
194
|
+
}, z.core.$strict>;
|
|
195
|
+
export type MemberAllowance = z.infer<typeof MemberAllowance>;
|
|
196
|
+
export declare const UsageAllowancePeriod: z.ZodUnion<readonly [z.ZodLiteral<"current">, z.ZodString]>;
|
|
197
|
+
export type UsageAllowancePeriod = z.infer<typeof UsageAllowancePeriod>;
|
|
198
|
+
export declare const GetUsageRequest: z.ZodObject<{
|
|
199
|
+
period: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"current">, z.ZodString]>>;
|
|
200
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
201
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
202
|
+
}, z.core.$strict>;
|
|
203
|
+
export type GetUsageRequest = z.infer<typeof GetUsageRequest>;
|
|
204
|
+
export declare const GetMyUsageRequest: z.ZodObject<{
|
|
205
|
+
period: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"current">, z.ZodString]>>;
|
|
206
|
+
}, z.core.$strict>;
|
|
207
|
+
export type GetMyUsageRequest = z.infer<typeof GetMyUsageRequest>;
|
|
208
|
+
export declare const UsageAllowanceStatus: z.ZodEnum<{
|
|
209
|
+
exhausted: "exhausted";
|
|
210
|
+
ok: "ok";
|
|
211
|
+
warning: "warning";
|
|
212
|
+
}>;
|
|
213
|
+
export type UsageAllowanceStatus = z.infer<typeof UsageAllowanceStatus>;
|
|
214
|
+
export declare const UsageAllowanceWindow: z.ZodObject<{
|
|
215
|
+
start: z.ZodNullable<z.ZodString>;
|
|
216
|
+
end: z.ZodNullable<z.ZodString>;
|
|
217
|
+
}, z.core.$strict>;
|
|
218
|
+
export type UsageAllowanceWindow = z.infer<typeof UsageAllowanceWindow>;
|
|
219
|
+
export declare const WorkspaceAllowanceUsage: z.ZodObject<{
|
|
220
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
221
|
+
used: z.ZodNumber;
|
|
222
|
+
remaining: z.ZodNullable<z.ZodNumber>;
|
|
223
|
+
fraction: z.ZodNullable<z.ZodNumber>;
|
|
224
|
+
status: z.ZodEnum<{
|
|
225
|
+
exhausted: "exhausted";
|
|
226
|
+
ok: "ok";
|
|
227
|
+
warning: "warning";
|
|
228
|
+
}>;
|
|
229
|
+
resetsAt: z.ZodNullable<z.ZodString>;
|
|
230
|
+
includedCredits: z.ZodNumber;
|
|
231
|
+
grantsRemaining: z.ZodNumber;
|
|
232
|
+
}, z.core.$strict>;
|
|
233
|
+
export type WorkspaceAllowanceUsage = z.infer<typeof WorkspaceAllowanceUsage>;
|
|
234
|
+
export declare const MemberAllowanceUsage: z.ZodObject<{
|
|
235
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
236
|
+
used: z.ZodNumber;
|
|
237
|
+
remaining: z.ZodNullable<z.ZodNumber>;
|
|
238
|
+
fraction: z.ZodNullable<z.ZodNumber>;
|
|
239
|
+
status: z.ZodEnum<{
|
|
240
|
+
exhausted: "exhausted";
|
|
241
|
+
ok: "ok";
|
|
242
|
+
warning: "warning";
|
|
243
|
+
}>;
|
|
244
|
+
resetsAt: z.ZodNullable<z.ZodString>;
|
|
245
|
+
subjectId: z.ZodString;
|
|
246
|
+
externalIdentity: z.ZodNullable<z.ZodObject<{
|
|
247
|
+
source: z.ZodString;
|
|
248
|
+
externalId: z.ZodString;
|
|
249
|
+
}, z.core.$strict>>;
|
|
250
|
+
rule: z.ZodUnion<readonly [z.ZodObject<{
|
|
251
|
+
share: z.ZodNumber;
|
|
252
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
253
|
+
credits: z.ZodNumber;
|
|
254
|
+
}, z.core.$strict>, z.ZodNull]>;
|
|
255
|
+
version: z.ZodNumber;
|
|
256
|
+
}, z.core.$strict>;
|
|
257
|
+
export type MemberAllowanceUsage = z.infer<typeof MemberAllowanceUsage>;
|
|
258
|
+
/** /usage/me returns only the authenticated subject's member row, never the roster. */
|
|
259
|
+
export declare const WorkspaceUsageResponse: z.ZodObject<{
|
|
260
|
+
period: z.ZodObject<{
|
|
261
|
+
start: z.ZodNullable<z.ZodString>;
|
|
262
|
+
end: z.ZodNullable<z.ZodString>;
|
|
263
|
+
}, z.core.$strict>;
|
|
264
|
+
workspace: z.ZodObject<{
|
|
265
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
266
|
+
used: z.ZodNumber;
|
|
267
|
+
remaining: z.ZodNullable<z.ZodNumber>;
|
|
268
|
+
fraction: z.ZodNullable<z.ZodNumber>;
|
|
269
|
+
status: z.ZodEnum<{
|
|
270
|
+
exhausted: "exhausted";
|
|
271
|
+
ok: "ok";
|
|
272
|
+
warning: "warning";
|
|
273
|
+
}>;
|
|
274
|
+
resetsAt: z.ZodNullable<z.ZodString>;
|
|
275
|
+
includedCredits: z.ZodNumber;
|
|
276
|
+
grantsRemaining: z.ZodNumber;
|
|
277
|
+
}, z.core.$strict>;
|
|
278
|
+
members: z.ZodArray<z.ZodObject<{
|
|
279
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
280
|
+
used: z.ZodNumber;
|
|
281
|
+
remaining: z.ZodNullable<z.ZodNumber>;
|
|
282
|
+
fraction: z.ZodNullable<z.ZodNumber>;
|
|
283
|
+
status: z.ZodEnum<{
|
|
284
|
+
exhausted: "exhausted";
|
|
285
|
+
ok: "ok";
|
|
286
|
+
warning: "warning";
|
|
287
|
+
}>;
|
|
288
|
+
resetsAt: z.ZodNullable<z.ZodString>;
|
|
289
|
+
subjectId: z.ZodString;
|
|
290
|
+
externalIdentity: z.ZodNullable<z.ZodObject<{
|
|
291
|
+
source: z.ZodString;
|
|
292
|
+
externalId: z.ZodString;
|
|
293
|
+
}, z.core.$strict>>;
|
|
294
|
+
rule: z.ZodUnion<readonly [z.ZodObject<{
|
|
295
|
+
share: z.ZodNumber;
|
|
296
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
297
|
+
credits: z.ZodNumber;
|
|
298
|
+
}, z.core.$strict>, z.ZodNull]>;
|
|
299
|
+
version: z.ZodNumber;
|
|
300
|
+
}, z.core.$strict>>;
|
|
301
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
302
|
+
}, z.core.$strict>;
|
|
303
|
+
export type WorkspaceUsageResponse = z.infer<typeof WorkspaceUsageResponse>;
|
|
304
|
+
export declare const AllowanceExhaustedRefusal: z.ZodObject<{
|
|
305
|
+
code: z.ZodLiteral<"allowance_exhausted">;
|
|
306
|
+
scope: z.ZodEnum<{
|
|
307
|
+
member: "member";
|
|
308
|
+
workspace: "workspace";
|
|
309
|
+
}>;
|
|
310
|
+
resetsAt: z.ZodNullable<z.ZodString>;
|
|
311
|
+
subjectId: z.ZodOptional<z.ZodString>;
|
|
312
|
+
message: z.ZodString;
|
|
313
|
+
}, z.core.$strict>;
|
|
314
|
+
export type AllowanceExhaustedRefusal = z.infer<typeof AllowanceExhaustedRefusal>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AllowanceCredits,
|
|
3
|
+
AllowanceExhaustedRefusal,
|
|
4
|
+
ClearWorkspaceAllowanceRequest,
|
|
5
|
+
ClearWorkspaceAllowanceResponse,
|
|
6
|
+
GetMyUsageRequest,
|
|
7
|
+
GetUsageRequest,
|
|
8
|
+
GrantWorkspaceCreditsRequest,
|
|
9
|
+
MemberAllowance,
|
|
10
|
+
MemberAllowanceDefault,
|
|
11
|
+
MemberAllowanceRule,
|
|
12
|
+
MemberAllowanceUsage,
|
|
13
|
+
SetMemberAllowanceRequest,
|
|
14
|
+
SetWorkspaceAllowanceRequest,
|
|
15
|
+
UnbilledUsageMetering,
|
|
16
|
+
UsageAllowancePeriod,
|
|
17
|
+
UsageAllowanceStatus,
|
|
18
|
+
UsageAllowanceWindow,
|
|
19
|
+
WorkspaceAllowance,
|
|
20
|
+
WorkspaceAllowanceConfig,
|
|
21
|
+
WorkspaceAllowanceState,
|
|
22
|
+
WorkspaceAllowanceUsage,
|
|
23
|
+
WorkspaceCreditGrant,
|
|
24
|
+
WorkspaceUsageResponse
|
|
25
|
+
} from "./chunk-TSWWZMUS.js";
|
|
26
|
+
import "./chunk-56SNIMDO.js";
|
|
27
|
+
export {
|
|
28
|
+
AllowanceCredits,
|
|
29
|
+
AllowanceExhaustedRefusal,
|
|
30
|
+
ClearWorkspaceAllowanceRequest,
|
|
31
|
+
ClearWorkspaceAllowanceResponse,
|
|
32
|
+
GetMyUsageRequest,
|
|
33
|
+
GetUsageRequest,
|
|
34
|
+
GrantWorkspaceCreditsRequest,
|
|
35
|
+
MemberAllowance,
|
|
36
|
+
MemberAllowanceDefault,
|
|
37
|
+
MemberAllowanceRule,
|
|
38
|
+
MemberAllowanceUsage,
|
|
39
|
+
SetMemberAllowanceRequest,
|
|
40
|
+
SetWorkspaceAllowanceRequest,
|
|
41
|
+
UnbilledUsageMetering,
|
|
42
|
+
UsageAllowancePeriod,
|
|
43
|
+
UsageAllowanceStatus,
|
|
44
|
+
UsageAllowanceWindow,
|
|
45
|
+
WorkspaceAllowance,
|
|
46
|
+
WorkspaceAllowanceConfig,
|
|
47
|
+
WorkspaceAllowanceState,
|
|
48
|
+
WorkspaceAllowanceUsage,
|
|
49
|
+
WorkspaceCreditGrant,
|
|
50
|
+
WorkspaceUsageResponse
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=usage-allowances.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|