@objectstack/spec 0.3.3 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (304) hide show
  1. package/dist/ai/conversation.zod.d.ts +14 -14
  2. package/dist/ai/cost.zod.d.ts +112 -112
  3. package/dist/ai/model-registry.zod.d.ts +44 -44
  4. package/dist/ai/nlq.zod.d.ts +2 -2
  5. package/dist/ai/orchestration.zod.d.ts +6 -6
  6. package/dist/ai/predictive.zod.d.ts +8 -8
  7. package/dist/ai/rag-pipeline.zod.d.ts +62 -62
  8. package/dist/api/contract.zod.d.ts +92 -92
  9. package/dist/api/discovery.zod.d.ts +2 -2
  10. package/dist/api/index.d.ts +2 -0
  11. package/dist/api/index.d.ts.map +1 -1
  12. package/dist/api/index.js +2 -0
  13. package/dist/api/odata.zod.d.ts +482 -0
  14. package/dist/api/odata.zod.d.ts.map +1 -0
  15. package/dist/api/odata.zod.js +401 -0
  16. package/dist/api/router.zod.d.ts +4 -4
  17. package/dist/auth/config.zod.d.ts +21 -21
  18. package/dist/auth/index.d.ts +1 -0
  19. package/dist/auth/index.d.ts.map +1 -1
  20. package/dist/auth/index.js +1 -0
  21. package/dist/auth/organization.zod.d.ts +2 -2
  22. package/dist/auth/role.zod.d.ts +14 -0
  23. package/dist/auth/role.zod.d.ts.map +1 -1
  24. package/dist/auth/role.zod.js +16 -1
  25. package/dist/auth/scim.zod.d.ts +2732 -0
  26. package/dist/auth/scim.zod.d.ts.map +1 -0
  27. package/dist/auth/scim.zod.js +811 -0
  28. package/dist/automation/approval.zod.d.ts +643 -0
  29. package/dist/automation/approval.zod.d.ts.map +1 -0
  30. package/dist/automation/approval.zod.js +84 -0
  31. package/dist/automation/connector.zod.d.ts +1284 -0
  32. package/dist/automation/connector.zod.d.ts.map +1 -0
  33. package/dist/automation/connector.zod.js +500 -0
  34. package/dist/automation/etl.zod.d.ts +623 -0
  35. package/dist/automation/etl.zod.d.ts.map +1 -0
  36. package/dist/automation/etl.zod.js +359 -0
  37. package/dist/automation/flow.zod.d.ts +6 -6
  38. package/dist/automation/index.d.ts +4 -0
  39. package/dist/automation/index.d.ts.map +1 -1
  40. package/dist/automation/index.js +4 -0
  41. package/dist/automation/sync.zod.d.ts +854 -0
  42. package/dist/automation/sync.zod.d.ts.map +1 -0
  43. package/dist/automation/sync.zod.js +444 -0
  44. package/dist/automation/webhook.zod.d.ts +24 -1
  45. package/dist/automation/webhook.zod.d.ts.map +1 -1
  46. package/dist/automation/webhook.zod.js +27 -3
  47. package/dist/automation/workflow.zod.d.ts +14 -0
  48. package/dist/automation/workflow.zod.d.ts.map +1 -1
  49. package/dist/automation/workflow.zod.js +16 -1
  50. package/dist/data/field.zod.d.ts +338 -8
  51. package/dist/data/field.zod.d.ts.map +1 -1
  52. package/dist/data/field.zod.js +100 -16
  53. package/dist/data/mapping.zod.d.ts +22 -10
  54. package/dist/data/mapping.zod.d.ts.map +1 -1
  55. package/dist/data/mapping.zod.js +16 -3
  56. package/dist/data/object.zod.d.ts +116 -22
  57. package/dist/data/object.zod.d.ts.map +1 -1
  58. package/dist/data/object.zod.js +4 -4
  59. package/dist/data/validation.zod.d.ts +18 -18
  60. package/dist/hub/composer.zod.d.ts +43 -1940
  61. package/dist/hub/composer.zod.d.ts.map +1 -1
  62. package/dist/hub/composer.zod.js +1 -1
  63. package/dist/hub/license.zod.d.ts +2 -2
  64. package/dist/hub/marketplace.zod.d.ts +6 -6
  65. package/dist/index.d.ts +2 -2
  66. package/dist/index.d.ts.map +1 -1
  67. package/dist/index.js +6 -3
  68. package/dist/permission/index.d.ts +7 -5
  69. package/dist/permission/index.d.ts.map +1 -1
  70. package/dist/permission/index.js +7 -5
  71. package/dist/permission/permission.zod.d.ts +14 -0
  72. package/dist/permission/permission.zod.d.ts.map +1 -1
  73. package/dist/permission/permission.zod.js +16 -1
  74. package/dist/permission/rls.zod.d.ts +605 -0
  75. package/dist/permission/rls.zod.d.ts.map +1 -0
  76. package/dist/permission/rls.zod.js +615 -0
  77. package/dist/permission/territory.zod.d.ts +13 -0
  78. package/dist/permission/territory.zod.d.ts.map +1 -1
  79. package/dist/permission/territory.zod.js +15 -1
  80. package/dist/shared/identifiers.zod.d.ts +87 -0
  81. package/dist/shared/identifiers.zod.d.ts.map +1 -0
  82. package/dist/shared/identifiers.zod.js +101 -0
  83. package/dist/shared/index.d.ts +6 -0
  84. package/dist/shared/index.d.ts.map +1 -0
  85. package/dist/{driver → shared}/index.js +5 -4
  86. package/dist/stack.zod.d.ts +19869 -0
  87. package/dist/stack.zod.d.ts.map +1 -0
  88. package/dist/stack.zod.js +248 -0
  89. package/dist/system/audit.zod.d.ts +12 -12
  90. package/dist/{kernel → system}/context.zod.d.ts.map +1 -1
  91. package/dist/{driver → system}/datasource.zod.d.ts +2 -2
  92. package/dist/{driver → system}/datasource.zod.d.ts.map +1 -1
  93. package/dist/{driver → system/driver}/mongo.zod.d.ts +2 -2
  94. package/dist/system/driver/mongo.zod.d.ts.map +1 -0
  95. package/dist/{driver → system/driver}/postgres.zod.d.ts +4 -4
  96. package/dist/system/driver/postgres.zod.d.ts.map +1 -0
  97. package/dist/{driver → system}/driver.zod.d.ts +14 -14
  98. package/dist/{driver → system}/driver.zod.d.ts.map +1 -1
  99. package/dist/system/events.zod.d.ts +15 -12
  100. package/dist/system/events.zod.d.ts.map +1 -1
  101. package/dist/system/events.zod.js +5 -1
  102. package/dist/system/feature.zod.d.ts +131 -0
  103. package/dist/system/feature.zod.d.ts.map +1 -0
  104. package/dist/system/feature.zod.js +45 -0
  105. package/dist/system/index.d.ts +10 -0
  106. package/dist/system/index.d.ts.map +1 -1
  107. package/dist/system/index.js +12 -0
  108. package/dist/system/job.zod.d.ts +8 -8
  109. package/dist/{kernel → system}/logger.zod.d.ts +4 -4
  110. package/dist/{kernel → system}/logger.zod.d.ts.map +1 -1
  111. package/dist/system/manifest.zod.d.ts +518 -0
  112. package/dist/system/manifest.zod.d.ts.map +1 -0
  113. package/dist/{kernel → system}/manifest.zod.js +8 -17
  114. package/dist/{kernel → system}/plugin.zod.d.ts.map +1 -1
  115. package/dist/{kernel → system}/scoped-storage.zod.d.ts +2 -2
  116. package/dist/{kernel → system}/scoped-storage.zod.d.ts.map +1 -1
  117. package/dist/ui/action.zod.d.ts +35 -10
  118. package/dist/ui/action.zod.d.ts.map +1 -1
  119. package/dist/ui/action.zod.js +30 -1
  120. package/dist/ui/app.zod.d.ts +23 -8
  121. package/dist/ui/app.zod.d.ts.map +1 -1
  122. package/dist/ui/app.zod.js +32 -4
  123. package/dist/ui/block.zod.d.ts +265 -0
  124. package/dist/ui/block.zod.d.ts.map +1 -0
  125. package/dist/ui/block.zod.js +90 -0
  126. package/dist/ui/component.zod.d.ts +265 -0
  127. package/dist/ui/component.zod.d.ts.map +1 -0
  128. package/dist/ui/component.zod.js +90 -0
  129. package/dist/ui/dashboard.zod.d.ts +15 -15
  130. package/dist/ui/dashboard.zod.d.ts.map +1 -1
  131. package/dist/ui/dashboard.zod.js +18 -8
  132. package/dist/ui/index.d.ts +1 -0
  133. package/dist/ui/index.d.ts.map +1 -1
  134. package/dist/ui/index.js +1 -0
  135. package/dist/ui/page.zod.d.ts +21 -3
  136. package/dist/ui/page.zod.d.ts.map +1 -1
  137. package/dist/ui/page.zod.js +37 -4
  138. package/dist/ui/report.zod.d.ts +7 -7
  139. package/dist/ui/view.zod.d.ts +252 -240
  140. package/dist/ui/view.zod.d.ts.map +1 -1
  141. package/dist/ui/view.zod.js +32 -3
  142. package/dist/ui/widget.zod.d.ts +673 -5
  143. package/dist/ui/widget.zod.d.ts.map +1 -1
  144. package/dist/ui/widget.zod.js +294 -1
  145. package/json-schema/api/ODataError.json +65 -0
  146. package/json-schema/api/ODataFilterFunction.json +39 -0
  147. package/json-schema/api/ODataFilterOperator.json +24 -0
  148. package/json-schema/api/ODataMetadata.json +115 -0
  149. package/json-schema/api/ODataQuery.json +89 -0
  150. package/json-schema/api/ODataResponse.json +37 -0
  151. package/json-schema/auth/Role.json +3 -2
  152. package/json-schema/auth/SCIMAddress.json +50 -0
  153. package/json-schema/auth/SCIMEmail.json +38 -0
  154. package/json-schema/auth/SCIMEnterpriseUser.json +55 -0
  155. package/json-schema/auth/SCIMError.json +52 -0
  156. package/json-schema/auth/SCIMGroup.json +102 -0
  157. package/json-schema/auth/SCIMGroupReference.json +36 -0
  158. package/json-schema/auth/SCIMListResponse.json +606 -0
  159. package/json-schema/auth/SCIMMemberReference.json +36 -0
  160. package/json-schema/auth/SCIMMeta.json +35 -0
  161. package/json-schema/auth/SCIMName.json +36 -0
  162. package/json-schema/auth/SCIMPatchOperation.json +31 -0
  163. package/json-schema/auth/SCIMPatchRequest.json +56 -0
  164. package/json-schema/auth/SCIMPhoneNumber.json +40 -0
  165. package/json-schema/auth/SCIMUser.json +462 -0
  166. package/json-schema/automation/ApprovalAction.json +35 -0
  167. package/json-schema/automation/ApprovalActionType.json +15 -0
  168. package/json-schema/automation/ApprovalProcess.json +326 -0
  169. package/json-schema/automation/ApprovalStep.json +147 -0
  170. package/json-schema/automation/ApproverType.json +16 -0
  171. package/json-schema/automation/AuthField.json +73 -0
  172. package/json-schema/automation/Authentication.json +159 -0
  173. package/json-schema/automation/AuthenticationType.json +18 -0
  174. package/json-schema/automation/ConflictResolution.json +16 -0
  175. package/json-schema/automation/Connector.json +440 -0
  176. package/json-schema/automation/ConnectorCategory.json +26 -0
  177. package/json-schema/automation/ConnectorInstance.json +69 -0
  178. package/json-schema/automation/ConnectorOperation.json +117 -0
  179. package/json-schema/automation/ConnectorTrigger.json +54 -0
  180. package/json-schema/automation/DataDestinationConfig.json +89 -0
  181. package/json-schema/automation/DataSourceConfig.json +34 -0
  182. package/json-schema/automation/DataSyncConfig.json +355 -0
  183. package/json-schema/automation/ETLDestination.json +57 -0
  184. package/json-schema/automation/ETLEndpointType.json +19 -0
  185. package/json-schema/automation/ETLPipeline.json +252 -0
  186. package/json-schema/automation/ETLPipelineRun.json +107 -0
  187. package/json-schema/automation/ETLRunStatus.json +17 -0
  188. package/json-schema/automation/ETLSource.json +60 -0
  189. package/json-schema/automation/ETLSyncMode.json +14 -0
  190. package/json-schema/automation/ETLTransformation.json +46 -0
  191. package/json-schema/automation/ETLTransformationType.json +21 -0
  192. package/json-schema/automation/FieldMapping.json +36 -0
  193. package/json-schema/automation/OAuth2Config.json +43 -0
  194. package/json-schema/automation/OperationParameter.json +59 -0
  195. package/json-schema/automation/OperationType.json +17 -0
  196. package/json-schema/automation/SyncDirection.json +14 -0
  197. package/json-schema/automation/SyncExecutionResult.json +135 -0
  198. package/json-schema/automation/SyncExecutionStatus.json +17 -0
  199. package/json-schema/automation/SyncMode.json +14 -0
  200. package/json-schema/automation/Webhook.json +3 -1
  201. package/json-schema/automation/WebhookReceiver.json +3 -1
  202. package/json-schema/automation/WorkflowRule.json +3 -2
  203. package/json-schema/data/Field.json +62 -4
  204. package/json-schema/data/FieldType.json +12 -2
  205. package/json-schema/data/Object.json +62 -4
  206. package/json-schema/data/SelectOption.json +4 -2
  207. package/json-schema/data/VectorConfig.json +51 -0
  208. package/json-schema/hub/ComposerResponse.json +4 -2163
  209. package/json-schema/permission/PermissionSet.json +3 -1
  210. package/json-schema/permission/RLSConfig.json +59 -0
  211. package/json-schema/permission/RLSEvaluationResult.json +40 -0
  212. package/json-schema/permission/RLSOperation.json +16 -0
  213. package/json-schema/permission/RLSUserContext.json +51 -0
  214. package/json-schema/permission/RowLevelSecurityPolicy.json +77 -0
  215. package/json-schema/permission/Territory.json +3 -1
  216. package/json-schema/shared/EventName.json +12 -0
  217. package/json-schema/shared/SnakeCaseIdentifier.json +12 -0
  218. package/json-schema/shared/SystemIdentifier.json +12 -0
  219. package/json-schema/system/Event.json +3 -2
  220. package/json-schema/system/FeatureFlag.json +87 -0
  221. package/json-schema/system/FeatureStrategy.json +16 -0
  222. package/json-schema/system/Manifest.json +398 -0
  223. package/json-schema/ui/Action.json +25 -4
  224. package/json-schema/ui/ActionParam.json +12 -2
  225. package/json-schema/ui/App.json +18 -7
  226. package/json-schema/ui/ChartType.json +9 -1
  227. package/json-schema/ui/Dashboard.json +9 -1
  228. package/json-schema/ui/DashboardNavItem.json +3 -1
  229. package/json-schema/ui/DashboardWidget.json +9 -1
  230. package/json-schema/ui/FieldWidgetProps.json +62 -4
  231. package/json-schema/ui/FormView.json +4 -1
  232. package/json-schema/ui/GroupNavItem.json +3 -1
  233. package/json-schema/ui/ListView.json +7 -1
  234. package/json-schema/ui/NavigationItem.json +15 -5
  235. package/json-schema/ui/ObjectNavItem.json +3 -1
  236. package/json-schema/ui/Page.json +36 -4
  237. package/json-schema/ui/PageCardProps.json +32 -0
  238. package/json-schema/ui/PageComponent.json +33 -3
  239. package/json-schema/ui/PageComponentType.json +32 -0
  240. package/json-schema/ui/PageHeaderProps.json +39 -0
  241. package/json-schema/ui/PageNavItem.json +3 -1
  242. package/json-schema/ui/PageRegion.json +33 -3
  243. package/json-schema/ui/PageTabsProps.json +55 -0
  244. package/json-schema/ui/RecordDetailsProps.json +37 -0
  245. package/json-schema/ui/RecordHighlightsProps.json +24 -0
  246. package/json-schema/ui/RecordRelatedListProps.json +39 -0
  247. package/json-schema/ui/UrlNavItem.json +3 -1
  248. package/json-schema/ui/View.json +22 -4
  249. package/json-schema/ui/WidgetEvent.json +42 -0
  250. package/json-schema/ui/WidgetLifecycle.json +40 -0
  251. package/json-schema/ui/WidgetManifest.json +262 -0
  252. package/json-schema/ui/WidgetProperty.json +58 -0
  253. package/package.json +1 -1
  254. package/prompts/architecture.md +5 -5
  255. package/prompts/create-new-project.md +85 -0
  256. package/dist/driver/index.d.ts +0 -5
  257. package/dist/driver/index.d.ts.map +0 -1
  258. package/dist/driver/mongo.zod.d.ts.map +0 -1
  259. package/dist/driver/postgres.zod.d.ts.map +0 -1
  260. package/dist/kernel/index.d.ts +0 -12
  261. package/dist/kernel/index.d.ts.map +0 -1
  262. package/dist/kernel/index.js +0 -27
  263. package/dist/kernel/manifest.zod.d.ts +0 -2153
  264. package/dist/kernel/manifest.zod.d.ts.map +0 -1
  265. package/json-schema/kernel/Manifest.json +0 -2557
  266. /package/dist/{kernel → system}/context.zod.d.ts +0 -0
  267. /package/dist/{kernel → system}/context.zod.js +0 -0
  268. /package/dist/{driver → system}/datasource.zod.js +0 -0
  269. /package/dist/{driver → system/driver}/mongo.zod.js +0 -0
  270. /package/dist/{driver → system/driver}/postgres.zod.js +0 -0
  271. /package/dist/{driver → system}/driver.zod.js +0 -0
  272. /package/dist/{kernel → system}/logger.zod.js +0 -0
  273. /package/dist/{kernel → system}/plugin.zod.d.ts +0 -0
  274. /package/dist/{kernel → system}/plugin.zod.js +0 -0
  275. /package/dist/{kernel → system}/scoped-storage.zod.js +0 -0
  276. /package/json-schema/{driver → system}/Datasource.json +0 -0
  277. /package/json-schema/{driver → system}/DatasourceCapabilities.json +0 -0
  278. /package/json-schema/{driver → system}/DriverCapabilities.json +0 -0
  279. /package/json-schema/{driver → system}/DriverDefinition.json +0 -0
  280. /package/json-schema/{driver → system}/DriverInterface.json +0 -0
  281. /package/json-schema/{driver → system}/DriverOptions.json +0 -0
  282. /package/json-schema/{driver → system}/DriverType.json +0 -0
  283. /package/json-schema/{kernel → system}/FileMetadata.json +0 -0
  284. /package/json-schema/{kernel → system}/I18nContext.json +0 -0
  285. /package/json-schema/{kernel → system}/KernelContext.json +0 -0
  286. /package/json-schema/{kernel → system}/LogEntry.json +0 -0
  287. /package/json-schema/{kernel → system}/LogFormat.json +0 -0
  288. /package/json-schema/{kernel → system}/LogLevel.json +0 -0
  289. /package/json-schema/{kernel → system}/Logger.json +0 -0
  290. /package/json-schema/{kernel → system}/LoggerConfig.json +0 -0
  291. /package/json-schema/{driver → system}/MongoConfig.json +0 -0
  292. /package/json-schema/{kernel → system}/ObjectQLClient.json +0 -0
  293. /package/json-schema/{kernel → system}/Plugin.json +0 -0
  294. /package/json-schema/{kernel → system}/PluginContext.json +0 -0
  295. /package/json-schema/{kernel → system}/PluginLifecycle.json +0 -0
  296. /package/json-schema/{driver → system}/PostgresConfig.json +0 -0
  297. /package/json-schema/{kernel → system}/Router.json +0 -0
  298. /package/json-schema/{kernel → system}/RuntimeMode.json +0 -0
  299. /package/json-schema/{kernel → system}/Scheduler.json +0 -0
  300. /package/json-schema/{kernel → system}/ScopedStorage.json +0 -0
  301. /package/json-schema/{kernel → system}/ScopedStorageConfig.json +0 -0
  302. /package/json-schema/{kernel → system}/StorageAdapterType.json +0 -0
  303. /package/json-schema/{kernel → system}/StorageScope.json +0 -0
  304. /package/json-schema/{kernel → system}/SystemAPI.json +0 -0
@@ -0,0 +1,355 @@
1
+ {
2
+ "$ref": "#/definitions/DataSyncConfig",
3
+ "definitions": {
4
+ "DataSyncConfig": {
5
+ "type": "object",
6
+ "properties": {
7
+ "name": {
8
+ "type": "string",
9
+ "pattern": "^[a-z_][a-z0-9_]*$",
10
+ "description": "Sync configuration name (snake_case)"
11
+ },
12
+ "label": {
13
+ "type": "string",
14
+ "description": "Sync display name"
15
+ },
16
+ "description": {
17
+ "type": "string",
18
+ "description": "Sync description"
19
+ },
20
+ "source": {
21
+ "type": "object",
22
+ "properties": {
23
+ "object": {
24
+ "type": "string",
25
+ "description": "ObjectStack object name"
26
+ },
27
+ "filters": {
28
+ "description": "Filter conditions"
29
+ },
30
+ "fields": {
31
+ "type": "array",
32
+ "items": {
33
+ "type": "string"
34
+ },
35
+ "description": "Fields to sync"
36
+ },
37
+ "connectorInstanceId": {
38
+ "type": "string",
39
+ "description": "Connector instance ID"
40
+ },
41
+ "externalResource": {
42
+ "type": "string",
43
+ "description": "External resource ID"
44
+ }
45
+ },
46
+ "additionalProperties": false,
47
+ "description": "Data source"
48
+ },
49
+ "destination": {
50
+ "type": "object",
51
+ "properties": {
52
+ "object": {
53
+ "type": "string",
54
+ "description": "ObjectStack object name"
55
+ },
56
+ "connectorInstanceId": {
57
+ "type": "string",
58
+ "description": "Connector instance ID"
59
+ },
60
+ "operation": {
61
+ "type": "string",
62
+ "enum": [
63
+ "insert",
64
+ "update",
65
+ "upsert",
66
+ "delete",
67
+ "sync"
68
+ ],
69
+ "description": "Sync operation"
70
+ },
71
+ "mapping": {
72
+ "anyOf": [
73
+ {
74
+ "type": "object",
75
+ "additionalProperties": {
76
+ "type": "string"
77
+ }
78
+ },
79
+ {
80
+ "type": "array",
81
+ "items": {
82
+ "type": "object",
83
+ "properties": {
84
+ "sourceField": {
85
+ "type": "string",
86
+ "description": "Source field name"
87
+ },
88
+ "destinationField": {
89
+ "type": "string",
90
+ "description": "Destination field name"
91
+ },
92
+ "transform": {
93
+ "type": "string",
94
+ "description": "Transformation formula"
95
+ },
96
+ "default": {
97
+ "description": "Default value"
98
+ },
99
+ "syncNull": {
100
+ "type": "boolean",
101
+ "default": false,
102
+ "description": "Sync null values"
103
+ }
104
+ },
105
+ "required": [
106
+ "sourceField",
107
+ "destinationField"
108
+ ],
109
+ "additionalProperties": false
110
+ }
111
+ }
112
+ ],
113
+ "description": "Field mappings"
114
+ },
115
+ "externalResource": {
116
+ "type": "string",
117
+ "description": "External resource ID"
118
+ },
119
+ "matchKey": {
120
+ "type": "array",
121
+ "items": {
122
+ "type": "string"
123
+ },
124
+ "description": "Match key fields"
125
+ }
126
+ },
127
+ "required": [
128
+ "operation"
129
+ ],
130
+ "additionalProperties": false,
131
+ "description": "Data destination"
132
+ },
133
+ "direction": {
134
+ "type": "string",
135
+ "enum": [
136
+ "push",
137
+ "pull",
138
+ "bidirectional"
139
+ ],
140
+ "default": "push",
141
+ "description": "Sync direction"
142
+ },
143
+ "syncMode": {
144
+ "type": "string",
145
+ "enum": [
146
+ "full",
147
+ "incremental",
148
+ "realtime"
149
+ ],
150
+ "default": "incremental",
151
+ "description": "Sync mode"
152
+ },
153
+ "conflictResolution": {
154
+ "type": "string",
155
+ "enum": [
156
+ "source_wins",
157
+ "destination_wins",
158
+ "latest_wins",
159
+ "manual",
160
+ "merge"
161
+ ],
162
+ "default": "latest_wins",
163
+ "description": "Conflict resolution"
164
+ },
165
+ "schedule": {
166
+ "type": "string",
167
+ "description": "Cron schedule"
168
+ },
169
+ "enabled": {
170
+ "type": "boolean",
171
+ "default": true,
172
+ "description": "Sync enabled"
173
+ },
174
+ "changeTrackingField": {
175
+ "type": "string",
176
+ "description": "Field for change tracking"
177
+ },
178
+ "batchSize": {
179
+ "type": "integer",
180
+ "minimum": 1,
181
+ "maximum": 10000,
182
+ "default": 100,
183
+ "description": "Batch size for processing"
184
+ },
185
+ "retry": {
186
+ "type": "object",
187
+ "properties": {
188
+ "maxAttempts": {
189
+ "type": "integer",
190
+ "minimum": 0,
191
+ "default": 3,
192
+ "description": "Max retries"
193
+ },
194
+ "backoffMs": {
195
+ "type": "integer",
196
+ "minimum": 0,
197
+ "default": 30000,
198
+ "description": "Backoff duration"
199
+ }
200
+ },
201
+ "additionalProperties": false,
202
+ "description": "Retry configuration"
203
+ },
204
+ "validation": {
205
+ "type": "object",
206
+ "properties": {
207
+ "required": {
208
+ "type": "array",
209
+ "items": {
210
+ "type": "string"
211
+ },
212
+ "description": "Required fields"
213
+ },
214
+ "unique": {
215
+ "type": "array",
216
+ "items": {
217
+ "type": "string"
218
+ },
219
+ "description": "Unique constraint fields"
220
+ },
221
+ "custom": {
222
+ "type": "array",
223
+ "items": {
224
+ "type": "object",
225
+ "properties": {
226
+ "name": {
227
+ "type": "string"
228
+ },
229
+ "condition": {
230
+ "type": "string",
231
+ "description": "Validation condition"
232
+ },
233
+ "message": {
234
+ "type": "string",
235
+ "description": "Error message"
236
+ }
237
+ },
238
+ "required": [
239
+ "name",
240
+ "condition",
241
+ "message"
242
+ ],
243
+ "additionalProperties": false
244
+ },
245
+ "description": "Custom validation rules"
246
+ }
247
+ },
248
+ "additionalProperties": false,
249
+ "description": "Validation rules"
250
+ },
251
+ "errorHandling": {
252
+ "type": "object",
253
+ "properties": {
254
+ "onValidationError": {
255
+ "type": "string",
256
+ "enum": [
257
+ "skip",
258
+ "fail",
259
+ "log"
260
+ ],
261
+ "default": "skip"
262
+ },
263
+ "onSyncError": {
264
+ "type": "string",
265
+ "enum": [
266
+ "skip",
267
+ "fail",
268
+ "retry"
269
+ ],
270
+ "default": "retry"
271
+ },
272
+ "notifyOnError": {
273
+ "type": "array",
274
+ "items": {
275
+ "type": "string"
276
+ },
277
+ "description": "Email notifications"
278
+ }
279
+ },
280
+ "additionalProperties": false,
281
+ "description": "Error handling"
282
+ },
283
+ "optimization": {
284
+ "type": "object",
285
+ "properties": {
286
+ "parallelBatches": {
287
+ "type": "boolean",
288
+ "default": false,
289
+ "description": "Process batches in parallel"
290
+ },
291
+ "cacheEnabled": {
292
+ "type": "boolean",
293
+ "default": true,
294
+ "description": "Enable caching"
295
+ },
296
+ "compressionEnabled": {
297
+ "type": "boolean",
298
+ "default": false,
299
+ "description": "Enable compression"
300
+ }
301
+ },
302
+ "additionalProperties": false,
303
+ "description": "Performance optimization"
304
+ },
305
+ "audit": {
306
+ "type": "object",
307
+ "properties": {
308
+ "logLevel": {
309
+ "type": "string",
310
+ "enum": [
311
+ "none",
312
+ "error",
313
+ "warn",
314
+ "info",
315
+ "debug"
316
+ ],
317
+ "default": "info"
318
+ },
319
+ "retainLogsForDays": {
320
+ "type": "integer",
321
+ "minimum": 1,
322
+ "default": 30
323
+ },
324
+ "trackChanges": {
325
+ "type": "boolean",
326
+ "default": true,
327
+ "description": "Track all changes"
328
+ }
329
+ },
330
+ "additionalProperties": false,
331
+ "description": "Audit configuration"
332
+ },
333
+ "tags": {
334
+ "type": "array",
335
+ "items": {
336
+ "type": "string"
337
+ },
338
+ "description": "Sync tags"
339
+ },
340
+ "metadata": {
341
+ "type": "object",
342
+ "additionalProperties": {},
343
+ "description": "Custom metadata"
344
+ }
345
+ },
346
+ "required": [
347
+ "name",
348
+ "source",
349
+ "destination"
350
+ ],
351
+ "additionalProperties": false
352
+ }
353
+ },
354
+ "$schema": "http://json-schema.org/draft-07/schema#"
355
+ }
@@ -0,0 +1,57 @@
1
+ {
2
+ "$ref": "#/definitions/ETLDestination",
3
+ "definitions": {
4
+ "ETLDestination": {
5
+ "type": "object",
6
+ "properties": {
7
+ "type": {
8
+ "type": "string",
9
+ "enum": [
10
+ "database",
11
+ "api",
12
+ "file",
13
+ "stream",
14
+ "object",
15
+ "warehouse",
16
+ "storage",
17
+ "spreadsheet"
18
+ ],
19
+ "description": "Destination type"
20
+ },
21
+ "connector": {
22
+ "type": "string",
23
+ "description": "Connector ID"
24
+ },
25
+ "config": {
26
+ "type": "object",
27
+ "additionalProperties": {},
28
+ "description": "Destination configuration"
29
+ },
30
+ "writeMode": {
31
+ "type": "string",
32
+ "enum": [
33
+ "append",
34
+ "overwrite",
35
+ "upsert",
36
+ "merge"
37
+ ],
38
+ "default": "append",
39
+ "description": "How to write data"
40
+ },
41
+ "primaryKey": {
42
+ "type": "array",
43
+ "items": {
44
+ "type": "string"
45
+ },
46
+ "description": "Primary key fields"
47
+ }
48
+ },
49
+ "required": [
50
+ "type",
51
+ "config"
52
+ ],
53
+ "additionalProperties": false
54
+ }
55
+ },
56
+ "$schema": "http://json-schema.org/draft-07/schema#"
57
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "$ref": "#/definitions/ETLEndpointType",
3
+ "definitions": {
4
+ "ETLEndpointType": {
5
+ "type": "string",
6
+ "enum": [
7
+ "database",
8
+ "api",
9
+ "file",
10
+ "stream",
11
+ "object",
12
+ "warehouse",
13
+ "storage",
14
+ "spreadsheet"
15
+ ]
16
+ }
17
+ },
18
+ "$schema": "http://json-schema.org/draft-07/schema#"
19
+ }
@@ -0,0 +1,252 @@
1
+ {
2
+ "$ref": "#/definitions/ETLPipeline",
3
+ "definitions": {
4
+ "ETLPipeline": {
5
+ "type": "object",
6
+ "properties": {
7
+ "name": {
8
+ "type": "string",
9
+ "pattern": "^[a-z_][a-z0-9_]*$",
10
+ "description": "Pipeline identifier (snake_case)"
11
+ },
12
+ "label": {
13
+ "type": "string",
14
+ "description": "Pipeline display name"
15
+ },
16
+ "description": {
17
+ "type": "string",
18
+ "description": "Pipeline description"
19
+ },
20
+ "source": {
21
+ "type": "object",
22
+ "properties": {
23
+ "type": {
24
+ "type": "string",
25
+ "enum": [
26
+ "database",
27
+ "api",
28
+ "file",
29
+ "stream",
30
+ "object",
31
+ "warehouse",
32
+ "storage",
33
+ "spreadsheet"
34
+ ],
35
+ "description": "Source type"
36
+ },
37
+ "connector": {
38
+ "type": "string",
39
+ "description": "Connector ID"
40
+ },
41
+ "config": {
42
+ "type": "object",
43
+ "additionalProperties": {},
44
+ "description": "Source configuration"
45
+ },
46
+ "incremental": {
47
+ "type": "object",
48
+ "properties": {
49
+ "enabled": {
50
+ "type": "boolean",
51
+ "default": false
52
+ },
53
+ "cursorField": {
54
+ "type": "string",
55
+ "description": "Field to track progress (e.g., updated_at)"
56
+ },
57
+ "cursorValue": {
58
+ "description": "Last processed value"
59
+ }
60
+ },
61
+ "required": [
62
+ "cursorField"
63
+ ],
64
+ "additionalProperties": false,
65
+ "description": "Incremental extraction config"
66
+ }
67
+ },
68
+ "required": [
69
+ "type",
70
+ "config"
71
+ ],
72
+ "additionalProperties": false,
73
+ "description": "Data source"
74
+ },
75
+ "destination": {
76
+ "type": "object",
77
+ "properties": {
78
+ "type": {
79
+ "type": "string",
80
+ "enum": [
81
+ "database",
82
+ "api",
83
+ "file",
84
+ "stream",
85
+ "object",
86
+ "warehouse",
87
+ "storage",
88
+ "spreadsheet"
89
+ ],
90
+ "description": "Destination type"
91
+ },
92
+ "connector": {
93
+ "type": "string",
94
+ "description": "Connector ID"
95
+ },
96
+ "config": {
97
+ "type": "object",
98
+ "additionalProperties": {},
99
+ "description": "Destination configuration"
100
+ },
101
+ "writeMode": {
102
+ "type": "string",
103
+ "enum": [
104
+ "append",
105
+ "overwrite",
106
+ "upsert",
107
+ "merge"
108
+ ],
109
+ "default": "append",
110
+ "description": "How to write data"
111
+ },
112
+ "primaryKey": {
113
+ "type": "array",
114
+ "items": {
115
+ "type": "string"
116
+ },
117
+ "description": "Primary key fields"
118
+ }
119
+ },
120
+ "required": [
121
+ "type",
122
+ "config"
123
+ ],
124
+ "additionalProperties": false,
125
+ "description": "Data destination"
126
+ },
127
+ "transformations": {
128
+ "type": "array",
129
+ "items": {
130
+ "type": "object",
131
+ "properties": {
132
+ "name": {
133
+ "type": "string",
134
+ "description": "Transformation name"
135
+ },
136
+ "type": {
137
+ "type": "string",
138
+ "enum": [
139
+ "map",
140
+ "filter",
141
+ "aggregate",
142
+ "join",
143
+ "script",
144
+ "lookup",
145
+ "split",
146
+ "merge",
147
+ "normalize",
148
+ "deduplicate"
149
+ ],
150
+ "description": "Transformation type"
151
+ },
152
+ "config": {
153
+ "type": "object",
154
+ "additionalProperties": {},
155
+ "description": "Transformation config"
156
+ },
157
+ "continueOnError": {
158
+ "type": "boolean",
159
+ "default": false,
160
+ "description": "Continue on error"
161
+ }
162
+ },
163
+ "required": [
164
+ "type",
165
+ "config"
166
+ ],
167
+ "additionalProperties": false
168
+ },
169
+ "description": "Transformation pipeline"
170
+ },
171
+ "syncMode": {
172
+ "type": "string",
173
+ "enum": [
174
+ "full",
175
+ "incremental",
176
+ "cdc"
177
+ ],
178
+ "default": "full",
179
+ "description": "Sync mode"
180
+ },
181
+ "schedule": {
182
+ "type": "string",
183
+ "description": "Cron schedule expression"
184
+ },
185
+ "enabled": {
186
+ "type": "boolean",
187
+ "default": true,
188
+ "description": "Pipeline enabled status"
189
+ },
190
+ "retry": {
191
+ "type": "object",
192
+ "properties": {
193
+ "maxAttempts": {
194
+ "type": "integer",
195
+ "minimum": 0,
196
+ "default": 3,
197
+ "description": "Max retry attempts"
198
+ },
199
+ "backoffMs": {
200
+ "type": "integer",
201
+ "minimum": 0,
202
+ "default": 60000,
203
+ "description": "Backoff in milliseconds"
204
+ }
205
+ },
206
+ "additionalProperties": false,
207
+ "description": "Retry configuration"
208
+ },
209
+ "notifications": {
210
+ "type": "object",
211
+ "properties": {
212
+ "onSuccess": {
213
+ "type": "array",
214
+ "items": {
215
+ "type": "string"
216
+ },
217
+ "description": "Email addresses for success notifications"
218
+ },
219
+ "onFailure": {
220
+ "type": "array",
221
+ "items": {
222
+ "type": "string"
223
+ },
224
+ "description": "Email addresses for failure notifications"
225
+ }
226
+ },
227
+ "additionalProperties": false,
228
+ "description": "Notification settings"
229
+ },
230
+ "tags": {
231
+ "type": "array",
232
+ "items": {
233
+ "type": "string"
234
+ },
235
+ "description": "Pipeline tags"
236
+ },
237
+ "metadata": {
238
+ "type": "object",
239
+ "additionalProperties": {},
240
+ "description": "Custom metadata"
241
+ }
242
+ },
243
+ "required": [
244
+ "name",
245
+ "source",
246
+ "destination"
247
+ ],
248
+ "additionalProperties": false
249
+ }
250
+ },
251
+ "$schema": "http://json-schema.org/draft-07/schema#"
252
+ }