@oh-my-pi/pi-catalog 18.13.2 → 18.13.3

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.
@@ -113,12 +113,11 @@ export interface CodexModelDiscoveryResult {
113
113
  models: ModelSpec<"openai-codex-responses">[];
114
114
  etag?: string;
115
115
  /**
116
- * Set when the backend rejected the credential itself (401/403, e.g.
117
- * `token_revoked`); `models` is empty. A definitive per-account denial,
118
- * unlike the `null` result for transport/parse failures, so multi-account
119
- * discovery can skip the account instead of aborting.
116
+ * A definitive per-account denial (401/403 auth, 402 payment). `models` is
117
+ * empty; unlike transport/parse failures, sibling accounts can still supply
118
+ * an authoritative catalog.
120
119
  */
121
- rejectedStatus?: 401 | 403;
120
+ rejectedStatus?: 401 | 402 | 403;
122
121
  }
123
122
 
124
123
  /**
@@ -148,7 +147,7 @@ export async function fetchCodexModels(options: CodexModelDiscoveryOptions): Pro
148
147
  continue;
149
148
  }
150
149
 
151
- if (response.status === 401 || response.status === 403) {
150
+ if (response.status === 401 || response.status === 402 || response.status === 403) {
152
151
  return { models: [], rejectedStatus: response.status };
153
152
  }
154
153
  if (!response.ok) {