@superatomai/sdk-web 0.0.13 → 0.0.14

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.cts CHANGED
@@ -910,6 +910,224 @@ declare const BookmarkQueryFiltersSchema: z.ZodObject<{
910
910
  name: z.ZodOptional<z.ZodString>;
911
911
  }, z.core.$strip>;
912
912
  type BookmarkQueryFilters = z.infer<typeof BookmarkQueryFiltersSchema>;
913
+ /**
914
+ * KB Node data schema
915
+ * Synced with sdk-nodejs/project-setup: kb-nodes.ts
916
+ */
917
+ declare const KbNodeDataSchema: z.ZodObject<{
918
+ id: z.ZodOptional<z.ZodNumber>;
919
+ title: z.ZodString;
920
+ content: z.ZodString;
921
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
922
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
923
+ createdBy: z.ZodNumber;
924
+ updatedBy: z.ZodOptional<z.ZodNumber>;
925
+ createdAt: z.ZodOptional<z.ZodString>;
926
+ updatedAt: z.ZodOptional<z.ZodString>;
927
+ }, z.core.$strip>;
928
+ type KbNodeData = z.infer<typeof KbNodeDataSchema>;
929
+ /**
930
+ * KB Nodes query filters schema
931
+ * Synced with sdk-nodejs: KbNodesQueryFiltersSchema
932
+ */
933
+ declare const KbNodesQueryFiltersSchema: z.ZodObject<{
934
+ query: z.ZodOptional<z.ZodString>;
935
+ category: z.ZodOptional<z.ZodString>;
936
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
937
+ createdBy: z.ZodOptional<z.ZodNumber>;
938
+ }, z.core.$strip>;
939
+ type KbNodesQueryFilters = z.infer<typeof KbNodesQueryFiltersSchema>;
940
+ /**
941
+ * KB Nodes request payload schema
942
+ * Synced with sdk-nodejs: KbNodesRequestPayloadSchema
943
+ */
944
+ declare const KbNodesRequestPayloadSchema: z.ZodObject<{
945
+ operation: z.ZodEnum<{
946
+ search: "search";
947
+ create: "create";
948
+ update: "update";
949
+ delete: "delete";
950
+ getAll: "getAll";
951
+ getOne: "getOne";
952
+ getByCategory: "getByCategory";
953
+ getByUser: "getByUser";
954
+ getCategories: "getCategories";
955
+ getTags: "getTags";
956
+ }>;
957
+ data: z.ZodOptional<z.ZodObject<{
958
+ id: z.ZodOptional<z.ZodNumber>;
959
+ title: z.ZodOptional<z.ZodString>;
960
+ content: z.ZodOptional<z.ZodString>;
961
+ category: z.ZodOptional<z.ZodString>;
962
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
963
+ createdBy: z.ZodOptional<z.ZodNumber>;
964
+ updatedBy: z.ZodOptional<z.ZodNumber>;
965
+ userId: z.ZodOptional<z.ZodNumber>;
966
+ query: z.ZodOptional<z.ZodString>;
967
+ filters: z.ZodOptional<z.ZodObject<{
968
+ query: z.ZodOptional<z.ZodString>;
969
+ category: z.ZodOptional<z.ZodString>;
970
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
971
+ createdBy: z.ZodOptional<z.ZodNumber>;
972
+ }, z.core.$strip>>;
973
+ limit: z.ZodOptional<z.ZodNumber>;
974
+ offset: z.ZodOptional<z.ZodNumber>;
975
+ }, z.core.$strip>>;
976
+ }, z.core.$strip>;
977
+ type KbNodesRequestPayload = z.infer<typeof KbNodesRequestPayloadSchema>;
978
+ /**
979
+ * KB Nodes request message schema
980
+ * Synced with sdk-nodejs: KbNodesRequestMessageSchema
981
+ */
982
+ declare const KbNodesRequestMessageSchema: z.ZodObject<{
983
+ id: z.ZodString;
984
+ type: z.ZodLiteral<"KB_NODES">;
985
+ from: z.ZodObject<{
986
+ id: z.ZodOptional<z.ZodString>;
987
+ type: z.ZodOptional<z.ZodString>;
988
+ }, z.core.$strip>;
989
+ to: z.ZodOptional<z.ZodObject<{
990
+ id: z.ZodOptional<z.ZodString>;
991
+ type: z.ZodOptional<z.ZodString>;
992
+ }, z.core.$strip>>;
993
+ payload: z.ZodObject<{
994
+ operation: z.ZodEnum<{
995
+ search: "search";
996
+ create: "create";
997
+ update: "update";
998
+ delete: "delete";
999
+ getAll: "getAll";
1000
+ getOne: "getOne";
1001
+ getByCategory: "getByCategory";
1002
+ getByUser: "getByUser";
1003
+ getCategories: "getCategories";
1004
+ getTags: "getTags";
1005
+ }>;
1006
+ data: z.ZodOptional<z.ZodObject<{
1007
+ id: z.ZodOptional<z.ZodNumber>;
1008
+ title: z.ZodOptional<z.ZodString>;
1009
+ content: z.ZodOptional<z.ZodString>;
1010
+ category: z.ZodOptional<z.ZodString>;
1011
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1012
+ createdBy: z.ZodOptional<z.ZodNumber>;
1013
+ updatedBy: z.ZodOptional<z.ZodNumber>;
1014
+ userId: z.ZodOptional<z.ZodNumber>;
1015
+ query: z.ZodOptional<z.ZodString>;
1016
+ filters: z.ZodOptional<z.ZodObject<{
1017
+ query: z.ZodOptional<z.ZodString>;
1018
+ category: z.ZodOptional<z.ZodString>;
1019
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1020
+ createdBy: z.ZodOptional<z.ZodNumber>;
1021
+ }, z.core.$strip>>;
1022
+ limit: z.ZodOptional<z.ZodNumber>;
1023
+ offset: z.ZodOptional<z.ZodNumber>;
1024
+ }, z.core.$strip>>;
1025
+ }, z.core.$strip>;
1026
+ }, z.core.$strip>;
1027
+ type KbNodesRequestMessage = z.infer<typeof KbNodesRequestMessageSchema>;
1028
+ /**
1029
+ * KB Nodes response payload schema
1030
+ * Synced with sdk-nodejs handler: kb-nodes.ts
1031
+ */
1032
+ declare const KbNodesResponsePayloadSchema: z.ZodObject<{
1033
+ success: z.ZodBoolean;
1034
+ error: z.ZodOptional<z.ZodString>;
1035
+ data: z.ZodOptional<z.ZodObject<{
1036
+ id: z.ZodOptional<z.ZodNumber>;
1037
+ title: z.ZodOptional<z.ZodString>;
1038
+ content: z.ZodOptional<z.ZodString>;
1039
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1040
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1041
+ createdBy: z.ZodOptional<z.ZodNumber>;
1042
+ updatedBy: z.ZodOptional<z.ZodNumber>;
1043
+ createdAt: z.ZodOptional<z.ZodString>;
1044
+ updatedAt: z.ZodOptional<z.ZodString>;
1045
+ message: z.ZodOptional<z.ZodString>;
1046
+ node: z.ZodOptional<z.ZodObject<{
1047
+ id: z.ZodOptional<z.ZodNumber>;
1048
+ title: z.ZodString;
1049
+ content: z.ZodString;
1050
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1051
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1052
+ createdBy: z.ZodNumber;
1053
+ updatedBy: z.ZodOptional<z.ZodNumber>;
1054
+ createdAt: z.ZodOptional<z.ZodString>;
1055
+ updatedAt: z.ZodOptional<z.ZodString>;
1056
+ }, z.core.$strip>>;
1057
+ nodes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1058
+ id: z.ZodOptional<z.ZodNumber>;
1059
+ title: z.ZodString;
1060
+ content: z.ZodString;
1061
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1062
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1063
+ createdBy: z.ZodNumber;
1064
+ updatedBy: z.ZodOptional<z.ZodNumber>;
1065
+ createdAt: z.ZodOptional<z.ZodString>;
1066
+ updatedAt: z.ZodOptional<z.ZodString>;
1067
+ }, z.core.$strip>>>;
1068
+ count: z.ZodOptional<z.ZodNumber>;
1069
+ userId: z.ZodOptional<z.ZodNumber>;
1070
+ categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
1071
+ }, z.core.$strip>>;
1072
+ }, z.core.$strip>;
1073
+ type KbNodesResponsePayload = z.infer<typeof KbNodesResponsePayloadSchema>;
1074
+ /**
1075
+ * KB Nodes response message schema
1076
+ */
1077
+ declare const KbNodesResponseMessageSchema: z.ZodObject<{
1078
+ id: z.ZodString;
1079
+ type: z.ZodLiteral<"KB_NODES_RES">;
1080
+ from: z.ZodObject<{
1081
+ id: z.ZodOptional<z.ZodString>;
1082
+ type: z.ZodOptional<z.ZodString>;
1083
+ }, z.core.$strip>;
1084
+ to: z.ZodOptional<z.ZodObject<{
1085
+ id: z.ZodOptional<z.ZodString>;
1086
+ type: z.ZodOptional<z.ZodString>;
1087
+ }, z.core.$strip>>;
1088
+ payload: z.ZodObject<{
1089
+ success: z.ZodBoolean;
1090
+ error: z.ZodOptional<z.ZodString>;
1091
+ data: z.ZodOptional<z.ZodObject<{
1092
+ id: z.ZodOptional<z.ZodNumber>;
1093
+ title: z.ZodOptional<z.ZodString>;
1094
+ content: z.ZodOptional<z.ZodString>;
1095
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1096
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1097
+ createdBy: z.ZodOptional<z.ZodNumber>;
1098
+ updatedBy: z.ZodOptional<z.ZodNumber>;
1099
+ createdAt: z.ZodOptional<z.ZodString>;
1100
+ updatedAt: z.ZodOptional<z.ZodString>;
1101
+ message: z.ZodOptional<z.ZodString>;
1102
+ node: z.ZodOptional<z.ZodObject<{
1103
+ id: z.ZodOptional<z.ZodNumber>;
1104
+ title: z.ZodString;
1105
+ content: z.ZodString;
1106
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1107
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1108
+ createdBy: z.ZodNumber;
1109
+ updatedBy: z.ZodOptional<z.ZodNumber>;
1110
+ createdAt: z.ZodOptional<z.ZodString>;
1111
+ updatedAt: z.ZodOptional<z.ZodString>;
1112
+ }, z.core.$strip>>;
1113
+ nodes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1114
+ id: z.ZodOptional<z.ZodNumber>;
1115
+ title: z.ZodString;
1116
+ content: z.ZodString;
1117
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1118
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1119
+ createdBy: z.ZodNumber;
1120
+ updatedBy: z.ZodOptional<z.ZodNumber>;
1121
+ createdAt: z.ZodOptional<z.ZodString>;
1122
+ updatedAt: z.ZodOptional<z.ZodString>;
1123
+ }, z.core.$strip>>>;
1124
+ count: z.ZodOptional<z.ZodNumber>;
1125
+ userId: z.ZodOptional<z.ZodNumber>;
1126
+ categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
1127
+ }, z.core.$strip>>;
1128
+ }, z.core.$strip>;
1129
+ }, z.core.$strip>;
1130
+ type KbNodesResponseMessage = z.infer<typeof KbNodesResponseMessageSchema>;
913
1131
  /**
914
1132
  * Client configuration schema
915
1133
  */
@@ -1745,6 +1963,188 @@ declare function queryUIs(client: SuperatomClient, options?: QueryUIsOptions, ti
1745
1963
  message?: string;
1746
1964
  }>;
1747
1965
 
1966
+ /**
1967
+ * KB Nodes (Knowledge Base) Service
1968
+ * Handles KB_NODES message for knowledge base CRUD operations
1969
+ */
1970
+
1971
+ /**
1972
+ * KB Node interface for response data
1973
+ */
1974
+ interface KbNode {
1975
+ id?: number;
1976
+ title: string;
1977
+ content: string;
1978
+ category?: string | null;
1979
+ tags?: string[] | null;
1980
+ createdBy: number;
1981
+ updatedBy?: number;
1982
+ createdAt?: string;
1983
+ updatedAt?: string;
1984
+ }
1985
+ /**
1986
+ * Create a new knowledge base node
1987
+ * @param client - SuperatomClient instance
1988
+ * @param title - Title for the KB node
1989
+ * @param content - Content for the KB node
1990
+ * @param createdBy - User ID of the creator
1991
+ * @param category - Category for the KB node (optional)
1992
+ * @param tags - Tags for the KB node (optional)
1993
+ * @param timeout - Request timeout in milliseconds
1994
+ * @returns Server response with success status and created node data
1995
+ */
1996
+ declare function createKbNode(client: SuperatomClient, title: string, content: string, createdBy: number, category?: string, tags?: string[], timeout?: number): Promise<{
1997
+ success: boolean;
1998
+ error?: string;
1999
+ message?: string;
2000
+ node?: KbNode;
2001
+ }>;
2002
+ /**
2003
+ * Update an existing knowledge base node
2004
+ * @param client - SuperatomClient instance
2005
+ * @param id - ID of the KB node to update
2006
+ * @param updatedBy - User ID of the updater
2007
+ * @param updates - Object containing fields to update (title, content, category, tags)
2008
+ * @param timeout - Request timeout in milliseconds
2009
+ * @returns Server response with success status and updated node data
2010
+ */
2011
+ declare function updateKbNode(client: SuperatomClient, id: number, updatedBy: number, updates: {
2012
+ title?: string;
2013
+ content?: string;
2014
+ category?: string;
2015
+ tags?: string[];
2016
+ }, timeout?: number): Promise<{
2017
+ success: boolean;
2018
+ error?: string;
2019
+ message?: string;
2020
+ node?: KbNode;
2021
+ }>;
2022
+ /**
2023
+ * Delete a knowledge base node
2024
+ * @param client - SuperatomClient instance
2025
+ * @param id - ID of the KB node to delete
2026
+ * @param timeout - Request timeout in milliseconds
2027
+ * @returns Server response with success status
2028
+ */
2029
+ declare function deleteKbNode(client: SuperatomClient, id: number, timeout?: number): Promise<{
2030
+ success: boolean;
2031
+ error?: string;
2032
+ message?: string;
2033
+ }>;
2034
+ /**
2035
+ * Get all knowledge base nodes
2036
+ * @param client - SuperatomClient instance
2037
+ * @param limit - Maximum number of nodes to retrieve (optional, default 100)
2038
+ * @param offset - Offset for pagination (optional, default 0)
2039
+ * @param timeout - Request timeout in milliseconds
2040
+ * @returns Server response with list of KB nodes
2041
+ */
2042
+ declare function getAllKbNodes(client: SuperatomClient, limit?: number, offset?: number, timeout?: number): Promise<{
2043
+ success: boolean;
2044
+ error?: string;
2045
+ nodes?: KbNode[];
2046
+ count?: number;
2047
+ message?: string;
2048
+ }>;
2049
+ /**
2050
+ * Get a specific knowledge base node by ID
2051
+ * @param client - SuperatomClient instance
2052
+ * @param id - ID of the KB node to retrieve
2053
+ * @param timeout - Request timeout in milliseconds
2054
+ * @returns Server response with KB node data
2055
+ */
2056
+ declare function getKbNode(client: SuperatomClient, id: number, timeout?: number): Promise<{
2057
+ success: boolean;
2058
+ error?: string;
2059
+ node?: KbNode;
2060
+ message?: string;
2061
+ }>;
2062
+ /**
2063
+ * Search options for KB nodes
2064
+ */
2065
+ interface SearchKbNodesOptions {
2066
+ query?: string;
2067
+ category?: string;
2068
+ tags?: string[];
2069
+ createdBy?: number;
2070
+ limit?: number;
2071
+ offset?: number;
2072
+ }
2073
+ /**
2074
+ * Search knowledge base nodes with full-text search and filters
2075
+ * @param client - SuperatomClient instance
2076
+ * @param options - Search options with query, category, tags, createdBy, limit, offset
2077
+ * @param timeout - Request timeout in milliseconds
2078
+ * @returns Server response with list of matching KB nodes
2079
+ */
2080
+ declare function searchKbNodes(client: SuperatomClient, options?: SearchKbNodesOptions, timeout?: number): Promise<{
2081
+ success: boolean;
2082
+ error?: string;
2083
+ nodes?: KbNode[];
2084
+ count?: number;
2085
+ message?: string;
2086
+ }>;
2087
+ /**
2088
+ * Get knowledge base nodes by category
2089
+ * @param client - SuperatomClient instance
2090
+ * @param category - Category to filter by
2091
+ * @param limit - Maximum number of nodes to retrieve (optional, default 50)
2092
+ * @param offset - Offset for pagination (optional, default 0)
2093
+ * @param timeout - Request timeout in milliseconds
2094
+ * @returns Server response with list of KB nodes in the category
2095
+ */
2096
+ declare function getKbNodesByCategory(client: SuperatomClient, category: string, limit?: number, offset?: number, timeout?: number): Promise<{
2097
+ success: boolean;
2098
+ error?: string;
2099
+ nodes?: KbNode[];
2100
+ count?: number;
2101
+ category?: string;
2102
+ message?: string;
2103
+ }>;
2104
+ /**
2105
+ * Get knowledge base nodes by user (creator)
2106
+ * @param client - SuperatomClient instance
2107
+ * @param userId - User ID to filter by
2108
+ * @param limit - Maximum number of nodes to retrieve (optional, default 50)
2109
+ * @param offset - Offset for pagination (optional, default 0)
2110
+ * @param timeout - Request timeout in milliseconds
2111
+ * @returns Server response with list of KB nodes created by the user
2112
+ */
2113
+ declare function getKbNodesByUser(client: SuperatomClient, userId: number, limit?: number, offset?: number, timeout?: number): Promise<{
2114
+ success: boolean;
2115
+ error?: string;
2116
+ nodes?: KbNode[];
2117
+ count?: number;
2118
+ userId?: number;
2119
+ message?: string;
2120
+ }>;
2121
+ /**
2122
+ * Get all unique categories from knowledge base nodes
2123
+ * @param client - SuperatomClient instance
2124
+ * @param timeout - Request timeout in milliseconds
2125
+ * @returns Server response with list of unique categories
2126
+ */
2127
+ declare function getKbNodeCategories(client: SuperatomClient, timeout?: number): Promise<{
2128
+ success: boolean;
2129
+ error?: string;
2130
+ categories?: string[];
2131
+ count?: number;
2132
+ message?: string;
2133
+ }>;
2134
+ /**
2135
+ * Get all unique tags from knowledge base nodes
2136
+ * @param client - SuperatomClient instance
2137
+ * @param timeout - Request timeout in milliseconds
2138
+ * @returns Server response with list of unique tags
2139
+ */
2140
+ declare function getKbNodeTags(client: SuperatomClient, timeout?: number): Promise<{
2141
+ success: boolean;
2142
+ error?: string;
2143
+ tags?: string[];
2144
+ count?: number;
2145
+ message?: string;
2146
+ }>;
2147
+
1748
2148
  /**
1749
2149
  * Services Index
1750
2150
  * Re-exports all service functions for easy importing
@@ -1762,6 +2162,7 @@ type index_Expression = Expression;
1762
2162
  declare const index_ExpressionSchema: typeof ExpressionSchema;
1763
2163
  type index_ForDirective = ForDirective;
1764
2164
  declare const index_ForDirectiveSchema: typeof ForDirectiveSchema;
2165
+ type index_KbNode = KbNode;
1765
2166
  type index_QueryBookmarksOptions = QueryBookmarksOptions;
1766
2167
  type index_QueryDashboardsOptions = QueryDashboardsOptions;
1767
2168
  type index_QueryReportsOptions = QueryReportsOptions;
@@ -1770,6 +2171,7 @@ declare const index_QuerySpecSchema: typeof QuerySpecSchema;
1770
2171
  type index_QueryUIsOptions = QueryUIsOptions;
1771
2172
  type index_QueryUsersOptions = QueryUsersOptions;
1772
2173
  type index_Report = Report;
2174
+ type index_SearchKbNodesOptions = SearchKbNodesOptions;
1773
2175
  type index_UI = UI;
1774
2176
  type index_UIComponent = UIComponent;
1775
2177
  declare const index_UIComponentSchema: typeof UIComponentSchema;
@@ -1782,23 +2184,31 @@ type index_UpdateUIOptions = UpdateUIOptions;
1782
2184
  type index_User = User;
1783
2185
  declare const index_createBookmark: typeof createBookmark;
1784
2186
  declare const index_createDashboard: typeof createDashboard;
2187
+ declare const index_createKbNode: typeof createKbNode;
1785
2188
  declare const index_createReport: typeof createReport;
1786
2189
  declare const index_createUI: typeof createUI;
1787
2190
  declare const index_createUser: typeof createUser;
1788
2191
  declare const index_deleteBookmark: typeof deleteBookmark;
1789
2192
  declare const index_deleteDashboard: typeof deleteDashboard;
2193
+ declare const index_deleteKbNode: typeof deleteKbNode;
1790
2194
  declare const index_deleteReport: typeof deleteReport;
1791
2195
  declare const index_deleteUI: typeof deleteUI;
1792
2196
  declare const index_deleteUser: typeof deleteUser;
1793
2197
  declare const index_getActions: typeof getActions;
1794
2198
  declare const index_getAllBookmarks: typeof getAllBookmarks;
1795
2199
  declare const index_getAllDashboards: typeof getAllDashboards;
2200
+ declare const index_getAllKbNodes: typeof getAllKbNodes;
1796
2201
  declare const index_getAllReports: typeof getAllReports;
1797
2202
  declare const index_getAllUIs: typeof getAllUIs;
1798
2203
  declare const index_getAllUsers: typeof getAllUsers;
1799
2204
  declare const index_getBookmark: typeof getBookmark;
1800
2205
  declare const index_getComponentSuggestions: typeof getComponentSuggestions;
1801
2206
  declare const index_getDashboard: typeof getDashboard;
2207
+ declare const index_getKbNode: typeof getKbNode;
2208
+ declare const index_getKbNodeCategories: typeof getKbNodeCategories;
2209
+ declare const index_getKbNodeTags: typeof getKbNodeTags;
2210
+ declare const index_getKbNodesByCategory: typeof getKbNodesByCategory;
2211
+ declare const index_getKbNodesByUser: typeof getKbNodesByUser;
1802
2212
  declare const index_getReport: typeof getReport;
1803
2213
  declare const index_getUI: typeof getUI;
1804
2214
  declare const index_getUser: typeof getUser;
@@ -1809,6 +2219,7 @@ declare const index_queryUIs: typeof queryUIs;
1809
2219
  declare const index_queryUsers: typeof queryUsers;
1810
2220
  declare const index_requestBundle: typeof requestBundle;
1811
2221
  declare const index_requestData: typeof requestData;
2222
+ declare const index_searchKbNodes: typeof searchKbNodes;
1812
2223
  declare const index_sendAuthLoginRequest: typeof sendAuthLoginRequest;
1813
2224
  declare const index_sendAuthVerifyRequest: typeof sendAuthVerifyRequest;
1814
2225
  declare const index_sendComponents: typeof sendComponents;
@@ -1816,11 +2227,12 @@ declare const index_sendUserPromptRequest: typeof sendUserPromptRequest;
1816
2227
  declare const index_sendUserPromptSuggestionsRequest: typeof sendUserPromptSuggestionsRequest;
1817
2228
  declare const index_updateBookmark: typeof updateBookmark;
1818
2229
  declare const index_updateDashboard: typeof updateDashboard;
2230
+ declare const index_updateKbNode: typeof updateKbNode;
1819
2231
  declare const index_updateReport: typeof updateReport;
1820
2232
  declare const index_updateUI: typeof updateUI;
1821
2233
  declare const index_updateUser: typeof updateUser;
1822
2234
  declare namespace index {
1823
- export { type index_Binding as Binding, index_BindingSchema as BindingSchema, type index_Bookmark as Bookmark, type index_CreateBookmarkOptions as CreateBookmarkOptions, type index_CreateDashboardOptions as CreateDashboardOptions, type index_CreateReportOptions as CreateReportOptions, type index_CreateUIOptions as CreateUIOptions, type DSLRendererProps$2 as DSLRendererProps, DSLRendererPropsSchema$2 as DSLRendererPropsSchema, type index_Dashboard as Dashboard, type index_Expression as Expression, index_ExpressionSchema as ExpressionSchema, type index_ForDirective as ForDirective, index_ForDirectiveSchema as ForDirectiveSchema, type index_QueryBookmarksOptions as QueryBookmarksOptions, type index_QueryDashboardsOptions as QueryDashboardsOptions, type index_QueryReportsOptions as QueryReportsOptions, type index_QuerySpec as QuerySpec, index_QuerySpecSchema as QuerySpecSchema, type index_QueryUIsOptions as QueryUIsOptions, type index_QueryUsersOptions as QueryUsersOptions, type index_Report as Report, type DSLRendererProps$1 as ReportDSLRendererProps, type index_UI as UI, type index_UIComponent as UIComponent, index_UIComponentSchema as UIComponentSchema, type DSLRendererProps as UIDSLRendererProps, type index_UIElement as UIElement, index_UIElementSchema as UIElementSchema, type index_UpdateBookmarkOptions as UpdateBookmarkOptions, type index_UpdateDashboardOptions as UpdateDashboardOptions, type index_UpdateReportOptions as UpdateReportOptions, type index_UpdateUIOptions as UpdateUIOptions, type index_User as User, index_createBookmark as createBookmark, index_createDashboard as createDashboard, index_createReport as createReport, index_createUI as createUI, index_createUser as createUser, index_deleteBookmark as deleteBookmark, index_deleteDashboard as deleteDashboard, index_deleteReport as deleteReport, index_deleteUI as deleteUI, index_deleteUser as deleteUser, index_getActions as getActions, index_getAllBookmarks as getAllBookmarks, index_getAllDashboards as getAllDashboards, index_getAllReports as getAllReports, index_getAllUIs as getAllUIs, index_getAllUsers as getAllUsers, index_getBookmark as getBookmark, index_getComponentSuggestions as getComponentSuggestions, index_getDashboard as getDashboard, index_getReport as getReport, index_getUI as getUI, index_getUser as getUser, index_queryBookmarks as queryBookmarks, index_queryDashboards as queryDashboards, index_queryReports as queryReports, index_queryUIs as queryUIs, index_queryUsers as queryUsers, index_requestBundle as requestBundle, index_requestData as requestData, index_sendAuthLoginRequest as sendAuthLoginRequest, index_sendAuthVerifyRequest as sendAuthVerifyRequest, index_sendComponents as sendComponents, index_sendUserPromptRequest as sendUserPromptRequest, index_sendUserPromptSuggestionsRequest as sendUserPromptSuggestionsRequest, index_updateBookmark as updateBookmark, index_updateDashboard as updateDashboard, index_updateReport as updateReport, index_updateUI as updateUI, index_updateUser as updateUser };
2235
+ export { type index_Binding as Binding, index_BindingSchema as BindingSchema, type index_Bookmark as Bookmark, type index_CreateBookmarkOptions as CreateBookmarkOptions, type index_CreateDashboardOptions as CreateDashboardOptions, type index_CreateReportOptions as CreateReportOptions, type index_CreateUIOptions as CreateUIOptions, type DSLRendererProps$2 as DSLRendererProps, DSLRendererPropsSchema$2 as DSLRendererPropsSchema, type index_Dashboard as Dashboard, type index_Expression as Expression, index_ExpressionSchema as ExpressionSchema, type index_ForDirective as ForDirective, index_ForDirectiveSchema as ForDirectiveSchema, type index_KbNode as KbNode, type index_QueryBookmarksOptions as QueryBookmarksOptions, type index_QueryDashboardsOptions as QueryDashboardsOptions, type index_QueryReportsOptions as QueryReportsOptions, type index_QuerySpec as QuerySpec, index_QuerySpecSchema as QuerySpecSchema, type index_QueryUIsOptions as QueryUIsOptions, type index_QueryUsersOptions as QueryUsersOptions, type index_Report as Report, type DSLRendererProps$1 as ReportDSLRendererProps, type index_SearchKbNodesOptions as SearchKbNodesOptions, type index_UI as UI, type index_UIComponent as UIComponent, index_UIComponentSchema as UIComponentSchema, type DSLRendererProps as UIDSLRendererProps, type index_UIElement as UIElement, index_UIElementSchema as UIElementSchema, type index_UpdateBookmarkOptions as UpdateBookmarkOptions, type index_UpdateDashboardOptions as UpdateDashboardOptions, type index_UpdateReportOptions as UpdateReportOptions, type index_UpdateUIOptions as UpdateUIOptions, type index_User as User, index_createBookmark as createBookmark, index_createDashboard as createDashboard, index_createKbNode as createKbNode, index_createReport as createReport, index_createUI as createUI, index_createUser as createUser, index_deleteBookmark as deleteBookmark, index_deleteDashboard as deleteDashboard, index_deleteKbNode as deleteKbNode, index_deleteReport as deleteReport, index_deleteUI as deleteUI, index_deleteUser as deleteUser, index_getActions as getActions, index_getAllBookmarks as getAllBookmarks, index_getAllDashboards as getAllDashboards, index_getAllKbNodes as getAllKbNodes, index_getAllReports as getAllReports, index_getAllUIs as getAllUIs, index_getAllUsers as getAllUsers, index_getBookmark as getBookmark, index_getComponentSuggestions as getComponentSuggestions, index_getDashboard as getDashboard, index_getKbNode as getKbNode, index_getKbNodeCategories as getKbNodeCategories, index_getKbNodeTags as getKbNodeTags, index_getKbNodesByCategory as getKbNodesByCategory, index_getKbNodesByUser as getKbNodesByUser, index_getReport as getReport, index_getUI as getUI, index_getUser as getUser, index_queryBookmarks as queryBookmarks, index_queryDashboards as queryDashboards, index_queryReports as queryReports, index_queryUIs as queryUIs, index_queryUsers as queryUsers, index_requestBundle as requestBundle, index_requestData as requestData, index_searchKbNodes as searchKbNodes, index_sendAuthLoginRequest as sendAuthLoginRequest, index_sendAuthVerifyRequest as sendAuthVerifyRequest, index_sendComponents as sendComponents, index_sendUserPromptRequest as sendUserPromptRequest, index_sendUserPromptSuggestionsRequest as sendUserPromptSuggestionsRequest, index_updateBookmark as updateBookmark, index_updateDashboard as updateDashboard, index_updateKbNode as updateKbNode, index_updateReport as updateReport, index_updateUI as updateUI, index_updateUser as updateUser };
1824
2236
  }
1825
2237
 
1826
2238
  type MessageHandler = (message: Message) => void;
@@ -2349,6 +2761,118 @@ declare class SuperatomClient {
2349
2761
  count?: number;
2350
2762
  message?: string;
2351
2763
  }>;
2764
+ /**
2765
+ * Create a new knowledge base node
2766
+ * Delegates to kb-nodes service
2767
+ */
2768
+ createKbNode(title: string, content: string, createdBy: number, category?: string, tags?: string[], timeout?: number): Promise<{
2769
+ success: boolean;
2770
+ error?: string;
2771
+ message?: string;
2772
+ node?: KbNode;
2773
+ }>;
2774
+ /**
2775
+ * Update an existing knowledge base node
2776
+ * Delegates to kb-nodes service
2777
+ */
2778
+ updateKbNode(id: number, updatedBy: number, updates: {
2779
+ title?: string;
2780
+ content?: string;
2781
+ category?: string;
2782
+ tags?: string[];
2783
+ }, timeout?: number): Promise<{
2784
+ success: boolean;
2785
+ error?: string;
2786
+ message?: string;
2787
+ node?: KbNode;
2788
+ }>;
2789
+ /**
2790
+ * Delete a knowledge base node
2791
+ * Delegates to kb-nodes service
2792
+ */
2793
+ deleteKbNode(id: number, timeout?: number): Promise<{
2794
+ success: boolean;
2795
+ error?: string;
2796
+ message?: string;
2797
+ }>;
2798
+ /**
2799
+ * Get all knowledge base nodes
2800
+ * Delegates to kb-nodes service
2801
+ */
2802
+ getAllKbNodes(limit?: number, offset?: number, timeout?: number): Promise<{
2803
+ success: boolean;
2804
+ error?: string;
2805
+ nodes?: KbNode[];
2806
+ count?: number;
2807
+ message?: string;
2808
+ }>;
2809
+ /**
2810
+ * Get a specific knowledge base node by ID
2811
+ * Delegates to kb-nodes service
2812
+ */
2813
+ getKbNode(id: number, timeout?: number): Promise<{
2814
+ success: boolean;
2815
+ error?: string;
2816
+ node?: KbNode;
2817
+ message?: string;
2818
+ }>;
2819
+ /**
2820
+ * Search knowledge base nodes with full-text search and filters
2821
+ * Delegates to kb-nodes service
2822
+ */
2823
+ searchKbNodes(options?: SearchKbNodesOptions, timeout?: number): Promise<{
2824
+ success: boolean;
2825
+ error?: string;
2826
+ nodes?: KbNode[];
2827
+ count?: number;
2828
+ message?: string;
2829
+ }>;
2830
+ /**
2831
+ * Get knowledge base nodes by category
2832
+ * Delegates to kb-nodes service
2833
+ */
2834
+ getKbNodesByCategory(category: string, limit?: number, offset?: number, timeout?: number): Promise<{
2835
+ success: boolean;
2836
+ error?: string;
2837
+ nodes?: KbNode[];
2838
+ count?: number;
2839
+ category?: string;
2840
+ message?: string;
2841
+ }>;
2842
+ /**
2843
+ * Get knowledge base nodes by user (creator)
2844
+ * Delegates to kb-nodes service
2845
+ */
2846
+ getKbNodesByUser(userId: number, limit?: number, offset?: number, timeout?: number): Promise<{
2847
+ success: boolean;
2848
+ error?: string;
2849
+ nodes?: KbNode[];
2850
+ count?: number;
2851
+ userId?: number;
2852
+ message?: string;
2853
+ }>;
2854
+ /**
2855
+ * Get all unique categories from knowledge base nodes
2856
+ * Delegates to kb-nodes service
2857
+ */
2858
+ getKbNodeCategories(timeout?: number): Promise<{
2859
+ success: boolean;
2860
+ error?: string;
2861
+ categories?: string[];
2862
+ count?: number;
2863
+ message?: string;
2864
+ }>;
2865
+ /**
2866
+ * Get all unique tags from knowledge base nodes
2867
+ * Delegates to kb-nodes service
2868
+ */
2869
+ getKbNodeTags(timeout?: number): Promise<{
2870
+ success: boolean;
2871
+ error?: string;
2872
+ tags?: string[];
2873
+ count?: number;
2874
+ message?: string;
2875
+ }>;
2352
2876
  /**
2353
2877
  * Internal logging
2354
2878
  */
@@ -2408,4 +2932,4 @@ declare function hasComponents(): boolean;
2408
2932
  */
2409
2933
  declare const SDK_VERSION = "0.1.0";
2410
2934
 
2411
- export { type ActionsRequestMessage, ActionsRequestMessageSchema, type ActionsRequestPayload, ActionsRequestPayloadSchema, type ActionsResponseMessage, ActionsResponseMessageSchema, type ActionsResponsePayload, ActionsResponsePayloadSchema, type AuthLoginPayload, AuthLoginPayloadSchema, type AuthLoginRequestMessage, AuthLoginRequestMessageSchema, type AuthLoginResponseMessage, AuthLoginResponseMessageSchema, type AuthLoginResponsePayload, AuthLoginResponsePayloadSchema, type AuthVerifyPayload, AuthVerifyPayloadSchema, type AuthVerifyRequestMessage, AuthVerifyRequestMessageSchema, type AuthVerifyResponseMessage, AuthVerifyResponseMessageSchema, type AuthVerifyResponsePayload, AuthVerifyResponsePayloadSchema, type BundleChunkMessage, BundleChunkMessageSchema, type BundleChunkPayload, BundleChunkPayloadSchema, type BundleErrorMessage, BundleErrorMessageSchema, type BundleErrorPayload, BundleErrorPayloadSchema, type BundleRequestMessage, BundleRequestMessageSchema, type BundleRequestPayload, BundleRequestPayloadSchema, type ClientConfig, ClientConfigSchema, type Component, ComponentSchema, type ComponentsRegistry, type ComponentsSendMessage, ComponentsSendMessageSchema, type ComponentsSendPayload, ComponentsSendPayloadSchema, type DataRequestMessage, DataRequestMessageSchema, type DataRequestPayload, DataRequestPayloadSchema, type DataResponseMessage, DataResponseMessageSchema, type DataResponsePayload, DataResponsePayloadSchema, type Message, type MessageParticipant, MessageParticipantSchema, MessageSchema, type MountFunction, type ResolvedClientConfig, SDK_VERSION, type SuperAtomGlobal, SuperatomClient, type UILogEntry, UILogEntrySchema, type UILogsMessage, UILogsMessageSchema, type UILogsPayload, UILogsPayloadSchema, type UserPromptRequestMessage, UserPromptRequestMessageSchema, type UserPromptRequestPayload, UserPromptRequestPayloadSchema, type UserPromptResponseMessage, UserPromptResponseMessageSchema, type UserPromptResponsePayload, UserPromptResponsePayloadSchema, type UserPromptSuggestionsRequestMessage, UserPromptSuggestionsRequestMessageSchema, type UserPromptSuggestionsRequestPayload, UserPromptSuggestionsRequestPayloadSchema, type UserPromptSuggestionsResponseMessage, UserPromptSuggestionsResponseMessageSchema, type UserPromptSuggestionsResponsePayload, UserPromptSuggestionsResponsePayloadSchema, getComponent, getComponents, hasComponents, index as services, setup };
2935
+ export { type ActionsRequestMessage, ActionsRequestMessageSchema, type ActionsRequestPayload, ActionsRequestPayloadSchema, type ActionsResponseMessage, ActionsResponseMessageSchema, type ActionsResponsePayload, ActionsResponsePayloadSchema, type AuthLoginPayload, AuthLoginPayloadSchema, type AuthLoginRequestMessage, AuthLoginRequestMessageSchema, type AuthLoginResponseMessage, AuthLoginResponseMessageSchema, type AuthLoginResponsePayload, AuthLoginResponsePayloadSchema, type AuthVerifyPayload, AuthVerifyPayloadSchema, type AuthVerifyRequestMessage, AuthVerifyRequestMessageSchema, type AuthVerifyResponseMessage, AuthVerifyResponseMessageSchema, type AuthVerifyResponsePayload, AuthVerifyResponsePayloadSchema, type BundleChunkMessage, BundleChunkMessageSchema, type BundleChunkPayload, BundleChunkPayloadSchema, type BundleErrorMessage, BundleErrorMessageSchema, type BundleErrorPayload, BundleErrorPayloadSchema, type BundleRequestMessage, BundleRequestMessageSchema, type BundleRequestPayload, BundleRequestPayloadSchema, type ClientConfig, ClientConfigSchema, type Component, ComponentSchema, type ComponentsRegistry, type ComponentsSendMessage, ComponentsSendMessageSchema, type ComponentsSendPayload, ComponentsSendPayloadSchema, type DataRequestMessage, DataRequestMessageSchema, type DataRequestPayload, DataRequestPayloadSchema, type DataResponseMessage, DataResponseMessageSchema, type DataResponsePayload, DataResponsePayloadSchema, type KbNodeData, KbNodeDataSchema, type KbNodesQueryFilters, KbNodesQueryFiltersSchema, type KbNodesRequestMessage, KbNodesRequestMessageSchema, type KbNodesRequestPayload, KbNodesRequestPayloadSchema, type KbNodesResponseMessage, KbNodesResponseMessageSchema, type KbNodesResponsePayload, KbNodesResponsePayloadSchema, type Message, type MessageParticipant, MessageParticipantSchema, MessageSchema, type MountFunction, type ResolvedClientConfig, SDK_VERSION, type SuperAtomGlobal, SuperatomClient, type UILogEntry, UILogEntrySchema, type UILogsMessage, UILogsMessageSchema, type UILogsPayload, UILogsPayloadSchema, type UserPromptRequestMessage, UserPromptRequestMessageSchema, type UserPromptRequestPayload, UserPromptRequestPayloadSchema, type UserPromptResponseMessage, UserPromptResponseMessageSchema, type UserPromptResponsePayload, UserPromptResponsePayloadSchema, type UserPromptSuggestionsRequestMessage, UserPromptSuggestionsRequestMessageSchema, type UserPromptSuggestionsRequestPayload, UserPromptSuggestionsRequestPayloadSchema, type UserPromptSuggestionsResponseMessage, UserPromptSuggestionsResponseMessageSchema, type UserPromptSuggestionsResponsePayload, UserPromptSuggestionsResponsePayloadSchema, getComponent, getComponents, hasComponents, index as services, setup };