@synsci/sdk 2.0.78 → 2.0.79-test.34175982442

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.
@@ -1447,7 +1447,7 @@ export declare class Runtime extends HeyApiClient {
1447
1447
  /**
1448
1448
  * Resynchronize a research session
1449
1449
  *
1450
- * Returns durable run receipts, an event cursor and live pending decisions belonging to this server process. Replayed decision events are historical; only pending requests in a fresh snapshot are actionable.
1450
+ * Returns durable run receipts, an event cursor and live pending decisions belonging to this server process, including decisions raised by delegated child sessions of this session. Replayed decision events are historical; only pending requests in a fresh snapshot are actionable.
1451
1451
  */
1452
1452
  snapshot<ThrowOnError extends boolean = false>(parameters: {
1453
1453
  directory?: string;
@@ -1545,6 +1545,7 @@ export declare class Provider2 extends HeyApiClient {
1545
1545
  */
1546
1546
  list<ThrowOnError extends boolean = false>(parameters?: {
1547
1547
  directory?: string;
1548
+ refresh?: "true" | "false";
1548
1549
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProviderListResponses, unknown, ThrowOnError, "fields">;
1549
1550
  /**
1550
1551
  * Get provider auth methods
@@ -2698,7 +2698,7 @@ export class Runtime extends HeyApiClient {
2698
2698
  /**
2699
2699
  * Resynchronize a research session
2700
2700
  *
2701
- * Returns durable run receipts, an event cursor and live pending decisions belonging to this server process. Replayed decision events are historical; only pending requests in a fresh snapshot are actionable.
2701
+ * Returns durable run receipts, an event cursor and live pending decisions belonging to this server process, including decisions raised by delegated child sessions of this session. Replayed decision events are historical; only pending requests in a fresh snapshot are actionable.
2702
2702
  */
2703
2703
  snapshot(parameters, options) {
2704
2704
  const params = buildClientParams([parameters], [
@@ -2903,7 +2903,14 @@ export class Provider2 extends HeyApiClient {
2903
2903
  * Get a list of all available AI providers, including both available and connected ones.
2904
2904
  */
2905
2905
  list(parameters, options) {
2906
- const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
2906
+ const params = buildClientParams([parameters], [
2907
+ {
2908
+ args: [
2909
+ { in: "query", key: "directory" },
2910
+ { in: "query", key: "refresh" },
2911
+ ],
2912
+ },
2913
+ ]);
2907
2914
  return (options?.client ?? this.client).get({
2908
2915
  url: "/provider",
2909
2916
  ...options,
@@ -103,6 +103,7 @@ export type EventAccountUpdated = {
103
103
  type: "account.updated";
104
104
  properties: {
105
105
  refreshed_at: number;
106
+ error?: string;
106
107
  };
107
108
  };
108
109
  export type EventLspClientDiagnostics = {
@@ -1627,7 +1628,7 @@ export type ProviderConfig = {
1627
1628
  */
1628
1629
  idleTimeout?: number | false;
1629
1630
  /**
1630
- * Maximum wait for provider response headers in milliseconds, including connection setup and upstream admission. Defaults to 120000 (2 minutes). Set false to disable.
1631
+ * Maximum wait for provider response headers in milliseconds, including connection setup and upstream admission. Defaults to 300000 (5 minutes), and to disabled for local endpoints (loopback or .local base URLs and the ollama, lmstudio, llamacpp, vllm and jan providers), which send headers only after prompt processing. Set false to disable.
1631
1632
  */
1632
1633
  connectTimeout?: number | false;
1633
1634
  /**
@@ -1803,7 +1804,7 @@ export type Config = {
1803
1804
  */
1804
1805
  billing?: {
1805
1806
  /**
1806
- * How LLM inference is paid for. 'managed' uses Ace Credits; 'byok' uses only user-owned keys, subscriptions, or local models.
1807
+ * How LLM inference is paid for. 'managed' pays from the purchased Wallet; 'byok' uses only user-owned keys, subscriptions, or local models.
1807
1808
  */
1808
1809
  llm?: "managed" | "byok" | null;
1809
1810
  /**
@@ -1915,6 +1916,10 @@ export type Config = {
1915
1916
  * Token budget for the verbatim recent tail during compaction (default: clamp(0.20*usable, 8000, 32000))
1916
1917
  */
1917
1918
  tailTokens?: number;
1919
+ /**
1920
+ * How many of the most recent images are sent in full with each model request; older images become text placeholders that can be read again (default: 1)
1921
+ */
1922
+ recentImages?: number;
1918
1923
  };
1919
1924
  experimental?: {
1920
1925
  /**
@@ -2023,6 +2028,7 @@ export type Model = {
2023
2028
  };
2024
2029
  pricing?: {
2025
2030
  upstream_provider: "anthropic" | "gemini" | "xai" | "meta" | "openrouter";
2031
+ funding_fee_bps?: number;
2026
2032
  audited_at?: string;
2027
2033
  source_url?: string;
2028
2034
  };
@@ -2623,6 +2629,7 @@ export type AccountGetResponses = {
2623
2629
  error?: string;
2624
2630
  user?: unknown;
2625
2631
  balance_usd: number | null;
2632
+ available_usd: number | null;
2626
2633
  billing_mode: {
2627
2634
  mode: "byok" | "managed";
2628
2635
  balance_cents: number;
@@ -7534,6 +7541,7 @@ export type SettingsWalletGetResponses = {
7534
7541
  200: {
7535
7542
  signedIn: boolean;
7536
7543
  balanceUsd: number | null;
7544
+ availableUsd: number | null;
7537
7545
  balanceRedacted?: boolean;
7538
7546
  accessVerified?: boolean;
7539
7547
  billingMode: "managed" | "byok" | null;
@@ -7544,7 +7552,7 @@ export type SettingsWalletGetResponses = {
7544
7552
  activationAuthorizationUsd: number;
7545
7553
  reloadThresholdUsd: number;
7546
7554
  reloadAmountUsd: number;
7547
- serviceMarginPercent: number;
7555
+ fundingFeePercent: number;
7548
7556
  processingFeeDisclosedSeparately: boolean;
7549
7557
  reloadControlledByAce: boolean;
7550
7558
  };
@@ -10210,6 +10218,10 @@ export type ProviderListData = {
10210
10218
  path?: never;
10211
10219
  query?: {
10212
10220
  directory?: string;
10221
+ /**
10222
+ * Re-read managed model pricing now, skipping its cache and failure cooldown
10223
+ */
10224
+ refresh?: "true" | "false";
10213
10225
  };
10214
10226
  url: "/provider";
10215
10227
  };
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.78",
4
+ "version": "2.0.79-test.34175982442",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
7
7
  "scripts": {