@objectstack/spec 0.3.2 → 0.3.3
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.
- package/README.md +32 -10
- package/dist/ai/agent.zod.d.ts +12 -12
- package/dist/ai/conversation.zod.d.ts +65 -65
- package/dist/ai/cost.zod.d.ts +125 -125
- package/dist/ai/index.d.ts +1 -1
- package/dist/ai/index.d.ts.map +1 -1
- package/dist/ai/index.js +1 -1
- package/dist/ai/model-registry.zod.d.ts +94 -94
- package/dist/ai/nlq.zod.d.ts +70 -70
- package/dist/ai/{workflow-automation.zod.d.ts → orchestration.zod.d.ts} +50 -49
- package/dist/ai/orchestration.zod.d.ts.map +1 -0
- package/dist/ai/{workflow-automation.zod.js → orchestration.zod.js} +26 -25
- package/dist/ai/predictive.zod.d.ts +31 -31
- package/dist/ai/rag-pipeline.zod.d.ts +86 -86
- package/dist/api/contract.zod.d.ts +121 -105
- package/dist/api/contract.zod.d.ts.map +1 -1
- package/dist/{system → api}/discovery.zod.d.ts +26 -26
- package/dist/api/discovery.zod.d.ts.map +1 -0
- package/dist/{system → api}/discovery.zod.js +9 -9
- package/dist/{system/api.zod.d.ts → api/endpoint.zod.d.ts} +53 -57
- package/dist/api/endpoint.zod.d.ts.map +1 -0
- package/dist/{system/api.zod.js → api/endpoint.zod.js} +3 -6
- package/dist/api/index.d.ts +4 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +4 -0
- package/dist/{system → api}/realtime.zod.d.ts +4 -4
- package/dist/api/realtime.zod.d.ts.map +1 -0
- package/dist/api/router.zod.d.ts +182 -0
- package/dist/api/router.zod.d.ts.map +1 -0
- package/dist/api/router.zod.js +103 -0
- package/dist/{system/auth.zod.d.ts → auth/config.zod.d.ts} +191 -191
- package/dist/auth/config.zod.d.ts.map +1 -0
- package/dist/{system → auth}/identity.zod.d.ts +8 -8
- package/dist/auth/identity.zod.d.ts.map +1 -0
- package/dist/auth/index.d.ts +7 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +22 -0
- package/dist/{system → auth}/organization.zod.d.ts +5 -5
- package/dist/auth/organization.zod.d.ts.map +1 -0
- package/dist/{system → auth}/policy.zod.d.ts +3 -3
- package/dist/auth/policy.zod.d.ts.map +1 -0
- package/dist/{system/auth-protocol.d.ts → auth/protocol.d.ts} +1 -1
- package/dist/auth/protocol.d.ts.map +1 -0
- package/dist/auth/role.zod.d.ts.map +1 -0
- package/dist/{data → automation}/flow.zod.d.ts +34 -16
- package/dist/automation/flow.zod.d.ts.map +1 -0
- package/dist/{data → automation}/flow.zod.js +6 -1
- package/dist/automation/index.d.ts +4 -0
- package/dist/automation/index.d.ts.map +1 -0
- package/dist/automation/index.js +19 -0
- package/dist/{system → automation}/webhook.zod.d.ts +2 -2
- package/dist/automation/webhook.zod.d.ts.map +1 -0
- package/dist/automation/workflow.zod.d.ts +2045 -0
- package/dist/automation/workflow.zod.d.ts.map +1 -0
- package/dist/{data → automation}/workflow.zod.js +24 -1
- package/dist/data/dataset.zod.d.ts +2 -2
- package/dist/data/field.zod.d.ts +443 -213
- package/dist/data/field.zod.d.ts.map +1 -1
- package/dist/data/field.zod.js +29 -1
- package/dist/data/filter.zod.d.ts +167 -30
- package/dist/data/filter.zod.d.ts.map +1 -1
- package/dist/data/filter.zod.js +25 -13
- package/dist/data/hook.zod.d.ts +191 -0
- package/dist/data/hook.zod.d.ts.map +1 -0
- package/dist/data/hook.zod.js +144 -0
- package/dist/data/index.d.ts +4 -17
- package/dist/data/index.d.ts.map +1 -1
- package/dist/data/index.js +4 -17
- package/dist/data/mapping.zod.d.ts +103 -91
- package/dist/data/mapping.zod.d.ts.map +1 -1
- package/dist/data/object.zod.d.ts +387 -127
- package/dist/data/object.zod.d.ts.map +1 -1
- package/dist/data/object.zod.js +87 -42
- package/dist/data/query.zod.d.ts +98 -169
- package/dist/data/query.zod.d.ts.map +1 -1
- package/dist/data/query.zod.js +42 -130
- package/dist/data/validation.zod.d.ts +166 -26
- package/dist/data/validation.zod.d.ts.map +1 -1
- package/dist/data/validation.zod.js +38 -16
- package/dist/{system → driver}/datasource.zod.d.ts +42 -8
- package/dist/driver/datasource.zod.d.ts.map +1 -0
- package/dist/{system → driver}/datasource.zod.js +17 -13
- package/dist/driver/driver.zod.d.ts +3392 -0
- package/dist/driver/driver.zod.d.ts.map +1 -0
- package/dist/{system → driver}/driver.zod.js +99 -0
- package/dist/driver/index.d.ts +5 -0
- package/dist/driver/index.d.ts.map +1 -0
- package/dist/driver/index.js +20 -0
- package/dist/driver/mongo.zod.d.ts +107 -0
- package/dist/driver/mongo.zod.d.ts.map +1 -0
- package/dist/driver/mongo.zod.js +80 -0
- package/dist/driver/postgres.zod.d.ts +134 -0
- package/dist/driver/postgres.zod.d.ts.map +1 -0
- package/dist/driver/postgres.zod.js +88 -0
- package/dist/hub/composer.zod.d.ts +2768 -0
- package/dist/hub/composer.zod.d.ts.map +1 -0
- package/dist/hub/composer.zod.js +111 -0
- package/dist/hub/index.d.ts +6 -0
- package/dist/hub/index.d.ts.map +1 -0
- package/dist/hub/index.js +22 -0
- package/dist/{system → hub}/license.zod.d.ts +11 -7
- package/dist/hub/license.zod.d.ts.map +1 -0
- package/dist/{system → hub}/license.zod.js +5 -3
- package/dist/hub/marketplace.zod.d.ts +191 -0
- package/dist/hub/marketplace.zod.d.ts.map +1 -0
- package/dist/hub/marketplace.zod.js +85 -0
- package/dist/hub/space.zod.d.ts +383 -0
- package/dist/hub/space.zod.d.ts.map +1 -0
- package/dist/hub/space.zod.js +103 -0
- package/dist/{system → hub}/tenant.zod.d.ts +73 -47
- package/dist/hub/tenant.zod.d.ts.map +1 -0
- package/dist/{system → hub}/tenant.zod.js +36 -10
- package/dist/index.d.ts +11 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -5
- package/dist/kernel/context.zod.d.ts +56 -0
- package/dist/kernel/context.zod.d.ts.map +1 -0
- package/dist/kernel/context.zod.js +43 -0
- package/dist/kernel/index.d.ts +12 -0
- package/dist/kernel/index.d.ts.map +1 -0
- package/dist/kernel/index.js +27 -0
- package/dist/kernel/logger.zod.d.ts +111 -0
- package/dist/kernel/logger.zod.d.ts.map +1 -0
- package/dist/kernel/logger.zod.js +75 -0
- package/dist/kernel/manifest.zod.d.ts +2153 -0
- package/dist/kernel/manifest.zod.d.ts.map +1 -0
- package/dist/{system → kernel}/manifest.zod.js +40 -0
- package/dist/{system → kernel}/plugin.zod.d.ts +598 -318
- package/dist/kernel/plugin.zod.d.ts.map +1 -0
- package/dist/{system → kernel}/plugin.zod.js +13 -0
- package/dist/kernel/scoped-storage.zod.d.ts +81 -0
- package/dist/kernel/scoped-storage.zod.d.ts.map +1 -0
- package/dist/kernel/scoped-storage.zod.js +66 -0
- package/dist/permission/index.d.ts +12 -0
- package/dist/permission/index.d.ts.map +1 -0
- package/dist/permission/index.js +27 -0
- package/dist/{data → permission}/permission.zod.d.ts +34 -3
- package/dist/permission/permission.zod.d.ts.map +1 -0
- package/dist/{data → permission}/permission.zod.js +10 -1
- package/dist/permission/sharing.zod.d.ts +146 -0
- package/dist/permission/sharing.zod.d.ts.map +1 -0
- package/dist/permission/sharing.zod.js +88 -0
- package/dist/permission/territory.zod.d.ts.map +1 -0
- package/dist/system/audit.zod.d.ts +52 -52
- package/dist/system/events.zod.d.ts +17 -17
- package/dist/system/index.d.ts +1 -20
- package/dist/system/index.d.ts.map +1 -1
- package/dist/system/index.js +3 -20
- package/dist/system/job.zod.d.ts +13 -13
- package/dist/ui/action.zod.d.ts +13 -13
- package/dist/ui/app.zod.d.ts +11 -11
- package/dist/ui/dashboard.zod.d.ts +12 -12
- package/dist/ui/page.zod.d.ts +2 -2
- package/dist/ui/report.zod.d.ts +7 -7
- package/dist/ui/theme.zod.d.ts +42 -42
- package/dist/ui/view.zod.d.ts +55 -55
- package/dist/ui/widget.zod.d.ts +61 -28
- package/dist/ui/widget.zod.d.ts.map +1 -1
- package/json-schema/ai/{AIWorkflowAutomation.json → AIOrchestration.json} +5 -5
- package/json-schema/ai/{AIWorkflowExecutionResult.json → AIOrchestrationExecutionResult.json} +2 -2
- package/json-schema/ai/{AIWorkflowTrigger.json → AIOrchestrationTrigger.json} +2 -2
- package/json-schema/ai/{BatchAIWorkflowExecution.json → BatchAIOrchestrationExecution.json} +3 -3
- package/json-schema/{system → api}/ApiEndpoint.json +3 -1
- package/json-schema/{system → api}/ApiRoutes.json +7 -7
- package/json-schema/{system → api}/Discovery.json +7 -7
- package/json-schema/api/ExportRequest.json +402 -438
- package/json-schema/{system → api}/HttpMethod.json +3 -1
- package/json-schema/api/RouteCategory.json +17 -0
- package/json-schema/api/RouteDefinition.json +77 -0
- package/json-schema/api/RouterConfig.json +117 -0
- package/json-schema/{data → automation}/Flow.json +31 -1
- package/json-schema/{data → automation}/FlowEdge.json +9 -0
- package/json-schema/{data/WorkflowRule.json → automation/TimeTrigger.json} +35 -25
- package/json-schema/automation/WorkflowRule.json +1031 -0
- package/json-schema/data/AggregationNode.json +23 -0
- package/json-schema/data/AsyncValidation.json +49 -2
- package/json-schema/data/ComparisonOperator.json +52 -0
- package/json-schema/data/ConditionalValidation.json +693 -46
- package/json-schema/data/CrossFieldValidation.json +33 -2
- package/json-schema/data/CurrencyConfig.json +35 -0
- package/json-schema/data/CurrencyValue.json +26 -0
- package/json-schema/data/CustomValidator.json +37 -10
- package/json-schema/data/Field.json +30 -0
- package/json-schema/data/FieldOperators.json +78 -0
- package/json-schema/data/FieldReference.json +19 -0
- package/json-schema/data/FormatValidation.json +33 -2
- package/json-schema/data/Hook.json +95 -0
- package/json-schema/data/HookContext.json +88 -0
- package/json-schema/data/HookEvent.json +29 -0
- package/json-schema/data/Index.json +10 -0
- package/json-schema/data/JSONValidation.json +85 -0
- package/json-schema/data/JoinNode.json +197 -213
- package/json-schema/data/{TriggerAction.json → JoinStrategy.json} +6 -5
- package/json-schema/data/NormalizedFilter.json +234 -0
- package/json-schema/data/Object.json +1580 -28
- package/json-schema/data/ObjectCapabilities.json +30 -12
- package/json-schema/data/Query.json +246 -262
- package/json-schema/data/RangeOperator.json +26 -0
- package/json-schema/data/ScriptValidation.json +33 -2
- package/json-schema/data/SearchConfig.json +36 -0
- package/json-schema/data/StateMachineValidation.json +33 -2
- package/json-schema/data/UniquenessValidation.json +33 -2
- package/json-schema/data/ValidationRule.json +693 -46
- package/json-schema/{system → driver}/Datasource.json +35 -0
- package/json-schema/{system → driver}/DriverCapabilities.json +10 -0
- package/json-schema/{system → driver}/DriverInterface.json +10 -0
- package/json-schema/{system → driver}/DriverOptions.json +11 -0
- package/json-schema/driver/MongoConfig.json +82 -0
- package/json-schema/driver/PostgresConfig.json +98 -0
- package/json-schema/hub/BillOfMaterials.json +70 -0
- package/json-schema/hub/ComposerRequest.json +86 -0
- package/json-schema/hub/ComposerResponse.json +2645 -0
- package/json-schema/hub/ConflictReport.json +53 -0
- package/json-schema/hub/DependencyRequirement.json +36 -0
- package/json-schema/hub/DeploymentTarget.json +38 -0
- package/json-schema/hub/HubSpace.json +279 -0
- package/json-schema/{system → hub}/License.json +11 -3
- package/json-schema/hub/MarketplacePlugin.json +141 -0
- package/json-schema/hub/PluginAuthor.json +26 -0
- package/json-schema/hub/PluginPricing.json +43 -0
- package/json-schema/hub/SpaceSubscription.json +77 -0
- package/json-schema/hub/SubscriptionStatus.json +16 -0
- package/json-schema/{system → hub}/Tenant.json +3 -5
- package/json-schema/kernel/FileMetadata.json +43 -0
- package/json-schema/kernel/KernelContext.json +62 -0
- package/json-schema/kernel/LogEntry.json +63 -0
- package/json-schema/kernel/LogFormat.json +15 -0
- package/json-schema/kernel/LogLevel.json +17 -0
- package/json-schema/kernel/LoggerConfig.json +70 -0
- package/json-schema/kernel/Manifest.json +2557 -0
- package/json-schema/{system → kernel}/PluginContext.json +8 -1
- package/json-schema/kernel/RuntimeMode.json +16 -0
- package/json-schema/kernel/ScopedStorageConfig.json +54 -0
- package/json-schema/kernel/StorageAdapterType.json +17 -0
- package/json-schema/kernel/StorageScope.json +18 -0
- package/json-schema/permission/CriteriaSharingRule.json +82 -0
- package/json-schema/{data → permission}/OWDModel.json +2 -1
- package/json-schema/{data → permission}/ObjectPermission.json +15 -0
- package/json-schema/permission/OwnerSharingRule.json +102 -0
- package/json-schema/{data → permission}/PermissionSet.json +15 -0
- package/json-schema/permission/ShareRecipientType.json +16 -0
- package/json-schema/{data → permission}/SharingLevel.json +2 -1
- package/json-schema/permission/SharingRule.json +182 -0
- package/json-schema/{data → permission}/SharingRuleType.json +1 -3
- package/json-schema/ui/FieldWidgetProps.json +30 -0
- package/llms.txt +182 -0
- package/package.json +38 -16
- package/prompts/README.md +18 -0
- package/prompts/architecture.md +81 -0
- package/prompts/implement-objectai.md +39 -0
- package/prompts/implement-objectos.md +48 -0
- package/prompts/implement-objectql.md +39 -0
- package/prompts/implement-objectui.md +46 -0
- package/prompts/instructions.md +91 -0
- package/dist/ai/workflow-automation.zod.d.ts.map +0 -1
- package/dist/data/flow.zod.d.ts.map +0 -1
- package/dist/data/permission.zod.d.ts.map +0 -1
- package/dist/data/sharing.zod.d.ts +0 -63
- package/dist/data/sharing.zod.d.ts.map +0 -1
- package/dist/data/sharing.zod.js +0 -57
- package/dist/data/trigger.zod.d.ts +0 -354
- package/dist/data/trigger.zod.d.ts.map +0 -1
- package/dist/data/trigger.zod.js +0 -195
- package/dist/data/workflow.zod.d.ts +0 -986
- package/dist/data/workflow.zod.d.ts.map +0 -1
- package/dist/system/api.zod.d.ts.map +0 -1
- package/dist/system/auth-protocol.d.ts.map +0 -1
- package/dist/system/auth.zod.d.ts.map +0 -1
- package/dist/system/datasource.zod.d.ts.map +0 -1
- package/dist/system/discovery.zod.d.ts.map +0 -1
- package/dist/system/driver.zod.d.ts +0 -1631
- package/dist/system/driver.zod.d.ts.map +0 -1
- package/dist/system/identity.zod.d.ts.map +0 -1
- package/dist/system/license.zod.d.ts.map +0 -1
- package/dist/system/manifest.zod.d.ts +0 -397
- package/dist/system/manifest.zod.d.ts.map +0 -1
- package/dist/system/organization.zod.d.ts.map +0 -1
- package/dist/system/plugin.zod.d.ts.map +0 -1
- package/dist/system/policy.zod.d.ts.map +0 -1
- package/dist/system/realtime.zod.d.ts.map +0 -1
- package/dist/system/role.zod.d.ts.map +0 -1
- package/dist/system/tenant.zod.d.ts.map +0 -1
- package/dist/system/territory.zod.d.ts.map +0 -1
- package/dist/system/webhook.zod.d.ts.map +0 -1
- package/json-schema/README.md +0 -127
- package/json-schema/data/FieldMapping.json +0 -83
- package/json-schema/data/FilterNode.json +0 -52
- package/json-schema/data/FilterOperator.json +0 -26
- package/json-schema/data/LogicOperator.json +0 -14
- package/json-schema/data/Mapping.json +0 -598
- package/json-schema/data/SharingRule.json +0 -58
- package/json-schema/data/TransformType.json +0 -18
- package/json-schema/data/Trigger.json +0 -73
- package/json-schema/data/TriggerContext.json +0 -61
- package/json-schema/data/TriggerTiming.json +0 -13
- package/json-schema/system/Manifest.json +0 -315
- /package/dist/{system → api}/realtime.zod.js +0 -0
- /package/dist/{system/auth.zod.js → auth/config.zod.js} +0 -0
- /package/dist/{system → auth}/identity.zod.js +0 -0
- /package/dist/{system → auth}/organization.zod.js +0 -0
- /package/dist/{system → auth}/policy.zod.js +0 -0
- /package/dist/{system/auth-protocol.js → auth/protocol.js} +0 -0
- /package/dist/{system → auth}/role.zod.d.ts +0 -0
- /package/dist/{system → auth}/role.zod.js +0 -0
- /package/dist/{system → automation}/webhook.zod.js +0 -0
- /package/dist/{system → permission}/territory.zod.d.ts +0 -0
- /package/dist/{system → permission}/territory.zod.js +0 -0
- /package/json-schema/{system → api}/ApiCapabilities.json +0 -0
- /package/json-schema/{system → api}/ApiMapping.json +0 -0
- /package/json-schema/{system → api}/Presence.json +0 -0
- /package/json-schema/{system → api}/PresenceStatus.json +0 -0
- /package/json-schema/{system → api}/RateLimit.json +0 -0
- /package/json-schema/{system → api}/RealtimeAction.json +0 -0
- /package/json-schema/{system → api}/RealtimeEvent.json +0 -0
- /package/json-schema/{system → api}/RealtimeEventType.json +0 -0
- /package/json-schema/{system → api}/Subscription.json +0 -0
- /package/json-schema/{system → api}/SubscriptionEvent.json +0 -0
- /package/json-schema/{system → api}/TransportProtocol.json +0 -0
- /package/json-schema/{system → auth}/Account.json +0 -0
- /package/json-schema/{system → auth}/AccountLinkingConfig.json +0 -0
- /package/json-schema/{system → auth}/AuditPolicy.json +0 -0
- /package/json-schema/{system → auth}/AuthConfig.json +0 -0
- /package/json-schema/{system → auth}/AuthPluginConfig.json +0 -0
- /package/json-schema/{system → auth}/AuthStrategy.json +0 -0
- /package/json-schema/{system → auth}/CSRFConfig.json +0 -0
- /package/json-schema/{system → auth}/DatabaseAdapter.json +0 -0
- /package/json-schema/{system → auth}/DatabaseMapping.json +0 -0
- /package/json-schema/{system → auth}/EmailPasswordConfig.json +0 -0
- /package/json-schema/{system → auth}/EnterpriseAuthConfig.json +0 -0
- /package/json-schema/{system → auth}/Invitation.json +0 -0
- /package/json-schema/{system → auth}/InvitationStatus.json +0 -0
- /package/json-schema/{system → auth}/LDAPConfig.json +0 -0
- /package/json-schema/{system → auth}/MagicLinkConfig.json +0 -0
- /package/json-schema/{system → auth}/Member.json +0 -0
- /package/json-schema/{system → auth}/NetworkPolicy.json +0 -0
- /package/json-schema/{system → auth}/OAuthProvider.json +0 -0
- /package/json-schema/{system → auth}/OIDCConfig.json +0 -0
- /package/json-schema/{system → auth}/Organization.json +0 -0
- /package/json-schema/{system → auth}/PasskeyConfig.json +0 -0
- /package/json-schema/{system → auth}/PasswordPolicy.json +0 -0
- /package/json-schema/{system → auth}/Policy.json +0 -0
- /package/json-schema/{system → auth}/RateLimitConfig.json +0 -0
- /package/json-schema/{system → auth}/Role.json +0 -0
- /package/json-schema/{system → auth}/SAMLConfig.json +0 -0
- /package/json-schema/{system → auth}/Session.json +0 -0
- /package/json-schema/{system → auth}/SessionConfig.json +0 -0
- /package/json-schema/{system → auth}/SessionPolicy.json +0 -0
- /package/json-schema/{system → auth}/StandardAuthProvider.json +0 -0
- /package/json-schema/{system → auth}/TwoFactorConfig.json +0 -0
- /package/json-schema/{system → auth}/User.json +0 -0
- /package/json-schema/{system → auth}/UserFieldMapping.json +0 -0
- /package/json-schema/{system → auth}/VerificationToken.json +0 -0
- /package/json-schema/{data → automation}/CustomScriptAction.json +0 -0
- /package/json-schema/{data → automation}/EmailAlertAction.json +0 -0
- /package/json-schema/{data → automation}/FieldUpdateAction.json +0 -0
- /package/json-schema/{data → automation}/FlowNode.json +0 -0
- /package/json-schema/{data → automation}/FlowNodeAction.json +0 -0
- /package/json-schema/{data → automation}/FlowVariable.json +0 -0
- /package/json-schema/{data → automation}/HttpCallAction.json +0 -0
- /package/json-schema/{data → automation}/PushNotificationAction.json +0 -0
- /package/json-schema/{data → automation}/SlackMessageAction.json +0 -0
- /package/json-schema/{data → automation}/SmsNotificationAction.json +0 -0
- /package/json-schema/{data → automation}/TaskCreationAction.json +0 -0
- /package/json-schema/{data → automation}/TeamsMessageAction.json +0 -0
- /package/json-schema/{system → automation}/Webhook.json +0 -0
- /package/json-schema/{system → automation}/WebhookReceiver.json +0 -0
- /package/json-schema/{data → automation}/WebhookTriggerAction.json +0 -0
- /package/json-schema/{system → automation}/WebhookTriggerType.json +0 -0
- /package/json-schema/{data → automation}/WorkflowAction.json +0 -0
- /package/json-schema/{data → automation}/WorkflowTriggerType.json +0 -0
- /package/json-schema/{system → driver}/DatasourceCapabilities.json +0 -0
- /package/json-schema/{system → driver}/DriverDefinition.json +0 -0
- /package/json-schema/{system → driver}/DriverType.json +0 -0
- /package/json-schema/{system → hub}/DatabaseLevelIsolationStrategy.json +0 -0
- /package/json-schema/{system → hub}/Feature.json +0 -0
- /package/json-schema/{system → hub}/LevelIsolationStrategySchema.json +0 -0
- /package/json-schema/{system → hub}/MetricType.json +0 -0
- /package/json-schema/{system → hub}/Plan.json +0 -0
- /package/json-schema/{system → hub}/RowLevelIsolationStrategy.json +0 -0
- /package/json-schema/{system → hub}/TenantIsolationConfig.json +0 -0
- /package/json-schema/{system → hub}/TenantIsolationLevel.json +0 -0
- /package/json-schema/{system → hub}/TenantQuota.json +0 -0
- /package/json-schema/{system → hub}/TenantSecurityPolicy.json +0 -0
- /package/json-schema/{system → kernel}/I18nContext.json +0 -0
- /package/json-schema/{system → kernel}/Logger.json +0 -0
- /package/json-schema/{system → kernel}/ObjectQLClient.json +0 -0
- /package/json-schema/{system → kernel}/Plugin.json +0 -0
- /package/json-schema/{system → kernel}/PluginLifecycle.json +0 -0
- /package/json-schema/{system → kernel}/Router.json +0 -0
- /package/json-schema/{system → kernel}/Scheduler.json +0 -0
- /package/json-schema/{system → kernel}/ScopedStorage.json +0 -0
- /package/json-schema/{system → kernel}/SystemAPI.json +0 -0
- /package/json-schema/{data → permission}/FieldPermission.json +0 -0
- /package/json-schema/{system → permission}/Territory.json +0 -0
- /package/json-schema/{system → permission}/TerritoryModel.json +0 -0
- /package/json-schema/{system → permission}/TerritoryType.json +0 -0
|
@@ -1,986 +0,0 @@
|
|
|
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
|
-
name: string;
|
|
17
|
-
field: string;
|
|
18
|
-
value?: any;
|
|
19
|
-
}, {
|
|
20
|
-
type: "field_update";
|
|
21
|
-
name: string;
|
|
22
|
-
field: 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
|
-
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
|
-
}>;
|
|
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
|
-
name: string;
|
|
306
|
-
field: string;
|
|
307
|
-
value?: any;
|
|
308
|
-
}, {
|
|
309
|
-
type: "field_update";
|
|
310
|
-
name: string;
|
|
311
|
-
field: 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
|
-
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>>;
|
|
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
|
-
* Schema for Workflow Rules (Automation)
|
|
547
|
-
*/
|
|
548
|
-
export declare const WorkflowRuleSchema: z.ZodObject<{
|
|
549
|
-
/** Machine name */
|
|
550
|
-
name: z.ZodString;
|
|
551
|
-
/** Target Object */
|
|
552
|
-
objectName: z.ZodString;
|
|
553
|
-
/** When to evaluate the rule */
|
|
554
|
-
triggerType: z.ZodEnum<["on_create", "on_update", "on_create_or_update", "on_delete", "schedule"]>;
|
|
555
|
-
/**
|
|
556
|
-
* Condition to start the workflow.
|
|
557
|
-
* If empty, runs on every trigger event.
|
|
558
|
-
*/
|
|
559
|
-
criteria: z.ZodOptional<z.ZodString>;
|
|
560
|
-
/** Actions to execute immediately */
|
|
561
|
-
actions: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
562
|
-
name: z.ZodString;
|
|
563
|
-
type: z.ZodLiteral<"field_update">;
|
|
564
|
-
field: z.ZodString;
|
|
565
|
-
value: z.ZodAny;
|
|
566
|
-
}, "strip", z.ZodTypeAny, {
|
|
567
|
-
type: "field_update";
|
|
568
|
-
name: string;
|
|
569
|
-
field: string;
|
|
570
|
-
value?: any;
|
|
571
|
-
}, {
|
|
572
|
-
type: "field_update";
|
|
573
|
-
name: string;
|
|
574
|
-
field: string;
|
|
575
|
-
value?: any;
|
|
576
|
-
}>, z.ZodObject<{
|
|
577
|
-
name: z.ZodString;
|
|
578
|
-
type: z.ZodLiteral<"email_alert">;
|
|
579
|
-
template: z.ZodString;
|
|
580
|
-
recipients: z.ZodArray<z.ZodString, "many">;
|
|
581
|
-
}, "strip", z.ZodTypeAny, {
|
|
582
|
-
type: "email_alert";
|
|
583
|
-
name: string;
|
|
584
|
-
template: string;
|
|
585
|
-
recipients: string[];
|
|
586
|
-
}, {
|
|
587
|
-
type: "email_alert";
|
|
588
|
-
name: string;
|
|
589
|
-
template: string;
|
|
590
|
-
recipients: string[];
|
|
591
|
-
}>, z.ZodObject<{
|
|
592
|
-
name: z.ZodString;
|
|
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>;
|
|
598
|
-
}, "strip", z.ZodTypeAny, {
|
|
599
|
-
message: string;
|
|
600
|
-
type: "sms_notification";
|
|
601
|
-
name: string;
|
|
602
|
-
recipients: string[];
|
|
603
|
-
provider: "twilio" | "vonage";
|
|
604
|
-
fromNumber?: string | undefined;
|
|
605
|
-
}, {
|
|
606
|
-
message: string;
|
|
607
|
-
type: "sms_notification";
|
|
608
|
-
name: string;
|
|
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;
|
|
807
|
-
}>]>, "many">>;
|
|
808
|
-
/** Active status */
|
|
809
|
-
active: z.ZodDefault<z.ZodBoolean>;
|
|
810
|
-
}, "strip", z.ZodTypeAny, {
|
|
811
|
-
name: string;
|
|
812
|
-
active: boolean;
|
|
813
|
-
objectName: string;
|
|
814
|
-
triggerType: "on_create" | "on_update" | "on_create_or_update" | "on_delete" | "schedule";
|
|
815
|
-
criteria?: string | undefined;
|
|
816
|
-
actions?: ({
|
|
817
|
-
type: "field_update";
|
|
818
|
-
name: string;
|
|
819
|
-
field: string;
|
|
820
|
-
value?: any;
|
|
821
|
-
} | {
|
|
822
|
-
type: "email_alert";
|
|
823
|
-
name: string;
|
|
824
|
-
template: string;
|
|
825
|
-
recipients: string[];
|
|
826
|
-
} | {
|
|
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";
|
|
892
|
-
name: string;
|
|
893
|
-
language: "javascript" | "typescript" | "python";
|
|
894
|
-
timeout: number;
|
|
895
|
-
context?: Record<string, any> | undefined;
|
|
896
|
-
})[] | undefined;
|
|
897
|
-
}, {
|
|
898
|
-
name: string;
|
|
899
|
-
objectName: string;
|
|
900
|
-
triggerType: "on_create" | "on_update" | "on_create_or_update" | "on_delete" | "schedule";
|
|
901
|
-
active?: boolean | undefined;
|
|
902
|
-
criteria?: string | undefined;
|
|
903
|
-
actions?: ({
|
|
904
|
-
type: "field_update";
|
|
905
|
-
name: string;
|
|
906
|
-
field: string;
|
|
907
|
-
value?: any;
|
|
908
|
-
} | {
|
|
909
|
-
type: "email_alert";
|
|
910
|
-
name: string;
|
|
911
|
-
template: string;
|
|
912
|
-
recipients: string[];
|
|
913
|
-
} | {
|
|
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";
|
|
979
|
-
name: string;
|
|
980
|
-
language?: "javascript" | "typescript" | "python" | undefined;
|
|
981
|
-
timeout?: number | undefined;
|
|
982
|
-
context?: Record<string, any> | undefined;
|
|
983
|
-
})[] | undefined;
|
|
984
|
-
}>;
|
|
985
|
-
export type WorkflowRule = z.infer<typeof WorkflowRuleSchema>;
|
|
986
|
-
//# sourceMappingURL=workflow.zod.d.ts.map
|