@superatomai/sdk-web 0.0.10 → 0.0.12

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
@@ -75,7 +75,7 @@ declare const UIComponentSchema: z.ZodObject<{
75
75
  }, z.core.$strip>>;
76
76
  }, z.core.$strip>;
77
77
  type UIComponent = z.infer<typeof UIComponentSchema>;
78
- declare const DSLRendererPropsSchema$1: z.ZodObject<{
78
+ declare const DSLRendererPropsSchema$2: z.ZodObject<{
79
79
  dsl: z.ZodObject<{
80
80
  id: z.ZodString;
81
81
  name: z.ZodOptional<z.ZodString>;
@@ -108,9 +108,9 @@ declare const DSLRendererPropsSchema$1: z.ZodObject<{
108
108
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
109
109
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
110
110
  }, z.core.$strip>;
111
- type DSLRendererProps$1 = z.infer<typeof DSLRendererPropsSchema$1>;
111
+ type DSLRendererProps$2 = z.infer<typeof DSLRendererPropsSchema$2>;
112
112
 
113
- declare const DSLRendererPropsSchema: z.ZodObject<{
113
+ declare const DSLRendererPropsSchema$1: z.ZodObject<{
114
114
  dsl: z.ZodObject<{
115
115
  id: z.ZodString;
116
116
  name: z.ZodOptional<z.ZodString>;
@@ -143,7 +143,7 @@ declare const DSLRendererPropsSchema: z.ZodObject<{
143
143
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
144
144
  context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
145
145
  }, z.core.$strip>;
146
- type DSLRendererProps = z.infer<typeof DSLRendererPropsSchema>;
146
+ type DSLRendererProps$1 = z.infer<typeof DSLRendererPropsSchema$1>;
147
147
 
148
148
  /**
149
149
  * Message participant schema (from/to)
@@ -826,13 +826,65 @@ declare const ComponentsSendMessageSchema: z.ZodObject<{
826
826
  }, z.core.$strip>;
827
827
  }, z.core.$strip>;
828
828
  type ComponentsSendMessage = z.infer<typeof ComponentsSendMessageSchema>;
829
+ /**
830
+ * Dashboard query filters schema
831
+ * Synced with sdk-nodejs: DashboardQueryFiltersSchema
832
+ */
833
+ declare const DashboardQueryFiltersSchema: z.ZodObject<{
834
+ dashboardId: z.ZodOptional<z.ZodString>;
835
+ projectId: z.ZodOptional<z.ZodString>;
836
+ createdBy: z.ZodOptional<z.ZodNumber>;
837
+ updatedBy: z.ZodOptional<z.ZodNumber>;
838
+ name: z.ZodOptional<z.ZodString>;
839
+ }, z.core.$strip>;
840
+ type DashboardQueryFilters = z.infer<typeof DashboardQueryFiltersSchema>;
841
+ /**
842
+ * Report query filters schema
843
+ * Synced with sdk-nodejs: ReportQueryFiltersSchema
844
+ */
845
+ declare const ReportQueryFiltersSchema: z.ZodObject<{
846
+ reportId: z.ZodOptional<z.ZodString>;
847
+ projectId: z.ZodOptional<z.ZodString>;
848
+ createdBy: z.ZodOptional<z.ZodNumber>;
849
+ updatedBy: z.ZodOptional<z.ZodNumber>;
850
+ name: z.ZodOptional<z.ZodString>;
851
+ }, z.core.$strip>;
852
+ type ReportQueryFilters = z.infer<typeof ReportQueryFiltersSchema>;
853
+ /**
854
+ * UI query filters schema
855
+ * Synced with sdk-nodejs: UIQueryFiltersSchema
856
+ */
857
+ declare const UIQueryFiltersSchema: z.ZodObject<{
858
+ uiId: z.ZodOptional<z.ZodString>;
859
+ projectId: z.ZodOptional<z.ZodString>;
860
+ createdBy: z.ZodOptional<z.ZodNumber>;
861
+ updatedBy: z.ZodOptional<z.ZodNumber>;
862
+ name: z.ZodOptional<z.ZodString>;
863
+ }, z.core.$strip>;
864
+ type UIQueryFilters = z.infer<typeof UIQueryFiltersSchema>;
865
+ /**
866
+ * DBUIBlock schema for database storage
867
+ * Synced with sdk-nodejs: DBUIBlockSchema (from conversation-saver.ts)
868
+ */
869
+ declare const DBUIBlockSchema: z.ZodObject<{
870
+ id: z.ZodString;
871
+ component: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
872
+ analysis: z.ZodNullable<z.ZodString>;
873
+ user_prompt: z.ZodString;
874
+ }, z.core.$strip>;
875
+ type DBUIBlock = z.infer<typeof DBUIBlockSchema>;
829
876
  /**
830
877
  * Bookmark data schema
831
878
  * Synced with sdk-nodejs: BookmarkDataSchema
832
879
  */
833
880
  declare const BookmarkDataSchema: z.ZodObject<{
834
881
  id: z.ZodOptional<z.ZodNumber>;
835
- uiblock: z.ZodAny;
882
+ uiblock: z.ZodObject<{
883
+ id: z.ZodString;
884
+ component: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>;
885
+ analysis: z.ZodNullable<z.ZodString>;
886
+ user_prompt: z.ZodString;
887
+ }, z.core.$strip>;
836
888
  created_at: z.ZodOptional<z.ZodString>;
837
889
  updated_at: z.ZodOptional<z.ZodString>;
838
890
  }, z.core.$strip>;
@@ -1081,51 +1133,89 @@ declare function getUser(client: SuperatomClient, username: string, timeout?: nu
1081
1133
  * Dashboard interface for response data
1082
1134
  */
1083
1135
  interface Dashboard {
1136
+ id?: number;
1137
+ dashboardId: string;
1138
+ projectId?: string;
1139
+ name?: string;
1140
+ description?: string;
1141
+ dashboard?: DSLRendererProps$2;
1142
+ createdBy?: number;
1143
+ updatedBy?: number;
1144
+ createdAt?: string;
1145
+ updatedAt?: string;
1146
+ }
1147
+ /**
1148
+ * Create dashboard options
1149
+ */
1150
+ interface CreateDashboardOptions {
1084
1151
  dashboardId: string;
1085
- dashboard: DSLRendererProps$1;
1152
+ projectId: string;
1153
+ name?: string;
1154
+ description?: string;
1155
+ createdBy?: number;
1156
+ dashboard?: DSLRendererProps$2;
1157
+ }
1158
+ /**
1159
+ * Update dashboard options
1160
+ */
1161
+ interface UpdateDashboardOptions {
1162
+ id: number;
1163
+ name?: string;
1164
+ description?: string;
1165
+ createdBy?: number;
1166
+ updatedBy?: number;
1167
+ dashboard?: DSLRendererProps$2;
1168
+ }
1169
+ /**
1170
+ * Query dashboards options
1171
+ */
1172
+ interface QueryDashboardsOptions {
1173
+ filters?: DashboardQueryFilters;
1174
+ limit?: number;
1175
+ sort?: 'ASC' | 'DESC';
1086
1176
  }
1087
1177
  /**
1088
1178
  * Create a new dashboard
1089
1179
  * @param client - SuperatomClient instance
1090
- * @param dashboardId - Unique dashboard ID
1091
- * @param dashboard - Dashboard DSL data
1180
+ * @param options - Dashboard creation options
1092
1181
  * @param timeout - Request timeout in milliseconds
1093
1182
  * @returns Server response with success status
1094
1183
  */
1095
- declare function createDashboard(client: SuperatomClient, dashboardId: string, dashboard: DSLRendererProps$1, timeout?: number): Promise<{
1184
+ declare function createDashboard(client: SuperatomClient, options: CreateDashboardOptions, timeout?: number): Promise<{
1096
1185
  success: boolean;
1097
1186
  error?: string;
1098
1187
  message?: string;
1188
+ id?: number;
1099
1189
  dashboardId?: string;
1100
- dashboard?: DSLRendererProps$1;
1190
+ dashboard?: DSLRendererProps$2;
1101
1191
  }>;
1102
1192
  /**
1103
1193
  * Update an existing dashboard
1104
1194
  * @param client - SuperatomClient instance
1105
- * @param dashboardId - Dashboard ID to update
1106
- * @param dashboard - Updated dashboard DSL data
1195
+ * @param options - Dashboard update options
1107
1196
  * @param timeout - Request timeout in milliseconds
1108
1197
  * @returns Server response with success status
1109
1198
  */
1110
- declare function updateDashboard(client: SuperatomClient, dashboardId: string, dashboard: DSLRendererProps$1, timeout?: number): Promise<{
1199
+ declare function updateDashboard(client: SuperatomClient, options: UpdateDashboardOptions, timeout?: number): Promise<{
1111
1200
  success: boolean;
1112
1201
  error?: string;
1113
1202
  message?: string;
1203
+ id?: number;
1114
1204
  dashboardId?: string;
1115
- dashboard?: DSLRendererProps$1;
1205
+ dashboard?: DSLRendererProps$2;
1116
1206
  }>;
1117
1207
  /**
1118
1208
  * Delete a dashboard
1119
1209
  * @param client - SuperatomClient instance
1120
- * @param dashboardId - Dashboard ID to delete
1210
+ * @param id - Dashboard ID (numeric) to delete
1121
1211
  * @param timeout - Request timeout in milliseconds
1122
1212
  * @returns Server response with success status
1123
1213
  */
1124
- declare function deleteDashboard(client: SuperatomClient, dashboardId: string, timeout?: number): Promise<{
1214
+ declare function deleteDashboard(client: SuperatomClient, id: number, timeout?: number): Promise<{
1125
1215
  success: boolean;
1126
1216
  error?: string;
1127
1217
  message?: string;
1128
- dashboardId?: string;
1218
+ id?: number;
1129
1219
  }>;
1130
1220
  /**
1131
1221
  * Get all dashboards
@@ -1143,15 +1233,30 @@ declare function getAllDashboards(client: SuperatomClient, timeout?: number): Pr
1143
1233
  /**
1144
1234
  * Get a specific dashboard by ID
1145
1235
  * @param client - SuperatomClient instance
1146
- * @param dashboardId - Dashboard ID to retrieve
1236
+ * @param id - Dashboard ID (numeric) to retrieve
1147
1237
  * @param timeout - Request timeout in milliseconds
1148
1238
  * @returns Server response with dashboard data
1149
1239
  */
1150
- declare function getDashboard(client: SuperatomClient, dashboardId: string, timeout?: number): Promise<{
1240
+ declare function getDashboard(client: SuperatomClient, id: number, timeout?: number): Promise<{
1151
1241
  success: boolean;
1152
1242
  error?: string;
1243
+ id?: number;
1153
1244
  dashboardId?: string;
1154
- dashboard?: DSLRendererProps$1;
1245
+ dashboard?: DSLRendererProps$2;
1246
+ message?: string;
1247
+ }>;
1248
+ /**
1249
+ * Query dashboards with filters, limit, and sort
1250
+ * @param client - SuperatomClient instance
1251
+ * @param options - Query options with filters, limit, and sort
1252
+ * @param timeout - Request timeout in milliseconds
1253
+ * @returns Server response with list of dashboards
1254
+ */
1255
+ declare function queryDashboards(client: SuperatomClient, options?: QueryDashboardsOptions, timeout?: number): Promise<{
1256
+ success: boolean;
1257
+ error?: string;
1258
+ dashboards?: Dashboard[];
1259
+ count?: number;
1155
1260
  message?: string;
1156
1261
  }>;
1157
1262
 
@@ -1164,51 +1269,89 @@ declare function getDashboard(client: SuperatomClient, dashboardId: string, time
1164
1269
  * Report interface for response data
1165
1270
  */
1166
1271
  interface Report {
1272
+ id?: number;
1273
+ reportId: string;
1274
+ projectId?: string;
1275
+ name?: string;
1276
+ description?: string;
1277
+ report?: DSLRendererProps$1;
1278
+ createdBy?: number;
1279
+ updatedBy?: number;
1280
+ createdAt?: string;
1281
+ updatedAt?: string;
1282
+ }
1283
+ /**
1284
+ * Create report options
1285
+ */
1286
+ interface CreateReportOptions {
1167
1287
  reportId: string;
1168
- report: DSLRendererProps;
1288
+ projectId: string;
1289
+ name?: string;
1290
+ description?: string;
1291
+ createdBy?: number;
1292
+ report?: DSLRendererProps$1;
1293
+ }
1294
+ /**
1295
+ * Update report options
1296
+ */
1297
+ interface UpdateReportOptions {
1298
+ id: number;
1299
+ name?: string;
1300
+ description?: string;
1301
+ createdBy?: number;
1302
+ updatedBy?: number;
1303
+ report?: DSLRendererProps$1;
1304
+ }
1305
+ /**
1306
+ * Query reports options
1307
+ */
1308
+ interface QueryReportsOptions {
1309
+ filters?: ReportQueryFilters;
1310
+ limit?: number;
1311
+ sort?: 'ASC' | 'DESC';
1169
1312
  }
1170
1313
  /**
1171
1314
  * Create a new report
1172
1315
  * @param client - SuperatomClient instance
1173
- * @param reportId - Unique report ID
1174
- * @param report - Report DSL data
1316
+ * @param options - Report creation options
1175
1317
  * @param timeout - Request timeout in milliseconds
1176
1318
  * @returns Server response with success status
1177
1319
  */
1178
- declare function createReport(client: SuperatomClient, reportId: string, report: DSLRendererProps, timeout?: number): Promise<{
1320
+ declare function createReport(client: SuperatomClient, options: CreateReportOptions, timeout?: number): Promise<{
1179
1321
  success: boolean;
1180
1322
  error?: string;
1181
1323
  message?: string;
1324
+ id?: number;
1182
1325
  reportId?: string;
1183
- report?: DSLRendererProps;
1326
+ report?: DSLRendererProps$1;
1184
1327
  }>;
1185
1328
  /**
1186
1329
  * Update an existing report
1187
1330
  * @param client - SuperatomClient instance
1188
- * @param reportId - Report ID to update
1189
- * @param report - Updated report DSL data
1331
+ * @param options - Report update options
1190
1332
  * @param timeout - Request timeout in milliseconds
1191
1333
  * @returns Server response with success status
1192
1334
  */
1193
- declare function updateReport(client: SuperatomClient, reportId: string, report: DSLRendererProps, timeout?: number): Promise<{
1335
+ declare function updateReport(client: SuperatomClient, options: UpdateReportOptions, timeout?: number): Promise<{
1194
1336
  success: boolean;
1195
1337
  error?: string;
1196
1338
  message?: string;
1339
+ id?: number;
1197
1340
  reportId?: string;
1198
- report?: DSLRendererProps;
1341
+ report?: DSLRendererProps$1;
1199
1342
  }>;
1200
1343
  /**
1201
1344
  * Delete a report
1202
1345
  * @param client - SuperatomClient instance
1203
- * @param reportId - Report ID to delete
1346
+ * @param id - Report ID (numeric) to delete
1204
1347
  * @param timeout - Request timeout in milliseconds
1205
1348
  * @returns Server response with success status
1206
1349
  */
1207
- declare function deleteReport(client: SuperatomClient, reportId: string, timeout?: number): Promise<{
1350
+ declare function deleteReport(client: SuperatomClient, id: number, timeout?: number): Promise<{
1208
1351
  success: boolean;
1209
1352
  error?: string;
1210
1353
  message?: string;
1211
- reportId?: string;
1354
+ id?: number;
1212
1355
  }>;
1213
1356
  /**
1214
1357
  * Get all reports
@@ -1226,15 +1369,30 @@ declare function getAllReports(client: SuperatomClient, timeout?: number): Promi
1226
1369
  /**
1227
1370
  * Get a specific report by ID
1228
1371
  * @param client - SuperatomClient instance
1229
- * @param reportId - Report ID to retrieve
1372
+ * @param id - Report ID (numeric) to retrieve
1230
1373
  * @param timeout - Request timeout in milliseconds
1231
1374
  * @returns Server response with report data
1232
1375
  */
1233
- declare function getReport(client: SuperatomClient, reportId: string, timeout?: number): Promise<{
1376
+ declare function getReport(client: SuperatomClient, id: number, timeout?: number): Promise<{
1234
1377
  success: boolean;
1235
1378
  error?: string;
1379
+ id?: number;
1236
1380
  reportId?: string;
1237
- report?: DSLRendererProps;
1381
+ report?: DSLRendererProps$1;
1382
+ message?: string;
1383
+ }>;
1384
+ /**
1385
+ * Query reports with filters, limit, and sort
1386
+ * @param client - SuperatomClient instance
1387
+ * @param options - Query options with filters, limit, and sort
1388
+ * @param timeout - Request timeout in milliseconds
1389
+ * @returns Server response with list of reports
1390
+ */
1391
+ declare function queryReports(client: SuperatomClient, options?: QueryReportsOptions, timeout?: number): Promise<{
1392
+ success: boolean;
1393
+ error?: string;
1394
+ reports?: Report[];
1395
+ count?: number;
1238
1396
  message?: string;
1239
1397
  }>;
1240
1398
 
@@ -1248,32 +1406,55 @@ declare function getReport(client: SuperatomClient, reportId: string, timeout?:
1248
1406
  */
1249
1407
  interface Bookmark {
1250
1408
  id?: number;
1251
- uiblock: any;
1409
+ userId?: number;
1410
+ threadId?: string;
1411
+ name?: string;
1412
+ description?: string;
1413
+ uiblock: DBUIBlock;
1252
1414
  created_at?: string;
1253
1415
  updated_at?: string;
1254
1416
  }
1417
+ /**
1418
+ * Create bookmark options
1419
+ */
1420
+ interface CreateBookmarkOptions {
1421
+ userId: number;
1422
+ uiblock: DBUIBlock;
1423
+ threadId?: string;
1424
+ name?: string;
1425
+ description?: string;
1426
+ }
1255
1427
  /**
1256
1428
  * Create a new bookmark
1257
1429
  * @param client - SuperatomClient instance
1258
- * @param uiblock - UIBlock JSON data
1430
+ * @param options - Bookmark creation options
1259
1431
  * @param timeout - Request timeout in milliseconds
1260
1432
  * @returns Server response with success status
1261
1433
  */
1262
- declare function createBookmark(client: SuperatomClient, uiblock: any, timeout?: number): Promise<{
1434
+ declare function createBookmark(client: SuperatomClient, options: CreateBookmarkOptions, timeout?: number): Promise<{
1263
1435
  success: boolean;
1264
1436
  error?: string;
1265
1437
  message?: string;
1266
1438
  data?: BookmarkData;
1267
1439
  }>;
1440
+ /**
1441
+ * Update bookmark options
1442
+ */
1443
+ interface UpdateBookmarkOptions {
1444
+ id: number;
1445
+ uiblock?: DBUIBlock;
1446
+ threadId?: string;
1447
+ name?: string;
1448
+ description?: string;
1449
+ }
1268
1450
  /**
1269
1451
  * Update an existing bookmark
1270
1452
  * @param client - SuperatomClient instance
1271
- * @param id - Bookmark ID to update
1272
- * @param uiblock - Updated UIBlock JSON data
1453
+ * @param options - Bookmark update options
1273
1454
  * @param timeout - Request timeout in milliseconds
1274
1455
  * @returns Server response with success status
1275
1456
  */
1276
- declare function updateBookmark(client: SuperatomClient, id: number, uiblock: any, timeout?: number): Promise<{
1457
+ declare function updateBookmark(client: SuperatomClient, options: UpdateBookmarkOptions, timeout?: number): Promise<{
1277
1458
  success: boolean;
1278
1459
  error?: string;
1279
1460
  message?: string;
@@ -1318,6 +1499,35 @@ declare function getBookmark(client: SuperatomClient, id: number, timeout?: numb
1318
1499
  data?: BookmarkData;
1319
1500
  message?: string;
1320
1501
  }>;
1502
+ /**
1503
+ * Get bookmarks by user ID (and optionally by thread ID)
1504
+ * @param client - SuperatomClient instance
1505
+ * @param userId - User ID to filter by
1506
+ * @param threadId - Optional thread ID to filter by
1507
+ * @param timeout - Request timeout in milliseconds
1508
+ * @returns Server response with list of bookmarks
1509
+ */
1510
+ declare function getBookmarksByUser(client: SuperatomClient, userId: number, threadId?: string, timeout?: number): Promise<{
1511
+ success: boolean;
1512
+ error?: string;
1513
+ data?: BookmarkData[];
1514
+ count?: number;
1515
+ message?: string;
1516
+ }>;
1517
+ /**
1518
+ * Get bookmarks by thread ID
1519
+ * @param client - SuperatomClient instance
1520
+ * @param threadId - Thread ID to filter by
1521
+ * @param timeout - Request timeout in milliseconds
1522
+ * @returns Server response with list of bookmarks
1523
+ */
1524
+ declare function getBookmarksByThread(client: SuperatomClient, threadId: string, timeout?: number): Promise<{
1525
+ success: boolean;
1526
+ error?: string;
1527
+ data?: BookmarkData[];
1528
+ count?: number;
1529
+ message?: string;
1530
+ }>;
1321
1531
 
1322
1532
  declare function getActions(client: SuperatomClient, options: {
1323
1533
  SA_RUNTIME?: Record<string, unknown>;
@@ -1328,6 +1538,177 @@ declare function getActions(client: SuperatomClient, options: {
1328
1538
  error?: string;
1329
1539
  }>;
1330
1540
 
1541
+ declare const DSLRendererPropsSchema: z.ZodObject<{
1542
+ dsl: z.ZodObject<{
1543
+ id: z.ZodString;
1544
+ name: z.ZodOptional<z.ZodString>;
1545
+ props: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1546
+ states: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1547
+ methods: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1548
+ fn: z.ZodString;
1549
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1550
+ }, z.core.$strip>>>;
1551
+ effects: z.ZodOptional<z.ZodArray<z.ZodObject<{
1552
+ fn: z.ZodString;
1553
+ deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
1554
+ }, z.core.$strip>>>;
1555
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1556
+ render: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
1557
+ query: z.ZodOptional<z.ZodObject<{
1558
+ graphql: z.ZodOptional<z.ZodString>;
1559
+ sql: z.ZodOptional<z.ZodString>;
1560
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1561
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1562
+ key: z.ZodOptional<z.ZodString>;
1563
+ refetchPolicy: z.ZodOptional<z.ZodEnum<{
1564
+ "cache-first": "cache-first";
1565
+ "network-only": "network-only";
1566
+ "cache-and-network": "cache-and-network";
1567
+ }>>;
1568
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString>>;
1569
+ }, z.core.$strip>>;
1570
+ }, z.core.$strip>;
1571
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1572
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1573
+ }, z.core.$strip>;
1574
+ type DSLRendererProps = z.infer<typeof DSLRendererPropsSchema>;
1575
+
1576
+ /**
1577
+ * UIs Service
1578
+ * Handles UIS message for UI CRUD operations
1579
+ */
1580
+
1581
+ /**
1582
+ * UI interface for response data
1583
+ */
1584
+ interface UI {
1585
+ id?: number;
1586
+ uiId: string;
1587
+ projectId?: string;
1588
+ name?: string;
1589
+ description?: string;
1590
+ ui?: DSLRendererProps;
1591
+ createdBy?: number;
1592
+ updatedBy?: number;
1593
+ createdAt?: string;
1594
+ updatedAt?: string;
1595
+ }
1596
+ /**
1597
+ * Create UI options
1598
+ */
1599
+ interface CreateUIOptions {
1600
+ uiId: string;
1601
+ projectId: string;
1602
+ name?: string;
1603
+ description?: string;
1604
+ createdBy?: number;
1605
+ ui?: DSLRendererProps;
1606
+ }
1607
+ /**
1608
+ * Update UI options
1609
+ */
1610
+ interface UpdateUIOptions {
1611
+ id: number;
1612
+ name?: string;
1613
+ description?: string;
1614
+ createdBy?: number;
1615
+ updatedBy?: number;
1616
+ ui?: DSLRendererProps;
1617
+ }
1618
+ /**
1619
+ * Query UIs options
1620
+ */
1621
+ interface QueryUIsOptions {
1622
+ filters?: UIQueryFilters;
1623
+ limit?: number;
1624
+ sort?: 'ASC' | 'DESC';
1625
+ }
1626
+ /**
1627
+ * Create a new UI
1628
+ * @param client - SuperatomClient instance
1629
+ * @param options - UI creation options
1630
+ * @param timeout - Request timeout in milliseconds
1631
+ * @returns Server response with success status
1632
+ */
1633
+ declare function createUI(client: SuperatomClient, options: CreateUIOptions, timeout?: number): Promise<{
1634
+ success: boolean;
1635
+ error?: string;
1636
+ message?: string;
1637
+ id?: number;
1638
+ uiId?: string;
1639
+ ui?: DSLRendererProps;
1640
+ }>;
1641
+ /**
1642
+ * Update an existing UI
1643
+ * @param client - SuperatomClient instance
1644
+ * @param options - UI update options
1645
+ * @param timeout - Request timeout in milliseconds
1646
+ * @returns Server response with success status
1647
+ */
1648
+ declare function updateUI(client: SuperatomClient, options: UpdateUIOptions, timeout?: number): Promise<{
1649
+ success: boolean;
1650
+ error?: string;
1651
+ message?: string;
1652
+ id?: number;
1653
+ uiId?: string;
1654
+ ui?: DSLRendererProps;
1655
+ }>;
1656
+ /**
1657
+ * Delete a UI
1658
+ * @param client - SuperatomClient instance
1659
+ * @param id - UI ID (numeric) to delete
1660
+ * @param timeout - Request timeout in milliseconds
1661
+ * @returns Server response with success status
1662
+ */
1663
+ declare function deleteUI(client: SuperatomClient, id: number, timeout?: number): Promise<{
1664
+ success: boolean;
1665
+ error?: string;
1666
+ message?: string;
1667
+ id?: number;
1668
+ }>;
1669
+ /**
1670
+ * Get all UIs
1671
+ * @param client - SuperatomClient instance
1672
+ * @param timeout - Request timeout in milliseconds
1673
+ * @returns Server response with list of UIs
1674
+ */
1675
+ declare function getAllUIs(client: SuperatomClient, timeout?: number): Promise<{
1676
+ success: boolean;
1677
+ error?: string;
1678
+ uis?: UI[];
1679
+ count?: number;
1680
+ message?: string;
1681
+ }>;
1682
+ /**
1683
+ * Get a specific UI by ID
1684
+ * @param client - SuperatomClient instance
1685
+ * @param id - UI ID (numeric) to retrieve
1686
+ * @param timeout - Request timeout in milliseconds
1687
+ * @returns Server response with UI data
1688
+ */
1689
+ declare function getUI(client: SuperatomClient, id: number, timeout?: number): Promise<{
1690
+ success: boolean;
1691
+ error?: string;
1692
+ id?: number;
1693
+ uiId?: string;
1694
+ ui?: DSLRendererProps;
1695
+ message?: string;
1696
+ }>;
1697
+ /**
1698
+ * Query UIs with filters, limit, and sort
1699
+ * @param client - SuperatomClient instance
1700
+ * @param options - Query options with filters, limit, and sort
1701
+ * @param timeout - Request timeout in milliseconds
1702
+ * @returns Server response with list of UIs
1703
+ */
1704
+ declare function queryUIs(client: SuperatomClient, options?: QueryUIsOptions, timeout?: number): Promise<{
1705
+ success: boolean;
1706
+ error?: string;
1707
+ uis?: UI[];
1708
+ count?: number;
1709
+ message?: string;
1710
+ }>;
1711
+
1331
1712
  /**
1332
1713
  * Services Index
1333
1714
  * Re-exports all service functions for easy importing
@@ -1336,37 +1717,58 @@ declare function getActions(client: SuperatomClient, options: {
1336
1717
  type index_Binding = Binding;
1337
1718
  declare const index_BindingSchema: typeof BindingSchema;
1338
1719
  type index_Bookmark = Bookmark;
1720
+ type index_CreateBookmarkOptions = CreateBookmarkOptions;
1721
+ type index_CreateDashboardOptions = CreateDashboardOptions;
1722
+ type index_CreateReportOptions = CreateReportOptions;
1723
+ type index_CreateUIOptions = CreateUIOptions;
1339
1724
  type index_Dashboard = Dashboard;
1340
1725
  type index_Expression = Expression;
1341
1726
  declare const index_ExpressionSchema: typeof ExpressionSchema;
1342
1727
  type index_ForDirective = ForDirective;
1343
1728
  declare const index_ForDirectiveSchema: typeof ForDirectiveSchema;
1729
+ type index_QueryDashboardsOptions = QueryDashboardsOptions;
1730
+ type index_QueryReportsOptions = QueryReportsOptions;
1344
1731
  type index_QuerySpec = QuerySpec;
1345
1732
  declare const index_QuerySpecSchema: typeof QuerySpecSchema;
1733
+ type index_QueryUIsOptions = QueryUIsOptions;
1346
1734
  type index_Report = Report;
1735
+ type index_UI = UI;
1347
1736
  type index_UIComponent = UIComponent;
1348
1737
  declare const index_UIComponentSchema: typeof UIComponentSchema;
1349
1738
  type index_UIElement = UIElement;
1350
1739
  declare const index_UIElementSchema: typeof UIElementSchema;
1740
+ type index_UpdateBookmarkOptions = UpdateBookmarkOptions;
1741
+ type index_UpdateDashboardOptions = UpdateDashboardOptions;
1742
+ type index_UpdateReportOptions = UpdateReportOptions;
1743
+ type index_UpdateUIOptions = UpdateUIOptions;
1351
1744
  type index_User = User;
1352
1745
  declare const index_createBookmark: typeof createBookmark;
1353
1746
  declare const index_createDashboard: typeof createDashboard;
1354
1747
  declare const index_createReport: typeof createReport;
1748
+ declare const index_createUI: typeof createUI;
1355
1749
  declare const index_createUser: typeof createUser;
1356
1750
  declare const index_deleteBookmark: typeof deleteBookmark;
1357
1751
  declare const index_deleteDashboard: typeof deleteDashboard;
1358
1752
  declare const index_deleteReport: typeof deleteReport;
1753
+ declare const index_deleteUI: typeof deleteUI;
1359
1754
  declare const index_deleteUser: typeof deleteUser;
1360
1755
  declare const index_getActions: typeof getActions;
1361
1756
  declare const index_getAllBookmarks: typeof getAllBookmarks;
1362
1757
  declare const index_getAllDashboards: typeof getAllDashboards;
1363
1758
  declare const index_getAllReports: typeof getAllReports;
1759
+ declare const index_getAllUIs: typeof getAllUIs;
1364
1760
  declare const index_getAllUsers: typeof getAllUsers;
1365
1761
  declare const index_getBookmark: typeof getBookmark;
1762
+ declare const index_getBookmarksByThread: typeof getBookmarksByThread;
1763
+ declare const index_getBookmarksByUser: typeof getBookmarksByUser;
1366
1764
  declare const index_getComponentSuggestions: typeof getComponentSuggestions;
1367
1765
  declare const index_getDashboard: typeof getDashboard;
1368
1766
  declare const index_getReport: typeof getReport;
1767
+ declare const index_getUI: typeof getUI;
1369
1768
  declare const index_getUser: typeof getUser;
1769
+ declare const index_queryDashboards: typeof queryDashboards;
1770
+ declare const index_queryReports: typeof queryReports;
1771
+ declare const index_queryUIs: typeof queryUIs;
1370
1772
  declare const index_requestBundle: typeof requestBundle;
1371
1773
  declare const index_requestData: typeof requestData;
1372
1774
  declare const index_sendAuthLoginRequest: typeof sendAuthLoginRequest;
@@ -1377,9 +1779,10 @@ declare const index_sendUserPromptSuggestionsRequest: typeof sendUserPromptSugge
1377
1779
  declare const index_updateBookmark: typeof updateBookmark;
1378
1780
  declare const index_updateDashboard: typeof updateDashboard;
1379
1781
  declare const index_updateReport: typeof updateReport;
1782
+ declare const index_updateUI: typeof updateUI;
1380
1783
  declare const index_updateUser: typeof updateUser;
1381
1784
  declare namespace index {
1382
- export { type index_Binding as Binding, index_BindingSchema as BindingSchema, type index_Bookmark as Bookmark, type DSLRendererProps$1 as DSLRendererProps, DSLRendererPropsSchema$1 as DSLRendererPropsSchema, type index_Dashboard as Dashboard, type index_Expression as Expression, index_ExpressionSchema as ExpressionSchema, type index_ForDirective as ForDirective, index_ForDirectiveSchema as ForDirectiveSchema, type index_QuerySpec as QuerySpec, index_QuerySpecSchema as QuerySpecSchema, type index_Report as Report, type DSLRendererProps as ReportDSLRendererProps, type index_UIComponent as UIComponent, index_UIComponentSchema as UIComponentSchema, type index_UIElement as UIElement, index_UIElementSchema as UIElementSchema, type index_User as User, index_createBookmark as createBookmark, index_createDashboard as createDashboard, index_createReport as createReport, index_createUser as createUser, index_deleteBookmark as deleteBookmark, index_deleteDashboard as deleteDashboard, index_deleteReport as deleteReport, index_deleteUser as deleteUser, index_getActions as getActions, index_getAllBookmarks as getAllBookmarks, index_getAllDashboards as getAllDashboards, index_getAllReports as getAllReports, index_getAllUsers as getAllUsers, index_getBookmark as getBookmark, index_getComponentSuggestions as getComponentSuggestions, index_getDashboard as getDashboard, index_getReport as getReport, index_getUser as getUser, index_requestBundle as requestBundle, index_requestData as requestData, index_sendAuthLoginRequest as sendAuthLoginRequest, index_sendAuthVerifyRequest as sendAuthVerifyRequest, index_sendComponents as sendComponents, index_sendUserPromptRequest as sendUserPromptRequest, index_sendUserPromptSuggestionsRequest as sendUserPromptSuggestionsRequest, index_updateBookmark as updateBookmark, index_updateDashboard as updateDashboard, index_updateReport as updateReport, index_updateUser as updateUser };
1785
+ export { type index_Binding as Binding, index_BindingSchema as BindingSchema, type index_Bookmark as Bookmark, type index_CreateBookmarkOptions as CreateBookmarkOptions, type index_CreateDashboardOptions as CreateDashboardOptions, type index_CreateReportOptions as CreateReportOptions, type index_CreateUIOptions as CreateUIOptions, type DSLRendererProps$2 as DSLRendererProps, DSLRendererPropsSchema$2 as DSLRendererPropsSchema, type index_Dashboard as Dashboard, type index_Expression as Expression, index_ExpressionSchema as ExpressionSchema, type index_ForDirective as ForDirective, index_ForDirectiveSchema as ForDirectiveSchema, type index_QueryDashboardsOptions as QueryDashboardsOptions, type index_QueryReportsOptions as QueryReportsOptions, type index_QuerySpec as QuerySpec, index_QuerySpecSchema as QuerySpecSchema, type index_QueryUIsOptions as QueryUIsOptions, type index_Report as Report, type DSLRendererProps$1 as ReportDSLRendererProps, type index_UI as UI, type index_UIComponent as UIComponent, index_UIComponentSchema as UIComponentSchema, type DSLRendererProps as UIDSLRendererProps, type index_UIElement as UIElement, index_UIElementSchema as UIElementSchema, type index_UpdateBookmarkOptions as UpdateBookmarkOptions, type index_UpdateDashboardOptions as UpdateDashboardOptions, type index_UpdateReportOptions as UpdateReportOptions, type index_UpdateUIOptions as UpdateUIOptions, type index_User as User, index_createBookmark as createBookmark, index_createDashboard as createDashboard, index_createReport as createReport, index_createUI as createUI, index_createUser as createUser, index_deleteBookmark as deleteBookmark, index_deleteDashboard as deleteDashboard, index_deleteReport as deleteReport, index_deleteUI as deleteUI, index_deleteUser as deleteUser, index_getActions as getActions, index_getAllBookmarks as getAllBookmarks, index_getAllDashboards as getAllDashboards, index_getAllReports as getAllReports, index_getAllUIs as getAllUIs, index_getAllUsers as getAllUsers, index_getBookmark as getBookmark, index_getBookmarksByThread as getBookmarksByThread, index_getBookmarksByUser as getBookmarksByUser, index_getComponentSuggestions as getComponentSuggestions, index_getDashboard as getDashboard, index_getReport as getReport, index_getUI as getUI, index_getUser as getUser, index_queryDashboards as queryDashboards, index_queryReports as queryReports, index_queryUIs as queryUIs, index_requestBundle as requestBundle, index_requestData as requestData, index_sendAuthLoginRequest as sendAuthLoginRequest, index_sendAuthVerifyRequest as sendAuthVerifyRequest, index_sendComponents as sendComponents, index_sendUserPromptRequest as sendUserPromptRequest, index_sendUserPromptSuggestionsRequest as sendUserPromptSuggestionsRequest, index_updateBookmark as updateBookmark, index_updateDashboard as updateDashboard, index_updateReport as updateReport, index_updateUI as updateUI, index_updateUser as updateUser };
1383
1786
  }
1384
1787
 
1385
1788
  type MessageHandler = (message: Message) => void;
@@ -1637,33 +2040,34 @@ declare class SuperatomClient {
1637
2040
  * Create a new dashboard
1638
2041
  * Delegates to dashboards service
1639
2042
  */
1640
- createDashboard(dashboardId: string, dashboard: DSLRendererProps$1, timeout?: number): Promise<{
2043
+ createDashboard(options: CreateDashboardOptions, timeout?: number): Promise<{
1641
2044
  success: boolean;
1642
2045
  error?: string;
1643
2046
  message?: string;
1644
2047
  dashboardId?: string;
1645
- dashboard?: DSLRendererProps$1;
2048
+ dashboard?: DSLRendererProps$2;
1646
2049
  }>;
1647
2050
  /**
1648
2051
  * Update an existing dashboard
1649
2052
  * Delegates to dashboards service
1650
2053
  */
1651
- updateDashboard(dashboardId: string, dashboard: DSLRendererProps$1, timeout?: number): Promise<{
2054
+ updateDashboard(options: UpdateDashboardOptions, timeout?: number): Promise<{
1652
2055
  success: boolean;
1653
2056
  error?: string;
1654
2057
  message?: string;
2058
+ id?: number;
1655
2059
  dashboardId?: string;
1656
- dashboard?: DSLRendererProps$1;
2060
+ dashboard?: DSLRendererProps$2;
1657
2061
  }>;
1658
2062
  /**
1659
2063
  * Delete a dashboard
1660
2064
  * Delegates to dashboards service
1661
2065
  */
1662
- deleteDashboard(dashboardId: string, timeout?: number): Promise<{
2066
+ deleteDashboard(id: number, timeout?: number): Promise<{
1663
2067
  success: boolean;
1664
2068
  error?: string;
1665
2069
  message?: string;
1666
- dashboardId?: string;
2070
+ id?: number;
1667
2071
  }>;
1668
2072
  /**
1669
2073
  * Get all dashboards
@@ -1680,18 +2084,30 @@ declare class SuperatomClient {
1680
2084
  * Get a specific dashboard by ID
1681
2085
  * Delegates to dashboards service
1682
2086
  */
1683
- getDashboard(dashboardId: string, timeout?: number): Promise<{
2087
+ getDashboard(id: number, timeout?: number): Promise<{
1684
2088
  success: boolean;
1685
2089
  error?: string;
2090
+ id?: number;
1686
2091
  dashboardId?: string;
1687
- dashboard?: DSLRendererProps$1;
2092
+ dashboard?: DSLRendererProps$2;
2093
+ message?: string;
2094
+ }>;
2095
+ /**
2096
+ * Query dashboards with filters
2097
+ * Delegates to dashboards service
2098
+ */
2099
+ queryDashboards(options?: QueryDashboardsOptions, timeout?: number): Promise<{
2100
+ success: boolean;
2101
+ error?: string;
2102
+ dashboards?: Dashboard[];
2103
+ count?: number;
1688
2104
  message?: string;
1689
2105
  }>;
1690
2106
  /**
1691
2107
  * Create a new bookmark
1692
2108
  * Delegates to bookmarks service
1693
2109
  */
1694
- createBookmark(uiblock: any, timeout?: number): Promise<{
2110
+ createBookmark(options: CreateBookmarkOptions, timeout?: number): Promise<{
1695
2111
  success: boolean;
1696
2112
  error?: string;
1697
2113
  message?: string;
@@ -1701,7 +2117,7 @@ declare class SuperatomClient {
1701
2117
  * Update an existing bookmark
1702
2118
  * Delegates to bookmarks service
1703
2119
  */
1704
- updateBookmark(id: number, uiblock: any, timeout?: number): Promise<{
2120
+ updateBookmark(options: UpdateBookmarkOptions, timeout?: number): Promise<{
1705
2121
  success: boolean;
1706
2122
  error?: string;
1707
2123
  message?: string;
@@ -1738,37 +2154,60 @@ declare class SuperatomClient {
1738
2154
  data?: Bookmark;
1739
2155
  message?: string;
1740
2156
  }>;
2157
+ /**
2158
+ * Get bookmarks by user ID (and optionally by thread ID)
2159
+ * Delegates to bookmarks service
2160
+ */
2161
+ getBookmarksByUser(userId: number, threadId?: string, timeout?: number): Promise<{
2162
+ success: boolean;
2163
+ error?: string;
2164
+ data?: Bookmark[];
2165
+ count?: number;
2166
+ message?: string;
2167
+ }>;
2168
+ /**
2169
+ * Get bookmarks by thread ID
2170
+ * Delegates to bookmarks service
2171
+ */
2172
+ getBookmarksByThread(threadId: string, timeout?: number): Promise<{
2173
+ success: boolean;
2174
+ error?: string;
2175
+ data?: Bookmark[];
2176
+ count?: number;
2177
+ message?: string;
2178
+ }>;
1741
2179
  /**
1742
2180
  * Create a new report
1743
2181
  * Delegates to reports service
1744
2182
  */
1745
- createReport(reportId: string, report: DSLRendererProps, timeout?: number): Promise<{
2183
+ createReport(options: CreateReportOptions, timeout?: number): Promise<{
1746
2184
  success: boolean;
1747
2185
  error?: string;
1748
2186
  message?: string;
1749
2187
  reportId?: string;
1750
- report?: DSLRendererProps;
2188
+ report?: DSLRendererProps$1;
1751
2189
  }>;
1752
2190
  /**
1753
2191
  * Update an existing report
1754
2192
  * Delegates to reports service
1755
2193
  */
1756
- updateReport(reportId: string, report: DSLRendererProps, timeout?: number): Promise<{
2194
+ updateReport(options: UpdateReportOptions, timeout?: number): Promise<{
1757
2195
  success: boolean;
1758
2196
  error?: string;
1759
2197
  message?: string;
2198
+ id?: number;
1760
2199
  reportId?: string;
1761
- report?: DSLRendererProps;
2200
+ report?: DSLRendererProps$1;
1762
2201
  }>;
1763
2202
  /**
1764
2203
  * Delete a report
1765
2204
  * Delegates to reports service
1766
2205
  */
1767
- deleteReport(reportId: string, timeout?: number): Promise<{
2206
+ deleteReport(id: number, timeout?: number): Promise<{
1768
2207
  success: boolean;
1769
2208
  error?: string;
1770
2209
  message?: string;
1771
- reportId?: string;
2210
+ id?: number;
1772
2211
  }>;
1773
2212
  /**
1774
2213
  * Get all reports
@@ -1785,11 +2224,91 @@ declare class SuperatomClient {
1785
2224
  * Get a specific report by ID
1786
2225
  * Delegates to reports service
1787
2226
  */
1788
- getReport(reportId: string, timeout?: number): Promise<{
2227
+ getReport(id: number, timeout?: number): Promise<{
1789
2228
  success: boolean;
1790
2229
  error?: string;
2230
+ id?: number;
1791
2231
  reportId?: string;
1792
- report?: DSLRendererProps;
2232
+ report?: DSLRendererProps$1;
2233
+ message?: string;
2234
+ }>;
2235
+ /**
2236
+ * Query reports with filters
2237
+ * Delegates to reports service
2238
+ */
2239
+ queryReports(options?: QueryReportsOptions, timeout?: number): Promise<{
2240
+ success: boolean;
2241
+ error?: string;
2242
+ reports?: Report[];
2243
+ count?: number;
2244
+ message?: string;
2245
+ }>;
2246
+ /**
2247
+ * Create a new UI
2248
+ * Delegates to uis service
2249
+ */
2250
+ createUI(options: CreateUIOptions, timeout?: number): Promise<{
2251
+ success: boolean;
2252
+ error?: string;
2253
+ message?: string;
2254
+ id?: number;
2255
+ uiId?: string;
2256
+ ui?: DSLRendererProps$2;
2257
+ }>;
2258
+ /**
2259
+ * Update an existing UI
2260
+ * Delegates to uis service
2261
+ */
2262
+ updateUI(options: UpdateUIOptions, timeout?: number): Promise<{
2263
+ success: boolean;
2264
+ error?: string;
2265
+ message?: string;
2266
+ id?: number;
2267
+ uiId?: string;
2268
+ ui?: DSLRendererProps$2;
2269
+ }>;
2270
+ /**
2271
+ * Delete a UI
2272
+ * Delegates to uis service
2273
+ */
2274
+ deleteUI(id: number, timeout?: number): Promise<{
2275
+ success: boolean;
2276
+ error?: string;
2277
+ message?: string;
2278
+ id?: number;
2279
+ }>;
2280
+ /**
2281
+ * Get all UIs
2282
+ * Delegates to uis service
2283
+ */
2284
+ getAllUIs(timeout?: number): Promise<{
2285
+ success: boolean;
2286
+ error?: string;
2287
+ uis?: UI[];
2288
+ count?: number;
2289
+ message?: string;
2290
+ }>;
2291
+ /**
2292
+ * Get a specific UI by ID
2293
+ * Delegates to uis service
2294
+ */
2295
+ getUI(id: number, timeout?: number): Promise<{
2296
+ success: boolean;
2297
+ error?: string;
2298
+ id?: number;
2299
+ uiId?: string;
2300
+ ui?: DSLRendererProps$2;
2301
+ message?: string;
2302
+ }>;
2303
+ /**
2304
+ * Query UIs with filters
2305
+ * Delegates to uis service
2306
+ */
2307
+ queryUIs(options?: QueryUIsOptions, timeout?: number): Promise<{
2308
+ success: boolean;
2309
+ error?: string;
2310
+ uis?: UI[];
2311
+ count?: number;
1793
2312
  message?: string;
1794
2313
  }>;
1795
2314
  /**