@objectstack/spec 0.3.3 → 0.4.1

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.
Files changed (304) hide show
  1. package/dist/ai/conversation.zod.d.ts +14 -14
  2. package/dist/ai/cost.zod.d.ts +112 -112
  3. package/dist/ai/model-registry.zod.d.ts +44 -44
  4. package/dist/ai/nlq.zod.d.ts +2 -2
  5. package/dist/ai/orchestration.zod.d.ts +6 -6
  6. package/dist/ai/predictive.zod.d.ts +8 -8
  7. package/dist/ai/rag-pipeline.zod.d.ts +62 -62
  8. package/dist/api/contract.zod.d.ts +92 -92
  9. package/dist/api/discovery.zod.d.ts +2 -2
  10. package/dist/api/index.d.ts +2 -0
  11. package/dist/api/index.d.ts.map +1 -1
  12. package/dist/api/index.js +2 -0
  13. package/dist/api/odata.zod.d.ts +482 -0
  14. package/dist/api/odata.zod.d.ts.map +1 -0
  15. package/dist/api/odata.zod.js +401 -0
  16. package/dist/api/router.zod.d.ts +4 -4
  17. package/dist/auth/config.zod.d.ts +21 -21
  18. package/dist/auth/index.d.ts +1 -0
  19. package/dist/auth/index.d.ts.map +1 -1
  20. package/dist/auth/index.js +1 -0
  21. package/dist/auth/organization.zod.d.ts +2 -2
  22. package/dist/auth/role.zod.d.ts +14 -0
  23. package/dist/auth/role.zod.d.ts.map +1 -1
  24. package/dist/auth/role.zod.js +16 -1
  25. package/dist/auth/scim.zod.d.ts +2732 -0
  26. package/dist/auth/scim.zod.d.ts.map +1 -0
  27. package/dist/auth/scim.zod.js +811 -0
  28. package/dist/automation/approval.zod.d.ts +643 -0
  29. package/dist/automation/approval.zod.d.ts.map +1 -0
  30. package/dist/automation/approval.zod.js +84 -0
  31. package/dist/automation/connector.zod.d.ts +1284 -0
  32. package/dist/automation/connector.zod.d.ts.map +1 -0
  33. package/dist/automation/connector.zod.js +500 -0
  34. package/dist/automation/etl.zod.d.ts +623 -0
  35. package/dist/automation/etl.zod.d.ts.map +1 -0
  36. package/dist/automation/etl.zod.js +359 -0
  37. package/dist/automation/flow.zod.d.ts +6 -6
  38. package/dist/automation/index.d.ts +4 -0
  39. package/dist/automation/index.d.ts.map +1 -1
  40. package/dist/automation/index.js +4 -0
  41. package/dist/automation/sync.zod.d.ts +854 -0
  42. package/dist/automation/sync.zod.d.ts.map +1 -0
  43. package/dist/automation/sync.zod.js +444 -0
  44. package/dist/automation/webhook.zod.d.ts +24 -1
  45. package/dist/automation/webhook.zod.d.ts.map +1 -1
  46. package/dist/automation/webhook.zod.js +27 -3
  47. package/dist/automation/workflow.zod.d.ts +14 -0
  48. package/dist/automation/workflow.zod.d.ts.map +1 -1
  49. package/dist/automation/workflow.zod.js +16 -1
  50. package/dist/data/field.zod.d.ts +338 -8
  51. package/dist/data/field.zod.d.ts.map +1 -1
  52. package/dist/data/field.zod.js +100 -16
  53. package/dist/data/mapping.zod.d.ts +22 -10
  54. package/dist/data/mapping.zod.d.ts.map +1 -1
  55. package/dist/data/mapping.zod.js +16 -3
  56. package/dist/data/object.zod.d.ts +116 -22
  57. package/dist/data/object.zod.d.ts.map +1 -1
  58. package/dist/data/object.zod.js +4 -4
  59. package/dist/data/validation.zod.d.ts +18 -18
  60. package/dist/hub/composer.zod.d.ts +42 -1939
  61. package/dist/hub/composer.zod.d.ts.map +1 -1
  62. package/dist/hub/composer.zod.js +1 -1
  63. package/dist/hub/license.zod.d.ts +2 -2
  64. package/dist/hub/marketplace.zod.d.ts +6 -6
  65. package/dist/index.d.ts +2 -2
  66. package/dist/index.d.ts.map +1 -1
  67. package/dist/index.js +6 -3
  68. package/dist/permission/index.d.ts +7 -5
  69. package/dist/permission/index.d.ts.map +1 -1
  70. package/dist/permission/index.js +7 -5
  71. package/dist/permission/permission.zod.d.ts +14 -0
  72. package/dist/permission/permission.zod.d.ts.map +1 -1
  73. package/dist/permission/permission.zod.js +16 -1
  74. package/dist/permission/rls.zod.d.ts +605 -0
  75. package/dist/permission/rls.zod.d.ts.map +1 -0
  76. package/dist/permission/rls.zod.js +615 -0
  77. package/dist/permission/territory.zod.d.ts +13 -0
  78. package/dist/permission/territory.zod.d.ts.map +1 -1
  79. package/dist/permission/territory.zod.js +15 -1
  80. package/dist/shared/identifiers.zod.d.ts +87 -0
  81. package/dist/shared/identifiers.zod.d.ts.map +1 -0
  82. package/dist/shared/identifiers.zod.js +101 -0
  83. package/dist/shared/index.d.ts +6 -0
  84. package/dist/shared/index.d.ts.map +1 -0
  85. package/dist/{driver → shared}/index.js +5 -4
  86. package/dist/stack.zod.d.ts +19869 -0
  87. package/dist/stack.zod.d.ts.map +1 -0
  88. package/dist/stack.zod.js +248 -0
  89. package/dist/system/audit.zod.d.ts +12 -12
  90. package/dist/{kernel → system}/context.zod.d.ts.map +1 -1
  91. package/dist/{driver → system}/datasource.zod.d.ts +2 -2
  92. package/dist/{driver → system}/datasource.zod.d.ts.map +1 -1
  93. package/dist/{driver → system/driver}/mongo.zod.d.ts +2 -2
  94. package/dist/system/driver/mongo.zod.d.ts.map +1 -0
  95. package/dist/{driver → system/driver}/postgres.zod.d.ts +4 -4
  96. package/dist/system/driver/postgres.zod.d.ts.map +1 -0
  97. package/dist/{driver → system}/driver.zod.d.ts +14 -14
  98. package/dist/{driver → system}/driver.zod.d.ts.map +1 -1
  99. package/dist/system/events.zod.d.ts +15 -12
  100. package/dist/system/events.zod.d.ts.map +1 -1
  101. package/dist/system/events.zod.js +5 -1
  102. package/dist/system/feature.zod.d.ts +131 -0
  103. package/dist/system/feature.zod.d.ts.map +1 -0
  104. package/dist/system/feature.zod.js +45 -0
  105. package/dist/system/index.d.ts +10 -0
  106. package/dist/system/index.d.ts.map +1 -1
  107. package/dist/system/index.js +12 -0
  108. package/dist/system/job.zod.d.ts +8 -8
  109. package/dist/{kernel → system}/logger.zod.d.ts +4 -4
  110. package/dist/{kernel → system}/logger.zod.d.ts.map +1 -1
  111. package/dist/system/manifest.zod.d.ts +515 -0
  112. package/dist/system/manifest.zod.d.ts.map +1 -0
  113. package/dist/{kernel → system}/manifest.zod.js +0 -12
  114. package/dist/{kernel → system}/plugin.zod.d.ts.map +1 -1
  115. package/dist/{kernel → system}/scoped-storage.zod.d.ts +2 -2
  116. package/dist/{kernel → system}/scoped-storage.zod.d.ts.map +1 -1
  117. package/dist/ui/action.zod.d.ts +35 -10
  118. package/dist/ui/action.zod.d.ts.map +1 -1
  119. package/dist/ui/action.zod.js +30 -1
  120. package/dist/ui/app.zod.d.ts +23 -8
  121. package/dist/ui/app.zod.d.ts.map +1 -1
  122. package/dist/ui/app.zod.js +32 -4
  123. package/dist/ui/block.zod.d.ts +265 -0
  124. package/dist/ui/block.zod.d.ts.map +1 -0
  125. package/dist/ui/block.zod.js +90 -0
  126. package/dist/ui/component.zod.d.ts +265 -0
  127. package/dist/ui/component.zod.d.ts.map +1 -0
  128. package/dist/ui/component.zod.js +90 -0
  129. package/dist/ui/dashboard.zod.d.ts +15 -15
  130. package/dist/ui/dashboard.zod.d.ts.map +1 -1
  131. package/dist/ui/dashboard.zod.js +18 -8
  132. package/dist/ui/index.d.ts +1 -0
  133. package/dist/ui/index.d.ts.map +1 -1
  134. package/dist/ui/index.js +1 -0
  135. package/dist/ui/page.zod.d.ts +21 -3
  136. package/dist/ui/page.zod.d.ts.map +1 -1
  137. package/dist/ui/page.zod.js +37 -4
  138. package/dist/ui/report.zod.d.ts +7 -7
  139. package/dist/ui/view.zod.d.ts +252 -240
  140. package/dist/ui/view.zod.d.ts.map +1 -1
  141. package/dist/ui/view.zod.js +32 -3
  142. package/dist/ui/widget.zod.d.ts +673 -5
  143. package/dist/ui/widget.zod.d.ts.map +1 -1
  144. package/dist/ui/widget.zod.js +294 -1
  145. package/json-schema/api/ODataError.json +65 -0
  146. package/json-schema/api/ODataFilterFunction.json +39 -0
  147. package/json-schema/api/ODataFilterOperator.json +24 -0
  148. package/json-schema/api/ODataMetadata.json +115 -0
  149. package/json-schema/api/ODataQuery.json +89 -0
  150. package/json-schema/api/ODataResponse.json +37 -0
  151. package/json-schema/auth/Role.json +3 -2
  152. package/json-schema/auth/SCIMAddress.json +50 -0
  153. package/json-schema/auth/SCIMEmail.json +38 -0
  154. package/json-schema/auth/SCIMEnterpriseUser.json +55 -0
  155. package/json-schema/auth/SCIMError.json +52 -0
  156. package/json-schema/auth/SCIMGroup.json +102 -0
  157. package/json-schema/auth/SCIMGroupReference.json +36 -0
  158. package/json-schema/auth/SCIMListResponse.json +606 -0
  159. package/json-schema/auth/SCIMMemberReference.json +36 -0
  160. package/json-schema/auth/SCIMMeta.json +35 -0
  161. package/json-schema/auth/SCIMName.json +36 -0
  162. package/json-schema/auth/SCIMPatchOperation.json +31 -0
  163. package/json-schema/auth/SCIMPatchRequest.json +56 -0
  164. package/json-schema/auth/SCIMPhoneNumber.json +40 -0
  165. package/json-schema/auth/SCIMUser.json +462 -0
  166. package/json-schema/automation/ApprovalAction.json +35 -0
  167. package/json-schema/automation/ApprovalActionType.json +15 -0
  168. package/json-schema/automation/ApprovalProcess.json +326 -0
  169. package/json-schema/automation/ApprovalStep.json +147 -0
  170. package/json-schema/automation/ApproverType.json +16 -0
  171. package/json-schema/automation/AuthField.json +73 -0
  172. package/json-schema/automation/Authentication.json +159 -0
  173. package/json-schema/automation/AuthenticationType.json +18 -0
  174. package/json-schema/automation/ConflictResolution.json +16 -0
  175. package/json-schema/automation/Connector.json +440 -0
  176. package/json-schema/automation/ConnectorCategory.json +26 -0
  177. package/json-schema/automation/ConnectorInstance.json +69 -0
  178. package/json-schema/automation/ConnectorOperation.json +117 -0
  179. package/json-schema/automation/ConnectorTrigger.json +54 -0
  180. package/json-schema/automation/DataDestinationConfig.json +89 -0
  181. package/json-schema/automation/DataSourceConfig.json +34 -0
  182. package/json-schema/automation/DataSyncConfig.json +355 -0
  183. package/json-schema/automation/ETLDestination.json +57 -0
  184. package/json-schema/automation/ETLEndpointType.json +19 -0
  185. package/json-schema/automation/ETLPipeline.json +252 -0
  186. package/json-schema/automation/ETLPipelineRun.json +107 -0
  187. package/json-schema/automation/ETLRunStatus.json +17 -0
  188. package/json-schema/automation/ETLSource.json +60 -0
  189. package/json-schema/automation/ETLSyncMode.json +14 -0
  190. package/json-schema/automation/ETLTransformation.json +46 -0
  191. package/json-schema/automation/ETLTransformationType.json +21 -0
  192. package/json-schema/automation/FieldMapping.json +36 -0
  193. package/json-schema/automation/OAuth2Config.json +43 -0
  194. package/json-schema/automation/OperationParameter.json +59 -0
  195. package/json-schema/automation/OperationType.json +17 -0
  196. package/json-schema/automation/SyncDirection.json +14 -0
  197. package/json-schema/automation/SyncExecutionResult.json +135 -0
  198. package/json-schema/automation/SyncExecutionStatus.json +17 -0
  199. package/json-schema/automation/SyncMode.json +14 -0
  200. package/json-schema/automation/Webhook.json +3 -1
  201. package/json-schema/automation/WebhookReceiver.json +3 -1
  202. package/json-schema/automation/WorkflowRule.json +3 -2
  203. package/json-schema/data/Field.json +62 -4
  204. package/json-schema/data/FieldType.json +12 -2
  205. package/json-schema/data/Object.json +62 -4
  206. package/json-schema/data/SelectOption.json +4 -2
  207. package/json-schema/data/VectorConfig.json +51 -0
  208. package/json-schema/hub/ComposerResponse.json +0 -2162
  209. package/json-schema/permission/PermissionSet.json +3 -1
  210. package/json-schema/permission/RLSConfig.json +59 -0
  211. package/json-schema/permission/RLSEvaluationResult.json +40 -0
  212. package/json-schema/permission/RLSOperation.json +16 -0
  213. package/json-schema/permission/RLSUserContext.json +51 -0
  214. package/json-schema/permission/RowLevelSecurityPolicy.json +77 -0
  215. package/json-schema/permission/Territory.json +3 -1
  216. package/json-schema/shared/EventName.json +12 -0
  217. package/json-schema/shared/SnakeCaseIdentifier.json +12 -0
  218. package/json-schema/shared/SystemIdentifier.json +12 -0
  219. package/json-schema/system/Event.json +3 -2
  220. package/json-schema/system/FeatureFlag.json +87 -0
  221. package/json-schema/system/FeatureStrategy.json +16 -0
  222. package/json-schema/system/Manifest.json +395 -0
  223. package/json-schema/ui/Action.json +25 -4
  224. package/json-schema/ui/ActionParam.json +12 -2
  225. package/json-schema/ui/App.json +18 -7
  226. package/json-schema/ui/ChartType.json +9 -1
  227. package/json-schema/ui/Dashboard.json +9 -1
  228. package/json-schema/ui/DashboardNavItem.json +3 -1
  229. package/json-schema/ui/DashboardWidget.json +9 -1
  230. package/json-schema/ui/FieldWidgetProps.json +62 -4
  231. package/json-schema/ui/FormView.json +4 -1
  232. package/json-schema/ui/GroupNavItem.json +3 -1
  233. package/json-schema/ui/ListView.json +7 -1
  234. package/json-schema/ui/NavigationItem.json +15 -5
  235. package/json-schema/ui/ObjectNavItem.json +3 -1
  236. package/json-schema/ui/Page.json +36 -4
  237. package/json-schema/ui/PageCardProps.json +32 -0
  238. package/json-schema/ui/PageComponent.json +33 -3
  239. package/json-schema/ui/PageComponentType.json +32 -0
  240. package/json-schema/ui/PageHeaderProps.json +39 -0
  241. package/json-schema/ui/PageNavItem.json +3 -1
  242. package/json-schema/ui/PageRegion.json +33 -3
  243. package/json-schema/ui/PageTabsProps.json +55 -0
  244. package/json-schema/ui/RecordDetailsProps.json +37 -0
  245. package/json-schema/ui/RecordHighlightsProps.json +24 -0
  246. package/json-schema/ui/RecordRelatedListProps.json +39 -0
  247. package/json-schema/ui/UrlNavItem.json +3 -1
  248. package/json-schema/ui/View.json +22 -4
  249. package/json-schema/ui/WidgetEvent.json +42 -0
  250. package/json-schema/ui/WidgetLifecycle.json +40 -0
  251. package/json-schema/ui/WidgetManifest.json +262 -0
  252. package/json-schema/ui/WidgetProperty.json +58 -0
  253. package/package.json +1 -1
  254. package/prompts/architecture.md +5 -5
  255. package/prompts/create-new-project.md +85 -0
  256. package/dist/driver/index.d.ts +0 -5
  257. package/dist/driver/index.d.ts.map +0 -1
  258. package/dist/driver/mongo.zod.d.ts.map +0 -1
  259. package/dist/driver/postgres.zod.d.ts.map +0 -1
  260. package/dist/kernel/index.d.ts +0 -12
  261. package/dist/kernel/index.d.ts.map +0 -1
  262. package/dist/kernel/index.js +0 -27
  263. package/dist/kernel/manifest.zod.d.ts +0 -2153
  264. package/dist/kernel/manifest.zod.d.ts.map +0 -1
  265. package/json-schema/kernel/Manifest.json +0 -2557
  266. /package/dist/{kernel → system}/context.zod.d.ts +0 -0
  267. /package/dist/{kernel → system}/context.zod.js +0 -0
  268. /package/dist/{driver → system}/datasource.zod.js +0 -0
  269. /package/dist/{driver → system/driver}/mongo.zod.js +0 -0
  270. /package/dist/{driver → system/driver}/postgres.zod.js +0 -0
  271. /package/dist/{driver → system}/driver.zod.js +0 -0
  272. /package/dist/{kernel → system}/logger.zod.js +0 -0
  273. /package/dist/{kernel → system}/plugin.zod.d.ts +0 -0
  274. /package/dist/{kernel → system}/plugin.zod.js +0 -0
  275. /package/dist/{kernel → system}/scoped-storage.zod.js +0 -0
  276. /package/json-schema/{driver → system}/Datasource.json +0 -0
  277. /package/json-schema/{driver → system}/DatasourceCapabilities.json +0 -0
  278. /package/json-schema/{driver → system}/DriverCapabilities.json +0 -0
  279. /package/json-schema/{driver → system}/DriverDefinition.json +0 -0
  280. /package/json-schema/{driver → system}/DriverInterface.json +0 -0
  281. /package/json-schema/{driver → system}/DriverOptions.json +0 -0
  282. /package/json-schema/{driver → system}/DriverType.json +0 -0
  283. /package/json-schema/{kernel → system}/FileMetadata.json +0 -0
  284. /package/json-schema/{kernel → system}/I18nContext.json +0 -0
  285. /package/json-schema/{kernel → system}/KernelContext.json +0 -0
  286. /package/json-schema/{kernel → system}/LogEntry.json +0 -0
  287. /package/json-schema/{kernel → system}/LogFormat.json +0 -0
  288. /package/json-schema/{kernel → system}/LogLevel.json +0 -0
  289. /package/json-schema/{kernel → system}/Logger.json +0 -0
  290. /package/json-schema/{kernel → system}/LoggerConfig.json +0 -0
  291. /package/json-schema/{driver → system}/MongoConfig.json +0 -0
  292. /package/json-schema/{kernel → system}/ObjectQLClient.json +0 -0
  293. /package/json-schema/{kernel → system}/Plugin.json +0 -0
  294. /package/json-schema/{kernel → system}/PluginContext.json +0 -0
  295. /package/json-schema/{kernel → system}/PluginLifecycle.json +0 -0
  296. /package/json-schema/{driver → system}/PostgresConfig.json +0 -0
  297. /package/json-schema/{kernel → system}/Router.json +0 -0
  298. /package/json-schema/{kernel → system}/RuntimeMode.json +0 -0
  299. /package/json-schema/{kernel → system}/Scheduler.json +0 -0
  300. /package/json-schema/{kernel → system}/ScopedStorage.json +0 -0
  301. /package/json-schema/{kernel → system}/ScopedStorageConfig.json +0 -0
  302. /package/json-schema/{kernel → system}/StorageAdapterType.json +0 -0
  303. /package/json-schema/{kernel → system}/StorageScope.json +0 -0
  304. /package/json-schema/{kernel → system}/SystemAPI.json +0 -0
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ComponentPropsMap = exports.RecordHighlightsProps = exports.RecordRelatedListProps = exports.RecordDetailsProps = exports.PageCardProps = exports.PageTabsProps = exports.PageHeaderProps = void 0;
4
+ const zod_1 = require("zod");
5
+ /**
6
+ * Empty Properties Schema
7
+ */
8
+ const EmptyProps = zod_1.z.object({});
9
+ /**
10
+ * ----------------------------------------------------------------------
11
+ * 1. Structure Components
12
+ * ----------------------------------------------------------------------
13
+ */
14
+ exports.PageHeaderProps = zod_1.z.object({
15
+ title: zod_1.z.string().describe('Page title'),
16
+ subtitle: zod_1.z.string().optional().describe('Page subtitle'),
17
+ icon: zod_1.z.string().optional().describe('Icon name'),
18
+ breadcrumb: zod_1.z.boolean().default(true).describe('Show breadcrumb'),
19
+ actions: zod_1.z.array(zod_1.z.string()).optional().describe('Action IDs to show in header'),
20
+ });
21
+ exports.PageTabsProps = zod_1.z.object({
22
+ type: zod_1.z.enum(['line', 'card', 'pill']).default('line'),
23
+ position: zod_1.z.enum(['top', 'left']).default('top'),
24
+ items: zod_1.z.array(zod_1.z.object({
25
+ label: zod_1.z.string(),
26
+ icon: zod_1.z.string().optional(),
27
+ children: zod_1.z.array(zod_1.z.any()).describe('Child components')
28
+ }))
29
+ });
30
+ exports.PageCardProps = zod_1.z.object({
31
+ title: zod_1.z.string().optional(),
32
+ bordered: zod_1.z.boolean().default(true),
33
+ actions: zod_1.z.array(zod_1.z.string()).optional(),
34
+ children: zod_1.z.array(zod_1.z.any()).describe('Card content')
35
+ });
36
+ /**
37
+ * ----------------------------------------------------------------------
38
+ * 2. Record Context Components
39
+ * ----------------------------------------------------------------------
40
+ */
41
+ exports.RecordDetailsProps = zod_1.z.object({
42
+ columns: zod_1.z.enum(['1', '2', '3', '4']).default('2'),
43
+ layout: zod_1.z.enum(['auto', 'custom']).default('auto'),
44
+ // If custom layout
45
+ sections: zod_1.z.array(zod_1.z.string()).optional().describe('Section IDs to show')
46
+ });
47
+ exports.RecordRelatedListProps = zod_1.z.object({
48
+ objectName: zod_1.z.string().describe('Related object name'),
49
+ relationshipField: zod_1.z.string().describe('Field on related object that points to this record'),
50
+ columns: zod_1.z.array(zod_1.z.string()).describe('Fields to display'),
51
+ sort: zod_1.z.string().optional(),
52
+ limit: zod_1.z.number().default(5)
53
+ });
54
+ exports.RecordHighlightsProps = zod_1.z.object({
55
+ fields: zod_1.z.array(zod_1.z.string()).min(1).max(7).describe('Key fields to highlights (max 7)')
56
+ });
57
+ /**
58
+ * ----------------------------------------------------------------------
59
+ * Component Props Map
60
+ * Maps Component Type to its Property Schema
61
+ * ----------------------------------------------------------------------
62
+ */
63
+ exports.ComponentPropsMap = {
64
+ // Structure
65
+ 'page:header': exports.PageHeaderProps,
66
+ 'page:tabs': exports.PageTabsProps,
67
+ 'page:card': exports.PageCardProps,
68
+ 'page:footer': EmptyProps,
69
+ 'page:sidebar': EmptyProps,
70
+ 'page:accordion': EmptyProps,
71
+ 'page:section': EmptyProps,
72
+ // Record
73
+ 'record:details': exports.RecordDetailsProps,
74
+ 'record:related_list': exports.RecordRelatedListProps,
75
+ 'record:highlights': exports.RecordHighlightsProps,
76
+ 'record:activity': EmptyProps,
77
+ 'record:chatter': EmptyProps,
78
+ 'record:path': EmptyProps,
79
+ // Navigation
80
+ 'app:launcher': EmptyProps,
81
+ 'nav:menu': EmptyProps,
82
+ 'nav:breadcrumb': EmptyProps,
83
+ // Utility
84
+ 'global:search': EmptyProps,
85
+ 'global:notifications': EmptyProps,
86
+ 'user:profile': EmptyProps,
87
+ // AI
88
+ 'ai:chat_window': zod_1.z.object({ mode: zod_1.z.enum(['float', 'sidebar', 'inline']).default('float') }),
89
+ 'ai:suggestion': zod_1.z.object({ context: zod_1.z.string().optional() })
90
+ };
@@ -0,0 +1,265 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * ----------------------------------------------------------------------
4
+ * 1. Structure Components
5
+ * ----------------------------------------------------------------------
6
+ */
7
+ export declare const PageHeaderProps: z.ZodObject<{
8
+ title: z.ZodString;
9
+ subtitle: z.ZodOptional<z.ZodString>;
10
+ icon: z.ZodOptional<z.ZodString>;
11
+ breadcrumb: z.ZodDefault<z.ZodBoolean>;
12
+ actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ title: string;
15
+ breadcrumb: boolean;
16
+ icon?: string | undefined;
17
+ subtitle?: string | undefined;
18
+ actions?: string[] | undefined;
19
+ }, {
20
+ title: string;
21
+ icon?: string | undefined;
22
+ subtitle?: string | undefined;
23
+ breadcrumb?: boolean | undefined;
24
+ actions?: string[] | undefined;
25
+ }>;
26
+ export declare const PageTabsProps: z.ZodObject<{
27
+ type: z.ZodDefault<z.ZodEnum<["line", "card", "pill"]>>;
28
+ position: z.ZodDefault<z.ZodEnum<["top", "left"]>>;
29
+ items: z.ZodArray<z.ZodObject<{
30
+ label: z.ZodString;
31
+ icon: z.ZodOptional<z.ZodString>;
32
+ children: z.ZodArray<z.ZodAny, "many">;
33
+ }, "strip", z.ZodTypeAny, {
34
+ label: string;
35
+ children: any[];
36
+ icon?: string | undefined;
37
+ }, {
38
+ label: string;
39
+ children: any[];
40
+ icon?: string | undefined;
41
+ }>, "many">;
42
+ }, "strip", z.ZodTypeAny, {
43
+ type: "line" | "card" | "pill";
44
+ items: {
45
+ label: string;
46
+ children: any[];
47
+ icon?: string | undefined;
48
+ }[];
49
+ position: "left" | "top";
50
+ }, {
51
+ items: {
52
+ label: string;
53
+ children: any[];
54
+ icon?: string | undefined;
55
+ }[];
56
+ type?: "line" | "card" | "pill" | undefined;
57
+ position?: "left" | "top" | undefined;
58
+ }>;
59
+ export declare const PageCardProps: z.ZodObject<{
60
+ title: z.ZodOptional<z.ZodString>;
61
+ bordered: z.ZodDefault<z.ZodBoolean>;
62
+ actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
63
+ children: z.ZodArray<z.ZodAny, "many">;
64
+ }, "strip", z.ZodTypeAny, {
65
+ children: any[];
66
+ bordered: boolean;
67
+ title?: string | undefined;
68
+ actions?: string[] | undefined;
69
+ }, {
70
+ children: any[];
71
+ bordered?: boolean | undefined;
72
+ title?: string | undefined;
73
+ actions?: string[] | undefined;
74
+ }>;
75
+ /**
76
+ * ----------------------------------------------------------------------
77
+ * 2. Record Context Components
78
+ * ----------------------------------------------------------------------
79
+ */
80
+ export declare const RecordDetailsProps: z.ZodObject<{
81
+ columns: z.ZodDefault<z.ZodEnum<["1", "2", "3", "4"]>>;
82
+ layout: z.ZodDefault<z.ZodEnum<["auto", "custom"]>>;
83
+ sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
84
+ }, "strip", z.ZodTypeAny, {
85
+ columns: "1" | "2" | "3" | "4";
86
+ layout: "custom" | "auto";
87
+ sections?: string[] | undefined;
88
+ }, {
89
+ columns?: "1" | "2" | "3" | "4" | undefined;
90
+ sections?: string[] | undefined;
91
+ layout?: "custom" | "auto" | undefined;
92
+ }>;
93
+ export declare const RecordRelatedListProps: z.ZodObject<{
94
+ objectName: z.ZodString;
95
+ relationshipField: z.ZodString;
96
+ columns: z.ZodArray<z.ZodString, "many">;
97
+ sort: z.ZodOptional<z.ZodString>;
98
+ limit: z.ZodDefault<z.ZodNumber>;
99
+ }, "strip", z.ZodTypeAny, {
100
+ limit: number;
101
+ objectName: string;
102
+ columns: string[];
103
+ relationshipField: string;
104
+ sort?: string | undefined;
105
+ }, {
106
+ objectName: string;
107
+ columns: string[];
108
+ relationshipField: string;
109
+ sort?: string | undefined;
110
+ limit?: number | undefined;
111
+ }>;
112
+ export declare const RecordHighlightsProps: z.ZodObject<{
113
+ fields: z.ZodArray<z.ZodString, "many">;
114
+ }, "strip", z.ZodTypeAny, {
115
+ fields: string[];
116
+ }, {
117
+ fields: string[];
118
+ }>;
119
+ /**
120
+ * ----------------------------------------------------------------------
121
+ * Component Props Map
122
+ * Maps Component Type to its Property Schema
123
+ * ----------------------------------------------------------------------
124
+ */
125
+ export declare const ComponentPropsMap: {
126
+ readonly 'page:header': z.ZodObject<{
127
+ title: z.ZodString;
128
+ subtitle: z.ZodOptional<z.ZodString>;
129
+ icon: z.ZodOptional<z.ZodString>;
130
+ breadcrumb: z.ZodDefault<z.ZodBoolean>;
131
+ actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
132
+ }, "strip", z.ZodTypeAny, {
133
+ title: string;
134
+ breadcrumb: boolean;
135
+ icon?: string | undefined;
136
+ subtitle?: string | undefined;
137
+ actions?: string[] | undefined;
138
+ }, {
139
+ title: string;
140
+ icon?: string | undefined;
141
+ subtitle?: string | undefined;
142
+ breadcrumb?: boolean | undefined;
143
+ actions?: string[] | undefined;
144
+ }>;
145
+ readonly 'page:tabs': z.ZodObject<{
146
+ type: z.ZodDefault<z.ZodEnum<["line", "card", "pill"]>>;
147
+ position: z.ZodDefault<z.ZodEnum<["top", "left"]>>;
148
+ items: z.ZodArray<z.ZodObject<{
149
+ label: z.ZodString;
150
+ icon: z.ZodOptional<z.ZodString>;
151
+ children: z.ZodArray<z.ZodAny, "many">;
152
+ }, "strip", z.ZodTypeAny, {
153
+ label: string;
154
+ children: any[];
155
+ icon?: string | undefined;
156
+ }, {
157
+ label: string;
158
+ children: any[];
159
+ icon?: string | undefined;
160
+ }>, "many">;
161
+ }, "strip", z.ZodTypeAny, {
162
+ type: "line" | "card" | "pill";
163
+ items: {
164
+ label: string;
165
+ children: any[];
166
+ icon?: string | undefined;
167
+ }[];
168
+ position: "left" | "top";
169
+ }, {
170
+ items: {
171
+ label: string;
172
+ children: any[];
173
+ icon?: string | undefined;
174
+ }[];
175
+ type?: "line" | "card" | "pill" | undefined;
176
+ position?: "left" | "top" | undefined;
177
+ }>;
178
+ readonly 'page:card': z.ZodObject<{
179
+ title: z.ZodOptional<z.ZodString>;
180
+ bordered: z.ZodDefault<z.ZodBoolean>;
181
+ actions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
182
+ children: z.ZodArray<z.ZodAny, "many">;
183
+ }, "strip", z.ZodTypeAny, {
184
+ children: any[];
185
+ bordered: boolean;
186
+ title?: string | undefined;
187
+ actions?: string[] | undefined;
188
+ }, {
189
+ children: any[];
190
+ bordered?: boolean | undefined;
191
+ title?: string | undefined;
192
+ actions?: string[] | undefined;
193
+ }>;
194
+ readonly 'page:footer': z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
195
+ readonly 'page:sidebar': z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
196
+ readonly 'page:accordion': z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
197
+ readonly 'page:section': z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
198
+ readonly 'record:details': z.ZodObject<{
199
+ columns: z.ZodDefault<z.ZodEnum<["1", "2", "3", "4"]>>;
200
+ layout: z.ZodDefault<z.ZodEnum<["auto", "custom"]>>;
201
+ sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
202
+ }, "strip", z.ZodTypeAny, {
203
+ columns: "1" | "2" | "3" | "4";
204
+ layout: "custom" | "auto";
205
+ sections?: string[] | undefined;
206
+ }, {
207
+ columns?: "1" | "2" | "3" | "4" | undefined;
208
+ sections?: string[] | undefined;
209
+ layout?: "custom" | "auto" | undefined;
210
+ }>;
211
+ readonly 'record:related_list': z.ZodObject<{
212
+ objectName: z.ZodString;
213
+ relationshipField: z.ZodString;
214
+ columns: z.ZodArray<z.ZodString, "many">;
215
+ sort: z.ZodOptional<z.ZodString>;
216
+ limit: z.ZodDefault<z.ZodNumber>;
217
+ }, "strip", z.ZodTypeAny, {
218
+ limit: number;
219
+ objectName: string;
220
+ columns: string[];
221
+ relationshipField: string;
222
+ sort?: string | undefined;
223
+ }, {
224
+ objectName: string;
225
+ columns: string[];
226
+ relationshipField: string;
227
+ sort?: string | undefined;
228
+ limit?: number | undefined;
229
+ }>;
230
+ readonly 'record:highlights': z.ZodObject<{
231
+ fields: z.ZodArray<z.ZodString, "many">;
232
+ }, "strip", z.ZodTypeAny, {
233
+ fields: string[];
234
+ }, {
235
+ fields: string[];
236
+ }>;
237
+ readonly 'record:activity': z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
238
+ readonly 'record:chatter': z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
239
+ readonly 'record:path': z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
240
+ readonly 'app:launcher': z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
241
+ readonly 'nav:menu': z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
242
+ readonly 'nav:breadcrumb': z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
243
+ readonly 'global:search': z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
244
+ readonly 'global:notifications': z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
245
+ readonly 'user:profile': z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
246
+ readonly 'ai:chat_window': z.ZodObject<{
247
+ mode: z.ZodDefault<z.ZodEnum<["float", "sidebar", "inline"]>>;
248
+ }, "strip", z.ZodTypeAny, {
249
+ mode: "float" | "inline" | "sidebar";
250
+ }, {
251
+ mode?: "float" | "inline" | "sidebar" | undefined;
252
+ }>;
253
+ readonly 'ai:suggestion': z.ZodObject<{
254
+ context: z.ZodOptional<z.ZodString>;
255
+ }, "strip", z.ZodTypeAny, {
256
+ context?: string | undefined;
257
+ }, {
258
+ context?: string | undefined;
259
+ }>;
260
+ };
261
+ /**
262
+ * Type Helper to extract props from map
263
+ */
264
+ export type ComponentProps<T extends keyof typeof ComponentPropsMap> = z.infer<typeof ComponentPropsMap[T]>;
265
+ //# sourceMappingURL=component.zod.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.zod.d.ts","sourceRoot":"","sources":["../../src/ui/component.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB;;;;GAIG;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;EAM1B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQxB,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;EAKxB,CAAC;AAEH;;;;GAIG;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAK7B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;EAMjC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;EAEhC,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BpB,CAAC;AAEX;;GAEG;AACH,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,MAAM,OAAO,iBAAiB,IAAI,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC"}
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ComponentPropsMap = exports.RecordHighlightsProps = exports.RecordRelatedListProps = exports.RecordDetailsProps = exports.PageCardProps = exports.PageTabsProps = exports.PageHeaderProps = void 0;
4
+ const zod_1 = require("zod");
5
+ /**
6
+ * Empty Properties Schema
7
+ */
8
+ const EmptyProps = zod_1.z.object({});
9
+ /**
10
+ * ----------------------------------------------------------------------
11
+ * 1. Structure Components
12
+ * ----------------------------------------------------------------------
13
+ */
14
+ exports.PageHeaderProps = zod_1.z.object({
15
+ title: zod_1.z.string().describe('Page title'),
16
+ subtitle: zod_1.z.string().optional().describe('Page subtitle'),
17
+ icon: zod_1.z.string().optional().describe('Icon name'),
18
+ breadcrumb: zod_1.z.boolean().default(true).describe('Show breadcrumb'),
19
+ actions: zod_1.z.array(zod_1.z.string()).optional().describe('Action IDs to show in header'),
20
+ });
21
+ exports.PageTabsProps = zod_1.z.object({
22
+ type: zod_1.z.enum(['line', 'card', 'pill']).default('line'),
23
+ position: zod_1.z.enum(['top', 'left']).default('top'),
24
+ items: zod_1.z.array(zod_1.z.object({
25
+ label: zod_1.z.string(),
26
+ icon: zod_1.z.string().optional(),
27
+ children: zod_1.z.array(zod_1.z.any()).describe('Child components')
28
+ }))
29
+ });
30
+ exports.PageCardProps = zod_1.z.object({
31
+ title: zod_1.z.string().optional(),
32
+ bordered: zod_1.z.boolean().default(true),
33
+ actions: zod_1.z.array(zod_1.z.string()).optional(),
34
+ children: zod_1.z.array(zod_1.z.any()).describe('Card content')
35
+ });
36
+ /**
37
+ * ----------------------------------------------------------------------
38
+ * 2. Record Context Components
39
+ * ----------------------------------------------------------------------
40
+ */
41
+ exports.RecordDetailsProps = zod_1.z.object({
42
+ columns: zod_1.z.enum(['1', '2', '3', '4']).default('2'),
43
+ layout: zod_1.z.enum(['auto', 'custom']).default('auto'),
44
+ // If custom layout
45
+ sections: zod_1.z.array(zod_1.z.string()).optional().describe('Section IDs to show')
46
+ });
47
+ exports.RecordRelatedListProps = zod_1.z.object({
48
+ objectName: zod_1.z.string().describe('Related object name'),
49
+ relationshipField: zod_1.z.string().describe('Field on related object that points to this record'),
50
+ columns: zod_1.z.array(zod_1.z.string()).describe('Fields to display'),
51
+ sort: zod_1.z.string().optional(),
52
+ limit: zod_1.z.number().default(5)
53
+ });
54
+ exports.RecordHighlightsProps = zod_1.z.object({
55
+ fields: zod_1.z.array(zod_1.z.string()).min(1).max(7).describe('Key fields to highlights (max 7)')
56
+ });
57
+ /**
58
+ * ----------------------------------------------------------------------
59
+ * Component Props Map
60
+ * Maps Component Type to its Property Schema
61
+ * ----------------------------------------------------------------------
62
+ */
63
+ exports.ComponentPropsMap = {
64
+ // Structure
65
+ 'page:header': exports.PageHeaderProps,
66
+ 'page:tabs': exports.PageTabsProps,
67
+ 'page:card': exports.PageCardProps,
68
+ 'page:footer': EmptyProps,
69
+ 'page:sidebar': EmptyProps,
70
+ 'page:accordion': EmptyProps,
71
+ 'page:section': EmptyProps,
72
+ // Record
73
+ 'record:details': exports.RecordDetailsProps,
74
+ 'record:related_list': exports.RecordRelatedListProps,
75
+ 'record:highlights': exports.RecordHighlightsProps,
76
+ 'record:activity': EmptyProps,
77
+ 'record:chatter': EmptyProps,
78
+ 'record:path': EmptyProps,
79
+ // Navigation
80
+ 'app:launcher': EmptyProps,
81
+ 'nav:menu': EmptyProps,
82
+ 'nav:breadcrumb': EmptyProps,
83
+ // Utility
84
+ 'global:search': EmptyProps,
85
+ 'global:notifications': EmptyProps,
86
+ 'user:profile': EmptyProps,
87
+ // AI
88
+ 'ai:chat_window': zod_1.z.object({ mode: zod_1.z.enum(['float', 'sidebar', 'inline']).default('float') }),
89
+ 'ai:suggestion': zod_1.z.object({ context: zod_1.z.string().optional() })
90
+ };
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  /**
3
3
  * Chart Type Enum
4
4
  */
5
- export declare const ChartType: z.ZodEnum<["metric", "bar", "line", "pie", "donut", "funnel", "table", "text"]>;
5
+ export declare const ChartType: z.ZodEnum<["metric", "bar", "line", "pie", "donut", "gauge", "funnel", "radar", "scatter", "heatmap", "pivot", "table", "list", "text", "image", "frame"]>;
6
6
  /**
7
7
  * Dashboard Widget Schema
8
8
  * A single component on the dashboard grid.
@@ -11,7 +11,7 @@ export declare const DashboardWidgetSchema: z.ZodObject<{
11
11
  /** Widget Title */
12
12
  title: z.ZodOptional<z.ZodString>;
13
13
  /** Visualization Type */
14
- type: z.ZodDefault<z.ZodEnum<["metric", "bar", "line", "pie", "donut", "funnel", "table", "text"]>>;
14
+ type: z.ZodDefault<z.ZodEnum<["metric", "bar", "line", "pie", "donut", "gauge", "funnel", "radar", "scatter", "heatmap", "pivot", "table", "list", "text", "image", "frame"]>>;
15
15
  /** Data Source Object */
16
16
  object: z.ZodOptional<z.ZodString>;
17
17
  /** Data Filter (MongoDB-style FilterCondition) */
@@ -48,7 +48,7 @@ export declare const DashboardWidgetSchema: z.ZodObject<{
48
48
  /** Widget specific options (colors, legend, etc.) */
49
49
  options: z.ZodOptional<z.ZodAny>;
50
50
  }, "strip", z.ZodTypeAny, {
51
- type: "text" | "metric" | "bar" | "line" | "pie" | "donut" | "funnel" | "table";
51
+ type: "frame" | "text" | "image" | "list" | "metric" | "bar" | "line" | "pie" | "donut" | "gauge" | "funnel" | "radar" | "scatter" | "heatmap" | "pivot" | "table";
52
52
  aggregate: "count" | "sum" | "avg" | "min" | "max";
53
53
  layout: {
54
54
  x: number;
@@ -57,8 +57,8 @@ export declare const DashboardWidgetSchema: z.ZodObject<{
57
57
  h: number;
58
58
  };
59
59
  object?: string | undefined;
60
- options?: any;
61
60
  filter?: import("../data/filter.zod").FilterCondition | undefined;
61
+ options?: any;
62
62
  title?: string | undefined;
63
63
  categoryField?: string | undefined;
64
64
  valueField?: string | undefined;
@@ -70,9 +70,9 @@ export declare const DashboardWidgetSchema: z.ZodObject<{
70
70
  h: number;
71
71
  };
72
72
  object?: string | undefined;
73
- options?: any;
74
- type?: "text" | "metric" | "bar" | "line" | "pie" | "donut" | "funnel" | "table" | undefined;
75
73
  filter?: import("../data/filter.zod").FilterCondition | undefined;
74
+ options?: any;
75
+ type?: "frame" | "text" | "image" | "list" | "metric" | "bar" | "line" | "pie" | "donut" | "gauge" | "funnel" | "radar" | "scatter" | "heatmap" | "pivot" | "table" | undefined;
76
76
  aggregate?: "count" | "sum" | "avg" | "min" | "max" | undefined;
77
77
  title?: string | undefined;
78
78
  categoryField?: string | undefined;
@@ -94,7 +94,7 @@ export declare const DashboardSchema: z.ZodObject<{
94
94
  /** Widget Title */
95
95
  title: z.ZodOptional<z.ZodString>;
96
96
  /** Visualization Type */
97
- type: z.ZodDefault<z.ZodEnum<["metric", "bar", "line", "pie", "donut", "funnel", "table", "text"]>>;
97
+ type: z.ZodDefault<z.ZodEnum<["metric", "bar", "line", "pie", "donut", "gauge", "funnel", "radar", "scatter", "heatmap", "pivot", "table", "list", "text", "image", "frame"]>>;
98
98
  /** Data Source Object */
99
99
  object: z.ZodOptional<z.ZodString>;
100
100
  /** Data Filter (MongoDB-style FilterCondition) */
@@ -131,7 +131,7 @@ export declare const DashboardSchema: z.ZodObject<{
131
131
  /** Widget specific options (colors, legend, etc.) */
132
132
  options: z.ZodOptional<z.ZodAny>;
133
133
  }, "strip", z.ZodTypeAny, {
134
- type: "text" | "metric" | "bar" | "line" | "pie" | "donut" | "funnel" | "table";
134
+ type: "frame" | "text" | "image" | "list" | "metric" | "bar" | "line" | "pie" | "donut" | "gauge" | "funnel" | "radar" | "scatter" | "heatmap" | "pivot" | "table";
135
135
  aggregate: "count" | "sum" | "avg" | "min" | "max";
136
136
  layout: {
137
137
  x: number;
@@ -140,8 +140,8 @@ export declare const DashboardSchema: z.ZodObject<{
140
140
  h: number;
141
141
  };
142
142
  object?: string | undefined;
143
- options?: any;
144
143
  filter?: import("../data/filter.zod").FilterCondition | undefined;
144
+ options?: any;
145
145
  title?: string | undefined;
146
146
  categoryField?: string | undefined;
147
147
  valueField?: string | undefined;
@@ -153,9 +153,9 @@ export declare const DashboardSchema: z.ZodObject<{
153
153
  h: number;
154
154
  };
155
155
  object?: string | undefined;
156
- options?: any;
157
- type?: "text" | "metric" | "bar" | "line" | "pie" | "donut" | "funnel" | "table" | undefined;
158
156
  filter?: import("../data/filter.zod").FilterCondition | undefined;
157
+ options?: any;
158
+ type?: "frame" | "text" | "image" | "list" | "metric" | "bar" | "line" | "pie" | "donut" | "gauge" | "funnel" | "radar" | "scatter" | "heatmap" | "pivot" | "table" | undefined;
159
159
  aggregate?: "count" | "sum" | "avg" | "min" | "max" | undefined;
160
160
  title?: string | undefined;
161
161
  categoryField?: string | undefined;
@@ -165,7 +165,7 @@ export declare const DashboardSchema: z.ZodObject<{
165
165
  label: string;
166
166
  name: string;
167
167
  widgets: {
168
- type: "text" | "metric" | "bar" | "line" | "pie" | "donut" | "funnel" | "table";
168
+ type: "frame" | "text" | "image" | "list" | "metric" | "bar" | "line" | "pie" | "donut" | "gauge" | "funnel" | "radar" | "scatter" | "heatmap" | "pivot" | "table";
169
169
  aggregate: "count" | "sum" | "avg" | "min" | "max";
170
170
  layout: {
171
171
  x: number;
@@ -174,8 +174,8 @@ export declare const DashboardSchema: z.ZodObject<{
174
174
  h: number;
175
175
  };
176
176
  object?: string | undefined;
177
- options?: any;
178
177
  filter?: import("../data/filter.zod").FilterCondition | undefined;
178
+ options?: any;
179
179
  title?: string | undefined;
180
180
  categoryField?: string | undefined;
181
181
  valueField?: string | undefined;
@@ -192,9 +192,9 @@ export declare const DashboardSchema: z.ZodObject<{
192
192
  h: number;
193
193
  };
194
194
  object?: string | undefined;
195
- options?: any;
196
- type?: "text" | "metric" | "bar" | "line" | "pie" | "donut" | "funnel" | "table" | undefined;
197
195
  filter?: import("../data/filter.zod").FilterCondition | undefined;
196
+ options?: any;
197
+ type?: "frame" | "text" | "image" | "list" | "metric" | "bar" | "line" | "pie" | "donut" | "gauge" | "funnel" | "radar" | "scatter" | "heatmap" | "pivot" | "table" | undefined;
198
198
  aggregate?: "count" | "sum" | "avg" | "min" | "max" | undefined;
199
199
  title?: string | undefined;
200
200
  categoryField?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"dashboard.zod.d.ts","sourceRoot":"","sources":["../../src/ui/dashboard.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,SAAS,iFASpB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,qBAAqB;IAChC,mBAAmB;;IAGnB,yBAAyB;;IAGzB,yBAAyB;;IAGzB,kDAAkD;;IAGlD,yCAAyC;;IAGzC,2BAA2B;;IAG3B,0BAA0B;;IAG1B;;;;;;OAMG;;;;;;;;;;;;;;;;;IAQH,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAErD,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,eAAe;IAC1B,mBAAmB;;IAGnB,oBAAoB;;IAGpB,kBAAkB;;IAGlB,4BAA4B;;QArD5B,mBAAmB;;QAGnB,yBAAyB;;QAGzB,yBAAyB;;QAGzB,kDAAkD;;QAGlD,yCAAyC;;QAGzC,2BAA2B;;QAG3B,0BAA0B;;QAG1B;;;;;;WAMG;;;;;;;;;;;;;;;;;QAQH,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBrD,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,SAAS;8BACH,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,KAAG,SAAS;CACpD,CAAC"}
1
+ {"version":3,"file":"dashboard.zod.d.ts","sourceRoot":"","sources":["../../src/ui/dashboard.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;GAEG;AACH,eAAO,MAAM,SAAS,4JAoBpB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,qBAAqB;IAChC,mBAAmB;;IAGnB,yBAAyB;;IAGzB,yBAAyB;;IAGzB,kDAAkD;;IAGlD,yCAAyC;;IAGzC,2BAA2B;;IAG3B,0BAA0B;;IAG1B;;;;;;OAMG;;;;;;;;;;;;;;;;;IAQH,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAErD,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,eAAe;IAC1B,mBAAmB;;IAGnB,oBAAoB;;IAGpB,kBAAkB;;IAGlB,4BAA4B;;QArD5B,mBAAmB;;QAGnB,yBAAyB;;QAGzB,yBAAyB;;QAGzB,kDAAkD;;QAGlD,yCAAyC;;QAGzC,2BAA2B;;QAG3B,0BAA0B;;QAG1B;;;;;;WAMG;;;;;;;;;;;;;;;;;QAQH,qDAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBrD,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,SAAS;8BACH,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,KAAG,SAAS;CACpD,CAAC"}
@@ -7,14 +7,24 @@ const filter_zod_1 = require("../data/filter.zod");
7
7
  * Chart Type Enum
8
8
  */
9
9
  exports.ChartType = zod_1.z.enum([
10
- 'metric', // Single big number
11
- 'bar', // Bar chart
12
- 'line', // Line chart
13
- 'pie', // Pie/Donut chart
14
- 'donut', // Donut chart
15
- 'funnel', // Funnel chart
16
- 'table', // Data table
17
- 'text' // Rich text / Markdown
10
+ // Analysis
11
+ 'metric', // KPI / Big Number
12
+ 'bar', // Bar / Column
13
+ 'line', // Line / Area
14
+ 'pie', // Pie
15
+ 'donut', // Donut
16
+ 'gauge', // Gauge / Speedometer
17
+ 'funnel', // Conversion Funnel
18
+ 'radar', // Spider / Radar
19
+ 'scatter', // Scatter Plot
20
+ 'heatmap', // Heatmap
21
+ 'pivot', // Pivot Table (Cross-tab)
22
+ // Content
23
+ 'table', // Data Grid
24
+ 'list', // Simple List
25
+ 'text', // Markdown / HTML
26
+ 'image', // Static Image
27
+ 'frame', // IFrame / Embed
18
28
  ]);
19
29
  /**
20
30
  * Dashboard Widget Schema
@@ -13,5 +13,6 @@ export * from './report.zod';
13
13
  export * from './action.zod';
14
14
  export * from './page.zod';
15
15
  export * from './widget.zod';
16
+ export * from './block.zod';
16
17
  export * from './theme.zod';
17
18
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC"}
package/dist/ui/index.js CHANGED
@@ -29,4 +29,5 @@ __exportStar(require("./report.zod"), exports);
29
29
  __exportStar(require("./action.zod"), exports);
30
30
  __exportStar(require("./page.zod"), exports);
31
31
  __exportStar(require("./widget.zod"), exports);
32
+ __exportStar(require("./block.zod"), exports);
32
33
  __exportStar(require("./theme.zod"), exports);