@anthropic-ai/claude-agent-sdk 0.3.318 → 0.3.319

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/bridge.d.ts CHANGED
@@ -267,8 +267,10 @@ export type RemoteCredentials = {
267
267
  * Terminal failure from `fetchRemoteCredentials` — retrying with the same
268
268
  * inputs is guaranteed to fail. Server-minted reasons arrive as 403 with
269
269
  * `error.resource` set to `"untrusted_device"` (token missing/revoked —
270
- * enroll) or `"session_stale_relogin"` (OAuth session older than the
271
- * freshness window — re-authenticate). `"invalid_session_id"` is
270
+ * enroll), `"session_stale_relogin"` (OAuth session older than the
271
+ * freshness window — re-authenticate) or
272
+ * `"session_security_tier_below_org_policy"` (the session is older than the
273
+ * device policy it now falls under — create a new one). `"invalid_session_id"` is
272
274
  * client-minted: the session id failed validation (`/^[a-zA-Z0-9_-]+$/`)
273
275
  * before any request was sent. `"request_rejected"` is any other
274
276
  * authoritative non-retryable 4xx (the server answered; neither time nor a
@@ -281,6 +283,11 @@ export type RemoteCredentials = {
281
283
  export type CredentialsFailure = {
282
284
  terminal: true;
283
285
  reason: 'untrusted_device' | 'session_stale_relogin' | 'invalid_session_id';
286
+ } | {
287
+ terminal: true;
288
+ reason: 'session_security_tier_below_org_policy';
289
+ /** HTTP status, as on the `request_rejected` that this refusal used to be. */
290
+ status: 403;
284
291
  } | {
285
292
  terminal: true;
286
293
  reason: 'request_rejected';