@getanyapi/sdk 0.9.9 → 0.9.10
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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -131,7 +131,11 @@ interface ClientOptions {
|
|
|
131
131
|
fetch?: typeof fetch;
|
|
132
132
|
/** Max retry attempts for retryable failures (429 + retry-safe network). Default 2. */
|
|
133
133
|
maxRetries?: number;
|
|
134
|
-
/**
|
|
134
|
+
/**
|
|
135
|
+
* Per-request timeout in milliseconds. Default 300000, matching the gateway's own
|
|
136
|
+
* execution budget: the slowest lane declares a 240s per-attempt ceiling, so a
|
|
137
|
+
* smaller default can abort a run the server was still going to answer.
|
|
138
|
+
*/
|
|
135
139
|
timeoutMs?: number;
|
|
136
140
|
/** Send Idempotency-Key on billed POSTs. Default "auto"; use "off" as a kill switch. */
|
|
137
141
|
idempotency?: "auto" | "off";
|
package/dist/index.d.ts
CHANGED
|
@@ -131,7 +131,11 @@ interface ClientOptions {
|
|
|
131
131
|
fetch?: typeof fetch;
|
|
132
132
|
/** Max retry attempts for retryable failures (429 + retry-safe network). Default 2. */
|
|
133
133
|
maxRetries?: number;
|
|
134
|
-
/**
|
|
134
|
+
/**
|
|
135
|
+
* Per-request timeout in milliseconds. Default 300000, matching the gateway's own
|
|
136
|
+
* execution budget: the slowest lane declares a 240s per-attempt ceiling, so a
|
|
137
|
+
* smaller default can abort a run the server was still going to answer.
|
|
138
|
+
*/
|
|
135
139
|
timeoutMs?: number;
|
|
136
140
|
/** Send Idempotency-Key on billed POSTs. Default "auto"; use "off" as a kill switch. */
|
|
137
141
|
idempotency?: "auto" | "off";
|
package/dist/index.js
CHANGED
|
@@ -394,7 +394,7 @@ async function agentSignup(options = {}) {
|
|
|
394
394
|
|
|
395
395
|
// src/core/client.ts
|
|
396
396
|
var DEFAULT_BASE_URL2 = "https://api.getanyapi.com";
|
|
397
|
-
var DEFAULT_TIMEOUT_MS =
|
|
397
|
+
var DEFAULT_TIMEOUT_MS = 3e5;
|
|
398
398
|
var DEFAULT_MAX_RETRIES = 2;
|
|
399
399
|
var RETRY_BASE_DELAY_MS = 500;
|
|
400
400
|
var RETRY_MAX_DELAY_MS = 8e3;
|