@superatomai/sdk-web 0.0.8 → 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/README.md +128 -3
- package/dist/index.cjs +231 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +164 -3
- package/dist/index.d.ts +164 -3
- package/dist/index.js +231 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -300,6 +300,10 @@ declare const UserPromptRequestPayloadSchema: z.ZodObject<{
|
|
|
300
300
|
threadId: z.ZodString;
|
|
301
301
|
uiBlockId: z.ZodString;
|
|
302
302
|
}, z.core.$strip>>;
|
|
303
|
+
responseMode: z.ZodOptional<z.ZodEnum<{
|
|
304
|
+
component: "component";
|
|
305
|
+
text: "text";
|
|
306
|
+
}>>;
|
|
303
307
|
}, z.core.$strip>;
|
|
304
308
|
type UserPromptRequestPayload = z.infer<typeof UserPromptRequestPayloadSchema>;
|
|
305
309
|
/**
|
|
@@ -323,6 +327,10 @@ declare const UserPromptRequestMessageSchema: z.ZodObject<{
|
|
|
323
327
|
threadId: z.ZodString;
|
|
324
328
|
uiBlockId: z.ZodString;
|
|
325
329
|
}, z.core.$strip>>;
|
|
330
|
+
responseMode: z.ZodOptional<z.ZodEnum<{
|
|
331
|
+
component: "component";
|
|
332
|
+
text: "text";
|
|
333
|
+
}>>;
|
|
326
334
|
}, z.core.$strip>;
|
|
327
335
|
}, z.core.$strip>;
|
|
328
336
|
type UserPromptRequestMessage = z.infer<typeof UserPromptRequestMessageSchema>;
|
|
@@ -818,6 +826,17 @@ declare const ComponentsSendMessageSchema: z.ZodObject<{
|
|
|
818
826
|
}, z.core.$strip>;
|
|
819
827
|
}, z.core.$strip>;
|
|
820
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>;
|
|
821
840
|
/**
|
|
822
841
|
* Client configuration schema
|
|
823
842
|
*/
|
|
@@ -868,10 +887,12 @@ declare function sendAuthVerifyRequest(client: SuperatomClient, token: string, t
|
|
|
868
887
|
* @param prompt - User's prompt text
|
|
869
888
|
* @param threadId - Thread ID for conversation context
|
|
870
889
|
* @param uiBlockId - UI block ID for context
|
|
890
|
+
* @param responseMode - 'component' for component response (default), 'text' for text streaming
|
|
891
|
+
* @param onStream - Optional callback for streaming text chunks (only for text mode)
|
|
871
892
|
* @param timeout - Request timeout in milliseconds
|
|
872
893
|
* @returns Server response message
|
|
873
894
|
*/
|
|
874
|
-
declare function sendUserPromptRequest(client: SuperatomClient, prompt: string, threadId: string, uiBlockId: string, timeout?: number): Promise<Message>;
|
|
895
|
+
declare function sendUserPromptRequest(client: SuperatomClient, prompt: string, threadId: string, uiBlockId: string, responseMode?: 'component' | 'text', onStream?: (chunk: string) => void, timeout?: number): Promise<Message>;
|
|
875
896
|
/**
|
|
876
897
|
* Send a user prompt suggestions request
|
|
877
898
|
* @param client - SuperatomClient instance
|
|
@@ -1217,6 +1238,87 @@ declare function getReport(client: SuperatomClient, reportId: string, timeout?:
|
|
|
1217
1238
|
message?: string;
|
|
1218
1239
|
}>;
|
|
1219
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
|
+
|
|
1220
1322
|
declare function getActions(client: SuperatomClient, options: {
|
|
1221
1323
|
SA_RUNTIME?: Record<string, unknown>;
|
|
1222
1324
|
timeout?: number;
|
|
@@ -1233,6 +1335,7 @@ declare function getActions(client: SuperatomClient, options: {
|
|
|
1233
1335
|
|
|
1234
1336
|
type index_Binding = Binding;
|
|
1235
1337
|
declare const index_BindingSchema: typeof BindingSchema;
|
|
1338
|
+
type index_Bookmark = Bookmark;
|
|
1236
1339
|
type index_Dashboard = Dashboard;
|
|
1237
1340
|
type index_Expression = Expression;
|
|
1238
1341
|
declare const index_ExpressionSchema: typeof ExpressionSchema;
|
|
@@ -1246,16 +1349,20 @@ declare const index_UIComponentSchema: typeof UIComponentSchema;
|
|
|
1246
1349
|
type index_UIElement = UIElement;
|
|
1247
1350
|
declare const index_UIElementSchema: typeof UIElementSchema;
|
|
1248
1351
|
type index_User = User;
|
|
1352
|
+
declare const index_createBookmark: typeof createBookmark;
|
|
1249
1353
|
declare const index_createDashboard: typeof createDashboard;
|
|
1250
1354
|
declare const index_createReport: typeof createReport;
|
|
1251
1355
|
declare const index_createUser: typeof createUser;
|
|
1356
|
+
declare const index_deleteBookmark: typeof deleteBookmark;
|
|
1252
1357
|
declare const index_deleteDashboard: typeof deleteDashboard;
|
|
1253
1358
|
declare const index_deleteReport: typeof deleteReport;
|
|
1254
1359
|
declare const index_deleteUser: typeof deleteUser;
|
|
1255
1360
|
declare const index_getActions: typeof getActions;
|
|
1361
|
+
declare const index_getAllBookmarks: typeof getAllBookmarks;
|
|
1256
1362
|
declare const index_getAllDashboards: typeof getAllDashboards;
|
|
1257
1363
|
declare const index_getAllReports: typeof getAllReports;
|
|
1258
1364
|
declare const index_getAllUsers: typeof getAllUsers;
|
|
1365
|
+
declare const index_getBookmark: typeof getBookmark;
|
|
1259
1366
|
declare const index_getComponentSuggestions: typeof getComponentSuggestions;
|
|
1260
1367
|
declare const index_getDashboard: typeof getDashboard;
|
|
1261
1368
|
declare const index_getReport: typeof getReport;
|
|
@@ -1267,11 +1374,12 @@ declare const index_sendAuthVerifyRequest: typeof sendAuthVerifyRequest;
|
|
|
1267
1374
|
declare const index_sendComponents: typeof sendComponents;
|
|
1268
1375
|
declare const index_sendUserPromptRequest: typeof sendUserPromptRequest;
|
|
1269
1376
|
declare const index_sendUserPromptSuggestionsRequest: typeof sendUserPromptSuggestionsRequest;
|
|
1377
|
+
declare const index_updateBookmark: typeof updateBookmark;
|
|
1270
1378
|
declare const index_updateDashboard: typeof updateDashboard;
|
|
1271
1379
|
declare const index_updateReport: typeof updateReport;
|
|
1272
1380
|
declare const index_updateUser: typeof updateUser;
|
|
1273
1381
|
declare namespace index {
|
|
1274
|
-
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 };
|
|
1275
1383
|
}
|
|
1276
1384
|
|
|
1277
1385
|
type MessageHandler = (message: Message) => void;
|
|
@@ -1403,8 +1511,10 @@ declare class SuperatomClient {
|
|
|
1403
1511
|
/**
|
|
1404
1512
|
* Send a user prompt request
|
|
1405
1513
|
* Delegates to user prompt service
|
|
1514
|
+
* @param responseMode - 'component' for component response (default), 'text' for text streaming
|
|
1515
|
+
* @param onStream - Optional callback for streaming text chunks (only for text mode)
|
|
1406
1516
|
*/
|
|
1407
|
-
sendUserPromptRequest(prompt: string, threadId: string, uiBlockId: string, timeout?: number): Promise<Message>;
|
|
1517
|
+
sendUserPromptRequest(prompt: string, threadId: string, uiBlockId: string, responseMode?: 'component' | 'text', onStream?: (chunk: string) => void, timeout?: number): Promise<Message>;
|
|
1408
1518
|
/**
|
|
1409
1519
|
* Send a user prompt suggestions request
|
|
1410
1520
|
* Delegates to user prompt service
|
|
@@ -1577,6 +1687,57 @@ declare class SuperatomClient {
|
|
|
1577
1687
|
dashboard?: DSLRendererProps$1;
|
|
1578
1688
|
message?: string;
|
|
1579
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
|
+
}>;
|
|
1580
1741
|
/**
|
|
1581
1742
|
* Create a new report
|
|
1582
1743
|
* Delegates to reports service
|
package/dist/index.d.ts
CHANGED
|
@@ -300,6 +300,10 @@ declare const UserPromptRequestPayloadSchema: z.ZodObject<{
|
|
|
300
300
|
threadId: z.ZodString;
|
|
301
301
|
uiBlockId: z.ZodString;
|
|
302
302
|
}, z.core.$strip>>;
|
|
303
|
+
responseMode: z.ZodOptional<z.ZodEnum<{
|
|
304
|
+
component: "component";
|
|
305
|
+
text: "text";
|
|
306
|
+
}>>;
|
|
303
307
|
}, z.core.$strip>;
|
|
304
308
|
type UserPromptRequestPayload = z.infer<typeof UserPromptRequestPayloadSchema>;
|
|
305
309
|
/**
|
|
@@ -323,6 +327,10 @@ declare const UserPromptRequestMessageSchema: z.ZodObject<{
|
|
|
323
327
|
threadId: z.ZodString;
|
|
324
328
|
uiBlockId: z.ZodString;
|
|
325
329
|
}, z.core.$strip>>;
|
|
330
|
+
responseMode: z.ZodOptional<z.ZodEnum<{
|
|
331
|
+
component: "component";
|
|
332
|
+
text: "text";
|
|
333
|
+
}>>;
|
|
326
334
|
}, z.core.$strip>;
|
|
327
335
|
}, z.core.$strip>;
|
|
328
336
|
type UserPromptRequestMessage = z.infer<typeof UserPromptRequestMessageSchema>;
|
|
@@ -818,6 +826,17 @@ declare const ComponentsSendMessageSchema: z.ZodObject<{
|
|
|
818
826
|
}, z.core.$strip>;
|
|
819
827
|
}, z.core.$strip>;
|
|
820
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>;
|
|
821
840
|
/**
|
|
822
841
|
* Client configuration schema
|
|
823
842
|
*/
|
|
@@ -868,10 +887,12 @@ declare function sendAuthVerifyRequest(client: SuperatomClient, token: string, t
|
|
|
868
887
|
* @param prompt - User's prompt text
|
|
869
888
|
* @param threadId - Thread ID for conversation context
|
|
870
889
|
* @param uiBlockId - UI block ID for context
|
|
890
|
+
* @param responseMode - 'component' for component response (default), 'text' for text streaming
|
|
891
|
+
* @param onStream - Optional callback for streaming text chunks (only for text mode)
|
|
871
892
|
* @param timeout - Request timeout in milliseconds
|
|
872
893
|
* @returns Server response message
|
|
873
894
|
*/
|
|
874
|
-
declare function sendUserPromptRequest(client: SuperatomClient, prompt: string, threadId: string, uiBlockId: string, timeout?: number): Promise<Message>;
|
|
895
|
+
declare function sendUserPromptRequest(client: SuperatomClient, prompt: string, threadId: string, uiBlockId: string, responseMode?: 'component' | 'text', onStream?: (chunk: string) => void, timeout?: number): Promise<Message>;
|
|
875
896
|
/**
|
|
876
897
|
* Send a user prompt suggestions request
|
|
877
898
|
* @param client - SuperatomClient instance
|
|
@@ -1217,6 +1238,87 @@ declare function getReport(client: SuperatomClient, reportId: string, timeout?:
|
|
|
1217
1238
|
message?: string;
|
|
1218
1239
|
}>;
|
|
1219
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
|
+
|
|
1220
1322
|
declare function getActions(client: SuperatomClient, options: {
|
|
1221
1323
|
SA_RUNTIME?: Record<string, unknown>;
|
|
1222
1324
|
timeout?: number;
|
|
@@ -1233,6 +1335,7 @@ declare function getActions(client: SuperatomClient, options: {
|
|
|
1233
1335
|
|
|
1234
1336
|
type index_Binding = Binding;
|
|
1235
1337
|
declare const index_BindingSchema: typeof BindingSchema;
|
|
1338
|
+
type index_Bookmark = Bookmark;
|
|
1236
1339
|
type index_Dashboard = Dashboard;
|
|
1237
1340
|
type index_Expression = Expression;
|
|
1238
1341
|
declare const index_ExpressionSchema: typeof ExpressionSchema;
|
|
@@ -1246,16 +1349,20 @@ declare const index_UIComponentSchema: typeof UIComponentSchema;
|
|
|
1246
1349
|
type index_UIElement = UIElement;
|
|
1247
1350
|
declare const index_UIElementSchema: typeof UIElementSchema;
|
|
1248
1351
|
type index_User = User;
|
|
1352
|
+
declare const index_createBookmark: typeof createBookmark;
|
|
1249
1353
|
declare const index_createDashboard: typeof createDashboard;
|
|
1250
1354
|
declare const index_createReport: typeof createReport;
|
|
1251
1355
|
declare const index_createUser: typeof createUser;
|
|
1356
|
+
declare const index_deleteBookmark: typeof deleteBookmark;
|
|
1252
1357
|
declare const index_deleteDashboard: typeof deleteDashboard;
|
|
1253
1358
|
declare const index_deleteReport: typeof deleteReport;
|
|
1254
1359
|
declare const index_deleteUser: typeof deleteUser;
|
|
1255
1360
|
declare const index_getActions: typeof getActions;
|
|
1361
|
+
declare const index_getAllBookmarks: typeof getAllBookmarks;
|
|
1256
1362
|
declare const index_getAllDashboards: typeof getAllDashboards;
|
|
1257
1363
|
declare const index_getAllReports: typeof getAllReports;
|
|
1258
1364
|
declare const index_getAllUsers: typeof getAllUsers;
|
|
1365
|
+
declare const index_getBookmark: typeof getBookmark;
|
|
1259
1366
|
declare const index_getComponentSuggestions: typeof getComponentSuggestions;
|
|
1260
1367
|
declare const index_getDashboard: typeof getDashboard;
|
|
1261
1368
|
declare const index_getReport: typeof getReport;
|
|
@@ -1267,11 +1374,12 @@ declare const index_sendAuthVerifyRequest: typeof sendAuthVerifyRequest;
|
|
|
1267
1374
|
declare const index_sendComponents: typeof sendComponents;
|
|
1268
1375
|
declare const index_sendUserPromptRequest: typeof sendUserPromptRequest;
|
|
1269
1376
|
declare const index_sendUserPromptSuggestionsRequest: typeof sendUserPromptSuggestionsRequest;
|
|
1377
|
+
declare const index_updateBookmark: typeof updateBookmark;
|
|
1270
1378
|
declare const index_updateDashboard: typeof updateDashboard;
|
|
1271
1379
|
declare const index_updateReport: typeof updateReport;
|
|
1272
1380
|
declare const index_updateUser: typeof updateUser;
|
|
1273
1381
|
declare namespace index {
|
|
1274
|
-
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 };
|
|
1275
1383
|
}
|
|
1276
1384
|
|
|
1277
1385
|
type MessageHandler = (message: Message) => void;
|
|
@@ -1403,8 +1511,10 @@ declare class SuperatomClient {
|
|
|
1403
1511
|
/**
|
|
1404
1512
|
* Send a user prompt request
|
|
1405
1513
|
* Delegates to user prompt service
|
|
1514
|
+
* @param responseMode - 'component' for component response (default), 'text' for text streaming
|
|
1515
|
+
* @param onStream - Optional callback for streaming text chunks (only for text mode)
|
|
1406
1516
|
*/
|
|
1407
|
-
sendUserPromptRequest(prompt: string, threadId: string, uiBlockId: string, timeout?: number): Promise<Message>;
|
|
1517
|
+
sendUserPromptRequest(prompt: string, threadId: string, uiBlockId: string, responseMode?: 'component' | 'text', onStream?: (chunk: string) => void, timeout?: number): Promise<Message>;
|
|
1408
1518
|
/**
|
|
1409
1519
|
* Send a user prompt suggestions request
|
|
1410
1520
|
* Delegates to user prompt service
|
|
@@ -1577,6 +1687,57 @@ declare class SuperatomClient {
|
|
|
1577
1687
|
dashboard?: DSLRendererProps$1;
|
|
1578
1688
|
message?: string;
|
|
1579
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
|
+
}>;
|
|
1580
1741
|
/**
|
|
1581
1742
|
* Create a new report
|
|
1582
1743
|
* Delegates to reports service
|