@objectstack/spec 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +8 -0
- package/dist/ai/index.d.ts.map +1 -1
- package/dist/ai/index.js +8 -0
- package/dist/ai/model-registry.zod.d.ts +53 -53
- package/dist/ai/nlq.zod.d.ts +24 -24
- 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 +22 -22
- 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/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/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/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/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.zod.d.ts +8 -8
- 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 +4 -4
- package/dist/system/index.d.ts +5 -0
- package/dist/system/index.d.ts.map +1 -1
- package/dist/system/index.js +5 -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/manifest.zod.d.ts +10 -10
- 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 +8 -8
- package/dist/ui/theme.zod.d.ts +12 -12
- 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/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/EvaluationMetrics.json +64 -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/ModelDrift.json +73 -0
- package/json-schema/ai/ModelFeature.json +71 -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/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/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/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/system/CronSchedule.json +29 -0
- package/json-schema/system/DatabaseLevelIsolationStrategy.json +139 -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/Job.json +127 -0
- package/json-schema/system/JobExecution.json +49 -0
- package/json-schema/system/JobExecutionStatus.json +15 -0
- package/json-schema/system/LevelIsolationStrategySchema.json +93 -0
- package/json-schema/system/OnceSchedule.json +25 -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/system/Schedule.json +71 -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/{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 +12 -12
- 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/{ChunkingStrategy.json → ai/ChunkingStrategy.json} +0 -0
- /package/json-schema/{DocumentChunk.json → ai/DocumentChunk.json} +0 -0
- /package/json-schema/{DocumentLoaderConfig.json → ai/DocumentLoaderConfig.json} +0 -0
- /package/json-schema/{DocumentMetadata.json → ai/DocumentMetadata.json} +0 -0
- /package/json-schema/{EmbeddingModel.json → ai/EmbeddingModel.json} +0 -0
- /package/json-schema/{Entity.json → ai/Entity.json} +0 -0
- /package/json-schema/{FieldSynonymConfig.json → ai/FieldSynonymConfig.json} +0 -0
- /package/json-schema/{ModelCapability.json → ai/ModelCapability.json} +0 -0
- /package/json-schema/{ModelConfig.json → ai/ModelConfig.json} +0 -0
- /package/json-schema/{ModelLimits.json → ai/ModelLimits.json} +0 -0
- /package/json-schema/{ModelPricing.json → ai/ModelPricing.json} +0 -0
- /package/json-schema/{ModelProvider.json → ai/ModelProvider.json} +0 -0
- /package/json-schema/{ModelRegistry.json → ai/ModelRegistry.json} +0 -0
- /package/json-schema/{ModelRegistryEntry.json → ai/ModelRegistryEntry.json} +0 -0
- /package/json-schema/{ModelSelectionCriteria.json → ai/ModelSelectionCriteria.json} +0 -0
- /package/json-schema/{NLQAnalytics.json → ai/NLQAnalytics.json} +0 -0
- /package/json-schema/{NLQFieldMapping.json → ai/NLQFieldMapping.json} +0 -0
- /package/json-schema/{NLQModelConfig.json → ai/NLQModelConfig.json} +0 -0
- /package/json-schema/{NLQParseResult.json → ai/NLQParseResult.json} +0 -0
- /package/json-schema/{NLQRequest.json → ai/NLQRequest.json} +0 -0
- /package/json-schema/{NLQResponse.json → ai/NLQResponse.json} +0 -0
- /package/json-schema/{NLQTrainingExample.json → ai/NLQTrainingExample.json} +0 -0
- /package/json-schema/{PromptTemplate.json → ai/PromptTemplate.json} +0 -0
- /package/json-schema/{PromptVariable.json → ai/PromptVariable.json} +0 -0
- /package/json-schema/{QueryContext.json → ai/QueryContext.json} +0 -0
- /package/json-schema/{QueryIntent.json → ai/QueryIntent.json} +0 -0
- /package/json-schema/{QueryTemplate.json → ai/QueryTemplate.json} +0 -0
- /package/json-schema/{RAGPipelineConfig.json → ai/RAGPipelineConfig.json} +0 -0
- /package/json-schema/{RAGPipelineStatus.json → ai/RAGPipelineStatus.json} +0 -0
- /package/json-schema/{RAGQueryRequest.json → ai/RAGQueryRequest.json} +0 -0
- /package/json-schema/{RAGQueryResponse.json → ai/RAGQueryResponse.json} +0 -0
- /package/json-schema/{RerankingConfig.json → ai/RerankingConfig.json} +0 -0
- /package/json-schema/{RetrievalStrategy.json → ai/RetrievalStrategy.json} +0 -0
- /package/json-schema/{Timeframe.json → ai/Timeframe.json} +0 -0
- /package/json-schema/{VectorStoreConfig.json → ai/VectorStoreConfig.json} +0 -0
- /package/json-schema/{VectorStoreProvider.json → ai/VectorStoreProvider.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/{Account.json → system/Account.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/{AuthConfig.json → system/AuthConfig.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/{DatabaseMapping.json → system/DatabaseMapping.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/{EnterpriseAuthConfig.json → system/EnterpriseAuthConfig.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/{Invitation.json → system/Invitation.json} +0 -0
- /package/json-schema/{InvitationStatus.json → system/InvitationStatus.json} +0 -0
- /package/json-schema/{LDAPConfig.json → system/LDAPConfig.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/{Member.json → system/Member.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/{OIDCConfig.json → system/OIDCConfig.json} +0 -0
- /package/json-schema/{ObjectQLClient.json → system/ObjectQLClient.json} +0 -0
- /package/json-schema/{Organization.json → system/Organization.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/{SAMLConfig.json → system/SAMLConfig.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/{Session.json → system/Session.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/{StandardAuthProvider.json → system/StandardAuthProvider.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/{User.json → system/User.json} +0 -0
- /package/json-schema/{UserFieldMapping.json → system/UserFieldMapping.json} +0 -0
- /package/json-schema/{VerificationToken.json → system/VerificationToken.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
|
@@ -1096,11 +1096,11 @@ export declare const DriverInterfaceSchema: z.ZodObject<{
|
|
|
1096
1096
|
id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
1097
1097
|
data: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
1098
1098
|
}, "strip", z.ZodTypeAny, {
|
|
1099
|
-
id: string | number;
|
|
1100
1099
|
data: Record<string, any>;
|
|
1101
|
-
}, {
|
|
1102
1100
|
id: string | number;
|
|
1101
|
+
}, {
|
|
1103
1102
|
data: Record<string, any>;
|
|
1103
|
+
id: string | number;
|
|
1104
1104
|
}>, "many">, z.ZodOptional<z.ZodObject<{
|
|
1105
1105
|
/**
|
|
1106
1106
|
* Transaction handle/identifier.
|
|
@@ -1336,8 +1336,8 @@ export declare const DriverInterfaceSchema: z.ZodObject<{
|
|
|
1336
1336
|
skipCache?: boolean | undefined;
|
|
1337
1337
|
} | undefined, ...args: unknown[]) => Promise<Record<string, any>[]>;
|
|
1338
1338
|
bulkUpdate: (args_0: string, args_1: {
|
|
1339
|
-
id: string | number;
|
|
1340
1339
|
data: Record<string, any>;
|
|
1340
|
+
id: string | number;
|
|
1341
1341
|
}[], args_2: {
|
|
1342
1342
|
timeout?: number | undefined;
|
|
1343
1343
|
transaction?: any;
|
|
@@ -1532,8 +1532,8 @@ export declare const DriverInterfaceSchema: z.ZodObject<{
|
|
|
1532
1532
|
skipCache?: boolean | undefined;
|
|
1533
1533
|
} | undefined, ...args: unknown[]) => Promise<Record<string, any>[]>;
|
|
1534
1534
|
bulkUpdate: (args_0: string, args_1: {
|
|
1535
|
-
id: string | number;
|
|
1536
1535
|
data: Record<string, any>;
|
|
1536
|
+
id: string | number;
|
|
1537
1537
|
}[], args_2: {
|
|
1538
1538
|
timeout?: number | undefined;
|
|
1539
1539
|
transaction?: any;
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Event Metadata Schema
|
|
4
|
+
* Metadata associated with every event
|
|
5
|
+
*/
|
|
6
|
+
export declare const EventMetadataSchema: z.ZodObject<{
|
|
7
|
+
source: z.ZodString;
|
|
8
|
+
timestamp: z.ZodString;
|
|
9
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
10
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
source: string;
|
|
13
|
+
timestamp: string;
|
|
14
|
+
userId?: string | undefined;
|
|
15
|
+
tenantId?: string | undefined;
|
|
16
|
+
}, {
|
|
17
|
+
source: string;
|
|
18
|
+
timestamp: string;
|
|
19
|
+
userId?: string | undefined;
|
|
20
|
+
tenantId?: string | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* Event Schema
|
|
24
|
+
* Base schema for all events in the system
|
|
25
|
+
*/
|
|
26
|
+
export declare const EventSchema: z.ZodObject<{
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
payload: z.ZodAny;
|
|
29
|
+
metadata: z.ZodObject<{
|
|
30
|
+
source: z.ZodString;
|
|
31
|
+
timestamp: z.ZodString;
|
|
32
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
33
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
source: string;
|
|
36
|
+
timestamp: string;
|
|
37
|
+
userId?: string | undefined;
|
|
38
|
+
tenantId?: string | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
source: string;
|
|
41
|
+
timestamp: string;
|
|
42
|
+
userId?: string | undefined;
|
|
43
|
+
tenantId?: string | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
name: string;
|
|
47
|
+
metadata: {
|
|
48
|
+
source: string;
|
|
49
|
+
timestamp: string;
|
|
50
|
+
userId?: string | undefined;
|
|
51
|
+
tenantId?: string | undefined;
|
|
52
|
+
};
|
|
53
|
+
payload?: any;
|
|
54
|
+
}, {
|
|
55
|
+
name: string;
|
|
56
|
+
metadata: {
|
|
57
|
+
source: string;
|
|
58
|
+
timestamp: string;
|
|
59
|
+
userId?: string | undefined;
|
|
60
|
+
tenantId?: string | undefined;
|
|
61
|
+
};
|
|
62
|
+
payload?: any;
|
|
63
|
+
}>;
|
|
64
|
+
export type Event = z.infer<typeof EventSchema>;
|
|
65
|
+
/**
|
|
66
|
+
* Event Handler Schema
|
|
67
|
+
* Defines how to handle a specific event
|
|
68
|
+
*/
|
|
69
|
+
export declare const EventHandlerSchema: z.ZodObject<{
|
|
70
|
+
eventName: z.ZodString;
|
|
71
|
+
handler: z.ZodFunction<z.ZodTuple<[z.ZodObject<{
|
|
72
|
+
name: z.ZodString;
|
|
73
|
+
payload: z.ZodAny;
|
|
74
|
+
metadata: z.ZodObject<{
|
|
75
|
+
source: z.ZodString;
|
|
76
|
+
timestamp: z.ZodString;
|
|
77
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
78
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
source: string;
|
|
81
|
+
timestamp: string;
|
|
82
|
+
userId?: string | undefined;
|
|
83
|
+
tenantId?: string | undefined;
|
|
84
|
+
}, {
|
|
85
|
+
source: string;
|
|
86
|
+
timestamp: string;
|
|
87
|
+
userId?: string | undefined;
|
|
88
|
+
tenantId?: string | undefined;
|
|
89
|
+
}>;
|
|
90
|
+
}, "strip", z.ZodTypeAny, {
|
|
91
|
+
name: string;
|
|
92
|
+
metadata: {
|
|
93
|
+
source: string;
|
|
94
|
+
timestamp: string;
|
|
95
|
+
userId?: string | undefined;
|
|
96
|
+
tenantId?: string | undefined;
|
|
97
|
+
};
|
|
98
|
+
payload?: any;
|
|
99
|
+
}, {
|
|
100
|
+
name: string;
|
|
101
|
+
metadata: {
|
|
102
|
+
source: string;
|
|
103
|
+
timestamp: string;
|
|
104
|
+
userId?: string | undefined;
|
|
105
|
+
tenantId?: string | undefined;
|
|
106
|
+
};
|
|
107
|
+
payload?: any;
|
|
108
|
+
}>], z.ZodUnknown>, z.ZodPromise<z.ZodVoid>>;
|
|
109
|
+
priority: z.ZodDefault<z.ZodNumber>;
|
|
110
|
+
async: z.ZodDefault<z.ZodBoolean>;
|
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
|
112
|
+
async: boolean;
|
|
113
|
+
priority: number;
|
|
114
|
+
eventName: string;
|
|
115
|
+
handler: (args_0: {
|
|
116
|
+
name: string;
|
|
117
|
+
metadata: {
|
|
118
|
+
source: string;
|
|
119
|
+
timestamp: string;
|
|
120
|
+
userId?: string | undefined;
|
|
121
|
+
tenantId?: string | undefined;
|
|
122
|
+
};
|
|
123
|
+
payload?: any;
|
|
124
|
+
}, ...args: unknown[]) => Promise<void>;
|
|
125
|
+
}, {
|
|
126
|
+
eventName: string;
|
|
127
|
+
handler: (args_0: {
|
|
128
|
+
name: string;
|
|
129
|
+
metadata: {
|
|
130
|
+
source: string;
|
|
131
|
+
timestamp: string;
|
|
132
|
+
userId?: string | undefined;
|
|
133
|
+
tenantId?: string | undefined;
|
|
134
|
+
};
|
|
135
|
+
payload?: any;
|
|
136
|
+
}, ...args: unknown[]) => Promise<void>;
|
|
137
|
+
async?: boolean | undefined;
|
|
138
|
+
priority?: number | undefined;
|
|
139
|
+
}>;
|
|
140
|
+
export type EventHandler = z.infer<typeof EventHandlerSchema>;
|
|
141
|
+
/**
|
|
142
|
+
* Event Route Schema
|
|
143
|
+
* Routes events from one pattern to multiple targets with optional transformation
|
|
144
|
+
*/
|
|
145
|
+
export declare const EventRouteSchema: z.ZodObject<{
|
|
146
|
+
from: z.ZodString;
|
|
147
|
+
to: z.ZodArray<z.ZodString, "many">;
|
|
148
|
+
transform: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
|
|
149
|
+
}, "strip", z.ZodTypeAny, {
|
|
150
|
+
to: string[];
|
|
151
|
+
from: string;
|
|
152
|
+
transform?: ((...args: unknown[]) => unknown) | undefined;
|
|
153
|
+
}, {
|
|
154
|
+
to: string[];
|
|
155
|
+
from: string;
|
|
156
|
+
transform?: ((...args: unknown[]) => unknown) | undefined;
|
|
157
|
+
}>;
|
|
158
|
+
export type EventRoute = z.infer<typeof EventRouteSchema>;
|
|
159
|
+
/**
|
|
160
|
+
* Event Persistence Schema
|
|
161
|
+
* Configuration for persisting events to storage
|
|
162
|
+
*/
|
|
163
|
+
export declare const EventPersistenceSchema: z.ZodObject<{
|
|
164
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
165
|
+
retention: z.ZodNumber;
|
|
166
|
+
filter: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
|
|
167
|
+
}, "strip", z.ZodTypeAny, {
|
|
168
|
+
enabled: boolean;
|
|
169
|
+
retention: number;
|
|
170
|
+
filter?: ((...args: unknown[]) => unknown) | undefined;
|
|
171
|
+
}, {
|
|
172
|
+
retention: number;
|
|
173
|
+
filter?: ((...args: unknown[]) => unknown) | undefined;
|
|
174
|
+
enabled?: boolean | undefined;
|
|
175
|
+
}>;
|
|
176
|
+
export type EventPersistence = z.infer<typeof EventPersistenceSchema>;
|
|
177
|
+
//# sourceMappingURL=events.zod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.zod.d.ts","sourceRoot":"","sources":["../../src/system/events.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;EAK9B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAItB,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEhD;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;EAI3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;EAIjC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EventPersistenceSchema = exports.EventRouteSchema = exports.EventHandlerSchema = exports.EventSchema = exports.EventMetadataSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
/**
|
|
6
|
+
* Event Metadata Schema
|
|
7
|
+
* Metadata associated with every event
|
|
8
|
+
*/
|
|
9
|
+
exports.EventMetadataSchema = zod_1.z.object({
|
|
10
|
+
source: zod_1.z.string().describe('Event source (e.g., plugin name, system component)'),
|
|
11
|
+
timestamp: zod_1.z.string().datetime().describe('ISO 8601 datetime when event was created'),
|
|
12
|
+
userId: zod_1.z.string().optional().describe('User who triggered the event'),
|
|
13
|
+
tenantId: zod_1.z.string().optional().describe('Tenant identifier for multi-tenant systems'),
|
|
14
|
+
});
|
|
15
|
+
/**
|
|
16
|
+
* Event Schema
|
|
17
|
+
* Base schema for all events in the system
|
|
18
|
+
*/
|
|
19
|
+
exports.EventSchema = zod_1.z.object({
|
|
20
|
+
name: zod_1.z.string().regex(/^[a-z_][a-z0-9_.]*$/).describe('Event name (snake_case with dots, e.g., user.created)'),
|
|
21
|
+
payload: zod_1.z.any().describe('Event payload schema'),
|
|
22
|
+
metadata: exports.EventMetadataSchema.describe('Event metadata'),
|
|
23
|
+
});
|
|
24
|
+
/**
|
|
25
|
+
* Event Handler Schema
|
|
26
|
+
* Defines how to handle a specific event
|
|
27
|
+
*/
|
|
28
|
+
exports.EventHandlerSchema = zod_1.z.object({
|
|
29
|
+
eventName: zod_1.z.string().describe('Name of event to handle (supports wildcards like user.*)'),
|
|
30
|
+
handler: zod_1.z.function().args(exports.EventSchema).returns(zod_1.z.promise(zod_1.z.void())).describe('Handler function'),
|
|
31
|
+
priority: zod_1.z.number().int().default(0).describe('Execution priority (lower numbers execute first)'),
|
|
32
|
+
async: zod_1.z.boolean().default(true).describe('Execute in background (true) or block (false)'),
|
|
33
|
+
});
|
|
34
|
+
/**
|
|
35
|
+
* Event Route Schema
|
|
36
|
+
* Routes events from one pattern to multiple targets with optional transformation
|
|
37
|
+
*/
|
|
38
|
+
exports.EventRouteSchema = zod_1.z.object({
|
|
39
|
+
from: zod_1.z.string().describe('Source event pattern (supports wildcards, e.g., user.* or *.created)'),
|
|
40
|
+
to: zod_1.z.array(zod_1.z.string()).describe('Target event names to route to'),
|
|
41
|
+
transform: zod_1.z.function().optional().describe('Optional function to transform payload'),
|
|
42
|
+
});
|
|
43
|
+
/**
|
|
44
|
+
* Event Persistence Schema
|
|
45
|
+
* Configuration for persisting events to storage
|
|
46
|
+
*/
|
|
47
|
+
exports.EventPersistenceSchema = zod_1.z.object({
|
|
48
|
+
enabled: zod_1.z.boolean().default(false).describe('Enable event persistence'),
|
|
49
|
+
retention: zod_1.z.number().int().positive().describe('Days to retain persisted events'),
|
|
50
|
+
filter: zod_1.z.function().optional().describe('Optional filter function to select which events to persist'),
|
|
51
|
+
});
|
|
@@ -121,12 +121,12 @@ export declare const AccountSchema: z.ZodObject<{
|
|
|
121
121
|
*/
|
|
122
122
|
updatedAt: z.ZodDate;
|
|
123
123
|
}, "strip", z.ZodTypeAny, {
|
|
124
|
-
type: "email" | "
|
|
124
|
+
type: "email" | "credentials" | "oauth" | "oidc" | "saml" | "ldap";
|
|
125
|
+
provider: string;
|
|
125
126
|
id: string;
|
|
126
127
|
userId: string;
|
|
127
128
|
createdAt: Date;
|
|
128
129
|
updatedAt: Date;
|
|
129
|
-
provider: string;
|
|
130
130
|
providerAccountId: string;
|
|
131
131
|
scope?: string | undefined;
|
|
132
132
|
refreshToken?: string | undefined;
|
|
@@ -136,12 +136,12 @@ export declare const AccountSchema: z.ZodObject<{
|
|
|
136
136
|
idToken?: string | undefined;
|
|
137
137
|
sessionState?: string | undefined;
|
|
138
138
|
}, {
|
|
139
|
-
type: "email" | "
|
|
139
|
+
type: "email" | "credentials" | "oauth" | "oidc" | "saml" | "ldap";
|
|
140
|
+
provider: string;
|
|
140
141
|
id: string;
|
|
141
142
|
userId: string;
|
|
142
143
|
createdAt: Date;
|
|
143
144
|
updatedAt: Date;
|
|
144
|
-
provider: string;
|
|
145
145
|
providerAccountId: string;
|
|
146
146
|
scope?: string | undefined;
|
|
147
147
|
refreshToken?: string | undefined;
|
package/dist/system/index.d.ts
CHANGED
|
@@ -17,12 +17,17 @@ export * from './organization.zod';
|
|
|
17
17
|
export * from './policy.zod';
|
|
18
18
|
export * from './role.zod';
|
|
19
19
|
export * from './territory.zod';
|
|
20
|
+
export * from './tenant.zod';
|
|
21
|
+
export * from './audit.zod';
|
|
20
22
|
export * from './license.zod';
|
|
21
23
|
export * from './webhook.zod';
|
|
22
24
|
export * from './translation.zod';
|
|
23
25
|
export * from './driver.zod';
|
|
24
26
|
export * from './discovery.zod';
|
|
25
27
|
export * from './plugin.zod';
|
|
28
|
+
export * from './realtime.zod';
|
|
29
|
+
export * from './events.zod';
|
|
30
|
+
export * from './job.zod';
|
|
26
31
|
export * from './constants';
|
|
27
32
|
export * from './types';
|
|
28
33
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/system/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/system/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
package/dist/system/index.js
CHANGED
|
@@ -33,11 +33,16 @@ __exportStar(require("./organization.zod"), exports);
|
|
|
33
33
|
__exportStar(require("./policy.zod"), exports);
|
|
34
34
|
__exportStar(require("./role.zod"), exports);
|
|
35
35
|
__exportStar(require("./territory.zod"), exports);
|
|
36
|
+
__exportStar(require("./tenant.zod"), exports);
|
|
37
|
+
__exportStar(require("./audit.zod"), exports);
|
|
36
38
|
__exportStar(require("./license.zod"), exports);
|
|
37
39
|
__exportStar(require("./webhook.zod"), exports);
|
|
38
40
|
__exportStar(require("./translation.zod"), exports);
|
|
39
41
|
__exportStar(require("./driver.zod"), exports);
|
|
40
42
|
__exportStar(require("./discovery.zod"), exports);
|
|
41
43
|
__exportStar(require("./plugin.zod"), exports);
|
|
44
|
+
__exportStar(require("./realtime.zod"), exports);
|
|
45
|
+
__exportStar(require("./events.zod"), exports);
|
|
46
|
+
__exportStar(require("./job.zod"), exports);
|
|
42
47
|
__exportStar(require("./constants"), exports);
|
|
43
48
|
__exportStar(require("./types"), exports);
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Cron Schedule Schema
|
|
4
|
+
* Schedule jobs using cron expressions
|
|
5
|
+
*/
|
|
6
|
+
export declare const CronScheduleSchema: z.ZodObject<{
|
|
7
|
+
type: z.ZodLiteral<"cron">;
|
|
8
|
+
expression: z.ZodString;
|
|
9
|
+
timezone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
type: "cron";
|
|
12
|
+
expression: string;
|
|
13
|
+
timezone: string;
|
|
14
|
+
}, {
|
|
15
|
+
type: "cron";
|
|
16
|
+
expression: string;
|
|
17
|
+
timezone?: string | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
/**
|
|
20
|
+
* Interval Schedule Schema
|
|
21
|
+
* Schedule jobs at fixed intervals
|
|
22
|
+
*/
|
|
23
|
+
export declare const IntervalScheduleSchema: z.ZodObject<{
|
|
24
|
+
type: z.ZodLiteral<"interval">;
|
|
25
|
+
intervalMs: z.ZodNumber;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
type: "interval";
|
|
28
|
+
intervalMs: number;
|
|
29
|
+
}, {
|
|
30
|
+
type: "interval";
|
|
31
|
+
intervalMs: number;
|
|
32
|
+
}>;
|
|
33
|
+
/**
|
|
34
|
+
* Once Schedule Schema
|
|
35
|
+
* Schedule a job to run once at a specific time
|
|
36
|
+
*/
|
|
37
|
+
export declare const OnceScheduleSchema: z.ZodObject<{
|
|
38
|
+
type: z.ZodLiteral<"once">;
|
|
39
|
+
at: z.ZodString;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
at: string;
|
|
42
|
+
type: "once";
|
|
43
|
+
}, {
|
|
44
|
+
at: string;
|
|
45
|
+
type: "once";
|
|
46
|
+
}>;
|
|
47
|
+
/**
|
|
48
|
+
* Schedule Schema
|
|
49
|
+
* Discriminated union of all schedule types
|
|
50
|
+
*/
|
|
51
|
+
export declare const ScheduleSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
52
|
+
type: z.ZodLiteral<"cron">;
|
|
53
|
+
expression: z.ZodString;
|
|
54
|
+
timezone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
type: "cron";
|
|
57
|
+
expression: string;
|
|
58
|
+
timezone: string;
|
|
59
|
+
}, {
|
|
60
|
+
type: "cron";
|
|
61
|
+
expression: string;
|
|
62
|
+
timezone?: string | undefined;
|
|
63
|
+
}>, z.ZodObject<{
|
|
64
|
+
type: z.ZodLiteral<"interval">;
|
|
65
|
+
intervalMs: z.ZodNumber;
|
|
66
|
+
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
type: "interval";
|
|
68
|
+
intervalMs: number;
|
|
69
|
+
}, {
|
|
70
|
+
type: "interval";
|
|
71
|
+
intervalMs: number;
|
|
72
|
+
}>, z.ZodObject<{
|
|
73
|
+
type: z.ZodLiteral<"once">;
|
|
74
|
+
at: z.ZodString;
|
|
75
|
+
}, "strip", z.ZodTypeAny, {
|
|
76
|
+
at: string;
|
|
77
|
+
type: "once";
|
|
78
|
+
}, {
|
|
79
|
+
at: string;
|
|
80
|
+
type: "once";
|
|
81
|
+
}>]>;
|
|
82
|
+
export type Schedule = z.infer<typeof ScheduleSchema>;
|
|
83
|
+
export type CronSchedule = z.infer<typeof CronScheduleSchema>;
|
|
84
|
+
export type IntervalSchedule = z.infer<typeof IntervalScheduleSchema>;
|
|
85
|
+
export type OnceSchedule = z.infer<typeof OnceScheduleSchema>;
|
|
86
|
+
/**
|
|
87
|
+
* Retry Policy Schema
|
|
88
|
+
* Configuration for job retry behavior with exponential backoff
|
|
89
|
+
*/
|
|
90
|
+
export declare const RetryPolicySchema: z.ZodObject<{
|
|
91
|
+
maxRetries: z.ZodDefault<z.ZodNumber>;
|
|
92
|
+
backoffMs: z.ZodDefault<z.ZodNumber>;
|
|
93
|
+
backoffMultiplier: z.ZodDefault<z.ZodNumber>;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
maxRetries: number;
|
|
96
|
+
backoffMs: number;
|
|
97
|
+
backoffMultiplier: number;
|
|
98
|
+
}, {
|
|
99
|
+
maxRetries?: number | undefined;
|
|
100
|
+
backoffMs?: number | undefined;
|
|
101
|
+
backoffMultiplier?: number | undefined;
|
|
102
|
+
}>;
|
|
103
|
+
export type RetryPolicy = z.infer<typeof RetryPolicySchema>;
|
|
104
|
+
/**
|
|
105
|
+
* Job Schema
|
|
106
|
+
* Defines a scheduled job
|
|
107
|
+
*/
|
|
108
|
+
export declare const JobSchema: z.ZodObject<{
|
|
109
|
+
id: z.ZodString;
|
|
110
|
+
name: z.ZodString;
|
|
111
|
+
schedule: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
112
|
+
type: z.ZodLiteral<"cron">;
|
|
113
|
+
expression: z.ZodString;
|
|
114
|
+
timezone: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
115
|
+
}, "strip", z.ZodTypeAny, {
|
|
116
|
+
type: "cron";
|
|
117
|
+
expression: string;
|
|
118
|
+
timezone: string;
|
|
119
|
+
}, {
|
|
120
|
+
type: "cron";
|
|
121
|
+
expression: string;
|
|
122
|
+
timezone?: string | undefined;
|
|
123
|
+
}>, z.ZodObject<{
|
|
124
|
+
type: z.ZodLiteral<"interval">;
|
|
125
|
+
intervalMs: z.ZodNumber;
|
|
126
|
+
}, "strip", z.ZodTypeAny, {
|
|
127
|
+
type: "interval";
|
|
128
|
+
intervalMs: number;
|
|
129
|
+
}, {
|
|
130
|
+
type: "interval";
|
|
131
|
+
intervalMs: number;
|
|
132
|
+
}>, z.ZodObject<{
|
|
133
|
+
type: z.ZodLiteral<"once">;
|
|
134
|
+
at: z.ZodString;
|
|
135
|
+
}, "strip", z.ZodTypeAny, {
|
|
136
|
+
at: string;
|
|
137
|
+
type: "once";
|
|
138
|
+
}, {
|
|
139
|
+
at: string;
|
|
140
|
+
type: "once";
|
|
141
|
+
}>]>;
|
|
142
|
+
handler: z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodPromise<z.ZodVoid>>;
|
|
143
|
+
retryPolicy: z.ZodOptional<z.ZodObject<{
|
|
144
|
+
maxRetries: z.ZodDefault<z.ZodNumber>;
|
|
145
|
+
backoffMs: z.ZodDefault<z.ZodNumber>;
|
|
146
|
+
backoffMultiplier: z.ZodDefault<z.ZodNumber>;
|
|
147
|
+
}, "strip", z.ZodTypeAny, {
|
|
148
|
+
maxRetries: number;
|
|
149
|
+
backoffMs: number;
|
|
150
|
+
backoffMultiplier: number;
|
|
151
|
+
}, {
|
|
152
|
+
maxRetries?: number | undefined;
|
|
153
|
+
backoffMs?: number | undefined;
|
|
154
|
+
backoffMultiplier?: number | undefined;
|
|
155
|
+
}>>;
|
|
156
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
157
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
158
|
+
}, "strip", z.ZodTypeAny, {
|
|
159
|
+
name: string;
|
|
160
|
+
schedule: {
|
|
161
|
+
type: "cron";
|
|
162
|
+
expression: string;
|
|
163
|
+
timezone: string;
|
|
164
|
+
} | {
|
|
165
|
+
type: "interval";
|
|
166
|
+
intervalMs: number;
|
|
167
|
+
} | {
|
|
168
|
+
at: string;
|
|
169
|
+
type: "once";
|
|
170
|
+
};
|
|
171
|
+
id: string;
|
|
172
|
+
enabled: boolean;
|
|
173
|
+
handler: (...args: unknown[]) => Promise<void>;
|
|
174
|
+
timeout?: number | undefined;
|
|
175
|
+
retryPolicy?: {
|
|
176
|
+
maxRetries: number;
|
|
177
|
+
backoffMs: number;
|
|
178
|
+
backoffMultiplier: number;
|
|
179
|
+
} | undefined;
|
|
180
|
+
}, {
|
|
181
|
+
name: string;
|
|
182
|
+
schedule: {
|
|
183
|
+
type: "cron";
|
|
184
|
+
expression: string;
|
|
185
|
+
timezone?: string | undefined;
|
|
186
|
+
} | {
|
|
187
|
+
type: "interval";
|
|
188
|
+
intervalMs: number;
|
|
189
|
+
} | {
|
|
190
|
+
at: string;
|
|
191
|
+
type: "once";
|
|
192
|
+
};
|
|
193
|
+
id: string;
|
|
194
|
+
handler: (...args: unknown[]) => Promise<void>;
|
|
195
|
+
timeout?: number | undefined;
|
|
196
|
+
enabled?: boolean | undefined;
|
|
197
|
+
retryPolicy?: {
|
|
198
|
+
maxRetries?: number | undefined;
|
|
199
|
+
backoffMs?: number | undefined;
|
|
200
|
+
backoffMultiplier?: number | undefined;
|
|
201
|
+
} | undefined;
|
|
202
|
+
}>;
|
|
203
|
+
export type Job = z.infer<typeof JobSchema>;
|
|
204
|
+
/**
|
|
205
|
+
* Job Execution Status Enum
|
|
206
|
+
* Status of job execution
|
|
207
|
+
*/
|
|
208
|
+
export declare const JobExecutionStatus: z.ZodEnum<["running", "success", "failed", "timeout"]>;
|
|
209
|
+
export type JobExecutionStatus = z.infer<typeof JobExecutionStatus>;
|
|
210
|
+
/**
|
|
211
|
+
* Job Execution Schema
|
|
212
|
+
* Logs for job execution
|
|
213
|
+
*/
|
|
214
|
+
export declare const JobExecutionSchema: z.ZodObject<{
|
|
215
|
+
jobId: z.ZodString;
|
|
216
|
+
startedAt: z.ZodString;
|
|
217
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
218
|
+
status: z.ZodEnum<["running", "success", "failed", "timeout"]>;
|
|
219
|
+
error: z.ZodOptional<z.ZodString>;
|
|
220
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
221
|
+
}, "strip", z.ZodTypeAny, {
|
|
222
|
+
status: "timeout" | "success" | "running" | "failed";
|
|
223
|
+
jobId: string;
|
|
224
|
+
startedAt: string;
|
|
225
|
+
error?: string | undefined;
|
|
226
|
+
duration?: number | undefined;
|
|
227
|
+
completedAt?: string | undefined;
|
|
228
|
+
}, {
|
|
229
|
+
status: "timeout" | "success" | "running" | "failed";
|
|
230
|
+
jobId: string;
|
|
231
|
+
startedAt: string;
|
|
232
|
+
error?: string | undefined;
|
|
233
|
+
duration?: number | undefined;
|
|
234
|
+
completedAt?: string | undefined;
|
|
235
|
+
}>;
|
|
236
|
+
export type JobExecution = z.infer<typeof JobExecutionSchema>;
|
|
237
|
+
//# sourceMappingURL=job.zod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"job.zod.d.ts","sourceRoot":"","sources":["../../src/system/job.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAI7B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;EAGjC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;EAG7B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AACtD,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;EAI5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D;;;GAGG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQpB,CAAC;AAEH,MAAM,MAAM,GAAG,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,kBAAkB,wDAK7B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEpE;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;EAO7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.JobExecutionSchema = exports.JobExecutionStatus = exports.JobSchema = exports.RetryPolicySchema = exports.ScheduleSchema = exports.OnceScheduleSchema = exports.IntervalScheduleSchema = exports.CronScheduleSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
/**
|
|
6
|
+
* Cron Schedule Schema
|
|
7
|
+
* Schedule jobs using cron expressions
|
|
8
|
+
*/
|
|
9
|
+
exports.CronScheduleSchema = zod_1.z.object({
|
|
10
|
+
type: zod_1.z.literal('cron'),
|
|
11
|
+
expression: zod_1.z.string().describe('Cron expression (e.g., "0 0 * * *" for daily at midnight)'),
|
|
12
|
+
timezone: zod_1.z.string().optional().default('UTC').describe('Timezone for cron execution (e.g., "America/New_York")'),
|
|
13
|
+
});
|
|
14
|
+
/**
|
|
15
|
+
* Interval Schedule Schema
|
|
16
|
+
* Schedule jobs at fixed intervals
|
|
17
|
+
*/
|
|
18
|
+
exports.IntervalScheduleSchema = zod_1.z.object({
|
|
19
|
+
type: zod_1.z.literal('interval'),
|
|
20
|
+
intervalMs: zod_1.z.number().int().positive().describe('Interval in milliseconds'),
|
|
21
|
+
});
|
|
22
|
+
/**
|
|
23
|
+
* Once Schedule Schema
|
|
24
|
+
* Schedule a job to run once at a specific time
|
|
25
|
+
*/
|
|
26
|
+
exports.OnceScheduleSchema = zod_1.z.object({
|
|
27
|
+
type: zod_1.z.literal('once'),
|
|
28
|
+
at: zod_1.z.string().datetime().describe('ISO 8601 datetime when to execute'),
|
|
29
|
+
});
|
|
30
|
+
/**
|
|
31
|
+
* Schedule Schema
|
|
32
|
+
* Discriminated union of all schedule types
|
|
33
|
+
*/
|
|
34
|
+
exports.ScheduleSchema = zod_1.z.discriminatedUnion('type', [
|
|
35
|
+
exports.CronScheduleSchema,
|
|
36
|
+
exports.IntervalScheduleSchema,
|
|
37
|
+
exports.OnceScheduleSchema,
|
|
38
|
+
]);
|
|
39
|
+
/**
|
|
40
|
+
* Retry Policy Schema
|
|
41
|
+
* Configuration for job retry behavior with exponential backoff
|
|
42
|
+
*/
|
|
43
|
+
exports.RetryPolicySchema = zod_1.z.object({
|
|
44
|
+
maxRetries: zod_1.z.number().int().min(0).default(3).describe('Maximum number of retry attempts'),
|
|
45
|
+
backoffMs: zod_1.z.number().int().positive().default(1000).describe('Initial backoff delay in milliseconds'),
|
|
46
|
+
backoffMultiplier: zod_1.z.number().positive().default(2).describe('Multiplier for exponential backoff'),
|
|
47
|
+
});
|
|
48
|
+
/**
|
|
49
|
+
* Job Schema
|
|
50
|
+
* Defines a scheduled job
|
|
51
|
+
*/
|
|
52
|
+
exports.JobSchema = zod_1.z.object({
|
|
53
|
+
id: zod_1.z.string().describe('Unique job identifier'),
|
|
54
|
+
name: zod_1.z.string().regex(/^[a-z_][a-z0-9_]*$/).describe('Job name (snake_case)'),
|
|
55
|
+
schedule: exports.ScheduleSchema.describe('Job schedule configuration'),
|
|
56
|
+
handler: zod_1.z.function().returns(zod_1.z.promise(zod_1.z.void())).describe('Job handler function'),
|
|
57
|
+
retryPolicy: exports.RetryPolicySchema.optional().describe('Retry policy configuration'),
|
|
58
|
+
timeout: zod_1.z.number().int().positive().optional().describe('Timeout in milliseconds'),
|
|
59
|
+
enabled: zod_1.z.boolean().default(true).describe('Whether the job is enabled'),
|
|
60
|
+
});
|
|
61
|
+
/**
|
|
62
|
+
* Job Execution Status Enum
|
|
63
|
+
* Status of job execution
|
|
64
|
+
*/
|
|
65
|
+
exports.JobExecutionStatus = zod_1.z.enum([
|
|
66
|
+
'running',
|
|
67
|
+
'success',
|
|
68
|
+
'failed',
|
|
69
|
+
'timeout',
|
|
70
|
+
]);
|
|
71
|
+
/**
|
|
72
|
+
* Job Execution Schema
|
|
73
|
+
* Logs for job execution
|
|
74
|
+
*/
|
|
75
|
+
exports.JobExecutionSchema = zod_1.z.object({
|
|
76
|
+
jobId: zod_1.z.string().describe('Job identifier'),
|
|
77
|
+
startedAt: zod_1.z.string().datetime().describe('ISO 8601 datetime when execution started'),
|
|
78
|
+
completedAt: zod_1.z.string().datetime().optional().describe('ISO 8601 datetime when execution completed'),
|
|
79
|
+
status: exports.JobExecutionStatus.describe('Execution status'),
|
|
80
|
+
error: zod_1.z.string().optional().describe('Error message if failed'),
|
|
81
|
+
duration: zod_1.z.number().int().optional().describe('Execution duration in milliseconds'),
|
|
82
|
+
});
|