diff --git a/backend/.env.example b/backend/.env.example index ec40f36..198a8de 100644 --- a/backend/.env.example +++ b/backend/.env.example @@ -22,4 +22,10 @@ GCS_BUCKET_NAME=use-a-configured-bucket-name GITHUB_WEBHOOK_SECRET=replace-me #RabbitMQ -RABBITMQ_URL=amqp://localhost:5672 \ No newline at end of file +RABBITMQ_URL=amqp://localhost:5672 + +#OAuth 2.0 +GOOGLE_CLIENT_ID=your_google_client_id +GOOGLE_CLIENT_SECRET=your_google_client_secret +GITHUB_CLIENT_ID=your_github_client_id +GITHUB_CLIENT_SECRET=your_github_client_secret \ No newline at end of file diff --git a/backend/prisma/schema.prisma b/backend/prisma/schema.prisma index b8d23ae..ad61d77 100644 --- a/backend/prisma/schema.prisma +++ b/backend/prisma/schema.prisma @@ -22,11 +22,12 @@ model User { id Int @id @default(autoincrement()) name String @default("Friend") email String @unique - passwordHash String + passwordHash String? createdAt DateTime @default(now()) workspaces Workspace[] artifacts Artifact[] githubRepositories GithubRepository[] + oauthAccounts OAuthAccount[] } model Workspace { @@ -94,3 +95,15 @@ model WebhookDelivery { receivedAt DateTime @default(now()) processedAt DateTime? } + +model OAuthAccount { + id Int @id @default(autoincrement()) + userId Int + user User @relation(fields: [userId], references: [id], onDelete: Cascade) + provider String + providerUserId String + createdAt DateTime @default(now()) + + @@unique([provider, providerUserId]) + @@index([userId]) +} diff --git a/backend/src/app.ts b/backend/src/app.ts index b882bec..9148057 100644 --- a/backend/src/app.ts +++ b/backend/src/app.ts @@ -44,6 +44,7 @@ app.use(express.json()); app.use(express.static("public")); app.use("/auth", authRouter); +app.use("/api/auth", authRouter); app.use("/workspaces", workspaceRouter); app.use("/uploads", uploadRouter); app.use("/artifacts", artifactRouter); diff --git a/backend/src/config/env.ts b/backend/src/config/env.ts index 9606bd9..93ffdd5 100644 --- a/backend/src/config/env.ts +++ b/backend/src/config/env.ts @@ -18,4 +18,9 @@ export const env = { GCS_BUCKET_NAME: requiredEnv("GCS_BUCKET_NAME"), GITHUB_WEBHOOK_SECRET: requiredEnv("GITHUB_WEBHOOK_SECRET"), RABBITMQ_URL: requiredEnv("RABBITMQ_URL"), + BACKEND_URL: process.env.BACKEND_URL ?? `http://localhost:${Number(process.env.PORT ?? 3003)}`, + GOOGLE_CLIENT_ID: process.env.GOOGLE_CLIENT_ID ?? "", + GOOGLE_CLIENT_SECRET: process.env.GOOGLE_CLIENT_SECRET ?? "", + GITHUB_CLIENT_ID: process.env.GITHUB_CLIENT_ID ?? "", + GITHUB_CLIENT_SECRET: process.env.GITHUB_CLIENT_SECRET ?? "", }; \ No newline at end of file diff --git a/backend/src/generated/prisma/browser.ts b/backend/src/generated/prisma/browser.ts index 0173d64..d9a8891 100644 --- a/backend/src/generated/prisma/browser.ts +++ b/backend/src/generated/prisma/browser.ts @@ -42,3 +42,8 @@ export type GithubRepository = Prisma.GithubRepositoryModel * */ export type WebhookDelivery = Prisma.WebhookDeliveryModel +/** + * Model OAuthAccount + * + */ +export type OAuthAccount = Prisma.OAuthAccountModel diff --git a/backend/src/generated/prisma/client.ts b/backend/src/generated/prisma/client.ts index 60ee085..6a401fa 100644 --- a/backend/src/generated/prisma/client.ts +++ b/backend/src/generated/prisma/client.ts @@ -66,3 +66,8 @@ export type GithubRepository = Prisma.GithubRepositoryModel * */ export type WebhookDelivery = Prisma.WebhookDeliveryModel +/** + * Model OAuthAccount + * + */ +export type OAuthAccount = Prisma.OAuthAccountModel diff --git a/backend/src/generated/prisma/commonInputTypes.ts b/backend/src/generated/prisma/commonInputTypes.ts index 33f0ade..6afb88b 100644 --- a/backend/src/generated/prisma/commonInputTypes.ts +++ b/backend/src/generated/prisma/commonInputTypes.ts @@ -40,6 +40,21 @@ export type StringFilter<$PrismaModel = never> = { not?: Prisma.NestedStringFilter<$PrismaModel> | string } +export type StringNullableFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + mode?: Prisma.QueryMode + not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null +} + export type DateTimeFilter<$PrismaModel = never> = { equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> @@ -51,6 +66,11 @@ export type DateTimeFilter<$PrismaModel = never> = { not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string } +export type SortOrderInput = { + sort: Prisma.SortOrder + nulls?: Prisma.NullsOrder +} + export type IntWithAggregatesFilter<$PrismaModel = never> = { equals?: number | Prisma.IntFieldRefInput<$PrismaModel> in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> @@ -85,40 +105,6 @@ export type StringWithAggregatesFilter<$PrismaModel = never> = { _max?: Prisma.NestedStringFilter<$PrismaModel> } -export type DateTimeWithAggregatesFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> - notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedDateTimeFilter<$PrismaModel> - _max?: Prisma.NestedDateTimeFilter<$PrismaModel> -} - -export type StringNullableFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null - in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null - notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - mode?: Prisma.QueryMode - not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null -} - -export type SortOrderInput = { - sort: Prisma.SortOrder - nulls?: Prisma.NullsOrder -} - export type StringNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null @@ -137,6 +123,20 @@ export type StringNullableWithAggregatesFilter<$PrismaModel = never> = { _max?: Prisma.NestedStringNullableFilter<$PrismaModel> } +export type DateTimeWithAggregatesFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedDateTimeFilter<$PrismaModel> + _max?: Prisma.NestedDateTimeFilter<$PrismaModel> +} + export type EnumArtifactTypeFilter<$PrismaModel = never> = { equals?: $Enums.ArtifactType | Prisma.EnumArtifactTypeFieldRefInput<$PrismaModel> in?: $Enums.ArtifactType[] | Prisma.ListEnumArtifactTypeFieldRefInput<$PrismaModel> @@ -282,6 +282,20 @@ export type NestedStringFilter<$PrismaModel = never> = { not?: Prisma.NestedStringFilter<$PrismaModel> | string } +export type NestedStringNullableFilter<$PrismaModel = never> = { + equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null + in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null + lt?: string | Prisma.StringFieldRefInput<$PrismaModel> + lte?: string | Prisma.StringFieldRefInput<$PrismaModel> + gt?: string | Prisma.StringFieldRefInput<$PrismaModel> + gte?: string | Prisma.StringFieldRefInput<$PrismaModel> + contains?: string | Prisma.StringFieldRefInput<$PrismaModel> + startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> + not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null +} + export type NestedDateTimeFilter<$PrismaModel = never> = { equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> @@ -337,34 +351,6 @@ export type NestedStringWithAggregatesFilter<$PrismaModel = never> = { _max?: Prisma.NestedStringFilter<$PrismaModel> } -export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = { - equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> - notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> - lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> - not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string - _count?: Prisma.NestedIntFilter<$PrismaModel> - _min?: Prisma.NestedDateTimeFilter<$PrismaModel> - _max?: Prisma.NestedDateTimeFilter<$PrismaModel> -} - -export type NestedStringNullableFilter<$PrismaModel = never> = { - equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null - in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null - notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null - lt?: string | Prisma.StringFieldRefInput<$PrismaModel> - lte?: string | Prisma.StringFieldRefInput<$PrismaModel> - gt?: string | Prisma.StringFieldRefInput<$PrismaModel> - gte?: string | Prisma.StringFieldRefInput<$PrismaModel> - contains?: string | Prisma.StringFieldRefInput<$PrismaModel> - startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel> - not?: Prisma.NestedStringNullableFilter<$PrismaModel> | string | null -} - export type NestedStringNullableWithAggregatesFilter<$PrismaModel = never> = { equals?: string | Prisma.StringFieldRefInput<$PrismaModel> | null in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel> | null @@ -393,6 +379,20 @@ export type NestedIntNullableFilter<$PrismaModel = never> = { not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null } +export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = { + equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel> + lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel> + not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string + _count?: Prisma.NestedIntFilter<$PrismaModel> + _min?: Prisma.NestedDateTimeFilter<$PrismaModel> + _max?: Prisma.NestedDateTimeFilter<$PrismaModel> +} + export type NestedEnumArtifactTypeFilter<$PrismaModel = never> = { equals?: $Enums.ArtifactType | Prisma.EnumArtifactTypeFieldRefInput<$PrismaModel> in?: $Enums.ArtifactType[] | Prisma.ListEnumArtifactTypeFieldRefInput<$PrismaModel> diff --git a/backend/src/generated/prisma/internal/class.ts b/backend/src/generated/prisma/internal/class.ts index d4889d1..4507ea2 100644 --- a/backend/src/generated/prisma/internal/class.ts +++ b/backend/src/generated/prisma/internal/class.ts @@ -20,7 +20,7 @@ const config: runtime.GetPrismaClientConfig = { "clientVersion": "7.9.1", "engineVersion": "e922089b7d7502aff4249d5da3420f6fa55fc6ad", "activeProvider": "postgresql", - "inlineSchema": "generator client {\n provider = \"prisma-client\"\n output = \"../src/generated/prisma\"\n runtime = \"nodejs\"\n moduleFormat = \"esm\"\n generatedFileExtension = \"ts\"\n importFileExtension = \"js\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n}\n\nenum ArtifactType {\n TEXT\n LINK\n POLAROID\n GITHUB_ISSUE\n}\n\nmodel User {\n id Int @id @default(autoincrement())\n name String @default(\"Friend\")\n email String @unique\n passwordHash String\n createdAt DateTime @default(now())\n workspaces Workspace[]\n artifacts Artifact[]\n githubRepositories GithubRepository[]\n}\n\nmodel Workspace {\n id Int @id @default(autoincrement())\n name String\n slug String? @unique\n\n createdAt DateTime @default(now())\n updatedAt DateTime @default(now()) @updatedAt\n\n ownerId Int\n owner User @relation(fields: [ownerId], references: [id], onDelete: Cascade)\n\n artifacts Artifact[]\n githubRepositories GithubRepository[]\n}\n\nmodel Artifact {\n id Int @id @default(autoincrement())\n type ArtifactType\n content Json\n x Float @default(0)\n y Float @default(0)\n createdAt DateTime @default(now())\n updatedAt DateTime @default(now()) @updatedAt\n zIndex Int @default(0)\n\n //existing ownership (temp)\n userId Int\n user User @relation(fields: [userId], references: [id])\n\n //New ownership (temp)\n workspaceId Int\n workspace Workspace @relation(fields: [workspaceId], references: [id], onDelete: Cascade)\n\n source String?\n externalId String?\n\n @@unique([source, externalId])\n @@index([workspaceId])\n}\n\nmodel GithubRepository {\n id Int @id @default(autoincrement())\n owner String\n name String\n\n workspaceId Int\n workspace Workspace @relation(fields: [workspaceId], references: [id], onDelete: Cascade)\n\n userId Int\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n createdAt DateTime @default(now())\n\n @@unique([owner, name])\n @@index([workspaceId])\n}\n\nmodel WebhookDelivery {\n id Int @id @default(autoincrement())\n deliveryId String @unique\n event String\n status String @default(\"RECEIVED\")\n receivedAt DateTime @default(now())\n processedAt DateTime?\n}\n", + "inlineSchema": "generator client {\n provider = \"prisma-client\"\n output = \"../src/generated/prisma\"\n runtime = \"nodejs\"\n moduleFormat = \"esm\"\n generatedFileExtension = \"ts\"\n importFileExtension = \"js\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n}\n\nenum ArtifactType {\n TEXT\n LINK\n POLAROID\n GITHUB_ISSUE\n}\n\nmodel User {\n id Int @id @default(autoincrement())\n name String @default(\"Friend\")\n email String @unique\n passwordHash String?\n createdAt DateTime @default(now())\n workspaces Workspace[]\n artifacts Artifact[]\n githubRepositories GithubRepository[]\n oauthAccounts OAuthAccount[]\n}\n\nmodel Workspace {\n id Int @id @default(autoincrement())\n name String\n slug String? @unique\n\n createdAt DateTime @default(now())\n updatedAt DateTime @default(now()) @updatedAt\n\n ownerId Int\n owner User @relation(fields: [ownerId], references: [id], onDelete: Cascade)\n\n artifacts Artifact[]\n githubRepositories GithubRepository[]\n}\n\nmodel Artifact {\n id Int @id @default(autoincrement())\n type ArtifactType\n content Json\n x Float @default(0)\n y Float @default(0)\n createdAt DateTime @default(now())\n updatedAt DateTime @default(now()) @updatedAt\n zIndex Int @default(0)\n\n //existing ownership (temp)\n userId Int\n user User @relation(fields: [userId], references: [id])\n\n //New ownership (temp)\n workspaceId Int\n workspace Workspace @relation(fields: [workspaceId], references: [id], onDelete: Cascade)\n\n source String?\n externalId String?\n\n @@unique([source, externalId])\n @@index([workspaceId])\n}\n\nmodel GithubRepository {\n id Int @id @default(autoincrement())\n owner String\n name String\n\n workspaceId Int\n workspace Workspace @relation(fields: [workspaceId], references: [id], onDelete: Cascade)\n\n userId Int\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n\n createdAt DateTime @default(now())\n\n @@unique([owner, name])\n @@index([workspaceId])\n}\n\nmodel WebhookDelivery {\n id Int @id @default(autoincrement())\n deliveryId String @unique\n event String\n status String @default(\"RECEIVED\")\n receivedAt DateTime @default(now())\n processedAt DateTime?\n}\n\nmodel OAuthAccount {\n id Int @id @default(autoincrement())\n userId Int\n user User @relation(fields: [userId], references: [id], onDelete: Cascade)\n provider String\n providerUserId String\n createdAt DateTime @default(now())\n\n @@unique([provider, providerUserId])\n @@index([userId])\n}\n", "runtimeDataModel": { "models": {}, "enums": {}, @@ -32,10 +32,10 @@ const config: runtime.GetPrismaClientConfig = { } } -config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"passwordHash\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"workspaces\",\"kind\":\"object\",\"type\":\"Workspace\",\"relationName\":\"UserToWorkspace\"},{\"name\":\"artifacts\",\"kind\":\"object\",\"type\":\"Artifact\",\"relationName\":\"ArtifactToUser\"},{\"name\":\"githubRepositories\",\"kind\":\"object\",\"type\":\"GithubRepository\",\"relationName\":\"GithubRepositoryToUser\"}],\"dbName\":null},\"Workspace\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"slug\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"ownerId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"owner\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"UserToWorkspace\"},{\"name\":\"artifacts\",\"kind\":\"object\",\"type\":\"Artifact\",\"relationName\":\"ArtifactToWorkspace\"},{\"name\":\"githubRepositories\",\"kind\":\"object\",\"type\":\"GithubRepository\",\"relationName\":\"GithubRepositoryToWorkspace\"}],\"dbName\":null},\"Artifact\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"type\",\"kind\":\"enum\",\"type\":\"ArtifactType\"},{\"name\":\"content\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"x\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"y\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"zIndex\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"ArtifactToUser\"},{\"name\":\"workspaceId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"workspace\",\"kind\":\"object\",\"type\":\"Workspace\",\"relationName\":\"ArtifactToWorkspace\"},{\"name\":\"source\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"externalId\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"GithubRepository\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"owner\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"workspaceId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"workspace\",\"kind\":\"object\",\"type\":\"Workspace\",\"relationName\":\"GithubRepositoryToWorkspace\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"GithubRepositoryToUser\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"WebhookDelivery\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"deliveryId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"event\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"receivedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"processedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null}},\"enums\":{},\"types\":{}}") +config.runtimeDataModel = JSON.parse("{\"models\":{\"User\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"email\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"passwordHash\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"workspaces\",\"kind\":\"object\",\"type\":\"Workspace\",\"relationName\":\"UserToWorkspace\"},{\"name\":\"artifacts\",\"kind\":\"object\",\"type\":\"Artifact\",\"relationName\":\"ArtifactToUser\"},{\"name\":\"githubRepositories\",\"kind\":\"object\",\"type\":\"GithubRepository\",\"relationName\":\"GithubRepositoryToUser\"},{\"name\":\"oauthAccounts\",\"kind\":\"object\",\"type\":\"OAuthAccount\",\"relationName\":\"OAuthAccountToUser\"}],\"dbName\":null},\"Workspace\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"slug\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"ownerId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"owner\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"UserToWorkspace\"},{\"name\":\"artifacts\",\"kind\":\"object\",\"type\":\"Artifact\",\"relationName\":\"ArtifactToWorkspace\"},{\"name\":\"githubRepositories\",\"kind\":\"object\",\"type\":\"GithubRepository\",\"relationName\":\"GithubRepositoryToWorkspace\"}],\"dbName\":null},\"Artifact\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"type\",\"kind\":\"enum\",\"type\":\"ArtifactType\"},{\"name\":\"content\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"x\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"y\",\"kind\":\"scalar\",\"type\":\"Float\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"updatedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"zIndex\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"ArtifactToUser\"},{\"name\":\"workspaceId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"workspace\",\"kind\":\"object\",\"type\":\"Workspace\",\"relationName\":\"ArtifactToWorkspace\"},{\"name\":\"source\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"externalId\",\"kind\":\"scalar\",\"type\":\"String\"}],\"dbName\":null},\"GithubRepository\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"owner\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"name\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"workspaceId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"workspace\",\"kind\":\"object\",\"type\":\"Workspace\",\"relationName\":\"GithubRepositoryToWorkspace\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"GithubRepositoryToUser\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"WebhookDelivery\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"deliveryId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"event\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"status\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"receivedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"processedAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null},\"OAuthAccount\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"userId\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"user\",\"kind\":\"object\",\"type\":\"User\",\"relationName\":\"OAuthAccountToUser\"},{\"name\":\"provider\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"providerUserId\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"createdAt\",\"kind\":\"scalar\",\"type\":\"DateTime\"}],\"dbName\":null}},\"enums\":{},\"types\":{}}") config.parameterizationSchema = { - strings: JSON.parse("[\"where\",\"orderBy\",\"cursor\",\"owner\",\"user\",\"workspace\",\"artifacts\",\"githubRepositories\",\"_count\",\"workspaces\",\"User.findUnique\",\"User.findUniqueOrThrow\",\"User.findFirst\",\"User.findFirstOrThrow\",\"User.findMany\",\"data\",\"User.createOne\",\"User.createMany\",\"User.createManyAndReturn\",\"User.updateOne\",\"User.updateMany\",\"User.updateManyAndReturn\",\"create\",\"update\",\"User.upsertOne\",\"User.deleteOne\",\"User.deleteMany\",\"having\",\"_avg\",\"_sum\",\"_min\",\"_max\",\"User.groupBy\",\"User.aggregate\",\"Workspace.findUnique\",\"Workspace.findUniqueOrThrow\",\"Workspace.findFirst\",\"Workspace.findFirstOrThrow\",\"Workspace.findMany\",\"Workspace.createOne\",\"Workspace.createMany\",\"Workspace.createManyAndReturn\",\"Workspace.updateOne\",\"Workspace.updateMany\",\"Workspace.updateManyAndReturn\",\"Workspace.upsertOne\",\"Workspace.deleteOne\",\"Workspace.deleteMany\",\"Workspace.groupBy\",\"Workspace.aggregate\",\"Artifact.findUnique\",\"Artifact.findUniqueOrThrow\",\"Artifact.findFirst\",\"Artifact.findFirstOrThrow\",\"Artifact.findMany\",\"Artifact.createOne\",\"Artifact.createMany\",\"Artifact.createManyAndReturn\",\"Artifact.updateOne\",\"Artifact.updateMany\",\"Artifact.updateManyAndReturn\",\"Artifact.upsertOne\",\"Artifact.deleteOne\",\"Artifact.deleteMany\",\"Artifact.groupBy\",\"Artifact.aggregate\",\"GithubRepository.findUnique\",\"GithubRepository.findUniqueOrThrow\",\"GithubRepository.findFirst\",\"GithubRepository.findFirstOrThrow\",\"GithubRepository.findMany\",\"GithubRepository.createOne\",\"GithubRepository.createMany\",\"GithubRepository.createManyAndReturn\",\"GithubRepository.updateOne\",\"GithubRepository.updateMany\",\"GithubRepository.updateManyAndReturn\",\"GithubRepository.upsertOne\",\"GithubRepository.deleteOne\",\"GithubRepository.deleteMany\",\"GithubRepository.groupBy\",\"GithubRepository.aggregate\",\"WebhookDelivery.findUnique\",\"WebhookDelivery.findUniqueOrThrow\",\"WebhookDelivery.findFirst\",\"WebhookDelivery.findFirstOrThrow\",\"WebhookDelivery.findMany\",\"WebhookDelivery.createOne\",\"WebhookDelivery.createMany\",\"WebhookDelivery.createManyAndReturn\",\"WebhookDelivery.updateOne\",\"WebhookDelivery.updateMany\",\"WebhookDelivery.updateManyAndReturn\",\"WebhookDelivery.upsertOne\",\"WebhookDelivery.deleteOne\",\"WebhookDelivery.deleteMany\",\"WebhookDelivery.groupBy\",\"WebhookDelivery.aggregate\",\"AND\",\"OR\",\"NOT\",\"id\",\"deliveryId\",\"event\",\"status\",\"receivedAt\",\"processedAt\",\"equals\",\"in\",\"notIn\",\"lt\",\"lte\",\"gt\",\"gte\",\"not\",\"contains\",\"startsWith\",\"endsWith\",\"name\",\"workspaceId\",\"userId\",\"createdAt\",\"ArtifactType\",\"type\",\"content\",\"x\",\"y\",\"updatedAt\",\"zIndex\",\"source\",\"externalId\",\"string_contains\",\"string_starts_with\",\"string_ends_with\",\"array_starts_with\",\"array_ends_with\",\"array_contains\",\"slug\",\"ownerId\",\"email\",\"passwordHash\",\"every\",\"some\",\"none\",\"owner_name\",\"source_externalId\",\"is\",\"isNot\",\"connectOrCreate\",\"upsert\",\"createMany\",\"set\",\"disconnect\",\"delete\",\"connect\",\"updateMany\",\"deleteMany\",\"increment\",\"decrement\",\"multiply\",\"divide\"]"), - graph: "xgI1UAsGAACsAQAgBwAArQEAIAkAAKsBACBiAACqAQAwYwAAFwAQZAAAqgEAMGUCAAAAAXYBAJkBACF5QACaAQAhiwEBAAAAAYwBAQCZAQAhAQAAAAEAIAwDAACxAQAgBgAArAEAIAcAAK0BACBiAAC4AQAwYwAAAwAQZAAAuAEAMGUCAJgBACF2AQCZAQAheUAAmgEAIX9AAJoBACGJAQEAtwEAIYoBAgCYAQAhBAMAAKgCACAGAAClAgAgBwAApgIAIIkBAAC5AQAgDAMAALEBACAGAACsAQAgBwAArQEAIGIAALgBADBjAAADABBkAAC4AQAwZQIAAAABdgEAmQEAIXlAAJoBACF_QACaAQAhiQEBAAAAAYoBAgCYAQAhAwAAAAMAIAEAAAQAMAIAAAUAIBEEAACxAQAgBQAAsAEAIGIAALMBADBjAAAHABBkAACzAQAwZQIAmAEAIXcCAJgBACF4AgCYAQAheUAAmgEAIXsAALQBeyJ8AAC1AQAgfQgAtgEAIX4IALYBACF_QACaAQAhgAECAJgBACGBAQEAtwEAIYIBAQC3AQAhBAQAAKgCACAFAACnAgAggQEAALkBACCCAQAAuQEAIBIEAACxAQAgBQAAsAEAIGIAALMBADBjAAAHABBkAACzAQAwZQIAAAABdwIAmAEAIXgCAJgBACF5QACaAQAhewAAtAF7InwAALUBACB9CAC2AQAhfggAtgEAIX9AAJoBACGAAQIAmAEAIYEBAQC3AQAhggEBALcBACGRAQAAsgEAIAMAAAAHACABAAAIADACAAAJACALAwEAmQEAIQQAALEBACAFAACwAQAgYgAArwEAMGMAAAsAEGQAAK8BADBlAgCYAQAhdgEAmQEAIXcCAJgBACF4AgCYAQAheUAAmgEAIQIEAACoAgAgBQAApwIAIAwDAQCZAQAhBAAAsQEAIAUAALABACBiAACvAQAwYwAACwAQZAAArwEAMGUCAAAAAXYBAJkBACF3AgCYAQAheAIAmAEAIXlAAJoBACGQAQAArgEAIAMAAAALACABAAAMADACAAANACABAAAABwAgAQAAAAsAIAMAAAAHACABAAAIADACAAAJACADAAAACwAgAQAADAAwAgAADQAgAQAAAAMAIAEAAAAHACABAAAACwAgAQAAAAEAIAsGAACsAQAgBwAArQEAIAkAAKsBACBiAACqAQAwYwAAFwAQZAAAqgEAMGUCAJgBACF2AQCZAQAheUAAmgEAIYsBAQCZAQAhjAEBAJkBACEDBgAApQIAIAcAAKYCACAJAACkAgAgAwAAABcAIAEAABgAMAIAAAEAIAMAAAAXACABAAAYADACAAABACADAAAAFwAgAQAAGAAwAgAAAQAgCAYAAKICACA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AAICBAABBQACBQgAJhwAJx0AKB4AKR8AKgAAAAAABQgAJhwAJx0AKB4AKR8AKgAAAAUIADAcADEdADIeADMfADQAAAAAAAUIADAcADEdADIeADMfADQKAgELFgEMGQENGgEOGwEQHQERHwcSIAgTIgEUJAcVJQkYJgEZJwEaKAcgKwohLBAiLQIjLgIkLwIlMAImMQInMwIoNQcpNhEqOAIrOgcsOxItPAIuPQIvPgcwQRMxQhkyQwMzRAM0RQM1RgM2RwM3SQM4Swc5TBo6TgM7UAc8URs9UgM-UwM_VAdAVxxBWCJCWQRDWgREWwRFXARGXQRHXwRIYQdJYiNKZARLZgdMZyRNaAROaQRPagdQbSVRbitScCxTcSxUdCxVdSxWdixXeCxYegdZey1afSxbfwdcgAEuXYEBLF6CASxfgwEHYIYBL2GHATU" + strings: JSON.parse("[\"where\",\"orderBy\",\"cursor\",\"owner\",\"user\",\"workspace\",\"artifacts\",\"githubRepositories\",\"_count\",\"workspaces\",\"oauthAccounts\",\"User.findUnique\",\"User.findUniqueOrThrow\",\"User.findFirst\",\"User.findFirstOrThrow\",\"User.findMany\",\"data\",\"User.createOne\",\"User.createMany\",\"User.createManyAndReturn\",\"User.updateOne\",\"User.updateMany\",\"User.updateManyAndReturn\",\"create\",\"update\",\"User.upsertOne\",\"User.deleteOne\",\"User.deleteMany\",\"having\",\"_avg\",\"_sum\",\"_min\",\"_max\",\"User.groupBy\",\"User.aggregate\",\"Workspace.findUnique\",\"Workspace.findUniqueOrThrow\",\"Workspace.findFirst\",\"Workspace.findFirstOrThrow\",\"Workspace.findMany\",\"Workspace.createOne\",\"Workspace.createMany\",\"Workspace.createManyAndReturn\",\"Workspace.updateOne\",\"Workspace.updateMany\",\"Workspace.updateManyAndReturn\",\"Workspace.upsertOne\",\"Workspace.deleteOne\",\"Workspace.deleteMany\",\"Workspace.groupBy\",\"Workspace.aggregate\",\"Artifact.findUnique\",\"Artifact.findUniqueOrThrow\",\"Artifact.findFirst\",\"Artifact.findFirstOrThrow\",\"Artifact.findMany\",\"Artifact.createOne\",\"Artifact.createMany\",\"Artifact.createManyAndReturn\",\"Artifact.updateOne\",\"Artifact.updateMany\",\"Artifact.updateManyAndReturn\",\"Artifact.upsertOne\",\"Artifact.deleteOne\",\"Artifact.deleteMany\",\"Artifact.groupBy\",\"Artifact.aggregate\",\"GithubRepository.findUnique\",\"GithubRepository.findUniqueOrThrow\",\"GithubRepository.findFirst\",\"GithubRepository.findFirstOrThrow\",\"GithubRepository.findMany\",\"GithubRepository.createOne\",\"GithubRepository.createMany\",\"GithubRepository.createManyAndReturn\",\"GithubRepository.updateOne\",\"GithubRepository.updateMany\",\"GithubRepository.updateManyAndReturn\",\"GithubRepository.upsertOne\",\"GithubRepository.deleteOne\",\"GithubRepository.deleteMany\",\"GithubRepository.groupBy\",\"GithubRepository.aggregate\",\"WebhookDelivery.findUnique\",\"WebhookDelivery.findUniqueOrThrow\",\"WebhookDelivery.findFirst\",\"WebhookDelivery.findFirstOrThrow\",\"WebhookDelivery.findMany\",\"WebhookDelivery.createOne\",\"WebhookDelivery.createMany\",\"WebhookDelivery.createManyAndReturn\",\"WebhookDelivery.updateOne\",\"WebhookDelivery.updateMany\",\"WebhookDelivery.updateManyAndReturn\",\"WebhookDelivery.upsertOne\",\"WebhookDelivery.deleteOne\",\"WebhookDelivery.deleteMany\",\"WebhookDelivery.groupBy\",\"WebhookDelivery.aggregate\",\"OAuthAccount.findUnique\",\"OAuthAccount.findUniqueOrThrow\",\"OAuthAccount.findFirst\",\"OAuthAccount.findFirstOrThrow\",\"OAuthAccount.findMany\",\"OAuthAccount.createOne\",\"OAuthAccount.createMany\",\"OAuthAccount.createManyAndReturn\",\"OAuthAccount.updateOne\",\"OAuthAccount.updateMany\",\"OAuthAccount.updateManyAndReturn\",\"OAuthAccount.upsertOne\",\"OAuthAccount.deleteOne\",\"OAuthAccount.deleteMany\",\"OAuthAccount.groupBy\",\"OAuthAccount.aggregate\",\"AND\",\"OR\",\"NOT\",\"id\",\"userId\",\"provider\",\"providerUserId\",\"createdAt\",\"equals\",\"in\",\"notIn\",\"lt\",\"lte\",\"gt\",\"gte\",\"not\",\"contains\",\"startsWith\",\"endsWith\",\"deliveryId\",\"event\",\"status\",\"receivedAt\",\"processedAt\",\"name\",\"workspaceId\",\"ArtifactType\",\"type\",\"content\",\"x\",\"y\",\"updatedAt\",\"zIndex\",\"source\",\"externalId\",\"string_contains\",\"string_starts_with\",\"string_ends_with\",\"array_starts_with\",\"array_ends_with\",\"array_contains\",\"slug\",\"ownerId\",\"email\",\"passwordHash\",\"every\",\"some\",\"none\",\"provider_providerUserId\",\"owner_name\",\"source_externalId\",\"is\",\"isNot\",\"connectOrCreate\",\"upsert\",\"createMany\",\"set\",\"disconnect\",\"delete\",\"connect\",\"updateMany\",\"deleteMany\",\"increment\",\"decrement\",\"multiply\",\"divide\"]"), + graph: "gQM_YAwGAADJAQAgBwAAygEAIAkAAMgBACAKAADLAQAgcwAAxgEAMHQAABwAEHUAAMYBADB2AgAAAAF6QAC2AQAhiwEBALUBACGeAQEAAAABnwEBAMcBACEBAAAAAQAgDAMAAM4BACAGAADJAQAgBwAAygEAIHMAANcBADB0AAADABB1AADXAQAwdgIAtAEAIXpAALYBACGLAQEAtQEAIZIBQAC2AQAhnAEBAMcBACGdAQIAtAEAIQQDAADcAgAgBgAA2QIAIAcAANoCACCcAQAA4gEAIAwDAADOAQAgBgAAyQEAIAcAAMoBACBzAADXAQAwdAAAAwAQdQAA1wEAMHYCAAAAAXpAALYBACGLAQEAtQEAIZIBQAC2AQAhnAEBAAAAAZ0BAgC0AQAhAwAAAAMAIAEAAAQAMAIAAAUAIBEEAADOAQAgBQAA0QEAIHMAANMBADB0AAAHABB1AADTAQAwdgIAtAEAIXcCALQBACF6QAC2AQAhjAECALQBACGOAQAA1AGOASKPAQAA1QEAIJABCADWAQAhkQEIANYBACGSAUAAtgEAIZMBAgC0AQAhlAEBAMcBACGVAQEAxwEAIQQEAADcAgAgBQAA3QIAIJQBAADiAQAglQEAAOIBACASBAAAzgEAIAUAANEBACBzAADTAQAwdAAABwAQdQAA0wEAMHYCAAAAAXcCALQBACF6QAC2AQAhjAECALQBACGOAQAA1AGOASKPAQAA1QEAIJABCADWAQAhkQEIANYBACGSAUAAtgEAIZMBAgC0AQAhlAEBAMcBACGVAQEAxwEAIaUBAADSAQAgAwAAAAcAIAEAAAgAMAIAAAkAIAsDAQC1AQAhBAAAzgEAIAUAANEBACBzAADQAQAwdAAACwAQdQAA0AEAMHYCALQBACF3AgC0AQAhekAAtgEAIYsBAQC1AQAhjAECALQBACECBAAA3AIAIAUAAN0CACAMAwEAtQEAIQQAAM4BACAFAADRAQAgcwAA0AEAMHQAAAsAEHUAANABADB2AgAAAAF3AgC0AQAhekAAtgEAIYsBAQC1AQAhjAECALQBACGkAQAAzwEAIAMAAAALACABAAAMADACAAANACABAAAABwAgAQAAAAsAIAMAAAAHACABAAAIADACAAAJACADAAAACwAgAQAADAAwAgAADQAgCQQAAM4BACBzAADNAQAwdAAAEwAQdQAAzQEAMHYCALQBACF3AgC0AQAheAEAtQEAIXkBALUBACF6QAC2AQAhAQQAANwCACAKBAAAzgEAIHMAAM0BADB0AAATABB1AADNAQAwdgIAAAABdwIAtAEAIXgBALUBACF5AQC1AQAhekAAtgEAIaMBAADMAQAgAwAAABMAIAEAABQAMAIAABUAIAEAAAADACABAAAABwAgAQAAAAsAIAEAAAATACABAAAAAQAgDAYAAMkBACAHAADKAQAgCQAAyAEAIAoAAMsBACBzAADGAQAwdAAAHAAQdQAAxgEAMHYCALQBACF6QAC2AQAhiwEBALUBACGeAQEAtQEAIZ8BAQDHAQAhBQYAANkCACAHAADaAgAgCQAA2AIAIAoAANsCACCfAQAA4gEAIAMAAAAcACABAAAdADACAAABACADAAAAHAAgAQAAHQAwAgAAAQAgAwAAABwAIAEAAB0AMAIAAAEAIAkGAADVAgAgBwAA1gIAIAkAANQCACAKAADXAgAgdgIAAAABekAAAAABiwEBAAAAAZ4BAQAAAAGfAQEAAAABARAAACEAI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0BACGfAQEA-QEAIQUGEQMHEgQIAAcJBgIKFgYEAwABBgoDBw4ECAAFAgQAAQUAAgIEAAEFAAICBg8ABxAAAQQAAQQGGAAHGQAJFwAKGgAAAAAFCAAMHQANHgAOHwAPIAAQAAAAAAAFCAAMHQANHgAOHwAPIAAQAQMAAQEDAAEFCAAVHQAWHgAXHwAYIAAZAAAAAAAFCAAVHQAWHgAXHwAYIAAZAgQAAQUAAgIEAAEFAAIFCAAeHQAfHgAgHwAhIAAiAAAAAAAFCAAeHQAfHgAgHwAhIAAiAgQAAQUAAgIEAAEFAAIFCAAnHQAoHgApHwAqIAArAAAAAAAFCAAnHQAoHgApHwAqIAArAAAABQgAMR0AMh4AMx8ANCAANQAAAAAABQgAMR0AMh4AMx8ANCAANQEEAAEBBAABBQgAOh0AOx4APB8APSAAPgAAAAAABQgAOh0AOx4APB8APSAAPgsCAQwbAQ0eAQ4fAQ8gAREiARIkCBMlCRQnARUpCBYqChkrARosARstCCEwCyIxESMyAiQzAiU0AiY1Aic2Aig4Aik6CCo7Eis9Aiw_CC1AEy5BAi9CAjBDCDFGFDJHGjNIAzRJAzVKAzZLAzdMAzhOAzlQCDpRGztTAzxVCD1WHD5XAz9YA0BZCEFcHUJdI0NeBERfBEVgBEZhBEdiBEhkBElmCEpnJEtpBExrCE1sJU5tBE9uBFBvCFFyJlJzLFN1LVR2LVV5LVZ6LVd7LVh9LVl_CFqAAS5bggEtXIQBCF2FAS9ehgEtX4cBLWCIAQhhiwEwYowBNmONAQZkjgEGZY8BBmaQAQZnkQEGaJMBBmmVAQhqlgE3a5gBBmyaAQhtmwE4bpwBBm-dAQZwngEIcaEBOXKiAT8" } async function decodeBase64AsWasm(wasmBase64: string): Promise { @@ -237,6 +237,16 @@ export interface PrismaClient< * ``` */ get webhookDelivery(): Prisma.WebhookDeliveryDelegate; + + /** + * `prisma.oAuthAccount`: Exposes CRUD operations for the **OAuthAccount** model. + * Example usage: + * ```ts + * // Fetch zero or more OAuthAccounts + * const oAuthAccounts = await prisma.oAuthAccount.findMany() + * ``` + */ + get oAuthAccount(): Prisma.OAuthAccountDelegate; } export function getPrismaClientClass(): PrismaClientConstructor { diff --git a/backend/src/generated/prisma/internal/prismaNamespace.ts b/backend/src/generated/prisma/internal/prismaNamespace.ts index 75e471d..9737e3b 100644 --- a/backend/src/generated/prisma/internal/prismaNamespace.ts +++ b/backend/src/generated/prisma/internal/prismaNamespace.ts @@ -401,7 +401,8 @@ export const ModelName = { Workspace: 'Workspace', Artifact: 'Artifact', GithubRepository: 'GithubRepository', - WebhookDelivery: 'WebhookDelivery' + WebhookDelivery: 'WebhookDelivery', + OAuthAccount: 'OAuthAccount' } as const export type ModelName = (typeof ModelName)[keyof typeof ModelName] @@ -417,7 +418,7 @@ export type TypeMap + fields: Prisma.OAuthAccountFieldRefs + operations: { + findUnique: { + args: Prisma.OAuthAccountFindUniqueArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findUniqueOrThrow: { + args: Prisma.OAuthAccountFindUniqueOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findFirst: { + args: Prisma.OAuthAccountFindFirstArgs + result: runtime.Types.Utils.PayloadToResult | null + } + findFirstOrThrow: { + args: Prisma.OAuthAccountFindFirstOrThrowArgs + result: runtime.Types.Utils.PayloadToResult + } + findMany: { + args: Prisma.OAuthAccountFindManyArgs + result: runtime.Types.Utils.PayloadToResult[] + } + create: { + args: Prisma.OAuthAccountCreateArgs + result: runtime.Types.Utils.PayloadToResult + } + createMany: { + args: Prisma.OAuthAccountCreateManyArgs + result: BatchPayload + } + createManyAndReturn: { + args: Prisma.OAuthAccountCreateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + delete: { + args: Prisma.OAuthAccountDeleteArgs + result: runtime.Types.Utils.PayloadToResult + } + update: { + args: Prisma.OAuthAccountUpdateArgs + result: runtime.Types.Utils.PayloadToResult + } + deleteMany: { + args: Prisma.OAuthAccountDeleteManyArgs + result: BatchPayload + } + updateMany: { + args: Prisma.OAuthAccountUpdateManyArgs + result: BatchPayload + } + updateManyAndReturn: { + args: Prisma.OAuthAccountUpdateManyAndReturnArgs + result: runtime.Types.Utils.PayloadToResult[] + } + upsert: { + args: Prisma.OAuthAccountUpsertArgs + result: runtime.Types.Utils.PayloadToResult + } + aggregate: { + args: Prisma.OAuthAccountAggregateArgs + result: runtime.Types.Utils.Optional + } + groupBy: { + args: Prisma.OAuthAccountGroupByArgs + result: runtime.Types.Utils.Optional[] + } + count: { + args: Prisma.OAuthAccountCountArgs + result: runtime.Types.Utils.Optional | number + } + } + } } } & { other: { @@ -895,6 +970,17 @@ export const WebhookDeliveryScalarFieldEnum = { export type WebhookDeliveryScalarFieldEnum = (typeof WebhookDeliveryScalarFieldEnum)[keyof typeof WebhookDeliveryScalarFieldEnum] +export const OAuthAccountScalarFieldEnum = { + id: 'id', + userId: 'userId', + provider: 'provider', + providerUserId: 'providerUserId', + createdAt: 'createdAt' +} as const + +export type OAuthAccountScalarFieldEnum = (typeof OAuthAccountScalarFieldEnum)[keyof typeof OAuthAccountScalarFieldEnum] + + export const SortOrder = { asc: 'asc', desc: 'desc' @@ -1180,6 +1266,7 @@ export type GlobalOmitConfig = { artifact?: Prisma.ArtifactOmit githubRepository?: Prisma.GithubRepositoryOmit webhookDelivery?: Prisma.WebhookDeliveryOmit + oAuthAccount?: Prisma.OAuthAccountOmit } /* Types for Logging */ diff --git a/backend/src/generated/prisma/internal/prismaNamespaceBrowser.ts b/backend/src/generated/prisma/internal/prismaNamespaceBrowser.ts index 208ff51..67b9987 100644 --- a/backend/src/generated/prisma/internal/prismaNamespaceBrowser.ts +++ b/backend/src/generated/prisma/internal/prismaNamespaceBrowser.ts @@ -55,7 +55,8 @@ export const ModelName = { Workspace: 'Workspace', Artifact: 'Artifact', GithubRepository: 'GithubRepository', - WebhookDelivery: 'WebhookDelivery' + WebhookDelivery: 'WebhookDelivery', + OAuthAccount: 'OAuthAccount' } as const export type ModelName = (typeof ModelName)[keyof typeof ModelName] @@ -139,6 +140,17 @@ export const WebhookDeliveryScalarFieldEnum = { export type WebhookDeliveryScalarFieldEnum = (typeof WebhookDeliveryScalarFieldEnum)[keyof typeof WebhookDeliveryScalarFieldEnum] +export const OAuthAccountScalarFieldEnum = { + id: 'id', + userId: 'userId', + provider: 'provider', + providerUserId: 'providerUserId', + createdAt: 'createdAt' +} as const + +export type OAuthAccountScalarFieldEnum = (typeof OAuthAccountScalarFieldEnum)[keyof typeof OAuthAccountScalarFieldEnum] + + export const SortOrder = { asc: 'asc', desc: 'desc' diff --git a/backend/src/generated/prisma/models.ts b/backend/src/generated/prisma/models.ts index fe2fc44..d5c3411 100644 --- a/backend/src/generated/prisma/models.ts +++ b/backend/src/generated/prisma/models.ts @@ -13,4 +13,5 @@ export type * from './models/Workspace.js' export type * from './models/Artifact.js' export type * from './models/GithubRepository.js' export type * from './models/WebhookDelivery.js' +export type * from './models/OAuthAccount.js' export type * from './commonInputTypes.js' \ No newline at end of file diff --git a/backend/src/generated/prisma/models/OAuthAccount.ts b/backend/src/generated/prisma/models/OAuthAccount.ts new file mode 100644 index 0000000..0bc9e83 --- /dev/null +++ b/backend/src/generated/prisma/models/OAuthAccount.ts @@ -0,0 +1,1396 @@ + +/* !!! This is code generated by Prisma. Do not edit directly. !!! */ +/* eslint-disable */ +// biome-ignore-all lint: generated file +// @ts-nocheck +/* + * This file exports the `OAuthAccount` model and its related types. + * + * 🟢 You can import this file directly. + */ +import type * as runtime from "@prisma/client/runtime/client" +import type * as $Enums from "../enums.js" +import type * as Prisma from "../internal/prismaNamespace.js" + +/** + * Model OAuthAccount + * + */ +export type OAuthAccountModel = runtime.Types.Result.DefaultSelection + +export type AggregateOAuthAccount = { + _count: OAuthAccountCountAggregateOutputType | null + _avg: OAuthAccountAvgAggregateOutputType | null + _sum: OAuthAccountSumAggregateOutputType | null + _min: OAuthAccountMinAggregateOutputType | null + _max: OAuthAccountMaxAggregateOutputType | null +} + +export type OAuthAccountAvgAggregateOutputType = { + id: number | null + userId: number | null +} + +export type OAuthAccountSumAggregateOutputType = { + id: number | null + userId: number | null +} + +export type OAuthAccountMinAggregateOutputType = { + id: number | null + userId: number | null + provider: string | null + providerUserId: string | null + createdAt: Date | null +} + +export type OAuthAccountMaxAggregateOutputType = { + id: number | null + userId: number | null + provider: string | null + providerUserId: string | null + createdAt: Date | null +} + +export type OAuthAccountCountAggregateOutputType = { + id: number + userId: number + provider: number + providerUserId: number + createdAt: number + _all: number +} + + +export type OAuthAccountAvgAggregateInputType = { + id?: true + userId?: true +} + +export type OAuthAccountSumAggregateInputType = { + id?: true + userId?: true +} + +export type OAuthAccountMinAggregateInputType = { + id?: true + userId?: true + provider?: true + providerUserId?: true + createdAt?: true +} + +export type OAuthAccountMaxAggregateInputType = { + id?: true + userId?: true + provider?: true + providerUserId?: true + createdAt?: true +} + +export type OAuthAccountCountAggregateInputType = { + id?: true + userId?: true + provider?: true + providerUserId?: true + createdAt?: true + _all?: true +} + +export type OAuthAccountAggregateArgs = { + /** + * Filter which OAuthAccount to aggregate. + */ + where?: Prisma.OAuthAccountWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of OAuthAccounts to fetch. + */ + orderBy?: Prisma.OAuthAccountOrderByWithRelationInput | Prisma.OAuthAccountOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the start position + */ + cursor?: Prisma.OAuthAccountWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` OAuthAccounts from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` OAuthAccounts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Count returned OAuthAccounts + **/ + _count?: true | OAuthAccountCountAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to average + **/ + _avg?: OAuthAccountAvgAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to sum + **/ + _sum?: OAuthAccountSumAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the minimum value + **/ + _min?: OAuthAccountMinAggregateInputType + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} + * + * Select which fields to find the maximum value + **/ + _max?: OAuthAccountMaxAggregateInputType +} + +export type GetOAuthAccountAggregateType = { + [P in keyof T & keyof AggregateOAuthAccount]: P extends '_count' | 'count' + ? T[P] extends true + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType +} + + + + +export type OAuthAccountGroupByArgs = { + where?: Prisma.OAuthAccountWhereInput + orderBy?: Prisma.OAuthAccountOrderByWithAggregationInput | Prisma.OAuthAccountOrderByWithAggregationInput[] + by: Prisma.OAuthAccountScalarFieldEnum[] | Prisma.OAuthAccountScalarFieldEnum + having?: Prisma.OAuthAccountScalarWhereWithAggregatesInput + take?: number + skip?: number + _count?: OAuthAccountCountAggregateInputType | true + _avg?: OAuthAccountAvgAggregateInputType + _sum?: OAuthAccountSumAggregateInputType + _min?: OAuthAccountMinAggregateInputType + _max?: OAuthAccountMaxAggregateInputType +} + +export type OAuthAccountGroupByOutputType = { + id: number + userId: number + provider: string + providerUserId: string + createdAt: Date + _count: OAuthAccountCountAggregateOutputType | null + _avg: OAuthAccountAvgAggregateOutputType | null + _sum: OAuthAccountSumAggregateOutputType | null + _min: OAuthAccountMinAggregateOutputType | null + _max: OAuthAccountMaxAggregateOutputType | null +} + +export type GetOAuthAccountGroupByPayload = Prisma.PrismaPromise< + Array< + Prisma.PickEnumerable & + { + [P in ((keyof T) & (keyof OAuthAccountGroupByOutputType))]: P extends '_count' + ? T[P] extends boolean + ? number + : Prisma.GetScalarType + : Prisma.GetScalarType + } + > + > + + + +export type OAuthAccountWhereInput = { + AND?: Prisma.OAuthAccountWhereInput | Prisma.OAuthAccountWhereInput[] + OR?: Prisma.OAuthAccountWhereInput[] + NOT?: Prisma.OAuthAccountWhereInput | Prisma.OAuthAccountWhereInput[] + id?: Prisma.IntFilter<"OAuthAccount"> | number + userId?: Prisma.IntFilter<"OAuthAccount"> | number + provider?: Prisma.StringFilter<"OAuthAccount"> | string + providerUserId?: Prisma.StringFilter<"OAuthAccount"> | string + createdAt?: Prisma.DateTimeFilter<"OAuthAccount"> | Date | string + user?: Prisma.XOR +} + +export type OAuthAccountOrderByWithRelationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + provider?: Prisma.SortOrder + providerUserId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + user?: Prisma.UserOrderByWithRelationInput +} + +export type OAuthAccountWhereUniqueInput = Prisma.AtLeast<{ + id?: number + provider_providerUserId?: Prisma.OAuthAccountProviderProviderUserIdCompoundUniqueInput + AND?: Prisma.OAuthAccountWhereInput | Prisma.OAuthAccountWhereInput[] + OR?: Prisma.OAuthAccountWhereInput[] + NOT?: Prisma.OAuthAccountWhereInput | Prisma.OAuthAccountWhereInput[] + userId?: Prisma.IntFilter<"OAuthAccount"> | number + provider?: Prisma.StringFilter<"OAuthAccount"> | string + providerUserId?: Prisma.StringFilter<"OAuthAccount"> | string + createdAt?: Prisma.DateTimeFilter<"OAuthAccount"> | Date | string + user?: Prisma.XOR +}, "id" | "provider_providerUserId"> + +export type OAuthAccountOrderByWithAggregationInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + provider?: Prisma.SortOrder + providerUserId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder + _count?: Prisma.OAuthAccountCountOrderByAggregateInput + _avg?: Prisma.OAuthAccountAvgOrderByAggregateInput + _max?: Prisma.OAuthAccountMaxOrderByAggregateInput + _min?: Prisma.OAuthAccountMinOrderByAggregateInput + _sum?: Prisma.OAuthAccountSumOrderByAggregateInput +} + +export type OAuthAccountScalarWhereWithAggregatesInput = { + AND?: Prisma.OAuthAccountScalarWhereWithAggregatesInput | Prisma.OAuthAccountScalarWhereWithAggregatesInput[] + OR?: Prisma.OAuthAccountScalarWhereWithAggregatesInput[] + NOT?: Prisma.OAuthAccountScalarWhereWithAggregatesInput | Prisma.OAuthAccountScalarWhereWithAggregatesInput[] + id?: Prisma.IntWithAggregatesFilter<"OAuthAccount"> | number + userId?: Prisma.IntWithAggregatesFilter<"OAuthAccount"> | number + provider?: Prisma.StringWithAggregatesFilter<"OAuthAccount"> | string + providerUserId?: Prisma.StringWithAggregatesFilter<"OAuthAccount"> | string + createdAt?: Prisma.DateTimeWithAggregatesFilter<"OAuthAccount"> | Date | string +} + +export type OAuthAccountCreateInput = { + provider: string + providerUserId: string + createdAt?: Date | string + user: Prisma.UserCreateNestedOneWithoutOauthAccountsInput +} + +export type OAuthAccountUncheckedCreateInput = { + id?: number + userId: number + provider: string + providerUserId: string + createdAt?: Date | string +} + +export type OAuthAccountUpdateInput = { + provider?: Prisma.StringFieldUpdateOperationsInput | string + providerUserId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + user?: Prisma.UserUpdateOneRequiredWithoutOauthAccountsNestedInput +} + +export type OAuthAccountUncheckedUpdateInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + userId?: Prisma.IntFieldUpdateOperationsInput | number + provider?: Prisma.StringFieldUpdateOperationsInput | string + providerUserId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type OAuthAccountCreateManyInput = { + id?: number + userId: number + provider: string + providerUserId: string + createdAt?: Date | string +} + +export type OAuthAccountUpdateManyMutationInput = { + provider?: Prisma.StringFieldUpdateOperationsInput | string + providerUserId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type OAuthAccountUncheckedUpdateManyInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + userId?: Prisma.IntFieldUpdateOperationsInput | number + provider?: Prisma.StringFieldUpdateOperationsInput | string + providerUserId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type OAuthAccountListRelationFilter = { + every?: Prisma.OAuthAccountWhereInput + some?: Prisma.OAuthAccountWhereInput + none?: Prisma.OAuthAccountWhereInput +} + +export type OAuthAccountOrderByRelationAggregateInput = { + _count?: Prisma.SortOrder +} + +export type OAuthAccountProviderProviderUserIdCompoundUniqueInput = { + provider: string + providerUserId: string +} + +export type OAuthAccountCountOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + provider?: Prisma.SortOrder + providerUserId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder +} + +export type OAuthAccountAvgOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder +} + +export type OAuthAccountMaxOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + provider?: Prisma.SortOrder + providerUserId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder +} + +export type OAuthAccountMinOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder + provider?: Prisma.SortOrder + providerUserId?: Prisma.SortOrder + createdAt?: Prisma.SortOrder +} + +export type OAuthAccountSumOrderByAggregateInput = { + id?: Prisma.SortOrder + userId?: Prisma.SortOrder +} + +export type OAuthAccountCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.OAuthAccountCreateWithoutUserInput[] | Prisma.OAuthAccountUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.OAuthAccountCreateOrConnectWithoutUserInput | Prisma.OAuthAccountCreateOrConnectWithoutUserInput[] + createMany?: Prisma.OAuthAccountCreateManyUserInputEnvelope + connect?: Prisma.OAuthAccountWhereUniqueInput | Prisma.OAuthAccountWhereUniqueInput[] +} + +export type OAuthAccountUncheckedCreateNestedManyWithoutUserInput = { + create?: Prisma.XOR | Prisma.OAuthAccountCreateWithoutUserInput[] | Prisma.OAuthAccountUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.OAuthAccountCreateOrConnectWithoutUserInput | Prisma.OAuthAccountCreateOrConnectWithoutUserInput[] + createMany?: Prisma.OAuthAccountCreateManyUserInputEnvelope + connect?: Prisma.OAuthAccountWhereUniqueInput | Prisma.OAuthAccountWhereUniqueInput[] +} + +export type OAuthAccountUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.OAuthAccountCreateWithoutUserInput[] | Prisma.OAuthAccountUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.OAuthAccountCreateOrConnectWithoutUserInput | Prisma.OAuthAccountCreateOrConnectWithoutUserInput[] + upsert?: Prisma.OAuthAccountUpsertWithWhereUniqueWithoutUserInput | Prisma.OAuthAccountUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.OAuthAccountCreateManyUserInputEnvelope + set?: Prisma.OAuthAccountWhereUniqueInput | Prisma.OAuthAccountWhereUniqueInput[] + disconnect?: Prisma.OAuthAccountWhereUniqueInput | Prisma.OAuthAccountWhereUniqueInput[] + delete?: Prisma.OAuthAccountWhereUniqueInput | Prisma.OAuthAccountWhereUniqueInput[] + connect?: Prisma.OAuthAccountWhereUniqueInput | Prisma.OAuthAccountWhereUniqueInput[] + update?: Prisma.OAuthAccountUpdateWithWhereUniqueWithoutUserInput | Prisma.OAuthAccountUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.OAuthAccountUpdateManyWithWhereWithoutUserInput | Prisma.OAuthAccountUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.OAuthAccountScalarWhereInput | Prisma.OAuthAccountScalarWhereInput[] +} + +export type OAuthAccountUncheckedUpdateManyWithoutUserNestedInput = { + create?: Prisma.XOR | Prisma.OAuthAccountCreateWithoutUserInput[] | Prisma.OAuthAccountUncheckedCreateWithoutUserInput[] + connectOrCreate?: Prisma.OAuthAccountCreateOrConnectWithoutUserInput | Prisma.OAuthAccountCreateOrConnectWithoutUserInput[] + upsert?: Prisma.OAuthAccountUpsertWithWhereUniqueWithoutUserInput | Prisma.OAuthAccountUpsertWithWhereUniqueWithoutUserInput[] + createMany?: Prisma.OAuthAccountCreateManyUserInputEnvelope + set?: Prisma.OAuthAccountWhereUniqueInput | Prisma.OAuthAccountWhereUniqueInput[] + disconnect?: Prisma.OAuthAccountWhereUniqueInput | Prisma.OAuthAccountWhereUniqueInput[] + delete?: Prisma.OAuthAccountWhereUniqueInput | Prisma.OAuthAccountWhereUniqueInput[] + connect?: Prisma.OAuthAccountWhereUniqueInput | Prisma.OAuthAccountWhereUniqueInput[] + update?: Prisma.OAuthAccountUpdateWithWhereUniqueWithoutUserInput | Prisma.OAuthAccountUpdateWithWhereUniqueWithoutUserInput[] + updateMany?: Prisma.OAuthAccountUpdateManyWithWhereWithoutUserInput | Prisma.OAuthAccountUpdateManyWithWhereWithoutUserInput[] + deleteMany?: Prisma.OAuthAccountScalarWhereInput | Prisma.OAuthAccountScalarWhereInput[] +} + +export type OAuthAccountCreateWithoutUserInput = { + provider: string + providerUserId: string + createdAt?: Date | string +} + +export type OAuthAccountUncheckedCreateWithoutUserInput = { + id?: number + provider: string + providerUserId: string + createdAt?: Date | string +} + +export type OAuthAccountCreateOrConnectWithoutUserInput = { + where: Prisma.OAuthAccountWhereUniqueInput + create: Prisma.XOR +} + +export type OAuthAccountCreateManyUserInputEnvelope = { + data: Prisma.OAuthAccountCreateManyUserInput | Prisma.OAuthAccountCreateManyUserInput[] + skipDuplicates?: boolean +} + +export type OAuthAccountUpsertWithWhereUniqueWithoutUserInput = { + where: Prisma.OAuthAccountWhereUniqueInput + update: Prisma.XOR + create: Prisma.XOR +} + +export type OAuthAccountUpdateWithWhereUniqueWithoutUserInput = { + where: Prisma.OAuthAccountWhereUniqueInput + data: Prisma.XOR +} + +export type OAuthAccountUpdateManyWithWhereWithoutUserInput = { + where: Prisma.OAuthAccountScalarWhereInput + data: Prisma.XOR +} + +export type OAuthAccountScalarWhereInput = { + AND?: Prisma.OAuthAccountScalarWhereInput | Prisma.OAuthAccountScalarWhereInput[] + OR?: Prisma.OAuthAccountScalarWhereInput[] + NOT?: Prisma.OAuthAccountScalarWhereInput | Prisma.OAuthAccountScalarWhereInput[] + id?: Prisma.IntFilter<"OAuthAccount"> | number + userId?: Prisma.IntFilter<"OAuthAccount"> | number + provider?: Prisma.StringFilter<"OAuthAccount"> | string + providerUserId?: Prisma.StringFilter<"OAuthAccount"> | string + createdAt?: Prisma.DateTimeFilter<"OAuthAccount"> | Date | string +} + +export type OAuthAccountCreateManyUserInput = { + id?: number + provider: string + providerUserId: string + createdAt?: Date | string +} + +export type OAuthAccountUpdateWithoutUserInput = { + provider?: Prisma.StringFieldUpdateOperationsInput | string + providerUserId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type OAuthAccountUncheckedUpdateWithoutUserInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + provider?: Prisma.StringFieldUpdateOperationsInput | string + providerUserId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + +export type OAuthAccountUncheckedUpdateManyWithoutUserInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + provider?: Prisma.StringFieldUpdateOperationsInput | string + providerUserId?: Prisma.StringFieldUpdateOperationsInput | string + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string +} + + + +export type OAuthAccountSelect = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + provider?: boolean + providerUserId?: boolean + createdAt?: boolean + user?: boolean | Prisma.UserDefaultArgs +}, ExtArgs["result"]["oAuthAccount"]> + +export type OAuthAccountSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + provider?: boolean + providerUserId?: boolean + createdAt?: boolean + user?: boolean | Prisma.UserDefaultArgs +}, ExtArgs["result"]["oAuthAccount"]> + +export type OAuthAccountSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ + id?: boolean + userId?: boolean + provider?: boolean + providerUserId?: boolean + createdAt?: boolean + user?: boolean | Prisma.UserDefaultArgs +}, ExtArgs["result"]["oAuthAccount"]> + +export type OAuthAccountSelectScalar = { + id?: boolean + userId?: boolean + provider?: boolean + providerUserId?: boolean + createdAt?: boolean +} + +export type OAuthAccountOmit = runtime.Types.Extensions.GetOmit<"id" | "userId" | "provider" | "providerUserId" | "createdAt", ExtArgs["result"]["oAuthAccount"]> +export type OAuthAccountInclude = { + user?: boolean | Prisma.UserDefaultArgs +} +export type OAuthAccountIncludeCreateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs +} +export type OAuthAccountIncludeUpdateManyAndReturn = { + user?: boolean | Prisma.UserDefaultArgs +} + +export type $OAuthAccountPayload = { + name: "OAuthAccount" + objects: { + user: Prisma.$UserPayload + } + scalars: runtime.Types.Extensions.GetPayloadResult<{ + id: number + userId: number + provider: string + providerUserId: string + createdAt: Date + }, ExtArgs["result"]["oAuthAccount"]> + composites: {} +} + +export type OAuthAccountGetPayload = runtime.Types.Result.GetResult + +export type OAuthAccountCountArgs = + Omit & { + select?: OAuthAccountCountAggregateInputType | true + } + +export interface OAuthAccountDelegate { + [K: symbol]: { types: Prisma.TypeMap['model']['OAuthAccount'], meta: { name: 'OAuthAccount' } } + /** + * Find zero or one OAuthAccount that matches the filter. + * @param {OAuthAccountFindUniqueArgs} args - Arguments to find a OAuthAccount + * @example + * // Get one OAuthAccount + * const oAuthAccount = await prisma.oAuthAccount.findUnique({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__OAuthAccountClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find one OAuthAccount that matches the filter or throw an error with `error.code='P2025'` + * if no matches were found. + * @param {OAuthAccountFindUniqueOrThrowArgs} args - Arguments to find a OAuthAccount + * @example + * // Get one OAuthAccount + * const oAuthAccount = await prisma.oAuthAccount.findUniqueOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__OAuthAccountClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find the first OAuthAccount that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {OAuthAccountFindFirstArgs} args - Arguments to find a OAuthAccount + * @example + * // Get one OAuthAccount + * const oAuthAccount = await prisma.oAuthAccount.findFirst({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__OAuthAccountClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> + + /** + * Find the first OAuthAccount that matches the filter or + * throw `PrismaKnownClientError` with `P2025` code if no matches were found. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {OAuthAccountFindFirstOrThrowArgs} args - Arguments to find a OAuthAccount + * @example + * // Get one OAuthAccount + * const oAuthAccount = await prisma.oAuthAccount.findFirstOrThrow({ + * where: { + * // ... provide filter here + * } + * }) + */ + findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__OAuthAccountClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Find zero or more OAuthAccounts that matches the filter. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {OAuthAccountFindManyArgs} args - Arguments to filter and select certain fields only. + * @example + * // Get all OAuthAccounts + * const oAuthAccounts = await prisma.oAuthAccount.findMany() + * + * // Get first 10 OAuthAccounts + * const oAuthAccounts = await prisma.oAuthAccount.findMany({ take: 10 }) + * + * // Only select the `id` + * const oAuthAccountWithIdOnly = await prisma.oAuthAccount.findMany({ select: { id: true } }) + * + */ + findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> + + /** + * Create a OAuthAccount. + * @param {OAuthAccountCreateArgs} args - Arguments to create a OAuthAccount. + * @example + * // Create one OAuthAccount + * const OAuthAccount = await prisma.oAuthAccount.create({ + * data: { + * // ... data to create a OAuthAccount + * } + * }) + * + */ + create(args: Prisma.SelectSubset>): Prisma.Prisma__OAuthAccountClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Create many OAuthAccounts. + * @param {OAuthAccountCreateManyArgs} args - Arguments to create many OAuthAccounts. + * @example + * // Create many OAuthAccounts + * const oAuthAccount = await prisma.oAuthAccount.createMany({ + * data: [ + * // ... provide data here + * ] + * }) + * + */ + createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Create many OAuthAccounts and returns the data saved in the database. + * @param {OAuthAccountCreateManyAndReturnArgs} args - Arguments to create many OAuthAccounts. + * @example + * // Create many OAuthAccounts + * const oAuthAccount = await prisma.oAuthAccount.createManyAndReturn({ + * data: [ + * // ... provide data here + * ] + * }) + * + * // Create many OAuthAccounts and only return the `id` + * const oAuthAccountWithIdOnly = await prisma.oAuthAccount.createManyAndReturn({ + * select: { id: true }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + createManyAndReturn(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "createManyAndReturn", GlobalOmitOptions>> + + /** + * Delete a OAuthAccount. + * @param {OAuthAccountDeleteArgs} args - Arguments to delete one OAuthAccount. + * @example + * // Delete one OAuthAccount + * const OAuthAccount = await prisma.oAuthAccount.delete({ + * where: { + * // ... filter to delete one OAuthAccount + * } + * }) + * + */ + delete(args: Prisma.SelectSubset>): Prisma.Prisma__OAuthAccountClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Update one OAuthAccount. + * @param {OAuthAccountUpdateArgs} args - Arguments to update one OAuthAccount. + * @example + * // Update one OAuthAccount + * const oAuthAccount = await prisma.oAuthAccount.update({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + update(args: Prisma.SelectSubset>): Prisma.Prisma__OAuthAccountClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + /** + * Delete zero or more OAuthAccounts. + * @param {OAuthAccountDeleteManyArgs} args - Arguments to filter OAuthAccounts to delete. + * @example + * // Delete a few OAuthAccounts + * const { count } = await prisma.oAuthAccount.deleteMany({ + * where: { + * // ... provide filter here + * } + * }) + * + */ + deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more OAuthAccounts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {OAuthAccountUpdateManyArgs} args - Arguments to update one or more rows. + * @example + * // Update many OAuthAccounts + * const oAuthAccount = await prisma.oAuthAccount.updateMany({ + * where: { + * // ... provide filter here + * }, + * data: { + * // ... provide data here + * } + * }) + * + */ + updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise + + /** + * Update zero or more OAuthAccounts and returns the data updated in the database. + * @param {OAuthAccountUpdateManyAndReturnArgs} args - Arguments to update many OAuthAccounts. + * @example + * // Update many OAuthAccounts + * const oAuthAccount = await prisma.oAuthAccount.updateManyAndReturn({ + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * + * // Update zero or more OAuthAccounts and only return the `id` + * const oAuthAccountWithIdOnly = await prisma.oAuthAccount.updateManyAndReturn({ + * select: { id: true }, + * where: { + * // ... provide filter here + * }, + * data: [ + * // ... provide data here + * ] + * }) + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * + */ + updateManyAndReturn(args: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "updateManyAndReturn", GlobalOmitOptions>> + + /** + * Create or update one OAuthAccount. + * @param {OAuthAccountUpsertArgs} args - Arguments to update or create a OAuthAccount. + * @example + * // Update or create a OAuthAccount + * const oAuthAccount = await prisma.oAuthAccount.upsert({ + * create: { + * // ... data to create a OAuthAccount + * }, + * update: { + * // ... in case it already exists, update + * }, + * where: { + * // ... the filter for the OAuthAccount we want to update + * } + * }) + */ + upsert(args: Prisma.SelectSubset>): Prisma.Prisma__OAuthAccountClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> + + + /** + * Count the number of OAuthAccounts. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {OAuthAccountCountArgs} args - Arguments to filter OAuthAccounts to count. + * @example + * // Count the number of OAuthAccounts + * const count = await prisma.oAuthAccount.count({ + * where: { + * // ... the filter for the OAuthAccounts we want to count + * } + * }) + **/ + count( + args?: Prisma.Subset, + ): Prisma.PrismaPromise< + T extends runtime.Types.Utils.Record<'select', any> + ? T['select'] extends true + ? number + : Prisma.GetScalarType + : number + > + + /** + * Allows you to perform aggregations operations on a OAuthAccount. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {OAuthAccountAggregateArgs} args - Select which aggregations you would like to apply and on what fields. + * @example + * // Ordered by age ascending + * // Where email contains prisma.io + * // Limited to the 10 users + * const aggregations = await prisma.user.aggregate({ + * _avg: { + * age: true, + * }, + * where: { + * email: { + * contains: "prisma.io", + * }, + * }, + * orderBy: { + * age: "asc", + * }, + * take: 10, + * }) + **/ + aggregate(args: Prisma.Subset): Prisma.PrismaPromise> + + /** + * Group by OAuthAccount. + * Note, that providing `undefined` is treated as the value not being there. + * Read more here: https://pris.ly/d/null-undefined + * @param {OAuthAccountGroupByArgs} args - Group by arguments. + * @example + * // Group by city, order by createdAt, get count + * const result = await prisma.user.groupBy({ + * by: ['city', 'createdAt'], + * orderBy: { + * createdAt: true + * }, + * _count: { + * _all: true + * }, + * }) + * + **/ + groupBy< + T extends OAuthAccountGroupByArgs, + HasSelectOrTake extends Prisma.Or< + Prisma.Extends<'skip', Prisma.Keys>, + Prisma.Extends<'take', Prisma.Keys> + >, + OrderByArg extends Prisma.True extends HasSelectOrTake + ? { orderBy: OAuthAccountGroupByArgs['orderBy'] } + : { orderBy?: OAuthAccountGroupByArgs['orderBy'] }, + OrderFields extends Prisma.ExcludeUnderscoreKeys>>, + ByFields extends Prisma.MaybeTupleToUnion, + ByValid extends Prisma.Has, + HavingFields extends Prisma.GetHavingFields, + HavingValid extends Prisma.Has, + ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False, + InputErrors extends ByEmpty extends Prisma.True + ? `Error: "by" must not be empty.` + : HavingValid extends Prisma.False + ? { + [P in HavingFields]: P extends ByFields + ? never + : P extends string + ? `Error: Field "${P}" used in "having" needs to be provided in "by".` + : [ + Error, + 'Field ', + P, + ` in "having" needs to be provided in "by"`, + ] + }[HavingFields] + : 'take' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "take", you also need to provide "orderBy"' + : 'skip' extends Prisma.Keys + ? 'orderBy' extends Prisma.Keys + ? ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + : 'Error: If you provide "skip", you also need to provide "orderBy"' + : ByValid extends Prisma.True + ? {} + : { + [P in OrderFields]: P extends ByFields + ? never + : `Error: Field "${P}" in "orderBy" needs to be provided in "by"` + }[OrderFields] + >(args: Prisma.SubsetIntersection & InputErrors): {} extends InputErrors ? GetOAuthAccountGroupByPayload : Prisma.PrismaPromise +/** + * Fields of the OAuthAccount model + */ +readonly fields: OAuthAccountFieldRefs; +} + +/** + * The delegate class that acts as a "Promise-like" for OAuthAccount. + * Why is this prefixed with `Prisma__`? + * Because we want to prevent naming conflicts as mentioned in + * https://github.com/prisma/prisma-client-js/issues/707 + */ +export interface Prisma__OAuthAccountClient extends Prisma.PrismaPromise { + readonly [Symbol.toStringTag]: "PrismaPromise" + user = {}>(args?: Prisma.Subset>): Prisma.Prisma__UserClient, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions> + /** + * Attaches callbacks for the resolution and/or rejection of the Promise. + * @param onfulfilled The callback to execute when the Promise is resolved. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of which ever callback is executed. + */ + then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * Attaches a callback for only the rejection of the Promise. + * @param onrejected The callback to execute when the Promise is rejected. + * @returns A Promise for the completion of the callback. + */ + catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise + /** + * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The + * resolved value cannot be modified from the callback. + * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected). + * @returns A Promise for the completion of the callback. + */ + finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise +} + + + + +/** + * Fields of the OAuthAccount model + */ +export interface OAuthAccountFieldRefs { + readonly id: Prisma.FieldRef<"OAuthAccount", 'Int'> + readonly userId: Prisma.FieldRef<"OAuthAccount", 'Int'> + readonly provider: Prisma.FieldRef<"OAuthAccount", 'String'> + readonly providerUserId: Prisma.FieldRef<"OAuthAccount", 'String'> + readonly createdAt: Prisma.FieldRef<"OAuthAccount", 'DateTime'> +} + + +// Custom InputTypes +/** + * OAuthAccount findUnique + */ +export type OAuthAccountFindUniqueArgs = { + /** + * Select specific fields to fetch from the OAuthAccount + */ + select?: Prisma.OAuthAccountSelect | null + /** + * Omit specific fields from the OAuthAccount + */ + omit?: Prisma.OAuthAccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.OAuthAccountInclude | null + /** + * Filter, which OAuthAccount to fetch. + */ + where: Prisma.OAuthAccountWhereUniqueInput +} + +/** + * OAuthAccount findUniqueOrThrow + */ +export type OAuthAccountFindUniqueOrThrowArgs = { + /** + * Select specific fields to fetch from the OAuthAccount + */ + select?: Prisma.OAuthAccountSelect | null + /** + * Omit specific fields from the OAuthAccount + */ + omit?: Prisma.OAuthAccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.OAuthAccountInclude | null + /** + * Filter, which OAuthAccount to fetch. + */ + where: Prisma.OAuthAccountWhereUniqueInput +} + +/** + * OAuthAccount findFirst + */ +export type OAuthAccountFindFirstArgs = { + /** + * Select specific fields to fetch from the OAuthAccount + */ + select?: Prisma.OAuthAccountSelect | null + /** + * Omit specific fields from the OAuthAccount + */ + omit?: Prisma.OAuthAccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.OAuthAccountInclude | null + /** + * Filter, which OAuthAccount to fetch. + */ + where?: Prisma.OAuthAccountWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of OAuthAccounts to fetch. + */ + orderBy?: Prisma.OAuthAccountOrderByWithRelationInput | Prisma.OAuthAccountOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for OAuthAccounts. + */ + cursor?: Prisma.OAuthAccountWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` OAuthAccounts from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` OAuthAccounts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of OAuthAccounts. + */ + distinct?: Prisma.OAuthAccountScalarFieldEnum | Prisma.OAuthAccountScalarFieldEnum[] +} + +/** + * OAuthAccount findFirstOrThrow + */ +export type OAuthAccountFindFirstOrThrowArgs = { + /** + * Select specific fields to fetch from the OAuthAccount + */ + select?: Prisma.OAuthAccountSelect | null + /** + * Omit specific fields from the OAuthAccount + */ + omit?: Prisma.OAuthAccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.OAuthAccountInclude | null + /** + * Filter, which OAuthAccount to fetch. + */ + where?: Prisma.OAuthAccountWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of OAuthAccounts to fetch. + */ + orderBy?: Prisma.OAuthAccountOrderByWithRelationInput | Prisma.OAuthAccountOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for searching for OAuthAccounts. + */ + cursor?: Prisma.OAuthAccountWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` OAuthAccounts from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` OAuthAccounts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of OAuthAccounts. + */ + distinct?: Prisma.OAuthAccountScalarFieldEnum | Prisma.OAuthAccountScalarFieldEnum[] +} + +/** + * OAuthAccount findMany + */ +export type OAuthAccountFindManyArgs = { + /** + * Select specific fields to fetch from the OAuthAccount + */ + select?: Prisma.OAuthAccountSelect | null + /** + * Omit specific fields from the OAuthAccount + */ + omit?: Prisma.OAuthAccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.OAuthAccountInclude | null + /** + * Filter, which OAuthAccounts to fetch. + */ + where?: Prisma.OAuthAccountWhereInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} + * + * Determine the order of OAuthAccounts to fetch. + */ + orderBy?: Prisma.OAuthAccountOrderByWithRelationInput | Prisma.OAuthAccountOrderByWithRelationInput[] + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} + * + * Sets the position for listing OAuthAccounts. + */ + cursor?: Prisma.OAuthAccountWhereUniqueInput + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Take `±n` OAuthAccounts from the position of the cursor. + */ + take?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} + * + * Skip the first `n` OAuthAccounts. + */ + skip?: number + /** + * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} + * + * Filter by unique combinations of OAuthAccounts. + */ + distinct?: Prisma.OAuthAccountScalarFieldEnum | Prisma.OAuthAccountScalarFieldEnum[] +} + +/** + * OAuthAccount create + */ +export type OAuthAccountCreateArgs = { + /** + * Select specific fields to fetch from the OAuthAccount + */ + select?: Prisma.OAuthAccountSelect | null + /** + * Omit specific fields from the OAuthAccount + */ + omit?: Prisma.OAuthAccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.OAuthAccountInclude | null + /** + * The data needed to create a OAuthAccount. + */ + data: Prisma.XOR +} + +/** + * OAuthAccount createMany + */ +export type OAuthAccountCreateManyArgs = { + /** + * The data used to create many OAuthAccounts. + */ + data: Prisma.OAuthAccountCreateManyInput | Prisma.OAuthAccountCreateManyInput[] + skipDuplicates?: boolean +} + +/** + * OAuthAccount createManyAndReturn + */ +export type OAuthAccountCreateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the OAuthAccount + */ + select?: Prisma.OAuthAccountSelectCreateManyAndReturn | null + /** + * Omit specific fields from the OAuthAccount + */ + omit?: Prisma.OAuthAccountOmit | null + /** + * The data used to create many OAuthAccounts. + */ + data: Prisma.OAuthAccountCreateManyInput | Prisma.OAuthAccountCreateManyInput[] + skipDuplicates?: boolean + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.OAuthAccountIncludeCreateManyAndReturn | null +} + +/** + * OAuthAccount update + */ +export type OAuthAccountUpdateArgs = { + /** + * Select specific fields to fetch from the OAuthAccount + */ + select?: Prisma.OAuthAccountSelect | null + /** + * Omit specific fields from the OAuthAccount + */ + omit?: Prisma.OAuthAccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.OAuthAccountInclude | null + /** + * The data needed to update a OAuthAccount. + */ + data: Prisma.XOR + /** + * Choose, which OAuthAccount to update. + */ + where: Prisma.OAuthAccountWhereUniqueInput +} + +/** + * OAuthAccount updateMany + */ +export type OAuthAccountUpdateManyArgs = { + /** + * The data used to update OAuthAccounts. + */ + data: Prisma.XOR + /** + * Filter which OAuthAccounts to update + */ + where?: Prisma.OAuthAccountWhereInput + /** + * Limit how many OAuthAccounts to update. + */ + limit?: number +} + +/** + * OAuthAccount updateManyAndReturn + */ +export type OAuthAccountUpdateManyAndReturnArgs = { + /** + * Select specific fields to fetch from the OAuthAccount + */ + select?: Prisma.OAuthAccountSelectUpdateManyAndReturn | null + /** + * Omit specific fields from the OAuthAccount + */ + omit?: Prisma.OAuthAccountOmit | null + /** + * The data used to update OAuthAccounts. + */ + data: Prisma.XOR + /** + * Filter which OAuthAccounts to update + */ + where?: Prisma.OAuthAccountWhereInput + /** + * Limit how many OAuthAccounts to update. + */ + limit?: number + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.OAuthAccountIncludeUpdateManyAndReturn | null +} + +/** + * OAuthAccount upsert + */ +export type OAuthAccountUpsertArgs = { + /** + * Select specific fields to fetch from the OAuthAccount + */ + select?: Prisma.OAuthAccountSelect | null + /** + * Omit specific fields from the OAuthAccount + */ + omit?: Prisma.OAuthAccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.OAuthAccountInclude | null + /** + * The filter to search for the OAuthAccount to update in case it exists. + */ + where: Prisma.OAuthAccountWhereUniqueInput + /** + * In case the OAuthAccount found by the `where` argument doesn't exist, create a new OAuthAccount with this data. + */ + create: Prisma.XOR + /** + * In case the OAuthAccount was found with the provided `where` argument, update it with this data. + */ + update: Prisma.XOR +} + +/** + * OAuthAccount delete + */ +export type OAuthAccountDeleteArgs = { + /** + * Select specific fields to fetch from the OAuthAccount + */ + select?: Prisma.OAuthAccountSelect | null + /** + * Omit specific fields from the OAuthAccount + */ + omit?: Prisma.OAuthAccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.OAuthAccountInclude | null + /** + * Filter which OAuthAccount to delete. + */ + where: Prisma.OAuthAccountWhereUniqueInput +} + +/** + * OAuthAccount deleteMany + */ +export type OAuthAccountDeleteManyArgs = { + /** + * Filter which OAuthAccounts to delete + */ + where?: Prisma.OAuthAccountWhereInput + /** + * Limit how many OAuthAccounts to delete. + */ + limit?: number +} + +/** + * OAuthAccount without action + */ +export type OAuthAccountDefaultArgs = { + /** + * Select specific fields to fetch from the OAuthAccount + */ + select?: Prisma.OAuthAccountSelect | null + /** + * Omit specific fields from the OAuthAccount + */ + omit?: Prisma.OAuthAccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.OAuthAccountInclude | null +} diff --git a/backend/src/generated/prisma/models/User.ts b/backend/src/generated/prisma/models/User.ts index 43b68a3..b153c6c 100644 --- a/backend/src/generated/prisma/models/User.ts +++ b/backend/src/generated/prisma/models/User.ts @@ -183,7 +183,7 @@ export type UserGroupByOutputType = { id: number name: string email: string - passwordHash: string + passwordHash: string | null createdAt: Date _count: UserCountAggregateOutputType | null _avg: UserAvgAggregateOutputType | null @@ -214,22 +214,24 @@ export type UserWhereInput = { id?: Prisma.IntFilter<"User"> | number name?: Prisma.StringFilter<"User"> | string email?: Prisma.StringFilter<"User"> | string - passwordHash?: Prisma.StringFilter<"User"> | string + passwordHash?: Prisma.StringNullableFilter<"User"> | string | null createdAt?: Prisma.DateTimeFilter<"User"> | Date | string workspaces?: Prisma.WorkspaceListRelationFilter artifacts?: Prisma.ArtifactListRelationFilter githubRepositories?: Prisma.GithubRepositoryListRelationFilter + oauthAccounts?: Prisma.OAuthAccountListRelationFilter } export type UserOrderByWithRelationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder email?: Prisma.SortOrder - passwordHash?: Prisma.SortOrder + passwordHash?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder workspaces?: Prisma.WorkspaceOrderByRelationAggregateInput artifacts?: Prisma.ArtifactOrderByRelationAggregateInput githubRepositories?: Prisma.GithubRepositoryOrderByRelationAggregateInput + oauthAccounts?: Prisma.OAuthAccountOrderByRelationAggregateInput } export type UserWhereUniqueInput = Prisma.AtLeast<{ @@ -239,18 +241,19 @@ export type UserWhereUniqueInput = Prisma.AtLeast<{ OR?: Prisma.UserWhereInput[] NOT?: Prisma.UserWhereInput | Prisma.UserWhereInput[] name?: Prisma.StringFilter<"User"> | string - passwordHash?: Prisma.StringFilter<"User"> | string + passwordHash?: Prisma.StringNullableFilter<"User"> | string | null createdAt?: Prisma.DateTimeFilter<"User"> | Date | string workspaces?: Prisma.WorkspaceListRelationFilter artifacts?: Prisma.ArtifactListRelationFilter githubRepositories?: Prisma.GithubRepositoryListRelationFilter + oauthAccounts?: Prisma.OAuthAccountListRelationFilter }, "id" | "email"> export type UserOrderByWithAggregationInput = { id?: Prisma.SortOrder name?: Prisma.SortOrder email?: Prisma.SortOrder - passwordHash?: Prisma.SortOrder + passwordHash?: Prisma.SortOrderInput | Prisma.SortOrder createdAt?: Prisma.SortOrder _count?: Prisma.UserCountOrderByAggregateInput _avg?: Prisma.UserAvgOrderByAggregateInput @@ -266,64 +269,68 @@ export type UserScalarWhereWithAggregatesInput = { id?: Prisma.IntWithAggregatesFilter<"User"> | number name?: Prisma.StringWithAggregatesFilter<"User"> | string email?: Prisma.StringWithAggregatesFilter<"User"> | string - passwordHash?: Prisma.StringWithAggregatesFilter<"User"> | string + passwordHash?: Prisma.StringNullableWithAggregatesFilter<"User"> | string | null createdAt?: Prisma.DateTimeWithAggregatesFilter<"User"> | Date | string } export type UserCreateInput = { name?: string email: string - passwordHash: string + passwordHash?: string | null createdAt?: Date | string workspaces?: Prisma.WorkspaceCreateNestedManyWithoutOwnerInput artifacts?: Prisma.ArtifactCreateNestedManyWithoutUserInput githubRepositories?: Prisma.GithubRepositoryCreateNestedManyWithoutUserInput + oauthAccounts?: Prisma.OAuthAccountCreateNestedManyWithoutUserInput } export type UserUncheckedCreateInput = { id?: number name?: string email: string - passwordHash: string + passwordHash?: string | null createdAt?: Date | string workspaces?: Prisma.WorkspaceUncheckedCreateNestedManyWithoutOwnerInput artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutUserInput githubRepositories?: Prisma.GithubRepositoryUncheckedCreateNestedManyWithoutUserInput + oauthAccounts?: Prisma.OAuthAccountUncheckedCreateNestedManyWithoutUserInput } export type UserUpdateInput = { name?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.StringFieldUpdateOperationsInput | string - passwordHash?: Prisma.StringFieldUpdateOperationsInput | string + passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string workspaces?: Prisma.WorkspaceUpdateManyWithoutOwnerNestedInput artifacts?: Prisma.ArtifactUpdateManyWithoutUserNestedInput githubRepositories?: Prisma.GithubRepositoryUpdateManyWithoutUserNestedInput + oauthAccounts?: Prisma.OAuthAccountUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.StringFieldUpdateOperationsInput | string - passwordHash?: Prisma.StringFieldUpdateOperationsInput | string + passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string workspaces?: Prisma.WorkspaceUncheckedUpdateManyWithoutOwnerNestedInput artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutUserNestedInput githubRepositories?: Prisma.GithubRepositoryUncheckedUpdateManyWithoutUserNestedInput + oauthAccounts?: Prisma.OAuthAccountUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateManyInput = { id?: number name?: string email: string - passwordHash: string + passwordHash?: string | null createdAt?: Date | string } export type UserUpdateManyMutationInput = { name?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.StringFieldUpdateOperationsInput | string - passwordHash?: Prisma.StringFieldUpdateOperationsInput | string + passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } @@ -331,7 +338,7 @@ export type UserUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.StringFieldUpdateOperationsInput | string - passwordHash?: Prisma.StringFieldUpdateOperationsInput | string + passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } @@ -376,6 +383,10 @@ export type StringFieldUpdateOperationsInput = { set?: string } +export type NullableStringFieldUpdateOperationsInput = { + set?: string | null +} + export type DateTimeFieldUpdateOperationsInput = { set?: Date | string } @@ -430,23 +441,39 @@ export type UserUpdateOneRequiredWithoutGithubRepositoriesNestedInput = { update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutGithubRepositoriesInput> } +export type UserCreateNestedOneWithoutOauthAccountsInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutOauthAccountsInput + connect?: Prisma.UserWhereUniqueInput +} + +export type UserUpdateOneRequiredWithoutOauthAccountsNestedInput = { + create?: Prisma.XOR + connectOrCreate?: Prisma.UserCreateOrConnectWithoutOauthAccountsInput + upsert?: Prisma.UserUpsertWithoutOauthAccountsInput + connect?: Prisma.UserWhereUniqueInput + update?: Prisma.XOR, Prisma.UserUncheckedUpdateWithoutOauthAccountsInput> +} + export type UserCreateWithoutWorkspacesInput = { name?: string email: string - passwordHash: string + passwordHash?: string | null createdAt?: Date | string artifacts?: Prisma.ArtifactCreateNestedManyWithoutUserInput githubRepositories?: Prisma.GithubRepositoryCreateNestedManyWithoutUserInput + oauthAccounts?: Prisma.OAuthAccountCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutWorkspacesInput = { id?: number name?: string email: string - passwordHash: string + passwordHash?: string | null createdAt?: Date | string artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutUserInput githubRepositories?: Prisma.GithubRepositoryUncheckedCreateNestedManyWithoutUserInput + oauthAccounts?: Prisma.OAuthAccountUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutWorkspacesInput = { @@ -468,39 +495,43 @@ export type UserUpdateToOneWithWhereWithoutWorkspacesInput = { export type UserUpdateWithoutWorkspacesInput = { name?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.StringFieldUpdateOperationsInput | string - passwordHash?: Prisma.StringFieldUpdateOperationsInput | string + passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string artifacts?: Prisma.ArtifactUpdateManyWithoutUserNestedInput githubRepositories?: Prisma.GithubRepositoryUpdateManyWithoutUserNestedInput + oauthAccounts?: Prisma.OAuthAccountUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutWorkspacesInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.StringFieldUpdateOperationsInput | string - passwordHash?: Prisma.StringFieldUpdateOperationsInput | string + passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutUserNestedInput githubRepositories?: Prisma.GithubRepositoryUncheckedUpdateManyWithoutUserNestedInput + oauthAccounts?: Prisma.OAuthAccountUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateWithoutArtifactsInput = { name?: string email: string - passwordHash: string + passwordHash?: string | null createdAt?: Date | string workspaces?: Prisma.WorkspaceCreateNestedManyWithoutOwnerInput githubRepositories?: Prisma.GithubRepositoryCreateNestedManyWithoutUserInput + oauthAccounts?: Prisma.OAuthAccountCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutArtifactsInput = { id?: number name?: string email: string - passwordHash: string + passwordHash?: string | null createdAt?: Date | string workspaces?: Prisma.WorkspaceUncheckedCreateNestedManyWithoutOwnerInput githubRepositories?: Prisma.GithubRepositoryUncheckedCreateNestedManyWithoutUserInput + oauthAccounts?: Prisma.OAuthAccountUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutArtifactsInput = { @@ -522,39 +553,43 @@ export type UserUpdateToOneWithWhereWithoutArtifactsInput = { export type UserUpdateWithoutArtifactsInput = { name?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.StringFieldUpdateOperationsInput | string - passwordHash?: Prisma.StringFieldUpdateOperationsInput | string + passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string workspaces?: Prisma.WorkspaceUpdateManyWithoutOwnerNestedInput githubRepositories?: Prisma.GithubRepositoryUpdateManyWithoutUserNestedInput + oauthAccounts?: Prisma.OAuthAccountUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutArtifactsInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.StringFieldUpdateOperationsInput | string - passwordHash?: Prisma.StringFieldUpdateOperationsInput | string + passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string workspaces?: Prisma.WorkspaceUncheckedUpdateManyWithoutOwnerNestedInput githubRepositories?: Prisma.GithubRepositoryUncheckedUpdateManyWithoutUserNestedInput + oauthAccounts?: Prisma.OAuthAccountUncheckedUpdateManyWithoutUserNestedInput } export type UserCreateWithoutGithubRepositoriesInput = { name?: string email: string - passwordHash: string + passwordHash?: string | null createdAt?: Date | string workspaces?: Prisma.WorkspaceCreateNestedManyWithoutOwnerInput artifacts?: Prisma.ArtifactCreateNestedManyWithoutUserInput + oauthAccounts?: Prisma.OAuthAccountCreateNestedManyWithoutUserInput } export type UserUncheckedCreateWithoutGithubRepositoriesInput = { id?: number name?: string email: string - passwordHash: string + passwordHash?: string | null createdAt?: Date | string workspaces?: Prisma.WorkspaceUncheckedCreateNestedManyWithoutOwnerInput artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutUserInput + oauthAccounts?: Prisma.OAuthAccountUncheckedCreateNestedManyWithoutUserInput } export type UserCreateOrConnectWithoutGithubRepositoriesInput = { @@ -576,20 +611,80 @@ export type UserUpdateToOneWithWhereWithoutGithubRepositoriesInput = { export type UserUpdateWithoutGithubRepositoriesInput = { name?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.StringFieldUpdateOperationsInput | string - passwordHash?: Prisma.StringFieldUpdateOperationsInput | string + passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string workspaces?: Prisma.WorkspaceUpdateManyWithoutOwnerNestedInput artifacts?: Prisma.ArtifactUpdateManyWithoutUserNestedInput + oauthAccounts?: Prisma.OAuthAccountUpdateManyWithoutUserNestedInput } export type UserUncheckedUpdateWithoutGithubRepositoriesInput = { id?: Prisma.IntFieldUpdateOperationsInput | number name?: Prisma.StringFieldUpdateOperationsInput | string email?: Prisma.StringFieldUpdateOperationsInput | string - passwordHash?: Prisma.StringFieldUpdateOperationsInput | string + passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + workspaces?: Prisma.WorkspaceUncheckedUpdateManyWithoutOwnerNestedInput + artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutUserNestedInput + oauthAccounts?: Prisma.OAuthAccountUncheckedUpdateManyWithoutUserNestedInput +} + +export type UserCreateWithoutOauthAccountsInput = { + name?: string + email: string + passwordHash?: string | null + createdAt?: Date | string + workspaces?: Prisma.WorkspaceCreateNestedManyWithoutOwnerInput + artifacts?: Prisma.ArtifactCreateNestedManyWithoutUserInput + githubRepositories?: Prisma.GithubRepositoryCreateNestedManyWithoutUserInput +} + +export type UserUncheckedCreateWithoutOauthAccountsInput = { + id?: number + name?: string + email: string + passwordHash?: string | null + createdAt?: Date | string + workspaces?: Prisma.WorkspaceUncheckedCreateNestedManyWithoutOwnerInput + artifacts?: Prisma.ArtifactUncheckedCreateNestedManyWithoutUserInput + githubRepositories?: Prisma.GithubRepositoryUncheckedCreateNestedManyWithoutUserInput +} + +export type UserCreateOrConnectWithoutOauthAccountsInput = { + where: Prisma.UserWhereUniqueInput + create: Prisma.XOR +} + +export type UserUpsertWithoutOauthAccountsInput = { + update: Prisma.XOR + create: Prisma.XOR + where?: Prisma.UserWhereInput +} + +export type UserUpdateToOneWithWhereWithoutOauthAccountsInput = { + where?: Prisma.UserWhereInput + data: Prisma.XOR +} + +export type UserUpdateWithoutOauthAccountsInput = { + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null + createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string + workspaces?: Prisma.WorkspaceUpdateManyWithoutOwnerNestedInput + artifacts?: Prisma.ArtifactUpdateManyWithoutUserNestedInput + githubRepositories?: Prisma.GithubRepositoryUpdateManyWithoutUserNestedInput +} + +export type UserUncheckedUpdateWithoutOauthAccountsInput = { + id?: Prisma.IntFieldUpdateOperationsInput | number + name?: Prisma.StringFieldUpdateOperationsInput | string + email?: Prisma.StringFieldUpdateOperationsInput | string + passwordHash?: Prisma.NullableStringFieldUpdateOperationsInput | string | null createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string workspaces?: Prisma.WorkspaceUncheckedUpdateManyWithoutOwnerNestedInput artifacts?: Prisma.ArtifactUncheckedUpdateManyWithoutUserNestedInput + githubRepositories?: Prisma.GithubRepositoryUncheckedUpdateManyWithoutUserNestedInput } @@ -601,12 +696,14 @@ export type UserCountOutputType = { workspaces: number artifacts: number githubRepositories: number + oauthAccounts: number } export type UserCountOutputTypeSelect = { workspaces?: boolean | UserCountOutputTypeCountWorkspacesArgs artifacts?: boolean | UserCountOutputTypeCountArtifactsArgs githubRepositories?: boolean | UserCountOutputTypeCountGithubRepositoriesArgs + oauthAccounts?: boolean | UserCountOutputTypeCountOauthAccountsArgs } /** @@ -640,6 +737,13 @@ export type UserCountOutputTypeCountGithubRepositoriesArgs = { + where?: Prisma.OAuthAccountWhereInput +} + export type UserSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean @@ -650,6 +754,7 @@ export type UserSelect artifacts?: boolean | Prisma.User$artifactsArgs githubRepositories?: boolean | Prisma.User$githubRepositoriesArgs + oauthAccounts?: boolean | Prisma.User$oauthAccountsArgs _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs }, ExtArgs["result"]["user"]> @@ -682,6 +787,7 @@ export type UserInclude artifacts?: boolean | Prisma.User$artifactsArgs githubRepositories?: boolean | Prisma.User$githubRepositoriesArgs + oauthAccounts?: boolean | Prisma.User$oauthAccountsArgs _count?: boolean | Prisma.UserCountOutputTypeDefaultArgs } export type UserIncludeCreateManyAndReturn = {} @@ -693,12 +799,13 @@ export type $UserPayload[] artifacts: Prisma.$ArtifactPayload[] githubRepositories: Prisma.$GithubRepositoryPayload[] + oauthAccounts: Prisma.$OAuthAccountPayload[] } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number name: string email: string - passwordHash: string + passwordHash: string | null createdAt: Date }, ExtArgs["result"]["user"]> composites: {} @@ -1097,6 +1204,7 @@ export interface Prisma__UserClient = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> artifacts = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> githubRepositories = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> + oauthAccounts = {}>(args?: Prisma.Subset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions> | Null> /** * Attaches callbacks for the resolution and/or rejection of the Promise. * @param onfulfilled The callback to execute when the Promise is resolved. @@ -1595,6 +1703,30 @@ export type User$githubRepositoriesArgs = { + /** + * Select specific fields to fetch from the OAuthAccount + */ + select?: Prisma.OAuthAccountSelect | null + /** + * Omit specific fields from the OAuthAccount + */ + omit?: Prisma.OAuthAccountOmit | null + /** + * Choose, which related nodes to fetch as well + */ + include?: Prisma.OAuthAccountInclude | null + where?: Prisma.OAuthAccountWhereInput + orderBy?: Prisma.OAuthAccountOrderByWithRelationInput | Prisma.OAuthAccountOrderByWithRelationInput[] + cursor?: Prisma.OAuthAccountWhereUniqueInput + take?: number + skip?: number + distinct?: Prisma.OAuthAccountScalarFieldEnum | Prisma.OAuthAccountScalarFieldEnum[] +} + /** * User without action */ diff --git a/backend/src/generated/prisma/models/Workspace.ts b/backend/src/generated/prisma/models/Workspace.ts index 215ea76..1599ba4 100644 --- a/backend/src/generated/prisma/models/Workspace.ts +++ b/backend/src/generated/prisma/models/Workspace.ts @@ -447,10 +447,6 @@ export type WorkspaceUncheckedUpdateManyWithoutOwnerNestedInput = { deleteMany?: Prisma.WorkspaceScalarWhereInput | Prisma.WorkspaceScalarWhereInput[] } -export type NullableStringFieldUpdateOperationsInput = { - set?: string | null -} - export type WorkspaceCreateNestedOneWithoutArtifactsInput = { create?: Prisma.XOR connectOrCreate?: Prisma.WorkspaceCreateOrConnectWithoutArtifactsInput diff --git a/backend/src/routes/auth.ts b/backend/src/routes/auth.ts index f83b084..aeafd82 100644 --- a/backend/src/routes/auth.ts +++ b/backend/src/routes/auth.ts @@ -1,6 +1,13 @@ import express from "express"; import { registerUser, loginUser } from "../services/auth.js"; +import { + getGoogleAuthUrl, + getGithubAuthUrl, + handleGoogleCallback, + handleGithubCallback, +} from "../services/oauth.js"; import { validateRegisterCredentials, validateLoginCredentials } from "../validation/auth.js"; +import { env } from "../config/env.js"; const router = express.Router(); @@ -22,4 +29,121 @@ router.post( } ); +function getTargetFrontendUrl(stateParam?: unknown): string { + const allowedOrigins = [ + env.FRONTEND_URL.replace(/\/$/, ""), + "http://localhost:5173", + "http://127.0.0.1:5173", + ]; + + if (typeof stateParam === "string" && stateParam.trim()) { + try { + const parsed = JSON.parse( + Buffer.from(stateParam, "base64url").toString("utf-8") + ) as { origin?: string }; + + if ( + parsed.origin && + allowedOrigins.includes(parsed.origin.replace(/\/$/, "")) + ) { + return parsed.origin.replace(/\/$/, ""); + } + } catch { + // Ignore malformed state and fallback + } + } + + return env.FRONTEND_URL.replace(/\/$/, ""); +} + +function createOAuthState(req: express.Request): string | undefined { + const rawOrigin = + req.headers.origin || + (req.headers.referer ? new URL(req.headers.referer).origin : undefined); + + const allowedOrigins = [ + env.FRONTEND_URL.replace(/\/$/, ""), + "http://localhost:5173", + "http://127.0.0.1:5173", + ]; + + if (rawOrigin && allowedOrigins.includes(rawOrigin.replace(/\/$/, ""))) { + return Buffer.from( + JSON.stringify({ origin: rawOrigin.replace(/\/$/, "") }) + ).toString("base64url"); + } + + return undefined; +} + +router.get("/google", (req, res) => { + const state = createOAuthState(req); + const url = getGoogleAuthUrl(state); + res.redirect(url); +}); + +router.get("/google/callback", async (req, res) => { + const { code, error, state } = req.query; + const frontendUrl = getTargetFrontendUrl(state); + + if (error || !code || typeof code !== "string") { + const errorMsg = + typeof error === "string" + ? error + : "Google authentication was cancelled or failed."; + return res.redirect( + `${frontendUrl}/auth/callback?error=${encodeURIComponent(errorMsg)}` + ); + } + + try { + const result = await handleGoogleCallback(code); + const userParam = encodeURIComponent(JSON.stringify(result.user)); + return res.redirect( + `${frontendUrl}/auth/callback?token=${encodeURIComponent(result.token)}&user=${userParam}` + ); + } catch (err: unknown) { + const message = + err instanceof Error ? err.message : "Authentication failed."; + return res.redirect( + `${frontendUrl}/auth/callback?error=${encodeURIComponent(message)}` + ); + } +}); + +router.get("/github", (req, res) => { + const state = createOAuthState(req); + const url = getGithubAuthUrl(state); + res.redirect(url); +}); + +router.get("/github/callback", async (req, res) => { + const { code, error, state } = req.query; + const frontendUrl = getTargetFrontendUrl(state); + + if (error || !code || typeof code !== "string") { + const errorMsg = + typeof error === "string" + ? error + : "GitHub authentication was cancelled or failed."; + return res.redirect( + `${frontendUrl}/auth/callback?error=${encodeURIComponent(errorMsg)}` + ); + } + + try { + const result = await handleGithubCallback(code); + const userParam = encodeURIComponent(JSON.stringify(result.user)); + return res.redirect( + `${frontendUrl}/auth/callback?token=${encodeURIComponent(result.token)}&user=${userParam}` + ); + } catch (err: unknown) { + const message = + err instanceof Error ? err.message : "Authentication failed."; + return res.redirect( + `${frontendUrl}/auth/callback?error=${encodeURIComponent(message)}` + ); + } +}); + export default router; \ No newline at end of file diff --git a/backend/src/services/auth.ts b/backend/src/services/auth.ts index b1bf56a..4a348f5 100644 --- a/backend/src/services/auth.ts +++ b/backend/src/services/auth.ts @@ -6,7 +6,7 @@ import type { RegisterUserInput, AuthResponse, LoginUserInput } from "../types/a import type { User } from "../generated/prisma/client.js"; import { env } from "../config/env.js"; -function createAuthResponse(user: User): AuthResponse { +export function createAuthResponse(user: User): AuthResponse { //get jwt secret const secret = env.JWT_SECRET; @@ -16,7 +16,7 @@ function createAuthResponse(user: User): AuthResponse { } //Generate JWT const token = jwt.sign( - { userId: user.id }, + { userId: user.id, email: user.email, name: user.name }, secret, { expiresIn: "7d", @@ -67,6 +67,13 @@ export async function loginUser(userData: LoginUserInput): Promise throw new ValidationError("Invalid email or password", 401); } + if (!user.passwordHash) { + throw new ValidationError( + "This account uses social sign-in. Sign in with Google or GitHub.", + 401 + ); + } + const isPasswordValid = await bcrypt.compare( userData.password, user.passwordHash diff --git a/backend/src/services/oauth.test.ts b/backend/src/services/oauth.test.ts new file mode 100644 index 0000000..3940273 --- /dev/null +++ b/backend/src/services/oauth.test.ts @@ -0,0 +1,162 @@ +import { beforeEach, describe, expect, it, vi } from "vitest"; + +const { findUniqueOAuth, findUniqueUser, createOAuth, createUser } = vi.hoisted( + () => ({ + findUniqueOAuth: vi.fn(), + findUniqueUser: vi.fn(), + createOAuth: vi.fn(), + createUser: vi.fn(), + }) +); + +vi.mock("../prisma.js", () => ({ + default: { + oAuthAccount: { + findUnique: findUniqueOAuth, + create: createOAuth, + }, + user: { + findUnique: findUniqueUser, + create: createUser, + }, + }, +})); + +import { authenticateOAuthUser } from "./oauth.js"; +import { loginUser } from "./auth.js"; + +describe("authenticateOAuthUser", () => { + beforeEach(() => { + vi.clearAllMocks(); + }); + + it("rejects authentication if email is not verified by provider", async () => { + await expect( + authenticateOAuthUser({ + provider: "google", + providerUserId: "google-123", + email: "test@example.com", + name: "Test", + emailVerified: false, + }) + ).rejects.toThrow("Email must be verified"); + }); + + it("logs in immediately if OAuth account is already linked", async () => { + findUniqueOAuth.mockResolvedValue({ + id: 1, + userId: 42, + provider: "google", + providerUserId: "google-123", + user: { + id: 42, + name: "Existing Person", + email: "test@example.com", + }, + }); + + const result = await authenticateOAuthUser({ + provider: "google", + providerUserId: "google-123", + email: "test@example.com", + name: "Existing Person", + emailVerified: true, + }); + + expect(result.user).toEqual({ + id: 42, + name: "Existing Person", + email: "test@example.com", + }); + expect(result.token).toBeDefined(); + expect(findUniqueUser).not.toHaveBeenCalled(); + }); + + it("links provider to existing user when email matches", async () => { + findUniqueOAuth.mockResolvedValue(null); + findUniqueUser.mockResolvedValue({ + id: 10, + name: "Email User", + email: "match@example.com", + passwordHash: "hash123", + }); + createOAuth.mockResolvedValue({ + id: 2, + userId: 10, + provider: "github", + providerUserId: "gh-999", + }); + + const result = await authenticateOAuthUser({ + provider: "github", + providerUserId: "gh-999", + email: "match@example.com", + name: "GH Name", + emailVerified: true, + }); + + expect(createOAuth).toHaveBeenCalledWith({ + data: { + userId: 10, + provider: "github", + providerUserId: "gh-999", + }, + }); + expect(result.user.id).toBe(10); + }); + + it("creates new user and links provider if account does not exist", async () => { + findUniqueOAuth.mockResolvedValue(null); + findUniqueUser.mockResolvedValue(null); + createUser.mockResolvedValue({ + id: 99, + name: "Brand New", + email: "brandnew@example.com", + }); + + const result = await authenticateOAuthUser({ + provider: "google", + providerUserId: "g-new-1", + email: "brandnew@example.com", + name: "Brand New", + emailVerified: true, + }); + + expect(createUser).toHaveBeenCalledWith({ + data: { + email: "brandnew@example.com", + name: "Brand New", + passwordHash: null, + oauthAccounts: { + create: { + provider: "google", + providerUserId: "g-new-1", + }, + }, + }, + }); + expect(result.user.id).toBe(99); + }); +}); + +describe("loginUser password guard", () => { + beforeEach(() => { + vi.clearAllMocks(); + }); + + it("rejects password login when account has no passwordHash (social-only)", async () => { + findUniqueUser.mockResolvedValue({ + id: 50, + email: "social@example.com", + name: "Social User", + passwordHash: null, + }); + + await expect( + loginUser({ + email: "social@example.com", + password: "anypassword", + }) + ).rejects.toThrow("This account uses social sign-in"); + }); +}); diff --git a/backend/src/services/oauth.ts b/backend/src/services/oauth.ts new file mode 100644 index 0000000..abbbd29 --- /dev/null +++ b/backend/src/services/oauth.ts @@ -0,0 +1,271 @@ +import prisma from "../prisma.js"; +import { ValidationError } from "../lib/error.js"; +import { env } from "../config/env.js"; +import { createAuthResponse } from "./auth.js"; +import type { AuthResponse } from "../types/auth.js"; + +export interface OAuthUserProfile { + provider: "google" | "github"; + providerUserId: string; + email: string; + name?: string; + emailVerified: boolean; +} + +export function getGoogleAuthUrl(state?: string): string { + if (!env.GOOGLE_CLIENT_ID) { + throw new ValidationError("Google OAuth is not configured.", 500); + } + + const redirectUri = `${env.BACKEND_URL}/api/auth/google/callback`; + const params = new URLSearchParams({ + client_id: env.GOOGLE_CLIENT_ID, + redirect_uri: redirectUri, + response_type: "code", + scope: "openid email profile", + access_type: "offline", + prompt: "select_account", + }); + + if (state) { + params.set("state", state); + } + + return `https://accounts.google.com/o/oauth2/v2/auth?${params.toString()}`; +} + +export function getGithubAuthUrl(state?: string): string { + if (!env.GITHUB_CLIENT_ID) { + throw new ValidationError("GitHub OAuth is not configured.", 500); + } + + const redirectUri = `${env.BACKEND_URL}/api/auth/github/callback`; + const params = new URLSearchParams({ + client_id: env.GITHUB_CLIENT_ID, + redirect_uri: redirectUri, + scope: "read:user user:email", + }); + + if (state) { + params.set("state", state); + } + + return `https://github.com/login/oauth/authorize?${params.toString()}`; +} + +export async function authenticateOAuthUser( + profile: OAuthUserProfile +): Promise { + if (!profile.emailVerified) { + throw new ValidationError( + "Email must be verified by the OAuth provider.", + 400 + ); + } + + // 1. Check if OAuth account is already linked + const existingOAuth = await prisma.oAuthAccount.findUnique({ + where: { + provider_providerUserId: { + provider: profile.provider, + providerUserId: profile.providerUserId, + }, + }, + include: { user: true }, + }); + + if (existingOAuth) { + return createAuthResponse(existingOAuth.user); + } + + // 2. Check if a user with this verified email already exists + let user = await prisma.user.findUnique({ + where: { email: profile.email }, + }); + + if (user) { + // Link this OAuth account to the existing user + await prisma.oAuthAccount.create({ + data: { + userId: user.id, + provider: profile.provider, + providerUserId: profile.providerUserId, + }, + }); + return createAuthResponse(user); + } + + // 3. Create a brand new user and link the OAuth account + user = await prisma.user.create({ + data: { + email: profile.email, + name: profile.name?.trim() || "Friend", + passwordHash: null, + oauthAccounts: { + create: { + provider: profile.provider, + providerUserId: profile.providerUserId, + }, + }, + }, + }); + + return createAuthResponse(user); +} + +export async function handleGoogleCallback(code: string): Promise { + if (!env.GOOGLE_CLIENT_ID || !env.GOOGLE_CLIENT_SECRET) { + throw new ValidationError("Google OAuth is not configured.", 500); + } + + const redirectUri = `${env.BACKEND_URL}/api/auth/google/callback`; + + const tokenResponse = await fetch("https://oauth2.googleapis.com/token", { + method: "POST", + headers: { + "Content-Type": "application/x-www-form-urlencoded", + }, + body: new URLSearchParams({ + code, + client_id: env.GOOGLE_CLIENT_ID, + client_secret: env.GOOGLE_CLIENT_SECRET, + redirect_uri: redirectUri, + grant_type: "authorization_code", + }), + }); + + if (!tokenResponse.ok) { + const errorText = await tokenResponse.text(); + throw new ValidationError( + `Failed to exchange Google authorization code: ${errorText}`, + 400 + ); + } + + const tokenData = (await tokenResponse.json()) as { + access_token: string; + }; + + const profileResponse = await fetch( + "https://www.googleapis.com/oauth2/v3/userinfo", + { + headers: { + Authorization: `Bearer ${tokenData.access_token}`, + }, + } + ); + + if (!profileResponse.ok) { + throw new ValidationError("Failed to fetch Google user profile.", 400); + } + + const profile = (await profileResponse.json()) as { + sub: string; + email: string; + email_verified?: boolean; + name?: string; + }; + + return authenticateOAuthUser({ + provider: "google", + providerUserId: profile.sub, + email: profile.email, + name: profile.name, + emailVerified: Boolean(profile.email_verified), + }); +} + +export async function handleGithubCallback(code: string): Promise { + if (!env.GITHUB_CLIENT_ID || !env.GITHUB_CLIENT_SECRET) { + throw new ValidationError("GitHub OAuth is not configured.", 500); + } + + const redirectUri = `${env.BACKEND_URL}/api/auth/github/callback`; + + const tokenResponse = await fetch("https://github.com/login/oauth/access_token", { + method: "POST", + headers: { + Accept: "application/json", + "Content-Type": "application/json", + }, + body: JSON.stringify({ + client_id: env.GITHUB_CLIENT_ID, + client_secret: env.GITHUB_CLIENT_SECRET, + code, + redirect_uri: redirectUri, + }), + }); + + if (!tokenResponse.ok) { + throw new ValidationError( + "Failed to exchange GitHub authorization code.", + 400 + ); + } + + const tokenData = (await tokenResponse.json()) as { + access_token?: string; + error?: string; + error_description?: string; + }; + + if (!tokenData.access_token) { + throw new ValidationError( + tokenData.error_description || "GitHub authentication failed.", + 400 + ); + } + + const userResponse = await fetch("https://api.github.com/user", { + headers: { + Authorization: `Bearer ${tokenData.access_token}`, + "User-Agent": "nook-app", + }, + }); + + if (!userResponse.ok) { + throw new ValidationError("Failed to fetch GitHub user profile.", 400); + } + + const userData = (await userResponse.json()) as { + id: number; + login: string; + name?: string; + }; + + const emailsResponse = await fetch("https://api.github.com/user/emails", { + headers: { + Authorization: `Bearer ${tokenData.access_token}`, + "User-Agent": "nook-app", + }, + }); + + if (!emailsResponse.ok) { + throw new ValidationError("Failed to fetch GitHub user emails.", 400); + } + + const emails = (await emailsResponse.json()) as Array<{ + email: string; + primary: boolean; + verified: boolean; + }>; + + const primaryEmail = + emails.find((e) => e.primary && e.verified) ?? + emails.find((e) => e.verified); + + if (!primaryEmail) { + throw new ValidationError( + "No verified email found on GitHub account. Verify your email on GitHub first.", + 400 + ); + } + + return authenticateOAuthUser({ + provider: "github", + providerUserId: String(userData.id), + email: primaryEmail.email, + name: userData.name || userData.login, + emailVerified: true, + }); +} diff --git a/frontend/src/assets/styles/auth.css b/frontend/src/assets/styles/auth.css index ff5bed0..3420c1e 100644 --- a/frontend/src/assets/styles/auth.css +++ b/frontend/src/assets/styles/auth.css @@ -932,4 +932,89 @@ opacity: 1; transform: scale(1) rotate(0); } +} + +/* ========================================================== + OAUTH ACTIONS + ========================================================== */ + +.auth-divider { + display: flex; + align-items: center; + gap: var(--space-3); + margin: var(--space-4) 0 var(--space-3); + color: var(--text-muted); + font-family: var(--font-ui); + font-size: var(--type-caption-size); + text-transform: lowercase; +} + +.auth-divider::before, +.auth-divider::after { + content: ""; + flex: 1; + height: 1px; + background: var(--border-subtle); +} + +.auth-oauth-group { + display: flex; + flex-direction: column; + gap: var(--space-2); +} + +.auth-oauth-btn { + display: inline-flex; + align-items: center; + justify-content: center; + gap: var(--space-3); + width: 100%; + min-height: 44px; + padding: var(--space-2) var(--space-4); + background: var(--color-artifact); + color: var(--text-primary); + border: 1px solid var(--border-subtle); + border-radius: var(--radius-0); + font-family: var(--font-ui); + font-size: var(--type-label-size); + font-weight: var(--weight-medium); + cursor: pointer; + text-decoration: none; + transition: + border-color var(--interaction-duration) var(--interaction-easing), + background var(--interaction-duration) var(--interaction-easing); +} + +.auth-oauth-btn:hover:not(:disabled) { + border-color: var(--text-primary); + background: var(--color-canvas); +} + +.auth-oauth-btn:focus-visible { + outline: 2px solid var(--accent-primary); + outline-offset: 2px; +} + +.auth-oauth-btn:disabled { + cursor: not-allowed; + opacity: 0.6; +} + +.auth-oauth-icon { + width: 18px; + height: 18px; + flex-shrink: 0; +} + +.auth-callback-shell { + width: min(440px, 100%); + min-height: auto; + padding: var(--space-6); + display: flex; + flex-direction: column; + gap: var(--space-3); + background: var(--color-artifact); + border: 1px solid var(--border-subtle); + border-radius: var(--radius-panel); + box-shadow: var(--elevation-surface); } \ No newline at end of file diff --git a/frontend/src/components/AuthForm.tsx b/frontend/src/components/AuthForm.tsx index e1a575c..25b5c25 100644 --- a/frontend/src/components/AuthForm.tsx +++ b/frontend/src/components/AuthForm.tsx @@ -1,4 +1,5 @@ import { useEffect, useId, useState } from "react"; +import { API_URL } from "../services/api"; interface AuthFormProps { isRegisterMode: boolean; @@ -313,6 +314,49 @@ export default function AuthForm({ )} +
+ or +
+ + +

{togglePrompt}

diff --git a/frontend/src/pages/AuthCallback.tsx b/frontend/src/pages/AuthCallback.tsx new file mode 100644 index 0000000..3c37728 --- /dev/null +++ b/frontend/src/pages/AuthCallback.tsx @@ -0,0 +1,71 @@ +import { useEffect } from "react"; +import { useNavigate, useSearchParams } from "react-router-dom"; +import { setToken, setUser } from "../lib/storage"; +import type { User } from "../types/auth"; + +export default function AuthCallback() { + const [searchParams] = useSearchParams(); + const navigate = useNavigate(); + + const errorParam = searchParams.get("error"); + const token = searchParams.get("token"); + const userParam = searchParams.get("user"); + + const error = + errorParam || + (!token ? "No authentication token received." : null); + + useEffect(() => { + if (!token || errorParam) { + return; + } + + setToken(token); + + if (userParam) { + try { + const user = JSON.parse(userParam) as User; + setUser(user); + } catch { + // If user serialization fails, session remains authenticated via token + } + } + + navigate("/home", { replace: true }); + }, [token, errorParam, userParam, navigate]); + + if (error) { + return ( +
+
+

+ Sign in failed +

+

+ {error} +

+ +
+
+ ); + } + + return ( +
+
+

+ Opening your Nook... +

+

+ Confirming your identity. +

+
+
+ ); +} diff --git a/frontend/src/router/index.tsx b/frontend/src/router/index.tsx index f684bf8..e305a02 100644 --- a/frontend/src/router/index.tsx +++ b/frontend/src/router/index.tsx @@ -3,6 +3,7 @@ import { createBrowserRouter } from "react-router-dom"; import AuthLayout from "../components/AuthLayout"; import ProtectedRoute from "../components/ProtectedRoute"; import Home from "../pages/Home"; +import AuthCallback from "../pages/AuthCallback"; export const router = createBrowserRouter([ { @@ -13,6 +14,10 @@ export const router = createBrowserRouter([ path: "/register", element: , }, + { + path: "/auth/callback", + element: , + }, { path: "/home", element: ( diff --git a/frontend/src/services/api.ts b/frontend/src/services/api.ts index 6879822..425cfe7 100644 --- a/frontend/src/services/api.ts +++ b/frontend/src/services/api.ts @@ -1,6 +1,6 @@ import { getToken } from "../lib/storage"; -const API_URL = (import.meta.env.VITE_API_URL || "http://localhost:3003").replace(/\/$/, ""); +export const API_URL = (import.meta.env.VITE_API_URL || "http://localhost:3003").replace(/\/$/, ""); interface RequestOptions { body?: unknown;