@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 @@
|
|
|
1
|
+
{"version":3,"file":"composer.zod.d.ts","sourceRoot":"","sources":["../../src/hub/composer.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;GAMG;AAEH;;;GAGG;AACH,eAAO,MAAM,2BAA2B;;;IAItC;;;;OAIG;;IAGH;;;OAGG;;;;;;;;;;;;EAEH,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,qBAAqB;;IAGhC;;;OAGG;;;;QAzBH;;;;WAIG;;QAGH;;;WAGG;;;;;;;;;;;;;IAkBH;;;OAGG;;IAGH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;EAGH,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;EAM/B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,qBAAqB;;;QApChC;;;WAGG;;;;YAzBH;;;;eAIG;;YAGH;;;eAGG;;;;;;;;;;;;;QAkBH;;;WAGG;;QAGH;;;WAGG;;;;;;;;;;;;;;;;;;;;;;;IAwBH;;;OAGG;;IAGH;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEH,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;IAGjC;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGH;;;OAGG;;IAGH;;OAEG;;;;IAKH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGH,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ComposerResponseSchema = exports.ComposerRequestSchema = exports.ConflictReportSchema = exports.BillOfMaterialsSchema = exports.DependencyRequirementSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const manifest_zod_1 = require("../system/manifest.zod");
|
|
6
|
+
/**
|
|
7
|
+
* # Cloud Composer Protocol
|
|
8
|
+
*
|
|
9
|
+
* Defines the interface for the ObjectStack Composer Service.
|
|
10
|
+
* The Composer is responsible for "compiling" a Tenant's configuration (BOM)
|
|
11
|
+
* into a single executable System Manifest.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* Dependency Requirement
|
|
15
|
+
* Specifies a plugin and its version constraints.
|
|
16
|
+
*/
|
|
17
|
+
exports.DependencyRequirementSchema = zod_1.z.object({
|
|
18
|
+
id: zod_1.z.string().describe('Plugin ID (e.g. "com.example.crm")'),
|
|
19
|
+
version: zod_1.z.string().default('latest').describe('SemVer range or "latest"'),
|
|
20
|
+
/**
|
|
21
|
+
* Configuration Overrides
|
|
22
|
+
* Tenant-specific settings that override plugin defaults.
|
|
23
|
+
* Example: { "currency": "USD", "apiKey": "..." }
|
|
24
|
+
*/
|
|
25
|
+
configuration: zod_1.z.record(zod_1.z.any()).optional().describe('Configuration overrides'),
|
|
26
|
+
/**
|
|
27
|
+
* Feature Flags
|
|
28
|
+
* Enable/Disable specific features within the plugin.
|
|
29
|
+
*/
|
|
30
|
+
features: zod_1.z.record(zod_1.z.boolean()).optional().describe('Feature toggles'),
|
|
31
|
+
});
|
|
32
|
+
/**
|
|
33
|
+
* Bill of Materials (BOM)
|
|
34
|
+
* The "Shopping List" for a specific tenant.
|
|
35
|
+
* Represents the high-level intent of what the tenant wants to install.
|
|
36
|
+
*/
|
|
37
|
+
exports.BillOfMaterialsSchema = zod_1.z.object({
|
|
38
|
+
tenantId: zod_1.z.string().describe('Target Tenant ID'),
|
|
39
|
+
/**
|
|
40
|
+
* List of installed plugins/apps.
|
|
41
|
+
* implementation order matters (later plugins override earlier ones by default).
|
|
42
|
+
*/
|
|
43
|
+
dependencies: zod_1.z.array(exports.DependencyRequirementSchema).describe('Installed packages'),
|
|
44
|
+
/**
|
|
45
|
+
* Environment Variables injection.
|
|
46
|
+
* Maps abstract keys to secure vault references or concrete values.
|
|
47
|
+
*/
|
|
48
|
+
environment: zod_1.z.record(zod_1.z.string()).optional(),
|
|
49
|
+
/**
|
|
50
|
+
* Global Resolution Strategy
|
|
51
|
+
* How to handle conflicts when multiple plugins define the same resource.
|
|
52
|
+
*/
|
|
53
|
+
resolutionStrategy: zod_1.z.enum(['strict', 'override', 'merge']).default('override')
|
|
54
|
+
.describe('Conflict resolution strategy (strict=fail, override=last-wins, merge=deep-merge)'),
|
|
55
|
+
});
|
|
56
|
+
/**
|
|
57
|
+
* Conflict Report
|
|
58
|
+
* Detailed information about collision during composition.
|
|
59
|
+
*/
|
|
60
|
+
exports.ConflictReportSchema = zod_1.z.object({
|
|
61
|
+
resourceType: zod_1.z.enum(['object', 'field', 'api', 'ui']).describe('Type of colliding resource'),
|
|
62
|
+
resourceId: zod_1.z.string().describe('ID of the resource'),
|
|
63
|
+
sources: zod_1.z.array(zod_1.z.string()).describe('List of plugin IDs defining this resource'),
|
|
64
|
+
resolution: zod_1.z.string().describe('How it was resolved (e.g. "com.example.erp won")'),
|
|
65
|
+
severity: zod_1.z.enum(['info', 'warning', 'error']).describe('Severity of the conflict'),
|
|
66
|
+
});
|
|
67
|
+
/**
|
|
68
|
+
* Composer Request
|
|
69
|
+
* The RPC payload sent to the Composer Service.
|
|
70
|
+
*/
|
|
71
|
+
exports.ComposerRequestSchema = zod_1.z.object({
|
|
72
|
+
bom: exports.BillOfMaterialsSchema,
|
|
73
|
+
/**
|
|
74
|
+
* Target Runtime Version
|
|
75
|
+
* Ensure generated manifest is compatible with the specific runtime version.
|
|
76
|
+
*/
|
|
77
|
+
runtimeVersion: zod_1.z.string().optional(),
|
|
78
|
+
/**
|
|
79
|
+
* Dry Run
|
|
80
|
+
* If true, generates report but does not persist the manifest.
|
|
81
|
+
*/
|
|
82
|
+
dryRun: zod_1.z.boolean().default(false),
|
|
83
|
+
});
|
|
84
|
+
/**
|
|
85
|
+
* Composer Response
|
|
86
|
+
* The result of the compilation process.
|
|
87
|
+
*/
|
|
88
|
+
exports.ComposerResponseSchema = zod_1.z.object({
|
|
89
|
+
success: zod_1.z.boolean(),
|
|
90
|
+
/**
|
|
91
|
+
* The Holy Grail: The Executable System Manifest.
|
|
92
|
+
* This is what the Runtime loads to boot.
|
|
93
|
+
*/
|
|
94
|
+
manifest: manifest_zod_1.ManifestSchema.optional().describe('The compiled System Manifest'),
|
|
95
|
+
/**
|
|
96
|
+
* Manifest URL
|
|
97
|
+
* Presigned URL to download the manifest if stored externally (e.g. Vercel KV/S3).
|
|
98
|
+
*/
|
|
99
|
+
manifestUrl: zod_1.z.string().url().optional().describe('Presigned download URL'),
|
|
100
|
+
/**
|
|
101
|
+
* Compilation Metadata
|
|
102
|
+
*/
|
|
103
|
+
buildId: zod_1.z.string(),
|
|
104
|
+
timestamp: zod_1.z.string().datetime(),
|
|
105
|
+
duration: zod_1.z.number().describe('Compilation time in ms'),
|
|
106
|
+
/**
|
|
107
|
+
* Analysis
|
|
108
|
+
*/
|
|
109
|
+
conflicts: zod_1.z.array(exports.ConflictReportSchema).optional(),
|
|
110
|
+
errors: zod_1.z.array(zod_1.z.string()).optional(),
|
|
111
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/hub/index.ts"],"names":[],"mappings":"AACA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
// Export Hub Components
|
|
18
|
+
__exportStar(require("./composer.zod"), exports);
|
|
19
|
+
__exportStar(require("./marketplace.zod"), exports);
|
|
20
|
+
__exportStar(require("./space.zod"), exports);
|
|
21
|
+
__exportStar(require("./tenant.zod"), exports);
|
|
22
|
+
__exportStar(require("./license.zod"), exports);
|
|
@@ -18,17 +18,17 @@ export declare const FeatureSchema: z.ZodObject<{
|
|
|
18
18
|
requires: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
20
|
code: string;
|
|
21
|
-
type: "boolean" | "
|
|
21
|
+
type: "boolean" | "gauge" | "counter";
|
|
22
22
|
label: string;
|
|
23
23
|
description?: string | undefined;
|
|
24
|
-
unit?: "
|
|
24
|
+
unit?: "count" | "percent" | "bytes" | "seconds" | undefined;
|
|
25
25
|
requires?: string[] | undefined;
|
|
26
26
|
}, {
|
|
27
27
|
code: string;
|
|
28
28
|
label: string;
|
|
29
|
-
type?: "boolean" | "
|
|
29
|
+
type?: "boolean" | "gauge" | "counter" | undefined;
|
|
30
30
|
description?: string | undefined;
|
|
31
|
-
unit?: "
|
|
31
|
+
unit?: "count" | "percent" | "bytes" | "seconds" | undefined;
|
|
32
32
|
requires?: string[] | undefined;
|
|
33
33
|
}>;
|
|
34
34
|
/**
|
|
@@ -68,39 +68,43 @@ export declare const PlanSchema: z.ZodObject<{
|
|
|
68
68
|
}>;
|
|
69
69
|
/**
|
|
70
70
|
* License Schema
|
|
71
|
-
* The actual entitlement object assigned to a
|
|
71
|
+
* The actual entitlement object assigned to a Space.
|
|
72
72
|
* Often signed as a JWT.
|
|
73
73
|
*/
|
|
74
74
|
export declare const LicenseSchema: z.ZodObject<{
|
|
75
75
|
/** Identity */
|
|
76
|
-
|
|
76
|
+
spaceId: z.ZodString;
|
|
77
77
|
planCode: z.ZodString;
|
|
78
78
|
/** Validity */
|
|
79
79
|
issuedAt: z.ZodString;
|
|
80
80
|
expiresAt: z.ZodOptional<z.ZodString>;
|
|
81
81
|
/** Status */
|
|
82
82
|
status: z.ZodEnum<["active", "expired", "suspended", "trial"]>;
|
|
83
|
-
/** Overrides (Specific to this
|
|
83
|
+
/** Overrides (Specific to this space, exceeding the plan) */
|
|
84
84
|
customFeatures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
85
85
|
customLimits: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
86
|
+
/** Authorized Add-ons */
|
|
87
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
86
88
|
/** Signature */
|
|
87
89
|
signature: z.ZodOptional<z.ZodString>;
|
|
88
90
|
}, "strip", z.ZodTypeAny, {
|
|
89
91
|
status: "active" | "expired" | "suspended" | "trial";
|
|
90
|
-
|
|
92
|
+
spaceId: string;
|
|
91
93
|
planCode: string;
|
|
92
94
|
issuedAt: string;
|
|
93
95
|
signature?: string | undefined;
|
|
94
96
|
expiresAt?: string | undefined;
|
|
97
|
+
plugins?: string[] | undefined;
|
|
95
98
|
customFeatures?: string[] | undefined;
|
|
96
99
|
customLimits?: Record<string, number> | undefined;
|
|
97
100
|
}, {
|
|
98
101
|
status: "active" | "expired" | "suspended" | "trial";
|
|
99
|
-
|
|
102
|
+
spaceId: string;
|
|
100
103
|
planCode: string;
|
|
101
104
|
issuedAt: string;
|
|
102
105
|
signature?: string | undefined;
|
|
103
106
|
expiresAt?: string | undefined;
|
|
107
|
+
plugins?: string[] | undefined;
|
|
104
108
|
customFeatures?: string[] | undefined;
|
|
105
109
|
customLimits?: Record<string, number> | undefined;
|
|
106
110
|
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"license.zod.d.ts","sourceRoot":"","sources":["../../src/hub/license.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,UAAU,4CAIrB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,aAAa;;;;;IAOxB,0BAA0B;;IAG1B,iEAAiE;;;;;;;;;;;;;;;;EAEjE,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,UAAU;;;;IAKrB,2BAA2B;;IAG3B,mBAAmB;;IAGnB,kCAAkC;;;;;;;;;;;;;;;;;;;;;;EAIlC,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,aAAa;IACxB,eAAe;;;IAIf,eAAe;;;IAIf,aAAa;;IAGb,6DAA6D;;;IAI7D,yBAAyB;;IAGzB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;EAEhB,CAAC;AAEH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACpD,MAAM,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAC9C,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
|
|
@@ -43,21 +43,23 @@ exports.PlanSchema = zod_1.z.object({
|
|
|
43
43
|
});
|
|
44
44
|
/**
|
|
45
45
|
* License Schema
|
|
46
|
-
* The actual entitlement object assigned to a
|
|
46
|
+
* The actual entitlement object assigned to a Space.
|
|
47
47
|
* Often signed as a JWT.
|
|
48
48
|
*/
|
|
49
49
|
exports.LicenseSchema = zod_1.z.object({
|
|
50
50
|
/** Identity */
|
|
51
|
-
|
|
51
|
+
spaceId: zod_1.z.string().describe('Target Space ID'),
|
|
52
52
|
planCode: zod_1.z.string(),
|
|
53
53
|
/** Validity */
|
|
54
54
|
issuedAt: zod_1.z.string().datetime(),
|
|
55
55
|
expiresAt: zod_1.z.string().datetime().optional(), // Null = Perpetual
|
|
56
56
|
/** Status */
|
|
57
57
|
status: zod_1.z.enum(['active', 'expired', 'suspended', 'trial']),
|
|
58
|
-
/** Overrides (Specific to this
|
|
58
|
+
/** Overrides (Specific to this space, exceeding the plan) */
|
|
59
59
|
customFeatures: zod_1.z.array(zod_1.z.string()).optional(),
|
|
60
60
|
customLimits: zod_1.z.record(zod_1.z.number()).optional(),
|
|
61
|
+
/** Authorized Add-ons */
|
|
62
|
+
plugins: zod_1.z.array(zod_1.z.string()).optional().describe('List of enabled plugin package IDs'),
|
|
61
63
|
/** Signature */
|
|
62
64
|
signature: zod_1.z.string().optional().describe('Cryptographic signature of the license'),
|
|
63
65
|
});
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* # Marketplace Protocol
|
|
4
|
+
*
|
|
5
|
+
* Defines the schema for the ObjectStack Plugin Marketplace.
|
|
6
|
+
* This is the catalog of available extensions sourced from NPM or private registries.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Plugin Author Schema
|
|
10
|
+
*/
|
|
11
|
+
export declare const PluginAuthorSchema: z.ZodObject<{
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
email: z.ZodOptional<z.ZodString>;
|
|
14
|
+
url: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
name: string;
|
|
17
|
+
email?: string | undefined;
|
|
18
|
+
url?: string | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
name: string;
|
|
21
|
+
email?: string | undefined;
|
|
22
|
+
url?: string | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
/**
|
|
25
|
+
* Plugin Pricing Model Schema
|
|
26
|
+
*/
|
|
27
|
+
export declare const PluginPricingSchema: z.ZodObject<{
|
|
28
|
+
type: z.ZodEnum<["free", "one_time", "recurring"]>;
|
|
29
|
+
currency: z.ZodDefault<z.ZodString>;
|
|
30
|
+
amount: z.ZodNumber;
|
|
31
|
+
interval: z.ZodOptional<z.ZodEnum<["month", "year"]>>;
|
|
32
|
+
trialDays: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
type: "free" | "one_time" | "recurring";
|
|
35
|
+
currency: string;
|
|
36
|
+
amount: number;
|
|
37
|
+
interval?: "month" | "year" | undefined;
|
|
38
|
+
trialDays?: number | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
type: "free" | "one_time" | "recurring";
|
|
41
|
+
amount: number;
|
|
42
|
+
currency?: string | undefined;
|
|
43
|
+
interval?: "month" | "year" | undefined;
|
|
44
|
+
trialDays?: number | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
/**
|
|
47
|
+
* Plugin Registry Entry Schema
|
|
48
|
+
* Represents a listing in the Marketplace.
|
|
49
|
+
*/
|
|
50
|
+
export declare const MarketplacePluginSchema: z.ZodObject<{
|
|
51
|
+
/**
|
|
52
|
+
* Package Identifier
|
|
53
|
+
* Usually the NPM package name (e.g. "@steedos/plugin-crm")
|
|
54
|
+
*/
|
|
55
|
+
id: z.ZodString;
|
|
56
|
+
/**
|
|
57
|
+
* Display Name
|
|
58
|
+
*/
|
|
59
|
+
label: z.ZodString;
|
|
60
|
+
/**
|
|
61
|
+
* Short Description
|
|
62
|
+
*/
|
|
63
|
+
description: z.ZodOptional<z.ZodString>;
|
|
64
|
+
/**
|
|
65
|
+
* Detailed README / Documentation content
|
|
66
|
+
*/
|
|
67
|
+
readme: z.ZodOptional<z.ZodString>;
|
|
68
|
+
/**
|
|
69
|
+
* Latest Version
|
|
70
|
+
*/
|
|
71
|
+
version: z.ZodString;
|
|
72
|
+
/**
|
|
73
|
+
* Author / Publisher
|
|
74
|
+
*/
|
|
75
|
+
author: z.ZodOptional<z.ZodObject<{
|
|
76
|
+
name: z.ZodString;
|
|
77
|
+
email: z.ZodOptional<z.ZodString>;
|
|
78
|
+
url: z.ZodOptional<z.ZodString>;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
name: string;
|
|
81
|
+
email?: string | undefined;
|
|
82
|
+
url?: string | undefined;
|
|
83
|
+
}, {
|
|
84
|
+
name: string;
|
|
85
|
+
email?: string | undefined;
|
|
86
|
+
url?: string | undefined;
|
|
87
|
+
}>>;
|
|
88
|
+
/**
|
|
89
|
+
* Categorization
|
|
90
|
+
*/
|
|
91
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
92
|
+
category: z.ZodOptional<z.ZodEnum<["app", "integration", "theme", "utility", "driver"]>>;
|
|
93
|
+
/**
|
|
94
|
+
* Assets
|
|
95
|
+
*/
|
|
96
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
97
|
+
screenshots: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
98
|
+
/**
|
|
99
|
+
* Links
|
|
100
|
+
*/
|
|
101
|
+
homepage: z.ZodOptional<z.ZodString>;
|
|
102
|
+
repository: z.ZodOptional<z.ZodString>;
|
|
103
|
+
bugs: z.ZodOptional<z.ZodString>;
|
|
104
|
+
/**
|
|
105
|
+
* Statistics
|
|
106
|
+
*/
|
|
107
|
+
downloads: z.ZodOptional<z.ZodNumber>;
|
|
108
|
+
rating: z.ZodOptional<z.ZodNumber>;
|
|
109
|
+
/**
|
|
110
|
+
* Commercial Information
|
|
111
|
+
*/
|
|
112
|
+
pricing: z.ZodOptional<z.ZodObject<{
|
|
113
|
+
type: z.ZodEnum<["free", "one_time", "recurring"]>;
|
|
114
|
+
currency: z.ZodDefault<z.ZodString>;
|
|
115
|
+
amount: z.ZodNumber;
|
|
116
|
+
interval: z.ZodOptional<z.ZodEnum<["month", "year"]>>;
|
|
117
|
+
trialDays: z.ZodOptional<z.ZodNumber>;
|
|
118
|
+
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
type: "free" | "one_time" | "recurring";
|
|
120
|
+
currency: string;
|
|
121
|
+
amount: number;
|
|
122
|
+
interval?: "month" | "year" | undefined;
|
|
123
|
+
trialDays?: number | undefined;
|
|
124
|
+
}, {
|
|
125
|
+
type: "free" | "one_time" | "recurring";
|
|
126
|
+
amount: number;
|
|
127
|
+
currency?: string | undefined;
|
|
128
|
+
interval?: "month" | "year" | undefined;
|
|
129
|
+
trialDays?: number | undefined;
|
|
130
|
+
}>>;
|
|
131
|
+
verified: z.ZodDefault<z.ZodBoolean>;
|
|
132
|
+
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
label: string;
|
|
134
|
+
id: string;
|
|
135
|
+
version: string;
|
|
136
|
+
verified: boolean;
|
|
137
|
+
rating?: number | undefined;
|
|
138
|
+
tags?: string[] | undefined;
|
|
139
|
+
description?: string | undefined;
|
|
140
|
+
icon?: string | undefined;
|
|
141
|
+
category?: "theme" | "app" | "utility" | "integration" | "driver" | undefined;
|
|
142
|
+
author?: {
|
|
143
|
+
name: string;
|
|
144
|
+
email?: string | undefined;
|
|
145
|
+
url?: string | undefined;
|
|
146
|
+
} | undefined;
|
|
147
|
+
screenshots?: string[] | undefined;
|
|
148
|
+
readme?: string | undefined;
|
|
149
|
+
homepage?: string | undefined;
|
|
150
|
+
repository?: string | undefined;
|
|
151
|
+
bugs?: string | undefined;
|
|
152
|
+
downloads?: number | undefined;
|
|
153
|
+
pricing?: {
|
|
154
|
+
type: "free" | "one_time" | "recurring";
|
|
155
|
+
currency: string;
|
|
156
|
+
amount: number;
|
|
157
|
+
interval?: "month" | "year" | undefined;
|
|
158
|
+
trialDays?: number | undefined;
|
|
159
|
+
} | undefined;
|
|
160
|
+
}, {
|
|
161
|
+
label: string;
|
|
162
|
+
id: string;
|
|
163
|
+
version: string;
|
|
164
|
+
rating?: number | undefined;
|
|
165
|
+
tags?: string[] | undefined;
|
|
166
|
+
description?: string | undefined;
|
|
167
|
+
icon?: string | undefined;
|
|
168
|
+
category?: "theme" | "app" | "utility" | "integration" | "driver" | undefined;
|
|
169
|
+
author?: {
|
|
170
|
+
name: string;
|
|
171
|
+
email?: string | undefined;
|
|
172
|
+
url?: string | undefined;
|
|
173
|
+
} | undefined;
|
|
174
|
+
screenshots?: string[] | undefined;
|
|
175
|
+
readme?: string | undefined;
|
|
176
|
+
homepage?: string | undefined;
|
|
177
|
+
repository?: string | undefined;
|
|
178
|
+
bugs?: string | undefined;
|
|
179
|
+
downloads?: number | undefined;
|
|
180
|
+
pricing?: {
|
|
181
|
+
type: "free" | "one_time" | "recurring";
|
|
182
|
+
amount: number;
|
|
183
|
+
currency?: string | undefined;
|
|
184
|
+
interval?: "month" | "year" | undefined;
|
|
185
|
+
trialDays?: number | undefined;
|
|
186
|
+
} | undefined;
|
|
187
|
+
verified?: boolean | undefined;
|
|
188
|
+
}>;
|
|
189
|
+
export type PluginAuthor = z.infer<typeof PluginAuthorSchema>;
|
|
190
|
+
export type MarketplacePlugin = z.infer<typeof MarketplacePluginSchema>;
|
|
191
|
+
//# sourceMappingURL=marketplace.zod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marketplace.zod.d.ts","sourceRoot":"","sources":["../../src/hub/marketplace.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AAEH;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAI7B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAM9B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,uBAAuB;IAClC;;;OAGG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;IAGH;;OAEG;;;IAIH;;OAEG;;;IAIH;;OAEG;;;;IAKH;;OAEG;;;IAIH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIH,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MarketplacePluginSchema = exports.PluginPricingSchema = exports.PluginAuthorSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
/**
|
|
6
|
+
* # Marketplace Protocol
|
|
7
|
+
*
|
|
8
|
+
* Defines the schema for the ObjectStack Plugin Marketplace.
|
|
9
|
+
* This is the catalog of available extensions sourced from NPM or private registries.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Plugin Author Schema
|
|
13
|
+
*/
|
|
14
|
+
exports.PluginAuthorSchema = zod_1.z.object({
|
|
15
|
+
name: zod_1.z.string(),
|
|
16
|
+
email: zod_1.z.string().email().optional(),
|
|
17
|
+
url: zod_1.z.string().url().optional(),
|
|
18
|
+
});
|
|
19
|
+
/**
|
|
20
|
+
* Plugin Pricing Model Schema
|
|
21
|
+
*/
|
|
22
|
+
exports.PluginPricingSchema = zod_1.z.object({
|
|
23
|
+
type: zod_1.z.enum(['free', 'one_time', 'recurring']),
|
|
24
|
+
currency: zod_1.z.string().default('USD'),
|
|
25
|
+
amount: zod_1.z.number().min(0),
|
|
26
|
+
interval: zod_1.z.enum(['month', 'year']).optional().describe('Required if type is recurring'),
|
|
27
|
+
trialDays: zod_1.z.number().int().optional(),
|
|
28
|
+
});
|
|
29
|
+
/**
|
|
30
|
+
* Plugin Registry Entry Schema
|
|
31
|
+
* Represents a listing in the Marketplace.
|
|
32
|
+
*/
|
|
33
|
+
exports.MarketplacePluginSchema = zod_1.z.object({
|
|
34
|
+
/**
|
|
35
|
+
* Package Identifier
|
|
36
|
+
* Usually the NPM package name (e.g. "@steedos/plugin-crm")
|
|
37
|
+
*/
|
|
38
|
+
id: zod_1.z.string(),
|
|
39
|
+
/**
|
|
40
|
+
* Display Name
|
|
41
|
+
*/
|
|
42
|
+
label: zod_1.z.string(),
|
|
43
|
+
/**
|
|
44
|
+
* Short Description
|
|
45
|
+
*/
|
|
46
|
+
description: zod_1.z.string().optional(),
|
|
47
|
+
/**
|
|
48
|
+
* Detailed README / Documentation content
|
|
49
|
+
*/
|
|
50
|
+
readme: zod_1.z.string().optional(),
|
|
51
|
+
/**
|
|
52
|
+
* Latest Version
|
|
53
|
+
*/
|
|
54
|
+
version: zod_1.z.string(),
|
|
55
|
+
/**
|
|
56
|
+
* Author / Publisher
|
|
57
|
+
*/
|
|
58
|
+
author: exports.PluginAuthorSchema.optional(),
|
|
59
|
+
/**
|
|
60
|
+
* Categorization
|
|
61
|
+
*/
|
|
62
|
+
tags: zod_1.z.array(zod_1.z.string()).optional(),
|
|
63
|
+
category: zod_1.z.enum(['app', 'integration', 'theme', 'utility', 'driver']).optional(),
|
|
64
|
+
/**
|
|
65
|
+
* Assets
|
|
66
|
+
*/
|
|
67
|
+
icon: zod_1.z.string().url().optional(),
|
|
68
|
+
screenshots: zod_1.z.array(zod_1.z.string().url()).optional(),
|
|
69
|
+
/**
|
|
70
|
+
* Links
|
|
71
|
+
*/
|
|
72
|
+
homepage: zod_1.z.string().url().optional(),
|
|
73
|
+
repository: zod_1.z.string().url().optional(),
|
|
74
|
+
bugs: zod_1.z.string().url().optional(),
|
|
75
|
+
/**
|
|
76
|
+
* Statistics
|
|
77
|
+
*/
|
|
78
|
+
downloads: zod_1.z.number().int().optional(),
|
|
79
|
+
rating: zod_1.z.number().min(0).max(5).optional(),
|
|
80
|
+
/**
|
|
81
|
+
* Commercial Information
|
|
82
|
+
*/
|
|
83
|
+
pricing: exports.PluginPricingSchema.optional(),
|
|
84
|
+
verified: zod_1.z.boolean().default(false).describe('Is verified maintaned by ObjectStack'),
|
|
85
|
+
});
|