@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
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AIWorkflowExecutionResultSchema = exports.BatchAIWorkflowExecutionSchema = exports.AIWorkflowAutomationSchema = exports.PostProcessingActionSchema = exports.WorkflowScheduleSchema = exports.WorkflowFieldConditionSchema = exports.AITaskSchema = exports.AITaskTypeSchema = exports.AIWorkflowTriggerSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
/**
|
|
6
|
+
* AI Workflow Automation Protocol
|
|
7
|
+
*
|
|
8
|
+
* Defines intelligent automation workflows that leverage AI/ML capabilities
|
|
9
|
+
* to automate business processes with cognitive tasks like classification,
|
|
10
|
+
* extraction, summarization, content generation, and prediction.
|
|
11
|
+
*
|
|
12
|
+
* Use Cases:
|
|
13
|
+
* - Automatically classify support tickets by urgency and route to teams
|
|
14
|
+
* - Extract key information from documents and populate fields
|
|
15
|
+
* - Generate summaries of long text content
|
|
16
|
+
* - Predict lead scores or customer churn risk
|
|
17
|
+
* - Auto-fill forms based on natural language input
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* Workflow Trigger Types
|
|
21
|
+
* Defines when an AI workflow should be initiated
|
|
22
|
+
*/
|
|
23
|
+
exports.AIWorkflowTriggerSchema = zod_1.z.enum([
|
|
24
|
+
'record_created', // When a new record is created
|
|
25
|
+
'record_updated', // When a record is updated
|
|
26
|
+
'field_changed', // When specific field(s) change
|
|
27
|
+
'scheduled', // Time-based trigger (cron)
|
|
28
|
+
'manual', // User-initiated trigger
|
|
29
|
+
'webhook', // External system trigger
|
|
30
|
+
'batch', // Batch processing trigger
|
|
31
|
+
]);
|
|
32
|
+
/**
|
|
33
|
+
* AI Task Types
|
|
34
|
+
* Cognitive operations that can be performed by AI
|
|
35
|
+
*/
|
|
36
|
+
exports.AITaskTypeSchema = zod_1.z.enum([
|
|
37
|
+
'classify', // Categorize content into predefined classes
|
|
38
|
+
'extract', // Extract structured data from unstructured content
|
|
39
|
+
'summarize', // Generate concise summaries of text
|
|
40
|
+
'generate', // Generate new content (text, code, etc.)
|
|
41
|
+
'predict', // Make predictions based on historical data
|
|
42
|
+
'translate', // Translate text between languages
|
|
43
|
+
'sentiment', // Analyze sentiment (positive, negative, neutral)
|
|
44
|
+
'entity_recognition', // Identify named entities (people, places, etc.)
|
|
45
|
+
'anomaly_detection', // Detect outliers or unusual patterns
|
|
46
|
+
'recommendation', // Recommend items or actions
|
|
47
|
+
]);
|
|
48
|
+
/**
|
|
49
|
+
* AI Task Configuration
|
|
50
|
+
* Individual AI task within a workflow
|
|
51
|
+
*/
|
|
52
|
+
exports.AITaskSchema = zod_1.z.object({
|
|
53
|
+
/** Task Identity */
|
|
54
|
+
id: zod_1.z.string().optional().describe('Optional task ID for referencing'),
|
|
55
|
+
name: zod_1.z.string().describe('Human-readable task name'),
|
|
56
|
+
type: exports.AITaskTypeSchema,
|
|
57
|
+
/** Model Configuration */
|
|
58
|
+
model: zod_1.z.string().optional().describe('Model ID from registry (uses default if not specified)'),
|
|
59
|
+
promptTemplate: zod_1.z.string().optional().describe('Prompt template ID for this task'),
|
|
60
|
+
/** Input Configuration */
|
|
61
|
+
inputFields: zod_1.z.array(zod_1.z.string()).describe('Source fields to process (e.g., ["description", "comments"])'),
|
|
62
|
+
inputContext: zod_1.z.record(zod_1.z.any()).optional().describe('Additional context for the AI model'),
|
|
63
|
+
/** Output Configuration */
|
|
64
|
+
outputField: zod_1.z.string().describe('Target field to store the result'),
|
|
65
|
+
outputFormat: zod_1.z.enum(['text', 'json', 'number', 'boolean', 'array']).optional().default('text'),
|
|
66
|
+
/** Classification-specific options */
|
|
67
|
+
classes: zod_1.z.array(zod_1.z.string()).optional().describe('Valid classes for classification tasks'),
|
|
68
|
+
multiClass: zod_1.z.boolean().optional().default(false).describe('Allow multiple classes to be selected'),
|
|
69
|
+
/** Extraction-specific options */
|
|
70
|
+
extractionSchema: zod_1.z.record(zod_1.z.any()).optional().describe('JSON schema for structured extraction'),
|
|
71
|
+
/** Generation-specific options */
|
|
72
|
+
maxLength: zod_1.z.number().optional().describe('Maximum length for generated content'),
|
|
73
|
+
temperature: zod_1.z.number().min(0).max(2).optional().describe('Model temperature override'),
|
|
74
|
+
/** Error Handling */
|
|
75
|
+
fallbackValue: zod_1.z.any().optional().describe('Fallback value if AI task fails'),
|
|
76
|
+
retryAttempts: zod_1.z.number().int().min(0).max(5).optional().default(1),
|
|
77
|
+
/** Conditional Execution */
|
|
78
|
+
condition: zod_1.z.string().optional().describe('Formula condition - task only runs if TRUE'),
|
|
79
|
+
/** Task Metadata */
|
|
80
|
+
description: zod_1.z.string().optional(),
|
|
81
|
+
active: zod_1.z.boolean().optional().default(true),
|
|
82
|
+
});
|
|
83
|
+
/**
|
|
84
|
+
* Workflow Field Condition
|
|
85
|
+
* Specifies which field changes trigger the workflow
|
|
86
|
+
*/
|
|
87
|
+
exports.WorkflowFieldConditionSchema = zod_1.z.object({
|
|
88
|
+
field: zod_1.z.string().describe('Field name to monitor'),
|
|
89
|
+
operator: zod_1.z.enum(['changed', 'changed_to', 'changed_from', 'is', 'is_not']).optional().default('changed'),
|
|
90
|
+
value: zod_1.z.any().optional().describe('Value to compare against (for changed_to/changed_from/is/is_not)'),
|
|
91
|
+
});
|
|
92
|
+
/**
|
|
93
|
+
* Workflow Schedule Configuration
|
|
94
|
+
* For time-based workflow execution
|
|
95
|
+
*/
|
|
96
|
+
exports.WorkflowScheduleSchema = zod_1.z.object({
|
|
97
|
+
type: zod_1.z.enum(['cron', 'interval', 'daily', 'weekly', 'monthly']).default('cron'),
|
|
98
|
+
cron: zod_1.z.string().optional().describe('Cron expression (required if type is "cron")'),
|
|
99
|
+
interval: zod_1.z.number().optional().describe('Interval in minutes (required if type is "interval")'),
|
|
100
|
+
time: zod_1.z.string().optional().describe('Time of day for daily schedules (HH:MM format)'),
|
|
101
|
+
dayOfWeek: zod_1.z.number().int().min(0).max(6).optional().describe('Day of week for weekly (0=Sunday)'),
|
|
102
|
+
dayOfMonth: zod_1.z.number().int().min(1).max(31).optional().describe('Day of month for monthly'),
|
|
103
|
+
timezone: zod_1.z.string().optional().default('UTC'),
|
|
104
|
+
});
|
|
105
|
+
/**
|
|
106
|
+
* Post-Processing Action
|
|
107
|
+
* Actions to execute after AI tasks complete
|
|
108
|
+
*/
|
|
109
|
+
exports.PostProcessingActionSchema = zod_1.z.object({
|
|
110
|
+
type: zod_1.z.enum(['field_update', 'send_email', 'create_record', 'update_related', 'trigger_flow', 'webhook']),
|
|
111
|
+
name: zod_1.z.string().describe('Action name'),
|
|
112
|
+
config: zod_1.z.record(zod_1.z.any()).describe('Action-specific configuration'),
|
|
113
|
+
condition: zod_1.z.string().optional().describe('Execute only if condition is TRUE'),
|
|
114
|
+
});
|
|
115
|
+
/**
|
|
116
|
+
* AI Workflow Automation Schema
|
|
117
|
+
* Complete workflow definition with AI-powered tasks
|
|
118
|
+
*/
|
|
119
|
+
exports.AIWorkflowAutomationSchema = zod_1.z.object({
|
|
120
|
+
/** Identity */
|
|
121
|
+
name: zod_1.z.string().regex(/^[a-z_][a-z0-9_]*$/).describe('Workflow unique identifier (snake_case)'),
|
|
122
|
+
label: zod_1.z.string().describe('Workflow display name'),
|
|
123
|
+
description: zod_1.z.string().optional(),
|
|
124
|
+
/** Target Object */
|
|
125
|
+
objectName: zod_1.z.string().describe('Target object for this workflow'),
|
|
126
|
+
/** Trigger Configuration */
|
|
127
|
+
trigger: exports.AIWorkflowTriggerSchema,
|
|
128
|
+
/** Trigger-specific configuration */
|
|
129
|
+
fieldConditions: zod_1.z.array(exports.WorkflowFieldConditionSchema).optional().describe('Fields to monitor (for field_changed trigger)'),
|
|
130
|
+
schedule: exports.WorkflowScheduleSchema.optional().describe('Schedule configuration (for scheduled trigger)'),
|
|
131
|
+
webhookConfig: zod_1.z.object({
|
|
132
|
+
secret: zod_1.z.string().optional().describe('Webhook verification secret'),
|
|
133
|
+
headers: zod_1.z.record(zod_1.z.string()).optional().describe('Expected headers'),
|
|
134
|
+
}).optional().describe('Webhook configuration (for webhook trigger)'),
|
|
135
|
+
/** Entry Criteria */
|
|
136
|
+
entryCriteria: zod_1.z.string().optional().describe('Formula condition - workflow only runs if TRUE'),
|
|
137
|
+
/** AI Tasks */
|
|
138
|
+
aiTasks: zod_1.z.array(exports.AITaskSchema).describe('AI tasks to execute in sequence'),
|
|
139
|
+
/** Post-Processing */
|
|
140
|
+
postActions: zod_1.z.array(exports.PostProcessingActionSchema).optional().describe('Actions after AI tasks complete'),
|
|
141
|
+
/** Execution Options */
|
|
142
|
+
executionMode: zod_1.z.enum(['sequential', 'parallel']).optional().default('sequential').describe('How to execute multiple AI tasks'),
|
|
143
|
+
stopOnError: zod_1.z.boolean().optional().default(false).describe('Stop workflow if any task fails'),
|
|
144
|
+
/** Performance & Limits */
|
|
145
|
+
timeout: zod_1.z.number().optional().describe('Maximum execution time in seconds'),
|
|
146
|
+
priority: zod_1.z.enum(['low', 'normal', 'high', 'critical']).optional().default('normal'),
|
|
147
|
+
/** Monitoring & Logging */
|
|
148
|
+
enableLogging: zod_1.z.boolean().optional().default(true),
|
|
149
|
+
enableMetrics: zod_1.z.boolean().optional().default(true),
|
|
150
|
+
notifyOnFailure: zod_1.z.array(zod_1.z.string()).optional().describe('User IDs to notify on failure'),
|
|
151
|
+
/** Status */
|
|
152
|
+
active: zod_1.z.boolean().optional().default(true),
|
|
153
|
+
version: zod_1.z.string().optional().default('1.0.0'),
|
|
154
|
+
/** Metadata */
|
|
155
|
+
tags: zod_1.z.array(zod_1.z.string()).optional(),
|
|
156
|
+
category: zod_1.z.string().optional().describe('Workflow category (e.g., "support", "sales", "hr")'),
|
|
157
|
+
owner: zod_1.z.string().optional().describe('User ID of workflow owner'),
|
|
158
|
+
createdAt: zod_1.z.string().optional().describe('ISO timestamp'),
|
|
159
|
+
updatedAt: zod_1.z.string().optional().describe('ISO timestamp'),
|
|
160
|
+
});
|
|
161
|
+
/**
|
|
162
|
+
* Batch AI Workflow Execution Request
|
|
163
|
+
* For processing multiple records at once
|
|
164
|
+
*/
|
|
165
|
+
exports.BatchAIWorkflowExecutionSchema = zod_1.z.object({
|
|
166
|
+
workflowName: zod_1.z.string().describe('Workflow to execute'),
|
|
167
|
+
recordIds: zod_1.z.array(zod_1.z.string()).describe('Records to process'),
|
|
168
|
+
batchSize: zod_1.z.number().int().min(1).max(1000).optional().default(10),
|
|
169
|
+
parallelism: zod_1.z.number().int().min(1).max(10).optional().default(3),
|
|
170
|
+
priority: zod_1.z.enum(['low', 'normal', 'high']).optional().default('normal'),
|
|
171
|
+
});
|
|
172
|
+
/**
|
|
173
|
+
* AI Workflow Execution Result
|
|
174
|
+
* Result of a single workflow execution
|
|
175
|
+
*/
|
|
176
|
+
exports.AIWorkflowExecutionResultSchema = zod_1.z.object({
|
|
177
|
+
workflowName: zod_1.z.string(),
|
|
178
|
+
recordId: zod_1.z.string(),
|
|
179
|
+
status: zod_1.z.enum(['success', 'partial_success', 'failed', 'skipped']),
|
|
180
|
+
executionTime: zod_1.z.number().describe('Execution time in milliseconds'),
|
|
181
|
+
tasksExecuted: zod_1.z.number().int().describe('Number of tasks executed'),
|
|
182
|
+
tasksSucceeded: zod_1.z.number().int().describe('Number of tasks succeeded'),
|
|
183
|
+
tasksFailed: zod_1.z.number().int().describe('Number of tasks failed'),
|
|
184
|
+
taskResults: zod_1.z.array(zod_1.z.object({
|
|
185
|
+
taskId: zod_1.z.string().optional(),
|
|
186
|
+
taskName: zod_1.z.string(),
|
|
187
|
+
status: zod_1.z.enum(['success', 'failed', 'skipped']),
|
|
188
|
+
output: zod_1.z.any().optional(),
|
|
189
|
+
error: zod_1.z.string().optional(),
|
|
190
|
+
executionTime: zod_1.z.number().optional().describe('Task execution time in milliseconds'),
|
|
191
|
+
modelUsed: zod_1.z.string().optional(),
|
|
192
|
+
tokensUsed: zod_1.z.number().optional(),
|
|
193
|
+
})).optional(),
|
|
194
|
+
error: zod_1.z.string().optional(),
|
|
195
|
+
startedAt: zod_1.z.string().describe('ISO timestamp'),
|
|
196
|
+
completedAt: zod_1.z.string().optional().describe('ISO timestamp'),
|
|
197
|
+
});
|
|
@@ -344,8 +344,8 @@ export declare const SingleRecordResponseSchema: z.ZodObject<{
|
|
|
344
344
|
} & {
|
|
345
345
|
data: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
346
346
|
}, "strip", z.ZodTypeAny, {
|
|
347
|
-
success: boolean;
|
|
348
347
|
data: Record<string, any>;
|
|
348
|
+
success: boolean;
|
|
349
349
|
error?: {
|
|
350
350
|
code: string;
|
|
351
351
|
message: string;
|
|
@@ -358,8 +358,8 @@ export declare const SingleRecordResponseSchema: z.ZodObject<{
|
|
|
358
358
|
traceId?: string | undefined;
|
|
359
359
|
} | undefined;
|
|
360
360
|
}, {
|
|
361
|
-
success: boolean;
|
|
362
361
|
data: Record<string, any>;
|
|
362
|
+
success: boolean;
|
|
363
363
|
error?: {
|
|
364
364
|
code: string;
|
|
365
365
|
message: string;
|
|
@@ -425,8 +425,8 @@ export declare const ListRecordResponseSchema: z.ZodObject<{
|
|
|
425
425
|
hasMore: boolean;
|
|
426
426
|
}>;
|
|
427
427
|
}, "strip", z.ZodTypeAny, {
|
|
428
|
-
success: boolean;
|
|
429
428
|
data: Record<string, any>[];
|
|
429
|
+
success: boolean;
|
|
430
430
|
pagination: {
|
|
431
431
|
total: number;
|
|
432
432
|
limit: number;
|
|
@@ -445,8 +445,8 @@ export declare const ListRecordResponseSchema: z.ZodObject<{
|
|
|
445
445
|
traceId?: string | undefined;
|
|
446
446
|
} | undefined;
|
|
447
447
|
}, {
|
|
448
|
-
success: boolean;
|
|
449
448
|
data: Record<string, any>[];
|
|
449
|
+
success: boolean;
|
|
450
450
|
pagination: {
|
|
451
451
|
total: number;
|
|
452
452
|
limit: number;
|
|
@@ -570,7 +570,6 @@ export declare const BulkResponseSchema: z.ZodObject<{
|
|
|
570
570
|
}[] | undefined;
|
|
571
571
|
}>, "many">;
|
|
572
572
|
}, "strip", z.ZodTypeAny, {
|
|
573
|
-
success: boolean;
|
|
574
573
|
data: {
|
|
575
574
|
success: boolean;
|
|
576
575
|
id?: string | undefined;
|
|
@@ -580,6 +579,7 @@ export declare const BulkResponseSchema: z.ZodObject<{
|
|
|
580
579
|
details?: any;
|
|
581
580
|
}[] | undefined;
|
|
582
581
|
}[];
|
|
582
|
+
success: boolean;
|
|
583
583
|
error?: {
|
|
584
584
|
code: string;
|
|
585
585
|
message: string;
|
|
@@ -592,7 +592,6 @@ export declare const BulkResponseSchema: z.ZodObject<{
|
|
|
592
592
|
traceId?: string | undefined;
|
|
593
593
|
} | undefined;
|
|
594
594
|
}, {
|
|
595
|
-
success: boolean;
|
|
596
595
|
data: {
|
|
597
596
|
success: boolean;
|
|
598
597
|
id?: string | undefined;
|
|
@@ -602,6 +601,7 @@ export declare const BulkResponseSchema: z.ZodObject<{
|
|
|
602
601
|
details?: any;
|
|
603
602
|
}[] | undefined;
|
|
604
603
|
}[];
|
|
604
|
+
success: boolean;
|
|
605
605
|
error?: {
|
|
606
606
|
code: string;
|
|
607
607
|
message: string;
|
|
@@ -726,8 +726,8 @@ export declare const ApiContracts: {
|
|
|
726
726
|
} & {
|
|
727
727
|
data: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
728
728
|
}, "strip", z.ZodTypeAny, {
|
|
729
|
-
success: boolean;
|
|
730
729
|
data: Record<string, any>;
|
|
730
|
+
success: boolean;
|
|
731
731
|
error?: {
|
|
732
732
|
code: string;
|
|
733
733
|
message: string;
|
|
@@ -740,8 +740,8 @@ export declare const ApiContracts: {
|
|
|
740
740
|
traceId?: string | undefined;
|
|
741
741
|
} | undefined;
|
|
742
742
|
}, {
|
|
743
|
-
success: boolean;
|
|
744
743
|
data: Record<string, any>;
|
|
744
|
+
success: boolean;
|
|
745
745
|
error?: {
|
|
746
746
|
code: string;
|
|
747
747
|
message: string;
|
|
@@ -797,8 +797,8 @@ export declare const ApiContracts: {
|
|
|
797
797
|
} & {
|
|
798
798
|
data: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
799
799
|
}, "strip", z.ZodTypeAny, {
|
|
800
|
-
success: boolean;
|
|
801
800
|
data: Record<string, any>;
|
|
801
|
+
success: boolean;
|
|
802
802
|
error?: {
|
|
803
803
|
code: string;
|
|
804
804
|
message: string;
|
|
@@ -811,8 +811,8 @@ export declare const ApiContracts: {
|
|
|
811
811
|
traceId?: string | undefined;
|
|
812
812
|
} | undefined;
|
|
813
813
|
}, {
|
|
814
|
-
success: boolean;
|
|
815
814
|
data: Record<string, any>;
|
|
815
|
+
success: boolean;
|
|
816
816
|
error?: {
|
|
817
817
|
code: string;
|
|
818
818
|
message: string;
|
|
@@ -927,8 +927,8 @@ export declare const ApiContracts: {
|
|
|
927
927
|
} & {
|
|
928
928
|
data: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
929
929
|
}, "strip", z.ZodTypeAny, {
|
|
930
|
-
success: boolean;
|
|
931
930
|
data: Record<string, any>;
|
|
931
|
+
success: boolean;
|
|
932
932
|
error?: {
|
|
933
933
|
code: string;
|
|
934
934
|
message: string;
|
|
@@ -941,8 +941,8 @@ export declare const ApiContracts: {
|
|
|
941
941
|
traceId?: string | undefined;
|
|
942
942
|
} | undefined;
|
|
943
943
|
}, {
|
|
944
|
-
success: boolean;
|
|
945
944
|
data: Record<string, any>;
|
|
945
|
+
success: boolean;
|
|
946
946
|
error?: {
|
|
947
947
|
code: string;
|
|
948
948
|
message: string;
|
|
@@ -1203,8 +1203,8 @@ export declare const ApiContracts: {
|
|
|
1203
1203
|
hasMore: boolean;
|
|
1204
1204
|
}>;
|
|
1205
1205
|
}, "strip", z.ZodTypeAny, {
|
|
1206
|
-
success: boolean;
|
|
1207
1206
|
data: Record<string, any>[];
|
|
1207
|
+
success: boolean;
|
|
1208
1208
|
pagination: {
|
|
1209
1209
|
total: number;
|
|
1210
1210
|
limit: number;
|
|
@@ -1223,8 +1223,8 @@ export declare const ApiContracts: {
|
|
|
1223
1223
|
traceId?: string | undefined;
|
|
1224
1224
|
} | undefined;
|
|
1225
1225
|
}, {
|
|
1226
|
-
success: boolean;
|
|
1227
1226
|
data: Record<string, any>[];
|
|
1227
|
+
success: boolean;
|
|
1228
1228
|
pagination: {
|
|
1229
1229
|
total: number;
|
|
1230
1230
|
limit: number;
|
|
@@ -1321,7 +1321,6 @@ export declare const ApiContracts: {
|
|
|
1321
1321
|
}[] | undefined;
|
|
1322
1322
|
}>, "many">;
|
|
1323
1323
|
}, "strip", z.ZodTypeAny, {
|
|
1324
|
-
success: boolean;
|
|
1325
1324
|
data: {
|
|
1326
1325
|
success: boolean;
|
|
1327
1326
|
id?: string | undefined;
|
|
@@ -1331,6 +1330,7 @@ export declare const ApiContracts: {
|
|
|
1331
1330
|
details?: any;
|
|
1332
1331
|
}[] | undefined;
|
|
1333
1332
|
}[];
|
|
1333
|
+
success: boolean;
|
|
1334
1334
|
error?: {
|
|
1335
1335
|
code: string;
|
|
1336
1336
|
message: string;
|
|
@@ -1343,7 +1343,6 @@ export declare const ApiContracts: {
|
|
|
1343
1343
|
traceId?: string | undefined;
|
|
1344
1344
|
} | undefined;
|
|
1345
1345
|
}, {
|
|
1346
|
-
success: boolean;
|
|
1347
1346
|
data: {
|
|
1348
1347
|
success: boolean;
|
|
1349
1348
|
id?: string | undefined;
|
|
@@ -1353,6 +1352,7 @@ export declare const ApiContracts: {
|
|
|
1353
1352
|
details?: any;
|
|
1354
1353
|
}[] | undefined;
|
|
1355
1354
|
}[];
|
|
1355
|
+
success: boolean;
|
|
1356
1356
|
error?: {
|
|
1357
1357
|
code: string;
|
|
1358
1358
|
message: string;
|
|
@@ -1443,7 +1443,6 @@ export declare const ApiContracts: {
|
|
|
1443
1443
|
}[] | undefined;
|
|
1444
1444
|
}>, "many">;
|
|
1445
1445
|
}, "strip", z.ZodTypeAny, {
|
|
1446
|
-
success: boolean;
|
|
1447
1446
|
data: {
|
|
1448
1447
|
success: boolean;
|
|
1449
1448
|
id?: string | undefined;
|
|
@@ -1453,6 +1452,7 @@ export declare const ApiContracts: {
|
|
|
1453
1452
|
details?: any;
|
|
1454
1453
|
}[] | undefined;
|
|
1455
1454
|
}[];
|
|
1455
|
+
success: boolean;
|
|
1456
1456
|
error?: {
|
|
1457
1457
|
code: string;
|
|
1458
1458
|
message: string;
|
|
@@ -1465,7 +1465,6 @@ export declare const ApiContracts: {
|
|
|
1465
1465
|
traceId?: string | undefined;
|
|
1466
1466
|
} | undefined;
|
|
1467
1467
|
}, {
|
|
1468
|
-
success: boolean;
|
|
1469
1468
|
data: {
|
|
1470
1469
|
success: boolean;
|
|
1471
1470
|
id?: string | undefined;
|
|
@@ -1475,6 +1474,7 @@ export declare const ApiContracts: {
|
|
|
1475
1474
|
details?: any;
|
|
1476
1475
|
}[] | undefined;
|
|
1477
1476
|
}[];
|
|
1477
|
+
success: boolean;
|
|
1478
1478
|
error?: {
|
|
1479
1479
|
code: string;
|
|
1480
1480
|
message: string;
|
|
@@ -1565,7 +1565,6 @@ export declare const ApiContracts: {
|
|
|
1565
1565
|
}[] | undefined;
|
|
1566
1566
|
}>, "many">;
|
|
1567
1567
|
}, "strip", z.ZodTypeAny, {
|
|
1568
|
-
success: boolean;
|
|
1569
1568
|
data: {
|
|
1570
1569
|
success: boolean;
|
|
1571
1570
|
id?: string | undefined;
|
|
@@ -1575,6 +1574,7 @@ export declare const ApiContracts: {
|
|
|
1575
1574
|
details?: any;
|
|
1576
1575
|
}[] | undefined;
|
|
1577
1576
|
}[];
|
|
1577
|
+
success: boolean;
|
|
1578
1578
|
error?: {
|
|
1579
1579
|
code: string;
|
|
1580
1580
|
message: string;
|
|
@@ -1587,7 +1587,6 @@ export declare const ApiContracts: {
|
|
|
1587
1587
|
traceId?: string | undefined;
|
|
1588
1588
|
} | undefined;
|
|
1589
1589
|
}, {
|
|
1590
|
-
success: boolean;
|
|
1591
1590
|
data: {
|
|
1592
1591
|
success: boolean;
|
|
1593
1592
|
id?: string | undefined;
|
|
@@ -1597,6 +1596,7 @@ export declare const ApiContracts: {
|
|
|
1597
1596
|
details?: any;
|
|
1598
1597
|
}[] | undefined;
|
|
1599
1598
|
}[];
|
|
1599
|
+
success: boolean;
|
|
1600
1600
|
error?: {
|
|
1601
1601
|
code: string;
|
|
1602
1602
|
message: string;
|
|
@@ -1684,7 +1684,6 @@ export declare const ApiContracts: {
|
|
|
1684
1684
|
}[] | undefined;
|
|
1685
1685
|
}>, "many">;
|
|
1686
1686
|
}, "strip", z.ZodTypeAny, {
|
|
1687
|
-
success: boolean;
|
|
1688
1687
|
data: {
|
|
1689
1688
|
success: boolean;
|
|
1690
1689
|
id?: string | undefined;
|
|
@@ -1694,6 +1693,7 @@ export declare const ApiContracts: {
|
|
|
1694
1693
|
details?: any;
|
|
1695
1694
|
}[] | undefined;
|
|
1696
1695
|
}[];
|
|
1696
|
+
success: boolean;
|
|
1697
1697
|
error?: {
|
|
1698
1698
|
code: string;
|
|
1699
1699
|
message: string;
|
|
@@ -1706,7 +1706,6 @@ export declare const ApiContracts: {
|
|
|
1706
1706
|
traceId?: string | undefined;
|
|
1707
1707
|
} | undefined;
|
|
1708
1708
|
}, {
|
|
1709
|
-
success: boolean;
|
|
1710
1709
|
data: {
|
|
1711
1710
|
success: boolean;
|
|
1712
1711
|
id?: string | undefined;
|
|
@@ -1716,6 +1715,7 @@ export declare const ApiContracts: {
|
|
|
1716
1715
|
details?: any;
|
|
1717
1716
|
}[] | undefined;
|
|
1718
1717
|
}[];
|
|
1718
|
+
success: boolean;
|
|
1719
1719
|
error?: {
|
|
1720
1720
|
code: string;
|
|
1721
1721
|
message: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* API Protocol Exports
|
|
4
|
+
*
|
|
5
|
+
* API Contracts & Envelopes
|
|
6
|
+
* - Request/Response schemas
|
|
7
|
+
* - Error handling
|
|
8
|
+
*/
|
|
9
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
12
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
13
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
14
|
+
}
|
|
15
|
+
Object.defineProperty(o, k2, desc);
|
|
16
|
+
}) : (function(o, m, k, k2) {
|
|
17
|
+
if (k2 === undefined) k2 = k;
|
|
18
|
+
o[k2] = m[k];
|
|
19
|
+
}));
|
|
20
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
21
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
__exportStar(require("./contract.zod"), exports);
|