@anthropic-ai/claude-agent-sdk 0.3.209 → 0.3.211

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 CHANGED
@@ -55,7 +55,7 @@ When you use the Claude Agent SDK, we collect feedback, which includes usage dat
55
55
 
56
56
  ### How we use your data
57
57
 
58
- See our [data usage policies](https://docs.anthropic.com/en/docs/claude-code/data-usage).
58
+ See our [data usage policies](https://code.claude.com/docs/en/data-usage).
59
59
 
60
60
  ### Privacy safeguards
61
61
 
package/bridge.d.ts CHANGED
@@ -197,16 +197,18 @@ export type RemoteCredentials = {
197
197
  worker_epoch: number;
198
198
  };
199
199
  /**
200
- * Terminal authz failure from `POST /bridge` — retrying with the same inputs
201
- * is guaranteed to fail. Returned for 403 with `error.resource` set to
202
- * `"untrusted_device"` (token missing/revoked — enroll) or
203
- * `"session_stale_relogin"` (OAuth session older than the freshness window —
204
- * re-authenticate).
200
+ * Terminal failure from `fetchRemoteCredentials` — retrying with the same
201
+ * inputs is guaranteed to fail. Server-minted reasons arrive as 403 with
202
+ * `error.resource` set to `"untrusted_device"` (token missing/revoked —
203
+ * enroll) or `"session_stale_relogin"` (OAuth session older than the
204
+ * freshness window — re-authenticate). `"invalid_session_id"` is
205
+ * client-minted: the session id failed validation (`/^[a-zA-Z0-9_-]+$/`)
206
+ * before any request was sent.
205
207
  * @alpha
206
208
  */
207
209
  export type CredentialsFailure = {
208
210
  terminal: true;
209
- reason: 'untrusted_device' | 'session_stale_relogin';
211
+ reason: 'untrusted_device' | 'session_stale_relogin' | 'invalid_session_id';
210
212
  };
211
213
  /**
212
214
  * Type guard for `fetchRemoteCredentials` results.