update seach source connector schema

This commit is contained in:
CREDO23 2025-08-02 04:39:48 +02:00
parent 44d2338663
commit edf46e4de1
21 changed files with 1213 additions and 19 deletions

View file

@ -1,4 +1,4 @@
from datetime import datetime
from datetime import UTC, datetime
from pydantic import BaseModel
@ -11,3 +11,8 @@ class GoogleAuthCredentialsBase(BaseModel):
expiry: datetime
scopes: list[str]
client_secret: str
@property
def is_expired(self) -> bool:
"""Check if the credentials have expired."""
return self.expiry <= datetime.now(UTC)