@objectstack/spec 0.3.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/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 +8 -0
- package/dist/ai/index.d.ts.map +1 -1
- package/dist/ai/index.js +8 -0
- package/dist/ai/model-registry.zod.d.ts +53 -53
- package/dist/ai/nlq.zod.d.ts +24 -24
- 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 +22 -22
- 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/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/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/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/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.zod.d.ts +8 -8
- 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 +4 -4
- package/dist/system/index.d.ts +5 -0
- package/dist/system/index.d.ts.map +1 -1
- package/dist/system/index.js +5 -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/manifest.zod.d.ts +10 -10
- 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 +8 -8
- package/dist/ui/theme.zod.d.ts +12 -12
- 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/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/EvaluationMetrics.json +64 -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/ModelDrift.json +73 -0
- package/json-schema/ai/ModelFeature.json +71 -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/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/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/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/system/CronSchedule.json +29 -0
- package/json-schema/system/DatabaseLevelIsolationStrategy.json +139 -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/Job.json +127 -0
- package/json-schema/system/JobExecution.json +49 -0
- package/json-schema/system/JobExecutionStatus.json +15 -0
- package/json-schema/system/LevelIsolationStrategySchema.json +93 -0
- package/json-schema/system/OnceSchedule.json +25 -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/system/Schedule.json +71 -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/{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 +12 -12
- 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/{ChunkingStrategy.json → ai/ChunkingStrategy.json} +0 -0
- /package/json-schema/{DocumentChunk.json → ai/DocumentChunk.json} +0 -0
- /package/json-schema/{DocumentLoaderConfig.json → ai/DocumentLoaderConfig.json} +0 -0
- /package/json-schema/{DocumentMetadata.json → ai/DocumentMetadata.json} +0 -0
- /package/json-schema/{EmbeddingModel.json → ai/EmbeddingModel.json} +0 -0
- /package/json-schema/{Entity.json → ai/Entity.json} +0 -0
- /package/json-schema/{FieldSynonymConfig.json → ai/FieldSynonymConfig.json} +0 -0
- /package/json-schema/{ModelCapability.json → ai/ModelCapability.json} +0 -0
- /package/json-schema/{ModelConfig.json → ai/ModelConfig.json} +0 -0
- /package/json-schema/{ModelLimits.json → ai/ModelLimits.json} +0 -0
- /package/json-schema/{ModelPricing.json → ai/ModelPricing.json} +0 -0
- /package/json-schema/{ModelProvider.json → ai/ModelProvider.json} +0 -0
- /package/json-schema/{ModelRegistry.json → ai/ModelRegistry.json} +0 -0
- /package/json-schema/{ModelRegistryEntry.json → ai/ModelRegistryEntry.json} +0 -0
- /package/json-schema/{ModelSelectionCriteria.json → ai/ModelSelectionCriteria.json} +0 -0
- /package/json-schema/{NLQAnalytics.json → ai/NLQAnalytics.json} +0 -0
- /package/json-schema/{NLQFieldMapping.json → ai/NLQFieldMapping.json} +0 -0
- /package/json-schema/{NLQModelConfig.json → ai/NLQModelConfig.json} +0 -0
- /package/json-schema/{NLQParseResult.json → ai/NLQParseResult.json} +0 -0
- /package/json-schema/{NLQRequest.json → ai/NLQRequest.json} +0 -0
- /package/json-schema/{NLQResponse.json → ai/NLQResponse.json} +0 -0
- /package/json-schema/{NLQTrainingExample.json → ai/NLQTrainingExample.json} +0 -0
- /package/json-schema/{PromptTemplate.json → ai/PromptTemplate.json} +0 -0
- /package/json-schema/{PromptVariable.json → ai/PromptVariable.json} +0 -0
- /package/json-schema/{QueryContext.json → ai/QueryContext.json} +0 -0
- /package/json-schema/{QueryIntent.json → ai/QueryIntent.json} +0 -0
- /package/json-schema/{QueryTemplate.json → ai/QueryTemplate.json} +0 -0
- /package/json-schema/{RAGPipelineConfig.json → ai/RAGPipelineConfig.json} +0 -0
- /package/json-schema/{RAGPipelineStatus.json → ai/RAGPipelineStatus.json} +0 -0
- /package/json-schema/{RAGQueryRequest.json → ai/RAGQueryRequest.json} +0 -0
- /package/json-schema/{RAGQueryResponse.json → ai/RAGQueryResponse.json} +0 -0
- /package/json-schema/{RerankingConfig.json → ai/RerankingConfig.json} +0 -0
- /package/json-schema/{RetrievalStrategy.json → ai/RetrievalStrategy.json} +0 -0
- /package/json-schema/{Timeframe.json → ai/Timeframe.json} +0 -0
- /package/json-schema/{VectorStoreConfig.json → ai/VectorStoreConfig.json} +0 -0
- /package/json-schema/{VectorStoreProvider.json → ai/VectorStoreProvider.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/{Account.json → system/Account.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/{AuthConfig.json → system/AuthConfig.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/{DatabaseMapping.json → system/DatabaseMapping.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/{EnterpriseAuthConfig.json → system/EnterpriseAuthConfig.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/{Invitation.json → system/Invitation.json} +0 -0
- /package/json-schema/{InvitationStatus.json → system/InvitationStatus.json} +0 -0
- /package/json-schema/{LDAPConfig.json → system/LDAPConfig.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/{Member.json → system/Member.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/{OIDCConfig.json → system/OIDCConfig.json} +0 -0
- /package/json-schema/{ObjectQLClient.json → system/ObjectQLClient.json} +0 -0
- /package/json-schema/{Organization.json → system/Organization.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/{SAMLConfig.json → system/SAMLConfig.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/{Session.json → system/Session.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/{StandardAuthProvider.json → system/StandardAuthProvider.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/{User.json → system/User.json} +0 -0
- /package/json-schema/{UserFieldMapping.json → system/UserFieldMapping.json} +0 -0
- /package/json-schema/{VerificationToken.json → system/VerificationToken.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,964 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/CostReport",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"CostReport": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"id": {
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"name": {
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
"generatedAt": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "ISO 8601 timestamp"
|
|
16
|
+
},
|
|
17
|
+
"periodStart": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "ISO 8601 timestamp"
|
|
20
|
+
},
|
|
21
|
+
"periodEnd": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "ISO 8601 timestamp"
|
|
24
|
+
},
|
|
25
|
+
"period": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"enum": [
|
|
28
|
+
"hourly",
|
|
29
|
+
"daily",
|
|
30
|
+
"weekly",
|
|
31
|
+
"monthly",
|
|
32
|
+
"quarterly",
|
|
33
|
+
"yearly",
|
|
34
|
+
"custom"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"analytics": {
|
|
38
|
+
"type": "object",
|
|
39
|
+
"properties": {
|
|
40
|
+
"periodStart": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"description": "ISO 8601 timestamp"
|
|
43
|
+
},
|
|
44
|
+
"periodEnd": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "ISO 8601 timestamp"
|
|
47
|
+
},
|
|
48
|
+
"totalCost": {
|
|
49
|
+
"type": "number",
|
|
50
|
+
"minimum": 0
|
|
51
|
+
},
|
|
52
|
+
"totalRequests": {
|
|
53
|
+
"type": "integer",
|
|
54
|
+
"minimum": 0
|
|
55
|
+
},
|
|
56
|
+
"totalTokens": {
|
|
57
|
+
"type": "integer",
|
|
58
|
+
"minimum": 0
|
|
59
|
+
},
|
|
60
|
+
"currency": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"default": "USD"
|
|
63
|
+
},
|
|
64
|
+
"averageCostPerRequest": {
|
|
65
|
+
"type": "number",
|
|
66
|
+
"minimum": 0
|
|
67
|
+
},
|
|
68
|
+
"averageCostPerToken": {
|
|
69
|
+
"type": "number",
|
|
70
|
+
"minimum": 0
|
|
71
|
+
},
|
|
72
|
+
"averageRequestsPerDay": {
|
|
73
|
+
"type": "number",
|
|
74
|
+
"minimum": 0
|
|
75
|
+
},
|
|
76
|
+
"costTrend": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"enum": [
|
|
79
|
+
"increasing",
|
|
80
|
+
"decreasing",
|
|
81
|
+
"stable"
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
"trendPercentage": {
|
|
85
|
+
"type": "number",
|
|
86
|
+
"description": "% change vs previous period"
|
|
87
|
+
},
|
|
88
|
+
"byModel": {
|
|
89
|
+
"type": "array",
|
|
90
|
+
"items": {
|
|
91
|
+
"type": "object",
|
|
92
|
+
"properties": {
|
|
93
|
+
"dimension": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"enum": [
|
|
96
|
+
"model",
|
|
97
|
+
"provider",
|
|
98
|
+
"user",
|
|
99
|
+
"agent",
|
|
100
|
+
"object",
|
|
101
|
+
"operation",
|
|
102
|
+
"date",
|
|
103
|
+
"hour",
|
|
104
|
+
"tag"
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
"value": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"description": "Dimension value (e.g., model ID, user ID)"
|
|
110
|
+
},
|
|
111
|
+
"totalCost": {
|
|
112
|
+
"type": "number",
|
|
113
|
+
"minimum": 0
|
|
114
|
+
},
|
|
115
|
+
"requestCount": {
|
|
116
|
+
"type": "integer",
|
|
117
|
+
"minimum": 0
|
|
118
|
+
},
|
|
119
|
+
"totalTokens": {
|
|
120
|
+
"type": "integer",
|
|
121
|
+
"minimum": 0
|
|
122
|
+
},
|
|
123
|
+
"percentageOfTotal": {
|
|
124
|
+
"type": "number",
|
|
125
|
+
"minimum": 0,
|
|
126
|
+
"maximum": 1
|
|
127
|
+
},
|
|
128
|
+
"periodStart": {
|
|
129
|
+
"type": "string"
|
|
130
|
+
},
|
|
131
|
+
"periodEnd": {
|
|
132
|
+
"type": "string"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"required": [
|
|
136
|
+
"dimension",
|
|
137
|
+
"value",
|
|
138
|
+
"totalCost",
|
|
139
|
+
"requestCount",
|
|
140
|
+
"percentageOfTotal"
|
|
141
|
+
],
|
|
142
|
+
"additionalProperties": false
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"byProvider": {
|
|
146
|
+
"type": "array",
|
|
147
|
+
"items": {
|
|
148
|
+
"type": "object",
|
|
149
|
+
"properties": {
|
|
150
|
+
"dimension": {
|
|
151
|
+
"type": "string",
|
|
152
|
+
"enum": [
|
|
153
|
+
"model",
|
|
154
|
+
"provider",
|
|
155
|
+
"user",
|
|
156
|
+
"agent",
|
|
157
|
+
"object",
|
|
158
|
+
"operation",
|
|
159
|
+
"date",
|
|
160
|
+
"hour",
|
|
161
|
+
"tag"
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
"value": {
|
|
165
|
+
"type": "string",
|
|
166
|
+
"description": "Dimension value (e.g., model ID, user ID)"
|
|
167
|
+
},
|
|
168
|
+
"totalCost": {
|
|
169
|
+
"type": "number",
|
|
170
|
+
"minimum": 0
|
|
171
|
+
},
|
|
172
|
+
"requestCount": {
|
|
173
|
+
"type": "integer",
|
|
174
|
+
"minimum": 0
|
|
175
|
+
},
|
|
176
|
+
"totalTokens": {
|
|
177
|
+
"type": "integer",
|
|
178
|
+
"minimum": 0
|
|
179
|
+
},
|
|
180
|
+
"percentageOfTotal": {
|
|
181
|
+
"type": "number",
|
|
182
|
+
"minimum": 0,
|
|
183
|
+
"maximum": 1
|
|
184
|
+
},
|
|
185
|
+
"periodStart": {
|
|
186
|
+
"type": "string"
|
|
187
|
+
},
|
|
188
|
+
"periodEnd": {
|
|
189
|
+
"type": "string"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"required": [
|
|
193
|
+
"dimension",
|
|
194
|
+
"value",
|
|
195
|
+
"totalCost",
|
|
196
|
+
"requestCount",
|
|
197
|
+
"percentageOfTotal"
|
|
198
|
+
],
|
|
199
|
+
"additionalProperties": false
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"byUser": {
|
|
203
|
+
"type": "array",
|
|
204
|
+
"items": {
|
|
205
|
+
"type": "object",
|
|
206
|
+
"properties": {
|
|
207
|
+
"dimension": {
|
|
208
|
+
"type": "string",
|
|
209
|
+
"enum": [
|
|
210
|
+
"model",
|
|
211
|
+
"provider",
|
|
212
|
+
"user",
|
|
213
|
+
"agent",
|
|
214
|
+
"object",
|
|
215
|
+
"operation",
|
|
216
|
+
"date",
|
|
217
|
+
"hour",
|
|
218
|
+
"tag"
|
|
219
|
+
]
|
|
220
|
+
},
|
|
221
|
+
"value": {
|
|
222
|
+
"type": "string",
|
|
223
|
+
"description": "Dimension value (e.g., model ID, user ID)"
|
|
224
|
+
},
|
|
225
|
+
"totalCost": {
|
|
226
|
+
"type": "number",
|
|
227
|
+
"minimum": 0
|
|
228
|
+
},
|
|
229
|
+
"requestCount": {
|
|
230
|
+
"type": "integer",
|
|
231
|
+
"minimum": 0
|
|
232
|
+
},
|
|
233
|
+
"totalTokens": {
|
|
234
|
+
"type": "integer",
|
|
235
|
+
"minimum": 0
|
|
236
|
+
},
|
|
237
|
+
"percentageOfTotal": {
|
|
238
|
+
"type": "number",
|
|
239
|
+
"minimum": 0,
|
|
240
|
+
"maximum": 1
|
|
241
|
+
},
|
|
242
|
+
"periodStart": {
|
|
243
|
+
"type": "string"
|
|
244
|
+
},
|
|
245
|
+
"periodEnd": {
|
|
246
|
+
"type": "string"
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
"required": [
|
|
250
|
+
"dimension",
|
|
251
|
+
"value",
|
|
252
|
+
"totalCost",
|
|
253
|
+
"requestCount",
|
|
254
|
+
"percentageOfTotal"
|
|
255
|
+
],
|
|
256
|
+
"additionalProperties": false
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
"byAgent": {
|
|
260
|
+
"type": "array",
|
|
261
|
+
"items": {
|
|
262
|
+
"type": "object",
|
|
263
|
+
"properties": {
|
|
264
|
+
"dimension": {
|
|
265
|
+
"type": "string",
|
|
266
|
+
"enum": [
|
|
267
|
+
"model",
|
|
268
|
+
"provider",
|
|
269
|
+
"user",
|
|
270
|
+
"agent",
|
|
271
|
+
"object",
|
|
272
|
+
"operation",
|
|
273
|
+
"date",
|
|
274
|
+
"hour",
|
|
275
|
+
"tag"
|
|
276
|
+
]
|
|
277
|
+
},
|
|
278
|
+
"value": {
|
|
279
|
+
"type": "string",
|
|
280
|
+
"description": "Dimension value (e.g., model ID, user ID)"
|
|
281
|
+
},
|
|
282
|
+
"totalCost": {
|
|
283
|
+
"type": "number",
|
|
284
|
+
"minimum": 0
|
|
285
|
+
},
|
|
286
|
+
"requestCount": {
|
|
287
|
+
"type": "integer",
|
|
288
|
+
"minimum": 0
|
|
289
|
+
},
|
|
290
|
+
"totalTokens": {
|
|
291
|
+
"type": "integer",
|
|
292
|
+
"minimum": 0
|
|
293
|
+
},
|
|
294
|
+
"percentageOfTotal": {
|
|
295
|
+
"type": "number",
|
|
296
|
+
"minimum": 0,
|
|
297
|
+
"maximum": 1
|
|
298
|
+
},
|
|
299
|
+
"periodStart": {
|
|
300
|
+
"type": "string"
|
|
301
|
+
},
|
|
302
|
+
"periodEnd": {
|
|
303
|
+
"type": "string"
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
"required": [
|
|
307
|
+
"dimension",
|
|
308
|
+
"value",
|
|
309
|
+
"totalCost",
|
|
310
|
+
"requestCount",
|
|
311
|
+
"percentageOfTotal"
|
|
312
|
+
],
|
|
313
|
+
"additionalProperties": false
|
|
314
|
+
}
|
|
315
|
+
},
|
|
316
|
+
"byOperation": {
|
|
317
|
+
"type": "array",
|
|
318
|
+
"items": {
|
|
319
|
+
"type": "object",
|
|
320
|
+
"properties": {
|
|
321
|
+
"dimension": {
|
|
322
|
+
"type": "string",
|
|
323
|
+
"enum": [
|
|
324
|
+
"model",
|
|
325
|
+
"provider",
|
|
326
|
+
"user",
|
|
327
|
+
"agent",
|
|
328
|
+
"object",
|
|
329
|
+
"operation",
|
|
330
|
+
"date",
|
|
331
|
+
"hour",
|
|
332
|
+
"tag"
|
|
333
|
+
]
|
|
334
|
+
},
|
|
335
|
+
"value": {
|
|
336
|
+
"type": "string",
|
|
337
|
+
"description": "Dimension value (e.g., model ID, user ID)"
|
|
338
|
+
},
|
|
339
|
+
"totalCost": {
|
|
340
|
+
"type": "number",
|
|
341
|
+
"minimum": 0
|
|
342
|
+
},
|
|
343
|
+
"requestCount": {
|
|
344
|
+
"type": "integer",
|
|
345
|
+
"minimum": 0
|
|
346
|
+
},
|
|
347
|
+
"totalTokens": {
|
|
348
|
+
"type": "integer",
|
|
349
|
+
"minimum": 0
|
|
350
|
+
},
|
|
351
|
+
"percentageOfTotal": {
|
|
352
|
+
"type": "number",
|
|
353
|
+
"minimum": 0,
|
|
354
|
+
"maximum": 1
|
|
355
|
+
},
|
|
356
|
+
"periodStart": {
|
|
357
|
+
"type": "string"
|
|
358
|
+
},
|
|
359
|
+
"periodEnd": {
|
|
360
|
+
"type": "string"
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
"required": [
|
|
364
|
+
"dimension",
|
|
365
|
+
"value",
|
|
366
|
+
"totalCost",
|
|
367
|
+
"requestCount",
|
|
368
|
+
"percentageOfTotal"
|
|
369
|
+
],
|
|
370
|
+
"additionalProperties": false
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
"byDate": {
|
|
374
|
+
"type": "array",
|
|
375
|
+
"items": {
|
|
376
|
+
"type": "object",
|
|
377
|
+
"properties": {
|
|
378
|
+
"dimension": {
|
|
379
|
+
"type": "string",
|
|
380
|
+
"enum": [
|
|
381
|
+
"model",
|
|
382
|
+
"provider",
|
|
383
|
+
"user",
|
|
384
|
+
"agent",
|
|
385
|
+
"object",
|
|
386
|
+
"operation",
|
|
387
|
+
"date",
|
|
388
|
+
"hour",
|
|
389
|
+
"tag"
|
|
390
|
+
]
|
|
391
|
+
},
|
|
392
|
+
"value": {
|
|
393
|
+
"type": "string",
|
|
394
|
+
"description": "Dimension value (e.g., model ID, user ID)"
|
|
395
|
+
},
|
|
396
|
+
"totalCost": {
|
|
397
|
+
"type": "number",
|
|
398
|
+
"minimum": 0
|
|
399
|
+
},
|
|
400
|
+
"requestCount": {
|
|
401
|
+
"type": "integer",
|
|
402
|
+
"minimum": 0
|
|
403
|
+
},
|
|
404
|
+
"totalTokens": {
|
|
405
|
+
"type": "integer",
|
|
406
|
+
"minimum": 0
|
|
407
|
+
},
|
|
408
|
+
"percentageOfTotal": {
|
|
409
|
+
"type": "number",
|
|
410
|
+
"minimum": 0,
|
|
411
|
+
"maximum": 1
|
|
412
|
+
},
|
|
413
|
+
"periodStart": {
|
|
414
|
+
"type": "string"
|
|
415
|
+
},
|
|
416
|
+
"periodEnd": {
|
|
417
|
+
"type": "string"
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
"required": [
|
|
421
|
+
"dimension",
|
|
422
|
+
"value",
|
|
423
|
+
"totalCost",
|
|
424
|
+
"requestCount",
|
|
425
|
+
"percentageOfTotal"
|
|
426
|
+
],
|
|
427
|
+
"additionalProperties": false
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
"topModels": {
|
|
431
|
+
"type": "array",
|
|
432
|
+
"items": {
|
|
433
|
+
"type": "object",
|
|
434
|
+
"properties": {
|
|
435
|
+
"dimension": {
|
|
436
|
+
"type": "string",
|
|
437
|
+
"enum": [
|
|
438
|
+
"model",
|
|
439
|
+
"provider",
|
|
440
|
+
"user",
|
|
441
|
+
"agent",
|
|
442
|
+
"object",
|
|
443
|
+
"operation",
|
|
444
|
+
"date",
|
|
445
|
+
"hour",
|
|
446
|
+
"tag"
|
|
447
|
+
]
|
|
448
|
+
},
|
|
449
|
+
"value": {
|
|
450
|
+
"type": "string",
|
|
451
|
+
"description": "Dimension value (e.g., model ID, user ID)"
|
|
452
|
+
},
|
|
453
|
+
"totalCost": {
|
|
454
|
+
"type": "number",
|
|
455
|
+
"minimum": 0
|
|
456
|
+
},
|
|
457
|
+
"requestCount": {
|
|
458
|
+
"type": "integer",
|
|
459
|
+
"minimum": 0
|
|
460
|
+
},
|
|
461
|
+
"totalTokens": {
|
|
462
|
+
"type": "integer",
|
|
463
|
+
"minimum": 0
|
|
464
|
+
},
|
|
465
|
+
"percentageOfTotal": {
|
|
466
|
+
"type": "number",
|
|
467
|
+
"minimum": 0,
|
|
468
|
+
"maximum": 1
|
|
469
|
+
},
|
|
470
|
+
"periodStart": {
|
|
471
|
+
"type": "string"
|
|
472
|
+
},
|
|
473
|
+
"periodEnd": {
|
|
474
|
+
"type": "string"
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
"required": [
|
|
478
|
+
"dimension",
|
|
479
|
+
"value",
|
|
480
|
+
"totalCost",
|
|
481
|
+
"requestCount",
|
|
482
|
+
"percentageOfTotal"
|
|
483
|
+
],
|
|
484
|
+
"additionalProperties": false
|
|
485
|
+
}
|
|
486
|
+
},
|
|
487
|
+
"topUsers": {
|
|
488
|
+
"type": "array",
|
|
489
|
+
"items": {
|
|
490
|
+
"type": "object",
|
|
491
|
+
"properties": {
|
|
492
|
+
"dimension": {
|
|
493
|
+
"type": "string",
|
|
494
|
+
"enum": [
|
|
495
|
+
"model",
|
|
496
|
+
"provider",
|
|
497
|
+
"user",
|
|
498
|
+
"agent",
|
|
499
|
+
"object",
|
|
500
|
+
"operation",
|
|
501
|
+
"date",
|
|
502
|
+
"hour",
|
|
503
|
+
"tag"
|
|
504
|
+
]
|
|
505
|
+
},
|
|
506
|
+
"value": {
|
|
507
|
+
"type": "string",
|
|
508
|
+
"description": "Dimension value (e.g., model ID, user ID)"
|
|
509
|
+
},
|
|
510
|
+
"totalCost": {
|
|
511
|
+
"type": "number",
|
|
512
|
+
"minimum": 0
|
|
513
|
+
},
|
|
514
|
+
"requestCount": {
|
|
515
|
+
"type": "integer",
|
|
516
|
+
"minimum": 0
|
|
517
|
+
},
|
|
518
|
+
"totalTokens": {
|
|
519
|
+
"type": "integer",
|
|
520
|
+
"minimum": 0
|
|
521
|
+
},
|
|
522
|
+
"percentageOfTotal": {
|
|
523
|
+
"type": "number",
|
|
524
|
+
"minimum": 0,
|
|
525
|
+
"maximum": 1
|
|
526
|
+
},
|
|
527
|
+
"periodStart": {
|
|
528
|
+
"type": "string"
|
|
529
|
+
},
|
|
530
|
+
"periodEnd": {
|
|
531
|
+
"type": "string"
|
|
532
|
+
}
|
|
533
|
+
},
|
|
534
|
+
"required": [
|
|
535
|
+
"dimension",
|
|
536
|
+
"value",
|
|
537
|
+
"totalCost",
|
|
538
|
+
"requestCount",
|
|
539
|
+
"percentageOfTotal"
|
|
540
|
+
],
|
|
541
|
+
"additionalProperties": false
|
|
542
|
+
}
|
|
543
|
+
},
|
|
544
|
+
"topAgents": {
|
|
545
|
+
"type": "array",
|
|
546
|
+
"items": {
|
|
547
|
+
"type": "object",
|
|
548
|
+
"properties": {
|
|
549
|
+
"dimension": {
|
|
550
|
+
"type": "string",
|
|
551
|
+
"enum": [
|
|
552
|
+
"model",
|
|
553
|
+
"provider",
|
|
554
|
+
"user",
|
|
555
|
+
"agent",
|
|
556
|
+
"object",
|
|
557
|
+
"operation",
|
|
558
|
+
"date",
|
|
559
|
+
"hour",
|
|
560
|
+
"tag"
|
|
561
|
+
]
|
|
562
|
+
},
|
|
563
|
+
"value": {
|
|
564
|
+
"type": "string",
|
|
565
|
+
"description": "Dimension value (e.g., model ID, user ID)"
|
|
566
|
+
},
|
|
567
|
+
"totalCost": {
|
|
568
|
+
"type": "number",
|
|
569
|
+
"minimum": 0
|
|
570
|
+
},
|
|
571
|
+
"requestCount": {
|
|
572
|
+
"type": "integer",
|
|
573
|
+
"minimum": 0
|
|
574
|
+
},
|
|
575
|
+
"totalTokens": {
|
|
576
|
+
"type": "integer",
|
|
577
|
+
"minimum": 0
|
|
578
|
+
},
|
|
579
|
+
"percentageOfTotal": {
|
|
580
|
+
"type": "number",
|
|
581
|
+
"minimum": 0,
|
|
582
|
+
"maximum": 1
|
|
583
|
+
},
|
|
584
|
+
"periodStart": {
|
|
585
|
+
"type": "string"
|
|
586
|
+
},
|
|
587
|
+
"periodEnd": {
|
|
588
|
+
"type": "string"
|
|
589
|
+
}
|
|
590
|
+
},
|
|
591
|
+
"required": [
|
|
592
|
+
"dimension",
|
|
593
|
+
"value",
|
|
594
|
+
"totalCost",
|
|
595
|
+
"requestCount",
|
|
596
|
+
"percentageOfTotal"
|
|
597
|
+
],
|
|
598
|
+
"additionalProperties": false
|
|
599
|
+
}
|
|
600
|
+
},
|
|
601
|
+
"tokensPerDollar": {
|
|
602
|
+
"type": "number",
|
|
603
|
+
"minimum": 0
|
|
604
|
+
},
|
|
605
|
+
"requestsPerDollar": {
|
|
606
|
+
"type": "number",
|
|
607
|
+
"minimum": 0
|
|
608
|
+
}
|
|
609
|
+
},
|
|
610
|
+
"required": [
|
|
611
|
+
"periodStart",
|
|
612
|
+
"periodEnd",
|
|
613
|
+
"totalCost",
|
|
614
|
+
"totalRequests",
|
|
615
|
+
"averageCostPerRequest",
|
|
616
|
+
"averageRequestsPerDay"
|
|
617
|
+
],
|
|
618
|
+
"additionalProperties": false
|
|
619
|
+
},
|
|
620
|
+
"budgets": {
|
|
621
|
+
"type": "array",
|
|
622
|
+
"items": {
|
|
623
|
+
"type": "object",
|
|
624
|
+
"properties": {
|
|
625
|
+
"budgetId": {
|
|
626
|
+
"type": "string"
|
|
627
|
+
},
|
|
628
|
+
"type": {
|
|
629
|
+
"type": "string",
|
|
630
|
+
"enum": [
|
|
631
|
+
"global",
|
|
632
|
+
"user",
|
|
633
|
+
"agent",
|
|
634
|
+
"object",
|
|
635
|
+
"project",
|
|
636
|
+
"department"
|
|
637
|
+
]
|
|
638
|
+
},
|
|
639
|
+
"scope": {
|
|
640
|
+
"type": "string"
|
|
641
|
+
},
|
|
642
|
+
"periodStart": {
|
|
643
|
+
"type": "string",
|
|
644
|
+
"description": "ISO 8601 timestamp"
|
|
645
|
+
},
|
|
646
|
+
"periodEnd": {
|
|
647
|
+
"type": "string",
|
|
648
|
+
"description": "ISO 8601 timestamp"
|
|
649
|
+
},
|
|
650
|
+
"currentCost": {
|
|
651
|
+
"type": "number",
|
|
652
|
+
"minimum": 0,
|
|
653
|
+
"default": 0
|
|
654
|
+
},
|
|
655
|
+
"maxCost": {
|
|
656
|
+
"type": "number",
|
|
657
|
+
"minimum": 0
|
|
658
|
+
},
|
|
659
|
+
"currency": {
|
|
660
|
+
"type": "string",
|
|
661
|
+
"default": "USD"
|
|
662
|
+
},
|
|
663
|
+
"percentageUsed": {
|
|
664
|
+
"type": "number",
|
|
665
|
+
"minimum": 0,
|
|
666
|
+
"description": "Usage as percentage (can exceed 1.0 if over budget)"
|
|
667
|
+
},
|
|
668
|
+
"remainingCost": {
|
|
669
|
+
"type": "number",
|
|
670
|
+
"description": "Remaining budget (can be negative if exceeded)"
|
|
671
|
+
},
|
|
672
|
+
"isExceeded": {
|
|
673
|
+
"type": "boolean",
|
|
674
|
+
"default": false
|
|
675
|
+
},
|
|
676
|
+
"isWarning": {
|
|
677
|
+
"type": "boolean",
|
|
678
|
+
"default": false
|
|
679
|
+
},
|
|
680
|
+
"projectedCost": {
|
|
681
|
+
"type": "number",
|
|
682
|
+
"minimum": 0,
|
|
683
|
+
"description": "Projected cost for period"
|
|
684
|
+
},
|
|
685
|
+
"projectedOverage": {
|
|
686
|
+
"type": "number",
|
|
687
|
+
"minimum": 0,
|
|
688
|
+
"description": "Projected overage"
|
|
689
|
+
},
|
|
690
|
+
"lastUpdated": {
|
|
691
|
+
"type": "string",
|
|
692
|
+
"description": "ISO 8601 timestamp"
|
|
693
|
+
}
|
|
694
|
+
},
|
|
695
|
+
"required": [
|
|
696
|
+
"budgetId",
|
|
697
|
+
"type",
|
|
698
|
+
"periodStart",
|
|
699
|
+
"periodEnd",
|
|
700
|
+
"maxCost",
|
|
701
|
+
"percentageUsed",
|
|
702
|
+
"remainingCost",
|
|
703
|
+
"lastUpdated"
|
|
704
|
+
],
|
|
705
|
+
"additionalProperties": false
|
|
706
|
+
}
|
|
707
|
+
},
|
|
708
|
+
"alerts": {
|
|
709
|
+
"type": "array",
|
|
710
|
+
"items": {
|
|
711
|
+
"type": "object",
|
|
712
|
+
"properties": {
|
|
713
|
+
"id": {
|
|
714
|
+
"type": "string"
|
|
715
|
+
},
|
|
716
|
+
"timestamp": {
|
|
717
|
+
"type": "string",
|
|
718
|
+
"description": "ISO 8601 timestamp"
|
|
719
|
+
},
|
|
720
|
+
"type": {
|
|
721
|
+
"type": "string",
|
|
722
|
+
"enum": [
|
|
723
|
+
"threshold_warning",
|
|
724
|
+
"threshold_critical",
|
|
725
|
+
"limit_exceeded",
|
|
726
|
+
"anomaly_detected",
|
|
727
|
+
"projection_exceeded"
|
|
728
|
+
]
|
|
729
|
+
},
|
|
730
|
+
"severity": {
|
|
731
|
+
"type": "string",
|
|
732
|
+
"enum": [
|
|
733
|
+
"info",
|
|
734
|
+
"warning",
|
|
735
|
+
"critical"
|
|
736
|
+
]
|
|
737
|
+
},
|
|
738
|
+
"budgetId": {
|
|
739
|
+
"type": "string"
|
|
740
|
+
},
|
|
741
|
+
"budgetType": {
|
|
742
|
+
"type": "string",
|
|
743
|
+
"enum": [
|
|
744
|
+
"global",
|
|
745
|
+
"user",
|
|
746
|
+
"agent",
|
|
747
|
+
"object",
|
|
748
|
+
"project",
|
|
749
|
+
"department"
|
|
750
|
+
]
|
|
751
|
+
},
|
|
752
|
+
"scope": {
|
|
753
|
+
"type": "string"
|
|
754
|
+
},
|
|
755
|
+
"message": {
|
|
756
|
+
"type": "string",
|
|
757
|
+
"description": "Alert message"
|
|
758
|
+
},
|
|
759
|
+
"currentCost": {
|
|
760
|
+
"type": "number",
|
|
761
|
+
"minimum": 0
|
|
762
|
+
},
|
|
763
|
+
"maxCost": {
|
|
764
|
+
"type": "number",
|
|
765
|
+
"minimum": 0
|
|
766
|
+
},
|
|
767
|
+
"threshold": {
|
|
768
|
+
"type": "number",
|
|
769
|
+
"minimum": 0,
|
|
770
|
+
"maximum": 1
|
|
771
|
+
},
|
|
772
|
+
"currency": {
|
|
773
|
+
"type": "string",
|
|
774
|
+
"default": "USD"
|
|
775
|
+
},
|
|
776
|
+
"recommendations": {
|
|
777
|
+
"type": "array",
|
|
778
|
+
"items": {
|
|
779
|
+
"type": "string"
|
|
780
|
+
}
|
|
781
|
+
},
|
|
782
|
+
"acknowledged": {
|
|
783
|
+
"type": "boolean",
|
|
784
|
+
"default": false
|
|
785
|
+
},
|
|
786
|
+
"acknowledgedBy": {
|
|
787
|
+
"type": "string"
|
|
788
|
+
},
|
|
789
|
+
"acknowledgedAt": {
|
|
790
|
+
"type": "string"
|
|
791
|
+
},
|
|
792
|
+
"resolved": {
|
|
793
|
+
"type": "boolean",
|
|
794
|
+
"default": false
|
|
795
|
+
},
|
|
796
|
+
"metadata": {
|
|
797
|
+
"type": "object",
|
|
798
|
+
"additionalProperties": {}
|
|
799
|
+
}
|
|
800
|
+
},
|
|
801
|
+
"required": [
|
|
802
|
+
"id",
|
|
803
|
+
"timestamp",
|
|
804
|
+
"type",
|
|
805
|
+
"severity",
|
|
806
|
+
"message",
|
|
807
|
+
"currentCost"
|
|
808
|
+
],
|
|
809
|
+
"additionalProperties": false
|
|
810
|
+
}
|
|
811
|
+
},
|
|
812
|
+
"activeAlertCount": {
|
|
813
|
+
"type": "integer",
|
|
814
|
+
"minimum": 0,
|
|
815
|
+
"default": 0
|
|
816
|
+
},
|
|
817
|
+
"recommendations": {
|
|
818
|
+
"type": "array",
|
|
819
|
+
"items": {
|
|
820
|
+
"type": "object",
|
|
821
|
+
"properties": {
|
|
822
|
+
"id": {
|
|
823
|
+
"type": "string"
|
|
824
|
+
},
|
|
825
|
+
"type": {
|
|
826
|
+
"type": "string",
|
|
827
|
+
"enum": [
|
|
828
|
+
"switch_model",
|
|
829
|
+
"reduce_tokens",
|
|
830
|
+
"batch_requests",
|
|
831
|
+
"cache_results",
|
|
832
|
+
"adjust_parameters",
|
|
833
|
+
"limit_usage"
|
|
834
|
+
]
|
|
835
|
+
},
|
|
836
|
+
"title": {
|
|
837
|
+
"type": "string"
|
|
838
|
+
},
|
|
839
|
+
"description": {
|
|
840
|
+
"type": "string"
|
|
841
|
+
},
|
|
842
|
+
"estimatedSavings": {
|
|
843
|
+
"type": "number",
|
|
844
|
+
"minimum": 0
|
|
845
|
+
},
|
|
846
|
+
"savingsPercentage": {
|
|
847
|
+
"type": "number",
|
|
848
|
+
"minimum": 0,
|
|
849
|
+
"maximum": 1
|
|
850
|
+
},
|
|
851
|
+
"priority": {
|
|
852
|
+
"type": "string",
|
|
853
|
+
"enum": [
|
|
854
|
+
"low",
|
|
855
|
+
"medium",
|
|
856
|
+
"high"
|
|
857
|
+
]
|
|
858
|
+
},
|
|
859
|
+
"effort": {
|
|
860
|
+
"type": "string",
|
|
861
|
+
"enum": [
|
|
862
|
+
"low",
|
|
863
|
+
"medium",
|
|
864
|
+
"high"
|
|
865
|
+
]
|
|
866
|
+
},
|
|
867
|
+
"actionable": {
|
|
868
|
+
"type": "boolean",
|
|
869
|
+
"default": true
|
|
870
|
+
},
|
|
871
|
+
"actionSteps": {
|
|
872
|
+
"type": "array",
|
|
873
|
+
"items": {
|
|
874
|
+
"type": "string"
|
|
875
|
+
}
|
|
876
|
+
},
|
|
877
|
+
"targetModel": {
|
|
878
|
+
"type": "string"
|
|
879
|
+
},
|
|
880
|
+
"alternativeModel": {
|
|
881
|
+
"type": "string"
|
|
882
|
+
},
|
|
883
|
+
"affectedUsers": {
|
|
884
|
+
"type": "array",
|
|
885
|
+
"items": {
|
|
886
|
+
"type": "string"
|
|
887
|
+
}
|
|
888
|
+
},
|
|
889
|
+
"status": {
|
|
890
|
+
"type": "string",
|
|
891
|
+
"enum": [
|
|
892
|
+
"pending",
|
|
893
|
+
"accepted",
|
|
894
|
+
"rejected",
|
|
895
|
+
"implemented"
|
|
896
|
+
],
|
|
897
|
+
"default": "pending"
|
|
898
|
+
},
|
|
899
|
+
"implementedAt": {
|
|
900
|
+
"type": "string"
|
|
901
|
+
}
|
|
902
|
+
},
|
|
903
|
+
"required": [
|
|
904
|
+
"id",
|
|
905
|
+
"type",
|
|
906
|
+
"title",
|
|
907
|
+
"description",
|
|
908
|
+
"priority",
|
|
909
|
+
"effort"
|
|
910
|
+
],
|
|
911
|
+
"additionalProperties": false
|
|
912
|
+
}
|
|
913
|
+
},
|
|
914
|
+
"previousPeriodCost": {
|
|
915
|
+
"type": "number",
|
|
916
|
+
"minimum": 0
|
|
917
|
+
},
|
|
918
|
+
"costChange": {
|
|
919
|
+
"type": "number",
|
|
920
|
+
"description": "Change vs previous period"
|
|
921
|
+
},
|
|
922
|
+
"costChangePercentage": {
|
|
923
|
+
"type": "number"
|
|
924
|
+
},
|
|
925
|
+
"forecastedCost": {
|
|
926
|
+
"type": "number",
|
|
927
|
+
"minimum": 0
|
|
928
|
+
},
|
|
929
|
+
"forecastedBudgetStatus": {
|
|
930
|
+
"type": "string",
|
|
931
|
+
"enum": [
|
|
932
|
+
"under",
|
|
933
|
+
"at",
|
|
934
|
+
"over"
|
|
935
|
+
]
|
|
936
|
+
},
|
|
937
|
+
"format": {
|
|
938
|
+
"type": "string",
|
|
939
|
+
"enum": [
|
|
940
|
+
"summary",
|
|
941
|
+
"detailed",
|
|
942
|
+
"executive"
|
|
943
|
+
],
|
|
944
|
+
"default": "summary"
|
|
945
|
+
},
|
|
946
|
+
"currency": {
|
|
947
|
+
"type": "string",
|
|
948
|
+
"default": "USD"
|
|
949
|
+
}
|
|
950
|
+
},
|
|
951
|
+
"required": [
|
|
952
|
+
"id",
|
|
953
|
+
"name",
|
|
954
|
+
"generatedAt",
|
|
955
|
+
"periodStart",
|
|
956
|
+
"periodEnd",
|
|
957
|
+
"period",
|
|
958
|
+
"analytics"
|
|
959
|
+
],
|
|
960
|
+
"additionalProperties": false
|
|
961
|
+
}
|
|
962
|
+
},
|
|
963
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
964
|
+
}
|