@objectstack/spec 0.3.3 → 0.4.2

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 +43 -1940
  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 +518 -0
  112. package/dist/system/manifest.zod.d.ts.map +1 -0
  113. package/dist/{kernel → system}/manifest.zod.js +8 -17
  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 +4 -2163
  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 +398 -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,2153 +0,0 @@
1
- import { z } from 'zod';
2
- /**
3
- * Schema for the ObjectStack Manifest.
4
- * This defines the structure of a package configuration in the ObjectStack ecosystem.
5
- * All packages (apps, plugins, drivers, modules) must conform to this schema.
6
- */
7
- export declare const ManifestSchema: z.ZodObject<{
8
- /**
9
- * Unique package identifier using reverse domain notation.
10
- * Example: "com.example.crm"
11
- */
12
- id: z.ZodString;
13
- /**
14
- * Package version following semantic versioning (major.minor.patch).
15
- * Example: "1.0.0"
16
- */
17
- version: z.ZodString;
18
- /**
19
- * Type of the package in the ObjectStack ecosystem.
20
- * - app: Standalone application
21
- * - plugin: Extension to ObjectOS
22
- * - driver: Low-level integration driver
23
- * - module: Reusable code module
24
- */
25
- type: z.ZodEnum<["app", "plugin", "driver", "module"]>;
26
- /**
27
- * Human-readable name of the package.
28
- */
29
- name: z.ZodString;
30
- /**
31
- * Brief description of the package functionality.
32
- */
33
- description: z.ZodOptional<z.ZodString>;
34
- /**
35
- * Array of permission strings that the package requires.
36
- * Example: ["system.user.read", "system.data.write"]
37
- */
38
- permissions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
39
- /**
40
- * Glob patterns specifying ObjectQL schemas files (typically *.object.yml or *.object.ts).
41
- * Example: `["./src/objects/*.object.yml"]`
42
- */
43
- objects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44
- /**
45
- * Inline/Compiled Definitions (Compiler Output).
46
- * Populated by Cloud Composer or Build Tools.
47
- * If present, Runtime should prioritize these over glob scanning.
48
- */
49
- definitions: z.ZodOptional<z.ZodObject<{
50
- objects: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
51
- name: z.ZodString;
52
- label: z.ZodOptional<z.ZodString>;
53
- pluralLabel: z.ZodOptional<z.ZodString>;
54
- description: z.ZodOptional<z.ZodString>;
55
- icon: z.ZodOptional<z.ZodString>;
56
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
57
- active: z.ZodDefault<z.ZodBoolean>;
58
- isSystem: z.ZodDefault<z.ZodBoolean>;
59
- abstract: z.ZodDefault<z.ZodBoolean>;
60
- datasource: z.ZodDefault<z.ZodString>;
61
- tableName: z.ZodOptional<z.ZodString>;
62
- fields: z.ZodRecord<z.ZodString, z.ZodObject<{
63
- name: z.ZodOptional<z.ZodString>;
64
- label: z.ZodOptional<z.ZodString>;
65
- 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"]>;
66
- description: z.ZodOptional<z.ZodString>;
67
- format: z.ZodOptional<z.ZodString>;
68
- required: z.ZodDefault<z.ZodBoolean>;
69
- searchable: z.ZodDefault<z.ZodBoolean>;
70
- multiple: z.ZodDefault<z.ZodBoolean>;
71
- unique: z.ZodDefault<z.ZodBoolean>;
72
- defaultValue: z.ZodOptional<z.ZodAny>;
73
- maxLength: z.ZodOptional<z.ZodNumber>;
74
- minLength: z.ZodOptional<z.ZodNumber>;
75
- precision: z.ZodOptional<z.ZodNumber>;
76
- scale: z.ZodOptional<z.ZodNumber>;
77
- min: z.ZodOptional<z.ZodNumber>;
78
- max: z.ZodOptional<z.ZodNumber>;
79
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
80
- label: z.ZodString;
81
- value: z.ZodString;
82
- color: z.ZodOptional<z.ZodString>;
83
- default: z.ZodOptional<z.ZodBoolean>;
84
- }, "strip", z.ZodTypeAny, {
85
- value: string;
86
- label: string;
87
- color?: string | undefined;
88
- default?: boolean | undefined;
89
- }, {
90
- value: string;
91
- label: string;
92
- color?: string | undefined;
93
- default?: boolean | undefined;
94
- }>, "many">>;
95
- reference: z.ZodOptional<z.ZodString>;
96
- referenceFilters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
97
- writeRequiresMasterRead: z.ZodOptional<z.ZodBoolean>;
98
- deleteBehavior: z.ZodDefault<z.ZodOptional<z.ZodEnum<["set_null", "cascade", "restrict"]>>>;
99
- expression: z.ZodOptional<z.ZodString>;
100
- formula: z.ZodOptional<z.ZodString>;
101
- summaryOperations: z.ZodOptional<z.ZodObject<{
102
- object: z.ZodString;
103
- field: z.ZodString;
104
- function: z.ZodEnum<["count", "sum", "min", "max", "avg"]>;
105
- }, "strip", z.ZodTypeAny, {
106
- object: string;
107
- function: "count" | "sum" | "avg" | "min" | "max";
108
- field: string;
109
- }, {
110
- object: string;
111
- function: "count" | "sum" | "avg" | "min" | "max";
112
- field: string;
113
- }>>;
114
- language: z.ZodOptional<z.ZodString>;
115
- theme: z.ZodOptional<z.ZodString>;
116
- lineNumbers: z.ZodOptional<z.ZodBoolean>;
117
- maxRating: z.ZodOptional<z.ZodNumber>;
118
- allowHalf: z.ZodOptional<z.ZodBoolean>;
119
- displayMap: z.ZodOptional<z.ZodBoolean>;
120
- allowGeocoding: z.ZodOptional<z.ZodBoolean>;
121
- addressFormat: z.ZodOptional<z.ZodEnum<["us", "uk", "international"]>>;
122
- colorFormat: z.ZodOptional<z.ZodEnum<["hex", "rgb", "rgba", "hsl"]>>;
123
- allowAlpha: z.ZodOptional<z.ZodBoolean>;
124
- presetColors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
125
- step: z.ZodOptional<z.ZodNumber>;
126
- showValue: z.ZodOptional<z.ZodBoolean>;
127
- marks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
128
- barcodeFormat: z.ZodOptional<z.ZodEnum<["qr", "ean13", "ean8", "code128", "code39", "upca", "upce"]>>;
129
- qrErrorCorrection: z.ZodOptional<z.ZodEnum<["L", "M", "Q", "H"]>>;
130
- displayValue: z.ZodOptional<z.ZodBoolean>;
131
- allowScanning: z.ZodOptional<z.ZodBoolean>;
132
- currencyConfig: z.ZodOptional<z.ZodObject<{
133
- precision: z.ZodDefault<z.ZodNumber>;
134
- currencyMode: z.ZodDefault<z.ZodEnum<["dynamic", "fixed"]>>;
135
- defaultCurrency: z.ZodDefault<z.ZodString>;
136
- }, "strip", z.ZodTypeAny, {
137
- precision: number;
138
- currencyMode: "dynamic" | "fixed";
139
- defaultCurrency: string;
140
- }, {
141
- precision?: number | undefined;
142
- currencyMode?: "dynamic" | "fixed" | undefined;
143
- defaultCurrency?: string | undefined;
144
- }>>;
145
- hidden: z.ZodDefault<z.ZodBoolean>;
146
- readonly: z.ZodDefault<z.ZodBoolean>;
147
- encryption: z.ZodDefault<z.ZodBoolean>;
148
- index: z.ZodDefault<z.ZodBoolean>;
149
- externalId: z.ZodDefault<z.ZodBoolean>;
150
- }, "strip", z.ZodTypeAny, {
151
- 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";
152
- required: boolean;
153
- searchable: boolean;
154
- multiple: boolean;
155
- unique: boolean;
156
- deleteBehavior: "set_null" | "cascade" | "restrict";
157
- hidden: boolean;
158
- readonly: boolean;
159
- encryption: boolean;
160
- index: boolean;
161
- externalId: boolean;
162
- options?: {
163
- value: string;
164
- label: string;
165
- color?: string | undefined;
166
- default?: boolean | undefined;
167
- }[] | undefined;
168
- min?: number | undefined;
169
- max?: number | undefined;
170
- formula?: string | undefined;
171
- label?: string | undefined;
172
- precision?: number | undefined;
173
- name?: string | undefined;
174
- description?: string | undefined;
175
- format?: string | undefined;
176
- defaultValue?: any;
177
- maxLength?: number | undefined;
178
- minLength?: number | undefined;
179
- scale?: number | undefined;
180
- reference?: string | undefined;
181
- referenceFilters?: string[] | undefined;
182
- writeRequiresMasterRead?: boolean | undefined;
183
- expression?: string | undefined;
184
- summaryOperations?: {
185
- object: string;
186
- function: "count" | "sum" | "avg" | "min" | "max";
187
- field: string;
188
- } | undefined;
189
- language?: string | undefined;
190
- theme?: string | undefined;
191
- lineNumbers?: boolean | undefined;
192
- maxRating?: number | undefined;
193
- allowHalf?: boolean | undefined;
194
- displayMap?: boolean | undefined;
195
- allowGeocoding?: boolean | undefined;
196
- addressFormat?: "us" | "uk" | "international" | undefined;
197
- colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
198
- allowAlpha?: boolean | undefined;
199
- presetColors?: string[] | undefined;
200
- step?: number | undefined;
201
- showValue?: boolean | undefined;
202
- marks?: Record<string, string> | undefined;
203
- barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
204
- qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
205
- displayValue?: boolean | undefined;
206
- allowScanning?: boolean | undefined;
207
- currencyConfig?: {
208
- precision: number;
209
- currencyMode: "dynamic" | "fixed";
210
- defaultCurrency: string;
211
- } | undefined;
212
- }, {
213
- 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";
214
- options?: {
215
- value: string;
216
- label: string;
217
- color?: string | undefined;
218
- default?: boolean | undefined;
219
- }[] | undefined;
220
- required?: boolean | undefined;
221
- min?: number | undefined;
222
- max?: number | undefined;
223
- formula?: string | undefined;
224
- label?: string | undefined;
225
- precision?: number | undefined;
226
- name?: string | undefined;
227
- description?: string | undefined;
228
- format?: string | undefined;
229
- searchable?: boolean | undefined;
230
- multiple?: boolean | undefined;
231
- unique?: boolean | undefined;
232
- defaultValue?: any;
233
- maxLength?: number | undefined;
234
- minLength?: number | undefined;
235
- scale?: number | undefined;
236
- reference?: string | undefined;
237
- referenceFilters?: string[] | undefined;
238
- writeRequiresMasterRead?: boolean | undefined;
239
- deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
240
- expression?: string | undefined;
241
- summaryOperations?: {
242
- object: string;
243
- function: "count" | "sum" | "avg" | "min" | "max";
244
- field: string;
245
- } | undefined;
246
- language?: string | undefined;
247
- theme?: string | undefined;
248
- lineNumbers?: boolean | undefined;
249
- maxRating?: number | undefined;
250
- allowHalf?: boolean | undefined;
251
- displayMap?: boolean | undefined;
252
- allowGeocoding?: boolean | undefined;
253
- addressFormat?: "us" | "uk" | "international" | undefined;
254
- colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
255
- allowAlpha?: boolean | undefined;
256
- presetColors?: string[] | undefined;
257
- step?: number | undefined;
258
- showValue?: boolean | undefined;
259
- marks?: Record<string, string> | undefined;
260
- barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
261
- qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
262
- displayValue?: boolean | undefined;
263
- allowScanning?: boolean | undefined;
264
- currencyConfig?: {
265
- precision?: number | undefined;
266
- currencyMode?: "dynamic" | "fixed" | undefined;
267
- defaultCurrency?: string | undefined;
268
- } | undefined;
269
- hidden?: boolean | undefined;
270
- readonly?: boolean | undefined;
271
- encryption?: boolean | undefined;
272
- index?: boolean | undefined;
273
- externalId?: boolean | undefined;
274
- }>>;
275
- indexes: z.ZodOptional<z.ZodArray<z.ZodObject<{
276
- name: z.ZodOptional<z.ZodString>;
277
- fields: z.ZodArray<z.ZodString, "many">;
278
- unique: z.ZodOptional<z.ZodBoolean>;
279
- type: z.ZodOptional<z.ZodEnum<["btree", "hash", "gin", "gist"]>>;
280
- }, "strip", z.ZodTypeAny, {
281
- fields: string[];
282
- type?: "hash" | "btree" | "gin" | "gist" | undefined;
283
- name?: string | undefined;
284
- unique?: boolean | undefined;
285
- }, {
286
- fields: string[];
287
- type?: "hash" | "btree" | "gin" | "gist" | undefined;
288
- name?: string | undefined;
289
- unique?: boolean | undefined;
290
- }>, "many">>;
291
- validations: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
292
- titleFormat: z.ZodOptional<z.ZodString>;
293
- compactLayout: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
294
- search: z.ZodOptional<z.ZodObject<{
295
- fields: z.ZodArray<z.ZodString, "many">;
296
- displayFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
297
- filters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
298
- }, "strip", z.ZodTypeAny, {
299
- fields: string[];
300
- displayFields?: string[] | undefined;
301
- filters?: string[] | undefined;
302
- }, {
303
- fields: string[];
304
- displayFields?: string[] | undefined;
305
- filters?: string[] | undefined;
306
- }>>;
307
- enable: z.ZodOptional<z.ZodObject<{
308
- trackHistory: z.ZodDefault<z.ZodBoolean>;
309
- searchable: z.ZodDefault<z.ZodBoolean>;
310
- apiEnabled: z.ZodDefault<z.ZodBoolean>;
311
- apiMethods: z.ZodOptional<z.ZodArray<z.ZodEnum<["get", "list", "create", "update", "delete", "upsert", "bulk", "aggregate", "history", "search", "restore", "purge", "import", "export"]>, "many">>;
312
- files: z.ZodDefault<z.ZodBoolean>;
313
- feeds: z.ZodDefault<z.ZodBoolean>;
314
- activities: z.ZodDefault<z.ZodBoolean>;
315
- trash: z.ZodDefault<z.ZodBoolean>;
316
- mru: z.ZodDefault<z.ZodBoolean>;
317
- clone: z.ZodDefault<z.ZodBoolean>;
318
- }, "strip", z.ZodTypeAny, {
319
- searchable: boolean;
320
- trackHistory: boolean;
321
- apiEnabled: boolean;
322
- files: boolean;
323
- feeds: boolean;
324
- activities: boolean;
325
- trash: boolean;
326
- mru: boolean;
327
- clone: boolean;
328
- apiMethods?: ("update" | "delete" | "get" | "list" | "create" | "upsert" | "bulk" | "aggregate" | "history" | "search" | "restore" | "purge" | "import" | "export")[] | undefined;
329
- }, {
330
- searchable?: boolean | undefined;
331
- trackHistory?: boolean | undefined;
332
- apiEnabled?: boolean | undefined;
333
- apiMethods?: ("update" | "delete" | "get" | "list" | "create" | "upsert" | "bulk" | "aggregate" | "history" | "search" | "restore" | "purge" | "import" | "export")[] | undefined;
334
- files?: boolean | undefined;
335
- feeds?: boolean | undefined;
336
- activities?: boolean | undefined;
337
- trash?: boolean | undefined;
338
- mru?: boolean | undefined;
339
- clone?: boolean | undefined;
340
- }>>;
341
- }, "strip", z.ZodTypeAny, {
342
- fields: Record<string, {
343
- 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";
344
- required: boolean;
345
- searchable: boolean;
346
- multiple: boolean;
347
- unique: boolean;
348
- deleteBehavior: "set_null" | "cascade" | "restrict";
349
- hidden: boolean;
350
- readonly: boolean;
351
- encryption: boolean;
352
- index: boolean;
353
- externalId: boolean;
354
- options?: {
355
- value: string;
356
- label: string;
357
- color?: string | undefined;
358
- default?: boolean | undefined;
359
- }[] | undefined;
360
- min?: number | undefined;
361
- max?: number | undefined;
362
- formula?: string | undefined;
363
- label?: string | undefined;
364
- precision?: number | undefined;
365
- name?: string | undefined;
366
- description?: string | undefined;
367
- format?: string | undefined;
368
- defaultValue?: any;
369
- maxLength?: number | undefined;
370
- minLength?: number | undefined;
371
- scale?: number | undefined;
372
- reference?: string | undefined;
373
- referenceFilters?: string[] | undefined;
374
- writeRequiresMasterRead?: boolean | undefined;
375
- expression?: string | undefined;
376
- summaryOperations?: {
377
- object: string;
378
- function: "count" | "sum" | "avg" | "min" | "max";
379
- field: string;
380
- } | undefined;
381
- language?: string | undefined;
382
- theme?: string | undefined;
383
- lineNumbers?: boolean | undefined;
384
- maxRating?: number | undefined;
385
- allowHalf?: boolean | undefined;
386
- displayMap?: boolean | undefined;
387
- allowGeocoding?: boolean | undefined;
388
- addressFormat?: "us" | "uk" | "international" | undefined;
389
- colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
390
- allowAlpha?: boolean | undefined;
391
- presetColors?: string[] | undefined;
392
- step?: number | undefined;
393
- showValue?: boolean | undefined;
394
- marks?: Record<string, string> | undefined;
395
- barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
396
- qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
397
- displayValue?: boolean | undefined;
398
- allowScanning?: boolean | undefined;
399
- currencyConfig?: {
400
- precision: number;
401
- currencyMode: "dynamic" | "fixed";
402
- defaultCurrency: string;
403
- } | undefined;
404
- }>;
405
- name: string;
406
- active: boolean;
407
- isSystem: boolean;
408
- abstract: boolean;
409
- datasource: string;
410
- label?: string | undefined;
411
- description?: string | undefined;
412
- tags?: string[] | undefined;
413
- search?: {
414
- fields: string[];
415
- displayFields?: string[] | undefined;
416
- filters?: string[] | undefined;
417
- } | undefined;
418
- pluralLabel?: string | undefined;
419
- icon?: string | undefined;
420
- tableName?: string | undefined;
421
- indexes?: {
422
- fields: string[];
423
- type?: "hash" | "btree" | "gin" | "gist" | undefined;
424
- name?: string | undefined;
425
- unique?: boolean | undefined;
426
- }[] | undefined;
427
- validations?: any[] | undefined;
428
- titleFormat?: string | undefined;
429
- compactLayout?: string[] | undefined;
430
- enable?: {
431
- searchable: boolean;
432
- trackHistory: boolean;
433
- apiEnabled: boolean;
434
- files: boolean;
435
- feeds: boolean;
436
- activities: boolean;
437
- trash: boolean;
438
- mru: boolean;
439
- clone: boolean;
440
- apiMethods?: ("update" | "delete" | "get" | "list" | "create" | "upsert" | "bulk" | "aggregate" | "history" | "search" | "restore" | "purge" | "import" | "export")[] | undefined;
441
- } | undefined;
442
- }, {
443
- fields: Record<string, {
444
- 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";
445
- options?: {
446
- value: string;
447
- label: string;
448
- color?: string | undefined;
449
- default?: boolean | undefined;
450
- }[] | undefined;
451
- required?: boolean | undefined;
452
- min?: number | undefined;
453
- max?: number | undefined;
454
- formula?: string | undefined;
455
- label?: string | undefined;
456
- precision?: number | undefined;
457
- name?: string | undefined;
458
- description?: string | undefined;
459
- format?: string | undefined;
460
- searchable?: boolean | undefined;
461
- multiple?: boolean | undefined;
462
- unique?: boolean | undefined;
463
- defaultValue?: any;
464
- maxLength?: number | undefined;
465
- minLength?: number | undefined;
466
- scale?: number | undefined;
467
- reference?: string | undefined;
468
- referenceFilters?: string[] | undefined;
469
- writeRequiresMasterRead?: boolean | undefined;
470
- deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
471
- expression?: string | undefined;
472
- summaryOperations?: {
473
- object: string;
474
- function: "count" | "sum" | "avg" | "min" | "max";
475
- field: string;
476
- } | undefined;
477
- language?: string | undefined;
478
- theme?: string | undefined;
479
- lineNumbers?: boolean | undefined;
480
- maxRating?: number | undefined;
481
- allowHalf?: boolean | undefined;
482
- displayMap?: boolean | undefined;
483
- allowGeocoding?: boolean | undefined;
484
- addressFormat?: "us" | "uk" | "international" | undefined;
485
- colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
486
- allowAlpha?: boolean | undefined;
487
- presetColors?: string[] | undefined;
488
- step?: number | undefined;
489
- showValue?: boolean | undefined;
490
- marks?: Record<string, string> | undefined;
491
- barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
492
- qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
493
- displayValue?: boolean | undefined;
494
- allowScanning?: boolean | undefined;
495
- currencyConfig?: {
496
- precision?: number | undefined;
497
- currencyMode?: "dynamic" | "fixed" | undefined;
498
- defaultCurrency?: string | undefined;
499
- } | undefined;
500
- hidden?: boolean | undefined;
501
- readonly?: boolean | undefined;
502
- encryption?: boolean | undefined;
503
- index?: boolean | undefined;
504
- externalId?: boolean | undefined;
505
- }>;
506
- name: string;
507
- label?: string | undefined;
508
- description?: string | undefined;
509
- active?: boolean | undefined;
510
- tags?: string[] | undefined;
511
- search?: {
512
- fields: string[];
513
- displayFields?: string[] | undefined;
514
- filters?: string[] | undefined;
515
- } | undefined;
516
- pluralLabel?: string | undefined;
517
- icon?: string | undefined;
518
- isSystem?: boolean | undefined;
519
- abstract?: boolean | undefined;
520
- datasource?: string | undefined;
521
- tableName?: string | undefined;
522
- indexes?: {
523
- fields: string[];
524
- type?: "hash" | "btree" | "gin" | "gist" | undefined;
525
- name?: string | undefined;
526
- unique?: boolean | undefined;
527
- }[] | undefined;
528
- validations?: any[] | undefined;
529
- titleFormat?: string | undefined;
530
- compactLayout?: string[] | undefined;
531
- enable?: {
532
- searchable?: boolean | undefined;
533
- trackHistory?: boolean | undefined;
534
- apiEnabled?: boolean | undefined;
535
- apiMethods?: ("update" | "delete" | "get" | "list" | "create" | "upsert" | "bulk" | "aggregate" | "history" | "search" | "restore" | "purge" | "import" | "export")[] | undefined;
536
- files?: boolean | undefined;
537
- feeds?: boolean | undefined;
538
- activities?: boolean | undefined;
539
- trash?: boolean | undefined;
540
- mru?: boolean | undefined;
541
- clone?: boolean | undefined;
542
- } | undefined;
543
- }> & {
544
- create: <T extends z.input<z.ZodObject<{
545
- name: z.ZodString;
546
- label: z.ZodOptional<z.ZodString>;
547
- pluralLabel: z.ZodOptional<z.ZodString>;
548
- description: z.ZodOptional<z.ZodString>;
549
- icon: z.ZodOptional<z.ZodString>;
550
- tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
551
- active: z.ZodDefault<z.ZodBoolean>;
552
- isSystem: z.ZodDefault<z.ZodBoolean>;
553
- abstract: z.ZodDefault<z.ZodBoolean>;
554
- datasource: z.ZodDefault<z.ZodString>;
555
- tableName: z.ZodOptional<z.ZodString>;
556
- fields: z.ZodRecord<z.ZodString, z.ZodObject<{
557
- name: z.ZodOptional<z.ZodString>;
558
- label: z.ZodOptional<z.ZodString>;
559
- 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"]>;
560
- description: z.ZodOptional<z.ZodString>;
561
- format: z.ZodOptional<z.ZodString>;
562
- required: z.ZodDefault<z.ZodBoolean>;
563
- searchable: z.ZodDefault<z.ZodBoolean>;
564
- multiple: z.ZodDefault<z.ZodBoolean>;
565
- unique: z.ZodDefault<z.ZodBoolean>;
566
- defaultValue: z.ZodOptional<z.ZodAny>;
567
- maxLength: z.ZodOptional<z.ZodNumber>;
568
- minLength: z.ZodOptional<z.ZodNumber>;
569
- precision: z.ZodOptional<z.ZodNumber>;
570
- scale: z.ZodOptional<z.ZodNumber>;
571
- min: z.ZodOptional<z.ZodNumber>;
572
- max: z.ZodOptional<z.ZodNumber>;
573
- options: z.ZodOptional<z.ZodArray<z.ZodObject<{
574
- label: z.ZodString;
575
- value: z.ZodString;
576
- color: z.ZodOptional<z.ZodString>;
577
- default: z.ZodOptional<z.ZodBoolean>;
578
- }, "strip", z.ZodTypeAny, {
579
- value: string;
580
- label: string;
581
- color?: string | undefined;
582
- default?: boolean | undefined;
583
- }, {
584
- value: string;
585
- label: string;
586
- color?: string | undefined;
587
- default?: boolean | undefined;
588
- }>, "many">>;
589
- reference: z.ZodOptional<z.ZodString>;
590
- referenceFilters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
591
- writeRequiresMasterRead: z.ZodOptional<z.ZodBoolean>;
592
- deleteBehavior: z.ZodDefault<z.ZodOptional<z.ZodEnum<["set_null", "cascade", "restrict"]>>>;
593
- expression: z.ZodOptional<z.ZodString>;
594
- formula: z.ZodOptional<z.ZodString>;
595
- summaryOperations: z.ZodOptional<z.ZodObject<{
596
- object: z.ZodString;
597
- field: z.ZodString;
598
- function: z.ZodEnum<["count", "sum", "min", "max", "avg"]>;
599
- }, "strip", z.ZodTypeAny, {
600
- object: string;
601
- function: "count" | "sum" | "avg" | "min" | "max";
602
- field: string;
603
- }, {
604
- object: string;
605
- function: "count" | "sum" | "avg" | "min" | "max";
606
- field: string;
607
- }>>;
608
- language: z.ZodOptional<z.ZodString>;
609
- theme: z.ZodOptional<z.ZodString>;
610
- lineNumbers: z.ZodOptional<z.ZodBoolean>;
611
- maxRating: z.ZodOptional<z.ZodNumber>;
612
- allowHalf: z.ZodOptional<z.ZodBoolean>;
613
- displayMap: z.ZodOptional<z.ZodBoolean>;
614
- allowGeocoding: z.ZodOptional<z.ZodBoolean>;
615
- addressFormat: z.ZodOptional<z.ZodEnum<["us", "uk", "international"]>>;
616
- colorFormat: z.ZodOptional<z.ZodEnum<["hex", "rgb", "rgba", "hsl"]>>;
617
- allowAlpha: z.ZodOptional<z.ZodBoolean>;
618
- presetColors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
619
- step: z.ZodOptional<z.ZodNumber>;
620
- showValue: z.ZodOptional<z.ZodBoolean>;
621
- marks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
622
- barcodeFormat: z.ZodOptional<z.ZodEnum<["qr", "ean13", "ean8", "code128", "code39", "upca", "upce"]>>;
623
- qrErrorCorrection: z.ZodOptional<z.ZodEnum<["L", "M", "Q", "H"]>>;
624
- displayValue: z.ZodOptional<z.ZodBoolean>;
625
- allowScanning: z.ZodOptional<z.ZodBoolean>;
626
- currencyConfig: z.ZodOptional<z.ZodObject<{
627
- precision: z.ZodDefault<z.ZodNumber>;
628
- currencyMode: z.ZodDefault<z.ZodEnum<["dynamic", "fixed"]>>;
629
- defaultCurrency: z.ZodDefault<z.ZodString>;
630
- }, "strip", z.ZodTypeAny, {
631
- precision: number;
632
- currencyMode: "dynamic" | "fixed";
633
- defaultCurrency: string;
634
- }, {
635
- precision?: number | undefined;
636
- currencyMode?: "dynamic" | "fixed" | undefined;
637
- defaultCurrency?: string | undefined;
638
- }>>;
639
- hidden: z.ZodDefault<z.ZodBoolean>;
640
- readonly: z.ZodDefault<z.ZodBoolean>;
641
- encryption: z.ZodDefault<z.ZodBoolean>;
642
- index: z.ZodDefault<z.ZodBoolean>;
643
- externalId: z.ZodDefault<z.ZodBoolean>;
644
- }, "strip", z.ZodTypeAny, {
645
- 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";
646
- required: boolean;
647
- searchable: boolean;
648
- multiple: boolean;
649
- unique: boolean;
650
- deleteBehavior: "set_null" | "cascade" | "restrict";
651
- hidden: boolean;
652
- readonly: boolean;
653
- encryption: boolean;
654
- index: boolean;
655
- externalId: boolean;
656
- options?: {
657
- value: string;
658
- label: string;
659
- color?: string | undefined;
660
- default?: boolean | undefined;
661
- }[] | undefined;
662
- min?: number | undefined;
663
- max?: number | undefined;
664
- formula?: string | undefined;
665
- label?: string | undefined;
666
- precision?: number | undefined;
667
- name?: string | undefined;
668
- description?: string | undefined;
669
- format?: string | undefined;
670
- defaultValue?: any;
671
- maxLength?: number | undefined;
672
- minLength?: number | undefined;
673
- scale?: number | undefined;
674
- reference?: string | undefined;
675
- referenceFilters?: string[] | undefined;
676
- writeRequiresMasterRead?: boolean | undefined;
677
- expression?: string | undefined;
678
- summaryOperations?: {
679
- object: string;
680
- function: "count" | "sum" | "avg" | "min" | "max";
681
- field: string;
682
- } | undefined;
683
- language?: string | undefined;
684
- theme?: string | undefined;
685
- lineNumbers?: boolean | undefined;
686
- maxRating?: number | undefined;
687
- allowHalf?: boolean | undefined;
688
- displayMap?: boolean | undefined;
689
- allowGeocoding?: boolean | undefined;
690
- addressFormat?: "us" | "uk" | "international" | undefined;
691
- colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
692
- allowAlpha?: boolean | undefined;
693
- presetColors?: string[] | undefined;
694
- step?: number | undefined;
695
- showValue?: boolean | undefined;
696
- marks?: Record<string, string> | undefined;
697
- barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
698
- qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
699
- displayValue?: boolean | undefined;
700
- allowScanning?: boolean | undefined;
701
- currencyConfig?: {
702
- precision: number;
703
- currencyMode: "dynamic" | "fixed";
704
- defaultCurrency: string;
705
- } | undefined;
706
- }, {
707
- 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";
708
- options?: {
709
- value: string;
710
- label: string;
711
- color?: string | undefined;
712
- default?: boolean | undefined;
713
- }[] | undefined;
714
- required?: boolean | undefined;
715
- min?: number | undefined;
716
- max?: number | undefined;
717
- formula?: string | undefined;
718
- label?: string | undefined;
719
- precision?: number | undefined;
720
- name?: string | undefined;
721
- description?: string | undefined;
722
- format?: string | undefined;
723
- searchable?: boolean | undefined;
724
- multiple?: boolean | undefined;
725
- unique?: boolean | undefined;
726
- defaultValue?: any;
727
- maxLength?: number | undefined;
728
- minLength?: number | undefined;
729
- scale?: number | undefined;
730
- reference?: string | undefined;
731
- referenceFilters?: string[] | undefined;
732
- writeRequiresMasterRead?: boolean | undefined;
733
- deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
734
- expression?: string | undefined;
735
- summaryOperations?: {
736
- object: string;
737
- function: "count" | "sum" | "avg" | "min" | "max";
738
- field: string;
739
- } | undefined;
740
- language?: string | undefined;
741
- theme?: string | undefined;
742
- lineNumbers?: boolean | undefined;
743
- maxRating?: number | undefined;
744
- allowHalf?: boolean | undefined;
745
- displayMap?: boolean | undefined;
746
- allowGeocoding?: boolean | undefined;
747
- addressFormat?: "us" | "uk" | "international" | undefined;
748
- colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
749
- allowAlpha?: boolean | undefined;
750
- presetColors?: string[] | undefined;
751
- step?: number | undefined;
752
- showValue?: boolean | undefined;
753
- marks?: Record<string, string> | undefined;
754
- barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
755
- qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
756
- displayValue?: boolean | undefined;
757
- allowScanning?: boolean | undefined;
758
- currencyConfig?: {
759
- precision?: number | undefined;
760
- currencyMode?: "dynamic" | "fixed" | undefined;
761
- defaultCurrency?: string | undefined;
762
- } | undefined;
763
- hidden?: boolean | undefined;
764
- readonly?: boolean | undefined;
765
- encryption?: boolean | undefined;
766
- index?: boolean | undefined;
767
- externalId?: boolean | undefined;
768
- }>>;
769
- indexes: z.ZodOptional<z.ZodArray<z.ZodObject<{
770
- name: z.ZodOptional<z.ZodString>;
771
- fields: z.ZodArray<z.ZodString, "many">;
772
- unique: z.ZodOptional<z.ZodBoolean>;
773
- type: z.ZodOptional<z.ZodEnum<["btree", "hash", "gin", "gist"]>>;
774
- }, "strip", z.ZodTypeAny, {
775
- fields: string[];
776
- type?: "hash" | "btree" | "gin" | "gist" | undefined;
777
- name?: string | undefined;
778
- unique?: boolean | undefined;
779
- }, {
780
- fields: string[];
781
- type?: "hash" | "btree" | "gin" | "gist" | undefined;
782
- name?: string | undefined;
783
- unique?: boolean | undefined;
784
- }>, "many">>;
785
- validations: z.ZodOptional<z.ZodArray<z.ZodType<any, z.ZodTypeDef, any>, "many">>;
786
- titleFormat: z.ZodOptional<z.ZodString>;
787
- compactLayout: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
788
- search: z.ZodOptional<z.ZodObject<{
789
- fields: z.ZodArray<z.ZodString, "many">;
790
- displayFields: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
791
- filters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
792
- }, "strip", z.ZodTypeAny, {
793
- fields: string[];
794
- displayFields?: string[] | undefined;
795
- filters?: string[] | undefined;
796
- }, {
797
- fields: string[];
798
- displayFields?: string[] | undefined;
799
- filters?: string[] | undefined;
800
- }>>;
801
- enable: z.ZodOptional<z.ZodObject<{
802
- trackHistory: z.ZodDefault<z.ZodBoolean>;
803
- searchable: z.ZodDefault<z.ZodBoolean>;
804
- apiEnabled: z.ZodDefault<z.ZodBoolean>;
805
- apiMethods: z.ZodOptional<z.ZodArray<z.ZodEnum<["get", "list", "create", "update", "delete", "upsert", "bulk", "aggregate", "history", "search", "restore", "purge", "import", "export"]>, "many">>;
806
- files: z.ZodDefault<z.ZodBoolean>;
807
- feeds: z.ZodDefault<z.ZodBoolean>;
808
- activities: z.ZodDefault<z.ZodBoolean>;
809
- trash: z.ZodDefault<z.ZodBoolean>;
810
- mru: z.ZodDefault<z.ZodBoolean>;
811
- clone: z.ZodDefault<z.ZodBoolean>;
812
- }, "strip", z.ZodTypeAny, {
813
- searchable: boolean;
814
- trackHistory: boolean;
815
- apiEnabled: boolean;
816
- files: boolean;
817
- feeds: boolean;
818
- activities: boolean;
819
- trash: boolean;
820
- mru: boolean;
821
- clone: boolean;
822
- apiMethods?: ("update" | "delete" | "get" | "list" | "create" | "upsert" | "bulk" | "aggregate" | "history" | "search" | "restore" | "purge" | "import" | "export")[] | undefined;
823
- }, {
824
- searchable?: boolean | undefined;
825
- trackHistory?: boolean | undefined;
826
- apiEnabled?: boolean | undefined;
827
- apiMethods?: ("update" | "delete" | "get" | "list" | "create" | "upsert" | "bulk" | "aggregate" | "history" | "search" | "restore" | "purge" | "import" | "export")[] | undefined;
828
- files?: boolean | undefined;
829
- feeds?: boolean | undefined;
830
- activities?: boolean | undefined;
831
- trash?: boolean | undefined;
832
- mru?: boolean | undefined;
833
- clone?: boolean | undefined;
834
- }>>;
835
- }, "strip", z.ZodTypeAny, {
836
- fields: Record<string, {
837
- 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";
838
- required: boolean;
839
- searchable: boolean;
840
- multiple: boolean;
841
- unique: boolean;
842
- deleteBehavior: "set_null" | "cascade" | "restrict";
843
- hidden: boolean;
844
- readonly: boolean;
845
- encryption: boolean;
846
- index: boolean;
847
- externalId: boolean;
848
- options?: {
849
- value: string;
850
- label: string;
851
- color?: string | undefined;
852
- default?: boolean | undefined;
853
- }[] | undefined;
854
- min?: number | undefined;
855
- max?: number | undefined;
856
- formula?: string | undefined;
857
- label?: string | undefined;
858
- precision?: number | undefined;
859
- name?: string | undefined;
860
- description?: string | undefined;
861
- format?: string | undefined;
862
- defaultValue?: any;
863
- maxLength?: number | undefined;
864
- minLength?: number | undefined;
865
- scale?: number | undefined;
866
- reference?: string | undefined;
867
- referenceFilters?: string[] | undefined;
868
- writeRequiresMasterRead?: boolean | undefined;
869
- expression?: string | undefined;
870
- summaryOperations?: {
871
- object: string;
872
- function: "count" | "sum" | "avg" | "min" | "max";
873
- field: string;
874
- } | undefined;
875
- language?: string | undefined;
876
- theme?: string | undefined;
877
- lineNumbers?: boolean | undefined;
878
- maxRating?: number | undefined;
879
- allowHalf?: boolean | undefined;
880
- displayMap?: boolean | undefined;
881
- allowGeocoding?: boolean | undefined;
882
- addressFormat?: "us" | "uk" | "international" | undefined;
883
- colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
884
- allowAlpha?: boolean | undefined;
885
- presetColors?: string[] | undefined;
886
- step?: number | undefined;
887
- showValue?: boolean | undefined;
888
- marks?: Record<string, string> | undefined;
889
- barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
890
- qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
891
- displayValue?: boolean | undefined;
892
- allowScanning?: boolean | undefined;
893
- currencyConfig?: {
894
- precision: number;
895
- currencyMode: "dynamic" | "fixed";
896
- defaultCurrency: string;
897
- } | undefined;
898
- }>;
899
- name: string;
900
- active: boolean;
901
- isSystem: boolean;
902
- abstract: boolean;
903
- datasource: string;
904
- label?: string | undefined;
905
- description?: string | undefined;
906
- tags?: string[] | undefined;
907
- search?: {
908
- fields: string[];
909
- displayFields?: string[] | undefined;
910
- filters?: string[] | undefined;
911
- } | undefined;
912
- pluralLabel?: string | undefined;
913
- icon?: string | undefined;
914
- tableName?: string | undefined;
915
- indexes?: {
916
- fields: string[];
917
- type?: "hash" | "btree" | "gin" | "gist" | undefined;
918
- name?: string | undefined;
919
- unique?: boolean | undefined;
920
- }[] | undefined;
921
- validations?: any[] | undefined;
922
- titleFormat?: string | undefined;
923
- compactLayout?: string[] | undefined;
924
- enable?: {
925
- searchable: boolean;
926
- trackHistory: boolean;
927
- apiEnabled: boolean;
928
- files: boolean;
929
- feeds: boolean;
930
- activities: boolean;
931
- trash: boolean;
932
- mru: boolean;
933
- clone: boolean;
934
- apiMethods?: ("update" | "delete" | "get" | "list" | "create" | "upsert" | "bulk" | "aggregate" | "history" | "search" | "restore" | "purge" | "import" | "export")[] | undefined;
935
- } | undefined;
936
- }, {
937
- fields: Record<string, {
938
- 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";
939
- options?: {
940
- value: string;
941
- label: string;
942
- color?: string | undefined;
943
- default?: boolean | undefined;
944
- }[] | undefined;
945
- required?: boolean | undefined;
946
- min?: number | undefined;
947
- max?: number | undefined;
948
- formula?: string | undefined;
949
- label?: string | undefined;
950
- precision?: number | undefined;
951
- name?: string | undefined;
952
- description?: string | undefined;
953
- format?: string | undefined;
954
- searchable?: boolean | undefined;
955
- multiple?: boolean | undefined;
956
- unique?: boolean | undefined;
957
- defaultValue?: any;
958
- maxLength?: number | undefined;
959
- minLength?: number | undefined;
960
- scale?: number | undefined;
961
- reference?: string | undefined;
962
- referenceFilters?: string[] | undefined;
963
- writeRequiresMasterRead?: boolean | undefined;
964
- deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
965
- expression?: string | undefined;
966
- summaryOperations?: {
967
- object: string;
968
- function: "count" | "sum" | "avg" | "min" | "max";
969
- field: string;
970
- } | undefined;
971
- language?: string | undefined;
972
- theme?: string | undefined;
973
- lineNumbers?: boolean | undefined;
974
- maxRating?: number | undefined;
975
- allowHalf?: boolean | undefined;
976
- displayMap?: boolean | undefined;
977
- allowGeocoding?: boolean | undefined;
978
- addressFormat?: "us" | "uk" | "international" | undefined;
979
- colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
980
- allowAlpha?: boolean | undefined;
981
- presetColors?: string[] | undefined;
982
- step?: number | undefined;
983
- showValue?: boolean | undefined;
984
- marks?: Record<string, string> | undefined;
985
- barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
986
- qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
987
- displayValue?: boolean | undefined;
988
- allowScanning?: boolean | undefined;
989
- currencyConfig?: {
990
- precision?: number | undefined;
991
- currencyMode?: "dynamic" | "fixed" | undefined;
992
- defaultCurrency?: string | undefined;
993
- } | undefined;
994
- hidden?: boolean | undefined;
995
- readonly?: boolean | undefined;
996
- encryption?: boolean | undefined;
997
- index?: boolean | undefined;
998
- externalId?: boolean | undefined;
999
- }>;
1000
- name: string;
1001
- label?: string | undefined;
1002
- description?: string | undefined;
1003
- active?: boolean | undefined;
1004
- tags?: string[] | undefined;
1005
- search?: {
1006
- fields: string[];
1007
- displayFields?: string[] | undefined;
1008
- filters?: string[] | undefined;
1009
- } | undefined;
1010
- pluralLabel?: string | undefined;
1011
- icon?: string | undefined;
1012
- isSystem?: boolean | undefined;
1013
- abstract?: boolean | undefined;
1014
- datasource?: string | undefined;
1015
- tableName?: string | undefined;
1016
- indexes?: {
1017
- fields: string[];
1018
- type?: "hash" | "btree" | "gin" | "gist" | undefined;
1019
- name?: string | undefined;
1020
- unique?: boolean | undefined;
1021
- }[] | undefined;
1022
- validations?: any[] | undefined;
1023
- titleFormat?: string | undefined;
1024
- compactLayout?: string[] | undefined;
1025
- enable?: {
1026
- searchable?: boolean | undefined;
1027
- trackHistory?: boolean | undefined;
1028
- apiEnabled?: boolean | undefined;
1029
- apiMethods?: ("update" | "delete" | "get" | "list" | "create" | "upsert" | "bulk" | "aggregate" | "history" | "search" | "restore" | "purge" | "import" | "export")[] | undefined;
1030
- files?: boolean | undefined;
1031
- feeds?: boolean | undefined;
1032
- activities?: boolean | undefined;
1033
- trash?: boolean | undefined;
1034
- mru?: boolean | undefined;
1035
- clone?: boolean | undefined;
1036
- } | undefined;
1037
- }>>>(config: T) => T;
1038
- }>>;
1039
- datasource: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
1040
- name: z.ZodString;
1041
- label: z.ZodOptional<z.ZodString>;
1042
- driver: z.ZodString;
1043
- config: z.ZodRecord<z.ZodString, z.ZodAny>;
1044
- pool: z.ZodOptional<z.ZodObject<{
1045
- min: z.ZodDefault<z.ZodNumber>;
1046
- max: z.ZodDefault<z.ZodNumber>;
1047
- idleTimeoutMillis: z.ZodDefault<z.ZodNumber>;
1048
- connectionTimeoutMillis: z.ZodDefault<z.ZodNumber>;
1049
- }, "strip", z.ZodTypeAny, {
1050
- min: number;
1051
- max: number;
1052
- idleTimeoutMillis: number;
1053
- connectionTimeoutMillis: number;
1054
- }, {
1055
- min?: number | undefined;
1056
- max?: number | undefined;
1057
- idleTimeoutMillis?: number | undefined;
1058
- connectionTimeoutMillis?: number | undefined;
1059
- }>>;
1060
- readReplicas: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>;
1061
- capabilities: z.ZodOptional<z.ZodObject<{
1062
- transactions: z.ZodDefault<z.ZodBoolean>;
1063
- queryFilters: z.ZodDefault<z.ZodBoolean>;
1064
- queryAggregations: z.ZodDefault<z.ZodBoolean>;
1065
- querySorting: z.ZodDefault<z.ZodBoolean>;
1066
- queryPagination: z.ZodDefault<z.ZodBoolean>;
1067
- queryWindowFunctions: z.ZodDefault<z.ZodBoolean>;
1068
- querySubqueries: z.ZodDefault<z.ZodBoolean>;
1069
- joins: z.ZodDefault<z.ZodBoolean>;
1070
- fullTextSearch: z.ZodDefault<z.ZodBoolean>;
1071
- readOnly: z.ZodDefault<z.ZodBoolean>;
1072
- dynamicSchema: z.ZodDefault<z.ZodBoolean>;
1073
- }, "strip", z.ZodTypeAny, {
1074
- joins: boolean;
1075
- transactions: boolean;
1076
- queryFilters: boolean;
1077
- queryAggregations: boolean;
1078
- querySorting: boolean;
1079
- queryPagination: boolean;
1080
- queryWindowFunctions: boolean;
1081
- querySubqueries: boolean;
1082
- fullTextSearch: boolean;
1083
- readOnly: boolean;
1084
- dynamicSchema: boolean;
1085
- }, {
1086
- joins?: boolean | undefined;
1087
- transactions?: boolean | undefined;
1088
- queryFilters?: boolean | undefined;
1089
- queryAggregations?: boolean | undefined;
1090
- querySorting?: boolean | undefined;
1091
- queryPagination?: boolean | undefined;
1092
- queryWindowFunctions?: boolean | undefined;
1093
- querySubqueries?: boolean | undefined;
1094
- fullTextSearch?: boolean | undefined;
1095
- readOnly?: boolean | undefined;
1096
- dynamicSchema?: boolean | undefined;
1097
- }>>;
1098
- description: z.ZodOptional<z.ZodString>;
1099
- active: z.ZodDefault<z.ZodBoolean>;
1100
- }, "strip", z.ZodTypeAny, {
1101
- name: string;
1102
- active: boolean;
1103
- driver: string;
1104
- config: Record<string, any>;
1105
- label?: string | undefined;
1106
- description?: string | undefined;
1107
- capabilities?: {
1108
- joins: boolean;
1109
- transactions: boolean;
1110
- queryFilters: boolean;
1111
- queryAggregations: boolean;
1112
- querySorting: boolean;
1113
- queryPagination: boolean;
1114
- queryWindowFunctions: boolean;
1115
- querySubqueries: boolean;
1116
- fullTextSearch: boolean;
1117
- readOnly: boolean;
1118
- dynamicSchema: boolean;
1119
- } | undefined;
1120
- pool?: {
1121
- min: number;
1122
- max: number;
1123
- idleTimeoutMillis: number;
1124
- connectionTimeoutMillis: number;
1125
- } | undefined;
1126
- readReplicas?: Record<string, any>[] | undefined;
1127
- }, {
1128
- name: string;
1129
- driver: string;
1130
- config: Record<string, any>;
1131
- label?: string | undefined;
1132
- description?: string | undefined;
1133
- active?: boolean | undefined;
1134
- capabilities?: {
1135
- joins?: boolean | undefined;
1136
- transactions?: boolean | undefined;
1137
- queryFilters?: boolean | undefined;
1138
- queryAggregations?: boolean | undefined;
1139
- querySorting?: boolean | undefined;
1140
- queryPagination?: boolean | undefined;
1141
- queryWindowFunctions?: boolean | undefined;
1142
- querySubqueries?: boolean | undefined;
1143
- fullTextSearch?: boolean | undefined;
1144
- readOnly?: boolean | undefined;
1145
- dynamicSchema?: boolean | undefined;
1146
- } | undefined;
1147
- pool?: {
1148
- min?: number | undefined;
1149
- max?: number | undefined;
1150
- idleTimeoutMillis?: number | undefined;
1151
- connectionTimeoutMillis?: number | undefined;
1152
- } | undefined;
1153
- readReplicas?: Record<string, any>[] | undefined;
1154
- }>>>;
1155
- }, "strip", z.ZodTypeAny, {
1156
- datasource?: Record<string, {
1157
- name: string;
1158
- active: boolean;
1159
- driver: string;
1160
- config: Record<string, any>;
1161
- label?: string | undefined;
1162
- description?: string | undefined;
1163
- capabilities?: {
1164
- joins: boolean;
1165
- transactions: boolean;
1166
- queryFilters: boolean;
1167
- queryAggregations: boolean;
1168
- querySorting: boolean;
1169
- queryPagination: boolean;
1170
- queryWindowFunctions: boolean;
1171
- querySubqueries: boolean;
1172
- fullTextSearch: boolean;
1173
- readOnly: boolean;
1174
- dynamicSchema: boolean;
1175
- } | undefined;
1176
- pool?: {
1177
- min: number;
1178
- max: number;
1179
- idleTimeoutMillis: number;
1180
- connectionTimeoutMillis: number;
1181
- } | undefined;
1182
- readReplicas?: Record<string, any>[] | undefined;
1183
- }> | undefined;
1184
- objects?: Record<string, {
1185
- fields: Record<string, {
1186
- 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";
1187
- required: boolean;
1188
- searchable: boolean;
1189
- multiple: boolean;
1190
- unique: boolean;
1191
- deleteBehavior: "set_null" | "cascade" | "restrict";
1192
- hidden: boolean;
1193
- readonly: boolean;
1194
- encryption: boolean;
1195
- index: boolean;
1196
- externalId: boolean;
1197
- options?: {
1198
- value: string;
1199
- label: string;
1200
- color?: string | undefined;
1201
- default?: boolean | undefined;
1202
- }[] | undefined;
1203
- min?: number | undefined;
1204
- max?: number | undefined;
1205
- formula?: string | undefined;
1206
- label?: string | undefined;
1207
- precision?: number | undefined;
1208
- name?: string | undefined;
1209
- description?: string | undefined;
1210
- format?: string | undefined;
1211
- defaultValue?: any;
1212
- maxLength?: number | undefined;
1213
- minLength?: number | undefined;
1214
- scale?: number | undefined;
1215
- reference?: string | undefined;
1216
- referenceFilters?: string[] | undefined;
1217
- writeRequiresMasterRead?: boolean | undefined;
1218
- expression?: string | undefined;
1219
- summaryOperations?: {
1220
- object: string;
1221
- function: "count" | "sum" | "avg" | "min" | "max";
1222
- field: string;
1223
- } | undefined;
1224
- language?: string | undefined;
1225
- theme?: string | undefined;
1226
- lineNumbers?: boolean | undefined;
1227
- maxRating?: number | undefined;
1228
- allowHalf?: boolean | undefined;
1229
- displayMap?: boolean | undefined;
1230
- allowGeocoding?: boolean | undefined;
1231
- addressFormat?: "us" | "uk" | "international" | undefined;
1232
- colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
1233
- allowAlpha?: boolean | undefined;
1234
- presetColors?: string[] | undefined;
1235
- step?: number | undefined;
1236
- showValue?: boolean | undefined;
1237
- marks?: Record<string, string> | undefined;
1238
- barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
1239
- qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
1240
- displayValue?: boolean | undefined;
1241
- allowScanning?: boolean | undefined;
1242
- currencyConfig?: {
1243
- precision: number;
1244
- currencyMode: "dynamic" | "fixed";
1245
- defaultCurrency: string;
1246
- } | undefined;
1247
- }>;
1248
- name: string;
1249
- active: boolean;
1250
- isSystem: boolean;
1251
- abstract: boolean;
1252
- datasource: string;
1253
- label?: string | undefined;
1254
- description?: string | undefined;
1255
- tags?: string[] | undefined;
1256
- search?: {
1257
- fields: string[];
1258
- displayFields?: string[] | undefined;
1259
- filters?: string[] | undefined;
1260
- } | undefined;
1261
- pluralLabel?: string | undefined;
1262
- icon?: string | undefined;
1263
- tableName?: string | undefined;
1264
- indexes?: {
1265
- fields: string[];
1266
- type?: "hash" | "btree" | "gin" | "gist" | undefined;
1267
- name?: string | undefined;
1268
- unique?: boolean | undefined;
1269
- }[] | undefined;
1270
- validations?: any[] | undefined;
1271
- titleFormat?: string | undefined;
1272
- compactLayout?: string[] | undefined;
1273
- enable?: {
1274
- searchable: boolean;
1275
- trackHistory: boolean;
1276
- apiEnabled: boolean;
1277
- files: boolean;
1278
- feeds: boolean;
1279
- activities: boolean;
1280
- trash: boolean;
1281
- mru: boolean;
1282
- clone: boolean;
1283
- apiMethods?: ("update" | "delete" | "get" | "list" | "create" | "upsert" | "bulk" | "aggregate" | "history" | "search" | "restore" | "purge" | "import" | "export")[] | undefined;
1284
- } | undefined;
1285
- }> | undefined;
1286
- }, {
1287
- datasource?: Record<string, {
1288
- name: string;
1289
- driver: string;
1290
- config: Record<string, any>;
1291
- label?: string | undefined;
1292
- description?: string | undefined;
1293
- active?: boolean | undefined;
1294
- capabilities?: {
1295
- joins?: boolean | undefined;
1296
- transactions?: boolean | undefined;
1297
- queryFilters?: boolean | undefined;
1298
- queryAggregations?: boolean | undefined;
1299
- querySorting?: boolean | undefined;
1300
- queryPagination?: boolean | undefined;
1301
- queryWindowFunctions?: boolean | undefined;
1302
- querySubqueries?: boolean | undefined;
1303
- fullTextSearch?: boolean | undefined;
1304
- readOnly?: boolean | undefined;
1305
- dynamicSchema?: boolean | undefined;
1306
- } | undefined;
1307
- pool?: {
1308
- min?: number | undefined;
1309
- max?: number | undefined;
1310
- idleTimeoutMillis?: number | undefined;
1311
- connectionTimeoutMillis?: number | undefined;
1312
- } | undefined;
1313
- readReplicas?: Record<string, any>[] | undefined;
1314
- }> | undefined;
1315
- objects?: Record<string, {
1316
- fields: Record<string, {
1317
- 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";
1318
- options?: {
1319
- value: string;
1320
- label: string;
1321
- color?: string | undefined;
1322
- default?: boolean | undefined;
1323
- }[] | undefined;
1324
- required?: boolean | undefined;
1325
- min?: number | undefined;
1326
- max?: number | undefined;
1327
- formula?: string | undefined;
1328
- label?: string | undefined;
1329
- precision?: number | undefined;
1330
- name?: string | undefined;
1331
- description?: string | undefined;
1332
- format?: string | undefined;
1333
- searchable?: boolean | undefined;
1334
- multiple?: boolean | undefined;
1335
- unique?: boolean | undefined;
1336
- defaultValue?: any;
1337
- maxLength?: number | undefined;
1338
- minLength?: number | undefined;
1339
- scale?: number | undefined;
1340
- reference?: string | undefined;
1341
- referenceFilters?: string[] | undefined;
1342
- writeRequiresMasterRead?: boolean | undefined;
1343
- deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
1344
- expression?: string | undefined;
1345
- summaryOperations?: {
1346
- object: string;
1347
- function: "count" | "sum" | "avg" | "min" | "max";
1348
- field: string;
1349
- } | undefined;
1350
- language?: string | undefined;
1351
- theme?: string | undefined;
1352
- lineNumbers?: boolean | undefined;
1353
- maxRating?: number | undefined;
1354
- allowHalf?: boolean | undefined;
1355
- displayMap?: boolean | undefined;
1356
- allowGeocoding?: boolean | undefined;
1357
- addressFormat?: "us" | "uk" | "international" | undefined;
1358
- colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
1359
- allowAlpha?: boolean | undefined;
1360
- presetColors?: string[] | undefined;
1361
- step?: number | undefined;
1362
- showValue?: boolean | undefined;
1363
- marks?: Record<string, string> | undefined;
1364
- barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
1365
- qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
1366
- displayValue?: boolean | undefined;
1367
- allowScanning?: boolean | undefined;
1368
- currencyConfig?: {
1369
- precision?: number | undefined;
1370
- currencyMode?: "dynamic" | "fixed" | undefined;
1371
- defaultCurrency?: string | undefined;
1372
- } | undefined;
1373
- hidden?: boolean | undefined;
1374
- readonly?: boolean | undefined;
1375
- encryption?: boolean | undefined;
1376
- index?: boolean | undefined;
1377
- externalId?: boolean | undefined;
1378
- }>;
1379
- name: string;
1380
- label?: string | undefined;
1381
- description?: string | undefined;
1382
- active?: boolean | undefined;
1383
- tags?: string[] | undefined;
1384
- search?: {
1385
- fields: string[];
1386
- displayFields?: string[] | undefined;
1387
- filters?: string[] | undefined;
1388
- } | undefined;
1389
- pluralLabel?: string | undefined;
1390
- icon?: string | undefined;
1391
- isSystem?: boolean | undefined;
1392
- abstract?: boolean | undefined;
1393
- datasource?: string | undefined;
1394
- tableName?: string | undefined;
1395
- indexes?: {
1396
- fields: string[];
1397
- type?: "hash" | "btree" | "gin" | "gist" | undefined;
1398
- name?: string | undefined;
1399
- unique?: boolean | undefined;
1400
- }[] | undefined;
1401
- validations?: any[] | undefined;
1402
- titleFormat?: string | undefined;
1403
- compactLayout?: string[] | undefined;
1404
- enable?: {
1405
- searchable?: boolean | undefined;
1406
- trackHistory?: boolean | undefined;
1407
- apiEnabled?: boolean | undefined;
1408
- apiMethods?: ("update" | "delete" | "get" | "list" | "create" | "upsert" | "bulk" | "aggregate" | "history" | "search" | "restore" | "purge" | "import" | "export")[] | undefined;
1409
- files?: boolean | undefined;
1410
- feeds?: boolean | undefined;
1411
- activities?: boolean | undefined;
1412
- trash?: boolean | undefined;
1413
- mru?: boolean | undefined;
1414
- clone?: boolean | undefined;
1415
- } | undefined;
1416
- }> | undefined;
1417
- }>>;
1418
- /**
1419
- * Defines system level DataSources.
1420
- */
1421
- datasources: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1422
- /**
1423
- * Package Dependencies.
1424
- * Map of package IDs to version requirements.
1425
- */
1426
- dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1427
- /**
1428
- * Plugin Configuration Schema.
1429
- * Defines the settings this plugin exposes to the user.
1430
- * Uses a simplified JSON Schema format.
1431
- */
1432
- configuration: z.ZodOptional<z.ZodObject<{
1433
- title: z.ZodOptional<z.ZodString>;
1434
- properties: z.ZodRecord<z.ZodString, z.ZodObject<{
1435
- type: z.ZodEnum<["string", "number", "boolean", "array", "object"]>;
1436
- default: z.ZodOptional<z.ZodAny>;
1437
- description: z.ZodOptional<z.ZodString>;
1438
- required: z.ZodOptional<z.ZodBoolean>;
1439
- secret: z.ZodOptional<z.ZodBoolean>;
1440
- enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1441
- }, "strip", z.ZodTypeAny, {
1442
- type: "string" | "number" | "boolean" | "object" | "array";
1443
- required?: boolean | undefined;
1444
- default?: any;
1445
- description?: string | undefined;
1446
- secret?: boolean | undefined;
1447
- enum?: string[] | undefined;
1448
- }, {
1449
- type: "string" | "number" | "boolean" | "object" | "array";
1450
- required?: boolean | undefined;
1451
- default?: any;
1452
- description?: string | undefined;
1453
- secret?: boolean | undefined;
1454
- enum?: string[] | undefined;
1455
- }>>;
1456
- }, "strip", z.ZodTypeAny, {
1457
- properties: Record<string, {
1458
- type: "string" | "number" | "boolean" | "object" | "array";
1459
- required?: boolean | undefined;
1460
- default?: any;
1461
- description?: string | undefined;
1462
- secret?: boolean | undefined;
1463
- enum?: string[] | undefined;
1464
- }>;
1465
- title?: string | undefined;
1466
- }, {
1467
- properties: Record<string, {
1468
- type: "string" | "number" | "boolean" | "object" | "array";
1469
- required?: boolean | undefined;
1470
- default?: any;
1471
- description?: string | undefined;
1472
- secret?: boolean | undefined;
1473
- enum?: string[] | undefined;
1474
- }>;
1475
- title?: string | undefined;
1476
- }>>;
1477
- /**
1478
- * Contribution Points (VS Code Style).
1479
- * formalized way to extend the platform capabilities.
1480
- */
1481
- contributes: z.ZodOptional<z.ZodObject<{
1482
- /**
1483
- * Register new Metadata Kinds (CRDs).
1484
- * Enables the system to parse and validate new file types.
1485
- * Example: Registering a BI plugin to handle *.report.ts
1486
- */
1487
- kinds: z.ZodOptional<z.ZodArray<z.ZodObject<{
1488
- id: z.ZodString;
1489
- globs: z.ZodArray<z.ZodString, "many">;
1490
- description: z.ZodOptional<z.ZodString>;
1491
- }, "strip", z.ZodTypeAny, {
1492
- id: string;
1493
- globs: string[];
1494
- description?: string | undefined;
1495
- }, {
1496
- id: string;
1497
- globs: string[];
1498
- description?: string | undefined;
1499
- }>, "many">>;
1500
- /**
1501
- * Register System Hooks.
1502
- * Declares that this plugin listens to specific system events.
1503
- */
1504
- events: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1505
- /**
1506
- * Register UI Menus.
1507
- */
1508
- menus: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
1509
- id: z.ZodString;
1510
- label: z.ZodString;
1511
- command: z.ZodOptional<z.ZodString>;
1512
- }, "strip", z.ZodTypeAny, {
1513
- label: string;
1514
- id: string;
1515
- command?: string | undefined;
1516
- }, {
1517
- label: string;
1518
- id: string;
1519
- command?: string | undefined;
1520
- }>, "many">>>;
1521
- /**
1522
- * Register Custom Themes.
1523
- */
1524
- themes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1525
- id: z.ZodString;
1526
- label: z.ZodString;
1527
- path: z.ZodString;
1528
- }, "strip", z.ZodTypeAny, {
1529
- path: string;
1530
- label: string;
1531
- id: string;
1532
- }, {
1533
- path: string;
1534
- label: string;
1535
- id: string;
1536
- }>, "many">>;
1537
- /**
1538
- * Register Translations.
1539
- * Path to translation files (e.g. "locales/en.json").
1540
- */
1541
- translations: z.ZodOptional<z.ZodArray<z.ZodObject<{
1542
- locale: z.ZodString;
1543
- path: z.ZodString;
1544
- }, "strip", z.ZodTypeAny, {
1545
- path: string;
1546
- locale: string;
1547
- }, {
1548
- path: string;
1549
- locale: string;
1550
- }>, "many">>;
1551
- /**
1552
- * Register Server Actions.
1553
- * Invocable functions exposed to Flows or API.
1554
- */
1555
- actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1556
- name: z.ZodString;
1557
- label: z.ZodOptional<z.ZodString>;
1558
- description: z.ZodOptional<z.ZodString>;
1559
- input: z.ZodOptional<z.ZodAny>;
1560
- output: z.ZodOptional<z.ZodAny>;
1561
- }, "strip", z.ZodTypeAny, {
1562
- name: string;
1563
- label?: string | undefined;
1564
- description?: string | undefined;
1565
- input?: any;
1566
- output?: any;
1567
- }, {
1568
- name: string;
1569
- label?: string | undefined;
1570
- description?: string | undefined;
1571
- input?: any;
1572
- output?: any;
1573
- }>, "many">>;
1574
- /**
1575
- * Register Storage Drivers.
1576
- * Enables connecting to new types of datasources.
1577
- */
1578
- drivers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1579
- id: z.ZodString;
1580
- label: z.ZodString;
1581
- description: z.ZodOptional<z.ZodString>;
1582
- }, "strip", z.ZodTypeAny, {
1583
- label: string;
1584
- id: string;
1585
- description?: string | undefined;
1586
- }, {
1587
- label: string;
1588
- id: string;
1589
- description?: string | undefined;
1590
- }>, "many">>;
1591
- /**
1592
- * Register Custom Field Types.
1593
- * Extends the data model with new widget types.
1594
- */
1595
- fieldTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1596
- name: z.ZodString;
1597
- label: z.ZodString;
1598
- description: z.ZodOptional<z.ZodString>;
1599
- }, "strip", z.ZodTypeAny, {
1600
- label: string;
1601
- name: string;
1602
- description?: string | undefined;
1603
- }, {
1604
- label: string;
1605
- name: string;
1606
- description?: string | undefined;
1607
- }>, "many">>;
1608
- /**
1609
- * Register Custom Query Operators/Functions.
1610
- * Extends ObjectQL with new functions (e.g. distance()).
1611
- */
1612
- functions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1613
- name: z.ZodString;
1614
- description: z.ZodOptional<z.ZodString>;
1615
- args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1616
- returnType: z.ZodOptional<z.ZodString>;
1617
- }, "strip", z.ZodTypeAny, {
1618
- name: string;
1619
- description?: string | undefined;
1620
- args?: string[] | undefined;
1621
- returnType?: string | undefined;
1622
- }, {
1623
- name: string;
1624
- description?: string | undefined;
1625
- args?: string[] | undefined;
1626
- returnType?: string | undefined;
1627
- }>, "many">>;
1628
- }, "strip", z.ZodTypeAny, {
1629
- events?: string[] | undefined;
1630
- actions?: {
1631
- name: string;
1632
- label?: string | undefined;
1633
- description?: string | undefined;
1634
- input?: any;
1635
- output?: any;
1636
- }[] | undefined;
1637
- kinds?: {
1638
- id: string;
1639
- globs: string[];
1640
- description?: string | undefined;
1641
- }[] | undefined;
1642
- menus?: Record<string, {
1643
- label: string;
1644
- id: string;
1645
- command?: string | undefined;
1646
- }[]> | undefined;
1647
- themes?: {
1648
- path: string;
1649
- label: string;
1650
- id: string;
1651
- }[] | undefined;
1652
- translations?: {
1653
- path: string;
1654
- locale: string;
1655
- }[] | undefined;
1656
- drivers?: {
1657
- label: string;
1658
- id: string;
1659
- description?: string | undefined;
1660
- }[] | undefined;
1661
- fieldTypes?: {
1662
- label: string;
1663
- name: string;
1664
- description?: string | undefined;
1665
- }[] | undefined;
1666
- functions?: {
1667
- name: string;
1668
- description?: string | undefined;
1669
- args?: string[] | undefined;
1670
- returnType?: string | undefined;
1671
- }[] | undefined;
1672
- }, {
1673
- events?: string[] | undefined;
1674
- actions?: {
1675
- name: string;
1676
- label?: string | undefined;
1677
- description?: string | undefined;
1678
- input?: any;
1679
- output?: any;
1680
- }[] | undefined;
1681
- kinds?: {
1682
- id: string;
1683
- globs: string[];
1684
- description?: string | undefined;
1685
- }[] | undefined;
1686
- menus?: Record<string, {
1687
- label: string;
1688
- id: string;
1689
- command?: string | undefined;
1690
- }[]> | undefined;
1691
- themes?: {
1692
- path: string;
1693
- label: string;
1694
- id: string;
1695
- }[] | undefined;
1696
- translations?: {
1697
- path: string;
1698
- locale: string;
1699
- }[] | undefined;
1700
- drivers?: {
1701
- label: string;
1702
- id: string;
1703
- description?: string | undefined;
1704
- }[] | undefined;
1705
- fieldTypes?: {
1706
- label: string;
1707
- name: string;
1708
- description?: string | undefined;
1709
- }[] | undefined;
1710
- functions?: {
1711
- name: string;
1712
- description?: string | undefined;
1713
- args?: string[] | undefined;
1714
- returnType?: string | undefined;
1715
- }[] | undefined;
1716
- }>>;
1717
- /**
1718
- * Initial data seeding configuration.
1719
- * Defines default records to be inserted when the package is installed.
1720
- */
1721
- data: z.ZodOptional<z.ZodArray<z.ZodObject<{
1722
- object: z.ZodString;
1723
- records: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">;
1724
- mode: z.ZodDefault<z.ZodEnum<["upsert", "insert", "ignore"]>>;
1725
- }, "strip", z.ZodTypeAny, {
1726
- object: string;
1727
- mode: "insert" | "upsert" | "ignore";
1728
- records: Record<string, any>[];
1729
- }, {
1730
- object: string;
1731
- records: Record<string, any>[];
1732
- mode?: "insert" | "upsert" | "ignore" | undefined;
1733
- }>, "many">>;
1734
- /**
1735
- * Extension points contributed by this package.
1736
- * Allows packages to extend UI components, add functionality, etc.
1737
- */
1738
- extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1739
- }, "strip", z.ZodTypeAny, {
1740
- type: "driver" | "app" | "plugin" | "module";
1741
- name: string;
1742
- id: string;
1743
- version: string;
1744
- description?: string | undefined;
1745
- data?: {
1746
- object: string;
1747
- mode: "insert" | "upsert" | "ignore";
1748
- records: Record<string, any>[];
1749
- }[] | undefined;
1750
- objects?: string[] | undefined;
1751
- permissions?: string[] | undefined;
1752
- definitions?: {
1753
- datasource?: Record<string, {
1754
- name: string;
1755
- active: boolean;
1756
- driver: string;
1757
- config: Record<string, any>;
1758
- label?: string | undefined;
1759
- description?: string | undefined;
1760
- capabilities?: {
1761
- joins: boolean;
1762
- transactions: boolean;
1763
- queryFilters: boolean;
1764
- queryAggregations: boolean;
1765
- querySorting: boolean;
1766
- queryPagination: boolean;
1767
- queryWindowFunctions: boolean;
1768
- querySubqueries: boolean;
1769
- fullTextSearch: boolean;
1770
- readOnly: boolean;
1771
- dynamicSchema: boolean;
1772
- } | undefined;
1773
- pool?: {
1774
- min: number;
1775
- max: number;
1776
- idleTimeoutMillis: number;
1777
- connectionTimeoutMillis: number;
1778
- } | undefined;
1779
- readReplicas?: Record<string, any>[] | undefined;
1780
- }> | undefined;
1781
- objects?: Record<string, {
1782
- fields: Record<string, {
1783
- 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";
1784
- required: boolean;
1785
- searchable: boolean;
1786
- multiple: boolean;
1787
- unique: boolean;
1788
- deleteBehavior: "set_null" | "cascade" | "restrict";
1789
- hidden: boolean;
1790
- readonly: boolean;
1791
- encryption: boolean;
1792
- index: boolean;
1793
- externalId: boolean;
1794
- options?: {
1795
- value: string;
1796
- label: string;
1797
- color?: string | undefined;
1798
- default?: boolean | undefined;
1799
- }[] | undefined;
1800
- min?: number | undefined;
1801
- max?: number | undefined;
1802
- formula?: string | undefined;
1803
- label?: string | undefined;
1804
- precision?: number | undefined;
1805
- name?: string | undefined;
1806
- description?: string | undefined;
1807
- format?: string | undefined;
1808
- defaultValue?: any;
1809
- maxLength?: number | undefined;
1810
- minLength?: number | undefined;
1811
- scale?: number | undefined;
1812
- reference?: string | undefined;
1813
- referenceFilters?: string[] | undefined;
1814
- writeRequiresMasterRead?: boolean | undefined;
1815
- expression?: string | undefined;
1816
- summaryOperations?: {
1817
- object: string;
1818
- function: "count" | "sum" | "avg" | "min" | "max";
1819
- field: string;
1820
- } | undefined;
1821
- language?: string | undefined;
1822
- theme?: string | undefined;
1823
- lineNumbers?: boolean | undefined;
1824
- maxRating?: number | undefined;
1825
- allowHalf?: boolean | undefined;
1826
- displayMap?: boolean | undefined;
1827
- allowGeocoding?: boolean | undefined;
1828
- addressFormat?: "us" | "uk" | "international" | undefined;
1829
- colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
1830
- allowAlpha?: boolean | undefined;
1831
- presetColors?: string[] | undefined;
1832
- step?: number | undefined;
1833
- showValue?: boolean | undefined;
1834
- marks?: Record<string, string> | undefined;
1835
- barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
1836
- qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
1837
- displayValue?: boolean | undefined;
1838
- allowScanning?: boolean | undefined;
1839
- currencyConfig?: {
1840
- precision: number;
1841
- currencyMode: "dynamic" | "fixed";
1842
- defaultCurrency: string;
1843
- } | undefined;
1844
- }>;
1845
- name: string;
1846
- active: boolean;
1847
- isSystem: boolean;
1848
- abstract: boolean;
1849
- datasource: string;
1850
- label?: string | undefined;
1851
- description?: string | undefined;
1852
- tags?: string[] | undefined;
1853
- search?: {
1854
- fields: string[];
1855
- displayFields?: string[] | undefined;
1856
- filters?: string[] | undefined;
1857
- } | undefined;
1858
- pluralLabel?: string | undefined;
1859
- icon?: string | undefined;
1860
- tableName?: string | undefined;
1861
- indexes?: {
1862
- fields: string[];
1863
- type?: "hash" | "btree" | "gin" | "gist" | undefined;
1864
- name?: string | undefined;
1865
- unique?: boolean | undefined;
1866
- }[] | undefined;
1867
- validations?: any[] | undefined;
1868
- titleFormat?: string | undefined;
1869
- compactLayout?: string[] | undefined;
1870
- enable?: {
1871
- searchable: boolean;
1872
- trackHistory: boolean;
1873
- apiEnabled: boolean;
1874
- files: boolean;
1875
- feeds: boolean;
1876
- activities: boolean;
1877
- trash: boolean;
1878
- mru: boolean;
1879
- clone: boolean;
1880
- apiMethods?: ("update" | "delete" | "get" | "list" | "create" | "upsert" | "bulk" | "aggregate" | "history" | "search" | "restore" | "purge" | "import" | "export")[] | undefined;
1881
- } | undefined;
1882
- }> | undefined;
1883
- } | undefined;
1884
- datasources?: string[] | undefined;
1885
- dependencies?: Record<string, string> | undefined;
1886
- configuration?: {
1887
- properties: Record<string, {
1888
- type: "string" | "number" | "boolean" | "object" | "array";
1889
- required?: boolean | undefined;
1890
- default?: any;
1891
- description?: string | undefined;
1892
- secret?: boolean | undefined;
1893
- enum?: string[] | undefined;
1894
- }>;
1895
- title?: string | undefined;
1896
- } | undefined;
1897
- contributes?: {
1898
- events?: string[] | undefined;
1899
- actions?: {
1900
- name: string;
1901
- label?: string | undefined;
1902
- description?: string | undefined;
1903
- input?: any;
1904
- output?: any;
1905
- }[] | undefined;
1906
- kinds?: {
1907
- id: string;
1908
- globs: string[];
1909
- description?: string | undefined;
1910
- }[] | undefined;
1911
- menus?: Record<string, {
1912
- label: string;
1913
- id: string;
1914
- command?: string | undefined;
1915
- }[]> | undefined;
1916
- themes?: {
1917
- path: string;
1918
- label: string;
1919
- id: string;
1920
- }[] | undefined;
1921
- translations?: {
1922
- path: string;
1923
- locale: string;
1924
- }[] | undefined;
1925
- drivers?: {
1926
- label: string;
1927
- id: string;
1928
- description?: string | undefined;
1929
- }[] | undefined;
1930
- fieldTypes?: {
1931
- label: string;
1932
- name: string;
1933
- description?: string | undefined;
1934
- }[] | undefined;
1935
- functions?: {
1936
- name: string;
1937
- description?: string | undefined;
1938
- args?: string[] | undefined;
1939
- returnType?: string | undefined;
1940
- }[] | undefined;
1941
- } | undefined;
1942
- extensions?: Record<string, any> | undefined;
1943
- }, {
1944
- type: "driver" | "app" | "plugin" | "module";
1945
- name: string;
1946
- id: string;
1947
- version: string;
1948
- description?: string | undefined;
1949
- data?: {
1950
- object: string;
1951
- records: Record<string, any>[];
1952
- mode?: "insert" | "upsert" | "ignore" | undefined;
1953
- }[] | undefined;
1954
- objects?: string[] | undefined;
1955
- permissions?: string[] | undefined;
1956
- definitions?: {
1957
- datasource?: Record<string, {
1958
- name: string;
1959
- driver: string;
1960
- config: Record<string, any>;
1961
- label?: string | undefined;
1962
- description?: string | undefined;
1963
- active?: boolean | undefined;
1964
- capabilities?: {
1965
- joins?: boolean | undefined;
1966
- transactions?: boolean | undefined;
1967
- queryFilters?: boolean | undefined;
1968
- queryAggregations?: boolean | undefined;
1969
- querySorting?: boolean | undefined;
1970
- queryPagination?: boolean | undefined;
1971
- queryWindowFunctions?: boolean | undefined;
1972
- querySubqueries?: boolean | undefined;
1973
- fullTextSearch?: boolean | undefined;
1974
- readOnly?: boolean | undefined;
1975
- dynamicSchema?: boolean | undefined;
1976
- } | undefined;
1977
- pool?: {
1978
- min?: number | undefined;
1979
- max?: number | undefined;
1980
- idleTimeoutMillis?: number | undefined;
1981
- connectionTimeoutMillis?: number | undefined;
1982
- } | undefined;
1983
- readReplicas?: Record<string, any>[] | undefined;
1984
- }> | undefined;
1985
- objects?: Record<string, {
1986
- fields: Record<string, {
1987
- 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";
1988
- options?: {
1989
- value: string;
1990
- label: string;
1991
- color?: string | undefined;
1992
- default?: boolean | undefined;
1993
- }[] | undefined;
1994
- required?: boolean | undefined;
1995
- min?: number | undefined;
1996
- max?: number | undefined;
1997
- formula?: string | undefined;
1998
- label?: string | undefined;
1999
- precision?: number | undefined;
2000
- name?: string | undefined;
2001
- description?: string | undefined;
2002
- format?: string | undefined;
2003
- searchable?: boolean | undefined;
2004
- multiple?: boolean | undefined;
2005
- unique?: boolean | undefined;
2006
- defaultValue?: any;
2007
- maxLength?: number | undefined;
2008
- minLength?: number | undefined;
2009
- scale?: number | undefined;
2010
- reference?: string | undefined;
2011
- referenceFilters?: string[] | undefined;
2012
- writeRequiresMasterRead?: boolean | undefined;
2013
- deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
2014
- expression?: string | undefined;
2015
- summaryOperations?: {
2016
- object: string;
2017
- function: "count" | "sum" | "avg" | "min" | "max";
2018
- field: string;
2019
- } | undefined;
2020
- language?: string | undefined;
2021
- theme?: string | undefined;
2022
- lineNumbers?: boolean | undefined;
2023
- maxRating?: number | undefined;
2024
- allowHalf?: boolean | undefined;
2025
- displayMap?: boolean | undefined;
2026
- allowGeocoding?: boolean | undefined;
2027
- addressFormat?: "us" | "uk" | "international" | undefined;
2028
- colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
2029
- allowAlpha?: boolean | undefined;
2030
- presetColors?: string[] | undefined;
2031
- step?: number | undefined;
2032
- showValue?: boolean | undefined;
2033
- marks?: Record<string, string> | undefined;
2034
- barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
2035
- qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
2036
- displayValue?: boolean | undefined;
2037
- allowScanning?: boolean | undefined;
2038
- currencyConfig?: {
2039
- precision?: number | undefined;
2040
- currencyMode?: "dynamic" | "fixed" | undefined;
2041
- defaultCurrency?: string | undefined;
2042
- } | undefined;
2043
- hidden?: boolean | undefined;
2044
- readonly?: boolean | undefined;
2045
- encryption?: boolean | undefined;
2046
- index?: boolean | undefined;
2047
- externalId?: boolean | undefined;
2048
- }>;
2049
- name: string;
2050
- label?: string | undefined;
2051
- description?: string | undefined;
2052
- active?: boolean | undefined;
2053
- tags?: string[] | undefined;
2054
- search?: {
2055
- fields: string[];
2056
- displayFields?: string[] | undefined;
2057
- filters?: string[] | undefined;
2058
- } | undefined;
2059
- pluralLabel?: string | undefined;
2060
- icon?: string | undefined;
2061
- isSystem?: boolean | undefined;
2062
- abstract?: boolean | undefined;
2063
- datasource?: string | undefined;
2064
- tableName?: string | undefined;
2065
- indexes?: {
2066
- fields: string[];
2067
- type?: "hash" | "btree" | "gin" | "gist" | undefined;
2068
- name?: string | undefined;
2069
- unique?: boolean | undefined;
2070
- }[] | undefined;
2071
- validations?: any[] | undefined;
2072
- titleFormat?: string | undefined;
2073
- compactLayout?: string[] | undefined;
2074
- enable?: {
2075
- searchable?: boolean | undefined;
2076
- trackHistory?: boolean | undefined;
2077
- apiEnabled?: boolean | undefined;
2078
- apiMethods?: ("update" | "delete" | "get" | "list" | "create" | "upsert" | "bulk" | "aggregate" | "history" | "search" | "restore" | "purge" | "import" | "export")[] | undefined;
2079
- files?: boolean | undefined;
2080
- feeds?: boolean | undefined;
2081
- activities?: boolean | undefined;
2082
- trash?: boolean | undefined;
2083
- mru?: boolean | undefined;
2084
- clone?: boolean | undefined;
2085
- } | undefined;
2086
- }> | undefined;
2087
- } | undefined;
2088
- datasources?: string[] | undefined;
2089
- dependencies?: Record<string, string> | undefined;
2090
- configuration?: {
2091
- properties: Record<string, {
2092
- type: "string" | "number" | "boolean" | "object" | "array";
2093
- required?: boolean | undefined;
2094
- default?: any;
2095
- description?: string | undefined;
2096
- secret?: boolean | undefined;
2097
- enum?: string[] | undefined;
2098
- }>;
2099
- title?: string | undefined;
2100
- } | undefined;
2101
- contributes?: {
2102
- events?: string[] | undefined;
2103
- actions?: {
2104
- name: string;
2105
- label?: string | undefined;
2106
- description?: string | undefined;
2107
- input?: any;
2108
- output?: any;
2109
- }[] | undefined;
2110
- kinds?: {
2111
- id: string;
2112
- globs: string[];
2113
- description?: string | undefined;
2114
- }[] | undefined;
2115
- menus?: Record<string, {
2116
- label: string;
2117
- id: string;
2118
- command?: string | undefined;
2119
- }[]> | undefined;
2120
- themes?: {
2121
- path: string;
2122
- label: string;
2123
- id: string;
2124
- }[] | undefined;
2125
- translations?: {
2126
- path: string;
2127
- locale: string;
2128
- }[] | undefined;
2129
- drivers?: {
2130
- label: string;
2131
- id: string;
2132
- description?: string | undefined;
2133
- }[] | undefined;
2134
- fieldTypes?: {
2135
- label: string;
2136
- name: string;
2137
- description?: string | undefined;
2138
- }[] | undefined;
2139
- functions?: {
2140
- name: string;
2141
- description?: string | undefined;
2142
- args?: string[] | undefined;
2143
- returnType?: string | undefined;
2144
- }[] | undefined;
2145
- } | undefined;
2146
- extensions?: Record<string, any> | undefined;
2147
- }>;
2148
- /**
2149
- * TypeScript type inferred from the ManifestSchema.
2150
- * Use this type for type-safe manifest handling in TypeScript code.
2151
- */
2152
- export type ObjectStackManifest = z.infer<typeof ManifestSchema>;
2153
- //# sourceMappingURL=manifest.zod.d.ts.map