|
45 | 45 | set_auto_top_up, |
46 | 46 | ) |
47 | 47 | from backend.data.execution import UserContext |
48 | | -from backend.data.model import CredentialsMetaInput |
| 48 | +from backend.data.model import CredentialsMetaInput, UserOnboarding |
49 | 49 | from backend.data.notifications import NotificationPreference, NotificationPreferenceDTO |
50 | 50 | from backend.data.onboarding import ( |
51 | 51 | FrontendOnboardingStep, |
@@ -118,25 +118,6 @@ def _create_file_size_error(size_bytes: int, max_size_mb: int) -> HTTPException: |
118 | 118 | logger = logging.getLogger(__name__) |
119 | 119 |
|
120 | 120 |
|
121 | | -# Needed to avoid including User from UserOnboarding prisma model in router |
122 | | -# that causes schema generation for prisma and our LibraryAgent in openapi.json |
123 | | -class UserOnboarding(pydantic.BaseModel): |
124 | | - userId: str |
125 | | - completedSteps: list[OnboardingStep] |
126 | | - walletShown: bool |
127 | | - notified: list[OnboardingStep] |
128 | | - rewardedFor: list[OnboardingStep] |
129 | | - usageReason: Optional[str] |
130 | | - integrations: list[str] |
131 | | - otherIntegrations: Optional[str] |
132 | | - selectedStoreListingVersionId: Optional[str] |
133 | | - agentInput: dict[str, Any] |
134 | | - onboardingAgentExecutionId: Optional[str] |
135 | | - agentRuns: int |
136 | | - lastRunAt: Optional[datetime] |
137 | | - consecutiveRunDays: int |
138 | | - |
139 | | - |
140 | 121 | async def hide_activity_summaries_if_disabled( |
141 | 122 | executions: list[execution_db.GraphExecutionMeta], user_id: str |
142 | 123 | ) -> list[execution_db.GraphExecutionMeta]: |
|
0 commit comments