@superatomai/sdk-web 0.0.24 → 0.0.26

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
@@ -1254,6 +1254,8 @@ interface MenuData {
1254
1254
  createdAt?: string;
1255
1255
  updatedAt?: string;
1256
1256
  children?: MenuData[];
1257
+ menuJson?: Record<string, unknown> | null;
1258
+ version?: number;
1257
1259
  }
1258
1260
  /**
1259
1261
  * Menu data schema
@@ -2098,6 +2100,11 @@ interface CreateArtifactOptions {
2098
2100
  createdBy?: number;
2099
2101
  dsl?: Record<string, any>;
2100
2102
  status?: string;
2103
+ type?: string;
2104
+ menuId?: number;
2105
+ artifactGroupName?: string;
2106
+ artifactGroupId?: string;
2107
+ artifactGroupIcon?: string;
2101
2108
  }
2102
2109
  /**
2103
2110
  * Create a new artifact
@@ -2175,6 +2182,37 @@ declare function getArtifact(client: SuperatomClient, id: number, timeout?: numb
2175
2182
  data?: ArtifactData;
2176
2183
  message?: string;
2177
2184
  }>;
2185
+ /**
2186
+ * Query artifacts filters
2187
+ */
2188
+ interface QueryArtifactsFilters {
2189
+ createdBy?: number;
2190
+ status?: string;
2191
+ name?: string;
2192
+ deleted?: boolean;
2193
+ }
2194
+ /**
2195
+ * Query artifacts options
2196
+ */
2197
+ interface QueryArtifactsOptions {
2198
+ filters?: QueryArtifactsFilters;
2199
+ limit?: number;
2200
+ sort?: 'ASC' | 'DESC';
2201
+ }
2202
+ /**
2203
+ * Query artifacts with filters
2204
+ * @param client - SuperatomClient instance
2205
+ * @param options - Query options with filters, limit, and sort
2206
+ * @param timeout - Request timeout in milliseconds
2207
+ * @returns Server response with list of matching artifacts
2208
+ */
2209
+ declare function queryArtifacts(client: SuperatomClient, options?: QueryArtifactsOptions, timeout?: number): Promise<{
2210
+ success: boolean;
2211
+ error?: string;
2212
+ data?: ArtifactData[];
2213
+ count?: number;
2214
+ message?: string;
2215
+ }>;
2178
2216
 
2179
2217
  declare function getActions(client: SuperatomClient, options: {
2180
2218
  userId?: string;
@@ -2637,6 +2675,8 @@ interface Menu {
2637
2675
  createdAt?: string;
2638
2676
  updatedAt?: string;
2639
2677
  children?: Menu[];
2678
+ menuJson?: Record<string, unknown> | null;
2679
+ version?: number;
2640
2680
  }
2641
2681
  /**
2642
2682
  * Create menu options
@@ -2841,6 +2881,8 @@ type index_KbNodeType = KbNodeType;
2841
2881
  type index_Menu = Menu;
2842
2882
  type index_Page = Page;
2843
2883
  declare const index_PageSchema: typeof PageSchema;
2884
+ type index_QueryArtifactsFilters = QueryArtifactsFilters;
2885
+ type index_QueryArtifactsOptions = QueryArtifactsOptions;
2844
2886
  type index_QueryBookmarksOptions = QueryBookmarksOptions;
2845
2887
  type index_QueryDashboardsOptions = QueryDashboardsOptions;
2846
2888
  type index_QueryMenusOptions = QueryMenusOptions;
@@ -2905,6 +2947,7 @@ declare const index_getReport: typeof getReport;
2905
2947
  declare const index_getRootMenus: typeof getRootMenus;
2906
2948
  declare const index_getUI: typeof getUI;
2907
2949
  declare const index_getUser: typeof getUser;
2950
+ declare const index_queryArtifacts: typeof queryArtifacts;
2908
2951
  declare const index_queryBookmarks: typeof queryBookmarks;
2909
2952
  declare const index_queryDashboards: typeof queryDashboards;
2910
2953
  declare const index_queryMenus: typeof queryMenus;
@@ -2930,7 +2973,7 @@ declare const index_updateReport: typeof updateReport;
2930
2973
  declare const index_updateUI: typeof updateUI;
2931
2974
  declare const index_updateUser: typeof updateUser;
2932
2975
  declare namespace index {
2933
- export { type index_Artifact as Artifact, type index_Binding as Binding, index_BindingSchema as BindingSchema, type index_Bookmark as Bookmark, type index_CreateArtifactOptions as CreateArtifactOptions, type index_CreateBookmarkOptions as CreateBookmarkOptions, type index_CreateDashboardOptions as CreateDashboardOptions, type index_CreateMenuOptions as CreateMenuOptions, 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_KbNodeType as KbNodeType, type index_Menu as Menu, type index_Page as Page, index_PageSchema as PageSchema, type index_QueryBookmarksOptions as QueryBookmarksOptions, type index_QueryDashboardsOptions as QueryDashboardsOptions, type index_QueryMenusOptions as QueryMenusOptions, 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_ReorderMenuItem as ReorderMenuItem, 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_UpdateArtifactOptions as UpdateArtifactOptions, type index_UpdateBookmarkOptions as UpdateBookmarkOptions, type index_UpdateDashboardOptions as UpdateDashboardOptions, type index_UpdateMenuOptions as UpdateMenuOptions, type index_UpdateReportOptions as UpdateReportOptions, type index_UpdateUIOptions as UpdateUIOptions, type index_User as User, index_createArtifact as createArtifact, index_createBookmark as createBookmark, index_createDashboard as createDashboard, index_createKbNode as createKbNode, index_createMenu as createMenu, index_createReport as createReport, index_createUI as createUI, index_createUser as createUser, index_deleteArtifact as deleteArtifact, index_deleteBookmark as deleteBookmark, index_deleteDashboard as deleteDashboard, index_deleteKbNode as deleteKbNode, index_deleteMenu as deleteMenu, index_deleteReport as deleteReport, index_deleteUI as deleteUI, index_deleteUser as deleteUser, index_getActions as getActions, index_getAllArtifacts as getAllArtifacts, index_getAllBookmarks as getAllBookmarks, index_getAllDashboards as getAllDashboards, index_getAllKbNodes as getAllKbNodes, index_getAllMenus as getAllMenus, index_getAllReports as getAllReports, index_getAllUIs as getAllUIs, index_getAllUsers as getAllUsers, index_getArtifact as getArtifact, index_getBookmark as getBookmark, index_getChildMenus as getChildMenus, 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_getMenu as getMenu, index_getMenusHierarchy as getMenusHierarchy, index_getReport as getReport, index_getRootMenus as getRootMenus, index_getUI as getUI, index_getUser as getUser, index_queryBookmarks as queryBookmarks, index_queryDashboards as queryDashboards, index_queryMenus as queryMenus, index_queryReports as queryReports, index_queryUIs as queryUIs, index_queryUsers as queryUsers, index_reorderMenus as reorderMenus, 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_updateArtifact as updateArtifact, index_updateBookmark as updateBookmark, index_updateDashboard as updateDashboard, index_updateKbNode as updateKbNode, index_updateMenu as updateMenu, index_updateReport as updateReport, index_updateUI as updateUI, index_updateUser as updateUser };
2976
+ export { type index_Artifact as Artifact, type index_Binding as Binding, index_BindingSchema as BindingSchema, type index_Bookmark as Bookmark, type index_CreateArtifactOptions as CreateArtifactOptions, type index_CreateBookmarkOptions as CreateBookmarkOptions, type index_CreateDashboardOptions as CreateDashboardOptions, type index_CreateMenuOptions as CreateMenuOptions, 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_KbNodeType as KbNodeType, type index_Menu as Menu, type index_Page as Page, index_PageSchema as PageSchema, type index_QueryArtifactsFilters as QueryArtifactsFilters, type index_QueryArtifactsOptions as QueryArtifactsOptions, type index_QueryBookmarksOptions as QueryBookmarksOptions, type index_QueryDashboardsOptions as QueryDashboardsOptions, type index_QueryMenusOptions as QueryMenusOptions, 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_ReorderMenuItem as ReorderMenuItem, 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_UpdateArtifactOptions as UpdateArtifactOptions, type index_UpdateBookmarkOptions as UpdateBookmarkOptions, type index_UpdateDashboardOptions as UpdateDashboardOptions, type index_UpdateMenuOptions as UpdateMenuOptions, type index_UpdateReportOptions as UpdateReportOptions, type index_UpdateUIOptions as UpdateUIOptions, type index_User as User, index_createArtifact as createArtifact, index_createBookmark as createBookmark, index_createDashboard as createDashboard, index_createKbNode as createKbNode, index_createMenu as createMenu, index_createReport as createReport, index_createUI as createUI, index_createUser as createUser, index_deleteArtifact as deleteArtifact, index_deleteBookmark as deleteBookmark, index_deleteDashboard as deleteDashboard, index_deleteKbNode as deleteKbNode, index_deleteMenu as deleteMenu, index_deleteReport as deleteReport, index_deleteUI as deleteUI, index_deleteUser as deleteUser, index_getActions as getActions, index_getAllArtifacts as getAllArtifacts, index_getAllBookmarks as getAllBookmarks, index_getAllDashboards as getAllDashboards, index_getAllKbNodes as getAllKbNodes, index_getAllMenus as getAllMenus, index_getAllReports as getAllReports, index_getAllUIs as getAllUIs, index_getAllUsers as getAllUsers, index_getArtifact as getArtifact, index_getBookmark as getBookmark, index_getChildMenus as getChildMenus, 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_getMenu as getMenu, index_getMenusHierarchy as getMenusHierarchy, index_getReport as getReport, index_getRootMenus as getRootMenus, index_getUI as getUI, index_getUser as getUser, index_queryArtifacts as queryArtifacts, index_queryBookmarks as queryBookmarks, index_queryDashboards as queryDashboards, index_queryMenus as queryMenus, index_queryReports as queryReports, index_queryUIs as queryUIs, index_queryUsers as queryUsers, index_reorderMenus as reorderMenus, 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_updateArtifact as updateArtifact, index_updateBookmark as updateBookmark, index_updateDashboard as updateDashboard, index_updateKbNode as updateKbNode, index_updateMenu as updateMenu, index_updateReport as updateReport, index_updateUI as updateUI, index_updateUser as updateUser };
2934
2977
  }
2935
2978
 
2936
2979
  type MessageHandler = (message: Message) => void;
@@ -3381,6 +3424,17 @@ declare class SuperatomClient {
3381
3424
  data?: Artifact;
3382
3425
  message?: string;
3383
3426
  }>;
3427
+ /**
3428
+ * Query artifacts with filters
3429
+ * Delegates to artifacts service
3430
+ */
3431
+ queryArtifacts(options?: QueryArtifactsOptions, timeout?: number): Promise<{
3432
+ success: boolean;
3433
+ error?: string;
3434
+ data?: Artifact[];
3435
+ count?: number;
3436
+ message?: string;
3437
+ }>;
3384
3438
  /**
3385
3439
  * Create a new report
3386
3440
  * Delegates to reports service
package/dist/index.d.ts CHANGED
@@ -1254,6 +1254,8 @@ interface MenuData {
1254
1254
  createdAt?: string;
1255
1255
  updatedAt?: string;
1256
1256
  children?: MenuData[];
1257
+ menuJson?: Record<string, unknown> | null;
1258
+ version?: number;
1257
1259
  }
1258
1260
  /**
1259
1261
  * Menu data schema
@@ -2098,6 +2100,11 @@ interface CreateArtifactOptions {
2098
2100
  createdBy?: number;
2099
2101
  dsl?: Record<string, any>;
2100
2102
  status?: string;
2103
+ type?: string;
2104
+ menuId?: number;
2105
+ artifactGroupName?: string;
2106
+ artifactGroupId?: string;
2107
+ artifactGroupIcon?: string;
2101
2108
  }
2102
2109
  /**
2103
2110
  * Create a new artifact
@@ -2175,6 +2182,37 @@ declare function getArtifact(client: SuperatomClient, id: number, timeout?: numb
2175
2182
  data?: ArtifactData;
2176
2183
  message?: string;
2177
2184
  }>;
2185
+ /**
2186
+ * Query artifacts filters
2187
+ */
2188
+ interface QueryArtifactsFilters {
2189
+ createdBy?: number;
2190
+ status?: string;
2191
+ name?: string;
2192
+ deleted?: boolean;
2193
+ }
2194
+ /**
2195
+ * Query artifacts options
2196
+ */
2197
+ interface QueryArtifactsOptions {
2198
+ filters?: QueryArtifactsFilters;
2199
+ limit?: number;
2200
+ sort?: 'ASC' | 'DESC';
2201
+ }
2202
+ /**
2203
+ * Query artifacts with filters
2204
+ * @param client - SuperatomClient instance
2205
+ * @param options - Query options with filters, limit, and sort
2206
+ * @param timeout - Request timeout in milliseconds
2207
+ * @returns Server response with list of matching artifacts
2208
+ */
2209
+ declare function queryArtifacts(client: SuperatomClient, options?: QueryArtifactsOptions, timeout?: number): Promise<{
2210
+ success: boolean;
2211
+ error?: string;
2212
+ data?: ArtifactData[];
2213
+ count?: number;
2214
+ message?: string;
2215
+ }>;
2178
2216
 
2179
2217
  declare function getActions(client: SuperatomClient, options: {
2180
2218
  userId?: string;
@@ -2637,6 +2675,8 @@ interface Menu {
2637
2675
  createdAt?: string;
2638
2676
  updatedAt?: string;
2639
2677
  children?: Menu[];
2678
+ menuJson?: Record<string, unknown> | null;
2679
+ version?: number;
2640
2680
  }
2641
2681
  /**
2642
2682
  * Create menu options
@@ -2841,6 +2881,8 @@ type index_KbNodeType = KbNodeType;
2841
2881
  type index_Menu = Menu;
2842
2882
  type index_Page = Page;
2843
2883
  declare const index_PageSchema: typeof PageSchema;
2884
+ type index_QueryArtifactsFilters = QueryArtifactsFilters;
2885
+ type index_QueryArtifactsOptions = QueryArtifactsOptions;
2844
2886
  type index_QueryBookmarksOptions = QueryBookmarksOptions;
2845
2887
  type index_QueryDashboardsOptions = QueryDashboardsOptions;
2846
2888
  type index_QueryMenusOptions = QueryMenusOptions;
@@ -2905,6 +2947,7 @@ declare const index_getReport: typeof getReport;
2905
2947
  declare const index_getRootMenus: typeof getRootMenus;
2906
2948
  declare const index_getUI: typeof getUI;
2907
2949
  declare const index_getUser: typeof getUser;
2950
+ declare const index_queryArtifacts: typeof queryArtifacts;
2908
2951
  declare const index_queryBookmarks: typeof queryBookmarks;
2909
2952
  declare const index_queryDashboards: typeof queryDashboards;
2910
2953
  declare const index_queryMenus: typeof queryMenus;
@@ -2930,7 +2973,7 @@ declare const index_updateReport: typeof updateReport;
2930
2973
  declare const index_updateUI: typeof updateUI;
2931
2974
  declare const index_updateUser: typeof updateUser;
2932
2975
  declare namespace index {
2933
- export { type index_Artifact as Artifact, type index_Binding as Binding, index_BindingSchema as BindingSchema, type index_Bookmark as Bookmark, type index_CreateArtifactOptions as CreateArtifactOptions, type index_CreateBookmarkOptions as CreateBookmarkOptions, type index_CreateDashboardOptions as CreateDashboardOptions, type index_CreateMenuOptions as CreateMenuOptions, 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_KbNodeType as KbNodeType, type index_Menu as Menu, type index_Page as Page, index_PageSchema as PageSchema, type index_QueryBookmarksOptions as QueryBookmarksOptions, type index_QueryDashboardsOptions as QueryDashboardsOptions, type index_QueryMenusOptions as QueryMenusOptions, 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_ReorderMenuItem as ReorderMenuItem, 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_UpdateArtifactOptions as UpdateArtifactOptions, type index_UpdateBookmarkOptions as UpdateBookmarkOptions, type index_UpdateDashboardOptions as UpdateDashboardOptions, type index_UpdateMenuOptions as UpdateMenuOptions, type index_UpdateReportOptions as UpdateReportOptions, type index_UpdateUIOptions as UpdateUIOptions, type index_User as User, index_createArtifact as createArtifact, index_createBookmark as createBookmark, index_createDashboard as createDashboard, index_createKbNode as createKbNode, index_createMenu as createMenu, index_createReport as createReport, index_createUI as createUI, index_createUser as createUser, index_deleteArtifact as deleteArtifact, index_deleteBookmark as deleteBookmark, index_deleteDashboard as deleteDashboard, index_deleteKbNode as deleteKbNode, index_deleteMenu as deleteMenu, index_deleteReport as deleteReport, index_deleteUI as deleteUI, index_deleteUser as deleteUser, index_getActions as getActions, index_getAllArtifacts as getAllArtifacts, index_getAllBookmarks as getAllBookmarks, index_getAllDashboards as getAllDashboards, index_getAllKbNodes as getAllKbNodes, index_getAllMenus as getAllMenus, index_getAllReports as getAllReports, index_getAllUIs as getAllUIs, index_getAllUsers as getAllUsers, index_getArtifact as getArtifact, index_getBookmark as getBookmark, index_getChildMenus as getChildMenus, 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_getMenu as getMenu, index_getMenusHierarchy as getMenusHierarchy, index_getReport as getReport, index_getRootMenus as getRootMenus, index_getUI as getUI, index_getUser as getUser, index_queryBookmarks as queryBookmarks, index_queryDashboards as queryDashboards, index_queryMenus as queryMenus, index_queryReports as queryReports, index_queryUIs as queryUIs, index_queryUsers as queryUsers, index_reorderMenus as reorderMenus, 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_updateArtifact as updateArtifact, index_updateBookmark as updateBookmark, index_updateDashboard as updateDashboard, index_updateKbNode as updateKbNode, index_updateMenu as updateMenu, index_updateReport as updateReport, index_updateUI as updateUI, index_updateUser as updateUser };
2976
+ export { type index_Artifact as Artifact, type index_Binding as Binding, index_BindingSchema as BindingSchema, type index_Bookmark as Bookmark, type index_CreateArtifactOptions as CreateArtifactOptions, type index_CreateBookmarkOptions as CreateBookmarkOptions, type index_CreateDashboardOptions as CreateDashboardOptions, type index_CreateMenuOptions as CreateMenuOptions, 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_KbNodeType as KbNodeType, type index_Menu as Menu, type index_Page as Page, index_PageSchema as PageSchema, type index_QueryArtifactsFilters as QueryArtifactsFilters, type index_QueryArtifactsOptions as QueryArtifactsOptions, type index_QueryBookmarksOptions as QueryBookmarksOptions, type index_QueryDashboardsOptions as QueryDashboardsOptions, type index_QueryMenusOptions as QueryMenusOptions, 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_ReorderMenuItem as ReorderMenuItem, 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_UpdateArtifactOptions as UpdateArtifactOptions, type index_UpdateBookmarkOptions as UpdateBookmarkOptions, type index_UpdateDashboardOptions as UpdateDashboardOptions, type index_UpdateMenuOptions as UpdateMenuOptions, type index_UpdateReportOptions as UpdateReportOptions, type index_UpdateUIOptions as UpdateUIOptions, type index_User as User, index_createArtifact as createArtifact, index_createBookmark as createBookmark, index_createDashboard as createDashboard, index_createKbNode as createKbNode, index_createMenu as createMenu, index_createReport as createReport, index_createUI as createUI, index_createUser as createUser, index_deleteArtifact as deleteArtifact, index_deleteBookmark as deleteBookmark, index_deleteDashboard as deleteDashboard, index_deleteKbNode as deleteKbNode, index_deleteMenu as deleteMenu, index_deleteReport as deleteReport, index_deleteUI as deleteUI, index_deleteUser as deleteUser, index_getActions as getActions, index_getAllArtifacts as getAllArtifacts, index_getAllBookmarks as getAllBookmarks, index_getAllDashboards as getAllDashboards, index_getAllKbNodes as getAllKbNodes, index_getAllMenus as getAllMenus, index_getAllReports as getAllReports, index_getAllUIs as getAllUIs, index_getAllUsers as getAllUsers, index_getArtifact as getArtifact, index_getBookmark as getBookmark, index_getChildMenus as getChildMenus, 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_getMenu as getMenu, index_getMenusHierarchy as getMenusHierarchy, index_getReport as getReport, index_getRootMenus as getRootMenus, index_getUI as getUI, index_getUser as getUser, index_queryArtifacts as queryArtifacts, index_queryBookmarks as queryBookmarks, index_queryDashboards as queryDashboards, index_queryMenus as queryMenus, index_queryReports as queryReports, index_queryUIs as queryUIs, index_queryUsers as queryUsers, index_reorderMenus as reorderMenus, 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_updateArtifact as updateArtifact, index_updateBookmark as updateBookmark, index_updateDashboard as updateDashboard, index_updateKbNode as updateKbNode, index_updateMenu as updateMenu, index_updateReport as updateReport, index_updateUI as updateUI, index_updateUser as updateUser };
2934
2977
  }
2935
2978
 
2936
2979
  type MessageHandler = (message: Message) => void;
@@ -3381,6 +3424,17 @@ declare class SuperatomClient {
3381
3424
  data?: Artifact;
3382
3425
  message?: string;
3383
3426
  }>;
3427
+ /**
3428
+ * Query artifacts with filters
3429
+ * Delegates to artifacts service
3430
+ */
3431
+ queryArtifacts(options?: QueryArtifactsOptions, timeout?: number): Promise<{
3432
+ success: boolean;
3433
+ error?: string;
3434
+ data?: Artifact[];
3435
+ count?: number;
3436
+ message?: string;
3437
+ }>;
3384
3438
  /**
3385
3439
  * Create a new report
3386
3440
  * Delegates to reports service
package/dist/index.js CHANGED
@@ -794,8 +794,14 @@ var ArtifactDataSchema = z.object({
794
794
  createdAt: z.string().optional(),
795
795
  updatedAt: z.string().optional()
796
796
  });
797
+ var ArtifactsQueryFiltersSchema = z.object({
798
+ createdBy: z.number().optional(),
799
+ status: z.string().optional(),
800
+ name: z.string().optional(),
801
+ deleted: z.boolean().optional()
802
+ });
797
803
  var ArtifactsRequestPayloadSchema = z.object({
798
- operation: z.enum(["create", "update", "delete", "getAll", "getOne"]),
804
+ operation: z.enum(["create", "update", "delete", "getAll", "getOne", "query"]),
799
805
  data: z.object({
800
806
  id: z.number().optional(),
801
807
  name: z.string().optional(),
@@ -803,7 +809,16 @@ var ArtifactsRequestPayloadSchema = z.object({
803
809
  dsl: z.record(z.string(), z.any()).optional(),
804
810
  status: z.string().optional(),
805
811
  deleted: z.boolean().optional(),
806
- limit: z.number().optional()
812
+ limit: z.number().optional(),
813
+ // Query operation fields
814
+ filters: ArtifactsQueryFiltersSchema.optional(),
815
+ sort: z.enum(["ASC", "DESC"]).optional(),
816
+ // Menu grouping fields
817
+ type: z.string().optional(),
818
+ menuId: z.number().optional(),
819
+ artifactGroupName: z.string().optional(),
820
+ artifactGroupId: z.string().optional(),
821
+ artifactGroupIcon: z.string().optional()
807
822
  }).optional()
808
823
  });
809
824
  var ArtifactsRequestMessageSchema = z.object({
@@ -923,7 +938,9 @@ var MenuDataSchema = z.object({
923
938
  isActive: z.boolean().optional(),
924
939
  createdAt: z.string().optional(),
925
940
  updatedAt: z.string().optional(),
926
- children: z.lazy(() => z.array(MenuDataSchema)).optional()
941
+ children: z.lazy(() => z.array(MenuDataSchema)).optional(),
942
+ menuJson: z.record(z.string(), z.unknown()).nullable().optional(),
943
+ version: z.number().optional()
927
944
  });
928
945
  var MenuQueryFiltersSchema = z.object({
929
946
  parentId: z.number().nullable().optional(),
@@ -1040,6 +1057,7 @@ __export(services_exports, {
1040
1057
  getRootMenus: () => getRootMenus,
1041
1058
  getUI: () => getUI,
1042
1059
  getUser: () => getUser,
1060
+ queryArtifacts: () => queryArtifacts,
1043
1061
  queryBookmarks: () => queryBookmarks,
1044
1062
  queryDashboards: () => queryDashboards,
1045
1063
  queryMenus: () => queryMenus,
@@ -1916,8 +1934,32 @@ async function queryBookmarks(client, options = {}, timeout) {
1916
1934
 
1917
1935
  // src/services/artifacts/index.ts
1918
1936
  async function createArtifact(client, options, timeout) {
1919
- const { name, createdBy, dsl, status } = options;
1937
+ console.log("[SDK-WEB] createArtifact called with options:", JSON.stringify(options, null, 2));
1938
+ const { name, createdBy, dsl, status, type, menuId, artifactGroupName, artifactGroupId, artifactGroupIcon } = options;
1939
+ console.log("[SDK-WEB] Extracted parameters:", JSON.stringify({
1940
+ name,
1941
+ createdBy,
1942
+ dsl: dsl ? "present" : "undefined",
1943
+ status,
1944
+ type,
1945
+ menuId,
1946
+ artifactGroupName,
1947
+ artifactGroupId,
1948
+ artifactGroupIcon
1949
+ }, null, 2));
1920
1950
  const messageId = `artifacts_create_${Date.now()}`;
1951
+ const messageData = {
1952
+ name,
1953
+ createdBy,
1954
+ dsl,
1955
+ status,
1956
+ type,
1957
+ menuId,
1958
+ artifactGroupName,
1959
+ artifactGroupId,
1960
+ artifactGroupIcon
1961
+ };
1962
+ console.log("[SDK-WEB] Sending message data:", JSON.stringify(messageData, null, 2));
1921
1963
  const message = ArtifactsRequestMessageSchema.parse({
1922
1964
  id: messageId,
1923
1965
  type: "ARTIFACTS",
@@ -1925,12 +1967,7 @@ async function createArtifact(client, options, timeout) {
1925
1967
  to: { type: "data-agent" },
1926
1968
  payload: {
1927
1969
  operation: "create",
1928
- data: {
1929
- name,
1930
- createdBy,
1931
- dsl,
1932
- status
1933
- }
1970
+ data: messageData
1934
1971
  }
1935
1972
  });
1936
1973
  const response = await client.sendWithResponse(message, timeout);
@@ -2038,6 +2075,33 @@ async function getArtifact(client, id, timeout) {
2038
2075
  message: payload.message
2039
2076
  };
2040
2077
  }
2078
+ async function queryArtifacts(client, options = {}, timeout) {
2079
+ const { filters, limit, sort } = options;
2080
+ const messageId = `artifacts_query_${Date.now()}`;
2081
+ const message = ArtifactsRequestMessageSchema.parse({
2082
+ id: messageId,
2083
+ type: "ARTIFACTS",
2084
+ from: { type: client.type },
2085
+ to: { type: "data-agent" },
2086
+ payload: {
2087
+ operation: "query",
2088
+ data: {
2089
+ filters,
2090
+ limit,
2091
+ sort
2092
+ }
2093
+ }
2094
+ });
2095
+ const response = await client.sendWithResponse(message, timeout);
2096
+ const payload = response.payload;
2097
+ return {
2098
+ success: payload.success,
2099
+ error: payload.error,
2100
+ data: Array.isArray(payload.data) ? payload.data : payload.data ? [payload.data] : [],
2101
+ count: payload.count,
2102
+ message: payload.message
2103
+ };
2104
+ }
2041
2105
 
2042
2106
  // src/services/actions.ts
2043
2107
  async function getActions(client, options) {
@@ -3331,6 +3395,14 @@ var SuperatomClient = class {
3331
3395
  this.log("info", "Fetching artifact:", id);
3332
3396
  return getArtifact(this, id, timeout);
3333
3397
  }
3398
+ /**
3399
+ * Query artifacts with filters
3400
+ * Delegates to artifacts service
3401
+ */
3402
+ async queryArtifacts(options = {}, timeout) {
3403
+ this.log("info", "Querying artifacts with filters:", JSON.stringify(options.filters));
3404
+ return queryArtifacts(this, options, timeout);
3405
+ }
3334
3406
  // ==================== Report Management Methods ====================
3335
3407
  // These methods delegate to report service for admin report CRUD operations
3336
3408
  /**