From 232e5ec9d797bff21946d88057047ce831b29071 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 27 Jan 2026 14:24:57 +0000
Subject: [PATCH 01/10] Initial plan
From 4df7dcd34d82bc849f4448b5b5bfd11f413d796e Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 27 Jan 2026 14:30:06 +0000
Subject: [PATCH 02/10] Enhanced protocol documentation with TypeScript
examples and overview pages
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
---
.../docs/references/ai/agent/AIKnowledge.mdx | 27 +++
.../references/ai/agent/AIModelConfig.mdx | 26 +++
content/docs/references/ai/agent/AITool.mdx | 27 +++
content/docs/references/ai/agent/Agent.mdx | 29 +++
.../ai/conversation/ConversationAnalytics.mdx | 29 +++
.../ai/conversation/ConversationContext.mdx | 26 +++
.../ai/conversation/ConversationMessage.mdx | 29 +++
.../ai/conversation/ConversationSession.mdx | 29 +++
.../ai/conversation/ConversationSummary.mdx | 29 +++
.../ai/conversation/FunctionCall.mdx | 27 +++
.../ai/conversation/MessageContent.mdx | 25 +++
.../ai/conversation/MessageContentType.mdx | 22 ++-
.../ai/conversation/MessagePruningEvent.mdx | 29 +++
.../ai/conversation/MessageRole.mdx | 22 ++-
.../ai/conversation/TokenBudgetConfig.mdx | 26 +++
.../ai/conversation/TokenBudgetStrategy.mdx | 22 ++-
.../ai/conversation/TokenUsageStats.mdx | 28 +++
.../references/ai/conversation/ToolCall.mdx | 27 +++
.../docs/references/ai/cost/BillingPeriod.mdx | 22 ++-
.../docs/references/ai/cost/BudgetLimit.mdx | 28 +++
.../docs/references/ai/cost/BudgetStatus.mdx | 29 +++
.../docs/references/ai/cost/BudgetType.mdx | 22 ++-
content/docs/references/ai/cost/CostAlert.mdx | 29 +++
.../docs/references/ai/cost/CostAlertType.mdx | 22 ++-
.../docs/references/ai/cost/CostAnalytics.mdx | 29 +++
.../ai/cost/CostBreakdownDimension.mdx | 22 ++-
.../references/ai/cost/CostBreakdownEntry.mdx | 29 +++
content/docs/references/ai/cost/CostEntry.mdx | 29 +++
.../references/ai/cost/CostMetricType.mdx | 22 ++-
.../cost/CostOptimizationRecommendation.mdx | 29 +++
.../references/ai/cost/CostQueryFilters.mdx | 25 +++
.../docs/references/ai/cost/CostReport.mdx | 29 +++
content/docs/references/ai/index.mdx | 154 ++++++++++++++++
.../ai/model-registry/ModelCapability.mdx | 25 +++
.../ai/model-registry/ModelConfig.mdx | 29 +++
.../ai/model-registry/ModelLimits.mdx | 27 +++
.../ai/model-registry/ModelPricing.mdx | 25 +++
.../ai/model-registry/ModelProvider.mdx | 22 ++-
.../ai/model-registry/ModelRegistry.mdx | 27 +++
.../ai/model-registry/ModelRegistryEntry.mdx | 26 +++
.../model-registry/ModelSelectionCriteria.mdx | 25 +++
.../ai/model-registry/PromptTemplate.mdx | 29 +++
.../ai/model-registry/PromptVariable.mdx | 26 +++
content/docs/references/ai/nlq/Entity.mdx | 28 +++
.../references/ai/nlq/FieldSynonymConfig.mdx | 28 +++
.../docs/references/ai/nlq/NLQAnalytics.mdx | 29 +++
.../references/ai/nlq/NLQFieldMapping.mdx | 29 +++
.../docs/references/ai/nlq/NLQModelConfig.mdx | 26 +++
.../docs/references/ai/nlq/NLQParseResult.mdx | 29 +++
content/docs/references/ai/nlq/NLQRequest.mdx | 26 +++
.../docs/references/ai/nlq/NLQResponse.mdx | 27 +++
.../references/ai/nlq/NLQTrainingExample.mdx | 27 +++
.../docs/references/ai/nlq/QueryContext.mdx | 25 +++
.../docs/references/ai/nlq/QueryIntent.mdx | 22 ++-
.../docs/references/ai/nlq/QueryTemplate.mdx | 29 +++
content/docs/references/ai/nlq/Timeframe.mdx | 27 +++
.../ai/orchestration/AIOrchestration.mdx | 29 +++
.../AIOrchestrationExecutionResult.mdx | 29 +++
.../orchestration/AIOrchestrationTrigger.mdx | 22 ++-
.../references/ai/orchestration/AITask.mdx | 29 +++
.../ai/orchestration/AITaskType.mdx | 22 ++-
.../BatchAIOrchestrationExecution.mdx | 27 +++
.../ai/orchestration/PostProcessingAction.mdx | 28 +++
.../orchestration/WorkflowFieldCondition.mdx | 26 +++
.../ai/orchestration/WorkflowSchedule.mdx | 25 +++
.../ai/predictive/EvaluationMetrics.mdx | 25 +++
.../ai/predictive/Hyperparameters.mdx | 25 +++
.../references/ai/predictive/ModelDrift.mdx | 29 +++
.../references/ai/predictive/ModelFeature.mdx | 28 +++
.../ai/predictive/PredictionRequest.mdx | 26 +++
.../ai/predictive/PredictionResult.mdx | 27 +++
.../ai/predictive/PredictiveModel.mdx | 29 +++
.../ai/predictive/PredictiveModelType.mdx | 22 ++-
.../ai/predictive/TrainingConfig.mdx | 25 +++
.../ai/rag-pipeline/ChunkingStrategy.mdx | 10 +
.../ai/rag-pipeline/DocumentChunk.mdx | 29 +++
.../ai/rag-pipeline/DocumentLoaderConfig.mdx | 27 +++
.../ai/rag-pipeline/DocumentMetadata.mdx | 26 +++
.../ai/rag-pipeline/EmbeddingModel.mdx | 28 +++
.../ai/rag-pipeline/RAGPipelineConfig.mdx | 29 +++
.../ai/rag-pipeline/RAGPipelineStatus.mdx | 28 +++
.../ai/rag-pipeline/RAGQueryRequest.mdx | 27 +++
.../ai/rag-pipeline/RAGQueryResponse.mdx | 28 +++
.../ai/rag-pipeline/RerankingConfig.mdx | 25 +++
.../ai/rag-pipeline/RetrievalStrategy.mdx | 10 +
.../ai/rag-pipeline/VectorStoreConfig.mdx | 28 +++
.../ai/rag-pipeline/VectorStoreProvider.mdx | 22 ++-
.../docs/references/api/contract/ApiError.mdx | 27 +++
.../references/api/contract/BaseResponse.mdx | 26 +++
.../references/api/contract/BulkRequest.mdx | 26 +++
.../references/api/contract/BulkResponse.mdx | 27 +++
.../references/api/contract/CreateRequest.mdx | 26 +++
.../api/contract/DeleteResponse.mdx | 27 +++
.../references/api/contract/ExportRequest.mdx | 26 +++
.../api/contract/ListRecordResponse.mdx | 28 +++
.../api/contract/ModificationResult.mdx | 26 +++
.../references/api/contract/RecordData.mdx | 10 +
.../api/contract/SingleRecordResponse.mdx | 27 +++
.../references/api/contract/UpdateRequest.mdx | 26 +++
.../api/discovery/ApiCapabilities.mdx | 25 +++
.../references/api/discovery/ApiRoutes.mdx | 28 +++
.../references/api/discovery/Discovery.mdx | 29 +++
.../references/api/endpoint/ApiEndpoint.mdx | 29 +++
.../references/api/endpoint/ApiMapping.mdx | 27 +++
.../references/api/endpoint/RateLimit.mdx | 25 +++
content/docs/references/api/index.mdx | 89 +++++++++
.../docs/references/api/odata/ODataError.mdx | 26 +++
.../api/odata/ODataFilterFunction.mdx | 22 ++-
.../api/odata/ODataFilterOperator.mdx | 22 ++-
.../references/api/odata/ODataMetadata.mdx | 28 +++
.../docs/references/api/odata/ODataQuery.mdx | 25 +++
.../references/api/odata/ODataResponse.mdx | 26 +++
.../docs/references/api/realtime/Presence.mdx | 28 +++
.../api/realtime/PresenceStatus.mdx | 22 ++-
.../api/realtime/RealtimeAction.mdx | 22 ++-
.../references/api/realtime/RealtimeEvent.mdx | 28 +++
.../api/realtime/RealtimeEventType.mdx | 22 ++-
.../references/api/realtime/Subscription.mdx | 28 +++
.../api/realtime/SubscriptionEvent.mdx | 26 +++
.../api/realtime/TransportProtocol.mdx | 22 ++-
.../references/api/router/RouteCategory.mdx | 22 ++-
.../references/api/router/RouteDefinition.mdx | 28 +++
.../references/api/router/RouterConfig.mdx | 25 +++
.../docs/references/api/view/HttpMethod.mdx | 22 ++-
.../auth/config/AccountLinkingConfig.mdx | 25 +++
.../references/auth/config/AuthConfig.mdx | 29 +++
.../auth/config/AuthPluginConfig.mdx | 26 +++
.../references/auth/config/AuthStrategy.mdx | 22 ++-
.../references/auth/config/CSRFConfig.mdx | 25 +++
.../auth/config/DatabaseAdapter.mdx | 26 +++
.../auth/config/DatabaseMapping.mdx | 25 +++
.../auth/config/EmailPasswordConfig.mdx | 25 +++
.../auth/config/EnterpriseAuthConfig.mdx | 25 +++
.../references/auth/config/LDAPConfig.mdx | 29 +++
.../auth/config/MagicLinkConfig.mdx | 25 +++
.../references/auth/config/OAuthProvider.mdx | 28 +++
.../references/auth/config/OIDCConfig.mdx | 28 +++
.../references/auth/config/PasskeyConfig.mdx | 26 +++
.../auth/config/RateLimitConfig.mdx | 25 +++
.../references/auth/config/SAMLConfig.mdx | 28 +++
.../references/auth/config/SessionConfig.mdx | 25 +++
.../auth/config/StandardAuthProvider.mdx | 27 +++
.../auth/config/TwoFactorConfig.mdx | 25 +++
.../auth/config/UserFieldMapping.mdx | 25 +++
.../docs/references/auth/identity/Account.mdx | 29 +++
.../docs/references/auth/identity/Session.mdx | 29 +++
.../docs/references/auth/identity/User.mdx | 29 +++
.../auth/identity/VerificationToken.mdx | 29 +++
content/docs/references/auth/index.mdx | 102 +++++++++++
.../auth/organization/Invitation.mdx | 29 +++
.../auth/organization/InvitationStatus.mdx | 22 ++-
.../references/auth/organization/Member.mdx | 29 +++
.../auth/organization/Organization.mdx | 29 +++
.../references/auth/policy/AuditPolicy.mdx | 26 +++
.../references/auth/policy/NetworkPolicy.mdx | 26 +++
.../references/auth/policy/PasswordPolicy.mdx | 25 +++
.../docs/references/auth/policy/Policy.mdx | 26 +++
.../references/auth/policy/SessionPolicy.mdx | 25 +++
content/docs/references/auth/role/Role.mdx | 27 +++
.../docs/references/auth/scim/SCIMAddress.mdx | 25 +++
.../docs/references/auth/scim/SCIMEmail.mdx | 26 +++
.../auth/scim/SCIMEnterpriseUser.mdx | 25 +++
.../docs/references/auth/scim/SCIMError.mdx | 26 +++
.../docs/references/auth/scim/SCIMGroup.mdx | 26 +++
.../auth/scim/SCIMGroupReference.mdx | 26 +++
.../references/auth/scim/SCIMListResponse.mdx | 27 +++
.../auth/scim/SCIMMemberReference.mdx | 26 +++
.../docs/references/auth/scim/SCIMMeta.mdx | 25 +++
.../docs/references/auth/scim/SCIMName.mdx | 25 +++
.../auth/scim/SCIMPatchOperation.mdx | 26 +++
.../references/auth/scim/SCIMPatchRequest.mdx | 26 +++
.../references/auth/scim/SCIMPhoneNumber.mdx | 26 +++
.../docs/references/auth/scim/SCIMUser.mdx | 26 +++
.../automation/approval/ApprovalAction.mdx | 28 +++
.../approval/ApprovalActionType.mdx | 22 ++-
.../automation/approval/ApprovalProcess.mdx | 29 +++
.../automation/approval/ApprovalStep.mdx | 28 +++
.../automation/approval/ApproverType.mdx | 22 ++-
.../automation/connector/AuthField.mdx | 27 +++
.../automation/connector/Authentication.mdx | 26 +++
.../connector/AuthenticationType.mdx | 22 ++-
.../automation/connector/Connector.mdx | 29 +++
.../connector/ConnectorCategory.mdx | 22 ++-
.../connector/ConnectorInstance.mdx | 29 +++
.../connector/ConnectorOperation.mdx | 28 +++
.../automation/connector/ConnectorTrigger.mdx | 28 +++
.../automation/connector/OAuth2Config.mdx | 27 +++
.../connector/OperationParameter.mdx | 28 +++
.../automation/connector/OperationType.mdx | 22 ++-
.../automation/etl/ETLDestination.mdx | 27 +++
.../automation/etl/ETLEndpointType.mdx | 22 ++-
.../references/automation/etl/ETLPipeline.mdx | 28 +++
.../automation/etl/ETLPipelineRun.mdx | 29 +++
.../automation/etl/ETLRunStatus.mdx | 22 ++-
.../references/automation/etl/ETLSource.mdx | 27 +++
.../references/automation/etl/ETLSyncMode.mdx | 22 ++-
.../automation/etl/ETLTransformation.mdx | 27 +++
.../automation/etl/ETLTransformationType.mdx | 22 ++-
.../docs/references/automation/flow/Flow.mdx | 29 +++
.../references/automation/flow/FlowEdge.mdx | 28 +++
.../references/automation/flow/FlowNode.mdx | 28 +++
.../automation/flow/FlowNodeAction.mdx | 22 ++-
.../automation/flow/FlowVariable.mdx | 27 +++
content/docs/references/automation/index.mdx | 116 ++++++++++++
.../automation/mapping/FieldMapping.mdx | 27 +++
.../automation/sync/ConflictResolution.mdx | 22 ++-
.../automation/sync/DataDestinationConfig.mdx | 26 +++
.../automation/sync/DataSourceConfig.mdx | 25 +++
.../automation/sync/DataSyncConfig.mdx | 28 +++
.../automation/sync/SyncDirection.mdx | 22 ++-
.../automation/sync/SyncExecutionResult.mdx | 29 +++
.../automation/sync/SyncExecutionStatus.mdx | 22 ++-
.../references/automation/sync/SyncMode.mdx | 22 ++-
.../references/automation/webhook/Webhook.mdx | 29 +++
.../automation/webhook/WebhookReceiver.mdx | 28 +++
.../automation/webhook/WebhookTriggerType.mdx | 22 ++-
.../workflow/CustomScriptAction.mdx | 28 +++
.../automation/workflow/EmailAlertAction.mdx | 29 +++
.../automation/workflow/FieldUpdateAction.mdx | 28 +++
.../automation/workflow/HttpCallAction.mdx | 29 +++
.../workflow/PushNotificationAction.mdx | 29 +++
.../workflow/SlackMessageAction.mdx | 29 +++
.../workflow/SmsNotificationAction.mdx | 29 +++
.../workflow/TaskCreationAction.mdx | 29 +++
.../workflow/TeamsMessageAction.mdx | 29 +++
.../automation/workflow/TimeTrigger.mdx | 29 +++
.../workflow/WebhookTriggerAction.mdx | 28 +++
.../automation/workflow/WorkflowAction.mdx | 10 +
.../automation/workflow/WorkflowRule.mdx | 28 +++
.../workflow/WorkflowTriggerType.mdx | 22 ++-
.../docs/references/data/dataset/Dataset.mdx | 27 +++
.../references/data/dataset/DatasetMode.mdx | 22 ++-
.../docs/references/data/field/Address.mdx | 25 +++
.../references/data/field/CurrencyConfig.mdx | 25 +++
.../references/data/field/CurrencyValue.mdx | 27 +++
content/docs/references/data/field/Field.mdx | 26 +++
.../docs/references/data/field/FieldType.mdx | 22 ++-
.../data/field/LocationCoordinates.mdx | 27 +++
.../references/data/field/SelectOption.mdx | 27 +++
.../references/data/field/VectorConfig.mdx | 26 +++
.../data/filter/ComparisonOperator.mdx | 25 +++
.../data/filter/EqualityOperator.mdx | 25 +++
.../references/data/filter/FieldOperators.mdx | 25 +++
.../references/data/filter/FieldReference.mdx | 26 +++
.../data/filter/FilterCondition.mdx | 10 +
.../data/filter/NormalizedFilter.mdx | 25 +++
.../references/data/filter/QueryFilter.mdx | 25 +++
.../references/data/filter/RangeOperator.mdx | 25 +++
.../references/data/filter/SetOperator.mdx | 25 +++
.../data/filter/SpecialOperator.mdx | 25 +++
.../references/data/filter/StringOperator.mdx | 25 +++
content/docs/references/data/hook/Hook.mdx | 28 +++
.../docs/references/data/hook/HookContext.mdx | 28 +++
.../docs/references/data/hook/HookEvent.mdx | 22 ++-
content/docs/references/data/index.mdx | 110 +++++++++++
content/docs/references/data/object/Index.mdx | 26 +++
.../docs/references/data/object/Object.mdx | 27 +++
.../data/object/ObjectCapabilities.mdx | 25 +++
.../references/data/object/SearchConfig.mdx | 26 +++
.../data/query/AggregationFunction.mdx | 22 ++-
.../references/data/query/AggregationNode.mdx | 27 +++
.../docs/references/data/query/FieldNode.mdx | 10 +
.../docs/references/data/query/JoinNode.mdx | 28 +++
.../references/data/query/JoinStrategy.mdx | 22 ++-
.../docs/references/data/query/JoinType.mdx | 22 ++-
content/docs/references/data/query/Query.mdx | 26 +++
.../docs/references/data/query/SortNode.mdx | 26 +++
.../references/data/query/WindowFunction.mdx | 22 ++-
.../data/query/WindowFunctionNode.mdx | 28 +++
.../docs/references/data/query/WindowSpec.mdx | 25 +++
.../data/validation/AsyncValidation.mdx | 29 +++
.../data/validation/ConditionalValidation.mdx | 29 +++
.../data/validation/CrossFieldValidation.mdx | 29 +++
.../data/validation/CustomValidator.mdx | 29 +++
.../data/validation/FormatValidation.mdx | 29 +++
.../data/validation/JSONValidation.mdx | 29 +++
.../data/validation/ScriptValidation.mdx | 29 +++
.../validation/StateMachineValidation.mdx | 29 +++
.../data/validation/UniquenessValidation.mdx | 29 +++
.../data/validation/ValidationRule.mdx | 10 +
.../hub/composer/BillOfMaterials.mdx | 27 +++
.../hub/composer/ComposerRequest.mdx | 26 +++
.../hub/composer/ComposerResponse.mdx | 29 +++
.../hub/composer/ConflictReport.mdx | 29 +++
.../hub/composer/DependencyRequirement.mdx | 26 +++
content/docs/references/hub/index.mdx | 71 ++++++++
.../docs/references/hub/license/Feature.mdx | 27 +++
.../docs/references/hub/license/License.mdx | 29 +++
.../references/hub/license/MetricType.mdx | 22 ++-
content/docs/references/hub/license/Plan.mdx | 29 +++
.../hub/marketplace/MarketplacePlugin.mdx | 28 +++
.../hub/marketplace/PluginAuthor.mdx | 26 +++
.../hub/marketplace/PluginPricing.mdx | 27 +++
.../references/hub/space/DeploymentTarget.mdx | 26 +++
.../docs/references/hub/space/HubSpace.mdx | 29 +++
.../hub/space/SpaceSubscription.mdx | 27 +++
.../hub/space/SubscriptionStatus.mdx | 22 ++-
.../tenant/DatabaseLevelIsolationStrategy.mdx | 26 +++
.../tenant/LevelIsolationStrategySchema.mdx | 26 +++
.../hub/tenant/RowLevelIsolationStrategy.mdx | 26 +++
content/docs/references/hub/tenant/Tenant.mdx | 28 +++
.../hub/tenant/TenantIsolationConfig.mdx | 10 +
.../hub/tenant/TenantIsolationLevel.mdx | 22 ++-
.../references/hub/tenant/TenantQuota.mdx | 25 +++
.../hub/tenant/TenantSecurityPolicy.mdx | 25 +++
content/docs/references/permission/index.mdx | 58 ++++++
.../permission/permission/FieldPermission.mdx | 25 +++
.../permission/ObjectPermission.mdx | 25 +++
.../permission/permission/PermissionSet.mdx | 27 +++
.../references/permission/rls/RLSConfig.mdx | 25 +++
.../permission/rls/RLSEvaluationResult.mdx | 27 +++
.../permission/rls/RLSOperation.mdx | 22 ++-
.../permission/rls/RLSUserContext.mdx | 26 +++
.../permission/rls/RowLevelSecurityPolicy.mdx | 28 +++
.../sharing/CriteriaSharingRule.mdx | 29 +++
.../permission/sharing/OWDModel.mdx | 22 ++-
.../permission/sharing/OwnerSharingRule.mdx | 29 +++
.../permission/sharing/ShareRecipientType.mdx | 22 ++-
.../permission/sharing/SharingLevel.mdx | 22 ++-
.../permission/sharing/SharingRule.mdx | 10 +
.../permission/sharing/SharingRuleType.mdx | 22 ++-
.../permission/territory/Territory.mdx | 28 +++
.../permission/territory/TerritoryModel.mdx | 26 +++
.../permission/territory/TerritoryType.mdx | 22 ++-
.../shared/identifiers/EventName.mdx | 10 +
.../identifiers/SnakeCaseIdentifier.mdx | 10 +
.../shared/identifiers/SystemIdentifier.mdx | 10 +
content/docs/references/shared/index.mdx | 22 +++
.../references/system/audit/AuditConfig.mdx | 28 +++
.../references/system/audit/AuditEvent.mdx | 29 +++
.../system/audit/AuditEventActor.mdx | 27 +++
.../system/audit/AuditEventChange.mdx | 26 +++
.../system/audit/AuditEventFilter.mdx | 25 +++
.../system/audit/AuditEventSeverity.mdx | 22 ++-
.../system/audit/AuditEventTarget.mdx | 27 +++
.../system/audit/AuditEventType.mdx | 22 ++-
.../system/audit/AuditRetentionPolicy.mdx | 25 +++
.../system/audit/AuditStorageConfig.mdx | 26 +++
.../system/audit/SuspiciousActivityRule.mdx | 29 +++
.../system/context/KernelContext.mdx | 29 +++
.../references/system/context/RuntimeMode.mdx | 22 ++-
.../system/datasource/Datasource.mdx | 28 +++
.../datasource/DatasourceCapabilities.mdx | 25 +++
.../system/datasource/DriverDefinition.mdx | 28 +++
.../system/datasource/DriverType.mdx | 10 +
.../system/driver/DriverCapabilities.mdx | 29 +++
.../system/driver/DriverInterface.mdx | 28 +++
.../system/driver/DriverOptions.mdx | 25 +++
.../docs/references/system/events/Event.mdx | 27 +++
.../references/system/events/EventHandler.mdx | 26 +++
.../system/events/EventMetadata.mdx | 27 +++
.../system/events/EventPersistence.mdx | 26 +++
.../references/system/events/EventRoute.mdx | 27 +++
.../references/system/feature/FeatureFlag.mdx | 26 +++
.../system/feature/FeatureStrategy.mdx | 22 ++-
content/docs/references/system/index.mdx | 153 ++++++++++++++++
.../references/system/job/CronSchedule.mdx | 27 +++
.../system/job/IntervalSchedule.mdx | 27 +++
content/docs/references/system/job/Job.mdx | 28 +++
.../references/system/job/JobExecution.mdx | 28 +++
.../system/job/JobExecutionStatus.mdx | 22 ++-
.../references/system/job/OnceSchedule.mdx | 27 +++
.../references/system/job/RetryPolicy.mdx | 25 +++
.../docs/references/system/job/Schedule.mdx | 10 +
.../references/system/logger/LogEntry.mdx | 28 +++
.../references/system/logger/LogFormat.mdx | 22 ++-
.../references/system/logger/LogLevel.mdx | 22 ++-
.../references/system/logger/LoggerConfig.mdx | 25 +++
.../references/system/manifest/Manifest.mdx | 29 +++
.../system/{ => misc}/MongoConfig.mdx | 26 +++
.../system/{ => misc}/PostgresConfig.mdx | 26 +++
.../references/system/plugin/I18nContext.mdx | 25 +++
.../docs/references/system/plugin/Logger.mdx | 25 +++
.../system/plugin/ObjectQLClient.mdx | 25 +++
.../docs/references/system/plugin/Plugin.mdx | 25 +++
.../system/plugin/PluginContext.mdx | 29 +++
.../system/plugin/PluginLifecycle.mdx | 25 +++
.../docs/references/system/plugin/Router.mdx | 25 +++
.../references/system/plugin/Scheduler.mdx | 25 +++
.../system/plugin/ScopedStorage.mdx | 25 +++
.../references/system/plugin/SystemAPI.mdx | 25 +++
.../system/scoped-storage/FileMetadata.mdx | 29 +++
.../scoped-storage/ScopedStorageConfig.mdx | 27 +++
.../scoped-storage/StorageAdapterType.mdx | 22 ++-
.../system/scoped-storage/StorageScope.mdx | 22 ++-
.../references/system/translation/Locale.mdx | 10 +
.../system/translation/TranslationBundle.mdx | 10 +
.../system/translation/TranslationData.mdx | 25 +++
content/docs/references/ui/action/Action.mdx | 27 +++
.../docs/references/ui/action/ActionParam.mdx | 28 +++
content/docs/references/ui/app/App.mdx | 27 +++
.../docs/references/ui/app/AppBranding.mdx | 25 +++
.../references/ui/app/DashboardNavItem.mdx | 29 +++
.../docs/references/ui/app/GroupNavItem.mdx | 28 +++
.../docs/references/ui/app/NavigationItem.mdx | 10 +
.../docs/references/ui/app/ObjectNavItem.mdx | 29 +++
.../docs/references/ui/app/PageNavItem.mdx | 29 +++
content/docs/references/ui/app/UrlNavItem.mdx | 29 +++
.../references/ui/component/PageCardProps.mdx | 26 +++
.../ui/component/PageHeaderProps.mdx | 26 +++
.../references/ui/component/PageTabsProps.mdx | 26 +++
.../ui/component/RecordDetailsProps.mdx | 25 +++
.../ui/component/RecordHighlightsProps.mdx | 26 +++
.../ui/component/RecordRelatedListProps.mdx | 28 +++
.../references/ui/dashboard/ChartType.mdx | 22 ++-
.../references/ui/dashboard/Dashboard.mdx | 28 +++
.../ui/dashboard/DashboardWidget.mdx | 26 +++
content/docs/references/ui/index.mdx | 132 ++++++++++++++
content/docs/references/ui/page/Page.mdx | 28 +++
.../docs/references/ui/page/PageComponent.mdx | 27 +++
.../references/ui/page/PageComponentType.mdx | 22 ++-
.../docs/references/ui/page/PageRegion.mdx | 27 +++
content/docs/references/ui/report/Report.mdx | 29 +++
.../docs/references/ui/report/ReportChart.mdx | 28 +++
.../references/ui/report/ReportColumn.mdx | 26 +++
.../references/ui/report/ReportGrouping.mdx | 26 +++
.../docs/references/ui/report/ReportType.mdx | 22 ++-
.../docs/references/ui/theme/Animation.mdx | 25 +++
.../docs/references/ui/theme/BorderRadius.mdx | 25 +++
.../docs/references/ui/theme/Breakpoints.mdx | 25 +++
.../docs/references/ui/theme/ColorPalette.mdx | 26 +++
content/docs/references/ui/theme/Shadow.mdx | 25 +++
content/docs/references/ui/theme/Spacing.mdx | 25 +++
content/docs/references/ui/theme/Theme.mdx | 28 +++
.../docs/references/ui/theme/ThemeMode.mdx | 22 ++-
.../docs/references/ui/theme/Typography.mdx | 25 +++
content/docs/references/ui/theme/ZIndex.mdx | 25 +++
.../references/ui/view/CalendarConfig.mdx | 27 +++
content/docs/references/ui/view/FormField.mdx | 26 +++
.../docs/references/ui/view/FormSection.mdx | 26 +++
content/docs/references/ui/view/FormView.mdx | 25 +++
.../docs/references/ui/view/GanttConfig.mdx | 28 +++
.../docs/references/ui/view/HttpMethod.mdx | 22 ++-
.../docs/references/ui/view/HttpRequest.mdx | 26 +++
.../docs/references/ui/view/KanbanConfig.mdx | 27 +++
.../docs/references/ui/view/ListColumn.mdx | 26 +++
content/docs/references/ui/view/ListView.mdx | 26 +++
.../references/ui/view/PaginationConfig.mdx | 25 +++
.../references/ui/view/SelectionConfig.mdx | 25 +++
content/docs/references/ui/view/View.mdx | 25 +++
content/docs/references/ui/view/ViewData.mdx | 10 +
.../references/ui/widget/FieldWidgetProps.mdx | 26 +++
.../docs/references/ui/widget/WidgetEvent.mdx | 26 +++
.../references/ui/widget/WidgetLifecycle.mdx | 25 +++
.../references/ui/widget/WidgetManifest.mdx | 27 +++
.../references/ui/widget/WidgetProperty.mdx | 27 +++
packages/spec/scripts/build-docs.ts | 172 +++++++++++++++++-
447 files changed, 12203 insertions(+), 75 deletions(-)
create mode 100644 content/docs/references/ai/index.mdx
create mode 100644 content/docs/references/api/index.mdx
create mode 100644 content/docs/references/auth/index.mdx
create mode 100644 content/docs/references/automation/index.mdx
create mode 100644 content/docs/references/data/index.mdx
create mode 100644 content/docs/references/hub/index.mdx
create mode 100644 content/docs/references/permission/index.mdx
create mode 100644 content/docs/references/shared/index.mdx
create mode 100644 content/docs/references/system/index.mdx
rename content/docs/references/system/{ => misc}/MongoConfig.mdx (63%)
rename content/docs/references/system/{ => misc}/PostgresConfig.mdx (61%)
create mode 100644 content/docs/references/ui/index.mdx
diff --git a/content/docs/references/ai/agent/AIKnowledge.mdx b/content/docs/references/ai/agent/AIKnowledge.mdx
index a95abc12b..2e63e5193 100644
--- a/content/docs/references/ai/agent/AIKnowledge.mdx
+++ b/content/docs/references/ai/agent/AIKnowledge.mdx
@@ -1,11 +1,38 @@
---
title: AIKnowledge
description: AIKnowledge Schema Reference
+category: ai
+zodFile: agent
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/agent.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **topics** | `string[]` | ✅ | Topics/Tags to recruit knowledge from |
| **indexes** | `string[]` | ✅ | Vector Store Indexes |
+
+## TypeScript Usage
+
+```typescript
+import { AIKnowledgeSchema } from '@objectstack/spec/ai';
+import type { AIKnowledge } from '@objectstack/spec/ai';
+
+// Validate data
+const result = AIKnowledgeSchema.parse(data);
+
+// Type-safe usage
+const myAIKnowledge: AIKnowledge = {
+ topics: [],
+ indexes: []
+};
+```
+
diff --git a/content/docs/references/ai/agent/AIModelConfig.mdx b/content/docs/references/ai/agent/AIModelConfig.mdx
index d3f685795..ddcc59a9e 100644
--- a/content/docs/references/ai/agent/AIModelConfig.mdx
+++ b/content/docs/references/ai/agent/AIModelConfig.mdx
@@ -1,8 +1,18 @@
---
title: AIModelConfig
description: AIModelConfig Schema Reference
+category: ai
+zodFile: agent
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/agent.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,19 @@ description: AIModelConfig Schema Reference
| **temperature** | `number` | optional | |
| **maxTokens** | `number` | optional | |
| **topP** | `number` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { AIModelConfigSchema } from '@objectstack/spec/ai';
+import type { AIModelConfig } from '@objectstack/spec/ai';
+
+// Validate data
+const result = AIModelConfigSchema.parse(data);
+
+// Type-safe usage
+const myAIModelConfig: AIModelConfig = {
+ model: 'example'
+};
+```
+
diff --git a/content/docs/references/ai/agent/AITool.mdx b/content/docs/references/ai/agent/AITool.mdx
index fc872724d..db933da0d 100644
--- a/content/docs/references/ai/agent/AITool.mdx
+++ b/content/docs/references/ai/agent/AITool.mdx
@@ -1,8 +1,18 @@
---
title: AITool
description: AITool Schema Reference
+category: ai
+zodFile: agent
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/agent.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,20 @@ description: AITool Schema Reference
| **type** | `Enum<'action' \| 'flow' \| 'query' \| 'vector_search'>` | ✅ | |
| **name** | `string` | ✅ | Reference name (Action Name, Flow Name) |
| **description** | `string` | optional | Override description for the LLM |
+
+## TypeScript Usage
+
+```typescript
+import { AIToolSchema } from '@objectstack/spec/ai';
+import type { AITool } from '@objectstack/spec/ai';
+
+// Validate data
+const result = AIToolSchema.parse(data);
+
+// Type-safe usage
+const myAITool: AITool = {
+ type: 'action',
+ name: 'name'
+};
+```
+
diff --git a/content/docs/references/ai/agent/Agent.mdx b/content/docs/references/ai/agent/Agent.mdx
index 63ecbb9c3..01b936fbd 100644
--- a/content/docs/references/ai/agent/Agent.mdx
+++ b/content/docs/references/ai/agent/Agent.mdx
@@ -1,8 +1,18 @@
---
title: Agent
description: Agent Schema Reference
+category: ai
+zodFile: agent
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/agent.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -17,3 +27,22 @@ description: Agent Schema Reference
| **knowledge** | `object` | optional | RAG access |
| **active** | `boolean` | optional | |
| **access** | `string[]` | optional | Who can chat with this agent |
+
+## TypeScript Usage
+
+```typescript
+import { AgentSchema } from '@objectstack/spec/ai';
+import type { Agent } from '@objectstack/spec/ai';
+
+// Validate data
+const result = AgentSchema.parse(data);
+
+// Type-safe usage
+const myAgent: Agent = {
+ name: 'name',
+ label: 'example',
+ role: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ai/conversation/ConversationAnalytics.mdx b/content/docs/references/ai/conversation/ConversationAnalytics.mdx
index 2c715617a..0191e6411 100644
--- a/content/docs/references/ai/conversation/ConversationAnalytics.mdx
+++ b/content/docs/references/ai/conversation/ConversationAnalytics.mdx
@@ -1,8 +1,18 @@
---
title: ConversationAnalytics
description: ConversationAnalytics Schema Reference
+category: ai
+zodFile: conversation
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/conversation.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -22,3 +32,22 @@ description: ConversationAnalytics Schema Reference
| **duration** | `number` | optional | Session duration in seconds |
| **firstMessageAt** | `string` | optional | ISO 8601 timestamp |
| **lastMessageAt** | `string` | optional | ISO 8601 timestamp |
+
+## TypeScript Usage
+
+```typescript
+import { ConversationAnalyticsSchema } from '@objectstack/spec/ai';
+import type { ConversationAnalytics } from '@objectstack/spec/ai';
+
+// Validate data
+const result = ConversationAnalyticsSchema.parse(data);
+
+// Type-safe usage
+const myConversationAnalytics: ConversationAnalytics = {
+ sessionId: 'example',
+ totalMessages: null,
+ userMessages: null,
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ai/conversation/ConversationContext.mdx b/content/docs/references/ai/conversation/ConversationContext.mdx
index 8ffd326fd..dd6ece4df 100644
--- a/content/docs/references/ai/conversation/ConversationContext.mdx
+++ b/content/docs/references/ai/conversation/ConversationContext.mdx
@@ -1,8 +1,18 @@
---
title: ConversationContext
description: ConversationContext Schema Reference
+category: ai
+zodFile: conversation
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/conversation.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -15,3 +25,19 @@ description: ConversationContext Schema Reference
| **scope** | `Record` | optional | Additional context scope |
| **systemMessage** | `string` | optional | System prompt/instructions |
| **metadata** | `Record` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { ConversationContextSchema } from '@objectstack/spec/ai';
+import type { ConversationContext } from '@objectstack/spec/ai';
+
+// Validate data
+const result = ConversationContextSchema.parse(data);
+
+// Type-safe usage
+const myConversationContext: ConversationContext = {
+ sessionId: 'example'
+};
+```
+
diff --git a/content/docs/references/ai/conversation/ConversationMessage.mdx b/content/docs/references/ai/conversation/ConversationMessage.mdx
index abc8cf19c..68c14e9e2 100644
--- a/content/docs/references/ai/conversation/ConversationMessage.mdx
+++ b/content/docs/references/ai/conversation/ConversationMessage.mdx
@@ -1,8 +1,18 @@
---
title: ConversationMessage
description: ConversationMessage Schema Reference
+category: ai
+zodFile: conversation
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/conversation.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -20,3 +30,22 @@ description: ConversationMessage Schema Reference
| **importance** | `number` | optional | Importance score for pruning |
| **embedding** | `number[]` | optional | Vector embedding for semantic search |
| **metadata** | `Record` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { ConversationMessageSchema } from '@objectstack/spec/ai';
+import type { ConversationMessage } from '@objectstack/spec/ai';
+
+// Validate data
+const result = ConversationMessageSchema.parse(data);
+
+// Type-safe usage
+const myConversationMessage: ConversationMessage = {
+ id: 'example',
+ timestamp: 'example',
+ role: 'system',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ai/conversation/ConversationSession.mdx b/content/docs/references/ai/conversation/ConversationSession.mdx
index 769c0f214..02d66c7c7 100644
--- a/content/docs/references/ai/conversation/ConversationSession.mdx
+++ b/content/docs/references/ai/conversation/ConversationSession.mdx
@@ -1,8 +1,18 @@
---
title: ConversationSession
description: ConversationSession Schema Reference
+category: ai
+zodFile: conversation
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/conversation.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -20,3 +30,22 @@ description: ConversationSession Schema Reference
| **expiresAt** | `string` | optional | ISO 8601 timestamp |
| **tags** | `string[]` | optional | |
| **metadata** | `Record` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { ConversationSessionSchema } from '@objectstack/spec/ai';
+import type { ConversationSession } from '@objectstack/spec/ai';
+
+// Validate data
+const result = ConversationSessionSchema.parse(data);
+
+// Type-safe usage
+const myConversationSession: ConversationSession = {
+ id: 'example',
+ context: {},
+ tokenBudget: {},
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ai/conversation/ConversationSummary.mdx b/content/docs/references/ai/conversation/ConversationSummary.mdx
index 8f5eff0d4..fa3becd1f 100644
--- a/content/docs/references/ai/conversation/ConversationSummary.mdx
+++ b/content/docs/references/ai/conversation/ConversationSummary.mdx
@@ -1,8 +1,18 @@
---
title: ConversationSummary
description: ConversationSummary Schema Reference
+category: ai
+zodFile: conversation
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/conversation.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -15,3 +25,22 @@ description: ConversationSummary Schema Reference
| **messageRange** | `object` | ✅ | Range of messages summarized |
| **generatedAt** | `string` | ✅ | ISO 8601 timestamp |
| **modelId** | `string` | optional | Model used for summarization |
+
+## TypeScript Usage
+
+```typescript
+import { ConversationSummarySchema } from '@objectstack/spec/ai';
+import type { ConversationSummary } from '@objectstack/spec/ai';
+
+// Validate data
+const result = ConversationSummarySchema.parse(data);
+
+// Type-safe usage
+const myConversationSummary: ConversationSummary = {
+ summary: 'example',
+ originalTokens: null,
+ summaryTokens: null,
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ai/conversation/FunctionCall.mdx b/content/docs/references/ai/conversation/FunctionCall.mdx
index cf5f10605..4f1a2cf2b 100644
--- a/content/docs/references/ai/conversation/FunctionCall.mdx
+++ b/content/docs/references/ai/conversation/FunctionCall.mdx
@@ -1,8 +1,18 @@
---
title: FunctionCall
description: FunctionCall Schema Reference
+category: ai
+zodFile: conversation
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/conversation.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,20 @@ description: FunctionCall Schema Reference
| **name** | `string` | ✅ | Function name |
| **arguments** | `string` | ✅ | JSON string of function arguments |
| **result** | `string` | optional | Function execution result |
+
+## TypeScript Usage
+
+```typescript
+import { FunctionCallSchema } from '@objectstack/spec/ai';
+import type { FunctionCall } from '@objectstack/spec/ai';
+
+// Validate data
+const result = FunctionCallSchema.parse(data);
+
+// Type-safe usage
+const myFunctionCall: FunctionCall = {
+ name: 'name',
+ arguments: 'example'
+};
+```
+
diff --git a/content/docs/references/ai/conversation/MessageContent.mdx b/content/docs/references/ai/conversation/MessageContent.mdx
index e7e9c6212..d3e5b2791 100644
--- a/content/docs/references/ai/conversation/MessageContent.mdx
+++ b/content/docs/references/ai/conversation/MessageContent.mdx
@@ -1,8 +1,18 @@
---
title: MessageContent
description: MessageContent Schema Reference
+category: ai
+zodFile: conversation
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/conversation.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,18 @@ description: MessageContent Schema Reference
| **fileUrl** | `string` | optional | File attachment URL |
| **mimeType** | `string` | optional | MIME type for files |
| **metadata** | `Record` | optional | Additional metadata |
+
+## TypeScript Usage
+
+```typescript
+import { MessageContentSchema } from '@objectstack/spec/ai';
+import type { MessageContent } from '@objectstack/spec/ai';
+
+// Validate data
+const result = MessageContentSchema.parse(data);
+
+// Type-safe usage
+const myMessageContent: MessageContent = {
+};
+```
+
diff --git a/content/docs/references/ai/conversation/MessageContentType.mdx b/content/docs/references/ai/conversation/MessageContentType.mdx
index 234ce5b5b..65edf6751 100644
--- a/content/docs/references/ai/conversation/MessageContentType.mdx
+++ b/content/docs/references/ai/conversation/MessageContentType.mdx
@@ -1,12 +1,32 @@
---
title: MessageContentType
description: MessageContentType Schema Reference
+category: ai
+zodFile: conversation
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/conversation.zod.ts`
+
+
## Allowed Values
* `text`
* `image`
* `file`
* `code`
-* `structured`
\ No newline at end of file
+* `structured`
+
+## TypeScript Usage
+
+```typescript
+import { MessageContentType } from '@objectstack/spec/ai';
+
+// Type-safe enum value
+const value: MessageContentType = 'text';
+```
+
diff --git a/content/docs/references/ai/conversation/MessagePruningEvent.mdx b/content/docs/references/ai/conversation/MessagePruningEvent.mdx
index eb1528348..ec4a88976 100644
--- a/content/docs/references/ai/conversation/MessagePruningEvent.mdx
+++ b/content/docs/references/ai/conversation/MessagePruningEvent.mdx
@@ -1,8 +1,18 @@
---
title: MessagePruningEvent
description: MessagePruningEvent Schema Reference
+category: ai
+zodFile: conversation
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/conversation.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -15,3 +25,22 @@ description: MessagePruningEvent Schema Reference
| **messagesRemoved** | `integer` | ✅ | |
| **remainingTokens** | `integer` | ✅ | |
| **remainingMessages** | `integer` | ✅ | |
+
+## TypeScript Usage
+
+```typescript
+import { MessagePruningEventSchema } from '@objectstack/spec/ai';
+import type { MessagePruningEvent } from '@objectstack/spec/ai';
+
+// Validate data
+const result = MessagePruningEventSchema.parse(data);
+
+// Type-safe usage
+const myMessagePruningEvent: MessagePruningEvent = {
+ timestamp: 'example',
+ strategy: 'fifo',
+ reason: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ai/conversation/MessageRole.mdx b/content/docs/references/ai/conversation/MessageRole.mdx
index a24e4016d..daba810d3 100644
--- a/content/docs/references/ai/conversation/MessageRole.mdx
+++ b/content/docs/references/ai/conversation/MessageRole.mdx
@@ -1,12 +1,32 @@
---
title: MessageRole
description: MessageRole Schema Reference
+category: ai
+zodFile: conversation
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/conversation.zod.ts`
+
+
## Allowed Values
* `system`
* `user`
* `assistant`
* `function`
-* `tool`
\ No newline at end of file
+* `tool`
+
+## TypeScript Usage
+
+```typescript
+import { MessageRole } from '@objectstack/spec/ai';
+
+// Type-safe enum value
+const value: MessageRole = 'system';
+```
+
diff --git a/content/docs/references/ai/conversation/TokenBudgetConfig.mdx b/content/docs/references/ai/conversation/TokenBudgetConfig.mdx
index f9c01c073..172184276 100644
--- a/content/docs/references/ai/conversation/TokenBudgetConfig.mdx
+++ b/content/docs/references/ai/conversation/TokenBudgetConfig.mdx
@@ -1,8 +1,18 @@
---
title: TokenBudgetConfig
description: TokenBudgetConfig Schema Reference
+category: ai
+zodFile: conversation
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/conversation.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -20,3 +30,19 @@ description: TokenBudgetConfig Schema Reference
| **summarizationThreshold** | `integer` | optional | Trigger summarization at N tokens |
| **summaryModel** | `string` | optional | Model ID for summarization |
| **warnThreshold** | `number` | optional | Warn at % of budget (0.8 = 80%) |
+
+## TypeScript Usage
+
+```typescript
+import { TokenBudgetConfigSchema } from '@objectstack/spec/ai';
+import type { TokenBudgetConfig } from '@objectstack/spec/ai';
+
+// Validate data
+const result = TokenBudgetConfigSchema.parse(data);
+
+// Type-safe usage
+const myTokenBudgetConfig: TokenBudgetConfig = {
+ maxTokens: null
+};
+```
+
diff --git a/content/docs/references/ai/conversation/TokenBudgetStrategy.mdx b/content/docs/references/ai/conversation/TokenBudgetStrategy.mdx
index 4070b4693..1d189f356 100644
--- a/content/docs/references/ai/conversation/TokenBudgetStrategy.mdx
+++ b/content/docs/references/ai/conversation/TokenBudgetStrategy.mdx
@@ -1,12 +1,32 @@
---
title: TokenBudgetStrategy
description: TokenBudgetStrategy Schema Reference
+category: ai
+zodFile: conversation
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/conversation.zod.ts`
+
+
## Allowed Values
* `fifo`
* `importance`
* `semantic`
* `sliding_window`
-* `summary`
\ No newline at end of file
+* `summary`
+
+## TypeScript Usage
+
+```typescript
+import { TokenBudgetStrategy } from '@objectstack/spec/ai';
+
+// Type-safe enum value
+const value: TokenBudgetStrategy = 'fifo';
+```
+
diff --git a/content/docs/references/ai/conversation/TokenUsageStats.mdx b/content/docs/references/ai/conversation/TokenUsageStats.mdx
index 9d4a776b9..6698f641d 100644
--- a/content/docs/references/ai/conversation/TokenUsageStats.mdx
+++ b/content/docs/references/ai/conversation/TokenUsageStats.mdx
@@ -1,8 +1,18 @@
---
title: TokenUsageStats
description: TokenUsageStats Schema Reference
+category: ai
+zodFile: conversation
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/conversation.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -17,3 +27,21 @@ description: TokenUsageStats Schema Reference
| **messageCount** | `integer` | optional | |
| **prunedMessageCount** | `integer` | optional | |
| **summarizedMessageCount** | `integer` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { TokenUsageStatsSchema } from '@objectstack/spec/ai';
+import type { TokenUsageStats } from '@objectstack/spec/ai';
+
+// Validate data
+const result = TokenUsageStatsSchema.parse(data);
+
+// Type-safe usage
+const myTokenUsageStats: TokenUsageStats = {
+ budgetLimit: null,
+ budgetRemaining: null,
+ budgetPercentage: 0
+};
+```
+
diff --git a/content/docs/references/ai/conversation/ToolCall.mdx b/content/docs/references/ai/conversation/ToolCall.mdx
index 8c31d637a..1d7ae2f73 100644
--- a/content/docs/references/ai/conversation/ToolCall.mdx
+++ b/content/docs/references/ai/conversation/ToolCall.mdx
@@ -1,8 +1,18 @@
---
title: ToolCall
description: ToolCall Schema Reference
+category: ai
+zodFile: conversation
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/conversation.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,20 @@ description: ToolCall Schema Reference
| **id** | `string` | ✅ | Tool call ID |
| **type** | `Enum<'function'>` | optional | |
| **function** | `object` | ✅ | |
+
+## TypeScript Usage
+
+```typescript
+import { ToolCallSchema } from '@objectstack/spec/ai';
+import type { ToolCall } from '@objectstack/spec/ai';
+
+// Validate data
+const result = ToolCallSchema.parse(data);
+
+// Type-safe usage
+const myToolCall: ToolCall = {
+ id: 'example',
+ function: {}
+};
+```
+
diff --git a/content/docs/references/ai/cost/BillingPeriod.mdx b/content/docs/references/ai/cost/BillingPeriod.mdx
index 1baf034f5..45eb14955 100644
--- a/content/docs/references/ai/cost/BillingPeriod.mdx
+++ b/content/docs/references/ai/cost/BillingPeriod.mdx
@@ -1,8 +1,18 @@
---
title: BillingPeriod
description: BillingPeriod Schema Reference
+category: ai
+zodFile: cost
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/cost.zod.ts`
+
+
## Allowed Values
* `hourly`
@@ -11,4 +21,14 @@ description: BillingPeriod Schema Reference
* `monthly`
* `quarterly`
* `yearly`
-* `custom`
\ No newline at end of file
+* `custom`
+
+## TypeScript Usage
+
+```typescript
+import { BillingPeriod } from '@objectstack/spec/ai';
+
+// Type-safe enum value
+const value: BillingPeriod = 'hourly';
+```
+
diff --git a/content/docs/references/ai/cost/BudgetLimit.mdx b/content/docs/references/ai/cost/BudgetLimit.mdx
index 4d21aaeec..22eab2039 100644
--- a/content/docs/references/ai/cost/BudgetLimit.mdx
+++ b/content/docs/references/ai/cost/BudgetLimit.mdx
@@ -1,8 +1,18 @@
---
title: BudgetLimit
description: BudgetLimit Schema Reference
+category: ai
+zodFile: cost
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/cost.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -23,3 +33,21 @@ description: BudgetLimit Schema Reference
| **description** | `string` | optional | |
| **active** | `boolean` | optional | |
| **tags** | `string[]` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { BudgetLimitSchema } from '@objectstack/spec/ai';
+import type { BudgetLimit } from '@objectstack/spec/ai';
+
+// Validate data
+const result = BudgetLimitSchema.parse(data);
+
+// Type-safe usage
+const myBudgetLimit: BudgetLimit = {
+ type: 'global',
+ maxCost: 0,
+ period: 'hourly'
+};
+```
+
diff --git a/content/docs/references/ai/cost/BudgetStatus.mdx b/content/docs/references/ai/cost/BudgetStatus.mdx
index 4e1936779..224d2dfa6 100644
--- a/content/docs/references/ai/cost/BudgetStatus.mdx
+++ b/content/docs/references/ai/cost/BudgetStatus.mdx
@@ -1,8 +1,18 @@
---
title: BudgetStatus
description: BudgetStatus Schema Reference
+category: ai
+zodFile: cost
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/cost.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -22,3 +32,22 @@ description: BudgetStatus Schema Reference
| **projectedCost** | `number` | optional | Projected cost for period |
| **projectedOverage** | `number` | optional | Projected overage |
| **lastUpdated** | `string` | ✅ | ISO 8601 timestamp |
+
+## TypeScript Usage
+
+```typescript
+import { BudgetStatusSchema } from '@objectstack/spec/ai';
+import type { BudgetStatus } from '@objectstack/spec/ai';
+
+// Validate data
+const result = BudgetStatusSchema.parse(data);
+
+// Type-safe usage
+const myBudgetStatus: BudgetStatus = {
+ budgetId: 'example',
+ type: 'global',
+ periodStart: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ai/cost/BudgetType.mdx b/content/docs/references/ai/cost/BudgetType.mdx
index 6a73df905..84eb4ad91 100644
--- a/content/docs/references/ai/cost/BudgetType.mdx
+++ b/content/docs/references/ai/cost/BudgetType.mdx
@@ -1,8 +1,18 @@
---
title: BudgetType
description: BudgetType Schema Reference
+category: ai
+zodFile: cost
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/cost.zod.ts`
+
+
## Allowed Values
* `global`
@@ -10,4 +20,14 @@ description: BudgetType Schema Reference
* `agent`
* `object`
* `project`
-* `department`
\ No newline at end of file
+* `department`
+
+## TypeScript Usage
+
+```typescript
+import { BudgetType } from '@objectstack/spec/ai';
+
+// Type-safe enum value
+const value: BudgetType = 'global';
+```
+
diff --git a/content/docs/references/ai/cost/CostAlert.mdx b/content/docs/references/ai/cost/CostAlert.mdx
index 71839ae17..88e49e759 100644
--- a/content/docs/references/ai/cost/CostAlert.mdx
+++ b/content/docs/references/ai/cost/CostAlert.mdx
@@ -1,8 +1,18 @@
---
title: CostAlert
description: CostAlert Schema Reference
+category: ai
+zodFile: cost
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/cost.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -25,3 +35,22 @@ description: CostAlert Schema Reference
| **acknowledgedAt** | `string` | optional | |
| **resolved** | `boolean` | optional | |
| **metadata** | `Record` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { CostAlertSchema } from '@objectstack/spec/ai';
+import type { CostAlert } from '@objectstack/spec/ai';
+
+// Validate data
+const result = CostAlertSchema.parse(data);
+
+// Type-safe usage
+const myCostAlert: CostAlert = {
+ id: 'example',
+ timestamp: 'example',
+ type: 'threshold_warning',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ai/cost/CostAlertType.mdx b/content/docs/references/ai/cost/CostAlertType.mdx
index 1f086c20c..cbc04be87 100644
--- a/content/docs/references/ai/cost/CostAlertType.mdx
+++ b/content/docs/references/ai/cost/CostAlertType.mdx
@@ -1,12 +1,32 @@
---
title: CostAlertType
description: CostAlertType Schema Reference
+category: ai
+zodFile: cost
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/cost.zod.ts`
+
+
## Allowed Values
* `threshold_warning`
* `threshold_critical`
* `limit_exceeded`
* `anomaly_detected`
-* `projection_exceeded`
\ No newline at end of file
+* `projection_exceeded`
+
+## TypeScript Usage
+
+```typescript
+import { CostAlertType } from '@objectstack/spec/ai';
+
+// Type-safe enum value
+const value: CostAlertType = 'threshold_warning';
+```
+
diff --git a/content/docs/references/ai/cost/CostAnalytics.mdx b/content/docs/references/ai/cost/CostAnalytics.mdx
index 15f44483b..82cec8f97 100644
--- a/content/docs/references/ai/cost/CostAnalytics.mdx
+++ b/content/docs/references/ai/cost/CostAnalytics.mdx
@@ -1,8 +1,18 @@
---
title: CostAnalytics
description: CostAnalytics Schema Reference
+category: ai
+zodFile: cost
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/cost.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -29,3 +39,22 @@ description: CostAnalytics Schema Reference
| **topAgents** | `object[]` | optional | |
| **tokensPerDollar** | `number` | optional | |
| **requestsPerDollar** | `number` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { CostAnalyticsSchema } from '@objectstack/spec/ai';
+import type { CostAnalytics } from '@objectstack/spec/ai';
+
+// Validate data
+const result = CostAnalyticsSchema.parse(data);
+
+// Type-safe usage
+const myCostAnalytics: CostAnalytics = {
+ periodStart: 'example',
+ periodEnd: 'example',
+ totalCost: 0,
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ai/cost/CostBreakdownDimension.mdx b/content/docs/references/ai/cost/CostBreakdownDimension.mdx
index f52054965..63638bd06 100644
--- a/content/docs/references/ai/cost/CostBreakdownDimension.mdx
+++ b/content/docs/references/ai/cost/CostBreakdownDimension.mdx
@@ -1,8 +1,18 @@
---
title: CostBreakdownDimension
description: CostBreakdownDimension Schema Reference
+category: ai
+zodFile: cost
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/cost.zod.ts`
+
+
## Allowed Values
* `model`
@@ -13,4 +23,14 @@ description: CostBreakdownDimension Schema Reference
* `operation`
* `date`
* `hour`
-* `tag`
\ No newline at end of file
+* `tag`
+
+## TypeScript Usage
+
+```typescript
+import { CostBreakdownDimension } from '@objectstack/spec/ai';
+
+// Type-safe enum value
+const value: CostBreakdownDimension = 'model';
+```
+
diff --git a/content/docs/references/ai/cost/CostBreakdownEntry.mdx b/content/docs/references/ai/cost/CostBreakdownEntry.mdx
index 9fd1c8ff3..97ec60372 100644
--- a/content/docs/references/ai/cost/CostBreakdownEntry.mdx
+++ b/content/docs/references/ai/cost/CostBreakdownEntry.mdx
@@ -1,8 +1,18 @@
---
title: CostBreakdownEntry
description: CostBreakdownEntry Schema Reference
+category: ai
+zodFile: cost
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/cost.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -15,3 +25,22 @@ description: CostBreakdownEntry Schema Reference
| **percentageOfTotal** | `number` | ✅ | |
| **periodStart** | `string` | optional | |
| **periodEnd** | `string` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { CostBreakdownEntrySchema } from '@objectstack/spec/ai';
+import type { CostBreakdownEntry } from '@objectstack/spec/ai';
+
+// Validate data
+const result = CostBreakdownEntrySchema.parse(data);
+
+// Type-safe usage
+const myCostBreakdownEntry: CostBreakdownEntry = {
+ dimension: 'model',
+ value: 'example',
+ totalCost: 0,
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ai/cost/CostEntry.mdx b/content/docs/references/ai/cost/CostEntry.mdx
index 2be46d286..a7aa08ff9 100644
--- a/content/docs/references/ai/cost/CostEntry.mdx
+++ b/content/docs/references/ai/cost/CostEntry.mdx
@@ -1,8 +1,18 @@
---
title: CostEntry
description: CostEntry Schema Reference
+category: ai
+zodFile: cost
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/cost.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -27,3 +37,22 @@ description: CostEntry Schema Reference
| **recordId** | `string` | optional | Related record ID |
| **tags** | `string[]` | optional | |
| **metadata** | `Record` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { CostEntrySchema } from '@objectstack/spec/ai';
+import type { CostEntry } from '@objectstack/spec/ai';
+
+// Validate data
+const result = CostEntrySchema.parse(data);
+
+// Type-safe usage
+const myCostEntry: CostEntry = {
+ id: 'example',
+ timestamp: 'example',
+ modelId: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ai/cost/CostMetricType.mdx b/content/docs/references/ai/cost/CostMetricType.mdx
index 29e70e3f0..6e93b4e1d 100644
--- a/content/docs/references/ai/cost/CostMetricType.mdx
+++ b/content/docs/references/ai/cost/CostMetricType.mdx
@@ -1,8 +1,18 @@
---
title: CostMetricType
description: CostMetricType Schema Reference
+category: ai
+zodFile: cost
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/cost.zod.ts`
+
+
## Allowed Values
* `token`
@@ -10,4 +20,14 @@ description: CostMetricType Schema Reference
* `character`
* `second`
* `image`
-* `embedding`
\ No newline at end of file
+* `embedding`
+
+## TypeScript Usage
+
+```typescript
+import { CostMetricType } from '@objectstack/spec/ai';
+
+// Type-safe enum value
+const value: CostMetricType = 'token';
+```
+
diff --git a/content/docs/references/ai/cost/CostOptimizationRecommendation.mdx b/content/docs/references/ai/cost/CostOptimizationRecommendation.mdx
index a5a2ed947..b5ffb9413 100644
--- a/content/docs/references/ai/cost/CostOptimizationRecommendation.mdx
+++ b/content/docs/references/ai/cost/CostOptimizationRecommendation.mdx
@@ -1,8 +1,18 @@
---
title: CostOptimizationRecommendation
description: CostOptimizationRecommendation Schema Reference
+category: ai
+zodFile: cost
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/cost.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -22,3 +32,22 @@ description: CostOptimizationRecommendation Schema Reference
| **affectedUsers** | `string[]` | optional | |
| **status** | `Enum<'pending' \| 'accepted' \| 'rejected' \| 'implemented'>` | optional | |
| **implementedAt** | `string` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { CostOptimizationRecommendationSchema } from '@objectstack/spec/ai';
+import type { CostOptimizationRecommendation } from '@objectstack/spec/ai';
+
+// Validate data
+const result = CostOptimizationRecommendationSchema.parse(data);
+
+// Type-safe usage
+const myCostOptimizationRecommendation: CostOptimizationRecommendation = {
+ id: 'example',
+ type: 'switch_model',
+ title: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ai/cost/CostQueryFilters.mdx b/content/docs/references/ai/cost/CostQueryFilters.mdx
index 2824bc8a6..2831c9a92 100644
--- a/content/docs/references/ai/cost/CostQueryFilters.mdx
+++ b/content/docs/references/ai/cost/CostQueryFilters.mdx
@@ -1,8 +1,18 @@
---
title: CostQueryFilters
description: CostQueryFilters Schema Reference
+category: ai
+zodFile: cost
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/cost.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -23,3 +33,18 @@ description: CostQueryFilters Schema Reference
| **orderDirection** | `Enum<'asc' \| 'desc'>` | optional | |
| **limit** | `integer` | optional | |
| **offset** | `integer` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { CostQueryFiltersSchema } from '@objectstack/spec/ai';
+import type { CostQueryFilters } from '@objectstack/spec/ai';
+
+// Validate data
+const result = CostQueryFiltersSchema.parse(data);
+
+// Type-safe usage
+const myCostQueryFilters: CostQueryFilters = {
+};
+```
+
diff --git a/content/docs/references/ai/cost/CostReport.mdx b/content/docs/references/ai/cost/CostReport.mdx
index 556b504ae..ecc90e074 100644
--- a/content/docs/references/ai/cost/CostReport.mdx
+++ b/content/docs/references/ai/cost/CostReport.mdx
@@ -1,8 +1,18 @@
---
title: CostReport
description: CostReport Schema Reference
+category: ai
+zodFile: cost
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/cost.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -25,3 +35,22 @@ description: CostReport Schema Reference
| **forecastedBudgetStatus** | `Enum<'under' \| 'at' \| 'over'>` | optional | |
| **format** | `Enum<'summary' \| 'detailed' \| 'executive'>` | optional | |
| **currency** | `string` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { CostReportSchema } from '@objectstack/spec/ai';
+import type { CostReport } from '@objectstack/spec/ai';
+
+// Validate data
+const result = CostReportSchema.parse(data);
+
+// Type-safe usage
+const myCostReport: CostReport = {
+ id: 'example',
+ name: 'name',
+ generatedAt: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ai/index.mdx b/content/docs/references/ai/index.mdx
new file mode 100644
index 000000000..b0513f867
--- /dev/null
+++ b/content/docs/references/ai/index.mdx
@@ -0,0 +1,154 @@
+---
+title: AI Protocol Overview
+description: Complete reference for all ai protocol schemas
+---
+
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Database, Cpu, Zap } from 'lucide-react';
+
+# AI Protocol
+
+This section contains all protocol schemas for the ai layer of ObjectStack.
+
+## Agent
+
+Source: `packages/spec/src/ai/agent.zod.ts`
+
+
+
+
+
+
+
+
+## Conversation
+
+Source: `packages/spec/src/ai/conversation.zod.ts`
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Cost
+
+Source: `packages/spec/src/ai/cost.zod.ts`
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Model Registry
+
+Source: `packages/spec/src/ai/model-registry.zod.ts`
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Nlq
+
+Source: `packages/spec/src/ai/nlq.zod.ts`
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Orchestration
+
+Source: `packages/spec/src/ai/orchestration.zod.ts`
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Predictive
+
+Source: `packages/spec/src/ai/predictive.zod.ts`
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Rag Pipeline
+
+Source: `packages/spec/src/ai/rag-pipeline.zod.ts`
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/content/docs/references/ai/model-registry/ModelCapability.mdx b/content/docs/references/ai/model-registry/ModelCapability.mdx
index 6773ec578..69c826e81 100644
--- a/content/docs/references/ai/model-registry/ModelCapability.mdx
+++ b/content/docs/references/ai/model-registry/ModelCapability.mdx
@@ -1,8 +1,18 @@
---
title: ModelCapability
description: ModelCapability Schema Reference
+category: ai
+zodFile: model-registry
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/model-registry.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -14,3 +24,18 @@ description: ModelCapability Schema Reference
| **functionCalling** | `boolean` | optional | Supports function calling |
| **codeGeneration** | `boolean` | optional | Supports code generation |
| **reasoning** | `boolean` | optional | Supports advanced reasoning |
+
+## TypeScript Usage
+
+```typescript
+import { ModelCapabilitySchema } from '@objectstack/spec/ai';
+import type { ModelCapability } from '@objectstack/spec/ai';
+
+// Validate data
+const result = ModelCapabilitySchema.parse(data);
+
+// Type-safe usage
+const myModelCapability: ModelCapability = {
+};
+```
+
diff --git a/content/docs/references/ai/model-registry/ModelConfig.mdx b/content/docs/references/ai/model-registry/ModelConfig.mdx
index 7785c0d9a..7cd5cc1b4 100644
--- a/content/docs/references/ai/model-registry/ModelConfig.mdx
+++ b/content/docs/references/ai/model-registry/ModelConfig.mdx
@@ -1,8 +1,18 @@
---
title: ModelConfig
description: ModelConfig Schema Reference
+category: ai
+zodFile: model-registry
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/model-registry.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -21,3 +31,22 @@ description: ModelConfig Schema Reference
| **tags** | `string[]` | optional | Tags for categorization |
| **deprecated** | `boolean` | optional | |
| **recommendedFor** | `string[]` | optional | Use case recommendations |
+
+## TypeScript Usage
+
+```typescript
+import { ModelConfigSchema } from '@objectstack/spec/ai';
+import type { ModelConfig } from '@objectstack/spec/ai';
+
+// Validate data
+const result = ModelConfigSchema.parse(data);
+
+// Type-safe usage
+const myModelConfig: ModelConfig = {
+ id: 'example',
+ name: 'name',
+ version: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ai/model-registry/ModelLimits.mdx b/content/docs/references/ai/model-registry/ModelLimits.mdx
index ca682a199..be041e553 100644
--- a/content/docs/references/ai/model-registry/ModelLimits.mdx
+++ b/content/docs/references/ai/model-registry/ModelLimits.mdx
@@ -1,8 +1,18 @@
---
title: ModelLimits
description: ModelLimits Schema Reference
+category: ai
+zodFile: model-registry
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/model-registry.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,20 @@ description: ModelLimits Schema Reference
| **contextWindow** | `integer` | ✅ | Context window size |
| **maxOutputTokens** | `integer` | optional | Maximum output tokens |
| **rateLimit** | `object` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { ModelLimitsSchema } from '@objectstack/spec/ai';
+import type { ModelLimits } from '@objectstack/spec/ai';
+
+// Validate data
+const result = ModelLimitsSchema.parse(data);
+
+// Type-safe usage
+const myModelLimits: ModelLimits = {
+ maxTokens: null,
+ contextWindow: null
+};
+```
+
diff --git a/content/docs/references/ai/model-registry/ModelPricing.mdx b/content/docs/references/ai/model-registry/ModelPricing.mdx
index d94a8288e..4c2d52635 100644
--- a/content/docs/references/ai/model-registry/ModelPricing.mdx
+++ b/content/docs/references/ai/model-registry/ModelPricing.mdx
@@ -1,8 +1,18 @@
---
title: ModelPricing
description: ModelPricing Schema Reference
+category: ai
+zodFile: model-registry
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/model-registry.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,18 @@ description: ModelPricing Schema Reference
| **inputCostPer1kTokens** | `number` | optional | Cost per 1K input tokens |
| **outputCostPer1kTokens** | `number` | optional | Cost per 1K output tokens |
| **embeddingCostPer1kTokens** | `number` | optional | Cost per 1K embedding tokens |
+
+## TypeScript Usage
+
+```typescript
+import { ModelPricingSchema } from '@objectstack/spec/ai';
+import type { ModelPricing } from '@objectstack/spec/ai';
+
+// Validate data
+const result = ModelPricingSchema.parse(data);
+
+// Type-safe usage
+const myModelPricing: ModelPricing = {
+};
+```
+
diff --git a/content/docs/references/ai/model-registry/ModelProvider.mdx b/content/docs/references/ai/model-registry/ModelProvider.mdx
index 3f98f0fd4..b02a9d0c0 100644
--- a/content/docs/references/ai/model-registry/ModelProvider.mdx
+++ b/content/docs/references/ai/model-registry/ModelProvider.mdx
@@ -1,8 +1,18 @@
---
title: ModelProvider
description: ModelProvider Schema Reference
+category: ai
+zodFile: model-registry
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/model-registry.zod.ts`
+
+
## Allowed Values
* `openai`
@@ -12,4 +22,14 @@ description: ModelProvider Schema Reference
* `cohere`
* `huggingface`
* `local`
-* `custom`
\ No newline at end of file
+* `custom`
+
+## TypeScript Usage
+
+```typescript
+import { ModelProvider } from '@objectstack/spec/ai';
+
+// Type-safe enum value
+const value: ModelProvider = 'openai';
+```
+
diff --git a/content/docs/references/ai/model-registry/ModelRegistry.mdx b/content/docs/references/ai/model-registry/ModelRegistry.mdx
index a389e1cc3..32ed05894 100644
--- a/content/docs/references/ai/model-registry/ModelRegistry.mdx
+++ b/content/docs/references/ai/model-registry/ModelRegistry.mdx
@@ -1,8 +1,18 @@
---
title: ModelRegistry
description: ModelRegistry Schema Reference
+category: ai
+zodFile: model-registry
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/model-registry.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,20 @@ description: ModelRegistry Schema Reference
| **promptTemplates** | `Record` | optional | Prompt templates by name |
| **defaultModel** | `string` | optional | Default model ID |
| **enableAutoFallback** | `boolean` | optional | Auto-fallback on errors |
+
+## TypeScript Usage
+
+```typescript
+import { ModelRegistrySchema } from '@objectstack/spec/ai';
+import type { ModelRegistry } from '@objectstack/spec/ai';
+
+// Validate data
+const result = ModelRegistrySchema.parse(data);
+
+// Type-safe usage
+const myModelRegistry: ModelRegistry = {
+ name: 'name',
+ models: {}
+};
+```
+
diff --git a/content/docs/references/ai/model-registry/ModelRegistryEntry.mdx b/content/docs/references/ai/model-registry/ModelRegistryEntry.mdx
index 6fe82e36b..c744cfa4e 100644
--- a/content/docs/references/ai/model-registry/ModelRegistryEntry.mdx
+++ b/content/docs/references/ai/model-registry/ModelRegistryEntry.mdx
@@ -1,8 +1,18 @@
---
title: ModelRegistryEntry
description: ModelRegistryEntry Schema Reference
+category: ai
+zodFile: model-registry
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/model-registry.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,19 @@ description: ModelRegistryEntry Schema Reference
| **priority** | `integer` | optional | Priority for model selection |
| **fallbackModels** | `string[]` | optional | Fallback model IDs |
| **healthCheck** | `object` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { ModelRegistryEntrySchema } from '@objectstack/spec/ai';
+import type { ModelRegistryEntry } from '@objectstack/spec/ai';
+
+// Validate data
+const result = ModelRegistryEntrySchema.parse(data);
+
+// Type-safe usage
+const myModelRegistryEntry: ModelRegistryEntry = {
+ model: {}
+};
+```
+
diff --git a/content/docs/references/ai/model-registry/ModelSelectionCriteria.mdx b/content/docs/references/ai/model-registry/ModelSelectionCriteria.mdx
index c3ee7946c..7a3e7de26 100644
--- a/content/docs/references/ai/model-registry/ModelSelectionCriteria.mdx
+++ b/content/docs/references/ai/model-registry/ModelSelectionCriteria.mdx
@@ -1,8 +1,18 @@
---
title: ModelSelectionCriteria
description: ModelSelectionCriteria Schema Reference
+category: ai
+zodFile: model-registry
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/model-registry.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,18 @@ description: ModelSelectionCriteria Schema Reference
| **provider** | `Enum<'openai' \| 'azure_openai' \| 'anthropic' \| 'google' \| 'cohere' \| 'huggingface' \| 'local' \| 'custom'>` | optional | |
| **tags** | `string[]` | optional | |
| **excludeDeprecated** | `boolean` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { ModelSelectionCriteriaSchema } from '@objectstack/spec/ai';
+import type { ModelSelectionCriteria } from '@objectstack/spec/ai';
+
+// Validate data
+const result = ModelSelectionCriteriaSchema.parse(data);
+
+// Type-safe usage
+const myModelSelectionCriteria: ModelSelectionCriteria = {
+};
+```
+
diff --git a/content/docs/references/ai/model-registry/PromptTemplate.mdx b/content/docs/references/ai/model-registry/PromptTemplate.mdx
index 437bda43d..a8eca44f3 100644
--- a/content/docs/references/ai/model-registry/PromptTemplate.mdx
+++ b/content/docs/references/ai/model-registry/PromptTemplate.mdx
@@ -1,8 +1,18 @@
---
title: PromptTemplate
description: PromptTemplate Schema Reference
+category: ai
+zodFile: model-registry
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/model-registry.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -26,3 +36,22 @@ description: PromptTemplate Schema Reference
| **category** | `string` | optional | Template category (e.g., "code_generation", "support") |
| **tags** | `string[]` | optional | |
| **examples** | `object[]` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { PromptTemplateSchema } from '@objectstack/spec/ai';
+import type { PromptTemplate } from '@objectstack/spec/ai';
+
+// Validate data
+const result = PromptTemplateSchema.parse(data);
+
+// Type-safe usage
+const myPromptTemplate: PromptTemplate = {
+ id: 'example',
+ name: 'name',
+ label: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ai/model-registry/PromptVariable.mdx b/content/docs/references/ai/model-registry/PromptVariable.mdx
index 10b694014..4ea187d8b 100644
--- a/content/docs/references/ai/model-registry/PromptVariable.mdx
+++ b/content/docs/references/ai/model-registry/PromptVariable.mdx
@@ -1,8 +1,18 @@
---
title: PromptVariable
description: PromptVariable Schema Reference
+category: ai
+zodFile: model-registry
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/model-registry.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,19 @@ description: PromptVariable Schema Reference
| **defaultValue** | `any` | optional | |
| **description** | `string` | optional | |
| **validation** | `object` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { PromptVariableSchema } from '@objectstack/spec/ai';
+import type { PromptVariable } from '@objectstack/spec/ai';
+
+// Validate data
+const result = PromptVariableSchema.parse(data);
+
+// Type-safe usage
+const myPromptVariable: PromptVariable = {
+ name: 'name'
+};
+```
+
diff --git a/content/docs/references/ai/nlq/Entity.mdx b/content/docs/references/ai/nlq/Entity.mdx
index 94de35e60..eb3336da9 100644
--- a/content/docs/references/ai/nlq/Entity.mdx
+++ b/content/docs/references/ai/nlq/Entity.mdx
@@ -1,8 +1,18 @@
---
title: Entity
description: Entity Schema Reference
+category: ai
+zodFile: nlq
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/nlq.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,21 @@ description: Entity Schema Reference
| **value** | `any` | optional | Normalized value |
| **confidence** | `number` | ✅ | Confidence score |
| **span** | `any[]` | optional | Character span in query |
+
+## TypeScript Usage
+
+```typescript
+import { EntitySchema } from '@objectstack/spec/ai';
+import type { Entity } from '@objectstack/spec/ai';
+
+// Validate data
+const result = EntitySchema.parse(data);
+
+// Type-safe usage
+const myEntity: Entity = {
+ type: 'object',
+ text: 'example',
+ confidence: 0
+};
+```
+
diff --git a/content/docs/references/ai/nlq/FieldSynonymConfig.mdx b/content/docs/references/ai/nlq/FieldSynonymConfig.mdx
index a7f454f2d..b4f0ac8cf 100644
--- a/content/docs/references/ai/nlq/FieldSynonymConfig.mdx
+++ b/content/docs/references/ai/nlq/FieldSynonymConfig.mdx
@@ -1,8 +1,18 @@
---
title: FieldSynonymConfig
description: FieldSynonymConfig Schema Reference
+category: ai
+zodFile: nlq
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/nlq.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,21 @@ description: FieldSynonymConfig Schema Reference
| **field** | `string` | ✅ | Field name |
| **synonyms** | `string[]` | ✅ | Natural language synonyms |
| **examples** | `string[]` | optional | Example queries using synonyms |
+
+## TypeScript Usage
+
+```typescript
+import { FieldSynonymConfigSchema } from '@objectstack/spec/ai';
+import type { FieldSynonymConfig } from '@objectstack/spec/ai';
+
+// Validate data
+const result = FieldSynonymConfigSchema.parse(data);
+
+// Type-safe usage
+const myFieldSynonymConfig: FieldSynonymConfig = {
+ object: 'example',
+ field: 'example',
+ synonyms: []
+};
+```
+
diff --git a/content/docs/references/ai/nlq/NLQAnalytics.mdx b/content/docs/references/ai/nlq/NLQAnalytics.mdx
index f680f718e..2eafdd3f3 100644
--- a/content/docs/references/ai/nlq/NLQAnalytics.mdx
+++ b/content/docs/references/ai/nlq/NLQAnalytics.mdx
@@ -1,8 +1,18 @@
---
title: NLQAnalytics
description: NLQAnalytics Schema Reference
+category: ai
+zodFile: nlq
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/nlq.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -18,3 +28,22 @@ description: NLQAnalytics Schema Reference
| **lowConfidenceQueries** | `object[]` | ✅ | |
| **startDate** | `string` | ✅ | ISO timestamp |
| **endDate** | `string` | ✅ | ISO timestamp |
+
+## TypeScript Usage
+
+```typescript
+import { NLQAnalyticsSchema } from '@objectstack/spec/ai';
+import type { NLQAnalytics } from '@objectstack/spec/ai';
+
+// Validate data
+const result = NLQAnalyticsSchema.parse(data);
+
+// Type-safe usage
+const myNLQAnalytics: NLQAnalytics = {
+ totalQueries: null,
+ successfulQueries: null,
+ failedQueries: null,
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ai/nlq/NLQFieldMapping.mdx b/content/docs/references/ai/nlq/NLQFieldMapping.mdx
index 872571d6e..50bfd52fc 100644
--- a/content/docs/references/ai/nlq/NLQFieldMapping.mdx
+++ b/content/docs/references/ai/nlq/NLQFieldMapping.mdx
@@ -1,8 +1,18 @@
---
title: NLQFieldMapping
description: NLQFieldMapping Schema Reference
+category: ai
+zodFile: nlq
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/nlq.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,22 @@ description: NLQFieldMapping Schema Reference
| **object** | `string` | ✅ | Object name |
| **field** | `string` | ✅ | Field name |
| **confidence** | `number` | ✅ | |
+
+## TypeScript Usage
+
+```typescript
+import { NLQFieldMappingSchema } from '@objectstack/spec/ai';
+import type { NLQFieldMapping } from '@objectstack/spec/ai';
+
+// Validate data
+const result = NLQFieldMappingSchema.parse(data);
+
+// Type-safe usage
+const myNLQFieldMapping: NLQFieldMapping = {
+ naturalLanguage: 'example',
+ objectField: 'example',
+ object: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ai/nlq/NLQModelConfig.mdx b/content/docs/references/ai/nlq/NLQModelConfig.mdx
index 00f845aa7..ce0422141 100644
--- a/content/docs/references/ai/nlq/NLQModelConfig.mdx
+++ b/content/docs/references/ai/nlq/NLQModelConfig.mdx
@@ -1,8 +1,18 @@
---
title: NLQModelConfig
description: NLQModelConfig Schema Reference
+category: ai
+zodFile: nlq
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/nlq.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -21,3 +31,19 @@ description: NLQModelConfig Schema Reference
| **defaultTimeframe** | `string` | optional | Default timeframe if not specified |
| **enableCaching** | `boolean` | optional | |
| **cacheTTL** | `integer` | optional | Cache TTL in seconds |
+
+## TypeScript Usage
+
+```typescript
+import { NLQModelConfigSchema } from '@objectstack/spec/ai';
+import type { NLQModelConfig } from '@objectstack/spec/ai';
+
+// Validate data
+const result = NLQModelConfigSchema.parse(data);
+
+// Type-safe usage
+const myNLQModelConfig: NLQModelConfig = {
+ modelId: 'example'
+};
+```
+
diff --git a/content/docs/references/ai/nlq/NLQParseResult.mdx b/content/docs/references/ai/nlq/NLQParseResult.mdx
index 9394bb6ce..5046f07cd 100644
--- a/content/docs/references/ai/nlq/NLQParseResult.mdx
+++ b/content/docs/references/ai/nlq/NLQParseResult.mdx
@@ -1,8 +1,18 @@
---
title: NLQParseResult
description: NLQParseResult Schema Reference
+category: ai
+zodFile: nlq
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/nlq.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -18,3 +28,22 @@ description: NLQParseResult Schema Reference
| **confidence** | `number` | ✅ | Overall confidence |
| **ambiguities** | `object[]` | optional | Detected ambiguities requiring clarification |
| **alternatives** | `object[]` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { NLQParseResultSchema } from '@objectstack/spec/ai';
+import type { NLQParseResult } from '@objectstack/spec/ai';
+
+// Validate data
+const result = NLQParseResultSchema.parse(data);
+
+// Type-safe usage
+const myNLQParseResult: NLQParseResult = {
+ originalQuery: 'example',
+ intent: 'select',
+ intentConfidence: 0,
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ai/nlq/NLQRequest.mdx b/content/docs/references/ai/nlq/NLQRequest.mdx
index b19c9e38c..115fcf458 100644
--- a/content/docs/references/ai/nlq/NLQRequest.mdx
+++ b/content/docs/references/ai/nlq/NLQRequest.mdx
@@ -1,8 +1,18 @@
---
title: NLQRequest
description: NLQRequest Schema Reference
+category: ai
+zodFile: nlq
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/nlq.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -14,3 +24,19 @@ description: NLQRequest Schema Reference
| **minConfidence** | `number` | optional | Minimum confidence threshold |
| **executeQuery** | `boolean` | optional | Execute query and return results |
| **maxResults** | `integer` | optional | Maximum results to return |
+
+## TypeScript Usage
+
+```typescript
+import { NLQRequestSchema } from '@objectstack/spec/ai';
+import type { NLQRequest } from '@objectstack/spec/ai';
+
+// Validate data
+const result = NLQRequestSchema.parse(data);
+
+// Type-safe usage
+const myNLQRequest: NLQRequest = {
+ query: 'example'
+};
+```
+
diff --git a/content/docs/references/ai/nlq/NLQResponse.mdx b/content/docs/references/ai/nlq/NLQResponse.mdx
index 1f95393a4..2629d03a1 100644
--- a/content/docs/references/ai/nlq/NLQResponse.mdx
+++ b/content/docs/references/ai/nlq/NLQResponse.mdx
@@ -1,8 +1,18 @@
---
title: NLQResponse
description: NLQResponse Schema Reference
+category: ai
+zodFile: nlq
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/nlq.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,20 @@ description: NLQResponse Schema Reference
| **executionTime** | `number` | optional | Execution time in milliseconds |
| **needsClarification** | `boolean` | ✅ | Whether query needs clarification |
| **suggestions** | `string[]` | optional | Query refinement suggestions |
+
+## TypeScript Usage
+
+```typescript
+import { NLQResponseSchema } from '@objectstack/spec/ai';
+import type { NLQResponse } from '@objectstack/spec/ai';
+
+// Validate data
+const result = NLQResponseSchema.parse(data);
+
+// Type-safe usage
+const myNLQResponse: NLQResponse = {
+ parseResult: {},
+ needsClarification: false
+};
+```
+
diff --git a/content/docs/references/ai/nlq/NLQTrainingExample.mdx b/content/docs/references/ai/nlq/NLQTrainingExample.mdx
index b1ed09435..c7f62046f 100644
--- a/content/docs/references/ai/nlq/NLQTrainingExample.mdx
+++ b/content/docs/references/ai/nlq/NLQTrainingExample.mdx
@@ -1,8 +1,18 @@
---
title: NLQTrainingExample
description: NLQTrainingExample Schema Reference
+category: ai
+zodFile: nlq
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/nlq.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -15,3 +25,20 @@ description: NLQTrainingExample Schema Reference
| **category** | `string` | optional | Example category |
| **tags** | `string[]` | optional | |
| **notes** | `string` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { NLQTrainingExampleSchema } from '@objectstack/spec/ai';
+import type { NLQTrainingExample } from '@objectstack/spec/ai';
+
+// Validate data
+const result = NLQTrainingExampleSchema.parse(data);
+
+// Type-safe usage
+const myNLQTrainingExample: NLQTrainingExample = {
+ query: 'example',
+ expectedIntent: 'select'
+};
+```
+
diff --git a/content/docs/references/ai/nlq/QueryContext.mdx b/content/docs/references/ai/nlq/QueryContext.mdx
index 1651dda25..9c286db6b 100644
--- a/content/docs/references/ai/nlq/QueryContext.mdx
+++ b/content/docs/references/ai/nlq/QueryContext.mdx
@@ -1,8 +1,18 @@
---
title: QueryContext
description: QueryContext Schema Reference
+category: ai
+zodFile: nlq
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/nlq.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -15,3 +25,18 @@ description: QueryContext Schema Reference
| **defaultLimit** | `integer` | optional | |
| **timezone** | `string` | optional | |
| **locale** | `string` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { QueryContextSchema } from '@objectstack/spec/ai';
+import type { QueryContext } from '@objectstack/spec/ai';
+
+// Validate data
+const result = QueryContextSchema.parse(data);
+
+// Type-safe usage
+const myQueryContext: QueryContext = {
+};
+```
+
diff --git a/content/docs/references/ai/nlq/QueryIntent.mdx b/content/docs/references/ai/nlq/QueryIntent.mdx
index 378c0a7c5..0309d0423 100644
--- a/content/docs/references/ai/nlq/QueryIntent.mdx
+++ b/content/docs/references/ai/nlq/QueryIntent.mdx
@@ -1,8 +1,18 @@
---
title: QueryIntent
description: QueryIntent Schema Reference
+category: ai
+zodFile: nlq
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/nlq.zod.ts`
+
+
## Allowed Values
* `select`
@@ -14,4 +24,14 @@ description: QueryIntent Schema Reference
* `insight`
* `create`
* `update`
-* `delete`
\ No newline at end of file
+* `delete`
+
+## TypeScript Usage
+
+```typescript
+import { QueryIntent } from '@objectstack/spec/ai';
+
+// Type-safe enum value
+const value: QueryIntent = 'select';
+```
+
diff --git a/content/docs/references/ai/nlq/QueryTemplate.mdx b/content/docs/references/ai/nlq/QueryTemplate.mdx
index aac5d70c9..c5d4ca3dc 100644
--- a/content/docs/references/ai/nlq/QueryTemplate.mdx
+++ b/content/docs/references/ai/nlq/QueryTemplate.mdx
@@ -1,8 +1,18 @@
---
title: QueryTemplate
description: QueryTemplate Schema Reference
+category: ai
+zodFile: nlq
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/nlq.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -16,3 +26,22 @@ description: QueryTemplate Schema Reference
| **category** | `string` | optional | |
| **examples** | `string[]` | optional | |
| **tags** | `string[]` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { QueryTemplateSchema } from '@objectstack/spec/ai';
+import type { QueryTemplate } from '@objectstack/spec/ai';
+
+// Validate data
+const result = QueryTemplateSchema.parse(data);
+
+// Type-safe usage
+const myQueryTemplate: QueryTemplate = {
+ id: 'example',
+ name: 'name',
+ label: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ai/nlq/Timeframe.mdx b/content/docs/references/ai/nlq/Timeframe.mdx
index 5f6a0d8a4..111fba0f9 100644
--- a/content/docs/references/ai/nlq/Timeframe.mdx
+++ b/content/docs/references/ai/nlq/Timeframe.mdx
@@ -1,8 +1,18 @@
---
title: Timeframe
description: Timeframe Schema Reference
+category: ai
+zodFile: nlq
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/nlq.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,20 @@ description: Timeframe Schema Reference
| **end** | `string` | optional | End date (ISO format) |
| **relative** | `object` | optional | |
| **text** | `string` | ✅ | Original timeframe text |
+
+## TypeScript Usage
+
+```typescript
+import { TimeframeSchema } from '@objectstack/spec/ai';
+import type { Timeframe } from '@objectstack/spec/ai';
+
+// Validate data
+const result = TimeframeSchema.parse(data);
+
+// Type-safe usage
+const myTimeframe: Timeframe = {
+ type: 'absolute',
+ text: 'example'
+};
+```
+
diff --git a/content/docs/references/ai/orchestration/AIOrchestration.mdx b/content/docs/references/ai/orchestration/AIOrchestration.mdx
index 75233ab94..4b3f26225 100644
--- a/content/docs/references/ai/orchestration/AIOrchestration.mdx
+++ b/content/docs/references/ai/orchestration/AIOrchestration.mdx
@@ -1,8 +1,18 @@
---
title: AIOrchestration
description: AIOrchestration Schema Reference
+category: ai
+zodFile: orchestration
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/orchestration.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -32,3 +42,22 @@ description: AIOrchestration Schema Reference
| **owner** | `string` | optional | User ID of workflow owner |
| **createdAt** | `string` | optional | ISO timestamp |
| **updatedAt** | `string` | optional | ISO timestamp |
+
+## TypeScript Usage
+
+```typescript
+import { AIOrchestrationSchema } from '@objectstack/spec/ai';
+import type { AIOrchestration } from '@objectstack/spec/ai';
+
+// Validate data
+const result = AIOrchestrationSchema.parse(data);
+
+// Type-safe usage
+const myAIOrchestration: AIOrchestration = {
+ name: 'name',
+ label: 'example',
+ objectName: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ai/orchestration/AIOrchestrationExecutionResult.mdx b/content/docs/references/ai/orchestration/AIOrchestrationExecutionResult.mdx
index 865b13f36..d8818e1b8 100644
--- a/content/docs/references/ai/orchestration/AIOrchestrationExecutionResult.mdx
+++ b/content/docs/references/ai/orchestration/AIOrchestrationExecutionResult.mdx
@@ -1,8 +1,18 @@
---
title: AIOrchestrationExecutionResult
description: AIOrchestrationExecutionResult Schema Reference
+category: ai
+zodFile: orchestration
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/orchestration.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -18,3 +28,22 @@ description: AIOrchestrationExecutionResult Schema Reference
| **error** | `string` | optional | |
| **startedAt** | `string` | ✅ | ISO timestamp |
| **completedAt** | `string` | optional | ISO timestamp |
+
+## TypeScript Usage
+
+```typescript
+import { AIOrchestrationExecutionResultSchema } from '@objectstack/spec/ai';
+import type { AIOrchestrationExecutionResult } from '@objectstack/spec/ai';
+
+// Validate data
+const result = AIOrchestrationExecutionResultSchema.parse(data);
+
+// Type-safe usage
+const myAIOrchestrationExecutionResult: AIOrchestrationExecutionResult = {
+ workflowName: 'example',
+ recordId: 'example',
+ status: 'success',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ai/orchestration/AIOrchestrationTrigger.mdx b/content/docs/references/ai/orchestration/AIOrchestrationTrigger.mdx
index 3ff9d846e..bbfebd981 100644
--- a/content/docs/references/ai/orchestration/AIOrchestrationTrigger.mdx
+++ b/content/docs/references/ai/orchestration/AIOrchestrationTrigger.mdx
@@ -1,8 +1,18 @@
---
title: AIOrchestrationTrigger
description: AIOrchestrationTrigger Schema Reference
+category: ai
+zodFile: orchestration
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/orchestration.zod.ts`
+
+
## Allowed Values
* `record_created`
@@ -11,4 +21,14 @@ description: AIOrchestrationTrigger Schema Reference
* `scheduled`
* `manual`
* `webhook`
-* `batch`
\ No newline at end of file
+* `batch`
+
+## TypeScript Usage
+
+```typescript
+import { AIOrchestrationTrigger } from '@objectstack/spec/ai';
+
+// Type-safe enum value
+const value: AIOrchestrationTrigger = 'record_created';
+```
+
diff --git a/content/docs/references/ai/orchestration/AITask.mdx b/content/docs/references/ai/orchestration/AITask.mdx
index 0911f29b2..5fdb3c04d 100644
--- a/content/docs/references/ai/orchestration/AITask.mdx
+++ b/content/docs/references/ai/orchestration/AITask.mdx
@@ -1,8 +1,18 @@
---
title: AITask
description: AITask Schema Reference
+category: ai
+zodFile: orchestration
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/orchestration.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -26,3 +36,22 @@ description: AITask Schema Reference
| **condition** | `string` | optional | Formula condition - task only runs if TRUE |
| **description** | `string` | optional | |
| **active** | `boolean` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { AITaskSchema } from '@objectstack/spec/ai';
+import type { AITask } from '@objectstack/spec/ai';
+
+// Validate data
+const result = AITaskSchema.parse(data);
+
+// Type-safe usage
+const myAITask: AITask = {
+ name: 'name',
+ type: 'classify',
+ inputFields: [],
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ai/orchestration/AITaskType.mdx b/content/docs/references/ai/orchestration/AITaskType.mdx
index 5bc85239d..8511464c5 100644
--- a/content/docs/references/ai/orchestration/AITaskType.mdx
+++ b/content/docs/references/ai/orchestration/AITaskType.mdx
@@ -1,8 +1,18 @@
---
title: AITaskType
description: AITaskType Schema Reference
+category: ai
+zodFile: orchestration
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/orchestration.zod.ts`
+
+
## Allowed Values
* `classify`
@@ -14,4 +24,14 @@ description: AITaskType Schema Reference
* `sentiment`
* `entity_recognition`
* `anomaly_detection`
-* `recommendation`
\ No newline at end of file
+* `recommendation`
+
+## TypeScript Usage
+
+```typescript
+import { AITaskType } from '@objectstack/spec/ai';
+
+// Type-safe enum value
+const value: AITaskType = 'classify';
+```
+
diff --git a/content/docs/references/ai/orchestration/BatchAIOrchestrationExecution.mdx b/content/docs/references/ai/orchestration/BatchAIOrchestrationExecution.mdx
index bae06a30f..459712f2e 100644
--- a/content/docs/references/ai/orchestration/BatchAIOrchestrationExecution.mdx
+++ b/content/docs/references/ai/orchestration/BatchAIOrchestrationExecution.mdx
@@ -1,8 +1,18 @@
---
title: BatchAIOrchestrationExecution
description: BatchAIOrchestrationExecution Schema Reference
+category: ai
+zodFile: orchestration
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/orchestration.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,20 @@ description: BatchAIOrchestrationExecution Schema Reference
| **batchSize** | `integer` | optional | |
| **parallelism** | `integer` | optional | |
| **priority** | `Enum<'low' \| 'normal' \| 'high'>` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { BatchAIOrchestrationExecutionSchema } from '@objectstack/spec/ai';
+import type { BatchAIOrchestrationExecution } from '@objectstack/spec/ai';
+
+// Validate data
+const result = BatchAIOrchestrationExecutionSchema.parse(data);
+
+// Type-safe usage
+const myBatchAIOrchestrationExecution: BatchAIOrchestrationExecution = {
+ workflowName: 'example',
+ recordIds: []
+};
+```
+
diff --git a/content/docs/references/ai/orchestration/PostProcessingAction.mdx b/content/docs/references/ai/orchestration/PostProcessingAction.mdx
index a8c93ca76..87e1e6661 100644
--- a/content/docs/references/ai/orchestration/PostProcessingAction.mdx
+++ b/content/docs/references/ai/orchestration/PostProcessingAction.mdx
@@ -1,8 +1,18 @@
---
title: PostProcessingAction
description: PostProcessingAction Schema Reference
+category: ai
+zodFile: orchestration
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/orchestration.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,21 @@ description: PostProcessingAction Schema Reference
| **name** | `string` | ✅ | Action name |
| **config** | `Record` | ✅ | Action-specific configuration |
| **condition** | `string` | optional | Execute only if condition is TRUE |
+
+## TypeScript Usage
+
+```typescript
+import { PostProcessingActionSchema } from '@objectstack/spec/ai';
+import type { PostProcessingAction } from '@objectstack/spec/ai';
+
+// Validate data
+const result = PostProcessingActionSchema.parse(data);
+
+// Type-safe usage
+const myPostProcessingAction: PostProcessingAction = {
+ type: 'field_update',
+ name: 'name',
+ config: {}
+};
+```
+
diff --git a/content/docs/references/ai/orchestration/WorkflowFieldCondition.mdx b/content/docs/references/ai/orchestration/WorkflowFieldCondition.mdx
index c5044e30e..079cf963e 100644
--- a/content/docs/references/ai/orchestration/WorkflowFieldCondition.mdx
+++ b/content/docs/references/ai/orchestration/WorkflowFieldCondition.mdx
@@ -1,8 +1,18 @@
---
title: WorkflowFieldCondition
description: WorkflowFieldCondition Schema Reference
+category: ai
+zodFile: orchestration
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/orchestration.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,19 @@ description: WorkflowFieldCondition Schema Reference
| **field** | `string` | ✅ | Field name to monitor |
| **operator** | `Enum<'changed' \| 'changed_to' \| 'changed_from' \| 'is' \| 'is_not'>` | optional | |
| **value** | `any` | optional | Value to compare against (for changed_to/changed_from/is/is_not) |
+
+## TypeScript Usage
+
+```typescript
+import { WorkflowFieldConditionSchema } from '@objectstack/spec/ai';
+import type { WorkflowFieldCondition } from '@objectstack/spec/ai';
+
+// Validate data
+const result = WorkflowFieldConditionSchema.parse(data);
+
+// Type-safe usage
+const myWorkflowFieldCondition: WorkflowFieldCondition = {
+ field: 'example'
+};
+```
+
diff --git a/content/docs/references/ai/orchestration/WorkflowSchedule.mdx b/content/docs/references/ai/orchestration/WorkflowSchedule.mdx
index add93497f..57a2be24e 100644
--- a/content/docs/references/ai/orchestration/WorkflowSchedule.mdx
+++ b/content/docs/references/ai/orchestration/WorkflowSchedule.mdx
@@ -1,8 +1,18 @@
---
title: WorkflowSchedule
description: WorkflowSchedule Schema Reference
+category: ai
+zodFile: orchestration
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/orchestration.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -14,3 +24,18 @@ description: WorkflowSchedule Schema Reference
| **dayOfWeek** | `integer` | optional | Day of week for weekly (0=Sunday) |
| **dayOfMonth** | `integer` | optional | Day of month for monthly |
| **timezone** | `string` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { WorkflowScheduleSchema } from '@objectstack/spec/ai';
+import type { WorkflowSchedule } from '@objectstack/spec/ai';
+
+// Validate data
+const result = WorkflowScheduleSchema.parse(data);
+
+// Type-safe usage
+const myWorkflowSchedule: WorkflowSchedule = {
+};
+```
+
diff --git a/content/docs/references/ai/predictive/EvaluationMetrics.mdx b/content/docs/references/ai/predictive/EvaluationMetrics.mdx
index a41fda405..4d56190a1 100644
--- a/content/docs/references/ai/predictive/EvaluationMetrics.mdx
+++ b/content/docs/references/ai/predictive/EvaluationMetrics.mdx
@@ -1,8 +1,18 @@
---
title: EvaluationMetrics
description: EvaluationMetrics Schema Reference
+category: ai
+zodFile: predictive
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/predictive.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -21,3 +31,18 @@ description: EvaluationMetrics Schema Reference
| **mape** | `number` | optional | Mean Absolute Percentage Error |
| **smape** | `number` | optional | Symmetric MAPE |
| **custom** | `Record` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { EvaluationMetricsSchema } from '@objectstack/spec/ai';
+import type { EvaluationMetrics } from '@objectstack/spec/ai';
+
+// Validate data
+const result = EvaluationMetricsSchema.parse(data);
+
+// Type-safe usage
+const myEvaluationMetrics: EvaluationMetrics = {
+};
+```
+
diff --git a/content/docs/references/ai/predictive/Hyperparameters.mdx b/content/docs/references/ai/predictive/Hyperparameters.mdx
index 41f8e9d76..70f06f94e 100644
--- a/content/docs/references/ai/predictive/Hyperparameters.mdx
+++ b/content/docs/references/ai/predictive/Hyperparameters.mdx
@@ -1,8 +1,18 @@
---
title: Hyperparameters
description: Hyperparameters Schema Reference
+category: ai
+zodFile: predictive
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/predictive.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -23,3 +33,18 @@ description: Hyperparameters Schema Reference
| **seasonalPeriod** | `integer` | optional | Seasonal period for time series |
| **forecastHorizon** | `integer` | optional | Number of periods to forecast |
| **custom** | `Record` | optional | Algorithm-specific parameters |
+
+## TypeScript Usage
+
+```typescript
+import { HyperparametersSchema } from '@objectstack/spec/ai';
+import type { Hyperparameters } from '@objectstack/spec/ai';
+
+// Validate data
+const result = HyperparametersSchema.parse(data);
+
+// Type-safe usage
+const myHyperparameters: Hyperparameters = {
+};
+```
+
diff --git a/content/docs/references/ai/predictive/ModelDrift.mdx b/content/docs/references/ai/predictive/ModelDrift.mdx
index 703e71bff..0bde39d32 100644
--- a/content/docs/references/ai/predictive/ModelDrift.mdx
+++ b/content/docs/references/ai/predictive/ModelDrift.mdx
@@ -1,8 +1,18 @@
---
title: ModelDrift
description: ModelDrift Schema Reference
+category: ai
+zodFile: predictive
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/predictive.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -14,3 +24,22 @@ description: ModelDrift Schema Reference
| **metrics** | `object` | ✅ | |
| **recommendation** | `string` | optional | |
| **autoRetrainTriggered** | `boolean` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { ModelDriftSchema } from '@objectstack/spec/ai';
+import type { ModelDrift } from '@objectstack/spec/ai';
+
+// Validate data
+const result = ModelDriftSchema.parse(data);
+
+// Type-safe usage
+const myModelDrift: ModelDrift = {
+ modelName: 'example',
+ driftType: 'feature_drift',
+ severity: 'low',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ai/predictive/ModelFeature.mdx b/content/docs/references/ai/predictive/ModelFeature.mdx
index 992f21dae..a3bc12a65 100644
--- a/content/docs/references/ai/predictive/ModelFeature.mdx
+++ b/content/docs/references/ai/predictive/ModelFeature.mdx
@@ -1,8 +1,18 @@
---
title: ModelFeature
description: ModelFeature Schema Reference
+category: ai
+zodFile: predictive
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/predictive.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -17,3 +27,21 @@ description: ModelFeature Schema Reference
| **defaultValue** | `any` | optional | |
| **description** | `string` | optional | |
| **importance** | `number` | optional | Feature importance score (0-1) |
+
+## TypeScript Usage
+
+```typescript
+import { ModelFeatureSchema } from '@objectstack/spec/ai';
+import type { ModelFeature } from '@objectstack/spec/ai';
+
+// Validate data
+const result = ModelFeatureSchema.parse(data);
+
+// Type-safe usage
+const myModelFeature: ModelFeature = {
+ name: 'name',
+ field: 'example',
+ dataType: 'numeric'
+};
+```
+
diff --git a/content/docs/references/ai/predictive/PredictionRequest.mdx b/content/docs/references/ai/predictive/PredictionRequest.mdx
index 99279567d..ed9dac76e 100644
--- a/content/docs/references/ai/predictive/PredictionRequest.mdx
+++ b/content/docs/references/ai/predictive/PredictionRequest.mdx
@@ -1,8 +1,18 @@
---
title: PredictionRequest
description: PredictionRequest Schema Reference
+category: ai
+zodFile: predictive
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/predictive.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,19 @@ description: PredictionRequest Schema Reference
| **inputData** | `Record` | optional | Direct input data (alternative to recordIds) |
| **returnConfidence** | `boolean` | optional | |
| **returnExplanation** | `boolean` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { PredictionRequestSchema } from '@objectstack/spec/ai';
+import type { PredictionRequest } from '@objectstack/spec/ai';
+
+// Validate data
+const result = PredictionRequestSchema.parse(data);
+
+// Type-safe usage
+const myPredictionRequest: PredictionRequest = {
+ modelName: 'example'
+};
+```
+
diff --git a/content/docs/references/ai/predictive/PredictionResult.mdx b/content/docs/references/ai/predictive/PredictionResult.mdx
index 6c9a6c525..67dc621db 100644
--- a/content/docs/references/ai/predictive/PredictionResult.mdx
+++ b/content/docs/references/ai/predictive/PredictionResult.mdx
@@ -1,8 +1,18 @@
---
title: PredictionResult
description: PredictionResult Schema Reference
+category: ai
+zodFile: predictive
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/predictive.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -15,3 +25,20 @@ description: PredictionResult Schema Reference
| **probabilities** | `Record` | optional | Class probabilities (for classification) |
| **explanation** | `object` | optional | |
| **metadata** | `object` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { PredictionResultSchema } from '@objectstack/spec/ai';
+import type { PredictionResult } from '@objectstack/spec/ai';
+
+// Validate data
+const result = PredictionResultSchema.parse(data);
+
+// Type-safe usage
+const myPredictionResult: PredictionResult = {
+ modelName: 'example',
+ modelVersion: 'example'
+};
+```
+
diff --git a/content/docs/references/ai/predictive/PredictiveModel.mdx b/content/docs/references/ai/predictive/PredictiveModel.mdx
index f408f1297..084e56046 100644
--- a/content/docs/references/ai/predictive/PredictiveModel.mdx
+++ b/content/docs/references/ai/predictive/PredictiveModel.mdx
@@ -1,8 +1,18 @@
---
title: PredictiveModel
description: PredictiveModel Schema Reference
+category: ai
+zodFile: predictive
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/predictive.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -38,3 +48,22 @@ description: PredictiveModel Schema Reference
| **lastTrainedAt** | `string` | optional | ISO timestamp |
| **createdAt** | `string` | optional | ISO timestamp |
| **updatedAt** | `string` | optional | ISO timestamp |
+
+## TypeScript Usage
+
+```typescript
+import { PredictiveModelSchema } from '@objectstack/spec/ai';
+import type { PredictiveModel } from '@objectstack/spec/ai';
+
+// Validate data
+const result = PredictiveModelSchema.parse(data);
+
+// Type-safe usage
+const myPredictiveModel: PredictiveModel = {
+ name: 'name',
+ label: 'example',
+ type: 'classification',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ai/predictive/PredictiveModelType.mdx b/content/docs/references/ai/predictive/PredictiveModelType.mdx
index b32506628..4903d97a0 100644
--- a/content/docs/references/ai/predictive/PredictiveModelType.mdx
+++ b/content/docs/references/ai/predictive/PredictiveModelType.mdx
@@ -1,8 +1,18 @@
---
title: PredictiveModelType
description: PredictiveModelType Schema Reference
+category: ai
+zodFile: predictive
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/predictive.zod.ts`
+
+
## Allowed Values
* `classification`
@@ -11,4 +21,14 @@ description: PredictiveModelType Schema Reference
* `forecasting`
* `anomaly_detection`
* `recommendation`
-* `ranking`
\ No newline at end of file
+* `ranking`
+
+## TypeScript Usage
+
+```typescript
+import { PredictiveModelType } from '@objectstack/spec/ai';
+
+// Type-safe enum value
+const value: PredictiveModelType = 'classification';
+```
+
diff --git a/content/docs/references/ai/predictive/TrainingConfig.mdx b/content/docs/references/ai/predictive/TrainingConfig.mdx
index f42a11d1b..c83782713 100644
--- a/content/docs/references/ai/predictive/TrainingConfig.mdx
+++ b/content/docs/references/ai/predictive/TrainingConfig.mdx
@@ -1,8 +1,18 @@
---
title: TrainingConfig
description: TrainingConfig Schema Reference
+category: ai
+zodFile: predictive
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/predictive.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -21,3 +31,18 @@ description: TrainingConfig Schema Reference
| **maxTrainingTime** | `number` | optional | Maximum training time in seconds |
| **gpuEnabled** | `boolean` | optional | |
| **randomSeed** | `integer` | optional | Random seed for reproducibility |
+
+## TypeScript Usage
+
+```typescript
+import { TrainingConfigSchema } from '@objectstack/spec/ai';
+import type { TrainingConfig } from '@objectstack/spec/ai';
+
+// Validate data
+const result = TrainingConfigSchema.parse(data);
+
+// Type-safe usage
+const myTrainingConfig: TrainingConfig = {
+};
+```
+
diff --git a/content/docs/references/ai/rag-pipeline/ChunkingStrategy.mdx b/content/docs/references/ai/rag-pipeline/ChunkingStrategy.mdx
index ccb091681..391850c42 100644
--- a/content/docs/references/ai/rag-pipeline/ChunkingStrategy.mdx
+++ b/content/docs/references/ai/rag-pipeline/ChunkingStrategy.mdx
@@ -1,5 +1,15 @@
---
title: ChunkingStrategy
description: ChunkingStrategy Schema Reference
+category: ai
+zodFile: rag-pipeline
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/rag-pipeline.zod.ts`
+
+
diff --git a/content/docs/references/ai/rag-pipeline/DocumentChunk.mdx b/content/docs/references/ai/rag-pipeline/DocumentChunk.mdx
index d6d97907c..73a311dd8 100644
--- a/content/docs/references/ai/rag-pipeline/DocumentChunk.mdx
+++ b/content/docs/references/ai/rag-pipeline/DocumentChunk.mdx
@@ -1,8 +1,18 @@
---
title: DocumentChunk
description: DocumentChunk Schema Reference
+category: ai
+zodFile: rag-pipeline
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/rag-pipeline.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,22 @@ description: DocumentChunk Schema Reference
| **metadata** | `object` | ✅ | |
| **chunkIndex** | `integer` | ✅ | Chunk position in document |
| **tokens** | `integer` | optional | Token count |
+
+## TypeScript Usage
+
+```typescript
+import { DocumentChunkSchema } from '@objectstack/spec/ai';
+import type { DocumentChunk } from '@objectstack/spec/ai';
+
+// Validate data
+const result = DocumentChunkSchema.parse(data);
+
+// Type-safe usage
+const myDocumentChunk: DocumentChunk = {
+ id: 'example',
+ content: 'example',
+ metadata: {},
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ai/rag-pipeline/DocumentLoaderConfig.mdx b/content/docs/references/ai/rag-pipeline/DocumentLoaderConfig.mdx
index 887ac300b..34321bea0 100644
--- a/content/docs/references/ai/rag-pipeline/DocumentLoaderConfig.mdx
+++ b/content/docs/references/ai/rag-pipeline/DocumentLoaderConfig.mdx
@@ -1,8 +1,18 @@
---
title: DocumentLoaderConfig
description: DocumentLoaderConfig Schema Reference
+category: ai
+zodFile: rag-pipeline
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/rag-pipeline.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -16,3 +26,20 @@ description: DocumentLoaderConfig Schema Reference
| **extractImages** | `boolean` | optional | Extract text from images (OCR) |
| **extractTables** | `boolean` | optional | Extract and format tables |
| **loaderConfig** | `Record` | optional | Custom loader-specific config |
+
+## TypeScript Usage
+
+```typescript
+import { DocumentLoaderConfigSchema } from '@objectstack/spec/ai';
+import type { DocumentLoaderConfig } from '@objectstack/spec/ai';
+
+// Validate data
+const result = DocumentLoaderConfigSchema.parse(data);
+
+// Type-safe usage
+const myDocumentLoaderConfig: DocumentLoaderConfig = {
+ type: 'file',
+ source: 'example'
+};
+```
+
diff --git a/content/docs/references/ai/rag-pipeline/DocumentMetadata.mdx b/content/docs/references/ai/rag-pipeline/DocumentMetadata.mdx
index ae125abea..2b139db62 100644
--- a/content/docs/references/ai/rag-pipeline/DocumentMetadata.mdx
+++ b/content/docs/references/ai/rag-pipeline/DocumentMetadata.mdx
@@ -1,8 +1,18 @@
---
title: DocumentMetadata
description: DocumentMetadata Schema Reference
+category: ai
+zodFile: rag-pipeline
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/rag-pipeline.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -17,3 +27,19 @@ description: DocumentMetadata Schema Reference
| **category** | `string` | optional | |
| **language** | `string` | optional | Document language (ISO 639-1 code) |
| **custom** | `Record` | optional | Custom metadata fields |
+
+## TypeScript Usage
+
+```typescript
+import { DocumentMetadataSchema } from '@objectstack/spec/ai';
+import type { DocumentMetadata } from '@objectstack/spec/ai';
+
+// Validate data
+const result = DocumentMetadataSchema.parse(data);
+
+// Type-safe usage
+const myDocumentMetadata: DocumentMetadata = {
+ source: 'example'
+};
+```
+
diff --git a/content/docs/references/ai/rag-pipeline/EmbeddingModel.mdx b/content/docs/references/ai/rag-pipeline/EmbeddingModel.mdx
index 7d581b2a7..a89d0cc90 100644
--- a/content/docs/references/ai/rag-pipeline/EmbeddingModel.mdx
+++ b/content/docs/references/ai/rag-pipeline/EmbeddingModel.mdx
@@ -1,8 +1,18 @@
---
title: EmbeddingModel
description: EmbeddingModel Schema Reference
+category: ai
+zodFile: rag-pipeline
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/rag-pipeline.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -14,3 +24,21 @@ description: EmbeddingModel Schema Reference
| **batchSize** | `integer` | optional | Batch size for embedding |
| **endpoint** | `string` | optional | Custom endpoint URL |
| **apiKey** | `string` | optional | API key or reference to secret |
+
+## TypeScript Usage
+
+```typescript
+import { EmbeddingModelSchema } from '@objectstack/spec/ai';
+import type { EmbeddingModel } from '@objectstack/spec/ai';
+
+// Validate data
+const result = EmbeddingModelSchema.parse(data);
+
+// Type-safe usage
+const myEmbeddingModel: EmbeddingModel = {
+ provider: 'openai',
+ model: 'example',
+ dimensions: null
+};
+```
+
diff --git a/content/docs/references/ai/rag-pipeline/RAGPipelineConfig.mdx b/content/docs/references/ai/rag-pipeline/RAGPipelineConfig.mdx
index 74f5433d8..05f5ed3a6 100644
--- a/content/docs/references/ai/rag-pipeline/RAGPipelineConfig.mdx
+++ b/content/docs/references/ai/rag-pipeline/RAGPipelineConfig.mdx
@@ -1,8 +1,18 @@
---
title: RAGPipelineConfig
description: RAGPipelineConfig Schema Reference
+category: ai
+zodFile: rag-pipeline
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/rag-pipeline.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -22,3 +32,22 @@ description: RAGPipelineConfig Schema Reference
| **enableCache** | `boolean` | optional | |
| **cacheTTL** | `integer` | optional | Cache TTL in seconds |
| **cacheInvalidationStrategy** | `Enum<'time_based' \| 'manual' \| 'on_update'>` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { RAGPipelineConfigSchema } from '@objectstack/spec/ai';
+import type { RAGPipelineConfig } from '@objectstack/spec/ai';
+
+// Validate data
+const result = RAGPipelineConfigSchema.parse(data);
+
+// Type-safe usage
+const myRAGPipelineConfig: RAGPipelineConfig = {
+ name: 'name',
+ label: 'example',
+ embedding: {},
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ai/rag-pipeline/RAGPipelineStatus.mdx b/content/docs/references/ai/rag-pipeline/RAGPipelineStatus.mdx
index daffa4d88..c39d5ef55 100644
--- a/content/docs/references/ai/rag-pipeline/RAGPipelineStatus.mdx
+++ b/content/docs/references/ai/rag-pipeline/RAGPipelineStatus.mdx
@@ -1,8 +1,18 @@
---
title: RAGPipelineStatus
description: RAGPipelineStatus Schema Reference
+category: ai
+zodFile: rag-pipeline
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/rag-pipeline.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,21 @@ description: RAGPipelineStatus Schema Reference
| **lastIndexed** | `string` | optional | ISO timestamp |
| **errorMessage** | `string` | optional | |
| **health** | `object` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { RAGPipelineStatusSchema } from '@objectstack/spec/ai';
+import type { RAGPipelineStatus } from '@objectstack/spec/ai';
+
+// Validate data
+const result = RAGPipelineStatusSchema.parse(data);
+
+// Type-safe usage
+const myRAGPipelineStatus: RAGPipelineStatus = {
+ name: 'name',
+ status: 'active',
+ documentsIndexed: null
+};
+```
+
diff --git a/content/docs/references/ai/rag-pipeline/RAGQueryRequest.mdx b/content/docs/references/ai/rag-pipeline/RAGQueryRequest.mdx
index 734d8aad0..6cbb91931 100644
--- a/content/docs/references/ai/rag-pipeline/RAGQueryRequest.mdx
+++ b/content/docs/references/ai/rag-pipeline/RAGQueryRequest.mdx
@@ -1,8 +1,18 @@
---
title: RAGQueryRequest
description: RAGQueryRequest Schema Reference
+category: ai
+zodFile: rag-pipeline
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/rag-pipeline.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -14,3 +24,20 @@ description: RAGQueryRequest Schema Reference
| **conversationHistory** | `object[]` | optional | |
| **includeMetadata** | `boolean` | optional | |
| **includeSources** | `boolean` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { RAGQueryRequestSchema } from '@objectstack/spec/ai';
+import type { RAGQueryRequest } from '@objectstack/spec/ai';
+
+// Validate data
+const result = RAGQueryRequestSchema.parse(data);
+
+// Type-safe usage
+const myRAGQueryRequest: RAGQueryRequest = {
+ query: 'example',
+ pipelineName: 'example'
+};
+```
+
diff --git a/content/docs/references/ai/rag-pipeline/RAGQueryResponse.mdx b/content/docs/references/ai/rag-pipeline/RAGQueryResponse.mdx
index d33cdad27..30cb6ba5a 100644
--- a/content/docs/references/ai/rag-pipeline/RAGQueryResponse.mdx
+++ b/content/docs/references/ai/rag-pipeline/RAGQueryResponse.mdx
@@ -1,8 +1,18 @@
---
title: RAGQueryResponse
description: RAGQueryResponse Schema Reference
+category: ai
+zodFile: rag-pipeline
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/rag-pipeline.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,21 @@ description: RAGQueryResponse Schema Reference
| **context** | `string` | ✅ | Assembled context for LLM |
| **tokensUsed** | `integer` | optional | |
| **retrievalTime** | `number` | optional | Retrieval time in milliseconds |
+
+## TypeScript Usage
+
+```typescript
+import { RAGQueryResponseSchema } from '@objectstack/spec/ai';
+import type { RAGQueryResponse } from '@objectstack/spec/ai';
+
+// Validate data
+const result = RAGQueryResponseSchema.parse(data);
+
+// Type-safe usage
+const myRAGQueryResponse: RAGQueryResponse = {
+ query: 'example',
+ results: [],
+ context: 'example'
+};
+```
+
diff --git a/content/docs/references/ai/rag-pipeline/RerankingConfig.mdx b/content/docs/references/ai/rag-pipeline/RerankingConfig.mdx
index 7cfb7e3d9..8289a0005 100644
--- a/content/docs/references/ai/rag-pipeline/RerankingConfig.mdx
+++ b/content/docs/references/ai/rag-pipeline/RerankingConfig.mdx
@@ -1,8 +1,18 @@
---
title: RerankingConfig
description: RerankingConfig Schema Reference
+category: ai
+zodFile: rag-pipeline
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/rag-pipeline.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,18 @@ description: RerankingConfig Schema Reference
| **model** | `string` | optional | Reranking model name |
| **provider** | `Enum<'cohere' \| 'huggingface' \| 'custom'>` | optional | |
| **topK** | `integer` | optional | Final number of results after reranking |
+
+## TypeScript Usage
+
+```typescript
+import { RerankingConfigSchema } from '@objectstack/spec/ai';
+import type { RerankingConfig } from '@objectstack/spec/ai';
+
+// Validate data
+const result = RerankingConfigSchema.parse(data);
+
+// Type-safe usage
+const myRerankingConfig: RerankingConfig = {
+};
+```
+
diff --git a/content/docs/references/ai/rag-pipeline/RetrievalStrategy.mdx b/content/docs/references/ai/rag-pipeline/RetrievalStrategy.mdx
index 25d9e6dde..3614a66fe 100644
--- a/content/docs/references/ai/rag-pipeline/RetrievalStrategy.mdx
+++ b/content/docs/references/ai/rag-pipeline/RetrievalStrategy.mdx
@@ -1,5 +1,15 @@
---
title: RetrievalStrategy
description: RetrievalStrategy Schema Reference
+category: ai
+zodFile: rag-pipeline
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/rag-pipeline.zod.ts`
+
+
diff --git a/content/docs/references/ai/rag-pipeline/VectorStoreConfig.mdx b/content/docs/references/ai/rag-pipeline/VectorStoreConfig.mdx
index db3bd3fbd..c4172f740 100644
--- a/content/docs/references/ai/rag-pipeline/VectorStoreConfig.mdx
+++ b/content/docs/references/ai/rag-pipeline/VectorStoreConfig.mdx
@@ -1,8 +1,18 @@
---
title: VectorStoreConfig
description: VectorStoreConfig Schema Reference
+category: ai
+zodFile: rag-pipeline
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/rag-pipeline.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -18,3 +28,21 @@ description: VectorStoreConfig Schema Reference
| **batchSize** | `integer` | optional | |
| **connectionPoolSize** | `integer` | optional | |
| **timeout** | `integer` | optional | Timeout in milliseconds |
+
+## TypeScript Usage
+
+```typescript
+import { VectorStoreConfigSchema } from '@objectstack/spec/ai';
+import type { VectorStoreConfig } from '@objectstack/spec/ai';
+
+// Validate data
+const result = VectorStoreConfigSchema.parse(data);
+
+// Type-safe usage
+const myVectorStoreConfig: VectorStoreConfig = {
+ provider: 'pinecone',
+ indexName: 'example',
+ dimensions: null
+};
+```
+
diff --git a/content/docs/references/ai/rag-pipeline/VectorStoreProvider.mdx b/content/docs/references/ai/rag-pipeline/VectorStoreProvider.mdx
index 37c6435e6..73fcdcfea 100644
--- a/content/docs/references/ai/rag-pipeline/VectorStoreProvider.mdx
+++ b/content/docs/references/ai/rag-pipeline/VectorStoreProvider.mdx
@@ -1,8 +1,18 @@
---
title: VectorStoreProvider
description: VectorStoreProvider Schema Reference
+category: ai
+zodFile: rag-pipeline
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ai/rag-pipeline.zod.ts`
+
+
## Allowed Values
* `pinecone`
@@ -14,4 +24,14 @@ description: VectorStoreProvider Schema Reference
* `redis`
* `opensearch`
* `elasticsearch`
-* `custom`
\ No newline at end of file
+* `custom`
+
+## TypeScript Usage
+
+```typescript
+import { VectorStoreProvider } from '@objectstack/spec/ai';
+
+// Type-safe enum value
+const value: VectorStoreProvider = 'pinecone';
+```
+
diff --git a/content/docs/references/api/contract/ApiError.mdx b/content/docs/references/api/contract/ApiError.mdx
index 2f3f78ff1..2b8f997bf 100644
--- a/content/docs/references/api/contract/ApiError.mdx
+++ b/content/docs/references/api/contract/ApiError.mdx
@@ -1,8 +1,18 @@
---
title: ApiError
description: ApiError Schema Reference
+category: api
+zodFile: contract
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/contract.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,20 @@ description: ApiError Schema Reference
| **code** | `string` | ✅ | Error code (e.g. validation_error) |
| **message** | `string` | ✅ | Readable error message |
| **details** | `any` | optional | Additional error context (e.g. field validation errors) |
+
+## TypeScript Usage
+
+```typescript
+import { ApiErrorSchema } from '@objectstack/spec/api';
+import type { ApiError } from '@objectstack/spec/api';
+
+// Validate data
+const result = ApiErrorSchema.parse(data);
+
+// Type-safe usage
+const myApiError: ApiError = {
+ code: 'example',
+ message: 'example'
+};
+```
+
diff --git a/content/docs/references/api/contract/BaseResponse.mdx b/content/docs/references/api/contract/BaseResponse.mdx
index c180bace9..004796d76 100644
--- a/content/docs/references/api/contract/BaseResponse.mdx
+++ b/content/docs/references/api/contract/BaseResponse.mdx
@@ -1,8 +1,18 @@
---
title: BaseResponse
description: BaseResponse Schema Reference
+category: api
+zodFile: contract
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/contract.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,19 @@ description: BaseResponse Schema Reference
| **success** | `boolean` | ✅ | Operation success status |
| **error** | `object` | optional | Error details if success is false |
| **meta** | `object` | optional | Response metadata |
+
+## TypeScript Usage
+
+```typescript
+import { BaseResponseSchema } from '@objectstack/spec/api';
+import type { BaseResponse } from '@objectstack/spec/api';
+
+// Validate data
+const result = BaseResponseSchema.parse(data);
+
+// Type-safe usage
+const myBaseResponse: BaseResponse = {
+ success: false
+};
+```
+
diff --git a/content/docs/references/api/contract/BulkRequest.mdx b/content/docs/references/api/contract/BulkRequest.mdx
index 893f2b17a..ba47b0832 100644
--- a/content/docs/references/api/contract/BulkRequest.mdx
+++ b/content/docs/references/api/contract/BulkRequest.mdx
@@ -1,11 +1,37 @@
---
title: BulkRequest
description: BulkRequest Schema Reference
+category: api
+zodFile: contract
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/contract.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **records** | `Record[]` | ✅ | Array of records to process |
| **allOrNone** | `boolean` | optional | If true, rollback entire transaction on any failure |
+
+## TypeScript Usage
+
+```typescript
+import { BulkRequestSchema } from '@objectstack/spec/api';
+import type { BulkRequest } from '@objectstack/spec/api';
+
+// Validate data
+const result = BulkRequestSchema.parse(data);
+
+// Type-safe usage
+const myBulkRequest: BulkRequest = {
+ records: []
+};
+```
+
diff --git a/content/docs/references/api/contract/BulkResponse.mdx b/content/docs/references/api/contract/BulkResponse.mdx
index cc21f18e4..6c5a29619 100644
--- a/content/docs/references/api/contract/BulkResponse.mdx
+++ b/content/docs/references/api/contract/BulkResponse.mdx
@@ -1,8 +1,18 @@
---
title: BulkResponse
description: BulkResponse Schema Reference
+category: api
+zodFile: contract
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/contract.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,20 @@ description: BulkResponse Schema Reference
| **error** | `object` | optional | Error details if success is false |
| **meta** | `object` | optional | Response metadata |
| **data** | `object[]` | ✅ | Results for each item in the batch |
+
+## TypeScript Usage
+
+```typescript
+import { BulkResponseSchema } from '@objectstack/spec/api';
+import type { BulkResponse } from '@objectstack/spec/api';
+
+// Validate data
+const result = BulkResponseSchema.parse(data);
+
+// Type-safe usage
+const myBulkResponse: BulkResponse = {
+ success: false,
+ data: []
+};
+```
+
diff --git a/content/docs/references/api/contract/CreateRequest.mdx b/content/docs/references/api/contract/CreateRequest.mdx
index d6dcc398d..222c07ce3 100644
--- a/content/docs/references/api/contract/CreateRequest.mdx
+++ b/content/docs/references/api/contract/CreateRequest.mdx
@@ -1,10 +1,36 @@
---
title: CreateRequest
description: CreateRequest Schema Reference
+category: api
+zodFile: contract
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/contract.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **data** | `Record` | ✅ | Record data to insert |
+
+## TypeScript Usage
+
+```typescript
+import { CreateRequestSchema } from '@objectstack/spec/api';
+import type { CreateRequest } from '@objectstack/spec/api';
+
+// Validate data
+const result = CreateRequestSchema.parse(data);
+
+// Type-safe usage
+const myCreateRequest: CreateRequest = {
+ data: {}
+};
+```
+
diff --git a/content/docs/references/api/contract/DeleteResponse.mdx b/content/docs/references/api/contract/DeleteResponse.mdx
index e0123aab8..9a74b3b5f 100644
--- a/content/docs/references/api/contract/DeleteResponse.mdx
+++ b/content/docs/references/api/contract/DeleteResponse.mdx
@@ -1,8 +1,18 @@
---
title: DeleteResponse
description: DeleteResponse Schema Reference
+category: api
+zodFile: contract
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/contract.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,20 @@ description: DeleteResponse Schema Reference
| **error** | `object` | optional | Error details if success is false |
| **meta** | `object` | optional | Response metadata |
| **id** | `string` | ✅ | ID of the deleted record |
+
+## TypeScript Usage
+
+```typescript
+import { DeleteResponseSchema } from '@objectstack/spec/api';
+import type { DeleteResponse } from '@objectstack/spec/api';
+
+// Validate data
+const result = DeleteResponseSchema.parse(data);
+
+// Type-safe usage
+const myDeleteResponse: DeleteResponse = {
+ success: false,
+ id: 'example'
+};
+```
+
diff --git a/content/docs/references/api/contract/ExportRequest.mdx b/content/docs/references/api/contract/ExportRequest.mdx
index f559d1d4a..b6f153c77 100644
--- a/content/docs/references/api/contract/ExportRequest.mdx
+++ b/content/docs/references/api/contract/ExportRequest.mdx
@@ -1,8 +1,18 @@
---
title: ExportRequest
description: ExportRequest Schema Reference
+category: api
+zodFile: contract
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/contract.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -21,3 +31,19 @@ description: ExportRequest Schema Reference
| **windowFunctions** | `object[]` | optional | Window functions with OVER clause |
| **distinct** | `boolean` | optional | SELECT DISTINCT flag |
| **format** | `Enum<'csv' \| 'json' \| 'xlsx'>` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { ExportRequestSchema } from '@objectstack/spec/api';
+import type { ExportRequest } from '@objectstack/spec/api';
+
+// Validate data
+const result = ExportRequestSchema.parse(data);
+
+// Type-safe usage
+const myExportRequest: ExportRequest = {
+ object: 'example'
+};
+```
+
diff --git a/content/docs/references/api/contract/ListRecordResponse.mdx b/content/docs/references/api/contract/ListRecordResponse.mdx
index 8a69a402c..22f01f1d5 100644
--- a/content/docs/references/api/contract/ListRecordResponse.mdx
+++ b/content/docs/references/api/contract/ListRecordResponse.mdx
@@ -1,8 +1,18 @@
---
title: ListRecordResponse
description: ListRecordResponse Schema Reference
+category: api
+zodFile: contract
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/contract.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,21 @@ description: ListRecordResponse Schema Reference
| **meta** | `object` | optional | Response metadata |
| **data** | `Record[]` | ✅ | Array of matching records |
| **pagination** | `object` | ✅ | Pagination info |
+
+## TypeScript Usage
+
+```typescript
+import { ListRecordResponseSchema } from '@objectstack/spec/api';
+import type { ListRecordResponse } from '@objectstack/spec/api';
+
+// Validate data
+const result = ListRecordResponseSchema.parse(data);
+
+// Type-safe usage
+const myListRecordResponse: ListRecordResponse = {
+ success: false,
+ data: [],
+ pagination: {}
+};
+```
+
diff --git a/content/docs/references/api/contract/ModificationResult.mdx b/content/docs/references/api/contract/ModificationResult.mdx
index 0498f7c62..f48f9bc5c 100644
--- a/content/docs/references/api/contract/ModificationResult.mdx
+++ b/content/docs/references/api/contract/ModificationResult.mdx
@@ -1,8 +1,18 @@
---
title: ModificationResult
description: ModificationResult Schema Reference
+category: api
+zodFile: contract
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/contract.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,19 @@ description: ModificationResult Schema Reference
| **id** | `string` | optional | Record ID if processed |
| **success** | `boolean` | ✅ | |
| **errors** | `object[]` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { ModificationResultSchema } from '@objectstack/spec/api';
+import type { ModificationResult } from '@objectstack/spec/api';
+
+// Validate data
+const result = ModificationResultSchema.parse(data);
+
+// Type-safe usage
+const myModificationResult: ModificationResult = {
+ success: false
+};
+```
+
diff --git a/content/docs/references/api/contract/RecordData.mdx b/content/docs/references/api/contract/RecordData.mdx
index a3a8d02c1..06470f3c0 100644
--- a/content/docs/references/api/contract/RecordData.mdx
+++ b/content/docs/references/api/contract/RecordData.mdx
@@ -1,7 +1,17 @@
---
title: RecordData
description: Key-value map of record data
+category: api
+zodFile: contract
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
Key-value map of record data
+
+**Source:** `packages/spec/src/api/contract.zod.ts`
+
+
diff --git a/content/docs/references/api/contract/SingleRecordResponse.mdx b/content/docs/references/api/contract/SingleRecordResponse.mdx
index 30b52d855..e9b4bf2c0 100644
--- a/content/docs/references/api/contract/SingleRecordResponse.mdx
+++ b/content/docs/references/api/contract/SingleRecordResponse.mdx
@@ -1,8 +1,18 @@
---
title: SingleRecordResponse
description: SingleRecordResponse Schema Reference
+category: api
+zodFile: contract
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/contract.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,20 @@ description: SingleRecordResponse Schema Reference
| **error** | `object` | optional | Error details if success is false |
| **meta** | `object` | optional | Response metadata |
| **data** | `Record` | ✅ | The requested or modified record |
+
+## TypeScript Usage
+
+```typescript
+import { SingleRecordResponseSchema } from '@objectstack/spec/api';
+import type { SingleRecordResponse } from '@objectstack/spec/api';
+
+// Validate data
+const result = SingleRecordResponseSchema.parse(data);
+
+// Type-safe usage
+const mySingleRecordResponse: SingleRecordResponse = {
+ success: false,
+ data: {}
+};
+```
+
diff --git a/content/docs/references/api/contract/UpdateRequest.mdx b/content/docs/references/api/contract/UpdateRequest.mdx
index f358d946c..93eebd555 100644
--- a/content/docs/references/api/contract/UpdateRequest.mdx
+++ b/content/docs/references/api/contract/UpdateRequest.mdx
@@ -1,10 +1,36 @@
---
title: UpdateRequest
description: UpdateRequest Schema Reference
+category: api
+zodFile: contract
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/contract.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **data** | `Record` | ✅ | Partial record data to update |
+
+## TypeScript Usage
+
+```typescript
+import { UpdateRequestSchema } from '@objectstack/spec/api';
+import type { UpdateRequest } from '@objectstack/spec/api';
+
+// Validate data
+const result = UpdateRequestSchema.parse(data);
+
+// Type-safe usage
+const myUpdateRequest: UpdateRequest = {
+ data: {}
+};
+```
+
diff --git a/content/docs/references/api/discovery/ApiCapabilities.mdx b/content/docs/references/api/discovery/ApiCapabilities.mdx
index ba39b55e8..87354d3a7 100644
--- a/content/docs/references/api/discovery/ApiCapabilities.mdx
+++ b/content/docs/references/api/discovery/ApiCapabilities.mdx
@@ -1,8 +1,18 @@
---
title: ApiCapabilities
description: ApiCapabilities Schema Reference
+category: api
+zodFile: discovery
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/discovery.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,18 @@ description: ApiCapabilities Schema Reference
| **search** | `boolean` | optional | |
| **websockets** | `boolean` | optional | |
| **files** | `boolean` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { ApiCapabilitiesSchema } from '@objectstack/spec/api';
+import type { ApiCapabilities } from '@objectstack/spec/api';
+
+// Validate data
+const result = ApiCapabilitiesSchema.parse(data);
+
+// Type-safe usage
+const myApiCapabilities: ApiCapabilities = {
+};
+```
+
diff --git a/content/docs/references/api/discovery/ApiRoutes.mdx b/content/docs/references/api/discovery/ApiRoutes.mdx
index 1acb16320..238b10ecf 100644
--- a/content/docs/references/api/discovery/ApiRoutes.mdx
+++ b/content/docs/references/api/discovery/ApiRoutes.mdx
@@ -1,8 +1,18 @@
---
title: ApiRoutes
description: ApiRoutes Schema Reference
+category: api
+zodFile: discovery
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/discovery.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,21 @@ description: ApiRoutes Schema Reference
| **automation** | `string` | optional | e.g. /api/automation |
| **storage** | `string` | optional | e.g. /api/storage |
| **graphql** | `string` | optional | e.g. /graphql |
+
+## TypeScript Usage
+
+```typescript
+import { ApiRoutesSchema } from '@objectstack/spec/api';
+import type { ApiRoutes } from '@objectstack/spec/api';
+
+// Validate data
+const result = ApiRoutesSchema.parse(data);
+
+// Type-safe usage
+const myApiRoutes: ApiRoutes = {
+ data: 'example',
+ metadata: 'example',
+ auth: 'example'
+};
+```
+
diff --git a/content/docs/references/api/discovery/Discovery.mdx b/content/docs/references/api/discovery/Discovery.mdx
index 3dbf27d14..3033180e6 100644
--- a/content/docs/references/api/discovery/Discovery.mdx
+++ b/content/docs/references/api/discovery/Discovery.mdx
@@ -1,8 +1,18 @@
---
title: Discovery
description: Discovery Schema Reference
+category: api
+zodFile: discovery
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/discovery.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,22 @@ description: Discovery Schema Reference
| **routes** | `object` | ✅ | |
| **features** | `object` | ✅ | |
| **locale** | `object` | ✅ | |
+
+## TypeScript Usage
+
+```typescript
+import { DiscoverySchema } from '@objectstack/spec/api';
+import type { Discovery } from '@objectstack/spec/api';
+
+// Validate data
+const result = DiscoverySchema.parse(data);
+
+// Type-safe usage
+const myDiscovery: Discovery = {
+ name: 'name',
+ version: 'example',
+ environment: 'production',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/api/endpoint/ApiEndpoint.mdx b/content/docs/references/api/endpoint/ApiEndpoint.mdx
index 48aa4ccba..1179d786d 100644
--- a/content/docs/references/api/endpoint/ApiEndpoint.mdx
+++ b/content/docs/references/api/endpoint/ApiEndpoint.mdx
@@ -1,8 +1,18 @@
---
title: ApiEndpoint
description: ApiEndpoint Schema Reference
+category: api
+zodFile: endpoint
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/endpoint.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -20,3 +30,22 @@ description: ApiEndpoint Schema Reference
| **authRequired** | `boolean` | optional | Require authentication |
| **rateLimit** | `object` | optional | Rate limiting policy |
| **cacheTtl** | `number` | optional | Response cache TTL in seconds |
+
+## TypeScript Usage
+
+```typescript
+import { ApiEndpointSchema } from '@objectstack/spec/api';
+import type { ApiEndpoint } from '@objectstack/spec/api';
+
+// Validate data
+const result = ApiEndpointSchema.parse(data);
+
+// Type-safe usage
+const myApiEndpoint: ApiEndpoint = {
+ name: 'name',
+ path: 'example',
+ method: 'GET',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/api/endpoint/ApiMapping.mdx b/content/docs/references/api/endpoint/ApiMapping.mdx
index d3ebafe16..37c8f5480 100644
--- a/content/docs/references/api/endpoint/ApiMapping.mdx
+++ b/content/docs/references/api/endpoint/ApiMapping.mdx
@@ -1,8 +1,18 @@
---
title: ApiMapping
description: ApiMapping Schema Reference
+category: api
+zodFile: endpoint
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/endpoint.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,20 @@ description: ApiMapping Schema Reference
| **source** | `string` | ✅ | Source field/path |
| **target** | `string` | ✅ | Target field/path |
| **transform** | `string` | optional | Transformation function name |
+
+## TypeScript Usage
+
+```typescript
+import { ApiMappingSchema } from '@objectstack/spec/api';
+import type { ApiMapping } from '@objectstack/spec/api';
+
+// Validate data
+const result = ApiMappingSchema.parse(data);
+
+// Type-safe usage
+const myApiMapping: ApiMapping = {
+ source: 'example',
+ target: 'example'
+};
+```
+
diff --git a/content/docs/references/api/endpoint/RateLimit.mdx b/content/docs/references/api/endpoint/RateLimit.mdx
index 84ebaf8fd..2af59d4a1 100644
--- a/content/docs/references/api/endpoint/RateLimit.mdx
+++ b/content/docs/references/api/endpoint/RateLimit.mdx
@@ -1,8 +1,18 @@
---
title: RateLimit
description: RateLimit Schema Reference
+category: api
+zodFile: endpoint
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/endpoint.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,18 @@ description: RateLimit Schema Reference
| **enabled** | `boolean` | optional | |
| **windowMs** | `number` | optional | Time window in milliseconds |
| **maxRequests** | `number` | optional | Max requests per window |
+
+## TypeScript Usage
+
+```typescript
+import { RateLimitSchema } from '@objectstack/spec/api';
+import type { RateLimit } from '@objectstack/spec/api';
+
+// Validate data
+const result = RateLimitSchema.parse(data);
+
+// Type-safe usage
+const myRateLimit: RateLimit = {
+};
+```
+
diff --git a/content/docs/references/api/index.mdx b/content/docs/references/api/index.mdx
new file mode 100644
index 000000000..a440d8726
--- /dev/null
+++ b/content/docs/references/api/index.mdx
@@ -0,0 +1,89 @@
+---
+title: API Protocol Overview
+description: Complete reference for all api protocol schemas
+---
+
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Database, Cpu, Zap } from 'lucide-react';
+
+# API Protocol
+
+This section contains all protocol schemas for the api layer of ObjectStack.
+
+## Contract
+
+Source: `packages/spec/src/api/contract.zod.ts`
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Discovery
+
+Source: `packages/spec/src/api/discovery.zod.ts`
+
+
+
+
+
+
+
+## Endpoint
+
+Source: `packages/spec/src/api/endpoint.zod.ts`
+
+
+
+
+
+
+
+## Odata
+
+Source: `packages/spec/src/api/odata.zod.ts`
+
+
+
+
+
+
+
+
+
+
+## Realtime
+
+Source: `packages/spec/src/api/realtime.zod.ts`
+
+
+
+
+
+
+
+
+
+
+
+
+## Router
+
+Source: `packages/spec/src/api/router.zod.ts`
+
+
+
+
+
+
+
diff --git a/content/docs/references/api/odata/ODataError.mdx b/content/docs/references/api/odata/ODataError.mdx
index 54a3c00ad..f4dfbfd0e 100644
--- a/content/docs/references/api/odata/ODataError.mdx
+++ b/content/docs/references/api/odata/ODataError.mdx
@@ -1,10 +1,36 @@
---
title: ODataError
description: ODataError Schema Reference
+category: api
+zodFile: odata
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/odata.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **error** | `object` | ✅ | |
+
+## TypeScript Usage
+
+```typescript
+import { ODataErrorSchema } from '@objectstack/spec/api';
+import type { ODataError } from '@objectstack/spec/api';
+
+// Validate data
+const result = ODataErrorSchema.parse(data);
+
+// Type-safe usage
+const myODataError: ODataError = {
+ error: {}
+};
+```
+
diff --git a/content/docs/references/api/odata/ODataFilterFunction.mdx b/content/docs/references/api/odata/ODataFilterFunction.mdx
index 32f6d0c4d..cc41ae1cd 100644
--- a/content/docs/references/api/odata/ODataFilterFunction.mdx
+++ b/content/docs/references/api/odata/ODataFilterFunction.mdx
@@ -1,8 +1,18 @@
---
title: ODataFilterFunction
description: ODataFilterFunction Schema Reference
+category: api
+zodFile: odata
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/odata.zod.ts`
+
+
## Allowed Values
* `contains`
@@ -32,4 +42,14 @@ description: ODataFilterFunction Schema Reference
* `cast`
* `isof`
* `any`
-* `all`
\ No newline at end of file
+* `all`
+
+## TypeScript Usage
+
+```typescript
+import { ODataFilterFunction } from '@objectstack/spec/api';
+
+// Type-safe enum value
+const value: ODataFilterFunction = 'contains';
+```
+
diff --git a/content/docs/references/api/odata/ODataFilterOperator.mdx b/content/docs/references/api/odata/ODataFilterOperator.mdx
index 0b10a8105..fedc3d61a 100644
--- a/content/docs/references/api/odata/ODataFilterOperator.mdx
+++ b/content/docs/references/api/odata/ODataFilterOperator.mdx
@@ -1,8 +1,18 @@
---
title: ODataFilterOperator
description: ODataFilterOperator Schema Reference
+category: api
+zodFile: odata
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/odata.zod.ts`
+
+
## Allowed Values
* `eq`
@@ -17,4 +27,14 @@ description: ODataFilterOperator Schema Reference
* `(`
* `)`
* `in`
-* `has`
\ No newline at end of file
+* `has`
+
+## TypeScript Usage
+
+```typescript
+import { ODataFilterOperator } from '@objectstack/spec/api';
+
+// Type-safe enum value
+const value: ODataFilterOperator = 'eq';
+```
+
diff --git a/content/docs/references/api/odata/ODataMetadata.mdx b/content/docs/references/api/odata/ODataMetadata.mdx
index 10d1432ab..b589f9f0f 100644
--- a/content/docs/references/api/odata/ODataMetadata.mdx
+++ b/content/docs/references/api/odata/ODataMetadata.mdx
@@ -1,8 +1,18 @@
---
title: ODataMetadata
description: ODataMetadata Schema Reference
+category: api
+zodFile: odata
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/odata.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,21 @@ description: ODataMetadata Schema Reference
| **namespace** | `string` | ✅ | Service namespace |
| **entityTypes** | `object[]` | ✅ | Entity types |
| **entitySets** | `object[]` | ✅ | Entity sets |
+
+## TypeScript Usage
+
+```typescript
+import { ODataMetadataSchema } from '@objectstack/spec/api';
+import type { ODataMetadata } from '@objectstack/spec/api';
+
+// Validate data
+const result = ODataMetadataSchema.parse(data);
+
+// Type-safe usage
+const myODataMetadata: ODataMetadata = {
+ namespace: 'namespace',
+ entityTypes: [],
+ entitySets: []
+};
+```
+
diff --git a/content/docs/references/api/odata/ODataQuery.mdx b/content/docs/references/api/odata/ODataQuery.mdx
index 2fba78ae9..d881c84af 100644
--- a/content/docs/references/api/odata/ODataQuery.mdx
+++ b/content/docs/references/api/odata/ODataQuery.mdx
@@ -1,8 +1,18 @@
---
title: ODataQuery
description: ODataQuery Schema Reference
+category: api
+zodFile: odata
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/odata.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -17,3 +27,18 @@ description: ODataQuery Schema Reference
| **$search** | `string` | optional | Search expression |
| **$format** | `Enum<'json' \| 'xml' \| 'atom'>` | optional | Response format |
| **$apply** | `string` | optional | Aggregation expression |
+
+## TypeScript Usage
+
+```typescript
+import { ODataQuerySchema } from '@objectstack/spec/api';
+import type { ODataQuery } from '@objectstack/spec/api';
+
+// Validate data
+const result = ODataQuerySchema.parse(data);
+
+// Type-safe usage
+const myODataQuery: ODataQuery = {
+};
+```
+
diff --git a/content/docs/references/api/odata/ODataResponse.mdx b/content/docs/references/api/odata/ODataResponse.mdx
index c282d6b0f..63b357e1a 100644
--- a/content/docs/references/api/odata/ODataResponse.mdx
+++ b/content/docs/references/api/odata/ODataResponse.mdx
@@ -1,8 +1,18 @@
---
title: ODataResponse
description: ODataResponse Schema Reference
+category: api
+zodFile: odata
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/odata.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,19 @@ description: ODataResponse Schema Reference
| **@odata.count** | `integer` | optional | Total results count |
| **@odata.nextLink** | `string` | optional | Next page URL |
| **value** | `Record[]` | ✅ | Results array |
+
+## TypeScript Usage
+
+```typescript
+import { ODataResponseSchema } from '@objectstack/spec/api';
+import type { ODataResponse } from '@objectstack/spec/api';
+
+// Validate data
+const result = ODataResponseSchema.parse(data);
+
+// Type-safe usage
+const myODataResponse: ODataResponse = {
+ value: []
+};
+```
+
diff --git a/content/docs/references/api/realtime/Presence.mdx b/content/docs/references/api/realtime/Presence.mdx
index 014e96053..a3475d126 100644
--- a/content/docs/references/api/realtime/Presence.mdx
+++ b/content/docs/references/api/realtime/Presence.mdx
@@ -1,8 +1,18 @@
---
title: Presence
description: Presence Schema Reference
+category: api
+zodFile: realtime
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/realtime.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,21 @@ description: Presence Schema Reference
| **status** | `Enum<'online' \| 'away' \| 'offline'>` | ✅ | Current presence status |
| **lastSeen** | `string` | ✅ | ISO 8601 datetime of last activity |
| **metadata** | `Record` | optional | Custom presence data (e.g., current page, custom status) |
+
+## TypeScript Usage
+
+```typescript
+import { PresenceSchema } from '@objectstack/spec/api';
+import type { Presence } from '@objectstack/spec/api';
+
+// Validate data
+const result = PresenceSchema.parse(data);
+
+// Type-safe usage
+const myPresence: Presence = {
+ userId: 'example',
+ status: 'online',
+ lastSeen: 'example'
+};
+```
+
diff --git a/content/docs/references/api/realtime/PresenceStatus.mdx b/content/docs/references/api/realtime/PresenceStatus.mdx
index f884a53c3..e668a8cf8 100644
--- a/content/docs/references/api/realtime/PresenceStatus.mdx
+++ b/content/docs/references/api/realtime/PresenceStatus.mdx
@@ -1,10 +1,30 @@
---
title: PresenceStatus
description: PresenceStatus Schema Reference
+category: api
+zodFile: realtime
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/realtime.zod.ts`
+
+
## Allowed Values
* `online`
* `away`
-* `offline`
\ No newline at end of file
+* `offline`
+
+## TypeScript Usage
+
+```typescript
+import { PresenceStatus } from '@objectstack/spec/api';
+
+// Type-safe enum value
+const value: PresenceStatus = 'online';
+```
+
diff --git a/content/docs/references/api/realtime/RealtimeAction.mdx b/content/docs/references/api/realtime/RealtimeAction.mdx
index 2f1af2e3c..7993df9c3 100644
--- a/content/docs/references/api/realtime/RealtimeAction.mdx
+++ b/content/docs/references/api/realtime/RealtimeAction.mdx
@@ -1,10 +1,30 @@
---
title: RealtimeAction
description: RealtimeAction Schema Reference
+category: api
+zodFile: realtime
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/realtime.zod.ts`
+
+
## Allowed Values
* `created`
* `updated`
-* `deleted`
\ No newline at end of file
+* `deleted`
+
+## TypeScript Usage
+
+```typescript
+import { RealtimeAction } from '@objectstack/spec/api';
+
+// Type-safe enum value
+const value: RealtimeAction = 'created';
+```
+
diff --git a/content/docs/references/api/realtime/RealtimeEvent.mdx b/content/docs/references/api/realtime/RealtimeEvent.mdx
index 46a1b1b22..e682edd0d 100644
--- a/content/docs/references/api/realtime/RealtimeEvent.mdx
+++ b/content/docs/references/api/realtime/RealtimeEvent.mdx
@@ -1,8 +1,18 @@
---
title: RealtimeEvent
description: RealtimeEvent Schema Reference
+category: api
+zodFile: realtime
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/realtime.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -14,3 +24,21 @@ description: RealtimeEvent Schema Reference
| **payload** | `any` | optional | Event payload data |
| **timestamp** | `string` | ✅ | ISO 8601 datetime when event occurred |
| **userId** | `string` | optional | User who triggered the event |
+
+## TypeScript Usage
+
+```typescript
+import { RealtimeEventSchema } from '@objectstack/spec/api';
+import type { RealtimeEvent } from '@objectstack/spec/api';
+
+// Validate data
+const result = RealtimeEventSchema.parse(data);
+
+// Type-safe usage
+const myRealtimeEvent: RealtimeEvent = {
+ id: 'example',
+ type: 'example',
+ timestamp: 'example'
+};
+```
+
diff --git a/content/docs/references/api/realtime/RealtimeEventType.mdx b/content/docs/references/api/realtime/RealtimeEventType.mdx
index 56c877e5c..be43423f8 100644
--- a/content/docs/references/api/realtime/RealtimeEventType.mdx
+++ b/content/docs/references/api/realtime/RealtimeEventType.mdx
@@ -1,11 +1,31 @@
---
title: RealtimeEventType
description: RealtimeEventType Schema Reference
+category: api
+zodFile: realtime
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/realtime.zod.ts`
+
+
## Allowed Values
* `record.created`
* `record.updated`
* `record.deleted`
-* `field.changed`
\ No newline at end of file
+* `field.changed`
+
+## TypeScript Usage
+
+```typescript
+import { RealtimeEventType } from '@objectstack/spec/api';
+
+// Type-safe enum value
+const value: RealtimeEventType = 'record.created';
+```
+
diff --git a/content/docs/references/api/realtime/Subscription.mdx b/content/docs/references/api/realtime/Subscription.mdx
index 31ad739bb..258f9170c 100644
--- a/content/docs/references/api/realtime/Subscription.mdx
+++ b/content/docs/references/api/realtime/Subscription.mdx
@@ -1,8 +1,18 @@
---
title: Subscription
description: Subscription Schema Reference
+category: api
+zodFile: realtime
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/realtime.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,21 @@ description: Subscription Schema Reference
| **events** | `object[]` | ✅ | Array of events to subscribe to |
| **transport** | `Enum<'websocket' \| 'sse' \| 'polling'>` | ✅ | Transport protocol to use |
| **channel** | `string` | optional | Optional channel name for grouping subscriptions |
+
+## TypeScript Usage
+
+```typescript
+import { SubscriptionSchema } from '@objectstack/spec/api';
+import type { Subscription } from '@objectstack/spec/api';
+
+// Validate data
+const result = SubscriptionSchema.parse(data);
+
+// Type-safe usage
+const mySubscription: Subscription = {
+ id: 'example',
+ events: [],
+ transport: 'websocket'
+};
+```
+
diff --git a/content/docs/references/api/realtime/SubscriptionEvent.mdx b/content/docs/references/api/realtime/SubscriptionEvent.mdx
index ff9133f31..a6af28371 100644
--- a/content/docs/references/api/realtime/SubscriptionEvent.mdx
+++ b/content/docs/references/api/realtime/SubscriptionEvent.mdx
@@ -1,8 +1,18 @@
---
title: SubscriptionEvent
description: SubscriptionEvent Schema Reference
+category: api
+zodFile: realtime
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/realtime.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,19 @@ description: SubscriptionEvent Schema Reference
| **type** | `Enum<'record.created' \| 'record.updated' \| 'record.deleted' \| 'field.changed'>` | ✅ | Type of event to subscribe to |
| **object** | `string` | optional | Object name to subscribe to |
| **filters** | `any` | optional | Filter conditions |
+
+## TypeScript Usage
+
+```typescript
+import { SubscriptionEventSchema } from '@objectstack/spec/api';
+import type { SubscriptionEvent } from '@objectstack/spec/api';
+
+// Validate data
+const result = SubscriptionEventSchema.parse(data);
+
+// Type-safe usage
+const mySubscriptionEvent: SubscriptionEvent = {
+ type: 'record.created'
+};
+```
+
diff --git a/content/docs/references/api/realtime/TransportProtocol.mdx b/content/docs/references/api/realtime/TransportProtocol.mdx
index a24a12829..58a4ffca6 100644
--- a/content/docs/references/api/realtime/TransportProtocol.mdx
+++ b/content/docs/references/api/realtime/TransportProtocol.mdx
@@ -1,10 +1,30 @@
---
title: TransportProtocol
description: TransportProtocol Schema Reference
+category: api
+zodFile: realtime
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/realtime.zod.ts`
+
+
## Allowed Values
* `websocket`
* `sse`
-* `polling`
\ No newline at end of file
+* `polling`
+
+## TypeScript Usage
+
+```typescript
+import { TransportProtocol } from '@objectstack/spec/api';
+
+// Type-safe enum value
+const value: TransportProtocol = 'websocket';
+```
+
diff --git a/content/docs/references/api/router/RouteCategory.mdx b/content/docs/references/api/router/RouteCategory.mdx
index 33b9cb4de..bb6201b73 100644
--- a/content/docs/references/api/router/RouteCategory.mdx
+++ b/content/docs/references/api/router/RouteCategory.mdx
@@ -1,8 +1,18 @@
---
title: RouteCategory
description: RouteCategory Schema Reference
+category: api
+zodFile: router
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/router.zod.ts`
+
+
## Allowed Values
* `system`
@@ -10,4 +20,14 @@ description: RouteCategory Schema Reference
* `auth`
* `static`
* `webhook`
-* `plugin`
\ No newline at end of file
+* `plugin`
+
+## TypeScript Usage
+
+```typescript
+import { RouteCategory } from '@objectstack/spec/api';
+
+// Type-safe enum value
+const value: RouteCategory = 'system';
+```
+
diff --git a/content/docs/references/api/router/RouteDefinition.mdx b/content/docs/references/api/router/RouteDefinition.mdx
index cacb592d8..06a5932bd 100644
--- a/content/docs/references/api/router/RouteDefinition.mdx
+++ b/content/docs/references/api/router/RouteDefinition.mdx
@@ -1,8 +1,18 @@
---
title: RouteDefinition
description: RouteDefinition Schema Reference
+category: api
+zodFile: router
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/router.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -17,3 +27,21 @@ description: RouteDefinition Schema Reference
| **permissions** | `string[]` | optional | Required permissions |
| **timeout** | `integer` | optional | Execution timeout in ms |
| **rateLimit** | `string` | optional | Rate limit policy name |
+
+## TypeScript Usage
+
+```typescript
+import { RouteDefinitionSchema } from '@objectstack/spec/api';
+import type { RouteDefinition } from '@objectstack/spec/api';
+
+// Validate data
+const result = RouteDefinitionSchema.parse(data);
+
+// Type-safe usage
+const myRouteDefinition: RouteDefinition = {
+ method: 'GET',
+ path: 'example',
+ handler: 'example'
+};
+```
+
diff --git a/content/docs/references/api/router/RouterConfig.mdx b/content/docs/references/api/router/RouterConfig.mdx
index e4c8d8cf8..81cc5f7ca 100644
--- a/content/docs/references/api/router/RouterConfig.mdx
+++ b/content/docs/references/api/router/RouterConfig.mdx
@@ -1,8 +1,18 @@
---
title: RouterConfig
description: RouterConfig Schema Reference
+category: api
+zodFile: router
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/router.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,18 @@ description: RouterConfig Schema Reference
| **mounts** | `object` | optional | |
| **cors** | `object` | optional | |
| **staticMounts** | `object[]` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { RouterConfigSchema } from '@objectstack/spec/api';
+import type { RouterConfig } from '@objectstack/spec/api';
+
+// Validate data
+const result = RouterConfigSchema.parse(data);
+
+// Type-safe usage
+const myRouterConfig: RouterConfig = {
+};
+```
+
diff --git a/content/docs/references/api/view/HttpMethod.mdx b/content/docs/references/api/view/HttpMethod.mdx
index 742c0c547..b55ef14d4 100644
--- a/content/docs/references/api/view/HttpMethod.mdx
+++ b/content/docs/references/api/view/HttpMethod.mdx
@@ -1,8 +1,18 @@
---
title: HttpMethod
description: HttpMethod Schema Reference
+category: api
+zodFile: view
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/api/view.zod.ts`
+
+
## Allowed Values
* `GET`
@@ -11,4 +21,14 @@ description: HttpMethod Schema Reference
* `DELETE`
* `PATCH`
* `HEAD`
-* `OPTIONS`
\ No newline at end of file
+* `OPTIONS`
+
+## TypeScript Usage
+
+```typescript
+import { HttpMethod } from '@objectstack/spec/api';
+
+// Type-safe enum value
+const value: HttpMethod = 'GET';
+```
+
diff --git a/content/docs/references/auth/config/AccountLinkingConfig.mdx b/content/docs/references/auth/config/AccountLinkingConfig.mdx
index df6148efd..2f6b88299 100644
--- a/content/docs/references/auth/config/AccountLinkingConfig.mdx
+++ b/content/docs/references/auth/config/AccountLinkingConfig.mdx
@@ -1,8 +1,18 @@
---
title: AccountLinkingConfig
description: AccountLinkingConfig Schema Reference
+category: auth
+zodFile: config
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/config.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,18 @@ description: AccountLinkingConfig Schema Reference
| **enabled** | `boolean` | optional | Allow account linking |
| **autoLink** | `boolean` | optional | Automatically link accounts with same email |
| **requireVerification** | `boolean` | optional | Require email verification before linking |
+
+## TypeScript Usage
+
+```typescript
+import { AccountLinkingConfigSchema } from '@objectstack/spec/auth';
+import type { AccountLinkingConfig } from '@objectstack/spec/auth';
+
+// Validate data
+const result = AccountLinkingConfigSchema.parse(data);
+
+// Type-safe usage
+const myAccountLinkingConfig: AccountLinkingConfig = {
+};
+```
+
diff --git a/content/docs/references/auth/config/AuthConfig.mdx b/content/docs/references/auth/config/AuthConfig.mdx
index 3844175d1..660f9afbb 100644
--- a/content/docs/references/auth/config/AuthConfig.mdx
+++ b/content/docs/references/auth/config/AuthConfig.mdx
@@ -1,8 +1,18 @@
---
title: AuthConfig
description: AuthConfig Schema Reference
+category: auth
+zodFile: config
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/config.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -34,3 +44,22 @@ description: AuthConfig Schema Reference
| **ui** | `object` | optional | UI customization |
| **active** | `boolean` | optional | Whether this provider is active |
| **allowRegistration** | `boolean` | optional | Allow new user registration |
+
+## TypeScript Usage
+
+```typescript
+import { AuthConfigSchema } from '@objectstack/spec/auth';
+import type { AuthConfig } from '@objectstack/spec/auth';
+
+// Validate data
+const result = AuthConfigSchema.parse(data);
+
+// Type-safe usage
+const myAuthConfig: AuthConfig = {
+ name: 'name',
+ label: 'example',
+ strategies: [],
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/auth/config/AuthPluginConfig.mdx b/content/docs/references/auth/config/AuthPluginConfig.mdx
index 701df2e7b..80ec23ea8 100644
--- a/content/docs/references/auth/config/AuthPluginConfig.mdx
+++ b/content/docs/references/auth/config/AuthPluginConfig.mdx
@@ -1,8 +1,18 @@
---
title: AuthPluginConfig
description: AuthPluginConfig Schema Reference
+category: auth
+zodFile: config
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/config.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,19 @@ description: AuthPluginConfig Schema Reference
| **name** | `string` | ✅ | Plugin name |
| **enabled** | `boolean` | optional | |
| **options** | `Record` | optional | Plugin-specific options |
+
+## TypeScript Usage
+
+```typescript
+import { AuthPluginConfigSchema } from '@objectstack/spec/auth';
+import type { AuthPluginConfig } from '@objectstack/spec/auth';
+
+// Validate data
+const result = AuthPluginConfigSchema.parse(data);
+
+// Type-safe usage
+const myAuthPluginConfig: AuthPluginConfig = {
+ name: 'name'
+};
+```
+
diff --git a/content/docs/references/auth/config/AuthStrategy.mdx b/content/docs/references/auth/config/AuthStrategy.mdx
index 9baafb1ad..50fedf739 100644
--- a/content/docs/references/auth/config/AuthStrategy.mdx
+++ b/content/docs/references/auth/config/AuthStrategy.mdx
@@ -1,8 +1,18 @@
---
title: AuthStrategy
description: AuthStrategy Schema Reference
+category: auth
+zodFile: config
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/config.zod.ts`
+
+
## Allowed Values
* `email_password`
@@ -10,4 +20,14 @@ description: AuthStrategy Schema Reference
* `oauth`
* `passkey`
* `otp`
-* `anonymous`
\ No newline at end of file
+* `anonymous`
+
+## TypeScript Usage
+
+```typescript
+import { AuthStrategy } from '@objectstack/spec/auth';
+
+// Type-safe enum value
+const value: AuthStrategy = 'email_password';
+```
+
diff --git a/content/docs/references/auth/config/CSRFConfig.mdx b/content/docs/references/auth/config/CSRFConfig.mdx
index eba2dddf6..53d04c167 100644
--- a/content/docs/references/auth/config/CSRFConfig.mdx
+++ b/content/docs/references/auth/config/CSRFConfig.mdx
@@ -1,8 +1,18 @@
---
title: CSRFConfig
description: CSRFConfig Schema Reference
+category: auth
+zodFile: config
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/config.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,18 @@ description: CSRFConfig Schema Reference
| **tokenLength** | `number` | optional | CSRF token length |
| **cookieName** | `string` | optional | CSRF cookie name |
| **headerName** | `string` | optional | CSRF header name |
+
+## TypeScript Usage
+
+```typescript
+import { CSRFConfigSchema } from '@objectstack/spec/auth';
+import type { CSRFConfig } from '@objectstack/spec/auth';
+
+// Validate data
+const result = CSRFConfigSchema.parse(data);
+
+// Type-safe usage
+const myCSRFConfig: CSRFConfig = {
+};
+```
+
diff --git a/content/docs/references/auth/config/DatabaseAdapter.mdx b/content/docs/references/auth/config/DatabaseAdapter.mdx
index 804f75b03..1cd259f84 100644
--- a/content/docs/references/auth/config/DatabaseAdapter.mdx
+++ b/content/docs/references/auth/config/DatabaseAdapter.mdx
@@ -1,8 +1,18 @@
---
title: DatabaseAdapter
description: DatabaseAdapter Schema Reference
+category: auth
+zodFile: config
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/config.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,19 @@ description: DatabaseAdapter Schema Reference
| **connectionString** | `string` | optional | Database connection string |
| **tablePrefix** | `string` | optional | Prefix for auth tables |
| **schema** | `string` | optional | Database schema name |
+
+## TypeScript Usage
+
+```typescript
+import { DatabaseAdapterSchema } from '@objectstack/spec/auth';
+import type { DatabaseAdapter } from '@objectstack/spec/auth';
+
+// Validate data
+const result = DatabaseAdapterSchema.parse(data);
+
+// Type-safe usage
+const myDatabaseAdapter: DatabaseAdapter = {
+ type: 'prisma'
+};
+```
+
diff --git a/content/docs/references/auth/config/DatabaseMapping.mdx b/content/docs/references/auth/config/DatabaseMapping.mdx
index b618a0b34..bb5e07d74 100644
--- a/content/docs/references/auth/config/DatabaseMapping.mdx
+++ b/content/docs/references/auth/config/DatabaseMapping.mdx
@@ -1,8 +1,18 @@
---
title: DatabaseMapping
description: DatabaseMapping Schema Reference
+category: auth
+zodFile: config
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/config.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,18 @@ description: DatabaseMapping Schema Reference
| **session** | `Record` | optional | Session field mapping |
| **account** | `Record` | optional | Account field mapping |
| **verificationToken** | `Record` | optional | VerificationToken field mapping |
+
+## TypeScript Usage
+
+```typescript
+import { DatabaseMappingSchema } from '@objectstack/spec/auth';
+import type { DatabaseMapping } from '@objectstack/spec/auth';
+
+// Validate data
+const result = DatabaseMappingSchema.parse(data);
+
+// Type-safe usage
+const myDatabaseMapping: DatabaseMapping = {
+};
+```
+
diff --git a/content/docs/references/auth/config/EmailPasswordConfig.mdx b/content/docs/references/auth/config/EmailPasswordConfig.mdx
index ed35be72f..56637f8a2 100644
--- a/content/docs/references/auth/config/EmailPasswordConfig.mdx
+++ b/content/docs/references/auth/config/EmailPasswordConfig.mdx
@@ -1,8 +1,18 @@
---
title: EmailPasswordConfig
description: EmailPasswordConfig Schema Reference
+category: auth
+zodFile: config
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/config.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,18 @@ description: EmailPasswordConfig Schema Reference
| **requirePasswordComplexity** | `boolean` | optional | Require uppercase, lowercase, numbers, symbols |
| **allowPasswordReset** | `boolean` | optional | Enable password reset functionality |
| **passwordResetExpiry** | `number` | optional | Password reset token expiry in seconds |
+
+## TypeScript Usage
+
+```typescript
+import { EmailPasswordConfigSchema } from '@objectstack/spec/auth';
+import type { EmailPasswordConfig } from '@objectstack/spec/auth';
+
+// Validate data
+const result = EmailPasswordConfigSchema.parse(data);
+
+// Type-safe usage
+const myEmailPasswordConfig: EmailPasswordConfig = {
+};
+```
+
diff --git a/content/docs/references/auth/config/EnterpriseAuthConfig.mdx b/content/docs/references/auth/config/EnterpriseAuthConfig.mdx
index 10df64191..e6a48622b 100644
--- a/content/docs/references/auth/config/EnterpriseAuthConfig.mdx
+++ b/content/docs/references/auth/config/EnterpriseAuthConfig.mdx
@@ -1,8 +1,18 @@
---
title: EnterpriseAuthConfig
description: EnterpriseAuthConfig Schema Reference
+category: auth
+zodFile: config
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/config.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,18 @@ description: EnterpriseAuthConfig Schema Reference
| **oidc** | `object` | optional | OpenID Connect configuration |
| **saml** | `object` | optional | SAML 2.0 configuration |
| **ldap** | `object` | optional | LDAP/Active Directory configuration |
+
+## TypeScript Usage
+
+```typescript
+import { EnterpriseAuthConfigSchema } from '@objectstack/spec/auth';
+import type { EnterpriseAuthConfig } from '@objectstack/spec/auth';
+
+// Validate data
+const result = EnterpriseAuthConfigSchema.parse(data);
+
+// Type-safe usage
+const myEnterpriseAuthConfig: EnterpriseAuthConfig = {
+};
+```
+
diff --git a/content/docs/references/auth/config/LDAPConfig.mdx b/content/docs/references/auth/config/LDAPConfig.mdx
index 1eb470eed..ba6ca03c2 100644
--- a/content/docs/references/auth/config/LDAPConfig.mdx
+++ b/content/docs/references/auth/config/LDAPConfig.mdx
@@ -1,8 +1,18 @@
---
title: LDAPConfig
description: LDAPConfig Schema Reference
+category: auth
+zodFile: config
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/config.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -16,3 +26,22 @@ description: LDAPConfig Schema Reference
| **groupSearchBase** | `string` | optional | Group search base DN |
| **displayName** | `string` | optional | Display name for the provider button |
| **icon** | `string` | optional | Icon URL or identifier |
+
+## TypeScript Usage
+
+```typescript
+import { LDAPConfigSchema } from '@objectstack/spec/auth';
+import type { LDAPConfig } from '@objectstack/spec/auth';
+
+// Validate data
+const result = LDAPConfigSchema.parse(data);
+
+// Type-safe usage
+const myLDAPConfig: LDAPConfig = {
+ url: 'https://example.com',
+ bindDn: 'example',
+ bindCredentials: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/auth/config/MagicLinkConfig.mdx b/content/docs/references/auth/config/MagicLinkConfig.mdx
index 2971b2862..20fd6f735 100644
--- a/content/docs/references/auth/config/MagicLinkConfig.mdx
+++ b/content/docs/references/auth/config/MagicLinkConfig.mdx
@@ -1,11 +1,36 @@
---
title: MagicLinkConfig
description: MagicLinkConfig Schema Reference
+category: auth
+zodFile: config
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/config.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **enabled** | `boolean` | optional | |
| **expiryTime** | `number` | optional | Magic link expiry time in seconds (default 15 min) |
+
+## TypeScript Usage
+
+```typescript
+import { MagicLinkConfigSchema } from '@objectstack/spec/auth';
+import type { MagicLinkConfig } from '@objectstack/spec/auth';
+
+// Validate data
+const result = MagicLinkConfigSchema.parse(data);
+
+// Type-safe usage
+const myMagicLinkConfig: MagicLinkConfig = {
+};
+```
+
diff --git a/content/docs/references/auth/config/OAuthProvider.mdx b/content/docs/references/auth/config/OAuthProvider.mdx
index 32ff86e83..e69e93afa 100644
--- a/content/docs/references/auth/config/OAuthProvider.mdx
+++ b/content/docs/references/auth/config/OAuthProvider.mdx
@@ -1,8 +1,18 @@
---
title: OAuthProvider
description: OAuthProvider Schema Reference
+category: auth
+zodFile: config
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/config.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -15,3 +25,21 @@ description: OAuthProvider Schema Reference
| **enabled** | `boolean` | optional | Whether this provider is enabled |
| **displayName** | `string` | optional | Display name for the provider button |
| **icon** | `string` | optional | Icon URL or identifier |
+
+## TypeScript Usage
+
+```typescript
+import { OAuthProviderSchema } from '@objectstack/spec/auth';
+import type { OAuthProvider } from '@objectstack/spec/auth';
+
+// Validate data
+const result = OAuthProviderSchema.parse(data);
+
+// Type-safe usage
+const myOAuthProvider: OAuthProvider = {
+ provider: 'google',
+ clientId: 'example',
+ clientSecret: 'example'
+};
+```
+
diff --git a/content/docs/references/auth/config/OIDCConfig.mdx b/content/docs/references/auth/config/OIDCConfig.mdx
index 6b78913d1..f7e360a86 100644
--- a/content/docs/references/auth/config/OIDCConfig.mdx
+++ b/content/docs/references/auth/config/OIDCConfig.mdx
@@ -1,8 +1,18 @@
---
title: OIDCConfig
description: OIDCConfig Schema Reference
+category: auth
+zodFile: config
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/config.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -15,3 +25,21 @@ description: OIDCConfig Schema Reference
| **attributeMapping** | `Record` | optional | Map IdP claims to User fields |
| **displayName** | `string` | optional | Display name for the provider button |
| **icon** | `string` | optional | Icon URL or identifier |
+
+## TypeScript Usage
+
+```typescript
+import { OIDCConfigSchema } from '@objectstack/spec/auth';
+import type { OIDCConfig } from '@objectstack/spec/auth';
+
+// Validate data
+const result = OIDCConfigSchema.parse(data);
+
+// Type-safe usage
+const myOIDCConfig: OIDCConfig = {
+ issuer: 'example',
+ clientId: 'example',
+ clientSecret: 'example'
+};
+```
+
diff --git a/content/docs/references/auth/config/PasskeyConfig.mdx b/content/docs/references/auth/config/PasskeyConfig.mdx
index 9e305ed4c..bd5448afb 100644
--- a/content/docs/references/auth/config/PasskeyConfig.mdx
+++ b/content/docs/references/auth/config/PasskeyConfig.mdx
@@ -1,8 +1,18 @@
---
title: PasskeyConfig
description: PasskeyConfig Schema Reference
+category: auth
+zodFile: config
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/config.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,19 @@ description: PasskeyConfig Schema Reference
| **allowedOrigins** | `string[]` | optional | Allowed origins for WebAuthn |
| **userVerification** | `Enum<'required' \| 'preferred' \| 'discouraged'>` | optional | |
| **attestation** | `Enum<'none' \| 'indirect' \| 'direct' \| 'enterprise'>` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { PasskeyConfigSchema } from '@objectstack/spec/auth';
+import type { PasskeyConfig } from '@objectstack/spec/auth';
+
+// Validate data
+const result = PasskeyConfigSchema.parse(data);
+
+// Type-safe usage
+const myPasskeyConfig: PasskeyConfig = {
+ rpName: 'example'
+};
+```
+
diff --git a/content/docs/references/auth/config/RateLimitConfig.mdx b/content/docs/references/auth/config/RateLimitConfig.mdx
index 6682505c5..033db0195 100644
--- a/content/docs/references/auth/config/RateLimitConfig.mdx
+++ b/content/docs/references/auth/config/RateLimitConfig.mdx
@@ -1,8 +1,18 @@
---
title: RateLimitConfig
description: RateLimitConfig Schema Reference
+category: auth
+zodFile: config
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/config.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,18 @@ description: RateLimitConfig Schema Reference
| **windowMs** | `number` | optional | Time window in milliseconds (default 15 min) |
| **blockDuration** | `number` | optional | Block duration after max attempts in ms |
| **skipSuccessfulRequests** | `boolean` | optional | Only count failed requests |
+
+## TypeScript Usage
+
+```typescript
+import { RateLimitConfigSchema } from '@objectstack/spec/auth';
+import type { RateLimitConfig } from '@objectstack/spec/auth';
+
+// Validate data
+const result = RateLimitConfigSchema.parse(data);
+
+// Type-safe usage
+const myRateLimitConfig: RateLimitConfig = {
+};
+```
+
diff --git a/content/docs/references/auth/config/SAMLConfig.mdx b/content/docs/references/auth/config/SAMLConfig.mdx
index 6a25ee832..3cfa1bf53 100644
--- a/content/docs/references/auth/config/SAMLConfig.mdx
+++ b/content/docs/references/auth/config/SAMLConfig.mdx
@@ -1,8 +1,18 @@
---
title: SAMLConfig
description: SAMLConfig Schema Reference
+category: auth
+zodFile: config
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/config.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -15,3 +25,21 @@ description: SAMLConfig Schema Reference
| **attributeMapping** | `Record` | optional | Map SAML attributes to User fields |
| **displayName** | `string` | optional | Display name for the provider button |
| **icon** | `string` | optional | Icon URL or identifier |
+
+## TypeScript Usage
+
+```typescript
+import { SAMLConfigSchema } from '@objectstack/spec/auth';
+import type { SAMLConfig } from '@objectstack/spec/auth';
+
+// Validate data
+const result = SAMLConfigSchema.parse(data);
+
+// Type-safe usage
+const mySAMLConfig: SAMLConfig = {
+ entryPoint: 'example',
+ cert: 'example',
+ issuer: 'example'
+};
+```
+
diff --git a/content/docs/references/auth/config/SessionConfig.mdx b/content/docs/references/auth/config/SessionConfig.mdx
index 5fb4b1c25..7659f28c1 100644
--- a/content/docs/references/auth/config/SessionConfig.mdx
+++ b/content/docs/references/auth/config/SessionConfig.mdx
@@ -1,8 +1,18 @@
---
title: SessionConfig
description: SessionConfig Schema Reference
+category: auth
+zodFile: config
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/config.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -15,3 +25,18 @@ description: SessionConfig Schema Reference
| **cookieDomain** | `string` | optional | Cookie domain |
| **cookiePath** | `string` | optional | Cookie path |
| **cookieHttpOnly** | `boolean` | optional | HttpOnly cookie attribute |
+
+## TypeScript Usage
+
+```typescript
+import { SessionConfigSchema } from '@objectstack/spec/auth';
+import type { SessionConfig } from '@objectstack/spec/auth';
+
+// Validate data
+const result = SessionConfigSchema.parse(data);
+
+// Type-safe usage
+const mySessionConfig: SessionConfig = {
+};
+```
+
diff --git a/content/docs/references/auth/config/StandardAuthProvider.mdx b/content/docs/references/auth/config/StandardAuthProvider.mdx
index fdc46136f..5337f42c2 100644
--- a/content/docs/references/auth/config/StandardAuthProvider.mdx
+++ b/content/docs/references/auth/config/StandardAuthProvider.mdx
@@ -1,11 +1,38 @@
---
title: StandardAuthProvider
description: StandardAuthProvider Schema Reference
+category: auth
+zodFile: config
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/config.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **type** | `string` | ✅ | Provider type identifier |
| **config** | `object` | ✅ | Standard authentication configuration |
+
+## TypeScript Usage
+
+```typescript
+import { StandardAuthProviderSchema } from '@objectstack/spec/auth';
+import type { StandardAuthProvider } from '@objectstack/spec/auth';
+
+// Validate data
+const result = StandardAuthProviderSchema.parse(data);
+
+// Type-safe usage
+const myStandardAuthProvider: StandardAuthProvider = {
+ type: 'example',
+ config: {}
+};
+```
+
diff --git a/content/docs/references/auth/config/TwoFactorConfig.mdx b/content/docs/references/auth/config/TwoFactorConfig.mdx
index 70add73db..6004f0d12 100644
--- a/content/docs/references/auth/config/TwoFactorConfig.mdx
+++ b/content/docs/references/auth/config/TwoFactorConfig.mdx
@@ -1,8 +1,18 @@
---
title: TwoFactorConfig
description: TwoFactorConfig Schema Reference
+category: auth
+zodFile: config
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/config.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,18 @@ description: TwoFactorConfig Schema Reference
| **issuer** | `string` | optional | TOTP issuer name |
| **qrCodeSize** | `number` | optional | QR code size in pixels |
| **backupCodes** | `object` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { TwoFactorConfigSchema } from '@objectstack/spec/auth';
+import type { TwoFactorConfig } from '@objectstack/spec/auth';
+
+// Validate data
+const result = TwoFactorConfigSchema.parse(data);
+
+// Type-safe usage
+const myTwoFactorConfig: TwoFactorConfig = {
+};
+```
+
diff --git a/content/docs/references/auth/config/UserFieldMapping.mdx b/content/docs/references/auth/config/UserFieldMapping.mdx
index bfbf94d14..8eb2da656 100644
--- a/content/docs/references/auth/config/UserFieldMapping.mdx
+++ b/content/docs/references/auth/config/UserFieldMapping.mdx
@@ -1,8 +1,18 @@
---
title: UserFieldMapping
description: UserFieldMapping Schema Reference
+category: auth
+zodFile: config
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/config.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -14,3 +24,18 @@ description: UserFieldMapping Schema Reference
| **emailVerified** | `string` | optional | Email verification status field |
| **createdAt** | `string` | optional | Created timestamp field |
| **updatedAt** | `string` | optional | Updated timestamp field |
+
+## TypeScript Usage
+
+```typescript
+import { UserFieldMappingSchema } from '@objectstack/spec/auth';
+import type { UserFieldMapping } from '@objectstack/spec/auth';
+
+// Validate data
+const result = UserFieldMappingSchema.parse(data);
+
+// Type-safe usage
+const myUserFieldMapping: UserFieldMapping = {
+};
+```
+
diff --git a/content/docs/references/auth/identity/Account.mdx b/content/docs/references/auth/identity/Account.mdx
index 541739381..01d29500e 100644
--- a/content/docs/references/auth/identity/Account.mdx
+++ b/content/docs/references/auth/identity/Account.mdx
@@ -1,8 +1,18 @@
---
title: Account
description: Account Schema Reference
+category: auth
+zodFile: identity
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/identity.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -21,3 +31,22 @@ description: Account Schema Reference
| **sessionState** | `string` | optional | Session state |
| **createdAt** | `string` | ✅ | Account creation timestamp |
| **updatedAt** | `string` | ✅ | Last update timestamp |
+
+## TypeScript Usage
+
+```typescript
+import { AccountSchema } from '@objectstack/spec/auth';
+import type { Account } from '@objectstack/spec/auth';
+
+// Validate data
+const result = AccountSchema.parse(data);
+
+// Type-safe usage
+const myAccount: Account = {
+ id: 'example',
+ userId: 'example',
+ type: 'oauth',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/auth/identity/Session.mdx b/content/docs/references/auth/identity/Session.mdx
index 8423d852a..68d98eeaf 100644
--- a/content/docs/references/auth/identity/Session.mdx
+++ b/content/docs/references/auth/identity/Session.mdx
@@ -1,8 +1,18 @@
---
title: Session
description: Session Schema Reference
+category: auth
+zodFile: identity
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/identity.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -17,3 +27,22 @@ description: Session Schema Reference
| **ipAddress** | `string` | optional | IP address |
| **userAgent** | `string` | optional | User agent string |
| **fingerprint** | `string` | optional | Device fingerprint |
+
+## TypeScript Usage
+
+```typescript
+import { SessionSchema } from '@objectstack/spec/auth';
+import type { Session } from '@objectstack/spec/auth';
+
+// Validate data
+const result = SessionSchema.parse(data);
+
+// Type-safe usage
+const mySession: Session = {
+ id: 'example',
+ sessionToken: 'example',
+ userId: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/auth/identity/User.mdx b/content/docs/references/auth/identity/User.mdx
index baae4accc..2c19402d7 100644
--- a/content/docs/references/auth/identity/User.mdx
+++ b/content/docs/references/auth/identity/User.mdx
@@ -1,8 +1,18 @@
---
title: User
description: User Schema Reference
+category: auth
+zodFile: identity
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/identity.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -14,3 +24,22 @@ description: User Schema Reference
| **image** | `string` | optional | Profile image URL |
| **createdAt** | `string` | ✅ | Account creation timestamp |
| **updatedAt** | `string` | ✅ | Last update timestamp |
+
+## TypeScript Usage
+
+```typescript
+import { UserSchema } from '@objectstack/spec/auth';
+import type { User } from '@objectstack/spec/auth';
+
+// Validate data
+const result = UserSchema.parse(data);
+
+// Type-safe usage
+const myUser: User = {
+ id: 'example',
+ email: 'user@example.com',
+ createdAt: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/auth/identity/VerificationToken.mdx b/content/docs/references/auth/identity/VerificationToken.mdx
index ee5f9d034..b67f5a267 100644
--- a/content/docs/references/auth/identity/VerificationToken.mdx
+++ b/content/docs/references/auth/identity/VerificationToken.mdx
@@ -1,8 +1,18 @@
---
title: VerificationToken
description: VerificationToken Schema Reference
+category: auth
+zodFile: identity
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/identity.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,22 @@ description: VerificationToken Schema Reference
| **token** | `string` | ✅ | Verification token |
| **expires** | `string` | ✅ | Token expiry timestamp |
| **createdAt** | `string` | ✅ | Token creation timestamp |
+
+## TypeScript Usage
+
+```typescript
+import { VerificationTokenSchema } from '@objectstack/spec/auth';
+import type { VerificationToken } from '@objectstack/spec/auth';
+
+// Validate data
+const result = VerificationTokenSchema.parse(data);
+
+// Type-safe usage
+const myVerificationToken: VerificationToken = {
+ identifier: 'example',
+ token: 'example',
+ expires: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/auth/index.mdx b/content/docs/references/auth/index.mdx
new file mode 100644
index 000000000..117411ac1
--- /dev/null
+++ b/content/docs/references/auth/index.mdx
@@ -0,0 +1,102 @@
+---
+title: Auth Protocol Overview
+description: Complete reference for all auth protocol schemas
+---
+
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Database, Cpu, Zap } from 'lucide-react';
+
+# Auth Protocol
+
+This section contains all protocol schemas for the auth layer of ObjectStack.
+
+## Config
+
+Source: `packages/spec/src/auth/config.zod.ts`
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Identity
+
+Source: `packages/spec/src/auth/identity.zod.ts`
+
+
+
+
+
+
+
+
+## Organization
+
+Source: `packages/spec/src/auth/organization.zod.ts`
+
+
+
+
+
+
+
+
+## Policy
+
+Source: `packages/spec/src/auth/policy.zod.ts`
+
+
+
+
+
+
+
+
+
+## Role
+
+Source: `packages/spec/src/auth/role.zod.ts`
+
+
+
+
+
+## Scim
+
+Source: `packages/spec/src/auth/scim.zod.ts`
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/content/docs/references/auth/organization/Invitation.mdx b/content/docs/references/auth/organization/Invitation.mdx
index 6b1dc9901..9df3c51cd 100644
--- a/content/docs/references/auth/organization/Invitation.mdx
+++ b/content/docs/references/auth/organization/Invitation.mdx
@@ -1,8 +1,18 @@
---
title: Invitation
description: Invitation Schema Reference
+category: auth
+zodFile: organization
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/organization.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -16,3 +26,22 @@ description: Invitation Schema Reference
| **inviterId** | `string` | ✅ | User ID of the inviter |
| **createdAt** | `string` | ✅ | Invitation creation timestamp |
| **updatedAt** | `string` | ✅ | Last update timestamp |
+
+## TypeScript Usage
+
+```typescript
+import { InvitationSchema } from '@objectstack/spec/auth';
+import type { Invitation } from '@objectstack/spec/auth';
+
+// Validate data
+const result = InvitationSchema.parse(data);
+
+// Type-safe usage
+const myInvitation: Invitation = {
+ id: 'example',
+ organizationId: 'example',
+ email: 'user@example.com',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/auth/organization/InvitationStatus.mdx b/content/docs/references/auth/organization/InvitationStatus.mdx
index 8969996d1..7f5eedacb 100644
--- a/content/docs/references/auth/organization/InvitationStatus.mdx
+++ b/content/docs/references/auth/organization/InvitationStatus.mdx
@@ -1,11 +1,31 @@
---
title: InvitationStatus
description: InvitationStatus Schema Reference
+category: auth
+zodFile: organization
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/organization.zod.ts`
+
+
## Allowed Values
* `pending`
* `accepted`
* `rejected`
-* `expired`
\ No newline at end of file
+* `expired`
+
+## TypeScript Usage
+
+```typescript
+import { InvitationStatus } from '@objectstack/spec/auth';
+
+// Type-safe enum value
+const value: InvitationStatus = 'pending';
+```
+
diff --git a/content/docs/references/auth/organization/Member.mdx b/content/docs/references/auth/organization/Member.mdx
index f02aac973..6bd6e7a25 100644
--- a/content/docs/references/auth/organization/Member.mdx
+++ b/content/docs/references/auth/organization/Member.mdx
@@ -1,8 +1,18 @@
---
title: Member
description: Member Schema Reference
+category: auth
+zodFile: organization
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/organization.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,22 @@ description: Member Schema Reference
| **role** | `string` | ✅ | Member role (e.g., owner, admin, member, guest) |
| **createdAt** | `string` | ✅ | Member creation timestamp |
| **updatedAt** | `string` | ✅ | Last update timestamp |
+
+## TypeScript Usage
+
+```typescript
+import { MemberSchema } from '@objectstack/spec/auth';
+import type { Member } from '@objectstack/spec/auth';
+
+// Validate data
+const result = MemberSchema.parse(data);
+
+// Type-safe usage
+const myMember: Member = {
+ id: 'example',
+ organizationId: 'example',
+ userId: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/auth/organization/Organization.mdx b/content/docs/references/auth/organization/Organization.mdx
index 5afbfecce..581ef86b2 100644
--- a/content/docs/references/auth/organization/Organization.mdx
+++ b/content/docs/references/auth/organization/Organization.mdx
@@ -1,8 +1,18 @@
---
title: Organization
description: Organization Schema Reference
+category: auth
+zodFile: organization
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/organization.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -14,3 +24,22 @@ description: Organization Schema Reference
| **metadata** | `Record` | optional | Custom metadata |
| **createdAt** | `string` | ✅ | Organization creation timestamp |
| **updatedAt** | `string` | ✅ | Last update timestamp |
+
+## TypeScript Usage
+
+```typescript
+import { OrganizationSchema } from '@objectstack/spec/auth';
+import type { Organization } from '@objectstack/spec/auth';
+
+// Validate data
+const result = OrganizationSchema.parse(data);
+
+// Type-safe usage
+const myOrganization: Organization = {
+ id: 'example',
+ name: 'name',
+ slug: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/auth/policy/AuditPolicy.mdx b/content/docs/references/auth/policy/AuditPolicy.mdx
index 9dd0106f9..bc70cc5ba 100644
--- a/content/docs/references/auth/policy/AuditPolicy.mdx
+++ b/content/docs/references/auth/policy/AuditPolicy.mdx
@@ -1,8 +1,18 @@
---
title: AuditPolicy
description: AuditPolicy Schema Reference
+category: auth
+zodFile: policy
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/policy.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,19 @@ description: AuditPolicy Schema Reference
| **logRetentionDays** | `number` | optional | |
| **sensitiveFields** | `string[]` | ✅ | Fields to redact in logs (e.g. password, ssn) |
| **captureRead** | `boolean` | optional | Log read access (High volume!) |
+
+## TypeScript Usage
+
+```typescript
+import { AuditPolicySchema } from '@objectstack/spec/auth';
+import type { AuditPolicy } from '@objectstack/spec/auth';
+
+// Validate data
+const result = AuditPolicySchema.parse(data);
+
+// Type-safe usage
+const myAuditPolicy: AuditPolicy = {
+ sensitiveFields: []
+};
+```
+
diff --git a/content/docs/references/auth/policy/NetworkPolicy.mdx b/content/docs/references/auth/policy/NetworkPolicy.mdx
index ce0112852..65d16368a 100644
--- a/content/docs/references/auth/policy/NetworkPolicy.mdx
+++ b/content/docs/references/auth/policy/NetworkPolicy.mdx
@@ -1,8 +1,18 @@
---
title: NetworkPolicy
description: NetworkPolicy Schema Reference
+category: auth
+zodFile: policy
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/policy.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,19 @@ description: NetworkPolicy Schema Reference
| **trustedRanges** | `string[]` | ✅ | CIDR ranges allowed to access (e.g. 10.0.0.0/8) |
| **blockUnknown** | `boolean` | optional | Block all IPs not in trusted ranges |
| **vpnRequired** | `boolean` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { NetworkPolicySchema } from '@objectstack/spec/auth';
+import type { NetworkPolicy } from '@objectstack/spec/auth';
+
+// Validate data
+const result = NetworkPolicySchema.parse(data);
+
+// Type-safe usage
+const myNetworkPolicy: NetworkPolicy = {
+ trustedRanges: []
+};
+```
+
diff --git a/content/docs/references/auth/policy/PasswordPolicy.mdx b/content/docs/references/auth/policy/PasswordPolicy.mdx
index 7d23bd06c..5e281649f 100644
--- a/content/docs/references/auth/policy/PasswordPolicy.mdx
+++ b/content/docs/references/auth/policy/PasswordPolicy.mdx
@@ -1,8 +1,18 @@
---
title: PasswordPolicy
description: PasswordPolicy Schema Reference
+category: auth
+zodFile: policy
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/policy.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -14,3 +24,18 @@ description: PasswordPolicy Schema Reference
| **requireSymbols** | `boolean` | optional | |
| **expirationDays** | `number` | optional | Force password change every X days |
| **historyCount** | `number` | optional | Prevent reusing last X passwords |
+
+## TypeScript Usage
+
+```typescript
+import { PasswordPolicySchema } from '@objectstack/spec/auth';
+import type { PasswordPolicy } from '@objectstack/spec/auth';
+
+// Validate data
+const result = PasswordPolicySchema.parse(data);
+
+// Type-safe usage
+const myPasswordPolicy: PasswordPolicy = {
+};
+```
+
diff --git a/content/docs/references/auth/policy/Policy.mdx b/content/docs/references/auth/policy/Policy.mdx
index c143fef9e..620a85b69 100644
--- a/content/docs/references/auth/policy/Policy.mdx
+++ b/content/docs/references/auth/policy/Policy.mdx
@@ -1,8 +1,18 @@
---
title: Policy
description: Policy Schema Reference
+category: auth
+zodFile: policy
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/policy.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -14,3 +24,19 @@ description: Policy Schema Reference
| **audit** | `object` | optional | |
| **isDefault** | `boolean` | optional | Apply to all users by default |
| **assignedProfiles** | `string[]` | optional | Apply to specific profiles |
+
+## TypeScript Usage
+
+```typescript
+import { PolicySchema } from '@objectstack/spec/auth';
+import type { Policy } from '@objectstack/spec/auth';
+
+// Validate data
+const result = PolicySchema.parse(data);
+
+// Type-safe usage
+const myPolicy: Policy = {
+ name: 'name'
+};
+```
+
diff --git a/content/docs/references/auth/policy/SessionPolicy.mdx b/content/docs/references/auth/policy/SessionPolicy.mdx
index da62e84af..0481fa710 100644
--- a/content/docs/references/auth/policy/SessionPolicy.mdx
+++ b/content/docs/references/auth/policy/SessionPolicy.mdx
@@ -1,8 +1,18 @@
---
title: SessionPolicy
description: SessionPolicy Schema Reference
+category: auth
+zodFile: policy
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/policy.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,18 @@ description: SessionPolicy Schema Reference
| **idleTimeout** | `number` | optional | Minutes before idle session logout |
| **absoluteTimeout** | `number` | optional | Max session duration (minutes) |
| **forceMfa** | `boolean` | optional | Require 2FA for all users |
+
+## TypeScript Usage
+
+```typescript
+import { SessionPolicySchema } from '@objectstack/spec/auth';
+import type { SessionPolicy } from '@objectstack/spec/auth';
+
+// Validate data
+const result = SessionPolicySchema.parse(data);
+
+// Type-safe usage
+const mySessionPolicy: SessionPolicy = {
+};
+```
+
diff --git a/content/docs/references/auth/role/Role.mdx b/content/docs/references/auth/role/Role.mdx
index ad088d0f7..489b70e13 100644
--- a/content/docs/references/auth/role/Role.mdx
+++ b/content/docs/references/auth/role/Role.mdx
@@ -1,8 +1,18 @@
---
title: Role
description: Role Schema Reference
+category: auth
+zodFile: role
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/role.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,20 @@ description: Role Schema Reference
| **label** | `string` | ✅ | Display label (e.g. VP of Sales) |
| **parent** | `string` | optional | Parent Role ID (Reports To) |
| **description** | `string` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { RoleSchema } from '@objectstack/spec/auth';
+import type { Role } from '@objectstack/spec/auth';
+
+// Validate data
+const result = RoleSchema.parse(data);
+
+// Type-safe usage
+const myRole: Role = {
+ name: 'name',
+ label: 'example'
+};
+```
+
diff --git a/content/docs/references/auth/scim/SCIMAddress.mdx b/content/docs/references/auth/scim/SCIMAddress.mdx
index d7af19716..db9f2825f 100644
--- a/content/docs/references/auth/scim/SCIMAddress.mdx
+++ b/content/docs/references/auth/scim/SCIMAddress.mdx
@@ -1,8 +1,18 @@
---
title: SCIMAddress
description: SCIMAddress Schema Reference
+category: auth
+zodFile: scim
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/scim.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -15,3 +25,18 @@ description: SCIMAddress Schema Reference
| **country** | `string` | optional | Country |
| **type** | `Enum<'work' \| 'home' \| 'other'>` | optional | Address type |
| **primary** | `boolean` | optional | Primary address indicator |
+
+## TypeScript Usage
+
+```typescript
+import { SCIMAddressSchema } from '@objectstack/spec/auth';
+import type { SCIMAddress } from '@objectstack/spec/auth';
+
+// Validate data
+const result = SCIMAddressSchema.parse(data);
+
+// Type-safe usage
+const mySCIMAddress: SCIMAddress = {
+};
+```
+
diff --git a/content/docs/references/auth/scim/SCIMEmail.mdx b/content/docs/references/auth/scim/SCIMEmail.mdx
index 8ac77c635..083d3ddde 100644
--- a/content/docs/references/auth/scim/SCIMEmail.mdx
+++ b/content/docs/references/auth/scim/SCIMEmail.mdx
@@ -1,8 +1,18 @@
---
title: SCIMEmail
description: SCIMEmail Schema Reference
+category: auth
+zodFile: scim
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/scim.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,19 @@ description: SCIMEmail Schema Reference
| **type** | `Enum<'work' \| 'home' \| 'other'>` | optional | Email type |
| **display** | `string` | optional | Display label |
| **primary** | `boolean` | optional | Primary email indicator |
+
+## TypeScript Usage
+
+```typescript
+import { SCIMEmailSchema } from '@objectstack/spec/auth';
+import type { SCIMEmail } from '@objectstack/spec/auth';
+
+// Validate data
+const result = SCIMEmailSchema.parse(data);
+
+// Type-safe usage
+const mySCIMEmail: SCIMEmail = {
+ value: 'example'
+};
+```
+
diff --git a/content/docs/references/auth/scim/SCIMEnterpriseUser.mdx b/content/docs/references/auth/scim/SCIMEnterpriseUser.mdx
index 4d9bf5e38..109977634 100644
--- a/content/docs/references/auth/scim/SCIMEnterpriseUser.mdx
+++ b/content/docs/references/auth/scim/SCIMEnterpriseUser.mdx
@@ -1,8 +1,18 @@
---
title: SCIMEnterpriseUser
description: SCIMEnterpriseUser Schema Reference
+category: auth
+zodFile: scim
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/scim.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,18 @@ description: SCIMEnterpriseUser Schema Reference
| **division** | `string` | optional | Division |
| **department** | `string` | optional | Department |
| **manager** | `object` | optional | Manager reference |
+
+## TypeScript Usage
+
+```typescript
+import { SCIMEnterpriseUserSchema } from '@objectstack/spec/auth';
+import type { SCIMEnterpriseUser } from '@objectstack/spec/auth';
+
+// Validate data
+const result = SCIMEnterpriseUserSchema.parse(data);
+
+// Type-safe usage
+const mySCIMEnterpriseUser: SCIMEnterpriseUser = {
+};
+```
+
diff --git a/content/docs/references/auth/scim/SCIMError.mdx b/content/docs/references/auth/scim/SCIMError.mdx
index 11c12b1f6..496a0b613 100644
--- a/content/docs/references/auth/scim/SCIMError.mdx
+++ b/content/docs/references/auth/scim/SCIMError.mdx
@@ -1,8 +1,18 @@
---
title: SCIMError
description: SCIMError Schema Reference
+category: auth
+zodFile: scim
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/scim.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,19 @@ description: SCIMError Schema Reference
| **status** | `integer` | ✅ | HTTP status code |
| **scimType** | `Enum<'invalidFilter' \| 'tooMany' \| 'uniqueness' \| 'mutability' \| 'invalidSyntax' \| 'invalidPath' \| 'noTarget' \| 'invalidValue' \| 'invalidVers' \| 'sensitive'>` | optional | SCIM error type |
| **detail** | `string` | optional | Error detail message |
+
+## TypeScript Usage
+
+```typescript
+import { SCIMErrorSchema } from '@objectstack/spec/auth';
+import type { SCIMError } from '@objectstack/spec/auth';
+
+// Validate data
+const result = SCIMErrorSchema.parse(data);
+
+// Type-safe usage
+const mySCIMError: SCIMError = {
+ status: null
+};
+```
+
diff --git a/content/docs/references/auth/scim/SCIMGroup.mdx b/content/docs/references/auth/scim/SCIMGroup.mdx
index 73e6d24e7..cfedeb567 100644
--- a/content/docs/references/auth/scim/SCIMGroup.mdx
+++ b/content/docs/references/auth/scim/SCIMGroup.mdx
@@ -1,8 +1,18 @@
---
title: SCIMGroup
description: SCIMGroup Schema Reference
+category: auth
+zodFile: scim
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/scim.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,19 @@ description: SCIMGroup Schema Reference
| **displayName** | `string` | ✅ | Group display name (REQUIRED) |
| **members** | `object[]` | optional | Group members |
| **meta** | `object` | optional | Resource metadata |
+
+## TypeScript Usage
+
+```typescript
+import { SCIMGroupSchema } from '@objectstack/spec/auth';
+import type { SCIMGroup } from '@objectstack/spec/auth';
+
+// Validate data
+const result = SCIMGroupSchema.parse(data);
+
+// Type-safe usage
+const mySCIMGroup: SCIMGroup = {
+ displayName: 'example'
+};
+```
+
diff --git a/content/docs/references/auth/scim/SCIMGroupReference.mdx b/content/docs/references/auth/scim/SCIMGroupReference.mdx
index 5a9458643..372361ea2 100644
--- a/content/docs/references/auth/scim/SCIMGroupReference.mdx
+++ b/content/docs/references/auth/scim/SCIMGroupReference.mdx
@@ -1,8 +1,18 @@
---
title: SCIMGroupReference
description: SCIMGroupReference Schema Reference
+category: auth
+zodFile: scim
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/scim.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,19 @@ description: SCIMGroupReference Schema Reference
| **$ref** | `string` | optional | URI reference to the group |
| **display** | `string` | optional | Group display name |
| **type** | `Enum<'direct' \| 'indirect'>` | optional | Membership type |
+
+## TypeScript Usage
+
+```typescript
+import { SCIMGroupReferenceSchema } from '@objectstack/spec/auth';
+import type { SCIMGroupReference } from '@objectstack/spec/auth';
+
+// Validate data
+const result = SCIMGroupReferenceSchema.parse(data);
+
+// Type-safe usage
+const mySCIMGroupReference: SCIMGroupReference = {
+ value: 'example'
+};
+```
+
diff --git a/content/docs/references/auth/scim/SCIMListResponse.mdx b/content/docs/references/auth/scim/SCIMListResponse.mdx
index 5c0f6d2c8..95df17a02 100644
--- a/content/docs/references/auth/scim/SCIMListResponse.mdx
+++ b/content/docs/references/auth/scim/SCIMListResponse.mdx
@@ -1,8 +1,18 @@
---
title: SCIMListResponse
description: SCIMListResponse Schema Reference
+category: auth
+zodFile: scim
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/scim.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,20 @@ description: SCIMListResponse Schema Reference
| **Resources** | `object \| object \| Record[]` | ✅ | Resources array (Users, Groups, or custom resources) |
| **startIndex** | `integer` | optional | Start index (1-based) |
| **itemsPerPage** | `integer` | optional | Items per page |
+
+## TypeScript Usage
+
+```typescript
+import { SCIMListResponseSchema } from '@objectstack/spec/auth';
+import type { SCIMListResponse } from '@objectstack/spec/auth';
+
+// Validate data
+const result = SCIMListResponseSchema.parse(data);
+
+// Type-safe usage
+const mySCIMListResponse: SCIMListResponse = {
+ totalResults: null,
+ Resources: []
+};
+```
+
diff --git a/content/docs/references/auth/scim/SCIMMemberReference.mdx b/content/docs/references/auth/scim/SCIMMemberReference.mdx
index e2e05e926..fc78efdff 100644
--- a/content/docs/references/auth/scim/SCIMMemberReference.mdx
+++ b/content/docs/references/auth/scim/SCIMMemberReference.mdx
@@ -1,8 +1,18 @@
---
title: SCIMMemberReference
description: SCIMMemberReference Schema Reference
+category: auth
+zodFile: scim
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/scim.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,19 @@ description: SCIMMemberReference Schema Reference
| **$ref** | `string` | optional | URI reference to the member |
| **type** | `Enum<'User' \| 'Group'>` | optional | Member type |
| **display** | `string` | optional | Member display name |
+
+## TypeScript Usage
+
+```typescript
+import { SCIMMemberReferenceSchema } from '@objectstack/spec/auth';
+import type { SCIMMemberReference } from '@objectstack/spec/auth';
+
+// Validate data
+const result = SCIMMemberReferenceSchema.parse(data);
+
+// Type-safe usage
+const mySCIMMemberReference: SCIMMemberReference = {
+ value: 'example'
+};
+```
+
diff --git a/content/docs/references/auth/scim/SCIMMeta.mdx b/content/docs/references/auth/scim/SCIMMeta.mdx
index 919cb861b..054424b84 100644
--- a/content/docs/references/auth/scim/SCIMMeta.mdx
+++ b/content/docs/references/auth/scim/SCIMMeta.mdx
@@ -1,8 +1,18 @@
---
title: SCIMMeta
description: SCIMMeta Schema Reference
+category: auth
+zodFile: scim
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/scim.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,18 @@ description: SCIMMeta Schema Reference
| **lastModified** | `string` | optional | Last modification timestamp |
| **location** | `string` | optional | Resource location URI |
| **version** | `string` | optional | Entity tag (ETag) for concurrency control |
+
+## TypeScript Usage
+
+```typescript
+import { SCIMMetaSchema } from '@objectstack/spec/auth';
+import type { SCIMMeta } from '@objectstack/spec/auth';
+
+// Validate data
+const result = SCIMMetaSchema.parse(data);
+
+// Type-safe usage
+const mySCIMMeta: SCIMMeta = {
+};
+```
+
diff --git a/content/docs/references/auth/scim/SCIMName.mdx b/content/docs/references/auth/scim/SCIMName.mdx
index 7947a0cdf..ac4ca9066 100644
--- a/content/docs/references/auth/scim/SCIMName.mdx
+++ b/content/docs/references/auth/scim/SCIMName.mdx
@@ -1,8 +1,18 @@
---
title: SCIMName
description: SCIMName Schema Reference
+category: auth
+zodFile: scim
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/scim.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,18 @@ description: SCIMName Schema Reference
| **middleName** | `string` | optional | Middle name |
| **honorificPrefix** | `string` | optional | Honorific prefix (Mr., Ms., Dr.) |
| **honorificSuffix** | `string` | optional | Honorific suffix (Jr., Sr.) |
+
+## TypeScript Usage
+
+```typescript
+import { SCIMNameSchema } from '@objectstack/spec/auth';
+import type { SCIMName } from '@objectstack/spec/auth';
+
+// Validate data
+const result = SCIMNameSchema.parse(data);
+
+// Type-safe usage
+const mySCIMName: SCIMName = {
+};
+```
+
diff --git a/content/docs/references/auth/scim/SCIMPatchOperation.mdx b/content/docs/references/auth/scim/SCIMPatchOperation.mdx
index 2d92e6839..2f01fb513 100644
--- a/content/docs/references/auth/scim/SCIMPatchOperation.mdx
+++ b/content/docs/references/auth/scim/SCIMPatchOperation.mdx
@@ -1,8 +1,18 @@
---
title: SCIMPatchOperation
description: SCIMPatchOperation Schema Reference
+category: auth
+zodFile: scim
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/scim.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,19 @@ description: SCIMPatchOperation Schema Reference
| **op** | `Enum<'add' \| 'remove' \| 'replace'>` | ✅ | Operation type |
| **path** | `string` | optional | Attribute path (optional for add) |
| **value** | `any` | optional | Value to set |
+
+## TypeScript Usage
+
+```typescript
+import { SCIMPatchOperationSchema } from '@objectstack/spec/auth';
+import type { SCIMPatchOperation } from '@objectstack/spec/auth';
+
+// Validate data
+const result = SCIMPatchOperationSchema.parse(data);
+
+// Type-safe usage
+const mySCIMPatchOperation: SCIMPatchOperation = {
+ op: 'add'
+};
+```
+
diff --git a/content/docs/references/auth/scim/SCIMPatchRequest.mdx b/content/docs/references/auth/scim/SCIMPatchRequest.mdx
index 17180da9f..bdc7916f4 100644
--- a/content/docs/references/auth/scim/SCIMPatchRequest.mdx
+++ b/content/docs/references/auth/scim/SCIMPatchRequest.mdx
@@ -1,11 +1,37 @@
---
title: SCIMPatchRequest
description: SCIMPatchRequest Schema Reference
+category: auth
+zodFile: scim
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/scim.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **schemas** | `string[]` | optional | SCIM schema URIs |
| **Operations** | `object[]` | ✅ | Patch operations |
+
+## TypeScript Usage
+
+```typescript
+import { SCIMPatchRequestSchema } from '@objectstack/spec/auth';
+import type { SCIMPatchRequest } from '@objectstack/spec/auth';
+
+// Validate data
+const result = SCIMPatchRequestSchema.parse(data);
+
+// Type-safe usage
+const mySCIMPatchRequest: SCIMPatchRequest = {
+ Operations: []
+};
+```
+
diff --git a/content/docs/references/auth/scim/SCIMPhoneNumber.mdx b/content/docs/references/auth/scim/SCIMPhoneNumber.mdx
index 8bee2e021..607ffd374 100644
--- a/content/docs/references/auth/scim/SCIMPhoneNumber.mdx
+++ b/content/docs/references/auth/scim/SCIMPhoneNumber.mdx
@@ -1,8 +1,18 @@
---
title: SCIMPhoneNumber
description: SCIMPhoneNumber Schema Reference
+category: auth
+zodFile: scim
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/scim.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,19 @@ description: SCIMPhoneNumber Schema Reference
| **type** | `Enum<'work' \| 'home' \| 'mobile' \| 'fax' \| 'pager' \| 'other'>` | optional | Phone number type |
| **display** | `string` | optional | Display label |
| **primary** | `boolean` | optional | Primary phone indicator |
+
+## TypeScript Usage
+
+```typescript
+import { SCIMPhoneNumberSchema } from '@objectstack/spec/auth';
+import type { SCIMPhoneNumber } from '@objectstack/spec/auth';
+
+// Validate data
+const result = SCIMPhoneNumberSchema.parse(data);
+
+// Type-safe usage
+const mySCIMPhoneNumber: SCIMPhoneNumber = {
+ value: 'example'
+};
+```
+
diff --git a/content/docs/references/auth/scim/SCIMUser.mdx b/content/docs/references/auth/scim/SCIMUser.mdx
index 5c7cf2379..6e6108bc1 100644
--- a/content/docs/references/auth/scim/SCIMUser.mdx
+++ b/content/docs/references/auth/scim/SCIMUser.mdx
@@ -1,8 +1,18 @@
---
title: SCIMUser
description: SCIMUser Schema Reference
+category: auth
+zodFile: scim
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/auth/scim.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -33,3 +43,19 @@ description: SCIMUser Schema Reference
| **x509Certificates** | `object[]` | optional | X509 certificates |
| **meta** | `object` | optional | Resource metadata |
| **urn:ietf:params:scim:schemas:extension:enterprise:2.0:User** | `object` | optional | Enterprise user attributes |
+
+## TypeScript Usage
+
+```typescript
+import { SCIMUserSchema } from '@objectstack/spec/auth';
+import type { SCIMUser } from '@objectstack/spec/auth';
+
+// Validate data
+const result = SCIMUserSchema.parse(data);
+
+// Type-safe usage
+const mySCIMUser: SCIMUser = {
+ userName: 'example'
+};
+```
+
diff --git a/content/docs/references/automation/approval/ApprovalAction.mdx b/content/docs/references/automation/approval/ApprovalAction.mdx
index 479cd8ab0..471b5d889 100644
--- a/content/docs/references/automation/approval/ApprovalAction.mdx
+++ b/content/docs/references/automation/approval/ApprovalAction.mdx
@@ -1,8 +1,18 @@
---
title: ApprovalAction
description: ApprovalAction Schema Reference
+category: automation
+zodFile: approval
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/approval.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,21 @@ description: ApprovalAction Schema Reference
| **type** | `Enum<'field_update' \| 'email_alert' \| 'webhook' \| 'script'>` | ✅ | |
| **name** | `string` | ✅ | Action name |
| **config** | `Record` | ✅ | Action configuration |
+
+## TypeScript Usage
+
+```typescript
+import { ApprovalActionSchema } from '@objectstack/spec/automation';
+import type { ApprovalAction } from '@objectstack/spec/automation';
+
+// Validate data
+const result = ApprovalActionSchema.parse(data);
+
+// Type-safe usage
+const myApprovalAction: ApprovalAction = {
+ type: 'field_update',
+ name: 'name',
+ config: {}
+};
+```
+
diff --git a/content/docs/references/automation/approval/ApprovalActionType.mdx b/content/docs/references/automation/approval/ApprovalActionType.mdx
index d02ae2712..a58f83438 100644
--- a/content/docs/references/automation/approval/ApprovalActionType.mdx
+++ b/content/docs/references/automation/approval/ApprovalActionType.mdx
@@ -1,11 +1,31 @@
---
title: ApprovalActionType
description: ApprovalActionType Schema Reference
+category: automation
+zodFile: approval
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/approval.zod.ts`
+
+
## Allowed Values
* `field_update`
* `email_alert`
* `webhook`
-* `script`
\ No newline at end of file
+* `script`
+
+## TypeScript Usage
+
+```typescript
+import { ApprovalActionType } from '@objectstack/spec/automation';
+
+// Type-safe enum value
+const value: ApprovalActionType = 'field_update';
+```
+
diff --git a/content/docs/references/automation/approval/ApprovalProcess.mdx b/content/docs/references/automation/approval/ApprovalProcess.mdx
index 795fbf333..f7566bc34 100644
--- a/content/docs/references/automation/approval/ApprovalProcess.mdx
+++ b/content/docs/references/automation/approval/ApprovalProcess.mdx
@@ -1,8 +1,18 @@
---
title: ApprovalProcess
description: ApprovalProcess Schema Reference
+category: automation
+zodFile: approval
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/approval.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -19,3 +29,22 @@ description: ApprovalProcess Schema Reference
| **onFinalApprove** | `object[]` | optional | Actions on final approval |
| **onFinalReject** | `object[]` | optional | Actions on final rejection |
| **onRecall** | `object[]` | optional | Actions on recall |
+
+## TypeScript Usage
+
+```typescript
+import { ApprovalProcessSchema } from '@objectstack/spec/automation';
+import type { ApprovalProcess } from '@objectstack/spec/automation';
+
+// Validate data
+const result = ApprovalProcessSchema.parse(data);
+
+// Type-safe usage
+const myApprovalProcess: ApprovalProcess = {
+ name: 'name',
+ label: 'example',
+ object: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/automation/approval/ApprovalStep.mdx b/content/docs/references/automation/approval/ApprovalStep.mdx
index 595ee69bf..f219ca2cc 100644
--- a/content/docs/references/automation/approval/ApprovalStep.mdx
+++ b/content/docs/references/automation/approval/ApprovalStep.mdx
@@ -1,8 +1,18 @@
---
title: ApprovalStep
description: ApprovalStep Schema Reference
+category: automation
+zodFile: approval
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/approval.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -16,3 +26,21 @@ description: ApprovalStep Schema Reference
| **rejectionBehavior** | `Enum<'reject_process' \| 'back_to_previous'>` | optional | What happens if rejected |
| **onApprove** | `object[]` | optional | Actions on step approval |
| **onReject** | `object[]` | optional | Actions on step rejection |
+
+## TypeScript Usage
+
+```typescript
+import { ApprovalStepSchema } from '@objectstack/spec/automation';
+import type { ApprovalStep } from '@objectstack/spec/automation';
+
+// Validate data
+const result = ApprovalStepSchema.parse(data);
+
+// Type-safe usage
+const myApprovalStep: ApprovalStep = {
+ name: 'name',
+ label: 'example',
+ approvers: []
+};
+```
+
diff --git a/content/docs/references/automation/approval/ApproverType.mdx b/content/docs/references/automation/approval/ApproverType.mdx
index 46374b980..6bde621d2 100644
--- a/content/docs/references/automation/approval/ApproverType.mdx
+++ b/content/docs/references/automation/approval/ApproverType.mdx
@@ -1,12 +1,32 @@
---
title: ApproverType
description: ApproverType Schema Reference
+category: automation
+zodFile: approval
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/approval.zod.ts`
+
+
## Allowed Values
* `user`
* `role`
* `manager`
* `field`
-* `queue`
\ No newline at end of file
+* `queue`
+
+## TypeScript Usage
+
+```typescript
+import { ApproverType } from '@objectstack/spec/automation';
+
+// Type-safe enum value
+const value: ApproverType = 'user';
+```
+
diff --git a/content/docs/references/automation/connector/AuthField.mdx b/content/docs/references/automation/connector/AuthField.mdx
index 7b361e853..69aa1d293 100644
--- a/content/docs/references/automation/connector/AuthField.mdx
+++ b/content/docs/references/automation/connector/AuthField.mdx
@@ -1,8 +1,18 @@
---
title: AuthField
description: AuthField Schema Reference
+category: automation
+zodFile: connector
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/connector.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -15,3 +25,20 @@ description: AuthField Schema Reference
| **default** | `string` | optional | Default value |
| **options** | `object[]` | optional | Select field options |
| **placeholder** | `string` | optional | Placeholder text |
+
+## TypeScript Usage
+
+```typescript
+import { AuthFieldSchema } from '@objectstack/spec/automation';
+import type { AuthField } from '@objectstack/spec/automation';
+
+// Validate data
+const result = AuthFieldSchema.parse(data);
+
+// Type-safe usage
+const myAuthField: AuthField = {
+ name: 'name',
+ label: 'example'
+};
+```
+
diff --git a/content/docs/references/automation/connector/Authentication.mdx b/content/docs/references/automation/connector/Authentication.mdx
index 8f246e78f..bca0dbe59 100644
--- a/content/docs/references/automation/connector/Authentication.mdx
+++ b/content/docs/references/automation/connector/Authentication.mdx
@@ -1,8 +1,18 @@
---
title: Authentication
description: Authentication Schema Reference
+category: automation
+zodFile: connector
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/connector.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,19 @@ description: Authentication Schema Reference
| **fields** | `object[]` | optional | Authentication fields |
| **oauth2** | `object` | optional | OAuth 2.0 configuration |
| **test** | `object` | optional | Authentication test configuration |
+
+## TypeScript Usage
+
+```typescript
+import { AuthenticationSchema } from '@objectstack/spec/automation';
+import type { Authentication } from '@objectstack/spec/automation';
+
+// Validate data
+const result = AuthenticationSchema.parse(data);
+
+// Type-safe usage
+const myAuthentication: Authentication = {
+ type: 'none'
+};
+```
+
diff --git a/content/docs/references/automation/connector/AuthenticationType.mdx b/content/docs/references/automation/connector/AuthenticationType.mdx
index 62060107e..d0b391700 100644
--- a/content/docs/references/automation/connector/AuthenticationType.mdx
+++ b/content/docs/references/automation/connector/AuthenticationType.mdx
@@ -1,8 +1,18 @@
---
title: AuthenticationType
description: AuthenticationType Schema Reference
+category: automation
+zodFile: connector
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/connector.zod.ts`
+
+
## Allowed Values
* `none`
@@ -11,4 +21,14 @@ description: AuthenticationType Schema Reference
* `bearer`
* `oauth1`
* `oauth2`
-* `custom`
\ No newline at end of file
+* `custom`
+
+## TypeScript Usage
+
+```typescript
+import { AuthenticationType } from '@objectstack/spec/automation';
+
+// Type-safe enum value
+const value: AuthenticationType = 'none';
+```
+
diff --git a/content/docs/references/automation/connector/Connector.mdx b/content/docs/references/automation/connector/Connector.mdx
index 9d46fc79c..e8f72f489 100644
--- a/content/docs/references/automation/connector/Connector.mdx
+++ b/content/docs/references/automation/connector/Connector.mdx
@@ -1,8 +1,18 @@
---
title: Connector
description: Connector Schema Reference
+category: automation
+zodFile: connector
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/connector.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -25,3 +35,22 @@ description: Connector Schema Reference
| **tags** | `string[]` | optional | Connector tags |
| **verified** | `boolean` | optional | Verified connector |
| **metadata** | `Record` | optional | Custom metadata |
+
+## TypeScript Usage
+
+```typescript
+import { ConnectorSchema } from '@objectstack/spec/automation';
+import type { Connector } from '@objectstack/spec/automation';
+
+// Validate data
+const result = ConnectorSchema.parse(data);
+
+// Type-safe usage
+const myConnector: Connector = {
+ id: 'example',
+ name: 'name',
+ category: 'crm',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/automation/connector/ConnectorCategory.mdx b/content/docs/references/automation/connector/ConnectorCategory.mdx
index 93ad90f0c..6495211bf 100644
--- a/content/docs/references/automation/connector/ConnectorCategory.mdx
+++ b/content/docs/references/automation/connector/ConnectorCategory.mdx
@@ -1,8 +1,18 @@
---
title: ConnectorCategory
description: ConnectorCategory Schema Reference
+category: automation
+zodFile: connector
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/connector.zod.ts`
+
+
## Allowed Values
* `crm`
@@ -19,4 +29,14 @@ description: ConnectorCategory Schema Reference
* `support`
* `devtools`
* `social`
-* `other`
\ No newline at end of file
+* `other`
+
+## TypeScript Usage
+
+```typescript
+import { ConnectorCategory } from '@objectstack/spec/automation';
+
+// Type-safe enum value
+const value: ConnectorCategory = 'crm';
+```
+
diff --git a/content/docs/references/automation/connector/ConnectorInstance.mdx b/content/docs/references/automation/connector/ConnectorInstance.mdx
index 52799becd..ec61422b9 100644
--- a/content/docs/references/automation/connector/ConnectorInstance.mdx
+++ b/content/docs/references/automation/connector/ConnectorInstance.mdx
@@ -1,8 +1,18 @@
---
title: ConnectorInstance
description: ConnectorInstance Schema Reference
+category: automation
+zodFile: connector
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/connector.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -17,3 +27,22 @@ description: ConnectorInstance Schema Reference
| **createdAt** | `string` | optional | Creation time |
| **lastTestedAt** | `string` | optional | Last test time |
| **testStatus** | `Enum<'unknown' \| 'success' \| 'failed'>` | optional | Connection test status |
+
+## TypeScript Usage
+
+```typescript
+import { ConnectorInstanceSchema } from '@objectstack/spec/automation';
+import type { ConnectorInstance } from '@objectstack/spec/automation';
+
+// Validate data
+const result = ConnectorInstanceSchema.parse(data);
+
+// Type-safe usage
+const myConnectorInstance: ConnectorInstance = {
+ id: 'example',
+ connectorId: 'example',
+ name: 'name',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/automation/connector/ConnectorOperation.mdx b/content/docs/references/automation/connector/ConnectorOperation.mdx
index d02607623..1e64b219c 100644
--- a/content/docs/references/automation/connector/ConnectorOperation.mdx
+++ b/content/docs/references/automation/connector/ConnectorOperation.mdx
@@ -1,8 +1,18 @@
---
title: ConnectorOperation
description: ConnectorOperation Schema Reference
+category: automation
+zodFile: connector
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/connector.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -16,3 +26,21 @@ description: ConnectorOperation Schema Reference
| **sampleOutput** | `any` | optional | Sample output |
| **supportsPagination** | `boolean` | optional | Supports pagination |
| **supportsFiltering** | `boolean` | optional | Supports filtering |
+
+## TypeScript Usage
+
+```typescript
+import { ConnectorOperationSchema } from '@objectstack/spec/automation';
+import type { ConnectorOperation } from '@objectstack/spec/automation';
+
+// Validate data
+const result = ConnectorOperationSchema.parse(data);
+
+// Type-safe usage
+const myConnectorOperation: ConnectorOperation = {
+ id: 'example',
+ name: 'name',
+ type: 'read'
+};
+```
+
diff --git a/content/docs/references/automation/connector/ConnectorTrigger.mdx b/content/docs/references/automation/connector/ConnectorTrigger.mdx
index 0e8f44d49..867b1fcf1 100644
--- a/content/docs/references/automation/connector/ConnectorTrigger.mdx
+++ b/content/docs/references/automation/connector/ConnectorTrigger.mdx
@@ -1,8 +1,18 @@
---
title: ConnectorTrigger
description: ConnectorTrigger Schema Reference
+category: automation
+zodFile: connector
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/connector.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -14,3 +24,21 @@ description: ConnectorTrigger Schema Reference
| **config** | `Record` | optional | Trigger configuration |
| **outputSchema** | `Record` | optional | Event payload schema |
| **pollingIntervalMs** | `integer` | optional | Polling interval in ms |
+
+## TypeScript Usage
+
+```typescript
+import { ConnectorTriggerSchema } from '@objectstack/spec/automation';
+import type { ConnectorTrigger } from '@objectstack/spec/automation';
+
+// Validate data
+const result = ConnectorTriggerSchema.parse(data);
+
+// Type-safe usage
+const myConnectorTrigger: ConnectorTrigger = {
+ id: 'example',
+ name: 'name',
+ type: 'webhook'
+};
+```
+
diff --git a/content/docs/references/automation/connector/OAuth2Config.mdx b/content/docs/references/automation/connector/OAuth2Config.mdx
index 56b9b7806..f785d10b1 100644
--- a/content/docs/references/automation/connector/OAuth2Config.mdx
+++ b/content/docs/references/automation/connector/OAuth2Config.mdx
@@ -1,8 +1,18 @@
---
title: OAuth2Config
description: OAuth2Config Schema Reference
+category: automation
+zodFile: connector
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/connector.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,20 @@ description: OAuth2Config Schema Reference
| **scopes** | `string[]` | optional | OAuth scopes |
| **clientIdField** | `string` | optional | Client ID field name |
| **clientSecretField** | `string` | optional | Client secret field name |
+
+## TypeScript Usage
+
+```typescript
+import { OAuth2ConfigSchema } from '@objectstack/spec/automation';
+import type { OAuth2Config } from '@objectstack/spec/automation';
+
+// Validate data
+const result = OAuth2ConfigSchema.parse(data);
+
+// Type-safe usage
+const myOAuth2Config: OAuth2Config = {
+ authorizationUrl: 'example',
+ tokenUrl: 'example'
+};
+```
+
diff --git a/content/docs/references/automation/connector/OperationParameter.mdx b/content/docs/references/automation/connector/OperationParameter.mdx
index 57a928a2e..5f2b73d14 100644
--- a/content/docs/references/automation/connector/OperationParameter.mdx
+++ b/content/docs/references/automation/connector/OperationParameter.mdx
@@ -1,8 +1,18 @@
---
title: OperationParameter
description: OperationParameter Schema Reference
+category: automation
+zodFile: connector
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/connector.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -15,3 +25,21 @@ description: OperationParameter Schema Reference
| **default** | `any` | optional | Default value |
| **validation** | `Record` | optional | Validation rules |
| **dynamicOptions** | `string` | optional | Function to load dynamic options |
+
+## TypeScript Usage
+
+```typescript
+import { OperationParameterSchema } from '@objectstack/spec/automation';
+import type { OperationParameter } from '@objectstack/spec/automation';
+
+// Validate data
+const result = OperationParameterSchema.parse(data);
+
+// Type-safe usage
+const myOperationParameter: OperationParameter = {
+ name: 'name',
+ label: 'example',
+ type: 'string'
+};
+```
+
diff --git a/content/docs/references/automation/connector/OperationType.mdx b/content/docs/references/automation/connector/OperationType.mdx
index 4506104ca..0d8d6399e 100644
--- a/content/docs/references/automation/connector/OperationType.mdx
+++ b/content/docs/references/automation/connector/OperationType.mdx
@@ -1,8 +1,18 @@
---
title: OperationType
description: OperationType Schema Reference
+category: automation
+zodFile: connector
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/connector.zod.ts`
+
+
## Allowed Values
* `read`
@@ -10,4 +20,14 @@ description: OperationType Schema Reference
* `delete`
* `search`
* `trigger`
-* `action`
\ No newline at end of file
+* `action`
+
+## TypeScript Usage
+
+```typescript
+import { OperationType } from '@objectstack/spec/automation';
+
+// Type-safe enum value
+const value: OperationType = 'read';
+```
+
diff --git a/content/docs/references/automation/etl/ETLDestination.mdx b/content/docs/references/automation/etl/ETLDestination.mdx
index da14d10d1..bba08e19e 100644
--- a/content/docs/references/automation/etl/ETLDestination.mdx
+++ b/content/docs/references/automation/etl/ETLDestination.mdx
@@ -1,8 +1,18 @@
---
title: ETLDestination
description: ETLDestination Schema Reference
+category: automation
+zodFile: etl
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/etl.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,20 @@ description: ETLDestination Schema Reference
| **config** | `Record` | ✅ | Destination configuration |
| **writeMode** | `Enum<'append' \| 'overwrite' \| 'upsert' \| 'merge'>` | optional | How to write data |
| **primaryKey** | `string[]` | optional | Primary key fields |
+
+## TypeScript Usage
+
+```typescript
+import { ETLDestinationSchema } from '@objectstack/spec/automation';
+import type { ETLDestination } from '@objectstack/spec/automation';
+
+// Validate data
+const result = ETLDestinationSchema.parse(data);
+
+// Type-safe usage
+const myETLDestination: ETLDestination = {
+ type: 'database',
+ config: {}
+};
+```
+
diff --git a/content/docs/references/automation/etl/ETLEndpointType.mdx b/content/docs/references/automation/etl/ETLEndpointType.mdx
index e085179cd..c466df080 100644
--- a/content/docs/references/automation/etl/ETLEndpointType.mdx
+++ b/content/docs/references/automation/etl/ETLEndpointType.mdx
@@ -1,8 +1,18 @@
---
title: ETLEndpointType
description: ETLEndpointType Schema Reference
+category: automation
+zodFile: etl
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/etl.zod.ts`
+
+
## Allowed Values
* `database`
@@ -12,4 +22,14 @@ description: ETLEndpointType Schema Reference
* `object`
* `warehouse`
* `storage`
-* `spreadsheet`
\ No newline at end of file
+* `spreadsheet`
+
+## TypeScript Usage
+
+```typescript
+import { ETLEndpointType } from '@objectstack/spec/automation';
+
+// Type-safe enum value
+const value: ETLEndpointType = 'database';
+```
+
diff --git a/content/docs/references/automation/etl/ETLPipeline.mdx b/content/docs/references/automation/etl/ETLPipeline.mdx
index 3bf4c3c79..a8a89b9af 100644
--- a/content/docs/references/automation/etl/ETLPipeline.mdx
+++ b/content/docs/references/automation/etl/ETLPipeline.mdx
@@ -1,8 +1,18 @@
---
title: ETLPipeline
description: ETLPipeline Schema Reference
+category: automation
+zodFile: etl
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/etl.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -20,3 +30,21 @@ description: ETLPipeline Schema Reference
| **notifications** | `object` | optional | Notification settings |
| **tags** | `string[]` | optional | Pipeline tags |
| **metadata** | `Record` | optional | Custom metadata |
+
+## TypeScript Usage
+
+```typescript
+import { ETLPipelineSchema } from '@objectstack/spec/automation';
+import type { ETLPipeline } from '@objectstack/spec/automation';
+
+// Validate data
+const result = ETLPipelineSchema.parse(data);
+
+// Type-safe usage
+const myETLPipeline: ETLPipeline = {
+ name: 'name',
+ source: {},
+ destination: {}
+};
+```
+
diff --git a/content/docs/references/automation/etl/ETLPipelineRun.mdx b/content/docs/references/automation/etl/ETLPipelineRun.mdx
index 50d06bde7..f7a1bd191 100644
--- a/content/docs/references/automation/etl/ETLPipelineRun.mdx
+++ b/content/docs/references/automation/etl/ETLPipelineRun.mdx
@@ -1,8 +1,18 @@
---
title: ETLPipelineRun
description: ETLPipelineRun Schema Reference
+category: automation
+zodFile: etl
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/etl.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -16,3 +26,22 @@ description: ETLPipelineRun Schema Reference
| **stats** | `object` | optional | Run statistics |
| **error** | `object` | optional | Error information |
| **logs** | `string[]` | optional | Execution logs |
+
+## TypeScript Usage
+
+```typescript
+import { ETLPipelineRunSchema } from '@objectstack/spec/automation';
+import type { ETLPipelineRun } from '@objectstack/spec/automation';
+
+// Validate data
+const result = ETLPipelineRunSchema.parse(data);
+
+// Type-safe usage
+const myETLPipelineRun: ETLPipelineRun = {
+ id: 'example',
+ pipelineName: 'example',
+ status: 'pending',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/automation/etl/ETLRunStatus.mdx b/content/docs/references/automation/etl/ETLRunStatus.mdx
index a5c018d1e..2a48aac20 100644
--- a/content/docs/references/automation/etl/ETLRunStatus.mdx
+++ b/content/docs/references/automation/etl/ETLRunStatus.mdx
@@ -1,8 +1,18 @@
---
title: ETLRunStatus
description: ETLRunStatus Schema Reference
+category: automation
+zodFile: etl
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/etl.zod.ts`
+
+
## Allowed Values
* `pending`
@@ -10,4 +20,14 @@ description: ETLRunStatus Schema Reference
* `succeeded`
* `failed`
* `cancelled`
-* `timeout`
\ No newline at end of file
+* `timeout`
+
+## TypeScript Usage
+
+```typescript
+import { ETLRunStatus } from '@objectstack/spec/automation';
+
+// Type-safe enum value
+const value: ETLRunStatus = 'pending';
+```
+
diff --git a/content/docs/references/automation/etl/ETLSource.mdx b/content/docs/references/automation/etl/ETLSource.mdx
index dbdd9c44e..28932bdc3 100644
--- a/content/docs/references/automation/etl/ETLSource.mdx
+++ b/content/docs/references/automation/etl/ETLSource.mdx
@@ -1,8 +1,18 @@
---
title: ETLSource
description: ETLSource Schema Reference
+category: automation
+zodFile: etl
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/etl.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,20 @@ description: ETLSource Schema Reference
| **connector** | `string` | optional | Connector ID |
| **config** | `Record` | ✅ | Source configuration |
| **incremental** | `object` | optional | Incremental extraction config |
+
+## TypeScript Usage
+
+```typescript
+import { ETLSourceSchema } from '@objectstack/spec/automation';
+import type { ETLSource } from '@objectstack/spec/automation';
+
+// Validate data
+const result = ETLSourceSchema.parse(data);
+
+// Type-safe usage
+const myETLSource: ETLSource = {
+ type: 'database',
+ config: {}
+};
+```
+
diff --git a/content/docs/references/automation/etl/ETLSyncMode.mdx b/content/docs/references/automation/etl/ETLSyncMode.mdx
index 7f2c49c69..fa10915ba 100644
--- a/content/docs/references/automation/etl/ETLSyncMode.mdx
+++ b/content/docs/references/automation/etl/ETLSyncMode.mdx
@@ -1,10 +1,30 @@
---
title: ETLSyncMode
description: ETLSyncMode Schema Reference
+category: automation
+zodFile: etl
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/etl.zod.ts`
+
+
## Allowed Values
* `full`
* `incremental`
-* `cdc`
\ No newline at end of file
+* `cdc`
+
+## TypeScript Usage
+
+```typescript
+import { ETLSyncMode } from '@objectstack/spec/automation';
+
+// Type-safe enum value
+const value: ETLSyncMode = 'full';
+```
+
diff --git a/content/docs/references/automation/etl/ETLTransformation.mdx b/content/docs/references/automation/etl/ETLTransformation.mdx
index 5cdf487f7..57416ec64 100644
--- a/content/docs/references/automation/etl/ETLTransformation.mdx
+++ b/content/docs/references/automation/etl/ETLTransformation.mdx
@@ -1,8 +1,18 @@
---
title: ETLTransformation
description: ETLTransformation Schema Reference
+category: automation
+zodFile: etl
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/etl.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,20 @@ description: ETLTransformation Schema Reference
| **type** | `Enum<'map' \| 'filter' \| 'aggregate' \| 'join' \| 'script' \| 'lookup' \| 'split' \| 'merge' \| 'normalize' \| 'deduplicate'>` | ✅ | Transformation type |
| **config** | `Record` | ✅ | Transformation config |
| **continueOnError** | `boolean` | optional | Continue on error |
+
+## TypeScript Usage
+
+```typescript
+import { ETLTransformationSchema } from '@objectstack/spec/automation';
+import type { ETLTransformation } from '@objectstack/spec/automation';
+
+// Validate data
+const result = ETLTransformationSchema.parse(data);
+
+// Type-safe usage
+const myETLTransformation: ETLTransformation = {
+ type: 'map',
+ config: {}
+};
+```
+
diff --git a/content/docs/references/automation/etl/ETLTransformationType.mdx b/content/docs/references/automation/etl/ETLTransformationType.mdx
index 47be46d4f..70219a446 100644
--- a/content/docs/references/automation/etl/ETLTransformationType.mdx
+++ b/content/docs/references/automation/etl/ETLTransformationType.mdx
@@ -1,8 +1,18 @@
---
title: ETLTransformationType
description: ETLTransformationType Schema Reference
+category: automation
+zodFile: etl
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/etl.zod.ts`
+
+
## Allowed Values
* `map`
@@ -14,4 +24,14 @@ description: ETLTransformationType Schema Reference
* `split`
* `merge`
* `normalize`
-* `deduplicate`
\ No newline at end of file
+* `deduplicate`
+
+## TypeScript Usage
+
+```typescript
+import { ETLTransformationType } from '@objectstack/spec/automation';
+
+// Type-safe enum value
+const value: ETLTransformationType = 'map';
+```
+
diff --git a/content/docs/references/automation/flow/Flow.mdx b/content/docs/references/automation/flow/Flow.mdx
index 188f7ebe6..f894b2832 100644
--- a/content/docs/references/automation/flow/Flow.mdx
+++ b/content/docs/references/automation/flow/Flow.mdx
@@ -1,8 +1,18 @@
---
title: Flow
description: Flow Schema Reference
+category: automation
+zodFile: flow
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/flow.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -19,3 +29,22 @@ description: Flow Schema Reference
| **edges** | `object[]` | ✅ | Flow connections |
| **active** | `boolean` | optional | Is active (Deprecated: use status) |
| **runAs** | `Enum<'system' \| 'user'>` | optional | Execution context |
+
+## TypeScript Usage
+
+```typescript
+import { FlowSchema } from '@objectstack/spec/automation';
+import type { Flow } from '@objectstack/spec/automation';
+
+// Validate data
+const result = FlowSchema.parse(data);
+
+// Type-safe usage
+const myFlow: Flow = {
+ name: 'name',
+ label: 'example',
+ type: 'autolaunched',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/automation/flow/FlowEdge.mdx b/content/docs/references/automation/flow/FlowEdge.mdx
index 5a3fe6e0c..7ebef3aa1 100644
--- a/content/docs/references/automation/flow/FlowEdge.mdx
+++ b/content/docs/references/automation/flow/FlowEdge.mdx
@@ -1,8 +1,18 @@
---
title: FlowEdge
description: FlowEdge Schema Reference
+category: automation
+zodFile: flow
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/flow.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,21 @@ description: FlowEdge Schema Reference
| **condition** | `string` | optional | Expression returning boolean used for branching |
| **type** | `Enum<'default' \| 'fault'>` | optional | Connection type: Standard (Success) or Fault (Error) path |
| **label** | `string` | optional | Label on the connector |
+
+## TypeScript Usage
+
+```typescript
+import { FlowEdgeSchema } from '@objectstack/spec/automation';
+import type { FlowEdge } from '@objectstack/spec/automation';
+
+// Validate data
+const result = FlowEdgeSchema.parse(data);
+
+// Type-safe usage
+const myFlowEdge: FlowEdge = {
+ id: 'example',
+ source: 'example',
+ target: 'example'
+};
+```
+
diff --git a/content/docs/references/automation/flow/FlowNode.mdx b/content/docs/references/automation/flow/FlowNode.mdx
index d36e3a88f..04b5b4694 100644
--- a/content/docs/references/automation/flow/FlowNode.mdx
+++ b/content/docs/references/automation/flow/FlowNode.mdx
@@ -1,8 +1,18 @@
---
title: FlowNode
description: FlowNode Schema Reference
+category: automation
+zodFile: flow
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/flow.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,21 @@ description: FlowNode Schema Reference
| **label** | `string` | ✅ | Node label |
| **config** | `Record` | optional | Node configuration |
| **position** | `object` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { FlowNodeSchema } from '@objectstack/spec/automation';
+import type { FlowNode } from '@objectstack/spec/automation';
+
+// Validate data
+const result = FlowNodeSchema.parse(data);
+
+// Type-safe usage
+const myFlowNode: FlowNode = {
+ id: 'example',
+ type: 'start',
+ label: 'example'
+};
+```
+
diff --git a/content/docs/references/automation/flow/FlowNodeAction.mdx b/content/docs/references/automation/flow/FlowNodeAction.mdx
index 0d0a054ef..33ace7027 100644
--- a/content/docs/references/automation/flow/FlowNodeAction.mdx
+++ b/content/docs/references/automation/flow/FlowNodeAction.mdx
@@ -1,8 +1,18 @@
---
title: FlowNodeAction
description: FlowNodeAction Schema Reference
+category: automation
+zodFile: flow
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/flow.zod.ts`
+
+
## Allowed Values
* `start`
@@ -17,4 +27,14 @@ description: FlowNodeAction Schema Reference
* `http_request`
* `script`
* `wait`
-* `subflow`
\ No newline at end of file
+* `subflow`
+
+## TypeScript Usage
+
+```typescript
+import { FlowNodeAction } from '@objectstack/spec/automation';
+
+// Type-safe enum value
+const value: FlowNodeAction = 'start';
+```
+
diff --git a/content/docs/references/automation/flow/FlowVariable.mdx b/content/docs/references/automation/flow/FlowVariable.mdx
index 82f28b8b8..c00f7c6c1 100644
--- a/content/docs/references/automation/flow/FlowVariable.mdx
+++ b/content/docs/references/automation/flow/FlowVariable.mdx
@@ -1,8 +1,18 @@
---
title: FlowVariable
description: FlowVariable Schema Reference
+category: automation
+zodFile: flow
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/flow.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,20 @@ description: FlowVariable Schema Reference
| **type** | `string` | ✅ | Data type (text, number, boolean, object, list) |
| **isInput** | `boolean` | optional | Is input parameter |
| **isOutput** | `boolean` | optional | Is output parameter |
+
+## TypeScript Usage
+
+```typescript
+import { FlowVariableSchema } from '@objectstack/spec/automation';
+import type { FlowVariable } from '@objectstack/spec/automation';
+
+// Validate data
+const result = FlowVariableSchema.parse(data);
+
+// Type-safe usage
+const myFlowVariable: FlowVariable = {
+ name: 'name',
+ type: 'example'
+};
+```
+
diff --git a/content/docs/references/automation/index.mdx b/content/docs/references/automation/index.mdx
new file mode 100644
index 000000000..d0e8ea9ad
--- /dev/null
+++ b/content/docs/references/automation/index.mdx
@@ -0,0 +1,116 @@
+---
+title: Automation Protocol Overview
+description: Complete reference for all automation protocol schemas
+---
+
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Database, Cpu, Zap } from 'lucide-react';
+
+# Automation Protocol
+
+This section contains all protocol schemas for the automation layer of ObjectStack.
+
+## Approval
+
+Source: `packages/spec/src/automation/approval.zod.ts`
+
+
+
+
+
+
+
+
+
+## Connector
+
+Source: `packages/spec/src/automation/connector.zod.ts`
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Etl
+
+Source: `packages/spec/src/automation/etl.zod.ts`
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Flow
+
+Source: `packages/spec/src/automation/flow.zod.ts`
+
+
+
+
+
+
+
+
+
+## Sync
+
+Source: `packages/spec/src/automation/sync.zod.ts`
+
+
+
+
+
+
+
+
+
+
+
+
+## Webhook
+
+Source: `packages/spec/src/automation/webhook.zod.ts`
+
+
+
+
+
+
+
+## Workflow
+
+Source: `packages/spec/src/automation/workflow.zod.ts`
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/content/docs/references/automation/mapping/FieldMapping.mdx b/content/docs/references/automation/mapping/FieldMapping.mdx
index e53d8f039..6c9438154 100644
--- a/content/docs/references/automation/mapping/FieldMapping.mdx
+++ b/content/docs/references/automation/mapping/FieldMapping.mdx
@@ -1,8 +1,18 @@
---
title: FieldMapping
description: FieldMapping Schema Reference
+category: automation
+zodFile: mapping
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/mapping.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,20 @@ description: FieldMapping Schema Reference
| **transform** | `string` | optional | Transformation formula |
| **default** | `any` | optional | Default value |
| **syncNull** | `boolean` | optional | Sync null values |
+
+## TypeScript Usage
+
+```typescript
+import { FieldMappingSchema } from '@objectstack/spec/automation';
+import type { FieldMapping } from '@objectstack/spec/automation';
+
+// Validate data
+const result = FieldMappingSchema.parse(data);
+
+// Type-safe usage
+const myFieldMapping: FieldMapping = {
+ sourceField: 'example',
+ destinationField: 'example'
+};
+```
+
diff --git a/content/docs/references/automation/sync/ConflictResolution.mdx b/content/docs/references/automation/sync/ConflictResolution.mdx
index 623a5aeb9..57a8822d9 100644
--- a/content/docs/references/automation/sync/ConflictResolution.mdx
+++ b/content/docs/references/automation/sync/ConflictResolution.mdx
@@ -1,12 +1,32 @@
---
title: ConflictResolution
description: ConflictResolution Schema Reference
+category: automation
+zodFile: sync
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/sync.zod.ts`
+
+
## Allowed Values
* `source_wins`
* `destination_wins`
* `latest_wins`
* `manual`
-* `merge`
\ No newline at end of file
+* `merge`
+
+## TypeScript Usage
+
+```typescript
+import { ConflictResolution } from '@objectstack/spec/automation';
+
+// Type-safe enum value
+const value: ConflictResolution = 'source_wins';
+```
+
diff --git a/content/docs/references/automation/sync/DataDestinationConfig.mdx b/content/docs/references/automation/sync/DataDestinationConfig.mdx
index 59bf93ddf..f1607cc5f 100644
--- a/content/docs/references/automation/sync/DataDestinationConfig.mdx
+++ b/content/docs/references/automation/sync/DataDestinationConfig.mdx
@@ -1,8 +1,18 @@
---
title: DataDestinationConfig
description: DataDestinationConfig Schema Reference
+category: automation
+zodFile: sync
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/sync.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,19 @@ description: DataDestinationConfig Schema Reference
| **mapping** | `Record \| object[]` | optional | Field mappings |
| **externalResource** | `string` | optional | External resource ID |
| **matchKey** | `string[]` | optional | Match key fields |
+
+## TypeScript Usage
+
+```typescript
+import { DataDestinationConfigSchema } from '@objectstack/spec/automation';
+import type { DataDestinationConfig } from '@objectstack/spec/automation';
+
+// Validate data
+const result = DataDestinationConfigSchema.parse(data);
+
+// Type-safe usage
+const myDataDestinationConfig: DataDestinationConfig = {
+ operation: 'insert'
+};
+```
+
diff --git a/content/docs/references/automation/sync/DataSourceConfig.mdx b/content/docs/references/automation/sync/DataSourceConfig.mdx
index c0d6a79ba..d0bb7168f 100644
--- a/content/docs/references/automation/sync/DataSourceConfig.mdx
+++ b/content/docs/references/automation/sync/DataSourceConfig.mdx
@@ -1,8 +1,18 @@
---
title: DataSourceConfig
description: DataSourceConfig Schema Reference
+category: automation
+zodFile: sync
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/sync.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,18 @@ description: DataSourceConfig Schema Reference
| **fields** | `string[]` | optional | Fields to sync |
| **connectorInstanceId** | `string` | optional | Connector instance ID |
| **externalResource** | `string` | optional | External resource ID |
+
+## TypeScript Usage
+
+```typescript
+import { DataSourceConfigSchema } from '@objectstack/spec/automation';
+import type { DataSourceConfig } from '@objectstack/spec/automation';
+
+// Validate data
+const result = DataSourceConfigSchema.parse(data);
+
+// Type-safe usage
+const myDataSourceConfig: DataSourceConfig = {
+};
+```
+
diff --git a/content/docs/references/automation/sync/DataSyncConfig.mdx b/content/docs/references/automation/sync/DataSyncConfig.mdx
index aaee284da..f301effad 100644
--- a/content/docs/references/automation/sync/DataSyncConfig.mdx
+++ b/content/docs/references/automation/sync/DataSyncConfig.mdx
@@ -1,8 +1,18 @@
---
title: DataSyncConfig
description: DataSyncConfig Schema Reference
+category: automation
+zodFile: sync
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/sync.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -26,3 +36,21 @@ description: DataSyncConfig Schema Reference
| **audit** | `object` | optional | Audit configuration |
| **tags** | `string[]` | optional | Sync tags |
| **metadata** | `Record` | optional | Custom metadata |
+
+## TypeScript Usage
+
+```typescript
+import { DataSyncConfigSchema } from '@objectstack/spec/automation';
+import type { DataSyncConfig } from '@objectstack/spec/automation';
+
+// Validate data
+const result = DataSyncConfigSchema.parse(data);
+
+// Type-safe usage
+const myDataSyncConfig: DataSyncConfig = {
+ name: 'name',
+ source: {},
+ destination: {}
+};
+```
+
diff --git a/content/docs/references/automation/sync/SyncDirection.mdx b/content/docs/references/automation/sync/SyncDirection.mdx
index 4d65f05ca..a0e04a8cb 100644
--- a/content/docs/references/automation/sync/SyncDirection.mdx
+++ b/content/docs/references/automation/sync/SyncDirection.mdx
@@ -1,10 +1,30 @@
---
title: SyncDirection
description: SyncDirection Schema Reference
+category: automation
+zodFile: sync
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/sync.zod.ts`
+
+
## Allowed Values
* `push`
* `pull`
-* `bidirectional`
\ No newline at end of file
+* `bidirectional`
+
+## TypeScript Usage
+
+```typescript
+import { SyncDirection } from '@objectstack/spec/automation';
+
+// Type-safe enum value
+const value: SyncDirection = 'push';
+```
+
diff --git a/content/docs/references/automation/sync/SyncExecutionResult.mdx b/content/docs/references/automation/sync/SyncExecutionResult.mdx
index 388e3794a..2d95b6629 100644
--- a/content/docs/references/automation/sync/SyncExecutionResult.mdx
+++ b/content/docs/references/automation/sync/SyncExecutionResult.mdx
@@ -1,8 +1,18 @@
---
title: SyncExecutionResult
description: SyncExecutionResult Schema Reference
+category: automation
+zodFile: sync
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/sync.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -16,3 +26,22 @@ description: SyncExecutionResult Schema Reference
| **stats** | `object` | optional | Execution statistics |
| **errors** | `object[]` | optional | Errors |
| **logs** | `string[]` | optional | Execution logs |
+
+## TypeScript Usage
+
+```typescript
+import { SyncExecutionResultSchema } from '@objectstack/spec/automation';
+import type { SyncExecutionResult } from '@objectstack/spec/automation';
+
+// Validate data
+const result = SyncExecutionResultSchema.parse(data);
+
+// Type-safe usage
+const mySyncExecutionResult: SyncExecutionResult = {
+ id: 'example',
+ syncName: 'example',
+ status: 'pending',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/automation/sync/SyncExecutionStatus.mdx b/content/docs/references/automation/sync/SyncExecutionStatus.mdx
index be4b86047..bde062c4a 100644
--- a/content/docs/references/automation/sync/SyncExecutionStatus.mdx
+++ b/content/docs/references/automation/sync/SyncExecutionStatus.mdx
@@ -1,8 +1,18 @@
---
title: SyncExecutionStatus
description: SyncExecutionStatus Schema Reference
+category: automation
+zodFile: sync
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/sync.zod.ts`
+
+
## Allowed Values
* `pending`
@@ -10,4 +20,14 @@ description: SyncExecutionStatus Schema Reference
* `completed`
* `partial`
* `failed`
-* `cancelled`
\ No newline at end of file
+* `cancelled`
+
+## TypeScript Usage
+
+```typescript
+import { SyncExecutionStatus } from '@objectstack/spec/automation';
+
+// Type-safe enum value
+const value: SyncExecutionStatus = 'pending';
+```
+
diff --git a/content/docs/references/automation/sync/SyncMode.mdx b/content/docs/references/automation/sync/SyncMode.mdx
index 746d60c3e..0ca761bad 100644
--- a/content/docs/references/automation/sync/SyncMode.mdx
+++ b/content/docs/references/automation/sync/SyncMode.mdx
@@ -1,10 +1,30 @@
---
title: SyncMode
description: SyncMode Schema Reference
+category: automation
+zodFile: sync
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/sync.zod.ts`
+
+
## Allowed Values
* `full`
* `incremental`
-* `realtime`
\ No newline at end of file
+* `realtime`
+
+## TypeScript Usage
+
+```typescript
+import { SyncMode } from '@objectstack/spec/automation';
+
+// Type-safe enum value
+const value: SyncMode = 'full';
+```
+
diff --git a/content/docs/references/automation/webhook/Webhook.mdx b/content/docs/references/automation/webhook/Webhook.mdx
index 0c4feb308..e0fa3e3d9 100644
--- a/content/docs/references/automation/webhook/Webhook.mdx
+++ b/content/docs/references/automation/webhook/Webhook.mdx
@@ -1,8 +1,18 @@
---
title: Webhook
description: Webhook Schema Reference
+category: automation
+zodFile: webhook
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/webhook.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -19,3 +29,22 @@ description: Webhook Schema Reference
| **includeSession** | `boolean` | optional | Include user session info |
| **retryCount** | `number` | optional | |
| **isActive** | `boolean` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { WebhookSchema } from '@objectstack/spec/automation';
+import type { Webhook } from '@objectstack/spec/automation';
+
+// Validate data
+const result = WebhookSchema.parse(data);
+
+// Type-safe usage
+const myWebhook: Webhook = {
+ name: 'name',
+ object: 'example',
+ triggers: [],
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/automation/webhook/WebhookReceiver.mdx b/content/docs/references/automation/webhook/WebhookReceiver.mdx
index 1de662065..0ae96ffe9 100644
--- a/content/docs/references/automation/webhook/WebhookReceiver.mdx
+++ b/content/docs/references/automation/webhook/WebhookReceiver.mdx
@@ -1,8 +1,18 @@
---
title: WebhookReceiver
description: WebhookReceiver Schema Reference
+category: automation
+zodFile: webhook
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/webhook.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,21 @@ description: WebhookReceiver Schema Reference
| **verificationParams** | `object` | optional | |
| **action** | `Enum<'trigger_flow' \| 'script' \| 'upsert_record'>` | optional | |
| **target** | `string` | ✅ | Flow ID or Script name |
+
+## TypeScript Usage
+
+```typescript
+import { WebhookReceiverSchema } from '@objectstack/spec/automation';
+import type { WebhookReceiver } from '@objectstack/spec/automation';
+
+// Validate data
+const result = WebhookReceiverSchema.parse(data);
+
+// Type-safe usage
+const myWebhookReceiver: WebhookReceiver = {
+ name: 'name',
+ path: 'example',
+ target: 'example'
+};
+```
+
diff --git a/content/docs/references/automation/webhook/WebhookTriggerType.mdx b/content/docs/references/automation/webhook/WebhookTriggerType.mdx
index 18c38830b..5412ea8b9 100644
--- a/content/docs/references/automation/webhook/WebhookTriggerType.mdx
+++ b/content/docs/references/automation/webhook/WebhookTriggerType.mdx
@@ -1,12 +1,32 @@
---
title: WebhookTriggerType
description: WebhookTriggerType Schema Reference
+category: automation
+zodFile: webhook
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/webhook.zod.ts`
+
+
## Allowed Values
* `create`
* `update`
* `delete`
* `undelete`
-* `api`
\ No newline at end of file
+* `api`
+
+## TypeScript Usage
+
+```typescript
+import { WebhookTriggerType } from '@objectstack/spec/automation';
+
+// Type-safe enum value
+const value: WebhookTriggerType = 'create';
+```
+
diff --git a/content/docs/references/automation/workflow/CustomScriptAction.mdx b/content/docs/references/automation/workflow/CustomScriptAction.mdx
index ce65c528f..d45192df5 100644
--- a/content/docs/references/automation/workflow/CustomScriptAction.mdx
+++ b/content/docs/references/automation/workflow/CustomScriptAction.mdx
@@ -1,8 +1,18 @@
---
title: CustomScriptAction
description: CustomScriptAction Schema Reference
+category: automation
+zodFile: workflow
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/workflow.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,21 @@ description: CustomScriptAction Schema Reference
| **code** | `string` | ✅ | Script code to execute |
| **timeout** | `number` | optional | Execution timeout in milliseconds |
| **context** | `Record` | optional | Additional context variables |
+
+## TypeScript Usage
+
+```typescript
+import { CustomScriptActionSchema } from '@objectstack/spec/automation';
+import type { CustomScriptAction } from '@objectstack/spec/automation';
+
+// Validate data
+const result = CustomScriptActionSchema.parse(data);
+
+// Type-safe usage
+const myCustomScriptAction: CustomScriptAction = {
+ name: 'name',
+ type: 'example',
+ code: 'example'
+};
+```
+
diff --git a/content/docs/references/automation/workflow/EmailAlertAction.mdx b/content/docs/references/automation/workflow/EmailAlertAction.mdx
index e23cd03e0..9d0eb5e36 100644
--- a/content/docs/references/automation/workflow/EmailAlertAction.mdx
+++ b/content/docs/references/automation/workflow/EmailAlertAction.mdx
@@ -1,8 +1,18 @@
---
title: EmailAlertAction
description: EmailAlertAction Schema Reference
+category: automation
+zodFile: workflow
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/workflow.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,22 @@ description: EmailAlertAction Schema Reference
| **type** | `string` | ✅ | |
| **template** | `string` | ✅ | Email template ID/DevName |
| **recipients** | `string[]` | ✅ | List of recipient emails or user IDs |
+
+## TypeScript Usage
+
+```typescript
+import { EmailAlertActionSchema } from '@objectstack/spec/automation';
+import type { EmailAlertAction } from '@objectstack/spec/automation';
+
+// Validate data
+const result = EmailAlertActionSchema.parse(data);
+
+// Type-safe usage
+const myEmailAlertAction: EmailAlertAction = {
+ name: 'name',
+ type: 'example',
+ template: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/automation/workflow/FieldUpdateAction.mdx b/content/docs/references/automation/workflow/FieldUpdateAction.mdx
index 62298b986..169b631ca 100644
--- a/content/docs/references/automation/workflow/FieldUpdateAction.mdx
+++ b/content/docs/references/automation/workflow/FieldUpdateAction.mdx
@@ -1,8 +1,18 @@
---
title: FieldUpdateAction
description: FieldUpdateAction Schema Reference
+category: automation
+zodFile: workflow
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/workflow.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,21 @@ description: FieldUpdateAction Schema Reference
| **type** | `string` | ✅ | |
| **field** | `string` | ✅ | Field to update |
| **value** | `any` | optional | Value or Formula to set |
+
+## TypeScript Usage
+
+```typescript
+import { FieldUpdateActionSchema } from '@objectstack/spec/automation';
+import type { FieldUpdateAction } from '@objectstack/spec/automation';
+
+// Validate data
+const result = FieldUpdateActionSchema.parse(data);
+
+// Type-safe usage
+const myFieldUpdateAction: FieldUpdateAction = {
+ name: 'name',
+ type: 'example',
+ field: 'example'
+};
+```
+
diff --git a/content/docs/references/automation/workflow/HttpCallAction.mdx b/content/docs/references/automation/workflow/HttpCallAction.mdx
index e5bc884ef..8e45e85c6 100644
--- a/content/docs/references/automation/workflow/HttpCallAction.mdx
+++ b/content/docs/references/automation/workflow/HttpCallAction.mdx
@@ -1,8 +1,18 @@
---
title: HttpCallAction
description: HttpCallAction Schema Reference
+category: automation
+zodFile: workflow
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/workflow.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -15,3 +25,22 @@ description: HttpCallAction Schema Reference
| **body** | `any` | optional | Request body (object/string) |
| **authentication** | `object` | optional | Authentication configuration |
| **timeout** | `number` | optional | Request timeout in milliseconds |
+
+## TypeScript Usage
+
+```typescript
+import { HttpCallActionSchema } from '@objectstack/spec/automation';
+import type { HttpCallAction } from '@objectstack/spec/automation';
+
+// Validate data
+const result = HttpCallActionSchema.parse(data);
+
+// Type-safe usage
+const myHttpCallAction: HttpCallAction = {
+ name: 'name',
+ type: 'example',
+ url: 'https://example.com',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/automation/workflow/PushNotificationAction.mdx b/content/docs/references/automation/workflow/PushNotificationAction.mdx
index 77add310e..99479c4e0 100644
--- a/content/docs/references/automation/workflow/PushNotificationAction.mdx
+++ b/content/docs/references/automation/workflow/PushNotificationAction.mdx
@@ -1,8 +1,18 @@
---
title: PushNotificationAction
description: PushNotificationAction Schema Reference
+category: automation
+zodFile: workflow
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/workflow.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -16,3 +26,22 @@ description: PushNotificationAction Schema Reference
| **badge** | `number` | optional | Badge count (iOS) |
| **sound** | `string` | optional | Notification sound |
| **clickAction** | `string` | optional | Action/URL when notification is clicked |
+
+## TypeScript Usage
+
+```typescript
+import { PushNotificationActionSchema } from '@objectstack/spec/automation';
+import type { PushNotificationAction } from '@objectstack/spec/automation';
+
+// Validate data
+const result = PushNotificationActionSchema.parse(data);
+
+// Type-safe usage
+const myPushNotificationAction: PushNotificationAction = {
+ name: 'name',
+ type: 'example',
+ title: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/automation/workflow/SlackMessageAction.mdx b/content/docs/references/automation/workflow/SlackMessageAction.mdx
index 5e634be8a..531a3ff2a 100644
--- a/content/docs/references/automation/workflow/SlackMessageAction.mdx
+++ b/content/docs/references/automation/workflow/SlackMessageAction.mdx
@@ -1,8 +1,18 @@
---
title: SlackMessageAction
description: SlackMessageAction Schema Reference
+category: automation
+zodFile: workflow
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/workflow.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,22 @@ description: SlackMessageAction Schema Reference
| **message** | `string` | ✅ | Message text with optional markdown |
| **mentions** | `string[]` | optional | User IDs or @username to mention |
| **threadId** | `string` | optional | Thread ID for replies |
+
+## TypeScript Usage
+
+```typescript
+import { SlackMessageActionSchema } from '@objectstack/spec/automation';
+import type { SlackMessageAction } from '@objectstack/spec/automation';
+
+// Validate data
+const result = SlackMessageActionSchema.parse(data);
+
+// Type-safe usage
+const mySlackMessageAction: SlackMessageAction = {
+ name: 'name',
+ type: 'example',
+ channel: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/automation/workflow/SmsNotificationAction.mdx b/content/docs/references/automation/workflow/SmsNotificationAction.mdx
index 9025b4e4a..934d2b25c 100644
--- a/content/docs/references/automation/workflow/SmsNotificationAction.mdx
+++ b/content/docs/references/automation/workflow/SmsNotificationAction.mdx
@@ -1,8 +1,18 @@
---
title: SmsNotificationAction
description: SmsNotificationAction Schema Reference
+category: automation
+zodFile: workflow
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/workflow.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,22 @@ description: SmsNotificationAction Schema Reference
| **recipients** | `string[]` | ✅ | List of phone numbers or user field references |
| **message** | `string` | ✅ | SMS message text or template |
| **fromNumber** | `string` | optional | Sender phone number (provider-specific) |
+
+## TypeScript Usage
+
+```typescript
+import { SmsNotificationActionSchema } from '@objectstack/spec/automation';
+import type { SmsNotificationAction } from '@objectstack/spec/automation';
+
+// Validate data
+const result = SmsNotificationActionSchema.parse(data);
+
+// Type-safe usage
+const mySmsNotificationAction: SmsNotificationAction = {
+ name: 'name',
+ type: 'example',
+ provider: 'twilio',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/automation/workflow/TaskCreationAction.mdx b/content/docs/references/automation/workflow/TaskCreationAction.mdx
index 7b55f6a17..93ef59fd3 100644
--- a/content/docs/references/automation/workflow/TaskCreationAction.mdx
+++ b/content/docs/references/automation/workflow/TaskCreationAction.mdx
@@ -1,8 +1,18 @@
---
title: TaskCreationAction
description: TaskCreationAction Schema Reference
+category: automation
+zodFile: workflow
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/workflow.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -17,3 +27,22 @@ description: TaskCreationAction Schema Reference
| **priority** | `string` | optional | Task priority |
| **relatedTo** | `string` | optional | Related record ID or field reference |
| **additionalFields** | `Record` | optional | Additional custom fields |
+
+## TypeScript Usage
+
+```typescript
+import { TaskCreationActionSchema } from '@objectstack/spec/automation';
+import type { TaskCreationAction } from '@objectstack/spec/automation';
+
+// Validate data
+const result = TaskCreationActionSchema.parse(data);
+
+// Type-safe usage
+const myTaskCreationAction: TaskCreationAction = {
+ name: 'name',
+ type: 'example',
+ taskObject: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/automation/workflow/TeamsMessageAction.mdx b/content/docs/references/automation/workflow/TeamsMessageAction.mdx
index 71804dbf5..1ddecfe97 100644
--- a/content/docs/references/automation/workflow/TeamsMessageAction.mdx
+++ b/content/docs/references/automation/workflow/TeamsMessageAction.mdx
@@ -1,8 +1,18 @@
---
title: TeamsMessageAction
description: TeamsMessageAction Schema Reference
+category: automation
+zodFile: workflow
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/workflow.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,22 @@ description: TeamsMessageAction Schema Reference
| **message** | `string` | ✅ | Message text with optional markdown |
| **mentions** | `string[]` | optional | User IDs to mention |
| **teamId** | `string` | optional | Team ID (if not in default team) |
+
+## TypeScript Usage
+
+```typescript
+import { TeamsMessageActionSchema } from '@objectstack/spec/automation';
+import type { TeamsMessageAction } from '@objectstack/spec/automation';
+
+// Validate data
+const result = TeamsMessageActionSchema.parse(data);
+
+// Type-safe usage
+const myTeamsMessageAction: TeamsMessageAction = {
+ name: 'name',
+ type: 'example',
+ channel: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/automation/workflow/TimeTrigger.mdx b/content/docs/references/automation/workflow/TimeTrigger.mdx
index c7f4677aa..9f4c3160e 100644
--- a/content/docs/references/automation/workflow/TimeTrigger.mdx
+++ b/content/docs/references/automation/workflow/TimeTrigger.mdx
@@ -1,8 +1,18 @@
---
title: TimeTrigger
description: TimeTrigger Schema Reference
+category: automation
+zodFile: workflow
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/workflow.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -14,3 +24,22 @@ description: TimeTrigger Schema Reference
| **offsetFrom** | `Enum<'trigger_date' \| 'date_field'>` | ✅ | Basis for calculation |
| **dateField** | `string` | optional | Date field to calculate from (required if offsetFrom is date_field) |
| **actions** | `object \| object \| object \| object \| object \| object \| object \| object \| object \| object[]` | ✅ | Actions to execute at the scheduled time |
+
+## TypeScript Usage
+
+```typescript
+import { TimeTriggerSchema } from '@objectstack/spec/automation';
+import type { TimeTrigger } from '@objectstack/spec/automation';
+
+// Validate data
+const result = TimeTriggerSchema.parse(data);
+
+// Type-safe usage
+const myTimeTrigger: TimeTrigger = {
+ timeLength: null,
+ timeUnit: 'minutes',
+ offsetDirection: 'before',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/automation/workflow/WebhookTriggerAction.mdx b/content/docs/references/automation/workflow/WebhookTriggerAction.mdx
index 207882a30..9af225016 100644
--- a/content/docs/references/automation/workflow/WebhookTriggerAction.mdx
+++ b/content/docs/references/automation/workflow/WebhookTriggerAction.mdx
@@ -1,8 +1,18 @@
---
title: WebhookTriggerAction
description: WebhookTriggerAction Schema Reference
+category: automation
+zodFile: workflow
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/workflow.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -15,3 +25,21 @@ description: WebhookTriggerAction Schema Reference
| **payload** | `any` | optional | Webhook payload (uses record data if not specified) |
| **retryOnFailure** | `boolean` | optional | Retry if webhook fails |
| **maxRetries** | `number` | optional | Maximum retry attempts |
+
+## TypeScript Usage
+
+```typescript
+import { WebhookTriggerActionSchema } from '@objectstack/spec/automation';
+import type { WebhookTriggerAction } from '@objectstack/spec/automation';
+
+// Validate data
+const result = WebhookTriggerActionSchema.parse(data);
+
+// Type-safe usage
+const myWebhookTriggerAction: WebhookTriggerAction = {
+ name: 'name',
+ type: 'example',
+ url: 'https://example.com'
+};
+```
+
diff --git a/content/docs/references/automation/workflow/WorkflowAction.mdx b/content/docs/references/automation/workflow/WorkflowAction.mdx
index 9d45b696a..ab806c17b 100644
--- a/content/docs/references/automation/workflow/WorkflowAction.mdx
+++ b/content/docs/references/automation/workflow/WorkflowAction.mdx
@@ -1,5 +1,15 @@
---
title: WorkflowAction
description: WorkflowAction Schema Reference
+category: automation
+zodFile: workflow
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/workflow.zod.ts`
+
+
diff --git a/content/docs/references/automation/workflow/WorkflowRule.mdx b/content/docs/references/automation/workflow/WorkflowRule.mdx
index 88bfca56f..74eac7f69 100644
--- a/content/docs/references/automation/workflow/WorkflowRule.mdx
+++ b/content/docs/references/automation/workflow/WorkflowRule.mdx
@@ -1,8 +1,18 @@
---
title: WorkflowRule
description: WorkflowRule Schema Reference
+category: automation
+zodFile: workflow
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/workflow.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -15,3 +25,21 @@ description: WorkflowRule Schema Reference
| **timeTriggers** | `object[]` | optional | Scheduled actions relative to trigger or date field |
| **active** | `boolean` | optional | Whether this workflow is active |
| **reevaluateOnChange** | `boolean` | optional | Re-evaluate rule if field updates change the record validity |
+
+## TypeScript Usage
+
+```typescript
+import { WorkflowRuleSchema } from '@objectstack/spec/automation';
+import type { WorkflowRule } from '@objectstack/spec/automation';
+
+// Validate data
+const result = WorkflowRuleSchema.parse(data);
+
+// Type-safe usage
+const myWorkflowRule: WorkflowRule = {
+ name: 'name',
+ objectName: 'example',
+ triggerType: 'on_create'
+};
+```
+
diff --git a/content/docs/references/automation/workflow/WorkflowTriggerType.mdx b/content/docs/references/automation/workflow/WorkflowTriggerType.mdx
index 6c5f6564c..01c154507 100644
--- a/content/docs/references/automation/workflow/WorkflowTriggerType.mdx
+++ b/content/docs/references/automation/workflow/WorkflowTriggerType.mdx
@@ -1,12 +1,32 @@
---
title: WorkflowTriggerType
description: WorkflowTriggerType Schema Reference
+category: automation
+zodFile: workflow
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/automation/workflow.zod.ts`
+
+
## Allowed Values
* `on_create`
* `on_update`
* `on_create_or_update`
* `on_delete`
-* `schedule`
\ No newline at end of file
+* `schedule`
+
+## TypeScript Usage
+
+```typescript
+import { WorkflowTriggerType } from '@objectstack/spec/automation';
+
+// Type-safe enum value
+const value: WorkflowTriggerType = 'on_create';
+```
+
diff --git a/content/docs/references/data/dataset/Dataset.mdx b/content/docs/references/data/dataset/Dataset.mdx
index 7e003d6e9..46af6962f 100644
--- a/content/docs/references/data/dataset/Dataset.mdx
+++ b/content/docs/references/data/dataset/Dataset.mdx
@@ -1,8 +1,18 @@
---
title: Dataset
description: Dataset Schema Reference
+category: data
+zodFile: dataset
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/dataset.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,20 @@ description: Dataset Schema Reference
| **mode** | `Enum<'insert' \| 'update' \| 'upsert' \| 'replace' \| 'ignore'>` | optional | Conflict resolution strategy |
| **env** | `Enum<'prod' \| 'dev' \| 'test'>[]` | optional | Applicable environments |
| **records** | `Record[]` | ✅ | Data records |
+
+## TypeScript Usage
+
+```typescript
+import { DatasetSchema } from '@objectstack/spec/data';
+import type { Dataset } from '@objectstack/spec/data';
+
+// Validate data
+const result = DatasetSchema.parse(data);
+
+// Type-safe usage
+const myDataset: Dataset = {
+ object: 'example',
+ records: []
+};
+```
+
diff --git a/content/docs/references/data/dataset/DatasetMode.mdx b/content/docs/references/data/dataset/DatasetMode.mdx
index 4366a09d9..9b43b8cff 100644
--- a/content/docs/references/data/dataset/DatasetMode.mdx
+++ b/content/docs/references/data/dataset/DatasetMode.mdx
@@ -1,12 +1,32 @@
---
title: DatasetMode
description: DatasetMode Schema Reference
+category: data
+zodFile: dataset
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/dataset.zod.ts`
+
+
## Allowed Values
* `insert`
* `update`
* `upsert`
* `replace`
-* `ignore`
\ No newline at end of file
+* `ignore`
+
+## TypeScript Usage
+
+```typescript
+import { DatasetMode } from '@objectstack/spec/data';
+
+// Type-safe enum value
+const value: DatasetMode = 'insert';
+```
+
diff --git a/content/docs/references/data/field/Address.mdx b/content/docs/references/data/field/Address.mdx
index 1889b8213..412fd50ae 100644
--- a/content/docs/references/data/field/Address.mdx
+++ b/content/docs/references/data/field/Address.mdx
@@ -1,8 +1,18 @@
---
title: Address
description: Address Schema Reference
+category: data
+zodFile: field
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/field.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -14,3 +24,18 @@ description: Address Schema Reference
| **country** | `string` | optional | Country name or code |
| **countryCode** | `string` | optional | ISO country code (e.g., US, GB) |
| **formatted** | `string` | optional | Formatted address string |
+
+## TypeScript Usage
+
+```typescript
+import { AddressSchema } from '@objectstack/spec/data';
+import type { Address } from '@objectstack/spec/data';
+
+// Validate data
+const result = AddressSchema.parse(data);
+
+// Type-safe usage
+const myAddress: Address = {
+};
+```
+
diff --git a/content/docs/references/data/field/CurrencyConfig.mdx b/content/docs/references/data/field/CurrencyConfig.mdx
index 3bf14db03..128d86128 100644
--- a/content/docs/references/data/field/CurrencyConfig.mdx
+++ b/content/docs/references/data/field/CurrencyConfig.mdx
@@ -1,8 +1,18 @@
---
title: CurrencyConfig
description: CurrencyConfig Schema Reference
+category: data
+zodFile: field
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/field.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,18 @@ description: CurrencyConfig Schema Reference
| **precision** | `integer` | optional | Decimal precision (default: 2) |
| **currencyMode** | `Enum<'dynamic' \| 'fixed'>` | optional | Currency mode: dynamic (user selectable) or fixed (single currency) |
| **defaultCurrency** | `string` | optional | Default or fixed currency code (ISO 4217, e.g., USD, CNY, EUR) |
+
+## TypeScript Usage
+
+```typescript
+import { CurrencyConfigSchema } from '@objectstack/spec/data';
+import type { CurrencyConfig } from '@objectstack/spec/data';
+
+// Validate data
+const result = CurrencyConfigSchema.parse(data);
+
+// Type-safe usage
+const myCurrencyConfig: CurrencyConfig = {
+};
+```
+
diff --git a/content/docs/references/data/field/CurrencyValue.mdx b/content/docs/references/data/field/CurrencyValue.mdx
index cb7ecbc0e..ab101c674 100644
--- a/content/docs/references/data/field/CurrencyValue.mdx
+++ b/content/docs/references/data/field/CurrencyValue.mdx
@@ -1,11 +1,38 @@
---
title: CurrencyValue
description: CurrencyValue Schema Reference
+category: data
+zodFile: field
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/field.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **value** | `number` | ✅ | Monetary amount |
| **currency** | `string` | ✅ | Currency code (ISO 4217) |
+
+## TypeScript Usage
+
+```typescript
+import { CurrencyValueSchema } from '@objectstack/spec/data';
+import type { CurrencyValue } from '@objectstack/spec/data';
+
+// Validate data
+const result = CurrencyValueSchema.parse(data);
+
+// Type-safe usage
+const myCurrencyValue: CurrencyValue = {
+ value: 0,
+ currency: 'example'
+};
+```
+
diff --git a/content/docs/references/data/field/Field.mdx b/content/docs/references/data/field/Field.mdx
index 8f9b05947..bcbd9dddd 100644
--- a/content/docs/references/data/field/Field.mdx
+++ b/content/docs/references/data/field/Field.mdx
@@ -1,8 +1,18 @@
---
title: Field
description: Field Schema Reference
+category: data
+zodFile: field
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/field.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -56,3 +66,19 @@ description: Field Schema Reference
| **encryption** | `boolean` | optional | Encrypt at rest |
| **index** | `boolean` | optional | Create standard database index |
| **externalId** | `boolean` | optional | Is external ID for upsert operations |
+
+## TypeScript Usage
+
+```typescript
+import { FieldSchema } from '@objectstack/spec/data';
+import type { Field } from '@objectstack/spec/data';
+
+// Validate data
+const result = FieldSchema.parse(data);
+
+// Type-safe usage
+const myField: Field = {
+ type: 'text'
+};
+```
+
diff --git a/content/docs/references/data/field/FieldType.mdx b/content/docs/references/data/field/FieldType.mdx
index 7aa8b5c80..38e75e0fd 100644
--- a/content/docs/references/data/field/FieldType.mdx
+++ b/content/docs/references/data/field/FieldType.mdx
@@ -1,8 +1,18 @@
---
title: FieldType
description: FieldType Schema Reference
+category: data
+zodFile: field
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/field.zod.ts`
+
+
## Allowed Values
* `text`
@@ -48,4 +58,14 @@ description: FieldType Schema Reference
* `qrcode`
* `progress`
* `tags`
-* `vector`
\ No newline at end of file
+* `vector`
+
+## TypeScript Usage
+
+```typescript
+import { FieldType } from '@objectstack/spec/data';
+
+// Type-safe enum value
+const value: FieldType = 'text';
+```
+
diff --git a/content/docs/references/data/field/LocationCoordinates.mdx b/content/docs/references/data/field/LocationCoordinates.mdx
index d450f72c7..c8d2ed8b2 100644
--- a/content/docs/references/data/field/LocationCoordinates.mdx
+++ b/content/docs/references/data/field/LocationCoordinates.mdx
@@ -1,8 +1,18 @@
---
title: LocationCoordinates
description: LocationCoordinates Schema Reference
+category: data
+zodFile: field
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/field.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,20 @@ description: LocationCoordinates Schema Reference
| **longitude** | `number` | ✅ | Longitude coordinate |
| **altitude** | `number` | optional | Altitude in meters |
| **accuracy** | `number` | optional | Accuracy in meters |
+
+## TypeScript Usage
+
+```typescript
+import { LocationCoordinatesSchema } from '@objectstack/spec/data';
+import type { LocationCoordinates } from '@objectstack/spec/data';
+
+// Validate data
+const result = LocationCoordinatesSchema.parse(data);
+
+// Type-safe usage
+const myLocationCoordinates: LocationCoordinates = {
+ latitude: 0,
+ longitude: 0
+};
+```
+
diff --git a/content/docs/references/data/field/SelectOption.mdx b/content/docs/references/data/field/SelectOption.mdx
index 095d71ac1..2d930a158 100644
--- a/content/docs/references/data/field/SelectOption.mdx
+++ b/content/docs/references/data/field/SelectOption.mdx
@@ -1,8 +1,18 @@
---
title: SelectOption
description: SelectOption Schema Reference
+category: data
+zodFile: field
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/field.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,20 @@ description: SelectOption Schema Reference
| **value** | `string` | ✅ | Stored value (lowercase machine identifier) |
| **color** | `string` | optional | Color code for badges/charts |
| **default** | `boolean` | optional | Is default option |
+
+## TypeScript Usage
+
+```typescript
+import { SelectOptionSchema } from '@objectstack/spec/data';
+import type { SelectOption } from '@objectstack/spec/data';
+
+// Validate data
+const result = SelectOptionSchema.parse(data);
+
+// Type-safe usage
+const mySelectOption: SelectOption = {
+ label: 'example',
+ value: 'example'
+};
+```
+
diff --git a/content/docs/references/data/field/VectorConfig.mdx b/content/docs/references/data/field/VectorConfig.mdx
index 2a2bb5739..483310826 100644
--- a/content/docs/references/data/field/VectorConfig.mdx
+++ b/content/docs/references/data/field/VectorConfig.mdx
@@ -1,8 +1,18 @@
---
title: VectorConfig
description: VectorConfig Schema Reference
+category: data
+zodFile: field
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/field.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,19 @@ description: VectorConfig Schema Reference
| **normalized** | `boolean` | optional | Whether vectors are normalized (unit length) |
| **indexed** | `boolean` | optional | Whether to create a vector index for fast similarity search |
| **indexType** | `Enum<'hnsw' \| 'ivfflat' \| 'flat'>` | optional | Vector index algorithm (HNSW for high accuracy, IVFFlat for large datasets) |
+
+## TypeScript Usage
+
+```typescript
+import { VectorConfigSchema } from '@objectstack/spec/data';
+import type { VectorConfig } from '@objectstack/spec/data';
+
+// Validate data
+const result = VectorConfigSchema.parse(data);
+
+// Type-safe usage
+const myVectorConfig: VectorConfig = {
+ dimensions: null
+};
+```
+
diff --git a/content/docs/references/data/filter/ComparisonOperator.mdx b/content/docs/references/data/filter/ComparisonOperator.mdx
index 03e44b00a..c8b3692cc 100644
--- a/content/docs/references/data/filter/ComparisonOperator.mdx
+++ b/content/docs/references/data/filter/ComparisonOperator.mdx
@@ -1,8 +1,18 @@
---
title: ComparisonOperator
description: ComparisonOperator Schema Reference
+category: data
+zodFile: filter
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/filter.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,18 @@ description: ComparisonOperator Schema Reference
| **$gte** | `number \| string \| object` | optional | |
| **$lt** | `number \| string \| object` | optional | |
| **$lte** | `number \| string \| object` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { ComparisonOperatorSchema } from '@objectstack/spec/data';
+import type { ComparisonOperator } from '@objectstack/spec/data';
+
+// Validate data
+const result = ComparisonOperatorSchema.parse(data);
+
+// Type-safe usage
+const myComparisonOperator: ComparisonOperator = {
+};
+```
+
diff --git a/content/docs/references/data/filter/EqualityOperator.mdx b/content/docs/references/data/filter/EqualityOperator.mdx
index b7c3a4064..9af9e0052 100644
--- a/content/docs/references/data/filter/EqualityOperator.mdx
+++ b/content/docs/references/data/filter/EqualityOperator.mdx
@@ -1,11 +1,36 @@
---
title: EqualityOperator
description: EqualityOperator Schema Reference
+category: data
+zodFile: filter
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/filter.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **$eq** | `any` | optional | |
| **$ne** | `any` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { EqualityOperatorSchema } from '@objectstack/spec/data';
+import type { EqualityOperator } from '@objectstack/spec/data';
+
+// Validate data
+const result = EqualityOperatorSchema.parse(data);
+
+// Type-safe usage
+const myEqualityOperator: EqualityOperator = {
+};
+```
+
diff --git a/content/docs/references/data/filter/FieldOperators.mdx b/content/docs/references/data/filter/FieldOperators.mdx
index 27d4ff041..be28fe0f5 100644
--- a/content/docs/references/data/filter/FieldOperators.mdx
+++ b/content/docs/references/data/filter/FieldOperators.mdx
@@ -1,8 +1,18 @@
---
title: FieldOperators
description: FieldOperators Schema Reference
+category: data
+zodFile: filter
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/filter.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -21,3 +31,18 @@ description: FieldOperators Schema Reference
| **$endsWith** | `string` | optional | |
| **$null** | `boolean` | optional | |
| **$exist** | `boolean` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { FieldOperatorsSchema } from '@objectstack/spec/data';
+import type { FieldOperators } from '@objectstack/spec/data';
+
+// Validate data
+const result = FieldOperatorsSchema.parse(data);
+
+// Type-safe usage
+const myFieldOperators: FieldOperators = {
+};
+```
+
diff --git a/content/docs/references/data/filter/FieldReference.mdx b/content/docs/references/data/filter/FieldReference.mdx
index 585ba206b..2249f92a1 100644
--- a/content/docs/references/data/filter/FieldReference.mdx
+++ b/content/docs/references/data/filter/FieldReference.mdx
@@ -1,10 +1,36 @@
---
title: FieldReference
description: FieldReference Schema Reference
+category: data
+zodFile: filter
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/filter.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **$field** | `string` | ✅ | Field Reference/Column Name |
+
+## TypeScript Usage
+
+```typescript
+import { FieldReferenceSchema } from '@objectstack/spec/data';
+import type { FieldReference } from '@objectstack/spec/data';
+
+// Validate data
+const result = FieldReferenceSchema.parse(data);
+
+// Type-safe usage
+const myFieldReference: FieldReference = {
+ $field: 'example'
+};
+```
+
diff --git a/content/docs/references/data/filter/FilterCondition.mdx b/content/docs/references/data/filter/FilterCondition.mdx
index 622d19051..4cff03a9e 100644
--- a/content/docs/references/data/filter/FilterCondition.mdx
+++ b/content/docs/references/data/filter/FilterCondition.mdx
@@ -1,5 +1,15 @@
---
title: FilterCondition
description: FilterCondition Schema Reference
+category: data
+zodFile: filter
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/filter.zod.ts`
+
+
diff --git a/content/docs/references/data/filter/NormalizedFilter.mdx b/content/docs/references/data/filter/NormalizedFilter.mdx
index babf352d3..2e559d6d5 100644
--- a/content/docs/references/data/filter/NormalizedFilter.mdx
+++ b/content/docs/references/data/filter/NormalizedFilter.mdx
@@ -1,8 +1,18 @@
---
title: NormalizedFilter
description: NormalizedFilter Schema Reference
+category: data
+zodFile: filter
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/filter.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,18 @@ description: NormalizedFilter Schema Reference
| **$and** | `Record \| any[]` | optional | |
| **$or** | `Record \| any[]` | optional | |
| **$not** | `Record \| any` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { NormalizedFilterSchema } from '@objectstack/spec/data';
+import type { NormalizedFilter } from '@objectstack/spec/data';
+
+// Validate data
+const result = NormalizedFilterSchema.parse(data);
+
+// Type-safe usage
+const myNormalizedFilter: NormalizedFilter = {
+};
+```
+
diff --git a/content/docs/references/data/filter/QueryFilter.mdx b/content/docs/references/data/filter/QueryFilter.mdx
index ca1b37363..55d13b3e0 100644
--- a/content/docs/references/data/filter/QueryFilter.mdx
+++ b/content/docs/references/data/filter/QueryFilter.mdx
@@ -1,10 +1,35 @@
---
title: QueryFilter
description: QueryFilter Schema Reference
+category: data
+zodFile: filter
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/filter.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **where** | `any` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { QueryFilterSchema } from '@objectstack/spec/data';
+import type { QueryFilter } from '@objectstack/spec/data';
+
+// Validate data
+const result = QueryFilterSchema.parse(data);
+
+// Type-safe usage
+const myQueryFilter: QueryFilter = {
+};
+```
+
diff --git a/content/docs/references/data/filter/RangeOperator.mdx b/content/docs/references/data/filter/RangeOperator.mdx
index 618f6c323..5b0311b12 100644
--- a/content/docs/references/data/filter/RangeOperator.mdx
+++ b/content/docs/references/data/filter/RangeOperator.mdx
@@ -1,10 +1,35 @@
---
title: RangeOperator
description: RangeOperator Schema Reference
+category: data
+zodFile: filter
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/filter.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **$between** | `any[]` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { RangeOperatorSchema } from '@objectstack/spec/data';
+import type { RangeOperator } from '@objectstack/spec/data';
+
+// Validate data
+const result = RangeOperatorSchema.parse(data);
+
+// Type-safe usage
+const myRangeOperator: RangeOperator = {
+};
+```
+
diff --git a/content/docs/references/data/filter/SetOperator.mdx b/content/docs/references/data/filter/SetOperator.mdx
index c3b5290c7..284164424 100644
--- a/content/docs/references/data/filter/SetOperator.mdx
+++ b/content/docs/references/data/filter/SetOperator.mdx
@@ -1,11 +1,36 @@
---
title: SetOperator
description: SetOperator Schema Reference
+category: data
+zodFile: filter
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/filter.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **$in** | `any[]` | optional | |
| **$nin** | `any[]` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { SetOperatorSchema } from '@objectstack/spec/data';
+import type { SetOperator } from '@objectstack/spec/data';
+
+// Validate data
+const result = SetOperatorSchema.parse(data);
+
+// Type-safe usage
+const mySetOperator: SetOperator = {
+};
+```
+
diff --git a/content/docs/references/data/filter/SpecialOperator.mdx b/content/docs/references/data/filter/SpecialOperator.mdx
index 65aa64c98..34a847316 100644
--- a/content/docs/references/data/filter/SpecialOperator.mdx
+++ b/content/docs/references/data/filter/SpecialOperator.mdx
@@ -1,11 +1,36 @@
---
title: SpecialOperator
description: SpecialOperator Schema Reference
+category: data
+zodFile: filter
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/filter.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **$null** | `boolean` | optional | |
| **$exist** | `boolean` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { SpecialOperatorSchema } from '@objectstack/spec/data';
+import type { SpecialOperator } from '@objectstack/spec/data';
+
+// Validate data
+const result = SpecialOperatorSchema.parse(data);
+
+// Type-safe usage
+const mySpecialOperator: SpecialOperator = {
+};
+```
+
diff --git a/content/docs/references/data/filter/StringOperator.mdx b/content/docs/references/data/filter/StringOperator.mdx
index a2b0b6f94..554031e9a 100644
--- a/content/docs/references/data/filter/StringOperator.mdx
+++ b/content/docs/references/data/filter/StringOperator.mdx
@@ -1,8 +1,18 @@
---
title: StringOperator
description: StringOperator Schema Reference
+category: data
+zodFile: filter
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/filter.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,18 @@ description: StringOperator Schema Reference
| **$contains** | `string` | optional | |
| **$startsWith** | `string` | optional | |
| **$endsWith** | `string` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { StringOperatorSchema } from '@objectstack/spec/data';
+import type { StringOperator } from '@objectstack/spec/data';
+
+// Validate data
+const result = StringOperatorSchema.parse(data);
+
+// Type-safe usage
+const myStringOperator: StringOperator = {
+};
+```
+
diff --git a/content/docs/references/data/hook/Hook.mdx b/content/docs/references/data/hook/Hook.mdx
index 11e76ccdd..bb90c5cdf 100644
--- a/content/docs/references/data/hook/Hook.mdx
+++ b/content/docs/references/data/hook/Hook.mdx
@@ -1,8 +1,18 @@
---
title: Hook
description: Hook Schema Reference
+category: data
+zodFile: hook
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/hook.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -15,3 +25,21 @@ description: Hook Schema Reference
| **priority** | `number` | optional | Execution priority |
| **async** | `boolean` | optional | Run specifically as fire-and-forget |
| **onError** | `Enum<'abort' \| 'log'>` | optional | Error handling strategy |
+
+## TypeScript Usage
+
+```typescript
+import { HookSchema } from '@objectstack/spec/data';
+import type { Hook } from '@objectstack/spec/data';
+
+// Validate data
+const result = HookSchema.parse(data);
+
+// Type-safe usage
+const myHook: Hook = {
+ name: 'name',
+ object: null,
+ events: []
+};
+```
+
diff --git a/content/docs/references/data/hook/HookContext.mdx b/content/docs/references/data/hook/HookContext.mdx
index a01727c76..712579251 100644
--- a/content/docs/references/data/hook/HookContext.mdx
+++ b/content/docs/references/data/hook/HookContext.mdx
@@ -1,8 +1,18 @@
---
title: HookContext
description: HookContext Schema Reference
+category: data
+zodFile: hook
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/hook.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -16,3 +26,21 @@ description: HookContext Schema Reference
| **session** | `object` | optional | Current session context |
| **transaction** | `any` | optional | Database transaction handle |
| **ql** | `any` | optional | ObjectQL Engine Reference |
+
+## TypeScript Usage
+
+```typescript
+import { HookContextSchema } from '@objectstack/spec/data';
+import type { HookContext } from '@objectstack/spec/data';
+
+// Validate data
+const result = HookContextSchema.parse(data);
+
+// Type-safe usage
+const myHookContext: HookContext = {
+ object: 'example',
+ event: 'beforeFind',
+ input: {}
+};
+```
+
diff --git a/content/docs/references/data/hook/HookEvent.mdx b/content/docs/references/data/hook/HookEvent.mdx
index 3b25c657e..6136248a3 100644
--- a/content/docs/references/data/hook/HookEvent.mdx
+++ b/content/docs/references/data/hook/HookEvent.mdx
@@ -1,8 +1,18 @@
---
title: HookEvent
description: HookEvent Schema Reference
+category: data
+zodFile: hook
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/hook.zod.ts`
+
+
## Allowed Values
* `beforeFind`
@@ -22,4 +32,14 @@ description: HookEvent Schema Reference
* `beforeUpdateMany`
* `afterUpdateMany`
* `beforeDeleteMany`
-* `afterDeleteMany`
\ No newline at end of file
+* `afterDeleteMany`
+
+## TypeScript Usage
+
+```typescript
+import { HookEvent } from '@objectstack/spec/data';
+
+// Type-safe enum value
+const value: HookEvent = 'beforeFind';
+```
+
diff --git a/content/docs/references/data/index.mdx b/content/docs/references/data/index.mdx
new file mode 100644
index 000000000..4964a9faa
--- /dev/null
+++ b/content/docs/references/data/index.mdx
@@ -0,0 +1,110 @@
+---
+title: Data Protocol Overview
+description: Complete reference for all data protocol schemas
+---
+
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Database, Cpu, Zap } from 'lucide-react';
+
+# Data Protocol
+
+This section contains all protocol schemas for the data layer of ObjectStack.
+
+## Dataset
+
+Source: `packages/spec/src/data/dataset.zod.ts`
+
+
+
+
+
+
+## Field
+
+Source: `packages/spec/src/data/field.zod.ts`
+
+
+
+
+
+
+
+
+
+
+
+
+## Filter
+
+Source: `packages/spec/src/data/filter.zod.ts`
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Hook
+
+Source: `packages/spec/src/data/hook.zod.ts`
+
+
+
+
+
+
+
+## Object
+
+Source: `packages/spec/src/data/object.zod.ts`
+
+
+
+
+
+
+
+
+## Query
+
+Source: `packages/spec/src/data/query.zod.ts`
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Validation
+
+Source: `packages/spec/src/data/validation.zod.ts`
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/content/docs/references/data/object/Index.mdx b/content/docs/references/data/object/Index.mdx
index e8059bb62..f7ac488c2 100644
--- a/content/docs/references/data/object/Index.mdx
+++ b/content/docs/references/data/object/Index.mdx
@@ -1,8 +1,18 @@
---
title: Index
description: Index Schema Reference
+category: data
+zodFile: object
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/object.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,19 @@ description: Index Schema Reference
| **fields** | `string[]` | ✅ | Fields included in the index |
| **unique** | `boolean` | optional | Whether the index is unique |
| **type** | `Enum<'btree' \| 'hash' \| 'gin' \| 'gist'>` | optional | Index type (default: btree) |
+
+## TypeScript Usage
+
+```typescript
+import { IndexSchema } from '@objectstack/spec/data';
+import type { Index } from '@objectstack/spec/data';
+
+// Validate data
+const result = IndexSchema.parse(data);
+
+// Type-safe usage
+const myIndex: Index = {
+ fields: []
+};
+```
+
diff --git a/content/docs/references/data/object/Object.mdx b/content/docs/references/data/object/Object.mdx
index d9aca8c56..21f7abfe0 100644
--- a/content/docs/references/data/object/Object.mdx
+++ b/content/docs/references/data/object/Object.mdx
@@ -1,8 +1,18 @@
---
title: Object
description: Object Schema Reference
+category: data
+zodFile: object
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/object.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -25,3 +35,20 @@ description: Object Schema Reference
| **compactLayout** | `string[]` | optional | Primary fields for hover/cards/lookups |
| **search** | `object` | optional | Search engine configuration |
| **enable** | `object` | optional | Enabled system features modules |
+
+## TypeScript Usage
+
+```typescript
+import { ObjectSchema } from '@objectstack/spec/data';
+import type { Object } from '@objectstack/spec/data';
+
+// Validate data
+const result = ObjectSchema.parse(data);
+
+// Type-safe usage
+const myObject: Object = {
+ name: 'name',
+ fields: {}
+};
+```
+
diff --git a/content/docs/references/data/object/ObjectCapabilities.mdx b/content/docs/references/data/object/ObjectCapabilities.mdx
index 14d269fdc..bc160c26a 100644
--- a/content/docs/references/data/object/ObjectCapabilities.mdx
+++ b/content/docs/references/data/object/ObjectCapabilities.mdx
@@ -1,8 +1,18 @@
---
title: ObjectCapabilities
description: ObjectCapabilities Schema Reference
+category: data
+zodFile: object
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/object.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -17,3 +27,18 @@ description: ObjectCapabilities Schema Reference
| **trash** | `boolean` | optional | Enable soft-delete with restore capability |
| **mru** | `boolean` | optional | Track Most Recently Used (MRU) list for users |
| **clone** | `boolean` | optional | Allow record deep cloning |
+
+## TypeScript Usage
+
+```typescript
+import { ObjectCapabilitiesSchema } from '@objectstack/spec/data';
+import type { ObjectCapabilities } from '@objectstack/spec/data';
+
+// Validate data
+const result = ObjectCapabilitiesSchema.parse(data);
+
+// Type-safe usage
+const myObjectCapabilities: ObjectCapabilities = {
+};
+```
+
diff --git a/content/docs/references/data/object/SearchConfig.mdx b/content/docs/references/data/object/SearchConfig.mdx
index fa44545ea..e2b0a77c9 100644
--- a/content/docs/references/data/object/SearchConfig.mdx
+++ b/content/docs/references/data/object/SearchConfig.mdx
@@ -1,8 +1,18 @@
---
title: SearchConfig
description: SearchConfig Schema Reference
+category: data
+zodFile: object
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/object.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,19 @@ description: SearchConfig Schema Reference
| **fields** | `string[]` | ✅ | Fields to index for full-text search weighting |
| **displayFields** | `string[]` | optional | Fields to display in search result cards |
| **filters** | `string[]` | optional | Default filters for search results |
+
+## TypeScript Usage
+
+```typescript
+import { SearchConfigSchema } from '@objectstack/spec/data';
+import type { SearchConfig } from '@objectstack/spec/data';
+
+// Validate data
+const result = SearchConfigSchema.parse(data);
+
+// Type-safe usage
+const mySearchConfig: SearchConfig = {
+ fields: []
+};
+```
+
diff --git a/content/docs/references/data/query/AggregationFunction.mdx b/content/docs/references/data/query/AggregationFunction.mdx
index 9477b17f8..950694610 100644
--- a/content/docs/references/data/query/AggregationFunction.mdx
+++ b/content/docs/references/data/query/AggregationFunction.mdx
@@ -1,8 +1,18 @@
---
title: AggregationFunction
description: AggregationFunction Schema Reference
+category: data
+zodFile: query
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/query.zod.ts`
+
+
## Allowed Values
* `count`
@@ -12,4 +22,14 @@ description: AggregationFunction Schema Reference
* `max`
* `count_distinct`
* `array_agg`
-* `string_agg`
\ No newline at end of file
+* `string_agg`
+
+## TypeScript Usage
+
+```typescript
+import { AggregationFunction } from '@objectstack/spec/data';
+
+// Type-safe enum value
+const value: AggregationFunction = 'count';
+```
+
diff --git a/content/docs/references/data/query/AggregationNode.mdx b/content/docs/references/data/query/AggregationNode.mdx
index aa9a4d7c4..9ab3d187a 100644
--- a/content/docs/references/data/query/AggregationNode.mdx
+++ b/content/docs/references/data/query/AggregationNode.mdx
@@ -1,8 +1,18 @@
---
title: AggregationNode
description: AggregationNode Schema Reference
+category: data
+zodFile: query
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/query.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,20 @@ description: AggregationNode Schema Reference
| **alias** | `string` | ✅ | Result column alias |
| **distinct** | `boolean` | optional | Apply DISTINCT before aggregation |
| **filter** | `any` | optional | Filter/Condition to apply to the aggregation (FILTER WHERE clause) |
+
+## TypeScript Usage
+
+```typescript
+import { AggregationNodeSchema } from '@objectstack/spec/data';
+import type { AggregationNode } from '@objectstack/spec/data';
+
+// Validate data
+const result = AggregationNodeSchema.parse(data);
+
+// Type-safe usage
+const myAggregationNode: AggregationNode = {
+ function: 'count',
+ alias: 'example'
+};
+```
+
diff --git a/content/docs/references/data/query/FieldNode.mdx b/content/docs/references/data/query/FieldNode.mdx
index 7f363499b..ce12e5661 100644
--- a/content/docs/references/data/query/FieldNode.mdx
+++ b/content/docs/references/data/query/FieldNode.mdx
@@ -1,5 +1,15 @@
---
title: FieldNode
description: FieldNode Schema Reference
+category: data
+zodFile: query
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/query.zod.ts`
+
+
diff --git a/content/docs/references/data/query/JoinNode.mdx b/content/docs/references/data/query/JoinNode.mdx
index 120379e0f..10c487348 100644
--- a/content/docs/references/data/query/JoinNode.mdx
+++ b/content/docs/references/data/query/JoinNode.mdx
@@ -1,8 +1,18 @@
---
title: JoinNode
description: JoinNode Schema Reference
+category: data
+zodFile: query
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/query.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,21 @@ description: JoinNode Schema Reference
| **alias** | `string` | optional | Table alias |
| **on** | `any` | ✅ | Join condition |
| **subquery** | `object` | optional | Subquery instead of object |
+
+## TypeScript Usage
+
+```typescript
+import { JoinNodeSchema } from '@objectstack/spec/data';
+import type { JoinNode } from '@objectstack/spec/data';
+
+// Validate data
+const result = JoinNodeSchema.parse(data);
+
+// Type-safe usage
+const myJoinNode: JoinNode = {
+ type: 'inner',
+ object: 'example',
+ on: null
+};
+```
+
diff --git a/content/docs/references/data/query/JoinStrategy.mdx b/content/docs/references/data/query/JoinStrategy.mdx
index cab1eaca1..264ca4c52 100644
--- a/content/docs/references/data/query/JoinStrategy.mdx
+++ b/content/docs/references/data/query/JoinStrategy.mdx
@@ -1,11 +1,31 @@
---
title: JoinStrategy
description: JoinStrategy Schema Reference
+category: data
+zodFile: query
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/query.zod.ts`
+
+
## Allowed Values
* `auto`
* `database`
* `hash`
-* `loop`
\ No newline at end of file
+* `loop`
+
+## TypeScript Usage
+
+```typescript
+import { JoinStrategy } from '@objectstack/spec/data';
+
+// Type-safe enum value
+const value: JoinStrategy = 'auto';
+```
+
diff --git a/content/docs/references/data/query/JoinType.mdx b/content/docs/references/data/query/JoinType.mdx
index b83d28253..265975df6 100644
--- a/content/docs/references/data/query/JoinType.mdx
+++ b/content/docs/references/data/query/JoinType.mdx
@@ -1,11 +1,31 @@
---
title: JoinType
description: JoinType Schema Reference
+category: data
+zodFile: query
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/query.zod.ts`
+
+
## Allowed Values
* `inner`
* `left`
* `right`
-* `full`
\ No newline at end of file
+* `full`
+
+## TypeScript Usage
+
+```typescript
+import { JoinType } from '@objectstack/spec/data';
+
+// Type-safe enum value
+const value: JoinType = 'inner';
+```
+
diff --git a/content/docs/references/data/query/Query.mdx b/content/docs/references/data/query/Query.mdx
index 1d809d213..6d6e657d0 100644
--- a/content/docs/references/data/query/Query.mdx
+++ b/content/docs/references/data/query/Query.mdx
@@ -1,8 +1,18 @@
---
title: Query
description: Query Schema Reference
+category: data
+zodFile: query
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/query.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -20,3 +30,19 @@ description: Query Schema Reference
| **having** | `any` | optional | HAVING clause for aggregation filtering |
| **windowFunctions** | `object[]` | optional | Window functions with OVER clause |
| **distinct** | `boolean` | optional | SELECT DISTINCT flag |
+
+## TypeScript Usage
+
+```typescript
+import { QuerySchema } from '@objectstack/spec/data';
+import type { Query } from '@objectstack/spec/data';
+
+// Validate data
+const result = QuerySchema.parse(data);
+
+// Type-safe usage
+const myQuery: Query = {
+ object: 'example'
+};
+```
+
diff --git a/content/docs/references/data/query/SortNode.mdx b/content/docs/references/data/query/SortNode.mdx
index 1574f19bc..ec06497ad 100644
--- a/content/docs/references/data/query/SortNode.mdx
+++ b/content/docs/references/data/query/SortNode.mdx
@@ -1,11 +1,37 @@
---
title: SortNode
description: SortNode Schema Reference
+category: data
+zodFile: query
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/query.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **field** | `string` | ✅ | |
| **order** | `Enum<'asc' \| 'desc'>` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { SortNodeSchema } from '@objectstack/spec/data';
+import type { SortNode } from '@objectstack/spec/data';
+
+// Validate data
+const result = SortNodeSchema.parse(data);
+
+// Type-safe usage
+const mySortNode: SortNode = {
+ field: 'example'
+};
+```
+
diff --git a/content/docs/references/data/query/WindowFunction.mdx b/content/docs/references/data/query/WindowFunction.mdx
index 598d21b6b..ba826256a 100644
--- a/content/docs/references/data/query/WindowFunction.mdx
+++ b/content/docs/references/data/query/WindowFunction.mdx
@@ -1,8 +1,18 @@
---
title: WindowFunction
description: WindowFunction Schema Reference
+category: data
+zodFile: query
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/query.zod.ts`
+
+
## Allowed Values
* `row_number`
@@ -17,4 +27,14 @@ description: WindowFunction Schema Reference
* `avg`
* `count`
* `min`
-* `max`
\ No newline at end of file
+* `max`
+
+## TypeScript Usage
+
+```typescript
+import { WindowFunction } from '@objectstack/spec/data';
+
+// Type-safe enum value
+const value: WindowFunction = 'row_number';
+```
+
diff --git a/content/docs/references/data/query/WindowFunctionNode.mdx b/content/docs/references/data/query/WindowFunctionNode.mdx
index c0a9f0e9b..17ca683ec 100644
--- a/content/docs/references/data/query/WindowFunctionNode.mdx
+++ b/content/docs/references/data/query/WindowFunctionNode.mdx
@@ -1,8 +1,18 @@
---
title: WindowFunctionNode
description: WindowFunctionNode Schema Reference
+category: data
+zodFile: query
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/query.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,21 @@ description: WindowFunctionNode Schema Reference
| **field** | `string` | optional | Field to operate on (for aggregate window functions) |
| **alias** | `string` | ✅ | Result column alias |
| **over** | `object` | ✅ | Window specification (OVER clause) |
+
+## TypeScript Usage
+
+```typescript
+import { WindowFunctionNodeSchema } from '@objectstack/spec/data';
+import type { WindowFunctionNode } from '@objectstack/spec/data';
+
+// Validate data
+const result = WindowFunctionNodeSchema.parse(data);
+
+// Type-safe usage
+const myWindowFunctionNode: WindowFunctionNode = {
+ function: 'row_number',
+ alias: 'example',
+ over: {}
+};
+```
+
diff --git a/content/docs/references/data/query/WindowSpec.mdx b/content/docs/references/data/query/WindowSpec.mdx
index 0093f8533..deeed0e89 100644
--- a/content/docs/references/data/query/WindowSpec.mdx
+++ b/content/docs/references/data/query/WindowSpec.mdx
@@ -1,8 +1,18 @@
---
title: WindowSpec
description: WindowSpec Schema Reference
+category: data
+zodFile: query
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/query.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,18 @@ description: WindowSpec Schema Reference
| **partitionBy** | `string[]` | optional | PARTITION BY fields |
| **orderBy** | `object[]` | optional | ORDER BY specification |
| **frame** | `object` | optional | Window frame specification |
+
+## TypeScript Usage
+
+```typescript
+import { WindowSpecSchema } from '@objectstack/spec/data';
+import type { WindowSpec } from '@objectstack/spec/data';
+
+// Validate data
+const result = WindowSpecSchema.parse(data);
+
+// Type-safe usage
+const myWindowSpec: WindowSpec = {
+};
+```
+
diff --git a/content/docs/references/data/validation/AsyncValidation.mdx b/content/docs/references/data/validation/AsyncValidation.mdx
index 07a921950..7e9c2bc97 100644
--- a/content/docs/references/data/validation/AsyncValidation.mdx
+++ b/content/docs/references/data/validation/AsyncValidation.mdx
@@ -1,8 +1,18 @@
---
title: AsyncValidation
description: AsyncValidation Schema Reference
+category: data
+zodFile: validation
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/validation.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -24,3 +34,22 @@ description: AsyncValidation Schema Reference
| **timeout** | `number` | optional | Timeout in milliseconds |
| **debounce** | `number` | optional | Debounce delay in milliseconds |
| **params** | `Record` | optional | Additional parameters to pass to validator |
+
+## TypeScript Usage
+
+```typescript
+import { AsyncValidationSchema } from '@objectstack/spec/data';
+import type { AsyncValidation } from '@objectstack/spec/data';
+
+// Validate data
+const result = AsyncValidationSchema.parse(data);
+
+// Type-safe usage
+const myAsyncValidation: AsyncValidation = {
+ name: 'name',
+ message: 'example',
+ type: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/data/validation/ConditionalValidation.mdx b/content/docs/references/data/validation/ConditionalValidation.mdx
index 663670772..ecfae6662 100644
--- a/content/docs/references/data/validation/ConditionalValidation.mdx
+++ b/content/docs/references/data/validation/ConditionalValidation.mdx
@@ -1,8 +1,18 @@
---
title: ConditionalValidation
description: ConditionalValidation Schema Reference
+category: data
+zodFile: validation
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/validation.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -19,3 +29,22 @@ description: ConditionalValidation Schema Reference
| **when** | `string` | ✅ | Condition formula (e.g. "type = 'enterprise'") |
| **then** | `object \| object \| object \| object \| object \| object \| object \| object \| any` | ✅ | Validation rule to apply when condition is true |
| **otherwise** | `object \| object \| object \| object \| object \| object \| object \| object \| any` | optional | Validation rule to apply when condition is false |
+
+## TypeScript Usage
+
+```typescript
+import { ConditionalValidationSchema } from '@objectstack/spec/data';
+import type { ConditionalValidation } from '@objectstack/spec/data';
+
+// Validate data
+const result = ConditionalValidationSchema.parse(data);
+
+// Type-safe usage
+const myConditionalValidation: ConditionalValidation = {
+ name: 'name',
+ message: 'example',
+ type: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/data/validation/CrossFieldValidation.mdx b/content/docs/references/data/validation/CrossFieldValidation.mdx
index 9e55e2149..96aa0d715 100644
--- a/content/docs/references/data/validation/CrossFieldValidation.mdx
+++ b/content/docs/references/data/validation/CrossFieldValidation.mdx
@@ -1,8 +1,18 @@
---
title: CrossFieldValidation
description: CrossFieldValidation Schema Reference
+category: data
+zodFile: validation
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/validation.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -18,3 +28,22 @@ description: CrossFieldValidation Schema Reference
| **type** | `string` | ✅ | |
| **condition** | `string` | ✅ | Formula expression comparing fields (e.g. "end_date > start_date") |
| **fields** | `string[]` | ✅ | Fields involved in the validation |
+
+## TypeScript Usage
+
+```typescript
+import { CrossFieldValidationSchema } from '@objectstack/spec/data';
+import type { CrossFieldValidation } from '@objectstack/spec/data';
+
+// Validate data
+const result = CrossFieldValidationSchema.parse(data);
+
+// Type-safe usage
+const myCrossFieldValidation: CrossFieldValidation = {
+ name: 'name',
+ message: 'example',
+ type: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/data/validation/CustomValidator.mdx b/content/docs/references/data/validation/CustomValidator.mdx
index b373f0a9e..3dc821d12 100644
--- a/content/docs/references/data/validation/CustomValidator.mdx
+++ b/content/docs/references/data/validation/CustomValidator.mdx
@@ -1,8 +1,18 @@
---
title: CustomValidator
description: CustomValidator Schema Reference
+category: data
+zodFile: validation
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/validation.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -18,3 +28,22 @@ description: CustomValidator Schema Reference
| **type** | `string` | ✅ | |
| **handler** | `string` | ✅ | Name of the custom validation function registered in the system |
| **params** | `Record` | optional | Parameters passed to the custom handler |
+
+## TypeScript Usage
+
+```typescript
+import { CustomValidatorSchema } from '@objectstack/spec/data';
+import type { CustomValidator } from '@objectstack/spec/data';
+
+// Validate data
+const result = CustomValidatorSchema.parse(data);
+
+// Type-safe usage
+const myCustomValidator: CustomValidator = {
+ name: 'name',
+ message: 'example',
+ type: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/data/validation/FormatValidation.mdx b/content/docs/references/data/validation/FormatValidation.mdx
index 2cb09badc..59634283c 100644
--- a/content/docs/references/data/validation/FormatValidation.mdx
+++ b/content/docs/references/data/validation/FormatValidation.mdx
@@ -1,8 +1,18 @@
---
title: FormatValidation
description: FormatValidation Schema Reference
+category: data
+zodFile: validation
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/validation.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -19,3 +29,22 @@ description: FormatValidation Schema Reference
| **field** | `string` | ✅ | |
| **regex** | `string` | optional | |
| **format** | `Enum<'email' \| 'url' \| 'phone' \| 'json'>` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { FormatValidationSchema } from '@objectstack/spec/data';
+import type { FormatValidation } from '@objectstack/spec/data';
+
+// Validate data
+const result = FormatValidationSchema.parse(data);
+
+// Type-safe usage
+const myFormatValidation: FormatValidation = {
+ name: 'name',
+ message: 'example',
+ type: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/data/validation/JSONValidation.mdx b/content/docs/references/data/validation/JSONValidation.mdx
index e8d3ce100..b09b93df6 100644
--- a/content/docs/references/data/validation/JSONValidation.mdx
+++ b/content/docs/references/data/validation/JSONValidation.mdx
@@ -1,8 +1,18 @@
---
title: JSONValidation
description: JSONValidation Schema Reference
+category: data
+zodFile: validation
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/validation.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -18,3 +28,22 @@ description: JSONValidation Schema Reference
| **type** | `string` | ✅ | |
| **field** | `string` | ✅ | JSON field to validate |
| **schema** | `Record` | ✅ | JSON Schema object definition |
+
+## TypeScript Usage
+
+```typescript
+import { JSONValidationSchema } from '@objectstack/spec/data';
+import type { JSONValidation } from '@objectstack/spec/data';
+
+// Validate data
+const result = JSONValidationSchema.parse(data);
+
+// Type-safe usage
+const myJSONValidation: JSONValidation = {
+ name: 'name',
+ message: 'example',
+ type: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/data/validation/ScriptValidation.mdx b/content/docs/references/data/validation/ScriptValidation.mdx
index 8331642bb..f3d3541ae 100644
--- a/content/docs/references/data/validation/ScriptValidation.mdx
+++ b/content/docs/references/data/validation/ScriptValidation.mdx
@@ -1,8 +1,18 @@
---
title: ScriptValidation
description: ScriptValidation Schema Reference
+category: data
+zodFile: validation
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/validation.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -17,3 +27,22 @@ description: ScriptValidation Schema Reference
| **message** | `string` | ✅ | Error message to display to the user |
| **type** | `string` | ✅ | |
| **condition** | `string` | ✅ | Formula expression. If TRUE, validation fails. (e.g. amount < 0) |
+
+## TypeScript Usage
+
+```typescript
+import { ScriptValidationSchema } from '@objectstack/spec/data';
+import type { ScriptValidation } from '@objectstack/spec/data';
+
+// Validate data
+const result = ScriptValidationSchema.parse(data);
+
+// Type-safe usage
+const myScriptValidation: ScriptValidation = {
+ name: 'name',
+ message: 'example',
+ type: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/data/validation/StateMachineValidation.mdx b/content/docs/references/data/validation/StateMachineValidation.mdx
index c5e6c835f..c95f941b9 100644
--- a/content/docs/references/data/validation/StateMachineValidation.mdx
+++ b/content/docs/references/data/validation/StateMachineValidation.mdx
@@ -1,8 +1,18 @@
---
title: StateMachineValidation
description: StateMachineValidation Schema Reference
+category: data
+zodFile: validation
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/validation.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -18,3 +28,22 @@ description: StateMachineValidation Schema Reference
| **type** | `string` | ✅ | |
| **field** | `string` | ✅ | State field (e.g. status) |
| **transitions** | `Record` | ✅ | Map of `{ OldState: [AllowedNewStates] }` |
+
+## TypeScript Usage
+
+```typescript
+import { StateMachineValidationSchema } from '@objectstack/spec/data';
+import type { StateMachineValidation } from '@objectstack/spec/data';
+
+// Validate data
+const result = StateMachineValidationSchema.parse(data);
+
+// Type-safe usage
+const myStateMachineValidation: StateMachineValidation = {
+ name: 'name',
+ message: 'example',
+ type: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/data/validation/UniquenessValidation.mdx b/content/docs/references/data/validation/UniquenessValidation.mdx
index 4c5f80c7c..da9f3d34d 100644
--- a/content/docs/references/data/validation/UniquenessValidation.mdx
+++ b/content/docs/references/data/validation/UniquenessValidation.mdx
@@ -1,8 +1,18 @@
---
title: UniquenessValidation
description: UniquenessValidation Schema Reference
+category: data
+zodFile: validation
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/validation.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -19,3 +29,22 @@ description: UniquenessValidation Schema Reference
| **fields** | `string[]` | ✅ | Fields that must be combined unique |
| **scope** | `string` | optional | Formula condition for scope (e.g. active = true) |
| **caseSensitive** | `boolean` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { UniquenessValidationSchema } from '@objectstack/spec/data';
+import type { UniquenessValidation } from '@objectstack/spec/data';
+
+// Validate data
+const result = UniquenessValidationSchema.parse(data);
+
+// Type-safe usage
+const myUniquenessValidation: UniquenessValidation = {
+ name: 'name',
+ message: 'example',
+ type: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/data/validation/ValidationRule.mdx b/content/docs/references/data/validation/ValidationRule.mdx
index 8acc0ff10..d200d58e3 100644
--- a/content/docs/references/data/validation/ValidationRule.mdx
+++ b/content/docs/references/data/validation/ValidationRule.mdx
@@ -1,5 +1,15 @@
---
title: ValidationRule
description: ValidationRule Schema Reference
+category: data
+zodFile: validation
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/data/validation.zod.ts`
+
+
diff --git a/content/docs/references/hub/composer/BillOfMaterials.mdx b/content/docs/references/hub/composer/BillOfMaterials.mdx
index dc046e80b..f647f02b6 100644
--- a/content/docs/references/hub/composer/BillOfMaterials.mdx
+++ b/content/docs/references/hub/composer/BillOfMaterials.mdx
@@ -1,8 +1,18 @@
---
title: BillOfMaterials
description: BillOfMaterials Schema Reference
+category: hub
+zodFile: composer
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/hub/composer.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,20 @@ description: BillOfMaterials Schema Reference
| **dependencies** | `object[]` | ✅ | Installed packages |
| **environment** | `Record` | optional | |
| **resolutionStrategy** | `Enum<'strict' \| 'override' \| 'merge'>` | optional | Conflict resolution strategy (strict=fail, override=last-wins, merge=deep-merge) |
+
+## TypeScript Usage
+
+```typescript
+import { BillOfMaterialsSchema } from '@objectstack/spec/hub';
+import type { BillOfMaterials } from '@objectstack/spec/hub';
+
+// Validate data
+const result = BillOfMaterialsSchema.parse(data);
+
+// Type-safe usage
+const myBillOfMaterials: BillOfMaterials = {
+ tenantId: 'example',
+ dependencies: []
+};
+```
+
diff --git a/content/docs/references/hub/composer/ComposerRequest.mdx b/content/docs/references/hub/composer/ComposerRequest.mdx
index f69a711bf..94f4a4890 100644
--- a/content/docs/references/hub/composer/ComposerRequest.mdx
+++ b/content/docs/references/hub/composer/ComposerRequest.mdx
@@ -1,8 +1,18 @@
---
title: ComposerRequest
description: ComposerRequest Schema Reference
+category: hub
+zodFile: composer
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/hub/composer.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,19 @@ description: ComposerRequest Schema Reference
| **bom** | `object` | ✅ | |
| **runtimeVersion** | `string` | optional | |
| **dryRun** | `boolean` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { ComposerRequestSchema } from '@objectstack/spec/hub';
+import type { ComposerRequest } from '@objectstack/spec/hub';
+
+// Validate data
+const result = ComposerRequestSchema.parse(data);
+
+// Type-safe usage
+const myComposerRequest: ComposerRequest = {
+ bom: {}
+};
+```
+
diff --git a/content/docs/references/hub/composer/ComposerResponse.mdx b/content/docs/references/hub/composer/ComposerResponse.mdx
index 97d4b5ed9..c61bba161 100644
--- a/content/docs/references/hub/composer/ComposerResponse.mdx
+++ b/content/docs/references/hub/composer/ComposerResponse.mdx
@@ -1,8 +1,18 @@
---
title: ComposerResponse
description: ComposerResponse Schema Reference
+category: hub
+zodFile: composer
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/hub/composer.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -15,3 +25,22 @@ description: ComposerResponse Schema Reference
| **duration** | `number` | ✅ | Compilation time in ms |
| **conflicts** | `object[]` | optional | |
| **errors** | `string[]` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { ComposerResponseSchema } from '@objectstack/spec/hub';
+import type { ComposerResponse } from '@objectstack/spec/hub';
+
+// Validate data
+const result = ComposerResponseSchema.parse(data);
+
+// Type-safe usage
+const myComposerResponse: ComposerResponse = {
+ success: false,
+ buildId: 'example',
+ timestamp: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/hub/composer/ConflictReport.mdx b/content/docs/references/hub/composer/ConflictReport.mdx
index 8f9f89c24..96a96afb6 100644
--- a/content/docs/references/hub/composer/ConflictReport.mdx
+++ b/content/docs/references/hub/composer/ConflictReport.mdx
@@ -1,8 +1,18 @@
---
title: ConflictReport
description: ConflictReport Schema Reference
+category: hub
+zodFile: composer
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/hub/composer.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,22 @@ description: ConflictReport Schema Reference
| **sources** | `string[]` | ✅ | List of plugin IDs defining this resource |
| **resolution** | `string` | ✅ | How it was resolved (e.g. "com.example.erp won") |
| **severity** | `Enum<'info' \| 'warning' \| 'error'>` | ✅ | Severity of the conflict |
+
+## TypeScript Usage
+
+```typescript
+import { ConflictReportSchema } from '@objectstack/spec/hub';
+import type { ConflictReport } from '@objectstack/spec/hub';
+
+// Validate data
+const result = ConflictReportSchema.parse(data);
+
+// Type-safe usage
+const myConflictReport: ConflictReport = {
+ resourceType: 'object',
+ resourceId: 'example',
+ sources: [],
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/hub/composer/DependencyRequirement.mdx b/content/docs/references/hub/composer/DependencyRequirement.mdx
index e47f0a732..2d6bac497 100644
--- a/content/docs/references/hub/composer/DependencyRequirement.mdx
+++ b/content/docs/references/hub/composer/DependencyRequirement.mdx
@@ -1,8 +1,18 @@
---
title: DependencyRequirement
description: DependencyRequirement Schema Reference
+category: hub
+zodFile: composer
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/hub/composer.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,19 @@ description: DependencyRequirement Schema Reference
| **version** | `string` | optional | SemVer range or "latest" |
| **configuration** | `Record` | optional | Configuration overrides |
| **features** | `Record` | optional | Feature toggles |
+
+## TypeScript Usage
+
+```typescript
+import { DependencyRequirementSchema } from '@objectstack/spec/hub';
+import type { DependencyRequirement } from '@objectstack/spec/hub';
+
+// Validate data
+const result = DependencyRequirementSchema.parse(data);
+
+// Type-safe usage
+const myDependencyRequirement: DependencyRequirement = {
+ id: 'example'
+};
+```
+
diff --git a/content/docs/references/hub/index.mdx b/content/docs/references/hub/index.mdx
new file mode 100644
index 000000000..94b116d79
--- /dev/null
+++ b/content/docs/references/hub/index.mdx
@@ -0,0 +1,71 @@
+---
+title: Hub Protocol Overview
+description: Complete reference for all hub protocol schemas
+---
+
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Database, Cpu, Zap } from 'lucide-react';
+
+# Hub Protocol
+
+This section contains all protocol schemas for the hub layer of ObjectStack.
+
+## Composer
+
+Source: `packages/spec/src/hub/composer.zod.ts`
+
+
+
+
+
+
+
+
+
+## License
+
+Source: `packages/spec/src/hub/license.zod.ts`
+
+
+
+
+
+
+
+
+## Marketplace
+
+Source: `packages/spec/src/hub/marketplace.zod.ts`
+
+
+
+
+
+
+
+## Space
+
+Source: `packages/spec/src/hub/space.zod.ts`
+
+
+
+
+
+
+
+
+## Tenant
+
+Source: `packages/spec/src/hub/tenant.zod.ts`
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/content/docs/references/hub/license/Feature.mdx b/content/docs/references/hub/license/Feature.mdx
index 3a480aa1f..0602fa690 100644
--- a/content/docs/references/hub/license/Feature.mdx
+++ b/content/docs/references/hub/license/Feature.mdx
@@ -1,8 +1,18 @@
---
title: Feature
description: Feature Schema Reference
+category: hub
+zodFile: license
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/hub/license.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,20 @@ description: Feature Schema Reference
| **type** | `Enum<'boolean' \| 'counter' \| 'gauge'>` | optional | |
| **unit** | `Enum<'count' \| 'bytes' \| 'seconds' \| 'percent'>` | optional | |
| **requires** | `string[]` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { FeatureSchema } from '@objectstack/spec/hub';
+import type { Feature } from '@objectstack/spec/hub';
+
+// Validate data
+const result = FeatureSchema.parse(data);
+
+// Type-safe usage
+const myFeature: Feature = {
+ code: 'example',
+ label: 'example'
+};
+```
+
diff --git a/content/docs/references/hub/license/License.mdx b/content/docs/references/hub/license/License.mdx
index 4b987bbaf..2cc53f4db 100644
--- a/content/docs/references/hub/license/License.mdx
+++ b/content/docs/references/hub/license/License.mdx
@@ -1,8 +1,18 @@
---
title: License
description: License Schema Reference
+category: hub
+zodFile: license
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/hub/license.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -16,3 +26,22 @@ description: License Schema Reference
| **customLimits** | `Record` | optional | |
| **plugins** | `string[]` | optional | List of enabled plugin package IDs |
| **signature** | `string` | optional | Cryptographic signature of the license |
+
+## TypeScript Usage
+
+```typescript
+import { LicenseSchema } from '@objectstack/spec/hub';
+import type { License } from '@objectstack/spec/hub';
+
+// Validate data
+const result = LicenseSchema.parse(data);
+
+// Type-safe usage
+const myLicense: License = {
+ spaceId: 'example',
+ planCode: 'example',
+ issuedAt: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/hub/license/MetricType.mdx b/content/docs/references/hub/license/MetricType.mdx
index eae9b632e..b05e0a939 100644
--- a/content/docs/references/hub/license/MetricType.mdx
+++ b/content/docs/references/hub/license/MetricType.mdx
@@ -1,10 +1,30 @@
---
title: MetricType
description: MetricType Schema Reference
+category: hub
+zodFile: license
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/hub/license.zod.ts`
+
+
## Allowed Values
* `boolean`
* `counter`
-* `gauge`
\ No newline at end of file
+* `gauge`
+
+## TypeScript Usage
+
+```typescript
+import { MetricType } from '@objectstack/spec/hub';
+
+// Type-safe enum value
+const value: MetricType = 'boolean';
+```
+
diff --git a/content/docs/references/hub/license/Plan.mdx b/content/docs/references/hub/license/Plan.mdx
index 516b7b8a2..99aab27d2 100644
--- a/content/docs/references/hub/license/Plan.mdx
+++ b/content/docs/references/hub/license/Plan.mdx
@@ -1,8 +1,18 @@
---
title: Plan
description: Plan Schema Reference
+category: hub
+zodFile: license
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/hub/license.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -15,3 +25,22 @@ description: Plan Schema Reference
| **currency** | `string` | optional | |
| **priceMonthly** | `number` | optional | |
| **priceYearly** | `number` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { PlanSchema } from '@objectstack/spec/hub';
+import type { Plan } from '@objectstack/spec/hub';
+
+// Validate data
+const result = PlanSchema.parse(data);
+
+// Type-safe usage
+const myPlan: Plan = {
+ code: 'example',
+ label: 'example',
+ features: [],
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/hub/marketplace/MarketplacePlugin.mdx b/content/docs/references/hub/marketplace/MarketplacePlugin.mdx
index a12868ca7..75ad24145 100644
--- a/content/docs/references/hub/marketplace/MarketplacePlugin.mdx
+++ b/content/docs/references/hub/marketplace/MarketplacePlugin.mdx
@@ -1,8 +1,18 @@
---
title: MarketplacePlugin
description: MarketplacePlugin Schema Reference
+category: hub
+zodFile: marketplace
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/hub/marketplace.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -24,3 +34,21 @@ description: MarketplacePlugin Schema Reference
| **rating** | `number` | optional | |
| **pricing** | `object` | optional | |
| **verified** | `boolean` | optional | Is verified maintaned by ObjectStack |
+
+## TypeScript Usage
+
+```typescript
+import { MarketplacePluginSchema } from '@objectstack/spec/hub';
+import type { MarketplacePlugin } from '@objectstack/spec/hub';
+
+// Validate data
+const result = MarketplacePluginSchema.parse(data);
+
+// Type-safe usage
+const myMarketplacePlugin: MarketplacePlugin = {
+ id: 'example',
+ label: 'example',
+ version: 'example'
+};
+```
+
diff --git a/content/docs/references/hub/marketplace/PluginAuthor.mdx b/content/docs/references/hub/marketplace/PluginAuthor.mdx
index 220bac02d..36ce0c3b6 100644
--- a/content/docs/references/hub/marketplace/PluginAuthor.mdx
+++ b/content/docs/references/hub/marketplace/PluginAuthor.mdx
@@ -1,8 +1,18 @@
---
title: PluginAuthor
description: PluginAuthor Schema Reference
+category: hub
+zodFile: marketplace
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/hub/marketplace.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,19 @@ description: PluginAuthor Schema Reference
| **name** | `string` | ✅ | |
| **email** | `string` | optional | |
| **url** | `string` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { PluginAuthorSchema } from '@objectstack/spec/hub';
+import type { PluginAuthor } from '@objectstack/spec/hub';
+
+// Validate data
+const result = PluginAuthorSchema.parse(data);
+
+// Type-safe usage
+const myPluginAuthor: PluginAuthor = {
+ name: 'name'
+};
+```
+
diff --git a/content/docs/references/hub/marketplace/PluginPricing.mdx b/content/docs/references/hub/marketplace/PluginPricing.mdx
index 91ef36b3e..79b7480bd 100644
--- a/content/docs/references/hub/marketplace/PluginPricing.mdx
+++ b/content/docs/references/hub/marketplace/PluginPricing.mdx
@@ -1,8 +1,18 @@
---
title: PluginPricing
description: PluginPricing Schema Reference
+category: hub
+zodFile: marketplace
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/hub/marketplace.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,20 @@ description: PluginPricing Schema Reference
| **amount** | `number` | ✅ | |
| **interval** | `Enum<'month' \| 'year'>` | optional | Required if type is recurring |
| **trialDays** | `integer` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { PluginPricingSchema } from '@objectstack/spec/hub';
+import type { PluginPricing } from '@objectstack/spec/hub';
+
+// Validate data
+const result = PluginPricingSchema.parse(data);
+
+// Type-safe usage
+const myPluginPricing: PluginPricing = {
+ type: 'free',
+ amount: 0
+};
+```
+
diff --git a/content/docs/references/hub/space/DeploymentTarget.mdx b/content/docs/references/hub/space/DeploymentTarget.mdx
index 34e73ef9f..e1edf1aef 100644
--- a/content/docs/references/hub/space/DeploymentTarget.mdx
+++ b/content/docs/references/hub/space/DeploymentTarget.mdx
@@ -1,8 +1,18 @@
---
title: DeploymentTarget
description: DeploymentTarget Schema Reference
+category: hub
+zodFile: space
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/hub/space.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,19 @@ description: DeploymentTarget Schema Reference
| **region** | `string` | optional | |
| **url** | `string` | optional | Public Access URL |
| **env** | `Record` | optional | Runtime Environment Variables |
+
+## TypeScript Usage
+
+```typescript
+import { DeploymentTargetSchema } from '@objectstack/spec/hub';
+import type { DeploymentTarget } from '@objectstack/spec/hub';
+
+// Validate data
+const result = DeploymentTargetSchema.parse(data);
+
+// Type-safe usage
+const myDeploymentTarget: DeploymentTarget = {
+ provider: 'vercel'
+};
+```
+
diff --git a/content/docs/references/hub/space/HubSpace.mdx b/content/docs/references/hub/space/HubSpace.mdx
index 0e789b129..70ef10471 100644
--- a/content/docs/references/hub/space/HubSpace.mdx
+++ b/content/docs/references/hub/space/HubSpace.mdx
@@ -1,8 +1,18 @@
---
title: HubSpace
description: HubSpace Schema Reference
+category: hub
+zodFile: space
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/hub/space.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -18,3 +28,22 @@ description: HubSpace Schema Reference
| **deployment** | `object` | optional | |
| **createdAt** | `string` | ✅ | |
| **updatedAt** | `string` | ✅ | |
+
+## TypeScript Usage
+
+```typescript
+import { HubSpaceSchema } from '@objectstack/spec/hub';
+import type { HubSpace } from '@objectstack/spec/hub';
+
+// Validate data
+const result = HubSpaceSchema.parse(data);
+
+// Type-safe usage
+const myHubSpace: HubSpace = {
+ id: 'example',
+ name: 'name',
+ slug: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/hub/space/SpaceSubscription.mdx b/content/docs/references/hub/space/SpaceSubscription.mdx
index 0e68c11b3..3651441d5 100644
--- a/content/docs/references/hub/space/SpaceSubscription.mdx
+++ b/content/docs/references/hub/space/SpaceSubscription.mdx
@@ -1,8 +1,18 @@
---
title: SpaceSubscription
description: SpaceSubscription Schema Reference
+category: hub
+zodFile: space
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/hub/space.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -14,3 +24,20 @@ description: SpaceSubscription Schema Reference
| **stripeSubscriptionId** | `string` | optional | |
| **addons** | `object[]` | optional | |
| **usage** | `Record` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { SpaceSubscriptionSchema } from '@objectstack/spec/hub';
+import type { SpaceSubscription } from '@objectstack/spec/hub';
+
+// Validate data
+const result = SpaceSubscriptionSchema.parse(data);
+
+// Type-safe usage
+const mySpaceSubscription: SpaceSubscription = {
+ planId: 'example',
+ status: 'active'
+};
+```
+
diff --git a/content/docs/references/hub/space/SubscriptionStatus.mdx b/content/docs/references/hub/space/SubscriptionStatus.mdx
index 8b8d01191..544fccead 100644
--- a/content/docs/references/hub/space/SubscriptionStatus.mdx
+++ b/content/docs/references/hub/space/SubscriptionStatus.mdx
@@ -1,12 +1,32 @@
---
title: SubscriptionStatus
description: SubscriptionStatus Schema Reference
+category: hub
+zodFile: space
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/hub/space.zod.ts`
+
+
## Allowed Values
* `active`
* `past_due`
* `canceled`
* `trialing`
-* `incomplete`
\ No newline at end of file
+* `incomplete`
+
+## TypeScript Usage
+
+```typescript
+import { SubscriptionStatus } from '@objectstack/spec/hub';
+
+// Type-safe enum value
+const value: SubscriptionStatus = 'active';
+```
+
diff --git a/content/docs/references/hub/tenant/DatabaseLevelIsolationStrategy.mdx b/content/docs/references/hub/tenant/DatabaseLevelIsolationStrategy.mdx
index 3e0d6ba8a..0bdcd6f20 100644
--- a/content/docs/references/hub/tenant/DatabaseLevelIsolationStrategy.mdx
+++ b/content/docs/references/hub/tenant/DatabaseLevelIsolationStrategy.mdx
@@ -1,8 +1,18 @@
---
title: DatabaseLevelIsolationStrategy
description: DatabaseLevelIsolationStrategy Schema Reference
+category: hub
+zodFile: tenant
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/hub/tenant.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,19 @@ description: DatabaseLevelIsolationStrategy Schema Reference
| **connectionPool** | `object` | optional | Connection pool configuration |
| **backup** | `object` | optional | Backup configuration |
| **encryption** | `object` | optional | Encryption configuration |
+
+## TypeScript Usage
+
+```typescript
+import { DatabaseLevelIsolationStrategySchema } from '@objectstack/spec/hub';
+import type { DatabaseLevelIsolationStrategy } from '@objectstack/spec/hub';
+
+// Validate data
+const result = DatabaseLevelIsolationStrategySchema.parse(data);
+
+// Type-safe usage
+const myDatabaseLevelIsolationStrategy: DatabaseLevelIsolationStrategy = {
+ strategy: 'example'
+};
+```
+
diff --git a/content/docs/references/hub/tenant/LevelIsolationStrategySchema.mdx b/content/docs/references/hub/tenant/LevelIsolationStrategySchema.mdx
index b7ebe9be3..52df9d720 100644
--- a/content/docs/references/hub/tenant/LevelIsolationStrategySchema.mdx
+++ b/content/docs/references/hub/tenant/LevelIsolationStrategySchema.mdx
@@ -1,8 +1,18 @@
---
title: LevelIsolationStrategySchema
description: LevelIsolationStrategySchema Schema Reference
+category: hub
+zodFile: tenant
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/hub/tenant.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,19 @@ description: LevelIsolationStrategySchema Schema Reference
| **schema** | `object` | optional | Schema configuration |
| **migrations** | `object` | optional | Migration configuration |
| **performance** | `object` | optional | Performance settings |
+
+## TypeScript Usage
+
+```typescript
+import { LevelIsolationStrategySchemaSchema } from '@objectstack/spec/hub';
+import type { LevelIsolationStrategySchema } from '@objectstack/spec/hub';
+
+// Validate data
+const result = LevelIsolationStrategySchemaSchema.parse(data);
+
+// Type-safe usage
+const myLevelIsolationStrategySchema: LevelIsolationStrategySchema = {
+ strategy: 'example'
+};
+```
+
diff --git a/content/docs/references/hub/tenant/RowLevelIsolationStrategy.mdx b/content/docs/references/hub/tenant/RowLevelIsolationStrategy.mdx
index e15a26aff..80c1f39a3 100644
--- a/content/docs/references/hub/tenant/RowLevelIsolationStrategy.mdx
+++ b/content/docs/references/hub/tenant/RowLevelIsolationStrategy.mdx
@@ -1,8 +1,18 @@
---
title: RowLevelIsolationStrategy
description: RowLevelIsolationStrategy Schema Reference
+category: hub
+zodFile: tenant
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/hub/tenant.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,19 @@ description: RowLevelIsolationStrategy Schema Reference
| **strategy** | `string` | ✅ | Row-level isolation strategy |
| **database** | `object` | optional | Database configuration |
| **performance** | `object` | optional | Performance settings |
+
+## TypeScript Usage
+
+```typescript
+import { RowLevelIsolationStrategySchema } from '@objectstack/spec/hub';
+import type { RowLevelIsolationStrategy } from '@objectstack/spec/hub';
+
+// Validate data
+const result = RowLevelIsolationStrategySchema.parse(data);
+
+// Type-safe usage
+const myRowLevelIsolationStrategy: RowLevelIsolationStrategy = {
+ strategy: 'example'
+};
+```
+
diff --git a/content/docs/references/hub/tenant/Tenant.mdx b/content/docs/references/hub/tenant/Tenant.mdx
index 63b2241a6..b8bfdeffb 100644
--- a/content/docs/references/hub/tenant/Tenant.mdx
+++ b/content/docs/references/hub/tenant/Tenant.mdx
@@ -1,8 +1,18 @@
---
title: Tenant
description: Tenant Schema Reference
+category: hub
+zodFile: tenant
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/hub/tenant.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,21 @@ description: Tenant Schema Reference
| **isolationLevel** | `Enum<'shared_schema' \| 'isolated_schema' \| 'isolated_db'>` | ✅ | |
| **customizations** | `Record` | optional | Custom configuration values |
| **quotas** | `object` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { TenantSchema } from '@objectstack/spec/hub';
+import type { Tenant } from '@objectstack/spec/hub';
+
+// Validate data
+const result = TenantSchema.parse(data);
+
+// Type-safe usage
+const myTenant: Tenant = {
+ id: 'example',
+ name: 'name',
+ isolationLevel: 'shared_schema'
+};
+```
+
diff --git a/content/docs/references/hub/tenant/TenantIsolationConfig.mdx b/content/docs/references/hub/tenant/TenantIsolationConfig.mdx
index 80a0beec7..90eefe6cc 100644
--- a/content/docs/references/hub/tenant/TenantIsolationConfig.mdx
+++ b/content/docs/references/hub/tenant/TenantIsolationConfig.mdx
@@ -1,5 +1,15 @@
---
title: TenantIsolationConfig
description: TenantIsolationConfig Schema Reference
+category: hub
+zodFile: tenant
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/hub/tenant.zod.ts`
+
+
diff --git a/content/docs/references/hub/tenant/TenantIsolationLevel.mdx b/content/docs/references/hub/tenant/TenantIsolationLevel.mdx
index 74af0d0da..f1cd1f80e 100644
--- a/content/docs/references/hub/tenant/TenantIsolationLevel.mdx
+++ b/content/docs/references/hub/tenant/TenantIsolationLevel.mdx
@@ -1,10 +1,30 @@
---
title: TenantIsolationLevel
description: TenantIsolationLevel Schema Reference
+category: hub
+zodFile: tenant
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/hub/tenant.zod.ts`
+
+
## Allowed Values
* `shared_schema`
* `isolated_schema`
-* `isolated_db`
\ No newline at end of file
+* `isolated_db`
+
+## TypeScript Usage
+
+```typescript
+import { TenantIsolationLevel } from '@objectstack/spec/hub';
+
+// Type-safe enum value
+const value: TenantIsolationLevel = 'shared_schema';
+```
+
diff --git a/content/docs/references/hub/tenant/TenantQuota.mdx b/content/docs/references/hub/tenant/TenantQuota.mdx
index f1eb79ae0..a4c19ed5c 100644
--- a/content/docs/references/hub/tenant/TenantQuota.mdx
+++ b/content/docs/references/hub/tenant/TenantQuota.mdx
@@ -1,8 +1,18 @@
---
title: TenantQuota
description: TenantQuota Schema Reference
+category: hub
+zodFile: tenant
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/hub/tenant.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,18 @@ description: TenantQuota Schema Reference
| **maxUsers** | `integer` | optional | Maximum number of users |
| **maxStorage** | `integer` | optional | Maximum storage in bytes |
| **apiRateLimit** | `integer` | optional | API requests per minute |
+
+## TypeScript Usage
+
+```typescript
+import { TenantQuotaSchema } from '@objectstack/spec/hub';
+import type { TenantQuota } from '@objectstack/spec/hub';
+
+// Validate data
+const result = TenantQuotaSchema.parse(data);
+
+// Type-safe usage
+const myTenantQuota: TenantQuota = {
+};
+```
+
diff --git a/content/docs/references/hub/tenant/TenantSecurityPolicy.mdx b/content/docs/references/hub/tenant/TenantSecurityPolicy.mdx
index 42a8fb480..992b45d4f 100644
--- a/content/docs/references/hub/tenant/TenantSecurityPolicy.mdx
+++ b/content/docs/references/hub/tenant/TenantSecurityPolicy.mdx
@@ -1,8 +1,18 @@
---
title: TenantSecurityPolicy
description: TenantSecurityPolicy Schema Reference
+category: hub
+zodFile: tenant
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/hub/tenant.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,18 @@ description: TenantSecurityPolicy Schema Reference
| **encryption** | `object` | optional | Encryption requirements |
| **accessControl** | `object` | optional | Access control requirements |
| **compliance** | `object` | optional | Compliance requirements |
+
+## TypeScript Usage
+
+```typescript
+import { TenantSecurityPolicySchema } from '@objectstack/spec/hub';
+import type { TenantSecurityPolicy } from '@objectstack/spec/hub';
+
+// Validate data
+const result = TenantSecurityPolicySchema.parse(data);
+
+// Type-safe usage
+const myTenantSecurityPolicy: TenantSecurityPolicy = {
+};
+```
+
diff --git a/content/docs/references/permission/index.mdx b/content/docs/references/permission/index.mdx
new file mode 100644
index 000000000..7891734d8
--- /dev/null
+++ b/content/docs/references/permission/index.mdx
@@ -0,0 +1,58 @@
+---
+title: Permission Protocol Overview
+description: Complete reference for all permission protocol schemas
+---
+
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Database, Cpu, Zap } from 'lucide-react';
+
+# Permission Protocol
+
+This section contains all protocol schemas for the permission layer of ObjectStack.
+
+## Permission
+
+Source: `packages/spec/src/permission/permission.zod.ts`
+
+
+
+
+
+
+
+## Rls
+
+Source: `packages/spec/src/permission/rls.zod.ts`
+
+
+
+
+
+
+
+
+
+## Sharing
+
+Source: `packages/spec/src/permission/sharing.zod.ts`
+
+
+
+
+
+
+
+
+
+
+
+## Territory
+
+Source: `packages/spec/src/permission/territory.zod.ts`
+
+
+
+
+
+
+
diff --git a/content/docs/references/permission/permission/FieldPermission.mdx b/content/docs/references/permission/permission/FieldPermission.mdx
index 61319166a..5201cd3fa 100644
--- a/content/docs/references/permission/permission/FieldPermission.mdx
+++ b/content/docs/references/permission/permission/FieldPermission.mdx
@@ -1,11 +1,36 @@
---
title: FieldPermission
description: FieldPermission Schema Reference
+category: permission
+zodFile: permission
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/permission/permission.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **readable** | `boolean` | optional | Field read access |
| **editable** | `boolean` | optional | Field edit access |
+
+## TypeScript Usage
+
+```typescript
+import { FieldPermissionSchema } from '@objectstack/spec/permission';
+import type { FieldPermission } from '@objectstack/spec/permission';
+
+// Validate data
+const result = FieldPermissionSchema.parse(data);
+
+// Type-safe usage
+const myFieldPermission: FieldPermission = {
+};
+```
+
diff --git a/content/docs/references/permission/permission/ObjectPermission.mdx b/content/docs/references/permission/permission/ObjectPermission.mdx
index 67c734862..5aa5e6993 100644
--- a/content/docs/references/permission/permission/ObjectPermission.mdx
+++ b/content/docs/references/permission/permission/ObjectPermission.mdx
@@ -1,8 +1,18 @@
---
title: ObjectPermission
description: ObjectPermission Schema Reference
+category: permission
+zodFile: permission
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/permission/permission.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -16,3 +26,18 @@ description: ObjectPermission Schema Reference
| **allowPurge** | `boolean` | optional | Permanently delete (Hard Delete/GDPR) |
| **viewAllRecords** | `boolean` | optional | View All Data (Bypass Sharing) |
| **modifyAllRecords** | `boolean` | optional | Modify All Data (Bypass Sharing) |
+
+## TypeScript Usage
+
+```typescript
+import { ObjectPermissionSchema } from '@objectstack/spec/permission';
+import type { ObjectPermission } from '@objectstack/spec/permission';
+
+// Validate data
+const result = ObjectPermissionSchema.parse(data);
+
+// Type-safe usage
+const myObjectPermission: ObjectPermission = {
+};
+```
+
diff --git a/content/docs/references/permission/permission/PermissionSet.mdx b/content/docs/references/permission/permission/PermissionSet.mdx
index 017783e11..0809c2777 100644
--- a/content/docs/references/permission/permission/PermissionSet.mdx
+++ b/content/docs/references/permission/permission/PermissionSet.mdx
@@ -1,8 +1,18 @@
---
title: PermissionSet
description: PermissionSet Schema Reference
+category: permission
+zodFile: permission
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/permission/permission.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,20 @@ description: PermissionSet Schema Reference
| **objects** | `Record` | ✅ | Entity permissions |
| **fields** | `Record` | optional | Field level security |
| **systemPermissions** | `string[]` | optional | System level capabilities |
+
+## TypeScript Usage
+
+```typescript
+import { PermissionSetSchema } from '@objectstack/spec/permission';
+import type { PermissionSet } from '@objectstack/spec/permission';
+
+// Validate data
+const result = PermissionSetSchema.parse(data);
+
+// Type-safe usage
+const myPermissionSet: PermissionSet = {
+ name: 'name',
+ objects: {}
+};
+```
+
diff --git a/content/docs/references/permission/rls/RLSConfig.mdx b/content/docs/references/permission/rls/RLSConfig.mdx
index 2c55e7906..de17b6eee 100644
--- a/content/docs/references/permission/rls/RLSConfig.mdx
+++ b/content/docs/references/permission/rls/RLSConfig.mdx
@@ -1,8 +1,18 @@
---
title: RLSConfig
description: RLSConfig Schema Reference
+category: permission
+zodFile: rls
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/permission/rls.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -15,3 +25,18 @@ description: RLSConfig Schema Reference
| **cacheResults** | `boolean` | optional | Cache RLS evaluation results |
| **cacheTtlSeconds** | `integer` | optional | Cache TTL in seconds |
| **prefetchUserContext** | `boolean` | optional | Pre-fetch user context for performance |
+
+## TypeScript Usage
+
+```typescript
+import { RLSConfigSchema } from '@objectstack/spec/permission';
+import type { RLSConfig } from '@objectstack/spec/permission';
+
+// Validate data
+const result = RLSConfigSchema.parse(data);
+
+// Type-safe usage
+const myRLSConfig: RLSConfig = {
+};
+```
+
diff --git a/content/docs/references/permission/rls/RLSEvaluationResult.mdx b/content/docs/references/permission/rls/RLSEvaluationResult.mdx
index 092fbaed1..9ec7ad694 100644
--- a/content/docs/references/permission/rls/RLSEvaluationResult.mdx
+++ b/content/docs/references/permission/rls/RLSEvaluationResult.mdx
@@ -1,8 +1,18 @@
---
title: RLSEvaluationResult
description: RLSEvaluationResult Schema Reference
+category: permission
+zodFile: rls
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/permission/rls.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,20 @@ description: RLSEvaluationResult Schema Reference
| **error** | `string` | optional | Error message if evaluation failed |
| **usingResult** | `boolean` | optional | USING clause evaluation result |
| **checkResult** | `boolean` | optional | CHECK clause evaluation result |
+
+## TypeScript Usage
+
+```typescript
+import { RLSEvaluationResultSchema } from '@objectstack/spec/permission';
+import type { RLSEvaluationResult } from '@objectstack/spec/permission';
+
+// Validate data
+const result = RLSEvaluationResultSchema.parse(data);
+
+// Type-safe usage
+const myRLSEvaluationResult: RLSEvaluationResult = {
+ policyName: 'example',
+ granted: false
+};
+```
+
diff --git a/content/docs/references/permission/rls/RLSOperation.mdx b/content/docs/references/permission/rls/RLSOperation.mdx
index 327a10285..6a27f52a4 100644
--- a/content/docs/references/permission/rls/RLSOperation.mdx
+++ b/content/docs/references/permission/rls/RLSOperation.mdx
@@ -1,12 +1,32 @@
---
title: RLSOperation
description: RLSOperation Schema Reference
+category: permission
+zodFile: rls
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/permission/rls.zod.ts`
+
+
## Allowed Values
* `select`
* `insert`
* `update`
* `delete`
-* `all`
\ No newline at end of file
+* `all`
+
+## TypeScript Usage
+
+```typescript
+import { RLSOperation } from '@objectstack/spec/permission';
+
+// Type-safe enum value
+const value: RLSOperation = 'select';
+```
+
diff --git a/content/docs/references/permission/rls/RLSUserContext.mdx b/content/docs/references/permission/rls/RLSUserContext.mdx
index 20649e6a3..318081760 100644
--- a/content/docs/references/permission/rls/RLSUserContext.mdx
+++ b/content/docs/references/permission/rls/RLSUserContext.mdx
@@ -1,8 +1,18 @@
---
title: RLSUserContext
description: RLSUserContext Schema Reference
+category: permission
+zodFile: rls
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/permission/rls.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,19 @@ description: RLSUserContext Schema Reference
| **role** | `string \| string[]` | optional | User role(s) |
| **department** | `string` | optional | User department |
| **attributes** | `Record` | optional | Additional custom user attributes |
+
+## TypeScript Usage
+
+```typescript
+import { RLSUserContextSchema } from '@objectstack/spec/permission';
+import type { RLSUserContext } from '@objectstack/spec/permission';
+
+// Validate data
+const result = RLSUserContextSchema.parse(data);
+
+// Type-safe usage
+const myRLSUserContext: RLSUserContext = {
+ id: 'example'
+};
+```
+
diff --git a/content/docs/references/permission/rls/RowLevelSecurityPolicy.mdx b/content/docs/references/permission/rls/RowLevelSecurityPolicy.mdx
index b73d798d2..cbc20f1c0 100644
--- a/content/docs/references/permission/rls/RowLevelSecurityPolicy.mdx
+++ b/content/docs/references/permission/rls/RowLevelSecurityPolicy.mdx
@@ -1,8 +1,18 @@
---
title: RowLevelSecurityPolicy
description: RowLevelSecurityPolicy Schema Reference
+category: permission
+zodFile: rls
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/permission/rls.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -18,3 +28,21 @@ description: RowLevelSecurityPolicy Schema Reference
| **enabled** | `boolean` | optional | Whether this policy is active |
| **priority** | `integer` | optional | Policy evaluation priority (higher = evaluated first) |
| **tags** | `string[]` | optional | Policy categorization tags |
+
+## TypeScript Usage
+
+```typescript
+import { RowLevelSecurityPolicySchema } from '@objectstack/spec/permission';
+import type { RowLevelSecurityPolicy } from '@objectstack/spec/permission';
+
+// Validate data
+const result = RowLevelSecurityPolicySchema.parse(data);
+
+// Type-safe usage
+const myRowLevelSecurityPolicy: RowLevelSecurityPolicy = {
+ name: 'name',
+ object: 'example',
+ operation: 'select'
+};
+```
+
diff --git a/content/docs/references/permission/sharing/CriteriaSharingRule.mdx b/content/docs/references/permission/sharing/CriteriaSharingRule.mdx
index a4374d8e9..42b48c80a 100644
--- a/content/docs/references/permission/sharing/CriteriaSharingRule.mdx
+++ b/content/docs/references/permission/sharing/CriteriaSharingRule.mdx
@@ -1,8 +1,18 @@
---
title: CriteriaSharingRule
description: CriteriaSharingRule Schema Reference
+category: permission
+zodFile: sharing
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/permission/sharing.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -16,3 +26,22 @@ description: CriteriaSharingRule Schema Reference
| **sharedWith** | `object` | ✅ | The recipient of the shared access |
| **type** | `string` | ✅ | |
| **condition** | `string` | ✅ | Formula condition (e.g. "department = 'Sales'") |
+
+## TypeScript Usage
+
+```typescript
+import { CriteriaSharingRuleSchema } from '@objectstack/spec/permission';
+import type { CriteriaSharingRule } from '@objectstack/spec/permission';
+
+// Validate data
+const result = CriteriaSharingRuleSchema.parse(data);
+
+// Type-safe usage
+const myCriteriaSharingRule: CriteriaSharingRule = {
+ name: 'name',
+ object: 'example',
+ sharedWith: {},
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/permission/sharing/OWDModel.mdx b/content/docs/references/permission/sharing/OWDModel.mdx
index a6b676c1c..7e2869fdd 100644
--- a/content/docs/references/permission/sharing/OWDModel.mdx
+++ b/content/docs/references/permission/sharing/OWDModel.mdx
@@ -1,11 +1,31 @@
---
title: OWDModel
description: OWDModel Schema Reference
+category: permission
+zodFile: sharing
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/permission/sharing.zod.ts`
+
+
## Allowed Values
* `private`
* `public_read`
* `public_read_write`
-* `controlled_by_parent`
\ No newline at end of file
+* `controlled_by_parent`
+
+## TypeScript Usage
+
+```typescript
+import { OWDModel } from '@objectstack/spec/permission';
+
+// Type-safe enum value
+const value: OWDModel = 'private';
+```
+
diff --git a/content/docs/references/permission/sharing/OwnerSharingRule.mdx b/content/docs/references/permission/sharing/OwnerSharingRule.mdx
index dd3b69b98..842c3659a 100644
--- a/content/docs/references/permission/sharing/OwnerSharingRule.mdx
+++ b/content/docs/references/permission/sharing/OwnerSharingRule.mdx
@@ -1,8 +1,18 @@
---
title: OwnerSharingRule
description: OwnerSharingRule Schema Reference
+category: permission
+zodFile: sharing
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/permission/sharing.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -16,3 +26,22 @@ description: OwnerSharingRule Schema Reference
| **sharedWith** | `object` | ✅ | The recipient of the shared access |
| **type** | `string` | ✅ | |
| **ownedBy** | `object` | ✅ | Source group/role whose records are being shared |
+
+## TypeScript Usage
+
+```typescript
+import { OwnerSharingRuleSchema } from '@objectstack/spec/permission';
+import type { OwnerSharingRule } from '@objectstack/spec/permission';
+
+// Validate data
+const result = OwnerSharingRuleSchema.parse(data);
+
+// Type-safe usage
+const myOwnerSharingRule: OwnerSharingRule = {
+ name: 'name',
+ object: 'example',
+ sharedWith: {},
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/permission/sharing/ShareRecipientType.mdx b/content/docs/references/permission/sharing/ShareRecipientType.mdx
index 3790701ce..59ee40853 100644
--- a/content/docs/references/permission/sharing/ShareRecipientType.mdx
+++ b/content/docs/references/permission/sharing/ShareRecipientType.mdx
@@ -1,12 +1,32 @@
---
title: ShareRecipientType
description: ShareRecipientType Schema Reference
+category: permission
+zodFile: sharing
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/permission/sharing.zod.ts`
+
+
## Allowed Values
* `user`
* `group`
* `role`
* `role_and_subordinates`
-* `guest`
\ No newline at end of file
+* `guest`
+
+## TypeScript Usage
+
+```typescript
+import { ShareRecipientType } from '@objectstack/spec/permission';
+
+// Type-safe enum value
+const value: ShareRecipientType = 'user';
+```
+
diff --git a/content/docs/references/permission/sharing/SharingLevel.mdx b/content/docs/references/permission/sharing/SharingLevel.mdx
index 1b013707b..fbfb0b32c 100644
--- a/content/docs/references/permission/sharing/SharingLevel.mdx
+++ b/content/docs/references/permission/sharing/SharingLevel.mdx
@@ -1,10 +1,30 @@
---
title: SharingLevel
description: SharingLevel Schema Reference
+category: permission
+zodFile: sharing
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/permission/sharing.zod.ts`
+
+
## Allowed Values
* `read`
* `edit`
-* `full`
\ No newline at end of file
+* `full`
+
+## TypeScript Usage
+
+```typescript
+import { SharingLevel } from '@objectstack/spec/permission';
+
+// Type-safe enum value
+const value: SharingLevel = 'read';
+```
+
diff --git a/content/docs/references/permission/sharing/SharingRule.mdx b/content/docs/references/permission/sharing/SharingRule.mdx
index f0223b515..48d9aaae0 100644
--- a/content/docs/references/permission/sharing/SharingRule.mdx
+++ b/content/docs/references/permission/sharing/SharingRule.mdx
@@ -1,5 +1,15 @@
---
title: SharingRule
description: SharingRule Schema Reference
+category: permission
+zodFile: sharing
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/permission/sharing.zod.ts`
+
+
diff --git a/content/docs/references/permission/sharing/SharingRuleType.mdx b/content/docs/references/permission/sharing/SharingRuleType.mdx
index df297b610..5865f5f30 100644
--- a/content/docs/references/permission/sharing/SharingRuleType.mdx
+++ b/content/docs/references/permission/sharing/SharingRuleType.mdx
@@ -1,9 +1,29 @@
---
title: SharingRuleType
description: SharingRuleType Schema Reference
+category: permission
+zodFile: sharing
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/permission/sharing.zod.ts`
+
+
## Allowed Values
* `owner`
-* `criteria`
\ No newline at end of file
+* `criteria`
+
+## TypeScript Usage
+
+```typescript
+import { SharingRuleType } from '@objectstack/spec/permission';
+
+// Type-safe enum value
+const value: SharingRuleType = 'owner';
+```
+
diff --git a/content/docs/references/permission/territory/Territory.mdx b/content/docs/references/permission/territory/Territory.mdx
index 337ea7987..7731997d2 100644
--- a/content/docs/references/permission/territory/Territory.mdx
+++ b/content/docs/references/permission/territory/Territory.mdx
@@ -1,8 +1,18 @@
---
title: Territory
description: Territory Schema Reference
+category: permission
+zodFile: territory
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/permission/territory.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -17,3 +27,21 @@ description: Territory Schema Reference
| **accountAccess** | `Enum<'read' \| 'edit'>` | optional | |
| **opportunityAccess** | `Enum<'read' \| 'edit'>` | optional | |
| **caseAccess** | `Enum<'read' \| 'edit'>` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { TerritorySchema } from '@objectstack/spec/permission';
+import type { Territory } from '@objectstack/spec/permission';
+
+// Validate data
+const result = TerritorySchema.parse(data);
+
+// Type-safe usage
+const myTerritory: Territory = {
+ name: 'name',
+ label: 'example',
+ modelId: 'example'
+};
+```
+
diff --git a/content/docs/references/permission/territory/TerritoryModel.mdx b/content/docs/references/permission/territory/TerritoryModel.mdx
index e043d74cb..5ed23dec2 100644
--- a/content/docs/references/permission/territory/TerritoryModel.mdx
+++ b/content/docs/references/permission/territory/TerritoryModel.mdx
@@ -1,8 +1,18 @@
---
title: TerritoryModel
description: TerritoryModel Schema Reference
+category: permission
+zodFile: territory
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/permission/territory.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,19 @@ description: TerritoryModel Schema Reference
| **state** | `Enum<'planning' \| 'active' \| 'archived'>` | optional | |
| **startDate** | `string` | optional | |
| **endDate** | `string` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { TerritoryModelSchema } from '@objectstack/spec/permission';
+import type { TerritoryModel } from '@objectstack/spec/permission';
+
+// Validate data
+const result = TerritoryModelSchema.parse(data);
+
+// Type-safe usage
+const myTerritoryModel: TerritoryModel = {
+ name: 'name'
+};
+```
+
diff --git a/content/docs/references/permission/territory/TerritoryType.mdx b/content/docs/references/permission/territory/TerritoryType.mdx
index d43de23a5..cb5e3a4aa 100644
--- a/content/docs/references/permission/territory/TerritoryType.mdx
+++ b/content/docs/references/permission/territory/TerritoryType.mdx
@@ -1,11 +1,31 @@
---
title: TerritoryType
description: TerritoryType Schema Reference
+category: permission
+zodFile: territory
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/permission/territory.zod.ts`
+
+
## Allowed Values
* `geography`
* `industry`
* `named_account`
-* `product_line`
\ No newline at end of file
+* `product_line`
+
+## TypeScript Usage
+
+```typescript
+import { TerritoryType } from '@objectstack/spec/permission';
+
+// Type-safe enum value
+const value: TerritoryType = 'geography';
+```
+
diff --git a/content/docs/references/shared/identifiers/EventName.mdx b/content/docs/references/shared/identifiers/EventName.mdx
index 0f20dc682..c7cd5ad14 100644
--- a/content/docs/references/shared/identifiers/EventName.mdx
+++ b/content/docs/references/shared/identifiers/EventName.mdx
@@ -1,7 +1,17 @@
---
title: EventName
description: Event name (lowercase with dot notation for namespacing)
+category: shared
+zodFile: identifiers
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
Event name (lowercase with dot notation for namespacing)
+
+**Source:** `packages/spec/src/shared/identifiers.zod.ts`
+
+
diff --git a/content/docs/references/shared/identifiers/SnakeCaseIdentifier.mdx b/content/docs/references/shared/identifiers/SnakeCaseIdentifier.mdx
index 1b964ecf9..af36a8320 100644
--- a/content/docs/references/shared/identifiers/SnakeCaseIdentifier.mdx
+++ b/content/docs/references/shared/identifiers/SnakeCaseIdentifier.mdx
@@ -1,7 +1,17 @@
---
title: SnakeCaseIdentifier
description: Snake case identifier (lowercase with underscores only)
+category: shared
+zodFile: identifiers
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
Snake case identifier (lowercase with underscores only)
+
+**Source:** `packages/spec/src/shared/identifiers.zod.ts`
+
+
diff --git a/content/docs/references/shared/identifiers/SystemIdentifier.mdx b/content/docs/references/shared/identifiers/SystemIdentifier.mdx
index dc0ea350a..c32744e11 100644
--- a/content/docs/references/shared/identifiers/SystemIdentifier.mdx
+++ b/content/docs/references/shared/identifiers/SystemIdentifier.mdx
@@ -1,7 +1,17 @@
---
title: SystemIdentifier
description: System identifier (lowercase with underscores or dots)
+category: shared
+zodFile: identifiers
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
System identifier (lowercase with underscores or dots)
+
+**Source:** `packages/spec/src/shared/identifiers.zod.ts`
+
+
diff --git a/content/docs/references/shared/index.mdx b/content/docs/references/shared/index.mdx
new file mode 100644
index 000000000..89b76d580
--- /dev/null
+++ b/content/docs/references/shared/index.mdx
@@ -0,0 +1,22 @@
+---
+title: Shared Protocol Overview
+description: Complete reference for all shared protocol schemas
+---
+
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Database, Cpu, Zap } from 'lucide-react';
+
+# Shared Protocol
+
+This section contains all protocol schemas for the shared layer of ObjectStack.
+
+## Identifiers
+
+Source: `packages/spec/src/shared/identifiers.zod.ts`
+
+
+
+
+
+
+
diff --git a/content/docs/references/system/audit/AuditConfig.mdx b/content/docs/references/system/audit/AuditConfig.mdx
index feebef7d9..74d17bd71 100644
--- a/content/docs/references/system/audit/AuditConfig.mdx
+++ b/content/docs/references/system/audit/AuditConfig.mdx
@@ -1,8 +1,18 @@
---
title: AuditConfig
description: AuditConfig Schema Reference
+category: system
+zodFile: audit
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/audit.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -23,3 +33,21 @@ description: AuditConfig Schema Reference
| **logSystemEvents** | `boolean` | optional | Log system events |
| **customHandlers** | `object[]` | optional | Custom event handler references |
| **compliance** | `object` | optional | Compliance configuration |
+
+## TypeScript Usage
+
+```typescript
+import { AuditConfigSchema } from '@objectstack/spec/system';
+import type { AuditConfig } from '@objectstack/spec/system';
+
+// Validate data
+const result = AuditConfigSchema.parse(data);
+
+// Type-safe usage
+const myAuditConfig: AuditConfig = {
+ name: 'name',
+ label: 'example',
+ storage: {}
+};
+```
+
diff --git a/content/docs/references/system/audit/AuditEvent.mdx b/content/docs/references/system/audit/AuditEvent.mdx
index a1bc3ed39..c29db026d 100644
--- a/content/docs/references/system/audit/AuditEvent.mdx
+++ b/content/docs/references/system/audit/AuditEvent.mdx
@@ -1,8 +1,18 @@
---
title: AuditEvent
description: AuditEvent Schema Reference
+category: system
+zodFile: audit
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/audit.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -21,3 +31,22 @@ description: AuditEvent Schema Reference
| **requestId** | `string` | optional | Request ID for tracing |
| **metadata** | `Record` | optional | Additional metadata |
| **location** | `object` | optional | Geographic location |
+
+## TypeScript Usage
+
+```typescript
+import { AuditEventSchema } from '@objectstack/spec/system';
+import type { AuditEvent } from '@objectstack/spec/system';
+
+// Validate data
+const result = AuditEventSchema.parse(data);
+
+// Type-safe usage
+const myAuditEvent: AuditEvent = {
+ id: 'example',
+ eventType: 'data.create',
+ timestamp: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/system/audit/AuditEventActor.mdx b/content/docs/references/system/audit/AuditEventActor.mdx
index f59a630a4..40f3fa760 100644
--- a/content/docs/references/system/audit/AuditEventActor.mdx
+++ b/content/docs/references/system/audit/AuditEventActor.mdx
@@ -1,8 +1,18 @@
---
title: AuditEventActor
description: AuditEventActor Schema Reference
+category: system
+zodFile: audit
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/audit.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,20 @@ description: AuditEventActor Schema Reference
| **email** | `string` | optional | Actor email address |
| **ipAddress** | `string` | optional | Actor IP address |
| **userAgent** | `string` | optional | User agent string |
+
+## TypeScript Usage
+
+```typescript
+import { AuditEventActorSchema } from '@objectstack/spec/system';
+import type { AuditEventActor } from '@objectstack/spec/system';
+
+// Validate data
+const result = AuditEventActorSchema.parse(data);
+
+// Type-safe usage
+const myAuditEventActor: AuditEventActor = {
+ type: 'user',
+ id: 'example'
+};
+```
+
diff --git a/content/docs/references/system/audit/AuditEventChange.mdx b/content/docs/references/system/audit/AuditEventChange.mdx
index 9ab45b293..ec7e587c4 100644
--- a/content/docs/references/system/audit/AuditEventChange.mdx
+++ b/content/docs/references/system/audit/AuditEventChange.mdx
@@ -1,8 +1,18 @@
---
title: AuditEventChange
description: AuditEventChange Schema Reference
+category: system
+zodFile: audit
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/audit.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,19 @@ description: AuditEventChange Schema Reference
| **field** | `string` | ✅ | Changed field name |
| **oldValue** | `any` | optional | Previous value |
| **newValue** | `any` | optional | New value |
+
+## TypeScript Usage
+
+```typescript
+import { AuditEventChangeSchema } from '@objectstack/spec/system';
+import type { AuditEventChange } from '@objectstack/spec/system';
+
+// Validate data
+const result = AuditEventChangeSchema.parse(data);
+
+// Type-safe usage
+const myAuditEventChange: AuditEventChange = {
+ field: 'example'
+};
+```
+
diff --git a/content/docs/references/system/audit/AuditEventFilter.mdx b/content/docs/references/system/audit/AuditEventFilter.mdx
index 013cf44e0..c5e6fac98 100644
--- a/content/docs/references/system/audit/AuditEventFilter.mdx
+++ b/content/docs/references/system/audit/AuditEventFilter.mdx
@@ -1,8 +1,18 @@
---
title: AuditEventFilter
description: AuditEventFilter Schema Reference
+category: system
+zodFile: audit
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/audit.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -15,3 +25,18 @@ description: AuditEventFilter Schema Reference
| **result** | `Enum<'success' \| 'failure' \| 'partial'>` | optional | Result status |
| **searchQuery** | `string` | optional | Search query |
| **customFilters** | `Record` | optional | Custom filters |
+
+## TypeScript Usage
+
+```typescript
+import { AuditEventFilterSchema } from '@objectstack/spec/system';
+import type { AuditEventFilter } from '@objectstack/spec/system';
+
+// Validate data
+const result = AuditEventFilterSchema.parse(data);
+
+// Type-safe usage
+const myAuditEventFilter: AuditEventFilter = {
+};
+```
+
diff --git a/content/docs/references/system/audit/AuditEventSeverity.mdx b/content/docs/references/system/audit/AuditEventSeverity.mdx
index 41d142d29..44cdcd301 100644
--- a/content/docs/references/system/audit/AuditEventSeverity.mdx
+++ b/content/docs/references/system/audit/AuditEventSeverity.mdx
@@ -1,8 +1,18 @@
---
title: AuditEventSeverity
description: AuditEventSeverity Schema Reference
+category: system
+zodFile: audit
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/audit.zod.ts`
+
+
## Allowed Values
* `debug`
@@ -12,4 +22,14 @@ description: AuditEventSeverity Schema Reference
* `error`
* `critical`
* `alert`
-* `emergency`
\ No newline at end of file
+* `emergency`
+
+## TypeScript Usage
+
+```typescript
+import { AuditEventSeverity } from '@objectstack/spec/system';
+
+// Type-safe enum value
+const value: AuditEventSeverity = 'debug';
+```
+
diff --git a/content/docs/references/system/audit/AuditEventTarget.mdx b/content/docs/references/system/audit/AuditEventTarget.mdx
index 040747df5..8091dd09e 100644
--- a/content/docs/references/system/audit/AuditEventTarget.mdx
+++ b/content/docs/references/system/audit/AuditEventTarget.mdx
@@ -1,8 +1,18 @@
---
title: AuditEventTarget
description: AuditEventTarget Schema Reference
+category: system
+zodFile: audit
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/audit.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,20 @@ description: AuditEventTarget Schema Reference
| **id** | `string` | ✅ | Target identifier |
| **name** | `string` | optional | Target display name |
| **metadata** | `Record` | optional | Target metadata |
+
+## TypeScript Usage
+
+```typescript
+import { AuditEventTargetSchema } from '@objectstack/spec/system';
+import type { AuditEventTarget } from '@objectstack/spec/system';
+
+// Validate data
+const result = AuditEventTargetSchema.parse(data);
+
+// Type-safe usage
+const myAuditEventTarget: AuditEventTarget = {
+ type: 'example',
+ id: 'example'
+};
+```
+
diff --git a/content/docs/references/system/audit/AuditEventType.mdx b/content/docs/references/system/audit/AuditEventType.mdx
index 4f6a42351..0e9fa85f6 100644
--- a/content/docs/references/system/audit/AuditEventType.mdx
+++ b/content/docs/references/system/audit/AuditEventType.mdx
@@ -1,8 +1,18 @@
---
title: AuditEventType
description: AuditEventType Schema Reference
+category: system
+zodFile: audit
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/audit.zod.ts`
+
+
## Allowed Values
* `data.create`
@@ -46,4 +56,14 @@ description: AuditEventType Schema Reference
* `security.suspicious_activity`
* `security.data_breach`
* `security.api_key_created`
-* `security.api_key_revoked`
\ No newline at end of file
+* `security.api_key_revoked`
+
+## TypeScript Usage
+
+```typescript
+import { AuditEventType } from '@objectstack/spec/system';
+
+// Type-safe enum value
+const value: AuditEventType = 'data.create';
+```
+
diff --git a/content/docs/references/system/audit/AuditRetentionPolicy.mdx b/content/docs/references/system/audit/AuditRetentionPolicy.mdx
index fdb5c24d7..87fe3b6b2 100644
--- a/content/docs/references/system/audit/AuditRetentionPolicy.mdx
+++ b/content/docs/references/system/audit/AuditRetentionPolicy.mdx
@@ -1,8 +1,18 @@
---
title: AuditRetentionPolicy
description: AuditRetentionPolicy Schema Reference
+category: system
+zodFile: audit
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/audit.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,18 @@ description: AuditRetentionPolicy Schema Reference
| **archiveStorage** | `object` | optional | Archive storage configuration |
| **customRetention** | `Record` | optional | Custom retention by event type |
| **minimumRetentionDays** | `integer` | optional | Minimum retention for compliance |
+
+## TypeScript Usage
+
+```typescript
+import { AuditRetentionPolicySchema } from '@objectstack/spec/system';
+import type { AuditRetentionPolicy } from '@objectstack/spec/system';
+
+// Validate data
+const result = AuditRetentionPolicySchema.parse(data);
+
+// Type-safe usage
+const myAuditRetentionPolicy: AuditRetentionPolicy = {
+};
+```
+
diff --git a/content/docs/references/system/audit/AuditStorageConfig.mdx b/content/docs/references/system/audit/AuditStorageConfig.mdx
index 2938b8fb3..afa716a83 100644
--- a/content/docs/references/system/audit/AuditStorageConfig.mdx
+++ b/content/docs/references/system/audit/AuditStorageConfig.mdx
@@ -1,8 +1,18 @@
---
title: AuditStorageConfig
description: AuditStorageConfig Schema Reference
+category: system
+zodFile: audit
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/audit.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -14,3 +24,19 @@ description: AuditStorageConfig Schema Reference
| **bufferSize** | `integer` | optional | Buffer size |
| **flushIntervalSeconds** | `integer` | optional | Flush interval in seconds |
| **compression** | `boolean` | optional | Enable compression |
+
+## TypeScript Usage
+
+```typescript
+import { AuditStorageConfigSchema } from '@objectstack/spec/system';
+import type { AuditStorageConfig } from '@objectstack/spec/system';
+
+// Validate data
+const result = AuditStorageConfigSchema.parse(data);
+
+// Type-safe usage
+const myAuditStorageConfig: AuditStorageConfig = {
+ type: 'database'
+};
+```
+
diff --git a/content/docs/references/system/audit/SuspiciousActivityRule.mdx b/content/docs/references/system/audit/SuspiciousActivityRule.mdx
index 7bd718083..38706640d 100644
--- a/content/docs/references/system/audit/SuspiciousActivityRule.mdx
+++ b/content/docs/references/system/audit/SuspiciousActivityRule.mdx
@@ -1,8 +1,18 @@
---
title: SuspiciousActivityRule
description: SuspiciousActivityRule Schema Reference
+category: system
+zodFile: audit
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/audit.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -16,3 +26,22 @@ description: SuspiciousActivityRule Schema Reference
| **actions** | `Enum<'alert' \| 'lock_account' \| 'block_ip' \| 'require_mfa' \| 'log_critical' \| 'webhook'>[]` | ✅ | Actions to take |
| **alertSeverity** | `Enum<'debug' \| 'info' \| 'notice' \| 'warning' \| 'error' \| 'critical' \| 'alert' \| 'emergency'>` | optional | Alert severity |
| **notifications** | `object` | optional | Notification configuration |
+
+## TypeScript Usage
+
+```typescript
+import { SuspiciousActivityRuleSchema } from '@objectstack/spec/system';
+import type { SuspiciousActivityRule } from '@objectstack/spec/system';
+
+// Validate data
+const result = SuspiciousActivityRuleSchema.parse(data);
+
+// Type-safe usage
+const mySuspiciousActivityRule: SuspiciousActivityRule = {
+ id: 'example',
+ name: 'name',
+ eventTypes: [],
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/system/context/KernelContext.mdx b/content/docs/references/system/context/KernelContext.mdx
index 4634402d9..58365c1fe 100644
--- a/content/docs/references/system/context/KernelContext.mdx
+++ b/content/docs/references/system/context/KernelContext.mdx
@@ -1,8 +1,18 @@
---
title: KernelContext
description: KernelContext Schema Reference
+category: system
+zodFile: context
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/context.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -15,3 +25,22 @@ description: KernelContext Schema Reference
| **workspaceRoot** | `string` | optional | Workspace root if different from cwd |
| **startTime** | `integer` | ✅ | Boot timestamp (ms) |
| **features** | `Record` | optional | Global feature toggles |
+
+## TypeScript Usage
+
+```typescript
+import { KernelContextSchema } from '@objectstack/spec/system';
+import type { KernelContext } from '@objectstack/spec/system';
+
+// Validate data
+const result = KernelContextSchema.parse(data);
+
+// Type-safe usage
+const myKernelContext: KernelContext = {
+ instanceId: 'example',
+ version: 'example',
+ cwd: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/system/context/RuntimeMode.mdx b/content/docs/references/system/context/RuntimeMode.mdx
index 3bb6e9869..b9ffa16a5 100644
--- a/content/docs/references/system/context/RuntimeMode.mdx
+++ b/content/docs/references/system/context/RuntimeMode.mdx
@@ -1,13 +1,33 @@
---
title: RuntimeMode
description: Kernel operating mode
+category: system
+zodFile: context
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
Kernel operating mode
+
+**Source:** `packages/spec/src/system/context.zod.ts`
+
+
## Allowed Values
* `development`
* `production`
* `test`
-* `provisioning`
\ No newline at end of file
+* `provisioning`
+
+## TypeScript Usage
+
+```typescript
+import { RuntimeMode } from '@objectstack/spec/system';
+
+// Type-safe enum value
+const value: RuntimeMode = 'development';
+```
+
diff --git a/content/docs/references/system/datasource/Datasource.mdx b/content/docs/references/system/datasource/Datasource.mdx
index 2d406896b..59860631f 100644
--- a/content/docs/references/system/datasource/Datasource.mdx
+++ b/content/docs/references/system/datasource/Datasource.mdx
@@ -1,8 +1,18 @@
---
title: Datasource
description: Datasource Schema Reference
+category: system
+zodFile: datasource
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/datasource.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -16,3 +26,21 @@ description: Datasource Schema Reference
| **capabilities** | `object` | optional | Capability overrides |
| **description** | `string` | optional | Internal description |
| **active** | `boolean` | optional | Is datasource enabled |
+
+## TypeScript Usage
+
+```typescript
+import { DatasourceSchema } from '@objectstack/spec/system';
+import type { Datasource } from '@objectstack/spec/system';
+
+// Validate data
+const result = DatasourceSchema.parse(data);
+
+// Type-safe usage
+const myDatasource: Datasource = {
+ name: 'name',
+ driver: 'example',
+ config: {}
+};
+```
+
diff --git a/content/docs/references/system/datasource/DatasourceCapabilities.mdx b/content/docs/references/system/datasource/DatasourceCapabilities.mdx
index c1e512544..a4ab55314 100644
--- a/content/docs/references/system/datasource/DatasourceCapabilities.mdx
+++ b/content/docs/references/system/datasource/DatasourceCapabilities.mdx
@@ -1,8 +1,18 @@
---
title: DatasourceCapabilities
description: DatasourceCapabilities Schema Reference
+category: system
+zodFile: datasource
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/datasource.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -18,3 +28,18 @@ description: DatasourceCapabilities Schema Reference
| **fullTextSearch** | `boolean` | optional | |
| **readOnly** | `boolean` | optional | |
| **dynamicSchema** | `boolean` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { DatasourceCapabilitiesSchema } from '@objectstack/spec/system';
+import type { DatasourceCapabilities } from '@objectstack/spec/system';
+
+// Validate data
+const result = DatasourceCapabilitiesSchema.parse(data);
+
+// Type-safe usage
+const myDatasourceCapabilities: DatasourceCapabilities = {
+};
+```
+
diff --git a/content/docs/references/system/datasource/DriverDefinition.mdx b/content/docs/references/system/datasource/DriverDefinition.mdx
index b680f3085..d0b95dfcf 100644
--- a/content/docs/references/system/datasource/DriverDefinition.mdx
+++ b/content/docs/references/system/datasource/DriverDefinition.mdx
@@ -1,8 +1,18 @@
---
title: DriverDefinition
description: DriverDefinition Schema Reference
+category: system
+zodFile: datasource
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/datasource.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,21 @@ description: DriverDefinition Schema Reference
| **icon** | `string` | optional | |
| **configSchema** | `Record` | ✅ | JSON Schema for connection configuration |
| **capabilities** | `object` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { DriverDefinitionSchema } from '@objectstack/spec/system';
+import type { DriverDefinition } from '@objectstack/spec/system';
+
+// Validate data
+const result = DriverDefinitionSchema.parse(data);
+
+// Type-safe usage
+const myDriverDefinition: DriverDefinition = {
+ id: 'example',
+ label: 'example',
+ configSchema: {}
+};
+```
+
diff --git a/content/docs/references/system/datasource/DriverType.mdx b/content/docs/references/system/datasource/DriverType.mdx
index e896a3850..f2cff3c56 100644
--- a/content/docs/references/system/datasource/DriverType.mdx
+++ b/content/docs/references/system/datasource/DriverType.mdx
@@ -1,7 +1,17 @@
---
title: DriverType
description: Underlying driver identifier
+category: system
+zodFile: datasource
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
Underlying driver identifier
+
+**Source:** `packages/spec/src/system/datasource.zod.ts`
+
+
diff --git a/content/docs/references/system/driver/DriverCapabilities.mdx b/content/docs/references/system/driver/DriverCapabilities.mdx
index f1a95721d..91e8e5f87 100644
--- a/content/docs/references/system/driver/DriverCapabilities.mdx
+++ b/content/docs/references/system/driver/DriverCapabilities.mdx
@@ -1,8 +1,18 @@
---
title: DriverCapabilities
description: DriverCapabilities Schema Reference
+category: system
+zodFile: driver
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/driver.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -20,3 +30,22 @@ description: DriverCapabilities Schema Reference
| **arrayFields** | `boolean` | ✅ | Supports array field types |
| **vectorSearch** | `boolean` | optional | Supports vector embeddings and similarity search |
| **geoSpatial** | `boolean` | optional | Supports geospatial queries |
+
+## TypeScript Usage
+
+```typescript
+import { DriverCapabilitiesSchema } from '@objectstack/spec/system';
+import type { DriverCapabilities } from '@objectstack/spec/system';
+
+// Validate data
+const result = DriverCapabilitiesSchema.parse(data);
+
+// Type-safe usage
+const myDriverCapabilities: DriverCapabilities = {
+ transactions: false,
+ queryFilters: false,
+ queryAggregations: false,
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/system/driver/DriverInterface.mdx b/content/docs/references/system/driver/DriverInterface.mdx
index b31b9a93c..dc8951e4c 100644
--- a/content/docs/references/system/driver/DriverInterface.mdx
+++ b/content/docs/references/system/driver/DriverInterface.mdx
@@ -1,8 +1,18 @@
---
title: DriverInterface
description: DriverInterface Schema Reference
+category: system
+zodFile: driver
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/driver.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,21 @@ description: DriverInterface Schema Reference
| **name** | `string` | ✅ | Driver unique name |
| **version** | `string` | ✅ | Driver version |
| **supports** | `object` | ✅ | |
+
+## TypeScript Usage
+
+```typescript
+import { DriverInterfaceSchema } from '@objectstack/spec/system';
+import type { DriverInterface } from '@objectstack/spec/system';
+
+// Validate data
+const result = DriverInterfaceSchema.parse(data);
+
+// Type-safe usage
+const myDriverInterface: DriverInterface = {
+ name: 'name',
+ version: 'example',
+ supports: {}
+};
+```
+
diff --git a/content/docs/references/system/driver/DriverOptions.mdx b/content/docs/references/system/driver/DriverOptions.mdx
index 0f5926019..fbc423a17 100644
--- a/content/docs/references/system/driver/DriverOptions.mdx
+++ b/content/docs/references/system/driver/DriverOptions.mdx
@@ -1,8 +1,18 @@
---
title: DriverOptions
description: DriverOptions Schema Reference
+category: system
+zodFile: driver
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/driver.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,18 @@ description: DriverOptions Schema Reference
| **skipCache** | `boolean` | optional | Bypass cache |
| **traceContext** | `Record` | optional | OpenTelemetry context or request ID |
| **tenantId** | `string` | optional | Tenant Isolation identifier |
+
+## TypeScript Usage
+
+```typescript
+import { DriverOptionsSchema } from '@objectstack/spec/system';
+import type { DriverOptions } from '@objectstack/spec/system';
+
+// Validate data
+const result = DriverOptionsSchema.parse(data);
+
+// Type-safe usage
+const myDriverOptions: DriverOptions = {
+};
+```
+
diff --git a/content/docs/references/system/events/Event.mdx b/content/docs/references/system/events/Event.mdx
index 711083ea0..35a8eee62 100644
--- a/content/docs/references/system/events/Event.mdx
+++ b/content/docs/references/system/events/Event.mdx
@@ -1,8 +1,18 @@
---
title: Event
description: Event Schema Reference
+category: system
+zodFile: events
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/events.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,20 @@ description: Event Schema Reference
| **name** | `string` | ✅ | Event name (lowercase with dots, e.g., user.created, order.paid) |
| **payload** | `any` | optional | Event payload schema |
| **metadata** | `object` | ✅ | Event metadata |
+
+## TypeScript Usage
+
+```typescript
+import { EventSchema } from '@objectstack/spec/system';
+import type { Event } from '@objectstack/spec/system';
+
+// Validate data
+const result = EventSchema.parse(data);
+
+// Type-safe usage
+const myEvent: Event = {
+ name: 'name',
+ metadata: {}
+};
+```
+
diff --git a/content/docs/references/system/events/EventHandler.mdx b/content/docs/references/system/events/EventHandler.mdx
index 994cd5407..4fd2bec2e 100644
--- a/content/docs/references/system/events/EventHandler.mdx
+++ b/content/docs/references/system/events/EventHandler.mdx
@@ -1,8 +1,18 @@
---
title: EventHandler
description: EventHandler Schema Reference
+category: system
+zodFile: events
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/events.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,19 @@ description: EventHandler Schema Reference
| **eventName** | `string` | ✅ | Name of event to handle (supports wildcards like user.*) |
| **priority** | `integer` | optional | Execution priority (lower numbers execute first) |
| **async** | `boolean` | optional | Execute in background (true) or block (false) |
+
+## TypeScript Usage
+
+```typescript
+import { EventHandlerSchema } from '@objectstack/spec/system';
+import type { EventHandler } from '@objectstack/spec/system';
+
+// Validate data
+const result = EventHandlerSchema.parse(data);
+
+// Type-safe usage
+const myEventHandler: EventHandler = {
+ eventName: 'example'
+};
+```
+
diff --git a/content/docs/references/system/events/EventMetadata.mdx b/content/docs/references/system/events/EventMetadata.mdx
index 86e4254d0..a778a0305 100644
--- a/content/docs/references/system/events/EventMetadata.mdx
+++ b/content/docs/references/system/events/EventMetadata.mdx
@@ -1,8 +1,18 @@
---
title: EventMetadata
description: EventMetadata Schema Reference
+category: system
+zodFile: events
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/events.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,20 @@ description: EventMetadata Schema Reference
| **timestamp** | `string` | ✅ | ISO 8601 datetime when event was created |
| **userId** | `string` | optional | User who triggered the event |
| **tenantId** | `string` | optional | Tenant identifier for multi-tenant systems |
+
+## TypeScript Usage
+
+```typescript
+import { EventMetadataSchema } from '@objectstack/spec/system';
+import type { EventMetadata } from '@objectstack/spec/system';
+
+// Validate data
+const result = EventMetadataSchema.parse(data);
+
+// Type-safe usage
+const myEventMetadata: EventMetadata = {
+ source: 'example',
+ timestamp: 'example'
+};
+```
+
diff --git a/content/docs/references/system/events/EventPersistence.mdx b/content/docs/references/system/events/EventPersistence.mdx
index eac9960cc..f006222cd 100644
--- a/content/docs/references/system/events/EventPersistence.mdx
+++ b/content/docs/references/system/events/EventPersistence.mdx
@@ -1,11 +1,37 @@
---
title: EventPersistence
description: EventPersistence Schema Reference
+category: system
+zodFile: events
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/events.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **enabled** | `boolean` | optional | Enable event persistence |
| **retention** | `integer` | ✅ | Days to retain persisted events |
+
+## TypeScript Usage
+
+```typescript
+import { EventPersistenceSchema } from '@objectstack/spec/system';
+import type { EventPersistence } from '@objectstack/spec/system';
+
+// Validate data
+const result = EventPersistenceSchema.parse(data);
+
+// Type-safe usage
+const myEventPersistence: EventPersistence = {
+ retention: null
+};
+```
+
diff --git a/content/docs/references/system/events/EventRoute.mdx b/content/docs/references/system/events/EventRoute.mdx
index 39c417154..0b17beaef 100644
--- a/content/docs/references/system/events/EventRoute.mdx
+++ b/content/docs/references/system/events/EventRoute.mdx
@@ -1,11 +1,38 @@
---
title: EventRoute
description: EventRoute Schema Reference
+category: system
+zodFile: events
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/events.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **from** | `string` | ✅ | Source event pattern (supports wildcards, e.g., user.* or *.created) |
| **to** | `string[]` | ✅ | Target event names to route to |
+
+## TypeScript Usage
+
+```typescript
+import { EventRouteSchema } from '@objectstack/spec/system';
+import type { EventRoute } from '@objectstack/spec/system';
+
+// Validate data
+const result = EventRouteSchema.parse(data);
+
+// Type-safe usage
+const myEventRoute: EventRoute = {
+ from: 'example',
+ to: []
+};
+```
+
diff --git a/content/docs/references/system/feature/FeatureFlag.mdx b/content/docs/references/system/feature/FeatureFlag.mdx
index e19bdd598..133aeb5fa 100644
--- a/content/docs/references/system/feature/FeatureFlag.mdx
+++ b/content/docs/references/system/feature/FeatureFlag.mdx
@@ -1,8 +1,18 @@
---
title: FeatureFlag
description: FeatureFlag Schema Reference
+category: system
+zodFile: feature
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/feature.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -15,3 +25,19 @@ description: FeatureFlag Schema Reference
| **conditions** | `object` | optional | |
| **environment** | `Enum<'dev' \| 'staging' \| 'prod' \| 'all'>` | optional | Environment validity |
| **expiresAt** | `string` | optional | Feature flag expiration date |
+
+## TypeScript Usage
+
+```typescript
+import { FeatureFlagSchema } from '@objectstack/spec/system';
+import type { FeatureFlag } from '@objectstack/spec/system';
+
+// Validate data
+const result = FeatureFlagSchema.parse(data);
+
+// Type-safe usage
+const myFeatureFlag: FeatureFlag = {
+ name: 'name'
+};
+```
+
diff --git a/content/docs/references/system/feature/FeatureStrategy.mdx b/content/docs/references/system/feature/FeatureStrategy.mdx
index d69930635..d366448b0 100644
--- a/content/docs/references/system/feature/FeatureStrategy.mdx
+++ b/content/docs/references/system/feature/FeatureStrategy.mdx
@@ -1,12 +1,32 @@
---
title: FeatureStrategy
description: FeatureStrategy Schema Reference
+category: system
+zodFile: feature
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/feature.zod.ts`
+
+
## Allowed Values
* `boolean`
* `percentage`
* `user_list`
* `group`
-* `custom`
\ No newline at end of file
+* `custom`
+
+## TypeScript Usage
+
+```typescript
+import { FeatureStrategy } from '@objectstack/spec/system';
+
+// Type-safe enum value
+const value: FeatureStrategy = 'boolean';
+```
+
diff --git a/content/docs/references/system/index.mdx b/content/docs/references/system/index.mdx
new file mode 100644
index 000000000..82edbf53e
--- /dev/null
+++ b/content/docs/references/system/index.mdx
@@ -0,0 +1,153 @@
+---
+title: System Protocol Overview
+description: Complete reference for all system protocol schemas
+---
+
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Database, Cpu, Zap } from 'lucide-react';
+
+# System Protocol
+
+This section contains all protocol schemas for the system layer of ObjectStack.
+
+## Audit
+
+Source: `packages/spec/src/system/audit.zod.ts`
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Context
+
+Source: `packages/spec/src/system/context.zod.ts`
+
+
+
+
+
+
+## Datasource
+
+Source: `packages/spec/src/system/datasource.zod.ts`
+
+
+
+
+
+
+
+
+## Driver
+
+Source: `packages/spec/src/system/driver.zod.ts`
+
+
+
+
+
+
+
+## Events
+
+Source: `packages/spec/src/system/events.zod.ts`
+
+
+
+
+
+
+
+
+
+## Feature
+
+Source: `packages/spec/src/system/feature.zod.ts`
+
+
+
+
+
+
+## Job
+
+Source: `packages/spec/src/system/job.zod.ts`
+
+
+
+
+
+
+
+
+
+
+
+
+## Logger
+
+Source: `packages/spec/src/system/logger.zod.ts`
+
+
+
+
+
+
+
+
+## Manifest
+
+Source: `packages/spec/src/system/manifest.zod.ts`
+
+
+
+
+
+## Plugin
+
+Source: `packages/spec/src/system/plugin.zod.ts`
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Scoped Storage
+
+Source: `packages/spec/src/system/scoped-storage.zod.ts`
+
+
+
+
+
+
+
+
+## Translation
+
+Source: `packages/spec/src/system/translation.zod.ts`
+
+
+
+
+
+
+
diff --git a/content/docs/references/system/job/CronSchedule.mdx b/content/docs/references/system/job/CronSchedule.mdx
index 805be3270..b778f9c4b 100644
--- a/content/docs/references/system/job/CronSchedule.mdx
+++ b/content/docs/references/system/job/CronSchedule.mdx
@@ -1,8 +1,18 @@
---
title: CronSchedule
description: CronSchedule Schema Reference
+category: system
+zodFile: job
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/job.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,20 @@ description: CronSchedule Schema Reference
| **type** | `string` | ✅ | |
| **expression** | `string` | ✅ | Cron expression (e.g., "0 0 * * *" for daily at midnight) |
| **timezone** | `string` | optional | Timezone for cron execution (e.g., "America/New_York") |
+
+## TypeScript Usage
+
+```typescript
+import { CronScheduleSchema } from '@objectstack/spec/system';
+import type { CronSchedule } from '@objectstack/spec/system';
+
+// Validate data
+const result = CronScheduleSchema.parse(data);
+
+// Type-safe usage
+const myCronSchedule: CronSchedule = {
+ type: 'example',
+ expression: 'example'
+};
+```
+
diff --git a/content/docs/references/system/job/IntervalSchedule.mdx b/content/docs/references/system/job/IntervalSchedule.mdx
index e73d6f8ec..c7d769e44 100644
--- a/content/docs/references/system/job/IntervalSchedule.mdx
+++ b/content/docs/references/system/job/IntervalSchedule.mdx
@@ -1,11 +1,38 @@
---
title: IntervalSchedule
description: IntervalSchedule Schema Reference
+category: system
+zodFile: job
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/job.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **type** | `string` | ✅ | |
| **intervalMs** | `integer` | ✅ | Interval in milliseconds |
+
+## TypeScript Usage
+
+```typescript
+import { IntervalScheduleSchema } from '@objectstack/spec/system';
+import type { IntervalSchedule } from '@objectstack/spec/system';
+
+// Validate data
+const result = IntervalScheduleSchema.parse(data);
+
+// Type-safe usage
+const myIntervalSchedule: IntervalSchedule = {
+ type: 'example',
+ intervalMs: null
+};
+```
+
diff --git a/content/docs/references/system/job/Job.mdx b/content/docs/references/system/job/Job.mdx
index 43c9affe1..ef587722e 100644
--- a/content/docs/references/system/job/Job.mdx
+++ b/content/docs/references/system/job/Job.mdx
@@ -1,8 +1,18 @@
---
title: Job
description: Job Schema Reference
+category: system
+zodFile: job
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/job.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,21 @@ description: Job Schema Reference
| **retryPolicy** | `object` | optional | Retry policy configuration |
| **timeout** | `integer` | optional | Timeout in milliseconds |
| **enabled** | `boolean` | optional | Whether the job is enabled |
+
+## TypeScript Usage
+
+```typescript
+import { JobSchema } from '@objectstack/spec/system';
+import type { Job } from '@objectstack/spec/system';
+
+// Validate data
+const result = JobSchema.parse(data);
+
+// Type-safe usage
+const myJob: Job = {
+ id: 'example',
+ name: 'name',
+ schedule: null
+};
+```
+
diff --git a/content/docs/references/system/job/JobExecution.mdx b/content/docs/references/system/job/JobExecution.mdx
index e1921929c..e9c7f194d 100644
--- a/content/docs/references/system/job/JobExecution.mdx
+++ b/content/docs/references/system/job/JobExecution.mdx
@@ -1,8 +1,18 @@
---
title: JobExecution
description: JobExecution Schema Reference
+category: system
+zodFile: job
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/job.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,21 @@ description: JobExecution Schema Reference
| **status** | `Enum<'running' \| 'success' \| 'failed' \| 'timeout'>` | ✅ | Execution status |
| **error** | `string` | optional | Error message if failed |
| **duration** | `integer` | optional | Execution duration in milliseconds |
+
+## TypeScript Usage
+
+```typescript
+import { JobExecutionSchema } from '@objectstack/spec/system';
+import type { JobExecution } from '@objectstack/spec/system';
+
+// Validate data
+const result = JobExecutionSchema.parse(data);
+
+// Type-safe usage
+const myJobExecution: JobExecution = {
+ jobId: 'example',
+ startedAt: 'example',
+ status: 'running'
+};
+```
+
diff --git a/content/docs/references/system/job/JobExecutionStatus.mdx b/content/docs/references/system/job/JobExecutionStatus.mdx
index 32b3eefad..a31357782 100644
--- a/content/docs/references/system/job/JobExecutionStatus.mdx
+++ b/content/docs/references/system/job/JobExecutionStatus.mdx
@@ -1,11 +1,31 @@
---
title: JobExecutionStatus
description: JobExecutionStatus Schema Reference
+category: system
+zodFile: job
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/job.zod.ts`
+
+
## Allowed Values
* `running`
* `success`
* `failed`
-* `timeout`
\ No newline at end of file
+* `timeout`
+
+## TypeScript Usage
+
+```typescript
+import { JobExecutionStatus } from '@objectstack/spec/system';
+
+// Type-safe enum value
+const value: JobExecutionStatus = 'running';
+```
+
diff --git a/content/docs/references/system/job/OnceSchedule.mdx b/content/docs/references/system/job/OnceSchedule.mdx
index f3b49aa22..a9401e70c 100644
--- a/content/docs/references/system/job/OnceSchedule.mdx
+++ b/content/docs/references/system/job/OnceSchedule.mdx
@@ -1,11 +1,38 @@
---
title: OnceSchedule
description: OnceSchedule Schema Reference
+category: system
+zodFile: job
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/job.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **type** | `string` | ✅ | |
| **at** | `string` | ✅ | ISO 8601 datetime when to execute |
+
+## TypeScript Usage
+
+```typescript
+import { OnceScheduleSchema } from '@objectstack/spec/system';
+import type { OnceSchedule } from '@objectstack/spec/system';
+
+// Validate data
+const result = OnceScheduleSchema.parse(data);
+
+// Type-safe usage
+const myOnceSchedule: OnceSchedule = {
+ type: 'example',
+ at: 'example'
+};
+```
+
diff --git a/content/docs/references/system/job/RetryPolicy.mdx b/content/docs/references/system/job/RetryPolicy.mdx
index 5277b4dfe..5882d1f14 100644
--- a/content/docs/references/system/job/RetryPolicy.mdx
+++ b/content/docs/references/system/job/RetryPolicy.mdx
@@ -1,8 +1,18 @@
---
title: RetryPolicy
description: RetryPolicy Schema Reference
+category: system
+zodFile: job
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/job.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,18 @@ description: RetryPolicy Schema Reference
| **maxRetries** | `integer` | optional | Maximum number of retry attempts |
| **backoffMs** | `integer` | optional | Initial backoff delay in milliseconds |
| **backoffMultiplier** | `number` | optional | Multiplier for exponential backoff |
+
+## TypeScript Usage
+
+```typescript
+import { RetryPolicySchema } from '@objectstack/spec/system';
+import type { RetryPolicy } from '@objectstack/spec/system';
+
+// Validate data
+const result = RetryPolicySchema.parse(data);
+
+// Type-safe usage
+const myRetryPolicy: RetryPolicy = {
+};
+```
+
diff --git a/content/docs/references/system/job/Schedule.mdx b/content/docs/references/system/job/Schedule.mdx
index 87b18bed7..23729708b 100644
--- a/content/docs/references/system/job/Schedule.mdx
+++ b/content/docs/references/system/job/Schedule.mdx
@@ -1,5 +1,15 @@
---
title: Schedule
description: Schedule Schema Reference
+category: system
+zodFile: job
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/job.zod.ts`
+
+
diff --git a/content/docs/references/system/logger/LogEntry.mdx b/content/docs/references/system/logger/LogEntry.mdx
index 14fb533f9..8614951ee 100644
--- a/content/docs/references/system/logger/LogEntry.mdx
+++ b/content/docs/references/system/logger/LogEntry.mdx
@@ -1,8 +1,18 @@
---
title: LogEntry
description: LogEntry Schema Reference
+category: system
+zodFile: logger
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/logger.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -16,3 +26,21 @@ description: LogEntry Schema Reference
| **spanId** | `string` | optional | Span ID |
| **service** | `string` | optional | Service name |
| **component** | `string` | optional | Component name (e.g. plugin id) |
+
+## TypeScript Usage
+
+```typescript
+import { LogEntrySchema } from '@objectstack/spec/system';
+import type { LogEntry } from '@objectstack/spec/system';
+
+// Validate data
+const result = LogEntrySchema.parse(data);
+
+// Type-safe usage
+const myLogEntry: LogEntry = {
+ timestamp: 'example',
+ level: 'debug',
+ message: 'example'
+};
+```
+
diff --git a/content/docs/references/system/logger/LogFormat.mdx b/content/docs/references/system/logger/LogFormat.mdx
index 78b174802..be9ca9855 100644
--- a/content/docs/references/system/logger/LogFormat.mdx
+++ b/content/docs/references/system/logger/LogFormat.mdx
@@ -1,12 +1,32 @@
---
title: LogFormat
description: Log output format
+category: system
+zodFile: logger
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
Log output format
+
+**Source:** `packages/spec/src/system/logger.zod.ts`
+
+
## Allowed Values
* `json`
* `text`
-* `pretty`
\ No newline at end of file
+* `pretty`
+
+## TypeScript Usage
+
+```typescript
+import { LogFormat } from '@objectstack/spec/system';
+
+// Type-safe enum value
+const value: LogFormat = 'json';
+```
+
diff --git a/content/docs/references/system/logger/LogLevel.mdx b/content/docs/references/system/logger/LogLevel.mdx
index c8790054b..ca8798d9c 100644
--- a/content/docs/references/system/logger/LogLevel.mdx
+++ b/content/docs/references/system/logger/LogLevel.mdx
@@ -1,14 +1,34 @@
---
title: LogLevel
description: Log severity level
+category: system
+zodFile: logger
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
Log severity level
+
+**Source:** `packages/spec/src/system/logger.zod.ts`
+
+
## Allowed Values
* `debug`
* `info`
* `warn`
* `error`
-* `fatal`
\ No newline at end of file
+* `fatal`
+
+## TypeScript Usage
+
+```typescript
+import { LogLevel } from '@objectstack/spec/system';
+
+// Type-safe enum value
+const value: LogLevel = 'debug';
+```
+
diff --git a/content/docs/references/system/logger/LoggerConfig.mdx b/content/docs/references/system/logger/LoggerConfig.mdx
index 2a35ba499..9ee1c8c9d 100644
--- a/content/docs/references/system/logger/LoggerConfig.mdx
+++ b/content/docs/references/system/logger/LoggerConfig.mdx
@@ -1,8 +1,18 @@
---
title: LoggerConfig
description: LoggerConfig Schema Reference
+category: system
+zodFile: logger
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/logger.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,18 @@ description: LoggerConfig Schema Reference
| **sourceLocation** | `boolean` | optional | Include file and line number |
| **file** | `string` | optional | Path to log file |
| **rotation** | `object` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { LoggerConfigSchema } from '@objectstack/spec/system';
+import type { LoggerConfig } from '@objectstack/spec/system';
+
+// Validate data
+const result = LoggerConfigSchema.parse(data);
+
+// Type-safe usage
+const myLoggerConfig: LoggerConfig = {
+};
+```
+
diff --git a/content/docs/references/system/manifest/Manifest.mdx b/content/docs/references/system/manifest/Manifest.mdx
index 2d411d92f..bb2c395f0 100644
--- a/content/docs/references/system/manifest/Manifest.mdx
+++ b/content/docs/references/system/manifest/Manifest.mdx
@@ -1,8 +1,18 @@
---
title: Manifest
description: Manifest Schema Reference
+category: system
+zodFile: manifest
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/manifest.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -20,3 +30,22 @@ description: Manifest Schema Reference
| **contributes** | `object` | optional | Platform contributions |
| **data** | `object[]` | optional | Initial seed data |
| **extensions** | `Record` | optional | Extension points and contributions |
+
+## TypeScript Usage
+
+```typescript
+import { ManifestSchema } from '@objectstack/spec/system';
+import type { Manifest } from '@objectstack/spec/system';
+
+// Validate data
+const result = ManifestSchema.parse(data);
+
+// Type-safe usage
+const myManifest: Manifest = {
+ id: 'example',
+ version: 'example',
+ type: 'app',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/system/MongoConfig.mdx b/content/docs/references/system/misc/MongoConfig.mdx
similarity index 63%
rename from content/docs/references/system/MongoConfig.mdx
rename to content/docs/references/system/misc/MongoConfig.mdx
index 5698e7c21..fbc72ac80 100644
--- a/content/docs/references/system/MongoConfig.mdx
+++ b/content/docs/references/system/misc/MongoConfig.mdx
@@ -1,8 +1,18 @@
---
title: MongoConfig
description: MongoConfig Schema Reference
+category: system
+zodFile: misc
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/misc.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -21,3 +31,19 @@ description: MongoConfig Schema Reference
| **minPoolSize** | `number` | optional | Min Connection Pool Size |
| **connectTimeoutMS** | `number` | optional | Connection Timeout (ms) |
| **socketTimeoutMS** | `number` | optional | Socket Timeout (ms) |
+
+## TypeScript Usage
+
+```typescript
+import { MongoConfigSchema } from '@objectstack/spec/system';
+import type { MongoConfig } from '@objectstack/spec/system';
+
+// Validate data
+const result = MongoConfigSchema.parse(data);
+
+// Type-safe usage
+const myMongoConfig: MongoConfig = {
+ database: 'example'
+};
+```
+
diff --git a/content/docs/references/system/PostgresConfig.mdx b/content/docs/references/system/misc/PostgresConfig.mdx
similarity index 61%
rename from content/docs/references/system/PostgresConfig.mdx
rename to content/docs/references/system/misc/PostgresConfig.mdx
index 907050c71..9291490da 100644
--- a/content/docs/references/system/PostgresConfig.mdx
+++ b/content/docs/references/system/misc/PostgresConfig.mdx
@@ -1,8 +1,18 @@
---
title: PostgresConfig
description: PostgresConfig Schema Reference
+category: system
+zodFile: misc
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/misc.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -21,3 +31,19 @@ description: PostgresConfig Schema Reference
| **idleTimeoutMillis** | `number` | optional | Idle Timeout (ms) |
| **connectionTimeoutMillis** | `number` | optional | Connection Timeout (ms) |
| **statementTimeout** | `number` | optional | Statement Timeout (ms) |
+
+## TypeScript Usage
+
+```typescript
+import { PostgresConfigSchema } from '@objectstack/spec/system';
+import type { PostgresConfig } from '@objectstack/spec/system';
+
+// Validate data
+const result = PostgresConfigSchema.parse(data);
+
+// Type-safe usage
+const myPostgresConfig: PostgresConfig = {
+ database: 'example'
+};
+```
+
diff --git a/content/docs/references/system/plugin/I18nContext.mdx b/content/docs/references/system/plugin/I18nContext.mdx
index 7f03c9198..64eeeb65b 100644
--- a/content/docs/references/system/plugin/I18nContext.mdx
+++ b/content/docs/references/system/plugin/I18nContext.mdx
@@ -1,11 +1,36 @@
---
title: I18nContext
description: Internationalization Helper
+category: system
+zodFile: plugin
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
Internationalization Helper
+
+**Source:** `packages/spec/src/system/plugin.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
+
+## TypeScript Usage
+
+```typescript
+import { I18nContextSchema } from '@objectstack/spec/system';
+import type { I18nContext } from '@objectstack/spec/system';
+
+// Validate data
+const result = I18nContextSchema.parse(data);
+
+// Type-safe usage
+const myI18nContext: I18nContext = {
+};
+```
+
diff --git a/content/docs/references/system/plugin/Logger.mdx b/content/docs/references/system/plugin/Logger.mdx
index 90febc850..bcf18f8b3 100644
--- a/content/docs/references/system/plugin/Logger.mdx
+++ b/content/docs/references/system/plugin/Logger.mdx
@@ -1,10 +1,20 @@
---
title: Logger
description: Structured Logger
+category: system
+zodFile: plugin
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
Structured Logger
+
+**Source:** `packages/spec/src/system/plugin.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,18 @@ Structured Logger
| **info** | `any` | optional | (message: string, ...meta: any[]) => void |
| **warn** | `any` | optional | (message: string, ...meta: any[]) => void |
| **error** | `any` | optional | (message: string, ...meta: any[]) => void |
+
+## TypeScript Usage
+
+```typescript
+import { LoggerSchema } from '@objectstack/spec/system';
+import type { Logger } from '@objectstack/spec/system';
+
+// Validate data
+const result = LoggerSchema.parse(data);
+
+// Type-safe usage
+const myLogger: Logger = {
+};
+```
+
diff --git a/content/docs/references/system/plugin/ObjectQLClient.mdx b/content/docs/references/system/plugin/ObjectQLClient.mdx
index dddd5e862..6eb4143f8 100644
--- a/content/docs/references/system/plugin/ObjectQLClient.mdx
+++ b/content/docs/references/system/plugin/ObjectQLClient.mdx
@@ -1,11 +1,36 @@
---
title: ObjectQLClient
description: ObjectQL Data Access Client
+category: system
+zodFile: plugin
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
ObjectQL Data Access Client
+
+**Source:** `packages/spec/src/system/plugin.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
+
+## TypeScript Usage
+
+```typescript
+import { ObjectQLClientSchema } from '@objectstack/spec/system';
+import type { ObjectQLClient } from '@objectstack/spec/system';
+
+// Validate data
+const result = ObjectQLClientSchema.parse(data);
+
+// Type-safe usage
+const myObjectQLClient: ObjectQLClient = {
+};
+```
+
diff --git a/content/docs/references/system/plugin/Plugin.mdx b/content/docs/references/system/plugin/Plugin.mdx
index 00d48a3fe..d3aa58f04 100644
--- a/content/docs/references/system/plugin/Plugin.mdx
+++ b/content/docs/references/system/plugin/Plugin.mdx
@@ -1,11 +1,36 @@
---
title: Plugin
description: Plugin Schema Reference
+category: system
+zodFile: plugin
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/plugin.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **id** | `string` | optional | Plugin identifier |
| **version** | `string` | optional | Plugin version |
+
+## TypeScript Usage
+
+```typescript
+import { PluginSchema } from '@objectstack/spec/system';
+import type { Plugin } from '@objectstack/spec/system';
+
+// Validate data
+const result = PluginSchema.parse(data);
+
+// Type-safe usage
+const myPlugin: Plugin = {
+};
+```
+
diff --git a/content/docs/references/system/plugin/PluginContext.mdx b/content/docs/references/system/plugin/PluginContext.mdx
index 63eaee7c1..a3d05319f 100644
--- a/content/docs/references/system/plugin/PluginContext.mdx
+++ b/content/docs/references/system/plugin/PluginContext.mdx
@@ -1,8 +1,18 @@
---
title: PluginContext
description: PluginContext Schema Reference
+category: system
+zodFile: plugin
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/plugin.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -16,3 +26,22 @@ description: PluginContext Schema Reference
| **events** | `any` | optional | Event bus |
| **app** | `object` | ✅ | App Runtime Capabilities |
| **drivers** | `object` | ✅ | Driver Management |
+
+## TypeScript Usage
+
+```typescript
+import { PluginContextSchema } from '@objectstack/spec/system';
+import type { PluginContext } from '@objectstack/spec/system';
+
+// Validate data
+const result = PluginContextSchema.parse(data);
+
+// Type-safe usage
+const myPluginContext: PluginContext = {
+ ql: {},
+ os: {},
+ logger: {},
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/system/plugin/PluginLifecycle.mdx b/content/docs/references/system/plugin/PluginLifecycle.mdx
index 3e4cbb022..9ca46bbcd 100644
--- a/content/docs/references/system/plugin/PluginLifecycle.mdx
+++ b/content/docs/references/system/plugin/PluginLifecycle.mdx
@@ -1,9 +1,34 @@
---
title: PluginLifecycle
description: PluginLifecycle Schema Reference
+category: system
+zodFile: plugin
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/plugin.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
+
+## TypeScript Usage
+
+```typescript
+import { PluginLifecycleSchema } from '@objectstack/spec/system';
+import type { PluginLifecycle } from '@objectstack/spec/system';
+
+// Validate data
+const result = PluginLifecycleSchema.parse(data);
+
+// Type-safe usage
+const myPluginLifecycle: PluginLifecycle = {
+};
+```
+
diff --git a/content/docs/references/system/plugin/Router.mdx b/content/docs/references/system/plugin/Router.mdx
index 5960be2f8..700c2eb8f 100644
--- a/content/docs/references/system/plugin/Router.mdx
+++ b/content/docs/references/system/plugin/Router.mdx
@@ -1,11 +1,36 @@
---
title: Router
description: HTTP Router Interface
+category: system
+zodFile: plugin
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
HTTP Router Interface
+
+**Source:** `packages/spec/src/system/plugin.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
+
+## TypeScript Usage
+
+```typescript
+import { RouterSchema } from '@objectstack/spec/system';
+import type { Router } from '@objectstack/spec/system';
+
+// Validate data
+const result = RouterSchema.parse(data);
+
+// Type-safe usage
+const myRouter: Router = {
+};
+```
+
diff --git a/content/docs/references/system/plugin/Scheduler.mdx b/content/docs/references/system/plugin/Scheduler.mdx
index 60390dc1d..9ac08b156 100644
--- a/content/docs/references/system/plugin/Scheduler.mdx
+++ b/content/docs/references/system/plugin/Scheduler.mdx
@@ -1,11 +1,36 @@
---
title: Scheduler
description: Job Scheduler Interface
+category: system
+zodFile: plugin
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
Job Scheduler Interface
+
+**Source:** `packages/spec/src/system/plugin.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
+
+## TypeScript Usage
+
+```typescript
+import { SchedulerSchema } from '@objectstack/spec/system';
+import type { Scheduler } from '@objectstack/spec/system';
+
+// Validate data
+const result = SchedulerSchema.parse(data);
+
+// Type-safe usage
+const myScheduler: Scheduler = {
+};
+```
+
diff --git a/content/docs/references/system/plugin/ScopedStorage.mdx b/content/docs/references/system/plugin/ScopedStorage.mdx
index 9ec40e6c1..8c4b454ca 100644
--- a/content/docs/references/system/plugin/ScopedStorage.mdx
+++ b/content/docs/references/system/plugin/ScopedStorage.mdx
@@ -1,11 +1,36 @@
---
title: ScopedStorage
description: Plugin Scoped Data Storage (KV)
+category: system
+zodFile: plugin
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
Plugin Scoped Data Storage (KV)
+
+**Source:** `packages/spec/src/system/plugin.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
+
+## TypeScript Usage
+
+```typescript
+import { ScopedStorageSchema } from '@objectstack/spec/system';
+import type { ScopedStorage } from '@objectstack/spec/system';
+
+// Validate data
+const result = ScopedStorageSchema.parse(data);
+
+// Type-safe usage
+const myScopedStorage: ScopedStorage = {
+};
+```
+
diff --git a/content/docs/references/system/plugin/SystemAPI.mdx b/content/docs/references/system/plugin/SystemAPI.mdx
index 2ad8c9166..f4a68b1ba 100644
--- a/content/docs/references/system/plugin/SystemAPI.mdx
+++ b/content/docs/references/system/plugin/SystemAPI.mdx
@@ -1,11 +1,36 @@
---
title: SystemAPI
description: Access to System Core
+category: system
+zodFile: plugin
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
Access to System Core
+
+**Source:** `packages/spec/src/system/plugin.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
+
+## TypeScript Usage
+
+```typescript
+import { SystemAPISchema } from '@objectstack/spec/system';
+import type { SystemAPI } from '@objectstack/spec/system';
+
+// Validate data
+const result = SystemAPISchema.parse(data);
+
+// Type-safe usage
+const mySystemAPI: SystemAPI = {
+};
+```
+
diff --git a/content/docs/references/system/scoped-storage/FileMetadata.mdx b/content/docs/references/system/scoped-storage/FileMetadata.mdx
index 9a06a697b..da0074287 100644
--- a/content/docs/references/system/scoped-storage/FileMetadata.mdx
+++ b/content/docs/references/system/scoped-storage/FileMetadata.mdx
@@ -1,8 +1,18 @@
---
title: FileMetadata
description: FileMetadata Schema Reference
+category: system
+zodFile: scoped-storage
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/scoped-storage.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -14,3 +24,22 @@ description: FileMetadata Schema Reference
| **lastModified** | `string` | ✅ | |
| **created** | `string` | ✅ | |
| **etag** | `string` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { FileMetadataSchema } from '@objectstack/spec/system';
+import type { FileMetadata } from '@objectstack/spec/system';
+
+// Validate data
+const result = FileMetadataSchema.parse(data);
+
+// Type-safe usage
+const myFileMetadata: FileMetadata = {
+ path: 'example',
+ name: 'name',
+ size: null,
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/system/scoped-storage/ScopedStorageConfig.mdx b/content/docs/references/system/scoped-storage/ScopedStorageConfig.mdx
index d06945154..b96b07b8b 100644
--- a/content/docs/references/system/scoped-storage/ScopedStorageConfig.mdx
+++ b/content/docs/references/system/scoped-storage/ScopedStorageConfig.mdx
@@ -1,8 +1,18 @@
---
title: ScopedStorageConfig
description: ScopedStorageConfig Schema Reference
+category: system
+zodFile: scoped-storage
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/scoped-storage.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,20 @@ description: ScopedStorageConfig Schema Reference
| **location** | `string` | ✅ | Root path (local) or Bucket name (remote) |
| **options** | `Record` | optional | Driver specific options (region, endpoint, etc) |
| **quota** | `integer` | optional | Max size in bytes |
+
+## TypeScript Usage
+
+```typescript
+import { ScopedStorageConfigSchema } from '@objectstack/spec/system';
+import type { ScopedStorageConfig } from '@objectstack/spec/system';
+
+// Validate data
+const result = ScopedStorageConfigSchema.parse(data);
+
+// Type-safe usage
+const myScopedStorageConfig: ScopedStorageConfig = {
+ scope: 'temp',
+ location: 'example'
+};
+```
+
diff --git a/content/docs/references/system/scoped-storage/StorageAdapterType.mdx b/content/docs/references/system/scoped-storage/StorageAdapterType.mdx
index a614be9ee..49fa452ca 100644
--- a/content/docs/references/system/scoped-storage/StorageAdapterType.mdx
+++ b/content/docs/references/system/scoped-storage/StorageAdapterType.mdx
@@ -1,8 +1,18 @@
---
title: StorageAdapterType
description: StorageAdapterType Schema Reference
+category: system
+zodFile: scoped-storage
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/scoped-storage.zod.ts`
+
+
## Allowed Values
* `local`
@@ -10,4 +20,14 @@ description: StorageAdapterType Schema Reference
* `s3`
* `gcs`
* `azure`
-* `gridfs`
\ No newline at end of file
+* `gridfs`
+
+## TypeScript Usage
+
+```typescript
+import { StorageAdapterType } from '@objectstack/spec/system';
+
+// Type-safe enum value
+const value: StorageAdapterType = 'local';
+```
+
diff --git a/content/docs/references/system/scoped-storage/StorageScope.mdx b/content/docs/references/system/scoped-storage/StorageScope.mdx
index f155f1e81..b56577eaf 100644
--- a/content/docs/references/system/scoped-storage/StorageScope.mdx
+++ b/content/docs/references/system/scoped-storage/StorageScope.mdx
@@ -1,10 +1,20 @@
---
title: StorageScope
description: Generic storage scope classification
+category: system
+zodFile: scoped-storage
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
Generic storage scope classification
+
+**Source:** `packages/spec/src/system/scoped-storage.zod.ts`
+
+
## Allowed Values
* `temp`
@@ -12,4 +22,14 @@ Generic storage scope classification
* `data`
* `logs`
* `config`
-* `public`
\ No newline at end of file
+* `public`
+
+## TypeScript Usage
+
+```typescript
+import { StorageScope } from '@objectstack/spec/system';
+
+// Type-safe enum value
+const value: StorageScope = 'temp';
+```
+
diff --git a/content/docs/references/system/translation/Locale.mdx b/content/docs/references/system/translation/Locale.mdx
index a930a875d..0665d76da 100644
--- a/content/docs/references/system/translation/Locale.mdx
+++ b/content/docs/references/system/translation/Locale.mdx
@@ -1,7 +1,17 @@
---
title: Locale
description: BCP-47 Language Tag (e.g. en-US, zh-CN)
+category: system
+zodFile: translation
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
BCP-47 Language Tag (e.g. en-US, zh-CN)
+
+**Source:** `packages/spec/src/system/translation.zod.ts`
+
+
diff --git a/content/docs/references/system/translation/TranslationBundle.mdx b/content/docs/references/system/translation/TranslationBundle.mdx
index 937c54f56..ebe834faf 100644
--- a/content/docs/references/system/translation/TranslationBundle.mdx
+++ b/content/docs/references/system/translation/TranslationBundle.mdx
@@ -1,5 +1,15 @@
---
title: TranslationBundle
description: TranslationBundle Schema Reference
+category: system
+zodFile: translation
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/translation.zod.ts`
+
+
diff --git a/content/docs/references/system/translation/TranslationData.mdx b/content/docs/references/system/translation/TranslationData.mdx
index 95a354a6e..38c07ab0c 100644
--- a/content/docs/references/system/translation/TranslationData.mdx
+++ b/content/docs/references/system/translation/TranslationData.mdx
@@ -1,8 +1,18 @@
---
title: TranslationData
description: TranslationData Schema Reference
+category: system
+zodFile: translation
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/system/translation.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,18 @@ description: TranslationData Schema Reference
| **objects** | `Record` | optional | |
| **apps** | `Record` | optional | |
| **messages** | `Record` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { TranslationDataSchema } from '@objectstack/spec/system';
+import type { TranslationData } from '@objectstack/spec/system';
+
+// Validate data
+const result = TranslationDataSchema.parse(data);
+
+// Type-safe usage
+const myTranslationData: TranslationData = {
+};
+```
+
diff --git a/content/docs/references/ui/action/Action.mdx b/content/docs/references/ui/action/Action.mdx
index 6ff80d0c6..5e62ee619 100644
--- a/content/docs/references/ui/action/Action.mdx
+++ b/content/docs/references/ui/action/Action.mdx
@@ -1,8 +1,18 @@
---
title: Action
description: Action Schema Reference
+category: ui
+zodFile: action
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/action.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -21,3 +31,20 @@ description: Action Schema Reference
| **successMessage** | `string` | optional | Success message to show after execution |
| **refreshAfter** | `boolean` | optional | Refresh view after execution |
| **visible** | `string` | optional | Formula returning boolean |
+
+## TypeScript Usage
+
+```typescript
+import { ActionSchema } from '@objectstack/spec/ui';
+import type { Action } from '@objectstack/spec/ui';
+
+// Validate data
+const result = ActionSchema.parse(data);
+
+// Type-safe usage
+const myAction: Action = {
+ name: 'name',
+ label: 'example'
+};
+```
+
diff --git a/content/docs/references/ui/action/ActionParam.mdx b/content/docs/references/ui/action/ActionParam.mdx
index bc61561f3..e614ae991 100644
--- a/content/docs/references/ui/action/ActionParam.mdx
+++ b/content/docs/references/ui/action/ActionParam.mdx
@@ -1,8 +1,18 @@
---
title: ActionParam
description: ActionParam Schema Reference
+category: ui
+zodFile: action
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/action.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,21 @@ description: ActionParam Schema Reference
| **type** | `Enum<'text' \| 'textarea' \| 'email' \| 'url' \| 'phone' \| 'password' \| 'markdown' \| 'html' \| 'richtext' \| 'number' \| 'currency' \| 'percent' \| 'date' \| 'datetime' \| 'time' \| 'boolean' \| 'toggle' \| 'select' \| 'multiselect' \| 'radio' \| 'checkboxes' \| 'lookup' \| 'master_detail' \| 'tree' \| 'image' \| 'file' \| 'avatar' \| 'video' \| 'audio' \| 'formula' \| 'summary' \| 'autonumber' \| 'location' \| 'address' \| 'code' \| 'json' \| 'color' \| 'rating' \| 'slider' \| 'signature' \| 'qrcode' \| 'progress' \| 'tags' \| 'vector'>` | ✅ | |
| **required** | `boolean` | optional | |
| **options** | `object[]` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { ActionParamSchema } from '@objectstack/spec/ui';
+import type { ActionParam } from '@objectstack/spec/ui';
+
+// Validate data
+const result = ActionParamSchema.parse(data);
+
+// Type-safe usage
+const myActionParam: ActionParam = {
+ name: 'name',
+ label: 'example',
+ type: 'text'
+};
+```
+
diff --git a/content/docs/references/ui/app/App.mdx b/content/docs/references/ui/app/App.mdx
index 124d5d2a6..ab07ebdcb 100644
--- a/content/docs/references/ui/app/App.mdx
+++ b/content/docs/references/ui/app/App.mdx
@@ -1,8 +1,18 @@
---
title: App
description: App Schema Reference
+category: ui
+zodFile: app
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/app.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -20,3 +30,20 @@ description: App Schema Reference
| **requiredPermissions** | `string[]` | optional | Permissions required to access this app |
| **objects** | `any[]` | optional | Objects belonging to this app |
| **apis** | `any[]` | optional | Custom APIs belonging to this app |
+
+## TypeScript Usage
+
+```typescript
+import { AppSchema } from '@objectstack/spec/ui';
+import type { App } from '@objectstack/spec/ui';
+
+// Validate data
+const result = AppSchema.parse(data);
+
+// Type-safe usage
+const myApp: App = {
+ name: 'name',
+ label: 'example'
+};
+```
+
diff --git a/content/docs/references/ui/app/AppBranding.mdx b/content/docs/references/ui/app/AppBranding.mdx
index ff066bb0e..386f35b18 100644
--- a/content/docs/references/ui/app/AppBranding.mdx
+++ b/content/docs/references/ui/app/AppBranding.mdx
@@ -1,8 +1,18 @@
---
title: AppBranding
description: AppBranding Schema Reference
+category: ui
+zodFile: app
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/app.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,18 @@ description: AppBranding Schema Reference
| **primaryColor** | `string` | optional | Primary theme color hex code |
| **logo** | `string` | optional | Custom logo URL for this app |
| **favicon** | `string` | optional | Custom favicon URL for this app |
+
+## TypeScript Usage
+
+```typescript
+import { AppBrandingSchema } from '@objectstack/spec/ui';
+import type { AppBranding } from '@objectstack/spec/ui';
+
+// Validate data
+const result = AppBrandingSchema.parse(data);
+
+// Type-safe usage
+const myAppBranding: AppBranding = {
+};
+```
+
diff --git a/content/docs/references/ui/app/DashboardNavItem.mdx b/content/docs/references/ui/app/DashboardNavItem.mdx
index 06d8c61d4..6989613b9 100644
--- a/content/docs/references/ui/app/DashboardNavItem.mdx
+++ b/content/docs/references/ui/app/DashboardNavItem.mdx
@@ -1,8 +1,18 @@
---
title: DashboardNavItem
description: DashboardNavItem Schema Reference
+category: ui
+zodFile: app
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/app.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,22 @@ description: DashboardNavItem Schema Reference
| **visible** | `string` | optional | Visibility formula condition |
| **type** | `string` | ✅ | |
| **dashboardName** | `string` | ✅ | Target dashboard name |
+
+## TypeScript Usage
+
+```typescript
+import { DashboardNavItemSchema } from '@objectstack/spec/ui';
+import type { DashboardNavItem } from '@objectstack/spec/ui';
+
+// Validate data
+const result = DashboardNavItemSchema.parse(data);
+
+// Type-safe usage
+const myDashboardNavItem: DashboardNavItem = {
+ id: 'example',
+ label: 'example',
+ type: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ui/app/GroupNavItem.mdx b/content/docs/references/ui/app/GroupNavItem.mdx
index a336fee27..d60d1949a 100644
--- a/content/docs/references/ui/app/GroupNavItem.mdx
+++ b/content/docs/references/ui/app/GroupNavItem.mdx
@@ -1,8 +1,18 @@
---
title: GroupNavItem
description: GroupNavItem Schema Reference
+category: ui
+zodFile: app
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/app.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,21 @@ description: GroupNavItem Schema Reference
| **visible** | `string` | optional | Visibility formula condition |
| **type** | `string` | ✅ | |
| **expanded** | `boolean` | optional | Default expansion state in sidebar |
+
+## TypeScript Usage
+
+```typescript
+import { GroupNavItemSchema } from '@objectstack/spec/ui';
+import type { GroupNavItem } from '@objectstack/spec/ui';
+
+// Validate data
+const result = GroupNavItemSchema.parse(data);
+
+// Type-safe usage
+const myGroupNavItem: GroupNavItem = {
+ id: 'example',
+ label: 'example',
+ type: 'example'
+};
+```
+
diff --git a/content/docs/references/ui/app/NavigationItem.mdx b/content/docs/references/ui/app/NavigationItem.mdx
index 159d66648..50110bce1 100644
--- a/content/docs/references/ui/app/NavigationItem.mdx
+++ b/content/docs/references/ui/app/NavigationItem.mdx
@@ -1,5 +1,15 @@
---
title: NavigationItem
description: NavigationItem Schema Reference
+category: ui
+zodFile: app
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/app.zod.ts`
+
+
diff --git a/content/docs/references/ui/app/ObjectNavItem.mdx b/content/docs/references/ui/app/ObjectNavItem.mdx
index 080bed559..9a9c9441a 100644
--- a/content/docs/references/ui/app/ObjectNavItem.mdx
+++ b/content/docs/references/ui/app/ObjectNavItem.mdx
@@ -1,8 +1,18 @@
---
title: ObjectNavItem
description: ObjectNavItem Schema Reference
+category: ui
+zodFile: app
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/app.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -14,3 +24,22 @@ description: ObjectNavItem Schema Reference
| **type** | `string` | ✅ | |
| **objectName** | `string` | ✅ | Target object name |
| **viewName** | `string` | optional | Default list view to open. Defaults to "all" |
+
+## TypeScript Usage
+
+```typescript
+import { ObjectNavItemSchema } from '@objectstack/spec/ui';
+import type { ObjectNavItem } from '@objectstack/spec/ui';
+
+// Validate data
+const result = ObjectNavItemSchema.parse(data);
+
+// Type-safe usage
+const myObjectNavItem: ObjectNavItem = {
+ id: 'example',
+ label: 'example',
+ type: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ui/app/PageNavItem.mdx b/content/docs/references/ui/app/PageNavItem.mdx
index f30bf6b75..6bb454cd0 100644
--- a/content/docs/references/ui/app/PageNavItem.mdx
+++ b/content/docs/references/ui/app/PageNavItem.mdx
@@ -1,8 +1,18 @@
---
title: PageNavItem
description: PageNavItem Schema Reference
+category: ui
+zodFile: app
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/app.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -14,3 +24,22 @@ description: PageNavItem Schema Reference
| **type** | `string` | ✅ | |
| **pageName** | `string` | ✅ | Target custom page component name |
| **params** | `Record` | optional | Parameters passed to the page context |
+
+## TypeScript Usage
+
+```typescript
+import { PageNavItemSchema } from '@objectstack/spec/ui';
+import type { PageNavItem } from '@objectstack/spec/ui';
+
+// Validate data
+const result = PageNavItemSchema.parse(data);
+
+// Type-safe usage
+const myPageNavItem: PageNavItem = {
+ id: 'example',
+ label: 'example',
+ type: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ui/app/UrlNavItem.mdx b/content/docs/references/ui/app/UrlNavItem.mdx
index f25bdd153..bcc3b2b67 100644
--- a/content/docs/references/ui/app/UrlNavItem.mdx
+++ b/content/docs/references/ui/app/UrlNavItem.mdx
@@ -1,8 +1,18 @@
---
title: UrlNavItem
description: UrlNavItem Schema Reference
+category: ui
+zodFile: app
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/app.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -14,3 +24,22 @@ description: UrlNavItem Schema Reference
| **type** | `string` | ✅ | |
| **url** | `string` | ✅ | Target external URL |
| **target** | `Enum<'_self' \| '_blank'>` | optional | Link target window |
+
+## TypeScript Usage
+
+```typescript
+import { UrlNavItemSchema } from '@objectstack/spec/ui';
+import type { UrlNavItem } from '@objectstack/spec/ui';
+
+// Validate data
+const result = UrlNavItemSchema.parse(data);
+
+// Type-safe usage
+const myUrlNavItem: UrlNavItem = {
+ id: 'example',
+ label: 'example',
+ type: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ui/component/PageCardProps.mdx b/content/docs/references/ui/component/PageCardProps.mdx
index c5f453484..ac94f884d 100644
--- a/content/docs/references/ui/component/PageCardProps.mdx
+++ b/content/docs/references/ui/component/PageCardProps.mdx
@@ -1,8 +1,18 @@
---
title: PageCardProps
description: PageCardProps Schema Reference
+category: ui
+zodFile: component
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/component.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,19 @@ description: PageCardProps Schema Reference
| **bordered** | `boolean` | optional | |
| **actions** | `string[]` | optional | |
| **children** | `any[]` | ✅ | Card content |
+
+## TypeScript Usage
+
+```typescript
+import { PageCardPropsSchema } from '@objectstack/spec/ui';
+import type { PageCardProps } from '@objectstack/spec/ui';
+
+// Validate data
+const result = PageCardPropsSchema.parse(data);
+
+// Type-safe usage
+const myPageCardProps: PageCardProps = {
+ children: []
+};
+```
+
diff --git a/content/docs/references/ui/component/PageHeaderProps.mdx b/content/docs/references/ui/component/PageHeaderProps.mdx
index 9154f6895..37d33a1ac 100644
--- a/content/docs/references/ui/component/PageHeaderProps.mdx
+++ b/content/docs/references/ui/component/PageHeaderProps.mdx
@@ -1,8 +1,18 @@
---
title: PageHeaderProps
description: PageHeaderProps Schema Reference
+category: ui
+zodFile: component
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/component.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,19 @@ description: PageHeaderProps Schema Reference
| **icon** | `string` | optional | Icon name |
| **breadcrumb** | `boolean` | optional | Show breadcrumb |
| **actions** | `string[]` | optional | Action IDs to show in header |
+
+## TypeScript Usage
+
+```typescript
+import { PageHeaderPropsSchema } from '@objectstack/spec/ui';
+import type { PageHeaderProps } from '@objectstack/spec/ui';
+
+// Validate data
+const result = PageHeaderPropsSchema.parse(data);
+
+// Type-safe usage
+const myPageHeaderProps: PageHeaderProps = {
+ title: 'example'
+};
+```
+
diff --git a/content/docs/references/ui/component/PageTabsProps.mdx b/content/docs/references/ui/component/PageTabsProps.mdx
index 71f9e9207..908ff91fc 100644
--- a/content/docs/references/ui/component/PageTabsProps.mdx
+++ b/content/docs/references/ui/component/PageTabsProps.mdx
@@ -1,8 +1,18 @@
---
title: PageTabsProps
description: PageTabsProps Schema Reference
+category: ui
+zodFile: component
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/component.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,19 @@ description: PageTabsProps Schema Reference
| **type** | `Enum<'line' \| 'card' \| 'pill'>` | optional | |
| **position** | `Enum<'top' \| 'left'>` | optional | |
| **items** | `object[]` | ✅ | |
+
+## TypeScript Usage
+
+```typescript
+import { PageTabsPropsSchema } from '@objectstack/spec/ui';
+import type { PageTabsProps } from '@objectstack/spec/ui';
+
+// Validate data
+const result = PageTabsPropsSchema.parse(data);
+
+// Type-safe usage
+const myPageTabsProps: PageTabsProps = {
+ items: []
+};
+```
+
diff --git a/content/docs/references/ui/component/RecordDetailsProps.mdx b/content/docs/references/ui/component/RecordDetailsProps.mdx
index e9e1f9326..c56290920 100644
--- a/content/docs/references/ui/component/RecordDetailsProps.mdx
+++ b/content/docs/references/ui/component/RecordDetailsProps.mdx
@@ -1,8 +1,18 @@
---
title: RecordDetailsProps
description: RecordDetailsProps Schema Reference
+category: ui
+zodFile: component
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/component.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,18 @@ description: RecordDetailsProps Schema Reference
| **columns** | `Enum<'1' \| '2' \| '3' \| '4'>` | optional | |
| **layout** | `Enum<'auto' \| 'custom'>` | optional | |
| **sections** | `string[]` | optional | Section IDs to show |
+
+## TypeScript Usage
+
+```typescript
+import { RecordDetailsPropsSchema } from '@objectstack/spec/ui';
+import type { RecordDetailsProps } from '@objectstack/spec/ui';
+
+// Validate data
+const result = RecordDetailsPropsSchema.parse(data);
+
+// Type-safe usage
+const myRecordDetailsProps: RecordDetailsProps = {
+};
+```
+
diff --git a/content/docs/references/ui/component/RecordHighlightsProps.mdx b/content/docs/references/ui/component/RecordHighlightsProps.mdx
index 690dbe6f0..3330cbf27 100644
--- a/content/docs/references/ui/component/RecordHighlightsProps.mdx
+++ b/content/docs/references/ui/component/RecordHighlightsProps.mdx
@@ -1,10 +1,36 @@
---
title: RecordHighlightsProps
description: RecordHighlightsProps Schema Reference
+category: ui
+zodFile: component
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/component.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **fields** | `string[]` | ✅ | Key fields to highlights (max 7) |
+
+## TypeScript Usage
+
+```typescript
+import { RecordHighlightsPropsSchema } from '@objectstack/spec/ui';
+import type { RecordHighlightsProps } from '@objectstack/spec/ui';
+
+// Validate data
+const result = RecordHighlightsPropsSchema.parse(data);
+
+// Type-safe usage
+const myRecordHighlightsProps: RecordHighlightsProps = {
+ fields: []
+};
+```
+
diff --git a/content/docs/references/ui/component/RecordRelatedListProps.mdx b/content/docs/references/ui/component/RecordRelatedListProps.mdx
index af02873eb..a383b7a98 100644
--- a/content/docs/references/ui/component/RecordRelatedListProps.mdx
+++ b/content/docs/references/ui/component/RecordRelatedListProps.mdx
@@ -1,8 +1,18 @@
---
title: RecordRelatedListProps
description: RecordRelatedListProps Schema Reference
+category: ui
+zodFile: component
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/component.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,21 @@ description: RecordRelatedListProps Schema Reference
| **columns** | `string[]` | ✅ | Fields to display |
| **sort** | `string` | optional | |
| **limit** | `number` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { RecordRelatedListPropsSchema } from '@objectstack/spec/ui';
+import type { RecordRelatedListProps } from '@objectstack/spec/ui';
+
+// Validate data
+const result = RecordRelatedListPropsSchema.parse(data);
+
+// Type-safe usage
+const myRecordRelatedListProps: RecordRelatedListProps = {
+ objectName: 'example',
+ relationshipField: 'example',
+ columns: []
+};
+```
+
diff --git a/content/docs/references/ui/dashboard/ChartType.mdx b/content/docs/references/ui/dashboard/ChartType.mdx
index 363b133c7..0e313f926 100644
--- a/content/docs/references/ui/dashboard/ChartType.mdx
+++ b/content/docs/references/ui/dashboard/ChartType.mdx
@@ -1,8 +1,18 @@
---
title: ChartType
description: ChartType Schema Reference
+category: ui
+zodFile: dashboard
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/dashboard.zod.ts`
+
+
## Allowed Values
* `metric`
@@ -20,4 +30,14 @@ description: ChartType Schema Reference
* `list`
* `text`
* `image`
-* `frame`
\ No newline at end of file
+* `frame`
+
+## TypeScript Usage
+
+```typescript
+import { ChartType } from '@objectstack/spec/ui';
+
+// Type-safe enum value
+const value: ChartType = 'metric';
+```
+
diff --git a/content/docs/references/ui/dashboard/Dashboard.mdx b/content/docs/references/ui/dashboard/Dashboard.mdx
index 5e042dc3b..03cf5a21f 100644
--- a/content/docs/references/ui/dashboard/Dashboard.mdx
+++ b/content/docs/references/ui/dashboard/Dashboard.mdx
@@ -1,8 +1,18 @@
---
title: Dashboard
description: Dashboard Schema Reference
+category: ui
+zodFile: dashboard
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/dashboard.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,21 @@ description: Dashboard Schema Reference
| **label** | `string` | ✅ | Dashboard label |
| **description** | `string` | optional | Dashboard description |
| **widgets** | `object[]` | ✅ | Widgets to display |
+
+## TypeScript Usage
+
+```typescript
+import { DashboardSchema } from '@objectstack/spec/ui';
+import type { Dashboard } from '@objectstack/spec/ui';
+
+// Validate data
+const result = DashboardSchema.parse(data);
+
+// Type-safe usage
+const myDashboard: Dashboard = {
+ name: 'name',
+ label: 'example',
+ widgets: []
+};
+```
+
diff --git a/content/docs/references/ui/dashboard/DashboardWidget.mdx b/content/docs/references/ui/dashboard/DashboardWidget.mdx
index 0084d1ae4..0c14f45b6 100644
--- a/content/docs/references/ui/dashboard/DashboardWidget.mdx
+++ b/content/docs/references/ui/dashboard/DashboardWidget.mdx
@@ -1,8 +1,18 @@
---
title: DashboardWidget
description: DashboardWidget Schema Reference
+category: ui
+zodFile: dashboard
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/dashboard.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -16,3 +26,19 @@ description: DashboardWidget Schema Reference
| **aggregate** | `Enum<'count' \| 'sum' \| 'avg' \| 'min' \| 'max'>` | optional | Aggregate function |
| **layout** | `object` | ✅ | Grid layout position |
| **options** | `any` | optional | Widget specific configuration |
+
+## TypeScript Usage
+
+```typescript
+import { DashboardWidgetSchema } from '@objectstack/spec/ui';
+import type { DashboardWidget } from '@objectstack/spec/ui';
+
+// Validate data
+const result = DashboardWidgetSchema.parse(data);
+
+// Type-safe usage
+const myDashboardWidget: DashboardWidget = {
+ layout: {}
+};
+```
+
diff --git a/content/docs/references/ui/index.mdx b/content/docs/references/ui/index.mdx
new file mode 100644
index 000000000..2c3afd7bd
--- /dev/null
+++ b/content/docs/references/ui/index.mdx
@@ -0,0 +1,132 @@
+---
+title: UI Protocol Overview
+description: Complete reference for all ui protocol schemas
+---
+
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Database, Cpu, Zap } from 'lucide-react';
+
+# UI Protocol
+
+This section contains all protocol schemas for the ui layer of ObjectStack.
+
+## Action
+
+Source: `packages/spec/src/ui/action.zod.ts`
+
+
+
+
+
+
+## App
+
+Source: `packages/spec/src/ui/app.zod.ts`
+
+
+
+
+
+
+
+
+
+
+
+
+## Component
+
+Source: `packages/spec/src/ui/component.zod.ts`
+
+
+
+
+
+
+
+
+
+
+## Dashboard
+
+Source: `packages/spec/src/ui/dashboard.zod.ts`
+
+
+
+
+
+
+
+## Page
+
+Source: `packages/spec/src/ui/page.zod.ts`
+
+
+
+
+
+
+
+
+## Report
+
+Source: `packages/spec/src/ui/report.zod.ts`
+
+
+
+
+
+
+
+
+
+## Theme
+
+Source: `packages/spec/src/ui/theme.zod.ts`
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## View
+
+Source: `packages/spec/src/ui/view.zod.ts`
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Widget
+
+Source: `packages/spec/src/ui/widget.zod.ts`
+
+
+
+
+
+
+
+
+
diff --git a/content/docs/references/ui/page/Page.mdx b/content/docs/references/ui/page/Page.mdx
index 31b53a195..edd98d36e 100644
--- a/content/docs/references/ui/page/Page.mdx
+++ b/content/docs/references/ui/page/Page.mdx
@@ -1,8 +1,18 @@
---
title: Page
description: Page Schema Reference
+category: ui
+zodFile: page
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/page.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -16,3 +26,21 @@ description: Page Schema Reference
| **regions** | `object[]` | ✅ | Defined regions with components |
| **isDefault** | `boolean` | optional | |
| **assignedProfiles** | `string[]` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { PageSchema } from '@objectstack/spec/ui';
+import type { Page } from '@objectstack/spec/ui';
+
+// Validate data
+const result = PageSchema.parse(data);
+
+// Type-safe usage
+const myPage: Page = {
+ name: 'name',
+ label: 'example',
+ regions: []
+};
+```
+
diff --git a/content/docs/references/ui/page/PageComponent.mdx b/content/docs/references/ui/page/PageComponent.mdx
index e6d232530..ac5ef737e 100644
--- a/content/docs/references/ui/page/PageComponent.mdx
+++ b/content/docs/references/ui/page/PageComponent.mdx
@@ -1,8 +1,18 @@
---
title: PageComponent
description: PageComponent Schema Reference
+category: ui
+zodFile: page
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/page.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,20 @@ description: PageComponent Schema Reference
| **label** | `string` | optional | |
| **properties** | `Record` | ✅ | Component props passed to the widget. See block.zod.ts for schemas. |
| **visibility** | `string` | optional | Visibility filter/formula |
+
+## TypeScript Usage
+
+```typescript
+import { PageComponentSchema } from '@objectstack/spec/ui';
+import type { PageComponent } from '@objectstack/spec/ui';
+
+// Validate data
+const result = PageComponentSchema.parse(data);
+
+// Type-safe usage
+const myPageComponent: PageComponent = {
+ type: null,
+ properties: {}
+};
+```
+
diff --git a/content/docs/references/ui/page/PageComponentType.mdx b/content/docs/references/ui/page/PageComponentType.mdx
index b454a22d5..bf7f8693f 100644
--- a/content/docs/references/ui/page/PageComponentType.mdx
+++ b/content/docs/references/ui/page/PageComponentType.mdx
@@ -1,8 +1,18 @@
---
title: PageComponentType
description: PageComponentType Schema Reference
+category: ui
+zodFile: page
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/page.zod.ts`
+
+
## Allowed Values
* `page:header`
@@ -25,4 +35,14 @@ description: PageComponentType Schema Reference
* `global:notifications`
* `user:profile`
* `ai:chat_window`
-* `ai:suggestion`
\ No newline at end of file
+* `ai:suggestion`
+
+## TypeScript Usage
+
+```typescript
+import { PageComponentType } from '@objectstack/spec/ui';
+
+// Type-safe enum value
+const value: PageComponentType = 'page:header';
+```
+
diff --git a/content/docs/references/ui/page/PageRegion.mdx b/content/docs/references/ui/page/PageRegion.mdx
index 1340f51ad..dac43aef9 100644
--- a/content/docs/references/ui/page/PageRegion.mdx
+++ b/content/docs/references/ui/page/PageRegion.mdx
@@ -1,8 +1,18 @@
---
title: PageRegion
description: PageRegion Schema Reference
+category: ui
+zodFile: page
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/page.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,20 @@ description: PageRegion Schema Reference
| **name** | `string` | ✅ | Region name (e.g. "sidebar", "main", "header") |
| **width** | `Enum<'small' \| 'medium' \| 'large' \| 'full'>` | optional | |
| **components** | `object[]` | ✅ | Components in this region |
+
+## TypeScript Usage
+
+```typescript
+import { PageRegionSchema } from '@objectstack/spec/ui';
+import type { PageRegion } from '@objectstack/spec/ui';
+
+// Validate data
+const result = PageRegionSchema.parse(data);
+
+// Type-safe usage
+const myPageRegion: PageRegion = {
+ name: 'name',
+ components: []
+};
+```
+
diff --git a/content/docs/references/ui/report/Report.mdx b/content/docs/references/ui/report/Report.mdx
index 68954c597..82cf3b397 100644
--- a/content/docs/references/ui/report/Report.mdx
+++ b/content/docs/references/ui/report/Report.mdx
@@ -1,8 +1,18 @@
---
title: Report
description: Report Schema Reference
+category: ui
+zodFile: report
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/report.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -17,3 +27,22 @@ description: Report Schema Reference
| **groupingsAcross** | `object[]` | optional | Column groupings (Matrix only) |
| **filter** | `any` | optional | Filter criteria |
| **chart** | `object` | optional | Embedded chart configuration |
+
+## TypeScript Usage
+
+```typescript
+import { ReportSchema } from '@objectstack/spec/ui';
+import type { Report } from '@objectstack/spec/ui';
+
+// Validate data
+const result = ReportSchema.parse(data);
+
+// Type-safe usage
+const myReport: Report = {
+ name: 'name',
+ label: 'example',
+ objectName: 'example',
+ // ... other fields
+};
+```
+
diff --git a/content/docs/references/ui/report/ReportChart.mdx b/content/docs/references/ui/report/ReportChart.mdx
index b6c342462..37a2e2840 100644
--- a/content/docs/references/ui/report/ReportChart.mdx
+++ b/content/docs/references/ui/report/ReportChart.mdx
@@ -1,8 +1,18 @@
---
title: ReportChart
description: ReportChart Schema Reference
+category: ui
+zodFile: report
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/report.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,21 @@ description: ReportChart Schema Reference
| **showLegend** | `boolean` | optional | |
| **xAxis** | `string` | ✅ | Grouping field for X-Axis |
| **yAxis** | `string` | ✅ | Summary field for Y-Axis |
+
+## TypeScript Usage
+
+```typescript
+import { ReportChartSchema } from '@objectstack/spec/ui';
+import type { ReportChart } from '@objectstack/spec/ui';
+
+// Validate data
+const result = ReportChartSchema.parse(data);
+
+// Type-safe usage
+const myReportChart: ReportChart = {
+ type: 'bar',
+ xAxis: 'example',
+ yAxis: 'example'
+};
+```
+
diff --git a/content/docs/references/ui/report/ReportColumn.mdx b/content/docs/references/ui/report/ReportColumn.mdx
index 607e8ace1..9d67239c3 100644
--- a/content/docs/references/ui/report/ReportColumn.mdx
+++ b/content/docs/references/ui/report/ReportColumn.mdx
@@ -1,8 +1,18 @@
---
title: ReportColumn
description: ReportColumn Schema Reference
+category: ui
+zodFile: report
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/report.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,19 @@ description: ReportColumn Schema Reference
| **field** | `string` | ✅ | Field name |
| **label** | `string` | optional | Override label |
| **aggregate** | `Enum<'sum' \| 'avg' \| 'max' \| 'min' \| 'count' \| 'unique'>` | optional | Aggregation function |
+
+## TypeScript Usage
+
+```typescript
+import { ReportColumnSchema } from '@objectstack/spec/ui';
+import type { ReportColumn } from '@objectstack/spec/ui';
+
+// Validate data
+const result = ReportColumnSchema.parse(data);
+
+// Type-safe usage
+const myReportColumn: ReportColumn = {
+ field: 'example'
+};
+```
+
diff --git a/content/docs/references/ui/report/ReportGrouping.mdx b/content/docs/references/ui/report/ReportGrouping.mdx
index e82ab5ada..5dc10dfa6 100644
--- a/content/docs/references/ui/report/ReportGrouping.mdx
+++ b/content/docs/references/ui/report/ReportGrouping.mdx
@@ -1,8 +1,18 @@
---
title: ReportGrouping
description: ReportGrouping Schema Reference
+category: ui
+zodFile: report
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/report.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,19 @@ description: ReportGrouping Schema Reference
| **field** | `string` | ✅ | Field to group by |
| **sortOrder** | `Enum<'asc' \| 'desc'>` | optional | |
| **dateGranularity** | `Enum<'day' \| 'week' \| 'month' \| 'quarter' \| 'year'>` | optional | For date fields |
+
+## TypeScript Usage
+
+```typescript
+import { ReportGroupingSchema } from '@objectstack/spec/ui';
+import type { ReportGrouping } from '@objectstack/spec/ui';
+
+// Validate data
+const result = ReportGroupingSchema.parse(data);
+
+// Type-safe usage
+const myReportGrouping: ReportGrouping = {
+ field: 'example'
+};
+```
+
diff --git a/content/docs/references/ui/report/ReportType.mdx b/content/docs/references/ui/report/ReportType.mdx
index db2609f65..3763e6468 100644
--- a/content/docs/references/ui/report/ReportType.mdx
+++ b/content/docs/references/ui/report/ReportType.mdx
@@ -1,11 +1,31 @@
---
title: ReportType
description: ReportType Schema Reference
+category: ui
+zodFile: report
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/report.zod.ts`
+
+
## Allowed Values
* `tabular`
* `summary`
* `matrix`
-* `joined`
\ No newline at end of file
+* `joined`
+
+## TypeScript Usage
+
+```typescript
+import { ReportType } from '@objectstack/spec/ui';
+
+// Type-safe enum value
+const value: ReportType = 'tabular';
+```
+
diff --git a/content/docs/references/ui/theme/Animation.mdx b/content/docs/references/ui/theme/Animation.mdx
index ff48ac9ba..c9e414fcd 100644
--- a/content/docs/references/ui/theme/Animation.mdx
+++ b/content/docs/references/ui/theme/Animation.mdx
@@ -1,11 +1,36 @@
---
title: Animation
description: Animation Schema Reference
+category: ui
+zodFile: theme
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/theme.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **duration** | `object` | optional | |
| **timing** | `object` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { AnimationSchema } from '@objectstack/spec/ui';
+import type { Animation } from '@objectstack/spec/ui';
+
+// Validate data
+const result = AnimationSchema.parse(data);
+
+// Type-safe usage
+const myAnimation: Animation = {
+};
+```
+
diff --git a/content/docs/references/ui/theme/BorderRadius.mdx b/content/docs/references/ui/theme/BorderRadius.mdx
index e4a7dc165..2ee787234 100644
--- a/content/docs/references/ui/theme/BorderRadius.mdx
+++ b/content/docs/references/ui/theme/BorderRadius.mdx
@@ -1,8 +1,18 @@
---
title: BorderRadius
description: BorderRadius Schema Reference
+category: ui
+zodFile: theme
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/theme.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -15,3 +25,18 @@ description: BorderRadius Schema Reference
| **xl** | `string` | optional | Extra large border radius (e.g., 0.75rem) |
| **2xl** | `string` | optional | 2X large border radius (e.g., 1rem) |
| **full** | `string` | optional | Full border radius (50%) |
+
+## TypeScript Usage
+
+```typescript
+import { BorderRadiusSchema } from '@objectstack/spec/ui';
+import type { BorderRadius } from '@objectstack/spec/ui';
+
+// Validate data
+const result = BorderRadiusSchema.parse(data);
+
+// Type-safe usage
+const myBorderRadius: BorderRadius = {
+};
+```
+
diff --git a/content/docs/references/ui/theme/Breakpoints.mdx b/content/docs/references/ui/theme/Breakpoints.mdx
index bdbaeed87..b70e3fbbf 100644
--- a/content/docs/references/ui/theme/Breakpoints.mdx
+++ b/content/docs/references/ui/theme/Breakpoints.mdx
@@ -1,8 +1,18 @@
---
title: Breakpoints
description: Breakpoints Schema Reference
+category: ui
+zodFile: theme
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/theme.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,18 @@ description: Breakpoints Schema Reference
| **lg** | `string` | optional | Large breakpoint (e.g., 1024px) |
| **xl** | `string` | optional | Extra large breakpoint (e.g., 1280px) |
| **2xl** | `string` | optional | 2X large breakpoint (e.g., 1536px) |
+
+## TypeScript Usage
+
+```typescript
+import { BreakpointsSchema } from '@objectstack/spec/ui';
+import type { Breakpoints } from '@objectstack/spec/ui';
+
+// Validate data
+const result = BreakpointsSchema.parse(data);
+
+// Type-safe usage
+const myBreakpoints: Breakpoints = {
+};
+```
+
diff --git a/content/docs/references/ui/theme/ColorPalette.mdx b/content/docs/references/ui/theme/ColorPalette.mdx
index 346dd8fe4..e210464a2 100644
--- a/content/docs/references/ui/theme/ColorPalette.mdx
+++ b/content/docs/references/ui/theme/ColorPalette.mdx
@@ -1,8 +1,18 @@
---
title: ColorPalette
description: ColorPalette Schema Reference
+category: ui
+zodFile: theme
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/theme.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -24,3 +34,19 @@ description: ColorPalette Schema Reference
| **primaryDark** | `string` | optional | Darker shade of primary |
| **secondaryLight** | `string` | optional | Lighter shade of secondary |
| **secondaryDark** | `string` | optional | Darker shade of secondary |
+
+## TypeScript Usage
+
+```typescript
+import { ColorPaletteSchema } from '@objectstack/spec/ui';
+import type { ColorPalette } from '@objectstack/spec/ui';
+
+// Validate data
+const result = ColorPaletteSchema.parse(data);
+
+// Type-safe usage
+const myColorPalette: ColorPalette = {
+ primary: 'example'
+};
+```
+
diff --git a/content/docs/references/ui/theme/Shadow.mdx b/content/docs/references/ui/theme/Shadow.mdx
index 4fe3c269f..d8cc42c91 100644
--- a/content/docs/references/ui/theme/Shadow.mdx
+++ b/content/docs/references/ui/theme/Shadow.mdx
@@ -1,8 +1,18 @@
---
title: Shadow
description: Shadow Schema Reference
+category: ui
+zodFile: theme
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/theme.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -15,3 +25,18 @@ description: Shadow Schema Reference
| **xl** | `string` | optional | Extra large shadow |
| **2xl** | `string` | optional | 2X large shadow |
| **inner** | `string` | optional | Inner shadow (inset) |
+
+## TypeScript Usage
+
+```typescript
+import { ShadowSchema } from '@objectstack/spec/ui';
+import type { Shadow } from '@objectstack/spec/ui';
+
+// Validate data
+const result = ShadowSchema.parse(data);
+
+// Type-safe usage
+const myShadow: Shadow = {
+};
+```
+
diff --git a/content/docs/references/ui/theme/Spacing.mdx b/content/docs/references/ui/theme/Spacing.mdx
index 127bb81f1..4d6915d9f 100644
--- a/content/docs/references/ui/theme/Spacing.mdx
+++ b/content/docs/references/ui/theme/Spacing.mdx
@@ -1,8 +1,18 @@
---
title: Spacing
description: Spacing Schema Reference
+category: ui
+zodFile: theme
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/theme.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -20,3 +30,18 @@ description: Spacing Schema Reference
| **16** | `string` | optional | Spacing unit 16 (e.g., 4rem) |
| **20** | `string` | optional | Spacing unit 20 (e.g., 5rem) |
| **24** | `string` | optional | Spacing unit 24 (e.g., 6rem) |
+
+## TypeScript Usage
+
+```typescript
+import { SpacingSchema } from '@objectstack/spec/ui';
+import type { Spacing } from '@objectstack/spec/ui';
+
+// Validate data
+const result = SpacingSchema.parse(data);
+
+// Type-safe usage
+const mySpacing: Spacing = {
+};
+```
+
diff --git a/content/docs/references/ui/theme/Theme.mdx b/content/docs/references/ui/theme/Theme.mdx
index e1131ecb1..121ca79d7 100644
--- a/content/docs/references/ui/theme/Theme.mdx
+++ b/content/docs/references/ui/theme/Theme.mdx
@@ -1,8 +1,18 @@
---
title: Theme
description: Theme Schema Reference
+category: ui
+zodFile: theme
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/theme.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -22,3 +32,21 @@ description: Theme Schema Reference
| **customVars** | `Record` | optional | Custom CSS variables (key-value pairs) |
| **logo** | `object` | optional | Logo assets |
| **extends** | `string` | optional | Base theme to extend from |
+
+## TypeScript Usage
+
+```typescript
+import { ThemeSchema } from '@objectstack/spec/ui';
+import type { Theme } from '@objectstack/spec/ui';
+
+// Validate data
+const result = ThemeSchema.parse(data);
+
+// Type-safe usage
+const myTheme: Theme = {
+ name: 'name',
+ label: 'example',
+ colors: {}
+};
+```
+
diff --git a/content/docs/references/ui/theme/ThemeMode.mdx b/content/docs/references/ui/theme/ThemeMode.mdx
index 553ecaeb7..4a2136364 100644
--- a/content/docs/references/ui/theme/ThemeMode.mdx
+++ b/content/docs/references/ui/theme/ThemeMode.mdx
@@ -1,10 +1,30 @@
---
title: ThemeMode
description: ThemeMode Schema Reference
+category: ui
+zodFile: theme
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/theme.zod.ts`
+
+
## Allowed Values
* `light`
* `dark`
-* `auto`
\ No newline at end of file
+* `auto`
+
+## TypeScript Usage
+
+```typescript
+import { ThemeMode } from '@objectstack/spec/ui';
+
+// Type-safe enum value
+const value: ThemeMode = 'light';
+```
+
diff --git a/content/docs/references/ui/theme/Typography.mdx b/content/docs/references/ui/theme/Typography.mdx
index e04d15c48..5f5254b2b 100644
--- a/content/docs/references/ui/theme/Typography.mdx
+++ b/content/docs/references/ui/theme/Typography.mdx
@@ -1,8 +1,18 @@
---
title: Typography
description: Typography Schema Reference
+category: ui
+zodFile: theme
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/theme.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,18 @@ description: Typography Schema Reference
| **fontWeight** | `object` | optional | |
| **lineHeight** | `object` | optional | |
| **letterSpacing** | `object` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { TypographySchema } from '@objectstack/spec/ui';
+import type { Typography } from '@objectstack/spec/ui';
+
+// Validate data
+const result = TypographySchema.parse(data);
+
+// Type-safe usage
+const myTypography: Typography = {
+};
+```
+
diff --git a/content/docs/references/ui/theme/ZIndex.mdx b/content/docs/references/ui/theme/ZIndex.mdx
index 1e570762c..79b02ec74 100644
--- a/content/docs/references/ui/theme/ZIndex.mdx
+++ b/content/docs/references/ui/theme/ZIndex.mdx
@@ -1,8 +1,18 @@
---
title: ZIndex
description: ZIndex Schema Reference
+category: ui
+zodFile: theme
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/theme.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -15,3 +25,18 @@ description: ZIndex Schema Reference
| **modal** | `number` | optional | Modal z-index (e.g., 1050) |
| **popover** | `number` | optional | Popover z-index (e.g., 1060) |
| **tooltip** | `number` | optional | Tooltip z-index (e.g., 1070) |
+
+## TypeScript Usage
+
+```typescript
+import { ZIndexSchema } from '@objectstack/spec/ui';
+import type { ZIndex } from '@objectstack/spec/ui';
+
+// Validate data
+const result = ZIndexSchema.parse(data);
+
+// Type-safe usage
+const myZIndex: ZIndex = {
+};
+```
+
diff --git a/content/docs/references/ui/view/CalendarConfig.mdx b/content/docs/references/ui/view/CalendarConfig.mdx
index b47adbfa2..5238030c9 100644
--- a/content/docs/references/ui/view/CalendarConfig.mdx
+++ b/content/docs/references/ui/view/CalendarConfig.mdx
@@ -1,8 +1,18 @@
---
title: CalendarConfig
description: CalendarConfig Schema Reference
+category: ui
+zodFile: view
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/view.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,20 @@ description: CalendarConfig Schema Reference
| **endDateField** | `string` | optional | |
| **titleField** | `string` | ✅ | |
| **colorField** | `string` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { CalendarConfigSchema } from '@objectstack/spec/ui';
+import type { CalendarConfig } from '@objectstack/spec/ui';
+
+// Validate data
+const result = CalendarConfigSchema.parse(data);
+
+// Type-safe usage
+const myCalendarConfig: CalendarConfig = {
+ startDateField: 'example',
+ titleField: 'example'
+};
+```
+
diff --git a/content/docs/references/ui/view/FormField.mdx b/content/docs/references/ui/view/FormField.mdx
index e0e56aa1c..d14fca978 100644
--- a/content/docs/references/ui/view/FormField.mdx
+++ b/content/docs/references/ui/view/FormField.mdx
@@ -1,8 +1,18 @@
---
title: FormField
description: FormField Schema Reference
+category: ui
+zodFile: view
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/view.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -18,3 +28,19 @@ description: FormField Schema Reference
| **widget** | `string` | optional | Custom widget/component name |
| **dependsOn** | `string` | optional | Parent field name for cascading |
| **visibleOn** | `string` | optional | Visibility condition expression |
+
+## TypeScript Usage
+
+```typescript
+import { FormFieldSchema } from '@objectstack/spec/ui';
+import type { FormField } from '@objectstack/spec/ui';
+
+// Validate data
+const result = FormFieldSchema.parse(data);
+
+// Type-safe usage
+const myFormField: FormField = {
+ field: 'example'
+};
+```
+
diff --git a/content/docs/references/ui/view/FormSection.mdx b/content/docs/references/ui/view/FormSection.mdx
index a5c8e68e4..db34312c2 100644
--- a/content/docs/references/ui/view/FormSection.mdx
+++ b/content/docs/references/ui/view/FormSection.mdx
@@ -1,8 +1,18 @@
---
title: FormSection
description: FormSection Schema Reference
+category: ui
+zodFile: view
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/view.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,19 @@ description: FormSection Schema Reference
| **collapsed** | `boolean` | optional | |
| **columns** | `Enum<'1' \| '2' \| '3' \| '4'>` | optional | |
| **fields** | `string \| object[]` | ✅ | |
+
+## TypeScript Usage
+
+```typescript
+import { FormSectionSchema } from '@objectstack/spec/ui';
+import type { FormSection } from '@objectstack/spec/ui';
+
+// Validate data
+const result = FormSectionSchema.parse(data);
+
+// Type-safe usage
+const myFormSection: FormSection = {
+ fields: []
+};
+```
+
diff --git a/content/docs/references/ui/view/FormView.mdx b/content/docs/references/ui/view/FormView.mdx
index 256fe0782..18b6b17bb 100644
--- a/content/docs/references/ui/view/FormView.mdx
+++ b/content/docs/references/ui/view/FormView.mdx
@@ -1,8 +1,18 @@
---
title: FormView
description: FormView Schema Reference
+category: ui
+zodFile: view
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/view.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,18 @@ description: FormView Schema Reference
| **data** | `object \| object \| object` | optional | Data source configuration (defaults to "object" provider) |
| **sections** | `object[]` | optional | |
| **groups** | `object[]` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { FormViewSchema } from '@objectstack/spec/ui';
+import type { FormView } from '@objectstack/spec/ui';
+
+// Validate data
+const result = FormViewSchema.parse(data);
+
+// Type-safe usage
+const myFormView: FormView = {
+};
+```
+
diff --git a/content/docs/references/ui/view/GanttConfig.mdx b/content/docs/references/ui/view/GanttConfig.mdx
index 363692d57..dc7b82e28 100644
--- a/content/docs/references/ui/view/GanttConfig.mdx
+++ b/content/docs/references/ui/view/GanttConfig.mdx
@@ -1,8 +1,18 @@
---
title: GanttConfig
description: GanttConfig Schema Reference
+category: ui
+zodFile: view
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/view.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,21 @@ description: GanttConfig Schema Reference
| **titleField** | `string` | ✅ | |
| **progressField** | `string` | optional | |
| **dependenciesField** | `string` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { GanttConfigSchema } from '@objectstack/spec/ui';
+import type { GanttConfig } from '@objectstack/spec/ui';
+
+// Validate data
+const result = GanttConfigSchema.parse(data);
+
+// Type-safe usage
+const myGanttConfig: GanttConfig = {
+ startDateField: 'example',
+ endDateField: 'example',
+ titleField: 'example'
+};
+```
+
diff --git a/content/docs/references/ui/view/HttpMethod.mdx b/content/docs/references/ui/view/HttpMethod.mdx
index 6373632f5..3cc6290cb 100644
--- a/content/docs/references/ui/view/HttpMethod.mdx
+++ b/content/docs/references/ui/view/HttpMethod.mdx
@@ -1,12 +1,32 @@
---
title: HttpMethod
description: HttpMethod Schema Reference
+category: ui
+zodFile: view
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/view.zod.ts`
+
+
## Allowed Values
* `GET`
* `POST`
* `PUT`
* `PATCH`
-* `DELETE`
\ No newline at end of file
+* `DELETE`
+
+## TypeScript Usage
+
+```typescript
+import { HttpMethod } from '@objectstack/spec/ui';
+
+// Type-safe enum value
+const value: HttpMethod = 'GET';
+```
+
diff --git a/content/docs/references/ui/view/HttpRequest.mdx b/content/docs/references/ui/view/HttpRequest.mdx
index 9e7e931dc..7e08a5d76 100644
--- a/content/docs/references/ui/view/HttpRequest.mdx
+++ b/content/docs/references/ui/view/HttpRequest.mdx
@@ -1,8 +1,18 @@
---
title: HttpRequest
description: HttpRequest Schema Reference
+category: ui
+zodFile: view
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/view.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -12,3 +22,19 @@ description: HttpRequest Schema Reference
| **headers** | `Record` | optional | Custom HTTP headers |
| **params** | `Record` | optional | Query parameters |
| **body** | `any` | optional | Request body for POST/PUT/PATCH |
+
+## TypeScript Usage
+
+```typescript
+import { HttpRequestSchema } from '@objectstack/spec/ui';
+import type { HttpRequest } from '@objectstack/spec/ui';
+
+// Validate data
+const result = HttpRequestSchema.parse(data);
+
+// Type-safe usage
+const myHttpRequest: HttpRequest = {
+ url: 'https://example.com'
+};
+```
+
diff --git a/content/docs/references/ui/view/KanbanConfig.mdx b/content/docs/references/ui/view/KanbanConfig.mdx
index b1c12639b..00ad6ea24 100644
--- a/content/docs/references/ui/view/KanbanConfig.mdx
+++ b/content/docs/references/ui/view/KanbanConfig.mdx
@@ -1,8 +1,18 @@
---
title: KanbanConfig
description: KanbanConfig Schema Reference
+category: ui
+zodFile: view
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/view.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -10,3 +20,20 @@ description: KanbanConfig Schema Reference
| **groupByField** | `string` | ✅ | Field to group columns by (usually status/select) |
| **summarizeField** | `string` | optional | Field to sum at top of column (e.g. amount) |
| **columns** | `string[]` | ✅ | Fields to show on cards |
+
+## TypeScript Usage
+
+```typescript
+import { KanbanConfigSchema } from '@objectstack/spec/ui';
+import type { KanbanConfig } from '@objectstack/spec/ui';
+
+// Validate data
+const result = KanbanConfigSchema.parse(data);
+
+// Type-safe usage
+const myKanbanConfig: KanbanConfig = {
+ groupByField: 'example',
+ columns: []
+};
+```
+
diff --git a/content/docs/references/ui/view/ListColumn.mdx b/content/docs/references/ui/view/ListColumn.mdx
index a9578a61b..6ec1c6db1 100644
--- a/content/docs/references/ui/view/ListColumn.mdx
+++ b/content/docs/references/ui/view/ListColumn.mdx
@@ -1,8 +1,18 @@
---
title: ListColumn
description: ListColumn Schema Reference
+category: ui
+zodFile: view
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/view.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -16,3 +26,19 @@ description: ListColumn Schema Reference
| **resizable** | `boolean` | optional | Allow resizing this column |
| **wrap** | `boolean` | optional | Allow text wrapping |
| **type** | `string` | optional | Renderer type override (e.g., "currency", "date") |
+
+## TypeScript Usage
+
+```typescript
+import { ListColumnSchema } from '@objectstack/spec/ui';
+import type { ListColumn } from '@objectstack/spec/ui';
+
+// Validate data
+const result = ListColumnSchema.parse(data);
+
+// Type-safe usage
+const myListColumn: ListColumn = {
+ field: 'example'
+};
+```
+
diff --git a/content/docs/references/ui/view/ListView.mdx b/content/docs/references/ui/view/ListView.mdx
index fd910c175..dd1904cb0 100644
--- a/content/docs/references/ui/view/ListView.mdx
+++ b/content/docs/references/ui/view/ListView.mdx
@@ -1,8 +1,18 @@
---
title: ListView
description: ListView Schema Reference
+category: ui
+zodFile: view
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/view.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -23,3 +33,19 @@ description: ListView Schema Reference
| **kanban** | `object` | optional | |
| **calendar** | `object` | optional | |
| **gantt** | `object` | optional | |
+
+## TypeScript Usage
+
+```typescript
+import { ListViewSchema } from '@objectstack/spec/ui';
+import type { ListView } from '@objectstack/spec/ui';
+
+// Validate data
+const result = ListViewSchema.parse(data);
+
+// Type-safe usage
+const myListView: ListView = {
+ columns: null
+};
+```
+
diff --git a/content/docs/references/ui/view/PaginationConfig.mdx b/content/docs/references/ui/view/PaginationConfig.mdx
index 887a7f44b..72f5e7893 100644
--- a/content/docs/references/ui/view/PaginationConfig.mdx
+++ b/content/docs/references/ui/view/PaginationConfig.mdx
@@ -1,11 +1,36 @@
---
title: PaginationConfig
description: PaginationConfig Schema Reference
+category: ui
+zodFile: view
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/view.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **pageSize** | `integer` | optional | Number of records per page |
| **pageSizeOptions** | `integer[]` | optional | Available page size options |
+
+## TypeScript Usage
+
+```typescript
+import { PaginationConfigSchema } from '@objectstack/spec/ui';
+import type { PaginationConfig } from '@objectstack/spec/ui';
+
+// Validate data
+const result = PaginationConfigSchema.parse(data);
+
+// Type-safe usage
+const myPaginationConfig: PaginationConfig = {
+};
+```
+
diff --git a/content/docs/references/ui/view/SelectionConfig.mdx b/content/docs/references/ui/view/SelectionConfig.mdx
index cd7aa6348..35750fcab 100644
--- a/content/docs/references/ui/view/SelectionConfig.mdx
+++ b/content/docs/references/ui/view/SelectionConfig.mdx
@@ -1,10 +1,35 @@
---
title: SelectionConfig
description: SelectionConfig Schema Reference
+category: ui
+zodFile: view
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/view.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
| :--- | :--- | :--- | :--- |
| **type** | `Enum<'none' \| 'single' \| 'multiple'>` | optional | Selection mode |
+
+## TypeScript Usage
+
+```typescript
+import { SelectionConfigSchema } from '@objectstack/spec/ui';
+import type { SelectionConfig } from '@objectstack/spec/ui';
+
+// Validate data
+const result = SelectionConfigSchema.parse(data);
+
+// Type-safe usage
+const mySelectionConfig: SelectionConfig = {
+};
+```
+
diff --git a/content/docs/references/ui/view/View.mdx b/content/docs/references/ui/view/View.mdx
index 61dd3b7ad..fc82e3864 100644
--- a/content/docs/references/ui/view/View.mdx
+++ b/content/docs/references/ui/view/View.mdx
@@ -1,8 +1,18 @@
---
title: View
description: View Schema Reference
+category: ui
+zodFile: view
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/view.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -11,3 +21,18 @@ description: View Schema Reference
| **form** | `object` | optional | |
| **listViews** | `Record` | optional | Additional named list views |
| **formViews** | `Record` | optional | Additional named form views |
+
+## TypeScript Usage
+
+```typescript
+import { ViewSchema } from '@objectstack/spec/ui';
+import type { View } from '@objectstack/spec/ui';
+
+// Validate data
+const result = ViewSchema.parse(data);
+
+// Type-safe usage
+const myView: View = {
+};
+```
+
diff --git a/content/docs/references/ui/view/ViewData.mdx b/content/docs/references/ui/view/ViewData.mdx
index 297acad9a..1a7969634 100644
--- a/content/docs/references/ui/view/ViewData.mdx
+++ b/content/docs/references/ui/view/ViewData.mdx
@@ -1,5 +1,15 @@
---
title: ViewData
description: ViewData Schema Reference
+category: ui
+zodFile: view
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/view.zod.ts`
+
+
diff --git a/content/docs/references/ui/widget/FieldWidgetProps.mdx b/content/docs/references/ui/widget/FieldWidgetProps.mdx
index 3ff8a96d6..59d0bf2b3 100644
--- a/content/docs/references/ui/widget/FieldWidgetProps.mdx
+++ b/content/docs/references/ui/widget/FieldWidgetProps.mdx
@@ -1,8 +1,18 @@
---
title: FieldWidgetProps
description: FieldWidgetProps Schema Reference
+category: ui
+zodFile: widget
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/widget.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -14,3 +24,19 @@ description: FieldWidgetProps Schema Reference
| **field** | `object` | ✅ | Field schema definition |
| **record** | `Record` | optional | Complete record data |
| **options** | `Record` | optional | Custom widget options |
+
+## TypeScript Usage
+
+```typescript
+import { FieldWidgetPropsSchema } from '@objectstack/spec/ui';
+import type { FieldWidgetProps } from '@objectstack/spec/ui';
+
+// Validate data
+const result = FieldWidgetPropsSchema.parse(data);
+
+// Type-safe usage
+const myFieldWidgetProps: FieldWidgetProps = {
+ field: {}
+};
+```
+
diff --git a/content/docs/references/ui/widget/WidgetEvent.mdx b/content/docs/references/ui/widget/WidgetEvent.mdx
index 223aee6ba..3fc9ad832 100644
--- a/content/docs/references/ui/widget/WidgetEvent.mdx
+++ b/content/docs/references/ui/widget/WidgetEvent.mdx
@@ -1,8 +1,18 @@
---
title: WidgetEvent
description: WidgetEvent Schema Reference
+category: ui
+zodFile: widget
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/widget.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -13,3 +23,19 @@ description: WidgetEvent Schema Reference
| **bubbles** | `boolean` | optional | Whether event bubbles |
| **cancelable** | `boolean` | optional | Whether event is cancelable |
| **payload** | `Record` | optional | Event payload schema |
+
+## TypeScript Usage
+
+```typescript
+import { WidgetEventSchema } from '@objectstack/spec/ui';
+import type { WidgetEvent } from '@objectstack/spec/ui';
+
+// Validate data
+const result = WidgetEventSchema.parse(data);
+
+// Type-safe usage
+const myWidgetEvent: WidgetEvent = {
+ name: 'name'
+};
+```
+
diff --git a/content/docs/references/ui/widget/WidgetLifecycle.mdx b/content/docs/references/ui/widget/WidgetLifecycle.mdx
index f403efa40..c12578423 100644
--- a/content/docs/references/ui/widget/WidgetLifecycle.mdx
+++ b/content/docs/references/ui/widget/WidgetLifecycle.mdx
@@ -1,8 +1,18 @@
---
title: WidgetLifecycle
description: WidgetLifecycle Schema Reference
+category: ui
+zodFile: widget
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/widget.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -14,3 +24,18 @@ description: WidgetLifecycle Schema Reference
| **onFocus** | `string` | optional | Code to run on focus |
| **onBlur** | `string` | optional | Code to run on blur |
| **onError** | `string` | optional | Error handling code |
+
+## TypeScript Usage
+
+```typescript
+import { WidgetLifecycleSchema } from '@objectstack/spec/ui';
+import type { WidgetLifecycle } from '@objectstack/spec/ui';
+
+// Validate data
+const result = WidgetLifecycleSchema.parse(data);
+
+// Type-safe usage
+const myWidgetLifecycle: WidgetLifecycle = {
+};
+```
+
diff --git a/content/docs/references/ui/widget/WidgetManifest.mdx b/content/docs/references/ui/widget/WidgetManifest.mdx
index 3adbf5a67..baff40cec 100644
--- a/content/docs/references/ui/widget/WidgetManifest.mdx
+++ b/content/docs/references/ui/widget/WidgetManifest.mdx
@@ -1,8 +1,18 @@
---
title: WidgetManifest
description: WidgetManifest Schema Reference
+category: ui
+zodFile: widget
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/widget.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -24,3 +34,20 @@ description: WidgetManifest Schema Reference
| **documentation** | `string` | optional | Documentation URL |
| **license** | `string` | optional | License (SPDX identifier) |
| **tags** | `string[]` | optional | Tags for categorization |
+
+## TypeScript Usage
+
+```typescript
+import { WidgetManifestSchema } from '@objectstack/spec/ui';
+import type { WidgetManifest } from '@objectstack/spec/ui';
+
+// Validate data
+const result = WidgetManifestSchema.parse(data);
+
+// Type-safe usage
+const myWidgetManifest: WidgetManifest = {
+ name: 'name',
+ label: 'example'
+};
+```
+
diff --git a/content/docs/references/ui/widget/WidgetProperty.mdx b/content/docs/references/ui/widget/WidgetProperty.mdx
index 5491179ba..9675890c5 100644
--- a/content/docs/references/ui/widget/WidgetProperty.mdx
+++ b/content/docs/references/ui/widget/WidgetProperty.mdx
@@ -1,8 +1,18 @@
---
title: WidgetProperty
description: WidgetProperty Schema Reference
+category: ui
+zodFile: widget
---
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+
+**Source:** `packages/spec/src/ui/widget.zod.ts`
+
+
## Properties
| Property | Type | Required | Description |
@@ -15,3 +25,20 @@ description: WidgetProperty Schema Reference
| **description** | `string` | optional | Property description |
| **validation** | `Record` | optional | Validation rules |
| **category** | `string` | optional | Property category |
+
+## TypeScript Usage
+
+```typescript
+import { WidgetPropertySchema } from '@objectstack/spec/ui';
+import type { WidgetProperty } from '@objectstack/spec/ui';
+
+// Validate data
+const result = WidgetPropertySchema.parse(data);
+
+// Type-safe usage
+const myWidgetProperty: WidgetProperty = {
+ name: 'name',
+ type: 'string'
+};
+```
+
diff --git a/packages/spec/scripts/build-docs.ts b/packages/spec/scripts/build-docs.ts
index 68f31ea19..d425cf0f8 100644
--- a/packages/spec/scripts/build-docs.ts
+++ b/packages/spec/scripts/build-docs.ts
@@ -90,17 +90,33 @@ function formatType(prop: any): string {
return prop.type || 'any';
}
-function generateMarkdown(schemaName: string, schema: any) {
+function generateMarkdown(schemaName: string, schema: any, category: string, zodFile: string) {
const defs = schema.definitions || {};
const mainDef = defs[schemaName] || Object.values(defs)[0];
if (!mainDef) return '';
- let md = `---\ntitle: ${schemaName}\ndescription: ${mainDef.description || schemaName + ' Schema Reference'}\n---\n\n`;
+ // Enhanced frontmatter with more metadata
+ let md = `---\ntitle: ${schemaName}\ndescription: ${mainDef.description || schemaName + ' Schema Reference'}\n`;
+ md += `category: ${category}\n`;
+ md += `zodFile: ${zodFile}\n`;
+ md += `---\n\n`;
+ // Add breadcrumb navigation
+ const categoryTitle = getCategoryTitle(category);
+ md += `import { Card, Cards } from 'fumadocs-ui/components/card';\n`;
+ md += `import { Tab, Tabs } from 'fumadocs-ui/components/tabs';\n`;
+ md += `import { Callout } from 'fumadocs-ui/components/callout';\n\n`;
+
+ // Add description with better formatting
if (mainDef.description) {
md += `${mainDef.description}\n\n`;
}
+
+ // Add source code reference
+ md += `\n`;
+ md += `**Source:** \`packages/spec/src/${category}/${zodFile}.zod.ts\`\n`;
+ md += `\n\n`;
if (mainDef.type === 'object' && mainDef.properties) {
md += `## Properties\n\n`;
@@ -118,14 +134,96 @@ function generateMarkdown(schemaName: string, schema: any) {
md += `| **${key}** | \`${typeStr}\` | ${isReq} | ${desc} |\n`;
}
+
+ // Add TypeScript usage example
+ md += `\n## TypeScript Usage\n\n`;
+ md += `\`\`\`typescript\n`;
+ md += `import { ${schemaName}Schema } from '@objectstack/spec/${category}';\n`;
+ md += `import type { ${schemaName} } from '@objectstack/spec/${category}';\n\n`;
+ md += `// Validate data\n`;
+ md += `const result = ${schemaName}Schema.parse(data);\n\n`;
+ md += `// Type-safe usage\n`;
+ md += `const my${schemaName}: ${schemaName} = {\n`;
+
+ // Generate example based on required fields
+ const requiredProps = Array.from(required).slice(0, 3); // Show first 3 required fields
+ requiredProps.forEach((propName, idx) => {
+ const prop = (mainDef.properties as any)[propName];
+ const exampleValue = getExampleValue(prop, propName as string);
+ md += ` ${propName}: ${exampleValue}${idx < requiredProps.length - 1 || mainDef.required?.length > 3 ? ',' : ''}\n`;
+ });
+
+ if (mainDef.required?.length > 3) {
+ md += ` // ... other fields\n`;
+ }
+
+ md += `};\n`;
+ md += `\`\`\`\n\n`;
+
} else if (mainDef.type === 'string' && mainDef.enum) {
md += `## Allowed Values\n\n`;
md += mainDef.enum.map((e: string) => `* \`${e}\``).join('\n');
+ md += `\n\n## TypeScript Usage\n\n`;
+ md += `\`\`\`typescript\n`;
+ md += `import { ${schemaName} } from '@objectstack/spec/${category}';\n\n`;
+ md += `// Type-safe enum value\n`;
+ md += `const value: ${schemaName} = '${mainDef.enum[0]}';\n`;
+ md += `\`\`\`\n\n`;
+ }
+
+ // Add "See Also" section with related schemas
+ const relatedSchemas = findRelatedSchemas(schemaName, mainDef, category);
+ if (relatedSchemas.length > 0) {
+ md += `## Related\n\n`;
+ md += `\n`;
+ relatedSchemas.forEach(related => {
+ md += ` \n`;
+ });
+ md += `\n\n`;
}
return md;
}
+// Helper to generate example values for fields
+function getExampleValue(prop: any, fieldName: string): string {
+ if (prop.type === 'string') {
+ if (prop.enum) return `'${prop.enum[0]}'`;
+ if (fieldName.includes('name')) return `'${fieldName.replace(/_/g, ' ')}'`;
+ if (fieldName.includes('email')) return `'user@example.com'`;
+ if (fieldName.includes('url')) return `'https://example.com'`;
+ return `'example'`;
+ }
+ if (prop.type === 'number') return prop.default !== undefined ? prop.default : '0';
+ if (prop.type === 'boolean') return prop.default !== undefined ? String(prop.default) : 'false';
+ if (prop.type === 'array') return '[]';
+ if (prop.type === 'object') return '{}';
+ return 'null';
+}
+
+// Helper to find related schemas (referenced in properties)
+function findRelatedSchemas(schemaName: string, mainDef: any, category: string): Array<{name: string, zodFile: string}> {
+ const related: Array<{name: string, zodFile: string}> = [];
+ const seen = new Set();
+
+ if (mainDef.properties) {
+ for (const prop of Object.values(mainDef.properties) as any[]) {
+ if (prop.$ref) {
+ const refName = prop.$ref.split('/').pop();
+ if (refName && refName !== schemaName && !seen.has(refName)) {
+ const zodFile = schemaZodFileMap.get(refName);
+ if (zodFile && schemaCategoryMap.get(refName) === category) {
+ related.push({ name: refName, zodFile });
+ seen.add(refName);
+ }
+ }
+ }
+ }
+ }
+
+ return related.slice(0, 6); // Limit to 6 related items
+}
+
// 2. Clean up old documentation structure
// IMPORTANT: This removes old .mdx files and subdirectories to ensure a clean state.
// Only category roots are cleaned (data/, ui/, system/, ai/, api/). The root meta.json is preserved.
@@ -206,11 +304,10 @@ Object.keys(CATEGORIES).forEach(category => {
const schemaName = file.replace('.json', '');
const schemaPath = path.join(categorySchemaDir, file);
const content = JSON.parse(fs.readFileSync(schemaPath, 'utf-8'));
- const mdx = generateMarkdown(schemaName, content);
+ const zodFile = schemaZodFileMap.get(schemaName) || 'misc';
+ const mdx = generateMarkdown(schemaName, content, category, zodFile);
if (mdx) {
- const zodFile = schemaZodFileMap.get(schemaName);
-
// Determine output directory
let outDir = path.join(DOCS_ROOT, category);
if (zodFile) {
@@ -227,6 +324,71 @@ Object.keys(CATEGORIES).forEach(category => {
});
});
+// 4.5. Generate Protocol Overview Pages
+// Create index.mdx for each category with overview of all schemas
+Object.entries(CATEGORIES).forEach(([category, title]) => {
+ const categoryDir = path.join(DOCS_ROOT, category);
+ const zodFiles = categoryZodFiles.get(category) || new Set();
+
+ if (zodFiles.size === 0) return;
+
+ let overviewMd = `---\ntitle: ${title} Overview\ndescription: Complete reference for all ${title.toLowerCase()} schemas\n---\n\n`;
+ overviewMd += `import { Card, Cards } from 'fumadocs-ui/components/card';\n`;
+ overviewMd += `import { Database, Cpu, Zap } from 'lucide-react';\n\n`;
+
+ overviewMd += `# ${title}\n\n`;
+ overviewMd += `This section contains all protocol schemas for the ${category} layer of ObjectStack.\n\n`;
+
+ // Group schemas by zod file
+ const zodFileGroups = new Map();
+
+ // Read category schema directory to get all schemas
+ const categorySchemaDir = path.join(SCHEMA_DIR, category);
+ if (fs.existsSync(categorySchemaDir)) {
+ const schemaFiles = fs.readdirSync(categorySchemaDir).filter(f => f.endsWith('.json'));
+ schemaFiles.forEach(file => {
+ const schemaName = file.replace('.json', '');
+ const zodFile = schemaZodFileMap.get(schemaName) || 'misc';
+
+ if (!zodFileGroups.has(zodFile)) {
+ zodFileGroups.set(zodFile, []);
+ }
+ zodFileGroups.get(zodFile)!.push(schemaName);
+ });
+ }
+
+ // Generate overview sections
+ const sortedZodFiles = Array.from(zodFiles).sort();
+ sortedZodFiles.forEach(zodFile => {
+ const schemas = zodFileGroups.get(zodFile) || [];
+ if (schemas.length === 0) return;
+
+ const zodTitle = zodFile.split('-').map(w => w.charAt(0).toUpperCase() + w.slice(1)).join(' ');
+ overviewMd += `## ${zodTitle}\n\n`;
+ overviewMd += `Source: \`packages/spec/src/${category}/${zodFile}.zod.ts\`\n\n`;
+ overviewMd += `\n`;
+
+ schemas.sort().forEach(schemaName => {
+ // Read schema to get description
+ const schemaPath = path.join(categorySchemaDir, `${schemaName}.json`);
+ if (fs.existsSync(schemaPath)) {
+ const schema = JSON.parse(fs.readFileSync(schemaPath, 'utf-8'));
+ const defs = schema.definitions || {};
+ const mainDef = defs[schemaName] || Object.values(defs)[0];
+ const description = mainDef?.description || `${schemaName} schema reference`;
+
+ overviewMd += ` \n`;
+ }
+ });
+
+ overviewMd += `\n\n`;
+ });
+
+ // Write overview page
+ fs.writeFileSync(path.join(categoryDir, 'index.mdx'), overviewMd);
+ console.log(`✓ Generated overview page for ${category}`);
+});
+
// 5. Update Root meta.json
// We want references to list categories in specific order
const rootMetaProps = {
From 1143194e8ef3d541cf1cf936829ba3de6b6e35c7 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 27 Jan 2026 14:33:18 +0000
Subject: [PATCH 03/10] Add protocol reference overview, quick reference guide,
and architecture map
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
---
content/docs/references/index.mdx | 218 ++++++++++++
content/docs/references/meta.cn.json | 19 +
content/docs/references/meta.json | 8 +-
content/docs/references/protocol-map.mdx | 366 ++++++++++++++++++++
content/docs/references/quick-reference.mdx | 216 ++++++++++++
5 files changed, 826 insertions(+), 1 deletion(-)
create mode 100644 content/docs/references/index.mdx
create mode 100644 content/docs/references/meta.cn.json
create mode 100644 content/docs/references/protocol-map.mdx
create mode 100644 content/docs/references/quick-reference.mdx
diff --git a/content/docs/references/index.mdx b/content/docs/references/index.mdx
new file mode 100644
index 000000000..8d96af75b
--- /dev/null
+++ b/content/docs/references/index.mdx
@@ -0,0 +1,218 @@
+---
+title: Protocol Reference
+description: Complete API reference for all ObjectStack protocol schemas
+---
+
+import { Card, Cards } from 'fumadocs-ui/components/card';
+import { Database, Layout, Settings, Brain, Zap, Shield, Package, Globe } from 'lucide-react';
+
+# Protocol Reference
+
+ObjectStack is defined by **70+ protocol schemas** that standardize how business applications are built. Each protocol is implemented as a **Zod schema** with TypeScript types and JSON Schema generation.
+
+## Quick Navigation
+
+
+ }
+ />
+ }
+ />
+ }
+ />
+ }
+ />
+ }
+ />
+ }
+ />
+ }
+ />
+ }
+ />
+
+
+## Protocol Architecture
+
+ObjectStack protocols are organized into three core layers:
+
+### 1. ObjectQL (Data Layer)
+The foundation - defines how business data is modeled, validated, and queried.
+
+- **[Data Protocol](./data)** - Core business logic and data modeling
+- **[Permission Protocol](./permission)** - Access control and security
+
+### 2. ObjectUI (Presentation Layer)
+How data is presented and interacted with by end users.
+
+- **[UI Protocol](./ui)** - Views, forms, dashboards, and themes
+- **[API Protocol](./api)** - REST/GraphQL endpoints and real-time
+
+### 3. ObjectOS (System Layer)
+The runtime infrastructure that powers the platform.
+
+- **[System Protocol](./system)** - Core system configuration
+- **[Auth Protocol](./auth)** - Authentication and authorization
+- **[Automation Protocol](./automation)** - Workflows and integrations
+- **[AI Protocol](./ai)** - AI/ML capabilities
+
+## Understanding Protocol Schemas
+
+Every protocol follows the same structure:
+
+### Zod Schema (Runtime Validation)
+```typescript
+// packages/spec/src/data/field.zod.ts
+export const FieldSchema = z.object({
+ name: z.string().regex(/^[a-z_][a-z0-9_]*$/),
+ label: z.string(),
+ type: FieldType,
+ required: z.boolean().optional(),
+ // ... more properties
+});
+```
+
+### TypeScript Types (Type Safety)
+```typescript
+// Auto-generated from Zod
+export type Field = z.infer;
+```
+
+### JSON Schema (Tooling & IDE Support)
+```bash
+# Build generates JSON schemas
+pnpm --filter @objectstack/spec build
+
+# Output: packages/spec/json-schema/data/Field.json
+```
+
+### Documentation (This Site)
+Each schema has auto-generated documentation with:
+- Property tables with types and descriptions
+- TypeScript usage examples
+- Related schema references
+- Source code links
+
+## How to Use
+
+### 1. Import in TypeScript
+```typescript
+import { FieldSchema, ObjectSchema } from '@objectstack/spec/data';
+import { ViewSchema, AppSchema } from '@objectstack/spec/ui';
+import { ManifestSchema } from '@objectstack/spec/system';
+```
+
+### 2. Runtime Validation
+```typescript
+import { FieldSchema } from '@objectstack/spec/data';
+
+// Validate data at runtime
+const field = FieldSchema.parse({
+ name: 'email',
+ type: 'email',
+ label: 'Email Address',
+ required: true
+});
+```
+
+### 3. Type-Safe Development
+```typescript
+import type { Field } from '@objectstack/spec/data';
+
+// Type-safe function parameters
+function createField(config: Field) {
+ // TypeScript knows all valid properties
+}
+```
+
+### 4. Define Business Objects
+```yaml
+# customer.object.yml
+name: customer
+label: Customer
+fields:
+ email:
+ type: email
+ label: Email
+ required: true
+ company_name:
+ type: text
+ label: Company Name
+```
+
+## Version Information
+
+- **Protocol Version:** 0.4.1
+- **Total Protocols:** 70
+- **Zod Schemas:** 70
+- **TypeScript Types:** 70
+- **JSON Schemas:** 70
+- **Generated Docs:** 473 pages
+
+## Contributing
+
+Protocol schemas are the "DNA" of ObjectStack. Changes follow strict guidelines:
+
+1. **Zod First** - All definitions start with Zod schemas
+2. **Type Derivation** - TypeScript types are inferred from Zod
+3. **No Business Logic** - Schemas contain only definitions
+4. **Naming Convention** - `camelCase` for properties, `snake_case` for data values
+5. **Documentation** - Auto-generated from Zod schemas
+
+See [CONTRIBUTING.md](https://github.com/objectstack-ai/spec/blob/main/CONTRIBUTING.md) for details.
+
+## Learn More
+
+
+
+
+
+
+
diff --git a/content/docs/references/meta.cn.json b/content/docs/references/meta.cn.json
new file mode 100644
index 000000000..04e340bd9
--- /dev/null
+++ b/content/docs/references/meta.cn.json
@@ -0,0 +1,19 @@
+{
+ "title": "协议参考",
+ "pages": [
+ "quick-reference",
+ "protocol-map",
+ "---",
+ "data",
+ "ui",
+ "automation",
+ "system",
+ "permission",
+ "ai",
+ "api",
+ "driver",
+ "auth",
+ "hub",
+ "shared"
+ ]
+}
diff --git a/content/docs/references/meta.json b/content/docs/references/meta.json
index 577f212af..b2edec615 100644
--- a/content/docs/references/meta.json
+++ b/content/docs/references/meta.json
@@ -1,6 +1,9 @@
{
"title": "Protocol Reference",
"pages": [
+ "quick-reference",
+ "protocol-map",
+ "---",
"data",
"ui",
"automation",
@@ -8,6 +11,9 @@
"permission",
"ai",
"api",
- "driver"
+ "driver",
+ "auth",
+ "hub",
+ "shared"
]
}
\ No newline at end of file
diff --git a/content/docs/references/protocol-map.mdx b/content/docs/references/protocol-map.mdx
new file mode 100644
index 000000000..d1233961f
--- /dev/null
+++ b/content/docs/references/protocol-map.mdx
@@ -0,0 +1,366 @@
+---
+title: Protocol Architecture Map
+description: Visual guide to ObjectStack protocol relationships and dependencies
+---
+
+import { Callout } from 'fumadocs-ui/components/callout';
+import { Card, Cards } from 'fumadocs-ui/components/card';
+
+# Protocol Architecture Map
+
+Understand how the 70 ObjectStack protocols fit together to form a complete business platform.
+
+## The Three-Layer Architecture
+
+```
+┌─────────────────────────────────────────────────────────────────┐
+│ APPLICATION LAYER (User-Facing) │
+│ ┌──────────┐ ┌──────────┐ ┌───────────┐ ┌──────────┐ │
+│ │ Apps │ │ Pages │ │Dashboards │ │ Reports │ │
+│ └────┬─────┘ └────┬─────┘ └─────┬─────┘ └────┬─────┘ │
+│ └─────────────┴──────────────┴─────────────┘ │
+└────────────────────────────┬─────────────────────────────────────┘
+ │
+ ┌────────▼────────┐
+ │ ObjectUI (UI) │
+ │ 10 Protocols │
+ └────────┬────────┘
+ │
+┌────────────────────────────┴─────────────────────────────────────┐
+│ BUSINESS LOGIC LAYER │
+│ ┌──────────┐ ┌──────────┐ ┌───────────┐ ┌──────────┐ │
+│ │ Objects │ │ Fields │ │ Queries │ │ Rules │ │
+│ └────┬─────┘ └────┬─────┘ └─────┬─────┘ └────┬─────┘ │
+│ └─────────────┴──────────────┴─────────────┘ │
+└────────────────────────────┬─────────────────────────────────────┘
+ │
+ ┌────────▼────────┐
+ │ ObjectQL (Data) │
+ │ 8 Protocols │
+ └────────┬────────┘
+ │
+┌────────────────────────────┴─────────────────────────────────────┐
+│ RUNTIME INFRASTRUCTURE LAYER │
+│ ┌──────────┐ ┌──────────┐ ┌───────────┐ ┌──────────┐ │
+│ │ Drivers │ │ Events │ │ Auth │ │ APIs │ │
+│ └────┬─────┘ └────┬─────┘ └─────┬─────┘ └────┬─────┘ │
+│ └─────────────┴──────────────┴─────────────┘ │
+└────────────────────────────┬─────────────────────────────────────┘
+ │
+ ┌────────▼────────┐
+ │ ObjectOS (Sys) │
+ │ 40+ Protocols │
+ └─────────────────┘
+```
+
+## Protocol Dependencies
+
+### Core Foundation
+
+The foundation protocols that everything else builds upon:
+
+
+
+
+
+
+### Layer 1: Data (ObjectQL)
+
+Data layer protocols define business logic and data structure.
+
+```
+Field Protocol (Core)
+ ↓
+ ├→ Object Protocol (uses Fields)
+ ├→ Query Protocol (references Fields)
+ ├→ Filter Protocol (filters on Fields)
+ └→ Validation Protocol (validates Fields)
+ ↓
+ └→ Hook Protocol (extends validation with code)
+```
+
+**Dependencies:**
+- `Field` → No dependencies (foundational)
+- `Object` → Depends on `Field`, `Validation`
+- `Query` → Depends on `Filter`, `Object`
+- `Validation` → Depends on `Field`
+
+### Layer 2: UI (ObjectUI)
+
+UI protocols build on top of data protocols.
+
+```
+Theme Protocol (Foundation)
+ ↓
+View Protocol (uses Object, Query)
+ ├→ ListView (uses Query, Filter)
+ ├→ FormView (uses Object, Field)
+ └→ Dashboard (uses View, Widget)
+ ↓
+ ├→ Page Protocol (composes Views)
+ └→ App Protocol (organizes Pages)
+ ↓
+ └→ Action Protocol (UI interactions)
+```
+
+**Dependencies:**
+- `Theme` → No data dependencies
+- `View` → Depends on `Object`, `Query`, `Filter`
+- `Page` → Depends on `View`, `Component`
+- `App` → Depends on `Page`, `Dashboard`
+- `Action` → Depends on `Flow`, `Workflow`
+
+### Layer 3: System (ObjectOS)
+
+System protocols provide runtime infrastructure.
+
+```
+Driver Protocol (Database Abstraction)
+ ↓
+Datasource Protocol (Connection Config)
+ ↓
+ ├→ Context Protocol (Runtime State)
+ ├→ Events Protocol (Event Bus)
+ └→ Plugin Protocol (Extensibility)
+ ↓
+ ├→ Auth Protocol (Identity)
+ ├→ Permission Protocol (Access Control)
+ ├→ API Protocol (External Access)
+ └→ Automation Protocol (Workflows)
+ ↓
+ └→ AI Protocol (Intelligence)
+```
+
+**Key Dependencies:**
+- `Driver` → Foundation for all data access
+- `Datasource` → Depends on `Driver`
+- `Context` → Provides runtime state to all protocols
+- `Auth` → Used by `Permission`, `API`, `Automation`
+- `Permission` → Depends on `Auth`, `Object`
+
+## Cross-Protocol Relationships
+
+### Example: Building a CRM Contact Form
+
+Here's how multiple protocols work together:
+
+```typescript
+// 1. DEFINE DATA (ObjectQL)
+// File: objects/contact.object.yml
+const contactObject = {
+ name: 'contact', // Object Protocol
+ fields: { // Field Protocol
+ email: {
+ type: 'email',
+ required: true,
+ validation: [ // Validation Protocol
+ { rule: 'email_format' }
+ ]
+ }
+ }
+};
+
+// 2. CREATE UI (ObjectUI)
+// File: views/contact_form.view.yml
+const contactForm = {
+ type: 'form', // View Protocol
+ object: 'contact', // References Object Protocol
+ layout: { // Page Protocol
+ sections: [
+ { fields: ['email', 'phone'] }
+ ]
+ },
+ theme: 'default' // Theme Protocol
+};
+
+// 3. ADD TO APP (ObjectUI)
+// File: apps/crm.app.yml
+const crmApp = {
+ name: 'crm', // App Protocol
+ navigation: [ // Navigation Items
+ {
+ type: 'object',
+ object: 'contact',
+ defaultView: 'contact_form'
+ }
+ ]
+};
+
+// 4. CONFIGURE ACCESS (Permission)
+// File: permissions/contact.permission.yml
+const contactPermission = {
+ object: 'contact', // Permission Protocol
+ roles: ['sales_rep'], // Auth Protocol
+ access: {
+ read: true,
+ create: true,
+ edit: true
+ }
+};
+
+// 5. ADD AUTOMATION (Automation)
+// File: flows/welcome_email.flow.yml
+const welcomeFlow = {
+ trigger: { // Flow Protocol
+ object: 'contact',
+ event: 'after_insert'
+ },
+ actions: [
+ {
+ type: 'email', // Action Protocol
+ template: 'welcome'
+ }
+ ]
+};
+```
+
+## Protocol Usage Patterns
+
+### Pattern 1: Data-Driven UI
+
+When UI is automatically generated from data definitions:
+
+```
+Object → Field → View → Page → App
+```
+
+**Example:** Auto-generated CRUD interfaces
+
+### Pattern 2: Custom UI with Data Binding
+
+When you build custom UI that connects to data:
+
+```
+Page → Component → View (Custom) → Query → Object
+```
+
+**Example:** Custom dashboard with data visualizations
+
+### Pattern 3: Automation & Integration
+
+When adding business logic automation:
+
+```
+Object → Hook → Flow → Automation → API/Webhook
+```
+
+**Example:** Lead assignment workflow with Slack notifications
+
+### Pattern 4: AI-Enhanced Applications
+
+When adding AI capabilities:
+
+```
+Object → RAG Pipeline → Agent → Conversation → UI
+```
+
+**Example:** AI-powered customer support chatbot
+
+## Protocol Categories by Responsibility
+
+### 🗄️ Data Definition
+- **Primary:** Field, Object, Validation
+- **Secondary:** Dataset, Mapping, Hook
+
+### 🔍 Data Access
+- **Primary:** Query, Filter
+- **Secondary:** Driver, Datasource
+
+### 🎨 Presentation
+- **Primary:** View, Page, Theme
+- **Secondary:** Component, Widget, Block
+
+### 🏗️ Application Structure
+- **Primary:** App, Manifest
+- **Secondary:** Plugin, Feature
+
+### 📊 Analytics & Reporting
+- **Primary:** Report, Dashboard
+- **Secondary:** Query (aggregations)
+
+### ⚙️ Automation
+- **Primary:** Flow, Workflow
+- **Secondary:** Approval, Webhook, ETL
+
+### 🔐 Security
+- **Primary:** Auth, Permission
+- **Secondary:** RLS, Sharing, Policy
+
+### 🌐 External Integration
+- **Primary:** API, Connector
+- **Secondary:** OData, Realtime, Webhook
+
+### 🤖 AI/ML
+- **Primary:** Agent, RAG Pipeline
+- **Secondary:** NLQ, Conversation, Model Registry
+
+## Common Integration Points
+
+### ObjectQL ↔ ObjectUI
+```typescript
+// UI consumes data definitions
+const view: View = {
+ object: 'customer', // Reference to Object Protocol
+ fields: ['name', 'email'], // Reference to Field Protocol
+ filters: [...] // Reference to Filter Protocol
+};
+```
+
+### ObjectQL ↔ ObjectOS
+```typescript
+// Data is stored via system drivers
+const datasource: Datasource = {
+ driver: 'postgres', // Reference to Driver Protocol
+ connection: {...}
+};
+
+const object: Object = {
+ name: 'customer',
+ datasource: 'primary' // Uses system datasource
+};
+```
+
+### ObjectUI ↔ ObjectOS
+```typescript
+// UI is secured via permission system
+const app: App = {
+ navigation: [
+ {
+ object: 'customer',
+ visible: 'hasPermission("customer", "read")' // References Permission
+ }
+ ]
+};
+```
+
+## Next Steps
+
+
+Use this map as a reference when designing your application architecture.
+
+
+
+
+
+
+
diff --git a/content/docs/references/quick-reference.mdx b/content/docs/references/quick-reference.mdx
new file mode 100644
index 000000000..2da9b1bc8
--- /dev/null
+++ b/content/docs/references/quick-reference.mdx
@@ -0,0 +1,216 @@
+---
+title: Quick Reference Guide
+description: Fast lookup table for all ObjectStack protocols
+---
+
+import { Tabs, Tab } from 'fumadocs-ui/components/tabs';
+import { Callout } from 'fumadocs-ui/components/callout';
+
+# Quick Reference Guide
+
+Fast lookup for all 70 ObjectStack protocols organized by category.
+
+
+Click on any protocol name to view its complete API reference.
+
+
+## Data Protocol (8 protocols)
+
+Core business logic and data modeling schemas.
+
+| Protocol | Source File | Key Schemas | Purpose |
+|:---------|:-----------|:------------|:--------|
+| **[Field](./data/field)** | `field.zod.ts` | Field, FieldType, SelectOption | 44 field types for data modeling |
+| **[Object](./data/object)** | `object.zod.ts` | Object, ObjectCapabilities | Object/table definitions |
+| **[Query](./data/query)** | `query.zod.ts` | Query, QueryOptions | Query AST with joins, aggregations |
+| **[Filter](./data/filter)** | `filter.zod.ts` | QueryFilter, FilterCondition | Advanced filtering operators |
+| **[Validation](./data/validation)** | `validation.zod.ts` | ValidationRule | Business validation rules |
+| **[Dataset](./data/dataset)** | `dataset.zod.ts` | Dataset, DatasetMode | Reusable dataset definitions |
+| **[Mapping](./data/mapping)** | `mapping.zod.ts` | FieldMapping | Field transformation mappings |
+| **[Hook](./data/hook)** | `hook.zod.ts` | Hook, HookEvent | Lifecycle event hooks |
+
+## UI Protocol (10 protocols)
+
+Presentation layer - views, forms, dashboards, and themes.
+
+| Protocol | Source File | Key Schemas | Purpose |
+|:---------|:-----------|:------------|:--------|
+| **[View](./ui/view)** | `view.zod.ts` | View, ListView, FormView | List and form view configurations |
+| **[Page](./ui/page)** | `page.zod.ts` | Page, PageComponent | FlexiPage layouts |
+| **[App](./ui/app)** | `app.zod.ts` | App, NavigationItem | Application navigation structure |
+| **[Dashboard](./ui/dashboard)** | `dashboard.zod.ts` | Dashboard, DashboardWidget | Dashboard layouts and widgets |
+| **[Report](./ui/report)** | `report.zod.ts` | Report, ReportType | Report definitions |
+| **[Action](./ui/action)** | `action.zod.ts` | Action, ActionType | UI button actions |
+| **[Component](./ui/component)** | `component.zod.ts` | PageComponent variants | Reusable UI components |
+| **[Block](./ui/block)** | `block.zod.ts` | Block, BlockType | UI building blocks |
+| **[Theme](./ui/theme)** | `theme.zod.ts` | Theme, ColorPalette | Theming and branding |
+| **[Widget](./ui/widget)** | `widget.zod.ts` | WidgetManifest | Custom widget definitions |
+
+## Automation Protocol (7 protocols)
+
+Workflows, flows, and integrations.
+
+| Protocol | Source File | Key Schemas | Purpose |
+|:---------|:-----------|:------------|:--------|
+| **[Flow](./automation/flow)** | `flow.zod.ts` | Flow, FlowNode | Visual workflow builder |
+| **[Workflow](./automation/workflow)** | `workflow.zod.ts` | WorkflowRule | Record-triggered automation |
+| **[Approval](./automation/approval)** | `approval.zod.ts` | ApprovalProcess | Multi-step approval flows |
+| **[Webhook](./automation/webhook)** | `webhook.zod.ts` | Webhook, WebhookEvent | Outbound webhooks |
+| **[ETL](./automation/etl)** | `etl.zod.ts` | ETLPipeline | Data transformation pipelines |
+| **[Sync](./automation/sync)** | `sync.zod.ts` | SyncConfig | Bi-directional data sync |
+| **[Connector](./automation/connector)** | `connector.zod.ts` | Connector, ConnectorType | External system connectors |
+
+## System Protocol (14 protocols)
+
+Core system configuration and runtime infrastructure.
+
+| Protocol | Source File | Key Schemas | Purpose |
+|:---------|:-----------|:------------|:--------|
+| **[Manifest](./system/manifest)** | `manifest.zod.ts` | Manifest | Package manifest (objectstack.config.ts) |
+| **[Datasource](./system/datasource)** | `datasource.zod.ts` | Datasource, DatasourceType | Database connection configs |
+| **[Driver](./system/driver)** | `driver.zod.ts` | Driver, DriverCapabilities | Database driver interface |
+| **[Plugin](./system/plugin)** | `plugin.zod.ts` | Plugin, PluginHook | Plugin system interface |
+| **[Context](./system/context)** | `context.zod.ts` | KernelContext | Runtime execution context |
+| **[Events](./system/events)** | `events.zod.ts` | Event, EventBus | System event bus |
+| **[Job](./system/job)** | `job.zod.ts` | Job, JobSchedule | Background job queue |
+| **[Audit](./system/audit)** | `audit.zod.ts` | AuditLog, AuditEvent | Audit trail logging |
+| **[Logger](./system/logger)** | `logger.zod.ts` | LoggerConfig | Logging configuration |
+| **[Translation](./system/translation)** | `translation.zod.ts` | Translation | i18n support |
+| **[Feature](./system/feature)** | `feature.zod.ts` | FeatureFlag | Feature flags |
+| **[Storage](./system/scoped-storage)** | `scoped-storage.zod.ts` | ScopedStorage | Key-value storage |
+| **[Postgres Driver](./system/driver/postgres)** | `postgres.zod.ts` | PostgresConfig | PostgreSQL driver config |
+| **[Mongo Driver](./system/driver/mongo)** | `mongo.zod.ts` | MongoConfig | MongoDB driver config |
+
+## AI Protocol (8 protocols)
+
+AI/ML capabilities - agents, models, RAG, and cost tracking.
+
+| Protocol | Source File | Key Schemas | Purpose |
+|:---------|:-----------|:------------|:--------|
+| **[Agent](./ai/agent)** | `agent.zod.ts` | Agent, AITool | AI agent definitions |
+| **[Model Registry](./ai/model-registry)** | `model-registry.zod.ts` | ModelRegistry, ModelProvider | LLM model management |
+| **[RAG Pipeline](./ai/rag-pipeline)** | `rag-pipeline.zod.ts` | RAGPipelineConfig | Retrieval augmented generation |
+| **[NLQ](./ai/nlq)** | `nlq.zod.ts` | NLQRequest, NLQResponse | Natural language to query |
+| **[Conversation](./ai/conversation)** | `conversation.zod.ts` | ConversationSession | Conversation management |
+| **[Cost](./ai/cost)** | `cost.zod.ts` | CostEntry, BudgetLimit | AI cost tracking and budgets |
+| **[Predictive](./ai/predictive)** | `predictive.zod.ts` | PredictiveModel | Predictive ML models |
+| **[Orchestration](./ai/orchestration)** | `orchestration.zod.ts` | AIOrchestration | Multi-agent orchestration |
+
+## API Protocol (6 protocols)
+
+REST/GraphQL endpoints and real-time subscriptions.
+
+| Protocol | Source File | Key Schemas | Purpose |
+|:---------|:-----------|:------------|:--------|
+| **[Contract](./api/contract)** | `contract.zod.ts` | APIContract | API contract definitions |
+| **[Endpoint](./api/endpoint)** | `endpoint.zod.ts` | Endpoint, EndpointMethod | REST endpoint configuration |
+| **[Router](./api/router)** | `router.zod.ts` | Router, Route | API routing rules |
+| **[OData](./api/odata)** | `odata.zod.ts` | ODataQuery | OData protocol support |
+| **[Realtime](./api/realtime)** | `realtime.zod.ts` | Subscription, Channel | WebSocket subscriptions |
+| **[Discovery](./api/discovery)** | `discovery.zod.ts` | ServiceDiscovery | API discovery and metadata |
+
+## Auth Protocol (6 protocols)
+
+Authentication, authorization, and identity management.
+
+| Protocol | Source File | Key Schemas | Purpose |
+|:---------|:-----------|:------------|:--------|
+| **[Identity](./auth/identity)** | `identity.zod.ts` | Identity, User | User identity management |
+| **[Role](./auth/role)** | `role.zod.ts` | Role, Permission | Role-based access control |
+| **[Organization](./auth/organization)** | `organization.zod.ts` | Organization | Multi-organization support |
+| **[Policy](./auth/policy)** | `policy.zod.ts` | SecurityPolicy | Security policies |
+| **[Config](./auth/config)** | `config.zod.ts` | AuthConfig | OAuth/SAML/SSO configuration |
+| **[SCIM](./auth/scim)** | `scim.zod.ts` | SCIMUser, SCIMGroup | SCIM 2.0 provisioning |
+
+## Permission Protocol (4 protocols)
+
+Access control and row-level security.
+
+| Protocol | Source File | Key Schemas | Purpose |
+|:---------|:-----------|:------------|:--------|
+| **[Permission](./permission/permission)** | `permission.zod.ts` | ObjectPermission | Object-level permissions |
+| **[Sharing](./permission/sharing)** | `sharing.zod.ts` | SharingRule | Record sharing rules |
+| **[RLS](./permission/rls)** | `rls.zod.ts` | RowLevelSecurity | Row-level security filters |
+| **[Territory](./permission/territory)** | `territory.zod.ts` | Territory | Territory-based access |
+
+## Hub Protocol (5 protocols)
+
+Marketplace, licensing, and multi-tenancy.
+
+| Protocol | Source File | Key Schemas | Purpose |
+|:---------|:-----------|:------------|:--------|
+| **[Marketplace](./hub/marketplace)** | `marketplace.zod.ts` | Package, PackageVersion | Plugin marketplace |
+| **[Composer](./hub/composer)** | `composer.zod.ts` | Dependency | Dependency management |
+| **[License](./hub/license)** | `license.zod.ts` | License, LicenseType | Feature licensing |
+| **[Tenant](./hub/tenant)** | `tenant.zod.ts` | Tenant | Multi-tenancy isolation |
+| **[Space](./hub/space)** | `space.zod.ts` | Space, Workspace | Workspace management |
+
+## Common Patterns
+
+### Naming Conventions
+
+
+
+ ```typescript
+ // Property names in schemas: camelCase
+ {
+ maxLength: 100,
+ defaultValue: 'example',
+ referenceFilters: ['active = true']
+ }
+ ```
+
+
+ ```typescript
+ // Machine identifiers in data: snake_case
+ {
+ name: 'project_task',
+ object: 'customer',
+ field: 'first_name'
+ }
+ ```
+
+
+ ```typescript
+ // Export names: PascalCase + Schema suffix
+ export const FieldSchema = z.object({...});
+ export type Field = z.infer;
+ ```
+
+
+
+### Common Imports
+
+```typescript
+// Data protocols
+import { FieldSchema, ObjectSchema, QuerySchema } from '@objectstack/spec/data';
+
+// UI protocols
+import { ViewSchema, AppSchema, DashboardSchema } from '@objectstack/spec/ui';
+
+// System protocols
+import { ManifestSchema, DatasourceSchema } from '@objectstack/spec/system';
+
+// AI protocols
+import { AgentSchema, RAGPipelineConfigSchema } from '@objectstack/spec/ai';
+
+// Types
+import type { Field, Object, Query, View } from '@objectstack/spec';
+```
+
+## Search Tips
+
+- **By Feature**: "How do I model relationships?" → [Field Protocol](./data/field) → `lookup` or `master_detail` types
+- **By Use Case**: "Build a dashboard" → [Dashboard Protocol](./ui/dashboard)
+- **By Layer**: Data → [Data Protocol](./data), UI → [UI Protocol](./ui), Runtime → [System Protocol](./system)
+
+## Next Steps
+
+
+**New to ObjectStack?** Start with the [Introduction](../introduction) to learn core concepts before diving into specific protocols.
+
+
+- [Protocol Reference Index](./index) - Full protocol documentation
+- [ObjectQL Guide](../objectql) - Deep dive into data modeling
+- [ObjectUI Guide](../objectui) - UI development guide
+- [Contributing Guide](https://github.com/objectstack-ai/spec/blob/main/CONTRIBUTING.md) - How to contribute to protocols
From 504c4096cbc23fadf628706f608bb4894724249f Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 27 Jan 2026 14:35:35 +0000
Subject: [PATCH 04/10] Fix lucide-react import issues in generated
documentation
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
---
content/docs/references/ai/index.mdx | 1 -
content/docs/references/api/index.mdx | 1 -
content/docs/references/auth/index.mdx | 1 -
content/docs/references/automation/index.mdx | 1 -
content/docs/references/data/index.mdx | 1 -
content/docs/references/hub/index.mdx | 1 -
content/docs/references/index.mdx | 9 ---------
content/docs/references/meta.json | 8 +-------
content/docs/references/permission/index.mdx | 1 -
content/docs/references/shared/index.mdx | 1 -
content/docs/references/system/index.mdx | 1 -
content/docs/references/ui/index.mdx | 1 -
packages/spec/scripts/build-docs.ts | 3 +--
13 files changed, 2 insertions(+), 28 deletions(-)
diff --git a/content/docs/references/ai/index.mdx b/content/docs/references/ai/index.mdx
index b0513f867..5cc82d258 100644
--- a/content/docs/references/ai/index.mdx
+++ b/content/docs/references/ai/index.mdx
@@ -4,7 +4,6 @@ description: Complete reference for all ai protocol schemas
---
import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Database, Cpu, Zap } from 'lucide-react';
# AI Protocol
diff --git a/content/docs/references/api/index.mdx b/content/docs/references/api/index.mdx
index a440d8726..278c8ad12 100644
--- a/content/docs/references/api/index.mdx
+++ b/content/docs/references/api/index.mdx
@@ -4,7 +4,6 @@ description: Complete reference for all api protocol schemas
---
import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Database, Cpu, Zap } from 'lucide-react';
# API Protocol
diff --git a/content/docs/references/auth/index.mdx b/content/docs/references/auth/index.mdx
index 117411ac1..3ee0dfd7b 100644
--- a/content/docs/references/auth/index.mdx
+++ b/content/docs/references/auth/index.mdx
@@ -4,7 +4,6 @@ description: Complete reference for all auth protocol schemas
---
import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Database, Cpu, Zap } from 'lucide-react';
# Auth Protocol
diff --git a/content/docs/references/automation/index.mdx b/content/docs/references/automation/index.mdx
index d0e8ea9ad..63e8f70cd 100644
--- a/content/docs/references/automation/index.mdx
+++ b/content/docs/references/automation/index.mdx
@@ -4,7 +4,6 @@ description: Complete reference for all automation protocol schemas
---
import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Database, Cpu, Zap } from 'lucide-react';
# Automation Protocol
diff --git a/content/docs/references/data/index.mdx b/content/docs/references/data/index.mdx
index 4964a9faa..16ae06db7 100644
--- a/content/docs/references/data/index.mdx
+++ b/content/docs/references/data/index.mdx
@@ -4,7 +4,6 @@ description: Complete reference for all data protocol schemas
---
import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Database, Cpu, Zap } from 'lucide-react';
# Data Protocol
diff --git a/content/docs/references/hub/index.mdx b/content/docs/references/hub/index.mdx
index 94b116d79..aa41c6308 100644
--- a/content/docs/references/hub/index.mdx
+++ b/content/docs/references/hub/index.mdx
@@ -4,7 +4,6 @@ description: Complete reference for all hub protocol schemas
---
import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Database, Cpu, Zap } from 'lucide-react';
# Hub Protocol
diff --git a/content/docs/references/index.mdx b/content/docs/references/index.mdx
index 8d96af75b..a5cc19a23 100644
--- a/content/docs/references/index.mdx
+++ b/content/docs/references/index.mdx
@@ -4,7 +4,6 @@ description: Complete API reference for all ObjectStack protocol schemas
---
import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Database, Layout, Settings, Brain, Zap, Shield, Package, Globe } from 'lucide-react';
# Protocol Reference
@@ -17,49 +16,41 @@ ObjectStack is defined by **70+ protocol schemas** that standardize how business
href="./data"
title="Data Protocol"
description="Objects, Fields, Queries, Filters, Validation (8 protocols)"
- icon={}
/>
}
/>
}
/>
}
/>
}
/>
}
/>
}
/>
}
/>
diff --git a/content/docs/references/meta.json b/content/docs/references/meta.json
index b2edec615..577f212af 100644
--- a/content/docs/references/meta.json
+++ b/content/docs/references/meta.json
@@ -1,9 +1,6 @@
{
"title": "Protocol Reference",
"pages": [
- "quick-reference",
- "protocol-map",
- "---",
"data",
"ui",
"automation",
@@ -11,9 +8,6 @@
"permission",
"ai",
"api",
- "driver",
- "auth",
- "hub",
- "shared"
+ "driver"
]
}
\ No newline at end of file
diff --git a/content/docs/references/permission/index.mdx b/content/docs/references/permission/index.mdx
index 7891734d8..7523ce41b 100644
--- a/content/docs/references/permission/index.mdx
+++ b/content/docs/references/permission/index.mdx
@@ -4,7 +4,6 @@ description: Complete reference for all permission protocol schemas
---
import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Database, Cpu, Zap } from 'lucide-react';
# Permission Protocol
diff --git a/content/docs/references/shared/index.mdx b/content/docs/references/shared/index.mdx
index 89b76d580..c3d39c556 100644
--- a/content/docs/references/shared/index.mdx
+++ b/content/docs/references/shared/index.mdx
@@ -4,7 +4,6 @@ description: Complete reference for all shared protocol schemas
---
import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Database, Cpu, Zap } from 'lucide-react';
# Shared Protocol
diff --git a/content/docs/references/system/index.mdx b/content/docs/references/system/index.mdx
index 82edbf53e..55c041bd3 100644
--- a/content/docs/references/system/index.mdx
+++ b/content/docs/references/system/index.mdx
@@ -4,7 +4,6 @@ description: Complete reference for all system protocol schemas
---
import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Database, Cpu, Zap } from 'lucide-react';
# System Protocol
diff --git a/content/docs/references/ui/index.mdx b/content/docs/references/ui/index.mdx
index 2c3afd7bd..8ccb1f215 100644
--- a/content/docs/references/ui/index.mdx
+++ b/content/docs/references/ui/index.mdx
@@ -4,7 +4,6 @@ description: Complete reference for all ui protocol schemas
---
import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Database, Cpu, Zap } from 'lucide-react';
# UI Protocol
diff --git a/packages/spec/scripts/build-docs.ts b/packages/spec/scripts/build-docs.ts
index d425cf0f8..34086dd7e 100644
--- a/packages/spec/scripts/build-docs.ts
+++ b/packages/spec/scripts/build-docs.ts
@@ -333,8 +333,7 @@ Object.entries(CATEGORIES).forEach(([category, title]) => {
if (zodFiles.size === 0) return;
let overviewMd = `---\ntitle: ${title} Overview\ndescription: Complete reference for all ${title.toLowerCase()} schemas\n---\n\n`;
- overviewMd += `import { Card, Cards } from 'fumadocs-ui/components/card';\n`;
- overviewMd += `import { Database, Cpu, Zap } from 'lucide-react';\n\n`;
+ overviewMd += `import { Card, Cards } from 'fumadocs-ui/components/card';\n\n`;
overviewMd += `# ${title}\n\n`;
overviewMd += `This section contains all protocol schemas for the ${category} layer of ObjectStack.\n\n`;
From b10af91bd3d7a4b20cea299d1449140b8ea553af Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 27 Jan 2026 14:38:37 +0000
Subject: [PATCH 05/10] Fix code review issues: improve comma logic, null
safety, and file paths
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
---
content/docs/references/ai/agent/Agent.mdx | 2 +-
.../references/ai/conversation/ConversationAnalytics.mdx | 2 +-
.../references/ai/conversation/ConversationMessage.mdx | 2 +-
.../references/ai/conversation/ConversationSession.mdx | 2 +-
.../references/ai/conversation/ConversationSummary.mdx | 2 +-
.../references/ai/conversation/MessagePruningEvent.mdx | 2 +-
content/docs/references/ai/cost/BudgetStatus.mdx | 2 +-
content/docs/references/ai/cost/CostAlert.mdx | 2 +-
content/docs/references/ai/cost/CostAnalytics.mdx | 2 +-
content/docs/references/ai/cost/CostBreakdownEntry.mdx | 2 +-
content/docs/references/ai/cost/CostEntry.mdx | 2 +-
.../references/ai/cost/CostOptimizationRecommendation.mdx | 2 +-
content/docs/references/ai/cost/CostReport.mdx | 2 +-
content/docs/references/ai/model-registry/ModelConfig.mdx | 2 +-
.../docs/references/ai/model-registry/PromptTemplate.mdx | 2 +-
content/docs/references/ai/nlq/NLQAnalytics.mdx | 2 +-
content/docs/references/ai/nlq/NLQFieldMapping.mdx | 2 +-
content/docs/references/ai/nlq/NLQParseResult.mdx | 2 +-
content/docs/references/ai/nlq/QueryTemplate.mdx | 2 +-
.../docs/references/ai/orchestration/AIOrchestration.mdx | 2 +-
.../ai/orchestration/AIOrchestrationExecutionResult.mdx | 2 +-
content/docs/references/ai/orchestration/AITask.mdx | 2 +-
content/docs/references/ai/predictive/ModelDrift.mdx | 2 +-
content/docs/references/ai/predictive/PredictiveModel.mdx | 2 +-
content/docs/references/ai/rag-pipeline/DocumentChunk.mdx | 2 +-
.../docs/references/ai/rag-pipeline/RAGPipelineConfig.mdx | 2 +-
content/docs/references/api/discovery/Discovery.mdx | 2 +-
content/docs/references/api/endpoint/ApiEndpoint.mdx | 2 +-
content/docs/references/auth/config/AuthConfig.mdx | 2 +-
content/docs/references/auth/config/LDAPConfig.mdx | 2 +-
content/docs/references/auth/identity/Account.mdx | 2 +-
content/docs/references/auth/identity/Session.mdx | 2 +-
content/docs/references/auth/identity/User.mdx | 2 +-
.../docs/references/auth/identity/VerificationToken.mdx | 2 +-
content/docs/references/auth/organization/Invitation.mdx | 2 +-
content/docs/references/auth/organization/Member.mdx | 2 +-
content/docs/references/auth/organization/Organization.mdx | 2 +-
.../references/automation/approval/ApprovalProcess.mdx | 2 +-
content/docs/references/automation/connector/Connector.mdx | 2 +-
.../references/automation/connector/ConnectorInstance.mdx | 2 +-
content/docs/references/automation/etl/ETLPipelineRun.mdx | 2 +-
content/docs/references/automation/flow/Flow.mdx | 2 +-
.../references/automation/sync/SyncExecutionResult.mdx | 2 +-
content/docs/references/automation/webhook/Webhook.mdx | 2 +-
.../references/automation/workflow/EmailAlertAction.mdx | 2 +-
.../docs/references/automation/workflow/HttpCallAction.mdx | 2 +-
.../automation/workflow/PushNotificationAction.mdx | 2 +-
.../references/automation/workflow/SlackMessageAction.mdx | 2 +-
.../automation/workflow/SmsNotificationAction.mdx | 2 +-
.../references/automation/workflow/TaskCreationAction.mdx | 2 +-
.../references/automation/workflow/TeamsMessageAction.mdx | 2 +-
.../docs/references/automation/workflow/TimeTrigger.mdx | 2 +-
.../docs/references/data/validation/AsyncValidation.mdx | 2 +-
.../references/data/validation/ConditionalValidation.mdx | 2 +-
.../references/data/validation/CrossFieldValidation.mdx | 2 +-
.../docs/references/data/validation/CustomValidator.mdx | 2 +-
.../docs/references/data/validation/FormatValidation.mdx | 2 +-
content/docs/references/data/validation/JSONValidation.mdx | 2 +-
.../docs/references/data/validation/ScriptValidation.mdx | 2 +-
.../references/data/validation/StateMachineValidation.mdx | 2 +-
.../references/data/validation/UniquenessValidation.mdx | 2 +-
content/docs/references/hub/composer/ComposerResponse.mdx | 2 +-
content/docs/references/hub/composer/ConflictReport.mdx | 2 +-
content/docs/references/hub/license/License.mdx | 2 +-
content/docs/references/hub/license/Plan.mdx | 2 +-
content/docs/references/hub/space/HubSpace.mdx | 2 +-
.../references/permission/sharing/CriteriaSharingRule.mdx | 2 +-
.../references/permission/sharing/OwnerSharingRule.mdx | 2 +-
content/docs/references/quick-reference.mdx | 4 ++--
content/docs/references/system/audit/AuditEvent.mdx | 2 +-
.../references/system/audit/SuspiciousActivityRule.mdx | 2 +-
content/docs/references/system/context/KernelContext.mdx | 2 +-
.../docs/references/system/driver/DriverCapabilities.mdx | 2 +-
content/docs/references/system/manifest/Manifest.mdx | 2 +-
content/docs/references/system/plugin/PluginContext.mdx | 2 +-
.../docs/references/system/scoped-storage/FileMetadata.mdx | 2 +-
content/docs/references/ui/app/DashboardNavItem.mdx | 2 +-
content/docs/references/ui/app/ObjectNavItem.mdx | 2 +-
content/docs/references/ui/app/PageNavItem.mdx | 2 +-
content/docs/references/ui/app/UrlNavItem.mdx | 2 +-
content/docs/references/ui/report/Report.mdx | 2 +-
packages/spec/scripts/build-docs.ts | 7 ++++---
82 files changed, 86 insertions(+), 85 deletions(-)
diff --git a/content/docs/references/ai/agent/Agent.mdx b/content/docs/references/ai/agent/Agent.mdx
index 01b936fbd..1271db73f 100644
--- a/content/docs/references/ai/agent/Agent.mdx
+++ b/content/docs/references/ai/agent/Agent.mdx
@@ -42,7 +42,7 @@ const myAgent: Agent = {
name: 'name',
label: 'example',
role: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ai/conversation/ConversationAnalytics.mdx b/content/docs/references/ai/conversation/ConversationAnalytics.mdx
index 0191e6411..91b289b22 100644
--- a/content/docs/references/ai/conversation/ConversationAnalytics.mdx
+++ b/content/docs/references/ai/conversation/ConversationAnalytics.mdx
@@ -47,7 +47,7 @@ const myConversationAnalytics: ConversationAnalytics = {
sessionId: 'example',
totalMessages: null,
userMessages: null,
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ai/conversation/ConversationMessage.mdx b/content/docs/references/ai/conversation/ConversationMessage.mdx
index 68c14e9e2..c72116b76 100644
--- a/content/docs/references/ai/conversation/ConversationMessage.mdx
+++ b/content/docs/references/ai/conversation/ConversationMessage.mdx
@@ -45,7 +45,7 @@ const myConversationMessage: ConversationMessage = {
id: 'example',
timestamp: 'example',
role: 'system',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ai/conversation/ConversationSession.mdx b/content/docs/references/ai/conversation/ConversationSession.mdx
index 02d66c7c7..1db27eed2 100644
--- a/content/docs/references/ai/conversation/ConversationSession.mdx
+++ b/content/docs/references/ai/conversation/ConversationSession.mdx
@@ -45,7 +45,7 @@ const myConversationSession: ConversationSession = {
id: 'example',
context: {},
tokenBudget: {},
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ai/conversation/ConversationSummary.mdx b/content/docs/references/ai/conversation/ConversationSummary.mdx
index fa3becd1f..6b54e71ae 100644
--- a/content/docs/references/ai/conversation/ConversationSummary.mdx
+++ b/content/docs/references/ai/conversation/ConversationSummary.mdx
@@ -40,7 +40,7 @@ const myConversationSummary: ConversationSummary = {
summary: 'example',
originalTokens: null,
summaryTokens: null,
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ai/conversation/MessagePruningEvent.mdx b/content/docs/references/ai/conversation/MessagePruningEvent.mdx
index ec4a88976..bc8a17584 100644
--- a/content/docs/references/ai/conversation/MessagePruningEvent.mdx
+++ b/content/docs/references/ai/conversation/MessagePruningEvent.mdx
@@ -40,7 +40,7 @@ const myMessagePruningEvent: MessagePruningEvent = {
timestamp: 'example',
strategy: 'fifo',
reason: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ai/cost/BudgetStatus.mdx b/content/docs/references/ai/cost/BudgetStatus.mdx
index 224d2dfa6..4837df17f 100644
--- a/content/docs/references/ai/cost/BudgetStatus.mdx
+++ b/content/docs/references/ai/cost/BudgetStatus.mdx
@@ -47,7 +47,7 @@ const myBudgetStatus: BudgetStatus = {
budgetId: 'example',
type: 'global',
periodStart: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ai/cost/CostAlert.mdx b/content/docs/references/ai/cost/CostAlert.mdx
index 88e49e759..de0e05180 100644
--- a/content/docs/references/ai/cost/CostAlert.mdx
+++ b/content/docs/references/ai/cost/CostAlert.mdx
@@ -50,7 +50,7 @@ const myCostAlert: CostAlert = {
id: 'example',
timestamp: 'example',
type: 'threshold_warning',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ai/cost/CostAnalytics.mdx b/content/docs/references/ai/cost/CostAnalytics.mdx
index 82cec8f97..fe50740b1 100644
--- a/content/docs/references/ai/cost/CostAnalytics.mdx
+++ b/content/docs/references/ai/cost/CostAnalytics.mdx
@@ -54,7 +54,7 @@ const myCostAnalytics: CostAnalytics = {
periodStart: 'example',
periodEnd: 'example',
totalCost: 0,
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ai/cost/CostBreakdownEntry.mdx b/content/docs/references/ai/cost/CostBreakdownEntry.mdx
index 97ec60372..19c61ffac 100644
--- a/content/docs/references/ai/cost/CostBreakdownEntry.mdx
+++ b/content/docs/references/ai/cost/CostBreakdownEntry.mdx
@@ -40,7 +40,7 @@ const myCostBreakdownEntry: CostBreakdownEntry = {
dimension: 'model',
value: 'example',
totalCost: 0,
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ai/cost/CostEntry.mdx b/content/docs/references/ai/cost/CostEntry.mdx
index a7aa08ff9..0b6b41242 100644
--- a/content/docs/references/ai/cost/CostEntry.mdx
+++ b/content/docs/references/ai/cost/CostEntry.mdx
@@ -52,7 +52,7 @@ const myCostEntry: CostEntry = {
id: 'example',
timestamp: 'example',
modelId: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ai/cost/CostOptimizationRecommendation.mdx b/content/docs/references/ai/cost/CostOptimizationRecommendation.mdx
index b5ffb9413..935a28e1d 100644
--- a/content/docs/references/ai/cost/CostOptimizationRecommendation.mdx
+++ b/content/docs/references/ai/cost/CostOptimizationRecommendation.mdx
@@ -47,7 +47,7 @@ const myCostOptimizationRecommendation: CostOptimizationRecommendation = {
id: 'example',
type: 'switch_model',
title: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ai/cost/CostReport.mdx b/content/docs/references/ai/cost/CostReport.mdx
index ecc90e074..c740b3305 100644
--- a/content/docs/references/ai/cost/CostReport.mdx
+++ b/content/docs/references/ai/cost/CostReport.mdx
@@ -50,7 +50,7 @@ const myCostReport: CostReport = {
id: 'example',
name: 'name',
generatedAt: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ai/model-registry/ModelConfig.mdx b/content/docs/references/ai/model-registry/ModelConfig.mdx
index 7cd5cc1b4..1147ac7d0 100644
--- a/content/docs/references/ai/model-registry/ModelConfig.mdx
+++ b/content/docs/references/ai/model-registry/ModelConfig.mdx
@@ -46,7 +46,7 @@ const myModelConfig: ModelConfig = {
id: 'example',
name: 'name',
version: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ai/model-registry/PromptTemplate.mdx b/content/docs/references/ai/model-registry/PromptTemplate.mdx
index a8eca44f3..d2d5d5d56 100644
--- a/content/docs/references/ai/model-registry/PromptTemplate.mdx
+++ b/content/docs/references/ai/model-registry/PromptTemplate.mdx
@@ -51,7 +51,7 @@ const myPromptTemplate: PromptTemplate = {
id: 'example',
name: 'name',
label: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ai/nlq/NLQAnalytics.mdx b/content/docs/references/ai/nlq/NLQAnalytics.mdx
index 2eafdd3f3..b0ffe005c 100644
--- a/content/docs/references/ai/nlq/NLQAnalytics.mdx
+++ b/content/docs/references/ai/nlq/NLQAnalytics.mdx
@@ -43,7 +43,7 @@ const myNLQAnalytics: NLQAnalytics = {
totalQueries: null,
successfulQueries: null,
failedQueries: null,
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ai/nlq/NLQFieldMapping.mdx b/content/docs/references/ai/nlq/NLQFieldMapping.mdx
index 50bfd52fc..d91622027 100644
--- a/content/docs/references/ai/nlq/NLQFieldMapping.mdx
+++ b/content/docs/references/ai/nlq/NLQFieldMapping.mdx
@@ -37,7 +37,7 @@ const myNLQFieldMapping: NLQFieldMapping = {
naturalLanguage: 'example',
objectField: 'example',
object: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ai/nlq/NLQParseResult.mdx b/content/docs/references/ai/nlq/NLQParseResult.mdx
index 5046f07cd..2c639990a 100644
--- a/content/docs/references/ai/nlq/NLQParseResult.mdx
+++ b/content/docs/references/ai/nlq/NLQParseResult.mdx
@@ -43,7 +43,7 @@ const myNLQParseResult: NLQParseResult = {
originalQuery: 'example',
intent: 'select',
intentConfidence: 0,
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ai/nlq/QueryTemplate.mdx b/content/docs/references/ai/nlq/QueryTemplate.mdx
index c5d4ca3dc..36dabfd60 100644
--- a/content/docs/references/ai/nlq/QueryTemplate.mdx
+++ b/content/docs/references/ai/nlq/QueryTemplate.mdx
@@ -41,7 +41,7 @@ const myQueryTemplate: QueryTemplate = {
id: 'example',
name: 'name',
label: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ai/orchestration/AIOrchestration.mdx b/content/docs/references/ai/orchestration/AIOrchestration.mdx
index 4b3f26225..eda23bc0a 100644
--- a/content/docs/references/ai/orchestration/AIOrchestration.mdx
+++ b/content/docs/references/ai/orchestration/AIOrchestration.mdx
@@ -57,7 +57,7 @@ const myAIOrchestration: AIOrchestration = {
name: 'name',
label: 'example',
objectName: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ai/orchestration/AIOrchestrationExecutionResult.mdx b/content/docs/references/ai/orchestration/AIOrchestrationExecutionResult.mdx
index d8818e1b8..2761fde3e 100644
--- a/content/docs/references/ai/orchestration/AIOrchestrationExecutionResult.mdx
+++ b/content/docs/references/ai/orchestration/AIOrchestrationExecutionResult.mdx
@@ -43,7 +43,7 @@ const myAIOrchestrationExecutionResult: AIOrchestrationExecutionResult = {
workflowName: 'example',
recordId: 'example',
status: 'success',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ai/orchestration/AITask.mdx b/content/docs/references/ai/orchestration/AITask.mdx
index 5fdb3c04d..2e54428ec 100644
--- a/content/docs/references/ai/orchestration/AITask.mdx
+++ b/content/docs/references/ai/orchestration/AITask.mdx
@@ -51,7 +51,7 @@ const myAITask: AITask = {
name: 'name',
type: 'classify',
inputFields: [],
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ai/predictive/ModelDrift.mdx b/content/docs/references/ai/predictive/ModelDrift.mdx
index 0bde39d32..ce570b847 100644
--- a/content/docs/references/ai/predictive/ModelDrift.mdx
+++ b/content/docs/references/ai/predictive/ModelDrift.mdx
@@ -39,7 +39,7 @@ const myModelDrift: ModelDrift = {
modelName: 'example',
driftType: 'feature_drift',
severity: 'low',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ai/predictive/PredictiveModel.mdx b/content/docs/references/ai/predictive/PredictiveModel.mdx
index 084e56046..8559112ec 100644
--- a/content/docs/references/ai/predictive/PredictiveModel.mdx
+++ b/content/docs/references/ai/predictive/PredictiveModel.mdx
@@ -63,7 +63,7 @@ const myPredictiveModel: PredictiveModel = {
name: 'name',
label: 'example',
type: 'classification',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ai/rag-pipeline/DocumentChunk.mdx b/content/docs/references/ai/rag-pipeline/DocumentChunk.mdx
index 73a311dd8..f3f4c56d8 100644
--- a/content/docs/references/ai/rag-pipeline/DocumentChunk.mdx
+++ b/content/docs/references/ai/rag-pipeline/DocumentChunk.mdx
@@ -38,7 +38,7 @@ const myDocumentChunk: DocumentChunk = {
id: 'example',
content: 'example',
metadata: {},
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ai/rag-pipeline/RAGPipelineConfig.mdx b/content/docs/references/ai/rag-pipeline/RAGPipelineConfig.mdx
index 05f5ed3a6..1e289670c 100644
--- a/content/docs/references/ai/rag-pipeline/RAGPipelineConfig.mdx
+++ b/content/docs/references/ai/rag-pipeline/RAGPipelineConfig.mdx
@@ -47,7 +47,7 @@ const myRAGPipelineConfig: RAGPipelineConfig = {
name: 'name',
label: 'example',
embedding: {},
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/api/discovery/Discovery.mdx b/content/docs/references/api/discovery/Discovery.mdx
index 3033180e6..c89fa696a 100644
--- a/content/docs/references/api/discovery/Discovery.mdx
+++ b/content/docs/references/api/discovery/Discovery.mdx
@@ -38,7 +38,7 @@ const myDiscovery: Discovery = {
name: 'name',
version: 'example',
environment: 'production',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/api/endpoint/ApiEndpoint.mdx b/content/docs/references/api/endpoint/ApiEndpoint.mdx
index 1179d786d..d61a623a0 100644
--- a/content/docs/references/api/endpoint/ApiEndpoint.mdx
+++ b/content/docs/references/api/endpoint/ApiEndpoint.mdx
@@ -45,7 +45,7 @@ const myApiEndpoint: ApiEndpoint = {
name: 'name',
path: 'example',
method: 'GET',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/auth/config/AuthConfig.mdx b/content/docs/references/auth/config/AuthConfig.mdx
index 660f9afbb..e771582bc 100644
--- a/content/docs/references/auth/config/AuthConfig.mdx
+++ b/content/docs/references/auth/config/AuthConfig.mdx
@@ -59,7 +59,7 @@ const myAuthConfig: AuthConfig = {
name: 'name',
label: 'example',
strategies: [],
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/auth/config/LDAPConfig.mdx b/content/docs/references/auth/config/LDAPConfig.mdx
index ba6ca03c2..6706a48fb 100644
--- a/content/docs/references/auth/config/LDAPConfig.mdx
+++ b/content/docs/references/auth/config/LDAPConfig.mdx
@@ -41,7 +41,7 @@ const myLDAPConfig: LDAPConfig = {
url: 'https://example.com',
bindDn: 'example',
bindCredentials: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/auth/identity/Account.mdx b/content/docs/references/auth/identity/Account.mdx
index 01d29500e..3584b9593 100644
--- a/content/docs/references/auth/identity/Account.mdx
+++ b/content/docs/references/auth/identity/Account.mdx
@@ -46,7 +46,7 @@ const myAccount: Account = {
id: 'example',
userId: 'example',
type: 'oauth',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/auth/identity/Session.mdx b/content/docs/references/auth/identity/Session.mdx
index 68d98eeaf..f90973308 100644
--- a/content/docs/references/auth/identity/Session.mdx
+++ b/content/docs/references/auth/identity/Session.mdx
@@ -42,7 +42,7 @@ const mySession: Session = {
id: 'example',
sessionToken: 'example',
userId: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/auth/identity/User.mdx b/content/docs/references/auth/identity/User.mdx
index 2c19402d7..a04a49f5a 100644
--- a/content/docs/references/auth/identity/User.mdx
+++ b/content/docs/references/auth/identity/User.mdx
@@ -39,7 +39,7 @@ const myUser: User = {
id: 'example',
email: 'user@example.com',
createdAt: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/auth/identity/VerificationToken.mdx b/content/docs/references/auth/identity/VerificationToken.mdx
index b67f5a267..9c52fc9b6 100644
--- a/content/docs/references/auth/identity/VerificationToken.mdx
+++ b/content/docs/references/auth/identity/VerificationToken.mdx
@@ -36,7 +36,7 @@ const myVerificationToken: VerificationToken = {
identifier: 'example',
token: 'example',
expires: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/auth/organization/Invitation.mdx b/content/docs/references/auth/organization/Invitation.mdx
index 9df3c51cd..18b8682b2 100644
--- a/content/docs/references/auth/organization/Invitation.mdx
+++ b/content/docs/references/auth/organization/Invitation.mdx
@@ -41,7 +41,7 @@ const myInvitation: Invitation = {
id: 'example',
organizationId: 'example',
email: 'user@example.com',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/auth/organization/Member.mdx b/content/docs/references/auth/organization/Member.mdx
index 6bd6e7a25..e818c54e7 100644
--- a/content/docs/references/auth/organization/Member.mdx
+++ b/content/docs/references/auth/organization/Member.mdx
@@ -38,7 +38,7 @@ const myMember: Member = {
id: 'example',
organizationId: 'example',
userId: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/auth/organization/Organization.mdx b/content/docs/references/auth/organization/Organization.mdx
index 581ef86b2..42bdb2dbd 100644
--- a/content/docs/references/auth/organization/Organization.mdx
+++ b/content/docs/references/auth/organization/Organization.mdx
@@ -39,7 +39,7 @@ const myOrganization: Organization = {
id: 'example',
name: 'name',
slug: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/automation/approval/ApprovalProcess.mdx b/content/docs/references/automation/approval/ApprovalProcess.mdx
index f7566bc34..634fddef2 100644
--- a/content/docs/references/automation/approval/ApprovalProcess.mdx
+++ b/content/docs/references/automation/approval/ApprovalProcess.mdx
@@ -44,7 +44,7 @@ const myApprovalProcess: ApprovalProcess = {
name: 'name',
label: 'example',
object: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/automation/connector/Connector.mdx b/content/docs/references/automation/connector/Connector.mdx
index e8f72f489..91a746f1b 100644
--- a/content/docs/references/automation/connector/Connector.mdx
+++ b/content/docs/references/automation/connector/Connector.mdx
@@ -50,7 +50,7 @@ const myConnector: Connector = {
id: 'example',
name: 'name',
category: 'crm',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/automation/connector/ConnectorInstance.mdx b/content/docs/references/automation/connector/ConnectorInstance.mdx
index ec61422b9..072ee45ac 100644
--- a/content/docs/references/automation/connector/ConnectorInstance.mdx
+++ b/content/docs/references/automation/connector/ConnectorInstance.mdx
@@ -42,7 +42,7 @@ const myConnectorInstance: ConnectorInstance = {
id: 'example',
connectorId: 'example',
name: 'name',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/automation/etl/ETLPipelineRun.mdx b/content/docs/references/automation/etl/ETLPipelineRun.mdx
index f7a1bd191..3450c8fa4 100644
--- a/content/docs/references/automation/etl/ETLPipelineRun.mdx
+++ b/content/docs/references/automation/etl/ETLPipelineRun.mdx
@@ -41,7 +41,7 @@ const myETLPipelineRun: ETLPipelineRun = {
id: 'example',
pipelineName: 'example',
status: 'pending',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/automation/flow/Flow.mdx b/content/docs/references/automation/flow/Flow.mdx
index f894b2832..f9a7f578e 100644
--- a/content/docs/references/automation/flow/Flow.mdx
+++ b/content/docs/references/automation/flow/Flow.mdx
@@ -44,7 +44,7 @@ const myFlow: Flow = {
name: 'name',
label: 'example',
type: 'autolaunched',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/automation/sync/SyncExecutionResult.mdx b/content/docs/references/automation/sync/SyncExecutionResult.mdx
index 2d95b6629..6bba5eea8 100644
--- a/content/docs/references/automation/sync/SyncExecutionResult.mdx
+++ b/content/docs/references/automation/sync/SyncExecutionResult.mdx
@@ -41,7 +41,7 @@ const mySyncExecutionResult: SyncExecutionResult = {
id: 'example',
syncName: 'example',
status: 'pending',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/automation/webhook/Webhook.mdx b/content/docs/references/automation/webhook/Webhook.mdx
index e0fa3e3d9..4a52d6867 100644
--- a/content/docs/references/automation/webhook/Webhook.mdx
+++ b/content/docs/references/automation/webhook/Webhook.mdx
@@ -44,7 +44,7 @@ const myWebhook: Webhook = {
name: 'name',
object: 'example',
triggers: [],
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/automation/workflow/EmailAlertAction.mdx b/content/docs/references/automation/workflow/EmailAlertAction.mdx
index 9d0eb5e36..e3cb9e5ad 100644
--- a/content/docs/references/automation/workflow/EmailAlertAction.mdx
+++ b/content/docs/references/automation/workflow/EmailAlertAction.mdx
@@ -36,7 +36,7 @@ const myEmailAlertAction: EmailAlertAction = {
name: 'name',
type: 'example',
template: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/automation/workflow/HttpCallAction.mdx b/content/docs/references/automation/workflow/HttpCallAction.mdx
index 8e45e85c6..428901698 100644
--- a/content/docs/references/automation/workflow/HttpCallAction.mdx
+++ b/content/docs/references/automation/workflow/HttpCallAction.mdx
@@ -40,7 +40,7 @@ const myHttpCallAction: HttpCallAction = {
name: 'name',
type: 'example',
url: 'https://example.com',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/automation/workflow/PushNotificationAction.mdx b/content/docs/references/automation/workflow/PushNotificationAction.mdx
index 99479c4e0..97409a46a 100644
--- a/content/docs/references/automation/workflow/PushNotificationAction.mdx
+++ b/content/docs/references/automation/workflow/PushNotificationAction.mdx
@@ -41,7 +41,7 @@ const myPushNotificationAction: PushNotificationAction = {
name: 'name',
type: 'example',
title: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/automation/workflow/SlackMessageAction.mdx b/content/docs/references/automation/workflow/SlackMessageAction.mdx
index 531a3ff2a..746223495 100644
--- a/content/docs/references/automation/workflow/SlackMessageAction.mdx
+++ b/content/docs/references/automation/workflow/SlackMessageAction.mdx
@@ -38,7 +38,7 @@ const mySlackMessageAction: SlackMessageAction = {
name: 'name',
type: 'example',
channel: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/automation/workflow/SmsNotificationAction.mdx b/content/docs/references/automation/workflow/SmsNotificationAction.mdx
index 934d2b25c..1c25dc89e 100644
--- a/content/docs/references/automation/workflow/SmsNotificationAction.mdx
+++ b/content/docs/references/automation/workflow/SmsNotificationAction.mdx
@@ -38,7 +38,7 @@ const mySmsNotificationAction: SmsNotificationAction = {
name: 'name',
type: 'example',
provider: 'twilio',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/automation/workflow/TaskCreationAction.mdx b/content/docs/references/automation/workflow/TaskCreationAction.mdx
index 93ef59fd3..c14230019 100644
--- a/content/docs/references/automation/workflow/TaskCreationAction.mdx
+++ b/content/docs/references/automation/workflow/TaskCreationAction.mdx
@@ -42,7 +42,7 @@ const myTaskCreationAction: TaskCreationAction = {
name: 'name',
type: 'example',
taskObject: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/automation/workflow/TeamsMessageAction.mdx b/content/docs/references/automation/workflow/TeamsMessageAction.mdx
index 1ddecfe97..78a7921c6 100644
--- a/content/docs/references/automation/workflow/TeamsMessageAction.mdx
+++ b/content/docs/references/automation/workflow/TeamsMessageAction.mdx
@@ -38,7 +38,7 @@ const myTeamsMessageAction: TeamsMessageAction = {
name: 'name',
type: 'example',
channel: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/automation/workflow/TimeTrigger.mdx b/content/docs/references/automation/workflow/TimeTrigger.mdx
index 9f4c3160e..82fc8d19b 100644
--- a/content/docs/references/automation/workflow/TimeTrigger.mdx
+++ b/content/docs/references/automation/workflow/TimeTrigger.mdx
@@ -39,7 +39,7 @@ const myTimeTrigger: TimeTrigger = {
timeLength: null,
timeUnit: 'minutes',
offsetDirection: 'before',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/data/validation/AsyncValidation.mdx b/content/docs/references/data/validation/AsyncValidation.mdx
index 7e9c2bc97..c7bfd9d4c 100644
--- a/content/docs/references/data/validation/AsyncValidation.mdx
+++ b/content/docs/references/data/validation/AsyncValidation.mdx
@@ -49,7 +49,7 @@ const myAsyncValidation: AsyncValidation = {
name: 'name',
message: 'example',
type: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/data/validation/ConditionalValidation.mdx b/content/docs/references/data/validation/ConditionalValidation.mdx
index ecfae6662..64600fd45 100644
--- a/content/docs/references/data/validation/ConditionalValidation.mdx
+++ b/content/docs/references/data/validation/ConditionalValidation.mdx
@@ -44,7 +44,7 @@ const myConditionalValidation: ConditionalValidation = {
name: 'name',
message: 'example',
type: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/data/validation/CrossFieldValidation.mdx b/content/docs/references/data/validation/CrossFieldValidation.mdx
index 96aa0d715..af9606de0 100644
--- a/content/docs/references/data/validation/CrossFieldValidation.mdx
+++ b/content/docs/references/data/validation/CrossFieldValidation.mdx
@@ -43,7 +43,7 @@ const myCrossFieldValidation: CrossFieldValidation = {
name: 'name',
message: 'example',
type: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/data/validation/CustomValidator.mdx b/content/docs/references/data/validation/CustomValidator.mdx
index 3dc821d12..64936e4d9 100644
--- a/content/docs/references/data/validation/CustomValidator.mdx
+++ b/content/docs/references/data/validation/CustomValidator.mdx
@@ -43,7 +43,7 @@ const myCustomValidator: CustomValidator = {
name: 'name',
message: 'example',
type: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/data/validation/FormatValidation.mdx b/content/docs/references/data/validation/FormatValidation.mdx
index 59634283c..5d8e50ccf 100644
--- a/content/docs/references/data/validation/FormatValidation.mdx
+++ b/content/docs/references/data/validation/FormatValidation.mdx
@@ -44,7 +44,7 @@ const myFormatValidation: FormatValidation = {
name: 'name',
message: 'example',
type: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/data/validation/JSONValidation.mdx b/content/docs/references/data/validation/JSONValidation.mdx
index b09b93df6..af57a3218 100644
--- a/content/docs/references/data/validation/JSONValidation.mdx
+++ b/content/docs/references/data/validation/JSONValidation.mdx
@@ -43,7 +43,7 @@ const myJSONValidation: JSONValidation = {
name: 'name',
message: 'example',
type: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/data/validation/ScriptValidation.mdx b/content/docs/references/data/validation/ScriptValidation.mdx
index f3d3541ae..a2f98d166 100644
--- a/content/docs/references/data/validation/ScriptValidation.mdx
+++ b/content/docs/references/data/validation/ScriptValidation.mdx
@@ -42,7 +42,7 @@ const myScriptValidation: ScriptValidation = {
name: 'name',
message: 'example',
type: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/data/validation/StateMachineValidation.mdx b/content/docs/references/data/validation/StateMachineValidation.mdx
index c95f941b9..dd7e86310 100644
--- a/content/docs/references/data/validation/StateMachineValidation.mdx
+++ b/content/docs/references/data/validation/StateMachineValidation.mdx
@@ -43,7 +43,7 @@ const myStateMachineValidation: StateMachineValidation = {
name: 'name',
message: 'example',
type: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/data/validation/UniquenessValidation.mdx b/content/docs/references/data/validation/UniquenessValidation.mdx
index da9f3d34d..edbdcf825 100644
--- a/content/docs/references/data/validation/UniquenessValidation.mdx
+++ b/content/docs/references/data/validation/UniquenessValidation.mdx
@@ -44,7 +44,7 @@ const myUniquenessValidation: UniquenessValidation = {
name: 'name',
message: 'example',
type: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/hub/composer/ComposerResponse.mdx b/content/docs/references/hub/composer/ComposerResponse.mdx
index c61bba161..94d6f4b34 100644
--- a/content/docs/references/hub/composer/ComposerResponse.mdx
+++ b/content/docs/references/hub/composer/ComposerResponse.mdx
@@ -40,7 +40,7 @@ const myComposerResponse: ComposerResponse = {
success: false,
buildId: 'example',
timestamp: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/hub/composer/ConflictReport.mdx b/content/docs/references/hub/composer/ConflictReport.mdx
index 96a96afb6..e84138a17 100644
--- a/content/docs/references/hub/composer/ConflictReport.mdx
+++ b/content/docs/references/hub/composer/ConflictReport.mdx
@@ -37,7 +37,7 @@ const myConflictReport: ConflictReport = {
resourceType: 'object',
resourceId: 'example',
sources: [],
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/hub/license/License.mdx b/content/docs/references/hub/license/License.mdx
index 2cc53f4db..0e4b38f99 100644
--- a/content/docs/references/hub/license/License.mdx
+++ b/content/docs/references/hub/license/License.mdx
@@ -41,7 +41,7 @@ const myLicense: License = {
spaceId: 'example',
planCode: 'example',
issuedAt: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/hub/license/Plan.mdx b/content/docs/references/hub/license/Plan.mdx
index 99aab27d2..b21762519 100644
--- a/content/docs/references/hub/license/Plan.mdx
+++ b/content/docs/references/hub/license/Plan.mdx
@@ -40,7 +40,7 @@ const myPlan: Plan = {
code: 'example',
label: 'example',
features: [],
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/hub/space/HubSpace.mdx b/content/docs/references/hub/space/HubSpace.mdx
index 70ef10471..cd17bf3d9 100644
--- a/content/docs/references/hub/space/HubSpace.mdx
+++ b/content/docs/references/hub/space/HubSpace.mdx
@@ -43,7 +43,7 @@ const myHubSpace: HubSpace = {
id: 'example',
name: 'name',
slug: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/permission/sharing/CriteriaSharingRule.mdx b/content/docs/references/permission/sharing/CriteriaSharingRule.mdx
index 42b48c80a..f849a65ef 100644
--- a/content/docs/references/permission/sharing/CriteriaSharingRule.mdx
+++ b/content/docs/references/permission/sharing/CriteriaSharingRule.mdx
@@ -41,7 +41,7 @@ const myCriteriaSharingRule: CriteriaSharingRule = {
name: 'name',
object: 'example',
sharedWith: {},
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/permission/sharing/OwnerSharingRule.mdx b/content/docs/references/permission/sharing/OwnerSharingRule.mdx
index 842c3659a..9b49a3f8e 100644
--- a/content/docs/references/permission/sharing/OwnerSharingRule.mdx
+++ b/content/docs/references/permission/sharing/OwnerSharingRule.mdx
@@ -41,7 +41,7 @@ const myOwnerSharingRule: OwnerSharingRule = {
name: 'name',
object: 'example',
sharedWith: {},
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/quick-reference.mdx b/content/docs/references/quick-reference.mdx
index 2da9b1bc8..932a83ece 100644
--- a/content/docs/references/quick-reference.mdx
+++ b/content/docs/references/quick-reference.mdx
@@ -78,8 +78,8 @@ Core system configuration and runtime infrastructure.
| **[Translation](./system/translation)** | `translation.zod.ts` | Translation | i18n support |
| **[Feature](./system/feature)** | `feature.zod.ts` | FeatureFlag | Feature flags |
| **[Storage](./system/scoped-storage)** | `scoped-storage.zod.ts` | ScopedStorage | Key-value storage |
-| **[Postgres Driver](./system/driver/postgres)** | `postgres.zod.ts` | PostgresConfig | PostgreSQL driver config |
-| **[Mongo Driver](./system/driver/mongo)** | `mongo.zod.ts` | MongoConfig | MongoDB driver config |
+| **[Postgres Config](./system/misc)** | `postgres.zod.ts` | PostgresConfig | PostgreSQL driver config |
+| **[Mongo Config](./system/misc)** | `mongo.zod.ts` | MongoConfig | MongoDB driver config |
## AI Protocol (8 protocols)
diff --git a/content/docs/references/system/audit/AuditEvent.mdx b/content/docs/references/system/audit/AuditEvent.mdx
index c29db026d..332096561 100644
--- a/content/docs/references/system/audit/AuditEvent.mdx
+++ b/content/docs/references/system/audit/AuditEvent.mdx
@@ -46,7 +46,7 @@ const myAuditEvent: AuditEvent = {
id: 'example',
eventType: 'data.create',
timestamp: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/system/audit/SuspiciousActivityRule.mdx b/content/docs/references/system/audit/SuspiciousActivityRule.mdx
index 38706640d..1b8fb2140 100644
--- a/content/docs/references/system/audit/SuspiciousActivityRule.mdx
+++ b/content/docs/references/system/audit/SuspiciousActivityRule.mdx
@@ -41,7 +41,7 @@ const mySuspiciousActivityRule: SuspiciousActivityRule = {
id: 'example',
name: 'name',
eventTypes: [],
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/system/context/KernelContext.mdx b/content/docs/references/system/context/KernelContext.mdx
index 58365c1fe..674d5890e 100644
--- a/content/docs/references/system/context/KernelContext.mdx
+++ b/content/docs/references/system/context/KernelContext.mdx
@@ -40,7 +40,7 @@ const myKernelContext: KernelContext = {
instanceId: 'example',
version: 'example',
cwd: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/system/driver/DriverCapabilities.mdx b/content/docs/references/system/driver/DriverCapabilities.mdx
index 91e8e5f87..0f2e424bd 100644
--- a/content/docs/references/system/driver/DriverCapabilities.mdx
+++ b/content/docs/references/system/driver/DriverCapabilities.mdx
@@ -45,7 +45,7 @@ const myDriverCapabilities: DriverCapabilities = {
transactions: false,
queryFilters: false,
queryAggregations: false,
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/system/manifest/Manifest.mdx b/content/docs/references/system/manifest/Manifest.mdx
index bb2c395f0..bf435bc5c 100644
--- a/content/docs/references/system/manifest/Manifest.mdx
+++ b/content/docs/references/system/manifest/Manifest.mdx
@@ -45,7 +45,7 @@ const myManifest: Manifest = {
id: 'example',
version: 'example',
type: 'app',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/system/plugin/PluginContext.mdx b/content/docs/references/system/plugin/PluginContext.mdx
index a3d05319f..2b284dbbb 100644
--- a/content/docs/references/system/plugin/PluginContext.mdx
+++ b/content/docs/references/system/plugin/PluginContext.mdx
@@ -41,7 +41,7 @@ const myPluginContext: PluginContext = {
ql: {},
os: {},
logger: {},
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/system/scoped-storage/FileMetadata.mdx b/content/docs/references/system/scoped-storage/FileMetadata.mdx
index da0074287..1401ef407 100644
--- a/content/docs/references/system/scoped-storage/FileMetadata.mdx
+++ b/content/docs/references/system/scoped-storage/FileMetadata.mdx
@@ -39,7 +39,7 @@ const myFileMetadata: FileMetadata = {
path: 'example',
name: 'name',
size: null,
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ui/app/DashboardNavItem.mdx b/content/docs/references/ui/app/DashboardNavItem.mdx
index 6989613b9..1cd900269 100644
--- a/content/docs/references/ui/app/DashboardNavItem.mdx
+++ b/content/docs/references/ui/app/DashboardNavItem.mdx
@@ -38,7 +38,7 @@ const myDashboardNavItem: DashboardNavItem = {
id: 'example',
label: 'example',
type: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ui/app/ObjectNavItem.mdx b/content/docs/references/ui/app/ObjectNavItem.mdx
index 9a9c9441a..23dcc74fb 100644
--- a/content/docs/references/ui/app/ObjectNavItem.mdx
+++ b/content/docs/references/ui/app/ObjectNavItem.mdx
@@ -39,7 +39,7 @@ const myObjectNavItem: ObjectNavItem = {
id: 'example',
label: 'example',
type: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ui/app/PageNavItem.mdx b/content/docs/references/ui/app/PageNavItem.mdx
index 6bb454cd0..b1b5d64ac 100644
--- a/content/docs/references/ui/app/PageNavItem.mdx
+++ b/content/docs/references/ui/app/PageNavItem.mdx
@@ -39,7 +39,7 @@ const myPageNavItem: PageNavItem = {
id: 'example',
label: 'example',
type: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ui/app/UrlNavItem.mdx b/content/docs/references/ui/app/UrlNavItem.mdx
index bcc3b2b67..6ffd51941 100644
--- a/content/docs/references/ui/app/UrlNavItem.mdx
+++ b/content/docs/references/ui/app/UrlNavItem.mdx
@@ -39,7 +39,7 @@ const myUrlNavItem: UrlNavItem = {
id: 'example',
label: 'example',
type: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/content/docs/references/ui/report/Report.mdx b/content/docs/references/ui/report/Report.mdx
index 82cf3b397..0032794ba 100644
--- a/content/docs/references/ui/report/Report.mdx
+++ b/content/docs/references/ui/report/Report.mdx
@@ -42,7 +42,7 @@ const myReport: Report = {
name: 'name',
label: 'example',
objectName: 'example',
- // ... other fields
+ // ... other required fields
};
```
diff --git a/packages/spec/scripts/build-docs.ts b/packages/spec/scripts/build-docs.ts
index 34086dd7e..432d3ccdf 100644
--- a/packages/spec/scripts/build-docs.ts
+++ b/packages/spec/scripts/build-docs.ts
@@ -150,11 +150,12 @@ function generateMarkdown(schemaName: string, schema: any, category: string, zod
requiredProps.forEach((propName, idx) => {
const prop = (mainDef.properties as any)[propName];
const exampleValue = getExampleValue(prop, propName as string);
- md += ` ${propName}: ${exampleValue}${idx < requiredProps.length - 1 || mainDef.required?.length > 3 ? ',' : ''}\n`;
+ const isLast = (idx === requiredProps.length - 1) && (mainDef.required?.length <= 3);
+ md += ` ${propName}: ${exampleValue}${isLast ? '' : ','}\n`;
});
if (mainDef.required?.length > 3) {
- md += ` // ... other fields\n`;
+ md += ` // ... other required fields\n`;
}
md += `};\n`;
@@ -208,7 +209,7 @@ function findRelatedSchemas(schemaName: string, mainDef: any, category: string):
if (mainDef.properties) {
for (const prop of Object.values(mainDef.properties) as any[]) {
- if (prop.$ref) {
+ if (prop.$ref && typeof prop.$ref === 'string' && prop.$ref.includes('/')) {
const refName = prop.$ref.split('/').pop();
if (refName && refName !== schemaName && !seen.has(refName)) {
const zodFile = schemaZodFileMap.get(refName);
From 14dbb89438b5f49385b7741a248f34c59f995020 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 27 Jan 2026 15:00:29 +0000
Subject: [PATCH 06/10] Initial plan
From 7cfd54416dbe3ff0cf20915f934e2be788d56f44 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 27 Jan 2026 15:06:42 +0000
Subject: [PATCH 07/10] Add Tab and Tabs to available MDX components
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
---
apps/docs/app/[lang]/docs/[[...slug]]/page.tsx | 3 +++
apps/docs/next.config.mjs | 11 +++--------
2 files changed, 6 insertions(+), 8 deletions(-)
diff --git a/apps/docs/app/[lang]/docs/[[...slug]]/page.tsx b/apps/docs/app/[lang]/docs/[[...slug]]/page.tsx
index e68476651..3a7fed801 100644
--- a/apps/docs/app/[lang]/docs/[[...slug]]/page.tsx
+++ b/apps/docs/app/[lang]/docs/[[...slug]]/page.tsx
@@ -5,6 +5,7 @@ import { notFound } from 'next/navigation';
import defaultMdxComponents from 'fumadocs-ui/mdx';
import { Step, Steps } from 'fumadocs-ui/components/steps';
import { File, Folder, Files } from 'fumadocs-ui/components/files';
+import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
const components = {
...defaultMdxComponents,
@@ -14,6 +15,8 @@ const components = {
Folder,
Files,
FileTree: Files,
+ Tab,
+ Tabs,
};
export default async function Page(props: {
diff --git a/apps/docs/next.config.mjs b/apps/docs/next.config.mjs
index 622c0829a..12116ad4d 100644
--- a/apps/docs/next.config.mjs
+++ b/apps/docs/next.config.mjs
@@ -18,20 +18,15 @@ const config = {
},
],
},
- experimental: {
- turbo: {
- resolveAlias: {
- 'fumadocs-ui/components/callout': 'fumadocs-ui/dist/components/callout.js',
- },
- },
- },
webpack: (config, { isServer }) => {
// Resolve the fumadocs virtual collection import to the local .source directory
config.resolve = config.resolve || {};
config.resolve.alias = {
...(config.resolve.alias || {}),
'fumadocs-mdx:collections': path.resolve(__dirname, '.source'),
- 'fumadocs-ui/components/callout$': path.resolve(__dirname, '../../node_modules/fumadocs-ui/dist/components/callout.js'),
+ 'fumadocs-ui/components/callout$': path.resolve(__dirname, './node_modules/fumadocs-ui/dist/components/callout.js'),
+ 'fumadocs-ui/components/card$': path.resolve(__dirname, './node_modules/fumadocs-ui/dist/components/card.js'),
+ 'fumadocs-ui/components/tabs$': path.resolve(__dirname, './node_modules/fumadocs-ui/dist/components/tabs.js'),
};
return config;
},
From d70e011bc46c7baad5a967b0ac36cbd5d73271ce Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 27 Jan 2026 15:13:36 +0000
Subject: [PATCH 08/10] Remove fumadocs-ui component imports from MDX files
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
---
apps/docs/next.config.mjs | 1 +
apps/docs/package.json | 2 +-
content/docs/references/ai/agent/AIKnowledge.mdx | 3 ---
content/docs/references/ai/agent/AIModelConfig.mdx | 3 ---
content/docs/references/ai/agent/AITool.mdx | 3 ---
content/docs/references/ai/agent/Agent.mdx | 3 ---
.../docs/references/ai/conversation/ConversationAnalytics.mdx | 3 ---
.../docs/references/ai/conversation/ConversationContext.mdx | 3 ---
.../docs/references/ai/conversation/ConversationMessage.mdx | 3 ---
.../docs/references/ai/conversation/ConversationSession.mdx | 3 ---
.../docs/references/ai/conversation/ConversationSummary.mdx | 3 ---
content/docs/references/ai/conversation/FunctionCall.mdx | 3 ---
content/docs/references/ai/conversation/MessageContent.mdx | 3 ---
content/docs/references/ai/conversation/MessageContentType.mdx | 3 ---
.../docs/references/ai/conversation/MessagePruningEvent.mdx | 3 ---
content/docs/references/ai/conversation/MessageRole.mdx | 3 ---
content/docs/references/ai/conversation/TokenBudgetConfig.mdx | 3 ---
.../docs/references/ai/conversation/TokenBudgetStrategy.mdx | 3 ---
content/docs/references/ai/conversation/TokenUsageStats.mdx | 3 ---
content/docs/references/ai/conversation/ToolCall.mdx | 3 ---
content/docs/references/ai/cost/BillingPeriod.mdx | 3 ---
content/docs/references/ai/cost/BudgetLimit.mdx | 3 ---
content/docs/references/ai/cost/BudgetStatus.mdx | 3 ---
content/docs/references/ai/cost/BudgetType.mdx | 3 ---
content/docs/references/ai/cost/CostAlert.mdx | 3 ---
content/docs/references/ai/cost/CostAlertType.mdx | 3 ---
content/docs/references/ai/cost/CostAnalytics.mdx | 3 ---
content/docs/references/ai/cost/CostBreakdownDimension.mdx | 3 ---
content/docs/references/ai/cost/CostBreakdownEntry.mdx | 3 ---
content/docs/references/ai/cost/CostEntry.mdx | 3 ---
content/docs/references/ai/cost/CostMetricType.mdx | 3 ---
.../docs/references/ai/cost/CostOptimizationRecommendation.mdx | 3 ---
content/docs/references/ai/cost/CostQueryFilters.mdx | 3 ---
content/docs/references/ai/cost/CostReport.mdx | 3 ---
content/docs/references/ai/index.mdx | 1 -
content/docs/references/ai/model-registry/ModelCapability.mdx | 3 ---
content/docs/references/ai/model-registry/ModelConfig.mdx | 3 ---
content/docs/references/ai/model-registry/ModelLimits.mdx | 3 ---
content/docs/references/ai/model-registry/ModelPricing.mdx | 3 ---
content/docs/references/ai/model-registry/ModelProvider.mdx | 3 ---
content/docs/references/ai/model-registry/ModelRegistry.mdx | 3 ---
.../docs/references/ai/model-registry/ModelRegistryEntry.mdx | 3 ---
.../references/ai/model-registry/ModelSelectionCriteria.mdx | 3 ---
content/docs/references/ai/model-registry/PromptTemplate.mdx | 3 ---
content/docs/references/ai/model-registry/PromptVariable.mdx | 3 ---
content/docs/references/ai/nlq/Entity.mdx | 3 ---
content/docs/references/ai/nlq/FieldSynonymConfig.mdx | 3 ---
content/docs/references/ai/nlq/NLQAnalytics.mdx | 3 ---
content/docs/references/ai/nlq/NLQFieldMapping.mdx | 3 ---
content/docs/references/ai/nlq/NLQModelConfig.mdx | 3 ---
content/docs/references/ai/nlq/NLQParseResult.mdx | 3 ---
content/docs/references/ai/nlq/NLQRequest.mdx | 3 ---
content/docs/references/ai/nlq/NLQResponse.mdx | 3 ---
content/docs/references/ai/nlq/NLQTrainingExample.mdx | 3 ---
content/docs/references/ai/nlq/QueryContext.mdx | 3 ---
content/docs/references/ai/nlq/QueryIntent.mdx | 3 ---
content/docs/references/ai/nlq/QueryTemplate.mdx | 3 ---
content/docs/references/ai/nlq/Timeframe.mdx | 3 ---
content/docs/references/ai/orchestration/AIOrchestration.mdx | 3 ---
.../ai/orchestration/AIOrchestrationExecutionResult.mdx | 3 ---
.../references/ai/orchestration/AIOrchestrationTrigger.mdx | 3 ---
content/docs/references/ai/orchestration/AITask.mdx | 3 ---
content/docs/references/ai/orchestration/AITaskType.mdx | 3 ---
.../ai/orchestration/BatchAIOrchestrationExecution.mdx | 3 ---
.../docs/references/ai/orchestration/PostProcessingAction.mdx | 3 ---
.../references/ai/orchestration/WorkflowFieldCondition.mdx | 3 ---
content/docs/references/ai/orchestration/WorkflowSchedule.mdx | 3 ---
content/docs/references/ai/predictive/EvaluationMetrics.mdx | 3 ---
content/docs/references/ai/predictive/Hyperparameters.mdx | 3 ---
content/docs/references/ai/predictive/ModelDrift.mdx | 3 ---
content/docs/references/ai/predictive/ModelFeature.mdx | 3 ---
content/docs/references/ai/predictive/PredictionRequest.mdx | 3 ---
content/docs/references/ai/predictive/PredictionResult.mdx | 3 ---
content/docs/references/ai/predictive/PredictiveModel.mdx | 3 ---
content/docs/references/ai/predictive/PredictiveModelType.mdx | 3 ---
content/docs/references/ai/predictive/TrainingConfig.mdx | 3 ---
content/docs/references/ai/rag-pipeline/ChunkingStrategy.mdx | 3 ---
content/docs/references/ai/rag-pipeline/DocumentChunk.mdx | 3 ---
.../docs/references/ai/rag-pipeline/DocumentLoaderConfig.mdx | 3 ---
content/docs/references/ai/rag-pipeline/DocumentMetadata.mdx | 3 ---
content/docs/references/ai/rag-pipeline/EmbeddingModel.mdx | 3 ---
content/docs/references/ai/rag-pipeline/RAGPipelineConfig.mdx | 3 ---
content/docs/references/ai/rag-pipeline/RAGPipelineStatus.mdx | 3 ---
content/docs/references/ai/rag-pipeline/RAGQueryRequest.mdx | 3 ---
content/docs/references/ai/rag-pipeline/RAGQueryResponse.mdx | 3 ---
content/docs/references/ai/rag-pipeline/RerankingConfig.mdx | 3 ---
content/docs/references/ai/rag-pipeline/RetrievalStrategy.mdx | 3 ---
content/docs/references/ai/rag-pipeline/VectorStoreConfig.mdx | 3 ---
.../docs/references/ai/rag-pipeline/VectorStoreProvider.mdx | 3 ---
content/docs/references/api/contract/ApiError.mdx | 3 ---
content/docs/references/api/contract/BaseResponse.mdx | 3 ---
content/docs/references/api/contract/BulkRequest.mdx | 3 ---
content/docs/references/api/contract/BulkResponse.mdx | 3 ---
content/docs/references/api/contract/CreateRequest.mdx | 3 ---
content/docs/references/api/contract/DeleteResponse.mdx | 3 ---
content/docs/references/api/contract/ExportRequest.mdx | 3 ---
content/docs/references/api/contract/ListRecordResponse.mdx | 3 ---
content/docs/references/api/contract/ModificationResult.mdx | 3 ---
content/docs/references/api/contract/RecordData.mdx | 3 ---
content/docs/references/api/contract/SingleRecordResponse.mdx | 3 ---
content/docs/references/api/contract/UpdateRequest.mdx | 3 ---
content/docs/references/api/discovery/ApiCapabilities.mdx | 3 ---
content/docs/references/api/discovery/ApiRoutes.mdx | 3 ---
content/docs/references/api/discovery/Discovery.mdx | 3 ---
content/docs/references/api/endpoint/ApiEndpoint.mdx | 3 ---
content/docs/references/api/endpoint/ApiMapping.mdx | 3 ---
content/docs/references/api/endpoint/RateLimit.mdx | 3 ---
content/docs/references/api/index.mdx | 1 -
content/docs/references/api/odata/ODataError.mdx | 3 ---
content/docs/references/api/odata/ODataFilterFunction.mdx | 3 ---
content/docs/references/api/odata/ODataFilterOperator.mdx | 3 ---
content/docs/references/api/odata/ODataMetadata.mdx | 3 ---
content/docs/references/api/odata/ODataQuery.mdx | 3 ---
content/docs/references/api/odata/ODataResponse.mdx | 3 ---
content/docs/references/api/realtime/Presence.mdx | 3 ---
content/docs/references/api/realtime/PresenceStatus.mdx | 3 ---
content/docs/references/api/realtime/RealtimeAction.mdx | 3 ---
content/docs/references/api/realtime/RealtimeEvent.mdx | 3 ---
content/docs/references/api/realtime/RealtimeEventType.mdx | 3 ---
content/docs/references/api/realtime/Subscription.mdx | 3 ---
content/docs/references/api/realtime/SubscriptionEvent.mdx | 3 ---
content/docs/references/api/realtime/TransportProtocol.mdx | 3 ---
content/docs/references/api/router/RouteCategory.mdx | 3 ---
content/docs/references/api/router/RouteDefinition.mdx | 3 ---
content/docs/references/api/router/RouterConfig.mdx | 3 ---
content/docs/references/api/view/HttpMethod.mdx | 3 ---
content/docs/references/auth/config/AccountLinkingConfig.mdx | 3 ---
content/docs/references/auth/config/AuthConfig.mdx | 3 ---
content/docs/references/auth/config/AuthPluginConfig.mdx | 3 ---
content/docs/references/auth/config/AuthStrategy.mdx | 3 ---
content/docs/references/auth/config/CSRFConfig.mdx | 3 ---
content/docs/references/auth/config/DatabaseAdapter.mdx | 3 ---
content/docs/references/auth/config/DatabaseMapping.mdx | 3 ---
content/docs/references/auth/config/EmailPasswordConfig.mdx | 3 ---
content/docs/references/auth/config/EnterpriseAuthConfig.mdx | 3 ---
content/docs/references/auth/config/LDAPConfig.mdx | 3 ---
content/docs/references/auth/config/MagicLinkConfig.mdx | 3 ---
content/docs/references/auth/config/OAuthProvider.mdx | 3 ---
content/docs/references/auth/config/OIDCConfig.mdx | 3 ---
content/docs/references/auth/config/PasskeyConfig.mdx | 3 ---
content/docs/references/auth/config/RateLimitConfig.mdx | 3 ---
content/docs/references/auth/config/SAMLConfig.mdx | 3 ---
content/docs/references/auth/config/SessionConfig.mdx | 3 ---
content/docs/references/auth/config/StandardAuthProvider.mdx | 3 ---
content/docs/references/auth/config/TwoFactorConfig.mdx | 3 ---
content/docs/references/auth/config/UserFieldMapping.mdx | 3 ---
content/docs/references/auth/identity/Account.mdx | 3 ---
content/docs/references/auth/identity/Session.mdx | 3 ---
content/docs/references/auth/identity/User.mdx | 3 ---
content/docs/references/auth/identity/VerificationToken.mdx | 3 ---
content/docs/references/auth/index.mdx | 1 -
content/docs/references/auth/organization/Invitation.mdx | 3 ---
content/docs/references/auth/organization/InvitationStatus.mdx | 3 ---
content/docs/references/auth/organization/Member.mdx | 3 ---
content/docs/references/auth/organization/Organization.mdx | 3 ---
content/docs/references/auth/policy/AuditPolicy.mdx | 3 ---
content/docs/references/auth/policy/NetworkPolicy.mdx | 3 ---
content/docs/references/auth/policy/PasswordPolicy.mdx | 3 ---
content/docs/references/auth/policy/Policy.mdx | 3 ---
content/docs/references/auth/policy/SessionPolicy.mdx | 3 ---
content/docs/references/auth/role/Role.mdx | 3 ---
content/docs/references/auth/scim/SCIMAddress.mdx | 3 ---
content/docs/references/auth/scim/SCIMEmail.mdx | 3 ---
content/docs/references/auth/scim/SCIMEnterpriseUser.mdx | 3 ---
content/docs/references/auth/scim/SCIMError.mdx | 3 ---
content/docs/references/auth/scim/SCIMGroup.mdx | 3 ---
content/docs/references/auth/scim/SCIMGroupReference.mdx | 3 ---
content/docs/references/auth/scim/SCIMListResponse.mdx | 3 ---
content/docs/references/auth/scim/SCIMMemberReference.mdx | 3 ---
content/docs/references/auth/scim/SCIMMeta.mdx | 3 ---
content/docs/references/auth/scim/SCIMName.mdx | 3 ---
content/docs/references/auth/scim/SCIMPatchOperation.mdx | 3 ---
content/docs/references/auth/scim/SCIMPatchRequest.mdx | 3 ---
content/docs/references/auth/scim/SCIMPhoneNumber.mdx | 3 ---
content/docs/references/auth/scim/SCIMUser.mdx | 3 ---
content/docs/references/automation/approval/ApprovalAction.mdx | 3 ---
.../docs/references/automation/approval/ApprovalActionType.mdx | 3 ---
.../docs/references/automation/approval/ApprovalProcess.mdx | 3 ---
content/docs/references/automation/approval/ApprovalStep.mdx | 3 ---
content/docs/references/automation/approval/ApproverType.mdx | 3 ---
content/docs/references/automation/connector/AuthField.mdx | 3 ---
.../docs/references/automation/connector/Authentication.mdx | 3 ---
.../references/automation/connector/AuthenticationType.mdx | 3 ---
content/docs/references/automation/connector/Connector.mdx | 3 ---
.../docs/references/automation/connector/ConnectorCategory.mdx | 3 ---
.../docs/references/automation/connector/ConnectorInstance.mdx | 3 ---
.../references/automation/connector/ConnectorOperation.mdx | 3 ---
.../docs/references/automation/connector/ConnectorTrigger.mdx | 3 ---
content/docs/references/automation/connector/OAuth2Config.mdx | 3 ---
.../references/automation/connector/OperationParameter.mdx | 3 ---
content/docs/references/automation/connector/OperationType.mdx | 3 ---
content/docs/references/automation/etl/ETLDestination.mdx | 3 ---
content/docs/references/automation/etl/ETLEndpointType.mdx | 3 ---
content/docs/references/automation/etl/ETLPipeline.mdx | 3 ---
content/docs/references/automation/etl/ETLPipelineRun.mdx | 3 ---
content/docs/references/automation/etl/ETLRunStatus.mdx | 3 ---
content/docs/references/automation/etl/ETLSource.mdx | 3 ---
content/docs/references/automation/etl/ETLSyncMode.mdx | 3 ---
content/docs/references/automation/etl/ETLTransformation.mdx | 3 ---
.../docs/references/automation/etl/ETLTransformationType.mdx | 3 ---
content/docs/references/automation/flow/Flow.mdx | 3 ---
content/docs/references/automation/flow/FlowEdge.mdx | 3 ---
content/docs/references/automation/flow/FlowNode.mdx | 3 ---
content/docs/references/automation/flow/FlowNodeAction.mdx | 3 ---
content/docs/references/automation/flow/FlowVariable.mdx | 3 ---
content/docs/references/automation/index.mdx | 1 -
content/docs/references/automation/mapping/FieldMapping.mdx | 3 ---
content/docs/references/automation/sync/ConflictResolution.mdx | 3 ---
.../docs/references/automation/sync/DataDestinationConfig.mdx | 3 ---
content/docs/references/automation/sync/DataSourceConfig.mdx | 3 ---
content/docs/references/automation/sync/DataSyncConfig.mdx | 3 ---
content/docs/references/automation/sync/SyncDirection.mdx | 3 ---
.../docs/references/automation/sync/SyncExecutionResult.mdx | 3 ---
.../docs/references/automation/sync/SyncExecutionStatus.mdx | 3 ---
content/docs/references/automation/sync/SyncMode.mdx | 3 ---
content/docs/references/automation/webhook/Webhook.mdx | 3 ---
content/docs/references/automation/webhook/WebhookReceiver.mdx | 3 ---
.../docs/references/automation/webhook/WebhookTriggerType.mdx | 3 ---
.../docs/references/automation/workflow/CustomScriptAction.mdx | 3 ---
.../docs/references/automation/workflow/EmailAlertAction.mdx | 3 ---
.../docs/references/automation/workflow/FieldUpdateAction.mdx | 3 ---
content/docs/references/automation/workflow/HttpCallAction.mdx | 3 ---
.../references/automation/workflow/PushNotificationAction.mdx | 3 ---
.../docs/references/automation/workflow/SlackMessageAction.mdx | 3 ---
.../references/automation/workflow/SmsNotificationAction.mdx | 3 ---
.../docs/references/automation/workflow/TaskCreationAction.mdx | 3 ---
.../docs/references/automation/workflow/TeamsMessageAction.mdx | 3 ---
content/docs/references/automation/workflow/TimeTrigger.mdx | 3 ---
.../references/automation/workflow/WebhookTriggerAction.mdx | 3 ---
content/docs/references/automation/workflow/WorkflowAction.mdx | 3 ---
content/docs/references/automation/workflow/WorkflowRule.mdx | 3 ---
.../references/automation/workflow/WorkflowTriggerType.mdx | 3 ---
content/docs/references/data/dataset/Dataset.mdx | 3 ---
content/docs/references/data/dataset/DatasetMode.mdx | 3 ---
content/docs/references/data/field/Address.mdx | 3 ---
content/docs/references/data/field/CurrencyConfig.mdx | 3 ---
content/docs/references/data/field/CurrencyValue.mdx | 3 ---
content/docs/references/data/field/Field.mdx | 3 ---
content/docs/references/data/field/FieldType.mdx | 3 ---
content/docs/references/data/field/LocationCoordinates.mdx | 3 ---
content/docs/references/data/field/SelectOption.mdx | 3 ---
content/docs/references/data/field/VectorConfig.mdx | 3 ---
content/docs/references/data/filter/ComparisonOperator.mdx | 3 ---
content/docs/references/data/filter/EqualityOperator.mdx | 3 ---
content/docs/references/data/filter/FieldOperators.mdx | 3 ---
content/docs/references/data/filter/FieldReference.mdx | 3 ---
content/docs/references/data/filter/FilterCondition.mdx | 3 ---
content/docs/references/data/filter/NormalizedFilter.mdx | 3 ---
content/docs/references/data/filter/QueryFilter.mdx | 3 ---
content/docs/references/data/filter/RangeOperator.mdx | 3 ---
content/docs/references/data/filter/SetOperator.mdx | 3 ---
content/docs/references/data/filter/SpecialOperator.mdx | 3 ---
content/docs/references/data/filter/StringOperator.mdx | 3 ---
content/docs/references/data/hook/Hook.mdx | 3 ---
content/docs/references/data/hook/HookContext.mdx | 3 ---
content/docs/references/data/hook/HookEvent.mdx | 3 ---
content/docs/references/data/index.mdx | 1 -
content/docs/references/data/object/Index.mdx | 3 ---
content/docs/references/data/object/Object.mdx | 3 ---
content/docs/references/data/object/ObjectCapabilities.mdx | 3 ---
content/docs/references/data/object/SearchConfig.mdx | 3 ---
content/docs/references/data/query/AggregationFunction.mdx | 3 ---
content/docs/references/data/query/AggregationNode.mdx | 3 ---
content/docs/references/data/query/FieldNode.mdx | 3 ---
content/docs/references/data/query/JoinNode.mdx | 3 ---
content/docs/references/data/query/JoinStrategy.mdx | 3 ---
content/docs/references/data/query/JoinType.mdx | 3 ---
content/docs/references/data/query/Query.mdx | 3 ---
content/docs/references/data/query/SortNode.mdx | 3 ---
content/docs/references/data/query/WindowFunction.mdx | 3 ---
content/docs/references/data/query/WindowFunctionNode.mdx | 3 ---
content/docs/references/data/query/WindowSpec.mdx | 3 ---
content/docs/references/data/validation/AsyncValidation.mdx | 3 ---
.../docs/references/data/validation/ConditionalValidation.mdx | 3 ---
.../docs/references/data/validation/CrossFieldValidation.mdx | 3 ---
content/docs/references/data/validation/CustomValidator.mdx | 3 ---
content/docs/references/data/validation/FormatValidation.mdx | 3 ---
content/docs/references/data/validation/JSONValidation.mdx | 3 ---
content/docs/references/data/validation/ScriptValidation.mdx | 3 ---
.../docs/references/data/validation/StateMachineValidation.mdx | 3 ---
.../docs/references/data/validation/UniquenessValidation.mdx | 3 ---
content/docs/references/data/validation/ValidationRule.mdx | 3 ---
content/docs/references/hub/composer/BillOfMaterials.mdx | 3 ---
content/docs/references/hub/composer/ComposerRequest.mdx | 3 ---
content/docs/references/hub/composer/ComposerResponse.mdx | 3 ---
content/docs/references/hub/composer/ConflictReport.mdx | 3 ---
content/docs/references/hub/composer/DependencyRequirement.mdx | 3 ---
content/docs/references/hub/index.mdx | 1 -
content/docs/references/hub/license/Feature.mdx | 3 ---
content/docs/references/hub/license/License.mdx | 3 ---
content/docs/references/hub/license/MetricType.mdx | 3 ---
content/docs/references/hub/license/Plan.mdx | 3 ---
content/docs/references/hub/marketplace/MarketplacePlugin.mdx | 3 ---
content/docs/references/hub/marketplace/PluginAuthor.mdx | 3 ---
content/docs/references/hub/marketplace/PluginPricing.mdx | 3 ---
content/docs/references/hub/space/DeploymentTarget.mdx | 3 ---
content/docs/references/hub/space/HubSpace.mdx | 3 ---
content/docs/references/hub/space/SpaceSubscription.mdx | 3 ---
content/docs/references/hub/space/SubscriptionStatus.mdx | 3 ---
.../references/hub/tenant/DatabaseLevelIsolationStrategy.mdx | 3 ---
.../references/hub/tenant/LevelIsolationStrategySchema.mdx | 3 ---
.../docs/references/hub/tenant/RowLevelIsolationStrategy.mdx | 3 ---
content/docs/references/hub/tenant/Tenant.mdx | 3 ---
content/docs/references/hub/tenant/TenantIsolationConfig.mdx | 3 ---
content/docs/references/hub/tenant/TenantIsolationLevel.mdx | 3 ---
content/docs/references/hub/tenant/TenantQuota.mdx | 3 ---
content/docs/references/hub/tenant/TenantSecurityPolicy.mdx | 3 ---
content/docs/references/index.mdx | 1 -
content/docs/references/permission/index.mdx | 1 -
.../docs/references/permission/permission/FieldPermission.mdx | 3 ---
.../docs/references/permission/permission/ObjectPermission.mdx | 3 ---
.../docs/references/permission/permission/PermissionSet.mdx | 3 ---
content/docs/references/permission/rls/RLSConfig.mdx | 3 ---
content/docs/references/permission/rls/RLSEvaluationResult.mdx | 3 ---
content/docs/references/permission/rls/RLSOperation.mdx | 3 ---
content/docs/references/permission/rls/RLSUserContext.mdx | 3 ---
.../docs/references/permission/rls/RowLevelSecurityPolicy.mdx | 3 ---
.../docs/references/permission/sharing/CriteriaSharingRule.mdx | 3 ---
content/docs/references/permission/sharing/OWDModel.mdx | 3 ---
.../docs/references/permission/sharing/OwnerSharingRule.mdx | 3 ---
.../docs/references/permission/sharing/ShareRecipientType.mdx | 3 ---
content/docs/references/permission/sharing/SharingLevel.mdx | 3 ---
content/docs/references/permission/sharing/SharingRule.mdx | 3 ---
content/docs/references/permission/sharing/SharingRuleType.mdx | 3 ---
content/docs/references/permission/territory/Territory.mdx | 3 ---
.../docs/references/permission/territory/TerritoryModel.mdx | 3 ---
content/docs/references/permission/territory/TerritoryType.mdx | 3 ---
content/docs/references/protocol-map.mdx | 2 --
content/docs/references/quick-reference.mdx | 2 --
content/docs/references/shared/identifiers/EventName.mdx | 3 ---
.../docs/references/shared/identifiers/SnakeCaseIdentifier.mdx | 3 ---
.../docs/references/shared/identifiers/SystemIdentifier.mdx | 3 ---
content/docs/references/shared/index.mdx | 1 -
content/docs/references/system/audit/AuditConfig.mdx | 3 ---
content/docs/references/system/audit/AuditEvent.mdx | 3 ---
content/docs/references/system/audit/AuditEventActor.mdx | 3 ---
content/docs/references/system/audit/AuditEventChange.mdx | 3 ---
content/docs/references/system/audit/AuditEventFilter.mdx | 3 ---
content/docs/references/system/audit/AuditEventSeverity.mdx | 3 ---
content/docs/references/system/audit/AuditEventTarget.mdx | 3 ---
content/docs/references/system/audit/AuditEventType.mdx | 3 ---
content/docs/references/system/audit/AuditRetentionPolicy.mdx | 3 ---
content/docs/references/system/audit/AuditStorageConfig.mdx | 3 ---
.../docs/references/system/audit/SuspiciousActivityRule.mdx | 3 ---
content/docs/references/system/context/KernelContext.mdx | 3 ---
content/docs/references/system/context/RuntimeMode.mdx | 3 ---
content/docs/references/system/datasource/Datasource.mdx | 3 ---
.../references/system/datasource/DatasourceCapabilities.mdx | 3 ---
content/docs/references/system/datasource/DriverDefinition.mdx | 3 ---
content/docs/references/system/datasource/DriverType.mdx | 3 ---
content/docs/references/system/driver/DriverCapabilities.mdx | 3 ---
content/docs/references/system/driver/DriverInterface.mdx | 3 ---
content/docs/references/system/driver/DriverOptions.mdx | 3 ---
content/docs/references/system/events/Event.mdx | 3 ---
content/docs/references/system/events/EventHandler.mdx | 3 ---
content/docs/references/system/events/EventMetadata.mdx | 3 ---
content/docs/references/system/events/EventPersistence.mdx | 3 ---
content/docs/references/system/events/EventRoute.mdx | 3 ---
content/docs/references/system/feature/FeatureFlag.mdx | 3 ---
content/docs/references/system/feature/FeatureStrategy.mdx | 3 ---
content/docs/references/system/index.mdx | 1 -
content/docs/references/system/job/CronSchedule.mdx | 3 ---
content/docs/references/system/job/IntervalSchedule.mdx | 3 ---
content/docs/references/system/job/Job.mdx | 3 ---
content/docs/references/system/job/JobExecution.mdx | 3 ---
content/docs/references/system/job/JobExecutionStatus.mdx | 3 ---
content/docs/references/system/job/OnceSchedule.mdx | 3 ---
content/docs/references/system/job/RetryPolicy.mdx | 3 ---
content/docs/references/system/job/Schedule.mdx | 3 ---
content/docs/references/system/logger/LogEntry.mdx | 3 ---
content/docs/references/system/logger/LogFormat.mdx | 3 ---
content/docs/references/system/logger/LogLevel.mdx | 3 ---
content/docs/references/system/logger/LoggerConfig.mdx | 3 ---
content/docs/references/system/manifest/Manifest.mdx | 3 ---
content/docs/references/system/misc/MongoConfig.mdx | 3 ---
content/docs/references/system/misc/PostgresConfig.mdx | 3 ---
content/docs/references/system/plugin/I18nContext.mdx | 3 ---
content/docs/references/system/plugin/Logger.mdx | 3 ---
content/docs/references/system/plugin/ObjectQLClient.mdx | 3 ---
content/docs/references/system/plugin/Plugin.mdx | 3 ---
content/docs/references/system/plugin/PluginContext.mdx | 3 ---
content/docs/references/system/plugin/PluginLifecycle.mdx | 3 ---
content/docs/references/system/plugin/Router.mdx | 3 ---
content/docs/references/system/plugin/Scheduler.mdx | 3 ---
content/docs/references/system/plugin/ScopedStorage.mdx | 3 ---
content/docs/references/system/plugin/SystemAPI.mdx | 3 ---
content/docs/references/system/scoped-storage/FileMetadata.mdx | 3 ---
.../references/system/scoped-storage/ScopedStorageConfig.mdx | 3 ---
.../references/system/scoped-storage/StorageAdapterType.mdx | 3 ---
content/docs/references/system/scoped-storage/StorageScope.mdx | 3 ---
content/docs/references/system/translation/Locale.mdx | 3 ---
.../docs/references/system/translation/TranslationBundle.mdx | 3 ---
content/docs/references/system/translation/TranslationData.mdx | 3 ---
content/docs/references/ui/action/Action.mdx | 3 ---
content/docs/references/ui/action/ActionParam.mdx | 3 ---
content/docs/references/ui/app/App.mdx | 3 ---
content/docs/references/ui/app/AppBranding.mdx | 3 ---
content/docs/references/ui/app/DashboardNavItem.mdx | 3 ---
content/docs/references/ui/app/GroupNavItem.mdx | 3 ---
content/docs/references/ui/app/NavigationItem.mdx | 3 ---
content/docs/references/ui/app/ObjectNavItem.mdx | 3 ---
content/docs/references/ui/app/PageNavItem.mdx | 3 ---
content/docs/references/ui/app/UrlNavItem.mdx | 3 ---
content/docs/references/ui/component/PageCardProps.mdx | 3 ---
content/docs/references/ui/component/PageHeaderProps.mdx | 3 ---
content/docs/references/ui/component/PageTabsProps.mdx | 3 ---
content/docs/references/ui/component/RecordDetailsProps.mdx | 3 ---
content/docs/references/ui/component/RecordHighlightsProps.mdx | 3 ---
.../docs/references/ui/component/RecordRelatedListProps.mdx | 3 ---
content/docs/references/ui/dashboard/ChartType.mdx | 3 ---
content/docs/references/ui/dashboard/Dashboard.mdx | 3 ---
content/docs/references/ui/dashboard/DashboardWidget.mdx | 3 ---
content/docs/references/ui/index.mdx | 1 -
content/docs/references/ui/page/Page.mdx | 3 ---
content/docs/references/ui/page/PageComponent.mdx | 3 ---
content/docs/references/ui/page/PageComponentType.mdx | 3 ---
content/docs/references/ui/page/PageRegion.mdx | 3 ---
content/docs/references/ui/report/Report.mdx | 3 ---
content/docs/references/ui/report/ReportChart.mdx | 3 ---
content/docs/references/ui/report/ReportColumn.mdx | 3 ---
content/docs/references/ui/report/ReportGrouping.mdx | 3 ---
content/docs/references/ui/report/ReportType.mdx | 3 ---
content/docs/references/ui/theme/Animation.mdx | 3 ---
content/docs/references/ui/theme/BorderRadius.mdx | 3 ---
content/docs/references/ui/theme/Breakpoints.mdx | 3 ---
content/docs/references/ui/theme/ColorPalette.mdx | 3 ---
content/docs/references/ui/theme/Shadow.mdx | 3 ---
content/docs/references/ui/theme/Spacing.mdx | 3 ---
content/docs/references/ui/theme/Theme.mdx | 3 ---
content/docs/references/ui/theme/ThemeMode.mdx | 3 ---
content/docs/references/ui/theme/Typography.mdx | 3 ---
content/docs/references/ui/theme/ZIndex.mdx | 3 ---
content/docs/references/ui/view/CalendarConfig.mdx | 3 ---
content/docs/references/ui/view/FormField.mdx | 3 ---
content/docs/references/ui/view/FormSection.mdx | 3 ---
content/docs/references/ui/view/FormView.mdx | 3 ---
content/docs/references/ui/view/GanttConfig.mdx | 3 ---
content/docs/references/ui/view/HttpMethod.mdx | 3 ---
content/docs/references/ui/view/HttpRequest.mdx | 3 ---
content/docs/references/ui/view/KanbanConfig.mdx | 3 ---
content/docs/references/ui/view/ListColumn.mdx | 3 ---
content/docs/references/ui/view/ListView.mdx | 3 ---
content/docs/references/ui/view/PaginationConfig.mdx | 3 ---
content/docs/references/ui/view/SelectionConfig.mdx | 3 ---
content/docs/references/ui/view/View.mdx | 3 ---
content/docs/references/ui/view/ViewData.mdx | 3 ---
content/docs/references/ui/widget/FieldWidgetProps.mdx | 3 ---
content/docs/references/ui/widget/WidgetEvent.mdx | 3 ---
content/docs/references/ui/widget/WidgetLifecycle.mdx | 3 ---
content/docs/references/ui/widget/WidgetManifest.mdx | 3 ---
content/docs/references/ui/widget/WidgetProperty.mdx | 3 ---
451 files changed, 2 insertions(+), 1324 deletions(-)
diff --git a/apps/docs/next.config.mjs b/apps/docs/next.config.mjs
index 12116ad4d..d4af6c5da 100644
--- a/apps/docs/next.config.mjs
+++ b/apps/docs/next.config.mjs
@@ -27,6 +27,7 @@ const config = {
'fumadocs-ui/components/callout$': path.resolve(__dirname, './node_modules/fumadocs-ui/dist/components/callout.js'),
'fumadocs-ui/components/card$': path.resolve(__dirname, './node_modules/fumadocs-ui/dist/components/card.js'),
'fumadocs-ui/components/tabs$': path.resolve(__dirname, './node_modules/fumadocs-ui/dist/components/tabs.js'),
+ 'lucide-react$': path.resolve(__dirname, './node_modules/lucide-react/dist/cjs/lucide-react.js'),
};
return config;
},
diff --git a/apps/docs/package.json b/apps/docs/package.json
index e3b17a5cd..fb852dc3a 100644
--- a/apps/docs/package.json
+++ b/apps/docs/package.json
@@ -5,7 +5,7 @@
"description": "ObjectStack Protocol Documentation Site",
"scripts": {
"dev": "next dev",
- "build": "NEXT_PRIVATE_BUILD_WORKER=1 next build",
+ "build": "next build",
"site:start": "next start",
"site:lint": "next lint"
},
diff --git a/content/docs/references/ai/agent/AIKnowledge.mdx b/content/docs/references/ai/agent/AIKnowledge.mdx
index 2e63e5193..0655a9c85 100644
--- a/content/docs/references/ai/agent/AIKnowledge.mdx
+++ b/content/docs/references/ai/agent/AIKnowledge.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: agent
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/agent.zod.ts`
diff --git a/content/docs/references/ai/agent/AIModelConfig.mdx b/content/docs/references/ai/agent/AIModelConfig.mdx
index ddcc59a9e..1cc2ec8ee 100644
--- a/content/docs/references/ai/agent/AIModelConfig.mdx
+++ b/content/docs/references/ai/agent/AIModelConfig.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: agent
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/agent.zod.ts`
diff --git a/content/docs/references/ai/agent/AITool.mdx b/content/docs/references/ai/agent/AITool.mdx
index db933da0d..979a14bdf 100644
--- a/content/docs/references/ai/agent/AITool.mdx
+++ b/content/docs/references/ai/agent/AITool.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: agent
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/agent.zod.ts`
diff --git a/content/docs/references/ai/agent/Agent.mdx b/content/docs/references/ai/agent/Agent.mdx
index 1271db73f..9fef37ca9 100644
--- a/content/docs/references/ai/agent/Agent.mdx
+++ b/content/docs/references/ai/agent/Agent.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: agent
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/agent.zod.ts`
diff --git a/content/docs/references/ai/conversation/ConversationAnalytics.mdx b/content/docs/references/ai/conversation/ConversationAnalytics.mdx
index 91b289b22..15f930ad8 100644
--- a/content/docs/references/ai/conversation/ConversationAnalytics.mdx
+++ b/content/docs/references/ai/conversation/ConversationAnalytics.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: conversation
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/conversation.zod.ts`
diff --git a/content/docs/references/ai/conversation/ConversationContext.mdx b/content/docs/references/ai/conversation/ConversationContext.mdx
index dd6ece4df..990363b75 100644
--- a/content/docs/references/ai/conversation/ConversationContext.mdx
+++ b/content/docs/references/ai/conversation/ConversationContext.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: conversation
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/conversation.zod.ts`
diff --git a/content/docs/references/ai/conversation/ConversationMessage.mdx b/content/docs/references/ai/conversation/ConversationMessage.mdx
index c72116b76..deeb4cfef 100644
--- a/content/docs/references/ai/conversation/ConversationMessage.mdx
+++ b/content/docs/references/ai/conversation/ConversationMessage.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: conversation
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/conversation.zod.ts`
diff --git a/content/docs/references/ai/conversation/ConversationSession.mdx b/content/docs/references/ai/conversation/ConversationSession.mdx
index 1db27eed2..392f83f2a 100644
--- a/content/docs/references/ai/conversation/ConversationSession.mdx
+++ b/content/docs/references/ai/conversation/ConversationSession.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: conversation
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/conversation.zod.ts`
diff --git a/content/docs/references/ai/conversation/ConversationSummary.mdx b/content/docs/references/ai/conversation/ConversationSummary.mdx
index 6b54e71ae..205447df5 100644
--- a/content/docs/references/ai/conversation/ConversationSummary.mdx
+++ b/content/docs/references/ai/conversation/ConversationSummary.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: conversation
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/conversation.zod.ts`
diff --git a/content/docs/references/ai/conversation/FunctionCall.mdx b/content/docs/references/ai/conversation/FunctionCall.mdx
index 4f1a2cf2b..08ef1ae1a 100644
--- a/content/docs/references/ai/conversation/FunctionCall.mdx
+++ b/content/docs/references/ai/conversation/FunctionCall.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: conversation
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/conversation.zod.ts`
diff --git a/content/docs/references/ai/conversation/MessageContent.mdx b/content/docs/references/ai/conversation/MessageContent.mdx
index d3e5b2791..32b11691a 100644
--- a/content/docs/references/ai/conversation/MessageContent.mdx
+++ b/content/docs/references/ai/conversation/MessageContent.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: conversation
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/conversation.zod.ts`
diff --git a/content/docs/references/ai/conversation/MessageContentType.mdx b/content/docs/references/ai/conversation/MessageContentType.mdx
index 65edf6751..53181917b 100644
--- a/content/docs/references/ai/conversation/MessageContentType.mdx
+++ b/content/docs/references/ai/conversation/MessageContentType.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: conversation
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/conversation.zod.ts`
diff --git a/content/docs/references/ai/conversation/MessagePruningEvent.mdx b/content/docs/references/ai/conversation/MessagePruningEvent.mdx
index bc8a17584..1bf74de60 100644
--- a/content/docs/references/ai/conversation/MessagePruningEvent.mdx
+++ b/content/docs/references/ai/conversation/MessagePruningEvent.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: conversation
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/conversation.zod.ts`
diff --git a/content/docs/references/ai/conversation/MessageRole.mdx b/content/docs/references/ai/conversation/MessageRole.mdx
index daba810d3..b64841739 100644
--- a/content/docs/references/ai/conversation/MessageRole.mdx
+++ b/content/docs/references/ai/conversation/MessageRole.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: conversation
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/conversation.zod.ts`
diff --git a/content/docs/references/ai/conversation/TokenBudgetConfig.mdx b/content/docs/references/ai/conversation/TokenBudgetConfig.mdx
index 172184276..229164ae7 100644
--- a/content/docs/references/ai/conversation/TokenBudgetConfig.mdx
+++ b/content/docs/references/ai/conversation/TokenBudgetConfig.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: conversation
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/conversation.zod.ts`
diff --git a/content/docs/references/ai/conversation/TokenBudgetStrategy.mdx b/content/docs/references/ai/conversation/TokenBudgetStrategy.mdx
index 1d189f356..0742bd3ef 100644
--- a/content/docs/references/ai/conversation/TokenBudgetStrategy.mdx
+++ b/content/docs/references/ai/conversation/TokenBudgetStrategy.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: conversation
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/conversation.zod.ts`
diff --git a/content/docs/references/ai/conversation/TokenUsageStats.mdx b/content/docs/references/ai/conversation/TokenUsageStats.mdx
index 6698f641d..3147eb6b7 100644
--- a/content/docs/references/ai/conversation/TokenUsageStats.mdx
+++ b/content/docs/references/ai/conversation/TokenUsageStats.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: conversation
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/conversation.zod.ts`
diff --git a/content/docs/references/ai/conversation/ToolCall.mdx b/content/docs/references/ai/conversation/ToolCall.mdx
index 1d7ae2f73..e5a6f1d5a 100644
--- a/content/docs/references/ai/conversation/ToolCall.mdx
+++ b/content/docs/references/ai/conversation/ToolCall.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: conversation
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/conversation.zod.ts`
diff --git a/content/docs/references/ai/cost/BillingPeriod.mdx b/content/docs/references/ai/cost/BillingPeriod.mdx
index 45eb14955..79edfd7ac 100644
--- a/content/docs/references/ai/cost/BillingPeriod.mdx
+++ b/content/docs/references/ai/cost/BillingPeriod.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: cost
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/cost.zod.ts`
diff --git a/content/docs/references/ai/cost/BudgetLimit.mdx b/content/docs/references/ai/cost/BudgetLimit.mdx
index 22eab2039..4b5cee994 100644
--- a/content/docs/references/ai/cost/BudgetLimit.mdx
+++ b/content/docs/references/ai/cost/BudgetLimit.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: cost
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/cost.zod.ts`
diff --git a/content/docs/references/ai/cost/BudgetStatus.mdx b/content/docs/references/ai/cost/BudgetStatus.mdx
index 4837df17f..a164bd95c 100644
--- a/content/docs/references/ai/cost/BudgetStatus.mdx
+++ b/content/docs/references/ai/cost/BudgetStatus.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: cost
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/cost.zod.ts`
diff --git a/content/docs/references/ai/cost/BudgetType.mdx b/content/docs/references/ai/cost/BudgetType.mdx
index 84eb4ad91..cef8cc7e6 100644
--- a/content/docs/references/ai/cost/BudgetType.mdx
+++ b/content/docs/references/ai/cost/BudgetType.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: cost
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/cost.zod.ts`
diff --git a/content/docs/references/ai/cost/CostAlert.mdx b/content/docs/references/ai/cost/CostAlert.mdx
index de0e05180..731ad848f 100644
--- a/content/docs/references/ai/cost/CostAlert.mdx
+++ b/content/docs/references/ai/cost/CostAlert.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: cost
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/cost.zod.ts`
diff --git a/content/docs/references/ai/cost/CostAlertType.mdx b/content/docs/references/ai/cost/CostAlertType.mdx
index cbc04be87..f05486f6c 100644
--- a/content/docs/references/ai/cost/CostAlertType.mdx
+++ b/content/docs/references/ai/cost/CostAlertType.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: cost
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/cost.zod.ts`
diff --git a/content/docs/references/ai/cost/CostAnalytics.mdx b/content/docs/references/ai/cost/CostAnalytics.mdx
index fe50740b1..496116f51 100644
--- a/content/docs/references/ai/cost/CostAnalytics.mdx
+++ b/content/docs/references/ai/cost/CostAnalytics.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: cost
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/cost.zod.ts`
diff --git a/content/docs/references/ai/cost/CostBreakdownDimension.mdx b/content/docs/references/ai/cost/CostBreakdownDimension.mdx
index 63638bd06..279ee1ec5 100644
--- a/content/docs/references/ai/cost/CostBreakdownDimension.mdx
+++ b/content/docs/references/ai/cost/CostBreakdownDimension.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: cost
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/cost.zod.ts`
diff --git a/content/docs/references/ai/cost/CostBreakdownEntry.mdx b/content/docs/references/ai/cost/CostBreakdownEntry.mdx
index 19c61ffac..66eeae0f1 100644
--- a/content/docs/references/ai/cost/CostBreakdownEntry.mdx
+++ b/content/docs/references/ai/cost/CostBreakdownEntry.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: cost
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/cost.zod.ts`
diff --git a/content/docs/references/ai/cost/CostEntry.mdx b/content/docs/references/ai/cost/CostEntry.mdx
index 0b6b41242..952087b64 100644
--- a/content/docs/references/ai/cost/CostEntry.mdx
+++ b/content/docs/references/ai/cost/CostEntry.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: cost
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/cost.zod.ts`
diff --git a/content/docs/references/ai/cost/CostMetricType.mdx b/content/docs/references/ai/cost/CostMetricType.mdx
index 6e93b4e1d..91f0baf81 100644
--- a/content/docs/references/ai/cost/CostMetricType.mdx
+++ b/content/docs/references/ai/cost/CostMetricType.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: cost
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/cost.zod.ts`
diff --git a/content/docs/references/ai/cost/CostOptimizationRecommendation.mdx b/content/docs/references/ai/cost/CostOptimizationRecommendation.mdx
index 935a28e1d..a5d1156f9 100644
--- a/content/docs/references/ai/cost/CostOptimizationRecommendation.mdx
+++ b/content/docs/references/ai/cost/CostOptimizationRecommendation.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: cost
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/cost.zod.ts`
diff --git a/content/docs/references/ai/cost/CostQueryFilters.mdx b/content/docs/references/ai/cost/CostQueryFilters.mdx
index 2831c9a92..248a489c4 100644
--- a/content/docs/references/ai/cost/CostQueryFilters.mdx
+++ b/content/docs/references/ai/cost/CostQueryFilters.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: cost
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/cost.zod.ts`
diff --git a/content/docs/references/ai/cost/CostReport.mdx b/content/docs/references/ai/cost/CostReport.mdx
index c740b3305..984a63f5c 100644
--- a/content/docs/references/ai/cost/CostReport.mdx
+++ b/content/docs/references/ai/cost/CostReport.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: cost
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/cost.zod.ts`
diff --git a/content/docs/references/ai/index.mdx b/content/docs/references/ai/index.mdx
index 5cc82d258..2d8212b89 100644
--- a/content/docs/references/ai/index.mdx
+++ b/content/docs/references/ai/index.mdx
@@ -3,7 +3,6 @@ title: AI Protocol Overview
description: Complete reference for all ai protocol schemas
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
# AI Protocol
diff --git a/content/docs/references/ai/model-registry/ModelCapability.mdx b/content/docs/references/ai/model-registry/ModelCapability.mdx
index 69c826e81..e5a65992c 100644
--- a/content/docs/references/ai/model-registry/ModelCapability.mdx
+++ b/content/docs/references/ai/model-registry/ModelCapability.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: model-registry
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/model-registry.zod.ts`
diff --git a/content/docs/references/ai/model-registry/ModelConfig.mdx b/content/docs/references/ai/model-registry/ModelConfig.mdx
index 1147ac7d0..759c80fcc 100644
--- a/content/docs/references/ai/model-registry/ModelConfig.mdx
+++ b/content/docs/references/ai/model-registry/ModelConfig.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: model-registry
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/model-registry.zod.ts`
diff --git a/content/docs/references/ai/model-registry/ModelLimits.mdx b/content/docs/references/ai/model-registry/ModelLimits.mdx
index be041e553..98ac6c2c6 100644
--- a/content/docs/references/ai/model-registry/ModelLimits.mdx
+++ b/content/docs/references/ai/model-registry/ModelLimits.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: model-registry
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/model-registry.zod.ts`
diff --git a/content/docs/references/ai/model-registry/ModelPricing.mdx b/content/docs/references/ai/model-registry/ModelPricing.mdx
index 4c2d52635..2ce149c42 100644
--- a/content/docs/references/ai/model-registry/ModelPricing.mdx
+++ b/content/docs/references/ai/model-registry/ModelPricing.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: model-registry
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/model-registry.zod.ts`
diff --git a/content/docs/references/ai/model-registry/ModelProvider.mdx b/content/docs/references/ai/model-registry/ModelProvider.mdx
index b02a9d0c0..754b21236 100644
--- a/content/docs/references/ai/model-registry/ModelProvider.mdx
+++ b/content/docs/references/ai/model-registry/ModelProvider.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: model-registry
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/model-registry.zod.ts`
diff --git a/content/docs/references/ai/model-registry/ModelRegistry.mdx b/content/docs/references/ai/model-registry/ModelRegistry.mdx
index 32ed05894..d927741c8 100644
--- a/content/docs/references/ai/model-registry/ModelRegistry.mdx
+++ b/content/docs/references/ai/model-registry/ModelRegistry.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: model-registry
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/model-registry.zod.ts`
diff --git a/content/docs/references/ai/model-registry/ModelRegistryEntry.mdx b/content/docs/references/ai/model-registry/ModelRegistryEntry.mdx
index c744cfa4e..a33563e0e 100644
--- a/content/docs/references/ai/model-registry/ModelRegistryEntry.mdx
+++ b/content/docs/references/ai/model-registry/ModelRegistryEntry.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: model-registry
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/model-registry.zod.ts`
diff --git a/content/docs/references/ai/model-registry/ModelSelectionCriteria.mdx b/content/docs/references/ai/model-registry/ModelSelectionCriteria.mdx
index 7a3e7de26..8d9352eeb 100644
--- a/content/docs/references/ai/model-registry/ModelSelectionCriteria.mdx
+++ b/content/docs/references/ai/model-registry/ModelSelectionCriteria.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: model-registry
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/model-registry.zod.ts`
diff --git a/content/docs/references/ai/model-registry/PromptTemplate.mdx b/content/docs/references/ai/model-registry/PromptTemplate.mdx
index d2d5d5d56..b723a8d94 100644
--- a/content/docs/references/ai/model-registry/PromptTemplate.mdx
+++ b/content/docs/references/ai/model-registry/PromptTemplate.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: model-registry
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/model-registry.zod.ts`
diff --git a/content/docs/references/ai/model-registry/PromptVariable.mdx b/content/docs/references/ai/model-registry/PromptVariable.mdx
index 4ea187d8b..c281ed0a1 100644
--- a/content/docs/references/ai/model-registry/PromptVariable.mdx
+++ b/content/docs/references/ai/model-registry/PromptVariable.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: model-registry
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/model-registry.zod.ts`
diff --git a/content/docs/references/ai/nlq/Entity.mdx b/content/docs/references/ai/nlq/Entity.mdx
index eb3336da9..f4ff57734 100644
--- a/content/docs/references/ai/nlq/Entity.mdx
+++ b/content/docs/references/ai/nlq/Entity.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: nlq
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/nlq.zod.ts`
diff --git a/content/docs/references/ai/nlq/FieldSynonymConfig.mdx b/content/docs/references/ai/nlq/FieldSynonymConfig.mdx
index b4f0ac8cf..d5ac00d58 100644
--- a/content/docs/references/ai/nlq/FieldSynonymConfig.mdx
+++ b/content/docs/references/ai/nlq/FieldSynonymConfig.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: nlq
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/nlq.zod.ts`
diff --git a/content/docs/references/ai/nlq/NLQAnalytics.mdx b/content/docs/references/ai/nlq/NLQAnalytics.mdx
index b0ffe005c..d1c75443b 100644
--- a/content/docs/references/ai/nlq/NLQAnalytics.mdx
+++ b/content/docs/references/ai/nlq/NLQAnalytics.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: nlq
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/nlq.zod.ts`
diff --git a/content/docs/references/ai/nlq/NLQFieldMapping.mdx b/content/docs/references/ai/nlq/NLQFieldMapping.mdx
index d91622027..21433ce35 100644
--- a/content/docs/references/ai/nlq/NLQFieldMapping.mdx
+++ b/content/docs/references/ai/nlq/NLQFieldMapping.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: nlq
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/nlq.zod.ts`
diff --git a/content/docs/references/ai/nlq/NLQModelConfig.mdx b/content/docs/references/ai/nlq/NLQModelConfig.mdx
index ce0422141..e041a9c19 100644
--- a/content/docs/references/ai/nlq/NLQModelConfig.mdx
+++ b/content/docs/references/ai/nlq/NLQModelConfig.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: nlq
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/nlq.zod.ts`
diff --git a/content/docs/references/ai/nlq/NLQParseResult.mdx b/content/docs/references/ai/nlq/NLQParseResult.mdx
index 2c639990a..28f8ddef6 100644
--- a/content/docs/references/ai/nlq/NLQParseResult.mdx
+++ b/content/docs/references/ai/nlq/NLQParseResult.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: nlq
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/nlq.zod.ts`
diff --git a/content/docs/references/ai/nlq/NLQRequest.mdx b/content/docs/references/ai/nlq/NLQRequest.mdx
index 115fcf458..bb7f4d97f 100644
--- a/content/docs/references/ai/nlq/NLQRequest.mdx
+++ b/content/docs/references/ai/nlq/NLQRequest.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: nlq
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/nlq.zod.ts`
diff --git a/content/docs/references/ai/nlq/NLQResponse.mdx b/content/docs/references/ai/nlq/NLQResponse.mdx
index 2629d03a1..3997880fe 100644
--- a/content/docs/references/ai/nlq/NLQResponse.mdx
+++ b/content/docs/references/ai/nlq/NLQResponse.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: nlq
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/nlq.zod.ts`
diff --git a/content/docs/references/ai/nlq/NLQTrainingExample.mdx b/content/docs/references/ai/nlq/NLQTrainingExample.mdx
index c7f62046f..83861737e 100644
--- a/content/docs/references/ai/nlq/NLQTrainingExample.mdx
+++ b/content/docs/references/ai/nlq/NLQTrainingExample.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: nlq
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/nlq.zod.ts`
diff --git a/content/docs/references/ai/nlq/QueryContext.mdx b/content/docs/references/ai/nlq/QueryContext.mdx
index 9c286db6b..0216cdebb 100644
--- a/content/docs/references/ai/nlq/QueryContext.mdx
+++ b/content/docs/references/ai/nlq/QueryContext.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: nlq
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/nlq.zod.ts`
diff --git a/content/docs/references/ai/nlq/QueryIntent.mdx b/content/docs/references/ai/nlq/QueryIntent.mdx
index 0309d0423..a99eb4724 100644
--- a/content/docs/references/ai/nlq/QueryIntent.mdx
+++ b/content/docs/references/ai/nlq/QueryIntent.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: nlq
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/nlq.zod.ts`
diff --git a/content/docs/references/ai/nlq/QueryTemplate.mdx b/content/docs/references/ai/nlq/QueryTemplate.mdx
index 36dabfd60..3ab57de06 100644
--- a/content/docs/references/ai/nlq/QueryTemplate.mdx
+++ b/content/docs/references/ai/nlq/QueryTemplate.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: nlq
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/nlq.zod.ts`
diff --git a/content/docs/references/ai/nlq/Timeframe.mdx b/content/docs/references/ai/nlq/Timeframe.mdx
index 111fba0f9..0a24d4b74 100644
--- a/content/docs/references/ai/nlq/Timeframe.mdx
+++ b/content/docs/references/ai/nlq/Timeframe.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: nlq
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/nlq.zod.ts`
diff --git a/content/docs/references/ai/orchestration/AIOrchestration.mdx b/content/docs/references/ai/orchestration/AIOrchestration.mdx
index eda23bc0a..2c713123d 100644
--- a/content/docs/references/ai/orchestration/AIOrchestration.mdx
+++ b/content/docs/references/ai/orchestration/AIOrchestration.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: orchestration
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/orchestration.zod.ts`
diff --git a/content/docs/references/ai/orchestration/AIOrchestrationExecutionResult.mdx b/content/docs/references/ai/orchestration/AIOrchestrationExecutionResult.mdx
index 2761fde3e..7592d50c7 100644
--- a/content/docs/references/ai/orchestration/AIOrchestrationExecutionResult.mdx
+++ b/content/docs/references/ai/orchestration/AIOrchestrationExecutionResult.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: orchestration
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/orchestration.zod.ts`
diff --git a/content/docs/references/ai/orchestration/AIOrchestrationTrigger.mdx b/content/docs/references/ai/orchestration/AIOrchestrationTrigger.mdx
index bbfebd981..c98afdb58 100644
--- a/content/docs/references/ai/orchestration/AIOrchestrationTrigger.mdx
+++ b/content/docs/references/ai/orchestration/AIOrchestrationTrigger.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: orchestration
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/orchestration.zod.ts`
diff --git a/content/docs/references/ai/orchestration/AITask.mdx b/content/docs/references/ai/orchestration/AITask.mdx
index 2e54428ec..ac7ad8eff 100644
--- a/content/docs/references/ai/orchestration/AITask.mdx
+++ b/content/docs/references/ai/orchestration/AITask.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: orchestration
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/orchestration.zod.ts`
diff --git a/content/docs/references/ai/orchestration/AITaskType.mdx b/content/docs/references/ai/orchestration/AITaskType.mdx
index 8511464c5..608cbb409 100644
--- a/content/docs/references/ai/orchestration/AITaskType.mdx
+++ b/content/docs/references/ai/orchestration/AITaskType.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: orchestration
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/orchestration.zod.ts`
diff --git a/content/docs/references/ai/orchestration/BatchAIOrchestrationExecution.mdx b/content/docs/references/ai/orchestration/BatchAIOrchestrationExecution.mdx
index 459712f2e..a96c359c8 100644
--- a/content/docs/references/ai/orchestration/BatchAIOrchestrationExecution.mdx
+++ b/content/docs/references/ai/orchestration/BatchAIOrchestrationExecution.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: orchestration
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/orchestration.zod.ts`
diff --git a/content/docs/references/ai/orchestration/PostProcessingAction.mdx b/content/docs/references/ai/orchestration/PostProcessingAction.mdx
index 87e1e6661..d1aa65973 100644
--- a/content/docs/references/ai/orchestration/PostProcessingAction.mdx
+++ b/content/docs/references/ai/orchestration/PostProcessingAction.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: orchestration
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/orchestration.zod.ts`
diff --git a/content/docs/references/ai/orchestration/WorkflowFieldCondition.mdx b/content/docs/references/ai/orchestration/WorkflowFieldCondition.mdx
index 079cf963e..992f27998 100644
--- a/content/docs/references/ai/orchestration/WorkflowFieldCondition.mdx
+++ b/content/docs/references/ai/orchestration/WorkflowFieldCondition.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: orchestration
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/orchestration.zod.ts`
diff --git a/content/docs/references/ai/orchestration/WorkflowSchedule.mdx b/content/docs/references/ai/orchestration/WorkflowSchedule.mdx
index 57a2be24e..e51403547 100644
--- a/content/docs/references/ai/orchestration/WorkflowSchedule.mdx
+++ b/content/docs/references/ai/orchestration/WorkflowSchedule.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: orchestration
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/orchestration.zod.ts`
diff --git a/content/docs/references/ai/predictive/EvaluationMetrics.mdx b/content/docs/references/ai/predictive/EvaluationMetrics.mdx
index 4d56190a1..9d05509d0 100644
--- a/content/docs/references/ai/predictive/EvaluationMetrics.mdx
+++ b/content/docs/references/ai/predictive/EvaluationMetrics.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: predictive
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/predictive.zod.ts`
diff --git a/content/docs/references/ai/predictive/Hyperparameters.mdx b/content/docs/references/ai/predictive/Hyperparameters.mdx
index 70f06f94e..03ad72791 100644
--- a/content/docs/references/ai/predictive/Hyperparameters.mdx
+++ b/content/docs/references/ai/predictive/Hyperparameters.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: predictive
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/predictive.zod.ts`
diff --git a/content/docs/references/ai/predictive/ModelDrift.mdx b/content/docs/references/ai/predictive/ModelDrift.mdx
index ce570b847..873c109e1 100644
--- a/content/docs/references/ai/predictive/ModelDrift.mdx
+++ b/content/docs/references/ai/predictive/ModelDrift.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: predictive
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/predictive.zod.ts`
diff --git a/content/docs/references/ai/predictive/ModelFeature.mdx b/content/docs/references/ai/predictive/ModelFeature.mdx
index a3bc12a65..e7640e6f7 100644
--- a/content/docs/references/ai/predictive/ModelFeature.mdx
+++ b/content/docs/references/ai/predictive/ModelFeature.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: predictive
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/predictive.zod.ts`
diff --git a/content/docs/references/ai/predictive/PredictionRequest.mdx b/content/docs/references/ai/predictive/PredictionRequest.mdx
index ed9dac76e..c8065d43a 100644
--- a/content/docs/references/ai/predictive/PredictionRequest.mdx
+++ b/content/docs/references/ai/predictive/PredictionRequest.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: predictive
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/predictive.zod.ts`
diff --git a/content/docs/references/ai/predictive/PredictionResult.mdx b/content/docs/references/ai/predictive/PredictionResult.mdx
index 67dc621db..3be121497 100644
--- a/content/docs/references/ai/predictive/PredictionResult.mdx
+++ b/content/docs/references/ai/predictive/PredictionResult.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: predictive
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/predictive.zod.ts`
diff --git a/content/docs/references/ai/predictive/PredictiveModel.mdx b/content/docs/references/ai/predictive/PredictiveModel.mdx
index 8559112ec..fbe2ccfca 100644
--- a/content/docs/references/ai/predictive/PredictiveModel.mdx
+++ b/content/docs/references/ai/predictive/PredictiveModel.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: predictive
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/predictive.zod.ts`
diff --git a/content/docs/references/ai/predictive/PredictiveModelType.mdx b/content/docs/references/ai/predictive/PredictiveModelType.mdx
index 4903d97a0..285ecc8de 100644
--- a/content/docs/references/ai/predictive/PredictiveModelType.mdx
+++ b/content/docs/references/ai/predictive/PredictiveModelType.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: predictive
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/predictive.zod.ts`
diff --git a/content/docs/references/ai/predictive/TrainingConfig.mdx b/content/docs/references/ai/predictive/TrainingConfig.mdx
index c83782713..38a3df087 100644
--- a/content/docs/references/ai/predictive/TrainingConfig.mdx
+++ b/content/docs/references/ai/predictive/TrainingConfig.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: predictive
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/predictive.zod.ts`
diff --git a/content/docs/references/ai/rag-pipeline/ChunkingStrategy.mdx b/content/docs/references/ai/rag-pipeline/ChunkingStrategy.mdx
index 391850c42..aa35e44af 100644
--- a/content/docs/references/ai/rag-pipeline/ChunkingStrategy.mdx
+++ b/content/docs/references/ai/rag-pipeline/ChunkingStrategy.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: rag-pipeline
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/rag-pipeline.zod.ts`
diff --git a/content/docs/references/ai/rag-pipeline/DocumentChunk.mdx b/content/docs/references/ai/rag-pipeline/DocumentChunk.mdx
index f3f4c56d8..effb3617e 100644
--- a/content/docs/references/ai/rag-pipeline/DocumentChunk.mdx
+++ b/content/docs/references/ai/rag-pipeline/DocumentChunk.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: rag-pipeline
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/rag-pipeline.zod.ts`
diff --git a/content/docs/references/ai/rag-pipeline/DocumentLoaderConfig.mdx b/content/docs/references/ai/rag-pipeline/DocumentLoaderConfig.mdx
index 34321bea0..713b601cb 100644
--- a/content/docs/references/ai/rag-pipeline/DocumentLoaderConfig.mdx
+++ b/content/docs/references/ai/rag-pipeline/DocumentLoaderConfig.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: rag-pipeline
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/rag-pipeline.zod.ts`
diff --git a/content/docs/references/ai/rag-pipeline/DocumentMetadata.mdx b/content/docs/references/ai/rag-pipeline/DocumentMetadata.mdx
index 2b139db62..778eaae6b 100644
--- a/content/docs/references/ai/rag-pipeline/DocumentMetadata.mdx
+++ b/content/docs/references/ai/rag-pipeline/DocumentMetadata.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: rag-pipeline
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/rag-pipeline.zod.ts`
diff --git a/content/docs/references/ai/rag-pipeline/EmbeddingModel.mdx b/content/docs/references/ai/rag-pipeline/EmbeddingModel.mdx
index a89d0cc90..17de427b0 100644
--- a/content/docs/references/ai/rag-pipeline/EmbeddingModel.mdx
+++ b/content/docs/references/ai/rag-pipeline/EmbeddingModel.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: rag-pipeline
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/rag-pipeline.zod.ts`
diff --git a/content/docs/references/ai/rag-pipeline/RAGPipelineConfig.mdx b/content/docs/references/ai/rag-pipeline/RAGPipelineConfig.mdx
index 1e289670c..eddcfc3a3 100644
--- a/content/docs/references/ai/rag-pipeline/RAGPipelineConfig.mdx
+++ b/content/docs/references/ai/rag-pipeline/RAGPipelineConfig.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: rag-pipeline
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/rag-pipeline.zod.ts`
diff --git a/content/docs/references/ai/rag-pipeline/RAGPipelineStatus.mdx b/content/docs/references/ai/rag-pipeline/RAGPipelineStatus.mdx
index c39d5ef55..7eec63404 100644
--- a/content/docs/references/ai/rag-pipeline/RAGPipelineStatus.mdx
+++ b/content/docs/references/ai/rag-pipeline/RAGPipelineStatus.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: rag-pipeline
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/rag-pipeline.zod.ts`
diff --git a/content/docs/references/ai/rag-pipeline/RAGQueryRequest.mdx b/content/docs/references/ai/rag-pipeline/RAGQueryRequest.mdx
index 6cbb91931..0415441c0 100644
--- a/content/docs/references/ai/rag-pipeline/RAGQueryRequest.mdx
+++ b/content/docs/references/ai/rag-pipeline/RAGQueryRequest.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: rag-pipeline
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/rag-pipeline.zod.ts`
diff --git a/content/docs/references/ai/rag-pipeline/RAGQueryResponse.mdx b/content/docs/references/ai/rag-pipeline/RAGQueryResponse.mdx
index 30cb6ba5a..8f7a06bb9 100644
--- a/content/docs/references/ai/rag-pipeline/RAGQueryResponse.mdx
+++ b/content/docs/references/ai/rag-pipeline/RAGQueryResponse.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: rag-pipeline
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/rag-pipeline.zod.ts`
diff --git a/content/docs/references/ai/rag-pipeline/RerankingConfig.mdx b/content/docs/references/ai/rag-pipeline/RerankingConfig.mdx
index 8289a0005..13f2c94c8 100644
--- a/content/docs/references/ai/rag-pipeline/RerankingConfig.mdx
+++ b/content/docs/references/ai/rag-pipeline/RerankingConfig.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: rag-pipeline
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/rag-pipeline.zod.ts`
diff --git a/content/docs/references/ai/rag-pipeline/RetrievalStrategy.mdx b/content/docs/references/ai/rag-pipeline/RetrievalStrategy.mdx
index 3614a66fe..4368653dd 100644
--- a/content/docs/references/ai/rag-pipeline/RetrievalStrategy.mdx
+++ b/content/docs/references/ai/rag-pipeline/RetrievalStrategy.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: rag-pipeline
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/rag-pipeline.zod.ts`
diff --git a/content/docs/references/ai/rag-pipeline/VectorStoreConfig.mdx b/content/docs/references/ai/rag-pipeline/VectorStoreConfig.mdx
index c4172f740..824af54c4 100644
--- a/content/docs/references/ai/rag-pipeline/VectorStoreConfig.mdx
+++ b/content/docs/references/ai/rag-pipeline/VectorStoreConfig.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: rag-pipeline
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/rag-pipeline.zod.ts`
diff --git a/content/docs/references/ai/rag-pipeline/VectorStoreProvider.mdx b/content/docs/references/ai/rag-pipeline/VectorStoreProvider.mdx
index 73fcdcfea..2d456310c 100644
--- a/content/docs/references/ai/rag-pipeline/VectorStoreProvider.mdx
+++ b/content/docs/references/ai/rag-pipeline/VectorStoreProvider.mdx
@@ -5,9 +5,6 @@ category: ai
zodFile: rag-pipeline
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/ai/rag-pipeline.zod.ts`
diff --git a/content/docs/references/api/contract/ApiError.mdx b/content/docs/references/api/contract/ApiError.mdx
index 2b8f997bf..11ca539ed 100644
--- a/content/docs/references/api/contract/ApiError.mdx
+++ b/content/docs/references/api/contract/ApiError.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: contract
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/contract.zod.ts`
diff --git a/content/docs/references/api/contract/BaseResponse.mdx b/content/docs/references/api/contract/BaseResponse.mdx
index 004796d76..18c99aacc 100644
--- a/content/docs/references/api/contract/BaseResponse.mdx
+++ b/content/docs/references/api/contract/BaseResponse.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: contract
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/contract.zod.ts`
diff --git a/content/docs/references/api/contract/BulkRequest.mdx b/content/docs/references/api/contract/BulkRequest.mdx
index ba47b0832..9917c09f1 100644
--- a/content/docs/references/api/contract/BulkRequest.mdx
+++ b/content/docs/references/api/contract/BulkRequest.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: contract
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/contract.zod.ts`
diff --git a/content/docs/references/api/contract/BulkResponse.mdx b/content/docs/references/api/contract/BulkResponse.mdx
index 6c5a29619..3c2a00ca6 100644
--- a/content/docs/references/api/contract/BulkResponse.mdx
+++ b/content/docs/references/api/contract/BulkResponse.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: contract
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/contract.zod.ts`
diff --git a/content/docs/references/api/contract/CreateRequest.mdx b/content/docs/references/api/contract/CreateRequest.mdx
index 222c07ce3..7ba9ed808 100644
--- a/content/docs/references/api/contract/CreateRequest.mdx
+++ b/content/docs/references/api/contract/CreateRequest.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: contract
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/contract.zod.ts`
diff --git a/content/docs/references/api/contract/DeleteResponse.mdx b/content/docs/references/api/contract/DeleteResponse.mdx
index 9a74b3b5f..b6f5b691a 100644
--- a/content/docs/references/api/contract/DeleteResponse.mdx
+++ b/content/docs/references/api/contract/DeleteResponse.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: contract
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/contract.zod.ts`
diff --git a/content/docs/references/api/contract/ExportRequest.mdx b/content/docs/references/api/contract/ExportRequest.mdx
index b6f153c77..4b3d51b55 100644
--- a/content/docs/references/api/contract/ExportRequest.mdx
+++ b/content/docs/references/api/contract/ExportRequest.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: contract
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/contract.zod.ts`
diff --git a/content/docs/references/api/contract/ListRecordResponse.mdx b/content/docs/references/api/contract/ListRecordResponse.mdx
index 22f01f1d5..ccfa95b7c 100644
--- a/content/docs/references/api/contract/ListRecordResponse.mdx
+++ b/content/docs/references/api/contract/ListRecordResponse.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: contract
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/contract.zod.ts`
diff --git a/content/docs/references/api/contract/ModificationResult.mdx b/content/docs/references/api/contract/ModificationResult.mdx
index f48f9bc5c..24af2997b 100644
--- a/content/docs/references/api/contract/ModificationResult.mdx
+++ b/content/docs/references/api/contract/ModificationResult.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: contract
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/contract.zod.ts`
diff --git a/content/docs/references/api/contract/RecordData.mdx b/content/docs/references/api/contract/RecordData.mdx
index 06470f3c0..8d5c4150e 100644
--- a/content/docs/references/api/contract/RecordData.mdx
+++ b/content/docs/references/api/contract/RecordData.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: contract
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
Key-value map of record data
diff --git a/content/docs/references/api/contract/SingleRecordResponse.mdx b/content/docs/references/api/contract/SingleRecordResponse.mdx
index e9b4bf2c0..f12cbb503 100644
--- a/content/docs/references/api/contract/SingleRecordResponse.mdx
+++ b/content/docs/references/api/contract/SingleRecordResponse.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: contract
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/contract.zod.ts`
diff --git a/content/docs/references/api/contract/UpdateRequest.mdx b/content/docs/references/api/contract/UpdateRequest.mdx
index 93eebd555..3de9be142 100644
--- a/content/docs/references/api/contract/UpdateRequest.mdx
+++ b/content/docs/references/api/contract/UpdateRequest.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: contract
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/contract.zod.ts`
diff --git a/content/docs/references/api/discovery/ApiCapabilities.mdx b/content/docs/references/api/discovery/ApiCapabilities.mdx
index 87354d3a7..ac92b5da9 100644
--- a/content/docs/references/api/discovery/ApiCapabilities.mdx
+++ b/content/docs/references/api/discovery/ApiCapabilities.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: discovery
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/discovery.zod.ts`
diff --git a/content/docs/references/api/discovery/ApiRoutes.mdx b/content/docs/references/api/discovery/ApiRoutes.mdx
index 238b10ecf..4452f67c7 100644
--- a/content/docs/references/api/discovery/ApiRoutes.mdx
+++ b/content/docs/references/api/discovery/ApiRoutes.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: discovery
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/discovery.zod.ts`
diff --git a/content/docs/references/api/discovery/Discovery.mdx b/content/docs/references/api/discovery/Discovery.mdx
index c89fa696a..78bf7bc75 100644
--- a/content/docs/references/api/discovery/Discovery.mdx
+++ b/content/docs/references/api/discovery/Discovery.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: discovery
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/discovery.zod.ts`
diff --git a/content/docs/references/api/endpoint/ApiEndpoint.mdx b/content/docs/references/api/endpoint/ApiEndpoint.mdx
index d61a623a0..9d283de5a 100644
--- a/content/docs/references/api/endpoint/ApiEndpoint.mdx
+++ b/content/docs/references/api/endpoint/ApiEndpoint.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: endpoint
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/endpoint.zod.ts`
diff --git a/content/docs/references/api/endpoint/ApiMapping.mdx b/content/docs/references/api/endpoint/ApiMapping.mdx
index 37c8f5480..5aa45328a 100644
--- a/content/docs/references/api/endpoint/ApiMapping.mdx
+++ b/content/docs/references/api/endpoint/ApiMapping.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: endpoint
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/endpoint.zod.ts`
diff --git a/content/docs/references/api/endpoint/RateLimit.mdx b/content/docs/references/api/endpoint/RateLimit.mdx
index 2af59d4a1..666c45f54 100644
--- a/content/docs/references/api/endpoint/RateLimit.mdx
+++ b/content/docs/references/api/endpoint/RateLimit.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: endpoint
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/endpoint.zod.ts`
diff --git a/content/docs/references/api/index.mdx b/content/docs/references/api/index.mdx
index 278c8ad12..b62c9e521 100644
--- a/content/docs/references/api/index.mdx
+++ b/content/docs/references/api/index.mdx
@@ -3,7 +3,6 @@ title: API Protocol Overview
description: Complete reference for all api protocol schemas
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
# API Protocol
diff --git a/content/docs/references/api/odata/ODataError.mdx b/content/docs/references/api/odata/ODataError.mdx
index f4dfbfd0e..cc814f826 100644
--- a/content/docs/references/api/odata/ODataError.mdx
+++ b/content/docs/references/api/odata/ODataError.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: odata
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/odata.zod.ts`
diff --git a/content/docs/references/api/odata/ODataFilterFunction.mdx b/content/docs/references/api/odata/ODataFilterFunction.mdx
index cc41ae1cd..4d67ed223 100644
--- a/content/docs/references/api/odata/ODataFilterFunction.mdx
+++ b/content/docs/references/api/odata/ODataFilterFunction.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: odata
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/odata.zod.ts`
diff --git a/content/docs/references/api/odata/ODataFilterOperator.mdx b/content/docs/references/api/odata/ODataFilterOperator.mdx
index fedc3d61a..869831ae7 100644
--- a/content/docs/references/api/odata/ODataFilterOperator.mdx
+++ b/content/docs/references/api/odata/ODataFilterOperator.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: odata
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/odata.zod.ts`
diff --git a/content/docs/references/api/odata/ODataMetadata.mdx b/content/docs/references/api/odata/ODataMetadata.mdx
index b589f9f0f..071895b9e 100644
--- a/content/docs/references/api/odata/ODataMetadata.mdx
+++ b/content/docs/references/api/odata/ODataMetadata.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: odata
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/odata.zod.ts`
diff --git a/content/docs/references/api/odata/ODataQuery.mdx b/content/docs/references/api/odata/ODataQuery.mdx
index d881c84af..47d7aa01a 100644
--- a/content/docs/references/api/odata/ODataQuery.mdx
+++ b/content/docs/references/api/odata/ODataQuery.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: odata
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/odata.zod.ts`
diff --git a/content/docs/references/api/odata/ODataResponse.mdx b/content/docs/references/api/odata/ODataResponse.mdx
index 63b357e1a..ed59f747e 100644
--- a/content/docs/references/api/odata/ODataResponse.mdx
+++ b/content/docs/references/api/odata/ODataResponse.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: odata
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/odata.zod.ts`
diff --git a/content/docs/references/api/realtime/Presence.mdx b/content/docs/references/api/realtime/Presence.mdx
index a3475d126..9664a28c8 100644
--- a/content/docs/references/api/realtime/Presence.mdx
+++ b/content/docs/references/api/realtime/Presence.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: realtime
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/realtime.zod.ts`
diff --git a/content/docs/references/api/realtime/PresenceStatus.mdx b/content/docs/references/api/realtime/PresenceStatus.mdx
index e668a8cf8..9dd97e3f7 100644
--- a/content/docs/references/api/realtime/PresenceStatus.mdx
+++ b/content/docs/references/api/realtime/PresenceStatus.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: realtime
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/realtime.zod.ts`
diff --git a/content/docs/references/api/realtime/RealtimeAction.mdx b/content/docs/references/api/realtime/RealtimeAction.mdx
index 7993df9c3..62ab17dc5 100644
--- a/content/docs/references/api/realtime/RealtimeAction.mdx
+++ b/content/docs/references/api/realtime/RealtimeAction.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: realtime
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/realtime.zod.ts`
diff --git a/content/docs/references/api/realtime/RealtimeEvent.mdx b/content/docs/references/api/realtime/RealtimeEvent.mdx
index e682edd0d..47a600bb0 100644
--- a/content/docs/references/api/realtime/RealtimeEvent.mdx
+++ b/content/docs/references/api/realtime/RealtimeEvent.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: realtime
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/realtime.zod.ts`
diff --git a/content/docs/references/api/realtime/RealtimeEventType.mdx b/content/docs/references/api/realtime/RealtimeEventType.mdx
index be43423f8..68ee1f2f3 100644
--- a/content/docs/references/api/realtime/RealtimeEventType.mdx
+++ b/content/docs/references/api/realtime/RealtimeEventType.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: realtime
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/realtime.zod.ts`
diff --git a/content/docs/references/api/realtime/Subscription.mdx b/content/docs/references/api/realtime/Subscription.mdx
index 258f9170c..d27617976 100644
--- a/content/docs/references/api/realtime/Subscription.mdx
+++ b/content/docs/references/api/realtime/Subscription.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: realtime
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/realtime.zod.ts`
diff --git a/content/docs/references/api/realtime/SubscriptionEvent.mdx b/content/docs/references/api/realtime/SubscriptionEvent.mdx
index a6af28371..e15fe9757 100644
--- a/content/docs/references/api/realtime/SubscriptionEvent.mdx
+++ b/content/docs/references/api/realtime/SubscriptionEvent.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: realtime
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/realtime.zod.ts`
diff --git a/content/docs/references/api/realtime/TransportProtocol.mdx b/content/docs/references/api/realtime/TransportProtocol.mdx
index 58a4ffca6..253172acf 100644
--- a/content/docs/references/api/realtime/TransportProtocol.mdx
+++ b/content/docs/references/api/realtime/TransportProtocol.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: realtime
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/realtime.zod.ts`
diff --git a/content/docs/references/api/router/RouteCategory.mdx b/content/docs/references/api/router/RouteCategory.mdx
index bb6201b73..3adaf9991 100644
--- a/content/docs/references/api/router/RouteCategory.mdx
+++ b/content/docs/references/api/router/RouteCategory.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: router
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/router.zod.ts`
diff --git a/content/docs/references/api/router/RouteDefinition.mdx b/content/docs/references/api/router/RouteDefinition.mdx
index 06a5932bd..64cb75549 100644
--- a/content/docs/references/api/router/RouteDefinition.mdx
+++ b/content/docs/references/api/router/RouteDefinition.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: router
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/router.zod.ts`
diff --git a/content/docs/references/api/router/RouterConfig.mdx b/content/docs/references/api/router/RouterConfig.mdx
index 81cc5f7ca..deec8b457 100644
--- a/content/docs/references/api/router/RouterConfig.mdx
+++ b/content/docs/references/api/router/RouterConfig.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: router
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/router.zod.ts`
diff --git a/content/docs/references/api/view/HttpMethod.mdx b/content/docs/references/api/view/HttpMethod.mdx
index b55ef14d4..2186f8a97 100644
--- a/content/docs/references/api/view/HttpMethod.mdx
+++ b/content/docs/references/api/view/HttpMethod.mdx
@@ -5,9 +5,6 @@ category: api
zodFile: view
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/api/view.zod.ts`
diff --git a/content/docs/references/auth/config/AccountLinkingConfig.mdx b/content/docs/references/auth/config/AccountLinkingConfig.mdx
index 2f6b88299..c431d2968 100644
--- a/content/docs/references/auth/config/AccountLinkingConfig.mdx
+++ b/content/docs/references/auth/config/AccountLinkingConfig.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: config
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/config.zod.ts`
diff --git a/content/docs/references/auth/config/AuthConfig.mdx b/content/docs/references/auth/config/AuthConfig.mdx
index e771582bc..510214882 100644
--- a/content/docs/references/auth/config/AuthConfig.mdx
+++ b/content/docs/references/auth/config/AuthConfig.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: config
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/config.zod.ts`
diff --git a/content/docs/references/auth/config/AuthPluginConfig.mdx b/content/docs/references/auth/config/AuthPluginConfig.mdx
index 80ec23ea8..a729ab68d 100644
--- a/content/docs/references/auth/config/AuthPluginConfig.mdx
+++ b/content/docs/references/auth/config/AuthPluginConfig.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: config
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/config.zod.ts`
diff --git a/content/docs/references/auth/config/AuthStrategy.mdx b/content/docs/references/auth/config/AuthStrategy.mdx
index 50fedf739..c0fd8a890 100644
--- a/content/docs/references/auth/config/AuthStrategy.mdx
+++ b/content/docs/references/auth/config/AuthStrategy.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: config
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/config.zod.ts`
diff --git a/content/docs/references/auth/config/CSRFConfig.mdx b/content/docs/references/auth/config/CSRFConfig.mdx
index 53d04c167..a6aef30f1 100644
--- a/content/docs/references/auth/config/CSRFConfig.mdx
+++ b/content/docs/references/auth/config/CSRFConfig.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: config
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/config.zod.ts`
diff --git a/content/docs/references/auth/config/DatabaseAdapter.mdx b/content/docs/references/auth/config/DatabaseAdapter.mdx
index 1cd259f84..4f81ffd88 100644
--- a/content/docs/references/auth/config/DatabaseAdapter.mdx
+++ b/content/docs/references/auth/config/DatabaseAdapter.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: config
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/config.zod.ts`
diff --git a/content/docs/references/auth/config/DatabaseMapping.mdx b/content/docs/references/auth/config/DatabaseMapping.mdx
index bb5e07d74..f16f39a76 100644
--- a/content/docs/references/auth/config/DatabaseMapping.mdx
+++ b/content/docs/references/auth/config/DatabaseMapping.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: config
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/config.zod.ts`
diff --git a/content/docs/references/auth/config/EmailPasswordConfig.mdx b/content/docs/references/auth/config/EmailPasswordConfig.mdx
index 56637f8a2..eb3ecc3fc 100644
--- a/content/docs/references/auth/config/EmailPasswordConfig.mdx
+++ b/content/docs/references/auth/config/EmailPasswordConfig.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: config
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/config.zod.ts`
diff --git a/content/docs/references/auth/config/EnterpriseAuthConfig.mdx b/content/docs/references/auth/config/EnterpriseAuthConfig.mdx
index e6a48622b..f0c1b663c 100644
--- a/content/docs/references/auth/config/EnterpriseAuthConfig.mdx
+++ b/content/docs/references/auth/config/EnterpriseAuthConfig.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: config
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/config.zod.ts`
diff --git a/content/docs/references/auth/config/LDAPConfig.mdx b/content/docs/references/auth/config/LDAPConfig.mdx
index 6706a48fb..5ff023035 100644
--- a/content/docs/references/auth/config/LDAPConfig.mdx
+++ b/content/docs/references/auth/config/LDAPConfig.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: config
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/config.zod.ts`
diff --git a/content/docs/references/auth/config/MagicLinkConfig.mdx b/content/docs/references/auth/config/MagicLinkConfig.mdx
index 20fd6f735..464388ad1 100644
--- a/content/docs/references/auth/config/MagicLinkConfig.mdx
+++ b/content/docs/references/auth/config/MagicLinkConfig.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: config
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/config.zod.ts`
diff --git a/content/docs/references/auth/config/OAuthProvider.mdx b/content/docs/references/auth/config/OAuthProvider.mdx
index e69e93afa..fc8508014 100644
--- a/content/docs/references/auth/config/OAuthProvider.mdx
+++ b/content/docs/references/auth/config/OAuthProvider.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: config
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/config.zod.ts`
diff --git a/content/docs/references/auth/config/OIDCConfig.mdx b/content/docs/references/auth/config/OIDCConfig.mdx
index f7e360a86..feddb5d98 100644
--- a/content/docs/references/auth/config/OIDCConfig.mdx
+++ b/content/docs/references/auth/config/OIDCConfig.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: config
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/config.zod.ts`
diff --git a/content/docs/references/auth/config/PasskeyConfig.mdx b/content/docs/references/auth/config/PasskeyConfig.mdx
index bd5448afb..21672d0dc 100644
--- a/content/docs/references/auth/config/PasskeyConfig.mdx
+++ b/content/docs/references/auth/config/PasskeyConfig.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: config
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/config.zod.ts`
diff --git a/content/docs/references/auth/config/RateLimitConfig.mdx b/content/docs/references/auth/config/RateLimitConfig.mdx
index 033db0195..52b27b3f5 100644
--- a/content/docs/references/auth/config/RateLimitConfig.mdx
+++ b/content/docs/references/auth/config/RateLimitConfig.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: config
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/config.zod.ts`
diff --git a/content/docs/references/auth/config/SAMLConfig.mdx b/content/docs/references/auth/config/SAMLConfig.mdx
index 3cfa1bf53..6316e74d4 100644
--- a/content/docs/references/auth/config/SAMLConfig.mdx
+++ b/content/docs/references/auth/config/SAMLConfig.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: config
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/config.zod.ts`
diff --git a/content/docs/references/auth/config/SessionConfig.mdx b/content/docs/references/auth/config/SessionConfig.mdx
index 7659f28c1..bd9f18c5e 100644
--- a/content/docs/references/auth/config/SessionConfig.mdx
+++ b/content/docs/references/auth/config/SessionConfig.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: config
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/config.zod.ts`
diff --git a/content/docs/references/auth/config/StandardAuthProvider.mdx b/content/docs/references/auth/config/StandardAuthProvider.mdx
index 5337f42c2..c47fa9be8 100644
--- a/content/docs/references/auth/config/StandardAuthProvider.mdx
+++ b/content/docs/references/auth/config/StandardAuthProvider.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: config
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/config.zod.ts`
diff --git a/content/docs/references/auth/config/TwoFactorConfig.mdx b/content/docs/references/auth/config/TwoFactorConfig.mdx
index 6004f0d12..c7024652e 100644
--- a/content/docs/references/auth/config/TwoFactorConfig.mdx
+++ b/content/docs/references/auth/config/TwoFactorConfig.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: config
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/config.zod.ts`
diff --git a/content/docs/references/auth/config/UserFieldMapping.mdx b/content/docs/references/auth/config/UserFieldMapping.mdx
index 8eb2da656..3f1d8151e 100644
--- a/content/docs/references/auth/config/UserFieldMapping.mdx
+++ b/content/docs/references/auth/config/UserFieldMapping.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: config
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/config.zod.ts`
diff --git a/content/docs/references/auth/identity/Account.mdx b/content/docs/references/auth/identity/Account.mdx
index 3584b9593..3057fbdbd 100644
--- a/content/docs/references/auth/identity/Account.mdx
+++ b/content/docs/references/auth/identity/Account.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: identity
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/identity.zod.ts`
diff --git a/content/docs/references/auth/identity/Session.mdx b/content/docs/references/auth/identity/Session.mdx
index f90973308..995c8fd20 100644
--- a/content/docs/references/auth/identity/Session.mdx
+++ b/content/docs/references/auth/identity/Session.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: identity
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/identity.zod.ts`
diff --git a/content/docs/references/auth/identity/User.mdx b/content/docs/references/auth/identity/User.mdx
index a04a49f5a..89fb56d9c 100644
--- a/content/docs/references/auth/identity/User.mdx
+++ b/content/docs/references/auth/identity/User.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: identity
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/identity.zod.ts`
diff --git a/content/docs/references/auth/identity/VerificationToken.mdx b/content/docs/references/auth/identity/VerificationToken.mdx
index 9c52fc9b6..940de43fd 100644
--- a/content/docs/references/auth/identity/VerificationToken.mdx
+++ b/content/docs/references/auth/identity/VerificationToken.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: identity
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/identity.zod.ts`
diff --git a/content/docs/references/auth/index.mdx b/content/docs/references/auth/index.mdx
index 3ee0dfd7b..d8f4aa59b 100644
--- a/content/docs/references/auth/index.mdx
+++ b/content/docs/references/auth/index.mdx
@@ -3,7 +3,6 @@ title: Auth Protocol Overview
description: Complete reference for all auth protocol schemas
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
# Auth Protocol
diff --git a/content/docs/references/auth/organization/Invitation.mdx b/content/docs/references/auth/organization/Invitation.mdx
index 18b8682b2..ae5ff8ea9 100644
--- a/content/docs/references/auth/organization/Invitation.mdx
+++ b/content/docs/references/auth/organization/Invitation.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: organization
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/organization.zod.ts`
diff --git a/content/docs/references/auth/organization/InvitationStatus.mdx b/content/docs/references/auth/organization/InvitationStatus.mdx
index 7f5eedacb..ad23c1320 100644
--- a/content/docs/references/auth/organization/InvitationStatus.mdx
+++ b/content/docs/references/auth/organization/InvitationStatus.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: organization
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/organization.zod.ts`
diff --git a/content/docs/references/auth/organization/Member.mdx b/content/docs/references/auth/organization/Member.mdx
index e818c54e7..dcf7ccc30 100644
--- a/content/docs/references/auth/organization/Member.mdx
+++ b/content/docs/references/auth/organization/Member.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: organization
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/organization.zod.ts`
diff --git a/content/docs/references/auth/organization/Organization.mdx b/content/docs/references/auth/organization/Organization.mdx
index 42bdb2dbd..8e2092ade 100644
--- a/content/docs/references/auth/organization/Organization.mdx
+++ b/content/docs/references/auth/organization/Organization.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: organization
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/organization.zod.ts`
diff --git a/content/docs/references/auth/policy/AuditPolicy.mdx b/content/docs/references/auth/policy/AuditPolicy.mdx
index bc70cc5ba..1aacc509b 100644
--- a/content/docs/references/auth/policy/AuditPolicy.mdx
+++ b/content/docs/references/auth/policy/AuditPolicy.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: policy
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/policy.zod.ts`
diff --git a/content/docs/references/auth/policy/NetworkPolicy.mdx b/content/docs/references/auth/policy/NetworkPolicy.mdx
index 65d16368a..b1bb472b5 100644
--- a/content/docs/references/auth/policy/NetworkPolicy.mdx
+++ b/content/docs/references/auth/policy/NetworkPolicy.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: policy
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/policy.zod.ts`
diff --git a/content/docs/references/auth/policy/PasswordPolicy.mdx b/content/docs/references/auth/policy/PasswordPolicy.mdx
index 5e281649f..938071c2a 100644
--- a/content/docs/references/auth/policy/PasswordPolicy.mdx
+++ b/content/docs/references/auth/policy/PasswordPolicy.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: policy
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/policy.zod.ts`
diff --git a/content/docs/references/auth/policy/Policy.mdx b/content/docs/references/auth/policy/Policy.mdx
index 620a85b69..1dae0c678 100644
--- a/content/docs/references/auth/policy/Policy.mdx
+++ b/content/docs/references/auth/policy/Policy.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: policy
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/policy.zod.ts`
diff --git a/content/docs/references/auth/policy/SessionPolicy.mdx b/content/docs/references/auth/policy/SessionPolicy.mdx
index 0481fa710..c403f7416 100644
--- a/content/docs/references/auth/policy/SessionPolicy.mdx
+++ b/content/docs/references/auth/policy/SessionPolicy.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: policy
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/policy.zod.ts`
diff --git a/content/docs/references/auth/role/Role.mdx b/content/docs/references/auth/role/Role.mdx
index 489b70e13..90b6bccc8 100644
--- a/content/docs/references/auth/role/Role.mdx
+++ b/content/docs/references/auth/role/Role.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: role
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/role.zod.ts`
diff --git a/content/docs/references/auth/scim/SCIMAddress.mdx b/content/docs/references/auth/scim/SCIMAddress.mdx
index db9f2825f..1aba33b77 100644
--- a/content/docs/references/auth/scim/SCIMAddress.mdx
+++ b/content/docs/references/auth/scim/SCIMAddress.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: scim
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/scim.zod.ts`
diff --git a/content/docs/references/auth/scim/SCIMEmail.mdx b/content/docs/references/auth/scim/SCIMEmail.mdx
index 083d3ddde..d81cd2134 100644
--- a/content/docs/references/auth/scim/SCIMEmail.mdx
+++ b/content/docs/references/auth/scim/SCIMEmail.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: scim
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/scim.zod.ts`
diff --git a/content/docs/references/auth/scim/SCIMEnterpriseUser.mdx b/content/docs/references/auth/scim/SCIMEnterpriseUser.mdx
index 109977634..a2779fee3 100644
--- a/content/docs/references/auth/scim/SCIMEnterpriseUser.mdx
+++ b/content/docs/references/auth/scim/SCIMEnterpriseUser.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: scim
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/scim.zod.ts`
diff --git a/content/docs/references/auth/scim/SCIMError.mdx b/content/docs/references/auth/scim/SCIMError.mdx
index 496a0b613..fc4510f52 100644
--- a/content/docs/references/auth/scim/SCIMError.mdx
+++ b/content/docs/references/auth/scim/SCIMError.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: scim
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/scim.zod.ts`
diff --git a/content/docs/references/auth/scim/SCIMGroup.mdx b/content/docs/references/auth/scim/SCIMGroup.mdx
index cfedeb567..69856a6e6 100644
--- a/content/docs/references/auth/scim/SCIMGroup.mdx
+++ b/content/docs/references/auth/scim/SCIMGroup.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: scim
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/scim.zod.ts`
diff --git a/content/docs/references/auth/scim/SCIMGroupReference.mdx b/content/docs/references/auth/scim/SCIMGroupReference.mdx
index 372361ea2..7117fe0cc 100644
--- a/content/docs/references/auth/scim/SCIMGroupReference.mdx
+++ b/content/docs/references/auth/scim/SCIMGroupReference.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: scim
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/scim.zod.ts`
diff --git a/content/docs/references/auth/scim/SCIMListResponse.mdx b/content/docs/references/auth/scim/SCIMListResponse.mdx
index 95df17a02..3ef786de9 100644
--- a/content/docs/references/auth/scim/SCIMListResponse.mdx
+++ b/content/docs/references/auth/scim/SCIMListResponse.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: scim
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/scim.zod.ts`
diff --git a/content/docs/references/auth/scim/SCIMMemberReference.mdx b/content/docs/references/auth/scim/SCIMMemberReference.mdx
index fc78efdff..ce4d108a7 100644
--- a/content/docs/references/auth/scim/SCIMMemberReference.mdx
+++ b/content/docs/references/auth/scim/SCIMMemberReference.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: scim
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/scim.zod.ts`
diff --git a/content/docs/references/auth/scim/SCIMMeta.mdx b/content/docs/references/auth/scim/SCIMMeta.mdx
index 054424b84..fbe94c544 100644
--- a/content/docs/references/auth/scim/SCIMMeta.mdx
+++ b/content/docs/references/auth/scim/SCIMMeta.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: scim
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/scim.zod.ts`
diff --git a/content/docs/references/auth/scim/SCIMName.mdx b/content/docs/references/auth/scim/SCIMName.mdx
index ac4ca9066..776c9cb0c 100644
--- a/content/docs/references/auth/scim/SCIMName.mdx
+++ b/content/docs/references/auth/scim/SCIMName.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: scim
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';
**Source:** `packages/spec/src/auth/scim.zod.ts`
diff --git a/content/docs/references/auth/scim/SCIMPatchOperation.mdx b/content/docs/references/auth/scim/SCIMPatchOperation.mdx
index 2f01fb513..25b935ca8 100644
--- a/content/docs/references/auth/scim/SCIMPatchOperation.mdx
+++ b/content/docs/references/auth/scim/SCIMPatchOperation.mdx
@@ -5,9 +5,6 @@ category: auth
zodFile: scim
---
-import { Card, Cards } from 'fumadocs-ui/components/card';
-import { Tab, Tabs } from 'fumadocs-ui/components/tabs';
-import { Callout } from 'fumadocs-ui/components/callout';