@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
|
@@ -7,12 +7,43 @@
|
|
|
7
7
|
"name": {
|
|
8
8
|
"type": "string",
|
|
9
9
|
"pattern": "^[a-z_][a-z0-9_]*$",
|
|
10
|
-
"description": "Unique rule name"
|
|
10
|
+
"description": "Unique rule name (snake_case)"
|
|
11
|
+
},
|
|
12
|
+
"label": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "Human-readable label for the rule listing"
|
|
15
|
+
},
|
|
16
|
+
"description": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "Administrative notes explaining the business reason"
|
|
11
19
|
},
|
|
12
20
|
"active": {
|
|
13
21
|
"type": "boolean",
|
|
14
22
|
"default": true
|
|
15
23
|
},
|
|
24
|
+
"events": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"enum": [
|
|
29
|
+
"insert",
|
|
30
|
+
"update",
|
|
31
|
+
"delete"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"default": [
|
|
35
|
+
"insert",
|
|
36
|
+
"update"
|
|
37
|
+
],
|
|
38
|
+
"description": "Validation contexts"
|
|
39
|
+
},
|
|
40
|
+
"tags": {
|
|
41
|
+
"type": "array",
|
|
42
|
+
"items": {
|
|
43
|
+
"type": "string"
|
|
44
|
+
},
|
|
45
|
+
"description": "Categorization tags (e.g., \"compliance\", \"billing\")"
|
|
46
|
+
},
|
|
16
47
|
"severity": {
|
|
17
48
|
"type": "string",
|
|
18
49
|
"enum": [
|
|
@@ -24,7 +55,7 @@
|
|
|
24
55
|
},
|
|
25
56
|
"message": {
|
|
26
57
|
"type": "string",
|
|
27
|
-
"description": "Error message to display"
|
|
58
|
+
"description": "Error message to display to the user"
|
|
28
59
|
},
|
|
29
60
|
"type": {
|
|
30
61
|
"type": "string",
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/CurrencyConfig",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"CurrencyConfig": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"precision": {
|
|
8
|
+
"type": "integer",
|
|
9
|
+
"minimum": 0,
|
|
10
|
+
"maximum": 10,
|
|
11
|
+
"default": 2,
|
|
12
|
+
"description": "Decimal precision (default: 2)"
|
|
13
|
+
},
|
|
14
|
+
"currencyMode": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"enum": [
|
|
17
|
+
"dynamic",
|
|
18
|
+
"fixed"
|
|
19
|
+
],
|
|
20
|
+
"default": "dynamic",
|
|
21
|
+
"description": "Currency mode: dynamic (user selectable) or fixed (single currency)"
|
|
22
|
+
},
|
|
23
|
+
"defaultCurrency": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"minLength": 3,
|
|
26
|
+
"maxLength": 3,
|
|
27
|
+
"default": "CNY",
|
|
28
|
+
"description": "Default or fixed currency code (ISO 4217, e.g., USD, CNY, EUR)"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"additionalProperties": false
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
35
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/CurrencyValue",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"CurrencyValue": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"value": {
|
|
8
|
+
"type": "number",
|
|
9
|
+
"description": "Monetary amount"
|
|
10
|
+
},
|
|
11
|
+
"currency": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"minLength": 3,
|
|
14
|
+
"maxLength": 3,
|
|
15
|
+
"description": "Currency code (ISO 4217)"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": [
|
|
19
|
+
"value",
|
|
20
|
+
"currency"
|
|
21
|
+
],
|
|
22
|
+
"additionalProperties": false
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
26
|
+
}
|
|
@@ -7,12 +7,43 @@
|
|
|
7
7
|
"name": {
|
|
8
8
|
"type": "string",
|
|
9
9
|
"pattern": "^[a-z_][a-z0-9_]*$",
|
|
10
|
-
"description": "Unique rule name"
|
|
10
|
+
"description": "Unique rule name (snake_case)"
|
|
11
|
+
},
|
|
12
|
+
"label": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "Human-readable label for the rule listing"
|
|
15
|
+
},
|
|
16
|
+
"description": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "Administrative notes explaining the business reason"
|
|
11
19
|
},
|
|
12
20
|
"active": {
|
|
13
21
|
"type": "boolean",
|
|
14
22
|
"default": true
|
|
15
23
|
},
|
|
24
|
+
"events": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"enum": [
|
|
29
|
+
"insert",
|
|
30
|
+
"update",
|
|
31
|
+
"delete"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"default": [
|
|
35
|
+
"insert",
|
|
36
|
+
"update"
|
|
37
|
+
],
|
|
38
|
+
"description": "Validation contexts"
|
|
39
|
+
},
|
|
40
|
+
"tags": {
|
|
41
|
+
"type": "array",
|
|
42
|
+
"items": {
|
|
43
|
+
"type": "string"
|
|
44
|
+
},
|
|
45
|
+
"description": "Categorization tags (e.g., \"compliance\", \"billing\")"
|
|
46
|
+
},
|
|
16
47
|
"severity": {
|
|
17
48
|
"type": "string",
|
|
18
49
|
"enum": [
|
|
@@ -24,31 +55,27 @@
|
|
|
24
55
|
},
|
|
25
56
|
"message": {
|
|
26
57
|
"type": "string",
|
|
27
|
-
"description": "Error message to display"
|
|
58
|
+
"description": "Error message to display to the user"
|
|
28
59
|
},
|
|
29
60
|
"type": {
|
|
30
61
|
"type": "string",
|
|
31
62
|
"const": "custom"
|
|
32
63
|
},
|
|
33
|
-
"
|
|
34
|
-
"type": "string",
|
|
35
|
-
"description": "Field to validate (optional for record-level validation)"
|
|
36
|
-
},
|
|
37
|
-
"validatorFunction": {
|
|
64
|
+
"handler": {
|
|
38
65
|
"type": "string",
|
|
39
|
-
"description": "
|
|
66
|
+
"description": "Name of the custom validation function registered in the system"
|
|
40
67
|
},
|
|
41
68
|
"params": {
|
|
42
69
|
"type": "object",
|
|
43
70
|
"additionalProperties": {},
|
|
44
|
-
"description": "
|
|
71
|
+
"description": "Parameters passed to the custom handler"
|
|
45
72
|
}
|
|
46
73
|
},
|
|
47
74
|
"required": [
|
|
48
75
|
"name",
|
|
49
76
|
"message",
|
|
50
77
|
"type",
|
|
51
|
-
"
|
|
78
|
+
"handler"
|
|
52
79
|
],
|
|
53
80
|
"additionalProperties": false
|
|
54
81
|
}
|
|
@@ -303,6 +303,36 @@
|
|
|
303
303
|
"type": "boolean",
|
|
304
304
|
"description": "Enable camera scanning for barcode/QR code input"
|
|
305
305
|
},
|
|
306
|
+
"currencyConfig": {
|
|
307
|
+
"type": "object",
|
|
308
|
+
"properties": {
|
|
309
|
+
"precision": {
|
|
310
|
+
"type": "integer",
|
|
311
|
+
"minimum": 0,
|
|
312
|
+
"maximum": 10,
|
|
313
|
+
"default": 2,
|
|
314
|
+
"description": "Decimal precision (default: 2)"
|
|
315
|
+
},
|
|
316
|
+
"currencyMode": {
|
|
317
|
+
"type": "string",
|
|
318
|
+
"enum": [
|
|
319
|
+
"dynamic",
|
|
320
|
+
"fixed"
|
|
321
|
+
],
|
|
322
|
+
"default": "dynamic",
|
|
323
|
+
"description": "Currency mode: dynamic (user selectable) or fixed (single currency)"
|
|
324
|
+
},
|
|
325
|
+
"defaultCurrency": {
|
|
326
|
+
"type": "string",
|
|
327
|
+
"minLength": 3,
|
|
328
|
+
"maxLength": 3,
|
|
329
|
+
"default": "CNY",
|
|
330
|
+
"description": "Default or fixed currency code (ISO 4217, e.g., USD, CNY, EUR)"
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
"additionalProperties": false,
|
|
334
|
+
"description": "Configuration for currency field type"
|
|
335
|
+
},
|
|
306
336
|
"hidden": {
|
|
307
337
|
"type": "boolean",
|
|
308
338
|
"default": false,
|
|
@@ -14,6 +14,19 @@
|
|
|
14
14
|
{
|
|
15
15
|
"type": "string",
|
|
16
16
|
"format": "date-time"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"type": "object",
|
|
20
|
+
"properties": {
|
|
21
|
+
"$field": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "Field Reference/Column Name"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": [
|
|
27
|
+
"$field"
|
|
28
|
+
],
|
|
29
|
+
"additionalProperties": false
|
|
17
30
|
}
|
|
18
31
|
]
|
|
19
32
|
},
|
|
@@ -25,6 +38,19 @@
|
|
|
25
38
|
{
|
|
26
39
|
"type": "string",
|
|
27
40
|
"format": "date-time"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"type": "object",
|
|
44
|
+
"properties": {
|
|
45
|
+
"$field": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"description": "Field Reference/Column Name"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"required": [
|
|
51
|
+
"$field"
|
|
52
|
+
],
|
|
53
|
+
"additionalProperties": false
|
|
28
54
|
}
|
|
29
55
|
]
|
|
30
56
|
},
|
|
@@ -36,6 +62,19 @@
|
|
|
36
62
|
{
|
|
37
63
|
"type": "string",
|
|
38
64
|
"format": "date-time"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"type": "object",
|
|
68
|
+
"properties": {
|
|
69
|
+
"$field": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"description": "Field Reference/Column Name"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"required": [
|
|
75
|
+
"$field"
|
|
76
|
+
],
|
|
77
|
+
"additionalProperties": false
|
|
39
78
|
}
|
|
40
79
|
]
|
|
41
80
|
},
|
|
@@ -47,6 +86,19 @@
|
|
|
47
86
|
{
|
|
48
87
|
"type": "string",
|
|
49
88
|
"format": "date-time"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"type": "object",
|
|
92
|
+
"properties": {
|
|
93
|
+
"$field": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"description": "Field Reference/Column Name"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"required": [
|
|
99
|
+
"$field"
|
|
100
|
+
],
|
|
101
|
+
"additionalProperties": false
|
|
50
102
|
}
|
|
51
103
|
]
|
|
52
104
|
},
|
|
@@ -69,6 +121,19 @@
|
|
|
69
121
|
{
|
|
70
122
|
"type": "string",
|
|
71
123
|
"format": "date-time"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"type": "object",
|
|
127
|
+
"properties": {
|
|
128
|
+
"$field": {
|
|
129
|
+
"type": "string",
|
|
130
|
+
"description": "Field Reference/Column Name"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"required": [
|
|
134
|
+
"$field"
|
|
135
|
+
],
|
|
136
|
+
"additionalProperties": false
|
|
72
137
|
}
|
|
73
138
|
]
|
|
74
139
|
},
|
|
@@ -80,6 +145,19 @@
|
|
|
80
145
|
{
|
|
81
146
|
"type": "string",
|
|
82
147
|
"format": "date-time"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"type": "object",
|
|
151
|
+
"properties": {
|
|
152
|
+
"$field": {
|
|
153
|
+
"type": "string",
|
|
154
|
+
"description": "Field Reference/Column Name"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"required": [
|
|
158
|
+
"$field"
|
|
159
|
+
],
|
|
160
|
+
"additionalProperties": false
|
|
83
161
|
}
|
|
84
162
|
]
|
|
85
163
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/FieldReference",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"FieldReference": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"$field": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Field Reference/Column Name"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"required": [
|
|
13
|
+
"$field"
|
|
14
|
+
],
|
|
15
|
+
"additionalProperties": false
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
19
|
+
}
|
|
@@ -7,12 +7,43 @@
|
|
|
7
7
|
"name": {
|
|
8
8
|
"type": "string",
|
|
9
9
|
"pattern": "^[a-z_][a-z0-9_]*$",
|
|
10
|
-
"description": "Unique rule name"
|
|
10
|
+
"description": "Unique rule name (snake_case)"
|
|
11
|
+
},
|
|
12
|
+
"label": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "Human-readable label for the rule listing"
|
|
15
|
+
},
|
|
16
|
+
"description": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "Administrative notes explaining the business reason"
|
|
11
19
|
},
|
|
12
20
|
"active": {
|
|
13
21
|
"type": "boolean",
|
|
14
22
|
"default": true
|
|
15
23
|
},
|
|
24
|
+
"events": {
|
|
25
|
+
"type": "array",
|
|
26
|
+
"items": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"enum": [
|
|
29
|
+
"insert",
|
|
30
|
+
"update",
|
|
31
|
+
"delete"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"default": [
|
|
35
|
+
"insert",
|
|
36
|
+
"update"
|
|
37
|
+
],
|
|
38
|
+
"description": "Validation contexts"
|
|
39
|
+
},
|
|
40
|
+
"tags": {
|
|
41
|
+
"type": "array",
|
|
42
|
+
"items": {
|
|
43
|
+
"type": "string"
|
|
44
|
+
},
|
|
45
|
+
"description": "Categorization tags (e.g., \"compliance\", \"billing\")"
|
|
46
|
+
},
|
|
16
47
|
"severity": {
|
|
17
48
|
"type": "string",
|
|
18
49
|
"enum": [
|
|
@@ -24,7 +55,7 @@
|
|
|
24
55
|
},
|
|
25
56
|
"message": {
|
|
26
57
|
"type": "string",
|
|
27
|
-
"description": "Error message to display"
|
|
58
|
+
"description": "Error message to display to the user"
|
|
28
59
|
},
|
|
29
60
|
"type": {
|
|
30
61
|
"type": "string",
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/Hook",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"Hook": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"name": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"pattern": "^[a-z_][a-z0-9_]*$",
|
|
10
|
+
"description": "Hook unique name (snake_case)"
|
|
11
|
+
},
|
|
12
|
+
"label": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "Description of what this hook does"
|
|
15
|
+
},
|
|
16
|
+
"object": {
|
|
17
|
+
"anyOf": [
|
|
18
|
+
{
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "array",
|
|
23
|
+
"items": {
|
|
24
|
+
"type": "string"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"description": "Target object(s)"
|
|
29
|
+
},
|
|
30
|
+
"events": {
|
|
31
|
+
"type": "array",
|
|
32
|
+
"items": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"enum": [
|
|
35
|
+
"beforeFind",
|
|
36
|
+
"afterFind",
|
|
37
|
+
"beforeFindOne",
|
|
38
|
+
"afterFindOne",
|
|
39
|
+
"beforeCount",
|
|
40
|
+
"afterCount",
|
|
41
|
+
"beforeAggregate",
|
|
42
|
+
"afterAggregate",
|
|
43
|
+
"beforeInsert",
|
|
44
|
+
"afterInsert",
|
|
45
|
+
"beforeUpdate",
|
|
46
|
+
"afterUpdate",
|
|
47
|
+
"beforeDelete",
|
|
48
|
+
"afterDelete",
|
|
49
|
+
"beforeUpdateMany",
|
|
50
|
+
"afterUpdateMany",
|
|
51
|
+
"beforeDeleteMany",
|
|
52
|
+
"afterDeleteMany"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
"description": "Lifecycle events"
|
|
56
|
+
},
|
|
57
|
+
"handler": {
|
|
58
|
+
"anyOf": [
|
|
59
|
+
{
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
{}
|
|
63
|
+
],
|
|
64
|
+
"description": "Function handler name or direct function"
|
|
65
|
+
},
|
|
66
|
+
"priority": {
|
|
67
|
+
"type": "number",
|
|
68
|
+
"default": 100,
|
|
69
|
+
"description": "Execution priority"
|
|
70
|
+
},
|
|
71
|
+
"async": {
|
|
72
|
+
"type": "boolean",
|
|
73
|
+
"default": false,
|
|
74
|
+
"description": "Run specifically as fire-and-forget"
|
|
75
|
+
},
|
|
76
|
+
"onError": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"enum": [
|
|
79
|
+
"abort",
|
|
80
|
+
"log"
|
|
81
|
+
],
|
|
82
|
+
"default": "abort",
|
|
83
|
+
"description": "Error handling strategy"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"required": [
|
|
87
|
+
"name",
|
|
88
|
+
"object",
|
|
89
|
+
"events"
|
|
90
|
+
],
|
|
91
|
+
"additionalProperties": false
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
95
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/HookContext",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"HookContext": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"id": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Unique execution ID for tracing"
|
|
10
|
+
},
|
|
11
|
+
"object": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
},
|
|
14
|
+
"event": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"enum": [
|
|
17
|
+
"beforeFind",
|
|
18
|
+
"afterFind",
|
|
19
|
+
"beforeFindOne",
|
|
20
|
+
"afterFindOne",
|
|
21
|
+
"beforeCount",
|
|
22
|
+
"afterCount",
|
|
23
|
+
"beforeAggregate",
|
|
24
|
+
"afterAggregate",
|
|
25
|
+
"beforeInsert",
|
|
26
|
+
"afterInsert",
|
|
27
|
+
"beforeUpdate",
|
|
28
|
+
"afterUpdate",
|
|
29
|
+
"beforeDelete",
|
|
30
|
+
"afterDelete",
|
|
31
|
+
"beforeUpdateMany",
|
|
32
|
+
"afterUpdateMany",
|
|
33
|
+
"beforeDeleteMany",
|
|
34
|
+
"afterDeleteMany"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"input": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"additionalProperties": {},
|
|
40
|
+
"description": "Mutable input parameters"
|
|
41
|
+
},
|
|
42
|
+
"result": {
|
|
43
|
+
"description": "Operation result (After hooks only)"
|
|
44
|
+
},
|
|
45
|
+
"previous": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"additionalProperties": {},
|
|
48
|
+
"description": "Record state before operation"
|
|
49
|
+
},
|
|
50
|
+
"session": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"properties": {
|
|
53
|
+
"userId": {
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
"tenantId": {
|
|
57
|
+
"type": "string"
|
|
58
|
+
},
|
|
59
|
+
"roles": {
|
|
60
|
+
"type": "array",
|
|
61
|
+
"items": {
|
|
62
|
+
"type": "string"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"accessToken": {
|
|
66
|
+
"type": "string"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"additionalProperties": false,
|
|
70
|
+
"description": "Current session context"
|
|
71
|
+
},
|
|
72
|
+
"transaction": {
|
|
73
|
+
"description": "Database transaction handle"
|
|
74
|
+
},
|
|
75
|
+
"ql": {
|
|
76
|
+
"description": "ObjectQL Engine Reference"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"required": [
|
|
80
|
+
"object",
|
|
81
|
+
"event",
|
|
82
|
+
"input"
|
|
83
|
+
],
|
|
84
|
+
"additionalProperties": false
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
88
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/HookEvent",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"HookEvent": {
|
|
5
|
+
"type": "string",
|
|
6
|
+
"enum": [
|
|
7
|
+
"beforeFind",
|
|
8
|
+
"afterFind",
|
|
9
|
+
"beforeFindOne",
|
|
10
|
+
"afterFindOne",
|
|
11
|
+
"beforeCount",
|
|
12
|
+
"afterCount",
|
|
13
|
+
"beforeAggregate",
|
|
14
|
+
"afterAggregate",
|
|
15
|
+
"beforeInsert",
|
|
16
|
+
"afterInsert",
|
|
17
|
+
"beforeUpdate",
|
|
18
|
+
"afterUpdate",
|
|
19
|
+
"beforeDelete",
|
|
20
|
+
"afterDelete",
|
|
21
|
+
"beforeUpdateMany",
|
|
22
|
+
"afterUpdateMany",
|
|
23
|
+
"beforeDeleteMany",
|
|
24
|
+
"afterDeleteMany"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
29
|
+
}
|
|
@@ -18,6 +18,16 @@
|
|
|
18
18
|
"unique": {
|
|
19
19
|
"type": "boolean",
|
|
20
20
|
"description": "Whether the index is unique"
|
|
21
|
+
},
|
|
22
|
+
"type": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"enum": [
|
|
25
|
+
"btree",
|
|
26
|
+
"hash",
|
|
27
|
+
"gin",
|
|
28
|
+
"gist"
|
|
29
|
+
],
|
|
30
|
+
"description": "Index type (default: btree)"
|
|
21
31
|
}
|
|
22
32
|
},
|
|
23
33
|
"required": [
|