@superatomai/sdk-web 0.0.22 → 0.0.24

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
@@ -945,6 +945,21 @@ declare const BookmarkQueryFiltersSchema: z.ZodObject<{
945
945
  name: z.ZodOptional<z.ZodString>;
946
946
  }, z.core.$strip>;
947
947
  type BookmarkQueryFilters = z.infer<typeof BookmarkQueryFiltersSchema>;
948
+ /**
949
+ * Artifact data schema
950
+ * Synced with sdk-nodejs/project-setup: artifacts.ts
951
+ */
952
+ declare const ArtifactDataSchema: z.ZodObject<{
953
+ id: z.ZodOptional<z.ZodNumber>;
954
+ name: z.ZodString;
955
+ createdBy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
956
+ dsl: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
957
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
958
+ deleted: z.ZodOptional<z.ZodBoolean>;
959
+ createdAt: z.ZodOptional<z.ZodString>;
960
+ updatedAt: z.ZodOptional<z.ZodString>;
961
+ }, z.core.$strip>;
962
+ type ArtifactData = z.infer<typeof ArtifactDataSchema>;
948
963
  /**
949
964
  * KB Node data schema
950
965
  * Synced with sdk-nodejs/project-setup: kb-nodes.ts
@@ -955,6 +970,11 @@ declare const KbNodeDataSchema: z.ZodObject<{
955
970
  content: z.ZodString;
956
971
  category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
957
972
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
973
+ type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
974
+ query: "query";
975
+ user: "user";
976
+ global: "global";
977
+ }>>>;
958
978
  createdBy: z.ZodNumber;
959
979
  updatedBy: z.ZodOptional<z.ZodNumber>;
960
980
  createdAt: z.ZodOptional<z.ZodString>;
@@ -969,6 +989,11 @@ declare const KbNodesQueryFiltersSchema: z.ZodObject<{
969
989
  query: z.ZodOptional<z.ZodString>;
970
990
  category: z.ZodOptional<z.ZodString>;
971
991
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
992
+ type: z.ZodOptional<z.ZodEnum<{
993
+ query: "query";
994
+ user: "user";
995
+ global: "global";
996
+ }>>;
972
997
  createdBy: z.ZodOptional<z.ZodNumber>;
973
998
  }, z.core.$strip>;
974
999
  type KbNodesQueryFilters = z.infer<typeof KbNodesQueryFiltersSchema>;
@@ -995,6 +1020,11 @@ declare const KbNodesRequestPayloadSchema: z.ZodObject<{
995
1020
  content: z.ZodOptional<z.ZodString>;
996
1021
  category: z.ZodOptional<z.ZodString>;
997
1022
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1023
+ type: z.ZodOptional<z.ZodEnum<{
1024
+ query: "query";
1025
+ user: "user";
1026
+ global: "global";
1027
+ }>>;
998
1028
  createdBy: z.ZodOptional<z.ZodNumber>;
999
1029
  updatedBy: z.ZodOptional<z.ZodNumber>;
1000
1030
  userId: z.ZodOptional<z.ZodNumber>;
@@ -1003,6 +1033,11 @@ declare const KbNodesRequestPayloadSchema: z.ZodObject<{
1003
1033
  query: z.ZodOptional<z.ZodString>;
1004
1034
  category: z.ZodOptional<z.ZodString>;
1005
1035
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1036
+ type: z.ZodOptional<z.ZodEnum<{
1037
+ query: "query";
1038
+ user: "user";
1039
+ global: "global";
1040
+ }>>;
1006
1041
  createdBy: z.ZodOptional<z.ZodNumber>;
1007
1042
  }, z.core.$strip>>;
1008
1043
  limit: z.ZodOptional<z.ZodNumber>;
@@ -1044,6 +1079,11 @@ declare const KbNodesRequestMessageSchema: z.ZodObject<{
1044
1079
  content: z.ZodOptional<z.ZodString>;
1045
1080
  category: z.ZodOptional<z.ZodString>;
1046
1081
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1082
+ type: z.ZodOptional<z.ZodEnum<{
1083
+ query: "query";
1084
+ user: "user";
1085
+ global: "global";
1086
+ }>>;
1047
1087
  createdBy: z.ZodOptional<z.ZodNumber>;
1048
1088
  updatedBy: z.ZodOptional<z.ZodNumber>;
1049
1089
  userId: z.ZodOptional<z.ZodNumber>;
@@ -1052,6 +1092,11 @@ declare const KbNodesRequestMessageSchema: z.ZodObject<{
1052
1092
  query: z.ZodOptional<z.ZodString>;
1053
1093
  category: z.ZodOptional<z.ZodString>;
1054
1094
  tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
1095
+ type: z.ZodOptional<z.ZodEnum<{
1096
+ query: "query";
1097
+ user: "user";
1098
+ global: "global";
1099
+ }>>;
1055
1100
  createdBy: z.ZodOptional<z.ZodNumber>;
1056
1101
  }, z.core.$strip>>;
1057
1102
  limit: z.ZodOptional<z.ZodNumber>;
@@ -1073,6 +1118,11 @@ declare const KbNodesResponsePayloadSchema: z.ZodObject<{
1073
1118
  content: z.ZodOptional<z.ZodString>;
1074
1119
  category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1075
1120
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1121
+ type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1122
+ query: "query";
1123
+ user: "user";
1124
+ global: "global";
1125
+ }>>>;
1076
1126
  createdBy: z.ZodOptional<z.ZodNumber>;
1077
1127
  updatedBy: z.ZodOptional<z.ZodNumber>;
1078
1128
  createdAt: z.ZodOptional<z.ZodString>;
@@ -1084,6 +1134,11 @@ declare const KbNodesResponsePayloadSchema: z.ZodObject<{
1084
1134
  content: z.ZodString;
1085
1135
  category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1086
1136
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1137
+ type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1138
+ query: "query";
1139
+ user: "user";
1140
+ global: "global";
1141
+ }>>>;
1087
1142
  createdBy: z.ZodNumber;
1088
1143
  updatedBy: z.ZodOptional<z.ZodNumber>;
1089
1144
  createdAt: z.ZodOptional<z.ZodString>;
@@ -1095,6 +1150,11 @@ declare const KbNodesResponsePayloadSchema: z.ZodObject<{
1095
1150
  content: z.ZodString;
1096
1151
  category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1097
1152
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1153
+ type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1154
+ query: "query";
1155
+ user: "user";
1156
+ global: "global";
1157
+ }>>>;
1098
1158
  createdBy: z.ZodNumber;
1099
1159
  updatedBy: z.ZodOptional<z.ZodNumber>;
1100
1160
  createdAt: z.ZodOptional<z.ZodString>;
@@ -1129,6 +1189,11 @@ declare const KbNodesResponseMessageSchema: z.ZodObject<{
1129
1189
  content: z.ZodOptional<z.ZodString>;
1130
1190
  category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1131
1191
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1192
+ type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1193
+ query: "query";
1194
+ user: "user";
1195
+ global: "global";
1196
+ }>>>;
1132
1197
  createdBy: z.ZodOptional<z.ZodNumber>;
1133
1198
  updatedBy: z.ZodOptional<z.ZodNumber>;
1134
1199
  createdAt: z.ZodOptional<z.ZodString>;
@@ -1140,6 +1205,11 @@ declare const KbNodesResponseMessageSchema: z.ZodObject<{
1140
1205
  content: z.ZodString;
1141
1206
  category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1142
1207
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1208
+ type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1209
+ query: "query";
1210
+ user: "user";
1211
+ global: "global";
1212
+ }>>>;
1143
1213
  createdBy: z.ZodNumber;
1144
1214
  updatedBy: z.ZodOptional<z.ZodNumber>;
1145
1215
  createdAt: z.ZodOptional<z.ZodString>;
@@ -1151,6 +1221,11 @@ declare const KbNodesResponseMessageSchema: z.ZodObject<{
1151
1221
  content: z.ZodString;
1152
1222
  category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1153
1223
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1224
+ type: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1225
+ query: "query";
1226
+ user: "user";
1227
+ global: "global";
1228
+ }>>>;
1154
1229
  createdBy: z.ZodNumber;
1155
1230
  updatedBy: z.ZodOptional<z.ZodNumber>;
1156
1231
  createdAt: z.ZodOptional<z.ZodString>;
@@ -1163,6 +1238,170 @@ declare const KbNodesResponseMessageSchema: z.ZodObject<{
1163
1238
  }, z.core.$strip>;
1164
1239
  }, z.core.$strip>;
1165
1240
  type KbNodesResponseMessage = z.infer<typeof KbNodesResponseMessageSchema>;
1241
+ /**
1242
+ * Menu data interface (defined separately for self-referencing schema)
1243
+ */
1244
+ interface MenuData {
1245
+ id?: number;
1246
+ name: string;
1247
+ componentName: string;
1248
+ icon?: string | null;
1249
+ userMessage?: string | null;
1250
+ parentId?: number | null;
1251
+ sortOrder?: number;
1252
+ props?: Record<string, unknown> | null;
1253
+ isActive?: boolean;
1254
+ createdAt?: string;
1255
+ updatedAt?: string;
1256
+ children?: MenuData[];
1257
+ }
1258
+ /**
1259
+ * Menu data schema
1260
+ * Synced with sdk-nodejs: MenuDataSchema
1261
+ */
1262
+ declare const MenuDataSchema: z.ZodType<MenuData>;
1263
+ /**
1264
+ * Menu query filters schema
1265
+ * Synced with sdk-nodejs: MenuQueryFiltersSchema
1266
+ */
1267
+ declare const MenuQueryFiltersSchema: z.ZodObject<{
1268
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1269
+ isActive: z.ZodOptional<z.ZodBoolean>;
1270
+ }, z.core.$strip>;
1271
+ type MenuQueryFilters = z.infer<typeof MenuQueryFiltersSchema>;
1272
+ /**
1273
+ * Menus request payload schema
1274
+ * Synced with sdk-nodejs: MenusRequestPayloadSchema
1275
+ */
1276
+ declare const MenusRequestPayloadSchema: z.ZodObject<{
1277
+ operation: z.ZodEnum<{
1278
+ query: "query";
1279
+ create: "create";
1280
+ update: "update";
1281
+ delete: "delete";
1282
+ getAll: "getAll";
1283
+ getOne: "getOne";
1284
+ getRootMenus: "getRootMenus";
1285
+ getChildMenus: "getChildMenus";
1286
+ getHierarchy: "getHierarchy";
1287
+ reorder: "reorder";
1288
+ }>;
1289
+ data: z.ZodOptional<z.ZodObject<{
1290
+ id: z.ZodOptional<z.ZodNumber>;
1291
+ name: z.ZodOptional<z.ZodString>;
1292
+ componentName: z.ZodOptional<z.ZodString>;
1293
+ icon: z.ZodOptional<z.ZodString>;
1294
+ userMessage: z.ZodOptional<z.ZodString>;
1295
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1296
+ sortOrder: z.ZodOptional<z.ZodNumber>;
1297
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1298
+ isActive: z.ZodOptional<z.ZodBoolean>;
1299
+ filters: z.ZodOptional<z.ZodObject<{
1300
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1301
+ isActive: z.ZodOptional<z.ZodBoolean>;
1302
+ }, z.core.$strip>>;
1303
+ limit: z.ZodOptional<z.ZodNumber>;
1304
+ sort: z.ZodOptional<z.ZodEnum<{
1305
+ ASC: "ASC";
1306
+ DESC: "DESC";
1307
+ }>>;
1308
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
1309
+ id: z.ZodNumber;
1310
+ sortOrder: z.ZodNumber;
1311
+ }, z.core.$strip>>>;
1312
+ }, z.core.$strip>>;
1313
+ }, z.core.$strip>;
1314
+ type MenusRequestPayload = z.infer<typeof MenusRequestPayloadSchema>;
1315
+ /**
1316
+ * Menus request message schema
1317
+ * Synced with sdk-nodejs: MenusRequestMessageSchema
1318
+ */
1319
+ declare const MenusRequestMessageSchema: z.ZodObject<{
1320
+ id: z.ZodString;
1321
+ type: z.ZodLiteral<"MENUS">;
1322
+ from: z.ZodObject<{
1323
+ id: z.ZodOptional<z.ZodString>;
1324
+ type: z.ZodOptional<z.ZodString>;
1325
+ }, z.core.$strip>;
1326
+ to: z.ZodOptional<z.ZodObject<{
1327
+ id: z.ZodOptional<z.ZodString>;
1328
+ type: z.ZodOptional<z.ZodString>;
1329
+ }, z.core.$strip>>;
1330
+ payload: z.ZodObject<{
1331
+ operation: z.ZodEnum<{
1332
+ query: "query";
1333
+ create: "create";
1334
+ update: "update";
1335
+ delete: "delete";
1336
+ getAll: "getAll";
1337
+ getOne: "getOne";
1338
+ getRootMenus: "getRootMenus";
1339
+ getChildMenus: "getChildMenus";
1340
+ getHierarchy: "getHierarchy";
1341
+ reorder: "reorder";
1342
+ }>;
1343
+ data: z.ZodOptional<z.ZodObject<{
1344
+ id: z.ZodOptional<z.ZodNumber>;
1345
+ name: z.ZodOptional<z.ZodString>;
1346
+ componentName: z.ZodOptional<z.ZodString>;
1347
+ icon: z.ZodOptional<z.ZodString>;
1348
+ userMessage: z.ZodOptional<z.ZodString>;
1349
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1350
+ sortOrder: z.ZodOptional<z.ZodNumber>;
1351
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1352
+ isActive: z.ZodOptional<z.ZodBoolean>;
1353
+ filters: z.ZodOptional<z.ZodObject<{
1354
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1355
+ isActive: z.ZodOptional<z.ZodBoolean>;
1356
+ }, z.core.$strip>>;
1357
+ limit: z.ZodOptional<z.ZodNumber>;
1358
+ sort: z.ZodOptional<z.ZodEnum<{
1359
+ ASC: "ASC";
1360
+ DESC: "DESC";
1361
+ }>>;
1362
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
1363
+ id: z.ZodNumber;
1364
+ sortOrder: z.ZodNumber;
1365
+ }, z.core.$strip>>>;
1366
+ }, z.core.$strip>>;
1367
+ }, z.core.$strip>;
1368
+ }, z.core.$strip>;
1369
+ type MenusRequestMessage = z.infer<typeof MenusRequestMessageSchema>;
1370
+ /**
1371
+ * Menus response payload schema
1372
+ * Synced with sdk-nodejs handler: menus.ts
1373
+ */
1374
+ declare const MenusResponsePayloadSchema: z.ZodObject<{
1375
+ success: z.ZodBoolean;
1376
+ error: z.ZodOptional<z.ZodString>;
1377
+ data: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<MenuData, unknown, z.core.$ZodTypeInternals<MenuData, unknown>>, z.ZodArray<z.ZodType<MenuData, unknown, z.core.$ZodTypeInternals<MenuData, unknown>>>]>>;
1378
+ count: z.ZodOptional<z.ZodNumber>;
1379
+ message: z.ZodOptional<z.ZodString>;
1380
+ }, z.core.$strip>;
1381
+ type MenusResponsePayload = z.infer<typeof MenusResponsePayloadSchema>;
1382
+ /**
1383
+ * Menus response message schema
1384
+ */
1385
+ declare const MenusResponseMessageSchema: z.ZodObject<{
1386
+ id: z.ZodString;
1387
+ type: z.ZodLiteral<"MENUS_RES">;
1388
+ from: z.ZodObject<{
1389
+ id: z.ZodOptional<z.ZodString>;
1390
+ type: z.ZodOptional<z.ZodString>;
1391
+ }, z.core.$strip>;
1392
+ to: z.ZodOptional<z.ZodObject<{
1393
+ id: z.ZodOptional<z.ZodString>;
1394
+ type: z.ZodOptional<z.ZodString>;
1395
+ }, z.core.$strip>>;
1396
+ payload: z.ZodObject<{
1397
+ success: z.ZodBoolean;
1398
+ error: z.ZodOptional<z.ZodString>;
1399
+ data: z.ZodOptional<z.ZodUnion<readonly [z.ZodType<MenuData, unknown, z.core.$ZodTypeInternals<MenuData, unknown>>, z.ZodArray<z.ZodType<MenuData, unknown, z.core.$ZodTypeInternals<MenuData, unknown>>>]>>;
1400
+ count: z.ZodOptional<z.ZodNumber>;
1401
+ message: z.ZodOptional<z.ZodString>;
1402
+ }, z.core.$strip>;
1403
+ }, z.core.$strip>;
1404
+ type MenusResponseMessage = z.infer<typeof MenusResponseMessageSchema>;
1166
1405
  /**
1167
1406
  * Client configuration schema
1168
1407
  */
@@ -1833,6 +2072,110 @@ declare function queryBookmarks(client: SuperatomClient, options?: QueryBookmark
1833
2072
  message?: string;
1834
2073
  }>;
1835
2074
 
2075
+ /**
2076
+ * Artifacts Service
2077
+ * Handles ARTIFACTS message for artifact CRUD operations
2078
+ */
2079
+
2080
+ /**
2081
+ * Artifact interface for response data
2082
+ */
2083
+ interface Artifact {
2084
+ id?: number;
2085
+ name: string;
2086
+ createdBy?: number | null;
2087
+ dsl?: Record<string, any> | null;
2088
+ status?: string | null;
2089
+ deleted?: boolean;
2090
+ createdAt?: string;
2091
+ updatedAt?: string;
2092
+ }
2093
+ /**
2094
+ * Create artifact options
2095
+ */
2096
+ interface CreateArtifactOptions {
2097
+ name: string;
2098
+ createdBy?: number;
2099
+ dsl?: Record<string, any>;
2100
+ status?: string;
2101
+ }
2102
+ /**
2103
+ * Create a new artifact
2104
+ * @param client - SuperatomClient instance
2105
+ * @param options - Artifact creation options
2106
+ * @param timeout - Request timeout in milliseconds
2107
+ * @returns Server response with success status
2108
+ */
2109
+ declare function createArtifact(client: SuperatomClient, options: CreateArtifactOptions, timeout?: number): Promise<{
2110
+ success: boolean;
2111
+ error?: string;
2112
+ message?: string;
2113
+ data?: ArtifactData;
2114
+ }>;
2115
+ /**
2116
+ * Update artifact options
2117
+ */
2118
+ interface UpdateArtifactOptions {
2119
+ id: number;
2120
+ name?: string;
2121
+ dsl?: Record<string, any>;
2122
+ status?: string;
2123
+ deleted?: boolean;
2124
+ }
2125
+ /**
2126
+ * Update an existing artifact
2127
+ * @param client - SuperatomClient instance
2128
+ * @param options - Artifact update options
2129
+ * @param timeout - Request timeout in milliseconds
2130
+ * @returns Server response with success status
2131
+ */
2132
+ declare function updateArtifact(client: SuperatomClient, options: UpdateArtifactOptions, timeout?: number): Promise<{
2133
+ success: boolean;
2134
+ error?: string;
2135
+ message?: string;
2136
+ data?: ArtifactData;
2137
+ }>;
2138
+ /**
2139
+ * Delete an artifact (soft delete)
2140
+ * @param client - SuperatomClient instance
2141
+ * @param id - Artifact ID to delete
2142
+ * @param timeout - Request timeout in milliseconds
2143
+ * @returns Server response with success status
2144
+ */
2145
+ declare function deleteArtifact(client: SuperatomClient, id: number, timeout?: number): Promise<{
2146
+ success: boolean;
2147
+ error?: string;
2148
+ message?: string;
2149
+ data?: ArtifactData;
2150
+ }>;
2151
+ /**
2152
+ * Get all artifacts
2153
+ * @param client - SuperatomClient instance
2154
+ * @param limit - Optional limit for number of results
2155
+ * @param timeout - Request timeout in milliseconds
2156
+ * @returns Server response with list of artifacts
2157
+ */
2158
+ declare function getAllArtifacts(client: SuperatomClient, limit?: number, timeout?: number): Promise<{
2159
+ success: boolean;
2160
+ error?: string;
2161
+ data?: ArtifactData[];
2162
+ count?: number;
2163
+ message?: string;
2164
+ }>;
2165
+ /**
2166
+ * Get a specific artifact by ID
2167
+ * @param client - SuperatomClient instance
2168
+ * @param id - Artifact ID to retrieve
2169
+ * @param timeout - Request timeout in milliseconds
2170
+ * @returns Server response with artifact data
2171
+ */
2172
+ declare function getArtifact(client: SuperatomClient, id: number, timeout?: number): Promise<{
2173
+ success: boolean;
2174
+ error?: string;
2175
+ data?: ArtifactData;
2176
+ message?: string;
2177
+ }>;
2178
+
1836
2179
  declare function getActions(client: SuperatomClient, options: {
1837
2180
  userId?: string;
1838
2181
  SA_RUNTIME?: Record<string, unknown>;
@@ -2019,6 +2362,10 @@ declare function queryUIs(client: SuperatomClient, options?: QueryUIsOptions, ti
2019
2362
  * Handles KB_NODES message for knowledge base CRUD operations
2020
2363
  */
2021
2364
 
2365
+ /**
2366
+ * KB Node type
2367
+ */
2368
+ type KbNodeType = 'global' | 'user' | 'query';
2022
2369
  /**
2023
2370
  * KB Node interface for response data
2024
2371
  */
@@ -2028,6 +2375,7 @@ interface KbNode {
2028
2375
  content: string;
2029
2376
  category?: string | null;
2030
2377
  tags?: string[] | null;
2378
+ type?: KbNodeType | null;
2031
2379
  createdBy: number;
2032
2380
  updatedBy?: number;
2033
2381
  createdAt?: string;
@@ -2041,10 +2389,11 @@ interface KbNode {
2041
2389
  * @param createdBy - User ID of the creator
2042
2390
  * @param category - Category for the KB node (optional)
2043
2391
  * @param tags - Tags for the KB node (optional)
2392
+ * @param type - Type of the KB node: 'global', 'user', or 'query' (optional, default 'query')
2044
2393
  * @param timeout - Request timeout in milliseconds
2045
2394
  * @returns Server response with success status and created node data
2046
2395
  */
2047
- declare function createKbNode(client: SuperatomClient, title: string, content: string, createdBy: number, category?: string, tags?: string[], timeout?: number): Promise<{
2396
+ declare function createKbNode(client: SuperatomClient, title: string, content: string, createdBy: number, category?: string, tags?: string[], type?: KbNodeType, timeout?: number): Promise<{
2048
2397
  success: boolean;
2049
2398
  error?: string;
2050
2399
  message?: string;
@@ -2055,7 +2404,7 @@ declare function createKbNode(client: SuperatomClient, title: string, content: s
2055
2404
  * @param client - SuperatomClient instance
2056
2405
  * @param id - ID of the KB node to update
2057
2406
  * @param updatedBy - User ID of the updater
2058
- * @param updates - Object containing fields to update (title, content, category, tags)
2407
+ * @param updates - Object containing fields to update (title, content, category, tags, type)
2059
2408
  * @param timeout - Request timeout in milliseconds
2060
2409
  * @returns Server response with success status and updated node data
2061
2410
  */
@@ -2064,6 +2413,7 @@ declare function updateKbNode(client: SuperatomClient, id: number, updatedBy: nu
2064
2413
  content?: string;
2065
2414
  category?: string;
2066
2415
  tags?: string[];
2416
+ type?: KbNodeType;
2067
2417
  }, timeout?: number): Promise<{
2068
2418
  success: boolean;
2069
2419
  error?: string;
@@ -2117,6 +2467,7 @@ interface SearchKbNodesOptions {
2117
2467
  query?: string;
2118
2468
  category?: string;
2119
2469
  tags?: string[];
2470
+ type?: KbNodeType;
2120
2471
  createdBy?: number;
2121
2472
  limit?: number;
2122
2473
  offset?: number;
@@ -2124,7 +2475,7 @@ interface SearchKbNodesOptions {
2124
2475
  /**
2125
2476
  * Search knowledge base nodes with full-text search and filters
2126
2477
  * @param client - SuperatomClient instance
2127
- * @param options - Search options with query, category, tags, createdBy, limit, offset
2478
+ * @param options - Search options with query, category, tags, type, createdBy, limit, offset
2128
2479
  * @param timeout - Request timeout in milliseconds
2129
2480
  * @returns Server response with list of matching KB nodes
2130
2481
  */
@@ -2265,16 +2616,216 @@ interface DashCompRequestOptions {
2265
2616
  */
2266
2617
  declare function sendDashCompRequest(client: SuperatomClient, options: DashCompRequestOptions): Promise<DashCompResponse>;
2267
2618
 
2619
+ /**
2620
+ * Menus Service
2621
+ * Handles MENUS message for menu CRUD operations
2622
+ */
2623
+
2624
+ /**
2625
+ * Menu interface for response data
2626
+ */
2627
+ interface Menu {
2628
+ id: number;
2629
+ name: string;
2630
+ componentName: string;
2631
+ icon?: string | null;
2632
+ userMessage?: string | null;
2633
+ parentId?: number | null;
2634
+ sortOrder?: number;
2635
+ props?: Record<string, unknown> | null;
2636
+ isActive?: boolean;
2637
+ createdAt?: string;
2638
+ updatedAt?: string;
2639
+ children?: Menu[];
2640
+ }
2641
+ /**
2642
+ * Create menu options
2643
+ */
2644
+ interface CreateMenuOptions {
2645
+ name: string;
2646
+ componentName: string;
2647
+ icon?: string;
2648
+ userMessage?: string;
2649
+ parentId?: number;
2650
+ sortOrder?: number;
2651
+ props?: Record<string, unknown>;
2652
+ isActive?: boolean;
2653
+ }
2654
+ /**
2655
+ * Update menu options
2656
+ */
2657
+ interface UpdateMenuOptions {
2658
+ id: number;
2659
+ name?: string;
2660
+ componentName?: string;
2661
+ icon?: string;
2662
+ userMessage?: string;
2663
+ parentId?: number | null;
2664
+ sortOrder?: number;
2665
+ props?: Record<string, unknown>;
2666
+ isActive?: boolean;
2667
+ }
2668
+ /**
2669
+ * Query menus options
2670
+ */
2671
+ interface QueryMenusOptions {
2672
+ filters?: MenuQueryFilters;
2673
+ limit?: number;
2674
+ sort?: 'ASC' | 'DESC';
2675
+ }
2676
+ /**
2677
+ * Reorder menu item
2678
+ */
2679
+ interface ReorderMenuItem {
2680
+ id: number;
2681
+ sortOrder: number;
2682
+ }
2683
+ /**
2684
+ * Create a new menu
2685
+ * @param client - SuperatomClient instance
2686
+ * @param options - Menu creation options
2687
+ * @param timeout - Request timeout in milliseconds
2688
+ * @returns Server response with success status
2689
+ */
2690
+ declare function createMenu(client: SuperatomClient, options: CreateMenuOptions, timeout?: number): Promise<{
2691
+ success: boolean;
2692
+ error?: string;
2693
+ message?: string;
2694
+ data?: Menu;
2695
+ }>;
2696
+ /**
2697
+ * Update an existing menu
2698
+ * @param client - SuperatomClient instance
2699
+ * @param options - Menu update options
2700
+ * @param timeout - Request timeout in milliseconds
2701
+ * @returns Server response with success status
2702
+ */
2703
+ declare function updateMenu(client: SuperatomClient, options: UpdateMenuOptions, timeout?: number): Promise<{
2704
+ success: boolean;
2705
+ error?: string;
2706
+ message?: string;
2707
+ data?: Menu;
2708
+ }>;
2709
+ /**
2710
+ * Delete a menu
2711
+ * @param client - SuperatomClient instance
2712
+ * @param id - Menu ID to delete
2713
+ * @param timeout - Request timeout in milliseconds
2714
+ * @returns Server response with success status
2715
+ */
2716
+ declare function deleteMenu(client: SuperatomClient, id: number, timeout?: number): Promise<{
2717
+ success: boolean;
2718
+ error?: string;
2719
+ message?: string;
2720
+ data?: Menu;
2721
+ }>;
2722
+ /**
2723
+ * Get all menus
2724
+ * @param client - SuperatomClient instance
2725
+ * @param timeout - Request timeout in milliseconds
2726
+ * @returns Server response with list of menus
2727
+ */
2728
+ declare function getAllMenus(client: SuperatomClient, timeout?: number): Promise<{
2729
+ success: boolean;
2730
+ error?: string;
2731
+ menus?: Menu[];
2732
+ count?: number;
2733
+ message?: string;
2734
+ }>;
2735
+ /**
2736
+ * Get a specific menu by ID
2737
+ * @param client - SuperatomClient instance
2738
+ * @param id - Menu ID to retrieve
2739
+ * @param timeout - Request timeout in milliseconds
2740
+ * @returns Server response with menu data
2741
+ */
2742
+ declare function getMenu(client: SuperatomClient, id: number, timeout?: number): Promise<{
2743
+ success: boolean;
2744
+ error?: string;
2745
+ menu?: Menu;
2746
+ message?: string;
2747
+ }>;
2748
+ /**
2749
+ * Get root menus (top-level sidebar items)
2750
+ * @param client - SuperatomClient instance
2751
+ * @param timeout - Request timeout in milliseconds
2752
+ * @returns Server response with list of root menus
2753
+ */
2754
+ declare function getRootMenus(client: SuperatomClient, timeout?: number): Promise<{
2755
+ success: boolean;
2756
+ error?: string;
2757
+ menus?: Menu[];
2758
+ count?: number;
2759
+ message?: string;
2760
+ }>;
2761
+ /**
2762
+ * Get child menus by parent ID
2763
+ * @param client - SuperatomClient instance
2764
+ * @param parentId - Parent menu ID
2765
+ * @param timeout - Request timeout in milliseconds
2766
+ * @returns Server response with list of child menus
2767
+ */
2768
+ declare function getChildMenus(client: SuperatomClient, parentId: number, timeout?: number): Promise<{
2769
+ success: boolean;
2770
+ error?: string;
2771
+ menus?: Menu[];
2772
+ count?: number;
2773
+ message?: string;
2774
+ }>;
2775
+ /**
2776
+ * Get menus with hierarchy (nested structure)
2777
+ * @param client - SuperatomClient instance
2778
+ * @param timeout - Request timeout in milliseconds
2779
+ * @returns Server response with hierarchical menus
2780
+ */
2781
+ declare function getMenusHierarchy(client: SuperatomClient, timeout?: number): Promise<{
2782
+ success: boolean;
2783
+ error?: string;
2784
+ menus?: Menu[];
2785
+ count?: number;
2786
+ message?: string;
2787
+ }>;
2788
+ /**
2789
+ * Query menus with filters, limit, and sort
2790
+ * @param client - SuperatomClient instance
2791
+ * @param options - Query options with filters, limit, and sort
2792
+ * @param timeout - Request timeout in milliseconds
2793
+ * @returns Server response with list of menus
2794
+ */
2795
+ declare function queryMenus(client: SuperatomClient, options?: QueryMenusOptions, timeout?: number): Promise<{
2796
+ success: boolean;
2797
+ error?: string;
2798
+ menus?: Menu[];
2799
+ count?: number;
2800
+ message?: string;
2801
+ }>;
2802
+ /**
2803
+ * Reorder menus
2804
+ * @param client - SuperatomClient instance
2805
+ * @param items - Array of menu IDs and their new sort orders
2806
+ * @param timeout - Request timeout in milliseconds
2807
+ * @returns Server response with success status
2808
+ */
2809
+ declare function reorderMenus(client: SuperatomClient, items: ReorderMenuItem[], timeout?: number): Promise<{
2810
+ success: boolean;
2811
+ error?: string;
2812
+ message?: string;
2813
+ data?: Menu[];
2814
+ }>;
2815
+
2268
2816
  /**
2269
2817
  * Services Index
2270
2818
  * Re-exports all service functions for easy importing
2271
2819
  */
2272
2820
 
2821
+ type index_Artifact = Artifact;
2273
2822
  type index_Binding = Binding;
2274
2823
  declare const index_BindingSchema: typeof BindingSchema;
2275
2824
  type index_Bookmark = Bookmark;
2825
+ type index_CreateArtifactOptions = CreateArtifactOptions;
2276
2826
  type index_CreateBookmarkOptions = CreateBookmarkOptions;
2277
2827
  type index_CreateDashboardOptions = CreateDashboardOptions;
2828
+ type index_CreateMenuOptions = CreateMenuOptions;
2278
2829
  type index_CreateReportOptions = CreateReportOptions;
2279
2830
  type index_CreateUIOptions = CreateUIOptions;
2280
2831
  type index_DashCompReqType = DashCompReqType;
@@ -2286,15 +2837,19 @@ declare const index_ExpressionSchema: typeof ExpressionSchema;
2286
2837
  type index_ForDirective = ForDirective;
2287
2838
  declare const index_ForDirectiveSchema: typeof ForDirectiveSchema;
2288
2839
  type index_KbNode = KbNode;
2840
+ type index_KbNodeType = KbNodeType;
2841
+ type index_Menu = Menu;
2289
2842
  type index_Page = Page;
2290
2843
  declare const index_PageSchema: typeof PageSchema;
2291
2844
  type index_QueryBookmarksOptions = QueryBookmarksOptions;
2292
2845
  type index_QueryDashboardsOptions = QueryDashboardsOptions;
2846
+ type index_QueryMenusOptions = QueryMenusOptions;
2293
2847
  type index_QueryReportsOptions = QueryReportsOptions;
2294
2848
  type index_QuerySpec = QuerySpec;
2295
2849
  declare const index_QuerySpecSchema: typeof QuerySpecSchema;
2296
2850
  type index_QueryUIsOptions = QueryUIsOptions;
2297
2851
  type index_QueryUsersOptions = QueryUsersOptions;
2852
+ type index_ReorderMenuItem = ReorderMenuItem;
2298
2853
  type index_Report = Report;
2299
2854
  type index_SearchKbNodesOptions = SearchKbNodesOptions;
2300
2855
  type index_UI = UI;
@@ -2302,31 +2857,41 @@ type index_UIComponent = UIComponent;
2302
2857
  declare const index_UIComponentSchema: typeof UIComponentSchema;
2303
2858
  type index_UIElement = UIElement;
2304
2859
  declare const index_UIElementSchema: typeof UIElementSchema;
2860
+ type index_UpdateArtifactOptions = UpdateArtifactOptions;
2305
2861
  type index_UpdateBookmarkOptions = UpdateBookmarkOptions;
2306
2862
  type index_UpdateDashboardOptions = UpdateDashboardOptions;
2863
+ type index_UpdateMenuOptions = UpdateMenuOptions;
2307
2864
  type index_UpdateReportOptions = UpdateReportOptions;
2308
2865
  type index_UpdateUIOptions = UpdateUIOptions;
2309
2866
  type index_User = User;
2867
+ declare const index_createArtifact: typeof createArtifact;
2310
2868
  declare const index_createBookmark: typeof createBookmark;
2311
2869
  declare const index_createDashboard: typeof createDashboard;
2312
2870
  declare const index_createKbNode: typeof createKbNode;
2871
+ declare const index_createMenu: typeof createMenu;
2313
2872
  declare const index_createReport: typeof createReport;
2314
2873
  declare const index_createUI: typeof createUI;
2315
2874
  declare const index_createUser: typeof createUser;
2875
+ declare const index_deleteArtifact: typeof deleteArtifact;
2316
2876
  declare const index_deleteBookmark: typeof deleteBookmark;
2317
2877
  declare const index_deleteDashboard: typeof deleteDashboard;
2318
2878
  declare const index_deleteKbNode: typeof deleteKbNode;
2879
+ declare const index_deleteMenu: typeof deleteMenu;
2319
2880
  declare const index_deleteReport: typeof deleteReport;
2320
2881
  declare const index_deleteUI: typeof deleteUI;
2321
2882
  declare const index_deleteUser: typeof deleteUser;
2322
2883
  declare const index_getActions: typeof getActions;
2884
+ declare const index_getAllArtifacts: typeof getAllArtifacts;
2323
2885
  declare const index_getAllBookmarks: typeof getAllBookmarks;
2324
2886
  declare const index_getAllDashboards: typeof getAllDashboards;
2325
2887
  declare const index_getAllKbNodes: typeof getAllKbNodes;
2888
+ declare const index_getAllMenus: typeof getAllMenus;
2326
2889
  declare const index_getAllReports: typeof getAllReports;
2327
2890
  declare const index_getAllUIs: typeof getAllUIs;
2328
2891
  declare const index_getAllUsers: typeof getAllUsers;
2892
+ declare const index_getArtifact: typeof getArtifact;
2329
2893
  declare const index_getBookmark: typeof getBookmark;
2894
+ declare const index_getChildMenus: typeof getChildMenus;
2330
2895
  declare const index_getComponentSuggestions: typeof getComponentSuggestions;
2331
2896
  declare const index_getDashboard: typeof getDashboard;
2332
2897
  declare const index_getKbNode: typeof getKbNode;
@@ -2334,14 +2899,19 @@ declare const index_getKbNodeCategories: typeof getKbNodeCategories;
2334
2899
  declare const index_getKbNodeTags: typeof getKbNodeTags;
2335
2900
  declare const index_getKbNodesByCategory: typeof getKbNodesByCategory;
2336
2901
  declare const index_getKbNodesByUser: typeof getKbNodesByUser;
2902
+ declare const index_getMenu: typeof getMenu;
2903
+ declare const index_getMenusHierarchy: typeof getMenusHierarchy;
2337
2904
  declare const index_getReport: typeof getReport;
2905
+ declare const index_getRootMenus: typeof getRootMenus;
2338
2906
  declare const index_getUI: typeof getUI;
2339
2907
  declare const index_getUser: typeof getUser;
2340
2908
  declare const index_queryBookmarks: typeof queryBookmarks;
2341
2909
  declare const index_queryDashboards: typeof queryDashboards;
2910
+ declare const index_queryMenus: typeof queryMenus;
2342
2911
  declare const index_queryReports: typeof queryReports;
2343
2912
  declare const index_queryUIs: typeof queryUIs;
2344
2913
  declare const index_queryUsers: typeof queryUsers;
2914
+ declare const index_reorderMenus: typeof reorderMenus;
2345
2915
  declare const index_requestBundle: typeof requestBundle;
2346
2916
  declare const index_requestData: typeof requestData;
2347
2917
  declare const index_searchKbNodes: typeof searchKbNodes;
@@ -2351,14 +2921,16 @@ declare const index_sendComponents: typeof sendComponents;
2351
2921
  declare const index_sendDashCompRequest: typeof sendDashCompRequest;
2352
2922
  declare const index_sendUserPromptRequest: typeof sendUserPromptRequest;
2353
2923
  declare const index_sendUserPromptSuggestionsRequest: typeof sendUserPromptSuggestionsRequest;
2924
+ declare const index_updateArtifact: typeof updateArtifact;
2354
2925
  declare const index_updateBookmark: typeof updateBookmark;
2355
2926
  declare const index_updateDashboard: typeof updateDashboard;
2356
2927
  declare const index_updateKbNode: typeof updateKbNode;
2928
+ declare const index_updateMenu: typeof updateMenu;
2357
2929
  declare const index_updateReport: typeof updateReport;
2358
2930
  declare const index_updateUI: typeof updateUI;
2359
2931
  declare const index_updateUser: typeof updateUser;
2360
2932
  declare namespace index {
2361
- 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_DashCompReqType as DashCompReqType, type index_DashCompRequestOptions as DashCompRequestOptions, type index_DashCompResponse as DashCompResponse, 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_Page as Page, index_PageSchema as PageSchema, 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_sendDashCompRequest as sendDashCompRequest, 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 };
2933
+ export { type index_Artifact as Artifact, type index_Binding as Binding, index_BindingSchema as BindingSchema, type index_Bookmark as Bookmark, type index_CreateArtifactOptions as CreateArtifactOptions, type index_CreateBookmarkOptions as CreateBookmarkOptions, type index_CreateDashboardOptions as CreateDashboardOptions, type index_CreateMenuOptions as CreateMenuOptions, type index_CreateReportOptions as CreateReportOptions, type index_CreateUIOptions as CreateUIOptions, type DSLRendererProps$2 as DSLRendererProps, DSLRendererPropsSchema$2 as DSLRendererPropsSchema, type index_DashCompReqType as DashCompReqType, type index_DashCompRequestOptions as DashCompRequestOptions, type index_DashCompResponse as DashCompResponse, 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_KbNodeType as KbNodeType, type index_Menu as Menu, type index_Page as Page, index_PageSchema as PageSchema, type index_QueryBookmarksOptions as QueryBookmarksOptions, type index_QueryDashboardsOptions as QueryDashboardsOptions, type index_QueryMenusOptions as QueryMenusOptions, 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_ReorderMenuItem as ReorderMenuItem, 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_UpdateArtifactOptions as UpdateArtifactOptions, type index_UpdateBookmarkOptions as UpdateBookmarkOptions, type index_UpdateDashboardOptions as UpdateDashboardOptions, type index_UpdateMenuOptions as UpdateMenuOptions, type index_UpdateReportOptions as UpdateReportOptions, type index_UpdateUIOptions as UpdateUIOptions, type index_User as User, index_createArtifact as createArtifact, index_createBookmark as createBookmark, index_createDashboard as createDashboard, index_createKbNode as createKbNode, index_createMenu as createMenu, index_createReport as createReport, index_createUI as createUI, index_createUser as createUser, index_deleteArtifact as deleteArtifact, index_deleteBookmark as deleteBookmark, index_deleteDashboard as deleteDashboard, index_deleteKbNode as deleteKbNode, index_deleteMenu as deleteMenu, index_deleteReport as deleteReport, index_deleteUI as deleteUI, index_deleteUser as deleteUser, index_getActions as getActions, index_getAllArtifacts as getAllArtifacts, index_getAllBookmarks as getAllBookmarks, index_getAllDashboards as getAllDashboards, index_getAllKbNodes as getAllKbNodes, index_getAllMenus as getAllMenus, index_getAllReports as getAllReports, index_getAllUIs as getAllUIs, index_getAllUsers as getAllUsers, index_getArtifact as getArtifact, index_getBookmark as getBookmark, index_getChildMenus as getChildMenus, 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_getMenu as getMenu, index_getMenusHierarchy as getMenusHierarchy, index_getReport as getReport, index_getRootMenus as getRootMenus, index_getUI as getUI, index_getUser as getUser, index_queryBookmarks as queryBookmarks, index_queryDashboards as queryDashboards, index_queryMenus as queryMenus, index_queryReports as queryReports, index_queryUIs as queryUIs, index_queryUsers as queryUsers, index_reorderMenus as reorderMenus, 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_sendDashCompRequest as sendDashCompRequest, index_sendUserPromptRequest as sendUserPromptRequest, index_sendUserPromptSuggestionsRequest as sendUserPromptSuggestionsRequest, index_updateArtifact as updateArtifact, index_updateBookmark as updateBookmark, index_updateDashboard as updateDashboard, index_updateKbNode as updateKbNode, index_updateMenu as updateMenu, index_updateReport as updateReport, index_updateUI as updateUI, index_updateUser as updateUser };
2362
2934
  }
2363
2935
 
2364
2936
  type MessageHandler = (message: Message) => void;
@@ -2758,6 +3330,57 @@ declare class SuperatomClient {
2758
3330
  count?: number;
2759
3331
  message?: string;
2760
3332
  }>;
3333
+ /**
3334
+ * Create a new artifact
3335
+ * Delegates to artifacts service
3336
+ */
3337
+ createArtifact(options: CreateArtifactOptions, timeout?: number): Promise<{
3338
+ success: boolean;
3339
+ error?: string;
3340
+ message?: string;
3341
+ data?: Artifact;
3342
+ }>;
3343
+ /**
3344
+ * Update an existing artifact
3345
+ * Delegates to artifacts service
3346
+ */
3347
+ updateArtifact(options: UpdateArtifactOptions, timeout?: number): Promise<{
3348
+ success: boolean;
3349
+ error?: string;
3350
+ message?: string;
3351
+ data?: Artifact;
3352
+ }>;
3353
+ /**
3354
+ * Delete an artifact (soft delete)
3355
+ * Delegates to artifacts service
3356
+ */
3357
+ deleteArtifact(id: number, timeout?: number): Promise<{
3358
+ success: boolean;
3359
+ error?: string;
3360
+ message?: string;
3361
+ data?: Artifact;
3362
+ }>;
3363
+ /**
3364
+ * Get all artifacts
3365
+ * Delegates to artifacts service
3366
+ */
3367
+ getAllArtifacts(limit?: number, timeout?: number): Promise<{
3368
+ success: boolean;
3369
+ error?: string;
3370
+ data?: Artifact[];
3371
+ count?: number;
3372
+ message?: string;
3373
+ }>;
3374
+ /**
3375
+ * Get a specific artifact by ID
3376
+ * Delegates to artifacts service
3377
+ */
3378
+ getArtifact(id: number, timeout?: number): Promise<{
3379
+ success: boolean;
3380
+ error?: string;
3381
+ data?: Artifact;
3382
+ message?: string;
3383
+ }>;
2761
3384
  /**
2762
3385
  * Create a new report
2763
3386
  * Delegates to reports service
@@ -2897,7 +3520,7 @@ declare class SuperatomClient {
2897
3520
  * Create a new knowledge base node
2898
3521
  * Delegates to kb-nodes service
2899
3522
  */
2900
- createKbNode(title: string, content: string, createdBy: number, category?: string, tags?: string[], timeout?: number): Promise<{
3523
+ createKbNode(title: string, content: string, createdBy: number, category?: string, tags?: string[], type?: KbNodeType, timeout?: number): Promise<{
2901
3524
  success: boolean;
2902
3525
  error?: string;
2903
3526
  message?: string;
@@ -2912,6 +3535,7 @@ declare class SuperatomClient {
2912
3535
  content?: string;
2913
3536
  category?: string;
2914
3537
  tags?: string[];
3538
+ type?: KbNodeType;
2915
3539
  }, timeout?: number): Promise<{
2916
3540
  success: boolean;
2917
3541
  error?: string;
@@ -3026,6 +3650,111 @@ declare class SuperatomClient {
3026
3650
  * ```
3027
3651
  */
3028
3652
  sendDashCompRequest(options: DashCompRequestOptions): Promise<DashCompResponse>;
3653
+ /**
3654
+ * Create a new menu
3655
+ * Delegates to menus service
3656
+ */
3657
+ createMenu(options: CreateMenuOptions, timeout?: number): Promise<{
3658
+ success: boolean;
3659
+ error?: string;
3660
+ message?: string;
3661
+ data?: Menu;
3662
+ }>;
3663
+ /**
3664
+ * Update an existing menu
3665
+ * Delegates to menus service
3666
+ */
3667
+ updateMenu(options: UpdateMenuOptions, timeout?: number): Promise<{
3668
+ success: boolean;
3669
+ error?: string;
3670
+ message?: string;
3671
+ data?: Menu;
3672
+ }>;
3673
+ /**
3674
+ * Delete a menu
3675
+ * Delegates to menus service
3676
+ */
3677
+ deleteMenu(id: number, timeout?: number): Promise<{
3678
+ success: boolean;
3679
+ error?: string;
3680
+ message?: string;
3681
+ data?: Menu;
3682
+ }>;
3683
+ /**
3684
+ * Get all menus
3685
+ * Delegates to menus service
3686
+ */
3687
+ getAllMenus(timeout?: number): Promise<{
3688
+ success: boolean;
3689
+ error?: string;
3690
+ menus?: Menu[];
3691
+ count?: number;
3692
+ message?: string;
3693
+ }>;
3694
+ /**
3695
+ * Get a specific menu by ID
3696
+ * Delegates to menus service
3697
+ */
3698
+ getMenu(id: number, timeout?: number): Promise<{
3699
+ success: boolean;
3700
+ error?: string;
3701
+ menu?: Menu;
3702
+ message?: string;
3703
+ }>;
3704
+ /**
3705
+ * Get root menus (top-level sidebar items)
3706
+ * Delegates to menus service
3707
+ */
3708
+ getRootMenus(timeout?: number): Promise<{
3709
+ success: boolean;
3710
+ error?: string;
3711
+ menus?: Menu[];
3712
+ count?: number;
3713
+ message?: string;
3714
+ }>;
3715
+ /**
3716
+ * Get child menus by parent ID
3717
+ * Delegates to menus service
3718
+ */
3719
+ getChildMenus(parentId: number, timeout?: number): Promise<{
3720
+ success: boolean;
3721
+ error?: string;
3722
+ menus?: Menu[];
3723
+ count?: number;
3724
+ message?: string;
3725
+ }>;
3726
+ /**
3727
+ * Get menus with hierarchy (nested structure)
3728
+ * Delegates to menus service
3729
+ */
3730
+ getMenusHierarchy(timeout?: number): Promise<{
3731
+ success: boolean;
3732
+ error?: string;
3733
+ menus?: Menu[];
3734
+ count?: number;
3735
+ message?: string;
3736
+ }>;
3737
+ /**
3738
+ * Query menus with filters
3739
+ * Delegates to menus service
3740
+ */
3741
+ queryMenus(options?: QueryMenusOptions, timeout?: number): Promise<{
3742
+ success: boolean;
3743
+ error?: string;
3744
+ menus?: Menu[];
3745
+ count?: number;
3746
+ message?: string;
3747
+ }>;
3748
+ /**
3749
+ * Reorder menus
3750
+ * Delegates to menus service
3751
+ */
3752
+ reorderMenus(items: ReorderMenuItem[], timeout?: number): Promise<{
3753
+ success: boolean;
3754
+ error?: string;
3755
+ message?: string;
3756
+ data?: Menu[];
3757
+ }>;
3029
3758
  /**
3030
3759
  * Internal logging
3031
3760
  */
@@ -3085,4 +3814,4 @@ declare function hasComponents(): boolean;
3085
3814
  */
3086
3815
  declare const SDK_VERSION = "0.1.0";
3087
3816
 
3088
- 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 };
3817
+ 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 MenuData, MenuDataSchema, type MenuQueryFilters, MenuQueryFiltersSchema, type MenusRequestMessage, MenusRequestMessageSchema, type MenusRequestPayload, MenusRequestPayloadSchema, type MenusResponseMessage, MenusResponseMessageSchema, type MenusResponsePayload, MenusResponsePayloadSchema, 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 };