@superatomai/sdk-web 0.0.20 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -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;
@@ -372,7 +374,7 @@ declare const ComponentSchema: z.ZodObject<{
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.$strip>;
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>;
@@ -395,7 +397,7 @@ declare const UserPromptResponsePayloadSchema: z.ZodObject<{
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.$strip>;
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>>;
@@ -432,7 +434,7 @@ declare const UserPromptResponseMessageSchema: z.ZodObject<{
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.$strip>;
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>;
@@ -491,7 +495,7 @@ declare const UserPromptSuggestionsResponsePayloadSchema: z.ZodObject<{
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.$strip>;
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>>;
@@ -529,7 +533,7 @@ declare const UserPromptSuggestionsResponseMessageSchema: z.ZodObject<{
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.$strip>;
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;
@@ -372,7 +374,7 @@ declare const ComponentSchema: z.ZodObject<{
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.$strip>;
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>;
@@ -395,7 +397,7 @@ declare const UserPromptResponsePayloadSchema: z.ZodObject<{
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.$strip>;
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>>;
@@ -432,7 +434,7 @@ declare const UserPromptResponseMessageSchema: z.ZodObject<{
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.$strip>;
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>;
@@ -491,7 +495,7 @@ declare const UserPromptSuggestionsResponsePayloadSchema: z.ZodObject<{
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.$strip>;
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>>;
@@ -529,7 +533,7 @@ declare const UserPromptSuggestionsResponseMessageSchema: z.ZodObject<{
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.$strip>;
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.js CHANGED
@@ -259,6 +259,7 @@ var AuthVerifyResponseMessageSchema = z.object({
259
259
  });
260
260
  var UserPromptRequestPayloadSchema = z.object({
261
261
  prompt: z.string(),
262
+ userId: z.string().optional(),
262
263
  SA_RUNTIME: z.object({
263
264
  threadId: z.string(),
264
265
  uiBlockId: z.string()
@@ -272,17 +273,18 @@ var UserPromptRequestMessageSchema = z.object({
272
273
  to: MessageParticipantSchema.optional(),
273
274
  payload: UserPromptRequestPayloadSchema
274
275
  });
276
+ var ComponentPropsSchema = z.object({
277
+ query: z.string().optional(),
278
+ title: z.string().optional(),
279
+ description: z.string().optional(),
280
+ config: z.record(z.string(), z.unknown()).optional()
281
+ }).passthrough();
275
282
  var ComponentSchema = z.object({
276
283
  id: z.string(),
277
284
  name: z.string(),
278
285
  type: z.string(),
279
286
  description: z.string(),
280
- props: z.object({
281
- query: z.string().optional(),
282
- title: z.string().optional(),
283
- description: z.string().optional(),
284
- config: z.record(z.string(), z.unknown()).optional()
285
- }),
287
+ props: ComponentPropsSchema,
286
288
  category: z.string().optional(),
287
289
  keywords: z.array(z.string()).optional()
288
290
  });
@@ -304,6 +306,7 @@ var UserPromptResponseMessageSchema = z.object({
304
306
  });
305
307
  var UserPromptSuggestionsRequestPayloadSchema = z.object({
306
308
  prompt: z.string(),
309
+ userId: z.string().optional(),
307
310
  limit: z.number().int().positive().default(5)
308
311
  });
309
312
  var UserPromptSuggestionsRequestMessageSchema = z.object({
@@ -332,10 +335,13 @@ var UserPromptSuggestionsResponseMessageSchema = z.object({
332
335
  });
333
336
  var DashCompRequestPayloadSchema = z.object({
334
337
  prompt: z.string(),
338
+ userId: z.string().optional(),
335
339
  SA_RUNTIME: z.object({
336
340
  threadId: z.string().optional(),
337
341
  uiBlockId: z.string().optional()
338
- }).optional()
342
+ }).optional(),
343
+ existingComponents: z.array(ComponentSchema).optional(),
344
+ req_type: z.enum(["create", "update", "filter"]).optional()
339
345
  });
340
346
  var DashCompRequestMessageSchema = z.object({
341
347
  id: z.string(),
@@ -350,13 +356,24 @@ z.object({
350
356
  action: z.enum(["get", "create", "update", "delete"]),
351
357
  params: z.record(z.string(), z.unknown())
352
358
  });
359
+ z.object({
360
+ filterId: z.string(),
361
+ filterField: z.string(),
362
+ targetComponentId: z.string(),
363
+ targetField: z.string()
364
+ });
353
365
  var DashCompResponsePayloadSchema = z.object({
354
366
  success: z.boolean(),
355
367
  errors: z.array(z.string()).optional(),
356
368
  data: z.object({
369
+ // For create/update requests
357
370
  component: ComponentSchema.optional(),
358
371
  reasoning: z.string().optional(),
359
- dataSource: z.enum(["database", "external_tool", "none"]).optional()
372
+ dataSource: z.enum(["database", "external_tool", "none"]).optional(),
373
+ // For filter requests
374
+ filterComponent: ComponentSchema.optional(),
375
+ updatedComponents: z.array(ComponentSchema).optional(),
376
+ filterBindings: z.record(z.string(), z.unknown()).optional()
360
377
  }).optional()
361
378
  });
362
379
  z.object({
@@ -446,6 +463,7 @@ var UILogsMessageSchema = z.object({
446
463
  payload: UILogsPayloadSchema
447
464
  });
448
465
  var ActionsRequestPayloadSchema = z.object({
466
+ userId: z.string().optional(),
449
467
  SA_RUNTIME: z.object({
450
468
  threadId: z.string(),
451
469
  uiBlockId: z.string()
@@ -957,7 +975,7 @@ async function sendAuthVerifyRequest(client, token, timeout) {
957
975
  }
958
976
 
959
977
  // src/services/userPrompt.ts
960
- async function sendUserPromptRequest(client, prompt, threadId, uiBlockId, responseMode, onStream, timeout) {
978
+ async function sendUserPromptRequest(client, prompt, threadId, uiBlockId, userId, responseMode, onStream, timeout) {
961
979
  const messageId = `user_prompt_req_msg_${Date.now()}`;
962
980
  const message = UserPromptRequestMessageSchema.parse({
963
981
  id: messageId,
@@ -970,6 +988,7 @@ async function sendUserPromptRequest(client, prompt, threadId, uiBlockId, respon
970
988
  },
971
989
  payload: {
972
990
  prompt,
991
+ userId,
973
992
  SA_RUNTIME: {
974
993
  threadId,
975
994
  uiBlockId
@@ -997,7 +1016,7 @@ async function sendUserPromptRequest(client, prompt, threadId, uiBlockId, respon
997
1016
  }
998
1017
  }
999
1018
  }
1000
- async function sendUserPromptSuggestionsRequest(client, prompt, limit = 5, timeout) {
1019
+ async function sendUserPromptSuggestionsRequest(client, prompt, userId, limit = 5, timeout) {
1001
1020
  if (!prompt || prompt.trim().length === 0) {
1002
1021
  return null;
1003
1022
  }
@@ -1013,6 +1032,7 @@ async function sendUserPromptSuggestionsRequest(client, prompt, limit = 5, timeo
1013
1032
  },
1014
1033
  payload: {
1015
1034
  prompt,
1035
+ userId,
1016
1036
  limit
1017
1037
  }
1018
1038
  });
@@ -1772,6 +1792,7 @@ async function getActions(client, options) {
1772
1792
  from: { type: client.type },
1773
1793
  to: { type: "data-agent" },
1774
1794
  payload: {
1795
+ userId: options.userId,
1775
1796
  SA_RUNTIME: options.SA_RUNTIME
1776
1797
  }
1777
1798
  });
@@ -2217,7 +2238,7 @@ async function getKbNodeTags(client, timeout) {
2217
2238
 
2218
2239
  // src/services/dash-comp.ts
2219
2240
  async function sendDashCompRequest(client, options) {
2220
- const { prompt, threadId, uiBlockId, timeout } = options;
2241
+ const { prompt, userId, threadId, uiBlockId, timeout, existingComponents, reqType } = options;
2221
2242
  const messageId = `dash_comp_req_${Date.now()}_${Math.random().toString(36).substring(7)}`;
2222
2243
  const message = DashCompRequestMessageSchema.parse({
2223
2244
  id: messageId,
@@ -2230,10 +2251,13 @@ async function sendDashCompRequest(client, options) {
2230
2251
  },
2231
2252
  payload: {
2232
2253
  prompt,
2254
+ userId,
2233
2255
  SA_RUNTIME: threadId || uiBlockId ? {
2234
2256
  threadId,
2235
2257
  uiBlockId
2236
- } : void 0
2258
+ } : void 0,
2259
+ existingComponents,
2260
+ req_type: reqType
2237
2261
  }
2238
2262
  });
2239
2263
  try {
@@ -2245,6 +2269,15 @@ async function sendDashCompRequest(client, options) {
2245
2269
  errors: payload.errors || ["Unknown error occurred"]
2246
2270
  };
2247
2271
  }
2272
+ if (reqType === "filter") {
2273
+ return {
2274
+ success: true,
2275
+ filterComponent: payload.data?.filterComponent,
2276
+ updatedComponents: payload.data?.updatedComponents,
2277
+ filterBindings: payload.data?.filterBindings,
2278
+ reasoning: payload.data?.reasoning
2279
+ };
2280
+ }
2248
2281
  return {
2249
2282
  success: true,
2250
2283
  component: payload.data?.component,
@@ -2544,20 +2577,22 @@ var SuperatomClient = class {
2544
2577
  /**
2545
2578
  * Send a user prompt request
2546
2579
  * Delegates to user prompt service
2580
+ * @param userId - User ID for the request
2547
2581
  * @param responseMode - 'component' for component response (default), 'text' for text streaming
2548
2582
  * @param onStream - Optional callback for streaming text chunks (only for text mode)
2549
2583
  */
2550
- async sendUserPromptRequest(prompt, threadId, uiBlockId, responseMode, onStream, timeout) {
2584
+ async sendUserPromptRequest(prompt, threadId, uiBlockId, userId, responseMode, onStream, timeout) {
2551
2585
  this.log("info", "Sending user prompt request with streaming support");
2552
- return sendUserPromptRequest(this, prompt, threadId, uiBlockId, responseMode, onStream, timeout);
2586
+ return sendUserPromptRequest(this, prompt, threadId, uiBlockId, userId, responseMode, onStream, timeout);
2553
2587
  }
2554
2588
  /**
2555
2589
  * Send a user prompt suggestions request
2556
2590
  * Delegates to user prompt service
2591
+ * @param userId - User ID for the request
2557
2592
  */
2558
- async sendUserPromptSuggestionsRequest(prompt, limit = 5, timeout) {
2593
+ async sendUserPromptSuggestionsRequest(prompt, userId, limit = 5, timeout) {
2559
2594
  this.log("info", "Sending user prompt suggestions request");
2560
- return sendUserPromptSuggestionsRequest(this, prompt, limit, timeout);
2595
+ return sendUserPromptSuggestionsRequest(this, prompt, userId, limit, timeout);
2561
2596
  }
2562
2597
  /**
2563
2598
  * Request bundle from server
@@ -2586,6 +2621,7 @@ var SuperatomClient = class {
2586
2621
  /**
2587
2622
  * Get AI-powered component suggestions based on a query
2588
2623
  * Delegates to component service
2624
+ * @param userId - User ID for the request
2589
2625
  */
2590
2626
  async getActions(options) {
2591
2627
  this.log("info", "Requesting actions");