@superatomai/sdk-web 0.0.9 → 0.0.11
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.cjs +272 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +207 -1
- package/dist/index.d.ts +207 -1
- package/dist/index.js +272 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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,120 @@ 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
|
+
userId?: number;
|
|
1252
|
+
threadId?: string;
|
|
1253
|
+
uiblock: any;
|
|
1254
|
+
created_at?: string;
|
|
1255
|
+
updated_at?: string;
|
|
1256
|
+
}
|
|
1257
|
+
/**
|
|
1258
|
+
* Create a new bookmark
|
|
1259
|
+
* @param client - SuperatomClient instance
|
|
1260
|
+
* @param userId - User ID (required)
|
|
1261
|
+
* @param uiblock - UIBlock JSON data
|
|
1262
|
+
* @param threadId - Thread ID (optional)
|
|
1263
|
+
* @param timeout - Request timeout in milliseconds
|
|
1264
|
+
* @returns Server response with success status
|
|
1265
|
+
*/
|
|
1266
|
+
declare function createBookmark(client: SuperatomClient, userId: number, uiblock: any, threadId?: string, timeout?: number): Promise<{
|
|
1267
|
+
success: boolean;
|
|
1268
|
+
error?: string;
|
|
1269
|
+
message?: string;
|
|
1270
|
+
data?: BookmarkData;
|
|
1271
|
+
}>;
|
|
1272
|
+
/**
|
|
1273
|
+
* Update an existing bookmark
|
|
1274
|
+
* @param client - SuperatomClient instance
|
|
1275
|
+
* @param id - Bookmark ID to update
|
|
1276
|
+
* @param uiblock - Updated UIBlock JSON data
|
|
1277
|
+
* @param timeout - Request timeout in milliseconds
|
|
1278
|
+
* @returns Server response with success status
|
|
1279
|
+
*/
|
|
1280
|
+
declare function updateBookmark(client: SuperatomClient, id: number, uiblock: any, timeout?: number): Promise<{
|
|
1281
|
+
success: boolean;
|
|
1282
|
+
error?: string;
|
|
1283
|
+
message?: string;
|
|
1284
|
+
data?: BookmarkData;
|
|
1285
|
+
}>;
|
|
1286
|
+
/**
|
|
1287
|
+
* Delete a bookmark
|
|
1288
|
+
* @param client - SuperatomClient instance
|
|
1289
|
+
* @param id - Bookmark ID to delete
|
|
1290
|
+
* @param timeout - Request timeout in milliseconds
|
|
1291
|
+
* @returns Server response with success status
|
|
1292
|
+
*/
|
|
1293
|
+
declare function deleteBookmark(client: SuperatomClient, id: number, timeout?: number): Promise<{
|
|
1294
|
+
success: boolean;
|
|
1295
|
+
error?: string;
|
|
1296
|
+
message?: string;
|
|
1297
|
+
data?: BookmarkData;
|
|
1298
|
+
}>;
|
|
1299
|
+
/**
|
|
1300
|
+
* Get all bookmarks
|
|
1301
|
+
* @param client - SuperatomClient instance
|
|
1302
|
+
* @param timeout - Request timeout in milliseconds
|
|
1303
|
+
* @returns Server response with list of bookmarks
|
|
1304
|
+
*/
|
|
1305
|
+
declare function getAllBookmarks(client: SuperatomClient, timeout?: number): Promise<{
|
|
1306
|
+
success: boolean;
|
|
1307
|
+
error?: string;
|
|
1308
|
+
data?: BookmarkData[];
|
|
1309
|
+
count?: number;
|
|
1310
|
+
message?: string;
|
|
1311
|
+
}>;
|
|
1312
|
+
/**
|
|
1313
|
+
* Get a specific bookmark by ID
|
|
1314
|
+
* @param client - SuperatomClient instance
|
|
1315
|
+
* @param id - Bookmark ID to retrieve
|
|
1316
|
+
* @param timeout - Request timeout in milliseconds
|
|
1317
|
+
* @returns Server response with bookmark data
|
|
1318
|
+
*/
|
|
1319
|
+
declare function getBookmark(client: SuperatomClient, id: number, timeout?: number): Promise<{
|
|
1320
|
+
success: boolean;
|
|
1321
|
+
error?: string;
|
|
1322
|
+
data?: BookmarkData;
|
|
1323
|
+
message?: string;
|
|
1324
|
+
}>;
|
|
1325
|
+
/**
|
|
1326
|
+
* Get bookmarks by user ID (and optionally by thread ID)
|
|
1327
|
+
* @param client - SuperatomClient instance
|
|
1328
|
+
* @param userId - User ID to filter by
|
|
1329
|
+
* @param threadId - Optional thread ID to filter by
|
|
1330
|
+
* @param timeout - Request timeout in milliseconds
|
|
1331
|
+
* @returns Server response with list of bookmarks
|
|
1332
|
+
*/
|
|
1333
|
+
declare function getBookmarksByUser(client: SuperatomClient, userId: number, threadId?: string, timeout?: number): Promise<{
|
|
1334
|
+
success: boolean;
|
|
1335
|
+
error?: string;
|
|
1336
|
+
data?: BookmarkData[];
|
|
1337
|
+
count?: number;
|
|
1338
|
+
message?: string;
|
|
1339
|
+
}>;
|
|
1340
|
+
/**
|
|
1341
|
+
* Get bookmarks by thread ID
|
|
1342
|
+
* @param client - SuperatomClient instance
|
|
1343
|
+
* @param threadId - Thread ID to filter by
|
|
1344
|
+
* @param timeout - Request timeout in milliseconds
|
|
1345
|
+
* @returns Server response with list of bookmarks
|
|
1346
|
+
*/
|
|
1347
|
+
declare function getBookmarksByThread(client: SuperatomClient, threadId: string, timeout?: number): Promise<{
|
|
1348
|
+
success: boolean;
|
|
1349
|
+
error?: string;
|
|
1350
|
+
data?: BookmarkData[];
|
|
1351
|
+
count?: number;
|
|
1352
|
+
message?: string;
|
|
1353
|
+
}>;
|
|
1354
|
+
|
|
1230
1355
|
declare function getActions(client: SuperatomClient, options: {
|
|
1231
1356
|
SA_RUNTIME?: Record<string, unknown>;
|
|
1232
1357
|
timeout?: number;
|
|
@@ -1243,6 +1368,7 @@ declare function getActions(client: SuperatomClient, options: {
|
|
|
1243
1368
|
|
|
1244
1369
|
type index_Binding = Binding;
|
|
1245
1370
|
declare const index_BindingSchema: typeof BindingSchema;
|
|
1371
|
+
type index_Bookmark = Bookmark;
|
|
1246
1372
|
type index_Dashboard = Dashboard;
|
|
1247
1373
|
type index_Expression = Expression;
|
|
1248
1374
|
declare const index_ExpressionSchema: typeof ExpressionSchema;
|
|
@@ -1256,16 +1382,22 @@ declare const index_UIComponentSchema: typeof UIComponentSchema;
|
|
|
1256
1382
|
type index_UIElement = UIElement;
|
|
1257
1383
|
declare const index_UIElementSchema: typeof UIElementSchema;
|
|
1258
1384
|
type index_User = User;
|
|
1385
|
+
declare const index_createBookmark: typeof createBookmark;
|
|
1259
1386
|
declare const index_createDashboard: typeof createDashboard;
|
|
1260
1387
|
declare const index_createReport: typeof createReport;
|
|
1261
1388
|
declare const index_createUser: typeof createUser;
|
|
1389
|
+
declare const index_deleteBookmark: typeof deleteBookmark;
|
|
1262
1390
|
declare const index_deleteDashboard: typeof deleteDashboard;
|
|
1263
1391
|
declare const index_deleteReport: typeof deleteReport;
|
|
1264
1392
|
declare const index_deleteUser: typeof deleteUser;
|
|
1265
1393
|
declare const index_getActions: typeof getActions;
|
|
1394
|
+
declare const index_getAllBookmarks: typeof getAllBookmarks;
|
|
1266
1395
|
declare const index_getAllDashboards: typeof getAllDashboards;
|
|
1267
1396
|
declare const index_getAllReports: typeof getAllReports;
|
|
1268
1397
|
declare const index_getAllUsers: typeof getAllUsers;
|
|
1398
|
+
declare const index_getBookmark: typeof getBookmark;
|
|
1399
|
+
declare const index_getBookmarksByThread: typeof getBookmarksByThread;
|
|
1400
|
+
declare const index_getBookmarksByUser: typeof getBookmarksByUser;
|
|
1269
1401
|
declare const index_getComponentSuggestions: typeof getComponentSuggestions;
|
|
1270
1402
|
declare const index_getDashboard: typeof getDashboard;
|
|
1271
1403
|
declare const index_getReport: typeof getReport;
|
|
@@ -1277,11 +1409,12 @@ declare const index_sendAuthVerifyRequest: typeof sendAuthVerifyRequest;
|
|
|
1277
1409
|
declare const index_sendComponents: typeof sendComponents;
|
|
1278
1410
|
declare const index_sendUserPromptRequest: typeof sendUserPromptRequest;
|
|
1279
1411
|
declare const index_sendUserPromptSuggestionsRequest: typeof sendUserPromptSuggestionsRequest;
|
|
1412
|
+
declare const index_updateBookmark: typeof updateBookmark;
|
|
1280
1413
|
declare const index_updateDashboard: typeof updateDashboard;
|
|
1281
1414
|
declare const index_updateReport: typeof updateReport;
|
|
1282
1415
|
declare const index_updateUser: typeof updateUser;
|
|
1283
1416
|
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 };
|
|
1417
|
+
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_getBookmarksByThread as getBookmarksByThread, index_getBookmarksByUser as getBookmarksByUser, 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
1418
|
}
|
|
1286
1419
|
|
|
1287
1420
|
type MessageHandler = (message: Message) => void;
|
|
@@ -1589,6 +1722,79 @@ declare class SuperatomClient {
|
|
|
1589
1722
|
dashboard?: DSLRendererProps$1;
|
|
1590
1723
|
message?: string;
|
|
1591
1724
|
}>;
|
|
1725
|
+
/**
|
|
1726
|
+
* Create a new bookmark
|
|
1727
|
+
* Delegates to bookmarks service
|
|
1728
|
+
*/
|
|
1729
|
+
createBookmark(userId: number, uiblock: any, threadId?: string, timeout?: number): Promise<{
|
|
1730
|
+
success: boolean;
|
|
1731
|
+
error?: string;
|
|
1732
|
+
message?: string;
|
|
1733
|
+
data?: Bookmark;
|
|
1734
|
+
}>;
|
|
1735
|
+
/**
|
|
1736
|
+
* Update an existing bookmark
|
|
1737
|
+
* Delegates to bookmarks service
|
|
1738
|
+
*/
|
|
1739
|
+
updateBookmark(id: number, uiblock: any, timeout?: number): Promise<{
|
|
1740
|
+
success: boolean;
|
|
1741
|
+
error?: string;
|
|
1742
|
+
message?: string;
|
|
1743
|
+
data?: Bookmark;
|
|
1744
|
+
}>;
|
|
1745
|
+
/**
|
|
1746
|
+
* Delete a bookmark
|
|
1747
|
+
* Delegates to bookmarks service
|
|
1748
|
+
*/
|
|
1749
|
+
deleteBookmark(id: number, timeout?: number): Promise<{
|
|
1750
|
+
success: boolean;
|
|
1751
|
+
error?: string;
|
|
1752
|
+
message?: string;
|
|
1753
|
+
data?: Bookmark;
|
|
1754
|
+
}>;
|
|
1755
|
+
/**
|
|
1756
|
+
* Get all bookmarks
|
|
1757
|
+
* Delegates to bookmarks service
|
|
1758
|
+
*/
|
|
1759
|
+
getAllBookmarks(timeout?: number): Promise<{
|
|
1760
|
+
success: boolean;
|
|
1761
|
+
error?: string;
|
|
1762
|
+
data?: Bookmark[];
|
|
1763
|
+
count?: number;
|
|
1764
|
+
message?: string;
|
|
1765
|
+
}>;
|
|
1766
|
+
/**
|
|
1767
|
+
* Get a specific bookmark by ID
|
|
1768
|
+
* Delegates to bookmarks service
|
|
1769
|
+
*/
|
|
1770
|
+
getBookmark(id: number, timeout?: number): Promise<{
|
|
1771
|
+
success: boolean;
|
|
1772
|
+
error?: string;
|
|
1773
|
+
data?: Bookmark;
|
|
1774
|
+
message?: string;
|
|
1775
|
+
}>;
|
|
1776
|
+
/**
|
|
1777
|
+
* Get bookmarks by user ID (and optionally by thread ID)
|
|
1778
|
+
* Delegates to bookmarks service
|
|
1779
|
+
*/
|
|
1780
|
+
getBookmarksByUser(userId: number, threadId?: string, timeout?: number): Promise<{
|
|
1781
|
+
success: boolean;
|
|
1782
|
+
error?: string;
|
|
1783
|
+
data?: Bookmark[];
|
|
1784
|
+
count?: number;
|
|
1785
|
+
message?: string;
|
|
1786
|
+
}>;
|
|
1787
|
+
/**
|
|
1788
|
+
* Get bookmarks by thread ID
|
|
1789
|
+
* Delegates to bookmarks service
|
|
1790
|
+
*/
|
|
1791
|
+
getBookmarksByThread(threadId: string, timeout?: number): Promise<{
|
|
1792
|
+
success: boolean;
|
|
1793
|
+
error?: string;
|
|
1794
|
+
data?: Bookmark[];
|
|
1795
|
+
count?: number;
|
|
1796
|
+
message?: string;
|
|
1797
|
+
}>;
|
|
1592
1798
|
/**
|
|
1593
1799
|
* Create a new report
|
|
1594
1800
|
* 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,120 @@ 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
|
+
userId?: number;
|
|
1252
|
+
threadId?: string;
|
|
1253
|
+
uiblock: any;
|
|
1254
|
+
created_at?: string;
|
|
1255
|
+
updated_at?: string;
|
|
1256
|
+
}
|
|
1257
|
+
/**
|
|
1258
|
+
* Create a new bookmark
|
|
1259
|
+
* @param client - SuperatomClient instance
|
|
1260
|
+
* @param userId - User ID (required)
|
|
1261
|
+
* @param uiblock - UIBlock JSON data
|
|
1262
|
+
* @param threadId - Thread ID (optional)
|
|
1263
|
+
* @param timeout - Request timeout in milliseconds
|
|
1264
|
+
* @returns Server response with success status
|
|
1265
|
+
*/
|
|
1266
|
+
declare function createBookmark(client: SuperatomClient, userId: number, uiblock: any, threadId?: string, timeout?: number): Promise<{
|
|
1267
|
+
success: boolean;
|
|
1268
|
+
error?: string;
|
|
1269
|
+
message?: string;
|
|
1270
|
+
data?: BookmarkData;
|
|
1271
|
+
}>;
|
|
1272
|
+
/**
|
|
1273
|
+
* Update an existing bookmark
|
|
1274
|
+
* @param client - SuperatomClient instance
|
|
1275
|
+
* @param id - Bookmark ID to update
|
|
1276
|
+
* @param uiblock - Updated UIBlock JSON data
|
|
1277
|
+
* @param timeout - Request timeout in milliseconds
|
|
1278
|
+
* @returns Server response with success status
|
|
1279
|
+
*/
|
|
1280
|
+
declare function updateBookmark(client: SuperatomClient, id: number, uiblock: any, timeout?: number): Promise<{
|
|
1281
|
+
success: boolean;
|
|
1282
|
+
error?: string;
|
|
1283
|
+
message?: string;
|
|
1284
|
+
data?: BookmarkData;
|
|
1285
|
+
}>;
|
|
1286
|
+
/**
|
|
1287
|
+
* Delete a bookmark
|
|
1288
|
+
* @param client - SuperatomClient instance
|
|
1289
|
+
* @param id - Bookmark ID to delete
|
|
1290
|
+
* @param timeout - Request timeout in milliseconds
|
|
1291
|
+
* @returns Server response with success status
|
|
1292
|
+
*/
|
|
1293
|
+
declare function deleteBookmark(client: SuperatomClient, id: number, timeout?: number): Promise<{
|
|
1294
|
+
success: boolean;
|
|
1295
|
+
error?: string;
|
|
1296
|
+
message?: string;
|
|
1297
|
+
data?: BookmarkData;
|
|
1298
|
+
}>;
|
|
1299
|
+
/**
|
|
1300
|
+
* Get all bookmarks
|
|
1301
|
+
* @param client - SuperatomClient instance
|
|
1302
|
+
* @param timeout - Request timeout in milliseconds
|
|
1303
|
+
* @returns Server response with list of bookmarks
|
|
1304
|
+
*/
|
|
1305
|
+
declare function getAllBookmarks(client: SuperatomClient, timeout?: number): Promise<{
|
|
1306
|
+
success: boolean;
|
|
1307
|
+
error?: string;
|
|
1308
|
+
data?: BookmarkData[];
|
|
1309
|
+
count?: number;
|
|
1310
|
+
message?: string;
|
|
1311
|
+
}>;
|
|
1312
|
+
/**
|
|
1313
|
+
* Get a specific bookmark by ID
|
|
1314
|
+
* @param client - SuperatomClient instance
|
|
1315
|
+
* @param id - Bookmark ID to retrieve
|
|
1316
|
+
* @param timeout - Request timeout in milliseconds
|
|
1317
|
+
* @returns Server response with bookmark data
|
|
1318
|
+
*/
|
|
1319
|
+
declare function getBookmark(client: SuperatomClient, id: number, timeout?: number): Promise<{
|
|
1320
|
+
success: boolean;
|
|
1321
|
+
error?: string;
|
|
1322
|
+
data?: BookmarkData;
|
|
1323
|
+
message?: string;
|
|
1324
|
+
}>;
|
|
1325
|
+
/**
|
|
1326
|
+
* Get bookmarks by user ID (and optionally by thread ID)
|
|
1327
|
+
* @param client - SuperatomClient instance
|
|
1328
|
+
* @param userId - User ID to filter by
|
|
1329
|
+
* @param threadId - Optional thread ID to filter by
|
|
1330
|
+
* @param timeout - Request timeout in milliseconds
|
|
1331
|
+
* @returns Server response with list of bookmarks
|
|
1332
|
+
*/
|
|
1333
|
+
declare function getBookmarksByUser(client: SuperatomClient, userId: number, threadId?: string, timeout?: number): Promise<{
|
|
1334
|
+
success: boolean;
|
|
1335
|
+
error?: string;
|
|
1336
|
+
data?: BookmarkData[];
|
|
1337
|
+
count?: number;
|
|
1338
|
+
message?: string;
|
|
1339
|
+
}>;
|
|
1340
|
+
/**
|
|
1341
|
+
* Get bookmarks by thread ID
|
|
1342
|
+
* @param client - SuperatomClient instance
|
|
1343
|
+
* @param threadId - Thread ID to filter by
|
|
1344
|
+
* @param timeout - Request timeout in milliseconds
|
|
1345
|
+
* @returns Server response with list of bookmarks
|
|
1346
|
+
*/
|
|
1347
|
+
declare function getBookmarksByThread(client: SuperatomClient, threadId: string, timeout?: number): Promise<{
|
|
1348
|
+
success: boolean;
|
|
1349
|
+
error?: string;
|
|
1350
|
+
data?: BookmarkData[];
|
|
1351
|
+
count?: number;
|
|
1352
|
+
message?: string;
|
|
1353
|
+
}>;
|
|
1354
|
+
|
|
1230
1355
|
declare function getActions(client: SuperatomClient, options: {
|
|
1231
1356
|
SA_RUNTIME?: Record<string, unknown>;
|
|
1232
1357
|
timeout?: number;
|
|
@@ -1243,6 +1368,7 @@ declare function getActions(client: SuperatomClient, options: {
|
|
|
1243
1368
|
|
|
1244
1369
|
type index_Binding = Binding;
|
|
1245
1370
|
declare const index_BindingSchema: typeof BindingSchema;
|
|
1371
|
+
type index_Bookmark = Bookmark;
|
|
1246
1372
|
type index_Dashboard = Dashboard;
|
|
1247
1373
|
type index_Expression = Expression;
|
|
1248
1374
|
declare const index_ExpressionSchema: typeof ExpressionSchema;
|
|
@@ -1256,16 +1382,22 @@ declare const index_UIComponentSchema: typeof UIComponentSchema;
|
|
|
1256
1382
|
type index_UIElement = UIElement;
|
|
1257
1383
|
declare const index_UIElementSchema: typeof UIElementSchema;
|
|
1258
1384
|
type index_User = User;
|
|
1385
|
+
declare const index_createBookmark: typeof createBookmark;
|
|
1259
1386
|
declare const index_createDashboard: typeof createDashboard;
|
|
1260
1387
|
declare const index_createReport: typeof createReport;
|
|
1261
1388
|
declare const index_createUser: typeof createUser;
|
|
1389
|
+
declare const index_deleteBookmark: typeof deleteBookmark;
|
|
1262
1390
|
declare const index_deleteDashboard: typeof deleteDashboard;
|
|
1263
1391
|
declare const index_deleteReport: typeof deleteReport;
|
|
1264
1392
|
declare const index_deleteUser: typeof deleteUser;
|
|
1265
1393
|
declare const index_getActions: typeof getActions;
|
|
1394
|
+
declare const index_getAllBookmarks: typeof getAllBookmarks;
|
|
1266
1395
|
declare const index_getAllDashboards: typeof getAllDashboards;
|
|
1267
1396
|
declare const index_getAllReports: typeof getAllReports;
|
|
1268
1397
|
declare const index_getAllUsers: typeof getAllUsers;
|
|
1398
|
+
declare const index_getBookmark: typeof getBookmark;
|
|
1399
|
+
declare const index_getBookmarksByThread: typeof getBookmarksByThread;
|
|
1400
|
+
declare const index_getBookmarksByUser: typeof getBookmarksByUser;
|
|
1269
1401
|
declare const index_getComponentSuggestions: typeof getComponentSuggestions;
|
|
1270
1402
|
declare const index_getDashboard: typeof getDashboard;
|
|
1271
1403
|
declare const index_getReport: typeof getReport;
|
|
@@ -1277,11 +1409,12 @@ declare const index_sendAuthVerifyRequest: typeof sendAuthVerifyRequest;
|
|
|
1277
1409
|
declare const index_sendComponents: typeof sendComponents;
|
|
1278
1410
|
declare const index_sendUserPromptRequest: typeof sendUserPromptRequest;
|
|
1279
1411
|
declare const index_sendUserPromptSuggestionsRequest: typeof sendUserPromptSuggestionsRequest;
|
|
1412
|
+
declare const index_updateBookmark: typeof updateBookmark;
|
|
1280
1413
|
declare const index_updateDashboard: typeof updateDashboard;
|
|
1281
1414
|
declare const index_updateReport: typeof updateReport;
|
|
1282
1415
|
declare const index_updateUser: typeof updateUser;
|
|
1283
1416
|
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 };
|
|
1417
|
+
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_getBookmarksByThread as getBookmarksByThread, index_getBookmarksByUser as getBookmarksByUser, 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
1418
|
}
|
|
1286
1419
|
|
|
1287
1420
|
type MessageHandler = (message: Message) => void;
|
|
@@ -1589,6 +1722,79 @@ declare class SuperatomClient {
|
|
|
1589
1722
|
dashboard?: DSLRendererProps$1;
|
|
1590
1723
|
message?: string;
|
|
1591
1724
|
}>;
|
|
1725
|
+
/**
|
|
1726
|
+
* Create a new bookmark
|
|
1727
|
+
* Delegates to bookmarks service
|
|
1728
|
+
*/
|
|
1729
|
+
createBookmark(userId: number, uiblock: any, threadId?: string, timeout?: number): Promise<{
|
|
1730
|
+
success: boolean;
|
|
1731
|
+
error?: string;
|
|
1732
|
+
message?: string;
|
|
1733
|
+
data?: Bookmark;
|
|
1734
|
+
}>;
|
|
1735
|
+
/**
|
|
1736
|
+
* Update an existing bookmark
|
|
1737
|
+
* Delegates to bookmarks service
|
|
1738
|
+
*/
|
|
1739
|
+
updateBookmark(id: number, uiblock: any, timeout?: number): Promise<{
|
|
1740
|
+
success: boolean;
|
|
1741
|
+
error?: string;
|
|
1742
|
+
message?: string;
|
|
1743
|
+
data?: Bookmark;
|
|
1744
|
+
}>;
|
|
1745
|
+
/**
|
|
1746
|
+
* Delete a bookmark
|
|
1747
|
+
* Delegates to bookmarks service
|
|
1748
|
+
*/
|
|
1749
|
+
deleteBookmark(id: number, timeout?: number): Promise<{
|
|
1750
|
+
success: boolean;
|
|
1751
|
+
error?: string;
|
|
1752
|
+
message?: string;
|
|
1753
|
+
data?: Bookmark;
|
|
1754
|
+
}>;
|
|
1755
|
+
/**
|
|
1756
|
+
* Get all bookmarks
|
|
1757
|
+
* Delegates to bookmarks service
|
|
1758
|
+
*/
|
|
1759
|
+
getAllBookmarks(timeout?: number): Promise<{
|
|
1760
|
+
success: boolean;
|
|
1761
|
+
error?: string;
|
|
1762
|
+
data?: Bookmark[];
|
|
1763
|
+
count?: number;
|
|
1764
|
+
message?: string;
|
|
1765
|
+
}>;
|
|
1766
|
+
/**
|
|
1767
|
+
* Get a specific bookmark by ID
|
|
1768
|
+
* Delegates to bookmarks service
|
|
1769
|
+
*/
|
|
1770
|
+
getBookmark(id: number, timeout?: number): Promise<{
|
|
1771
|
+
success: boolean;
|
|
1772
|
+
error?: string;
|
|
1773
|
+
data?: Bookmark;
|
|
1774
|
+
message?: string;
|
|
1775
|
+
}>;
|
|
1776
|
+
/**
|
|
1777
|
+
* Get bookmarks by user ID (and optionally by thread ID)
|
|
1778
|
+
* Delegates to bookmarks service
|
|
1779
|
+
*/
|
|
1780
|
+
getBookmarksByUser(userId: number, threadId?: string, timeout?: number): Promise<{
|
|
1781
|
+
success: boolean;
|
|
1782
|
+
error?: string;
|
|
1783
|
+
data?: Bookmark[];
|
|
1784
|
+
count?: number;
|
|
1785
|
+
message?: string;
|
|
1786
|
+
}>;
|
|
1787
|
+
/**
|
|
1788
|
+
* Get bookmarks by thread ID
|
|
1789
|
+
* Delegates to bookmarks service
|
|
1790
|
+
*/
|
|
1791
|
+
getBookmarksByThread(threadId: string, timeout?: number): Promise<{
|
|
1792
|
+
success: boolean;
|
|
1793
|
+
error?: string;
|
|
1794
|
+
data?: Bookmark[];
|
|
1795
|
+
count?: number;
|
|
1796
|
+
message?: string;
|
|
1797
|
+
}>;
|
|
1592
1798
|
/**
|
|
1593
1799
|
* Create a new report
|
|
1594
1800
|
* Delegates to reports service
|