@synsci/sdk 2.0.71 → 2.0.72-test.33949859537

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.
@@ -680,12 +680,13 @@ export type SessionRequestProgress = {
680
680
  agent: string;
681
681
  providerID: string;
682
682
  modelID: string;
683
- phase: "connecting" | "waiting_first_token" | "streaming" | "conflict_wait" | "retry_wait" | "done" | "error";
683
+ phase: "preparing" | "connecting" | "waiting_first_token" | "streaming" | "conflict_wait" | "retry_wait" | "done" | "error";
684
684
  since: number;
685
685
  elapsedMs: number;
686
686
  retryAfterMs?: number;
687
687
  detail?: string;
688
688
  firstOutputMs?: number;
689
+ lastOutputAt?: number;
689
690
  stalls: number;
690
691
  };
691
692
  export type EventSessionRequestProgress = {
@@ -1592,13 +1593,21 @@ export type ProviderConfig = {
1592
1593
  */
1593
1594
  setCacheKey?: boolean;
1594
1595
  /**
1595
- * Optional total wall-clock timeout in milliseconds for a provider request. No total timeout is applied by default. Use idleTimeout to bound silent connections without cutting off active generations.
1596
+ * Optional total wall-clock timeout in milliseconds for a provider request. No total timeout is applied by default. Use connectTimeout, idleTimeout, and outputIdleTimeout to bound stalled requests without capping active generations.
1596
1597
  */
1597
1598
  timeout?: number | false;
1598
1599
  /**
1599
- * Optional maximum provider inactivity in milliseconds while connecting or waiting for the next response-body chunk. Disabled by default; when configured it resets on each body chunk and does not cap total generation time.
1600
+ * Maximum provider response-body inactivity in milliseconds. Defaults to 300000 (5 minutes). Set false to disable; this does not cap total generation time.
1600
1601
  */
1601
1602
  idleTimeout?: number | false;
1603
+ /**
1604
+ * Maximum wait for provider response headers in milliseconds, including connection setup and upstream admission. Defaults to 120000 (2 minutes). Set false to disable.
1605
+ */
1606
+ connectTimeout?: number | false;
1607
+ /**
1608
+ * Maximum wait for new readable model output or tool-call activity in milliseconds. Defaults to 600000 (10 minutes); transport keepalives do not reset it. Suspended during tool execution and local processing. Set false to disable.
1609
+ */
1610
+ outputIdleTimeout?: number | false;
1602
1611
  [key: string]: unknown;
1603
1612
  };
1604
1613
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@synsci/sdk",
4
- "version": "2.0.71",
4
+ "version": "2.0.72-test.33949859537",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
7
7
  "scripts": {