@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
|
@@ -54,14 +54,14 @@ export declare const AuditEventActorSchema: z.ZodObject<{
|
|
|
54
54
|
*/
|
|
55
55
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
|
57
|
-
type: "
|
|
57
|
+
type: "user" | "system" | "service" | "api_client" | "integration";
|
|
58
58
|
id: string;
|
|
59
59
|
email?: string | undefined;
|
|
60
60
|
name?: string | undefined;
|
|
61
61
|
ipAddress?: string | undefined;
|
|
62
62
|
userAgent?: string | undefined;
|
|
63
63
|
}, {
|
|
64
|
-
type: "
|
|
64
|
+
type: "user" | "system" | "service" | "api_client" | "integration";
|
|
65
65
|
id: string;
|
|
66
66
|
email?: string | undefined;
|
|
67
67
|
name?: string | undefined;
|
|
@@ -179,14 +179,14 @@ export declare const AuditEventSchema: z.ZodObject<{
|
|
|
179
179
|
*/
|
|
180
180
|
userAgent: z.ZodOptional<z.ZodString>;
|
|
181
181
|
}, "strip", z.ZodTypeAny, {
|
|
182
|
-
type: "
|
|
182
|
+
type: "user" | "system" | "service" | "api_client" | "integration";
|
|
183
183
|
id: string;
|
|
184
184
|
email?: string | undefined;
|
|
185
185
|
name?: string | undefined;
|
|
186
186
|
ipAddress?: string | undefined;
|
|
187
187
|
userAgent?: string | undefined;
|
|
188
188
|
}, {
|
|
189
|
-
type: "
|
|
189
|
+
type: "user" | "system" | "service" | "api_client" | "integration";
|
|
190
190
|
id: string;
|
|
191
191
|
email?: string | undefined;
|
|
192
192
|
name?: string | undefined;
|
|
@@ -293,22 +293,23 @@ export declare const AuditEventSchema: z.ZodObject<{
|
|
|
293
293
|
description: string;
|
|
294
294
|
severity: "error" | "warning" | "info" | "debug" | "notice" | "critical" | "alert" | "emergency";
|
|
295
295
|
id: string;
|
|
296
|
+
result: "partial" | "success" | "failure";
|
|
296
297
|
eventType: "data.create" | "data.read" | "data.update" | "data.delete" | "data.export" | "data.import" | "data.bulk_update" | "data.bulk_delete" | "auth.login" | "auth.login_failed" | "auth.logout" | "auth.session_created" | "auth.session_expired" | "auth.password_reset" | "auth.password_changed" | "auth.email_verified" | "auth.mfa_enabled" | "auth.mfa_disabled" | "auth.account_locked" | "auth.account_unlocked" | "authz.permission_granted" | "authz.permission_revoked" | "authz.role_assigned" | "authz.role_removed" | "authz.role_created" | "authz.role_updated" | "authz.role_deleted" | "authz.policy_created" | "authz.policy_updated" | "authz.policy_deleted" | "system.config_changed" | "system.plugin_installed" | "system.plugin_uninstalled" | "system.backup_created" | "system.backup_restored" | "system.integration_added" | "system.integration_removed" | "security.access_denied" | "security.suspicious_activity" | "security.data_breach" | "security.api_key_created" | "security.api_key_revoked";
|
|
297
298
|
timestamp: string;
|
|
298
299
|
actor: {
|
|
299
|
-
type: "
|
|
300
|
+
type: "user" | "system" | "service" | "api_client" | "integration";
|
|
300
301
|
id: string;
|
|
301
302
|
email?: string | undefined;
|
|
302
303
|
name?: string | undefined;
|
|
303
304
|
ipAddress?: string | undefined;
|
|
304
305
|
userAgent?: string | undefined;
|
|
305
306
|
};
|
|
306
|
-
result: "partial" | "success" | "failure";
|
|
307
307
|
location?: {
|
|
308
308
|
city?: string | undefined;
|
|
309
309
|
country?: string | undefined;
|
|
310
310
|
region?: string | undefined;
|
|
311
311
|
} | undefined;
|
|
312
|
+
tenantId?: string | undefined;
|
|
312
313
|
target?: {
|
|
313
314
|
type: string;
|
|
314
315
|
id: string;
|
|
@@ -322,7 +323,6 @@ export declare const AuditEventSchema: z.ZodObject<{
|
|
|
322
323
|
newValue?: any;
|
|
323
324
|
}[] | undefined;
|
|
324
325
|
errorMessage?: string | undefined;
|
|
325
|
-
tenantId?: string | undefined;
|
|
326
326
|
requestId?: string | undefined;
|
|
327
327
|
}, {
|
|
328
328
|
description: string;
|
|
@@ -330,7 +330,7 @@ export declare const AuditEventSchema: z.ZodObject<{
|
|
|
330
330
|
eventType: "data.create" | "data.read" | "data.update" | "data.delete" | "data.export" | "data.import" | "data.bulk_update" | "data.bulk_delete" | "auth.login" | "auth.login_failed" | "auth.logout" | "auth.session_created" | "auth.session_expired" | "auth.password_reset" | "auth.password_changed" | "auth.email_verified" | "auth.mfa_enabled" | "auth.mfa_disabled" | "auth.account_locked" | "auth.account_unlocked" | "authz.permission_granted" | "authz.permission_revoked" | "authz.role_assigned" | "authz.role_removed" | "authz.role_created" | "authz.role_updated" | "authz.role_deleted" | "authz.policy_created" | "authz.policy_updated" | "authz.policy_deleted" | "system.config_changed" | "system.plugin_installed" | "system.plugin_uninstalled" | "system.backup_created" | "system.backup_restored" | "system.integration_added" | "system.integration_removed" | "security.access_denied" | "security.suspicious_activity" | "security.data_breach" | "security.api_key_created" | "security.api_key_revoked";
|
|
331
331
|
timestamp: string;
|
|
332
332
|
actor: {
|
|
333
|
-
type: "
|
|
333
|
+
type: "user" | "system" | "service" | "api_client" | "integration";
|
|
334
334
|
id: string;
|
|
335
335
|
email?: string | undefined;
|
|
336
336
|
name?: string | undefined;
|
|
@@ -343,6 +343,8 @@ export declare const AuditEventSchema: z.ZodObject<{
|
|
|
343
343
|
region?: string | undefined;
|
|
344
344
|
} | undefined;
|
|
345
345
|
severity?: "error" | "warning" | "info" | "debug" | "notice" | "critical" | "alert" | "emergency" | undefined;
|
|
346
|
+
result?: "partial" | "success" | "failure" | undefined;
|
|
347
|
+
tenantId?: string | undefined;
|
|
346
348
|
target?: {
|
|
347
349
|
type: string;
|
|
348
350
|
id: string;
|
|
@@ -355,9 +357,7 @@ export declare const AuditEventSchema: z.ZodObject<{
|
|
|
355
357
|
oldValue?: any;
|
|
356
358
|
newValue?: any;
|
|
357
359
|
}[] | undefined;
|
|
358
|
-
result?: "partial" | "success" | "failure" | undefined;
|
|
359
360
|
errorMessage?: string | undefined;
|
|
360
|
-
tenantId?: string | undefined;
|
|
361
361
|
requestId?: string | undefined;
|
|
362
362
|
}>;
|
|
363
363
|
export type AuditEvent = z.infer<typeof AuditEventSchema>;
|
|
@@ -388,15 +388,15 @@ export declare const AuditRetentionPolicySchema: z.ZodObject<{
|
|
|
388
388
|
}, "strip", z.ZodTypeAny, {
|
|
389
389
|
type: "s3" | "gcs" | "azure_blob" | "filesystem";
|
|
390
390
|
path?: string | undefined;
|
|
391
|
-
credentials?: Record<string, any> | undefined;
|
|
392
391
|
endpoint?: string | undefined;
|
|
393
392
|
bucket?: string | undefined;
|
|
393
|
+
credentials?: Record<string, any> | undefined;
|
|
394
394
|
}, {
|
|
395
395
|
type: "s3" | "gcs" | "azure_blob" | "filesystem";
|
|
396
396
|
path?: string | undefined;
|
|
397
|
-
credentials?: Record<string, any> | undefined;
|
|
398
397
|
endpoint?: string | undefined;
|
|
399
398
|
bucket?: string | undefined;
|
|
399
|
+
credentials?: Record<string, any> | undefined;
|
|
400
400
|
}>>;
|
|
401
401
|
/**
|
|
402
402
|
* Event types that have different retention periods
|
|
@@ -414,9 +414,9 @@ export declare const AuditRetentionPolicySchema: z.ZodObject<{
|
|
|
414
414
|
archiveStorage?: {
|
|
415
415
|
type: "s3" | "gcs" | "azure_blob" | "filesystem";
|
|
416
416
|
path?: string | undefined;
|
|
417
|
-
credentials?: Record<string, any> | undefined;
|
|
418
417
|
endpoint?: string | undefined;
|
|
419
418
|
bucket?: string | undefined;
|
|
419
|
+
credentials?: Record<string, any> | undefined;
|
|
420
420
|
} | undefined;
|
|
421
421
|
customRetention?: Record<string, number> | undefined;
|
|
422
422
|
minimumRetentionDays?: number | undefined;
|
|
@@ -426,9 +426,9 @@ export declare const AuditRetentionPolicySchema: z.ZodObject<{
|
|
|
426
426
|
archiveStorage?: {
|
|
427
427
|
type: "s3" | "gcs" | "azure_blob" | "filesystem";
|
|
428
428
|
path?: string | undefined;
|
|
429
|
-
credentials?: Record<string, any> | undefined;
|
|
430
429
|
endpoint?: string | undefined;
|
|
431
430
|
bucket?: string | undefined;
|
|
431
|
+
credentials?: Record<string, any> | undefined;
|
|
432
432
|
} | undefined;
|
|
433
433
|
customRetention?: Record<string, number> | undefined;
|
|
434
434
|
minimumRetentionDays?: number | undefined;
|
|
@@ -482,13 +482,13 @@ export declare const SuspiciousActivityRuleSchema: z.ZodObject<{
|
|
|
482
482
|
}, "strip", z.ZodTypeAny, {
|
|
483
483
|
threshold: number;
|
|
484
484
|
windowSeconds: number;
|
|
485
|
-
filters?: Record<string, any> | undefined;
|
|
486
485
|
groupBy?: string[] | undefined;
|
|
486
|
+
filters?: Record<string, any> | undefined;
|
|
487
487
|
}, {
|
|
488
488
|
threshold: number;
|
|
489
489
|
windowSeconds: number;
|
|
490
|
-
filters?: Record<string, any> | undefined;
|
|
491
490
|
groupBy?: string[] | undefined;
|
|
491
|
+
filters?: Record<string, any> | undefined;
|
|
492
492
|
}>;
|
|
493
493
|
/**
|
|
494
494
|
* Actions to take when rule is triggered
|
|
@@ -528,12 +528,12 @@ export declare const SuspiciousActivityRuleSchema: z.ZodObject<{
|
|
|
528
528
|
condition: {
|
|
529
529
|
threshold: number;
|
|
530
530
|
windowSeconds: number;
|
|
531
|
-
filters?: Record<string, any> | undefined;
|
|
532
531
|
groupBy?: string[] | undefined;
|
|
532
|
+
filters?: Record<string, any> | undefined;
|
|
533
533
|
};
|
|
534
|
-
actions: ("alert" | "lock_account" | "block_ip" | "require_mfa" | "log_critical" | "webhook")[];
|
|
535
534
|
id: string;
|
|
536
535
|
enabled: boolean;
|
|
536
|
+
actions: ("alert" | "lock_account" | "block_ip" | "require_mfa" | "log_critical" | "webhook")[];
|
|
537
537
|
eventTypes: ("data.create" | "data.read" | "data.update" | "data.delete" | "data.export" | "data.import" | "data.bulk_update" | "data.bulk_delete" | "auth.login" | "auth.login_failed" | "auth.logout" | "auth.session_created" | "auth.session_expired" | "auth.password_reset" | "auth.password_changed" | "auth.email_verified" | "auth.mfa_enabled" | "auth.mfa_disabled" | "auth.account_locked" | "auth.account_unlocked" | "authz.permission_granted" | "authz.permission_revoked" | "authz.role_assigned" | "authz.role_removed" | "authz.role_created" | "authz.role_updated" | "authz.role_deleted" | "authz.policy_created" | "authz.policy_updated" | "authz.policy_deleted" | "system.config_changed" | "system.plugin_installed" | "system.plugin_uninstalled" | "system.backup_created" | "system.backup_restored" | "system.integration_added" | "system.integration_removed" | "security.access_denied" | "security.suspicious_activity" | "security.data_breach" | "security.api_key_created" | "security.api_key_revoked")[];
|
|
538
538
|
alertSeverity: "error" | "warning" | "info" | "debug" | "notice" | "critical" | "alert" | "emergency";
|
|
539
539
|
description?: string | undefined;
|
|
@@ -547,11 +547,11 @@ export declare const SuspiciousActivityRuleSchema: z.ZodObject<{
|
|
|
547
547
|
condition: {
|
|
548
548
|
threshold: number;
|
|
549
549
|
windowSeconds: number;
|
|
550
|
-
filters?: Record<string, any> | undefined;
|
|
551
550
|
groupBy?: string[] | undefined;
|
|
551
|
+
filters?: Record<string, any> | undefined;
|
|
552
552
|
};
|
|
553
|
-
actions: ("alert" | "lock_account" | "block_ip" | "require_mfa" | "log_critical" | "webhook")[];
|
|
554
553
|
id: string;
|
|
554
|
+
actions: ("alert" | "lock_account" | "block_ip" | "require_mfa" | "log_critical" | "webhook")[];
|
|
555
555
|
eventTypes: ("data.create" | "data.read" | "data.update" | "data.delete" | "data.export" | "data.import" | "data.bulk_update" | "data.bulk_delete" | "auth.login" | "auth.login_failed" | "auth.logout" | "auth.session_created" | "auth.session_expired" | "auth.password_reset" | "auth.password_changed" | "auth.email_verified" | "auth.mfa_enabled" | "auth.mfa_disabled" | "auth.account_locked" | "auth.account_unlocked" | "authz.permission_granted" | "authz.permission_revoked" | "authz.role_assigned" | "authz.role_removed" | "authz.role_created" | "authz.role_updated" | "authz.role_deleted" | "authz.policy_created" | "authz.policy_updated" | "authz.policy_deleted" | "system.config_changed" | "system.plugin_installed" | "system.plugin_uninstalled" | "system.backup_created" | "system.backup_restored" | "system.integration_added" | "system.integration_removed" | "security.access_denied" | "security.suspicious_activity" | "security.data_breach" | "security.api_key_created" | "security.api_key_revoked")[];
|
|
556
556
|
description?: string | undefined;
|
|
557
557
|
enabled?: boolean | undefined;
|
|
@@ -602,12 +602,12 @@ export declare const AuditStorageConfigSchema: z.ZodObject<{
|
|
|
602
602
|
bufferSize: number;
|
|
603
603
|
flushIntervalSeconds: number;
|
|
604
604
|
compression: boolean;
|
|
605
|
-
config?: Record<string, any> | undefined;
|
|
606
605
|
connectionString?: string | undefined;
|
|
606
|
+
config?: Record<string, any> | undefined;
|
|
607
607
|
}, {
|
|
608
608
|
type: "custom" | "database" | "s3" | "gcs" | "azure_blob" | "elasticsearch" | "mongodb" | "clickhouse";
|
|
609
|
-
config?: Record<string, any> | undefined;
|
|
610
609
|
connectionString?: string | undefined;
|
|
610
|
+
config?: Record<string, any> | undefined;
|
|
611
611
|
bufferEnabled?: boolean | undefined;
|
|
612
612
|
bufferSize?: number | undefined;
|
|
613
613
|
flushIntervalSeconds?: number | undefined;
|
|
@@ -642,11 +642,11 @@ export declare const AuditEventFilterSchema: z.ZodObject<{
|
|
|
642
642
|
from: z.ZodString;
|
|
643
643
|
to: z.ZodString;
|
|
644
644
|
}, "strip", z.ZodTypeAny, {
|
|
645
|
-
to: string;
|
|
646
645
|
from: string;
|
|
647
|
-
}, {
|
|
648
646
|
to: string;
|
|
647
|
+
}, {
|
|
649
648
|
from: string;
|
|
649
|
+
to: string;
|
|
650
650
|
}>>;
|
|
651
651
|
/**
|
|
652
652
|
* Filter by result status
|
|
@@ -667,8 +667,8 @@ export declare const AuditEventFilterSchema: z.ZodObject<{
|
|
|
667
667
|
severities?: ("error" | "warning" | "info" | "debug" | "notice" | "critical" | "alert" | "emergency")[] | undefined;
|
|
668
668
|
actorId?: string | undefined;
|
|
669
669
|
timeRange?: {
|
|
670
|
-
to: string;
|
|
671
670
|
from: string;
|
|
671
|
+
to: string;
|
|
672
672
|
} | undefined;
|
|
673
673
|
searchQuery?: string | undefined;
|
|
674
674
|
customFilters?: Record<string, any> | undefined;
|
|
@@ -679,8 +679,8 @@ export declare const AuditEventFilterSchema: z.ZodObject<{
|
|
|
679
679
|
severities?: ("error" | "warning" | "info" | "debug" | "notice" | "critical" | "alert" | "emergency")[] | undefined;
|
|
680
680
|
actorId?: string | undefined;
|
|
681
681
|
timeRange?: {
|
|
682
|
-
to: string;
|
|
683
682
|
from: string;
|
|
683
|
+
to: string;
|
|
684
684
|
} | undefined;
|
|
685
685
|
searchQuery?: string | undefined;
|
|
686
686
|
customFilters?: Record<string, any> | undefined;
|
|
@@ -757,12 +757,12 @@ export declare const AuditConfigSchema: z.ZodObject<{
|
|
|
757
757
|
bufferSize: number;
|
|
758
758
|
flushIntervalSeconds: number;
|
|
759
759
|
compression: boolean;
|
|
760
|
-
config?: Record<string, any> | undefined;
|
|
761
760
|
connectionString?: string | undefined;
|
|
761
|
+
config?: Record<string, any> | undefined;
|
|
762
762
|
}, {
|
|
763
763
|
type: "custom" | "database" | "s3" | "gcs" | "azure_blob" | "elasticsearch" | "mongodb" | "clickhouse";
|
|
764
|
-
config?: Record<string, any> | undefined;
|
|
765
764
|
connectionString?: string | undefined;
|
|
765
|
+
config?: Record<string, any> | undefined;
|
|
766
766
|
bufferEnabled?: boolean | undefined;
|
|
767
767
|
bufferSize?: number | undefined;
|
|
768
768
|
flushIntervalSeconds?: number | undefined;
|
|
@@ -794,15 +794,15 @@ export declare const AuditConfigSchema: z.ZodObject<{
|
|
|
794
794
|
}, "strip", z.ZodTypeAny, {
|
|
795
795
|
type: "s3" | "gcs" | "azure_blob" | "filesystem";
|
|
796
796
|
path?: string | undefined;
|
|
797
|
-
credentials?: Record<string, any> | undefined;
|
|
798
797
|
endpoint?: string | undefined;
|
|
799
798
|
bucket?: string | undefined;
|
|
799
|
+
credentials?: Record<string, any> | undefined;
|
|
800
800
|
}, {
|
|
801
801
|
type: "s3" | "gcs" | "azure_blob" | "filesystem";
|
|
802
802
|
path?: string | undefined;
|
|
803
|
-
credentials?: Record<string, any> | undefined;
|
|
804
803
|
endpoint?: string | undefined;
|
|
805
804
|
bucket?: string | undefined;
|
|
805
|
+
credentials?: Record<string, any> | undefined;
|
|
806
806
|
}>>;
|
|
807
807
|
/**
|
|
808
808
|
* Event types that have different retention periods
|
|
@@ -820,9 +820,9 @@ export declare const AuditConfigSchema: z.ZodObject<{
|
|
|
820
820
|
archiveStorage?: {
|
|
821
821
|
type: "s3" | "gcs" | "azure_blob" | "filesystem";
|
|
822
822
|
path?: string | undefined;
|
|
823
|
-
credentials?: Record<string, any> | undefined;
|
|
824
823
|
endpoint?: string | undefined;
|
|
825
824
|
bucket?: string | undefined;
|
|
825
|
+
credentials?: Record<string, any> | undefined;
|
|
826
826
|
} | undefined;
|
|
827
827
|
customRetention?: Record<string, number> | undefined;
|
|
828
828
|
minimumRetentionDays?: number | undefined;
|
|
@@ -832,9 +832,9 @@ export declare const AuditConfigSchema: z.ZodObject<{
|
|
|
832
832
|
archiveStorage?: {
|
|
833
833
|
type: "s3" | "gcs" | "azure_blob" | "filesystem";
|
|
834
834
|
path?: string | undefined;
|
|
835
|
-
credentials?: Record<string, any> | undefined;
|
|
836
835
|
endpoint?: string | undefined;
|
|
837
836
|
bucket?: string | undefined;
|
|
837
|
+
credentials?: Record<string, any> | undefined;
|
|
838
838
|
} | undefined;
|
|
839
839
|
customRetention?: Record<string, number> | undefined;
|
|
840
840
|
minimumRetentionDays?: number | undefined;
|
|
@@ -886,13 +886,13 @@ export declare const AuditConfigSchema: z.ZodObject<{
|
|
|
886
886
|
}, "strip", z.ZodTypeAny, {
|
|
887
887
|
threshold: number;
|
|
888
888
|
windowSeconds: number;
|
|
889
|
-
filters?: Record<string, any> | undefined;
|
|
890
889
|
groupBy?: string[] | undefined;
|
|
890
|
+
filters?: Record<string, any> | undefined;
|
|
891
891
|
}, {
|
|
892
892
|
threshold: number;
|
|
893
893
|
windowSeconds: number;
|
|
894
|
-
filters?: Record<string, any> | undefined;
|
|
895
894
|
groupBy?: string[] | undefined;
|
|
895
|
+
filters?: Record<string, any> | undefined;
|
|
896
896
|
}>;
|
|
897
897
|
/**
|
|
898
898
|
* Actions to take when rule is triggered
|
|
@@ -932,12 +932,12 @@ export declare const AuditConfigSchema: z.ZodObject<{
|
|
|
932
932
|
condition: {
|
|
933
933
|
threshold: number;
|
|
934
934
|
windowSeconds: number;
|
|
935
|
-
filters?: Record<string, any> | undefined;
|
|
936
935
|
groupBy?: string[] | undefined;
|
|
936
|
+
filters?: Record<string, any> | undefined;
|
|
937
937
|
};
|
|
938
|
-
actions: ("alert" | "lock_account" | "block_ip" | "require_mfa" | "log_critical" | "webhook")[];
|
|
939
938
|
id: string;
|
|
940
939
|
enabled: boolean;
|
|
940
|
+
actions: ("alert" | "lock_account" | "block_ip" | "require_mfa" | "log_critical" | "webhook")[];
|
|
941
941
|
eventTypes: ("data.create" | "data.read" | "data.update" | "data.delete" | "data.export" | "data.import" | "data.bulk_update" | "data.bulk_delete" | "auth.login" | "auth.login_failed" | "auth.logout" | "auth.session_created" | "auth.session_expired" | "auth.password_reset" | "auth.password_changed" | "auth.email_verified" | "auth.mfa_enabled" | "auth.mfa_disabled" | "auth.account_locked" | "auth.account_unlocked" | "authz.permission_granted" | "authz.permission_revoked" | "authz.role_assigned" | "authz.role_removed" | "authz.role_created" | "authz.role_updated" | "authz.role_deleted" | "authz.policy_created" | "authz.policy_updated" | "authz.policy_deleted" | "system.config_changed" | "system.plugin_installed" | "system.plugin_uninstalled" | "system.backup_created" | "system.backup_restored" | "system.integration_added" | "system.integration_removed" | "security.access_denied" | "security.suspicious_activity" | "security.data_breach" | "security.api_key_created" | "security.api_key_revoked")[];
|
|
942
942
|
alertSeverity: "error" | "warning" | "info" | "debug" | "notice" | "critical" | "alert" | "emergency";
|
|
943
943
|
description?: string | undefined;
|
|
@@ -951,11 +951,11 @@ export declare const AuditConfigSchema: z.ZodObject<{
|
|
|
951
951
|
condition: {
|
|
952
952
|
threshold: number;
|
|
953
953
|
windowSeconds: number;
|
|
954
|
-
filters?: Record<string, any> | undefined;
|
|
955
954
|
groupBy?: string[] | undefined;
|
|
955
|
+
filters?: Record<string, any> | undefined;
|
|
956
956
|
};
|
|
957
|
-
actions: ("alert" | "lock_account" | "block_ip" | "require_mfa" | "log_critical" | "webhook")[];
|
|
958
957
|
id: string;
|
|
958
|
+
actions: ("alert" | "lock_account" | "block_ip" | "require_mfa" | "log_critical" | "webhook")[];
|
|
959
959
|
eventTypes: ("data.create" | "data.read" | "data.update" | "data.delete" | "data.export" | "data.import" | "data.bulk_update" | "data.bulk_delete" | "auth.login" | "auth.login_failed" | "auth.logout" | "auth.session_created" | "auth.session_expired" | "auth.password_reset" | "auth.password_changed" | "auth.email_verified" | "auth.mfa_enabled" | "auth.mfa_disabled" | "auth.account_locked" | "auth.account_unlocked" | "authz.permission_granted" | "authz.permission_revoked" | "authz.role_assigned" | "authz.role_removed" | "authz.role_created" | "authz.role_updated" | "authz.role_deleted" | "authz.policy_created" | "authz.policy_updated" | "authz.policy_deleted" | "system.config_changed" | "system.plugin_installed" | "system.plugin_uninstalled" | "system.backup_created" | "system.backup_restored" | "system.integration_added" | "system.integration_removed" | "security.access_denied" | "security.suspicious_activity" | "security.data_breach" | "security.api_key_created" | "security.api_key_revoked")[];
|
|
960
960
|
description?: string | undefined;
|
|
961
961
|
enabled?: boolean | undefined;
|
|
@@ -1045,8 +1045,8 @@ export declare const AuditConfigSchema: z.ZodObject<{
|
|
|
1045
1045
|
bufferSize: number;
|
|
1046
1046
|
flushIntervalSeconds: number;
|
|
1047
1047
|
compression: boolean;
|
|
1048
|
-
config?: Record<string, any> | undefined;
|
|
1049
1048
|
connectionString?: string | undefined;
|
|
1049
|
+
config?: Record<string, any> | undefined;
|
|
1050
1050
|
};
|
|
1051
1051
|
retentionPolicy: {
|
|
1052
1052
|
retentionDays: number;
|
|
@@ -1054,9 +1054,9 @@ export declare const AuditConfigSchema: z.ZodObject<{
|
|
|
1054
1054
|
archiveStorage?: {
|
|
1055
1055
|
type: "s3" | "gcs" | "azure_blob" | "filesystem";
|
|
1056
1056
|
path?: string | undefined;
|
|
1057
|
-
credentials?: Record<string, any> | undefined;
|
|
1058
1057
|
endpoint?: string | undefined;
|
|
1059
1058
|
bucket?: string | undefined;
|
|
1059
|
+
credentials?: Record<string, any> | undefined;
|
|
1060
1060
|
} | undefined;
|
|
1061
1061
|
customRetention?: Record<string, number> | undefined;
|
|
1062
1062
|
minimumRetentionDays?: number | undefined;
|
|
@@ -1066,12 +1066,12 @@ export declare const AuditConfigSchema: z.ZodObject<{
|
|
|
1066
1066
|
condition: {
|
|
1067
1067
|
threshold: number;
|
|
1068
1068
|
windowSeconds: number;
|
|
1069
|
-
filters?: Record<string, any> | undefined;
|
|
1070
1069
|
groupBy?: string[] | undefined;
|
|
1070
|
+
filters?: Record<string, any> | undefined;
|
|
1071
1071
|
};
|
|
1072
|
-
actions: ("alert" | "lock_account" | "block_ip" | "require_mfa" | "log_critical" | "webhook")[];
|
|
1073
1072
|
id: string;
|
|
1074
1073
|
enabled: boolean;
|
|
1074
|
+
actions: ("alert" | "lock_account" | "block_ip" | "require_mfa" | "log_critical" | "webhook")[];
|
|
1075
1075
|
eventTypes: ("data.create" | "data.read" | "data.update" | "data.delete" | "data.export" | "data.import" | "data.bulk_update" | "data.bulk_delete" | "auth.login" | "auth.login_failed" | "auth.logout" | "auth.session_created" | "auth.session_expired" | "auth.password_reset" | "auth.password_changed" | "auth.email_verified" | "auth.mfa_enabled" | "auth.mfa_disabled" | "auth.account_locked" | "auth.account_unlocked" | "authz.permission_granted" | "authz.permission_revoked" | "authz.role_assigned" | "authz.role_removed" | "authz.role_created" | "authz.role_updated" | "authz.role_deleted" | "authz.policy_created" | "authz.policy_updated" | "authz.policy_deleted" | "system.config_changed" | "system.plugin_installed" | "system.plugin_uninstalled" | "system.backup_created" | "system.backup_restored" | "system.integration_added" | "system.integration_removed" | "security.access_denied" | "security.suspicious_activity" | "security.data_breach" | "security.api_key_created" | "security.api_key_revoked")[];
|
|
1076
1076
|
alertSeverity: "error" | "warning" | "info" | "debug" | "notice" | "critical" | "alert" | "emergency";
|
|
1077
1077
|
description?: string | undefined;
|
|
@@ -1086,37 +1086,31 @@ export declare const AuditConfigSchema: z.ZodObject<{
|
|
|
1086
1086
|
logReads: boolean;
|
|
1087
1087
|
readSamplingRate: number;
|
|
1088
1088
|
logSystemEvents: boolean;
|
|
1089
|
-
compliance?: {
|
|
1090
|
-
immutableLogs: boolean;
|
|
1091
|
-
requireSigning: boolean;
|
|
1092
|
-
standards?: ("sox" | "hipaa" | "gdpr" | "pci_dss" | "iso_27001" | "fedramp")[] | undefined;
|
|
1093
|
-
signingKey?: string | undefined;
|
|
1094
|
-
} | undefined;
|
|
1095
1089
|
eventTypes?: ("data.create" | "data.read" | "data.update" | "data.delete" | "data.export" | "data.import" | "data.bulk_update" | "data.bulk_delete" | "auth.login" | "auth.login_failed" | "auth.logout" | "auth.session_created" | "auth.session_expired" | "auth.password_reset" | "auth.password_changed" | "auth.email_verified" | "auth.mfa_enabled" | "auth.mfa_disabled" | "auth.account_locked" | "auth.account_unlocked" | "authz.permission_granted" | "authz.permission_revoked" | "authz.role_assigned" | "authz.role_removed" | "authz.role_created" | "authz.role_updated" | "authz.role_deleted" | "authz.policy_created" | "authz.policy_updated" | "authz.policy_deleted" | "system.config_changed" | "system.plugin_installed" | "system.plugin_uninstalled" | "system.backup_created" | "system.backup_restored" | "system.integration_added" | "system.integration_removed" | "security.access_denied" | "security.suspicious_activity" | "security.data_breach" | "security.api_key_created" | "security.api_key_revoked")[] | undefined;
|
|
1096
1090
|
excludeEventTypes?: ("data.create" | "data.read" | "data.update" | "data.delete" | "data.export" | "data.import" | "data.bulk_update" | "data.bulk_delete" | "auth.login" | "auth.login_failed" | "auth.logout" | "auth.session_created" | "auth.session_expired" | "auth.password_reset" | "auth.password_changed" | "auth.email_verified" | "auth.mfa_enabled" | "auth.mfa_disabled" | "auth.account_locked" | "auth.account_unlocked" | "authz.permission_granted" | "authz.permission_revoked" | "authz.role_assigned" | "authz.role_removed" | "authz.role_created" | "authz.role_updated" | "authz.role_deleted" | "authz.policy_created" | "authz.policy_updated" | "authz.policy_deleted" | "system.config_changed" | "system.plugin_installed" | "system.plugin_uninstalled" | "system.backup_created" | "system.backup_restored" | "system.integration_added" | "system.integration_removed" | "security.access_denied" | "security.suspicious_activity" | "security.data_breach" | "security.api_key_created" | "security.api_key_revoked")[] | undefined;
|
|
1097
1091
|
customHandlers?: {
|
|
1098
1092
|
eventType: "data.create" | "data.read" | "data.update" | "data.delete" | "data.export" | "data.import" | "data.bulk_update" | "data.bulk_delete" | "auth.login" | "auth.login_failed" | "auth.logout" | "auth.session_created" | "auth.session_expired" | "auth.password_reset" | "auth.password_changed" | "auth.email_verified" | "auth.mfa_enabled" | "auth.mfa_disabled" | "auth.account_locked" | "auth.account_unlocked" | "authz.permission_granted" | "authz.permission_revoked" | "authz.role_assigned" | "authz.role_removed" | "authz.role_created" | "authz.role_updated" | "authz.role_deleted" | "authz.policy_created" | "authz.policy_updated" | "authz.policy_deleted" | "system.config_changed" | "system.plugin_installed" | "system.plugin_uninstalled" | "system.backup_created" | "system.backup_restored" | "system.integration_added" | "system.integration_removed" | "security.access_denied" | "security.suspicious_activity" | "security.data_breach" | "security.api_key_created" | "security.api_key_revoked";
|
|
1099
1093
|
handlerId: string;
|
|
1100
1094
|
}[] | undefined;
|
|
1095
|
+
compliance?: {
|
|
1096
|
+
immutableLogs: boolean;
|
|
1097
|
+
requireSigning: boolean;
|
|
1098
|
+
standards?: ("sox" | "hipaa" | "gdpr" | "pci_dss" | "iso_27001" | "fedramp")[] | undefined;
|
|
1099
|
+
signingKey?: string | undefined;
|
|
1100
|
+
} | undefined;
|
|
1101
1101
|
}, {
|
|
1102
1102
|
label: string;
|
|
1103
1103
|
name: string;
|
|
1104
1104
|
storage: {
|
|
1105
1105
|
type: "custom" | "database" | "s3" | "gcs" | "azure_blob" | "elasticsearch" | "mongodb" | "clickhouse";
|
|
1106
|
-
config?: Record<string, any> | undefined;
|
|
1107
1106
|
connectionString?: string | undefined;
|
|
1107
|
+
config?: Record<string, any> | undefined;
|
|
1108
1108
|
bufferEnabled?: boolean | undefined;
|
|
1109
1109
|
bufferSize?: number | undefined;
|
|
1110
1110
|
flushIntervalSeconds?: number | undefined;
|
|
1111
1111
|
compression?: boolean | undefined;
|
|
1112
1112
|
};
|
|
1113
1113
|
enabled?: boolean | undefined;
|
|
1114
|
-
compliance?: {
|
|
1115
|
-
standards?: ("sox" | "hipaa" | "gdpr" | "pci_dss" | "iso_27001" | "fedramp")[] | undefined;
|
|
1116
|
-
immutableLogs?: boolean | undefined;
|
|
1117
|
-
requireSigning?: boolean | undefined;
|
|
1118
|
-
signingKey?: string | undefined;
|
|
1119
|
-
} | undefined;
|
|
1120
1114
|
eventTypes?: ("data.create" | "data.read" | "data.update" | "data.delete" | "data.export" | "data.import" | "data.bulk_update" | "data.bulk_delete" | "auth.login" | "auth.login_failed" | "auth.logout" | "auth.session_created" | "auth.session_expired" | "auth.password_reset" | "auth.password_changed" | "auth.email_verified" | "auth.mfa_enabled" | "auth.mfa_disabled" | "auth.account_locked" | "auth.account_unlocked" | "authz.permission_granted" | "authz.permission_revoked" | "authz.role_assigned" | "authz.role_removed" | "authz.role_created" | "authz.role_updated" | "authz.role_deleted" | "authz.policy_created" | "authz.policy_updated" | "authz.policy_deleted" | "system.config_changed" | "system.plugin_installed" | "system.plugin_uninstalled" | "system.backup_created" | "system.backup_restored" | "system.integration_added" | "system.integration_removed" | "security.access_denied" | "security.suspicious_activity" | "security.data_breach" | "security.api_key_created" | "security.api_key_revoked")[] | undefined;
|
|
1121
1115
|
excludeEventTypes?: ("data.create" | "data.read" | "data.update" | "data.delete" | "data.export" | "data.import" | "data.bulk_update" | "data.bulk_delete" | "auth.login" | "auth.login_failed" | "auth.logout" | "auth.session_created" | "auth.session_expired" | "auth.password_reset" | "auth.password_changed" | "auth.email_verified" | "auth.mfa_enabled" | "auth.mfa_disabled" | "auth.account_locked" | "auth.account_unlocked" | "authz.permission_granted" | "authz.permission_revoked" | "authz.role_assigned" | "authz.role_removed" | "authz.role_created" | "authz.role_updated" | "authz.role_deleted" | "authz.policy_created" | "authz.policy_updated" | "authz.policy_deleted" | "system.config_changed" | "system.plugin_installed" | "system.plugin_uninstalled" | "system.backup_created" | "system.backup_restored" | "system.integration_added" | "system.integration_removed" | "security.access_denied" | "security.suspicious_activity" | "security.data_breach" | "security.api_key_created" | "security.api_key_revoked")[] | undefined;
|
|
1122
1116
|
minimumSeverity?: "error" | "warning" | "info" | "debug" | "notice" | "critical" | "alert" | "emergency" | undefined;
|
|
@@ -1126,9 +1120,9 @@ export declare const AuditConfigSchema: z.ZodObject<{
|
|
|
1126
1120
|
archiveStorage?: {
|
|
1127
1121
|
type: "s3" | "gcs" | "azure_blob" | "filesystem";
|
|
1128
1122
|
path?: string | undefined;
|
|
1129
|
-
credentials?: Record<string, any> | undefined;
|
|
1130
1123
|
endpoint?: string | undefined;
|
|
1131
1124
|
bucket?: string | undefined;
|
|
1125
|
+
credentials?: Record<string, any> | undefined;
|
|
1132
1126
|
} | undefined;
|
|
1133
1127
|
customRetention?: Record<string, number> | undefined;
|
|
1134
1128
|
minimumRetentionDays?: number | undefined;
|
|
@@ -1138,11 +1132,11 @@ export declare const AuditConfigSchema: z.ZodObject<{
|
|
|
1138
1132
|
condition: {
|
|
1139
1133
|
threshold: number;
|
|
1140
1134
|
windowSeconds: number;
|
|
1141
|
-
filters?: Record<string, any> | undefined;
|
|
1142
1135
|
groupBy?: string[] | undefined;
|
|
1136
|
+
filters?: Record<string, any> | undefined;
|
|
1143
1137
|
};
|
|
1144
|
-
actions: ("alert" | "lock_account" | "block_ip" | "require_mfa" | "log_critical" | "webhook")[];
|
|
1145
1138
|
id: string;
|
|
1139
|
+
actions: ("alert" | "lock_account" | "block_ip" | "require_mfa" | "log_critical" | "webhook")[];
|
|
1146
1140
|
eventTypes: ("data.create" | "data.read" | "data.update" | "data.delete" | "data.export" | "data.import" | "data.bulk_update" | "data.bulk_delete" | "auth.login" | "auth.login_failed" | "auth.logout" | "auth.session_created" | "auth.session_expired" | "auth.password_reset" | "auth.password_changed" | "auth.email_verified" | "auth.mfa_enabled" | "auth.mfa_disabled" | "auth.account_locked" | "auth.account_unlocked" | "authz.permission_granted" | "authz.permission_revoked" | "authz.role_assigned" | "authz.role_removed" | "authz.role_created" | "authz.role_updated" | "authz.role_deleted" | "authz.policy_created" | "authz.policy_updated" | "authz.policy_deleted" | "system.config_changed" | "system.plugin_installed" | "system.plugin_uninstalled" | "system.backup_created" | "system.backup_restored" | "system.integration_added" | "system.integration_removed" | "security.access_denied" | "security.suspicious_activity" | "security.data_breach" | "security.api_key_created" | "security.api_key_revoked")[];
|
|
1147
1141
|
description?: string | undefined;
|
|
1148
1142
|
enabled?: boolean | undefined;
|
|
@@ -1162,6 +1156,12 @@ export declare const AuditConfigSchema: z.ZodObject<{
|
|
|
1162
1156
|
eventType: "data.create" | "data.read" | "data.update" | "data.delete" | "data.export" | "data.import" | "data.bulk_update" | "data.bulk_delete" | "auth.login" | "auth.login_failed" | "auth.logout" | "auth.session_created" | "auth.session_expired" | "auth.password_reset" | "auth.password_changed" | "auth.email_verified" | "auth.mfa_enabled" | "auth.mfa_disabled" | "auth.account_locked" | "auth.account_unlocked" | "authz.permission_granted" | "authz.permission_revoked" | "authz.role_assigned" | "authz.role_removed" | "authz.role_created" | "authz.role_updated" | "authz.role_deleted" | "authz.policy_created" | "authz.policy_updated" | "authz.policy_deleted" | "system.config_changed" | "system.plugin_installed" | "system.plugin_uninstalled" | "system.backup_created" | "system.backup_restored" | "system.integration_added" | "system.integration_removed" | "security.access_denied" | "security.suspicious_activity" | "security.data_breach" | "security.api_key_created" | "security.api_key_revoked";
|
|
1163
1157
|
handlerId: string;
|
|
1164
1158
|
}[] | undefined;
|
|
1159
|
+
compliance?: {
|
|
1160
|
+
standards?: ("sox" | "hipaa" | "gdpr" | "pci_dss" | "iso_27001" | "fedramp")[] | undefined;
|
|
1161
|
+
immutableLogs?: boolean | undefined;
|
|
1162
|
+
requireSigning?: boolean | undefined;
|
|
1163
|
+
signingKey?: string | undefined;
|
|
1164
|
+
} | undefined;
|
|
1165
1165
|
}>;
|
|
1166
1166
|
export type AuditConfig = z.infer<typeof AuditConfigSchema>;
|
|
1167
1167
|
/**
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Runtime Mode Enum
|
|
4
|
+
* Defines the operating mode of the kernel
|
|
5
|
+
*/
|
|
6
|
+
export declare const RuntimeMode: z.ZodEnum<["development", "production", "test", "provisioning"]>;
|
|
7
|
+
export type RuntimeMode = z.infer<typeof RuntimeMode>;
|
|
8
|
+
/**
|
|
9
|
+
* Kernel Context Schema
|
|
10
|
+
* Defines the static environment information available to the Kernel at boot.
|
|
11
|
+
*/
|
|
12
|
+
export declare const KernelContextSchema: z.ZodObject<{
|
|
13
|
+
/**
|
|
14
|
+
* Instance Identity
|
|
15
|
+
*/
|
|
16
|
+
instanceId: z.ZodString;
|
|
17
|
+
/**
|
|
18
|
+
* Environment Metadata
|
|
19
|
+
*/
|
|
20
|
+
mode: z.ZodDefault<z.ZodEnum<["development", "production", "test", "provisioning"]>>;
|
|
21
|
+
version: z.ZodString;
|
|
22
|
+
appName: z.ZodOptional<z.ZodString>;
|
|
23
|
+
/**
|
|
24
|
+
* Paths
|
|
25
|
+
*/
|
|
26
|
+
cwd: z.ZodString;
|
|
27
|
+
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
28
|
+
/**
|
|
29
|
+
* Telemetry
|
|
30
|
+
*/
|
|
31
|
+
startTime: z.ZodNumber;
|
|
32
|
+
/**
|
|
33
|
+
* Feature Flags (Global)
|
|
34
|
+
*/
|
|
35
|
+
features: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
|
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
mode: "test" | "development" | "production" | "provisioning";
|
|
38
|
+
version: string;
|
|
39
|
+
instanceId: string;
|
|
40
|
+
cwd: string;
|
|
41
|
+
startTime: number;
|
|
42
|
+
features: Record<string, boolean>;
|
|
43
|
+
appName?: string | undefined;
|
|
44
|
+
workspaceRoot?: string | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
version: string;
|
|
47
|
+
instanceId: string;
|
|
48
|
+
cwd: string;
|
|
49
|
+
startTime: number;
|
|
50
|
+
mode?: "test" | "development" | "production" | "provisioning" | undefined;
|
|
51
|
+
appName?: string | undefined;
|
|
52
|
+
workspaceRoot?: string | undefined;
|
|
53
|
+
features?: Record<string, boolean> | undefined;
|
|
54
|
+
}>;
|
|
55
|
+
export type KernelContext = z.infer<typeof KernelContextSchema>;
|
|
56
|
+
//# sourceMappingURL=context.zod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.zod.d.ts","sourceRoot":"","sources":["../../src/system/context.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,eAAO,MAAM,WAAW,kEAKY,CAAC;AAErC,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,mBAAmB;IAC9B;;OAEG;;IAGH;;OAEG;;;;IAKH;;OAEG;;;IAIH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;;;;;;;EAEH,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.KernelContextSchema = exports.RuntimeMode = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
/**
|
|
6
|
+
* Runtime Mode Enum
|
|
7
|
+
* Defines the operating mode of the kernel
|
|
8
|
+
*/
|
|
9
|
+
exports.RuntimeMode = zod_1.z.enum([
|
|
10
|
+
'development', // Hot-reload, verbose logging
|
|
11
|
+
'production', // Optimized, strict security
|
|
12
|
+
'test', // Mocked interfaces
|
|
13
|
+
'provisioning' // Setup/Migration mode
|
|
14
|
+
]).describe('Kernel operating mode');
|
|
15
|
+
/**
|
|
16
|
+
* Kernel Context Schema
|
|
17
|
+
* Defines the static environment information available to the Kernel at boot.
|
|
18
|
+
*/
|
|
19
|
+
exports.KernelContextSchema = zod_1.z.object({
|
|
20
|
+
/**
|
|
21
|
+
* Instance Identity
|
|
22
|
+
*/
|
|
23
|
+
instanceId: zod_1.z.string().uuid().describe('Unique UUID for this running kernel process'),
|
|
24
|
+
/**
|
|
25
|
+
* Environment Metadata
|
|
26
|
+
*/
|
|
27
|
+
mode: exports.RuntimeMode.default('production'),
|
|
28
|
+
version: zod_1.z.string().describe('Kernel version'),
|
|
29
|
+
appName: zod_1.z.string().optional().describe('Host application name'),
|
|
30
|
+
/**
|
|
31
|
+
* Paths
|
|
32
|
+
*/
|
|
33
|
+
cwd: zod_1.z.string().describe('Current working directory'),
|
|
34
|
+
workspaceRoot: zod_1.z.string().optional().describe('Workspace root if different from cwd'),
|
|
35
|
+
/**
|
|
36
|
+
* Telemetry
|
|
37
|
+
*/
|
|
38
|
+
startTime: zod_1.z.number().int().describe('Boot timestamp (ms)'),
|
|
39
|
+
/**
|
|
40
|
+
* Feature Flags (Global)
|
|
41
|
+
*/
|
|
42
|
+
features: zod_1.z.record(zod_1.z.boolean()).default({}).describe('Global feature toggles')
|
|
43
|
+
});
|
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
/**
|
|
3
|
-
* Driver Type Enum (Built-in)
|
|
4
|
-
* Standard drivers supported by the core platform.
|
|
5
|
-
* Plugins can register additional drivers using different identifiers.
|
|
6
|
-
*/
|
|
7
|
-
export declare const BuiltInDrivers: readonly ["postgres", "mysql", "sqlserver", "oracle", "sqlite", "mongo", "redis", "excel", "csv", "airtable", "rest_api", "graphql", "odata", "salesforce", "sap", "workday"];
|
|
8
2
|
/**
|
|
9
3
|
* Driver Identifier
|
|
10
4
|
* Can be a built-in driver or a plugin-contributed driver (e.g., "com.vendor.snowflake").
|
|
@@ -188,6 +182,32 @@ export declare const DatasourceSchema: z.ZodObject<{
|
|
|
188
182
|
* Stored securely (passwords usually interpolated from ENV).
|
|
189
183
|
*/
|
|
190
184
|
config: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
185
|
+
/**
|
|
186
|
+
* Connection Pool Configuration
|
|
187
|
+
* Standard connection pooling settings.
|
|
188
|
+
*/
|
|
189
|
+
pool: z.ZodOptional<z.ZodObject<{
|
|
190
|
+
min: z.ZodDefault<z.ZodNumber>;
|
|
191
|
+
max: z.ZodDefault<z.ZodNumber>;
|
|
192
|
+
idleTimeoutMillis: z.ZodDefault<z.ZodNumber>;
|
|
193
|
+
connectionTimeoutMillis: z.ZodDefault<z.ZodNumber>;
|
|
194
|
+
}, "strip", z.ZodTypeAny, {
|
|
195
|
+
min: number;
|
|
196
|
+
max: number;
|
|
197
|
+
idleTimeoutMillis: number;
|
|
198
|
+
connectionTimeoutMillis: number;
|
|
199
|
+
}, {
|
|
200
|
+
min?: number | undefined;
|
|
201
|
+
max?: number | undefined;
|
|
202
|
+
idleTimeoutMillis?: number | undefined;
|
|
203
|
+
connectionTimeoutMillis?: number | undefined;
|
|
204
|
+
}>>;
|
|
205
|
+
/**
|
|
206
|
+
* Read Replicas
|
|
207
|
+
* Optional list of duplicate configurations for read-only operations.
|
|
208
|
+
* Useful for scaling read throughput.
|
|
209
|
+
*/
|
|
210
|
+
readReplicas: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">>;
|
|
191
211
|
/**
|
|
192
212
|
* Capability Overrides
|
|
193
213
|
* Manually override what the driver claims to support.
|
|
@@ -264,6 +284,13 @@ export declare const DatasourceSchema: z.ZodObject<{
|
|
|
264
284
|
readOnly: boolean;
|
|
265
285
|
dynamicSchema: boolean;
|
|
266
286
|
} | undefined;
|
|
287
|
+
pool?: {
|
|
288
|
+
min: number;
|
|
289
|
+
max: number;
|
|
290
|
+
idleTimeoutMillis: number;
|
|
291
|
+
connectionTimeoutMillis: number;
|
|
292
|
+
} | undefined;
|
|
293
|
+
readReplicas?: Record<string, any>[] | undefined;
|
|
267
294
|
}, {
|
|
268
295
|
name: string;
|
|
269
296
|
config: Record<string, any>;
|
|
@@ -284,6 +311,13 @@ export declare const DatasourceSchema: z.ZodObject<{
|
|
|
284
311
|
readOnly?: boolean | undefined;
|
|
285
312
|
dynamicSchema?: boolean | undefined;
|
|
286
313
|
} | undefined;
|
|
314
|
+
pool?: {
|
|
315
|
+
min?: number | undefined;
|
|
316
|
+
max?: number | undefined;
|
|
317
|
+
idleTimeoutMillis?: number | undefined;
|
|
318
|
+
connectionTimeoutMillis?: number | undefined;
|
|
319
|
+
} | undefined;
|
|
320
|
+
readReplicas?: Record<string, any>[] | undefined;
|
|
287
321
|
}>;
|
|
288
322
|
export type Datasource = z.infer<typeof DatasourceSchema>;
|
|
289
323
|
export type DatasourceConfig = z.infer<typeof DatasourceCapabilities>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datasource.zod.d.ts","sourceRoot":"","sources":["../../src/system/datasource.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"datasource.zod.d.ts","sourceRoot":"","sources":["../../src/system/datasource.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;GAGG;AACH,eAAO,MAAM,UAAU,aAAsD,CAAC;AAE9E;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;;;;IAMjC;;;;OAIG;;IAGH;;;OAGG;;QAeH,oCAAoC;;QAOpC,iDAAiD;;QAGjD,oDAAoD;;QAGpD,oCAAoC;;QAGpC,2CAA2C;;QAG3C,oCAAoC;;QAGpC,8BAA8B;;QAG9B,2CAA2C;;QAO3C,oCAAoC;;QAGpC,oBAAoB;;QAGpB,+CAA+C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAnD/C,CAAC;AAEH;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB;IAKjC,oCAAoC;;IAOpC,iDAAiD;;IAGjD,oDAAoD;;IAGpD,oCAAoC;;IAGpC,2CAA2C;;IAG3C,oCAAoC;;IAGpC,8BAA8B;;IAG9B,2CAA2C;;IAO3C,oCAAoC;;IAGpC,oBAAoB;;IAGpB,+CAA+C;;;;;;;;;;;;;;;;;;;;;;;;;;EAE/C,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,gBAAgB;IAC3B,mBAAmB;;IAGnB,kBAAkB;;IAGlB,aAAa;;IAGb;;;;OAIG;;IAGH;;;OAGG;;;;;;;;;;;;;;;;;IAQH;;;;OAIG;;IAGH;;;OAGG;;QApFH,oCAAoC;;QAOpC,iDAAiD;;QAGjD,oDAAoD;;QAGpD,oCAAoC;;QAGpC,2CAA2C;;QAG3C,oCAAoC;;QAGpC,8BAA8B;;QAG9B,2CAA2C;;QAO3C,oCAAoC;;QAGpC,oBAAoB;;QAGpB,+CAA+C;;;;;;;;;;;;;;;;;;;;;;;;;;;IAiD/C,kBAAkB;;IAGlB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAElB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|