@objectstack/spec 0.3.2 → 0.4.1

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 (523) hide show
  1. package/README.md +32 -10
  2. package/dist/ai/agent.zod.d.ts +12 -12
  3. package/dist/ai/conversation.zod.d.ts +54 -54
  4. package/dist/ai/cost.zod.d.ts +135 -135
  5. package/dist/ai/index.d.ts +1 -1
  6. package/dist/ai/index.d.ts.map +1 -1
  7. package/dist/ai/index.js +1 -1
  8. package/dist/ai/model-registry.zod.d.ts +91 -91
  9. package/dist/ai/nlq.zod.d.ts +72 -72
  10. package/dist/ai/{workflow-automation.zod.d.ts → orchestration.zod.d.ts} +51 -50
  11. package/dist/ai/orchestration.zod.d.ts.map +1 -0
  12. package/dist/ai/{workflow-automation.zod.js → orchestration.zod.js} +26 -25
  13. package/dist/ai/predictive.zod.d.ts +27 -27
  14. package/dist/ai/rag-pipeline.zod.d.ts +102 -102
  15. package/dist/api/contract.zod.d.ts +213 -197
  16. package/dist/api/contract.zod.d.ts.map +1 -1
  17. package/dist/{system → api}/discovery.zod.d.ts +26 -26
  18. package/dist/api/discovery.zod.d.ts.map +1 -0
  19. package/dist/{system → api}/discovery.zod.js +9 -9
  20. package/dist/{system/api.zod.d.ts → api/endpoint.zod.d.ts} +53 -57
  21. package/dist/api/endpoint.zod.d.ts.map +1 -0
  22. package/dist/{system/api.zod.js → api/endpoint.zod.js} +3 -6
  23. package/dist/api/index.d.ts +6 -0
  24. package/dist/api/index.d.ts.map +1 -1
  25. package/dist/api/index.js +6 -0
  26. package/dist/api/odata.zod.d.ts +482 -0
  27. package/dist/api/odata.zod.d.ts.map +1 -0
  28. package/dist/api/odata.zod.js +401 -0
  29. package/dist/{system → api}/realtime.zod.d.ts +4 -4
  30. package/dist/api/realtime.zod.d.ts.map +1 -0
  31. package/dist/api/router.zod.d.ts +182 -0
  32. package/dist/api/router.zod.d.ts.map +1 -0
  33. package/dist/api/router.zod.js +103 -0
  34. package/dist/{system/auth.zod.d.ts → auth/config.zod.d.ts} +199 -199
  35. package/dist/auth/config.zod.d.ts.map +1 -0
  36. package/dist/{system → auth}/identity.zod.d.ts +8 -8
  37. package/dist/auth/identity.zod.d.ts.map +1 -0
  38. package/dist/auth/index.d.ts +8 -0
  39. package/dist/auth/index.d.ts.map +1 -0
  40. package/dist/auth/index.js +23 -0
  41. package/dist/{system → auth}/organization.zod.d.ts +7 -7
  42. package/dist/auth/organization.zod.d.ts.map +1 -0
  43. package/dist/{system → auth}/policy.zod.d.ts +3 -3
  44. package/dist/auth/policy.zod.d.ts.map +1 -0
  45. package/dist/{system/auth-protocol.d.ts → auth/protocol.d.ts} +1 -1
  46. package/dist/auth/protocol.d.ts.map +1 -0
  47. package/dist/{system → auth}/role.zod.d.ts +14 -0
  48. package/dist/auth/role.zod.d.ts.map +1 -0
  49. package/dist/{system → auth}/role.zod.js +16 -1
  50. package/dist/auth/scim.zod.d.ts +2732 -0
  51. package/dist/auth/scim.zod.d.ts.map +1 -0
  52. package/dist/auth/scim.zod.js +811 -0
  53. package/dist/automation/approval.zod.d.ts +643 -0
  54. package/dist/automation/approval.zod.d.ts.map +1 -0
  55. package/dist/automation/approval.zod.js +84 -0
  56. package/dist/automation/connector.zod.d.ts +1284 -0
  57. package/dist/automation/connector.zod.d.ts.map +1 -0
  58. package/dist/automation/connector.zod.js +500 -0
  59. package/dist/automation/etl.zod.d.ts +623 -0
  60. package/dist/automation/etl.zod.d.ts.map +1 -0
  61. package/dist/automation/etl.zod.js +359 -0
  62. package/dist/{data → automation}/flow.zod.d.ts +40 -22
  63. package/dist/automation/flow.zod.d.ts.map +1 -0
  64. package/dist/{data → automation}/flow.zod.js +6 -1
  65. package/dist/automation/index.d.ts +8 -0
  66. package/dist/automation/index.d.ts.map +1 -0
  67. package/dist/automation/index.js +23 -0
  68. package/dist/automation/sync.zod.d.ts +854 -0
  69. package/dist/automation/sync.zod.d.ts.map +1 -0
  70. package/dist/automation/sync.zod.js +444 -0
  71. package/dist/{system → automation}/webhook.zod.d.ts +26 -3
  72. package/dist/automation/webhook.zod.d.ts.map +1 -0
  73. package/dist/{system → automation}/webhook.zod.js +27 -3
  74. package/dist/automation/workflow.zod.d.ts +2059 -0
  75. package/dist/automation/workflow.zod.d.ts.map +1 -0
  76. package/dist/{data → automation}/workflow.zod.js +40 -2
  77. package/dist/data/dataset.zod.d.ts +2 -2
  78. package/dist/data/field.zod.d.ts +779 -219
  79. package/dist/data/field.zod.d.ts.map +1 -1
  80. package/dist/data/field.zod.js +128 -16
  81. package/dist/data/filter.zod.d.ts +167 -30
  82. package/dist/data/filter.zod.d.ts.map +1 -1
  83. package/dist/data/filter.zod.js +25 -13
  84. package/dist/data/hook.zod.d.ts +191 -0
  85. package/dist/data/hook.zod.d.ts.map +1 -0
  86. package/dist/data/hook.zod.js +144 -0
  87. package/dist/data/index.d.ts +4 -17
  88. package/dist/data/index.d.ts.map +1 -1
  89. package/dist/data/index.js +4 -17
  90. package/dist/data/mapping.zod.d.ts +117 -93
  91. package/dist/data/mapping.zod.d.ts.map +1 -1
  92. package/dist/data/mapping.zod.js +16 -3
  93. package/dist/data/object.zod.d.ts +485 -131
  94. package/dist/data/object.zod.d.ts.map +1 -1
  95. package/dist/data/object.zod.js +87 -42
  96. package/dist/data/query.zod.d.ts +98 -169
  97. package/dist/data/query.zod.d.ts.map +1 -1
  98. package/dist/data/query.zod.js +42 -130
  99. package/dist/data/validation.zod.d.ts +166 -26
  100. package/dist/data/validation.zod.d.ts.map +1 -1
  101. package/dist/data/validation.zod.js +38 -16
  102. package/dist/hub/composer.zod.d.ts +871 -0
  103. package/dist/hub/composer.zod.d.ts.map +1 -0
  104. package/dist/hub/composer.zod.js +111 -0
  105. package/dist/hub/index.d.ts +6 -0
  106. package/dist/hub/index.d.ts.map +1 -0
  107. package/dist/hub/index.js +22 -0
  108. package/dist/{system → hub}/license.zod.d.ts +13 -9
  109. package/dist/hub/license.zod.d.ts.map +1 -0
  110. package/dist/{system → hub}/license.zod.js +5 -3
  111. package/dist/hub/marketplace.zod.d.ts +191 -0
  112. package/dist/hub/marketplace.zod.d.ts.map +1 -0
  113. package/dist/hub/marketplace.zod.js +85 -0
  114. package/dist/hub/space.zod.d.ts +383 -0
  115. package/dist/hub/space.zod.d.ts.map +1 -0
  116. package/dist/hub/space.zod.js +103 -0
  117. package/dist/{system → hub}/tenant.zod.d.ts +73 -47
  118. package/dist/hub/tenant.zod.d.ts.map +1 -0
  119. package/dist/{system → hub}/tenant.zod.js +36 -10
  120. package/dist/index.d.ts +11 -4
  121. package/dist/index.d.ts.map +1 -1
  122. package/dist/index.js +15 -5
  123. package/dist/permission/index.d.ts +14 -0
  124. package/dist/permission/index.d.ts.map +1 -0
  125. package/dist/permission/index.js +29 -0
  126. package/dist/{data → permission}/permission.zod.d.ts +48 -3
  127. package/dist/permission/permission.zod.d.ts.map +1 -0
  128. package/dist/{data → permission}/permission.zod.js +26 -2
  129. package/dist/permission/rls.zod.d.ts +605 -0
  130. package/dist/permission/rls.zod.d.ts.map +1 -0
  131. package/dist/permission/rls.zod.js +615 -0
  132. package/dist/permission/sharing.zod.d.ts +146 -0
  133. package/dist/permission/sharing.zod.d.ts.map +1 -0
  134. package/dist/permission/sharing.zod.js +88 -0
  135. package/dist/{system → permission}/territory.zod.d.ts +13 -0
  136. package/dist/permission/territory.zod.d.ts.map +1 -0
  137. package/dist/{system → permission}/territory.zod.js +15 -1
  138. package/dist/shared/identifiers.zod.d.ts +87 -0
  139. package/dist/shared/identifiers.zod.d.ts.map +1 -0
  140. package/dist/shared/identifiers.zod.js +101 -0
  141. package/dist/shared/index.d.ts +6 -0
  142. package/dist/shared/index.d.ts.map +1 -0
  143. package/dist/shared/index.js +21 -0
  144. package/dist/stack.zod.d.ts +19869 -0
  145. package/dist/stack.zod.d.ts.map +1 -0
  146. package/dist/stack.zod.js +248 -0
  147. package/dist/system/audit.zod.d.ts +58 -58
  148. package/dist/system/context.zod.d.ts +56 -0
  149. package/dist/system/context.zod.d.ts.map +1 -0
  150. package/dist/system/context.zod.js +43 -0
  151. package/dist/system/datasource.zod.d.ts +40 -6
  152. package/dist/system/datasource.zod.d.ts.map +1 -1
  153. package/dist/system/datasource.zod.js +17 -13
  154. package/dist/system/driver/mongo.zod.d.ts +107 -0
  155. package/dist/system/driver/mongo.zod.d.ts.map +1 -0
  156. package/dist/system/driver/mongo.zod.js +80 -0
  157. package/dist/system/driver/postgres.zod.d.ts +134 -0
  158. package/dist/system/driver/postgres.zod.d.ts.map +1 -0
  159. package/dist/system/driver/postgres.zod.js +88 -0
  160. package/dist/system/driver.zod.d.ts +2249 -488
  161. package/dist/system/driver.zod.d.ts.map +1 -1
  162. package/dist/system/driver.zod.js +99 -0
  163. package/dist/system/events.zod.d.ts +8 -5
  164. package/dist/system/events.zod.d.ts.map +1 -1
  165. package/dist/system/events.zod.js +5 -1
  166. package/dist/system/feature.zod.d.ts +131 -0
  167. package/dist/system/feature.zod.d.ts.map +1 -0
  168. package/dist/system/feature.zod.js +45 -0
  169. package/dist/system/index.d.ts +11 -20
  170. package/dist/system/index.d.ts.map +1 -1
  171. package/dist/system/index.js +15 -20
  172. package/dist/system/job.zod.d.ts +5 -5
  173. package/dist/system/logger.zod.d.ts +111 -0
  174. package/dist/system/logger.zod.d.ts.map +1 -0
  175. package/dist/system/logger.zod.js +75 -0
  176. package/dist/system/manifest.zod.d.ts +136 -18
  177. package/dist/system/manifest.zod.d.ts.map +1 -1
  178. package/dist/system/manifest.zod.js +28 -0
  179. package/dist/system/plugin.zod.d.ts +598 -318
  180. package/dist/system/plugin.zod.d.ts.map +1 -1
  181. package/dist/system/plugin.zod.js +13 -0
  182. package/dist/system/scoped-storage.zod.d.ts +81 -0
  183. package/dist/system/scoped-storage.zod.d.ts.map +1 -0
  184. package/dist/system/scoped-storage.zod.js +66 -0
  185. package/dist/ui/action.zod.d.ts +42 -17
  186. package/dist/ui/action.zod.d.ts.map +1 -1
  187. package/dist/ui/action.zod.js +30 -1
  188. package/dist/ui/app.zod.d.ts +26 -11
  189. package/dist/ui/app.zod.d.ts.map +1 -1
  190. package/dist/ui/app.zod.js +32 -4
  191. package/dist/ui/block.zod.d.ts +265 -0
  192. package/dist/ui/block.zod.d.ts.map +1 -0
  193. package/dist/ui/block.zod.js +90 -0
  194. package/dist/ui/component.zod.d.ts +265 -0
  195. package/dist/ui/component.zod.d.ts.map +1 -0
  196. package/dist/ui/component.zod.js +90 -0
  197. package/dist/ui/dashboard.zod.d.ts +15 -15
  198. package/dist/ui/dashboard.zod.d.ts.map +1 -1
  199. package/dist/ui/dashboard.zod.js +18 -8
  200. package/dist/ui/index.d.ts +1 -0
  201. package/dist/ui/index.d.ts.map +1 -1
  202. package/dist/ui/index.js +1 -0
  203. package/dist/ui/page.zod.d.ts +23 -5
  204. package/dist/ui/page.zod.d.ts.map +1 -1
  205. package/dist/ui/page.zod.js +37 -4
  206. package/dist/ui/report.zod.d.ts +12 -12
  207. package/dist/ui/theme.zod.d.ts +42 -42
  208. package/dist/ui/view.zod.d.ts +302 -290
  209. package/dist/ui/view.zod.d.ts.map +1 -1
  210. package/dist/ui/view.zod.js +32 -3
  211. package/dist/ui/widget.zod.d.ts +730 -29
  212. package/dist/ui/widget.zod.d.ts.map +1 -1
  213. package/dist/ui/widget.zod.js +294 -1
  214. package/json-schema/ai/{AIWorkflowAutomation.json → AIOrchestration.json} +5 -5
  215. package/json-schema/ai/{AIWorkflowExecutionResult.json → AIOrchestrationExecutionResult.json} +2 -2
  216. package/json-schema/ai/{AIWorkflowTrigger.json → AIOrchestrationTrigger.json} +2 -2
  217. package/json-schema/ai/{BatchAIWorkflowExecution.json → BatchAIOrchestrationExecution.json} +3 -3
  218. package/json-schema/{system → api}/ApiEndpoint.json +3 -1
  219. package/json-schema/{system → api}/ApiRoutes.json +7 -7
  220. package/json-schema/{system → api}/Discovery.json +7 -7
  221. package/json-schema/api/ExportRequest.json +402 -438
  222. package/json-schema/{system → api}/HttpMethod.json +3 -1
  223. package/json-schema/api/ODataError.json +65 -0
  224. package/json-schema/api/ODataFilterFunction.json +39 -0
  225. package/json-schema/api/ODataFilterOperator.json +24 -0
  226. package/json-schema/api/ODataMetadata.json +115 -0
  227. package/json-schema/api/ODataQuery.json +89 -0
  228. package/json-schema/api/ODataResponse.json +37 -0
  229. package/json-schema/api/RouteCategory.json +17 -0
  230. package/json-schema/api/RouteDefinition.json +77 -0
  231. package/json-schema/api/RouterConfig.json +117 -0
  232. package/json-schema/{system → auth}/Role.json +3 -2
  233. package/json-schema/auth/SCIMAddress.json +50 -0
  234. package/json-schema/auth/SCIMEmail.json +38 -0
  235. package/json-schema/auth/SCIMEnterpriseUser.json +55 -0
  236. package/json-schema/auth/SCIMError.json +52 -0
  237. package/json-schema/auth/SCIMGroup.json +102 -0
  238. package/json-schema/auth/SCIMGroupReference.json +36 -0
  239. package/json-schema/auth/SCIMListResponse.json +606 -0
  240. package/json-schema/auth/SCIMMemberReference.json +36 -0
  241. package/json-schema/auth/SCIMMeta.json +35 -0
  242. package/json-schema/auth/SCIMName.json +36 -0
  243. package/json-schema/auth/SCIMPatchOperation.json +31 -0
  244. package/json-schema/auth/SCIMPatchRequest.json +56 -0
  245. package/json-schema/auth/SCIMPhoneNumber.json +40 -0
  246. package/json-schema/auth/SCIMUser.json +462 -0
  247. package/json-schema/automation/ApprovalAction.json +35 -0
  248. package/json-schema/automation/ApprovalActionType.json +15 -0
  249. package/json-schema/automation/ApprovalProcess.json +326 -0
  250. package/json-schema/automation/ApprovalStep.json +147 -0
  251. package/json-schema/automation/ApproverType.json +16 -0
  252. package/json-schema/automation/AuthField.json +73 -0
  253. package/json-schema/automation/Authentication.json +159 -0
  254. package/json-schema/automation/AuthenticationType.json +18 -0
  255. package/json-schema/automation/ConflictResolution.json +16 -0
  256. package/json-schema/automation/Connector.json +440 -0
  257. package/json-schema/automation/ConnectorCategory.json +26 -0
  258. package/json-schema/automation/ConnectorInstance.json +69 -0
  259. package/json-schema/automation/ConnectorOperation.json +117 -0
  260. package/json-schema/automation/ConnectorTrigger.json +54 -0
  261. package/json-schema/automation/DataDestinationConfig.json +89 -0
  262. package/json-schema/automation/DataSourceConfig.json +34 -0
  263. package/json-schema/automation/DataSyncConfig.json +355 -0
  264. package/json-schema/automation/ETLDestination.json +57 -0
  265. package/json-schema/automation/ETLEndpointType.json +19 -0
  266. package/json-schema/automation/ETLPipeline.json +252 -0
  267. package/json-schema/automation/ETLPipelineRun.json +107 -0
  268. package/json-schema/automation/ETLRunStatus.json +17 -0
  269. package/json-schema/automation/ETLSource.json +60 -0
  270. package/json-schema/{data/LogicOperator.json → automation/ETLSyncMode.json} +5 -5
  271. package/json-schema/automation/ETLTransformation.json +46 -0
  272. package/json-schema/automation/ETLTransformationType.json +21 -0
  273. package/json-schema/automation/FieldMapping.json +36 -0
  274. package/json-schema/{data → automation}/Flow.json +31 -1
  275. package/json-schema/{data → automation}/FlowEdge.json +9 -0
  276. package/json-schema/automation/OAuth2Config.json +43 -0
  277. package/json-schema/automation/OperationParameter.json +59 -0
  278. package/json-schema/automation/OperationType.json +17 -0
  279. package/json-schema/automation/SyncDirection.json +14 -0
  280. package/json-schema/automation/SyncExecutionResult.json +135 -0
  281. package/json-schema/automation/SyncExecutionStatus.json +17 -0
  282. package/json-schema/{data/TriggerTiming.json → automation/SyncMode.json} +5 -4
  283. package/json-schema/{data/WorkflowRule.json → automation/TimeTrigger.json} +35 -25
  284. package/json-schema/{system → automation}/Webhook.json +3 -1
  285. package/json-schema/{system → automation}/WebhookReceiver.json +3 -1
  286. package/json-schema/automation/WorkflowRule.json +1032 -0
  287. package/json-schema/data/AggregationNode.json +23 -0
  288. package/json-schema/data/AsyncValidation.json +49 -2
  289. package/json-schema/data/ComparisonOperator.json +52 -0
  290. package/json-schema/data/ConditionalValidation.json +693 -46
  291. package/json-schema/data/CrossFieldValidation.json +33 -2
  292. package/json-schema/data/CurrencyConfig.json +35 -0
  293. package/json-schema/data/CurrencyValue.json +26 -0
  294. package/json-schema/data/CustomValidator.json +37 -10
  295. package/json-schema/data/Field.json +92 -4
  296. package/json-schema/data/FieldOperators.json +78 -0
  297. package/json-schema/data/FieldReference.json +19 -0
  298. package/json-schema/data/FieldType.json +12 -2
  299. package/json-schema/data/FormatValidation.json +33 -2
  300. package/json-schema/data/Hook.json +95 -0
  301. package/json-schema/data/HookContext.json +88 -0
  302. package/json-schema/data/HookEvent.json +29 -0
  303. package/json-schema/data/Index.json +10 -0
  304. package/json-schema/data/JSONValidation.json +85 -0
  305. package/json-schema/data/JoinNode.json +197 -213
  306. package/json-schema/data/JoinStrategy.json +15 -0
  307. package/json-schema/data/NormalizedFilter.json +234 -0
  308. package/json-schema/data/Object.json +1642 -32
  309. package/json-schema/data/ObjectCapabilities.json +30 -12
  310. package/json-schema/data/Query.json +246 -262
  311. package/json-schema/data/RangeOperator.json +26 -0
  312. package/json-schema/data/ScriptValidation.json +33 -2
  313. package/json-schema/data/SearchConfig.json +36 -0
  314. package/json-schema/data/SelectOption.json +4 -2
  315. package/json-schema/data/StateMachineValidation.json +33 -2
  316. package/json-schema/data/UniquenessValidation.json +33 -2
  317. package/json-schema/data/ValidationRule.json +693 -46
  318. package/json-schema/data/VectorConfig.json +51 -0
  319. package/json-schema/hub/BillOfMaterials.json +70 -0
  320. package/json-schema/hub/ComposerRequest.json +86 -0
  321. package/json-schema/hub/ComposerResponse.json +483 -0
  322. package/json-schema/hub/ConflictReport.json +53 -0
  323. package/json-schema/hub/DependencyRequirement.json +36 -0
  324. package/json-schema/hub/DeploymentTarget.json +38 -0
  325. package/json-schema/hub/HubSpace.json +279 -0
  326. package/json-schema/{system → hub}/License.json +11 -3
  327. package/json-schema/hub/MarketplacePlugin.json +141 -0
  328. package/json-schema/hub/PluginAuthor.json +26 -0
  329. package/json-schema/hub/PluginPricing.json +43 -0
  330. package/json-schema/hub/SpaceSubscription.json +77 -0
  331. package/json-schema/hub/SubscriptionStatus.json +16 -0
  332. package/json-schema/{system → hub}/Tenant.json +3 -5
  333. package/json-schema/permission/CriteriaSharingRule.json +82 -0
  334. package/json-schema/{data → permission}/OWDModel.json +2 -1
  335. package/json-schema/{data → permission}/ObjectPermission.json +15 -0
  336. package/json-schema/permission/OwnerSharingRule.json +102 -0
  337. package/json-schema/{data → permission}/PermissionSet.json +18 -1
  338. package/json-schema/permission/RLSConfig.json +59 -0
  339. package/json-schema/permission/RLSEvaluationResult.json +40 -0
  340. package/json-schema/{data/TriggerAction.json → permission/RLSOperation.json} +5 -3
  341. package/json-schema/permission/RLSUserContext.json +51 -0
  342. package/json-schema/permission/RowLevelSecurityPolicy.json +77 -0
  343. package/json-schema/permission/ShareRecipientType.json +16 -0
  344. package/json-schema/{data → permission}/SharingLevel.json +2 -1
  345. package/json-schema/permission/SharingRule.json +182 -0
  346. package/json-schema/{data → permission}/SharingRuleType.json +1 -3
  347. package/json-schema/{system → permission}/Territory.json +3 -1
  348. package/json-schema/shared/EventName.json +12 -0
  349. package/json-schema/shared/SnakeCaseIdentifier.json +12 -0
  350. package/json-schema/shared/SystemIdentifier.json +12 -0
  351. package/json-schema/system/Datasource.json +35 -0
  352. package/json-schema/system/DriverCapabilities.json +10 -0
  353. package/json-schema/system/DriverInterface.json +10 -0
  354. package/json-schema/system/DriverOptions.json +11 -0
  355. package/json-schema/system/Event.json +3 -2
  356. package/json-schema/system/FeatureFlag.json +87 -0
  357. package/json-schema/system/FeatureStrategy.json +16 -0
  358. package/json-schema/system/FileMetadata.json +43 -0
  359. package/json-schema/system/KernelContext.json +62 -0
  360. package/json-schema/system/LogEntry.json +63 -0
  361. package/json-schema/system/LogFormat.json +15 -0
  362. package/json-schema/system/LogLevel.json +17 -0
  363. package/json-schema/system/LoggerConfig.json +70 -0
  364. package/json-schema/system/Manifest.json +80 -0
  365. package/json-schema/system/MongoConfig.json +82 -0
  366. package/json-schema/system/PluginContext.json +8 -1
  367. package/json-schema/system/PostgresConfig.json +98 -0
  368. package/json-schema/system/RuntimeMode.json +16 -0
  369. package/json-schema/system/ScopedStorageConfig.json +54 -0
  370. package/json-schema/system/StorageAdapterType.json +17 -0
  371. package/json-schema/system/StorageScope.json +18 -0
  372. package/json-schema/ui/Action.json +25 -4
  373. package/json-schema/ui/ActionParam.json +12 -2
  374. package/json-schema/ui/App.json +18 -7
  375. package/json-schema/ui/ChartType.json +9 -1
  376. package/json-schema/ui/Dashboard.json +9 -1
  377. package/json-schema/ui/DashboardNavItem.json +3 -1
  378. package/json-schema/ui/DashboardWidget.json +9 -1
  379. package/json-schema/ui/FieldWidgetProps.json +92 -4
  380. package/json-schema/ui/FormView.json +4 -1
  381. package/json-schema/ui/GroupNavItem.json +3 -1
  382. package/json-schema/ui/ListView.json +7 -1
  383. package/json-schema/ui/NavigationItem.json +15 -5
  384. package/json-schema/ui/ObjectNavItem.json +3 -1
  385. package/json-schema/ui/Page.json +36 -4
  386. package/json-schema/ui/PageCardProps.json +32 -0
  387. package/json-schema/ui/PageComponent.json +33 -3
  388. package/json-schema/ui/PageComponentType.json +32 -0
  389. package/json-schema/ui/PageHeaderProps.json +39 -0
  390. package/json-schema/ui/PageNavItem.json +3 -1
  391. package/json-schema/ui/PageRegion.json +33 -3
  392. package/json-schema/ui/PageTabsProps.json +55 -0
  393. package/json-schema/ui/RecordDetailsProps.json +37 -0
  394. package/json-schema/ui/RecordHighlightsProps.json +24 -0
  395. package/json-schema/ui/RecordRelatedListProps.json +39 -0
  396. package/json-schema/ui/UrlNavItem.json +3 -1
  397. package/json-schema/ui/View.json +22 -4
  398. package/json-schema/ui/WidgetEvent.json +42 -0
  399. package/json-schema/ui/WidgetLifecycle.json +40 -0
  400. package/json-schema/ui/WidgetManifest.json +262 -0
  401. package/json-schema/ui/WidgetProperty.json +58 -0
  402. package/llms.txt +182 -0
  403. package/package.json +38 -16
  404. package/prompts/README.md +18 -0
  405. package/prompts/architecture.md +81 -0
  406. package/prompts/create-new-project.md +85 -0
  407. package/prompts/implement-objectai.md +39 -0
  408. package/prompts/implement-objectos.md +48 -0
  409. package/prompts/implement-objectql.md +39 -0
  410. package/prompts/implement-objectui.md +46 -0
  411. package/prompts/instructions.md +91 -0
  412. package/dist/ai/workflow-automation.zod.d.ts.map +0 -1
  413. package/dist/data/flow.zod.d.ts.map +0 -1
  414. package/dist/data/permission.zod.d.ts.map +0 -1
  415. package/dist/data/sharing.zod.d.ts +0 -63
  416. package/dist/data/sharing.zod.d.ts.map +0 -1
  417. package/dist/data/sharing.zod.js +0 -57
  418. package/dist/data/trigger.zod.d.ts +0 -354
  419. package/dist/data/trigger.zod.d.ts.map +0 -1
  420. package/dist/data/trigger.zod.js +0 -195
  421. package/dist/data/workflow.zod.d.ts +0 -986
  422. package/dist/data/workflow.zod.d.ts.map +0 -1
  423. package/dist/system/api.zod.d.ts.map +0 -1
  424. package/dist/system/auth-protocol.d.ts.map +0 -1
  425. package/dist/system/auth.zod.d.ts.map +0 -1
  426. package/dist/system/discovery.zod.d.ts.map +0 -1
  427. package/dist/system/identity.zod.d.ts.map +0 -1
  428. package/dist/system/license.zod.d.ts.map +0 -1
  429. package/dist/system/organization.zod.d.ts.map +0 -1
  430. package/dist/system/policy.zod.d.ts.map +0 -1
  431. package/dist/system/realtime.zod.d.ts.map +0 -1
  432. package/dist/system/role.zod.d.ts.map +0 -1
  433. package/dist/system/tenant.zod.d.ts.map +0 -1
  434. package/dist/system/territory.zod.d.ts.map +0 -1
  435. package/dist/system/webhook.zod.d.ts.map +0 -1
  436. package/json-schema/README.md +0 -127
  437. package/json-schema/data/FieldMapping.json +0 -83
  438. package/json-schema/data/FilterNode.json +0 -52
  439. package/json-schema/data/FilterOperator.json +0 -26
  440. package/json-schema/data/Mapping.json +0 -598
  441. package/json-schema/data/SharingRule.json +0 -58
  442. package/json-schema/data/TransformType.json +0 -18
  443. package/json-schema/data/Trigger.json +0 -73
  444. package/json-schema/data/TriggerContext.json +0 -61
  445. /package/dist/{system → api}/realtime.zod.js +0 -0
  446. /package/dist/{system/auth.zod.js → auth/config.zod.js} +0 -0
  447. /package/dist/{system → auth}/identity.zod.js +0 -0
  448. /package/dist/{system → auth}/organization.zod.js +0 -0
  449. /package/dist/{system → auth}/policy.zod.js +0 -0
  450. /package/dist/{system/auth-protocol.js → auth/protocol.js} +0 -0
  451. /package/json-schema/{system → api}/ApiCapabilities.json +0 -0
  452. /package/json-schema/{system → api}/ApiMapping.json +0 -0
  453. /package/json-schema/{system → api}/Presence.json +0 -0
  454. /package/json-schema/{system → api}/PresenceStatus.json +0 -0
  455. /package/json-schema/{system → api}/RateLimit.json +0 -0
  456. /package/json-schema/{system → api}/RealtimeAction.json +0 -0
  457. /package/json-schema/{system → api}/RealtimeEvent.json +0 -0
  458. /package/json-schema/{system → api}/RealtimeEventType.json +0 -0
  459. /package/json-schema/{system → api}/Subscription.json +0 -0
  460. /package/json-schema/{system → api}/SubscriptionEvent.json +0 -0
  461. /package/json-schema/{system → api}/TransportProtocol.json +0 -0
  462. /package/json-schema/{system → auth}/Account.json +0 -0
  463. /package/json-schema/{system → auth}/AccountLinkingConfig.json +0 -0
  464. /package/json-schema/{system → auth}/AuditPolicy.json +0 -0
  465. /package/json-schema/{system → auth}/AuthConfig.json +0 -0
  466. /package/json-schema/{system → auth}/AuthPluginConfig.json +0 -0
  467. /package/json-schema/{system → auth}/AuthStrategy.json +0 -0
  468. /package/json-schema/{system → auth}/CSRFConfig.json +0 -0
  469. /package/json-schema/{system → auth}/DatabaseAdapter.json +0 -0
  470. /package/json-schema/{system → auth}/DatabaseMapping.json +0 -0
  471. /package/json-schema/{system → auth}/EmailPasswordConfig.json +0 -0
  472. /package/json-schema/{system → auth}/EnterpriseAuthConfig.json +0 -0
  473. /package/json-schema/{system → auth}/Invitation.json +0 -0
  474. /package/json-schema/{system → auth}/InvitationStatus.json +0 -0
  475. /package/json-schema/{system → auth}/LDAPConfig.json +0 -0
  476. /package/json-schema/{system → auth}/MagicLinkConfig.json +0 -0
  477. /package/json-schema/{system → auth}/Member.json +0 -0
  478. /package/json-schema/{system → auth}/NetworkPolicy.json +0 -0
  479. /package/json-schema/{system → auth}/OAuthProvider.json +0 -0
  480. /package/json-schema/{system → auth}/OIDCConfig.json +0 -0
  481. /package/json-schema/{system → auth}/Organization.json +0 -0
  482. /package/json-schema/{system → auth}/PasskeyConfig.json +0 -0
  483. /package/json-schema/{system → auth}/PasswordPolicy.json +0 -0
  484. /package/json-schema/{system → auth}/Policy.json +0 -0
  485. /package/json-schema/{system → auth}/RateLimitConfig.json +0 -0
  486. /package/json-schema/{system → auth}/SAMLConfig.json +0 -0
  487. /package/json-schema/{system → auth}/Session.json +0 -0
  488. /package/json-schema/{system → auth}/SessionConfig.json +0 -0
  489. /package/json-schema/{system → auth}/SessionPolicy.json +0 -0
  490. /package/json-schema/{system → auth}/StandardAuthProvider.json +0 -0
  491. /package/json-schema/{system → auth}/TwoFactorConfig.json +0 -0
  492. /package/json-schema/{system → auth}/User.json +0 -0
  493. /package/json-schema/{system → auth}/UserFieldMapping.json +0 -0
  494. /package/json-schema/{system → auth}/VerificationToken.json +0 -0
  495. /package/json-schema/{data → automation}/CustomScriptAction.json +0 -0
  496. /package/json-schema/{data → automation}/EmailAlertAction.json +0 -0
  497. /package/json-schema/{data → automation}/FieldUpdateAction.json +0 -0
  498. /package/json-schema/{data → automation}/FlowNode.json +0 -0
  499. /package/json-schema/{data → automation}/FlowNodeAction.json +0 -0
  500. /package/json-schema/{data → automation}/FlowVariable.json +0 -0
  501. /package/json-schema/{data → automation}/HttpCallAction.json +0 -0
  502. /package/json-schema/{data → automation}/PushNotificationAction.json +0 -0
  503. /package/json-schema/{data → automation}/SlackMessageAction.json +0 -0
  504. /package/json-schema/{data → automation}/SmsNotificationAction.json +0 -0
  505. /package/json-schema/{data → automation}/TaskCreationAction.json +0 -0
  506. /package/json-schema/{data → automation}/TeamsMessageAction.json +0 -0
  507. /package/json-schema/{data → automation}/WebhookTriggerAction.json +0 -0
  508. /package/json-schema/{system → automation}/WebhookTriggerType.json +0 -0
  509. /package/json-schema/{data → automation}/WorkflowAction.json +0 -0
  510. /package/json-schema/{data → automation}/WorkflowTriggerType.json +0 -0
  511. /package/json-schema/{system → hub}/DatabaseLevelIsolationStrategy.json +0 -0
  512. /package/json-schema/{system → hub}/Feature.json +0 -0
  513. /package/json-schema/{system → hub}/LevelIsolationStrategySchema.json +0 -0
  514. /package/json-schema/{system → hub}/MetricType.json +0 -0
  515. /package/json-schema/{system → hub}/Plan.json +0 -0
  516. /package/json-schema/{system → hub}/RowLevelIsolationStrategy.json +0 -0
  517. /package/json-schema/{system → hub}/TenantIsolationConfig.json +0 -0
  518. /package/json-schema/{system → hub}/TenantIsolationLevel.json +0 -0
  519. /package/json-schema/{system → hub}/TenantQuota.json +0 -0
  520. /package/json-schema/{system → hub}/TenantSecurityPolicy.json +0 -0
  521. /package/json-schema/{data → permission}/FieldPermission.json +0 -0
  522. /package/json-schema/{system → permission}/TerritoryModel.json +0 -0
  523. /package/json-schema/{system → permission}/TerritoryType.json +0 -0
@@ -0,0 +1,1032 @@
1
+ {
2
+ "$ref": "#/definitions/WorkflowRule",
3
+ "definitions": {
4
+ "WorkflowRule": {
5
+ "type": "object",
6
+ "properties": {
7
+ "name": {
8
+ "type": "string",
9
+ "minLength": 2,
10
+ "pattern": "^[a-z][a-z0-9_]*$",
11
+ "description": "Unique workflow name (lowercase snake_case)"
12
+ },
13
+ "objectName": {
14
+ "type": "string",
15
+ "description": "Target Object"
16
+ },
17
+ "triggerType": {
18
+ "type": "string",
19
+ "enum": [
20
+ "on_create",
21
+ "on_update",
22
+ "on_create_or_update",
23
+ "on_delete",
24
+ "schedule"
25
+ ],
26
+ "description": "When to evaluate"
27
+ },
28
+ "criteria": {
29
+ "type": "string",
30
+ "description": "Formula condition. If TRUE, actions execute."
31
+ },
32
+ "actions": {
33
+ "type": "array",
34
+ "items": {
35
+ "anyOf": [
36
+ {
37
+ "type": "object",
38
+ "properties": {
39
+ "name": {
40
+ "type": "string",
41
+ "description": "Action name"
42
+ },
43
+ "type": {
44
+ "type": "string",
45
+ "const": "field_update"
46
+ },
47
+ "field": {
48
+ "type": "string",
49
+ "description": "Field to update"
50
+ },
51
+ "value": {
52
+ "description": "Value or Formula to set"
53
+ }
54
+ },
55
+ "required": [
56
+ "name",
57
+ "type",
58
+ "field"
59
+ ],
60
+ "additionalProperties": false
61
+ },
62
+ {
63
+ "type": "object",
64
+ "properties": {
65
+ "name": {
66
+ "type": "string",
67
+ "description": "Action name"
68
+ },
69
+ "type": {
70
+ "type": "string",
71
+ "const": "email_alert"
72
+ },
73
+ "template": {
74
+ "type": "string",
75
+ "description": "Email template ID/DevName"
76
+ },
77
+ "recipients": {
78
+ "type": "array",
79
+ "items": {
80
+ "type": "string"
81
+ },
82
+ "description": "List of recipient emails or user IDs"
83
+ }
84
+ },
85
+ "required": [
86
+ "name",
87
+ "type",
88
+ "template",
89
+ "recipients"
90
+ ],
91
+ "additionalProperties": false
92
+ },
93
+ {
94
+ "type": "object",
95
+ "properties": {
96
+ "name": {
97
+ "type": "string",
98
+ "description": "Action name"
99
+ },
100
+ "type": {
101
+ "type": "string",
102
+ "const": "sms_notification"
103
+ },
104
+ "provider": {
105
+ "type": "string",
106
+ "enum": [
107
+ "twilio",
108
+ "vonage"
109
+ ],
110
+ "description": "SMS provider"
111
+ },
112
+ "recipients": {
113
+ "type": "array",
114
+ "items": {
115
+ "type": "string"
116
+ },
117
+ "description": "List of phone numbers or user field references"
118
+ },
119
+ "message": {
120
+ "type": "string",
121
+ "description": "SMS message text or template"
122
+ },
123
+ "fromNumber": {
124
+ "type": "string",
125
+ "description": "Sender phone number (provider-specific)"
126
+ }
127
+ },
128
+ "required": [
129
+ "name",
130
+ "type",
131
+ "provider",
132
+ "recipients",
133
+ "message"
134
+ ],
135
+ "additionalProperties": false
136
+ },
137
+ {
138
+ "type": "object",
139
+ "properties": {
140
+ "name": {
141
+ "type": "string",
142
+ "description": "Action name"
143
+ },
144
+ "type": {
145
+ "type": "string",
146
+ "const": "slack_message"
147
+ },
148
+ "channel": {
149
+ "type": "string",
150
+ "description": "Slack channel ID or name (#channel)"
151
+ },
152
+ "message": {
153
+ "type": "string",
154
+ "description": "Message text with optional markdown"
155
+ },
156
+ "mentions": {
157
+ "type": "array",
158
+ "items": {
159
+ "type": "string"
160
+ },
161
+ "description": "User IDs or @username to mention"
162
+ },
163
+ "threadId": {
164
+ "type": "string",
165
+ "description": "Thread ID for replies"
166
+ }
167
+ },
168
+ "required": [
169
+ "name",
170
+ "type",
171
+ "channel",
172
+ "message"
173
+ ],
174
+ "additionalProperties": false
175
+ },
176
+ {
177
+ "type": "object",
178
+ "properties": {
179
+ "name": {
180
+ "type": "string",
181
+ "description": "Action name"
182
+ },
183
+ "type": {
184
+ "type": "string",
185
+ "const": "teams_message"
186
+ },
187
+ "channel": {
188
+ "type": "string",
189
+ "description": "Teams channel ID"
190
+ },
191
+ "message": {
192
+ "type": "string",
193
+ "description": "Message text with optional markdown"
194
+ },
195
+ "mentions": {
196
+ "type": "array",
197
+ "items": {
198
+ "type": "string"
199
+ },
200
+ "description": "User IDs to mention"
201
+ },
202
+ "teamId": {
203
+ "type": "string",
204
+ "description": "Team ID (if not in default team)"
205
+ }
206
+ },
207
+ "required": [
208
+ "name",
209
+ "type",
210
+ "channel",
211
+ "message"
212
+ ],
213
+ "additionalProperties": false
214
+ },
215
+ {
216
+ "type": "object",
217
+ "properties": {
218
+ "name": {
219
+ "type": "string",
220
+ "description": "Action name"
221
+ },
222
+ "type": {
223
+ "type": "string",
224
+ "const": "http_call"
225
+ },
226
+ "url": {
227
+ "type": "string",
228
+ "description": "Target URL"
229
+ },
230
+ "method": {
231
+ "type": "string",
232
+ "enum": [
233
+ "GET",
234
+ "POST",
235
+ "PUT",
236
+ "PATCH",
237
+ "DELETE"
238
+ ],
239
+ "description": "HTTP method"
240
+ },
241
+ "headers": {
242
+ "type": "object",
243
+ "additionalProperties": {
244
+ "type": "string"
245
+ },
246
+ "description": "Request headers"
247
+ },
248
+ "body": {
249
+ "description": "Request body (object/string)"
250
+ },
251
+ "authentication": {
252
+ "type": "object",
253
+ "properties": {
254
+ "type": {
255
+ "type": "string",
256
+ "enum": [
257
+ "none",
258
+ "basic",
259
+ "bearer",
260
+ "api_key",
261
+ "oauth2"
262
+ ]
263
+ },
264
+ "credentials": {
265
+ "type": "object",
266
+ "additionalProperties": {
267
+ "type": "string"
268
+ }
269
+ }
270
+ },
271
+ "required": [
272
+ "type"
273
+ ],
274
+ "additionalProperties": false,
275
+ "description": "Authentication configuration"
276
+ },
277
+ "timeout": {
278
+ "type": "number",
279
+ "description": "Request timeout in milliseconds"
280
+ }
281
+ },
282
+ "required": [
283
+ "name",
284
+ "type",
285
+ "url",
286
+ "method"
287
+ ],
288
+ "additionalProperties": false
289
+ },
290
+ {
291
+ "type": "object",
292
+ "properties": {
293
+ "name": {
294
+ "type": "string",
295
+ "description": "Action name"
296
+ },
297
+ "type": {
298
+ "type": "string",
299
+ "const": "webhook_trigger"
300
+ },
301
+ "url": {
302
+ "type": "string",
303
+ "description": "Webhook URL to call"
304
+ },
305
+ "method": {
306
+ "type": "string",
307
+ "enum": [
308
+ "POST",
309
+ "PUT"
310
+ ],
311
+ "default": "POST",
312
+ "description": "HTTP method"
313
+ },
314
+ "headers": {
315
+ "type": "object",
316
+ "additionalProperties": {
317
+ "type": "string"
318
+ },
319
+ "description": "Custom headers"
320
+ },
321
+ "payload": {
322
+ "description": "Webhook payload (uses record data if not specified)"
323
+ },
324
+ "retryOnFailure": {
325
+ "type": "boolean",
326
+ "default": true,
327
+ "description": "Retry if webhook fails"
328
+ },
329
+ "maxRetries": {
330
+ "type": "number",
331
+ "default": 3,
332
+ "description": "Maximum retry attempts"
333
+ }
334
+ },
335
+ "required": [
336
+ "name",
337
+ "type",
338
+ "url"
339
+ ],
340
+ "additionalProperties": false
341
+ },
342
+ {
343
+ "type": "object",
344
+ "properties": {
345
+ "name": {
346
+ "type": "string",
347
+ "description": "Action name"
348
+ },
349
+ "type": {
350
+ "type": "string",
351
+ "const": "task_creation"
352
+ },
353
+ "taskObject": {
354
+ "type": "string",
355
+ "description": "Task object name (e.g., \"task\", \"project_task\")"
356
+ },
357
+ "subject": {
358
+ "type": "string",
359
+ "description": "Task subject/title"
360
+ },
361
+ "description": {
362
+ "type": "string",
363
+ "description": "Task description"
364
+ },
365
+ "assignedTo": {
366
+ "type": "string",
367
+ "description": "User ID or field reference for assignee"
368
+ },
369
+ "dueDate": {
370
+ "type": "string",
371
+ "description": "Due date (ISO string or formula)"
372
+ },
373
+ "priority": {
374
+ "type": "string",
375
+ "description": "Task priority"
376
+ },
377
+ "relatedTo": {
378
+ "type": "string",
379
+ "description": "Related record ID or field reference"
380
+ },
381
+ "additionalFields": {
382
+ "type": "object",
383
+ "additionalProperties": {},
384
+ "description": "Additional custom fields"
385
+ }
386
+ },
387
+ "required": [
388
+ "name",
389
+ "type",
390
+ "taskObject",
391
+ "subject"
392
+ ],
393
+ "additionalProperties": false
394
+ },
395
+ {
396
+ "type": "object",
397
+ "properties": {
398
+ "name": {
399
+ "type": "string",
400
+ "description": "Action name"
401
+ },
402
+ "type": {
403
+ "type": "string",
404
+ "const": "push_notification"
405
+ },
406
+ "title": {
407
+ "type": "string",
408
+ "description": "Notification title"
409
+ },
410
+ "body": {
411
+ "type": "string",
412
+ "description": "Notification body text"
413
+ },
414
+ "recipients": {
415
+ "type": "array",
416
+ "items": {
417
+ "type": "string"
418
+ },
419
+ "description": "User IDs or device tokens"
420
+ },
421
+ "data": {
422
+ "type": "object",
423
+ "additionalProperties": {},
424
+ "description": "Additional data payload"
425
+ },
426
+ "badge": {
427
+ "type": "number",
428
+ "description": "Badge count (iOS)"
429
+ },
430
+ "sound": {
431
+ "type": "string",
432
+ "description": "Notification sound"
433
+ },
434
+ "clickAction": {
435
+ "type": "string",
436
+ "description": "Action/URL when notification is clicked"
437
+ }
438
+ },
439
+ "required": [
440
+ "name",
441
+ "type",
442
+ "title",
443
+ "body",
444
+ "recipients"
445
+ ],
446
+ "additionalProperties": false
447
+ },
448
+ {
449
+ "type": "object",
450
+ "properties": {
451
+ "name": {
452
+ "type": "string",
453
+ "description": "Action name"
454
+ },
455
+ "type": {
456
+ "type": "string",
457
+ "const": "custom_script"
458
+ },
459
+ "language": {
460
+ "type": "string",
461
+ "enum": [
462
+ "javascript",
463
+ "typescript",
464
+ "python"
465
+ ],
466
+ "default": "javascript",
467
+ "description": "Script language"
468
+ },
469
+ "code": {
470
+ "type": "string",
471
+ "description": "Script code to execute"
472
+ },
473
+ "timeout": {
474
+ "type": "number",
475
+ "default": 30000,
476
+ "description": "Execution timeout in milliseconds"
477
+ },
478
+ "context": {
479
+ "type": "object",
480
+ "additionalProperties": {},
481
+ "description": "Additional context variables"
482
+ }
483
+ },
484
+ "required": [
485
+ "name",
486
+ "type",
487
+ "code"
488
+ ],
489
+ "additionalProperties": false
490
+ }
491
+ ]
492
+ },
493
+ "description": "Immediate actions"
494
+ },
495
+ "timeTriggers": {
496
+ "type": "array",
497
+ "items": {
498
+ "type": "object",
499
+ "properties": {
500
+ "id": {
501
+ "type": "string",
502
+ "description": "Unique identifier"
503
+ },
504
+ "timeLength": {
505
+ "type": "integer",
506
+ "description": "Duration amount (e.g. 1, 30)"
507
+ },
508
+ "timeUnit": {
509
+ "type": "string",
510
+ "enum": [
511
+ "minutes",
512
+ "hours",
513
+ "days"
514
+ ],
515
+ "description": "Unit of time"
516
+ },
517
+ "offsetDirection": {
518
+ "type": "string",
519
+ "enum": [
520
+ "before",
521
+ "after"
522
+ ],
523
+ "description": "Before or After the reference date"
524
+ },
525
+ "offsetFrom": {
526
+ "type": "string",
527
+ "enum": [
528
+ "trigger_date",
529
+ "date_field"
530
+ ],
531
+ "description": "Basis for calculation"
532
+ },
533
+ "dateField": {
534
+ "type": "string",
535
+ "description": "Date field to calculate from (required if offsetFrom is date_field)"
536
+ },
537
+ "actions": {
538
+ "type": "array",
539
+ "items": {
540
+ "anyOf": [
541
+ {
542
+ "type": "object",
543
+ "properties": {
544
+ "name": {
545
+ "type": "string",
546
+ "description": "Action name"
547
+ },
548
+ "type": {
549
+ "type": "string",
550
+ "const": "field_update"
551
+ },
552
+ "field": {
553
+ "type": "string",
554
+ "description": "Field to update"
555
+ },
556
+ "value": {
557
+ "description": "Value or Formula to set"
558
+ }
559
+ },
560
+ "required": [
561
+ "name",
562
+ "type",
563
+ "field"
564
+ ],
565
+ "additionalProperties": false
566
+ },
567
+ {
568
+ "type": "object",
569
+ "properties": {
570
+ "name": {
571
+ "type": "string",
572
+ "description": "Action name"
573
+ },
574
+ "type": {
575
+ "type": "string",
576
+ "const": "email_alert"
577
+ },
578
+ "template": {
579
+ "type": "string",
580
+ "description": "Email template ID/DevName"
581
+ },
582
+ "recipients": {
583
+ "type": "array",
584
+ "items": {
585
+ "type": "string"
586
+ },
587
+ "description": "List of recipient emails or user IDs"
588
+ }
589
+ },
590
+ "required": [
591
+ "name",
592
+ "type",
593
+ "template",
594
+ "recipients"
595
+ ],
596
+ "additionalProperties": false
597
+ },
598
+ {
599
+ "type": "object",
600
+ "properties": {
601
+ "name": {
602
+ "type": "string",
603
+ "description": "Action name"
604
+ },
605
+ "type": {
606
+ "type": "string",
607
+ "const": "sms_notification"
608
+ },
609
+ "provider": {
610
+ "type": "string",
611
+ "enum": [
612
+ "twilio",
613
+ "vonage"
614
+ ],
615
+ "description": "SMS provider"
616
+ },
617
+ "recipients": {
618
+ "type": "array",
619
+ "items": {
620
+ "type": "string"
621
+ },
622
+ "description": "List of phone numbers or user field references"
623
+ },
624
+ "message": {
625
+ "type": "string",
626
+ "description": "SMS message text or template"
627
+ },
628
+ "fromNumber": {
629
+ "type": "string",
630
+ "description": "Sender phone number (provider-specific)"
631
+ }
632
+ },
633
+ "required": [
634
+ "name",
635
+ "type",
636
+ "provider",
637
+ "recipients",
638
+ "message"
639
+ ],
640
+ "additionalProperties": false
641
+ },
642
+ {
643
+ "type": "object",
644
+ "properties": {
645
+ "name": {
646
+ "type": "string",
647
+ "description": "Action name"
648
+ },
649
+ "type": {
650
+ "type": "string",
651
+ "const": "slack_message"
652
+ },
653
+ "channel": {
654
+ "type": "string",
655
+ "description": "Slack channel ID or name (#channel)"
656
+ },
657
+ "message": {
658
+ "type": "string",
659
+ "description": "Message text with optional markdown"
660
+ },
661
+ "mentions": {
662
+ "type": "array",
663
+ "items": {
664
+ "type": "string"
665
+ },
666
+ "description": "User IDs or @username to mention"
667
+ },
668
+ "threadId": {
669
+ "type": "string",
670
+ "description": "Thread ID for replies"
671
+ }
672
+ },
673
+ "required": [
674
+ "name",
675
+ "type",
676
+ "channel",
677
+ "message"
678
+ ],
679
+ "additionalProperties": false
680
+ },
681
+ {
682
+ "type": "object",
683
+ "properties": {
684
+ "name": {
685
+ "type": "string",
686
+ "description": "Action name"
687
+ },
688
+ "type": {
689
+ "type": "string",
690
+ "const": "teams_message"
691
+ },
692
+ "channel": {
693
+ "type": "string",
694
+ "description": "Teams channel ID"
695
+ },
696
+ "message": {
697
+ "type": "string",
698
+ "description": "Message text with optional markdown"
699
+ },
700
+ "mentions": {
701
+ "type": "array",
702
+ "items": {
703
+ "type": "string"
704
+ },
705
+ "description": "User IDs to mention"
706
+ },
707
+ "teamId": {
708
+ "type": "string",
709
+ "description": "Team ID (if not in default team)"
710
+ }
711
+ },
712
+ "required": [
713
+ "name",
714
+ "type",
715
+ "channel",
716
+ "message"
717
+ ],
718
+ "additionalProperties": false
719
+ },
720
+ {
721
+ "type": "object",
722
+ "properties": {
723
+ "name": {
724
+ "type": "string",
725
+ "description": "Action name"
726
+ },
727
+ "type": {
728
+ "type": "string",
729
+ "const": "http_call"
730
+ },
731
+ "url": {
732
+ "type": "string",
733
+ "description": "Target URL"
734
+ },
735
+ "method": {
736
+ "type": "string",
737
+ "enum": [
738
+ "GET",
739
+ "POST",
740
+ "PUT",
741
+ "PATCH",
742
+ "DELETE"
743
+ ],
744
+ "description": "HTTP method"
745
+ },
746
+ "headers": {
747
+ "type": "object",
748
+ "additionalProperties": {
749
+ "type": "string"
750
+ },
751
+ "description": "Request headers"
752
+ },
753
+ "body": {
754
+ "description": "Request body (object/string)"
755
+ },
756
+ "authentication": {
757
+ "type": "object",
758
+ "properties": {
759
+ "type": {
760
+ "type": "string",
761
+ "enum": [
762
+ "none",
763
+ "basic",
764
+ "bearer",
765
+ "api_key",
766
+ "oauth2"
767
+ ]
768
+ },
769
+ "credentials": {
770
+ "type": "object",
771
+ "additionalProperties": {
772
+ "type": "string"
773
+ }
774
+ }
775
+ },
776
+ "required": [
777
+ "type"
778
+ ],
779
+ "additionalProperties": false,
780
+ "description": "Authentication configuration"
781
+ },
782
+ "timeout": {
783
+ "type": "number",
784
+ "description": "Request timeout in milliseconds"
785
+ }
786
+ },
787
+ "required": [
788
+ "name",
789
+ "type",
790
+ "url",
791
+ "method"
792
+ ],
793
+ "additionalProperties": false
794
+ },
795
+ {
796
+ "type": "object",
797
+ "properties": {
798
+ "name": {
799
+ "type": "string",
800
+ "description": "Action name"
801
+ },
802
+ "type": {
803
+ "type": "string",
804
+ "const": "webhook_trigger"
805
+ },
806
+ "url": {
807
+ "type": "string",
808
+ "description": "Webhook URL to call"
809
+ },
810
+ "method": {
811
+ "type": "string",
812
+ "enum": [
813
+ "POST",
814
+ "PUT"
815
+ ],
816
+ "default": "POST",
817
+ "description": "HTTP method"
818
+ },
819
+ "headers": {
820
+ "type": "object",
821
+ "additionalProperties": {
822
+ "type": "string"
823
+ },
824
+ "description": "Custom headers"
825
+ },
826
+ "payload": {
827
+ "description": "Webhook payload (uses record data if not specified)"
828
+ },
829
+ "retryOnFailure": {
830
+ "type": "boolean",
831
+ "default": true,
832
+ "description": "Retry if webhook fails"
833
+ },
834
+ "maxRetries": {
835
+ "type": "number",
836
+ "default": 3,
837
+ "description": "Maximum retry attempts"
838
+ }
839
+ },
840
+ "required": [
841
+ "name",
842
+ "type",
843
+ "url"
844
+ ],
845
+ "additionalProperties": false
846
+ },
847
+ {
848
+ "type": "object",
849
+ "properties": {
850
+ "name": {
851
+ "type": "string",
852
+ "description": "Action name"
853
+ },
854
+ "type": {
855
+ "type": "string",
856
+ "const": "task_creation"
857
+ },
858
+ "taskObject": {
859
+ "type": "string",
860
+ "description": "Task object name (e.g., \"task\", \"project_task\")"
861
+ },
862
+ "subject": {
863
+ "type": "string",
864
+ "description": "Task subject/title"
865
+ },
866
+ "description": {
867
+ "type": "string",
868
+ "description": "Task description"
869
+ },
870
+ "assignedTo": {
871
+ "type": "string",
872
+ "description": "User ID or field reference for assignee"
873
+ },
874
+ "dueDate": {
875
+ "type": "string",
876
+ "description": "Due date (ISO string or formula)"
877
+ },
878
+ "priority": {
879
+ "type": "string",
880
+ "description": "Task priority"
881
+ },
882
+ "relatedTo": {
883
+ "type": "string",
884
+ "description": "Related record ID or field reference"
885
+ },
886
+ "additionalFields": {
887
+ "type": "object",
888
+ "additionalProperties": {},
889
+ "description": "Additional custom fields"
890
+ }
891
+ },
892
+ "required": [
893
+ "name",
894
+ "type",
895
+ "taskObject",
896
+ "subject"
897
+ ],
898
+ "additionalProperties": false
899
+ },
900
+ {
901
+ "type": "object",
902
+ "properties": {
903
+ "name": {
904
+ "type": "string",
905
+ "description": "Action name"
906
+ },
907
+ "type": {
908
+ "type": "string",
909
+ "const": "push_notification"
910
+ },
911
+ "title": {
912
+ "type": "string",
913
+ "description": "Notification title"
914
+ },
915
+ "body": {
916
+ "type": "string",
917
+ "description": "Notification body text"
918
+ },
919
+ "recipients": {
920
+ "type": "array",
921
+ "items": {
922
+ "type": "string"
923
+ },
924
+ "description": "User IDs or device tokens"
925
+ },
926
+ "data": {
927
+ "type": "object",
928
+ "additionalProperties": {},
929
+ "description": "Additional data payload"
930
+ },
931
+ "badge": {
932
+ "type": "number",
933
+ "description": "Badge count (iOS)"
934
+ },
935
+ "sound": {
936
+ "type": "string",
937
+ "description": "Notification sound"
938
+ },
939
+ "clickAction": {
940
+ "type": "string",
941
+ "description": "Action/URL when notification is clicked"
942
+ }
943
+ },
944
+ "required": [
945
+ "name",
946
+ "type",
947
+ "title",
948
+ "body",
949
+ "recipients"
950
+ ],
951
+ "additionalProperties": false
952
+ },
953
+ {
954
+ "type": "object",
955
+ "properties": {
956
+ "name": {
957
+ "type": "string",
958
+ "description": "Action name"
959
+ },
960
+ "type": {
961
+ "type": "string",
962
+ "const": "custom_script"
963
+ },
964
+ "language": {
965
+ "type": "string",
966
+ "enum": [
967
+ "javascript",
968
+ "typescript",
969
+ "python"
970
+ ],
971
+ "default": "javascript",
972
+ "description": "Script language"
973
+ },
974
+ "code": {
975
+ "type": "string",
976
+ "description": "Script code to execute"
977
+ },
978
+ "timeout": {
979
+ "type": "number",
980
+ "default": 30000,
981
+ "description": "Execution timeout in milliseconds"
982
+ },
983
+ "context": {
984
+ "type": "object",
985
+ "additionalProperties": {},
986
+ "description": "Additional context variables"
987
+ }
988
+ },
989
+ "required": [
990
+ "name",
991
+ "type",
992
+ "code"
993
+ ],
994
+ "additionalProperties": false
995
+ }
996
+ ]
997
+ },
998
+ "description": "Actions to execute at the scheduled time"
999
+ }
1000
+ },
1001
+ "required": [
1002
+ "timeLength",
1003
+ "timeUnit",
1004
+ "offsetDirection",
1005
+ "offsetFrom",
1006
+ "actions"
1007
+ ],
1008
+ "additionalProperties": false
1009
+ },
1010
+ "description": "Scheduled actions relative to trigger or date field"
1011
+ },
1012
+ "active": {
1013
+ "type": "boolean",
1014
+ "default": true,
1015
+ "description": "Whether this workflow is active"
1016
+ },
1017
+ "reevaluateOnChange": {
1018
+ "type": "boolean",
1019
+ "default": false,
1020
+ "description": "Re-evaluate rule if field updates change the record validity"
1021
+ }
1022
+ },
1023
+ "required": [
1024
+ "name",
1025
+ "objectName",
1026
+ "triggerType"
1027
+ ],
1028
+ "additionalProperties": false
1029
+ }
1030
+ },
1031
+ "$schema": "http://json-schema.org/draft-07/schema#"
1032
+ }