opencode-quota-gui 1.1.0 → 1.3.0
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/README.md +96 -34
- package/dist/bin/opencode-quota-gui.js +0 -0
- package/dist/contracts/analytics-entity.d.ts +6 -1
- package/dist/contracts/analytics-entity.js +27 -10
- package/dist/contracts/analytics-temporal.d.ts +39 -0
- package/dist/contracts/analytics-temporal.js +11 -0
- package/dist/contracts/build-identity.js +1 -1
- package/dist/contracts/card-visibility.d.ts +21 -0
- package/dist/contracts/card-visibility.js +19 -0
- package/dist/contracts/dashboard.d.ts +40 -0
- package/dist/contracts/dashboard.js +2 -0
- package/dist/contracts/dto-guards.d.ts +24 -0
- package/dist/contracts/dto-guards.js +592 -0
- package/dist/contracts/provider-failure.d.ts +18 -0
- package/dist/contracts/provider-failure.js +25 -0
- package/dist/contracts/temporal.d.ts +126 -0
- package/dist/contracts/temporal.js +10 -0
- package/dist/data/modelsdev-temporal.min.json +3075 -0
- package/dist/gui/aggregation.js +3 -0
- package/dist/gui/analytics-engine.js +30 -0
- package/dist/gui/analytics-model.js +181 -1
- package/dist/gui/analytics-pricing-revision.d.ts +43 -0
- package/dist/gui/analytics-pricing-revision.js +160 -0
- package/dist/gui/analytics-state.d.ts +7 -2
- package/dist/gui/analytics-state.js +14 -2
- package/dist/gui/config.d.ts +20 -3
- package/dist/gui/config.js +60 -3
- package/dist/gui/dashboard-errors.d.ts +32 -0
- package/dist/gui/dashboard-errors.js +97 -0
- package/dist/gui/lifecycle.d.ts +44 -11
- package/dist/gui/lifecycle.js +214 -36
- package/dist/gui/primary-quota-windows.d.ts +28 -0
- package/dist/gui/primary-quota-windows.js +147 -0
- package/dist/gui/provider-cards.d.ts +1 -1
- package/dist/gui/provider-cards.js +40 -16
- package/dist/gui/quota-notification-detector.d.ts +151 -0
- package/dist/gui/quota-notification-detector.js +284 -0
- package/dist/gui/quota-notification-observer.d.ts +55 -0
- package/dist/gui/quota-notification-observer.js +363 -0
- package/dist/gui/rpc.d.ts +59 -0
- package/dist/gui/rpc.js +302 -0
- package/dist/gui/server.d.ts +15 -27
- package/dist/gui/server.js +23 -121
- package/dist/gui/snapshot-service.d.ts +31 -4
- package/dist/gui/snapshot-service.js +177 -54
- package/dist/gui/sources.d.ts +1 -1
- package/dist/gui/sources.js +28 -0
- package/dist/gui/temporal-quota-policy-data.d.ts +24 -0
- package/dist/gui/temporal-quota-policy-data.js +43 -0
- package/dist/gui/temporal-quota-policy.d.ts +38 -0
- package/dist/gui/temporal-quota-policy.js +182 -0
- package/dist/gui/temporal-status.d.ts +53 -0
- package/dist/gui/temporal-status.js +815 -0
- package/dist/gui-experimental.cjs +1756 -0
- package/dist/lib/anthropic.d.ts +5 -0
- package/dist/lib/anthropic.js +18 -1
- package/dist/lib/chutes.js +19 -2
- package/dist/lib/config.d.ts +5 -1
- package/dist/lib/config.js +81 -0
- package/dist/lib/copilot.js +42 -14
- package/dist/lib/dashboard-web-policy.d.ts +35 -0
- package/dist/lib/dashboard-web-policy.js +24 -0
- package/dist/lib/deepseek.js +12 -1
- package/dist/lib/display-sanitize.js +2 -0
- package/dist/lib/entries.d.ts +3 -0
- package/dist/lib/format-utils.d.ts +1 -1
- package/dist/lib/format-utils.js +2 -2
- package/dist/lib/glm-coding-plan.js +14 -4
- package/dist/lib/google-agy.js +59 -14
- package/dist/lib/google-gemini-cli.js +58 -14
- package/dist/lib/init-installer.js +25 -4
- package/dist/lib/kilo.js +29 -40
- package/dist/lib/kimi.js +13 -1
- package/dist/lib/mimo.d.ts +2 -0
- package/dist/lib/mimo.js +9 -1
- package/dist/lib/modelsdev-temporal.d.ts +143 -0
- package/dist/lib/modelsdev-temporal.js +896 -0
- package/dist/lib/nanogpt.d.ts +2 -0
- package/dist/lib/nanogpt.js +24 -3
- package/dist/lib/ollama-cloud.js +9 -0
- package/dist/lib/openai.js +6 -2
- package/dist/lib/opencode-auth.d.ts +3 -2
- package/dist/lib/opencode-auth.js +8 -1
- package/dist/lib/opencode-go.js +24 -3
- package/dist/lib/opencode-version.d.ts +21 -0
- package/dist/lib/opencode-version.js +53 -5
- package/dist/lib/opencode-zen.d.ts +9 -1
- package/dist/lib/opencode-zen.js +27 -7
- package/dist/lib/quota-providers-remote.d.ts +2 -0
- package/dist/lib/quota-providers-remote.js +78 -19
- package/dist/lib/quota-reset-notifications.d.ts +17 -0
- package/dist/lib/quota-reset-notifications.js +11 -2
- package/dist/lib/quota-state-codec.js +3 -1
- package/dist/lib/quota-stats.d.ts +22 -1
- package/dist/lib/quota-stats.js +111 -15
- package/dist/lib/synthetic.js +8 -0
- package/dist/lib/types.d.ts +24 -0
- package/dist/lib/types.js +4 -0
- package/dist/lib/xai.js +16 -2
- package/dist/plugin.d.ts +4 -3
- package/dist/plugin.js +33 -4
- package/dist/providers/alibaba-coding-plan.js +3 -1
- package/dist/providers/alibaba-token-plan.js +17 -0
- package/dist/providers/anthropic.js +12 -3
- package/dist/providers/copilot.js +10 -2
- package/dist/providers/glm-coding-plan-provider.d.ts +2 -0
- package/dist/providers/glm-coding-plan-provider.js +5 -1
- package/dist/providers/google-account-format.js +1 -0
- package/dist/providers/google-agy.js +12 -2
- package/dist/providers/google-gemini-cli.js +12 -2
- package/dist/providers/kilo.js +9 -1
- package/dist/providers/kimi-code.js +11 -6
- package/dist/providers/mimo.js +8 -2
- package/dist/providers/minimax-coding-plan.js +28 -5
- package/dist/providers/nanogpt.js +3 -0
- package/dist/providers/ollama-cloud.js +3 -0
- package/dist/providers/openai.js +1 -0
- package/dist/providers/opencode-go.js +8 -1
- package/dist/providers/opencode-zen.js +30 -3
- package/dist/providers/openrouter.js +3 -0
- package/dist/providers/quota-providers.js +30 -4
- package/dist/providers/result-helpers.d.ts +4 -0
- package/dist/providers/result-helpers.js +16 -2
- package/dist/rpc.d.ts +327 -4
- package/dist/rpc.js +315 -2
- package/dist/ui/assets/index-DLHeXYff.js +9 -0
- package/dist/ui/assets/{index-BZwMJ6Ax.css → index-cDd9jUVY.css} +1 -1
- package/dist/ui/assets/popover-BGkgv9s0.js +1 -0
- package/dist/ui/assets/popover-mkHTmNjv.css +1 -0
- package/dist/ui/index.html +2 -2
- package/package.json +49 -39
- package/dist/bin/opencode-quota-gui.d.ts.map +0 -1
- package/dist/bin/opencode-quota-gui.js.map +0 -1
- package/dist/contracts/analytics-entity.d.ts.map +0 -1
- package/dist/contracts/analytics-entity.js.map +0 -1
- package/dist/contracts/build-identity.d.ts.map +0 -1
- package/dist/contracts/card-order.d.ts.map +0 -1
- package/dist/contracts/card-order.js.map +0 -1
- package/dist/contracts/collision-safe-key.d.ts.map +0 -1
- package/dist/contracts/collision-safe-key.js.map +0 -1
- package/dist/contracts/dashboard.d.ts.map +0 -1
- package/dist/contracts/dashboard.js.map +0 -1
- package/dist/contracts/guards.d.ts.map +0 -1
- package/dist/contracts/guards.js.map +0 -1
- package/dist/contracts/identity.d.ts.map +0 -1
- package/dist/contracts/identity.js.map +0 -1
- package/dist/contracts/openai-quota.d.ts.map +0 -1
- package/dist/contracts/openai-quota.js.map +0 -1
- package/dist/contracts/ranges.d.ts.map +0 -1
- package/dist/contracts/ranges.js.map +0 -1
- package/dist/contracts/settings.d.ts.map +0 -1
- package/dist/contracts/settings.js.map +0 -1
- package/dist/contracts/time-zone.d.ts.map +0 -1
- package/dist/contracts/time-zone.js.map +0 -1
- package/dist/gui/aggregation.d.ts.map +0 -1
- package/dist/gui/aggregation.js.map +0 -1
- package/dist/gui/analytics-bridge.d.ts.map +0 -1
- package/dist/gui/analytics-bridge.js.map +0 -1
- package/dist/gui/analytics-engine.d.ts.map +0 -1
- package/dist/gui/analytics-engine.js.map +0 -1
- package/dist/gui/analytics-indexes.d.ts.map +0 -1
- package/dist/gui/analytics-indexes.js.map +0 -1
- package/dist/gui/analytics-model.d.ts.map +0 -1
- package/dist/gui/analytics-model.js.map +0 -1
- package/dist/gui/analytics-protocol.d.ts.map +0 -1
- package/dist/gui/analytics-protocol.js.map +0 -1
- package/dist/gui/analytics-reader.d.ts.map +0 -1
- package/dist/gui/analytics-reader.js.map +0 -1
- package/dist/gui/analytics-service.d.ts.map +0 -1
- package/dist/gui/analytics-service.js.map +0 -1
- package/dist/gui/analytics-state.d.ts.map +0 -1
- package/dist/gui/analytics-state.js.map +0 -1
- package/dist/gui/analytics-worker-runtime.d.ts.map +0 -1
- package/dist/gui/analytics-worker-runtime.js.map +0 -1
- package/dist/gui/analytics-worker.d.ts.map +0 -1
- package/dist/gui/analytics-worker.js.map +0 -1
- package/dist/gui/config.d.ts.map +0 -1
- package/dist/gui/config.js.map +0 -1
- package/dist/gui/identity.d.ts.map +0 -1
- package/dist/gui/identity.js.map +0 -1
- package/dist/gui/lifecycle.d.ts.map +0 -1
- package/dist/gui/lifecycle.js.map +0 -1
- package/dist/gui/log.d.ts.map +0 -1
- package/dist/gui/log.js.map +0 -1
- package/dist/gui/provider-cards.d.ts.map +0 -1
- package/dist/gui/provider-cards.js.map +0 -1
- package/dist/gui/server.d.ts.map +0 -1
- package/dist/gui/server.js.map +0 -1
- package/dist/gui/settings-file-opener.d.ts.map +0 -1
- package/dist/gui/settings-file-opener.js.map +0 -1
- package/dist/gui/snapshot-service.d.ts.map +0 -1
- package/dist/gui/snapshot-service.js.map +0 -1
- package/dist/gui/sources.d.ts.map +0 -1
- package/dist/gui/sources.js.map +0 -1
- package/dist/gui/sse.d.ts.map +0 -1
- package/dist/gui/sse.js.map +0 -1
- package/dist/gui/time-zone.d.ts.map +0 -1
- package/dist/gui/time-zone.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/lib/accounting-format.d.ts.map +0 -1
- package/dist/lib/accounting-format.js.map +0 -1
- package/dist/lib/alibaba-auth.d.ts.map +0 -1
- package/dist/lib/alibaba-auth.js.map +0 -1
- package/dist/lib/alibaba-coding-plan-local-quota.d.ts.map +0 -1
- package/dist/lib/alibaba-coding-plan-local-quota.js.map +0 -1
- package/dist/lib/alibaba-token-plan.d.ts.map +0 -1
- package/dist/lib/alibaba-token-plan.js.map +0 -1
- package/dist/lib/anthropic-auth.d.ts.map +0 -1
- package/dist/lib/anthropic-auth.js.map +0 -1
- package/dist/lib/anthropic.d.ts.map +0 -1
- package/dist/lib/anthropic.js.map +0 -1
- package/dist/lib/api-key-resolver.d.ts.map +0 -1
- package/dist/lib/api-key-resolver.js.map +0 -1
- package/dist/lib/atomic-json.d.ts.map +0 -1
- package/dist/lib/atomic-json.js.map +0 -1
- package/dist/lib/chutes-config.d.ts.map +0 -1
- package/dist/lib/chutes-config.js.map +0 -1
- package/dist/lib/chutes.d.ts.map +0 -1
- package/dist/lib/chutes.js.map +0 -1
- package/dist/lib/cli-reports.d.ts.map +0 -1
- package/dist/lib/cli-reports.js.map +0 -1
- package/dist/lib/cli-show.d.ts.map +0 -1
- package/dist/lib/cli-show.js.map +0 -1
- package/dist/lib/cli-status.d.ts.map +0 -1
- package/dist/lib/cli-status.js.map +0 -1
- package/dist/lib/command-parsing.d.ts.map +0 -1
- package/dist/lib/command-parsing.js.map +0 -1
- package/dist/lib/config-file-utils.d.ts.map +0 -1
- package/dist/lib/config-file-utils.js.map +0 -1
- package/dist/lib/config-write-target.d.ts.map +0 -1
- package/dist/lib/config-write-target.js.map +0 -1
- package/dist/lib/config.d.ts.map +0 -1
- package/dist/lib/config.js.map +0 -1
- package/dist/lib/copilot.d.ts.map +0 -1
- package/dist/lib/copilot.js.map +0 -1
- package/dist/lib/cursor-detection.d.ts.map +0 -1
- package/dist/lib/cursor-detection.js.map +0 -1
- package/dist/lib/cursor-pricing.d.ts.map +0 -1
- package/dist/lib/cursor-pricing.js.map +0 -1
- package/dist/lib/cursor-usage.d.ts.map +0 -1
- package/dist/lib/cursor-usage.js.map +0 -1
- package/dist/lib/dashboard-visibility.d.ts.map +0 -1
- package/dist/lib/dashboard-visibility.js.map +0 -1
- package/dist/lib/deepseek-auth.d.ts.map +0 -1
- package/dist/lib/deepseek-auth.js.map +0 -1
- package/dist/lib/deepseek.d.ts.map +0 -1
- package/dist/lib/deepseek.js.map +0 -1
- package/dist/lib/display-sanitize.d.ts.map +0 -1
- package/dist/lib/display-sanitize.js.map +0 -1
- package/dist/lib/entries.d.ts.map +0 -1
- package/dist/lib/entries.js.map +0 -1
- package/dist/lib/env-template.d.ts.map +0 -1
- package/dist/lib/env-template.js.map +0 -1
- package/dist/lib/format-utils.d.ts.map +0 -1
- package/dist/lib/format-utils.js.map +0 -1
- package/dist/lib/format.d.ts.map +0 -1
- package/dist/lib/format.js.map +0 -1
- package/dist/lib/glm-coding-plan.d.ts.map +0 -1
- package/dist/lib/glm-coding-plan.js.map +0 -1
- package/dist/lib/google-agy-companion.d.ts.map +0 -1
- package/dist/lib/google-agy-companion.js.map +0 -1
- package/dist/lib/google-agy.d.ts.map +0 -1
- package/dist/lib/google-agy.js.map +0 -1
- package/dist/lib/google-companion-credentials.d.ts.map +0 -1
- package/dist/lib/google-companion-credentials.js.map +0 -1
- package/dist/lib/google-gemini-cli-companion.d.ts.map +0 -1
- package/dist/lib/google-gemini-cli-companion.js.map +0 -1
- package/dist/lib/google-gemini-cli.d.ts.map +0 -1
- package/dist/lib/google-gemini-cli.js.map +0 -1
- package/dist/lib/google-token-cache.d.ts.map +0 -1
- package/dist/lib/google-token-cache.js.map +0 -1
- package/dist/lib/grouped-entry-normalization.d.ts.map +0 -1
- package/dist/lib/grouped-entry-normalization.js.map +0 -1
- package/dist/lib/grouped-header-format.d.ts.map +0 -1
- package/dist/lib/grouped-header-format.js.map +0 -1
- package/dist/lib/gui-config-target.d.ts.map +0 -1
- package/dist/lib/gui-config-target.js.map +0 -1
- package/dist/lib/home-dir-display.d.ts.map +0 -1
- package/dist/lib/home-dir-display.js.map +0 -1
- package/dist/lib/http.d.ts.map +0 -1
- package/dist/lib/http.js.map +0 -1
- package/dist/lib/init-installer.d.ts.map +0 -1
- package/dist/lib/init-installer.js.map +0 -1
- package/dist/lib/jsonc.d.ts.map +0 -1
- package/dist/lib/jsonc.js.map +0 -1
- package/dist/lib/kilo-config.d.ts.map +0 -1
- package/dist/lib/kilo-config.js.map +0 -1
- package/dist/lib/kilo.d.ts.map +0 -1
- package/dist/lib/kilo.js.map +0 -1
- package/dist/lib/kimi-auth.d.ts.map +0 -1
- package/dist/lib/kimi-auth.js.map +0 -1
- package/dist/lib/kimi-endpoints.d.ts.map +0 -1
- package/dist/lib/kimi-endpoints.js.map +0 -1
- package/dist/lib/kimi.d.ts.map +0 -1
- package/dist/lib/kimi.js.map +0 -1
- package/dist/lib/maintainer-announcements.d.ts.map +0 -1
- package/dist/lib/maintainer-announcements.js.map +0 -1
- package/dist/lib/map-with-concurrency.d.ts.map +0 -1
- package/dist/lib/map-with-concurrency.js.map +0 -1
- package/dist/lib/markdown-table.d.ts.map +0 -1
- package/dist/lib/markdown-table.js.map +0 -1
- package/dist/lib/mimo-config.d.ts.map +0 -1
- package/dist/lib/mimo-config.js.map +0 -1
- package/dist/lib/mimo.d.ts.map +0 -1
- package/dist/lib/mimo.js.map +0 -1
- package/dist/lib/minimax-auth.d.ts.map +0 -1
- package/dist/lib/minimax-auth.js.map +0 -1
- package/dist/lib/minimax-endpoints.d.ts.map +0 -1
- package/dist/lib/minimax-endpoints.js.map +0 -1
- package/dist/lib/modelsdev-pricing.d.ts.map +0 -1
- package/dist/lib/modelsdev-pricing.js.map +0 -1
- package/dist/lib/nanogpt-config.d.ts.map +0 -1
- package/dist/lib/nanogpt-config.js.map +0 -1
- package/dist/lib/nanogpt.d.ts.map +0 -1
- package/dist/lib/nanogpt.js.map +0 -1
- package/dist/lib/ollama-cloud-config.d.ts.map +0 -1
- package/dist/lib/ollama-cloud-config.js.map +0 -1
- package/dist/lib/ollama-cloud.d.ts.map +0 -1
- package/dist/lib/ollama-cloud.js.map +0 -1
- package/dist/lib/openai.d.ts.map +0 -1
- package/dist/lib/openai.js.map +0 -1
- package/dist/lib/opencode-auth-sqlite.d.ts.map +0 -1
- package/dist/lib/opencode-auth-sqlite.js.map +0 -1
- package/dist/lib/opencode-auth.d.ts.map +0 -1
- package/dist/lib/opencode-auth.js.map +0 -1
- package/dist/lib/opencode-config-editor.d.ts.map +0 -1
- package/dist/lib/opencode-config-editor.js.map +0 -1
- package/dist/lib/opencode-config-providers.d.ts.map +0 -1
- package/dist/lib/opencode-config-providers.js.map +0 -1
- package/dist/lib/opencode-config-read.d.ts.map +0 -1
- package/dist/lib/opencode-config-read.js.map +0 -1
- package/dist/lib/opencode-console-auth.d.ts.map +0 -1
- package/dist/lib/opencode-console-auth.js.map +0 -1
- package/dist/lib/opencode-db-path.d.ts.map +0 -1
- package/dist/lib/opencode-db-path.js.map +0 -1
- package/dist/lib/opencode-go-auth.d.ts.map +0 -1
- package/dist/lib/opencode-go-auth.js.map +0 -1
- package/dist/lib/opencode-go.d.ts.map +0 -1
- package/dist/lib/opencode-go.js.map +0 -1
- package/dist/lib/opencode-runtime-paths.d.ts.map +0 -1
- package/dist/lib/opencode-runtime-paths.js.map +0 -1
- package/dist/lib/opencode-sqlite.d.ts.map +0 -1
- package/dist/lib/opencode-sqlite.js.map +0 -1
- package/dist/lib/opencode-storage.d.ts.map +0 -1
- package/dist/lib/opencode-storage.js.map +0 -1
- package/dist/lib/opencode-version.d.ts.map +0 -1
- package/dist/lib/opencode-version.js.map +0 -1
- package/dist/lib/opencode-zen.d.ts.map +0 -1
- package/dist/lib/opencode-zen.js.map +0 -1
- package/dist/lib/openrouter.d.ts.map +0 -1
- package/dist/lib/openrouter.js.map +0 -1
- package/dist/lib/private-state-paths.d.ts.map +0 -1
- package/dist/lib/private-state-paths.js.map +0 -1
- package/dist/lib/provider-add-command.d.ts.map +0 -1
- package/dist/lib/provider-add-command.js.map +0 -1
- package/dist/lib/provider-add-json-v1-questionnaire.d.ts.map +0 -1
- package/dist/lib/provider-add-json-v1-questionnaire.js.map +0 -1
- package/dist/lib/provider-add.d.ts.map +0 -1
- package/dist/lib/provider-add.js.map +0 -1
- package/dist/lib/provider-availability.d.ts.map +0 -1
- package/dist/lib/provider-availability.js.map +0 -1
- package/dist/lib/provider-metadata.d.ts.map +0 -1
- package/dist/lib/provider-metadata.js.map +0 -1
- package/dist/lib/provider-model-matching.d.ts.map +0 -1
- package/dist/lib/provider-model-matching.js.map +0 -1
- package/dist/lib/provider-registration.d.ts.map +0 -1
- package/dist/lib/provider-registration.js.map +0 -1
- package/dist/lib/quota-accounting-projection.d.ts.map +0 -1
- package/dist/lib/quota-accounting-projection.js.map +0 -1
- package/dist/lib/quota-columns.d.ts.map +0 -1
- package/dist/lib/quota-columns.js.map +0 -1
- package/dist/lib/quota-command-format.d.ts.map +0 -1
- package/dist/lib/quota-command-format.js.map +0 -1
- package/dist/lib/quota-dialog-command-specs.d.ts.map +0 -1
- package/dist/lib/quota-dialog-command-specs.js.map +0 -1
- package/dist/lib/quota-dialog-commands.d.ts.map +0 -1
- package/dist/lib/quota-dialog-commands.js.map +0 -1
- package/dist/lib/quota-entry-display.d.ts.map +0 -1
- package/dist/lib/quota-entry-display.js.map +0 -1
- package/dist/lib/quota-exhaustion-projection.d.ts.map +0 -1
- package/dist/lib/quota-exhaustion-projection.js.map +0 -1
- package/dist/lib/quota-export-types.d.ts.map +0 -1
- package/dist/lib/quota-export-types.js.map +0 -1
- package/dist/lib/quota-export.d.ts.map +0 -1
- package/dist/lib/quota-export.js.map +0 -1
- package/dist/lib/quota-format-style.d.ts.map +0 -1
- package/dist/lib/quota-format-style.js.map +0 -1
- package/dist/lib/quota-providers-local.d.ts.map +0 -1
- package/dist/lib/quota-providers-local.js.map +0 -1
- package/dist/lib/quota-providers-remote.d.ts.map +0 -1
- package/dist/lib/quota-providers-remote.js.map +0 -1
- package/dist/lib/quota-providers.d.ts.map +0 -1
- package/dist/lib/quota-providers.js.map +0 -1
- package/dist/lib/quota-render-data.d.ts.map +0 -1
- package/dist/lib/quota-render-data.js.map +0 -1
- package/dist/lib/quota-report-message.d.ts.map +0 -1
- package/dist/lib/quota-report-message.js.map +0 -1
- package/dist/lib/quota-reset-notifications.d.ts.map +0 -1
- package/dist/lib/quota-reset-notifications.js.map +0 -1
- package/dist/lib/quota-retry-wait.d.ts.map +0 -1
- package/dist/lib/quota-retry-wait.js.map +0 -1
- package/dist/lib/quota-runtime-context.d.ts.map +0 -1
- package/dist/lib/quota-runtime-context.js.map +0 -1
- package/dist/lib/quota-state-codec.d.ts.map +0 -1
- package/dist/lib/quota-state-codec.js.map +0 -1
- package/dist/lib/quota-state.d.ts.map +0 -1
- package/dist/lib/quota-state.js.map +0 -1
- package/dist/lib/quota-stats-format.d.ts.map +0 -1
- package/dist/lib/quota-stats-format.js.map +0 -1
- package/dist/lib/quota-stats.d.ts.map +0 -1
- package/dist/lib/quota-stats.js.map +0 -1
- package/dist/lib/quota-status.d.ts.map +0 -1
- package/dist/lib/quota-status.js.map +0 -1
- package/dist/lib/quota-surface-data.d.ts.map +0 -1
- package/dist/lib/quota-surface-data.js.map +0 -1
- package/dist/lib/quota-telemetry.d.ts.map +0 -1
- package/dist/lib/quota-telemetry.js.map +0 -1
- package/dist/lib/report-document.d.ts.map +0 -1
- package/dist/lib/report-document.js.map +0 -1
- package/dist/lib/resolved-auth-identity.d.ts.map +0 -1
- package/dist/lib/resolved-auth-identity.js.map +0 -1
- package/dist/lib/runtime-provider-ids.d.ts.map +0 -1
- package/dist/lib/runtime-provider-ids.js.map +0 -1
- package/dist/lib/scoped-query-chunks.d.ts.map +0 -1
- package/dist/lib/scoped-query-chunks.js.map +0 -1
- package/dist/lib/scoped-update-migration.d.ts.map +0 -1
- package/dist/lib/scoped-update-migration.js.map +0 -1
- package/dist/lib/scoped-update.d.ts.map +0 -1
- package/dist/lib/scoped-update.js.map +0 -1
- package/dist/lib/session-tokens-format.d.ts.map +0 -1
- package/dist/lib/session-tokens-format.js.map +0 -1
- package/dist/lib/session-tokens.d.ts.map +0 -1
- package/dist/lib/session-tokens.js.map +0 -1
- package/dist/lib/synthetic-config.d.ts.map +0 -1
- package/dist/lib/synthetic-config.js.map +0 -1
- package/dist/lib/synthetic.d.ts.map +0 -1
- package/dist/lib/synthetic.js.map +0 -1
- package/dist/lib/toast-format-grouped.d.ts.map +0 -1
- package/dist/lib/toast-format-grouped.js.map +0 -1
- package/dist/lib/token-buckets.d.ts.map +0 -1
- package/dist/lib/token-buckets.js.map +0 -1
- package/dist/lib/token-cost.d.ts.map +0 -1
- package/dist/lib/token-cost.js.map +0 -1
- package/dist/lib/tui-compact-format.d.ts.map +0 -1
- package/dist/lib/tui-compact-format.js.map +0 -1
- package/dist/lib/tui-panel-state.d.ts.map +0 -1
- package/dist/lib/tui-panel-state.js.map +0 -1
- package/dist/lib/tui-prompt-bar-format.d.ts.map +0 -1
- package/dist/lib/tui-prompt-bar-format.js.map +0 -1
- package/dist/lib/tui-sidebar-format.d.ts.map +0 -1
- package/dist/lib/tui-sidebar-format.js.map +0 -1
- package/dist/lib/types.d.ts.map +0 -1
- package/dist/lib/types.js.map +0 -1
- package/dist/lib/usage-ownership.d.ts.map +0 -1
- package/dist/lib/usage-ownership.js.map +0 -1
- package/dist/lib/version.d.ts.map +0 -1
- package/dist/lib/version.js.map +0 -1
- package/dist/lib/xai.d.ts.map +0 -1
- package/dist/lib/xai.js.map +0 -1
- package/dist/lib/zai-auth.d.ts.map +0 -1
- package/dist/lib/zai-auth.js.map +0 -1
- package/dist/lib/zai.d.ts.map +0 -1
- package/dist/lib/zai.js.map +0 -1
- package/dist/lib/zhipu-auth.d.ts.map +0 -1
- package/dist/lib/zhipu-auth.js.map +0 -1
- package/dist/lib/zhipu.d.ts.map +0 -1
- package/dist/lib/zhipu.js.map +0 -1
- package/dist/plugin.d.ts.map +0 -1
- package/dist/plugin.js.map +0 -1
- package/dist/providers/accounting-decimal.d.ts.map +0 -1
- package/dist/providers/accounting-decimal.js.map +0 -1
- package/dist/providers/alibaba-coding-plan.d.ts.map +0 -1
- package/dist/providers/alibaba-coding-plan.js.map +0 -1
- package/dist/providers/alibaba-token-plan.d.ts.map +0 -1
- package/dist/providers/alibaba-token-plan.js.map +0 -1
- package/dist/providers/anthropic.d.ts.map +0 -1
- package/dist/providers/anthropic.js.map +0 -1
- package/dist/providers/cache-policies.d.ts.map +0 -1
- package/dist/providers/cache-policies.js.map +0 -1
- package/dist/providers/chutes.d.ts.map +0 -1
- package/dist/providers/chutes.js.map +0 -1
- package/dist/providers/copilot.d.ts.map +0 -1
- package/dist/providers/copilot.js.map +0 -1
- package/dist/providers/cursor.d.ts.map +0 -1
- package/dist/providers/cursor.js.map +0 -1
- package/dist/providers/deepseek.d.ts.map +0 -1
- package/dist/providers/deepseek.js.map +0 -1
- package/dist/providers/glm-coding-plan-provider.d.ts.map +0 -1
- package/dist/providers/glm-coding-plan-provider.js.map +0 -1
- package/dist/providers/google-account-format.d.ts.map +0 -1
- package/dist/providers/google-account-format.js.map +0 -1
- package/dist/providers/google-agy.d.ts.map +0 -1
- package/dist/providers/google-agy.js.map +0 -1
- package/dist/providers/google-gemini-cli.d.ts.map +0 -1
- package/dist/providers/google-gemini-cli.js.map +0 -1
- package/dist/providers/kilo.d.ts.map +0 -1
- package/dist/providers/kilo.js.map +0 -1
- package/dist/providers/kimi-code.d.ts.map +0 -1
- package/dist/providers/kimi-code.js.map +0 -1
- package/dist/providers/mimo.d.ts.map +0 -1
- package/dist/providers/mimo.js.map +0 -1
- package/dist/providers/minimax-coding-plan.d.ts.map +0 -1
- package/dist/providers/minimax-coding-plan.js.map +0 -1
- package/dist/providers/nanogpt.d.ts.map +0 -1
- package/dist/providers/nanogpt.js.map +0 -1
- package/dist/providers/ollama-cloud.d.ts.map +0 -1
- package/dist/providers/ollama-cloud.js.map +0 -1
- package/dist/providers/openai.d.ts.map +0 -1
- package/dist/providers/openai.js.map +0 -1
- package/dist/providers/opencode-go.d.ts.map +0 -1
- package/dist/providers/opencode-go.js.map +0 -1
- package/dist/providers/opencode-zen.d.ts.map +0 -1
- package/dist/providers/opencode-zen.js.map +0 -1
- package/dist/providers/openrouter.d.ts.map +0 -1
- package/dist/providers/openrouter.js.map +0 -1
- package/dist/providers/quota-providers.d.ts.map +0 -1
- package/dist/providers/quota-providers.js.map +0 -1
- package/dist/providers/registry.d.ts.map +0 -1
- package/dist/providers/registry.js.map +0 -1
- package/dist/providers/result-helpers.d.ts.map +0 -1
- package/dist/providers/result-helpers.js.map +0 -1
- package/dist/providers/synthetic.d.ts.map +0 -1
- package/dist/providers/synthetic.js.map +0 -1
- package/dist/providers/xai.d.ts.map +0 -1
- package/dist/providers/xai.js.map +0 -1
- package/dist/providers/zai.d.ts.map +0 -1
- package/dist/providers/zai.js.map +0 -1
- package/dist/providers/zhipu.d.ts.map +0 -1
- package/dist/providers/zhipu.js.map +0 -1
- package/dist/rpc.d.ts.map +0 -1
- package/dist/rpc.js.map +0 -1
- package/dist/ui/assets/index-CjNjqsse.js +0 -8
|
@@ -169,6 +169,7 @@ async function fetchOpenCodeGoConsoleAccounts(ctx, windows, consoleAccounts) {
|
|
|
169
169
|
label: account.label,
|
|
170
170
|
message: consoleSignInFailure(account),
|
|
171
171
|
sourceId: account.sourceId,
|
|
172
|
+
failureCategory: "credentials",
|
|
172
173
|
});
|
|
173
174
|
accounts.push(consoleAccountDescriptor(account));
|
|
174
175
|
continue;
|
|
@@ -190,6 +191,7 @@ async function fetchOpenCodeGoConsoleAccounts(ctx, windows, consoleAccounts) {
|
|
|
190
191
|
message: result.error,
|
|
191
192
|
retryable: result.retryable,
|
|
192
193
|
sourceId: account.sourceId,
|
|
194
|
+
failureCategory: result.failureCategory,
|
|
193
195
|
});
|
|
194
196
|
fetchErrorsBySourceId.set(account.sourceId, result.error);
|
|
195
197
|
accounts.push(consoleAccountDescriptor(account));
|
|
@@ -313,6 +315,7 @@ async function fetchOpenCodeGoLegacy(ctx, diagnostics, statusDetails) {
|
|
|
313
315
|
label: displayNamesByRowId.get(row.id) ?? OPENCODE_GO_PROVIDER_LABEL,
|
|
314
316
|
message: rowAuth.error,
|
|
315
317
|
sourceId: row.id,
|
|
318
|
+
failureCategory: "credentials",
|
|
316
319
|
});
|
|
317
320
|
}
|
|
318
321
|
return rowAuth.state === "configured" ? [{ row, auth: rowAuth }] : [];
|
|
@@ -348,6 +351,7 @@ async function fetchOpenCodeGoLegacy(ctx, diagnostics, statusDetails) {
|
|
|
348
351
|
message: result.error,
|
|
349
352
|
retryable: result.retryable,
|
|
350
353
|
sourceId: row.id,
|
|
354
|
+
failureCategory: result.failureCategory,
|
|
351
355
|
});
|
|
352
356
|
}
|
|
353
357
|
const attemptedSourceIds = new Set([
|
|
@@ -371,7 +375,9 @@ async function fetchOpenCodeGoLegacy(ctx, diagnostics, statusDetails) {
|
|
|
371
375
|
}
|
|
372
376
|
if (auth.state === "invalid") {
|
|
373
377
|
notSubscribedCredentialFingerprints.clear();
|
|
374
|
-
return withStatusDetails(attemptedErrorResult(OPENCODE_GO_PROVIDER_LABEL, auth.error
|
|
378
|
+
return withStatusDetails(attemptedErrorResult(OPENCODE_GO_PROVIDER_LABEL, auth.error, {
|
|
379
|
+
failureCategory: "credentials",
|
|
380
|
+
}), baseStatusDetails);
|
|
375
381
|
}
|
|
376
382
|
const credentialFingerprint = fingerprintCredential(auth.apiKey);
|
|
377
383
|
retainCurrentCredentialFingerprints(new Set([credentialFingerprint]));
|
|
@@ -394,6 +400,7 @@ async function fetchOpenCodeGoLegacy(ctx, diagnostics, statusDetails) {
|
|
|
394
400
|
}
|
|
395
401
|
return withStatusDetails(attemptedErrorResult(OPENCODE_GO_PROVIDER_LABEL, result.error, {
|
|
396
402
|
retryable: result.retryable,
|
|
403
|
+
failureCategory: result.failureCategory,
|
|
397
404
|
}), [...baseStatusDetails, { key: "live_fetch_error", value: result.error }]);
|
|
398
405
|
}
|
|
399
406
|
const liveDetails = OPENCODE_GO_WINDOW_ORDER.map((window) => {
|
|
@@ -193,6 +193,7 @@ async function fetchOpenCodeZenConsoleAccounts(ctx, consoleAccounts) {
|
|
|
193
193
|
label: account.label,
|
|
194
194
|
message: zenSignInFailure(account),
|
|
195
195
|
sourceId: account.sourceId,
|
|
196
|
+
failureCategory: "credentials",
|
|
196
197
|
});
|
|
197
198
|
accounts.push(zenAccountDescriptor(account));
|
|
198
199
|
continue;
|
|
@@ -204,6 +205,9 @@ async function fetchOpenCodeZenConsoleAccounts(ctx, consoleAccounts) {
|
|
|
204
205
|
label: account.label,
|
|
205
206
|
message: result.error,
|
|
206
207
|
sourceId: account.sourceId,
|
|
208
|
+
...(result.failureCategory !== undefined
|
|
209
|
+
? { failureCategory: result.failureCategory }
|
|
210
|
+
: {}),
|
|
207
211
|
});
|
|
208
212
|
statusDetails.push({
|
|
209
213
|
key: `live_fetch_error:${account.sourceId}`,
|
|
@@ -217,8 +221,29 @@ async function fetchOpenCodeZenConsoleAccounts(ctx, consoleAccounts) {
|
|
|
217
221
|
configuredMonthlyLimit,
|
|
218
222
|
});
|
|
219
223
|
entries.push(...built.entries);
|
|
220
|
-
|
|
221
|
-
|
|
224
|
+
if (result.optionalErrors) {
|
|
225
|
+
for (const optionalError of result.optionalErrors) {
|
|
226
|
+
errors.push({
|
|
227
|
+
label: account.label,
|
|
228
|
+
message: optionalError.message,
|
|
229
|
+
sourceId: account.sourceId,
|
|
230
|
+
...(optionalError.failureCategory !== undefined
|
|
231
|
+
? { failureCategory: optionalError.failureCategory }
|
|
232
|
+
: {}),
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
else {
|
|
237
|
+
// Legacy producers only returned display strings. Absence of structured
|
|
238
|
+
// provenance means unknown: fail closed instead of inferring provider_api
|
|
239
|
+
// from the message text.
|
|
240
|
+
for (const message of result.errors) {
|
|
241
|
+
errors.push({
|
|
242
|
+
label: account.label,
|
|
243
|
+
message,
|
|
244
|
+
sourceId: account.sourceId,
|
|
245
|
+
});
|
|
246
|
+
}
|
|
222
247
|
}
|
|
223
248
|
statusDetails.push({
|
|
224
249
|
key: `balance_usd:${account.sourceId}`,
|
|
@@ -284,7 +309,9 @@ export const opencodeZenProvider = {
|
|
|
284
309
|
if (!isExplicitlyEnabled(ctx)) {
|
|
285
310
|
return withStatusDetails(notAttemptedResult(), noneStatusDetails);
|
|
286
311
|
}
|
|
287
|
-
return withStatusDetails(attemptedErrorResult(OPENCODE_ZEN_GROUP, `No OpenCode Console sign-in found. ${LOGIN_HINT}
|
|
312
|
+
return withStatusDetails(attemptedErrorResult(OPENCODE_ZEN_GROUP, `No OpenCode Console sign-in found. ${LOGIN_HINT}`, {
|
|
313
|
+
failureCategory: "credentials",
|
|
314
|
+
}), noneStatusDetails);
|
|
288
315
|
},
|
|
289
316
|
};
|
|
290
317
|
//# sourceMappingURL=opencode-zen.js.map
|
|
@@ -69,12 +69,15 @@ export const openRouterProvider = {
|
|
|
69
69
|
errors.push({
|
|
70
70
|
label: account.label,
|
|
71
71
|
message: result.error,
|
|
72
|
+
failureCategory: result.failureCategory,
|
|
72
73
|
...(account.sourceId ? { sourceId: account.sourceId } : {}),
|
|
73
74
|
});
|
|
74
75
|
continue;
|
|
75
76
|
}
|
|
76
77
|
entries.push(...result.entries);
|
|
77
78
|
for (const message of result.rowErrors ?? []) {
|
|
79
|
+
// Row-level mapping warnings carry no source-assigned category; absence
|
|
80
|
+
// means unknown, so this stays unclassified rather than inferred.
|
|
78
81
|
errors.push({
|
|
79
82
|
label: account.label,
|
|
80
83
|
message,
|
|
@@ -67,7 +67,13 @@ async function executeRemote(definition, requestTimeoutMs) {
|
|
|
67
67
|
if (!auth.key) {
|
|
68
68
|
return {
|
|
69
69
|
entries: [],
|
|
70
|
-
errors: [
|
|
70
|
+
errors: [
|
|
71
|
+
{
|
|
72
|
+
label: definition.label,
|
|
73
|
+
message: "API key not configured",
|
|
74
|
+
failureCategory: "credentials",
|
|
75
|
+
},
|
|
76
|
+
],
|
|
71
77
|
diagnostic: {
|
|
72
78
|
...buildDiagnosticIdentity(definition),
|
|
73
79
|
attempted: false,
|
|
@@ -83,7 +89,15 @@ async function executeRemote(definition, requestTimeoutMs) {
|
|
|
83
89
|
if (!result.success) {
|
|
84
90
|
return {
|
|
85
91
|
entries: [],
|
|
86
|
-
errors: [
|
|
92
|
+
errors: [
|
|
93
|
+
{
|
|
94
|
+
label: definition.label,
|
|
95
|
+
message: result.error,
|
|
96
|
+
...(result.failureCategory !== undefined
|
|
97
|
+
? { failureCategory: result.failureCategory }
|
|
98
|
+
: {}),
|
|
99
|
+
},
|
|
100
|
+
],
|
|
87
101
|
diagnostic: {
|
|
88
102
|
...buildDiagnosticIdentity(definition),
|
|
89
103
|
attempted: true,
|
|
@@ -187,7 +201,13 @@ async function executeDefinition(definition, ctx) {
|
|
|
187
201
|
const state = await inspectLocalQuotaProviderState(definition);
|
|
188
202
|
return {
|
|
189
203
|
entries: [],
|
|
190
|
-
errors: [
|
|
204
|
+
errors: [
|
|
205
|
+
{
|
|
206
|
+
label: definition.label,
|
|
207
|
+
message: "Failed to update local accounting state",
|
|
208
|
+
failureCategory: "local",
|
|
209
|
+
},
|
|
210
|
+
],
|
|
191
211
|
diagnostic: {
|
|
192
212
|
...buildDiagnosticIdentity(definition),
|
|
193
213
|
attempted: true,
|
|
@@ -241,6 +261,7 @@ export const quotaProvidersProvider = {
|
|
|
241
261
|
{
|
|
242
262
|
label: "Quota providers",
|
|
243
263
|
message: "Failed to read exact runtime provider identities",
|
|
264
|
+
failureCategory: "local",
|
|
244
265
|
},
|
|
245
266
|
],
|
|
246
267
|
};
|
|
@@ -263,7 +284,12 @@ export const quotaProvidersProvider = {
|
|
|
263
284
|
catch {
|
|
264
285
|
return {
|
|
265
286
|
entries: [],
|
|
266
|
-
errors: [
|
|
287
|
+
errors: [
|
|
288
|
+
{
|
|
289
|
+
label: definition.label,
|
|
290
|
+
message: "Provider execution failed",
|
|
291
|
+
},
|
|
292
|
+
],
|
|
267
293
|
diagnostic: {
|
|
268
294
|
...buildDiagnosticIdentity(definition),
|
|
269
295
|
attempted: true,
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import type { ProviderFailureCategory } from "../contracts/provider-failure.js";
|
|
1
2
|
import type { AccountingMetadata, FixedWindowProjectionEvidence, QuotaProviderPresentation, QuotaProviderResult, QuotaProviderStatusDetail, QuotaToastEntry, QuotaToastError } from "../lib/entries.js";
|
|
2
3
|
export declare function notAttemptedResult(): QuotaProviderResult;
|
|
3
4
|
export declare function attemptedResult(entries: QuotaToastEntry[], errors?: QuotaToastError[], presentation?: QuotaProviderPresentation): QuotaProviderResult;
|
|
4
5
|
export declare function attemptedErrorResult(label: string, message: string, options?: {
|
|
5
6
|
retryable?: boolean;
|
|
7
|
+
failureCategory?: ProviderFailureCategory;
|
|
6
8
|
}): QuotaProviderResult;
|
|
7
9
|
export declare function statusDetailsFromRecord(values: Readonly<Record<string, string | undefined>>): QuotaProviderStatusDetail[];
|
|
8
10
|
export declare function configStatusDetails(diagnostics: {
|
|
@@ -38,8 +40,10 @@ export declare function mapNullableProviderResult<TResult extends {
|
|
|
38
40
|
success: false;
|
|
39
41
|
error: string;
|
|
40
42
|
retryable?: boolean;
|
|
43
|
+
failureCategory?: ProviderFailureCategory;
|
|
41
44
|
} | null>(result: TResult, params: {
|
|
42
45
|
errorLabel: string;
|
|
46
|
+
failureCategory?: ProviderFailureCategory;
|
|
43
47
|
onSuccess: (result: Extract<TResult, {
|
|
44
48
|
success: true;
|
|
45
49
|
}>) => QuotaProviderResult;
|
|
@@ -12,7 +12,16 @@ export function attemptedResult(entries, errors = [], presentation) {
|
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
export function attemptedErrorResult(label, message, options = {}) {
|
|
15
|
-
return attemptedResult([], [
|
|
15
|
+
return attemptedResult([], [
|
|
16
|
+
{
|
|
17
|
+
label,
|
|
18
|
+
message,
|
|
19
|
+
...(options.retryable === true ? { retryable: true } : {}),
|
|
20
|
+
...(options.failureCategory !== undefined
|
|
21
|
+
? { failureCategory: options.failureCategory }
|
|
22
|
+
: {}),
|
|
23
|
+
},
|
|
24
|
+
]);
|
|
16
25
|
}
|
|
17
26
|
export function statusDetailsFromRecord(values) {
|
|
18
27
|
return Object.entries(values).flatMap(([key, value]) => value === undefined ? [] : [{ key, value }]);
|
|
@@ -86,7 +95,12 @@ export function mapNullableProviderResult(result, params) {
|
|
|
86
95
|
return notAttemptedResult();
|
|
87
96
|
}
|
|
88
97
|
if (!result.success) {
|
|
89
|
-
return attemptedErrorResult(params.errorLabel, result.error, {
|
|
98
|
+
return attemptedErrorResult(params.errorLabel, result.error, {
|
|
99
|
+
...(result.retryable === true ? { retryable: true } : {}),
|
|
100
|
+
...((result.failureCategory ?? params.failureCategory) !== undefined
|
|
101
|
+
? { failureCategory: result.failureCategory ?? params.failureCategory }
|
|
102
|
+
: {}),
|
|
103
|
+
});
|
|
90
104
|
}
|
|
91
105
|
return params.onSuccess(result);
|
|
92
106
|
}
|
package/dist/rpc.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The plugin RPC
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* The plugin RPC definitions. `QuotaRpc` is the inherited TUI contract (still
|
|
3
|
+
* used by the retained TUI source, but no longer registered by the GUI-only
|
|
4
|
+
* server plugin). `DashboardRpc` is the Stage 3 typed dashboard contract the
|
|
5
|
+
* server plugin registers for native clients. Imports from `@opencode/*` stay
|
|
6
|
+
* type-only, so loading this file loads no OpenCode package.
|
|
5
7
|
*/
|
|
6
|
-
import type { Rpc } from "@opencode/plugin";
|
|
8
|
+
import type { Rpc } from "@opencode/plugin/rpc";
|
|
9
|
+
import { type AnalyticsGroupQuery, type DashboardEventTopic, type DashboardHealth, type JsonValue } from "./contracts/dashboard.js";
|
|
10
|
+
import { type RangeKey } from "./contracts/ranges.js";
|
|
7
11
|
import { type QuotaDialogCommandId, type QuotaDialogCommandOutputResult } from "./lib/quota-dialog-command-specs.js";
|
|
8
12
|
export declare const QUOTA_RPC_ID = "opencode-quota-gui";
|
|
9
13
|
export type QuotaRpcSurfaceInput = {
|
|
@@ -46,6 +50,23 @@ type QuotaRpcSchema<T> = StandardValueSchema & {
|
|
|
46
50
|
};
|
|
47
51
|
};
|
|
48
52
|
};
|
|
53
|
+
type ObjectEventSchema<T extends Record<string, unknown>> = {
|
|
54
|
+
"~standard": {
|
|
55
|
+
version: 1;
|
|
56
|
+
vendor: string;
|
|
57
|
+
validate: (value: unknown) => {
|
|
58
|
+
value: T;
|
|
59
|
+
} | {
|
|
60
|
+
issues: ReadonlyArray<{
|
|
61
|
+
message: string;
|
|
62
|
+
}>;
|
|
63
|
+
};
|
|
64
|
+
types?: {
|
|
65
|
+
input: T;
|
|
66
|
+
output: T;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
};
|
|
49
70
|
export declare const QuotaRpc: {
|
|
50
71
|
id: string;
|
|
51
72
|
events: {};
|
|
@@ -68,5 +89,307 @@ export declare const QuotaRpc: {
|
|
|
68
89
|
};
|
|
69
90
|
};
|
|
70
91
|
};
|
|
92
|
+
export declare const DASHBOARD_RPC_ID = "opencode-quota-gui.dashboard";
|
|
93
|
+
export type DashboardRpcViewScope = "quota" | "analytics";
|
|
94
|
+
export type DashboardRpcNoInput = Record<string, never>;
|
|
95
|
+
export type DashboardRpcSaveSettingsInput = {
|
|
96
|
+
patch: Record<string, JsonValue>;
|
|
97
|
+
expectedRevision: string;
|
|
98
|
+
};
|
|
99
|
+
export type DashboardRpcSaveVisibilityInput = {
|
|
100
|
+
hiddenCards: string[];
|
|
101
|
+
hiddenRows: string[];
|
|
102
|
+
expectedRevision: string;
|
|
103
|
+
};
|
|
104
|
+
export type DashboardRpcImportApplyInput = {
|
|
105
|
+
expectedRevision: string;
|
|
106
|
+
};
|
|
107
|
+
export type DashboardRpcWatchInput = {
|
|
108
|
+
scope: DashboardRpcViewScope;
|
|
109
|
+
};
|
|
110
|
+
export type DashboardRpcWatchOutput = {
|
|
111
|
+
active: boolean;
|
|
112
|
+
};
|
|
113
|
+
export type DashboardRpcOpenSettingsOutput = {
|
|
114
|
+
opened: true;
|
|
115
|
+
};
|
|
116
|
+
export type DashboardRpcEventData = {
|
|
117
|
+
topic: DashboardEventTopic;
|
|
118
|
+
at: number;
|
|
119
|
+
scope?: "visibility";
|
|
120
|
+
};
|
|
121
|
+
export type DashboardRpcQuotaNotificationKind = "low" | "exhausted" | "reset" | "provider-error";
|
|
122
|
+
/**
|
|
123
|
+
* Safe quota notification payload. The host writes the wording; no raw provider
|
|
124
|
+
* message, label, path or credential is ever carried.
|
|
125
|
+
*/
|
|
126
|
+
export type DashboardRpcQuotaNotificationData = {
|
|
127
|
+
id: string;
|
|
128
|
+
kind: DashboardRpcQuotaNotificationKind;
|
|
129
|
+
title: string;
|
|
130
|
+
description?: string;
|
|
131
|
+
};
|
|
132
|
+
export type DashboardRpcErrorDetails = {
|
|
133
|
+
key?: string;
|
|
134
|
+
reason?: string;
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* One explicit error vocabulary for every dashboard method. Any raw failure is
|
|
138
|
+
* mapped to one of these codes by the server handler; messages are fixed
|
|
139
|
+
* generics and details only carry an allowlisted setting key/reason.
|
|
140
|
+
*/
|
|
141
|
+
declare const DASHBOARD_RPC_ERRORS: {
|
|
142
|
+
readonly "bad-request": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
143
|
+
readonly "config-read-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
144
|
+
readonly "config-changed": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
145
|
+
readonly "config-target-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
146
|
+
readonly "config-write-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
147
|
+
readonly "unknown-setting": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
148
|
+
readonly "invalid-setting": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
149
|
+
readonly "project-not-found": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
150
|
+
readonly "session-not-found": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
151
|
+
readonly internal: QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
152
|
+
};
|
|
153
|
+
export type DashboardRpcErrorCode = keyof typeof DASHBOARD_RPC_ERRORS;
|
|
154
|
+
export type DashboardRpcMethod = (typeof DashboardRpc.methods)[keyof typeof DashboardRpc.methods];
|
|
155
|
+
/**
|
|
156
|
+
* The explicit typed dashboard RPC. Every method maps to one `DashboardDataSource`
|
|
157
|
+
* operation (plus the transport-lifecycle `watch` method); there is deliberately
|
|
158
|
+
* no generic dispatch/call method.
|
|
159
|
+
*/
|
|
160
|
+
export declare const DashboardRpc: {
|
|
161
|
+
id: string;
|
|
162
|
+
events: {
|
|
163
|
+
invalidated: {
|
|
164
|
+
schema: ObjectEventSchema<DashboardRpcEventData>;
|
|
165
|
+
};
|
|
166
|
+
quotaNotification: {
|
|
167
|
+
schema: ObjectEventSchema<DashboardRpcQuotaNotificationData>;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
methods: {
|
|
171
|
+
health: {
|
|
172
|
+
input: QuotaRpcSchema<DashboardRpcNoInput>;
|
|
173
|
+
output: QuotaRpcSchema<DashboardHealth>;
|
|
174
|
+
errors: {
|
|
175
|
+
readonly "bad-request": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
176
|
+
readonly "config-read-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
177
|
+
readonly "config-changed": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
178
|
+
readonly "config-target-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
179
|
+
readonly "config-write-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
180
|
+
readonly "unknown-setting": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
181
|
+
readonly "invalid-setting": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
182
|
+
readonly "project-not-found": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
183
|
+
readonly "session-not-found": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
184
|
+
readonly internal: QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
quota: {
|
|
188
|
+
input: QuotaRpcSchema<DashboardRpcNoInput>;
|
|
189
|
+
output: QuotaRpcSchema<import("./contracts/dashboard.js").QuotaSnapshot>;
|
|
190
|
+
errors: {
|
|
191
|
+
readonly "bad-request": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
192
|
+
readonly "config-read-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
193
|
+
readonly "config-changed": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
194
|
+
readonly "config-target-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
195
|
+
readonly "config-write-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
196
|
+
readonly "unknown-setting": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
197
|
+
readonly "invalid-setting": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
198
|
+
readonly "project-not-found": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
199
|
+
readonly "session-not-found": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
200
|
+
readonly internal: QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
home: {
|
|
204
|
+
input: QuotaRpcSchema<{
|
|
205
|
+
range: RangeKey;
|
|
206
|
+
}>;
|
|
207
|
+
output: QuotaRpcSchema<import("./contracts/dashboard.js").HomeSnapshot>;
|
|
208
|
+
errors: {
|
|
209
|
+
readonly "bad-request": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
210
|
+
readonly "config-read-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
211
|
+
readonly "config-changed": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
212
|
+
readonly "config-target-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
213
|
+
readonly "config-write-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
214
|
+
readonly "unknown-setting": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
215
|
+
readonly "invalid-setting": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
216
|
+
readonly "project-not-found": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
217
|
+
readonly "session-not-found": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
218
|
+
readonly internal: QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
groups: {
|
|
222
|
+
input: QuotaRpcSchema<AnalyticsGroupQuery>;
|
|
223
|
+
output: QuotaRpcSchema<import("./contracts/dashboard.js").AnalyticsGroupSnapshot>;
|
|
224
|
+
errors: {
|
|
225
|
+
readonly "bad-request": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
226
|
+
readonly "config-read-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
227
|
+
readonly "config-changed": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
228
|
+
readonly "config-target-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
229
|
+
readonly "config-write-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
230
|
+
readonly "unknown-setting": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
231
|
+
readonly "invalid-setting": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
232
|
+
readonly "project-not-found": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
233
|
+
readonly "session-not-found": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
234
|
+
readonly internal: QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
project: {
|
|
238
|
+
input: QuotaRpcSchema<{
|
|
239
|
+
projectId: string;
|
|
240
|
+
range: RangeKey;
|
|
241
|
+
}>;
|
|
242
|
+
output: QuotaRpcSchema<import("./contracts/dashboard.js").ProjectSnapshot>;
|
|
243
|
+
errors: {
|
|
244
|
+
readonly "bad-request": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
245
|
+
readonly "config-read-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
246
|
+
readonly "config-changed": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
247
|
+
readonly "config-target-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
248
|
+
readonly "config-write-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
249
|
+
readonly "unknown-setting": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
250
|
+
readonly "invalid-setting": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
251
|
+
readonly "project-not-found": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
252
|
+
readonly "session-not-found": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
253
|
+
readonly internal: QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
session: {
|
|
257
|
+
input: QuotaRpcSchema<{
|
|
258
|
+
sessionId: string;
|
|
259
|
+
}>;
|
|
260
|
+
output: QuotaRpcSchema<import("./contracts/dashboard.js").SessionSnapshot>;
|
|
261
|
+
errors: {
|
|
262
|
+
readonly "bad-request": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
263
|
+
readonly "config-read-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
264
|
+
readonly "config-changed": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
265
|
+
readonly "config-target-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
266
|
+
readonly "config-write-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
267
|
+
readonly "unknown-setting": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
268
|
+
readonly "invalid-setting": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
269
|
+
readonly "project-not-found": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
270
|
+
readonly "session-not-found": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
271
|
+
readonly internal: QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
settings: {
|
|
275
|
+
input: QuotaRpcSchema<DashboardRpcNoInput>;
|
|
276
|
+
output: QuotaRpcSchema<import("./contracts/dashboard.js").SettingsSnapshot>;
|
|
277
|
+
errors: {
|
|
278
|
+
readonly "bad-request": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
279
|
+
readonly "config-read-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
280
|
+
readonly "config-changed": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
281
|
+
readonly "config-target-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
282
|
+
readonly "config-write-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
283
|
+
readonly "unknown-setting": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
284
|
+
readonly "invalid-setting": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
285
|
+
readonly "project-not-found": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
286
|
+
readonly "session-not-found": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
287
|
+
readonly internal: QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
saveSettings: {
|
|
291
|
+
input: QuotaRpcSchema<DashboardRpcSaveSettingsInput>;
|
|
292
|
+
output: QuotaRpcSchema<import("./contracts/dashboard.js").SettingsWriteResult>;
|
|
293
|
+
errors: {
|
|
294
|
+
readonly "bad-request": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
295
|
+
readonly "config-read-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
296
|
+
readonly "config-changed": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
297
|
+
readonly "config-target-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
298
|
+
readonly "config-write-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
299
|
+
readonly "unknown-setting": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
300
|
+
readonly "invalid-setting": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
301
|
+
readonly "project-not-found": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
302
|
+
readonly "session-not-found": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
303
|
+
readonly internal: QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
saveVisibility: {
|
|
307
|
+
input: QuotaRpcSchema<DashboardRpcSaveVisibilityInput>;
|
|
308
|
+
output: QuotaRpcSchema<import("./contracts/dashboard.js").SettingsWriteResult>;
|
|
309
|
+
errors: {
|
|
310
|
+
readonly "bad-request": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
311
|
+
readonly "config-read-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
312
|
+
readonly "config-changed": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
313
|
+
readonly "config-target-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
314
|
+
readonly "config-write-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
315
|
+
readonly "unknown-setting": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
316
|
+
readonly "invalid-setting": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
317
|
+
readonly "project-not-found": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
318
|
+
readonly "session-not-found": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
319
|
+
readonly internal: QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
importPreview: {
|
|
323
|
+
input: QuotaRpcSchema<DashboardRpcNoInput>;
|
|
324
|
+
output: QuotaRpcSchema<import("./contracts/dashboard.js").ImportPreview>;
|
|
325
|
+
errors: {
|
|
326
|
+
readonly "bad-request": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
327
|
+
readonly "config-read-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
328
|
+
readonly "config-changed": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
329
|
+
readonly "config-target-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
330
|
+
readonly "config-write-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
331
|
+
readonly "unknown-setting": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
332
|
+
readonly "invalid-setting": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
333
|
+
readonly "project-not-found": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
334
|
+
readonly "session-not-found": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
335
|
+
readonly internal: QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
336
|
+
};
|
|
337
|
+
};
|
|
338
|
+
importApply: {
|
|
339
|
+
input: QuotaRpcSchema<DashboardRpcImportApplyInput>;
|
|
340
|
+
output: QuotaRpcSchema<import("./contracts/dashboard.js").SettingsWriteResult>;
|
|
341
|
+
errors: {
|
|
342
|
+
readonly "bad-request": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
343
|
+
readonly "config-read-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
344
|
+
readonly "config-changed": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
345
|
+
readonly "config-target-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
346
|
+
readonly "config-write-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
347
|
+
readonly "unknown-setting": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
348
|
+
readonly "invalid-setting": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
349
|
+
readonly "project-not-found": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
350
|
+
readonly "session-not-found": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
351
|
+
readonly internal: QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
openSettingsFile: {
|
|
355
|
+
input: QuotaRpcSchema<DashboardRpcNoInput>;
|
|
356
|
+
output: QuotaRpcSchema<DashboardRpcOpenSettingsOutput>;
|
|
357
|
+
errors: {
|
|
358
|
+
readonly "bad-request": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
359
|
+
readonly "config-read-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
360
|
+
readonly "config-changed": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
361
|
+
readonly "config-target-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
362
|
+
readonly "config-write-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
363
|
+
readonly "unknown-setting": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
364
|
+
readonly "invalid-setting": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
365
|
+
readonly "project-not-found": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
366
|
+
readonly "session-not-found": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
367
|
+
readonly internal: QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
368
|
+
};
|
|
369
|
+
};
|
|
370
|
+
watch: {
|
|
371
|
+
input: QuotaRpcSchema<DashboardRpcWatchInput>;
|
|
372
|
+
output: QuotaRpcSchema<DashboardRpcWatchOutput>;
|
|
373
|
+
errors: {
|
|
374
|
+
readonly "bad-request": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
375
|
+
readonly "config-read-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
376
|
+
readonly "config-changed": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
377
|
+
readonly "config-target-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
378
|
+
readonly "config-write-error": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
379
|
+
readonly "unknown-setting": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
380
|
+
readonly "invalid-setting": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
381
|
+
readonly "project-not-found": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
382
|
+
readonly "session-not-found": QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
383
|
+
readonly internal: QuotaRpcSchema<DashboardRpcErrorDetails>;
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
export declare const DASHBOARD_HEALTH: DashboardHealth;
|
|
389
|
+
/**
|
|
390
|
+
* Runtime guard for the event seam. It mirrors the RPC schema so a malformed or
|
|
391
|
+
* unsafe payload is dropped before it can reach a window's presenter.
|
|
392
|
+
*/
|
|
393
|
+
export declare function isDashboardRpcQuotaNotificationData(value: unknown): value is DashboardRpcQuotaNotificationData;
|
|
71
394
|
export {};
|
|
72
395
|
//# sourceMappingURL=rpc.d.ts.map
|