@superatomai/sdk-node 0.0.28 → 0.0.30
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.d.mts +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +2988 -2794
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2966 -2772
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -587,7 +587,7 @@ type CollectionOperation = 'getMany' | 'getOne' | 'query' | 'mutation' | 'update
|
|
|
587
587
|
type CollectionHandler<TParams = any, TResult = any> = (params: TParams) => Promise<TResult> | TResult;
|
|
588
588
|
type LLMProvider = 'anthropic' | 'groq' | 'gemini' | 'openai';
|
|
589
589
|
|
|
590
|
-
type DatabaseType = 'postgresql' | 'mssql';
|
|
590
|
+
type DatabaseType = 'postgresql' | 'mssql' | 'snowflake' | 'mysql';
|
|
591
591
|
interface SuperatomSDKConfig {
|
|
592
592
|
url?: string;
|
|
593
593
|
apiKey?: string;
|
|
@@ -1650,6 +1650,10 @@ declare class SuperatomSDK {
|
|
|
1650
1650
|
private userManager;
|
|
1651
1651
|
private dashboardManager;
|
|
1652
1652
|
private reportManager;
|
|
1653
|
+
private pingInterval;
|
|
1654
|
+
private lastPong;
|
|
1655
|
+
private readonly PING_INTERVAL_MS;
|
|
1656
|
+
private readonly PONG_TIMEOUT_MS;
|
|
1653
1657
|
constructor(config: SuperatomSDKConfig);
|
|
1654
1658
|
/**
|
|
1655
1659
|
* Initialize PromptLoader and load prompts into memory
|
|
@@ -1717,6 +1721,19 @@ declare class SuperatomSDK {
|
|
|
1717
1721
|
*/
|
|
1718
1722
|
addCollection<TParams = any, TResult = any>(collectionName: string, operation: CollectionOperation | string, handler: CollectionHandler<TParams, TResult>): void;
|
|
1719
1723
|
private handleReconnect;
|
|
1724
|
+
/**
|
|
1725
|
+
* Start heartbeat to keep WebSocket connection alive
|
|
1726
|
+
* Sends PING every 3 minutes to prevent idle timeout from cloud infrastructure
|
|
1727
|
+
*/
|
|
1728
|
+
private startHeartbeat;
|
|
1729
|
+
/**
|
|
1730
|
+
* Stop the heartbeat interval
|
|
1731
|
+
*/
|
|
1732
|
+
private stopHeartbeat;
|
|
1733
|
+
/**
|
|
1734
|
+
* Handle PONG response from server
|
|
1735
|
+
*/
|
|
1736
|
+
private handlePong;
|
|
1720
1737
|
private storeComponents;
|
|
1721
1738
|
/**
|
|
1722
1739
|
* Set tools for the SDK instance
|
package/dist/index.d.ts
CHANGED
|
@@ -587,7 +587,7 @@ type CollectionOperation = 'getMany' | 'getOne' | 'query' | 'mutation' | 'update
|
|
|
587
587
|
type CollectionHandler<TParams = any, TResult = any> = (params: TParams) => Promise<TResult> | TResult;
|
|
588
588
|
type LLMProvider = 'anthropic' | 'groq' | 'gemini' | 'openai';
|
|
589
589
|
|
|
590
|
-
type DatabaseType = 'postgresql' | 'mssql';
|
|
590
|
+
type DatabaseType = 'postgresql' | 'mssql' | 'snowflake' | 'mysql';
|
|
591
591
|
interface SuperatomSDKConfig {
|
|
592
592
|
url?: string;
|
|
593
593
|
apiKey?: string;
|
|
@@ -1650,6 +1650,10 @@ declare class SuperatomSDK {
|
|
|
1650
1650
|
private userManager;
|
|
1651
1651
|
private dashboardManager;
|
|
1652
1652
|
private reportManager;
|
|
1653
|
+
private pingInterval;
|
|
1654
|
+
private lastPong;
|
|
1655
|
+
private readonly PING_INTERVAL_MS;
|
|
1656
|
+
private readonly PONG_TIMEOUT_MS;
|
|
1653
1657
|
constructor(config: SuperatomSDKConfig);
|
|
1654
1658
|
/**
|
|
1655
1659
|
* Initialize PromptLoader and load prompts into memory
|
|
@@ -1717,6 +1721,19 @@ declare class SuperatomSDK {
|
|
|
1717
1721
|
*/
|
|
1718
1722
|
addCollection<TParams = any, TResult = any>(collectionName: string, operation: CollectionOperation | string, handler: CollectionHandler<TParams, TResult>): void;
|
|
1719
1723
|
private handleReconnect;
|
|
1724
|
+
/**
|
|
1725
|
+
* Start heartbeat to keep WebSocket connection alive
|
|
1726
|
+
* Sends PING every 3 minutes to prevent idle timeout from cloud infrastructure
|
|
1727
|
+
*/
|
|
1728
|
+
private startHeartbeat;
|
|
1729
|
+
/**
|
|
1730
|
+
* Stop the heartbeat interval
|
|
1731
|
+
*/
|
|
1732
|
+
private stopHeartbeat;
|
|
1733
|
+
/**
|
|
1734
|
+
* Handle PONG response from server
|
|
1735
|
+
*/
|
|
1736
|
+
private handlePong;
|
|
1720
1737
|
private storeComponents;
|
|
1721
1738
|
/**
|
|
1722
1739
|
* Set tools for the SDK instance
|