@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
@@ -2,10 +2,25 @@ import { z } from 'zod';
2
2
  /**
3
3
  * Field Type Enum
4
4
  */
5
- export declare const FieldType: 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"]>;
5
+ export declare const FieldType: 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"]>;
6
6
  export type FieldType = z.infer<typeof FieldType>;
7
7
  /**
8
8
  * Select Option Schema
9
+ *
10
+ * Defines option values for select/picklist fields.
11
+ *
12
+ * **CRITICAL RULE**: The `value` field is a machine identifier that gets stored in the database.
13
+ * It MUST be lowercase to avoid case-sensitivity issues in queries and comparisons.
14
+ *
15
+ * @example Good
16
+ * { label: 'New', value: 'new' }
17
+ * { label: 'In Progress', value: 'in_progress' }
18
+ * { label: 'Closed Won', value: 'closed_won' }
19
+ *
20
+ * @example Bad (will be rejected)
21
+ * { label: 'New', value: 'New' } // uppercase
22
+ * { label: 'In Progress', value: 'In Progress' } // spaces and uppercase
23
+ * { label: 'Closed Won', value: 'Closed_Won' } // mixed case
9
24
  */
10
25
  export declare const SelectOptionSchema: z.ZodObject<{
11
26
  label: z.ZodString;
@@ -112,6 +127,49 @@ export declare const AddressSchema: z.ZodObject<{
112
127
  countryCode?: string | undefined;
113
128
  formatted?: string | undefined;
114
129
  }>;
130
+ /**
131
+ * Vector Configuration Schema
132
+ * Configuration for vector field type supporting AI/ML embeddings
133
+ *
134
+ * Vector fields store numerical embeddings for semantic search, similarity matching,
135
+ * and Retrieval-Augmented Generation (RAG) workflows.
136
+ *
137
+ * @example
138
+ * // Text embeddings for semantic search
139
+ * {
140
+ * dimensions: 1536, // OpenAI text-embedding-ada-002
141
+ * distanceMetric: 'cosine',
142
+ * indexed: true
143
+ * }
144
+ *
145
+ * @example
146
+ * // Image embeddings with normalization
147
+ * {
148
+ * dimensions: 512, // ResNet-50
149
+ * distanceMetric: 'euclidean',
150
+ * normalized: true,
151
+ * indexed: true
152
+ * }
153
+ */
154
+ export declare const VectorConfigSchema: z.ZodObject<{
155
+ dimensions: z.ZodNumber;
156
+ distanceMetric: z.ZodDefault<z.ZodEnum<["cosine", "euclidean", "dotProduct", "manhattan"]>>;
157
+ normalized: z.ZodDefault<z.ZodBoolean>;
158
+ indexed: z.ZodDefault<z.ZodBoolean>;
159
+ indexType: z.ZodOptional<z.ZodEnum<["hnsw", "ivfflat", "flat"]>>;
160
+ }, "strip", z.ZodTypeAny, {
161
+ dimensions: number;
162
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
163
+ normalized: boolean;
164
+ indexed: boolean;
165
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
166
+ }, {
167
+ dimensions: number;
168
+ distanceMetric?: "cosine" | "euclidean" | "dotProduct" | "manhattan" | undefined;
169
+ normalized?: boolean | undefined;
170
+ indexed?: boolean | undefined;
171
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
172
+ }>;
115
173
  /**
116
174
  * Field Schema - Best Practice Enterprise Pattern
117
175
  */
@@ -119,7 +177,7 @@ export declare const FieldSchema: z.ZodObject<{
119
177
  /** Identity */
120
178
  name: z.ZodOptional<z.ZodString>;
121
179
  label: z.ZodOptional<z.ZodString>;
122
- 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"]>;
180
+ 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"]>;
123
181
  description: z.ZodOptional<z.ZodString>;
124
182
  format: z.ZodOptional<z.ZodString>;
125
183
  /** Database Constraints */
@@ -206,6 +264,25 @@ export declare const FieldSchema: z.ZodObject<{
206
264
  currencyMode?: "dynamic" | "fixed" | undefined;
207
265
  defaultCurrency?: string | undefined;
208
266
  }>>;
267
+ vectorConfig: z.ZodOptional<z.ZodObject<{
268
+ dimensions: z.ZodNumber;
269
+ distanceMetric: z.ZodDefault<z.ZodEnum<["cosine", "euclidean", "dotProduct", "manhattan"]>>;
270
+ normalized: z.ZodDefault<z.ZodBoolean>;
271
+ indexed: z.ZodDefault<z.ZodBoolean>;
272
+ indexType: z.ZodOptional<z.ZodEnum<["hnsw", "ivfflat", "flat"]>>;
273
+ }, "strip", z.ZodTypeAny, {
274
+ dimensions: number;
275
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
276
+ normalized: boolean;
277
+ indexed: boolean;
278
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
279
+ }, {
280
+ dimensions: number;
281
+ distanceMetric?: "cosine" | "euclidean" | "dotProduct" | "manhattan" | undefined;
282
+ normalized?: boolean | undefined;
283
+ indexed?: boolean | undefined;
284
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
285
+ }>>;
209
286
  /** Security & Visibility */
210
287
  hidden: z.ZodDefault<z.ZodBoolean>;
211
288
  readonly: z.ZodDefault<z.ZodBoolean>;
@@ -214,7 +291,7 @@ export declare const FieldSchema: z.ZodObject<{
214
291
  index: z.ZodDefault<z.ZodBoolean>;
215
292
  externalId: z.ZodDefault<z.ZodBoolean>;
216
293
  }, "strip", z.ZodTypeAny, {
217
- 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";
294
+ 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";
218
295
  required: boolean;
219
296
  searchable: boolean;
220
297
  multiple: boolean;
@@ -275,8 +352,15 @@ export declare const FieldSchema: z.ZodObject<{
275
352
  currencyMode: "dynamic" | "fixed";
276
353
  defaultCurrency: string;
277
354
  } | undefined;
355
+ vectorConfig?: {
356
+ dimensions: number;
357
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
358
+ normalized: boolean;
359
+ indexed: boolean;
360
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
361
+ } | undefined;
278
362
  }, {
279
- 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";
363
+ 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";
280
364
  options?: {
281
365
  value: string;
282
366
  label: string;
@@ -332,6 +416,13 @@ export declare const FieldSchema: z.ZodObject<{
332
416
  currencyMode?: "dynamic" | "fixed" | undefined;
333
417
  defaultCurrency?: string | undefined;
334
418
  } | undefined;
419
+ vectorConfig?: {
420
+ dimensions: number;
421
+ distanceMetric?: "cosine" | "euclidean" | "dotProduct" | "manhattan" | undefined;
422
+ normalized?: boolean | undefined;
423
+ indexed?: boolean | undefined;
424
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
425
+ } | undefined;
335
426
  hidden?: boolean | undefined;
336
427
  readonly?: boolean | undefined;
337
428
  encryption?: boolean | undefined;
@@ -344,6 +435,7 @@ export type LocationCoordinates = z.infer<typeof LocationCoordinatesSchema>;
344
435
  export type Address = z.infer<typeof AddressSchema>;
345
436
  export type CurrencyConfig = z.infer<typeof CurrencyConfigSchema>;
346
437
  export type CurrencyValue = z.infer<typeof CurrencyValueSchema>;
438
+ export type VectorConfig = z.infer<typeof VectorConfigSchema>;
347
439
  /**
348
440
  * Field Factory Helper
349
441
  */
@@ -405,6 +497,13 @@ export declare const Field: {
405
497
  currencyMode: "dynamic" | "fixed";
406
498
  defaultCurrency: string;
407
499
  } | undefined;
500
+ readonly vectorConfig?: {
501
+ dimensions: number;
502
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
503
+ normalized: boolean;
504
+ indexed: boolean;
505
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
506
+ } | undefined;
408
507
  readonly hidden?: boolean | undefined;
409
508
  readonly readonly?: boolean | undefined;
410
509
  readonly encryption?: boolean | undefined;
@@ -468,6 +567,13 @@ export declare const Field: {
468
567
  currencyMode: "dynamic" | "fixed";
469
568
  defaultCurrency: string;
470
569
  } | undefined;
570
+ readonly vectorConfig?: {
571
+ dimensions: number;
572
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
573
+ normalized: boolean;
574
+ indexed: boolean;
575
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
576
+ } | undefined;
471
577
  readonly hidden?: boolean | undefined;
472
578
  readonly readonly?: boolean | undefined;
473
579
  readonly encryption?: boolean | undefined;
@@ -531,6 +637,13 @@ export declare const Field: {
531
637
  currencyMode: "dynamic" | "fixed";
532
638
  defaultCurrency: string;
533
639
  } | undefined;
640
+ readonly vectorConfig?: {
641
+ dimensions: number;
642
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
643
+ normalized: boolean;
644
+ indexed: boolean;
645
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
646
+ } | undefined;
534
647
  readonly hidden?: boolean | undefined;
535
648
  readonly readonly?: boolean | undefined;
536
649
  readonly encryption?: boolean | undefined;
@@ -594,6 +707,13 @@ export declare const Field: {
594
707
  currencyMode: "dynamic" | "fixed";
595
708
  defaultCurrency: string;
596
709
  } | undefined;
710
+ readonly vectorConfig?: {
711
+ dimensions: number;
712
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
713
+ normalized: boolean;
714
+ indexed: boolean;
715
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
716
+ } | undefined;
597
717
  readonly hidden?: boolean | undefined;
598
718
  readonly readonly?: boolean | undefined;
599
719
  readonly encryption?: boolean | undefined;
@@ -657,6 +777,13 @@ export declare const Field: {
657
777
  currencyMode: "dynamic" | "fixed";
658
778
  defaultCurrency: string;
659
779
  } | undefined;
780
+ readonly vectorConfig?: {
781
+ dimensions: number;
782
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
783
+ normalized: boolean;
784
+ indexed: boolean;
785
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
786
+ } | undefined;
660
787
  readonly hidden?: boolean | undefined;
661
788
  readonly readonly?: boolean | undefined;
662
789
  readonly encryption?: boolean | undefined;
@@ -720,6 +847,13 @@ export declare const Field: {
720
847
  currencyMode: "dynamic" | "fixed";
721
848
  defaultCurrency: string;
722
849
  } | undefined;
850
+ readonly vectorConfig?: {
851
+ dimensions: number;
852
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
853
+ normalized: boolean;
854
+ indexed: boolean;
855
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
856
+ } | undefined;
723
857
  readonly hidden?: boolean | undefined;
724
858
  readonly readonly?: boolean | undefined;
725
859
  readonly encryption?: boolean | undefined;
@@ -783,6 +917,13 @@ export declare const Field: {
783
917
  currencyMode: "dynamic" | "fixed";
784
918
  defaultCurrency: string;
785
919
  } | undefined;
920
+ readonly vectorConfig?: {
921
+ dimensions: number;
922
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
923
+ normalized: boolean;
924
+ indexed: boolean;
925
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
926
+ } | undefined;
786
927
  readonly hidden?: boolean | undefined;
787
928
  readonly readonly?: boolean | undefined;
788
929
  readonly encryption?: boolean | undefined;
@@ -846,6 +987,13 @@ export declare const Field: {
846
987
  currencyMode: "dynamic" | "fixed";
847
988
  defaultCurrency: string;
848
989
  } | undefined;
990
+ readonly vectorConfig?: {
991
+ dimensions: number;
992
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
993
+ normalized: boolean;
994
+ indexed: boolean;
995
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
996
+ } | undefined;
849
997
  readonly hidden?: boolean | undefined;
850
998
  readonly readonly?: boolean | undefined;
851
999
  readonly encryption?: boolean | undefined;
@@ -909,6 +1057,13 @@ export declare const Field: {
909
1057
  currencyMode: "dynamic" | "fixed";
910
1058
  defaultCurrency: string;
911
1059
  } | undefined;
1060
+ readonly vectorConfig?: {
1061
+ dimensions: number;
1062
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
1063
+ normalized: boolean;
1064
+ indexed: boolean;
1065
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
1066
+ } | undefined;
912
1067
  readonly hidden?: boolean | undefined;
913
1068
  readonly readonly?: boolean | undefined;
914
1069
  readonly encryption?: boolean | undefined;
@@ -972,6 +1127,13 @@ export declare const Field: {
972
1127
  currencyMode: "dynamic" | "fixed";
973
1128
  defaultCurrency: string;
974
1129
  } | undefined;
1130
+ readonly vectorConfig?: {
1131
+ dimensions: number;
1132
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
1133
+ normalized: boolean;
1134
+ indexed: boolean;
1135
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
1136
+ } | undefined;
975
1137
  readonly hidden?: boolean | undefined;
976
1138
  readonly readonly?: boolean | undefined;
977
1139
  readonly encryption?: boolean | undefined;
@@ -1035,6 +1197,13 @@ export declare const Field: {
1035
1197
  currencyMode: "dynamic" | "fixed";
1036
1198
  defaultCurrency: string;
1037
1199
  } | undefined;
1200
+ readonly vectorConfig?: {
1201
+ dimensions: number;
1202
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
1203
+ normalized: boolean;
1204
+ indexed: boolean;
1205
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
1206
+ } | undefined;
1038
1207
  readonly hidden?: boolean | undefined;
1039
1208
  readonly readonly?: boolean | undefined;
1040
1209
  readonly encryption?: boolean | undefined;
@@ -1098,6 +1267,13 @@ export declare const Field: {
1098
1267
  currencyMode: "dynamic" | "fixed";
1099
1268
  defaultCurrency: string;
1100
1269
  } | undefined;
1270
+ readonly vectorConfig?: {
1271
+ dimensions: number;
1272
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
1273
+ normalized: boolean;
1274
+ indexed: boolean;
1275
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
1276
+ } | undefined;
1101
1277
  readonly hidden?: boolean | undefined;
1102
1278
  readonly readonly?: boolean | undefined;
1103
1279
  readonly encryption?: boolean | undefined;
@@ -1161,6 +1337,13 @@ export declare const Field: {
1161
1337
  currencyMode: "dynamic" | "fixed";
1162
1338
  defaultCurrency: string;
1163
1339
  } | undefined;
1340
+ readonly vectorConfig?: {
1341
+ dimensions: number;
1342
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
1343
+ normalized: boolean;
1344
+ indexed: boolean;
1345
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
1346
+ } | undefined;
1164
1347
  readonly hidden?: boolean | undefined;
1165
1348
  readonly readonly?: boolean | undefined;
1166
1349
  readonly encryption?: boolean | undefined;
@@ -1224,6 +1407,13 @@ export declare const Field: {
1224
1407
  currencyMode: "dynamic" | "fixed";
1225
1408
  defaultCurrency: string;
1226
1409
  } | undefined;
1410
+ readonly vectorConfig?: {
1411
+ dimensions: number;
1412
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
1413
+ normalized: boolean;
1414
+ indexed: boolean;
1415
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
1416
+ } | undefined;
1227
1417
  readonly hidden?: boolean | undefined;
1228
1418
  readonly readonly?: boolean | undefined;
1229
1419
  readonly encryption?: boolean | undefined;
@@ -1287,6 +1477,13 @@ export declare const Field: {
1287
1477
  currencyMode: "dynamic" | "fixed";
1288
1478
  defaultCurrency: string;
1289
1479
  } | undefined;
1480
+ readonly vectorConfig?: {
1481
+ dimensions: number;
1482
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
1483
+ normalized: boolean;
1484
+ indexed: boolean;
1485
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
1486
+ } | undefined;
1290
1487
  readonly hidden?: boolean | undefined;
1291
1488
  readonly readonly?: boolean | undefined;
1292
1489
  readonly encryption?: boolean | undefined;
@@ -1350,6 +1547,13 @@ export declare const Field: {
1350
1547
  currencyMode: "dynamic" | "fixed";
1351
1548
  defaultCurrency: string;
1352
1549
  } | undefined;
1550
+ readonly vectorConfig?: {
1551
+ dimensions: number;
1552
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
1553
+ normalized: boolean;
1554
+ indexed: boolean;
1555
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
1556
+ } | undefined;
1353
1557
  readonly hidden?: boolean | undefined;
1354
1558
  readonly readonly?: boolean | undefined;
1355
1559
  readonly encryption?: boolean | undefined;
@@ -1413,6 +1617,13 @@ export declare const Field: {
1413
1617
  currencyMode: "dynamic" | "fixed";
1414
1618
  defaultCurrency: string;
1415
1619
  } | undefined;
1620
+ readonly vectorConfig?: {
1621
+ dimensions: number;
1622
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
1623
+ normalized: boolean;
1624
+ indexed: boolean;
1625
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
1626
+ } | undefined;
1416
1627
  readonly hidden?: boolean | undefined;
1417
1628
  readonly readonly?: boolean | undefined;
1418
1629
  readonly encryption?: boolean | undefined;
@@ -1476,6 +1687,13 @@ export declare const Field: {
1476
1687
  currencyMode: "dynamic" | "fixed";
1477
1688
  defaultCurrency: string;
1478
1689
  } | undefined;
1690
+ readonly vectorConfig?: {
1691
+ dimensions: number;
1692
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
1693
+ normalized: boolean;
1694
+ indexed: boolean;
1695
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
1696
+ } | undefined;
1479
1697
  readonly hidden?: boolean | undefined;
1480
1698
  readonly readonly?: boolean | undefined;
1481
1699
  readonly encryption?: boolean | undefined;
@@ -1539,6 +1757,13 @@ export declare const Field: {
1539
1757
  currencyMode: "dynamic" | "fixed";
1540
1758
  defaultCurrency: string;
1541
1759
  } | undefined;
1760
+ readonly vectorConfig?: {
1761
+ dimensions: number;
1762
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
1763
+ normalized: boolean;
1764
+ indexed: boolean;
1765
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
1766
+ } | undefined;
1542
1767
  readonly hidden?: boolean | undefined;
1543
1768
  readonly readonly?: boolean | undefined;
1544
1769
  readonly encryption?: boolean | undefined;
@@ -1602,6 +1827,13 @@ export declare const Field: {
1602
1827
  currencyMode: "dynamic" | "fixed";
1603
1828
  defaultCurrency: string;
1604
1829
  } | undefined;
1830
+ readonly vectorConfig?: {
1831
+ dimensions: number;
1832
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
1833
+ normalized: boolean;
1834
+ indexed: boolean;
1835
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
1836
+ } | undefined;
1605
1837
  readonly hidden?: boolean | undefined;
1606
1838
  readonly readonly?: boolean | undefined;
1607
1839
  readonly encryption?: boolean | undefined;
@@ -1612,11 +1844,18 @@ export declare const Field: {
1612
1844
  /**
1613
1845
  * Select field helper with backward-compatible API
1614
1846
  *
1615
- * @example Old API (array first)
1847
+ * Automatically converts option values to lowercase to enforce naming conventions.
1848
+ *
1849
+ * @example Old API (array first) - auto-converts to lowercase
1616
1850
  * Field.select(['High', 'Low'], { label: 'Priority' })
1851
+ * // Results in: [{ label: 'High', value: 'high' }, { label: 'Low', value: 'low' }]
1617
1852
  *
1618
- * @example New API (config object)
1853
+ * @example New API (config object) - enforces lowercase
1619
1854
  * Field.select({ options: [{label: 'High', value: 'high'}], label: 'Priority' })
1855
+ *
1856
+ * @example Multi-word values - converts to snake_case
1857
+ * Field.select(['In Progress', 'Closed Won'], { label: 'Status' })
1858
+ * // Results in: [{ label: 'In Progress', value: 'in_progress' }, { label: 'Closed Won', value: 'closed_won' }]
1620
1859
  */
1621
1860
  select: (optionsOrConfig: SelectOption[] | string[] | (FieldInput & {
1622
1861
  options: SelectOption[] | string[];
@@ -1676,6 +1915,13 @@ export declare const Field: {
1676
1915
  currencyMode: "dynamic" | "fixed";
1677
1916
  defaultCurrency: string;
1678
1917
  } | undefined;
1918
+ readonly vectorConfig?: {
1919
+ dimensions: number;
1920
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
1921
+ normalized: boolean;
1922
+ indexed: boolean;
1923
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
1924
+ } | undefined;
1679
1925
  readonly hidden?: boolean | undefined;
1680
1926
  readonly readonly?: boolean | undefined;
1681
1927
  readonly encryption?: boolean | undefined;
@@ -1739,6 +1985,13 @@ export declare const Field: {
1739
1985
  currencyMode: "dynamic" | "fixed";
1740
1986
  defaultCurrency: string;
1741
1987
  } | undefined;
1988
+ readonly vectorConfig?: {
1989
+ dimensions: number;
1990
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
1991
+ normalized: boolean;
1992
+ indexed: boolean;
1993
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
1994
+ } | undefined;
1742
1995
  readonly hidden?: boolean | undefined;
1743
1996
  readonly readonly?: boolean | undefined;
1744
1997
  readonly encryption?: boolean | undefined;
@@ -1802,6 +2055,13 @@ export declare const Field: {
1802
2055
  currencyMode: "dynamic" | "fixed";
1803
2056
  defaultCurrency: string;
1804
2057
  } | undefined;
2058
+ readonly vectorConfig?: {
2059
+ dimensions: number;
2060
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
2061
+ normalized: boolean;
2062
+ indexed: boolean;
2063
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
2064
+ } | undefined;
1805
2065
  readonly hidden?: boolean | undefined;
1806
2066
  readonly readonly?: boolean | undefined;
1807
2067
  readonly encryption?: boolean | undefined;
@@ -1865,6 +2125,13 @@ export declare const Field: {
1865
2125
  currencyMode: "dynamic" | "fixed";
1866
2126
  defaultCurrency: string;
1867
2127
  } | undefined;
2128
+ readonly vectorConfig?: {
2129
+ dimensions: number;
2130
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
2131
+ normalized: boolean;
2132
+ indexed: boolean;
2133
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
2134
+ } | undefined;
1868
2135
  readonly hidden?: boolean | undefined;
1869
2136
  readonly readonly?: boolean | undefined;
1870
2137
  readonly encryption?: boolean | undefined;
@@ -1928,6 +2195,13 @@ export declare const Field: {
1928
2195
  currencyMode: "dynamic" | "fixed";
1929
2196
  defaultCurrency: string;
1930
2197
  } | undefined;
2198
+ readonly vectorConfig?: {
2199
+ dimensions: number;
2200
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
2201
+ normalized: boolean;
2202
+ indexed: boolean;
2203
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
2204
+ } | undefined;
1931
2205
  readonly hidden?: boolean | undefined;
1932
2206
  readonly readonly?: boolean | undefined;
1933
2207
  readonly encryption?: boolean | undefined;
@@ -1991,6 +2265,13 @@ export declare const Field: {
1991
2265
  currencyMode: "dynamic" | "fixed";
1992
2266
  defaultCurrency: string;
1993
2267
  } | undefined;
2268
+ readonly vectorConfig?: {
2269
+ dimensions: number;
2270
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
2271
+ normalized: boolean;
2272
+ indexed: boolean;
2273
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
2274
+ } | undefined;
1994
2275
  readonly hidden?: boolean | undefined;
1995
2276
  readonly readonly?: boolean | undefined;
1996
2277
  readonly encryption?: boolean | undefined;
@@ -2054,6 +2335,13 @@ export declare const Field: {
2054
2335
  currencyMode: "dynamic" | "fixed";
2055
2336
  defaultCurrency: string;
2056
2337
  } | undefined;
2338
+ readonly vectorConfig?: {
2339
+ dimensions: number;
2340
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
2341
+ normalized: boolean;
2342
+ indexed: boolean;
2343
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
2344
+ } | undefined;
2057
2345
  readonly hidden?: boolean | undefined;
2058
2346
  readonly readonly?: boolean | undefined;
2059
2347
  readonly encryption?: boolean | undefined;
@@ -2117,6 +2405,13 @@ export declare const Field: {
2117
2405
  currencyMode: "dynamic" | "fixed";
2118
2406
  defaultCurrency: string;
2119
2407
  } | undefined;
2408
+ readonly vectorConfig?: {
2409
+ dimensions: number;
2410
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
2411
+ normalized: boolean;
2412
+ indexed: boolean;
2413
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
2414
+ } | undefined;
2120
2415
  readonly hidden?: boolean | undefined;
2121
2416
  readonly readonly?: boolean | undefined;
2122
2417
  readonly encryption?: boolean | undefined;
@@ -2180,6 +2475,13 @@ export declare const Field: {
2180
2475
  currencyMode: "dynamic" | "fixed";
2181
2476
  defaultCurrency: string;
2182
2477
  } | undefined;
2478
+ readonly vectorConfig?: {
2479
+ dimensions: number;
2480
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
2481
+ normalized: boolean;
2482
+ indexed: boolean;
2483
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
2484
+ } | undefined;
2183
2485
  readonly hidden?: boolean | undefined;
2184
2486
  readonly readonly?: boolean | undefined;
2185
2487
  readonly encryption?: boolean | undefined;
@@ -2243,6 +2545,13 @@ export declare const Field: {
2243
2545
  currencyMode: "dynamic" | "fixed";
2244
2546
  defaultCurrency: string;
2245
2547
  } | undefined;
2548
+ readonly vectorConfig?: {
2549
+ dimensions: number;
2550
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
2551
+ normalized: boolean;
2552
+ indexed: boolean;
2553
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
2554
+ } | undefined;
2246
2555
  readonly hidden?: boolean | undefined;
2247
2556
  readonly readonly?: boolean | undefined;
2248
2557
  readonly encryption?: boolean | undefined;
@@ -2306,6 +2615,13 @@ export declare const Field: {
2306
2615
  currencyMode: "dynamic" | "fixed";
2307
2616
  defaultCurrency: string;
2308
2617
  } | undefined;
2618
+ readonly vectorConfig?: {
2619
+ dimensions: number;
2620
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
2621
+ normalized: boolean;
2622
+ indexed: boolean;
2623
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
2624
+ } | undefined;
2309
2625
  readonly hidden?: boolean | undefined;
2310
2626
  readonly readonly?: boolean | undefined;
2311
2627
  readonly encryption?: boolean | undefined;
@@ -2369,6 +2685,13 @@ export declare const Field: {
2369
2685
  currencyMode: "dynamic" | "fixed";
2370
2686
  defaultCurrency: string;
2371
2687
  } | undefined;
2688
+ readonly vectorConfig?: {
2689
+ dimensions: number;
2690
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
2691
+ normalized: boolean;
2692
+ indexed: boolean;
2693
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
2694
+ } | undefined;
2372
2695
  readonly hidden?: boolean | undefined;
2373
2696
  readonly readonly?: boolean | undefined;
2374
2697
  readonly encryption?: boolean | undefined;
@@ -2376,7 +2699,7 @@ export declare const Field: {
2376
2699
  readonly externalId?: boolean | undefined;
2377
2700
  readonly type: "qrcode";
2378
2701
  };
2379
- geolocation: (config?: FieldInput) => {
2702
+ vector: (dimensions: number, config?: FieldInput) => {
2380
2703
  readonly options?: {
2381
2704
  value: string;
2382
2705
  label: string;
@@ -2432,12 +2755,19 @@ export declare const Field: {
2432
2755
  currencyMode: "dynamic" | "fixed";
2433
2756
  defaultCurrency: string;
2434
2757
  } | undefined;
2758
+ vectorConfig: {
2759
+ dimensions: number;
2760
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
2761
+ normalized: boolean;
2762
+ indexed: boolean;
2763
+ readonly indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
2764
+ };
2435
2765
  readonly hidden?: boolean | undefined;
2436
2766
  readonly readonly?: boolean | undefined;
2437
2767
  readonly encryption?: boolean | undefined;
2438
2768
  readonly index?: boolean | undefined;
2439
2769
  readonly externalId?: boolean | undefined;
2440
- readonly type: "geolocation";
2770
+ readonly type: "vector";
2441
2771
  };
2442
2772
  };
2443
2773
  //# sourceMappingURL=field.zod.d.ts.map