@superatomai/sdk-node 0.0.10 → 0.0.12

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 CHANGED
@@ -543,6 +543,26 @@ declare const IncomingMessageSchema: z.ZodObject<{
543
543
  payload?: unknown;
544
544
  }>;
545
545
  type IncomingMessage = z.infer<typeof IncomingMessageSchema>;
546
+ declare const ToolSchema: z.ZodObject<{
547
+ id: z.ZodString;
548
+ name: z.ZodString;
549
+ description: z.ZodString;
550
+ params: z.ZodRecord<z.ZodString, z.ZodString>;
551
+ fn: z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodAny>;
552
+ }, "strip", z.ZodTypeAny, {
553
+ id: string;
554
+ params: Record<string, string>;
555
+ name: string;
556
+ description: string;
557
+ fn: (args_0: any, ...args: unknown[]) => any;
558
+ }, {
559
+ id: string;
560
+ params: Record<string, string>;
561
+ name: string;
562
+ description: string;
563
+ fn: (args_0: any, ...args: unknown[]) => any;
564
+ }>;
565
+ type Tool$1 = z.infer<typeof ToolSchema>;
546
566
  type CollectionOperation = 'getMany' | 'getOne' | 'query' | 'mutation' | 'updateOne' | 'deleteOne' | 'createOne';
547
567
  type CollectionHandler<TParams = any, TResult = any> = (params: TParams) => Promise<TResult> | TResult;
548
568
  type LLMProvider = 'anthropic' | 'groq';
@@ -1318,6 +1338,7 @@ declare class SuperatomSDK {
1318
1338
  private maxReconnectAttempts;
1319
1339
  private collections;
1320
1340
  private components;
1341
+ private tools;
1321
1342
  private anthropicApiKey;
1322
1343
  private groqApiKey;
1323
1344
  private llmProviders;
@@ -1392,6 +1413,14 @@ declare class SuperatomSDK {
1392
1413
  addCollection<TParams = any, TResult = any>(collectionName: string, operation: CollectionOperation | string, handler: CollectionHandler<TParams, TResult>): void;
1393
1414
  private handleReconnect;
1394
1415
  private storeComponents;
1416
+ /**
1417
+ * Set tools for the SDK instance
1418
+ */
1419
+ setTools(tools: Tool$1[]): void;
1420
+ /**
1421
+ * Get the stored tools
1422
+ */
1423
+ getTools(): Tool$1[];
1395
1424
  }
1396
1425
 
1397
- export { type Action, CONTEXT_CONFIG, type CapturedLog, CleanupService, type CollectionHandler, type CollectionOperation, type IncomingMessage, LLM, type LogLevel, type Message, SDK_VERSION, STORAGE_CONFIG, SuperatomSDK, type SuperatomSDKConfig, Thread, ThreadManager, UIBlock, UILogCollector, type User, UserManager, type UsersData, logger };
1426
+ export { type Action, CONTEXT_CONFIG, type CapturedLog, CleanupService, type CollectionHandler, type CollectionOperation, type IncomingMessage, LLM, type LogLevel, type Message, SDK_VERSION, STORAGE_CONFIG, SuperatomSDK, type SuperatomSDKConfig, Thread, ThreadManager, type Tool$1 as Tool, UIBlock, UILogCollector, type User, UserManager, type UsersData, logger };
package/dist/index.d.ts CHANGED
@@ -543,6 +543,26 @@ declare const IncomingMessageSchema: z.ZodObject<{
543
543
  payload?: unknown;
544
544
  }>;
545
545
  type IncomingMessage = z.infer<typeof IncomingMessageSchema>;
546
+ declare const ToolSchema: z.ZodObject<{
547
+ id: z.ZodString;
548
+ name: z.ZodString;
549
+ description: z.ZodString;
550
+ params: z.ZodRecord<z.ZodString, z.ZodString>;
551
+ fn: z.ZodFunction<z.ZodTuple<[z.ZodAny], z.ZodUnknown>, z.ZodAny>;
552
+ }, "strip", z.ZodTypeAny, {
553
+ id: string;
554
+ params: Record<string, string>;
555
+ name: string;
556
+ description: string;
557
+ fn: (args_0: any, ...args: unknown[]) => any;
558
+ }, {
559
+ id: string;
560
+ params: Record<string, string>;
561
+ name: string;
562
+ description: string;
563
+ fn: (args_0: any, ...args: unknown[]) => any;
564
+ }>;
565
+ type Tool$1 = z.infer<typeof ToolSchema>;
546
566
  type CollectionOperation = 'getMany' | 'getOne' | 'query' | 'mutation' | 'updateOne' | 'deleteOne' | 'createOne';
547
567
  type CollectionHandler<TParams = any, TResult = any> = (params: TParams) => Promise<TResult> | TResult;
548
568
  type LLMProvider = 'anthropic' | 'groq';
@@ -1318,6 +1338,7 @@ declare class SuperatomSDK {
1318
1338
  private maxReconnectAttempts;
1319
1339
  private collections;
1320
1340
  private components;
1341
+ private tools;
1321
1342
  private anthropicApiKey;
1322
1343
  private groqApiKey;
1323
1344
  private llmProviders;
@@ -1392,6 +1413,14 @@ declare class SuperatomSDK {
1392
1413
  addCollection<TParams = any, TResult = any>(collectionName: string, operation: CollectionOperation | string, handler: CollectionHandler<TParams, TResult>): void;
1393
1414
  private handleReconnect;
1394
1415
  private storeComponents;
1416
+ /**
1417
+ * Set tools for the SDK instance
1418
+ */
1419
+ setTools(tools: Tool$1[]): void;
1420
+ /**
1421
+ * Get the stored tools
1422
+ */
1423
+ getTools(): Tool$1[];
1395
1424
  }
1396
1425
 
1397
- export { type Action, CONTEXT_CONFIG, type CapturedLog, CleanupService, type CollectionHandler, type CollectionOperation, type IncomingMessage, LLM, type LogLevel, type Message, SDK_VERSION, STORAGE_CONFIG, SuperatomSDK, type SuperatomSDKConfig, Thread, ThreadManager, UIBlock, UILogCollector, type User, UserManager, type UsersData, logger };
1426
+ export { type Action, CONTEXT_CONFIG, type CapturedLog, CleanupService, type CollectionHandler, type CollectionOperation, type IncomingMessage, LLM, type LogLevel, type Message, SDK_VERSION, STORAGE_CONFIG, SuperatomSDK, type SuperatomSDKConfig, Thread, ThreadManager, type Tool$1 as Tool, UIBlock, UILogCollector, type User, UserManager, type UsersData, logger };