refactor(api): tighten types for Tenant.custom_config_dict and MCPToolProvider.headers (#34698)

This commit is contained in:
corevibe555 authored and GitHub committed 2026-04-08 01:36:42 +00:00
1 parent 2127d5850f
commit c825d5dcf6
22 files changed
+42 -48

No files matched your search

+1 -7
View File
@@ -6,6 +6,7 @@ from typing import Any, Union
from pydantic import BaseModel, ConfigDict, Field, ValidationInfo, field_validator
from core.entities.provider_entities import ProviderConfig
from core.plugin.entities import OAuthSchema
from core.plugin.entities.parameters import (
PluginParameterAutoGenerate,
PluginParameterOption,
@@ -108,13 +109,6 @@ class EventEntity(BaseModel):
return v or []
class OAuthSchema(BaseModel):
client_schema: list[ProviderConfig] = Field(default_factory=list, description="The schema of the OAuth client")
credentials_schema: list[ProviderConfig] = Field(
default_factory=list, description="The schema of the OAuth credentials"
)
class SubscriptionConstructor(BaseModel):
"""
The subscription constructor of the trigger provider