@objectstack/spec 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +127 -5
- package/dist/ai/conversation.zod.d.ts +1059 -0
- package/dist/ai/conversation.zod.d.ts.map +1 -0
- package/dist/ai/conversation.zod.js +248 -0
- package/dist/ai/cost.zod.d.ts +2025 -0
- package/dist/ai/cost.zod.d.ts.map +1 -0
- package/dist/ai/cost.zod.js +324 -0
- package/dist/ai/index.d.ts +22 -0
- package/dist/ai/index.d.ts.map +1 -0
- package/dist/ai/index.js +37 -0
- package/dist/ai/model-registry.zod.d.ts +1389 -0
- package/dist/ai/model-registry.zod.d.ts.map +1 -0
- package/dist/ai/model-registry.zod.js +164 -0
- package/dist/ai/nlq.zod.d.ts +1126 -0
- package/dist/ai/nlq.zod.d.ts.map +1 -0
- package/dist/ai/nlq.zod.js +246 -0
- package/dist/ai/predictive.zod.d.ts +838 -0
- package/dist/ai/predictive.zod.d.ts.map +1 -0
- package/dist/ai/predictive.zod.js +244 -0
- package/dist/ai/rag-pipeline.zod.d.ts +1034 -0
- package/dist/ai/rag-pipeline.zod.d.ts.map +1 -0
- package/dist/ai/rag-pipeline.zod.js +244 -0
- package/dist/ai/workflow-automation.zod.d.ts +590 -0
- package/dist/ai/workflow-automation.zod.d.ts.map +1 -0
- package/dist/ai/workflow-automation.zod.js +197 -0
- package/dist/api/contract.zod.d.ts +22 -22
- package/dist/api/index.d.ts +9 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +24 -0
- package/dist/data/field.zod.d.ts +409 -4
- package/dist/data/field.zod.d.ts.map +1 -1
- package/dist/data/field.zod.js +28 -2
- package/dist/data/index.d.ts +21 -0
- package/dist/data/index.d.ts.map +1 -0
- package/dist/data/index.js +36 -0
- package/dist/data/mapping.zod.d.ts +6 -6
- package/dist/data/object.zod.d.ts +80 -10
- package/dist/data/object.zod.d.ts.map +1 -1
- package/dist/data/query.zod.d.ts +386 -3
- package/dist/data/query.zod.d.ts.map +1 -1
- package/dist/data/query.zod.js +386 -3
- package/dist/data/validation.zod.d.ts +349 -0
- package/dist/data/validation.zod.d.ts.map +1 -1
- package/dist/data/validation.zod.js +395 -0
- package/dist/data/workflow.zod.d.ts +809 -18
- package/dist/data/workflow.zod.d.ts.map +1 -1
- package/dist/data/workflow.zod.js +115 -7
- package/dist/index.d.ts +36 -41
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +64 -49
- package/dist/system/api.zod.d.ts +4 -4
- package/dist/system/audit.zod.d.ts +1172 -0
- package/dist/system/audit.zod.d.ts.map +1 -0
- package/dist/system/audit.zod.js +596 -0
- package/dist/system/auth-protocol.d.ts +175 -0
- package/dist/system/auth-protocol.d.ts.map +1 -0
- package/dist/system/auth-protocol.js +60 -0
- package/dist/system/auth.zod.d.ts +1089 -57
- package/dist/system/auth.zod.d.ts.map +1 -1
- package/dist/system/auth.zod.js +135 -1
- package/dist/system/driver.zod.d.ts +4 -4
- package/dist/system/events.zod.d.ts +177 -0
- package/dist/system/events.zod.d.ts.map +1 -0
- package/dist/system/events.zod.js +51 -0
- package/dist/system/identity.zod.d.ts +234 -180
- package/dist/system/identity.zod.d.ts.map +1 -1
- package/dist/system/identity.zod.js +168 -51
- package/dist/system/index.d.ts +33 -0
- package/dist/system/index.d.ts.map +1 -0
- package/dist/system/index.js +48 -0
- package/dist/system/job.zod.d.ts +237 -0
- package/dist/system/job.zod.d.ts.map +1 -0
- package/dist/system/job.zod.js +82 -0
- package/dist/system/organization.zod.d.ts +179 -0
- package/dist/system/organization.zod.d.ts.map +1 -0
- package/dist/system/organization.zod.js +129 -0
- package/dist/system/realtime.zod.d.ts +135 -0
- package/dist/system/realtime.zod.d.ts.map +1 -0
- package/dist/system/realtime.zod.js +83 -0
- package/dist/system/tenant.zod.d.ts +1151 -0
- package/dist/system/tenant.zod.d.ts.map +1 -0
- package/dist/system/tenant.zod.js +498 -0
- package/dist/system/webhook.zod.d.ts +2 -2
- package/dist/ui/action.zod.d.ts +10 -10
- package/dist/ui/index.d.ts +17 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +32 -0
- package/dist/ui/theme.zod.d.ts +18 -18
- package/dist/ui/widget.zod.d.ts +40 -5
- package/dist/ui/widget.zod.d.ts.map +1 -1
- package/json-schema/README.md +127 -0
- package/json-schema/ai/AITask.json +123 -0
- package/json-schema/ai/AITaskType.json +21 -0
- package/json-schema/ai/AIWorkflowAutomation.json +379 -0
- package/json-schema/ai/AIWorkflowExecutionResult.json +105 -0
- package/json-schema/ai/AIWorkflowTrigger.json +18 -0
- package/json-schema/ai/BatchAIWorkflowExecution.json +48 -0
- package/json-schema/ai/BillingPeriod.json +18 -0
- package/json-schema/ai/BudgetLimit.json +111 -0
- package/json-schema/ai/BudgetStatus.json +91 -0
- package/json-schema/ai/BudgetType.json +17 -0
- package/json-schema/ai/ChunkingStrategy.json +133 -0
- package/json-schema/ai/ConversationAnalytics.json +86 -0
- package/json-schema/ai/ConversationContext.json +48 -0
- package/json-schema/ai/ConversationMessage.json +209 -0
- package/json-schema/ai/ConversationSession.json +458 -0
- package/json-schema/ai/ConversationSummary.json +73 -0
- package/json-schema/ai/CostAlert.json +107 -0
- package/json-schema/ai/CostAlertType.json +16 -0
- package/json-schema/ai/CostAnalytics.json +589 -0
- package/json-schema/ai/CostBreakdownDimension.json +20 -0
- package/json-schema/ai/CostBreakdownEntry.json +60 -0
- package/json-schema/ai/CostEntry.json +106 -0
- package/json-schema/ai/CostMetricType.json +17 -0
- package/json-schema/ai/CostOptimizationRecommendation.json +100 -0
- package/json-schema/ai/CostQueryFilters.json +112 -0
- package/json-schema/ai/CostReport.json +964 -0
- package/json-schema/ai/DocumentChunk.json +97 -0
- package/json-schema/ai/DocumentLoaderConfig.json +69 -0
- package/json-schema/ai/DocumentMetadata.json +61 -0
- package/json-schema/ai/EmbeddingModel.json +57 -0
- package/json-schema/ai/Entity.json +55 -0
- package/json-schema/ai/EvaluationMetrics.json +64 -0
- package/json-schema/ai/FieldSynonymConfig.json +39 -0
- package/json-schema/ai/FunctionCall.json +28 -0
- package/json-schema/ai/Hyperparameters.json +80 -0
- package/json-schema/ai/MessageContent.json +46 -0
- package/json-schema/ai/MessageContentType.json +16 -0
- package/json-schema/ai/MessagePruningEvent.json +92 -0
- package/json-schema/ai/MessageRole.json +16 -0
- package/json-schema/ai/ModelCapability.json +47 -0
- package/json-schema/ai/ModelConfig.json +181 -0
- package/json-schema/ai/ModelDrift.json +73 -0
- package/json-schema/ai/ModelFeature.json +71 -0
- package/json-schema/ai/ModelLimits.json +45 -0
- package/json-schema/ai/ModelPricing.json +28 -0
- package/json-schema/ai/ModelProvider.json +19 -0
- package/json-schema/ai/ModelRegistry.json +427 -0
- package/json-schema/ai/ModelRegistryEntry.json +239 -0
- package/json-schema/ai/ModelSelectionCriteria.json +50 -0
- package/json-schema/ai/NLQAnalytics.json +106 -0
- package/json-schema/ai/NLQFieldMapping.json +40 -0
- package/json-schema/ai/NLQModelConfig.json +78 -0
- package/json-schema/ai/NLQParseResult.json +252 -0
- package/json-schema/ai/NLQRequest.json +110 -0
- package/json-schema/ai/NLQResponse.json +288 -0
- package/json-schema/ai/NLQTrainingExample.json +120 -0
- package/json-schema/ai/PostProcessingAction.json +41 -0
- package/json-schema/ai/PredictionRequest.json +39 -0
- package/json-schema/ai/PredictionResult.json +82 -0
- package/json-schema/ai/PredictiveModel.json +445 -0
- package/json-schema/ai/PredictiveModelType.json +18 -0
- package/json-schema/ai/PromptTemplate.json +163 -0
- package/json-schema/ai/PromptVariable.json +56 -0
- package/json-schema/ai/QueryContext.json +72 -0
- package/json-schema/ai/QueryIntent.json +21 -0
- package/json-schema/ai/QueryTemplate.json +81 -0
- package/json-schema/ai/RAGPipelineConfig.json +552 -0
- package/json-schema/ai/RAGPipelineStatus.json +66 -0
- package/json-schema/ai/RAGQueryRequest.json +64 -0
- package/json-schema/ai/RAGQueryResponse.json +108 -0
- package/json-schema/ai/RerankingConfig.json +34 -0
- package/json-schema/ai/RetrievalStrategy.json +121 -0
- package/json-schema/ai/Timeframe.json +68 -0
- package/json-schema/ai/TokenBudgetConfig.json +92 -0
- package/json-schema/ai/TokenBudgetStrategy.json +16 -0
- package/json-schema/ai/TokenUsageStats.json +66 -0
- package/json-schema/ai/ToolCall.json +49 -0
- package/json-schema/ai/TrainingConfig.json +88 -0
- package/json-schema/ai/VectorStoreConfig.json +82 -0
- package/json-schema/ai/VectorStoreProvider.json +21 -0
- package/json-schema/ai/WorkflowFieldCondition.json +33 -0
- package/json-schema/ai/WorkflowSchedule.json +51 -0
- package/json-schema/data/CustomScriptAction.json +49 -0
- package/json-schema/{Field.json → data/Field.json} +50 -1
- package/json-schema/{FieldType.json → data/FieldType.json} +4 -1
- package/json-schema/data/HttpCallAction.json +81 -0
- package/json-schema/{Object.json → data/Object.json} +50 -1
- package/json-schema/data/PushNotificationAction.json +59 -0
- package/json-schema/data/SlackMessageAction.json +45 -0
- package/json-schema/data/SmsNotificationAction.json +50 -0
- package/json-schema/data/TaskCreationAction.json +59 -0
- package/json-schema/data/TeamsMessageAction.json +45 -0
- package/json-schema/data/WebhookTriggerAction.json +58 -0
- package/json-schema/data/WorkflowAction.json +465 -0
- package/json-schema/data/WorkflowRule.json +509 -0
- package/json-schema/system/Account.json +87 -0
- package/json-schema/system/AuditConfig.json +587 -0
- package/json-schema/system/AuditEvent.json +232 -0
- package/json-schema/system/AuditEventActor.json +48 -0
- package/json-schema/system/AuditEventChange.json +25 -0
- package/json-schema/system/AuditEventFilter.json +127 -0
- package/json-schema/system/AuditEventSeverity.json +19 -0
- package/json-schema/system/AuditEventTarget.json +33 -0
- package/json-schema/system/AuditEventType.json +53 -0
- package/json-schema/system/AuditRetentionPolicy.json +73 -0
- package/json-schema/system/AuditStorageConfig.json +60 -0
- package/json-schema/{AuthConfig.json → system/AuthConfig.json} +235 -0
- package/json-schema/system/CronSchedule.json +29 -0
- package/json-schema/system/DatabaseLevelIsolationStrategy.json +139 -0
- package/json-schema/system/DatabaseMapping.json +48 -0
- package/json-schema/system/EnterpriseAuthConfig.json +172 -0
- package/json-schema/system/Event.json +52 -0
- package/json-schema/system/EventHandler.json +29 -0
- package/json-schema/system/EventMetadata.json +33 -0
- package/json-schema/system/EventPersistence.json +25 -0
- package/json-schema/system/EventRoute.json +27 -0
- package/json-schema/system/IntervalSchedule.json +25 -0
- package/json-schema/system/Invitation.json +69 -0
- package/json-schema/system/InvitationStatus.json +15 -0
- package/json-schema/system/Job.json +127 -0
- package/json-schema/system/JobExecution.json +49 -0
- package/json-schema/system/JobExecutionStatus.json +15 -0
- package/json-schema/{LDAPConfig.json → system/LDAPConfig.json} +22 -5
- package/json-schema/system/LevelIsolationStrategySchema.json +93 -0
- package/json-schema/system/Member.json +46 -0
- package/json-schema/{OIDCConfig.json → system/OIDCConfig.json} +18 -3
- package/json-schema/system/OnceSchedule.json +25 -0
- package/json-schema/system/Organization.json +52 -0
- package/json-schema/system/Presence.json +40 -0
- package/json-schema/system/PresenceStatus.json +14 -0
- package/json-schema/system/RealtimeAction.json +14 -0
- package/json-schema/system/RealtimeEvent.json +51 -0
- package/json-schema/system/RealtimeEventType.json +15 -0
- package/json-schema/system/RetryPolicy.json +30 -0
- package/json-schema/system/RowLevelIsolationStrategy.json +74 -0
- package/json-schema/{SAMLConfig.json → system/SAMLConfig.json} +17 -3
- package/json-schema/system/Schedule.json +71 -0
- package/json-schema/system/Session.json +63 -0
- package/json-schema/{StandardAuthProvider.json → system/StandardAuthProvider.json} +235 -0
- package/json-schema/system/Subscription.json +65 -0
- package/json-schema/system/SubscriptionEvent.json +32 -0
- package/json-schema/system/SuspiciousActivityRule.json +175 -0
- package/json-schema/system/Tenant.json +61 -0
- package/json-schema/system/TenantIsolationConfig.json +298 -0
- package/json-schema/system/TenantIsolationLevel.json +14 -0
- package/json-schema/system/TenantQuota.json +27 -0
- package/json-schema/system/TenantSecurityPolicy.json +115 -0
- package/json-schema/system/TransportProtocol.json +14 -0
- package/json-schema/system/User.json +51 -0
- package/json-schema/system/VerificationToken.json +36 -0
- package/json-schema/{Action.json → ui/Action.json} +4 -1
- package/json-schema/{ActionParam.json → ui/ActionParam.json} +4 -1
- package/json-schema/{FieldWidgetProps.json → ui/FieldWidgetProps.json} +50 -1
- package/package.json +38 -12
- package/json-schema/AuthProtocol.json +0 -17
- package/json-schema/AuthProvider.json +0 -171
- package/json-schema/AuthenticationConfig.json +0 -601
- package/json-schema/AuthenticationProvider.json +0 -617
- package/json-schema/MenuItem.json +0 -28
- package/json-schema/WorkflowAction.json +0 -84
- package/json-schema/WorkflowRule.json +0 -128
- /package/json-schema/{AIKnowledge.json → ai/AIKnowledge.json} +0 -0
- /package/json-schema/{AIModelConfig.json → ai/AIModelConfig.json} +0 -0
- /package/json-schema/{AITool.json → ai/AITool.json} +0 -0
- /package/json-schema/{Agent.json → ai/Agent.json} +0 -0
- /package/json-schema/{ApiError.json → api/ApiError.json} +0 -0
- /package/json-schema/{BaseResponse.json → api/BaseResponse.json} +0 -0
- /package/json-schema/{BulkRequest.json → api/BulkRequest.json} +0 -0
- /package/json-schema/{BulkResponse.json → api/BulkResponse.json} +0 -0
- /package/json-schema/{CreateRequest.json → api/CreateRequest.json} +0 -0
- /package/json-schema/{DeleteResponse.json → api/DeleteResponse.json} +0 -0
- /package/json-schema/{ExportRequest.json → api/ExportRequest.json} +0 -0
- /package/json-schema/{ListRecordResponse.json → api/ListRecordResponse.json} +0 -0
- /package/json-schema/{ModificationResult.json → api/ModificationResult.json} +0 -0
- /package/json-schema/{RecordData.json → api/RecordData.json} +0 -0
- /package/json-schema/{SingleRecordResponse.json → api/SingleRecordResponse.json} +0 -0
- /package/json-schema/{UpdateRequest.json → api/UpdateRequest.json} +0 -0
- /package/json-schema/{Address.json → data/Address.json} +0 -0
- /package/json-schema/{AggregationFunction.json → data/AggregationFunction.json} +0 -0
- /package/json-schema/{AggregationNode.json → data/AggregationNode.json} +0 -0
- /package/json-schema/{AsyncValidation.json → data/AsyncValidation.json} +0 -0
- /package/json-schema/{ComparisonOperator.json → data/ComparisonOperator.json} +0 -0
- /package/json-schema/{ConditionalValidation.json → data/ConditionalValidation.json} +0 -0
- /package/json-schema/{CrossFieldValidation.json → data/CrossFieldValidation.json} +0 -0
- /package/json-schema/{CustomValidator.json → data/CustomValidator.json} +0 -0
- /package/json-schema/{Dataset.json → data/Dataset.json} +0 -0
- /package/json-schema/{DatasetMode.json → data/DatasetMode.json} +0 -0
- /package/json-schema/{EmailAlertAction.json → data/EmailAlertAction.json} +0 -0
- /package/json-schema/{EqualityOperator.json → data/EqualityOperator.json} +0 -0
- /package/json-schema/{FieldMapping.json → data/FieldMapping.json} +0 -0
- /package/json-schema/{FieldNode.json → data/FieldNode.json} +0 -0
- /package/json-schema/{FieldOperators.json → data/FieldOperators.json} +0 -0
- /package/json-schema/{FieldPermission.json → data/FieldPermission.json} +0 -0
- /package/json-schema/{FieldUpdateAction.json → data/FieldUpdateAction.json} +0 -0
- /package/json-schema/{FilterCondition.json → data/FilterCondition.json} +0 -0
- /package/json-schema/{FilterNode.json → data/FilterNode.json} +0 -0
- /package/json-schema/{FilterOperator.json → data/FilterOperator.json} +0 -0
- /package/json-schema/{Flow.json → data/Flow.json} +0 -0
- /package/json-schema/{FlowEdge.json → data/FlowEdge.json} +0 -0
- /package/json-schema/{FlowNode.json → data/FlowNode.json} +0 -0
- /package/json-schema/{FlowNodeAction.json → data/FlowNodeAction.json} +0 -0
- /package/json-schema/{FlowVariable.json → data/FlowVariable.json} +0 -0
- /package/json-schema/{FormatValidation.json → data/FormatValidation.json} +0 -0
- /package/json-schema/{Index.json → data/Index.json} +0 -0
- /package/json-schema/{JoinNode.json → data/JoinNode.json} +0 -0
- /package/json-schema/{JoinType.json → data/JoinType.json} +0 -0
- /package/json-schema/{LocationCoordinates.json → data/LocationCoordinates.json} +0 -0
- /package/json-schema/{LogicOperator.json → data/LogicOperator.json} +0 -0
- /package/json-schema/{Mapping.json → data/Mapping.json} +0 -0
- /package/json-schema/{NormalizedFilter.json → data/NormalizedFilter.json} +0 -0
- /package/json-schema/{OWDModel.json → data/OWDModel.json} +0 -0
- /package/json-schema/{ObjectCapabilities.json → data/ObjectCapabilities.json} +0 -0
- /package/json-schema/{ObjectPermission.json → data/ObjectPermission.json} +0 -0
- /package/json-schema/{PermissionSet.json → data/PermissionSet.json} +0 -0
- /package/json-schema/{Query.json → data/Query.json} +0 -0
- /package/json-schema/{QueryFilter.json → data/QueryFilter.json} +0 -0
- /package/json-schema/{RangeOperator.json → data/RangeOperator.json} +0 -0
- /package/json-schema/{ScriptValidation.json → data/ScriptValidation.json} +0 -0
- /package/json-schema/{SelectOption.json → data/SelectOption.json} +0 -0
- /package/json-schema/{SetOperator.json → data/SetOperator.json} +0 -0
- /package/json-schema/{SharingLevel.json → data/SharingLevel.json} +0 -0
- /package/json-schema/{SharingRule.json → data/SharingRule.json} +0 -0
- /package/json-schema/{SharingRuleType.json → data/SharingRuleType.json} +0 -0
- /package/json-schema/{SortNode.json → data/SortNode.json} +0 -0
- /package/json-schema/{SpecialOperator.json → data/SpecialOperator.json} +0 -0
- /package/json-schema/{StateMachineValidation.json → data/StateMachineValidation.json} +0 -0
- /package/json-schema/{StringOperator.json → data/StringOperator.json} +0 -0
- /package/json-schema/{TransformType.json → data/TransformType.json} +0 -0
- /package/json-schema/{Trigger.json → data/Trigger.json} +0 -0
- /package/json-schema/{TriggerAction.json → data/TriggerAction.json} +0 -0
- /package/json-schema/{TriggerContext.json → data/TriggerContext.json} +0 -0
- /package/json-schema/{TriggerTiming.json → data/TriggerTiming.json} +0 -0
- /package/json-schema/{UniquenessValidation.json → data/UniquenessValidation.json} +0 -0
- /package/json-schema/{ValidationRule.json → data/ValidationRule.json} +0 -0
- /package/json-schema/{WindowFunction.json → data/WindowFunction.json} +0 -0
- /package/json-schema/{WindowFunctionNode.json → data/WindowFunctionNode.json} +0 -0
- /package/json-schema/{WindowSpec.json → data/WindowSpec.json} +0 -0
- /package/json-schema/{WorkflowTriggerType.json → data/WorkflowTriggerType.json} +0 -0
- /package/json-schema/{AccountLinkingConfig.json → system/AccountLinkingConfig.json} +0 -0
- /package/json-schema/{ApiCapabilities.json → system/ApiCapabilities.json} +0 -0
- /package/json-schema/{ApiEndpoint.json → system/ApiEndpoint.json} +0 -0
- /package/json-schema/{ApiMapping.json → system/ApiMapping.json} +0 -0
- /package/json-schema/{ApiRoutes.json → system/ApiRoutes.json} +0 -0
- /package/json-schema/{AuditPolicy.json → system/AuditPolicy.json} +0 -0
- /package/json-schema/{AuthPluginConfig.json → system/AuthPluginConfig.json} +0 -0
- /package/json-schema/{AuthStrategy.json → system/AuthStrategy.json} +0 -0
- /package/json-schema/{CSRFConfig.json → system/CSRFConfig.json} +0 -0
- /package/json-schema/{DatabaseAdapter.json → system/DatabaseAdapter.json} +0 -0
- /package/json-schema/{Datasource.json → system/Datasource.json} +0 -0
- /package/json-schema/{DatasourceCapabilities.json → system/DatasourceCapabilities.json} +0 -0
- /package/json-schema/{Discovery.json → system/Discovery.json} +0 -0
- /package/json-schema/{DriverCapabilities.json → system/DriverCapabilities.json} +0 -0
- /package/json-schema/{DriverDefinition.json → system/DriverDefinition.json} +0 -0
- /package/json-schema/{DriverInterface.json → system/DriverInterface.json} +0 -0
- /package/json-schema/{DriverOptions.json → system/DriverOptions.json} +0 -0
- /package/json-schema/{DriverType.json → system/DriverType.json} +0 -0
- /package/json-schema/{EmailPasswordConfig.json → system/EmailPasswordConfig.json} +0 -0
- /package/json-schema/{Feature.json → system/Feature.json} +0 -0
- /package/json-schema/{HttpMethod.json → system/HttpMethod.json} +0 -0
- /package/json-schema/{I18nContext.json → system/I18nContext.json} +0 -0
- /package/json-schema/{License.json → system/License.json} +0 -0
- /package/json-schema/{Locale.json → system/Locale.json} +0 -0
- /package/json-schema/{Logger.json → system/Logger.json} +0 -0
- /package/json-schema/{MagicLinkConfig.json → system/MagicLinkConfig.json} +0 -0
- /package/json-schema/{Manifest.json → system/Manifest.json} +0 -0
- /package/json-schema/{MetricType.json → system/MetricType.json} +0 -0
- /package/json-schema/{NetworkPolicy.json → system/NetworkPolicy.json} +0 -0
- /package/json-schema/{OAuthProvider.json → system/OAuthProvider.json} +0 -0
- /package/json-schema/{ObjectQLClient.json → system/ObjectQLClient.json} +0 -0
- /package/json-schema/{PasskeyConfig.json → system/PasskeyConfig.json} +0 -0
- /package/json-schema/{PasswordPolicy.json → system/PasswordPolicy.json} +0 -0
- /package/json-schema/{Plan.json → system/Plan.json} +0 -0
- /package/json-schema/{Plugin.json → system/Plugin.json} +0 -0
- /package/json-schema/{PluginContext.json → system/PluginContext.json} +0 -0
- /package/json-schema/{PluginLifecycle.json → system/PluginLifecycle.json} +0 -0
- /package/json-schema/{Policy.json → system/Policy.json} +0 -0
- /package/json-schema/{RateLimit.json → system/RateLimit.json} +0 -0
- /package/json-schema/{RateLimitConfig.json → system/RateLimitConfig.json} +0 -0
- /package/json-schema/{Role.json → system/Role.json} +0 -0
- /package/json-schema/{Router.json → system/Router.json} +0 -0
- /package/json-schema/{Scheduler.json → system/Scheduler.json} +0 -0
- /package/json-schema/{ScopedStorage.json → system/ScopedStorage.json} +0 -0
- /package/json-schema/{SessionConfig.json → system/SessionConfig.json} +0 -0
- /package/json-schema/{SessionPolicy.json → system/SessionPolicy.json} +0 -0
- /package/json-schema/{SystemAPI.json → system/SystemAPI.json} +0 -0
- /package/json-schema/{Territory.json → system/Territory.json} +0 -0
- /package/json-schema/{TerritoryModel.json → system/TerritoryModel.json} +0 -0
- /package/json-schema/{TerritoryType.json → system/TerritoryType.json} +0 -0
- /package/json-schema/{TranslationBundle.json → system/TranslationBundle.json} +0 -0
- /package/json-schema/{TranslationData.json → system/TranslationData.json} +0 -0
- /package/json-schema/{TwoFactorConfig.json → system/TwoFactorConfig.json} +0 -0
- /package/json-schema/{UserFieldMapping.json → system/UserFieldMapping.json} +0 -0
- /package/json-schema/{Webhook.json → system/Webhook.json} +0 -0
- /package/json-schema/{WebhookReceiver.json → system/WebhookReceiver.json} +0 -0
- /package/json-schema/{WebhookTriggerType.json → system/WebhookTriggerType.json} +0 -0
- /package/json-schema/{Animation.json → ui/Animation.json} +0 -0
- /package/json-schema/{App.json → ui/App.json} +0 -0
- /package/json-schema/{AppBranding.json → ui/AppBranding.json} +0 -0
- /package/json-schema/{BorderRadius.json → ui/BorderRadius.json} +0 -0
- /package/json-schema/{Breakpoints.json → ui/Breakpoints.json} +0 -0
- /package/json-schema/{CalendarConfig.json → ui/CalendarConfig.json} +0 -0
- /package/json-schema/{ChartType.json → ui/ChartType.json} +0 -0
- /package/json-schema/{ColorPalette.json → ui/ColorPalette.json} +0 -0
- /package/json-schema/{Dashboard.json → ui/Dashboard.json} +0 -0
- /package/json-schema/{DashboardNavItem.json → ui/DashboardNavItem.json} +0 -0
- /package/json-schema/{DashboardWidget.json → ui/DashboardWidget.json} +0 -0
- /package/json-schema/{FormSection.json → ui/FormSection.json} +0 -0
- /package/json-schema/{FormView.json → ui/FormView.json} +0 -0
- /package/json-schema/{GanttConfig.json → ui/GanttConfig.json} +0 -0
- /package/json-schema/{GroupNavItem.json → ui/GroupNavItem.json} +0 -0
- /package/json-schema/{KanbanConfig.json → ui/KanbanConfig.json} +0 -0
- /package/json-schema/{ListView.json → ui/ListView.json} +0 -0
- /package/json-schema/{NavigationItem.json → ui/NavigationItem.json} +0 -0
- /package/json-schema/{ObjectNavItem.json → ui/ObjectNavItem.json} +0 -0
- /package/json-schema/{Page.json → ui/Page.json} +0 -0
- /package/json-schema/{PageComponent.json → ui/PageComponent.json} +0 -0
- /package/json-schema/{PageNavItem.json → ui/PageNavItem.json} +0 -0
- /package/json-schema/{PageRegion.json → ui/PageRegion.json} +0 -0
- /package/json-schema/{Report.json → ui/Report.json} +0 -0
- /package/json-schema/{ReportChart.json → ui/ReportChart.json} +0 -0
- /package/json-schema/{ReportColumn.json → ui/ReportColumn.json} +0 -0
- /package/json-schema/{ReportGrouping.json → ui/ReportGrouping.json} +0 -0
- /package/json-schema/{ReportType.json → ui/ReportType.json} +0 -0
- /package/json-schema/{Shadow.json → ui/Shadow.json} +0 -0
- /package/json-schema/{Spacing.json → ui/Spacing.json} +0 -0
- /package/json-schema/{Theme.json → ui/Theme.json} +0 -0
- /package/json-schema/{ThemeMode.json → ui/ThemeMode.json} +0 -0
- /package/json-schema/{Typography.json → ui/Typography.json} +0 -0
- /package/json-schema/{UrlNavItem.json → ui/UrlNavItem.json} +0 -0
- /package/json-schema/{View.json → ui/View.json} +0 -0
- /package/json-schema/{ZIndex.json → ui/ZIndex.json} +0 -0
|
@@ -0,0 +1,1034 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* RAG (Retrieval-Augmented Generation) Pipeline Protocol
|
|
4
|
+
*
|
|
5
|
+
* Defines schemas for building context-aware AI assistants using RAG techniques.
|
|
6
|
+
* Enables vector search, document chunking, embeddings, and retrieval configuration.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Vector Store Provider
|
|
10
|
+
*/
|
|
11
|
+
export declare const VectorStoreProviderSchema: z.ZodEnum<["pinecone", "weaviate", "qdrant", "milvus", "chroma", "pgvector", "redis", "opensearch", "elasticsearch", "custom"]>;
|
|
12
|
+
/**
|
|
13
|
+
* Embedding Model
|
|
14
|
+
*/
|
|
15
|
+
export declare const EmbeddingModelSchema: z.ZodObject<{
|
|
16
|
+
provider: z.ZodEnum<["openai", "cohere", "huggingface", "azure_openai", "local", "custom"]>;
|
|
17
|
+
model: z.ZodString;
|
|
18
|
+
dimensions: z.ZodNumber;
|
|
19
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
batchSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
21
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
22
|
+
apiKey: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
provider: "custom" | "openai" | "azure_openai" | "local" | "cohere" | "huggingface";
|
|
25
|
+
batchSize: number;
|
|
26
|
+
model: string;
|
|
27
|
+
dimensions: number;
|
|
28
|
+
endpoint?: string | undefined;
|
|
29
|
+
apiKey?: string | undefined;
|
|
30
|
+
maxTokens?: number | undefined;
|
|
31
|
+
}, {
|
|
32
|
+
provider: "custom" | "openai" | "azure_openai" | "local" | "cohere" | "huggingface";
|
|
33
|
+
model: string;
|
|
34
|
+
dimensions: number;
|
|
35
|
+
batchSize?: number | undefined;
|
|
36
|
+
endpoint?: string | undefined;
|
|
37
|
+
apiKey?: string | undefined;
|
|
38
|
+
maxTokens?: number | undefined;
|
|
39
|
+
}>;
|
|
40
|
+
/**
|
|
41
|
+
* Text Chunking Strategy
|
|
42
|
+
*/
|
|
43
|
+
export declare const ChunkingStrategySchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
44
|
+
type: z.ZodLiteral<"fixed">;
|
|
45
|
+
chunkSize: z.ZodNumber;
|
|
46
|
+
chunkOverlap: z.ZodDefault<z.ZodNumber>;
|
|
47
|
+
unit: z.ZodDefault<z.ZodEnum<["tokens", "characters"]>>;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
type: "fixed";
|
|
50
|
+
unit: "tokens" | "characters";
|
|
51
|
+
chunkSize: number;
|
|
52
|
+
chunkOverlap: number;
|
|
53
|
+
}, {
|
|
54
|
+
type: "fixed";
|
|
55
|
+
chunkSize: number;
|
|
56
|
+
unit?: "tokens" | "characters" | undefined;
|
|
57
|
+
chunkOverlap?: number | undefined;
|
|
58
|
+
}>, z.ZodObject<{
|
|
59
|
+
type: z.ZodLiteral<"semantic">;
|
|
60
|
+
model: z.ZodOptional<z.ZodString>;
|
|
61
|
+
minChunkSize: z.ZodDefault<z.ZodNumber>;
|
|
62
|
+
maxChunkSize: z.ZodDefault<z.ZodNumber>;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
type: "semantic";
|
|
65
|
+
minChunkSize: number;
|
|
66
|
+
maxChunkSize: number;
|
|
67
|
+
model?: string | undefined;
|
|
68
|
+
}, {
|
|
69
|
+
type: "semantic";
|
|
70
|
+
model?: string | undefined;
|
|
71
|
+
minChunkSize?: number | undefined;
|
|
72
|
+
maxChunkSize?: number | undefined;
|
|
73
|
+
}>, z.ZodObject<{
|
|
74
|
+
type: z.ZodLiteral<"recursive">;
|
|
75
|
+
separators: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
76
|
+
chunkSize: z.ZodNumber;
|
|
77
|
+
chunkOverlap: z.ZodDefault<z.ZodNumber>;
|
|
78
|
+
}, "strip", z.ZodTypeAny, {
|
|
79
|
+
type: "recursive";
|
|
80
|
+
chunkSize: number;
|
|
81
|
+
chunkOverlap: number;
|
|
82
|
+
separators: string[];
|
|
83
|
+
}, {
|
|
84
|
+
type: "recursive";
|
|
85
|
+
chunkSize: number;
|
|
86
|
+
chunkOverlap?: number | undefined;
|
|
87
|
+
separators?: string[] | undefined;
|
|
88
|
+
}>, z.ZodObject<{
|
|
89
|
+
type: z.ZodLiteral<"markdown">;
|
|
90
|
+
maxChunkSize: z.ZodDefault<z.ZodNumber>;
|
|
91
|
+
respectHeaders: z.ZodDefault<z.ZodBoolean>;
|
|
92
|
+
respectCodeBlocks: z.ZodDefault<z.ZodBoolean>;
|
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
|
94
|
+
type: "markdown";
|
|
95
|
+
maxChunkSize: number;
|
|
96
|
+
respectHeaders: boolean;
|
|
97
|
+
respectCodeBlocks: boolean;
|
|
98
|
+
}, {
|
|
99
|
+
type: "markdown";
|
|
100
|
+
maxChunkSize?: number | undefined;
|
|
101
|
+
respectHeaders?: boolean | undefined;
|
|
102
|
+
respectCodeBlocks?: boolean | undefined;
|
|
103
|
+
}>]>;
|
|
104
|
+
/**
|
|
105
|
+
* Document Metadata Schema
|
|
106
|
+
*/
|
|
107
|
+
export declare const DocumentMetadataSchema: z.ZodObject<{
|
|
108
|
+
source: z.ZodString;
|
|
109
|
+
sourceType: z.ZodOptional<z.ZodEnum<["file", "url", "api", "database", "custom"]>>;
|
|
110
|
+
title: z.ZodOptional<z.ZodString>;
|
|
111
|
+
author: z.ZodOptional<z.ZodString>;
|
|
112
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
113
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
114
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
115
|
+
category: z.ZodOptional<z.ZodString>;
|
|
116
|
+
language: z.ZodOptional<z.ZodString>;
|
|
117
|
+
custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
118
|
+
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
source: string;
|
|
120
|
+
custom?: Record<string, any> | undefined;
|
|
121
|
+
language?: string | undefined;
|
|
122
|
+
title?: string | undefined;
|
|
123
|
+
createdAt?: string | undefined;
|
|
124
|
+
updatedAt?: string | undefined;
|
|
125
|
+
tags?: string[] | undefined;
|
|
126
|
+
category?: string | undefined;
|
|
127
|
+
sourceType?: "url" | "file" | "custom" | "api" | "database" | undefined;
|
|
128
|
+
author?: string | undefined;
|
|
129
|
+
}, {
|
|
130
|
+
source: string;
|
|
131
|
+
custom?: Record<string, any> | undefined;
|
|
132
|
+
language?: string | undefined;
|
|
133
|
+
title?: string | undefined;
|
|
134
|
+
createdAt?: string | undefined;
|
|
135
|
+
updatedAt?: string | undefined;
|
|
136
|
+
tags?: string[] | undefined;
|
|
137
|
+
category?: string | undefined;
|
|
138
|
+
sourceType?: "url" | "file" | "custom" | "api" | "database" | undefined;
|
|
139
|
+
author?: string | undefined;
|
|
140
|
+
}>;
|
|
141
|
+
/**
|
|
142
|
+
* Document Chunk
|
|
143
|
+
*/
|
|
144
|
+
export declare const DocumentChunkSchema: z.ZodObject<{
|
|
145
|
+
id: z.ZodString;
|
|
146
|
+
content: z.ZodString;
|
|
147
|
+
embedding: z.ZodOptional<z.ZodArray<z.ZodNumber, "many">>;
|
|
148
|
+
metadata: z.ZodObject<{
|
|
149
|
+
source: z.ZodString;
|
|
150
|
+
sourceType: z.ZodOptional<z.ZodEnum<["file", "url", "api", "database", "custom"]>>;
|
|
151
|
+
title: z.ZodOptional<z.ZodString>;
|
|
152
|
+
author: z.ZodOptional<z.ZodString>;
|
|
153
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
154
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
155
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
156
|
+
category: z.ZodOptional<z.ZodString>;
|
|
157
|
+
language: z.ZodOptional<z.ZodString>;
|
|
158
|
+
custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
159
|
+
}, "strip", z.ZodTypeAny, {
|
|
160
|
+
source: string;
|
|
161
|
+
custom?: Record<string, any> | undefined;
|
|
162
|
+
language?: string | undefined;
|
|
163
|
+
title?: string | undefined;
|
|
164
|
+
createdAt?: string | undefined;
|
|
165
|
+
updatedAt?: string | undefined;
|
|
166
|
+
tags?: string[] | undefined;
|
|
167
|
+
category?: string | undefined;
|
|
168
|
+
sourceType?: "url" | "file" | "custom" | "api" | "database" | undefined;
|
|
169
|
+
author?: string | undefined;
|
|
170
|
+
}, {
|
|
171
|
+
source: string;
|
|
172
|
+
custom?: Record<string, any> | undefined;
|
|
173
|
+
language?: string | undefined;
|
|
174
|
+
title?: string | undefined;
|
|
175
|
+
createdAt?: string | undefined;
|
|
176
|
+
updatedAt?: string | undefined;
|
|
177
|
+
tags?: string[] | undefined;
|
|
178
|
+
category?: string | undefined;
|
|
179
|
+
sourceType?: "url" | "file" | "custom" | "api" | "database" | undefined;
|
|
180
|
+
author?: string | undefined;
|
|
181
|
+
}>;
|
|
182
|
+
chunkIndex: z.ZodNumber;
|
|
183
|
+
tokens: z.ZodOptional<z.ZodNumber>;
|
|
184
|
+
}, "strip", z.ZodTypeAny, {
|
|
185
|
+
id: string;
|
|
186
|
+
metadata: {
|
|
187
|
+
source: string;
|
|
188
|
+
custom?: Record<string, any> | undefined;
|
|
189
|
+
language?: string | undefined;
|
|
190
|
+
title?: string | undefined;
|
|
191
|
+
createdAt?: string | undefined;
|
|
192
|
+
updatedAt?: string | undefined;
|
|
193
|
+
tags?: string[] | undefined;
|
|
194
|
+
category?: string | undefined;
|
|
195
|
+
sourceType?: "url" | "file" | "custom" | "api" | "database" | undefined;
|
|
196
|
+
author?: string | undefined;
|
|
197
|
+
};
|
|
198
|
+
content: string;
|
|
199
|
+
chunkIndex: number;
|
|
200
|
+
tokens?: number | undefined;
|
|
201
|
+
embedding?: number[] | undefined;
|
|
202
|
+
}, {
|
|
203
|
+
id: string;
|
|
204
|
+
metadata: {
|
|
205
|
+
source: string;
|
|
206
|
+
custom?: Record<string, any> | undefined;
|
|
207
|
+
language?: string | undefined;
|
|
208
|
+
title?: string | undefined;
|
|
209
|
+
createdAt?: string | undefined;
|
|
210
|
+
updatedAt?: string | undefined;
|
|
211
|
+
tags?: string[] | undefined;
|
|
212
|
+
category?: string | undefined;
|
|
213
|
+
sourceType?: "url" | "file" | "custom" | "api" | "database" | undefined;
|
|
214
|
+
author?: string | undefined;
|
|
215
|
+
};
|
|
216
|
+
content: string;
|
|
217
|
+
chunkIndex: number;
|
|
218
|
+
tokens?: number | undefined;
|
|
219
|
+
embedding?: number[] | undefined;
|
|
220
|
+
}>;
|
|
221
|
+
/**
|
|
222
|
+
* Retrieval Strategy
|
|
223
|
+
*/
|
|
224
|
+
export declare const RetrievalStrategySchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
225
|
+
type: z.ZodLiteral<"similarity">;
|
|
226
|
+
topK: z.ZodDefault<z.ZodNumber>;
|
|
227
|
+
scoreThreshold: z.ZodOptional<z.ZodNumber>;
|
|
228
|
+
}, "strip", z.ZodTypeAny, {
|
|
229
|
+
type: "similarity";
|
|
230
|
+
topK: number;
|
|
231
|
+
scoreThreshold?: number | undefined;
|
|
232
|
+
}, {
|
|
233
|
+
type: "similarity";
|
|
234
|
+
topK?: number | undefined;
|
|
235
|
+
scoreThreshold?: number | undefined;
|
|
236
|
+
}>, z.ZodObject<{
|
|
237
|
+
type: z.ZodLiteral<"mmr">;
|
|
238
|
+
topK: z.ZodDefault<z.ZodNumber>;
|
|
239
|
+
fetchK: z.ZodDefault<z.ZodNumber>;
|
|
240
|
+
lambda: z.ZodDefault<z.ZodNumber>;
|
|
241
|
+
}, "strip", z.ZodTypeAny, {
|
|
242
|
+
type: "mmr";
|
|
243
|
+
topK: number;
|
|
244
|
+
fetchK: number;
|
|
245
|
+
lambda: number;
|
|
246
|
+
}, {
|
|
247
|
+
type: "mmr";
|
|
248
|
+
topK?: number | undefined;
|
|
249
|
+
fetchK?: number | undefined;
|
|
250
|
+
lambda?: number | undefined;
|
|
251
|
+
}>, z.ZodObject<{
|
|
252
|
+
type: z.ZodLiteral<"hybrid">;
|
|
253
|
+
topK: z.ZodDefault<z.ZodNumber>;
|
|
254
|
+
vectorWeight: z.ZodDefault<z.ZodNumber>;
|
|
255
|
+
keywordWeight: z.ZodDefault<z.ZodNumber>;
|
|
256
|
+
}, "strip", z.ZodTypeAny, {
|
|
257
|
+
type: "hybrid";
|
|
258
|
+
topK: number;
|
|
259
|
+
vectorWeight: number;
|
|
260
|
+
keywordWeight: number;
|
|
261
|
+
}, {
|
|
262
|
+
type: "hybrid";
|
|
263
|
+
topK?: number | undefined;
|
|
264
|
+
vectorWeight?: number | undefined;
|
|
265
|
+
keywordWeight?: number | undefined;
|
|
266
|
+
}>, z.ZodObject<{
|
|
267
|
+
type: z.ZodLiteral<"parent_document">;
|
|
268
|
+
topK: z.ZodDefault<z.ZodNumber>;
|
|
269
|
+
retrieveParent: z.ZodDefault<z.ZodBoolean>;
|
|
270
|
+
}, "strip", z.ZodTypeAny, {
|
|
271
|
+
type: "parent_document";
|
|
272
|
+
topK: number;
|
|
273
|
+
retrieveParent: boolean;
|
|
274
|
+
}, {
|
|
275
|
+
type: "parent_document";
|
|
276
|
+
topK?: number | undefined;
|
|
277
|
+
retrieveParent?: boolean | undefined;
|
|
278
|
+
}>]>;
|
|
279
|
+
/**
|
|
280
|
+
* Reranking Configuration
|
|
281
|
+
*/
|
|
282
|
+
export declare const RerankingConfigSchema: z.ZodObject<{
|
|
283
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
284
|
+
model: z.ZodOptional<z.ZodString>;
|
|
285
|
+
provider: z.ZodOptional<z.ZodEnum<["cohere", "huggingface", "custom"]>>;
|
|
286
|
+
topK: z.ZodDefault<z.ZodNumber>;
|
|
287
|
+
}, "strip", z.ZodTypeAny, {
|
|
288
|
+
enabled: boolean;
|
|
289
|
+
topK: number;
|
|
290
|
+
provider?: "custom" | "cohere" | "huggingface" | undefined;
|
|
291
|
+
model?: string | undefined;
|
|
292
|
+
}, {
|
|
293
|
+
provider?: "custom" | "cohere" | "huggingface" | undefined;
|
|
294
|
+
enabled?: boolean | undefined;
|
|
295
|
+
model?: string | undefined;
|
|
296
|
+
topK?: number | undefined;
|
|
297
|
+
}>;
|
|
298
|
+
/**
|
|
299
|
+
* Vector Store Configuration
|
|
300
|
+
*/
|
|
301
|
+
export declare const VectorStoreConfigSchema: z.ZodObject<{
|
|
302
|
+
provider: z.ZodEnum<["pinecone", "weaviate", "qdrant", "milvus", "chroma", "pgvector", "redis", "opensearch", "elasticsearch", "custom"]>;
|
|
303
|
+
indexName: z.ZodString;
|
|
304
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
305
|
+
/** Connection */
|
|
306
|
+
host: z.ZodOptional<z.ZodString>;
|
|
307
|
+
port: z.ZodOptional<z.ZodNumber>;
|
|
308
|
+
apiKey: z.ZodOptional<z.ZodString>;
|
|
309
|
+
/** Configuration */
|
|
310
|
+
dimensions: z.ZodNumber;
|
|
311
|
+
metric: z.ZodDefault<z.ZodOptional<z.ZodEnum<["cosine", "euclidean", "dotproduct"]>>>;
|
|
312
|
+
/** Performance */
|
|
313
|
+
batchSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
314
|
+
connectionPoolSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
315
|
+
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
316
|
+
}, "strip", z.ZodTypeAny, {
|
|
317
|
+
timeout: number;
|
|
318
|
+
provider: "custom" | "redis" | "elasticsearch" | "pinecone" | "weaviate" | "qdrant" | "milvus" | "chroma" | "pgvector" | "opensearch";
|
|
319
|
+
batchSize: number;
|
|
320
|
+
metric: "cosine" | "euclidean" | "dotproduct";
|
|
321
|
+
dimensions: number;
|
|
322
|
+
indexName: string;
|
|
323
|
+
connectionPoolSize: number;
|
|
324
|
+
apiKey?: string | undefined;
|
|
325
|
+
namespace?: string | undefined;
|
|
326
|
+
host?: string | undefined;
|
|
327
|
+
port?: number | undefined;
|
|
328
|
+
}, {
|
|
329
|
+
provider: "custom" | "redis" | "elasticsearch" | "pinecone" | "weaviate" | "qdrant" | "milvus" | "chroma" | "pgvector" | "opensearch";
|
|
330
|
+
dimensions: number;
|
|
331
|
+
indexName: string;
|
|
332
|
+
timeout?: number | undefined;
|
|
333
|
+
batchSize?: number | undefined;
|
|
334
|
+
metric?: "cosine" | "euclidean" | "dotproduct" | undefined;
|
|
335
|
+
apiKey?: string | undefined;
|
|
336
|
+
namespace?: string | undefined;
|
|
337
|
+
host?: string | undefined;
|
|
338
|
+
port?: number | undefined;
|
|
339
|
+
connectionPoolSize?: number | undefined;
|
|
340
|
+
}>;
|
|
341
|
+
/**
|
|
342
|
+
* Document Loader Configuration
|
|
343
|
+
*/
|
|
344
|
+
export declare const DocumentLoaderConfigSchema: z.ZodObject<{
|
|
345
|
+
type: z.ZodEnum<["file", "directory", "url", "api", "database", "custom"]>;
|
|
346
|
+
/** Source */
|
|
347
|
+
source: z.ZodString;
|
|
348
|
+
/** File Types */
|
|
349
|
+
fileTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
350
|
+
/** Processing */
|
|
351
|
+
recursive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
352
|
+
maxFileSize: z.ZodOptional<z.ZodNumber>;
|
|
353
|
+
excludePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
354
|
+
/** Text Extraction */
|
|
355
|
+
extractImages: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
356
|
+
extractTables: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
357
|
+
/** Custom Loader */
|
|
358
|
+
loaderConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
359
|
+
}, "strip", z.ZodTypeAny, {
|
|
360
|
+
type: "url" | "file" | "custom" | "api" | "database" | "directory";
|
|
361
|
+
source: string;
|
|
362
|
+
recursive: boolean;
|
|
363
|
+
extractImages: boolean;
|
|
364
|
+
extractTables: boolean;
|
|
365
|
+
fileTypes?: string[] | undefined;
|
|
366
|
+
maxFileSize?: number | undefined;
|
|
367
|
+
excludePatterns?: string[] | undefined;
|
|
368
|
+
loaderConfig?: Record<string, any> | undefined;
|
|
369
|
+
}, {
|
|
370
|
+
type: "url" | "file" | "custom" | "api" | "database" | "directory";
|
|
371
|
+
source: string;
|
|
372
|
+
recursive?: boolean | undefined;
|
|
373
|
+
fileTypes?: string[] | undefined;
|
|
374
|
+
maxFileSize?: number | undefined;
|
|
375
|
+
excludePatterns?: string[] | undefined;
|
|
376
|
+
extractImages?: boolean | undefined;
|
|
377
|
+
extractTables?: boolean | undefined;
|
|
378
|
+
loaderConfig?: Record<string, any> | undefined;
|
|
379
|
+
}>;
|
|
380
|
+
/**
|
|
381
|
+
* RAG Pipeline Configuration
|
|
382
|
+
*/
|
|
383
|
+
export declare const RAGPipelineConfigSchema: z.ZodObject<{
|
|
384
|
+
/** Identity */
|
|
385
|
+
name: z.ZodString;
|
|
386
|
+
label: z.ZodString;
|
|
387
|
+
description: z.ZodOptional<z.ZodString>;
|
|
388
|
+
/** Components */
|
|
389
|
+
embedding: z.ZodObject<{
|
|
390
|
+
provider: z.ZodEnum<["openai", "cohere", "huggingface", "azure_openai", "local", "custom"]>;
|
|
391
|
+
model: z.ZodString;
|
|
392
|
+
dimensions: z.ZodNumber;
|
|
393
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
394
|
+
batchSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
395
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
396
|
+
apiKey: z.ZodOptional<z.ZodString>;
|
|
397
|
+
}, "strip", z.ZodTypeAny, {
|
|
398
|
+
provider: "custom" | "openai" | "azure_openai" | "local" | "cohere" | "huggingface";
|
|
399
|
+
batchSize: number;
|
|
400
|
+
model: string;
|
|
401
|
+
dimensions: number;
|
|
402
|
+
endpoint?: string | undefined;
|
|
403
|
+
apiKey?: string | undefined;
|
|
404
|
+
maxTokens?: number | undefined;
|
|
405
|
+
}, {
|
|
406
|
+
provider: "custom" | "openai" | "azure_openai" | "local" | "cohere" | "huggingface";
|
|
407
|
+
model: string;
|
|
408
|
+
dimensions: number;
|
|
409
|
+
batchSize?: number | undefined;
|
|
410
|
+
endpoint?: string | undefined;
|
|
411
|
+
apiKey?: string | undefined;
|
|
412
|
+
maxTokens?: number | undefined;
|
|
413
|
+
}>;
|
|
414
|
+
vectorStore: z.ZodObject<{
|
|
415
|
+
provider: z.ZodEnum<["pinecone", "weaviate", "qdrant", "milvus", "chroma", "pgvector", "redis", "opensearch", "elasticsearch", "custom"]>;
|
|
416
|
+
indexName: z.ZodString;
|
|
417
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
418
|
+
/** Connection */
|
|
419
|
+
host: z.ZodOptional<z.ZodString>;
|
|
420
|
+
port: z.ZodOptional<z.ZodNumber>;
|
|
421
|
+
apiKey: z.ZodOptional<z.ZodString>;
|
|
422
|
+
/** Configuration */
|
|
423
|
+
dimensions: z.ZodNumber;
|
|
424
|
+
metric: z.ZodDefault<z.ZodOptional<z.ZodEnum<["cosine", "euclidean", "dotproduct"]>>>;
|
|
425
|
+
/** Performance */
|
|
426
|
+
batchSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
427
|
+
connectionPoolSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
428
|
+
timeout: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
429
|
+
}, "strip", z.ZodTypeAny, {
|
|
430
|
+
timeout: number;
|
|
431
|
+
provider: "custom" | "redis" | "elasticsearch" | "pinecone" | "weaviate" | "qdrant" | "milvus" | "chroma" | "pgvector" | "opensearch";
|
|
432
|
+
batchSize: number;
|
|
433
|
+
metric: "cosine" | "euclidean" | "dotproduct";
|
|
434
|
+
dimensions: number;
|
|
435
|
+
indexName: string;
|
|
436
|
+
connectionPoolSize: number;
|
|
437
|
+
apiKey?: string | undefined;
|
|
438
|
+
namespace?: string | undefined;
|
|
439
|
+
host?: string | undefined;
|
|
440
|
+
port?: number | undefined;
|
|
441
|
+
}, {
|
|
442
|
+
provider: "custom" | "redis" | "elasticsearch" | "pinecone" | "weaviate" | "qdrant" | "milvus" | "chroma" | "pgvector" | "opensearch";
|
|
443
|
+
dimensions: number;
|
|
444
|
+
indexName: string;
|
|
445
|
+
timeout?: number | undefined;
|
|
446
|
+
batchSize?: number | undefined;
|
|
447
|
+
metric?: "cosine" | "euclidean" | "dotproduct" | undefined;
|
|
448
|
+
apiKey?: string | undefined;
|
|
449
|
+
namespace?: string | undefined;
|
|
450
|
+
host?: string | undefined;
|
|
451
|
+
port?: number | undefined;
|
|
452
|
+
connectionPoolSize?: number | undefined;
|
|
453
|
+
}>;
|
|
454
|
+
chunking: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
455
|
+
type: z.ZodLiteral<"fixed">;
|
|
456
|
+
chunkSize: z.ZodNumber;
|
|
457
|
+
chunkOverlap: z.ZodDefault<z.ZodNumber>;
|
|
458
|
+
unit: z.ZodDefault<z.ZodEnum<["tokens", "characters"]>>;
|
|
459
|
+
}, "strip", z.ZodTypeAny, {
|
|
460
|
+
type: "fixed";
|
|
461
|
+
unit: "tokens" | "characters";
|
|
462
|
+
chunkSize: number;
|
|
463
|
+
chunkOverlap: number;
|
|
464
|
+
}, {
|
|
465
|
+
type: "fixed";
|
|
466
|
+
chunkSize: number;
|
|
467
|
+
unit?: "tokens" | "characters" | undefined;
|
|
468
|
+
chunkOverlap?: number | undefined;
|
|
469
|
+
}>, z.ZodObject<{
|
|
470
|
+
type: z.ZodLiteral<"semantic">;
|
|
471
|
+
model: z.ZodOptional<z.ZodString>;
|
|
472
|
+
minChunkSize: z.ZodDefault<z.ZodNumber>;
|
|
473
|
+
maxChunkSize: z.ZodDefault<z.ZodNumber>;
|
|
474
|
+
}, "strip", z.ZodTypeAny, {
|
|
475
|
+
type: "semantic";
|
|
476
|
+
minChunkSize: number;
|
|
477
|
+
maxChunkSize: number;
|
|
478
|
+
model?: string | undefined;
|
|
479
|
+
}, {
|
|
480
|
+
type: "semantic";
|
|
481
|
+
model?: string | undefined;
|
|
482
|
+
minChunkSize?: number | undefined;
|
|
483
|
+
maxChunkSize?: number | undefined;
|
|
484
|
+
}>, z.ZodObject<{
|
|
485
|
+
type: z.ZodLiteral<"recursive">;
|
|
486
|
+
separators: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
487
|
+
chunkSize: z.ZodNumber;
|
|
488
|
+
chunkOverlap: z.ZodDefault<z.ZodNumber>;
|
|
489
|
+
}, "strip", z.ZodTypeAny, {
|
|
490
|
+
type: "recursive";
|
|
491
|
+
chunkSize: number;
|
|
492
|
+
chunkOverlap: number;
|
|
493
|
+
separators: string[];
|
|
494
|
+
}, {
|
|
495
|
+
type: "recursive";
|
|
496
|
+
chunkSize: number;
|
|
497
|
+
chunkOverlap?: number | undefined;
|
|
498
|
+
separators?: string[] | undefined;
|
|
499
|
+
}>, z.ZodObject<{
|
|
500
|
+
type: z.ZodLiteral<"markdown">;
|
|
501
|
+
maxChunkSize: z.ZodDefault<z.ZodNumber>;
|
|
502
|
+
respectHeaders: z.ZodDefault<z.ZodBoolean>;
|
|
503
|
+
respectCodeBlocks: z.ZodDefault<z.ZodBoolean>;
|
|
504
|
+
}, "strip", z.ZodTypeAny, {
|
|
505
|
+
type: "markdown";
|
|
506
|
+
maxChunkSize: number;
|
|
507
|
+
respectHeaders: boolean;
|
|
508
|
+
respectCodeBlocks: boolean;
|
|
509
|
+
}, {
|
|
510
|
+
type: "markdown";
|
|
511
|
+
maxChunkSize?: number | undefined;
|
|
512
|
+
respectHeaders?: boolean | undefined;
|
|
513
|
+
respectCodeBlocks?: boolean | undefined;
|
|
514
|
+
}>]>;
|
|
515
|
+
retrieval: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
516
|
+
type: z.ZodLiteral<"similarity">;
|
|
517
|
+
topK: z.ZodDefault<z.ZodNumber>;
|
|
518
|
+
scoreThreshold: z.ZodOptional<z.ZodNumber>;
|
|
519
|
+
}, "strip", z.ZodTypeAny, {
|
|
520
|
+
type: "similarity";
|
|
521
|
+
topK: number;
|
|
522
|
+
scoreThreshold?: number | undefined;
|
|
523
|
+
}, {
|
|
524
|
+
type: "similarity";
|
|
525
|
+
topK?: number | undefined;
|
|
526
|
+
scoreThreshold?: number | undefined;
|
|
527
|
+
}>, z.ZodObject<{
|
|
528
|
+
type: z.ZodLiteral<"mmr">;
|
|
529
|
+
topK: z.ZodDefault<z.ZodNumber>;
|
|
530
|
+
fetchK: z.ZodDefault<z.ZodNumber>;
|
|
531
|
+
lambda: z.ZodDefault<z.ZodNumber>;
|
|
532
|
+
}, "strip", z.ZodTypeAny, {
|
|
533
|
+
type: "mmr";
|
|
534
|
+
topK: number;
|
|
535
|
+
fetchK: number;
|
|
536
|
+
lambda: number;
|
|
537
|
+
}, {
|
|
538
|
+
type: "mmr";
|
|
539
|
+
topK?: number | undefined;
|
|
540
|
+
fetchK?: number | undefined;
|
|
541
|
+
lambda?: number | undefined;
|
|
542
|
+
}>, z.ZodObject<{
|
|
543
|
+
type: z.ZodLiteral<"hybrid">;
|
|
544
|
+
topK: z.ZodDefault<z.ZodNumber>;
|
|
545
|
+
vectorWeight: z.ZodDefault<z.ZodNumber>;
|
|
546
|
+
keywordWeight: z.ZodDefault<z.ZodNumber>;
|
|
547
|
+
}, "strip", z.ZodTypeAny, {
|
|
548
|
+
type: "hybrid";
|
|
549
|
+
topK: number;
|
|
550
|
+
vectorWeight: number;
|
|
551
|
+
keywordWeight: number;
|
|
552
|
+
}, {
|
|
553
|
+
type: "hybrid";
|
|
554
|
+
topK?: number | undefined;
|
|
555
|
+
vectorWeight?: number | undefined;
|
|
556
|
+
keywordWeight?: number | undefined;
|
|
557
|
+
}>, z.ZodObject<{
|
|
558
|
+
type: z.ZodLiteral<"parent_document">;
|
|
559
|
+
topK: z.ZodDefault<z.ZodNumber>;
|
|
560
|
+
retrieveParent: z.ZodDefault<z.ZodBoolean>;
|
|
561
|
+
}, "strip", z.ZodTypeAny, {
|
|
562
|
+
type: "parent_document";
|
|
563
|
+
topK: number;
|
|
564
|
+
retrieveParent: boolean;
|
|
565
|
+
}, {
|
|
566
|
+
type: "parent_document";
|
|
567
|
+
topK?: number | undefined;
|
|
568
|
+
retrieveParent?: boolean | undefined;
|
|
569
|
+
}>]>;
|
|
570
|
+
reranking: z.ZodOptional<z.ZodObject<{
|
|
571
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
572
|
+
model: z.ZodOptional<z.ZodString>;
|
|
573
|
+
provider: z.ZodOptional<z.ZodEnum<["cohere", "huggingface", "custom"]>>;
|
|
574
|
+
topK: z.ZodDefault<z.ZodNumber>;
|
|
575
|
+
}, "strip", z.ZodTypeAny, {
|
|
576
|
+
enabled: boolean;
|
|
577
|
+
topK: number;
|
|
578
|
+
provider?: "custom" | "cohere" | "huggingface" | undefined;
|
|
579
|
+
model?: string | undefined;
|
|
580
|
+
}, {
|
|
581
|
+
provider?: "custom" | "cohere" | "huggingface" | undefined;
|
|
582
|
+
enabled?: boolean | undefined;
|
|
583
|
+
model?: string | undefined;
|
|
584
|
+
topK?: number | undefined;
|
|
585
|
+
}>>;
|
|
586
|
+
/** Document Loading */
|
|
587
|
+
loaders: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
588
|
+
type: z.ZodEnum<["file", "directory", "url", "api", "database", "custom"]>;
|
|
589
|
+
/** Source */
|
|
590
|
+
source: z.ZodString;
|
|
591
|
+
/** File Types */
|
|
592
|
+
fileTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
593
|
+
/** Processing */
|
|
594
|
+
recursive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
595
|
+
maxFileSize: z.ZodOptional<z.ZodNumber>;
|
|
596
|
+
excludePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
597
|
+
/** Text Extraction */
|
|
598
|
+
extractImages: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
599
|
+
extractTables: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
600
|
+
/** Custom Loader */
|
|
601
|
+
loaderConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
602
|
+
}, "strip", z.ZodTypeAny, {
|
|
603
|
+
type: "url" | "file" | "custom" | "api" | "database" | "directory";
|
|
604
|
+
source: string;
|
|
605
|
+
recursive: boolean;
|
|
606
|
+
extractImages: boolean;
|
|
607
|
+
extractTables: boolean;
|
|
608
|
+
fileTypes?: string[] | undefined;
|
|
609
|
+
maxFileSize?: number | undefined;
|
|
610
|
+
excludePatterns?: string[] | undefined;
|
|
611
|
+
loaderConfig?: Record<string, any> | undefined;
|
|
612
|
+
}, {
|
|
613
|
+
type: "url" | "file" | "custom" | "api" | "database" | "directory";
|
|
614
|
+
source: string;
|
|
615
|
+
recursive?: boolean | undefined;
|
|
616
|
+
fileTypes?: string[] | undefined;
|
|
617
|
+
maxFileSize?: number | undefined;
|
|
618
|
+
excludePatterns?: string[] | undefined;
|
|
619
|
+
extractImages?: boolean | undefined;
|
|
620
|
+
extractTables?: boolean | undefined;
|
|
621
|
+
loaderConfig?: Record<string, any> | undefined;
|
|
622
|
+
}>, "many">>;
|
|
623
|
+
/** Context Management */
|
|
624
|
+
maxContextTokens: z.ZodDefault<z.ZodNumber>;
|
|
625
|
+
contextWindow: z.ZodOptional<z.ZodNumber>;
|
|
626
|
+
/** Metadata Filtering */
|
|
627
|
+
metadataFilters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodNumber]>, "many">]>>>;
|
|
628
|
+
/** Caching */
|
|
629
|
+
enableCache: z.ZodDefault<z.ZodBoolean>;
|
|
630
|
+
cacheTTL: z.ZodDefault<z.ZodNumber>;
|
|
631
|
+
cacheInvalidationStrategy: z.ZodOptional<z.ZodDefault<z.ZodEnum<["time_based", "manual", "on_update"]>>>;
|
|
632
|
+
}, "strip", z.ZodTypeAny, {
|
|
633
|
+
label: string;
|
|
634
|
+
name: string;
|
|
635
|
+
embedding: {
|
|
636
|
+
provider: "custom" | "openai" | "azure_openai" | "local" | "cohere" | "huggingface";
|
|
637
|
+
batchSize: number;
|
|
638
|
+
model: string;
|
|
639
|
+
dimensions: number;
|
|
640
|
+
endpoint?: string | undefined;
|
|
641
|
+
apiKey?: string | undefined;
|
|
642
|
+
maxTokens?: number | undefined;
|
|
643
|
+
};
|
|
644
|
+
vectorStore: {
|
|
645
|
+
timeout: number;
|
|
646
|
+
provider: "custom" | "redis" | "elasticsearch" | "pinecone" | "weaviate" | "qdrant" | "milvus" | "chroma" | "pgvector" | "opensearch";
|
|
647
|
+
batchSize: number;
|
|
648
|
+
metric: "cosine" | "euclidean" | "dotproduct";
|
|
649
|
+
dimensions: number;
|
|
650
|
+
indexName: string;
|
|
651
|
+
connectionPoolSize: number;
|
|
652
|
+
apiKey?: string | undefined;
|
|
653
|
+
namespace?: string | undefined;
|
|
654
|
+
host?: string | undefined;
|
|
655
|
+
port?: number | undefined;
|
|
656
|
+
};
|
|
657
|
+
chunking: {
|
|
658
|
+
type: "fixed";
|
|
659
|
+
unit: "tokens" | "characters";
|
|
660
|
+
chunkSize: number;
|
|
661
|
+
chunkOverlap: number;
|
|
662
|
+
} | {
|
|
663
|
+
type: "semantic";
|
|
664
|
+
minChunkSize: number;
|
|
665
|
+
maxChunkSize: number;
|
|
666
|
+
model?: string | undefined;
|
|
667
|
+
} | {
|
|
668
|
+
type: "recursive";
|
|
669
|
+
chunkSize: number;
|
|
670
|
+
chunkOverlap: number;
|
|
671
|
+
separators: string[];
|
|
672
|
+
} | {
|
|
673
|
+
type: "markdown";
|
|
674
|
+
maxChunkSize: number;
|
|
675
|
+
respectHeaders: boolean;
|
|
676
|
+
respectCodeBlocks: boolean;
|
|
677
|
+
};
|
|
678
|
+
retrieval: {
|
|
679
|
+
type: "similarity";
|
|
680
|
+
topK: number;
|
|
681
|
+
scoreThreshold?: number | undefined;
|
|
682
|
+
} | {
|
|
683
|
+
type: "mmr";
|
|
684
|
+
topK: number;
|
|
685
|
+
fetchK: number;
|
|
686
|
+
lambda: number;
|
|
687
|
+
} | {
|
|
688
|
+
type: "hybrid";
|
|
689
|
+
topK: number;
|
|
690
|
+
vectorWeight: number;
|
|
691
|
+
keywordWeight: number;
|
|
692
|
+
} | {
|
|
693
|
+
type: "parent_document";
|
|
694
|
+
topK: number;
|
|
695
|
+
retrieveParent: boolean;
|
|
696
|
+
};
|
|
697
|
+
maxContextTokens: number;
|
|
698
|
+
enableCache: boolean;
|
|
699
|
+
cacheTTL: number;
|
|
700
|
+
description?: string | undefined;
|
|
701
|
+
contextWindow?: number | undefined;
|
|
702
|
+
reranking?: {
|
|
703
|
+
enabled: boolean;
|
|
704
|
+
topK: number;
|
|
705
|
+
provider?: "custom" | "cohere" | "huggingface" | undefined;
|
|
706
|
+
model?: string | undefined;
|
|
707
|
+
} | undefined;
|
|
708
|
+
loaders?: {
|
|
709
|
+
type: "url" | "file" | "custom" | "api" | "database" | "directory";
|
|
710
|
+
source: string;
|
|
711
|
+
recursive: boolean;
|
|
712
|
+
extractImages: boolean;
|
|
713
|
+
extractTables: boolean;
|
|
714
|
+
fileTypes?: string[] | undefined;
|
|
715
|
+
maxFileSize?: number | undefined;
|
|
716
|
+
excludePatterns?: string[] | undefined;
|
|
717
|
+
loaderConfig?: Record<string, any> | undefined;
|
|
718
|
+
}[] | undefined;
|
|
719
|
+
metadataFilters?: Record<string, string | number | boolean | (string | number)[]> | undefined;
|
|
720
|
+
cacheInvalidationStrategy?: "manual" | "on_update" | "time_based" | undefined;
|
|
721
|
+
}, {
|
|
722
|
+
label: string;
|
|
723
|
+
name: string;
|
|
724
|
+
embedding: {
|
|
725
|
+
provider: "custom" | "openai" | "azure_openai" | "local" | "cohere" | "huggingface";
|
|
726
|
+
model: string;
|
|
727
|
+
dimensions: number;
|
|
728
|
+
batchSize?: number | undefined;
|
|
729
|
+
endpoint?: string | undefined;
|
|
730
|
+
apiKey?: string | undefined;
|
|
731
|
+
maxTokens?: number | undefined;
|
|
732
|
+
};
|
|
733
|
+
vectorStore: {
|
|
734
|
+
provider: "custom" | "redis" | "elasticsearch" | "pinecone" | "weaviate" | "qdrant" | "milvus" | "chroma" | "pgvector" | "opensearch";
|
|
735
|
+
dimensions: number;
|
|
736
|
+
indexName: string;
|
|
737
|
+
timeout?: number | undefined;
|
|
738
|
+
batchSize?: number | undefined;
|
|
739
|
+
metric?: "cosine" | "euclidean" | "dotproduct" | undefined;
|
|
740
|
+
apiKey?: string | undefined;
|
|
741
|
+
namespace?: string | undefined;
|
|
742
|
+
host?: string | undefined;
|
|
743
|
+
port?: number | undefined;
|
|
744
|
+
connectionPoolSize?: number | undefined;
|
|
745
|
+
};
|
|
746
|
+
chunking: {
|
|
747
|
+
type: "fixed";
|
|
748
|
+
chunkSize: number;
|
|
749
|
+
unit?: "tokens" | "characters" | undefined;
|
|
750
|
+
chunkOverlap?: number | undefined;
|
|
751
|
+
} | {
|
|
752
|
+
type: "semantic";
|
|
753
|
+
model?: string | undefined;
|
|
754
|
+
minChunkSize?: number | undefined;
|
|
755
|
+
maxChunkSize?: number | undefined;
|
|
756
|
+
} | {
|
|
757
|
+
type: "recursive";
|
|
758
|
+
chunkSize: number;
|
|
759
|
+
chunkOverlap?: number | undefined;
|
|
760
|
+
separators?: string[] | undefined;
|
|
761
|
+
} | {
|
|
762
|
+
type: "markdown";
|
|
763
|
+
maxChunkSize?: number | undefined;
|
|
764
|
+
respectHeaders?: boolean | undefined;
|
|
765
|
+
respectCodeBlocks?: boolean | undefined;
|
|
766
|
+
};
|
|
767
|
+
retrieval: {
|
|
768
|
+
type: "similarity";
|
|
769
|
+
topK?: number | undefined;
|
|
770
|
+
scoreThreshold?: number | undefined;
|
|
771
|
+
} | {
|
|
772
|
+
type: "mmr";
|
|
773
|
+
topK?: number | undefined;
|
|
774
|
+
fetchK?: number | undefined;
|
|
775
|
+
lambda?: number | undefined;
|
|
776
|
+
} | {
|
|
777
|
+
type: "hybrid";
|
|
778
|
+
topK?: number | undefined;
|
|
779
|
+
vectorWeight?: number | undefined;
|
|
780
|
+
keywordWeight?: number | undefined;
|
|
781
|
+
} | {
|
|
782
|
+
type: "parent_document";
|
|
783
|
+
topK?: number | undefined;
|
|
784
|
+
retrieveParent?: boolean | undefined;
|
|
785
|
+
};
|
|
786
|
+
description?: string | undefined;
|
|
787
|
+
contextWindow?: number | undefined;
|
|
788
|
+
reranking?: {
|
|
789
|
+
provider?: "custom" | "cohere" | "huggingface" | undefined;
|
|
790
|
+
enabled?: boolean | undefined;
|
|
791
|
+
model?: string | undefined;
|
|
792
|
+
topK?: number | undefined;
|
|
793
|
+
} | undefined;
|
|
794
|
+
loaders?: {
|
|
795
|
+
type: "url" | "file" | "custom" | "api" | "database" | "directory";
|
|
796
|
+
source: string;
|
|
797
|
+
recursive?: boolean | undefined;
|
|
798
|
+
fileTypes?: string[] | undefined;
|
|
799
|
+
maxFileSize?: number | undefined;
|
|
800
|
+
excludePatterns?: string[] | undefined;
|
|
801
|
+
extractImages?: boolean | undefined;
|
|
802
|
+
extractTables?: boolean | undefined;
|
|
803
|
+
loaderConfig?: Record<string, any> | undefined;
|
|
804
|
+
}[] | undefined;
|
|
805
|
+
maxContextTokens?: number | undefined;
|
|
806
|
+
metadataFilters?: Record<string, string | number | boolean | (string | number)[]> | undefined;
|
|
807
|
+
enableCache?: boolean | undefined;
|
|
808
|
+
cacheTTL?: number | undefined;
|
|
809
|
+
cacheInvalidationStrategy?: "manual" | "on_update" | "time_based" | undefined;
|
|
810
|
+
}>;
|
|
811
|
+
/**
|
|
812
|
+
* RAG Query Request
|
|
813
|
+
*/
|
|
814
|
+
export declare const RAGQueryRequestSchema: z.ZodObject<{
|
|
815
|
+
query: z.ZodString;
|
|
816
|
+
pipelineName: z.ZodString;
|
|
817
|
+
/** Override defaults */
|
|
818
|
+
topK: z.ZodOptional<z.ZodNumber>;
|
|
819
|
+
metadataFilters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
820
|
+
/** Context */
|
|
821
|
+
conversationHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
822
|
+
role: z.ZodEnum<["user", "assistant", "system"]>;
|
|
823
|
+
content: z.ZodString;
|
|
824
|
+
}, "strip", z.ZodTypeAny, {
|
|
825
|
+
role: "system" | "user" | "assistant";
|
|
826
|
+
content: string;
|
|
827
|
+
}, {
|
|
828
|
+
role: "system" | "user" | "assistant";
|
|
829
|
+
content: string;
|
|
830
|
+
}>, "many">>;
|
|
831
|
+
/** Options */
|
|
832
|
+
includeMetadata: z.ZodDefault<z.ZodBoolean>;
|
|
833
|
+
includeSources: z.ZodDefault<z.ZodBoolean>;
|
|
834
|
+
}, "strip", z.ZodTypeAny, {
|
|
835
|
+
query: string;
|
|
836
|
+
pipelineName: string;
|
|
837
|
+
includeMetadata: boolean;
|
|
838
|
+
includeSources: boolean;
|
|
839
|
+
topK?: number | undefined;
|
|
840
|
+
metadataFilters?: Record<string, any> | undefined;
|
|
841
|
+
conversationHistory?: {
|
|
842
|
+
role: "system" | "user" | "assistant";
|
|
843
|
+
content: string;
|
|
844
|
+
}[] | undefined;
|
|
845
|
+
}, {
|
|
846
|
+
query: string;
|
|
847
|
+
pipelineName: string;
|
|
848
|
+
topK?: number | undefined;
|
|
849
|
+
metadataFilters?: Record<string, any> | undefined;
|
|
850
|
+
conversationHistory?: {
|
|
851
|
+
role: "system" | "user" | "assistant";
|
|
852
|
+
content: string;
|
|
853
|
+
}[] | undefined;
|
|
854
|
+
includeMetadata?: boolean | undefined;
|
|
855
|
+
includeSources?: boolean | undefined;
|
|
856
|
+
}>;
|
|
857
|
+
/**
|
|
858
|
+
* RAG Query Response
|
|
859
|
+
*/
|
|
860
|
+
export declare const RAGQueryResponseSchema: z.ZodObject<{
|
|
861
|
+
query: z.ZodString;
|
|
862
|
+
results: z.ZodArray<z.ZodObject<{
|
|
863
|
+
content: z.ZodString;
|
|
864
|
+
score: z.ZodNumber;
|
|
865
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
866
|
+
source: z.ZodString;
|
|
867
|
+
sourceType: z.ZodOptional<z.ZodEnum<["file", "url", "api", "database", "custom"]>>;
|
|
868
|
+
title: z.ZodOptional<z.ZodString>;
|
|
869
|
+
author: z.ZodOptional<z.ZodString>;
|
|
870
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
871
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
872
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
873
|
+
category: z.ZodOptional<z.ZodString>;
|
|
874
|
+
language: z.ZodOptional<z.ZodString>;
|
|
875
|
+
custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
876
|
+
}, "strip", z.ZodTypeAny, {
|
|
877
|
+
source: string;
|
|
878
|
+
custom?: Record<string, any> | undefined;
|
|
879
|
+
language?: string | undefined;
|
|
880
|
+
title?: string | undefined;
|
|
881
|
+
createdAt?: string | undefined;
|
|
882
|
+
updatedAt?: string | undefined;
|
|
883
|
+
tags?: string[] | undefined;
|
|
884
|
+
category?: string | undefined;
|
|
885
|
+
sourceType?: "url" | "file" | "custom" | "api" | "database" | undefined;
|
|
886
|
+
author?: string | undefined;
|
|
887
|
+
}, {
|
|
888
|
+
source: string;
|
|
889
|
+
custom?: Record<string, any> | undefined;
|
|
890
|
+
language?: string | undefined;
|
|
891
|
+
title?: string | undefined;
|
|
892
|
+
createdAt?: string | undefined;
|
|
893
|
+
updatedAt?: string | undefined;
|
|
894
|
+
tags?: string[] | undefined;
|
|
895
|
+
category?: string | undefined;
|
|
896
|
+
sourceType?: "url" | "file" | "custom" | "api" | "database" | undefined;
|
|
897
|
+
author?: string | undefined;
|
|
898
|
+
}>>;
|
|
899
|
+
chunkId: z.ZodOptional<z.ZodString>;
|
|
900
|
+
}, "strip", z.ZodTypeAny, {
|
|
901
|
+
content: string;
|
|
902
|
+
score: number;
|
|
903
|
+
metadata?: {
|
|
904
|
+
source: string;
|
|
905
|
+
custom?: Record<string, any> | undefined;
|
|
906
|
+
language?: string | undefined;
|
|
907
|
+
title?: string | undefined;
|
|
908
|
+
createdAt?: string | undefined;
|
|
909
|
+
updatedAt?: string | undefined;
|
|
910
|
+
tags?: string[] | undefined;
|
|
911
|
+
category?: string | undefined;
|
|
912
|
+
sourceType?: "url" | "file" | "custom" | "api" | "database" | undefined;
|
|
913
|
+
author?: string | undefined;
|
|
914
|
+
} | undefined;
|
|
915
|
+
chunkId?: string | undefined;
|
|
916
|
+
}, {
|
|
917
|
+
content: string;
|
|
918
|
+
score: number;
|
|
919
|
+
metadata?: {
|
|
920
|
+
source: string;
|
|
921
|
+
custom?: Record<string, any> | undefined;
|
|
922
|
+
language?: string | undefined;
|
|
923
|
+
title?: string | undefined;
|
|
924
|
+
createdAt?: string | undefined;
|
|
925
|
+
updatedAt?: string | undefined;
|
|
926
|
+
tags?: string[] | undefined;
|
|
927
|
+
category?: string | undefined;
|
|
928
|
+
sourceType?: "url" | "file" | "custom" | "api" | "database" | undefined;
|
|
929
|
+
author?: string | undefined;
|
|
930
|
+
} | undefined;
|
|
931
|
+
chunkId?: string | undefined;
|
|
932
|
+
}>, "many">;
|
|
933
|
+
context: z.ZodString;
|
|
934
|
+
tokensUsed: z.ZodOptional<z.ZodNumber>;
|
|
935
|
+
retrievalTime: z.ZodOptional<z.ZodNumber>;
|
|
936
|
+
}, "strip", z.ZodTypeAny, {
|
|
937
|
+
context: string;
|
|
938
|
+
query: string;
|
|
939
|
+
results: {
|
|
940
|
+
content: string;
|
|
941
|
+
score: number;
|
|
942
|
+
metadata?: {
|
|
943
|
+
source: string;
|
|
944
|
+
custom?: Record<string, any> | undefined;
|
|
945
|
+
language?: string | undefined;
|
|
946
|
+
title?: string | undefined;
|
|
947
|
+
createdAt?: string | undefined;
|
|
948
|
+
updatedAt?: string | undefined;
|
|
949
|
+
tags?: string[] | undefined;
|
|
950
|
+
category?: string | undefined;
|
|
951
|
+
sourceType?: "url" | "file" | "custom" | "api" | "database" | undefined;
|
|
952
|
+
author?: string | undefined;
|
|
953
|
+
} | undefined;
|
|
954
|
+
chunkId?: string | undefined;
|
|
955
|
+
}[];
|
|
956
|
+
tokensUsed?: number | undefined;
|
|
957
|
+
retrievalTime?: number | undefined;
|
|
958
|
+
}, {
|
|
959
|
+
context: string;
|
|
960
|
+
query: string;
|
|
961
|
+
results: {
|
|
962
|
+
content: string;
|
|
963
|
+
score: number;
|
|
964
|
+
metadata?: {
|
|
965
|
+
source: string;
|
|
966
|
+
custom?: Record<string, any> | undefined;
|
|
967
|
+
language?: string | undefined;
|
|
968
|
+
title?: string | undefined;
|
|
969
|
+
createdAt?: string | undefined;
|
|
970
|
+
updatedAt?: string | undefined;
|
|
971
|
+
tags?: string[] | undefined;
|
|
972
|
+
category?: string | undefined;
|
|
973
|
+
sourceType?: "url" | "file" | "custom" | "api" | "database" | undefined;
|
|
974
|
+
author?: string | undefined;
|
|
975
|
+
} | undefined;
|
|
976
|
+
chunkId?: string | undefined;
|
|
977
|
+
}[];
|
|
978
|
+
tokensUsed?: number | undefined;
|
|
979
|
+
retrievalTime?: number | undefined;
|
|
980
|
+
}>;
|
|
981
|
+
/**
|
|
982
|
+
* RAG Pipeline Status
|
|
983
|
+
*/
|
|
984
|
+
export declare const RAGPipelineStatusSchema: z.ZodObject<{
|
|
985
|
+
name: z.ZodString;
|
|
986
|
+
status: z.ZodEnum<["active", "indexing", "error", "disabled"]>;
|
|
987
|
+
documentsIndexed: z.ZodNumber;
|
|
988
|
+
lastIndexed: z.ZodOptional<z.ZodString>;
|
|
989
|
+
errorMessage: z.ZodOptional<z.ZodString>;
|
|
990
|
+
health: z.ZodOptional<z.ZodObject<{
|
|
991
|
+
vectorStore: z.ZodEnum<["healthy", "unhealthy", "unknown"]>;
|
|
992
|
+
embeddingService: z.ZodEnum<["healthy", "unhealthy", "unknown"]>;
|
|
993
|
+
}, "strip", z.ZodTypeAny, {
|
|
994
|
+
vectorStore: "unknown" | "healthy" | "unhealthy";
|
|
995
|
+
embeddingService: "unknown" | "healthy" | "unhealthy";
|
|
996
|
+
}, {
|
|
997
|
+
vectorStore: "unknown" | "healthy" | "unhealthy";
|
|
998
|
+
embeddingService: "unknown" | "healthy" | "unhealthy";
|
|
999
|
+
}>>;
|
|
1000
|
+
}, "strip", z.ZodTypeAny, {
|
|
1001
|
+
status: "active" | "error" | "disabled" | "indexing";
|
|
1002
|
+
name: string;
|
|
1003
|
+
documentsIndexed: number;
|
|
1004
|
+
errorMessage?: string | undefined;
|
|
1005
|
+
lastIndexed?: string | undefined;
|
|
1006
|
+
health?: {
|
|
1007
|
+
vectorStore: "unknown" | "healthy" | "unhealthy";
|
|
1008
|
+
embeddingService: "unknown" | "healthy" | "unhealthy";
|
|
1009
|
+
} | undefined;
|
|
1010
|
+
}, {
|
|
1011
|
+
status: "active" | "error" | "disabled" | "indexing";
|
|
1012
|
+
name: string;
|
|
1013
|
+
documentsIndexed: number;
|
|
1014
|
+
errorMessage?: string | undefined;
|
|
1015
|
+
lastIndexed?: string | undefined;
|
|
1016
|
+
health?: {
|
|
1017
|
+
vectorStore: "unknown" | "healthy" | "unhealthy";
|
|
1018
|
+
embeddingService: "unknown" | "healthy" | "unhealthy";
|
|
1019
|
+
} | undefined;
|
|
1020
|
+
}>;
|
|
1021
|
+
export type VectorStoreProvider = z.infer<typeof VectorStoreProviderSchema>;
|
|
1022
|
+
export type EmbeddingModel = z.infer<typeof EmbeddingModelSchema>;
|
|
1023
|
+
export type ChunkingStrategy = z.infer<typeof ChunkingStrategySchema>;
|
|
1024
|
+
export type DocumentMetadata = z.infer<typeof DocumentMetadataSchema>;
|
|
1025
|
+
export type DocumentChunk = z.infer<typeof DocumentChunkSchema>;
|
|
1026
|
+
export type RetrievalStrategy = z.infer<typeof RetrievalStrategySchema>;
|
|
1027
|
+
export type RerankingConfig = z.infer<typeof RerankingConfigSchema>;
|
|
1028
|
+
export type VectorStoreConfig = z.infer<typeof VectorStoreConfigSchema>;
|
|
1029
|
+
export type DocumentLoaderConfig = z.infer<typeof DocumentLoaderConfigSchema>;
|
|
1030
|
+
export type RAGPipelineConfig = z.infer<typeof RAGPipelineConfigSchema>;
|
|
1031
|
+
export type RAGQueryRequest = z.infer<typeof RAGQueryRequestSchema>;
|
|
1032
|
+
export type RAGQueryResponse = z.infer<typeof RAGQueryResponseSchema>;
|
|
1033
|
+
export type RAGPipelineStatus = z.infer<typeof RAGPipelineStatusSchema>;
|
|
1034
|
+
//# sourceMappingURL=rag-pipeline.zod.d.ts.map
|