@objectstack/spec 0.3.0 → 0.3.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 (386) hide show
  1. package/dist/ai/conversation.zod.d.ts +1059 -0
  2. package/dist/ai/conversation.zod.d.ts.map +1 -0
  3. package/dist/ai/conversation.zod.js +248 -0
  4. package/dist/ai/cost.zod.d.ts +2025 -0
  5. package/dist/ai/cost.zod.d.ts.map +1 -0
  6. package/dist/ai/cost.zod.js +324 -0
  7. package/dist/ai/index.d.ts +8 -0
  8. package/dist/ai/index.d.ts.map +1 -1
  9. package/dist/ai/index.js +8 -0
  10. package/dist/ai/model-registry.zod.d.ts +53 -53
  11. package/dist/ai/nlq.zod.d.ts +24 -24
  12. package/dist/ai/predictive.zod.d.ts +838 -0
  13. package/dist/ai/predictive.zod.d.ts.map +1 -0
  14. package/dist/ai/predictive.zod.js +244 -0
  15. package/dist/ai/rag-pipeline.zod.d.ts +22 -22
  16. package/dist/ai/workflow-automation.zod.d.ts +590 -0
  17. package/dist/ai/workflow-automation.zod.d.ts.map +1 -0
  18. package/dist/ai/workflow-automation.zod.js +197 -0
  19. package/dist/api/contract.zod.d.ts +22 -22
  20. package/dist/data/field.zod.d.ts +409 -4
  21. package/dist/data/field.zod.d.ts.map +1 -1
  22. package/dist/data/field.zod.js +28 -2
  23. package/dist/data/mapping.zod.d.ts +6 -6
  24. package/dist/data/object.zod.d.ts +80 -10
  25. package/dist/data/object.zod.d.ts.map +1 -1
  26. package/dist/data/workflow.zod.d.ts +809 -18
  27. package/dist/data/workflow.zod.d.ts.map +1 -1
  28. package/dist/data/workflow.zod.js +115 -7
  29. package/dist/system/api.zod.d.ts +4 -4
  30. package/dist/system/audit.zod.d.ts +1172 -0
  31. package/dist/system/audit.zod.d.ts.map +1 -0
  32. package/dist/system/audit.zod.js +596 -0
  33. package/dist/system/auth.zod.d.ts +8 -8
  34. package/dist/system/driver.zod.d.ts +4 -4
  35. package/dist/system/events.zod.d.ts +177 -0
  36. package/dist/system/events.zod.d.ts.map +1 -0
  37. package/dist/system/events.zod.js +51 -0
  38. package/dist/system/identity.zod.d.ts +4 -4
  39. package/dist/system/index.d.ts +5 -0
  40. package/dist/system/index.d.ts.map +1 -1
  41. package/dist/system/index.js +5 -0
  42. package/dist/system/job.zod.d.ts +237 -0
  43. package/dist/system/job.zod.d.ts.map +1 -0
  44. package/dist/system/job.zod.js +82 -0
  45. package/dist/system/manifest.zod.d.ts +10 -10
  46. package/dist/system/realtime.zod.d.ts +135 -0
  47. package/dist/system/realtime.zod.d.ts.map +1 -0
  48. package/dist/system/realtime.zod.js +83 -0
  49. package/dist/system/tenant.zod.d.ts +1151 -0
  50. package/dist/system/tenant.zod.d.ts.map +1 -0
  51. package/dist/system/tenant.zod.js +498 -0
  52. package/dist/system/webhook.zod.d.ts +2 -2
  53. package/dist/ui/action.zod.d.ts +8 -8
  54. package/dist/ui/theme.zod.d.ts +12 -12
  55. package/dist/ui/widget.zod.d.ts +40 -5
  56. package/dist/ui/widget.zod.d.ts.map +1 -1
  57. package/json-schema/README.md +127 -0
  58. package/json-schema/ai/AITask.json +123 -0
  59. package/json-schema/ai/AITaskType.json +21 -0
  60. package/json-schema/ai/AIWorkflowAutomation.json +379 -0
  61. package/json-schema/ai/AIWorkflowExecutionResult.json +105 -0
  62. package/json-schema/ai/AIWorkflowTrigger.json +18 -0
  63. package/json-schema/ai/BatchAIWorkflowExecution.json +48 -0
  64. package/json-schema/ai/BillingPeriod.json +18 -0
  65. package/json-schema/ai/BudgetLimit.json +111 -0
  66. package/json-schema/ai/BudgetStatus.json +91 -0
  67. package/json-schema/ai/BudgetType.json +17 -0
  68. package/json-schema/ai/ConversationAnalytics.json +86 -0
  69. package/json-schema/ai/ConversationContext.json +48 -0
  70. package/json-schema/ai/ConversationMessage.json +209 -0
  71. package/json-schema/ai/ConversationSession.json +458 -0
  72. package/json-schema/ai/ConversationSummary.json +73 -0
  73. package/json-schema/ai/CostAlert.json +107 -0
  74. package/json-schema/ai/CostAlertType.json +16 -0
  75. package/json-schema/ai/CostAnalytics.json +589 -0
  76. package/json-schema/ai/CostBreakdownDimension.json +20 -0
  77. package/json-schema/ai/CostBreakdownEntry.json +60 -0
  78. package/json-schema/ai/CostEntry.json +106 -0
  79. package/json-schema/ai/CostMetricType.json +17 -0
  80. package/json-schema/ai/CostOptimizationRecommendation.json +100 -0
  81. package/json-schema/ai/CostQueryFilters.json +112 -0
  82. package/json-schema/ai/CostReport.json +964 -0
  83. package/json-schema/ai/EvaluationMetrics.json +64 -0
  84. package/json-schema/ai/FunctionCall.json +28 -0
  85. package/json-schema/ai/Hyperparameters.json +80 -0
  86. package/json-schema/ai/MessageContent.json +46 -0
  87. package/json-schema/ai/MessageContentType.json +16 -0
  88. package/json-schema/ai/MessagePruningEvent.json +92 -0
  89. package/json-schema/ai/MessageRole.json +16 -0
  90. package/json-schema/ai/ModelDrift.json +73 -0
  91. package/json-schema/ai/ModelFeature.json +71 -0
  92. package/json-schema/ai/PostProcessingAction.json +41 -0
  93. package/json-schema/ai/PredictionRequest.json +39 -0
  94. package/json-schema/ai/PredictionResult.json +82 -0
  95. package/json-schema/ai/PredictiveModel.json +445 -0
  96. package/json-schema/ai/PredictiveModelType.json +18 -0
  97. package/json-schema/ai/TokenBudgetConfig.json +92 -0
  98. package/json-schema/ai/TokenBudgetStrategy.json +16 -0
  99. package/json-schema/ai/TokenUsageStats.json +66 -0
  100. package/json-schema/ai/ToolCall.json +49 -0
  101. package/json-schema/ai/TrainingConfig.json +88 -0
  102. package/json-schema/ai/WorkflowFieldCondition.json +33 -0
  103. package/json-schema/ai/WorkflowSchedule.json +51 -0
  104. package/json-schema/data/CustomScriptAction.json +49 -0
  105. package/json-schema/{Field.json → data/Field.json} +50 -1
  106. package/json-schema/{FieldType.json → data/FieldType.json} +4 -1
  107. package/json-schema/data/HttpCallAction.json +81 -0
  108. package/json-schema/{Object.json → data/Object.json} +50 -1
  109. package/json-schema/data/PushNotificationAction.json +59 -0
  110. package/json-schema/data/SlackMessageAction.json +45 -0
  111. package/json-schema/data/SmsNotificationAction.json +50 -0
  112. package/json-schema/data/TaskCreationAction.json +59 -0
  113. package/json-schema/data/TeamsMessageAction.json +45 -0
  114. package/json-schema/data/WebhookTriggerAction.json +58 -0
  115. package/json-schema/data/WorkflowAction.json +465 -0
  116. package/json-schema/data/WorkflowRule.json +509 -0
  117. package/json-schema/system/AuditConfig.json +587 -0
  118. package/json-schema/system/AuditEvent.json +232 -0
  119. package/json-schema/system/AuditEventActor.json +48 -0
  120. package/json-schema/system/AuditEventChange.json +25 -0
  121. package/json-schema/system/AuditEventFilter.json +127 -0
  122. package/json-schema/system/AuditEventSeverity.json +19 -0
  123. package/json-schema/system/AuditEventTarget.json +33 -0
  124. package/json-schema/system/AuditEventType.json +53 -0
  125. package/json-schema/system/AuditRetentionPolicy.json +73 -0
  126. package/json-schema/system/AuditStorageConfig.json +60 -0
  127. package/json-schema/system/CronSchedule.json +29 -0
  128. package/json-schema/system/DatabaseLevelIsolationStrategy.json +139 -0
  129. package/json-schema/system/Event.json +52 -0
  130. package/json-schema/system/EventHandler.json +29 -0
  131. package/json-schema/system/EventMetadata.json +33 -0
  132. package/json-schema/system/EventPersistence.json +25 -0
  133. package/json-schema/system/EventRoute.json +27 -0
  134. package/json-schema/system/IntervalSchedule.json +25 -0
  135. package/json-schema/system/Job.json +127 -0
  136. package/json-schema/system/JobExecution.json +49 -0
  137. package/json-schema/system/JobExecutionStatus.json +15 -0
  138. package/json-schema/system/LevelIsolationStrategySchema.json +93 -0
  139. package/json-schema/system/OnceSchedule.json +25 -0
  140. package/json-schema/system/Presence.json +40 -0
  141. package/json-schema/system/PresenceStatus.json +14 -0
  142. package/json-schema/system/RealtimeAction.json +14 -0
  143. package/json-schema/system/RealtimeEvent.json +51 -0
  144. package/json-schema/system/RealtimeEventType.json +15 -0
  145. package/json-schema/system/RetryPolicy.json +30 -0
  146. package/json-schema/system/RowLevelIsolationStrategy.json +74 -0
  147. package/json-schema/system/Schedule.json +71 -0
  148. package/json-schema/system/Subscription.json +65 -0
  149. package/json-schema/system/SubscriptionEvent.json +32 -0
  150. package/json-schema/system/SuspiciousActivityRule.json +175 -0
  151. package/json-schema/system/Tenant.json +61 -0
  152. package/json-schema/system/TenantIsolationConfig.json +298 -0
  153. package/json-schema/system/TenantIsolationLevel.json +14 -0
  154. package/json-schema/system/TenantQuota.json +27 -0
  155. package/json-schema/system/TenantSecurityPolicy.json +115 -0
  156. package/json-schema/system/TransportProtocol.json +14 -0
  157. package/json-schema/{Action.json → ui/Action.json} +4 -1
  158. package/json-schema/{ActionParam.json → ui/ActionParam.json} +4 -1
  159. package/json-schema/{FieldWidgetProps.json → ui/FieldWidgetProps.json} +50 -1
  160. package/package.json +12 -12
  161. package/json-schema/AuthenticationConfig.json +0 -601
  162. package/json-schema/AuthenticationProvider.json +0 -617
  163. package/json-schema/MenuItem.json +0 -28
  164. package/json-schema/WorkflowAction.json +0 -84
  165. package/json-schema/WorkflowRule.json +0 -128
  166. /package/json-schema/{AIKnowledge.json → ai/AIKnowledge.json} +0 -0
  167. /package/json-schema/{AIModelConfig.json → ai/AIModelConfig.json} +0 -0
  168. /package/json-schema/{AITool.json → ai/AITool.json} +0 -0
  169. /package/json-schema/{Agent.json → ai/Agent.json} +0 -0
  170. /package/json-schema/{ChunkingStrategy.json → ai/ChunkingStrategy.json} +0 -0
  171. /package/json-schema/{DocumentChunk.json → ai/DocumentChunk.json} +0 -0
  172. /package/json-schema/{DocumentLoaderConfig.json → ai/DocumentLoaderConfig.json} +0 -0
  173. /package/json-schema/{DocumentMetadata.json → ai/DocumentMetadata.json} +0 -0
  174. /package/json-schema/{EmbeddingModel.json → ai/EmbeddingModel.json} +0 -0
  175. /package/json-schema/{Entity.json → ai/Entity.json} +0 -0
  176. /package/json-schema/{FieldSynonymConfig.json → ai/FieldSynonymConfig.json} +0 -0
  177. /package/json-schema/{ModelCapability.json → ai/ModelCapability.json} +0 -0
  178. /package/json-schema/{ModelConfig.json → ai/ModelConfig.json} +0 -0
  179. /package/json-schema/{ModelLimits.json → ai/ModelLimits.json} +0 -0
  180. /package/json-schema/{ModelPricing.json → ai/ModelPricing.json} +0 -0
  181. /package/json-schema/{ModelProvider.json → ai/ModelProvider.json} +0 -0
  182. /package/json-schema/{ModelRegistry.json → ai/ModelRegistry.json} +0 -0
  183. /package/json-schema/{ModelRegistryEntry.json → ai/ModelRegistryEntry.json} +0 -0
  184. /package/json-schema/{ModelSelectionCriteria.json → ai/ModelSelectionCriteria.json} +0 -0
  185. /package/json-schema/{NLQAnalytics.json → ai/NLQAnalytics.json} +0 -0
  186. /package/json-schema/{NLQFieldMapping.json → ai/NLQFieldMapping.json} +0 -0
  187. /package/json-schema/{NLQModelConfig.json → ai/NLQModelConfig.json} +0 -0
  188. /package/json-schema/{NLQParseResult.json → ai/NLQParseResult.json} +0 -0
  189. /package/json-schema/{NLQRequest.json → ai/NLQRequest.json} +0 -0
  190. /package/json-schema/{NLQResponse.json → ai/NLQResponse.json} +0 -0
  191. /package/json-schema/{NLQTrainingExample.json → ai/NLQTrainingExample.json} +0 -0
  192. /package/json-schema/{PromptTemplate.json → ai/PromptTemplate.json} +0 -0
  193. /package/json-schema/{PromptVariable.json → ai/PromptVariable.json} +0 -0
  194. /package/json-schema/{QueryContext.json → ai/QueryContext.json} +0 -0
  195. /package/json-schema/{QueryIntent.json → ai/QueryIntent.json} +0 -0
  196. /package/json-schema/{QueryTemplate.json → ai/QueryTemplate.json} +0 -0
  197. /package/json-schema/{RAGPipelineConfig.json → ai/RAGPipelineConfig.json} +0 -0
  198. /package/json-schema/{RAGPipelineStatus.json → ai/RAGPipelineStatus.json} +0 -0
  199. /package/json-schema/{RAGQueryRequest.json → ai/RAGQueryRequest.json} +0 -0
  200. /package/json-schema/{RAGQueryResponse.json → ai/RAGQueryResponse.json} +0 -0
  201. /package/json-schema/{RerankingConfig.json → ai/RerankingConfig.json} +0 -0
  202. /package/json-schema/{RetrievalStrategy.json → ai/RetrievalStrategy.json} +0 -0
  203. /package/json-schema/{Timeframe.json → ai/Timeframe.json} +0 -0
  204. /package/json-schema/{VectorStoreConfig.json → ai/VectorStoreConfig.json} +0 -0
  205. /package/json-schema/{VectorStoreProvider.json → ai/VectorStoreProvider.json} +0 -0
  206. /package/json-schema/{ApiError.json → api/ApiError.json} +0 -0
  207. /package/json-schema/{BaseResponse.json → api/BaseResponse.json} +0 -0
  208. /package/json-schema/{BulkRequest.json → api/BulkRequest.json} +0 -0
  209. /package/json-schema/{BulkResponse.json → api/BulkResponse.json} +0 -0
  210. /package/json-schema/{CreateRequest.json → api/CreateRequest.json} +0 -0
  211. /package/json-schema/{DeleteResponse.json → api/DeleteResponse.json} +0 -0
  212. /package/json-schema/{ExportRequest.json → api/ExportRequest.json} +0 -0
  213. /package/json-schema/{ListRecordResponse.json → api/ListRecordResponse.json} +0 -0
  214. /package/json-schema/{ModificationResult.json → api/ModificationResult.json} +0 -0
  215. /package/json-schema/{RecordData.json → api/RecordData.json} +0 -0
  216. /package/json-schema/{SingleRecordResponse.json → api/SingleRecordResponse.json} +0 -0
  217. /package/json-schema/{UpdateRequest.json → api/UpdateRequest.json} +0 -0
  218. /package/json-schema/{Address.json → data/Address.json} +0 -0
  219. /package/json-schema/{AggregationFunction.json → data/AggregationFunction.json} +0 -0
  220. /package/json-schema/{AggregationNode.json → data/AggregationNode.json} +0 -0
  221. /package/json-schema/{AsyncValidation.json → data/AsyncValidation.json} +0 -0
  222. /package/json-schema/{ComparisonOperator.json → data/ComparisonOperator.json} +0 -0
  223. /package/json-schema/{ConditionalValidation.json → data/ConditionalValidation.json} +0 -0
  224. /package/json-schema/{CrossFieldValidation.json → data/CrossFieldValidation.json} +0 -0
  225. /package/json-schema/{CustomValidator.json → data/CustomValidator.json} +0 -0
  226. /package/json-schema/{Dataset.json → data/Dataset.json} +0 -0
  227. /package/json-schema/{DatasetMode.json → data/DatasetMode.json} +0 -0
  228. /package/json-schema/{EmailAlertAction.json → data/EmailAlertAction.json} +0 -0
  229. /package/json-schema/{EqualityOperator.json → data/EqualityOperator.json} +0 -0
  230. /package/json-schema/{FieldMapping.json → data/FieldMapping.json} +0 -0
  231. /package/json-schema/{FieldNode.json → data/FieldNode.json} +0 -0
  232. /package/json-schema/{FieldOperators.json → data/FieldOperators.json} +0 -0
  233. /package/json-schema/{FieldPermission.json → data/FieldPermission.json} +0 -0
  234. /package/json-schema/{FieldUpdateAction.json → data/FieldUpdateAction.json} +0 -0
  235. /package/json-schema/{FilterCondition.json → data/FilterCondition.json} +0 -0
  236. /package/json-schema/{FilterNode.json → data/FilterNode.json} +0 -0
  237. /package/json-schema/{FilterOperator.json → data/FilterOperator.json} +0 -0
  238. /package/json-schema/{Flow.json → data/Flow.json} +0 -0
  239. /package/json-schema/{FlowEdge.json → data/FlowEdge.json} +0 -0
  240. /package/json-schema/{FlowNode.json → data/FlowNode.json} +0 -0
  241. /package/json-schema/{FlowNodeAction.json → data/FlowNodeAction.json} +0 -0
  242. /package/json-schema/{FlowVariable.json → data/FlowVariable.json} +0 -0
  243. /package/json-schema/{FormatValidation.json → data/FormatValidation.json} +0 -0
  244. /package/json-schema/{Index.json → data/Index.json} +0 -0
  245. /package/json-schema/{JoinNode.json → data/JoinNode.json} +0 -0
  246. /package/json-schema/{JoinType.json → data/JoinType.json} +0 -0
  247. /package/json-schema/{LocationCoordinates.json → data/LocationCoordinates.json} +0 -0
  248. /package/json-schema/{LogicOperator.json → data/LogicOperator.json} +0 -0
  249. /package/json-schema/{Mapping.json → data/Mapping.json} +0 -0
  250. /package/json-schema/{NormalizedFilter.json → data/NormalizedFilter.json} +0 -0
  251. /package/json-schema/{OWDModel.json → data/OWDModel.json} +0 -0
  252. /package/json-schema/{ObjectCapabilities.json → data/ObjectCapabilities.json} +0 -0
  253. /package/json-schema/{ObjectPermission.json → data/ObjectPermission.json} +0 -0
  254. /package/json-schema/{PermissionSet.json → data/PermissionSet.json} +0 -0
  255. /package/json-schema/{Query.json → data/Query.json} +0 -0
  256. /package/json-schema/{QueryFilter.json → data/QueryFilter.json} +0 -0
  257. /package/json-schema/{RangeOperator.json → data/RangeOperator.json} +0 -0
  258. /package/json-schema/{ScriptValidation.json → data/ScriptValidation.json} +0 -0
  259. /package/json-schema/{SelectOption.json → data/SelectOption.json} +0 -0
  260. /package/json-schema/{SetOperator.json → data/SetOperator.json} +0 -0
  261. /package/json-schema/{SharingLevel.json → data/SharingLevel.json} +0 -0
  262. /package/json-schema/{SharingRule.json → data/SharingRule.json} +0 -0
  263. /package/json-schema/{SharingRuleType.json → data/SharingRuleType.json} +0 -0
  264. /package/json-schema/{SortNode.json → data/SortNode.json} +0 -0
  265. /package/json-schema/{SpecialOperator.json → data/SpecialOperator.json} +0 -0
  266. /package/json-schema/{StateMachineValidation.json → data/StateMachineValidation.json} +0 -0
  267. /package/json-schema/{StringOperator.json → data/StringOperator.json} +0 -0
  268. /package/json-schema/{TransformType.json → data/TransformType.json} +0 -0
  269. /package/json-schema/{Trigger.json → data/Trigger.json} +0 -0
  270. /package/json-schema/{TriggerAction.json → data/TriggerAction.json} +0 -0
  271. /package/json-schema/{TriggerContext.json → data/TriggerContext.json} +0 -0
  272. /package/json-schema/{TriggerTiming.json → data/TriggerTiming.json} +0 -0
  273. /package/json-schema/{UniquenessValidation.json → data/UniquenessValidation.json} +0 -0
  274. /package/json-schema/{ValidationRule.json → data/ValidationRule.json} +0 -0
  275. /package/json-schema/{WindowFunction.json → data/WindowFunction.json} +0 -0
  276. /package/json-schema/{WindowFunctionNode.json → data/WindowFunctionNode.json} +0 -0
  277. /package/json-schema/{WindowSpec.json → data/WindowSpec.json} +0 -0
  278. /package/json-schema/{WorkflowTriggerType.json → data/WorkflowTriggerType.json} +0 -0
  279. /package/json-schema/{Account.json → system/Account.json} +0 -0
  280. /package/json-schema/{AccountLinkingConfig.json → system/AccountLinkingConfig.json} +0 -0
  281. /package/json-schema/{ApiCapabilities.json → system/ApiCapabilities.json} +0 -0
  282. /package/json-schema/{ApiEndpoint.json → system/ApiEndpoint.json} +0 -0
  283. /package/json-schema/{ApiMapping.json → system/ApiMapping.json} +0 -0
  284. /package/json-schema/{ApiRoutes.json → system/ApiRoutes.json} +0 -0
  285. /package/json-schema/{AuditPolicy.json → system/AuditPolicy.json} +0 -0
  286. /package/json-schema/{AuthConfig.json → system/AuthConfig.json} +0 -0
  287. /package/json-schema/{AuthPluginConfig.json → system/AuthPluginConfig.json} +0 -0
  288. /package/json-schema/{AuthStrategy.json → system/AuthStrategy.json} +0 -0
  289. /package/json-schema/{CSRFConfig.json → system/CSRFConfig.json} +0 -0
  290. /package/json-schema/{DatabaseAdapter.json → system/DatabaseAdapter.json} +0 -0
  291. /package/json-schema/{DatabaseMapping.json → system/DatabaseMapping.json} +0 -0
  292. /package/json-schema/{Datasource.json → system/Datasource.json} +0 -0
  293. /package/json-schema/{DatasourceCapabilities.json → system/DatasourceCapabilities.json} +0 -0
  294. /package/json-schema/{Discovery.json → system/Discovery.json} +0 -0
  295. /package/json-schema/{DriverCapabilities.json → system/DriverCapabilities.json} +0 -0
  296. /package/json-schema/{DriverDefinition.json → system/DriverDefinition.json} +0 -0
  297. /package/json-schema/{DriverInterface.json → system/DriverInterface.json} +0 -0
  298. /package/json-schema/{DriverOptions.json → system/DriverOptions.json} +0 -0
  299. /package/json-schema/{DriverType.json → system/DriverType.json} +0 -0
  300. /package/json-schema/{EmailPasswordConfig.json → system/EmailPasswordConfig.json} +0 -0
  301. /package/json-schema/{EnterpriseAuthConfig.json → system/EnterpriseAuthConfig.json} +0 -0
  302. /package/json-schema/{Feature.json → system/Feature.json} +0 -0
  303. /package/json-schema/{HttpMethod.json → system/HttpMethod.json} +0 -0
  304. /package/json-schema/{I18nContext.json → system/I18nContext.json} +0 -0
  305. /package/json-schema/{Invitation.json → system/Invitation.json} +0 -0
  306. /package/json-schema/{InvitationStatus.json → system/InvitationStatus.json} +0 -0
  307. /package/json-schema/{LDAPConfig.json → system/LDAPConfig.json} +0 -0
  308. /package/json-schema/{License.json → system/License.json} +0 -0
  309. /package/json-schema/{Locale.json → system/Locale.json} +0 -0
  310. /package/json-schema/{Logger.json → system/Logger.json} +0 -0
  311. /package/json-schema/{MagicLinkConfig.json → system/MagicLinkConfig.json} +0 -0
  312. /package/json-schema/{Manifest.json → system/Manifest.json} +0 -0
  313. /package/json-schema/{Member.json → system/Member.json} +0 -0
  314. /package/json-schema/{MetricType.json → system/MetricType.json} +0 -0
  315. /package/json-schema/{NetworkPolicy.json → system/NetworkPolicy.json} +0 -0
  316. /package/json-schema/{OAuthProvider.json → system/OAuthProvider.json} +0 -0
  317. /package/json-schema/{OIDCConfig.json → system/OIDCConfig.json} +0 -0
  318. /package/json-schema/{ObjectQLClient.json → system/ObjectQLClient.json} +0 -0
  319. /package/json-schema/{Organization.json → system/Organization.json} +0 -0
  320. /package/json-schema/{PasskeyConfig.json → system/PasskeyConfig.json} +0 -0
  321. /package/json-schema/{PasswordPolicy.json → system/PasswordPolicy.json} +0 -0
  322. /package/json-schema/{Plan.json → system/Plan.json} +0 -0
  323. /package/json-schema/{Plugin.json → system/Plugin.json} +0 -0
  324. /package/json-schema/{PluginContext.json → system/PluginContext.json} +0 -0
  325. /package/json-schema/{PluginLifecycle.json → system/PluginLifecycle.json} +0 -0
  326. /package/json-schema/{Policy.json → system/Policy.json} +0 -0
  327. /package/json-schema/{RateLimit.json → system/RateLimit.json} +0 -0
  328. /package/json-schema/{RateLimitConfig.json → system/RateLimitConfig.json} +0 -0
  329. /package/json-schema/{Role.json → system/Role.json} +0 -0
  330. /package/json-schema/{Router.json → system/Router.json} +0 -0
  331. /package/json-schema/{SAMLConfig.json → system/SAMLConfig.json} +0 -0
  332. /package/json-schema/{Scheduler.json → system/Scheduler.json} +0 -0
  333. /package/json-schema/{ScopedStorage.json → system/ScopedStorage.json} +0 -0
  334. /package/json-schema/{Session.json → system/Session.json} +0 -0
  335. /package/json-schema/{SessionConfig.json → system/SessionConfig.json} +0 -0
  336. /package/json-schema/{SessionPolicy.json → system/SessionPolicy.json} +0 -0
  337. /package/json-schema/{StandardAuthProvider.json → system/StandardAuthProvider.json} +0 -0
  338. /package/json-schema/{SystemAPI.json → system/SystemAPI.json} +0 -0
  339. /package/json-schema/{Territory.json → system/Territory.json} +0 -0
  340. /package/json-schema/{TerritoryModel.json → system/TerritoryModel.json} +0 -0
  341. /package/json-schema/{TerritoryType.json → system/TerritoryType.json} +0 -0
  342. /package/json-schema/{TranslationBundle.json → system/TranslationBundle.json} +0 -0
  343. /package/json-schema/{TranslationData.json → system/TranslationData.json} +0 -0
  344. /package/json-schema/{TwoFactorConfig.json → system/TwoFactorConfig.json} +0 -0
  345. /package/json-schema/{User.json → system/User.json} +0 -0
  346. /package/json-schema/{UserFieldMapping.json → system/UserFieldMapping.json} +0 -0
  347. /package/json-schema/{VerificationToken.json → system/VerificationToken.json} +0 -0
  348. /package/json-schema/{Webhook.json → system/Webhook.json} +0 -0
  349. /package/json-schema/{WebhookReceiver.json → system/WebhookReceiver.json} +0 -0
  350. /package/json-schema/{WebhookTriggerType.json → system/WebhookTriggerType.json} +0 -0
  351. /package/json-schema/{Animation.json → ui/Animation.json} +0 -0
  352. /package/json-schema/{App.json → ui/App.json} +0 -0
  353. /package/json-schema/{AppBranding.json → ui/AppBranding.json} +0 -0
  354. /package/json-schema/{BorderRadius.json → ui/BorderRadius.json} +0 -0
  355. /package/json-schema/{Breakpoints.json → ui/Breakpoints.json} +0 -0
  356. /package/json-schema/{CalendarConfig.json → ui/CalendarConfig.json} +0 -0
  357. /package/json-schema/{ChartType.json → ui/ChartType.json} +0 -0
  358. /package/json-schema/{ColorPalette.json → ui/ColorPalette.json} +0 -0
  359. /package/json-schema/{Dashboard.json → ui/Dashboard.json} +0 -0
  360. /package/json-schema/{DashboardNavItem.json → ui/DashboardNavItem.json} +0 -0
  361. /package/json-schema/{DashboardWidget.json → ui/DashboardWidget.json} +0 -0
  362. /package/json-schema/{FormSection.json → ui/FormSection.json} +0 -0
  363. /package/json-schema/{FormView.json → ui/FormView.json} +0 -0
  364. /package/json-schema/{GanttConfig.json → ui/GanttConfig.json} +0 -0
  365. /package/json-schema/{GroupNavItem.json → ui/GroupNavItem.json} +0 -0
  366. /package/json-schema/{KanbanConfig.json → ui/KanbanConfig.json} +0 -0
  367. /package/json-schema/{ListView.json → ui/ListView.json} +0 -0
  368. /package/json-schema/{NavigationItem.json → ui/NavigationItem.json} +0 -0
  369. /package/json-schema/{ObjectNavItem.json → ui/ObjectNavItem.json} +0 -0
  370. /package/json-schema/{Page.json → ui/Page.json} +0 -0
  371. /package/json-schema/{PageComponent.json → ui/PageComponent.json} +0 -0
  372. /package/json-schema/{PageNavItem.json → ui/PageNavItem.json} +0 -0
  373. /package/json-schema/{PageRegion.json → ui/PageRegion.json} +0 -0
  374. /package/json-schema/{Report.json → ui/Report.json} +0 -0
  375. /package/json-schema/{ReportChart.json → ui/ReportChart.json} +0 -0
  376. /package/json-schema/{ReportColumn.json → ui/ReportColumn.json} +0 -0
  377. /package/json-schema/{ReportGrouping.json → ui/ReportGrouping.json} +0 -0
  378. /package/json-schema/{ReportType.json → ui/ReportType.json} +0 -0
  379. /package/json-schema/{Shadow.json → ui/Shadow.json} +0 -0
  380. /package/json-schema/{Spacing.json → ui/Spacing.json} +0 -0
  381. /package/json-schema/{Theme.json → ui/Theme.json} +0 -0
  382. /package/json-schema/{ThemeMode.json → ui/ThemeMode.json} +0 -0
  383. /package/json-schema/{Typography.json → ui/Typography.json} +0 -0
  384. /package/json-schema/{UrlNavItem.json → ui/UrlNavItem.json} +0 -0
  385. /package/json-schema/{View.json → ui/View.json} +0 -0
  386. /package/json-schema/{ZIndex.json → ui/ZIndex.json} +0 -0
@@ -41,10 +41,261 @@ export declare const EmailAlertActionSchema: z.ZodObject<{
41
41
  template: string;
42
42
  recipients: string[];
43
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
+ recipients: string[];
60
+ provider: "twilio" | "vonage";
61
+ fromNumber?: string | undefined;
62
+ }, {
63
+ message: string;
64
+ type: "sms_notification";
65
+ name: string;
66
+ recipients: string[];
67
+ provider: "twilio" | "vonage";
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
+ url: string;
144
+ type: "http_call";
145
+ name: string;
146
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
147
+ timeout?: number | undefined;
148
+ headers?: Record<string, string> | undefined;
149
+ body?: any;
150
+ authentication?: {
151
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
152
+ credentials?: Record<string, string> | undefined;
153
+ } | undefined;
154
+ }, {
155
+ url: string;
156
+ type: "http_call";
157
+ name: string;
158
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
159
+ timeout?: number | undefined;
160
+ headers?: Record<string, string> | 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
+ url: string;
181
+ type: "webhook_trigger";
182
+ name: string;
183
+ method: "POST" | "PUT";
184
+ retryOnFailure: boolean;
185
+ maxRetries: number;
186
+ headers?: Record<string, string> | undefined;
187
+ payload?: any;
188
+ }, {
189
+ url: string;
190
+ type: "webhook_trigger";
191
+ name: string;
192
+ method?: "POST" | "PUT" | undefined;
193
+ headers?: Record<string, string> | undefined;
194
+ payload?: any;
195
+ retryOnFailure?: boolean | undefined;
196
+ maxRetries?: number | 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
+ assignedTo?: string | undefined;
219
+ dueDate?: string | undefined;
220
+ priority?: 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
+ assignedTo?: string | undefined;
230
+ dueDate?: string | undefined;
231
+ priority?: 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
+ recipients: string[];
252
+ body: string;
253
+ title: 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
+ recipients: string[];
262
+ body: string;
263
+ title: 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
+ }>;
44
294
  /**
45
295
  * Generic Workflow Action Wrapper
296
+ * Supports 10 action types for comprehensive automation
46
297
  */
47
- export declare const WorkflowActionSchema: z.ZodUnion<[z.ZodObject<{
298
+ export declare const WorkflowActionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
48
299
  name: z.ZodString;
49
300
  type: z.ZodLiteral<"field_update">;
50
301
  field: z.ZodString;
@@ -76,16 +327,220 @@ export declare const WorkflowActionSchema: z.ZodUnion<[z.ZodObject<{
76
327
  recipients: string[];
77
328
  }>, z.ZodObject<{
78
329
  name: z.ZodString;
79
- type: z.ZodString;
80
- options: z.ZodAny;
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
+ recipients: string[];
340
+ provider: "twilio" | "vonage";
341
+ fromNumber?: string | undefined;
342
+ }, {
343
+ message: string;
344
+ type: "sms_notification";
345
+ name: string;
346
+ recipients: string[];
347
+ provider: "twilio" | "vonage";
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
+ url: string;
411
+ type: "http_call";
412
+ name: string;
413
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
414
+ timeout?: number | undefined;
415
+ headers?: Record<string, string> | undefined;
416
+ body?: any;
417
+ authentication?: {
418
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
419
+ credentials?: Record<string, string> | undefined;
420
+ } | undefined;
421
+ }, {
422
+ url: string;
423
+ type: "http_call";
424
+ name: string;
425
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
426
+ timeout?: number | undefined;
427
+ headers?: Record<string, string> | 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
+ url: string;
444
+ type: "webhook_trigger";
445
+ name: string;
446
+ method: "POST" | "PUT";
447
+ retryOnFailure: boolean;
448
+ maxRetries: number;
449
+ headers?: Record<string, string> | undefined;
450
+ payload?: any;
451
+ }, {
452
+ url: string;
453
+ type: "webhook_trigger";
454
+ name: string;
455
+ method?: "POST" | "PUT" | undefined;
456
+ headers?: Record<string, string> | undefined;
457
+ payload?: any;
458
+ retryOnFailure?: boolean | undefined;
459
+ maxRetries?: number | 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
+ assignedTo?: string | undefined;
478
+ dueDate?: string | undefined;
479
+ priority?: 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
+ assignedTo?: string | undefined;
489
+ dueDate?: string | undefined;
490
+ priority?: 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
+ recipients: string[];
507
+ body: string;
508
+ title: 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
+ recipients: string[];
517
+ body: string;
518
+ title: 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>>;
81
530
  }, "strip", z.ZodTypeAny, {
82
- type: string;
531
+ code: string;
532
+ type: "custom_script";
83
533
  name: string;
84
- options?: any;
534
+ language: "javascript" | "typescript" | "python";
535
+ timeout: number;
536
+ context?: Record<string, any> | undefined;
85
537
  }, {
86
- type: string;
538
+ code: string;
539
+ type: "custom_script";
87
540
  name: string;
88
- options?: any;
541
+ language?: "javascript" | "typescript" | "python" | undefined;
542
+ timeout?: number | undefined;
543
+ context?: Record<string, any> | undefined;
89
544
  }>]>;
90
545
  /**
91
546
  * Schema for Workflow Rules (Automation)
@@ -103,7 +558,7 @@ export declare const WorkflowRuleSchema: z.ZodObject<{
103
558
  */
104
559
  criteria: z.ZodOptional<z.ZodString>;
105
560
  /** Actions to execute immediately */
106
- actions: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
561
+ actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
107
562
  name: z.ZodString;
108
563
  type: z.ZodLiteral<"field_update">;
109
564
  field: z.ZodString;
@@ -135,16 +590,220 @@ export declare const WorkflowRuleSchema: z.ZodObject<{
135
590
  recipients: string[];
136
591
  }>, z.ZodObject<{
137
592
  name: z.ZodString;
138
- type: z.ZodString;
139
- options: z.ZodAny;
593
+ type: z.ZodLiteral<"sms_notification">;
594
+ provider: z.ZodEnum<["twilio", "vonage"]>;
595
+ recipients: z.ZodArray<z.ZodString, "many">;
596
+ message: z.ZodString;
597
+ fromNumber: z.ZodOptional<z.ZodString>;
140
598
  }, "strip", z.ZodTypeAny, {
141
- type: string;
599
+ message: string;
600
+ type: "sms_notification";
142
601
  name: string;
143
- options?: any;
602
+ recipients: string[];
603
+ provider: "twilio" | "vonage";
604
+ fromNumber?: string | undefined;
144
605
  }, {
145
- type: string;
606
+ message: string;
607
+ type: "sms_notification";
146
608
  name: string;
147
- options?: any;
609
+ recipients: string[];
610
+ provider: "twilio" | "vonage";
611
+ fromNumber?: string | undefined;
612
+ }>, z.ZodObject<{
613
+ name: z.ZodString;
614
+ type: z.ZodLiteral<"slack_message">;
615
+ channel: z.ZodString;
616
+ message: z.ZodString;
617
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
618
+ threadId: z.ZodOptional<z.ZodString>;
619
+ }, "strip", z.ZodTypeAny, {
620
+ message: string;
621
+ type: "slack_message";
622
+ name: string;
623
+ channel: string;
624
+ mentions?: string[] | undefined;
625
+ threadId?: string | undefined;
626
+ }, {
627
+ message: string;
628
+ type: "slack_message";
629
+ name: string;
630
+ channel: string;
631
+ mentions?: string[] | undefined;
632
+ threadId?: string | undefined;
633
+ }>, z.ZodObject<{
634
+ name: z.ZodString;
635
+ type: z.ZodLiteral<"teams_message">;
636
+ channel: z.ZodString;
637
+ message: z.ZodString;
638
+ mentions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
639
+ teamId: z.ZodOptional<z.ZodString>;
640
+ }, "strip", z.ZodTypeAny, {
641
+ message: string;
642
+ type: "teams_message";
643
+ name: string;
644
+ channel: string;
645
+ mentions?: string[] | undefined;
646
+ teamId?: string | undefined;
647
+ }, {
648
+ message: string;
649
+ type: "teams_message";
650
+ name: string;
651
+ channel: string;
652
+ mentions?: string[] | undefined;
653
+ teamId?: string | undefined;
654
+ }>, z.ZodObject<{
655
+ name: z.ZodString;
656
+ type: z.ZodLiteral<"http_call">;
657
+ url: z.ZodString;
658
+ method: z.ZodEnum<["GET", "POST", "PUT", "PATCH", "DELETE"]>;
659
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
660
+ body: z.ZodOptional<z.ZodAny>;
661
+ authentication: z.ZodOptional<z.ZodObject<{
662
+ type: z.ZodEnum<["none", "basic", "bearer", "api_key", "oauth2"]>;
663
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
664
+ }, "strip", z.ZodTypeAny, {
665
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
666
+ credentials?: Record<string, string> | undefined;
667
+ }, {
668
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
669
+ credentials?: Record<string, string> | undefined;
670
+ }>>;
671
+ timeout: z.ZodOptional<z.ZodNumber>;
672
+ }, "strip", z.ZodTypeAny, {
673
+ url: string;
674
+ type: "http_call";
675
+ name: string;
676
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
677
+ timeout?: number | undefined;
678
+ headers?: Record<string, string> | undefined;
679
+ body?: any;
680
+ authentication?: {
681
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
682
+ credentials?: Record<string, string> | undefined;
683
+ } | undefined;
684
+ }, {
685
+ url: string;
686
+ type: "http_call";
687
+ name: string;
688
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
689
+ timeout?: number | undefined;
690
+ headers?: Record<string, string> | undefined;
691
+ body?: any;
692
+ authentication?: {
693
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
694
+ credentials?: Record<string, string> | undefined;
695
+ } | undefined;
696
+ }>, z.ZodObject<{
697
+ name: z.ZodString;
698
+ type: z.ZodLiteral<"webhook_trigger">;
699
+ url: z.ZodString;
700
+ method: z.ZodDefault<z.ZodEnum<["POST", "PUT"]>>;
701
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
702
+ payload: z.ZodOptional<z.ZodAny>;
703
+ retryOnFailure: z.ZodDefault<z.ZodBoolean>;
704
+ maxRetries: z.ZodDefault<z.ZodNumber>;
705
+ }, "strip", z.ZodTypeAny, {
706
+ url: string;
707
+ type: "webhook_trigger";
708
+ name: string;
709
+ method: "POST" | "PUT";
710
+ retryOnFailure: boolean;
711
+ maxRetries: number;
712
+ headers?: Record<string, string> | undefined;
713
+ payload?: any;
714
+ }, {
715
+ url: string;
716
+ type: "webhook_trigger";
717
+ name: string;
718
+ method?: "POST" | "PUT" | undefined;
719
+ headers?: Record<string, string> | undefined;
720
+ payload?: any;
721
+ retryOnFailure?: boolean | undefined;
722
+ maxRetries?: number | undefined;
723
+ }>, z.ZodObject<{
724
+ name: z.ZodString;
725
+ type: z.ZodLiteral<"task_creation">;
726
+ taskObject: z.ZodString;
727
+ subject: z.ZodString;
728
+ description: z.ZodOptional<z.ZodString>;
729
+ assignedTo: z.ZodOptional<z.ZodString>;
730
+ dueDate: z.ZodOptional<z.ZodString>;
731
+ priority: z.ZodOptional<z.ZodString>;
732
+ relatedTo: z.ZodOptional<z.ZodString>;
733
+ additionalFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
734
+ }, "strip", z.ZodTypeAny, {
735
+ type: "task_creation";
736
+ name: string;
737
+ taskObject: string;
738
+ subject: string;
739
+ description?: string | undefined;
740
+ assignedTo?: string | undefined;
741
+ dueDate?: string | undefined;
742
+ priority?: string | undefined;
743
+ relatedTo?: string | undefined;
744
+ additionalFields?: Record<string, any> | undefined;
745
+ }, {
746
+ type: "task_creation";
747
+ name: string;
748
+ taskObject: string;
749
+ subject: string;
750
+ description?: string | undefined;
751
+ assignedTo?: string | undefined;
752
+ dueDate?: string | undefined;
753
+ priority?: string | undefined;
754
+ relatedTo?: string | undefined;
755
+ additionalFields?: Record<string, any> | undefined;
756
+ }>, z.ZodObject<{
757
+ name: z.ZodString;
758
+ type: z.ZodLiteral<"push_notification">;
759
+ title: z.ZodString;
760
+ body: z.ZodString;
761
+ recipients: z.ZodArray<z.ZodString, "many">;
762
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
763
+ badge: z.ZodOptional<z.ZodNumber>;
764
+ sound: z.ZodOptional<z.ZodString>;
765
+ clickAction: z.ZodOptional<z.ZodString>;
766
+ }, "strip", z.ZodTypeAny, {
767
+ type: "push_notification";
768
+ name: string;
769
+ recipients: string[];
770
+ body: string;
771
+ title: string;
772
+ data?: Record<string, any> | undefined;
773
+ badge?: number | undefined;
774
+ sound?: string | undefined;
775
+ clickAction?: string | undefined;
776
+ }, {
777
+ type: "push_notification";
778
+ name: string;
779
+ recipients: string[];
780
+ body: string;
781
+ title: string;
782
+ data?: Record<string, any> | undefined;
783
+ badge?: number | undefined;
784
+ sound?: string | undefined;
785
+ clickAction?: string | undefined;
786
+ }>, z.ZodObject<{
787
+ name: z.ZodString;
788
+ type: z.ZodLiteral<"custom_script">;
789
+ language: z.ZodDefault<z.ZodEnum<["javascript", "typescript", "python"]>>;
790
+ code: z.ZodString;
791
+ timeout: z.ZodDefault<z.ZodNumber>;
792
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
793
+ }, "strip", z.ZodTypeAny, {
794
+ code: string;
795
+ type: "custom_script";
796
+ name: string;
797
+ language: "javascript" | "typescript" | "python";
798
+ timeout: number;
799
+ context?: Record<string, any> | undefined;
800
+ }, {
801
+ code: string;
802
+ type: "custom_script";
803
+ name: string;
804
+ language?: "javascript" | "typescript" | "python" | undefined;
805
+ timeout?: number | undefined;
806
+ context?: Record<string, any> | undefined;
148
807
  }>]>, "many">>;
149
808
  /** Active status */
150
809
  active: z.ZodDefault<z.ZodBoolean>;
@@ -165,9 +824,75 @@ export declare const WorkflowRuleSchema: z.ZodObject<{
165
824
  template: string;
166
825
  recipients: string[];
167
826
  } | {
168
- type: string;
827
+ message: string;
828
+ type: "sms_notification";
829
+ name: string;
830
+ recipients: string[];
831
+ provider: "twilio" | "vonage";
832
+ fromNumber?: string | undefined;
833
+ } | {
834
+ message: string;
835
+ type: "slack_message";
836
+ name: string;
837
+ channel: string;
838
+ mentions?: string[] | undefined;
839
+ threadId?: string | undefined;
840
+ } | {
841
+ message: string;
842
+ type: "teams_message";
843
+ name: string;
844
+ channel: string;
845
+ mentions?: string[] | undefined;
846
+ teamId?: string | undefined;
847
+ } | {
848
+ url: string;
849
+ type: "http_call";
850
+ name: string;
851
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
852
+ timeout?: number | undefined;
853
+ headers?: Record<string, string> | undefined;
854
+ body?: any;
855
+ authentication?: {
856
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
857
+ credentials?: Record<string, string> | undefined;
858
+ } | undefined;
859
+ } | {
860
+ url: string;
861
+ type: "webhook_trigger";
862
+ name: string;
863
+ method: "POST" | "PUT";
864
+ retryOnFailure: boolean;
865
+ maxRetries: number;
866
+ headers?: Record<string, string> | undefined;
867
+ payload?: any;
868
+ } | {
869
+ type: "task_creation";
870
+ name: string;
871
+ taskObject: string;
872
+ subject: string;
873
+ description?: string | undefined;
874
+ assignedTo?: string | undefined;
875
+ dueDate?: string | undefined;
876
+ priority?: string | undefined;
877
+ relatedTo?: string | undefined;
878
+ additionalFields?: Record<string, any> | undefined;
879
+ } | {
880
+ type: "push_notification";
881
+ name: string;
882
+ recipients: string[];
883
+ body: string;
884
+ title: string;
885
+ data?: Record<string, any> | undefined;
886
+ badge?: number | undefined;
887
+ sound?: string | undefined;
888
+ clickAction?: string | undefined;
889
+ } | {
890
+ code: string;
891
+ type: "custom_script";
169
892
  name: string;
170
- options?: any;
893
+ language: "javascript" | "typescript" | "python";
894
+ timeout: number;
895
+ context?: Record<string, any> | undefined;
171
896
  })[] | undefined;
172
897
  }, {
173
898
  name: string;
@@ -186,9 +911,75 @@ export declare const WorkflowRuleSchema: z.ZodObject<{
186
911
  template: string;
187
912
  recipients: string[];
188
913
  } | {
189
- type: string;
914
+ message: string;
915
+ type: "sms_notification";
916
+ name: string;
917
+ recipients: string[];
918
+ provider: "twilio" | "vonage";
919
+ fromNumber?: string | undefined;
920
+ } | {
921
+ message: string;
922
+ type: "slack_message";
923
+ name: string;
924
+ channel: string;
925
+ mentions?: string[] | undefined;
926
+ threadId?: string | undefined;
927
+ } | {
928
+ message: string;
929
+ type: "teams_message";
930
+ name: string;
931
+ channel: string;
932
+ mentions?: string[] | undefined;
933
+ teamId?: string | undefined;
934
+ } | {
935
+ url: string;
936
+ type: "http_call";
937
+ name: string;
938
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
939
+ timeout?: number | undefined;
940
+ headers?: Record<string, string> | undefined;
941
+ body?: any;
942
+ authentication?: {
943
+ type: "none" | "basic" | "bearer" | "api_key" | "oauth2";
944
+ credentials?: Record<string, string> | undefined;
945
+ } | undefined;
946
+ } | {
947
+ url: string;
948
+ type: "webhook_trigger";
949
+ name: string;
950
+ method?: "POST" | "PUT" | undefined;
951
+ headers?: Record<string, string> | undefined;
952
+ payload?: any;
953
+ retryOnFailure?: boolean | undefined;
954
+ maxRetries?: number | undefined;
955
+ } | {
956
+ type: "task_creation";
957
+ name: string;
958
+ taskObject: string;
959
+ subject: string;
960
+ description?: string | undefined;
961
+ assignedTo?: string | undefined;
962
+ dueDate?: string | undefined;
963
+ priority?: string | undefined;
964
+ relatedTo?: string | undefined;
965
+ additionalFields?: Record<string, any> | undefined;
966
+ } | {
967
+ type: "push_notification";
968
+ name: string;
969
+ recipients: string[];
970
+ body: string;
971
+ title: string;
972
+ data?: Record<string, any> | undefined;
973
+ badge?: number | undefined;
974
+ sound?: string | undefined;
975
+ clickAction?: string | undefined;
976
+ } | {
977
+ code: string;
978
+ type: "custom_script";
190
979
  name: string;
191
- options?: any;
980
+ language?: "javascript" | "typescript" | "python" | undefined;
981
+ timeout?: number | undefined;
982
+ context?: Record<string, any> | undefined;
192
983
  })[] | undefined;
193
984
  }>;
194
985
  export type WorkflowRule = z.infer<typeof WorkflowRuleSchema>;