@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
package/dist/ui/index.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UI Protocol Exports
|
|
4
|
+
*
|
|
5
|
+
* Presentation & Interaction
|
|
6
|
+
* - App, Page, View (Grid/Kanban)
|
|
7
|
+
* - Dashboard (Widgets), Report
|
|
8
|
+
* - Action (Triggers)
|
|
9
|
+
*/
|
|
10
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
13
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
14
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
15
|
+
}
|
|
16
|
+
Object.defineProperty(o, k2, desc);
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
22
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
__exportStar(require("./app.zod"), exports);
|
|
26
|
+
__exportStar(require("./view.zod"), exports);
|
|
27
|
+
__exportStar(require("./dashboard.zod"), exports);
|
|
28
|
+
__exportStar(require("./report.zod"), exports);
|
|
29
|
+
__exportStar(require("./action.zod"), exports);
|
|
30
|
+
__exportStar(require("./page.zod"), exports);
|
|
31
|
+
__exportStar(require("./widget.zod"), exports);
|
|
32
|
+
__exportStar(require("./theme.zod"), exports);
|
package/dist/ui/theme.zod.d.ts
CHANGED
|
@@ -27,9 +27,9 @@ export declare const ColorPaletteSchema: z.ZodObject<{
|
|
|
27
27
|
error?: string | undefined;
|
|
28
28
|
warning?: string | undefined;
|
|
29
29
|
info?: string | undefined;
|
|
30
|
-
success?: string | undefined;
|
|
31
30
|
secondary?: string | undefined;
|
|
32
31
|
accent?: string | undefined;
|
|
32
|
+
success?: string | undefined;
|
|
33
33
|
background?: string | undefined;
|
|
34
34
|
surface?: string | undefined;
|
|
35
35
|
textSecondary?: string | undefined;
|
|
@@ -45,9 +45,9 @@ export declare const ColorPaletteSchema: z.ZodObject<{
|
|
|
45
45
|
error?: string | undefined;
|
|
46
46
|
warning?: string | undefined;
|
|
47
47
|
info?: string | undefined;
|
|
48
|
-
success?: string | undefined;
|
|
49
48
|
secondary?: string | undefined;
|
|
50
49
|
accent?: string | undefined;
|
|
50
|
+
success?: string | undefined;
|
|
51
51
|
background?: string | undefined;
|
|
52
52
|
surface?: string | undefined;
|
|
53
53
|
textSecondary?: string | undefined;
|
|
@@ -292,8 +292,8 @@ export declare const BorderRadiusSchema: z.ZodObject<{
|
|
|
292
292
|
'2xl': z.ZodOptional<z.ZodString>;
|
|
293
293
|
full: z.ZodOptional<z.ZodString>;
|
|
294
294
|
}, "strip", z.ZodTypeAny, {
|
|
295
|
-
full?: string | undefined;
|
|
296
295
|
none?: string | undefined;
|
|
296
|
+
full?: string | undefined;
|
|
297
297
|
base?: string | undefined;
|
|
298
298
|
sm?: string | undefined;
|
|
299
299
|
lg?: string | undefined;
|
|
@@ -301,8 +301,8 @@ export declare const BorderRadiusSchema: z.ZodObject<{
|
|
|
301
301
|
'2xl'?: string | undefined;
|
|
302
302
|
md?: string | undefined;
|
|
303
303
|
}, {
|
|
304
|
-
full?: string | undefined;
|
|
305
304
|
none?: string | undefined;
|
|
305
|
+
full?: string | undefined;
|
|
306
306
|
base?: string | undefined;
|
|
307
307
|
sm?: string | undefined;
|
|
308
308
|
lg?: string | undefined;
|
|
@@ -324,8 +324,8 @@ export declare const ShadowSchema: z.ZodObject<{
|
|
|
324
324
|
'2xl': z.ZodOptional<z.ZodString>;
|
|
325
325
|
inner: z.ZodOptional<z.ZodString>;
|
|
326
326
|
}, "strip", z.ZodTypeAny, {
|
|
327
|
-
inner?: string | undefined;
|
|
328
327
|
none?: string | undefined;
|
|
328
|
+
inner?: string | undefined;
|
|
329
329
|
base?: string | undefined;
|
|
330
330
|
sm?: string | undefined;
|
|
331
331
|
lg?: string | undefined;
|
|
@@ -333,8 +333,8 @@ export declare const ShadowSchema: z.ZodObject<{
|
|
|
333
333
|
'2xl'?: string | undefined;
|
|
334
334
|
md?: string | undefined;
|
|
335
335
|
}, {
|
|
336
|
-
inner?: string | undefined;
|
|
337
336
|
none?: string | undefined;
|
|
337
|
+
inner?: string | undefined;
|
|
338
338
|
base?: string | undefined;
|
|
339
339
|
sm?: string | undefined;
|
|
340
340
|
lg?: string | undefined;
|
|
@@ -503,9 +503,9 @@ export declare const ThemeSchema: z.ZodObject<{
|
|
|
503
503
|
error?: string | undefined;
|
|
504
504
|
warning?: string | undefined;
|
|
505
505
|
info?: string | undefined;
|
|
506
|
-
success?: string | undefined;
|
|
507
506
|
secondary?: string | undefined;
|
|
508
507
|
accent?: string | undefined;
|
|
508
|
+
success?: string | undefined;
|
|
509
509
|
background?: string | undefined;
|
|
510
510
|
surface?: string | undefined;
|
|
511
511
|
textSecondary?: string | undefined;
|
|
@@ -521,9 +521,9 @@ export declare const ThemeSchema: z.ZodObject<{
|
|
|
521
521
|
error?: string | undefined;
|
|
522
522
|
warning?: string | undefined;
|
|
523
523
|
info?: string | undefined;
|
|
524
|
-
success?: string | undefined;
|
|
525
524
|
secondary?: string | undefined;
|
|
526
525
|
accent?: string | undefined;
|
|
526
|
+
success?: string | undefined;
|
|
527
527
|
background?: string | undefined;
|
|
528
528
|
surface?: string | undefined;
|
|
529
529
|
textSecondary?: string | undefined;
|
|
@@ -759,8 +759,8 @@ export declare const ThemeSchema: z.ZodObject<{
|
|
|
759
759
|
'2xl': z.ZodOptional<z.ZodString>;
|
|
760
760
|
full: z.ZodOptional<z.ZodString>;
|
|
761
761
|
}, "strip", z.ZodTypeAny, {
|
|
762
|
-
full?: string | undefined;
|
|
763
762
|
none?: string | undefined;
|
|
763
|
+
full?: string | undefined;
|
|
764
764
|
base?: string | undefined;
|
|
765
765
|
sm?: string | undefined;
|
|
766
766
|
lg?: string | undefined;
|
|
@@ -768,8 +768,8 @@ export declare const ThemeSchema: z.ZodObject<{
|
|
|
768
768
|
'2xl'?: string | undefined;
|
|
769
769
|
md?: string | undefined;
|
|
770
770
|
}, {
|
|
771
|
-
full?: string | undefined;
|
|
772
771
|
none?: string | undefined;
|
|
772
|
+
full?: string | undefined;
|
|
773
773
|
base?: string | undefined;
|
|
774
774
|
sm?: string | undefined;
|
|
775
775
|
lg?: string | undefined;
|
|
@@ -788,8 +788,8 @@ export declare const ThemeSchema: z.ZodObject<{
|
|
|
788
788
|
'2xl': z.ZodOptional<z.ZodString>;
|
|
789
789
|
inner: z.ZodOptional<z.ZodString>;
|
|
790
790
|
}, "strip", z.ZodTypeAny, {
|
|
791
|
-
inner?: string | undefined;
|
|
792
791
|
none?: string | undefined;
|
|
792
|
+
inner?: string | undefined;
|
|
793
793
|
base?: string | undefined;
|
|
794
794
|
sm?: string | undefined;
|
|
795
795
|
lg?: string | undefined;
|
|
@@ -797,8 +797,8 @@ export declare const ThemeSchema: z.ZodObject<{
|
|
|
797
797
|
'2xl'?: string | undefined;
|
|
798
798
|
md?: string | undefined;
|
|
799
799
|
}, {
|
|
800
|
-
inner?: string | undefined;
|
|
801
800
|
none?: string | undefined;
|
|
801
|
+
inner?: string | undefined;
|
|
802
802
|
base?: string | undefined;
|
|
803
803
|
sm?: string | undefined;
|
|
804
804
|
lg?: string | undefined;
|
|
@@ -947,9 +947,9 @@ export declare const ThemeSchema: z.ZodObject<{
|
|
|
947
947
|
error?: string | undefined;
|
|
948
948
|
warning?: string | undefined;
|
|
949
949
|
info?: string | undefined;
|
|
950
|
-
success?: string | undefined;
|
|
951
950
|
secondary?: string | undefined;
|
|
952
951
|
accent?: string | undefined;
|
|
952
|
+
success?: string | undefined;
|
|
953
953
|
background?: string | undefined;
|
|
954
954
|
surface?: string | undefined;
|
|
955
955
|
textSecondary?: string | undefined;
|
|
@@ -1019,8 +1019,8 @@ export declare const ThemeSchema: z.ZodObject<{
|
|
|
1019
1019
|
'24'?: string | undefined;
|
|
1020
1020
|
} | undefined;
|
|
1021
1021
|
borderRadius?: {
|
|
1022
|
-
full?: string | undefined;
|
|
1023
1022
|
none?: string | undefined;
|
|
1023
|
+
full?: string | undefined;
|
|
1024
1024
|
base?: string | undefined;
|
|
1025
1025
|
sm?: string | undefined;
|
|
1026
1026
|
lg?: string | undefined;
|
|
@@ -1029,8 +1029,8 @@ export declare const ThemeSchema: z.ZodObject<{
|
|
|
1029
1029
|
md?: string | undefined;
|
|
1030
1030
|
} | undefined;
|
|
1031
1031
|
shadows?: {
|
|
1032
|
-
inner?: string | undefined;
|
|
1033
1032
|
none?: string | undefined;
|
|
1033
|
+
inner?: string | undefined;
|
|
1034
1034
|
base?: string | undefined;
|
|
1035
1035
|
sm?: string | undefined;
|
|
1036
1036
|
lg?: string | undefined;
|
|
@@ -1081,9 +1081,9 @@ export declare const ThemeSchema: z.ZodObject<{
|
|
|
1081
1081
|
error?: string | undefined;
|
|
1082
1082
|
warning?: string | undefined;
|
|
1083
1083
|
info?: string | undefined;
|
|
1084
|
-
success?: string | undefined;
|
|
1085
1084
|
secondary?: string | undefined;
|
|
1086
1085
|
accent?: string | undefined;
|
|
1086
|
+
success?: string | undefined;
|
|
1087
1087
|
background?: string | undefined;
|
|
1088
1088
|
surface?: string | undefined;
|
|
1089
1089
|
textSecondary?: string | undefined;
|
|
@@ -1154,8 +1154,8 @@ export declare const ThemeSchema: z.ZodObject<{
|
|
|
1154
1154
|
'24'?: string | undefined;
|
|
1155
1155
|
} | undefined;
|
|
1156
1156
|
borderRadius?: {
|
|
1157
|
-
full?: string | undefined;
|
|
1158
1157
|
none?: string | undefined;
|
|
1158
|
+
full?: string | undefined;
|
|
1159
1159
|
base?: string | undefined;
|
|
1160
1160
|
sm?: string | undefined;
|
|
1161
1161
|
lg?: string | undefined;
|
|
@@ -1164,8 +1164,8 @@ export declare const ThemeSchema: z.ZodObject<{
|
|
|
1164
1164
|
md?: string | undefined;
|
|
1165
1165
|
} | undefined;
|
|
1166
1166
|
shadows?: {
|
|
1167
|
-
inner?: string | undefined;
|
|
1168
1167
|
none?: string | undefined;
|
|
1168
|
+
inner?: string | undefined;
|
|
1169
1169
|
base?: string | undefined;
|
|
1170
1170
|
sm?: string | undefined;
|
|
1171
1171
|
lg?: string | undefined;
|
package/dist/ui/widget.zod.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export declare const FieldWidgetPropsSchema: z.ZodObject<{
|
|
|
48
48
|
field: z.ZodObject<{
|
|
49
49
|
name: z.ZodOptional<z.ZodString>;
|
|
50
50
|
label: z.ZodOptional<z.ZodString>;
|
|
51
|
-
type: z.ZodEnum<["text", "textarea", "email", "url", "phone", "password", "markdown", "html", "richtext", "number", "currency", "percent", "date", "datetime", "time", "boolean", "select", "lookup", "master_detail", "image", "file", "avatar", "formula", "summary", "autonumber", "location", "address", "code", "color", "rating", "signature"]>;
|
|
51
|
+
type: z.ZodEnum<["text", "textarea", "email", "url", "phone", "password", "markdown", "html", "richtext", "number", "currency", "percent", "date", "datetime", "time", "boolean", "select", "lookup", "master_detail", "image", "file", "avatar", "formula", "summary", "autonumber", "location", "geolocation", "address", "code", "color", "rating", "slider", "signature", "qrcode"]>;
|
|
52
52
|
description: z.ZodOptional<z.ZodString>;
|
|
53
53
|
format: z.ZodOptional<z.ZodString>;
|
|
54
54
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -108,13 +108,20 @@ export declare const FieldWidgetPropsSchema: z.ZodObject<{
|
|
|
108
108
|
colorFormat: z.ZodOptional<z.ZodEnum<["hex", "rgb", "rgba", "hsl"]>>;
|
|
109
109
|
allowAlpha: z.ZodOptional<z.ZodBoolean>;
|
|
110
110
|
presetColors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
111
|
+
step: z.ZodOptional<z.ZodNumber>;
|
|
112
|
+
showValue: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
+
marks: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
114
|
+
barcodeFormat: z.ZodOptional<z.ZodEnum<["qr", "ean13", "ean8", "code128", "code39", "upca", "upce"]>>;
|
|
115
|
+
qrErrorCorrection: z.ZodOptional<z.ZodEnum<["L", "M", "Q", "H"]>>;
|
|
116
|
+
displayValue: z.ZodOptional<z.ZodBoolean>;
|
|
117
|
+
allowScanning: z.ZodOptional<z.ZodBoolean>;
|
|
111
118
|
hidden: z.ZodDefault<z.ZodBoolean>;
|
|
112
119
|
readonly: z.ZodDefault<z.ZodBoolean>;
|
|
113
120
|
encryption: z.ZodDefault<z.ZodBoolean>;
|
|
114
121
|
index: z.ZodDefault<z.ZodBoolean>;
|
|
115
122
|
externalId: z.ZodDefault<z.ZodBoolean>;
|
|
116
123
|
}, "strip", z.ZodTypeAny, {
|
|
117
|
-
type: "number" | "boolean" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "date" | "datetime" | "time" | "select" | "lookup" | "master_detail" | "image" | "file" | "avatar" | "formula" | "summary" | "autonumber" | "location" | "address" | "code" | "color" | "rating" | "signature";
|
|
124
|
+
type: "number" | "boolean" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "date" | "datetime" | "time" | "select" | "lookup" | "master_detail" | "image" | "file" | "avatar" | "formula" | "summary" | "autonumber" | "location" | "geolocation" | "address" | "code" | "color" | "rating" | "slider" | "signature" | "qrcode";
|
|
118
125
|
required: boolean;
|
|
119
126
|
searchable: boolean;
|
|
120
127
|
multiple: boolean;
|
|
@@ -163,8 +170,15 @@ export declare const FieldWidgetPropsSchema: z.ZodObject<{
|
|
|
163
170
|
colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
164
171
|
allowAlpha?: boolean | undefined;
|
|
165
172
|
presetColors?: string[] | undefined;
|
|
173
|
+
step?: number | undefined;
|
|
174
|
+
showValue?: boolean | undefined;
|
|
175
|
+
marks?: Record<string, string> | undefined;
|
|
176
|
+
barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
|
|
177
|
+
qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
|
|
178
|
+
displayValue?: boolean | undefined;
|
|
179
|
+
allowScanning?: boolean | undefined;
|
|
166
180
|
}, {
|
|
167
|
-
type: "number" | "boolean" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "date" | "datetime" | "time" | "select" | "lookup" | "master_detail" | "image" | "file" | "avatar" | "formula" | "summary" | "autonumber" | "location" | "address" | "code" | "color" | "rating" | "signature";
|
|
181
|
+
type: "number" | "boolean" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "date" | "datetime" | "time" | "select" | "lookup" | "master_detail" | "image" | "file" | "avatar" | "formula" | "summary" | "autonumber" | "location" | "geolocation" | "address" | "code" | "color" | "rating" | "slider" | "signature" | "qrcode";
|
|
168
182
|
formula?: string | undefined;
|
|
169
183
|
options?: {
|
|
170
184
|
value: string;
|
|
@@ -208,6 +222,13 @@ export declare const FieldWidgetPropsSchema: z.ZodObject<{
|
|
|
208
222
|
colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
209
223
|
allowAlpha?: boolean | undefined;
|
|
210
224
|
presetColors?: string[] | undefined;
|
|
225
|
+
step?: number | undefined;
|
|
226
|
+
showValue?: boolean | undefined;
|
|
227
|
+
marks?: Record<string, string> | undefined;
|
|
228
|
+
barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
|
|
229
|
+
qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
|
|
230
|
+
displayValue?: boolean | undefined;
|
|
231
|
+
allowScanning?: boolean | undefined;
|
|
211
232
|
hidden?: boolean | undefined;
|
|
212
233
|
readonly?: boolean | undefined;
|
|
213
234
|
encryption?: boolean | undefined;
|
|
@@ -227,7 +248,7 @@ export declare const FieldWidgetPropsSchema: z.ZodObject<{
|
|
|
227
248
|
}, "strip", z.ZodTypeAny, {
|
|
228
249
|
required: boolean;
|
|
229
250
|
field: {
|
|
230
|
-
type: "number" | "boolean" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "date" | "datetime" | "time" | "select" | "lookup" | "master_detail" | "image" | "file" | "avatar" | "formula" | "summary" | "autonumber" | "location" | "address" | "code" | "color" | "rating" | "signature";
|
|
251
|
+
type: "number" | "boolean" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "date" | "datetime" | "time" | "select" | "lookup" | "master_detail" | "image" | "file" | "avatar" | "formula" | "summary" | "autonumber" | "location" | "geolocation" | "address" | "code" | "color" | "rating" | "slider" | "signature" | "qrcode";
|
|
231
252
|
required: boolean;
|
|
232
253
|
searchable: boolean;
|
|
233
254
|
multiple: boolean;
|
|
@@ -276,6 +297,13 @@ export declare const FieldWidgetPropsSchema: z.ZodObject<{
|
|
|
276
297
|
colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
277
298
|
allowAlpha?: boolean | undefined;
|
|
278
299
|
presetColors?: string[] | undefined;
|
|
300
|
+
step?: number | undefined;
|
|
301
|
+
showValue?: boolean | undefined;
|
|
302
|
+
marks?: Record<string, string> | undefined;
|
|
303
|
+
barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
|
|
304
|
+
qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
|
|
305
|
+
displayValue?: boolean | undefined;
|
|
306
|
+
allowScanning?: boolean | undefined;
|
|
279
307
|
};
|
|
280
308
|
readonly: boolean;
|
|
281
309
|
onChange: (args_0: any, ...args: unknown[]) => void;
|
|
@@ -285,7 +313,7 @@ export declare const FieldWidgetPropsSchema: z.ZodObject<{
|
|
|
285
313
|
record?: Record<string, any> | undefined;
|
|
286
314
|
}, {
|
|
287
315
|
field: {
|
|
288
|
-
type: "number" | "boolean" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "date" | "datetime" | "time" | "select" | "lookup" | "master_detail" | "image" | "file" | "avatar" | "formula" | "summary" | "autonumber" | "location" | "address" | "code" | "color" | "rating" | "signature";
|
|
316
|
+
type: "number" | "boolean" | "text" | "textarea" | "email" | "url" | "phone" | "password" | "markdown" | "html" | "richtext" | "currency" | "percent" | "date" | "datetime" | "time" | "select" | "lookup" | "master_detail" | "image" | "file" | "avatar" | "formula" | "summary" | "autonumber" | "location" | "geolocation" | "address" | "code" | "color" | "rating" | "slider" | "signature" | "qrcode";
|
|
289
317
|
formula?: string | undefined;
|
|
290
318
|
options?: {
|
|
291
319
|
value: string;
|
|
@@ -329,6 +357,13 @@ export declare const FieldWidgetPropsSchema: z.ZodObject<{
|
|
|
329
357
|
colorFormat?: "hex" | "rgb" | "rgba" | "hsl" | undefined;
|
|
330
358
|
allowAlpha?: boolean | undefined;
|
|
331
359
|
presetColors?: string[] | undefined;
|
|
360
|
+
step?: number | undefined;
|
|
361
|
+
showValue?: boolean | undefined;
|
|
362
|
+
marks?: Record<string, string> | undefined;
|
|
363
|
+
barcodeFormat?: "qr" | "ean13" | "ean8" | "code128" | "code39" | "upca" | "upce" | undefined;
|
|
364
|
+
qrErrorCorrection?: "L" | "M" | "Q" | "H" | undefined;
|
|
365
|
+
displayValue?: boolean | undefined;
|
|
366
|
+
allowScanning?: boolean | undefined;
|
|
332
367
|
hidden?: boolean | undefined;
|
|
333
368
|
readonly?: boolean | undefined;
|
|
334
369
|
encryption?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"widget.zod.d.ts","sourceRoot":"","sources":["../../src/ui/widget.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,sBAAsB;IACjC;;;OAGG;;IAGH;;;;;OAKG;;IAMH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG
|
|
1
|
+
{"version":3,"file":"widget.zod.d.ts","sourceRoot":"","sources":["../../src/ui/widget.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,sBAAsB;IACjC;;;OAGG;;IAGH;;;;;OAKG;;IAMH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGH;;;OAGG;;IAGH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEH,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# JSON Schema Directory
|
|
2
|
+
|
|
3
|
+
This directory contains auto-generated JSON schemas for all ObjectStack protocols, organized by category.
|
|
4
|
+
|
|
5
|
+
## Directory Structure
|
|
6
|
+
|
|
7
|
+
The schemas are organized into the following categories matching the protocol structure:
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
json-schema/
|
|
11
|
+
├── data/ # Data Protocol - Business Logic & Data Modeling (74 schemas)
|
|
12
|
+
├── ui/ # UI Protocol - Presentation & Interaction (39 schemas)
|
|
13
|
+
├── system/ # System Protocol - Runtime Configuration & Security (112 schemas)
|
|
14
|
+
├── ai/ # AI Protocol - AI/ML Capabilities (86 schemas)
|
|
15
|
+
└── api/ # API Protocol - API Contracts & Envelopes (12 schemas)
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Categories
|
|
19
|
+
|
|
20
|
+
### 📊 Data Protocol (`data/`)
|
|
21
|
+
Core business logic and data modeling schemas:
|
|
22
|
+
- Object, Field, Validation
|
|
23
|
+
- Query (AST), Mapping (ETL)
|
|
24
|
+
- Permission, Sharing, Flow, Workflow
|
|
25
|
+
|
|
26
|
+
**Example schemas:** `Field.json`, `Object.json`, `Query.json`, `ValidationRule.json`
|
|
27
|
+
|
|
28
|
+
### 🎨 UI Protocol (`ui/`)
|
|
29
|
+
Presentation and interaction schemas:
|
|
30
|
+
- App, Page, View (Grid/Kanban/Calendar/Gantt)
|
|
31
|
+
- Dashboard (Widgets), Report
|
|
32
|
+
- Action (Triggers), Theme
|
|
33
|
+
|
|
34
|
+
**Example schemas:** `App.json`, `View.json`, `Dashboard.json`, `Theme.json`
|
|
35
|
+
|
|
36
|
+
### ⚙️ System Protocol (`system/`)
|
|
37
|
+
Runtime configuration and security schemas:
|
|
38
|
+
- Manifest (Config), Datasource, Driver
|
|
39
|
+
- Role (Hierarchy), Identity (Auth)
|
|
40
|
+
- Webhook (Integration), Policy (Compliance)
|
|
41
|
+
- Plugin Architecture, Audit, Tenant Management
|
|
42
|
+
|
|
43
|
+
**Example schemas:** `Manifest.json`, `AuthConfig.json`, `Datasource.json`, `AuditEvent.json`
|
|
44
|
+
|
|
45
|
+
### 🤖 AI Protocol (`ai/`)
|
|
46
|
+
AI/ML capabilities schemas:
|
|
47
|
+
- Agent Configuration
|
|
48
|
+
- Model Registry & Selection
|
|
49
|
+
- RAG Pipeline, NLQ (Natural Language Query)
|
|
50
|
+
- Workflow Automation, Predictive Analytics
|
|
51
|
+
- Conversation Memory & Token Management
|
|
52
|
+
- Cost Tracking & Budget Management
|
|
53
|
+
|
|
54
|
+
**Example schemas:** `Agent.json`, `ModelRegistry.json`, `RAGPipelineConfig.json`, `NLQRequest.json`
|
|
55
|
+
|
|
56
|
+
### 🔌 API Protocol (`api/`)
|
|
57
|
+
API contracts and envelopes:
|
|
58
|
+
- Request/Response schemas
|
|
59
|
+
- Error handling
|
|
60
|
+
- Bulk operations
|
|
61
|
+
|
|
62
|
+
**Example schemas:** `ApiEndpoint.json`, `BaseResponse.json`, `BulkRequest.json`
|
|
63
|
+
|
|
64
|
+
## Generation
|
|
65
|
+
|
|
66
|
+
These schemas are automatically generated from Zod schemas during the build process:
|
|
67
|
+
|
|
68
|
+
```bash
|
|
69
|
+
npm run gen:schema
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
The generation script is located at `scripts/build-schemas.ts`.
|
|
73
|
+
|
|
74
|
+
## Usage
|
|
75
|
+
|
|
76
|
+
### In TypeScript/JavaScript Projects
|
|
77
|
+
|
|
78
|
+
You can reference these JSON schemas for validation, documentation, or IDE support:
|
|
79
|
+
|
|
80
|
+
```typescript
|
|
81
|
+
import fieldSchema from '@objectstack/spec/json-schema/data/Field.json';
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### In JSON Schema Tools
|
|
85
|
+
|
|
86
|
+
Use these schemas with any JSON Schema validator or documentation generator:
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
ajv validate -s json-schema/data/Field.json -d myfield.json
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### In IDEs
|
|
93
|
+
|
|
94
|
+
Many IDEs support JSON schema validation. You can reference these schemas in your configuration files:
|
|
95
|
+
|
|
96
|
+
```json
|
|
97
|
+
{
|
|
98
|
+
"$schema": "./node_modules/@objectstack/spec/json-schema/data/Object.json"
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
## Schema Format
|
|
103
|
+
|
|
104
|
+
All schemas are generated with:
|
|
105
|
+
- **Format:** JSON Schema Draft 7
|
|
106
|
+
- **Strategy:** Self-contained (no external `$ref`s)
|
|
107
|
+
- **Naming:** PascalCase matching the TypeScript type names
|
|
108
|
+
|
|
109
|
+
## Conventions
|
|
110
|
+
|
|
111
|
+
- **Configuration Keys (Properties):** `camelCase` (e.g., `maxLength`, `referenceFilters`)
|
|
112
|
+
- **Machine Names (Data Values):** `snake_case` (e.g., `name: 'first_name'`, `object: 'project_task'`)
|
|
113
|
+
|
|
114
|
+
## Contributing
|
|
115
|
+
|
|
116
|
+
Do not manually edit these files. They are auto-generated from the Zod schemas in `src/`.
|
|
117
|
+
|
|
118
|
+
To update schemas:
|
|
119
|
+
1. Edit the corresponding `.zod.ts` file in `src/{category}/`
|
|
120
|
+
2. Run `npm run gen:schema`
|
|
121
|
+
3. Commit both the Zod source and generated JSON schemas
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
**Total Schemas:** 325 (as of latest build)
|
|
126
|
+
|
|
127
|
+
For more information, see the main [README](../README.md).
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/AITask",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"AITask": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"id": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Optional task ID for referencing"
|
|
10
|
+
},
|
|
11
|
+
"name": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Human-readable task name"
|
|
14
|
+
},
|
|
15
|
+
"type": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"enum": [
|
|
18
|
+
"classify",
|
|
19
|
+
"extract",
|
|
20
|
+
"summarize",
|
|
21
|
+
"generate",
|
|
22
|
+
"predict",
|
|
23
|
+
"translate",
|
|
24
|
+
"sentiment",
|
|
25
|
+
"entity_recognition",
|
|
26
|
+
"anomaly_detection",
|
|
27
|
+
"recommendation"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"model": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "Model ID from registry (uses default if not specified)"
|
|
33
|
+
},
|
|
34
|
+
"promptTemplate": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "Prompt template ID for this task"
|
|
37
|
+
},
|
|
38
|
+
"inputFields": {
|
|
39
|
+
"type": "array",
|
|
40
|
+
"items": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"description": "Source fields to process (e.g., [\"description\", \"comments\"])"
|
|
44
|
+
},
|
|
45
|
+
"inputContext": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"additionalProperties": {},
|
|
48
|
+
"description": "Additional context for the AI model"
|
|
49
|
+
},
|
|
50
|
+
"outputField": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"description": "Target field to store the result"
|
|
53
|
+
},
|
|
54
|
+
"outputFormat": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"enum": [
|
|
57
|
+
"text",
|
|
58
|
+
"json",
|
|
59
|
+
"number",
|
|
60
|
+
"boolean",
|
|
61
|
+
"array"
|
|
62
|
+
],
|
|
63
|
+
"default": "text"
|
|
64
|
+
},
|
|
65
|
+
"classes": {
|
|
66
|
+
"type": "array",
|
|
67
|
+
"items": {
|
|
68
|
+
"type": "string"
|
|
69
|
+
},
|
|
70
|
+
"description": "Valid classes for classification tasks"
|
|
71
|
+
},
|
|
72
|
+
"multiClass": {
|
|
73
|
+
"type": "boolean",
|
|
74
|
+
"default": false,
|
|
75
|
+
"description": "Allow multiple classes to be selected"
|
|
76
|
+
},
|
|
77
|
+
"extractionSchema": {
|
|
78
|
+
"type": "object",
|
|
79
|
+
"additionalProperties": {},
|
|
80
|
+
"description": "JSON schema for structured extraction"
|
|
81
|
+
},
|
|
82
|
+
"maxLength": {
|
|
83
|
+
"type": "number",
|
|
84
|
+
"description": "Maximum length for generated content"
|
|
85
|
+
},
|
|
86
|
+
"temperature": {
|
|
87
|
+
"type": "number",
|
|
88
|
+
"minimum": 0,
|
|
89
|
+
"maximum": 2,
|
|
90
|
+
"description": "Model temperature override"
|
|
91
|
+
},
|
|
92
|
+
"fallbackValue": {
|
|
93
|
+
"description": "Fallback value if AI task fails"
|
|
94
|
+
},
|
|
95
|
+
"retryAttempts": {
|
|
96
|
+
"type": "integer",
|
|
97
|
+
"minimum": 0,
|
|
98
|
+
"maximum": 5,
|
|
99
|
+
"default": 1
|
|
100
|
+
},
|
|
101
|
+
"condition": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"description": "Formula condition - task only runs if TRUE"
|
|
104
|
+
},
|
|
105
|
+
"description": {
|
|
106
|
+
"type": "string"
|
|
107
|
+
},
|
|
108
|
+
"active": {
|
|
109
|
+
"type": "boolean",
|
|
110
|
+
"default": true
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"required": [
|
|
114
|
+
"name",
|
|
115
|
+
"type",
|
|
116
|
+
"inputFields",
|
|
117
|
+
"outputField"
|
|
118
|
+
],
|
|
119
|
+
"additionalProperties": false
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
123
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/AITaskType",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"AITaskType": {
|
|
5
|
+
"type": "string",
|
|
6
|
+
"enum": [
|
|
7
|
+
"classify",
|
|
8
|
+
"extract",
|
|
9
|
+
"summarize",
|
|
10
|
+
"generate",
|
|
11
|
+
"predict",
|
|
12
|
+
"translate",
|
|
13
|
+
"sentiment",
|
|
14
|
+
"entity_recognition",
|
|
15
|
+
"anomaly_detection",
|
|
16
|
+
"recommendation"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
21
|
+
}
|