@objectstack/spec 0.3.2 → 0.4.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 +32 -10
- package/dist/ai/agent.zod.d.ts +12 -12
- package/dist/ai/conversation.zod.d.ts +54 -54
- package/dist/ai/cost.zod.d.ts +135 -135
- package/dist/ai/index.d.ts +1 -1
- package/dist/ai/index.d.ts.map +1 -1
- package/dist/ai/index.js +1 -1
- package/dist/ai/model-registry.zod.d.ts +91 -91
- package/dist/ai/nlq.zod.d.ts +72 -72
- package/dist/ai/{workflow-automation.zod.d.ts → orchestration.zod.d.ts} +51 -50
- package/dist/ai/orchestration.zod.d.ts.map +1 -0
- package/dist/ai/{workflow-automation.zod.js → orchestration.zod.js} +26 -25
- package/dist/ai/predictive.zod.d.ts +27 -27
- package/dist/ai/rag-pipeline.zod.d.ts +102 -102
- package/dist/api/contract.zod.d.ts +213 -197
- package/dist/api/contract.zod.d.ts.map +1 -1
- package/dist/{system → api}/discovery.zod.d.ts +26 -26
- package/dist/api/discovery.zod.d.ts.map +1 -0
- package/dist/{system → api}/discovery.zod.js +9 -9
- package/dist/{system/api.zod.d.ts → api/endpoint.zod.d.ts} +53 -57
- package/dist/api/endpoint.zod.d.ts.map +1 -0
- package/dist/{system/api.zod.js → api/endpoint.zod.js} +3 -6
- package/dist/api/index.d.ts +6 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +6 -0
- package/dist/api/odata.zod.d.ts +482 -0
- package/dist/api/odata.zod.d.ts.map +1 -0
- package/dist/api/odata.zod.js +401 -0
- package/dist/{system → api}/realtime.zod.d.ts +4 -4
- package/dist/api/realtime.zod.d.ts.map +1 -0
- package/dist/api/router.zod.d.ts +182 -0
- package/dist/api/router.zod.d.ts.map +1 -0
- package/dist/api/router.zod.js +103 -0
- package/dist/{system/auth.zod.d.ts → auth/config.zod.d.ts} +199 -199
- package/dist/auth/config.zod.d.ts.map +1 -0
- package/dist/{system → auth}/identity.zod.d.ts +8 -8
- package/dist/auth/identity.zod.d.ts.map +1 -0
- package/dist/auth/index.d.ts +8 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +23 -0
- package/dist/{system → auth}/organization.zod.d.ts +7 -7
- package/dist/auth/organization.zod.d.ts.map +1 -0
- package/dist/{system → auth}/policy.zod.d.ts +3 -3
- package/dist/auth/policy.zod.d.ts.map +1 -0
- package/dist/{system/auth-protocol.d.ts → auth/protocol.d.ts} +1 -1
- package/dist/auth/protocol.d.ts.map +1 -0
- package/dist/{system → auth}/role.zod.d.ts +14 -0
- package/dist/auth/role.zod.d.ts.map +1 -0
- package/dist/{system → auth}/role.zod.js +16 -1
- package/dist/auth/scim.zod.d.ts +2732 -0
- package/dist/auth/scim.zod.d.ts.map +1 -0
- package/dist/auth/scim.zod.js +811 -0
- package/dist/automation/approval.zod.d.ts +643 -0
- package/dist/automation/approval.zod.d.ts.map +1 -0
- package/dist/automation/approval.zod.js +84 -0
- package/dist/automation/connector.zod.d.ts +1284 -0
- package/dist/automation/connector.zod.d.ts.map +1 -0
- package/dist/automation/connector.zod.js +500 -0
- package/dist/automation/etl.zod.d.ts +623 -0
- package/dist/automation/etl.zod.d.ts.map +1 -0
- package/dist/automation/etl.zod.js +359 -0
- package/dist/{data → automation}/flow.zod.d.ts +40 -22
- package/dist/automation/flow.zod.d.ts.map +1 -0
- package/dist/{data → automation}/flow.zod.js +6 -1
- package/dist/automation/index.d.ts +8 -0
- package/dist/automation/index.d.ts.map +1 -0
- package/dist/automation/index.js +23 -0
- package/dist/automation/sync.zod.d.ts +854 -0
- package/dist/automation/sync.zod.d.ts.map +1 -0
- package/dist/automation/sync.zod.js +444 -0
- package/dist/{system → automation}/webhook.zod.d.ts +26 -3
- package/dist/automation/webhook.zod.d.ts.map +1 -0
- package/dist/{system → automation}/webhook.zod.js +27 -3
- package/dist/automation/workflow.zod.d.ts +2059 -0
- package/dist/automation/workflow.zod.d.ts.map +1 -0
- package/dist/{data → automation}/workflow.zod.js +40 -2
- package/dist/data/dataset.zod.d.ts +2 -2
- package/dist/data/field.zod.d.ts +779 -219
- package/dist/data/field.zod.d.ts.map +1 -1
- package/dist/data/field.zod.js +128 -16
- package/dist/data/filter.zod.d.ts +167 -30
- package/dist/data/filter.zod.d.ts.map +1 -1
- package/dist/data/filter.zod.js +25 -13
- package/dist/data/hook.zod.d.ts +191 -0
- package/dist/data/hook.zod.d.ts.map +1 -0
- package/dist/data/hook.zod.js +144 -0
- package/dist/data/index.d.ts +4 -17
- package/dist/data/index.d.ts.map +1 -1
- package/dist/data/index.js +4 -17
- package/dist/data/mapping.zod.d.ts +117 -93
- package/dist/data/mapping.zod.d.ts.map +1 -1
- package/dist/data/mapping.zod.js +16 -3
- package/dist/data/object.zod.d.ts +485 -131
- package/dist/data/object.zod.d.ts.map +1 -1
- package/dist/data/object.zod.js +87 -42
- package/dist/data/query.zod.d.ts +98 -169
- package/dist/data/query.zod.d.ts.map +1 -1
- package/dist/data/query.zod.js +42 -130
- package/dist/data/validation.zod.d.ts +166 -26
- package/dist/data/validation.zod.d.ts.map +1 -1
- package/dist/data/validation.zod.js +38 -16
- package/dist/hub/composer.zod.d.ts +871 -0
- package/dist/hub/composer.zod.d.ts.map +1 -0
- package/dist/hub/composer.zod.js +111 -0
- package/dist/hub/index.d.ts +6 -0
- package/dist/hub/index.d.ts.map +1 -0
- package/dist/hub/index.js +22 -0
- package/dist/{system → hub}/license.zod.d.ts +13 -9
- package/dist/hub/license.zod.d.ts.map +1 -0
- package/dist/{system → hub}/license.zod.js +5 -3
- package/dist/hub/marketplace.zod.d.ts +191 -0
- package/dist/hub/marketplace.zod.d.ts.map +1 -0
- package/dist/hub/marketplace.zod.js +85 -0
- package/dist/hub/space.zod.d.ts +383 -0
- package/dist/hub/space.zod.d.ts.map +1 -0
- package/dist/hub/space.zod.js +103 -0
- package/dist/{system → hub}/tenant.zod.d.ts +73 -47
- package/dist/hub/tenant.zod.d.ts.map +1 -0
- package/dist/{system → hub}/tenant.zod.js +36 -10
- package/dist/index.d.ts +11 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -5
- package/dist/permission/index.d.ts +14 -0
- package/dist/permission/index.d.ts.map +1 -0
- package/dist/permission/index.js +29 -0
- package/dist/{data → permission}/permission.zod.d.ts +48 -3
- package/dist/permission/permission.zod.d.ts.map +1 -0
- package/dist/{data → permission}/permission.zod.js +26 -2
- package/dist/permission/rls.zod.d.ts +605 -0
- package/dist/permission/rls.zod.d.ts.map +1 -0
- package/dist/permission/rls.zod.js +615 -0
- package/dist/permission/sharing.zod.d.ts +146 -0
- package/dist/permission/sharing.zod.d.ts.map +1 -0
- package/dist/permission/sharing.zod.js +88 -0
- package/dist/{system → permission}/territory.zod.d.ts +13 -0
- package/dist/permission/territory.zod.d.ts.map +1 -0
- package/dist/{system → permission}/territory.zod.js +15 -1
- package/dist/shared/identifiers.zod.d.ts +87 -0
- package/dist/shared/identifiers.zod.d.ts.map +1 -0
- package/dist/shared/identifiers.zod.js +101 -0
- package/dist/shared/index.d.ts +6 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/index.js +21 -0
- package/dist/stack.zod.d.ts +19869 -0
- package/dist/stack.zod.d.ts.map +1 -0
- package/dist/stack.zod.js +248 -0
- package/dist/system/audit.zod.d.ts +58 -58
- package/dist/system/context.zod.d.ts +56 -0
- package/dist/system/context.zod.d.ts.map +1 -0
- package/dist/system/context.zod.js +43 -0
- package/dist/system/datasource.zod.d.ts +40 -6
- package/dist/system/datasource.zod.d.ts.map +1 -1
- package/dist/system/datasource.zod.js +17 -13
- package/dist/system/driver/mongo.zod.d.ts +107 -0
- package/dist/system/driver/mongo.zod.d.ts.map +1 -0
- package/dist/system/driver/mongo.zod.js +80 -0
- package/dist/system/driver/postgres.zod.d.ts +134 -0
- package/dist/system/driver/postgres.zod.d.ts.map +1 -0
- package/dist/system/driver/postgres.zod.js +88 -0
- package/dist/system/driver.zod.d.ts +2249 -488
- package/dist/system/driver.zod.d.ts.map +1 -1
- package/dist/system/driver.zod.js +99 -0
- package/dist/system/events.zod.d.ts +8 -5
- package/dist/system/events.zod.d.ts.map +1 -1
- package/dist/system/events.zod.js +5 -1
- package/dist/system/feature.zod.d.ts +131 -0
- package/dist/system/feature.zod.d.ts.map +1 -0
- package/dist/system/feature.zod.js +45 -0
- package/dist/system/index.d.ts +11 -20
- package/dist/system/index.d.ts.map +1 -1
- package/dist/system/index.js +15 -20
- package/dist/system/job.zod.d.ts +5 -5
- package/dist/system/logger.zod.d.ts +111 -0
- package/dist/system/logger.zod.d.ts.map +1 -0
- package/dist/system/logger.zod.js +75 -0
- package/dist/system/manifest.zod.d.ts +136 -18
- package/dist/system/manifest.zod.d.ts.map +1 -1
- package/dist/system/manifest.zod.js +28 -0
- package/dist/system/plugin.zod.d.ts +598 -318
- package/dist/system/plugin.zod.d.ts.map +1 -1
- package/dist/system/plugin.zod.js +13 -0
- package/dist/system/scoped-storage.zod.d.ts +81 -0
- package/dist/system/scoped-storage.zod.d.ts.map +1 -0
- package/dist/system/scoped-storage.zod.js +66 -0
- package/dist/ui/action.zod.d.ts +42 -17
- package/dist/ui/action.zod.d.ts.map +1 -1
- package/dist/ui/action.zod.js +30 -1
- package/dist/ui/app.zod.d.ts +26 -11
- package/dist/ui/app.zod.d.ts.map +1 -1
- package/dist/ui/app.zod.js +32 -4
- package/dist/ui/block.zod.d.ts +265 -0
- package/dist/ui/block.zod.d.ts.map +1 -0
- package/dist/ui/block.zod.js +90 -0
- package/dist/ui/component.zod.d.ts +265 -0
- package/dist/ui/component.zod.d.ts.map +1 -0
- package/dist/ui/component.zod.js +90 -0
- package/dist/ui/dashboard.zod.d.ts +15 -15
- package/dist/ui/dashboard.zod.d.ts.map +1 -1
- package/dist/ui/dashboard.zod.js +18 -8
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +1 -0
- package/dist/ui/page.zod.d.ts +23 -5
- package/dist/ui/page.zod.d.ts.map +1 -1
- package/dist/ui/page.zod.js +37 -4
- package/dist/ui/report.zod.d.ts +12 -12
- package/dist/ui/theme.zod.d.ts +42 -42
- package/dist/ui/view.zod.d.ts +302 -290
- package/dist/ui/view.zod.d.ts.map +1 -1
- package/dist/ui/view.zod.js +32 -3
- package/dist/ui/widget.zod.d.ts +730 -29
- package/dist/ui/widget.zod.d.ts.map +1 -1
- package/dist/ui/widget.zod.js +294 -1
- package/json-schema/ai/{AIWorkflowAutomation.json → AIOrchestration.json} +5 -5
- package/json-schema/ai/{AIWorkflowExecutionResult.json → AIOrchestrationExecutionResult.json} +2 -2
- package/json-schema/ai/{AIWorkflowTrigger.json → AIOrchestrationTrigger.json} +2 -2
- package/json-schema/ai/{BatchAIWorkflowExecution.json → BatchAIOrchestrationExecution.json} +3 -3
- package/json-schema/{system → api}/ApiEndpoint.json +3 -1
- package/json-schema/{system → api}/ApiRoutes.json +7 -7
- package/json-schema/{system → api}/Discovery.json +7 -7
- package/json-schema/api/ExportRequest.json +402 -438
- package/json-schema/{system → api}/HttpMethod.json +3 -1
- package/json-schema/api/ODataError.json +65 -0
- package/json-schema/api/ODataFilterFunction.json +39 -0
- package/json-schema/api/ODataFilterOperator.json +24 -0
- package/json-schema/api/ODataMetadata.json +115 -0
- package/json-schema/api/ODataQuery.json +89 -0
- package/json-schema/api/ODataResponse.json +37 -0
- package/json-schema/api/RouteCategory.json +17 -0
- package/json-schema/api/RouteDefinition.json +77 -0
- package/json-schema/api/RouterConfig.json +117 -0
- package/json-schema/{system → auth}/Role.json +3 -2
- package/json-schema/auth/SCIMAddress.json +50 -0
- package/json-schema/auth/SCIMEmail.json +38 -0
- package/json-schema/auth/SCIMEnterpriseUser.json +55 -0
- package/json-schema/auth/SCIMError.json +52 -0
- package/json-schema/auth/SCIMGroup.json +102 -0
- package/json-schema/auth/SCIMGroupReference.json +36 -0
- package/json-schema/auth/SCIMListResponse.json +606 -0
- package/json-schema/auth/SCIMMemberReference.json +36 -0
- package/json-schema/auth/SCIMMeta.json +35 -0
- package/json-schema/auth/SCIMName.json +36 -0
- package/json-schema/auth/SCIMPatchOperation.json +31 -0
- package/json-schema/auth/SCIMPatchRequest.json +56 -0
- package/json-schema/auth/SCIMPhoneNumber.json +40 -0
- package/json-schema/auth/SCIMUser.json +462 -0
- package/json-schema/automation/ApprovalAction.json +35 -0
- package/json-schema/automation/ApprovalActionType.json +15 -0
- package/json-schema/automation/ApprovalProcess.json +326 -0
- package/json-schema/automation/ApprovalStep.json +147 -0
- package/json-schema/automation/ApproverType.json +16 -0
- package/json-schema/automation/AuthField.json +73 -0
- package/json-schema/automation/Authentication.json +159 -0
- package/json-schema/automation/AuthenticationType.json +18 -0
- package/json-schema/automation/ConflictResolution.json +16 -0
- package/json-schema/automation/Connector.json +440 -0
- package/json-schema/automation/ConnectorCategory.json +26 -0
- package/json-schema/automation/ConnectorInstance.json +69 -0
- package/json-schema/automation/ConnectorOperation.json +117 -0
- package/json-schema/automation/ConnectorTrigger.json +54 -0
- package/json-schema/automation/DataDestinationConfig.json +89 -0
- package/json-schema/automation/DataSourceConfig.json +34 -0
- package/json-schema/automation/DataSyncConfig.json +355 -0
- package/json-schema/automation/ETLDestination.json +57 -0
- package/json-schema/automation/ETLEndpointType.json +19 -0
- package/json-schema/automation/ETLPipeline.json +252 -0
- package/json-schema/automation/ETLPipelineRun.json +107 -0
- package/json-schema/automation/ETLRunStatus.json +17 -0
- package/json-schema/automation/ETLSource.json +60 -0
- package/json-schema/{data/LogicOperator.json → automation/ETLSyncMode.json} +5 -5
- package/json-schema/automation/ETLTransformation.json +46 -0
- package/json-schema/automation/ETLTransformationType.json +21 -0
- package/json-schema/automation/FieldMapping.json +36 -0
- package/json-schema/{data → automation}/Flow.json +31 -1
- package/json-schema/{data → automation}/FlowEdge.json +9 -0
- package/json-schema/automation/OAuth2Config.json +43 -0
- package/json-schema/automation/OperationParameter.json +59 -0
- package/json-schema/automation/OperationType.json +17 -0
- package/json-schema/automation/SyncDirection.json +14 -0
- package/json-schema/automation/SyncExecutionResult.json +135 -0
- package/json-schema/automation/SyncExecutionStatus.json +17 -0
- package/json-schema/{data/TriggerTiming.json → automation/SyncMode.json} +5 -4
- package/json-schema/{data/WorkflowRule.json → automation/TimeTrigger.json} +35 -25
- package/json-schema/{system → automation}/Webhook.json +3 -1
- package/json-schema/{system → automation}/WebhookReceiver.json +3 -1
- package/json-schema/automation/WorkflowRule.json +1032 -0
- package/json-schema/data/AggregationNode.json +23 -0
- package/json-schema/data/AsyncValidation.json +49 -2
- package/json-schema/data/ComparisonOperator.json +52 -0
- package/json-schema/data/ConditionalValidation.json +693 -46
- package/json-schema/data/CrossFieldValidation.json +33 -2
- package/json-schema/data/CurrencyConfig.json +35 -0
- package/json-schema/data/CurrencyValue.json +26 -0
- package/json-schema/data/CustomValidator.json +37 -10
- package/json-schema/data/Field.json +92 -4
- package/json-schema/data/FieldOperators.json +78 -0
- package/json-schema/data/FieldReference.json +19 -0
- package/json-schema/data/FieldType.json +12 -2
- package/json-schema/data/FormatValidation.json +33 -2
- package/json-schema/data/Hook.json +95 -0
- package/json-schema/data/HookContext.json +88 -0
- package/json-schema/data/HookEvent.json +29 -0
- package/json-schema/data/Index.json +10 -0
- package/json-schema/data/JSONValidation.json +85 -0
- package/json-schema/data/JoinNode.json +197 -213
- package/json-schema/data/JoinStrategy.json +15 -0
- package/json-schema/data/NormalizedFilter.json +234 -0
- package/json-schema/data/Object.json +1642 -32
- package/json-schema/data/ObjectCapabilities.json +30 -12
- package/json-schema/data/Query.json +246 -262
- package/json-schema/data/RangeOperator.json +26 -0
- package/json-schema/data/ScriptValidation.json +33 -2
- package/json-schema/data/SearchConfig.json +36 -0
- package/json-schema/data/SelectOption.json +4 -2
- package/json-schema/data/StateMachineValidation.json +33 -2
- package/json-schema/data/UniquenessValidation.json +33 -2
- package/json-schema/data/ValidationRule.json +693 -46
- package/json-schema/data/VectorConfig.json +51 -0
- package/json-schema/hub/BillOfMaterials.json +70 -0
- package/json-schema/hub/ComposerRequest.json +86 -0
- package/json-schema/hub/ComposerResponse.json +483 -0
- package/json-schema/hub/ConflictReport.json +53 -0
- package/json-schema/hub/DependencyRequirement.json +36 -0
- package/json-schema/hub/DeploymentTarget.json +38 -0
- package/json-schema/hub/HubSpace.json +279 -0
- package/json-schema/{system → hub}/License.json +11 -3
- package/json-schema/hub/MarketplacePlugin.json +141 -0
- package/json-schema/hub/PluginAuthor.json +26 -0
- package/json-schema/hub/PluginPricing.json +43 -0
- package/json-schema/hub/SpaceSubscription.json +77 -0
- package/json-schema/hub/SubscriptionStatus.json +16 -0
- package/json-schema/{system → hub}/Tenant.json +3 -5
- package/json-schema/permission/CriteriaSharingRule.json +82 -0
- package/json-schema/{data → permission}/OWDModel.json +2 -1
- package/json-schema/{data → permission}/ObjectPermission.json +15 -0
- package/json-schema/permission/OwnerSharingRule.json +102 -0
- package/json-schema/{data → permission}/PermissionSet.json +18 -1
- package/json-schema/permission/RLSConfig.json +59 -0
- package/json-schema/permission/RLSEvaluationResult.json +40 -0
- package/json-schema/{data/TriggerAction.json → permission/RLSOperation.json} +5 -3
- package/json-schema/permission/RLSUserContext.json +51 -0
- package/json-schema/permission/RowLevelSecurityPolicy.json +77 -0
- package/json-schema/permission/ShareRecipientType.json +16 -0
- package/json-schema/{data → permission}/SharingLevel.json +2 -1
- package/json-schema/permission/SharingRule.json +182 -0
- package/json-schema/{data → permission}/SharingRuleType.json +1 -3
- package/json-schema/{system → permission}/Territory.json +3 -1
- package/json-schema/shared/EventName.json +12 -0
- package/json-schema/shared/SnakeCaseIdentifier.json +12 -0
- package/json-schema/shared/SystemIdentifier.json +12 -0
- package/json-schema/system/Datasource.json +35 -0
- package/json-schema/system/DriverCapabilities.json +10 -0
- package/json-schema/system/DriverInterface.json +10 -0
- package/json-schema/system/DriverOptions.json +11 -0
- package/json-schema/system/Event.json +3 -2
- package/json-schema/system/FeatureFlag.json +87 -0
- package/json-schema/system/FeatureStrategy.json +16 -0
- package/json-schema/system/FileMetadata.json +43 -0
- package/json-schema/system/KernelContext.json +62 -0
- package/json-schema/system/LogEntry.json +63 -0
- package/json-schema/system/LogFormat.json +15 -0
- package/json-schema/system/LogLevel.json +17 -0
- package/json-schema/system/LoggerConfig.json +70 -0
- package/json-schema/system/Manifest.json +80 -0
- package/json-schema/system/MongoConfig.json +82 -0
- package/json-schema/system/PluginContext.json +8 -1
- package/json-schema/system/PostgresConfig.json +98 -0
- package/json-schema/system/RuntimeMode.json +16 -0
- package/json-schema/system/ScopedStorageConfig.json +54 -0
- package/json-schema/system/StorageAdapterType.json +17 -0
- package/json-schema/system/StorageScope.json +18 -0
- package/json-schema/ui/Action.json +25 -4
- package/json-schema/ui/ActionParam.json +12 -2
- package/json-schema/ui/App.json +18 -7
- package/json-schema/ui/ChartType.json +9 -1
- package/json-schema/ui/Dashboard.json +9 -1
- package/json-schema/ui/DashboardNavItem.json +3 -1
- package/json-schema/ui/DashboardWidget.json +9 -1
- package/json-schema/ui/FieldWidgetProps.json +92 -4
- package/json-schema/ui/FormView.json +4 -1
- package/json-schema/ui/GroupNavItem.json +3 -1
- package/json-schema/ui/ListView.json +7 -1
- package/json-schema/ui/NavigationItem.json +15 -5
- package/json-schema/ui/ObjectNavItem.json +3 -1
- package/json-schema/ui/Page.json +36 -4
- package/json-schema/ui/PageCardProps.json +32 -0
- package/json-schema/ui/PageComponent.json +33 -3
- package/json-schema/ui/PageComponentType.json +32 -0
- package/json-schema/ui/PageHeaderProps.json +39 -0
- package/json-schema/ui/PageNavItem.json +3 -1
- package/json-schema/ui/PageRegion.json +33 -3
- package/json-schema/ui/PageTabsProps.json +55 -0
- package/json-schema/ui/RecordDetailsProps.json +37 -0
- package/json-schema/ui/RecordHighlightsProps.json +24 -0
- package/json-schema/ui/RecordRelatedListProps.json +39 -0
- package/json-schema/ui/UrlNavItem.json +3 -1
- package/json-schema/ui/View.json +22 -4
- package/json-schema/ui/WidgetEvent.json +42 -0
- package/json-schema/ui/WidgetLifecycle.json +40 -0
- package/json-schema/ui/WidgetManifest.json +262 -0
- package/json-schema/ui/WidgetProperty.json +58 -0
- package/llms.txt +182 -0
- package/package.json +38 -16
- package/prompts/README.md +18 -0
- package/prompts/architecture.md +81 -0
- package/prompts/create-new-project.md +85 -0
- package/prompts/implement-objectai.md +39 -0
- package/prompts/implement-objectos.md +48 -0
- package/prompts/implement-objectql.md +39 -0
- package/prompts/implement-objectui.md +46 -0
- package/prompts/instructions.md +91 -0
- package/dist/ai/workflow-automation.zod.d.ts.map +0 -1
- package/dist/data/flow.zod.d.ts.map +0 -1
- package/dist/data/permission.zod.d.ts.map +0 -1
- package/dist/data/sharing.zod.d.ts +0 -63
- package/dist/data/sharing.zod.d.ts.map +0 -1
- package/dist/data/sharing.zod.js +0 -57
- package/dist/data/trigger.zod.d.ts +0 -354
- package/dist/data/trigger.zod.d.ts.map +0 -1
- package/dist/data/trigger.zod.js +0 -195
- package/dist/data/workflow.zod.d.ts +0 -986
- package/dist/data/workflow.zod.d.ts.map +0 -1
- package/dist/system/api.zod.d.ts.map +0 -1
- package/dist/system/auth-protocol.d.ts.map +0 -1
- package/dist/system/auth.zod.d.ts.map +0 -1
- package/dist/system/discovery.zod.d.ts.map +0 -1
- package/dist/system/identity.zod.d.ts.map +0 -1
- package/dist/system/license.zod.d.ts.map +0 -1
- package/dist/system/organization.zod.d.ts.map +0 -1
- package/dist/system/policy.zod.d.ts.map +0 -1
- package/dist/system/realtime.zod.d.ts.map +0 -1
- package/dist/system/role.zod.d.ts.map +0 -1
- package/dist/system/tenant.zod.d.ts.map +0 -1
- package/dist/system/territory.zod.d.ts.map +0 -1
- package/dist/system/webhook.zod.d.ts.map +0 -1
- package/json-schema/README.md +0 -127
- package/json-schema/data/FieldMapping.json +0 -83
- package/json-schema/data/FilterNode.json +0 -52
- package/json-schema/data/FilterOperator.json +0 -26
- package/json-schema/data/Mapping.json +0 -598
- package/json-schema/data/SharingRule.json +0 -58
- package/json-schema/data/TransformType.json +0 -18
- package/json-schema/data/Trigger.json +0 -73
- package/json-schema/data/TriggerContext.json +0 -61
- /package/dist/{system → api}/realtime.zod.js +0 -0
- /package/dist/{system/auth.zod.js → auth/config.zod.js} +0 -0
- /package/dist/{system → auth}/identity.zod.js +0 -0
- /package/dist/{system → auth}/organization.zod.js +0 -0
- /package/dist/{system → auth}/policy.zod.js +0 -0
- /package/dist/{system/auth-protocol.js → auth/protocol.js} +0 -0
- /package/json-schema/{system → api}/ApiCapabilities.json +0 -0
- /package/json-schema/{system → api}/ApiMapping.json +0 -0
- /package/json-schema/{system → api}/Presence.json +0 -0
- /package/json-schema/{system → api}/PresenceStatus.json +0 -0
- /package/json-schema/{system → api}/RateLimit.json +0 -0
- /package/json-schema/{system → api}/RealtimeAction.json +0 -0
- /package/json-schema/{system → api}/RealtimeEvent.json +0 -0
- /package/json-schema/{system → api}/RealtimeEventType.json +0 -0
- /package/json-schema/{system → api}/Subscription.json +0 -0
- /package/json-schema/{system → api}/SubscriptionEvent.json +0 -0
- /package/json-schema/{system → api}/TransportProtocol.json +0 -0
- /package/json-schema/{system → auth}/Account.json +0 -0
- /package/json-schema/{system → auth}/AccountLinkingConfig.json +0 -0
- /package/json-schema/{system → auth}/AuditPolicy.json +0 -0
- /package/json-schema/{system → auth}/AuthConfig.json +0 -0
- /package/json-schema/{system → auth}/AuthPluginConfig.json +0 -0
- /package/json-schema/{system → auth}/AuthStrategy.json +0 -0
- /package/json-schema/{system → auth}/CSRFConfig.json +0 -0
- /package/json-schema/{system → auth}/DatabaseAdapter.json +0 -0
- /package/json-schema/{system → auth}/DatabaseMapping.json +0 -0
- /package/json-schema/{system → auth}/EmailPasswordConfig.json +0 -0
- /package/json-schema/{system → auth}/EnterpriseAuthConfig.json +0 -0
- /package/json-schema/{system → auth}/Invitation.json +0 -0
- /package/json-schema/{system → auth}/InvitationStatus.json +0 -0
- /package/json-schema/{system → auth}/LDAPConfig.json +0 -0
- /package/json-schema/{system → auth}/MagicLinkConfig.json +0 -0
- /package/json-schema/{system → auth}/Member.json +0 -0
- /package/json-schema/{system → auth}/NetworkPolicy.json +0 -0
- /package/json-schema/{system → auth}/OAuthProvider.json +0 -0
- /package/json-schema/{system → auth}/OIDCConfig.json +0 -0
- /package/json-schema/{system → auth}/Organization.json +0 -0
- /package/json-schema/{system → auth}/PasskeyConfig.json +0 -0
- /package/json-schema/{system → auth}/PasswordPolicy.json +0 -0
- /package/json-schema/{system → auth}/Policy.json +0 -0
- /package/json-schema/{system → auth}/RateLimitConfig.json +0 -0
- /package/json-schema/{system → auth}/SAMLConfig.json +0 -0
- /package/json-schema/{system → auth}/Session.json +0 -0
- /package/json-schema/{system → auth}/SessionConfig.json +0 -0
- /package/json-schema/{system → auth}/SessionPolicy.json +0 -0
- /package/json-schema/{system → auth}/StandardAuthProvider.json +0 -0
- /package/json-schema/{system → auth}/TwoFactorConfig.json +0 -0
- /package/json-schema/{system → auth}/User.json +0 -0
- /package/json-schema/{system → auth}/UserFieldMapping.json +0 -0
- /package/json-schema/{system → auth}/VerificationToken.json +0 -0
- /package/json-schema/{data → automation}/CustomScriptAction.json +0 -0
- /package/json-schema/{data → automation}/EmailAlertAction.json +0 -0
- /package/json-schema/{data → automation}/FieldUpdateAction.json +0 -0
- /package/json-schema/{data → automation}/FlowNode.json +0 -0
- /package/json-schema/{data → automation}/FlowNodeAction.json +0 -0
- /package/json-schema/{data → automation}/FlowVariable.json +0 -0
- /package/json-schema/{data → automation}/HttpCallAction.json +0 -0
- /package/json-schema/{data → automation}/PushNotificationAction.json +0 -0
- /package/json-schema/{data → automation}/SlackMessageAction.json +0 -0
- /package/json-schema/{data → automation}/SmsNotificationAction.json +0 -0
- /package/json-schema/{data → automation}/TaskCreationAction.json +0 -0
- /package/json-schema/{data → automation}/TeamsMessageAction.json +0 -0
- /package/json-schema/{data → automation}/WebhookTriggerAction.json +0 -0
- /package/json-schema/{system → automation}/WebhookTriggerType.json +0 -0
- /package/json-schema/{data → automation}/WorkflowAction.json +0 -0
- /package/json-schema/{data → automation}/WorkflowTriggerType.json +0 -0
- /package/json-schema/{system → hub}/DatabaseLevelIsolationStrategy.json +0 -0
- /package/json-schema/{system → hub}/Feature.json +0 -0
- /package/json-schema/{system → hub}/LevelIsolationStrategySchema.json +0 -0
- /package/json-schema/{system → hub}/MetricType.json +0 -0
- /package/json-schema/{system → hub}/Plan.json +0 -0
- /package/json-schema/{system → hub}/RowLevelIsolationStrategy.json +0 -0
- /package/json-schema/{system → hub}/TenantIsolationConfig.json +0 -0
- /package/json-schema/{system → hub}/TenantIsolationLevel.json +0 -0
- /package/json-schema/{system → hub}/TenantQuota.json +0 -0
- /package/json-schema/{system → hub}/TenantSecurityPolicy.json +0 -0
- /package/json-schema/{data → permission}/FieldPermission.json +0 -0
- /package/json-schema/{system → permission}/TerritoryModel.json +0 -0
- /package/json-schema/{system → permission}/TerritoryType.json +0 -0
|
@@ -1,19 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DatasourceSchema = exports.DatasourceCapabilities = exports.DriverDefinitionSchema = exports.DriverType =
|
|
3
|
+
exports.DatasourceSchema = exports.DatasourceCapabilities = exports.DriverDefinitionSchema = exports.DriverType = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
/**
|
|
6
|
-
* Driver Type Enum (Built-in)
|
|
7
|
-
* Standard drivers supported by the core platform.
|
|
8
|
-
* Plugins can register additional drivers using different identifiers.
|
|
9
|
-
*/
|
|
10
|
-
exports.BuiltInDrivers = [
|
|
11
|
-
'postgres', 'mysql', 'sqlserver', 'oracle', 'sqlite', // SQL
|
|
12
|
-
'mongo', 'redis', // NoSQL
|
|
13
|
-
'excel', 'csv', 'airtable', // Spreadsheet / Low-code
|
|
14
|
-
'rest_api', 'graphql', 'odata', // Web Services
|
|
15
|
-
'salesforce', 'sap', 'workday' // Enterprise SaaS
|
|
16
|
-
];
|
|
17
5
|
/**
|
|
18
6
|
* Driver Identifier
|
|
19
7
|
* Can be a built-in driver or a plugin-contributed driver (e.g., "com.vendor.snowflake").
|
|
@@ -97,6 +85,22 @@ exports.DatasourceSchema = zod_1.z.object({
|
|
|
97
85
|
* Stored securely (passwords usually interpolated from ENV).
|
|
98
86
|
*/
|
|
99
87
|
config: zod_1.z.record(zod_1.z.any()).describe('Driver specific configuration'),
|
|
88
|
+
/**
|
|
89
|
+
* Connection Pool Configuration
|
|
90
|
+
* Standard connection pooling settings.
|
|
91
|
+
*/
|
|
92
|
+
pool: zod_1.z.object({
|
|
93
|
+
min: zod_1.z.number().default(0).describe('Minimum connections'),
|
|
94
|
+
max: zod_1.z.number().default(10).describe('Maximum connections'),
|
|
95
|
+
idleTimeoutMillis: zod_1.z.number().default(30000).describe('Idle timeout'),
|
|
96
|
+
connectionTimeoutMillis: zod_1.z.number().default(3000).describe('Connection establishment timeout'),
|
|
97
|
+
}).optional().describe('Connection pool settings'),
|
|
98
|
+
/**
|
|
99
|
+
* Read Replicas
|
|
100
|
+
* Optional list of duplicate configurations for read-only operations.
|
|
101
|
+
* Useful for scaling read throughput.
|
|
102
|
+
*/
|
|
103
|
+
readReplicas: zod_1.z.array(zod_1.z.record(zod_1.z.any())).optional().describe('Read-only replica configurations'),
|
|
100
104
|
/**
|
|
101
105
|
* Capability Overrides
|
|
102
106
|
* Manually override what the driver claims to support.
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* MongoDB Driver Configuration Schema
|
|
4
|
+
* Defines the connection settings specific to MongoDB.
|
|
5
|
+
*/
|
|
6
|
+
export declare const MongoConfigSchema: z.ZodObject<{
|
|
7
|
+
/**
|
|
8
|
+
* Connection URI.
|
|
9
|
+
* If provided, it takes precedence over host/port/database.
|
|
10
|
+
* Format: mongodb://[username:password@]host1[:port1][,...hostN[:portN]][/[defaultauthdb][?options]]
|
|
11
|
+
*/
|
|
12
|
+
url: z.ZodOptional<z.ZodString>;
|
|
13
|
+
/**
|
|
14
|
+
* Database Name.
|
|
15
|
+
* Required to identify which database to use within the cluster.
|
|
16
|
+
*/
|
|
17
|
+
database: z.ZodString;
|
|
18
|
+
/**
|
|
19
|
+
* Hostname or IP address.
|
|
20
|
+
* Defaults to localhost if not specified.
|
|
21
|
+
*/
|
|
22
|
+
host: z.ZodDefault<z.ZodString>;
|
|
23
|
+
/**
|
|
24
|
+
* Port number.
|
|
25
|
+
* Defaults to 27017.
|
|
26
|
+
*/
|
|
27
|
+
port: z.ZodDefault<z.ZodNumber>;
|
|
28
|
+
/**
|
|
29
|
+
* Authentication Username.
|
|
30
|
+
*/
|
|
31
|
+
username: z.ZodOptional<z.ZodString>;
|
|
32
|
+
/**
|
|
33
|
+
* Authentication Password.
|
|
34
|
+
*/
|
|
35
|
+
password: z.ZodOptional<z.ZodString>;
|
|
36
|
+
/**
|
|
37
|
+
* Authentication Database.
|
|
38
|
+
* The database where the user credentials are stored (defaults to 'admin' or the target database).
|
|
39
|
+
*/
|
|
40
|
+
authSource: z.ZodOptional<z.ZodString>;
|
|
41
|
+
/**
|
|
42
|
+
* Enable SSL/TLS.
|
|
43
|
+
*/
|
|
44
|
+
ssl: z.ZodDefault<z.ZodBoolean>;
|
|
45
|
+
/**
|
|
46
|
+
* Replica Set Name.
|
|
47
|
+
* Required if connecting to a replica set.
|
|
48
|
+
*/
|
|
49
|
+
replicaSet: z.ZodOptional<z.ZodString>;
|
|
50
|
+
/**
|
|
51
|
+
* Read Preference.
|
|
52
|
+
* Controls which members of the replica set usually receive read operations.
|
|
53
|
+
*/
|
|
54
|
+
readPreference: z.ZodDefault<z.ZodEnum<["primary", "primaryPreferred", "secondary", "secondaryPreferred", "nearest"]>>;
|
|
55
|
+
/**
|
|
56
|
+
* Connection Pool Size.
|
|
57
|
+
* The maximum number of connections in the connection pool.
|
|
58
|
+
*/
|
|
59
|
+
maxPoolSize: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
/**
|
|
61
|
+
* Min Connection Pool Size.
|
|
62
|
+
* The minimum number of connections in the connection pool.
|
|
63
|
+
*/
|
|
64
|
+
minPoolSize: z.ZodOptional<z.ZodNumber>;
|
|
65
|
+
/**
|
|
66
|
+
* Connect Timeout (ms).
|
|
67
|
+
* How long to wait for a connection to be established before timing out.
|
|
68
|
+
*/
|
|
69
|
+
connectTimeoutMS: z.ZodOptional<z.ZodNumber>;
|
|
70
|
+
/**
|
|
71
|
+
* Socket Timeout (ms).
|
|
72
|
+
* How long a socket can remain idle before being closed.
|
|
73
|
+
*/
|
|
74
|
+
socketTimeoutMS: z.ZodOptional<z.ZodNumber>;
|
|
75
|
+
}, "strip", z.ZodTypeAny, {
|
|
76
|
+
database: string;
|
|
77
|
+
host: string;
|
|
78
|
+
port: number;
|
|
79
|
+
ssl: boolean;
|
|
80
|
+
readPreference: "primary" | "secondary" | "primaryPreferred" | "secondaryPreferred" | "nearest";
|
|
81
|
+
url?: string | undefined;
|
|
82
|
+
password?: string | undefined;
|
|
83
|
+
username?: string | undefined;
|
|
84
|
+
authSource?: string | undefined;
|
|
85
|
+
replicaSet?: string | undefined;
|
|
86
|
+
maxPoolSize?: number | undefined;
|
|
87
|
+
minPoolSize?: number | undefined;
|
|
88
|
+
connectTimeoutMS?: number | undefined;
|
|
89
|
+
socketTimeoutMS?: number | undefined;
|
|
90
|
+
}, {
|
|
91
|
+
database: string;
|
|
92
|
+
url?: string | undefined;
|
|
93
|
+
password?: string | undefined;
|
|
94
|
+
host?: string | undefined;
|
|
95
|
+
port?: number | undefined;
|
|
96
|
+
username?: string | undefined;
|
|
97
|
+
authSource?: string | undefined;
|
|
98
|
+
ssl?: boolean | undefined;
|
|
99
|
+
replicaSet?: string | undefined;
|
|
100
|
+
readPreference?: "primary" | "secondary" | "primaryPreferred" | "secondaryPreferred" | "nearest" | undefined;
|
|
101
|
+
maxPoolSize?: number | undefined;
|
|
102
|
+
minPoolSize?: number | undefined;
|
|
103
|
+
connectTimeoutMS?: number | undefined;
|
|
104
|
+
socketTimeoutMS?: number | undefined;
|
|
105
|
+
}>;
|
|
106
|
+
export type MongoConfig = z.infer<typeof MongoConfigSchema>;
|
|
107
|
+
//# sourceMappingURL=mongo.zod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mongo.zod.d.ts","sourceRoot":"","sources":["../../../src/system/driver/mongo.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,eAAO,MAAM,iBAAiB;IAC5B;;;;OAIG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;;OAGG;;IAGH;;OAEG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAKH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEH,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MongoConfigSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
/**
|
|
6
|
+
* MongoDB Driver Configuration Schema
|
|
7
|
+
* Defines the connection settings specific to MongoDB.
|
|
8
|
+
*/
|
|
9
|
+
exports.MongoConfigSchema = zod_1.z.object({
|
|
10
|
+
/**
|
|
11
|
+
* Connection URI.
|
|
12
|
+
* If provided, it takes precedence over host/port/database.
|
|
13
|
+
* Format: mongodb://[username:password@]host1[:port1][,...hostN[:portN]][/[defaultauthdb][?options]]
|
|
14
|
+
*/
|
|
15
|
+
url: zod_1.z.string().optional().describe('Connection URI'),
|
|
16
|
+
/**
|
|
17
|
+
* Database Name.
|
|
18
|
+
* Required to identify which database to use within the cluster.
|
|
19
|
+
*/
|
|
20
|
+
database: zod_1.z.string().describe('Database Name'),
|
|
21
|
+
/**
|
|
22
|
+
* Hostname or IP address.
|
|
23
|
+
* Defaults to localhost if not specified.
|
|
24
|
+
*/
|
|
25
|
+
host: zod_1.z.string().default('127.0.0.1').describe('Host address'),
|
|
26
|
+
/**
|
|
27
|
+
* Port number.
|
|
28
|
+
* Defaults to 27017.
|
|
29
|
+
*/
|
|
30
|
+
port: zod_1.z.number().default(27017).describe('Port number'),
|
|
31
|
+
/**
|
|
32
|
+
* Authentication Username.
|
|
33
|
+
*/
|
|
34
|
+
username: zod_1.z.string().optional().describe('Auth User'),
|
|
35
|
+
/**
|
|
36
|
+
* Authentication Password.
|
|
37
|
+
*/
|
|
38
|
+
password: zod_1.z.string().optional().describe('Auth Password'),
|
|
39
|
+
/**
|
|
40
|
+
* Authentication Database.
|
|
41
|
+
* The database where the user credentials are stored (defaults to 'admin' or the target database).
|
|
42
|
+
*/
|
|
43
|
+
authSource: zod_1.z.string().optional().describe('Authentication Database'),
|
|
44
|
+
/**
|
|
45
|
+
* Enable SSL/TLS.
|
|
46
|
+
*/
|
|
47
|
+
ssl: zod_1.z.boolean().default(false).describe('Enable SSL'),
|
|
48
|
+
/**
|
|
49
|
+
* Replica Set Name.
|
|
50
|
+
* Required if connecting to a replica set.
|
|
51
|
+
*/
|
|
52
|
+
replicaSet: zod_1.z.string().optional().describe('Replica Set Name'),
|
|
53
|
+
/**
|
|
54
|
+
* Read Preference.
|
|
55
|
+
* Controls which members of the replica set usually receive read operations.
|
|
56
|
+
*/
|
|
57
|
+
readPreference: zod_1.z.enum(['primary', 'primaryPreferred', 'secondary', 'secondaryPreferred', 'nearest'])
|
|
58
|
+
.default('primary')
|
|
59
|
+
.describe('Read Preference'),
|
|
60
|
+
/**
|
|
61
|
+
* Connection Pool Size.
|
|
62
|
+
* The maximum number of connections in the connection pool.
|
|
63
|
+
*/
|
|
64
|
+
maxPoolSize: zod_1.z.number().optional().describe('Max Connection Pool Size'),
|
|
65
|
+
/**
|
|
66
|
+
* Min Connection Pool Size.
|
|
67
|
+
* The minimum number of connections in the connection pool.
|
|
68
|
+
*/
|
|
69
|
+
minPoolSize: zod_1.z.number().optional().describe('Min Connection Pool Size'),
|
|
70
|
+
/**
|
|
71
|
+
* Connect Timeout (ms).
|
|
72
|
+
* How long to wait for a connection to be established before timing out.
|
|
73
|
+
*/
|
|
74
|
+
connectTimeoutMS: zod_1.z.number().optional().describe('Connection Timeout (ms)'),
|
|
75
|
+
/**
|
|
76
|
+
* Socket Timeout (ms).
|
|
77
|
+
* How long a socket can remain idle before being closed.
|
|
78
|
+
*/
|
|
79
|
+
socketTimeoutMS: zod_1.z.number().optional().describe('Socket Timeout (ms)'),
|
|
80
|
+
});
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* PostgreSQL Driver Configuration Schema
|
|
4
|
+
* Defines the connection settings specific to PostgreSQL.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PostgresConfigSchema: z.ZodObject<{
|
|
7
|
+
/**
|
|
8
|
+
* Connection URI.
|
|
9
|
+
* If provided, it takes precedence over host/port/database.
|
|
10
|
+
* Format: postgresql://[user[:password]@][netloc][:port][/dbname][?param1=value1&...]
|
|
11
|
+
*/
|
|
12
|
+
url: z.ZodOptional<z.ZodString>;
|
|
13
|
+
/**
|
|
14
|
+
* Database Name.
|
|
15
|
+
*/
|
|
16
|
+
database: z.ZodString;
|
|
17
|
+
/**
|
|
18
|
+
* Hostname or IP address.
|
|
19
|
+
* Defaults to localhost.
|
|
20
|
+
*/
|
|
21
|
+
host: z.ZodDefault<z.ZodString>;
|
|
22
|
+
/**
|
|
23
|
+
* Port number.
|
|
24
|
+
* Defaults to 5432.
|
|
25
|
+
*/
|
|
26
|
+
port: z.ZodDefault<z.ZodNumber>;
|
|
27
|
+
/**
|
|
28
|
+
* Authentication Username.
|
|
29
|
+
*/
|
|
30
|
+
username: z.ZodOptional<z.ZodString>;
|
|
31
|
+
/**
|
|
32
|
+
* Authentication Password.
|
|
33
|
+
*/
|
|
34
|
+
password: z.ZodOptional<z.ZodString>;
|
|
35
|
+
/**
|
|
36
|
+
* Default Schema.
|
|
37
|
+
* The schema to use for tables that do not specify a schema.
|
|
38
|
+
* Defaults to 'public'.
|
|
39
|
+
*/
|
|
40
|
+
schema: z.ZodDefault<z.ZodString>;
|
|
41
|
+
/**
|
|
42
|
+
* Enable SSL/TLS.
|
|
43
|
+
* Can be a boolean or an object with specific SSL configuration (ca, cert, key, rejectUnauthorized).
|
|
44
|
+
*/
|
|
45
|
+
ssl: z.ZodOptional<z.ZodUnion<[z.ZodBoolean, z.ZodObject<{
|
|
46
|
+
rejectUnauthorized: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
+
ca: z.ZodOptional<z.ZodString>;
|
|
48
|
+
key: z.ZodOptional<z.ZodString>;
|
|
49
|
+
cert: z.ZodOptional<z.ZodString>;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
key?: string | undefined;
|
|
52
|
+
rejectUnauthorized?: boolean | undefined;
|
|
53
|
+
ca?: string | undefined;
|
|
54
|
+
cert?: string | undefined;
|
|
55
|
+
}, {
|
|
56
|
+
key?: string | undefined;
|
|
57
|
+
rejectUnauthorized?: boolean | undefined;
|
|
58
|
+
ca?: string | undefined;
|
|
59
|
+
cert?: string | undefined;
|
|
60
|
+
}>]>>;
|
|
61
|
+
/**
|
|
62
|
+
* Application Name.
|
|
63
|
+
* Sets the application_name configuration parameter.
|
|
64
|
+
*/
|
|
65
|
+
applicationName: z.ZodOptional<z.ZodString>;
|
|
66
|
+
/**
|
|
67
|
+
* Connection Pool: Max Clients.
|
|
68
|
+
* Maximum number of clients the pool should contain.
|
|
69
|
+
*/
|
|
70
|
+
max: z.ZodDefault<z.ZodNumber>;
|
|
71
|
+
/**
|
|
72
|
+
* Connection Pool: Min Clients.
|
|
73
|
+
* Minimum number of clients to keep in the pool.
|
|
74
|
+
*/
|
|
75
|
+
min: z.ZodDefault<z.ZodNumber>;
|
|
76
|
+
/**
|
|
77
|
+
* Idle Timeout (ms).
|
|
78
|
+
* The number of milliseconds a client must sit idle in the pool and not be checked out
|
|
79
|
+
* before it is disconnected from the backend and discarded.
|
|
80
|
+
*/
|
|
81
|
+
idleTimeoutMillis: z.ZodOptional<z.ZodNumber>;
|
|
82
|
+
/**
|
|
83
|
+
* Connection Timeout (ms).
|
|
84
|
+
* The number of milliseconds to wait before timing out when connecting a new client.
|
|
85
|
+
*/
|
|
86
|
+
connectionTimeoutMillis: z.ZodOptional<z.ZodNumber>;
|
|
87
|
+
/**
|
|
88
|
+
* Statement Timeout (ms).
|
|
89
|
+
* Abort any statement that takes more than the specified number of milliseconds.
|
|
90
|
+
*/
|
|
91
|
+
statementTimeout: z.ZodOptional<z.ZodNumber>;
|
|
92
|
+
}, "strip", z.ZodTypeAny, {
|
|
93
|
+
min: number;
|
|
94
|
+
max: number;
|
|
95
|
+
database: string;
|
|
96
|
+
schema: string;
|
|
97
|
+
host: string;
|
|
98
|
+
port: number;
|
|
99
|
+
url?: string | undefined;
|
|
100
|
+
password?: string | undefined;
|
|
101
|
+
idleTimeoutMillis?: number | undefined;
|
|
102
|
+
connectionTimeoutMillis?: number | undefined;
|
|
103
|
+
username?: string | undefined;
|
|
104
|
+
ssl?: boolean | {
|
|
105
|
+
key?: string | undefined;
|
|
106
|
+
rejectUnauthorized?: boolean | undefined;
|
|
107
|
+
ca?: string | undefined;
|
|
108
|
+
cert?: string | undefined;
|
|
109
|
+
} | undefined;
|
|
110
|
+
applicationName?: string | undefined;
|
|
111
|
+
statementTimeout?: number | undefined;
|
|
112
|
+
}, {
|
|
113
|
+
database: string;
|
|
114
|
+
min?: number | undefined;
|
|
115
|
+
max?: number | undefined;
|
|
116
|
+
url?: string | undefined;
|
|
117
|
+
password?: string | undefined;
|
|
118
|
+
schema?: string | undefined;
|
|
119
|
+
idleTimeoutMillis?: number | undefined;
|
|
120
|
+
connectionTimeoutMillis?: number | undefined;
|
|
121
|
+
host?: string | undefined;
|
|
122
|
+
port?: number | undefined;
|
|
123
|
+
username?: string | undefined;
|
|
124
|
+
ssl?: boolean | {
|
|
125
|
+
key?: string | undefined;
|
|
126
|
+
rejectUnauthorized?: boolean | undefined;
|
|
127
|
+
ca?: string | undefined;
|
|
128
|
+
cert?: string | undefined;
|
|
129
|
+
} | undefined;
|
|
130
|
+
applicationName?: string | undefined;
|
|
131
|
+
statementTimeout?: number | undefined;
|
|
132
|
+
}>;
|
|
133
|
+
export type PostgresConfig = z.infer<typeof PostgresConfigSchema>;
|
|
134
|
+
//# sourceMappingURL=postgres.zod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postgres.zod.d.ts","sourceRoot":"","sources":["../../../src/system/driver/postgres.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,eAAO,MAAM,oBAAoB;IAC/B;;;;OAIG;;IAGH;;OAEG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;;;OAIG;;IAGH;;;OAGG;;;;;;;;;;;;;;;;;IAWH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;;;OAIG;;IAGH;;;OAGG;;IAGF;;;MAGE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEH,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PostgresConfigSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
/**
|
|
6
|
+
* PostgreSQL Driver Configuration Schema
|
|
7
|
+
* Defines the connection settings specific to PostgreSQL.
|
|
8
|
+
*/
|
|
9
|
+
exports.PostgresConfigSchema = zod_1.z.object({
|
|
10
|
+
/**
|
|
11
|
+
* Connection URI.
|
|
12
|
+
* If provided, it takes precedence over host/port/database.
|
|
13
|
+
* Format: postgresql://[user[:password]@][netloc][:port][/dbname][?param1=value1&...]
|
|
14
|
+
*/
|
|
15
|
+
url: zod_1.z.string().optional().describe('Connection URI'),
|
|
16
|
+
/**
|
|
17
|
+
* Database Name.
|
|
18
|
+
*/
|
|
19
|
+
database: zod_1.z.string().describe('Database Name'),
|
|
20
|
+
/**
|
|
21
|
+
* Hostname or IP address.
|
|
22
|
+
* Defaults to localhost.
|
|
23
|
+
*/
|
|
24
|
+
host: zod_1.z.string().default('localhost').describe('Host address'),
|
|
25
|
+
/**
|
|
26
|
+
* Port number.
|
|
27
|
+
* Defaults to 5432.
|
|
28
|
+
*/
|
|
29
|
+
port: zod_1.z.number().default(5432).describe('Port number'),
|
|
30
|
+
/**
|
|
31
|
+
* Authentication Username.
|
|
32
|
+
*/
|
|
33
|
+
username: zod_1.z.string().optional().describe('Auth User'),
|
|
34
|
+
/**
|
|
35
|
+
* Authentication Password.
|
|
36
|
+
*/
|
|
37
|
+
password: zod_1.z.string().optional().describe('Auth Password'),
|
|
38
|
+
/**
|
|
39
|
+
* Default Schema.
|
|
40
|
+
* The schema to use for tables that do not specify a schema.
|
|
41
|
+
* Defaults to 'public'.
|
|
42
|
+
*/
|
|
43
|
+
schema: zod_1.z.string().default('public').describe('Default Schema'),
|
|
44
|
+
/**
|
|
45
|
+
* Enable SSL/TLS.
|
|
46
|
+
* Can be a boolean or an object with specific SSL configuration (ca, cert, key, rejectUnauthorized).
|
|
47
|
+
*/
|
|
48
|
+
ssl: zod_1.z.union([
|
|
49
|
+
zod_1.z.boolean(),
|
|
50
|
+
zod_1.z.object({
|
|
51
|
+
rejectUnauthorized: zod_1.z.boolean().optional(),
|
|
52
|
+
ca: zod_1.z.string().optional(),
|
|
53
|
+
key: zod_1.z.string().optional(),
|
|
54
|
+
cert: zod_1.z.string().optional(),
|
|
55
|
+
})
|
|
56
|
+
]).optional().describe('Enable SSL'),
|
|
57
|
+
/**
|
|
58
|
+
* Application Name.
|
|
59
|
+
* Sets the application_name configuration parameter.
|
|
60
|
+
*/
|
|
61
|
+
applicationName: zod_1.z.string().optional().describe('Application Name'),
|
|
62
|
+
/**
|
|
63
|
+
* Connection Pool: Max Clients.
|
|
64
|
+
* Maximum number of clients the pool should contain.
|
|
65
|
+
*/
|
|
66
|
+
max: zod_1.z.number().default(10).describe('Max Pool Size'),
|
|
67
|
+
/**
|
|
68
|
+
* Connection Pool: Min Clients.
|
|
69
|
+
* Minimum number of clients to keep in the pool.
|
|
70
|
+
*/
|
|
71
|
+
min: zod_1.z.number().default(0).describe('Min Pool Size'),
|
|
72
|
+
/**
|
|
73
|
+
* Idle Timeout (ms).
|
|
74
|
+
* The number of milliseconds a client must sit idle in the pool and not be checked out
|
|
75
|
+
* before it is disconnected from the backend and discarded.
|
|
76
|
+
*/
|
|
77
|
+
idleTimeoutMillis: zod_1.z.number().optional().describe('Idle Timeout (ms)'),
|
|
78
|
+
/**
|
|
79
|
+
* Connection Timeout (ms).
|
|
80
|
+
* The number of milliseconds to wait before timing out when connecting a new client.
|
|
81
|
+
*/
|
|
82
|
+
connectionTimeoutMillis: zod_1.z.number().optional().describe('Connection Timeout (ms)'),
|
|
83
|
+
/**
|
|
84
|
+
* Statement Timeout (ms).
|
|
85
|
+
* Abort any statement that takes more than the specified number of milliseconds.
|
|
86
|
+
*/
|
|
87
|
+
statementTimeout: zod_1.z.number().optional().describe('Statement Timeout (ms)'),
|
|
88
|
+
});
|