@superatomai/sdk-web 0.0.20 → 0.0.22
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 +52 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +42 -15
- package/dist/index.d.ts +42 -15
- package/dist/index.js +52 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -320,6 +320,7 @@ type AuthVerifyResponseMessage = z.infer<typeof AuthVerifyResponseMessageSchema>
|
|
|
320
320
|
*/
|
|
321
321
|
declare const UserPromptRequestPayloadSchema: z.ZodObject<{
|
|
322
322
|
prompt: z.ZodString;
|
|
323
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
323
324
|
SA_RUNTIME: z.ZodOptional<z.ZodObject<{
|
|
324
325
|
threadId: z.ZodString;
|
|
325
326
|
uiBlockId: z.ZodString;
|
|
@@ -347,6 +348,7 @@ declare const UserPromptRequestMessageSchema: z.ZodObject<{
|
|
|
347
348
|
}, z.core.$strip>>;
|
|
348
349
|
payload: z.ZodObject<{
|
|
349
350
|
prompt: z.ZodString;
|
|
351
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
350
352
|
SA_RUNTIME: z.ZodOptional<z.ZodObject<{
|
|
351
353
|
threadId: z.ZodString;
|
|
352
354
|
uiBlockId: z.ZodString;
|
|
@@ -368,11 +370,11 @@ declare const ComponentSchema: z.ZodObject<{
|
|
|
368
370
|
type: z.ZodString;
|
|
369
371
|
description: z.ZodString;
|
|
370
372
|
props: z.ZodObject<{
|
|
371
|
-
query: z.ZodOptional<z.ZodString
|
|
373
|
+
query: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
372
374
|
title: z.ZodOptional<z.ZodString>;
|
|
373
375
|
description: z.ZodOptional<z.ZodString>;
|
|
374
376
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
375
|
-
}, z.core.$
|
|
377
|
+
}, z.core.$loose>;
|
|
376
378
|
category: z.ZodOptional<z.ZodString>;
|
|
377
379
|
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
378
380
|
}, z.core.$strip>;
|
|
@@ -391,11 +393,11 @@ declare const UserPromptResponsePayloadSchema: z.ZodObject<{
|
|
|
391
393
|
type: z.ZodString;
|
|
392
394
|
description: z.ZodString;
|
|
393
395
|
props: z.ZodObject<{
|
|
394
|
-
query: z.ZodOptional<z.ZodString
|
|
396
|
+
query: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
395
397
|
title: z.ZodOptional<z.ZodString>;
|
|
396
398
|
description: z.ZodOptional<z.ZodString>;
|
|
397
399
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
398
|
-
}, z.core.$
|
|
400
|
+
}, z.core.$loose>;
|
|
399
401
|
category: z.ZodOptional<z.ZodString>;
|
|
400
402
|
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
401
403
|
}, z.core.$strip>>;
|
|
@@ -428,11 +430,11 @@ declare const UserPromptResponseMessageSchema: z.ZodObject<{
|
|
|
428
430
|
type: z.ZodString;
|
|
429
431
|
description: z.ZodString;
|
|
430
432
|
props: z.ZodObject<{
|
|
431
|
-
query: z.ZodOptional<z.ZodString
|
|
433
|
+
query: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
432
434
|
title: z.ZodOptional<z.ZodString>;
|
|
433
435
|
description: z.ZodOptional<z.ZodString>;
|
|
434
436
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
435
|
-
}, z.core.$
|
|
437
|
+
}, z.core.$loose>;
|
|
436
438
|
category: z.ZodOptional<z.ZodString>;
|
|
437
439
|
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
438
440
|
}, z.core.$strip>>;
|
|
@@ -448,6 +450,7 @@ type UserPromptResponseMessage = z.infer<typeof UserPromptResponseMessageSchema>
|
|
|
448
450
|
*/
|
|
449
451
|
declare const UserPromptSuggestionsRequestPayloadSchema: z.ZodObject<{
|
|
450
452
|
prompt: z.ZodString;
|
|
453
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
451
454
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
452
455
|
}, z.core.$strip>;
|
|
453
456
|
type UserPromptSuggestionsRequestPayload = z.infer<typeof UserPromptSuggestionsRequestPayloadSchema>;
|
|
@@ -468,6 +471,7 @@ declare const UserPromptSuggestionsRequestMessageSchema: z.ZodObject<{
|
|
|
468
471
|
}, z.core.$strip>>;
|
|
469
472
|
payload: z.ZodObject<{
|
|
470
473
|
prompt: z.ZodString;
|
|
474
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
471
475
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
472
476
|
}, z.core.$strip>;
|
|
473
477
|
}, z.core.$strip>;
|
|
@@ -487,11 +491,11 @@ declare const UserPromptSuggestionsResponsePayloadSchema: z.ZodObject<{
|
|
|
487
491
|
type: z.ZodString;
|
|
488
492
|
description: z.ZodString;
|
|
489
493
|
props: z.ZodObject<{
|
|
490
|
-
query: z.ZodOptional<z.ZodString
|
|
494
|
+
query: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
491
495
|
title: z.ZodOptional<z.ZodString>;
|
|
492
496
|
description: z.ZodOptional<z.ZodString>;
|
|
493
497
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
494
|
-
}, z.core.$
|
|
498
|
+
}, z.core.$loose>;
|
|
495
499
|
category: z.ZodOptional<z.ZodString>;
|
|
496
500
|
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
497
501
|
}, z.core.$strip>>;
|
|
@@ -525,11 +529,11 @@ declare const UserPromptSuggestionsResponseMessageSchema: z.ZodObject<{
|
|
|
525
529
|
type: z.ZodString;
|
|
526
530
|
description: z.ZodString;
|
|
527
531
|
props: z.ZodObject<{
|
|
528
|
-
query: z.ZodOptional<z.ZodString
|
|
532
|
+
query: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
529
533
|
title: z.ZodOptional<z.ZodString>;
|
|
530
534
|
description: z.ZodOptional<z.ZodString>;
|
|
531
535
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
532
|
-
}, z.core.$
|
|
536
|
+
}, z.core.$loose>;
|
|
533
537
|
category: z.ZodOptional<z.ZodString>;
|
|
534
538
|
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
535
539
|
}, z.core.$strip>>;
|
|
@@ -780,6 +784,7 @@ type UILogsMessage = z.infer<typeof UILogsMessageSchema>;
|
|
|
780
784
|
* Synced with sdk-nodejs: ActionsRequestPayloadSchema
|
|
781
785
|
*/
|
|
782
786
|
declare const ActionsRequestPayloadSchema: z.ZodObject<{
|
|
787
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
783
788
|
SA_RUNTIME: z.ZodOptional<z.ZodObject<{
|
|
784
789
|
threadId: z.ZodString;
|
|
785
790
|
uiBlockId: z.ZodString;
|
|
@@ -794,6 +799,7 @@ declare const ActionsRequestMessageSchema: z.ZodObject<{
|
|
|
794
799
|
}, z.core.$strip>;
|
|
795
800
|
type: z.ZodLiteral<"ACTIONS">;
|
|
796
801
|
payload: z.ZodObject<{
|
|
802
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
797
803
|
SA_RUNTIME: z.ZodOptional<z.ZodObject<{
|
|
798
804
|
threadId: z.ZodString;
|
|
799
805
|
uiBlockId: z.ZodString;
|
|
@@ -1207,21 +1213,23 @@ declare function sendAuthVerifyRequest(client: SuperatomClient, token: string, t
|
|
|
1207
1213
|
* @param prompt - User's prompt text
|
|
1208
1214
|
* @param threadId - Thread ID for conversation context
|
|
1209
1215
|
* @param uiBlockId - UI block ID for context
|
|
1216
|
+
* @param userId - User ID for the request
|
|
1210
1217
|
* @param responseMode - 'component' for component response (default), 'text' for text streaming
|
|
1211
1218
|
* @param onStream - Optional callback for streaming text chunks (only for text mode)
|
|
1212
1219
|
* @param timeout - Request timeout in milliseconds
|
|
1213
1220
|
* @returns Server response message
|
|
1214
1221
|
*/
|
|
1215
|
-
declare function sendUserPromptRequest(client: SuperatomClient, prompt: string, threadId: string, uiBlockId: string, responseMode?: 'component' | 'text', onStream?: (chunk: string) => void, timeout?: number): Promise<Message>;
|
|
1222
|
+
declare function sendUserPromptRequest(client: SuperatomClient, prompt: string, threadId: string, uiBlockId: string, userId?: string, responseMode?: 'component' | 'text', onStream?: (chunk: string) => void, timeout?: number): Promise<Message>;
|
|
1216
1223
|
/**
|
|
1217
1224
|
* Send a user prompt suggestions request
|
|
1218
1225
|
* @param client - SuperatomClient instance
|
|
1219
1226
|
* @param prompt - User's partial prompt text
|
|
1227
|
+
* @param userId - User ID for the request
|
|
1220
1228
|
* @param limit - Maximum number of suggestions to return
|
|
1221
1229
|
* @param timeout - Request timeout in milliseconds
|
|
1222
1230
|
* @returns Server response message or null if prompt is empty
|
|
1223
1231
|
*/
|
|
1224
|
-
declare function sendUserPromptSuggestionsRequest(client: SuperatomClient, prompt: string, limit?: number, timeout?: number): Promise<Message | null>;
|
|
1232
|
+
declare function sendUserPromptSuggestionsRequest(client: SuperatomClient, prompt: string, userId?: string, limit?: number, timeout?: number): Promise<Message | null>;
|
|
1225
1233
|
|
|
1226
1234
|
/**
|
|
1227
1235
|
* Bundle Service
|
|
@@ -1826,6 +1834,7 @@ declare function queryBookmarks(client: SuperatomClient, options?: QueryBookmark
|
|
|
1826
1834
|
}>;
|
|
1827
1835
|
|
|
1828
1836
|
declare function getActions(client: SuperatomClient, options: {
|
|
1837
|
+
userId?: string;
|
|
1829
1838
|
SA_RUNTIME?: Record<string, unknown>;
|
|
1830
1839
|
timeout?: number;
|
|
1831
1840
|
}): Promise<{
|
|
@@ -2192,6 +2201,10 @@ declare function getKbNodeTags(client: SuperatomClient, timeout?: number): Promi
|
|
|
2192
2201
|
* Handles DASH_COMP_REQ messages for picking components and generating props
|
|
2193
2202
|
*/
|
|
2194
2203
|
|
|
2204
|
+
/**
|
|
2205
|
+
* Request type for dashboard component
|
|
2206
|
+
*/
|
|
2207
|
+
type DashCompReqType = 'create' | 'update' | 'filter';
|
|
2195
2208
|
/**
|
|
2196
2209
|
* Response type for dashboard component request
|
|
2197
2210
|
*/
|
|
@@ -2201,6 +2214,9 @@ interface DashCompResponse {
|
|
|
2201
2214
|
component?: Component;
|
|
2202
2215
|
reasoning?: string;
|
|
2203
2216
|
dataSource?: 'database' | 'external_tool' | 'none';
|
|
2217
|
+
filterComponent?: Component;
|
|
2218
|
+
updatedComponents?: Component[];
|
|
2219
|
+
filterBindings?: Record<string, unknown>;
|
|
2204
2220
|
}
|
|
2205
2221
|
/**
|
|
2206
2222
|
* Options for dashboard component request
|
|
@@ -2208,12 +2224,18 @@ interface DashCompResponse {
|
|
|
2208
2224
|
interface DashCompRequestOptions {
|
|
2209
2225
|
/** User's prompt describing what component they need */
|
|
2210
2226
|
prompt: string;
|
|
2227
|
+
/** User ID for the request */
|
|
2228
|
+
userId?: string;
|
|
2211
2229
|
/** Optional thread ID for conversation context */
|
|
2212
2230
|
threadId?: string;
|
|
2213
2231
|
/** Optional UI block ID for context */
|
|
2214
2232
|
uiBlockId?: string;
|
|
2215
2233
|
/** Request timeout in milliseconds */
|
|
2216
2234
|
timeout?: number;
|
|
2235
|
+
/** Existing components on the dashboard (for filter/update requests) */
|
|
2236
|
+
existingComponents?: Component[];
|
|
2237
|
+
/** Request type: 'create' for new component, 'update' for modifying, 'filter' for creating filter */
|
|
2238
|
+
reqType?: DashCompReqType;
|
|
2217
2239
|
}
|
|
2218
2240
|
/**
|
|
2219
2241
|
* Send a dashboard component request
|
|
@@ -2255,6 +2277,7 @@ type index_CreateBookmarkOptions = CreateBookmarkOptions;
|
|
|
2255
2277
|
type index_CreateDashboardOptions = CreateDashboardOptions;
|
|
2256
2278
|
type index_CreateReportOptions = CreateReportOptions;
|
|
2257
2279
|
type index_CreateUIOptions = CreateUIOptions;
|
|
2280
|
+
type index_DashCompReqType = DashCompReqType;
|
|
2258
2281
|
type index_DashCompRequestOptions = DashCompRequestOptions;
|
|
2259
2282
|
type index_DashCompResponse = DashCompResponse;
|
|
2260
2283
|
type index_Dashboard = Dashboard;
|
|
@@ -2335,7 +2358,7 @@ declare const index_updateReport: typeof updateReport;
|
|
|
2335
2358
|
declare const index_updateUI: typeof updateUI;
|
|
2336
2359
|
declare const index_updateUser: typeof updateUser;
|
|
2337
2360
|
declare namespace index {
|
|
2338
|
-
export { type index_Binding as Binding, index_BindingSchema as BindingSchema, type index_Bookmark as Bookmark, type index_CreateBookmarkOptions as CreateBookmarkOptions, type index_CreateDashboardOptions as CreateDashboardOptions, type index_CreateReportOptions as CreateReportOptions, type index_CreateUIOptions as CreateUIOptions, type DSLRendererProps$2 as DSLRendererProps, DSLRendererPropsSchema$2 as DSLRendererPropsSchema, type index_DashCompRequestOptions as DashCompRequestOptions, type index_DashCompResponse as DashCompResponse, type index_Dashboard as Dashboard, type index_Expression as Expression, index_ExpressionSchema as ExpressionSchema, type index_ForDirective as ForDirective, index_ForDirectiveSchema as ForDirectiveSchema, type index_KbNode as KbNode, type index_Page as Page, index_PageSchema as PageSchema, type index_QueryBookmarksOptions as QueryBookmarksOptions, type index_QueryDashboardsOptions as QueryDashboardsOptions, type index_QueryReportsOptions as QueryReportsOptions, type index_QuerySpec as QuerySpec, index_QuerySpecSchema as QuerySpecSchema, type index_QueryUIsOptions as QueryUIsOptions, type index_QueryUsersOptions as QueryUsersOptions, type index_Report as Report, type DSLRendererProps$1 as ReportDSLRendererProps, type index_SearchKbNodesOptions as SearchKbNodesOptions, type index_UI as UI, type index_UIComponent as UIComponent, index_UIComponentSchema as UIComponentSchema, type DSLRendererProps as UIDSLRendererProps, type index_UIElement as UIElement, index_UIElementSchema as UIElementSchema, type index_UpdateBookmarkOptions as UpdateBookmarkOptions, type index_UpdateDashboardOptions as UpdateDashboardOptions, type index_UpdateReportOptions as UpdateReportOptions, type index_UpdateUIOptions as UpdateUIOptions, type index_User as User, index_createBookmark as createBookmark, index_createDashboard as createDashboard, index_createKbNode as createKbNode, index_createReport as createReport, index_createUI as createUI, index_createUser as createUser, index_deleteBookmark as deleteBookmark, index_deleteDashboard as deleteDashboard, index_deleteKbNode as deleteKbNode, index_deleteReport as deleteReport, index_deleteUI as deleteUI, index_deleteUser as deleteUser, index_getActions as getActions, index_getAllBookmarks as getAllBookmarks, index_getAllDashboards as getAllDashboards, index_getAllKbNodes as getAllKbNodes, index_getAllReports as getAllReports, index_getAllUIs as getAllUIs, index_getAllUsers as getAllUsers, index_getBookmark as getBookmark, index_getComponentSuggestions as getComponentSuggestions, index_getDashboard as getDashboard, index_getKbNode as getKbNode, index_getKbNodeCategories as getKbNodeCategories, index_getKbNodeTags as getKbNodeTags, index_getKbNodesByCategory as getKbNodesByCategory, index_getKbNodesByUser as getKbNodesByUser, index_getReport as getReport, index_getUI as getUI, index_getUser as getUser, index_queryBookmarks as queryBookmarks, index_queryDashboards as queryDashboards, index_queryReports as queryReports, index_queryUIs as queryUIs, index_queryUsers as queryUsers, index_requestBundle as requestBundle, index_requestData as requestData, index_searchKbNodes as searchKbNodes, index_sendAuthLoginRequest as sendAuthLoginRequest, index_sendAuthVerifyRequest as sendAuthVerifyRequest, index_sendComponents as sendComponents, index_sendDashCompRequest as sendDashCompRequest, index_sendUserPromptRequest as sendUserPromptRequest, index_sendUserPromptSuggestionsRequest as sendUserPromptSuggestionsRequest, index_updateBookmark as updateBookmark, index_updateDashboard as updateDashboard, index_updateKbNode as updateKbNode, index_updateReport as updateReport, index_updateUI as updateUI, index_updateUser as updateUser };
|
|
2361
|
+
export { type index_Binding as Binding, index_BindingSchema as BindingSchema, type index_Bookmark as Bookmark, type index_CreateBookmarkOptions as CreateBookmarkOptions, type index_CreateDashboardOptions as CreateDashboardOptions, type index_CreateReportOptions as CreateReportOptions, type index_CreateUIOptions as CreateUIOptions, type DSLRendererProps$2 as DSLRendererProps, DSLRendererPropsSchema$2 as DSLRendererPropsSchema, type index_DashCompReqType as DashCompReqType, type index_DashCompRequestOptions as DashCompRequestOptions, type index_DashCompResponse as DashCompResponse, type index_Dashboard as Dashboard, type index_Expression as Expression, index_ExpressionSchema as ExpressionSchema, type index_ForDirective as ForDirective, index_ForDirectiveSchema as ForDirectiveSchema, type index_KbNode as KbNode, type index_Page as Page, index_PageSchema as PageSchema, type index_QueryBookmarksOptions as QueryBookmarksOptions, type index_QueryDashboardsOptions as QueryDashboardsOptions, type index_QueryReportsOptions as QueryReportsOptions, type index_QuerySpec as QuerySpec, index_QuerySpecSchema as QuerySpecSchema, type index_QueryUIsOptions as QueryUIsOptions, type index_QueryUsersOptions as QueryUsersOptions, type index_Report as Report, type DSLRendererProps$1 as ReportDSLRendererProps, type index_SearchKbNodesOptions as SearchKbNodesOptions, type index_UI as UI, type index_UIComponent as UIComponent, index_UIComponentSchema as UIComponentSchema, type DSLRendererProps as UIDSLRendererProps, type index_UIElement as UIElement, index_UIElementSchema as UIElementSchema, type index_UpdateBookmarkOptions as UpdateBookmarkOptions, type index_UpdateDashboardOptions as UpdateDashboardOptions, type index_UpdateReportOptions as UpdateReportOptions, type index_UpdateUIOptions as UpdateUIOptions, type index_User as User, index_createBookmark as createBookmark, index_createDashboard as createDashboard, index_createKbNode as createKbNode, index_createReport as createReport, index_createUI as createUI, index_createUser as createUser, index_deleteBookmark as deleteBookmark, index_deleteDashboard as deleteDashboard, index_deleteKbNode as deleteKbNode, index_deleteReport as deleteReport, index_deleteUI as deleteUI, index_deleteUser as deleteUser, index_getActions as getActions, index_getAllBookmarks as getAllBookmarks, index_getAllDashboards as getAllDashboards, index_getAllKbNodes as getAllKbNodes, index_getAllReports as getAllReports, index_getAllUIs as getAllUIs, index_getAllUsers as getAllUsers, index_getBookmark as getBookmark, index_getComponentSuggestions as getComponentSuggestions, index_getDashboard as getDashboard, index_getKbNode as getKbNode, index_getKbNodeCategories as getKbNodeCategories, index_getKbNodeTags as getKbNodeTags, index_getKbNodesByCategory as getKbNodesByCategory, index_getKbNodesByUser as getKbNodesByUser, index_getReport as getReport, index_getUI as getUI, index_getUser as getUser, index_queryBookmarks as queryBookmarks, index_queryDashboards as queryDashboards, index_queryReports as queryReports, index_queryUIs as queryUIs, index_queryUsers as queryUsers, index_requestBundle as requestBundle, index_requestData as requestData, index_searchKbNodes as searchKbNodes, index_sendAuthLoginRequest as sendAuthLoginRequest, index_sendAuthVerifyRequest as sendAuthVerifyRequest, index_sendComponents as sendComponents, index_sendDashCompRequest as sendDashCompRequest, index_sendUserPromptRequest as sendUserPromptRequest, index_sendUserPromptSuggestionsRequest as sendUserPromptSuggestionsRequest, index_updateBookmark as updateBookmark, index_updateDashboard as updateDashboard, index_updateKbNode as updateKbNode, index_updateReport as updateReport, index_updateUI as updateUI, index_updateUser as updateUser };
|
|
2339
2362
|
}
|
|
2340
2363
|
|
|
2341
2364
|
type MessageHandler = (message: Message) => void;
|
|
@@ -2467,15 +2490,17 @@ declare class SuperatomClient {
|
|
|
2467
2490
|
/**
|
|
2468
2491
|
* Send a user prompt request
|
|
2469
2492
|
* Delegates to user prompt service
|
|
2493
|
+
* @param userId - User ID for the request
|
|
2470
2494
|
* @param responseMode - 'component' for component response (default), 'text' for text streaming
|
|
2471
2495
|
* @param onStream - Optional callback for streaming text chunks (only for text mode)
|
|
2472
2496
|
*/
|
|
2473
|
-
sendUserPromptRequest(prompt: string, threadId: string, uiBlockId: string, responseMode?: 'component' | 'text', onStream?: (chunk: string) => void, timeout?: number): Promise<Message>;
|
|
2497
|
+
sendUserPromptRequest(prompt: string, threadId: string, uiBlockId: string, userId?: string, responseMode?: 'component' | 'text', onStream?: (chunk: string) => void, timeout?: number): Promise<Message>;
|
|
2474
2498
|
/**
|
|
2475
2499
|
* Send a user prompt suggestions request
|
|
2476
2500
|
* Delegates to user prompt service
|
|
2501
|
+
* @param userId - User ID for the request
|
|
2477
2502
|
*/
|
|
2478
|
-
sendUserPromptSuggestionsRequest(prompt: string, limit?: number, timeout?: number): Promise<Message | null>;
|
|
2503
|
+
sendUserPromptSuggestionsRequest(prompt: string, userId?: string, limit?: number, timeout?: number): Promise<Message | null>;
|
|
2479
2504
|
/**
|
|
2480
2505
|
* Request bundle from server
|
|
2481
2506
|
* Delegates to bundle service
|
|
@@ -2515,8 +2540,10 @@ declare class SuperatomClient {
|
|
|
2515
2540
|
/**
|
|
2516
2541
|
* Get AI-powered component suggestions based on a query
|
|
2517
2542
|
* Delegates to component service
|
|
2543
|
+
* @param userId - User ID for the request
|
|
2518
2544
|
*/
|
|
2519
2545
|
getActions(options: {
|
|
2546
|
+
userId?: string;
|
|
2520
2547
|
SA_RUNTIME?: Record<string, unknown>;
|
|
2521
2548
|
timeout?: number;
|
|
2522
2549
|
}): Promise<{
|
package/dist/index.d.ts
CHANGED
|
@@ -320,6 +320,7 @@ type AuthVerifyResponseMessage = z.infer<typeof AuthVerifyResponseMessageSchema>
|
|
|
320
320
|
*/
|
|
321
321
|
declare const UserPromptRequestPayloadSchema: z.ZodObject<{
|
|
322
322
|
prompt: z.ZodString;
|
|
323
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
323
324
|
SA_RUNTIME: z.ZodOptional<z.ZodObject<{
|
|
324
325
|
threadId: z.ZodString;
|
|
325
326
|
uiBlockId: z.ZodString;
|
|
@@ -347,6 +348,7 @@ declare const UserPromptRequestMessageSchema: z.ZodObject<{
|
|
|
347
348
|
}, z.core.$strip>>;
|
|
348
349
|
payload: z.ZodObject<{
|
|
349
350
|
prompt: z.ZodString;
|
|
351
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
350
352
|
SA_RUNTIME: z.ZodOptional<z.ZodObject<{
|
|
351
353
|
threadId: z.ZodString;
|
|
352
354
|
uiBlockId: z.ZodString;
|
|
@@ -368,11 +370,11 @@ declare const ComponentSchema: z.ZodObject<{
|
|
|
368
370
|
type: z.ZodString;
|
|
369
371
|
description: z.ZodString;
|
|
370
372
|
props: z.ZodObject<{
|
|
371
|
-
query: z.ZodOptional<z.ZodString
|
|
373
|
+
query: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
372
374
|
title: z.ZodOptional<z.ZodString>;
|
|
373
375
|
description: z.ZodOptional<z.ZodString>;
|
|
374
376
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
375
|
-
}, z.core.$
|
|
377
|
+
}, z.core.$loose>;
|
|
376
378
|
category: z.ZodOptional<z.ZodString>;
|
|
377
379
|
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
378
380
|
}, z.core.$strip>;
|
|
@@ -391,11 +393,11 @@ declare const UserPromptResponsePayloadSchema: z.ZodObject<{
|
|
|
391
393
|
type: z.ZodString;
|
|
392
394
|
description: z.ZodString;
|
|
393
395
|
props: z.ZodObject<{
|
|
394
|
-
query: z.ZodOptional<z.ZodString
|
|
396
|
+
query: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
395
397
|
title: z.ZodOptional<z.ZodString>;
|
|
396
398
|
description: z.ZodOptional<z.ZodString>;
|
|
397
399
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
398
|
-
}, z.core.$
|
|
400
|
+
}, z.core.$loose>;
|
|
399
401
|
category: z.ZodOptional<z.ZodString>;
|
|
400
402
|
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
401
403
|
}, z.core.$strip>>;
|
|
@@ -428,11 +430,11 @@ declare const UserPromptResponseMessageSchema: z.ZodObject<{
|
|
|
428
430
|
type: z.ZodString;
|
|
429
431
|
description: z.ZodString;
|
|
430
432
|
props: z.ZodObject<{
|
|
431
|
-
query: z.ZodOptional<z.ZodString
|
|
433
|
+
query: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
432
434
|
title: z.ZodOptional<z.ZodString>;
|
|
433
435
|
description: z.ZodOptional<z.ZodString>;
|
|
434
436
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
435
|
-
}, z.core.$
|
|
437
|
+
}, z.core.$loose>;
|
|
436
438
|
category: z.ZodOptional<z.ZodString>;
|
|
437
439
|
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
438
440
|
}, z.core.$strip>>;
|
|
@@ -448,6 +450,7 @@ type UserPromptResponseMessage = z.infer<typeof UserPromptResponseMessageSchema>
|
|
|
448
450
|
*/
|
|
449
451
|
declare const UserPromptSuggestionsRequestPayloadSchema: z.ZodObject<{
|
|
450
452
|
prompt: z.ZodString;
|
|
453
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
451
454
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
452
455
|
}, z.core.$strip>;
|
|
453
456
|
type UserPromptSuggestionsRequestPayload = z.infer<typeof UserPromptSuggestionsRequestPayloadSchema>;
|
|
@@ -468,6 +471,7 @@ declare const UserPromptSuggestionsRequestMessageSchema: z.ZodObject<{
|
|
|
468
471
|
}, z.core.$strip>>;
|
|
469
472
|
payload: z.ZodObject<{
|
|
470
473
|
prompt: z.ZodString;
|
|
474
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
471
475
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
472
476
|
}, z.core.$strip>;
|
|
473
477
|
}, z.core.$strip>;
|
|
@@ -487,11 +491,11 @@ declare const UserPromptSuggestionsResponsePayloadSchema: z.ZodObject<{
|
|
|
487
491
|
type: z.ZodString;
|
|
488
492
|
description: z.ZodString;
|
|
489
493
|
props: z.ZodObject<{
|
|
490
|
-
query: z.ZodOptional<z.ZodString
|
|
494
|
+
query: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
491
495
|
title: z.ZodOptional<z.ZodString>;
|
|
492
496
|
description: z.ZodOptional<z.ZodString>;
|
|
493
497
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
494
|
-
}, z.core.$
|
|
498
|
+
}, z.core.$loose>;
|
|
495
499
|
category: z.ZodOptional<z.ZodString>;
|
|
496
500
|
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
497
501
|
}, z.core.$strip>>;
|
|
@@ -525,11 +529,11 @@ declare const UserPromptSuggestionsResponseMessageSchema: z.ZodObject<{
|
|
|
525
529
|
type: z.ZodString;
|
|
526
530
|
description: z.ZodString;
|
|
527
531
|
props: z.ZodObject<{
|
|
528
|
-
query: z.ZodOptional<z.ZodString
|
|
532
|
+
query: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
529
533
|
title: z.ZodOptional<z.ZodString>;
|
|
530
534
|
description: z.ZodOptional<z.ZodString>;
|
|
531
535
|
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
532
|
-
}, z.core.$
|
|
536
|
+
}, z.core.$loose>;
|
|
533
537
|
category: z.ZodOptional<z.ZodString>;
|
|
534
538
|
keywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
535
539
|
}, z.core.$strip>>;
|
|
@@ -780,6 +784,7 @@ type UILogsMessage = z.infer<typeof UILogsMessageSchema>;
|
|
|
780
784
|
* Synced with sdk-nodejs: ActionsRequestPayloadSchema
|
|
781
785
|
*/
|
|
782
786
|
declare const ActionsRequestPayloadSchema: z.ZodObject<{
|
|
787
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
783
788
|
SA_RUNTIME: z.ZodOptional<z.ZodObject<{
|
|
784
789
|
threadId: z.ZodString;
|
|
785
790
|
uiBlockId: z.ZodString;
|
|
@@ -794,6 +799,7 @@ declare const ActionsRequestMessageSchema: z.ZodObject<{
|
|
|
794
799
|
}, z.core.$strip>;
|
|
795
800
|
type: z.ZodLiteral<"ACTIONS">;
|
|
796
801
|
payload: z.ZodObject<{
|
|
802
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
797
803
|
SA_RUNTIME: z.ZodOptional<z.ZodObject<{
|
|
798
804
|
threadId: z.ZodString;
|
|
799
805
|
uiBlockId: z.ZodString;
|
|
@@ -1207,21 +1213,23 @@ declare function sendAuthVerifyRequest(client: SuperatomClient, token: string, t
|
|
|
1207
1213
|
* @param prompt - User's prompt text
|
|
1208
1214
|
* @param threadId - Thread ID for conversation context
|
|
1209
1215
|
* @param uiBlockId - UI block ID for context
|
|
1216
|
+
* @param userId - User ID for the request
|
|
1210
1217
|
* @param responseMode - 'component' for component response (default), 'text' for text streaming
|
|
1211
1218
|
* @param onStream - Optional callback for streaming text chunks (only for text mode)
|
|
1212
1219
|
* @param timeout - Request timeout in milliseconds
|
|
1213
1220
|
* @returns Server response message
|
|
1214
1221
|
*/
|
|
1215
|
-
declare function sendUserPromptRequest(client: SuperatomClient, prompt: string, threadId: string, uiBlockId: string, responseMode?: 'component' | 'text', onStream?: (chunk: string) => void, timeout?: number): Promise<Message>;
|
|
1222
|
+
declare function sendUserPromptRequest(client: SuperatomClient, prompt: string, threadId: string, uiBlockId: string, userId?: string, responseMode?: 'component' | 'text', onStream?: (chunk: string) => void, timeout?: number): Promise<Message>;
|
|
1216
1223
|
/**
|
|
1217
1224
|
* Send a user prompt suggestions request
|
|
1218
1225
|
* @param client - SuperatomClient instance
|
|
1219
1226
|
* @param prompt - User's partial prompt text
|
|
1227
|
+
* @param userId - User ID for the request
|
|
1220
1228
|
* @param limit - Maximum number of suggestions to return
|
|
1221
1229
|
* @param timeout - Request timeout in milliseconds
|
|
1222
1230
|
* @returns Server response message or null if prompt is empty
|
|
1223
1231
|
*/
|
|
1224
|
-
declare function sendUserPromptSuggestionsRequest(client: SuperatomClient, prompt: string, limit?: number, timeout?: number): Promise<Message | null>;
|
|
1232
|
+
declare function sendUserPromptSuggestionsRequest(client: SuperatomClient, prompt: string, userId?: string, limit?: number, timeout?: number): Promise<Message | null>;
|
|
1225
1233
|
|
|
1226
1234
|
/**
|
|
1227
1235
|
* Bundle Service
|
|
@@ -1826,6 +1834,7 @@ declare function queryBookmarks(client: SuperatomClient, options?: QueryBookmark
|
|
|
1826
1834
|
}>;
|
|
1827
1835
|
|
|
1828
1836
|
declare function getActions(client: SuperatomClient, options: {
|
|
1837
|
+
userId?: string;
|
|
1829
1838
|
SA_RUNTIME?: Record<string, unknown>;
|
|
1830
1839
|
timeout?: number;
|
|
1831
1840
|
}): Promise<{
|
|
@@ -2192,6 +2201,10 @@ declare function getKbNodeTags(client: SuperatomClient, timeout?: number): Promi
|
|
|
2192
2201
|
* Handles DASH_COMP_REQ messages for picking components and generating props
|
|
2193
2202
|
*/
|
|
2194
2203
|
|
|
2204
|
+
/**
|
|
2205
|
+
* Request type for dashboard component
|
|
2206
|
+
*/
|
|
2207
|
+
type DashCompReqType = 'create' | 'update' | 'filter';
|
|
2195
2208
|
/**
|
|
2196
2209
|
* Response type for dashboard component request
|
|
2197
2210
|
*/
|
|
@@ -2201,6 +2214,9 @@ interface DashCompResponse {
|
|
|
2201
2214
|
component?: Component;
|
|
2202
2215
|
reasoning?: string;
|
|
2203
2216
|
dataSource?: 'database' | 'external_tool' | 'none';
|
|
2217
|
+
filterComponent?: Component;
|
|
2218
|
+
updatedComponents?: Component[];
|
|
2219
|
+
filterBindings?: Record<string, unknown>;
|
|
2204
2220
|
}
|
|
2205
2221
|
/**
|
|
2206
2222
|
* Options for dashboard component request
|
|
@@ -2208,12 +2224,18 @@ interface DashCompResponse {
|
|
|
2208
2224
|
interface DashCompRequestOptions {
|
|
2209
2225
|
/** User's prompt describing what component they need */
|
|
2210
2226
|
prompt: string;
|
|
2227
|
+
/** User ID for the request */
|
|
2228
|
+
userId?: string;
|
|
2211
2229
|
/** Optional thread ID for conversation context */
|
|
2212
2230
|
threadId?: string;
|
|
2213
2231
|
/** Optional UI block ID for context */
|
|
2214
2232
|
uiBlockId?: string;
|
|
2215
2233
|
/** Request timeout in milliseconds */
|
|
2216
2234
|
timeout?: number;
|
|
2235
|
+
/** Existing components on the dashboard (for filter/update requests) */
|
|
2236
|
+
existingComponents?: Component[];
|
|
2237
|
+
/** Request type: 'create' for new component, 'update' for modifying, 'filter' for creating filter */
|
|
2238
|
+
reqType?: DashCompReqType;
|
|
2217
2239
|
}
|
|
2218
2240
|
/**
|
|
2219
2241
|
* Send a dashboard component request
|
|
@@ -2255,6 +2277,7 @@ type index_CreateBookmarkOptions = CreateBookmarkOptions;
|
|
|
2255
2277
|
type index_CreateDashboardOptions = CreateDashboardOptions;
|
|
2256
2278
|
type index_CreateReportOptions = CreateReportOptions;
|
|
2257
2279
|
type index_CreateUIOptions = CreateUIOptions;
|
|
2280
|
+
type index_DashCompReqType = DashCompReqType;
|
|
2258
2281
|
type index_DashCompRequestOptions = DashCompRequestOptions;
|
|
2259
2282
|
type index_DashCompResponse = DashCompResponse;
|
|
2260
2283
|
type index_Dashboard = Dashboard;
|
|
@@ -2335,7 +2358,7 @@ declare const index_updateReport: typeof updateReport;
|
|
|
2335
2358
|
declare const index_updateUI: typeof updateUI;
|
|
2336
2359
|
declare const index_updateUser: typeof updateUser;
|
|
2337
2360
|
declare namespace index {
|
|
2338
|
-
export { type index_Binding as Binding, index_BindingSchema as BindingSchema, type index_Bookmark as Bookmark, type index_CreateBookmarkOptions as CreateBookmarkOptions, type index_CreateDashboardOptions as CreateDashboardOptions, type index_CreateReportOptions as CreateReportOptions, type index_CreateUIOptions as CreateUIOptions, type DSLRendererProps$2 as DSLRendererProps, DSLRendererPropsSchema$2 as DSLRendererPropsSchema, type index_DashCompRequestOptions as DashCompRequestOptions, type index_DashCompResponse as DashCompResponse, type index_Dashboard as Dashboard, type index_Expression as Expression, index_ExpressionSchema as ExpressionSchema, type index_ForDirective as ForDirective, index_ForDirectiveSchema as ForDirectiveSchema, type index_KbNode as KbNode, type index_Page as Page, index_PageSchema as PageSchema, type index_QueryBookmarksOptions as QueryBookmarksOptions, type index_QueryDashboardsOptions as QueryDashboardsOptions, type index_QueryReportsOptions as QueryReportsOptions, type index_QuerySpec as QuerySpec, index_QuerySpecSchema as QuerySpecSchema, type index_QueryUIsOptions as QueryUIsOptions, type index_QueryUsersOptions as QueryUsersOptions, type index_Report as Report, type DSLRendererProps$1 as ReportDSLRendererProps, type index_SearchKbNodesOptions as SearchKbNodesOptions, type index_UI as UI, type index_UIComponent as UIComponent, index_UIComponentSchema as UIComponentSchema, type DSLRendererProps as UIDSLRendererProps, type index_UIElement as UIElement, index_UIElementSchema as UIElementSchema, type index_UpdateBookmarkOptions as UpdateBookmarkOptions, type index_UpdateDashboardOptions as UpdateDashboardOptions, type index_UpdateReportOptions as UpdateReportOptions, type index_UpdateUIOptions as UpdateUIOptions, type index_User as User, index_createBookmark as createBookmark, index_createDashboard as createDashboard, index_createKbNode as createKbNode, index_createReport as createReport, index_createUI as createUI, index_createUser as createUser, index_deleteBookmark as deleteBookmark, index_deleteDashboard as deleteDashboard, index_deleteKbNode as deleteKbNode, index_deleteReport as deleteReport, index_deleteUI as deleteUI, index_deleteUser as deleteUser, index_getActions as getActions, index_getAllBookmarks as getAllBookmarks, index_getAllDashboards as getAllDashboards, index_getAllKbNodes as getAllKbNodes, index_getAllReports as getAllReports, index_getAllUIs as getAllUIs, index_getAllUsers as getAllUsers, index_getBookmark as getBookmark, index_getComponentSuggestions as getComponentSuggestions, index_getDashboard as getDashboard, index_getKbNode as getKbNode, index_getKbNodeCategories as getKbNodeCategories, index_getKbNodeTags as getKbNodeTags, index_getKbNodesByCategory as getKbNodesByCategory, index_getKbNodesByUser as getKbNodesByUser, index_getReport as getReport, index_getUI as getUI, index_getUser as getUser, index_queryBookmarks as queryBookmarks, index_queryDashboards as queryDashboards, index_queryReports as queryReports, index_queryUIs as queryUIs, index_queryUsers as queryUsers, index_requestBundle as requestBundle, index_requestData as requestData, index_searchKbNodes as searchKbNodes, index_sendAuthLoginRequest as sendAuthLoginRequest, index_sendAuthVerifyRequest as sendAuthVerifyRequest, index_sendComponents as sendComponents, index_sendDashCompRequest as sendDashCompRequest, index_sendUserPromptRequest as sendUserPromptRequest, index_sendUserPromptSuggestionsRequest as sendUserPromptSuggestionsRequest, index_updateBookmark as updateBookmark, index_updateDashboard as updateDashboard, index_updateKbNode as updateKbNode, index_updateReport as updateReport, index_updateUI as updateUI, index_updateUser as updateUser };
|
|
2361
|
+
export { type index_Binding as Binding, index_BindingSchema as BindingSchema, type index_Bookmark as Bookmark, type index_CreateBookmarkOptions as CreateBookmarkOptions, type index_CreateDashboardOptions as CreateDashboardOptions, type index_CreateReportOptions as CreateReportOptions, type index_CreateUIOptions as CreateUIOptions, type DSLRendererProps$2 as DSLRendererProps, DSLRendererPropsSchema$2 as DSLRendererPropsSchema, type index_DashCompReqType as DashCompReqType, type index_DashCompRequestOptions as DashCompRequestOptions, type index_DashCompResponse as DashCompResponse, type index_Dashboard as Dashboard, type index_Expression as Expression, index_ExpressionSchema as ExpressionSchema, type index_ForDirective as ForDirective, index_ForDirectiveSchema as ForDirectiveSchema, type index_KbNode as KbNode, type index_Page as Page, index_PageSchema as PageSchema, type index_QueryBookmarksOptions as QueryBookmarksOptions, type index_QueryDashboardsOptions as QueryDashboardsOptions, type index_QueryReportsOptions as QueryReportsOptions, type index_QuerySpec as QuerySpec, index_QuerySpecSchema as QuerySpecSchema, type index_QueryUIsOptions as QueryUIsOptions, type index_QueryUsersOptions as QueryUsersOptions, type index_Report as Report, type DSLRendererProps$1 as ReportDSLRendererProps, type index_SearchKbNodesOptions as SearchKbNodesOptions, type index_UI as UI, type index_UIComponent as UIComponent, index_UIComponentSchema as UIComponentSchema, type DSLRendererProps as UIDSLRendererProps, type index_UIElement as UIElement, index_UIElementSchema as UIElementSchema, type index_UpdateBookmarkOptions as UpdateBookmarkOptions, type index_UpdateDashboardOptions as UpdateDashboardOptions, type index_UpdateReportOptions as UpdateReportOptions, type index_UpdateUIOptions as UpdateUIOptions, type index_User as User, index_createBookmark as createBookmark, index_createDashboard as createDashboard, index_createKbNode as createKbNode, index_createReport as createReport, index_createUI as createUI, index_createUser as createUser, index_deleteBookmark as deleteBookmark, index_deleteDashboard as deleteDashboard, index_deleteKbNode as deleteKbNode, index_deleteReport as deleteReport, index_deleteUI as deleteUI, index_deleteUser as deleteUser, index_getActions as getActions, index_getAllBookmarks as getAllBookmarks, index_getAllDashboards as getAllDashboards, index_getAllKbNodes as getAllKbNodes, index_getAllReports as getAllReports, index_getAllUIs as getAllUIs, index_getAllUsers as getAllUsers, index_getBookmark as getBookmark, index_getComponentSuggestions as getComponentSuggestions, index_getDashboard as getDashboard, index_getKbNode as getKbNode, index_getKbNodeCategories as getKbNodeCategories, index_getKbNodeTags as getKbNodeTags, index_getKbNodesByCategory as getKbNodesByCategory, index_getKbNodesByUser as getKbNodesByUser, index_getReport as getReport, index_getUI as getUI, index_getUser as getUser, index_queryBookmarks as queryBookmarks, index_queryDashboards as queryDashboards, index_queryReports as queryReports, index_queryUIs as queryUIs, index_queryUsers as queryUsers, index_requestBundle as requestBundle, index_requestData as requestData, index_searchKbNodes as searchKbNodes, index_sendAuthLoginRequest as sendAuthLoginRequest, index_sendAuthVerifyRequest as sendAuthVerifyRequest, index_sendComponents as sendComponents, index_sendDashCompRequest as sendDashCompRequest, index_sendUserPromptRequest as sendUserPromptRequest, index_sendUserPromptSuggestionsRequest as sendUserPromptSuggestionsRequest, index_updateBookmark as updateBookmark, index_updateDashboard as updateDashboard, index_updateKbNode as updateKbNode, index_updateReport as updateReport, index_updateUI as updateUI, index_updateUser as updateUser };
|
|
2339
2362
|
}
|
|
2340
2363
|
|
|
2341
2364
|
type MessageHandler = (message: Message) => void;
|
|
@@ -2467,15 +2490,17 @@ declare class SuperatomClient {
|
|
|
2467
2490
|
/**
|
|
2468
2491
|
* Send a user prompt request
|
|
2469
2492
|
* Delegates to user prompt service
|
|
2493
|
+
* @param userId - User ID for the request
|
|
2470
2494
|
* @param responseMode - 'component' for component response (default), 'text' for text streaming
|
|
2471
2495
|
* @param onStream - Optional callback for streaming text chunks (only for text mode)
|
|
2472
2496
|
*/
|
|
2473
|
-
sendUserPromptRequest(prompt: string, threadId: string, uiBlockId: string, responseMode?: 'component' | 'text', onStream?: (chunk: string) => void, timeout?: number): Promise<Message>;
|
|
2497
|
+
sendUserPromptRequest(prompt: string, threadId: string, uiBlockId: string, userId?: string, responseMode?: 'component' | 'text', onStream?: (chunk: string) => void, timeout?: number): Promise<Message>;
|
|
2474
2498
|
/**
|
|
2475
2499
|
* Send a user prompt suggestions request
|
|
2476
2500
|
* Delegates to user prompt service
|
|
2501
|
+
* @param userId - User ID for the request
|
|
2477
2502
|
*/
|
|
2478
|
-
sendUserPromptSuggestionsRequest(prompt: string, limit?: number, timeout?: number): Promise<Message | null>;
|
|
2503
|
+
sendUserPromptSuggestionsRequest(prompt: string, userId?: string, limit?: number, timeout?: number): Promise<Message | null>;
|
|
2479
2504
|
/**
|
|
2480
2505
|
* Request bundle from server
|
|
2481
2506
|
* Delegates to bundle service
|
|
@@ -2515,8 +2540,10 @@ declare class SuperatomClient {
|
|
|
2515
2540
|
/**
|
|
2516
2541
|
* Get AI-powered component suggestions based on a query
|
|
2517
2542
|
* Delegates to component service
|
|
2543
|
+
* @param userId - User ID for the request
|
|
2518
2544
|
*/
|
|
2519
2545
|
getActions(options: {
|
|
2546
|
+
userId?: string;
|
|
2520
2547
|
SA_RUNTIME?: Record<string, unknown>;
|
|
2521
2548
|
timeout?: number;
|
|
2522
2549
|
}): Promise<{
|