@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,401 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OData = exports.ODataMetadataSchema = exports.ODataErrorSchema = exports.ODataResponseSchema = exports.ODataFilterFunctionSchema = exports.ODataFilterOperatorSchema = exports.ODataQuerySchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
/**
|
|
6
|
+
* OData v4 Protocol Support
|
|
7
|
+
*
|
|
8
|
+
* Open Data Protocol (OData) v4 is an industry-standard protocol for building
|
|
9
|
+
* and consuming RESTful APIs. It provides a uniform way to expose, structure,
|
|
10
|
+
* query, and manipulate data.
|
|
11
|
+
*
|
|
12
|
+
* ## Overview
|
|
13
|
+
*
|
|
14
|
+
* OData v4 provides standardized URL conventions for querying data including:
|
|
15
|
+
* - $select: Choose which fields to return
|
|
16
|
+
* - $filter: Filter results with complex expressions
|
|
17
|
+
* - $orderby: Sort results
|
|
18
|
+
* - $top/$skip: Pagination
|
|
19
|
+
* - $expand: Include related entities
|
|
20
|
+
* - $count: Get total count
|
|
21
|
+
*
|
|
22
|
+
* ## Use Cases
|
|
23
|
+
*
|
|
24
|
+
* 1. **Enterprise Integration**
|
|
25
|
+
* - Integrate with Microsoft Dynamics 365
|
|
26
|
+
* - Connect to SharePoint Online
|
|
27
|
+
* - SAP OData services
|
|
28
|
+
*
|
|
29
|
+
* 2. **API Standardization**
|
|
30
|
+
* - Provide consistent query interface
|
|
31
|
+
* - Standard pagination and filtering
|
|
32
|
+
* - Industry-recognized protocol
|
|
33
|
+
*
|
|
34
|
+
* 3. **External Data Sources**
|
|
35
|
+
* - Connect to OData-compliant systems
|
|
36
|
+
* - Federated queries
|
|
37
|
+
* - Data virtualization
|
|
38
|
+
*
|
|
39
|
+
* @see https://www.odata.org/documentation/
|
|
40
|
+
* @see https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part2-url-conventions.html
|
|
41
|
+
*
|
|
42
|
+
* @example OData Query
|
|
43
|
+
* ```
|
|
44
|
+
* GET /api/odata/customers?
|
|
45
|
+
* $select=name,email&
|
|
46
|
+
* $filter=country eq 'US' and revenue gt 100000&
|
|
47
|
+
* $orderby=revenue desc&
|
|
48
|
+
* $top=10&
|
|
49
|
+
* $skip=20&
|
|
50
|
+
* $expand=orders&
|
|
51
|
+
* $count=true
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* @example Programmatic Use
|
|
55
|
+
* ```typescript
|
|
56
|
+
* const query: ODataQuery = {
|
|
57
|
+
* select: ['name', 'email'],
|
|
58
|
+
* filter: "country eq 'US' and revenue gt 100000",
|
|
59
|
+
* orderby: 'revenue desc',
|
|
60
|
+
* top: 10,
|
|
61
|
+
* skip: 20,
|
|
62
|
+
* expand: ['orders'],
|
|
63
|
+
* count: true
|
|
64
|
+
* }
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
/**
|
|
68
|
+
* OData Query Options Schema
|
|
69
|
+
*
|
|
70
|
+
* System query options defined by OData v4 specification.
|
|
71
|
+
* These are URL query parameters that control the query execution.
|
|
72
|
+
*
|
|
73
|
+
* @see https://docs.oasis-open.org/odata/odata/v4.01/odata-v4.01-part2-url-conventions.html#sec_SystemQueryOptions
|
|
74
|
+
*/
|
|
75
|
+
exports.ODataQuerySchema = zod_1.z.object({
|
|
76
|
+
/**
|
|
77
|
+
* $select - Select specific fields to return
|
|
78
|
+
*
|
|
79
|
+
* Comma-separated list of field names to include in the response.
|
|
80
|
+
* Reduces payload size and improves performance.
|
|
81
|
+
*
|
|
82
|
+
* @example "name,email,phone"
|
|
83
|
+
* @example "id,customer/name" - With navigation path
|
|
84
|
+
*/
|
|
85
|
+
$select: zod_1.z.union([
|
|
86
|
+
zod_1.z.string(), // "name,email"
|
|
87
|
+
zod_1.z.array(zod_1.z.string()), // ["name", "email"]
|
|
88
|
+
]).optional().describe('Fields to select'),
|
|
89
|
+
/**
|
|
90
|
+
* $filter - Filter results with conditions
|
|
91
|
+
*
|
|
92
|
+
* OData filter expression using comparison operators, logical operators,
|
|
93
|
+
* and functions.
|
|
94
|
+
*
|
|
95
|
+
* Comparison: eq, ne, lt, le, gt, ge
|
|
96
|
+
* Logical: and, or, not
|
|
97
|
+
* Functions: contains, startswith, endswith, length, indexof, substring, etc.
|
|
98
|
+
*
|
|
99
|
+
* @example "age gt 18"
|
|
100
|
+
* @example "country eq 'US' and revenue gt 100000"
|
|
101
|
+
* @example "contains(name, 'Smith')"
|
|
102
|
+
* @example "startswith(email, 'admin') and isActive eq true"
|
|
103
|
+
*/
|
|
104
|
+
$filter: zod_1.z.string().optional().describe('Filter expression (OData filter syntax)'),
|
|
105
|
+
/**
|
|
106
|
+
* $orderby - Sort results
|
|
107
|
+
*
|
|
108
|
+
* Comma-separated list of fields with optional asc/desc.
|
|
109
|
+
* Default is ascending.
|
|
110
|
+
*
|
|
111
|
+
* @example "name"
|
|
112
|
+
* @example "revenue desc"
|
|
113
|
+
* @example "country asc, revenue desc"
|
|
114
|
+
*/
|
|
115
|
+
$orderby: zod_1.z.union([
|
|
116
|
+
zod_1.z.string(), // "name desc"
|
|
117
|
+
zod_1.z.array(zod_1.z.string()), // ["name desc", "email asc"]
|
|
118
|
+
]).optional().describe('Sort order'),
|
|
119
|
+
/**
|
|
120
|
+
* $top - Limit number of results
|
|
121
|
+
*
|
|
122
|
+
* Maximum number of results to return.
|
|
123
|
+
* Equivalent to SQL LIMIT or FETCH FIRST.
|
|
124
|
+
*
|
|
125
|
+
* @example 10
|
|
126
|
+
* @example 100
|
|
127
|
+
*/
|
|
128
|
+
$top: zod_1.z.number().int().min(0).optional().describe('Max results to return'),
|
|
129
|
+
/**
|
|
130
|
+
* $skip - Skip results for pagination
|
|
131
|
+
*
|
|
132
|
+
* Number of results to skip before returning results.
|
|
133
|
+
* Equivalent to SQL OFFSET.
|
|
134
|
+
*
|
|
135
|
+
* @example 20
|
|
136
|
+
* @example 100
|
|
137
|
+
*/
|
|
138
|
+
$skip: zod_1.z.number().int().min(0).optional().describe('Results to skip'),
|
|
139
|
+
/**
|
|
140
|
+
* $expand - Include related entities
|
|
141
|
+
*
|
|
142
|
+
* Comma-separated list of navigation properties to expand.
|
|
143
|
+
* Loads related data in the same request.
|
|
144
|
+
*
|
|
145
|
+
* @example "orders"
|
|
146
|
+
* @example "customer,products"
|
|
147
|
+
* @example "orders($select=id,total)" - With nested query options
|
|
148
|
+
*/
|
|
149
|
+
$expand: zod_1.z.union([
|
|
150
|
+
zod_1.z.string(), // "orders"
|
|
151
|
+
zod_1.z.array(zod_1.z.string()), // ["orders", "customer"]
|
|
152
|
+
]).optional().describe('Navigation properties to expand'),
|
|
153
|
+
/**
|
|
154
|
+
* $count - Include total count
|
|
155
|
+
*
|
|
156
|
+
* When true, includes totalResults count in response.
|
|
157
|
+
* Useful for pagination UI.
|
|
158
|
+
*
|
|
159
|
+
* @example true
|
|
160
|
+
*/
|
|
161
|
+
$count: zod_1.z.boolean().optional().describe('Include total count'),
|
|
162
|
+
/**
|
|
163
|
+
* $search - Full-text search
|
|
164
|
+
*
|
|
165
|
+
* Free-text search expression.
|
|
166
|
+
* Search implementation is service-specific.
|
|
167
|
+
*
|
|
168
|
+
* @example "John Smith"
|
|
169
|
+
* @example "urgent AND support"
|
|
170
|
+
*/
|
|
171
|
+
$search: zod_1.z.string().optional().describe('Search expression'),
|
|
172
|
+
/**
|
|
173
|
+
* $format - Response format
|
|
174
|
+
*
|
|
175
|
+
* Preferred response format.
|
|
176
|
+
*
|
|
177
|
+
* @example "json"
|
|
178
|
+
* @example "xml"
|
|
179
|
+
*/
|
|
180
|
+
$format: zod_1.z.enum(['json', 'xml', 'atom']).optional().describe('Response format'),
|
|
181
|
+
/**
|
|
182
|
+
* $apply - Data aggregation
|
|
183
|
+
*
|
|
184
|
+
* Aggregation transformations (groupby, aggregate, etc.)
|
|
185
|
+
* Part of OData aggregation extension.
|
|
186
|
+
*
|
|
187
|
+
* @example "groupby((country),aggregate(revenue with sum as totalRevenue))"
|
|
188
|
+
*/
|
|
189
|
+
$apply: zod_1.z.string().optional().describe('Aggregation expression'),
|
|
190
|
+
});
|
|
191
|
+
/**
|
|
192
|
+
* OData Filter Operator
|
|
193
|
+
*
|
|
194
|
+
* Standard comparison and logical operators in OData filter expressions.
|
|
195
|
+
*/
|
|
196
|
+
exports.ODataFilterOperatorSchema = zod_1.z.enum([
|
|
197
|
+
// Comparison Operators
|
|
198
|
+
'eq', // Equal to
|
|
199
|
+
'ne', // Not equal to
|
|
200
|
+
'lt', // Less than
|
|
201
|
+
'le', // Less than or equal to
|
|
202
|
+
'gt', // Greater than
|
|
203
|
+
'ge', // Greater than or equal to
|
|
204
|
+
// Logical Operators
|
|
205
|
+
'and', // Logical AND
|
|
206
|
+
'or', // Logical OR
|
|
207
|
+
'not', // Logical NOT
|
|
208
|
+
// Grouping
|
|
209
|
+
'(', // Left parenthesis
|
|
210
|
+
')', // Right parenthesis
|
|
211
|
+
// Other
|
|
212
|
+
'in', // Value in list
|
|
213
|
+
'has', // Has flag (for enum flags)
|
|
214
|
+
]);
|
|
215
|
+
/**
|
|
216
|
+
* OData Filter Function
|
|
217
|
+
*
|
|
218
|
+
* Standard functions available in OData filter expressions.
|
|
219
|
+
*/
|
|
220
|
+
exports.ODataFilterFunctionSchema = zod_1.z.enum([
|
|
221
|
+
// String Functions
|
|
222
|
+
'contains', // contains(field, 'value')
|
|
223
|
+
'startswith', // startswith(field, 'value')
|
|
224
|
+
'endswith', // endswith(field, 'value')
|
|
225
|
+
'length', // length(field)
|
|
226
|
+
'indexof', // indexof(field, 'substring')
|
|
227
|
+
'substring', // substring(field, start, length)
|
|
228
|
+
'tolower', // tolower(field)
|
|
229
|
+
'toupper', // toupper(field)
|
|
230
|
+
'trim', // trim(field)
|
|
231
|
+
'concat', // concat(field1, field2)
|
|
232
|
+
// Date/Time Functions
|
|
233
|
+
'year', // year(dateField)
|
|
234
|
+
'month', // month(dateField)
|
|
235
|
+
'day', // day(dateField)
|
|
236
|
+
'hour', // hour(datetimeField)
|
|
237
|
+
'minute', // minute(datetimeField)
|
|
238
|
+
'second', // second(datetimeField)
|
|
239
|
+
'date', // date(datetimeField)
|
|
240
|
+
'time', // time(datetimeField)
|
|
241
|
+
'now', // now()
|
|
242
|
+
'maxdatetime', // maxdatetime()
|
|
243
|
+
'mindatetime', // mindatetime()
|
|
244
|
+
// Math Functions
|
|
245
|
+
'round', // round(numField)
|
|
246
|
+
'floor', // floor(numField)
|
|
247
|
+
'ceiling', // ceiling(numField)
|
|
248
|
+
// Type Functions
|
|
249
|
+
'cast', // cast(field, 'Edm.String')
|
|
250
|
+
'isof', // isof(field, 'Type')
|
|
251
|
+
// Collection Functions
|
|
252
|
+
'any', // collection/any(d:d/prop eq value)
|
|
253
|
+
'all', // collection/all(d:d/prop eq value)
|
|
254
|
+
]);
|
|
255
|
+
/**
|
|
256
|
+
* OData Response Schema
|
|
257
|
+
*
|
|
258
|
+
* Standard OData JSON response format.
|
|
259
|
+
*/
|
|
260
|
+
exports.ODataResponseSchema = zod_1.z.object({
|
|
261
|
+
/**
|
|
262
|
+
* OData context URL
|
|
263
|
+
* Describes the payload structure
|
|
264
|
+
*/
|
|
265
|
+
'@odata.context': zod_1.z.string().url().optional().describe('Metadata context URL'),
|
|
266
|
+
/**
|
|
267
|
+
* Total count (when $count=true)
|
|
268
|
+
*/
|
|
269
|
+
'@odata.count': zod_1.z.number().int().optional().describe('Total results count'),
|
|
270
|
+
/**
|
|
271
|
+
* Next link for pagination
|
|
272
|
+
*/
|
|
273
|
+
'@odata.nextLink': zod_1.z.string().url().optional().describe('Next page URL'),
|
|
274
|
+
/**
|
|
275
|
+
* Result array
|
|
276
|
+
*/
|
|
277
|
+
value: zod_1.z.array(zod_1.z.record(zod_1.z.any())).describe('Results array'),
|
|
278
|
+
});
|
|
279
|
+
/**
|
|
280
|
+
* OData Error Response Schema
|
|
281
|
+
*
|
|
282
|
+
* Standard OData error format.
|
|
283
|
+
*/
|
|
284
|
+
exports.ODataErrorSchema = zod_1.z.object({
|
|
285
|
+
error: zod_1.z.object({
|
|
286
|
+
/**
|
|
287
|
+
* Error code
|
|
288
|
+
*/
|
|
289
|
+
code: zod_1.z.string().describe('Error code'),
|
|
290
|
+
/**
|
|
291
|
+
* Error message
|
|
292
|
+
*/
|
|
293
|
+
message: zod_1.z.string().describe('Error message'),
|
|
294
|
+
/**
|
|
295
|
+
* Target of the error (field name, etc.)
|
|
296
|
+
*/
|
|
297
|
+
target: zod_1.z.string().optional().describe('Error target'),
|
|
298
|
+
/**
|
|
299
|
+
* Additional error details
|
|
300
|
+
*/
|
|
301
|
+
details: zod_1.z.array(zod_1.z.object({
|
|
302
|
+
code: zod_1.z.string(),
|
|
303
|
+
message: zod_1.z.string(),
|
|
304
|
+
target: zod_1.z.string().optional(),
|
|
305
|
+
})).optional().describe('Error details'),
|
|
306
|
+
/**
|
|
307
|
+
* Inner error for debugging
|
|
308
|
+
*/
|
|
309
|
+
innererror: zod_1.z.record(zod_1.z.any()).optional().describe('Inner error details'),
|
|
310
|
+
}),
|
|
311
|
+
});
|
|
312
|
+
/**
|
|
313
|
+
* OData Metadata Configuration
|
|
314
|
+
*
|
|
315
|
+
* Configuration for OData metadata endpoint ($metadata).
|
|
316
|
+
*/
|
|
317
|
+
exports.ODataMetadataSchema = zod_1.z.object({
|
|
318
|
+
/**
|
|
319
|
+
* Service namespace
|
|
320
|
+
*/
|
|
321
|
+
namespace: zod_1.z.string().describe('Service namespace'),
|
|
322
|
+
/**
|
|
323
|
+
* Entity types to expose
|
|
324
|
+
*/
|
|
325
|
+
entityTypes: zod_1.z.array(zod_1.z.object({
|
|
326
|
+
name: zod_1.z.string().describe('Entity type name'),
|
|
327
|
+
key: zod_1.z.array(zod_1.z.string()).describe('Key fields'),
|
|
328
|
+
properties: zod_1.z.array(zod_1.z.object({
|
|
329
|
+
name: zod_1.z.string(),
|
|
330
|
+
type: zod_1.z.string().describe('OData type (Edm.String, Edm.Int32, etc.)'),
|
|
331
|
+
nullable: zod_1.z.boolean().default(true),
|
|
332
|
+
})),
|
|
333
|
+
navigationProperties: zod_1.z.array(zod_1.z.object({
|
|
334
|
+
name: zod_1.z.string(),
|
|
335
|
+
type: zod_1.z.string(),
|
|
336
|
+
partner: zod_1.z.string().optional(),
|
|
337
|
+
})).optional(),
|
|
338
|
+
})).describe('Entity types'),
|
|
339
|
+
/**
|
|
340
|
+
* Entity sets
|
|
341
|
+
*/
|
|
342
|
+
entitySets: zod_1.z.array(zod_1.z.object({
|
|
343
|
+
name: zod_1.z.string().describe('Entity set name'),
|
|
344
|
+
entityType: zod_1.z.string().describe('Entity type'),
|
|
345
|
+
})).describe('Entity sets'),
|
|
346
|
+
});
|
|
347
|
+
/**
|
|
348
|
+
* Helper functions for OData operations
|
|
349
|
+
*/
|
|
350
|
+
exports.OData = {
|
|
351
|
+
/**
|
|
352
|
+
* Build OData query URL
|
|
353
|
+
*/
|
|
354
|
+
buildUrl: (baseUrl, query) => {
|
|
355
|
+
const params = new URLSearchParams();
|
|
356
|
+
if (query.$select) {
|
|
357
|
+
params.append('$select', Array.isArray(query.$select) ? query.$select.join(',') : query.$select);
|
|
358
|
+
}
|
|
359
|
+
if (query.$filter) {
|
|
360
|
+
params.append('$filter', query.$filter);
|
|
361
|
+
}
|
|
362
|
+
if (query.$orderby) {
|
|
363
|
+
params.append('$orderby', Array.isArray(query.$orderby) ? query.$orderby.join(',') : query.$orderby);
|
|
364
|
+
}
|
|
365
|
+
if (query.$top !== undefined) {
|
|
366
|
+
params.append('$top', query.$top.toString());
|
|
367
|
+
}
|
|
368
|
+
if (query.$skip !== undefined) {
|
|
369
|
+
params.append('$skip', query.$skip.toString());
|
|
370
|
+
}
|
|
371
|
+
if (query.$expand) {
|
|
372
|
+
params.append('$expand', Array.isArray(query.$expand) ? query.$expand.join(',') : query.$expand);
|
|
373
|
+
}
|
|
374
|
+
if (query.$count !== undefined) {
|
|
375
|
+
params.append('$count', query.$count.toString());
|
|
376
|
+
}
|
|
377
|
+
if (query.$search) {
|
|
378
|
+
params.append('$search', query.$search);
|
|
379
|
+
}
|
|
380
|
+
if (query.$format) {
|
|
381
|
+
params.append('$format', query.$format);
|
|
382
|
+
}
|
|
383
|
+
if (query.$apply) {
|
|
384
|
+
params.append('$apply', query.$apply);
|
|
385
|
+
}
|
|
386
|
+
const queryString = params.toString();
|
|
387
|
+
return queryString ? `${baseUrl}?${queryString}` : baseUrl;
|
|
388
|
+
},
|
|
389
|
+
/**
|
|
390
|
+
* Create a simple filter expression
|
|
391
|
+
*/
|
|
392
|
+
filter: {
|
|
393
|
+
eq: (field, value) => `${field} eq ${typeof value === 'string' ? `'${value}'` : value}`,
|
|
394
|
+
ne: (field, value) => `${field} ne ${typeof value === 'string' ? `'${value}'` : value}`,
|
|
395
|
+
gt: (field, value) => `${field} gt ${value}`,
|
|
396
|
+
lt: (field, value) => `${field} lt ${value}`,
|
|
397
|
+
contains: (field, value) => `contains(${field}, '${value}')`,
|
|
398
|
+
and: (...expressions) => expressions.join(' and '),
|
|
399
|
+
or: (...expressions) => expressions.join(' or '),
|
|
400
|
+
},
|
|
401
|
+
};
|
|
@@ -50,21 +50,21 @@ export declare const SubscriptionSchema: z.ZodObject<{
|
|
|
50
50
|
transport: z.ZodEnum<["websocket", "sse", "polling"]>;
|
|
51
51
|
channel: z.ZodOptional<z.ZodString>;
|
|
52
52
|
}, "strip", z.ZodTypeAny, {
|
|
53
|
-
id: string;
|
|
54
53
|
events: {
|
|
55
54
|
type: "record.created" | "record.updated" | "record.deleted" | "field.changed";
|
|
56
55
|
object?: string | undefined;
|
|
57
56
|
filters?: any;
|
|
58
57
|
}[];
|
|
58
|
+
id: string;
|
|
59
59
|
transport: "websocket" | "sse" | "polling";
|
|
60
60
|
channel?: string | undefined;
|
|
61
61
|
}, {
|
|
62
|
-
id: string;
|
|
63
62
|
events: {
|
|
64
63
|
type: "record.created" | "record.updated" | "record.deleted" | "field.changed";
|
|
65
64
|
object?: string | undefined;
|
|
66
65
|
filters?: any;
|
|
67
66
|
}[];
|
|
67
|
+
id: string;
|
|
68
68
|
transport: "websocket" | "sse" | "polling";
|
|
69
69
|
channel?: string | undefined;
|
|
70
70
|
}>;
|
|
@@ -119,17 +119,17 @@ export declare const RealtimeEventSchema: z.ZodObject<{
|
|
|
119
119
|
id: string;
|
|
120
120
|
timestamp: string;
|
|
121
121
|
object?: string | undefined;
|
|
122
|
+
userId?: string | undefined;
|
|
122
123
|
payload?: any;
|
|
123
124
|
action?: "created" | "updated" | "deleted" | undefined;
|
|
124
|
-
userId?: string | undefined;
|
|
125
125
|
}, {
|
|
126
126
|
type: string;
|
|
127
127
|
id: string;
|
|
128
128
|
timestamp: string;
|
|
129
129
|
object?: string | undefined;
|
|
130
|
+
userId?: string | undefined;
|
|
130
131
|
payload?: any;
|
|
131
132
|
action?: "created" | "updated" | "deleted" | undefined;
|
|
132
|
-
userId?: string | undefined;
|
|
133
133
|
}>;
|
|
134
134
|
export type RealtimeEvent = z.infer<typeof RealtimeEventSchema>;
|
|
135
135
|
//# sourceMappingURL=realtime.zod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtime.zod.d.ts","sourceRoot":"","sources":["../../src/api/realtime.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;GAGG;AACH,eAAO,MAAM,iBAAiB,4CAI5B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE;;;GAGG;AACH,eAAO,MAAM,iBAAiB,oFAK5B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE;;;GAGG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;EAIlC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,cAAc,0CAIzB,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;EAKzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,cAAc,8CAIzB,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;EAQ9B,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* HTTP Method Enum
|
|
4
|
+
*/
|
|
5
|
+
export declare const HttpMethod: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]>;
|
|
6
|
+
export type HttpMethod = z.infer<typeof HttpMethod>;
|
|
7
|
+
/**
|
|
8
|
+
* Route Category Enum
|
|
9
|
+
* Classifies routes for middleware application and security policies.
|
|
10
|
+
*/
|
|
11
|
+
export declare const RouteCategory: z.ZodEnum<["system", "api", "auth", "static", "webhook", "plugin"]>;
|
|
12
|
+
export type RouteCategory = z.infer<typeof RouteCategory>;
|
|
13
|
+
/**
|
|
14
|
+
* Route Definition Schema
|
|
15
|
+
* Describes a single routable endpoint in the Kernel.
|
|
16
|
+
*/
|
|
17
|
+
export declare const RouteDefinitionSchema: z.ZodObject<{
|
|
18
|
+
/**
|
|
19
|
+
* HTTP Method
|
|
20
|
+
*/
|
|
21
|
+
method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]>;
|
|
22
|
+
/**
|
|
23
|
+
* URL Path Pattern (supports parameters like /user/:id)
|
|
24
|
+
*/
|
|
25
|
+
path: z.ZodString;
|
|
26
|
+
/**
|
|
27
|
+
* Route Type/Category
|
|
28
|
+
*/
|
|
29
|
+
category: z.ZodDefault<z.ZodEnum<["system", "api", "auth", "static", "webhook", "plugin"]>>;
|
|
30
|
+
/**
|
|
31
|
+
* Handler Identifier
|
|
32
|
+
* References an internal function or plugin action ID.
|
|
33
|
+
*/
|
|
34
|
+
handler: z.ZodString;
|
|
35
|
+
/**
|
|
36
|
+
* Route specific metadata
|
|
37
|
+
*/
|
|
38
|
+
summary: z.ZodOptional<z.ZodString>;
|
|
39
|
+
description: z.ZodOptional<z.ZodString>;
|
|
40
|
+
/**
|
|
41
|
+
* Security constraints
|
|
42
|
+
*/
|
|
43
|
+
public: z.ZodDefault<z.ZodBoolean>;
|
|
44
|
+
permissions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
45
|
+
/**
|
|
46
|
+
* Performance hints
|
|
47
|
+
*/
|
|
48
|
+
timeout: z.ZodOptional<z.ZodNumber>;
|
|
49
|
+
rateLimit: z.ZodOptional<z.ZodString>;
|
|
50
|
+
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
path: string;
|
|
52
|
+
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
|
|
53
|
+
handler: string;
|
|
54
|
+
category: "api" | "system" | "webhook" | "plugin" | "auth" | "static";
|
|
55
|
+
public: boolean;
|
|
56
|
+
summary?: string | undefined;
|
|
57
|
+
description?: string | undefined;
|
|
58
|
+
timeout?: number | undefined;
|
|
59
|
+
permissions?: string[] | undefined;
|
|
60
|
+
rateLimit?: string | undefined;
|
|
61
|
+
}, {
|
|
62
|
+
path: string;
|
|
63
|
+
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
|
|
64
|
+
handler: string;
|
|
65
|
+
summary?: string | undefined;
|
|
66
|
+
description?: string | undefined;
|
|
67
|
+
timeout?: number | undefined;
|
|
68
|
+
category?: "api" | "system" | "webhook" | "plugin" | "auth" | "static" | undefined;
|
|
69
|
+
permissions?: string[] | undefined;
|
|
70
|
+
public?: boolean | undefined;
|
|
71
|
+
rateLimit?: string | undefined;
|
|
72
|
+
}>;
|
|
73
|
+
export type RouteDefinition = z.infer<typeof RouteDefinitionSchema>;
|
|
74
|
+
/**
|
|
75
|
+
* Router Configuration Schema
|
|
76
|
+
* Global routing table configuration.
|
|
77
|
+
*/
|
|
78
|
+
export declare const RouterConfigSchema: z.ZodObject<{
|
|
79
|
+
/**
|
|
80
|
+
* URL Prefix for all kernel routes
|
|
81
|
+
*/
|
|
82
|
+
basePath: z.ZodDefault<z.ZodString>;
|
|
83
|
+
/**
|
|
84
|
+
* Standard Protocol Mounts (Relative to basePath)
|
|
85
|
+
*/
|
|
86
|
+
mounts: z.ZodDefault<z.ZodObject<{
|
|
87
|
+
data: z.ZodDefault<z.ZodString>;
|
|
88
|
+
metadata: z.ZodDefault<z.ZodString>;
|
|
89
|
+
auth: z.ZodDefault<z.ZodString>;
|
|
90
|
+
automation: z.ZodDefault<z.ZodString>;
|
|
91
|
+
storage: z.ZodDefault<z.ZodString>;
|
|
92
|
+
graphql: z.ZodDefault<z.ZodString>;
|
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
|
94
|
+
data: string;
|
|
95
|
+
metadata: string;
|
|
96
|
+
storage: string;
|
|
97
|
+
auth: string;
|
|
98
|
+
automation: string;
|
|
99
|
+
graphql: string;
|
|
100
|
+
}, {
|
|
101
|
+
data?: string | undefined;
|
|
102
|
+
metadata?: string | undefined;
|
|
103
|
+
storage?: string | undefined;
|
|
104
|
+
auth?: string | undefined;
|
|
105
|
+
automation?: string | undefined;
|
|
106
|
+
graphql?: string | undefined;
|
|
107
|
+
}>>;
|
|
108
|
+
/**
|
|
109
|
+
* Cross-Origin Resource Sharing
|
|
110
|
+
*/
|
|
111
|
+
cors: z.ZodOptional<z.ZodObject<{
|
|
112
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
113
|
+
origin: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
114
|
+
methods: z.ZodOptional<z.ZodArray<z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]>, "many">>;
|
|
115
|
+
}, "strip", z.ZodTypeAny, {
|
|
116
|
+
enabled: boolean;
|
|
117
|
+
origin: string | string[];
|
|
118
|
+
methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined;
|
|
119
|
+
}, {
|
|
120
|
+
enabled?: boolean | undefined;
|
|
121
|
+
origin?: string | string[] | undefined;
|
|
122
|
+
methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined;
|
|
123
|
+
}>>;
|
|
124
|
+
/**
|
|
125
|
+
* Static asset mounts
|
|
126
|
+
*/
|
|
127
|
+
staticMounts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
128
|
+
path: z.ZodString;
|
|
129
|
+
dir: z.ZodString;
|
|
130
|
+
cacheControl: z.ZodOptional<z.ZodString>;
|
|
131
|
+
}, "strip", z.ZodTypeAny, {
|
|
132
|
+
path: string;
|
|
133
|
+
dir: string;
|
|
134
|
+
cacheControl?: string | undefined;
|
|
135
|
+
}, {
|
|
136
|
+
path: string;
|
|
137
|
+
dir: string;
|
|
138
|
+
cacheControl?: string | undefined;
|
|
139
|
+
}>, "many">>;
|
|
140
|
+
}, "strip", z.ZodTypeAny, {
|
|
141
|
+
basePath: string;
|
|
142
|
+
mounts: {
|
|
143
|
+
data: string;
|
|
144
|
+
metadata: string;
|
|
145
|
+
storage: string;
|
|
146
|
+
auth: string;
|
|
147
|
+
automation: string;
|
|
148
|
+
graphql: string;
|
|
149
|
+
};
|
|
150
|
+
cors?: {
|
|
151
|
+
enabled: boolean;
|
|
152
|
+
origin: string | string[];
|
|
153
|
+
methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined;
|
|
154
|
+
} | undefined;
|
|
155
|
+
staticMounts?: {
|
|
156
|
+
path: string;
|
|
157
|
+
dir: string;
|
|
158
|
+
cacheControl?: string | undefined;
|
|
159
|
+
}[] | undefined;
|
|
160
|
+
}, {
|
|
161
|
+
basePath?: string | undefined;
|
|
162
|
+
mounts?: {
|
|
163
|
+
data?: string | undefined;
|
|
164
|
+
metadata?: string | undefined;
|
|
165
|
+
storage?: string | undefined;
|
|
166
|
+
auth?: string | undefined;
|
|
167
|
+
automation?: string | undefined;
|
|
168
|
+
graphql?: string | undefined;
|
|
169
|
+
} | undefined;
|
|
170
|
+
cors?: {
|
|
171
|
+
enabled?: boolean | undefined;
|
|
172
|
+
origin?: string | string[] | undefined;
|
|
173
|
+
methods?: ("GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS")[] | undefined;
|
|
174
|
+
} | undefined;
|
|
175
|
+
staticMounts?: {
|
|
176
|
+
path: string;
|
|
177
|
+
dir: string;
|
|
178
|
+
cacheControl?: string | undefined;
|
|
179
|
+
}[] | undefined;
|
|
180
|
+
}>;
|
|
181
|
+
export type RouterConfig = z.infer<typeof RouterConfigSchema>;
|
|
182
|
+
//# sourceMappingURL=router.zod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router.zod.d.ts","sourceRoot":"","sources":["../../src/api/router.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,UAAU,yEAQrB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAEpD;;;GAGG;AACH,eAAO,MAAM,aAAa,qEAOxB,CAAC;AAEH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAE1D;;;GAGG;AACH,eAAO,MAAM,qBAAqB;IAChC;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;;OAGG;;IAGH;;OAEG;;;IAIH;;OAEG;;;IAIH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;EAGH,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE;;;GAGG;AACH,eAAO,MAAM,kBAAkB;IAC7B;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;IAUH;;OAEG;;;;;;;;;;;;;;IAOH;;OAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMH,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|