agentid-sdk 0.1.14 → 0.1.15

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/dist/index.js CHANGED
@@ -2398,6 +2398,9 @@ var AgentID = class {
2398
2398
  return { ok: true, status: response.status, reason: null };
2399
2399
  }
2400
2400
  const reason = responseBody && typeof responseBody === "object" && typeof responseBody.reason === "string" ? responseBody.reason ?? null : null;
2401
+ if (response.status === 409 && reason === "replay_detected") {
2402
+ return { ok: true, status: response.status, reason };
2403
+ }
2401
2404
  const retryable = response.status >= 500 || response.status === 429;
2402
2405
  if (retryable && attempt < INGEST_MAX_ATTEMPTS - 1) {
2403
2406
  await waitForIngestRetry(attempt);
package/dist/index.mjs CHANGED
@@ -2360,6 +2360,9 @@ var AgentID = class {
2360
2360
  return { ok: true, status: response.status, reason: null };
2361
2361
  }
2362
2362
  const reason = responseBody && typeof responseBody === "object" && typeof responseBody.reason === "string" ? responseBody.reason ?? null : null;
2363
+ if (response.status === 409 && reason === "replay_detected") {
2364
+ return { ok: true, status: response.status, reason };
2365
+ }
2363
2366
  const retryable = response.status >= 500 || response.status === 429;
2364
2367
  if (retryable && attempt < INGEST_MAX_ATTEMPTS - 1) {
2365
2368
  await waitForIngestRetry(attempt);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentid-sdk",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "AgentID JavaScript/TypeScript SDK for guard, ingest, tracing, and analytics.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://agentid.ai",