@prisma/composer-prisma-cloud 0.10.0-dev.1 → 0.10.0

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.
@@ -3,7 +3,7 @@ import { blindCast } from "@prisma/composer/casts";
3
3
  import { sqlContractCanonicalizationHooks } from "@prisma/orm-postgres/family-contract/canonicalization-hooks";
4
4
  import { assertDescriptorSelfConsistency } from "@prisma/orm-toolchain/migration-tools/spaces";
5
5
  //#region ../../1-prisma-cloud/2-shared-modules/auth/dist/pack.mjs
6
- var version = "0.10.0-dev.1";
6
+ var version = "0.10.0";
7
7
  var migration_default = {
8
8
  from: null,
9
9
  to: "6bbd4dc1c19c8aa5e0d60c9755e0f8ea07ba1c01d20c48cf3aa7226e4ee7d33f",
@@ -1 +1 @@
1
- {"version":3,"file":"pack.mjs","names":[],"sources":["../../../../1-prisma-cloud/2-shared-modules/auth/dist/pack.mjs"],"sourcesContent":["import { i as contract_default, n as AUTH_PACK_ID, r as AUTH_SCHEMA, t as AUTH_PACK_HEAD_HASH } from \"./constants-C5kLhEQ3.mjs\";\nimport { blindCast } from \"@internal/foundation/casts\";\nimport { sqlContractCanonicalizationHooks } from \"@prisma/orm-postgres/family-contract/canonicalization-hooks\";\nimport { assertDescriptorSelfConsistency } from \"@prisma/orm-toolchain/migration-tools/spaces\";\n//#region package.json\nvar version = \"0.10.0-dev.1\";\n//#endregion\n//#region src/pack/migrations/0001_init/migration.json\nvar migration_default = {\n\tfrom: null,\n\tto: \"6bbd4dc1c19c8aa5e0d60c9755e0f8ea07ba1c01d20c48cf3aa7226e4ee7d33f\",\n\tprovidedInvariants: [],\n\tcreatedAt: \"2026-08-09T14:53:22.378Z\",\n\tmigrationHash: \"fc8e1329d7841a4f14a3d95b14bbf514c8982aee653af4778cff149fb439116f\"\n};\n//#endregion\n//#region src/pack/migrations/0001_init/ops.json\nvar ops_default = [\n\t{\n\t\t\"id\": \"schema.auth\",\n\t\t\"label\": \"Create schema \\\"auth\\\"\",\n\t\t\"operationClass\": \"additive\",\n\t\t\"target\": { \"id\": \"postgres\" },\n\t\t\"precheck\": [],\n\t\t\"execute\": [{\n\t\t\t\"description\": \"Create schema \\\"auth\\\"\",\n\t\t\t\"sql\": \"CREATE SCHEMA IF NOT EXISTS \\\"auth\\\"\",\n\t\t\t\"params\": []\n\t\t}],\n\t\t\"postcheck\": []\n\t},\n\t{\n\t\t\"id\": \"schema.public\",\n\t\t\"label\": \"Create schema \\\"public\\\"\",\n\t\t\"operationClass\": \"additive\",\n\t\t\"target\": { \"id\": \"postgres\" },\n\t\t\"precheck\": [],\n\t\t\"execute\": [{\n\t\t\t\"description\": \"Create schema \\\"public\\\"\",\n\t\t\t\"sql\": \"CREATE SCHEMA IF NOT EXISTS \\\"public\\\"\",\n\t\t\t\"params\": []\n\t\t}],\n\t\t\"postcheck\": []\n\t},\n\t{\n\t\t\"id\": \"table.account\",\n\t\t\"label\": \"Create table \\\"account\\\"\",\n\t\t\"summary\": \"Creates table \\\"account\\\"\",\n\t\t\"operationClass\": \"additive\",\n\t\t\"target\": {\n\t\t\t\"id\": \"postgres\",\n\t\t\t\"details\": {\n\t\t\t\t\"schema\": \"auth\",\n\t\t\t\t\"objectType\": \"table\",\n\t\t\t\t\"name\": \"account\"\n\t\t\t}\n\t\t},\n\t\t\"precheck\": [{\n\t\t\t\"description\": \"ensure table \\\"account\\\" does not exist\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"account\\\"\"]\n\t\t}],\n\t\t\"execute\": [{\n\t\t\t\"description\": \"create table \\\"account\\\"\",\n\t\t\t\"sql\": \"CREATE TABLE \\\"auth\\\".\\\"account\\\" (\\n \\\"accessToken\\\" text,\\n \\\"accessTokenExpiresAt\\\" \\\"timestamptz\\\",\\n \\\"accountId\\\" text NOT NULL,\\n \\\"createdAt\\\" \\\"timestamptz\\\" DEFAULT (now()) NOT NULL,\\n \\\"id\\\" text NOT NULL,\\n \\\"idToken\\\" text,\\n \\\"password\\\" text,\\n \\\"providerId\\\" text NOT NULL,\\n \\\"refreshToken\\\" text,\\n \\\"refreshTokenExpiresAt\\\" \\\"timestamptz\\\",\\n \\\"scope\\\" text,\\n \\\"updatedAt\\\" \\\"timestamptz\\\" NOT NULL,\\n \\\"userId\\\" text NOT NULL,\\n PRIMARY KEY (\\\"id\\\")\\n)\",\n\t\t\t\"params\": []\n\t\t}],\n\t\t\"postcheck\": [{\n\t\t\t\"description\": \"verify table \\\"account\\\" exists\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NOT NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"account\\\"\"]\n\t\t}]\n\t},\n\t{\n\t\t\"id\": \"table.jwks\",\n\t\t\"label\": \"Create table \\\"jwks\\\"\",\n\t\t\"summary\": \"Creates table \\\"jwks\\\"\",\n\t\t\"operationClass\": \"additive\",\n\t\t\"target\": {\n\t\t\t\"id\": \"postgres\",\n\t\t\t\"details\": {\n\t\t\t\t\"schema\": \"auth\",\n\t\t\t\t\"objectType\": \"table\",\n\t\t\t\t\"name\": \"jwks\"\n\t\t\t}\n\t\t},\n\t\t\"precheck\": [{\n\t\t\t\"description\": \"ensure table \\\"jwks\\\" does not exist\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"jwks\\\"\"]\n\t\t}],\n\t\t\"execute\": [{\n\t\t\t\"description\": \"create table \\\"jwks\\\"\",\n\t\t\t\"sql\": \"CREATE TABLE \\\"auth\\\".\\\"jwks\\\" (\\n \\\"createdAt\\\" \\\"timestamptz\\\" NOT NULL,\\n \\\"expiresAt\\\" \\\"timestamptz\\\",\\n \\\"id\\\" text NOT NULL,\\n \\\"privateKey\\\" text NOT NULL,\\n \\\"publicKey\\\" text NOT NULL,\\n PRIMARY KEY (\\\"id\\\")\\n)\",\n\t\t\t\"params\": []\n\t\t}],\n\t\t\"postcheck\": [{\n\t\t\t\"description\": \"verify table \\\"jwks\\\" exists\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NOT NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"jwks\\\"\"]\n\t\t}]\n\t},\n\t{\n\t\t\"id\": \"table.session\",\n\t\t\"label\": \"Create table \\\"session\\\"\",\n\t\t\"summary\": \"Creates table \\\"session\\\"\",\n\t\t\"operationClass\": \"additive\",\n\t\t\"target\": {\n\t\t\t\"id\": \"postgres\",\n\t\t\t\"details\": {\n\t\t\t\t\"schema\": \"auth\",\n\t\t\t\t\"objectType\": \"table\",\n\t\t\t\t\"name\": \"session\"\n\t\t\t}\n\t\t},\n\t\t\"precheck\": [{\n\t\t\t\"description\": \"ensure table \\\"session\\\" does not exist\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"session\\\"\"]\n\t\t}],\n\t\t\"execute\": [{\n\t\t\t\"description\": \"create table \\\"session\\\"\",\n\t\t\t\"sql\": \"CREATE TABLE \\\"auth\\\".\\\"session\\\" (\\n \\\"createdAt\\\" \\\"timestamptz\\\" DEFAULT (now()) NOT NULL,\\n \\\"expiresAt\\\" \\\"timestamptz\\\" NOT NULL,\\n \\\"id\\\" text NOT NULL,\\n \\\"impersonatedBy\\\" text,\\n \\\"ipAddress\\\" text,\\n \\\"token\\\" text NOT NULL,\\n \\\"updatedAt\\\" \\\"timestamptz\\\" NOT NULL,\\n \\\"userAgent\\\" text,\\n \\\"userId\\\" text NOT NULL,\\n PRIMARY KEY (\\\"id\\\")\\n)\",\n\t\t\t\"params\": []\n\t\t}],\n\t\t\"postcheck\": [{\n\t\t\t\"description\": \"verify table \\\"session\\\" exists\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NOT NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"session\\\"\"]\n\t\t}]\n\t},\n\t{\n\t\t\"id\": \"table.user\",\n\t\t\"label\": \"Create table \\\"user\\\"\",\n\t\t\"summary\": \"Creates table \\\"user\\\"\",\n\t\t\"operationClass\": \"additive\",\n\t\t\"target\": {\n\t\t\t\"id\": \"postgres\",\n\t\t\t\"details\": {\n\t\t\t\t\"schema\": \"auth\",\n\t\t\t\t\"objectType\": \"table\",\n\t\t\t\t\"name\": \"user\"\n\t\t\t}\n\t\t},\n\t\t\"precheck\": [{\n\t\t\t\"description\": \"ensure table \\\"user\\\" does not exist\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"user\\\"\"]\n\t\t}],\n\t\t\"execute\": [{\n\t\t\t\"description\": \"create table \\\"user\\\"\",\n\t\t\t\"sql\": \"CREATE TABLE \\\"auth\\\".\\\"user\\\" (\\n \\\"banExpires\\\" \\\"timestamptz\\\",\\n \\\"banReason\\\" text,\\n \\\"banned\\\" bool,\\n \\\"createdAt\\\" \\\"timestamptz\\\" DEFAULT (now()) NOT NULL,\\n \\\"email\\\" text NOT NULL,\\n \\\"emailVerified\\\" bool NOT NULL,\\n \\\"id\\\" text NOT NULL,\\n \\\"image\\\" text,\\n \\\"name\\\" text NOT NULL,\\n \\\"role\\\" text,\\n \\\"updatedAt\\\" \\\"timestamptz\\\" DEFAULT (now()) NOT NULL,\\n PRIMARY KEY (\\\"id\\\")\\n)\",\n\t\t\t\"params\": []\n\t\t}],\n\t\t\"postcheck\": [{\n\t\t\t\"description\": \"verify table \\\"user\\\" exists\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NOT NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"user\\\"\"]\n\t\t}]\n\t},\n\t{\n\t\t\"id\": \"table.verification\",\n\t\t\"label\": \"Create table \\\"verification\\\"\",\n\t\t\"summary\": \"Creates table \\\"verification\\\"\",\n\t\t\"operationClass\": \"additive\",\n\t\t\"target\": {\n\t\t\t\"id\": \"postgres\",\n\t\t\t\"details\": {\n\t\t\t\t\"schema\": \"auth\",\n\t\t\t\t\"objectType\": \"table\",\n\t\t\t\t\"name\": \"verification\"\n\t\t\t}\n\t\t},\n\t\t\"precheck\": [{\n\t\t\t\"description\": \"ensure table \\\"verification\\\" does not exist\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"verification\\\"\"]\n\t\t}],\n\t\t\"execute\": [{\n\t\t\t\"description\": \"create table \\\"verification\\\"\",\n\t\t\t\"sql\": \"CREATE TABLE \\\"auth\\\".\\\"verification\\\" (\\n \\\"createdAt\\\" \\\"timestamptz\\\" DEFAULT (now()) NOT NULL,\\n \\\"expiresAt\\\" \\\"timestamptz\\\" NOT NULL,\\n \\\"id\\\" text NOT NULL,\\n \\\"identifier\\\" text NOT NULL,\\n \\\"updatedAt\\\" \\\"timestamptz\\\" DEFAULT (now()) NOT NULL,\\n \\\"value\\\" text NOT NULL,\\n PRIMARY KEY (\\\"id\\\")\\n)\",\n\t\t\t\"params\": []\n\t\t}],\n\t\t\"postcheck\": [{\n\t\t\t\"description\": \"verify table \\\"verification\\\" exists\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NOT NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"verification\\\"\"]\n\t\t}]\n\t},\n\t{\n\t\t\"id\": \"unique.session.session_token_key\",\n\t\t\"label\": \"Add unique constraint on \\\"session\\\" (token)\",\n\t\t\"operationClass\": \"additive\",\n\t\t\"target\": {\n\t\t\t\"id\": \"postgres\",\n\t\t\t\"details\": {\n\t\t\t\t\"schema\": \"auth\",\n\t\t\t\t\"objectType\": \"unique\",\n\t\t\t\t\"name\": \"session_token_key\",\n\t\t\t\t\"table\": \"session\"\n\t\t\t}\n\t\t},\n\t\t\"precheck\": [{\n\t\t\t\"description\": \"ensure constraint \\\"session_token_key\\\" does not exist\",\n\t\t\t\"sql\": \"SELECT NOT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_constraint\\\" AS \\\"c\\\" INNER JOIN \\\"pg_namespace\\\" AS \\\"n\\\" ON \\\"n\\\".\\\"oid\\\" = \\\"c\\\".\\\"connamespace\\\" WHERE (\\\"c\\\".\\\"conname\\\" = $1 AND \\\"n\\\".\\\"nspname\\\" = $2 AND \\\"c\\\".\\\"conrelid\\\" = to_regclass($3))) AS \\\"result\\\"\",\n\t\t\t\"params\": [\n\t\t\t\t\"session_token_key\",\n\t\t\t\t\"auth\",\n\t\t\t\t\"\\\"auth\\\".\\\"session\\\"\"\n\t\t\t]\n\t\t}],\n\t\t\"execute\": [{\n\t\t\t\"description\": \"add unique constraint \\\"session_token_key\\\"\",\n\t\t\t\"sql\": \"ALTER TABLE \\\"auth\\\".\\\"session\\\" ADD CONSTRAINT \\\"session_token_key\\\" UNIQUE (\\\"token\\\")\"\n\t\t}],\n\t\t\"postcheck\": [{\n\t\t\t\"description\": \"verify constraint \\\"session_token_key\\\" exists\",\n\t\t\t\"sql\": \"SELECT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_constraint\\\" AS \\\"c\\\" INNER JOIN \\\"pg_namespace\\\" AS \\\"n\\\" ON \\\"n\\\".\\\"oid\\\" = \\\"c\\\".\\\"connamespace\\\" WHERE (\\\"c\\\".\\\"conname\\\" = $1 AND \\\"n\\\".\\\"nspname\\\" = $2 AND \\\"c\\\".\\\"conrelid\\\" = to_regclass($3))) AS \\\"result\\\"\",\n\t\t\t\"params\": [\n\t\t\t\t\"session_token_key\",\n\t\t\t\t\"auth\",\n\t\t\t\t\"\\\"auth\\\".\\\"session\\\"\"\n\t\t\t]\n\t\t}]\n\t},\n\t{\n\t\t\"id\": \"unique.user.user_email_key\",\n\t\t\"label\": \"Add unique constraint on \\\"user\\\" (email)\",\n\t\t\"operationClass\": \"additive\",\n\t\t\"target\": {\n\t\t\t\"id\": \"postgres\",\n\t\t\t\"details\": {\n\t\t\t\t\"schema\": \"auth\",\n\t\t\t\t\"objectType\": \"unique\",\n\t\t\t\t\"name\": \"user_email_key\",\n\t\t\t\t\"table\": \"user\"\n\t\t\t}\n\t\t},\n\t\t\"precheck\": [{\n\t\t\t\"description\": \"ensure constraint \\\"user_email_key\\\" does not exist\",\n\t\t\t\"sql\": \"SELECT NOT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_constraint\\\" AS \\\"c\\\" INNER JOIN \\\"pg_namespace\\\" AS \\\"n\\\" ON \\\"n\\\".\\\"oid\\\" = \\\"c\\\".\\\"connamespace\\\" WHERE (\\\"c\\\".\\\"conname\\\" = $1 AND \\\"n\\\".\\\"nspname\\\" = $2 AND \\\"c\\\".\\\"conrelid\\\" = to_regclass($3))) AS \\\"result\\\"\",\n\t\t\t\"params\": [\n\t\t\t\t\"user_email_key\",\n\t\t\t\t\"auth\",\n\t\t\t\t\"\\\"auth\\\".\\\"user\\\"\"\n\t\t\t]\n\t\t}],\n\t\t\"execute\": [{\n\t\t\t\"description\": \"add unique constraint \\\"user_email_key\\\"\",\n\t\t\t\"sql\": \"ALTER TABLE \\\"auth\\\".\\\"user\\\" ADD CONSTRAINT \\\"user_email_key\\\" UNIQUE (\\\"email\\\")\"\n\t\t}],\n\t\t\"postcheck\": [{\n\t\t\t\"description\": \"verify constraint \\\"user_email_key\\\" exists\",\n\t\t\t\"sql\": \"SELECT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_constraint\\\" AS \\\"c\\\" INNER JOIN \\\"pg_namespace\\\" AS \\\"n\\\" ON \\\"n\\\".\\\"oid\\\" = \\\"c\\\".\\\"connamespace\\\" WHERE (\\\"c\\\".\\\"conname\\\" = $1 AND \\\"n\\\".\\\"nspname\\\" = $2 AND \\\"c\\\".\\\"conrelid\\\" = to_regclass($3))) AS \\\"result\\\"\",\n\t\t\t\"params\": [\n\t\t\t\t\"user_email_key\",\n\t\t\t\t\"auth\",\n\t\t\t\t\"\\\"auth\\\".\\\"user\\\"\"\n\t\t\t]\n\t\t}]\n\t},\n\t{\n\t\t\"id\": \"index.account.account_userId_idx\",\n\t\t\"label\": \"Create index \\\"account_userId_idx\\\" on \\\"account\\\"\",\n\t\t\"operationClass\": \"additive\",\n\t\t\"target\": {\n\t\t\t\"id\": \"postgres\",\n\t\t\t\"details\": {\n\t\t\t\t\"schema\": \"auth\",\n\t\t\t\t\"objectType\": \"index\",\n\t\t\t\t\"name\": \"account_userId_idx\",\n\t\t\t\t\"table\": \"account\"\n\t\t\t}\n\t\t},\n\t\t\"precheck\": [{\n\t\t\t\"description\": \"ensure index \\\"account_userId_idx\\\" does not exist\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"account_userId_idx\\\"\"]\n\t\t}],\n\t\t\"execute\": [{\n\t\t\t\"description\": \"create index \\\"account_userId_idx\\\"\",\n\t\t\t\"sql\": \"CREATE INDEX \\\"account_userId_idx\\\" ON \\\"auth\\\".\\\"account\\\" (\\\"userId\\\")\",\n\t\t\t\"params\": []\n\t\t}],\n\t\t\"postcheck\": [{\n\t\t\t\"description\": \"verify index \\\"account_userId_idx\\\" exists\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NOT NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"account_userId_idx\\\"\"]\n\t\t}]\n\t},\n\t{\n\t\t\"id\": \"index.session.session_userId_idx\",\n\t\t\"label\": \"Create index \\\"session_userId_idx\\\" on \\\"session\\\"\",\n\t\t\"operationClass\": \"additive\",\n\t\t\"target\": {\n\t\t\t\"id\": \"postgres\",\n\t\t\t\"details\": {\n\t\t\t\t\"schema\": \"auth\",\n\t\t\t\t\"objectType\": \"index\",\n\t\t\t\t\"name\": \"session_userId_idx\",\n\t\t\t\t\"table\": \"session\"\n\t\t\t}\n\t\t},\n\t\t\"precheck\": [{\n\t\t\t\"description\": \"ensure index \\\"session_userId_idx\\\" does not exist\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"session_userId_idx\\\"\"]\n\t\t}],\n\t\t\"execute\": [{\n\t\t\t\"description\": \"create index \\\"session_userId_idx\\\"\",\n\t\t\t\"sql\": \"CREATE INDEX \\\"session_userId_idx\\\" ON \\\"auth\\\".\\\"session\\\" (\\\"userId\\\")\",\n\t\t\t\"params\": []\n\t\t}],\n\t\t\"postcheck\": [{\n\t\t\t\"description\": \"verify index \\\"session_userId_idx\\\" exists\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NOT NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"session_userId_idx\\\"\"]\n\t\t}]\n\t},\n\t{\n\t\t\"id\": \"index.verification.verification_identifier_idx\",\n\t\t\"label\": \"Create index \\\"verification_identifier_idx\\\" on \\\"verification\\\"\",\n\t\t\"operationClass\": \"additive\",\n\t\t\"target\": {\n\t\t\t\"id\": \"postgres\",\n\t\t\t\"details\": {\n\t\t\t\t\"schema\": \"auth\",\n\t\t\t\t\"objectType\": \"index\",\n\t\t\t\t\"name\": \"verification_identifier_idx\",\n\t\t\t\t\"table\": \"verification\"\n\t\t\t}\n\t\t},\n\t\t\"precheck\": [{\n\t\t\t\"description\": \"ensure index \\\"verification_identifier_idx\\\" does not exist\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"verification_identifier_idx\\\"\"]\n\t\t}],\n\t\t\"execute\": [{\n\t\t\t\"description\": \"create index \\\"verification_identifier_idx\\\"\",\n\t\t\t\"sql\": \"CREATE INDEX \\\"verification_identifier_idx\\\" ON \\\"auth\\\".\\\"verification\\\" (\\\"identifier\\\")\",\n\t\t\t\"params\": []\n\t\t}],\n\t\t\"postcheck\": [{\n\t\t\t\"description\": \"verify index \\\"verification_identifier_idx\\\" exists\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NOT NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"verification_identifier_idx\\\"\"]\n\t\t}]\n\t},\n\t{\n\t\t\"id\": \"foreignKey.account.account_userId_fkey\",\n\t\t\"label\": \"Add foreign key \\\"account_userId_fkey\\\" on \\\"account\\\"\",\n\t\t\"operationClass\": \"additive\",\n\t\t\"target\": {\n\t\t\t\"id\": \"postgres\",\n\t\t\t\"details\": {\n\t\t\t\t\"schema\": \"auth\",\n\t\t\t\t\"objectType\": \"foreignKey\",\n\t\t\t\t\"name\": \"account_userId_fkey\",\n\t\t\t\t\"table\": \"account\"\n\t\t\t}\n\t\t},\n\t\t\"precheck\": [{\n\t\t\t\"description\": \"ensure FK \\\"account_userId_fkey\\\" does not exist\",\n\t\t\t\"sql\": \"SELECT NOT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_constraint\\\" AS \\\"c\\\" INNER JOIN \\\"pg_namespace\\\" AS \\\"n\\\" ON \\\"n\\\".\\\"oid\\\" = \\\"c\\\".\\\"connamespace\\\" WHERE (\\\"c\\\".\\\"conname\\\" = $1 AND \\\"n\\\".\\\"nspname\\\" = $2 AND \\\"c\\\".\\\"conrelid\\\" = to_regclass($3))) AS \\\"result\\\"\",\n\t\t\t\"params\": [\n\t\t\t\t\"account_userId_fkey\",\n\t\t\t\t\"auth\",\n\t\t\t\t\"\\\"auth\\\".\\\"account\\\"\"\n\t\t\t]\n\t\t}],\n\t\t\"execute\": [{\n\t\t\t\"description\": \"add FK \\\"account_userId_fkey\\\"\",\n\t\t\t\"sql\": \"ALTER TABLE \\\"auth\\\".\\\"account\\\"\\nADD CONSTRAINT \\\"account_userId_fkey\\\"\\nFOREIGN KEY (\\\"userId\\\")\\nREFERENCES \\\"auth\\\".\\\"user\\\" (\\\"id\\\")\\nON DELETE CASCADE\"\n\t\t}],\n\t\t\"postcheck\": [{\n\t\t\t\"description\": \"verify FK \\\"account_userId_fkey\\\" exists\",\n\t\t\t\"sql\": \"SELECT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_constraint\\\" AS \\\"c\\\" INNER JOIN \\\"pg_namespace\\\" AS \\\"n\\\" ON \\\"n\\\".\\\"oid\\\" = \\\"c\\\".\\\"connamespace\\\" WHERE (\\\"c\\\".\\\"conname\\\" = $1 AND \\\"n\\\".\\\"nspname\\\" = $2 AND \\\"c\\\".\\\"conrelid\\\" = to_regclass($3))) AS \\\"result\\\"\",\n\t\t\t\"params\": [\n\t\t\t\t\"account_userId_fkey\",\n\t\t\t\t\"auth\",\n\t\t\t\t\"\\\"auth\\\".\\\"account\\\"\"\n\t\t\t]\n\t\t}]\n\t},\n\t{\n\t\t\"id\": \"foreignKey.session.session_userId_fkey\",\n\t\t\"label\": \"Add foreign key \\\"session_userId_fkey\\\" on \\\"session\\\"\",\n\t\t\"operationClass\": \"additive\",\n\t\t\"target\": {\n\t\t\t\"id\": \"postgres\",\n\t\t\t\"details\": {\n\t\t\t\t\"schema\": \"auth\",\n\t\t\t\t\"objectType\": \"foreignKey\",\n\t\t\t\t\"name\": \"session_userId_fkey\",\n\t\t\t\t\"table\": \"session\"\n\t\t\t}\n\t\t},\n\t\t\"precheck\": [{\n\t\t\t\"description\": \"ensure FK \\\"session_userId_fkey\\\" does not exist\",\n\t\t\t\"sql\": \"SELECT NOT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_constraint\\\" AS \\\"c\\\" INNER JOIN \\\"pg_namespace\\\" AS \\\"n\\\" ON \\\"n\\\".\\\"oid\\\" = \\\"c\\\".\\\"connamespace\\\" WHERE (\\\"c\\\".\\\"conname\\\" = $1 AND \\\"n\\\".\\\"nspname\\\" = $2 AND \\\"c\\\".\\\"conrelid\\\" = to_regclass($3))) AS \\\"result\\\"\",\n\t\t\t\"params\": [\n\t\t\t\t\"session_userId_fkey\",\n\t\t\t\t\"auth\",\n\t\t\t\t\"\\\"auth\\\".\\\"session\\\"\"\n\t\t\t]\n\t\t}],\n\t\t\"execute\": [{\n\t\t\t\"description\": \"add FK \\\"session_userId_fkey\\\"\",\n\t\t\t\"sql\": \"ALTER TABLE \\\"auth\\\".\\\"session\\\"\\nADD CONSTRAINT \\\"session_userId_fkey\\\"\\nFOREIGN KEY (\\\"userId\\\")\\nREFERENCES \\\"auth\\\".\\\"user\\\" (\\\"id\\\")\\nON DELETE CASCADE\"\n\t\t}],\n\t\t\"postcheck\": [{\n\t\t\t\"description\": \"verify FK \\\"session_userId_fkey\\\" exists\",\n\t\t\t\"sql\": \"SELECT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_constraint\\\" AS \\\"c\\\" INNER JOIN \\\"pg_namespace\\\" AS \\\"n\\\" ON \\\"n\\\".\\\"oid\\\" = \\\"c\\\".\\\"connamespace\\\" WHERE (\\\"c\\\".\\\"conname\\\" = $1 AND \\\"n\\\".\\\"nspname\\\" = $2 AND \\\"c\\\".\\\"conrelid\\\" = to_regclass($3))) AS \\\"result\\\"\",\n\t\t\t\"params\": [\n\t\t\t\t\"session_userId_fkey\",\n\t\t\t\t\"auth\",\n\t\t\t\t\"\\\"auth\\\".\\\"session\\\"\"\n\t\t\t]\n\t\t}]\n\t}\n];\n//#endregion\n//#region src/pack/index.ts\n/**\n* The `auth` contract space as a Prisma Next extension pack (mirrors\n* `@prisma/orm-extension-supabase`'s `supabasePack`): the emitted Better\n* Auth contract plus the shipped migration packages, in-memory. A consumer\n* lists `authPack` in their `prisma-next.config.ts` and their normal\n* migration step creates and evolves the auth tables beside their own —\n* `migration plan` materialises the shipped packages into the project's\n* `migrations/auth/` directory.\n*\n* Control policy is MANAGED (the emit default) — unlike Supabase's external\n* tables, OUR migrations create these. Regeneration: edit `contract.prisma`,\n* run `prisma-next contract emit`, and re-author the migration.\n*/\nconst contract = blindCast(contract_default);\nconst authContractSpace = {\n\tcontractJson: contract,\n\tmigrations: [{\n\t\tdirName: \"0001_init\",\n\t\tmetadata: migration_default,\n\t\tops: blindCast(ops_default)\n\t}],\n\theadRef: {\n\t\thash: AUTH_PACK_HEAD_HASH,\n\t\tinvariants: []\n\t}\n};\nassertDescriptorSelfConsistency({\n\textensionId: AUTH_PACK_ID,\n\ttarget: contract.target,\n\ttargetFamily: contract.targetFamily,\n\tstorage: contract.storage,\n\theadRefHash: AUTH_PACK_HEAD_HASH,\n\t...sqlContractCanonicalizationHooks\n});\n/** The `auth` extension pack — list it in a consumer's `prisma-next.config.ts`. */\nconst authPack = {\n\tkind: \"extension\",\n\tid: AUTH_PACK_ID,\n\tfamilyId: \"sql\",\n\ttargetId: \"postgres\",\n\tversion,\n\tcontractSpace: authContractSpace,\n\tcreate: () => ({\n\t\tfamilyId: \"sql\",\n\t\ttargetId: \"postgres\"\n\t})\n};\n//#endregion\nexport { AUTH_PACK_HEAD_HASH, AUTH_PACK_ID, AUTH_SCHEMA, authPack, authPack as default };\n\n//# sourceMappingURL=pack.mjs.map"],"mappings":";;;;;AAKA,IAAI,UAAU;AAGd,IAAI,oBAAoB;CACvB,MAAM;CACN,IAAI;CACJ,oBAAoB,CAAC;CACrB,WAAW;CACX,eAAe;AAChB;AAGA,IAAI,cAAc;CACjB;EACC,MAAM;EACN,SAAS;EACT,kBAAkB;EAClB,UAAU,EAAE,MAAM,WAAW;EAC7B,YAAY,CAAC;EACb,WAAW,CAAC;GACX,eAAe;GACf,OAAO;GACP,UAAU,CAAC;EACZ,CAAC;EACD,aAAa,CAAC;CACf;CACA;EACC,MAAM;EACN,SAAS;EACT,kBAAkB;EAClB,UAAU,EAAE,MAAM,WAAW;EAC7B,YAAY,CAAC;EACb,WAAW,CAAC;GACX,eAAe;GACf,OAAO;GACP,UAAU,CAAC;EACZ,CAAC;EACD,aAAa,CAAC;CACf;CACA;EACC,MAAM;EACN,SAAS;EACT,WAAW;EACX,kBAAkB;EAClB,UAAU;GACT,MAAM;GACN,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AAU,CAAC;EACZ,CAAC;EACD,aAAa,CAAC;GACb,eAAe;GACf,OAAO;GACP,UAAU,CAAC,mBAAmB;EAC/B,CAAC;CACF;CACA;EACC,MAAM;EACN,SAAS;EACT,WAAW;EACX,kBAAkB;EAClB,UAAU;GACT,MAAM;GACN,WAAW;IACV,UAAU;IACV,cAAc;IACd,QAAQ;GACT;EACD;EACA,YAAY,CAAC;GACZ,eAAe;GACf,OAAO;GACP,UAAU,CAAC,2BAA2B;EACvC,CAAC;EACD,WAAW,CAAC;GACX,eAAe;GACf,OAAO;GACP,UAAU,CAAC;EACZ,CAAC;EACD,aAAa,CAAC;GACb,eAAe;GACf,OAAO;GACP,UAAU,CAAC,2BAA2B;EACvC,CAAC;CACF;CACA;EACC,MAAM;EACN,SAAS;EACT,kBAAkB;EAClB,UAAU;GACT,MAAM;GACN,WAAW;IACV,UAAU;IACV,cAAc;IACd,QAAQ;IACR,SAAS;GACV;EACD;EACA,YAAY,CAAC;GACZ,eAAe;GACf,OAAO;GACP,UAAU;IACT;IACA;IACA;GACD;EACD,CAAC;EACD,WAAW,CAAC;GACX,eAAe;GACf,OAAO;EACR,CAAC;EACD,aAAa,CAAC;GACb,eAAe;GACf,OAAO;GACP,UAAU;IACT;IACA;IACA;GACD;EACD,CAAC;CACF;CACA;EACC,MAAM;EACN,SAAS;EACT,kBAAkB;EAClB,UAAU;GACT,MAAM;GACN,WAAW;IACV,UAAU;IACV,cAAc;IACd,QAAQ;IACR,SAAS;GACV;EACD;EACA,YAAY,CAAC;GACZ,eAAe;GACf,OAAO;GACP,UAAU;IACT;IACA;IACA;GACD;EACD,CAAC;EACD,WAAW,CAAC;GACX,eAAe;GACf,OAAO;EACR,CAAC;EACD,aAAa,CAAC;GACb,eAAe;GACf,OAAO;GACP,UAAU;IACT;IACA;IACA;GACD;EACD,CAAC;CACF;CACA;EACC,MAAM;EACN,SAAS;EACT,kBAAkB;EAClB,UAAU;GACT,MAAM;GACN,WAAW;IACV,UAAU;IACV,cA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,aAAa,CAAC;GACb,eAAe;GACf,OAAO;GACP,UAAU;IACT;IACA;IACA;GACD;EACD,CAAC;CACF;CACA;EACC,MAAM;EACN,SAAS;EACT,kBAAkB;EAClB,UAAU;GACT,MAAM;GACN,WAAW;IACV,UAAU;IACV,cAAc;IACd,QAAQ;IACR,SAAS;GACV;EACD;EACA,YAAY,CAAC;GACZ,eAAe;GACf,OAAO;GACP,UAAU;IACT;IACA;IACA;GACD;EACD,CAAC;EACD,WAAW,CAAC;GACX,eAAe;GACf,OAAO;EACR,CAAC;EACD,aAAa,CAAC;GACb,eAAe;GACf,OAAO;GACP,UAAU;IACT;IACA;IACA;GACD;EACD,CAAC;CACF;AACD;;;;;;;;;;;;;;AAgBA,MAAM,WAAW,UAAU,gBAAgB;AAC3C,MAAM,oBAAoB;CACzB,cAAc;CACd,YAAY,CAAC;EACZ,SAAS;EACT,UAAU;EACV,KAAK,UAAU,WAAW;CAC3B,CAAC;CACD,SAAS;EACR,MAAM;EACN,YAAY,CAAC;CACd;AACD;AACA,gCAAgC;CAC/B,aAAa;CACb,QAAQ,SAAS;CACjB,cAAc,SAAS;CACvB,SAAS,SAAS;CAClB,aAAa;CACb,GAAG;AACJ,CAAC;;AAED,MAAM,WAAW;CAChB,MAAM;CACN,IAAI;CACJ,UAAU;CACV,UAAU;CACV;CACA,eAAe;CACf,eAAe;EACd,UAAU;EACV,UAAU;CACX;AACD"}
1
+ {"version":3,"file":"pack.mjs","names":[],"sources":["../../../../1-prisma-cloud/2-shared-modules/auth/dist/pack.mjs"],"sourcesContent":["import { i as contract_default, n as AUTH_PACK_ID, r as AUTH_SCHEMA, t as AUTH_PACK_HEAD_HASH } from \"./constants-C5kLhEQ3.mjs\";\nimport { blindCast } from \"@internal/foundation/casts\";\nimport { sqlContractCanonicalizationHooks } from \"@prisma/orm-postgres/family-contract/canonicalization-hooks\";\nimport { assertDescriptorSelfConsistency } from \"@prisma/orm-toolchain/migration-tools/spaces\";\n//#region package.json\nvar version = \"0.10.0\";\n//#endregion\n//#region src/pack/migrations/0001_init/migration.json\nvar migration_default = {\n\tfrom: null,\n\tto: \"6bbd4dc1c19c8aa5e0d60c9755e0f8ea07ba1c01d20c48cf3aa7226e4ee7d33f\",\n\tprovidedInvariants: [],\n\tcreatedAt: \"2026-08-09T14:53:22.378Z\",\n\tmigrationHash: \"fc8e1329d7841a4f14a3d95b14bbf514c8982aee653af4778cff149fb439116f\"\n};\n//#endregion\n//#region src/pack/migrations/0001_init/ops.json\nvar ops_default = [\n\t{\n\t\t\"id\": \"schema.auth\",\n\t\t\"label\": \"Create schema \\\"auth\\\"\",\n\t\t\"operationClass\": \"additive\",\n\t\t\"target\": { \"id\": \"postgres\" },\n\t\t\"precheck\": [],\n\t\t\"execute\": [{\n\t\t\t\"description\": \"Create schema \\\"auth\\\"\",\n\t\t\t\"sql\": \"CREATE SCHEMA IF NOT EXISTS \\\"auth\\\"\",\n\t\t\t\"params\": []\n\t\t}],\n\t\t\"postcheck\": []\n\t},\n\t{\n\t\t\"id\": \"schema.public\",\n\t\t\"label\": \"Create schema \\\"public\\\"\",\n\t\t\"operationClass\": \"additive\",\n\t\t\"target\": { \"id\": \"postgres\" },\n\t\t\"precheck\": [],\n\t\t\"execute\": [{\n\t\t\t\"description\": \"Create schema \\\"public\\\"\",\n\t\t\t\"sql\": \"CREATE SCHEMA IF NOT EXISTS \\\"public\\\"\",\n\t\t\t\"params\": []\n\t\t}],\n\t\t\"postcheck\": []\n\t},\n\t{\n\t\t\"id\": \"table.account\",\n\t\t\"label\": \"Create table \\\"account\\\"\",\n\t\t\"summary\": \"Creates table \\\"account\\\"\",\n\t\t\"operationClass\": \"additive\",\n\t\t\"target\": {\n\t\t\t\"id\": \"postgres\",\n\t\t\t\"details\": {\n\t\t\t\t\"schema\": \"auth\",\n\t\t\t\t\"objectType\": \"table\",\n\t\t\t\t\"name\": \"account\"\n\t\t\t}\n\t\t},\n\t\t\"precheck\": [{\n\t\t\t\"description\": \"ensure table \\\"account\\\" does not exist\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"account\\\"\"]\n\t\t}],\n\t\t\"execute\": [{\n\t\t\t\"description\": \"create table \\\"account\\\"\",\n\t\t\t\"sql\": \"CREATE TABLE \\\"auth\\\".\\\"account\\\" (\\n \\\"accessToken\\\" text,\\n \\\"accessTokenExpiresAt\\\" \\\"timestamptz\\\",\\n \\\"accountId\\\" text NOT NULL,\\n \\\"createdAt\\\" \\\"timestamptz\\\" DEFAULT (now()) NOT NULL,\\n \\\"id\\\" text NOT NULL,\\n \\\"idToken\\\" text,\\n \\\"password\\\" text,\\n \\\"providerId\\\" text NOT NULL,\\n \\\"refreshToken\\\" text,\\n \\\"refreshTokenExpiresAt\\\" \\\"timestamptz\\\",\\n \\\"scope\\\" text,\\n \\\"updatedAt\\\" \\\"timestamptz\\\" NOT NULL,\\n \\\"userId\\\" text NOT NULL,\\n PRIMARY KEY (\\\"id\\\")\\n)\",\n\t\t\t\"params\": []\n\t\t}],\n\t\t\"postcheck\": [{\n\t\t\t\"description\": \"verify table \\\"account\\\" exists\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NOT NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"account\\\"\"]\n\t\t}]\n\t},\n\t{\n\t\t\"id\": \"table.jwks\",\n\t\t\"label\": \"Create table \\\"jwks\\\"\",\n\t\t\"summary\": \"Creates table \\\"jwks\\\"\",\n\t\t\"operationClass\": \"additive\",\n\t\t\"target\": {\n\t\t\t\"id\": \"postgres\",\n\t\t\t\"details\": {\n\t\t\t\t\"schema\": \"auth\",\n\t\t\t\t\"objectType\": \"table\",\n\t\t\t\t\"name\": \"jwks\"\n\t\t\t}\n\t\t},\n\t\t\"precheck\": [{\n\t\t\t\"description\": \"ensure table \\\"jwks\\\" does not exist\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"jwks\\\"\"]\n\t\t}],\n\t\t\"execute\": [{\n\t\t\t\"description\": \"create table \\\"jwks\\\"\",\n\t\t\t\"sql\": \"CREATE TABLE \\\"auth\\\".\\\"jwks\\\" (\\n \\\"createdAt\\\" \\\"timestamptz\\\" NOT NULL,\\n \\\"expiresAt\\\" \\\"timestamptz\\\",\\n \\\"id\\\" text NOT NULL,\\n \\\"privateKey\\\" text NOT NULL,\\n \\\"publicKey\\\" text NOT NULL,\\n PRIMARY KEY (\\\"id\\\")\\n)\",\n\t\t\t\"params\": []\n\t\t}],\n\t\t\"postcheck\": [{\n\t\t\t\"description\": \"verify table \\\"jwks\\\" exists\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NOT NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"jwks\\\"\"]\n\t\t}]\n\t},\n\t{\n\t\t\"id\": \"table.session\",\n\t\t\"label\": \"Create table \\\"session\\\"\",\n\t\t\"summary\": \"Creates table \\\"session\\\"\",\n\t\t\"operationClass\": \"additive\",\n\t\t\"target\": {\n\t\t\t\"id\": \"postgres\",\n\t\t\t\"details\": {\n\t\t\t\t\"schema\": \"auth\",\n\t\t\t\t\"objectType\": \"table\",\n\t\t\t\t\"name\": \"session\"\n\t\t\t}\n\t\t},\n\t\t\"precheck\": [{\n\t\t\t\"description\": \"ensure table \\\"session\\\" does not exist\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"session\\\"\"]\n\t\t}],\n\t\t\"execute\": [{\n\t\t\t\"description\": \"create table \\\"session\\\"\",\n\t\t\t\"sql\": \"CREATE TABLE \\\"auth\\\".\\\"session\\\" (\\n \\\"createdAt\\\" \\\"timestamptz\\\" DEFAULT (now()) NOT NULL,\\n \\\"expiresAt\\\" \\\"timestamptz\\\" NOT NULL,\\n \\\"id\\\" text NOT NULL,\\n \\\"impersonatedBy\\\" text,\\n \\\"ipAddress\\\" text,\\n \\\"token\\\" text NOT NULL,\\n \\\"updatedAt\\\" \\\"timestamptz\\\" NOT NULL,\\n \\\"userAgent\\\" text,\\n \\\"userId\\\" text NOT NULL,\\n PRIMARY KEY (\\\"id\\\")\\n)\",\n\t\t\t\"params\": []\n\t\t}],\n\t\t\"postcheck\": [{\n\t\t\t\"description\": \"verify table \\\"session\\\" exists\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NOT NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"session\\\"\"]\n\t\t}]\n\t},\n\t{\n\t\t\"id\": \"table.user\",\n\t\t\"label\": \"Create table \\\"user\\\"\",\n\t\t\"summary\": \"Creates table \\\"user\\\"\",\n\t\t\"operationClass\": \"additive\",\n\t\t\"target\": {\n\t\t\t\"id\": \"postgres\",\n\t\t\t\"details\": {\n\t\t\t\t\"schema\": \"auth\",\n\t\t\t\t\"objectType\": \"table\",\n\t\t\t\t\"name\": \"user\"\n\t\t\t}\n\t\t},\n\t\t\"precheck\": [{\n\t\t\t\"description\": \"ensure table \\\"user\\\" does not exist\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"user\\\"\"]\n\t\t}],\n\t\t\"execute\": [{\n\t\t\t\"description\": \"create table \\\"user\\\"\",\n\t\t\t\"sql\": \"CREATE TABLE \\\"auth\\\".\\\"user\\\" (\\n \\\"banExpires\\\" \\\"timestamptz\\\",\\n \\\"banReason\\\" text,\\n \\\"banned\\\" bool,\\n \\\"createdAt\\\" \\\"timestamptz\\\" DEFAULT (now()) NOT NULL,\\n \\\"email\\\" text NOT NULL,\\n \\\"emailVerified\\\" bool NOT NULL,\\n \\\"id\\\" text NOT NULL,\\n \\\"image\\\" text,\\n \\\"name\\\" text NOT NULL,\\n \\\"role\\\" text,\\n \\\"updatedAt\\\" \\\"timestamptz\\\" DEFAULT (now()) NOT NULL,\\n PRIMARY KEY (\\\"id\\\")\\n)\",\n\t\t\t\"params\": []\n\t\t}],\n\t\t\"postcheck\": [{\n\t\t\t\"description\": \"verify table \\\"user\\\" exists\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NOT NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"user\\\"\"]\n\t\t}]\n\t},\n\t{\n\t\t\"id\": \"table.verification\",\n\t\t\"label\": \"Create table \\\"verification\\\"\",\n\t\t\"summary\": \"Creates table \\\"verification\\\"\",\n\t\t\"operationClass\": \"additive\",\n\t\t\"target\": {\n\t\t\t\"id\": \"postgres\",\n\t\t\t\"details\": {\n\t\t\t\t\"schema\": \"auth\",\n\t\t\t\t\"objectType\": \"table\",\n\t\t\t\t\"name\": \"verification\"\n\t\t\t}\n\t\t},\n\t\t\"precheck\": [{\n\t\t\t\"description\": \"ensure table \\\"verification\\\" does not exist\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"verification\\\"\"]\n\t\t}],\n\t\t\"execute\": [{\n\t\t\t\"description\": \"create table \\\"verification\\\"\",\n\t\t\t\"sql\": \"CREATE TABLE \\\"auth\\\".\\\"verification\\\" (\\n \\\"createdAt\\\" \\\"timestamptz\\\" DEFAULT (now()) NOT NULL,\\n \\\"expiresAt\\\" \\\"timestamptz\\\" NOT NULL,\\n \\\"id\\\" text NOT NULL,\\n \\\"identifier\\\" text NOT NULL,\\n \\\"updatedAt\\\" \\\"timestamptz\\\" DEFAULT (now()) NOT NULL,\\n \\\"value\\\" text NOT NULL,\\n PRIMARY KEY (\\\"id\\\")\\n)\",\n\t\t\t\"params\": []\n\t\t}],\n\t\t\"postcheck\": [{\n\t\t\t\"description\": \"verify table \\\"verification\\\" exists\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NOT NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"verification\\\"\"]\n\t\t}]\n\t},\n\t{\n\t\t\"id\": \"unique.session.session_token_key\",\n\t\t\"label\": \"Add unique constraint on \\\"session\\\" (token)\",\n\t\t\"operationClass\": \"additive\",\n\t\t\"target\": {\n\t\t\t\"id\": \"postgres\",\n\t\t\t\"details\": {\n\t\t\t\t\"schema\": \"auth\",\n\t\t\t\t\"objectType\": \"unique\",\n\t\t\t\t\"name\": \"session_token_key\",\n\t\t\t\t\"table\": \"session\"\n\t\t\t}\n\t\t},\n\t\t\"precheck\": [{\n\t\t\t\"description\": \"ensure constraint \\\"session_token_key\\\" does not exist\",\n\t\t\t\"sql\": \"SELECT NOT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_constraint\\\" AS \\\"c\\\" INNER JOIN \\\"pg_namespace\\\" AS \\\"n\\\" ON \\\"n\\\".\\\"oid\\\" = \\\"c\\\".\\\"connamespace\\\" WHERE (\\\"c\\\".\\\"conname\\\" = $1 AND \\\"n\\\".\\\"nspname\\\" = $2 AND \\\"c\\\".\\\"conrelid\\\" = to_regclass($3))) AS \\\"result\\\"\",\n\t\t\t\"params\": [\n\t\t\t\t\"session_token_key\",\n\t\t\t\t\"auth\",\n\t\t\t\t\"\\\"auth\\\".\\\"session\\\"\"\n\t\t\t]\n\t\t}],\n\t\t\"execute\": [{\n\t\t\t\"description\": \"add unique constraint \\\"session_token_key\\\"\",\n\t\t\t\"sql\": \"ALTER TABLE \\\"auth\\\".\\\"session\\\" ADD CONSTRAINT \\\"session_token_key\\\" UNIQUE (\\\"token\\\")\"\n\t\t}],\n\t\t\"postcheck\": [{\n\t\t\t\"description\": \"verify constraint \\\"session_token_key\\\" exists\",\n\t\t\t\"sql\": \"SELECT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_constraint\\\" AS \\\"c\\\" INNER JOIN \\\"pg_namespace\\\" AS \\\"n\\\" ON \\\"n\\\".\\\"oid\\\" = \\\"c\\\".\\\"connamespace\\\" WHERE (\\\"c\\\".\\\"conname\\\" = $1 AND \\\"n\\\".\\\"nspname\\\" = $2 AND \\\"c\\\".\\\"conrelid\\\" = to_regclass($3))) AS \\\"result\\\"\",\n\t\t\t\"params\": [\n\t\t\t\t\"session_token_key\",\n\t\t\t\t\"auth\",\n\t\t\t\t\"\\\"auth\\\".\\\"session\\\"\"\n\t\t\t]\n\t\t}]\n\t},\n\t{\n\t\t\"id\": \"unique.user.user_email_key\",\n\t\t\"label\": \"Add unique constraint on \\\"user\\\" (email)\",\n\t\t\"operationClass\": \"additive\",\n\t\t\"target\": {\n\t\t\t\"id\": \"postgres\",\n\t\t\t\"details\": {\n\t\t\t\t\"schema\": \"auth\",\n\t\t\t\t\"objectType\": \"unique\",\n\t\t\t\t\"name\": \"user_email_key\",\n\t\t\t\t\"table\": \"user\"\n\t\t\t}\n\t\t},\n\t\t\"precheck\": [{\n\t\t\t\"description\": \"ensure constraint \\\"user_email_key\\\" does not exist\",\n\t\t\t\"sql\": \"SELECT NOT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_constraint\\\" AS \\\"c\\\" INNER JOIN \\\"pg_namespace\\\" AS \\\"n\\\" ON \\\"n\\\".\\\"oid\\\" = \\\"c\\\".\\\"connamespace\\\" WHERE (\\\"c\\\".\\\"conname\\\" = $1 AND \\\"n\\\".\\\"nspname\\\" = $2 AND \\\"c\\\".\\\"conrelid\\\" = to_regclass($3))) AS \\\"result\\\"\",\n\t\t\t\"params\": [\n\t\t\t\t\"user_email_key\",\n\t\t\t\t\"auth\",\n\t\t\t\t\"\\\"auth\\\".\\\"user\\\"\"\n\t\t\t]\n\t\t}],\n\t\t\"execute\": [{\n\t\t\t\"description\": \"add unique constraint \\\"user_email_key\\\"\",\n\t\t\t\"sql\": \"ALTER TABLE \\\"auth\\\".\\\"user\\\" ADD CONSTRAINT \\\"user_email_key\\\" UNIQUE (\\\"email\\\")\"\n\t\t}],\n\t\t\"postcheck\": [{\n\t\t\t\"description\": \"verify constraint \\\"user_email_key\\\" exists\",\n\t\t\t\"sql\": \"SELECT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_constraint\\\" AS \\\"c\\\" INNER JOIN \\\"pg_namespace\\\" AS \\\"n\\\" ON \\\"n\\\".\\\"oid\\\" = \\\"c\\\".\\\"connamespace\\\" WHERE (\\\"c\\\".\\\"conname\\\" = $1 AND \\\"n\\\".\\\"nspname\\\" = $2 AND \\\"c\\\".\\\"conrelid\\\" = to_regclass($3))) AS \\\"result\\\"\",\n\t\t\t\"params\": [\n\t\t\t\t\"user_email_key\",\n\t\t\t\t\"auth\",\n\t\t\t\t\"\\\"auth\\\".\\\"user\\\"\"\n\t\t\t]\n\t\t}]\n\t},\n\t{\n\t\t\"id\": \"index.account.account_userId_idx\",\n\t\t\"label\": \"Create index \\\"account_userId_idx\\\" on \\\"account\\\"\",\n\t\t\"operationClass\": \"additive\",\n\t\t\"target\": {\n\t\t\t\"id\": \"postgres\",\n\t\t\t\"details\": {\n\t\t\t\t\"schema\": \"auth\",\n\t\t\t\t\"objectType\": \"index\",\n\t\t\t\t\"name\": \"account_userId_idx\",\n\t\t\t\t\"table\": \"account\"\n\t\t\t}\n\t\t},\n\t\t\"precheck\": [{\n\t\t\t\"description\": \"ensure index \\\"account_userId_idx\\\" does not exist\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"account_userId_idx\\\"\"]\n\t\t}],\n\t\t\"execute\": [{\n\t\t\t\"description\": \"create index \\\"account_userId_idx\\\"\",\n\t\t\t\"sql\": \"CREATE INDEX \\\"account_userId_idx\\\" ON \\\"auth\\\".\\\"account\\\" (\\\"userId\\\")\",\n\t\t\t\"params\": []\n\t\t}],\n\t\t\"postcheck\": [{\n\t\t\t\"description\": \"verify index \\\"account_userId_idx\\\" exists\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NOT NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"account_userId_idx\\\"\"]\n\t\t}]\n\t},\n\t{\n\t\t\"id\": \"index.session.session_userId_idx\",\n\t\t\"label\": \"Create index \\\"session_userId_idx\\\" on \\\"session\\\"\",\n\t\t\"operationClass\": \"additive\",\n\t\t\"target\": {\n\t\t\t\"id\": \"postgres\",\n\t\t\t\"details\": {\n\t\t\t\t\"schema\": \"auth\",\n\t\t\t\t\"objectType\": \"index\",\n\t\t\t\t\"name\": \"session_userId_idx\",\n\t\t\t\t\"table\": \"session\"\n\t\t\t}\n\t\t},\n\t\t\"precheck\": [{\n\t\t\t\"description\": \"ensure index \\\"session_userId_idx\\\" does not exist\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"session_userId_idx\\\"\"]\n\t\t}],\n\t\t\"execute\": [{\n\t\t\t\"description\": \"create index \\\"session_userId_idx\\\"\",\n\t\t\t\"sql\": \"CREATE INDEX \\\"session_userId_idx\\\" ON \\\"auth\\\".\\\"session\\\" (\\\"userId\\\")\",\n\t\t\t\"params\": []\n\t\t}],\n\t\t\"postcheck\": [{\n\t\t\t\"description\": \"verify index \\\"session_userId_idx\\\" exists\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NOT NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"session_userId_idx\\\"\"]\n\t\t}]\n\t},\n\t{\n\t\t\"id\": \"index.verification.verification_identifier_idx\",\n\t\t\"label\": \"Create index \\\"verification_identifier_idx\\\" on \\\"verification\\\"\",\n\t\t\"operationClass\": \"additive\",\n\t\t\"target\": {\n\t\t\t\"id\": \"postgres\",\n\t\t\t\"details\": {\n\t\t\t\t\"schema\": \"auth\",\n\t\t\t\t\"objectType\": \"index\",\n\t\t\t\t\"name\": \"verification_identifier_idx\",\n\t\t\t\t\"table\": \"verification\"\n\t\t\t}\n\t\t},\n\t\t\"precheck\": [{\n\t\t\t\"description\": \"ensure index \\\"verification_identifier_idx\\\" does not exist\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"verification_identifier_idx\\\"\"]\n\t\t}],\n\t\t\"execute\": [{\n\t\t\t\"description\": \"create index \\\"verification_identifier_idx\\\"\",\n\t\t\t\"sql\": \"CREATE INDEX \\\"verification_identifier_idx\\\" ON \\\"auth\\\".\\\"verification\\\" (\\\"identifier\\\")\",\n\t\t\t\"params\": []\n\t\t}],\n\t\t\"postcheck\": [{\n\t\t\t\"description\": \"verify index \\\"verification_identifier_idx\\\" exists\",\n\t\t\t\"sql\": \"SELECT (to_regclass($1)) IS NOT NULL AS \\\"result\\\"\",\n\t\t\t\"params\": [\"\\\"auth\\\".\\\"verification_identifier_idx\\\"\"]\n\t\t}]\n\t},\n\t{\n\t\t\"id\": \"foreignKey.account.account_userId_fkey\",\n\t\t\"label\": \"Add foreign key \\\"account_userId_fkey\\\" on \\\"account\\\"\",\n\t\t\"operationClass\": \"additive\",\n\t\t\"target\": {\n\t\t\t\"id\": \"postgres\",\n\t\t\t\"details\": {\n\t\t\t\t\"schema\": \"auth\",\n\t\t\t\t\"objectType\": \"foreignKey\",\n\t\t\t\t\"name\": \"account_userId_fkey\",\n\t\t\t\t\"table\": \"account\"\n\t\t\t}\n\t\t},\n\t\t\"precheck\": [{\n\t\t\t\"description\": \"ensure FK \\\"account_userId_fkey\\\" does not exist\",\n\t\t\t\"sql\": \"SELECT NOT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_constraint\\\" AS \\\"c\\\" INNER JOIN \\\"pg_namespace\\\" AS \\\"n\\\" ON \\\"n\\\".\\\"oid\\\" = \\\"c\\\".\\\"connamespace\\\" WHERE (\\\"c\\\".\\\"conname\\\" = $1 AND \\\"n\\\".\\\"nspname\\\" = $2 AND \\\"c\\\".\\\"conrelid\\\" = to_regclass($3))) AS \\\"result\\\"\",\n\t\t\t\"params\": [\n\t\t\t\t\"account_userId_fkey\",\n\t\t\t\t\"auth\",\n\t\t\t\t\"\\\"auth\\\".\\\"account\\\"\"\n\t\t\t]\n\t\t}],\n\t\t\"execute\": [{\n\t\t\t\"description\": \"add FK \\\"account_userId_fkey\\\"\",\n\t\t\t\"sql\": \"ALTER TABLE \\\"auth\\\".\\\"account\\\"\\nADD CONSTRAINT \\\"account_userId_fkey\\\"\\nFOREIGN KEY (\\\"userId\\\")\\nREFERENCES \\\"auth\\\".\\\"user\\\" (\\\"id\\\")\\nON DELETE CASCADE\"\n\t\t}],\n\t\t\"postcheck\": [{\n\t\t\t\"description\": \"verify FK \\\"account_userId_fkey\\\" exists\",\n\t\t\t\"sql\": \"SELECT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_constraint\\\" AS \\\"c\\\" INNER JOIN \\\"pg_namespace\\\" AS \\\"n\\\" ON \\\"n\\\".\\\"oid\\\" = \\\"c\\\".\\\"connamespace\\\" WHERE (\\\"c\\\".\\\"conname\\\" = $1 AND \\\"n\\\".\\\"nspname\\\" = $2 AND \\\"c\\\".\\\"conrelid\\\" = to_regclass($3))) AS \\\"result\\\"\",\n\t\t\t\"params\": [\n\t\t\t\t\"account_userId_fkey\",\n\t\t\t\t\"auth\",\n\t\t\t\t\"\\\"auth\\\".\\\"account\\\"\"\n\t\t\t]\n\t\t}]\n\t},\n\t{\n\t\t\"id\": \"foreignKey.session.session_userId_fkey\",\n\t\t\"label\": \"Add foreign key \\\"session_userId_fkey\\\" on \\\"session\\\"\",\n\t\t\"operationClass\": \"additive\",\n\t\t\"target\": {\n\t\t\t\"id\": \"postgres\",\n\t\t\t\"details\": {\n\t\t\t\t\"schema\": \"auth\",\n\t\t\t\t\"objectType\": \"foreignKey\",\n\t\t\t\t\"name\": \"session_userId_fkey\",\n\t\t\t\t\"table\": \"session\"\n\t\t\t}\n\t\t},\n\t\t\"precheck\": [{\n\t\t\t\"description\": \"ensure FK \\\"session_userId_fkey\\\" does not exist\",\n\t\t\t\"sql\": \"SELECT NOT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_constraint\\\" AS \\\"c\\\" INNER JOIN \\\"pg_namespace\\\" AS \\\"n\\\" ON \\\"n\\\".\\\"oid\\\" = \\\"c\\\".\\\"connamespace\\\" WHERE (\\\"c\\\".\\\"conname\\\" = $1 AND \\\"n\\\".\\\"nspname\\\" = $2 AND \\\"c\\\".\\\"conrelid\\\" = to_regclass($3))) AS \\\"result\\\"\",\n\t\t\t\"params\": [\n\t\t\t\t\"session_userId_fkey\",\n\t\t\t\t\"auth\",\n\t\t\t\t\"\\\"auth\\\".\\\"session\\\"\"\n\t\t\t]\n\t\t}],\n\t\t\"execute\": [{\n\t\t\t\"description\": \"add FK \\\"session_userId_fkey\\\"\",\n\t\t\t\"sql\": \"ALTER TABLE \\\"auth\\\".\\\"session\\\"\\nADD CONSTRAINT \\\"session_userId_fkey\\\"\\nFOREIGN KEY (\\\"userId\\\")\\nREFERENCES \\\"auth\\\".\\\"user\\\" (\\\"id\\\")\\nON DELETE CASCADE\"\n\t\t}],\n\t\t\"postcheck\": [{\n\t\t\t\"description\": \"verify FK \\\"session_userId_fkey\\\" exists\",\n\t\t\t\"sql\": \"SELECT EXISTS (SELECT 1 AS \\\"one\\\" FROM \\\"pg_constraint\\\" AS \\\"c\\\" INNER JOIN \\\"pg_namespace\\\" AS \\\"n\\\" ON \\\"n\\\".\\\"oid\\\" = \\\"c\\\".\\\"connamespace\\\" WHERE (\\\"c\\\".\\\"conname\\\" = $1 AND \\\"n\\\".\\\"nspname\\\" = $2 AND \\\"c\\\".\\\"conrelid\\\" = to_regclass($3))) AS \\\"result\\\"\",\n\t\t\t\"params\": [\n\t\t\t\t\"session_userId_fkey\",\n\t\t\t\t\"auth\",\n\t\t\t\t\"\\\"auth\\\".\\\"session\\\"\"\n\t\t\t]\n\t\t}]\n\t}\n];\n//#endregion\n//#region src/pack/index.ts\n/**\n* The `auth` contract space as a Prisma Next extension pack (mirrors\n* `@prisma/orm-extension-supabase`'s `supabasePack`): the emitted Better\n* Auth contract plus the shipped migration packages, in-memory. A consumer\n* lists `authPack` in their `prisma-next.config.ts` and their normal\n* migration step creates and evolves the auth tables beside their own —\n* `migration plan` materialises the shipped packages into the project's\n* `migrations/auth/` directory.\n*\n* Control policy is MANAGED (the emit default) — unlike Supabase's external\n* tables, OUR migrations create these. Regeneration: edit `contract.prisma`,\n* run `prisma-next contract emit`, and re-author the migration.\n*/\nconst contract = blindCast(contract_default);\nconst authContractSpace = {\n\tcontractJson: contract,\n\tmigrations: [{\n\t\tdirName: \"0001_init\",\n\t\tmetadata: migration_default,\n\t\tops: blindCast(ops_default)\n\t}],\n\theadRef: {\n\t\thash: AUTH_PACK_HEAD_HASH,\n\t\tinvariants: []\n\t}\n};\nassertDescriptorSelfConsistency({\n\textensionId: AUTH_PACK_ID,\n\ttarget: contract.target,\n\ttargetFamily: contract.targetFamily,\n\tstorage: contract.storage,\n\theadRefHash: AUTH_PACK_HEAD_HASH,\n\t...sqlContractCanonicalizationHooks\n});\n/** The `auth` extension pack — list it in a consumer's `prisma-next.config.ts`. */\nconst authPack = {\n\tkind: \"extension\",\n\tid: AUTH_PACK_ID,\n\tfamilyId: \"sql\",\n\ttargetId: \"postgres\",\n\tversion,\n\tcontractSpace: authContractSpace,\n\tcreate: () => ({\n\t\tfamilyId: \"sql\",\n\t\ttargetId: \"postgres\"\n\t})\n};\n//#endregion\nexport { AUTH_PACK_HEAD_HASH, AUTH_PACK_ID, AUTH_SCHEMA, authPack, authPack as default };\n\n//# sourceMappingURL=pack.mjs.map"],"mappings":";;;;;AAKA,IAAI,UAAU;AAGd,IAAI,oBAAoB;CACvB,MAAM;CACN,IAAI;CACJ,oBAAoB,CAAC;CACrB,WAAW;CACX,eAAe;AAChB;AAGA,IAAI,cAAc;CACjB;EACC,MAAM;EACN,SAAS;EACT,kBAAkB;EAClB,UAAU,EAAE,MAAM,WA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X;AACD"}
@@ -221141,7 +221141,7 @@ function createPostgresControlClient(options = {}) {
221141
221141
  ...ifDefined("extensions", options.extensions)
221142
221142
  });
221143
221143
  }
221144
- var version = "0.10.0-dev.1";
221144
+ var version = "0.10.0";
221145
221145
  var migration_default = {
221146
221146
  from: null,
221147
221147
  to: "6bbd4dc1c19c8aa5e0d60c9755e0f8ea07ba1c01d20c48cf3aa7226e4ee7d33f",