@superatomai/sdk-web 0.0.9 → 0.0.10

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
@@ -826,6 +826,17 @@ declare const ComponentsSendMessageSchema: z.ZodObject<{
826
826
  }, z.core.$strip>;
827
827
  }, z.core.$strip>;
828
828
  type ComponentsSendMessage = z.infer<typeof ComponentsSendMessageSchema>;
829
+ /**
830
+ * Bookmark data schema
831
+ * Synced with sdk-nodejs: BookmarkDataSchema
832
+ */
833
+ declare const BookmarkDataSchema: z.ZodObject<{
834
+ id: z.ZodOptional<z.ZodNumber>;
835
+ uiblock: z.ZodAny;
836
+ created_at: z.ZodOptional<z.ZodString>;
837
+ updated_at: z.ZodOptional<z.ZodString>;
838
+ }, z.core.$strip>;
839
+ type BookmarkData = z.infer<typeof BookmarkDataSchema>;
829
840
  /**
830
841
  * Client configuration schema
831
842
  */
@@ -1227,6 +1238,87 @@ declare function getReport(client: SuperatomClient, reportId: string, timeout?:
1227
1238
  message?: string;
1228
1239
  }>;
1229
1240
 
1241
+ /**
1242
+ * Bookmarks Service
1243
+ * Handles BOOKMARKS message for bookmark CRUD operations
1244
+ */
1245
+
1246
+ /**
1247
+ * Bookmark interface for response data
1248
+ */
1249
+ interface Bookmark {
1250
+ id?: number;
1251
+ uiblock: any;
1252
+ created_at?: string;
1253
+ updated_at?: string;
1254
+ }
1255
+ /**
1256
+ * Create a new bookmark
1257
+ * @param client - SuperatomClient instance
1258
+ * @param uiblock - UIBlock JSON data
1259
+ * @param timeout - Request timeout in milliseconds
1260
+ * @returns Server response with success status
1261
+ */
1262
+ declare function createBookmark(client: SuperatomClient, uiblock: any, timeout?: number): Promise<{
1263
+ success: boolean;
1264
+ error?: string;
1265
+ message?: string;
1266
+ data?: BookmarkData;
1267
+ }>;
1268
+ /**
1269
+ * Update an existing bookmark
1270
+ * @param client - SuperatomClient instance
1271
+ * @param id - Bookmark ID to update
1272
+ * @param uiblock - Updated UIBlock JSON data
1273
+ * @param timeout - Request timeout in milliseconds
1274
+ * @returns Server response with success status
1275
+ */
1276
+ declare function updateBookmark(client: SuperatomClient, id: number, uiblock: any, timeout?: number): Promise<{
1277
+ success: boolean;
1278
+ error?: string;
1279
+ message?: string;
1280
+ data?: BookmarkData;
1281
+ }>;
1282
+ /**
1283
+ * Delete a bookmark
1284
+ * @param client - SuperatomClient instance
1285
+ * @param id - Bookmark ID to delete
1286
+ * @param timeout - Request timeout in milliseconds
1287
+ * @returns Server response with success status
1288
+ */
1289
+ declare function deleteBookmark(client: SuperatomClient, id: number, timeout?: number): Promise<{
1290
+ success: boolean;
1291
+ error?: string;
1292
+ message?: string;
1293
+ data?: BookmarkData;
1294
+ }>;
1295
+ /**
1296
+ * Get all bookmarks
1297
+ * @param client - SuperatomClient instance
1298
+ * @param timeout - Request timeout in milliseconds
1299
+ * @returns Server response with list of bookmarks
1300
+ */
1301
+ declare function getAllBookmarks(client: SuperatomClient, timeout?: number): Promise<{
1302
+ success: boolean;
1303
+ error?: string;
1304
+ data?: BookmarkData[];
1305
+ count?: number;
1306
+ message?: string;
1307
+ }>;
1308
+ /**
1309
+ * Get a specific bookmark by ID
1310
+ * @param client - SuperatomClient instance
1311
+ * @param id - Bookmark ID to retrieve
1312
+ * @param timeout - Request timeout in milliseconds
1313
+ * @returns Server response with bookmark data
1314
+ */
1315
+ declare function getBookmark(client: SuperatomClient, id: number, timeout?: number): Promise<{
1316
+ success: boolean;
1317
+ error?: string;
1318
+ data?: BookmarkData;
1319
+ message?: string;
1320
+ }>;
1321
+
1230
1322
  declare function getActions(client: SuperatomClient, options: {
1231
1323
  SA_RUNTIME?: Record<string, unknown>;
1232
1324
  timeout?: number;
@@ -1243,6 +1335,7 @@ declare function getActions(client: SuperatomClient, options: {
1243
1335
 
1244
1336
  type index_Binding = Binding;
1245
1337
  declare const index_BindingSchema: typeof BindingSchema;
1338
+ type index_Bookmark = Bookmark;
1246
1339
  type index_Dashboard = Dashboard;
1247
1340
  type index_Expression = Expression;
1248
1341
  declare const index_ExpressionSchema: typeof ExpressionSchema;
@@ -1256,16 +1349,20 @@ declare const index_UIComponentSchema: typeof UIComponentSchema;
1256
1349
  type index_UIElement = UIElement;
1257
1350
  declare const index_UIElementSchema: typeof UIElementSchema;
1258
1351
  type index_User = User;
1352
+ declare const index_createBookmark: typeof createBookmark;
1259
1353
  declare const index_createDashboard: typeof createDashboard;
1260
1354
  declare const index_createReport: typeof createReport;
1261
1355
  declare const index_createUser: typeof createUser;
1356
+ declare const index_deleteBookmark: typeof deleteBookmark;
1262
1357
  declare const index_deleteDashboard: typeof deleteDashboard;
1263
1358
  declare const index_deleteReport: typeof deleteReport;
1264
1359
  declare const index_deleteUser: typeof deleteUser;
1265
1360
  declare const index_getActions: typeof getActions;
1361
+ declare const index_getAllBookmarks: typeof getAllBookmarks;
1266
1362
  declare const index_getAllDashboards: typeof getAllDashboards;
1267
1363
  declare const index_getAllReports: typeof getAllReports;
1268
1364
  declare const index_getAllUsers: typeof getAllUsers;
1365
+ declare const index_getBookmark: typeof getBookmark;
1269
1366
  declare const index_getComponentSuggestions: typeof getComponentSuggestions;
1270
1367
  declare const index_getDashboard: typeof getDashboard;
1271
1368
  declare const index_getReport: typeof getReport;
@@ -1277,11 +1374,12 @@ declare const index_sendAuthVerifyRequest: typeof sendAuthVerifyRequest;
1277
1374
  declare const index_sendComponents: typeof sendComponents;
1278
1375
  declare const index_sendUserPromptRequest: typeof sendUserPromptRequest;
1279
1376
  declare const index_sendUserPromptSuggestionsRequest: typeof sendUserPromptSuggestionsRequest;
1377
+ declare const index_updateBookmark: typeof updateBookmark;
1280
1378
  declare const index_updateDashboard: typeof updateDashboard;
1281
1379
  declare const index_updateReport: typeof updateReport;
1282
1380
  declare const index_updateUser: typeof updateUser;
1283
1381
  declare namespace index {
1284
- export { type index_Binding as Binding, index_BindingSchema as BindingSchema, 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_createDashboard as createDashboard, index_createReport as createReport, index_createUser as createUser, index_deleteDashboard as deleteDashboard, index_deleteReport as deleteReport, index_deleteUser as deleteUser, index_getActions as getActions, index_getAllDashboards as getAllDashboards, index_getAllReports as getAllReports, index_getAllUsers as getAllUsers, 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_updateDashboard as updateDashboard, index_updateReport as updateReport, index_updateUser as updateUser };
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 };
1285
1383
  }
1286
1384
 
1287
1385
  type MessageHandler = (message: Message) => void;
@@ -1589,6 +1687,57 @@ declare class SuperatomClient {
1589
1687
  dashboard?: DSLRendererProps$1;
1590
1688
  message?: string;
1591
1689
  }>;
1690
+ /**
1691
+ * Create a new bookmark
1692
+ * Delegates to bookmarks service
1693
+ */
1694
+ createBookmark(uiblock: any, timeout?: number): Promise<{
1695
+ success: boolean;
1696
+ error?: string;
1697
+ message?: string;
1698
+ data?: Bookmark;
1699
+ }>;
1700
+ /**
1701
+ * Update an existing bookmark
1702
+ * Delegates to bookmarks service
1703
+ */
1704
+ updateBookmark(id: number, uiblock: any, timeout?: number): Promise<{
1705
+ success: boolean;
1706
+ error?: string;
1707
+ message?: string;
1708
+ data?: Bookmark;
1709
+ }>;
1710
+ /**
1711
+ * Delete a bookmark
1712
+ * Delegates to bookmarks service
1713
+ */
1714
+ deleteBookmark(id: number, timeout?: number): Promise<{
1715
+ success: boolean;
1716
+ error?: string;
1717
+ message?: string;
1718
+ data?: Bookmark;
1719
+ }>;
1720
+ /**
1721
+ * Get all bookmarks
1722
+ * Delegates to bookmarks service
1723
+ */
1724
+ getAllBookmarks(timeout?: number): Promise<{
1725
+ success: boolean;
1726
+ error?: string;
1727
+ data?: Bookmark[];
1728
+ count?: number;
1729
+ message?: string;
1730
+ }>;
1731
+ /**
1732
+ * Get a specific bookmark by ID
1733
+ * Delegates to bookmarks service
1734
+ */
1735
+ getBookmark(id: number, timeout?: number): Promise<{
1736
+ success: boolean;
1737
+ error?: string;
1738
+ data?: Bookmark;
1739
+ message?: string;
1740
+ }>;
1592
1741
  /**
1593
1742
  * Create a new report
1594
1743
  * Delegates to reports service
package/dist/index.d.ts CHANGED
@@ -826,6 +826,17 @@ declare const ComponentsSendMessageSchema: z.ZodObject<{
826
826
  }, z.core.$strip>;
827
827
  }, z.core.$strip>;
828
828
  type ComponentsSendMessage = z.infer<typeof ComponentsSendMessageSchema>;
829
+ /**
830
+ * Bookmark data schema
831
+ * Synced with sdk-nodejs: BookmarkDataSchema
832
+ */
833
+ declare const BookmarkDataSchema: z.ZodObject<{
834
+ id: z.ZodOptional<z.ZodNumber>;
835
+ uiblock: z.ZodAny;
836
+ created_at: z.ZodOptional<z.ZodString>;
837
+ updated_at: z.ZodOptional<z.ZodString>;
838
+ }, z.core.$strip>;
839
+ type BookmarkData = z.infer<typeof BookmarkDataSchema>;
829
840
  /**
830
841
  * Client configuration schema
831
842
  */
@@ -1227,6 +1238,87 @@ declare function getReport(client: SuperatomClient, reportId: string, timeout?:
1227
1238
  message?: string;
1228
1239
  }>;
1229
1240
 
1241
+ /**
1242
+ * Bookmarks Service
1243
+ * Handles BOOKMARKS message for bookmark CRUD operations
1244
+ */
1245
+
1246
+ /**
1247
+ * Bookmark interface for response data
1248
+ */
1249
+ interface Bookmark {
1250
+ id?: number;
1251
+ uiblock: any;
1252
+ created_at?: string;
1253
+ updated_at?: string;
1254
+ }
1255
+ /**
1256
+ * Create a new bookmark
1257
+ * @param client - SuperatomClient instance
1258
+ * @param uiblock - UIBlock JSON data
1259
+ * @param timeout - Request timeout in milliseconds
1260
+ * @returns Server response with success status
1261
+ */
1262
+ declare function createBookmark(client: SuperatomClient, uiblock: any, timeout?: number): Promise<{
1263
+ success: boolean;
1264
+ error?: string;
1265
+ message?: string;
1266
+ data?: BookmarkData;
1267
+ }>;
1268
+ /**
1269
+ * Update an existing bookmark
1270
+ * @param client - SuperatomClient instance
1271
+ * @param id - Bookmark ID to update
1272
+ * @param uiblock - Updated UIBlock JSON data
1273
+ * @param timeout - Request timeout in milliseconds
1274
+ * @returns Server response with success status
1275
+ */
1276
+ declare function updateBookmark(client: SuperatomClient, id: number, uiblock: any, timeout?: number): Promise<{
1277
+ success: boolean;
1278
+ error?: string;
1279
+ message?: string;
1280
+ data?: BookmarkData;
1281
+ }>;
1282
+ /**
1283
+ * Delete a bookmark
1284
+ * @param client - SuperatomClient instance
1285
+ * @param id - Bookmark ID to delete
1286
+ * @param timeout - Request timeout in milliseconds
1287
+ * @returns Server response with success status
1288
+ */
1289
+ declare function deleteBookmark(client: SuperatomClient, id: number, timeout?: number): Promise<{
1290
+ success: boolean;
1291
+ error?: string;
1292
+ message?: string;
1293
+ data?: BookmarkData;
1294
+ }>;
1295
+ /**
1296
+ * Get all bookmarks
1297
+ * @param client - SuperatomClient instance
1298
+ * @param timeout - Request timeout in milliseconds
1299
+ * @returns Server response with list of bookmarks
1300
+ */
1301
+ declare function getAllBookmarks(client: SuperatomClient, timeout?: number): Promise<{
1302
+ success: boolean;
1303
+ error?: string;
1304
+ data?: BookmarkData[];
1305
+ count?: number;
1306
+ message?: string;
1307
+ }>;
1308
+ /**
1309
+ * Get a specific bookmark by ID
1310
+ * @param client - SuperatomClient instance
1311
+ * @param id - Bookmark ID to retrieve
1312
+ * @param timeout - Request timeout in milliseconds
1313
+ * @returns Server response with bookmark data
1314
+ */
1315
+ declare function getBookmark(client: SuperatomClient, id: number, timeout?: number): Promise<{
1316
+ success: boolean;
1317
+ error?: string;
1318
+ data?: BookmarkData;
1319
+ message?: string;
1320
+ }>;
1321
+
1230
1322
  declare function getActions(client: SuperatomClient, options: {
1231
1323
  SA_RUNTIME?: Record<string, unknown>;
1232
1324
  timeout?: number;
@@ -1243,6 +1335,7 @@ declare function getActions(client: SuperatomClient, options: {
1243
1335
 
1244
1336
  type index_Binding = Binding;
1245
1337
  declare const index_BindingSchema: typeof BindingSchema;
1338
+ type index_Bookmark = Bookmark;
1246
1339
  type index_Dashboard = Dashboard;
1247
1340
  type index_Expression = Expression;
1248
1341
  declare const index_ExpressionSchema: typeof ExpressionSchema;
@@ -1256,16 +1349,20 @@ declare const index_UIComponentSchema: typeof UIComponentSchema;
1256
1349
  type index_UIElement = UIElement;
1257
1350
  declare const index_UIElementSchema: typeof UIElementSchema;
1258
1351
  type index_User = User;
1352
+ declare const index_createBookmark: typeof createBookmark;
1259
1353
  declare const index_createDashboard: typeof createDashboard;
1260
1354
  declare const index_createReport: typeof createReport;
1261
1355
  declare const index_createUser: typeof createUser;
1356
+ declare const index_deleteBookmark: typeof deleteBookmark;
1262
1357
  declare const index_deleteDashboard: typeof deleteDashboard;
1263
1358
  declare const index_deleteReport: typeof deleteReport;
1264
1359
  declare const index_deleteUser: typeof deleteUser;
1265
1360
  declare const index_getActions: typeof getActions;
1361
+ declare const index_getAllBookmarks: typeof getAllBookmarks;
1266
1362
  declare const index_getAllDashboards: typeof getAllDashboards;
1267
1363
  declare const index_getAllReports: typeof getAllReports;
1268
1364
  declare const index_getAllUsers: typeof getAllUsers;
1365
+ declare const index_getBookmark: typeof getBookmark;
1269
1366
  declare const index_getComponentSuggestions: typeof getComponentSuggestions;
1270
1367
  declare const index_getDashboard: typeof getDashboard;
1271
1368
  declare const index_getReport: typeof getReport;
@@ -1277,11 +1374,12 @@ declare const index_sendAuthVerifyRequest: typeof sendAuthVerifyRequest;
1277
1374
  declare const index_sendComponents: typeof sendComponents;
1278
1375
  declare const index_sendUserPromptRequest: typeof sendUserPromptRequest;
1279
1376
  declare const index_sendUserPromptSuggestionsRequest: typeof sendUserPromptSuggestionsRequest;
1377
+ declare const index_updateBookmark: typeof updateBookmark;
1280
1378
  declare const index_updateDashboard: typeof updateDashboard;
1281
1379
  declare const index_updateReport: typeof updateReport;
1282
1380
  declare const index_updateUser: typeof updateUser;
1283
1381
  declare namespace index {
1284
- export { type index_Binding as Binding, index_BindingSchema as BindingSchema, 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_createDashboard as createDashboard, index_createReport as createReport, index_createUser as createUser, index_deleteDashboard as deleteDashboard, index_deleteReport as deleteReport, index_deleteUser as deleteUser, index_getActions as getActions, index_getAllDashboards as getAllDashboards, index_getAllReports as getAllReports, index_getAllUsers as getAllUsers, 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_updateDashboard as updateDashboard, index_updateReport as updateReport, index_updateUser as updateUser };
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 };
1285
1383
  }
1286
1384
 
1287
1385
  type MessageHandler = (message: Message) => void;
@@ -1589,6 +1687,57 @@ declare class SuperatomClient {
1589
1687
  dashboard?: DSLRendererProps$1;
1590
1688
  message?: string;
1591
1689
  }>;
1690
+ /**
1691
+ * Create a new bookmark
1692
+ * Delegates to bookmarks service
1693
+ */
1694
+ createBookmark(uiblock: any, timeout?: number): Promise<{
1695
+ success: boolean;
1696
+ error?: string;
1697
+ message?: string;
1698
+ data?: Bookmark;
1699
+ }>;
1700
+ /**
1701
+ * Update an existing bookmark
1702
+ * Delegates to bookmarks service
1703
+ */
1704
+ updateBookmark(id: number, uiblock: any, timeout?: number): Promise<{
1705
+ success: boolean;
1706
+ error?: string;
1707
+ message?: string;
1708
+ data?: Bookmark;
1709
+ }>;
1710
+ /**
1711
+ * Delete a bookmark
1712
+ * Delegates to bookmarks service
1713
+ */
1714
+ deleteBookmark(id: number, timeout?: number): Promise<{
1715
+ success: boolean;
1716
+ error?: string;
1717
+ message?: string;
1718
+ data?: Bookmark;
1719
+ }>;
1720
+ /**
1721
+ * Get all bookmarks
1722
+ * Delegates to bookmarks service
1723
+ */
1724
+ getAllBookmarks(timeout?: number): Promise<{
1725
+ success: boolean;
1726
+ error?: string;
1727
+ data?: Bookmark[];
1728
+ count?: number;
1729
+ message?: string;
1730
+ }>;
1731
+ /**
1732
+ * Get a specific bookmark by ID
1733
+ * Delegates to bookmarks service
1734
+ */
1735
+ getBookmark(id: number, timeout?: number): Promise<{
1736
+ success: boolean;
1737
+ error?: string;
1738
+ data?: Bookmark;
1739
+ message?: string;
1740
+ }>;
1592
1741
  /**
1593
1742
  * Create a new report
1594
1743
  * Delegates to reports service
package/dist/index.js CHANGED
@@ -549,6 +549,44 @@ z.object({
549
549
  to: MessageParticipantSchema.optional(),
550
550
  payload: ReportsResponsePayloadSchema
551
551
  });
552
+ var BookmarkDataSchema = z.object({
553
+ id: z.number().optional(),
554
+ uiblock: z.any(),
555
+ // JSON object
556
+ created_at: z.string().optional(),
557
+ updated_at: z.string().optional()
558
+ });
559
+ var BookmarksRequestPayloadSchema = z.object({
560
+ operation: z.enum(["create", "update", "delete", "getAll", "getOne"]),
561
+ data: z.object({
562
+ id: z.number().optional(),
563
+ uiblock: z.any().optional()
564
+ }).optional()
565
+ });
566
+ var BookmarksRequestMessageSchema = z.object({
567
+ id: z.string(),
568
+ type: z.literal("BOOKMARKS"),
569
+ from: MessageParticipantSchema,
570
+ to: MessageParticipantSchema.optional(),
571
+ payload: BookmarksRequestPayloadSchema
572
+ });
573
+ var BookmarksResponsePayloadSchema = z.object({
574
+ success: z.boolean(),
575
+ error: z.string().optional(),
576
+ data: z.union([
577
+ BookmarkDataSchema,
578
+ z.array(BookmarkDataSchema)
579
+ ]).optional(),
580
+ count: z.number().optional(),
581
+ message: z.string().optional()
582
+ });
583
+ z.object({
584
+ id: z.string(),
585
+ type: z.literal("BOOKMARKS_RES"),
586
+ from: MessageParticipantSchema,
587
+ to: MessageParticipantSchema.optional(),
588
+ payload: BookmarksResponsePayloadSchema
589
+ });
552
590
  var ClientConfigSchema = z.object({
553
591
  userId: z.string(),
554
592
  projectId: z.string(),
@@ -571,16 +609,20 @@ __export(services_exports, {
571
609
  QuerySpecSchema: () => QuerySpecSchema,
572
610
  UIComponentSchema: () => UIComponentSchema,
573
611
  UIElementSchema: () => UIElementSchema,
612
+ createBookmark: () => createBookmark,
574
613
  createDashboard: () => createDashboard,
575
614
  createReport: () => createReport,
576
615
  createUser: () => createUser,
616
+ deleteBookmark: () => deleteBookmark,
577
617
  deleteDashboard: () => deleteDashboard,
578
618
  deleteReport: () => deleteReport,
579
619
  deleteUser: () => deleteUser,
580
620
  getActions: () => getActions,
621
+ getAllBookmarks: () => getAllBookmarks,
581
622
  getAllDashboards: () => getAllDashboards,
582
623
  getAllReports: () => getAllReports,
583
624
  getAllUsers: () => getAllUsers,
625
+ getBookmark: () => getBookmark,
584
626
  getComponentSuggestions: () => getComponentSuggestions,
585
627
  getDashboard: () => getDashboard,
586
628
  getReport: () => getReport,
@@ -592,6 +634,7 @@ __export(services_exports, {
592
634
  sendComponents: () => sendComponents,
593
635
  sendUserPromptRequest: () => sendUserPromptRequest,
594
636
  sendUserPromptSuggestionsRequest: () => sendUserPromptSuggestionsRequest,
637
+ updateBookmark: () => updateBookmark,
595
638
  updateDashboard: () => updateDashboard,
596
639
  updateReport: () => updateReport,
597
640
  updateUser: () => updateUser
@@ -1177,6 +1220,122 @@ async function getReport(client, reportId, timeout) {
1177
1220
  };
1178
1221
  }
1179
1222
 
1223
+ // src/services/bookmarks/index.ts
1224
+ async function createBookmark(client, uiblock, timeout) {
1225
+ const messageId = `bookmarks_create_${Date.now()}`;
1226
+ const message = BookmarksRequestMessageSchema.parse({
1227
+ id: messageId,
1228
+ type: "BOOKMARKS",
1229
+ from: { type: client.type },
1230
+ to: { type: "data-agent" },
1231
+ payload: {
1232
+ operation: "create",
1233
+ data: {
1234
+ uiblock
1235
+ }
1236
+ }
1237
+ });
1238
+ const response = await client.sendWithResponse(message, timeout);
1239
+ const payload = response.payload;
1240
+ return {
1241
+ success: payload.success,
1242
+ error: payload.error,
1243
+ message: payload.message,
1244
+ data: Array.isArray(payload.data) ? payload.data[0] : payload.data
1245
+ };
1246
+ }
1247
+ async function updateBookmark(client, id, uiblock, timeout) {
1248
+ const messageId = `bookmarks_update_${Date.now()}`;
1249
+ const message = BookmarksRequestMessageSchema.parse({
1250
+ id: messageId,
1251
+ type: "BOOKMARKS",
1252
+ from: { type: client.type },
1253
+ to: { type: "data-agent" },
1254
+ payload: {
1255
+ operation: "update",
1256
+ data: {
1257
+ id,
1258
+ uiblock
1259
+ }
1260
+ }
1261
+ });
1262
+ const response = await client.sendWithResponse(message, timeout);
1263
+ const payload = response.payload;
1264
+ return {
1265
+ success: payload.success,
1266
+ error: payload.error,
1267
+ message: payload.message,
1268
+ data: Array.isArray(payload.data) ? payload.data[0] : payload.data
1269
+ };
1270
+ }
1271
+ async function deleteBookmark(client, id, timeout) {
1272
+ const messageId = `bookmarks_delete_${Date.now()}`;
1273
+ const message = BookmarksRequestMessageSchema.parse({
1274
+ id: messageId,
1275
+ type: "BOOKMARKS",
1276
+ from: { type: client.type },
1277
+ to: { type: "data-agent" },
1278
+ payload: {
1279
+ operation: "delete",
1280
+ data: {
1281
+ id
1282
+ }
1283
+ }
1284
+ });
1285
+ const response = await client.sendWithResponse(message, timeout);
1286
+ const payload = response.payload;
1287
+ return {
1288
+ success: payload.success,
1289
+ error: payload.error,
1290
+ message: payload.message,
1291
+ data: Array.isArray(payload.data) ? payload.data[0] : payload.data
1292
+ };
1293
+ }
1294
+ async function getAllBookmarks(client, timeout) {
1295
+ const messageId = `bookmarks_getall_${Date.now()}`;
1296
+ const message = BookmarksRequestMessageSchema.parse({
1297
+ id: messageId,
1298
+ type: "BOOKMARKS",
1299
+ from: { type: client.type },
1300
+ to: { type: "data-agent" },
1301
+ payload: {
1302
+ operation: "getAll"
1303
+ }
1304
+ });
1305
+ const response = await client.sendWithResponse(message, timeout);
1306
+ const payload = response.payload;
1307
+ return {
1308
+ success: payload.success,
1309
+ error: payload.error,
1310
+ data: Array.isArray(payload.data) ? payload.data : payload.data ? [payload.data] : [],
1311
+ count: payload.count,
1312
+ message: payload.message
1313
+ };
1314
+ }
1315
+ async function getBookmark(client, id, timeout) {
1316
+ const messageId = `bookmarks_getone_${Date.now()}`;
1317
+ const message = BookmarksRequestMessageSchema.parse({
1318
+ id: messageId,
1319
+ type: "BOOKMARKS",
1320
+ from: { type: client.type },
1321
+ to: { type: "data-agent" },
1322
+ payload: {
1323
+ operation: "getOne",
1324
+ data: {
1325
+ id
1326
+ }
1327
+ }
1328
+ });
1329
+ const response = await client.sendWithResponse(message, timeout);
1330
+ const payload = response.payload;
1331
+ return {
1332
+ success: payload.success,
1333
+ error: payload.error,
1334
+ data: Array.isArray(payload.data) ? payload.data[0] : payload.data,
1335
+ message: payload.message
1336
+ };
1337
+ }
1338
+
1180
1339
  // src/services/actions.ts
1181
1340
  async function getActions(client, options) {
1182
1341
  const messageId = `msg_${Date.now()}_${Math.random().toString(36).substring(7)}`;
@@ -1617,6 +1776,48 @@ var SuperatomClient = class {
1617
1776
  this.log("info", "Fetching dashboard:", dashboardId);
1618
1777
  return getDashboard(this, dashboardId, timeout);
1619
1778
  }
1779
+ // ==================== Bookmark Management Methods ====================
1780
+ // These methods delegate to bookmark service for bookmark CRUD operations
1781
+ /**
1782
+ * Create a new bookmark
1783
+ * Delegates to bookmarks service
1784
+ */
1785
+ async createBookmark(uiblock, timeout) {
1786
+ this.log("info", "Creating bookmark");
1787
+ return createBookmark(this, uiblock, timeout);
1788
+ }
1789
+ /**
1790
+ * Update an existing bookmark
1791
+ * Delegates to bookmarks service
1792
+ */
1793
+ async updateBookmark(id, uiblock, timeout) {
1794
+ this.log("info", "Updating bookmark:", id);
1795
+ return updateBookmark(this, id, uiblock, timeout);
1796
+ }
1797
+ /**
1798
+ * Delete a bookmark
1799
+ * Delegates to bookmarks service
1800
+ */
1801
+ async deleteBookmark(id, timeout) {
1802
+ this.log("info", "Deleting bookmark:", id);
1803
+ return deleteBookmark(this, id, timeout);
1804
+ }
1805
+ /**
1806
+ * Get all bookmarks
1807
+ * Delegates to bookmarks service
1808
+ */
1809
+ async getAllBookmarks(timeout) {
1810
+ this.log("info", "Fetching all bookmarks");
1811
+ return getAllBookmarks(this, timeout);
1812
+ }
1813
+ /**
1814
+ * Get a specific bookmark by ID
1815
+ * Delegates to bookmarks service
1816
+ */
1817
+ async getBookmark(id, timeout) {
1818
+ this.log("info", "Fetching bookmark:", id);
1819
+ return getBookmark(this, id, timeout);
1820
+ }
1620
1821
  // ==================== Report Management Methods ====================
1621
1822
  // These methods delegate to report service for admin report CRUD operations
1622
1823
  /**