@superatomai/sdk-web 0.0.13 → 0.0.15

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
@@ -517,9 +517,10 @@ declare const UserPromptSuggestionsResponseMessageSchema: z.ZodObject<{
517
517
  type UserPromptSuggestionsResponseMessage = z.infer<typeof UserPromptSuggestionsResponseMessageSchema>;
518
518
  /**
519
519
  * Bundle request payload schema
520
- * Bundle requests have empty payload
521
520
  */
522
- declare const BundleRequestPayloadSchema: z.ZodObject<{}, z.core.$strip>;
521
+ declare const BundleRequestPayloadSchema: z.ZodObject<{
522
+ devbundlereq: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
523
+ }, z.core.$strip>;
523
524
  type BundleRequestPayload = z.infer<typeof BundleRequestPayloadSchema>;
524
525
  /**
525
526
  * Bundle request message schema
@@ -535,7 +536,9 @@ declare const BundleRequestMessageSchema: z.ZodObject<{
535
536
  id: z.ZodOptional<z.ZodString>;
536
537
  type: z.ZodOptional<z.ZodString>;
537
538
  }, z.core.$strip>>;
538
- payload: z.ZodObject<{}, z.core.$strip>;
539
+ payload: z.ZodObject<{
540
+ devbundlereq: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
541
+ }, z.core.$strip>;
539
542
  }, z.core.$strip>;
540
543
  type BundleRequestMessage = z.infer<typeof BundleRequestMessageSchema>;
541
544
  /**
@@ -910,6 +913,224 @@ declare const BookmarkQueryFiltersSchema: z.ZodObject<{
910
913
  name: z.ZodOptional<z.ZodString>;
911
914
  }, z.core.$strip>;
912
915
  type BookmarkQueryFilters = z.infer<typeof BookmarkQueryFiltersSchema>;
916
+ /**
917
+ * KB Node data schema
918
+ * Synced with sdk-nodejs/project-setup: kb-nodes.ts
919
+ */
920
+ declare const KbNodeDataSchema: z.ZodObject<{
921
+ id: z.ZodOptional<z.ZodNumber>;
922
+ title: z.ZodString;
923
+ content: z.ZodString;
924
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
925
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
926
+ createdBy: z.ZodNumber;
927
+ updatedBy: z.ZodOptional<z.ZodNumber>;
928
+ createdAt: z.ZodOptional<z.ZodString>;
929
+ updatedAt: z.ZodOptional<z.ZodString>;
930
+ }, z.core.$strip>;
931
+ type KbNodeData = z.infer<typeof KbNodeDataSchema>;
932
+ /**
933
+ * KB Nodes query filters schema
934
+ * Synced with sdk-nodejs: KbNodesQueryFiltersSchema
935
+ */
936
+ declare const KbNodesQueryFiltersSchema: z.ZodObject<{
937
+ query: z.ZodOptional<z.ZodString>;
938
+ category: z.ZodOptional<z.ZodString>;
939
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
940
+ createdBy: z.ZodOptional<z.ZodNumber>;
941
+ }, z.core.$strip>;
942
+ type KbNodesQueryFilters = z.infer<typeof KbNodesQueryFiltersSchema>;
943
+ /**
944
+ * KB Nodes request payload schema
945
+ * Synced with sdk-nodejs: KbNodesRequestPayloadSchema
946
+ */
947
+ declare const KbNodesRequestPayloadSchema: z.ZodObject<{
948
+ operation: z.ZodEnum<{
949
+ search: "search";
950
+ create: "create";
951
+ update: "update";
952
+ delete: "delete";
953
+ getAll: "getAll";
954
+ getOne: "getOne";
955
+ getByCategory: "getByCategory";
956
+ getByUser: "getByUser";
957
+ getCategories: "getCategories";
958
+ getTags: "getTags";
959
+ }>;
960
+ data: z.ZodOptional<z.ZodObject<{
961
+ id: z.ZodOptional<z.ZodNumber>;
962
+ title: z.ZodOptional<z.ZodString>;
963
+ content: z.ZodOptional<z.ZodString>;
964
+ category: z.ZodOptional<z.ZodString>;
965
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
966
+ createdBy: z.ZodOptional<z.ZodNumber>;
967
+ updatedBy: z.ZodOptional<z.ZodNumber>;
968
+ userId: z.ZodOptional<z.ZodNumber>;
969
+ query: z.ZodOptional<z.ZodString>;
970
+ filters: z.ZodOptional<z.ZodObject<{
971
+ query: z.ZodOptional<z.ZodString>;
972
+ category: z.ZodOptional<z.ZodString>;
973
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
974
+ createdBy: z.ZodOptional<z.ZodNumber>;
975
+ }, z.core.$strip>>;
976
+ limit: z.ZodOptional<z.ZodNumber>;
977
+ offset: z.ZodOptional<z.ZodNumber>;
978
+ }, z.core.$strip>>;
979
+ }, z.core.$strip>;
980
+ type KbNodesRequestPayload = z.infer<typeof KbNodesRequestPayloadSchema>;
981
+ /**
982
+ * KB Nodes request message schema
983
+ * Synced with sdk-nodejs: KbNodesRequestMessageSchema
984
+ */
985
+ declare const KbNodesRequestMessageSchema: z.ZodObject<{
986
+ id: z.ZodString;
987
+ type: z.ZodLiteral<"KB_NODES">;
988
+ from: z.ZodObject<{
989
+ id: z.ZodOptional<z.ZodString>;
990
+ type: z.ZodOptional<z.ZodString>;
991
+ }, z.core.$strip>;
992
+ to: z.ZodOptional<z.ZodObject<{
993
+ id: z.ZodOptional<z.ZodString>;
994
+ type: z.ZodOptional<z.ZodString>;
995
+ }, z.core.$strip>>;
996
+ payload: z.ZodObject<{
997
+ operation: z.ZodEnum<{
998
+ search: "search";
999
+ create: "create";
1000
+ update: "update";
1001
+ delete: "delete";
1002
+ getAll: "getAll";
1003
+ getOne: "getOne";
1004
+ getByCategory: "getByCategory";
1005
+ getByUser: "getByUser";
1006
+ getCategories: "getCategories";
1007
+ getTags: "getTags";
1008
+ }>;
1009
+ data: z.ZodOptional<z.ZodObject<{
1010
+ id: z.ZodOptional<z.ZodNumber>;
1011
+ title: z.ZodOptional<z.ZodString>;
1012
+ content: z.ZodOptional<z.ZodString>;
1013
+ category: z.ZodOptional<z.ZodString>;
1014
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1015
+ createdBy: z.ZodOptional<z.ZodNumber>;
1016
+ updatedBy: z.ZodOptional<z.ZodNumber>;
1017
+ userId: z.ZodOptional<z.ZodNumber>;
1018
+ query: z.ZodOptional<z.ZodString>;
1019
+ filters: z.ZodOptional<z.ZodObject<{
1020
+ query: z.ZodOptional<z.ZodString>;
1021
+ category: z.ZodOptional<z.ZodString>;
1022
+ tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1023
+ createdBy: z.ZodOptional<z.ZodNumber>;
1024
+ }, z.core.$strip>>;
1025
+ limit: z.ZodOptional<z.ZodNumber>;
1026
+ offset: z.ZodOptional<z.ZodNumber>;
1027
+ }, z.core.$strip>>;
1028
+ }, z.core.$strip>;
1029
+ }, z.core.$strip>;
1030
+ type KbNodesRequestMessage = z.infer<typeof KbNodesRequestMessageSchema>;
1031
+ /**
1032
+ * KB Nodes response payload schema
1033
+ * Synced with sdk-nodejs handler: kb-nodes.ts
1034
+ */
1035
+ declare const KbNodesResponsePayloadSchema: z.ZodObject<{
1036
+ success: z.ZodBoolean;
1037
+ error: z.ZodOptional<z.ZodString>;
1038
+ data: z.ZodOptional<z.ZodObject<{
1039
+ id: z.ZodOptional<z.ZodNumber>;
1040
+ title: z.ZodOptional<z.ZodString>;
1041
+ content: z.ZodOptional<z.ZodString>;
1042
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1043
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1044
+ createdBy: z.ZodOptional<z.ZodNumber>;
1045
+ updatedBy: z.ZodOptional<z.ZodNumber>;
1046
+ createdAt: z.ZodOptional<z.ZodString>;
1047
+ updatedAt: z.ZodOptional<z.ZodString>;
1048
+ message: z.ZodOptional<z.ZodString>;
1049
+ node: z.ZodOptional<z.ZodObject<{
1050
+ id: z.ZodOptional<z.ZodNumber>;
1051
+ title: z.ZodString;
1052
+ content: z.ZodString;
1053
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1054
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1055
+ createdBy: z.ZodNumber;
1056
+ updatedBy: z.ZodOptional<z.ZodNumber>;
1057
+ createdAt: z.ZodOptional<z.ZodString>;
1058
+ updatedAt: z.ZodOptional<z.ZodString>;
1059
+ }, z.core.$strip>>;
1060
+ nodes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1061
+ id: z.ZodOptional<z.ZodNumber>;
1062
+ title: z.ZodString;
1063
+ content: z.ZodString;
1064
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1065
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1066
+ createdBy: z.ZodNumber;
1067
+ updatedBy: z.ZodOptional<z.ZodNumber>;
1068
+ createdAt: z.ZodOptional<z.ZodString>;
1069
+ updatedAt: z.ZodOptional<z.ZodString>;
1070
+ }, z.core.$strip>>>;
1071
+ count: z.ZodOptional<z.ZodNumber>;
1072
+ userId: z.ZodOptional<z.ZodNumber>;
1073
+ categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
1074
+ }, z.core.$strip>>;
1075
+ }, z.core.$strip>;
1076
+ type KbNodesResponsePayload = z.infer<typeof KbNodesResponsePayloadSchema>;
1077
+ /**
1078
+ * KB Nodes response message schema
1079
+ */
1080
+ declare const KbNodesResponseMessageSchema: z.ZodObject<{
1081
+ id: z.ZodString;
1082
+ type: z.ZodLiteral<"KB_NODES_RES">;
1083
+ from: z.ZodObject<{
1084
+ id: z.ZodOptional<z.ZodString>;
1085
+ type: z.ZodOptional<z.ZodString>;
1086
+ }, z.core.$strip>;
1087
+ to: z.ZodOptional<z.ZodObject<{
1088
+ id: z.ZodOptional<z.ZodString>;
1089
+ type: z.ZodOptional<z.ZodString>;
1090
+ }, z.core.$strip>>;
1091
+ payload: z.ZodObject<{
1092
+ success: z.ZodBoolean;
1093
+ error: z.ZodOptional<z.ZodString>;
1094
+ data: z.ZodOptional<z.ZodObject<{
1095
+ id: z.ZodOptional<z.ZodNumber>;
1096
+ title: z.ZodOptional<z.ZodString>;
1097
+ content: z.ZodOptional<z.ZodString>;
1098
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1099
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1100
+ createdBy: z.ZodOptional<z.ZodNumber>;
1101
+ updatedBy: z.ZodOptional<z.ZodNumber>;
1102
+ createdAt: z.ZodOptional<z.ZodString>;
1103
+ updatedAt: z.ZodOptional<z.ZodString>;
1104
+ message: z.ZodOptional<z.ZodString>;
1105
+ node: z.ZodOptional<z.ZodObject<{
1106
+ id: z.ZodOptional<z.ZodNumber>;
1107
+ title: z.ZodString;
1108
+ content: z.ZodString;
1109
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1110
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1111
+ createdBy: z.ZodNumber;
1112
+ updatedBy: z.ZodOptional<z.ZodNumber>;
1113
+ createdAt: z.ZodOptional<z.ZodString>;
1114
+ updatedAt: z.ZodOptional<z.ZodString>;
1115
+ }, z.core.$strip>>;
1116
+ nodes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1117
+ id: z.ZodOptional<z.ZodNumber>;
1118
+ title: z.ZodString;
1119
+ content: z.ZodString;
1120
+ category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1121
+ tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1122
+ createdBy: z.ZodNumber;
1123
+ updatedBy: z.ZodOptional<z.ZodNumber>;
1124
+ createdAt: z.ZodOptional<z.ZodString>;
1125
+ updatedAt: z.ZodOptional<z.ZodString>;
1126
+ }, z.core.$strip>>>;
1127
+ count: z.ZodOptional<z.ZodNumber>;
1128
+ userId: z.ZodOptional<z.ZodNumber>;
1129
+ categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
1130
+ }, z.core.$strip>>;
1131
+ }, z.core.$strip>;
1132
+ }, z.core.$strip>;
1133
+ type KbNodesResponseMessage = z.infer<typeof KbNodesResponseMessageSchema>;
913
1134
  /**
914
1135
  * Client configuration schema
915
1136
  */
@@ -992,6 +1213,7 @@ declare function sendUserPromptSuggestionsRequest(client: SuperatomClient, promp
992
1213
  declare function requestBundle(client: SuperatomClient, options?: {
993
1214
  timeout?: number;
994
1215
  onProgress?: (progress: number) => void;
1216
+ devbundlereq?: boolean;
995
1217
  }): Promise<string>;
996
1218
 
997
1219
  /**
@@ -1088,7 +1310,7 @@ declare function createUser(client: SuperatomClient, username: string, password:
1088
1310
  * @param timeout - Request timeout in milliseconds
1089
1311
  * @returns Server response with success status
1090
1312
  */
1091
- declare function updateUser(client: SuperatomClient, username: string, updates: {
1313
+ declare function updateUser(client: SuperatomClient, id: number, updates: {
1092
1314
  password?: string;
1093
1315
  email?: string;
1094
1316
  fullname?: string;
@@ -1109,7 +1331,7 @@ declare function updateUser(client: SuperatomClient, username: string, updates:
1109
1331
  * @param timeout - Request timeout in milliseconds
1110
1332
  * @returns Server response with success status
1111
1333
  */
1112
- declare function deleteUser(client: SuperatomClient, username: string, timeout?: number): Promise<{
1334
+ declare function deleteUser(client: SuperatomClient, id: number, timeout?: number): Promise<{
1113
1335
  success: boolean;
1114
1336
  error?: string;
1115
1337
  message?: string;
@@ -1745,6 +1967,188 @@ declare function queryUIs(client: SuperatomClient, options?: QueryUIsOptions, ti
1745
1967
  message?: string;
1746
1968
  }>;
1747
1969
 
1970
+ /**
1971
+ * KB Nodes (Knowledge Base) Service
1972
+ * Handles KB_NODES message for knowledge base CRUD operations
1973
+ */
1974
+
1975
+ /**
1976
+ * KB Node interface for response data
1977
+ */
1978
+ interface KbNode {
1979
+ id?: number;
1980
+ title: string;
1981
+ content: string;
1982
+ category?: string | null;
1983
+ tags?: string[] | null;
1984
+ createdBy: number;
1985
+ updatedBy?: number;
1986
+ createdAt?: string;
1987
+ updatedAt?: string;
1988
+ }
1989
+ /**
1990
+ * Create a new knowledge base node
1991
+ * @param client - SuperatomClient instance
1992
+ * @param title - Title for the KB node
1993
+ * @param content - Content for the KB node
1994
+ * @param createdBy - User ID of the creator
1995
+ * @param category - Category for the KB node (optional)
1996
+ * @param tags - Tags for the KB node (optional)
1997
+ * @param timeout - Request timeout in milliseconds
1998
+ * @returns Server response with success status and created node data
1999
+ */
2000
+ declare function createKbNode(client: SuperatomClient, title: string, content: string, createdBy: number, category?: string, tags?: string[], timeout?: number): Promise<{
2001
+ success: boolean;
2002
+ error?: string;
2003
+ message?: string;
2004
+ node?: KbNode;
2005
+ }>;
2006
+ /**
2007
+ * Update an existing knowledge base node
2008
+ * @param client - SuperatomClient instance
2009
+ * @param id - ID of the KB node to update
2010
+ * @param updatedBy - User ID of the updater
2011
+ * @param updates - Object containing fields to update (title, content, category, tags)
2012
+ * @param timeout - Request timeout in milliseconds
2013
+ * @returns Server response with success status and updated node data
2014
+ */
2015
+ declare function updateKbNode(client: SuperatomClient, id: number, updatedBy: number, updates: {
2016
+ title?: string;
2017
+ content?: string;
2018
+ category?: string;
2019
+ tags?: string[];
2020
+ }, timeout?: number): Promise<{
2021
+ success: boolean;
2022
+ error?: string;
2023
+ message?: string;
2024
+ node?: KbNode;
2025
+ }>;
2026
+ /**
2027
+ * Delete a knowledge base node
2028
+ * @param client - SuperatomClient instance
2029
+ * @param id - ID of the KB node to delete
2030
+ * @param timeout - Request timeout in milliseconds
2031
+ * @returns Server response with success status
2032
+ */
2033
+ declare function deleteKbNode(client: SuperatomClient, id: number, timeout?: number): Promise<{
2034
+ success: boolean;
2035
+ error?: string;
2036
+ message?: string;
2037
+ }>;
2038
+ /**
2039
+ * Get all knowledge base nodes
2040
+ * @param client - SuperatomClient instance
2041
+ * @param limit - Maximum number of nodes to retrieve (optional, default 100)
2042
+ * @param offset - Offset for pagination (optional, default 0)
2043
+ * @param timeout - Request timeout in milliseconds
2044
+ * @returns Server response with list of KB nodes
2045
+ */
2046
+ declare function getAllKbNodes(client: SuperatomClient, limit?: number, offset?: number, timeout?: number): Promise<{
2047
+ success: boolean;
2048
+ error?: string;
2049
+ nodes?: KbNode[];
2050
+ count?: number;
2051
+ message?: string;
2052
+ }>;
2053
+ /**
2054
+ * Get a specific knowledge base node by ID
2055
+ * @param client - SuperatomClient instance
2056
+ * @param id - ID of the KB node to retrieve
2057
+ * @param timeout - Request timeout in milliseconds
2058
+ * @returns Server response with KB node data
2059
+ */
2060
+ declare function getKbNode(client: SuperatomClient, id: number, timeout?: number): Promise<{
2061
+ success: boolean;
2062
+ error?: string;
2063
+ node?: KbNode;
2064
+ message?: string;
2065
+ }>;
2066
+ /**
2067
+ * Search options for KB nodes
2068
+ */
2069
+ interface SearchKbNodesOptions {
2070
+ query?: string;
2071
+ category?: string;
2072
+ tags?: string[];
2073
+ createdBy?: number;
2074
+ limit?: number;
2075
+ offset?: number;
2076
+ }
2077
+ /**
2078
+ * Search knowledge base nodes with full-text search and filters
2079
+ * @param client - SuperatomClient instance
2080
+ * @param options - Search options with query, category, tags, createdBy, limit, offset
2081
+ * @param timeout - Request timeout in milliseconds
2082
+ * @returns Server response with list of matching KB nodes
2083
+ */
2084
+ declare function searchKbNodes(client: SuperatomClient, options?: SearchKbNodesOptions, timeout?: number): Promise<{
2085
+ success: boolean;
2086
+ error?: string;
2087
+ nodes?: KbNode[];
2088
+ count?: number;
2089
+ message?: string;
2090
+ }>;
2091
+ /**
2092
+ * Get knowledge base nodes by category
2093
+ * @param client - SuperatomClient instance
2094
+ * @param category - Category to filter by
2095
+ * @param limit - Maximum number of nodes to retrieve (optional, default 50)
2096
+ * @param offset - Offset for pagination (optional, default 0)
2097
+ * @param timeout - Request timeout in milliseconds
2098
+ * @returns Server response with list of KB nodes in the category
2099
+ */
2100
+ declare function getKbNodesByCategory(client: SuperatomClient, category: string, limit?: number, offset?: number, timeout?: number): Promise<{
2101
+ success: boolean;
2102
+ error?: string;
2103
+ nodes?: KbNode[];
2104
+ count?: number;
2105
+ category?: string;
2106
+ message?: string;
2107
+ }>;
2108
+ /**
2109
+ * Get knowledge base nodes by user (creator)
2110
+ * @param client - SuperatomClient instance
2111
+ * @param userId - User ID to filter by
2112
+ * @param limit - Maximum number of nodes to retrieve (optional, default 50)
2113
+ * @param offset - Offset for pagination (optional, default 0)
2114
+ * @param timeout - Request timeout in milliseconds
2115
+ * @returns Server response with list of KB nodes created by the user
2116
+ */
2117
+ declare function getKbNodesByUser(client: SuperatomClient, userId: number, limit?: number, offset?: number, timeout?: number): Promise<{
2118
+ success: boolean;
2119
+ error?: string;
2120
+ nodes?: KbNode[];
2121
+ count?: number;
2122
+ userId?: number;
2123
+ message?: string;
2124
+ }>;
2125
+ /**
2126
+ * Get all unique categories from knowledge base nodes
2127
+ * @param client - SuperatomClient instance
2128
+ * @param timeout - Request timeout in milliseconds
2129
+ * @returns Server response with list of unique categories
2130
+ */
2131
+ declare function getKbNodeCategories(client: SuperatomClient, timeout?: number): Promise<{
2132
+ success: boolean;
2133
+ error?: string;
2134
+ categories?: string[];
2135
+ count?: number;
2136
+ message?: string;
2137
+ }>;
2138
+ /**
2139
+ * Get all unique tags from knowledge base nodes
2140
+ * @param client - SuperatomClient instance
2141
+ * @param timeout - Request timeout in milliseconds
2142
+ * @returns Server response with list of unique tags
2143
+ */
2144
+ declare function getKbNodeTags(client: SuperatomClient, timeout?: number): Promise<{
2145
+ success: boolean;
2146
+ error?: string;
2147
+ tags?: string[];
2148
+ count?: number;
2149
+ message?: string;
2150
+ }>;
2151
+
1748
2152
  /**
1749
2153
  * Services Index
1750
2154
  * Re-exports all service functions for easy importing
@@ -1762,6 +2166,7 @@ type index_Expression = Expression;
1762
2166
  declare const index_ExpressionSchema: typeof ExpressionSchema;
1763
2167
  type index_ForDirective = ForDirective;
1764
2168
  declare const index_ForDirectiveSchema: typeof ForDirectiveSchema;
2169
+ type index_KbNode = KbNode;
1765
2170
  type index_QueryBookmarksOptions = QueryBookmarksOptions;
1766
2171
  type index_QueryDashboardsOptions = QueryDashboardsOptions;
1767
2172
  type index_QueryReportsOptions = QueryReportsOptions;
@@ -1770,6 +2175,7 @@ declare const index_QuerySpecSchema: typeof QuerySpecSchema;
1770
2175
  type index_QueryUIsOptions = QueryUIsOptions;
1771
2176
  type index_QueryUsersOptions = QueryUsersOptions;
1772
2177
  type index_Report = Report;
2178
+ type index_SearchKbNodesOptions = SearchKbNodesOptions;
1773
2179
  type index_UI = UI;
1774
2180
  type index_UIComponent = UIComponent;
1775
2181
  declare const index_UIComponentSchema: typeof UIComponentSchema;
@@ -1782,23 +2188,31 @@ type index_UpdateUIOptions = UpdateUIOptions;
1782
2188
  type index_User = User;
1783
2189
  declare const index_createBookmark: typeof createBookmark;
1784
2190
  declare const index_createDashboard: typeof createDashboard;
2191
+ declare const index_createKbNode: typeof createKbNode;
1785
2192
  declare const index_createReport: typeof createReport;
1786
2193
  declare const index_createUI: typeof createUI;
1787
2194
  declare const index_createUser: typeof createUser;
1788
2195
  declare const index_deleteBookmark: typeof deleteBookmark;
1789
2196
  declare const index_deleteDashboard: typeof deleteDashboard;
2197
+ declare const index_deleteKbNode: typeof deleteKbNode;
1790
2198
  declare const index_deleteReport: typeof deleteReport;
1791
2199
  declare const index_deleteUI: typeof deleteUI;
1792
2200
  declare const index_deleteUser: typeof deleteUser;
1793
2201
  declare const index_getActions: typeof getActions;
1794
2202
  declare const index_getAllBookmarks: typeof getAllBookmarks;
1795
2203
  declare const index_getAllDashboards: typeof getAllDashboards;
2204
+ declare const index_getAllKbNodes: typeof getAllKbNodes;
1796
2205
  declare const index_getAllReports: typeof getAllReports;
1797
2206
  declare const index_getAllUIs: typeof getAllUIs;
1798
2207
  declare const index_getAllUsers: typeof getAllUsers;
1799
2208
  declare const index_getBookmark: typeof getBookmark;
1800
2209
  declare const index_getComponentSuggestions: typeof getComponentSuggestions;
1801
2210
  declare const index_getDashboard: typeof getDashboard;
2211
+ declare const index_getKbNode: typeof getKbNode;
2212
+ declare const index_getKbNodeCategories: typeof getKbNodeCategories;
2213
+ declare const index_getKbNodeTags: typeof getKbNodeTags;
2214
+ declare const index_getKbNodesByCategory: typeof getKbNodesByCategory;
2215
+ declare const index_getKbNodesByUser: typeof getKbNodesByUser;
1802
2216
  declare const index_getReport: typeof getReport;
1803
2217
  declare const index_getUI: typeof getUI;
1804
2218
  declare const index_getUser: typeof getUser;
@@ -1809,6 +2223,7 @@ declare const index_queryUIs: typeof queryUIs;
1809
2223
  declare const index_queryUsers: typeof queryUsers;
1810
2224
  declare const index_requestBundle: typeof requestBundle;
1811
2225
  declare const index_requestData: typeof requestData;
2226
+ declare const index_searchKbNodes: typeof searchKbNodes;
1812
2227
  declare const index_sendAuthLoginRequest: typeof sendAuthLoginRequest;
1813
2228
  declare const index_sendAuthVerifyRequest: typeof sendAuthVerifyRequest;
1814
2229
  declare const index_sendComponents: typeof sendComponents;
@@ -1816,11 +2231,12 @@ declare const index_sendUserPromptRequest: typeof sendUserPromptRequest;
1816
2231
  declare const index_sendUserPromptSuggestionsRequest: typeof sendUserPromptSuggestionsRequest;
1817
2232
  declare const index_updateBookmark: typeof updateBookmark;
1818
2233
  declare const index_updateDashboard: typeof updateDashboard;
2234
+ declare const index_updateKbNode: typeof updateKbNode;
1819
2235
  declare const index_updateReport: typeof updateReport;
1820
2236
  declare const index_updateUI: typeof updateUI;
1821
2237
  declare const index_updateUser: typeof updateUser;
1822
2238
  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 };
2239
+ 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
2240
  }
1825
2241
 
1826
2242
  type MessageHandler = (message: Message) => void;
@@ -1968,6 +2384,7 @@ declare class SuperatomClient {
1968
2384
  requestBundle(options?: {
1969
2385
  timeout?: number;
1970
2386
  onProgress?: (progress: number) => void;
2387
+ devbundle?: boolean;
1971
2388
  }): Promise<string>;
1972
2389
  /**
1973
2390
  * Request data from a collection
@@ -2026,7 +2443,7 @@ declare class SuperatomClient {
2026
2443
  * Update an existing user
2027
2444
  * Delegates to users service
2028
2445
  */
2029
- updateUser(username: string, updates: {
2446
+ updateUser(id: number, updates: {
2030
2447
  password?: string;
2031
2448
  email?: string;
2032
2449
  fullname?: string;
@@ -2044,7 +2461,7 @@ declare class SuperatomClient {
2044
2461
  * Delete a user
2045
2462
  * Delegates to users service
2046
2463
  */
2047
- deleteUser(username: string, timeout?: number): Promise<{
2464
+ deleteUser(id: number, timeout?: number): Promise<{
2048
2465
  success: boolean;
2049
2466
  error?: string;
2050
2467
  message?: string;
@@ -2349,6 +2766,118 @@ declare class SuperatomClient {
2349
2766
  count?: number;
2350
2767
  message?: string;
2351
2768
  }>;
2769
+ /**
2770
+ * Create a new knowledge base node
2771
+ * Delegates to kb-nodes service
2772
+ */
2773
+ createKbNode(title: string, content: string, createdBy: number, category?: string, tags?: string[], timeout?: number): Promise<{
2774
+ success: boolean;
2775
+ error?: string;
2776
+ message?: string;
2777
+ node?: KbNode;
2778
+ }>;
2779
+ /**
2780
+ * Update an existing knowledge base node
2781
+ * Delegates to kb-nodes service
2782
+ */
2783
+ updateKbNode(id: number, updatedBy: number, updates: {
2784
+ title?: string;
2785
+ content?: string;
2786
+ category?: string;
2787
+ tags?: string[];
2788
+ }, timeout?: number): Promise<{
2789
+ success: boolean;
2790
+ error?: string;
2791
+ message?: string;
2792
+ node?: KbNode;
2793
+ }>;
2794
+ /**
2795
+ * Delete a knowledge base node
2796
+ * Delegates to kb-nodes service
2797
+ */
2798
+ deleteKbNode(id: number, timeout?: number): Promise<{
2799
+ success: boolean;
2800
+ error?: string;
2801
+ message?: string;
2802
+ }>;
2803
+ /**
2804
+ * Get all knowledge base nodes
2805
+ * Delegates to kb-nodes service
2806
+ */
2807
+ getAllKbNodes(limit?: number, offset?: number, timeout?: number): Promise<{
2808
+ success: boolean;
2809
+ error?: string;
2810
+ nodes?: KbNode[];
2811
+ count?: number;
2812
+ message?: string;
2813
+ }>;
2814
+ /**
2815
+ * Get a specific knowledge base node by ID
2816
+ * Delegates to kb-nodes service
2817
+ */
2818
+ getKbNode(id: number, timeout?: number): Promise<{
2819
+ success: boolean;
2820
+ error?: string;
2821
+ node?: KbNode;
2822
+ message?: string;
2823
+ }>;
2824
+ /**
2825
+ * Search knowledge base nodes with full-text search and filters
2826
+ * Delegates to kb-nodes service
2827
+ */
2828
+ searchKbNodes(options?: SearchKbNodesOptions, timeout?: number): Promise<{
2829
+ success: boolean;
2830
+ error?: string;
2831
+ nodes?: KbNode[];
2832
+ count?: number;
2833
+ message?: string;
2834
+ }>;
2835
+ /**
2836
+ * Get knowledge base nodes by category
2837
+ * Delegates to kb-nodes service
2838
+ */
2839
+ getKbNodesByCategory(category: string, limit?: number, offset?: number, timeout?: number): Promise<{
2840
+ success: boolean;
2841
+ error?: string;
2842
+ nodes?: KbNode[];
2843
+ count?: number;
2844
+ category?: string;
2845
+ message?: string;
2846
+ }>;
2847
+ /**
2848
+ * Get knowledge base nodes by user (creator)
2849
+ * Delegates to kb-nodes service
2850
+ */
2851
+ getKbNodesByUser(userId: number, limit?: number, offset?: number, timeout?: number): Promise<{
2852
+ success: boolean;
2853
+ error?: string;
2854
+ nodes?: KbNode[];
2855
+ count?: number;
2856
+ userId?: number;
2857
+ message?: string;
2858
+ }>;
2859
+ /**
2860
+ * Get all unique categories from knowledge base nodes
2861
+ * Delegates to kb-nodes service
2862
+ */
2863
+ getKbNodeCategories(timeout?: number): Promise<{
2864
+ success: boolean;
2865
+ error?: string;
2866
+ categories?: string[];
2867
+ count?: number;
2868
+ message?: string;
2869
+ }>;
2870
+ /**
2871
+ * Get all unique tags from knowledge base nodes
2872
+ * Delegates to kb-nodes service
2873
+ */
2874
+ getKbNodeTags(timeout?: number): Promise<{
2875
+ success: boolean;
2876
+ error?: string;
2877
+ tags?: string[];
2878
+ count?: number;
2879
+ message?: string;
2880
+ }>;
2352
2881
  /**
2353
2882
  * Internal logging
2354
2883
  */
@@ -2408,4 +2937,4 @@ declare function hasComponents(): boolean;
2408
2937
  */
2409
2938
  declare const SDK_VERSION = "0.1.0";
2410
2939
 
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 };
2940
+ 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 };