@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,598 @@
1
+ {
2
+ "$ref": "#/definitions/Mapping",
3
+ "definitions": {
4
+ "Mapping": {
5
+ "type": "object",
6
+ "properties": {
7
+ "name": {
8
+ "type": "string",
9
+ "pattern": "^[a-z_][a-z0-9_]*$"
10
+ },
11
+ "label": {
12
+ "type": "string"
13
+ },
14
+ "sourceFormat": {
15
+ "type": "string",
16
+ "enum": [
17
+ "csv",
18
+ "json",
19
+ "xml",
20
+ "sql"
21
+ ],
22
+ "default": "csv"
23
+ },
24
+ "targetObject": {
25
+ "type": "string",
26
+ "description": "Target Object Name"
27
+ },
28
+ "fieldMapping": {
29
+ "type": "array",
30
+ "items": {
31
+ "type": "object",
32
+ "properties": {
33
+ "source": {
34
+ "anyOf": [
35
+ {
36
+ "type": "string"
37
+ },
38
+ {
39
+ "type": "array",
40
+ "items": {
41
+ "type": "string"
42
+ }
43
+ }
44
+ ],
45
+ "description": "Source column header(s)"
46
+ },
47
+ "target": {
48
+ "anyOf": [
49
+ {
50
+ "type": "string"
51
+ },
52
+ {
53
+ "type": "array",
54
+ "items": {
55
+ "type": "string"
56
+ }
57
+ }
58
+ ],
59
+ "description": "Target object field(s)"
60
+ },
61
+ "transform": {
62
+ "type": "string",
63
+ "enum": [
64
+ "none",
65
+ "constant",
66
+ "lookup",
67
+ "split",
68
+ "join",
69
+ "javascript",
70
+ "map"
71
+ ],
72
+ "default": "none"
73
+ },
74
+ "params": {
75
+ "type": "object",
76
+ "properties": {
77
+ "value": {},
78
+ "object": {
79
+ "type": "string"
80
+ },
81
+ "fromField": {
82
+ "type": "string"
83
+ },
84
+ "toField": {
85
+ "type": "string"
86
+ },
87
+ "autoCreate": {
88
+ "type": "boolean"
89
+ },
90
+ "valueMap": {
91
+ "type": "object",
92
+ "additionalProperties": {}
93
+ },
94
+ "separator": {
95
+ "type": "string"
96
+ }
97
+ },
98
+ "additionalProperties": false
99
+ }
100
+ },
101
+ "required": [
102
+ "source",
103
+ "target"
104
+ ],
105
+ "additionalProperties": false
106
+ }
107
+ },
108
+ "mode": {
109
+ "type": "string",
110
+ "enum": [
111
+ "insert",
112
+ "update",
113
+ "upsert"
114
+ ],
115
+ "default": "insert"
116
+ },
117
+ "upsertKey": {
118
+ "type": "array",
119
+ "items": {
120
+ "type": "string"
121
+ },
122
+ "description": "Fields to match for upsert (e.g. email)"
123
+ },
124
+ "extractQuery": {
125
+ "type": "object",
126
+ "properties": {
127
+ "object": {
128
+ "type": "string",
129
+ "description": "Object name (e.g. account)"
130
+ },
131
+ "fields": {
132
+ "type": "array",
133
+ "items": {
134
+ "anyOf": [
135
+ {
136
+ "type": "string"
137
+ },
138
+ {
139
+ "type": "object",
140
+ "properties": {
141
+ "field": {
142
+ "type": "string"
143
+ },
144
+ "fields": {
145
+ "type": "array",
146
+ "items": {}
147
+ },
148
+ "alias": {
149
+ "type": "string"
150
+ }
151
+ },
152
+ "required": [
153
+ "field"
154
+ ],
155
+ "additionalProperties": false
156
+ }
157
+ ]
158
+ },
159
+ "description": "Fields to retrieve"
160
+ },
161
+ "aggregations": {
162
+ "type": "array",
163
+ "items": {
164
+ "type": "object",
165
+ "properties": {
166
+ "function": {
167
+ "type": "string",
168
+ "enum": [
169
+ "count",
170
+ "sum",
171
+ "avg",
172
+ "min",
173
+ "max",
174
+ "count_distinct",
175
+ "array_agg",
176
+ "string_agg"
177
+ ],
178
+ "description": "Aggregation function"
179
+ },
180
+ "field": {
181
+ "type": "string",
182
+ "description": "Field to aggregate (optional for COUNT(*))"
183
+ },
184
+ "alias": {
185
+ "type": "string",
186
+ "description": "Result column alias"
187
+ },
188
+ "distinct": {
189
+ "type": "boolean",
190
+ "description": "Apply DISTINCT before aggregation"
191
+ }
192
+ },
193
+ "required": [
194
+ "function",
195
+ "alias"
196
+ ],
197
+ "additionalProperties": false
198
+ },
199
+ "description": "Aggregation functions (GROUP BY)"
200
+ },
201
+ "windowFunctions": {
202
+ "type": "array",
203
+ "items": {
204
+ "type": "object",
205
+ "properties": {
206
+ "function": {
207
+ "type": "string",
208
+ "enum": [
209
+ "row_number",
210
+ "rank",
211
+ "dense_rank",
212
+ "percent_rank",
213
+ "lag",
214
+ "lead",
215
+ "first_value",
216
+ "last_value",
217
+ "sum",
218
+ "avg",
219
+ "count",
220
+ "min",
221
+ "max"
222
+ ],
223
+ "description": "Window function name"
224
+ },
225
+ "field": {
226
+ "type": "string",
227
+ "description": "Field to operate on (for aggregate window functions)"
228
+ },
229
+ "alias": {
230
+ "type": "string",
231
+ "description": "Result column alias"
232
+ },
233
+ "over": {
234
+ "type": "object",
235
+ "properties": {
236
+ "partitionBy": {
237
+ "type": "array",
238
+ "items": {
239
+ "type": "string"
240
+ },
241
+ "description": "PARTITION BY fields"
242
+ },
243
+ "orderBy": {
244
+ "type": "array",
245
+ "items": {
246
+ "type": "object",
247
+ "properties": {
248
+ "field": {
249
+ "type": "string"
250
+ },
251
+ "order": {
252
+ "type": "string",
253
+ "enum": [
254
+ "asc",
255
+ "desc"
256
+ ],
257
+ "default": "asc"
258
+ }
259
+ },
260
+ "required": [
261
+ "field"
262
+ ],
263
+ "additionalProperties": false
264
+ },
265
+ "description": "ORDER BY specification"
266
+ },
267
+ "frame": {
268
+ "type": "object",
269
+ "properties": {
270
+ "type": {
271
+ "type": "string",
272
+ "enum": [
273
+ "rows",
274
+ "range"
275
+ ]
276
+ },
277
+ "start": {
278
+ "type": "string",
279
+ "description": "Frame start (e.g., \"UNBOUNDED PRECEDING\", \"1 PRECEDING\")"
280
+ },
281
+ "end": {
282
+ "type": "string",
283
+ "description": "Frame end (e.g., \"CURRENT ROW\", \"1 FOLLOWING\")"
284
+ }
285
+ },
286
+ "additionalProperties": false,
287
+ "description": "Window frame specification"
288
+ }
289
+ },
290
+ "additionalProperties": false,
291
+ "description": "Window specification (OVER clause)"
292
+ }
293
+ },
294
+ "required": [
295
+ "function",
296
+ "alias",
297
+ "over"
298
+ ],
299
+ "additionalProperties": false
300
+ },
301
+ "description": "Window functions with OVER clause"
302
+ },
303
+ "filters": {
304
+ "anyOf": [
305
+ {
306
+ "type": "array",
307
+ "minItems": 3,
308
+ "maxItems": 3,
309
+ "items": [
310
+ {
311
+ "type": "string"
312
+ },
313
+ {
314
+ "type": "string",
315
+ "enum": [
316
+ "=",
317
+ "!=",
318
+ "<>",
319
+ ">",
320
+ ">=",
321
+ "<",
322
+ "<=",
323
+ "startswith",
324
+ "contains",
325
+ "notcontains",
326
+ "between",
327
+ "in",
328
+ "notin",
329
+ "is_null",
330
+ "is_not_null"
331
+ ]
332
+ },
333
+ {}
334
+ ]
335
+ },
336
+ {
337
+ "type": "array",
338
+ "items": {
339
+ "anyOf": [
340
+ {
341
+ "type": "string"
342
+ },
343
+ {}
344
+ ]
345
+ }
346
+ }
347
+ ],
348
+ "description": "Filtering criteria"
349
+ },
350
+ "joins": {
351
+ "type": "array",
352
+ "items": {
353
+ "type": "object",
354
+ "properties": {
355
+ "type": {
356
+ "type": "string",
357
+ "enum": [
358
+ "inner",
359
+ "left",
360
+ "right",
361
+ "full"
362
+ ],
363
+ "description": "Join type"
364
+ },
365
+ "object": {
366
+ "type": "string",
367
+ "description": "Object/table to join"
368
+ },
369
+ "alias": {
370
+ "type": "string",
371
+ "description": "Table alias"
372
+ },
373
+ "on": {
374
+ "anyOf": [
375
+ {
376
+ "type": "array",
377
+ "minItems": 3,
378
+ "maxItems": 3,
379
+ "items": [
380
+ {
381
+ "type": "string"
382
+ },
383
+ {
384
+ "type": "string",
385
+ "enum": [
386
+ "=",
387
+ "!=",
388
+ "<>",
389
+ ">",
390
+ ">=",
391
+ "<",
392
+ "<=",
393
+ "startswith",
394
+ "contains",
395
+ "notcontains",
396
+ "between",
397
+ "in",
398
+ "notin",
399
+ "is_null",
400
+ "is_not_null"
401
+ ]
402
+ },
403
+ {}
404
+ ]
405
+ },
406
+ {
407
+ "type": "array",
408
+ "items": {
409
+ "anyOf": [
410
+ {
411
+ "type": "string"
412
+ },
413
+ {
414
+ "anyOf": [
415
+ {
416
+ "type": "array",
417
+ "minItems": 3,
418
+ "maxItems": 3,
419
+ "items": [
420
+ {
421
+ "type": "string"
422
+ },
423
+ {
424
+ "type": "string",
425
+ "enum": [
426
+ "=",
427
+ "!=",
428
+ "<>",
429
+ ">",
430
+ ">=",
431
+ "<",
432
+ "<=",
433
+ "startswith",
434
+ "contains",
435
+ "notcontains",
436
+ "between",
437
+ "in",
438
+ "notin",
439
+ "is_null",
440
+ "is_not_null"
441
+ ]
442
+ },
443
+ {}
444
+ ]
445
+ },
446
+ {
447
+ "type": "array",
448
+ "items": {
449
+ "anyOf": [
450
+ {
451
+ "type": "string"
452
+ },
453
+ {}
454
+ ]
455
+ }
456
+ }
457
+ ]
458
+ }
459
+ ]
460
+ }
461
+ }
462
+ ],
463
+ "description": "Join condition"
464
+ },
465
+ "subquery": {
466
+ "description": "Subquery instead of object"
467
+ }
468
+ },
469
+ "required": [
470
+ "type",
471
+ "object",
472
+ "on"
473
+ ],
474
+ "additionalProperties": false
475
+ },
476
+ "description": "Table joins"
477
+ },
478
+ "groupBy": {
479
+ "type": "array",
480
+ "items": {
481
+ "type": "string"
482
+ },
483
+ "description": "GROUP BY fields"
484
+ },
485
+ "having": {
486
+ "anyOf": [
487
+ {
488
+ "type": "array",
489
+ "minItems": 3,
490
+ "maxItems": 3,
491
+ "items": [
492
+ {
493
+ "type": "string"
494
+ },
495
+ {
496
+ "type": "string",
497
+ "enum": [
498
+ "=",
499
+ "!=",
500
+ "<>",
501
+ ">",
502
+ ">=",
503
+ "<",
504
+ "<=",
505
+ "startswith",
506
+ "contains",
507
+ "notcontains",
508
+ "between",
509
+ "in",
510
+ "notin",
511
+ "is_null",
512
+ "is_not_null"
513
+ ]
514
+ },
515
+ {}
516
+ ]
517
+ },
518
+ {
519
+ "type": "array",
520
+ "items": {
521
+ "anyOf": [
522
+ {
523
+ "type": "string"
524
+ },
525
+ {}
526
+ ]
527
+ }
528
+ }
529
+ ],
530
+ "description": "HAVING clause for aggregation filtering"
531
+ },
532
+ "sort": {
533
+ "type": "array",
534
+ "items": {
535
+ "type": "object",
536
+ "properties": {
537
+ "field": {
538
+ "type": "string"
539
+ },
540
+ "order": {
541
+ "type": "string",
542
+ "enum": [
543
+ "asc",
544
+ "desc"
545
+ ],
546
+ "default": "asc"
547
+ }
548
+ },
549
+ "required": [
550
+ "field"
551
+ ],
552
+ "additionalProperties": false
553
+ },
554
+ "description": "Sorting instructions"
555
+ },
556
+ "top": {
557
+ "type": "number",
558
+ "description": "Limit results"
559
+ },
560
+ "skip": {
561
+ "type": "number",
562
+ "description": "Offset results"
563
+ },
564
+ "distinct": {
565
+ "type": "boolean",
566
+ "description": "SELECT DISTINCT flag"
567
+ }
568
+ },
569
+ "required": [
570
+ "object"
571
+ ],
572
+ "additionalProperties": false,
573
+ "description": "Query to run for export only"
574
+ },
575
+ "errorPolicy": {
576
+ "type": "string",
577
+ "enum": [
578
+ "skip",
579
+ "abort",
580
+ "retry"
581
+ ],
582
+ "default": "skip"
583
+ },
584
+ "batchSize": {
585
+ "type": "number",
586
+ "default": 1000
587
+ }
588
+ },
589
+ "required": [
590
+ "name",
591
+ "targetObject",
592
+ "fieldMapping"
593
+ ],
594
+ "additionalProperties": false
595
+ }
596
+ },
597
+ "$schema": "http://json-schema.org/draft-07/schema#"
598
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "$ref": "#/definitions/MenuItem",
3
+ "definitions": {
4
+ "MenuItem": {
5
+ "type": "object",
6
+ "properties": {
7
+ "label": {
8
+ "type": "string",
9
+ "description": "Display label for the menu item"
10
+ },
11
+ "path": {
12
+ "type": "string",
13
+ "description": "Navigation path (route) for the menu item"
14
+ },
15
+ "icon": {
16
+ "type": "string",
17
+ "description": "Optional icon identifier for the menu item"
18
+ }
19
+ },
20
+ "required": [
21
+ "label",
22
+ "path"
23
+ ],
24
+ "additionalProperties": false
25
+ }
26
+ },
27
+ "$schema": "http://json-schema.org/draft-07/schema#"
28
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "$ref": "#/definitions/MetricType",
3
+ "definitions": {
4
+ "MetricType": {
5
+ "type": "string",
6
+ "enum": [
7
+ "boolean",
8
+ "counter",
9
+ "gauge"
10
+ ]
11
+ }
12
+ },
13
+ "$schema": "http://json-schema.org/draft-07/schema#"
14
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "$ref": "#/definitions/ModificationResult",
3
+ "definitions": {
4
+ "ModificationResult": {
5
+ "type": "object",
6
+ "properties": {
7
+ "id": {
8
+ "type": "string",
9
+ "description": "Record ID if processed"
10
+ },
11
+ "success": {
12
+ "type": "boolean"
13
+ },
14
+ "errors": {
15
+ "type": "array",
16
+ "items": {
17
+ "type": "object",
18
+ "properties": {
19
+ "code": {
20
+ "type": "string",
21
+ "description": "Error code (e.g. validation_error)"
22
+ },
23
+ "message": {
24
+ "type": "string",
25
+ "description": "Readable error message"
26
+ },
27
+ "details": {
28
+ "description": "Additional error context (e.g. field validation errors)"
29
+ }
30
+ },
31
+ "required": [
32
+ "code",
33
+ "message"
34
+ ],
35
+ "additionalProperties": false
36
+ }
37
+ }
38
+ },
39
+ "required": [
40
+ "success"
41
+ ],
42
+ "additionalProperties": false
43
+ }
44
+ },
45
+ "$schema": "http://json-schema.org/draft-07/schema#"
46
+ }