@prisma/orm-extension-supabase 8.0.0-rc.1-dev.46 → 8.0.0-rc.10-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- {"version":3,"file":"roles-CuXa3u9g-bhk28dKK.d.mts","names":[],"sources":["../../../../3-extensions/supabase/dist/roles-CuXa3u9g.d.mts"],"mappings":";;;;;;;;;;;cAUc,qDAAqD;WACxD;WACA;WACA;;KAEN,uBAAuB;;;;;;;;cAQd,oDAAoD;cACpD,6DAA6D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"roles-D5vC3rNp-tYQlvifU.mjs","names":[],"sources":["../../../../3-extensions/supabase/dist/roles-D5vC3rNp.mjs"],"sourcesContent":["import { role } from \"@internal/postgres/contract-builder\";\nimport { enumType, member } from \"@internal/sql-contract-ts/contract-builder\";\n//#region src/contract/roles.ts\n/**\n* Supabase's three standard Postgres roles as a Prisma Next enum — the\n* single source of truth for the role vocabulary. Runtime-only: the shipped\n* contract declares the roles via PSL `role` blocks inside an explicit\n* `namespace unbound { }` block, not through this handle. The runtime\n* (`supabase-runtime.ts`, `supabase.ts`) derives its role type from\n* `SupabaseRole.values` and reads member values through `SupabaseRole.members`\n* instead of raw string literals.\n*/\nconst SupabaseRole = enumType(\"SupabaseRole\", {\n\tcodecId: \"pg/text@1\",\n\tnativeType: \"text\"\n}, member(\"Anon\", \"anon\"), member(\"Authenticated\", \"authenticated\"), member(\"ServiceRole\", \"service_role\"));\n/** The JWT claim key Supabase stores the Postgres role under. */\nconst SUPABASE_JWT_ROLE_CLAIM = \"role\";\nfunction isSupabaseRole(value) {\n\treturn SupabaseRole.values.some((role) => role === value);\n}\n/**\n* Supabase's runtime request roles as `role()` reference handles, for use in\n* a policy's `roles:` list (e.g. `policySelect(Profile, { roles: [anon], … })`).\n* These reference the same role identities `SupabaseRole` declares — Supabase\n* provisions them on every project; referencing one lowers to its bare name,\n* matching PSL's bare-identifier pass-through.\n*/\nconst anon = role(\"anon\");\nconst authenticated = role(\"authenticated\");\n//#endregion\nexport { isSupabaseRole as a, authenticated as i, SupabaseRole as n, anon as r, SUPABASE_JWT_ROLE_CLAIM as t };\n\n//# sourceMappingURL=roles-D5vC3rNp.mjs.map"],"mappings":";;;;;;;;;;;;AAYA,MAAM,eAAe,SAAS,gBAAgB;CAC7C,SAAS;CACT,YAAY;AACb,GAAG,OAAO,QAAQ,MAAM,GAAG,OAAO,iBAAiB,eAAe,GAAG,OAAO,eAAe,cAAc,CAAC;;AAE1G,MAAM,0BAA0B;AAChC,SAAS,eAAe,OAAO;CAC9B,OAAO,aAAa,OAAO,MAAM,SAAS,SAAS,KAAK;AACzD;;;;;;;;AAQA,MAAM,OAAO,KAAK,MAAM;AACxB,MAAM,gBAAgB,KAAK,eAAe"}