Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
Rewrite space to organization (#502)
Richie McIlroy1308677bc8de
diff --git a/apps/web/actions/workspace/check-domain.ts b/apps/web/actions/organization/check-domain.tssimilarity index 50%rename from apps/web/actions/workspace/check-domain.tsrename to apps/web/actions/organization/check-domain.tsindex b8acc4ca8..345a501a3 100644--- a/apps/web/actions/workspace/check-domain.ts+++ b/apps/web/actions/organization/check-domain.ts@@ -1,48 +1,48 @@-"use server";+'use server';import { getCurrentUser } from "@cap/database/auth/session";-import { spaces } from "@cap/database/schema";+import { organizations } from "@cap/database/schema";import { db } from "@cap/database";import { eq } from "drizzle-orm";import { checkDomainStatus } from "./domain-utils";-export async function checkWorkspaceDomain(spaceId: string) {+export async function checkOrganizationDomain(organizationId: string) {const user = await getCurrentUser();- if (!user || !spaceId) {+ if (!user || !organizationId) {throw new Error("Unauthorized");}- const [space] = await db()+ const [organization] = await db().select()- .from(spaces)- .where(eq(spaces.id, spaceId));+ .from(organizations)+ .where(eq(organizations.id, organizationId));- if (!space || space.ownerId !== user.id) {+ if (!organization || organization.ownerId !== user.id) {throw new Error("Only the owner can check domain status");}- if (!space.customDomain) {+ if (!organization.customDomain) {throw new Error("No custom domain set");}try {- const status = await checkDomainStatus(space.customDomain);+ const status = await checkDomainStatus(organization.customDomain);- if (status.verified && !space.domainVerified) {+ if (status.verified && !organization.domainVerified) {await db()- .update(spaces)+ .update(organizations).set({domainVerified: new Date(),})- .where(eq(spaces.id, spaceId));- } else if (!status.verified && space.domainVerified) {+ .where(eq(organizations.id, organizationId));+ } else if (!status.verified && organization.domainVerified) {await db()- .update(spaces)+ .update(organizations).set({domainVerified: null,})- .where(eq(spaces.id, spaceId));+ .where(eq(organizations.id, organizationId));}return status;diff --git a/apps/web/actions/workspace/domain-utils.ts b/apps/web/actions/organization/domain-utils.tssimilarity index 100%rename from apps/web/actions/workspace/domain-utils.tsrename to apps/web/actions/organization/domain-utils.tsdiff --git a/apps/web/actions/organization/get-organization.ts b/apps/web/actions/organization/get-organization.tsnew file mode 100644index 000000000..69506fd45--- /dev/null+++ b/apps/web/actions/organization/get-organization.ts@@ -0,0 +1,30 @@+"use server";++import { db } from "@cap/database";+import { organizations } from "@cap/database/schema";+import { eq } from "drizzle-orm";++export async function getOrganization(organizationId: string) {+ if (!organizationId) {+ throw new Error("Organization ID is required");+ }++ const [organization] = await db()+ .select({+ workosOrganizationId: organizations.workosOrganizationId,+ workosConnectionId: organizations.workosConnectionId,+ name: organizations.name,+ })+ .from(organizations)+ .where(eq(organizations.id, organizationId));++ if (!organization || !organization.workosOrganizationId || !organization.workosConnectionId) {+ throw new Error("Organization not found or SSO not configured");+ }++ return {+ organizationId: organization.workosOrganizationId,+ connectionId: organization.workosConnectionId,+ name: organization.name,+ };+}\ No newline at end of filediff --git a/apps/web/actions/workspace/manage-billing.ts b/apps/web/actions/organization/manage-billing.tssimilarity index 92%rename from apps/web/actions/workspace/manage-billing.tsrename to apps/web/actions/organization/manage-billing.tsindex c93a8f238..fb92e1568 100644--- a/apps/web/actions/workspace/manage-billing.ts+++ b/apps/web/actions/organization/manage-billing.ts@@ -35,7 +35,7 @@ export async function manageBilling() {const { url } = await stripe().billingPortal.sessions.create({customer: customerId as string,- return_url: `${serverEnv().WEB_URL}/dashboard/settings/workspace`,+ return_url: `${serverEnv().WEB_URL}/dashboard/settings/organization`,});return url;diff --git a/apps/web/actions/workspace/remove-domain.ts b/apps/web/actions/organization/remove-domain.tssimilarity index 64%rename from apps/web/actions/workspace/remove-domain.tsrename to apps/web/actions/organization/remove-domain.tsindex a7de90654..60facfe50 100644--- a/apps/web/actions/workspace/remove-domain.ts+++ b/apps/web/actions/organization/remove-domain.ts@@ -1,33 +1,33 @@"use server";import { getCurrentUser } from "@cap/database/auth/session";-import { spaces } from "@cap/database/schema";+import { organizations } from "@cap/database/schema";import { db } from "@cap/database";import { eq } from "drizzle-orm";import { revalidatePath } from "next/cache";-export async function removeWorkspaceDomain(spaceId: string) {+export async function removeOrganizationDomain(organizationId: string) {const user = await getCurrentUser();if (!user) {throw new Error("Unauthorized");}- const [space] = await db()+ const [organization] = await db().select()- .from(spaces)- .where(eq(spaces.id, spaceId));+ .from(organizations)+ .where(eq(organizations.id, organizationId));- if (!space || space.ownerId !== user.id) {+ if (!organization || organization.ownerId !== user.id) {throw new Error("Only the owner can remove the custom domain");}try {- if (space.customDomain) {+ if (organization.customDomain) {await fetch(`https://api.vercel.com/v9/projects/${process.env.VERCEL_PROJECT_ID- }/domains/${space.customDomain.toLowerCase()}?teamId=${+ }/domains/${organization.customDomain.toLowerCase()}?teamId=${process.env.VERCEL_TEAM_ID}`,{@@ -40,15 +40,15 @@ export async function removeWorkspaceDomain(spaceId: string) {}await db()- .update(spaces)+ .update(organizations).set({customDomain: null,domainVerified: null,})- .where(eq(spaces.id, spaceId));-- revalidatePath("/dashboard/settings/workspace");+ .where(eq(organizations.id, organizationId));+ revalidatePath('/dashboard/settings/organization');+return { success: true };} catch (error) {if (error instanceof Error) {diff --git a/apps/web/actions/organization/remove-invite.ts b/apps/web/actions/organization/remove-invite.tsnew file mode 100644index 000000000..8eff61f60--- /dev/null+++ b/apps/web/actions/organization/remove-invite.ts@@ -0,0 +1,46 @@+'use server';++import { getCurrentUser } from "@cap/database/auth/session";+import { organizations, organizationInvites } from "@cap/database/schema";+import { db } from "@cap/database";+import { eq, and } from "drizzle-orm";+import { revalidatePath } from "next/cache";++export async function removeOrganizationInvite(+ inviteId: string,+ organizationId: string+) {+ const user = await getCurrentUser();++ if (!user) {+ throw new Error("Unauthorized");+ }++ const organization = await db()+ .select()+ .from(organizations)+ .where(eq(organizations.id, organizationId))+ .limit(1);++ if (!organization || organization.length === 0) {+ throw new Error("Organization not found");+ }++ if (organization[0]?.ownerId !== user.id) {+ throw new Error("Only the owner can remove organization invites");+ }++ const result = await db()+ .delete(organizationInvites)+ .where(+ and(eq(organizationInvites.id, inviteId), eq(organizationInvites.organizationId, organizationId))+ );++ if (result.rowsAffected === 0) {+ throw new Error("Invite not found");+ }++ revalidatePath('/dashboard/settings/organization');++ return { success: true };+}\ No newline at end of filediff --git a/apps/web/actions/workspace/send-invites.ts b/apps/web/actions/organization/send-invites.tssimilarity index 55%rename from apps/web/actions/workspace/send-invites.tsrename to apps/web/actions/organization/send-invites.tsindex d8fc1ec3e..1d1b26683 100644--- a/apps/web/actions/workspace/send-invites.ts+++ b/apps/web/actions/organization/send-invites.ts@@ -1,18 +1,18 @@"use server";import { getCurrentUser } from "@cap/database/auth/session";-import { spaces, spaceInvites } from "@cap/database/schema";+import { organizations, organizationInvites } from "@cap/database/schema";import { db } from "@cap/database";import { eq } from "drizzle-orm";import { nanoId } from "@cap/database/helpers";import { sendEmail } from "@cap/database/emails/config";-import { WorkspaceInvite } from "@cap/database/emails/workspace-invite";+import { OrganizationInvite } from "@cap/database/emails/organization-invite";import { serverEnv } from "@cap/env";import { revalidatePath } from "next/cache";-export async function sendWorkspaceInvites(+export async function sendOrganizationInvites(invitedEmails: string[],- spaceId: string+ organizationId: string) {const user = await getCurrentUser();@@ -20,14 +20,14 @@ export async function sendWorkspaceInvites(throw new Error("Unauthorized");}- const space = await db().select().from(spaces).where(eq(spaces.id, spaceId));+ const organization = await db().select().from(organizations).where(eq(organizations.id, organizationId));- if (!space || space.length === 0) {- throw new Error("Workspace not found");+ if (!organization || organization.length === 0) {+ throw new Error("Organization not found");}- if (space[0]?.ownerId !== user.id) {- throw new Error("Only the owner can send workspace invites");+ if (organization[0]?.ownerId !== user.id) {+ throw new Error("Only the owner can send organization invites");}const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;@@ -37,9 +37,9 @@ export async function sendWorkspaceInvites(for (const email of validEmails) {const inviteId = nanoId();- await db().insert(spaceInvites).values({+ await db().insert(organizationInvites).values({id: inviteId,- spaceId: spaceId,+ organizationId: organizationId,invitedEmail: email.trim(),invitedByUserId: user.id,role: "member",@@ -49,16 +49,16 @@ export async function sendWorkspaceInvites(const inviteUrl = `${serverEnv().WEB_URL}/invite/${inviteId}`;await sendEmail({email: email.trim(),- subject: `Invitation to join ${space[0].name} on Cap`,- react: WorkspaceInvite({+ subject: `Invitation to join ${organization[0].name} on Cap`,+ react: OrganizationInvite({email: email.trim(),url: inviteUrl,- workspaceName: space[0].name,+ organizationName: organization[0].name,}),});}- revalidatePath("/dashboard/settings/workspace");+ revalidatePath("/dashboard/settings/organization");return { success: true };}diff --git a/apps/web/actions/organization/update-details.ts b/apps/web/actions/organization/update-details.tsnew file mode 100644index 000000000..9d04a6613--- /dev/null+++ b/apps/web/actions/organization/update-details.ts@@ -0,0 +1,44 @@+'use server';++import { getCurrentUser } from "@cap/database/auth/session";+import { organizations } from "@cap/database/schema";+import { db } from "@cap/database";+import { eq } from "drizzle-orm";+import { revalidatePath } from "next/cache";++export async function updateOrganizationDetails(+ organizationName: string,+ allowedEmailDomain: string,+ organizationId: string+) {+ const user = await getCurrentUser();++ if (!user) {+ throw new Error("Unauthorized");+ }++ const organization = await db()+ .select()+ .from(organizations)+ .where(eq(organizations.id, organizationId));++ if (!organization || organization.length === 0) {+ throw new Error("Organization not found");+ }++ if (organization[0]?.ownerId !== user.id) {+ throw new Error("Only the owner can update organization details");+ }++ await db()+ .update(organizations)+ .set({+ name: organizationName,+ allowedEmailDomain: allowedEmailDomain || null,+ })+ .where(eq(organizations.id, organizationId));++ revalidatePath("/dashboard/settings/organization");++ return { success: true };+}\ No newline at end of filediff --git a/apps/web/actions/workspace/update-domain.ts b/apps/web/actions/organization/update-domain.tssimilarity index 66%rename from apps/web/actions/workspace/update-domain.tsrename to apps/web/actions/organization/update-domain.tsindex 664c865ec..12111f075 100644--- a/apps/web/actions/workspace/update-domain.ts+++ b/apps/web/actions/organization/update-domain.ts@@ -1,25 +1,25 @@"use server";import { getCurrentUser } from "@cap/database/auth/session";-import { spaces } from "@cap/database/schema";+import { organizations } from "@cap/database/schema";import { db } from "@cap/database";import { eq } from "drizzle-orm";import { revalidatePath } from "next/cache";import { addDomain, checkDomainStatus } from "./domain-utils";-export async function updateDomain(domain: string, spaceId: string) {+export async function updateDomain(domain: string, organizationId: string) {const user = await getCurrentUser();if (!user) {throw new Error("Unauthorized");}- const [space] = await db()+ const [organization] = await db().select()- .from(spaces)- .where(eq(spaces.id, spaceId));+ .from(organizations)+ .where(eq(organizations.id, organizationId));- if (!space || space.ownerId !== user.id) {+ if (!organization || organization.ownerId !== user.id) {throw new Error("Only the owner can update the custom domain");}@@ -31,25 +31,25 @@ export async function updateDomain(domain: string, spaceId: string) {}await db()- .update(spaces)+ .update(organizations).set({customDomain: domain,domainVerified: null,})- .where(eq(spaces.id, spaceId));+ .where(eq(organizations.id, organizationId));const status = await checkDomainStatus(domain);if (status.verified) {await db()- .update(spaces)+ .update(organizations).set({domainVerified: new Date(),})- .where(eq(spaces.id, spaceId));+ .where(eq(organizations.id, organizationId));}- revalidatePath("/dashboard/settings/workspace");+ revalidatePath("/dashboard/settings/organization");return status;} catch (error) {diff --git a/apps/web/actions/workspace/get-space.ts b/apps/web/actions/workspace/get-space.tsdeleted file mode 100644index 32f5b2fb0..000000000--- a/apps/web/actions/workspace/get-space.ts+++ /dev/null@@ -1,30 +0,0 @@-"use server";--import { db } from "@cap/database";-import { spaces } from "@cap/database/schema";-import { eq } from "drizzle-orm";--export async function getSpace(spaceId: string) {- if (!spaceId) {- throw new Error("Space ID is required");- }-- const [space] = await db()- .select({- workosOrganizationId: spaces.workosOrganizationId,- workosConnectionId: spaces.workosConnectionId,- name: spaces.name,- })- .from(spaces)- .where(eq(spaces.id, spaceId));-- if (!space || !space.workosOrganizationId || !space.workosConnectionId) {- throw new Error("Space not found or SSO not configured");- }-- return {- organizationId: space.workosOrganizationId,- connectionId: space.workosConnectionId,- name: space.name,- };-}diff --git a/apps/web/actions/workspace/remove-invite.ts b/apps/web/actions/workspace/remove-invite.tsdeleted file mode 100644index 6e04c2ab5..000000000--- a/apps/web/actions/workspace/remove-invite.ts+++ /dev/null@@ -1,43 +0,0 @@-"use server";--import { getCurrentUser } from "@cap/database/auth/session";-import { spaces, spaceInvites } from "@cap/database/schema";-import { db } from "@cap/database";-import { eq, and } from "drizzle-orm";-import { revalidatePath } from "next/cache";--export async function removeWorkspaceInvite(inviteId: string, spaceId: string) {- const user = await getCurrentUser();-- if (!user) {- throw new Error("Unauthorized");- }-- const space = await db()- .select()- .from(spaces)- .where(eq(spaces.id, spaceId))- .limit(1);-- if (!space || space.length === 0) {- throw new Error("Workspace not found");- }-- if (space[0]?.ownerId !== user.id) {- throw new Error("Only the owner can remove workspace invites");- }-- const result = await db()- .delete(spaceInvites)- .where(- and(eq(spaceInvites.id, inviteId), eq(spaceInvites.spaceId, spaceId))- );-- if (result.rowsAffected === 0) {- throw new Error("Invite not found");- }-- revalidatePath("/dashboard/settings/workspace");-- return { success: true };-}diff --git a/apps/web/actions/workspace/update-details.ts b/apps/web/actions/workspace/update-details.tsdeleted file mode 100644index 513cab465..000000000--- a/apps/web/actions/workspace/update-details.ts+++ /dev/null@@ -1,41 +0,0 @@-"use server";--import { getCurrentUser } from "@cap/database/auth/session";-import { spaces } from "@cap/database/schema";-import { db } from "@cap/database";-import { eq } from "drizzle-orm";-import { revalidatePath } from "next/cache";--export async function updateWorkspaceDetails(- workspaceName: string,- allowedEmailDomain: string,- spaceId: string-) {- const user = await getCurrentUser();-- if (!user) {- throw new Error("Unauthorized");- }-- const space = await db().select().from(spaces).where(eq(spaces.id, spaceId));-- if (!space || space.length === 0) {- throw new Error("Workspace not found");- }-- if (space[0]?.ownerId !== user.id) {- throw new Error("Only the owner can update workspace details");- }-- await db()- .update(spaces)- .set({- name: workspaceName,- allowedEmailDomain: allowedEmailDomain || null,- })- .where(eq(spaces.id, spaceId));-- revalidatePath("/dashboard/settings/workspace");-- return { success: true };-}diff --git a/apps/web/app/api/caps/share/route.ts b/apps/web/app/api/caps/share/route.tsindex b53c33bec..a777041cd 100644--- a/apps/web/app/api/caps/share/route.ts+++ b/apps/web/app/api/caps/share/route.ts@@ -11,45 +11,41 @@ export async function POST(request: NextRequest) {return NextResponse.json({ error: "Unauthorized" }, { status: 401 });}- const { capId, spaceIds } = await request.json();+ const { capId, organizationIds } = await request.json();try {- // Check if the user owns the capconst [cap] = await db().select().from(videos).where(eq(videos.id, capId));if (!cap || cap.ownerId !== user.id) {return NextResponse.json({ error: "Unauthorized" }, { status: 403 });}- // Get current shared spaces- const currentSharedSpaces = await db()+ const currentSharedOrganizations = await db().select().from(sharedVideos).where(eq(sharedVideos.videoId, capId));- // Remove spaces that are no longer shared- for (const sharedSpace of currentSharedSpaces) {- if (!spaceIds.includes(sharedSpace.spaceId)) {+ for (const sharedOrganization of currentSharedOrganizations) {+ if (!organizationIds.includes(sharedOrganization.organizationId)) {await db().delete(sharedVideos).where(and(eq(sharedVideos.videoId, capId),- eq(sharedVideos.spaceId, sharedSpace.spaceId)+ eq(sharedVideos.organizationId, sharedOrganization.organizationId)));}}- // Add new shared spaces- for (const spaceId of spaceIds) {- const existingShare = currentSharedSpaces.find(- (share) => share.spaceId === spaceId+ for (const organizationId of organizationIds) {+ const existingShare = currentSharedOrganizations.find(+ (share) => share.organizationId === organizationId);if (!existingShare) {await db().insert(sharedVideos).values({id: nanoId(),videoId: capId,- spaceId: spaceId,+ organizationId: organizationId,sharedByUserId: user.id,});}diff --git a/apps/web/app/api/download/route.ts b/apps/web/app/api/download/route.tsindex 94b15e8ea..b7b875884 100644--- a/apps/web/app/api/download/route.ts+++ b/apps/web/app/api/download/route.ts@@ -4,24 +4,19 @@ export const runtime = "edge";export const revalidate = 0;export async function GET(request: NextRequest) {- // Get the user agent stringconst userAgent = request.headers.get("user-agent") || "";- // Determine the platform based on the user agent- let platform = "apple-silicon"; // Default to Apple Silicon+ let platform = "apple-silicon";if (userAgent.includes("Windows")) {platform = "windows";} else if (userAgent.includes("Mac")) {- // Check for Intel Macif (userAgent.includes("Intel")) {platform = "apple-intel";} else {- // Assume Apple Silicon for newer Macsplatform = "apple-silicon";}}- // Redirect to the appropriate platform-specific download routereturn NextResponse.redirect(new URL(`/download/${platform}`, request.url));}diff --git a/apps/web/app/api/email/new-comment/route.ts b/apps/web/app/api/email/new-comment/route.tsindex 134e8ddfb..653b76ce9 100644--- a/apps/web/app/api/email/new-comment/route.ts+++ b/apps/web/app/api/email/new-comment/route.ts@@ -1,5 +1,4 @@import { type NextRequest } from "next/server";-import { getCurrentUser } from "@cap/database/auth/session";import { videos, comments, users } from "@cap/database/schema";import { db } from "@cap/database";import { eq, and, gt, ne } from "drizzle-orm";@@ -7,7 +6,6 @@ import { sendEmail } from "@cap/database/emails/config";import { NewComment } from "@cap/database/emails/new-comment";import { buildEnv, serverEnv } from "@cap/env";-// Cache to store the last email sent time for each userconst lastEmailSentCache = new Map<string, Date>();export async function POST(request: NextRequest) {@@ -50,7 +48,6 @@ export async function POST(request: NextRequest) {);}- // Only send email notifications for text commentsif (!comment ||comment.type !== "text" ||@@ -124,7 +121,6 @@ export async function POST(request: NextRequest) {return Response.json({ error: "Invalid owner data" }, { status: 500 });}- // Get the commenter's namelet commenterName = "Anonymous";if (comment.authorId) {console.log(`Fetching commenter details for userId: ${comment.authorId}`);@@ -152,7 +148,6 @@ export async function POST(request: NextRequest) {console.log("No authorId provided, using 'Anonymous'");}- // Check if we've sent an email to this user in the last 15 minutesconst now = new Date();const lastEmailSent = lastEmailSentCache.get(owner.id);@@ -172,8 +167,6 @@ export async function POST(request: NextRequest) {}}- // Also check the database for recent comments that might have triggered emails- // This handles cases where the server restarts and the cache is clearedconst fifteenMinutesAgo = new Date(now.getTime() - 15 * 60 * 1000);console.log(`Checking for recent comments since ${fifteenMinutesAgo.toISOString()}`@@ -188,12 +181,11 @@ export async function POST(request: NextRequest) {eq(comments.videoId, comment.videoId),eq(comments.type, "text"),gt(comments.createdAt, fifteenMinutesAgo),- ne(comments.id, commentId) // Exclude the current comment+ ne(comments.id, commentId))).limit(1);- // If there are recent comments (other than this one), don't send another emailif (recentComments && recentComments.length > 0 && recentComments[0]) {console.log(`Found recent comment ${recentComments[0].id}, skipping email notification`@@ -210,7 +202,6 @@ export async function POST(request: NextRequest) {: `${serverEnv().WEB_URL}/s/${video.id}`;console.log(`Generated video URL: ${videoUrl}`);- // Send the emailconsole.log(`Sending email to ${owner.email} about comment on video "${video.name}"`);@@ -232,7 +223,6 @@ export async function POST(request: NextRequest) {console.log("Email send result:", emailResult);console.log("Email sent successfully");- // Update the cachelastEmailSentCache.set(owner.id, now);console.log(`Updated email cache for user ${owner.id}`);diff --git a/apps/web/app/api/invite/accept/route.ts b/apps/web/app/api/invite/accept/route.tsindex d3e2e7170..af1da5bc7 100644--- a/apps/web/app/api/invite/accept/route.ts+++ b/apps/web/app/api/invite/accept/route.ts@@ -1,7 +1,7 @@import { NextRequest, NextResponse } from "next/server";import { db } from "@cap/database";import { getCurrentUser } from "@cap/database/auth/session";-import { spaceInvites, spaceMembers, users } from "@cap/database/schema";+import { organizationInvites, organizationMembers, users } from "@cap/database/schema";import { eq } from "drizzle-orm";import { nanoId } from "@cap/database/helpers";@@ -17,37 +17,34 @@ export async function POST(request: NextRequest) {// Find the inviteconst [invite] = await db().select()- .from(spaceInvites)- .where(eq(spaceInvites.id, inviteId));+ .from(organizationInvites)+ .where(eq(organizationInvites.id, inviteId));if (!invite) {return NextResponse.json({ error: "Invite not found" }, { status: 404 });}- // Check if the user's email matches the invited emailif (user.email !== invite.invitedEmail) {return NextResponse.json({ error: "Email mismatch" }, { status: 403 });}- // Get the space owner's subscription ID- const [spaceOwner] = await db()+ const [organizationOwner] = await db().select({stripeSubscriptionId: users.stripeSubscriptionId,}).from(users).where(eq(users.id, invite.invitedByUserId));- if (!spaceOwner || !spaceOwner.stripeSubscriptionId) {+ if (!organizationOwner || !organizationOwner.stripeSubscriptionId) {return NextResponse.json(- { error: "Space owner not found or has no subscription" },+ { error: "Organization owner not found or has no subscription" },{ status: 404 });}- // Create a new space member- await db().insert(spaceMembers).values({+ await db().insert(organizationMembers).values({id: nanoId(),- spaceId: invite.spaceId,+ organizationId: invite.organizationId,userId: user.id,role: invite.role,});@@ -56,12 +53,11 @@ export async function POST(request: NextRequest) {await db().update(users).set({- thirdPartyStripeSubscriptionId: spaceOwner.stripeSubscriptionId,+ thirdPartyStripeSubscriptionId: organizationOwner.stripeSubscriptionId,}).where(eq(users.id, user.id));- // Delete the invite- await db().delete(spaceInvites).where(eq(spaceInvites.id, inviteId));+ await db().delete(organizationInvites).where(eq(organizationInvites.id, inviteId));return NextResponse.json({ success: true });} catch (error) {diff --git a/apps/web/app/api/invite/decline/route.ts b/apps/web/app/api/invite/decline/route.tsindex 26c5caa22..8b27523ee 100644--- a/apps/web/app/api/invite/decline/route.ts+++ b/apps/web/app/api/invite/decline/route.ts@@ -1,14 +1,13 @@import { NextRequest, NextResponse } from "next/server";import { db } from "@cap/database";-import { spaceInvites } from "@cap/database/schema";+import { organizationInvites } from "@cap/database/schema";import { eq } from "drizzle-orm";export async function POST(request: NextRequest) {const { inviteId } = await request.json();try {- // Delete the invite- await db().delete(spaceInvites).where(eq(spaceInvites.id, inviteId));+ await db().delete(organizationInvites).where(eq(organizationInvites.id, inviteId));return NextResponse.json({ success: true });} catch (error) {diff --git a/apps/web/app/api/settings/billing/manage/route.ts b/apps/web/app/api/settings/billing/manage/route.tsindex 9c47b94c9..83c94eaf9 100644--- a/apps/web/app/api/settings/billing/manage/route.ts+++ b/apps/web/app/api/settings/billing/manage/route.ts@@ -36,7 +36,7 @@ export async function POST(request: NextRequest) {const { url } = await stripe().billingPortal.sessions.create({customer: customerId as string,- return_url: `${serverEnv().WEB_URL}/dashboard/settings/workspace`,+ return_url: `${serverEnv().WEB_URL}/dashboard/settings/organization`,});return NextResponse.json(url);}diff --git a/apps/web/app/api/settings/onboarding/route.ts b/apps/web/app/api/settings/onboarding/route.tsindex 4e1e37453..674b6d0ca 100644--- a/apps/web/app/api/settings/onboarding/route.ts+++ b/apps/web/app/api/settings/onboarding/route.ts@@ -1,6 +1,6 @@import { type NextRequest } from "next/server";import { getCurrentUser } from "@cap/database/auth/session";-import { spaceMembers, spaces, users } from "@cap/database/schema";+import { organizationMembers, organizations, users } from "@cap/database/schema";import { db } from "@cap/database";import { eq, or } from "drizzle-orm";import { nanoId } from "@cap/database/helpers";@@ -28,37 +28,34 @@ export async function POST(request: NextRequest) {fullName += ` ${lastName}`;}- const [space] = await db()+ const [organization] = await db().select()- .from(spaces)- .where(or(eq(spaces.ownerId, user.id), eq(spaceMembers.userId, user.id)))- .leftJoin(spaceMembers, eq(spaces.id, spaceMembers.spaceId));+ .from(organizations)+ .where(or(eq(organizations.ownerId, user.id), eq(organizationMembers.userId, user.id)))+ .leftJoin(organizationMembers, eq(organizations.id, organizationMembers.organizationId));- if (!space) {- const spaceId = nanoId();+ if (!organization) {+ const organizationId = nanoId();- await db()- .insert(spaces)- .values({- id: spaceId,- ownerId: user.id,- name: `${fullName}'s Space`,- });+ await db().insert(organizations).values({+ id: organizationId,+ ownerId: user.id,+ name: `${fullName}'s Organization`,+ });- await db().insert(spaceMembers).values({+ await db().insert(organizationMembers).values({id: nanoId(),userId: user.id,role: "owner",- spaceId,+ organizationId,});await db().update(users)- .set({ activeSpaceId: spaceId })+ .set({ activeOrganizationId: organizationId }).where(eq(users.id, user.id));}- // After updating user and creating spacereturn Response.json({ success: true, message: "Onboarding completed successfully" },{ status: 200 }diff --git a/apps/web/app/api/thumbnail/route.ts b/apps/web/app/api/thumbnail/route.tsindex 6bc4af261..fb8978691 100644--- a/apps/web/app/api/thumbnail/route.ts+++ b/apps/web/app/api/thumbnail/route.ts@@ -7,7 +7,7 @@ import { s3Buckets, videos } from "@cap/database/schema";import { createS3Client, getS3Bucket } from "@/utils/s3";import { getSignedUrl } from "@aws-sdk/s3-request-presigner";import { S3_BUCKET_URL } from "@cap/utils";-import { buildEnv, serverEnv } from "@cap/env";+import { serverEnv } from "@cap/env";export const revalidate = 0;@@ -74,7 +74,7 @@ export async function GET(request: NextRequest) {}const Bucket = await getS3Bucket(result.bucket);- const [s3Client] = await createS3Client(result.bucket);+ const [s3ClientInstance] = await createS3Client(result.bucket);try {const listCommand = new ListObjectsV2Command({@@ -82,10 +82,10 @@ export async function GET(request: NextRequest) {Prefix: prefix,});- const listResponse = await s3Client.send(listCommand);+ const listResponse = await s3ClientInstance.send(listCommand);const contents = listResponse.Contents || [];- const thumbnailKey = contents.find((item) =>+ const thumbnailKey = contents.find((item: any) =>item.Key?.endsWith("screen-capture.jpg"))?.Key;@@ -103,7 +103,7 @@ export async function GET(request: NextRequest) {}thumbnailUrl = await getSignedUrl(- s3Client,+ s3ClientInstance,new GetObjectCommand({Bucket,Key: thumbnailKey,diff --git a/apps/web/app/api/video/domain-info/route.ts b/apps/web/app/api/video/domain-info/route.tsindex c45f49a86..72801cc4e 100644--- a/apps/web/app/api/video/domain-info/route.ts+++ b/apps/web/app/api/video/domain-info/route.ts@@ -1,5 +1,5 @@import { db } from "@cap/database";-import { videos, sharedVideos, spaces } from "@cap/database/schema";+import { videos, sharedVideos, organizations } from "@cap/database/schema";import { eq, and } from "drizzle-orm";import { NextRequest } from "next/server";@@ -34,58 +34,55 @@ export async function GET(request: NextRequest) {// Check if the video is shared with a spaceconst sharedVideo = await db().select({- spaceId: sharedVideos.spaceId,+ organizationId: sharedVideos.organizationId,}).from(sharedVideos).where(eq(sharedVideos.videoId, videoId)).limit(1);- let spaceId = null;- if (sharedVideo.length > 0 && sharedVideo[0] && sharedVideo[0].spaceId) {- spaceId = sharedVideo[0].spaceId;+ let organizationId = null;+ if (sharedVideo.length > 0 && sharedVideo[0] && sharedVideo[0].organizationId) {+ organizationId = sharedVideo[0].organizationId;}- // If we have a space ID, get the space's custom domain- if (spaceId) {- const space = await db()+ if (organizationId) {+ const organization = await db().select({- customDomain: spaces.customDomain,- domainVerified: spaces.domainVerified,+ customDomain: organizations.customDomain,+ domainVerified: organizations.domainVerified,})- .from(spaces)- .where(eq(spaces.id, spaceId))+ .from(organizations)+ .where(eq(organizations.id, organizationId)).limit(1);- if (space.length > 0 && space[0] && space[0].customDomain) {+ if (organization.length > 0 && organization[0] && organization[0].customDomain) {return Response.json({- customDomain: space[0].customDomain,- domainVerified: space[0].domainVerified || false,+ customDomain: organization[0].customDomain,+ domainVerified: organization[0].domainVerified || false,});}}- // If no shared space or no custom domain, check the owner's space- const ownerSpaces = await db()+ const ownerOrganizations = await db().select({- customDomain: spaces.customDomain,- domainVerified: spaces.domainVerified,+ customDomain: organizations.customDomain,+ domainVerified: organizations.domainVerified,})- .from(spaces)- .where(eq(spaces.ownerId, videoData.ownerId))+ .from(organizations)+ .where(eq(organizations.ownerId, videoData.ownerId)).limit(1);if (- ownerSpaces.length > 0 &&- ownerSpaces[0] &&- ownerSpaces[0].customDomain+ ownerOrganizations.length > 0 &&+ ownerOrganizations[0] &&+ ownerOrganizations[0].customDomain) {return Response.json({- customDomain: ownerSpaces[0].customDomain,- domainVerified: ownerSpaces[0].domainVerified || false,+ customDomain: ownerOrganizations[0].customDomain,+ domainVerified: ownerOrganizations[0].domainVerified || false,});}- // No custom domain foundreturn Response.json({customDomain: null,domainVerified: false,diff --git a/apps/web/app/dashboard/_components/AdminNavbar/AdminNavItems.tsx b/apps/web/app/dashboard/_components/AdminNavbar/AdminNavItems.tsxindex 0cbdb9259..1a1b4e648 100644--- a/apps/web/app/dashboard/_components/AdminNavbar/AdminNavItems.tsx+++ b/apps/web/app/dashboard/_components/AdminNavbar/AdminNavItems.tsx@@ -19,7 +19,7 @@ import { useState } from "react";import { useSharedContext } from "@/app/dashboard/_components/DynamicSharedLayout";import { Avatar } from "@/app/s/[videoId]/_components/tabs/Activity";-import { NewSpace } from "@/components/forms/NewSpace";+import { NewOrganization } from "@/components/forms/NewOrganization";import { Tooltip } from "@/components/Tooltip";import { UsageButton } from "@/components/UsageButton";import {@@ -39,13 +39,15 @@ import {import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";import clsx from "clsx";import { motion } from "framer-motion";-import { updateActiveSpace } from "./server";import { buildEnv } from "@cap/env";+import { updateActiveOrganization } from "./server";+export const AdminNavItems = ({ collapsed }: { collapsed?: boolean }) => {const pathname = usePathname();const [open, setOpen] = useState(false);- const { spaceData, activeSpace, user, isSubscribed } = useSharedContext();+ const { organizationData, activeOrganization, user, isSubscribed } =+ useSharedContext();const manageNavigation = [{@@ -67,8 +69,8 @@ export const AdminNavItems = ({ collapsed }: { collapsed?: boolean }) => {subNav: [],},{- name: "Workspace",- href: `/dashboard/settings/workspace`,+ name: "Organization",+ href: `/dashboard/settings/organization`,icon: faBuilding,subNav: [],},@@ -95,7 +97,9 @@ export const AdminNavItems = ({ collapsed }: { collapsed?: boolean }) => {<Tooltipdisable={open || collapsed === false}position="right"- content={activeSpace?.space.name ?? "No space found"}+ content={+ activeOrganization?.organization.name ?? "No organization found"+ }><PopoverTrigger asChild><div@@ -113,10 +117,14 @@ export const AdminNavItems = ({ collapsed }: { collapsed?: boolean }) => {<AvatarletterClass="text-gray-1 text-xs"className="relative flex-shrink-0 size-5"- name={activeSpace?.space.name ?? "No space found"}+ name={+ activeOrganization?.organization.name ??+ "No organization found"+ }/><p className="ml-2.5 text-sm text-gray-12 font-medium truncate">- {activeSpace?.space.name ?? "No space found"}+ {activeOrganization?.organization.name ??+ "No organization found"}</p></div>{!collapsed && (@@ -131,21 +139,24 @@ export const AdminNavItems = ({ collapsed }: { collapsed?: boolean }) => {)}><Command>- <CommandInput placeholder="Search spaces..." />- <CommandEmpty>No spaces found</CommandEmpty>+ <CommandInput placeholder="Search organizations..." />+ <CommandEmpty>No organizations found</CommandEmpty><CommandGroup>- {spaceData?.map((space) => {+ {organizationData?.map((organization) => {const isSelected =- activeSpace?.space.id === space.space.id;+ activeOrganization?.organization.id ===+ organization.organization.id;return (<CommandItem- key={space.space.name + "-space"}+ key={organization.organization.name + "-organization"}onSelect={async () => {- await updateActiveSpace(space.space.id);+ await updateActiveOrganization(+ organization.organization.id+ );setOpen(false);}}>- {space.space.name}+ {organization.organization.name}<Checksize={18}className={classNames(@@ -163,7 +174,7 @@ export const AdminNavItems = ({ collapsed }: { collapsed?: boolean }) => {className="flex gap-1 items-center w-full"><Plus className="w-4 h-auto" />- Add new space+ Add new organization</Button></DialogTrigger></CommandGroup>@@ -247,10 +258,10 @@ export const AdminNavItems = ({ collapsed }: { collapsed?: boolean }) => {</nav><DialogContent><DialogHeader>- <DialogTitle>Create a new Space</DialogTitle>+ <DialogTitle>Create a new Organization</DialogTitle></DialogHeader><DialogDescription>- <NewSpace onSpaceCreated={() => setDialogOpen(false)} />+ <NewOrganization onOrganizationCreated={() => setDialogOpen(false)} /></DialogDescription></DialogContent></Dialog>diff --git a/apps/web/app/dashboard/_components/AdminNavbar/server.ts b/apps/web/app/dashboard/_components/AdminNavbar/server.tsindex 44617ba32..9403c2524 100644--- a/apps/web/app/dashboard/_components/AdminNavbar/server.ts+++ b/apps/web/app/dashboard/_components/AdminNavbar/server.ts@@ -2,28 +2,35 @@import { db } from "@cap/database";import { getCurrentUser } from "@cap/database/auth/session";-import { spaceMembers, spaces, users } from "@cap/database/schema";+import {+ organizationMembers,+ organizations,+ users,+} from "@cap/database/schema";import { and, eq } from "drizzle-orm";import { revalidatePath } from "next/cache";-export async function updateActiveSpace(spaceId: string) {+export async function updateActiveOrganization(organizationId: string) {const user = await getCurrentUser();if (!user) throw new Error("Unauthorized");- const [space] = await db()- .select({ space: spaces })- .from(spaces)+ const [organization] = await db()+ .select({ organization: organizations })+ .from(organizations).innerJoin(- spaceMembers,- and(eq(spaceMembers.spaceId, spaces.id), eq(spaceMembers.userId, user.id))+ organizationMembers,+ and(+ eq(organizationMembers.organizationId, organizations.id),+ eq(organizationMembers.userId, user.id)+ ))- .where(eq(spaces.id, spaceId));+ .where(eq(organizations.id, organizationId));- if (!space) throw new Error("Space not found");+ if (!organization) throw new Error("Organization not found");await db().update(users)- .set({ activeSpaceId: space.space.id })+ .set({ activeOrganizationId: organization.organization.id }).where(eq(users.id, user.id));revalidatePath("/dashboard");diff --git a/apps/web/app/dashboard/_components/DashboardInner.tsx b/apps/web/app/dashboard/_components/DashboardInner.tsxindex 6cd0c11af..79e171a7b 100644--- a/apps/web/app/dashboard/_components/DashboardInner.tsx+++ b/apps/web/app/dashboard/_components/DashboardInner.tsx@@ -40,7 +40,7 @@ export default function DashboardInner({const titles: Record<string, string> = {"/dashboard/caps": "Caps","/dashboard/shared-caps": "Shared Caps",- "/dashboard/settings/workspace": "Workspace Settings",+ "/dashboard/settings/organization": "Organization Settings","/dashboard/settings/account": "Account Settings",};const title = titles[pathname] || "";diff --git a/apps/web/app/dashboard/_components/DynamicSharedLayout.tsx b/apps/web/app/dashboard/_components/DynamicSharedLayout.tsxindex a3100fa9f..20e85b4e3 100644--- a/apps/web/app/dashboard/_components/DynamicSharedLayout.tsx+++ b/apps/web/app/dashboard/_components/DynamicSharedLayout.tsx@@ -1,14 +1,14 @@"use client";import AdminMobileNav from "@/app/dashboard/_components/AdminNavbar/AdminMobileNav";-import { Space } from "@/app/dashboard/layout";+import { Organization } from "@/app/dashboard/layout";import { users } from "@cap/database/schema";import Cookies from "js-cookie";import React, { createContext, useContext, useEffect, useState } from "react";import AdminDesktopNav from "./AdminNavbar/AdminDesktopNav";type SharedContext = {- spaceData: Space[] | null;- activeSpace: Space | null;+ organizationData: Organization[] | null;+ activeOrganization: Organization | null;user: typeof users.$inferSelect;isSubscribed: boolean;};@@ -29,15 +29,15 @@ export const useTheme = () => useContext(ThemeContext);export default function DynamicSharedLayout({children,- spaceData,- activeSpace,+ organizationData,+ activeOrganization,user,isSubscribed,initialTheme,}: {children: React.ReactNode;- spaceData: SharedContext["spaceData"];- activeSpace: SharedContext["activeSpace"];+ organizationData: SharedContext["organizationData"];+ activeOrganization: SharedContext["activeOrganization"];user: SharedContext["user"];isSubscribed: SharedContext["isSubscribed"];initialTheme: ITheme;@@ -62,8 +62,8 @@ export default function DynamicSharedLayout({<ThemeContext.Provider value={{ theme, setThemeHandler }}><Context.Providervalue={{- spaceData,- activeSpace,+ organizationData,+ activeOrganization,user,isSubscribed,}}diff --git a/apps/web/app/dashboard/caps/Caps.tsx b/apps/web/app/dashboard/caps/Caps.tsxindex 306ff223a..3ced677e9 100644--- a/apps/web/app/dashboard/caps/Caps.tsx+++ b/apps/web/app/dashboard/caps/Caps.tsx@@ -21,7 +21,7 @@ type VideoData = {createdAt: Date;totalComments: number;totalReactions: number;- sharedSpaces: { id: string; name: string }[];+ sharedOrganizations: { id: string; name: string }[];ownerName: string;metadata?: VideoMetadata;}[];@@ -29,11 +29,11 @@ type VideoData = {export const Caps = ({data,count,- userSpaces,+ userOrganizations,}: {data: VideoData;count: number;- userSpaces: { id: string; name: string }[];+ userOrganizations: { id: string; name: string }[];}) => {const { refresh } = useRouter();const params = useSearchParams();@@ -222,7 +222,7 @@ export const Caps = ({analytics={analytics[cap.id] || 0}onDelete={deleteCap}userId={user?.id}- userSpaces={userSpaces}+ userOrganizations={userOrganizations}isSelected={selectedCaps.includes(cap.id)}onSelectToggle={() => handleCapSelection(cap.id)}anyCapSelected={anyCapSelected}diff --git a/apps/web/app/dashboard/caps/components/CapCard.tsx b/apps/web/app/dashboard/caps/components/CapCard.tsxindex 73381b49f..ab2051980 100644--- a/apps/web/app/dashboard/caps/components/CapCard.tsx+++ b/apps/web/app/dashboard/caps/components/CapCard.tsx@@ -31,14 +31,14 @@ interface Props extends PropsWithChildren {createdAt: Date;totalComments: number;totalReactions: number;- sharedSpaces?: { id: string; name: string }[];+ sharedOrganizations?: { id: string; name: string }[];ownerName: string | null;metadata?: VideoMetadata;};analytics: number;onDelete?: (videoId: string) => Promise<void>;userId?: string;- userSpaces?: { id: string; name: string }[];+ userOrganizations?: { id: string; name: string }[];sharedCapCard?: boolean;isSelected?: boolean;onSelectToggle?: () => void;@@ -51,7 +51,7 @@ export const CapCard = ({children,onDelete,userId,- userSpaces,+ userOrganizations,sharedCapCard = false,isSelected = false,onSelectToggle,@@ -64,7 +64,9 @@ export const CapCard = ({const [isEditing, setIsEditing] = useState(false);const [title, setTitle] = useState(cap.name);const [isSharingDialogOpen, setIsSharingDialogOpen] = useState(false);- const [sharedSpaces, setSharedSpaces] = useState(cap.sharedSpaces);+ const [sharedOrganizations, setSharedOrganizations] = useState(+ cap.sharedOrganizations+ );const [isDateEditing, setIsDateEditing] = useState(false);const [copyPressed, setCopyPressed] = useState(false);const [dateValue, setDateValue] = useState(@@ -72,7 +74,7 @@ export const CapCard = ({);const [showFullDate, setShowFullDate] = useState(false);const router = useRouter();- const { activeSpace } = useSharedContext();+ const { activeOrganization } = useSharedContext();const handleTitleBlur = async (capName: string) => {if (capName === title) return;@@ -100,9 +102,11 @@ export const CapCard = ({? Math.max(cap.totalComments, cap.totalReactions): analytics;- const handleSharingUpdated = (updatedSharedSpaces: string[]) => {- setSharedSpaces(- userSpaces?.filter((space) => updatedSharedSpaces.includes(space.id))+ const handleSharingUpdated = (updatedSharedOrganizations: string[]) => {+ setSharedOrganizations(+ userOrganizations?.filter((organization) =>+ updatedSharedOrganizations.includes(organization.id)+ ));router.refresh();};@@ -115,7 +119,7 @@ export const CapCard = ({sharedCapCard ? "cursor-default" : "hover:text-gray-12 cursor-pointer");if (isOwner) {- if (cap.sharedSpaces?.length === 0) {+ if (cap.sharedOrganizations?.length === 0) {return (<pclassName={baseClassName}@@ -238,8 +242,9 @@ export const CapCard = ({const { webUrl } = usePublicEnv();const capUrl =- activeSpace?.space.customDomain && activeSpace.space.domainVerified- ? `https://${activeSpace.space.customDomain}/s/${cap.id}`+ activeOrganization?.organization.customDomain &&+ activeOrganization?.organization.domainVerified+ ? `https://${activeOrganization.organization.customDomain}/s/${cap.id}`: buildEnv.NEXT_PUBLIC_IS_CAP && NODE_ENV === "production"? `https://cap.link/${cap.id}`: `${webUrl}/s/${cap.id}`;@@ -251,8 +256,8 @@ export const CapCard = ({onClose={() => setIsSharingDialogOpen(false)}capId={cap.id}capName={cap.name}- sharedSpaces={sharedSpaces || []}- userSpaces={userSpaces}+ sharedOrganizations={cap.sharedOrganizations || []}+ userOrganizations={userOrganizations}onSharingUpdated={handleSharingUpdated}/><divdiff --git a/apps/web/app/dashboard/caps/components/CapCardActions.tsx b/apps/web/app/dashboard/caps/components/CapCardActions.tsxdeleted file mode 100644index e68ea6851..000000000--- a/apps/web/app/dashboard/caps/components/CapCardActions.tsx+++ /dev/null@@ -1,46 +0,0 @@-import { serverEnv, NODE_ENV } from "@cap/env";-import { LinkIcon, Trash } from "lucide-react";-import { toast } from "react-hot-toast";-import { Tooltip } from "react-tooltip";-import { useSharedContext } from "../../_components/DynamicSharedLayout";-interface CapCardActionsProps {- capId: string;- url: string;- onDelete: (videoId: string) => Promise<void>;-}--export const CapCardActions = ({- capId,- url,- onDelete,-}: CapCardActionsProps) => {- const copyLink = () => {- navigator.clipboard.writeText(url);- toast.success("Link copied to clipboard!");- };-- return (- <div className="absolute top-2 right-2 space-y-2 z-20">- <button- type="button"- className="cursor-pointer border border-gray-300 relative bg-gray-1 hover:bg-gray-200 w-8 h-8 m-0 p-0 rounded-full flex items-center justify-center transition-all"- onClick={copyLink}- data-tooltip-id={capId + "_copy"}- data-tooltip-content="Copy shareable Cap link"- >- <LinkIcon className="w-4 h-4" />- <Tooltip id={capId + "_copy"} />- </button>- <button- type="button"- className="cursor-pointer border border-gray-300 relative bg-gray-1 hover:bg-gray-200 w-8 h-8 m-0 p-0 rounded-full flex items-center justify-center transition-all"- onClick={() => onDelete(capId)}- data-tooltip-id={capId + "_delete"}- data-tooltip-content="Delete your Cap recording"- >- <Trash className="w-4 h-4" />- <Tooltip id={capId + "_delete"} />- </button>- </div>- );-};diff --git a/apps/web/app/dashboard/caps/components/SharingDialog.tsx b/apps/web/app/dashboard/caps/components/SharingDialog.tsxindex c20b0f311..a56c3c1df 100644--- a/apps/web/app/dashboard/caps/components/SharingDialog.tsx+++ b/apps/web/app/dashboard/caps/components/SharingDialog.tsx@@ -12,9 +12,9 @@ interface SharingDialogProps {onClose: () => void;capId: string;capName: string;- sharedSpaces: { id: string; name: string }[];- userSpaces?: { id: string; name: string }[];- onSharingUpdated: (updatedSharedSpaces: string[]) => void;+ sharedOrganizations: { id: string; name: string }[];+ userOrganizations?: { id: string; name: string }[];+ onSharingUpdated: (updatedSharedOrganizations: string[]) => void;}export const SharingDialog: React.FC<SharingDialogProps> = ({@@ -22,34 +22,37 @@ export const SharingDialog: React.FC<SharingDialogProps> = ({onClose,capId,capName,- sharedSpaces,- userSpaces,+ sharedOrganizations,+ userOrganizations,onSharingUpdated,}) => {- const [selectedSpaces, setSelectedSpaces] = useState<Set<string>>(- new Set(sharedSpaces.map((space) => space.id))- );- const [searchTerm, setSearchTerm] = useState("");- const [initialSelectedSpaces, setInitialSelectedSpaces] = useState<+ const [selectedOrganizations, setSelectedOrganizations] = useState<Set<string>- >(new Set(sharedSpaces.map((space) => space.id)));+ >(new Set(sharedOrganizations.map((organization) => organization.id)));+ const [searchTerm, setSearchTerm] = useState("");+ const [initialSelectedOrganizations, setInitialSelectedOrganizations] =+ useState<Set<string>>(+ new Set(sharedOrganizations.map((organization) => organization.id))+ );useEffect(() => {if (isOpen) {- const currentSpaceIds = new Set(sharedSpaces.map((space) => space.id));- setSelectedSpaces(currentSpaceIds);- setInitialSelectedSpaces(currentSpaceIds);+ const currentOrganizationIds = new Set(+ sharedOrganizations.map((organization) => organization.id)+ );+ setSelectedOrganizations(currentOrganizationIds);+ setInitialSelectedOrganizations(currentOrganizationIds);setSearchTerm("");}- }, [isOpen, sharedSpaces]);+ }, [isOpen, sharedOrganizations]);- const handleToggleSpace = (spaceId: string) => {- setSelectedSpaces((prev) => {+ const handleToggleOrganization = (organizationId: string) => {+ setSelectedOrganizations((prev) => {const newSet = new Set(prev);- if (newSet.has(spaceId)) {- newSet.delete(spaceId);+ if (newSet.has(organizationId)) {+ newSet.delete(organizationId);} else {- newSet.add(spaceId);+ newSet.add(organizationId);}return newSet;});@@ -60,44 +63,64 @@ export const SharingDialog: React.FC<SharingDialogProps> = ({const response = await fetch("/api/caps/share", {method: "POST",headers: { "Content-Type": "application/json" },- body: JSON.stringify({ capId, spaceIds: Array.from(selectedSpaces) }),+ body: JSON.stringify({+ capId,+ organizationIds: Array.from(selectedOrganizations),+ }),});if (!response.ok) {throw new Error("Failed to update sharing settings");}- const newSelectedSpaces = Array.from(selectedSpaces);- const initialSpaces = Array.from(initialSelectedSpaces);+ const newSelectedOrganizations = Array.from(selectedOrganizations);+ const initialOrganizations = Array.from(initialSelectedOrganizations);- const addedSpaceIds = newSelectedSpaces.filter(- (id) => !initialSpaces.includes(id)+ const addedOrganizationIds = newSelectedOrganizations.filter(+ (id) => !initialOrganizations.includes(id));- const removedSpaceIds = initialSpaces.filter(- (id) => !newSelectedSpaces.includes(id)+ const removedOrganizationIds = initialOrganizations.filter(+ (id) => !newSelectedOrganizations.includes(id));- if (addedSpaceIds.length === 1 && removedSpaceIds.length === 0) {- const addedSpaceName = userSpaces?.find(- (space) => space.id === addedSpaceIds[0]+ if (+ addedOrganizationIds.length === 1 &&+ removedOrganizationIds.length === 0+ ) {+ const addedOrganizationName = userOrganizations?.find(+ (organization) => organization.id === addedOrganizationIds[0])?.name;- toast.success(`Shared to ${addedSpaceName}`);- } else if (removedSpaceIds.length === 1 && addedSpaceIds.length === 0) {- const removedSpaceName = sharedSpaces.find(- (space) => space.id === removedSpaceIds[0]+ toast.success(`Shared to ${addedOrganizationName}`);+ } else if (+ removedOrganizationIds.length === 1 &&+ addedOrganizationIds.length === 0+ ) {+ const removedOrganizationName = sharedOrganizations.find(+ (organization) => organization.id === removedOrganizationIds[0])?.name;- toast.success(`Unshared from ${removedSpaceName}`);- } else if (addedSpaceIds.length > 0 && removedSpaceIds.length === 0) {- toast.success(`Shared to ${addedSpaceIds.length} spaces`);- } else if (removedSpaceIds.length > 0 && addedSpaceIds.length === 0) {- toast.success(`Unshared from ${removedSpaceIds.length} spaces`);- } else if (addedSpaceIds.length > 0 && removedSpaceIds.length > 0) {+ toast.success(`Unshared from ${removedOrganizationName}`);+ } else if (+ addedOrganizationIds.length > 0 &&+ removedOrganizationIds.length === 0+ ) {+ toast.success(`Shared to ${addedOrganizationIds.length} organizations`);+ } else if (+ removedOrganizationIds.length > 0 &&+ addedOrganizationIds.length === 0+ ) {+ toast.success(+ `Unshared from ${removedOrganizationIds.length} organizations`+ );+ } else if (+ addedOrganizationIds.length > 0 &&+ removedOrganizationIds.length > 0+ ) {toast.success(`Sharing settings updated`);} else {toast.success("No changes to sharing settings");}- onSharingUpdated(newSelectedSpaces);+ onSharingUpdated(newSelectedOrganizations);onClose();} catch (error) {console.error("Error updating sharing settings:", error);@@ -105,8 +128,8 @@ export const SharingDialog: React.FC<SharingDialogProps> = ({}};- const filteredSpaces = userSpaces?.filter((space) =>- space.name.toLowerCase().includes(searchTerm.toLowerCase())+ const filteredOrganizations = userOrganizations?.filter((organization) =>+ organization.name.toLowerCase().includes(searchTerm.toLowerCase()));return (@@ -149,7 +172,7 @@ export const SharingDialog: React.FC<SharingDialogProps> = ({<span className="font-bold text-gray-12">{capName}</span></p><p className="text-sm text-gray-10">- Select the spaces you would like to share with+ Select the organizations you would like to share with</p></div></Dialog.Title>@@ -168,27 +191,27 @@ export const SharingDialog: React.FC<SharingDialogProps> = ({/></div><div className="overflow-y-auto max-h-60">- {filteredSpaces && filteredSpaces.length > 0 ? (- filteredSpaces.map((space) => (+ {filteredOrganizations && filteredOrganizations.length > 0 ? (+ filteredOrganizations.map((organization) => (<div- key={space.id}+ key={organization.id}className={clsx(`flex items-center border transition-colors duration-200 border-gray-3 justify-between p-3 rounded-xl cursor-pointer`,- selectedSpaces.has(space.id)+ selectedOrganizations.has(organization.id)? "bg-gray-1": "hover:bg-gray-3 hover:border-gray-4")}- onClick={() => handleToggleSpace(space.id)}+ onClick={() => handleToggleOrganization(organization.id)}><div className="flex items-center"><div className="flex justify-center items-center mr-3 w-8 h-8 font-semibold rounded-md bg-blue-10 text-gray-12">- {space.name.charAt(0).toUpperCase()}+ {organization.name.charAt(0).toUpperCase()}</div><span className="text-sm transition-colors duration-200 text-gray-12">- {space.name}+ {organization.name}</span></div>- {selectedSpaces.has(space.id) ? (+ {selectedOrganizations.has(organization.id) ? (<span className="text-sm font-medium text-blue-500">Added</span>@@ -199,7 +222,7 @@ export const SharingDialog: React.FC<SharingDialogProps> = ({))) : (<div className="flex gap-2 justify-center items-center pt-2 text-sm">- <p className="text-gray-12">No spaces found</p>+ <p className="text-gray-12">No organizations found</p></div>)}</div>diff --git a/apps/web/app/dashboard/caps/page.tsx b/apps/web/app/dashboard/caps/page.tsxindex 25428a30e..84ee627d4 100644--- a/apps/web/app/dashboard/caps/page.tsx+++ b/apps/web/app/dashboard/caps/page.tsx@@ -3,8 +3,8 @@ import { getCurrentUser } from "@cap/database/auth/session";import {comments,sharedVideos,- spaceMembers,- spaces,+ organizationMembers,+ organizations,users,videos,} from "@cap/database/schema";@@ -55,12 +55,12 @@ export default async function CapsPage({metadata: videos.metadata,totalComments: sql<number>`COUNT(DISTINCT CASE WHEN ${comments.type} = 'text' THEN ${comments.id} END)`,totalReactions: sql<number>`COUNT(DISTINCT CASE WHEN ${comments.type} = 'emoji' THEN ${comments.id} END)`,- sharedSpaces: sql<{ id: string; name: string }[]>`+ sharedOrganizations: sql<{ id: string; name: string }[]>`COALESCE(JSON_ARRAYAGG(JSON_OBJECT(- 'id', ${spaces.id},- 'name', ${spaces.name}+ 'id', ${organizations.id},+ 'name', ${organizations.name})),JSON_ARRAY()@@ -77,7 +77,7 @@ export default async function CapsPage({.from(videos).leftJoin(comments, eq(videos.id, comments.videoId)).leftJoin(sharedVideos, eq(videos.id, sharedVideos.videoId))- .leftJoin(spaces, eq(sharedVideos.spaceId, spaces.id))+ .leftJoin(organizations, eq(sharedVideos.organizationId, organizations.id)).leftJoin(users, eq(videos.ownerId, users.id)).where(eq(videos.ownerId, userId)).groupBy(@@ -97,21 +97,26 @@ export default async function CapsPage({.limit(limit).offset(offset);- const userSpaces = await db()+ const userOrganizations = await db().select({- id: spaces.id,- name: spaces.name,+ id: organizations.id,+ name: organizations.name,})- .from(spaces)- .leftJoin(spaceMembers, eq(spaces.id, spaceMembers.spaceId))- .where(eq(spaceMembers.userId, userId));+ .from(organizations)+ .leftJoin(+ organizationMembers,+ eq(organizations.id, organizationMembers.organizationId)+ )+ .where(eq(organizationMembers.userId, userId));const processedVideoData = videoData.map((video) => {const { effectiveDate, ...videoWithoutEffectiveDate } = video;return {...videoWithoutEffectiveDate,- sharedSpaces: video.sharedSpaces.filter((space) => space.id !== null),+ sharedOrganizations: video.sharedOrganizations.filter(+ (organization) => organization.id !== null+ ),ownerName: video.ownerName ?? "",metadata: video.metadata as| {@@ -126,7 +131,7 @@ export default async function CapsPage({<Capsdata={processedVideoData}count={totalCount}- userSpaces={userSpaces}+ userOrganizations={userOrganizations}/>);}diff --git a/apps/web/app/dashboard/layout.tsx b/apps/web/app/dashboard/layout.tsxindex e9c769fa5..a6687d88c 100644--- a/apps/web/app/dashboard/layout.tsx+++ b/apps/web/app/dashboard/layout.tsx@@ -3,21 +3,21 @@ import { DashboardTemplate } from "@/components/templates/DashboardTemplate";import { db } from "@cap/database";import { getCurrentUser } from "@cap/database/auth/session";import {- spaceInvites,- spaceMembers,- spaces,+ organizationInvites,+ organizationMembers,+ organizations,users,} from "@cap/database/schema";import { count, eq, inArray, or, sql } from "drizzle-orm";import { cookies } from "next/headers";import { redirect } from "next/navigation";-export type Space = {- space: typeof spaces.$inferSelect;- members: (typeof spaceMembers.$inferSelect & {+export type Organization = {+ organization: typeof organizations.$inferSelect;+ members: (typeof organizationMembers.$inferSelect & {user: Pick<typeof users.$inferSelect, "id" | "name" | "email" | "lastName">;})[];- invites: (typeof spaceInvites.$inferSelect)[];+ invites: (typeof organizationInvites.$inferSelect)[];inviteQuota: number;totalInvites: number;};@@ -39,10 +39,10 @@ export default async function DashboardLayout({redirect("/onboarding");}- const spacesWithMembers = await db()+ const organizationsWithMembers = await db().select({- space: spaces,- member: spaceMembers,+ organization: organizations,+ member: organizationMembers,user: {id: users.id,name: users.name,@@ -51,34 +51,46 @@ export default async function DashboardLayout({inviteQuota: users.inviteQuota,},})- .from(spaces)- .leftJoin(spaceMembers, eq(spaces.id, spaceMembers.spaceId))- .leftJoin(users, eq(spaceMembers.userId, users.id))- .where(or(eq(spaces.ownerId, user.id), eq(spaceMembers.userId, user.id)));-- const spaceIds = spacesWithMembers.map((row) => row.space.id);+ .from(organizations)+ .leftJoin(+ organizationMembers,+ eq(organizations.id, organizationMembers.organizationId)+ )+ .leftJoin(users, eq(organizationMembers.userId, users.id))+ .where(+ or(+ eq(organizations.ownerId, user.id),+ eq(organizationMembers.userId, user.id)+ )+ );++ const organizationIds = organizationsWithMembers.map(+ (row) => row.organization.id+ );- let spaceInvitesData: (typeof spaceInvites.$inferSelect)[] = [];- if (spaceIds.length > 0) {- spaceInvitesData = await db()+ let organizationInvitesData: (typeof organizationInvites.$inferSelect)[] = [];+ if (organizationIds.length > 0) {+ organizationInvitesData = await db().select()- .from(spaceInvites)- .where(inArray(spaceInvites.spaceId, spaceIds));+ .from(organizationInvites)+ .where(inArray(organizationInvites.organizationId, organizationIds));}- const spaceSelect: Space[] = await Promise.all(- spacesWithMembers- .reduce((acc: (typeof spaces.$inferSelect)[], row) => {- const existingSpace = acc.find((s) => s.id === row.space.id);- if (!existingSpace) {- acc.push(row.space);+ const organizationSelect: Organization[] = await Promise.all(+ organizationsWithMembers+ .reduce((acc: (typeof organizations.$inferSelect)[], row) => {+ const existingOrganization = acc.find(+ (o) => o.id === row.organization.id+ );+ if (!existingOrganization) {+ acc.push(row.organization);}return acc;}, [])- .map(async (space) => {+ .map(async (organization) => {const allMembers = await db().select({- member: spaceMembers,+ member: organizationMembers,user: {id: users.id,name: users.name,@@ -86,36 +98,44 @@ export default async function DashboardLayout({email: users.email,},})- .from(spaceMembers)- .leftJoin(users, eq(spaceMembers.userId, users.id))- .where(eq(spaceMembers.spaceId, space.id));+ .from(organizationMembers)+ .leftJoin(users, eq(organizationMembers.userId, users.id))+ .where(eq(organizationMembers.organizationId, organization.id));const owner = await db().select({inviteQuota: users.inviteQuota,}).from(users)- .where(eq(users.id, space.ownerId))+ .where(eq(users.id, organization.ownerId)).then((result) => result[0]);const totalInvitesResult = await db().select({value: sql<number>`- ${count(spaceMembers.id)} + ${count(spaceInvites.id)}+ ${count(organizationMembers.id)} + ${count(+ organizationInvites.id+ )}`,})- .from(spaces)- .leftJoin(spaceMembers, eq(spaces.id, spaceMembers.spaceId))- .leftJoin(spaceInvites, eq(spaces.id, spaceInvites.spaceId))- .where(eq(spaces.ownerId, space.ownerId));+ .from(organizations)+ .leftJoin(+ organizationMembers,+ eq(organizations.id, organizationMembers.organizationId)+ )+ .leftJoin(+ organizationInvites,+ eq(organizations.id, organizationInvites.organizationId)+ )+ .where(eq(organizations.ownerId, organization.ownerId));const totalInvites = totalInvitesResult[0]?.value || 0;return {- space,+ organization,members: allMembers.map((m) => ({ ...m.member, user: m.user! })),- invites: spaceInvitesData.filter(- (invite) => invite.spaceId === space.id+ invites: organizationInvitesData.filter(+ (invite) => invite.organizationId === organization.id),inviteQuota: owner?.inviteQuota || 1,totalInvites,@@ -123,12 +143,12 @@ export default async function DashboardLayout({}));- let findActiveSpace = spaceSelect.find(- (space) => space.space.id === user.activeSpaceId+ let findActiveOrganization = organizationSelect.find(+ (organization) => organization.organization.id === user.activeOrganizationId);- if (!findActiveSpace && spaceSelect.length > 0) {- findActiveSpace = spaceSelect[0];+ if (!findActiveOrganization && organizationSelect.length > 0) {+ findActiveOrganization = organizationSelect[0];}const isSubscribed =@@ -140,8 +160,8 @@ export default async function DashboardLayout({return (<DynamicSharedLayout- spaceData={spaceSelect}- activeSpace={findActiveSpace || null}+ organizationData={organizationSelect}+ activeOrganization={findActiveOrganization || null}user={user}isSubscribed={isSubscribed}initialTheme={theme as "light" | "dark"}diff --git a/apps/web/app/dashboard/settings/workspace/Workspace.tsx b/apps/web/app/dashboard/settings/organization/Organization.tsxsimilarity index 85%rename from apps/web/app/dashboard/settings/workspace/Workspace.tsxrename to apps/web/app/dashboard/settings/organization/Organization.tsxindex 0beb99365..9281b1162 100644--- a/apps/web/app/dashboard/settings/workspace/Workspace.tsx+++ b/apps/web/app/dashboard/settings/organization/Organization.tsx@@ -1,9 +1,9 @@"use client";-import { manageBilling } from "@/actions/workspace/manage-billing";-import { removeWorkspaceInvite } from "@/actions/workspace/remove-invite";-import { sendWorkspaceInvites } from "@/actions/workspace/send-invites";-import { updateWorkspaceDetails } from "@/actions/workspace/update-details";+import { manageBilling } from "@/actions/organization/manage-billing";+import { removeOrganizationInvite } from "@/actions/organization/remove-invite";+import { sendOrganizationInvites } from "@/actions/organization/send-invites";+import { updateOrganizationDetails } from "@/actions/organization/update-details";import { useSharedContext } from "@/app/dashboard/_components/DynamicSharedLayout";import { Tooltip } from "@/components/Tooltip";import {@@ -35,12 +35,12 @@ import { useRef, useState } from "react";import toast from "react-hot-toast";import { CustomDomain } from "./components/CustomDomain";-export const Workspace = () => {- const { activeSpace, user } = useSharedContext();- const workspaceName = activeSpace?.space.name;+export const Organization = () => {+ const { activeOrganization, user } = useSharedContext();+ const organizationName = activeOrganization?.organization.name;const router = useRouter();const [loading, setLoading] = useState(false);- const isOwner = user?.id === activeSpace?.space.ownerId;+ const isOwner = user?.id === activeOrganization?.organization.ownerId;const [isInviteDialogOpen, setIsInviteDialogOpen] = useState(false);const [inviteEmails, setInviteEmails] = useState<string[]>([]);const [emailInput, setEmailInput] = useState("");@@ -66,14 +66,14 @@ export const Workspace = () => {}const formData = new FormData(e.currentTarget);- const workspaceName = formData.get("workspaceName") as string;+ const organizationName = formData.get("organizationName") as string;const allowedEmailDomain = formData.get("allowedEmailDomain") as string;try {- await updateWorkspaceDetails(- workspaceName,+ await updateOrganizationDetails(+ organizationName,allowedEmailDomain,- activeSpace?.space.id as string+ activeOrganization?.organization.id as string);toast.success("Settings updated successfully");router.refresh();@@ -103,7 +103,10 @@ export const Workspace = () => {}try {- await sendWorkspaceInvites(inviteEmails, activeSpace?.space.id as string);+ await sendOrganizationInvites(+ inviteEmails,+ activeOrganization?.organization.id as string+ );toast.success("Invites sent successfully");setInviteEmails([]);setIsInviteDialogOpen(false);@@ -121,7 +124,10 @@ export const Workspace = () => {}try {- await removeWorkspaceInvite(inviteId, activeSpace?.space.id as string);+ await removeOrganizationInvite(+ inviteId,+ activeOrganization?.organization.id as string+ );toast.success("Invite deleted successfully");router.refresh();} catch (error) {@@ -153,7 +159,7 @@ export const Workspace = () => {<Card><CardTitle>*Only the owner can make changes</CardTitle><CardDescription>- Only the owner can make changes to this workspace.+ Only the owner can make changes to this organization.</CardDescription></Card>)}@@ -164,8 +170,8 @@ export const Workspace = () => {<p className="text-gray-12">Seats Remaining<span className="ml-2 font-bold text-gray-12">- {(activeSpace?.inviteQuota ?? 1) -- (activeSpace?.totalInvites ?? 0)}+ {(activeOrganization?.inviteQuota ?? 1) -+ (activeOrganization?.totalInvites ?? 0)}</span></p></Card>@@ -174,7 +180,7 @@ export const Workspace = () => {<p className="text-gray-12">Seats Capacity<span className="ml-2 font-bold text-gray-12">- {activeSpace?.inviteQuota}+ {activeOrganization?.inviteQuota}</span></p></Card>@@ -185,18 +191,18 @@ export const Workspace = () => {<div className="flex flex-col gap-6 justify-center lg:flex-row"><div className="flex-1 w-full"><div className="space-y-1">- <Label htmlFor="workspaceName">Name</Label>+ <Label htmlFor="organizationName">Name</Label><p className="text-sm text-gray-10">- Changing the name will update how your workspace appears to+ Changing the name will update how your organization appears toothers members.</p></div><InputclassName="mt-4"type="text"- defaultValue={workspaceName as string}- id="workspaceName"- name="workspaceName"+ defaultValue={organizationName as string}+ id="organizationName"+ name="organizationName"disabled={!isOwner}onChange={() => {if (!isOwner) showOwnerToast();@@ -214,7 +220,9 @@ export const Workspace = () => {<Inputtype="text"placeholder="e.g. company.com"- defaultValue={activeSpace?.space.allowedEmailDomain || ""}+ defaultValue={+ activeOrganization?.organization.allowedEmailDomain || ""+ }id="allowedEmailDomain"name="allowedEmailDomain"disabled={!isOwner}@@ -243,8 +251,8 @@ export const Workspace = () => {<div className="space-y-1"><Label htmlFor="customDomain">Custom Domain</Label><CardDescription className="w-full max-w-[400px]">- Set up a custom domain for your workspace's shared caps and make- it unique.+ Set up a custom domain for your organization's shared caps and+ make it unique.</CardDescription></div><div className="mt-4">@@ -290,7 +298,7 @@ export const Workspace = () => {<div className="flex flex-wrap gap-6 justify-between items-center w-full"><CardHeader><CardTitle>Members</CardTitle>- <CardDescription>Manage your workspace members.</CardDescription>+ <CardDescription>Manage your organization members.</CardDescription></CardHeader><div className="flex flex-wrap gap-3"><Tooltip@@ -315,8 +323,9 @@ export const Workspace = () => {if (!isOwner) {showOwnerToast();} else if (- activeSpace &&- activeSpace.inviteQuota <= activeSpace.totalInvites+ activeOrganization &&+ activeOrganization.inviteQuota <=+ activeOrganization.totalInvites) {toast.error("Invite limit reached, please purchase more seats"@@ -343,13 +352,13 @@ export const Workspace = () => {</TableRow></TableHeader><TableBody>- {activeSpace?.members &&- activeSpace.members.map((member) => (+ {activeOrganization?.members &&+ activeOrganization.members.map((member) => (<TableRow key={member.id}><TableCell>{member.user.name}</TableCell><TableCell>{member.user.email}</TableCell><TableCell>- {member.user.id === activeSpace?.space.ownerId+ {member.user.id === activeOrganization?.organization.ownerId? "Owner": "Member"}</TableCell>@@ -360,8 +369,8 @@ export const Workspace = () => {<TableCell>-</TableCell></TableRow>))}- {activeSpace?.invites &&- activeSpace.invites.map((invite) => (+ {activeOrganization?.invites &&+ activeOrganization.invites.map((invite) => (<TableRow key={invite.id}><TableCell>{invite.id}</TableCell><TableCell>{invite.invitedEmail}</TableCell>@@ -414,7 +423,8 @@ export const Workspace = () => {<DialogHeader><DialogTitle>Invite Teammates</DialogTitle><DialogDescription>- Invite your teammates to join {activeSpace?.space.name} workspace.+ Invite your teammates to join{" "}+ {activeOrganization?.organization.name} organization.</DialogDescription></DialogHeader><div className="space-y-4">diff --git a/apps/web/app/dashboard/settings/workspace/components/CustomDomain.tsx b/apps/web/app/dashboard/settings/organization/components/CustomDomain.tsxsimilarity index 92%rename from apps/web/app/dashboard/settings/workspace/components/CustomDomain.tsxrename to apps/web/app/dashboard/settings/organization/components/CustomDomain.tsxindex e04fdb265..1d948f874 100644--- a/apps/web/app/dashboard/settings/workspace/components/CustomDomain.tsx+++ b/apps/web/app/dashboard/settings/organization/components/CustomDomain.tsx@@ -1,9 +1,9 @@export const revalidate = 0;export const fetchCache = "force-no-store";-import { checkWorkspaceDomain } from "@/actions/workspace/check-domain";-import { removeWorkspaceDomain } from "@/actions/workspace/remove-domain";-import { updateDomain } from "@/actions/workspace/update-domain";+import { checkOrganizationDomain } from "@/actions/organization/check-domain";+import { removeOrganizationDomain } from "@/actions/organization/remove-domain";+import { updateDomain } from "@/actions/organization/update-domain";import { useSharedContext } from "@/app/dashboard/_components/DynamicSharedLayout";import { Button, Input } from "@cap/ui";import { faRefresh, faTrash } from "@fortawesome/free-solid-svg-icons";@@ -44,12 +44,14 @@ type VerificationResponse = {export function CustomDomain() {const router = useRouter();- const { activeSpace, isSubscribed } = useSharedContext();- const [domain, setDomain] = useState(activeSpace?.space.customDomain || "");+ const { activeOrganization, isSubscribed } = useSharedContext();+ const [domain, setDomain] = useState(+ activeOrganization?.organization.customDomain || ""+ );const [loading, setLoading] = useState(false);const [verifying, setVerifying] = useState(false);const [isVerified, setIsVerified] = useState(- !!activeSpace?.space.domainVerified+ !!activeOrganization?.organization.domainVerified);const [domainConfig, setDomainConfig] = useState<DomainConfig | null>(null);const [copiedField, setCopiedField] = useState<"name" | "value" | null>(null);@@ -92,10 +94,16 @@ export function CustomDomain() {};const checkVerification = async (showToasts = true) => {- if (!activeSpace?.space.id || !activeSpace?.space.customDomain) return;+ if (+ !activeOrganization?.organization.id ||+ !activeOrganization?.organization.customDomain+ )+ return;setVerifying(true);try {- const data = await checkWorkspaceDomain(activeSpace.space.id);+ const data = await checkOrganizationDomain(+ activeOrganization.organization.id+ );setIsVerified(data.verified);setDomainConfig(data.config);@@ -124,7 +132,7 @@ export function CustomDomain() {};useEffect(() => {- if (activeSpace?.space.customDomain && !isVerified) {+ if (activeOrganization?.organization.customDomain && !isVerified) {if (pollInterval.current) {clearInterval(pollInterval.current);}@@ -142,14 +150,17 @@ export function CustomDomain() {pollInterval.current = undefined;}};- }, [activeSpace?.space.customDomain, isVerified]);+ }, [activeOrganization?.organization.customDomain, isVerified]);useEffect(() => {- if (!initialCheckDone.current && activeSpace?.space.customDomain) {+ if (+ !initialCheckDone.current &&+ activeOrganization?.organization.customDomain+ ) {initialCheckDone.current = true;checkVerification(false);}- }, [activeSpace?.space.customDomain]);+ }, [activeOrganization?.organization.customDomain]);const handleSubmit = async (e: React.FormEvent) => {e.preventDefault();@@ -171,7 +182,7 @@ export function CustomDomain() {try {const data = await updateDomain(cleanedDomain,- activeSpace?.space.id as string+ activeOrganization?.organization.id as string);toast.success("Domain settings updated");@@ -204,7 +215,9 @@ export function CustomDomain() {setLoading(true);try {- await removeWorkspaceDomain(activeSpace?.space.id as string);+ await removeOrganizationDomain(+ activeOrganization?.organization.id as string+ );if (pollInterval.current) {clearInterval(pollInterval.current);@@ -236,7 +249,7 @@ export function CustomDomain() {className="flex-1"/><div className="flex gap-2 justify-between items-center mt-4">- {activeSpace?.space.customDomain &&+ {activeOrganization?.organization.customDomain &&(isVerified ? (<><div className="flex items-center gap-1.5 text-green-500 bg-green-200 px-2.5 py-1.5 rounded-xl text-sm">@@ -268,7 +281,7 @@ export function CustomDomain() {{loading ? "Saving..." : "Save"}</Button><div className="flex gap-3 items-center">- {activeSpace?.space.customDomain && (+ {activeOrganization?.organization.customDomain && (<Buttontype="button"variant="white"@@ -288,7 +301,7 @@ export function CustomDomain() {Refresh</Button>)}- {activeSpace?.space.customDomain && (+ {activeOrganization?.organization.customDomain && (<Buttontype="button"size="sm"@@ -303,7 +316,7 @@ export function CustomDomain() {</div></div></div>- {activeSpace?.space.customDomain && (+ {activeOrganization?.organization.customDomain && (<div className="mt-4 space-y-4">{!isVerified && domainConfig?.verification?.[0] && (<div className="overflow-hidden rounded-lg border border-gray-200">diff --git a/apps/web/app/dashboard/settings/workspace/loading.tsx b/apps/web/app/dashboard/settings/organization/loading.tsxsimilarity index 99%rename from apps/web/app/dashboard/settings/workspace/loading.tsxrename to apps/web/app/dashboard/settings/organization/loading.tsxindex 1620b6331..bd8c845ff 100644--- a/apps/web/app/dashboard/settings/workspace/loading.tsx+++ b/apps/web/app/dashboard/settings/organization/loading.tsx@@ -66,9 +66,8 @@ export default function Loading() {</div></div>- {/* Workspace details and Custom domain */}<div className="flex flex-col gap-6 items-stretch xl:flex-row">- {/* Workspace details card */}+ {/* Organization details card */}<div className="flex flex-col flex-1 justify-between p-5 rounded-2xl border bg-gray-3 border-gray-4"><div className="flex flex-col gap-6 lg:flex-row">{/* Name field */}diff --git a/apps/web/app/dashboard/settings/organization/page.tsx b/apps/web/app/dashboard/settings/organization/page.tsxnew file mode 100644index 000000000..3a15963d1--- /dev/null+++ b/apps/web/app/dashboard/settings/organization/page.tsx@@ -0,0 +1,12 @@+import { Metadata } from "next";+import { Organization } from "./Organization";++export const metadata: Metadata = {+ title: "Organization Settings — Cap",+};++export const revalidate = 0;++export default function OrganizationPage() {+ return <Organization />;+}diff --git a/apps/web/app/dashboard/settings/workspace/page.tsx b/apps/web/app/dashboard/settings/workspace/page.tsxindex 0cb03a43e..c9cad0353 100644--- a/apps/web/app/dashboard/settings/workspace/page.tsx+++ b/apps/web/app/dashboard/settings/workspace/page.tsx@@ -1,12 +1,5 @@-import { Metadata } from "next";-import { Workspace } from "./Workspace";+import { redirect } from "next/navigation";-export const metadata: Metadata = {- title: "Workspace Settings — Cap",-};--export const revalidate = 0;--export default function BillingPage() {- return <Workspace />;+export default function WorkspaceSettingsPage() {+ redirect("/dashboard/settings/organization");}diff --git a/apps/web/app/dashboard/shared-caps/SharedCaps.tsx b/apps/web/app/dashboard/shared-caps/SharedCaps.tsxindex 3dc6336e6..db005ec11 100644--- a/apps/web/app/dashboard/shared-caps/SharedCaps.tsx+++ b/apps/web/app/dashboard/shared-caps/SharedCaps.tsx@@ -22,14 +22,16 @@ type SharedVideoData = {export const SharedCaps = ({data,count,+ activeOrganizationId,}: {data: SharedVideoData;count: number;+ activeOrganizationId: string;}) => {const params = useSearchParams();const page = Number(params.get("page")) || 1;const [analytics, setAnalytics] = useState<Record<string, number>>({});- const { activeSpace } = useSharedContext();+ const { activeOrganization } = useSharedContext();const limit = 15;const totalPages = Math.ceil(count / limit);@@ -48,7 +50,11 @@ export const SharedCaps = ({}, [data]);if (data.length === 0) {- return <EmptySharedCapState spaceName={activeSpace?.space.name || ""} />;+ return (+ <EmptySharedCapState+ organizationName={activeOrganization?.organization.name || ""}+ />+ );}return (@@ -59,7 +65,7 @@ export const SharedCaps = ({key={cap.id}cap={cap}analytics={analytics[cap.id] || 0}- spaceName={activeSpace?.space.name || ""}+ organizationName={activeOrganization?.organization.name || ""}/>))}</div>diff --git a/apps/web/app/dashboard/shared-caps/components/EmptySharedCapState.tsx b/apps/web/app/dashboard/shared-caps/components/EmptySharedCapState.tsxindex 82210c576..aef6086c5 100644--- a/apps/web/app/dashboard/shared-caps/components/EmptySharedCapState.tsx+++ b/apps/web/app/dashboard/shared-caps/components/EmptySharedCapState.tsx@@ -2,11 +2,11 @@ import { useRive } from "@rive-app/react-canvas";import { useTheme } from "../../_components/DynamicSharedLayout";interface EmptySharedCapStateProps {- spaceName: string;+ organizationName: string;}export const EmptySharedCapState: React.FC<EmptySharedCapStateProps> = ({- spaceName,+ organizationName,}) => {const { theme } = useTheme();const { RiveComponent: EmptyCap } = useRive({@@ -27,8 +27,8 @@ export const EmptySharedCapState: React.FC<EmptySharedCapStateProps> = ({No shared Caps yet!</p><p className="max-w-md text-md text-gray-10">- There are no Caps shared with {spaceName} yet. Ask your team members- to share their Caps with this space.+ There are no Caps shared with {organizationName} yet. Ask your team+ members to share their Caps with this organization.</p></div></div>diff --git a/apps/web/app/dashboard/shared-caps/components/SharedCapCard.tsx b/apps/web/app/dashboard/shared-caps/components/SharedCapCard.tsxindex 2939a480c..911130353 100644--- a/apps/web/app/dashboard/shared-caps/components/SharedCapCard.tsx+++ b/apps/web/app/dashboard/shared-caps/components/SharedCapCard.tsx@@ -15,13 +15,13 @@ interface SharedCapCardProps {metadata?: VideoMetadata;};analytics: number;- spaceName: string;+ organizationName: string;}export const SharedCapCard: React.FC<SharedCapCardProps> = ({cap,analytics,- spaceName,+ organizationName,}) => {const displayCount =analytics === 0@@ -45,7 +45,7 @@ export const SharedCapCard: React.FC<SharedCapCardProps> = ({<p className="text-sm pointer-events-none text-gray-10">Shared with{" "}<span className="text-sm font-medium text-gray-12">- {spaceName}+ {organizationName}</span></p></div>diff --git a/apps/web/app/dashboard/shared-caps/page.tsx b/apps/web/app/dashboard/shared-caps/page.tsxindex 7556f59eb..28e397ab0 100644--- a/apps/web/app/dashboard/shared-caps/page.tsx+++ b/apps/web/app/dashboard/shared-caps/page.tsx@@ -3,8 +3,8 @@ import { getCurrentUser } from "@cap/database/auth/session";import {comments,sharedVideos,- spaceMembers,- spaces,+ organizationMembers,+ organizations,users,videos,} from "@cap/database/schema";@@ -28,23 +28,28 @@ export default async function SharedCapsPage({const user = await getCurrentUser();const userId = user?.id as string;- let activeSpaceId = user?.activeSpaceId;- if (!activeSpaceId) {- // Get the first available space if activeSpaceId doesn't exist- const firstSpace = await db()- .select({ id: spaces.id })- .from(spaces)- .innerJoin(spaceMembers, eq(spaces.id, spaceMembers.spaceId))- .where(eq(spaceMembers.userId, userId))+ let activeOrganizationId = user?.activeOrganizationId;+ if (!activeOrganizationId) {+ const firstOrganization = await db()+ .select({ id: organizations.id })+ .from(organizations)+ .innerJoin(+ organizationMembers,+ eq(organizations.id, organizationMembers.organizationId)+ )+ .where(eq(organizationMembers.userId, userId)).limit(1).then((result) => result[0]);- activeSpaceId = firstSpace?.id;+ activeOrganizationId = firstOrganization?.id;}- if (!activeSpaceId) {- // Handle the case where the user has no spaces- return <div>No spaces available. Please create or join a space.</div>;+ if (!activeOrganizationId) {+ return (+ <div>+ No organizations available. Please create or join an organization.+ </div>+ );}const offset = (page - 1) * limit;@@ -52,7 +57,7 @@ export default async function SharedCapsPage({const totalCountResult = await db().select({ count: count() }).from(sharedVideos)- .where(eq(sharedVideos.spaceId, activeSpaceId));+ .where(eq(sharedVideos.organizationId, activeOrganizationId));const totalCount = totalCountResult[0]?.count || 0;@@ -77,7 +82,7 @@ export default async function SharedCapsPage({.innerJoin(videos, eq(sharedVideos.videoId, videos.id)).leftJoin(comments, eq(videos.id, comments.videoId)).leftJoin(users, eq(videos.ownerId, users.id))- .where(eq(sharedVideos.spaceId, activeSpaceId))+ .where(eq(sharedVideos.organizationId, activeOrganizationId)).groupBy(videos.id,videos.ownerId,@@ -119,15 +124,11 @@ export default async function SharedCapsPage({.select({id: sharedVideos.id,videoId: sharedVideos.videoId,- spaceId: sharedVideos.spaceId,+ organizationId: sharedVideos.organizationId,}).from(sharedVideos)- .where(eq(sharedVideos.spaceId, activeSpaceId));+ .where(eq(sharedVideos.organizationId, activeOrganizationId));- console.log("Debug: Shared videos for this space:");- console.log(debugSharedVideos);-- // Debug: Check if the videos existif (debugSharedVideos.length > 0) {const debugVideos = await db().select({diff --git a/apps/web/app/invite/[inviteId]/InviteAccept.tsx b/apps/web/app/invite/[inviteId]/InviteAccept.tsxindex e3eeb6b59..efc077349 100644--- a/apps/web/app/invite/[inviteId]/InviteAccept.tsx+++ b/apps/web/app/invite/[inviteId]/InviteAccept.tsx@@ -10,14 +10,14 @@ import toast from "react-hot-toast";type InviteAcceptProps = {inviteId: string;- teamName: string;+ organizationName: string;inviterName: string;user: typeof userSelectProps | null;};export function InviteAccept({inviteId,- teamName,+ organizationName,inviterName,user,}: InviteAcceptProps) {@@ -87,10 +87,10 @@ export function InviteAccept({<div className="bg-gray-50 p-4 rounded-[20px] border-[1px] border-gray-200 shadow-[0px 8px 16px rgba(18, 22, 31, 0.04)]"><Logo className="w-20 h-auto mb-4" /><h1 className="text-xl mb-4">- You're invited to join <strong>{teamName}</strong> on Cap+ You're invited to join <strong>{organizationName}</strong> on Cap</h1><p className="text-gray-600 text-sm mb-6">- {inviterName} invited you to join their team on Cap.+ {inviterName} invited you to join their organization on Cap.</p><div className="flex space-x-2"><Button onClick={handleAccept} variant="primary" disabled={isLoading}>diff --git a/apps/web/app/invite/[inviteId]/page.tsx b/apps/web/app/invite/[inviteId]/page.tsxindex 8ec1afa51..90324c471 100644--- a/apps/web/app/invite/[inviteId]/page.tsx+++ b/apps/web/app/invite/[inviteId]/page.tsx@@ -1,6 +1,10 @@import { db } from "@cap/database";import { eq } from "drizzle-orm";-import { spaceInvites, spaces, users } from "@cap/database/schema";+import {+ organizationInvites,+ organizations,+ users,+} from "@cap/database/schema";import { getCurrentUser, userSelectProps } from "@cap/database/auth/session";import type { Metadata } from "next";import { notFound } from "next/navigation";@@ -19,22 +23,25 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {}return {- title: `Join ${invite.spaceName} on Cap`,- description: `You've been invited to join ${invite.spaceName} on Cap.`,+ title: `Join ${invite.organizationName} on Cap`,+ description: `You've been invited to join ${invite.organizationName} on Cap.`,};}async function getInviteDetails(inviteId: string) {const query = await db().select({- invite: spaceInvites,- spaceName: spaces.name,+ invite: organizationInvites,+ organizationName: organizations.name,inviterName: users.name,})- .from(spaceInvites)- .leftJoin(spaces, eq(spaceInvites.spaceId, spaces.id))- .leftJoin(users, eq(spaceInvites.invitedByUserId, users.id))- .where(eq(spaceInvites.id, inviteId));+ .from(organizationInvites)+ .leftJoin(+ organizations,+ eq(organizationInvites.organizationId, organizations.id)+ )+ .leftJoin(users, eq(organizationInvites.invitedByUserId, users.id))+ .where(eq(organizationInvites.id, inviteId));return query[0];}@@ -48,14 +55,14 @@ export default async function InvitePage({ params }: Props) {return notFound();}- if (!inviteDetails.spaceName || !inviteDetails.inviterName) {+ if (!inviteDetails.organizationName || !inviteDetails.inviterName) {return notFound();}return (<InviteAcceptinviteId={inviteId}- teamName={inviteDetails.spaceName}+ organizationName={inviteDetails.organizationName}inviterName={inviteDetails.inviterName}user={user as typeof userSelectProps | null}/>diff --git a/apps/web/app/login/form.tsx b/apps/web/app/login/form.tsxindex 341fde040..8a41de324 100644--- a/apps/web/app/login/form.tsx+++ b/apps/web/app/login/form.tsx@@ -1,6 +1,6 @@"use client";-import { getSpace } from "@/actions/workspace/get-space";+import { getOrganization } from "@/actions/organization/get-organization";import { NODE_ENV } from "@cap/env";import { Button, Input, LogoBadge } from "@cap/ui";import {@@ -25,8 +25,8 @@ export function LoginForm() {const [emailSent, setEmailSent] = useState(false);const [oauthError, setOauthError] = useState(false);const [showOrgInput, setShowOrgInput] = useState(false);- const [spaceId, setSpaceId] = useState("");- const [spaceName, setSpaceName] = useState<string | null>(null);+ const [organizationId, setOrganizationId] = useState("");+ const [organizationName, setOrganizationName] = useState<string | null>(null);const theme = localStorage.getItem("theme") || "light";useEffect(() => {@@ -100,16 +100,16 @@ export function LoginForm() {});};- const handleSpaceLookup = async (e: React.FormEvent) => {+ const handleOrganizationLookup = async (e: React.FormEvent) => {e.preventDefault();- if (!spaceId) {- toast.error("Please enter a space ID");+ if (!organizationId) {+ toast.error("Please enter an organization ID");return;}try {- const data = await getSpace(spaceId);- setSpaceName(data.name);+ const data = await getOrganization(organizationId);+ setOrganizationName(data.name);signIn("workos", undefined, {organization: data.organizationId,@@ -117,7 +117,7 @@ export function LoginForm() {});} catch (error) {console.error("Lookup Error:", error);- toast.error("Space not found or SSO not configured");+ toast.error("Organization not found or SSO not configured");}};@@ -171,12 +171,10 @@ export function LoginForm() {transition={{ duration: 0.2, type: "spring", bounce: 0.2 }}><LoginWithSSO- showOrgInput={showOrgInput}- setShowOrgInput={setShowOrgInput}- handleSpaceLookup={handleSpaceLookup}- spaceId={spaceId}- setSpaceId={setSpaceId}- spaceName={spaceName}+ handleOrganizationLookup={handleOrganizationLookup}+ organizationId={organizationId}+ setOrganizationId={setOrganizationId}+ organizationName={organizationName}/></motion.div>) : (@@ -275,30 +273,30 @@ export function LoginForm() {}const LoginWithSSO = ({- handleSpaceLookup,- spaceId,- setSpaceId,- spaceName,+ handleOrganizationLookup,+ organizationId,+ setOrganizationId,+ organizationName,}: {- showOrgInput: boolean;- setShowOrgInput: (show: boolean) => void;- handleSpaceLookup: (e: React.FormEvent) => void;- spaceId: string;- setSpaceId: (spaceId: string) => void;- spaceName: string | null;+ handleOrganizationLookup: (e: React.FormEvent) => void;+ organizationId: string;+ setOrganizationId: (organizationId: string) => void;+ organizationName: string | null;}) => {return (<>- <form onSubmit={handleSpaceLookup} className="relative space-y-2">+ <form onSubmit={handleOrganizationLookup} className="relative space-y-2"><Input- id="spaceId"- placeholder="Enter your Space ID..."- value={spaceId}- onChange={(e) => setSpaceId(e.target.value)}+ id="organizationId"+ placeholder="Enter your Organization ID..."+ value={organizationId}+ onChange={(e) => setOrganizationId(e.target.value)}className="w-full max-w-full"/>- {spaceName && (- <p className="text-sm text-gray-1">Signing in to: {spaceName}</p>+ {organizationName && (+ <p className="text-sm text-gray-1">+ Signing in to: {organizationName}+ </p>)}<div><Button type="submit" variant="dark" className="w-full max-w-full">diff --git a/apps/web/app/onboarding/page.tsx b/apps/web/app/onboarding/page.tsxindex 22e8c324f..83dff9440 100644--- a/apps/web/app/onboarding/page.tsx+++ b/apps/web/app/onboarding/page.tsx@@ -8,12 +8,16 @@ export const dynamic = "force-dynamic";export default async function OnboardingPage() {const user = await getCurrentUser();+ if (!user) {+ redirect("/login");+ }+if (user &&user.name &&user.name.length > 1 &&- user.activeSpaceId &&- user.activeSpaceId.length > 1+ user.activeOrganizationId &&+ user.activeOrganizationId.length > 1) {redirect("/dashboard");} else if (!user) {diff --git a/apps/web/app/s/[videoId]/Share.tsx b/apps/web/app/s/[videoId]/Share.tsxindex 7af1de57f..d084a7033 100644--- a/apps/web/app/s/[videoId]/Share.tsx+++ b/apps/web/app/s/[videoId]/Share.tsx@@ -20,14 +20,14 @@ interface Analytics {reactions: number;}-type VideoWithSpaceInfo = typeof videos.$inferSelect & {- spaceMembers?: string[];- spaceId?: string;- sharedSpaces?: { id: string; name: string }[];+type VideoWithOrganizationInfo = typeof videos.$inferSelect & {+ organizationMembers?: string[];+ organizationId?: string;+ sharedOrganizations?: { id: string; name: string }[];};interface ShareProps {- data: VideoWithSpaceInfo;+ data: VideoWithOrganizationInfo;user: typeof userSelectProps | null;comments: CommentWithAuthor[];initialAnalytics: {@@ -37,7 +37,7 @@ interface ShareProps {};customDomain: string | null;domainVerified: boolean;- userSpaces?: { id: string; name: string }[];+ userOrganizations?: { id: string; name: string }[];}export const Share: React.FC<ShareProps> = ({@@ -47,7 +47,7 @@ export const Share: React.FC<ShareProps> = ({initialAnalytics,customDomain,domainVerified,- userSpaces = [],+ userOrganizations = [],}) => {const [analytics, setAnalytics] = useState(initialAnalytics);const effectiveDate = data.metadata?.customCreatedAt@@ -95,8 +95,8 @@ export const Share: React.FC<ShareProps> = ({user={user}customDomain={customDomain}domainVerified={domainVerified}- sharedSpaces={data.sharedSpaces || []}- userSpaces={userSpaces}+ sharedOrganizations={data.sharedOrganizations || []}+ userOrganizations={userOrganizations}/><div className="mt-4">diff --git a/apps/web/app/s/[videoId]/_components/ShareHeader.tsx b/apps/web/app/s/[videoId]/_components/ShareHeader.tsxindex c950604ca..a052f6f4c 100644--- a/apps/web/app/s/[videoId]/_components/ShareHeader.tsx+++ b/apps/web/app/s/[videoId]/_components/ShareHeader.tsx@@ -21,15 +21,15 @@ export const ShareHeader = ({user,customDomain,domainVerified,- sharedSpaces = [],- userSpaces = [],+ sharedOrganizations = [],+ userOrganizations = [],}: {data: typeof videos.$inferSelect;user: typeof userSelectProps | null;customDomain: string | null;domainVerified: boolean;- sharedSpaces?: { id: string; name: string }[];- userSpaces?: { id: string; name: string }[];+ sharedOrganizations?: { id: string; name: string }[];+ userOrganizations?: { id: string; name: string }[];}) => {const { push, refresh } = useRouter();const [isEditing, setIsEditing] = useState(false);@@ -37,7 +37,8 @@ export const ShareHeader = ({const [isDownloading, setIsDownloading] = useState(false);const [upgradeModalOpen, setUpgradeModalOpen] = useState(false);const [isSharingDialogOpen, setIsSharingDialogOpen] = useState(false);- const [currentSharedSpaces, setCurrentSharedSpaces] = useState(sharedSpaces);+ const [currentSharedOrganizations, setCurrentSharedOrganizations] =+ useState(sharedOrganizations);const isOwner = user !== null && user.id.toString() === data.ownerId;@@ -87,9 +88,11 @@ export const ShareHeader = ({}): false;- const handleSharingUpdated = (updatedSharedSpaces: string[]) => {- setCurrentSharedSpaces(- userSpaces?.filter((space) => updatedSharedSpaces.includes(space.id))+ const handleSharingUpdated = (updatedSharedOrganizations: string[]) => {+ setCurrentSharedOrganizations(+ userOrganizations?.filter((organization) =>+ updatedSharedOrganizations.includes(organization.id)+ ));refresh();};@@ -99,7 +102,7 @@ export const ShareHeader = ({"text-sm text-gray-10 transition-colors duration-200 flex items-center";if (isOwner) {- if (currentSharedSpaces?.length === 0) {+ if (currentSharedOrganizations?.length === 0) {return (<pclassName={clsx(baseClassName, "hover:text-gray-12 cursor-pointer")}@@ -132,8 +135,8 @@ export const ShareHeader = ({onClose={() => setIsSharingDialogOpen(false)}capId={data.id}capName={data.name}- sharedSpaces={currentSharedSpaces || []}- userSpaces={userSpaces}+ sharedOrganizations={currentSharedOrganizations || []}+ userOrganizations={userOrganizations}onSharingUpdated={handleSharingUpdated}/><div>diff --git a/apps/web/app/s/[videoId]/_components/ShareVideo.tsx b/apps/web/app/s/[videoId]/_components/ShareVideo.tsxindex c6b0e73a8..a7f37eb25 100644--- a/apps/web/app/s/[videoId]/_components/ShareVideo.tsx+++ b/apps/web/app/s/[videoId]/_components/ShareVideo.tsx@@ -953,7 +953,6 @@ export const ShareVideo = forwardRef<};const publicEnv = usePublicEnv();-const apiClient = useApiClient();useEffect(() => {diff --git a/apps/web/app/s/[videoId]/_components/Sidebar.tsx b/apps/web/app/s/[videoId]/_components/Sidebar.tsxindex a21632f81..e1bec79a5 100644--- a/apps/web/app/s/[videoId]/_components/Sidebar.tsx+++ b/apps/web/app/s/[videoId]/_components/Sidebar.tsx@@ -15,9 +15,9 @@ type CommentType = typeof commentsSchema.$inferSelect & {authorName?: string | null;};-type VideoWithSpaceInfo = typeof videos.$inferSelect & {- spaceMembers?: string[];- spaceId?: string;+type VideoWithOrganizationInfo = typeof videos.$inferSelect & {+ organizationMembers?: string[];+ organizationId?: string;};interface Analytics {@@ -27,7 +27,7 @@ interface Analytics {}interface SidebarProps {- data: VideoWithSpaceInfo;+ data: VideoWithOrganizationInfo;user: typeof userSelectProps | null;comments: CommentType[];analytics: Analytics;@@ -69,7 +69,8 @@ export const Sidebar: React.FC<SidebarProps> = ({}) => {const isOwnerOrMember: boolean = Boolean(user?.id === data.ownerId ||- (data.spaceId && data.spaceMembers?.includes(user?.id ?? ""))+ (data.organizationId &&+ data.organizationMembers?.includes(user?.id ?? "")));const [activeTab, setActiveTab] = useState<TabType>("activity");diff --git a/apps/web/app/s/[videoId]/page.tsx b/apps/web/app/s/[videoId]/page.tsxindex b54417155..ae3b9a6a6 100644--- a/apps/web/app/s/[videoId]/page.tsx+++ b/apps/web/app/s/[videoId]/page.tsx@@ -6,8 +6,8 @@ import {comments,users,sharedVideos,- spaceMembers,- spaces,+ organizationMembers,+ organizations,} from "@cap/database/schema";import { getCurrentUser, userSelectProps } from "@cap/database/auth/session";import type { Metadata, ResolvingMetadata } from "next";@@ -30,16 +30,16 @@ type CommentWithAuthor = typeof comments.$inferSelect & {authorName: string | null;};-type VideoWithSpace = typeof videos.$inferSelect & {- sharedSpace?: {- spaceId: string;+type VideoWithOrganization = typeof videos.$inferSelect & {+ sharedOrganization?: {+ organizationId: string;} | null;- spaceMembers?: string[];- spaceId?: string;- sharedSpaces?: { id: string; name: string }[];+ organizationMembers?: string[];+ organizationId?: string;+ sharedOrganizations?: { id: string; name: string }[];};-type SpaceMember = {+type OrganizationMember = {userId: string;};@@ -111,7 +111,7 @@ export default async function ShareVideoPage(props: Props) {const userId = user?.id as string | undefined;console.log("[ShareVideoPage] Current user:", userId);- const videoWithSpace = await db()+ const videoWithOrganization = await db().select({id: videos.id,name: videos.name,@@ -132,8 +132,8 @@ export default async function ShareVideoPage(props: Props) {skipProcessing: videos.skipProcessing,transcriptionStatus: videos.transcriptionStatus,source: videos.source,- sharedSpace: {- spaceId: sharedVideos.spaceId,+ sharedOrganization: {+ organizationId: sharedVideos.organizationId,},}).from(videos)@@ -141,28 +141,28 @@ export default async function ShareVideoPage(props: Props) {.where(eq(videos.id, videoId)).execute();- const video = videoWithSpace[0];+ const video = videoWithOrganization[0];if (!video) {console.log("[ShareVideoPage] No video found for videoId:", videoId);return <p>No video found</p>;}- if (video.sharedSpace?.spaceId) {- const space = await db()+ if (video.sharedOrganization?.organizationId) {+ const organization = await db().select()- .from(spaces)- .where(eq(spaces.id, video.sharedSpace.spaceId))+ .from(organizations)+ .where(eq(organizations.id, video.sharedOrganization.organizationId)).limit(1);- if (space[0]?.allowedEmailDomain) {+ if (organization[0]?.allowedEmailDomain) {if (!user?.email ||- !user.email.endsWith(`@${space[0].allowedEmailDomain}`)+ !user.email.endsWith(`@${organization[0].allowedEmailDomain}`)) {console.log("[ShareVideoPage] Access denied - domain restriction:",- space[0].allowedEmailDomain+ organization[0].allowedEmailDomain);return (<div className="flex flex-col items-center justify-center min-h-screen p-4 text-center">@@ -241,108 +241,120 @@ export default async function ShareVideoPage(props: Props) {let customDomain: string | null = null;let domainVerified = false;- if (video.sharedSpace?.spaceId) {- const spaceData = await db()+ if (video.sharedOrganization?.organizationId) {+ const organizationData = await db().select({- customDomain: spaces.customDomain,- domainVerified: spaces.domainVerified,+ customDomain: organizations.customDomain,+ domainVerified: organizations.domainVerified,})- .from(spaces)- .where(eq(spaces.id, video.sharedSpace.spaceId))+ .from(organizations)+ .where(eq(organizations.id, video.sharedOrganization.organizationId)).limit(1);- if (spaceData.length > 0 && spaceData[0] && spaceData[0].customDomain) {- customDomain = spaceData[0].customDomain;- if (spaceData[0].domainVerified !== null) {+ if (+ organizationData.length > 0 &&+ organizationData[0] &&+ organizationData[0].customDomain+ ) {+ customDomain = organizationData[0].customDomain;+ if (organizationData[0].domainVerified !== null) {domainVerified = true;}}}if (!customDomain && video.ownerId) {- const ownerSpaces = await db()+ const ownerOrganizations = await db().select({- customDomain: spaces.customDomain,- domainVerified: spaces.domainVerified,+ customDomain: organizations.customDomain,+ domainVerified: organizations.domainVerified,})- .from(spaces)- .where(eq(spaces.ownerId, video.ownerId))+ .from(organizations)+ .where(eq(organizations.ownerId, video.ownerId)).limit(1);if (- ownerSpaces.length > 0 &&- ownerSpaces[0] &&- ownerSpaces[0].customDomain+ ownerOrganizations.length > 0 &&+ ownerOrganizations[0] &&+ ownerOrganizations[0].customDomain) {- customDomain = ownerSpaces[0].customDomain;- if (ownerSpaces[0].domainVerified !== null) {+ customDomain = ownerOrganizations[0].customDomain;+ if (ownerOrganizations[0].domainVerified !== null) {domainVerified = true;}}}- const sharedSpacesData = await db()+ const sharedOrganizationsData = await db().select({- id: spaces.id,- name: spaces.name,+ id: sharedVideos.organizationId,+ name: organizations.name,})- .from(spaces)- .innerJoin(sharedVideos, eq(spaces.id, sharedVideos.spaceId))+ .from(sharedVideos)+ .innerJoin(organizations, eq(sharedVideos.organizationId, organizations.id)).where(eq(sharedVideos.videoId, videoId));- let userSpaces: { id: string; name: string }[] = [];+ let userOrganizations: { id: string; name: string }[] = [];if (userId) {- const ownedSpaces = await db()+ const ownedOrganizations = await db().select({- id: spaces.id,- name: spaces.name,+ id: organizations.id,+ name: organizations.name,})- .from(spaces)- .where(eq(spaces.ownerId, userId));+ .from(organizations)+ .where(eq(organizations.ownerId, userId));- const memberSpaces = await db()+ const memberOrganizations = await db().select({- id: spaces.id,- name: spaces.name,+ id: organizations.id,+ name: organizations.name,})- .from(spaces)- .innerJoin(spaceMembers, eq(spaces.id, spaceMembers.spaceId))- .where(eq(spaceMembers.userId, userId));-- const allSpaces = [...ownedSpaces, ...memberSpaces];- const uniqueSpaceIds = new Set();- userSpaces = allSpaces.filter((space) => {- if (uniqueSpaceIds.has(space.id)) return false;- uniqueSpaceIds.add(space.id);+ .from(organizations)+ .innerJoin(+ organizationMembers,+ eq(organizations.id, organizationMembers.organizationId)+ )+ .where(eq(organizationMembers.userId, userId));++ const allOrganizations = [...ownedOrganizations, ...memberOrganizations];+ const uniqueOrganizationIds = new Set();+ userOrganizations = allOrganizations.filter((organization) => {+ if (uniqueOrganizationIds.has(organization.id)) return false;+ uniqueOrganizationIds.add(organization.id);return true;});}- const membersList = video.sharedSpace?.spaceId+ const membersList = video.sharedOrganization?.organizationId? await db().select({- userId: spaceMembers.userId,+ userId: organizationMembers.userId,})- .from(spaceMembers)- .where(eq(spaceMembers.spaceId, video.sharedSpace.spaceId))+ .from(organizationMembers)+ .where(+ eq(+ organizationMembers.organizationId,+ video.sharedOrganization.organizationId+ )+ ): [];- const videoWithSpaceInfo: VideoWithSpace = {+ const videoWithOrganizationInfo: VideoWithOrganization = {...video,- spaceMembers: membersList.map((member) => member.userId),- spaceId: video.sharedSpace?.spaceId ?? undefined,- sharedSpaces: sharedSpacesData,+ organizationMembers: membersList.map((member) => member.userId),+ organizationId: video.sharedOrganization?.organizationId ?? undefined,+ sharedOrganizations: sharedOrganizationsData,};return (<Share- data={videoWithSpaceInfo}+ data={videoWithOrganizationInfo}user={user}comments={commentsQuery}initialAnalytics={initialAnalytics}customDomain={customDomain}domainVerified={domainVerified}- userSpaces={userSpaces}+ userOrganizations={userOrganizations}/>);}diff --git a/apps/web/components/forms/NewSpace.tsx b/apps/web/components/forms/NewOrganization.tsxsimilarity index 79%rename from apps/web/components/forms/NewSpace.tsxrename to apps/web/components/forms/NewOrganization.tsxindex f39d75893..778d1017d 100644--- a/apps/web/components/forms/NewSpace.tsx+++ b/apps/web/components/forms/NewOrganization.tsx@@ -13,9 +13,9 @@ import {} from "@cap/ui";import { Input } from "@cap/ui";import { useForm } from "react-hook-form";-import { createSpace } from "./server";+import { createOrganization } from "./server";-export function NewSpace(props: { onSpaceCreated: () => void }) {+export function NewOrganization(props: { onOrganizationCreated: () => void }) {const formSchema = z.object({name: z.string().min(1),});@@ -28,8 +28,8 @@ export function NewSpace(props: { onSpaceCreated: () => void }) {<Form {...form}><formonSubmit={form.handleSubmit(async (args) => {- await createSpace(args);- props.onSpaceCreated();+ await createOrganization(args);+ props.onOrganizationCreated();})}><div className="space-y-4 mb-8">@@ -40,7 +40,7 @@ export function NewSpace(props: { onSpaceCreated: () => void }) {<FormItem><FormLabel>Name</FormLabel><FormControl>- <Input placeholder="Your space name" {...field} />+ <Input placeholder="Your organization name" {...field} /></FormControl><FormMessage /></FormItem>@@ -48,7 +48,7 @@ export function NewSpace(props: { onSpaceCreated: () => void }) {/></div><Button type="submit" disabled={form.formState.isSubmitting}>- {form.formState.isSubmitting ? "Loading..." : "Create Space"}+ {form.formState.isSubmitting ? "Loading..." : "Create Organization"}</Button></form></Form>diff --git a/apps/web/components/forms/server.ts b/apps/web/components/forms/server.tsindex c430eb848..d69a58b91 100644--- a/apps/web/components/forms/server.ts+++ b/apps/web/components/forms/server.ts@@ -3,31 +3,31 @@import { db } from "@cap/database";import { getCurrentUser } from "@cap/database/auth/session";import { nanoId } from "@cap/database/helpers";-import { spaceMembers, spaces, users } from "@cap/database/schema";+import { organizationMembers, organizations, users } from "@cap/database/schema";import { eq } from "drizzle-orm";import { revalidatePath } from "next/cache";-export async function createSpace(args: { name: string }) {+export async function createOrganization(args: { name: string }) {const user = await getCurrentUser();if (!user) throw new Error("Unauthorized");- const spaceId = nanoId();- await db().insert(spaces).values({- id: spaceId,+ const organizationId = nanoId();+ await db().insert(organizations).values({+ id: organizationId,ownerId: user.id,name: args.name,});- await db().insert(spaceMembers).values({+ await db().insert(organizationMembers).values({id: nanoId(),userId: user.id,role: "owner",- spaceId,+ organizationId,});await db().update(users)- .set({ activeSpaceId: spaceId })+ .set({ activeOrganizationId: organizationId }).where(eq(users.id, user.id));revalidatePath("/dashboard");diff --git a/apps/web/components/index.ts b/apps/web/components/index.tsindex 904c95a96..c4e2eb22a 100644--- a/apps/web/components/index.ts+++ b/apps/web/components/index.ts@@ -1,5 +1,2 @@-// UI componentsexport { Testimonials } from './ui/Testimonials';--// Re-export typesexport type { Testimonial } from '../data/testimonials';\ No newline at end of filediff --git a/apps/web/middleware.ts b/apps/web/middleware.tsindex e71af0711..6a906a230 100644--- a/apps/web/middleware.ts+++ b/apps/web/middleware.ts@@ -1,5 +1,5 @@import { db } from "@cap/database";-import { spaces } from "@cap/database/schema";+import { organizations } from "@cap/database/schema";import { eq } from "drizzle-orm";import { buildEnv, serverEnv } from "@cap/env";import { notFound } from "next/navigation";@@ -25,9 +25,20 @@ export async function middleware(request: NextRequest) {const hostname = url.hostname;const path = url.pathname;+ if((buildEnv.NEXT_PUBLIC_IS_CAP !== "true" &&+ !(path.startsWith("/s/") ||+ path.startsWith("/dashboard") ||+ path.startsWith("/onboarding") ||+ path.startsWith("/api") ||+ path.startsWith("/login") ||+ path.startsWith("/invite") ||+ path.startsWith("/self-hosting") ||+ path.startsWith("/terms")))) {+ return NextResponse.redirect(new URL("/login", url.origin));+ }+if (- buildEnv.NEXT_PUBLIC_IS_CAP !== "true" ||- mainOrigins.some((d) => url.origin === d)+ mainOrigins.some((d) => url.origin.startsWith(d))) {// We just let the request go through for main domains, page-level logic will handle redirectsreturn NextResponse.next();@@ -50,12 +61,12 @@ export async function middleware(request: NextRequest) {if (verifiedDomain?.value === hostname) return NextResponse.next();// Query the space with this custom domain- const [space] = await db()+ const [organization] = await db().select()- .from(spaces)- .where(eq(spaces.customDomain, hostname));+ .from(organizations)+ .where(eq(organizations.customDomain, hostname));- if (!space || !space.domainVerified) {+ if (!organization || !organization.domainVerified) {// If no verified custom domain found, redirect to main domainconst url = new URL(request.url);url.hostname = webUrl;diff --git a/apps/web/package.json b/apps/web/package.jsonindex d620ad24d..93ead0f08 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -54,7 +54,7 @@"cookies-next": "^4.1.0","date-fns": "^3.2.0","dotenv": "^16.3.1",- "drizzle-orm": "0.30.9",+ "drizzle-orm": "0.43.1","dub": "^0.33.1","file-saver": "^2.0.5","framer-motion": "^11.13.1",diff --git a/apps/web/utils/video/ffmpeg/helpers.ts b/apps/web/utils/video/ffmpeg/helpers.tsindex 214a343d6..c62d7e282 100644--- a/apps/web/utils/video/ffmpeg/helpers.ts+++ b/apps/web/utils/video/ffmpeg/helpers.ts@@ -1,5 +1,3 @@-import { S3_BUCKET_URL } from "@cap/utils";-export function generateM3U8Playlist(urls: {url: string;diff --git a/package.json b/package.jsonindex 540d4b88e..a1feb28c8 100644--- a/package.json+++ b/package.json@@ -21,7 +21,8 @@"tauri:build": "dotenv -e .env -- pnpm --dir apps/desktop tauri build --verbose","typecheck": "pnpm tsc -b","web": "pnpm run --filter=@cap/web",- "env-setup": "node scripts/env-cli.js"+ "env-setup": "node scripts/env-cli.js",+ "clean": "find . -name node_modules -o -name .next -o -name .output -o -name .turbo -o -name dist -type d -prune | xargs rm -rf"},"devDependencies": {"@clack/prompts": "^0.10.0",diff --git a/packages/database/auth/auth-options.ts b/packages/database/auth/auth-options.tsindex e9dd5daef..3ed529711 100644--- a/packages/database/auth/auth-options.ts+++ b/packages/database/auth/auth-options.ts@@ -1,7 +1,7 @@import { eq } from "drizzle-orm";import { DrizzleAdapter } from "./drizzle-adapter";import { db } from "../";-import { users, spaces, spaceMembers } from "../schema";+import { users, organizations, organizationMembers } from "../schema";import EmailProvider from "next-auth/providers/email";import GoogleProvider from "next-auth/providers/google";import type { NextAuthOptions } from "next-auth";@@ -102,28 +102,24 @@ export const authOptions = (): NextAuthOptions => {events: {async signIn({ user, account, isNewUser }) {if (isNewUser) {- // Create initial space for the user- const spaceId = nanoId();-- // Create space- await db().insert(spaces).values({- id: spaceId,- name: "My Space",+ const organizationId = nanoId();++ await db().insert(organizations).values({+ id: organizationId,+ name: "My Organization",ownerId: user.id,});-- // Add user as member of the space- await db().insert(spaceMembers).values({++ await db().insert(organizationMembers).values({id: nanoId(),userId: user.id,- spaceId: spaceId,+ organizationId: organizationId,role: "owner",});-- // Update user's activeSpaceId+await db().update(users)- .set({ activeSpaceId: spaceId })+ .set({ activeOrganizationId: organizationId }).where(eq(users.id, user.id));}},@@ -164,5 +160,5 @@ export const authOptions = (): NextAuthOptions => {};},},- };+ }};diff --git a/packages/database/auth/drizzle-adapter.ts b/packages/database/auth/drizzle-adapter.tsindex f347358aa..749a4df4c 100644--- a/packages/database/auth/drizzle-adapter.ts+++ b/packages/database/auth/drizzle-adapter.ts@@ -4,7 +4,6 @@ import { accounts, sessions, users, verificationTokens } from "../schema";import type { Adapter } from "next-auth/adapters";import type { PlanetScaleDatabase } from "drizzle-orm/planetscale-serverless";import { stripe, STRIPE_AVAILABLE } from "@cap/utils";-import { serverEnv } from "@cap/env";export function DrizzleAdapter(db: PlanetScaleDatabase): Adapter {return {@@ -15,7 +14,7 @@ export function DrizzleAdapter(db: PlanetScaleDatabase): Adapter {emailVerified: userData.emailVerified,name: userData.name,image: userData.image,- activeSpaceId: "",+ activeOrganizationId: "",});const rows = await db.select()diff --git a/packages/database/drizzle.config.ts b/packages/database/drizzle.config.tsindex 4195dc069..9fe06262a 100644--- a/packages/database/drizzle.config.ts+++ b/packages/database/drizzle.config.ts@@ -1,20 +1,27 @@-import { serverEnv } from "@cap/env";import type { Config } from "drizzle-kit";-const URL = serverEnv().DATABASE_MIGRATION_URL ?? serverEnv().DATABASE_URL;+const URL = process.env.DATABASE_MIGRATION_URL ?? process.env.DATABASE_URL;-if (!URL)- throw new Error("DATABASE_URL or DATABASE_MIGRATION_URL must be set!");-if (!URL?.startsWith("mysql://"))- throw new Error(- "DATABASE_URL must be a 'mysql://' URI. Drizzle Kit doesn't support the fetch adapter!"- );+// if (!URL)+// throw new Error("DATABASE_URL or DATABASE_MIGRATION_URL must be set!");+// if (!URL?.startsWith("mysql://"))+// throw new Error(+// "DATABASE_URL must be a 'mysql://' URI. Drizzle Kit doesn't support the fetch adapter!"+// );++// export default {+// schema: "./schema.ts",+// dbCredentials: {+// uri: URL,+// },+// out: "./migrations",+// driver: "mysql2",+// } satisfies Config;export default {schema: "./schema.ts",- dbCredentials: {- uri: URL,- },out: "./migrations",- driver: "mysql2",-} satisfies Config;+ dialect: "mysql",+ dbCredentials: { url: URL },+ casing: "snake_case",+} satisfies Config;\ No newline at end of filediff --git a/packages/database/emails/workspace-invite.tsx b/packages/database/emails/organization-invite.tsxsimilarity index 80%rename from packages/database/emails/workspace-invite.tsxrename to packages/database/emails/organization-invite.tsxindex f7897ae16..b884b7cd6 100644--- a/packages/database/emails/workspace-invite.tsx+++ b/packages/database/emails/organization-invite.tsx@@ -14,19 +14,19 @@ import {} from "@react-email/components";import Footer from "./components/Footer";-export function WorkspaceInvite({+export function OrganizationInvite({email = "",url = "",- workspaceName = "",+ organizationName = "",}: {email: string;url: string;- workspaceName: string;+ organizationName: string;}) {return (<Html><Head />- <Preview>Invitation to join {workspaceName} on Cap</Preview>+ <Preview>Invitation to join {organizationName} on Cap</Preview><Tailwind><Body className="mx-auto my-auto bg-gray-1 font-sans"><Container className="mx-auto my-10 max-w-[500px] rounded border border-solid border-gray-200 px-10 py-5">@@ -40,19 +40,20 @@ export function WorkspaceInvite({/></Section><Heading className="mx-0 my-7 p-0 text-center text-xl font-semibold text-black">- You're invited to join {workspaceName}+ You're invited to join {organizationName}</Heading><Text className="text-sm leading-6 text-black">Hello,</Text><Text className="text-sm leading-6 text-black">- You've been invited to join the {workspaceName} workspace on Cap.- Click the button below to accept the invitation and join the team.+ You've been invited to join the {organizationName} organization on+ Cap. Click the button below to accept the invitation and join the+ team.</Text><Section className="my-8 text-center"><LinkclassName="rounded-full bg-black px-6 py-3 text-center text-[12px] font-semibold text-white no-underline"href={url}>- Join Workspace+ Join Organization</Link></Section><Text className="text-sm leading-6 text-black">diff --git a/packages/database/migrations/0000_brown_sunfire.sql b/packages/database/migrations/0000_oval_wendigo.sqlsimilarity index 100%rename from packages/database/migrations/0000_brown_sunfire.sqlrename to packages/database/migrations/0000_oval_wendigo.sqldiff --git a/packages/database/migrations/0001_eager_the_order.sql b/packages/database/migrations/0001_eager_the_order.sqlnew file mode 100644index 000000000..fcd11cb29--- /dev/null+++ b/packages/database/migrations/0001_eager_the_order.sql@@ -0,0 +1,29 @@+RENAME TABLE `space_invites` TO `organization_invites`;+RENAME TABLE `space_members` TO `organization_members`;+RENAME TABLE `spaces` TO `organizations`;+ALTER TABLE `shared_videos` RENAME COLUMN `spaceId` TO `organizationId`;+ALTER TABLE `organization_invites` RENAME COLUMN `spaceId` TO `organizationId`;+ALTER TABLE `organization_members` RENAME COLUMN `spaceId` TO `organizationId`;+ALTER TABLE `users` RENAME COLUMN `activeSpaceId` TO `activeOrganizationId`;+ALTER TABLE `organization_invites` DROP INDEX `space_invites_id_unique`;+ALTER TABLE `organization_members` DROP INDEX `space_members_id_unique`;+ALTER TABLE `organizations` DROP INDEX `spaces_id_unique`;+DROP INDEX `space_id_idx` ON `shared_videos`;+DROP INDEX `video_id_space_id_idx` ON `shared_videos`;+DROP INDEX `space_id_idx` ON `organization_invites`;+DROP INDEX `space_id_idx` ON `organization_members`;+DROP INDEX `user_id_space_id_idx` ON `organization_members`;+ALTER TABLE `organization_invites` DROP PRIMARY KEY;+ALTER TABLE `organization_members` DROP PRIMARY KEY;+ALTER TABLE `organizations` DROP PRIMARY KEY;+ALTER TABLE `organization_invites` ADD PRIMARY KEY(`id`);+ALTER TABLE `organization_members` ADD PRIMARY KEY(`id`);+ALTER TABLE `organizations` ADD PRIMARY KEY(`id`);+ALTER TABLE `organization_invites` ADD CONSTRAINT `organization_invites_id_unique` UNIQUE(`id`);+ALTER TABLE `organization_members` ADD CONSTRAINT `organization_members_id_unique` UNIQUE(`id`);+ALTER TABLE `organizations` ADD CONSTRAINT `organizations_id_unique` UNIQUE(`id`);+CREATE INDEX `organization_id_idx` ON `shared_videos` (`organizationId`);+CREATE INDEX `video_id_organization_id_idx` ON `shared_videos` (`videoId`,`organizationId`);+CREATE INDEX `organization_id_idx` ON `organization_invites` (`organizationId`);+CREATE INDEX `organization_id_idx` ON `organization_members` (`organizationId`);+CREATE INDEX `user_id_organization_id_idx` ON `organization_members` (`userId`,`organizationId`);\ No newline at end of filediff --git a/packages/database/migrations/meta/0000_snapshot.json b/packages/database/migrations/meta/0000_snapshot.jsonindex fed508679..9641f25ab 100644--- a/packages/database/migrations/meta/0000_snapshot.json+++ b/packages/database/migrations/meta/0000_snapshot.json@@ -1,7 +1,7 @@{"version": "5","dialect": "mysql",- "id": "3d91bc9d-85c3-45eb-b6b6-e1db45b8151d",+ "id": "b08d5e93-8b36-4743-bcfb-7671d65af504","prevId": "00000000-0000-0000-0000-000000000000","tables": {"accounts": {@@ -148,7 +148,8 @@"id"]}- }+ },+ "checkConstraint": {}},"comments": {"name": "comments",@@ -259,7 +260,8 @@"id"]}- }+ },+ "checkConstraint": {}},"s3_buckets": {"name": "s3_buckets",@@ -339,7 +341,8 @@"id"]}- }+ },+ "checkConstraint": {}},"sessions": {"name": "sessions",@@ -428,7 +431,8 @@"sessionToken"]}- }+ },+ "checkConstraint": {}},"shared_videos": {"name": "shared_videos",@@ -517,7 +521,8 @@"id"]}- }+ },+ "checkConstraint": {}},"space_invites": {"name": "space_invites",@@ -636,7 +641,8 @@"id"]}- }+ },+ "checkConstraint": {}},"space_members": {"name": "space_members",@@ -727,7 +733,8 @@"id"]}- }+ },+ "checkConstraint": {}},"spaces": {"name": "spaces",@@ -845,7 +852,8 @@"id"]}- }+ },+ "checkConstraint": {}},"users": {"name": "users",@@ -1005,7 +1013,8 @@"email"]}- }+ },+ "checkConstraint": {}},"verification_tokens": {"name": "verification_tokens",@@ -1066,7 +1075,8 @@"token"]}- }+ },+ "checkConstraint": {}},"videos": {"name": "videos",@@ -1252,13 +1262,18 @@"id"]}- }+ },+ "checkConstraint": {}}},- "schemas": {},+ "views": {},"_meta": {"schemas": {},"tables": {},"columns": {}+ },+ "internal": {+ "tables": {},+ "indexes": {}}}\ No newline at end of filediff --git a/packages/database/migrations/meta/0001_snapshot.json b/packages/database/migrations/meta/0001_snapshot.jsonnew file mode 100644index 000000000..b57f2a35c--- /dev/null+++ b/packages/database/migrations/meta/0001_snapshot.json@@ -0,0 +1,1288 @@+{+ "version": "5",+ "dialect": "mysql",+ "id": "94acb4a1-1de9-4bcf-bb06-5aeae407cd92",+ "prevId": "b08d5e93-8b36-4743-bcfb-7671d65af504",+ "tables": {+ "accounts": {+ "name": "accounts",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "type": {+ "name": "type",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "provider": {+ "name": "provider",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "providerAccountId": {+ "name": "providerAccountId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "access_token": {+ "name": "access_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "expires_in": {+ "name": "expires_in",+ "type": "int",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "id_token": {+ "name": "id_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "refresh_token": {+ "name": "refresh_token",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "refresh_token_expires_in": {+ "name": "refresh_token_expires_in",+ "type": "int",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "scope": {+ "name": "scope",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "token_type": {+ "name": "token_type",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "tempColumn": {+ "name": "tempColumn",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "provider_account_id_idx": {+ "name": "provider_account_id_idx",+ "columns": [+ "providerAccountId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "accounts_id": {+ "name": "accounts_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "accounts_id_unique": {+ "name": "accounts_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "comments": {+ "name": "comments",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "type": {+ "name": "type",+ "type": "varchar(6)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "content": {+ "name": "content",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "timestamp": {+ "name": "timestamp",+ "type": "float",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "authorId": {+ "name": "authorId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "videoId": {+ "name": "videoId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "parentCommentId": {+ "name": "parentCommentId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "video_id_idx": {+ "name": "video_id_idx",+ "columns": [+ "videoId"+ ],+ "isUnique": false+ },+ "author_id_idx": {+ "name": "author_id_idx",+ "columns": [+ "authorId"+ ],+ "isUnique": false+ },+ "parent_comment_id_idx": {+ "name": "parent_comment_id_idx",+ "columns": [+ "parentCommentId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "comments_id": {+ "name": "comments_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "comments_id_unique": {+ "name": "comments_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "organization_invites": {+ "name": "organization_invites",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "invitedEmail": {+ "name": "invitedEmail",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "invitedByUserId": {+ "name": "invitedByUserId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "status": {+ "name": "status",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'pending'"+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "expiresAt": {+ "name": "expiresAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "invited_email_idx": {+ "name": "invited_email_idx",+ "columns": [+ "invitedEmail"+ ],+ "isUnique": false+ },+ "invited_by_user_id_idx": {+ "name": "invited_by_user_id_idx",+ "columns": [+ "invitedByUserId"+ ],+ "isUnique": false+ },+ "status_idx": {+ "name": "status_idx",+ "columns": [+ "status"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "organization_invites_id": {+ "name": "organization_invites_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "organization_invites_id_unique": {+ "name": "organization_invites_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "organization_members": {+ "name": "organization_members",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "role": {+ "name": "role",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ },+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "user_id_organization_id_idx": {+ "name": "user_id_organization_id_idx",+ "columns": [+ "userId",+ "organizationId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "organization_members_id": {+ "name": "organization_members_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "organization_members_id_unique": {+ "name": "organization_members_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "organizations": {+ "name": "organizations",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "ownerId": {+ "name": "ownerId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "metadata": {+ "name": "metadata",+ "type": "json",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "allowedEmailDomain": {+ "name": "allowedEmailDomain",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "customDomain": {+ "name": "customDomain",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "domainVerified": {+ "name": "domainVerified",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "workosOrganizationId": {+ "name": "workosOrganizationId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "workosConnectionId": {+ "name": "workosConnectionId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ }+ },+ "indexes": {+ "owner_id_idx": {+ "name": "owner_id_idx",+ "columns": [+ "ownerId"+ ],+ "isUnique": false+ },+ "custom_domain_idx": {+ "name": "custom_domain_idx",+ "columns": [+ "customDomain"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "organizations_id": {+ "name": "organizations_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "organizations_id_unique": {+ "name": "organizations_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "s3_buckets": {+ "name": "s3_buckets",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "ownerId": {+ "name": "ownerId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "region": {+ "name": "region",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "endpoint": {+ "name": "endpoint",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "bucketName": {+ "name": "bucketName",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "accessKeyId": {+ "name": "accessKeyId",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "secretAccessKey": {+ "name": "secretAccessKey",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "provider": {+ "name": "provider",+ "type": "text",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "('aws')"+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "s3_buckets_id": {+ "name": "s3_buckets_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "s3_buckets_id_unique": {+ "name": "s3_buckets_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "sessions": {+ "name": "sessions",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "sessionToken": {+ "name": "sessionToken",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "userId": {+ "name": "userId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "expires": {+ "name": "expires",+ "type": "datetime",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {+ "session_token_idx": {+ "name": "session_token_idx",+ "columns": [+ "sessionToken"+ ],+ "isUnique": true+ },+ "user_id_idx": {+ "name": "user_id_idx",+ "columns": [+ "userId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "sessions_id": {+ "name": "sessions_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "sessions_id_unique": {+ "name": "sessions_id_unique",+ "columns": [+ "id"+ ]+ },+ "sessions_sessionToken_unique": {+ "name": "sessions_sessionToken_unique",+ "columns": [+ "sessionToken"+ ]+ }+ },+ "checkConstraint": {}+ },+ "shared_videos": {+ "name": "shared_videos",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "videoId": {+ "name": "videoId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "organizationId": {+ "name": "organizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "sharedByUserId": {+ "name": "sharedByUserId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "sharedAt": {+ "name": "sharedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ }+ },+ "indexes": {+ "video_id_idx": {+ "name": "video_id_idx",+ "columns": [+ "videoId"+ ],+ "isUnique": false+ },+ "organization_id_idx": {+ "name": "organization_id_idx",+ "columns": [+ "organizationId"+ ],+ "isUnique": false+ },+ "shared_by_user_id_idx": {+ "name": "shared_by_user_id_idx",+ "columns": [+ "sharedByUserId"+ ],+ "isUnique": false+ },+ "video_id_organization_id_idx": {+ "name": "video_id_organization_id_idx",+ "columns": [+ "videoId",+ "organizationId"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "shared_videos_id": {+ "name": "shared_videos_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "shared_videos_id_unique": {+ "name": "shared_videos_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ },+ "users": {+ "name": "users",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "lastName": {+ "name": "lastName",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "email": {+ "name": "email",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "emailVerified": {+ "name": "emailVerified",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "image": {+ "name": "image",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeCustomerId": {+ "name": "stripeCustomerId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeSubscriptionId": {+ "name": "stripeSubscriptionId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "thirdPartyStripeSubscriptionId": {+ "name": "thirdPartyStripeSubscriptionId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeSubscriptionStatus": {+ "name": "stripeSubscriptionStatus",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "stripeSubscriptionPriceId": {+ "name": "stripeSubscriptionPriceId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "activeOrganizationId": {+ "name": "activeOrganizationId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "onboarding_completed_at": {+ "name": "onboarding_completed_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "customBucket": {+ "name": "customBucket",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "inviteQuota": {+ "name": "inviteQuota",+ "type": "int",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": 1+ }+ },+ "indexes": {+ "email_idx": {+ "name": "email_idx",+ "columns": [+ "email"+ ],+ "isUnique": true+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "users_id": {+ "name": "users_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "users_id_unique": {+ "name": "users_id_unique",+ "columns": [+ "id"+ ]+ },+ "users_email_unique": {+ "name": "users_email_unique",+ "columns": [+ "email"+ ]+ }+ },+ "checkConstraint": {}+ },+ "verification_tokens": {+ "name": "verification_tokens",+ "columns": {+ "identifier": {+ "name": "identifier",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "token": {+ "name": "token",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "expires": {+ "name": "expires",+ "type": "datetime",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "created_at": {+ "name": "created_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updated_at": {+ "name": "updated_at",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ }+ },+ "indexes": {},+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "verification_tokens_identifier": {+ "name": "verification_tokens_identifier",+ "columns": [+ "identifier"+ ]+ }+ },+ "uniqueConstraints": {+ "verification_tokens_token_unique": {+ "name": "verification_tokens_token_unique",+ "columns": [+ "token"+ ]+ }+ },+ "checkConstraint": {}+ },+ "videos": {+ "name": "videos",+ "columns": {+ "id": {+ "name": "id",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "ownerId": {+ "name": "ownerId",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false+ },+ "name": {+ "name": "name",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "'My Video'"+ },+ "awsRegion": {+ "name": "awsRegion",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "awsBucket": {+ "name": "awsBucket",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "bucket": {+ "name": "bucket",+ "type": "varchar(15)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "metadata": {+ "name": "metadata",+ "type": "json",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "public": {+ "name": "public",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": true+ },+ "videoStartTime": {+ "name": "videoStartTime",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "audioStartTime": {+ "name": "audioStartTime",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "xStreamInfo": {+ "name": "xStreamInfo",+ "type": "text",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "jobId": {+ "name": "jobId",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "jobStatus": {+ "name": "jobStatus",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "isScreenshot": {+ "name": "isScreenshot",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": false+ },+ "skipProcessing": {+ "name": "skipProcessing",+ "type": "boolean",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": false+ },+ "transcriptionStatus": {+ "name": "transcriptionStatus",+ "type": "varchar(255)",+ "primaryKey": false,+ "notNull": false,+ "autoincrement": false+ },+ "createdAt": {+ "name": "createdAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "(now())"+ },+ "updatedAt": {+ "name": "updatedAt",+ "type": "timestamp",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "onUpdate": true,+ "default": "(now())"+ },+ "source": {+ "name": "source",+ "type": "json",+ "primaryKey": false,+ "notNull": true,+ "autoincrement": false,+ "default": "('{\"type\":\"MediaConvert\"}')"+ }+ },+ "indexes": {+ "id_idx": {+ "name": "id_idx",+ "columns": [+ "id"+ ],+ "isUnique": false+ },+ "owner_id_idx": {+ "name": "owner_id_idx",+ "columns": [+ "ownerId"+ ],+ "isUnique": false+ },+ "is_public_idx": {+ "name": "is_public_idx",+ "columns": [+ "public"+ ],+ "isUnique": false+ }+ },+ "foreignKeys": {},+ "compositePrimaryKeys": {+ "videos_id": {+ "name": "videos_id",+ "columns": [+ "id"+ ]+ }+ },+ "uniqueConstraints": {+ "videos_id_unique": {+ "name": "videos_id_unique",+ "columns": [+ "id"+ ]+ }+ },+ "checkConstraint": {}+ }+ },+ "views": {},+ "_meta": {+ "schemas": {},+ "tables": {+ "\"space_invites\"": "\"organization_invites\"",+ "\"space_members\"": "\"organization_members\"",+ "\"spaces\"": "\"organizations\""+ },+ "columns": {+ "\"shared_videos\".\"spaceId\"": "\"shared_videos\".\"organizationId\"",+ "\"organization_invites\".\"spaceId\"": "\"organization_invites\".\"organizationId\"",+ "\"organization_members\".\"spaceId\"": "\"organization_members\".\"organizationId\"",+ "\"users\".\"activeSpaceId\"": "\"users\".\"activeOrganizationId\""+ }+ },+ "internal": {+ "tables": {},+ "indexes": {}+ }+}\ No newline at end of filediff --git a/packages/database/migrations/meta/_journal.json b/packages/database/migrations/meta/_journal.jsonindex 89f7557ac..4a995ab16 100644--- a/packages/database/migrations/meta/_journal.json+++ b/packages/database/migrations/meta/_journal.json@@ -1,12 +1,19 @@{- "version": "5",+ "version": "7","dialect": "mysql","entries": [{"idx": 0,"version": "5",- "when": 1743020179593,- "tag": "0000_brown_sunfire",+ "when": 1745976420272,+ "tag": "0000_oval_wendigo",+ "breakpoints": true+ },+ {+ "idx": 1,+ "version": "5",+ "when": 1745977344716,+ "tag": "0001_eager_the_order","breakpoints": true}]diff --git a/packages/database/package.json b/packages/database/package.jsonindex 09dc492be..17770104e 100644--- a/packages/database/package.json+++ b/packages/database/package.json@@ -4,8 +4,8 @@"types": "./index.ts","main": "index.js","scripts": {- "db:generate": "drizzle-kit generate:mysql --config=drizzle.config.ts",- "db:push": "drizzle-kit push:mysql --config=drizzle.config.ts",+ "db:generate": "drizzle-kit generate --config=drizzle.config.ts",+ "db:push": "drizzle-kit push --config=drizzle.config.ts","db:check": "drizzle-kit check:mysql --config=drizzle.config.ts","db:up": "drizzle-kit up:mysql --config=drizzle.config.ts","db:drop": "drizzle-kit drop --config=drizzle.config.ts",@@ -18,7 +18,7 @@"@planetscale/database": "^1.13.0","@react-email/components": "^0.0.13","@react-email/render": "0.0.11",- "drizzle-orm": "0.30.9",+ "drizzle-orm": "0.43.1","nanoid": "^5.0.4","next": "14.2.9","next-auth": "^4.24.5",@@ -32,7 +32,7 @@"@types/react": "^18.2.38","@types/react-dom": "latest","dotenv-cli": "latest",- "drizzle-kit": "^0.20.12",+ "drizzle-kit": "0.31.0","nodemailer": "^6.9.8","react": "^18.2.0","react-dom": "^18.2.0",diff --git a/packages/database/schema.ts b/packages/database/schema.tsindex 7c1e2f04e..9d4ed22da 100644--- a/packages/database/schema.ts+++ b/packages/database/schema.ts@@ -63,7 +63,7 @@ export const users = mysqlTable(stripeSubscriptionPriceId: varchar("stripeSubscriptionPriceId", {length: 255,}),- activeSpaceId: nanoId("activeSpaceId"),+ activeOrganizationId: nanoId("activeOrganizationId"),created_at: timestamp("created_at").notNull().defaultNow(),updated_at: timestamp("updated_at").notNull().defaultNow().onUpdateNow(),onboarding_completed_at: timestamp("onboarding_completed_at"),@@ -126,8 +126,8 @@ export const verificationTokens = mysqlTable("verification_tokens", {updated_at: timestamp("updated_at").notNull().defaultNow().onUpdateNow(),});-export const spaces = mysqlTable(- "spaces",+export const organizations = mysqlTable(+ "organizations",{id: nanoId("id").notNull().primaryKey().unique(),name: varchar("name", { length: 255 }).notNull(),@@ -147,31 +147,31 @@ export const spaces = mysqlTable(}));-export const spaceMembers = mysqlTable(- "space_members",+export const organizationMembers = mysqlTable(+ "organization_members",{id: nanoId("id").notNull().primaryKey().unique(),userId: nanoId("userId").notNull(),- spaceId: nanoId("spaceId").notNull(),+ organizationId: nanoId("organizationId").notNull(),role: varchar("role", { length: 255 }).notNull(),createdAt: timestamp("createdAt").notNull().defaultNow(),updatedAt: timestamp("updatedAt").notNull().defaultNow().onUpdateNow(),},(table) => ({userIdIndex: index("user_id_idx").on(table.userId),- spaceIdIndex: index("space_id_idx").on(table.spaceId),- userIdSpaceIdIndex: index("user_id_space_id_idx").on(+ organizationIdIndex: index("organization_id_idx").on(table.organizationId),+ userIdOrganizationIdIndex: index("user_id_organization_id_idx").on(table.userId,- table.spaceId+ table.organizationId),}));-export const spaceInvites = mysqlTable(- "space_invites",+export const organizationInvites = mysqlTable(+ "organization_invites",{id: nanoId("id").notNull().primaryKey().unique(),- spaceId: nanoId("spaceId").notNull(),+ organizationId: nanoId("organizationId").notNull(),invitedEmail: varchar("invitedEmail", { length: 255 }).notNull(),invitedByUserId: nanoId("invitedByUserId").notNull(),role: varchar("role", { length: 255 }).notNull(),@@ -181,7 +181,7 @@ export const spaceInvites = mysqlTable(expiresAt: timestamp("expiresAt"),},(table) => ({- spaceIdIndex: index("space_id_idx").on(table.spaceId),+ organizationIdIndex: index("organization_id_idx").on(table.organizationId),invitedEmailIndex: index("invited_email_idx").on(table.invitedEmail),invitedByUserIdIndex: index("invited_by_user_id_idx").on(table.invitedByUserId@@ -230,19 +230,19 @@ export const sharedVideos = mysqlTable({id: nanoId("id").notNull().primaryKey().unique(),videoId: nanoId("videoId").notNull(),- spaceId: nanoId("spaceId").notNull(),+ organizationId: nanoId("organizationId").notNull(),sharedByUserId: nanoId("sharedByUserId").notNull(),sharedAt: timestamp("sharedAt").notNull().defaultNow(),},(table) => ({videoIdIndex: index("video_id_idx").on(table.videoId),- spaceIdIndex: index("space_id_idx").on(table.spaceId),+ organizationIdIndex: index("organization_id_idx").on(table.organizationId),sharedByUserIdIndex: index("shared_by_user_id_idx").on(table.sharedByUserId),- videoIdSpaceIdIndex: index("video_id_space_id_idx").on(+ videoIdOrganizationIdIndex: index("video_id_organization_id_idx").on(table.videoId,- table.spaceId+ table.organizationId),}));@@ -300,7 +300,7 @@ export const commentsRelations = relations(comments, ({ one }) => ({export const usersRelations = relations(users, ({ many, one }) => ({accounts: many(accounts),sessions: many(sessions),- spaceMembers: many(spaceMembers),+ organizationMembers: many(organizationMembers),videos: many(videos),sharedVideos: many(sharedVideos),customBucket: one(s3Buckets),@@ -313,14 +313,21 @@ export const accountsRelations = relations(accounts, ({ one }) => ({}),}));-export const spacesRelations = relations(spaces, ({ one, many }) => ({+export const s3BucketsRelations = relations(s3Buckets, ({ one }) => ({owner: one(users, {- fields: [spaces.ownerId],+ fields: [s3Buckets.ownerId],references: [users.id],}),- spaceMembers: many(spaceMembers),+}));++export const organizationsRelations = relations(organizations, ({ one, many }) => ({+ owner: one(users, {+ fields: [organizations.ownerId],+ references: [users.id],+ }),+ organizationMembers: many(organizationMembers),sharedVideos: many(sharedVideos),- spaceInvites: many(spaceInvites),+ organizationInvites: many(organizationInvites),}));export const sessionsRelations = relations(sessions, ({ one }) => ({@@ -337,24 +344,26 @@ export const verificationTokensRelations = relations(}));-export const spaceMembersRelations = relations(spaceMembers, ({ one }) => ({+export const organizationMembersRelations = relations(organizationMembers, ({ one }) => ({user: one(users, {- fields: [spaceMembers.userId],+ fields: [organizationMembers.userId],references: [users.id],}),- space: one(spaces, {- fields: [spaceMembers.spaceId],- references: [spaces.id],+ organization: one(organizations, {+ fields: [organizationMembers.organizationId],+ references: [organizations.id],}),}));-export const spaceInvitesRelations = relations(spaceInvites, ({ one }) => ({- space: one(spaces, {- fields: [spaceInvites.spaceId],- references: [spaces.id],+export const organizationInvitesRelations = relations(+ organizationInvites,+ ({ one }) => ({+ organization: one(organizations, {+ fields: [organizationInvites.organizationId],+ references: [organizations.id],}),invitedByUser: one(users, {- fields: [spaceInvites.invitedByUserId],+ fields: [organizationInvites.invitedByUserId],references: [users.id],}),}));@@ -372,9 +381,9 @@ export const sharedVideosRelations = relations(sharedVideos, ({ one }) => ({fields: [sharedVideos.videoId],references: [videos.id],}),- space: one(spaces, {- fields: [sharedVideos.spaceId],- references: [spaces.id],+ organization: one(organizations, {+ fields: [sharedVideos.organizationId],+ references: [organizations.id],}),sharedByUser: one(users, {fields: [sharedVideos.sharedByUserId],diff --git a/packages/env/build.ts b/packages/env/build.tsindex 158ebedd1..200c8cfef 100644--- a/packages/env/build.ts+++ b/packages/env/build.ts@@ -1,7 +1,7 @@import { createEnv } from "@t3-oss/env-nextjs";import { z } from "zod";-export const NODE_ENV = process.env.NODE_ENV as string;+export const NODE_ENV = process.env.NODE_ENV || "";// Environment variables that are needed in the build process, and may be incorrect on the client.// Some are only provided by `NEXT_PUBLIC`, but others can be provdied at runtimediff --git a/packages/env/server.ts b/packages/env/server.tsindex a0a42a0ea..e385d0116 100644--- a/packages/env/server.ts+++ b/packages/env/server.ts@@ -56,7 +56,7 @@ function createServerEnv() {});}-let _cached: ReturnType<typeof createServerEnv> | undefined;+let _cached = undefined;export const serverEnv = () => {if (_cached) return _cached;_cached = createServerEnv();diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 6b58e8576..2fb8bf13b 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -49,7 +49,7 @@ importers:'@cap/web-api-contract':specifier: workspace:*- version: link:../../packages/web-api-contract+ version: file:packages/web-api-contract(@types/[email protected])'@corvu/tooltip':specifier: ^0.2.1version: 0.2.1([email protected])@@ -106,7 +106,7 @@ importers:version: 0.14.7([email protected])'@solidjs/start':specifier: ^1.1.3- version: 1.1.3(@testing-library/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected](@planetscale/[email protected])(@types/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected]))([email protected])+ version: 1.1.3(@testing-library/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected](@planetscale/[email protected])(@types/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected]))([email protected])'@tanstack/solid-query':specifier: ^5.51.21version: 5.56.2([email protected])@@ -151,7 +151,7 @@ importers:version: 2.0.0'@ts-rest/core':specifier: ^3.52.1- version: 3.52.1(@types/[email protected])([email protected])+ version: 3.52.1(@types/[email protected])([email protected])'@types/react-tooltip':specifier: ^4.2.4@@ -193,7 +193,7 @@ importers:version: 9.0.1vinxi:specifier: ^0.5.0- version: 0.5.3(@planetscale/[email protected])(@types/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ version: 0.5.3(@planetscale/[email protected])(@types/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])webcodecs:specifier: ^0.1.0version: 0.1.0@@ -224,10 +224,10 @@ importers:version: 5.7.2vite:specifier: ^6.0.0vite-tsconfig-paths:specifier: ^5.0.1- version: 5.0.1([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ version: 5.0.1([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))apps/discord-bot:dependencies:@@ -310,16 +310,16 @@ importers:storybook-solidjs-vite:specifier: ^1.0.0-beta.2- version: 1.0.0-beta.2([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ version: 1.0.0-beta.2([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))typescript:specifier: ^5.7.2version: 5.7.2vite:specifier: ^6.0.0vite-plugin-solid:specifier: ^2.10.2- version: 2.10.2(@testing-library/[email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ version: 2.10.2(@testing-library/[email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))apps/tasks:dependencies:@@ -422,7 +422,7 @@ importers:version: link:../../packages/database'@cap/env':specifier: workspace:*- version: link:../../packages/env'@cap/ui':specifier: workspace:*version: file:packages/ui(@types/[email protected])(@types/[email protected])([email protected]([email protected]))([email protected])([email protected]([email protected](@types/[email protected])([email protected])))([email protected])([email protected]([email protected]))@@ -529,8 +529,8 @@ importers:specifier: ^16.3.1version: 16.4.5drizzle-orm:- specifier: 0.30.9- version: 0.30.9(@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])(@types/[email protected])([email protected])([email protected])+ specifier: 0.43.1+ version: 0.43.1(@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected])dub:specifier: ^0.33.1version: 0.33.1([email protected])@@ -575,7 +575,7 @@ importers:version: 4.24.8([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])next-contentlayer2:specifier: ^0.5.3- version: 0.5.3([email protected])([email protected]([email protected])([email protected]))([email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])+ version: 0.5.3([email protected])([email protected]([email protected])([email protected]))([email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])next-mdx-remote:specifier: ^4.4.1@@ -697,13 +697,13 @@ importers:dependencies:'@vitejs/plugin-react':specifier: ^4.0.3- version: 4.3.1([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ version: 4.3.1([email protected](@types/[email protected])([email protected])([email protected])([email protected]))vite:specifier: ^6.0.0vite-tsconfig-paths:specifier: ^4.2.0- version: 4.3.2([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ version: 4.3.2([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))devDependencies:'@types/node':specifier: ^20.4.5@@ -746,7 +746,7 @@ importers:dependencies:'@cap/env':specifier: workspace:*- version: link:../env'@mattrax/mysql-planetscale':specifier: ^0.0.3version: 0.0.3@@ -763,8 +763,8 @@ importers:specifier: 0.0.11version: 0.0.11drizzle-orm:- specifier: 0.30.9- version: 0.30.9(@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])(@types/[email protected])([email protected])([email protected])+ specifier: 0.43.1+ version: 0.43.1(@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected])nanoid:specifier: ^5.0.4version: 5.0.7@@ -800,8 +800,8 @@ importers:specifier: latestversion: 8.0.0drizzle-kit:- specifier: ^0.20.12- version: 0.20.18+ specifier: 0.31.0+ version: 0.31.0nodemailer:specifier: ^6.9.8version: 6.9.15@@ -900,7 +900,7 @@ importers:version: 19.1.2(@types/[email protected])'@vitejs/plugin-react':specifier: ^4.0.3- version: 4.3.1([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ version: 4.3.1([email protected](@types/[email protected])([email protected])([email protected])([email protected]))autoprefixer:specifier: ^10.4.16version: 10.4.20([email protected])@@ -942,10 +942,10 @@ importers:version: 5.7.2vite:specifier: ^6.0.0vite-tsconfig-paths:specifier: ^4.2.1- version: 4.3.2([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ version: 4.3.2([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))packages/ui-solid:dependencies:@@ -994,7 +994,7 @@ importers:version: 0.18.3([email protected])unplugin-fonts:specifier: ^1.1.1- version: 1.1.1([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ version: 1.1.1([email protected](@types/[email protected])([email protected])([email protected])([email protected]))unplugin-icons:specifier: ^0.19.2version: 0.19.3@@ -1006,7 +1006,7 @@ importers:version: 3.658.1'@cap/env':specifier: workspace:*- version: link:../envclsx:specifier: ^2.0.0version: 2.1.1@@ -1663,6 +1663,9 @@ packages:'@deno/[email protected]':resolution: {integrity: sha512-q3VTHl44ad8T2Tw2SpeAvghdGOjlnLPDNO2cpOxwMrBE/PVas6geWpbpIgrM+czOCH0yejp0yi8OaTuB+NU40Q==}+ '@drizzle-team/[email protected]':+ resolution: {integrity: sha512-z33Il7l5dKjUgGULTqBsQBQwckHh5AbIuxhdsIxDDiZAzBOrZO6q9ogcWC65kU382AfynTfgNumVcNIjuIua6w==}+'@effect-ts/[email protected]':resolution: {integrity: sha512-qi1WrtJA90XLMnj2hnUszW9Sx4dXP03ZJtCc5DiUBIOhF4Vw7plfb65/bdBySPoC9s7zy995TdUX1XBSxUkl5w==}@@ -1712,12 +1715,6 @@ packages:peerDependencies:esbuild: '*'- '@esbuild/[email protected]':- resolution: {integrity: sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA==}- engines: {node: '>=12'}- cpu: [ppc64]- os: [aix]-'@esbuild/[email protected]':resolution: {integrity: sha512-D+EBOJHXdNZcLJRBkhENNG8Wji2kgc9AZ9KiPr1JuZjsNtyHzrsfLRrY0tk2H2aoFu6RANO1y1iPPUCDYWkb5g==}engines: {node: '>=12'}@@ -1748,8 +1745,8 @@ packages:cpu: [ppc64]os: [aix]- '@esbuild/[email protected]':- resolution: {integrity: sha512-wCIboOL2yXZym2cgm6mlA742s9QeJ8DjGVaL39dLN4rRwrOgOyYSnOaFPhKZGLb2ngj4EyfAFjsNJwPXZvseag==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-W8bFfPA8DowP8l//sxjJLSLkD8iEjMc7cBVyP+u4cEv9sM7mdUCkgsj+t0n/BWPFtv7WWCN5Yzj0N6FJNUUqBQ==}engines: {node: '>=18'}cpu: [ppc64]os: [aix]@@ -1772,12 +1769,6 @@ packages:cpu: [arm64]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-P0UVNGIienjZv3f5zq0DP3Nt2IE/3plFzuaS96vihvD0Hd6H/q4WXUGpCxD/E8YrSXfNyRPbpTq+T8ZQioSuPA==}- engines: {node: '>=12'}- cpu: [arm64]- os: [android]-'@esbuild/[email protected]':resolution: {integrity: sha512-mRzjLacRtl/tWU0SvD8lUEwb61yP9cqQo6noDZP/O8VkwafSYwZ4yWy24kan8jE/IMERpYncRt2dw438LP3Xmg==}engines: {node: '>=12'}@@ -1808,8 +1799,8 @@ packages:cpu: [arm64]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-5ZAX5xOmTligeBaeNEPnPaeEuah53Id2tX4c2CVP3JaROTH+j4fnfHCkr1PjXMd78hMst+TlkfKcW/DlTq0i4w==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-XelR6MzjlZuBM4f5z2IQHK6LkK34Cvv6Rj2EntER3lwCBFdg6h2lKbtRjpTTsdEjD/WSe1q8UyPBXP1x3i/wYQ==}engines: {node: '>=18'}cpu: [arm64]os: [android]@@ -1832,12 +1823,6 @@ packages:cpu: [arm]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-qg/Lj1mu3CdQlDEEiWrlC4eaPZ1KztwGJ9B6J+/6G+/4ewxJg7gqj8eVYWvao1bXrqGiW2rsBZFSX3q2lcW05w==}- engines: {node: '>=12'}- cpu: [arm]- os: [android]-'@esbuild/[email protected]':resolution: {integrity: sha512-t98Ra6pw2VaDhqNWO2Oph2LXbz/EJcnLmKLGBJwEwXX/JAN83Fym1rU8l0JUWK6HkIbWONCSSatf4sf2NBRx/w==}engines: {node: '>=12'}@@ -1868,8 +1853,8 @@ packages:cpu: [arm]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-NQhH7jFstVY5x8CKbcfa166GoV0EFkaPkCKBQkdPJFvo5u+nGXLEH/ooniLb3QI8Fk58YAx7nsPLozUWfCBOJA==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-PuwVXbnP87Tcff5I9ngV0lmiSu40xw1At6i3GsU77U7cjDDB4s0X2cyFuBiDa1SBk9DnvWwnGvVaGBqoFWPb7A==}engines: {node: '>=18'}cpu: [arm]os: [android]@@ -1892,12 +1877,6 @@ packages:cpu: [x64]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-3k7ZoUW6Q6YqhdhIaq/WZ7HwBpnFBlW905Fa4s4qWJyiNOgT1dOqDiVAQFwBH7gBRZr17gLrlFCRzF6jFh7Kew==}- engines: {node: '>=12'}- cpu: [x64]- os: [android]-'@esbuild/[email protected]':resolution: {integrity: sha512-btzExgV+/lMGDDa194CcUQm53ncxzeBrWJcncOBxuC6ndBkKxnHdFJn86mCIgTELsooUmwUm9FkhSp5HYu00Rg==}engines: {node: '>=12'}@@ -1928,8 +1907,8 @@ packages:cpu: [x64]os: [android]- '@esbuild/[email protected]':- resolution: {integrity: sha512-Ffcx+nnma8Sge4jzddPHCZVRvIfQ0kMsUsCMcJRHkGJ1cDmhe4SsrYIjLUKn1xpHZybmOqCWwB0zQvsjdEHtkg==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-ogtTpYHT/g1GWS/zKM0cc/tIebFjm1F9Aw1boQ2Y0eUQ+J89d0jFY//s9ei9jVIlkYi8AfOjiixcLJSGNSOAdQ==}engines: {node: '>=18'}cpu: [x64]os: [android]@@ -1952,12 +1931,6 @@ packages:cpu: [arm64]os: [darwin]- '@esbuild/[email protected]':- resolution: {integrity: sha512-B6IeSgZgtEzGC42jsI+YYu9Z3HKRxp8ZT3cqhvliEHovq8HSX2YX8lNocDn79gCKJXOSaEot9MVYky7AKjCs8g==}- engines: {node: '>=12'}- cpu: [arm64]- os: [darwin]-'@esbuild/[email protected]':resolution: {integrity: sha512-4J6IRT+10J3aJH3l1yzEg9y3wkTDgDk7TSDFX+wKFiWjqWp/iCfLIYzGyasx9l0SAFPT1HwSCR+0w/h1ES/MjA==}engines: {node: '>=12'}@@ -1988,8 +1961,8 @@ packages:cpu: [arm64]os: [darwin]- '@esbuild/[email protected]':- resolution: {integrity: sha512-MpM6LUVTXAzOvN4KbjzU/q5smzryuoNjlriAIx+06RpecwCkL9JpenNzpKd2YMzLJFOdPqBpuub6eVRP5IgiSA==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-eESK5yfPNTqpAmDfFWNsOhmIOaQA59tAcF/EfYvo5/QWQCzXn5iUSOnqt3ra3UdzBv073ykTtmeLJZGt3HhA+w==}engines: {node: '>=18'}cpu: [arm64]os: [darwin]@@ -2012,12 +1985,6 @@ packages:cpu: [x64]os: [darwin]- '@esbuild/[email protected]':- resolution: {integrity: sha512-hKoVkKzFiToTgn+41qGhsUJXFlIjxI/jSYeZf3ugemDYZldIXIxhvwN6erJGlX4t5h417iFuheZ7l+YVn05N3A==}- engines: {node: '>=12'}- cpu: [x64]- os: [darwin]-'@esbuild/[email protected]':resolution: {integrity: sha512-tBcXp9KNphnNH0dfhv8KYkZhjc+H3XBkF5DKtswJblV7KlT9EI2+jeA8DgBjp908WEuYll6pF+UStUCfEpdysA==}engines: {node: '>=12'}@@ -2048,8 +2015,8 @@ packages:cpu: [x64]os: [darwin]- '@esbuild/[email protected]':- resolution: {integrity: sha512-5eRPrTX7wFyuWe8FqEFPG2cU0+butQQVNcT4sVipqjLYQjjh8a8+vUTfgBKM88ObB85ahsnTwF7PSIt6PG+QkA==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-Kd8glo7sIZtwOLcPbW0yLpKmBNWMANZhrC1r6K++uDR2zyzb6AeOYtI6udbtabmQpFaxJ8uduXMAo1gs5ozz8A==}engines: {node: '>=18'}cpu: [x64]os: [darwin]@@ -2072,12 +2039,6 @@ packages:cpu: [arm64]os: [freebsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-4aRvFIXmwAcDBw9AueDQ2YnGmz5L6obe5kmPT8Vd+/+x/JMVKCgdcRwH6APrbpNXsPz+K653Qg8HB/oXvXVukA==}- engines: {node: '>=12'}- cpu: [arm64]- os: [freebsd]-'@esbuild/[email protected]':resolution: {integrity: sha512-d3qI41G4SuLiCGCFGUrKsSeTXyWG6yem1KcGZVS+3FYlYhtNoNgYrWcvkOoaqMhwXSMrZRl69ArHsGJ9mYdbbw==}engines: {node: '>=12'}@@ -2108,8 +2069,8 @@ packages:cpu: [arm64]os: [freebsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-mLwm4vXKiQ2UTSX4+ImyiPdiHjiZhIaE9QvC7sw0tZ6HoNMjYAqQpGyui5VRIi5sGd+uWq940gdCbY3VLvsO1w==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-EJiyS70BYybOBpJth3M0KLOus0n+RRMKTYzhYhFeMwp7e/RaajXvP+BWlmEXNk6uk+KAu46j/kaQzr6au+JcIw==}engines: {node: '>=18'}cpu: [arm64]os: [freebsd]@@ -2132,12 +2093,6 @@ packages:cpu: [x64]os: [freebsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-EYoXZ4d8xtBoVN7CEwWY2IN4ho76xjYXqSXMNccFSx2lgqOG/1TBPW0yPx1bJZk94qu3tX0fycJeeQsKovA8gg==}- engines: {node: '>=12'}- cpu: [x64]- os: [freebsd]-'@esbuild/[email protected]':resolution: {integrity: sha512-d+DipyvHRuqEeM5zDivKV1KuXn9WeRX6vqSqIDgwIfPQtwMP4jaDsQsDncjTDDsExT4lR/91OLjRo8bmC1e+Cw==}engines: {node: '>=12'}@@ -2168,8 +2123,8 @@ packages:cpu: [x64]os: [freebsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-6qyyn6TjayJSwGpm8J9QYYGQcRgc90nmfdUb0O7pp1s4lTY+9D0H9O02v5JqGApUyiHOtkz6+1hZNvNtEhbwRQ==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-Q+wSjaLpGxYf7zC0kL0nDlhsfuFkoN+EXrx2KSB33RhinWzejOd6AvgmP5JbkgXKmjhmpfgKZq24pneodYqE8Q==}engines: {node: '>=18'}cpu: [x64]os: [freebsd]@@ -2192,12 +2147,6 @@ packages:cpu: [arm64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-EoTjyYyLuVPfdPLsGVVVC8a0p1BFFvtpQDB/YLEhaXyf/5bczaGeN15QkR+O4S5LeJ92Tqotve7i1jn35qwvdA==}- engines: {node: '>=12'}- cpu: [arm64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-9pb6rBjGvTFNira2FLIWqDk/uaf42sSyLE8j1rnUpuzsODBq7FvpwHYZxQ/It/8b+QOS1RYfqgGFNLRI+qlq2A==}engines: {node: '>=12'}@@ -2228,8 +2177,8 @@ packages:cpu: [arm64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-gq/sjLsOyMT19I8obBISvhoYiZIAaGF8JpeXu1u8yPv8BE5HlWYobmlsfijFIZ9hIVGYkbdFhEqC0NvM4kNO0g==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-xCUgnNYhRD5bb1C1nqrDV1PfkwgbswTTBRbAd8aH5PhYzikdf/ddtsYyMXFfGSsb/6t6QaPSzxtbfAZr9uox4A==}engines: {node: '>=18'}cpu: [arm64]os: [linux]@@ -2252,12 +2201,6 @@ packages:cpu: [arm]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-J5jPms//KhSNv+LO1S1TX1UWp1ucM6N6XuL6ITdKWElCu8wXP72l9MM0zDTzzeikVyqFE6U8YAV9/tFyj0ti+w==}- engines: {node: '>=12'}- cpu: [arm]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-VhLPeR8HTMPccbuWWcEUD1Az68TqaTYyj6nfE4QByZIQEQVWBB8vup8PpR7y1QHL3CpcF6xd5WVBU/+SBEvGTg==}engines: {node: '>=12'}@@ -2288,8 +2231,8 @@ packages:cpu: [arm]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-UHBRgJcmjJv5oeQF8EpTRZs/1knq6loLxTsjc3nxO9eXAPDLcWW55flrMVc97qFPbmZP31ta1AZVUKQzKTzb0g==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-dUOVmAUzuHy2ZOKIHIKHCm58HKzFqd+puLaS424h6I85GlSDRZIA5ycBixb3mFgM0Jdh+ZOSB6KptX30DD8YOQ==}engines: {node: '>=18'}cpu: [arm]os: [linux]@@ -2312,12 +2255,6 @@ packages:cpu: [ia32]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-Thsa42rrP1+UIGaWz47uydHSBOgTUnwBwNq59khgIwktK6x60Hivfbux9iNR0eHCHzOLjLMLfUMLCypBkZXMHA==}- engines: {node: '>=12'}- cpu: [ia32]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-o10utieEkNPFDZFQm9CoP7Tvb33UutoJqg3qKf1PWVeeJhJw0Q347PxMvBgVVFgouYLGIhFYG0UGdBumROyiig==}engines: {node: '>=12'}@@ -2348,8 +2285,8 @@ packages:cpu: [ia32]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-bBYCv9obgW2cBP+2ZWfjYTU+f5cxRoGGQ5SeDbYdFCAZpYWrfjjfYwvUpP8MlKbP0nwZ5gyOU/0aUzZ5HWPuvQ==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-yplPOpczHOO4jTYKmuYuANI3WhvIPSVANGcNUeMlxH4twz/TeXuzEP41tGKNGWJjuMhotpGabeFYGAOU2ummBw==}engines: {node: '>=18'}cpu: [ia32]os: [linux]@@ -2372,12 +2309,6 @@ packages:cpu: [loong64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-LiXdXA0s3IqRRjm6rV6XaWATScKAXjI4R4LoDlvO7+yQqFdlr1Bax62sRwkVvRIrwXxvtYEHHI4dm50jAXkuAA==}- engines: {node: '>=12'}- cpu: [loong64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-PR7sp6R/UC4CFVomVINKJ80pMFlfDfMQMYynX7t1tNTeivQ6XdX5r2XovMmha/VjR1YN/HgHWsVcTRIMkymrgQ==}engines: {node: '>=12'}@@ -2408,8 +2339,8 @@ packages:cpu: [loong64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-SHNGiKtvnU2dBlM5D8CXRFdd+6etgZ9dXfaPCeJtz+37PIUlixvlIhI23L5khKXs3DIzAn9V8v+qb1TRKrgT5w==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-P4BLP5/fjyihmXCELRGrLd793q/lBtKMQl8ARGpDxgzgIKJDRJ/u4r1A/HgpBpKpKZelGct2PGI4T+axcedf6g==}engines: {node: '>=18'}cpu: [loong64]os: [linux]@@ -2432,12 +2363,6 @@ packages:cpu: [mips64el]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-fEnAuj5VGTanfJ07ff0gOA6IPsvrVHLVb6Lyd1g2/ed67oU1eFzL0r9WL7ZzscD+/N6i3dWumGE1Un4f7Amf+w==}- engines: {node: '>=12'}- cpu: [mips64el]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-4BlTqeutE/KnOiTG5Y6Sb/Hw6hsBOZapOVF6njAESHInhlQAghVVZL1ZpIctBOoTFbQyGW+LsVYZ8lSSB3wkjA==}engines: {node: '>=12'}@@ -2468,8 +2393,8 @@ packages:cpu: [mips64el]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-hDDRlzE6rPeoj+5fsADqdUZl1OzqDYow4TB4Y/3PlKBD0ph1e6uPHzIQcv2Z65u2K0kpeByIyAjCmjn1hJgG0Q==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-eRAOV2ODpu6P5divMEMa26RRqb2yUoYsuQQOuFUexUoQndm4MdpXXDBbUoKIc0iPa4aCO7gIhtnYomkn2x+bag==}engines: {node: '>=18'}cpu: [mips64el]os: [linux]@@ -2492,12 +2417,6 @@ packages:cpu: [ppc64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-nYJA2/QPimDQOh1rKWedNOe3Gfc8PabU7HT3iXWtNUbRzXS9+vgB0Fjaqr//XNbd82mCxHzik2qotuI89cfixg==}- engines: {node: '>=12'}- cpu: [ppc64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-rD3KsaDprDcfajSKdn25ooz5J5/fWBylaaXkuotBDGnMnDP1Uv5DLAN/45qfnf3JDYyJv/ytGHQaziHUdyzaAg==}engines: {node: '>=12'}@@ -2528,8 +2447,8 @@ packages:cpu: [ppc64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-tsHu2RRSWzipmUi9UBDEzc0nLc4HtpZEI5Ba+Omms5456x5WaNuiG3u7xh5AO6sipnJ9r4cRWQB2tUjPyIkc6g==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-ZC4jV2p7VbzTlnl8nZKLcBkfzIf4Yad1SJM4ZMKYnJqZFD4rTI+pBG65u8ev4jk3/MPwY9DvGn50wi3uhdaghg==}engines: {node: '>=18'}cpu: [ppc64]os: [linux]@@ -2552,12 +2471,6 @@ packages:cpu: [riscv64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-2MueBrlPQCw5dVJJpQdUYgeqIzDQgw3QtiAHUC4RBz9FXPrskyyU3VI1hw7C0BSKB9OduwSJ79FTCqtGMWqJHg==}- engines: {node: '>=12'}- cpu: [riscv64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-snwmBKacKmwTMmhLlz/3aH1Q9T8v45bKYGE3j26TsaOVtjIag4wLfWSiZykXzXuE1kbCE+zJRmwp+ZbIHinnVg==}engines: {node: '>=12'}@@ -2588,8 +2501,8 @@ packages:cpu: [riscv64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-k4LtpgV7NJQOml/10uPU0s4SAXGnowi5qBSjaLWMojNCUICNu7TshqHLAEbkBdAszL5TabfvQ48kK84hyFzjnw==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-LDDODcFzNtECTrUUbVCs6j9/bDVqy7DDRsuIXJg6so+mFksgwG7ZVnTruYi5V+z3eE5y+BJZw7VvUadkbfg7QA==}engines: {node: '>=18'}cpu: [riscv64]os: [linux]@@ -2612,12 +2525,6 @@ packages:cpu: [s390x]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-+Pil1Nv3Umes4m3AZKqA2anfhJiVmNCYkPchwFJNEJN5QxmTs1uzyy4TvmDrCRNT2ApwSari7ZIgrPeUx4UZDg==}- engines: {node: '>=12'}- cpu: [s390x]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-wcWISOobRWNm3cezm5HOZcYz1sKoHLd8VL1dl309DiixxVFoFe/o8HnwuIwn6sXre88Nwj+VwZUvJf4AFxkyrQ==}engines: {node: '>=12'}@@ -2648,8 +2555,8 @@ packages:cpu: [s390x]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-GRa4IshOdvKY7M/rDpRR3gkiTNp34M0eLTaC1a08gNrh4u488aPhuZOCpkF6+2wl3zAN7L7XIpOFBhnaE3/Q8Q==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-s+w/NOY2k0yC2p9SLen+ymflgcpRkvwwa02fqmAwhBRI3SC12uiS10edHHXlVWwfAagYSY5UpmT/zISXPMW3tQ==}engines: {node: '>=18'}cpu: [s390x]os: [linux]@@ -2672,12 +2579,6 @@ packages:cpu: [x64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg==}- engines: {node: '>=12'}- cpu: [x64]- os: [linux]-'@esbuild/[email protected]':resolution: {integrity: sha512-1MdwI6OOTsfQfek8sLwgyjOXAu+wKhLEoaOLTjbijk6E2WONYpH9ZU2mNtR+lZ2B4uwr+usqGuVfFT9tMtGvGw==}engines: {node: '>=12'}@@ -2708,8 +2609,8 @@ packages:cpu: [x64]os: [linux]- '@esbuild/[email protected]':- resolution: {integrity: sha512-QInHERlqpTTZ4FRB0fROQWXcYRD64lAoiegezDunLpalZMjcUcld3YzZmVJ2H/Cp0wJRZ8Xtjtj0cEHhYc/uUg==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-nQHDz4pXjSDC6UfOE1Fw9Q8d6GCAd9KdvMZpfVGWSJztYCarRgSDfOVBY5xwhQXseiyxapkiSJi/5/ja8mRFFA==}engines: {node: '>=18'}cpu: [x64]os: [linux]@@ -2726,8 +2627,8 @@ packages:cpu: [arm64]os: [netbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-talAIBoY5M8vHc6EeI2WW9d/CkiO9MQJ0IOWX8hrLhxGbro/vBXJvaQXefW2cP0z0nQVTdQ/eNyGFV1GSKrxfw==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-1QaLtOWq0mzK6tzzp0jRN3eccmN3hezey7mhLnzC6oNlJoUJz4nym5ZD7mDnS/LZQgkrhEbEiTn515lPeLpgWA==}engines: {node: '>=18'}cpu: [arm64]os: [netbsd]@@ -2750,12 +2651,6 @@ packages:cpu: [x64]os: [netbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-3ltjQ7n1owJgFbuC61Oj++XhtzmymoCihNFgT84UAmJnxJfm4sYCiSLTXZtE00VWYpPMYc+ZQmB6xbSdVh0JWA==}- engines: {node: '>=12'}- cpu: [x64]- os: [netbsd]-'@esbuild/[email protected]':resolution: {integrity: sha512-K8/DhBxcVQkzYc43yJXDSyjlFeHQJBiowJ0uVL6Tor3jGQfSGHNNJcWxNbOI8v5k82prYqzPuwkzHt3J1T1iZQ==}engines: {node: '>=12'}@@ -2786,8 +2681,8 @@ packages:cpu: [x64]os: [netbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-voZT9Z+tpOxrvfKFyfDYPc4DO4rk06qamv1a/fkuzHpiVBMOhpjK+vBmWM8J1eiB3OLSMFYNaOaBNLXGChf5tg==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-i5Hm68HXHdgv8wkrt+10Bc50zM0/eonPb/a/OFVfB6Qvpiirco5gBA5bz7S2SHuU+Y4LWn/zehzNX14Sp4r27g==}engines: {node: '>=18'}cpu: [x64]os: [netbsd]@@ -2810,8 +2705,8 @@ packages:cpu: [arm64]os: [openbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-dcXYOC6NXOqcykeDlwId9kB6OkPUxOEqU+rkrYVqJbK2hagWOMrsTGsMr8+rW02M+d5Op5NNlgMmjzecaRf7Tg==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-zGAVApJEYTbOC6H/3QBr2mq3upG/LBEXr85/pTtKiv2IXcgKV0RT0QA/hSXZqSvLEpXeIxah7LczB4lkiYhTAQ==}engines: {node: '>=18'}cpu: [arm64]os: [openbsd]@@ -2834,12 +2729,6 @@ packages:cpu: [x64]os: [openbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-RbrfTB9SWsr0kWmb9srfF+L933uMDdu9BIzdA7os2t0TXhCRjrQyCeOt6wVxr79CKD4c+p+YhCj31HBkYcXebw==}- engines: {node: '>=12'}- cpu: [x64]- os: [openbsd]-'@esbuild/[email protected]':resolution: {integrity: sha512-eMpKlV0SThJmmJgiVyN9jTPJ2VBPquf6Kt/nAoo6DgHAoN57K15ZghiHaMvqjCye/uU4X5u3YSMgVBI1h3vKrQ==}engines: {node: '>=12'}@@ -2870,8 +2759,8 @@ packages:cpu: [x64]os: [openbsd]- '@esbuild/[email protected]':- resolution: {integrity: sha512-t/TkWwahkH0Tsgoq1Ju7QfgGhArkGLkF1uYz8nQS/PPFlXbP5YgRpqQR3ARRiC2iXoLTWFxc6DJMSK10dVXluw==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-fpqctI45NnCIDKBH5AXQBsD0NDPbEFczK98hk/aa6HJxbl+UtLkJV2+Bvy5hLSLk3LHmqt0NTkKNso1A9y1a4w==}engines: {node: '>=18'}cpu: [x64]os: [openbsd]@@ -2894,12 +2783,6 @@ packages:cpu: [x64]os: [sunos]- '@esbuild/[email protected]':- resolution: {integrity: sha512-HKjJwRrW8uWtCQnQOz9qcU3mUZhTUQvi56Q8DPTLLB+DawoiQdjsYq+j+D3s9I8VFtDr+F9CjgXKKC4ss89IeA==}- engines: {node: '>=12'}- cpu: [x64]- os: [sunos]-'@esbuild/[email protected]':resolution: {integrity: sha512-2UyFtRC6cXLyejf/YEld4Hajo7UHILetzE1vsRcGL3earZEW77JxrFjH4Ez2qaTiEfMgAXxfAZCm1fvM/G/o8w==}engines: {node: '>=12'}@@ -2930,8 +2813,8 @@ packages:cpu: [x64]os: [sunos]- '@esbuild/[email protected]':- resolution: {integrity: sha512-cfZH1co2+imVdWCjd+D1gf9NjkchVhhdpgb1q5y6Hcv9TP6Zi9ZG/beI3ig8TvwT9lH9dlxLq5MQBBgwuj4xvA==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-ROJhm7d8bk9dMCUZjkS8fgzsPAZEjtRJqCAmVgB0gMrvG7hfmPmz9k1rwO4jSiblFjYmNvbECL9uhaPzONMfgA==}engines: {node: '>=18'}cpu: [x64]os: [sunos]@@ -2954,12 +2837,6 @@ packages:cpu: [arm64]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-URgtR1dJnmGvX864pn1B2YUYNzjmXkuJOIqG2HdU62MVS4EHpU2946OZoTMnRUHklGtJdJZ33QfzdjGACXhn1A==}- engines: {node: '>=12'}- cpu: [arm64]- os: [win32]-'@esbuild/[email protected]':resolution: {integrity: sha512-GRibxoawM9ZCnDxnP3usoUDO9vUkpAxIIZ6GQI+IlVmr5kP3zUq+l17xELTHMWTWzjxa2guPNyrpq1GWmPvcGQ==}engines: {node: '>=12'}@@ -2990,8 +2867,8 @@ packages:cpu: [arm64]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-7Loyjh+D/Nx/sOTzV8vfbB3GJuHdOQyrOryFdZvPHLf42Tk9ivBU5Aedi7iyX+x6rbn2Mh68T4qq1SDqJBQO5Q==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-YWcow8peiHpNBiIXHwaswPnAXLsLVygFwCB3A7Bh5jRkIBFWHGmNQ48AlX4xDvQNoMZlPYzjVOQDYEzWCqufMQ==}engines: {node: '>=18'}cpu: [arm64]os: [win32]@@ -3014,12 +2891,6 @@ packages:cpu: [ia32]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-+ZOE6pUkMOJfmxmBZElNOx72NKpIa/HFOMGzu8fqzQJ5kgf6aTGrcJaFsNiVMH4JKpMipyK+7k0n2UXN7a8YKQ==}- engines: {node: '>=12'}- cpu: [ia32]- os: [win32]-'@esbuild/[email protected]':resolution: {integrity: sha512-HfLOfn9YWmkSKRQqovpnITazdtquEW8/SoHW7pWpuEeguaZI4QnCRW6b+oZTztdBnZOS2hqJ6im/D5cPzBTTlQ==}engines: {node: '>=12'}@@ -3050,8 +2921,8 @@ packages:cpu: [ia32]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-WRJgsz9un0nqZJ4MfhabxaD9Ft8KioqU3JMinOTvobbX6MOSUigSBlogP8QB3uxpJDsFS6yN+3FDBdqE5lg9kg==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-qspTZOIGoXVS4DpNqUYUs9UxVb04khS1Degaw/MnfMe7goQ3lTfQ13Vw4qY/Nj0979BGvMRpAYbs/BAxEvU8ew==}engines: {node: '>=18'}cpu: [ia32]os: [win32]@@ -3074,12 +2945,6 @@ packages:cpu: [x64]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-T1QyPSDCyMXaO3pzBkF96E8xMkiRYbUEZADd29SyPGabqxMViNoii+NcK7eWJAEoU6RZyEm5lVSIjTmcdoB9HA==}- engines: {node: '>=12'}- cpu: [x64]- os: [win32]-'@esbuild/[email protected]':resolution: {integrity: sha512-N49X4lJX27+l9jbLKSqZ6bKNjzQvHaT8IIFUy+YIqmXQdjYCToGWwOItDrfby14c78aDd5NHQl29xingXfCdLQ==}engines: {node: '>=12'}@@ -3110,8 +2975,8 @@ packages:cpu: [x64]os: [win32]- '@esbuild/[email protected]':- resolution: {integrity: sha512-kM3HKb16VIXZyIeVrM1ygYmZBKybX8N4p754bw390wGO3Tf2j4L2/WYL+4suWujpgf6GBYs3jv7TyUivdd05JA==}+ '@esbuild/[email protected]':+ resolution: {integrity: sha512-ICgUR+kPimx0vvRzf+N/7L7tVSQeE3BYY+NhHRHXS1kBuPO7z2+7ea2HbhDyZdTephgvNvKrlDDKUexuCVBVvg==}engines: {node: '>=18'}cpu: [x64]os: [win32]@@ -3204,24 +3069,12 @@ packages:react: ^16 || ^17 || ^18react-dom: ^16 || ^17 || ^18- '@hono/[email protected]':- resolution: {integrity: sha512-vmbuM+HPinjWzPe7FFPWMMQMsbKE9gDPhaH0FFdqbGpkT5lp++tcWDTxwBl5EgS5y6JVgIaCdjeHRfQ4XRBRjQ==}- engines: {node: '>=18.14.1'}- peerDependencies:- hono: ^4-'@hono/[email protected]':resolution: {integrity: sha512-WbTr8PCFNAME0ale62rmmq+E8bGp5a7VPiVNmNT+Ue12GJE3Ax+CWBGtHhR0TzAEiloPvJND3IbjHIgtNtsqhw==}peerDependencies:hono: '>=3.9.0'valibot: ^1.0.0 || ^1.0.0-beta.4 || ^1.0.0-rc- '@hono/[email protected]':- resolution: {integrity: sha512-dSDxaPV70Py8wuIU2QNpoVEIOSzSXZ/6/B/h4xA7eOMz7+AarKTSGV8E6QwrdcCbBLkpqfJ4Q2TmBO0eP1tCBQ==}- peerDependencies:- hono: '>=3.9.0'- zod: ^3.19.1-'@hono/[email protected]':resolution: {integrity: sha512-xIgMYXDyJ4Hj6ekm9T9Y27s080Nl9NXHcJkOvkXPhubOLj8hZkOL8pDnnXfvCf5xEE8Q4oMFenQUZZREUY2gqQ==}peerDependencies:@@ -7414,10 +7267,6 @@ packages:resolution: {integrity: sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==}engines: {node: '>=10'}- resolution: {integrity: sha512-zlnpg0jNcibNrO7GG9IeHH7maWFeCz+Ja1wx/7tZNU5ASSSSZ+/qZciM0/LHCYxSdqv5h2sdbQ/PXYdOuetXvA==}- engines: {node: '>=0.10'}-resolution: {integrity: sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==}engines: {node: '>=8'}@@ -7632,10 +7481,6 @@ packages:resolution: {integrity: sha512-qsjtZ8TLlxCSX2JphMQNhkm3V3zIMQ05WrLkBKBwu50npBbBfiZWIdmSMzBGcdGKfMK19E0PIitTfRFAdMGHXg==}- resolution: {integrity: sha512-yCEafptTtb4bk7GLEQoM8KVJpxAfdBJYaXyzQEgQQQgYrZiDp8SJmGKlYza6CYjEDNstAdNdKA3UuoULlEbS6w==}- engines: {node: '>=12.13'}-resolution: {integrity: sha512-7vsMc/Lty6AGnn7uFpYT56QesI5D2Y/UkgKounk87OP9Z2H9Z8kj6jzcSGAxFmUtDOS0ntK6lbQz+Nsa0Jj6mQ==}@@ -7704,10 +7549,6 @@ packages:resolution: {integrity: sha512-AM6FRWqJyW7pWTvXb4uJj6yvHE7C6UutdhJ5o3XO5NEl5aWFcfnpz8/TuW8qr1+/wfbj50wRvdArnSNjTmjmVw==}- resolution: {integrity: sha512-MOqHvMWF9/9MX6nza0KgvFH4HpMU0EF5uUDXqX/BtxtU8NfB0QzRtJ8Oe/6SuS4kbhyzVJwjd97EA4PKrzJ8bw==}- engines: {node: '>=0.12'}-resolution: {integrity: sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA==}@@ -7942,9 +7783,6 @@ packages:resolution: {integrity: sha512-PJWHUb1RFevKCwaFA9RlG5tCd+FO5iRh9A8HEtkmBH2Li03iJriB6m6JIN4rGz3K3JLawI7/veA1xzRKP6ISBw==}engines: {node: '>=0.3.1'}- resolution: {integrity: sha512-9YVwmMb0wQHQNr5J9m6BSj6fk4pfGITGQOOs+D9Fl+INODWFOfvhIU1hNv6GgR1RBoC/9NJcwu77zShxV0kT7w==}-resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==}engines: {node: '>=8'}@@ -8006,96 +7844,12 @@ packages:resolution: {integrity: sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==}engines: {node: '>=12'}- resolution: {integrity: sha512-vyJTp8+mC+G+5dfgsY+r3ckxlz+QMX40VjPQsZc5gxVAxLmi64TBoVkP54A/pRAXMXsbu2GMMBrZPxNv23waMg==}- engines: {node: '>=0.4.0'}-- resolution: {integrity: sha512-fLTwcnLqtBxGd+51H/dEm9TC0FW6+cIX/RVPyNcitBO77X9+nkogEfMAJebpd/8Yl4KucmePHRYRWWvUlW0rqg==}+ resolution: {integrity: sha512-pcKVT+GbfPA+bUovPIilgVOoq+onNBo/YQBG86sf3/GFHkN6lRJPm1l7dKN0IMAk57RQoIm4GUllRrasLlcaSg==}hasBin: true- resolution: {integrity: sha512-VOiCFsexErmgqvNCOmbzmqDCZzZsHoz6SkWAjTFxsTr1AllKDbDJ2+GgedLXsXMDgpg/ljDG1zItIFeZtiO2LA==}- peerDependencies:- '@aws-sdk/client-rds-data': '>=3'- '@cloudflare/workers-types': '>=3'- '@electric-sql/pglite': '>=0.1.1'- '@libsql/client': '*'- '@neondatabase/serverless': '>=0.1'- '@op-engineering/op-sqlite': '>=2'- '@opentelemetry/api': ^1.4.1- '@planetscale/database': '>=1'- '@types/better-sqlite3': '*'- '@types/pg': '*'- '@types/react': '>=18'- '@types/sql.js': '*'- '@vercel/postgres': '>=0.8.0'- '@xata.io/client': '*'- better-sqlite3: '>=7'- bun-types: '*'- expo-sqlite: '>=13.2.0'- knex: '*'- kysely: '*'- mysql2: '>=2'- pg: '>=8'- postgres: '>=3'- react: '>=18'- sql.js: '>=1'- sqlite3: '>=5'- peerDependenciesMeta:- '@aws-sdk/client-rds-data':- optional: true- '@cloudflare/workers-types':- optional: true- '@electric-sql/pglite':- optional: true- '@libsql/client':- optional: true- '@neondatabase/serverless':- optional: true- '@op-engineering/op-sqlite':- optional: true- '@opentelemetry/api':- optional: true- '@planetscale/database':- optional: true- '@types/better-sqlite3':- optional: true- '@types/pg':- optional: true- '@types/react':- optional: true- '@types/sql.js':- optional: true- '@vercel/postgres':- optional: true- '@xata.io/client':- optional: true- better-sqlite3:- optional: true- bun-types:- optional: true- expo-sqlite:- optional: true- knex:- optional: true- kysely:- optional: true- mysql2:- optional: true- pg:- optional: true- postgres:- optional: true- react:- optional: true- sql.js:- optional: true- sqlite3:- optional: true-- resolution: {integrity: sha512-pS8nNJm2kBNZwrOjTHJfdKkaU+KuUQmV/vk5D57NojDq4FG+0uAYGMulXtYT///HfgsMF0hnFFvu1ezI3OwOkg==}+ resolution: {integrity: sha512-dUcDaZtE/zN4RV/xqGrVSMpnEczxd5cIaoDeor7Zst9wOe/HzC/7eAaulywWGYXdDEc9oBPMjayVEDg0ziTLJA==}peerDependencies:'@aws-sdk/client-rds-data': '>=3''@cloudflare/workers-types': '>=4'@@ -8260,10 +8014,6 @@ packages:resolution: {integrity: sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==}engines: {node: '>=6'}- resolution: {integrity: sha512-dtJUTepzMW3Lm/NPxRf3wP4642UWhjL2sQxc+ym2YMj1m/H2zDNQOlezafzkHwn6sMstjHTwG6iQQsctDW/b1A==}- engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}-resolution: {integrity: sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==}@@ -8321,20 +8071,6 @@ packages:resolution: {integrity: sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==}engines: {node: '>= 0.4'}- resolution: {integrity: sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg==}- engines: {node: '>=0.10'}-- resolution: {integrity: sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==}-- resolution: {integrity: sha512-U9bFFjX8tFiATgtkJ1zg25+KviIXpgRvRHS8sau3GfhVzThRQrOeksPeT0BWW2MNZs1OEWJ1DPXOQMn0KKRkvg==}- engines: {node: '>=0.12'}-- resolution: {integrity: sha512-p5um32HOTO1kP+w7PRnB+5lQ43Z6muuMuIMffvDN8ZB4GcnjLBV6zGStpbASIMk4DCAvEaamhe2zhyCb/QXXsA==}-resolution: {integrity: sha512-4CyanoAudUSBAn5K13H4JhsMH6L9ZP7XbLVe/dKybkxMO7eDyLsT8UHl9TRNrU2Gr9nz+FovfSIjuXWJ81uVwQ==}@@ -8361,11 +8097,6 @@ packages:engines: {node: '>=12'}hasBin: true- resolution: {integrity: sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg==}- engines: {node: '>=12'}- hasBin: true-resolution: {integrity: sha512-WdOOppmUNU+IbZ0PaDiTst80zjnrOkyJNHoKupIcVyU8Lvla3Ugx94VzkQ32Ijqd7UhHJy75gNWDMUekcrSJ6g==}engines: {node: '>=12'}@@ -8391,8 +8122,8 @@ packages:engines: {node: '>=18'}hasBin: true- resolution: {integrity: sha512-16854zccKPnC+toMywC+uKNeYSv+/eXkevRAfwRD/G9Cleq66m8XFIrigkbvauLLlCfDL45Q2cWegSg53gGBnQ==}+ resolution: {integrity: sha512-qKA6Pvai73+M2FtftpNKRxJ78GIjmFXFxd/1DVBqGo/qNhLSfv+G12n9pNoWdytJC8U00TrViOwpjT0zgqQS8Q==}engines: {node: '>=18'}hasBin: true@@ -8591,10 +8322,6 @@ packages:deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options.hasBin: true- resolution: {integrity: sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg==}- engines: {node: '>=0.10'}-resolution: {integrity: sha512-v3JCNCE64umkFpmkFGqzVKsOT0tN1Zr+ueqLZfpV1Ob8e+CEgPWa+OxCoGH3tnhimMKIaBm4m/vaRpJ/krRz2g==}engines: {node: ^10.12.0 || >=12.0.0}@@ -8677,9 +8404,6 @@ packages:resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==}engines: {node: '>= 0.6'}- resolution: {integrity: sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA==}-resolution: {integrity: sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==}engines: {node: '>=6'}@@ -8747,9 +8471,6 @@ packages:resolution: {integrity: sha512-xsZH6PXaER4XoV+NiT7JHp1bJodJVT+cxeSH1G0f0tlT0lJqYuHUP3bUx2HtfTDvOagMINYp8rsqusxud3RXhw==}- resolution: {integrity: sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==}-resolution: {integrity: sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug==}engines: {node: '>=0.10.0'}@@ -9033,6 +8754,9 @@ packages:resolution: {integrity: sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg==}engines: {node: '>= 0.4'}+ resolution: {integrity: sha512-kGzZ3LWWQcGIAmg6iWvXn0ei6WDtV26wzHRMwDSzmAbcXrTEXxHy6IehI6/4eT6VRKyMP1eF1VqwrVUmE/LR7A==}+resolution: {integrity: sha512-k9PN+cFBmaLWtVz29SkUoqU5O0slLuHJXt/2P+tMVFT+phsSGXGkp9t3rQIqdz0e+06EHNGs3oM6ZX1s2zHxRg==}@@ -9079,11 +8803,6 @@ packages:resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==}deprecated: Glob versions prior to v9 are no longer supported- resolution: {integrity: sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==}- engines: {node: '>=12'}- deprecated: Glob versions prior to v9 are no longer supported-resolution: {integrity: sha512-wv/LAoHdRE3BeTGz53FAamhGlPLhlssK45usmGFThIi4XqnBmjKQ16u+RNbP7WvigRZDxUsM0J3gcQ5yicaL0w==}@@ -9149,9 +8868,6 @@ packages:resolution: {integrity: sha512-+ORaOBttdUm1E2Uu/obAyCguiI7MbBvsLTndc3gyK3zU+SYLoZXlyCP9Xgy0gikkGufFLTZXCXD6+4BsufnmHA==}- resolution: {integrity: sha512-Abxw1Lq+TnYiL4BueXqMau222fPSPMFtya8HdpWsz/xVAhifXou71mPh/kY2+08RgFcVccjG3uZHs6K5HAe3zw==}-resolution: {integrity: sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA==}engines: {node: '>=6'}@@ -9231,9 +8947,6 @@ packages:resolution: {integrity: sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==}- resolution: {integrity: sha512-2bsegYkkHO+h/9MGbn6KWcE45cHZgPANo5LXF7EvWdT0yT2EguSVO1nDgU5c8+ZOPwp2vMNa7YFsJhVcDR9Sdg==}-resolution: {integrity: sha512-g+HZqgfbpXdCkme/Cd/mZkV0aV3BZZZSugecH03kl38m/Kmdx8jKjBikpDj2cr+Iynv4KpYEviojNdTJActJAg==}engines: {node: '>=16.0.0'}@@ -9631,9 +9344,6 @@ packages:resolution: {integrity: sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==}- resolution: {integrity: sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==}-resolution: {integrity: sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==}@@ -9975,10 +9685,6 @@ packages:resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==}- resolution: {integrity: sha512-cVnggDrVkAAA3OvFfHpFEhOnmcsUpleEKq4d4O8sQWWSH40MBrWstKigVB1kGrgLWzuom+7rRdaCsnBD6VyObQ==}- hasBin: true-resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==}@@ -10142,9 +9848,6 @@ packages:resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==}- resolution: {integrity: sha512-wIkUCfVKpVsWo3JSZlc+8MB5it+2AN5W8J7YVMST30UrvcQNZ1Okbj+rbVniijTWE6FGYy4XJq/rHkas8qJMLQ==}-resolution: {integrity: sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw==}@@ -10192,9 +9895,6 @@ packages:resolution: {integrity: sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==}engines: {node: '>=12'}- resolution: {integrity: sha512-BpdYkt9EvGl8OfWHDQPISVpcl5xZthb+XPsbELj5AQXxIC8IriDZIQYjBJPEm5rS420sjZ0TLEzRcq5KdBhYrQ==}-resolution: {integrity: sha512-FbAj6lXil6t8z4z3j0E5mfRlPzxkySotzUHwRXjlpRh10vc6AI6WN62ehZj82VG7M20rqogJ0GLwar2Xa05a8Q==}engines: {bun: '>=1.0.0', deno: '>=1.30.0', node: '>=8.0.0'}@@ -10380,10 +10080,6 @@ packages:resolution: {integrity: sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==}- resolution: {integrity: sha512-DGqD7Hjpi/1or4F/aYAspXKNm5Yili0QDAFAY4QYvpqpgiY6+1jOfqpmByzjxbWd/T9mChbCArXAbDAsTm5oXA==}- engines: {node: '>=0.12'}-resolution: {integrity: sha512-/EuHYwAPdLtXwAwSZkh/Gutery6pD2KYd44oQLhAvQp/50mpyduZh8Q7PYHXTCJ+wuXxt7oij2LXyIJOOYFPog==}@@ -10680,10 +10376,6 @@ packages:resolution: {integrity: sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==}engines: {node: '>=10'}- resolution: {integrity: sha512-sBz8G/YjVniEz6lKPNpKxXwazJe4c19fEfV2GDMX6AjFz+MX9uDWIZW8XreVhkFW3fkIdTv/gxWr/Kks5FFAVw==}- engines: {node: '>=10'}-resolution: {integrity: sha512-0jWhJpD/MdhPXwPuiRkCbfYfSKp2qnn2eOc279qI7f+osl/l+prKSrvhg157zSYvx/1nmgn2NqdT6k2Z7zSH9w==}engines: {node: '>=16 || 14 >=14.17'}@@ -10872,9 +10564,6 @@ packages:react: '>=16.x <=18.x'react-dom: '>=16.x <=18.x'- resolution: {integrity: sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==}-resolution: {integrity: sha512-dowFkFTR8v79NPJO4QsBUtxv0g9BrS/phluVpMAt2ku7H+cbcBJlopXjkWlwxrk/xGqMemr7JkGPGemPrLLX7A==}engines: {node: '>=18.17.0'}@@ -12570,10 +12259,6 @@ packages:engines: {node: '>=6.4.0 <13 || >=14'}deprecated: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net- resolution: {integrity: sha512-5JRxVqC8I8NuOUjzBbvVJAKNM8qoVuH0O77h4WInc/qC2q5IreqKxYwgkga3PfA22OayK2ikceb/B26dztPl+Q==}- engines: {node: '>=16'}-resolution: {integrity: sha512-erY3HFDG0dPnhw4U+udPfrzXa4xhSG+n4rxfRuZWCUvjFWwKl+OxWf/7zk50s84/fAAs7vf5QAb9uRa0cCykxw==}engines: {node: '>=6.4.0'}@@ -12690,10 +12375,6 @@ packages:peerDependencies:tslib: ^2- resolution: {integrity: sha512-wFH7+SEAcKfJpfLPkrgMPvvwnEtj8W4IurvEyrKsDleXnKLCDw71w8jltvfLa8Rm4qQxxT4jmDBYbJG/z7qoww==}- engines: {node: '>=0.12'}-resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==}@@ -12977,9 +12658,6 @@ packages:resolution: {integrity: sha512-gd0sGezQYCbWSbkZr75mln4YBidWUN60+devscpLF5mtRDUpiaTvKpBNrdaCvel1NdR2k6vclXybU5fBd2i+nw==}engines: {node: '>= 0.6'}- resolution: {integrity: sha512-8j+1QmAbPvLZow5Qpi6NCaN8FB60p/6x8/vfNqOk/hC+HuvFZhL4+WfekuhQLiqFZXOgQdrs3B+XxEmCc6b3FQ==}-resolution: {integrity: sha512-gEymJYKZtKXzzBzM4jqa9w6Q1Jjm7x2d+sh19AdsD4wqnMPDYyvwpsIc2Q/835kHuo3BEQ7CjelGhfTsoBb2MQ==}engines: {node: '>= 0.4'}@@ -13657,9 +13335,6 @@ packages:resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==}engines: {node: '>=0.10.0'}- resolution: {integrity: sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==}-resolution: {integrity: sha512-zcKufjVFsQMiD3/acg1Ix00HIMCkXCrDxQXYRDn/1AIz3QQGkmbVDwcUk1Ki2jBUoXmBCMsJdycRucgMVEypWg==}engines: {node: '>=16'}@@ -13740,6 +13415,11 @@ packages:engines: {node: '>= 14'}hasBin: true+ resolution: {integrity: sha512-10ULxpnOCQXxJvBgxsn9ptjq6uviG/htZKk9veJGhlqn3w/DxQ631zFF+nlQXLwmImeS5amR2dl2U8sg6U9jsQ==}+ engines: {node: '>= 14'}+ hasBin: true+resolution: {integrity: sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==}engines: {node: '>=6'}@@ -13793,6 +13473,9 @@ packages:resolution: {integrity: sha512-lY7CDW43ECgW9u1TcT3IoXHflywfVqDYze4waEz812jR/bZ8FHDsl7pFQoSZTz5N+2NqRXs8GBwnAwo3ZNxqhQ==}+ resolution: {integrity: sha512-HhY1oqzWCQWuUqvBFnsyrtZRhyPeR7SUGv+C4+MsisMuVfSPx8HpwWqH8tRahSlt6M3PiFAcoeFhZAqIXTxoSg==}+resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==}@@ -14787,7 +14470,7 @@ snapshots:'@planetscale/database': 1.19.0'@react-email/components': 0.0.13(@types/[email protected])([email protected])'@react-email/render': 0.0.11- drizzle-orm: 0.30.9(@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])(@types/[email protected])([email protected])([email protected])+ drizzle-orm: 0.43.1(@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected])nanoid: 5.0.7next: 14.2.9(@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])next-auth: 4.24.8([email protected](@babel/[email protected])(@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected])([email protected]([email protected]))([email protected])@@ -14800,10 +14483,13 @@ snapshots:- '@cloudflare/workers-types'- '@electric-sql/pglite'- '@libsql/client'+ - '@libsql/client-wasm'- '@neondatabase/serverless'- '@op-engineering/op-sqlite'- '@opentelemetry/api'- '@playwright/test'+ - '@prisma/client'+ - '@tidbcloud/serverless'- '@types/better-sqlite3'- '@types/pg'- '@types/react'@@ -14815,12 +14501,14 @@ snapshots:- bun-types- encoding- expo-sqlite+ - gel- knex- kysely- mysql2- nodemailer- pg- postgres+ - prisma- react- react-dom- sass@@ -14831,8 +14519,8 @@ snapshots:dependencies:- '@t3-oss/env-nextjs': 0.12.0([email protected])([email protected]([email protected]))([email protected])- zod: 3.24.2+ '@t3-oss/env-nextjs': 0.12.0([email protected])([email protected]([email protected]))([email protected])+ zod: 3.24.3transitivePeerDependencies:- typescript- valibot@@ -14915,8 +14603,15 @@ snapshots:'@cap/web-api-contract@file:packages/web-api-contract(@types/[email protected])':dependencies:- '@ts-rest/core': 3.52.1(@types/[email protected])([email protected])- zod: 3.24.2+ '@ts-rest/core': 3.52.1(@types/[email protected])([email protected])+ zod: 3.24.3+ transitivePeerDependencies:+ - '@types/node'++ '@cap/web-api-contract@file:packages/web-api-contract(@types/[email protected])':+ dependencies:+ '@ts-rest/core': 3.52.1(@types/[email protected])([email protected])+ zod: 3.24.3transitivePeerDependencies:- '@types/node'@@ -14990,9 +14685,9 @@ snapshots:dependencies:commander: 9.4.1dependencies:- '@contentlayer2/core': 0.5.3([email protected])([email protected])+ '@contentlayer2/core': 0.5.3([email protected])([email protected])'@contentlayer2/utils': 0.5.3clipanion: 3.2.1([email protected])typanion: 3.14.0@@ -15003,9 +14698,9 @@ snapshots:- markdown-wasm- supports-colordependencies:- '@contentlayer2/core': 0.5.3([email protected])([email protected])+ '@contentlayer2/core': 0.5.3([email protected])([email protected])transitivePeerDependencies:- '@effect-ts/otel-node'- acorn@@ -15013,13 +14708,13 @@ snapshots:- markdown-wasm- supports-colordependencies:'@contentlayer2/utils': 0.5.3camel-case: 4.1.2comment-json: 4.2.5gray-matter: 4.0.3- mdx-bundler: 10.0.3([email protected])([email protected])+ mdx-bundler: 10.0.3([email protected])([email protected])rehype-stringify: 10.0.1remark-frontmatter: 5.0.0remark-parse: 11.0.0@@ -15028,15 +14723,15 @@ snapshots:type-fest: 4.26.1unified: 11.0.5optionalDependencies:- esbuild: 0.25.2+ esbuild: 0.25.3transitivePeerDependencies:- '@effect-ts/otel-node'- acorn- supports-colordependencies:- '@contentlayer2/core': 0.5.3([email protected])([email protected])+ '@contentlayer2/core': 0.5.3([email protected])([email protected])'@contentlayer2/utils': 0.5.3chokidar: 3.6.0fast-glob: 3.3.3@@ -15045,8 +14740,8 @@ snapshots:micromatch: 4.0.8ts-pattern: 5.7.0unified: 11.0.5- yaml: 2.7.0- zod: 3.24.2+ yaml: 2.7.1+ zod: 3.24.3transitivePeerDependencies:- '@effect-ts/otel-node'- acorn@@ -15054,10 +14749,10 @@ snapshots:- markdown-wasm- supports-colordependencies:- '@contentlayer2/core': 0.5.3([email protected])([email protected])- '@contentlayer2/source-files': 0.5.3([email protected])([email protected])+ '@contentlayer2/core': 0.5.3([email protected])([email protected])+ '@contentlayer2/source-files': 0.5.3([email protected])([email protected])'@contentlayer2/utils': 0.5.3transitivePeerDependencies:- '@effect-ts/otel-node'@@ -15127,6 +14822,8 @@ snapshots:'@deno/shim-deno-test': 0.5.0which: 4.0.0+ '@drizzle-team/[email protected]': {}+'@effect-ts/[email protected]':dependencies:'@effect-ts/system': 0.57.5@@ -15162,7 +14859,7 @@ snapshots:'@esbuild-kit/[email protected]':dependencies:'@esbuild-kit/core-utils': 3.3.2- get-tsconfig: 4.8.1+ get-tsconfig: 4.10.0'@esbuild-plugins/[email protected]([email protected])':dependencies:@@ -15174,19 +14871,16 @@ snapshots:escape-string-regexp: 4.0.0rollup-plugin-node-polyfills: 0.2.1- '@esbuild-plugins/[email protected]([email protected])':+ '@esbuild-plugins/[email protected]([email protected])':dependencies:'@types/resolve': 1.20.2debug: 4.4.0- esbuild: 0.25.2+ esbuild: 0.25.3escape-string-regexp: 4.0.0resolve: 1.22.8transitivePeerDependencies:- supports-color- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -15202,7 +14896,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -15214,9 +14908,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -15232,7 +14923,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -15244,9 +14935,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -15262,7 +14950,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -15274,9 +14962,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -15292,7 +14977,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -15304,9 +14989,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -15322,7 +15004,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -15334,9 +15016,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -15352,7 +15031,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -15364,9 +15043,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -15382,7 +15058,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -15394,9 +15070,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -15412,7 +15085,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -15424,9 +15097,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -15442,7 +15112,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -15454,9 +15124,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -15472,7 +15139,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -15484,9 +15151,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -15502,7 +15166,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -15514,9 +15178,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -15532,7 +15193,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -15544,9 +15205,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -15562,7 +15220,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -15574,9 +15232,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -15592,7 +15247,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -15604,9 +15259,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -15622,7 +15274,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -15634,9 +15286,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -15652,7 +15301,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -15664,9 +15313,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -15682,7 +15328,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -15691,7 +15337,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -15703,9 +15349,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -15721,7 +15364,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -15733,7 +15376,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -15745,9 +15388,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -15763,7 +15403,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -15775,9 +15415,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -15793,7 +15430,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -15805,9 +15442,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -15823,7 +15457,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -15835,9 +15469,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -15853,7 +15484,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@esbuild/[email protected]':@@ -15865,9 +15496,6 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':- optional: true-'@esbuild/[email protected]':optional: true@@ -15883,7 +15511,7 @@ snapshots:'@esbuild/[email protected]':optional: true- '@esbuild/[email protected]':+ '@esbuild/[email protected]':optional: true'@eslint-community/[email protected]([email protected])':@@ -15990,20 +15618,11 @@ snapshots:react: 18.3.1react-dom: 18.3.1([email protected])- '@hono/[email protected]([email protected])':- dependencies:- hono: 4.7.4-dependencies:hono: 4.7.1valibot: 1.0.0-rc.1([email protected])- dependencies:- hono: 4.7.4- zod: 3.24.2-dependencies:hono: 4.7.1@@ -16441,11 +16060,11 @@ snapshots:'@planetscale/database': 1.19.0mysql2: 3.11.3dependencies:'@mdx-js/mdx': 3.1.0([email protected])'@types/unist': 3.0.3- esbuild: 0.25.2+ esbuild: 0.25.3source-map: 0.7.4vfile: 6.0.3vfile-message: 4.0.2@@ -16526,8 +16145,8 @@ snapshots:express-rate-limit: 7.5.0([email protected])pkce-challenge: 4.1.0raw-body: 3.0.0- zod: 3.24.2- zod-to-json-schema: 3.24.3([email protected])+ zod: 3.24.3+ zod-to-json-schema: 3.24.3([email protected])transitivePeerDependencies:- supports-color@@ -19207,11 +18826,11 @@ snapshots:dependencies:solid-js: 1.9.3- '@solidjs/[email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected](@planetscale/[email protected])(@types/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected]))([email protected])':+ '@solidjs/[email protected](@testing-library/[email protected])(@types/[email protected])([email protected])([email protected])([email protected])([email protected](@planetscale/[email protected])(@types/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))([email protected](@types/[email protected])([email protected])([email protected])([email protected]))([email protected])':dependencies:- '@tanstack/server-functions-plugin': 1.114.30(@types/[email protected])([email protected])([email protected])([email protected])- '@vinxi/plugin-directives': 0.5.0([email protected](@planetscale/[email protected])(@types/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))- '@vinxi/server-components': 0.5.0([email protected](@planetscale/[email protected])(@types/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ '@tanstack/server-functions-plugin': 1.114.30(@types/[email protected])([email protected])([email protected])([email protected])+ '@vinxi/plugin-directives': 0.5.0([email protected](@planetscale/[email protected])(@types/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ '@vinxi/server-components': 0.5.0([email protected](@planetscale/[email protected])(@types/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))defu: 6.1.4error-stack-parser: 2.1.4html-to-image: 1.11.11@@ -19222,8 +18841,8 @@ snapshots:source-map-js: 1.2.1terracotta: 1.0.6([email protected])tinyglobby: 0.2.12- vinxi: 0.5.3(@planetscale/[email protected])(@types/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])- vite-plugin-solid: 2.11.6(@testing-library/[email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ vinxi: 0.5.3(@planetscale/[email protected])(@types/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vite-plugin-solid: 2.11.6(@testing-library/[email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))transitivePeerDependencies:- '@testing-library/jest-dom'- '@types/node'@@ -19366,13 +18985,13 @@ snapshots:react: 18.3.1react-dom: 18.3.1([email protected])- '@storybook/[email protected]([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))':+ '@storybook/[email protected]([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))':dependencies:'@storybook/csf-plugin': 9.0.0-beta.6([email protected])browser-assert: 1.2.1storybook: 8.3.3ts-dedent: 2.2.0'@storybook/[email protected]':dependencies:@@ -19474,6 +19093,12 @@ snapshots:valibot: 1.0.0-rc.1([email protected])zod: 3.24.2+ '@t3-oss/[email protected]([email protected])([email protected]([email protected]))([email protected])':+ optionalDependencies:+ typescript: 5.7.2+ valibot: 1.0.0-rc.1([email protected])+ zod: 3.24.3+'@t3-oss/[email protected]([email protected])([email protected]([email protected]))([email protected])':dependencies:'@t3-oss/env-core': 0.12.0([email protected])([email protected]([email protected]))([email protected])@@ -19482,6 +19107,14 @@ snapshots:valibot: 1.0.0-rc.1([email protected])zod: 3.24.2+ '@t3-oss/[email protected]([email protected])([email protected]([email protected]))([email protected])':+ dependencies:+ '@t3-oss/env-core': 0.12.0([email protected])([email protected]([email protected]))([email protected])+ optionalDependencies:+ typescript: 5.7.2+ valibot: 1.0.0-rc.1([email protected])+ zod: 3.24.3+'@tailwindcss/[email protected]([email protected]([email protected](@types/[email protected])([email protected])))':dependencies:lodash.castarray: 4.4.0@@ -19498,7 +19131,7 @@ snapshots:postcss-selector-parser: 6.0.10- '@tanstack/[email protected](@types/[email protected])([email protected])([email protected])([email protected])':+ '@tanstack/[email protected](@types/[email protected])([email protected])([email protected])([email protected])':dependencies:'@babel/code-frame': 7.26.2'@babel/core': 7.26.10@@ -19511,7 +19144,7 @@ snapshots:babel-dead-code-elimination: 1.0.10dedent: 1.5.3tiny-invariant: 1.3.3transitivePeerDependencies:- '@types/node'- babel-plugin-macros@@ -19554,7 +19187,7 @@ snapshots:ansis: 3.17.0diff: 7.0.0- '@tanstack/[email protected](@types/[email protected])([email protected])([email protected])([email protected])':+ '@tanstack/[email protected](@types/[email protected])([email protected])([email protected])([email protected])':dependencies:'@babel/code-frame': 7.26.2'@babel/core': 7.26.10@@ -19563,7 +19196,7 @@ snapshots:'@babel/template': 7.27.0'@babel/traverse': 7.27.0'@babel/types': 7.27.0- '@tanstack/directive-functions-plugin': 1.114.30(@types/[email protected])([email protected])([email protected])([email protected])+ '@tanstack/directive-functions-plugin': 1.114.30(@types/[email protected])([email protected])([email protected])([email protected])babel-dead-code-elimination: 1.0.10dedent: 1.5.3tiny-invariant: 1.3.3@@ -19776,11 +19409,21 @@ snapshots:'@types/node': 20.16.9zod: 3.24.2+ optionalDependencies:+ '@types/node': 20.16.9+ zod: 3.24.3+optionalDependencies:'@types/node': 22.12.0zod: 3.24.2+ optionalDependencies:+ '@types/node': 22.12.0+ zod: 3.24.3+'@tsconfig/[email protected]': {}'@tsconfig/[email protected]': {}@@ -20339,7 +19982,7 @@ snapshots:untun: 0.1.3uqr: 0.1.2- '@vinxi/[email protected]([email protected](@planetscale/[email protected])(@types/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':+ '@vinxi/[email protected]([email protected](@planetscale/[email protected])(@types/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:'@babel/parser': 7.25.6acorn: 8.14.1@@ -20350,27 +19993,27 @@ snapshots:magicast: 0.2.11recast: 0.23.9tslib: 2.8.1- vinxi: 0.5.3(@planetscale/[email protected])(@types/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vinxi: 0.5.3(@planetscale/[email protected])(@types/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])- '@vinxi/[email protected]([email protected](@planetscale/[email protected])(@types/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':+ '@vinxi/[email protected]([email protected](@planetscale/[email protected])(@types/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':dependencies:- '@vinxi/plugin-directives': 0.5.0([email protected](@planetscale/[email protected])(@types/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))+ '@vinxi/plugin-directives': 0.5.0([email protected](@planetscale/[email protected])(@types/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))acorn: 8.14.1acorn-loose: 8.4.0acorn-typescript: 1.4.13([email protected])astring: 1.9.0magicast: 0.2.11recast: 0.23.9- vinxi: 0.5.3(@planetscale/[email protected])(@types/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])+ vinxi: 0.5.3(@planetscale/[email protected])(@types/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])- '@vitejs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected]))':+ '@vitejs/[email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected]))':dependencies:'@babel/core': 7.25.2'@babel/plugin-transform-react-jsx-self': 7.24.7(@babel/[email protected])'@babel/plugin-transform-react-jsx-source': 7.24.7(@babel/[email protected])'@types/babel__core': 7.20.5react-refresh: 0.14.2transitivePeerDependencies:- supports-color@@ -21268,14 +20911,6 @@ snapshots:- dependencies:- d: 1.0.2- es5-ext: 0.10.64- es6-iterator: 2.0.3- memoizee: 0.4.17- timers-ext: 0.1.8-dependencies:restore-cursor: 3.1.0@@ -21423,13 +21058,13 @@ snapshots:dependencies:- '@contentlayer2/cli': 0.5.3([email protected])([email protected])- '@contentlayer2/client': 0.5.3([email protected])([email protected])- '@contentlayer2/core': 0.5.3([email protected])([email protected])- '@contentlayer2/source-files': 0.5.3([email protected])([email protected])- '@contentlayer2/source-remote-files': 0.5.3([email protected])([email protected])+ '@contentlayer2/cli': 0.5.3([email protected])([email protected])+ '@contentlayer2/client': 0.5.3([email protected])([email protected])+ '@contentlayer2/core': 0.5.3([email protected])([email protected])+ '@contentlayer2/source-files': 0.5.3([email protected])([email protected])+ '@contentlayer2/source-remote-files': 0.5.3([email protected])([email protected])'@contentlayer2/utils': 0.5.3transitivePeerDependencies:- '@effect-ts/otel-node'@@ -21463,10 +21098,6 @@ snapshots:'@types/cookie': 0.6.0cookie: 0.6.0- dependencies:- is-what: 4.1.16-@@ -21540,11 +21171,6 @@ snapshots:- dependencies:- es5-ext: 0.10.64- type: 2.7.3-@@ -21581,9 +21207,9 @@ snapshots:- [email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]):+ [email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]):optionalDependencies:- drizzle-orm: 0.42.0(@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected])+ drizzle-orm: 0.43.1(@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected])mysql2: 3.11.3@@ -21723,10 +21349,6 @@ snapshots:- dependencies:- heap: 0.2.7-dependencies:path-type: 4.0.0@@ -21784,48 +21406,21 @@ snapshots:- dependencies:- wordwrap: 1.0.0-dependencies:+ '@drizzle-team/brocli': 0.10.2'@esbuild-kit/esm-loader': 2.6.5- '@hono/node-server': 1.14.1([email protected])- '@hono/zod-validator': 0.2.2([email protected])([email protected])- camelcase: 7.0.1- chalk: 5.3.0- commander: 9.4.1- env-paths: 3.0.0- esbuild: 0.19.12- esbuild-register: 3.6.0([email protected])- glob: 8.1.0- hanji: 0.0.5- hono: 4.7.4- json-diff: 0.9.0- minimatch: 7.4.6- semver: 7.7.1- superjson: 2.2.2- zod: 3.24.2+ esbuild: 0.25.3+ esbuild-register: 3.6.0([email protected])transitivePeerDependencies:- supports-color- [email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])(@types/[email protected])([email protected])([email protected]):- optionalDependencies:- '@cloudflare/workers-types': 4.20250214.0- '@opentelemetry/api': 1.9.0- '@planetscale/database': 1.19.0- '@types/react': 18.3.9- mysql2: 3.11.3- react: 18.3.1-- [email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]):+ [email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]):optionalDependencies:'@cloudflare/workers-types': 4.20250214.0'@opentelemetry/api': 1.9.0'@planetscale/database': 1.19.0mysql2: 3.11.3- optional: truedependencies:@@ -21893,8 +21488,6 @@ snapshots:- [email protected]: {}-@@ -22019,31 +21612,6 @@ snapshots:is-date-object: 1.0.5is-symbol: 1.0.4- dependencies:- es6-iterator: 2.0.3- es6-symbol: 3.1.4- esniff: 2.0.1- next-tick: 1.1.0-- dependencies:- d: 1.0.2- es5-ext: 0.10.64- es6-symbol: 3.1.4-- dependencies:- d: 1.0.2- ext: 1.7.0-- dependencies:- d: 1.0.2- es5-ext: 0.10.64- es6-iterator: 2.0.3- es6-symbol: 3.1.4-dependencies:'@types/estree-jsx': 1.0.5@@ -22058,17 +21626,17 @@ snapshots:esast-util-from-estree: 2.0.0vfile-message: 4.0.2dependencies:debug: 4.4.0- esbuild: 0.19.12+ esbuild: 0.23.1transitivePeerDependencies:- supports-colordependencies:debug: 4.4.0- esbuild: 0.23.1+ esbuild: 0.25.3transitivePeerDependencies:- supports-color@@ -22147,32 +21715,6 @@ snapshots:'@esbuild/win32-ia32': 0.18.20'@esbuild/win32-x64': 0.18.20- optionalDependencies:- '@esbuild/aix-ppc64': 0.19.12- '@esbuild/android-arm': 0.19.12- '@esbuild/android-arm64': 0.19.12- '@esbuild/android-x64': 0.19.12- '@esbuild/darwin-arm64': 0.19.12- '@esbuild/darwin-x64': 0.19.12- '@esbuild/freebsd-arm64': 0.19.12- '@esbuild/freebsd-x64': 0.19.12- '@esbuild/linux-arm': 0.19.12- '@esbuild/linux-arm64': 0.19.12- '@esbuild/linux-ia32': 0.19.12- '@esbuild/linux-loong64': 0.19.12- '@esbuild/linux-mips64el': 0.19.12- '@esbuild/linux-ppc64': 0.19.12- '@esbuild/linux-riscv64': 0.19.12- '@esbuild/linux-s390x': 0.19.12- '@esbuild/linux-x64': 0.19.12- '@esbuild/netbsd-x64': 0.19.12- '@esbuild/openbsd-x64': 0.19.12- '@esbuild/sunos-x64': 0.19.12- '@esbuild/win32-arm64': 0.19.12- '@esbuild/win32-ia32': 0.19.12- '@esbuild/win32-x64': 0.19.12-optionalDependencies:'@esbuild/aix-ppc64': 0.20.2@@ -22308,33 +21850,33 @@ snapshots:'@esbuild/win32-ia32': 0.25.1'@esbuild/win32-x64': 0.25.1optionalDependencies:- '@esbuild/aix-ppc64': 0.25.2- '@esbuild/android-arm': 0.25.2- '@esbuild/android-arm64': 0.25.2- '@esbuild/android-x64': 0.25.2- '@esbuild/darwin-arm64': 0.25.2- '@esbuild/darwin-x64': 0.25.2- '@esbuild/freebsd-arm64': 0.25.2- '@esbuild/freebsd-x64': 0.25.2- '@esbuild/linux-arm': 0.25.2- '@esbuild/linux-arm64': 0.25.2- '@esbuild/linux-ia32': 0.25.2- '@esbuild/linux-loong64': 0.25.2- '@esbuild/linux-mips64el': 0.25.2- '@esbuild/linux-ppc64': 0.25.2- '@esbuild/linux-riscv64': 0.25.2- '@esbuild/linux-s390x': 0.25.2- '@esbuild/linux-x64': 0.25.2- '@esbuild/netbsd-arm64': 0.25.2- '@esbuild/netbsd-x64': 0.25.2- '@esbuild/openbsd-arm64': 0.25.2- '@esbuild/openbsd-x64': 0.25.2- '@esbuild/sunos-x64': 0.25.2- '@esbuild/win32-arm64': 0.25.2- '@esbuild/win32-ia32': 0.25.2- '@esbuild/win32-x64': 0.25.2+ '@esbuild/aix-ppc64': 0.25.3+ '@esbuild/android-arm': 0.25.3+ '@esbuild/android-arm64': 0.25.3+ '@esbuild/android-x64': 0.25.3+ '@esbuild/darwin-arm64': 0.25.3+ '@esbuild/darwin-x64': 0.25.3+ '@esbuild/freebsd-arm64': 0.25.3+ '@esbuild/freebsd-x64': 0.25.3+ '@esbuild/linux-arm': 0.25.3+ '@esbuild/linux-arm64': 0.25.3+ '@esbuild/linux-ia32': 0.25.3+ '@esbuild/linux-loong64': 0.25.3+ '@esbuild/linux-mips64el': 0.25.3+ '@esbuild/linux-ppc64': 0.25.3+ '@esbuild/linux-riscv64': 0.25.3+ '@esbuild/linux-s390x': 0.25.3+ '@esbuild/linux-x64': 0.25.3+ '@esbuild/netbsd-arm64': 0.25.3+ '@esbuild/netbsd-x64': 0.25.3+ '@esbuild/openbsd-arm64': 0.25.3+ '@esbuild/openbsd-x64': 0.25.3+ '@esbuild/sunos-x64': 0.25.3+ '@esbuild/win32-arm64': 0.25.3+ '@esbuild/win32-ia32': 0.25.3+ '@esbuild/win32-x64': 0.25.3@@ -22715,13 +22257,6 @@ snapshots:transitivePeerDependencies:- supports-color- dependencies:- d: 1.0.2- es5-ext: 0.10.64- event-emitter: 0.3.5- type: 2.7.3-dependencies:acorn: 7.4.1@@ -22816,11 +22351,6 @@ snapshots:- dependencies:- d: 1.0.2- es5-ext: 0.10.64-@@ -22954,10 +22484,6 @@ snapshots:- dependencies:- type: 2.7.3-dependencies:is-extendable: 0.1.1@@ -23252,6 +22778,10 @@ snapshots:es-errors: 1.3.0get-intrinsic: 1.2.4+ dependencies:+ resolve-pkg-maps: 1.0.0+dependencies:resolve-pkg-maps: 1.0.0@@ -23322,14 +22852,6 @@ snapshots:once: 1.4.0path-is-absolute: 1.0.1- dependencies:- fs.realpath: 1.0.0- inflight: 1.0.6- inherits: 2.0.4- minimatch: 5.1.6- once: 1.4.0-dependencies:min-document: 2.19.0@@ -23432,11 +22954,6 @@ snapshots:ufo: 1.5.4uncrypto: 0.1.3- dependencies:- lodash.throttle: 4.1.1- sisteransi: 1.0.5-@@ -23578,8 +23095,6 @@ snapshots:dependencies:'@types/hast': 3.0.4- [email protected]: {}-@@ -23928,8 +23443,6 @@ snapshots:- [email protected]: {}-@@ -24462,12 +23975,6 @@ snapshots:- dependencies:- cli-color: 2.0.4- difflib: 0.2.4- dreamopt: 0.8.0-@@ -24623,8 +24130,6 @@ snapshots:- [email protected]: {}-@@ -24666,10 +24171,6 @@ snapshots:- dependencies:- es5-ext: 0.10.64-@@ -25015,13 +24516,13 @@ snapshots:dependencies:'@types/mdast': 4.0.4dependencies:'@babel/runtime': 7.25.6- '@esbuild-plugins/node-resolve': 0.2.2([email protected])+ '@esbuild-plugins/node-resolve': 0.2.2([email protected])'@fal-works/esbuild-plugin-global-externals': 2.1.2- '@mdx-js/esbuild': 3.1.0([email protected])([email protected])- esbuild: 0.25.2+ '@mdx-js/esbuild': 3.1.0([email protected])([email protected])+ esbuild: 0.25.3gray-matter: 4.0.3remark-frontmatter: 5.0.0remark-mdx-frontmatter: 4.0.0@@ -25048,17 +24549,6 @@ snapshots:- dependencies:- d: 1.0.2- es5-ext: 0.10.64- es6-weak-map: 2.0.3- event-emitter: 0.3.5- is-promise: 2.2.2- lru-queue: 0.1.0- next-tick: 1.1.0- timers-ext: 0.1.8-dependencies:map-or-similar: 1.5.0@@ -25634,10 +25124,6 @@ snapshots:dependencies:brace-expansion: 2.0.1- dependencies:- brace-expansion: 2.0.1-dependencies:brace-expansion: 2.0.1@@ -25828,11 +25314,11 @@ snapshots:optionalDependencies:nodemailer: 6.9.15- [email protected]([email protected])([email protected]([email protected])([email protected]))([email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):+ [email protected]([email protected])([email protected]([email protected])([email protected]))([email protected])([email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]):dependencies:- '@contentlayer2/core': 0.5.3([email protected])([email protected])+ '@contentlayer2/core': 0.5.3([email protected])([email protected])'@contentlayer2/utils': 0.5.3- contentlayer2: 0.5.3([email protected])([email protected])+ contentlayer2: 0.5.3([email protected])([email protected])next: 14.2.3(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])react: 18.3.1react-dom: 18.3.1([email protected])@@ -25854,8 +25340,6 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected]: {}-[email protected](@opentelemetry/[email protected])([email protected]([email protected]))([email protected]):dependencies:'@next/env': 14.2.3@@ -25913,7 +25397,7 @@ snapshots:cors: 2.8.5next: 14.2.3(@opentelemetry/[email protected])([email protected]([email protected]))([email protected])- [email protected](@planetscale/[email protected])([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])([email protected])([email protected]):+ [email protected](@planetscale/[email protected])([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])([email protected])([email protected]):dependencies:'@cloudflare/kv-asset-handler': 0.4.0'@netlify/functions': 3.0.4@@ -25935,7 +25419,7 @@ snapshots:cookie-es: 2.0.0croner: 9.0.0crossws: 0.3.4- db0: 0.3.1([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])+ db0: 0.3.1([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])defu: 6.1.4destr: 2.0.3dot-prop: 9.0.0@@ -25981,7 +25465,7 @@ snapshots:unenv: 2.0.0-rc.15unimport: 4.1.3unplugin-utils: 0.2.4- unstorage: 1.15.0(@planetscale/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected])+ unstorage: 1.15.0(@planetscale/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected])untyped: 2.0.0unwasm: 0.3.9youch: 4.1.0-beta.6@@ -27793,9 +27277,9 @@ snapshots:- [email protected]([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])):+ [email protected]([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])):dependencies:- '@storybook/builder-vite': 9.0.0-beta.6([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ '@storybook/builder-vite': 9.0.0-beta.6([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected]))transitivePeerDependencies:- storybook- vite@@ -27991,10 +27475,6 @@ snapshots:transitivePeerDependencies:- supports-color- dependencies:- copy-anything: 3.0.5-dependencies:methods: 1.1.2@@ -28178,11 +27658,6 @@ snapshots:dependencies:tslib: 2.8.1- dependencies:- es5-ext: 0.10.64- next-tick: 1.1.0-@@ -28423,8 +27898,6 @@ snapshots:media-typer: 1.1.0mime-types: 3.0.0- [email protected]: {}-dependencies:call-bind: 1.0.7@@ -28677,11 +28150,11 @@ snapshots:- rollup- webpack-sources- [email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])):+ [email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])):dependencies:fast-glob: 3.3.2unplugin: 1.14.1transitivePeerDependencies:- webpack-sources@@ -28718,7 +28191,7 @@ snapshots:acorn: 8.14.1webpack-virtual-modules: 0.6.2- [email protected](@planetscale/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected]):+ [email protected](@planetscale/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected]):dependencies:anymatch: 3.1.3chokidar: 4.0.3@@ -28730,7 +28203,7 @@ snapshots:ufo: 1.5.4optionalDependencies:'@planetscale/database': 1.19.0- db0: 0.3.1([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])+ db0: 0.3.1([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])ioredis: 5.6.0@@ -28900,7 +28373,7 @@ snapshots:dependencies:global: 4.4.0- [email protected](@planetscale/[email protected])(@types/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):+ [email protected](@planetscale/[email protected])(@types/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]):dependencies:'@babel/core': 7.26.10'@babel/plugin-syntax-jsx': 7.25.9(@babel/[email protected])@@ -28922,7 +28395,7 @@ snapshots:hookable: 5.5.3http-proxy: 1.18.1micromatch: 4.0.8- nitropack: 2.11.8(@planetscale/[email protected])([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])([email protected])([email protected])+ nitropack: 2.11.8(@planetscale/[email protected])([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected])([email protected])([email protected])node-fetch-native: 1.6.4path-to-regexp: 6.3.0pathe: 1.1.2@@ -28933,8 +28406,8 @@ snapshots:ufo: 1.5.4unctx: 2.3.1unenv: 1.10.0- unstorage: 1.15.0(@planetscale/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected])+ unstorage: 1.15.0(@planetscale/[email protected])([email protected]([email protected](@cloudflare/[email protected])(@opentelemetry/[email protected])(@planetscale/[email protected])([email protected]))([email protected]))([email protected])zod: 3.24.2transitivePeerDependencies:- '@azure/app-configuration'@@ -28996,7 +28469,7 @@ snapshots:- supports-color- terser- [email protected](@testing-library/[email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])):+ [email protected](@testing-library/[email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])):dependencies:'@babel/core': 7.25.2'@types/babel__core': 7.20.5@@ -29004,8 +28477,8 @@ snapshots:merge-anything: 5.1.7solid-js: 1.9.3solid-refresh: 0.6.3([email protected])- vitefu: 0.2.5([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ vitefu: 0.2.5([email protected](@types/[email protected])([email protected])([email protected])([email protected]))optionalDependencies:'@testing-library/jest-dom': 6.5.0transitivePeerDependencies:@@ -29014,7 +28487,7 @@ snapshots:- supports-color- utf-8-validate- [email protected](@testing-library/[email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])):+ [email protected](@testing-library/[email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])):dependencies:'@babel/core': 7.25.2'@types/babel__core': 7.20.5@@ -29022,8 +28495,8 @@ snapshots:merge-anything: 5.1.7solid-js: 1.9.3solid-refresh: 0.6.3([email protected])- vitefu: 1.0.6([email protected](@types/[email protected])([email protected])([email protected])([email protected]))+ vitefu: 1.0.6([email protected](@types/[email protected])([email protected])([email protected])([email protected]))optionalDependencies:'@testing-library/jest-dom': 6.5.0transitivePeerDependencies:@@ -29032,24 +28505,24 @@ snapshots:- supports-color- utf-8-validate- [email protected]([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])):+ [email protected]([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])):dependencies:debug: 4.3.7([email protected])globrex: 0.1.2tsconfck: 3.1.3([email protected])optionalDependencies:transitivePeerDependencies:- supports-color- typescript- [email protected]([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])):+ [email protected]([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])):dependencies:debug: 4.3.7([email protected])globrex: 0.1.2tsconfck: 3.1.3([email protected])optionalDependencies:transitivePeerDependencies:- supports-color- typescript@@ -29064,7 +28537,7 @@ snapshots:fsevents: 2.3.3terser: 5.34.0- [email protected](@types/[email protected])([email protected])([email protected])([email protected]):+ [email protected](@types/[email protected])([email protected])([email protected])([email protected]):dependencies:esbuild: 0.24.2postcss: 8.5.3@@ -29074,9 +28547,9 @@ snapshots:fsevents: 2.3.3jiti: 2.4.2terser: 5.34.0- yaml: 2.7.0+ yaml: 2.7.1- [email protected](@types/[email protected])([email protected])([email protected])([email protected]):+ [email protected](@types/[email protected])([email protected])([email protected])([email protected]):dependencies:esbuild: 0.24.2postcss: 8.5.3@@ -29086,15 +28559,15 @@ snapshots:fsevents: 2.3.3jiti: 2.4.2terser: 5.34.0- yaml: 2.7.0+ yaml: 2.7.1- [email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])):+ [email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])):optionalDependencies:- [email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])):+ [email protected]([email protected](@types/[email protected])([email protected])([email protected])([email protected])):optionalDependencies:dependencies:@@ -29245,8 +28718,6 @@ snapshots:- [email protected]: {}-optionalDependencies:'@cloudflare/workerd-darwin-64': 1.20250204.0@@ -29321,6 +28792,8 @@ snapshots:+ [email protected]: {}+dependencies:camelcase: 5.3.1@@ -29372,10 +28845,16 @@ snapshots:dependencies:zod: 3.24.2+ dependencies:+ zod: 3.24.3++ [email protected]: {}+