@superatomai/sdk-web 0.0.16 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +755 -755
- package/dist/index.cjs +25 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -6
- package/dist/index.d.ts +32 -6
- package/dist/index.js +25 -4
- package/dist/index.js.map +1 -1
- package/package.json +43 -41
package/dist/index.d.cts
CHANGED
|
@@ -45,6 +45,14 @@ declare const QuerySpecSchema: z.ZodObject<{
|
|
|
45
45
|
type QuerySpec = z.infer<typeof QuerySpecSchema>;
|
|
46
46
|
declare const UIElementSchema: z.ZodType<any>;
|
|
47
47
|
type UIElement = z.infer<typeof UIElementSchema>;
|
|
48
|
+
declare const PageSchema: z.ZodObject<{
|
|
49
|
+
id: z.ZodString;
|
|
50
|
+
name: z.ZodString;
|
|
51
|
+
order: z.ZodNumber;
|
|
52
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
53
|
+
render: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
type Page = z.infer<typeof PageSchema>;
|
|
48
56
|
declare const UIComponentSchema: z.ZodObject<{
|
|
49
57
|
id: z.ZodString;
|
|
50
58
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -59,7 +67,15 @@ declare const UIComponentSchema: z.ZodObject<{
|
|
|
59
67
|
deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
60
68
|
}, z.core.$strip>>>;
|
|
61
69
|
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
62
|
-
render: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown
|
|
70
|
+
render: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
71
|
+
pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
72
|
+
id: z.ZodString;
|
|
73
|
+
name: z.ZodString;
|
|
74
|
+
order: z.ZodNumber;
|
|
75
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
76
|
+
render: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
77
|
+
}, z.core.$strip>>>;
|
|
78
|
+
defaultPageId: z.ZodOptional<z.ZodString>;
|
|
63
79
|
query: z.ZodOptional<z.ZodObject<{
|
|
64
80
|
graphql: z.ZodOptional<z.ZodString>;
|
|
65
81
|
sql: z.ZodOptional<z.ZodString>;
|
|
@@ -90,7 +106,15 @@ declare const DSLRendererPropsSchema$2: z.ZodObject<{
|
|
|
90
106
|
deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
91
107
|
}, z.core.$strip>>>;
|
|
92
108
|
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
93
|
-
render: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown
|
|
109
|
+
render: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
110
|
+
pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
111
|
+
id: z.ZodString;
|
|
112
|
+
name: z.ZodString;
|
|
113
|
+
order: z.ZodNumber;
|
|
114
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
115
|
+
render: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
116
|
+
}, z.core.$strip>>>;
|
|
117
|
+
defaultPageId: z.ZodOptional<z.ZodString>;
|
|
94
118
|
query: z.ZodOptional<z.ZodObject<{
|
|
95
119
|
graphql: z.ZodOptional<z.ZodString>;
|
|
96
120
|
sql: z.ZodOptional<z.ZodString>;
|
|
@@ -125,7 +149,7 @@ declare const DSLRendererPropsSchema$1: z.ZodObject<{
|
|
|
125
149
|
deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
126
150
|
}, z.core.$strip>>>;
|
|
127
151
|
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
128
|
-
render: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown
|
|
152
|
+
render: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
129
153
|
query: z.ZodOptional<z.ZodObject<{
|
|
130
154
|
graphql: z.ZodOptional<z.ZodString>;
|
|
131
155
|
sql: z.ZodOptional<z.ZodString>;
|
|
@@ -1283,7 +1307,7 @@ interface User {
|
|
|
1283
1307
|
fullname?: string;
|
|
1284
1308
|
role?: string;
|
|
1285
1309
|
userInfo?: Record<string, unknown>;
|
|
1286
|
-
wsIds
|
|
1310
|
+
wsIds?: string[];
|
|
1287
1311
|
}
|
|
1288
1312
|
/**
|
|
1289
1313
|
* Create a new user
|
|
@@ -1822,7 +1846,7 @@ declare const DSLRendererPropsSchema: z.ZodObject<{
|
|
|
1822
1846
|
deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1823
1847
|
}, z.core.$strip>>>;
|
|
1824
1848
|
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1825
|
-
render: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown
|
|
1849
|
+
render: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
1826
1850
|
query: z.ZodOptional<z.ZodObject<{
|
|
1827
1851
|
graphql: z.ZodOptional<z.ZodString>;
|
|
1828
1852
|
sql: z.ZodOptional<z.ZodString>;
|
|
@@ -2178,6 +2202,8 @@ declare const index_ExpressionSchema: typeof ExpressionSchema;
|
|
|
2178
2202
|
type index_ForDirective = ForDirective;
|
|
2179
2203
|
declare const index_ForDirectiveSchema: typeof ForDirectiveSchema;
|
|
2180
2204
|
type index_KbNode = KbNode;
|
|
2205
|
+
type index_Page = Page;
|
|
2206
|
+
declare const index_PageSchema: typeof PageSchema;
|
|
2181
2207
|
type index_QueryBookmarksOptions = QueryBookmarksOptions;
|
|
2182
2208
|
type index_QueryDashboardsOptions = QueryDashboardsOptions;
|
|
2183
2209
|
type index_QueryReportsOptions = QueryReportsOptions;
|
|
@@ -2247,7 +2273,7 @@ declare const index_updateReport: typeof updateReport;
|
|
|
2247
2273
|
declare const index_updateUI: typeof updateUI;
|
|
2248
2274
|
declare const index_updateUser: typeof updateUser;
|
|
2249
2275
|
declare namespace index {
|
|
2250
|
-
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_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_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_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 };
|
|
2276
|
+
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_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_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 };
|
|
2251
2277
|
}
|
|
2252
2278
|
|
|
2253
2279
|
type MessageHandler = (message: Message) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -45,6 +45,14 @@ declare const QuerySpecSchema: z.ZodObject<{
|
|
|
45
45
|
type QuerySpec = z.infer<typeof QuerySpecSchema>;
|
|
46
46
|
declare const UIElementSchema: z.ZodType<any>;
|
|
47
47
|
type UIElement = z.infer<typeof UIElementSchema>;
|
|
48
|
+
declare const PageSchema: z.ZodObject<{
|
|
49
|
+
id: z.ZodString;
|
|
50
|
+
name: z.ZodString;
|
|
51
|
+
order: z.ZodNumber;
|
|
52
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
53
|
+
render: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
type Page = z.infer<typeof PageSchema>;
|
|
48
56
|
declare const UIComponentSchema: z.ZodObject<{
|
|
49
57
|
id: z.ZodString;
|
|
50
58
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -59,7 +67,15 @@ declare const UIComponentSchema: z.ZodObject<{
|
|
|
59
67
|
deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
60
68
|
}, z.core.$strip>>>;
|
|
61
69
|
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
62
|
-
render: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown
|
|
70
|
+
render: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
71
|
+
pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
72
|
+
id: z.ZodString;
|
|
73
|
+
name: z.ZodString;
|
|
74
|
+
order: z.ZodNumber;
|
|
75
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
76
|
+
render: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
77
|
+
}, z.core.$strip>>>;
|
|
78
|
+
defaultPageId: z.ZodOptional<z.ZodString>;
|
|
63
79
|
query: z.ZodOptional<z.ZodObject<{
|
|
64
80
|
graphql: z.ZodOptional<z.ZodString>;
|
|
65
81
|
sql: z.ZodOptional<z.ZodString>;
|
|
@@ -90,7 +106,15 @@ declare const DSLRendererPropsSchema$2: z.ZodObject<{
|
|
|
90
106
|
deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
91
107
|
}, z.core.$strip>>>;
|
|
92
108
|
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
93
|
-
render: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown
|
|
109
|
+
render: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
110
|
+
pages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
111
|
+
id: z.ZodString;
|
|
112
|
+
name: z.ZodString;
|
|
113
|
+
order: z.ZodNumber;
|
|
114
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
115
|
+
render: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
116
|
+
}, z.core.$strip>>>;
|
|
117
|
+
defaultPageId: z.ZodOptional<z.ZodString>;
|
|
94
118
|
query: z.ZodOptional<z.ZodObject<{
|
|
95
119
|
graphql: z.ZodOptional<z.ZodString>;
|
|
96
120
|
sql: z.ZodOptional<z.ZodString>;
|
|
@@ -125,7 +149,7 @@ declare const DSLRendererPropsSchema$1: z.ZodObject<{
|
|
|
125
149
|
deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
126
150
|
}, z.core.$strip>>>;
|
|
127
151
|
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
128
|
-
render: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown
|
|
152
|
+
render: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
129
153
|
query: z.ZodOptional<z.ZodObject<{
|
|
130
154
|
graphql: z.ZodOptional<z.ZodString>;
|
|
131
155
|
sql: z.ZodOptional<z.ZodString>;
|
|
@@ -1283,7 +1307,7 @@ interface User {
|
|
|
1283
1307
|
fullname?: string;
|
|
1284
1308
|
role?: string;
|
|
1285
1309
|
userInfo?: Record<string, unknown>;
|
|
1286
|
-
wsIds
|
|
1310
|
+
wsIds?: string[];
|
|
1287
1311
|
}
|
|
1288
1312
|
/**
|
|
1289
1313
|
* Create a new user
|
|
@@ -1822,7 +1846,7 @@ declare const DSLRendererPropsSchema: z.ZodObject<{
|
|
|
1822
1846
|
deps: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1823
1847
|
}, z.core.$strip>>>;
|
|
1824
1848
|
data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1825
|
-
render: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown
|
|
1849
|
+
render: z.ZodOptional<z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>>;
|
|
1826
1850
|
query: z.ZodOptional<z.ZodObject<{
|
|
1827
1851
|
graphql: z.ZodOptional<z.ZodString>;
|
|
1828
1852
|
sql: z.ZodOptional<z.ZodString>;
|
|
@@ -2178,6 +2202,8 @@ declare const index_ExpressionSchema: typeof ExpressionSchema;
|
|
|
2178
2202
|
type index_ForDirective = ForDirective;
|
|
2179
2203
|
declare const index_ForDirectiveSchema: typeof ForDirectiveSchema;
|
|
2180
2204
|
type index_KbNode = KbNode;
|
|
2205
|
+
type index_Page = Page;
|
|
2206
|
+
declare const index_PageSchema: typeof PageSchema;
|
|
2181
2207
|
type index_QueryBookmarksOptions = QueryBookmarksOptions;
|
|
2182
2208
|
type index_QueryDashboardsOptions = QueryDashboardsOptions;
|
|
2183
2209
|
type index_QueryReportsOptions = QueryReportsOptions;
|
|
@@ -2247,7 +2273,7 @@ declare const index_updateReport: typeof updateReport;
|
|
|
2247
2273
|
declare const index_updateUI: typeof updateUI;
|
|
2248
2274
|
declare const index_updateUser: typeof updateUser;
|
|
2249
2275
|
declare namespace index {
|
|
2250
|
-
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_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_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_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 };
|
|
2276
|
+
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_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_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 };
|
|
2251
2277
|
}
|
|
2252
2278
|
|
|
2253
2279
|
type MessageHandler = (message: Message) => void;
|
package/dist/index.js
CHANGED
|
@@ -68,6 +68,13 @@ var UIElementSchema = z.lazy(
|
|
|
68
68
|
}).optional()
|
|
69
69
|
})
|
|
70
70
|
);
|
|
71
|
+
var PageSchema = z.object({
|
|
72
|
+
id: z.string(),
|
|
73
|
+
name: z.string(),
|
|
74
|
+
order: z.number(),
|
|
75
|
+
icon: z.string().optional(),
|
|
76
|
+
render: UIElementSchema
|
|
77
|
+
});
|
|
71
78
|
var UIComponentSchema = z.object({
|
|
72
79
|
id: z.string(),
|
|
73
80
|
name: z.string().optional(),
|
|
@@ -87,7 +94,11 @@ var UIComponentSchema = z.object({
|
|
|
87
94
|
})
|
|
88
95
|
).optional(),
|
|
89
96
|
data: z.record(z.string(), z.any()).optional(),
|
|
90
|
-
|
|
97
|
+
// OLD: Single page (optional for backward compatibility)
|
|
98
|
+
render: UIElementSchema.optional(),
|
|
99
|
+
// NEW: Multi-page support
|
|
100
|
+
pages: z.array(PageSchema).optional(),
|
|
101
|
+
defaultPageId: z.string().optional(),
|
|
91
102
|
query: QuerySpecSchema.optional()
|
|
92
103
|
});
|
|
93
104
|
var DSLRendererPropsSchema = z.object({
|
|
@@ -177,7 +188,8 @@ var UIComponentSchema2 = z.object({
|
|
|
177
188
|
})
|
|
178
189
|
).optional(),
|
|
179
190
|
data: z.record(z.string(), z.any()).optional(),
|
|
180
|
-
|
|
191
|
+
// Made optional to align with dashboards schema (dashboards use pages instead)
|
|
192
|
+
render: UIElementSchema2.optional(),
|
|
181
193
|
query: QuerySpecSchema2.optional()
|
|
182
194
|
});
|
|
183
195
|
var DSLRendererPropsSchema2 = z.object({
|
|
@@ -470,18 +482,26 @@ var UsersResponsePayloadSchema = z.object({
|
|
|
470
482
|
role: z.string().optional(),
|
|
471
483
|
message: z.string().optional(),
|
|
472
484
|
users: z.array(z.object({
|
|
485
|
+
id: z.number(),
|
|
473
486
|
username: z.string(),
|
|
474
487
|
email: z.string().optional(),
|
|
475
488
|
fullname: z.string().optional(),
|
|
476
489
|
role: z.string().optional(),
|
|
477
|
-
|
|
490
|
+
userInfo: z.record(z.string(), z.unknown()).optional(),
|
|
491
|
+
wsIds: z.array(z.string()).optional(),
|
|
492
|
+
createdAt: z.string().optional(),
|
|
493
|
+
updatedAt: z.string().optional()
|
|
478
494
|
})).optional(),
|
|
479
495
|
user: z.object({
|
|
496
|
+
id: z.number(),
|
|
480
497
|
username: z.string(),
|
|
481
498
|
email: z.string().optional(),
|
|
482
499
|
fullname: z.string().optional(),
|
|
483
500
|
role: z.string().optional(),
|
|
484
|
-
|
|
501
|
+
userInfo: z.record(z.string(), z.unknown()).optional(),
|
|
502
|
+
wsIds: z.array(z.string()).optional(),
|
|
503
|
+
createdAt: z.string().optional(),
|
|
504
|
+
updatedAt: z.string().optional()
|
|
485
505
|
}).optional(),
|
|
486
506
|
count: z.number().optional()
|
|
487
507
|
}).optional()
|
|
@@ -804,6 +824,7 @@ __export(services_exports, {
|
|
|
804
824
|
DSLRendererPropsSchema: () => DSLRendererPropsSchema,
|
|
805
825
|
ExpressionSchema: () => ExpressionSchema,
|
|
806
826
|
ForDirectiveSchema: () => ForDirectiveSchema,
|
|
827
|
+
PageSchema: () => PageSchema,
|
|
807
828
|
QuerySpecSchema: () => QuerySpecSchema,
|
|
808
829
|
UIComponentSchema: () => UIComponentSchema,
|
|
809
830
|
UIElementSchema: () => UIElementSchema,
|