@objectstack/spec 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +127 -5
- package/dist/ai/conversation.zod.d.ts +1059 -0
- package/dist/ai/conversation.zod.d.ts.map +1 -0
- package/dist/ai/conversation.zod.js +248 -0
- package/dist/ai/cost.zod.d.ts +2025 -0
- package/dist/ai/cost.zod.d.ts.map +1 -0
- package/dist/ai/cost.zod.js +324 -0
- package/dist/ai/index.d.ts +22 -0
- package/dist/ai/index.d.ts.map +1 -0
- package/dist/ai/index.js +37 -0
- package/dist/ai/model-registry.zod.d.ts +1389 -0
- package/dist/ai/model-registry.zod.d.ts.map +1 -0
- package/dist/ai/model-registry.zod.js +164 -0
- package/dist/ai/nlq.zod.d.ts +1126 -0
- package/dist/ai/nlq.zod.d.ts.map +1 -0
- package/dist/ai/nlq.zod.js +246 -0
- package/dist/ai/predictive.zod.d.ts +838 -0
- package/dist/ai/predictive.zod.d.ts.map +1 -0
- package/dist/ai/predictive.zod.js +244 -0
- package/dist/ai/rag-pipeline.zod.d.ts +1034 -0
- package/dist/ai/rag-pipeline.zod.d.ts.map +1 -0
- package/dist/ai/rag-pipeline.zod.js +244 -0
- package/dist/ai/workflow-automation.zod.d.ts +590 -0
- package/dist/ai/workflow-automation.zod.d.ts.map +1 -0
- package/dist/ai/workflow-automation.zod.js +197 -0
- package/dist/api/contract.zod.d.ts +22 -22
- package/dist/api/index.d.ts +9 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +24 -0
- package/dist/data/field.zod.d.ts +409 -4
- package/dist/data/field.zod.d.ts.map +1 -1
- package/dist/data/field.zod.js +28 -2
- package/dist/data/index.d.ts +21 -0
- package/dist/data/index.d.ts.map +1 -0
- package/dist/data/index.js +36 -0
- package/dist/data/mapping.zod.d.ts +6 -6
- package/dist/data/object.zod.d.ts +80 -10
- package/dist/data/object.zod.d.ts.map +1 -1
- package/dist/data/query.zod.d.ts +386 -3
- package/dist/data/query.zod.d.ts.map +1 -1
- package/dist/data/query.zod.js +386 -3
- package/dist/data/validation.zod.d.ts +349 -0
- package/dist/data/validation.zod.d.ts.map +1 -1
- package/dist/data/validation.zod.js +395 -0
- package/dist/data/workflow.zod.d.ts +809 -18
- package/dist/data/workflow.zod.d.ts.map +1 -1
- package/dist/data/workflow.zod.js +115 -7
- package/dist/index.d.ts +36 -41
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +64 -49
- package/dist/system/api.zod.d.ts +4 -4
- package/dist/system/audit.zod.d.ts +1172 -0
- package/dist/system/audit.zod.d.ts.map +1 -0
- package/dist/system/audit.zod.js +596 -0
- package/dist/system/auth-protocol.d.ts +175 -0
- package/dist/system/auth-protocol.d.ts.map +1 -0
- package/dist/system/auth-protocol.js +60 -0
- package/dist/system/auth.zod.d.ts +1089 -57
- package/dist/system/auth.zod.d.ts.map +1 -1
- package/dist/system/auth.zod.js +135 -1
- package/dist/system/driver.zod.d.ts +4 -4
- package/dist/system/events.zod.d.ts +177 -0
- package/dist/system/events.zod.d.ts.map +1 -0
- package/dist/system/events.zod.js +51 -0
- package/dist/system/identity.zod.d.ts +234 -180
- package/dist/system/identity.zod.d.ts.map +1 -1
- package/dist/system/identity.zod.js +168 -51
- package/dist/system/index.d.ts +33 -0
- package/dist/system/index.d.ts.map +1 -0
- package/dist/system/index.js +48 -0
- package/dist/system/job.zod.d.ts +237 -0
- package/dist/system/job.zod.d.ts.map +1 -0
- package/dist/system/job.zod.js +82 -0
- package/dist/system/organization.zod.d.ts +179 -0
- package/dist/system/organization.zod.d.ts.map +1 -0
- package/dist/system/organization.zod.js +129 -0
- package/dist/system/realtime.zod.d.ts +135 -0
- package/dist/system/realtime.zod.d.ts.map +1 -0
- package/dist/system/realtime.zod.js +83 -0
- package/dist/system/tenant.zod.d.ts +1151 -0
- package/dist/system/tenant.zod.d.ts.map +1 -0
- package/dist/system/tenant.zod.js +498 -0
- package/dist/system/webhook.zod.d.ts +2 -2
- package/dist/ui/action.zod.d.ts +10 -10
- package/dist/ui/index.d.ts +17 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +32 -0
- package/dist/ui/theme.zod.d.ts +18 -18
- package/dist/ui/widget.zod.d.ts +40 -5
- package/dist/ui/widget.zod.d.ts.map +1 -1
- package/json-schema/README.md +127 -0
- package/json-schema/ai/AITask.json +123 -0
- package/json-schema/ai/AITaskType.json +21 -0
- package/json-schema/ai/AIWorkflowAutomation.json +379 -0
- package/json-schema/ai/AIWorkflowExecutionResult.json +105 -0
- package/json-schema/ai/AIWorkflowTrigger.json +18 -0
- package/json-schema/ai/BatchAIWorkflowExecution.json +48 -0
- package/json-schema/ai/BillingPeriod.json +18 -0
- package/json-schema/ai/BudgetLimit.json +111 -0
- package/json-schema/ai/BudgetStatus.json +91 -0
- package/json-schema/ai/BudgetType.json +17 -0
- package/json-schema/ai/ChunkingStrategy.json +133 -0
- package/json-schema/ai/ConversationAnalytics.json +86 -0
- package/json-schema/ai/ConversationContext.json +48 -0
- package/json-schema/ai/ConversationMessage.json +209 -0
- package/json-schema/ai/ConversationSession.json +458 -0
- package/json-schema/ai/ConversationSummary.json +73 -0
- package/json-schema/ai/CostAlert.json +107 -0
- package/json-schema/ai/CostAlertType.json +16 -0
- package/json-schema/ai/CostAnalytics.json +589 -0
- package/json-schema/ai/CostBreakdownDimension.json +20 -0
- package/json-schema/ai/CostBreakdownEntry.json +60 -0
- package/json-schema/ai/CostEntry.json +106 -0
- package/json-schema/ai/CostMetricType.json +17 -0
- package/json-schema/ai/CostOptimizationRecommendation.json +100 -0
- package/json-schema/ai/CostQueryFilters.json +112 -0
- package/json-schema/ai/CostReport.json +964 -0
- package/json-schema/ai/DocumentChunk.json +97 -0
- package/json-schema/ai/DocumentLoaderConfig.json +69 -0
- package/json-schema/ai/DocumentMetadata.json +61 -0
- package/json-schema/ai/EmbeddingModel.json +57 -0
- package/json-schema/ai/Entity.json +55 -0
- package/json-schema/ai/EvaluationMetrics.json +64 -0
- package/json-schema/ai/FieldSynonymConfig.json +39 -0
- package/json-schema/ai/FunctionCall.json +28 -0
- package/json-schema/ai/Hyperparameters.json +80 -0
- package/json-schema/ai/MessageContent.json +46 -0
- package/json-schema/ai/MessageContentType.json +16 -0
- package/json-schema/ai/MessagePruningEvent.json +92 -0
- package/json-schema/ai/MessageRole.json +16 -0
- package/json-schema/ai/ModelCapability.json +47 -0
- package/json-schema/ai/ModelConfig.json +181 -0
- package/json-schema/ai/ModelDrift.json +73 -0
- package/json-schema/ai/ModelFeature.json +71 -0
- package/json-schema/ai/ModelLimits.json +45 -0
- package/json-schema/ai/ModelPricing.json +28 -0
- package/json-schema/ai/ModelProvider.json +19 -0
- package/json-schema/ai/ModelRegistry.json +427 -0
- package/json-schema/ai/ModelRegistryEntry.json +239 -0
- package/json-schema/ai/ModelSelectionCriteria.json +50 -0
- package/json-schema/ai/NLQAnalytics.json +106 -0
- package/json-schema/ai/NLQFieldMapping.json +40 -0
- package/json-schema/ai/NLQModelConfig.json +78 -0
- package/json-schema/ai/NLQParseResult.json +252 -0
- package/json-schema/ai/NLQRequest.json +110 -0
- package/json-schema/ai/NLQResponse.json +288 -0
- package/json-schema/ai/NLQTrainingExample.json +120 -0
- package/json-schema/ai/PostProcessingAction.json +41 -0
- package/json-schema/ai/PredictionRequest.json +39 -0
- package/json-schema/ai/PredictionResult.json +82 -0
- package/json-schema/ai/PredictiveModel.json +445 -0
- package/json-schema/ai/PredictiveModelType.json +18 -0
- package/json-schema/ai/PromptTemplate.json +163 -0
- package/json-schema/ai/PromptVariable.json +56 -0
- package/json-schema/ai/QueryContext.json +72 -0
- package/json-schema/ai/QueryIntent.json +21 -0
- package/json-schema/ai/QueryTemplate.json +81 -0
- package/json-schema/ai/RAGPipelineConfig.json +552 -0
- package/json-schema/ai/RAGPipelineStatus.json +66 -0
- package/json-schema/ai/RAGQueryRequest.json +64 -0
- package/json-schema/ai/RAGQueryResponse.json +108 -0
- package/json-schema/ai/RerankingConfig.json +34 -0
- package/json-schema/ai/RetrievalStrategy.json +121 -0
- package/json-schema/ai/Timeframe.json +68 -0
- package/json-schema/ai/TokenBudgetConfig.json +92 -0
- package/json-schema/ai/TokenBudgetStrategy.json +16 -0
- package/json-schema/ai/TokenUsageStats.json +66 -0
- package/json-schema/ai/ToolCall.json +49 -0
- package/json-schema/ai/TrainingConfig.json +88 -0
- package/json-schema/ai/VectorStoreConfig.json +82 -0
- package/json-schema/ai/VectorStoreProvider.json +21 -0
- package/json-schema/ai/WorkflowFieldCondition.json +33 -0
- package/json-schema/ai/WorkflowSchedule.json +51 -0
- package/json-schema/data/CustomScriptAction.json +49 -0
- package/json-schema/{Field.json → data/Field.json} +50 -1
- package/json-schema/{FieldType.json → data/FieldType.json} +4 -1
- package/json-schema/data/HttpCallAction.json +81 -0
- package/json-schema/{Object.json → data/Object.json} +50 -1
- package/json-schema/data/PushNotificationAction.json +59 -0
- package/json-schema/data/SlackMessageAction.json +45 -0
- package/json-schema/data/SmsNotificationAction.json +50 -0
- package/json-schema/data/TaskCreationAction.json +59 -0
- package/json-schema/data/TeamsMessageAction.json +45 -0
- package/json-schema/data/WebhookTriggerAction.json +58 -0
- package/json-schema/data/WorkflowAction.json +465 -0
- package/json-schema/data/WorkflowRule.json +509 -0
- package/json-schema/system/Account.json +87 -0
- package/json-schema/system/AuditConfig.json +587 -0
- package/json-schema/system/AuditEvent.json +232 -0
- package/json-schema/system/AuditEventActor.json +48 -0
- package/json-schema/system/AuditEventChange.json +25 -0
- package/json-schema/system/AuditEventFilter.json +127 -0
- package/json-schema/system/AuditEventSeverity.json +19 -0
- package/json-schema/system/AuditEventTarget.json +33 -0
- package/json-schema/system/AuditEventType.json +53 -0
- package/json-schema/system/AuditRetentionPolicy.json +73 -0
- package/json-schema/system/AuditStorageConfig.json +60 -0
- package/json-schema/{AuthConfig.json → system/AuthConfig.json} +235 -0
- package/json-schema/system/CronSchedule.json +29 -0
- package/json-schema/system/DatabaseLevelIsolationStrategy.json +139 -0
- package/json-schema/system/DatabaseMapping.json +48 -0
- package/json-schema/system/EnterpriseAuthConfig.json +172 -0
- package/json-schema/system/Event.json +52 -0
- package/json-schema/system/EventHandler.json +29 -0
- package/json-schema/system/EventMetadata.json +33 -0
- package/json-schema/system/EventPersistence.json +25 -0
- package/json-schema/system/EventRoute.json +27 -0
- package/json-schema/system/IntervalSchedule.json +25 -0
- package/json-schema/system/Invitation.json +69 -0
- package/json-schema/system/InvitationStatus.json +15 -0
- package/json-schema/system/Job.json +127 -0
- package/json-schema/system/JobExecution.json +49 -0
- package/json-schema/system/JobExecutionStatus.json +15 -0
- package/json-schema/{LDAPConfig.json → system/LDAPConfig.json} +22 -5
- package/json-schema/system/LevelIsolationStrategySchema.json +93 -0
- package/json-schema/system/Member.json +46 -0
- package/json-schema/{OIDCConfig.json → system/OIDCConfig.json} +18 -3
- package/json-schema/system/OnceSchedule.json +25 -0
- package/json-schema/system/Organization.json +52 -0
- package/json-schema/system/Presence.json +40 -0
- package/json-schema/system/PresenceStatus.json +14 -0
- package/json-schema/system/RealtimeAction.json +14 -0
- package/json-schema/system/RealtimeEvent.json +51 -0
- package/json-schema/system/RealtimeEventType.json +15 -0
- package/json-schema/system/RetryPolicy.json +30 -0
- package/json-schema/system/RowLevelIsolationStrategy.json +74 -0
- package/json-schema/{SAMLConfig.json → system/SAMLConfig.json} +17 -3
- package/json-schema/system/Schedule.json +71 -0
- package/json-schema/system/Session.json +63 -0
- package/json-schema/{StandardAuthProvider.json → system/StandardAuthProvider.json} +235 -0
- package/json-schema/system/Subscription.json +65 -0
- package/json-schema/system/SubscriptionEvent.json +32 -0
- package/json-schema/system/SuspiciousActivityRule.json +175 -0
- package/json-schema/system/Tenant.json +61 -0
- package/json-schema/system/TenantIsolationConfig.json +298 -0
- package/json-schema/system/TenantIsolationLevel.json +14 -0
- package/json-schema/system/TenantQuota.json +27 -0
- package/json-schema/system/TenantSecurityPolicy.json +115 -0
- package/json-schema/system/TransportProtocol.json +14 -0
- package/json-schema/system/User.json +51 -0
- package/json-schema/system/VerificationToken.json +36 -0
- package/json-schema/{Action.json → ui/Action.json} +4 -1
- package/json-schema/{ActionParam.json → ui/ActionParam.json} +4 -1
- package/json-schema/{FieldWidgetProps.json → ui/FieldWidgetProps.json} +50 -1
- package/package.json +38 -12
- package/json-schema/AuthProtocol.json +0 -17
- package/json-schema/AuthProvider.json +0 -171
- package/json-schema/AuthenticationConfig.json +0 -601
- package/json-schema/AuthenticationProvider.json +0 -617
- package/json-schema/MenuItem.json +0 -28
- package/json-schema/WorkflowAction.json +0 -84
- package/json-schema/WorkflowRule.json +0 -128
- /package/json-schema/{AIKnowledge.json → ai/AIKnowledge.json} +0 -0
- /package/json-schema/{AIModelConfig.json → ai/AIModelConfig.json} +0 -0
- /package/json-schema/{AITool.json → ai/AITool.json} +0 -0
- /package/json-schema/{Agent.json → ai/Agent.json} +0 -0
- /package/json-schema/{ApiError.json → api/ApiError.json} +0 -0
- /package/json-schema/{BaseResponse.json → api/BaseResponse.json} +0 -0
- /package/json-schema/{BulkRequest.json → api/BulkRequest.json} +0 -0
- /package/json-schema/{BulkResponse.json → api/BulkResponse.json} +0 -0
- /package/json-schema/{CreateRequest.json → api/CreateRequest.json} +0 -0
- /package/json-schema/{DeleteResponse.json → api/DeleteResponse.json} +0 -0
- /package/json-schema/{ExportRequest.json → api/ExportRequest.json} +0 -0
- /package/json-schema/{ListRecordResponse.json → api/ListRecordResponse.json} +0 -0
- /package/json-schema/{ModificationResult.json → api/ModificationResult.json} +0 -0
- /package/json-schema/{RecordData.json → api/RecordData.json} +0 -0
- /package/json-schema/{SingleRecordResponse.json → api/SingleRecordResponse.json} +0 -0
- /package/json-schema/{UpdateRequest.json → api/UpdateRequest.json} +0 -0
- /package/json-schema/{Address.json → data/Address.json} +0 -0
- /package/json-schema/{AggregationFunction.json → data/AggregationFunction.json} +0 -0
- /package/json-schema/{AggregationNode.json → data/AggregationNode.json} +0 -0
- /package/json-schema/{AsyncValidation.json → data/AsyncValidation.json} +0 -0
- /package/json-schema/{ComparisonOperator.json → data/ComparisonOperator.json} +0 -0
- /package/json-schema/{ConditionalValidation.json → data/ConditionalValidation.json} +0 -0
- /package/json-schema/{CrossFieldValidation.json → data/CrossFieldValidation.json} +0 -0
- /package/json-schema/{CustomValidator.json → data/CustomValidator.json} +0 -0
- /package/json-schema/{Dataset.json → data/Dataset.json} +0 -0
- /package/json-schema/{DatasetMode.json → data/DatasetMode.json} +0 -0
- /package/json-schema/{EmailAlertAction.json → data/EmailAlertAction.json} +0 -0
- /package/json-schema/{EqualityOperator.json → data/EqualityOperator.json} +0 -0
- /package/json-schema/{FieldMapping.json → data/FieldMapping.json} +0 -0
- /package/json-schema/{FieldNode.json → data/FieldNode.json} +0 -0
- /package/json-schema/{FieldOperators.json → data/FieldOperators.json} +0 -0
- /package/json-schema/{FieldPermission.json → data/FieldPermission.json} +0 -0
- /package/json-schema/{FieldUpdateAction.json → data/FieldUpdateAction.json} +0 -0
- /package/json-schema/{FilterCondition.json → data/FilterCondition.json} +0 -0
- /package/json-schema/{FilterNode.json → data/FilterNode.json} +0 -0
- /package/json-schema/{FilterOperator.json → data/FilterOperator.json} +0 -0
- /package/json-schema/{Flow.json → data/Flow.json} +0 -0
- /package/json-schema/{FlowEdge.json → data/FlowEdge.json} +0 -0
- /package/json-schema/{FlowNode.json → data/FlowNode.json} +0 -0
- /package/json-schema/{FlowNodeAction.json → data/FlowNodeAction.json} +0 -0
- /package/json-schema/{FlowVariable.json → data/FlowVariable.json} +0 -0
- /package/json-schema/{FormatValidation.json → data/FormatValidation.json} +0 -0
- /package/json-schema/{Index.json → data/Index.json} +0 -0
- /package/json-schema/{JoinNode.json → data/JoinNode.json} +0 -0
- /package/json-schema/{JoinType.json → data/JoinType.json} +0 -0
- /package/json-schema/{LocationCoordinates.json → data/LocationCoordinates.json} +0 -0
- /package/json-schema/{LogicOperator.json → data/LogicOperator.json} +0 -0
- /package/json-schema/{Mapping.json → data/Mapping.json} +0 -0
- /package/json-schema/{NormalizedFilter.json → data/NormalizedFilter.json} +0 -0
- /package/json-schema/{OWDModel.json → data/OWDModel.json} +0 -0
- /package/json-schema/{ObjectCapabilities.json → data/ObjectCapabilities.json} +0 -0
- /package/json-schema/{ObjectPermission.json → data/ObjectPermission.json} +0 -0
- /package/json-schema/{PermissionSet.json → data/PermissionSet.json} +0 -0
- /package/json-schema/{Query.json → data/Query.json} +0 -0
- /package/json-schema/{QueryFilter.json → data/QueryFilter.json} +0 -0
- /package/json-schema/{RangeOperator.json → data/RangeOperator.json} +0 -0
- /package/json-schema/{ScriptValidation.json → data/ScriptValidation.json} +0 -0
- /package/json-schema/{SelectOption.json → data/SelectOption.json} +0 -0
- /package/json-schema/{SetOperator.json → data/SetOperator.json} +0 -0
- /package/json-schema/{SharingLevel.json → data/SharingLevel.json} +0 -0
- /package/json-schema/{SharingRule.json → data/SharingRule.json} +0 -0
- /package/json-schema/{SharingRuleType.json → data/SharingRuleType.json} +0 -0
- /package/json-schema/{SortNode.json → data/SortNode.json} +0 -0
- /package/json-schema/{SpecialOperator.json → data/SpecialOperator.json} +0 -0
- /package/json-schema/{StateMachineValidation.json → data/StateMachineValidation.json} +0 -0
- /package/json-schema/{StringOperator.json → data/StringOperator.json} +0 -0
- /package/json-schema/{TransformType.json → data/TransformType.json} +0 -0
- /package/json-schema/{Trigger.json → data/Trigger.json} +0 -0
- /package/json-schema/{TriggerAction.json → data/TriggerAction.json} +0 -0
- /package/json-schema/{TriggerContext.json → data/TriggerContext.json} +0 -0
- /package/json-schema/{TriggerTiming.json → data/TriggerTiming.json} +0 -0
- /package/json-schema/{UniquenessValidation.json → data/UniquenessValidation.json} +0 -0
- /package/json-schema/{ValidationRule.json → data/ValidationRule.json} +0 -0
- /package/json-schema/{WindowFunction.json → data/WindowFunction.json} +0 -0
- /package/json-schema/{WindowFunctionNode.json → data/WindowFunctionNode.json} +0 -0
- /package/json-schema/{WindowSpec.json → data/WindowSpec.json} +0 -0
- /package/json-schema/{WorkflowTriggerType.json → data/WorkflowTriggerType.json} +0 -0
- /package/json-schema/{AccountLinkingConfig.json → system/AccountLinkingConfig.json} +0 -0
- /package/json-schema/{ApiCapabilities.json → system/ApiCapabilities.json} +0 -0
- /package/json-schema/{ApiEndpoint.json → system/ApiEndpoint.json} +0 -0
- /package/json-schema/{ApiMapping.json → system/ApiMapping.json} +0 -0
- /package/json-schema/{ApiRoutes.json → system/ApiRoutes.json} +0 -0
- /package/json-schema/{AuditPolicy.json → system/AuditPolicy.json} +0 -0
- /package/json-schema/{AuthPluginConfig.json → system/AuthPluginConfig.json} +0 -0
- /package/json-schema/{AuthStrategy.json → system/AuthStrategy.json} +0 -0
- /package/json-schema/{CSRFConfig.json → system/CSRFConfig.json} +0 -0
- /package/json-schema/{DatabaseAdapter.json → system/DatabaseAdapter.json} +0 -0
- /package/json-schema/{Datasource.json → system/Datasource.json} +0 -0
- /package/json-schema/{DatasourceCapabilities.json → system/DatasourceCapabilities.json} +0 -0
- /package/json-schema/{Discovery.json → system/Discovery.json} +0 -0
- /package/json-schema/{DriverCapabilities.json → system/DriverCapabilities.json} +0 -0
- /package/json-schema/{DriverDefinition.json → system/DriverDefinition.json} +0 -0
- /package/json-schema/{DriverInterface.json → system/DriverInterface.json} +0 -0
- /package/json-schema/{DriverOptions.json → system/DriverOptions.json} +0 -0
- /package/json-schema/{DriverType.json → system/DriverType.json} +0 -0
- /package/json-schema/{EmailPasswordConfig.json → system/EmailPasswordConfig.json} +0 -0
- /package/json-schema/{Feature.json → system/Feature.json} +0 -0
- /package/json-schema/{HttpMethod.json → system/HttpMethod.json} +0 -0
- /package/json-schema/{I18nContext.json → system/I18nContext.json} +0 -0
- /package/json-schema/{License.json → system/License.json} +0 -0
- /package/json-schema/{Locale.json → system/Locale.json} +0 -0
- /package/json-schema/{Logger.json → system/Logger.json} +0 -0
- /package/json-schema/{MagicLinkConfig.json → system/MagicLinkConfig.json} +0 -0
- /package/json-schema/{Manifest.json → system/Manifest.json} +0 -0
- /package/json-schema/{MetricType.json → system/MetricType.json} +0 -0
- /package/json-schema/{NetworkPolicy.json → system/NetworkPolicy.json} +0 -0
- /package/json-schema/{OAuthProvider.json → system/OAuthProvider.json} +0 -0
- /package/json-schema/{ObjectQLClient.json → system/ObjectQLClient.json} +0 -0
- /package/json-schema/{PasskeyConfig.json → system/PasskeyConfig.json} +0 -0
- /package/json-schema/{PasswordPolicy.json → system/PasswordPolicy.json} +0 -0
- /package/json-schema/{Plan.json → system/Plan.json} +0 -0
- /package/json-schema/{Plugin.json → system/Plugin.json} +0 -0
- /package/json-schema/{PluginContext.json → system/PluginContext.json} +0 -0
- /package/json-schema/{PluginLifecycle.json → system/PluginLifecycle.json} +0 -0
- /package/json-schema/{Policy.json → system/Policy.json} +0 -0
- /package/json-schema/{RateLimit.json → system/RateLimit.json} +0 -0
- /package/json-schema/{RateLimitConfig.json → system/RateLimitConfig.json} +0 -0
- /package/json-schema/{Role.json → system/Role.json} +0 -0
- /package/json-schema/{Router.json → system/Router.json} +0 -0
- /package/json-schema/{Scheduler.json → system/Scheduler.json} +0 -0
- /package/json-schema/{ScopedStorage.json → system/ScopedStorage.json} +0 -0
- /package/json-schema/{SessionConfig.json → system/SessionConfig.json} +0 -0
- /package/json-schema/{SessionPolicy.json → system/SessionPolicy.json} +0 -0
- /package/json-schema/{SystemAPI.json → system/SystemAPI.json} +0 -0
- /package/json-schema/{Territory.json → system/Territory.json} +0 -0
- /package/json-schema/{TerritoryModel.json → system/TerritoryModel.json} +0 -0
- /package/json-schema/{TerritoryType.json → system/TerritoryType.json} +0 -0
- /package/json-schema/{TranslationBundle.json → system/TranslationBundle.json} +0 -0
- /package/json-schema/{TranslationData.json → system/TranslationData.json} +0 -0
- /package/json-schema/{TwoFactorConfig.json → system/TwoFactorConfig.json} +0 -0
- /package/json-schema/{UserFieldMapping.json → system/UserFieldMapping.json} +0 -0
- /package/json-schema/{Webhook.json → system/Webhook.json} +0 -0
- /package/json-schema/{WebhookReceiver.json → system/WebhookReceiver.json} +0 -0
- /package/json-schema/{WebhookTriggerType.json → system/WebhookTriggerType.json} +0 -0
- /package/json-schema/{Animation.json → ui/Animation.json} +0 -0
- /package/json-schema/{App.json → ui/App.json} +0 -0
- /package/json-schema/{AppBranding.json → ui/AppBranding.json} +0 -0
- /package/json-schema/{BorderRadius.json → ui/BorderRadius.json} +0 -0
- /package/json-schema/{Breakpoints.json → ui/Breakpoints.json} +0 -0
- /package/json-schema/{CalendarConfig.json → ui/CalendarConfig.json} +0 -0
- /package/json-schema/{ChartType.json → ui/ChartType.json} +0 -0
- /package/json-schema/{ColorPalette.json → ui/ColorPalette.json} +0 -0
- /package/json-schema/{Dashboard.json → ui/Dashboard.json} +0 -0
- /package/json-schema/{DashboardNavItem.json → ui/DashboardNavItem.json} +0 -0
- /package/json-schema/{DashboardWidget.json → ui/DashboardWidget.json} +0 -0
- /package/json-schema/{FormSection.json → ui/FormSection.json} +0 -0
- /package/json-schema/{FormView.json → ui/FormView.json} +0 -0
- /package/json-schema/{GanttConfig.json → ui/GanttConfig.json} +0 -0
- /package/json-schema/{GroupNavItem.json → ui/GroupNavItem.json} +0 -0
- /package/json-schema/{KanbanConfig.json → ui/KanbanConfig.json} +0 -0
- /package/json-schema/{ListView.json → ui/ListView.json} +0 -0
- /package/json-schema/{NavigationItem.json → ui/NavigationItem.json} +0 -0
- /package/json-schema/{ObjectNavItem.json → ui/ObjectNavItem.json} +0 -0
- /package/json-schema/{Page.json → ui/Page.json} +0 -0
- /package/json-schema/{PageComponent.json → ui/PageComponent.json} +0 -0
- /package/json-schema/{PageNavItem.json → ui/PageNavItem.json} +0 -0
- /package/json-schema/{PageRegion.json → ui/PageRegion.json} +0 -0
- /package/json-schema/{Report.json → ui/Report.json} +0 -0
- /package/json-schema/{ReportChart.json → ui/ReportChart.json} +0 -0
- /package/json-schema/{ReportColumn.json → ui/ReportColumn.json} +0 -0
- /package/json-schema/{ReportGrouping.json → ui/ReportGrouping.json} +0 -0
- /package/json-schema/{ReportType.json → ui/ReportType.json} +0 -0
- /package/json-schema/{Shadow.json → ui/Shadow.json} +0 -0
- /package/json-schema/{Spacing.json → ui/Spacing.json} +0 -0
- /package/json-schema/{Theme.json → ui/Theme.json} +0 -0
- /package/json-schema/{ThemeMode.json → ui/ThemeMode.json} +0 -0
- /package/json-schema/{Typography.json → ui/Typography.json} +0 -0
- /package/json-schema/{UrlNavItem.json → ui/UrlNavItem.json} +0 -0
- /package/json-schema/{View.json → ui/View.json} +0 -0
- /package/json-schema/{ZIndex.json → ui/ZIndex.json} +0 -0
|
@@ -84,29 +84,29 @@ export declare const MagicLinkConfigSchema: z.ZodObject<{
|
|
|
84
84
|
link: z.ZodString;
|
|
85
85
|
token: z.ZodString;
|
|
86
86
|
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
token: string;
|
|
87
88
|
to: string;
|
|
88
89
|
link: string;
|
|
89
|
-
token: string;
|
|
90
90
|
}, {
|
|
91
|
+
token: string;
|
|
91
92
|
to: string;
|
|
92
93
|
link: string;
|
|
93
|
-
token: string;
|
|
94
94
|
}>], z.ZodUnknown>, z.ZodPromise<z.ZodVoid>>>;
|
|
95
95
|
}, "strip", z.ZodTypeAny, {
|
|
96
96
|
enabled: boolean;
|
|
97
97
|
expiryTime: number;
|
|
98
98
|
sendEmail?: ((args_0: {
|
|
99
|
+
token: string;
|
|
99
100
|
to: string;
|
|
100
101
|
link: string;
|
|
101
|
-
token: string;
|
|
102
102
|
}, ...args: unknown[]) => Promise<void>) | undefined;
|
|
103
103
|
}, {
|
|
104
104
|
enabled?: boolean | undefined;
|
|
105
105
|
expiryTime?: number | undefined;
|
|
106
106
|
sendEmail?: ((args_0: {
|
|
107
|
+
token: string;
|
|
107
108
|
to: string;
|
|
108
109
|
link: string;
|
|
109
|
-
token: string;
|
|
110
110
|
}, ...args: unknown[]) => Promise<void>) | undefined;
|
|
111
111
|
}>;
|
|
112
112
|
export type MagicLinkConfig = z.infer<typeof MagicLinkConfigSchema>;
|
|
@@ -264,6 +264,266 @@ export declare const TwoFactorConfigSchema: z.ZodObject<{
|
|
|
264
264
|
} | undefined;
|
|
265
265
|
}>;
|
|
266
266
|
export type TwoFactorConfig = z.infer<typeof TwoFactorConfigSchema>;
|
|
267
|
+
/**
|
|
268
|
+
* OIDC / OAuth2 Enterprise Configuration
|
|
269
|
+
* OpenID Connect configuration for enterprise SSO
|
|
270
|
+
*/
|
|
271
|
+
export declare const OIDCConfigSchema: z.ZodObject<{
|
|
272
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
273
|
+
issuer: z.ZodString;
|
|
274
|
+
clientId: z.ZodString;
|
|
275
|
+
clientSecret: z.ZodString;
|
|
276
|
+
scopes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
277
|
+
attributeMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
278
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
279
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
280
|
+
}, "strip", z.ZodTypeAny, {
|
|
281
|
+
enabled: boolean;
|
|
282
|
+
clientId: string;
|
|
283
|
+
clientSecret: string;
|
|
284
|
+
scopes: string[];
|
|
285
|
+
issuer: string;
|
|
286
|
+
icon?: string | undefined;
|
|
287
|
+
displayName?: string | undefined;
|
|
288
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
289
|
+
}, {
|
|
290
|
+
clientId: string;
|
|
291
|
+
clientSecret: string;
|
|
292
|
+
issuer: string;
|
|
293
|
+
icon?: string | undefined;
|
|
294
|
+
enabled?: boolean | undefined;
|
|
295
|
+
scopes?: string[] | undefined;
|
|
296
|
+
displayName?: string | undefined;
|
|
297
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
298
|
+
}>;
|
|
299
|
+
export type OIDCConfig = z.infer<typeof OIDCConfigSchema>;
|
|
300
|
+
/**
|
|
301
|
+
* SAML 2.0 Enterprise Configuration
|
|
302
|
+
* SAML configuration for legacy enterprise SSO
|
|
303
|
+
*/
|
|
304
|
+
export declare const SAMLConfigSchema: z.ZodObject<{
|
|
305
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
306
|
+
entryPoint: z.ZodString;
|
|
307
|
+
cert: z.ZodString;
|
|
308
|
+
issuer: z.ZodString;
|
|
309
|
+
signatureAlgorithm: z.ZodDefault<z.ZodEnum<["sha256", "sha512"]>>;
|
|
310
|
+
attributeMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
311
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
312
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
313
|
+
}, "strip", z.ZodTypeAny, {
|
|
314
|
+
enabled: boolean;
|
|
315
|
+
issuer: string;
|
|
316
|
+
entryPoint: string;
|
|
317
|
+
cert: string;
|
|
318
|
+
signatureAlgorithm: "sha256" | "sha512";
|
|
319
|
+
icon?: string | undefined;
|
|
320
|
+
displayName?: string | undefined;
|
|
321
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
322
|
+
}, {
|
|
323
|
+
issuer: string;
|
|
324
|
+
entryPoint: string;
|
|
325
|
+
cert: string;
|
|
326
|
+
icon?: string | undefined;
|
|
327
|
+
enabled?: boolean | undefined;
|
|
328
|
+
displayName?: string | undefined;
|
|
329
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
330
|
+
signatureAlgorithm?: "sha256" | "sha512" | undefined;
|
|
331
|
+
}>;
|
|
332
|
+
export type SAMLConfig = z.infer<typeof SAMLConfigSchema>;
|
|
333
|
+
/**
|
|
334
|
+
* LDAP / Active Directory Enterprise Configuration
|
|
335
|
+
* LDAP configuration for on-premise directory services
|
|
336
|
+
*/
|
|
337
|
+
export declare const LDAPConfigSchema: z.ZodObject<{
|
|
338
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
339
|
+
url: z.ZodString;
|
|
340
|
+
bindDn: z.ZodString;
|
|
341
|
+
bindCredentials: z.ZodString;
|
|
342
|
+
searchBase: z.ZodString;
|
|
343
|
+
searchFilter: z.ZodString;
|
|
344
|
+
groupSearchBase: z.ZodOptional<z.ZodString>;
|
|
345
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
346
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
347
|
+
}, "strip", z.ZodTypeAny, {
|
|
348
|
+
url: string;
|
|
349
|
+
enabled: boolean;
|
|
350
|
+
bindDn: string;
|
|
351
|
+
bindCredentials: string;
|
|
352
|
+
searchBase: string;
|
|
353
|
+
searchFilter: string;
|
|
354
|
+
icon?: string | undefined;
|
|
355
|
+
displayName?: string | undefined;
|
|
356
|
+
groupSearchBase?: string | undefined;
|
|
357
|
+
}, {
|
|
358
|
+
url: string;
|
|
359
|
+
bindDn: string;
|
|
360
|
+
bindCredentials: string;
|
|
361
|
+
searchBase: string;
|
|
362
|
+
searchFilter: string;
|
|
363
|
+
icon?: string | undefined;
|
|
364
|
+
enabled?: boolean | undefined;
|
|
365
|
+
displayName?: string | undefined;
|
|
366
|
+
groupSearchBase?: string | undefined;
|
|
367
|
+
}>;
|
|
368
|
+
export type LDAPConfig = z.infer<typeof LDAPConfigSchema>;
|
|
369
|
+
/**
|
|
370
|
+
* Enterprise Authentication Configuration
|
|
371
|
+
* Combines SAML, LDAP, and OIDC configurations for enterprise SSO
|
|
372
|
+
*/
|
|
373
|
+
export declare const EnterpriseAuthConfigSchema: z.ZodObject<{
|
|
374
|
+
oidc: z.ZodOptional<z.ZodObject<{
|
|
375
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
376
|
+
issuer: z.ZodString;
|
|
377
|
+
clientId: z.ZodString;
|
|
378
|
+
clientSecret: z.ZodString;
|
|
379
|
+
scopes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
380
|
+
attributeMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
381
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
382
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
383
|
+
}, "strip", z.ZodTypeAny, {
|
|
384
|
+
enabled: boolean;
|
|
385
|
+
clientId: string;
|
|
386
|
+
clientSecret: string;
|
|
387
|
+
scopes: string[];
|
|
388
|
+
issuer: string;
|
|
389
|
+
icon?: string | undefined;
|
|
390
|
+
displayName?: string | undefined;
|
|
391
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
392
|
+
}, {
|
|
393
|
+
clientId: string;
|
|
394
|
+
clientSecret: string;
|
|
395
|
+
issuer: string;
|
|
396
|
+
icon?: string | undefined;
|
|
397
|
+
enabled?: boolean | undefined;
|
|
398
|
+
scopes?: string[] | undefined;
|
|
399
|
+
displayName?: string | undefined;
|
|
400
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
401
|
+
}>>;
|
|
402
|
+
saml: z.ZodOptional<z.ZodObject<{
|
|
403
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
404
|
+
entryPoint: z.ZodString;
|
|
405
|
+
cert: z.ZodString;
|
|
406
|
+
issuer: z.ZodString;
|
|
407
|
+
signatureAlgorithm: z.ZodDefault<z.ZodEnum<["sha256", "sha512"]>>;
|
|
408
|
+
attributeMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
409
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
410
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
411
|
+
}, "strip", z.ZodTypeAny, {
|
|
412
|
+
enabled: boolean;
|
|
413
|
+
issuer: string;
|
|
414
|
+
entryPoint: string;
|
|
415
|
+
cert: string;
|
|
416
|
+
signatureAlgorithm: "sha256" | "sha512";
|
|
417
|
+
icon?: string | undefined;
|
|
418
|
+
displayName?: string | undefined;
|
|
419
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
420
|
+
}, {
|
|
421
|
+
issuer: string;
|
|
422
|
+
entryPoint: string;
|
|
423
|
+
cert: string;
|
|
424
|
+
icon?: string | undefined;
|
|
425
|
+
enabled?: boolean | undefined;
|
|
426
|
+
displayName?: string | undefined;
|
|
427
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
428
|
+
signatureAlgorithm?: "sha256" | "sha512" | undefined;
|
|
429
|
+
}>>;
|
|
430
|
+
ldap: z.ZodOptional<z.ZodObject<{
|
|
431
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
432
|
+
url: z.ZodString;
|
|
433
|
+
bindDn: z.ZodString;
|
|
434
|
+
bindCredentials: z.ZodString;
|
|
435
|
+
searchBase: z.ZodString;
|
|
436
|
+
searchFilter: z.ZodString;
|
|
437
|
+
groupSearchBase: z.ZodOptional<z.ZodString>;
|
|
438
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
439
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
440
|
+
}, "strip", z.ZodTypeAny, {
|
|
441
|
+
url: string;
|
|
442
|
+
enabled: boolean;
|
|
443
|
+
bindDn: string;
|
|
444
|
+
bindCredentials: string;
|
|
445
|
+
searchBase: string;
|
|
446
|
+
searchFilter: string;
|
|
447
|
+
icon?: string | undefined;
|
|
448
|
+
displayName?: string | undefined;
|
|
449
|
+
groupSearchBase?: string | undefined;
|
|
450
|
+
}, {
|
|
451
|
+
url: string;
|
|
452
|
+
bindDn: string;
|
|
453
|
+
bindCredentials: string;
|
|
454
|
+
searchBase: string;
|
|
455
|
+
searchFilter: string;
|
|
456
|
+
icon?: string | undefined;
|
|
457
|
+
enabled?: boolean | undefined;
|
|
458
|
+
displayName?: string | undefined;
|
|
459
|
+
groupSearchBase?: string | undefined;
|
|
460
|
+
}>>;
|
|
461
|
+
}, "strip", z.ZodTypeAny, {
|
|
462
|
+
oidc?: {
|
|
463
|
+
enabled: boolean;
|
|
464
|
+
clientId: string;
|
|
465
|
+
clientSecret: string;
|
|
466
|
+
scopes: string[];
|
|
467
|
+
issuer: string;
|
|
468
|
+
icon?: string | undefined;
|
|
469
|
+
displayName?: string | undefined;
|
|
470
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
471
|
+
} | undefined;
|
|
472
|
+
saml?: {
|
|
473
|
+
enabled: boolean;
|
|
474
|
+
issuer: string;
|
|
475
|
+
entryPoint: string;
|
|
476
|
+
cert: string;
|
|
477
|
+
signatureAlgorithm: "sha256" | "sha512";
|
|
478
|
+
icon?: string | undefined;
|
|
479
|
+
displayName?: string | undefined;
|
|
480
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
481
|
+
} | undefined;
|
|
482
|
+
ldap?: {
|
|
483
|
+
url: string;
|
|
484
|
+
enabled: boolean;
|
|
485
|
+
bindDn: string;
|
|
486
|
+
bindCredentials: string;
|
|
487
|
+
searchBase: string;
|
|
488
|
+
searchFilter: string;
|
|
489
|
+
icon?: string | undefined;
|
|
490
|
+
displayName?: string | undefined;
|
|
491
|
+
groupSearchBase?: string | undefined;
|
|
492
|
+
} | undefined;
|
|
493
|
+
}, {
|
|
494
|
+
oidc?: {
|
|
495
|
+
clientId: string;
|
|
496
|
+
clientSecret: string;
|
|
497
|
+
issuer: string;
|
|
498
|
+
icon?: string | undefined;
|
|
499
|
+
enabled?: boolean | undefined;
|
|
500
|
+
scopes?: string[] | undefined;
|
|
501
|
+
displayName?: string | undefined;
|
|
502
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
503
|
+
} | undefined;
|
|
504
|
+
saml?: {
|
|
505
|
+
issuer: string;
|
|
506
|
+
entryPoint: string;
|
|
507
|
+
cert: string;
|
|
508
|
+
icon?: string | undefined;
|
|
509
|
+
enabled?: boolean | undefined;
|
|
510
|
+
displayName?: string | undefined;
|
|
511
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
512
|
+
signatureAlgorithm?: "sha256" | "sha512" | undefined;
|
|
513
|
+
} | undefined;
|
|
514
|
+
ldap?: {
|
|
515
|
+
url: string;
|
|
516
|
+
bindDn: string;
|
|
517
|
+
bindCredentials: string;
|
|
518
|
+
searchBase: string;
|
|
519
|
+
searchFilter: string;
|
|
520
|
+
icon?: string | undefined;
|
|
521
|
+
enabled?: boolean | undefined;
|
|
522
|
+
displayName?: string | undefined;
|
|
523
|
+
groupSearchBase?: string | undefined;
|
|
524
|
+
} | undefined;
|
|
525
|
+
}>;
|
|
526
|
+
export type EnterpriseAuthConfig = z.infer<typeof EnterpriseAuthConfigSchema>;
|
|
267
527
|
/**
|
|
268
528
|
* User Field Mapping Configuration
|
|
269
529
|
* Maps authentication user fields to ObjectStack user object fields
|
|
@@ -314,6 +574,76 @@ export declare const DatabaseAdapterSchema: z.ZodObject<{
|
|
|
314
574
|
schema?: string | undefined;
|
|
315
575
|
}>;
|
|
316
576
|
export type DatabaseAdapter = z.infer<typeof DatabaseAdapterSchema>;
|
|
577
|
+
/**
|
|
578
|
+
* Default field mappings for better-auth compatibility
|
|
579
|
+
* These mappings bridge the gap between ObjectStack standard (Auth.js conventions)
|
|
580
|
+
* and better-auth's field naming conventions
|
|
581
|
+
*/
|
|
582
|
+
export declare const BETTER_AUTH_FIELD_MAPPINGS: {
|
|
583
|
+
readonly session: {
|
|
584
|
+
readonly sessionToken: "token";
|
|
585
|
+
readonly expires: "expiresAt";
|
|
586
|
+
};
|
|
587
|
+
readonly account: {
|
|
588
|
+
readonly providerAccountId: "accountId";
|
|
589
|
+
readonly provider: "providerId";
|
|
590
|
+
};
|
|
591
|
+
};
|
|
592
|
+
/**
|
|
593
|
+
* Database Field Mapping Configuration
|
|
594
|
+
* Maps ObjectStack standard field names to driver-specific field names.
|
|
595
|
+
*
|
|
596
|
+
* Useful when the underlying authentication driver (e.g., better-auth) uses
|
|
597
|
+
* different column names than the ObjectStack standard schemas (which follow
|
|
598
|
+
* Auth.js conventions).
|
|
599
|
+
*
|
|
600
|
+
* @example
|
|
601
|
+
* ```typescript
|
|
602
|
+
* mapping: {
|
|
603
|
+
* session: {
|
|
604
|
+
* sessionToken: 'token', // better-auth uses 'token'
|
|
605
|
+
* expires: 'expiresAt' // better-auth uses 'expiresAt'
|
|
606
|
+
* },
|
|
607
|
+
* account: {
|
|
608
|
+
* providerAccountId: 'accountId', // better-auth uses 'accountId'
|
|
609
|
+
* provider: 'providerId' // better-auth uses 'providerId'
|
|
610
|
+
* }
|
|
611
|
+
* }
|
|
612
|
+
* ```
|
|
613
|
+
*/
|
|
614
|
+
export declare const DatabaseMappingSchema: z.ZodObject<{
|
|
615
|
+
/**
|
|
616
|
+
* User model field mapping
|
|
617
|
+
* Maps ObjectStack User fields to driver fields
|
|
618
|
+
*/
|
|
619
|
+
user: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
620
|
+
/**
|
|
621
|
+
* Session model field mapping
|
|
622
|
+
* Maps ObjectStack Session fields to driver fields
|
|
623
|
+
*/
|
|
624
|
+
session: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
625
|
+
/**
|
|
626
|
+
* Account model field mapping
|
|
627
|
+
* Maps ObjectStack Account fields to driver fields
|
|
628
|
+
*/
|
|
629
|
+
account: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
630
|
+
/**
|
|
631
|
+
* Verification token field mapping
|
|
632
|
+
* Maps ObjectStack VerificationToken fields to driver fields
|
|
633
|
+
*/
|
|
634
|
+
verificationToken: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
635
|
+
}, "strip", z.ZodTypeAny, {
|
|
636
|
+
session: Record<string, string>;
|
|
637
|
+
account: Record<string, string>;
|
|
638
|
+
user?: Record<string, string> | undefined;
|
|
639
|
+
verificationToken?: Record<string, string> | undefined;
|
|
640
|
+
}, {
|
|
641
|
+
user?: Record<string, string> | undefined;
|
|
642
|
+
session?: Record<string, string> | undefined;
|
|
643
|
+
account?: Record<string, string> | undefined;
|
|
644
|
+
verificationToken?: Record<string, string> | undefined;
|
|
645
|
+
}>;
|
|
646
|
+
export type DatabaseMapping = z.infer<typeof DatabaseMappingSchema>;
|
|
317
647
|
/**
|
|
318
648
|
* Authentication Plugin Configuration
|
|
319
649
|
* Extends authentication with additional features
|
|
@@ -429,29 +759,29 @@ export declare const AuthConfigSchema: z.ZodObject<{
|
|
|
429
759
|
link: z.ZodString;
|
|
430
760
|
token: z.ZodString;
|
|
431
761
|
}, "strip", z.ZodTypeAny, {
|
|
762
|
+
token: string;
|
|
432
763
|
to: string;
|
|
433
764
|
link: string;
|
|
434
|
-
token: string;
|
|
435
765
|
}, {
|
|
766
|
+
token: string;
|
|
436
767
|
to: string;
|
|
437
768
|
link: string;
|
|
438
|
-
token: string;
|
|
439
769
|
}>], z.ZodUnknown>, z.ZodPromise<z.ZodVoid>>>;
|
|
440
770
|
}, "strip", z.ZodTypeAny, {
|
|
441
771
|
enabled: boolean;
|
|
442
772
|
expiryTime: number;
|
|
443
773
|
sendEmail?: ((args_0: {
|
|
774
|
+
token: string;
|
|
444
775
|
to: string;
|
|
445
776
|
link: string;
|
|
446
|
-
token: string;
|
|
447
777
|
}, ...args: unknown[]) => Promise<void>) | undefined;
|
|
448
778
|
}, {
|
|
449
779
|
enabled?: boolean | undefined;
|
|
450
780
|
expiryTime?: number | undefined;
|
|
451
781
|
sendEmail?: ((args_0: {
|
|
782
|
+
token: string;
|
|
452
783
|
to: string;
|
|
453
784
|
link: string;
|
|
454
|
-
token: string;
|
|
455
785
|
}, ...args: unknown[]) => Promise<void>) | undefined;
|
|
456
786
|
}>>;
|
|
457
787
|
/**
|
|
@@ -656,6 +986,182 @@ export declare const AuthConfigSchema: z.ZodObject<{
|
|
|
656
986
|
enabled?: boolean | undefined;
|
|
657
987
|
} | undefined;
|
|
658
988
|
}>>;
|
|
989
|
+
/**
|
|
990
|
+
* Organization (Multi-tenant) configuration
|
|
991
|
+
* Enables B2B SaaS scenarios where users belong to multiple teams/workspaces
|
|
992
|
+
*/
|
|
993
|
+
organization: z.ZodOptional<z.ZodObject<{
|
|
994
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
995
|
+
allowUserToCreateOrg: z.ZodDefault<z.ZodBoolean>;
|
|
996
|
+
defaultRole: z.ZodDefault<z.ZodString>;
|
|
997
|
+
creatorRole: z.ZodDefault<z.ZodString>;
|
|
998
|
+
}, "strip", z.ZodTypeAny, {
|
|
999
|
+
enabled: boolean;
|
|
1000
|
+
allowUserToCreateOrg: boolean;
|
|
1001
|
+
defaultRole: string;
|
|
1002
|
+
creatorRole: string;
|
|
1003
|
+
}, {
|
|
1004
|
+
enabled?: boolean | undefined;
|
|
1005
|
+
allowUserToCreateOrg?: boolean | undefined;
|
|
1006
|
+
defaultRole?: string | undefined;
|
|
1007
|
+
creatorRole?: string | undefined;
|
|
1008
|
+
}>>;
|
|
1009
|
+
/**
|
|
1010
|
+
* Enterprise authentication configuration (SAML, LDAP, OIDC)
|
|
1011
|
+
*/
|
|
1012
|
+
enterprise: z.ZodOptional<z.ZodObject<{
|
|
1013
|
+
oidc: z.ZodOptional<z.ZodObject<{
|
|
1014
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1015
|
+
issuer: z.ZodString;
|
|
1016
|
+
clientId: z.ZodString;
|
|
1017
|
+
clientSecret: z.ZodString;
|
|
1018
|
+
scopes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1019
|
+
attributeMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1020
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
1021
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
1022
|
+
}, "strip", z.ZodTypeAny, {
|
|
1023
|
+
enabled: boolean;
|
|
1024
|
+
clientId: string;
|
|
1025
|
+
clientSecret: string;
|
|
1026
|
+
scopes: string[];
|
|
1027
|
+
issuer: string;
|
|
1028
|
+
icon?: string | undefined;
|
|
1029
|
+
displayName?: string | undefined;
|
|
1030
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
1031
|
+
}, {
|
|
1032
|
+
clientId: string;
|
|
1033
|
+
clientSecret: string;
|
|
1034
|
+
issuer: string;
|
|
1035
|
+
icon?: string | undefined;
|
|
1036
|
+
enabled?: boolean | undefined;
|
|
1037
|
+
scopes?: string[] | undefined;
|
|
1038
|
+
displayName?: string | undefined;
|
|
1039
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
1040
|
+
}>>;
|
|
1041
|
+
saml: z.ZodOptional<z.ZodObject<{
|
|
1042
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1043
|
+
entryPoint: z.ZodString;
|
|
1044
|
+
cert: z.ZodString;
|
|
1045
|
+
issuer: z.ZodString;
|
|
1046
|
+
signatureAlgorithm: z.ZodDefault<z.ZodEnum<["sha256", "sha512"]>>;
|
|
1047
|
+
attributeMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1048
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
1049
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
1050
|
+
}, "strip", z.ZodTypeAny, {
|
|
1051
|
+
enabled: boolean;
|
|
1052
|
+
issuer: string;
|
|
1053
|
+
entryPoint: string;
|
|
1054
|
+
cert: string;
|
|
1055
|
+
signatureAlgorithm: "sha256" | "sha512";
|
|
1056
|
+
icon?: string | undefined;
|
|
1057
|
+
displayName?: string | undefined;
|
|
1058
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
1059
|
+
}, {
|
|
1060
|
+
issuer: string;
|
|
1061
|
+
entryPoint: string;
|
|
1062
|
+
cert: string;
|
|
1063
|
+
icon?: string | undefined;
|
|
1064
|
+
enabled?: boolean | undefined;
|
|
1065
|
+
displayName?: string | undefined;
|
|
1066
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
1067
|
+
signatureAlgorithm?: "sha256" | "sha512" | undefined;
|
|
1068
|
+
}>>;
|
|
1069
|
+
ldap: z.ZodOptional<z.ZodObject<{
|
|
1070
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1071
|
+
url: z.ZodString;
|
|
1072
|
+
bindDn: z.ZodString;
|
|
1073
|
+
bindCredentials: z.ZodString;
|
|
1074
|
+
searchBase: z.ZodString;
|
|
1075
|
+
searchFilter: z.ZodString;
|
|
1076
|
+
groupSearchBase: z.ZodOptional<z.ZodString>;
|
|
1077
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
1078
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
1079
|
+
}, "strip", z.ZodTypeAny, {
|
|
1080
|
+
url: string;
|
|
1081
|
+
enabled: boolean;
|
|
1082
|
+
bindDn: string;
|
|
1083
|
+
bindCredentials: string;
|
|
1084
|
+
searchBase: string;
|
|
1085
|
+
searchFilter: string;
|
|
1086
|
+
icon?: string | undefined;
|
|
1087
|
+
displayName?: string | undefined;
|
|
1088
|
+
groupSearchBase?: string | undefined;
|
|
1089
|
+
}, {
|
|
1090
|
+
url: string;
|
|
1091
|
+
bindDn: string;
|
|
1092
|
+
bindCredentials: string;
|
|
1093
|
+
searchBase: string;
|
|
1094
|
+
searchFilter: string;
|
|
1095
|
+
icon?: string | undefined;
|
|
1096
|
+
enabled?: boolean | undefined;
|
|
1097
|
+
displayName?: string | undefined;
|
|
1098
|
+
groupSearchBase?: string | undefined;
|
|
1099
|
+
}>>;
|
|
1100
|
+
}, "strip", z.ZodTypeAny, {
|
|
1101
|
+
oidc?: {
|
|
1102
|
+
enabled: boolean;
|
|
1103
|
+
clientId: string;
|
|
1104
|
+
clientSecret: string;
|
|
1105
|
+
scopes: string[];
|
|
1106
|
+
issuer: string;
|
|
1107
|
+
icon?: string | undefined;
|
|
1108
|
+
displayName?: string | undefined;
|
|
1109
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
1110
|
+
} | undefined;
|
|
1111
|
+
saml?: {
|
|
1112
|
+
enabled: boolean;
|
|
1113
|
+
issuer: string;
|
|
1114
|
+
entryPoint: string;
|
|
1115
|
+
cert: string;
|
|
1116
|
+
signatureAlgorithm: "sha256" | "sha512";
|
|
1117
|
+
icon?: string | undefined;
|
|
1118
|
+
displayName?: string | undefined;
|
|
1119
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
1120
|
+
} | undefined;
|
|
1121
|
+
ldap?: {
|
|
1122
|
+
url: string;
|
|
1123
|
+
enabled: boolean;
|
|
1124
|
+
bindDn: string;
|
|
1125
|
+
bindCredentials: string;
|
|
1126
|
+
searchBase: string;
|
|
1127
|
+
searchFilter: string;
|
|
1128
|
+
icon?: string | undefined;
|
|
1129
|
+
displayName?: string | undefined;
|
|
1130
|
+
groupSearchBase?: string | undefined;
|
|
1131
|
+
} | undefined;
|
|
1132
|
+
}, {
|
|
1133
|
+
oidc?: {
|
|
1134
|
+
clientId: string;
|
|
1135
|
+
clientSecret: string;
|
|
1136
|
+
issuer: string;
|
|
1137
|
+
icon?: string | undefined;
|
|
1138
|
+
enabled?: boolean | undefined;
|
|
1139
|
+
scopes?: string[] | undefined;
|
|
1140
|
+
displayName?: string | undefined;
|
|
1141
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
1142
|
+
} | undefined;
|
|
1143
|
+
saml?: {
|
|
1144
|
+
issuer: string;
|
|
1145
|
+
entryPoint: string;
|
|
1146
|
+
cert: string;
|
|
1147
|
+
icon?: string | undefined;
|
|
1148
|
+
enabled?: boolean | undefined;
|
|
1149
|
+
displayName?: string | undefined;
|
|
1150
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
1151
|
+
signatureAlgorithm?: "sha256" | "sha512" | undefined;
|
|
1152
|
+
} | undefined;
|
|
1153
|
+
ldap?: {
|
|
1154
|
+
url: string;
|
|
1155
|
+
bindDn: string;
|
|
1156
|
+
bindCredentials: string;
|
|
1157
|
+
searchBase: string;
|
|
1158
|
+
searchFilter: string;
|
|
1159
|
+
icon?: string | undefined;
|
|
1160
|
+
enabled?: boolean | undefined;
|
|
1161
|
+
displayName?: string | undefined;
|
|
1162
|
+
groupSearchBase?: string | undefined;
|
|
1163
|
+
} | undefined;
|
|
1164
|
+
}>>;
|
|
659
1165
|
/**
|
|
660
1166
|
* User field mapping
|
|
661
1167
|
*/
|
|
@@ -703,6 +1209,46 @@ export declare const AuthConfigSchema: z.ZodObject<{
|
|
|
703
1209
|
tablePrefix?: string | undefined;
|
|
704
1210
|
schema?: string | undefined;
|
|
705
1211
|
}>>;
|
|
1212
|
+
/**
|
|
1213
|
+
* Database field mapping configuration
|
|
1214
|
+
* Maps ObjectStack standard field names to driver-specific field names.
|
|
1215
|
+
*
|
|
1216
|
+
* This is distinct from the database adapter configuration and provides
|
|
1217
|
+
* instructions for the driver to map our standard schema fields to the
|
|
1218
|
+
* underlying engine's fields (e.g., better-auth uses 'token' instead of 'sessionToken').
|
|
1219
|
+
*/
|
|
1220
|
+
mapping: z.ZodOptional<z.ZodObject<{
|
|
1221
|
+
/**
|
|
1222
|
+
* User model field mapping
|
|
1223
|
+
* Maps ObjectStack User fields to driver fields
|
|
1224
|
+
*/
|
|
1225
|
+
user: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1226
|
+
/**
|
|
1227
|
+
* Session model field mapping
|
|
1228
|
+
* Maps ObjectStack Session fields to driver fields
|
|
1229
|
+
*/
|
|
1230
|
+
session: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1231
|
+
/**
|
|
1232
|
+
* Account model field mapping
|
|
1233
|
+
* Maps ObjectStack Account fields to driver fields
|
|
1234
|
+
*/
|
|
1235
|
+
account: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1236
|
+
/**
|
|
1237
|
+
* Verification token field mapping
|
|
1238
|
+
* Maps ObjectStack VerificationToken fields to driver fields
|
|
1239
|
+
*/
|
|
1240
|
+
verificationToken: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1241
|
+
}, "strip", z.ZodTypeAny, {
|
|
1242
|
+
session: Record<string, string>;
|
|
1243
|
+
account: Record<string, string>;
|
|
1244
|
+
user?: Record<string, string> | undefined;
|
|
1245
|
+
verificationToken?: Record<string, string> | undefined;
|
|
1246
|
+
}, {
|
|
1247
|
+
user?: Record<string, string> | undefined;
|
|
1248
|
+
session?: Record<string, string> | undefined;
|
|
1249
|
+
account?: Record<string, string> | undefined;
|
|
1250
|
+
verificationToken?: Record<string, string> | undefined;
|
|
1251
|
+
}>>;
|
|
706
1252
|
/**
|
|
707
1253
|
* Additional authentication plugins
|
|
708
1254
|
*/
|
|
@@ -895,8 +1441,6 @@ export declare const AuthConfigSchema: z.ZodObject<{
|
|
|
895
1441
|
blockDuration: number;
|
|
896
1442
|
skipSuccessfulRequests: boolean;
|
|
897
1443
|
};
|
|
898
|
-
strategies: ("email_password" | "magic_link" | "oauth" | "passkey" | "otp" | "anonymous")[];
|
|
899
|
-
baseUrl: string;
|
|
900
1444
|
session: {
|
|
901
1445
|
expiresIn: number;
|
|
902
1446
|
updateAge: number;
|
|
@@ -907,6 +1451,8 @@ export declare const AuthConfigSchema: z.ZodObject<{
|
|
|
907
1451
|
cookieHttpOnly: boolean;
|
|
908
1452
|
cookieDomain?: string | undefined;
|
|
909
1453
|
};
|
|
1454
|
+
strategies: ("oauth" | "email_password" | "magic_link" | "passkey" | "otp" | "anonymous")[];
|
|
1455
|
+
baseUrl: string;
|
|
910
1456
|
csrf: {
|
|
911
1457
|
enabled: boolean;
|
|
912
1458
|
cookieName: string;
|
|
@@ -959,6 +1505,39 @@ export declare const AuthConfigSchema: z.ZodObject<{
|
|
|
959
1505
|
rpId?: string | undefined;
|
|
960
1506
|
allowedOrigins?: string[] | undefined;
|
|
961
1507
|
} | undefined;
|
|
1508
|
+
enterprise?: {
|
|
1509
|
+
oidc?: {
|
|
1510
|
+
enabled: boolean;
|
|
1511
|
+
clientId: string;
|
|
1512
|
+
clientSecret: string;
|
|
1513
|
+
scopes: string[];
|
|
1514
|
+
issuer: string;
|
|
1515
|
+
icon?: string | undefined;
|
|
1516
|
+
displayName?: string | undefined;
|
|
1517
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
1518
|
+
} | undefined;
|
|
1519
|
+
saml?: {
|
|
1520
|
+
enabled: boolean;
|
|
1521
|
+
issuer: string;
|
|
1522
|
+
entryPoint: string;
|
|
1523
|
+
cert: string;
|
|
1524
|
+
signatureAlgorithm: "sha256" | "sha512";
|
|
1525
|
+
icon?: string | undefined;
|
|
1526
|
+
displayName?: string | undefined;
|
|
1527
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
1528
|
+
} | undefined;
|
|
1529
|
+
ldap?: {
|
|
1530
|
+
url: string;
|
|
1531
|
+
enabled: boolean;
|
|
1532
|
+
bindDn: string;
|
|
1533
|
+
bindCredentials: string;
|
|
1534
|
+
searchBase: string;
|
|
1535
|
+
searchFilter: string;
|
|
1536
|
+
icon?: string | undefined;
|
|
1537
|
+
displayName?: string | undefined;
|
|
1538
|
+
groupSearchBase?: string | undefined;
|
|
1539
|
+
} | undefined;
|
|
1540
|
+
} | undefined;
|
|
962
1541
|
emailPassword?: {
|
|
963
1542
|
enabled: boolean;
|
|
964
1543
|
requireEmailVerification: boolean;
|
|
@@ -971,9 +1550,9 @@ export declare const AuthConfigSchema: z.ZodObject<{
|
|
|
971
1550
|
enabled: boolean;
|
|
972
1551
|
expiryTime: number;
|
|
973
1552
|
sendEmail?: ((args_0: {
|
|
1553
|
+
token: string;
|
|
974
1554
|
to: string;
|
|
975
1555
|
link: string;
|
|
976
|
-
token: string;
|
|
977
1556
|
}, ...args: unknown[]) => Promise<void>) | undefined;
|
|
978
1557
|
} | undefined;
|
|
979
1558
|
twoFactor?: {
|
|
@@ -985,12 +1564,24 @@ export declare const AuthConfigSchema: z.ZodObject<{
|
|
|
985
1564
|
enabled: boolean;
|
|
986
1565
|
} | undefined;
|
|
987
1566
|
} | undefined;
|
|
1567
|
+
organization?: {
|
|
1568
|
+
enabled: boolean;
|
|
1569
|
+
allowUserToCreateOrg: boolean;
|
|
1570
|
+
defaultRole: string;
|
|
1571
|
+
creatorRole: string;
|
|
1572
|
+
} | undefined;
|
|
988
1573
|
database?: {
|
|
989
1574
|
type: "custom" | "prisma" | "drizzle" | "kysely";
|
|
990
1575
|
tablePrefix: string;
|
|
991
1576
|
connectionString?: string | undefined;
|
|
992
1577
|
schema?: string | undefined;
|
|
993
1578
|
} | undefined;
|
|
1579
|
+
mapping?: {
|
|
1580
|
+
session: Record<string, string>;
|
|
1581
|
+
account: Record<string, string>;
|
|
1582
|
+
user?: Record<string, string> | undefined;
|
|
1583
|
+
verificationToken?: Record<string, string> | undefined;
|
|
1584
|
+
} | undefined;
|
|
994
1585
|
hooks?: {
|
|
995
1586
|
beforeSignIn?: ((args_0: {
|
|
996
1587
|
email: string;
|
|
@@ -1030,7 +1621,7 @@ export declare const AuthConfigSchema: z.ZodObject<{
|
|
|
1030
1621
|
label: string;
|
|
1031
1622
|
name: string;
|
|
1032
1623
|
secret: string;
|
|
1033
|
-
strategies: ("
|
|
1624
|
+
strategies: ("oauth" | "email_password" | "magic_link" | "passkey" | "otp" | "anonymous")[];
|
|
1034
1625
|
baseUrl: string;
|
|
1035
1626
|
email?: {
|
|
1036
1627
|
provider: "custom" | "smtp" | "sendgrid" | "mailgun" | "ses" | "resend";
|
|
@@ -1067,6 +1658,49 @@ export declare const AuthConfigSchema: z.ZodObject<{
|
|
|
1067
1658
|
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
1068
1659
|
attestation?: "none" | "indirect" | "direct" | "enterprise" | undefined;
|
|
1069
1660
|
} | undefined;
|
|
1661
|
+
enterprise?: {
|
|
1662
|
+
oidc?: {
|
|
1663
|
+
clientId: string;
|
|
1664
|
+
clientSecret: string;
|
|
1665
|
+
issuer: string;
|
|
1666
|
+
icon?: string | undefined;
|
|
1667
|
+
enabled?: boolean | undefined;
|
|
1668
|
+
scopes?: string[] | undefined;
|
|
1669
|
+
displayName?: string | undefined;
|
|
1670
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
1671
|
+
} | undefined;
|
|
1672
|
+
saml?: {
|
|
1673
|
+
issuer: string;
|
|
1674
|
+
entryPoint: string;
|
|
1675
|
+
cert: string;
|
|
1676
|
+
icon?: string | undefined;
|
|
1677
|
+
enabled?: boolean | undefined;
|
|
1678
|
+
displayName?: string | undefined;
|
|
1679
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
1680
|
+
signatureAlgorithm?: "sha256" | "sha512" | undefined;
|
|
1681
|
+
} | undefined;
|
|
1682
|
+
ldap?: {
|
|
1683
|
+
url: string;
|
|
1684
|
+
bindDn: string;
|
|
1685
|
+
bindCredentials: string;
|
|
1686
|
+
searchBase: string;
|
|
1687
|
+
searchFilter: string;
|
|
1688
|
+
icon?: string | undefined;
|
|
1689
|
+
enabled?: boolean | undefined;
|
|
1690
|
+
displayName?: string | undefined;
|
|
1691
|
+
groupSearchBase?: string | undefined;
|
|
1692
|
+
} | undefined;
|
|
1693
|
+
} | undefined;
|
|
1694
|
+
session?: {
|
|
1695
|
+
expiresIn?: number | undefined;
|
|
1696
|
+
updateAge?: number | undefined;
|
|
1697
|
+
cookieName?: string | undefined;
|
|
1698
|
+
cookieSecure?: boolean | undefined;
|
|
1699
|
+
cookieSameSite?: "strict" | "none" | "lax" | undefined;
|
|
1700
|
+
cookieDomain?: string | undefined;
|
|
1701
|
+
cookiePath?: string | undefined;
|
|
1702
|
+
cookieHttpOnly?: boolean | undefined;
|
|
1703
|
+
} | undefined;
|
|
1070
1704
|
emailPassword?: {
|
|
1071
1705
|
enabled?: boolean | undefined;
|
|
1072
1706
|
requireEmailVerification?: boolean | undefined;
|
|
@@ -1079,21 +1713,11 @@ export declare const AuthConfigSchema: z.ZodObject<{
|
|
|
1079
1713
|
enabled?: boolean | undefined;
|
|
1080
1714
|
expiryTime?: number | undefined;
|
|
1081
1715
|
sendEmail?: ((args_0: {
|
|
1716
|
+
token: string;
|
|
1082
1717
|
to: string;
|
|
1083
1718
|
link: string;
|
|
1084
|
-
token: string;
|
|
1085
1719
|
}, ...args: unknown[]) => Promise<void>) | undefined;
|
|
1086
1720
|
} | undefined;
|
|
1087
|
-
session?: {
|
|
1088
|
-
expiresIn?: number | undefined;
|
|
1089
|
-
updateAge?: number | undefined;
|
|
1090
|
-
cookieName?: string | undefined;
|
|
1091
|
-
cookieSecure?: boolean | undefined;
|
|
1092
|
-
cookieSameSite?: "strict" | "none" | "lax" | undefined;
|
|
1093
|
-
cookieDomain?: string | undefined;
|
|
1094
|
-
cookiePath?: string | undefined;
|
|
1095
|
-
cookieHttpOnly?: boolean | undefined;
|
|
1096
|
-
} | undefined;
|
|
1097
1721
|
csrf?: {
|
|
1098
1722
|
enabled?: boolean | undefined;
|
|
1099
1723
|
cookieName?: string | undefined;
|
|
@@ -1114,6 +1738,12 @@ export declare const AuthConfigSchema: z.ZodObject<{
|
|
|
1114
1738
|
enabled?: boolean | undefined;
|
|
1115
1739
|
} | undefined;
|
|
1116
1740
|
} | undefined;
|
|
1741
|
+
organization?: {
|
|
1742
|
+
enabled?: boolean | undefined;
|
|
1743
|
+
allowUserToCreateOrg?: boolean | undefined;
|
|
1744
|
+
defaultRole?: string | undefined;
|
|
1745
|
+
creatorRole?: string | undefined;
|
|
1746
|
+
} | undefined;
|
|
1117
1747
|
userFieldMapping?: {
|
|
1118
1748
|
email?: string | undefined;
|
|
1119
1749
|
image?: string | undefined;
|
|
@@ -1129,6 +1759,12 @@ export declare const AuthConfigSchema: z.ZodObject<{
|
|
|
1129
1759
|
tablePrefix?: string | undefined;
|
|
1130
1760
|
schema?: string | undefined;
|
|
1131
1761
|
} | undefined;
|
|
1762
|
+
mapping?: {
|
|
1763
|
+
user?: Record<string, string> | undefined;
|
|
1764
|
+
session?: Record<string, string> | undefined;
|
|
1765
|
+
account?: Record<string, string> | undefined;
|
|
1766
|
+
verificationToken?: Record<string, string> | undefined;
|
|
1767
|
+
} | undefined;
|
|
1132
1768
|
plugins?: {
|
|
1133
1769
|
name: string;
|
|
1134
1770
|
options?: Record<string, any> | undefined;
|
|
@@ -1246,29 +1882,29 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
1246
1882
|
link: z.ZodString;
|
|
1247
1883
|
token: z.ZodString;
|
|
1248
1884
|
}, "strip", z.ZodTypeAny, {
|
|
1885
|
+
token: string;
|
|
1249
1886
|
to: string;
|
|
1250
1887
|
link: string;
|
|
1251
|
-
token: string;
|
|
1252
1888
|
}, {
|
|
1889
|
+
token: string;
|
|
1253
1890
|
to: string;
|
|
1254
1891
|
link: string;
|
|
1255
|
-
token: string;
|
|
1256
1892
|
}>], z.ZodUnknown>, z.ZodPromise<z.ZodVoid>>>;
|
|
1257
1893
|
}, "strip", z.ZodTypeAny, {
|
|
1258
1894
|
enabled: boolean;
|
|
1259
1895
|
expiryTime: number;
|
|
1260
1896
|
sendEmail?: ((args_0: {
|
|
1897
|
+
token: string;
|
|
1261
1898
|
to: string;
|
|
1262
1899
|
link: string;
|
|
1263
|
-
token: string;
|
|
1264
1900
|
}, ...args: unknown[]) => Promise<void>) | undefined;
|
|
1265
1901
|
}, {
|
|
1266
1902
|
enabled?: boolean | undefined;
|
|
1267
1903
|
expiryTime?: number | undefined;
|
|
1268
1904
|
sendEmail?: ((args_0: {
|
|
1905
|
+
token: string;
|
|
1269
1906
|
to: string;
|
|
1270
1907
|
link: string;
|
|
1271
|
-
token: string;
|
|
1272
1908
|
}, ...args: unknown[]) => Promise<void>) | undefined;
|
|
1273
1909
|
}>>;
|
|
1274
1910
|
/**
|
|
@@ -1473,6 +2109,182 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
1473
2109
|
enabled?: boolean | undefined;
|
|
1474
2110
|
} | undefined;
|
|
1475
2111
|
}>>;
|
|
2112
|
+
/**
|
|
2113
|
+
* Organization (Multi-tenant) configuration
|
|
2114
|
+
* Enables B2B SaaS scenarios where users belong to multiple teams/workspaces
|
|
2115
|
+
*/
|
|
2116
|
+
organization: z.ZodOptional<z.ZodObject<{
|
|
2117
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2118
|
+
allowUserToCreateOrg: z.ZodDefault<z.ZodBoolean>;
|
|
2119
|
+
defaultRole: z.ZodDefault<z.ZodString>;
|
|
2120
|
+
creatorRole: z.ZodDefault<z.ZodString>;
|
|
2121
|
+
}, "strip", z.ZodTypeAny, {
|
|
2122
|
+
enabled: boolean;
|
|
2123
|
+
allowUserToCreateOrg: boolean;
|
|
2124
|
+
defaultRole: string;
|
|
2125
|
+
creatorRole: string;
|
|
2126
|
+
}, {
|
|
2127
|
+
enabled?: boolean | undefined;
|
|
2128
|
+
allowUserToCreateOrg?: boolean | undefined;
|
|
2129
|
+
defaultRole?: string | undefined;
|
|
2130
|
+
creatorRole?: string | undefined;
|
|
2131
|
+
}>>;
|
|
2132
|
+
/**
|
|
2133
|
+
* Enterprise authentication configuration (SAML, LDAP, OIDC)
|
|
2134
|
+
*/
|
|
2135
|
+
enterprise: z.ZodOptional<z.ZodObject<{
|
|
2136
|
+
oidc: z.ZodOptional<z.ZodObject<{
|
|
2137
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2138
|
+
issuer: z.ZodString;
|
|
2139
|
+
clientId: z.ZodString;
|
|
2140
|
+
clientSecret: z.ZodString;
|
|
2141
|
+
scopes: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2142
|
+
attributeMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2143
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
2144
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
2145
|
+
}, "strip", z.ZodTypeAny, {
|
|
2146
|
+
enabled: boolean;
|
|
2147
|
+
clientId: string;
|
|
2148
|
+
clientSecret: string;
|
|
2149
|
+
scopes: string[];
|
|
2150
|
+
issuer: string;
|
|
2151
|
+
icon?: string | undefined;
|
|
2152
|
+
displayName?: string | undefined;
|
|
2153
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
2154
|
+
}, {
|
|
2155
|
+
clientId: string;
|
|
2156
|
+
clientSecret: string;
|
|
2157
|
+
issuer: string;
|
|
2158
|
+
icon?: string | undefined;
|
|
2159
|
+
enabled?: boolean | undefined;
|
|
2160
|
+
scopes?: string[] | undefined;
|
|
2161
|
+
displayName?: string | undefined;
|
|
2162
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
2163
|
+
}>>;
|
|
2164
|
+
saml: z.ZodOptional<z.ZodObject<{
|
|
2165
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2166
|
+
entryPoint: z.ZodString;
|
|
2167
|
+
cert: z.ZodString;
|
|
2168
|
+
issuer: z.ZodString;
|
|
2169
|
+
signatureAlgorithm: z.ZodDefault<z.ZodEnum<["sha256", "sha512"]>>;
|
|
2170
|
+
attributeMapping: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2171
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
2172
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
2173
|
+
}, "strip", z.ZodTypeAny, {
|
|
2174
|
+
enabled: boolean;
|
|
2175
|
+
issuer: string;
|
|
2176
|
+
entryPoint: string;
|
|
2177
|
+
cert: string;
|
|
2178
|
+
signatureAlgorithm: "sha256" | "sha512";
|
|
2179
|
+
icon?: string | undefined;
|
|
2180
|
+
displayName?: string | undefined;
|
|
2181
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
2182
|
+
}, {
|
|
2183
|
+
issuer: string;
|
|
2184
|
+
entryPoint: string;
|
|
2185
|
+
cert: string;
|
|
2186
|
+
icon?: string | undefined;
|
|
2187
|
+
enabled?: boolean | undefined;
|
|
2188
|
+
displayName?: string | undefined;
|
|
2189
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
2190
|
+
signatureAlgorithm?: "sha256" | "sha512" | undefined;
|
|
2191
|
+
}>>;
|
|
2192
|
+
ldap: z.ZodOptional<z.ZodObject<{
|
|
2193
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2194
|
+
url: z.ZodString;
|
|
2195
|
+
bindDn: z.ZodString;
|
|
2196
|
+
bindCredentials: z.ZodString;
|
|
2197
|
+
searchBase: z.ZodString;
|
|
2198
|
+
searchFilter: z.ZodString;
|
|
2199
|
+
groupSearchBase: z.ZodOptional<z.ZodString>;
|
|
2200
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
2201
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
2202
|
+
}, "strip", z.ZodTypeAny, {
|
|
2203
|
+
url: string;
|
|
2204
|
+
enabled: boolean;
|
|
2205
|
+
bindDn: string;
|
|
2206
|
+
bindCredentials: string;
|
|
2207
|
+
searchBase: string;
|
|
2208
|
+
searchFilter: string;
|
|
2209
|
+
icon?: string | undefined;
|
|
2210
|
+
displayName?: string | undefined;
|
|
2211
|
+
groupSearchBase?: string | undefined;
|
|
2212
|
+
}, {
|
|
2213
|
+
url: string;
|
|
2214
|
+
bindDn: string;
|
|
2215
|
+
bindCredentials: string;
|
|
2216
|
+
searchBase: string;
|
|
2217
|
+
searchFilter: string;
|
|
2218
|
+
icon?: string | undefined;
|
|
2219
|
+
enabled?: boolean | undefined;
|
|
2220
|
+
displayName?: string | undefined;
|
|
2221
|
+
groupSearchBase?: string | undefined;
|
|
2222
|
+
}>>;
|
|
2223
|
+
}, "strip", z.ZodTypeAny, {
|
|
2224
|
+
oidc?: {
|
|
2225
|
+
enabled: boolean;
|
|
2226
|
+
clientId: string;
|
|
2227
|
+
clientSecret: string;
|
|
2228
|
+
scopes: string[];
|
|
2229
|
+
issuer: string;
|
|
2230
|
+
icon?: string | undefined;
|
|
2231
|
+
displayName?: string | undefined;
|
|
2232
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
2233
|
+
} | undefined;
|
|
2234
|
+
saml?: {
|
|
2235
|
+
enabled: boolean;
|
|
2236
|
+
issuer: string;
|
|
2237
|
+
entryPoint: string;
|
|
2238
|
+
cert: string;
|
|
2239
|
+
signatureAlgorithm: "sha256" | "sha512";
|
|
2240
|
+
icon?: string | undefined;
|
|
2241
|
+
displayName?: string | undefined;
|
|
2242
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
2243
|
+
} | undefined;
|
|
2244
|
+
ldap?: {
|
|
2245
|
+
url: string;
|
|
2246
|
+
enabled: boolean;
|
|
2247
|
+
bindDn: string;
|
|
2248
|
+
bindCredentials: string;
|
|
2249
|
+
searchBase: string;
|
|
2250
|
+
searchFilter: string;
|
|
2251
|
+
icon?: string | undefined;
|
|
2252
|
+
displayName?: string | undefined;
|
|
2253
|
+
groupSearchBase?: string | undefined;
|
|
2254
|
+
} | undefined;
|
|
2255
|
+
}, {
|
|
2256
|
+
oidc?: {
|
|
2257
|
+
clientId: string;
|
|
2258
|
+
clientSecret: string;
|
|
2259
|
+
issuer: string;
|
|
2260
|
+
icon?: string | undefined;
|
|
2261
|
+
enabled?: boolean | undefined;
|
|
2262
|
+
scopes?: string[] | undefined;
|
|
2263
|
+
displayName?: string | undefined;
|
|
2264
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
2265
|
+
} | undefined;
|
|
2266
|
+
saml?: {
|
|
2267
|
+
issuer: string;
|
|
2268
|
+
entryPoint: string;
|
|
2269
|
+
cert: string;
|
|
2270
|
+
icon?: string | undefined;
|
|
2271
|
+
enabled?: boolean | undefined;
|
|
2272
|
+
displayName?: string | undefined;
|
|
2273
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
2274
|
+
signatureAlgorithm?: "sha256" | "sha512" | undefined;
|
|
2275
|
+
} | undefined;
|
|
2276
|
+
ldap?: {
|
|
2277
|
+
url: string;
|
|
2278
|
+
bindDn: string;
|
|
2279
|
+
bindCredentials: string;
|
|
2280
|
+
searchBase: string;
|
|
2281
|
+
searchFilter: string;
|
|
2282
|
+
icon?: string | undefined;
|
|
2283
|
+
enabled?: boolean | undefined;
|
|
2284
|
+
displayName?: string | undefined;
|
|
2285
|
+
groupSearchBase?: string | undefined;
|
|
2286
|
+
} | undefined;
|
|
2287
|
+
}>>;
|
|
1476
2288
|
/**
|
|
1477
2289
|
* User field mapping
|
|
1478
2290
|
*/
|
|
@@ -1520,6 +2332,46 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
1520
2332
|
tablePrefix?: string | undefined;
|
|
1521
2333
|
schema?: string | undefined;
|
|
1522
2334
|
}>>;
|
|
2335
|
+
/**
|
|
2336
|
+
* Database field mapping configuration
|
|
2337
|
+
* Maps ObjectStack standard field names to driver-specific field names.
|
|
2338
|
+
*
|
|
2339
|
+
* This is distinct from the database adapter configuration and provides
|
|
2340
|
+
* instructions for the driver to map our standard schema fields to the
|
|
2341
|
+
* underlying engine's fields (e.g., better-auth uses 'token' instead of 'sessionToken').
|
|
2342
|
+
*/
|
|
2343
|
+
mapping: z.ZodOptional<z.ZodObject<{
|
|
2344
|
+
/**
|
|
2345
|
+
* User model field mapping
|
|
2346
|
+
* Maps ObjectStack User fields to driver fields
|
|
2347
|
+
*/
|
|
2348
|
+
user: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2349
|
+
/**
|
|
2350
|
+
* Session model field mapping
|
|
2351
|
+
* Maps ObjectStack Session fields to driver fields
|
|
2352
|
+
*/
|
|
2353
|
+
session: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2354
|
+
/**
|
|
2355
|
+
* Account model field mapping
|
|
2356
|
+
* Maps ObjectStack Account fields to driver fields
|
|
2357
|
+
*/
|
|
2358
|
+
account: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2359
|
+
/**
|
|
2360
|
+
* Verification token field mapping
|
|
2361
|
+
* Maps ObjectStack VerificationToken fields to driver fields
|
|
2362
|
+
*/
|
|
2363
|
+
verificationToken: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2364
|
+
}, "strip", z.ZodTypeAny, {
|
|
2365
|
+
session: Record<string, string>;
|
|
2366
|
+
account: Record<string, string>;
|
|
2367
|
+
user?: Record<string, string> | undefined;
|
|
2368
|
+
verificationToken?: Record<string, string> | undefined;
|
|
2369
|
+
}, {
|
|
2370
|
+
user?: Record<string, string> | undefined;
|
|
2371
|
+
session?: Record<string, string> | undefined;
|
|
2372
|
+
account?: Record<string, string> | undefined;
|
|
2373
|
+
verificationToken?: Record<string, string> | undefined;
|
|
2374
|
+
}>>;
|
|
1523
2375
|
/**
|
|
1524
2376
|
* Additional authentication plugins
|
|
1525
2377
|
*/
|
|
@@ -1712,8 +2564,6 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
1712
2564
|
blockDuration: number;
|
|
1713
2565
|
skipSuccessfulRequests: boolean;
|
|
1714
2566
|
};
|
|
1715
|
-
strategies: ("email_password" | "magic_link" | "oauth" | "passkey" | "otp" | "anonymous")[];
|
|
1716
|
-
baseUrl: string;
|
|
1717
2567
|
session: {
|
|
1718
2568
|
expiresIn: number;
|
|
1719
2569
|
updateAge: number;
|
|
@@ -1724,6 +2574,8 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
1724
2574
|
cookieHttpOnly: boolean;
|
|
1725
2575
|
cookieDomain?: string | undefined;
|
|
1726
2576
|
};
|
|
2577
|
+
strategies: ("oauth" | "email_password" | "magic_link" | "passkey" | "otp" | "anonymous")[];
|
|
2578
|
+
baseUrl: string;
|
|
1727
2579
|
csrf: {
|
|
1728
2580
|
enabled: boolean;
|
|
1729
2581
|
cookieName: string;
|
|
@@ -1776,6 +2628,39 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
1776
2628
|
rpId?: string | undefined;
|
|
1777
2629
|
allowedOrigins?: string[] | undefined;
|
|
1778
2630
|
} | undefined;
|
|
2631
|
+
enterprise?: {
|
|
2632
|
+
oidc?: {
|
|
2633
|
+
enabled: boolean;
|
|
2634
|
+
clientId: string;
|
|
2635
|
+
clientSecret: string;
|
|
2636
|
+
scopes: string[];
|
|
2637
|
+
issuer: string;
|
|
2638
|
+
icon?: string | undefined;
|
|
2639
|
+
displayName?: string | undefined;
|
|
2640
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
2641
|
+
} | undefined;
|
|
2642
|
+
saml?: {
|
|
2643
|
+
enabled: boolean;
|
|
2644
|
+
issuer: string;
|
|
2645
|
+
entryPoint: string;
|
|
2646
|
+
cert: string;
|
|
2647
|
+
signatureAlgorithm: "sha256" | "sha512";
|
|
2648
|
+
icon?: string | undefined;
|
|
2649
|
+
displayName?: string | undefined;
|
|
2650
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
2651
|
+
} | undefined;
|
|
2652
|
+
ldap?: {
|
|
2653
|
+
url: string;
|
|
2654
|
+
enabled: boolean;
|
|
2655
|
+
bindDn: string;
|
|
2656
|
+
bindCredentials: string;
|
|
2657
|
+
searchBase: string;
|
|
2658
|
+
searchFilter: string;
|
|
2659
|
+
icon?: string | undefined;
|
|
2660
|
+
displayName?: string | undefined;
|
|
2661
|
+
groupSearchBase?: string | undefined;
|
|
2662
|
+
} | undefined;
|
|
2663
|
+
} | undefined;
|
|
1779
2664
|
emailPassword?: {
|
|
1780
2665
|
enabled: boolean;
|
|
1781
2666
|
requireEmailVerification: boolean;
|
|
@@ -1788,9 +2673,9 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
1788
2673
|
enabled: boolean;
|
|
1789
2674
|
expiryTime: number;
|
|
1790
2675
|
sendEmail?: ((args_0: {
|
|
2676
|
+
token: string;
|
|
1791
2677
|
to: string;
|
|
1792
2678
|
link: string;
|
|
1793
|
-
token: string;
|
|
1794
2679
|
}, ...args: unknown[]) => Promise<void>) | undefined;
|
|
1795
2680
|
} | undefined;
|
|
1796
2681
|
twoFactor?: {
|
|
@@ -1802,12 +2687,24 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
1802
2687
|
enabled: boolean;
|
|
1803
2688
|
} | undefined;
|
|
1804
2689
|
} | undefined;
|
|
2690
|
+
organization?: {
|
|
2691
|
+
enabled: boolean;
|
|
2692
|
+
allowUserToCreateOrg: boolean;
|
|
2693
|
+
defaultRole: string;
|
|
2694
|
+
creatorRole: string;
|
|
2695
|
+
} | undefined;
|
|
1805
2696
|
database?: {
|
|
1806
2697
|
type: "custom" | "prisma" | "drizzle" | "kysely";
|
|
1807
2698
|
tablePrefix: string;
|
|
1808
2699
|
connectionString?: string | undefined;
|
|
1809
2700
|
schema?: string | undefined;
|
|
1810
2701
|
} | undefined;
|
|
2702
|
+
mapping?: {
|
|
2703
|
+
session: Record<string, string>;
|
|
2704
|
+
account: Record<string, string>;
|
|
2705
|
+
user?: Record<string, string> | undefined;
|
|
2706
|
+
verificationToken?: Record<string, string> | undefined;
|
|
2707
|
+
} | undefined;
|
|
1811
2708
|
hooks?: {
|
|
1812
2709
|
beforeSignIn?: ((args_0: {
|
|
1813
2710
|
email: string;
|
|
@@ -1847,7 +2744,7 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
1847
2744
|
label: string;
|
|
1848
2745
|
name: string;
|
|
1849
2746
|
secret: string;
|
|
1850
|
-
strategies: ("
|
|
2747
|
+
strategies: ("oauth" | "email_password" | "magic_link" | "passkey" | "otp" | "anonymous")[];
|
|
1851
2748
|
baseUrl: string;
|
|
1852
2749
|
email?: {
|
|
1853
2750
|
provider: "custom" | "smtp" | "sendgrid" | "mailgun" | "ses" | "resend";
|
|
@@ -1884,6 +2781,49 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
1884
2781
|
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
1885
2782
|
attestation?: "none" | "indirect" | "direct" | "enterprise" | undefined;
|
|
1886
2783
|
} | undefined;
|
|
2784
|
+
enterprise?: {
|
|
2785
|
+
oidc?: {
|
|
2786
|
+
clientId: string;
|
|
2787
|
+
clientSecret: string;
|
|
2788
|
+
issuer: string;
|
|
2789
|
+
icon?: string | undefined;
|
|
2790
|
+
enabled?: boolean | undefined;
|
|
2791
|
+
scopes?: string[] | undefined;
|
|
2792
|
+
displayName?: string | undefined;
|
|
2793
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
2794
|
+
} | undefined;
|
|
2795
|
+
saml?: {
|
|
2796
|
+
issuer: string;
|
|
2797
|
+
entryPoint: string;
|
|
2798
|
+
cert: string;
|
|
2799
|
+
icon?: string | undefined;
|
|
2800
|
+
enabled?: boolean | undefined;
|
|
2801
|
+
displayName?: string | undefined;
|
|
2802
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
2803
|
+
signatureAlgorithm?: "sha256" | "sha512" | undefined;
|
|
2804
|
+
} | undefined;
|
|
2805
|
+
ldap?: {
|
|
2806
|
+
url: string;
|
|
2807
|
+
bindDn: string;
|
|
2808
|
+
bindCredentials: string;
|
|
2809
|
+
searchBase: string;
|
|
2810
|
+
searchFilter: string;
|
|
2811
|
+
icon?: string | undefined;
|
|
2812
|
+
enabled?: boolean | undefined;
|
|
2813
|
+
displayName?: string | undefined;
|
|
2814
|
+
groupSearchBase?: string | undefined;
|
|
2815
|
+
} | undefined;
|
|
2816
|
+
} | undefined;
|
|
2817
|
+
session?: {
|
|
2818
|
+
expiresIn?: number | undefined;
|
|
2819
|
+
updateAge?: number | undefined;
|
|
2820
|
+
cookieName?: string | undefined;
|
|
2821
|
+
cookieSecure?: boolean | undefined;
|
|
2822
|
+
cookieSameSite?: "strict" | "none" | "lax" | undefined;
|
|
2823
|
+
cookieDomain?: string | undefined;
|
|
2824
|
+
cookiePath?: string | undefined;
|
|
2825
|
+
cookieHttpOnly?: boolean | undefined;
|
|
2826
|
+
} | undefined;
|
|
1887
2827
|
emailPassword?: {
|
|
1888
2828
|
enabled?: boolean | undefined;
|
|
1889
2829
|
requireEmailVerification?: boolean | undefined;
|
|
@@ -1896,21 +2836,11 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
1896
2836
|
enabled?: boolean | undefined;
|
|
1897
2837
|
expiryTime?: number | undefined;
|
|
1898
2838
|
sendEmail?: ((args_0: {
|
|
2839
|
+
token: string;
|
|
1899
2840
|
to: string;
|
|
1900
2841
|
link: string;
|
|
1901
|
-
token: string;
|
|
1902
2842
|
}, ...args: unknown[]) => Promise<void>) | undefined;
|
|
1903
2843
|
} | undefined;
|
|
1904
|
-
session?: {
|
|
1905
|
-
expiresIn?: number | undefined;
|
|
1906
|
-
updateAge?: number | undefined;
|
|
1907
|
-
cookieName?: string | undefined;
|
|
1908
|
-
cookieSecure?: boolean | undefined;
|
|
1909
|
-
cookieSameSite?: "strict" | "none" | "lax" | undefined;
|
|
1910
|
-
cookieDomain?: string | undefined;
|
|
1911
|
-
cookiePath?: string | undefined;
|
|
1912
|
-
cookieHttpOnly?: boolean | undefined;
|
|
1913
|
-
} | undefined;
|
|
1914
2844
|
csrf?: {
|
|
1915
2845
|
enabled?: boolean | undefined;
|
|
1916
2846
|
cookieName?: string | undefined;
|
|
@@ -1931,6 +2861,12 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
1931
2861
|
enabled?: boolean | undefined;
|
|
1932
2862
|
} | undefined;
|
|
1933
2863
|
} | undefined;
|
|
2864
|
+
organization?: {
|
|
2865
|
+
enabled?: boolean | undefined;
|
|
2866
|
+
allowUserToCreateOrg?: boolean | undefined;
|
|
2867
|
+
defaultRole?: string | undefined;
|
|
2868
|
+
creatorRole?: string | undefined;
|
|
2869
|
+
} | undefined;
|
|
1934
2870
|
userFieldMapping?: {
|
|
1935
2871
|
email?: string | undefined;
|
|
1936
2872
|
image?: string | undefined;
|
|
@@ -1946,6 +2882,12 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
1946
2882
|
tablePrefix?: string | undefined;
|
|
1947
2883
|
schema?: string | undefined;
|
|
1948
2884
|
} | undefined;
|
|
2885
|
+
mapping?: {
|
|
2886
|
+
user?: Record<string, string> | undefined;
|
|
2887
|
+
session?: Record<string, string> | undefined;
|
|
2888
|
+
account?: Record<string, string> | undefined;
|
|
2889
|
+
verificationToken?: Record<string, string> | undefined;
|
|
2890
|
+
} | undefined;
|
|
1949
2891
|
plugins?: {
|
|
1950
2892
|
name: string;
|
|
1951
2893
|
options?: Record<string, any> | undefined;
|
|
@@ -2003,8 +2945,6 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
2003
2945
|
blockDuration: number;
|
|
2004
2946
|
skipSuccessfulRequests: boolean;
|
|
2005
2947
|
};
|
|
2006
|
-
strategies: ("email_password" | "magic_link" | "oauth" | "passkey" | "otp" | "anonymous")[];
|
|
2007
|
-
baseUrl: string;
|
|
2008
2948
|
session: {
|
|
2009
2949
|
expiresIn: number;
|
|
2010
2950
|
updateAge: number;
|
|
@@ -2015,6 +2955,8 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
2015
2955
|
cookieHttpOnly: boolean;
|
|
2016
2956
|
cookieDomain?: string | undefined;
|
|
2017
2957
|
};
|
|
2958
|
+
strategies: ("oauth" | "email_password" | "magic_link" | "passkey" | "otp" | "anonymous")[];
|
|
2959
|
+
baseUrl: string;
|
|
2018
2960
|
csrf: {
|
|
2019
2961
|
enabled: boolean;
|
|
2020
2962
|
cookieName: string;
|
|
@@ -2067,6 +3009,39 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
2067
3009
|
rpId?: string | undefined;
|
|
2068
3010
|
allowedOrigins?: string[] | undefined;
|
|
2069
3011
|
} | undefined;
|
|
3012
|
+
enterprise?: {
|
|
3013
|
+
oidc?: {
|
|
3014
|
+
enabled: boolean;
|
|
3015
|
+
clientId: string;
|
|
3016
|
+
clientSecret: string;
|
|
3017
|
+
scopes: string[];
|
|
3018
|
+
issuer: string;
|
|
3019
|
+
icon?: string | undefined;
|
|
3020
|
+
displayName?: string | undefined;
|
|
3021
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
3022
|
+
} | undefined;
|
|
3023
|
+
saml?: {
|
|
3024
|
+
enabled: boolean;
|
|
3025
|
+
issuer: string;
|
|
3026
|
+
entryPoint: string;
|
|
3027
|
+
cert: string;
|
|
3028
|
+
signatureAlgorithm: "sha256" | "sha512";
|
|
3029
|
+
icon?: string | undefined;
|
|
3030
|
+
displayName?: string | undefined;
|
|
3031
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
3032
|
+
} | undefined;
|
|
3033
|
+
ldap?: {
|
|
3034
|
+
url: string;
|
|
3035
|
+
enabled: boolean;
|
|
3036
|
+
bindDn: string;
|
|
3037
|
+
bindCredentials: string;
|
|
3038
|
+
searchBase: string;
|
|
3039
|
+
searchFilter: string;
|
|
3040
|
+
icon?: string | undefined;
|
|
3041
|
+
displayName?: string | undefined;
|
|
3042
|
+
groupSearchBase?: string | undefined;
|
|
3043
|
+
} | undefined;
|
|
3044
|
+
} | undefined;
|
|
2070
3045
|
emailPassword?: {
|
|
2071
3046
|
enabled: boolean;
|
|
2072
3047
|
requireEmailVerification: boolean;
|
|
@@ -2079,9 +3054,9 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
2079
3054
|
enabled: boolean;
|
|
2080
3055
|
expiryTime: number;
|
|
2081
3056
|
sendEmail?: ((args_0: {
|
|
3057
|
+
token: string;
|
|
2082
3058
|
to: string;
|
|
2083
3059
|
link: string;
|
|
2084
|
-
token: string;
|
|
2085
3060
|
}, ...args: unknown[]) => Promise<void>) | undefined;
|
|
2086
3061
|
} | undefined;
|
|
2087
3062
|
twoFactor?: {
|
|
@@ -2093,12 +3068,24 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
2093
3068
|
enabled: boolean;
|
|
2094
3069
|
} | undefined;
|
|
2095
3070
|
} | undefined;
|
|
3071
|
+
organization?: {
|
|
3072
|
+
enabled: boolean;
|
|
3073
|
+
allowUserToCreateOrg: boolean;
|
|
3074
|
+
defaultRole: string;
|
|
3075
|
+
creatorRole: string;
|
|
3076
|
+
} | undefined;
|
|
2096
3077
|
database?: {
|
|
2097
3078
|
type: "custom" | "prisma" | "drizzle" | "kysely";
|
|
2098
3079
|
tablePrefix: string;
|
|
2099
3080
|
connectionString?: string | undefined;
|
|
2100
3081
|
schema?: string | undefined;
|
|
2101
3082
|
} | undefined;
|
|
3083
|
+
mapping?: {
|
|
3084
|
+
session: Record<string, string>;
|
|
3085
|
+
account: Record<string, string>;
|
|
3086
|
+
user?: Record<string, string> | undefined;
|
|
3087
|
+
verificationToken?: Record<string, string> | undefined;
|
|
3088
|
+
} | undefined;
|
|
2102
3089
|
hooks?: {
|
|
2103
3090
|
beforeSignIn?: ((args_0: {
|
|
2104
3091
|
email: string;
|
|
@@ -2141,7 +3128,7 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
2141
3128
|
label: string;
|
|
2142
3129
|
name: string;
|
|
2143
3130
|
secret: string;
|
|
2144
|
-
strategies: ("
|
|
3131
|
+
strategies: ("oauth" | "email_password" | "magic_link" | "passkey" | "otp" | "anonymous")[];
|
|
2145
3132
|
baseUrl: string;
|
|
2146
3133
|
email?: {
|
|
2147
3134
|
provider: "custom" | "smtp" | "sendgrid" | "mailgun" | "ses" | "resend";
|
|
@@ -2178,6 +3165,49 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
2178
3165
|
userVerification?: "required" | "preferred" | "discouraged" | undefined;
|
|
2179
3166
|
attestation?: "none" | "indirect" | "direct" | "enterprise" | undefined;
|
|
2180
3167
|
} | undefined;
|
|
3168
|
+
enterprise?: {
|
|
3169
|
+
oidc?: {
|
|
3170
|
+
clientId: string;
|
|
3171
|
+
clientSecret: string;
|
|
3172
|
+
issuer: string;
|
|
3173
|
+
icon?: string | undefined;
|
|
3174
|
+
enabled?: boolean | undefined;
|
|
3175
|
+
scopes?: string[] | undefined;
|
|
3176
|
+
displayName?: string | undefined;
|
|
3177
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
3178
|
+
} | undefined;
|
|
3179
|
+
saml?: {
|
|
3180
|
+
issuer: string;
|
|
3181
|
+
entryPoint: string;
|
|
3182
|
+
cert: string;
|
|
3183
|
+
icon?: string | undefined;
|
|
3184
|
+
enabled?: boolean | undefined;
|
|
3185
|
+
displayName?: string | undefined;
|
|
3186
|
+
attributeMapping?: Record<string, string> | undefined;
|
|
3187
|
+
signatureAlgorithm?: "sha256" | "sha512" | undefined;
|
|
3188
|
+
} | undefined;
|
|
3189
|
+
ldap?: {
|
|
3190
|
+
url: string;
|
|
3191
|
+
bindDn: string;
|
|
3192
|
+
bindCredentials: string;
|
|
3193
|
+
searchBase: string;
|
|
3194
|
+
searchFilter: string;
|
|
3195
|
+
icon?: string | undefined;
|
|
3196
|
+
enabled?: boolean | undefined;
|
|
3197
|
+
displayName?: string | undefined;
|
|
3198
|
+
groupSearchBase?: string | undefined;
|
|
3199
|
+
} | undefined;
|
|
3200
|
+
} | undefined;
|
|
3201
|
+
session?: {
|
|
3202
|
+
expiresIn?: number | undefined;
|
|
3203
|
+
updateAge?: number | undefined;
|
|
3204
|
+
cookieName?: string | undefined;
|
|
3205
|
+
cookieSecure?: boolean | undefined;
|
|
3206
|
+
cookieSameSite?: "strict" | "none" | "lax" | undefined;
|
|
3207
|
+
cookieDomain?: string | undefined;
|
|
3208
|
+
cookiePath?: string | undefined;
|
|
3209
|
+
cookieHttpOnly?: boolean | undefined;
|
|
3210
|
+
} | undefined;
|
|
2181
3211
|
emailPassword?: {
|
|
2182
3212
|
enabled?: boolean | undefined;
|
|
2183
3213
|
requireEmailVerification?: boolean | undefined;
|
|
@@ -2190,21 +3220,11 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
2190
3220
|
enabled?: boolean | undefined;
|
|
2191
3221
|
expiryTime?: number | undefined;
|
|
2192
3222
|
sendEmail?: ((args_0: {
|
|
3223
|
+
token: string;
|
|
2193
3224
|
to: string;
|
|
2194
3225
|
link: string;
|
|
2195
|
-
token: string;
|
|
2196
3226
|
}, ...args: unknown[]) => Promise<void>) | undefined;
|
|
2197
3227
|
} | undefined;
|
|
2198
|
-
session?: {
|
|
2199
|
-
expiresIn?: number | undefined;
|
|
2200
|
-
updateAge?: number | undefined;
|
|
2201
|
-
cookieName?: string | undefined;
|
|
2202
|
-
cookieSecure?: boolean | undefined;
|
|
2203
|
-
cookieSameSite?: "strict" | "none" | "lax" | undefined;
|
|
2204
|
-
cookieDomain?: string | undefined;
|
|
2205
|
-
cookiePath?: string | undefined;
|
|
2206
|
-
cookieHttpOnly?: boolean | undefined;
|
|
2207
|
-
} | undefined;
|
|
2208
3228
|
csrf?: {
|
|
2209
3229
|
enabled?: boolean | undefined;
|
|
2210
3230
|
cookieName?: string | undefined;
|
|
@@ -2225,6 +3245,12 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
2225
3245
|
enabled?: boolean | undefined;
|
|
2226
3246
|
} | undefined;
|
|
2227
3247
|
} | undefined;
|
|
3248
|
+
organization?: {
|
|
3249
|
+
enabled?: boolean | undefined;
|
|
3250
|
+
allowUserToCreateOrg?: boolean | undefined;
|
|
3251
|
+
defaultRole?: string | undefined;
|
|
3252
|
+
creatorRole?: string | undefined;
|
|
3253
|
+
} | undefined;
|
|
2228
3254
|
userFieldMapping?: {
|
|
2229
3255
|
email?: string | undefined;
|
|
2230
3256
|
image?: string | undefined;
|
|
@@ -2240,6 +3266,12 @@ export declare const StandardAuthProviderSchema: z.ZodObject<{
|
|
|
2240
3266
|
tablePrefix?: string | undefined;
|
|
2241
3267
|
schema?: string | undefined;
|
|
2242
3268
|
} | undefined;
|
|
3269
|
+
mapping?: {
|
|
3270
|
+
user?: Record<string, string> | undefined;
|
|
3271
|
+
session?: Record<string, string> | undefined;
|
|
3272
|
+
account?: Record<string, string> | undefined;
|
|
3273
|
+
verificationToken?: Record<string, string> | undefined;
|
|
3274
|
+
} | undefined;
|
|
2243
3275
|
plugins?: {
|
|
2244
3276
|
name: string;
|
|
2245
3277
|
options?: Record<string, any> | undefined;
|