@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
@@ -1,4 +1,625 @@
1
1
  import { z } from 'zod';
2
+ /**
3
+ * Widget Lifecycle Hooks Schema
4
+ *
5
+ * Defines lifecycle callbacks for custom widgets inspired by Web Components and React.
6
+ * These hooks allow widgets to perform initialization, cleanup, and respond to changes.
7
+ *
8
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/Web_components
9
+ * @see https://react.dev/reference/react/Component#component-lifecycle
10
+ *
11
+ * @example
12
+ * ```typescript
13
+ * const widget = {
14
+ * lifecycle: {
15
+ * onMount: "console.log('Widget mounted')",
16
+ * onUpdate: "if (prevProps.value !== props.value) { updateUI() }",
17
+ * onUnmount: "cleanup()",
18
+ * onValidate: "return value.length > 0 ? null : 'Required field'"
19
+ * }
20
+ * }
21
+ * ```
22
+ */
23
+ export declare const WidgetLifecycleSchema: z.ZodObject<{
24
+ /**
25
+ * Called when widget is mounted/rendered for the first time
26
+ * Use for initialization, setting up event listeners, loading data, etc.
27
+ *
28
+ * @example "initializeDatePicker(); loadOptions();"
29
+ */
30
+ onMount: z.ZodOptional<z.ZodString>;
31
+ /**
32
+ * Called when widget props change
33
+ * Receives previous props for comparison
34
+ *
35
+ * @example "if (prevProps.value !== props.value) { updateDisplay() }"
36
+ */
37
+ onUpdate: z.ZodOptional<z.ZodString>;
38
+ /**
39
+ * Called when widget is about to be removed from DOM
40
+ * Use for cleanup, removing event listeners, canceling timers, etc.
41
+ *
42
+ * @example "destroyDatePicker(); cancelPendingRequests();"
43
+ */
44
+ onUnmount: z.ZodOptional<z.ZodString>;
45
+ /**
46
+ * Custom validation logic for this widget
47
+ * Should return error message string if invalid, null/undefined if valid
48
+ *
49
+ * @example "return value && value.length >= 10 ? null : 'Minimum 10 characters'"
50
+ */
51
+ onValidate: z.ZodOptional<z.ZodString>;
52
+ /**
53
+ * Called when widget receives focus
54
+ *
55
+ * @example "highlightField(); logFocusEvent();"
56
+ */
57
+ onFocus: z.ZodOptional<z.ZodString>;
58
+ /**
59
+ * Called when widget loses focus
60
+ *
61
+ * @example "validateField(); saveFieldState();"
62
+ */
63
+ onBlur: z.ZodOptional<z.ZodString>;
64
+ /**
65
+ * Called on any error in the widget
66
+ *
67
+ * @example "logError(error); showErrorNotification();"
68
+ */
69
+ onError: z.ZodOptional<z.ZodString>;
70
+ }, "strip", z.ZodTypeAny, {
71
+ onError?: string | undefined;
72
+ onMount?: string | undefined;
73
+ onUpdate?: string | undefined;
74
+ onUnmount?: string | undefined;
75
+ onValidate?: string | undefined;
76
+ onFocus?: string | undefined;
77
+ onBlur?: string | undefined;
78
+ }, {
79
+ onError?: string | undefined;
80
+ onMount?: string | undefined;
81
+ onUpdate?: string | undefined;
82
+ onUnmount?: string | undefined;
83
+ onValidate?: string | undefined;
84
+ onFocus?: string | undefined;
85
+ onBlur?: string | undefined;
86
+ }>;
87
+ export type WidgetLifecycle = z.infer<typeof WidgetLifecycleSchema>;
88
+ /**
89
+ * Widget Event Schema
90
+ *
91
+ * Defines custom events that widgets can emit, inspired by DOM Events and Lightning Web Components.
92
+ *
93
+ * @see https://developer.mozilla.org/en-US/docs/Web/Events/Creating_and_triggering_events
94
+ * @see https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.events
95
+ *
96
+ * @example
97
+ * ```typescript
98
+ * const searchEvent = {
99
+ * name: 'search',
100
+ * bubbles: true,
101
+ * cancelable: false,
102
+ * payload: {
103
+ * query: 'string',
104
+ * filters: 'object'
105
+ * }
106
+ * }
107
+ * ```
108
+ */
109
+ export declare const WidgetEventSchema: z.ZodObject<{
110
+ /**
111
+ * Event name
112
+ * Should be lowercase, dash-separated for consistency
113
+ *
114
+ * @example "value-change", "item-selected", "search-complete"
115
+ */
116
+ name: z.ZodString;
117
+ /**
118
+ * Event label for documentation
119
+ */
120
+ label: z.ZodOptional<z.ZodString>;
121
+ /**
122
+ * Event description
123
+ */
124
+ description: z.ZodOptional<z.ZodString>;
125
+ /**
126
+ * Whether event bubbles up through the DOM hierarchy
127
+ *
128
+ * @default false
129
+ */
130
+ bubbles: z.ZodDefault<z.ZodBoolean>;
131
+ /**
132
+ * Whether event can be cancelled
133
+ *
134
+ * @default false
135
+ */
136
+ cancelable: z.ZodDefault<z.ZodBoolean>;
137
+ /**
138
+ * Event payload schema
139
+ * Defines the data structure sent with the event
140
+ *
141
+ * @example { userId: 'string', timestamp: 'number' }
142
+ */
143
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
144
+ }, "strip", z.ZodTypeAny, {
145
+ name: string;
146
+ bubbles: boolean;
147
+ cancelable: boolean;
148
+ label?: string | undefined;
149
+ description?: string | undefined;
150
+ payload?: Record<string, any> | undefined;
151
+ }, {
152
+ name: string;
153
+ label?: string | undefined;
154
+ description?: string | undefined;
155
+ bubbles?: boolean | undefined;
156
+ cancelable?: boolean | undefined;
157
+ payload?: Record<string, any> | undefined;
158
+ }>;
159
+ export type WidgetEvent = z.infer<typeof WidgetEventSchema>;
160
+ /**
161
+ * Widget Property Definition Schema
162
+ *
163
+ * Defines the contract for widget configuration properties.
164
+ * Inspired by React PropTypes and Web Component attributes.
165
+ *
166
+ * @see https://react.dev/reference/react/Component#static-proptypes
167
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_custom_elements
168
+ *
169
+ * @example
170
+ * ```typescript
171
+ * const widgetProps = {
172
+ * maxLength: {
173
+ * type: 'number',
174
+ * required: false,
175
+ * default: 100,
176
+ * description: 'Maximum input length'
177
+ * }
178
+ * }
179
+ * ```
180
+ */
181
+ export declare const WidgetPropertySchema: z.ZodObject<{
182
+ /**
183
+ * Property name
184
+ * Should be camelCase following ObjectStack conventions
185
+ */
186
+ name: z.ZodString;
187
+ /**
188
+ * Property label for UI
189
+ */
190
+ label: z.ZodOptional<z.ZodString>;
191
+ /**
192
+ * Property data type
193
+ *
194
+ * @example "string", "number", "boolean", "array", "object", "function"
195
+ */
196
+ type: z.ZodEnum<["string", "number", "boolean", "array", "object", "function", "any"]>;
197
+ /**
198
+ * Whether property is required
199
+ *
200
+ * @default false
201
+ */
202
+ required: z.ZodDefault<z.ZodBoolean>;
203
+ /**
204
+ * Default value for the property
205
+ */
206
+ default: z.ZodOptional<z.ZodAny>;
207
+ /**
208
+ * Property description
209
+ */
210
+ description: z.ZodOptional<z.ZodString>;
211
+ /**
212
+ * Property validation schema
213
+ * Can include min/max, regex, enum values, etc.
214
+ */
215
+ validation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
216
+ /**
217
+ * Property category for grouping in UI
218
+ */
219
+ category: z.ZodOptional<z.ZodString>;
220
+ }, "strip", z.ZodTypeAny, {
221
+ type: "string" | "number" | "boolean" | "object" | "function" | "array" | "any";
222
+ required: boolean;
223
+ name: string;
224
+ validation?: Record<string, any> | undefined;
225
+ label?: string | undefined;
226
+ default?: any;
227
+ description?: string | undefined;
228
+ category?: string | undefined;
229
+ }, {
230
+ type: "string" | "number" | "boolean" | "object" | "function" | "array" | "any";
231
+ name: string;
232
+ validation?: Record<string, any> | undefined;
233
+ required?: boolean | undefined;
234
+ label?: string | undefined;
235
+ default?: any;
236
+ description?: string | undefined;
237
+ category?: string | undefined;
238
+ }>;
239
+ export type WidgetProperty = z.infer<typeof WidgetPropertySchema>;
240
+ /**
241
+ * Widget Manifest Schema
242
+ *
243
+ * Complete definition for a custom widget including metadata, lifecycle, events, and props.
244
+ * This is used for widget registration and discovery.
245
+ *
246
+ * @example
247
+ * ```typescript
248
+ * const customWidget = {
249
+ * name: 'custom_date_picker',
250
+ * label: 'Custom Date Picker',
251
+ * version: '1.0.0',
252
+ * author: 'Company Name',
253
+ * fieldTypes: ['date', 'datetime'],
254
+ * lifecycle: { ... },
255
+ * events: [ ... ],
256
+ * properties: [ ... ]
257
+ * }
258
+ * ```
259
+ */
260
+ export declare const WidgetManifestSchema: z.ZodObject<{
261
+ /**
262
+ * Widget identifier (snake_case)
263
+ */
264
+ name: z.ZodString;
265
+ /**
266
+ * Human-readable widget name
267
+ */
268
+ label: z.ZodString;
269
+ /**
270
+ * Widget description
271
+ */
272
+ description: z.ZodOptional<z.ZodString>;
273
+ /**
274
+ * Widget version (semver)
275
+ */
276
+ version: z.ZodOptional<z.ZodString>;
277
+ /**
278
+ * Widget author/organization
279
+ */
280
+ author: z.ZodOptional<z.ZodString>;
281
+ /**
282
+ * Icon name or URL
283
+ */
284
+ icon: z.ZodOptional<z.ZodString>;
285
+ /**
286
+ * Field types this widget supports
287
+ *
288
+ * @example ["text", "email", "url"]
289
+ */
290
+ fieldTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
291
+ /**
292
+ * Widget category for organization
293
+ */
294
+ category: z.ZodDefault<z.ZodEnum<["input", "display", "picker", "editor", "custom"]>>;
295
+ /**
296
+ * Widget lifecycle hooks
297
+ */
298
+ lifecycle: z.ZodOptional<z.ZodObject<{
299
+ /**
300
+ * Called when widget is mounted/rendered for the first time
301
+ * Use for initialization, setting up event listeners, loading data, etc.
302
+ *
303
+ * @example "initializeDatePicker(); loadOptions();"
304
+ */
305
+ onMount: z.ZodOptional<z.ZodString>;
306
+ /**
307
+ * Called when widget props change
308
+ * Receives previous props for comparison
309
+ *
310
+ * @example "if (prevProps.value !== props.value) { updateDisplay() }"
311
+ */
312
+ onUpdate: z.ZodOptional<z.ZodString>;
313
+ /**
314
+ * Called when widget is about to be removed from DOM
315
+ * Use for cleanup, removing event listeners, canceling timers, etc.
316
+ *
317
+ * @example "destroyDatePicker(); cancelPendingRequests();"
318
+ */
319
+ onUnmount: z.ZodOptional<z.ZodString>;
320
+ /**
321
+ * Custom validation logic for this widget
322
+ * Should return error message string if invalid, null/undefined if valid
323
+ *
324
+ * @example "return value && value.length >= 10 ? null : 'Minimum 10 characters'"
325
+ */
326
+ onValidate: z.ZodOptional<z.ZodString>;
327
+ /**
328
+ * Called when widget receives focus
329
+ *
330
+ * @example "highlightField(); logFocusEvent();"
331
+ */
332
+ onFocus: z.ZodOptional<z.ZodString>;
333
+ /**
334
+ * Called when widget loses focus
335
+ *
336
+ * @example "validateField(); saveFieldState();"
337
+ */
338
+ onBlur: z.ZodOptional<z.ZodString>;
339
+ /**
340
+ * Called on any error in the widget
341
+ *
342
+ * @example "logError(error); showErrorNotification();"
343
+ */
344
+ onError: z.ZodOptional<z.ZodString>;
345
+ }, "strip", z.ZodTypeAny, {
346
+ onError?: string | undefined;
347
+ onMount?: string | undefined;
348
+ onUpdate?: string | undefined;
349
+ onUnmount?: string | undefined;
350
+ onValidate?: string | undefined;
351
+ onFocus?: string | undefined;
352
+ onBlur?: string | undefined;
353
+ }, {
354
+ onError?: string | undefined;
355
+ onMount?: string | undefined;
356
+ onUpdate?: string | undefined;
357
+ onUnmount?: string | undefined;
358
+ onValidate?: string | undefined;
359
+ onFocus?: string | undefined;
360
+ onBlur?: string | undefined;
361
+ }>>;
362
+ /**
363
+ * Custom events this widget emits
364
+ */
365
+ events: z.ZodOptional<z.ZodArray<z.ZodObject<{
366
+ /**
367
+ * Event name
368
+ * Should be lowercase, dash-separated for consistency
369
+ *
370
+ * @example "value-change", "item-selected", "search-complete"
371
+ */
372
+ name: z.ZodString;
373
+ /**
374
+ * Event label for documentation
375
+ */
376
+ label: z.ZodOptional<z.ZodString>;
377
+ /**
378
+ * Event description
379
+ */
380
+ description: z.ZodOptional<z.ZodString>;
381
+ /**
382
+ * Whether event bubbles up through the DOM hierarchy
383
+ *
384
+ * @default false
385
+ */
386
+ bubbles: z.ZodDefault<z.ZodBoolean>;
387
+ /**
388
+ * Whether event can be cancelled
389
+ *
390
+ * @default false
391
+ */
392
+ cancelable: z.ZodDefault<z.ZodBoolean>;
393
+ /**
394
+ * Event payload schema
395
+ * Defines the data structure sent with the event
396
+ *
397
+ * @example { userId: 'string', timestamp: 'number' }
398
+ */
399
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
400
+ }, "strip", z.ZodTypeAny, {
401
+ name: string;
402
+ bubbles: boolean;
403
+ cancelable: boolean;
404
+ label?: string | undefined;
405
+ description?: string | undefined;
406
+ payload?: Record<string, any> | undefined;
407
+ }, {
408
+ name: string;
409
+ label?: string | undefined;
410
+ description?: string | undefined;
411
+ bubbles?: boolean | undefined;
412
+ cancelable?: boolean | undefined;
413
+ payload?: Record<string, any> | undefined;
414
+ }>, "many">>;
415
+ /**
416
+ * Widget configuration properties
417
+ */
418
+ properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
419
+ /**
420
+ * Property name
421
+ * Should be camelCase following ObjectStack conventions
422
+ */
423
+ name: z.ZodString;
424
+ /**
425
+ * Property label for UI
426
+ */
427
+ label: z.ZodOptional<z.ZodString>;
428
+ /**
429
+ * Property data type
430
+ *
431
+ * @example "string", "number", "boolean", "array", "object", "function"
432
+ */
433
+ type: z.ZodEnum<["string", "number", "boolean", "array", "object", "function", "any"]>;
434
+ /**
435
+ * Whether property is required
436
+ *
437
+ * @default false
438
+ */
439
+ required: z.ZodDefault<z.ZodBoolean>;
440
+ /**
441
+ * Default value for the property
442
+ */
443
+ default: z.ZodOptional<z.ZodAny>;
444
+ /**
445
+ * Property description
446
+ */
447
+ description: z.ZodOptional<z.ZodString>;
448
+ /**
449
+ * Property validation schema
450
+ * Can include min/max, regex, enum values, etc.
451
+ */
452
+ validation: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
453
+ /**
454
+ * Property category for grouping in UI
455
+ */
456
+ category: z.ZodOptional<z.ZodString>;
457
+ }, "strip", z.ZodTypeAny, {
458
+ type: "string" | "number" | "boolean" | "object" | "function" | "array" | "any";
459
+ required: boolean;
460
+ name: string;
461
+ validation?: Record<string, any> | undefined;
462
+ label?: string | undefined;
463
+ default?: any;
464
+ description?: string | undefined;
465
+ category?: string | undefined;
466
+ }, {
467
+ type: "string" | "number" | "boolean" | "object" | "function" | "array" | "any";
468
+ name: string;
469
+ validation?: Record<string, any> | undefined;
470
+ required?: boolean | undefined;
471
+ label?: string | undefined;
472
+ default?: any;
473
+ description?: string | undefined;
474
+ category?: string | undefined;
475
+ }>, "many">>;
476
+ /**
477
+ * Widget implementation
478
+ * URL to component or inline code
479
+ */
480
+ implementation: z.ZodOptional<z.ZodObject<{
481
+ type: z.ZodEnum<["url", "inline", "module"]>;
482
+ source: z.ZodString;
483
+ }, "strip", z.ZodTypeAny, {
484
+ type: "url" | "inline" | "module";
485
+ source: string;
486
+ }, {
487
+ type: "url" | "inline" | "module";
488
+ source: string;
489
+ }>>;
490
+ /**
491
+ * Widget dependencies
492
+ * External libraries or scripts needed
493
+ */
494
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodObject<{
495
+ name: z.ZodString;
496
+ version: z.ZodOptional<z.ZodString>;
497
+ url: z.ZodOptional<z.ZodString>;
498
+ }, "strip", z.ZodTypeAny, {
499
+ name: string;
500
+ url?: string | undefined;
501
+ version?: string | undefined;
502
+ }, {
503
+ name: string;
504
+ url?: string | undefined;
505
+ version?: string | undefined;
506
+ }>, "many">>;
507
+ /**
508
+ * Widget screenshots for showcase
509
+ */
510
+ screenshots: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
511
+ /**
512
+ * Widget documentation URL
513
+ */
514
+ documentation: z.ZodOptional<z.ZodString>;
515
+ /**
516
+ * License information
517
+ */
518
+ license: z.ZodOptional<z.ZodString>;
519
+ /**
520
+ * Tags for discovery
521
+ */
522
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
523
+ }, "strip", z.ZodTypeAny, {
524
+ label: string;
525
+ name: string;
526
+ category: "custom" | "input" | "display" | "picker" | "editor";
527
+ tags?: string[] | undefined;
528
+ description?: string | undefined;
529
+ events?: {
530
+ name: string;
531
+ bubbles: boolean;
532
+ cancelable: boolean;
533
+ label?: string | undefined;
534
+ description?: string | undefined;
535
+ payload?: Record<string, any> | undefined;
536
+ }[] | undefined;
537
+ icon?: string | undefined;
538
+ version?: string | undefined;
539
+ properties?: {
540
+ type: "string" | "number" | "boolean" | "object" | "function" | "array" | "any";
541
+ required: boolean;
542
+ name: string;
543
+ validation?: Record<string, any> | undefined;
544
+ label?: string | undefined;
545
+ default?: any;
546
+ description?: string | undefined;
547
+ category?: string | undefined;
548
+ }[] | undefined;
549
+ author?: string | undefined;
550
+ fieldTypes?: string[] | undefined;
551
+ lifecycle?: {
552
+ onError?: string | undefined;
553
+ onMount?: string | undefined;
554
+ onUpdate?: string | undefined;
555
+ onUnmount?: string | undefined;
556
+ onValidate?: string | undefined;
557
+ onFocus?: string | undefined;
558
+ onBlur?: string | undefined;
559
+ } | undefined;
560
+ implementation?: {
561
+ type: "url" | "inline" | "module";
562
+ source: string;
563
+ } | undefined;
564
+ dependencies?: {
565
+ name: string;
566
+ url?: string | undefined;
567
+ version?: string | undefined;
568
+ }[] | undefined;
569
+ screenshots?: string[] | undefined;
570
+ documentation?: string | undefined;
571
+ license?: string | undefined;
572
+ }, {
573
+ label: string;
574
+ name: string;
575
+ tags?: string[] | undefined;
576
+ description?: string | undefined;
577
+ events?: {
578
+ name: string;
579
+ label?: string | undefined;
580
+ description?: string | undefined;
581
+ bubbles?: boolean | undefined;
582
+ cancelable?: boolean | undefined;
583
+ payload?: Record<string, any> | undefined;
584
+ }[] | undefined;
585
+ icon?: string | undefined;
586
+ version?: string | undefined;
587
+ properties?: {
588
+ type: "string" | "number" | "boolean" | "object" | "function" | "array" | "any";
589
+ name: string;
590
+ validation?: Record<string, any> | undefined;
591
+ required?: boolean | undefined;
592
+ label?: string | undefined;
593
+ default?: any;
594
+ description?: string | undefined;
595
+ category?: string | undefined;
596
+ }[] | undefined;
597
+ category?: "custom" | "input" | "display" | "picker" | "editor" | undefined;
598
+ author?: string | undefined;
599
+ fieldTypes?: string[] | undefined;
600
+ lifecycle?: {
601
+ onError?: string | undefined;
602
+ onMount?: string | undefined;
603
+ onUpdate?: string | undefined;
604
+ onUnmount?: string | undefined;
605
+ onValidate?: string | undefined;
606
+ onFocus?: string | undefined;
607
+ onBlur?: string | undefined;
608
+ } | undefined;
609
+ implementation?: {
610
+ type: "url" | "inline" | "module";
611
+ source: string;
612
+ } | undefined;
613
+ dependencies?: {
614
+ name: string;
615
+ url?: string | undefined;
616
+ version?: string | undefined;
617
+ }[] | undefined;
618
+ screenshots?: string[] | undefined;
619
+ documentation?: string | undefined;
620
+ license?: string | undefined;
621
+ }>;
622
+ export type WidgetManifest = z.infer<typeof WidgetManifestSchema>;
2
623
  /**
3
624
  * Field Widget Props Schema
4
625
  *
@@ -48,7 +669,7 @@ export declare const FieldWidgetPropsSchema: z.ZodObject<{
48
669
  field: z.ZodObject<{
49
670
  name: z.ZodOptional<z.ZodString>;
50
671
  label: z.ZodOptional<z.ZodString>;
51
- type: z.ZodEnum<["text", "textarea", "email", "url", "phone", "password", "markdown", "html", "richtext", "number", "currency", "percent", "date", "datetime", "time", "boolean", "select", "lookup", "master_detail", "image", "file", "avatar", "formula", "summary", "autonumber", "location", "geolocation", "address", "code", "color", "rating", "slider", "signature", "qrcode"]>;
672
+ type: z.ZodEnum<["text", "textarea", "email", "url", "phone", "password", "markdown", "html", "richtext", "number", "currency", "percent", "date", "datetime", "time", "boolean", "toggle", "select", "multiselect", "radio", "checkboxes", "lookup", "master_detail", "tree", "image", "file", "avatar", "video", "audio", "formula", "summary", "autonumber", "location", "address", "code", "json", "color", "rating", "slider", "signature", "qrcode", "progress", "tags", "vector"]>;
52
673
  description: z.ZodOptional<z.ZodString>;
53
674
  format: z.ZodOptional<z.ZodString>;
54
675
  required: z.ZodDefault<z.ZodBoolean>;
@@ -128,13 +749,32 @@ export declare const FieldWidgetPropsSchema: z.ZodObject<{
128
749
  currencyMode?: "dynamic" | "fixed" | undefined;
129
750
  defaultCurrency?: string | undefined;
130
751
  }>>;
752
+ vectorConfig: z.ZodOptional<z.ZodObject<{
753
+ dimensions: z.ZodNumber;
754
+ distanceMetric: z.ZodDefault<z.ZodEnum<["cosine", "euclidean", "dotProduct", "manhattan"]>>;
755
+ normalized: z.ZodDefault<z.ZodBoolean>;
756
+ indexed: z.ZodDefault<z.ZodBoolean>;
757
+ indexType: z.ZodOptional<z.ZodEnum<["hnsw", "ivfflat", "flat"]>>;
758
+ }, "strip", z.ZodTypeAny, {
759
+ dimensions: number;
760
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
761
+ normalized: boolean;
762
+ indexed: boolean;
763
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
764
+ }, {
765
+ dimensions: number;
766
+ distanceMetric?: "cosine" | "euclidean" | "dotProduct" | "manhattan" | undefined;
767
+ normalized?: boolean | undefined;
768
+ indexed?: boolean | undefined;
769
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
770
+ }>>;
131
771
  hidden: z.ZodDefault<z.ZodBoolean>;
132
772
  readonly: z.ZodDefault<z.ZodBoolean>;
133
773
  encryption: z.ZodDefault<z.ZodBoolean>;
134
774
  index: z.ZodDefault<z.ZodBoolean>;
135
775
  externalId: z.ZodDefault<z.ZodBoolean>;
136
776
  }, "strip", z.ZodTypeAny, {
137
- type: "number" | "boolean" | "code" | "date" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "time" | "select" | "lookup" | "master_detail" | "image" | "file" | "avatar" | "formula" | "summary" | "autonumber" | "location" | "geolocation" | "address" | "color" | "rating" | "slider" | "signature" | "qrcode";
777
+ type: "number" | "boolean" | "code" | "date" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "file" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector";
138
778
  required: boolean;
139
779
  searchable: boolean;
140
780
  multiple: boolean;
@@ -195,8 +835,15 @@ export declare const FieldWidgetPropsSchema: z.ZodObject<{
195
835
  currencyMode: "dynamic" | "fixed";
196
836
  defaultCurrency: string;
197
837
  } | undefined;
838
+ vectorConfig?: {
839
+ dimensions: number;
840
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
841
+ normalized: boolean;
842
+ indexed: boolean;
843
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
844
+ } | undefined;
198
845
  }, {
199
- type: "number" | "boolean" | "code" | "date" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "time" | "select" | "lookup" | "master_detail" | "image" | "file" | "avatar" | "formula" | "summary" | "autonumber" | "location" | "geolocation" | "address" | "color" | "rating" | "slider" | "signature" | "qrcode";
846
+ type: "number" | "boolean" | "code" | "date" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "file" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector";
200
847
  options?: {
201
848
  value: string;
202
849
  label: string;
@@ -252,6 +899,13 @@ export declare const FieldWidgetPropsSchema: z.ZodObject<{
252
899
  currencyMode?: "dynamic" | "fixed" | undefined;
253
900
  defaultCurrency?: string | undefined;
254
901
  } | undefined;
902
+ vectorConfig?: {
903
+ dimensions: number;
904
+ distanceMetric?: "cosine" | "euclidean" | "dotProduct" | "manhattan" | undefined;
905
+ normalized?: boolean | undefined;
906
+ indexed?: boolean | undefined;
907
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
908
+ } | undefined;
255
909
  hidden?: boolean | undefined;
256
910
  readonly?: boolean | undefined;
257
911
  encryption?: boolean | undefined;
@@ -271,7 +925,7 @@ export declare const FieldWidgetPropsSchema: z.ZodObject<{
271
925
  }, "strip", z.ZodTypeAny, {
272
926
  required: boolean;
273
927
  field: {
274
- type: "number" | "boolean" | "code" | "date" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "time" | "select" | "lookup" | "master_detail" | "image" | "file" | "avatar" | "formula" | "summary" | "autonumber" | "location" | "geolocation" | "address" | "color" | "rating" | "slider" | "signature" | "qrcode";
928
+ type: "number" | "boolean" | "code" | "date" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "file" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector";
275
929
  required: boolean;
276
930
  searchable: boolean;
277
931
  multiple: boolean;
@@ -332,6 +986,13 @@ export declare const FieldWidgetPropsSchema: z.ZodObject<{
332
986
  currencyMode: "dynamic" | "fixed";
333
987
  defaultCurrency: string;
334
988
  } | undefined;
989
+ vectorConfig?: {
990
+ dimensions: number;
991
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
992
+ normalized: boolean;
993
+ indexed: boolean;
994
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
995
+ } | undefined;
335
996
  };
336
997
  readonly: boolean;
337
998
  onChange: (args_0: any, ...args: unknown[]) => void;
@@ -341,7 +1002,7 @@ export declare const FieldWidgetPropsSchema: z.ZodObject<{
341
1002
  record?: Record<string, any> | undefined;
342
1003
  }, {
343
1004
  field: {
344
- type: "number" | "boolean" | "code" | "date" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "time" | "select" | "lookup" | "master_detail" | "image" | "file" | "avatar" | "formula" | "summary" | "autonumber" | "location" | "geolocation" | "address" | "color" | "rating" | "slider" | "signature" | "qrcode";
1005
+ type: "number" | "boolean" | "code" | "date" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "datetime" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "file" | "avatar" | "video" | "audio" | "formula" | "summary" | "autonumber" | "location" | "address" | "json" | "color" | "rating" | "slider" | "signature" | "qrcode" | "progress" | "tags" | "vector";
345
1006
  options?: {
346
1007
  value: string;
347
1008
  label: string;
@@ -397,6 +1058,13 @@ export declare const FieldWidgetPropsSchema: z.ZodObject<{
397
1058
  currencyMode?: "dynamic" | "fixed" | undefined;
398
1059
  defaultCurrency?: string | undefined;
399
1060
  } | undefined;
1061
+ vectorConfig?: {
1062
+ dimensions: number;
1063
+ distanceMetric?: "cosine" | "euclidean" | "dotProduct" | "manhattan" | undefined;
1064
+ normalized?: boolean | undefined;
1065
+ indexed?: boolean | undefined;
1066
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
1067
+ } | undefined;
400
1068
  hidden?: boolean | undefined;
401
1069
  readonly?: boolean | undefined;
402
1070
  encryption?: boolean | undefined;