@superatomai/sdk-node 0.0.41 → 0.0.43
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/README.md +942 -942
- package/dist/index.d.mts +38 -15
- package/dist/index.d.ts +38 -15
- package/dist/index.js +486 -97
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +486 -97
- package/dist/index.mjs.map +1 -1
- package/package.json +49 -48
package/dist/index.d.mts
CHANGED
|
@@ -628,19 +628,19 @@ declare const ComponentSchema: z.ZodObject<{
|
|
|
628
628
|
description: z.ZodOptional<z.ZodString>;
|
|
629
629
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
630
630
|
actions: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
631
|
-
}, "
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
config
|
|
636
|
-
actions
|
|
637
|
-
}, {
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
config
|
|
642
|
-
actions
|
|
643
|
-
}
|
|
631
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
632
|
+
query: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>;
|
|
633
|
+
title: z.ZodOptional<z.ZodString>;
|
|
634
|
+
description: z.ZodOptional<z.ZodString>;
|
|
635
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
636
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
637
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
638
|
+
query: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>;
|
|
639
|
+
title: z.ZodOptional<z.ZodString>;
|
|
640
|
+
description: z.ZodOptional<z.ZodString>;
|
|
641
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
642
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
643
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
644
644
|
category: z.ZodOptional<z.ZodString>;
|
|
645
645
|
keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
646
646
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -654,6 +654,8 @@ declare const ComponentSchema: z.ZodObject<{
|
|
|
654
654
|
title?: string | undefined;
|
|
655
655
|
config?: Record<string, unknown> | undefined;
|
|
656
656
|
actions?: any[] | undefined;
|
|
657
|
+
} & {
|
|
658
|
+
[k: string]: unknown;
|
|
657
659
|
};
|
|
658
660
|
displayName?: string | undefined;
|
|
659
661
|
isDisplayComp?: boolean | undefined;
|
|
@@ -670,6 +672,8 @@ declare const ComponentSchema: z.ZodObject<{
|
|
|
670
672
|
title?: string | undefined;
|
|
671
673
|
config?: Record<string, unknown> | undefined;
|
|
672
674
|
actions?: any[] | undefined;
|
|
675
|
+
} & {
|
|
676
|
+
[k: string]: unknown;
|
|
673
677
|
};
|
|
674
678
|
displayName?: string | undefined;
|
|
675
679
|
isDisplayComp?: boolean | undefined;
|
|
@@ -709,11 +713,26 @@ type DatabaseType = 'postgresql' | 'mssql' | 'snowflake' | 'mysql';
|
|
|
709
713
|
* - 'balanced': Use best model for complex tasks, fast model for simple tasks (default)
|
|
710
714
|
*/
|
|
711
715
|
type ModelStrategy = 'best' | 'fast' | 'balanced';
|
|
716
|
+
/**
|
|
717
|
+
* Model configuration for DASH_COMP flow (dashboard component picking)
|
|
718
|
+
* Allows separate control of models used for component selection
|
|
719
|
+
*/
|
|
720
|
+
interface DashCompModelConfig {
|
|
721
|
+
/**
|
|
722
|
+
* Primary model for DASH_COMP requests
|
|
723
|
+
* Format: "provider/model-name" (e.g., "anthropic/claude-sonnet-4-5-20250929")
|
|
724
|
+
*/
|
|
725
|
+
model?: string;
|
|
726
|
+
/**
|
|
727
|
+
* Fast model for simpler DASH_COMP tasks (optional)
|
|
728
|
+
* Format: "provider/model-name" (e.g., "anthropic/claude-haiku-4-5-20251001")
|
|
729
|
+
*/
|
|
730
|
+
fastModel?: string;
|
|
731
|
+
}
|
|
712
732
|
interface SuperatomSDKConfig {
|
|
713
733
|
url?: string;
|
|
714
734
|
apiKey?: string;
|
|
715
735
|
projectId: string;
|
|
716
|
-
userId?: string;
|
|
717
736
|
type?: string;
|
|
718
737
|
bundleDir?: string;
|
|
719
738
|
promptsDir?: string;
|
|
@@ -731,6 +750,11 @@ interface SuperatomSDKConfig {
|
|
|
731
750
|
* - 'balanced': Use best model for complex tasks, fast model for simple tasks (default)
|
|
732
751
|
*/
|
|
733
752
|
modelStrategy?: ModelStrategy;
|
|
753
|
+
/**
|
|
754
|
+
* Separate model configuration for DASH_COMP flow (dashboard component picking)
|
|
755
|
+
* If not provided, falls back to provider-based model selection
|
|
756
|
+
*/
|
|
757
|
+
dashCompModels?: DashCompModelConfig;
|
|
734
758
|
}
|
|
735
759
|
|
|
736
760
|
declare const KbNodesQueryFiltersSchema: z.ZodObject<{
|
|
@@ -2088,7 +2112,6 @@ declare class SuperatomSDK {
|
|
|
2088
2112
|
private url;
|
|
2089
2113
|
private apiKey?;
|
|
2090
2114
|
private projectId;
|
|
2091
|
-
private userId;
|
|
2092
2115
|
private type;
|
|
2093
2116
|
private bundleDir;
|
|
2094
2117
|
private messageHandlers;
|
package/dist/index.d.ts
CHANGED
|
@@ -628,19 +628,19 @@ declare const ComponentSchema: z.ZodObject<{
|
|
|
628
628
|
description: z.ZodOptional<z.ZodString>;
|
|
629
629
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
630
630
|
actions: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
631
|
-
}, "
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
config
|
|
636
|
-
actions
|
|
637
|
-
}, {
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
config
|
|
642
|
-
actions
|
|
643
|
-
}
|
|
631
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
632
|
+
query: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>;
|
|
633
|
+
title: z.ZodOptional<z.ZodString>;
|
|
634
|
+
description: z.ZodOptional<z.ZodString>;
|
|
635
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
636
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
637
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
638
|
+
query: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>]>>;
|
|
639
|
+
title: z.ZodOptional<z.ZodString>;
|
|
640
|
+
description: z.ZodOptional<z.ZodString>;
|
|
641
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
642
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
|
|
643
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
644
644
|
category: z.ZodOptional<z.ZodString>;
|
|
645
645
|
keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
646
646
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -654,6 +654,8 @@ declare const ComponentSchema: z.ZodObject<{
|
|
|
654
654
|
title?: string | undefined;
|
|
655
655
|
config?: Record<string, unknown> | undefined;
|
|
656
656
|
actions?: any[] | undefined;
|
|
657
|
+
} & {
|
|
658
|
+
[k: string]: unknown;
|
|
657
659
|
};
|
|
658
660
|
displayName?: string | undefined;
|
|
659
661
|
isDisplayComp?: boolean | undefined;
|
|
@@ -670,6 +672,8 @@ declare const ComponentSchema: z.ZodObject<{
|
|
|
670
672
|
title?: string | undefined;
|
|
671
673
|
config?: Record<string, unknown> | undefined;
|
|
672
674
|
actions?: any[] | undefined;
|
|
675
|
+
} & {
|
|
676
|
+
[k: string]: unknown;
|
|
673
677
|
};
|
|
674
678
|
displayName?: string | undefined;
|
|
675
679
|
isDisplayComp?: boolean | undefined;
|
|
@@ -709,11 +713,26 @@ type DatabaseType = 'postgresql' | 'mssql' | 'snowflake' | 'mysql';
|
|
|
709
713
|
* - 'balanced': Use best model for complex tasks, fast model for simple tasks (default)
|
|
710
714
|
*/
|
|
711
715
|
type ModelStrategy = 'best' | 'fast' | 'balanced';
|
|
716
|
+
/**
|
|
717
|
+
* Model configuration for DASH_COMP flow (dashboard component picking)
|
|
718
|
+
* Allows separate control of models used for component selection
|
|
719
|
+
*/
|
|
720
|
+
interface DashCompModelConfig {
|
|
721
|
+
/**
|
|
722
|
+
* Primary model for DASH_COMP requests
|
|
723
|
+
* Format: "provider/model-name" (e.g., "anthropic/claude-sonnet-4-5-20250929")
|
|
724
|
+
*/
|
|
725
|
+
model?: string;
|
|
726
|
+
/**
|
|
727
|
+
* Fast model for simpler DASH_COMP tasks (optional)
|
|
728
|
+
* Format: "provider/model-name" (e.g., "anthropic/claude-haiku-4-5-20251001")
|
|
729
|
+
*/
|
|
730
|
+
fastModel?: string;
|
|
731
|
+
}
|
|
712
732
|
interface SuperatomSDKConfig {
|
|
713
733
|
url?: string;
|
|
714
734
|
apiKey?: string;
|
|
715
735
|
projectId: string;
|
|
716
|
-
userId?: string;
|
|
717
736
|
type?: string;
|
|
718
737
|
bundleDir?: string;
|
|
719
738
|
promptsDir?: string;
|
|
@@ -731,6 +750,11 @@ interface SuperatomSDKConfig {
|
|
|
731
750
|
* - 'balanced': Use best model for complex tasks, fast model for simple tasks (default)
|
|
732
751
|
*/
|
|
733
752
|
modelStrategy?: ModelStrategy;
|
|
753
|
+
/**
|
|
754
|
+
* Separate model configuration for DASH_COMP flow (dashboard component picking)
|
|
755
|
+
* If not provided, falls back to provider-based model selection
|
|
756
|
+
*/
|
|
757
|
+
dashCompModels?: DashCompModelConfig;
|
|
734
758
|
}
|
|
735
759
|
|
|
736
760
|
declare const KbNodesQueryFiltersSchema: z.ZodObject<{
|
|
@@ -2088,7 +2112,6 @@ declare class SuperatomSDK {
|
|
|
2088
2112
|
private url;
|
|
2089
2113
|
private apiKey?;
|
|
2090
2114
|
private projectId;
|
|
2091
|
-
private userId;
|
|
2092
2115
|
private type;
|
|
2093
2116
|
private bundleDir;
|
|
2094
2117
|
private messageHandlers;
|