@objectstack/spec 0.2.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.
- package/README.md +127 -5
- package/dist/ai/conversation.zod.d.ts +1059 -0
- package/dist/ai/conversation.zod.d.ts.map +1 -0
- package/dist/ai/conversation.zod.js +248 -0
- package/dist/ai/cost.zod.d.ts +2025 -0
- package/dist/ai/cost.zod.d.ts.map +1 -0
- package/dist/ai/cost.zod.js +324 -0
- package/dist/ai/index.d.ts +22 -0
- package/dist/ai/index.d.ts.map +1 -0
- package/dist/ai/index.js +37 -0
- package/dist/ai/model-registry.zod.d.ts +1389 -0
- package/dist/ai/model-registry.zod.d.ts.map +1 -0
- package/dist/ai/model-registry.zod.js +164 -0
- package/dist/ai/nlq.zod.d.ts +1126 -0
- package/dist/ai/nlq.zod.d.ts.map +1 -0
- package/dist/ai/nlq.zod.js +246 -0
- package/dist/ai/predictive.zod.d.ts +838 -0
- package/dist/ai/predictive.zod.d.ts.map +1 -0
- package/dist/ai/predictive.zod.js +244 -0
- package/dist/ai/rag-pipeline.zod.d.ts +1034 -0
- package/dist/ai/rag-pipeline.zod.d.ts.map +1 -0
- package/dist/ai/rag-pipeline.zod.js +244 -0
- package/dist/ai/workflow-automation.zod.d.ts +590 -0
- package/dist/ai/workflow-automation.zod.d.ts.map +1 -0
- package/dist/ai/workflow-automation.zod.js +197 -0
- package/dist/api/contract.zod.d.ts +22 -22
- package/dist/api/index.d.ts +9 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +24 -0
- package/dist/data/field.zod.d.ts +409 -4
- package/dist/data/field.zod.d.ts.map +1 -1
- package/dist/data/field.zod.js +28 -2
- package/dist/data/index.d.ts +21 -0
- package/dist/data/index.d.ts.map +1 -0
- package/dist/data/index.js +36 -0
- package/dist/data/mapping.zod.d.ts +6 -6
- package/dist/data/object.zod.d.ts +80 -10
- package/dist/data/object.zod.d.ts.map +1 -1
- package/dist/data/query.zod.d.ts +386 -3
- package/dist/data/query.zod.d.ts.map +1 -1
- package/dist/data/query.zod.js +386 -3
- package/dist/data/validation.zod.d.ts +349 -0
- package/dist/data/validation.zod.d.ts.map +1 -1
- package/dist/data/validation.zod.js +395 -0
- package/dist/data/workflow.zod.d.ts +809 -18
- package/dist/data/workflow.zod.d.ts.map +1 -1
- package/dist/data/workflow.zod.js +115 -7
- package/dist/index.d.ts +36 -41
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +64 -49
- package/dist/system/api.zod.d.ts +4 -4
- package/dist/system/audit.zod.d.ts +1172 -0
- package/dist/system/audit.zod.d.ts.map +1 -0
- package/dist/system/audit.zod.js +596 -0
- package/dist/system/auth-protocol.d.ts +175 -0
- package/dist/system/auth-protocol.d.ts.map +1 -0
- package/dist/system/auth-protocol.js +60 -0
- package/dist/system/auth.zod.d.ts +1089 -57
- package/dist/system/auth.zod.d.ts.map +1 -1
- package/dist/system/auth.zod.js +135 -1
- package/dist/system/driver.zod.d.ts +4 -4
- package/dist/system/events.zod.d.ts +177 -0
- package/dist/system/events.zod.d.ts.map +1 -0
- package/dist/system/events.zod.js +51 -0
- package/dist/system/identity.zod.d.ts +234 -180
- package/dist/system/identity.zod.d.ts.map +1 -1
- package/dist/system/identity.zod.js +168 -51
- package/dist/system/index.d.ts +33 -0
- package/dist/system/index.d.ts.map +1 -0
- package/dist/system/index.js +48 -0
- package/dist/system/job.zod.d.ts +237 -0
- package/dist/system/job.zod.d.ts.map +1 -0
- package/dist/system/job.zod.js +82 -0
- package/dist/system/organization.zod.d.ts +179 -0
- package/dist/system/organization.zod.d.ts.map +1 -0
- package/dist/system/organization.zod.js +129 -0
- package/dist/system/realtime.zod.d.ts +135 -0
- package/dist/system/realtime.zod.d.ts.map +1 -0
- package/dist/system/realtime.zod.js +83 -0
- package/dist/system/tenant.zod.d.ts +1151 -0
- package/dist/system/tenant.zod.d.ts.map +1 -0
- package/dist/system/tenant.zod.js +498 -0
- package/dist/system/webhook.zod.d.ts +2 -2
- package/dist/ui/action.zod.d.ts +10 -10
- package/dist/ui/index.d.ts +17 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +32 -0
- package/dist/ui/theme.zod.d.ts +18 -18
- package/dist/ui/widget.zod.d.ts +40 -5
- package/dist/ui/widget.zod.d.ts.map +1 -1
- package/json-schema/README.md +127 -0
- package/json-schema/ai/AITask.json +123 -0
- package/json-schema/ai/AITaskType.json +21 -0
- package/json-schema/ai/AIWorkflowAutomation.json +379 -0
- package/json-schema/ai/AIWorkflowExecutionResult.json +105 -0
- package/json-schema/ai/AIWorkflowTrigger.json +18 -0
- package/json-schema/ai/BatchAIWorkflowExecution.json +48 -0
- package/json-schema/ai/BillingPeriod.json +18 -0
- package/json-schema/ai/BudgetLimit.json +111 -0
- package/json-schema/ai/BudgetStatus.json +91 -0
- package/json-schema/ai/BudgetType.json +17 -0
- package/json-schema/ai/ChunkingStrategy.json +133 -0
- package/json-schema/ai/ConversationAnalytics.json +86 -0
- package/json-schema/ai/ConversationContext.json +48 -0
- package/json-schema/ai/ConversationMessage.json +209 -0
- package/json-schema/ai/ConversationSession.json +458 -0
- package/json-schema/ai/ConversationSummary.json +73 -0
- package/json-schema/ai/CostAlert.json +107 -0
- package/json-schema/ai/CostAlertType.json +16 -0
- package/json-schema/ai/CostAnalytics.json +589 -0
- package/json-schema/ai/CostBreakdownDimension.json +20 -0
- package/json-schema/ai/CostBreakdownEntry.json +60 -0
- package/json-schema/ai/CostEntry.json +106 -0
- package/json-schema/ai/CostMetricType.json +17 -0
- package/json-schema/ai/CostOptimizationRecommendation.json +100 -0
- package/json-schema/ai/CostQueryFilters.json +112 -0
- package/json-schema/ai/CostReport.json +964 -0
- package/json-schema/ai/DocumentChunk.json +97 -0
- package/json-schema/ai/DocumentLoaderConfig.json +69 -0
- package/json-schema/ai/DocumentMetadata.json +61 -0
- package/json-schema/ai/EmbeddingModel.json +57 -0
- package/json-schema/ai/Entity.json +55 -0
- package/json-schema/ai/EvaluationMetrics.json +64 -0
- package/json-schema/ai/FieldSynonymConfig.json +39 -0
- package/json-schema/ai/FunctionCall.json +28 -0
- package/json-schema/ai/Hyperparameters.json +80 -0
- package/json-schema/ai/MessageContent.json +46 -0
- package/json-schema/ai/MessageContentType.json +16 -0
- package/json-schema/ai/MessagePruningEvent.json +92 -0
- package/json-schema/ai/MessageRole.json +16 -0
- package/json-schema/ai/ModelCapability.json +47 -0
- package/json-schema/ai/ModelConfig.json +181 -0
- package/json-schema/ai/ModelDrift.json +73 -0
- package/json-schema/ai/ModelFeature.json +71 -0
- package/json-schema/ai/ModelLimits.json +45 -0
- package/json-schema/ai/ModelPricing.json +28 -0
- package/json-schema/ai/ModelProvider.json +19 -0
- package/json-schema/ai/ModelRegistry.json +427 -0
- package/json-schema/ai/ModelRegistryEntry.json +239 -0
- package/json-schema/ai/ModelSelectionCriteria.json +50 -0
- package/json-schema/ai/NLQAnalytics.json +106 -0
- package/json-schema/ai/NLQFieldMapping.json +40 -0
- package/json-schema/ai/NLQModelConfig.json +78 -0
- package/json-schema/ai/NLQParseResult.json +252 -0
- package/json-schema/ai/NLQRequest.json +110 -0
- package/json-schema/ai/NLQResponse.json +288 -0
- package/json-schema/ai/NLQTrainingExample.json +120 -0
- package/json-schema/ai/PostProcessingAction.json +41 -0
- package/json-schema/ai/PredictionRequest.json +39 -0
- package/json-schema/ai/PredictionResult.json +82 -0
- package/json-schema/ai/PredictiveModel.json +445 -0
- package/json-schema/ai/PredictiveModelType.json +18 -0
- package/json-schema/ai/PromptTemplate.json +163 -0
- package/json-schema/ai/PromptVariable.json +56 -0
- package/json-schema/ai/QueryContext.json +72 -0
- package/json-schema/ai/QueryIntent.json +21 -0
- package/json-schema/ai/QueryTemplate.json +81 -0
- package/json-schema/ai/RAGPipelineConfig.json +552 -0
- package/json-schema/ai/RAGPipelineStatus.json +66 -0
- package/json-schema/ai/RAGQueryRequest.json +64 -0
- package/json-schema/ai/RAGQueryResponse.json +108 -0
- package/json-schema/ai/RerankingConfig.json +34 -0
- package/json-schema/ai/RetrievalStrategy.json +121 -0
- package/json-schema/ai/Timeframe.json +68 -0
- package/json-schema/ai/TokenBudgetConfig.json +92 -0
- package/json-schema/ai/TokenBudgetStrategy.json +16 -0
- package/json-schema/ai/TokenUsageStats.json +66 -0
- package/json-schema/ai/ToolCall.json +49 -0
- package/json-schema/ai/TrainingConfig.json +88 -0
- package/json-schema/ai/VectorStoreConfig.json +82 -0
- package/json-schema/ai/VectorStoreProvider.json +21 -0
- package/json-schema/ai/WorkflowFieldCondition.json +33 -0
- package/json-schema/ai/WorkflowSchedule.json +51 -0
- package/json-schema/data/CustomScriptAction.json +49 -0
- package/json-schema/{Field.json → data/Field.json} +50 -1
- package/json-schema/{FieldType.json → data/FieldType.json} +4 -1
- package/json-schema/data/HttpCallAction.json +81 -0
- package/json-schema/{Object.json → data/Object.json} +50 -1
- package/json-schema/data/PushNotificationAction.json +59 -0
- package/json-schema/data/SlackMessageAction.json +45 -0
- package/json-schema/data/SmsNotificationAction.json +50 -0
- package/json-schema/data/TaskCreationAction.json +59 -0
- package/json-schema/data/TeamsMessageAction.json +45 -0
- package/json-schema/data/WebhookTriggerAction.json +58 -0
- package/json-schema/data/WorkflowAction.json +465 -0
- package/json-schema/data/WorkflowRule.json +509 -0
- package/json-schema/system/Account.json +87 -0
- package/json-schema/system/AuditConfig.json +587 -0
- package/json-schema/system/AuditEvent.json +232 -0
- package/json-schema/system/AuditEventActor.json +48 -0
- package/json-schema/system/AuditEventChange.json +25 -0
- package/json-schema/system/AuditEventFilter.json +127 -0
- package/json-schema/system/AuditEventSeverity.json +19 -0
- package/json-schema/system/AuditEventTarget.json +33 -0
- package/json-schema/system/AuditEventType.json +53 -0
- package/json-schema/system/AuditRetentionPolicy.json +73 -0
- package/json-schema/system/AuditStorageConfig.json +60 -0
- package/json-schema/{AuthConfig.json → system/AuthConfig.json} +235 -0
- package/json-schema/system/CronSchedule.json +29 -0
- package/json-schema/system/DatabaseLevelIsolationStrategy.json +139 -0
- package/json-schema/system/DatabaseMapping.json +48 -0
- package/json-schema/system/EnterpriseAuthConfig.json +172 -0
- package/json-schema/system/Event.json +52 -0
- package/json-schema/system/EventHandler.json +29 -0
- package/json-schema/system/EventMetadata.json +33 -0
- package/json-schema/system/EventPersistence.json +25 -0
- package/json-schema/system/EventRoute.json +27 -0
- package/json-schema/system/IntervalSchedule.json +25 -0
- package/json-schema/system/Invitation.json +69 -0
- package/json-schema/system/InvitationStatus.json +15 -0
- package/json-schema/system/Job.json +127 -0
- package/json-schema/system/JobExecution.json +49 -0
- package/json-schema/system/JobExecutionStatus.json +15 -0
- package/json-schema/{LDAPConfig.json → system/LDAPConfig.json} +22 -5
- package/json-schema/system/LevelIsolationStrategySchema.json +93 -0
- package/json-schema/system/Member.json +46 -0
- package/json-schema/{OIDCConfig.json → system/OIDCConfig.json} +18 -3
- package/json-schema/system/OnceSchedule.json +25 -0
- package/json-schema/system/Organization.json +52 -0
- package/json-schema/system/Presence.json +40 -0
- package/json-schema/system/PresenceStatus.json +14 -0
- package/json-schema/system/RealtimeAction.json +14 -0
- package/json-schema/system/RealtimeEvent.json +51 -0
- package/json-schema/system/RealtimeEventType.json +15 -0
- package/json-schema/system/RetryPolicy.json +30 -0
- package/json-schema/system/RowLevelIsolationStrategy.json +74 -0
- package/json-schema/{SAMLConfig.json → system/SAMLConfig.json} +17 -3
- package/json-schema/system/Schedule.json +71 -0
- package/json-schema/system/Session.json +63 -0
- package/json-schema/{StandardAuthProvider.json → system/StandardAuthProvider.json} +235 -0
- package/json-schema/system/Subscription.json +65 -0
- package/json-schema/system/SubscriptionEvent.json +32 -0
- package/json-schema/system/SuspiciousActivityRule.json +175 -0
- package/json-schema/system/Tenant.json +61 -0
- package/json-schema/system/TenantIsolationConfig.json +298 -0
- package/json-schema/system/TenantIsolationLevel.json +14 -0
- package/json-schema/system/TenantQuota.json +27 -0
- package/json-schema/system/TenantSecurityPolicy.json +115 -0
- package/json-schema/system/TransportProtocol.json +14 -0
- package/json-schema/system/User.json +51 -0
- package/json-schema/system/VerificationToken.json +36 -0
- package/json-schema/{Action.json → ui/Action.json} +4 -1
- package/json-schema/{ActionParam.json → ui/ActionParam.json} +4 -1
- package/json-schema/{FieldWidgetProps.json → ui/FieldWidgetProps.json} +50 -1
- package/package.json +38 -12
- package/json-schema/AuthProtocol.json +0 -17
- package/json-schema/AuthProvider.json +0 -171
- package/json-schema/AuthenticationConfig.json +0 -601
- package/json-schema/AuthenticationProvider.json +0 -617
- package/json-schema/MenuItem.json +0 -28
- package/json-schema/WorkflowAction.json +0 -84
- package/json-schema/WorkflowRule.json +0 -128
- /package/json-schema/{AIKnowledge.json → ai/AIKnowledge.json} +0 -0
- /package/json-schema/{AIModelConfig.json → ai/AIModelConfig.json} +0 -0
- /package/json-schema/{AITool.json → ai/AITool.json} +0 -0
- /package/json-schema/{Agent.json → ai/Agent.json} +0 -0
- /package/json-schema/{ApiError.json → api/ApiError.json} +0 -0
- /package/json-schema/{BaseResponse.json → api/BaseResponse.json} +0 -0
- /package/json-schema/{BulkRequest.json → api/BulkRequest.json} +0 -0
- /package/json-schema/{BulkResponse.json → api/BulkResponse.json} +0 -0
- /package/json-schema/{CreateRequest.json → api/CreateRequest.json} +0 -0
- /package/json-schema/{DeleteResponse.json → api/DeleteResponse.json} +0 -0
- /package/json-schema/{ExportRequest.json → api/ExportRequest.json} +0 -0
- /package/json-schema/{ListRecordResponse.json → api/ListRecordResponse.json} +0 -0
- /package/json-schema/{ModificationResult.json → api/ModificationResult.json} +0 -0
- /package/json-schema/{RecordData.json → api/RecordData.json} +0 -0
- /package/json-schema/{SingleRecordResponse.json → api/SingleRecordResponse.json} +0 -0
- /package/json-schema/{UpdateRequest.json → api/UpdateRequest.json} +0 -0
- /package/json-schema/{Address.json → data/Address.json} +0 -0
- /package/json-schema/{AggregationFunction.json → data/AggregationFunction.json} +0 -0
- /package/json-schema/{AggregationNode.json → data/AggregationNode.json} +0 -0
- /package/json-schema/{AsyncValidation.json → data/AsyncValidation.json} +0 -0
- /package/json-schema/{ComparisonOperator.json → data/ComparisonOperator.json} +0 -0
- /package/json-schema/{ConditionalValidation.json → data/ConditionalValidation.json} +0 -0
- /package/json-schema/{CrossFieldValidation.json → data/CrossFieldValidation.json} +0 -0
- /package/json-schema/{CustomValidator.json → data/CustomValidator.json} +0 -0
- /package/json-schema/{Dataset.json → data/Dataset.json} +0 -0
- /package/json-schema/{DatasetMode.json → data/DatasetMode.json} +0 -0
- /package/json-schema/{EmailAlertAction.json → data/EmailAlertAction.json} +0 -0
- /package/json-schema/{EqualityOperator.json → data/EqualityOperator.json} +0 -0
- /package/json-schema/{FieldMapping.json → data/FieldMapping.json} +0 -0
- /package/json-schema/{FieldNode.json → data/FieldNode.json} +0 -0
- /package/json-schema/{FieldOperators.json → data/FieldOperators.json} +0 -0
- /package/json-schema/{FieldPermission.json → data/FieldPermission.json} +0 -0
- /package/json-schema/{FieldUpdateAction.json → data/FieldUpdateAction.json} +0 -0
- /package/json-schema/{FilterCondition.json → data/FilterCondition.json} +0 -0
- /package/json-schema/{FilterNode.json → data/FilterNode.json} +0 -0
- /package/json-schema/{FilterOperator.json → data/FilterOperator.json} +0 -0
- /package/json-schema/{Flow.json → data/Flow.json} +0 -0
- /package/json-schema/{FlowEdge.json → data/FlowEdge.json} +0 -0
- /package/json-schema/{FlowNode.json → data/FlowNode.json} +0 -0
- /package/json-schema/{FlowNodeAction.json → data/FlowNodeAction.json} +0 -0
- /package/json-schema/{FlowVariable.json → data/FlowVariable.json} +0 -0
- /package/json-schema/{FormatValidation.json → data/FormatValidation.json} +0 -0
- /package/json-schema/{Index.json → data/Index.json} +0 -0
- /package/json-schema/{JoinNode.json → data/JoinNode.json} +0 -0
- /package/json-schema/{JoinType.json → data/JoinType.json} +0 -0
- /package/json-schema/{LocationCoordinates.json → data/LocationCoordinates.json} +0 -0
- /package/json-schema/{LogicOperator.json → data/LogicOperator.json} +0 -0
- /package/json-schema/{Mapping.json → data/Mapping.json} +0 -0
- /package/json-schema/{NormalizedFilter.json → data/NormalizedFilter.json} +0 -0
- /package/json-schema/{OWDModel.json → data/OWDModel.json} +0 -0
- /package/json-schema/{ObjectCapabilities.json → data/ObjectCapabilities.json} +0 -0
- /package/json-schema/{ObjectPermission.json → data/ObjectPermission.json} +0 -0
- /package/json-schema/{PermissionSet.json → data/PermissionSet.json} +0 -0
- /package/json-schema/{Query.json → data/Query.json} +0 -0
- /package/json-schema/{QueryFilter.json → data/QueryFilter.json} +0 -0
- /package/json-schema/{RangeOperator.json → data/RangeOperator.json} +0 -0
- /package/json-schema/{ScriptValidation.json → data/ScriptValidation.json} +0 -0
- /package/json-schema/{SelectOption.json → data/SelectOption.json} +0 -0
- /package/json-schema/{SetOperator.json → data/SetOperator.json} +0 -0
- /package/json-schema/{SharingLevel.json → data/SharingLevel.json} +0 -0
- /package/json-schema/{SharingRule.json → data/SharingRule.json} +0 -0
- /package/json-schema/{SharingRuleType.json → data/SharingRuleType.json} +0 -0
- /package/json-schema/{SortNode.json → data/SortNode.json} +0 -0
- /package/json-schema/{SpecialOperator.json → data/SpecialOperator.json} +0 -0
- /package/json-schema/{StateMachineValidation.json → data/StateMachineValidation.json} +0 -0
- /package/json-schema/{StringOperator.json → data/StringOperator.json} +0 -0
- /package/json-schema/{TransformType.json → data/TransformType.json} +0 -0
- /package/json-schema/{Trigger.json → data/Trigger.json} +0 -0
- /package/json-schema/{TriggerAction.json → data/TriggerAction.json} +0 -0
- /package/json-schema/{TriggerContext.json → data/TriggerContext.json} +0 -0
- /package/json-schema/{TriggerTiming.json → data/TriggerTiming.json} +0 -0
- /package/json-schema/{UniquenessValidation.json → data/UniquenessValidation.json} +0 -0
- /package/json-schema/{ValidationRule.json → data/ValidationRule.json} +0 -0
- /package/json-schema/{WindowFunction.json → data/WindowFunction.json} +0 -0
- /package/json-schema/{WindowFunctionNode.json → data/WindowFunctionNode.json} +0 -0
- /package/json-schema/{WindowSpec.json → data/WindowSpec.json} +0 -0
- /package/json-schema/{WorkflowTriggerType.json → data/WorkflowTriggerType.json} +0 -0
- /package/json-schema/{AccountLinkingConfig.json → system/AccountLinkingConfig.json} +0 -0
- /package/json-schema/{ApiCapabilities.json → system/ApiCapabilities.json} +0 -0
- /package/json-schema/{ApiEndpoint.json → system/ApiEndpoint.json} +0 -0
- /package/json-schema/{ApiMapping.json → system/ApiMapping.json} +0 -0
- /package/json-schema/{ApiRoutes.json → system/ApiRoutes.json} +0 -0
- /package/json-schema/{AuditPolicy.json → system/AuditPolicy.json} +0 -0
- /package/json-schema/{AuthPluginConfig.json → system/AuthPluginConfig.json} +0 -0
- /package/json-schema/{AuthStrategy.json → system/AuthStrategy.json} +0 -0
- /package/json-schema/{CSRFConfig.json → system/CSRFConfig.json} +0 -0
- /package/json-schema/{DatabaseAdapter.json → system/DatabaseAdapter.json} +0 -0
- /package/json-schema/{Datasource.json → system/Datasource.json} +0 -0
- /package/json-schema/{DatasourceCapabilities.json → system/DatasourceCapabilities.json} +0 -0
- /package/json-schema/{Discovery.json → system/Discovery.json} +0 -0
- /package/json-schema/{DriverCapabilities.json → system/DriverCapabilities.json} +0 -0
- /package/json-schema/{DriverDefinition.json → system/DriverDefinition.json} +0 -0
- /package/json-schema/{DriverInterface.json → system/DriverInterface.json} +0 -0
- /package/json-schema/{DriverOptions.json → system/DriverOptions.json} +0 -0
- /package/json-schema/{DriverType.json → system/DriverType.json} +0 -0
- /package/json-schema/{EmailPasswordConfig.json → system/EmailPasswordConfig.json} +0 -0
- /package/json-schema/{Feature.json → system/Feature.json} +0 -0
- /package/json-schema/{HttpMethod.json → system/HttpMethod.json} +0 -0
- /package/json-schema/{I18nContext.json → system/I18nContext.json} +0 -0
- /package/json-schema/{License.json → system/License.json} +0 -0
- /package/json-schema/{Locale.json → system/Locale.json} +0 -0
- /package/json-schema/{Logger.json → system/Logger.json} +0 -0
- /package/json-schema/{MagicLinkConfig.json → system/MagicLinkConfig.json} +0 -0
- /package/json-schema/{Manifest.json → system/Manifest.json} +0 -0
- /package/json-schema/{MetricType.json → system/MetricType.json} +0 -0
- /package/json-schema/{NetworkPolicy.json → system/NetworkPolicy.json} +0 -0
- /package/json-schema/{OAuthProvider.json → system/OAuthProvider.json} +0 -0
- /package/json-schema/{ObjectQLClient.json → system/ObjectQLClient.json} +0 -0
- /package/json-schema/{PasskeyConfig.json → system/PasskeyConfig.json} +0 -0
- /package/json-schema/{PasswordPolicy.json → system/PasswordPolicy.json} +0 -0
- /package/json-schema/{Plan.json → system/Plan.json} +0 -0
- /package/json-schema/{Plugin.json → system/Plugin.json} +0 -0
- /package/json-schema/{PluginContext.json → system/PluginContext.json} +0 -0
- /package/json-schema/{PluginLifecycle.json → system/PluginLifecycle.json} +0 -0
- /package/json-schema/{Policy.json → system/Policy.json} +0 -0
- /package/json-schema/{RateLimit.json → system/RateLimit.json} +0 -0
- /package/json-schema/{RateLimitConfig.json → system/RateLimitConfig.json} +0 -0
- /package/json-schema/{Role.json → system/Role.json} +0 -0
- /package/json-schema/{Router.json → system/Router.json} +0 -0
- /package/json-schema/{Scheduler.json → system/Scheduler.json} +0 -0
- /package/json-schema/{ScopedStorage.json → system/ScopedStorage.json} +0 -0
- /package/json-schema/{SessionConfig.json → system/SessionConfig.json} +0 -0
- /package/json-schema/{SessionPolicy.json → system/SessionPolicy.json} +0 -0
- /package/json-schema/{SystemAPI.json → system/SystemAPI.json} +0 -0
- /package/json-schema/{Territory.json → system/Territory.json} +0 -0
- /package/json-schema/{TerritoryModel.json → system/TerritoryModel.json} +0 -0
- /package/json-schema/{TerritoryType.json → system/TerritoryType.json} +0 -0
- /package/json-schema/{TranslationBundle.json → system/TranslationBundle.json} +0 -0
- /package/json-schema/{TranslationData.json → system/TranslationData.json} +0 -0
- /package/json-schema/{TwoFactorConfig.json → system/TwoFactorConfig.json} +0 -0
- /package/json-schema/{UserFieldMapping.json → system/UserFieldMapping.json} +0 -0
- /package/json-schema/{Webhook.json → system/Webhook.json} +0 -0
- /package/json-schema/{WebhookReceiver.json → system/WebhookReceiver.json} +0 -0
- /package/json-schema/{WebhookTriggerType.json → system/WebhookTriggerType.json} +0 -0
- /package/json-schema/{Animation.json → ui/Animation.json} +0 -0
- /package/json-schema/{App.json → ui/App.json} +0 -0
- /package/json-schema/{AppBranding.json → ui/AppBranding.json} +0 -0
- /package/json-schema/{BorderRadius.json → ui/BorderRadius.json} +0 -0
- /package/json-schema/{Breakpoints.json → ui/Breakpoints.json} +0 -0
- /package/json-schema/{CalendarConfig.json → ui/CalendarConfig.json} +0 -0
- /package/json-schema/{ChartType.json → ui/ChartType.json} +0 -0
- /package/json-schema/{ColorPalette.json → ui/ColorPalette.json} +0 -0
- /package/json-schema/{Dashboard.json → ui/Dashboard.json} +0 -0
- /package/json-schema/{DashboardNavItem.json → ui/DashboardNavItem.json} +0 -0
- /package/json-schema/{DashboardWidget.json → ui/DashboardWidget.json} +0 -0
- /package/json-schema/{FormSection.json → ui/FormSection.json} +0 -0
- /package/json-schema/{FormView.json → ui/FormView.json} +0 -0
- /package/json-schema/{GanttConfig.json → ui/GanttConfig.json} +0 -0
- /package/json-schema/{GroupNavItem.json → ui/GroupNavItem.json} +0 -0
- /package/json-schema/{KanbanConfig.json → ui/KanbanConfig.json} +0 -0
- /package/json-schema/{ListView.json → ui/ListView.json} +0 -0
- /package/json-schema/{NavigationItem.json → ui/NavigationItem.json} +0 -0
- /package/json-schema/{ObjectNavItem.json → ui/ObjectNavItem.json} +0 -0
- /package/json-schema/{Page.json → ui/Page.json} +0 -0
- /package/json-schema/{PageComponent.json → ui/PageComponent.json} +0 -0
- /package/json-schema/{PageNavItem.json → ui/PageNavItem.json} +0 -0
- /package/json-schema/{PageRegion.json → ui/PageRegion.json} +0 -0
- /package/json-schema/{Report.json → ui/Report.json} +0 -0
- /package/json-schema/{ReportChart.json → ui/ReportChart.json} +0 -0
- /package/json-schema/{ReportColumn.json → ui/ReportColumn.json} +0 -0
- /package/json-schema/{ReportGrouping.json → ui/ReportGrouping.json} +0 -0
- /package/json-schema/{ReportType.json → ui/ReportType.json} +0 -0
- /package/json-schema/{Shadow.json → ui/Shadow.json} +0 -0
- /package/json-schema/{Spacing.json → ui/Spacing.json} +0 -0
- /package/json-schema/{Theme.json → ui/Theme.json} +0 -0
- /package/json-schema/{ThemeMode.json → ui/ThemeMode.json} +0 -0
- /package/json-schema/{Typography.json → ui/Typography.json} +0 -0
- /package/json-schema/{UrlNavItem.json → ui/UrlNavItem.json} +0 -0
- /package/json-schema/{View.json → ui/View.json} +0 -0
- /package/json-schema/{ZIndex.json → ui/ZIndex.json} +0 -0
|
@@ -0,0 +1,590 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* AI Workflow Automation Protocol
|
|
4
|
+
*
|
|
5
|
+
* Defines intelligent automation workflows that leverage AI/ML capabilities
|
|
6
|
+
* to automate business processes with cognitive tasks like classification,
|
|
7
|
+
* extraction, summarization, content generation, and prediction.
|
|
8
|
+
*
|
|
9
|
+
* Use Cases:
|
|
10
|
+
* - Automatically classify support tickets by urgency and route to teams
|
|
11
|
+
* - Extract key information from documents and populate fields
|
|
12
|
+
* - Generate summaries of long text content
|
|
13
|
+
* - Predict lead scores or customer churn risk
|
|
14
|
+
* - Auto-fill forms based on natural language input
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* Workflow Trigger Types
|
|
18
|
+
* Defines when an AI workflow should be initiated
|
|
19
|
+
*/
|
|
20
|
+
export declare const AIWorkflowTriggerSchema: z.ZodEnum<["record_created", "record_updated", "field_changed", "scheduled", "manual", "webhook", "batch"]>;
|
|
21
|
+
/**
|
|
22
|
+
* AI Task Types
|
|
23
|
+
* Cognitive operations that can be performed by AI
|
|
24
|
+
*/
|
|
25
|
+
export declare const AITaskTypeSchema: z.ZodEnum<["classify", "extract", "summarize", "generate", "predict", "translate", "sentiment", "entity_recognition", "anomaly_detection", "recommendation"]>;
|
|
26
|
+
/**
|
|
27
|
+
* AI Task Configuration
|
|
28
|
+
* Individual AI task within a workflow
|
|
29
|
+
*/
|
|
30
|
+
export declare const AITaskSchema: z.ZodObject<{
|
|
31
|
+
/** Task Identity */
|
|
32
|
+
id: z.ZodOptional<z.ZodString>;
|
|
33
|
+
name: z.ZodString;
|
|
34
|
+
type: z.ZodEnum<["classify", "extract", "summarize", "generate", "predict", "translate", "sentiment", "entity_recognition", "anomaly_detection", "recommendation"]>;
|
|
35
|
+
/** Model Configuration */
|
|
36
|
+
model: z.ZodOptional<z.ZodString>;
|
|
37
|
+
promptTemplate: z.ZodOptional<z.ZodString>;
|
|
38
|
+
/** Input Configuration */
|
|
39
|
+
inputFields: z.ZodArray<z.ZodString, "many">;
|
|
40
|
+
inputContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
41
|
+
/** Output Configuration */
|
|
42
|
+
outputField: z.ZodString;
|
|
43
|
+
outputFormat: z.ZodDefault<z.ZodOptional<z.ZodEnum<["text", "json", "number", "boolean", "array"]>>>;
|
|
44
|
+
/** Classification-specific options */
|
|
45
|
+
classes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
46
|
+
multiClass: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
47
|
+
/** Extraction-specific options */
|
|
48
|
+
extractionSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
49
|
+
/** Generation-specific options */
|
|
50
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
51
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
52
|
+
/** Error Handling */
|
|
53
|
+
fallbackValue: z.ZodOptional<z.ZodAny>;
|
|
54
|
+
retryAttempts: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
55
|
+
/** Conditional Execution */
|
|
56
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
57
|
+
/** Task Metadata */
|
|
58
|
+
description: z.ZodOptional<z.ZodString>;
|
|
59
|
+
active: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
type: "classify" | "extract" | "summarize" | "generate" | "predict" | "translate" | "sentiment" | "entity_recognition" | "anomaly_detection" | "recommendation";
|
|
62
|
+
name: string;
|
|
63
|
+
active: boolean;
|
|
64
|
+
inputFields: string[];
|
|
65
|
+
outputField: string;
|
|
66
|
+
outputFormat: "number" | "boolean" | "text" | "array" | "json";
|
|
67
|
+
multiClass: boolean;
|
|
68
|
+
retryAttempts: number;
|
|
69
|
+
description?: string | undefined;
|
|
70
|
+
maxLength?: number | undefined;
|
|
71
|
+
condition?: string | undefined;
|
|
72
|
+
id?: string | undefined;
|
|
73
|
+
model?: string | undefined;
|
|
74
|
+
temperature?: number | undefined;
|
|
75
|
+
promptTemplate?: string | undefined;
|
|
76
|
+
inputContext?: Record<string, any> | undefined;
|
|
77
|
+
classes?: string[] | undefined;
|
|
78
|
+
extractionSchema?: Record<string, any> | undefined;
|
|
79
|
+
fallbackValue?: any;
|
|
80
|
+
}, {
|
|
81
|
+
type: "classify" | "extract" | "summarize" | "generate" | "predict" | "translate" | "sentiment" | "entity_recognition" | "anomaly_detection" | "recommendation";
|
|
82
|
+
name: string;
|
|
83
|
+
inputFields: string[];
|
|
84
|
+
outputField: string;
|
|
85
|
+
description?: string | undefined;
|
|
86
|
+
maxLength?: number | undefined;
|
|
87
|
+
active?: boolean | undefined;
|
|
88
|
+
condition?: string | undefined;
|
|
89
|
+
id?: string | undefined;
|
|
90
|
+
model?: string | undefined;
|
|
91
|
+
temperature?: number | undefined;
|
|
92
|
+
promptTemplate?: string | undefined;
|
|
93
|
+
inputContext?: Record<string, any> | undefined;
|
|
94
|
+
outputFormat?: "number" | "boolean" | "text" | "array" | "json" | undefined;
|
|
95
|
+
classes?: string[] | undefined;
|
|
96
|
+
multiClass?: boolean | undefined;
|
|
97
|
+
extractionSchema?: Record<string, any> | undefined;
|
|
98
|
+
fallbackValue?: any;
|
|
99
|
+
retryAttempts?: number | undefined;
|
|
100
|
+
}>;
|
|
101
|
+
/**
|
|
102
|
+
* Workflow Field Condition
|
|
103
|
+
* Specifies which field changes trigger the workflow
|
|
104
|
+
*/
|
|
105
|
+
export declare const WorkflowFieldConditionSchema: z.ZodObject<{
|
|
106
|
+
field: z.ZodString;
|
|
107
|
+
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<["changed", "changed_to", "changed_from", "is", "is_not"]>>>;
|
|
108
|
+
value: z.ZodOptional<z.ZodAny>;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
field: string;
|
|
111
|
+
operator: "changed" | "changed_to" | "changed_from" | "is" | "is_not";
|
|
112
|
+
value?: any;
|
|
113
|
+
}, {
|
|
114
|
+
field: string;
|
|
115
|
+
value?: any;
|
|
116
|
+
operator?: "changed" | "changed_to" | "changed_from" | "is" | "is_not" | undefined;
|
|
117
|
+
}>;
|
|
118
|
+
/**
|
|
119
|
+
* Workflow Schedule Configuration
|
|
120
|
+
* For time-based workflow execution
|
|
121
|
+
*/
|
|
122
|
+
export declare const WorkflowScheduleSchema: z.ZodObject<{
|
|
123
|
+
type: z.ZodDefault<z.ZodEnum<["cron", "interval", "daily", "weekly", "monthly"]>>;
|
|
124
|
+
cron: z.ZodOptional<z.ZodString>;
|
|
125
|
+
interval: z.ZodOptional<z.ZodNumber>;
|
|
126
|
+
time: z.ZodOptional<z.ZodString>;
|
|
127
|
+
dayOfWeek: z.ZodOptional<z.ZodNumber>;
|
|
128
|
+
dayOfMonth: z.ZodOptional<z.ZodNumber>;
|
|
129
|
+
timezone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
130
|
+
}, "strip", z.ZodTypeAny, {
|
|
131
|
+
type: "cron" | "interval" | "daily" | "weekly" | "monthly";
|
|
132
|
+
timezone: string;
|
|
133
|
+
time?: string | undefined;
|
|
134
|
+
cron?: string | undefined;
|
|
135
|
+
interval?: number | undefined;
|
|
136
|
+
dayOfWeek?: number | undefined;
|
|
137
|
+
dayOfMonth?: number | undefined;
|
|
138
|
+
}, {
|
|
139
|
+
time?: string | undefined;
|
|
140
|
+
type?: "cron" | "interval" | "daily" | "weekly" | "monthly" | undefined;
|
|
141
|
+
timezone?: string | undefined;
|
|
142
|
+
cron?: string | undefined;
|
|
143
|
+
interval?: number | undefined;
|
|
144
|
+
dayOfWeek?: number | undefined;
|
|
145
|
+
dayOfMonth?: number | undefined;
|
|
146
|
+
}>;
|
|
147
|
+
/**
|
|
148
|
+
* Post-Processing Action
|
|
149
|
+
* Actions to execute after AI tasks complete
|
|
150
|
+
*/
|
|
151
|
+
export declare const PostProcessingActionSchema: z.ZodObject<{
|
|
152
|
+
type: z.ZodEnum<["field_update", "send_email", "create_record", "update_related", "trigger_flow", "webhook"]>;
|
|
153
|
+
name: z.ZodString;
|
|
154
|
+
config: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
155
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
156
|
+
}, "strip", z.ZodTypeAny, {
|
|
157
|
+
type: "field_update" | "create_record" | "webhook" | "trigger_flow" | "send_email" | "update_related";
|
|
158
|
+
name: string;
|
|
159
|
+
config: Record<string, any>;
|
|
160
|
+
condition?: string | undefined;
|
|
161
|
+
}, {
|
|
162
|
+
type: "field_update" | "create_record" | "webhook" | "trigger_flow" | "send_email" | "update_related";
|
|
163
|
+
name: string;
|
|
164
|
+
config: Record<string, any>;
|
|
165
|
+
condition?: string | undefined;
|
|
166
|
+
}>;
|
|
167
|
+
/**
|
|
168
|
+
* AI Workflow Automation Schema
|
|
169
|
+
* Complete workflow definition with AI-powered tasks
|
|
170
|
+
*/
|
|
171
|
+
export declare const AIWorkflowAutomationSchema: z.ZodObject<{
|
|
172
|
+
/** Identity */
|
|
173
|
+
name: z.ZodString;
|
|
174
|
+
label: z.ZodString;
|
|
175
|
+
description: z.ZodOptional<z.ZodString>;
|
|
176
|
+
/** Target Object */
|
|
177
|
+
objectName: z.ZodString;
|
|
178
|
+
/** Trigger Configuration */
|
|
179
|
+
trigger: z.ZodEnum<["record_created", "record_updated", "field_changed", "scheduled", "manual", "webhook", "batch"]>;
|
|
180
|
+
/** Trigger-specific configuration */
|
|
181
|
+
fieldConditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
182
|
+
field: z.ZodString;
|
|
183
|
+
operator: z.ZodDefault<z.ZodOptional<z.ZodEnum<["changed", "changed_to", "changed_from", "is", "is_not"]>>>;
|
|
184
|
+
value: z.ZodOptional<z.ZodAny>;
|
|
185
|
+
}, "strip", z.ZodTypeAny, {
|
|
186
|
+
field: string;
|
|
187
|
+
operator: "changed" | "changed_to" | "changed_from" | "is" | "is_not";
|
|
188
|
+
value?: any;
|
|
189
|
+
}, {
|
|
190
|
+
field: string;
|
|
191
|
+
value?: any;
|
|
192
|
+
operator?: "changed" | "changed_to" | "changed_from" | "is" | "is_not" | undefined;
|
|
193
|
+
}>, "many">>;
|
|
194
|
+
schedule: z.ZodOptional<z.ZodObject<{
|
|
195
|
+
type: z.ZodDefault<z.ZodEnum<["cron", "interval", "daily", "weekly", "monthly"]>>;
|
|
196
|
+
cron: z.ZodOptional<z.ZodString>;
|
|
197
|
+
interval: z.ZodOptional<z.ZodNumber>;
|
|
198
|
+
time: z.ZodOptional<z.ZodString>;
|
|
199
|
+
dayOfWeek: z.ZodOptional<z.ZodNumber>;
|
|
200
|
+
dayOfMonth: z.ZodOptional<z.ZodNumber>;
|
|
201
|
+
timezone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
202
|
+
}, "strip", z.ZodTypeAny, {
|
|
203
|
+
type: "cron" | "interval" | "daily" | "weekly" | "monthly";
|
|
204
|
+
timezone: string;
|
|
205
|
+
time?: string | undefined;
|
|
206
|
+
cron?: string | undefined;
|
|
207
|
+
interval?: number | undefined;
|
|
208
|
+
dayOfWeek?: number | undefined;
|
|
209
|
+
dayOfMonth?: number | undefined;
|
|
210
|
+
}, {
|
|
211
|
+
time?: string | undefined;
|
|
212
|
+
type?: "cron" | "interval" | "daily" | "weekly" | "monthly" | undefined;
|
|
213
|
+
timezone?: string | undefined;
|
|
214
|
+
cron?: string | undefined;
|
|
215
|
+
interval?: number | undefined;
|
|
216
|
+
dayOfWeek?: number | undefined;
|
|
217
|
+
dayOfMonth?: number | undefined;
|
|
218
|
+
}>>;
|
|
219
|
+
webhookConfig: z.ZodOptional<z.ZodObject<{
|
|
220
|
+
secret: z.ZodOptional<z.ZodString>;
|
|
221
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
222
|
+
}, "strip", z.ZodTypeAny, {
|
|
223
|
+
headers?: Record<string, string> | undefined;
|
|
224
|
+
secret?: string | undefined;
|
|
225
|
+
}, {
|
|
226
|
+
headers?: Record<string, string> | undefined;
|
|
227
|
+
secret?: string | undefined;
|
|
228
|
+
}>>;
|
|
229
|
+
/** Entry Criteria */
|
|
230
|
+
entryCriteria: z.ZodOptional<z.ZodString>;
|
|
231
|
+
/** AI Tasks */
|
|
232
|
+
aiTasks: z.ZodArray<z.ZodObject<{
|
|
233
|
+
/** Task Identity */
|
|
234
|
+
id: z.ZodOptional<z.ZodString>;
|
|
235
|
+
name: z.ZodString;
|
|
236
|
+
type: z.ZodEnum<["classify", "extract", "summarize", "generate", "predict", "translate", "sentiment", "entity_recognition", "anomaly_detection", "recommendation"]>;
|
|
237
|
+
/** Model Configuration */
|
|
238
|
+
model: z.ZodOptional<z.ZodString>;
|
|
239
|
+
promptTemplate: z.ZodOptional<z.ZodString>;
|
|
240
|
+
/** Input Configuration */
|
|
241
|
+
inputFields: z.ZodArray<z.ZodString, "many">;
|
|
242
|
+
inputContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
243
|
+
/** Output Configuration */
|
|
244
|
+
outputField: z.ZodString;
|
|
245
|
+
outputFormat: z.ZodDefault<z.ZodOptional<z.ZodEnum<["text", "json", "number", "boolean", "array"]>>>;
|
|
246
|
+
/** Classification-specific options */
|
|
247
|
+
classes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
248
|
+
multiClass: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
249
|
+
/** Extraction-specific options */
|
|
250
|
+
extractionSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
251
|
+
/** Generation-specific options */
|
|
252
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
253
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
254
|
+
/** Error Handling */
|
|
255
|
+
fallbackValue: z.ZodOptional<z.ZodAny>;
|
|
256
|
+
retryAttempts: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
257
|
+
/** Conditional Execution */
|
|
258
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
259
|
+
/** Task Metadata */
|
|
260
|
+
description: z.ZodOptional<z.ZodString>;
|
|
261
|
+
active: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
262
|
+
}, "strip", z.ZodTypeAny, {
|
|
263
|
+
type: "classify" | "extract" | "summarize" | "generate" | "predict" | "translate" | "sentiment" | "entity_recognition" | "anomaly_detection" | "recommendation";
|
|
264
|
+
name: string;
|
|
265
|
+
active: boolean;
|
|
266
|
+
inputFields: string[];
|
|
267
|
+
outputField: string;
|
|
268
|
+
outputFormat: "number" | "boolean" | "text" | "array" | "json";
|
|
269
|
+
multiClass: boolean;
|
|
270
|
+
retryAttempts: number;
|
|
271
|
+
description?: string | undefined;
|
|
272
|
+
maxLength?: number | undefined;
|
|
273
|
+
condition?: string | undefined;
|
|
274
|
+
id?: string | undefined;
|
|
275
|
+
model?: string | undefined;
|
|
276
|
+
temperature?: number | undefined;
|
|
277
|
+
promptTemplate?: string | undefined;
|
|
278
|
+
inputContext?: Record<string, any> | undefined;
|
|
279
|
+
classes?: string[] | undefined;
|
|
280
|
+
extractionSchema?: Record<string, any> | undefined;
|
|
281
|
+
fallbackValue?: any;
|
|
282
|
+
}, {
|
|
283
|
+
type: "classify" | "extract" | "summarize" | "generate" | "predict" | "translate" | "sentiment" | "entity_recognition" | "anomaly_detection" | "recommendation";
|
|
284
|
+
name: string;
|
|
285
|
+
inputFields: string[];
|
|
286
|
+
outputField: string;
|
|
287
|
+
description?: string | undefined;
|
|
288
|
+
maxLength?: number | undefined;
|
|
289
|
+
active?: boolean | undefined;
|
|
290
|
+
condition?: string | undefined;
|
|
291
|
+
id?: string | undefined;
|
|
292
|
+
model?: string | undefined;
|
|
293
|
+
temperature?: number | undefined;
|
|
294
|
+
promptTemplate?: string | undefined;
|
|
295
|
+
inputContext?: Record<string, any> | undefined;
|
|
296
|
+
outputFormat?: "number" | "boolean" | "text" | "array" | "json" | undefined;
|
|
297
|
+
classes?: string[] | undefined;
|
|
298
|
+
multiClass?: boolean | undefined;
|
|
299
|
+
extractionSchema?: Record<string, any> | undefined;
|
|
300
|
+
fallbackValue?: any;
|
|
301
|
+
retryAttempts?: number | undefined;
|
|
302
|
+
}>, "many">;
|
|
303
|
+
/** Post-Processing */
|
|
304
|
+
postActions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
305
|
+
type: z.ZodEnum<["field_update", "send_email", "create_record", "update_related", "trigger_flow", "webhook"]>;
|
|
306
|
+
name: z.ZodString;
|
|
307
|
+
config: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
308
|
+
condition: z.ZodOptional<z.ZodString>;
|
|
309
|
+
}, "strip", z.ZodTypeAny, {
|
|
310
|
+
type: "field_update" | "create_record" | "webhook" | "trigger_flow" | "send_email" | "update_related";
|
|
311
|
+
name: string;
|
|
312
|
+
config: Record<string, any>;
|
|
313
|
+
condition?: string | undefined;
|
|
314
|
+
}, {
|
|
315
|
+
type: "field_update" | "create_record" | "webhook" | "trigger_flow" | "send_email" | "update_related";
|
|
316
|
+
name: string;
|
|
317
|
+
config: Record<string, any>;
|
|
318
|
+
condition?: string | undefined;
|
|
319
|
+
}>, "many">>;
|
|
320
|
+
/** Execution Options */
|
|
321
|
+
executionMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["sequential", "parallel"]>>>;
|
|
322
|
+
stopOnError: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
323
|
+
/** Performance & Limits */
|
|
324
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
325
|
+
priority: z.ZodDefault<z.ZodOptional<z.ZodEnum<["low", "normal", "high", "critical"]>>>;
|
|
326
|
+
/** Monitoring & Logging */
|
|
327
|
+
enableLogging: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
328
|
+
enableMetrics: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
329
|
+
notifyOnFailure: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
330
|
+
/** Status */
|
|
331
|
+
active: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
332
|
+
version: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
333
|
+
/** Metadata */
|
|
334
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
335
|
+
category: z.ZodOptional<z.ZodString>;
|
|
336
|
+
owner: z.ZodOptional<z.ZodString>;
|
|
337
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
338
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
339
|
+
}, "strip", z.ZodTypeAny, {
|
|
340
|
+
label: string;
|
|
341
|
+
name: string;
|
|
342
|
+
active: boolean;
|
|
343
|
+
priority: "normal" | "critical" | "low" | "high";
|
|
344
|
+
objectName: string;
|
|
345
|
+
version: string;
|
|
346
|
+
trigger: "manual" | "webhook" | "record_created" | "record_updated" | "field_changed" | "scheduled" | "batch";
|
|
347
|
+
aiTasks: {
|
|
348
|
+
type: "classify" | "extract" | "summarize" | "generate" | "predict" | "translate" | "sentiment" | "entity_recognition" | "anomaly_detection" | "recommendation";
|
|
349
|
+
name: string;
|
|
350
|
+
active: boolean;
|
|
351
|
+
inputFields: string[];
|
|
352
|
+
outputField: string;
|
|
353
|
+
outputFormat: "number" | "boolean" | "text" | "array" | "json";
|
|
354
|
+
multiClass: boolean;
|
|
355
|
+
retryAttempts: number;
|
|
356
|
+
description?: string | undefined;
|
|
357
|
+
maxLength?: number | undefined;
|
|
358
|
+
condition?: string | undefined;
|
|
359
|
+
id?: string | undefined;
|
|
360
|
+
model?: string | undefined;
|
|
361
|
+
temperature?: number | undefined;
|
|
362
|
+
promptTemplate?: string | undefined;
|
|
363
|
+
inputContext?: Record<string, any> | undefined;
|
|
364
|
+
classes?: string[] | undefined;
|
|
365
|
+
extractionSchema?: Record<string, any> | undefined;
|
|
366
|
+
fallbackValue?: any;
|
|
367
|
+
}[];
|
|
368
|
+
executionMode: "parallel" | "sequential";
|
|
369
|
+
stopOnError: boolean;
|
|
370
|
+
enableLogging: boolean;
|
|
371
|
+
enableMetrics: boolean;
|
|
372
|
+
description?: string | undefined;
|
|
373
|
+
timeout?: number | undefined;
|
|
374
|
+
owner?: string | undefined;
|
|
375
|
+
schedule?: {
|
|
376
|
+
type: "cron" | "interval" | "daily" | "weekly" | "monthly";
|
|
377
|
+
timezone: string;
|
|
378
|
+
time?: string | undefined;
|
|
379
|
+
cron?: string | undefined;
|
|
380
|
+
interval?: number | undefined;
|
|
381
|
+
dayOfWeek?: number | undefined;
|
|
382
|
+
dayOfMonth?: number | undefined;
|
|
383
|
+
} | undefined;
|
|
384
|
+
createdAt?: string | undefined;
|
|
385
|
+
updatedAt?: string | undefined;
|
|
386
|
+
tags?: string[] | undefined;
|
|
387
|
+
category?: string | undefined;
|
|
388
|
+
fieldConditions?: {
|
|
389
|
+
field: string;
|
|
390
|
+
operator: "changed" | "changed_to" | "changed_from" | "is" | "is_not";
|
|
391
|
+
value?: any;
|
|
392
|
+
}[] | undefined;
|
|
393
|
+
webhookConfig?: {
|
|
394
|
+
headers?: Record<string, string> | undefined;
|
|
395
|
+
secret?: string | undefined;
|
|
396
|
+
} | undefined;
|
|
397
|
+
entryCriteria?: string | undefined;
|
|
398
|
+
postActions?: {
|
|
399
|
+
type: "field_update" | "create_record" | "webhook" | "trigger_flow" | "send_email" | "update_related";
|
|
400
|
+
name: string;
|
|
401
|
+
config: Record<string, any>;
|
|
402
|
+
condition?: string | undefined;
|
|
403
|
+
}[] | undefined;
|
|
404
|
+
notifyOnFailure?: string[] | undefined;
|
|
405
|
+
}, {
|
|
406
|
+
label: string;
|
|
407
|
+
name: string;
|
|
408
|
+
objectName: string;
|
|
409
|
+
trigger: "manual" | "webhook" | "record_created" | "record_updated" | "field_changed" | "scheduled" | "batch";
|
|
410
|
+
aiTasks: {
|
|
411
|
+
type: "classify" | "extract" | "summarize" | "generate" | "predict" | "translate" | "sentiment" | "entity_recognition" | "anomaly_detection" | "recommendation";
|
|
412
|
+
name: string;
|
|
413
|
+
inputFields: string[];
|
|
414
|
+
outputField: string;
|
|
415
|
+
description?: string | undefined;
|
|
416
|
+
maxLength?: number | undefined;
|
|
417
|
+
active?: boolean | undefined;
|
|
418
|
+
condition?: string | undefined;
|
|
419
|
+
id?: string | undefined;
|
|
420
|
+
model?: string | undefined;
|
|
421
|
+
temperature?: number | undefined;
|
|
422
|
+
promptTemplate?: string | undefined;
|
|
423
|
+
inputContext?: Record<string, any> | undefined;
|
|
424
|
+
outputFormat?: "number" | "boolean" | "text" | "array" | "json" | undefined;
|
|
425
|
+
classes?: string[] | undefined;
|
|
426
|
+
multiClass?: boolean | undefined;
|
|
427
|
+
extractionSchema?: Record<string, any> | undefined;
|
|
428
|
+
fallbackValue?: any;
|
|
429
|
+
retryAttempts?: number | undefined;
|
|
430
|
+
}[];
|
|
431
|
+
description?: string | undefined;
|
|
432
|
+
active?: boolean | undefined;
|
|
433
|
+
timeout?: number | undefined;
|
|
434
|
+
owner?: string | undefined;
|
|
435
|
+
schedule?: {
|
|
436
|
+
time?: string | undefined;
|
|
437
|
+
type?: "cron" | "interval" | "daily" | "weekly" | "monthly" | undefined;
|
|
438
|
+
timezone?: string | undefined;
|
|
439
|
+
cron?: string | undefined;
|
|
440
|
+
interval?: number | undefined;
|
|
441
|
+
dayOfWeek?: number | undefined;
|
|
442
|
+
dayOfMonth?: number | undefined;
|
|
443
|
+
} | undefined;
|
|
444
|
+
priority?: "normal" | "critical" | "low" | "high" | undefined;
|
|
445
|
+
version?: string | undefined;
|
|
446
|
+
createdAt?: string | undefined;
|
|
447
|
+
updatedAt?: string | undefined;
|
|
448
|
+
tags?: string[] | undefined;
|
|
449
|
+
category?: string | undefined;
|
|
450
|
+
fieldConditions?: {
|
|
451
|
+
field: string;
|
|
452
|
+
value?: any;
|
|
453
|
+
operator?: "changed" | "changed_to" | "changed_from" | "is" | "is_not" | undefined;
|
|
454
|
+
}[] | undefined;
|
|
455
|
+
webhookConfig?: {
|
|
456
|
+
headers?: Record<string, string> | undefined;
|
|
457
|
+
secret?: string | undefined;
|
|
458
|
+
} | undefined;
|
|
459
|
+
entryCriteria?: string | undefined;
|
|
460
|
+
postActions?: {
|
|
461
|
+
type: "field_update" | "create_record" | "webhook" | "trigger_flow" | "send_email" | "update_related";
|
|
462
|
+
name: string;
|
|
463
|
+
config: Record<string, any>;
|
|
464
|
+
condition?: string | undefined;
|
|
465
|
+
}[] | undefined;
|
|
466
|
+
executionMode?: "parallel" | "sequential" | undefined;
|
|
467
|
+
stopOnError?: boolean | undefined;
|
|
468
|
+
enableLogging?: boolean | undefined;
|
|
469
|
+
enableMetrics?: boolean | undefined;
|
|
470
|
+
notifyOnFailure?: string[] | undefined;
|
|
471
|
+
}>;
|
|
472
|
+
/**
|
|
473
|
+
* Batch AI Workflow Execution Request
|
|
474
|
+
* For processing multiple records at once
|
|
475
|
+
*/
|
|
476
|
+
export declare const BatchAIWorkflowExecutionSchema: z.ZodObject<{
|
|
477
|
+
workflowName: z.ZodString;
|
|
478
|
+
recordIds: z.ZodArray<z.ZodString, "many">;
|
|
479
|
+
batchSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
480
|
+
parallelism: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
481
|
+
priority: z.ZodDefault<z.ZodOptional<z.ZodEnum<["low", "normal", "high"]>>>;
|
|
482
|
+
}, "strip", z.ZodTypeAny, {
|
|
483
|
+
priority: "normal" | "low" | "high";
|
|
484
|
+
batchSize: number;
|
|
485
|
+
workflowName: string;
|
|
486
|
+
recordIds: string[];
|
|
487
|
+
parallelism: number;
|
|
488
|
+
}, {
|
|
489
|
+
workflowName: string;
|
|
490
|
+
recordIds: string[];
|
|
491
|
+
priority?: "normal" | "low" | "high" | undefined;
|
|
492
|
+
batchSize?: number | undefined;
|
|
493
|
+
parallelism?: number | undefined;
|
|
494
|
+
}>;
|
|
495
|
+
/**
|
|
496
|
+
* AI Workflow Execution Result
|
|
497
|
+
* Result of a single workflow execution
|
|
498
|
+
*/
|
|
499
|
+
export declare const AIWorkflowExecutionResultSchema: z.ZodObject<{
|
|
500
|
+
workflowName: z.ZodString;
|
|
501
|
+
recordId: z.ZodString;
|
|
502
|
+
status: z.ZodEnum<["success", "partial_success", "failed", "skipped"]>;
|
|
503
|
+
executionTime: z.ZodNumber;
|
|
504
|
+
tasksExecuted: z.ZodNumber;
|
|
505
|
+
tasksSucceeded: z.ZodNumber;
|
|
506
|
+
tasksFailed: z.ZodNumber;
|
|
507
|
+
taskResults: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
508
|
+
taskId: z.ZodOptional<z.ZodString>;
|
|
509
|
+
taskName: z.ZodString;
|
|
510
|
+
status: z.ZodEnum<["success", "failed", "skipped"]>;
|
|
511
|
+
output: z.ZodOptional<z.ZodAny>;
|
|
512
|
+
error: z.ZodOptional<z.ZodString>;
|
|
513
|
+
executionTime: z.ZodOptional<z.ZodNumber>;
|
|
514
|
+
modelUsed: z.ZodOptional<z.ZodString>;
|
|
515
|
+
tokensUsed: z.ZodOptional<z.ZodNumber>;
|
|
516
|
+
}, "strip", z.ZodTypeAny, {
|
|
517
|
+
status: "success" | "failed" | "skipped";
|
|
518
|
+
taskName: string;
|
|
519
|
+
error?: string | undefined;
|
|
520
|
+
output?: any;
|
|
521
|
+
tokensUsed?: number | undefined;
|
|
522
|
+
executionTime?: number | undefined;
|
|
523
|
+
taskId?: string | undefined;
|
|
524
|
+
modelUsed?: string | undefined;
|
|
525
|
+
}, {
|
|
526
|
+
status: "success" | "failed" | "skipped";
|
|
527
|
+
taskName: string;
|
|
528
|
+
error?: string | undefined;
|
|
529
|
+
output?: any;
|
|
530
|
+
tokensUsed?: number | undefined;
|
|
531
|
+
executionTime?: number | undefined;
|
|
532
|
+
taskId?: string | undefined;
|
|
533
|
+
modelUsed?: string | undefined;
|
|
534
|
+
}>, "many">>;
|
|
535
|
+
error: z.ZodOptional<z.ZodString>;
|
|
536
|
+
startedAt: z.ZodString;
|
|
537
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
538
|
+
}, "strip", z.ZodTypeAny, {
|
|
539
|
+
status: "success" | "failed" | "partial_success" | "skipped";
|
|
540
|
+
startedAt: string;
|
|
541
|
+
executionTime: number;
|
|
542
|
+
workflowName: string;
|
|
543
|
+
recordId: string;
|
|
544
|
+
tasksExecuted: number;
|
|
545
|
+
tasksSucceeded: number;
|
|
546
|
+
tasksFailed: number;
|
|
547
|
+
error?: string | undefined;
|
|
548
|
+
completedAt?: string | undefined;
|
|
549
|
+
taskResults?: {
|
|
550
|
+
status: "success" | "failed" | "skipped";
|
|
551
|
+
taskName: string;
|
|
552
|
+
error?: string | undefined;
|
|
553
|
+
output?: any;
|
|
554
|
+
tokensUsed?: number | undefined;
|
|
555
|
+
executionTime?: number | undefined;
|
|
556
|
+
taskId?: string | undefined;
|
|
557
|
+
modelUsed?: string | undefined;
|
|
558
|
+
}[] | undefined;
|
|
559
|
+
}, {
|
|
560
|
+
status: "success" | "failed" | "partial_success" | "skipped";
|
|
561
|
+
startedAt: string;
|
|
562
|
+
executionTime: number;
|
|
563
|
+
workflowName: string;
|
|
564
|
+
recordId: string;
|
|
565
|
+
tasksExecuted: number;
|
|
566
|
+
tasksSucceeded: number;
|
|
567
|
+
tasksFailed: number;
|
|
568
|
+
error?: string | undefined;
|
|
569
|
+
completedAt?: string | undefined;
|
|
570
|
+
taskResults?: {
|
|
571
|
+
status: "success" | "failed" | "skipped";
|
|
572
|
+
taskName: string;
|
|
573
|
+
error?: string | undefined;
|
|
574
|
+
output?: any;
|
|
575
|
+
tokensUsed?: number | undefined;
|
|
576
|
+
executionTime?: number | undefined;
|
|
577
|
+
taskId?: string | undefined;
|
|
578
|
+
modelUsed?: string | undefined;
|
|
579
|
+
}[] | undefined;
|
|
580
|
+
}>;
|
|
581
|
+
export type AIWorkflowTrigger = z.infer<typeof AIWorkflowTriggerSchema>;
|
|
582
|
+
export type AITaskType = z.infer<typeof AITaskTypeSchema>;
|
|
583
|
+
export type AITask = z.infer<typeof AITaskSchema>;
|
|
584
|
+
export type WorkflowFieldCondition = z.infer<typeof WorkflowFieldConditionSchema>;
|
|
585
|
+
export type WorkflowSchedule = z.infer<typeof WorkflowScheduleSchema>;
|
|
586
|
+
export type PostProcessingAction = z.infer<typeof PostProcessingActionSchema>;
|
|
587
|
+
export type AIWorkflowAutomation = z.infer<typeof AIWorkflowAutomationSchema>;
|
|
588
|
+
export type BatchAIWorkflowExecution = z.infer<typeof BatchAIWorkflowExecutionSchema>;
|
|
589
|
+
export type AIWorkflowExecutionResult = z.infer<typeof AIWorkflowExecutionResultSchema>;
|
|
590
|
+
//# sourceMappingURL=workflow-automation.zod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow-automation.zod.d.ts","sourceRoot":"","sources":["../../src/ai/workflow-automation.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;GAaG;AAEH;;;GAGG;AACH,eAAO,MAAM,uBAAuB,6GAQlC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,gBAAgB,+JAW3B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,YAAY;IACvB,oBAAoB;;;;IAKpB,0BAA0B;;;IAI1B,0BAA0B;;;IAI1B,2BAA2B;;;IAI3B,sCAAsC;;;IAItC,kCAAkC;;IAGlC,kCAAkC;;;IAIlC,qBAAqB;;;IAIrB,4BAA4B;;IAG5B,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGpB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;EAIvC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;EAQjC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;EAKrC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,0BAA0B;IACrC,eAAe;;;;IAKf,oBAAoB;;IAGpB,4BAA4B;;IAG5B,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQrC,qBAAqB;;IAGrB,eAAe;;QAtGf,oBAAoB;;;;QAKpB,0BAA0B;;;QAI1B,0BAA0B;;;QAI1B,2BAA2B;;;QAI3B,sCAAsC;;;QAItC,kCAAkC;;QAGlC,kCAAkC;;;QAIlC,qBAAqB;;;QAIrB,4BAA4B;;QAG5B,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAsEpB,sBAAsB;;;;;;;;;;;;;;;;;IAGtB,wBAAwB;;;IAIxB,2BAA2B;;;IAI3B,2BAA2B;;;;IAK3B,aAAa;;;IAIb,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMf,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;EAMzC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB1C,CAAC;AAGH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAClD,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC;AACtF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC"}
|