@objectstack/spec 0.3.2 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +32 -10
- package/dist/ai/agent.zod.d.ts +12 -12
- package/dist/ai/conversation.zod.d.ts +54 -54
- package/dist/ai/cost.zod.d.ts +135 -135
- package/dist/ai/index.d.ts +1 -1
- package/dist/ai/index.d.ts.map +1 -1
- package/dist/ai/index.js +1 -1
- package/dist/ai/model-registry.zod.d.ts +91 -91
- package/dist/ai/nlq.zod.d.ts +72 -72
- package/dist/ai/{workflow-automation.zod.d.ts → orchestration.zod.d.ts} +51 -50
- package/dist/ai/orchestration.zod.d.ts.map +1 -0
- package/dist/ai/{workflow-automation.zod.js → orchestration.zod.js} +26 -25
- package/dist/ai/predictive.zod.d.ts +27 -27
- package/dist/ai/rag-pipeline.zod.d.ts +102 -102
- package/dist/api/contract.zod.d.ts +213 -197
- package/dist/api/contract.zod.d.ts.map +1 -1
- package/dist/{system → api}/discovery.zod.d.ts +26 -26
- package/dist/api/discovery.zod.d.ts.map +1 -0
- package/dist/{system → api}/discovery.zod.js +9 -9
- package/dist/{system/api.zod.d.ts → api/endpoint.zod.d.ts} +53 -57
- package/dist/api/endpoint.zod.d.ts.map +1 -0
- package/dist/{system/api.zod.js → api/endpoint.zod.js} +3 -6
- package/dist/api/index.d.ts +6 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +6 -0
- package/dist/api/odata.zod.d.ts +482 -0
- package/dist/api/odata.zod.d.ts.map +1 -0
- package/dist/api/odata.zod.js +401 -0
- package/dist/{system → api}/realtime.zod.d.ts +4 -4
- package/dist/api/realtime.zod.d.ts.map +1 -0
- package/dist/api/router.zod.d.ts +182 -0
- package/dist/api/router.zod.d.ts.map +1 -0
- package/dist/api/router.zod.js +103 -0
- package/dist/{system/auth.zod.d.ts → auth/config.zod.d.ts} +199 -199
- package/dist/auth/config.zod.d.ts.map +1 -0
- package/dist/{system → auth}/identity.zod.d.ts +8 -8
- package/dist/auth/identity.zod.d.ts.map +1 -0
- package/dist/auth/index.d.ts +8 -0
- package/dist/auth/index.d.ts.map +1 -0
- package/dist/auth/index.js +23 -0
- package/dist/{system → auth}/organization.zod.d.ts +7 -7
- package/dist/auth/organization.zod.d.ts.map +1 -0
- package/dist/{system → auth}/policy.zod.d.ts +3 -3
- package/dist/auth/policy.zod.d.ts.map +1 -0
- package/dist/{system/auth-protocol.d.ts → auth/protocol.d.ts} +1 -1
- package/dist/auth/protocol.d.ts.map +1 -0
- package/dist/{system → auth}/role.zod.d.ts +14 -0
- package/dist/auth/role.zod.d.ts.map +1 -0
- package/dist/{system → auth}/role.zod.js +16 -1
- package/dist/auth/scim.zod.d.ts +2732 -0
- package/dist/auth/scim.zod.d.ts.map +1 -0
- package/dist/auth/scim.zod.js +811 -0
- package/dist/automation/approval.zod.d.ts +643 -0
- package/dist/automation/approval.zod.d.ts.map +1 -0
- package/dist/automation/approval.zod.js +84 -0
- package/dist/automation/connector.zod.d.ts +1284 -0
- package/dist/automation/connector.zod.d.ts.map +1 -0
- package/dist/automation/connector.zod.js +500 -0
- package/dist/automation/etl.zod.d.ts +623 -0
- package/dist/automation/etl.zod.d.ts.map +1 -0
- package/dist/automation/etl.zod.js +359 -0
- package/dist/{data → automation}/flow.zod.d.ts +40 -22
- package/dist/automation/flow.zod.d.ts.map +1 -0
- package/dist/{data → automation}/flow.zod.js +6 -1
- package/dist/automation/index.d.ts +8 -0
- package/dist/automation/index.d.ts.map +1 -0
- package/dist/automation/index.js +23 -0
- package/dist/automation/sync.zod.d.ts +854 -0
- package/dist/automation/sync.zod.d.ts.map +1 -0
- package/dist/automation/sync.zod.js +444 -0
- package/dist/{system → automation}/webhook.zod.d.ts +26 -3
- package/dist/automation/webhook.zod.d.ts.map +1 -0
- package/dist/{system → automation}/webhook.zod.js +27 -3
- package/dist/automation/workflow.zod.d.ts +2059 -0
- package/dist/automation/workflow.zod.d.ts.map +1 -0
- package/dist/{data → automation}/workflow.zod.js +40 -2
- package/dist/data/dataset.zod.d.ts +2 -2
- package/dist/data/field.zod.d.ts +779 -219
- package/dist/data/field.zod.d.ts.map +1 -1
- package/dist/data/field.zod.js +128 -16
- package/dist/data/filter.zod.d.ts +167 -30
- package/dist/data/filter.zod.d.ts.map +1 -1
- package/dist/data/filter.zod.js +25 -13
- package/dist/data/hook.zod.d.ts +191 -0
- package/dist/data/hook.zod.d.ts.map +1 -0
- package/dist/data/hook.zod.js +144 -0
- package/dist/data/index.d.ts +4 -17
- package/dist/data/index.d.ts.map +1 -1
- package/dist/data/index.js +4 -17
- package/dist/data/mapping.zod.d.ts +117 -93
- package/dist/data/mapping.zod.d.ts.map +1 -1
- package/dist/data/mapping.zod.js +16 -3
- package/dist/data/object.zod.d.ts +485 -131
- package/dist/data/object.zod.d.ts.map +1 -1
- package/dist/data/object.zod.js +87 -42
- package/dist/data/query.zod.d.ts +98 -169
- package/dist/data/query.zod.d.ts.map +1 -1
- package/dist/data/query.zod.js +42 -130
- package/dist/data/validation.zod.d.ts +166 -26
- package/dist/data/validation.zod.d.ts.map +1 -1
- package/dist/data/validation.zod.js +38 -16
- package/dist/hub/composer.zod.d.ts +871 -0
- package/dist/hub/composer.zod.d.ts.map +1 -0
- package/dist/hub/composer.zod.js +111 -0
- package/dist/hub/index.d.ts +6 -0
- package/dist/hub/index.d.ts.map +1 -0
- package/dist/hub/index.js +22 -0
- package/dist/{system → hub}/license.zod.d.ts +13 -9
- package/dist/hub/license.zod.d.ts.map +1 -0
- package/dist/{system → hub}/license.zod.js +5 -3
- package/dist/hub/marketplace.zod.d.ts +191 -0
- package/dist/hub/marketplace.zod.d.ts.map +1 -0
- package/dist/hub/marketplace.zod.js +85 -0
- package/dist/hub/space.zod.d.ts +383 -0
- package/dist/hub/space.zod.d.ts.map +1 -0
- package/dist/hub/space.zod.js +103 -0
- package/dist/{system → hub}/tenant.zod.d.ts +73 -47
- package/dist/hub/tenant.zod.d.ts.map +1 -0
- package/dist/{system → hub}/tenant.zod.js +36 -10
- package/dist/index.d.ts +11 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -5
- package/dist/permission/index.d.ts +14 -0
- package/dist/permission/index.d.ts.map +1 -0
- package/dist/permission/index.js +29 -0
- package/dist/{data → permission}/permission.zod.d.ts +48 -3
- package/dist/permission/permission.zod.d.ts.map +1 -0
- package/dist/{data → permission}/permission.zod.js +26 -2
- package/dist/permission/rls.zod.d.ts +605 -0
- package/dist/permission/rls.zod.d.ts.map +1 -0
- package/dist/permission/rls.zod.js +615 -0
- package/dist/permission/sharing.zod.d.ts +146 -0
- package/dist/permission/sharing.zod.d.ts.map +1 -0
- package/dist/permission/sharing.zod.js +88 -0
- package/dist/{system → permission}/territory.zod.d.ts +13 -0
- package/dist/permission/territory.zod.d.ts.map +1 -0
- package/dist/{system → permission}/territory.zod.js +15 -1
- package/dist/shared/identifiers.zod.d.ts +87 -0
- package/dist/shared/identifiers.zod.d.ts.map +1 -0
- package/dist/shared/identifiers.zod.js +101 -0
- package/dist/shared/index.d.ts +6 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/index.js +21 -0
- package/dist/stack.zod.d.ts +19869 -0
- package/dist/stack.zod.d.ts.map +1 -0
- package/dist/stack.zod.js +248 -0
- package/dist/system/audit.zod.d.ts +58 -58
- package/dist/system/context.zod.d.ts +56 -0
- package/dist/system/context.zod.d.ts.map +1 -0
- package/dist/system/context.zod.js +43 -0
- package/dist/system/datasource.zod.d.ts +40 -6
- package/dist/system/datasource.zod.d.ts.map +1 -1
- package/dist/system/datasource.zod.js +17 -13
- package/dist/system/driver/mongo.zod.d.ts +107 -0
- package/dist/system/driver/mongo.zod.d.ts.map +1 -0
- package/dist/system/driver/mongo.zod.js +80 -0
- package/dist/system/driver/postgres.zod.d.ts +134 -0
- package/dist/system/driver/postgres.zod.d.ts.map +1 -0
- package/dist/system/driver/postgres.zod.js +88 -0
- package/dist/system/driver.zod.d.ts +2249 -488
- package/dist/system/driver.zod.d.ts.map +1 -1
- package/dist/system/driver.zod.js +99 -0
- package/dist/system/events.zod.d.ts +8 -5
- package/dist/system/events.zod.d.ts.map +1 -1
- package/dist/system/events.zod.js +5 -1
- package/dist/system/feature.zod.d.ts +131 -0
- package/dist/system/feature.zod.d.ts.map +1 -0
- package/dist/system/feature.zod.js +45 -0
- package/dist/system/index.d.ts +11 -20
- package/dist/system/index.d.ts.map +1 -1
- package/dist/system/index.js +15 -20
- package/dist/system/job.zod.d.ts +5 -5
- package/dist/system/logger.zod.d.ts +111 -0
- package/dist/system/logger.zod.d.ts.map +1 -0
- package/dist/system/logger.zod.js +75 -0
- package/dist/system/manifest.zod.d.ts +136 -18
- package/dist/system/manifest.zod.d.ts.map +1 -1
- package/dist/system/manifest.zod.js +28 -0
- package/dist/system/plugin.zod.d.ts +598 -318
- package/dist/system/plugin.zod.d.ts.map +1 -1
- package/dist/system/plugin.zod.js +13 -0
- package/dist/system/scoped-storage.zod.d.ts +81 -0
- package/dist/system/scoped-storage.zod.d.ts.map +1 -0
- package/dist/system/scoped-storage.zod.js +66 -0
- package/dist/ui/action.zod.d.ts +42 -17
- package/dist/ui/action.zod.d.ts.map +1 -1
- package/dist/ui/action.zod.js +30 -1
- package/dist/ui/app.zod.d.ts +26 -11
- package/dist/ui/app.zod.d.ts.map +1 -1
- package/dist/ui/app.zod.js +32 -4
- package/dist/ui/block.zod.d.ts +265 -0
- package/dist/ui/block.zod.d.ts.map +1 -0
- package/dist/ui/block.zod.js +90 -0
- package/dist/ui/component.zod.d.ts +265 -0
- package/dist/ui/component.zod.d.ts.map +1 -0
- package/dist/ui/component.zod.js +90 -0
- package/dist/ui/dashboard.zod.d.ts +15 -15
- package/dist/ui/dashboard.zod.d.ts.map +1 -1
- package/dist/ui/dashboard.zod.js +18 -8
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +1 -0
- package/dist/ui/page.zod.d.ts +23 -5
- package/dist/ui/page.zod.d.ts.map +1 -1
- package/dist/ui/page.zod.js +37 -4
- package/dist/ui/report.zod.d.ts +12 -12
- package/dist/ui/theme.zod.d.ts +42 -42
- package/dist/ui/view.zod.d.ts +302 -290
- package/dist/ui/view.zod.d.ts.map +1 -1
- package/dist/ui/view.zod.js +32 -3
- package/dist/ui/widget.zod.d.ts +730 -29
- package/dist/ui/widget.zod.d.ts.map +1 -1
- package/dist/ui/widget.zod.js +294 -1
- package/json-schema/ai/{AIWorkflowAutomation.json → AIOrchestration.json} +5 -5
- package/json-schema/ai/{AIWorkflowExecutionResult.json → AIOrchestrationExecutionResult.json} +2 -2
- package/json-schema/ai/{AIWorkflowTrigger.json → AIOrchestrationTrigger.json} +2 -2
- package/json-schema/ai/{BatchAIWorkflowExecution.json → BatchAIOrchestrationExecution.json} +3 -3
- package/json-schema/{system → api}/ApiEndpoint.json +3 -1
- package/json-schema/{system → api}/ApiRoutes.json +7 -7
- package/json-schema/{system → api}/Discovery.json +7 -7
- package/json-schema/api/ExportRequest.json +402 -438
- package/json-schema/{system → api}/HttpMethod.json +3 -1
- package/json-schema/api/ODataError.json +65 -0
- package/json-schema/api/ODataFilterFunction.json +39 -0
- package/json-schema/api/ODataFilterOperator.json +24 -0
- package/json-schema/api/ODataMetadata.json +115 -0
- package/json-schema/api/ODataQuery.json +89 -0
- package/json-schema/api/ODataResponse.json +37 -0
- package/json-schema/api/RouteCategory.json +17 -0
- package/json-schema/api/RouteDefinition.json +77 -0
- package/json-schema/api/RouterConfig.json +117 -0
- package/json-schema/{system → auth}/Role.json +3 -2
- package/json-schema/auth/SCIMAddress.json +50 -0
- package/json-schema/auth/SCIMEmail.json +38 -0
- package/json-schema/auth/SCIMEnterpriseUser.json +55 -0
- package/json-schema/auth/SCIMError.json +52 -0
- package/json-schema/auth/SCIMGroup.json +102 -0
- package/json-schema/auth/SCIMGroupReference.json +36 -0
- package/json-schema/auth/SCIMListResponse.json +606 -0
- package/json-schema/auth/SCIMMemberReference.json +36 -0
- package/json-schema/auth/SCIMMeta.json +35 -0
- package/json-schema/auth/SCIMName.json +36 -0
- package/json-schema/auth/SCIMPatchOperation.json +31 -0
- package/json-schema/auth/SCIMPatchRequest.json +56 -0
- package/json-schema/auth/SCIMPhoneNumber.json +40 -0
- package/json-schema/auth/SCIMUser.json +462 -0
- package/json-schema/automation/ApprovalAction.json +35 -0
- package/json-schema/automation/ApprovalActionType.json +15 -0
- package/json-schema/automation/ApprovalProcess.json +326 -0
- package/json-schema/automation/ApprovalStep.json +147 -0
- package/json-schema/automation/ApproverType.json +16 -0
- package/json-schema/automation/AuthField.json +73 -0
- package/json-schema/automation/Authentication.json +159 -0
- package/json-schema/automation/AuthenticationType.json +18 -0
- package/json-schema/automation/ConflictResolution.json +16 -0
- package/json-schema/automation/Connector.json +440 -0
- package/json-schema/automation/ConnectorCategory.json +26 -0
- package/json-schema/automation/ConnectorInstance.json +69 -0
- package/json-schema/automation/ConnectorOperation.json +117 -0
- package/json-schema/automation/ConnectorTrigger.json +54 -0
- package/json-schema/automation/DataDestinationConfig.json +89 -0
- package/json-schema/automation/DataSourceConfig.json +34 -0
- package/json-schema/automation/DataSyncConfig.json +355 -0
- package/json-schema/automation/ETLDestination.json +57 -0
- package/json-schema/automation/ETLEndpointType.json +19 -0
- package/json-schema/automation/ETLPipeline.json +252 -0
- package/json-schema/automation/ETLPipelineRun.json +107 -0
- package/json-schema/automation/ETLRunStatus.json +17 -0
- package/json-schema/automation/ETLSource.json +60 -0
- package/json-schema/{data/LogicOperator.json → automation/ETLSyncMode.json} +5 -5
- package/json-schema/automation/ETLTransformation.json +46 -0
- package/json-schema/automation/ETLTransformationType.json +21 -0
- package/json-schema/automation/FieldMapping.json +36 -0
- package/json-schema/{data → automation}/Flow.json +31 -1
- package/json-schema/{data → automation}/FlowEdge.json +9 -0
- package/json-schema/automation/OAuth2Config.json +43 -0
- package/json-schema/automation/OperationParameter.json +59 -0
- package/json-schema/automation/OperationType.json +17 -0
- package/json-schema/automation/SyncDirection.json +14 -0
- package/json-schema/automation/SyncExecutionResult.json +135 -0
- package/json-schema/automation/SyncExecutionStatus.json +17 -0
- package/json-schema/{data/TriggerTiming.json → automation/SyncMode.json} +5 -4
- package/json-schema/{data/WorkflowRule.json → automation/TimeTrigger.json} +35 -25
- package/json-schema/{system → automation}/Webhook.json +3 -1
- package/json-schema/{system → automation}/WebhookReceiver.json +3 -1
- package/json-schema/automation/WorkflowRule.json +1032 -0
- package/json-schema/data/AggregationNode.json +23 -0
- package/json-schema/data/AsyncValidation.json +49 -2
- package/json-schema/data/ComparisonOperator.json +52 -0
- package/json-schema/data/ConditionalValidation.json +693 -46
- package/json-schema/data/CrossFieldValidation.json +33 -2
- package/json-schema/data/CurrencyConfig.json +35 -0
- package/json-schema/data/CurrencyValue.json +26 -0
- package/json-schema/data/CustomValidator.json +37 -10
- package/json-schema/data/Field.json +92 -4
- package/json-schema/data/FieldOperators.json +78 -0
- package/json-schema/data/FieldReference.json +19 -0
- package/json-schema/data/FieldType.json +12 -2
- package/json-schema/data/FormatValidation.json +33 -2
- package/json-schema/data/Hook.json +95 -0
- package/json-schema/data/HookContext.json +88 -0
- package/json-schema/data/HookEvent.json +29 -0
- package/json-schema/data/Index.json +10 -0
- package/json-schema/data/JSONValidation.json +85 -0
- package/json-schema/data/JoinNode.json +197 -213
- package/json-schema/data/JoinStrategy.json +15 -0
- package/json-schema/data/NormalizedFilter.json +234 -0
- package/json-schema/data/Object.json +1642 -32
- package/json-schema/data/ObjectCapabilities.json +30 -12
- package/json-schema/data/Query.json +246 -262
- package/json-schema/data/RangeOperator.json +26 -0
- package/json-schema/data/ScriptValidation.json +33 -2
- package/json-schema/data/SearchConfig.json +36 -0
- package/json-schema/data/SelectOption.json +4 -2
- package/json-schema/data/StateMachineValidation.json +33 -2
- package/json-schema/data/UniquenessValidation.json +33 -2
- package/json-schema/data/ValidationRule.json +693 -46
- package/json-schema/data/VectorConfig.json +51 -0
- package/json-schema/hub/BillOfMaterials.json +70 -0
- package/json-schema/hub/ComposerRequest.json +86 -0
- package/json-schema/hub/ComposerResponse.json +483 -0
- package/json-schema/hub/ConflictReport.json +53 -0
- package/json-schema/hub/DependencyRequirement.json +36 -0
- package/json-schema/hub/DeploymentTarget.json +38 -0
- package/json-schema/hub/HubSpace.json +279 -0
- package/json-schema/{system → hub}/License.json +11 -3
- package/json-schema/hub/MarketplacePlugin.json +141 -0
- package/json-schema/hub/PluginAuthor.json +26 -0
- package/json-schema/hub/PluginPricing.json +43 -0
- package/json-schema/hub/SpaceSubscription.json +77 -0
- package/json-schema/hub/SubscriptionStatus.json +16 -0
- package/json-schema/{system → hub}/Tenant.json +3 -5
- package/json-schema/permission/CriteriaSharingRule.json +82 -0
- package/json-schema/{data → permission}/OWDModel.json +2 -1
- package/json-schema/{data → permission}/ObjectPermission.json +15 -0
- package/json-schema/permission/OwnerSharingRule.json +102 -0
- package/json-schema/{data → permission}/PermissionSet.json +18 -1
- package/json-schema/permission/RLSConfig.json +59 -0
- package/json-schema/permission/RLSEvaluationResult.json +40 -0
- package/json-schema/{data/TriggerAction.json → permission/RLSOperation.json} +5 -3
- package/json-schema/permission/RLSUserContext.json +51 -0
- package/json-schema/permission/RowLevelSecurityPolicy.json +77 -0
- package/json-schema/permission/ShareRecipientType.json +16 -0
- package/json-schema/{data → permission}/SharingLevel.json +2 -1
- package/json-schema/permission/SharingRule.json +182 -0
- package/json-schema/{data → permission}/SharingRuleType.json +1 -3
- package/json-schema/{system → permission}/Territory.json +3 -1
- package/json-schema/shared/EventName.json +12 -0
- package/json-schema/shared/SnakeCaseIdentifier.json +12 -0
- package/json-schema/shared/SystemIdentifier.json +12 -0
- package/json-schema/system/Datasource.json +35 -0
- package/json-schema/system/DriverCapabilities.json +10 -0
- package/json-schema/system/DriverInterface.json +10 -0
- package/json-schema/system/DriverOptions.json +11 -0
- package/json-schema/system/Event.json +3 -2
- package/json-schema/system/FeatureFlag.json +87 -0
- package/json-schema/system/FeatureStrategy.json +16 -0
- package/json-schema/system/FileMetadata.json +43 -0
- package/json-schema/system/KernelContext.json +62 -0
- package/json-schema/system/LogEntry.json +63 -0
- package/json-schema/system/LogFormat.json +15 -0
- package/json-schema/system/LogLevel.json +17 -0
- package/json-schema/system/LoggerConfig.json +70 -0
- package/json-schema/system/Manifest.json +80 -0
- package/json-schema/system/MongoConfig.json +82 -0
- package/json-schema/system/PluginContext.json +8 -1
- package/json-schema/system/PostgresConfig.json +98 -0
- package/json-schema/system/RuntimeMode.json +16 -0
- package/json-schema/system/ScopedStorageConfig.json +54 -0
- package/json-schema/system/StorageAdapterType.json +17 -0
- package/json-schema/system/StorageScope.json +18 -0
- package/json-schema/ui/Action.json +25 -4
- package/json-schema/ui/ActionParam.json +12 -2
- package/json-schema/ui/App.json +18 -7
- package/json-schema/ui/ChartType.json +9 -1
- package/json-schema/ui/Dashboard.json +9 -1
- package/json-schema/ui/DashboardNavItem.json +3 -1
- package/json-schema/ui/DashboardWidget.json +9 -1
- package/json-schema/ui/FieldWidgetProps.json +92 -4
- package/json-schema/ui/FormView.json +4 -1
- package/json-schema/ui/GroupNavItem.json +3 -1
- package/json-schema/ui/ListView.json +7 -1
- package/json-schema/ui/NavigationItem.json +15 -5
- package/json-schema/ui/ObjectNavItem.json +3 -1
- package/json-schema/ui/Page.json +36 -4
- package/json-schema/ui/PageCardProps.json +32 -0
- package/json-schema/ui/PageComponent.json +33 -3
- package/json-schema/ui/PageComponentType.json +32 -0
- package/json-schema/ui/PageHeaderProps.json +39 -0
- package/json-schema/ui/PageNavItem.json +3 -1
- package/json-schema/ui/PageRegion.json +33 -3
- package/json-schema/ui/PageTabsProps.json +55 -0
- package/json-schema/ui/RecordDetailsProps.json +37 -0
- package/json-schema/ui/RecordHighlightsProps.json +24 -0
- package/json-schema/ui/RecordRelatedListProps.json +39 -0
- package/json-schema/ui/UrlNavItem.json +3 -1
- package/json-schema/ui/View.json +22 -4
- package/json-schema/ui/WidgetEvent.json +42 -0
- package/json-schema/ui/WidgetLifecycle.json +40 -0
- package/json-schema/ui/WidgetManifest.json +262 -0
- package/json-schema/ui/WidgetProperty.json +58 -0
- package/llms.txt +182 -0
- package/package.json +38 -16
- package/prompts/README.md +18 -0
- package/prompts/architecture.md +81 -0
- package/prompts/create-new-project.md +85 -0
- package/prompts/implement-objectai.md +39 -0
- package/prompts/implement-objectos.md +48 -0
- package/prompts/implement-objectql.md +39 -0
- package/prompts/implement-objectui.md +46 -0
- package/prompts/instructions.md +91 -0
- package/dist/ai/workflow-automation.zod.d.ts.map +0 -1
- package/dist/data/flow.zod.d.ts.map +0 -1
- package/dist/data/permission.zod.d.ts.map +0 -1
- package/dist/data/sharing.zod.d.ts +0 -63
- package/dist/data/sharing.zod.d.ts.map +0 -1
- package/dist/data/sharing.zod.js +0 -57
- package/dist/data/trigger.zod.d.ts +0 -354
- package/dist/data/trigger.zod.d.ts.map +0 -1
- package/dist/data/trigger.zod.js +0 -195
- package/dist/data/workflow.zod.d.ts +0 -986
- package/dist/data/workflow.zod.d.ts.map +0 -1
- package/dist/system/api.zod.d.ts.map +0 -1
- package/dist/system/auth-protocol.d.ts.map +0 -1
- package/dist/system/auth.zod.d.ts.map +0 -1
- package/dist/system/discovery.zod.d.ts.map +0 -1
- package/dist/system/identity.zod.d.ts.map +0 -1
- package/dist/system/license.zod.d.ts.map +0 -1
- package/dist/system/organization.zod.d.ts.map +0 -1
- package/dist/system/policy.zod.d.ts.map +0 -1
- package/dist/system/realtime.zod.d.ts.map +0 -1
- package/dist/system/role.zod.d.ts.map +0 -1
- package/dist/system/tenant.zod.d.ts.map +0 -1
- package/dist/system/territory.zod.d.ts.map +0 -1
- package/dist/system/webhook.zod.d.ts.map +0 -1
- package/json-schema/README.md +0 -127
- package/json-schema/data/FieldMapping.json +0 -83
- package/json-schema/data/FilterNode.json +0 -52
- package/json-schema/data/FilterOperator.json +0 -26
- package/json-schema/data/Mapping.json +0 -598
- package/json-schema/data/SharingRule.json +0 -58
- package/json-schema/data/TransformType.json +0 -18
- package/json-schema/data/Trigger.json +0 -73
- package/json-schema/data/TriggerContext.json +0 -61
- /package/dist/{system → api}/realtime.zod.js +0 -0
- /package/dist/{system/auth.zod.js → auth/config.zod.js} +0 -0
- /package/dist/{system → auth}/identity.zod.js +0 -0
- /package/dist/{system → auth}/organization.zod.js +0 -0
- /package/dist/{system → auth}/policy.zod.js +0 -0
- /package/dist/{system/auth-protocol.js → auth/protocol.js} +0 -0
- /package/json-schema/{system → api}/ApiCapabilities.json +0 -0
- /package/json-schema/{system → api}/ApiMapping.json +0 -0
- /package/json-schema/{system → api}/Presence.json +0 -0
- /package/json-schema/{system → api}/PresenceStatus.json +0 -0
- /package/json-schema/{system → api}/RateLimit.json +0 -0
- /package/json-schema/{system → api}/RealtimeAction.json +0 -0
- /package/json-schema/{system → api}/RealtimeEvent.json +0 -0
- /package/json-schema/{system → api}/RealtimeEventType.json +0 -0
- /package/json-schema/{system → api}/Subscription.json +0 -0
- /package/json-schema/{system → api}/SubscriptionEvent.json +0 -0
- /package/json-schema/{system → api}/TransportProtocol.json +0 -0
- /package/json-schema/{system → auth}/Account.json +0 -0
- /package/json-schema/{system → auth}/AccountLinkingConfig.json +0 -0
- /package/json-schema/{system → auth}/AuditPolicy.json +0 -0
- /package/json-schema/{system → auth}/AuthConfig.json +0 -0
- /package/json-schema/{system → auth}/AuthPluginConfig.json +0 -0
- /package/json-schema/{system → auth}/AuthStrategy.json +0 -0
- /package/json-schema/{system → auth}/CSRFConfig.json +0 -0
- /package/json-schema/{system → auth}/DatabaseAdapter.json +0 -0
- /package/json-schema/{system → auth}/DatabaseMapping.json +0 -0
- /package/json-schema/{system → auth}/EmailPasswordConfig.json +0 -0
- /package/json-schema/{system → auth}/EnterpriseAuthConfig.json +0 -0
- /package/json-schema/{system → auth}/Invitation.json +0 -0
- /package/json-schema/{system → auth}/InvitationStatus.json +0 -0
- /package/json-schema/{system → auth}/LDAPConfig.json +0 -0
- /package/json-schema/{system → auth}/MagicLinkConfig.json +0 -0
- /package/json-schema/{system → auth}/Member.json +0 -0
- /package/json-schema/{system → auth}/NetworkPolicy.json +0 -0
- /package/json-schema/{system → auth}/OAuthProvider.json +0 -0
- /package/json-schema/{system → auth}/OIDCConfig.json +0 -0
- /package/json-schema/{system → auth}/Organization.json +0 -0
- /package/json-schema/{system → auth}/PasskeyConfig.json +0 -0
- /package/json-schema/{system → auth}/PasswordPolicy.json +0 -0
- /package/json-schema/{system → auth}/Policy.json +0 -0
- /package/json-schema/{system → auth}/RateLimitConfig.json +0 -0
- /package/json-schema/{system → auth}/SAMLConfig.json +0 -0
- /package/json-schema/{system → auth}/Session.json +0 -0
- /package/json-schema/{system → auth}/SessionConfig.json +0 -0
- /package/json-schema/{system → auth}/SessionPolicy.json +0 -0
- /package/json-schema/{system → auth}/StandardAuthProvider.json +0 -0
- /package/json-schema/{system → auth}/TwoFactorConfig.json +0 -0
- /package/json-schema/{system → auth}/User.json +0 -0
- /package/json-schema/{system → auth}/UserFieldMapping.json +0 -0
- /package/json-schema/{system → auth}/VerificationToken.json +0 -0
- /package/json-schema/{data → automation}/CustomScriptAction.json +0 -0
- /package/json-schema/{data → automation}/EmailAlertAction.json +0 -0
- /package/json-schema/{data → automation}/FieldUpdateAction.json +0 -0
- /package/json-schema/{data → automation}/FlowNode.json +0 -0
- /package/json-schema/{data → automation}/FlowNodeAction.json +0 -0
- /package/json-schema/{data → automation}/FlowVariable.json +0 -0
- /package/json-schema/{data → automation}/HttpCallAction.json +0 -0
- /package/json-schema/{data → automation}/PushNotificationAction.json +0 -0
- /package/json-schema/{data → automation}/SlackMessageAction.json +0 -0
- /package/json-schema/{data → automation}/SmsNotificationAction.json +0 -0
- /package/json-schema/{data → automation}/TaskCreationAction.json +0 -0
- /package/json-schema/{data → automation}/TeamsMessageAction.json +0 -0
- /package/json-schema/{data → automation}/WebhookTriggerAction.json +0 -0
- /package/json-schema/{system → automation}/WebhookTriggerType.json +0 -0
- /package/json-schema/{data → automation}/WorkflowAction.json +0 -0
- /package/json-schema/{data → automation}/WorkflowTriggerType.json +0 -0
- /package/json-schema/{system → hub}/DatabaseLevelIsolationStrategy.json +0 -0
- /package/json-schema/{system → hub}/Feature.json +0 -0
- /package/json-schema/{system → hub}/LevelIsolationStrategySchema.json +0 -0
- /package/json-schema/{system → hub}/MetricType.json +0 -0
- /package/json-schema/{system → hub}/Plan.json +0 -0
- /package/json-schema/{system → hub}/RowLevelIsolationStrategy.json +0 -0
- /package/json-schema/{system → hub}/TenantIsolationConfig.json +0 -0
- /package/json-schema/{system → hub}/TenantIsolationLevel.json +0 -0
- /package/json-schema/{system → hub}/TenantQuota.json +0 -0
- /package/json-schema/{system → hub}/TenantSecurityPolicy.json +0 -0
- /package/json-schema/{data → permission}/FieldPermission.json +0 -0
- /package/json-schema/{system → permission}/TerritoryModel.json +0 -0
- /package/json-schema/{system → permission}/TerritoryType.json +0 -0
package/dist/ai/nlq.zod.d.ts
CHANGED
|
@@ -19,14 +19,14 @@ export declare const EntitySchema: z.ZodObject<{
|
|
|
19
19
|
confidence: z.ZodNumber;
|
|
20
20
|
span: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
text: string;
|
|
23
22
|
type: "object" | "function" | "value" | "field" | "operator" | "timeframe";
|
|
23
|
+
text: string;
|
|
24
24
|
confidence: number;
|
|
25
25
|
value?: any;
|
|
26
26
|
span?: [number, number] | undefined;
|
|
27
27
|
}, {
|
|
28
|
-
text: string;
|
|
29
28
|
type: "object" | "function" | "value" | "field" | "operator" | "timeframe";
|
|
29
|
+
text: string;
|
|
30
30
|
confidence: number;
|
|
31
31
|
value?: any;
|
|
32
32
|
span?: [number, number] | undefined;
|
|
@@ -53,8 +53,8 @@ export declare const TimeframeSchema: z.ZodObject<{
|
|
|
53
53
|
}>>;
|
|
54
54
|
text: z.ZodString;
|
|
55
55
|
}, "strip", z.ZodTypeAny, {
|
|
56
|
-
text: string;
|
|
57
56
|
type: "absolute" | "relative";
|
|
57
|
+
text: string;
|
|
58
58
|
start?: string | undefined;
|
|
59
59
|
end?: string | undefined;
|
|
60
60
|
relative?: {
|
|
@@ -63,8 +63,8 @@ export declare const TimeframeSchema: z.ZodObject<{
|
|
|
63
63
|
direction: "past" | "future" | "current";
|
|
64
64
|
} | undefined;
|
|
65
65
|
}, {
|
|
66
|
-
text: string;
|
|
67
66
|
type: "absolute" | "relative";
|
|
67
|
+
text: string;
|
|
68
68
|
start?: string | undefined;
|
|
69
69
|
end?: string | undefined;
|
|
70
70
|
relative?: {
|
|
@@ -114,37 +114,37 @@ export declare const QueryContextSchema: z.ZodObject<{
|
|
|
114
114
|
}, "strip", z.ZodTypeAny, {
|
|
115
115
|
timestamp: string;
|
|
116
116
|
query: string;
|
|
117
|
-
intent?: "
|
|
117
|
+
intent?: "sort" | "filter" | "select" | "update" | "delete" | "create" | "aggregate" | "compare" | "trend" | "insight" | undefined;
|
|
118
118
|
}, {
|
|
119
119
|
timestamp: string;
|
|
120
120
|
query: string;
|
|
121
|
-
intent?: "
|
|
121
|
+
intent?: "sort" | "filter" | "select" | "update" | "delete" | "create" | "aggregate" | "compare" | "trend" | "insight" | undefined;
|
|
122
122
|
}>, "many">>;
|
|
123
123
|
/** Preferences */
|
|
124
124
|
defaultLimit: z.ZodDefault<z.ZodNumber>;
|
|
125
125
|
timezone: z.ZodDefault<z.ZodString>;
|
|
126
126
|
locale: z.ZodDefault<z.ZodString>;
|
|
127
127
|
}, "strip", z.ZodTypeAny, {
|
|
128
|
-
locale: string;
|
|
129
128
|
timezone: string;
|
|
129
|
+
locale: string;
|
|
130
130
|
defaultLimit: number;
|
|
131
131
|
userId?: string | undefined;
|
|
132
132
|
conversationHistory?: {
|
|
133
133
|
timestamp: string;
|
|
134
134
|
query: string;
|
|
135
|
-
intent?: "
|
|
135
|
+
intent?: "sort" | "filter" | "select" | "update" | "delete" | "create" | "aggregate" | "compare" | "trend" | "insight" | undefined;
|
|
136
136
|
}[] | undefined;
|
|
137
137
|
userRole?: string | undefined;
|
|
138
138
|
currentObject?: string | undefined;
|
|
139
139
|
currentRecordId?: string | undefined;
|
|
140
140
|
}, {
|
|
141
141
|
userId?: string | undefined;
|
|
142
|
-
locale?: string | undefined;
|
|
143
142
|
timezone?: string | undefined;
|
|
143
|
+
locale?: string | undefined;
|
|
144
144
|
conversationHistory?: {
|
|
145
145
|
timestamp: string;
|
|
146
146
|
query: string;
|
|
147
|
-
intent?: "
|
|
147
|
+
intent?: "sort" | "filter" | "select" | "update" | "delete" | "create" | "aggregate" | "compare" | "trend" | "insight" | undefined;
|
|
148
148
|
}[] | undefined;
|
|
149
149
|
userRole?: string | undefined;
|
|
150
150
|
currentObject?: string | undefined;
|
|
@@ -168,14 +168,14 @@ export declare const NLQParseResultSchema: z.ZodObject<{
|
|
|
168
168
|
confidence: z.ZodNumber;
|
|
169
169
|
span: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
170
170
|
}, "strip", z.ZodTypeAny, {
|
|
171
|
-
text: string;
|
|
172
171
|
type: "object" | "function" | "value" | "field" | "operator" | "timeframe";
|
|
172
|
+
text: string;
|
|
173
173
|
confidence: number;
|
|
174
174
|
value?: any;
|
|
175
175
|
span?: [number, number] | undefined;
|
|
176
176
|
}, {
|
|
177
|
-
text: string;
|
|
178
177
|
type: "object" | "function" | "value" | "field" | "operator" | "timeframe";
|
|
178
|
+
text: string;
|
|
179
179
|
confidence: number;
|
|
180
180
|
value?: any;
|
|
181
181
|
span?: [number, number] | undefined;
|
|
@@ -221,8 +221,8 @@ export declare const NLQParseResultSchema: z.ZodObject<{
|
|
|
221
221
|
}>>;
|
|
222
222
|
text: z.ZodString;
|
|
223
223
|
}, "strip", z.ZodTypeAny, {
|
|
224
|
-
text: string;
|
|
225
224
|
type: "absolute" | "relative";
|
|
225
|
+
text: string;
|
|
226
226
|
start?: string | undefined;
|
|
227
227
|
end?: string | undefined;
|
|
228
228
|
relative?: {
|
|
@@ -231,8 +231,8 @@ export declare const NLQParseResultSchema: z.ZodObject<{
|
|
|
231
231
|
direction: "past" | "future" | "current";
|
|
232
232
|
} | undefined;
|
|
233
233
|
}, {
|
|
234
|
-
text: string;
|
|
235
234
|
type: "absolute" | "relative";
|
|
235
|
+
text: string;
|
|
236
236
|
start?: string | undefined;
|
|
237
237
|
end?: string | undefined;
|
|
238
238
|
relative?: {
|
|
@@ -274,12 +274,12 @@ export declare const NLQParseResultSchema: z.ZodObject<{
|
|
|
274
274
|
}>, "many">>;
|
|
275
275
|
}, "strip", z.ZodTypeAny, {
|
|
276
276
|
confidence: number;
|
|
277
|
-
intent: "
|
|
277
|
+
intent: "sort" | "filter" | "select" | "update" | "delete" | "create" | "aggregate" | "compare" | "trend" | "insight";
|
|
278
278
|
originalQuery: string;
|
|
279
279
|
intentConfidence: number;
|
|
280
280
|
entities: {
|
|
281
|
-
text: string;
|
|
282
281
|
type: "object" | "function" | "value" | "field" | "operator" | "timeframe";
|
|
282
|
+
text: string;
|
|
283
283
|
confidence: number;
|
|
284
284
|
value?: any;
|
|
285
285
|
span?: [number, number] | undefined;
|
|
@@ -291,10 +291,9 @@ export declare const NLQParseResultSchema: z.ZodObject<{
|
|
|
291
291
|
naturalLanguage: string;
|
|
292
292
|
objectField: string;
|
|
293
293
|
}[] | undefined;
|
|
294
|
-
targetObject?: string | undefined;
|
|
295
294
|
timeframe?: {
|
|
296
|
-
text: string;
|
|
297
295
|
type: "absolute" | "relative";
|
|
296
|
+
text: string;
|
|
298
297
|
start?: string | undefined;
|
|
299
298
|
end?: string | undefined;
|
|
300
299
|
relative?: {
|
|
@@ -303,6 +302,7 @@ export declare const NLQParseResultSchema: z.ZodObject<{
|
|
|
303
302
|
direction: "past" | "future" | "current";
|
|
304
303
|
} | undefined;
|
|
305
304
|
} | undefined;
|
|
305
|
+
targetObject?: string | undefined;
|
|
306
306
|
ast?: any;
|
|
307
307
|
ambiguities?: {
|
|
308
308
|
type: string;
|
|
@@ -316,12 +316,12 @@ export declare const NLQParseResultSchema: z.ZodObject<{
|
|
|
316
316
|
}[] | undefined;
|
|
317
317
|
}, {
|
|
318
318
|
confidence: number;
|
|
319
|
-
intent: "
|
|
319
|
+
intent: "sort" | "filter" | "select" | "update" | "delete" | "create" | "aggregate" | "compare" | "trend" | "insight";
|
|
320
320
|
originalQuery: string;
|
|
321
321
|
intentConfidence: number;
|
|
322
322
|
entities: {
|
|
323
|
-
text: string;
|
|
324
323
|
type: "object" | "function" | "value" | "field" | "operator" | "timeframe";
|
|
324
|
+
text: string;
|
|
325
325
|
confidence: number;
|
|
326
326
|
value?: any;
|
|
327
327
|
span?: [number, number] | undefined;
|
|
@@ -333,10 +333,9 @@ export declare const NLQParseResultSchema: z.ZodObject<{
|
|
|
333
333
|
naturalLanguage: string;
|
|
334
334
|
objectField: string;
|
|
335
335
|
}[] | undefined;
|
|
336
|
-
targetObject?: string | undefined;
|
|
337
336
|
timeframe?: {
|
|
338
|
-
text: string;
|
|
339
337
|
type: "absolute" | "relative";
|
|
338
|
+
text: string;
|
|
340
339
|
start?: string | undefined;
|
|
341
340
|
end?: string | undefined;
|
|
342
341
|
relative?: {
|
|
@@ -345,6 +344,7 @@ export declare const NLQParseResultSchema: z.ZodObject<{
|
|
|
345
344
|
direction?: "past" | "future" | "current" | undefined;
|
|
346
345
|
} | undefined;
|
|
347
346
|
} | undefined;
|
|
347
|
+
targetObject?: string | undefined;
|
|
348
348
|
ast?: any;
|
|
349
349
|
ambiguities?: {
|
|
350
350
|
type: string;
|
|
@@ -379,37 +379,37 @@ export declare const NLQRequestSchema: z.ZodObject<{
|
|
|
379
379
|
}, "strip", z.ZodTypeAny, {
|
|
380
380
|
timestamp: string;
|
|
381
381
|
query: string;
|
|
382
|
-
intent?: "
|
|
382
|
+
intent?: "sort" | "filter" | "select" | "update" | "delete" | "create" | "aggregate" | "compare" | "trend" | "insight" | undefined;
|
|
383
383
|
}, {
|
|
384
384
|
timestamp: string;
|
|
385
385
|
query: string;
|
|
386
|
-
intent?: "
|
|
386
|
+
intent?: "sort" | "filter" | "select" | "update" | "delete" | "create" | "aggregate" | "compare" | "trend" | "insight" | undefined;
|
|
387
387
|
}>, "many">>;
|
|
388
388
|
/** Preferences */
|
|
389
389
|
defaultLimit: z.ZodDefault<z.ZodNumber>;
|
|
390
390
|
timezone: z.ZodDefault<z.ZodString>;
|
|
391
391
|
locale: z.ZodDefault<z.ZodString>;
|
|
392
392
|
}, "strip", z.ZodTypeAny, {
|
|
393
|
-
locale: string;
|
|
394
393
|
timezone: string;
|
|
394
|
+
locale: string;
|
|
395
395
|
defaultLimit: number;
|
|
396
396
|
userId?: string | undefined;
|
|
397
397
|
conversationHistory?: {
|
|
398
398
|
timestamp: string;
|
|
399
399
|
query: string;
|
|
400
|
-
intent?: "
|
|
400
|
+
intent?: "sort" | "filter" | "select" | "update" | "delete" | "create" | "aggregate" | "compare" | "trend" | "insight" | undefined;
|
|
401
401
|
}[] | undefined;
|
|
402
402
|
userRole?: string | undefined;
|
|
403
403
|
currentObject?: string | undefined;
|
|
404
404
|
currentRecordId?: string | undefined;
|
|
405
405
|
}, {
|
|
406
406
|
userId?: string | undefined;
|
|
407
|
-
locale?: string | undefined;
|
|
408
407
|
timezone?: string | undefined;
|
|
408
|
+
locale?: string | undefined;
|
|
409
409
|
conversationHistory?: {
|
|
410
410
|
timestamp: string;
|
|
411
411
|
query: string;
|
|
412
|
-
intent?: "
|
|
412
|
+
intent?: "sort" | "filter" | "select" | "update" | "delete" | "create" | "aggregate" | "compare" | "trend" | "insight" | undefined;
|
|
413
413
|
}[] | undefined;
|
|
414
414
|
userRole?: string | undefined;
|
|
415
415
|
currentObject?: string | undefined;
|
|
@@ -430,14 +430,14 @@ export declare const NLQRequestSchema: z.ZodObject<{
|
|
|
430
430
|
minConfidence: number;
|
|
431
431
|
executeQuery: boolean;
|
|
432
432
|
context?: {
|
|
433
|
-
locale: string;
|
|
434
433
|
timezone: string;
|
|
434
|
+
locale: string;
|
|
435
435
|
defaultLimit: number;
|
|
436
436
|
userId?: string | undefined;
|
|
437
437
|
conversationHistory?: {
|
|
438
438
|
timestamp: string;
|
|
439
439
|
query: string;
|
|
440
|
-
intent?: "
|
|
440
|
+
intent?: "sort" | "filter" | "select" | "update" | "delete" | "create" | "aggregate" | "compare" | "trend" | "insight" | undefined;
|
|
441
441
|
}[] | undefined;
|
|
442
442
|
userRole?: string | undefined;
|
|
443
443
|
currentObject?: string | undefined;
|
|
@@ -448,12 +448,12 @@ export declare const NLQRequestSchema: z.ZodObject<{
|
|
|
448
448
|
query: string;
|
|
449
449
|
context?: {
|
|
450
450
|
userId?: string | undefined;
|
|
451
|
-
locale?: string | undefined;
|
|
452
451
|
timezone?: string | undefined;
|
|
452
|
+
locale?: string | undefined;
|
|
453
453
|
conversationHistory?: {
|
|
454
454
|
timestamp: string;
|
|
455
455
|
query: string;
|
|
456
|
-
intent?: "
|
|
456
|
+
intent?: "sort" | "filter" | "select" | "update" | "delete" | "create" | "aggregate" | "compare" | "trend" | "insight" | undefined;
|
|
457
457
|
}[] | undefined;
|
|
458
458
|
userRole?: string | undefined;
|
|
459
459
|
currentObject?: string | undefined;
|
|
@@ -485,14 +485,14 @@ export declare const NLQResponseSchema: z.ZodObject<{
|
|
|
485
485
|
confidence: z.ZodNumber;
|
|
486
486
|
span: z.ZodOptional<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
|
|
487
487
|
}, "strip", z.ZodTypeAny, {
|
|
488
|
-
text: string;
|
|
489
488
|
type: "object" | "function" | "value" | "field" | "operator" | "timeframe";
|
|
489
|
+
text: string;
|
|
490
490
|
confidence: number;
|
|
491
491
|
value?: any;
|
|
492
492
|
span?: [number, number] | undefined;
|
|
493
493
|
}, {
|
|
494
|
-
text: string;
|
|
495
494
|
type: "object" | "function" | "value" | "field" | "operator" | "timeframe";
|
|
495
|
+
text: string;
|
|
496
496
|
confidence: number;
|
|
497
497
|
value?: any;
|
|
498
498
|
span?: [number, number] | undefined;
|
|
@@ -538,8 +538,8 @@ export declare const NLQResponseSchema: z.ZodObject<{
|
|
|
538
538
|
}>>;
|
|
539
539
|
text: z.ZodString;
|
|
540
540
|
}, "strip", z.ZodTypeAny, {
|
|
541
|
-
text: string;
|
|
542
541
|
type: "absolute" | "relative";
|
|
542
|
+
text: string;
|
|
543
543
|
start?: string | undefined;
|
|
544
544
|
end?: string | undefined;
|
|
545
545
|
relative?: {
|
|
@@ -548,8 +548,8 @@ export declare const NLQResponseSchema: z.ZodObject<{
|
|
|
548
548
|
direction: "past" | "future" | "current";
|
|
549
549
|
} | undefined;
|
|
550
550
|
}, {
|
|
551
|
-
text: string;
|
|
552
551
|
type: "absolute" | "relative";
|
|
552
|
+
text: string;
|
|
553
553
|
start?: string | undefined;
|
|
554
554
|
end?: string | undefined;
|
|
555
555
|
relative?: {
|
|
@@ -591,12 +591,12 @@ export declare const NLQResponseSchema: z.ZodObject<{
|
|
|
591
591
|
}>, "many">>;
|
|
592
592
|
}, "strip", z.ZodTypeAny, {
|
|
593
593
|
confidence: number;
|
|
594
|
-
intent: "
|
|
594
|
+
intent: "sort" | "filter" | "select" | "update" | "delete" | "create" | "aggregate" | "compare" | "trend" | "insight";
|
|
595
595
|
originalQuery: string;
|
|
596
596
|
intentConfidence: number;
|
|
597
597
|
entities: {
|
|
598
|
-
text: string;
|
|
599
598
|
type: "object" | "function" | "value" | "field" | "operator" | "timeframe";
|
|
599
|
+
text: string;
|
|
600
600
|
confidence: number;
|
|
601
601
|
value?: any;
|
|
602
602
|
span?: [number, number] | undefined;
|
|
@@ -608,10 +608,9 @@ export declare const NLQResponseSchema: z.ZodObject<{
|
|
|
608
608
|
naturalLanguage: string;
|
|
609
609
|
objectField: string;
|
|
610
610
|
}[] | undefined;
|
|
611
|
-
targetObject?: string | undefined;
|
|
612
611
|
timeframe?: {
|
|
613
|
-
text: string;
|
|
614
612
|
type: "absolute" | "relative";
|
|
613
|
+
text: string;
|
|
615
614
|
start?: string | undefined;
|
|
616
615
|
end?: string | undefined;
|
|
617
616
|
relative?: {
|
|
@@ -620,6 +619,7 @@ export declare const NLQResponseSchema: z.ZodObject<{
|
|
|
620
619
|
direction: "past" | "future" | "current";
|
|
621
620
|
} | undefined;
|
|
622
621
|
} | undefined;
|
|
622
|
+
targetObject?: string | undefined;
|
|
623
623
|
ast?: any;
|
|
624
624
|
ambiguities?: {
|
|
625
625
|
type: string;
|
|
@@ -633,12 +633,12 @@ export declare const NLQResponseSchema: z.ZodObject<{
|
|
|
633
633
|
}[] | undefined;
|
|
634
634
|
}, {
|
|
635
635
|
confidence: number;
|
|
636
|
-
intent: "
|
|
636
|
+
intent: "sort" | "filter" | "select" | "update" | "delete" | "create" | "aggregate" | "compare" | "trend" | "insight";
|
|
637
637
|
originalQuery: string;
|
|
638
638
|
intentConfidence: number;
|
|
639
639
|
entities: {
|
|
640
|
-
text: string;
|
|
641
640
|
type: "object" | "function" | "value" | "field" | "operator" | "timeframe";
|
|
641
|
+
text: string;
|
|
642
642
|
confidence: number;
|
|
643
643
|
value?: any;
|
|
644
644
|
span?: [number, number] | undefined;
|
|
@@ -650,10 +650,9 @@ export declare const NLQResponseSchema: z.ZodObject<{
|
|
|
650
650
|
naturalLanguage: string;
|
|
651
651
|
objectField: string;
|
|
652
652
|
}[] | undefined;
|
|
653
|
-
targetObject?: string | undefined;
|
|
654
653
|
timeframe?: {
|
|
655
|
-
text: string;
|
|
656
654
|
type: "absolute" | "relative";
|
|
655
|
+
text: string;
|
|
657
656
|
start?: string | undefined;
|
|
658
657
|
end?: string | undefined;
|
|
659
658
|
relative?: {
|
|
@@ -662,6 +661,7 @@ export declare const NLQResponseSchema: z.ZodObject<{
|
|
|
662
661
|
direction?: "past" | "future" | "current" | undefined;
|
|
663
662
|
} | undefined;
|
|
664
663
|
} | undefined;
|
|
664
|
+
targetObject?: string | undefined;
|
|
665
665
|
ast?: any;
|
|
666
666
|
ambiguities?: {
|
|
667
667
|
type: string;
|
|
@@ -685,12 +685,12 @@ export declare const NLQResponseSchema: z.ZodObject<{
|
|
|
685
685
|
}, "strip", z.ZodTypeAny, {
|
|
686
686
|
parseResult: {
|
|
687
687
|
confidence: number;
|
|
688
|
-
intent: "
|
|
688
|
+
intent: "sort" | "filter" | "select" | "update" | "delete" | "create" | "aggregate" | "compare" | "trend" | "insight";
|
|
689
689
|
originalQuery: string;
|
|
690
690
|
intentConfidence: number;
|
|
691
691
|
entities: {
|
|
692
|
-
text: string;
|
|
693
692
|
type: "object" | "function" | "value" | "field" | "operator" | "timeframe";
|
|
693
|
+
text: string;
|
|
694
694
|
confidence: number;
|
|
695
695
|
value?: any;
|
|
696
696
|
span?: [number, number] | undefined;
|
|
@@ -702,10 +702,9 @@ export declare const NLQResponseSchema: z.ZodObject<{
|
|
|
702
702
|
naturalLanguage: string;
|
|
703
703
|
objectField: string;
|
|
704
704
|
}[] | undefined;
|
|
705
|
-
targetObject?: string | undefined;
|
|
706
705
|
timeframe?: {
|
|
707
|
-
text: string;
|
|
708
706
|
type: "absolute" | "relative";
|
|
707
|
+
text: string;
|
|
709
708
|
start?: string | undefined;
|
|
710
709
|
end?: string | undefined;
|
|
711
710
|
relative?: {
|
|
@@ -714,6 +713,7 @@ export declare const NLQResponseSchema: z.ZodObject<{
|
|
|
714
713
|
direction: "past" | "future" | "current";
|
|
715
714
|
} | undefined;
|
|
716
715
|
} | undefined;
|
|
716
|
+
targetObject?: string | undefined;
|
|
717
717
|
ast?: any;
|
|
718
718
|
ambiguities?: {
|
|
719
719
|
type: string;
|
|
@@ -734,12 +734,12 @@ export declare const NLQResponseSchema: z.ZodObject<{
|
|
|
734
734
|
}, {
|
|
735
735
|
parseResult: {
|
|
736
736
|
confidence: number;
|
|
737
|
-
intent: "
|
|
737
|
+
intent: "sort" | "filter" | "select" | "update" | "delete" | "create" | "aggregate" | "compare" | "trend" | "insight";
|
|
738
738
|
originalQuery: string;
|
|
739
739
|
intentConfidence: number;
|
|
740
740
|
entities: {
|
|
741
|
-
text: string;
|
|
742
741
|
type: "object" | "function" | "value" | "field" | "operator" | "timeframe";
|
|
742
|
+
text: string;
|
|
743
743
|
confidence: number;
|
|
744
744
|
value?: any;
|
|
745
745
|
span?: [number, number] | undefined;
|
|
@@ -751,10 +751,9 @@ export declare const NLQResponseSchema: z.ZodObject<{
|
|
|
751
751
|
naturalLanguage: string;
|
|
752
752
|
objectField: string;
|
|
753
753
|
}[] | undefined;
|
|
754
|
-
targetObject?: string | undefined;
|
|
755
754
|
timeframe?: {
|
|
756
|
-
text: string;
|
|
757
755
|
type: "absolute" | "relative";
|
|
756
|
+
text: string;
|
|
758
757
|
start?: string | undefined;
|
|
759
758
|
end?: string | undefined;
|
|
760
759
|
relative?: {
|
|
@@ -763,6 +762,7 @@ export declare const NLQResponseSchema: z.ZodObject<{
|
|
|
763
762
|
direction?: "past" | "future" | "current" | undefined;
|
|
764
763
|
} | undefined;
|
|
765
764
|
} | undefined;
|
|
765
|
+
targetObject?: string | undefined;
|
|
766
766
|
ast?: any;
|
|
767
767
|
ambiguities?: {
|
|
768
768
|
type: string;
|
|
@@ -802,37 +802,37 @@ export declare const NLQTrainingExampleSchema: z.ZodObject<{
|
|
|
802
802
|
}, "strip", z.ZodTypeAny, {
|
|
803
803
|
timestamp: string;
|
|
804
804
|
query: string;
|
|
805
|
-
intent?: "
|
|
805
|
+
intent?: "sort" | "filter" | "select" | "update" | "delete" | "create" | "aggregate" | "compare" | "trend" | "insight" | undefined;
|
|
806
806
|
}, {
|
|
807
807
|
timestamp: string;
|
|
808
808
|
query: string;
|
|
809
|
-
intent?: "
|
|
809
|
+
intent?: "sort" | "filter" | "select" | "update" | "delete" | "create" | "aggregate" | "compare" | "trend" | "insight" | undefined;
|
|
810
810
|
}>, "many">>;
|
|
811
811
|
/** Preferences */
|
|
812
812
|
defaultLimit: z.ZodDefault<z.ZodNumber>;
|
|
813
813
|
timezone: z.ZodDefault<z.ZodString>;
|
|
814
814
|
locale: z.ZodDefault<z.ZodString>;
|
|
815
815
|
}, "strip", z.ZodTypeAny, {
|
|
816
|
-
locale: string;
|
|
817
816
|
timezone: string;
|
|
817
|
+
locale: string;
|
|
818
818
|
defaultLimit: number;
|
|
819
819
|
userId?: string | undefined;
|
|
820
820
|
conversationHistory?: {
|
|
821
821
|
timestamp: string;
|
|
822
822
|
query: string;
|
|
823
|
-
intent?: "
|
|
823
|
+
intent?: "sort" | "filter" | "select" | "update" | "delete" | "create" | "aggregate" | "compare" | "trend" | "insight" | undefined;
|
|
824
824
|
}[] | undefined;
|
|
825
825
|
userRole?: string | undefined;
|
|
826
826
|
currentObject?: string | undefined;
|
|
827
827
|
currentRecordId?: string | undefined;
|
|
828
828
|
}, {
|
|
829
829
|
userId?: string | undefined;
|
|
830
|
-
locale?: string | undefined;
|
|
831
830
|
timezone?: string | undefined;
|
|
831
|
+
locale?: string | undefined;
|
|
832
832
|
conversationHistory?: {
|
|
833
833
|
timestamp: string;
|
|
834
834
|
query: string;
|
|
835
|
-
intent?: "
|
|
835
|
+
intent?: "sort" | "filter" | "select" | "update" | "delete" | "create" | "aggregate" | "compare" | "trend" | "insight" | undefined;
|
|
836
836
|
}[] | undefined;
|
|
837
837
|
userRole?: string | undefined;
|
|
838
838
|
currentObject?: string | undefined;
|
|
@@ -849,45 +849,45 @@ export declare const NLQTrainingExampleSchema: z.ZodObject<{
|
|
|
849
849
|
notes: z.ZodOptional<z.ZodString>;
|
|
850
850
|
}, "strip", z.ZodTypeAny, {
|
|
851
851
|
query: string;
|
|
852
|
-
expectedIntent: "
|
|
852
|
+
expectedIntent: "sort" | "filter" | "select" | "update" | "delete" | "create" | "aggregate" | "compare" | "trend" | "insight";
|
|
853
|
+
tags?: string[] | undefined;
|
|
854
|
+
category?: string | undefined;
|
|
853
855
|
context?: {
|
|
854
|
-
locale: string;
|
|
855
856
|
timezone: string;
|
|
857
|
+
locale: string;
|
|
856
858
|
defaultLimit: number;
|
|
857
859
|
userId?: string | undefined;
|
|
858
860
|
conversationHistory?: {
|
|
859
861
|
timestamp: string;
|
|
860
862
|
query: string;
|
|
861
|
-
intent?: "
|
|
863
|
+
intent?: "sort" | "filter" | "select" | "update" | "delete" | "create" | "aggregate" | "compare" | "trend" | "insight" | undefined;
|
|
862
864
|
}[] | undefined;
|
|
863
865
|
userRole?: string | undefined;
|
|
864
866
|
currentObject?: string | undefined;
|
|
865
867
|
currentRecordId?: string | undefined;
|
|
866
868
|
} | undefined;
|
|
867
|
-
tags?: string[] | undefined;
|
|
868
|
-
category?: string | undefined;
|
|
869
869
|
expectedObject?: string | undefined;
|
|
870
870
|
expectedAST?: any;
|
|
871
871
|
notes?: string | undefined;
|
|
872
872
|
}, {
|
|
873
873
|
query: string;
|
|
874
|
-
expectedIntent: "
|
|
874
|
+
expectedIntent: "sort" | "filter" | "select" | "update" | "delete" | "create" | "aggregate" | "compare" | "trend" | "insight";
|
|
875
|
+
tags?: string[] | undefined;
|
|
876
|
+
category?: string | undefined;
|
|
875
877
|
context?: {
|
|
876
878
|
userId?: string | undefined;
|
|
877
|
-
locale?: string | undefined;
|
|
878
879
|
timezone?: string | undefined;
|
|
880
|
+
locale?: string | undefined;
|
|
879
881
|
conversationHistory?: {
|
|
880
882
|
timestamp: string;
|
|
881
883
|
query: string;
|
|
882
|
-
intent?: "
|
|
884
|
+
intent?: "sort" | "filter" | "select" | "update" | "delete" | "create" | "aggregate" | "compare" | "trend" | "insight" | undefined;
|
|
883
885
|
}[] | undefined;
|
|
884
886
|
userRole?: string | undefined;
|
|
885
887
|
currentObject?: string | undefined;
|
|
886
888
|
currentRecordId?: string | undefined;
|
|
887
889
|
defaultLimit?: number | undefined;
|
|
888
890
|
} | undefined;
|
|
889
|
-
tags?: string[] | undefined;
|
|
890
|
-
category?: string | undefined;
|
|
891
891
|
expectedObject?: string | undefined;
|
|
892
892
|
expectedAST?: any;
|
|
893
893
|
notes?: string | undefined;
|
|
@@ -1068,8 +1068,8 @@ export declare const QueryTemplateSchema: z.ZodObject<{
|
|
|
1068
1068
|
required: z.ZodDefault<z.ZodBoolean>;
|
|
1069
1069
|
}, "strip", z.ZodTypeAny, {
|
|
1070
1070
|
type: "object" | "value" | "field" | "timeframe";
|
|
1071
|
-
name: string;
|
|
1072
1071
|
required: boolean;
|
|
1072
|
+
name: string;
|
|
1073
1073
|
}, {
|
|
1074
1074
|
type: "object" | "value" | "field" | "timeframe";
|
|
1075
1075
|
name: string;
|
|
@@ -1085,12 +1085,12 @@ export declare const QueryTemplateSchema: z.ZodObject<{
|
|
|
1085
1085
|
label: string;
|
|
1086
1086
|
name: string;
|
|
1087
1087
|
id: string;
|
|
1088
|
+
pattern: string;
|
|
1088
1089
|
variables: {
|
|
1089
1090
|
type: "object" | "value" | "field" | "timeframe";
|
|
1090
|
-
name: string;
|
|
1091
1091
|
required: boolean;
|
|
1092
|
+
name: string;
|
|
1092
1093
|
}[];
|
|
1093
|
-
pattern: string;
|
|
1094
1094
|
tags?: string[] | undefined;
|
|
1095
1095
|
category?: string | undefined;
|
|
1096
1096
|
examples?: string[] | undefined;
|
|
@@ -1099,12 +1099,12 @@ export declare const QueryTemplateSchema: z.ZodObject<{
|
|
|
1099
1099
|
label: string;
|
|
1100
1100
|
name: string;
|
|
1101
1101
|
id: string;
|
|
1102
|
+
pattern: string;
|
|
1102
1103
|
variables: {
|
|
1103
1104
|
type: "object" | "value" | "field" | "timeframe";
|
|
1104
1105
|
name: string;
|
|
1105
1106
|
required?: boolean | undefined;
|
|
1106
1107
|
}[];
|
|
1107
|
-
pattern: string;
|
|
1108
1108
|
tags?: string[] | undefined;
|
|
1109
1109
|
category?: string | undefined;
|
|
1110
1110
|
examples?: string[] | undefined;
|