feat: add expires_at field to OAuth credentials and default value for builtin tool provider

This commit is contained in:
Harry
2025-07-22 00:53:03 +08:00
parent 5d5fa88857
commit 5d986c2cdf
5 changed files with 45 additions and 0 deletions

View File

@ -182,6 +182,10 @@ class PluginOAuthAuthorizationUrlResponse(BaseModel):
class PluginOAuthCredentialsResponse(BaseModel):
metadata: Mapping[str, Any] = Field(
default_factory=dict, description="The metadata of the OAuth, like avatar url, name, etc."
)
expires_at: int | None = Field(description="The expires at time of the credentials. UTC timestamp.")
credentials: Mapping[str, Any] = Field(description="The credentials of the OAuth.")