@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,2059 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Trigger events for workflow automation
4
+ */
5
+ export declare const WorkflowTriggerType: z.ZodEnum<["on_create", "on_update", "on_create_or_update", "on_delete", "schedule"]>;
6
+ /**
7
+ * Schema for Workflow Field Update Action
8
+ */
9
+ export declare const FieldUpdateActionSchema: z.ZodObject<{
10
+ name: z.ZodString;
11
+ type: z.ZodLiteral<"field_update">;
12
+ field: z.ZodString;
13
+ value: z.ZodAny;
14
+ }, "strip", z.ZodTypeAny, {
15
+ type: "field_update";
16
+ field: string;
17
+ name: string;
18
+ value?: any;
19
+ }, {
20
+ type: "field_update";
21
+ field: string;
22
+ name: string;
23
+ value?: any;
24
+ }>;
25
+ /**
26
+ * Schema for Workflow Email Alert Action
27
+ */
28
+ export declare const EmailAlertActionSchema: z.ZodObject<{
29
+ name: z.ZodString;
30
+ type: z.ZodLiteral<"email_alert">;
31
+ template: z.ZodString;
32
+ recipients: z.ZodArray<z.ZodString, "many">;
33
+ }, "strip", z.ZodTypeAny, {
34
+ type: "email_alert";
35
+ name: string;
36
+ template: string;
37
+ recipients: string[];
38
+ }, {
39
+ type: "email_alert";
40
+ name: string;
41
+ template: string;
42
+ recipients: string[];
43
+ }>;
44
+ /**
45
+ * Schema for Workflow SMS Notification Action
46
+ * Supports providers like Twilio, Vonage
47
+ */
48
+ export declare const SmsNotificationActionSchema: z.ZodObject<{
49
+ name: z.ZodString;
50
+ type: z.ZodLiteral<"sms_notification">;
51
+ provider: z.ZodEnum<["twilio", "vonage"]>;
52
+ recipients: z.ZodArray<z.ZodString, "many">;
53
+ message: z.ZodString;
54
+ fromNumber: z.ZodOptional<z.ZodString>;
55
+ }, "strip", z.ZodTypeAny, {
56
+ message: string;
57
+ type: "sms_notification";
58
+ name: string;
59
+ provider: "twilio" | "vonage";
60
+ recipients: string[];
61
+ fromNumber?: string | undefined;
62
+ }, {
63
+ message: string;
64
+ type: "sms_notification";
65
+ name: string;
66
+ provider: "twilio" | "vonage";
67
+ recipients: string[];
68
+ fromNumber?: string | undefined;
69
+ }>;
70
+ /**
71
+ * Schema for Workflow Slack Message Action
72
+ */
73
+ export declare const SlackMessageActionSchema: z.ZodObject<{
74
+ name: z.ZodString;
75
+ type: z.ZodLiteral<"slack_message">;
76
+ channel: z.ZodString;
77
+ message: z.ZodString;
78
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
79
+ threadId: z.ZodOptional<z.ZodString>;
80
+ }, "strip", z.ZodTypeAny, {
81
+ message: string;
82
+ type: "slack_message";
83
+ name: string;
84
+ channel: string;
85
+ mentions?: string[] | undefined;
86
+ threadId?: string | undefined;
87
+ }, {
88
+ message: string;
89
+ type: "slack_message";
90
+ name: string;
91
+ channel: string;
92
+ mentions?: string[] | undefined;
93
+ threadId?: string | undefined;
94
+ }>;
95
+ /**
96
+ * Schema for Workflow Teams Message Action
97
+ */
98
+ export declare const TeamsMessageActionSchema: z.ZodObject<{
99
+ name: z.ZodString;
100
+ type: z.ZodLiteral<"teams_message">;
101
+ channel: z.ZodString;
102
+ message: z.ZodString;
103
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
104
+ teamId: z.ZodOptional<z.ZodString>;
105
+ }, "strip", z.ZodTypeAny, {
106
+ message: string;
107
+ type: "teams_message";
108
+ name: string;
109
+ channel: string;
110
+ mentions?: string[] | undefined;
111
+ teamId?: string | undefined;
112
+ }, {
113
+ message: string;
114
+ type: "teams_message";
115
+ name: string;
116
+ channel: string;
117
+ mentions?: string[] | undefined;
118
+ teamId?: string | undefined;
119
+ }>;
120
+ /**
121
+ * Schema for Workflow HTTP Call Action
122
+ * REST API integration support
123
+ */
124
+ export declare const HttpCallActionSchema: z.ZodObject<{
125
+ name: z.ZodString;
126
+ type: z.ZodLiteral<"http_call">;
127
+ url: z.ZodString;
128
+ method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
129
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
130
+ body: z.ZodOptional<z.ZodAny>;
131
+ authentication: z.ZodOptional<z.ZodObject<{
132
+ type: z.ZodEnum<["none", "basic", "bearer", "api_key", "oauth2"]>;
133
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
134
+ }, "strip", z.ZodTypeAny, {
135
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
136
+ credentials?: Record<string, string> | undefined;
137
+ }, {
138
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
139
+ credentials?: Record<string, string> | undefined;
140
+ }>>;
141
+ timeout: z.ZodOptional<z.ZodNumber>;
142
+ }, "strip", z.ZodTypeAny, {
143
+ type: "http_call";
144
+ url: string;
145
+ name: string;
146
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
147
+ headers?: Record<string, string> | undefined;
148
+ timeout?: number | undefined;
149
+ body?: any;
150
+ authentication?: {
151
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
152
+ credentials?: Record<string, string> | undefined;
153
+ } | undefined;
154
+ }, {
155
+ type: "http_call";
156
+ url: string;
157
+ name: string;
158
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
159
+ headers?: Record<string, string> | undefined;
160
+ timeout?: number | undefined;
161
+ body?: any;
162
+ authentication?: {
163
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
164
+ credentials?: Record<string, string> | undefined;
165
+ } | undefined;
166
+ }>;
167
+ /**
168
+ * Schema for Workflow Webhook Trigger Action
169
+ */
170
+ export declare const WebhookTriggerActionSchema: z.ZodObject<{
171
+ name: z.ZodString;
172
+ type: z.ZodLiteral<"webhook_trigger">;
173
+ url: z.ZodString;
174
+ method: z.ZodDefault<z.ZodEnum<["POST", "PUT"]>>;
175
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
176
+ payload: z.ZodOptional<z.ZodAny>;
177
+ retryOnFailure: z.ZodDefault<z.ZodBoolean>;
178
+ maxRetries: z.ZodDefault<z.ZodNumber>;
179
+ }, "strip", z.ZodTypeAny, {
180
+ type: "webhook_trigger";
181
+ url: string;
182
+ name: string;
183
+ method: "POST" | "PUT";
184
+ maxRetries: number;
185
+ retryOnFailure: boolean;
186
+ headers?: Record<string, string> | undefined;
187
+ payload?: any;
188
+ }, {
189
+ type: "webhook_trigger";
190
+ url: string;
191
+ name: string;
192
+ method?: "POST" | "PUT" | undefined;
193
+ headers?: Record<string, string> | undefined;
194
+ payload?: any;
195
+ maxRetries?: number | undefined;
196
+ retryOnFailure?: boolean | undefined;
197
+ }>;
198
+ /**
199
+ * Schema for Workflow Task Creation Action
200
+ */
201
+ export declare const TaskCreationActionSchema: z.ZodObject<{
202
+ name: z.ZodString;
203
+ type: z.ZodLiteral<"task_creation">;
204
+ taskObject: z.ZodString;
205
+ subject: z.ZodString;
206
+ description: z.ZodOptional<z.ZodString>;
207
+ assignedTo: z.ZodOptional<z.ZodString>;
208
+ dueDate: z.ZodOptional<z.ZodString>;
209
+ priority: z.ZodOptional<z.ZodString>;
210
+ relatedTo: z.ZodOptional<z.ZodString>;
211
+ additionalFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
212
+ }, "strip", z.ZodTypeAny, {
213
+ type: "task_creation";
214
+ name: string;
215
+ taskObject: string;
216
+ subject: string;
217
+ description?: string | undefined;
218
+ priority?: string | undefined;
219
+ assignedTo?: string | undefined;
220
+ dueDate?: string | undefined;
221
+ relatedTo?: string | undefined;
222
+ additionalFields?: Record<string, any> | undefined;
223
+ }, {
224
+ type: "task_creation";
225
+ name: string;
226
+ taskObject: string;
227
+ subject: string;
228
+ description?: string | undefined;
229
+ priority?: string | undefined;
230
+ assignedTo?: string | undefined;
231
+ dueDate?: string | undefined;
232
+ relatedTo?: string | undefined;
233
+ additionalFields?: Record<string, any> | undefined;
234
+ }>;
235
+ /**
236
+ * Schema for Workflow Push Notification Action
237
+ */
238
+ export declare const PushNotificationActionSchema: z.ZodObject<{
239
+ name: z.ZodString;
240
+ type: z.ZodLiteral<"push_notification">;
241
+ title: z.ZodString;
242
+ body: z.ZodString;
243
+ recipients: z.ZodArray<z.ZodString, "many">;
244
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
245
+ badge: z.ZodOptional<z.ZodNumber>;
246
+ sound: z.ZodOptional<z.ZodString>;
247
+ clickAction: z.ZodOptional<z.ZodString>;
248
+ }, "strip", z.ZodTypeAny, {
249
+ type: "push_notification";
250
+ name: string;
251
+ body: string;
252
+ title: string;
253
+ recipients: string[];
254
+ data?: Record<string, any> | undefined;
255
+ badge?: number | undefined;
256
+ sound?: string | undefined;
257
+ clickAction?: string | undefined;
258
+ }, {
259
+ type: "push_notification";
260
+ name: string;
261
+ body: string;
262
+ title: string;
263
+ recipients: string[];
264
+ data?: Record<string, any> | undefined;
265
+ badge?: number | undefined;
266
+ sound?: string | undefined;
267
+ clickAction?: string | undefined;
268
+ }>;
269
+ /**
270
+ * Schema for Workflow Custom Script Action
271
+ */
272
+ export declare const CustomScriptActionSchema: z.ZodObject<{
273
+ name: z.ZodString;
274
+ type: z.ZodLiteral<"custom_script">;
275
+ language: z.ZodDefault<z.ZodEnum<["javascript", "typescript", "python"]>>;
276
+ code: z.ZodString;
277
+ timeout: z.ZodDefault<z.ZodNumber>;
278
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
279
+ }, "strip", z.ZodTypeAny, {
280
+ code: string;
281
+ type: "custom_script";
282
+ name: string;
283
+ language: "javascript" | "typescript" | "python";
284
+ timeout: number;
285
+ context?: Record<string, any> | undefined;
286
+ }, {
287
+ code: string;
288
+ type: "custom_script";
289
+ name: string;
290
+ language?: "javascript" | "typescript" | "python" | undefined;
291
+ timeout?: number | undefined;
292
+ context?: Record<string, any> | undefined;
293
+ }>;
294
+ /**
295
+ * Generic Workflow Action Wrapper
296
+ * Supports 10 action types for comprehensive automation
297
+ */
298
+ export declare const WorkflowActionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
299
+ name: z.ZodString;
300
+ type: z.ZodLiteral<"field_update">;
301
+ field: z.ZodString;
302
+ value: z.ZodAny;
303
+ }, "strip", z.ZodTypeAny, {
304
+ type: "field_update";
305
+ field: string;
306
+ name: string;
307
+ value?: any;
308
+ }, {
309
+ type: "field_update";
310
+ field: string;
311
+ name: string;
312
+ value?: any;
313
+ }>, z.ZodObject<{
314
+ name: z.ZodString;
315
+ type: z.ZodLiteral<"email_alert">;
316
+ template: z.ZodString;
317
+ recipients: z.ZodArray<z.ZodString, "many">;
318
+ }, "strip", z.ZodTypeAny, {
319
+ type: "email_alert";
320
+ name: string;
321
+ template: string;
322
+ recipients: string[];
323
+ }, {
324
+ type: "email_alert";
325
+ name: string;
326
+ template: string;
327
+ recipients: string[];
328
+ }>, z.ZodObject<{
329
+ name: z.ZodString;
330
+ type: z.ZodLiteral<"sms_notification">;
331
+ provider: z.ZodEnum<["twilio", "vonage"]>;
332
+ recipients: z.ZodArray<z.ZodString, "many">;
333
+ message: z.ZodString;
334
+ fromNumber: z.ZodOptional<z.ZodString>;
335
+ }, "strip", z.ZodTypeAny, {
336
+ message: string;
337
+ type: "sms_notification";
338
+ name: string;
339
+ provider: "twilio" | "vonage";
340
+ recipients: string[];
341
+ fromNumber?: string | undefined;
342
+ }, {
343
+ message: string;
344
+ type: "sms_notification";
345
+ name: string;
346
+ provider: "twilio" | "vonage";
347
+ recipients: string[];
348
+ fromNumber?: string | undefined;
349
+ }>, z.ZodObject<{
350
+ name: z.ZodString;
351
+ type: z.ZodLiteral<"slack_message">;
352
+ channel: z.ZodString;
353
+ message: z.ZodString;
354
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
355
+ threadId: z.ZodOptional<z.ZodString>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ message: string;
358
+ type: "slack_message";
359
+ name: string;
360
+ channel: string;
361
+ mentions?: string[] | undefined;
362
+ threadId?: string | undefined;
363
+ }, {
364
+ message: string;
365
+ type: "slack_message";
366
+ name: string;
367
+ channel: string;
368
+ mentions?: string[] | undefined;
369
+ threadId?: string | undefined;
370
+ }>, z.ZodObject<{
371
+ name: z.ZodString;
372
+ type: z.ZodLiteral<"teams_message">;
373
+ channel: z.ZodString;
374
+ message: z.ZodString;
375
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
376
+ teamId: z.ZodOptional<z.ZodString>;
377
+ }, "strip", z.ZodTypeAny, {
378
+ message: string;
379
+ type: "teams_message";
380
+ name: string;
381
+ channel: string;
382
+ mentions?: string[] | undefined;
383
+ teamId?: string | undefined;
384
+ }, {
385
+ message: string;
386
+ type: "teams_message";
387
+ name: string;
388
+ channel: string;
389
+ mentions?: string[] | undefined;
390
+ teamId?: string | undefined;
391
+ }>, z.ZodObject<{
392
+ name: z.ZodString;
393
+ type: z.ZodLiteral<"http_call">;
394
+ url: z.ZodString;
395
+ method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
396
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
397
+ body: z.ZodOptional<z.ZodAny>;
398
+ authentication: z.ZodOptional<z.ZodObject<{
399
+ type: z.ZodEnum<["none", "basic", "bearer", "api_key", "oauth2"]>;
400
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
401
+ }, "strip", z.ZodTypeAny, {
402
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
403
+ credentials?: Record<string, string> | undefined;
404
+ }, {
405
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
406
+ credentials?: Record<string, string> | undefined;
407
+ }>>;
408
+ timeout: z.ZodOptional<z.ZodNumber>;
409
+ }, "strip", z.ZodTypeAny, {
410
+ type: "http_call";
411
+ url: string;
412
+ name: string;
413
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
414
+ headers?: Record<string, string> | undefined;
415
+ timeout?: number | undefined;
416
+ body?: any;
417
+ authentication?: {
418
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
419
+ credentials?: Record<string, string> | undefined;
420
+ } | undefined;
421
+ }, {
422
+ type: "http_call";
423
+ url: string;
424
+ name: string;
425
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
426
+ headers?: Record<string, string> | undefined;
427
+ timeout?: number | undefined;
428
+ body?: any;
429
+ authentication?: {
430
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
431
+ credentials?: Record<string, string> | undefined;
432
+ } | undefined;
433
+ }>, z.ZodObject<{
434
+ name: z.ZodString;
435
+ type: z.ZodLiteral<"webhook_trigger">;
436
+ url: z.ZodString;
437
+ method: z.ZodDefault<z.ZodEnum<["POST", "PUT"]>>;
438
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
439
+ payload: z.ZodOptional<z.ZodAny>;
440
+ retryOnFailure: z.ZodDefault<z.ZodBoolean>;
441
+ maxRetries: z.ZodDefault<z.ZodNumber>;
442
+ }, "strip", z.ZodTypeAny, {
443
+ type: "webhook_trigger";
444
+ url: string;
445
+ name: string;
446
+ method: "POST" | "PUT";
447
+ maxRetries: number;
448
+ retryOnFailure: boolean;
449
+ headers?: Record<string, string> | undefined;
450
+ payload?: any;
451
+ }, {
452
+ type: "webhook_trigger";
453
+ url: string;
454
+ name: string;
455
+ method?: "POST" | "PUT" | undefined;
456
+ headers?: Record<string, string> | undefined;
457
+ payload?: any;
458
+ maxRetries?: number | undefined;
459
+ retryOnFailure?: boolean | undefined;
460
+ }>, z.ZodObject<{
461
+ name: z.ZodString;
462
+ type: z.ZodLiteral<"task_creation">;
463
+ taskObject: z.ZodString;
464
+ subject: z.ZodString;
465
+ description: z.ZodOptional<z.ZodString>;
466
+ assignedTo: z.ZodOptional<z.ZodString>;
467
+ dueDate: z.ZodOptional<z.ZodString>;
468
+ priority: z.ZodOptional<z.ZodString>;
469
+ relatedTo: z.ZodOptional<z.ZodString>;
470
+ additionalFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
471
+ }, "strip", z.ZodTypeAny, {
472
+ type: "task_creation";
473
+ name: string;
474
+ taskObject: string;
475
+ subject: string;
476
+ description?: string | undefined;
477
+ priority?: string | undefined;
478
+ assignedTo?: string | undefined;
479
+ dueDate?: string | undefined;
480
+ relatedTo?: string | undefined;
481
+ additionalFields?: Record<string, any> | undefined;
482
+ }, {
483
+ type: "task_creation";
484
+ name: string;
485
+ taskObject: string;
486
+ subject: string;
487
+ description?: string | undefined;
488
+ priority?: string | undefined;
489
+ assignedTo?: string | undefined;
490
+ dueDate?: string | undefined;
491
+ relatedTo?: string | undefined;
492
+ additionalFields?: Record<string, any> | undefined;
493
+ }>, z.ZodObject<{
494
+ name: z.ZodString;
495
+ type: z.ZodLiteral<"push_notification">;
496
+ title: z.ZodString;
497
+ body: z.ZodString;
498
+ recipients: z.ZodArray<z.ZodString, "many">;
499
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
500
+ badge: z.ZodOptional<z.ZodNumber>;
501
+ sound: z.ZodOptional<z.ZodString>;
502
+ clickAction: z.ZodOptional<z.ZodString>;
503
+ }, "strip", z.ZodTypeAny, {
504
+ type: "push_notification";
505
+ name: string;
506
+ body: string;
507
+ title: string;
508
+ recipients: string[];
509
+ data?: Record<string, any> | undefined;
510
+ badge?: number | undefined;
511
+ sound?: string | undefined;
512
+ clickAction?: string | undefined;
513
+ }, {
514
+ type: "push_notification";
515
+ name: string;
516
+ body: string;
517
+ title: string;
518
+ recipients: string[];
519
+ data?: Record<string, any> | undefined;
520
+ badge?: number | undefined;
521
+ sound?: string | undefined;
522
+ clickAction?: string | undefined;
523
+ }>, z.ZodObject<{
524
+ name: z.ZodString;
525
+ type: z.ZodLiteral<"custom_script">;
526
+ language: z.ZodDefault<z.ZodEnum<["javascript", "typescript", "python"]>>;
527
+ code: z.ZodString;
528
+ timeout: z.ZodDefault<z.ZodNumber>;
529
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
530
+ }, "strip", z.ZodTypeAny, {
531
+ code: string;
532
+ type: "custom_script";
533
+ name: string;
534
+ language: "javascript" | "typescript" | "python";
535
+ timeout: number;
536
+ context?: Record<string, any> | undefined;
537
+ }, {
538
+ code: string;
539
+ type: "custom_script";
540
+ name: string;
541
+ language?: "javascript" | "typescript" | "python" | undefined;
542
+ timeout?: number | undefined;
543
+ context?: Record<string, any> | undefined;
544
+ }>]>;
545
+ /**
546
+ * Time Trigger Definition
547
+ * Schedules actions to run relative to a specific time or date field.
548
+ */
549
+ export declare const TimeTriggerSchema: z.ZodObject<{
550
+ id: z.ZodOptional<z.ZodString>;
551
+ /** Timing Logic */
552
+ timeLength: z.ZodNumber;
553
+ timeUnit: z.ZodEnum<["minutes", "hours", "days"]>;
554
+ /** Reference Point */
555
+ offsetDirection: z.ZodEnum<["before", "after"]>;
556
+ offsetFrom: z.ZodEnum<["trigger_date", "date_field"]>;
557
+ dateField: z.ZodOptional<z.ZodString>;
558
+ /** Actions */
559
+ actions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
560
+ name: z.ZodString;
561
+ type: z.ZodLiteral<"field_update">;
562
+ field: z.ZodString;
563
+ value: z.ZodAny;
564
+ }, "strip", z.ZodTypeAny, {
565
+ type: "field_update";
566
+ field: string;
567
+ name: string;
568
+ value?: any;
569
+ }, {
570
+ type: "field_update";
571
+ field: string;
572
+ name: string;
573
+ value?: any;
574
+ }>, z.ZodObject<{
575
+ name: z.ZodString;
576
+ type: z.ZodLiteral<"email_alert">;
577
+ template: z.ZodString;
578
+ recipients: z.ZodArray<z.ZodString, "many">;
579
+ }, "strip", z.ZodTypeAny, {
580
+ type: "email_alert";
581
+ name: string;
582
+ template: string;
583
+ recipients: string[];
584
+ }, {
585
+ type: "email_alert";
586
+ name: string;
587
+ template: string;
588
+ recipients: string[];
589
+ }>, z.ZodObject<{
590
+ name: z.ZodString;
591
+ type: z.ZodLiteral<"sms_notification">;
592
+ provider: z.ZodEnum<["twilio", "vonage"]>;
593
+ recipients: z.ZodArray<z.ZodString, "many">;
594
+ message: z.ZodString;
595
+ fromNumber: z.ZodOptional<z.ZodString>;
596
+ }, "strip", z.ZodTypeAny, {
597
+ message: string;
598
+ type: "sms_notification";
599
+ name: string;
600
+ provider: "twilio" | "vonage";
601
+ recipients: string[];
602
+ fromNumber?: string | undefined;
603
+ }, {
604
+ message: string;
605
+ type: "sms_notification";
606
+ name: string;
607
+ provider: "twilio" | "vonage";
608
+ recipients: string[];
609
+ fromNumber?: string | undefined;
610
+ }>, z.ZodObject<{
611
+ name: z.ZodString;
612
+ type: z.ZodLiteral<"slack_message">;
613
+ channel: z.ZodString;
614
+ message: z.ZodString;
615
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
616
+ threadId: z.ZodOptional<z.ZodString>;
617
+ }, "strip", z.ZodTypeAny, {
618
+ message: string;
619
+ type: "slack_message";
620
+ name: string;
621
+ channel: string;
622
+ mentions?: string[] | undefined;
623
+ threadId?: string | undefined;
624
+ }, {
625
+ message: string;
626
+ type: "slack_message";
627
+ name: string;
628
+ channel: string;
629
+ mentions?: string[] | undefined;
630
+ threadId?: string | undefined;
631
+ }>, z.ZodObject<{
632
+ name: z.ZodString;
633
+ type: z.ZodLiteral<"teams_message">;
634
+ channel: z.ZodString;
635
+ message: z.ZodString;
636
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
637
+ teamId: z.ZodOptional<z.ZodString>;
638
+ }, "strip", z.ZodTypeAny, {
639
+ message: string;
640
+ type: "teams_message";
641
+ name: string;
642
+ channel: string;
643
+ mentions?: string[] | undefined;
644
+ teamId?: string | undefined;
645
+ }, {
646
+ message: string;
647
+ type: "teams_message";
648
+ name: string;
649
+ channel: string;
650
+ mentions?: string[] | undefined;
651
+ teamId?: string | undefined;
652
+ }>, z.ZodObject<{
653
+ name: z.ZodString;
654
+ type: z.ZodLiteral<"http_call">;
655
+ url: z.ZodString;
656
+ method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
657
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
658
+ body: z.ZodOptional<z.ZodAny>;
659
+ authentication: z.ZodOptional<z.ZodObject<{
660
+ type: z.ZodEnum<["none", "basic", "bearer", "api_key", "oauth2"]>;
661
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
662
+ }, "strip", z.ZodTypeAny, {
663
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
664
+ credentials?: Record<string, string> | undefined;
665
+ }, {
666
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
667
+ credentials?: Record<string, string> | undefined;
668
+ }>>;
669
+ timeout: z.ZodOptional<z.ZodNumber>;
670
+ }, "strip", z.ZodTypeAny, {
671
+ type: "http_call";
672
+ url: string;
673
+ name: string;
674
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
675
+ headers?: Record<string, string> | undefined;
676
+ timeout?: number | undefined;
677
+ body?: any;
678
+ authentication?: {
679
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
680
+ credentials?: Record<string, string> | undefined;
681
+ } | undefined;
682
+ }, {
683
+ type: "http_call";
684
+ url: string;
685
+ name: string;
686
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
687
+ headers?: Record<string, string> | undefined;
688
+ timeout?: number | undefined;
689
+ body?: any;
690
+ authentication?: {
691
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
692
+ credentials?: Record<string, string> | undefined;
693
+ } | undefined;
694
+ }>, z.ZodObject<{
695
+ name: z.ZodString;
696
+ type: z.ZodLiteral<"webhook_trigger">;
697
+ url: z.ZodString;
698
+ method: z.ZodDefault<z.ZodEnum<["POST", "PUT"]>>;
699
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
700
+ payload: z.ZodOptional<z.ZodAny>;
701
+ retryOnFailure: z.ZodDefault<z.ZodBoolean>;
702
+ maxRetries: z.ZodDefault<z.ZodNumber>;
703
+ }, "strip", z.ZodTypeAny, {
704
+ type: "webhook_trigger";
705
+ url: string;
706
+ name: string;
707
+ method: "POST" | "PUT";
708
+ maxRetries: number;
709
+ retryOnFailure: boolean;
710
+ headers?: Record<string, string> | undefined;
711
+ payload?: any;
712
+ }, {
713
+ type: "webhook_trigger";
714
+ url: string;
715
+ name: string;
716
+ method?: "POST" | "PUT" | undefined;
717
+ headers?: Record<string, string> | undefined;
718
+ payload?: any;
719
+ maxRetries?: number | undefined;
720
+ retryOnFailure?: boolean | undefined;
721
+ }>, z.ZodObject<{
722
+ name: z.ZodString;
723
+ type: z.ZodLiteral<"task_creation">;
724
+ taskObject: z.ZodString;
725
+ subject: z.ZodString;
726
+ description: z.ZodOptional<z.ZodString>;
727
+ assignedTo: z.ZodOptional<z.ZodString>;
728
+ dueDate: z.ZodOptional<z.ZodString>;
729
+ priority: z.ZodOptional<z.ZodString>;
730
+ relatedTo: z.ZodOptional<z.ZodString>;
731
+ additionalFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
732
+ }, "strip", z.ZodTypeAny, {
733
+ type: "task_creation";
734
+ name: string;
735
+ taskObject: string;
736
+ subject: string;
737
+ description?: string | undefined;
738
+ priority?: string | undefined;
739
+ assignedTo?: string | undefined;
740
+ dueDate?: string | undefined;
741
+ relatedTo?: string | undefined;
742
+ additionalFields?: Record<string, any> | undefined;
743
+ }, {
744
+ type: "task_creation";
745
+ name: string;
746
+ taskObject: string;
747
+ subject: string;
748
+ description?: string | undefined;
749
+ priority?: string | undefined;
750
+ assignedTo?: string | undefined;
751
+ dueDate?: string | undefined;
752
+ relatedTo?: string | undefined;
753
+ additionalFields?: Record<string, any> | undefined;
754
+ }>, z.ZodObject<{
755
+ name: z.ZodString;
756
+ type: z.ZodLiteral<"push_notification">;
757
+ title: z.ZodString;
758
+ body: z.ZodString;
759
+ recipients: z.ZodArray<z.ZodString, "many">;
760
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
761
+ badge: z.ZodOptional<z.ZodNumber>;
762
+ sound: z.ZodOptional<z.ZodString>;
763
+ clickAction: z.ZodOptional<z.ZodString>;
764
+ }, "strip", z.ZodTypeAny, {
765
+ type: "push_notification";
766
+ name: string;
767
+ body: string;
768
+ title: string;
769
+ recipients: string[];
770
+ data?: Record<string, any> | undefined;
771
+ badge?: number | undefined;
772
+ sound?: string | undefined;
773
+ clickAction?: string | undefined;
774
+ }, {
775
+ type: "push_notification";
776
+ name: string;
777
+ body: string;
778
+ title: string;
779
+ recipients: string[];
780
+ data?: Record<string, any> | undefined;
781
+ badge?: number | undefined;
782
+ sound?: string | undefined;
783
+ clickAction?: string | undefined;
784
+ }>, z.ZodObject<{
785
+ name: z.ZodString;
786
+ type: z.ZodLiteral<"custom_script">;
787
+ language: z.ZodDefault<z.ZodEnum<["javascript", "typescript", "python"]>>;
788
+ code: z.ZodString;
789
+ timeout: z.ZodDefault<z.ZodNumber>;
790
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
791
+ }, "strip", z.ZodTypeAny, {
792
+ code: string;
793
+ type: "custom_script";
794
+ name: string;
795
+ language: "javascript" | "typescript" | "python";
796
+ timeout: number;
797
+ context?: Record<string, any> | undefined;
798
+ }, {
799
+ code: string;
800
+ type: "custom_script";
801
+ name: string;
802
+ language?: "javascript" | "typescript" | "python" | undefined;
803
+ timeout?: number | undefined;
804
+ context?: Record<string, any> | undefined;
805
+ }>]>, "many">;
806
+ }, "strip", z.ZodTypeAny, {
807
+ actions: ({
808
+ type: "field_update";
809
+ field: string;
810
+ name: string;
811
+ value?: any;
812
+ } | {
813
+ type: "email_alert";
814
+ name: string;
815
+ template: string;
816
+ recipients: string[];
817
+ } | {
818
+ message: string;
819
+ type: "sms_notification";
820
+ name: string;
821
+ provider: "twilio" | "vonage";
822
+ recipients: string[];
823
+ fromNumber?: string | undefined;
824
+ } | {
825
+ message: string;
826
+ type: "slack_message";
827
+ name: string;
828
+ channel: string;
829
+ mentions?: string[] | undefined;
830
+ threadId?: string | undefined;
831
+ } | {
832
+ message: string;
833
+ type: "teams_message";
834
+ name: string;
835
+ channel: string;
836
+ mentions?: string[] | undefined;
837
+ teamId?: string | undefined;
838
+ } | {
839
+ type: "http_call";
840
+ url: string;
841
+ name: string;
842
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
843
+ headers?: Record<string, string> | undefined;
844
+ timeout?: number | undefined;
845
+ body?: any;
846
+ authentication?: {
847
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
848
+ credentials?: Record<string, string> | undefined;
849
+ } | undefined;
850
+ } | {
851
+ type: "webhook_trigger";
852
+ url: string;
853
+ name: string;
854
+ method: "POST" | "PUT";
855
+ maxRetries: number;
856
+ retryOnFailure: boolean;
857
+ headers?: Record<string, string> | undefined;
858
+ payload?: any;
859
+ } | {
860
+ type: "task_creation";
861
+ name: string;
862
+ taskObject: string;
863
+ subject: string;
864
+ description?: string | undefined;
865
+ priority?: string | undefined;
866
+ assignedTo?: string | undefined;
867
+ dueDate?: string | undefined;
868
+ relatedTo?: string | undefined;
869
+ additionalFields?: Record<string, any> | undefined;
870
+ } | {
871
+ type: "push_notification";
872
+ name: string;
873
+ body: string;
874
+ title: string;
875
+ recipients: string[];
876
+ data?: Record<string, any> | undefined;
877
+ badge?: number | undefined;
878
+ sound?: string | undefined;
879
+ clickAction?: string | undefined;
880
+ } | {
881
+ code: string;
882
+ type: "custom_script";
883
+ name: string;
884
+ language: "javascript" | "typescript" | "python";
885
+ timeout: number;
886
+ context?: Record<string, any> | undefined;
887
+ })[];
888
+ timeLength: number;
889
+ timeUnit: "minutes" | "hours" | "days";
890
+ offsetDirection: "before" | "after";
891
+ offsetFrom: "trigger_date" | "date_field";
892
+ id?: string | undefined;
893
+ dateField?: string | undefined;
894
+ }, {
895
+ actions: ({
896
+ type: "field_update";
897
+ field: string;
898
+ name: string;
899
+ value?: any;
900
+ } | {
901
+ type: "email_alert";
902
+ name: string;
903
+ template: string;
904
+ recipients: string[];
905
+ } | {
906
+ message: string;
907
+ type: "sms_notification";
908
+ name: string;
909
+ provider: "twilio" | "vonage";
910
+ recipients: string[];
911
+ fromNumber?: string | undefined;
912
+ } | {
913
+ message: string;
914
+ type: "slack_message";
915
+ name: string;
916
+ channel: string;
917
+ mentions?: string[] | undefined;
918
+ threadId?: string | undefined;
919
+ } | {
920
+ message: string;
921
+ type: "teams_message";
922
+ name: string;
923
+ channel: string;
924
+ mentions?: string[] | undefined;
925
+ teamId?: string | undefined;
926
+ } | {
927
+ type: "http_call";
928
+ url: string;
929
+ name: string;
930
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
931
+ headers?: Record<string, string> | undefined;
932
+ timeout?: number | undefined;
933
+ body?: any;
934
+ authentication?: {
935
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
936
+ credentials?: Record<string, string> | undefined;
937
+ } | undefined;
938
+ } | {
939
+ type: "webhook_trigger";
940
+ url: string;
941
+ name: string;
942
+ method?: "POST" | "PUT" | undefined;
943
+ headers?: Record<string, string> | undefined;
944
+ payload?: any;
945
+ maxRetries?: number | undefined;
946
+ retryOnFailure?: boolean | undefined;
947
+ } | {
948
+ type: "task_creation";
949
+ name: string;
950
+ taskObject: string;
951
+ subject: string;
952
+ description?: string | undefined;
953
+ priority?: string | undefined;
954
+ assignedTo?: string | undefined;
955
+ dueDate?: string | undefined;
956
+ relatedTo?: string | undefined;
957
+ additionalFields?: Record<string, any> | undefined;
958
+ } | {
959
+ type: "push_notification";
960
+ name: string;
961
+ body: string;
962
+ title: string;
963
+ recipients: string[];
964
+ data?: Record<string, any> | undefined;
965
+ badge?: number | undefined;
966
+ sound?: string | undefined;
967
+ clickAction?: string | undefined;
968
+ } | {
969
+ code: string;
970
+ type: "custom_script";
971
+ name: string;
972
+ language?: "javascript" | "typescript" | "python" | undefined;
973
+ timeout?: number | undefined;
974
+ context?: Record<string, any> | undefined;
975
+ })[];
976
+ timeLength: number;
977
+ timeUnit: "minutes" | "hours" | "days";
978
+ offsetDirection: "before" | "after";
979
+ offsetFrom: "trigger_date" | "date_field";
980
+ id?: string | undefined;
981
+ dateField?: string | undefined;
982
+ }>;
983
+ /**
984
+ * Schema for Workflow Rules (Automation)
985
+ *
986
+ * **NAMING CONVENTION:**
987
+ * Workflow names are machine identifiers and must be lowercase snake_case.
988
+ *
989
+ * @example Good workflow names
990
+ * - 'send_welcome_email'
991
+ * - 'update_lead_status'
992
+ * - 'notify_manager_on_close'
993
+ * - 'calculate_discount'
994
+ *
995
+ * @example Bad workflow names (will be rejected)
996
+ * - 'SendWelcomeEmail' (PascalCase)
997
+ * - 'updateLeadStatus' (camelCase)
998
+ * - 'Send Welcome Email' (spaces)
999
+ */
1000
+ export declare const WorkflowRuleSchema: z.ZodObject<{
1001
+ /** Machine name */
1002
+ name: z.ZodString;
1003
+ /** Target Object */
1004
+ objectName: z.ZodString;
1005
+ /** When to evaluate the rule */
1006
+ triggerType: z.ZodEnum<["on_create", "on_update", "on_create_or_update", "on_delete", "schedule"]>;
1007
+ /**
1008
+ * Condition to start the workflow.
1009
+ * If empty, runs on every trigger event.
1010
+ */
1011
+ criteria: z.ZodOptional<z.ZodString>;
1012
+ /** Actions to execute immediately */
1013
+ actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1014
+ name: z.ZodString;
1015
+ type: z.ZodLiteral<"field_update">;
1016
+ field: z.ZodString;
1017
+ value: z.ZodAny;
1018
+ }, "strip", z.ZodTypeAny, {
1019
+ type: "field_update";
1020
+ field: string;
1021
+ name: string;
1022
+ value?: any;
1023
+ }, {
1024
+ type: "field_update";
1025
+ field: string;
1026
+ name: string;
1027
+ value?: any;
1028
+ }>, z.ZodObject<{
1029
+ name: z.ZodString;
1030
+ type: z.ZodLiteral<"email_alert">;
1031
+ template: z.ZodString;
1032
+ recipients: z.ZodArray<z.ZodString, "many">;
1033
+ }, "strip", z.ZodTypeAny, {
1034
+ type: "email_alert";
1035
+ name: string;
1036
+ template: string;
1037
+ recipients: string[];
1038
+ }, {
1039
+ type: "email_alert";
1040
+ name: string;
1041
+ template: string;
1042
+ recipients: string[];
1043
+ }>, z.ZodObject<{
1044
+ name: z.ZodString;
1045
+ type: z.ZodLiteral<"sms_notification">;
1046
+ provider: z.ZodEnum<["twilio", "vonage"]>;
1047
+ recipients: z.ZodArray<z.ZodString, "many">;
1048
+ message: z.ZodString;
1049
+ fromNumber: z.ZodOptional<z.ZodString>;
1050
+ }, "strip", z.ZodTypeAny, {
1051
+ message: string;
1052
+ type: "sms_notification";
1053
+ name: string;
1054
+ provider: "twilio" | "vonage";
1055
+ recipients: string[];
1056
+ fromNumber?: string | undefined;
1057
+ }, {
1058
+ message: string;
1059
+ type: "sms_notification";
1060
+ name: string;
1061
+ provider: "twilio" | "vonage";
1062
+ recipients: string[];
1063
+ fromNumber?: string | undefined;
1064
+ }>, z.ZodObject<{
1065
+ name: z.ZodString;
1066
+ type: z.ZodLiteral<"slack_message">;
1067
+ channel: z.ZodString;
1068
+ message: z.ZodString;
1069
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1070
+ threadId: z.ZodOptional<z.ZodString>;
1071
+ }, "strip", z.ZodTypeAny, {
1072
+ message: string;
1073
+ type: "slack_message";
1074
+ name: string;
1075
+ channel: string;
1076
+ mentions?: string[] | undefined;
1077
+ threadId?: string | undefined;
1078
+ }, {
1079
+ message: string;
1080
+ type: "slack_message";
1081
+ name: string;
1082
+ channel: string;
1083
+ mentions?: string[] | undefined;
1084
+ threadId?: string | undefined;
1085
+ }>, z.ZodObject<{
1086
+ name: z.ZodString;
1087
+ type: z.ZodLiteral<"teams_message">;
1088
+ channel: z.ZodString;
1089
+ message: z.ZodString;
1090
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1091
+ teamId: z.ZodOptional<z.ZodString>;
1092
+ }, "strip", z.ZodTypeAny, {
1093
+ message: string;
1094
+ type: "teams_message";
1095
+ name: string;
1096
+ channel: string;
1097
+ mentions?: string[] | undefined;
1098
+ teamId?: string | undefined;
1099
+ }, {
1100
+ message: string;
1101
+ type: "teams_message";
1102
+ name: string;
1103
+ channel: string;
1104
+ mentions?: string[] | undefined;
1105
+ teamId?: string | undefined;
1106
+ }>, z.ZodObject<{
1107
+ name: z.ZodString;
1108
+ type: z.ZodLiteral<"http_call">;
1109
+ url: z.ZodString;
1110
+ method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
1111
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1112
+ body: z.ZodOptional<z.ZodAny>;
1113
+ authentication: z.ZodOptional<z.ZodObject<{
1114
+ type: z.ZodEnum<["none", "basic", "bearer", "api_key", "oauth2"]>;
1115
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1116
+ }, "strip", z.ZodTypeAny, {
1117
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
1118
+ credentials?: Record<string, string> | undefined;
1119
+ }, {
1120
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
1121
+ credentials?: Record<string, string> | undefined;
1122
+ }>>;
1123
+ timeout: z.ZodOptional<z.ZodNumber>;
1124
+ }, "strip", z.ZodTypeAny, {
1125
+ type: "http_call";
1126
+ url: string;
1127
+ name: string;
1128
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1129
+ headers?: Record<string, string> | undefined;
1130
+ timeout?: number | undefined;
1131
+ body?: any;
1132
+ authentication?: {
1133
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
1134
+ credentials?: Record<string, string> | undefined;
1135
+ } | undefined;
1136
+ }, {
1137
+ type: "http_call";
1138
+ url: string;
1139
+ name: string;
1140
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1141
+ headers?: Record<string, string> | undefined;
1142
+ timeout?: number | undefined;
1143
+ body?: any;
1144
+ authentication?: {
1145
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
1146
+ credentials?: Record<string, string> | undefined;
1147
+ } | undefined;
1148
+ }>, z.ZodObject<{
1149
+ name: z.ZodString;
1150
+ type: z.ZodLiteral<"webhook_trigger">;
1151
+ url: z.ZodString;
1152
+ method: z.ZodDefault<z.ZodEnum<["POST", "PUT"]>>;
1153
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1154
+ payload: z.ZodOptional<z.ZodAny>;
1155
+ retryOnFailure: z.ZodDefault<z.ZodBoolean>;
1156
+ maxRetries: z.ZodDefault<z.ZodNumber>;
1157
+ }, "strip", z.ZodTypeAny, {
1158
+ type: "webhook_trigger";
1159
+ url: string;
1160
+ name: string;
1161
+ method: "POST" | "PUT";
1162
+ maxRetries: number;
1163
+ retryOnFailure: boolean;
1164
+ headers?: Record<string, string> | undefined;
1165
+ payload?: any;
1166
+ }, {
1167
+ type: "webhook_trigger";
1168
+ url: string;
1169
+ name: string;
1170
+ method?: "POST" | "PUT" | undefined;
1171
+ headers?: Record<string, string> | undefined;
1172
+ payload?: any;
1173
+ maxRetries?: number | undefined;
1174
+ retryOnFailure?: boolean | undefined;
1175
+ }>, z.ZodObject<{
1176
+ name: z.ZodString;
1177
+ type: z.ZodLiteral<"task_creation">;
1178
+ taskObject: z.ZodString;
1179
+ subject: z.ZodString;
1180
+ description: z.ZodOptional<z.ZodString>;
1181
+ assignedTo: z.ZodOptional<z.ZodString>;
1182
+ dueDate: z.ZodOptional<z.ZodString>;
1183
+ priority: z.ZodOptional<z.ZodString>;
1184
+ relatedTo: z.ZodOptional<z.ZodString>;
1185
+ additionalFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1186
+ }, "strip", z.ZodTypeAny, {
1187
+ type: "task_creation";
1188
+ name: string;
1189
+ taskObject: string;
1190
+ subject: string;
1191
+ description?: string | undefined;
1192
+ priority?: string | undefined;
1193
+ assignedTo?: string | undefined;
1194
+ dueDate?: string | undefined;
1195
+ relatedTo?: string | undefined;
1196
+ additionalFields?: Record<string, any> | undefined;
1197
+ }, {
1198
+ type: "task_creation";
1199
+ name: string;
1200
+ taskObject: string;
1201
+ subject: string;
1202
+ description?: string | undefined;
1203
+ priority?: string | undefined;
1204
+ assignedTo?: string | undefined;
1205
+ dueDate?: string | undefined;
1206
+ relatedTo?: string | undefined;
1207
+ additionalFields?: Record<string, any> | undefined;
1208
+ }>, z.ZodObject<{
1209
+ name: z.ZodString;
1210
+ type: z.ZodLiteral<"push_notification">;
1211
+ title: z.ZodString;
1212
+ body: z.ZodString;
1213
+ recipients: z.ZodArray<z.ZodString, "many">;
1214
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1215
+ badge: z.ZodOptional<z.ZodNumber>;
1216
+ sound: z.ZodOptional<z.ZodString>;
1217
+ clickAction: z.ZodOptional<z.ZodString>;
1218
+ }, "strip", z.ZodTypeAny, {
1219
+ type: "push_notification";
1220
+ name: string;
1221
+ body: string;
1222
+ title: string;
1223
+ recipients: string[];
1224
+ data?: Record<string, any> | undefined;
1225
+ badge?: number | undefined;
1226
+ sound?: string | undefined;
1227
+ clickAction?: string | undefined;
1228
+ }, {
1229
+ type: "push_notification";
1230
+ name: string;
1231
+ body: string;
1232
+ title: string;
1233
+ recipients: string[];
1234
+ data?: Record<string, any> | undefined;
1235
+ badge?: number | undefined;
1236
+ sound?: string | undefined;
1237
+ clickAction?: string | undefined;
1238
+ }>, z.ZodObject<{
1239
+ name: z.ZodString;
1240
+ type: z.ZodLiteral<"custom_script">;
1241
+ language: z.ZodDefault<z.ZodEnum<["javascript", "typescript", "python"]>>;
1242
+ code: z.ZodString;
1243
+ timeout: z.ZodDefault<z.ZodNumber>;
1244
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1245
+ }, "strip", z.ZodTypeAny, {
1246
+ code: string;
1247
+ type: "custom_script";
1248
+ name: string;
1249
+ language: "javascript" | "typescript" | "python";
1250
+ timeout: number;
1251
+ context?: Record<string, any> | undefined;
1252
+ }, {
1253
+ code: string;
1254
+ type: "custom_script";
1255
+ name: string;
1256
+ language?: "javascript" | "typescript" | "python" | undefined;
1257
+ timeout?: number | undefined;
1258
+ context?: Record<string, any> | undefined;
1259
+ }>]>, "many">>;
1260
+ /**
1261
+ * Time-Dependent Actions
1262
+ * Actions scheduled to run in the future.
1263
+ */
1264
+ timeTriggers: z.ZodOptional<z.ZodArray<z.ZodObject<{
1265
+ id: z.ZodOptional<z.ZodString>;
1266
+ /** Timing Logic */
1267
+ timeLength: z.ZodNumber;
1268
+ timeUnit: z.ZodEnum<["minutes", "hours", "days"]>;
1269
+ /** Reference Point */
1270
+ offsetDirection: z.ZodEnum<["before", "after"]>;
1271
+ offsetFrom: z.ZodEnum<["trigger_date", "date_field"]>;
1272
+ dateField: z.ZodOptional<z.ZodString>;
1273
+ /** Actions */
1274
+ actions: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1275
+ name: z.ZodString;
1276
+ type: z.ZodLiteral<"field_update">;
1277
+ field: z.ZodString;
1278
+ value: z.ZodAny;
1279
+ }, "strip", z.ZodTypeAny, {
1280
+ type: "field_update";
1281
+ field: string;
1282
+ name: string;
1283
+ value?: any;
1284
+ }, {
1285
+ type: "field_update";
1286
+ field: string;
1287
+ name: string;
1288
+ value?: any;
1289
+ }>, z.ZodObject<{
1290
+ name: z.ZodString;
1291
+ type: z.ZodLiteral<"email_alert">;
1292
+ template: z.ZodString;
1293
+ recipients: z.ZodArray<z.ZodString, "many">;
1294
+ }, "strip", z.ZodTypeAny, {
1295
+ type: "email_alert";
1296
+ name: string;
1297
+ template: string;
1298
+ recipients: string[];
1299
+ }, {
1300
+ type: "email_alert";
1301
+ name: string;
1302
+ template: string;
1303
+ recipients: string[];
1304
+ }>, z.ZodObject<{
1305
+ name: z.ZodString;
1306
+ type: z.ZodLiteral<"sms_notification">;
1307
+ provider: z.ZodEnum<["twilio", "vonage"]>;
1308
+ recipients: z.ZodArray<z.ZodString, "many">;
1309
+ message: z.ZodString;
1310
+ fromNumber: z.ZodOptional<z.ZodString>;
1311
+ }, "strip", z.ZodTypeAny, {
1312
+ message: string;
1313
+ type: "sms_notification";
1314
+ name: string;
1315
+ provider: "twilio" | "vonage";
1316
+ recipients: string[];
1317
+ fromNumber?: string | undefined;
1318
+ }, {
1319
+ message: string;
1320
+ type: "sms_notification";
1321
+ name: string;
1322
+ provider: "twilio" | "vonage";
1323
+ recipients: string[];
1324
+ fromNumber?: string | undefined;
1325
+ }>, z.ZodObject<{
1326
+ name: z.ZodString;
1327
+ type: z.ZodLiteral<"slack_message">;
1328
+ channel: z.ZodString;
1329
+ message: z.ZodString;
1330
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1331
+ threadId: z.ZodOptional<z.ZodString>;
1332
+ }, "strip", z.ZodTypeAny, {
1333
+ message: string;
1334
+ type: "slack_message";
1335
+ name: string;
1336
+ channel: string;
1337
+ mentions?: string[] | undefined;
1338
+ threadId?: string | undefined;
1339
+ }, {
1340
+ message: string;
1341
+ type: "slack_message";
1342
+ name: string;
1343
+ channel: string;
1344
+ mentions?: string[] | undefined;
1345
+ threadId?: string | undefined;
1346
+ }>, z.ZodObject<{
1347
+ name: z.ZodString;
1348
+ type: z.ZodLiteral<"teams_message">;
1349
+ channel: z.ZodString;
1350
+ message: z.ZodString;
1351
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1352
+ teamId: z.ZodOptional<z.ZodString>;
1353
+ }, "strip", z.ZodTypeAny, {
1354
+ message: string;
1355
+ type: "teams_message";
1356
+ name: string;
1357
+ channel: string;
1358
+ mentions?: string[] | undefined;
1359
+ teamId?: string | undefined;
1360
+ }, {
1361
+ message: string;
1362
+ type: "teams_message";
1363
+ name: string;
1364
+ channel: string;
1365
+ mentions?: string[] | undefined;
1366
+ teamId?: string | undefined;
1367
+ }>, z.ZodObject<{
1368
+ name: z.ZodString;
1369
+ type: z.ZodLiteral<"http_call">;
1370
+ url: z.ZodString;
1371
+ method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
1372
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1373
+ body: z.ZodOptional<z.ZodAny>;
1374
+ authentication: z.ZodOptional<z.ZodObject<{
1375
+ type: z.ZodEnum<["none", "basic", "bearer", "api_key", "oauth2"]>;
1376
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1377
+ }, "strip", z.ZodTypeAny, {
1378
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
1379
+ credentials?: Record<string, string> | undefined;
1380
+ }, {
1381
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
1382
+ credentials?: Record<string, string> | undefined;
1383
+ }>>;
1384
+ timeout: z.ZodOptional<z.ZodNumber>;
1385
+ }, "strip", z.ZodTypeAny, {
1386
+ type: "http_call";
1387
+ url: string;
1388
+ name: string;
1389
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1390
+ headers?: Record<string, string> | undefined;
1391
+ timeout?: number | undefined;
1392
+ body?: any;
1393
+ authentication?: {
1394
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
1395
+ credentials?: Record<string, string> | undefined;
1396
+ } | undefined;
1397
+ }, {
1398
+ type: "http_call";
1399
+ url: string;
1400
+ name: string;
1401
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1402
+ headers?: Record<string, string> | undefined;
1403
+ timeout?: number | undefined;
1404
+ body?: any;
1405
+ authentication?: {
1406
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
1407
+ credentials?: Record<string, string> | undefined;
1408
+ } | undefined;
1409
+ }>, z.ZodObject<{
1410
+ name: z.ZodString;
1411
+ type: z.ZodLiteral<"webhook_trigger">;
1412
+ url: z.ZodString;
1413
+ method: z.ZodDefault<z.ZodEnum<["POST", "PUT"]>>;
1414
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1415
+ payload: z.ZodOptional<z.ZodAny>;
1416
+ retryOnFailure: z.ZodDefault<z.ZodBoolean>;
1417
+ maxRetries: z.ZodDefault<z.ZodNumber>;
1418
+ }, "strip", z.ZodTypeAny, {
1419
+ type: "webhook_trigger";
1420
+ url: string;
1421
+ name: string;
1422
+ method: "POST" | "PUT";
1423
+ maxRetries: number;
1424
+ retryOnFailure: boolean;
1425
+ headers?: Record<string, string> | undefined;
1426
+ payload?: any;
1427
+ }, {
1428
+ type: "webhook_trigger";
1429
+ url: string;
1430
+ name: string;
1431
+ method?: "POST" | "PUT" | undefined;
1432
+ headers?: Record<string, string> | undefined;
1433
+ payload?: any;
1434
+ maxRetries?: number | undefined;
1435
+ retryOnFailure?: boolean | undefined;
1436
+ }>, z.ZodObject<{
1437
+ name: z.ZodString;
1438
+ type: z.ZodLiteral<"task_creation">;
1439
+ taskObject: z.ZodString;
1440
+ subject: z.ZodString;
1441
+ description: z.ZodOptional<z.ZodString>;
1442
+ assignedTo: z.ZodOptional<z.ZodString>;
1443
+ dueDate: z.ZodOptional<z.ZodString>;
1444
+ priority: z.ZodOptional<z.ZodString>;
1445
+ relatedTo: z.ZodOptional<z.ZodString>;
1446
+ additionalFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1447
+ }, "strip", z.ZodTypeAny, {
1448
+ type: "task_creation";
1449
+ name: string;
1450
+ taskObject: string;
1451
+ subject: string;
1452
+ description?: string | undefined;
1453
+ priority?: string | undefined;
1454
+ assignedTo?: string | undefined;
1455
+ dueDate?: string | undefined;
1456
+ relatedTo?: string | undefined;
1457
+ additionalFields?: Record<string, any> | undefined;
1458
+ }, {
1459
+ type: "task_creation";
1460
+ name: string;
1461
+ taskObject: string;
1462
+ subject: string;
1463
+ description?: string | undefined;
1464
+ priority?: string | undefined;
1465
+ assignedTo?: string | undefined;
1466
+ dueDate?: string | undefined;
1467
+ relatedTo?: string | undefined;
1468
+ additionalFields?: Record<string, any> | undefined;
1469
+ }>, z.ZodObject<{
1470
+ name: z.ZodString;
1471
+ type: z.ZodLiteral<"push_notification">;
1472
+ title: z.ZodString;
1473
+ body: z.ZodString;
1474
+ recipients: z.ZodArray<z.ZodString, "many">;
1475
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1476
+ badge: z.ZodOptional<z.ZodNumber>;
1477
+ sound: z.ZodOptional<z.ZodString>;
1478
+ clickAction: z.ZodOptional<z.ZodString>;
1479
+ }, "strip", z.ZodTypeAny, {
1480
+ type: "push_notification";
1481
+ name: string;
1482
+ body: string;
1483
+ title: string;
1484
+ recipients: string[];
1485
+ data?: Record<string, any> | undefined;
1486
+ badge?: number | undefined;
1487
+ sound?: string | undefined;
1488
+ clickAction?: string | undefined;
1489
+ }, {
1490
+ type: "push_notification";
1491
+ name: string;
1492
+ body: string;
1493
+ title: string;
1494
+ recipients: string[];
1495
+ data?: Record<string, any> | undefined;
1496
+ badge?: number | undefined;
1497
+ sound?: string | undefined;
1498
+ clickAction?: string | undefined;
1499
+ }>, z.ZodObject<{
1500
+ name: z.ZodString;
1501
+ type: z.ZodLiteral<"custom_script">;
1502
+ language: z.ZodDefault<z.ZodEnum<["javascript", "typescript", "python"]>>;
1503
+ code: z.ZodString;
1504
+ timeout: z.ZodDefault<z.ZodNumber>;
1505
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1506
+ }, "strip", z.ZodTypeAny, {
1507
+ code: string;
1508
+ type: "custom_script";
1509
+ name: string;
1510
+ language: "javascript" | "typescript" | "python";
1511
+ timeout: number;
1512
+ context?: Record<string, any> | undefined;
1513
+ }, {
1514
+ code: string;
1515
+ type: "custom_script";
1516
+ name: string;
1517
+ language?: "javascript" | "typescript" | "python" | undefined;
1518
+ timeout?: number | undefined;
1519
+ context?: Record<string, any> | undefined;
1520
+ }>]>, "many">;
1521
+ }, "strip", z.ZodTypeAny, {
1522
+ actions: ({
1523
+ type: "field_update";
1524
+ field: string;
1525
+ name: string;
1526
+ value?: any;
1527
+ } | {
1528
+ type: "email_alert";
1529
+ name: string;
1530
+ template: string;
1531
+ recipients: string[];
1532
+ } | {
1533
+ message: string;
1534
+ type: "sms_notification";
1535
+ name: string;
1536
+ provider: "twilio" | "vonage";
1537
+ recipients: string[];
1538
+ fromNumber?: string | undefined;
1539
+ } | {
1540
+ message: string;
1541
+ type: "slack_message";
1542
+ name: string;
1543
+ channel: string;
1544
+ mentions?: string[] | undefined;
1545
+ threadId?: string | undefined;
1546
+ } | {
1547
+ message: string;
1548
+ type: "teams_message";
1549
+ name: string;
1550
+ channel: string;
1551
+ mentions?: string[] | undefined;
1552
+ teamId?: string | undefined;
1553
+ } | {
1554
+ type: "http_call";
1555
+ url: string;
1556
+ name: string;
1557
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1558
+ headers?: Record<string, string> | undefined;
1559
+ timeout?: number | undefined;
1560
+ body?: any;
1561
+ authentication?: {
1562
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
1563
+ credentials?: Record<string, string> | undefined;
1564
+ } | undefined;
1565
+ } | {
1566
+ type: "webhook_trigger";
1567
+ url: string;
1568
+ name: string;
1569
+ method: "POST" | "PUT";
1570
+ maxRetries: number;
1571
+ retryOnFailure: boolean;
1572
+ headers?: Record<string, string> | undefined;
1573
+ payload?: any;
1574
+ } | {
1575
+ type: "task_creation";
1576
+ name: string;
1577
+ taskObject: string;
1578
+ subject: string;
1579
+ description?: string | undefined;
1580
+ priority?: string | undefined;
1581
+ assignedTo?: string | undefined;
1582
+ dueDate?: string | undefined;
1583
+ relatedTo?: string | undefined;
1584
+ additionalFields?: Record<string, any> | undefined;
1585
+ } | {
1586
+ type: "push_notification";
1587
+ name: string;
1588
+ body: string;
1589
+ title: string;
1590
+ recipients: string[];
1591
+ data?: Record<string, any> | undefined;
1592
+ badge?: number | undefined;
1593
+ sound?: string | undefined;
1594
+ clickAction?: string | undefined;
1595
+ } | {
1596
+ code: string;
1597
+ type: "custom_script";
1598
+ name: string;
1599
+ language: "javascript" | "typescript" | "python";
1600
+ timeout: number;
1601
+ context?: Record<string, any> | undefined;
1602
+ })[];
1603
+ timeLength: number;
1604
+ timeUnit: "minutes" | "hours" | "days";
1605
+ offsetDirection: "before" | "after";
1606
+ offsetFrom: "trigger_date" | "date_field";
1607
+ id?: string | undefined;
1608
+ dateField?: string | undefined;
1609
+ }, {
1610
+ actions: ({
1611
+ type: "field_update";
1612
+ field: string;
1613
+ name: string;
1614
+ value?: any;
1615
+ } | {
1616
+ type: "email_alert";
1617
+ name: string;
1618
+ template: string;
1619
+ recipients: string[];
1620
+ } | {
1621
+ message: string;
1622
+ type: "sms_notification";
1623
+ name: string;
1624
+ provider: "twilio" | "vonage";
1625
+ recipients: string[];
1626
+ fromNumber?: string | undefined;
1627
+ } | {
1628
+ message: string;
1629
+ type: "slack_message";
1630
+ name: string;
1631
+ channel: string;
1632
+ mentions?: string[] | undefined;
1633
+ threadId?: string | undefined;
1634
+ } | {
1635
+ message: string;
1636
+ type: "teams_message";
1637
+ name: string;
1638
+ channel: string;
1639
+ mentions?: string[] | undefined;
1640
+ teamId?: string | undefined;
1641
+ } | {
1642
+ type: "http_call";
1643
+ url: string;
1644
+ name: string;
1645
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1646
+ headers?: Record<string, string> | undefined;
1647
+ timeout?: number | undefined;
1648
+ body?: any;
1649
+ authentication?: {
1650
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
1651
+ credentials?: Record<string, string> | undefined;
1652
+ } | undefined;
1653
+ } | {
1654
+ type: "webhook_trigger";
1655
+ url: string;
1656
+ name: string;
1657
+ method?: "POST" | "PUT" | undefined;
1658
+ headers?: Record<string, string> | undefined;
1659
+ payload?: any;
1660
+ maxRetries?: number | undefined;
1661
+ retryOnFailure?: boolean | undefined;
1662
+ } | {
1663
+ type: "task_creation";
1664
+ name: string;
1665
+ taskObject: string;
1666
+ subject: string;
1667
+ description?: string | undefined;
1668
+ priority?: string | undefined;
1669
+ assignedTo?: string | undefined;
1670
+ dueDate?: string | undefined;
1671
+ relatedTo?: string | undefined;
1672
+ additionalFields?: Record<string, any> | undefined;
1673
+ } | {
1674
+ type: "push_notification";
1675
+ name: string;
1676
+ body: string;
1677
+ title: string;
1678
+ recipients: string[];
1679
+ data?: Record<string, any> | undefined;
1680
+ badge?: number | undefined;
1681
+ sound?: string | undefined;
1682
+ clickAction?: string | undefined;
1683
+ } | {
1684
+ code: string;
1685
+ type: "custom_script";
1686
+ name: string;
1687
+ language?: "javascript" | "typescript" | "python" | undefined;
1688
+ timeout?: number | undefined;
1689
+ context?: Record<string, any> | undefined;
1690
+ })[];
1691
+ timeLength: number;
1692
+ timeUnit: "minutes" | "hours" | "days";
1693
+ offsetDirection: "before" | "after";
1694
+ offsetFrom: "trigger_date" | "date_field";
1695
+ id?: string | undefined;
1696
+ dateField?: string | undefined;
1697
+ }>, "many">>;
1698
+ /** Active status */
1699
+ active: z.ZodDefault<z.ZodBoolean>;
1700
+ /** Recursion Control */
1701
+ reevaluateOnChange: z.ZodDefault<z.ZodBoolean>;
1702
+ }, "strip", z.ZodTypeAny, {
1703
+ name: string;
1704
+ active: boolean;
1705
+ objectName: string;
1706
+ triggerType: "schedule" | "on_update" | "on_create" | "on_create_or_update" | "on_delete";
1707
+ reevaluateOnChange: boolean;
1708
+ criteria?: string | undefined;
1709
+ actions?: ({
1710
+ type: "field_update";
1711
+ field: string;
1712
+ name: string;
1713
+ value?: any;
1714
+ } | {
1715
+ type: "email_alert";
1716
+ name: string;
1717
+ template: string;
1718
+ recipients: string[];
1719
+ } | {
1720
+ message: string;
1721
+ type: "sms_notification";
1722
+ name: string;
1723
+ provider: "twilio" | "vonage";
1724
+ recipients: string[];
1725
+ fromNumber?: string | undefined;
1726
+ } | {
1727
+ message: string;
1728
+ type: "slack_message";
1729
+ name: string;
1730
+ channel: string;
1731
+ mentions?: string[] | undefined;
1732
+ threadId?: string | undefined;
1733
+ } | {
1734
+ message: string;
1735
+ type: "teams_message";
1736
+ name: string;
1737
+ channel: string;
1738
+ mentions?: string[] | undefined;
1739
+ teamId?: string | undefined;
1740
+ } | {
1741
+ type: "http_call";
1742
+ url: string;
1743
+ name: string;
1744
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1745
+ headers?: Record<string, string> | undefined;
1746
+ timeout?: number | undefined;
1747
+ body?: any;
1748
+ authentication?: {
1749
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
1750
+ credentials?: Record<string, string> | undefined;
1751
+ } | undefined;
1752
+ } | {
1753
+ type: "webhook_trigger";
1754
+ url: string;
1755
+ name: string;
1756
+ method: "POST" | "PUT";
1757
+ maxRetries: number;
1758
+ retryOnFailure: boolean;
1759
+ headers?: Record<string, string> | undefined;
1760
+ payload?: any;
1761
+ } | {
1762
+ type: "task_creation";
1763
+ name: string;
1764
+ taskObject: string;
1765
+ subject: string;
1766
+ description?: string | undefined;
1767
+ priority?: string | undefined;
1768
+ assignedTo?: string | undefined;
1769
+ dueDate?: string | undefined;
1770
+ relatedTo?: string | undefined;
1771
+ additionalFields?: Record<string, any> | undefined;
1772
+ } | {
1773
+ type: "push_notification";
1774
+ name: string;
1775
+ body: string;
1776
+ title: string;
1777
+ recipients: string[];
1778
+ data?: Record<string, any> | undefined;
1779
+ badge?: number | undefined;
1780
+ sound?: string | undefined;
1781
+ clickAction?: string | undefined;
1782
+ } | {
1783
+ code: string;
1784
+ type: "custom_script";
1785
+ name: string;
1786
+ language: "javascript" | "typescript" | "python";
1787
+ timeout: number;
1788
+ context?: Record<string, any> | undefined;
1789
+ })[] | undefined;
1790
+ timeTriggers?: {
1791
+ actions: ({
1792
+ type: "field_update";
1793
+ field: string;
1794
+ name: string;
1795
+ value?: any;
1796
+ } | {
1797
+ type: "email_alert";
1798
+ name: string;
1799
+ template: string;
1800
+ recipients: string[];
1801
+ } | {
1802
+ message: string;
1803
+ type: "sms_notification";
1804
+ name: string;
1805
+ provider: "twilio" | "vonage";
1806
+ recipients: string[];
1807
+ fromNumber?: string | undefined;
1808
+ } | {
1809
+ message: string;
1810
+ type: "slack_message";
1811
+ name: string;
1812
+ channel: string;
1813
+ mentions?: string[] | undefined;
1814
+ threadId?: string | undefined;
1815
+ } | {
1816
+ message: string;
1817
+ type: "teams_message";
1818
+ name: string;
1819
+ channel: string;
1820
+ mentions?: string[] | undefined;
1821
+ teamId?: string | undefined;
1822
+ } | {
1823
+ type: "http_call";
1824
+ url: string;
1825
+ name: string;
1826
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1827
+ headers?: Record<string, string> | undefined;
1828
+ timeout?: number | undefined;
1829
+ body?: any;
1830
+ authentication?: {
1831
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
1832
+ credentials?: Record<string, string> | undefined;
1833
+ } | undefined;
1834
+ } | {
1835
+ type: "webhook_trigger";
1836
+ url: string;
1837
+ name: string;
1838
+ method: "POST" | "PUT";
1839
+ maxRetries: number;
1840
+ retryOnFailure: boolean;
1841
+ headers?: Record<string, string> | undefined;
1842
+ payload?: any;
1843
+ } | {
1844
+ type: "task_creation";
1845
+ name: string;
1846
+ taskObject: string;
1847
+ subject: string;
1848
+ description?: string | undefined;
1849
+ priority?: string | undefined;
1850
+ assignedTo?: string | undefined;
1851
+ dueDate?: string | undefined;
1852
+ relatedTo?: string | undefined;
1853
+ additionalFields?: Record<string, any> | undefined;
1854
+ } | {
1855
+ type: "push_notification";
1856
+ name: string;
1857
+ body: string;
1858
+ title: string;
1859
+ recipients: string[];
1860
+ data?: Record<string, any> | undefined;
1861
+ badge?: number | undefined;
1862
+ sound?: string | undefined;
1863
+ clickAction?: string | undefined;
1864
+ } | {
1865
+ code: string;
1866
+ type: "custom_script";
1867
+ name: string;
1868
+ language: "javascript" | "typescript" | "python";
1869
+ timeout: number;
1870
+ context?: Record<string, any> | undefined;
1871
+ })[];
1872
+ timeLength: number;
1873
+ timeUnit: "minutes" | "hours" | "days";
1874
+ offsetDirection: "before" | "after";
1875
+ offsetFrom: "trigger_date" | "date_field";
1876
+ id?: string | undefined;
1877
+ dateField?: string | undefined;
1878
+ }[] | undefined;
1879
+ }, {
1880
+ name: string;
1881
+ objectName: string;
1882
+ triggerType: "schedule" | "on_update" | "on_create" | "on_create_or_update" | "on_delete";
1883
+ active?: boolean | undefined;
1884
+ criteria?: string | undefined;
1885
+ actions?: ({
1886
+ type: "field_update";
1887
+ field: string;
1888
+ name: string;
1889
+ value?: any;
1890
+ } | {
1891
+ type: "email_alert";
1892
+ name: string;
1893
+ template: string;
1894
+ recipients: string[];
1895
+ } | {
1896
+ message: string;
1897
+ type: "sms_notification";
1898
+ name: string;
1899
+ provider: "twilio" | "vonage";
1900
+ recipients: string[];
1901
+ fromNumber?: string | undefined;
1902
+ } | {
1903
+ message: string;
1904
+ type: "slack_message";
1905
+ name: string;
1906
+ channel: string;
1907
+ mentions?: string[] | undefined;
1908
+ threadId?: string | undefined;
1909
+ } | {
1910
+ message: string;
1911
+ type: "teams_message";
1912
+ name: string;
1913
+ channel: string;
1914
+ mentions?: string[] | undefined;
1915
+ teamId?: string | undefined;
1916
+ } | {
1917
+ type: "http_call";
1918
+ url: string;
1919
+ name: string;
1920
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
1921
+ headers?: Record<string, string> | undefined;
1922
+ timeout?: number | undefined;
1923
+ body?: any;
1924
+ authentication?: {
1925
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
1926
+ credentials?: Record<string, string> | undefined;
1927
+ } | undefined;
1928
+ } | {
1929
+ type: "webhook_trigger";
1930
+ url: string;
1931
+ name: string;
1932
+ method?: "POST" | "PUT" | undefined;
1933
+ headers?: Record<string, string> | undefined;
1934
+ payload?: any;
1935
+ maxRetries?: number | undefined;
1936
+ retryOnFailure?: boolean | undefined;
1937
+ } | {
1938
+ type: "task_creation";
1939
+ name: string;
1940
+ taskObject: string;
1941
+ subject: string;
1942
+ description?: string | undefined;
1943
+ priority?: string | undefined;
1944
+ assignedTo?: string | undefined;
1945
+ dueDate?: string | undefined;
1946
+ relatedTo?: string | undefined;
1947
+ additionalFields?: Record<string, any> | undefined;
1948
+ } | {
1949
+ type: "push_notification";
1950
+ name: string;
1951
+ body: string;
1952
+ title: string;
1953
+ recipients: string[];
1954
+ data?: Record<string, any> | undefined;
1955
+ badge?: number | undefined;
1956
+ sound?: string | undefined;
1957
+ clickAction?: string | undefined;
1958
+ } | {
1959
+ code: string;
1960
+ type: "custom_script";
1961
+ name: string;
1962
+ language?: "javascript" | "typescript" | "python" | undefined;
1963
+ timeout?: number | undefined;
1964
+ context?: Record<string, any> | undefined;
1965
+ })[] | undefined;
1966
+ timeTriggers?: {
1967
+ actions: ({
1968
+ type: "field_update";
1969
+ field: string;
1970
+ name: string;
1971
+ value?: any;
1972
+ } | {
1973
+ type: "email_alert";
1974
+ name: string;
1975
+ template: string;
1976
+ recipients: string[];
1977
+ } | {
1978
+ message: string;
1979
+ type: "sms_notification";
1980
+ name: string;
1981
+ provider: "twilio" | "vonage";
1982
+ recipients: string[];
1983
+ fromNumber?: string | undefined;
1984
+ } | {
1985
+ message: string;
1986
+ type: "slack_message";
1987
+ name: string;
1988
+ channel: string;
1989
+ mentions?: string[] | undefined;
1990
+ threadId?: string | undefined;
1991
+ } | {
1992
+ message: string;
1993
+ type: "teams_message";
1994
+ name: string;
1995
+ channel: string;
1996
+ mentions?: string[] | undefined;
1997
+ teamId?: string | undefined;
1998
+ } | {
1999
+ type: "http_call";
2000
+ url: string;
2001
+ name: string;
2002
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
2003
+ headers?: Record<string, string> | undefined;
2004
+ timeout?: number | undefined;
2005
+ body?: any;
2006
+ authentication?: {
2007
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
2008
+ credentials?: Record<string, string> | undefined;
2009
+ } | undefined;
2010
+ } | {
2011
+ type: "webhook_trigger";
2012
+ url: string;
2013
+ name: string;
2014
+ method?: "POST" | "PUT" | undefined;
2015
+ headers?: Record<string, string> | undefined;
2016
+ payload?: any;
2017
+ maxRetries?: number | undefined;
2018
+ retryOnFailure?: boolean | undefined;
2019
+ } | {
2020
+ type: "task_creation";
2021
+ name: string;
2022
+ taskObject: string;
2023
+ subject: string;
2024
+ description?: string | undefined;
2025
+ priority?: string | undefined;
2026
+ assignedTo?: string | undefined;
2027
+ dueDate?: string | undefined;
2028
+ relatedTo?: string | undefined;
2029
+ additionalFields?: Record<string, any> | undefined;
2030
+ } | {
2031
+ type: "push_notification";
2032
+ name: string;
2033
+ body: string;
2034
+ title: string;
2035
+ recipients: string[];
2036
+ data?: Record<string, any> | undefined;
2037
+ badge?: number | undefined;
2038
+ sound?: string | undefined;
2039
+ clickAction?: string | undefined;
2040
+ } | {
2041
+ code: string;
2042
+ type: "custom_script";
2043
+ name: string;
2044
+ language?: "javascript" | "typescript" | "python" | undefined;
2045
+ timeout?: number | undefined;
2046
+ context?: Record<string, any> | undefined;
2047
+ })[];
2048
+ timeLength: number;
2049
+ timeUnit: "minutes" | "hours" | "days";
2050
+ offsetDirection: "before" | "after";
2051
+ offsetFrom: "trigger_date" | "date_field";
2052
+ id?: string | undefined;
2053
+ dateField?: string | undefined;
2054
+ }[] | undefined;
2055
+ reevaluateOnChange?: boolean | undefined;
2056
+ }>;
2057
+ export type WorkflowRule = z.infer<typeof WorkflowRuleSchema>;
2058
+ export type TimeTrigger = z.infer<typeof TimeTriggerSchema>;
2059
+ //# sourceMappingURL=workflow.zod.d.ts.map