@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,327 @@
1
+ {
2
+ "$ref": "#/definitions/FieldWidgetProps",
3
+ "definitions": {
4
+ "FieldWidgetProps": {
5
+ "type": "object",
6
+ "properties": {
7
+ "value": {
8
+ "description": "Current field value"
9
+ },
10
+ "readonly": {
11
+ "type": "boolean",
12
+ "default": false,
13
+ "description": "Read-only mode flag"
14
+ },
15
+ "required": {
16
+ "type": "boolean",
17
+ "default": false,
18
+ "description": "Required field flag"
19
+ },
20
+ "error": {
21
+ "type": "string",
22
+ "description": "Validation error message"
23
+ },
24
+ "field": {
25
+ "type": "object",
26
+ "properties": {
27
+ "name": {
28
+ "type": "string",
29
+ "pattern": "^[a-z_][a-z0-9_]*$",
30
+ "description": "Machine name (snake_case)"
31
+ },
32
+ "label": {
33
+ "type": "string",
34
+ "description": "Human readable label"
35
+ },
36
+ "type": {
37
+ "type": "string",
38
+ "enum": [
39
+ "text",
40
+ "textarea",
41
+ "email",
42
+ "url",
43
+ "phone",
44
+ "password",
45
+ "markdown",
46
+ "html",
47
+ "richtext",
48
+ "number",
49
+ "currency",
50
+ "percent",
51
+ "date",
52
+ "datetime",
53
+ "time",
54
+ "boolean",
55
+ "select",
56
+ "lookup",
57
+ "master_detail",
58
+ "image",
59
+ "file",
60
+ "avatar",
61
+ "formula",
62
+ "summary",
63
+ "autonumber",
64
+ "location",
65
+ "address",
66
+ "code",
67
+ "color",
68
+ "rating",
69
+ "signature"
70
+ ],
71
+ "description": "Field Data Type"
72
+ },
73
+ "description": {
74
+ "type": "string",
75
+ "description": "Tooltip/Help text"
76
+ },
77
+ "format": {
78
+ "type": "string",
79
+ "description": "Format string (e.g. email, phone)"
80
+ },
81
+ "required": {
82
+ "type": "boolean",
83
+ "default": false,
84
+ "description": "Is required"
85
+ },
86
+ "searchable": {
87
+ "type": "boolean",
88
+ "default": false,
89
+ "description": "Is searchable"
90
+ },
91
+ "multiple": {
92
+ "type": "boolean",
93
+ "default": false,
94
+ "description": "Allow multiple values (Stores as Array/JSON). Applicable for select, lookup, file, image."
95
+ },
96
+ "unique": {
97
+ "type": "boolean",
98
+ "default": false,
99
+ "description": "Is unique constraint"
100
+ },
101
+ "defaultValue": {
102
+ "description": "Default value"
103
+ },
104
+ "maxLength": {
105
+ "type": "number",
106
+ "description": "Max character length"
107
+ },
108
+ "minLength": {
109
+ "type": "number",
110
+ "description": "Min character length"
111
+ },
112
+ "precision": {
113
+ "type": "number",
114
+ "description": "Total digits"
115
+ },
116
+ "scale": {
117
+ "type": "number",
118
+ "description": "Decimal places"
119
+ },
120
+ "min": {
121
+ "type": "number",
122
+ "description": "Minimum value"
123
+ },
124
+ "max": {
125
+ "type": "number",
126
+ "description": "Maximum value"
127
+ },
128
+ "options": {
129
+ "type": "array",
130
+ "items": {
131
+ "type": "object",
132
+ "properties": {
133
+ "label": {
134
+ "type": "string",
135
+ "description": "Display label"
136
+ },
137
+ "value": {
138
+ "type": "string",
139
+ "description": "Stored value"
140
+ },
141
+ "color": {
142
+ "type": "string",
143
+ "description": "Color code for badges/charts"
144
+ },
145
+ "default": {
146
+ "type": "boolean",
147
+ "description": "Is default option"
148
+ }
149
+ },
150
+ "required": [
151
+ "label",
152
+ "value"
153
+ ],
154
+ "additionalProperties": false
155
+ },
156
+ "description": "Static options for select/multiselect"
157
+ },
158
+ "reference": {
159
+ "type": "string",
160
+ "description": "Target Object Name"
161
+ },
162
+ "referenceFilters": {
163
+ "type": "array",
164
+ "items": {
165
+ "type": "string"
166
+ },
167
+ "description": "Filters applied to lookup dialogs (e.g. \"active = true\")"
168
+ },
169
+ "writeRequiresMasterRead": {
170
+ "type": "boolean",
171
+ "description": "If true, user needs read access to master record to edit this field"
172
+ },
173
+ "deleteBehavior": {
174
+ "type": "string",
175
+ "enum": [
176
+ "set_null",
177
+ "cascade",
178
+ "restrict"
179
+ ],
180
+ "default": "set_null",
181
+ "description": "What happens if referenced record is deleted"
182
+ },
183
+ "expression": {
184
+ "type": "string",
185
+ "description": "Formula expression"
186
+ },
187
+ "formula": {
188
+ "type": "string",
189
+ "description": "Deprecated: Use expression"
190
+ },
191
+ "summaryOperations": {
192
+ "type": "object",
193
+ "properties": {
194
+ "object": {
195
+ "type": "string"
196
+ },
197
+ "field": {
198
+ "type": "string"
199
+ },
200
+ "function": {
201
+ "type": "string",
202
+ "enum": [
203
+ "count",
204
+ "sum",
205
+ "min",
206
+ "max",
207
+ "avg"
208
+ ]
209
+ }
210
+ },
211
+ "required": [
212
+ "object",
213
+ "field",
214
+ "function"
215
+ ],
216
+ "additionalProperties": false,
217
+ "description": "Roll-up summary definition"
218
+ },
219
+ "language": {
220
+ "type": "string",
221
+ "description": "Programming language for syntax highlighting (e.g., javascript, python, sql)"
222
+ },
223
+ "theme": {
224
+ "type": "string",
225
+ "description": "Code editor theme (e.g., dark, light, monokai)"
226
+ },
227
+ "lineNumbers": {
228
+ "type": "boolean",
229
+ "description": "Show line numbers in code editor"
230
+ },
231
+ "maxRating": {
232
+ "type": "number",
233
+ "description": "Maximum rating value (default: 5)"
234
+ },
235
+ "allowHalf": {
236
+ "type": "boolean",
237
+ "description": "Allow half-star ratings"
238
+ },
239
+ "displayMap": {
240
+ "type": "boolean",
241
+ "description": "Display map widget for location field"
242
+ },
243
+ "allowGeocoding": {
244
+ "type": "boolean",
245
+ "description": "Allow address-to-coordinate conversion"
246
+ },
247
+ "addressFormat": {
248
+ "type": "string",
249
+ "enum": [
250
+ "us",
251
+ "uk",
252
+ "international"
253
+ ],
254
+ "description": "Address format template"
255
+ },
256
+ "colorFormat": {
257
+ "type": "string",
258
+ "enum": [
259
+ "hex",
260
+ "rgb",
261
+ "rgba",
262
+ "hsl"
263
+ ],
264
+ "description": "Color value format"
265
+ },
266
+ "allowAlpha": {
267
+ "type": "boolean",
268
+ "description": "Allow transparency/alpha channel"
269
+ },
270
+ "presetColors": {
271
+ "type": "array",
272
+ "items": {
273
+ "type": "string"
274
+ },
275
+ "description": "Preset color options"
276
+ },
277
+ "hidden": {
278
+ "type": "boolean",
279
+ "default": false,
280
+ "description": "Hidden from default UI"
281
+ },
282
+ "readonly": {
283
+ "type": "boolean",
284
+ "default": false,
285
+ "description": "Read-only in UI"
286
+ },
287
+ "encryption": {
288
+ "type": "boolean",
289
+ "default": false,
290
+ "description": "Encrypt at rest"
291
+ },
292
+ "index": {
293
+ "type": "boolean",
294
+ "default": false,
295
+ "description": "Create standard database index"
296
+ },
297
+ "externalId": {
298
+ "type": "boolean",
299
+ "default": false,
300
+ "description": "Is external ID for upsert operations"
301
+ }
302
+ },
303
+ "required": [
304
+ "type"
305
+ ],
306
+ "additionalProperties": false,
307
+ "description": "Field schema definition"
308
+ },
309
+ "record": {
310
+ "type": "object",
311
+ "additionalProperties": {},
312
+ "description": "Complete record data"
313
+ },
314
+ "options": {
315
+ "type": "object",
316
+ "additionalProperties": {},
317
+ "description": "Custom widget options"
318
+ }
319
+ },
320
+ "required": [
321
+ "field"
322
+ ],
323
+ "additionalProperties": false
324
+ }
325
+ },
326
+ "$schema": "http://json-schema.org/draft-07/schema#"
327
+ }
@@ -0,0 +1,52 @@
1
+ {
2
+ "$ref": "#/definitions/FilterNode",
3
+ "definitions": {
4
+ "FilterNode": {
5
+ "anyOf": [
6
+ {
7
+ "type": "array",
8
+ "minItems": 3,
9
+ "maxItems": 3,
10
+ "items": [
11
+ {
12
+ "type": "string"
13
+ },
14
+ {
15
+ "type": "string",
16
+ "enum": [
17
+ "=",
18
+ "!=",
19
+ "<>",
20
+ ">",
21
+ ">=",
22
+ "<",
23
+ "<=",
24
+ "startswith",
25
+ "contains",
26
+ "notcontains",
27
+ "between",
28
+ "in",
29
+ "notin",
30
+ "is_null",
31
+ "is_not_null"
32
+ ]
33
+ },
34
+ {}
35
+ ]
36
+ },
37
+ {
38
+ "type": "array",
39
+ "items": {
40
+ "anyOf": [
41
+ {
42
+ "type": "string"
43
+ },
44
+ {}
45
+ ]
46
+ }
47
+ }
48
+ ]
49
+ }
50
+ },
51
+ "$schema": "http://json-schema.org/draft-07/schema#"
52
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "$ref": "#/definitions/FilterOperator",
3
+ "definitions": {
4
+ "FilterOperator": {
5
+ "type": "string",
6
+ "enum": [
7
+ "=",
8
+ "!=",
9
+ "<>",
10
+ ">",
11
+ ">=",
12
+ "<",
13
+ "<=",
14
+ "startswith",
15
+ "contains",
16
+ "notcontains",
17
+ "between",
18
+ "in",
19
+ "notin",
20
+ "is_null",
21
+ "is_not_null"
22
+ ]
23
+ }
24
+ },
25
+ "$schema": "http://json-schema.org/draft-07/schema#"
26
+ }
@@ -0,0 +1,186 @@
1
+ {
2
+ "$ref": "#/definitions/Flow",
3
+ "definitions": {
4
+ "Flow": {
5
+ "type": "object",
6
+ "properties": {
7
+ "name": {
8
+ "type": "string",
9
+ "pattern": "^[a-z_][a-z0-9_]*$",
10
+ "description": "Machine name"
11
+ },
12
+ "label": {
13
+ "type": "string",
14
+ "description": "Flow label"
15
+ },
16
+ "description": {
17
+ "type": "string"
18
+ },
19
+ "type": {
20
+ "type": "string",
21
+ "enum": [
22
+ "autolaunched",
23
+ "record_change",
24
+ "schedule",
25
+ "screen",
26
+ "api"
27
+ ],
28
+ "description": "Flow type"
29
+ },
30
+ "variables": {
31
+ "type": "array",
32
+ "items": {
33
+ "type": "object",
34
+ "properties": {
35
+ "name": {
36
+ "type": "string",
37
+ "description": "Variable name"
38
+ },
39
+ "type": {
40
+ "type": "string",
41
+ "description": "Data type (text, number, boolean, object, list)"
42
+ },
43
+ "isInput": {
44
+ "type": "boolean",
45
+ "default": false,
46
+ "description": "Is input parameter"
47
+ },
48
+ "isOutput": {
49
+ "type": "boolean",
50
+ "default": false,
51
+ "description": "Is output parameter"
52
+ }
53
+ },
54
+ "required": [
55
+ "name",
56
+ "type"
57
+ ],
58
+ "additionalProperties": false
59
+ },
60
+ "description": "Flow variables"
61
+ },
62
+ "nodes": {
63
+ "type": "array",
64
+ "items": {
65
+ "type": "object",
66
+ "properties": {
67
+ "id": {
68
+ "type": "string",
69
+ "description": "Node unique ID"
70
+ },
71
+ "type": {
72
+ "type": "string",
73
+ "enum": [
74
+ "start",
75
+ "end",
76
+ "decision",
77
+ "assignment",
78
+ "loop",
79
+ "create_record",
80
+ "update_record",
81
+ "delete_record",
82
+ "get_record",
83
+ "http_request",
84
+ "script",
85
+ "wait",
86
+ "subflow"
87
+ ],
88
+ "description": "Action type"
89
+ },
90
+ "label": {
91
+ "type": "string",
92
+ "description": "Node label"
93
+ },
94
+ "config": {
95
+ "type": "object",
96
+ "additionalProperties": {},
97
+ "description": "Node configuration"
98
+ },
99
+ "position": {
100
+ "type": "object",
101
+ "properties": {
102
+ "x": {
103
+ "type": "number"
104
+ },
105
+ "y": {
106
+ "type": "number"
107
+ }
108
+ },
109
+ "required": [
110
+ "x",
111
+ "y"
112
+ ],
113
+ "additionalProperties": false
114
+ }
115
+ },
116
+ "required": [
117
+ "id",
118
+ "type",
119
+ "label"
120
+ ],
121
+ "additionalProperties": false
122
+ },
123
+ "description": "Flow nodes"
124
+ },
125
+ "edges": {
126
+ "type": "array",
127
+ "items": {
128
+ "type": "object",
129
+ "properties": {
130
+ "id": {
131
+ "type": "string",
132
+ "description": "Edge unique ID"
133
+ },
134
+ "source": {
135
+ "type": "string",
136
+ "description": "Source Node ID"
137
+ },
138
+ "target": {
139
+ "type": "string",
140
+ "description": "Target Node ID"
141
+ },
142
+ "condition": {
143
+ "type": "string",
144
+ "description": "Expression returning boolean used for branching"
145
+ },
146
+ "label": {
147
+ "type": "string",
148
+ "description": "Label on the connector"
149
+ }
150
+ },
151
+ "required": [
152
+ "id",
153
+ "source",
154
+ "target"
155
+ ],
156
+ "additionalProperties": false
157
+ },
158
+ "description": "Flow connections"
159
+ },
160
+ "active": {
161
+ "type": "boolean",
162
+ "default": false,
163
+ "description": "Is active"
164
+ },
165
+ "runAs": {
166
+ "type": "string",
167
+ "enum": [
168
+ "system",
169
+ "user"
170
+ ],
171
+ "default": "user",
172
+ "description": "Execution context"
173
+ }
174
+ },
175
+ "required": [
176
+ "name",
177
+ "label",
178
+ "type",
179
+ "nodes",
180
+ "edges"
181
+ ],
182
+ "additionalProperties": false
183
+ }
184
+ },
185
+ "$schema": "http://json-schema.org/draft-07/schema#"
186
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "$ref": "#/definitions/FlowEdge",
3
+ "definitions": {
4
+ "FlowEdge": {
5
+ "type": "object",
6
+ "properties": {
7
+ "id": {
8
+ "type": "string",
9
+ "description": "Edge unique ID"
10
+ },
11
+ "source": {
12
+ "type": "string",
13
+ "description": "Source Node ID"
14
+ },
15
+ "target": {
16
+ "type": "string",
17
+ "description": "Target Node ID"
18
+ },
19
+ "condition": {
20
+ "type": "string",
21
+ "description": "Expression returning boolean used for branching"
22
+ },
23
+ "label": {
24
+ "type": "string",
25
+ "description": "Label on the connector"
26
+ }
27
+ },
28
+ "required": [
29
+ "id",
30
+ "source",
31
+ "target"
32
+ ],
33
+ "additionalProperties": false
34
+ }
35
+ },
36
+ "$schema": "http://json-schema.org/draft-07/schema#"
37
+ }
@@ -0,0 +1,65 @@
1
+ {
2
+ "$ref": "#/definitions/FlowNode",
3
+ "definitions": {
4
+ "FlowNode": {
5
+ "type": "object",
6
+ "properties": {
7
+ "id": {
8
+ "type": "string",
9
+ "description": "Node unique ID"
10
+ },
11
+ "type": {
12
+ "type": "string",
13
+ "enum": [
14
+ "start",
15
+ "end",
16
+ "decision",
17
+ "assignment",
18
+ "loop",
19
+ "create_record",
20
+ "update_record",
21
+ "delete_record",
22
+ "get_record",
23
+ "http_request",
24
+ "script",
25
+ "wait",
26
+ "subflow"
27
+ ],
28
+ "description": "Action type"
29
+ },
30
+ "label": {
31
+ "type": "string",
32
+ "description": "Node label"
33
+ },
34
+ "config": {
35
+ "type": "object",
36
+ "additionalProperties": {},
37
+ "description": "Node configuration"
38
+ },
39
+ "position": {
40
+ "type": "object",
41
+ "properties": {
42
+ "x": {
43
+ "type": "number"
44
+ },
45
+ "y": {
46
+ "type": "number"
47
+ }
48
+ },
49
+ "required": [
50
+ "x",
51
+ "y"
52
+ ],
53
+ "additionalProperties": false
54
+ }
55
+ },
56
+ "required": [
57
+ "id",
58
+ "type",
59
+ "label"
60
+ ],
61
+ "additionalProperties": false
62
+ }
63
+ },
64
+ "$schema": "http://json-schema.org/draft-07/schema#"
65
+ }