@eddyskywalker/dsh-chatgpt-subscription 0.35.0 → 0.36.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.
Files changed (69) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +6 -6
  3. package/lib/client.js +1991 -167
  4. package/lib/client.js.map +1 -1
  5. package/lib/index.js +113 -10
  6. package/lib/types/client/antigravity/AntigravitySection.d.ts.map +1 -1
  7. package/lib/types/client/claude/ClaudeSection.d.ts.map +1 -1
  8. package/lib/types/client/claude/useClaudeSection.d.ts.map +1 -1
  9. package/lib/types/client/cline-pass/ClinePassSection.d.ts.map +1 -1
  10. package/lib/types/client/command-code/CommandCodeSection.d.ts.map +1 -1
  11. package/lib/types/client/common/line-locale.d.ts +21 -0
  12. package/lib/types/client/common/line-locale.d.ts.map +1 -0
  13. package/lib/types/client/glm-coding-plan/GlmCodingPlanSection.d.ts.map +1 -1
  14. package/lib/types/client/glm-coding-plan/locales.d.ts +2 -2
  15. package/lib/types/client/index.d.ts.map +1 -1
  16. package/lib/types/client/kimi-code/KimiCodeSection.d.ts.map +1 -1
  17. package/lib/types/client/kimi-code/KimiModelCapabilities.d.ts.map +1 -1
  18. package/lib/types/client/kimi-code/locales.d.ts +2 -2
  19. package/lib/types/client/locales-ru/account-pool.d.ts +11 -0
  20. package/lib/types/client/locales-ru/account-pool.d.ts.map +1 -0
  21. package/lib/types/client/locales-ru/antigravity.d.ts +10 -0
  22. package/lib/types/client/locales-ru/antigravity.d.ts.map +1 -0
  23. package/lib/types/client/locales-ru/claude.d.ts +3 -0
  24. package/lib/types/client/locales-ru/claude.d.ts.map +1 -0
  25. package/lib/types/client/locales-ru/cline-pass.d.ts +11 -0
  26. package/lib/types/client/locales-ru/cline-pass.d.ts.map +1 -0
  27. package/lib/types/client/locales-ru/command-code.d.ts +9 -0
  28. package/lib/types/client/locales-ru/command-code.d.ts.map +1 -0
  29. package/lib/types/client/locales-ru/glm-coding-plan.d.ts +10 -0
  30. package/lib/types/client/locales-ru/glm-coding-plan.d.ts.map +1 -0
  31. package/lib/types/client/locales-ru/hub.d.ts +3 -0
  32. package/lib/types/client/locales-ru/hub.d.ts.map +1 -0
  33. package/lib/types/client/locales-ru/index.d.ts +27 -0
  34. package/lib/types/client/locales-ru/index.d.ts.map +1 -0
  35. package/lib/types/client/locales-ru/kimi-code.d.ts +10 -0
  36. package/lib/types/client/locales-ru/kimi-code.d.ts.map +1 -0
  37. package/lib/types/client/locales-ru/minimax-code.d.ts +9 -0
  38. package/lib/types/client/locales-ru/minimax-code.d.ts.map +1 -0
  39. package/lib/types/client/locales-ru/ollama.d.ts +10 -0
  40. package/lib/types/client/locales-ru/ollama.d.ts.map +1 -0
  41. package/lib/types/client/locales-ru/opendesign.d.ts +10 -0
  42. package/lib/types/client/locales-ru/opendesign.d.ts.map +1 -0
  43. package/lib/types/client/locales-ru/progress-updates.d.ts +8 -0
  44. package/lib/types/client/locales-ru/progress-updates.d.ts.map +1 -0
  45. package/lib/types/client/locales-ru/qoder.d.ts +11 -0
  46. package/lib/types/client/locales-ru/qoder.d.ts.map +1 -0
  47. package/lib/types/client/locales-ru/step-code.d.ts +9 -0
  48. package/lib/types/client/locales-ru/step-code.d.ts.map +1 -0
  49. package/lib/types/client/minimax-code/locales.d.ts +2 -2
  50. package/lib/types/client/ollama/OllamaSection.d.ts.map +1 -1
  51. package/lib/types/client/opendesign/OpenDesignSection.d.ts +4 -3
  52. package/lib/types/client/opendesign/OpenDesignSection.d.ts.map +1 -1
  53. package/lib/types/client/opendesign/locales.d.ts +108 -42
  54. package/lib/types/client/opendesign/locales.d.ts.map +1 -1
  55. package/lib/types/client/opendesign/styles.d.ts.map +1 -1
  56. package/lib/types/client/qoder/QoderSection.d.ts +2 -1
  57. package/lib/types/client/qoder/QoderSection.d.ts.map +1 -1
  58. package/lib/types/client/qoder/locales.d.ts +1 -1
  59. package/lib/types/client/step-code/StepCodeSection.d.ts.map +1 -1
  60. package/lib/types/client/step-code/locales.d.ts +2 -2
  61. package/lib/types/host/opendesign/client.d.ts +53 -0
  62. package/lib/types/host/opendesign/client.d.ts.map +1 -1
  63. package/lib/types/host/opendesign/routes.d.ts +4 -3
  64. package/lib/types/host/opendesign/routes.d.ts.map +1 -1
  65. package/lib/types/host/opendesign/types.d.ts +10 -0
  66. package/lib/types/host/opendesign/types.d.ts.map +1 -1
  67. package/lib/types/shared/opendesign-contracts.d.ts +35 -2
  68. package/lib/types/shared/opendesign-contracts.d.ts.map +1 -1
  69. package/package.json +1 -1
@@ -679,8 +679,8 @@ export declare const dictionaries: {
679
679
  readonly quotaUsed: string;
680
680
  readonly quotaFactsScope: string;
681
681
  };
682
- en: Record<"account" | "quotaRefreshing" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "signedOut" | "signedIn" | "expires" | "signIn" | "signOut" | "loading" | "connection" | "testConnection" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "save" | "unknown" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "cooldownRemaining" | "cooldownRemainingSeconds" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "email" | "lastUsed" | "accountQuota" | "quotaNone" | "quotaSnapshot" | "quotaResets" | "quotaExhausted" | "quotaWindow" | "quotaUsed" | "quotaFactsScope" | "composerLabel" | "pageDesc" | "signingIn" | "modelsSection" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saving" | "quotaSection" | "resetUnavailable" | "loginFailed" | "cancelSignIn" | "testingConnection" | "testSuccess" | "testFailed" | "routeOwned" | "routeConflict" | "capImage" | "copied" | "openSignInPage" | "region" | "regionCn" | "testSuccessModel" | "modelsUnavailable" | "invalidCapacity" | "quotaRefresh" | "expiresAt" | "regionGlobal" | "deviceCodeSection" | "deviceCodeHint" | "copyCode" | "userCode" | "codeExpires" | "waitingAuthorization" | "accountLabel" | "expiresRemaining" | "expiresExpired" | "expiresHint" | "codeMinutes" | "loginExpired" | "loginDenied" | "logoutOwnedByApp" | "dailyCheckin" | "checkinHint" | "checkinAuto" | "checkinToday" | "checkinSkipped" | "checkinFailed" | "checkinStreak" | "checkinClaimed" | "checkinLastRun" | "checkinNever" | "checkinNow" | "checkinRunning" | "quotaUnavailable" | "quotaNeedsApiKey" | "quotaUnreachable" | "quotaTokenExpired" | "quotaStale" | "quotaUsedShare" | "resetSection" | "resetHint" | "resetConfirm" | "resetAvailable" | "resetNone" | "resetExpires" | "resetUse" | "resetUsing" | "resetRefresh" | "resetRefreshing" | "resetFlowTitle" | "resetFlowEmpty" | "resetFlowGrant" | "resetFlowUse" | "resetOutcomeSuccess" | "resetOutcomeReplayed" | "resetOutcomeUncertain" | "resetOutcomeExpired" | "resetOutcomeNotFound" | "thinkingAlwaysOn" | "thinkingToggle" | "thinkingForced" | "capText" | "videoToolTitle" | "videoToolRunning" | "videoToolDone" | "videoToolFailed" | "videoGenerating" | "videoReading" | "videoTooLarge" | "videoUnreadable" | "videoUnplayable" | "videoNoMeta" | "videoChannelOff" | "videoFailed" | "videoSize" | "videoTitle" | "videoCommandLabel" | "videoCommandDesc" | "videoPresetGroup" | "videoPresetCustom" | "videoPresetCustomDesc" | "videoDialogTitle" | "videoDialogDesc" | "videoPromptLabel" | "videoPromptPlaceholder" | "videoPromptRequired" | "videoModelLabel" | "videoRatioLabel" | "videoRatioLockedKeyframes" | "videoRatioLockedTextOnly" | "videoDurationLabel" | "videoDurationUnit" | "videoResolutionLabel" | "videoWatermarkLabel" | "videoMediaSection" | "videoMediaHint" | "videoInputImageLabel" | "videoLastFrameLabel" | "videoReferenceImagesLabel" | "videoReferenceVideosLabel" | "videoReferenceVideoDurationsLabel" | "videoReferenceAudiosLabel" | "videoMediaUnsupported" | "videoLastFrameUnsupported" | "videoTooManyImages" | "videoTooManyVideos" | "videoTooManyAudios" | "videoTooManyTotal" | "videoDurationInvalid" | "videoMediaBrowse" | "videoMediaAdd" | "videoMediaAddMore" | "videoMediaManualPlaceholder" | "videoMediaSuggestLabel" | "videoMediaSuggestFolder" | "videoMediaPaste" | "videoMediaDragHint" | "videoMediaDragActive" | "videoMediaRemove" | "videoMediaEmpty" | "videoMediaUrlRejected" | "videoReferenceVideoDurationOne" | "videoReferenceVideoDurationPlaceholder" | "videoReferenceVideoDurationWhy" | "videoUrlNeedsDuration" | "videoMediaNoPath" | "videoTierLabel" | "videoAdvanced" | "videoPromptFromComposer" | "videoSubmit" | "videoCancel" | "videoClose" | "videoDraftFilled" | "videoDraftFailed" | "videoNotMinimax" | "videoDefaultsSection" | "videoDefaultsHint" | "videoDefaultsSaved" | "videoHistorySection" | "videoHistoryHint" | "videoHistoryEmpty" | "videoHistoryUnavailable" | "videoHistoryRefresh" | "videoHistoryRefreshing" | "videoHistoryAt" | "videoHistoryMeta" | "videoHistoryNoRatio" | "videoHistoryStorage" | "videoHistoryEncrypted" | "videoHistoryPlain", string>;
683
- 'en-US': Record<"account" | "quotaRefreshing" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "signedOut" | "signedIn" | "expires" | "signIn" | "signOut" | "loading" | "connection" | "testConnection" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "save" | "unknown" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "cooldownRemaining" | "cooldownRemainingSeconds" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "email" | "lastUsed" | "accountQuota" | "quotaNone" | "quotaSnapshot" | "quotaResets" | "quotaExhausted" | "quotaWindow" | "quotaUsed" | "quotaFactsScope" | "composerLabel" | "pageDesc" | "signingIn" | "modelsSection" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saving" | "quotaSection" | "resetUnavailable" | "loginFailed" | "cancelSignIn" | "testingConnection" | "testSuccess" | "testFailed" | "routeOwned" | "routeConflict" | "capImage" | "copied" | "openSignInPage" | "region" | "regionCn" | "testSuccessModel" | "modelsUnavailable" | "invalidCapacity" | "quotaRefresh" | "expiresAt" | "regionGlobal" | "deviceCodeSection" | "deviceCodeHint" | "copyCode" | "userCode" | "codeExpires" | "waitingAuthorization" | "accountLabel" | "expiresRemaining" | "expiresExpired" | "expiresHint" | "codeMinutes" | "loginExpired" | "loginDenied" | "logoutOwnedByApp" | "dailyCheckin" | "checkinHint" | "checkinAuto" | "checkinToday" | "checkinSkipped" | "checkinFailed" | "checkinStreak" | "checkinClaimed" | "checkinLastRun" | "checkinNever" | "checkinNow" | "checkinRunning" | "quotaUnavailable" | "quotaNeedsApiKey" | "quotaUnreachable" | "quotaTokenExpired" | "quotaStale" | "quotaUsedShare" | "resetSection" | "resetHint" | "resetConfirm" | "resetAvailable" | "resetNone" | "resetExpires" | "resetUse" | "resetUsing" | "resetRefresh" | "resetRefreshing" | "resetFlowTitle" | "resetFlowEmpty" | "resetFlowGrant" | "resetFlowUse" | "resetOutcomeSuccess" | "resetOutcomeReplayed" | "resetOutcomeUncertain" | "resetOutcomeExpired" | "resetOutcomeNotFound" | "thinkingAlwaysOn" | "thinkingToggle" | "thinkingForced" | "capText" | "videoToolTitle" | "videoToolRunning" | "videoToolDone" | "videoToolFailed" | "videoGenerating" | "videoReading" | "videoTooLarge" | "videoUnreadable" | "videoUnplayable" | "videoNoMeta" | "videoChannelOff" | "videoFailed" | "videoSize" | "videoTitle" | "videoCommandLabel" | "videoCommandDesc" | "videoPresetGroup" | "videoPresetCustom" | "videoPresetCustomDesc" | "videoDialogTitle" | "videoDialogDesc" | "videoPromptLabel" | "videoPromptPlaceholder" | "videoPromptRequired" | "videoModelLabel" | "videoRatioLabel" | "videoRatioLockedKeyframes" | "videoRatioLockedTextOnly" | "videoDurationLabel" | "videoDurationUnit" | "videoResolutionLabel" | "videoWatermarkLabel" | "videoMediaSection" | "videoMediaHint" | "videoInputImageLabel" | "videoLastFrameLabel" | "videoReferenceImagesLabel" | "videoReferenceVideosLabel" | "videoReferenceVideoDurationsLabel" | "videoReferenceAudiosLabel" | "videoMediaUnsupported" | "videoLastFrameUnsupported" | "videoTooManyImages" | "videoTooManyVideos" | "videoTooManyAudios" | "videoTooManyTotal" | "videoDurationInvalid" | "videoMediaBrowse" | "videoMediaAdd" | "videoMediaAddMore" | "videoMediaManualPlaceholder" | "videoMediaSuggestLabel" | "videoMediaSuggestFolder" | "videoMediaPaste" | "videoMediaDragHint" | "videoMediaDragActive" | "videoMediaRemove" | "videoMediaEmpty" | "videoMediaUrlRejected" | "videoReferenceVideoDurationOne" | "videoReferenceVideoDurationPlaceholder" | "videoReferenceVideoDurationWhy" | "videoUrlNeedsDuration" | "videoMediaNoPath" | "videoTierLabel" | "videoAdvanced" | "videoPromptFromComposer" | "videoSubmit" | "videoCancel" | "videoClose" | "videoDraftFilled" | "videoDraftFailed" | "videoNotMinimax" | "videoDefaultsSection" | "videoDefaultsHint" | "videoDefaultsSaved" | "videoHistorySection" | "videoHistoryHint" | "videoHistoryEmpty" | "videoHistoryUnavailable" | "videoHistoryRefresh" | "videoHistoryRefreshing" | "videoHistoryAt" | "videoHistoryMeta" | "videoHistoryNoRatio" | "videoHistoryStorage" | "videoHistoryEncrypted" | "videoHistoryPlain", string>;
682
+ en: Record<"account" | "quotaRefreshing" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "signedOut" | "signedIn" | "expires" | "signIn" | "signOut" | "loading" | "connection" | "testConnection" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "save" | "unknown" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "cooldownRemaining" | "cooldownRemainingSeconds" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "email" | "lastUsed" | "accountQuota" | "quotaNone" | "quotaSnapshot" | "quotaResets" | "quotaExhausted" | "quotaWindow" | "quotaUsed" | "quotaFactsScope" | "composerLabel" | "pageDesc" | "signingIn" | "modelsSection" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saving" | "quotaSection" | "resetUnavailable" | "loginFailed" | "cancelSignIn" | "testingConnection" | "testSuccess" | "testFailed" | "routeOwned" | "routeConflict" | "capImage" | "copied" | "region" | "regionCn" | "testSuccessModel" | "modelsUnavailable" | "invalidCapacity" | "quotaRefresh" | "openSignInPage" | "regionGlobal" | "deviceCodeSection" | "deviceCodeHint" | "copyCode" | "userCode" | "codeExpires" | "waitingAuthorization" | "accountLabel" | "expiresAt" | "expiresRemaining" | "expiresExpired" | "expiresHint" | "codeMinutes" | "loginExpired" | "loginDenied" | "logoutOwnedByApp" | "dailyCheckin" | "checkinHint" | "checkinAuto" | "checkinToday" | "checkinSkipped" | "checkinFailed" | "checkinStreak" | "checkinClaimed" | "checkinLastRun" | "checkinNever" | "checkinNow" | "checkinRunning" | "quotaUnavailable" | "quotaNeedsApiKey" | "quotaUnreachable" | "quotaTokenExpired" | "quotaStale" | "quotaUsedShare" | "resetSection" | "resetHint" | "resetConfirm" | "resetAvailable" | "resetNone" | "resetExpires" | "resetUse" | "resetUsing" | "resetRefresh" | "resetRefreshing" | "resetFlowTitle" | "resetFlowEmpty" | "resetFlowGrant" | "resetFlowUse" | "resetOutcomeSuccess" | "resetOutcomeReplayed" | "resetOutcomeUncertain" | "resetOutcomeExpired" | "resetOutcomeNotFound" | "thinkingAlwaysOn" | "thinkingToggle" | "thinkingForced" | "capText" | "videoToolTitle" | "videoToolRunning" | "videoToolDone" | "videoToolFailed" | "videoGenerating" | "videoReading" | "videoTooLarge" | "videoUnreadable" | "videoUnplayable" | "videoNoMeta" | "videoChannelOff" | "videoFailed" | "videoSize" | "videoTitle" | "videoCommandLabel" | "videoCommandDesc" | "videoPresetGroup" | "videoPresetCustom" | "videoPresetCustomDesc" | "videoDialogTitle" | "videoDialogDesc" | "videoPromptLabel" | "videoPromptPlaceholder" | "videoPromptRequired" | "videoModelLabel" | "videoRatioLabel" | "videoRatioLockedKeyframes" | "videoRatioLockedTextOnly" | "videoDurationLabel" | "videoDurationUnit" | "videoResolutionLabel" | "videoWatermarkLabel" | "videoMediaSection" | "videoMediaHint" | "videoInputImageLabel" | "videoLastFrameLabel" | "videoReferenceImagesLabel" | "videoReferenceVideosLabel" | "videoReferenceVideoDurationsLabel" | "videoReferenceAudiosLabel" | "videoMediaUnsupported" | "videoLastFrameUnsupported" | "videoTooManyImages" | "videoTooManyVideos" | "videoTooManyAudios" | "videoTooManyTotal" | "videoDurationInvalid" | "videoMediaBrowse" | "videoMediaAdd" | "videoMediaAddMore" | "videoMediaManualPlaceholder" | "videoMediaSuggestLabel" | "videoMediaSuggestFolder" | "videoMediaPaste" | "videoMediaDragHint" | "videoMediaDragActive" | "videoMediaRemove" | "videoMediaEmpty" | "videoMediaUrlRejected" | "videoReferenceVideoDurationOne" | "videoReferenceVideoDurationPlaceholder" | "videoReferenceVideoDurationWhy" | "videoUrlNeedsDuration" | "videoMediaNoPath" | "videoTierLabel" | "videoAdvanced" | "videoPromptFromComposer" | "videoSubmit" | "videoCancel" | "videoClose" | "videoDraftFilled" | "videoDraftFailed" | "videoNotMinimax" | "videoDefaultsSection" | "videoDefaultsHint" | "videoDefaultsSaved" | "videoHistorySection" | "videoHistoryHint" | "videoHistoryEmpty" | "videoHistoryUnavailable" | "videoHistoryRefresh" | "videoHistoryRefreshing" | "videoHistoryAt" | "videoHistoryMeta" | "videoHistoryNoRatio" | "videoHistoryStorage" | "videoHistoryEncrypted" | "videoHistoryPlain", string>;
683
+ 'en-US': Record<"account" | "quotaRefreshing" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "signedOut" | "signedIn" | "expires" | "signIn" | "signOut" | "loading" | "connection" | "testConnection" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "save" | "unknown" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "cooldownRemaining" | "cooldownRemainingSeconds" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "email" | "lastUsed" | "accountQuota" | "quotaNone" | "quotaSnapshot" | "quotaResets" | "quotaExhausted" | "quotaWindow" | "quotaUsed" | "quotaFactsScope" | "composerLabel" | "pageDesc" | "signingIn" | "modelsSection" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saving" | "quotaSection" | "resetUnavailable" | "loginFailed" | "cancelSignIn" | "testingConnection" | "testSuccess" | "testFailed" | "routeOwned" | "routeConflict" | "capImage" | "copied" | "region" | "regionCn" | "testSuccessModel" | "modelsUnavailable" | "invalidCapacity" | "quotaRefresh" | "openSignInPage" | "regionGlobal" | "deviceCodeSection" | "deviceCodeHint" | "copyCode" | "userCode" | "codeExpires" | "waitingAuthorization" | "accountLabel" | "expiresAt" | "expiresRemaining" | "expiresExpired" | "expiresHint" | "codeMinutes" | "loginExpired" | "loginDenied" | "logoutOwnedByApp" | "dailyCheckin" | "checkinHint" | "checkinAuto" | "checkinToday" | "checkinSkipped" | "checkinFailed" | "checkinStreak" | "checkinClaimed" | "checkinLastRun" | "checkinNever" | "checkinNow" | "checkinRunning" | "quotaUnavailable" | "quotaNeedsApiKey" | "quotaUnreachable" | "quotaTokenExpired" | "quotaStale" | "quotaUsedShare" | "resetSection" | "resetHint" | "resetConfirm" | "resetAvailable" | "resetNone" | "resetExpires" | "resetUse" | "resetUsing" | "resetRefresh" | "resetRefreshing" | "resetFlowTitle" | "resetFlowEmpty" | "resetFlowGrant" | "resetFlowUse" | "resetOutcomeSuccess" | "resetOutcomeReplayed" | "resetOutcomeUncertain" | "resetOutcomeExpired" | "resetOutcomeNotFound" | "thinkingAlwaysOn" | "thinkingToggle" | "thinkingForced" | "capText" | "videoToolTitle" | "videoToolRunning" | "videoToolDone" | "videoToolFailed" | "videoGenerating" | "videoReading" | "videoTooLarge" | "videoUnreadable" | "videoUnplayable" | "videoNoMeta" | "videoChannelOff" | "videoFailed" | "videoSize" | "videoTitle" | "videoCommandLabel" | "videoCommandDesc" | "videoPresetGroup" | "videoPresetCustom" | "videoPresetCustomDesc" | "videoDialogTitle" | "videoDialogDesc" | "videoPromptLabel" | "videoPromptPlaceholder" | "videoPromptRequired" | "videoModelLabel" | "videoRatioLabel" | "videoRatioLockedKeyframes" | "videoRatioLockedTextOnly" | "videoDurationLabel" | "videoDurationUnit" | "videoResolutionLabel" | "videoWatermarkLabel" | "videoMediaSection" | "videoMediaHint" | "videoInputImageLabel" | "videoLastFrameLabel" | "videoReferenceImagesLabel" | "videoReferenceVideosLabel" | "videoReferenceVideoDurationsLabel" | "videoReferenceAudiosLabel" | "videoMediaUnsupported" | "videoLastFrameUnsupported" | "videoTooManyImages" | "videoTooManyVideos" | "videoTooManyAudios" | "videoTooManyTotal" | "videoDurationInvalid" | "videoMediaBrowse" | "videoMediaAdd" | "videoMediaAddMore" | "videoMediaManualPlaceholder" | "videoMediaSuggestLabel" | "videoMediaSuggestFolder" | "videoMediaPaste" | "videoMediaDragHint" | "videoMediaDragActive" | "videoMediaRemove" | "videoMediaEmpty" | "videoMediaUrlRejected" | "videoReferenceVideoDurationOne" | "videoReferenceVideoDurationPlaceholder" | "videoReferenceVideoDurationWhy" | "videoUrlNeedsDuration" | "videoMediaNoPath" | "videoTierLabel" | "videoAdvanced" | "videoPromptFromComposer" | "videoSubmit" | "videoCancel" | "videoClose" | "videoDraftFilled" | "videoDraftFailed" | "videoNotMinimax" | "videoDefaultsSection" | "videoDefaultsHint" | "videoDefaultsSaved" | "videoHistorySection" | "videoHistoryHint" | "videoHistoryEmpty" | "videoHistoryUnavailable" | "videoHistoryRefresh" | "videoHistoryRefreshing" | "videoHistoryAt" | "videoHistoryMeta" | "videoHistoryNoRatio" | "videoHistoryStorage" | "videoHistoryEncrypted" | "videoHistoryPlain", string>;
684
684
  };
685
685
  export type MinimaxCodeLocaleKey = keyof typeof zh;
686
686
  //# sourceMappingURL=locales.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"OllamaSection.d.ts","sourceRoot":"","sources":["../../../../src/client/ollama/OllamaSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAA;AA6B/D;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKlD;AAED,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CAuR9D"}
1
+ {"version":3,"file":"OllamaSection.d.ts","sourceRoot":"","sources":["../../../../src/client/ollama/OllamaSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAA;AA8B/D;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKlD;AAED,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CAuR9D"}
@@ -9,9 +9,10 @@ interface Props {
9
9
  * The account card, its badges and the rotation picker are the shared
10
10
  * {@link AccountPoolSection}, so this line looks like every other provider tab
11
11
  * by construction. What is written here is only what is genuinely OpenDesign's:
12
- * pasting a console-issued API key and the catalog sync. There is deliberately
13
- * no quota block: the gateway answers an API key no balance, and a card that
14
- * drew one would be inventing it.
12
+ * pasting a console-issued API key, the catalog sync, and the plan/credit card
13
+ * fed by the billing summary. That summary needs a control key, which only a
14
+ * browser sign-in issues: a pasted key gets the explanation, never an invented
15
+ * figure.
15
16
  */
16
17
  export declare function OpenDesignSection(props: Props): React.ReactElement;
17
18
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"OpenDesignSection.d.ts","sourceRoot":"","sources":["../../../../src/client/opendesign/OpenDesignSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoD,MAAM,OAAO,CAAA;AAiBxE,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AA0BD;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CAukBlE"}
1
+ {"version":3,"file":"OpenDesignSection.d.ts","sourceRoot":"","sources":["../../../../src/client/opendesign/OpenDesignSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAA;AAoBhF,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AA4ID;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CA0mBlE"}
@@ -71,18 +71,29 @@ export declare const zh: {
71
71
  readonly saveSettings: "保存设置";
72
72
  readonly savingSettings: "保存中...";
73
73
  readonly limitsSection: "说明";
74
- readonly usageSection: "钱包余额";
75
- readonly usageHint: "余额属于账号。浏览器授权登录的账号带控制 Key,可直接读;粘贴的 API Key 没有控制 Key,请在控制台查看。刷新会为每个可读的 OAuth 账号各发一次请求。";
76
- readonly usageRefresh: "刷新余额";
74
+ readonly usageSection: "套餐与额度";
75
+ readonly usageHint: "套餐档位和额度来自账号的账单摘要;浏览器授权登录的账号带控制 Key,可直接读,打开本页会自动读一次。粘贴的 API Key 没有控制 Key,请在控制台查看。";
76
+ readonly usageRefresh: "刷新额度";
77
77
  readonly usageRefreshing: "刷新中...";
78
- readonly usageEmpty: "尚未读取余额。";
79
- readonly usageUnavailable: "读不到余额:{detail}";
80
- readonly usageBalance: "余额 ${amount}";
78
+ readonly usageEmpty: "尚未读取额度。";
79
+ readonly usageUnavailable: "读不到额度:{detail}";
80
+ readonly usageBalance: "钱包余额 ${amount}";
81
81
  readonly usageReadAt: "读取于 {time}";
82
+ readonly usagePlan: "套餐 {plan}";
83
+ readonly usagePlanActive: "生效中";
84
+ readonly usagePlanInactive: "状态 {status}";
85
+ readonly usagePeriod: "本周期 {start} → {end}";
86
+ readonly usageSubscriptionCredits: "订阅额度 {credits} credits(${usd})";
87
+ readonly usageRechargeCredits: "充值额度 {credits} credits(${usd})";
88
+ readonly usageTotalCredits: "可用合计 {credits} credits(${usd})";
89
+ readonly usageTodayConsumed: "今日消耗 ${amount}";
90
+ readonly usageTotalConsumed: "累计消耗 ${amount}";
91
+ readonly usageUsageCount: "计费请求 {count} 次";
92
+ readonly usagePlanUnknown: "已读取额度,但上游未返回套餐档位。";
82
93
  readonly limitKey: "凭据存储在系统加密凭据库中,界面从不显示 Key 本身。";
83
94
  readonly limitGateway: "请求由 OpenDesign 网关服务,实际上游由网关决定。";
84
95
  readonly limitRoute: "模型路由按 provider id 抢占:若已有其他插件占用 opendesign,本卡仍可配置,但请求由对方服务。";
85
- readonly limitQuota: "余额读取只覆盖浏览器授权登录的账号;粘贴的 API Key 请在 OpenDesign Cloud 控制台查看用量。";
96
+ readonly limitQuota: "套餐与额度读取只覆盖浏览器授权登录的账号;粘贴的 API Key 没有控制 Key,请在 OpenDesign Cloud 控制台查看用量。";
86
97
  readonly accountPool: string;
87
98
  readonly accountCount: string;
88
99
  readonly primaryAccount: string;
@@ -184,18 +195,29 @@ export declare const en: {
184
195
  readonly saveSettings: "Save settings";
185
196
  readonly savingSettings: "Saving...";
186
197
  readonly limitsSection: "Notes";
187
- readonly usageSection: "Wallet balance";
188
- readonly usageHint: "Balances belong to accounts. Browser-signed-in accounts carry a control key and can be read here; a pasted API key has none — check the console for it. Refreshing sends one request per readable OAuth account.";
189
- readonly usageRefresh: "Refresh balance";
198
+ readonly usageSection: "Plan and credits";
199
+ readonly usageHint: "The plan tier and credits come from the account's billing summary. Browser-signed-in accounts carry a control key and are read here automatically when this page opens; a pasted API key has none — check the console for it.";
200
+ readonly usageRefresh: "Refresh plan & credits";
190
201
  readonly usageRefreshing: "Refreshing...";
191
- readonly usageEmpty: "No balance reading yet.";
192
- readonly usageUnavailable: "Could not read the balance: {detail}";
193
- readonly usageBalance: "Balance ${amount}";
202
+ readonly usageEmpty: "No plan or credit reading yet.";
203
+ readonly usageUnavailable: "Could not read the plan and credits: {detail}";
204
+ readonly usageBalance: "Wallet balance ${amount}";
194
205
  readonly usageReadAt: "Read at {time}";
206
+ readonly usagePlan: "Plan {plan}";
207
+ readonly usagePlanActive: "active";
208
+ readonly usagePlanInactive: "status {status}";
209
+ readonly usagePeriod: "Period {start} → {end}";
210
+ readonly usageSubscriptionCredits: "Subscription credits {credits} (${usd})";
211
+ readonly usageRechargeCredits: "Top-up credits {credits} (${usd})";
212
+ readonly usageTotalCredits: "Total available {credits} credits (${usd})";
213
+ readonly usageTodayConsumed: "Consumed today ${amount}";
214
+ readonly usageTotalConsumed: "Consumed in total ${amount}";
215
+ readonly usageUsageCount: "Billed requests: {count}";
216
+ readonly usagePlanUnknown: "Credits were read, but the upstream named no plan tier.";
195
217
  readonly limitKey: "API keys live in the OS credential store; the card never shows the key itself.";
196
218
  readonly limitGateway: "Requests are served by the OpenDesign gateway, which chooses the actual upstream.";
197
219
  readonly limitRoute: "The route is claimed by provider id: if another plugin already serves opendesign, this card still configures the line but that provider answers the requests.";
198
- readonly limitQuota: "Balance reads cover browser-signed-in accounts only; for a pasted API key, see usage in the OpenDesign Cloud console.";
220
+ readonly limitQuota: "Plan and credit reads cover browser-signed-in accounts only; a pasted API key has no control key, so see usage in the OpenDesign Cloud console.";
199
221
  readonly accountPool: string;
200
222
  readonly accountCount: string;
201
223
  readonly primaryAccount: string;
@@ -298,18 +320,29 @@ export declare const dictionaries: {
298
320
  readonly saveSettings: "保存设置";
299
321
  readonly savingSettings: "保存中...";
300
322
  readonly limitsSection: "说明";
301
- readonly usageSection: "钱包余额";
302
- readonly usageHint: "余额属于账号。浏览器授权登录的账号带控制 Key,可直接读;粘贴的 API Key 没有控制 Key,请在控制台查看。刷新会为每个可读的 OAuth 账号各发一次请求。";
303
- readonly usageRefresh: "刷新余额";
323
+ readonly usageSection: "套餐与额度";
324
+ readonly usageHint: "套餐档位和额度来自账号的账单摘要;浏览器授权登录的账号带控制 Key,可直接读,打开本页会自动读一次。粘贴的 API Key 没有控制 Key,请在控制台查看。";
325
+ readonly usageRefresh: "刷新额度";
304
326
  readonly usageRefreshing: "刷新中...";
305
- readonly usageEmpty: "尚未读取余额。";
306
- readonly usageUnavailable: "读不到余额:{detail}";
307
- readonly usageBalance: "余额 ${amount}";
327
+ readonly usageEmpty: "尚未读取额度。";
328
+ readonly usageUnavailable: "读不到额度:{detail}";
329
+ readonly usageBalance: "钱包余额 ${amount}";
308
330
  readonly usageReadAt: "读取于 {time}";
331
+ readonly usagePlan: "套餐 {plan}";
332
+ readonly usagePlanActive: "生效中";
333
+ readonly usagePlanInactive: "状态 {status}";
334
+ readonly usagePeriod: "本周期 {start} → {end}";
335
+ readonly usageSubscriptionCredits: "订阅额度 {credits} credits(${usd})";
336
+ readonly usageRechargeCredits: "充值额度 {credits} credits(${usd})";
337
+ readonly usageTotalCredits: "可用合计 {credits} credits(${usd})";
338
+ readonly usageTodayConsumed: "今日消耗 ${amount}";
339
+ readonly usageTotalConsumed: "累计消耗 ${amount}";
340
+ readonly usageUsageCount: "计费请求 {count} 次";
341
+ readonly usagePlanUnknown: "已读取额度,但上游未返回套餐档位。";
309
342
  readonly limitKey: "凭据存储在系统加密凭据库中,界面从不显示 Key 本身。";
310
343
  readonly limitGateway: "请求由 OpenDesign 网关服务,实际上游由网关决定。";
311
344
  readonly limitRoute: "模型路由按 provider id 抢占:若已有其他插件占用 opendesign,本卡仍可配置,但请求由对方服务。";
312
- readonly limitQuota: "余额读取只覆盖浏览器授权登录的账号;粘贴的 API Key 请在 OpenDesign Cloud 控制台查看用量。";
345
+ readonly limitQuota: "套餐与额度读取只覆盖浏览器授权登录的账号;粘贴的 API Key 没有控制 Key,请在 OpenDesign Cloud 控制台查看用量。";
313
346
  readonly accountPool: string;
314
347
  readonly accountCount: string;
315
348
  readonly primaryAccount: string;
@@ -411,18 +444,29 @@ export declare const dictionaries: {
411
444
  readonly saveSettings: "保存设置";
412
445
  readonly savingSettings: "保存中...";
413
446
  readonly limitsSection: "说明";
414
- readonly usageSection: "钱包余额";
415
- readonly usageHint: "余额属于账号。浏览器授权登录的账号带控制 Key,可直接读;粘贴的 API Key 没有控制 Key,请在控制台查看。刷新会为每个可读的 OAuth 账号各发一次请求。";
416
- readonly usageRefresh: "刷新余额";
447
+ readonly usageSection: "套餐与额度";
448
+ readonly usageHint: "套餐档位和额度来自账号的账单摘要;浏览器授权登录的账号带控制 Key,可直接读,打开本页会自动读一次。粘贴的 API Key 没有控制 Key,请在控制台查看。";
449
+ readonly usageRefresh: "刷新额度";
417
450
  readonly usageRefreshing: "刷新中...";
418
- readonly usageEmpty: "尚未读取余额。";
419
- readonly usageUnavailable: "读不到余额:{detail}";
420
- readonly usageBalance: "余额 ${amount}";
451
+ readonly usageEmpty: "尚未读取额度。";
452
+ readonly usageUnavailable: "读不到额度:{detail}";
453
+ readonly usageBalance: "钱包余额 ${amount}";
421
454
  readonly usageReadAt: "读取于 {time}";
455
+ readonly usagePlan: "套餐 {plan}";
456
+ readonly usagePlanActive: "生效中";
457
+ readonly usagePlanInactive: "状态 {status}";
458
+ readonly usagePeriod: "本周期 {start} → {end}";
459
+ readonly usageSubscriptionCredits: "订阅额度 {credits} credits(${usd})";
460
+ readonly usageRechargeCredits: "充值额度 {credits} credits(${usd})";
461
+ readonly usageTotalCredits: "可用合计 {credits} credits(${usd})";
462
+ readonly usageTodayConsumed: "今日消耗 ${amount}";
463
+ readonly usageTotalConsumed: "累计消耗 ${amount}";
464
+ readonly usageUsageCount: "计费请求 {count} 次";
465
+ readonly usagePlanUnknown: "已读取额度,但上游未返回套餐档位。";
422
466
  readonly limitKey: "凭据存储在系统加密凭据库中,界面从不显示 Key 本身。";
423
467
  readonly limitGateway: "请求由 OpenDesign 网关服务,实际上游由网关决定。";
424
468
  readonly limitRoute: "模型路由按 provider id 抢占:若已有其他插件占用 opendesign,本卡仍可配置,但请求由对方服务。";
425
- readonly limitQuota: "余额读取只覆盖浏览器授权登录的账号;粘贴的 API Key 请在 OpenDesign Cloud 控制台查看用量。";
469
+ readonly limitQuota: "套餐与额度读取只覆盖浏览器授权登录的账号;粘贴的 API Key 没有控制 Key,请在 OpenDesign Cloud 控制台查看用量。";
426
470
  readonly accountPool: string;
427
471
  readonly accountCount: string;
428
472
  readonly primaryAccount: string;
@@ -524,18 +568,29 @@ export declare const dictionaries: {
524
568
  readonly saveSettings: "Save settings";
525
569
  readonly savingSettings: "Saving...";
526
570
  readonly limitsSection: "Notes";
527
- readonly usageSection: "Wallet balance";
528
- readonly usageHint: "Balances belong to accounts. Browser-signed-in accounts carry a control key and can be read here; a pasted API key has none — check the console for it. Refreshing sends one request per readable OAuth account.";
529
- readonly usageRefresh: "Refresh balance";
571
+ readonly usageSection: "Plan and credits";
572
+ readonly usageHint: "The plan tier and credits come from the account's billing summary. Browser-signed-in accounts carry a control key and are read here automatically when this page opens; a pasted API key has none — check the console for it.";
573
+ readonly usageRefresh: "Refresh plan & credits";
530
574
  readonly usageRefreshing: "Refreshing...";
531
- readonly usageEmpty: "No balance reading yet.";
532
- readonly usageUnavailable: "Could not read the balance: {detail}";
533
- readonly usageBalance: "Balance ${amount}";
575
+ readonly usageEmpty: "No plan or credit reading yet.";
576
+ readonly usageUnavailable: "Could not read the plan and credits: {detail}";
577
+ readonly usageBalance: "Wallet balance ${amount}";
534
578
  readonly usageReadAt: "Read at {time}";
579
+ readonly usagePlan: "Plan {plan}";
580
+ readonly usagePlanActive: "active";
581
+ readonly usagePlanInactive: "status {status}";
582
+ readonly usagePeriod: "Period {start} → {end}";
583
+ readonly usageSubscriptionCredits: "Subscription credits {credits} (${usd})";
584
+ readonly usageRechargeCredits: "Top-up credits {credits} (${usd})";
585
+ readonly usageTotalCredits: "Total available {credits} credits (${usd})";
586
+ readonly usageTodayConsumed: "Consumed today ${amount}";
587
+ readonly usageTotalConsumed: "Consumed in total ${amount}";
588
+ readonly usageUsageCount: "Billed requests: {count}";
589
+ readonly usagePlanUnknown: "Credits were read, but the upstream named no plan tier.";
535
590
  readonly limitKey: "API keys live in the OS credential store; the card never shows the key itself.";
536
591
  readonly limitGateway: "Requests are served by the OpenDesign gateway, which chooses the actual upstream.";
537
592
  readonly limitRoute: "The route is claimed by provider id: if another plugin already serves opendesign, this card still configures the line but that provider answers the requests.";
538
- readonly limitQuota: "Balance reads cover browser-signed-in accounts only; for a pasted API key, see usage in the OpenDesign Cloud console.";
593
+ readonly limitQuota: "Plan and credit reads cover browser-signed-in accounts only; a pasted API key has no control key, so see usage in the OpenDesign Cloud console.";
539
594
  readonly accountPool: string;
540
595
  readonly accountCount: string;
541
596
  readonly primaryAccount: string;
@@ -637,18 +692,29 @@ export declare const dictionaries: {
637
692
  readonly saveSettings: "Save settings";
638
693
  readonly savingSettings: "Saving...";
639
694
  readonly limitsSection: "Notes";
640
- readonly usageSection: "Wallet balance";
641
- readonly usageHint: "Balances belong to accounts. Browser-signed-in accounts carry a control key and can be read here; a pasted API key has none — check the console for it. Refreshing sends one request per readable OAuth account.";
642
- readonly usageRefresh: "Refresh balance";
695
+ readonly usageSection: "Plan and credits";
696
+ readonly usageHint: "The plan tier and credits come from the account's billing summary. Browser-signed-in accounts carry a control key and are read here automatically when this page opens; a pasted API key has none — check the console for it.";
697
+ readonly usageRefresh: "Refresh plan & credits";
643
698
  readonly usageRefreshing: "Refreshing...";
644
- readonly usageEmpty: "No balance reading yet.";
645
- readonly usageUnavailable: "Could not read the balance: {detail}";
646
- readonly usageBalance: "Balance ${amount}";
699
+ readonly usageEmpty: "No plan or credit reading yet.";
700
+ readonly usageUnavailable: "Could not read the plan and credits: {detail}";
701
+ readonly usageBalance: "Wallet balance ${amount}";
647
702
  readonly usageReadAt: "Read at {time}";
703
+ readonly usagePlan: "Plan {plan}";
704
+ readonly usagePlanActive: "active";
705
+ readonly usagePlanInactive: "status {status}";
706
+ readonly usagePeriod: "Period {start} → {end}";
707
+ readonly usageSubscriptionCredits: "Subscription credits {credits} (${usd})";
708
+ readonly usageRechargeCredits: "Top-up credits {credits} (${usd})";
709
+ readonly usageTotalCredits: "Total available {credits} credits (${usd})";
710
+ readonly usageTodayConsumed: "Consumed today ${amount}";
711
+ readonly usageTotalConsumed: "Consumed in total ${amount}";
712
+ readonly usageUsageCount: "Billed requests: {count}";
713
+ readonly usagePlanUnknown: "Credits were read, but the upstream named no plan tier.";
648
714
  readonly limitKey: "API keys live in the OS credential store; the card never shows the key itself.";
649
715
  readonly limitGateway: "Requests are served by the OpenDesign gateway, which chooses the actual upstream.";
650
716
  readonly limitRoute: "The route is claimed by provider id: if another plugin already serves opendesign, this card still configures the line but that provider answers the requests.";
651
- readonly limitQuota: "Balance reads cover browser-signed-in accounts only; for a pasted API key, see usage in the OpenDesign Cloud console.";
717
+ readonly limitQuota: "Plan and credit reads cover browser-signed-in accounts only; a pasted API key has no control key, so see usage in the OpenDesign Cloud console.";
652
718
  readonly accountPool: string;
653
719
  readonly accountCount: string;
654
720
  readonly primaryAccount: string;
@@ -1 +1 @@
1
- {"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../src/client/opendesign/locales.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,mBAAmB,CAAA;AAE7C,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+FL,CAAA;AAEV,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6FL,CAAA;AAIV,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKxB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,MAAM,OAAO,EAAE,CAAA"}
1
+ {"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../src/client/opendesign/locales.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,mBAAmB,CAA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,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/client/opendesign/styles.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,IAAI,IAAI,CAiC9C"}
@@ -23,6 +23,7 @@
23
23
  */
24
24
  import React from 'react';
25
25
  import { type QoderModelOption } from '../../shared/qoder-contracts.ts';
26
+ import { zh } from './locales.ts';
26
27
  import { type QoderSectionProps } from './useQoderSection.ts';
27
28
  /**
28
29
  * 一行模型的能力摘要:`1M · text+image · 档位 low/high/max · 输出 131k`。
@@ -31,6 +32,6 @@ import { type QoderSectionProps } from './useQoderSection.ts';
31
32
  * `defaultMaxTokens`),客户端不按模型名推断任何一项。与 OpenDesign 卡同一写法:
32
33
  * 数据一行,散文进折叠区。
33
34
  */
34
- export declare function qoderModelRowHint(model: QoderModelOption): string;
35
+ export declare function qoderModelRowHint(model: QoderModelOption, t?: typeof zh): string;
35
36
  export declare function QoderSection({ onModelChange }?: QoderSectionProps): React.JSX.Element;
36
37
  //# sourceMappingURL=QoderSection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"QoderSection.d.ts","sourceRoot":"","sources":["../../../../src/client/qoder/QoderSection.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAIL,KAAK,gBAAgB,EAGtB,MAAM,iCAAiC,CAAA;AAYxC,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AA4D9E;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,GAAG,MAAM,CAQjE;AAED,wBAAgB,YAAY,CAAC,EAAE,aAAa,EAAE,GAAE,iBAAsB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAydzF"}
1
+ {"version":3,"file":"QoderSection.d.ts","sourceRoot":"","sources":["../../../../src/client/qoder/QoderSection.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAIL,KAAK,gBAAgB,EAGtB,MAAM,iCAAiC,CAAA;AAKxC,OAAO,EAAgD,EAAE,EAAiC,MAAM,cAAc,CAAA;AAC9G,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AA6D9E;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,EAAE,CAAC,GAAE,OAAO,EAAO,GAAG,MAAM,CAQpF;AAED,wBAAgB,YAAY,CAAC,EAAE,aAAa,EAAE,GAAE,iBAAsB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAydzF"}
@@ -304,7 +304,7 @@ export declare const dictionaries: {
304
304
  modelRowNoEfforts: string;
305
305
  modelRowOutput: string;
306
306
  };
307
- en: Record<"quotaRefreshing" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "expires" | "loading" | "connection" | "testConnection" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "save" | "quotaSignedOut" | "modelChecklistCount" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "cooldownRemaining" | "cooldownRemainingSeconds" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "email" | "lastUsed" | "accountQuota" | "quotaNone" | "quotaSnapshot" | "quotaResets" | "quotaExhausted" | "quotaWindow" | "quotaUsed" | "quotaFactsScope" | "composerLabel" | "progress" | "pageDesc" | "modelsSection" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saving" | "cacheSection" | "cacheDesc" | "cacheEmpty" | "cacheHitRatio" | "cacheRequests" | "quotaSection" | "quotaDesc" | "quotaEmpty" | "openAuthorizeUrl" | "authorizeUrl" | "loginComplete" | "manualPasteSection" | "manualPasteHint" | "manualPastePlaceholder" | "manualPasteSubmit" | "manualPasteSubmitting" | "testingConnection" | "testSuccess" | "testLatency" | "routeOwned" | "routeConflict" | "refreshCatalog" | "refreshingCatalog" | "effortLow" | "effortMedium" | "effortHigh" | "effortXHigh" | "effortMax" | "adopt" | "region" | "regionCn" | "regionHint" | "authorizing" | "loginIdle" | "loginHaveAccounts" | "loginPending" | "loginCompletedAt" | "loginCompleteNoAccount" | "loginError" | "loginRetryable" | "loginNotRetryable" | "pollEvery" | "loginExpiresAt" | "cancelLogin" | "cancelLoginBusy" | "manualPasteEmpty" | "adopting" | "adoptAdopted" | "adoptNoAttempt" | "adoptNoCredentialsFile" | "adoptFallback" | "testFailedDetail" | "modelsUnavailable" | "dismiss" | "invalidCapacity" | "quotaRefresh" | "quotaReadAt" | "quotaRefreshingNote" | "quotaErrorLabel" | "regionGlobal" | "moreNotes" | "adoptInvalidCredentials" | "adoptUnsupportedShape" | "modelsHintExtra" | "enabledModelIdsSemantics" | "defaultEffort" | "defaultEffortHint" | "defaultEffortHintExtra" | "defaultEffortModel" | "effortMinimal" | "contextWindowHintExtra" | "quotaRegion" | "cacheStatScope" | "cacheReadTokens" | "cacheMissedTokens" | "cacheHitRatioUnavailable" | "regionHintExtra" | "adoptNotAQoderLogin" | "adoptRegionUnresolved" | "quotaBucketPersonal" | "quotaBucketAddOn" | "quotaBucketOrg" | "quotaRemaining" | "quotaTotal" | "quotaExpiresAt" | "quotaNoUnit" | "cacheWriteTokens" | "modelRowEfforts" | "modelRowNoEfforts" | "modelRowOutput", string>;
307
+ en: Record<"quotaRefreshing" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "expires" | "loading" | "connection" | "testConnection" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "save" | "quotaSignedOut" | "modelChecklistCount" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "cooldownRemaining" | "cooldownRemainingSeconds" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "email" | "lastUsed" | "accountQuota" | "quotaNone" | "quotaSnapshot" | "quotaResets" | "quotaExhausted" | "quotaWindow" | "quotaUsed" | "quotaFactsScope" | "composerLabel" | "progress" | "pageDesc" | "modelsSection" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saving" | "cacheSection" | "cacheDesc" | "cacheEmpty" | "cacheHitRatio" | "cacheRequests" | "quotaSection" | "quotaDesc" | "quotaEmpty" | "openAuthorizeUrl" | "authorizeUrl" | "loginComplete" | "manualPasteSection" | "manualPasteHint" | "manualPastePlaceholder" | "manualPasteSubmit" | "manualPasteSubmitting" | "testingConnection" | "testSuccess" | "testLatency" | "routeOwned" | "routeConflict" | "refreshCatalog" | "refreshingCatalog" | "effortLow" | "effortMedium" | "effortHigh" | "effortXHigh" | "effortMax" | "moreNotes" | "region" | "regionCn" | "regionHint" | "authorizing" | "loginIdle" | "loginHaveAccounts" | "loginPending" | "loginCompletedAt" | "loginCompleteNoAccount" | "loginError" | "loginRetryable" | "loginNotRetryable" | "pollEvery" | "loginExpiresAt" | "cancelLogin" | "cancelLoginBusy" | "manualPasteEmpty" | "adopt" | "adopting" | "adoptAdopted" | "adoptNoAttempt" | "adoptNoCredentialsFile" | "adoptInvalidCredentials" | "adoptUnsupportedShape" | "adoptFallback" | "testFailedDetail" | "modelsHintExtra" | "modelsUnavailable" | "dismiss" | "enabledModelIdsSemantics" | "defaultEffort" | "defaultEffortHint" | "defaultEffortHintExtra" | "defaultEffortModel" | "effortMinimal" | "contextWindowHintExtra" | "invalidCapacity" | "quotaRefresh" | "quotaReadAt" | "quotaRegion" | "quotaRefreshingNote" | "quotaErrorLabel" | "cacheStatScope" | "cacheReadTokens" | "cacheMissedTokens" | "cacheHitRatioUnavailable" | "regionGlobal" | "regionHintExtra" | "adoptNotAQoderLogin" | "adoptRegionUnresolved" | "quotaBucketPersonal" | "quotaBucketAddOn" | "quotaBucketOrg" | "quotaRemaining" | "quotaTotal" | "quotaExpiresAt" | "quotaNoUnit" | "cacheWriteTokens" | "modelRowEfforts" | "modelRowNoEfforts" | "modelRowOutput", string>;
308
308
  };
309
309
  /** adopt 的失败原因(冻结契约的联合)。 */
310
310
  export type AdoptReason = NonNullable<QoderAdoptResultDto['reason']>;
@@ -1 +1 @@
1
- {"version":3,"file":"StepCodeSection.d.ts","sourceRoot":"","sources":["../../../../src/client/step-code/StepCodeSection.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,KAAK,MAAM,OAAO,CAAA;AA0BzB,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,yBAAyB,CAAA;AAwHhC,wBAAgB,eAAe,CAAC,EAAE,aAAa,EAAE,GAAE,oBAAyB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA8qB/F"}
1
+ {"version":3,"file":"StepCodeSection.d.ts","sourceRoot":"","sources":["../../../../src/client/step-code/StepCodeSection.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,OAAO,KAAK,MAAM,OAAO,CAAA;AAmBzB,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,yBAAyB,CAAA;AAwHhC,wBAAgB,eAAe,CAAC,EAAE,aAAa,EAAE,GAAE,oBAAyB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA8qB/F"}
@@ -603,8 +603,8 @@ export declare const dictionaries: {
603
603
  readonly quotaFactsScope: string;
604
604
  readonly composerLabel: string;
605
605
  };
606
- en: Record<"quotaRefreshing" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "expires" | "loading" | "connection" | "testConnection" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "save" | "quotaSignedOut" | "modelChecklistCount" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "cooldownRemaining" | "cooldownRemainingSeconds" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "email" | "lastUsed" | "accountQuota" | "quotaNone" | "quotaSnapshot" | "quotaResets" | "quotaExhausted" | "quotaWindow" | "quotaUsed" | "quotaFactsScope" | "composerLabel" | "progress" | "pageDesc" | "modelsSection" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saved" | "saving" | "cacheSection" | "cacheDesc" | "cacheEmpty" | "cacheHitRatio" | "cacheRequests" | "quotaSection" | "quotaDesc" | "quotaEmpty" | "adoptedBadge" | "openAuthorizeUrl" | "authorizeUrl" | "loginComplete" | "manualPasteSection" | "manualPasteHint" | "manualPastePlaceholder" | "manualPasteSubmit" | "manualPasteSubmitting" | "testingConnection" | "testSuccess" | "testLatency" | "testFailed" | "routeOwned" | "routeConflict" | "refreshCatalog" | "refreshingCatalog" | "effortLow" | "effortMedium" | "effortHigh" | "effortXHigh" | "effortMax" | "adopt" | "region" | "regionCn" | "regionIntl" | "regionHint" | "authorizing" | "loginIdle" | "loginHaveAccounts" | "loginPending" | "loginCompletedAt" | "loginCompleteNoAccount" | "loginError" | "loginRetryable" | "loginNotRetryable" | "pollEvery" | "loginExpiresAt" | "restartLogin" | "cancelLogin" | "cancelLoginBusy" | "manualPasteEmpty" | "adopting" | "adoptAdopted" | "adoptNoAttempt" | "adoptNoCredentialsFile" | "adoptFallback" | "testSuccessAccount" | "testSuccessModel" | "testFailedDetail" | "modelsUnavailable" | "dismiss" | "invalidCapacity" | "quotaRefresh" | "quotaPlan" | "quotaRenews" | "quotaReadAt" | "quotaSources" | "quotaRefreshingNote" | "quotaErrorLabel" | "moreNotes" | "profile" | "profileStepPlan" | "profileStepPlanOversea" | "profilePlatformCn" | "profilePlatformOversea" | "profileHint" | "profileHintExtra" | "adoptInvalidCredentials" | "adoptUnsupportedShape" | "adoptNotAStepcodeLogin" | "modelsHintExtra" | "enabledModelIdsSemantics" | "defaultEffort" | "defaultEffortHint" | "defaultEffortHintExtra" | "defaultEffortModel" | "effortMinimal" | "contextWindowHintExtra" | "quotaPlanFamily" | "quotaRegion" | "quotaWindowNames" | "quotaNoReset" | "quotaUsedUnknown" | "quotaKindWindowed" | "quotaKindCredit" | "quotaKindUnknown" | "quotaKindHint" | "quotaWindowFiveHour" | "quotaWindowWeekly" | "quotaWindowCredit" | "quotaBucketTotal" | "quotaBucketRemaining" | "quotaBucketExpires" | "quotaBucketResets" | "quotaCredentialSection" | "quotaCredentialSource" | "quotaCredentialFoot" | "quotaCredentialNone" | "quotaCredentialAuto" | "quotaCredentialManual" | "quotaCredentialAccount" | "quotaCredentialExpires" | "quotaCredentialError" | "quotaCredentialPasswordSection" | "quotaCredentialAccountPlaceholder" | "quotaCredentialPasswordPlaceholder" | "quotaCredentialPasswordSubmit" | "quotaCredentialPasswordSubmitting" | "quotaCredentialAccountEmpty" | "quotaCredentialPasswordEmpty" | "quotaCredentialManualSection" | "quotaCredentialTokenPlaceholder" | "quotaCredentialTokenSubmit" | "quotaCredentialTokenSubmitting" | "quotaCredentialTokenEmpty" | "quotaCredentialClear" | "quotaCredentialClearing" | "cacheStatScope" | "cacheFieldOrder" | "cacheReadTokens" | "cacheMissedTokens" | "cacheWriteNote" | "cacheWriteNoteValue" | "cacheWriteNoteHint" | "cacheRequestParams" | "cacheRequestParamsHint" | "cacheRequestParamsNote" | "cacheRequestParamsOnHint" | "cachePricingNote" | "cacheHitRatioUnavailable", string>;
607
- 'en-US': Record<"quotaRefreshing" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "expires" | "loading" | "connection" | "testConnection" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "save" | "quotaSignedOut" | "modelChecklistCount" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "cooldownRemaining" | "cooldownRemainingSeconds" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "email" | "lastUsed" | "accountQuota" | "quotaNone" | "quotaSnapshot" | "quotaResets" | "quotaExhausted" | "quotaWindow" | "quotaUsed" | "quotaFactsScope" | "composerLabel" | "progress" | "pageDesc" | "modelsSection" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saved" | "saving" | "cacheSection" | "cacheDesc" | "cacheEmpty" | "cacheHitRatio" | "cacheRequests" | "quotaSection" | "quotaDesc" | "quotaEmpty" | "adoptedBadge" | "openAuthorizeUrl" | "authorizeUrl" | "loginComplete" | "manualPasteSection" | "manualPasteHint" | "manualPastePlaceholder" | "manualPasteSubmit" | "manualPasteSubmitting" | "testingConnection" | "testSuccess" | "testLatency" | "testFailed" | "routeOwned" | "routeConflict" | "refreshCatalog" | "refreshingCatalog" | "effortLow" | "effortMedium" | "effortHigh" | "effortXHigh" | "effortMax" | "adopt" | "region" | "regionCn" | "regionIntl" | "regionHint" | "authorizing" | "loginIdle" | "loginHaveAccounts" | "loginPending" | "loginCompletedAt" | "loginCompleteNoAccount" | "loginError" | "loginRetryable" | "loginNotRetryable" | "pollEvery" | "loginExpiresAt" | "restartLogin" | "cancelLogin" | "cancelLoginBusy" | "manualPasteEmpty" | "adopting" | "adoptAdopted" | "adoptNoAttempt" | "adoptNoCredentialsFile" | "adoptFallback" | "testSuccessAccount" | "testSuccessModel" | "testFailedDetail" | "modelsUnavailable" | "dismiss" | "invalidCapacity" | "quotaRefresh" | "quotaPlan" | "quotaRenews" | "quotaReadAt" | "quotaSources" | "quotaRefreshingNote" | "quotaErrorLabel" | "moreNotes" | "profile" | "profileStepPlan" | "profileStepPlanOversea" | "profilePlatformCn" | "profilePlatformOversea" | "profileHint" | "profileHintExtra" | "adoptInvalidCredentials" | "adoptUnsupportedShape" | "adoptNotAStepcodeLogin" | "modelsHintExtra" | "enabledModelIdsSemantics" | "defaultEffort" | "defaultEffortHint" | "defaultEffortHintExtra" | "defaultEffortModel" | "effortMinimal" | "contextWindowHintExtra" | "quotaPlanFamily" | "quotaRegion" | "quotaWindowNames" | "quotaNoReset" | "quotaUsedUnknown" | "quotaKindWindowed" | "quotaKindCredit" | "quotaKindUnknown" | "quotaKindHint" | "quotaWindowFiveHour" | "quotaWindowWeekly" | "quotaWindowCredit" | "quotaBucketTotal" | "quotaBucketRemaining" | "quotaBucketExpires" | "quotaBucketResets" | "quotaCredentialSection" | "quotaCredentialSource" | "quotaCredentialFoot" | "quotaCredentialNone" | "quotaCredentialAuto" | "quotaCredentialManual" | "quotaCredentialAccount" | "quotaCredentialExpires" | "quotaCredentialError" | "quotaCredentialPasswordSection" | "quotaCredentialAccountPlaceholder" | "quotaCredentialPasswordPlaceholder" | "quotaCredentialPasswordSubmit" | "quotaCredentialPasswordSubmitting" | "quotaCredentialAccountEmpty" | "quotaCredentialPasswordEmpty" | "quotaCredentialManualSection" | "quotaCredentialTokenPlaceholder" | "quotaCredentialTokenSubmit" | "quotaCredentialTokenSubmitting" | "quotaCredentialTokenEmpty" | "quotaCredentialClear" | "quotaCredentialClearing" | "cacheStatScope" | "cacheFieldOrder" | "cacheReadTokens" | "cacheMissedTokens" | "cacheWriteNote" | "cacheWriteNoteValue" | "cacheWriteNoteHint" | "cacheRequestParams" | "cacheRequestParamsHint" | "cacheRequestParamsNote" | "cacheRequestParamsOnHint" | "cachePricingNote" | "cacheHitRatioUnavailable", string>;
606
+ en: Record<"quotaRefreshing" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "expires" | "loading" | "connection" | "testConnection" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "save" | "quotaSignedOut" | "modelChecklistCount" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "cooldownRemaining" | "cooldownRemainingSeconds" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "email" | "lastUsed" | "accountQuota" | "quotaNone" | "quotaSnapshot" | "quotaResets" | "quotaExhausted" | "quotaWindow" | "quotaUsed" | "quotaFactsScope" | "composerLabel" | "progress" | "pageDesc" | "modelsSection" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saved" | "saving" | "cacheSection" | "cacheDesc" | "cacheEmpty" | "cacheHitRatio" | "cacheRequests" | "quotaSection" | "quotaDesc" | "quotaEmpty" | "adoptedBadge" | "openAuthorizeUrl" | "authorizeUrl" | "loginComplete" | "manualPasteSection" | "manualPasteHint" | "manualPastePlaceholder" | "manualPasteSubmit" | "manualPasteSubmitting" | "testingConnection" | "testSuccess" | "testLatency" | "testFailed" | "routeOwned" | "routeConflict" | "refreshCatalog" | "refreshingCatalog" | "effortLow" | "effortMedium" | "effortHigh" | "effortXHigh" | "effortMax" | "moreNotes" | "profile" | "profileStepPlan" | "profileStepPlanOversea" | "profilePlatformCn" | "profilePlatformOversea" | "profileHint" | "profileHintExtra" | "region" | "regionCn" | "regionIntl" | "regionHint" | "authorizing" | "loginIdle" | "loginHaveAccounts" | "loginPending" | "loginCompletedAt" | "loginCompleteNoAccount" | "loginError" | "loginRetryable" | "loginNotRetryable" | "pollEvery" | "loginExpiresAt" | "restartLogin" | "cancelLogin" | "cancelLoginBusy" | "manualPasteEmpty" | "adopt" | "adopting" | "adoptAdopted" | "adoptNoAttempt" | "adoptNoCredentialsFile" | "adoptInvalidCredentials" | "adoptUnsupportedShape" | "adoptNotAStepcodeLogin" | "adoptFallback" | "testSuccessAccount" | "testSuccessModel" | "testFailedDetail" | "modelsHintExtra" | "modelsUnavailable" | "dismiss" | "enabledModelIdsSemantics" | "defaultEffort" | "defaultEffortHint" | "defaultEffortHintExtra" | "defaultEffortModel" | "effortMinimal" | "contextWindowHintExtra" | "invalidCapacity" | "quotaRefresh" | "quotaPlan" | "quotaPlanFamily" | "quotaRenews" | "quotaReadAt" | "quotaSources" | "quotaRegion" | "quotaRefreshingNote" | "quotaErrorLabel" | "quotaWindowNames" | "quotaNoReset" | "quotaUsedUnknown" | "quotaKindWindowed" | "quotaKindCredit" | "quotaKindUnknown" | "quotaKindHint" | "quotaWindowFiveHour" | "quotaWindowWeekly" | "quotaWindowCredit" | "quotaBucketTotal" | "quotaBucketRemaining" | "quotaBucketExpires" | "quotaBucketResets" | "quotaCredentialSection" | "quotaCredentialSource" | "quotaCredentialFoot" | "quotaCredentialNone" | "quotaCredentialAuto" | "quotaCredentialManual" | "quotaCredentialAccount" | "quotaCredentialExpires" | "quotaCredentialError" | "quotaCredentialPasswordSection" | "quotaCredentialAccountPlaceholder" | "quotaCredentialPasswordPlaceholder" | "quotaCredentialPasswordSubmit" | "quotaCredentialPasswordSubmitting" | "quotaCredentialAccountEmpty" | "quotaCredentialPasswordEmpty" | "quotaCredentialManualSection" | "quotaCredentialTokenPlaceholder" | "quotaCredentialTokenSubmit" | "quotaCredentialTokenSubmitting" | "quotaCredentialTokenEmpty" | "quotaCredentialClear" | "quotaCredentialClearing" | "cacheStatScope" | "cacheFieldOrder" | "cacheReadTokens" | "cacheMissedTokens" | "cacheWriteNote" | "cacheWriteNoteValue" | "cacheWriteNoteHint" | "cacheRequestParams" | "cacheRequestParamsHint" | "cacheRequestParamsNote" | "cacheRequestParamsOnHint" | "cachePricingNote" | "cacheHitRatioUnavailable", string>;
607
+ 'en-US': Record<"quotaRefreshing" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "expires" | "loading" | "connection" | "testConnection" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "save" | "quotaSignedOut" | "modelChecklistCount" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "cooldownRemaining" | "cooldownRemainingSeconds" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "email" | "lastUsed" | "accountQuota" | "quotaNone" | "quotaSnapshot" | "quotaResets" | "quotaExhausted" | "quotaWindow" | "quotaUsed" | "quotaFactsScope" | "composerLabel" | "progress" | "pageDesc" | "modelsSection" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saved" | "saving" | "cacheSection" | "cacheDesc" | "cacheEmpty" | "cacheHitRatio" | "cacheRequests" | "quotaSection" | "quotaDesc" | "quotaEmpty" | "adoptedBadge" | "openAuthorizeUrl" | "authorizeUrl" | "loginComplete" | "manualPasteSection" | "manualPasteHint" | "manualPastePlaceholder" | "manualPasteSubmit" | "manualPasteSubmitting" | "testingConnection" | "testSuccess" | "testLatency" | "testFailed" | "routeOwned" | "routeConflict" | "refreshCatalog" | "refreshingCatalog" | "effortLow" | "effortMedium" | "effortHigh" | "effortXHigh" | "effortMax" | "moreNotes" | "profile" | "profileStepPlan" | "profileStepPlanOversea" | "profilePlatformCn" | "profilePlatformOversea" | "profileHint" | "profileHintExtra" | "region" | "regionCn" | "regionIntl" | "regionHint" | "authorizing" | "loginIdle" | "loginHaveAccounts" | "loginPending" | "loginCompletedAt" | "loginCompleteNoAccount" | "loginError" | "loginRetryable" | "loginNotRetryable" | "pollEvery" | "loginExpiresAt" | "restartLogin" | "cancelLogin" | "cancelLoginBusy" | "manualPasteEmpty" | "adopt" | "adopting" | "adoptAdopted" | "adoptNoAttempt" | "adoptNoCredentialsFile" | "adoptInvalidCredentials" | "adoptUnsupportedShape" | "adoptNotAStepcodeLogin" | "adoptFallback" | "testSuccessAccount" | "testSuccessModel" | "testFailedDetail" | "modelsHintExtra" | "modelsUnavailable" | "dismiss" | "enabledModelIdsSemantics" | "defaultEffort" | "defaultEffortHint" | "defaultEffortHintExtra" | "defaultEffortModel" | "effortMinimal" | "contextWindowHintExtra" | "invalidCapacity" | "quotaRefresh" | "quotaPlan" | "quotaPlanFamily" | "quotaRenews" | "quotaReadAt" | "quotaSources" | "quotaRegion" | "quotaRefreshingNote" | "quotaErrorLabel" | "quotaWindowNames" | "quotaNoReset" | "quotaUsedUnknown" | "quotaKindWindowed" | "quotaKindCredit" | "quotaKindUnknown" | "quotaKindHint" | "quotaWindowFiveHour" | "quotaWindowWeekly" | "quotaWindowCredit" | "quotaBucketTotal" | "quotaBucketRemaining" | "quotaBucketExpires" | "quotaBucketResets" | "quotaCredentialSection" | "quotaCredentialSource" | "quotaCredentialFoot" | "quotaCredentialNone" | "quotaCredentialAuto" | "quotaCredentialManual" | "quotaCredentialAccount" | "quotaCredentialExpires" | "quotaCredentialError" | "quotaCredentialPasswordSection" | "quotaCredentialAccountPlaceholder" | "quotaCredentialPasswordPlaceholder" | "quotaCredentialPasswordSubmit" | "quotaCredentialPasswordSubmitting" | "quotaCredentialAccountEmpty" | "quotaCredentialPasswordEmpty" | "quotaCredentialManualSection" | "quotaCredentialTokenPlaceholder" | "quotaCredentialTokenSubmit" | "quotaCredentialTokenSubmitting" | "quotaCredentialTokenEmpty" | "quotaCredentialClear" | "quotaCredentialClearing" | "cacheStatScope" | "cacheFieldOrder" | "cacheReadTokens" | "cacheMissedTokens" | "cacheWriteNote" | "cacheWriteNoteValue" | "cacheWriteNoteHint" | "cacheRequestParams" | "cacheRequestParamsHint" | "cacheRequestParamsNote" | "cacheRequestParamsOnHint" | "cachePricingNote" | "cacheHitRatioUnavailable", string>;
608
608
  };
609
609
  export type StepCodeLocaleKey = keyof typeof zh;
610
610
  /**
@@ -145,4 +145,57 @@ export declare function fetchWalletBalance({ fetchFn, controlKey, apiBase, signa
145
145
  signal?: AbortSignal;
146
146
  timeoutMs?: number;
147
147
  }): Promise<OpenDesignWalletBalance>;
148
+ /**
149
+ * One account's plan and credit state, as `/billing/summary` states it.
150
+ *
151
+ * Balance strings keep the service's own spelling. `plan` is the paid tier
152
+ * (`go` / `plus` / `pro` / `max`) and is the only field that answers "which
153
+ * subscription is this"; `/me.plan` answers `free` even for an active paid
154
+ * account and is deliberately not used as a tier.
155
+ */
156
+ export interface OpenDesignBillingSummary {
157
+ plan: string;
158
+ /** `active`, `trialing`, `canceled`, ... as served. */
159
+ status: string;
160
+ entitlementStatus: string;
161
+ billingInterval: string;
162
+ periodStart: string | null;
163
+ periodEnd: string | null;
164
+ /** Credits the subscription grants and has left, in integer credits. */
165
+ subscriptionCredits: string | null;
166
+ /** Purchased top-up credits left. */
167
+ rechargeCredits: string | null;
168
+ totalAvailableCredits: string | null;
169
+ subscriptionCreditsUsd: string | null;
170
+ rechargeCreditsUsd: string | null;
171
+ totalAvailableCreditsUsd: string | null;
172
+ totalConsumedUsd: string | null;
173
+ todayConsumedUsd: string | null;
174
+ /** How many spent requests the service counted (a diagnostic, not a quota). */
175
+ usageCount: number | null;
176
+ /** ISO instant the service stamped on the summary. */
177
+ updatedAt: string | null;
178
+ }
179
+ /** One billing read: the parsed summary, or the refusal as data. */
180
+ export interface OpenDesignBillingRead {
181
+ ok: boolean;
182
+ billing: OpenDesignBillingSummary | null;
183
+ error: string;
184
+ }
185
+ /**
186
+ * Read one OAuth account's plan and credits with its control key.
187
+ *
188
+ * The summary is display data: a refusal is returned as data, never thrown, and
189
+ * must never mark the account (billing 401/403 is display-only upstream —
190
+ * OPEND-3553 — exactly like the wallet read). A summary with no
191
+ * `membershipTier` is not treated as a plan: "the tier is unknown" and "the plan
192
+ * is free" are different statements.
193
+ */
194
+ export declare function fetchBillingSummary({ fetchFn, controlKey, apiBase, signal, timeoutMs, }: {
195
+ fetchFn: typeof fetch;
196
+ controlKey: string;
197
+ apiBase?: string;
198
+ signal?: AbortSignal;
199
+ timeoutMs?: number;
200
+ }): Promise<OpenDesignBillingRead>;
148
201
  //# sourceMappingURL=client.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/host/opendesign/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAAqC,KAAK,yBAAyB,EAAE,MAAM,YAAY,CAAA;AAE9F,MAAM,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M,EAAE,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAA;CAAE,GAAG,IAAI,CAAC,CAqBxF;AAED;;;;;;GAMG;AACH,wBAAsB,UAAU,CAAC,EAC/B,OAAO,EACP,OAAO,EACP,MAAM,EACN,MAAM,EACN,SAAkB,GACnB,EAAE;IACD,OAAO,EAAE,OAAO,KAAK,CAAA;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,OAAO,CAAC;IAAE,UAAU,EAAE,OAAO,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,CA0BlF;AAED,gFAAgF;AAChF,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,OAAO,CAAA;IACX,qEAAqE;IACrE,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,wEAAwE;IACxE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,KAAK,EAAE,MAAM,CAAA;CACd;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,kBAAkB,CAAC,EACvC,OAAO,EACP,UAAU,EACV,OAAsB,EACtB,MAAM,EACN,SAAkB,GACnB,EAAE;IACD,OAAO,EAAE,OAAO,KAAK,CAAA;IACrB,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAsBnC"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../src/host/opendesign/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,OAAO,EAA2D,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every sibling line exposes — status, accounts, models —
5
5
  * plus the controls this line genuinely has: device-authorization sign-in, an
6
- * explicit catalog sync, and the wallet-balance read an OAuth account's control
7
- * key can make.
6
+ * explicit catalog sync, and the plan/credit read an OAuth account's control
7
+ * key can make (`/wallet/balance` and `/billing/summary`).
8
8
  *
9
9
  * Reads never trigger an upstream call; the catalog is synced by its own action
10
- * and behind a successful sign-in, and quota is refreshed by its own action.
10
+ * and behind a successful sign-in, and plan/credits are refreshed by the usage
11
+ * action (the settings card fires it once when it opens).
11
12
  *
12
13
  * @module dsh-chatgpt-subscription/opendesign-routes
13
14
  */
@@ -1 +1 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../../src/host/opendesign/routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAKlD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAA;AAC9D,OAAO,EAKL,KAAK,4BAA4B,EAClC,MAAM,kBAAkB,CAAA;AAEzB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,EAOL,KAAK,yBAAyB,EAE9B,KAAK,mBAAmB,EACzB,MAAM,sCAAsC,CAAA;AAsG7C,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,4BAA4B,CAAA;IACtC,WAAW,EAAE,qBAAqB,CAAA;IAClC,iFAAiF;IACjF,OAAO,EAAE,OAAO,KAAK,CAAA;IACrB,8EAA8E;IAC9E,KAAK,CAAC,EAAE,sBAAsB,CAAA;IAC9B;;;OAGG;IACH,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,OAAO,IAAI,OAAO,CAAA;IAClB,QAAQ,IAAI,MAAM,GAAG,IAAI,CAAA;CAC1B;AAED,4FA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EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,OAAO,IAAI,OAAO,CAAA;IAClB,QAAQ,IAAI,MAAM,GAAG,IAAI,CAAA;CAC1B;AAED,4FAA4F;AAC5F,eAAO,MAAM,qBAAqB,4BAAsB,CAAA;AAExD;;;;;;GAMG;AACH,UAAU,UAAU;IAClB,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAA;IAChD,SAAS,EAAE,MAAM,CAAA;CAClB;AAED,oEAAoE;AACpE,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,sBAAsB,EAC/B,UAAU,CAAC,EAAE,UAAU,GACtB,OAAO,CAAC,mBAAmB,CAAC,CAyD9B;AAkBD,+FAA+F;AAC/F,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;CAAS,CAAA;AAEvC;;;;;;GAMG;AACH,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,sBAAsB,GAAG,MAAM,IAAI,CAqZlG"}
@@ -41,6 +41,16 @@ export declare const AMR_API_BASE = "https://amr-api.open-design.ai/api/v1";
41
41
  /** Device-authorization endpoints under {@link AMR_API_BASE}. */
42
42
  export declare const DEVICE_AUTHORIZATIONS_PATH = "/cli/device-authorizations";
43
43
  export declare const WALLET_BALANCE_PATH = "/wallet/balance";
44
+ /**
45
+ * The account's plan + credits summary.
46
+ *
47
+ * The only endpoint that states the paid tier: `/me` carries a `plan` field, but
48
+ * it answers `free` for a subscribed account (probed 2026-10-21 against a Go
49
+ * account whose billing period was active), so it is a rough profile flag and
50
+ * never the tier. This one reports `membershipTier` plus the credit buckets the
51
+ * plan grants, the amounts consumed, and the current billing period.
52
+ */
53
+ export declare const BILLING_SUMMARY_PATH = "/billing/summary";
44
54
  /**
45
55
  * What the create call says about this client. The service stores host /
46
56
  * profile / cliVersion per authorization (its console lists devices by them);