@objectstack/spec 0.3.1 → 0.3.3
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 +65 -65
- package/dist/ai/cost.zod.d.ts +125 -125
- 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 +94 -94
- package/dist/ai/nlq.zod.d.ts +70 -70
- package/dist/ai/{workflow-automation.zod.d.ts → orchestration.zod.d.ts} +50 -49
- 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 +31 -31
- package/dist/ai/rag-pipeline.zod.d.ts +86 -86
- package/dist/api/contract.zod.d.ts +125 -109
- 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 +4 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +4 -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} +191 -191
- 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 +7 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +22 -0
- package/dist/{system → auth}/organization.zod.d.ts +5 -5
- 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/auth/role.zod.d.ts.map +1 -0
- package/dist/{data → automation}/flow.zod.d.ts +34 -16
- 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 +4 -0
- package/dist/automation/index.d.ts.map +1 -0
- package/dist/automation/index.js +19 -0
- package/dist/{system → automation}/webhook.zod.d.ts +2 -2
- package/dist/automation/webhook.zod.d.ts.map +1 -0
- package/dist/automation/workflow.zod.d.ts +2045 -0
- package/dist/automation/workflow.zod.d.ts.map +1 -0
- package/dist/{data → automation}/workflow.zod.js +24 -1
- package/dist/data/dataset.zod.d.ts +2 -2
- package/dist/data/field.zod.d.ts +443 -213
- package/dist/data/field.zod.d.ts.map +1 -1
- package/dist/data/field.zod.js +29 -1
- 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 +103 -91
- package/dist/data/mapping.zod.d.ts.map +1 -1
- package/dist/data/object.zod.d.ts +387 -127
- 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/{system → driver}/datasource.zod.d.ts +42 -8
- package/dist/driver/datasource.zod.d.ts.map +1 -0
- package/dist/{system → driver}/datasource.zod.js +17 -13
- package/dist/driver/driver.zod.d.ts +3392 -0
- package/dist/driver/driver.zod.d.ts.map +1 -0
- package/dist/{system → driver}/driver.zod.js +99 -0
- package/dist/driver/index.d.ts +5 -0
- package/dist/driver/index.d.ts.map +1 -0
- package/dist/driver/index.js +20 -0
- package/dist/driver/mongo.zod.d.ts +107 -0
- package/dist/driver/mongo.zod.d.ts.map +1 -0
- package/dist/driver/mongo.zod.js +80 -0
- package/dist/driver/postgres.zod.d.ts +134 -0
- package/dist/driver/postgres.zod.d.ts.map +1 -0
- package/dist/driver/postgres.zod.js +88 -0
- package/dist/hub/composer.zod.d.ts +2768 -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 +11 -7
- 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 +12 -5
- package/dist/kernel/context.zod.d.ts +56 -0
- package/dist/kernel/context.zod.d.ts.map +1 -0
- package/dist/kernel/context.zod.js +43 -0
- package/dist/kernel/index.d.ts +12 -0
- package/dist/kernel/index.d.ts.map +1 -0
- package/dist/kernel/index.js +27 -0
- package/dist/kernel/logger.zod.d.ts +111 -0
- package/dist/kernel/logger.zod.d.ts.map +1 -0
- package/dist/kernel/logger.zod.js +75 -0
- package/dist/kernel/manifest.zod.d.ts +2153 -0
- package/dist/kernel/manifest.zod.d.ts.map +1 -0
- package/dist/{system → kernel}/manifest.zod.js +40 -0
- package/dist/{system → kernel}/plugin.zod.d.ts +598 -318
- package/dist/kernel/plugin.zod.d.ts.map +1 -0
- package/dist/{system → kernel}/plugin.zod.js +13 -0
- package/dist/kernel/scoped-storage.zod.d.ts +81 -0
- package/dist/kernel/scoped-storage.zod.d.ts.map +1 -0
- package/dist/kernel/scoped-storage.zod.js +66 -0
- package/dist/permission/index.d.ts +12 -0
- package/dist/permission/index.d.ts.map +1 -0
- package/dist/permission/index.js +27 -0
- package/dist/{data → permission}/permission.zod.d.ts +34 -3
- package/dist/permission/permission.zod.d.ts.map +1 -0
- package/dist/{data → permission}/permission.zod.js +10 -1
- 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/permission/territory.zod.d.ts.map +1 -0
- package/dist/system/audit.zod.d.ts +52 -52
- package/dist/system/events.zod.d.ts +17 -17
- package/dist/system/index.d.ts +1 -20
- package/dist/system/index.d.ts.map +1 -1
- package/dist/system/index.js +3 -20
- package/dist/system/job.zod.d.ts +13 -13
- package/dist/ui/action.zod.d.ts +13 -13
- package/dist/ui/app.zod.d.ts +11 -11
- package/dist/ui/dashboard.zod.d.ts +12 -12
- package/dist/ui/page.zod.d.ts +2 -2
- package/dist/ui/report.zod.d.ts +7 -7
- package/dist/ui/theme.zod.d.ts +42 -42
- package/dist/ui/view.zod.d.ts +2320 -59
- package/dist/ui/view.zod.d.ts.map +1 -1
- package/dist/ui/view.zod.js +102 -3
- package/dist/ui/widget.zod.d.ts +61 -28
- package/dist/ui/widget.zod.d.ts.map +1 -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/api/HttpMethod.json +18 -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/{data → automation}/Flow.json +31 -1
- package/json-schema/{data → automation}/FlowEdge.json +9 -0
- package/json-schema/{data/WorkflowRule.json → automation/TimeTrigger.json} +35 -25
- package/json-schema/automation/WorkflowRule.json +1031 -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 +30 -0
- package/json-schema/data/FieldOperators.json +78 -0
- package/json-schema/data/FieldReference.json +19 -0
- 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/{TriggerAction.json → JoinStrategy.json} +6 -5
- package/json-schema/data/NormalizedFilter.json +234 -0
- package/json-schema/data/Object.json +1580 -28
- 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/StateMachineValidation.json +33 -2
- package/json-schema/data/UniquenessValidation.json +33 -2
- package/json-schema/data/ValidationRule.json +693 -46
- package/json-schema/{system → driver}/Datasource.json +35 -0
- package/json-schema/{system → driver}/DriverCapabilities.json +10 -0
- package/json-schema/{system → driver}/DriverInterface.json +10 -0
- package/json-schema/{system → driver}/DriverOptions.json +11 -0
- package/json-schema/driver/MongoConfig.json +82 -0
- package/json-schema/driver/PostgresConfig.json +98 -0
- package/json-schema/hub/BillOfMaterials.json +70 -0
- package/json-schema/hub/ComposerRequest.json +86 -0
- package/json-schema/hub/ComposerResponse.json +2645 -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/kernel/FileMetadata.json +43 -0
- package/json-schema/kernel/KernelContext.json +62 -0
- package/json-schema/kernel/LogEntry.json +63 -0
- package/json-schema/kernel/LogFormat.json +15 -0
- package/json-schema/kernel/LogLevel.json +17 -0
- package/json-schema/kernel/LoggerConfig.json +70 -0
- package/json-schema/kernel/Manifest.json +2557 -0
- package/json-schema/{system → kernel}/PluginContext.json +8 -1
- package/json-schema/kernel/RuntimeMode.json +16 -0
- package/json-schema/kernel/ScopedStorageConfig.json +54 -0
- package/json-schema/kernel/StorageAdapterType.json +17 -0
- package/json-schema/kernel/StorageScope.json +18 -0
- 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 +15 -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/ui/FieldWidgetProps.json +30 -0
- package/json-schema/ui/FormField.json +61 -0
- package/json-schema/ui/FormSection.json +60 -1
- package/json-schema/ui/FormView.json +257 -2
- package/json-schema/{system → ui}/HttpMethod.json +2 -2
- package/json-schema/ui/HttpRequest.json +46 -0
- package/json-schema/ui/ListColumn.json +57 -0
- package/json-schema/ui/ListView.json +249 -4
- package/json-schema/ui/PaginationConfig.json +26 -0
- package/json-schema/ui/SelectionConfig.json +22 -0
- package/json-schema/ui/View.json +1012 -12
- package/json-schema/ui/ViewData.json +142 -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/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/datasource.zod.d.ts.map +0 -1
- package/dist/system/discovery.zod.d.ts.map +0 -1
- package/dist/system/driver.zod.d.ts +0 -1631
- package/dist/system/driver.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/manifest.zod.d.ts +0 -397
- package/dist/system/manifest.zod.d.ts.map +0 -1
- package/dist/system/organization.zod.d.ts.map +0 -1
- package/dist/system/plugin.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/LogicOperator.json +0 -14
- 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/json-schema/data/TriggerTiming.json +0 -13
- package/json-schema/system/Manifest.json +0 -315
- /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/dist/{system → auth}/role.zod.d.ts +0 -0
- /package/dist/{system → auth}/role.zod.js +0 -0
- /package/dist/{system → automation}/webhook.zod.js +0 -0
- /package/dist/{system → permission}/territory.zod.d.ts +0 -0
- /package/dist/{system → permission}/territory.zod.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}/Role.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/{system → automation}/Webhook.json +0 -0
- /package/json-schema/{system → automation}/WebhookReceiver.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 → driver}/DatasourceCapabilities.json +0 -0
- /package/json-schema/{system → driver}/DriverDefinition.json +0 -0
- /package/json-schema/{system → driver}/DriverType.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/{system → kernel}/I18nContext.json +0 -0
- /package/json-schema/{system → kernel}/Logger.json +0 -0
- /package/json-schema/{system → kernel}/ObjectQLClient.json +0 -0
- /package/json-schema/{system → kernel}/Plugin.json +0 -0
- /package/json-schema/{system → kernel}/PluginLifecycle.json +0 -0
- /package/json-schema/{system → kernel}/Router.json +0 -0
- /package/json-schema/{system → kernel}/Scheduler.json +0 -0
- /package/json-schema/{system → kernel}/ScopedStorage.json +0 -0
- /package/json-schema/{system → kernel}/SystemAPI.json +0 -0
- /package/json-schema/{data → permission}/FieldPermission.json +0 -0
- /package/json-schema/{system → permission}/Territory.json +0 -0
- /package/json-schema/{system → permission}/TerritoryModel.json +0 -0
- /package/json-schema/{system → permission}/TerritoryType.json +0 -0
|
@@ -38,194 +38,65 @@
|
|
|
38
38
|
},
|
|
39
39
|
"description": "Fields to retrieve"
|
|
40
40
|
},
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"function": {
|
|
47
|
-
"type": "string",
|
|
48
|
-
"enum": [
|
|
49
|
-
"count",
|
|
50
|
-
"sum",
|
|
51
|
-
"avg",
|
|
52
|
-
"min",
|
|
53
|
-
"max",
|
|
54
|
-
"count_distinct",
|
|
55
|
-
"array_agg",
|
|
56
|
-
"string_agg"
|
|
57
|
-
],
|
|
58
|
-
"description": "Aggregation function"
|
|
59
|
-
},
|
|
60
|
-
"field": {
|
|
61
|
-
"type": "string",
|
|
62
|
-
"description": "Field to aggregate (optional for COUNT(*))"
|
|
63
|
-
},
|
|
64
|
-
"alias": {
|
|
65
|
-
"type": "string",
|
|
66
|
-
"description": "Result column alias"
|
|
67
|
-
},
|
|
68
|
-
"distinct": {
|
|
69
|
-
"type": "boolean",
|
|
70
|
-
"description": "Apply DISTINCT before aggregation"
|
|
71
|
-
}
|
|
41
|
+
"where": {
|
|
42
|
+
"allOf": [
|
|
43
|
+
{
|
|
44
|
+
"type": "object",
|
|
45
|
+
"additionalProperties": {}
|
|
72
46
|
},
|
|
73
|
-
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
47
|
+
{
|
|
48
|
+
"type": "object",
|
|
49
|
+
"properties": {
|
|
50
|
+
"$and": {
|
|
51
|
+
"type": "array",
|
|
52
|
+
"items": {}
|
|
53
|
+
},
|
|
54
|
+
"$or": {
|
|
55
|
+
"type": "array",
|
|
56
|
+
"items": {}
|
|
57
|
+
},
|
|
58
|
+
"$not": {}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"description": "Filtering criteria (WHERE)"
|
|
80
63
|
},
|
|
81
|
-
"
|
|
64
|
+
"orderBy": {
|
|
82
65
|
"type": "array",
|
|
83
66
|
"items": {
|
|
84
67
|
"type": "object",
|
|
85
68
|
"properties": {
|
|
86
|
-
"function": {
|
|
87
|
-
"type": "string",
|
|
88
|
-
"enum": [
|
|
89
|
-
"row_number",
|
|
90
|
-
"rank",
|
|
91
|
-
"dense_rank",
|
|
92
|
-
"percent_rank",
|
|
93
|
-
"lag",
|
|
94
|
-
"lead",
|
|
95
|
-
"first_value",
|
|
96
|
-
"last_value",
|
|
97
|
-
"sum",
|
|
98
|
-
"avg",
|
|
99
|
-
"count",
|
|
100
|
-
"min",
|
|
101
|
-
"max"
|
|
102
|
-
],
|
|
103
|
-
"description": "Window function name"
|
|
104
|
-
},
|
|
105
69
|
"field": {
|
|
106
|
-
"type": "string"
|
|
107
|
-
"description": "Field to operate on (for aggregate window functions)"
|
|
70
|
+
"type": "string"
|
|
108
71
|
},
|
|
109
|
-
"
|
|
72
|
+
"order": {
|
|
110
73
|
"type": "string",
|
|
111
|
-
"
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
"
|
|
116
|
-
"partitionBy": {
|
|
117
|
-
"type": "array",
|
|
118
|
-
"items": {
|
|
119
|
-
"type": "string"
|
|
120
|
-
},
|
|
121
|
-
"description": "PARTITION BY fields"
|
|
122
|
-
},
|
|
123
|
-
"orderBy": {
|
|
124
|
-
"type": "array",
|
|
125
|
-
"items": {
|
|
126
|
-
"type": "object",
|
|
127
|
-
"properties": {
|
|
128
|
-
"field": {
|
|
129
|
-
"type": "string"
|
|
130
|
-
},
|
|
131
|
-
"order": {
|
|
132
|
-
"type": "string",
|
|
133
|
-
"enum": [
|
|
134
|
-
"asc",
|
|
135
|
-
"desc"
|
|
136
|
-
],
|
|
137
|
-
"default": "asc"
|
|
138
|
-
}
|
|
139
|
-
},
|
|
140
|
-
"required": [
|
|
141
|
-
"field"
|
|
142
|
-
],
|
|
143
|
-
"additionalProperties": false
|
|
144
|
-
},
|
|
145
|
-
"description": "ORDER BY specification"
|
|
146
|
-
},
|
|
147
|
-
"frame": {
|
|
148
|
-
"type": "object",
|
|
149
|
-
"properties": {
|
|
150
|
-
"type": {
|
|
151
|
-
"type": "string",
|
|
152
|
-
"enum": [
|
|
153
|
-
"rows",
|
|
154
|
-
"range"
|
|
155
|
-
]
|
|
156
|
-
},
|
|
157
|
-
"start": {
|
|
158
|
-
"type": "string",
|
|
159
|
-
"description": "Frame start (e.g., \"UNBOUNDED PRECEDING\", \"1 PRECEDING\")"
|
|
160
|
-
},
|
|
161
|
-
"end": {
|
|
162
|
-
"type": "string",
|
|
163
|
-
"description": "Frame end (e.g., \"CURRENT ROW\", \"1 FOLLOWING\")"
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
"additionalProperties": false,
|
|
167
|
-
"description": "Window frame specification"
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
"additionalProperties": false,
|
|
171
|
-
"description": "Window specification (OVER clause)"
|
|
74
|
+
"enum": [
|
|
75
|
+
"asc",
|
|
76
|
+
"desc"
|
|
77
|
+
],
|
|
78
|
+
"default": "asc"
|
|
172
79
|
}
|
|
173
80
|
},
|
|
174
81
|
"required": [
|
|
175
|
-
"
|
|
176
|
-
"alias",
|
|
177
|
-
"over"
|
|
82
|
+
"field"
|
|
178
83
|
],
|
|
179
84
|
"additionalProperties": false
|
|
180
85
|
},
|
|
181
|
-
"description": "
|
|
86
|
+
"description": "Sorting instructions (ORDER BY)"
|
|
182
87
|
},
|
|
183
|
-
"
|
|
184
|
-
"
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
"enum": [
|
|
196
|
-
"=",
|
|
197
|
-
"!=",
|
|
198
|
-
"<>",
|
|
199
|
-
">",
|
|
200
|
-
">=",
|
|
201
|
-
"<",
|
|
202
|
-
"<=",
|
|
203
|
-
"startswith",
|
|
204
|
-
"contains",
|
|
205
|
-
"notcontains",
|
|
206
|
-
"between",
|
|
207
|
-
"in",
|
|
208
|
-
"notin",
|
|
209
|
-
"is_null",
|
|
210
|
-
"is_not_null"
|
|
211
|
-
]
|
|
212
|
-
},
|
|
213
|
-
{}
|
|
214
|
-
]
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
"type": "array",
|
|
218
|
-
"items": {
|
|
219
|
-
"anyOf": [
|
|
220
|
-
{
|
|
221
|
-
"type": "string"
|
|
222
|
-
},
|
|
223
|
-
{}
|
|
224
|
-
]
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
],
|
|
228
|
-
"description": "Filtering criteria"
|
|
88
|
+
"limit": {
|
|
89
|
+
"type": "number",
|
|
90
|
+
"description": "Max records to return (LIMIT)"
|
|
91
|
+
},
|
|
92
|
+
"offset": {
|
|
93
|
+
"type": "number",
|
|
94
|
+
"description": "Records to skip (OFFSET)"
|
|
95
|
+
},
|
|
96
|
+
"cursor": {
|
|
97
|
+
"type": "object",
|
|
98
|
+
"additionalProperties": {},
|
|
99
|
+
"description": "Cursor for keyset pagination"
|
|
229
100
|
},
|
|
230
101
|
"joins": {
|
|
231
102
|
"type": "array",
|
|
@@ -242,6 +113,16 @@
|
|
|
242
113
|
],
|
|
243
114
|
"description": "Join type"
|
|
244
115
|
},
|
|
116
|
+
"strategy": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"enum": [
|
|
119
|
+
"auto",
|
|
120
|
+
"database",
|
|
121
|
+
"hash",
|
|
122
|
+
"loop"
|
|
123
|
+
],
|
|
124
|
+
"description": "Execution strategy hint"
|
|
125
|
+
},
|
|
245
126
|
"object": {
|
|
246
127
|
"type": "string",
|
|
247
128
|
"description": "Object/table to join"
|
|
@@ -251,92 +132,86 @@
|
|
|
251
132
|
"description": "Table alias"
|
|
252
133
|
},
|
|
253
134
|
"on": {
|
|
254
|
-
"
|
|
135
|
+
"allOf": [
|
|
255
136
|
{
|
|
256
|
-
"type": "
|
|
257
|
-
"
|
|
258
|
-
"maxItems": 3,
|
|
259
|
-
"items": [
|
|
260
|
-
{
|
|
261
|
-
"type": "string"
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
"type": "string",
|
|
265
|
-
"enum": [
|
|
266
|
-
"=",
|
|
267
|
-
"!=",
|
|
268
|
-
"<>",
|
|
269
|
-
">",
|
|
270
|
-
">=",
|
|
271
|
-
"<",
|
|
272
|
-
"<=",
|
|
273
|
-
"startswith",
|
|
274
|
-
"contains",
|
|
275
|
-
"notcontains",
|
|
276
|
-
"between",
|
|
277
|
-
"in",
|
|
278
|
-
"notin",
|
|
279
|
-
"is_null",
|
|
280
|
-
"is_not_null"
|
|
281
|
-
]
|
|
282
|
-
},
|
|
283
|
-
{}
|
|
284
|
-
]
|
|
137
|
+
"type": "object",
|
|
138
|
+
"additionalProperties": {}
|
|
285
139
|
},
|
|
286
140
|
{
|
|
287
|
-
"type": "
|
|
288
|
-
"
|
|
289
|
-
"
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
{
|
|
294
|
-
"anyOf": [
|
|
141
|
+
"type": "object",
|
|
142
|
+
"properties": {
|
|
143
|
+
"$and": {
|
|
144
|
+
"type": "array",
|
|
145
|
+
"items": {
|
|
146
|
+
"allOf": [
|
|
295
147
|
{
|
|
296
|
-
"type": "
|
|
297
|
-
"
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
148
|
+
"type": "object",
|
|
149
|
+
"additionalProperties": {}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"type": "object",
|
|
153
|
+
"properties": {
|
|
154
|
+
"$and": {
|
|
155
|
+
"type": "array",
|
|
156
|
+
"items": {}
|
|
302
157
|
},
|
|
303
|
-
{
|
|
304
|
-
"type": "
|
|
305
|
-
"
|
|
306
|
-
"=",
|
|
307
|
-
"!=",
|
|
308
|
-
"<>",
|
|
309
|
-
">",
|
|
310
|
-
">=",
|
|
311
|
-
"<",
|
|
312
|
-
"<=",
|
|
313
|
-
"startswith",
|
|
314
|
-
"contains",
|
|
315
|
-
"notcontains",
|
|
316
|
-
"between",
|
|
317
|
-
"in",
|
|
318
|
-
"notin",
|
|
319
|
-
"is_null",
|
|
320
|
-
"is_not_null"
|
|
321
|
-
]
|
|
158
|
+
"$or": {
|
|
159
|
+
"type": "array",
|
|
160
|
+
"items": {}
|
|
322
161
|
},
|
|
323
|
-
{}
|
|
324
|
-
|
|
162
|
+
"$not": {}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"$or": {
|
|
169
|
+
"type": "array",
|
|
170
|
+
"items": {
|
|
171
|
+
"allOf": [
|
|
172
|
+
{
|
|
173
|
+
"type": "object",
|
|
174
|
+
"additionalProperties": {}
|
|
325
175
|
},
|
|
326
176
|
{
|
|
327
|
-
"type": "
|
|
328
|
-
"
|
|
329
|
-
"
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
177
|
+
"type": "object",
|
|
178
|
+
"properties": {
|
|
179
|
+
"$and": {
|
|
180
|
+
"type": "array",
|
|
181
|
+
"items": {}
|
|
182
|
+
},
|
|
183
|
+
"$or": {
|
|
184
|
+
"type": "array",
|
|
185
|
+
"items": {}
|
|
186
|
+
},
|
|
187
|
+
"$not": {}
|
|
335
188
|
}
|
|
336
189
|
}
|
|
337
190
|
]
|
|
338
191
|
}
|
|
339
|
-
|
|
192
|
+
},
|
|
193
|
+
"$not": {
|
|
194
|
+
"allOf": [
|
|
195
|
+
{
|
|
196
|
+
"type": "object",
|
|
197
|
+
"additionalProperties": {}
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"type": "object",
|
|
201
|
+
"properties": {
|
|
202
|
+
"$and": {
|
|
203
|
+
"type": "array",
|
|
204
|
+
"items": {}
|
|
205
|
+
},
|
|
206
|
+
"$or": {
|
|
207
|
+
"type": "array",
|
|
208
|
+
"items": {}
|
|
209
|
+
},
|
|
210
|
+
"$not": {}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
]
|
|
214
|
+
}
|
|
340
215
|
}
|
|
341
216
|
}
|
|
342
217
|
],
|
|
@@ -379,6 +254,67 @@
|
|
|
379
254
|
},
|
|
380
255
|
"description": "Fields to retrieve"
|
|
381
256
|
},
|
|
257
|
+
"where": {
|
|
258
|
+
"allOf": [
|
|
259
|
+
{
|
|
260
|
+
"type": "object",
|
|
261
|
+
"additionalProperties": {}
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"type": "object",
|
|
265
|
+
"properties": {
|
|
266
|
+
"$and": {
|
|
267
|
+
"type": "array",
|
|
268
|
+
"items": {}
|
|
269
|
+
},
|
|
270
|
+
"$or": {
|
|
271
|
+
"type": "array",
|
|
272
|
+
"items": {}
|
|
273
|
+
},
|
|
274
|
+
"$not": {}
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
],
|
|
278
|
+
"description": "Filtering criteria (WHERE)"
|
|
279
|
+
},
|
|
280
|
+
"orderBy": {
|
|
281
|
+
"type": "array",
|
|
282
|
+
"items": {
|
|
283
|
+
"type": "object",
|
|
284
|
+
"properties": {
|
|
285
|
+
"field": {
|
|
286
|
+
"type": "string"
|
|
287
|
+
},
|
|
288
|
+
"order": {
|
|
289
|
+
"type": "string",
|
|
290
|
+
"enum": [
|
|
291
|
+
"asc",
|
|
292
|
+
"desc"
|
|
293
|
+
],
|
|
294
|
+
"default": "asc"
|
|
295
|
+
}
|
|
296
|
+
},
|
|
297
|
+
"required": [
|
|
298
|
+
"field"
|
|
299
|
+
],
|
|
300
|
+
"additionalProperties": false
|
|
301
|
+
},
|
|
302
|
+
"description": "Sorting instructions (ORDER BY)"
|
|
303
|
+
},
|
|
304
|
+
"limit": {
|
|
305
|
+
"type": "number",
|
|
306
|
+
"description": "Max records to return (LIMIT)"
|
|
307
|
+
},
|
|
308
|
+
"offset": {
|
|
309
|
+
"type": "number",
|
|
310
|
+
"description": "Records to skip (OFFSET)"
|
|
311
|
+
},
|
|
312
|
+
"cursor": {
|
|
313
|
+
"type": "object",
|
|
314
|
+
"additionalProperties": {},
|
|
315
|
+
"description": "Cursor for keyset pagination"
|
|
316
|
+
},
|
|
317
|
+
"joins": {},
|
|
382
318
|
"aggregations": {
|
|
383
319
|
"type": "array",
|
|
384
320
|
"items": {
|
|
@@ -409,6 +345,29 @@
|
|
|
409
345
|
"distinct": {
|
|
410
346
|
"type": "boolean",
|
|
411
347
|
"description": "Apply DISTINCT before aggregation"
|
|
348
|
+
},
|
|
349
|
+
"filter": {
|
|
350
|
+
"allOf": [
|
|
351
|
+
{
|
|
352
|
+
"type": "object",
|
|
353
|
+
"additionalProperties": {}
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"type": "object",
|
|
357
|
+
"properties": {
|
|
358
|
+
"$and": {
|
|
359
|
+
"type": "array",
|
|
360
|
+
"items": {}
|
|
361
|
+
},
|
|
362
|
+
"$or": {
|
|
363
|
+
"type": "array",
|
|
364
|
+
"items": {}
|
|
365
|
+
},
|
|
366
|
+
"$not": {}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
],
|
|
370
|
+
"description": "Filter/Condition to apply to the aggregation (FILTER WHERE clause)"
|
|
412
371
|
}
|
|
413
372
|
},
|
|
414
373
|
"required": [
|
|
@@ -417,7 +376,37 @@
|
|
|
417
376
|
],
|
|
418
377
|
"additionalProperties": false
|
|
419
378
|
},
|
|
420
|
-
"description": "Aggregation functions
|
|
379
|
+
"description": "Aggregation functions"
|
|
380
|
+
},
|
|
381
|
+
"groupBy": {
|
|
382
|
+
"type": "array",
|
|
383
|
+
"items": {
|
|
384
|
+
"type": "string"
|
|
385
|
+
},
|
|
386
|
+
"description": "GROUP BY fields"
|
|
387
|
+
},
|
|
388
|
+
"having": {
|
|
389
|
+
"allOf": [
|
|
390
|
+
{
|
|
391
|
+
"type": "object",
|
|
392
|
+
"additionalProperties": {}
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"type": "object",
|
|
396
|
+
"properties": {
|
|
397
|
+
"$and": {
|
|
398
|
+
"type": "array",
|
|
399
|
+
"items": {}
|
|
400
|
+
},
|
|
401
|
+
"$or": {
|
|
402
|
+
"type": "array",
|
|
403
|
+
"items": {}
|
|
404
|
+
},
|
|
405
|
+
"$not": {}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
],
|
|
409
|
+
"description": "HAVING clause for aggregation filtering"
|
|
421
410
|
},
|
|
422
411
|
"windowFunctions": {
|
|
423
412
|
"type": "array",
|
|
@@ -521,140 +510,6 @@
|
|
|
521
510
|
},
|
|
522
511
|
"description": "Window functions with OVER clause"
|
|
523
512
|
},
|
|
524
|
-
"filters": {
|
|
525
|
-
"anyOf": [
|
|
526
|
-
{
|
|
527
|
-
"type": "array",
|
|
528
|
-
"minItems": 3,
|
|
529
|
-
"maxItems": 3,
|
|
530
|
-
"items": [
|
|
531
|
-
{
|
|
532
|
-
"type": "string"
|
|
533
|
-
},
|
|
534
|
-
{
|
|
535
|
-
"type": "string",
|
|
536
|
-
"enum": [
|
|
537
|
-
"=",
|
|
538
|
-
"!=",
|
|
539
|
-
"<>",
|
|
540
|
-
">",
|
|
541
|
-
">=",
|
|
542
|
-
"<",
|
|
543
|
-
"<=",
|
|
544
|
-
"startswith",
|
|
545
|
-
"contains",
|
|
546
|
-
"notcontains",
|
|
547
|
-
"between",
|
|
548
|
-
"in",
|
|
549
|
-
"notin",
|
|
550
|
-
"is_null",
|
|
551
|
-
"is_not_null"
|
|
552
|
-
]
|
|
553
|
-
},
|
|
554
|
-
{}
|
|
555
|
-
]
|
|
556
|
-
},
|
|
557
|
-
{
|
|
558
|
-
"type": "array",
|
|
559
|
-
"items": {
|
|
560
|
-
"anyOf": [
|
|
561
|
-
{
|
|
562
|
-
"type": "string"
|
|
563
|
-
},
|
|
564
|
-
{}
|
|
565
|
-
]
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
],
|
|
569
|
-
"description": "Filtering criteria"
|
|
570
|
-
},
|
|
571
|
-
"joins": {},
|
|
572
|
-
"groupBy": {
|
|
573
|
-
"type": "array",
|
|
574
|
-
"items": {
|
|
575
|
-
"type": "string"
|
|
576
|
-
},
|
|
577
|
-
"description": "GROUP BY fields"
|
|
578
|
-
},
|
|
579
|
-
"having": {
|
|
580
|
-
"anyOf": [
|
|
581
|
-
{
|
|
582
|
-
"type": "array",
|
|
583
|
-
"minItems": 3,
|
|
584
|
-
"maxItems": 3,
|
|
585
|
-
"items": [
|
|
586
|
-
{
|
|
587
|
-
"type": "string"
|
|
588
|
-
},
|
|
589
|
-
{
|
|
590
|
-
"type": "string",
|
|
591
|
-
"enum": [
|
|
592
|
-
"=",
|
|
593
|
-
"!=",
|
|
594
|
-
"<>",
|
|
595
|
-
">",
|
|
596
|
-
">=",
|
|
597
|
-
"<",
|
|
598
|
-
"<=",
|
|
599
|
-
"startswith",
|
|
600
|
-
"contains",
|
|
601
|
-
"notcontains",
|
|
602
|
-
"between",
|
|
603
|
-
"in",
|
|
604
|
-
"notin",
|
|
605
|
-
"is_null",
|
|
606
|
-
"is_not_null"
|
|
607
|
-
]
|
|
608
|
-
},
|
|
609
|
-
{}
|
|
610
|
-
]
|
|
611
|
-
},
|
|
612
|
-
{
|
|
613
|
-
"type": "array",
|
|
614
|
-
"items": {
|
|
615
|
-
"anyOf": [
|
|
616
|
-
{
|
|
617
|
-
"type": "string"
|
|
618
|
-
},
|
|
619
|
-
{}
|
|
620
|
-
]
|
|
621
|
-
}
|
|
622
|
-
}
|
|
623
|
-
],
|
|
624
|
-
"description": "HAVING clause for aggregation filtering"
|
|
625
|
-
},
|
|
626
|
-
"sort": {
|
|
627
|
-
"type": "array",
|
|
628
|
-
"items": {
|
|
629
|
-
"type": "object",
|
|
630
|
-
"properties": {
|
|
631
|
-
"field": {
|
|
632
|
-
"type": "string"
|
|
633
|
-
},
|
|
634
|
-
"order": {
|
|
635
|
-
"type": "string",
|
|
636
|
-
"enum": [
|
|
637
|
-
"asc",
|
|
638
|
-
"desc"
|
|
639
|
-
],
|
|
640
|
-
"default": "asc"
|
|
641
|
-
}
|
|
642
|
-
},
|
|
643
|
-
"required": [
|
|
644
|
-
"field"
|
|
645
|
-
],
|
|
646
|
-
"additionalProperties": false
|
|
647
|
-
},
|
|
648
|
-
"description": "Sorting instructions"
|
|
649
|
-
},
|
|
650
|
-
"top": {
|
|
651
|
-
"type": "number",
|
|
652
|
-
"description": "Limit results"
|
|
653
|
-
},
|
|
654
|
-
"skip": {
|
|
655
|
-
"type": "number",
|
|
656
|
-
"description": "Offset results"
|
|
657
|
-
},
|
|
658
513
|
"distinct": {
|
|
659
514
|
"type": "boolean",
|
|
660
515
|
"description": "SELECT DISTINCT flag"
|
|
@@ -674,7 +529,70 @@
|
|
|
674
529
|
],
|
|
675
530
|
"additionalProperties": false
|
|
676
531
|
},
|
|
677
|
-
"description": "Table
|
|
532
|
+
"description": "Explicit Table Joins"
|
|
533
|
+
},
|
|
534
|
+
"aggregations": {
|
|
535
|
+
"type": "array",
|
|
536
|
+
"items": {
|
|
537
|
+
"type": "object",
|
|
538
|
+
"properties": {
|
|
539
|
+
"function": {
|
|
540
|
+
"type": "string",
|
|
541
|
+
"enum": [
|
|
542
|
+
"count",
|
|
543
|
+
"sum",
|
|
544
|
+
"avg",
|
|
545
|
+
"min",
|
|
546
|
+
"max",
|
|
547
|
+
"count_distinct",
|
|
548
|
+
"array_agg",
|
|
549
|
+
"string_agg"
|
|
550
|
+
],
|
|
551
|
+
"description": "Aggregation function"
|
|
552
|
+
},
|
|
553
|
+
"field": {
|
|
554
|
+
"type": "string",
|
|
555
|
+
"description": "Field to aggregate (optional for COUNT(*))"
|
|
556
|
+
},
|
|
557
|
+
"alias": {
|
|
558
|
+
"type": "string",
|
|
559
|
+
"description": "Result column alias"
|
|
560
|
+
},
|
|
561
|
+
"distinct": {
|
|
562
|
+
"type": "boolean",
|
|
563
|
+
"description": "Apply DISTINCT before aggregation"
|
|
564
|
+
},
|
|
565
|
+
"filter": {
|
|
566
|
+
"allOf": [
|
|
567
|
+
{
|
|
568
|
+
"type": "object",
|
|
569
|
+
"additionalProperties": {}
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"type": "object",
|
|
573
|
+
"properties": {
|
|
574
|
+
"$and": {
|
|
575
|
+
"type": "array",
|
|
576
|
+
"items": {}
|
|
577
|
+
},
|
|
578
|
+
"$or": {
|
|
579
|
+
"type": "array",
|
|
580
|
+
"items": {}
|
|
581
|
+
},
|
|
582
|
+
"$not": {}
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
],
|
|
586
|
+
"description": "Filter/Condition to apply to the aggregation (FILTER WHERE clause)"
|
|
587
|
+
}
|
|
588
|
+
},
|
|
589
|
+
"required": [
|
|
590
|
+
"function",
|
|
591
|
+
"alias"
|
|
592
|
+
],
|
|
593
|
+
"additionalProperties": false
|
|
594
|
+
},
|
|
595
|
+
"description": "Aggregation functions"
|
|
678
596
|
},
|
|
679
597
|
"groupBy": {
|
|
680
598
|
"type": "array",
|
|
@@ -684,83 +602,129 @@
|
|
|
684
602
|
"description": "GROUP BY fields"
|
|
685
603
|
},
|
|
686
604
|
"having": {
|
|
687
|
-
"
|
|
605
|
+
"allOf": [
|
|
688
606
|
{
|
|
689
|
-
"type": "
|
|
690
|
-
"
|
|
691
|
-
"maxItems": 3,
|
|
692
|
-
"items": [
|
|
693
|
-
{
|
|
694
|
-
"type": "string"
|
|
695
|
-
},
|
|
696
|
-
{
|
|
697
|
-
"type": "string",
|
|
698
|
-
"enum": [
|
|
699
|
-
"=",
|
|
700
|
-
"!=",
|
|
701
|
-
"<>",
|
|
702
|
-
">",
|
|
703
|
-
">=",
|
|
704
|
-
"<",
|
|
705
|
-
"<=",
|
|
706
|
-
"startswith",
|
|
707
|
-
"contains",
|
|
708
|
-
"notcontains",
|
|
709
|
-
"between",
|
|
710
|
-
"in",
|
|
711
|
-
"notin",
|
|
712
|
-
"is_null",
|
|
713
|
-
"is_not_null"
|
|
714
|
-
]
|
|
715
|
-
},
|
|
716
|
-
{}
|
|
717
|
-
]
|
|
607
|
+
"type": "object",
|
|
608
|
+
"additionalProperties": {}
|
|
718
609
|
},
|
|
719
610
|
{
|
|
720
|
-
"type": "
|
|
721
|
-
"
|
|
722
|
-
"
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
611
|
+
"type": "object",
|
|
612
|
+
"properties": {
|
|
613
|
+
"$and": {
|
|
614
|
+
"type": "array",
|
|
615
|
+
"items": {}
|
|
616
|
+
},
|
|
617
|
+
"$or": {
|
|
618
|
+
"type": "array",
|
|
619
|
+
"items": {}
|
|
620
|
+
},
|
|
621
|
+
"$not": {}
|
|
728
622
|
}
|
|
729
623
|
}
|
|
730
624
|
],
|
|
731
625
|
"description": "HAVING clause for aggregation filtering"
|
|
732
626
|
},
|
|
733
|
-
"
|
|
627
|
+
"windowFunctions": {
|
|
734
628
|
"type": "array",
|
|
735
629
|
"items": {
|
|
736
630
|
"type": "object",
|
|
737
631
|
"properties": {
|
|
738
|
-
"
|
|
739
|
-
"type": "string"
|
|
740
|
-
},
|
|
741
|
-
"order": {
|
|
632
|
+
"function": {
|
|
742
633
|
"type": "string",
|
|
743
634
|
"enum": [
|
|
744
|
-
"
|
|
745
|
-
"
|
|
635
|
+
"row_number",
|
|
636
|
+
"rank",
|
|
637
|
+
"dense_rank",
|
|
638
|
+
"percent_rank",
|
|
639
|
+
"lag",
|
|
640
|
+
"lead",
|
|
641
|
+
"first_value",
|
|
642
|
+
"last_value",
|
|
643
|
+
"sum",
|
|
644
|
+
"avg",
|
|
645
|
+
"count",
|
|
646
|
+
"min",
|
|
647
|
+
"max"
|
|
746
648
|
],
|
|
747
|
-
"
|
|
649
|
+
"description": "Window function name"
|
|
650
|
+
},
|
|
651
|
+
"field": {
|
|
652
|
+
"type": "string",
|
|
653
|
+
"description": "Field to operate on (for aggregate window functions)"
|
|
654
|
+
},
|
|
655
|
+
"alias": {
|
|
656
|
+
"type": "string",
|
|
657
|
+
"description": "Result column alias"
|
|
658
|
+
},
|
|
659
|
+
"over": {
|
|
660
|
+
"type": "object",
|
|
661
|
+
"properties": {
|
|
662
|
+
"partitionBy": {
|
|
663
|
+
"type": "array",
|
|
664
|
+
"items": {
|
|
665
|
+
"type": "string"
|
|
666
|
+
},
|
|
667
|
+
"description": "PARTITION BY fields"
|
|
668
|
+
},
|
|
669
|
+
"orderBy": {
|
|
670
|
+
"type": "array",
|
|
671
|
+
"items": {
|
|
672
|
+
"type": "object",
|
|
673
|
+
"properties": {
|
|
674
|
+
"field": {
|
|
675
|
+
"type": "string"
|
|
676
|
+
},
|
|
677
|
+
"order": {
|
|
678
|
+
"type": "string",
|
|
679
|
+
"enum": [
|
|
680
|
+
"asc",
|
|
681
|
+
"desc"
|
|
682
|
+
],
|
|
683
|
+
"default": "asc"
|
|
684
|
+
}
|
|
685
|
+
},
|
|
686
|
+
"required": [
|
|
687
|
+
"field"
|
|
688
|
+
],
|
|
689
|
+
"additionalProperties": false
|
|
690
|
+
},
|
|
691
|
+
"description": "ORDER BY specification"
|
|
692
|
+
},
|
|
693
|
+
"frame": {
|
|
694
|
+
"type": "object",
|
|
695
|
+
"properties": {
|
|
696
|
+
"type": {
|
|
697
|
+
"type": "string",
|
|
698
|
+
"enum": [
|
|
699
|
+
"rows",
|
|
700
|
+
"range"
|
|
701
|
+
]
|
|
702
|
+
},
|
|
703
|
+
"start": {
|
|
704
|
+
"type": "string",
|
|
705
|
+
"description": "Frame start (e.g., \"UNBOUNDED PRECEDING\", \"1 PRECEDING\")"
|
|
706
|
+
},
|
|
707
|
+
"end": {
|
|
708
|
+
"type": "string",
|
|
709
|
+
"description": "Frame end (e.g., \"CURRENT ROW\", \"1 FOLLOWING\")"
|
|
710
|
+
}
|
|
711
|
+
},
|
|
712
|
+
"additionalProperties": false,
|
|
713
|
+
"description": "Window frame specification"
|
|
714
|
+
}
|
|
715
|
+
},
|
|
716
|
+
"additionalProperties": false,
|
|
717
|
+
"description": "Window specification (OVER clause)"
|
|
748
718
|
}
|
|
749
719
|
},
|
|
750
720
|
"required": [
|
|
751
|
-
"
|
|
721
|
+
"function",
|
|
722
|
+
"alias",
|
|
723
|
+
"over"
|
|
752
724
|
],
|
|
753
725
|
"additionalProperties": false
|
|
754
726
|
},
|
|
755
|
-
"description": "
|
|
756
|
-
},
|
|
757
|
-
"top": {
|
|
758
|
-
"type": "number",
|
|
759
|
-
"description": "Limit results"
|
|
760
|
-
},
|
|
761
|
-
"skip": {
|
|
762
|
-
"type": "number",
|
|
763
|
-
"description": "Offset results"
|
|
727
|
+
"description": "Window functions with OVER clause"
|
|
764
728
|
},
|
|
765
729
|
"distinct": {
|
|
766
730
|
"type": "boolean",
|