@objectstack/spec 0.2.0 → 0.3.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 +127 -5
- package/dist/ai/conversation.zod.d.ts +1059 -0
- package/dist/ai/conversation.zod.d.ts.map +1 -0
- package/dist/ai/conversation.zod.js +248 -0
- package/dist/ai/cost.zod.d.ts +2025 -0
- package/dist/ai/cost.zod.d.ts.map +1 -0
- package/dist/ai/cost.zod.js +324 -0
- package/dist/ai/index.d.ts +22 -0
- package/dist/ai/index.d.ts.map +1 -0
- package/dist/ai/index.js +37 -0
- package/dist/ai/model-registry.zod.d.ts +1389 -0
- package/dist/ai/model-registry.zod.d.ts.map +1 -0
- package/dist/ai/model-registry.zod.js +164 -0
- package/dist/ai/nlq.zod.d.ts +1126 -0
- package/dist/ai/nlq.zod.d.ts.map +1 -0
- package/dist/ai/nlq.zod.js +246 -0
- package/dist/ai/predictive.zod.d.ts +838 -0
- package/dist/ai/predictive.zod.d.ts.map +1 -0
- package/dist/ai/predictive.zod.js +244 -0
- package/dist/ai/rag-pipeline.zod.d.ts +1034 -0
- package/dist/ai/rag-pipeline.zod.d.ts.map +1 -0
- package/dist/ai/rag-pipeline.zod.js +244 -0
- package/dist/ai/workflow-automation.zod.d.ts +590 -0
- package/dist/ai/workflow-automation.zod.d.ts.map +1 -0
- package/dist/ai/workflow-automation.zod.js +197 -0
- package/dist/api/contract.zod.d.ts +22 -22
- package/dist/api/index.d.ts +9 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +24 -0
- package/dist/data/field.zod.d.ts +409 -4
- package/dist/data/field.zod.d.ts.map +1 -1
- package/dist/data/field.zod.js +28 -2
- package/dist/data/index.d.ts +21 -0
- package/dist/data/index.d.ts.map +1 -0
- package/dist/data/index.js +36 -0
- package/dist/data/mapping.zod.d.ts +6 -6
- package/dist/data/object.zod.d.ts +80 -10
- package/dist/data/object.zod.d.ts.map +1 -1
- package/dist/data/query.zod.d.ts +386 -3
- package/dist/data/query.zod.d.ts.map +1 -1
- package/dist/data/query.zod.js +386 -3
- package/dist/data/validation.zod.d.ts +349 -0
- package/dist/data/validation.zod.d.ts.map +1 -1
- package/dist/data/validation.zod.js +395 -0
- package/dist/data/workflow.zod.d.ts +809 -18
- package/dist/data/workflow.zod.d.ts.map +1 -1
- package/dist/data/workflow.zod.js +115 -7
- package/dist/index.d.ts +36 -41
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +64 -49
- package/dist/system/api.zod.d.ts +4 -4
- package/dist/system/audit.zod.d.ts +1172 -0
- package/dist/system/audit.zod.d.ts.map +1 -0
- package/dist/system/audit.zod.js +596 -0
- package/dist/system/auth-protocol.d.ts +175 -0
- package/dist/system/auth-protocol.d.ts.map +1 -0
- package/dist/system/auth-protocol.js +60 -0
- package/dist/system/auth.zod.d.ts +1089 -57
- package/dist/system/auth.zod.d.ts.map +1 -1
- package/dist/system/auth.zod.js +135 -1
- package/dist/system/driver.zod.d.ts +4 -4
- package/dist/system/events.zod.d.ts +177 -0
- package/dist/system/events.zod.d.ts.map +1 -0
- package/dist/system/events.zod.js +51 -0
- package/dist/system/identity.zod.d.ts +234 -180
- package/dist/system/identity.zod.d.ts.map +1 -1
- package/dist/system/identity.zod.js +168 -51
- package/dist/system/index.d.ts +33 -0
- package/dist/system/index.d.ts.map +1 -0
- package/dist/system/index.js +48 -0
- package/dist/system/job.zod.d.ts +237 -0
- package/dist/system/job.zod.d.ts.map +1 -0
- package/dist/system/job.zod.js +82 -0
- package/dist/system/organization.zod.d.ts +179 -0
- package/dist/system/organization.zod.d.ts.map +1 -0
- package/dist/system/organization.zod.js +129 -0
- package/dist/system/realtime.zod.d.ts +135 -0
- package/dist/system/realtime.zod.d.ts.map +1 -0
- package/dist/system/realtime.zod.js +83 -0
- package/dist/system/tenant.zod.d.ts +1151 -0
- package/dist/system/tenant.zod.d.ts.map +1 -0
- package/dist/system/tenant.zod.js +498 -0
- package/dist/system/webhook.zod.d.ts +2 -2
- package/dist/ui/action.zod.d.ts +10 -10
- package/dist/ui/index.d.ts +17 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +32 -0
- package/dist/ui/theme.zod.d.ts +18 -18
- package/dist/ui/widget.zod.d.ts +40 -5
- package/dist/ui/widget.zod.d.ts.map +1 -1
- package/json-schema/README.md +127 -0
- package/json-schema/ai/AITask.json +123 -0
- package/json-schema/ai/AITaskType.json +21 -0
- package/json-schema/ai/AIWorkflowAutomation.json +379 -0
- package/json-schema/ai/AIWorkflowExecutionResult.json +105 -0
- package/json-schema/ai/AIWorkflowTrigger.json +18 -0
- package/json-schema/ai/BatchAIWorkflowExecution.json +48 -0
- package/json-schema/ai/BillingPeriod.json +18 -0
- package/json-schema/ai/BudgetLimit.json +111 -0
- package/json-schema/ai/BudgetStatus.json +91 -0
- package/json-schema/ai/BudgetType.json +17 -0
- package/json-schema/ai/ChunkingStrategy.json +133 -0
- package/json-schema/ai/ConversationAnalytics.json +86 -0
- package/json-schema/ai/ConversationContext.json +48 -0
- package/json-schema/ai/ConversationMessage.json +209 -0
- package/json-schema/ai/ConversationSession.json +458 -0
- package/json-schema/ai/ConversationSummary.json +73 -0
- package/json-schema/ai/CostAlert.json +107 -0
- package/json-schema/ai/CostAlertType.json +16 -0
- package/json-schema/ai/CostAnalytics.json +589 -0
- package/json-schema/ai/CostBreakdownDimension.json +20 -0
- package/json-schema/ai/CostBreakdownEntry.json +60 -0
- package/json-schema/ai/CostEntry.json +106 -0
- package/json-schema/ai/CostMetricType.json +17 -0
- package/json-schema/ai/CostOptimizationRecommendation.json +100 -0
- package/json-schema/ai/CostQueryFilters.json +112 -0
- package/json-schema/ai/CostReport.json +964 -0
- package/json-schema/ai/DocumentChunk.json +97 -0
- package/json-schema/ai/DocumentLoaderConfig.json +69 -0
- package/json-schema/ai/DocumentMetadata.json +61 -0
- package/json-schema/ai/EmbeddingModel.json +57 -0
- package/json-schema/ai/Entity.json +55 -0
- package/json-schema/ai/EvaluationMetrics.json +64 -0
- package/json-schema/ai/FieldSynonymConfig.json +39 -0
- package/json-schema/ai/FunctionCall.json +28 -0
- package/json-schema/ai/Hyperparameters.json +80 -0
- package/json-schema/ai/MessageContent.json +46 -0
- package/json-schema/ai/MessageContentType.json +16 -0
- package/json-schema/ai/MessagePruningEvent.json +92 -0
- package/json-schema/ai/MessageRole.json +16 -0
- package/json-schema/ai/ModelCapability.json +47 -0
- package/json-schema/ai/ModelConfig.json +181 -0
- package/json-schema/ai/ModelDrift.json +73 -0
- package/json-schema/ai/ModelFeature.json +71 -0
- package/json-schema/ai/ModelLimits.json +45 -0
- package/json-schema/ai/ModelPricing.json +28 -0
- package/json-schema/ai/ModelProvider.json +19 -0
- package/json-schema/ai/ModelRegistry.json +427 -0
- package/json-schema/ai/ModelRegistryEntry.json +239 -0
- package/json-schema/ai/ModelSelectionCriteria.json +50 -0
- package/json-schema/ai/NLQAnalytics.json +106 -0
- package/json-schema/ai/NLQFieldMapping.json +40 -0
- package/json-schema/ai/NLQModelConfig.json +78 -0
- package/json-schema/ai/NLQParseResult.json +252 -0
- package/json-schema/ai/NLQRequest.json +110 -0
- package/json-schema/ai/NLQResponse.json +288 -0
- package/json-schema/ai/NLQTrainingExample.json +120 -0
- package/json-schema/ai/PostProcessingAction.json +41 -0
- package/json-schema/ai/PredictionRequest.json +39 -0
- package/json-schema/ai/PredictionResult.json +82 -0
- package/json-schema/ai/PredictiveModel.json +445 -0
- package/json-schema/ai/PredictiveModelType.json +18 -0
- package/json-schema/ai/PromptTemplate.json +163 -0
- package/json-schema/ai/PromptVariable.json +56 -0
- package/json-schema/ai/QueryContext.json +72 -0
- package/json-schema/ai/QueryIntent.json +21 -0
- package/json-schema/ai/QueryTemplate.json +81 -0
- package/json-schema/ai/RAGPipelineConfig.json +552 -0
- package/json-schema/ai/RAGPipelineStatus.json +66 -0
- package/json-schema/ai/RAGQueryRequest.json +64 -0
- package/json-schema/ai/RAGQueryResponse.json +108 -0
- package/json-schema/ai/RerankingConfig.json +34 -0
- package/json-schema/ai/RetrievalStrategy.json +121 -0
- package/json-schema/ai/Timeframe.json +68 -0
- package/json-schema/ai/TokenBudgetConfig.json +92 -0
- package/json-schema/ai/TokenBudgetStrategy.json +16 -0
- package/json-schema/ai/TokenUsageStats.json +66 -0
- package/json-schema/ai/ToolCall.json +49 -0
- package/json-schema/ai/TrainingConfig.json +88 -0
- package/json-schema/ai/VectorStoreConfig.json +82 -0
- package/json-schema/ai/VectorStoreProvider.json +21 -0
- package/json-schema/ai/WorkflowFieldCondition.json +33 -0
- package/json-schema/ai/WorkflowSchedule.json +51 -0
- package/json-schema/data/CustomScriptAction.json +49 -0
- package/json-schema/{Field.json → data/Field.json} +50 -1
- package/json-schema/{FieldType.json → data/FieldType.json} +4 -1
- package/json-schema/data/HttpCallAction.json +81 -0
- package/json-schema/{Object.json → data/Object.json} +50 -1
- package/json-schema/data/PushNotificationAction.json +59 -0
- package/json-schema/data/SlackMessageAction.json +45 -0
- package/json-schema/data/SmsNotificationAction.json +50 -0
- package/json-schema/data/TaskCreationAction.json +59 -0
- package/json-schema/data/TeamsMessageAction.json +45 -0
- package/json-schema/data/WebhookTriggerAction.json +58 -0
- package/json-schema/data/WorkflowAction.json +465 -0
- package/json-schema/data/WorkflowRule.json +509 -0
- package/json-schema/system/Account.json +87 -0
- package/json-schema/system/AuditConfig.json +587 -0
- package/json-schema/system/AuditEvent.json +232 -0
- package/json-schema/system/AuditEventActor.json +48 -0
- package/json-schema/system/AuditEventChange.json +25 -0
- package/json-schema/system/AuditEventFilter.json +127 -0
- package/json-schema/system/AuditEventSeverity.json +19 -0
- package/json-schema/system/AuditEventTarget.json +33 -0
- package/json-schema/system/AuditEventType.json +53 -0
- package/json-schema/system/AuditRetentionPolicy.json +73 -0
- package/json-schema/system/AuditStorageConfig.json +60 -0
- package/json-schema/{AuthConfig.json → system/AuthConfig.json} +235 -0
- package/json-schema/system/CronSchedule.json +29 -0
- package/json-schema/system/DatabaseLevelIsolationStrategy.json +139 -0
- package/json-schema/system/DatabaseMapping.json +48 -0
- package/json-schema/system/EnterpriseAuthConfig.json +172 -0
- package/json-schema/system/Event.json +52 -0
- package/json-schema/system/EventHandler.json +29 -0
- package/json-schema/system/EventMetadata.json +33 -0
- package/json-schema/system/EventPersistence.json +25 -0
- package/json-schema/system/EventRoute.json +27 -0
- package/json-schema/system/IntervalSchedule.json +25 -0
- package/json-schema/system/Invitation.json +69 -0
- package/json-schema/system/InvitationStatus.json +15 -0
- package/json-schema/system/Job.json +127 -0
- package/json-schema/system/JobExecution.json +49 -0
- package/json-schema/system/JobExecutionStatus.json +15 -0
- package/json-schema/{LDAPConfig.json → system/LDAPConfig.json} +22 -5
- package/json-schema/system/LevelIsolationStrategySchema.json +93 -0
- package/json-schema/system/Member.json +46 -0
- package/json-schema/{OIDCConfig.json → system/OIDCConfig.json} +18 -3
- package/json-schema/system/OnceSchedule.json +25 -0
- package/json-schema/system/Organization.json +52 -0
- package/json-schema/system/Presence.json +40 -0
- package/json-schema/system/PresenceStatus.json +14 -0
- package/json-schema/system/RealtimeAction.json +14 -0
- package/json-schema/system/RealtimeEvent.json +51 -0
- package/json-schema/system/RealtimeEventType.json +15 -0
- package/json-schema/system/RetryPolicy.json +30 -0
- package/json-schema/system/RowLevelIsolationStrategy.json +74 -0
- package/json-schema/{SAMLConfig.json → system/SAMLConfig.json} +17 -3
- package/json-schema/system/Schedule.json +71 -0
- package/json-schema/system/Session.json +63 -0
- package/json-schema/{StandardAuthProvider.json → system/StandardAuthProvider.json} +235 -0
- package/json-schema/system/Subscription.json +65 -0
- package/json-schema/system/SubscriptionEvent.json +32 -0
- package/json-schema/system/SuspiciousActivityRule.json +175 -0
- package/json-schema/system/Tenant.json +61 -0
- package/json-schema/system/TenantIsolationConfig.json +298 -0
- package/json-schema/system/TenantIsolationLevel.json +14 -0
- package/json-schema/system/TenantQuota.json +27 -0
- package/json-schema/system/TenantSecurityPolicy.json +115 -0
- package/json-schema/system/TransportProtocol.json +14 -0
- package/json-schema/system/User.json +51 -0
- package/json-schema/system/VerificationToken.json +36 -0
- package/json-schema/{Action.json → ui/Action.json} +4 -1
- package/json-schema/{ActionParam.json → ui/ActionParam.json} +4 -1
- package/json-schema/{FieldWidgetProps.json → ui/FieldWidgetProps.json} +50 -1
- package/package.json +38 -12
- package/json-schema/AuthProtocol.json +0 -17
- package/json-schema/AuthProvider.json +0 -171
- package/json-schema/AuthenticationConfig.json +0 -601
- package/json-schema/AuthenticationProvider.json +0 -617
- package/json-schema/MenuItem.json +0 -28
- package/json-schema/WorkflowAction.json +0 -84
- package/json-schema/WorkflowRule.json +0 -128
- /package/json-schema/{AIKnowledge.json → ai/AIKnowledge.json} +0 -0
- /package/json-schema/{AIModelConfig.json → ai/AIModelConfig.json} +0 -0
- /package/json-schema/{AITool.json → ai/AITool.json} +0 -0
- /package/json-schema/{Agent.json → ai/Agent.json} +0 -0
- /package/json-schema/{ApiError.json → api/ApiError.json} +0 -0
- /package/json-schema/{BaseResponse.json → api/BaseResponse.json} +0 -0
- /package/json-schema/{BulkRequest.json → api/BulkRequest.json} +0 -0
- /package/json-schema/{BulkResponse.json → api/BulkResponse.json} +0 -0
- /package/json-schema/{CreateRequest.json → api/CreateRequest.json} +0 -0
- /package/json-schema/{DeleteResponse.json → api/DeleteResponse.json} +0 -0
- /package/json-schema/{ExportRequest.json → api/ExportRequest.json} +0 -0
- /package/json-schema/{ListRecordResponse.json → api/ListRecordResponse.json} +0 -0
- /package/json-schema/{ModificationResult.json → api/ModificationResult.json} +0 -0
- /package/json-schema/{RecordData.json → api/RecordData.json} +0 -0
- /package/json-schema/{SingleRecordResponse.json → api/SingleRecordResponse.json} +0 -0
- /package/json-schema/{UpdateRequest.json → api/UpdateRequest.json} +0 -0
- /package/json-schema/{Address.json → data/Address.json} +0 -0
- /package/json-schema/{AggregationFunction.json → data/AggregationFunction.json} +0 -0
- /package/json-schema/{AggregationNode.json → data/AggregationNode.json} +0 -0
- /package/json-schema/{AsyncValidation.json → data/AsyncValidation.json} +0 -0
- /package/json-schema/{ComparisonOperator.json → data/ComparisonOperator.json} +0 -0
- /package/json-schema/{ConditionalValidation.json → data/ConditionalValidation.json} +0 -0
- /package/json-schema/{CrossFieldValidation.json → data/CrossFieldValidation.json} +0 -0
- /package/json-schema/{CustomValidator.json → data/CustomValidator.json} +0 -0
- /package/json-schema/{Dataset.json → data/Dataset.json} +0 -0
- /package/json-schema/{DatasetMode.json → data/DatasetMode.json} +0 -0
- /package/json-schema/{EmailAlertAction.json → data/EmailAlertAction.json} +0 -0
- /package/json-schema/{EqualityOperator.json → data/EqualityOperator.json} +0 -0
- /package/json-schema/{FieldMapping.json → data/FieldMapping.json} +0 -0
- /package/json-schema/{FieldNode.json → data/FieldNode.json} +0 -0
- /package/json-schema/{FieldOperators.json → data/FieldOperators.json} +0 -0
- /package/json-schema/{FieldPermission.json → data/FieldPermission.json} +0 -0
- /package/json-schema/{FieldUpdateAction.json → data/FieldUpdateAction.json} +0 -0
- /package/json-schema/{FilterCondition.json → data/FilterCondition.json} +0 -0
- /package/json-schema/{FilterNode.json → data/FilterNode.json} +0 -0
- /package/json-schema/{FilterOperator.json → data/FilterOperator.json} +0 -0
- /package/json-schema/{Flow.json → data/Flow.json} +0 -0
- /package/json-schema/{FlowEdge.json → data/FlowEdge.json} +0 -0
- /package/json-schema/{FlowNode.json → data/FlowNode.json} +0 -0
- /package/json-schema/{FlowNodeAction.json → data/FlowNodeAction.json} +0 -0
- /package/json-schema/{FlowVariable.json → data/FlowVariable.json} +0 -0
- /package/json-schema/{FormatValidation.json → data/FormatValidation.json} +0 -0
- /package/json-schema/{Index.json → data/Index.json} +0 -0
- /package/json-schema/{JoinNode.json → data/JoinNode.json} +0 -0
- /package/json-schema/{JoinType.json → data/JoinType.json} +0 -0
- /package/json-schema/{LocationCoordinates.json → data/LocationCoordinates.json} +0 -0
- /package/json-schema/{LogicOperator.json → data/LogicOperator.json} +0 -0
- /package/json-schema/{Mapping.json → data/Mapping.json} +0 -0
- /package/json-schema/{NormalizedFilter.json → data/NormalizedFilter.json} +0 -0
- /package/json-schema/{OWDModel.json → data/OWDModel.json} +0 -0
- /package/json-schema/{ObjectCapabilities.json → data/ObjectCapabilities.json} +0 -0
- /package/json-schema/{ObjectPermission.json → data/ObjectPermission.json} +0 -0
- /package/json-schema/{PermissionSet.json → data/PermissionSet.json} +0 -0
- /package/json-schema/{Query.json → data/Query.json} +0 -0
- /package/json-schema/{QueryFilter.json → data/QueryFilter.json} +0 -0
- /package/json-schema/{RangeOperator.json → data/RangeOperator.json} +0 -0
- /package/json-schema/{ScriptValidation.json → data/ScriptValidation.json} +0 -0
- /package/json-schema/{SelectOption.json → data/SelectOption.json} +0 -0
- /package/json-schema/{SetOperator.json → data/SetOperator.json} +0 -0
- /package/json-schema/{SharingLevel.json → data/SharingLevel.json} +0 -0
- /package/json-schema/{SharingRule.json → data/SharingRule.json} +0 -0
- /package/json-schema/{SharingRuleType.json → data/SharingRuleType.json} +0 -0
- /package/json-schema/{SortNode.json → data/SortNode.json} +0 -0
- /package/json-schema/{SpecialOperator.json → data/SpecialOperator.json} +0 -0
- /package/json-schema/{StateMachineValidation.json → data/StateMachineValidation.json} +0 -0
- /package/json-schema/{StringOperator.json → data/StringOperator.json} +0 -0
- /package/json-schema/{TransformType.json → data/TransformType.json} +0 -0
- /package/json-schema/{Trigger.json → data/Trigger.json} +0 -0
- /package/json-schema/{TriggerAction.json → data/TriggerAction.json} +0 -0
- /package/json-schema/{TriggerContext.json → data/TriggerContext.json} +0 -0
- /package/json-schema/{TriggerTiming.json → data/TriggerTiming.json} +0 -0
- /package/json-schema/{UniquenessValidation.json → data/UniquenessValidation.json} +0 -0
- /package/json-schema/{ValidationRule.json → data/ValidationRule.json} +0 -0
- /package/json-schema/{WindowFunction.json → data/WindowFunction.json} +0 -0
- /package/json-schema/{WindowFunctionNode.json → data/WindowFunctionNode.json} +0 -0
- /package/json-schema/{WindowSpec.json → data/WindowSpec.json} +0 -0
- /package/json-schema/{WorkflowTriggerType.json → data/WorkflowTriggerType.json} +0 -0
- /package/json-schema/{AccountLinkingConfig.json → system/AccountLinkingConfig.json} +0 -0
- /package/json-schema/{ApiCapabilities.json → system/ApiCapabilities.json} +0 -0
- /package/json-schema/{ApiEndpoint.json → system/ApiEndpoint.json} +0 -0
- /package/json-schema/{ApiMapping.json → system/ApiMapping.json} +0 -0
- /package/json-schema/{ApiRoutes.json → system/ApiRoutes.json} +0 -0
- /package/json-schema/{AuditPolicy.json → system/AuditPolicy.json} +0 -0
- /package/json-schema/{AuthPluginConfig.json → system/AuthPluginConfig.json} +0 -0
- /package/json-schema/{AuthStrategy.json → system/AuthStrategy.json} +0 -0
- /package/json-schema/{CSRFConfig.json → system/CSRFConfig.json} +0 -0
- /package/json-schema/{DatabaseAdapter.json → system/DatabaseAdapter.json} +0 -0
- /package/json-schema/{Datasource.json → system/Datasource.json} +0 -0
- /package/json-schema/{DatasourceCapabilities.json → system/DatasourceCapabilities.json} +0 -0
- /package/json-schema/{Discovery.json → system/Discovery.json} +0 -0
- /package/json-schema/{DriverCapabilities.json → system/DriverCapabilities.json} +0 -0
- /package/json-schema/{DriverDefinition.json → system/DriverDefinition.json} +0 -0
- /package/json-schema/{DriverInterface.json → system/DriverInterface.json} +0 -0
- /package/json-schema/{DriverOptions.json → system/DriverOptions.json} +0 -0
- /package/json-schema/{DriverType.json → system/DriverType.json} +0 -0
- /package/json-schema/{EmailPasswordConfig.json → system/EmailPasswordConfig.json} +0 -0
- /package/json-schema/{Feature.json → system/Feature.json} +0 -0
- /package/json-schema/{HttpMethod.json → system/HttpMethod.json} +0 -0
- /package/json-schema/{I18nContext.json → system/I18nContext.json} +0 -0
- /package/json-schema/{License.json → system/License.json} +0 -0
- /package/json-schema/{Locale.json → system/Locale.json} +0 -0
- /package/json-schema/{Logger.json → system/Logger.json} +0 -0
- /package/json-schema/{MagicLinkConfig.json → system/MagicLinkConfig.json} +0 -0
- /package/json-schema/{Manifest.json → system/Manifest.json} +0 -0
- /package/json-schema/{MetricType.json → system/MetricType.json} +0 -0
- /package/json-schema/{NetworkPolicy.json → system/NetworkPolicy.json} +0 -0
- /package/json-schema/{OAuthProvider.json → system/OAuthProvider.json} +0 -0
- /package/json-schema/{ObjectQLClient.json → system/ObjectQLClient.json} +0 -0
- /package/json-schema/{PasskeyConfig.json → system/PasskeyConfig.json} +0 -0
- /package/json-schema/{PasswordPolicy.json → system/PasswordPolicy.json} +0 -0
- /package/json-schema/{Plan.json → system/Plan.json} +0 -0
- /package/json-schema/{Plugin.json → system/Plugin.json} +0 -0
- /package/json-schema/{PluginContext.json → system/PluginContext.json} +0 -0
- /package/json-schema/{PluginLifecycle.json → system/PluginLifecycle.json} +0 -0
- /package/json-schema/{Policy.json → system/Policy.json} +0 -0
- /package/json-schema/{RateLimit.json → system/RateLimit.json} +0 -0
- /package/json-schema/{RateLimitConfig.json → system/RateLimitConfig.json} +0 -0
- /package/json-schema/{Role.json → system/Role.json} +0 -0
- /package/json-schema/{Router.json → system/Router.json} +0 -0
- /package/json-schema/{Scheduler.json → system/Scheduler.json} +0 -0
- /package/json-schema/{ScopedStorage.json → system/ScopedStorage.json} +0 -0
- /package/json-schema/{SessionConfig.json → system/SessionConfig.json} +0 -0
- /package/json-schema/{SessionPolicy.json → system/SessionPolicy.json} +0 -0
- /package/json-schema/{SystemAPI.json → system/SystemAPI.json} +0 -0
- /package/json-schema/{Territory.json → system/Territory.json} +0 -0
- /package/json-schema/{TerritoryModel.json → system/TerritoryModel.json} +0 -0
- /package/json-schema/{TerritoryType.json → system/TerritoryType.json} +0 -0
- /package/json-schema/{TranslationBundle.json → system/TranslationBundle.json} +0 -0
- /package/json-schema/{TranslationData.json → system/TranslationData.json} +0 -0
- /package/json-schema/{TwoFactorConfig.json → system/TwoFactorConfig.json} +0 -0
- /package/json-schema/{UserFieldMapping.json → system/UserFieldMapping.json} +0 -0
- /package/json-schema/{Webhook.json → system/Webhook.json} +0 -0
- /package/json-schema/{WebhookReceiver.json → system/WebhookReceiver.json} +0 -0
- /package/json-schema/{WebhookTriggerType.json → system/WebhookTriggerType.json} +0 -0
- /package/json-schema/{Animation.json → ui/Animation.json} +0 -0
- /package/json-schema/{App.json → ui/App.json} +0 -0
- /package/json-schema/{AppBranding.json → ui/AppBranding.json} +0 -0
- /package/json-schema/{BorderRadius.json → ui/BorderRadius.json} +0 -0
- /package/json-schema/{Breakpoints.json → ui/Breakpoints.json} +0 -0
- /package/json-schema/{CalendarConfig.json → ui/CalendarConfig.json} +0 -0
- /package/json-schema/{ChartType.json → ui/ChartType.json} +0 -0
- /package/json-schema/{ColorPalette.json → ui/ColorPalette.json} +0 -0
- /package/json-schema/{Dashboard.json → ui/Dashboard.json} +0 -0
- /package/json-schema/{DashboardNavItem.json → ui/DashboardNavItem.json} +0 -0
- /package/json-schema/{DashboardWidget.json → ui/DashboardWidget.json} +0 -0
- /package/json-schema/{FormSection.json → ui/FormSection.json} +0 -0
- /package/json-schema/{FormView.json → ui/FormView.json} +0 -0
- /package/json-schema/{GanttConfig.json → ui/GanttConfig.json} +0 -0
- /package/json-schema/{GroupNavItem.json → ui/GroupNavItem.json} +0 -0
- /package/json-schema/{KanbanConfig.json → ui/KanbanConfig.json} +0 -0
- /package/json-schema/{ListView.json → ui/ListView.json} +0 -0
- /package/json-schema/{NavigationItem.json → ui/NavigationItem.json} +0 -0
- /package/json-schema/{ObjectNavItem.json → ui/ObjectNavItem.json} +0 -0
- /package/json-schema/{Page.json → ui/Page.json} +0 -0
- /package/json-schema/{PageComponent.json → ui/PageComponent.json} +0 -0
- /package/json-schema/{PageNavItem.json → ui/PageNavItem.json} +0 -0
- /package/json-schema/{PageRegion.json → ui/PageRegion.json} +0 -0
- /package/json-schema/{Report.json → ui/Report.json} +0 -0
- /package/json-schema/{ReportChart.json → ui/ReportChart.json} +0 -0
- /package/json-schema/{ReportColumn.json → ui/ReportColumn.json} +0 -0
- /package/json-schema/{ReportGrouping.json → ui/ReportGrouping.json} +0 -0
- /package/json-schema/{ReportType.json → ui/ReportType.json} +0 -0
- /package/json-schema/{Shadow.json → ui/Shadow.json} +0 -0
- /package/json-schema/{Spacing.json → ui/Spacing.json} +0 -0
- /package/json-schema/{Theme.json → ui/Theme.json} +0 -0
- /package/json-schema/{ThemeMode.json → ui/ThemeMode.json} +0 -0
- /package/json-schema/{Typography.json → ui/Typography.json} +0 -0
- /package/json-schema/{UrlNavItem.json → ui/UrlNavItem.json} +0 -0
- /package/json-schema/{View.json → ui/View.json} +0 -0
- /package/json-schema/{ZIndex.json → ui/ZIndex.json} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.zod.d.ts","sourceRoot":"","sources":["../../src/data/workflow.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,mBAAmB,uFAM9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;EAKlC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;EAKjC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"workflow.zod.d.ts","sourceRoot":"","sources":["../../src/data/workflow.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,mBAAmB,uFAM9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;EAKlC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;EAKjC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;EAOtC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;EAOnC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;EAOnC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAY/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;EASrC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWnC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUvC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;EAOnC,CAAC;AAEH;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAW/B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,kBAAkB;IAC7B,mBAAmB;;IAGnB,oBAAoB;;IAGpB,gCAAgC;;IAGhC;;;OAGG;;IAGH,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAGrC,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEpB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WorkflowRuleSchema = exports.WorkflowActionSchema = exports.EmailAlertActionSchema = exports.FieldUpdateActionSchema = exports.WorkflowTriggerType = void 0;
|
|
3
|
+
exports.WorkflowRuleSchema = exports.WorkflowActionSchema = exports.CustomScriptActionSchema = exports.PushNotificationActionSchema = exports.TaskCreationActionSchema = exports.WebhookTriggerActionSchema = exports.HttpCallActionSchema = exports.TeamsMessageActionSchema = exports.SlackMessageActionSchema = exports.SmsNotificationActionSchema = exports.EmailAlertActionSchema = exports.FieldUpdateActionSchema = exports.WorkflowTriggerType = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
/**
|
|
6
6
|
* Trigger events for workflow automation
|
|
@@ -30,17 +30,125 @@ exports.EmailAlertActionSchema = zod_1.z.object({
|
|
|
30
30
|
template: zod_1.z.string().describe('Email template ID/DevName'),
|
|
31
31
|
recipients: zod_1.z.array(zod_1.z.string()).describe('List of recipient emails or user IDs'),
|
|
32
32
|
});
|
|
33
|
+
/**
|
|
34
|
+
* Schema for Workflow SMS Notification Action
|
|
35
|
+
* Supports providers like Twilio, Vonage
|
|
36
|
+
*/
|
|
37
|
+
exports.SmsNotificationActionSchema = zod_1.z.object({
|
|
38
|
+
name: zod_1.z.string().describe('Action name'),
|
|
39
|
+
type: zod_1.z.literal('sms_notification'),
|
|
40
|
+
provider: zod_1.z.enum(['twilio', 'vonage']).describe('SMS provider'),
|
|
41
|
+
recipients: zod_1.z.array(zod_1.z.string()).describe('List of phone numbers or user field references'),
|
|
42
|
+
message: zod_1.z.string().describe('SMS message text or template'),
|
|
43
|
+
fromNumber: zod_1.z.string().optional().describe('Sender phone number (provider-specific)'),
|
|
44
|
+
});
|
|
45
|
+
/**
|
|
46
|
+
* Schema for Workflow Slack Message Action
|
|
47
|
+
*/
|
|
48
|
+
exports.SlackMessageActionSchema = zod_1.z.object({
|
|
49
|
+
name: zod_1.z.string().describe('Action name'),
|
|
50
|
+
type: zod_1.z.literal('slack_message'),
|
|
51
|
+
channel: zod_1.z.string().describe('Slack channel ID or name (#channel)'),
|
|
52
|
+
message: zod_1.z.string().describe('Message text with optional markdown'),
|
|
53
|
+
mentions: zod_1.z.array(zod_1.z.string()).optional().describe('User IDs or @username to mention'),
|
|
54
|
+
threadId: zod_1.z.string().optional().describe('Thread ID for replies'),
|
|
55
|
+
});
|
|
56
|
+
/**
|
|
57
|
+
* Schema for Workflow Teams Message Action
|
|
58
|
+
*/
|
|
59
|
+
exports.TeamsMessageActionSchema = zod_1.z.object({
|
|
60
|
+
name: zod_1.z.string().describe('Action name'),
|
|
61
|
+
type: zod_1.z.literal('teams_message'),
|
|
62
|
+
channel: zod_1.z.string().describe('Teams channel ID'),
|
|
63
|
+
message: zod_1.z.string().describe('Message text with optional markdown'),
|
|
64
|
+
mentions: zod_1.z.array(zod_1.z.string()).optional().describe('User IDs to mention'),
|
|
65
|
+
teamId: zod_1.z.string().optional().describe('Team ID (if not in default team)'),
|
|
66
|
+
});
|
|
67
|
+
/**
|
|
68
|
+
* Schema for Workflow HTTP Call Action
|
|
69
|
+
* REST API integration support
|
|
70
|
+
*/
|
|
71
|
+
exports.HttpCallActionSchema = zod_1.z.object({
|
|
72
|
+
name: zod_1.z.string().describe('Action name'),
|
|
73
|
+
type: zod_1.z.literal('http_call'),
|
|
74
|
+
url: zod_1.z.string().describe('Target URL'),
|
|
75
|
+
method: zod_1.z.enum(['GET', 'POST', 'PUT', 'PATCH', 'DELETE']).describe('HTTP method'),
|
|
76
|
+
headers: zod_1.z.record(zod_1.z.string()).optional().describe('Request headers'),
|
|
77
|
+
body: zod_1.z.any().optional().describe('Request body (object/string)'),
|
|
78
|
+
authentication: zod_1.z.object({
|
|
79
|
+
type: zod_1.z.enum(['none', 'basic', 'bearer', 'api_key', 'oauth2']),
|
|
80
|
+
credentials: zod_1.z.record(zod_1.z.string()).optional(),
|
|
81
|
+
}).optional().describe('Authentication configuration'),
|
|
82
|
+
timeout: zod_1.z.number().optional().describe('Request timeout in milliseconds'),
|
|
83
|
+
});
|
|
84
|
+
/**
|
|
85
|
+
* Schema for Workflow Webhook Trigger Action
|
|
86
|
+
*/
|
|
87
|
+
exports.WebhookTriggerActionSchema = zod_1.z.object({
|
|
88
|
+
name: zod_1.z.string().describe('Action name'),
|
|
89
|
+
type: zod_1.z.literal('webhook_trigger'),
|
|
90
|
+
url: zod_1.z.string().describe('Webhook URL to call'),
|
|
91
|
+
method: zod_1.z.enum(['POST', 'PUT']).default('POST').describe('HTTP method'),
|
|
92
|
+
headers: zod_1.z.record(zod_1.z.string()).optional().describe('Custom headers'),
|
|
93
|
+
payload: zod_1.z.any().optional().describe('Webhook payload (uses record data if not specified)'),
|
|
94
|
+
retryOnFailure: zod_1.z.boolean().default(true).describe('Retry if webhook fails'),
|
|
95
|
+
maxRetries: zod_1.z.number().default(3).describe('Maximum retry attempts'),
|
|
96
|
+
});
|
|
97
|
+
/**
|
|
98
|
+
* Schema for Workflow Task Creation Action
|
|
99
|
+
*/
|
|
100
|
+
exports.TaskCreationActionSchema = zod_1.z.object({
|
|
101
|
+
name: zod_1.z.string().describe('Action name'),
|
|
102
|
+
type: zod_1.z.literal('task_creation'),
|
|
103
|
+
taskObject: zod_1.z.string().describe('Task object name (e.g., "task", "project_task")'),
|
|
104
|
+
subject: zod_1.z.string().describe('Task subject/title'),
|
|
105
|
+
description: zod_1.z.string().optional().describe('Task description'),
|
|
106
|
+
assignedTo: zod_1.z.string().optional().describe('User ID or field reference for assignee'),
|
|
107
|
+
dueDate: zod_1.z.string().optional().describe('Due date (ISO string or formula)'),
|
|
108
|
+
priority: zod_1.z.string().optional().describe('Task priority'),
|
|
109
|
+
relatedTo: zod_1.z.string().optional().describe('Related record ID or field reference'),
|
|
110
|
+
additionalFields: zod_1.z.record(zod_1.z.any()).optional().describe('Additional custom fields'),
|
|
111
|
+
});
|
|
112
|
+
/**
|
|
113
|
+
* Schema for Workflow Push Notification Action
|
|
114
|
+
*/
|
|
115
|
+
exports.PushNotificationActionSchema = zod_1.z.object({
|
|
116
|
+
name: zod_1.z.string().describe('Action name'),
|
|
117
|
+
type: zod_1.z.literal('push_notification'),
|
|
118
|
+
title: zod_1.z.string().describe('Notification title'),
|
|
119
|
+
body: zod_1.z.string().describe('Notification body text'),
|
|
120
|
+
recipients: zod_1.z.array(zod_1.z.string()).describe('User IDs or device tokens'),
|
|
121
|
+
data: zod_1.z.record(zod_1.z.any()).optional().describe('Additional data payload'),
|
|
122
|
+
badge: zod_1.z.number().optional().describe('Badge count (iOS)'),
|
|
123
|
+
sound: zod_1.z.string().optional().describe('Notification sound'),
|
|
124
|
+
clickAction: zod_1.z.string().optional().describe('Action/URL when notification is clicked'),
|
|
125
|
+
});
|
|
126
|
+
/**
|
|
127
|
+
* Schema for Workflow Custom Script Action
|
|
128
|
+
*/
|
|
129
|
+
exports.CustomScriptActionSchema = zod_1.z.object({
|
|
130
|
+
name: zod_1.z.string().describe('Action name'),
|
|
131
|
+
type: zod_1.z.literal('custom_script'),
|
|
132
|
+
language: zod_1.z.enum(['javascript', 'typescript', 'python']).default('javascript').describe('Script language'),
|
|
133
|
+
code: zod_1.z.string().describe('Script code to execute'),
|
|
134
|
+
timeout: zod_1.z.number().default(30000).describe('Execution timeout in milliseconds'),
|
|
135
|
+
context: zod_1.z.record(zod_1.z.any()).optional().describe('Additional context variables'),
|
|
136
|
+
});
|
|
33
137
|
/**
|
|
34
138
|
* Generic Workflow Action Wrapper
|
|
139
|
+
* Supports 10 action types for comprehensive automation
|
|
35
140
|
*/
|
|
36
|
-
exports.WorkflowActionSchema = zod_1.z.
|
|
141
|
+
exports.WorkflowActionSchema = zod_1.z.discriminatedUnion('type', [
|
|
37
142
|
exports.FieldUpdateActionSchema,
|
|
38
143
|
exports.EmailAlertActionSchema,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
144
|
+
exports.SmsNotificationActionSchema,
|
|
145
|
+
exports.SlackMessageActionSchema,
|
|
146
|
+
exports.TeamsMessageActionSchema,
|
|
147
|
+
exports.HttpCallActionSchema,
|
|
148
|
+
exports.WebhookTriggerActionSchema,
|
|
149
|
+
exports.TaskCreationActionSchema,
|
|
150
|
+
exports.PushNotificationActionSchema,
|
|
151
|
+
exports.CustomScriptActionSchema,
|
|
44
152
|
]);
|
|
45
153
|
/**
|
|
46
154
|
* Schema for Workflow Rules (Automation)
|
package/dist/index.d.ts
CHANGED
|
@@ -3,46 +3,41 @@
|
|
|
3
3
|
*
|
|
4
4
|
* ObjectStack Protocol & Specification
|
|
5
5
|
*
|
|
6
|
-
* This package
|
|
7
|
-
*
|
|
6
|
+
* This package does NOT export types at the root level to prevent naming conflicts.
|
|
7
|
+
* Please use namespaced imports or subpath imports.
|
|
8
|
+
*
|
|
9
|
+
* ## Import Styles
|
|
10
|
+
*
|
|
11
|
+
* ### Style 1: Namespace Imports from Root
|
|
12
|
+
* ```typescript
|
|
13
|
+
* import { Data, UI, System, AI, API } from '@objectstack/spec';
|
|
14
|
+
*
|
|
15
|
+
* const field: Data.Field = { name: 'task_name', type: 'text' };
|
|
16
|
+
* const user: System.User = { id: 'u1', email: 'user@example.com' };
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* ### Style 2: Namespace Imports via Subpath
|
|
20
|
+
* ```typescript
|
|
21
|
+
* import * as Data from '@objectstack/spec/data';
|
|
22
|
+
* import * as UI from '@objectstack/spec/ui';
|
|
23
|
+
* import * as System from '@objectstack/spec/system';
|
|
24
|
+
*
|
|
25
|
+
* const field: Data.Field = { name: 'task_name', type: 'text' };
|
|
26
|
+
* const user: System.User = { id: 'u1', email: 'user@example.com' };
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* ### Style 3: Direct Subpath Imports
|
|
30
|
+
* ```typescript
|
|
31
|
+
* import { Field, FieldType } from '@objectstack/spec/data';
|
|
32
|
+
* import { User, Session } from '@objectstack/spec/system';
|
|
33
|
+
*
|
|
34
|
+
* const field: Field = { name: 'task_name', type: 'text' };
|
|
35
|
+
* const user: User = { id: 'u1', email: 'user@example.com' };
|
|
36
|
+
* ```
|
|
8
37
|
*/
|
|
9
|
-
export * from './data
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './data/workflow.zod';
|
|
15
|
-
export * from './data/flow.zod';
|
|
16
|
-
export * from './data/dataset.zod';
|
|
17
|
-
export * from './data/query.zod';
|
|
18
|
-
export * from './data/filter.zod';
|
|
19
|
-
export * from './data/mapping.zod';
|
|
20
|
-
export * from './data/trigger.zod';
|
|
21
|
-
export * from './api/contract.zod';
|
|
22
|
-
export * from './ai/agent.zod';
|
|
23
|
-
export * from './ui/app.zod';
|
|
24
|
-
export * from './ui/view.zod';
|
|
25
|
-
export * from './ui/dashboard.zod';
|
|
26
|
-
export * from './ui/report.zod';
|
|
27
|
-
export * from './ui/action.zod';
|
|
28
|
-
export * from './ui/page.zod';
|
|
29
|
-
export * from './ui/widget.zod';
|
|
30
|
-
export * from './ui/theme.zod';
|
|
31
|
-
export * from './system/manifest.zod';
|
|
32
|
-
export * from './system/datasource.zod';
|
|
33
|
-
export * from './system/api.zod';
|
|
34
|
-
export * from './system/identity.zod';
|
|
35
|
-
export * from './system/auth.zod';
|
|
36
|
-
export * from './system/policy.zod';
|
|
37
|
-
export * from './system/role.zod';
|
|
38
|
-
export * from './system/territory.zod';
|
|
39
|
-
export * from './system/license.zod';
|
|
40
|
-
export * from './system/webhook.zod';
|
|
41
|
-
export * from './system/translation.zod';
|
|
42
|
-
export * from './system/driver.zod';
|
|
43
|
-
export * from './system/constants';
|
|
44
|
-
export * from './system/types';
|
|
45
|
-
export * from './system/discovery.zod';
|
|
46
|
-
export * from './system/plugin.zod';
|
|
47
|
-
export * from './system/driver.zod';
|
|
38
|
+
export * as Data from './data';
|
|
39
|
+
export * as UI from './ui';
|
|
40
|
+
export * as System from './system';
|
|
41
|
+
export * as AI from './ai';
|
|
42
|
+
export * as API from './api';
|
|
48
43
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAQH,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,EAAE,MAAM,MAAM,CAAC;AAC3B,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4,8 +4,37 @@
|
|
|
4
4
|
*
|
|
5
5
|
* ObjectStack Protocol & Specification
|
|
6
6
|
*
|
|
7
|
-
* This package
|
|
8
|
-
*
|
|
7
|
+
* This package does NOT export types at the root level to prevent naming conflicts.
|
|
8
|
+
* Please use namespaced imports or subpath imports.
|
|
9
|
+
*
|
|
10
|
+
* ## Import Styles
|
|
11
|
+
*
|
|
12
|
+
* ### Style 1: Namespace Imports from Root
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import { Data, UI, System, AI, API } from '@objectstack/spec';
|
|
15
|
+
*
|
|
16
|
+
* const field: Data.Field = { name: 'task_name', type: 'text' };
|
|
17
|
+
* const user: System.User = { id: 'u1', email: 'user@example.com' };
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* ### Style 2: Namespace Imports via Subpath
|
|
21
|
+
* ```typescript
|
|
22
|
+
* import * as Data from '@objectstack/spec/data';
|
|
23
|
+
* import * as UI from '@objectstack/spec/ui';
|
|
24
|
+
* import * as System from '@objectstack/spec/system';
|
|
25
|
+
*
|
|
26
|
+
* const field: Data.Field = { name: 'task_name', type: 'text' };
|
|
27
|
+
* const user: System.User = { id: 'u1', email: 'user@example.com' };
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* ### Style 3: Direct Subpath Imports
|
|
31
|
+
* ```typescript
|
|
32
|
+
* import { Field, FieldType } from '@objectstack/spec/data';
|
|
33
|
+
* import { User, Session } from '@objectstack/spec/system';
|
|
34
|
+
*
|
|
35
|
+
* const field: Field = { name: 'task_name', type: 'text' };
|
|
36
|
+
* const user: User = { id: 'u1', email: 'user@example.com' };
|
|
37
|
+
* ```
|
|
9
38
|
*/
|
|
10
39
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
11
40
|
if (k2 === undefined) k2 = k;
|
|
@@ -18,51 +47,37 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
18
47
|
if (k2 === undefined) k2 = k;
|
|
19
48
|
o[k2] = m[k];
|
|
20
49
|
}));
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
}
|
|
50
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
51
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
52
|
+
}) : function(o, v) {
|
|
53
|
+
o["default"] = v;
|
|
54
|
+
});
|
|
55
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
56
|
+
var ownKeys = function(o) {
|
|
57
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
58
|
+
var ar = [];
|
|
59
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
60
|
+
return ar;
|
|
61
|
+
};
|
|
62
|
+
return ownKeys(o);
|
|
63
|
+
};
|
|
64
|
+
return function (mod) {
|
|
65
|
+
if (mod && mod.__esModule) return mod;
|
|
66
|
+
var result = {};
|
|
67
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
68
|
+
__setModuleDefault(result, mod);
|
|
69
|
+
return result;
|
|
70
|
+
};
|
|
71
|
+
})();
|
|
24
72
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
__exportStar(require("./data/mapping.zod"), exports);
|
|
37
|
-
__exportStar(require("./data/trigger.zod"), exports);
|
|
38
|
-
// API Protocol (Envelopes, Contracts)
|
|
39
|
-
__exportStar(require("./api/contract.zod"), exports);
|
|
40
|
-
// AI Protocol (Agent, RAG)
|
|
41
|
-
__exportStar(require("./ai/agent.zod"), exports);
|
|
42
|
-
// UI Protocol (Layout, Navigation, Interaction)
|
|
43
|
-
__exportStar(require("./ui/app.zod"), exports);
|
|
44
|
-
__exportStar(require("./ui/view.zod"), exports);
|
|
45
|
-
__exportStar(require("./ui/dashboard.zod"), exports);
|
|
46
|
-
__exportStar(require("./ui/report.zod"), exports);
|
|
47
|
-
__exportStar(require("./ui/action.zod"), exports);
|
|
48
|
-
__exportStar(require("./ui/page.zod"), exports);
|
|
49
|
-
__exportStar(require("./ui/widget.zod"), exports);
|
|
50
|
-
__exportStar(require("./ui/theme.zod"), exports);
|
|
51
|
-
// System Protocol (Manifest, Runtime, Constants)
|
|
52
|
-
__exportStar(require("./system/manifest.zod"), exports);
|
|
53
|
-
__exportStar(require("./system/datasource.zod"), exports);
|
|
54
|
-
__exportStar(require("./system/api.zod"), exports);
|
|
55
|
-
__exportStar(require("./system/identity.zod"), exports);
|
|
56
|
-
__exportStar(require("./system/auth.zod"), exports);
|
|
57
|
-
__exportStar(require("./system/policy.zod"), exports);
|
|
58
|
-
__exportStar(require("./system/role.zod"), exports);
|
|
59
|
-
__exportStar(require("./system/territory.zod"), exports);
|
|
60
|
-
__exportStar(require("./system/license.zod"), exports);
|
|
61
|
-
__exportStar(require("./system/webhook.zod"), exports);
|
|
62
|
-
__exportStar(require("./system/translation.zod"), exports);
|
|
63
|
-
__exportStar(require("./system/driver.zod"), exports); // Export Driver Protocol
|
|
64
|
-
__exportStar(require("./system/constants"), exports);
|
|
65
|
-
__exportStar(require("./system/types"), exports);
|
|
66
|
-
__exportStar(require("./system/discovery.zod"), exports);
|
|
67
|
-
__exportStar(require("./system/plugin.zod"), exports);
|
|
68
|
-
__exportStar(require("./system/driver.zod"), exports);
|
|
73
|
+
exports.API = exports.AI = exports.System = exports.UI = exports.Data = void 0;
|
|
74
|
+
// ============================================================================
|
|
75
|
+
// NAMESPACE EXPORTS
|
|
76
|
+
// ============================================================================
|
|
77
|
+
// Export protocol domains as namespaces to prevent naming conflicts
|
|
78
|
+
// and establish clear boundaries between different protocol layers.
|
|
79
|
+
exports.Data = __importStar(require("./data"));
|
|
80
|
+
exports.UI = __importStar(require("./ui"));
|
|
81
|
+
exports.System = __importStar(require("./system"));
|
|
82
|
+
exports.AI = __importStar(require("./ai"));
|
|
83
|
+
exports.API = __importStar(require("./api"));
|
package/dist/system/api.zod.d.ts
CHANGED
|
@@ -109,8 +109,8 @@ export declare const ApiEndpointSchema: z.ZodObject<{
|
|
|
109
109
|
path: string;
|
|
110
110
|
type: "script" | "flow" | "object_operation" | "proxy";
|
|
111
111
|
name: string;
|
|
112
|
+
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
112
113
|
target: string;
|
|
113
|
-
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
114
114
|
authRequired: boolean;
|
|
115
115
|
summary?: string | undefined;
|
|
116
116
|
description?: string | undefined;
|
|
@@ -138,8 +138,8 @@ export declare const ApiEndpointSchema: z.ZodObject<{
|
|
|
138
138
|
path: string;
|
|
139
139
|
type: "script" | "flow" | "object_operation" | "proxy";
|
|
140
140
|
name: string;
|
|
141
|
+
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
141
142
|
target: string;
|
|
142
|
-
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
143
143
|
summary?: string | undefined;
|
|
144
144
|
description?: string | undefined;
|
|
145
145
|
objectParams?: {
|
|
@@ -233,8 +233,8 @@ export declare const ApiEndpoint: z.ZodObject<{
|
|
|
233
233
|
path: string;
|
|
234
234
|
type: "script" | "flow" | "object_operation" | "proxy";
|
|
235
235
|
name: string;
|
|
236
|
+
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
236
237
|
target: string;
|
|
237
|
-
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
238
238
|
authRequired: boolean;
|
|
239
239
|
summary?: string | undefined;
|
|
240
240
|
description?: string | undefined;
|
|
@@ -262,8 +262,8 @@ export declare const ApiEndpoint: z.ZodObject<{
|
|
|
262
262
|
path: string;
|
|
263
263
|
type: "script" | "flow" | "object_operation" | "proxy";
|
|
264
264
|
name: string;
|
|
265
|
+
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
265
266
|
target: string;
|
|
266
|
-
method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
|
|
267
267
|
summary?: string | undefined;
|
|
268
268
|
description?: string | undefined;
|
|
269
269
|
objectParams?: {
|