diff --git a/apps/web/src/components/features/sidebars/SidebarPrimary.tsx b/apps/web/src/components/features/sidebars/SidebarPrimary.tsx index 9aae0a6c5..a6c6dfee8 100644 --- a/apps/web/src/components/features/sidebars/SidebarPrimary.tsx +++ b/apps/web/src/components/features/sidebars/SidebarPrimary.tsx @@ -130,7 +130,7 @@ const adminTools = (currentParentRoute: BusterRoutes): ISidebarGroup => ({ const tryGroup = ( onClickInvitePeople: () => void, onClickLeaveFeedback: () => void, - isAdmin: boolean + showInvitePeople: boolean ): ISidebarGroup => ({ label: 'Try', id: 'try', @@ -141,7 +141,7 @@ const tryGroup = ( route: null, id: 'invite-people', onClick: onClickInvitePeople, - show: isAdmin + show: showInvitePeople }, { label: 'Leave feedback', @@ -157,6 +157,7 @@ export const SidebarPrimary = React.memo(() => { const isAdmin = useUserConfigContextSelector((x) => x.isAdmin); const isUserRegistered = useUserConfigContextSelector((x) => x.isUserRegistered); const currentParentRoute = useAppLayoutContextSelector((x) => x.currentParentRoute); + const isAnonymousUser = useUserConfigContextSelector((state) => state.userOrganizations); const onToggleInviteModal = useInviteModalStore((s) => s.onToggleInviteModal); const onOpenContactSupportModal = useContactSupportModalStore((s) => s.onOpenContactSupportModal); diff --git a/packages/server-shared/src/organization/organization.types.ts b/packages/server-shared/src/organization/organization.types.ts index 2baede804..3ff3b00a7 100644 --- a/packages/server-shared/src/organization/organization.types.ts +++ b/packages/server-shared/src/organization/organization.types.ts @@ -1,14 +1,21 @@ +import type { organizations } from '@buster/database'; import { z } from 'zod'; +import type { IsEqual } from '../type-utilities'; import { OrganizationRoleSchema } from './roles.types'; export const OrganizationSchema = z.object({ - created_at: z.string(), id: z.string(), - deleted_at: z.string().nullable(), - domain: z.string(), name: z.string(), - updated_at: z.string(), - role: OrganizationRoleSchema, + domain: z.string().nullable(), + createdAt: z.string(), + updatedAt: z.string(), + deletedAt: z.string().nullable(), + paymentRequired: z.boolean(), + domains: z.array(z.string()).nullable(), + restrictNewUserInvitations: z.boolean(), + defaultRole: OrganizationRoleSchema, }); export type Organization = z.infer; + +type _DBEqualityCheck = IsEqual; diff --git a/packages/server-shared/src/type-utilities/index.ts b/packages/server-shared/src/type-utilities/index.ts new file mode 100644 index 000000000..b9651311c --- /dev/null +++ b/packages/server-shared/src/type-utilities/index.ts @@ -0,0 +1,10 @@ +/* +IsEqual is a type utility that checks if two types are equal. +It's used to ensure that the a database type is equal to the a type. Like when we have a type that is a database type and we want to ensure that it's equal to the schema we have. + +Example: +type _DBEqualityCheck = IsEqual; // This will cause a compile error if Organization and organizations.$inferSelect don't match. + +This will cause a compile error if Organization and OrganizationDB don't match. +*/ +export type IsEqual = [T] extends [U] ? ([U] extends [T] ? true : false) : false; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0235b04d0..59f25cab6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -32,7 +32,7 @@ catalogs: version: 0.44.2 hono: specifier: ^4.8.0 - version: 4.8.3 + version: 4.8.4 pg: specifier: ^8.16.2 version: 8.16.3 @@ -53,7 +53,7 @@ catalogs: version: 3.2.4 zod: specifier: ^3.25.0 - version: 3.25.75 + version: 3.25.1 importers: @@ -128,25 +128,25 @@ importers: version: link:../../packages/vitest-config '@hono/zod-validator': specifier: ^0.7.0 - version: 0.7.0(hono@4.8.3)(zod@3.25.75) + version: 0.7.0(hono@4.8.4)(zod@3.25.1) '@supabase/supabase-js': specifier: 'catalog:' version: 2.50.2 '@trigger.dev/sdk': specifier: 'catalog:' - version: 4.0.0-v4-beta.22(ai@4.3.16(react@18.3.1)(zod@3.25.75))(zod@3.25.75) + version: 4.0.0-v4-beta.22(ai@4.3.16(react@18.3.1)(zod@3.25.1))(zod@3.25.1) ai: specifier: 'catalog:' - version: 4.3.16(react@18.3.1)(zod@3.25.75) + version: 4.3.16(react@18.3.1)(zod@3.25.1) drizzle-orm: specifier: 'catalog:' version: 0.44.2(@opentelemetry/api@1.9.0)(@types/pg@8.15.4)(mysql2@3.14.1)(pg@8.16.3)(postgres@3.4.7) hono: specifier: 'catalog:' - version: 4.8.3 + version: 4.8.4 hono-pino: specifier: ^0.9.1 - version: 0.9.1(hono@4.8.3)(pino@9.7.0) + version: 0.9.1(hono@4.8.4)(pino@9.7.0) pino: specifier: ^9.7.0 version: 9.7.0 @@ -158,7 +158,7 @@ importers: version: 8.5.0(jiti@2.4.2)(postcss@8.5.6)(tsx@4.20.3)(typescript@5.8.3)(yaml@2.8.0) zod: specifier: 'catalog:' - version: 3.25.75 + version: 3.25.1 apps/trigger: dependencies: @@ -188,22 +188,22 @@ importers: version: link:../../packages/vitest-config '@mastra/core': specifier: 'catalog:' - version: 0.10.8(openapi-types@12.1.3)(react@18.3.1)(zod@3.25.75) + version: 0.10.8(openapi-types@12.1.3)(react@18.3.1)(zod@3.25.1) '@trigger.dev/sdk': specifier: 'catalog:' - version: 4.0.0-v4-beta.22(ai@4.3.16(react@18.3.1)(zod@3.25.75))(zod@3.25.75) + version: 4.0.0-v4-beta.22(ai@4.3.16(react@18.3.1)(zod@3.25.1))(zod@3.25.1) ai: specifier: 'catalog:' - version: 4.3.16(react@18.3.1)(zod@3.25.75) + version: 4.3.16(react@18.3.1)(zod@3.25.1) braintrust: specifier: 'catalog:' - version: 0.0.209(@aws-sdk/credential-provider-web-identity@3.840.0)(react@18.3.1)(sswr@2.2.0(svelte@5.34.9))(svelte@5.34.9)(vue@3.5.17(typescript@5.8.3))(zod@3.25.75) + version: 0.0.209(@aws-sdk/credential-provider-web-identity@3.840.0)(react@18.3.1)(sswr@2.2.0(svelte@5.34.9))(svelte@5.34.9)(vue@3.5.17(typescript@5.8.3))(zod@3.25.1) vitest: specifier: 'catalog:' version: 3.2.4(@edge-runtime/vm@3.2.0)(@types/debug@4.1.12)(@types/node@24.0.10)(@vitest/ui@3.2.4)(jiti@2.4.2)(jsdom@26.1.0)(lightningcss@1.30.1)(msw@2.10.3(@types/node@24.0.10)(typescript@5.8.3))(sass@1.89.2)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) zod: specifier: 'catalog:' - version: 3.25.75 + version: 3.25.1 devDependencies: '@trigger.dev/build': specifier: 'catalog:' @@ -393,7 +393,7 @@ importers: version: 12.23.3(react-dom@18.3.1(react@18.3.1))(react@18.3.1) hono: specifier: 'catalog:' - version: 4.8.3 + version: 4.8.4 html-react-parser: specifier: ^5.2.5 version: 5.2.5(@types/react@18.3.23)(react@18.3.1) @@ -516,7 +516,7 @@ importers: version: 5.1.4(typescript@5.8.3)(vite@6.3.5(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(sass@1.89.2)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0)) zod: specifier: 'catalog:' - version: 3.25.75 + version: 3.25.1 zustand: specifier: ^5.0.6 version: 5.0.6(@types/react@18.3.23)(react@18.3.1)(use-sync-external-store@1.5.0(react@18.3.1)) @@ -637,13 +637,13 @@ importers: version: 11.1.0 zod: specifier: 'catalog:' - version: 3.25.75 + version: 3.25.1 packages/ai: dependencies: '@ai-sdk/anthropic': specifier: ^1.2.12 - version: 1.2.12(zod@3.25.75) + version: 1.2.12(zod@3.25.1) '@ai-sdk/provider': specifier: ^1.1.3 version: 1.1.3 @@ -673,16 +673,16 @@ importers: version: link:../vitest-config '@mastra/core': specifier: 'catalog:' - version: 0.10.8(openapi-types@12.1.3)(react@18.3.1)(zod@3.25.75) + version: 0.10.8(openapi-types@12.1.3)(react@18.3.1)(zod@3.25.1) '@mastra/loggers': specifier: ^0.10.3 - version: 0.10.3(@mastra/core@0.10.8(openapi-types@12.1.3)(react@18.3.1)(zod@3.25.75)) + version: 0.10.3(@mastra/core@0.10.8(openapi-types@12.1.3)(react@18.3.1)(zod@3.25.1)) ai: specifier: 'catalog:' - version: 4.3.16(react@18.3.1)(zod@3.25.75) + version: 4.3.16(react@18.3.1)(zod@3.25.1) braintrust: specifier: 'catalog:' - version: 0.0.209(@aws-sdk/credential-provider-web-identity@3.840.0)(react@18.3.1)(sswr@2.2.0(svelte@5.34.9))(svelte@5.34.9)(vue@3.5.17(typescript@5.8.3))(zod@3.25.75) + version: 0.0.209(@aws-sdk/credential-provider-web-identity@3.840.0)(react@18.3.1)(sswr@2.2.0(svelte@5.34.9))(svelte@5.34.9)(vue@3.5.17(typescript@5.8.3))(zod@3.25.1) drizzle-orm: specifier: 'catalog:' version: 0.44.2(@opentelemetry/api@1.9.0)(@types/pg@8.15.4)(mysql2@3.14.1)(pg@8.16.3)(postgres@3.4.7) @@ -703,7 +703,7 @@ importers: version: 2.8.0 zod: specifier: 'catalog:' - version: 3.25.75 + version: 3.25.1 packages/data-source: dependencies: @@ -755,7 +755,7 @@ importers: version: 8.15.4 ai: specifier: 'catalog:' - version: 4.3.16(react@18.3.1)(zod@3.25.75) + version: 4.3.16(react@18.3.1)(zod@3.25.1) drizzle-kit: specifier: ^0.31.4 version: 0.31.4 @@ -770,7 +770,7 @@ importers: version: 3.4.7 zod: specifier: 'catalog:' - version: 3.25.75 + version: 3.25.1 packages/rerank: dependencies: @@ -785,7 +785,7 @@ importers: version: 1.10.0 zod: specifier: 'catalog:' - version: 3.25.75 + version: 3.25.1 packages/server-shared: dependencies: @@ -798,10 +798,16 @@ importers: '@buster/vitest-config': specifier: workspace:* version: link:../vitest-config + drizzle-zod: + specifier: ^0.8.2 + version: 0.8.2(drizzle-orm@0.44.2(@opentelemetry/api@1.9.0)(@types/pg@8.15.4)(mysql2@3.14.1)(pg@8.16.3)(postgres@3.4.7))(zod@3.25.1) zod: specifier: ^3.0.0 - version: 3.25.75 + version: 3.25.1 devDependencies: + tsup: + specifier: 'catalog:' + version: 8.5.0(jiti@2.4.2)(postcss@8.5.6)(tsx@4.20.3)(typescript@5.8.3)(yaml@2.8.0) vitest: specifier: 'catalog:' version: 3.2.4(@edge-runtime/vm@3.2.0)(@types/debug@4.1.12)(@types/node@24.0.10)(@vitest/ui@3.2.4)(jiti@2.4.2)(jsdom@26.1.0)(lightningcss@1.30.1)(msw@2.10.3(@types/node@24.0.10)(typescript@5.8.3))(sass@1.89.2)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) @@ -813,7 +819,7 @@ importers: version: 6.13.0 zod: specifier: 'catalog:' - version: 3.25.75 + version: 3.25.1 devDependencies: '@buster/typescript-config': specifier: workspace:* @@ -829,7 +835,7 @@ importers: dependencies: '@ai-sdk/openai': specifier: ^1.3.23 - version: 1.3.23(zod@3.25.75) + version: 1.3.23(zod@3.25.1) '@buster/database': specifier: workspace:* version: link:../database @@ -841,10 +847,10 @@ importers: version: link:../vitest-config ai: specifier: 'catalog:' - version: 4.3.16(react@18.3.1)(zod@3.25.75) + version: 4.3.16(react@18.3.1)(zod@3.25.1) zod: specifier: ^3.0.0 - version: 3.25.75 + version: 3.25.1 packages/supabase: {} @@ -5947,7 +5953,6 @@ packages: bun@1.2.18: resolution: {integrity: sha512-OR+EpNckoJN4tHMVZPaTPxDj2RgpJgJwLruTIFYbO3bQMguLd0YrmkWKYqsiihcLgm2ehIjF/H1RLfZiRa7+qQ==} - cpu: [arm64, x64, aarch64] os: [darwin, linux, win32] hasBin: true @@ -6727,6 +6732,12 @@ packages: sqlite3: optional: true + drizzle-zod@0.8.2: + resolution: {integrity: sha512-9Do/16OjFFNrQDZgvMtxtDDwKWbFOxUAIwNPKX98SfxrP8H18vhN1BvNXbhelLcdgCE7GEaXDJqBjMExSkhpkA==} + peerDependencies: + drizzle-orm: '>=0.36.0' + zod: ^3.25.1 + dt-sql-parser@4.3.1: resolution: {integrity: sha512-WlFB9of+ChwWtc5M222jHGIpzqHx51szLe/11GAwwbA+4hRaVkMpWMf2bbYj4i855edSoTQ52zyLJVOpe+4OVg==} engines: {node: '>=18'} @@ -7633,10 +7644,6 @@ packages: hono: '>=4.0.0' pino: '>=7.1.0' - hono@4.8.3: - resolution: {integrity: sha512-jYZ6ZtfWjzBdh8H/0CIFfCBHaFL75k+KMzaM177hrWWm2TWL39YMYaJgB74uK/niRc866NMlH9B8uCvIo284WQ==} - engines: {node: '>=16.9.0'} - hono@4.8.4: resolution: {integrity: sha512-KOIBp1+iUs0HrKztM4EHiB2UtzZDTBihDtOF5K6+WaJjCPeaW4Q92R8j63jOhvJI5+tZSMuKD9REVEXXY9illg==} engines: {node: '>=16.9.0'} @@ -11334,8 +11341,8 @@ packages: zod@3.23.8: resolution: {integrity: sha512-XBx9AXhXktjUqnepgTiE5flcKIYWi/rme0Eaj+5Y0lftuGBq+jyRu/md4WnuxqgP1ubdpNCsYEYPxrzVHD8d6g==} - zod@3.25.75: - resolution: {integrity: sha512-OhpzAmVzabPOL6C3A3gpAifqr9MqihV/Msx3gor2b2kviCgcb+HM9SEOpMWwwNp9MRunWnhtAKUoo0AHhjyPPg==} + zod@3.25.1: + resolution: {integrity: sha512-bkxUGQiqWDTXHSgqtevYDri5ee2GPC9szPct4pqpzLEpswgDQmuseDz81ZF0AnNu1xsmnBVmbtv/t/WeUIHlpg==} zustand@5.0.6: resolution: {integrity: sha512-ihAqNeUVhe0MAD+X8M5UzqyZ9k3FFZLBTtqo6JLPwV53cbRB/mJwBI0PxcIgqhBBHlEs8G45OTDTMq3gNcLq3A==} @@ -11362,33 +11369,33 @@ snapshots: '@adobe/css-tools@4.4.3': {} - '@ai-sdk/anthropic@1.2.12(zod@3.25.75)': + '@ai-sdk/anthropic@1.2.12(zod@3.25.1)': dependencies: '@ai-sdk/provider': 1.1.3 - '@ai-sdk/provider-utils': 2.2.8(zod@3.25.75) - zod: 3.25.75 + '@ai-sdk/provider-utils': 2.2.8(zod@3.25.1) + zod: 3.25.1 - '@ai-sdk/openai@1.3.23(zod@3.25.75)': + '@ai-sdk/openai@1.3.23(zod@3.25.1)': dependencies: '@ai-sdk/provider': 1.1.3 - '@ai-sdk/provider-utils': 2.2.8(zod@3.25.75) - zod: 3.25.75 + '@ai-sdk/provider-utils': 2.2.8(zod@3.25.1) + zod: 3.25.1 - '@ai-sdk/provider-utils@1.0.22(zod@3.25.75)': + '@ai-sdk/provider-utils@1.0.22(zod@3.25.1)': dependencies: '@ai-sdk/provider': 0.0.26 eventsource-parser: 1.1.2 nanoid: 3.3.11 secure-json-parse: 2.7.0 optionalDependencies: - zod: 3.25.75 + zod: 3.25.1 - '@ai-sdk/provider-utils@2.2.8(zod@3.25.75)': + '@ai-sdk/provider-utils@2.2.8(zod@3.25.1)': dependencies: '@ai-sdk/provider': 1.1.3 nanoid: 3.3.11 secure-json-parse: 2.7.0 - zod: 3.25.75 + zod: 3.25.1 '@ai-sdk/provider@0.0.26': dependencies: @@ -11398,64 +11405,64 @@ snapshots: dependencies: json-schema: 0.4.0 - '@ai-sdk/react@0.0.70(react@18.3.1)(zod@3.25.75)': + '@ai-sdk/react@0.0.70(react@18.3.1)(zod@3.25.1)': dependencies: - '@ai-sdk/provider-utils': 1.0.22(zod@3.25.75) - '@ai-sdk/ui-utils': 0.0.50(zod@3.25.75) + '@ai-sdk/provider-utils': 1.0.22(zod@3.25.1) + '@ai-sdk/ui-utils': 0.0.50(zod@3.25.1) swr: 2.3.4(react@18.3.1) throttleit: 2.1.0 optionalDependencies: react: 18.3.1 - zod: 3.25.75 + zod: 3.25.1 - '@ai-sdk/react@1.2.12(react@18.3.1)(zod@3.25.75)': + '@ai-sdk/react@1.2.12(react@18.3.1)(zod@3.25.1)': dependencies: - '@ai-sdk/provider-utils': 2.2.8(zod@3.25.75) - '@ai-sdk/ui-utils': 1.2.11(zod@3.25.75) + '@ai-sdk/provider-utils': 2.2.8(zod@3.25.1) + '@ai-sdk/ui-utils': 1.2.11(zod@3.25.1) react: 18.3.1 swr: 2.3.4(react@18.3.1) throttleit: 2.1.0 optionalDependencies: - zod: 3.25.75 + zod: 3.25.1 - '@ai-sdk/solid@0.0.54(zod@3.25.75)': + '@ai-sdk/solid@0.0.54(zod@3.25.1)': dependencies: - '@ai-sdk/provider-utils': 1.0.22(zod@3.25.75) - '@ai-sdk/ui-utils': 0.0.50(zod@3.25.75) + '@ai-sdk/provider-utils': 1.0.22(zod@3.25.1) + '@ai-sdk/ui-utils': 0.0.50(zod@3.25.1) transitivePeerDependencies: - zod - '@ai-sdk/svelte@0.0.57(svelte@5.34.9)(zod@3.25.75)': + '@ai-sdk/svelte@0.0.57(svelte@5.34.9)(zod@3.25.1)': dependencies: - '@ai-sdk/provider-utils': 1.0.22(zod@3.25.75) - '@ai-sdk/ui-utils': 0.0.50(zod@3.25.75) + '@ai-sdk/provider-utils': 1.0.22(zod@3.25.1) + '@ai-sdk/ui-utils': 0.0.50(zod@3.25.1) sswr: 2.2.0(svelte@5.34.9) optionalDependencies: svelte: 5.34.9 transitivePeerDependencies: - zod - '@ai-sdk/ui-utils@0.0.50(zod@3.25.75)': + '@ai-sdk/ui-utils@0.0.50(zod@3.25.1)': dependencies: '@ai-sdk/provider': 0.0.26 - '@ai-sdk/provider-utils': 1.0.22(zod@3.25.75) + '@ai-sdk/provider-utils': 1.0.22(zod@3.25.1) json-schema: 0.4.0 secure-json-parse: 2.7.0 - zod-to-json-schema: 3.24.6(zod@3.25.75) + zod-to-json-schema: 3.24.6(zod@3.25.1) optionalDependencies: - zod: 3.25.75 + zod: 3.25.1 - '@ai-sdk/ui-utils@1.2.11(zod@3.25.75)': + '@ai-sdk/ui-utils@1.2.11(zod@3.25.1)': dependencies: '@ai-sdk/provider': 1.1.3 - '@ai-sdk/provider-utils': 2.2.8(zod@3.25.75) - zod: 3.25.75 - zod-to-json-schema: 3.24.6(zod@3.25.75) + '@ai-sdk/provider-utils': 2.2.8(zod@3.25.1) + zod: 3.25.1 + zod-to-json-schema: 3.24.6(zod@3.25.1) - '@ai-sdk/vue@0.0.59(vue@3.5.17(typescript@5.8.3))(zod@3.25.75)': + '@ai-sdk/vue@0.0.59(vue@3.5.17(typescript@5.8.3))(zod@3.25.1)': dependencies: - '@ai-sdk/provider-utils': 1.0.22(zod@3.25.75) - '@ai-sdk/ui-utils': 0.0.50(zod@3.25.75) + '@ai-sdk/provider-utils': 1.0.22(zod@3.25.1) + '@ai-sdk/ui-utils': 0.0.50(zod@3.25.1) swrv: 1.1.0(vue@3.5.17(typescript@5.8.3)) optionalDependencies: vue: 3.5.17(typescript@5.8.3) @@ -11483,10 +11490,10 @@ snapshots: '@csstools/css-tokenizer': 3.0.4 lru-cache: 10.4.3 - '@asteasolutions/zod-to-openapi@6.4.0(zod@3.25.75)': + '@asteasolutions/zod-to-openapi@6.4.0(zod@3.25.1)': dependencies: openapi3-ts: 4.5.0 - zod: 3.25.75 + zod: 3.25.1 '@aws-crypto/crc32@3.0.0': dependencies: @@ -13070,9 +13077,9 @@ snapshots: '@braintrust/core@0.0.89': dependencies: - '@asteasolutions/zod-to-openapi': 6.4.0(zod@3.25.75) + '@asteasolutions/zod-to-openapi': 6.4.0(zod@3.25.1) uuid: 9.0.1 - zod: 3.25.75 + zod: 3.25.1 '@bugsnag/cuid@3.2.1': {} @@ -13484,10 +13491,10 @@ snapshots: protobufjs: 7.5.3 yargs: 17.7.2 - '@hono/zod-validator@0.7.0(hono@4.8.3)(zod@3.25.75)': + '@hono/zod-validator@0.7.0(hono@4.8.4)(zod@3.25.1)': dependencies: - hono: 4.8.3 - zod: 3.25.75 + hono: 4.8.4 + zod: 3.25.1 '@humanwhocodes/config-array@0.13.0': dependencies: @@ -13734,12 +13741,12 @@ snapshots: transitivePeerDependencies: - react - '@mastra/core@0.10.8(openapi-types@12.1.3)(react@18.3.1)(zod@3.25.75)': + '@mastra/core@0.10.8(openapi-types@12.1.3)(react@18.3.1)(zod@3.25.1)': dependencies: '@ai-sdk/provider': 1.1.3 - '@ai-sdk/provider-utils': 2.2.8(zod@3.25.75) - '@ai-sdk/ui-utils': 1.2.11(zod@3.25.75) - '@mastra/schema-compat': 0.10.3(ai@4.3.16(react@18.3.1)(zod@3.25.75))(zod@3.25.75) + '@ai-sdk/provider-utils': 2.2.8(zod@3.25.1) + '@ai-sdk/ui-utils': 1.2.11(zod@3.25.1) + '@mastra/schema-compat': 0.10.3(ai@4.3.16(react@18.3.1)(zod@3.25.1))(zod@3.25.1) '@opentelemetry/api': 1.9.0 '@opentelemetry/auto-instrumentations-node': 0.59.0(@opentelemetry/api@1.9.0)(@opentelemetry/core@2.0.1(@opentelemetry/api@1.9.0)) '@opentelemetry/core': 2.0.1(@opentelemetry/api@1.9.0) @@ -13754,12 +13761,12 @@ snapshots: '@opentelemetry/sdk-trace-node': 2.0.1(@opentelemetry/api@1.9.0) '@opentelemetry/semantic-conventions': 1.34.0 '@sindresorhus/slugify': 2.2.1 - ai: 4.3.16(react@18.3.1)(zod@3.25.75) + ai: 4.3.16(react@18.3.1)(zod@3.25.1) cohere-ai: 7.17.1 date-fns: 3.6.0 dotenv: 16.6.1 hono: 4.8.4 - hono-openapi: 0.4.8(hono@4.8.4)(openapi-types@12.1.3)(zod@3.25.75) + hono-openapi: 0.4.8(hono@4.8.4)(openapi-types@12.1.3)(zod@3.25.1) json-schema: 0.4.0 json-schema-to-zod: 2.6.1 pino: 9.7.0 @@ -13767,8 +13774,8 @@ snapshots: radash: 12.1.1 sift: 17.1.3 xstate: 5.20.1 - zod: 3.25.75 - zod-to-json-schema: 3.24.6(zod@3.25.75) + zod: 3.25.1 + zod-to-json-schema: 3.24.6(zod@3.25.1) transitivePeerDependencies: - '@hono/arktype-validator' - '@hono/effect-validator' @@ -13787,19 +13794,19 @@ snapshots: - valibot - zod-openapi - '@mastra/loggers@0.10.3(@mastra/core@0.10.8(openapi-types@12.1.3)(react@18.3.1)(zod@3.25.75))': + '@mastra/loggers@0.10.3(@mastra/core@0.10.8(openapi-types@12.1.3)(react@18.3.1)(zod@3.25.1))': dependencies: - '@mastra/core': 0.10.8(openapi-types@12.1.3)(react@18.3.1)(zod@3.25.75) + '@mastra/core': 0.10.8(openapi-types@12.1.3)(react@18.3.1)(zod@3.25.1) pino: 9.7.0 pino-pretty: 13.0.0 - '@mastra/schema-compat@0.10.3(ai@4.3.16(react@18.3.1)(zod@3.25.75))(zod@3.25.75)': + '@mastra/schema-compat@0.10.3(ai@4.3.16(react@18.3.1)(zod@3.25.1))(zod@3.25.1)': dependencies: - ai: 4.3.16(react@18.3.1)(zod@3.25.75) + ai: 4.3.16(react@18.3.1)(zod@3.25.1) json-schema: 0.4.0 - zod: 3.25.75 + zod: 3.25.1 zod-from-json-schema: 0.0.5 - zod-to-json-schema: 3.24.6(zod@3.25.75) + zod-to-json-schema: 3.24.6(zod@3.25.1) '@mdx-js/react@3.1.0(@types/react@18.3.23)(react@18.3.1)': dependencies: @@ -13811,8 +13818,8 @@ snapshots: dependencies: axios: 1.10.0 typescript-event-target: 1.1.1 - zod: 3.25.75 - zod-to-json-schema: 3.24.6(zod@3.25.75) + zod: 3.25.1 + zod-to-json-schema: 3.24.6(zod@3.25.1) transitivePeerDependencies: - debug @@ -16552,7 +16559,7 @@ snapshots: - supports-color - utf-8-validate - '@trigger.dev/sdk@4.0.0-v4-beta.22(ai@4.3.16(react@18.3.1)(zod@3.25.75))(zod@3.25.75)': + '@trigger.dev/sdk@4.0.0-v4-beta.22(ai@4.3.16(react@18.3.1)(zod@3.25.1))(zod@3.25.1)': dependencies: '@opentelemetry/api': 1.9.0 '@opentelemetry/api-logs': 0.52.1 @@ -16567,9 +16574,9 @@ snapshots: uncrypto: 0.1.3 uuid: 9.0.1 ws: 8.18.3 - zod: 3.25.75 + zod: 3.25.1 optionalDependencies: - ai: 4.3.16(react@18.3.1)(zod@3.25.75) + ai: 4.3.16(react@18.3.1)(zod@3.25.1) transitivePeerDependencies: - bufferutil - supports-color @@ -17067,14 +17074,14 @@ snapshots: msw: 2.10.3(@types/node@20.19.4)(typescript@5.8.3) vite: 6.3.5(@types/node@20.19.4)(jiti@2.4.2)(lightningcss@1.30.1)(sass@1.89.2)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) - '@vitest/mocker@3.2.4(msw@2.10.3(@types/node@24.0.10)(typescript@5.8.3))(vite@6.3.5(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(sass@1.89.2)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))': + '@vitest/mocker@3.2.4(msw@2.10.3(@types/node@24.0.10)(typescript@5.8.3))(vite@6.3.5(@types/node@20.19.4)(jiti@2.4.2)(lightningcss@1.30.1)(sass@1.89.2)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0))': dependencies: '@vitest/spy': 3.2.4 estree-walker: 3.0.3 magic-string: 0.30.17 optionalDependencies: msw: 2.10.3(@types/node@24.0.10)(typescript@5.8.3) - vite: 6.3.5(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(sass@1.89.2)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) + vite: 6.3.5(@types/node@20.19.4)(jiti@2.4.2)(lightningcss@1.30.1)(sass@1.89.2)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0) '@vitest/pretty-format@2.0.5': dependencies: @@ -17313,39 +17320,39 @@ snapshots: clean-stack: 2.2.0 indent-string: 4.0.0 - ai@3.4.33(react@18.3.1)(sswr@2.2.0(svelte@5.34.9))(svelte@5.34.9)(vue@3.5.17(typescript@5.8.3))(zod@3.25.75): + ai@3.4.33(react@18.3.1)(sswr@2.2.0(svelte@5.34.9))(svelte@5.34.9)(vue@3.5.17(typescript@5.8.3))(zod@3.25.1): dependencies: '@ai-sdk/provider': 0.0.26 - '@ai-sdk/provider-utils': 1.0.22(zod@3.25.75) - '@ai-sdk/react': 0.0.70(react@18.3.1)(zod@3.25.75) - '@ai-sdk/solid': 0.0.54(zod@3.25.75) - '@ai-sdk/svelte': 0.0.57(svelte@5.34.9)(zod@3.25.75) - '@ai-sdk/ui-utils': 0.0.50(zod@3.25.75) - '@ai-sdk/vue': 0.0.59(vue@3.5.17(typescript@5.8.3))(zod@3.25.75) + '@ai-sdk/provider-utils': 1.0.22(zod@3.25.1) + '@ai-sdk/react': 0.0.70(react@18.3.1)(zod@3.25.1) + '@ai-sdk/solid': 0.0.54(zod@3.25.1) + '@ai-sdk/svelte': 0.0.57(svelte@5.34.9)(zod@3.25.1) + '@ai-sdk/ui-utils': 0.0.50(zod@3.25.1) + '@ai-sdk/vue': 0.0.59(vue@3.5.17(typescript@5.8.3))(zod@3.25.1) '@opentelemetry/api': 1.9.0 eventsource-parser: 1.1.2 json-schema: 0.4.0 jsondiffpatch: 0.6.0 secure-json-parse: 2.7.0 - zod-to-json-schema: 3.24.6(zod@3.25.75) + zod-to-json-schema: 3.24.6(zod@3.25.1) optionalDependencies: react: 18.3.1 sswr: 2.2.0(svelte@5.34.9) svelte: 5.34.9 - zod: 3.25.75 + zod: 3.25.1 transitivePeerDependencies: - solid-js - vue - ai@4.3.16(react@18.3.1)(zod@3.25.75): + ai@4.3.16(react@18.3.1)(zod@3.25.1): dependencies: '@ai-sdk/provider': 1.1.3 - '@ai-sdk/provider-utils': 2.2.8(zod@3.25.75) - '@ai-sdk/react': 1.2.12(react@18.3.1)(zod@3.25.75) - '@ai-sdk/ui-utils': 1.2.11(zod@3.25.75) + '@ai-sdk/provider-utils': 2.2.8(zod@3.25.1) + '@ai-sdk/react': 1.2.12(react@18.3.1)(zod@3.25.1) + '@ai-sdk/ui-utils': 1.2.11(zod@3.25.1) '@opentelemetry/api': 1.9.0 jsondiffpatch: 0.6.0 - zod: 3.25.75 + zod: 3.25.1 optionalDependencies: react: 18.3.1 @@ -17696,13 +17703,13 @@ snapshots: dependencies: fill-range: 7.1.1 - braintrust@0.0.209(@aws-sdk/credential-provider-web-identity@3.840.0)(react@18.3.1)(sswr@2.2.0(svelte@5.34.9))(svelte@5.34.9)(vue@3.5.17(typescript@5.8.3))(zod@3.25.75): + braintrust@0.0.209(@aws-sdk/credential-provider-web-identity@3.840.0)(react@18.3.1)(sswr@2.2.0(svelte@5.34.9))(svelte@5.34.9)(vue@3.5.17(typescript@5.8.3))(zod@3.25.1): dependencies: '@ai-sdk/provider': 1.1.3 '@braintrust/core': 0.0.89 '@next/env': 14.2.30 '@vercel/functions': 1.6.0(@aws-sdk/credential-provider-web-identity@3.840.0) - ai: 3.4.33(react@18.3.1)(sswr@2.2.0(svelte@5.34.9))(svelte@5.34.9)(vue@3.5.17(typescript@5.8.3))(zod@3.25.75) + ai: 3.4.33(react@18.3.1)(sswr@2.2.0(svelte@5.34.9))(svelte@5.34.9)(vue@3.5.17(typescript@5.8.3))(zod@3.25.1) argparse: 2.0.1 chalk: 4.1.2 cli-progress: 3.12.0 @@ -17720,8 +17727,8 @@ snapshots: slugify: 1.6.6 source-map: 0.7.4 uuid: 9.0.1 - zod: 3.25.75 - zod-to-json-schema: 3.24.6(zod@3.25.75) + zod: 3.25.1 + zod-to-json-schema: 3.24.6(zod@3.25.1) transitivePeerDependencies: - '@aws-sdk/credential-provider-web-identity' - openai @@ -18489,6 +18496,11 @@ snapshots: pg: 8.16.3 postgres: 3.4.7 + drizzle-zod@0.8.2(drizzle-orm@0.44.2(@opentelemetry/api@1.9.0)(@types/pg@8.15.4)(mysql2@3.14.1)(pg@8.16.3)(postgres@3.4.7))(zod@3.25.1): + dependencies: + drizzle-orm: 0.44.2(@opentelemetry/api@1.9.0)(@types/pg@8.15.4)(mysql2@3.14.1)(pg@8.16.3)(postgres@3.4.7) + zod: 3.25.1 + dt-sql-parser@4.3.1(antlr4ng-cli@1.0.7): dependencies: antlr4-c3: 3.3.7(antlr4ng-cli@1.0.7) @@ -19688,22 +19700,20 @@ snapshots: dependencies: parse-passwd: 1.0.0 - hono-openapi@0.4.8(hono@4.8.4)(openapi-types@12.1.3)(zod@3.25.75): + hono-openapi@0.4.8(hono@4.8.4)(openapi-types@12.1.3)(zod@3.25.1): dependencies: json-schema-walker: 2.0.0 openapi-types: 12.1.3 optionalDependencies: hono: 4.8.4 - zod: 3.25.75 + zod: 3.25.1 - hono-pino@0.9.1(hono@4.8.3)(pino@9.7.0): + hono-pino@0.9.1(hono@4.8.4)(pino@9.7.0): dependencies: defu: 6.1.4 - hono: 4.8.3 + hono: 4.8.4 pino: 9.7.0 - hono@4.8.3: {} - hono@4.8.4: {} html-dom-parser@5.1.1: @@ -23629,7 +23639,7 @@ snapshots: dependencies: '@types/chai': 5.2.2 '@vitest/expect': 3.2.4 - '@vitest/mocker': 3.2.4(msw@2.10.3(@types/node@24.0.10)(typescript@5.8.3))(vite@6.3.5(@types/node@24.0.10)(jiti@2.4.2)(lightningcss@1.30.1)(sass@1.89.2)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0)) + '@vitest/mocker': 3.2.4(msw@2.10.3(@types/node@24.0.10)(typescript@5.8.3))(vite@6.3.5(@types/node@20.19.4)(jiti@2.4.2)(lightningcss@1.30.1)(sass@1.89.2)(terser@5.43.1)(tsx@4.20.3)(yaml@2.8.0)) '@vitest/pretty-format': 3.2.4 '@vitest/runner': 3.2.4 '@vitest/snapshot': 3.2.4 @@ -23998,15 +24008,15 @@ snapshots: zod-error@1.5.0: dependencies: - zod: 3.25.75 + zod: 3.25.1 zod-from-json-schema@0.0.5: dependencies: - zod: 3.25.75 + zod: 3.25.1 - zod-to-json-schema@3.24.6(zod@3.25.75): + zod-to-json-schema@3.24.6(zod@3.25.1): dependencies: - zod: 3.25.75 + zod: 3.25.1 zod-validation-error@1.5.0(zod@3.23.8): dependencies: @@ -24014,7 +24024,7 @@ snapshots: zod@3.23.8: {} - zod@3.25.75: {} + zod@3.25.1: {} zustand@5.0.6(@types/react@18.3.23)(react@18.3.1)(use-sync-external-store@1.5.0(react@18.3.1)): optionalDependencies: