@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
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Log Level Enum
|
|
4
|
+
* Standard RFC 5424 severity levels (simplified)
|
|
5
|
+
*/
|
|
6
|
+
export declare const LogLevel: z.ZodEnum<["debug", "info", "warn", "error", "fatal"]>;
|
|
7
|
+
export type LogLevel = z.infer<typeof LogLevel>;
|
|
8
|
+
/**
|
|
9
|
+
* Log Format Enum
|
|
10
|
+
*/
|
|
11
|
+
export declare const LogFormat: z.ZodEnum<["json", "text", "pretty"]>;
|
|
12
|
+
export type LogFormat = z.infer<typeof LogFormat>;
|
|
13
|
+
/**
|
|
14
|
+
* Logger Configuration Schema
|
|
15
|
+
* Configuration for the Kernel's internal logger
|
|
16
|
+
*/
|
|
17
|
+
export declare const LoggerConfigSchema: z.ZodObject<{
|
|
18
|
+
/**
|
|
19
|
+
* Minimum level to log
|
|
20
|
+
*/
|
|
21
|
+
level: z.ZodDefault<z.ZodEnum<["debug", "info", "warn", "error", "fatal"]>>;
|
|
22
|
+
/**
|
|
23
|
+
* Output format
|
|
24
|
+
*/
|
|
25
|
+
format: z.ZodDefault<z.ZodEnum<["json", "text", "pretty"]>>;
|
|
26
|
+
/**
|
|
27
|
+
* Redact sensitive keys
|
|
28
|
+
*/
|
|
29
|
+
redact: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
30
|
+
/**
|
|
31
|
+
* Enable source location (file/line)
|
|
32
|
+
*/
|
|
33
|
+
sourceLocation: z.ZodDefault<z.ZodBoolean>;
|
|
34
|
+
/**
|
|
35
|
+
* Log to file (optional)
|
|
36
|
+
*/
|
|
37
|
+
file: z.ZodOptional<z.ZodString>;
|
|
38
|
+
/**
|
|
39
|
+
* Log rotation config (if file is set)
|
|
40
|
+
*/
|
|
41
|
+
rotation: z.ZodOptional<z.ZodObject<{
|
|
42
|
+
maxSize: z.ZodDefault<z.ZodString>;
|
|
43
|
+
maxFiles: z.ZodDefault<z.ZodNumber>;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
maxSize: string;
|
|
46
|
+
maxFiles: number;
|
|
47
|
+
}, {
|
|
48
|
+
maxSize?: string | undefined;
|
|
49
|
+
maxFiles?: number | undefined;
|
|
50
|
+
}>>;
|
|
51
|
+
}, "strip", z.ZodTypeAny, {
|
|
52
|
+
format: "text" | "json" | "pretty";
|
|
53
|
+
level: "error" | "info" | "debug" | "warn" | "fatal";
|
|
54
|
+
redact: string[];
|
|
55
|
+
sourceLocation: boolean;
|
|
56
|
+
file?: string | undefined;
|
|
57
|
+
rotation?: {
|
|
58
|
+
maxSize: string;
|
|
59
|
+
maxFiles: number;
|
|
60
|
+
} | undefined;
|
|
61
|
+
}, {
|
|
62
|
+
file?: string | undefined;
|
|
63
|
+
format?: "text" | "json" | "pretty" | undefined;
|
|
64
|
+
level?: "error" | "info" | "debug" | "warn" | "fatal" | undefined;
|
|
65
|
+
redact?: string[] | undefined;
|
|
66
|
+
sourceLocation?: boolean | undefined;
|
|
67
|
+
rotation?: {
|
|
68
|
+
maxSize?: string | undefined;
|
|
69
|
+
maxFiles?: number | undefined;
|
|
70
|
+
} | undefined;
|
|
71
|
+
}>;
|
|
72
|
+
export type LoggerConfig = z.infer<typeof LoggerConfigSchema>;
|
|
73
|
+
/**
|
|
74
|
+
* Log Entry Schema
|
|
75
|
+
* The shape of a structured log record
|
|
76
|
+
*/
|
|
77
|
+
export declare const LogEntrySchema: z.ZodObject<{
|
|
78
|
+
timestamp: z.ZodString;
|
|
79
|
+
level: z.ZodEnum<["debug", "info", "warn", "error", "fatal"]>;
|
|
80
|
+
message: z.ZodString;
|
|
81
|
+
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
82
|
+
error: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
83
|
+
/** Tracing */
|
|
84
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
85
|
+
spanId: z.ZodOptional<z.ZodString>;
|
|
86
|
+
/** Source */
|
|
87
|
+
service: z.ZodOptional<z.ZodString>;
|
|
88
|
+
component: z.ZodOptional<z.ZodString>;
|
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
|
90
|
+
message: string;
|
|
91
|
+
timestamp: string;
|
|
92
|
+
level: "error" | "info" | "debug" | "warn" | "fatal";
|
|
93
|
+
error?: Record<string, any> | undefined;
|
|
94
|
+
component?: string | undefined;
|
|
95
|
+
context?: Record<string, any> | undefined;
|
|
96
|
+
service?: string | undefined;
|
|
97
|
+
traceId?: string | undefined;
|
|
98
|
+
spanId?: string | undefined;
|
|
99
|
+
}, {
|
|
100
|
+
message: string;
|
|
101
|
+
timestamp: string;
|
|
102
|
+
level: "error" | "info" | "debug" | "warn" | "fatal";
|
|
103
|
+
error?: Record<string, any> | undefined;
|
|
104
|
+
component?: string | undefined;
|
|
105
|
+
context?: Record<string, any> | undefined;
|
|
106
|
+
service?: string | undefined;
|
|
107
|
+
traceId?: string | undefined;
|
|
108
|
+
spanId?: string | undefined;
|
|
109
|
+
}>;
|
|
110
|
+
export type LogEntry = z.infer<typeof LogEntrySchema>;
|
|
111
|
+
//# sourceMappingURL=logger.zod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.zod.d.ts","sourceRoot":"","sources":["../../src/system/logger.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,eAAO,MAAM,QAAQ,wDAMY,CAAC;AAElC,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,QAAQ,CAAC,CAAC;AAEhD;;GAEG;AACH,eAAO,MAAM,SAAS,uCAIU,CAAC;AAEjC,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,kBAAkB;IAC7B;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAIH;;OAEG;;IAIH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKH,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;IAOzB,cAAc;;;IAId,aAAa;;;;;;;;;;;;;;;;;;;;;;;EAGb,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LogEntrySchema = exports.LoggerConfigSchema = exports.LogFormat = exports.LogLevel = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
/**
|
|
6
|
+
* Log Level Enum
|
|
7
|
+
* Standard RFC 5424 severity levels (simplified)
|
|
8
|
+
*/
|
|
9
|
+
exports.LogLevel = zod_1.z.enum([
|
|
10
|
+
'debug',
|
|
11
|
+
'info',
|
|
12
|
+
'warn',
|
|
13
|
+
'error',
|
|
14
|
+
'fatal'
|
|
15
|
+
]).describe('Log severity level');
|
|
16
|
+
/**
|
|
17
|
+
* Log Format Enum
|
|
18
|
+
*/
|
|
19
|
+
exports.LogFormat = zod_1.z.enum([
|
|
20
|
+
'json', // Structural JSON for machine parsing
|
|
21
|
+
'text', // Simple text format
|
|
22
|
+
'pretty' // Colored generic output for CLI
|
|
23
|
+
]).describe('Log output format');
|
|
24
|
+
/**
|
|
25
|
+
* Logger Configuration Schema
|
|
26
|
+
* Configuration for the Kernel's internal logger
|
|
27
|
+
*/
|
|
28
|
+
exports.LoggerConfigSchema = zod_1.z.object({
|
|
29
|
+
/**
|
|
30
|
+
* Minimum level to log
|
|
31
|
+
*/
|
|
32
|
+
level: exports.LogLevel.default('info'),
|
|
33
|
+
/**
|
|
34
|
+
* Output format
|
|
35
|
+
*/
|
|
36
|
+
format: exports.LogFormat.default('json'),
|
|
37
|
+
/**
|
|
38
|
+
* Redact sensitive keys
|
|
39
|
+
*/
|
|
40
|
+
redact: zod_1.z.array(zod_1.z.string()).default(['password', 'token', 'secret', 'key'])
|
|
41
|
+
.describe('Keys to redact from log context'),
|
|
42
|
+
/**
|
|
43
|
+
* Enable source location (file/line)
|
|
44
|
+
*/
|
|
45
|
+
sourceLocation: zod_1.z.boolean().default(false)
|
|
46
|
+
.describe('Include file and line number'),
|
|
47
|
+
/**
|
|
48
|
+
* Log to file (optional)
|
|
49
|
+
*/
|
|
50
|
+
file: zod_1.z.string().optional().describe('Path to log file'),
|
|
51
|
+
/**
|
|
52
|
+
* Log rotation config (if file is set)
|
|
53
|
+
*/
|
|
54
|
+
rotation: zod_1.z.object({
|
|
55
|
+
maxSize: zod_1.z.string().default('10m'),
|
|
56
|
+
maxFiles: zod_1.z.number().default(5)
|
|
57
|
+
}).optional()
|
|
58
|
+
});
|
|
59
|
+
/**
|
|
60
|
+
* Log Entry Schema
|
|
61
|
+
* The shape of a structured log record
|
|
62
|
+
*/
|
|
63
|
+
exports.LogEntrySchema = zod_1.z.object({
|
|
64
|
+
timestamp: zod_1.z.string().datetime().describe('ISO 8601 timestamp'),
|
|
65
|
+
level: exports.LogLevel,
|
|
66
|
+
message: zod_1.z.string().describe('Log message'),
|
|
67
|
+
context: zod_1.z.record(zod_1.z.any()).optional().describe('Structured context data'),
|
|
68
|
+
error: zod_1.z.record(zod_1.z.any()).optional().describe('Error object if present'),
|
|
69
|
+
/** Tracing */
|
|
70
|
+
traceId: zod_1.z.string().optional().describe('Distributed trace ID'),
|
|
71
|
+
spanId: zod_1.z.string().optional().describe('Span ID'),
|
|
72
|
+
/** Source */
|
|
73
|
+
service: zod_1.z.string().optional().describe('Service name'),
|
|
74
|
+
component: zod_1.z.string().optional().describe('Component name (e.g. plugin id)'),
|
|
75
|
+
});
|
|
@@ -66,25 +66,25 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
66
66
|
enum: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
67
67
|
}, "strip", z.ZodTypeAny, {
|
|
68
68
|
type: "string" | "number" | "boolean" | "object" | "array";
|
|
69
|
+
required?: boolean | undefined;
|
|
69
70
|
default?: any;
|
|
70
71
|
description?: string | undefined;
|
|
71
|
-
required?: boolean | undefined;
|
|
72
72
|
secret?: boolean | undefined;
|
|
73
73
|
enum?: string[] | undefined;
|
|
74
74
|
}, {
|
|
75
75
|
type: "string" | "number" | "boolean" | "object" | "array";
|
|
76
|
+
required?: boolean | undefined;
|
|
76
77
|
default?: any;
|
|
77
78
|
description?: string | undefined;
|
|
78
|
-
required?: boolean | undefined;
|
|
79
79
|
secret?: boolean | undefined;
|
|
80
80
|
enum?: string[] | undefined;
|
|
81
81
|
}>>;
|
|
82
82
|
}, "strip", z.ZodTypeAny, {
|
|
83
83
|
properties: Record<string, {
|
|
84
84
|
type: "string" | "number" | "boolean" | "object" | "array";
|
|
85
|
+
required?: boolean | undefined;
|
|
85
86
|
default?: any;
|
|
86
87
|
description?: string | undefined;
|
|
87
|
-
required?: boolean | undefined;
|
|
88
88
|
secret?: boolean | undefined;
|
|
89
89
|
enum?: string[] | undefined;
|
|
90
90
|
}>;
|
|
@@ -92,9 +92,9 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
92
92
|
}, {
|
|
93
93
|
properties: Record<string, {
|
|
94
94
|
type: "string" | "number" | "boolean" | "object" | "array";
|
|
95
|
+
required?: boolean | undefined;
|
|
95
96
|
default?: any;
|
|
96
97
|
description?: string | undefined;
|
|
97
|
-
required?: boolean | undefined;
|
|
98
98
|
secret?: boolean | undefined;
|
|
99
99
|
enum?: string[] | undefined;
|
|
100
100
|
}>;
|
|
@@ -197,7 +197,67 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
197
197
|
input?: any;
|
|
198
198
|
output?: any;
|
|
199
199
|
}>, "many">>;
|
|
200
|
+
/**
|
|
201
|
+
* Register Storage Drivers.
|
|
202
|
+
* Enables connecting to new types of datasources.
|
|
203
|
+
*/
|
|
204
|
+
drivers: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
205
|
+
id: z.ZodString;
|
|
206
|
+
label: z.ZodString;
|
|
207
|
+
description: z.ZodOptional<z.ZodString>;
|
|
208
|
+
}, "strip", z.ZodTypeAny, {
|
|
209
|
+
label: string;
|
|
210
|
+
id: string;
|
|
211
|
+
description?: string | undefined;
|
|
212
|
+
}, {
|
|
213
|
+
label: string;
|
|
214
|
+
id: string;
|
|
215
|
+
description?: string | undefined;
|
|
216
|
+
}>, "many">>;
|
|
217
|
+
/**
|
|
218
|
+
* Register Custom Field Types.
|
|
219
|
+
* Extends the data model with new widget types.
|
|
220
|
+
*/
|
|
221
|
+
fieldTypes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
222
|
+
name: z.ZodString;
|
|
223
|
+
label: z.ZodString;
|
|
224
|
+
description: z.ZodOptional<z.ZodString>;
|
|
225
|
+
}, "strip", z.ZodTypeAny, {
|
|
226
|
+
label: string;
|
|
227
|
+
name: string;
|
|
228
|
+
description?: string | undefined;
|
|
229
|
+
}, {
|
|
230
|
+
label: string;
|
|
231
|
+
name: string;
|
|
232
|
+
description?: string | undefined;
|
|
233
|
+
}>, "many">>;
|
|
234
|
+
/**
|
|
235
|
+
* Register Custom Query Operators/Functions.
|
|
236
|
+
* Extends ObjectQL with new functions (e.g. distance()).
|
|
237
|
+
*/
|
|
238
|
+
functions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
239
|
+
name: z.ZodString;
|
|
240
|
+
description: z.ZodOptional<z.ZodString>;
|
|
241
|
+
args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
242
|
+
returnType: z.ZodOptional<z.ZodString>;
|
|
243
|
+
}, "strip", z.ZodTypeAny, {
|
|
244
|
+
name: string;
|
|
245
|
+
description?: string | undefined;
|
|
246
|
+
args?: string[] | undefined;
|
|
247
|
+
returnType?: string | undefined;
|
|
248
|
+
}, {
|
|
249
|
+
name: string;
|
|
250
|
+
description?: string | undefined;
|
|
251
|
+
args?: string[] | undefined;
|
|
252
|
+
returnType?: string | undefined;
|
|
253
|
+
}>, "many">>;
|
|
200
254
|
}, "strip", z.ZodTypeAny, {
|
|
255
|
+
events?: string[] | undefined;
|
|
256
|
+
fieldTypes?: {
|
|
257
|
+
label: string;
|
|
258
|
+
name: string;
|
|
259
|
+
description?: string | undefined;
|
|
260
|
+
}[] | undefined;
|
|
201
261
|
actions?: {
|
|
202
262
|
name: string;
|
|
203
263
|
label?: string | undefined;
|
|
@@ -210,7 +270,6 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
210
270
|
globs: string[];
|
|
211
271
|
description?: string | undefined;
|
|
212
272
|
}[] | undefined;
|
|
213
|
-
events?: string[] | undefined;
|
|
214
273
|
menus?: Record<string, {
|
|
215
274
|
label: string;
|
|
216
275
|
id: string;
|
|
@@ -225,7 +284,24 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
225
284
|
path: string;
|
|
226
285
|
locale: string;
|
|
227
286
|
}[] | undefined;
|
|
287
|
+
drivers?: {
|
|
288
|
+
label: string;
|
|
289
|
+
id: string;
|
|
290
|
+
description?: string | undefined;
|
|
291
|
+
}[] | undefined;
|
|
292
|
+
functions?: {
|
|
293
|
+
name: string;
|
|
294
|
+
description?: string | undefined;
|
|
295
|
+
args?: string[] | undefined;
|
|
296
|
+
returnType?: string | undefined;
|
|
297
|
+
}[] | undefined;
|
|
228
298
|
}, {
|
|
299
|
+
events?: string[] | undefined;
|
|
300
|
+
fieldTypes?: {
|
|
301
|
+
label: string;
|
|
302
|
+
name: string;
|
|
303
|
+
description?: string | undefined;
|
|
304
|
+
}[] | undefined;
|
|
229
305
|
actions?: {
|
|
230
306
|
name: string;
|
|
231
307
|
label?: string | undefined;
|
|
@@ -238,7 +314,6 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
238
314
|
globs: string[];
|
|
239
315
|
description?: string | undefined;
|
|
240
316
|
}[] | undefined;
|
|
241
|
-
events?: string[] | undefined;
|
|
242
317
|
menus?: Record<string, {
|
|
243
318
|
label: string;
|
|
244
319
|
id: string;
|
|
@@ -253,6 +328,17 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
253
328
|
path: string;
|
|
254
329
|
locale: string;
|
|
255
330
|
}[] | undefined;
|
|
331
|
+
drivers?: {
|
|
332
|
+
label: string;
|
|
333
|
+
id: string;
|
|
334
|
+
description?: string | undefined;
|
|
335
|
+
}[] | undefined;
|
|
336
|
+
functions?: {
|
|
337
|
+
name: string;
|
|
338
|
+
description?: string | undefined;
|
|
339
|
+
args?: string[] | undefined;
|
|
340
|
+
returnType?: string | undefined;
|
|
341
|
+
}[] | undefined;
|
|
256
342
|
}>>;
|
|
257
343
|
/**
|
|
258
344
|
* Initial data seeding configuration.
|
|
@@ -264,12 +350,12 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
264
350
|
mode: z.ZodDefault<z.ZodEnum<["upsert", "insert", "ignore"]>>;
|
|
265
351
|
}, "strip", z.ZodTypeAny, {
|
|
266
352
|
object: string;
|
|
267
|
-
mode: "
|
|
353
|
+
mode: "insert" | "upsert" | "ignore";
|
|
268
354
|
records: Record<string, any>[];
|
|
269
355
|
}, {
|
|
270
356
|
object: string;
|
|
271
357
|
records: Record<string, any>[];
|
|
272
|
-
mode?: "
|
|
358
|
+
mode?: "insert" | "upsert" | "ignore" | undefined;
|
|
273
359
|
}>, "many">>;
|
|
274
360
|
/**
|
|
275
361
|
* Extension points contributed by this package.
|
|
@@ -277,7 +363,7 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
277
363
|
*/
|
|
278
364
|
extensions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
279
365
|
}, "strip", z.ZodTypeAny, {
|
|
280
|
-
type: "app" | "
|
|
366
|
+
type: "app" | "module" | "plugin" | "driver";
|
|
281
367
|
name: string;
|
|
282
368
|
id: string;
|
|
283
369
|
version: string;
|
|
@@ -285,24 +371,30 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
285
371
|
objects?: string[] | undefined;
|
|
286
372
|
data?: {
|
|
287
373
|
object: string;
|
|
288
|
-
mode: "
|
|
374
|
+
mode: "insert" | "upsert" | "ignore";
|
|
289
375
|
records: Record<string, any>[];
|
|
290
376
|
}[] | undefined;
|
|
377
|
+
dependencies?: Record<string, string> | undefined;
|
|
291
378
|
permissions?: string[] | undefined;
|
|
292
379
|
datasources?: string[] | undefined;
|
|
293
|
-
dependencies?: Record<string, string> | undefined;
|
|
294
380
|
configuration?: {
|
|
295
381
|
properties: Record<string, {
|
|
296
382
|
type: "string" | "number" | "boolean" | "object" | "array";
|
|
383
|
+
required?: boolean | undefined;
|
|
297
384
|
default?: any;
|
|
298
385
|
description?: string | undefined;
|
|
299
|
-
required?: boolean | undefined;
|
|
300
386
|
secret?: boolean | undefined;
|
|
301
387
|
enum?: string[] | undefined;
|
|
302
388
|
}>;
|
|
303
389
|
title?: string | undefined;
|
|
304
390
|
} | undefined;
|
|
305
391
|
contributes?: {
|
|
392
|
+
events?: string[] | undefined;
|
|
393
|
+
fieldTypes?: {
|
|
394
|
+
label: string;
|
|
395
|
+
name: string;
|
|
396
|
+
description?: string | undefined;
|
|
397
|
+
}[] | undefined;
|
|
306
398
|
actions?: {
|
|
307
399
|
name: string;
|
|
308
400
|
label?: string | undefined;
|
|
@@ -315,7 +407,6 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
315
407
|
globs: string[];
|
|
316
408
|
description?: string | undefined;
|
|
317
409
|
}[] | undefined;
|
|
318
|
-
events?: string[] | undefined;
|
|
319
410
|
menus?: Record<string, {
|
|
320
411
|
label: string;
|
|
321
412
|
id: string;
|
|
@@ -330,10 +421,21 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
330
421
|
path: string;
|
|
331
422
|
locale: string;
|
|
332
423
|
}[] | undefined;
|
|
424
|
+
drivers?: {
|
|
425
|
+
label: string;
|
|
426
|
+
id: string;
|
|
427
|
+
description?: string | undefined;
|
|
428
|
+
}[] | undefined;
|
|
429
|
+
functions?: {
|
|
430
|
+
name: string;
|
|
431
|
+
description?: string | undefined;
|
|
432
|
+
args?: string[] | undefined;
|
|
433
|
+
returnType?: string | undefined;
|
|
434
|
+
}[] | undefined;
|
|
333
435
|
} | undefined;
|
|
334
436
|
extensions?: Record<string, any> | undefined;
|
|
335
437
|
}, {
|
|
336
|
-
type: "app" | "
|
|
438
|
+
type: "app" | "module" | "plugin" | "driver";
|
|
337
439
|
name: string;
|
|
338
440
|
id: string;
|
|
339
441
|
version: string;
|
|
@@ -342,23 +444,29 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
342
444
|
data?: {
|
|
343
445
|
object: string;
|
|
344
446
|
records: Record<string, any>[];
|
|
345
|
-
mode?: "
|
|
447
|
+
mode?: "insert" | "upsert" | "ignore" | undefined;
|
|
346
448
|
}[] | undefined;
|
|
449
|
+
dependencies?: Record<string, string> | undefined;
|
|
347
450
|
permissions?: string[] | undefined;
|
|
348
451
|
datasources?: string[] | undefined;
|
|
349
|
-
dependencies?: Record<string, string> | undefined;
|
|
350
452
|
configuration?: {
|
|
351
453
|
properties: Record<string, {
|
|
352
454
|
type: "string" | "number" | "boolean" | "object" | "array";
|
|
455
|
+
required?: boolean | undefined;
|
|
353
456
|
default?: any;
|
|
354
457
|
description?: string | undefined;
|
|
355
|
-
required?: boolean | undefined;
|
|
356
458
|
secret?: boolean | undefined;
|
|
357
459
|
enum?: string[] | undefined;
|
|
358
460
|
}>;
|
|
359
461
|
title?: string | undefined;
|
|
360
462
|
} | undefined;
|
|
361
463
|
contributes?: {
|
|
464
|
+
events?: string[] | undefined;
|
|
465
|
+
fieldTypes?: {
|
|
466
|
+
label: string;
|
|
467
|
+
name: string;
|
|
468
|
+
description?: string | undefined;
|
|
469
|
+
}[] | undefined;
|
|
362
470
|
actions?: {
|
|
363
471
|
name: string;
|
|
364
472
|
label?: string | undefined;
|
|
@@ -371,7 +479,6 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
371
479
|
globs: string[];
|
|
372
480
|
description?: string | undefined;
|
|
373
481
|
}[] | undefined;
|
|
374
|
-
events?: string[] | undefined;
|
|
375
482
|
menus?: Record<string, {
|
|
376
483
|
label: string;
|
|
377
484
|
id: string;
|
|
@@ -386,6 +493,17 @@ export declare const ManifestSchema: z.ZodObject<{
|
|
|
386
493
|
path: string;
|
|
387
494
|
locale: string;
|
|
388
495
|
}[] | undefined;
|
|
496
|
+
drivers?: {
|
|
497
|
+
label: string;
|
|
498
|
+
id: string;
|
|
499
|
+
description?: string | undefined;
|
|
500
|
+
}[] | undefined;
|
|
501
|
+
functions?: {
|
|
502
|
+
name: string;
|
|
503
|
+
description?: string | undefined;
|
|
504
|
+
args?: string[] | undefined;
|
|
505
|
+
returnType?: string | undefined;
|
|
506
|
+
}[] | undefined;
|
|
389
507
|
} | undefined;
|
|
390
508
|
extensions?: Record<string, any> | undefined;
|
|
391
509
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"manifest.zod.d.ts","sourceRoot":"","sources":["../../src/system/manifest.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,eAAO,MAAM,cAAc;IACzB;;;OAGG;;IAGH;;;OAGG;;IAGH;;;;;;OAMG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;OAEG;;IAGH;;;OAGG;;IAGH;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAaH;;;OAGG;;QAED;;;;WAIG;;;;;;;;;;;;;;QAOH;;;WAGG;;QAGH;;WAEG;;;;;;;;;;;;;;QAOH;;WAEG;;;;;;;;;;;;;;QAOH;;;WAGG;;;;;;;;;;;QAMH;;;WAGG
|
|
1
|
+
{"version":3,"file":"manifest.zod.d.ts","sourceRoot":"","sources":["../../src/system/manifest.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,eAAO,MAAM,cAAc;IACzB;;;OAGG;;IAGH;;;OAGG;;IAGH;;;;;;OAMG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;;OAGG;;IAGH;;;OAGG;;IAGH;;OAEG;;IAGH;;;OAGG;;IAGH;;;;OAIG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAaH;;;OAGG;;QAED;;;;WAIG;;;;;;;;;;;;;;QAOH;;;WAGG;;QAGH;;WAEG;;;;;;;;;;;;;;QAOH;;WAEG;;;;;;;;;;;;;;QAOH;;;WAGG;;;;;;;;;;;QAMH;;;WAGG;;;;;;;;;;;;;;;;;;;;QASH;;;WAGG;;;;;;;;;;;;;;QAOH;;;WAGG;;;;;;;;;;;;;;QAOH;;;WAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASL;;;OAGG;;;;;;;;;;;;;;IAOH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEH,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
|
|
@@ -124,6 +124,34 @@ exports.ManifestSchema = zod_1.z.object({
|
|
|
124
124
|
input: zod_1.z.any().optional().describe('Input validation schema'),
|
|
125
125
|
output: zod_1.z.any().optional().describe('Output schema'),
|
|
126
126
|
})).optional().describe('Exposed server actions'),
|
|
127
|
+
/**
|
|
128
|
+
* Register Storage Drivers.
|
|
129
|
+
* Enables connecting to new types of datasources.
|
|
130
|
+
*/
|
|
131
|
+
drivers: zod_1.z.array(zod_1.z.object({
|
|
132
|
+
id: zod_1.z.string().describe('Driver unique identifier (e.g. "postgres", "mongo")'),
|
|
133
|
+
label: zod_1.z.string().describe('Human readable name'),
|
|
134
|
+
description: zod_1.z.string().optional(),
|
|
135
|
+
})).optional().describe('Driver contributions'),
|
|
136
|
+
/**
|
|
137
|
+
* Register Custom Field Types.
|
|
138
|
+
* Extends the data model with new widget types.
|
|
139
|
+
*/
|
|
140
|
+
fieldTypes: zod_1.z.array(zod_1.z.object({
|
|
141
|
+
name: zod_1.z.string().describe('Unique field type name (e.g. "vector")'),
|
|
142
|
+
label: zod_1.z.string().describe('Display label'),
|
|
143
|
+
description: zod_1.z.string().optional(),
|
|
144
|
+
})).optional().describe('Field Type contributions'),
|
|
145
|
+
/**
|
|
146
|
+
* Register Custom Query Operators/Functions.
|
|
147
|
+
* Extends ObjectQL with new functions (e.g. distance()).
|
|
148
|
+
*/
|
|
149
|
+
functions: zod_1.z.array(zod_1.z.object({
|
|
150
|
+
name: zod_1.z.string().describe('Function name (e.g. "distance")'),
|
|
151
|
+
description: zod_1.z.string().optional(),
|
|
152
|
+
args: zod_1.z.array(zod_1.z.string()).optional().describe('Argument types'),
|
|
153
|
+
returnType: zod_1.z.string().optional(),
|
|
154
|
+
})).optional().describe('Query Function contributions'),
|
|
127
155
|
}).optional().describe('Platform contributions'),
|
|
128
156
|
/**
|
|
129
157
|
* Initial data seeding configuration.
|