@objectstack/spec 0.1.0 → 0.1.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 (309) hide show
  1. package/README.md +134 -121
  2. package/dist/ai/agent.zod.d.ts +164 -0
  3. package/dist/ai/agent.zod.d.ts.map +1 -0
  4. package/dist/ai/agent.zod.js +51 -0
  5. package/dist/api/contract.zod.d.ts +1733 -0
  6. package/dist/api/contract.zod.d.ts.map +1 -0
  7. package/dist/api/contract.zod.js +138 -0
  8. package/dist/data/dataset.zod.d.ts +60 -0
  9. package/dist/data/dataset.zod.d.ts.map +1 -0
  10. package/dist/data/dataset.zod.js +54 -0
  11. package/dist/data/field.zod.d.ts +1808 -0
  12. package/dist/data/field.zod.d.ts.map +1 -0
  13. package/dist/data/field.zod.js +222 -0
  14. package/dist/data/flow.zod.d.ts +242 -0
  15. package/dist/data/flow.zod.d.ts.map +1 -0
  16. package/dist/data/flow.zod.js +77 -0
  17. package/dist/data/mapping.zod.d.ts +470 -0
  18. package/dist/data/mapping.zod.d.ts.map +1 -0
  19. package/dist/data/mapping.zod.js +65 -0
  20. package/dist/data/object.zod.d.ts +844 -0
  21. package/dist/data/object.zod.d.ts.map +1 -0
  22. package/dist/data/object.zod.js +81 -0
  23. package/dist/data/permission.zod.d.ts +163 -0
  24. package/dist/data/permission.zod.d.ts.map +1 -0
  25. package/dist/data/permission.zod.js +62 -0
  26. package/dist/data/query.zod.d.ts +438 -0
  27. package/dist/data/query.zod.d.ts.map +1 -0
  28. package/dist/data/query.zod.js +147 -0
  29. package/dist/data/sharing.zod.d.ts +63 -0
  30. package/dist/data/sharing.zod.d.ts.map +1 -0
  31. package/dist/data/sharing.zod.js +57 -0
  32. package/dist/data/trigger.zod.d.ts +354 -0
  33. package/dist/data/trigger.zod.d.ts.map +1 -0
  34. package/dist/data/trigger.zod.js +195 -0
  35. package/dist/data/validation.zod.d.ts +276 -0
  36. package/dist/data/validation.zod.d.ts.map +1 -0
  37. package/dist/data/validation.zod.js +105 -0
  38. package/dist/data/workflow.zod.d.ts +195 -0
  39. package/dist/data/workflow.zod.d.ts.map +1 -0
  40. package/dist/data/workflow.zod.js +64 -0
  41. package/dist/index.d.ts +41 -5
  42. package/dist/index.d.ts.map +1 -1
  43. package/dist/index.js +62 -5
  44. package/dist/system/api.zod.d.ts +294 -0
  45. package/dist/system/api.zod.d.ts.map +1 -0
  46. package/dist/system/api.zod.js +56 -0
  47. package/dist/system/constants/index.d.ts +11 -0
  48. package/dist/system/constants/index.d.ts.map +1 -0
  49. package/dist/system/constants/index.js +26 -0
  50. package/dist/system/constants/paths.d.ts +71 -0
  51. package/dist/system/constants/paths.d.ts.map +1 -0
  52. package/dist/system/constants/paths.js +65 -0
  53. package/dist/system/datasource.zod.d.ts +210 -0
  54. package/dist/system/datasource.zod.d.ts.map +1 -0
  55. package/dist/system/datasource.zod.js +90 -0
  56. package/dist/system/discovery.zod.d.ts +174 -0
  57. package/dist/system/discovery.zod.d.ts.map +1 -0
  58. package/dist/system/discovery.zod.js +53 -0
  59. package/dist/system/driver.zod.d.ts +1525 -0
  60. package/dist/system/driver.zod.d.ts.map +1 -0
  61. package/dist/system/driver.zod.js +290 -0
  62. package/dist/system/identity.zod.d.ts +204 -0
  63. package/dist/system/identity.zod.d.ts.map +1 -0
  64. package/dist/system/identity.zod.js +68 -0
  65. package/dist/system/license.zod.d.ts +110 -0
  66. package/dist/system/license.zod.d.ts.map +1 -0
  67. package/dist/system/license.zod.js +63 -0
  68. package/dist/system/manifest.zod.d.ts +397 -0
  69. package/dist/system/manifest.zod.d.ts.map +1 -0
  70. package/dist/system/manifest.zod.js +142 -0
  71. package/dist/system/plugin.zod.d.ts +3516 -0
  72. package/dist/system/plugin.zod.d.ts.map +1 -0
  73. package/dist/system/plugin.zod.js +226 -0
  74. package/dist/system/policy.zod.d.ts +209 -0
  75. package/dist/system/policy.zod.d.ts.map +1 -0
  76. package/dist/system/policy.zod.js +54 -0
  77. package/dist/system/role.zod.d.ts +34 -0
  78. package/dist/system/role.zod.d.ts.map +1 -0
  79. package/dist/system/role.zod.js +25 -0
  80. package/dist/system/territory.zod.d.ts +91 -0
  81. package/dist/system/territory.zod.d.ts.map +1 -0
  82. package/dist/system/territory.zod.js +64 -0
  83. package/dist/system/translation.zod.d.ts +171 -0
  84. package/dist/system/translation.zod.d.ts.map +1 -0
  85. package/dist/system/translation.zod.js +34 -0
  86. package/dist/system/types/index.d.ts +7 -0
  87. package/dist/system/types/index.d.ts.map +1 -0
  88. package/dist/system/types/index.js +22 -0
  89. package/dist/system/types/plugin.d.ts +113 -0
  90. package/dist/system/types/plugin.d.ts.map +1 -0
  91. package/dist/system/types/plugin.js +6 -0
  92. package/dist/system/webhook.zod.d.ts +106 -0
  93. package/dist/system/webhook.zod.d.ts.map +1 -0
  94. package/dist/system/webhook.zod.js +56 -0
  95. package/dist/ui/action.zod.d.ts +155 -0
  96. package/dist/ui/action.zod.d.ts.map +1 -0
  97. package/dist/ui/action.zod.js +54 -0
  98. package/dist/ui/app.zod.d.ts +405 -0
  99. package/dist/ui/app.zod.d.ts.map +1 -0
  100. package/dist/ui/app.zod.js +138 -0
  101. package/dist/ui/dashboard.zod.d.ts +213 -0
  102. package/dist/ui/dashboard.zod.d.ts.map +1 -0
  103. package/dist/ui/dashboard.zod.js +72 -0
  104. package/dist/ui/page.zod.d.ts +187 -0
  105. package/dist/ui/page.zod.d.ts.map +1 -0
  106. package/dist/ui/page.zod.js +48 -0
  107. package/dist/ui/report.zod.d.ts +233 -0
  108. package/dist/ui/report.zod.d.ts.map +1 -0
  109. package/dist/ui/report.zod.js +74 -0
  110. package/dist/ui/theme.zod.d.ts +1221 -0
  111. package/dist/ui/theme.zod.d.ts.map +1 -0
  112. package/dist/ui/theme.zod.js +202 -0
  113. package/dist/ui/view.zod.d.ts +887 -0
  114. package/dist/ui/view.zod.d.ts.map +1 -0
  115. package/dist/ui/view.zod.js +83 -0
  116. package/dist/ui/widget.zod.d.ts +350 -0
  117. package/dist/ui/widget.zod.d.ts.map +1 -0
  118. package/dist/ui/widget.zod.js +66 -0
  119. package/json-schema/AIKnowledge.json +30 -0
  120. package/json-schema/AIModelConfig.json +41 -0
  121. package/json-schema/AITool.json +33 -0
  122. package/json-schema/Action.json +162 -0
  123. package/json-schema/ActionParam.json +82 -0
  124. package/json-schema/Address.json +40 -0
  125. package/json-schema/Agent.json +140 -0
  126. package/json-schema/AggregationFunction.json +19 -0
  127. package/json-schema/AggregationNode.json +42 -0
  128. package/json-schema/Animation.json +56 -0
  129. package/json-schema/ApiCapabilities.json +28 -0
  130. package/json-schema/ApiEndpoint.json +162 -0
  131. package/json-schema/ApiError.json +27 -0
  132. package/json-schema/ApiMapping.json +28 -0
  133. package/json-schema/ApiRoutes.json +41 -0
  134. package/json-schema/App.json +297 -0
  135. package/json-schema/AppBranding.json +24 -0
  136. package/json-schema/AsyncValidation.json +70 -0
  137. package/json-schema/AuditPolicy.json +31 -0
  138. package/json-schema/AuthProtocol.json +17 -0
  139. package/json-schema/AuthProvider.json +171 -0
  140. package/json-schema/BaseResponse.json +63 -0
  141. package/json-schema/BorderRadius.json +44 -0
  142. package/json-schema/Breakpoints.json +36 -0
  143. package/json-schema/BulkRequest.json +29 -0
  144. package/json-schema/BulkResponse.json +108 -0
  145. package/json-schema/CalendarConfig.json +28 -0
  146. package/json-schema/ChartType.json +19 -0
  147. package/json-schema/ColorPalette.json +83 -0
  148. package/json-schema/ConditionalValidation.json +793 -0
  149. package/json-schema/CreateRequest.json +20 -0
  150. package/json-schema/CrossFieldValidation.json +56 -0
  151. package/json-schema/CustomValidator.json +57 -0
  152. package/json-schema/Dashboard.json +117 -0
  153. package/json-schema/DashboardNavItem.json +42 -0
  154. package/json-schema/DashboardWidget.json +89 -0
  155. package/json-schema/Dataset.json +63 -0
  156. package/json-schema/DatasetMode.json +16 -0
  157. package/json-schema/Datasource.json +75 -0
  158. package/json-schema/DatasourceCapabilities.json +36 -0
  159. package/json-schema/DeleteResponse.json +68 -0
  160. package/json-schema/Discovery.json +114 -0
  161. package/json-schema/DriverCapabilities.json +39 -0
  162. package/json-schema/DriverDefinition.json +66 -0
  163. package/json-schema/DriverInterface.json +58 -0
  164. package/json-schema/DriverOptions.json +23 -0
  165. package/json-schema/DriverType.json +10 -0
  166. package/json-schema/EmailAlertAction.json +37 -0
  167. package/json-schema/ExportRequest.json +786 -0
  168. package/json-schema/Feature.json +51 -0
  169. package/json-schema/Field.json +290 -0
  170. package/json-schema/FieldMapping.json +83 -0
  171. package/json-schema/FieldNode.json +32 -0
  172. package/json-schema/FieldPermission.json +22 -0
  173. package/json-schema/FieldType.json +42 -0
  174. package/json-schema/FieldUpdateAction.json +32 -0
  175. package/json-schema/FieldWidgetProps.json +327 -0
  176. package/json-schema/FilterNode.json +52 -0
  177. package/json-schema/FilterOperator.json +26 -0
  178. package/json-schema/Flow.json +186 -0
  179. package/json-schema/FlowEdge.json +37 -0
  180. package/json-schema/FlowNode.json +65 -0
  181. package/json-schema/FlowNodeAction.json +24 -0
  182. package/json-schema/FlowVariable.json +34 -0
  183. package/json-schema/FormSection.json +42 -0
  184. package/json-schema/FormView.json +99 -0
  185. package/json-schema/FormatValidation.json +59 -0
  186. package/json-schema/GanttConfig.json +32 -0
  187. package/json-schema/GroupNavItem.json +42 -0
  188. package/json-schema/HttpMethod.json +16 -0
  189. package/json-schema/I18nContext.json +12 -0
  190. package/json-schema/Index.json +30 -0
  191. package/json-schema/JoinNode.json +455 -0
  192. package/json-schema/JoinType.json +15 -0
  193. package/json-schema/KanbanConfig.json +31 -0
  194. package/json-schema/LDAPConfig.json +39 -0
  195. package/json-schema/License.json +57 -0
  196. package/json-schema/ListRecordResponse.json +103 -0
  197. package/json-schema/ListView.json +153 -0
  198. package/json-schema/Locale.json +10 -0
  199. package/json-schema/LocationCoordinates.json +36 -0
  200. package/json-schema/Logger.json +25 -0
  201. package/json-schema/LogicOperator.json +14 -0
  202. package/json-schema/Manifest.json +315 -0
  203. package/json-schema/Mapping.json +598 -0
  204. package/json-schema/MenuItem.json +28 -0
  205. package/json-schema/MetricType.json +14 -0
  206. package/json-schema/ModificationResult.json +46 -0
  207. package/json-schema/NavigationItem.json +214 -0
  208. package/json-schema/NetworkPolicy.json +31 -0
  209. package/json-schema/OIDCConfig.json +46 -0
  210. package/json-schema/OWDModel.json +14 -0
  211. package/json-schema/Object.json +428 -0
  212. package/json-schema/ObjectCapabilities.json +62 -0
  213. package/json-schema/ObjectNavItem.json +46 -0
  214. package/json-schema/ObjectPermission.json +42 -0
  215. package/json-schema/ObjectQLClient.json +12 -0
  216. package/json-schema/Page.json +117 -0
  217. package/json-schema/PageComponent.json +36 -0
  218. package/json-schema/PageNavItem.json +47 -0
  219. package/json-schema/PageRegion.json +63 -0
  220. package/json-schema/PasswordPolicy.json +41 -0
  221. package/json-schema/PermissionSet.json +96 -0
  222. package/json-schema/Plan.json +53 -0
  223. package/json-schema/Plugin.json +20 -0
  224. package/json-schema/PluginContext.json +91 -0
  225. package/json-schema/PluginLifecycle.json +11 -0
  226. package/json-schema/Policy.json +138 -0
  227. package/json-schema/Query.json +456 -0
  228. package/json-schema/RateLimit.json +26 -0
  229. package/json-schema/RecordData.json +11 -0
  230. package/json-schema/Report.json +219 -0
  231. package/json-schema/ReportChart.json +45 -0
  232. package/json-schema/ReportColumn.json +35 -0
  233. package/json-schema/ReportGrouping.json +38 -0
  234. package/json-schema/ReportType.json +15 -0
  235. package/json-schema/Role.json +32 -0
  236. package/json-schema/Router.json +12 -0
  237. package/json-schema/SAMLConfig.json +44 -0
  238. package/json-schema/Scheduler.json +12 -0
  239. package/json-schema/ScopedStorage.json +12 -0
  240. package/json-schema/ScriptValidation.json +48 -0
  241. package/json-schema/SelectOption.json +32 -0
  242. package/json-schema/SessionPolicy.json +27 -0
  243. package/json-schema/Shadow.json +44 -0
  244. package/json-schema/SharingLevel.json +13 -0
  245. package/json-schema/SharingRule.json +58 -0
  246. package/json-schema/SharingRuleType.json +15 -0
  247. package/json-schema/SingleRecordResponse.json +69 -0
  248. package/json-schema/SortNode.json +26 -0
  249. package/json-schema/Spacing.json +64 -0
  250. package/json-schema/StateMachineValidation.json +59 -0
  251. package/json-schema/SystemAPI.json +12 -0
  252. package/json-schema/Territory.json +77 -0
  253. package/json-schema/TerritoryModel.json +34 -0
  254. package/json-schema/TerritoryType.json +15 -0
  255. package/json-schema/Theme.json +543 -0
  256. package/json-schema/ThemeMode.json +14 -0
  257. package/json-schema/TransformType.json +18 -0
  258. package/json-schema/TranslationBundle.json +78 -0
  259. package/json-schema/TranslationData.json +75 -0
  260. package/json-schema/Trigger.json +73 -0
  261. package/json-schema/TriggerAction.json +14 -0
  262. package/json-schema/TriggerContext.json +61 -0
  263. package/json-schema/TriggerTiming.json +13 -0
  264. package/json-schema/Typography.json +142 -0
  265. package/json-schema/UniquenessValidation.json +59 -0
  266. package/json-schema/UpdateRequest.json +20 -0
  267. package/json-schema/UrlNavItem.json +51 -0
  268. package/json-schema/ValidationRule.json +794 -0
  269. package/json-schema/View.json +500 -0
  270. package/json-schema/Webhook.json +88 -0
  271. package/json-schema/WebhookReceiver.json +66 -0
  272. package/json-schema/WebhookTriggerType.json +16 -0
  273. package/json-schema/WindowFunction.json +24 -0
  274. package/json-schema/WindowFunctionNode.json +104 -0
  275. package/json-schema/WindowSpec.json +65 -0
  276. package/json-schema/WorkflowAction.json +84 -0
  277. package/json-schema/WorkflowRule.json +128 -0
  278. package/json-schema/WorkflowTriggerType.json +16 -0
  279. package/json-schema/ZIndex.json +44 -0
  280. package/package.json +34 -20
  281. package/dist/examples.d.ts +0 -28
  282. package/dist/examples.d.ts.map +0 -1
  283. package/dist/examples.js +0 -250
  284. package/dist/types/index.d.ts +0 -9
  285. package/dist/types/index.d.ts.map +0 -1
  286. package/dist/types/index.js +0 -8
  287. package/dist/types/meta/field-type.d.ts +0 -54
  288. package/dist/types/meta/field-type.d.ts.map +0 -1
  289. package/dist/types/meta/field-type.js +0 -42
  290. package/dist/types/meta/index.d.ts +0 -13
  291. package/dist/types/meta/index.d.ts.map +0 -1
  292. package/dist/types/meta/index.js +0 -12
  293. package/dist/types/meta/object-entity.d.ts +0 -246
  294. package/dist/types/meta/object-entity.d.ts.map +0 -1
  295. package/dist/types/meta/object-entity.js +0 -9
  296. package/dist/types/meta/object-field.d.ts +0 -199
  297. package/dist/types/meta/object-field.d.ts.map +0 -1
  298. package/dist/types/meta/object-field.js +0 -9
  299. package/dist/types/meta/object-view.d.ts +0 -430
  300. package/dist/types/meta/object-view.d.ts.map +0 -1
  301. package/dist/types/meta/object-view.js +0 -9
  302. package/src/examples.ts +0 -257
  303. package/src/index.ts +0 -10
  304. package/src/types/index.ts +0 -9
  305. package/src/types/meta/field-type.ts +0 -91
  306. package/src/types/meta/index.ts +0 -13
  307. package/src/types/meta/object-entity.ts +0 -265
  308. package/src/types/meta/object-field.ts +0 -218
  309. package/src/types/meta/object-view.ts +0 -475
@@ -0,0 +1,1808 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Field Type Enum
4
+ */
5
+ export declare const FieldType: z.ZodEnum<["text", "textarea", "email", "url", "phone", "password", "markdown", "html", "richtext", "number", "currency", "percent", "date", "datetime", "time", "boolean", "select", "lookup", "master_detail", "image", "file", "avatar", "formula", "summary", "autonumber", "location", "address", "code", "color", "rating", "signature"]>;
6
+ export type FieldType = z.infer<typeof FieldType>;
7
+ /**
8
+ * Select Option Schema
9
+ */
10
+ export declare const SelectOptionSchema: z.ZodObject<{
11
+ label: z.ZodString;
12
+ value: z.ZodString;
13
+ color: z.ZodOptional<z.ZodString>;
14
+ default: z.ZodOptional<z.ZodBoolean>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ value: string;
17
+ label: string;
18
+ color?: string | undefined;
19
+ default?: boolean | undefined;
20
+ }, {
21
+ value: string;
22
+ label: string;
23
+ color?: string | undefined;
24
+ default?: boolean | undefined;
25
+ }>;
26
+ /**
27
+ * Location Coordinates Schema
28
+ * GPS coordinates for location field type
29
+ */
30
+ export declare const LocationCoordinatesSchema: z.ZodObject<{
31
+ latitude: z.ZodNumber;
32
+ longitude: z.ZodNumber;
33
+ altitude: z.ZodOptional<z.ZodNumber>;
34
+ accuracy: z.ZodOptional<z.ZodNumber>;
35
+ }, "strip", z.ZodTypeAny, {
36
+ latitude: number;
37
+ longitude: number;
38
+ altitude?: number | undefined;
39
+ accuracy?: number | undefined;
40
+ }, {
41
+ latitude: number;
42
+ longitude: number;
43
+ altitude?: number | undefined;
44
+ accuracy?: number | undefined;
45
+ }>;
46
+ /**
47
+ * Address Schema
48
+ * Structured address for address field type
49
+ */
50
+ export declare const AddressSchema: z.ZodObject<{
51
+ street: z.ZodOptional<z.ZodString>;
52
+ city: z.ZodOptional<z.ZodString>;
53
+ state: z.ZodOptional<z.ZodString>;
54
+ postalCode: z.ZodOptional<z.ZodString>;
55
+ country: z.ZodOptional<z.ZodString>;
56
+ countryCode: z.ZodOptional<z.ZodString>;
57
+ formatted: z.ZodOptional<z.ZodString>;
58
+ }, "strip", z.ZodTypeAny, {
59
+ street?: string | undefined;
60
+ city?: string | undefined;
61
+ state?: string | undefined;
62
+ postalCode?: string | undefined;
63
+ country?: string | undefined;
64
+ countryCode?: string | undefined;
65
+ formatted?: string | undefined;
66
+ }, {
67
+ street?: string | undefined;
68
+ city?: string | undefined;
69
+ state?: string | undefined;
70
+ postalCode?: string | undefined;
71
+ country?: string | undefined;
72
+ countryCode?: string | undefined;
73
+ formatted?: string | undefined;
74
+ }>;
75
+ /**
76
+ * Field Schema - Best Practice Enterprise Pattern
77
+ */
78
+ export declare const FieldSchema: z.ZodObject<{
79
+ /** Identity */
80
+ name: z.ZodOptional<z.ZodString>;
81
+ label: z.ZodOptional<z.ZodString>;
82
+ 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", "address", "code", "color", "rating", "signature"]>;
83
+ description: z.ZodOptional<z.ZodString>;
84
+ format: z.ZodOptional<z.ZodString>;
85
+ /** Database Constraints */
86
+ required: z.ZodDefault<z.ZodBoolean>;
87
+ searchable: z.ZodDefault<z.ZodBoolean>;
88
+ multiple: z.ZodDefault<z.ZodBoolean>;
89
+ unique: z.ZodDefault<z.ZodBoolean>;
90
+ defaultValue: z.ZodOptional<z.ZodAny>;
91
+ /** Text/String Constraints */
92
+ maxLength: z.ZodOptional<z.ZodNumber>;
93
+ minLength: z.ZodOptional<z.ZodNumber>;
94
+ /** Number Constraints */
95
+ precision: z.ZodOptional<z.ZodNumber>;
96
+ scale: z.ZodOptional<z.ZodNumber>;
97
+ min: z.ZodOptional<z.ZodNumber>;
98
+ max: z.ZodOptional<z.ZodNumber>;
99
+ /** Selection Options */
100
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
101
+ label: z.ZodString;
102
+ value: z.ZodString;
103
+ color: z.ZodOptional<z.ZodString>;
104
+ default: z.ZodOptional<z.ZodBoolean>;
105
+ }, "strip", z.ZodTypeAny, {
106
+ value: string;
107
+ label: string;
108
+ color?: string | undefined;
109
+ default?: boolean | undefined;
110
+ }, {
111
+ value: string;
112
+ label: string;
113
+ color?: string | undefined;
114
+ default?: boolean | undefined;
115
+ }>, "many">>;
116
+ /** Relationship Config */
117
+ reference: z.ZodOptional<z.ZodString>;
118
+ referenceFilters: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
119
+ writeRequiresMasterRead: z.ZodOptional<z.ZodBoolean>;
120
+ deleteBehavior: z.ZodDefault<z.ZodOptional<z.ZodEnum<["set_null", "cascade", "restrict"]>>>;
121
+ /** Calculation */
122
+ expression: z.ZodOptional<z.ZodString>;
123
+ formula: z.ZodOptional<z.ZodString>;
124
+ summaryOperations: z.ZodOptional<z.ZodObject<{
125
+ object: z.ZodString;
126
+ field: z.ZodString;
127
+ function: z.ZodEnum<["count", "sum", "min", "max", "avg"]>;
128
+ }, "strip", z.ZodTypeAny, {
129
+ object: string;
130
+ function: "min" | "max" | "count" | "sum" | "avg";
131
+ field: string;
132
+ }, {
133
+ object: string;
134
+ function: "min" | "max" | "count" | "sum" | "avg";
135
+ field: string;
136
+ }>>;
137
+ /** Enhanced Field Type Configurations */
138
+ language: z.ZodOptional<z.ZodString>;
139
+ theme: z.ZodOptional<z.ZodString>;
140
+ lineNumbers: z.ZodOptional<z.ZodBoolean>;
141
+ maxRating: z.ZodOptional<z.ZodNumber>;
142
+ allowHalf: z.ZodOptional<z.ZodBoolean>;
143
+ displayMap: z.ZodOptional<z.ZodBoolean>;
144
+ allowGeocoding: z.ZodOptional<z.ZodBoolean>;
145
+ addressFormat: z.ZodOptional<z.ZodEnum<["us", "uk", "international"]>>;
146
+ colorFormat: z.ZodOptional<z.ZodEnum<["hex", "rgb", "rgba", "hsl"]>>;
147
+ allowAlpha: z.ZodOptional<z.ZodBoolean>;
148
+ presetColors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
149
+ /** Security & Visibility */
150
+ hidden: z.ZodDefault<z.ZodBoolean>;
151
+ readonly: z.ZodDefault<z.ZodBoolean>;
152
+ encryption: z.ZodDefault<z.ZodBoolean>;
153
+ /** Indexing */
154
+ index: z.ZodDefault<z.ZodBoolean>;
155
+ externalId: z.ZodDefault<z.ZodBoolean>;
156
+ }, "strip", z.ZodTypeAny, {
157
+ type: "number" | "boolean" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "date" | "datetime" | "time" | "select" | "lookup" | "master_detail" | "image" | "file" | "avatar" | "formula" | "summary" | "autonumber" | "location" | "address" | "code" | "color" | "rating" | "signature";
158
+ required: boolean;
159
+ searchable: boolean;
160
+ multiple: boolean;
161
+ unique: boolean;
162
+ deleteBehavior: "set_null" | "cascade" | "restrict";
163
+ hidden: boolean;
164
+ readonly: boolean;
165
+ encryption: boolean;
166
+ index: boolean;
167
+ externalId: boolean;
168
+ formula?: string | undefined;
169
+ options?: {
170
+ value: string;
171
+ label: string;
172
+ color?: string | undefined;
173
+ default?: boolean | undefined;
174
+ }[] | undefined;
175
+ label?: string | undefined;
176
+ name?: string | undefined;
177
+ description?: string | undefined;
178
+ format?: string | undefined;
179
+ defaultValue?: any;
180
+ maxLength?: number | undefined;
181
+ minLength?: number | undefined;
182
+ precision?: number | undefined;
183
+ scale?: number | undefined;
184
+ min?: number | undefined;
185
+ max?: number | undefined;
186
+ reference?: string | undefined;
187
+ referenceFilters?: string[] | undefined;
188
+ writeRequiresMasterRead?: boolean | undefined;
189
+ expression?: string | undefined;
190
+ summaryOperations?: {
191
+ object: string;
192
+ function: "min" | "max" | "count" | "sum" | "avg";
193
+ field: string;
194
+ } | undefined;
195
+ language?: string | undefined;
196
+ theme?: string | undefined;
197
+ lineNumbers?: boolean | undefined;
198
+ maxRating?: number | undefined;
199
+ allowHalf?: boolean | undefined;
200
+ displayMap?: boolean | undefined;
201
+ allowGeocoding?: boolean | undefined;
202
+ addressFormat?: "us" | "uk" | "international" | undefined;
203
+ colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
204
+ allowAlpha?: boolean | undefined;
205
+ presetColors?: string[] | undefined;
206
+ }, {
207
+ type: "number" | "boolean" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "date" | "datetime" | "time" | "select" | "lookup" | "master_detail" | "image" | "file" | "avatar" | "formula" | "summary" | "autonumber" | "location" | "address" | "code" | "color" | "rating" | "signature";
208
+ formula?: string | undefined;
209
+ options?: {
210
+ value: string;
211
+ label: string;
212
+ color?: string | undefined;
213
+ default?: boolean | undefined;
214
+ }[] | undefined;
215
+ label?: string | undefined;
216
+ name?: string | undefined;
217
+ description?: string | undefined;
218
+ format?: string | undefined;
219
+ required?: boolean | undefined;
220
+ searchable?: boolean | undefined;
221
+ multiple?: boolean | undefined;
222
+ unique?: boolean | undefined;
223
+ defaultValue?: any;
224
+ maxLength?: number | undefined;
225
+ minLength?: number | undefined;
226
+ precision?: number | undefined;
227
+ scale?: number | undefined;
228
+ min?: number | undefined;
229
+ max?: number | undefined;
230
+ reference?: string | undefined;
231
+ referenceFilters?: string[] | undefined;
232
+ writeRequiresMasterRead?: boolean | undefined;
233
+ deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
234
+ expression?: string | undefined;
235
+ summaryOperations?: {
236
+ object: string;
237
+ function: "min" | "max" | "count" | "sum" | "avg";
238
+ field: string;
239
+ } | undefined;
240
+ language?: string | undefined;
241
+ theme?: string | undefined;
242
+ lineNumbers?: boolean | undefined;
243
+ maxRating?: number | undefined;
244
+ allowHalf?: boolean | undefined;
245
+ displayMap?: boolean | undefined;
246
+ allowGeocoding?: boolean | undefined;
247
+ addressFormat?: "us" | "uk" | "international" | undefined;
248
+ colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
249
+ allowAlpha?: boolean | undefined;
250
+ presetColors?: string[] | undefined;
251
+ hidden?: boolean | undefined;
252
+ readonly?: boolean | undefined;
253
+ encryption?: boolean | undefined;
254
+ index?: boolean | undefined;
255
+ externalId?: boolean | undefined;
256
+ }>;
257
+ export type Field = z.infer<typeof FieldSchema>;
258
+ export type SelectOption = z.infer<typeof SelectOptionSchema>;
259
+ export type LocationCoordinates = z.infer<typeof LocationCoordinatesSchema>;
260
+ export type Address = z.infer<typeof AddressSchema>;
261
+ /**
262
+ * Field Factory Helper
263
+ */
264
+ export type FieldInput = Omit<Partial<Field>, 'type'>;
265
+ export declare const Field: {
266
+ text: (config?: FieldInput) => {
267
+ readonly formula?: string | undefined;
268
+ readonly options?: {
269
+ value: string;
270
+ label: string;
271
+ color?: string | undefined;
272
+ default?: boolean | undefined;
273
+ }[] | undefined;
274
+ readonly label?: string | undefined;
275
+ readonly name?: string | undefined;
276
+ readonly description?: string | undefined;
277
+ readonly format?: string | undefined;
278
+ readonly required?: boolean | undefined;
279
+ readonly searchable?: boolean | undefined;
280
+ readonly multiple?: boolean | undefined;
281
+ readonly unique?: boolean | undefined;
282
+ readonly defaultValue?: any;
283
+ readonly maxLength?: number | undefined;
284
+ readonly minLength?: number | undefined;
285
+ readonly precision?: number | undefined;
286
+ readonly scale?: number | undefined;
287
+ readonly min?: number | undefined;
288
+ readonly max?: number | undefined;
289
+ readonly reference?: string | undefined;
290
+ readonly referenceFilters?: string[] | undefined;
291
+ readonly writeRequiresMasterRead?: boolean | undefined;
292
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
293
+ readonly expression?: string | undefined;
294
+ readonly summaryOperations?: {
295
+ object: string;
296
+ function: "min" | "max" | "count" | "sum" | "avg";
297
+ field: string;
298
+ } | undefined;
299
+ readonly language?: string | undefined;
300
+ readonly theme?: string | undefined;
301
+ readonly lineNumbers?: boolean | undefined;
302
+ readonly maxRating?: number | undefined;
303
+ readonly allowHalf?: boolean | undefined;
304
+ readonly displayMap?: boolean | undefined;
305
+ readonly allowGeocoding?: boolean | undefined;
306
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
307
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
308
+ readonly allowAlpha?: boolean | undefined;
309
+ readonly presetColors?: string[] | undefined;
310
+ readonly hidden?: boolean | undefined;
311
+ readonly readonly?: boolean | undefined;
312
+ readonly encryption?: boolean | undefined;
313
+ readonly index?: boolean | undefined;
314
+ readonly externalId?: boolean | undefined;
315
+ readonly type: "text";
316
+ };
317
+ textarea: (config?: FieldInput) => {
318
+ readonly formula?: string | undefined;
319
+ readonly options?: {
320
+ value: string;
321
+ label: string;
322
+ color?: string | undefined;
323
+ default?: boolean | undefined;
324
+ }[] | undefined;
325
+ readonly label?: string | undefined;
326
+ readonly name?: string | undefined;
327
+ readonly description?: string | undefined;
328
+ readonly format?: string | undefined;
329
+ readonly required?: boolean | undefined;
330
+ readonly searchable?: boolean | undefined;
331
+ readonly multiple?: boolean | undefined;
332
+ readonly unique?: boolean | undefined;
333
+ readonly defaultValue?: any;
334
+ readonly maxLength?: number | undefined;
335
+ readonly minLength?: number | undefined;
336
+ readonly precision?: number | undefined;
337
+ readonly scale?: number | undefined;
338
+ readonly min?: number | undefined;
339
+ readonly max?: number | undefined;
340
+ readonly reference?: string | undefined;
341
+ readonly referenceFilters?: string[] | undefined;
342
+ readonly writeRequiresMasterRead?: boolean | undefined;
343
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
344
+ readonly expression?: string | undefined;
345
+ readonly summaryOperations?: {
346
+ object: string;
347
+ function: "min" | "max" | "count" | "sum" | "avg";
348
+ field: string;
349
+ } | undefined;
350
+ readonly language?: string | undefined;
351
+ readonly theme?: string | undefined;
352
+ readonly lineNumbers?: boolean | undefined;
353
+ readonly maxRating?: number | undefined;
354
+ readonly allowHalf?: boolean | undefined;
355
+ readonly displayMap?: boolean | undefined;
356
+ readonly allowGeocoding?: boolean | undefined;
357
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
358
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
359
+ readonly allowAlpha?: boolean | undefined;
360
+ readonly presetColors?: string[] | undefined;
361
+ readonly hidden?: boolean | undefined;
362
+ readonly readonly?: boolean | undefined;
363
+ readonly encryption?: boolean | undefined;
364
+ readonly index?: boolean | undefined;
365
+ readonly externalId?: boolean | undefined;
366
+ readonly type: "textarea";
367
+ };
368
+ number: (config?: FieldInput) => {
369
+ readonly formula?: string | undefined;
370
+ readonly options?: {
371
+ value: string;
372
+ label: string;
373
+ color?: string | undefined;
374
+ default?: boolean | undefined;
375
+ }[] | undefined;
376
+ readonly label?: string | undefined;
377
+ readonly name?: string | undefined;
378
+ readonly description?: string | undefined;
379
+ readonly format?: string | undefined;
380
+ readonly required?: boolean | undefined;
381
+ readonly searchable?: boolean | undefined;
382
+ readonly multiple?: boolean | undefined;
383
+ readonly unique?: boolean | undefined;
384
+ readonly defaultValue?: any;
385
+ readonly maxLength?: number | undefined;
386
+ readonly minLength?: number | undefined;
387
+ readonly precision?: number | undefined;
388
+ readonly scale?: number | undefined;
389
+ readonly min?: number | undefined;
390
+ readonly max?: number | undefined;
391
+ readonly reference?: string | undefined;
392
+ readonly referenceFilters?: string[] | undefined;
393
+ readonly writeRequiresMasterRead?: boolean | undefined;
394
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
395
+ readonly expression?: string | undefined;
396
+ readonly summaryOperations?: {
397
+ object: string;
398
+ function: "min" | "max" | "count" | "sum" | "avg";
399
+ field: string;
400
+ } | undefined;
401
+ readonly language?: string | undefined;
402
+ readonly theme?: string | undefined;
403
+ readonly lineNumbers?: boolean | undefined;
404
+ readonly maxRating?: number | undefined;
405
+ readonly allowHalf?: boolean | undefined;
406
+ readonly displayMap?: boolean | undefined;
407
+ readonly allowGeocoding?: boolean | undefined;
408
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
409
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
410
+ readonly allowAlpha?: boolean | undefined;
411
+ readonly presetColors?: string[] | undefined;
412
+ readonly hidden?: boolean | undefined;
413
+ readonly readonly?: boolean | undefined;
414
+ readonly encryption?: boolean | undefined;
415
+ readonly index?: boolean | undefined;
416
+ readonly externalId?: boolean | undefined;
417
+ readonly type: "number";
418
+ };
419
+ boolean: (config?: FieldInput) => {
420
+ readonly formula?: string | undefined;
421
+ readonly options?: {
422
+ value: string;
423
+ label: string;
424
+ color?: string | undefined;
425
+ default?: boolean | undefined;
426
+ }[] | undefined;
427
+ readonly label?: string | undefined;
428
+ readonly name?: string | undefined;
429
+ readonly description?: string | undefined;
430
+ readonly format?: string | undefined;
431
+ readonly required?: boolean | undefined;
432
+ readonly searchable?: boolean | undefined;
433
+ readonly multiple?: boolean | undefined;
434
+ readonly unique?: boolean | undefined;
435
+ readonly defaultValue?: any;
436
+ readonly maxLength?: number | undefined;
437
+ readonly minLength?: number | undefined;
438
+ readonly precision?: number | undefined;
439
+ readonly scale?: number | undefined;
440
+ readonly min?: number | undefined;
441
+ readonly max?: number | undefined;
442
+ readonly reference?: string | undefined;
443
+ readonly referenceFilters?: string[] | undefined;
444
+ readonly writeRequiresMasterRead?: boolean | undefined;
445
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
446
+ readonly expression?: string | undefined;
447
+ readonly summaryOperations?: {
448
+ object: string;
449
+ function: "min" | "max" | "count" | "sum" | "avg";
450
+ field: string;
451
+ } | undefined;
452
+ readonly language?: string | undefined;
453
+ readonly theme?: string | undefined;
454
+ readonly lineNumbers?: boolean | undefined;
455
+ readonly maxRating?: number | undefined;
456
+ readonly allowHalf?: boolean | undefined;
457
+ readonly displayMap?: boolean | undefined;
458
+ readonly allowGeocoding?: boolean | undefined;
459
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
460
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
461
+ readonly allowAlpha?: boolean | undefined;
462
+ readonly presetColors?: string[] | undefined;
463
+ readonly hidden?: boolean | undefined;
464
+ readonly readonly?: boolean | undefined;
465
+ readonly encryption?: boolean | undefined;
466
+ readonly index?: boolean | undefined;
467
+ readonly externalId?: boolean | undefined;
468
+ readonly type: "boolean";
469
+ };
470
+ date: (config?: FieldInput) => {
471
+ readonly formula?: string | undefined;
472
+ readonly options?: {
473
+ value: string;
474
+ label: string;
475
+ color?: string | undefined;
476
+ default?: boolean | undefined;
477
+ }[] | undefined;
478
+ readonly label?: string | undefined;
479
+ readonly name?: string | undefined;
480
+ readonly description?: string | undefined;
481
+ readonly format?: string | undefined;
482
+ readonly required?: boolean | undefined;
483
+ readonly searchable?: boolean | undefined;
484
+ readonly multiple?: boolean | undefined;
485
+ readonly unique?: boolean | undefined;
486
+ readonly defaultValue?: any;
487
+ readonly maxLength?: number | undefined;
488
+ readonly minLength?: number | undefined;
489
+ readonly precision?: number | undefined;
490
+ readonly scale?: number | undefined;
491
+ readonly min?: number | undefined;
492
+ readonly max?: number | undefined;
493
+ readonly reference?: string | undefined;
494
+ readonly referenceFilters?: string[] | undefined;
495
+ readonly writeRequiresMasterRead?: boolean | undefined;
496
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
497
+ readonly expression?: string | undefined;
498
+ readonly summaryOperations?: {
499
+ object: string;
500
+ function: "min" | "max" | "count" | "sum" | "avg";
501
+ field: string;
502
+ } | undefined;
503
+ readonly language?: string | undefined;
504
+ readonly theme?: string | undefined;
505
+ readonly lineNumbers?: boolean | undefined;
506
+ readonly maxRating?: number | undefined;
507
+ readonly allowHalf?: boolean | undefined;
508
+ readonly displayMap?: boolean | undefined;
509
+ readonly allowGeocoding?: boolean | undefined;
510
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
511
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
512
+ readonly allowAlpha?: boolean | undefined;
513
+ readonly presetColors?: string[] | undefined;
514
+ readonly hidden?: boolean | undefined;
515
+ readonly readonly?: boolean | undefined;
516
+ readonly encryption?: boolean | undefined;
517
+ readonly index?: boolean | undefined;
518
+ readonly externalId?: boolean | undefined;
519
+ readonly type: "date";
520
+ };
521
+ datetime: (config?: FieldInput) => {
522
+ readonly formula?: string | undefined;
523
+ readonly options?: {
524
+ value: string;
525
+ label: string;
526
+ color?: string | undefined;
527
+ default?: boolean | undefined;
528
+ }[] | undefined;
529
+ readonly label?: string | undefined;
530
+ readonly name?: string | undefined;
531
+ readonly description?: string | undefined;
532
+ readonly format?: string | undefined;
533
+ readonly required?: boolean | undefined;
534
+ readonly searchable?: boolean | undefined;
535
+ readonly multiple?: boolean | undefined;
536
+ readonly unique?: boolean | undefined;
537
+ readonly defaultValue?: any;
538
+ readonly maxLength?: number | undefined;
539
+ readonly minLength?: number | undefined;
540
+ readonly precision?: number | undefined;
541
+ readonly scale?: number | undefined;
542
+ readonly min?: number | undefined;
543
+ readonly max?: number | undefined;
544
+ readonly reference?: string | undefined;
545
+ readonly referenceFilters?: string[] | undefined;
546
+ readonly writeRequiresMasterRead?: boolean | undefined;
547
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
548
+ readonly expression?: string | undefined;
549
+ readonly summaryOperations?: {
550
+ object: string;
551
+ function: "min" | "max" | "count" | "sum" | "avg";
552
+ field: string;
553
+ } | undefined;
554
+ readonly language?: string | undefined;
555
+ readonly theme?: string | undefined;
556
+ readonly lineNumbers?: boolean | undefined;
557
+ readonly maxRating?: number | undefined;
558
+ readonly allowHalf?: boolean | undefined;
559
+ readonly displayMap?: boolean | undefined;
560
+ readonly allowGeocoding?: boolean | undefined;
561
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
562
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
563
+ readonly allowAlpha?: boolean | undefined;
564
+ readonly presetColors?: string[] | undefined;
565
+ readonly hidden?: boolean | undefined;
566
+ readonly readonly?: boolean | undefined;
567
+ readonly encryption?: boolean | undefined;
568
+ readonly index?: boolean | undefined;
569
+ readonly externalId?: boolean | undefined;
570
+ readonly type: "datetime";
571
+ };
572
+ currency: (config?: FieldInput) => {
573
+ readonly formula?: string | undefined;
574
+ readonly options?: {
575
+ value: string;
576
+ label: string;
577
+ color?: string | undefined;
578
+ default?: boolean | undefined;
579
+ }[] | undefined;
580
+ readonly label?: string | undefined;
581
+ readonly name?: string | undefined;
582
+ readonly description?: string | undefined;
583
+ readonly format?: string | undefined;
584
+ readonly required?: boolean | undefined;
585
+ readonly searchable?: boolean | undefined;
586
+ readonly multiple?: boolean | undefined;
587
+ readonly unique?: boolean | undefined;
588
+ readonly defaultValue?: any;
589
+ readonly maxLength?: number | undefined;
590
+ readonly minLength?: number | undefined;
591
+ readonly precision?: number | undefined;
592
+ readonly scale?: number | undefined;
593
+ readonly min?: number | undefined;
594
+ readonly max?: number | undefined;
595
+ readonly reference?: string | undefined;
596
+ readonly referenceFilters?: string[] | undefined;
597
+ readonly writeRequiresMasterRead?: boolean | undefined;
598
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
599
+ readonly expression?: string | undefined;
600
+ readonly summaryOperations?: {
601
+ object: string;
602
+ function: "min" | "max" | "count" | "sum" | "avg";
603
+ field: string;
604
+ } | undefined;
605
+ readonly language?: string | undefined;
606
+ readonly theme?: string | undefined;
607
+ readonly lineNumbers?: boolean | undefined;
608
+ readonly maxRating?: number | undefined;
609
+ readonly allowHalf?: boolean | undefined;
610
+ readonly displayMap?: boolean | undefined;
611
+ readonly allowGeocoding?: boolean | undefined;
612
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
613
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
614
+ readonly allowAlpha?: boolean | undefined;
615
+ readonly presetColors?: string[] | undefined;
616
+ readonly hidden?: boolean | undefined;
617
+ readonly readonly?: boolean | undefined;
618
+ readonly encryption?: boolean | undefined;
619
+ readonly index?: boolean | undefined;
620
+ readonly externalId?: boolean | undefined;
621
+ readonly type: "currency";
622
+ };
623
+ percent: (config?: FieldInput) => {
624
+ readonly formula?: string | undefined;
625
+ readonly options?: {
626
+ value: string;
627
+ label: string;
628
+ color?: string | undefined;
629
+ default?: boolean | undefined;
630
+ }[] | undefined;
631
+ readonly label?: string | undefined;
632
+ readonly name?: string | undefined;
633
+ readonly description?: string | undefined;
634
+ readonly format?: string | undefined;
635
+ readonly required?: boolean | undefined;
636
+ readonly searchable?: boolean | undefined;
637
+ readonly multiple?: boolean | undefined;
638
+ readonly unique?: boolean | undefined;
639
+ readonly defaultValue?: any;
640
+ readonly maxLength?: number | undefined;
641
+ readonly minLength?: number | undefined;
642
+ readonly precision?: number | undefined;
643
+ readonly scale?: number | undefined;
644
+ readonly min?: number | undefined;
645
+ readonly max?: number | undefined;
646
+ readonly reference?: string | undefined;
647
+ readonly referenceFilters?: string[] | undefined;
648
+ readonly writeRequiresMasterRead?: boolean | undefined;
649
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
650
+ readonly expression?: string | undefined;
651
+ readonly summaryOperations?: {
652
+ object: string;
653
+ function: "min" | "max" | "count" | "sum" | "avg";
654
+ field: string;
655
+ } | undefined;
656
+ readonly language?: string | undefined;
657
+ readonly theme?: string | undefined;
658
+ readonly lineNumbers?: boolean | undefined;
659
+ readonly maxRating?: number | undefined;
660
+ readonly allowHalf?: boolean | undefined;
661
+ readonly displayMap?: boolean | undefined;
662
+ readonly allowGeocoding?: boolean | undefined;
663
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
664
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
665
+ readonly allowAlpha?: boolean | undefined;
666
+ readonly presetColors?: string[] | undefined;
667
+ readonly hidden?: boolean | undefined;
668
+ readonly readonly?: boolean | undefined;
669
+ readonly encryption?: boolean | undefined;
670
+ readonly index?: boolean | undefined;
671
+ readonly externalId?: boolean | undefined;
672
+ readonly type: "percent";
673
+ };
674
+ url: (config?: FieldInput) => {
675
+ readonly formula?: string | undefined;
676
+ readonly options?: {
677
+ value: string;
678
+ label: string;
679
+ color?: string | undefined;
680
+ default?: boolean | undefined;
681
+ }[] | undefined;
682
+ readonly label?: string | undefined;
683
+ readonly name?: string | undefined;
684
+ readonly description?: string | undefined;
685
+ readonly format?: string | undefined;
686
+ readonly required?: boolean | undefined;
687
+ readonly searchable?: boolean | undefined;
688
+ readonly multiple?: boolean | undefined;
689
+ readonly unique?: boolean | undefined;
690
+ readonly defaultValue?: any;
691
+ readonly maxLength?: number | undefined;
692
+ readonly minLength?: number | undefined;
693
+ readonly precision?: number | undefined;
694
+ readonly scale?: number | undefined;
695
+ readonly min?: number | undefined;
696
+ readonly max?: number | undefined;
697
+ readonly reference?: string | undefined;
698
+ readonly referenceFilters?: string[] | undefined;
699
+ readonly writeRequiresMasterRead?: boolean | undefined;
700
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
701
+ readonly expression?: string | undefined;
702
+ readonly summaryOperations?: {
703
+ object: string;
704
+ function: "min" | "max" | "count" | "sum" | "avg";
705
+ field: string;
706
+ } | undefined;
707
+ readonly language?: string | undefined;
708
+ readonly theme?: string | undefined;
709
+ readonly lineNumbers?: boolean | undefined;
710
+ readonly maxRating?: number | undefined;
711
+ readonly allowHalf?: boolean | undefined;
712
+ readonly displayMap?: boolean | undefined;
713
+ readonly allowGeocoding?: boolean | undefined;
714
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
715
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
716
+ readonly allowAlpha?: boolean | undefined;
717
+ readonly presetColors?: string[] | undefined;
718
+ readonly hidden?: boolean | undefined;
719
+ readonly readonly?: boolean | undefined;
720
+ readonly encryption?: boolean | undefined;
721
+ readonly index?: boolean | undefined;
722
+ readonly externalId?: boolean | undefined;
723
+ readonly type: "url";
724
+ };
725
+ email: (config?: FieldInput) => {
726
+ readonly formula?: string | undefined;
727
+ readonly options?: {
728
+ value: string;
729
+ label: string;
730
+ color?: string | undefined;
731
+ default?: boolean | undefined;
732
+ }[] | undefined;
733
+ readonly label?: string | undefined;
734
+ readonly name?: string | undefined;
735
+ readonly description?: string | undefined;
736
+ readonly format?: string | undefined;
737
+ readonly required?: boolean | undefined;
738
+ readonly searchable?: boolean | undefined;
739
+ readonly multiple?: boolean | undefined;
740
+ readonly unique?: boolean | undefined;
741
+ readonly defaultValue?: any;
742
+ readonly maxLength?: number | undefined;
743
+ readonly minLength?: number | undefined;
744
+ readonly precision?: number | undefined;
745
+ readonly scale?: number | undefined;
746
+ readonly min?: number | undefined;
747
+ readonly max?: number | undefined;
748
+ readonly reference?: string | undefined;
749
+ readonly referenceFilters?: string[] | undefined;
750
+ readonly writeRequiresMasterRead?: boolean | undefined;
751
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
752
+ readonly expression?: string | undefined;
753
+ readonly summaryOperations?: {
754
+ object: string;
755
+ function: "min" | "max" | "count" | "sum" | "avg";
756
+ field: string;
757
+ } | undefined;
758
+ readonly language?: string | undefined;
759
+ readonly theme?: string | undefined;
760
+ readonly lineNumbers?: boolean | undefined;
761
+ readonly maxRating?: number | undefined;
762
+ readonly allowHalf?: boolean | undefined;
763
+ readonly displayMap?: boolean | undefined;
764
+ readonly allowGeocoding?: boolean | undefined;
765
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
766
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
767
+ readonly allowAlpha?: boolean | undefined;
768
+ readonly presetColors?: string[] | undefined;
769
+ readonly hidden?: boolean | undefined;
770
+ readonly readonly?: boolean | undefined;
771
+ readonly encryption?: boolean | undefined;
772
+ readonly index?: boolean | undefined;
773
+ readonly externalId?: boolean | undefined;
774
+ readonly type: "email";
775
+ };
776
+ phone: (config?: FieldInput) => {
777
+ readonly formula?: string | undefined;
778
+ readonly options?: {
779
+ value: string;
780
+ label: string;
781
+ color?: string | undefined;
782
+ default?: boolean | undefined;
783
+ }[] | undefined;
784
+ readonly label?: string | undefined;
785
+ readonly name?: string | undefined;
786
+ readonly description?: string | undefined;
787
+ readonly format?: string | undefined;
788
+ readonly required?: boolean | undefined;
789
+ readonly searchable?: boolean | undefined;
790
+ readonly multiple?: boolean | undefined;
791
+ readonly unique?: boolean | undefined;
792
+ readonly defaultValue?: any;
793
+ readonly maxLength?: number | undefined;
794
+ readonly minLength?: number | undefined;
795
+ readonly precision?: number | undefined;
796
+ readonly scale?: number | undefined;
797
+ readonly min?: number | undefined;
798
+ readonly max?: number | undefined;
799
+ readonly reference?: string | undefined;
800
+ readonly referenceFilters?: string[] | undefined;
801
+ readonly writeRequiresMasterRead?: boolean | undefined;
802
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
803
+ readonly expression?: string | undefined;
804
+ readonly summaryOperations?: {
805
+ object: string;
806
+ function: "min" | "max" | "count" | "sum" | "avg";
807
+ field: string;
808
+ } | undefined;
809
+ readonly language?: string | undefined;
810
+ readonly theme?: string | undefined;
811
+ readonly lineNumbers?: boolean | undefined;
812
+ readonly maxRating?: number | undefined;
813
+ readonly allowHalf?: boolean | undefined;
814
+ readonly displayMap?: boolean | undefined;
815
+ readonly allowGeocoding?: boolean | undefined;
816
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
817
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
818
+ readonly allowAlpha?: boolean | undefined;
819
+ readonly presetColors?: string[] | undefined;
820
+ readonly hidden?: boolean | undefined;
821
+ readonly readonly?: boolean | undefined;
822
+ readonly encryption?: boolean | undefined;
823
+ readonly index?: boolean | undefined;
824
+ readonly externalId?: boolean | undefined;
825
+ readonly type: "phone";
826
+ };
827
+ image: (config?: FieldInput) => {
828
+ readonly formula?: string | undefined;
829
+ readonly options?: {
830
+ value: string;
831
+ label: string;
832
+ color?: string | undefined;
833
+ default?: boolean | undefined;
834
+ }[] | undefined;
835
+ readonly label?: string | undefined;
836
+ readonly name?: string | undefined;
837
+ readonly description?: string | undefined;
838
+ readonly format?: string | undefined;
839
+ readonly required?: boolean | undefined;
840
+ readonly searchable?: boolean | undefined;
841
+ readonly multiple?: boolean | undefined;
842
+ readonly unique?: boolean | undefined;
843
+ readonly defaultValue?: any;
844
+ readonly maxLength?: number | undefined;
845
+ readonly minLength?: number | undefined;
846
+ readonly precision?: number | undefined;
847
+ readonly scale?: number | undefined;
848
+ readonly min?: number | undefined;
849
+ readonly max?: number | undefined;
850
+ readonly reference?: string | undefined;
851
+ readonly referenceFilters?: string[] | undefined;
852
+ readonly writeRequiresMasterRead?: boolean | undefined;
853
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
854
+ readonly expression?: string | undefined;
855
+ readonly summaryOperations?: {
856
+ object: string;
857
+ function: "min" | "max" | "count" | "sum" | "avg";
858
+ field: string;
859
+ } | undefined;
860
+ readonly language?: string | undefined;
861
+ readonly theme?: string | undefined;
862
+ readonly lineNumbers?: boolean | undefined;
863
+ readonly maxRating?: number | undefined;
864
+ readonly allowHalf?: boolean | undefined;
865
+ readonly displayMap?: boolean | undefined;
866
+ readonly allowGeocoding?: boolean | undefined;
867
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
868
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
869
+ readonly allowAlpha?: boolean | undefined;
870
+ readonly presetColors?: string[] | undefined;
871
+ readonly hidden?: boolean | undefined;
872
+ readonly readonly?: boolean | undefined;
873
+ readonly encryption?: boolean | undefined;
874
+ readonly index?: boolean | undefined;
875
+ readonly externalId?: boolean | undefined;
876
+ readonly type: "image";
877
+ };
878
+ file: (config?: FieldInput) => {
879
+ readonly formula?: string | undefined;
880
+ readonly options?: {
881
+ value: string;
882
+ label: string;
883
+ color?: string | undefined;
884
+ default?: boolean | undefined;
885
+ }[] | undefined;
886
+ readonly label?: string | undefined;
887
+ readonly name?: string | undefined;
888
+ readonly description?: string | undefined;
889
+ readonly format?: string | undefined;
890
+ readonly required?: boolean | undefined;
891
+ readonly searchable?: boolean | undefined;
892
+ readonly multiple?: boolean | undefined;
893
+ readonly unique?: boolean | undefined;
894
+ readonly defaultValue?: any;
895
+ readonly maxLength?: number | undefined;
896
+ readonly minLength?: number | undefined;
897
+ readonly precision?: number | undefined;
898
+ readonly scale?: number | undefined;
899
+ readonly min?: number | undefined;
900
+ readonly max?: number | undefined;
901
+ readonly reference?: string | undefined;
902
+ readonly referenceFilters?: string[] | undefined;
903
+ readonly writeRequiresMasterRead?: boolean | undefined;
904
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
905
+ readonly expression?: string | undefined;
906
+ readonly summaryOperations?: {
907
+ object: string;
908
+ function: "min" | "max" | "count" | "sum" | "avg";
909
+ field: string;
910
+ } | undefined;
911
+ readonly language?: string | undefined;
912
+ readonly theme?: string | undefined;
913
+ readonly lineNumbers?: boolean | undefined;
914
+ readonly maxRating?: number | undefined;
915
+ readonly allowHalf?: boolean | undefined;
916
+ readonly displayMap?: boolean | undefined;
917
+ readonly allowGeocoding?: boolean | undefined;
918
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
919
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
920
+ readonly allowAlpha?: boolean | undefined;
921
+ readonly presetColors?: string[] | undefined;
922
+ readonly hidden?: boolean | undefined;
923
+ readonly readonly?: boolean | undefined;
924
+ readonly encryption?: boolean | undefined;
925
+ readonly index?: boolean | undefined;
926
+ readonly externalId?: boolean | undefined;
927
+ readonly type: "file";
928
+ };
929
+ avatar: (config?: FieldInput) => {
930
+ readonly formula?: string | undefined;
931
+ readonly options?: {
932
+ value: string;
933
+ label: string;
934
+ color?: string | undefined;
935
+ default?: boolean | undefined;
936
+ }[] | undefined;
937
+ readonly label?: string | undefined;
938
+ readonly name?: string | undefined;
939
+ readonly description?: string | undefined;
940
+ readonly format?: string | undefined;
941
+ readonly required?: boolean | undefined;
942
+ readonly searchable?: boolean | undefined;
943
+ readonly multiple?: boolean | undefined;
944
+ readonly unique?: boolean | undefined;
945
+ readonly defaultValue?: any;
946
+ readonly maxLength?: number | undefined;
947
+ readonly minLength?: number | undefined;
948
+ readonly precision?: number | undefined;
949
+ readonly scale?: number | undefined;
950
+ readonly min?: number | undefined;
951
+ readonly max?: number | undefined;
952
+ readonly reference?: string | undefined;
953
+ readonly referenceFilters?: string[] | undefined;
954
+ readonly writeRequiresMasterRead?: boolean | undefined;
955
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
956
+ readonly expression?: string | undefined;
957
+ readonly summaryOperations?: {
958
+ object: string;
959
+ function: "min" | "max" | "count" | "sum" | "avg";
960
+ field: string;
961
+ } | undefined;
962
+ readonly language?: string | undefined;
963
+ readonly theme?: string | undefined;
964
+ readonly lineNumbers?: boolean | undefined;
965
+ readonly maxRating?: number | undefined;
966
+ readonly allowHalf?: boolean | undefined;
967
+ readonly displayMap?: boolean | undefined;
968
+ readonly allowGeocoding?: boolean | undefined;
969
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
970
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
971
+ readonly allowAlpha?: boolean | undefined;
972
+ readonly presetColors?: string[] | undefined;
973
+ readonly hidden?: boolean | undefined;
974
+ readonly readonly?: boolean | undefined;
975
+ readonly encryption?: boolean | undefined;
976
+ readonly index?: boolean | undefined;
977
+ readonly externalId?: boolean | undefined;
978
+ readonly type: "avatar";
979
+ };
980
+ formula: (config?: FieldInput) => {
981
+ readonly formula?: string | undefined;
982
+ readonly options?: {
983
+ value: string;
984
+ label: string;
985
+ color?: string | undefined;
986
+ default?: boolean | undefined;
987
+ }[] | undefined;
988
+ readonly label?: string | undefined;
989
+ readonly name?: string | undefined;
990
+ readonly description?: string | undefined;
991
+ readonly format?: string | undefined;
992
+ readonly required?: boolean | undefined;
993
+ readonly searchable?: boolean | undefined;
994
+ readonly multiple?: boolean | undefined;
995
+ readonly unique?: boolean | undefined;
996
+ readonly defaultValue?: any;
997
+ readonly maxLength?: number | undefined;
998
+ readonly minLength?: number | undefined;
999
+ readonly precision?: number | undefined;
1000
+ readonly scale?: number | undefined;
1001
+ readonly min?: number | undefined;
1002
+ readonly max?: number | undefined;
1003
+ readonly reference?: string | undefined;
1004
+ readonly referenceFilters?: string[] | undefined;
1005
+ readonly writeRequiresMasterRead?: boolean | undefined;
1006
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
1007
+ readonly expression?: string | undefined;
1008
+ readonly summaryOperations?: {
1009
+ object: string;
1010
+ function: "min" | "max" | "count" | "sum" | "avg";
1011
+ field: string;
1012
+ } | undefined;
1013
+ readonly language?: string | undefined;
1014
+ readonly theme?: string | undefined;
1015
+ readonly lineNumbers?: boolean | undefined;
1016
+ readonly maxRating?: number | undefined;
1017
+ readonly allowHalf?: boolean | undefined;
1018
+ readonly displayMap?: boolean | undefined;
1019
+ readonly allowGeocoding?: boolean | undefined;
1020
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
1021
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
1022
+ readonly allowAlpha?: boolean | undefined;
1023
+ readonly presetColors?: string[] | undefined;
1024
+ readonly hidden?: boolean | undefined;
1025
+ readonly readonly?: boolean | undefined;
1026
+ readonly encryption?: boolean | undefined;
1027
+ readonly index?: boolean | undefined;
1028
+ readonly externalId?: boolean | undefined;
1029
+ readonly type: "formula";
1030
+ };
1031
+ summary: (config?: FieldInput) => {
1032
+ readonly formula?: string | undefined;
1033
+ readonly options?: {
1034
+ value: string;
1035
+ label: string;
1036
+ color?: string | undefined;
1037
+ default?: boolean | undefined;
1038
+ }[] | undefined;
1039
+ readonly label?: string | undefined;
1040
+ readonly name?: string | undefined;
1041
+ readonly description?: string | undefined;
1042
+ readonly format?: string | undefined;
1043
+ readonly required?: boolean | undefined;
1044
+ readonly searchable?: boolean | undefined;
1045
+ readonly multiple?: boolean | undefined;
1046
+ readonly unique?: boolean | undefined;
1047
+ readonly defaultValue?: any;
1048
+ readonly maxLength?: number | undefined;
1049
+ readonly minLength?: number | undefined;
1050
+ readonly precision?: number | undefined;
1051
+ readonly scale?: number | undefined;
1052
+ readonly min?: number | undefined;
1053
+ readonly max?: number | undefined;
1054
+ readonly reference?: string | undefined;
1055
+ readonly referenceFilters?: string[] | undefined;
1056
+ readonly writeRequiresMasterRead?: boolean | undefined;
1057
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
1058
+ readonly expression?: string | undefined;
1059
+ readonly summaryOperations?: {
1060
+ object: string;
1061
+ function: "min" | "max" | "count" | "sum" | "avg";
1062
+ field: string;
1063
+ } | undefined;
1064
+ readonly language?: string | undefined;
1065
+ readonly theme?: string | undefined;
1066
+ readonly lineNumbers?: boolean | undefined;
1067
+ readonly maxRating?: number | undefined;
1068
+ readonly allowHalf?: boolean | undefined;
1069
+ readonly displayMap?: boolean | undefined;
1070
+ readonly allowGeocoding?: boolean | undefined;
1071
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
1072
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
1073
+ readonly allowAlpha?: boolean | undefined;
1074
+ readonly presetColors?: string[] | undefined;
1075
+ readonly hidden?: boolean | undefined;
1076
+ readonly readonly?: boolean | undefined;
1077
+ readonly encryption?: boolean | undefined;
1078
+ readonly index?: boolean | undefined;
1079
+ readonly externalId?: boolean | undefined;
1080
+ readonly type: "summary";
1081
+ };
1082
+ autonumber: (config?: FieldInput) => {
1083
+ readonly formula?: string | undefined;
1084
+ readonly options?: {
1085
+ value: string;
1086
+ label: string;
1087
+ color?: string | undefined;
1088
+ default?: boolean | undefined;
1089
+ }[] | undefined;
1090
+ readonly label?: string | undefined;
1091
+ readonly name?: string | undefined;
1092
+ readonly description?: string | undefined;
1093
+ readonly format?: string | undefined;
1094
+ readonly required?: boolean | undefined;
1095
+ readonly searchable?: boolean | undefined;
1096
+ readonly multiple?: boolean | undefined;
1097
+ readonly unique?: boolean | undefined;
1098
+ readonly defaultValue?: any;
1099
+ readonly maxLength?: number | undefined;
1100
+ readonly minLength?: number | undefined;
1101
+ readonly precision?: number | undefined;
1102
+ readonly scale?: number | undefined;
1103
+ readonly min?: number | undefined;
1104
+ readonly max?: number | undefined;
1105
+ readonly reference?: string | undefined;
1106
+ readonly referenceFilters?: string[] | undefined;
1107
+ readonly writeRequiresMasterRead?: boolean | undefined;
1108
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
1109
+ readonly expression?: string | undefined;
1110
+ readonly summaryOperations?: {
1111
+ object: string;
1112
+ function: "min" | "max" | "count" | "sum" | "avg";
1113
+ field: string;
1114
+ } | undefined;
1115
+ readonly language?: string | undefined;
1116
+ readonly theme?: string | undefined;
1117
+ readonly lineNumbers?: boolean | undefined;
1118
+ readonly maxRating?: number | undefined;
1119
+ readonly allowHalf?: boolean | undefined;
1120
+ readonly displayMap?: boolean | undefined;
1121
+ readonly allowGeocoding?: boolean | undefined;
1122
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
1123
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
1124
+ readonly allowAlpha?: boolean | undefined;
1125
+ readonly presetColors?: string[] | undefined;
1126
+ readonly hidden?: boolean | undefined;
1127
+ readonly readonly?: boolean | undefined;
1128
+ readonly encryption?: boolean | undefined;
1129
+ readonly index?: boolean | undefined;
1130
+ readonly externalId?: boolean | undefined;
1131
+ readonly type: "autonumber";
1132
+ };
1133
+ markdown: (config?: FieldInput) => {
1134
+ readonly formula?: string | undefined;
1135
+ readonly options?: {
1136
+ value: string;
1137
+ label: string;
1138
+ color?: string | undefined;
1139
+ default?: boolean | undefined;
1140
+ }[] | undefined;
1141
+ readonly label?: string | undefined;
1142
+ readonly name?: string | undefined;
1143
+ readonly description?: string | undefined;
1144
+ readonly format?: string | undefined;
1145
+ readonly required?: boolean | undefined;
1146
+ readonly searchable?: boolean | undefined;
1147
+ readonly multiple?: boolean | undefined;
1148
+ readonly unique?: boolean | undefined;
1149
+ readonly defaultValue?: any;
1150
+ readonly maxLength?: number | undefined;
1151
+ readonly minLength?: number | undefined;
1152
+ readonly precision?: number | undefined;
1153
+ readonly scale?: number | undefined;
1154
+ readonly min?: number | undefined;
1155
+ readonly max?: number | undefined;
1156
+ readonly reference?: string | undefined;
1157
+ readonly referenceFilters?: string[] | undefined;
1158
+ readonly writeRequiresMasterRead?: boolean | undefined;
1159
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
1160
+ readonly expression?: string | undefined;
1161
+ readonly summaryOperations?: {
1162
+ object: string;
1163
+ function: "min" | "max" | "count" | "sum" | "avg";
1164
+ field: string;
1165
+ } | undefined;
1166
+ readonly language?: string | undefined;
1167
+ readonly theme?: string | undefined;
1168
+ readonly lineNumbers?: boolean | undefined;
1169
+ readonly maxRating?: number | undefined;
1170
+ readonly allowHalf?: boolean | undefined;
1171
+ readonly displayMap?: boolean | undefined;
1172
+ readonly allowGeocoding?: boolean | undefined;
1173
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
1174
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
1175
+ readonly allowAlpha?: boolean | undefined;
1176
+ readonly presetColors?: string[] | undefined;
1177
+ readonly hidden?: boolean | undefined;
1178
+ readonly readonly?: boolean | undefined;
1179
+ readonly encryption?: boolean | undefined;
1180
+ readonly index?: boolean | undefined;
1181
+ readonly externalId?: boolean | undefined;
1182
+ readonly type: "markdown";
1183
+ };
1184
+ html: (config?: FieldInput) => {
1185
+ readonly formula?: string | undefined;
1186
+ readonly options?: {
1187
+ value: string;
1188
+ label: string;
1189
+ color?: string | undefined;
1190
+ default?: boolean | undefined;
1191
+ }[] | undefined;
1192
+ readonly label?: string | undefined;
1193
+ readonly name?: string | undefined;
1194
+ readonly description?: string | undefined;
1195
+ readonly format?: string | undefined;
1196
+ readonly required?: boolean | undefined;
1197
+ readonly searchable?: boolean | undefined;
1198
+ readonly multiple?: boolean | undefined;
1199
+ readonly unique?: boolean | undefined;
1200
+ readonly defaultValue?: any;
1201
+ readonly maxLength?: number | undefined;
1202
+ readonly minLength?: number | undefined;
1203
+ readonly precision?: number | undefined;
1204
+ readonly scale?: number | undefined;
1205
+ readonly min?: number | undefined;
1206
+ readonly max?: number | undefined;
1207
+ readonly reference?: string | undefined;
1208
+ readonly referenceFilters?: string[] | undefined;
1209
+ readonly writeRequiresMasterRead?: boolean | undefined;
1210
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
1211
+ readonly expression?: string | undefined;
1212
+ readonly summaryOperations?: {
1213
+ object: string;
1214
+ function: "min" | "max" | "count" | "sum" | "avg";
1215
+ field: string;
1216
+ } | undefined;
1217
+ readonly language?: string | undefined;
1218
+ readonly theme?: string | undefined;
1219
+ readonly lineNumbers?: boolean | undefined;
1220
+ readonly maxRating?: number | undefined;
1221
+ readonly allowHalf?: boolean | undefined;
1222
+ readonly displayMap?: boolean | undefined;
1223
+ readonly allowGeocoding?: boolean | undefined;
1224
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
1225
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
1226
+ readonly allowAlpha?: boolean | undefined;
1227
+ readonly presetColors?: string[] | undefined;
1228
+ readonly hidden?: boolean | undefined;
1229
+ readonly readonly?: boolean | undefined;
1230
+ readonly encryption?: boolean | undefined;
1231
+ readonly index?: boolean | undefined;
1232
+ readonly externalId?: boolean | undefined;
1233
+ readonly type: "html";
1234
+ };
1235
+ password: (config?: FieldInput) => {
1236
+ readonly formula?: string | undefined;
1237
+ readonly options?: {
1238
+ value: string;
1239
+ label: string;
1240
+ color?: string | undefined;
1241
+ default?: boolean | undefined;
1242
+ }[] | undefined;
1243
+ readonly label?: string | undefined;
1244
+ readonly name?: string | undefined;
1245
+ readonly description?: string | undefined;
1246
+ readonly format?: string | undefined;
1247
+ readonly required?: boolean | undefined;
1248
+ readonly searchable?: boolean | undefined;
1249
+ readonly multiple?: boolean | undefined;
1250
+ readonly unique?: boolean | undefined;
1251
+ readonly defaultValue?: any;
1252
+ readonly maxLength?: number | undefined;
1253
+ readonly minLength?: number | undefined;
1254
+ readonly precision?: number | undefined;
1255
+ readonly scale?: number | undefined;
1256
+ readonly min?: number | undefined;
1257
+ readonly max?: number | undefined;
1258
+ readonly reference?: string | undefined;
1259
+ readonly referenceFilters?: string[] | undefined;
1260
+ readonly writeRequiresMasterRead?: boolean | undefined;
1261
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
1262
+ readonly expression?: string | undefined;
1263
+ readonly summaryOperations?: {
1264
+ object: string;
1265
+ function: "min" | "max" | "count" | "sum" | "avg";
1266
+ field: string;
1267
+ } | undefined;
1268
+ readonly language?: string | undefined;
1269
+ readonly theme?: string | undefined;
1270
+ readonly lineNumbers?: boolean | undefined;
1271
+ readonly maxRating?: number | undefined;
1272
+ readonly allowHalf?: boolean | undefined;
1273
+ readonly displayMap?: boolean | undefined;
1274
+ readonly allowGeocoding?: boolean | undefined;
1275
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
1276
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
1277
+ readonly allowAlpha?: boolean | undefined;
1278
+ readonly presetColors?: string[] | undefined;
1279
+ readonly hidden?: boolean | undefined;
1280
+ readonly readonly?: boolean | undefined;
1281
+ readonly encryption?: boolean | undefined;
1282
+ readonly index?: boolean | undefined;
1283
+ readonly externalId?: boolean | undefined;
1284
+ readonly type: "password";
1285
+ };
1286
+ /**
1287
+ * Select field helper with backward-compatible API
1288
+ *
1289
+ * @example Old API (array first)
1290
+ * Field.select(['High', 'Low'], { label: 'Priority' })
1291
+ *
1292
+ * @example New API (config object)
1293
+ * Field.select({ options: [{label: 'High', value: 'high'}], label: 'Priority' })
1294
+ */
1295
+ select: (optionsOrConfig: SelectOption[] | string[] | (FieldInput & {
1296
+ options: SelectOption[] | string[];
1297
+ }), config?: FieldInput) => {
1298
+ readonly formula?: string | undefined;
1299
+ options: {
1300
+ value: string;
1301
+ label: string;
1302
+ color?: string | undefined;
1303
+ default?: boolean | undefined;
1304
+ }[];
1305
+ readonly label?: string | undefined;
1306
+ readonly name?: string | undefined;
1307
+ readonly description?: string | undefined;
1308
+ readonly format?: string | undefined;
1309
+ readonly required?: boolean | undefined;
1310
+ readonly searchable?: boolean | undefined;
1311
+ readonly multiple?: boolean | undefined;
1312
+ readonly unique?: boolean | undefined;
1313
+ readonly defaultValue?: any;
1314
+ readonly maxLength?: number | undefined;
1315
+ readonly minLength?: number | undefined;
1316
+ readonly precision?: number | undefined;
1317
+ readonly scale?: number | undefined;
1318
+ readonly min?: number | undefined;
1319
+ readonly max?: number | undefined;
1320
+ readonly reference?: string | undefined;
1321
+ readonly referenceFilters?: string[] | undefined;
1322
+ readonly writeRequiresMasterRead?: boolean | undefined;
1323
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
1324
+ readonly expression?: string | undefined;
1325
+ readonly summaryOperations?: {
1326
+ object: string;
1327
+ function: "min" | "max" | "count" | "sum" | "avg";
1328
+ field: string;
1329
+ } | undefined;
1330
+ readonly language?: string | undefined;
1331
+ readonly theme?: string | undefined;
1332
+ readonly lineNumbers?: boolean | undefined;
1333
+ readonly maxRating?: number | undefined;
1334
+ readonly allowHalf?: boolean | undefined;
1335
+ readonly displayMap?: boolean | undefined;
1336
+ readonly allowGeocoding?: boolean | undefined;
1337
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
1338
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
1339
+ readonly allowAlpha?: boolean | undefined;
1340
+ readonly presetColors?: string[] | undefined;
1341
+ readonly hidden?: boolean | undefined;
1342
+ readonly readonly?: boolean | undefined;
1343
+ readonly encryption?: boolean | undefined;
1344
+ readonly index?: boolean | undefined;
1345
+ readonly externalId?: boolean | undefined;
1346
+ readonly type: "select";
1347
+ };
1348
+ lookup: (reference: string, config?: FieldInput) => {
1349
+ readonly formula?: string | undefined;
1350
+ readonly options?: {
1351
+ value: string;
1352
+ label: string;
1353
+ color?: string | undefined;
1354
+ default?: boolean | undefined;
1355
+ }[] | undefined;
1356
+ readonly label?: string | undefined;
1357
+ readonly name?: string | undefined;
1358
+ readonly description?: string | undefined;
1359
+ readonly format?: string | undefined;
1360
+ readonly required?: boolean | undefined;
1361
+ readonly searchable?: boolean | undefined;
1362
+ readonly multiple?: boolean | undefined;
1363
+ readonly unique?: boolean | undefined;
1364
+ readonly defaultValue?: any;
1365
+ readonly maxLength?: number | undefined;
1366
+ readonly minLength?: number | undefined;
1367
+ readonly precision?: number | undefined;
1368
+ readonly scale?: number | undefined;
1369
+ readonly min?: number | undefined;
1370
+ readonly max?: number | undefined;
1371
+ reference: string;
1372
+ readonly referenceFilters?: string[] | undefined;
1373
+ readonly writeRequiresMasterRead?: boolean | undefined;
1374
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
1375
+ readonly expression?: string | undefined;
1376
+ readonly summaryOperations?: {
1377
+ object: string;
1378
+ function: "min" | "max" | "count" | "sum" | "avg";
1379
+ field: string;
1380
+ } | undefined;
1381
+ readonly language?: string | undefined;
1382
+ readonly theme?: string | undefined;
1383
+ readonly lineNumbers?: boolean | undefined;
1384
+ readonly maxRating?: number | undefined;
1385
+ readonly allowHalf?: boolean | undefined;
1386
+ readonly displayMap?: boolean | undefined;
1387
+ readonly allowGeocoding?: boolean | undefined;
1388
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
1389
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
1390
+ readonly allowAlpha?: boolean | undefined;
1391
+ readonly presetColors?: string[] | undefined;
1392
+ readonly hidden?: boolean | undefined;
1393
+ readonly readonly?: boolean | undefined;
1394
+ readonly encryption?: boolean | undefined;
1395
+ readonly index?: boolean | undefined;
1396
+ readonly externalId?: boolean | undefined;
1397
+ readonly type: "lookup";
1398
+ };
1399
+ masterDetail: (reference: string, config?: FieldInput) => {
1400
+ readonly formula?: string | undefined;
1401
+ readonly options?: {
1402
+ value: string;
1403
+ label: string;
1404
+ color?: string | undefined;
1405
+ default?: boolean | undefined;
1406
+ }[] | undefined;
1407
+ readonly label?: string | undefined;
1408
+ readonly name?: string | undefined;
1409
+ readonly description?: string | undefined;
1410
+ readonly format?: string | undefined;
1411
+ readonly required?: boolean | undefined;
1412
+ readonly searchable?: boolean | undefined;
1413
+ readonly multiple?: boolean | undefined;
1414
+ readonly unique?: boolean | undefined;
1415
+ readonly defaultValue?: any;
1416
+ readonly maxLength?: number | undefined;
1417
+ readonly minLength?: number | undefined;
1418
+ readonly precision?: number | undefined;
1419
+ readonly scale?: number | undefined;
1420
+ readonly min?: number | undefined;
1421
+ readonly max?: number | undefined;
1422
+ reference: string;
1423
+ readonly referenceFilters?: string[] | undefined;
1424
+ readonly writeRequiresMasterRead?: boolean | undefined;
1425
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
1426
+ readonly expression?: string | undefined;
1427
+ readonly summaryOperations?: {
1428
+ object: string;
1429
+ function: "min" | "max" | "count" | "sum" | "avg";
1430
+ field: string;
1431
+ } | undefined;
1432
+ readonly language?: string | undefined;
1433
+ readonly theme?: string | undefined;
1434
+ readonly lineNumbers?: boolean | undefined;
1435
+ readonly maxRating?: number | undefined;
1436
+ readonly allowHalf?: boolean | undefined;
1437
+ readonly displayMap?: boolean | undefined;
1438
+ readonly allowGeocoding?: boolean | undefined;
1439
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
1440
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
1441
+ readonly allowAlpha?: boolean | undefined;
1442
+ readonly presetColors?: string[] | undefined;
1443
+ readonly hidden?: boolean | undefined;
1444
+ readonly readonly?: boolean | undefined;
1445
+ readonly encryption?: boolean | undefined;
1446
+ readonly index?: boolean | undefined;
1447
+ readonly externalId?: boolean | undefined;
1448
+ readonly type: "master_detail";
1449
+ };
1450
+ location: (config?: FieldInput) => {
1451
+ readonly formula?: string | undefined;
1452
+ readonly options?: {
1453
+ value: string;
1454
+ label: string;
1455
+ color?: string | undefined;
1456
+ default?: boolean | undefined;
1457
+ }[] | undefined;
1458
+ readonly label?: string | undefined;
1459
+ readonly name?: string | undefined;
1460
+ readonly description?: string | undefined;
1461
+ readonly format?: string | undefined;
1462
+ readonly required?: boolean | undefined;
1463
+ readonly searchable?: boolean | undefined;
1464
+ readonly multiple?: boolean | undefined;
1465
+ readonly unique?: boolean | undefined;
1466
+ readonly defaultValue?: any;
1467
+ readonly maxLength?: number | undefined;
1468
+ readonly minLength?: number | undefined;
1469
+ readonly precision?: number | undefined;
1470
+ readonly scale?: number | undefined;
1471
+ readonly min?: number | undefined;
1472
+ readonly max?: number | undefined;
1473
+ readonly reference?: string | undefined;
1474
+ readonly referenceFilters?: string[] | undefined;
1475
+ readonly writeRequiresMasterRead?: boolean | undefined;
1476
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
1477
+ readonly expression?: string | undefined;
1478
+ readonly summaryOperations?: {
1479
+ object: string;
1480
+ function: "min" | "max" | "count" | "sum" | "avg";
1481
+ field: string;
1482
+ } | undefined;
1483
+ readonly language?: string | undefined;
1484
+ readonly theme?: string | undefined;
1485
+ readonly lineNumbers?: boolean | undefined;
1486
+ readonly maxRating?: number | undefined;
1487
+ readonly allowHalf?: boolean | undefined;
1488
+ readonly displayMap?: boolean | undefined;
1489
+ readonly allowGeocoding?: boolean | undefined;
1490
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
1491
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
1492
+ readonly allowAlpha?: boolean | undefined;
1493
+ readonly presetColors?: string[] | undefined;
1494
+ readonly hidden?: boolean | undefined;
1495
+ readonly readonly?: boolean | undefined;
1496
+ readonly encryption?: boolean | undefined;
1497
+ readonly index?: boolean | undefined;
1498
+ readonly externalId?: boolean | undefined;
1499
+ readonly type: "location";
1500
+ };
1501
+ address: (config?: FieldInput) => {
1502
+ readonly formula?: string | undefined;
1503
+ readonly options?: {
1504
+ value: string;
1505
+ label: string;
1506
+ color?: string | undefined;
1507
+ default?: boolean | undefined;
1508
+ }[] | undefined;
1509
+ readonly label?: string | undefined;
1510
+ readonly name?: string | undefined;
1511
+ readonly description?: string | undefined;
1512
+ readonly format?: string | undefined;
1513
+ readonly required?: boolean | undefined;
1514
+ readonly searchable?: boolean | undefined;
1515
+ readonly multiple?: boolean | undefined;
1516
+ readonly unique?: boolean | undefined;
1517
+ readonly defaultValue?: any;
1518
+ readonly maxLength?: number | undefined;
1519
+ readonly minLength?: number | undefined;
1520
+ readonly precision?: number | undefined;
1521
+ readonly scale?: number | undefined;
1522
+ readonly min?: number | undefined;
1523
+ readonly max?: number | undefined;
1524
+ readonly reference?: string | undefined;
1525
+ readonly referenceFilters?: string[] | undefined;
1526
+ readonly writeRequiresMasterRead?: boolean | undefined;
1527
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
1528
+ readonly expression?: string | undefined;
1529
+ readonly summaryOperations?: {
1530
+ object: string;
1531
+ function: "min" | "max" | "count" | "sum" | "avg";
1532
+ field: string;
1533
+ } | undefined;
1534
+ readonly language?: string | undefined;
1535
+ readonly theme?: string | undefined;
1536
+ readonly lineNumbers?: boolean | undefined;
1537
+ readonly maxRating?: number | undefined;
1538
+ readonly allowHalf?: boolean | undefined;
1539
+ readonly displayMap?: boolean | undefined;
1540
+ readonly allowGeocoding?: boolean | undefined;
1541
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
1542
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
1543
+ readonly allowAlpha?: boolean | undefined;
1544
+ readonly presetColors?: string[] | undefined;
1545
+ readonly hidden?: boolean | undefined;
1546
+ readonly readonly?: boolean | undefined;
1547
+ readonly encryption?: boolean | undefined;
1548
+ readonly index?: boolean | undefined;
1549
+ readonly externalId?: boolean | undefined;
1550
+ readonly type: "address";
1551
+ };
1552
+ richtext: (config?: FieldInput) => {
1553
+ readonly formula?: string | undefined;
1554
+ readonly options?: {
1555
+ value: string;
1556
+ label: string;
1557
+ color?: string | undefined;
1558
+ default?: boolean | undefined;
1559
+ }[] | undefined;
1560
+ readonly label?: string | undefined;
1561
+ readonly name?: string | undefined;
1562
+ readonly description?: string | undefined;
1563
+ readonly format?: string | undefined;
1564
+ readonly required?: boolean | undefined;
1565
+ readonly searchable?: boolean | undefined;
1566
+ readonly multiple?: boolean | undefined;
1567
+ readonly unique?: boolean | undefined;
1568
+ readonly defaultValue?: any;
1569
+ readonly maxLength?: number | undefined;
1570
+ readonly minLength?: number | undefined;
1571
+ readonly precision?: number | undefined;
1572
+ readonly scale?: number | undefined;
1573
+ readonly min?: number | undefined;
1574
+ readonly max?: number | undefined;
1575
+ readonly reference?: string | undefined;
1576
+ readonly referenceFilters?: string[] | undefined;
1577
+ readonly writeRequiresMasterRead?: boolean | undefined;
1578
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
1579
+ readonly expression?: string | undefined;
1580
+ readonly summaryOperations?: {
1581
+ object: string;
1582
+ function: "min" | "max" | "count" | "sum" | "avg";
1583
+ field: string;
1584
+ } | undefined;
1585
+ readonly language?: string | undefined;
1586
+ readonly theme?: string | undefined;
1587
+ readonly lineNumbers?: boolean | undefined;
1588
+ readonly maxRating?: number | undefined;
1589
+ readonly allowHalf?: boolean | undefined;
1590
+ readonly displayMap?: boolean | undefined;
1591
+ readonly allowGeocoding?: boolean | undefined;
1592
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
1593
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
1594
+ readonly allowAlpha?: boolean | undefined;
1595
+ readonly presetColors?: string[] | undefined;
1596
+ readonly hidden?: boolean | undefined;
1597
+ readonly readonly?: boolean | undefined;
1598
+ readonly encryption?: boolean | undefined;
1599
+ readonly index?: boolean | undefined;
1600
+ readonly externalId?: boolean | undefined;
1601
+ readonly type: "richtext";
1602
+ };
1603
+ code: (language?: string, config?: FieldInput) => {
1604
+ readonly formula?: string | undefined;
1605
+ readonly options?: {
1606
+ value: string;
1607
+ label: string;
1608
+ color?: string | undefined;
1609
+ default?: boolean | undefined;
1610
+ }[] | undefined;
1611
+ readonly label?: string | undefined;
1612
+ readonly name?: string | undefined;
1613
+ readonly description?: string | undefined;
1614
+ readonly format?: string | undefined;
1615
+ readonly required?: boolean | undefined;
1616
+ readonly searchable?: boolean | undefined;
1617
+ readonly multiple?: boolean | undefined;
1618
+ readonly unique?: boolean | undefined;
1619
+ readonly defaultValue?: any;
1620
+ readonly maxLength?: number | undefined;
1621
+ readonly minLength?: number | undefined;
1622
+ readonly precision?: number | undefined;
1623
+ readonly scale?: number | undefined;
1624
+ readonly min?: number | undefined;
1625
+ readonly max?: number | undefined;
1626
+ readonly reference?: string | undefined;
1627
+ readonly referenceFilters?: string[] | undefined;
1628
+ readonly writeRequiresMasterRead?: boolean | undefined;
1629
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
1630
+ readonly expression?: string | undefined;
1631
+ readonly summaryOperations?: {
1632
+ object: string;
1633
+ function: "min" | "max" | "count" | "sum" | "avg";
1634
+ field: string;
1635
+ } | undefined;
1636
+ language: string | undefined;
1637
+ readonly theme?: string | undefined;
1638
+ readonly lineNumbers?: boolean | undefined;
1639
+ readonly maxRating?: number | undefined;
1640
+ readonly allowHalf?: boolean | undefined;
1641
+ readonly displayMap?: boolean | undefined;
1642
+ readonly allowGeocoding?: boolean | undefined;
1643
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
1644
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
1645
+ readonly allowAlpha?: boolean | undefined;
1646
+ readonly presetColors?: string[] | undefined;
1647
+ readonly hidden?: boolean | undefined;
1648
+ readonly readonly?: boolean | undefined;
1649
+ readonly encryption?: boolean | undefined;
1650
+ readonly index?: boolean | undefined;
1651
+ readonly externalId?: boolean | undefined;
1652
+ readonly type: "code";
1653
+ };
1654
+ color: (config?: FieldInput) => {
1655
+ readonly formula?: string | undefined;
1656
+ readonly options?: {
1657
+ value: string;
1658
+ label: string;
1659
+ color?: string | undefined;
1660
+ default?: boolean | undefined;
1661
+ }[] | undefined;
1662
+ readonly label?: string | undefined;
1663
+ readonly name?: string | undefined;
1664
+ readonly description?: string | undefined;
1665
+ readonly format?: string | undefined;
1666
+ readonly required?: boolean | undefined;
1667
+ readonly searchable?: boolean | undefined;
1668
+ readonly multiple?: boolean | undefined;
1669
+ readonly unique?: boolean | undefined;
1670
+ readonly defaultValue?: any;
1671
+ readonly maxLength?: number | undefined;
1672
+ readonly minLength?: number | undefined;
1673
+ readonly precision?: number | undefined;
1674
+ readonly scale?: number | undefined;
1675
+ readonly min?: number | undefined;
1676
+ readonly max?: number | undefined;
1677
+ readonly reference?: string | undefined;
1678
+ readonly referenceFilters?: string[] | undefined;
1679
+ readonly writeRequiresMasterRead?: boolean | undefined;
1680
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
1681
+ readonly expression?: string | undefined;
1682
+ readonly summaryOperations?: {
1683
+ object: string;
1684
+ function: "min" | "max" | "count" | "sum" | "avg";
1685
+ field: string;
1686
+ } | undefined;
1687
+ readonly language?: string | undefined;
1688
+ readonly theme?: string | undefined;
1689
+ readonly lineNumbers?: boolean | undefined;
1690
+ readonly maxRating?: number | undefined;
1691
+ readonly allowHalf?: boolean | undefined;
1692
+ readonly displayMap?: boolean | undefined;
1693
+ readonly allowGeocoding?: boolean | undefined;
1694
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
1695
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
1696
+ readonly allowAlpha?: boolean | undefined;
1697
+ readonly presetColors?: string[] | undefined;
1698
+ readonly hidden?: boolean | undefined;
1699
+ readonly readonly?: boolean | undefined;
1700
+ readonly encryption?: boolean | undefined;
1701
+ readonly index?: boolean | undefined;
1702
+ readonly externalId?: boolean | undefined;
1703
+ readonly type: "color";
1704
+ };
1705
+ rating: (maxRating?: number, config?: FieldInput) => {
1706
+ readonly formula?: string | undefined;
1707
+ readonly options?: {
1708
+ value: string;
1709
+ label: string;
1710
+ color?: string | undefined;
1711
+ default?: boolean | undefined;
1712
+ }[] | undefined;
1713
+ readonly label?: string | undefined;
1714
+ readonly name?: string | undefined;
1715
+ readonly description?: string | undefined;
1716
+ readonly format?: string | undefined;
1717
+ readonly required?: boolean | undefined;
1718
+ readonly searchable?: boolean | undefined;
1719
+ readonly multiple?: boolean | undefined;
1720
+ readonly unique?: boolean | undefined;
1721
+ readonly defaultValue?: any;
1722
+ readonly maxLength?: number | undefined;
1723
+ readonly minLength?: number | undefined;
1724
+ readonly precision?: number | undefined;
1725
+ readonly scale?: number | undefined;
1726
+ readonly min?: number | undefined;
1727
+ readonly max?: number | undefined;
1728
+ readonly reference?: string | undefined;
1729
+ readonly referenceFilters?: string[] | undefined;
1730
+ readonly writeRequiresMasterRead?: boolean | undefined;
1731
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
1732
+ readonly expression?: string | undefined;
1733
+ readonly summaryOperations?: {
1734
+ object: string;
1735
+ function: "min" | "max" | "count" | "sum" | "avg";
1736
+ field: string;
1737
+ } | undefined;
1738
+ readonly language?: string | undefined;
1739
+ readonly theme?: string | undefined;
1740
+ readonly lineNumbers?: boolean | undefined;
1741
+ maxRating: number;
1742
+ readonly allowHalf?: boolean | undefined;
1743
+ readonly displayMap?: boolean | undefined;
1744
+ readonly allowGeocoding?: boolean | undefined;
1745
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
1746
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
1747
+ readonly allowAlpha?: boolean | undefined;
1748
+ readonly presetColors?: string[] | undefined;
1749
+ readonly hidden?: boolean | undefined;
1750
+ readonly readonly?: boolean | undefined;
1751
+ readonly encryption?: boolean | undefined;
1752
+ readonly index?: boolean | undefined;
1753
+ readonly externalId?: boolean | undefined;
1754
+ readonly type: "rating";
1755
+ };
1756
+ signature: (config?: FieldInput) => {
1757
+ readonly formula?: string | undefined;
1758
+ readonly options?: {
1759
+ value: string;
1760
+ label: string;
1761
+ color?: string | undefined;
1762
+ default?: boolean | undefined;
1763
+ }[] | undefined;
1764
+ readonly label?: string | undefined;
1765
+ readonly name?: string | undefined;
1766
+ readonly description?: string | undefined;
1767
+ readonly format?: string | undefined;
1768
+ readonly required?: boolean | undefined;
1769
+ readonly searchable?: boolean | undefined;
1770
+ readonly multiple?: boolean | undefined;
1771
+ readonly unique?: boolean | undefined;
1772
+ readonly defaultValue?: any;
1773
+ readonly maxLength?: number | undefined;
1774
+ readonly minLength?: number | undefined;
1775
+ readonly precision?: number | undefined;
1776
+ readonly scale?: number | undefined;
1777
+ readonly min?: number | undefined;
1778
+ readonly max?: number | undefined;
1779
+ readonly reference?: string | undefined;
1780
+ readonly referenceFilters?: string[] | undefined;
1781
+ readonly writeRequiresMasterRead?: boolean | undefined;
1782
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
1783
+ readonly expression?: string | undefined;
1784
+ readonly summaryOperations?: {
1785
+ object: string;
1786
+ function: "min" | "max" | "count" | "sum" | "avg";
1787
+ field: string;
1788
+ } | undefined;
1789
+ readonly language?: string | undefined;
1790
+ readonly theme?: string | undefined;
1791
+ readonly lineNumbers?: boolean | undefined;
1792
+ readonly maxRating?: number | undefined;
1793
+ readonly allowHalf?: boolean | undefined;
1794
+ readonly displayMap?: boolean | undefined;
1795
+ readonly allowGeocoding?: boolean | undefined;
1796
+ readonly addressFormat?: "us" | "uk" | "international" | undefined;
1797
+ readonly colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
1798
+ readonly allowAlpha?: boolean | undefined;
1799
+ readonly presetColors?: string[] | undefined;
1800
+ readonly hidden?: boolean | undefined;
1801
+ readonly readonly?: boolean | undefined;
1802
+ readonly encryption?: boolean | undefined;
1803
+ readonly index?: boolean | undefined;
1804
+ readonly externalId?: boolean | undefined;
1805
+ readonly type: "signature";
1806
+ };
1807
+ };
1808
+ //# sourceMappingURL=field.zod.d.ts.map