@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
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
/**
|
|
3
|
-
* AI
|
|
3
|
+
* AI Agentic Orchestration Protocol
|
|
4
4
|
*
|
|
5
|
-
* Defines intelligent
|
|
6
|
-
* to automate business processes with
|
|
7
|
-
*
|
|
5
|
+
* Defines intelligent orchestration flows where AI Agents leverage cognitive skills
|
|
6
|
+
* to automate business processes with dynamic reasoning, planning, and execution.
|
|
7
|
+
*
|
|
8
|
+
* Distinction from Standard Workflows:
|
|
9
|
+
* - Standard Workflow: Deterministic (If X then Y). defined in src/data/workflow.zod.ts
|
|
10
|
+
* - AI Orchestration: Probabilistic & Agentic (Goal -> Plan -> Execute).
|
|
8
11
|
*
|
|
9
12
|
* Use Cases:
|
|
10
|
-
* -
|
|
11
|
-
* -
|
|
12
|
-
* -
|
|
13
|
-
* - Predict lead scores or customer churn risk
|
|
14
|
-
* - Auto-fill forms based on natural language input
|
|
13
|
+
* - Complex Support Triage (Analyze sentiment + intent -> Draft response -> Route)
|
|
14
|
+
* - Intelligent Document Processing (OCR -> Extract Entities -> Validate -> Entry)
|
|
15
|
+
* - Research Agent (Search Web -> Summarize -> Generate Report)
|
|
15
16
|
*/
|
|
16
17
|
/**
|
|
17
|
-
*
|
|
18
|
-
* Defines when an AI
|
|
18
|
+
* Orchestration Trigger Types
|
|
19
|
+
* Defines when an AI Agentic Flow should be initiated
|
|
19
20
|
*/
|
|
20
|
-
export declare const
|
|
21
|
+
export declare const AIOrchestrationTriggerSchema: z.ZodEnum<["record_created", "record_updated", "field_changed", "scheduled", "manual", "webhook", "batch"]>;
|
|
21
22
|
/**
|
|
22
23
|
* AI Task Types
|
|
23
24
|
* Cognitive operations that can be performed by AI
|
|
@@ -63,7 +64,7 @@ export declare const AITaskSchema: z.ZodObject<{
|
|
|
63
64
|
active: boolean;
|
|
64
65
|
inputFields: string[];
|
|
65
66
|
outputField: string;
|
|
66
|
-
outputFormat: "number" | "boolean" | "
|
|
67
|
+
outputFormat: "number" | "boolean" | "array" | "text" | "json";
|
|
67
68
|
multiClass: boolean;
|
|
68
69
|
retryAttempts: number;
|
|
69
70
|
description?: string | undefined;
|
|
@@ -91,7 +92,7 @@ export declare const AITaskSchema: z.ZodObject<{
|
|
|
91
92
|
temperature?: number | undefined;
|
|
92
93
|
promptTemplate?: string | undefined;
|
|
93
94
|
inputContext?: Record<string, any> | undefined;
|
|
94
|
-
outputFormat?: "number" | "boolean" | "
|
|
95
|
+
outputFormat?: "number" | "boolean" | "array" | "text" | "json" | undefined;
|
|
95
96
|
classes?: string[] | undefined;
|
|
96
97
|
multiClass?: boolean | undefined;
|
|
97
98
|
extractionSchema?: Record<string, any> | undefined;
|
|
@@ -136,10 +137,10 @@ export declare const WorkflowScheduleSchema: z.ZodObject<{
|
|
|
136
137
|
dayOfWeek?: number | undefined;
|
|
137
138
|
dayOfMonth?: number | undefined;
|
|
138
139
|
}, {
|
|
139
|
-
time?: string | undefined;
|
|
140
140
|
type?: "cron" | "interval" | "daily" | "weekly" | "monthly" | undefined;
|
|
141
|
-
|
|
141
|
+
time?: string | undefined;
|
|
142
142
|
cron?: string | undefined;
|
|
143
|
+
timezone?: string | undefined;
|
|
143
144
|
interval?: number | undefined;
|
|
144
145
|
dayOfWeek?: number | undefined;
|
|
145
146
|
dayOfMonth?: number | undefined;
|
|
@@ -154,21 +155,21 @@ export declare const PostProcessingActionSchema: z.ZodObject<{
|
|
|
154
155
|
config: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
155
156
|
condition: z.ZodOptional<z.ZodString>;
|
|
156
157
|
}, "strip", z.ZodTypeAny, {
|
|
157
|
-
type: "
|
|
158
|
+
type: "webhook" | "field_update" | "send_email" | "create_record" | "update_related" | "trigger_flow";
|
|
158
159
|
name: string;
|
|
159
160
|
config: Record<string, any>;
|
|
160
161
|
condition?: string | undefined;
|
|
161
162
|
}, {
|
|
162
|
-
type: "
|
|
163
|
+
type: "webhook" | "field_update" | "send_email" | "create_record" | "update_related" | "trigger_flow";
|
|
163
164
|
name: string;
|
|
164
165
|
config: Record<string, any>;
|
|
165
166
|
condition?: string | undefined;
|
|
166
167
|
}>;
|
|
167
168
|
/**
|
|
168
|
-
* AI
|
|
169
|
+
* AI Agentic Orchestration Schema
|
|
169
170
|
* Complete workflow definition with AI-powered tasks
|
|
170
171
|
*/
|
|
171
|
-
export declare const
|
|
172
|
+
export declare const AIOrchestrationSchema: z.ZodObject<{
|
|
172
173
|
/** Identity */
|
|
173
174
|
name: z.ZodString;
|
|
174
175
|
label: z.ZodString;
|
|
@@ -208,10 +209,10 @@ export declare const AIWorkflowAutomationSchema: z.ZodObject<{
|
|
|
208
209
|
dayOfWeek?: number | undefined;
|
|
209
210
|
dayOfMonth?: number | undefined;
|
|
210
211
|
}, {
|
|
211
|
-
time?: string | undefined;
|
|
212
212
|
type?: "cron" | "interval" | "daily" | "weekly" | "monthly" | undefined;
|
|
213
|
-
|
|
213
|
+
time?: string | undefined;
|
|
214
214
|
cron?: string | undefined;
|
|
215
|
+
timezone?: string | undefined;
|
|
215
216
|
interval?: number | undefined;
|
|
216
217
|
dayOfWeek?: number | undefined;
|
|
217
218
|
dayOfMonth?: number | undefined;
|
|
@@ -265,7 +266,7 @@ export declare const AIWorkflowAutomationSchema: z.ZodObject<{
|
|
|
265
266
|
active: boolean;
|
|
266
267
|
inputFields: string[];
|
|
267
268
|
outputField: string;
|
|
268
|
-
outputFormat: "number" | "boolean" | "
|
|
269
|
+
outputFormat: "number" | "boolean" | "array" | "text" | "json";
|
|
269
270
|
multiClass: boolean;
|
|
270
271
|
retryAttempts: number;
|
|
271
272
|
description?: string | undefined;
|
|
@@ -293,7 +294,7 @@ export declare const AIWorkflowAutomationSchema: z.ZodObject<{
|
|
|
293
294
|
temperature?: number | undefined;
|
|
294
295
|
promptTemplate?: string | undefined;
|
|
295
296
|
inputContext?: Record<string, any> | undefined;
|
|
296
|
-
outputFormat?: "number" | "boolean" | "
|
|
297
|
+
outputFormat?: "number" | "boolean" | "array" | "text" | "json" | undefined;
|
|
297
298
|
classes?: string[] | undefined;
|
|
298
299
|
multiClass?: boolean | undefined;
|
|
299
300
|
extractionSchema?: Record<string, any> | undefined;
|
|
@@ -307,12 +308,12 @@ export declare const AIWorkflowAutomationSchema: z.ZodObject<{
|
|
|
307
308
|
config: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
308
309
|
condition: z.ZodOptional<z.ZodString>;
|
|
309
310
|
}, "strip", z.ZodTypeAny, {
|
|
310
|
-
type: "
|
|
311
|
+
type: "webhook" | "field_update" | "send_email" | "create_record" | "update_related" | "trigger_flow";
|
|
311
312
|
name: string;
|
|
312
313
|
config: Record<string, any>;
|
|
313
314
|
condition?: string | undefined;
|
|
314
315
|
}, {
|
|
315
|
-
type: "
|
|
316
|
+
type: "webhook" | "field_update" | "send_email" | "create_record" | "update_related" | "trigger_flow";
|
|
316
317
|
name: string;
|
|
317
318
|
config: Record<string, any>;
|
|
318
319
|
condition?: string | undefined;
|
|
@@ -341,16 +342,16 @@ export declare const AIWorkflowAutomationSchema: z.ZodObject<{
|
|
|
341
342
|
name: string;
|
|
342
343
|
active: boolean;
|
|
343
344
|
priority: "normal" | "critical" | "low" | "high";
|
|
344
|
-
objectName: string;
|
|
345
345
|
version: string;
|
|
346
|
-
|
|
346
|
+
objectName: string;
|
|
347
|
+
trigger: "webhook" | "manual" | "record_created" | "record_updated" | "field_changed" | "scheduled" | "batch";
|
|
347
348
|
aiTasks: {
|
|
348
349
|
type: "classify" | "extract" | "summarize" | "generate" | "predict" | "translate" | "sentiment" | "entity_recognition" | "anomaly_detection" | "recommendation";
|
|
349
350
|
name: string;
|
|
350
351
|
active: boolean;
|
|
351
352
|
inputFields: string[];
|
|
352
353
|
outputField: string;
|
|
353
|
-
outputFormat: "number" | "boolean" | "
|
|
354
|
+
outputFormat: "number" | "boolean" | "array" | "text" | "json";
|
|
354
355
|
multiClass: boolean;
|
|
355
356
|
retryAttempts: number;
|
|
356
357
|
description?: string | undefined;
|
|
@@ -370,6 +371,7 @@ export declare const AIWorkflowAutomationSchema: z.ZodObject<{
|
|
|
370
371
|
enableLogging: boolean;
|
|
371
372
|
enableMetrics: boolean;
|
|
372
373
|
description?: string | undefined;
|
|
374
|
+
tags?: string[] | undefined;
|
|
373
375
|
timeout?: number | undefined;
|
|
374
376
|
owner?: string | undefined;
|
|
375
377
|
schedule?: {
|
|
@@ -383,7 +385,6 @@ export declare const AIWorkflowAutomationSchema: z.ZodObject<{
|
|
|
383
385
|
} | undefined;
|
|
384
386
|
createdAt?: string | undefined;
|
|
385
387
|
updatedAt?: string | undefined;
|
|
386
|
-
tags?: string[] | undefined;
|
|
387
388
|
category?: string | undefined;
|
|
388
389
|
fieldConditions?: {
|
|
389
390
|
field: string;
|
|
@@ -396,7 +397,7 @@ export declare const AIWorkflowAutomationSchema: z.ZodObject<{
|
|
|
396
397
|
} | undefined;
|
|
397
398
|
entryCriteria?: string | undefined;
|
|
398
399
|
postActions?: {
|
|
399
|
-
type: "
|
|
400
|
+
type: "webhook" | "field_update" | "send_email" | "create_record" | "update_related" | "trigger_flow";
|
|
400
401
|
name: string;
|
|
401
402
|
config: Record<string, any>;
|
|
402
403
|
condition?: string | undefined;
|
|
@@ -406,7 +407,7 @@ export declare const AIWorkflowAutomationSchema: z.ZodObject<{
|
|
|
406
407
|
label: string;
|
|
407
408
|
name: string;
|
|
408
409
|
objectName: string;
|
|
409
|
-
trigger: "
|
|
410
|
+
trigger: "webhook" | "manual" | "record_created" | "record_updated" | "field_changed" | "scheduled" | "batch";
|
|
410
411
|
aiTasks: {
|
|
411
412
|
type: "classify" | "extract" | "summarize" | "generate" | "predict" | "translate" | "sentiment" | "entity_recognition" | "anomaly_detection" | "recommendation";
|
|
412
413
|
name: string;
|
|
@@ -421,7 +422,7 @@ export declare const AIWorkflowAutomationSchema: z.ZodObject<{
|
|
|
421
422
|
temperature?: number | undefined;
|
|
422
423
|
promptTemplate?: string | undefined;
|
|
423
424
|
inputContext?: Record<string, any> | undefined;
|
|
424
|
-
outputFormat?: "number" | "boolean" | "
|
|
425
|
+
outputFormat?: "number" | "boolean" | "array" | "text" | "json" | undefined;
|
|
425
426
|
classes?: string[] | undefined;
|
|
426
427
|
multiClass?: boolean | undefined;
|
|
427
428
|
extractionSchema?: Record<string, any> | undefined;
|
|
@@ -430,22 +431,22 @@ export declare const AIWorkflowAutomationSchema: z.ZodObject<{
|
|
|
430
431
|
}[];
|
|
431
432
|
description?: string | undefined;
|
|
432
433
|
active?: boolean | undefined;
|
|
434
|
+
tags?: string[] | undefined;
|
|
433
435
|
timeout?: number | undefined;
|
|
436
|
+
priority?: "normal" | "critical" | "low" | "high" | undefined;
|
|
437
|
+
version?: string | undefined;
|
|
434
438
|
owner?: string | undefined;
|
|
435
439
|
schedule?: {
|
|
436
|
-
time?: string | undefined;
|
|
437
440
|
type?: "cron" | "interval" | "daily" | "weekly" | "monthly" | undefined;
|
|
438
|
-
|
|
441
|
+
time?: string | undefined;
|
|
439
442
|
cron?: string | undefined;
|
|
443
|
+
timezone?: string | undefined;
|
|
440
444
|
interval?: number | undefined;
|
|
441
445
|
dayOfWeek?: number | undefined;
|
|
442
446
|
dayOfMonth?: number | undefined;
|
|
443
447
|
} | undefined;
|
|
444
|
-
priority?: "normal" | "critical" | "low" | "high" | undefined;
|
|
445
|
-
version?: string | undefined;
|
|
446
448
|
createdAt?: string | undefined;
|
|
447
449
|
updatedAt?: string | undefined;
|
|
448
|
-
tags?: string[] | undefined;
|
|
449
450
|
category?: string | undefined;
|
|
450
451
|
fieldConditions?: {
|
|
451
452
|
field: string;
|
|
@@ -458,7 +459,7 @@ export declare const AIWorkflowAutomationSchema: z.ZodObject<{
|
|
|
458
459
|
} | undefined;
|
|
459
460
|
entryCriteria?: string | undefined;
|
|
460
461
|
postActions?: {
|
|
461
|
-
type: "
|
|
462
|
+
type: "webhook" | "field_update" | "send_email" | "create_record" | "update_related" | "trigger_flow";
|
|
462
463
|
name: string;
|
|
463
464
|
config: Record<string, any>;
|
|
464
465
|
condition?: string | undefined;
|
|
@@ -470,10 +471,10 @@ export declare const AIWorkflowAutomationSchema: z.ZodObject<{
|
|
|
470
471
|
notifyOnFailure?: string[] | undefined;
|
|
471
472
|
}>;
|
|
472
473
|
/**
|
|
473
|
-
* Batch AI
|
|
474
|
+
* Batch AI Orchestration Execution Request
|
|
474
475
|
* For processing multiple records at once
|
|
475
476
|
*/
|
|
476
|
-
export declare const
|
|
477
|
+
export declare const BatchAIOrchestrationExecutionSchema: z.ZodObject<{
|
|
477
478
|
workflowName: z.ZodString;
|
|
478
479
|
recordIds: z.ZodArray<z.ZodString, "many">;
|
|
479
480
|
batchSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -493,10 +494,10 @@ export declare const BatchAIWorkflowExecutionSchema: z.ZodObject<{
|
|
|
493
494
|
parallelism?: number | undefined;
|
|
494
495
|
}>;
|
|
495
496
|
/**
|
|
496
|
-
* AI
|
|
497
|
-
* Result of a single
|
|
497
|
+
* AI Orchestration Execution Result
|
|
498
|
+
* Result of a single execution
|
|
498
499
|
*/
|
|
499
|
-
export declare const
|
|
500
|
+
export declare const AIOrchestrationExecutionResultSchema: z.ZodObject<{
|
|
500
501
|
workflowName: z.ZodString;
|
|
501
502
|
recordId: z.ZodString;
|
|
502
503
|
status: z.ZodEnum<["success", "partial_success", "failed", "skipped"]>;
|
|
@@ -578,13 +579,13 @@ export declare const AIWorkflowExecutionResultSchema: z.ZodObject<{
|
|
|
578
579
|
modelUsed?: string | undefined;
|
|
579
580
|
}[] | undefined;
|
|
580
581
|
}>;
|
|
581
|
-
export type
|
|
582
|
+
export type AIOrchestrationTrigger = z.infer<typeof AIOrchestrationTriggerSchema>;
|
|
582
583
|
export type AITaskType = z.infer<typeof AITaskTypeSchema>;
|
|
583
584
|
export type AITask = z.infer<typeof AITaskSchema>;
|
|
584
585
|
export type WorkflowFieldCondition = z.infer<typeof WorkflowFieldConditionSchema>;
|
|
585
586
|
export type WorkflowSchedule = z.infer<typeof WorkflowScheduleSchema>;
|
|
586
587
|
export type PostProcessingAction = z.infer<typeof PostProcessingActionSchema>;
|
|
587
|
-
export type
|
|
588
|
-
export type
|
|
589
|
-
export type
|
|
590
|
-
//# sourceMappingURL=
|
|
588
|
+
export type AIOrchestration = z.infer<typeof AIOrchestrationSchema>;
|
|
589
|
+
export type BatchAIOrchestrationExecution = z.infer<typeof BatchAIOrchestrationExecutionSchema>;
|
|
590
|
+
export type AIOrchestrationExecutionResult = z.infer<typeof AIOrchestrationExecutionResultSchema>;
|
|
591
|
+
//# sourceMappingURL=orchestration.zod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orchestration.zod.d.ts","sourceRoot":"","sources":["../../src/ai/orchestration.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;;;;;;GAcG;AAEH;;;GAGG;AACH,eAAO,MAAM,4BAA4B,6GAQvC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,gBAAgB,+JAW3B,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,YAAY;IACvB,oBAAoB;;;;IAKpB,0BAA0B;;;IAI1B,0BAA0B;;;IAI1B,2BAA2B;;;IAI3B,sCAAsC;;;IAItC,kCAAkC;;IAGlC,kCAAkC;;;IAIlC,qBAAqB;;;IAIrB,4BAA4B;;IAG5B,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGpB,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;EAIvC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;EAQjC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;EAKrC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,qBAAqB;IAChC,eAAe;;;;IAKf,oBAAoB;;IAGpB,4BAA4B;;IAG5B,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQrC,qBAAqB;;IAGrB,eAAe;;QAtGf,oBAAoB;;;;QAKpB,0BAA0B;;;QAI1B,0BAA0B;;;QAI1B,2BAA2B;;;QAI3B,sCAAsC;;;QAItC,kCAAkC;;QAGlC,kCAAkC;;;QAIlC,qBAAqB;;;QAIrB,4BAA4B;;QAG5B,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAsEpB,sBAAsB;;;;;;;;;;;;;;;;;IAGtB,wBAAwB;;;IAIxB,2BAA2B;;;IAI3B,2BAA2B;;;;IAK3B,aAAa;;;IAIb,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMf,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;EAM9C,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,oCAAoC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB/C,CAAC;AAGH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAClD,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAC9E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AACpE,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAChG,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC"}
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.AIOrchestrationExecutionResultSchema = exports.BatchAIOrchestrationExecutionSchema = exports.AIOrchestrationSchema = exports.PostProcessingActionSchema = exports.WorkflowScheduleSchema = exports.WorkflowFieldConditionSchema = exports.AITaskSchema = exports.AITaskTypeSchema = exports.AIOrchestrationTriggerSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
/**
|
|
6
|
-
* AI
|
|
6
|
+
* AI Agentic Orchestration Protocol
|
|
7
7
|
*
|
|
8
|
-
* Defines intelligent
|
|
9
|
-
* to automate business processes with
|
|
10
|
-
*
|
|
8
|
+
* Defines intelligent orchestration flows where AI Agents leverage cognitive skills
|
|
9
|
+
* to automate business processes with dynamic reasoning, planning, and execution.
|
|
10
|
+
*
|
|
11
|
+
* Distinction from Standard Workflows:
|
|
12
|
+
* - Standard Workflow: Deterministic (If X then Y). defined in src/data/workflow.zod.ts
|
|
13
|
+
* - AI Orchestration: Probabilistic & Agentic (Goal -> Plan -> Execute).
|
|
11
14
|
*
|
|
12
15
|
* Use Cases:
|
|
13
|
-
* -
|
|
14
|
-
* -
|
|
15
|
-
* -
|
|
16
|
-
* - Predict lead scores or customer churn risk
|
|
17
|
-
* - Auto-fill forms based on natural language input
|
|
16
|
+
* - Complex Support Triage (Analyze sentiment + intent -> Draft response -> Route)
|
|
17
|
+
* - Intelligent Document Processing (OCR -> Extract Entities -> Validate -> Entry)
|
|
18
|
+
* - Research Agent (Search Web -> Summarize -> Generate Report)
|
|
18
19
|
*/
|
|
19
20
|
/**
|
|
20
|
-
*
|
|
21
|
-
* Defines when an AI
|
|
21
|
+
* Orchestration Trigger Types
|
|
22
|
+
* Defines when an AI Agentic Flow should be initiated
|
|
22
23
|
*/
|
|
23
|
-
exports.
|
|
24
|
+
exports.AIOrchestrationTriggerSchema = zod_1.z.enum([
|
|
24
25
|
'record_created', // When a new record is created
|
|
25
26
|
'record_updated', // When a record is updated
|
|
26
27
|
'field_changed', // When specific field(s) change
|
|
@@ -113,18 +114,18 @@ exports.PostProcessingActionSchema = zod_1.z.object({
|
|
|
113
114
|
condition: zod_1.z.string().optional().describe('Execute only if condition is TRUE'),
|
|
114
115
|
});
|
|
115
116
|
/**
|
|
116
|
-
* AI
|
|
117
|
+
* AI Agentic Orchestration Schema
|
|
117
118
|
* Complete workflow definition with AI-powered tasks
|
|
118
119
|
*/
|
|
119
|
-
exports.
|
|
120
|
+
exports.AIOrchestrationSchema = zod_1.z.object({
|
|
120
121
|
/** Identity */
|
|
121
|
-
name: zod_1.z.string().regex(/^[a-z_][a-z0-9_]*$/).describe('
|
|
122
|
-
label: zod_1.z.string().describe('
|
|
122
|
+
name: zod_1.z.string().regex(/^[a-z_][a-z0-9_]*$/).describe('Orchestration unique identifier (snake_case)'),
|
|
123
|
+
label: zod_1.z.string().describe('Display name'),
|
|
123
124
|
description: zod_1.z.string().optional(),
|
|
124
125
|
/** Target Object */
|
|
125
|
-
objectName: zod_1.z.string().describe('Target object for this
|
|
126
|
+
objectName: zod_1.z.string().describe('Target object for this orchestration'),
|
|
126
127
|
/** Trigger Configuration */
|
|
127
|
-
trigger: exports.
|
|
128
|
+
trigger: exports.AIOrchestrationTriggerSchema,
|
|
128
129
|
/** Trigger-specific configuration */
|
|
129
130
|
fieldConditions: zod_1.z.array(exports.WorkflowFieldConditionSchema).optional().describe('Fields to monitor (for field_changed trigger)'),
|
|
130
131
|
schedule: exports.WorkflowScheduleSchema.optional().describe('Schedule configuration (for scheduled trigger)'),
|
|
@@ -159,21 +160,21 @@ exports.AIWorkflowAutomationSchema = zod_1.z.object({
|
|
|
159
160
|
updatedAt: zod_1.z.string().optional().describe('ISO timestamp'),
|
|
160
161
|
});
|
|
161
162
|
/**
|
|
162
|
-
* Batch AI
|
|
163
|
+
* Batch AI Orchestration Execution Request
|
|
163
164
|
* For processing multiple records at once
|
|
164
165
|
*/
|
|
165
|
-
exports.
|
|
166
|
-
workflowName: zod_1.z.string().describe('
|
|
166
|
+
exports.BatchAIOrchestrationExecutionSchema = zod_1.z.object({
|
|
167
|
+
workflowName: zod_1.z.string().describe('Orchestration to execute'),
|
|
167
168
|
recordIds: zod_1.z.array(zod_1.z.string()).describe('Records to process'),
|
|
168
169
|
batchSize: zod_1.z.number().int().min(1).max(1000).optional().default(10),
|
|
169
170
|
parallelism: zod_1.z.number().int().min(1).max(10).optional().default(3),
|
|
170
171
|
priority: zod_1.z.enum(['low', 'normal', 'high']).optional().default('normal'),
|
|
171
172
|
});
|
|
172
173
|
/**
|
|
173
|
-
* AI
|
|
174
|
-
* Result of a single
|
|
174
|
+
* AI Orchestration Execution Result
|
|
175
|
+
* Result of a single execution
|
|
175
176
|
*/
|
|
176
|
-
exports.
|
|
177
|
+
exports.AIOrchestrationExecutionResultSchema = zod_1.z.object({
|
|
177
178
|
workflowName: zod_1.z.string(),
|
|
178
179
|
recordId: zod_1.z.string(),
|
|
179
180
|
status: zod_1.z.enum(['success', 'partial_success', 'failed', 'skipped']),
|
|
@@ -41,9 +41,9 @@ export declare const ModelFeatureSchema: z.ZodObject<{
|
|
|
41
41
|
description: z.ZodOptional<z.ZodString>;
|
|
42
42
|
importance: z.ZodOptional<z.ZodNumber>;
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
|
-
name: string;
|
|
45
44
|
required: boolean;
|
|
46
45
|
field: string;
|
|
46
|
+
name: string;
|
|
47
47
|
dataType: "boolean" | "text" | "datetime" | "numeric" | "categorical";
|
|
48
48
|
transformation: "none" | "embedding" | "normalize" | "standardize" | "one_hot_encode" | "label_encode" | "log_transform" | "binning";
|
|
49
49
|
object?: string | undefined;
|
|
@@ -52,13 +52,13 @@ export declare const ModelFeatureSchema: z.ZodObject<{
|
|
|
52
52
|
defaultValue?: any;
|
|
53
53
|
importance?: number | undefined;
|
|
54
54
|
}, {
|
|
55
|
-
name: string;
|
|
56
55
|
field: string;
|
|
56
|
+
name: string;
|
|
57
57
|
dataType: "boolean" | "text" | "datetime" | "numeric" | "categorical";
|
|
58
58
|
object?: string | undefined;
|
|
59
|
+
required?: boolean | undefined;
|
|
59
60
|
label?: string | undefined;
|
|
60
61
|
description?: string | undefined;
|
|
61
|
-
required?: boolean | undefined;
|
|
62
62
|
defaultValue?: any;
|
|
63
63
|
transformation?: "none" | "embedding" | "normalize" | "standardize" | "one_hot_encode" | "label_encode" | "log_transform" | "binning" | undefined;
|
|
64
64
|
importance?: number | undefined;
|
|
@@ -151,7 +151,7 @@ export declare const TrainingConfigSchema: z.ZodObject<{
|
|
|
151
151
|
/** Reproducibility */
|
|
152
152
|
randomSeed: z.ZodOptional<z.ZodNumber>;
|
|
153
153
|
}, "strip", z.ZodTypeAny, {
|
|
154
|
-
strategy: "full" | "
|
|
154
|
+
strategy: "full" | "incremental" | "online" | "transfer_learning";
|
|
155
155
|
trainingDataRatio: number;
|
|
156
156
|
validationDataRatio: number;
|
|
157
157
|
testDataRatio: number;
|
|
@@ -166,7 +166,7 @@ export declare const TrainingConfigSchema: z.ZodObject<{
|
|
|
166
166
|
maxTrainingTime?: number | undefined;
|
|
167
167
|
randomSeed?: number | undefined;
|
|
168
168
|
}, {
|
|
169
|
-
strategy?: "full" | "
|
|
169
|
+
strategy?: "full" | "incremental" | "online" | "transfer_learning" | undefined;
|
|
170
170
|
trainingDataRatio?: number | undefined;
|
|
171
171
|
validationDataRatio?: number | undefined;
|
|
172
172
|
testDataRatio?: number | undefined;
|
|
@@ -205,9 +205,9 @@ export declare const EvaluationMetricsSchema: z.ZodObject<{
|
|
|
205
205
|
/** Additional Metrics */
|
|
206
206
|
custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
207
207
|
}, "strip", z.ZodTypeAny, {
|
|
208
|
+
custom?: Record<string, number> | undefined;
|
|
208
209
|
accuracy?: number | undefined;
|
|
209
210
|
precision?: number | undefined;
|
|
210
|
-
custom?: Record<string, number> | undefined;
|
|
211
211
|
recall?: number | undefined;
|
|
212
212
|
f1Score?: number | undefined;
|
|
213
213
|
auc?: number | undefined;
|
|
@@ -220,9 +220,9 @@ export declare const EvaluationMetricsSchema: z.ZodObject<{
|
|
|
220
220
|
mape?: number | undefined;
|
|
221
221
|
smape?: number | undefined;
|
|
222
222
|
}, {
|
|
223
|
+
custom?: Record<string, number> | undefined;
|
|
223
224
|
accuracy?: number | undefined;
|
|
224
225
|
precision?: number | undefined;
|
|
225
|
-
custom?: Record<string, number> | undefined;
|
|
226
226
|
recall?: number | undefined;
|
|
227
227
|
f1Score?: number | undefined;
|
|
228
228
|
auc?: number | undefined;
|
|
@@ -270,9 +270,9 @@ export declare const PredictiveModelSchema: z.ZodObject<{
|
|
|
270
270
|
description: z.ZodOptional<z.ZodString>;
|
|
271
271
|
importance: z.ZodOptional<z.ZodNumber>;
|
|
272
272
|
}, "strip", z.ZodTypeAny, {
|
|
273
|
-
name: string;
|
|
274
273
|
required: boolean;
|
|
275
274
|
field: string;
|
|
275
|
+
name: string;
|
|
276
276
|
dataType: "boolean" | "text" | "datetime" | "numeric" | "categorical";
|
|
277
277
|
transformation: "none" | "embedding" | "normalize" | "standardize" | "one_hot_encode" | "label_encode" | "log_transform" | "binning";
|
|
278
278
|
object?: string | undefined;
|
|
@@ -281,13 +281,13 @@ export declare const PredictiveModelSchema: z.ZodObject<{
|
|
|
281
281
|
defaultValue?: any;
|
|
282
282
|
importance?: number | undefined;
|
|
283
283
|
}, {
|
|
284
|
-
name: string;
|
|
285
284
|
field: string;
|
|
285
|
+
name: string;
|
|
286
286
|
dataType: "boolean" | "text" | "datetime" | "numeric" | "categorical";
|
|
287
287
|
object?: string | undefined;
|
|
288
|
+
required?: boolean | undefined;
|
|
288
289
|
label?: string | undefined;
|
|
289
290
|
description?: string | undefined;
|
|
290
|
-
required?: boolean | undefined;
|
|
291
291
|
defaultValue?: any;
|
|
292
292
|
transformation?: "none" | "embedding" | "normalize" | "standardize" | "one_hot_encode" | "label_encode" | "log_transform" | "binning" | undefined;
|
|
293
293
|
importance?: number | undefined;
|
|
@@ -375,7 +375,7 @@ export declare const PredictiveModelSchema: z.ZodObject<{
|
|
|
375
375
|
/** Reproducibility */
|
|
376
376
|
randomSeed: z.ZodOptional<z.ZodNumber>;
|
|
377
377
|
}, "strip", z.ZodTypeAny, {
|
|
378
|
-
strategy: "full" | "
|
|
378
|
+
strategy: "full" | "incremental" | "online" | "transfer_learning";
|
|
379
379
|
trainingDataRatio: number;
|
|
380
380
|
validationDataRatio: number;
|
|
381
381
|
testDataRatio: number;
|
|
@@ -390,7 +390,7 @@ export declare const PredictiveModelSchema: z.ZodObject<{
|
|
|
390
390
|
maxTrainingTime?: number | undefined;
|
|
391
391
|
randomSeed?: number | undefined;
|
|
392
392
|
}, {
|
|
393
|
-
strategy?: "full" | "
|
|
393
|
+
strategy?: "full" | "incremental" | "online" | "transfer_learning" | undefined;
|
|
394
394
|
trainingDataRatio?: number | undefined;
|
|
395
395
|
validationDataRatio?: number | undefined;
|
|
396
396
|
testDataRatio?: number | undefined;
|
|
@@ -427,9 +427,9 @@ export declare const PredictiveModelSchema: z.ZodObject<{
|
|
|
427
427
|
/** Additional Metrics */
|
|
428
428
|
custom: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
429
429
|
}, "strip", z.ZodTypeAny, {
|
|
430
|
+
custom?: Record<string, number> | undefined;
|
|
430
431
|
accuracy?: number | undefined;
|
|
431
432
|
precision?: number | undefined;
|
|
432
|
-
custom?: Record<string, number> | undefined;
|
|
433
433
|
recall?: number | undefined;
|
|
434
434
|
f1Score?: number | undefined;
|
|
435
435
|
auc?: number | undefined;
|
|
@@ -442,9 +442,9 @@ export declare const PredictiveModelSchema: z.ZodObject<{
|
|
|
442
442
|
mape?: number | undefined;
|
|
443
443
|
smape?: number | undefined;
|
|
444
444
|
}, {
|
|
445
|
+
custom?: Record<string, number> | undefined;
|
|
445
446
|
accuracy?: number | undefined;
|
|
446
447
|
precision?: number | undefined;
|
|
447
|
-
custom?: Record<string, number> | undefined;
|
|
448
448
|
recall?: number | undefined;
|
|
449
449
|
f1Score?: number | undefined;
|
|
450
450
|
auc?: number | undefined;
|
|
@@ -488,13 +488,13 @@ export declare const PredictiveModelSchema: z.ZodObject<{
|
|
|
488
488
|
label: string;
|
|
489
489
|
name: string;
|
|
490
490
|
active: boolean;
|
|
491
|
+
version: string;
|
|
491
492
|
objectName: string;
|
|
492
493
|
target: string;
|
|
493
|
-
version: string;
|
|
494
494
|
features: {
|
|
495
|
-
name: string;
|
|
496
495
|
required: boolean;
|
|
497
496
|
field: string;
|
|
497
|
+
name: string;
|
|
498
498
|
dataType: "boolean" | "text" | "datetime" | "numeric" | "categorical";
|
|
499
499
|
transformation: "none" | "embedding" | "normalize" | "standardize" | "one_hot_encode" | "label_encode" | "log_transform" | "binning";
|
|
500
500
|
object?: string | undefined;
|
|
@@ -504,19 +504,19 @@ export declare const PredictiveModelSchema: z.ZodObject<{
|
|
|
504
504
|
importance?: number | undefined;
|
|
505
505
|
}[];
|
|
506
506
|
deploymentStatus: "deprecated" | "training" | "draft" | "trained" | "deployed";
|
|
507
|
-
updateTrigger: "manual" | "
|
|
507
|
+
updateTrigger: "manual" | "on_update" | "scheduled" | "on_create";
|
|
508
508
|
autoRetrain: boolean;
|
|
509
509
|
enableExplainability: boolean;
|
|
510
510
|
enableMonitoring: boolean;
|
|
511
511
|
alertOnDrift: boolean;
|
|
512
512
|
description?: string | undefined;
|
|
513
|
+
tags?: string[] | undefined;
|
|
513
514
|
owner?: string | undefined;
|
|
514
|
-
permissions?: string[] | undefined;
|
|
515
515
|
createdAt?: string | undefined;
|
|
516
516
|
updatedAt?: string | undefined;
|
|
517
|
-
|
|
518
|
-
tags?: string[] | undefined;
|
|
517
|
+
permissions?: string[] | undefined;
|
|
519
518
|
category?: string | undefined;
|
|
519
|
+
algorithm?: string | undefined;
|
|
520
520
|
targetType?: "numeric" | "categorical" | "binary" | undefined;
|
|
521
521
|
hyperparameters?: {
|
|
522
522
|
custom?: Record<string, any> | undefined;
|
|
@@ -537,7 +537,7 @@ export declare const PredictiveModelSchema: z.ZodObject<{
|
|
|
537
537
|
forecastHorizon?: number | undefined;
|
|
538
538
|
} | undefined;
|
|
539
539
|
training?: {
|
|
540
|
-
strategy: "full" | "
|
|
540
|
+
strategy: "full" | "incremental" | "online" | "transfer_learning";
|
|
541
541
|
trainingDataRatio: number;
|
|
542
542
|
validationDataRatio: number;
|
|
543
543
|
testDataRatio: number;
|
|
@@ -553,9 +553,9 @@ export declare const PredictiveModelSchema: z.ZodObject<{
|
|
|
553
553
|
randomSeed?: number | undefined;
|
|
554
554
|
} | undefined;
|
|
555
555
|
metrics?: {
|
|
556
|
+
custom?: Record<string, number> | undefined;
|
|
556
557
|
accuracy?: number | undefined;
|
|
557
558
|
precision?: number | undefined;
|
|
558
|
-
custom?: Record<string, number> | undefined;
|
|
559
559
|
recall?: number | undefined;
|
|
560
560
|
f1Score?: number | undefined;
|
|
561
561
|
auc?: number | undefined;
|
|
@@ -580,27 +580,27 @@ export declare const PredictiveModelSchema: z.ZodObject<{
|
|
|
580
580
|
objectName: string;
|
|
581
581
|
target: string;
|
|
582
582
|
features: {
|
|
583
|
-
name: string;
|
|
584
583
|
field: string;
|
|
584
|
+
name: string;
|
|
585
585
|
dataType: "boolean" | "text" | "datetime" | "numeric" | "categorical";
|
|
586
586
|
object?: string | undefined;
|
|
587
|
+
required?: boolean | undefined;
|
|
587
588
|
label?: string | undefined;
|
|
588
589
|
description?: string | undefined;
|
|
589
|
-
required?: boolean | undefined;
|
|
590
590
|
defaultValue?: any;
|
|
591
591
|
transformation?: "none" | "embedding" | "normalize" | "standardize" | "one_hot_encode" | "label_encode" | "log_transform" | "binning" | undefined;
|
|
592
592
|
importance?: number | undefined;
|
|
593
593
|
}[];
|
|
594
594
|
description?: string | undefined;
|
|
595
595
|
active?: boolean | undefined;
|
|
596
|
-
|
|
596
|
+
tags?: string[] | undefined;
|
|
597
597
|
version?: string | undefined;
|
|
598
|
-
|
|
598
|
+
owner?: string | undefined;
|
|
599
599
|
createdAt?: string | undefined;
|
|
600
600
|
updatedAt?: string | undefined;
|
|
601
|
-
|
|
602
|
-
tags?: string[] | undefined;
|
|
601
|
+
permissions?: string[] | undefined;
|
|
603
602
|
category?: string | undefined;
|
|
603
|
+
algorithm?: string | undefined;
|
|
604
604
|
targetType?: "numeric" | "categorical" | "binary" | undefined;
|
|
605
605
|
hyperparameters?: {
|
|
606
606
|
custom?: Record<string, any> | undefined;
|
|
@@ -621,7 +621,7 @@ export declare const PredictiveModelSchema: z.ZodObject<{
|
|
|
621
621
|
forecastHorizon?: number | undefined;
|
|
622
622
|
} | undefined;
|
|
623
623
|
training?: {
|
|
624
|
-
strategy?: "full" | "
|
|
624
|
+
strategy?: "full" | "incremental" | "online" | "transfer_learning" | undefined;
|
|
625
625
|
trainingDataRatio?: number | undefined;
|
|
626
626
|
validationDataRatio?: number | undefined;
|
|
627
627
|
testDataRatio?: number | undefined;
|
|
@@ -637,9 +637,9 @@ export declare const PredictiveModelSchema: z.ZodObject<{
|
|
|
637
637
|
randomSeed?: number | undefined;
|
|
638
638
|
} | undefined;
|
|
639
639
|
metrics?: {
|
|
640
|
+
custom?: Record<string, number> | undefined;
|
|
640
641
|
accuracy?: number | undefined;
|
|
641
642
|
precision?: number | undefined;
|
|
642
|
-
custom?: Record<string, number> | undefined;
|
|
643
643
|
recall?: number | undefined;
|
|
644
644
|
f1Score?: number | undefined;
|
|
645
645
|
auc?: number | undefined;
|
|
@@ -655,7 +655,7 @@ export declare const PredictiveModelSchema: z.ZodObject<{
|
|
|
655
655
|
deploymentStatus?: "deprecated" | "training" | "draft" | "trained" | "deployed" | undefined;
|
|
656
656
|
predictionField?: string | undefined;
|
|
657
657
|
confidenceField?: string | undefined;
|
|
658
|
-
updateTrigger?: "manual" | "
|
|
658
|
+
updateTrigger?: "manual" | "on_update" | "scheduled" | "on_create" | undefined;
|
|
659
659
|
autoRetrain?: boolean | undefined;
|
|
660
660
|
retrainSchedule?: string | undefined;
|
|
661
661
|
retrainThreshold?: number | undefined;
|