@superatomai/sdk-web 0.0.21 → 0.0.23

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
@@ -370,7 +370,7 @@ declare const ComponentSchema: z.ZodObject<{
370
370
  type: z.ZodString;
371
371
  description: z.ZodString;
372
372
  props: z.ZodObject<{
373
- query: z.ZodOptional<z.ZodString>;
373
+ query: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
374
374
  title: z.ZodOptional<z.ZodString>;
375
375
  description: z.ZodOptional<z.ZodString>;
376
376
  config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -393,7 +393,7 @@ declare const UserPromptResponsePayloadSchema: z.ZodObject<{
393
393
  type: z.ZodString;
394
394
  description: z.ZodString;
395
395
  props: z.ZodObject<{
396
- query: z.ZodOptional<z.ZodString>;
396
+ query: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
397
397
  title: z.ZodOptional<z.ZodString>;
398
398
  description: z.ZodOptional<z.ZodString>;
399
399
  config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -430,7 +430,7 @@ declare const UserPromptResponseMessageSchema: z.ZodObject<{
430
430
  type: z.ZodString;
431
431
  description: z.ZodString;
432
432
  props: z.ZodObject<{
433
- query: z.ZodOptional<z.ZodString>;
433
+ query: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
434
434
  title: z.ZodOptional<z.ZodString>;
435
435
  description: z.ZodOptional<z.ZodString>;
436
436
  config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -491,7 +491,7 @@ declare const UserPromptSuggestionsResponsePayloadSchema: z.ZodObject<{
491
491
  type: z.ZodString;
492
492
  description: z.ZodString;
493
493
  props: z.ZodObject<{
494
- query: z.ZodOptional<z.ZodString>;
494
+ query: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
495
495
  title: z.ZodOptional<z.ZodString>;
496
496
  description: z.ZodOptional<z.ZodString>;
497
497
  config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -529,7 +529,7 @@ declare const UserPromptSuggestionsResponseMessageSchema: z.ZodObject<{
529
529
  type: z.ZodString;
530
530
  description: z.ZodString;
531
531
  props: z.ZodObject<{
532
- query: z.ZodOptional<z.ZodString>;
532
+ query: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
533
533
  title: z.ZodOptional<z.ZodString>;
534
534
  description: z.ZodOptional<z.ZodString>;
535
535
  config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -1163,6 +1163,170 @@ declare const KbNodesResponseMessageSchema: z.ZodObject<{
1163
1163
  }, z.core.$strip>;
1164
1164
  }, z.core.$strip>;
1165
1165
  type KbNodesResponseMessage = z.infer<typeof KbNodesResponseMessageSchema>;
1166
+ /**
1167
+ * Menu data interface (defined separately for self-referencing schema)
1168
+ */
1169
+ interface MenuData {
1170
+ id?: number;
1171
+ name: string;
1172
+ componentName: string;
1173
+ icon?: string | null;
1174
+ userMessage?: string | null;
1175
+ parentId?: number | null;
1176
+ sortOrder?: number;
1177
+ props?: Record<string, unknown> | null;
1178
+ isActive?: boolean;
1179
+ createdAt?: string;
1180
+ updatedAt?: string;
1181
+ children?: MenuData[];
1182
+ }
1183
+ /**
1184
+ * Menu data schema
1185
+ * Synced with sdk-nodejs: MenuDataSchema
1186
+ */
1187
+ declare const MenuDataSchema: z.ZodType<MenuData>;
1188
+ /**
1189
+ * Menu query filters schema
1190
+ * Synced with sdk-nodejs: MenuQueryFiltersSchema
1191
+ */
1192
+ declare const MenuQueryFiltersSchema: z.ZodObject<{
1193
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1194
+ isActive: z.ZodOptional<z.ZodBoolean>;
1195
+ }, z.core.$strip>;
1196
+ type MenuQueryFilters = z.infer<typeof MenuQueryFiltersSchema>;
1197
+ /**
1198
+ * Menus request payload schema
1199
+ * Synced with sdk-nodejs: MenusRequestPayloadSchema
1200
+ */
1201
+ declare const MenusRequestPayloadSchema: z.ZodObject<{
1202
+ operation: z.ZodEnum<{
1203
+ query: "query";
1204
+ create: "create";
1205
+ update: "update";
1206
+ delete: "delete";
1207
+ getAll: "getAll";
1208
+ getOne: "getOne";
1209
+ getRootMenus: "getRootMenus";
1210
+ getChildMenus: "getChildMenus";
1211
+ getHierarchy: "getHierarchy";
1212
+ reorder: "reorder";
1213
+ }>;
1214
+ data: z.ZodOptional<z.ZodObject<{
1215
+ id: z.ZodOptional<z.ZodNumber>;
1216
+ name: z.ZodOptional<z.ZodString>;
1217
+ componentName: z.ZodOptional<z.ZodString>;
1218
+ icon: z.ZodOptional<z.ZodString>;
1219
+ userMessage: z.ZodOptional<z.ZodString>;
1220
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1221
+ sortOrder: z.ZodOptional<z.ZodNumber>;
1222
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1223
+ isActive: z.ZodOptional<z.ZodBoolean>;
1224
+ filters: z.ZodOptional<z.ZodObject<{
1225
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1226
+ isActive: z.ZodOptional<z.ZodBoolean>;
1227
+ }, z.core.$strip>>;
1228
+ limit: z.ZodOptional<z.ZodNumber>;
1229
+ sort: z.ZodOptional<z.ZodEnum<{
1230
+ ASC: "ASC";
1231
+ DESC: "DESC";
1232
+ }>>;
1233
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
1234
+ id: z.ZodNumber;
1235
+ sortOrder: z.ZodNumber;
1236
+ }, z.core.$strip>>>;
1237
+ }, z.core.$strip>>;
1238
+ }, z.core.$strip>;
1239
+ type MenusRequestPayload = z.infer<typeof MenusRequestPayloadSchema>;
1240
+ /**
1241
+ * Menus request message schema
1242
+ * Synced with sdk-nodejs: MenusRequestMessageSchema
1243
+ */
1244
+ declare const MenusRequestMessageSchema: z.ZodObject<{
1245
+ id: z.ZodString;
1246
+ type: z.ZodLiteral<"MENUS">;
1247
+ from: z.ZodObject<{
1248
+ id: z.ZodOptional<z.ZodString>;
1249
+ type: z.ZodOptional<z.ZodString>;
1250
+ }, z.core.$strip>;
1251
+ to: z.ZodOptional<z.ZodObject<{
1252
+ id: z.ZodOptional<z.ZodString>;
1253
+ type: z.ZodOptional<z.ZodString>;
1254
+ }, z.core.$strip>>;
1255
+ payload: z.ZodObject<{
1256
+ operation: z.ZodEnum<{
1257
+ query: "query";
1258
+ create: "create";
1259
+ update: "update";
1260
+ delete: "delete";
1261
+ getAll: "getAll";
1262
+ getOne: "getOne";
1263
+ getRootMenus: "getRootMenus";
1264
+ getChildMenus: "getChildMenus";
1265
+ getHierarchy: "getHierarchy";
1266
+ reorder: "reorder";
1267
+ }>;
1268
+ data: z.ZodOptional<z.ZodObject<{
1269
+ id: z.ZodOptional<z.ZodNumber>;
1270
+ name: z.ZodOptional<z.ZodString>;
1271
+ componentName: z.ZodOptional<z.ZodString>;
1272
+ icon: z.ZodOptional<z.ZodString>;
1273
+ userMessage: z.ZodOptional<z.ZodString>;
1274
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1275
+ sortOrder: z.ZodOptional<z.ZodNumber>;
1276
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1277
+ isActive: z.ZodOptional<z.ZodBoolean>;
1278
+ filters: z.ZodOptional<z.ZodObject<{
1279
+ parentId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1280
+ isActive: z.ZodOptional<z.ZodBoolean>;
1281
+ }, z.core.$strip>>;
1282
+ limit: z.ZodOptional<z.ZodNumber>;
1283
+ sort: z.ZodOptional<z.ZodEnum<{
1284
+ ASC: "ASC";
1285
+ DESC: "DESC";
1286
+ }>>;
1287
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
1288
+ id: z.ZodNumber;
1289
+ sortOrder: z.ZodNumber;
1290
+ }, z.core.$strip>>>;
1291
+ }, z.core.$strip>>;
1292
+ }, z.core.$strip>;
1293
+ }, z.core.$strip>;
1294
+ type MenusRequestMessage = z.infer<typeof MenusRequestMessageSchema>;
1295
+ /**
1296
+ * Menus response payload schema
1297
+ * Synced with sdk-nodejs handler: menus.ts
1298
+ */
1299
+ declare const MenusResponsePayloadSchema: z.ZodObject<{
1300
+ success: z.ZodBoolean;
1301
+ error: z.ZodOptional<z.ZodString>;
1302
+ 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>>>]>>;
1303
+ count: z.ZodOptional<z.ZodNumber>;
1304
+ message: z.ZodOptional<z.ZodString>;
1305
+ }, z.core.$strip>;
1306
+ type MenusResponsePayload = z.infer<typeof MenusResponsePayloadSchema>;
1307
+ /**
1308
+ * Menus response message schema
1309
+ */
1310
+ declare const MenusResponseMessageSchema: z.ZodObject<{
1311
+ id: z.ZodString;
1312
+ type: z.ZodLiteral<"MENUS_RES">;
1313
+ from: z.ZodObject<{
1314
+ id: z.ZodOptional<z.ZodString>;
1315
+ type: z.ZodOptional<z.ZodString>;
1316
+ }, z.core.$strip>;
1317
+ to: z.ZodOptional<z.ZodObject<{
1318
+ id: z.ZodOptional<z.ZodString>;
1319
+ type: z.ZodOptional<z.ZodString>;
1320
+ }, z.core.$strip>>;
1321
+ payload: z.ZodObject<{
1322
+ success: z.ZodBoolean;
1323
+ error: z.ZodOptional<z.ZodString>;
1324
+ 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>>>]>>;
1325
+ count: z.ZodOptional<z.ZodNumber>;
1326
+ message: z.ZodOptional<z.ZodString>;
1327
+ }, z.core.$strip>;
1328
+ }, z.core.$strip>;
1329
+ type MenusResponseMessage = z.infer<typeof MenusResponseMessageSchema>;
1166
1330
  /**
1167
1331
  * Client configuration schema
1168
1332
  */
@@ -2265,6 +2429,203 @@ interface DashCompRequestOptions {
2265
2429
  */
2266
2430
  declare function sendDashCompRequest(client: SuperatomClient, options: DashCompRequestOptions): Promise<DashCompResponse>;
2267
2431
 
2432
+ /**
2433
+ * Menus Service
2434
+ * Handles MENUS message for menu CRUD operations
2435
+ */
2436
+
2437
+ /**
2438
+ * Menu interface for response data
2439
+ */
2440
+ interface Menu {
2441
+ id: number;
2442
+ name: string;
2443
+ componentName: string;
2444
+ icon?: string | null;
2445
+ userMessage?: string | null;
2446
+ parentId?: number | null;
2447
+ sortOrder?: number;
2448
+ props?: Record<string, unknown> | null;
2449
+ isActive?: boolean;
2450
+ createdAt?: string;
2451
+ updatedAt?: string;
2452
+ children?: Menu[];
2453
+ }
2454
+ /**
2455
+ * Create menu options
2456
+ */
2457
+ interface CreateMenuOptions {
2458
+ name: string;
2459
+ componentName: string;
2460
+ icon?: string;
2461
+ userMessage?: string;
2462
+ parentId?: number;
2463
+ sortOrder?: number;
2464
+ props?: Record<string, unknown>;
2465
+ isActive?: boolean;
2466
+ }
2467
+ /**
2468
+ * Update menu options
2469
+ */
2470
+ interface UpdateMenuOptions {
2471
+ id: number;
2472
+ name?: string;
2473
+ componentName?: string;
2474
+ icon?: string;
2475
+ userMessage?: string;
2476
+ parentId?: number | null;
2477
+ sortOrder?: number;
2478
+ props?: Record<string, unknown>;
2479
+ isActive?: boolean;
2480
+ }
2481
+ /**
2482
+ * Query menus options
2483
+ */
2484
+ interface QueryMenusOptions {
2485
+ filters?: MenuQueryFilters;
2486
+ limit?: number;
2487
+ sort?: 'ASC' | 'DESC';
2488
+ }
2489
+ /**
2490
+ * Reorder menu item
2491
+ */
2492
+ interface ReorderMenuItem {
2493
+ id: number;
2494
+ sortOrder: number;
2495
+ }
2496
+ /**
2497
+ * Create a new menu
2498
+ * @param client - SuperatomClient instance
2499
+ * @param options - Menu creation options
2500
+ * @param timeout - Request timeout in milliseconds
2501
+ * @returns Server response with success status
2502
+ */
2503
+ declare function createMenu(client: SuperatomClient, options: CreateMenuOptions, timeout?: number): Promise<{
2504
+ success: boolean;
2505
+ error?: string;
2506
+ message?: string;
2507
+ data?: Menu;
2508
+ }>;
2509
+ /**
2510
+ * Update an existing menu
2511
+ * @param client - SuperatomClient instance
2512
+ * @param options - Menu update options
2513
+ * @param timeout - Request timeout in milliseconds
2514
+ * @returns Server response with success status
2515
+ */
2516
+ declare function updateMenu(client: SuperatomClient, options: UpdateMenuOptions, timeout?: number): Promise<{
2517
+ success: boolean;
2518
+ error?: string;
2519
+ message?: string;
2520
+ data?: Menu;
2521
+ }>;
2522
+ /**
2523
+ * Delete a menu
2524
+ * @param client - SuperatomClient instance
2525
+ * @param id - Menu ID to delete
2526
+ * @param timeout - Request timeout in milliseconds
2527
+ * @returns Server response with success status
2528
+ */
2529
+ declare function deleteMenu(client: SuperatomClient, id: number, timeout?: number): Promise<{
2530
+ success: boolean;
2531
+ error?: string;
2532
+ message?: string;
2533
+ data?: Menu;
2534
+ }>;
2535
+ /**
2536
+ * Get all menus
2537
+ * @param client - SuperatomClient instance
2538
+ * @param timeout - Request timeout in milliseconds
2539
+ * @returns Server response with list of menus
2540
+ */
2541
+ declare function getAllMenus(client: SuperatomClient, timeout?: number): Promise<{
2542
+ success: boolean;
2543
+ error?: string;
2544
+ menus?: Menu[];
2545
+ count?: number;
2546
+ message?: string;
2547
+ }>;
2548
+ /**
2549
+ * Get a specific menu by ID
2550
+ * @param client - SuperatomClient instance
2551
+ * @param id - Menu ID to retrieve
2552
+ * @param timeout - Request timeout in milliseconds
2553
+ * @returns Server response with menu data
2554
+ */
2555
+ declare function getMenu(client: SuperatomClient, id: number, timeout?: number): Promise<{
2556
+ success: boolean;
2557
+ error?: string;
2558
+ menu?: Menu;
2559
+ message?: string;
2560
+ }>;
2561
+ /**
2562
+ * Get root menus (top-level sidebar items)
2563
+ * @param client - SuperatomClient instance
2564
+ * @param timeout - Request timeout in milliseconds
2565
+ * @returns Server response with list of root menus
2566
+ */
2567
+ declare function getRootMenus(client: SuperatomClient, timeout?: number): Promise<{
2568
+ success: boolean;
2569
+ error?: string;
2570
+ menus?: Menu[];
2571
+ count?: number;
2572
+ message?: string;
2573
+ }>;
2574
+ /**
2575
+ * Get child menus by parent ID
2576
+ * @param client - SuperatomClient instance
2577
+ * @param parentId - Parent menu ID
2578
+ * @param timeout - Request timeout in milliseconds
2579
+ * @returns Server response with list of child menus
2580
+ */
2581
+ declare function getChildMenus(client: SuperatomClient, parentId: number, timeout?: number): Promise<{
2582
+ success: boolean;
2583
+ error?: string;
2584
+ menus?: Menu[];
2585
+ count?: number;
2586
+ message?: string;
2587
+ }>;
2588
+ /**
2589
+ * Get menus with hierarchy (nested structure)
2590
+ * @param client - SuperatomClient instance
2591
+ * @param timeout - Request timeout in milliseconds
2592
+ * @returns Server response with hierarchical menus
2593
+ */
2594
+ declare function getMenusHierarchy(client: SuperatomClient, timeout?: number): Promise<{
2595
+ success: boolean;
2596
+ error?: string;
2597
+ menus?: Menu[];
2598
+ count?: number;
2599
+ message?: string;
2600
+ }>;
2601
+ /**
2602
+ * Query menus with filters, limit, and sort
2603
+ * @param client - SuperatomClient instance
2604
+ * @param options - Query options with filters, limit, and sort
2605
+ * @param timeout - Request timeout in milliseconds
2606
+ * @returns Server response with list of menus
2607
+ */
2608
+ declare function queryMenus(client: SuperatomClient, options?: QueryMenusOptions, timeout?: number): Promise<{
2609
+ success: boolean;
2610
+ error?: string;
2611
+ menus?: Menu[];
2612
+ count?: number;
2613
+ message?: string;
2614
+ }>;
2615
+ /**
2616
+ * Reorder menus
2617
+ * @param client - SuperatomClient instance
2618
+ * @param items - Array of menu IDs and their new sort orders
2619
+ * @param timeout - Request timeout in milliseconds
2620
+ * @returns Server response with success status
2621
+ */
2622
+ declare function reorderMenus(client: SuperatomClient, items: ReorderMenuItem[], timeout?: number): Promise<{
2623
+ success: boolean;
2624
+ error?: string;
2625
+ message?: string;
2626
+ data?: Menu[];
2627
+ }>;
2628
+
2268
2629
  /**
2269
2630
  * Services Index
2270
2631
  * Re-exports all service functions for easy importing
@@ -2275,6 +2636,7 @@ declare const index_BindingSchema: typeof BindingSchema;
2275
2636
  type index_Bookmark = Bookmark;
2276
2637
  type index_CreateBookmarkOptions = CreateBookmarkOptions;
2277
2638
  type index_CreateDashboardOptions = CreateDashboardOptions;
2639
+ type index_CreateMenuOptions = CreateMenuOptions;
2278
2640
  type index_CreateReportOptions = CreateReportOptions;
2279
2641
  type index_CreateUIOptions = CreateUIOptions;
2280
2642
  type index_DashCompReqType = DashCompReqType;
@@ -2286,15 +2648,18 @@ declare const index_ExpressionSchema: typeof ExpressionSchema;
2286
2648
  type index_ForDirective = ForDirective;
2287
2649
  declare const index_ForDirectiveSchema: typeof ForDirectiveSchema;
2288
2650
  type index_KbNode = KbNode;
2651
+ type index_Menu = Menu;
2289
2652
  type index_Page = Page;
2290
2653
  declare const index_PageSchema: typeof PageSchema;
2291
2654
  type index_QueryBookmarksOptions = QueryBookmarksOptions;
2292
2655
  type index_QueryDashboardsOptions = QueryDashboardsOptions;
2656
+ type index_QueryMenusOptions = QueryMenusOptions;
2293
2657
  type index_QueryReportsOptions = QueryReportsOptions;
2294
2658
  type index_QuerySpec = QuerySpec;
2295
2659
  declare const index_QuerySpecSchema: typeof QuerySpecSchema;
2296
2660
  type index_QueryUIsOptions = QueryUIsOptions;
2297
2661
  type index_QueryUsersOptions = QueryUsersOptions;
2662
+ type index_ReorderMenuItem = ReorderMenuItem;
2298
2663
  type index_Report = Report;
2299
2664
  type index_SearchKbNodesOptions = SearchKbNodesOptions;
2300
2665
  type index_UI = UI;
@@ -2304,18 +2669,21 @@ type index_UIElement = UIElement;
2304
2669
  declare const index_UIElementSchema: typeof UIElementSchema;
2305
2670
  type index_UpdateBookmarkOptions = UpdateBookmarkOptions;
2306
2671
  type index_UpdateDashboardOptions = UpdateDashboardOptions;
2672
+ type index_UpdateMenuOptions = UpdateMenuOptions;
2307
2673
  type index_UpdateReportOptions = UpdateReportOptions;
2308
2674
  type index_UpdateUIOptions = UpdateUIOptions;
2309
2675
  type index_User = User;
2310
2676
  declare const index_createBookmark: typeof createBookmark;
2311
2677
  declare const index_createDashboard: typeof createDashboard;
2312
2678
  declare const index_createKbNode: typeof createKbNode;
2679
+ declare const index_createMenu: typeof createMenu;
2313
2680
  declare const index_createReport: typeof createReport;
2314
2681
  declare const index_createUI: typeof createUI;
2315
2682
  declare const index_createUser: typeof createUser;
2316
2683
  declare const index_deleteBookmark: typeof deleteBookmark;
2317
2684
  declare const index_deleteDashboard: typeof deleteDashboard;
2318
2685
  declare const index_deleteKbNode: typeof deleteKbNode;
2686
+ declare const index_deleteMenu: typeof deleteMenu;
2319
2687
  declare const index_deleteReport: typeof deleteReport;
2320
2688
  declare const index_deleteUI: typeof deleteUI;
2321
2689
  declare const index_deleteUser: typeof deleteUser;
@@ -2323,10 +2691,12 @@ declare const index_getActions: typeof getActions;
2323
2691
  declare const index_getAllBookmarks: typeof getAllBookmarks;
2324
2692
  declare const index_getAllDashboards: typeof getAllDashboards;
2325
2693
  declare const index_getAllKbNodes: typeof getAllKbNodes;
2694
+ declare const index_getAllMenus: typeof getAllMenus;
2326
2695
  declare const index_getAllReports: typeof getAllReports;
2327
2696
  declare const index_getAllUIs: typeof getAllUIs;
2328
2697
  declare const index_getAllUsers: typeof getAllUsers;
2329
2698
  declare const index_getBookmark: typeof getBookmark;
2699
+ declare const index_getChildMenus: typeof getChildMenus;
2330
2700
  declare const index_getComponentSuggestions: typeof getComponentSuggestions;
2331
2701
  declare const index_getDashboard: typeof getDashboard;
2332
2702
  declare const index_getKbNode: typeof getKbNode;
@@ -2334,14 +2704,19 @@ declare const index_getKbNodeCategories: typeof getKbNodeCategories;
2334
2704
  declare const index_getKbNodeTags: typeof getKbNodeTags;
2335
2705
  declare const index_getKbNodesByCategory: typeof getKbNodesByCategory;
2336
2706
  declare const index_getKbNodesByUser: typeof getKbNodesByUser;
2707
+ declare const index_getMenu: typeof getMenu;
2708
+ declare const index_getMenusHierarchy: typeof getMenusHierarchy;
2337
2709
  declare const index_getReport: typeof getReport;
2710
+ declare const index_getRootMenus: typeof getRootMenus;
2338
2711
  declare const index_getUI: typeof getUI;
2339
2712
  declare const index_getUser: typeof getUser;
2340
2713
  declare const index_queryBookmarks: typeof queryBookmarks;
2341
2714
  declare const index_queryDashboards: typeof queryDashboards;
2715
+ declare const index_queryMenus: typeof queryMenus;
2342
2716
  declare const index_queryReports: typeof queryReports;
2343
2717
  declare const index_queryUIs: typeof queryUIs;
2344
2718
  declare const index_queryUsers: typeof queryUsers;
2719
+ declare const index_reorderMenus: typeof reorderMenus;
2345
2720
  declare const index_requestBundle: typeof requestBundle;
2346
2721
  declare const index_requestData: typeof requestData;
2347
2722
  declare const index_searchKbNodes: typeof searchKbNodes;
@@ -2354,11 +2729,12 @@ declare const index_sendUserPromptSuggestionsRequest: typeof sendUserPromptSugge
2354
2729
  declare const index_updateBookmark: typeof updateBookmark;
2355
2730
  declare const index_updateDashboard: typeof updateDashboard;
2356
2731
  declare const index_updateKbNode: typeof updateKbNode;
2732
+ declare const index_updateMenu: typeof updateMenu;
2357
2733
  declare const index_updateReport: typeof updateReport;
2358
2734
  declare const index_updateUI: typeof updateUI;
2359
2735
  declare const index_updateUser: typeof updateUser;
2360
2736
  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 };
2737
+ 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_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_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_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_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_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_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_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_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
2738
  }
2363
2739
 
2364
2740
  type MessageHandler = (message: Message) => void;
@@ -3026,6 +3402,111 @@ declare class SuperatomClient {
3026
3402
  * ```
3027
3403
  */
3028
3404
  sendDashCompRequest(options: DashCompRequestOptions): Promise<DashCompResponse>;
3405
+ /**
3406
+ * Create a new menu
3407
+ * Delegates to menus service
3408
+ */
3409
+ createMenu(options: CreateMenuOptions, timeout?: number): Promise<{
3410
+ success: boolean;
3411
+ error?: string;
3412
+ message?: string;
3413
+ data?: Menu;
3414
+ }>;
3415
+ /**
3416
+ * Update an existing menu
3417
+ * Delegates to menus service
3418
+ */
3419
+ updateMenu(options: UpdateMenuOptions, timeout?: number): Promise<{
3420
+ success: boolean;
3421
+ error?: string;
3422
+ message?: string;
3423
+ data?: Menu;
3424
+ }>;
3425
+ /**
3426
+ * Delete a menu
3427
+ * Delegates to menus service
3428
+ */
3429
+ deleteMenu(id: number, timeout?: number): Promise<{
3430
+ success: boolean;
3431
+ error?: string;
3432
+ message?: string;
3433
+ data?: Menu;
3434
+ }>;
3435
+ /**
3436
+ * Get all menus
3437
+ * Delegates to menus service
3438
+ */
3439
+ getAllMenus(timeout?: number): Promise<{
3440
+ success: boolean;
3441
+ error?: string;
3442
+ menus?: Menu[];
3443
+ count?: number;
3444
+ message?: string;
3445
+ }>;
3446
+ /**
3447
+ * Get a specific menu by ID
3448
+ * Delegates to menus service
3449
+ */
3450
+ getMenu(id: number, timeout?: number): Promise<{
3451
+ success: boolean;
3452
+ error?: string;
3453
+ menu?: Menu;
3454
+ message?: string;
3455
+ }>;
3456
+ /**
3457
+ * Get root menus (top-level sidebar items)
3458
+ * Delegates to menus service
3459
+ */
3460
+ getRootMenus(timeout?: number): Promise<{
3461
+ success: boolean;
3462
+ error?: string;
3463
+ menus?: Menu[];
3464
+ count?: number;
3465
+ message?: string;
3466
+ }>;
3467
+ /**
3468
+ * Get child menus by parent ID
3469
+ * Delegates to menus service
3470
+ */
3471
+ getChildMenus(parentId: number, timeout?: number): Promise<{
3472
+ success: boolean;
3473
+ error?: string;
3474
+ menus?: Menu[];
3475
+ count?: number;
3476
+ message?: string;
3477
+ }>;
3478
+ /**
3479
+ * Get menus with hierarchy (nested structure)
3480
+ * Delegates to menus service
3481
+ */
3482
+ getMenusHierarchy(timeout?: number): Promise<{
3483
+ success: boolean;
3484
+ error?: string;
3485
+ menus?: Menu[];
3486
+ count?: number;
3487
+ message?: string;
3488
+ }>;
3489
+ /**
3490
+ * Query menus with filters
3491
+ * Delegates to menus service
3492
+ */
3493
+ queryMenus(options?: QueryMenusOptions, timeout?: number): Promise<{
3494
+ success: boolean;
3495
+ error?: string;
3496
+ menus?: Menu[];
3497
+ count?: number;
3498
+ message?: string;
3499
+ }>;
3500
+ /**
3501
+ * Reorder menus
3502
+ * Delegates to menus service
3503
+ */
3504
+ reorderMenus(items: ReorderMenuItem[], timeout?: number): Promise<{
3505
+ success: boolean;
3506
+ error?: string;
3507
+ message?: string;
3508
+ data?: Menu[];
3509
+ }>;
3029
3510
  /**
3030
3511
  * Internal logging
3031
3512
  */
@@ -3085,4 +3566,4 @@ declare function hasComponents(): boolean;
3085
3566
  */
3086
3567
  declare const SDK_VERSION = "0.1.0";
3087
3568
 
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 };
3569
+ 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 };