@superatomai/sdk-web 0.0.12 → 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.ts CHANGED
@@ -826,6 +826,17 @@ declare const ComponentsSendMessageSchema: z.ZodObject<{
826
826
  }, z.core.$strip>;
827
827
  }, z.core.$strip>;
828
828
  type ComponentsSendMessage = z.infer<typeof ComponentsSendMessageSchema>;
829
+ /**
830
+ * User query filters schema
831
+ * Synced with sdk-nodejs: UserQueryFiltersSchema
832
+ */
833
+ declare const UserQueryFiltersSchema: z.ZodObject<{
834
+ username: z.ZodOptional<z.ZodString>;
835
+ email: z.ZodOptional<z.ZodString>;
836
+ role: z.ZodOptional<z.ZodString>;
837
+ fullname: z.ZodOptional<z.ZodString>;
838
+ }, z.core.$strip>;
839
+ type UserQueryFilters = z.infer<typeof UserQueryFiltersSchema>;
829
840
  /**
830
841
  * Dashboard query filters schema
831
842
  * Synced with sdk-nodejs: DashboardQueryFiltersSchema
@@ -889,6 +900,234 @@ declare const BookmarkDataSchema: z.ZodObject<{
889
900
  updated_at: z.ZodOptional<z.ZodString>;
890
901
  }, z.core.$strip>;
891
902
  type BookmarkData = z.infer<typeof BookmarkDataSchema>;
903
+ /**
904
+ * Bookmark query filters schema
905
+ * Synced with sdk-nodejs: BookmarkQueryFiltersSchema
906
+ */
907
+ declare const BookmarkQueryFiltersSchema: z.ZodObject<{
908
+ userId: z.ZodOptional<z.ZodNumber>;
909
+ threadId: z.ZodOptional<z.ZodString>;
910
+ name: z.ZodOptional<z.ZodString>;
911
+ }, z.core.$strip>;
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>;
892
1131
  /**
893
1132
  * Client configuration schema
894
1133
  */
@@ -1123,6 +1362,28 @@ declare function getUser(client: SuperatomClient, username: string, timeout?: nu
1123
1362
  user?: User;
1124
1363
  message?: string;
1125
1364
  }>;
1365
+ /**
1366
+ * Query users options
1367
+ */
1368
+ interface QueryUsersOptions {
1369
+ filters?: UserQueryFilters;
1370
+ limit?: number;
1371
+ sort?: 'ASC' | 'DESC';
1372
+ }
1373
+ /**
1374
+ * Query users with filters, limit, and sort
1375
+ * @param client - SuperatomClient instance
1376
+ * @param options - Query options with filters, limit, and sort
1377
+ * @param timeout - Request timeout in milliseconds
1378
+ * @returns Server response with list of users
1379
+ */
1380
+ declare function queryUsers(client: SuperatomClient, options?: QueryUsersOptions, timeout?: number): Promise<{
1381
+ success: boolean;
1382
+ error?: string;
1383
+ users?: User[];
1384
+ count?: number;
1385
+ message?: string;
1386
+ }>;
1126
1387
 
1127
1388
  /**
1128
1389
  * Dashboards Service
@@ -1500,28 +1761,21 @@ declare function getBookmark(client: SuperatomClient, id: number, timeout?: numb
1500
1761
  message?: string;
1501
1762
  }>;
1502
1763
  /**
1503
- * Get bookmarks by user ID (and optionally by thread ID)
1504
- * @param client - SuperatomClient instance
1505
- * @param userId - User ID to filter by
1506
- * @param threadId - Optional thread ID to filter by
1507
- * @param timeout - Request timeout in milliseconds
1508
- * @returns Server response with list of bookmarks
1764
+ * Query bookmarks options
1509
1765
  */
1510
- declare function getBookmarksByUser(client: SuperatomClient, userId: number, threadId?: string, timeout?: number): Promise<{
1511
- success: boolean;
1512
- error?: string;
1513
- data?: BookmarkData[];
1514
- count?: number;
1515
- message?: string;
1516
- }>;
1766
+ interface QueryBookmarksOptions {
1767
+ filters?: BookmarkQueryFilters;
1768
+ limit?: number;
1769
+ sort?: 'ASC' | 'DESC';
1770
+ }
1517
1771
  /**
1518
- * Get bookmarks by thread ID
1772
+ * Query bookmarks with filters, limit, and sort
1519
1773
  * @param client - SuperatomClient instance
1520
- * @param threadId - Thread ID to filter by
1774
+ * @param options - Query options with filters, limit, and sort
1521
1775
  * @param timeout - Request timeout in milliseconds
1522
1776
  * @returns Server response with list of bookmarks
1523
1777
  */
1524
- declare function getBookmarksByThread(client: SuperatomClient, threadId: string, timeout?: number): Promise<{
1778
+ declare function queryBookmarks(client: SuperatomClient, options?: QueryBookmarksOptions, timeout?: number): Promise<{
1525
1779
  success: boolean;
1526
1780
  error?: string;
1527
1781
  data?: BookmarkData[];
@@ -1709,6 +1963,188 @@ declare function queryUIs(client: SuperatomClient, options?: QueryUIsOptions, ti
1709
1963
  message?: string;
1710
1964
  }>;
1711
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
+
1712
2148
  /**
1713
2149
  * Services Index
1714
2150
  * Re-exports all service functions for easy importing
@@ -1726,12 +2162,16 @@ type index_Expression = Expression;
1726
2162
  declare const index_ExpressionSchema: typeof ExpressionSchema;
1727
2163
  type index_ForDirective = ForDirective;
1728
2164
  declare const index_ForDirectiveSchema: typeof ForDirectiveSchema;
2165
+ type index_KbNode = KbNode;
2166
+ type index_QueryBookmarksOptions = QueryBookmarksOptions;
1729
2167
  type index_QueryDashboardsOptions = QueryDashboardsOptions;
1730
2168
  type index_QueryReportsOptions = QueryReportsOptions;
1731
2169
  type index_QuerySpec = QuerySpec;
1732
2170
  declare const index_QuerySpecSchema: typeof QuerySpecSchema;
1733
2171
  type index_QueryUIsOptions = QueryUIsOptions;
2172
+ type index_QueryUsersOptions = QueryUsersOptions;
1734
2173
  type index_Report = Report;
2174
+ type index_SearchKbNodesOptions = SearchKbNodesOptions;
1735
2175
  type index_UI = UI;
1736
2176
  type index_UIComponent = UIComponent;
1737
2177
  declare const index_UIComponentSchema: typeof UIComponentSchema;
@@ -1744,33 +2184,42 @@ type index_UpdateUIOptions = UpdateUIOptions;
1744
2184
  type index_User = User;
1745
2185
  declare const index_createBookmark: typeof createBookmark;
1746
2186
  declare const index_createDashboard: typeof createDashboard;
2187
+ declare const index_createKbNode: typeof createKbNode;
1747
2188
  declare const index_createReport: typeof createReport;
1748
2189
  declare const index_createUI: typeof createUI;
1749
2190
  declare const index_createUser: typeof createUser;
1750
2191
  declare const index_deleteBookmark: typeof deleteBookmark;
1751
2192
  declare const index_deleteDashboard: typeof deleteDashboard;
2193
+ declare const index_deleteKbNode: typeof deleteKbNode;
1752
2194
  declare const index_deleteReport: typeof deleteReport;
1753
2195
  declare const index_deleteUI: typeof deleteUI;
1754
2196
  declare const index_deleteUser: typeof deleteUser;
1755
2197
  declare const index_getActions: typeof getActions;
1756
2198
  declare const index_getAllBookmarks: typeof getAllBookmarks;
1757
2199
  declare const index_getAllDashboards: typeof getAllDashboards;
2200
+ declare const index_getAllKbNodes: typeof getAllKbNodes;
1758
2201
  declare const index_getAllReports: typeof getAllReports;
1759
2202
  declare const index_getAllUIs: typeof getAllUIs;
1760
2203
  declare const index_getAllUsers: typeof getAllUsers;
1761
2204
  declare const index_getBookmark: typeof getBookmark;
1762
- declare const index_getBookmarksByThread: typeof getBookmarksByThread;
1763
- declare const index_getBookmarksByUser: typeof getBookmarksByUser;
1764
2205
  declare const index_getComponentSuggestions: typeof getComponentSuggestions;
1765
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;
1766
2212
  declare const index_getReport: typeof getReport;
1767
2213
  declare const index_getUI: typeof getUI;
1768
2214
  declare const index_getUser: typeof getUser;
2215
+ declare const index_queryBookmarks: typeof queryBookmarks;
1769
2216
  declare const index_queryDashboards: typeof queryDashboards;
1770
2217
  declare const index_queryReports: typeof queryReports;
1771
2218
  declare const index_queryUIs: typeof queryUIs;
2219
+ declare const index_queryUsers: typeof queryUsers;
1772
2220
  declare const index_requestBundle: typeof requestBundle;
1773
2221
  declare const index_requestData: typeof requestData;
2222
+ declare const index_searchKbNodes: typeof searchKbNodes;
1774
2223
  declare const index_sendAuthLoginRequest: typeof sendAuthLoginRequest;
1775
2224
  declare const index_sendAuthVerifyRequest: typeof sendAuthVerifyRequest;
1776
2225
  declare const index_sendComponents: typeof sendComponents;
@@ -1778,11 +2227,12 @@ declare const index_sendUserPromptRequest: typeof sendUserPromptRequest;
1778
2227
  declare const index_sendUserPromptSuggestionsRequest: typeof sendUserPromptSuggestionsRequest;
1779
2228
  declare const index_updateBookmark: typeof updateBookmark;
1780
2229
  declare const index_updateDashboard: typeof updateDashboard;
2230
+ declare const index_updateKbNode: typeof updateKbNode;
1781
2231
  declare const index_updateReport: typeof updateReport;
1782
2232
  declare const index_updateUI: typeof updateUI;
1783
2233
  declare const index_updateUser: typeof updateUser;
1784
2234
  declare namespace index {
1785
- 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_QueryDashboardsOptions as QueryDashboardsOptions, type index_QueryReportsOptions as QueryReportsOptions, type index_QuerySpec as QuerySpec, index_QuerySpecSchema as QuerySpecSchema, type index_QueryUIsOptions as QueryUIsOptions, 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_getBookmarksByThread as getBookmarksByThread, index_getBookmarksByUser as getBookmarksByUser, index_getComponentSuggestions as getComponentSuggestions, index_getDashboard as getDashboard, index_getReport as getReport, index_getUI as getUI, index_getUser as getUser, index_queryDashboards as queryDashboards, index_queryReports as queryReports, index_queryUIs as queryUIs, 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 };
1786
2236
  }
1787
2237
 
1788
2238
  type MessageHandler = (message: Message) => void;
@@ -2036,6 +2486,17 @@ declare class SuperatomClient {
2036
2486
  user?: User;
2037
2487
  message?: string;
2038
2488
  }>;
2489
+ /**
2490
+ * Query users with filters, limit, and sort
2491
+ * Delegates to users service
2492
+ */
2493
+ queryUsers(options?: QueryUsersOptions, timeout?: number): Promise<{
2494
+ success: boolean;
2495
+ error?: string;
2496
+ users?: User[];
2497
+ count?: number;
2498
+ message?: string;
2499
+ }>;
2039
2500
  /**
2040
2501
  * Create a new dashboard
2041
2502
  * Delegates to dashboards service
@@ -2155,21 +2616,10 @@ declare class SuperatomClient {
2155
2616
  message?: string;
2156
2617
  }>;
2157
2618
  /**
2158
- * Get bookmarks by user ID (and optionally by thread ID)
2619
+ * Query bookmarks with filters, limit, and sort
2159
2620
  * Delegates to bookmarks service
2160
2621
  */
2161
- getBookmarksByUser(userId: number, threadId?: string, timeout?: number): Promise<{
2162
- success: boolean;
2163
- error?: string;
2164
- data?: Bookmark[];
2165
- count?: number;
2166
- message?: string;
2167
- }>;
2168
- /**
2169
- * Get bookmarks by thread ID
2170
- * Delegates to bookmarks service
2171
- */
2172
- getBookmarksByThread(threadId: string, timeout?: number): Promise<{
2622
+ queryBookmarks(options?: QueryBookmarksOptions, timeout?: number): Promise<{
2173
2623
  success: boolean;
2174
2624
  error?: string;
2175
2625
  data?: Bookmark[];
@@ -2311,6 +2761,118 @@ declare class SuperatomClient {
2311
2761
  count?: number;
2312
2762
  message?: string;
2313
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
+ }>;
2314
2876
  /**
2315
2877
  * Internal logging
2316
2878
  */
@@ -2370,4 +2932,4 @@ declare function hasComponents(): boolean;
2370
2932
  */
2371
2933
  declare const SDK_VERSION = "0.1.0";
2372
2934
 
2373
- 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 };