@anthropic-ai/claude-agent-sdk 0.3.318 → 0.3.321
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 +9 -2
- package/bridge.mjs +84 -84
- package/browser-sdk.js +63 -63
- package/core-4jkx88px.mjs +34 -0
- package/core-9cm2w1sd.mjs +18 -0
- package/core-hz6x1gbv.mjs +45 -0
- package/core-ke81nxtn.mjs +17 -0
- package/core.mjs +11 -11
- package/manifest.json +22 -22
- package/manifest.zst.json +26 -26
- package/package.json +14 -14
- package/sdk-tools.d.ts +2 -1
- package/sdk.d.ts +61 -14
- package/sdk.mjs +90 -88
- package/core-aydj4gn2.mjs +0 -34
- package/core-dx5t072s.mjs +0 -17
- package/core-gh89n9s3.mjs +0 -43
- package/core-z711jz48.mjs +0 -18
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)
|
|
271
|
-
* freshness window — re-authenticate)
|
|
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';
|