@superatomai/sdk-web 0.0.19 → 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
@@ -1436,6 +1444,7 @@ interface Dashboard {
1436
1444
  dashboard?: DSLRendererProps$2;
1437
1445
  createdBy?: number;
1438
1446
  updatedBy?: number;
1447
+ allowedUsers?: number[];
1439
1448
  createdAt?: string;
1440
1449
  updatedAt?: string;
1441
1450
  }
@@ -1449,6 +1458,7 @@ interface CreateDashboardOptions {
1449
1458
  description?: string;
1450
1459
  published?: boolean;
1451
1460
  createdBy?: number;
1461
+ allowedUsers?: number[];
1452
1462
  dashboard?: DSLRendererProps$2;
1453
1463
  }
1454
1464
  /**
@@ -1461,6 +1471,7 @@ interface UpdateDashboardOptions {
1461
1471
  published?: boolean;
1462
1472
  createdBy?: number;
1463
1473
  updatedBy?: number;
1474
+ allowedUsers?: number[];
1464
1475
  dashboard?: DSLRendererProps$2;
1465
1476
  }
1466
1477
  /**
@@ -1823,6 +1834,7 @@ declare function queryBookmarks(client: SuperatomClient, options?: QueryBookmark
1823
1834
  }>;
1824
1835
 
1825
1836
  declare function getActions(client: SuperatomClient, options: {
1837
+ userId?: string;
1826
1838
  SA_RUNTIME?: Record<string, unknown>;
1827
1839
  timeout?: number;
1828
1840
  }): Promise<{
@@ -2189,6 +2201,10 @@ declare function getKbNodeTags(client: SuperatomClient, timeout?: number): Promi
2189
2201
  * Handles DASH_COMP_REQ messages for picking components and generating props
2190
2202
  */
2191
2203
 
2204
+ /**
2205
+ * Request type for dashboard component
2206
+ */
2207
+ type DashCompReqType = 'create' | 'update' | 'filter';
2192
2208
  /**
2193
2209
  * Response type for dashboard component request
2194
2210
  */
@@ -2198,6 +2214,9 @@ interface DashCompResponse {
2198
2214
  component?: Component;
2199
2215
  reasoning?: string;
2200
2216
  dataSource?: 'database' | 'external_tool' | 'none';
2217
+ filterComponent?: Component;
2218
+ updatedComponents?: Component[];
2219
+ filterBindings?: Record<string, unknown>;
2201
2220
  }
2202
2221
  /**
2203
2222
  * Options for dashboard component request
@@ -2205,12 +2224,18 @@ interface DashCompResponse {
2205
2224
  interface DashCompRequestOptions {
2206
2225
  /** User's prompt describing what component they need */
2207
2226
  prompt: string;
2227
+ /** User ID for the request */
2228
+ userId?: string;
2208
2229
  /** Optional thread ID for conversation context */
2209
2230
  threadId?: string;
2210
2231
  /** Optional UI block ID for context */
2211
2232
  uiBlockId?: string;
2212
2233
  /** Request timeout in milliseconds */
2213
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;
2214
2239
  }
2215
2240
  /**
2216
2241
  * Send a dashboard component request
@@ -2252,6 +2277,7 @@ type index_CreateBookmarkOptions = CreateBookmarkOptions;
2252
2277
  type index_CreateDashboardOptions = CreateDashboardOptions;
2253
2278
  type index_CreateReportOptions = CreateReportOptions;
2254
2279
  type index_CreateUIOptions = CreateUIOptions;
2280
+ type index_DashCompReqType = DashCompReqType;
2255
2281
  type index_DashCompRequestOptions = DashCompRequestOptions;
2256
2282
  type index_DashCompResponse = DashCompResponse;
2257
2283
  type index_Dashboard = Dashboard;
@@ -2332,7 +2358,7 @@ declare const index_updateReport: typeof updateReport;
2332
2358
  declare const index_updateUI: typeof updateUI;
2333
2359
  declare const index_updateUser: typeof updateUser;
2334
2360
  declare namespace index {
2335
- 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 };
2336
2362
  }
2337
2363
 
2338
2364
  type MessageHandler = (message: Message) => void;
@@ -2464,15 +2490,17 @@ declare class SuperatomClient {
2464
2490
  /**
2465
2491
  * Send a user prompt request
2466
2492
  * Delegates to user prompt service
2493
+ * @param userId - User ID for the request
2467
2494
  * @param responseMode - 'component' for component response (default), 'text' for text streaming
2468
2495
  * @param onStream - Optional callback for streaming text chunks (only for text mode)
2469
2496
  */
2470
- 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>;
2471
2498
  /**
2472
2499
  * Send a user prompt suggestions request
2473
2500
  * Delegates to user prompt service
2501
+ * @param userId - User ID for the request
2474
2502
  */
2475
- sendUserPromptSuggestionsRequest(prompt: string, limit?: number, timeout?: number): Promise<Message | null>;
2503
+ sendUserPromptSuggestionsRequest(prompt: string, userId?: string, limit?: number, timeout?: number): Promise<Message | null>;
2476
2504
  /**
2477
2505
  * Request bundle from server
2478
2506
  * Delegates to bundle service
@@ -2512,8 +2540,10 @@ declare class SuperatomClient {
2512
2540
  /**
2513
2541
  * Get AI-powered component suggestions based on a query
2514
2542
  * Delegates to component service
2543
+ * @param userId - User ID for the request
2515
2544
  */
2516
2545
  getActions(options: {
2546
+ userId?: string;
2517
2547
  SA_RUNTIME?: Record<string, unknown>;
2518
2548
  timeout?: number;
2519
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
@@ -1436,6 +1444,7 @@ interface Dashboard {
1436
1444
  dashboard?: DSLRendererProps$2;
1437
1445
  createdBy?: number;
1438
1446
  updatedBy?: number;
1447
+ allowedUsers?: number[];
1439
1448
  createdAt?: string;
1440
1449
  updatedAt?: string;
1441
1450
  }
@@ -1449,6 +1458,7 @@ interface CreateDashboardOptions {
1449
1458
  description?: string;
1450
1459
  published?: boolean;
1451
1460
  createdBy?: number;
1461
+ allowedUsers?: number[];
1452
1462
  dashboard?: DSLRendererProps$2;
1453
1463
  }
1454
1464
  /**
@@ -1461,6 +1471,7 @@ interface UpdateDashboardOptions {
1461
1471
  published?: boolean;
1462
1472
  createdBy?: number;
1463
1473
  updatedBy?: number;
1474
+ allowedUsers?: number[];
1464
1475
  dashboard?: DSLRendererProps$2;
1465
1476
  }
1466
1477
  /**
@@ -1823,6 +1834,7 @@ declare function queryBookmarks(client: SuperatomClient, options?: QueryBookmark
1823
1834
  }>;
1824
1835
 
1825
1836
  declare function getActions(client: SuperatomClient, options: {
1837
+ userId?: string;
1826
1838
  SA_RUNTIME?: Record<string, unknown>;
1827
1839
  timeout?: number;
1828
1840
  }): Promise<{
@@ -2189,6 +2201,10 @@ declare function getKbNodeTags(client: SuperatomClient, timeout?: number): Promi
2189
2201
  * Handles DASH_COMP_REQ messages for picking components and generating props
2190
2202
  */
2191
2203
 
2204
+ /**
2205
+ * Request type for dashboard component
2206
+ */
2207
+ type DashCompReqType = 'create' | 'update' | 'filter';
2192
2208
  /**
2193
2209
  * Response type for dashboard component request
2194
2210
  */
@@ -2198,6 +2214,9 @@ interface DashCompResponse {
2198
2214
  component?: Component;
2199
2215
  reasoning?: string;
2200
2216
  dataSource?: 'database' | 'external_tool' | 'none';
2217
+ filterComponent?: Component;
2218
+ updatedComponents?: Component[];
2219
+ filterBindings?: Record<string, unknown>;
2201
2220
  }
2202
2221
  /**
2203
2222
  * Options for dashboard component request
@@ -2205,12 +2224,18 @@ interface DashCompResponse {
2205
2224
  interface DashCompRequestOptions {
2206
2225
  /** User's prompt describing what component they need */
2207
2226
  prompt: string;
2227
+ /** User ID for the request */
2228
+ userId?: string;
2208
2229
  /** Optional thread ID for conversation context */
2209
2230
  threadId?: string;
2210
2231
  /** Optional UI block ID for context */
2211
2232
  uiBlockId?: string;
2212
2233
  /** Request timeout in milliseconds */
2213
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;
2214
2239
  }
2215
2240
  /**
2216
2241
  * Send a dashboard component request
@@ -2252,6 +2277,7 @@ type index_CreateBookmarkOptions = CreateBookmarkOptions;
2252
2277
  type index_CreateDashboardOptions = CreateDashboardOptions;
2253
2278
  type index_CreateReportOptions = CreateReportOptions;
2254
2279
  type index_CreateUIOptions = CreateUIOptions;
2280
+ type index_DashCompReqType = DashCompReqType;
2255
2281
  type index_DashCompRequestOptions = DashCompRequestOptions;
2256
2282
  type index_DashCompResponse = DashCompResponse;
2257
2283
  type index_Dashboard = Dashboard;
@@ -2332,7 +2358,7 @@ declare const index_updateReport: typeof updateReport;
2332
2358
  declare const index_updateUI: typeof updateUI;
2333
2359
  declare const index_updateUser: typeof updateUser;
2334
2360
  declare namespace index {
2335
- 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 };
2336
2362
  }
2337
2363
 
2338
2364
  type MessageHandler = (message: Message) => void;
@@ -2464,15 +2490,17 @@ declare class SuperatomClient {
2464
2490
  /**
2465
2491
  * Send a user prompt request
2466
2492
  * Delegates to user prompt service
2493
+ * @param userId - User ID for the request
2467
2494
  * @param responseMode - 'component' for component response (default), 'text' for text streaming
2468
2495
  * @param onStream - Optional callback for streaming text chunks (only for text mode)
2469
2496
  */
2470
- 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>;
2471
2498
  /**
2472
2499
  * Send a user prompt suggestions request
2473
2500
  * Delegates to user prompt service
2501
+ * @param userId - User ID for the request
2474
2502
  */
2475
- sendUserPromptSuggestionsRequest(prompt: string, limit?: number, timeout?: number): Promise<Message | null>;
2503
+ sendUserPromptSuggestionsRequest(prompt: string, userId?: string, limit?: number, timeout?: number): Promise<Message | null>;
2476
2504
  /**
2477
2505
  * Request bundle from server
2478
2506
  * Delegates to bundle service
@@ -2512,8 +2540,10 @@ declare class SuperatomClient {
2512
2540
  /**
2513
2541
  * Get AI-powered component suggestions based on a query
2514
2542
  * Delegates to component service
2543
+ * @param userId - User ID for the request
2515
2544
  */
2516
2545
  getActions(options: {
2546
+ userId?: string;
2517
2547
  SA_RUNTIME?: Record<string, unknown>;
2518
2548
  timeout?: number;
2519
2549
  }): Promise<{