@authhero/kysely-adapter 10.118.0 → 10.119.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.
- package/dist/kysely-adapter.cjs +12 -12
- package/dist/kysely-adapter.d.ts +1 -0
- package/dist/kysely-adapter.mjs +936 -914
- package/package.json +2 -2
package/dist/kysely-adapter.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { nanoid as k, customAlphabet as $e } from "nanoid";
|
|
|
5
5
|
import { parseUserId as Ee, flowSchema as U, codeSchema as Ie, loginSessionSchema as ze, LoginSessionState as ie, promptSettingSchema as Pe, formSchema as q, resourceServerSchema as De } from "@authhero/adapter-interfaces";
|
|
6
6
|
import "@hono/zod-openapi";
|
|
7
7
|
import { sql as h, Migrator as ce } from "kysely";
|
|
8
|
-
var
|
|
8
|
+
var R = class extends Error {
|
|
9
9
|
/**
|
|
10
10
|
* Creates an instance of `HTTPException`.
|
|
11
11
|
* @param status - HTTP status code for the exception. Defaults to 500.
|
|
@@ -64,7 +64,7 @@ function Ae(e) {
|
|
|
64
64
|
};
|
|
65
65
|
e.isTransaction ? await d(e) : await e.transaction().execute(d);
|
|
66
66
|
} catch (d) {
|
|
67
|
-
throw d.code === "SQLITE_CONSTRAINT_UNIQUE" || d.message.includes("AlreadyExists") ? new
|
|
67
|
+
throw d.code === "SQLITE_CONSTRAINT_UNIQUE" || d.message.includes("AlreadyExists") ? new R(409, { message: "User already exists" }) : new R(500, { message: `${d.code}, ${d.message}` });
|
|
68
68
|
}
|
|
69
69
|
return {
|
|
70
70
|
...i,
|
|
@@ -279,11 +279,11 @@ function Me(e) {
|
|
|
279
279
|
)
|
|
280
280
|
).execute(), await e.deleteFrom("users").where("users.tenant_id", "=", t).where("users.linked_to", "=", a).execute(), (await e.deleteFrom("users").where("users.tenant_id", "=", t).where("users.user_id", "=", a).execute()).length === 1);
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function M(e, t = "", a = {}) {
|
|
283
283
|
for (let n in e)
|
|
284
284
|
if (Object.prototype.hasOwnProperty.call(e, n)) {
|
|
285
285
|
const o = t ? `${t}_${n}` : n, r = e[n];
|
|
286
|
-
typeof r == "object" && r !== null && !Array.isArray(r) ?
|
|
286
|
+
typeof r == "object" && r !== null && !Array.isArray(r) ? M(r, o, a) : typeof r == "boolean" ? a[o] = r ? 1 : 0 : a[o] = r;
|
|
287
287
|
}
|
|
288
288
|
return a;
|
|
289
289
|
}
|
|
@@ -307,7 +307,7 @@ function le(e, t) {
|
|
|
307
307
|
}
|
|
308
308
|
function Je(e) {
|
|
309
309
|
return async (t, a, n) => {
|
|
310
|
-
const o =
|
|
310
|
+
const o = M({
|
|
311
311
|
...n,
|
|
312
312
|
updated_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
313
313
|
app_metadata: n.app_metadata ? JSON.stringify(n.app_metadata) : void 0,
|
|
@@ -498,7 +498,7 @@ function Ge(e) {
|
|
|
498
498
|
try {
|
|
499
499
|
await e.insertInto("tenants").values(n).execute();
|
|
500
500
|
} catch (s) {
|
|
501
|
-
throw (o = s == null ? void 0 : s.message) != null && o.includes("UNIQUE constraint failed") || (r = s == null ? void 0 : s.message) != null && r.includes("duplicate key") || (s == null ? void 0 : s.code) === "SQLITE_CONSTRAINT" || (s == null ? void 0 : s.code) === "23505" ? new
|
|
501
|
+
throw (o = s == null ? void 0 : s.message) != null && o.includes("UNIQUE constraint failed") || (r = s == null ? void 0 : s.message) != null && r.includes("duplicate key") || (s == null ? void 0 : s.code) === "SQLITE_CONSTRAINT" || (s == null ? void 0 : s.code) === "23505" ? new R(409, {
|
|
502
502
|
message: `Tenant with ID '${a.id}' already exists`
|
|
503
503
|
}) : s;
|
|
504
504
|
}
|
|
@@ -677,7 +677,7 @@ function pe(e) {
|
|
|
677
677
|
}
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
|
-
function
|
|
680
|
+
function D(e, t = (/* @__PURE__ */ new Date(0)).toISOString()) {
|
|
681
681
|
return pe(e) ?? t;
|
|
682
682
|
}
|
|
683
683
|
function v(e) {
|
|
@@ -689,11 +689,11 @@ function v(e) {
|
|
|
689
689
|
function W() {
|
|
690
690
|
return (/* @__PURE__ */ new Date()).toISOString();
|
|
691
691
|
}
|
|
692
|
-
function
|
|
692
|
+
function A(e, t, a = []) {
|
|
693
693
|
const n = {};
|
|
694
694
|
for (const o of t) {
|
|
695
695
|
const r = o.replace(/_ts$/, "");
|
|
696
|
-
n[r] =
|
|
696
|
+
n[r] = D(e[o]);
|
|
697
697
|
}
|
|
698
698
|
for (const o of a) {
|
|
699
699
|
const r = o.replace(/_ts$/, "");
|
|
@@ -719,7 +719,7 @@ function it(e) {
|
|
|
719
719
|
used_at_ts: _,
|
|
720
720
|
revoked_at_ts: p,
|
|
721
721
|
...f
|
|
722
|
-
} = n, g =
|
|
722
|
+
} = n, g = A(
|
|
723
723
|
{
|
|
724
724
|
created_at_ts: i,
|
|
725
725
|
updated_at_ts: d,
|
|
@@ -819,7 +819,7 @@ function ut(e) {
|
|
|
819
819
|
used_at_ts: X,
|
|
820
820
|
revoked_at_ts: Ne,
|
|
821
821
|
...be
|
|
822
|
-
} = p, Se =
|
|
822
|
+
} = p, Se = A(
|
|
823
823
|
{
|
|
824
824
|
created_at_ts: b,
|
|
825
825
|
updated_at_ts: C,
|
|
@@ -1856,7 +1856,7 @@ function xa(e) {
|
|
|
1856
1856
|
created_at_ts: g,
|
|
1857
1857
|
updated_at_ts: y,
|
|
1858
1858
|
...b
|
|
1859
|
-
} = m, C =
|
|
1859
|
+
} = m, C = A({ created_at_ts: g, updated_at_ts: y }, [
|
|
1860
1860
|
"created_at_ts",
|
|
1861
1861
|
"updated_at_ts"
|
|
1862
1862
|
]);
|
|
@@ -1893,7 +1893,7 @@ function Ta(e) {
|
|
|
1893
1893
|
created_at_ts: r,
|
|
1894
1894
|
updated_at_ts: s,
|
|
1895
1895
|
...i
|
|
1896
|
-
} = n, d =
|
|
1896
|
+
} = n, d = A({ created_at_ts: r, updated_at_ts: s }, [
|
|
1897
1897
|
"created_at_ts",
|
|
1898
1898
|
"updated_at_ts"
|
|
1899
1899
|
]);
|
|
@@ -1960,7 +1960,7 @@ function ka(e) {
|
|
|
1960
1960
|
...o,
|
|
1961
1961
|
tenant_id: t
|
|
1962
1962
|
};
|
|
1963
|
-
return await e.insertInto("themes").values(
|
|
1963
|
+
return await e.insertInto("themes").values(M(r)).execute(), o;
|
|
1964
1964
|
};
|
|
1965
1965
|
}
|
|
1966
1966
|
function $a(e) {
|
|
@@ -1994,7 +1994,7 @@ function Ea(e) {
|
|
|
1994
1994
|
}
|
|
1995
1995
|
function Ia(e) {
|
|
1996
1996
|
return async (t, a, n) => {
|
|
1997
|
-
const { themeId: o, ...r } = n, s =
|
|
1997
|
+
const { themeId: o, ...r } = n, s = M({
|
|
1998
1998
|
...r,
|
|
1999
1999
|
updated_at: (/* @__PURE__ */ new Date()).toISOString()
|
|
2000
2000
|
});
|
|
@@ -2013,7 +2013,7 @@ function Pa(e) {
|
|
|
2013
2013
|
return async (t, a) => {
|
|
2014
2014
|
const n = await e.selectFrom("login_sessions").where("login_sessions.id", "=", a).selectAll().executeTakeFirst();
|
|
2015
2015
|
if (!n) return null;
|
|
2016
|
-
const { created_at_ts: o, updated_at_ts: r, expires_at_ts: s, ...i } = n, d =
|
|
2016
|
+
const { created_at_ts: o, updated_at_ts: r, expires_at_ts: s, ...i } = n, d = A(
|
|
2017
2017
|
{ created_at_ts: o, updated_at_ts: r, expires_at_ts: s },
|
|
2018
2018
|
["created_at_ts", "updated_at_ts", "expires_at_ts"]
|
|
2019
2019
|
);
|
|
@@ -2061,7 +2061,7 @@ function Fa(e) {
|
|
|
2061
2061
|
state: a.state || ie.PENDING,
|
|
2062
2062
|
state_data: a.state_data,
|
|
2063
2063
|
failure_reason: a.failure_reason
|
|
2064
|
-
}, r = Date.now(), s =
|
|
2064
|
+
}, r = Date.now(), s = M(o);
|
|
2065
2065
|
return delete s.created_at, delete s.updated_at, delete s.expires_at, await e.insertInto("login_sessions").values({
|
|
2066
2066
|
...s,
|
|
2067
2067
|
tenant_id: t,
|
|
@@ -2074,7 +2074,7 @@ function Fa(e) {
|
|
|
2074
2074
|
}
|
|
2075
2075
|
function Ra(e) {
|
|
2076
2076
|
return async (t, a, n) => {
|
|
2077
|
-
const { created_at: o, updated_at: r, expires_at: s, ...i } = n, d =
|
|
2077
|
+
const { created_at: o, updated_at: r, expires_at: s, ...i } = n, d = M(i);
|
|
2078
2078
|
return delete d.created_at_ts, delete d.updated_at_ts, delete d.expires_at_ts, delete d.id, delete d.tenant_id, (await e.updateTable("login_sessions").set({
|
|
2079
2079
|
...d,
|
|
2080
2080
|
updated_at_ts: Date.now(),
|
|
@@ -2204,7 +2204,7 @@ function Wa(e) {
|
|
|
2204
2204
|
idle_expires_at_ts: i,
|
|
2205
2205
|
last_exchanged_at_ts: d,
|
|
2206
2206
|
...u
|
|
2207
|
-
} = n, c =
|
|
2207
|
+
} = n, c = A(
|
|
2208
2208
|
{
|
|
2209
2209
|
created_at_ts: r,
|
|
2210
2210
|
expires_at_ts: s,
|
|
@@ -2297,7 +2297,7 @@ function Za(e) {
|
|
|
2297
2297
|
idle_expires_at_ts: b,
|
|
2298
2298
|
last_exchanged_at_ts: C,
|
|
2299
2299
|
...$
|
|
2300
|
-
} = p, I =
|
|
2300
|
+
} = p, I = A(
|
|
2301
2301
|
{
|
|
2302
2302
|
created_at_ts: g,
|
|
2303
2303
|
expires_at_ts: y,
|
|
@@ -2997,7 +2997,7 @@ function jn(e) {
|
|
|
2997
2997
|
try {
|
|
2998
2998
|
await e.insertInto("organizations").values(n).execute();
|
|
2999
2999
|
} catch (o) {
|
|
3000
|
-
throw o.code === "SQLITE_CONSTRAINT_UNIQUE" || o.message.includes("AlreadyExists") ? new
|
|
3000
|
+
throw o.code === "SQLITE_CONSTRAINT_UNIQUE" || o.message.includes("AlreadyExists") ? new R(409, {
|
|
3001
3001
|
message: "Organization already exists"
|
|
3002
3002
|
}) : o;
|
|
3003
3003
|
}
|
|
@@ -3112,7 +3112,7 @@ function Kn(e) {
|
|
|
3112
3112
|
try {
|
|
3113
3113
|
await e.insertInto("user_organizations").values(n).execute();
|
|
3114
3114
|
} catch (o) {
|
|
3115
|
-
throw o.code === "SQLITE_CONSTRAINT_UNIQUE" || o.code === "ER_DUP_ENTRY" ? new
|
|
3115
|
+
throw o.code === "SQLITE_CONSTRAINT_UNIQUE" || o.code === "ER_DUP_ENTRY" ? new R(409, {
|
|
3116
3116
|
message: "User is already a member of this organization"
|
|
3117
3117
|
}) : o;
|
|
3118
3118
|
}
|
|
@@ -3265,7 +3265,7 @@ function Wn(e) {
|
|
|
3265
3265
|
try {
|
|
3266
3266
|
await e.insertInto("invites").values(i).execute();
|
|
3267
3267
|
} catch (d) {
|
|
3268
|
-
throw d.code === "SQLITE_CONSTRAINT_UNIQUE" || d.message.includes("AlreadyExists") ? new
|
|
3268
|
+
throw d.code === "SQLITE_CONSTRAINT_UNIQUE" || d.message.includes("AlreadyExists") ? new R(409, {
|
|
3269
3269
|
message: "Invite already exists"
|
|
3270
3270
|
}) : d;
|
|
3271
3271
|
}
|
|
@@ -3500,12 +3500,33 @@ function ge(e) {
|
|
|
3500
3500
|
transports: n.transports ? JSON.parse(n.transports) : void 0,
|
|
3501
3501
|
friendly_name: n.friendly_name ?? void 0,
|
|
3502
3502
|
confirmed: n.confirmed === 1,
|
|
3503
|
-
created_at:
|
|
3504
|
-
updated_at:
|
|
3503
|
+
created_at: D(n.created_at_ts),
|
|
3504
|
+
updated_at: D(n.updated_at_ts)
|
|
3505
3505
|
} : null;
|
|
3506
3506
|
};
|
|
3507
3507
|
}
|
|
3508
3508
|
function ro(e) {
|
|
3509
|
+
return async (t, a) => {
|
|
3510
|
+
const n = await e.selectFrom("authentication_methods").where("authentication_methods.tenant_id", "=", t).where("authentication_methods.credential_id", "=", a).selectAll().executeTakeFirst();
|
|
3511
|
+
return n ? {
|
|
3512
|
+
id: n.id,
|
|
3513
|
+
user_id: n.user_id,
|
|
3514
|
+
type: n.type,
|
|
3515
|
+
phone_number: n.phone_number ?? void 0,
|
|
3516
|
+
totp_secret: n.totp_secret ?? void 0,
|
|
3517
|
+
credential_id: n.credential_id ?? void 0,
|
|
3518
|
+
public_key: n.public_key ?? void 0,
|
|
3519
|
+
sign_count: n.sign_count ?? void 0,
|
|
3520
|
+
credential_backed_up: n.credential_backed_up != null ? n.credential_backed_up === 1 : void 0,
|
|
3521
|
+
transports: n.transports ? JSON.parse(n.transports) : void 0,
|
|
3522
|
+
friendly_name: n.friendly_name ?? void 0,
|
|
3523
|
+
confirmed: n.confirmed === 1,
|
|
3524
|
+
created_at: D(n.created_at_ts),
|
|
3525
|
+
updated_at: D(n.updated_at_ts)
|
|
3526
|
+
} : null;
|
|
3527
|
+
};
|
|
3528
|
+
}
|
|
3529
|
+
function so(e) {
|
|
3509
3530
|
return async (t, a) => (await e.selectFrom("authentication_methods").where("authentication_methods.tenant_id", "=", t).where("authentication_methods.user_id", "=", a).selectAll().execute()).map((o) => ({
|
|
3510
3531
|
id: o.id,
|
|
3511
3532
|
user_id: o.user_id,
|
|
@@ -3519,11 +3540,11 @@ function ro(e) {
|
|
|
3519
3540
|
transports: o.transports ? JSON.parse(o.transports) : void 0,
|
|
3520
3541
|
friendly_name: o.friendly_name ?? void 0,
|
|
3521
3542
|
confirmed: o.confirmed === 1,
|
|
3522
|
-
created_at:
|
|
3523
|
-
updated_at:
|
|
3543
|
+
created_at: D(o.created_at_ts),
|
|
3544
|
+
updated_at: D(o.updated_at_ts)
|
|
3524
3545
|
}));
|
|
3525
3546
|
}
|
|
3526
|
-
function
|
|
3547
|
+
function io(e) {
|
|
3527
3548
|
return async (t, a, n) => {
|
|
3528
3549
|
const r = {
|
|
3529
3550
|
updated_at_ts: Date.now()
|
|
@@ -3535,19 +3556,20 @@ function so(e) {
|
|
|
3535
3556
|
return s;
|
|
3536
3557
|
};
|
|
3537
3558
|
}
|
|
3538
|
-
function
|
|
3559
|
+
function co(e) {
|
|
3539
3560
|
return async (t, a) => (await e.deleteFrom("authentication_methods").where("authentication_methods.tenant_id", "=", t).where("authentication_methods.id", "=", a).executeTakeFirst()).numDeletedRows > 0;
|
|
3540
3561
|
}
|
|
3541
|
-
function
|
|
3562
|
+
function lo(e) {
|
|
3542
3563
|
return {
|
|
3543
3564
|
create: oo(e),
|
|
3544
3565
|
get: ge(e),
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3566
|
+
getByCredentialId: ro(e),
|
|
3567
|
+
list: so(e),
|
|
3568
|
+
update: io(e),
|
|
3569
|
+
remove: co(e)
|
|
3548
3570
|
};
|
|
3549
3571
|
}
|
|
3550
|
-
function
|
|
3572
|
+
function uo(e) {
|
|
3551
3573
|
return async (t, a) => {
|
|
3552
3574
|
const n = k();
|
|
3553
3575
|
return await e.insertInto("outbox_events").values({
|
|
@@ -3566,7 +3588,7 @@ function lo(e) {
|
|
|
3566
3588
|
}).execute(), n;
|
|
3567
3589
|
};
|
|
3568
3590
|
}
|
|
3569
|
-
function
|
|
3591
|
+
function _o(e) {
|
|
3570
3592
|
return async (t) => t.length === 0 ? [] : (await e.selectFrom("outbox_events").selectAll().where("id", "in", t).execute()).map((n) => ({
|
|
3571
3593
|
...JSON.parse(n.payload),
|
|
3572
3594
|
id: n.id,
|
|
@@ -3577,7 +3599,7 @@ function uo(e) {
|
|
|
3577
3599
|
error: n.error
|
|
3578
3600
|
}));
|
|
3579
3601
|
}
|
|
3580
|
-
function
|
|
3602
|
+
function mo(e) {
|
|
3581
3603
|
return async (t) => {
|
|
3582
3604
|
const a = (/* @__PURE__ */ new Date()).toISOString();
|
|
3583
3605
|
return (await e.selectFrom("outbox_events").selectAll().where("processed_at", "is", null).where(
|
|
@@ -3601,7 +3623,7 @@ function _o(e) {
|
|
|
3601
3623
|
}));
|
|
3602
3624
|
};
|
|
3603
3625
|
}
|
|
3604
|
-
function
|
|
3626
|
+
function ho(e) {
|
|
3605
3627
|
return async (t, a, n) => {
|
|
3606
3628
|
if (t.length === 0) return [];
|
|
3607
3629
|
const o = (/* @__PURE__ */ new Date()).toISOString(), r = new Date(Date.now() + n).toISOString();
|
|
@@ -3616,14 +3638,14 @@ function mo(e) {
|
|
|
3616
3638
|
).execute(), (await e.selectFrom("outbox_events").select("id").where("id", "in", t).where("claimed_by", "=", a).where("claim_expires_at", "=", r).execute()).map((i) => i.id);
|
|
3617
3639
|
};
|
|
3618
3640
|
}
|
|
3619
|
-
function
|
|
3641
|
+
function po(e) {
|
|
3620
3642
|
return async (t) => {
|
|
3621
3643
|
if (t.length === 0) return;
|
|
3622
3644
|
const a = (/* @__PURE__ */ new Date()).toISOString();
|
|
3623
3645
|
await e.updateTable("outbox_events").set({ processed_at: a }).where("id", "in", t).execute();
|
|
3624
3646
|
};
|
|
3625
3647
|
}
|
|
3626
|
-
function
|
|
3648
|
+
function fo(e) {
|
|
3627
3649
|
return async (t, a, n) => {
|
|
3628
3650
|
await e.updateTable("outbox_events").set({
|
|
3629
3651
|
error: a,
|
|
@@ -3634,21 +3656,21 @@ function po(e) {
|
|
|
3634
3656
|
}).where("id", "=", t).execute();
|
|
3635
3657
|
};
|
|
3636
3658
|
}
|
|
3637
|
-
function
|
|
3659
|
+
function go(e) {
|
|
3638
3660
|
return async (t) => {
|
|
3639
3661
|
const a = await e.deleteFrom("outbox_events").where("processed_at", "is not", null).where("processed_at", "<", t).executeTakeFirst();
|
|
3640
3662
|
return Number(a.numDeletedRows);
|
|
3641
3663
|
};
|
|
3642
3664
|
}
|
|
3643
|
-
function
|
|
3665
|
+
function wo(e) {
|
|
3644
3666
|
return {
|
|
3645
|
-
create:
|
|
3646
|
-
getByIds:
|
|
3647
|
-
getUnprocessed:
|
|
3648
|
-
claimEvents:
|
|
3649
|
-
markProcessed:
|
|
3650
|
-
markRetry:
|
|
3651
|
-
cleanup:
|
|
3667
|
+
create: uo(e),
|
|
3668
|
+
getByIds: _o(e),
|
|
3669
|
+
getUnprocessed: mo(e),
|
|
3670
|
+
claimEvents: ho(e),
|
|
3671
|
+
markProcessed: po(e),
|
|
3672
|
+
markRetry: fo(e),
|
|
3673
|
+
cleanup: go(e)
|
|
3652
3674
|
};
|
|
3653
3675
|
}
|
|
3654
3676
|
class we {
|
|
@@ -3660,7 +3682,7 @@ class we {
|
|
|
3660
3682
|
return this.migrations;
|
|
3661
3683
|
}
|
|
3662
3684
|
}
|
|
3663
|
-
async function
|
|
3685
|
+
async function yo(e) {
|
|
3664
3686
|
await e.schema.createTable("tenants").addColumn("id", "varchar(255)", (t) => t.primaryKey()).addColumn("name", "varchar(255)").addColumn("audience", "varchar(255)").addColumn("sender_email", "varchar(255)").addColumn("sender_name", "varchar(255)").addColumn("language", "varchar(255)").addColumn("logo", "varchar(255)").addColumn("primary_color", "varchar(255)").addColumn("secondary_color", "varchar(255)").addColumn("created_at", "varchar(255)", (t) => t.notNull()).addColumn("updated_at", "varchar(255)", (t) => t.notNull()).execute(), await e.schema.createTable("users").addColumn("user_id", "varchar(255)", (t) => t.notNull()).addColumn(
|
|
3665
3687
|
"tenant_id",
|
|
3666
3688
|
"varchar(255)",
|
|
@@ -3732,35 +3754,35 @@ async function wo(e) {
|
|
|
3732
3754
|
(t) => t.references("tenants.id").onDelete("cascade").notNull()
|
|
3733
3755
|
).addColumn("domain", "varchar(255)", (t) => t.notNull()).addColumn("email_service", "varchar(255)").addColumn("email_api_key", "varchar(255)").addColumn("dkim_private_key", "varchar(2048)").addColumn("dkim_public_key", "varchar(2048)").addColumn("created_at", "varchar(255)", (t) => t.notNull()).addColumn("updated_at", "varchar(255)", (t) => t.notNull()).execute();
|
|
3734
3756
|
}
|
|
3735
|
-
async function
|
|
3757
|
+
async function vo(e) {
|
|
3736
3758
|
await e.schema.dropTable("domains").execute(), await e.schema.dropTable("members").execute(), await e.schema.dropTable("users").execute(), await e.schema.dropTable("connections").execute(), await e.schema.dropTable("applications").execute(), await e.schema.dropTable("migrations").execute(), await e.schema.dropTable("tenants").execute();
|
|
3737
3759
|
}
|
|
3738
|
-
const
|
|
3760
|
+
const Co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3739
3761
|
__proto__: null,
|
|
3740
|
-
down:
|
|
3741
|
-
up:
|
|
3762
|
+
down: vo,
|
|
3763
|
+
up: yo
|
|
3742
3764
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3743
|
-
async function
|
|
3765
|
+
async function xo(e) {
|
|
3744
3766
|
await e.schema.alterTable("tenants").addColumn("support_url", "varchar(255)").execute();
|
|
3745
3767
|
}
|
|
3746
|
-
async function
|
|
3768
|
+
async function To(e) {
|
|
3747
3769
|
await e.schema.alterTable("tenants").dropColumn("support_url").execute();
|
|
3748
3770
|
}
|
|
3749
|
-
const
|
|
3771
|
+
const No = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3750
3772
|
__proto__: null,
|
|
3751
|
-
down:
|
|
3752
|
-
up:
|
|
3773
|
+
down: To,
|
|
3774
|
+
up: xo
|
|
3753
3775
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3754
|
-
async function No(e) {
|
|
3755
|
-
}
|
|
3756
3776
|
async function bo(e) {
|
|
3757
3777
|
}
|
|
3758
|
-
|
|
3778
|
+
async function So(e) {
|
|
3779
|
+
}
|
|
3780
|
+
const Oo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3759
3781
|
__proto__: null,
|
|
3760
|
-
down:
|
|
3761
|
-
up:
|
|
3782
|
+
down: So,
|
|
3783
|
+
up: bo
|
|
3762
3784
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3763
|
-
async function
|
|
3785
|
+
async function ko(e) {
|
|
3764
3786
|
await e.schema.createTable("logs").addColumn("id", "varchar(255)", (t) => t.notNull().primaryKey()).addColumn("category", "varchar(255)", (t) => t.notNull()).addColumn("tenant_id", "varchar(64)").addColumn("user_id", "varchar(64)").addForeignKeyConstraint(
|
|
3765
3787
|
"tenant_id_constraint",
|
|
3766
3788
|
["tenant_id"],
|
|
@@ -3769,24 +3791,24 @@ async function Oo(e) {
|
|
|
3769
3791
|
(t) => t.onDelete("cascade")
|
|
3770
3792
|
).addColumn("ip", "varchar(255)").addColumn("type", "varchar(8)", (t) => t.notNull()).addColumn("date", "varchar(25)", (t) => t.notNull()).addColumn("client_id", "varchar(255)").addColumn("client_name", "varchar(255)").addColumn("user_agent", "varchar(255)").addColumn("description", "varchar(255)").addColumn("details", "varchar(2048)").execute();
|
|
3771
3793
|
}
|
|
3772
|
-
async function
|
|
3794
|
+
async function $o(e) {
|
|
3773
3795
|
await e.schema.dropTable("logs").execute();
|
|
3774
3796
|
}
|
|
3775
|
-
const
|
|
3797
|
+
const Eo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3776
3798
|
__proto__: null,
|
|
3777
|
-
down:
|
|
3778
|
-
up:
|
|
3799
|
+
down: $o,
|
|
3800
|
+
up: ko
|
|
3779
3801
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3780
|
-
async function Eo(e) {
|
|
3781
|
-
}
|
|
3782
3802
|
async function Io(e) {
|
|
3783
3803
|
}
|
|
3784
|
-
|
|
3804
|
+
async function zo(e) {
|
|
3805
|
+
}
|
|
3806
|
+
const Po = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3785
3807
|
__proto__: null,
|
|
3786
|
-
down:
|
|
3787
|
-
up:
|
|
3808
|
+
down: zo,
|
|
3809
|
+
up: Io
|
|
3788
3810
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3789
|
-
async function
|
|
3811
|
+
async function Do(e) {
|
|
3790
3812
|
await e.schema.createTable("sessions").addColumn("id", "varchar(21)", (t) => t.primaryKey()).addColumn("tenant_id", "varchar(255)").addColumn("user_id", "varchar(255)").addForeignKeyConstraint(
|
|
3791
3813
|
"user_id_constraint",
|
|
3792
3814
|
["user_id", "tenant_id"],
|
|
@@ -3811,15 +3833,15 @@ async function Po(e) {
|
|
|
3811
3833
|
(t) => t.references("applications.id").onDelete("cascade").notNull()
|
|
3812
3834
|
).addColumn("code", "varchar(255)", (t) => t.notNull()).addColumn("email", "varchar(255)", (t) => t.notNull()).addColumn("user_id", "varchar(255)").addColumn("send", "varchar(255)").addColumn("nonce", "varchar(255)").addColumn("state", "varchar(1024)").addColumn("scope", "varchar(1024)").addColumn("response_type", "varchar(256)").addColumn("response_mode", "varchar(256)").addColumn("redirect_uri", "varchar(1024)").addColumn("created_at", "varchar(255)", (t) => t.notNull()).addColumn("expires_at", "varchar(255)", (t) => t.notNull()).addColumn("used_at", "varchar(255)").execute(), await e.schema.createIndex("otps_email_index").on("otps").column("email").execute(), await e.schema.createIndex("otps_expires_at_index").on("otps").column("expires_at").execute();
|
|
3813
3835
|
}
|
|
3814
|
-
async function
|
|
3836
|
+
async function Ao(e) {
|
|
3815
3837
|
await e.schema.dropTable("sessions").execute(), await e.schema.dropTable("tickets").execute(), await e.schema.dropTable("otps").execute();
|
|
3816
3838
|
}
|
|
3817
|
-
const
|
|
3839
|
+
const jo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3818
3840
|
__proto__: null,
|
|
3819
|
-
down:
|
|
3820
|
-
up:
|
|
3841
|
+
down: Ao,
|
|
3842
|
+
up: Do
|
|
3821
3843
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3822
|
-
async function
|
|
3844
|
+
async function Fo(e) {
|
|
3823
3845
|
await e.schema.createTable("passwords").addColumn("tenant_id", "varchar(255)").addColumn("user_id", "varchar(255)").addPrimaryKeyConstraint("passwords_pkey", ["user_id", "tenant_id"]).addForeignKeyConstraint(
|
|
3824
3846
|
"user_id_constraint",
|
|
3825
3847
|
["user_id", "tenant_id"],
|
|
@@ -3834,24 +3856,24 @@ async function jo(e) {
|
|
|
3834
3856
|
(t) => t.onDelete("cascade")
|
|
3835
3857
|
).addColumn("type", "varchar(255)", (t) => t.notNull()).addColumn("created_at", "varchar(255)", (t) => t.notNull()).addColumn("expires_at", "varchar(255)", (t) => t.notNull()).addColumn("used_at", "varchar(255)").execute(), await e.schema.createIndex("codes_expires_at_index").on("codes").column("expires_at").execute();
|
|
3836
3858
|
}
|
|
3837
|
-
async function
|
|
3859
|
+
async function Ro(e) {
|
|
3838
3860
|
await e.schema.dropTable("passwords").execute(), await e.schema.dropTable("codes").execute();
|
|
3839
3861
|
}
|
|
3840
|
-
const
|
|
3862
|
+
const Mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3841
3863
|
__proto__: null,
|
|
3842
|
-
down:
|
|
3843
|
-
up:
|
|
3864
|
+
down: Ro,
|
|
3865
|
+
up: Fo
|
|
3844
3866
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3845
|
-
async function Mo(e) {
|
|
3846
|
-
}
|
|
3847
3867
|
async function Jo(e) {
|
|
3848
3868
|
}
|
|
3849
|
-
|
|
3869
|
+
async function Lo(e) {
|
|
3870
|
+
}
|
|
3871
|
+
const Ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3850
3872
|
__proto__: null,
|
|
3851
|
-
down:
|
|
3852
|
-
up:
|
|
3873
|
+
down: Lo,
|
|
3874
|
+
up: Jo
|
|
3853
3875
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3854
|
-
async function
|
|
3876
|
+
async function qo(e) {
|
|
3855
3877
|
await e.schema.alterTable("passwords").addColumn(
|
|
3856
3878
|
"password",
|
|
3857
3879
|
"varchar(255)",
|
|
@@ -3859,86 +3881,86 @@ async function Ko(e) {
|
|
|
3859
3881
|
(t) => t.notNull()
|
|
3860
3882
|
).execute();
|
|
3861
3883
|
}
|
|
3862
|
-
async function
|
|
3884
|
+
async function Bo(e) {
|
|
3863
3885
|
await e.schema.alterTable("passwords").dropColumn("password").execute();
|
|
3864
3886
|
}
|
|
3865
|
-
const
|
|
3887
|
+
const Uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3866
3888
|
__proto__: null,
|
|
3867
|
-
down:
|
|
3868
|
-
up:
|
|
3889
|
+
down: Bo,
|
|
3890
|
+
up: qo
|
|
3869
3891
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3870
|
-
async function Uo(e) {
|
|
3871
|
-
}
|
|
3872
3892
|
async function Qo(e) {
|
|
3873
3893
|
}
|
|
3874
|
-
|
|
3894
|
+
async function Ho(e) {
|
|
3895
|
+
}
|
|
3896
|
+
const Yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3875
3897
|
__proto__: null,
|
|
3876
|
-
down:
|
|
3877
|
-
up:
|
|
3898
|
+
down: Ho,
|
|
3899
|
+
up: Qo
|
|
3878
3900
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3879
|
-
async function Yo(e) {
|
|
3880
|
-
}
|
|
3881
3901
|
async function Wo(e) {
|
|
3882
3902
|
}
|
|
3883
|
-
|
|
3903
|
+
async function Go(e) {
|
|
3904
|
+
}
|
|
3905
|
+
const Vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3884
3906
|
__proto__: null,
|
|
3885
|
-
down:
|
|
3886
|
-
up:
|
|
3907
|
+
down: Go,
|
|
3908
|
+
up: Wo
|
|
3887
3909
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3888
|
-
async function Vo(e) {
|
|
3889
|
-
}
|
|
3890
3910
|
async function Xo(e) {
|
|
3891
3911
|
}
|
|
3892
|
-
|
|
3912
|
+
async function Zo(e) {
|
|
3913
|
+
}
|
|
3914
|
+
const er = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3893
3915
|
__proto__: null,
|
|
3894
|
-
down:
|
|
3895
|
-
up:
|
|
3916
|
+
down: Zo,
|
|
3917
|
+
up: Xo
|
|
3896
3918
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3897
|
-
async function
|
|
3919
|
+
async function tr(e) {
|
|
3898
3920
|
await e.schema.createIndex("users_email_index").on("users").column("email").execute();
|
|
3899
3921
|
}
|
|
3900
|
-
async function
|
|
3922
|
+
async function ar(e) {
|
|
3901
3923
|
await e.schema.dropIndex("users_email_index").execute();
|
|
3902
3924
|
}
|
|
3903
|
-
const
|
|
3925
|
+
const nr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3904
3926
|
__proto__: null,
|
|
3905
|
-
down:
|
|
3906
|
-
up:
|
|
3927
|
+
down: ar,
|
|
3928
|
+
up: tr
|
|
3907
3929
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3908
|
-
async function
|
|
3930
|
+
async function or(e) {
|
|
3909
3931
|
await e.schema.alterTable("users").addColumn("profileData", "varchar(2048)").execute();
|
|
3910
3932
|
}
|
|
3911
|
-
async function
|
|
3933
|
+
async function rr(e) {
|
|
3912
3934
|
await e.schema.alterTable("users").dropColumn("profileData").execute();
|
|
3913
3935
|
}
|
|
3914
|
-
const
|
|
3936
|
+
const sr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3915
3937
|
__proto__: null,
|
|
3916
|
-
down:
|
|
3917
|
-
up:
|
|
3938
|
+
down: rr,
|
|
3939
|
+
up: or
|
|
3918
3940
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3919
|
-
async function
|
|
3941
|
+
async function ir(e) {
|
|
3920
3942
|
await e.schema.createIndex("users_linked_to_index").on("users").column("linked_to").execute();
|
|
3921
3943
|
}
|
|
3922
|
-
async function
|
|
3944
|
+
async function cr(e) {
|
|
3923
3945
|
await e.schema.dropIndex("users_linked_to_index");
|
|
3924
3946
|
}
|
|
3925
|
-
const
|
|
3947
|
+
const lr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3926
3948
|
__proto__: null,
|
|
3927
|
-
down:
|
|
3928
|
-
up:
|
|
3949
|
+
down: cr,
|
|
3950
|
+
up: ir
|
|
3929
3951
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3930
|
-
async function
|
|
3952
|
+
async function dr(e) {
|
|
3931
3953
|
await e.schema.alterTable("users").addColumn("locale", "varchar(255)").execute();
|
|
3932
3954
|
}
|
|
3933
|
-
async function
|
|
3955
|
+
async function ur(e) {
|
|
3934
3956
|
await e.schema.alterTable("users").dropColumn("locale").execute();
|
|
3935
3957
|
}
|
|
3936
|
-
const
|
|
3958
|
+
const _r = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3937
3959
|
__proto__: null,
|
|
3938
|
-
down:
|
|
3939
|
-
up:
|
|
3960
|
+
down: ur,
|
|
3961
|
+
up: dr
|
|
3940
3962
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3941
|
-
async function
|
|
3963
|
+
async function mr(e) {
|
|
3942
3964
|
await e.schema.createTable("keys").addColumn("kid", "varchar(255)", (t) => t.primaryKey()).addColumn(
|
|
3943
3965
|
"tenant_id",
|
|
3944
3966
|
"varchar(255)",
|
|
@@ -3953,202 +3975,202 @@ async function _r(e) {
|
|
|
3953
3975
|
(t) => t.references("connections.id").onDelete("cascade")
|
|
3954
3976
|
).execute();
|
|
3955
3977
|
}
|
|
3956
|
-
async function
|
|
3978
|
+
async function hr(e) {
|
|
3957
3979
|
await e.schema.dropTable("keys").execute();
|
|
3958
3980
|
}
|
|
3959
|
-
const
|
|
3981
|
+
const pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3960
3982
|
__proto__: null,
|
|
3961
|
-
down:
|
|
3962
|
-
up:
|
|
3983
|
+
down: hr,
|
|
3984
|
+
up: mr
|
|
3963
3985
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3964
|
-
async function pr(e) {
|
|
3965
|
-
}
|
|
3966
3986
|
async function fr(e) {
|
|
3967
3987
|
}
|
|
3968
|
-
|
|
3988
|
+
async function gr(e) {
|
|
3989
|
+
}
|
|
3990
|
+
const wr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3969
3991
|
__proto__: null,
|
|
3970
|
-
down:
|
|
3971
|
-
up:
|
|
3992
|
+
down: gr,
|
|
3993
|
+
up: fr
|
|
3972
3994
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3973
|
-
async function wr(e) {
|
|
3974
|
-
}
|
|
3975
3995
|
async function yr(e) {
|
|
3976
3996
|
}
|
|
3977
|
-
|
|
3997
|
+
async function vr(e) {
|
|
3998
|
+
}
|
|
3999
|
+
const Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3978
4000
|
__proto__: null,
|
|
3979
|
-
down:
|
|
3980
|
-
up:
|
|
4001
|
+
down: vr,
|
|
4002
|
+
up: yr
|
|
3981
4003
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3982
|
-
async function
|
|
4004
|
+
async function xr(e) {
|
|
3983
4005
|
await e.schema.alterTable("otps").addColumn("audience", "varchar(255)").execute();
|
|
3984
4006
|
}
|
|
3985
|
-
async function
|
|
4007
|
+
async function Tr(e) {
|
|
3986
4008
|
await e.schema.alterTable("otps").dropColumn("audience").execute();
|
|
3987
4009
|
}
|
|
3988
|
-
const
|
|
4010
|
+
const Nr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3989
4011
|
__proto__: null,
|
|
3990
|
-
down:
|
|
3991
|
-
up:
|
|
4012
|
+
down: Tr,
|
|
4013
|
+
up: xr
|
|
3992
4014
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3993
|
-
async function Nr(e) {
|
|
3994
|
-
}
|
|
3995
4015
|
async function br(e) {
|
|
3996
4016
|
}
|
|
3997
|
-
|
|
4017
|
+
async function Sr(e) {
|
|
4018
|
+
}
|
|
4019
|
+
const Or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3998
4020
|
__proto__: null,
|
|
3999
|
-
down:
|
|
4000
|
-
up:
|
|
4021
|
+
down: Sr,
|
|
4022
|
+
up: br
|
|
4001
4023
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4002
|
-
async function
|
|
4024
|
+
async function kr(e) {
|
|
4003
4025
|
await e.schema.alterTable("logs").dropColumn("category").execute();
|
|
4004
4026
|
}
|
|
4005
|
-
async function
|
|
4027
|
+
async function $r(e) {
|
|
4006
4028
|
await e.schema.alterTable("logs").addColumn("category", "varchar(255)", (t) => t.notNull()).execute();
|
|
4007
4029
|
}
|
|
4008
|
-
const
|
|
4030
|
+
const Er = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4009
4031
|
__proto__: null,
|
|
4010
|
-
down:
|
|
4011
|
-
up:
|
|
4032
|
+
down: $r,
|
|
4033
|
+
up: kr
|
|
4012
4034
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4013
|
-
async function
|
|
4035
|
+
async function Ir(e) {
|
|
4014
4036
|
await e.schema.alterTable("users").dropColumn("tags").execute();
|
|
4015
4037
|
}
|
|
4016
|
-
async function
|
|
4038
|
+
async function zr(e) {
|
|
4017
4039
|
await e.schema.alterTable("users").addColumn("tags", "varchar(255)").execute();
|
|
4018
4040
|
}
|
|
4019
|
-
const
|
|
4041
|
+
const Pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4020
4042
|
__proto__: null,
|
|
4021
|
-
down:
|
|
4022
|
-
up:
|
|
4043
|
+
down: zr,
|
|
4044
|
+
up: Ir
|
|
4023
4045
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4024
|
-
async function
|
|
4046
|
+
async function Dr(e) {
|
|
4025
4047
|
await e.schema.createIndex("logs_user_id").on("logs").column("user_id").execute(), await e.schema.createIndex("logs_tenant_id").on("logs").column("tenant_id").execute(), await e.schema.createIndex("logs_date").on("logs").column("date").execute();
|
|
4026
4048
|
}
|
|
4027
|
-
async function
|
|
4049
|
+
async function Ar(e) {
|
|
4028
4050
|
await e.schema.dropIndex("logs_user_id"), await e.schema.dropIndex("logs_tenant_id"), await e.schema.dropIndex("logs_date");
|
|
4029
4051
|
}
|
|
4030
|
-
const
|
|
4052
|
+
const jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4031
4053
|
__proto__: null,
|
|
4032
|
-
down:
|
|
4033
|
-
up:
|
|
4054
|
+
down: Ar,
|
|
4055
|
+
up: Dr
|
|
4034
4056
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4035
|
-
async function
|
|
4057
|
+
async function Fr(e) {
|
|
4036
4058
|
await e.schema.alterTable("logs").dropColumn("details").execute(), await e.schema.alterTable("logs").addColumn("details", "varchar(8192)").execute();
|
|
4037
4059
|
}
|
|
4038
|
-
async function
|
|
4060
|
+
async function Rr(e) {
|
|
4039
4061
|
await e.schema.alterTable("logs").dropColumn("details").execute(), await e.schema.alterTable("logs").addColumn("details", "varchar(2048)").execute();
|
|
4040
4062
|
}
|
|
4041
|
-
const
|
|
4063
|
+
const Mr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4042
4064
|
__proto__: null,
|
|
4043
|
-
down:
|
|
4044
|
-
up:
|
|
4065
|
+
down: Rr,
|
|
4066
|
+
up: Fr
|
|
4045
4067
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4046
|
-
async function
|
|
4068
|
+
async function Jr(e) {
|
|
4047
4069
|
await e.schema.alterTable("logs").addColumn("user_name", "varchar(255)").execute(), await e.schema.alterTable("logs").addColumn("auth0_client", "varchar(255)").execute(), await e.schema.alterTable("logs").addColumn("isMobile", "boolean").execute(), await e.schema.alterTable("logs").addColumn("connection", "varchar(255)").execute(), await e.schema.alterTable("logs").addColumn("connection_id", "varchar(255)").execute(), await e.schema.alterTable("logs").addColumn("audience", "varchar(255)").execute(), await e.schema.alterTable("logs").addColumn("scope", "varchar(255)").execute(), await e.schema.alterTable("logs").addColumn("strategy", "varchar(255)").execute(), await e.schema.alterTable("logs").addColumn("strategy_type", "varchar(255)").execute(), await e.schema.alterTable("logs").addColumn("hostname", "varchar(255)").execute(), await e.schema.alterTable("logs").addColumn("session_connection", "varchar(255)").execute();
|
|
4048
4070
|
}
|
|
4049
|
-
async function
|
|
4071
|
+
async function Lr(e) {
|
|
4050
4072
|
await e.schema.alterTable("logs").dropColumn("user_name").execute(), await e.schema.alterTable("logs").dropColumn("auth0_client").execute(), await e.schema.alterTable("logs").dropColumn("isMobile").execute(), await e.schema.alterTable("logs").dropColumn("connection").execute(), await e.schema.alterTable("logs").dropColumn("connection_id").execute(), await e.schema.alterTable("logs").dropColumn("audience").execute(), await e.schema.alterTable("logs").dropColumn("scope").execute(), await e.schema.alterTable("logs").dropColumn("strategy").execute(), await e.schema.alterTable("logs").dropColumn("strategy_type").execute(), await e.schema.alterTable("logs").dropColumn("hostname").execute(), await e.schema.alterTable("logs").dropColumn("session_connection").execute();
|
|
4051
4073
|
}
|
|
4052
|
-
const
|
|
4074
|
+
const Kr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4053
4075
|
__proto__: null,
|
|
4054
|
-
down:
|
|
4055
|
-
up:
|
|
4076
|
+
down: Lr,
|
|
4077
|
+
up: Jr
|
|
4056
4078
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4057
|
-
async function
|
|
4079
|
+
async function qr(e) {
|
|
4058
4080
|
await e.schema.createIndex("users_name_index").on("users").column("name").execute();
|
|
4059
4081
|
}
|
|
4060
|
-
async function
|
|
4082
|
+
async function Br(e) {
|
|
4061
4083
|
await e.schema.dropIndex("users_name_index").execute();
|
|
4062
4084
|
}
|
|
4063
|
-
const
|
|
4085
|
+
const Ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4064
4086
|
__proto__: null,
|
|
4065
|
-
down:
|
|
4066
|
-
up:
|
|
4087
|
+
down: Br,
|
|
4088
|
+
up: qr
|
|
4067
4089
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4068
|
-
async function Ur(e) {
|
|
4069
|
-
}
|
|
4070
4090
|
async function Qr(e) {
|
|
4091
|
+
}
|
|
4092
|
+
async function Hr(e) {
|
|
4071
4093
|
await e.schema.alterTable("users").dropConstraint("unique_email_provider").execute();
|
|
4072
4094
|
}
|
|
4073
|
-
const
|
|
4095
|
+
const Yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4074
4096
|
__proto__: null,
|
|
4075
|
-
down:
|
|
4076
|
-
up:
|
|
4097
|
+
down: Hr,
|
|
4098
|
+
up: Qr
|
|
4077
4099
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4078
|
-
async function
|
|
4100
|
+
async function Wr(e) {
|
|
4079
4101
|
await e.schema.alterTable("otps").dropColumn("state").execute(), await e.schema.alterTable("otps").addColumn("state", "varchar(8192)").execute();
|
|
4080
4102
|
}
|
|
4081
|
-
async function
|
|
4103
|
+
async function Gr(e) {
|
|
4082
4104
|
await e.schema.alterTable("otps").dropColumn("state").execute(), await e.schema.alterTable("otps").addColumn("state", "varchar(1024)").execute();
|
|
4083
4105
|
}
|
|
4084
|
-
const
|
|
4106
|
+
const Vr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4085
4107
|
__proto__: null,
|
|
4086
|
-
down:
|
|
4087
|
-
up:
|
|
4108
|
+
down: Gr,
|
|
4109
|
+
up: Wr
|
|
4088
4110
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4089
|
-
async function
|
|
4111
|
+
async function Xr(e) {
|
|
4090
4112
|
await e.schema.alterTable("tickets").dropColumn("state").execute(), await e.schema.alterTable("tickets").addColumn("state", "varchar(8192)").execute();
|
|
4091
4113
|
}
|
|
4092
|
-
async function
|
|
4114
|
+
async function Zr(e) {
|
|
4093
4115
|
await e.schema.alterTable("tickets").dropColumn("state").execute(), await e.schema.alterTable("tickets").addColumn("state", "varchar(1024)").execute();
|
|
4094
4116
|
}
|
|
4095
|
-
const
|
|
4117
|
+
const es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4096
4118
|
__proto__: null,
|
|
4097
|
-
down:
|
|
4098
|
-
up:
|
|
4119
|
+
down: Zr,
|
|
4120
|
+
up: Xr
|
|
4099
4121
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4100
|
-
async function
|
|
4122
|
+
async function ts(e) {
|
|
4101
4123
|
await e.schema.createTable("branding").addColumn(
|
|
4102
4124
|
"tenant_id",
|
|
4103
4125
|
"varchar(255)",
|
|
4104
4126
|
(t) => t.references("tenants.id").onDelete("cascade").notNull().primaryKey()
|
|
4105
4127
|
).addColumn("logo_url", "varchar(512)").addColumn("favicon_url", "varchar(512)").addColumn("font_url", "varchar(512)").addColumn("colors_primary", "varchar(8)").addColumn("colors_page_background_type", "varchar(32)").addColumn("colors_page_background_start", "varchar(8)").addColumn("colors_page_background_end", "varchar(8)").addColumn("colors_page_background_angle_dev", "integer").execute();
|
|
4106
4128
|
}
|
|
4107
|
-
async function
|
|
4129
|
+
async function as(e) {
|
|
4108
4130
|
await e.schema.dropTable("branding").execute();
|
|
4109
4131
|
}
|
|
4110
|
-
const
|
|
4132
|
+
const ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4111
4133
|
__proto__: null,
|
|
4112
|
-
down:
|
|
4113
|
-
up:
|
|
4134
|
+
down: as,
|
|
4135
|
+
up: ts
|
|
4114
4136
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4115
|
-
async function ns(e) {
|
|
4116
|
-
}
|
|
4117
4137
|
async function os(e) {
|
|
4118
4138
|
}
|
|
4119
|
-
|
|
4139
|
+
async function rs(e) {
|
|
4140
|
+
}
|
|
4141
|
+
const ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4120
4142
|
__proto__: null,
|
|
4121
|
-
down:
|
|
4122
|
-
up:
|
|
4143
|
+
down: rs,
|
|
4144
|
+
up: os
|
|
4123
4145
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4124
|
-
async function ss(e) {
|
|
4125
|
-
}
|
|
4126
4146
|
async function is(e) {
|
|
4127
4147
|
}
|
|
4128
|
-
|
|
4148
|
+
async function cs(e) {
|
|
4149
|
+
}
|
|
4150
|
+
const ls = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4129
4151
|
__proto__: null,
|
|
4130
|
-
down:
|
|
4131
|
-
up:
|
|
4152
|
+
down: cs,
|
|
4153
|
+
up: is
|
|
4132
4154
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4133
|
-
async function ls(e) {
|
|
4134
|
-
}
|
|
4135
4155
|
async function ds(e) {
|
|
4136
4156
|
}
|
|
4137
|
-
|
|
4157
|
+
async function us(e) {
|
|
4158
|
+
}
|
|
4159
|
+
const _s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4138
4160
|
__proto__: null,
|
|
4139
|
-
down:
|
|
4140
|
-
up:
|
|
4161
|
+
down: us,
|
|
4162
|
+
up: ds
|
|
4141
4163
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4142
|
-
async function _s(e) {
|
|
4143
|
-
}
|
|
4144
4164
|
async function ms(e) {
|
|
4145
4165
|
}
|
|
4146
|
-
|
|
4166
|
+
async function hs(e) {
|
|
4167
|
+
}
|
|
4168
|
+
const ps = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4147
4169
|
__proto__: null,
|
|
4148
|
-
down:
|
|
4149
|
-
up:
|
|
4170
|
+
down: hs,
|
|
4171
|
+
up: ms
|
|
4150
4172
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4151
|
-
async function
|
|
4173
|
+
async function fs(e) {
|
|
4152
4174
|
await e.schema.createTable("authentication_codes").addColumn(
|
|
4153
4175
|
"tenant_id",
|
|
4154
4176
|
"varchar(255)",
|
|
@@ -4159,55 +4181,55 @@ async function ps(e) {
|
|
|
4159
4181
|
(t) => t.references("applications.id").onDelete("cascade").notNull()
|
|
4160
4182
|
).addColumn("user_id", "varchar(255)", (t) => t.notNull()).addColumn("nonce", "varchar(255)").addColumn("state", "varchar(8192)").addColumn("scope", "varchar(1024)").addColumn("response_type", "varchar(256)").addColumn("response_mode", "varchar(256)").addColumn("redirect_uri", "varchar(1024)").addColumn("created_at", "varchar(255)", (t) => t.notNull()).addColumn("expires_at", "varchar(255)", (t) => t.notNull()).addColumn("used_at", "varchar(255)").execute();
|
|
4161
4183
|
}
|
|
4162
|
-
async function
|
|
4184
|
+
async function gs(e) {
|
|
4163
4185
|
await e.schema.dropTable("authentication_codes").execute();
|
|
4164
4186
|
}
|
|
4165
|
-
const
|
|
4187
|
+
const ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4166
4188
|
__proto__: null,
|
|
4167
|
-
down:
|
|
4168
|
-
up:
|
|
4189
|
+
down: gs,
|
|
4190
|
+
up: fs
|
|
4169
4191
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4170
|
-
async function ws(e) {
|
|
4171
|
-
}
|
|
4172
4192
|
async function ys(e) {
|
|
4173
4193
|
}
|
|
4174
|
-
|
|
4194
|
+
async function vs(e) {
|
|
4195
|
+
}
|
|
4196
|
+
const Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4175
4197
|
__proto__: null,
|
|
4176
|
-
down:
|
|
4177
|
-
up:
|
|
4198
|
+
down: vs,
|
|
4199
|
+
up: ys
|
|
4178
4200
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4179
|
-
async function
|
|
4201
|
+
async function xs(e) {
|
|
4180
4202
|
await e.schema.alterTable("otps").addColumn("ip", "varchar(64)").execute();
|
|
4181
4203
|
}
|
|
4182
|
-
async function
|
|
4204
|
+
async function Ts(e) {
|
|
4183
4205
|
await e.schema.alterTable("otps").dropColumn("ip").execute();
|
|
4184
4206
|
}
|
|
4185
|
-
const
|
|
4207
|
+
const Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4186
4208
|
__proto__: null,
|
|
4187
|
-
down:
|
|
4188
|
-
up:
|
|
4209
|
+
down: Ts,
|
|
4210
|
+
up: xs
|
|
4189
4211
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4190
|
-
async function
|
|
4212
|
+
async function bs(e) {
|
|
4191
4213
|
await e.schema.alterTable("logs").dropColumn("user_agent").execute(), await e.schema.alterTable("logs").addColumn("user_agent", "varchar(1024)").execute();
|
|
4192
4214
|
}
|
|
4193
|
-
async function
|
|
4215
|
+
async function Ss(e) {
|
|
4194
4216
|
await e.schema.alterTable("logs").dropColumn("user_agent").execute(), await e.schema.alterTable("logs").addColumn("user_agent", "varchar(255)").execute();
|
|
4195
4217
|
}
|
|
4196
|
-
const
|
|
4218
|
+
const Os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4197
4219
|
__proto__: null,
|
|
4198
|
-
down:
|
|
4199
|
-
up:
|
|
4220
|
+
down: Ss,
|
|
4221
|
+
up: bs
|
|
4200
4222
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4201
|
-
async function Os(e) {
|
|
4202
|
-
}
|
|
4203
4223
|
async function ks(e) {
|
|
4204
4224
|
}
|
|
4205
|
-
|
|
4225
|
+
async function $s(e) {
|
|
4226
|
+
}
|
|
4227
|
+
const Es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4206
4228
|
__proto__: null,
|
|
4207
|
-
down:
|
|
4208
|
-
up:
|
|
4229
|
+
down: $s,
|
|
4230
|
+
up: ks
|
|
4209
4231
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4210
|
-
async function
|
|
4232
|
+
async function Is(e) {
|
|
4211
4233
|
await e.schema.createTable("hooks").addColumn("hook_id", "varchar(255)", (t) => t.notNull().primaryKey()).addColumn(
|
|
4212
4234
|
"tenant_id",
|
|
4213
4235
|
"varchar(255)",
|
|
@@ -4218,33 +4240,33 @@ async function Es(e) {
|
|
|
4218
4240
|
(t) => t.defaultTo(!1).notNull()
|
|
4219
4241
|
).addColumn("priority", "integer").execute();
|
|
4220
4242
|
}
|
|
4221
|
-
async function
|
|
4243
|
+
async function zs(e) {
|
|
4222
4244
|
await e.schema.dropTable("hooks").execute();
|
|
4223
4245
|
}
|
|
4224
|
-
const
|
|
4246
|
+
const Ps = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4225
4247
|
__proto__: null,
|
|
4226
|
-
down:
|
|
4227
|
-
up:
|
|
4248
|
+
down: zs,
|
|
4249
|
+
up: Is
|
|
4228
4250
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4229
|
-
async function Ps(e) {
|
|
4230
|
-
}
|
|
4231
4251
|
async function Ds(e) {
|
|
4232
4252
|
}
|
|
4233
|
-
|
|
4253
|
+
async function As(e) {
|
|
4254
|
+
}
|
|
4255
|
+
const js = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4234
4256
|
__proto__: null,
|
|
4235
|
-
down:
|
|
4236
|
-
up:
|
|
4257
|
+
down: As,
|
|
4258
|
+
up: Ds
|
|
4237
4259
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4238
|
-
async function js(e) {
|
|
4239
|
-
}
|
|
4240
4260
|
async function Fs(e) {
|
|
4241
4261
|
}
|
|
4242
|
-
|
|
4262
|
+
async function Rs(e) {
|
|
4263
|
+
}
|
|
4264
|
+
const Ms = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4243
4265
|
__proto__: null,
|
|
4244
|
-
down:
|
|
4245
|
-
up:
|
|
4266
|
+
down: Rs,
|
|
4267
|
+
up: Fs
|
|
4246
4268
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4247
|
-
async function
|
|
4269
|
+
async function Js(e) {
|
|
4248
4270
|
await e.schema.createTable("logins").addColumn("login_id", "varchar(255)", (t) => t.primaryKey()).addColumn(
|
|
4249
4271
|
"tenant_id",
|
|
4250
4272
|
"varchar(255)",
|
|
@@ -4261,7 +4283,7 @@ async function Ms(e) {
|
|
|
4261
4283
|
(t) => t.onDelete("cascade")
|
|
4262
4284
|
).addColumn("code_type", "varchar(255)", (t) => t.notNull()).addColumn("created_at", "varchar(255)", (t) => t.notNull()).addColumn("expires_at", "varchar(255)", (t) => t.notNull()).addColumn("used_at", "varchar(255)").execute();
|
|
4263
4285
|
}
|
|
4264
|
-
async function
|
|
4286
|
+
async function Ls(e) {
|
|
4265
4287
|
await e.schema.dropTable("logins").execute(), await e.schema.alterTable("passwords").dropColumn("algorithm").execute(), await e.schema.dropTable("codes").execute(), await e.schema.createTable("codes").addColumn("id", "varchar(255)", (t) => t.primaryKey()).addColumn("code", "varchar(255)", (t) => t.notNull()).addColumn("user_id", "varchar(255)").addColumn("tenant_id", "varchar(255)").addForeignKeyConstraint(
|
|
4266
4288
|
"codes_user_id_tenant_id_constraint",
|
|
4267
4289
|
["user_id", "tenant_id"],
|
|
@@ -4270,90 +4292,90 @@ async function Js(e) {
|
|
|
4270
4292
|
(t) => t.onDelete("cascade")
|
|
4271
4293
|
).addColumn("type", "varchar(255)", (t) => t.notNull()).addColumn("created_at", "varchar(255)", (t) => t.notNull()).addColumn("expires_at", "varchar(255)", (t) => t.notNull()).addColumn("used_at", "varchar(255)").execute();
|
|
4272
4294
|
}
|
|
4273
|
-
const
|
|
4295
|
+
const Ks = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4274
4296
|
__proto__: null,
|
|
4275
|
-
down:
|
|
4276
|
-
up:
|
|
4297
|
+
down: Ls,
|
|
4298
|
+
up: Js
|
|
4277
4299
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4278
|
-
async function Ks(e) {
|
|
4279
|
-
}
|
|
4280
4300
|
async function qs(e) {
|
|
4281
4301
|
}
|
|
4282
|
-
|
|
4302
|
+
async function Bs(e) {
|
|
4303
|
+
}
|
|
4304
|
+
const Us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4283
4305
|
__proto__: null,
|
|
4284
|
-
down:
|
|
4285
|
-
up:
|
|
4306
|
+
down: Bs,
|
|
4307
|
+
up: qs
|
|
4286
4308
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4287
|
-
async function
|
|
4309
|
+
async function Qs(e) {
|
|
4288
4310
|
await e.schema.alterTable("logins").addColumn("auth0Client", "varchar(256)").execute();
|
|
4289
4311
|
}
|
|
4290
|
-
async function
|
|
4312
|
+
async function Hs(e) {
|
|
4291
4313
|
await e.schema.alterTable("logins").dropColumn("auth0Client").execute();
|
|
4292
4314
|
}
|
|
4293
|
-
const
|
|
4315
|
+
const Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4294
4316
|
__proto__: null,
|
|
4295
|
-
down:
|
|
4296
|
-
up:
|
|
4317
|
+
down: Hs,
|
|
4318
|
+
up: Qs
|
|
4297
4319
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4298
|
-
async function
|
|
4320
|
+
async function Ws(e) {
|
|
4299
4321
|
await e.schema.alterTable("logins").dropColumn("authParams_state").execute(), await e.schema.alterTable("logins").addColumn("authParams_state", "varchar(8192)").execute();
|
|
4300
4322
|
}
|
|
4301
|
-
async function
|
|
4323
|
+
async function Gs(e) {
|
|
4302
4324
|
await e.schema.alterTable("logins").dropColumn("authParams_state").execute(), await e.schema.alterTable("logins").addColumn("authParams_state", "varchar(511)").execute();
|
|
4303
4325
|
}
|
|
4304
|
-
const
|
|
4326
|
+
const Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4305
4327
|
__proto__: null,
|
|
4306
|
-
down:
|
|
4307
|
-
up:
|
|
4328
|
+
down: Gs,
|
|
4329
|
+
up: Ws
|
|
4308
4330
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4309
|
-
async function Vs(e) {
|
|
4310
|
-
}
|
|
4311
4331
|
async function Xs(e) {
|
|
4312
4332
|
}
|
|
4313
|
-
|
|
4333
|
+
async function Zs(e) {
|
|
4334
|
+
}
|
|
4335
|
+
const ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4314
4336
|
__proto__: null,
|
|
4315
|
-
down:
|
|
4316
|
-
up:
|
|
4337
|
+
down: Zs,
|
|
4338
|
+
up: Xs
|
|
4317
4339
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4318
|
-
async function ei(e) {
|
|
4319
|
-
}
|
|
4320
4340
|
async function ti(e) {
|
|
4321
4341
|
}
|
|
4322
|
-
|
|
4342
|
+
async function ai(e) {
|
|
4343
|
+
}
|
|
4344
|
+
const ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4323
4345
|
__proto__: null,
|
|
4324
|
-
down:
|
|
4325
|
-
up:
|
|
4346
|
+
down: ai,
|
|
4347
|
+
up: ti
|
|
4326
4348
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4327
|
-
async function
|
|
4349
|
+
async function oi(e) {
|
|
4328
4350
|
await e.schema.alterTable("logins").addColumn("authParams_nonce", "varchar(255)").execute();
|
|
4329
4351
|
}
|
|
4330
|
-
async function
|
|
4352
|
+
async function ri(e) {
|
|
4331
4353
|
await e.schema.alterTable("logins").dropColumn("nonce").execute();
|
|
4332
4354
|
}
|
|
4333
|
-
const
|
|
4355
|
+
const si = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4334
4356
|
__proto__: null,
|
|
4335
|
-
down:
|
|
4336
|
-
up:
|
|
4357
|
+
down: ri,
|
|
4358
|
+
up: oi
|
|
4337
4359
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4338
|
-
async function si(e) {
|
|
4339
|
-
}
|
|
4340
4360
|
async function ii(e) {
|
|
4341
4361
|
}
|
|
4342
|
-
|
|
4362
|
+
async function ci(e) {
|
|
4363
|
+
}
|
|
4364
|
+
const li = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4343
4365
|
__proto__: null,
|
|
4344
|
-
down:
|
|
4345
|
-
up:
|
|
4366
|
+
down: ci,
|
|
4367
|
+
up: ii
|
|
4346
4368
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4347
|
-
async function li(e) {
|
|
4348
|
-
}
|
|
4349
4369
|
async function di(e) {
|
|
4350
4370
|
}
|
|
4351
|
-
|
|
4371
|
+
async function ui(e) {
|
|
4372
|
+
}
|
|
4373
|
+
const _i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4352
4374
|
__proto__: null,
|
|
4353
|
-
down:
|
|
4354
|
-
up:
|
|
4375
|
+
down: ui,
|
|
4376
|
+
up: di
|
|
4355
4377
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4356
|
-
async function
|
|
4378
|
+
async function mi(e) {
|
|
4357
4379
|
await e.schema.dropTable("codes").execute(), await e.schema.createTable("codes").addColumn("code_id", "varchar(255)", (t) => t.notNull()).addColumn(
|
|
4358
4380
|
"tenant_id",
|
|
4359
4381
|
"varchar(255)",
|
|
@@ -4369,7 +4391,7 @@ async function _i(e) {
|
|
|
4369
4391
|
"code_type"
|
|
4370
4392
|
]).execute();
|
|
4371
4393
|
}
|
|
4372
|
-
async function
|
|
4394
|
+
async function hi(e) {
|
|
4373
4395
|
await e.schema.dropTable("codes").execute(), await e.schema.createTable("codes").addColumn("code_id", "varchar(255)", (t) => t.primaryKey()).addColumn(
|
|
4374
4396
|
"tenant_id",
|
|
4375
4397
|
"varchar(255)",
|
|
@@ -4382,15 +4404,15 @@ async function mi(e) {
|
|
|
4382
4404
|
(t) => t.onDelete("cascade")
|
|
4383
4405
|
).addColumn("code_type", "varchar(255)", (t) => t.notNull()).addColumn("created_at", "varchar(255)", (t) => t.notNull()).addColumn("expires_at", "varchar(255)", (t) => t.notNull()).addColumn("used_at", "varchar(255)").execute();
|
|
4384
4406
|
}
|
|
4385
|
-
const
|
|
4407
|
+
const pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4386
4408
|
__proto__: null,
|
|
4387
|
-
down:
|
|
4388
|
-
up:
|
|
4409
|
+
down: hi,
|
|
4410
|
+
up: mi
|
|
4389
4411
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4390
|
-
async function
|
|
4412
|
+
async function fi(e) {
|
|
4391
4413
|
await e.schema.dropTable("otps").execute(), await e.schema.dropTable("authentication_codes").execute();
|
|
4392
4414
|
}
|
|
4393
|
-
async function
|
|
4415
|
+
async function gi(e) {
|
|
4394
4416
|
await e.schema.alterTable("keys").addColumn("private_key", "varchar(2048)").addColumn("public_key", "varchar(2048)").execute(), await e.schema.createTable("otps").addColumn(
|
|
4395
4417
|
"tenant_id",
|
|
4396
4418
|
"varchar(255)",
|
|
@@ -4409,32 +4431,32 @@ async function fi(e) {
|
|
|
4409
4431
|
(t) => t.references("applications.id").onDelete("cascade").notNull()
|
|
4410
4432
|
).addColumn("user_id", "varchar(255)", (t) => t.notNull()).addColumn("nonce", "varchar(255)").addColumn("state", "varchar(8192)").addColumn("scope", "varchar(1024)").addColumn("response_type", "varchar(256)").addColumn("response_mode", "varchar(256)").addColumn("redirect_uri", "varchar(1024)").addColumn("created_at", "varchar(255)", (t) => t.notNull()).addColumn("expires_at", "varchar(255)", (t) => t.notNull()).addColumn("used_at", "varchar(255)").execute();
|
|
4411
4433
|
}
|
|
4412
|
-
const
|
|
4434
|
+
const wi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4413
4435
|
__proto__: null,
|
|
4414
|
-
down:
|
|
4415
|
-
up:
|
|
4436
|
+
down: gi,
|
|
4437
|
+
up: fi
|
|
4416
4438
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4417
|
-
async function
|
|
4439
|
+
async function yi(e) {
|
|
4418
4440
|
await e.schema.createIndex("IDX_logs_tenant_date_type_user").on("logs").columns(["tenant_id", "date", "type", "user_id"]).execute();
|
|
4419
4441
|
}
|
|
4420
|
-
async function
|
|
4442
|
+
async function vi(e) {
|
|
4421
4443
|
await e.schema.dropIndex("IDX_logs_tenant_date_type_user").on("logs").execute();
|
|
4422
4444
|
}
|
|
4423
|
-
const
|
|
4445
|
+
const Ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4424
4446
|
__proto__: null,
|
|
4425
|
-
down:
|
|
4426
|
-
up:
|
|
4447
|
+
down: vi,
|
|
4448
|
+
up: yi
|
|
4427
4449
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4428
|
-
async function Ci(e) {
|
|
4429
|
-
}
|
|
4430
4450
|
async function xi(e) {
|
|
4431
4451
|
}
|
|
4432
|
-
|
|
4452
|
+
async function Ti(e) {
|
|
4453
|
+
}
|
|
4454
|
+
const Ni = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4433
4455
|
__proto__: null,
|
|
4434
|
-
down:
|
|
4435
|
-
up:
|
|
4456
|
+
down: Ti,
|
|
4457
|
+
up: xi
|
|
4436
4458
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4437
|
-
async function
|
|
4459
|
+
async function bi(e) {
|
|
4438
4460
|
await e.schema.createTable("prompt_settings").addColumn("tenant_id", "varchar(64)", (t) => t.primaryKey()).addColumn(
|
|
4439
4461
|
"universal_login_experience",
|
|
4440
4462
|
"varchar(16)",
|
|
@@ -4453,95 +4475,95 @@ async function Ni(e) {
|
|
|
4453
4475
|
(t) => t.defaultTo(!1).notNull()
|
|
4454
4476
|
).execute();
|
|
4455
4477
|
}
|
|
4456
|
-
async function
|
|
4478
|
+
async function Si(e) {
|
|
4457
4479
|
await e.schema.dropTable("prompt_settings").execute();
|
|
4458
4480
|
}
|
|
4459
|
-
const
|
|
4481
|
+
const Oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4460
4482
|
__proto__: null,
|
|
4461
|
-
down:
|
|
4462
|
-
up:
|
|
4483
|
+
down: Si,
|
|
4484
|
+
up: bi
|
|
4463
4485
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4464
|
-
async function Oi(e) {
|
|
4465
|
-
}
|
|
4466
4486
|
async function ki(e) {
|
|
4467
4487
|
}
|
|
4468
|
-
|
|
4488
|
+
async function $i(e) {
|
|
4489
|
+
}
|
|
4490
|
+
const Ei = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4469
4491
|
__proto__: null,
|
|
4470
|
-
down:
|
|
4471
|
-
up:
|
|
4492
|
+
down: $i,
|
|
4493
|
+
up: ki
|
|
4472
4494
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4473
|
-
async function Ei(e) {
|
|
4474
|
-
}
|
|
4475
4495
|
async function Ii(e) {
|
|
4476
4496
|
}
|
|
4477
|
-
|
|
4497
|
+
async function zi(e) {
|
|
4498
|
+
}
|
|
4499
|
+
const Pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4478
4500
|
__proto__: null,
|
|
4479
|
-
down:
|
|
4480
|
-
up:
|
|
4501
|
+
down: zi,
|
|
4502
|
+
up: Ii
|
|
4481
4503
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4482
|
-
async function Pi(e) {
|
|
4483
|
-
}
|
|
4484
4504
|
async function Di(e) {
|
|
4485
4505
|
}
|
|
4486
|
-
|
|
4506
|
+
async function Ai(e) {
|
|
4507
|
+
}
|
|
4508
|
+
const ji = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4487
4509
|
__proto__: null,
|
|
4488
|
-
down:
|
|
4489
|
-
up:
|
|
4510
|
+
down: Ai,
|
|
4511
|
+
up: Di
|
|
4490
4512
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4491
|
-
async function
|
|
4513
|
+
async function Fi(e) {
|
|
4492
4514
|
await e.schema.alterTable("logins").addColumn("authParams_ui_locales", "varchar(32)").execute();
|
|
4493
4515
|
}
|
|
4494
|
-
async function
|
|
4516
|
+
async function Ri(e) {
|
|
4495
4517
|
await e.schema.alterTable("logins").dropColumn("authParams_ui_locales").execute();
|
|
4496
4518
|
}
|
|
4497
|
-
const
|
|
4519
|
+
const Mi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4498
4520
|
__proto__: null,
|
|
4499
|
-
down:
|
|
4500
|
-
up:
|
|
4521
|
+
down: Ri,
|
|
4522
|
+
up: Fi
|
|
4501
4523
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4502
|
-
async function
|
|
4524
|
+
async function Ji(e) {
|
|
4503
4525
|
await e.schema.alterTable("logins").addColumn("authParams_prompt", "varchar(16)").execute();
|
|
4504
4526
|
}
|
|
4505
|
-
async function
|
|
4527
|
+
async function Li(e) {
|
|
4506
4528
|
await e.schema.alterTable("logins").dropColumn("authParams_prompt").execute();
|
|
4507
4529
|
}
|
|
4508
|
-
const
|
|
4530
|
+
const Ki = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4509
4531
|
__proto__: null,
|
|
4510
|
-
down:
|
|
4511
|
-
up:
|
|
4532
|
+
down: Li,
|
|
4533
|
+
up: Ji
|
|
4512
4534
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4513
|
-
async function Ki(e) {
|
|
4514
|
-
}
|
|
4515
4535
|
async function qi(e) {
|
|
4516
4536
|
}
|
|
4517
|
-
|
|
4537
|
+
async function Bi(e) {
|
|
4538
|
+
}
|
|
4539
|
+
const Ui = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4518
4540
|
__proto__: null,
|
|
4519
|
-
down:
|
|
4520
|
-
up:
|
|
4541
|
+
down: Bi,
|
|
4542
|
+
up: qi
|
|
4521
4543
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4522
|
-
async function
|
|
4544
|
+
async function Qi(e) {
|
|
4523
4545
|
await e.schema.alterTable("logins").addColumn("authParams_act_as", "varchar(255)").execute();
|
|
4524
4546
|
}
|
|
4525
|
-
async function
|
|
4547
|
+
async function Hi(e) {
|
|
4526
4548
|
await e.schema.alterTable("logins").dropColumn("authParam_act_as").execute();
|
|
4527
4549
|
}
|
|
4528
|
-
const
|
|
4550
|
+
const Yi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4529
4551
|
__proto__: null,
|
|
4530
|
-
down:
|
|
4531
|
-
up:
|
|
4552
|
+
down: Hi,
|
|
4553
|
+
up: Qi
|
|
4532
4554
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4533
|
-
async function
|
|
4555
|
+
async function Wi(e) {
|
|
4534
4556
|
await e.schema.alterTable("codes").addColumn("code_verifier", "varchar(128)").execute();
|
|
4535
4557
|
}
|
|
4536
|
-
async function
|
|
4558
|
+
async function Gi(e) {
|
|
4537
4559
|
await e.schema.alterTable("codes").dropColumn("code_verifier").execute();
|
|
4538
4560
|
}
|
|
4539
|
-
const
|
|
4561
|
+
const Vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4540
4562
|
__proto__: null,
|
|
4541
|
-
down:
|
|
4542
|
-
up:
|
|
4563
|
+
down: Gi,
|
|
4564
|
+
up: Wi
|
|
4543
4565
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4544
|
-
async function
|
|
4566
|
+
async function Xi(e) {
|
|
4545
4567
|
await e.schema.createTable("email_providers").addColumn("tenant_id", "varchar(255)", (t) => t.primaryKey()).addColumn("name", "varchar(255)", (t) => t.notNull()).addColumn("enabled", "boolean", (t) => t.notNull()).addColumn("default_from_address", "varchar(255)").addColumn(
|
|
4546
4568
|
"credentials",
|
|
4547
4569
|
"varchar(2048)",
|
|
@@ -4552,18 +4574,18 @@ async function Vi(e) {
|
|
|
4552
4574
|
(t) => t.notNull().defaultTo("{}")
|
|
4553
4575
|
).addColumn("created_at", "varchar(29)", (t) => t.notNull()).addColumn("updated_at", "varchar(29)", (t) => t.notNull()).execute();
|
|
4554
4576
|
}
|
|
4555
|
-
async function
|
|
4577
|
+
async function Zi(e) {
|
|
4556
4578
|
await e.schema.dropTable("email_providers").execute();
|
|
4557
4579
|
}
|
|
4558
|
-
const
|
|
4580
|
+
const ec = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4559
4581
|
__proto__: null,
|
|
4560
|
-
down:
|
|
4561
|
-
up:
|
|
4582
|
+
down: Zi,
|
|
4583
|
+
up: Xi
|
|
4562
4584
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4563
|
-
async function
|
|
4585
|
+
async function tc(e) {
|
|
4564
4586
|
await e.schema.dropTable("tickets").execute();
|
|
4565
4587
|
}
|
|
4566
|
-
async function
|
|
4588
|
+
async function ac(e) {
|
|
4567
4589
|
await e.schema.createTable("tickets").addColumn(
|
|
4568
4590
|
"tenant_id",
|
|
4569
4591
|
"varchar(255)",
|
|
@@ -4574,22 +4596,22 @@ async function tc(e) {
|
|
|
4574
4596
|
(t) => t.references("applications.id").onDelete("cascade").notNull()
|
|
4575
4597
|
).addColumn("email", "varchar(255)", (t) => t.notNull()).addColumn("nonce", "varchar(255)").addColumn("state", "varchar(1024)").addColumn("scope", "varchar(1024)").addColumn("response_type", "varchar(256)").addColumn("response_mode", "varchar(256)").addColumn("redirect_uri", "varchar(1024)").addColumn("created_at", "varchar(255)", (t) => t.notNull()).addColumn("expires_at", "varchar(255)", (t) => t.notNull()).addColumn("used_at", "varchar(255)").execute();
|
|
4576
4598
|
}
|
|
4577
|
-
const
|
|
4599
|
+
const nc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4578
4600
|
__proto__: null,
|
|
4579
|
-
down:
|
|
4580
|
-
up:
|
|
4601
|
+
down: ac,
|
|
4602
|
+
up: tc
|
|
4581
4603
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4582
|
-
async function nc(e) {
|
|
4583
|
-
}
|
|
4584
4604
|
async function oc(e) {
|
|
4605
|
+
}
|
|
4606
|
+
async function rc(e) {
|
|
4585
4607
|
await e.schema.alterTable("logins").dropColumn("ip").dropColumn("useragent").execute();
|
|
4586
4608
|
}
|
|
4587
|
-
const
|
|
4609
|
+
const sc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4588
4610
|
__proto__: null,
|
|
4589
|
-
down:
|
|
4590
|
-
up:
|
|
4611
|
+
down: rc,
|
|
4612
|
+
up: oc
|
|
4591
4613
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4592
|
-
async function
|
|
4614
|
+
async function ic(e) {
|
|
4593
4615
|
await e.schema.createTable("refresh_tokens").addColumn("id", "varchar(21)", (t) => t.primaryKey()).addColumn(
|
|
4594
4616
|
"client_id",
|
|
4595
4617
|
"varchar(21)",
|
|
@@ -4602,27 +4624,27 @@ async function sc(e) {
|
|
|
4602
4624
|
(t) => t.onDelete("cascade")
|
|
4603
4625
|
).addColumn("created_at", "varchar(35)", (t) => t.notNull()).addColumn("expires_at", "varchar(35)").addColumn("idle_expires_at", "varchar(35)").addColumn("last_exchanged_at", "varchar(35)").addColumn("device", "varchar(2048)", (t) => t.notNull()).addColumn("resource_servers", "varchar(2048)", (t) => t.notNull()).addColumn("rotating", "boolean", (t) => t.notNull()).execute();
|
|
4604
4626
|
}
|
|
4605
|
-
async function
|
|
4627
|
+
async function cc(e) {
|
|
4606
4628
|
await e.schema.dropTable("refresh_tokens").execute();
|
|
4607
4629
|
}
|
|
4608
|
-
const
|
|
4630
|
+
const lc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4609
4631
|
__proto__: null,
|
|
4610
|
-
down:
|
|
4611
|
-
up:
|
|
4632
|
+
down: cc,
|
|
4633
|
+
up: ic
|
|
4612
4634
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4613
|
-
async function lc(e) {
|
|
4614
|
-
}
|
|
4615
4635
|
async function dc(e) {
|
|
4616
4636
|
}
|
|
4617
|
-
|
|
4637
|
+
async function uc(e) {
|
|
4638
|
+
}
|
|
4639
|
+
const _c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4618
4640
|
__proto__: null,
|
|
4619
|
-
down:
|
|
4620
|
-
up:
|
|
4641
|
+
down: uc,
|
|
4642
|
+
up: dc
|
|
4621
4643
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4622
|
-
async function
|
|
4644
|
+
async function mc(e) {
|
|
4623
4645
|
await e.schema.dropTable("sessions").execute(), await e.schema.dropTable("refresh_tokens").execute();
|
|
4624
4646
|
}
|
|
4625
|
-
async function
|
|
4647
|
+
async function hc(e) {
|
|
4626
4648
|
await e.schema.createTable("sessions").addColumn("id", "varchar(21)", (t) => t.primaryKey()).addColumn("tenant_id", "varchar(255)").addColumn("user_id", "varchar(255)").addForeignKeyConstraint(
|
|
4627
4649
|
"sessions_user_id_constraint",
|
|
4628
4650
|
["user_id", "tenant_id"],
|
|
@@ -4641,12 +4663,12 @@ async function mc(e) {
|
|
|
4641
4663
|
(t) => t.onDelete("cascade")
|
|
4642
4664
|
).addColumn("created_at", "varchar(35)", (t) => t.notNull()).addColumn("expires_at", "varchar(35)").addColumn("idle_expires_at", "varchar(35)").addColumn("last_exchanged_at", "varchar(35)").addColumn("device", "varchar(2048)", (t) => t.notNull()).addColumn("resource_servers", "varchar(2048)", (t) => t.notNull()).addColumn("rotating", "boolean", (t) => t.notNull()).execute();
|
|
4643
4665
|
}
|
|
4644
|
-
const
|
|
4666
|
+
const pc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4645
4667
|
__proto__: null,
|
|
4646
|
-
down:
|
|
4647
|
-
up:
|
|
4668
|
+
down: hc,
|
|
4669
|
+
up: mc
|
|
4648
4670
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4649
|
-
async function
|
|
4671
|
+
async function fc(e) {
|
|
4650
4672
|
await e.schema.createTable("sessions_2").addColumn("id", "varchar(21)", (t) => t.primaryKey()).addColumn("tenant_id", "varchar(255)").addColumn("user_id", "varchar(255)").addForeignKeyConstraint(
|
|
4651
4673
|
"sessions_2_user_id_constraint",
|
|
4652
4674
|
["user_id", "tenant_id"],
|
|
@@ -4665,15 +4687,15 @@ async function pc(e) {
|
|
|
4665
4687
|
(t) => t.onDelete("cascade")
|
|
4666
4688
|
).addColumn("created_at", "varchar(35)", (t) => t.notNull()).addColumn("expires_at", "varchar(35)").addColumn("idle_expires_at", "varchar(35)").addColumn("last_exchanged_at", "varchar(35)").addColumn("device", "varchar(2048)", (t) => t.notNull()).addColumn("resource_servers", "varchar(2048)", (t) => t.notNull()).addColumn("rotating", "boolean", (t) => t.notNull()).execute();
|
|
4667
4689
|
}
|
|
4668
|
-
async function
|
|
4690
|
+
async function gc(e) {
|
|
4669
4691
|
await e.schema.dropTable("sessions_2").execute(), await e.schema.dropTable("refresh_tokens_2").execute();
|
|
4670
4692
|
}
|
|
4671
|
-
const
|
|
4693
|
+
const wc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4672
4694
|
__proto__: null,
|
|
4673
|
-
down:
|
|
4674
|
-
up:
|
|
4695
|
+
down: gc,
|
|
4696
|
+
up: fc
|
|
4675
4697
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4676
|
-
async function
|
|
4698
|
+
async function yc(e) {
|
|
4677
4699
|
await e.schema.createTable("custom_domains").addColumn(
|
|
4678
4700
|
"custom_domain_id",
|
|
4679
4701
|
"varchar(21)",
|
|
@@ -4684,49 +4706,49 @@ async function wc(e) {
|
|
|
4684
4706
|
(t) => t.references("tenants.id").onDelete("cascade").notNull()
|
|
4685
4707
|
).addColumn("domain", "varchar(255)", (t) => t.notNull()).addColumn("primary", "boolean", (t) => t.notNull()).addColumn("status", "varchar(50)", (t) => t.notNull()).addColumn("type", "varchar(50)", (t) => t.notNull()).addColumn("origin_domain_name", "varchar(255)").addColumn("verification", "varchar(2048)").addColumn("custom_client_ip_header", "varchar(50)").addColumn("tls_policy", "varchar(50)").addColumn("domain_metadata", "varchar(2048)").addColumn("created_at", "varchar(35)", (t) => t.notNull()).addColumn("updated_at", "varchar(35)", (t) => t.notNull()).execute(), await e.schema.dropTable("domains").execute();
|
|
4686
4708
|
}
|
|
4687
|
-
async function
|
|
4709
|
+
async function vc(e) {
|
|
4688
4710
|
await e.schema.dropTable("custom_domains").execute(), await e.schema.createTable("domains").addColumn("id", "varchar(255)", (t) => t.notNull().primaryKey()).addColumn(
|
|
4689
4711
|
"tenant_id",
|
|
4690
4712
|
"varchar(255)",
|
|
4691
4713
|
(t) => t.references("tenants.id").onDelete("cascade").notNull()
|
|
4692
4714
|
).addColumn("domain", "varchar(255)", (t) => t.notNull()).addColumn("email_service", "varchar(255)").addColumn("email_api_key", "varchar(255)").addColumn("dkim_private_key", "varchar(2048)").addColumn("dkim_public_key", "varchar(2048)").addColumn("created_at", "varchar(255)", (t) => t.notNull()).addColumn("updated_at", "varchar(255)", (t) => t.notNull()).execute();
|
|
4693
4715
|
}
|
|
4694
|
-
const
|
|
4716
|
+
const Cc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4695
4717
|
__proto__: null,
|
|
4696
|
-
down:
|
|
4697
|
-
up:
|
|
4718
|
+
down: vc,
|
|
4719
|
+
up: yc
|
|
4698
4720
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4699
|
-
async function Cc(e) {
|
|
4700
|
-
}
|
|
4701
4721
|
async function xc(e) {
|
|
4722
|
+
}
|
|
4723
|
+
async function Tc(e) {
|
|
4702
4724
|
await e.schema.alterTable("logins").dropColumn("authParams_organization").dropColumn("authorization_url").execute();
|
|
4703
4725
|
}
|
|
4704
|
-
const
|
|
4726
|
+
const Nc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4705
4727
|
__proto__: null,
|
|
4706
|
-
down:
|
|
4707
|
-
up:
|
|
4728
|
+
down: Tc,
|
|
4729
|
+
up: xc
|
|
4708
4730
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4709
|
-
async function
|
|
4731
|
+
async function bc(e) {
|
|
4710
4732
|
await e.schema.alterTable("logins").dropColumn("authorization_url").execute(), await e.schema.alterTable("logins").addColumn("authorization_url", "varchar(2048)").execute();
|
|
4711
4733
|
}
|
|
4712
|
-
async function
|
|
4734
|
+
async function Sc(e) {
|
|
4713
4735
|
await e.schema.alterTable("logins").dropColumn("authorization_url").execute(), await e.schema.alterTable("logins").addColumn("authorization_url", "varchar(1024)").execute();
|
|
4714
4736
|
}
|
|
4715
|
-
const
|
|
4737
|
+
const Oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4716
4738
|
__proto__: null,
|
|
4717
|
-
down:
|
|
4718
|
-
up:
|
|
4739
|
+
down: Sc,
|
|
4740
|
+
up: bc
|
|
4719
4741
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4720
|
-
async function Oc(e) {
|
|
4721
|
-
}
|
|
4722
4742
|
async function kc(e) {
|
|
4723
4743
|
}
|
|
4724
|
-
|
|
4744
|
+
async function $c(e) {
|
|
4745
|
+
}
|
|
4746
|
+
const Ec = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4725
4747
|
__proto__: null,
|
|
4726
|
-
down:
|
|
4727
|
-
up:
|
|
4748
|
+
down: $c,
|
|
4749
|
+
up: kc
|
|
4728
4750
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4729
|
-
async function
|
|
4751
|
+
async function Ic(e) {
|
|
4730
4752
|
await e.schema.createTable("sessions").addColumn("id", "varchar(21)", (t) => t.primaryKey()).addColumn("tenant_id", "varchar(255)").addColumn("user_id", "varchar(255)").addForeignKeyConstraint(
|
|
4731
4753
|
"sessions_user_id_constraint",
|
|
4732
4754
|
["user_id", "tenant_id"],
|
|
@@ -4753,25 +4775,25 @@ async function Ec(e) {
|
|
|
4753
4775
|
(t) => t.onDelete("cascade")
|
|
4754
4776
|
).addColumn("created_at", "varchar(35)", (t) => t.notNull()).addColumn("expires_at", "varchar(35)").addColumn("idle_expires_at", "varchar(35)").addColumn("last_exchanged_at", "varchar(35)").addColumn("device", "varchar(2048)", (t) => t.notNull()).addColumn("resource_servers", "varchar(2048)", (t) => t.notNull()).addColumn("rotating", "boolean", (t) => t.notNull()).execute();
|
|
4755
4777
|
}
|
|
4756
|
-
async function
|
|
4778
|
+
async function zc(e) {
|
|
4757
4779
|
await e.schema.dropTable("sessions").execute(), await e.schema.dropTable("login_sessions").execute(), await e.schema.dropTable("refresh_tokens").execute();
|
|
4758
4780
|
}
|
|
4759
|
-
const
|
|
4781
|
+
const Pc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4760
4782
|
__proto__: null,
|
|
4761
|
-
down:
|
|
4762
|
-
up:
|
|
4783
|
+
down: zc,
|
|
4784
|
+
up: Ic
|
|
4763
4785
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4764
|
-
async function
|
|
4786
|
+
async function Dc(e) {
|
|
4765
4787
|
await e.schema.dropTable("logins").execute(), await e.schema.dropTable("sessions_2").execute(), await e.schema.dropTable("refresh_tokens_2").execute();
|
|
4766
4788
|
}
|
|
4767
|
-
async function
|
|
4789
|
+
async function Ac(e) {
|
|
4768
4790
|
}
|
|
4769
|
-
const
|
|
4791
|
+
const jc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4770
4792
|
__proto__: null,
|
|
4771
|
-
down:
|
|
4772
|
-
up:
|
|
4793
|
+
down: Ac,
|
|
4794
|
+
up: Dc
|
|
4773
4795
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4774
|
-
async function
|
|
4796
|
+
async function Fc(e) {
|
|
4775
4797
|
await e.schema.dropTable("custom_domains").execute(), await e.schema.createTable("custom_domains").addColumn(
|
|
4776
4798
|
"custom_domain_id",
|
|
4777
4799
|
"varchar(256)",
|
|
@@ -4782,120 +4804,120 @@ async function jc(e) {
|
|
|
4782
4804
|
(t) => t.references("tenants.id").onDelete("cascade").notNull()
|
|
4783
4805
|
).addColumn("domain", "varchar(255)", (t) => t.notNull()).addColumn("primary", "boolean", (t) => t.notNull()).addColumn("status", "varchar(50)", (t) => t.notNull()).addColumn("type", "varchar(50)", (t) => t.notNull()).addColumn("origin_domain_name", "varchar(255)").addColumn("verification", "varchar(2048)").addColumn("custom_client_ip_header", "varchar(50)").addColumn("tls_policy", "varchar(50)").addColumn("domain_metadata", "varchar(2048)").addColumn("created_at", "varchar(35)", (t) => t.notNull()).addColumn("updated_at", "varchar(35)", (t) => t.notNull()).execute();
|
|
4784
4806
|
}
|
|
4785
|
-
async function
|
|
4807
|
+
async function Rc(e) {
|
|
4786
4808
|
}
|
|
4787
|
-
const
|
|
4809
|
+
const Mc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4788
4810
|
__proto__: null,
|
|
4789
|
-
down:
|
|
4790
|
-
up:
|
|
4811
|
+
down: Rc,
|
|
4812
|
+
up: Fc
|
|
4791
4813
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4792
|
-
async function Mc(e) {
|
|
4793
|
-
}
|
|
4794
4814
|
async function Jc(e) {
|
|
4815
|
+
}
|
|
4816
|
+
async function Lc(e) {
|
|
4795
4817
|
await e.schema.alterTable("users").dropColumn("phone_number").dropColumn("phone_verified").dropColumn("username").execute();
|
|
4796
4818
|
}
|
|
4797
|
-
const
|
|
4819
|
+
const Kc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4798
4820
|
__proto__: null,
|
|
4799
|
-
down:
|
|
4800
|
-
up:
|
|
4821
|
+
down: Lc,
|
|
4822
|
+
up: Jc
|
|
4801
4823
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4802
|
-
async function
|
|
4824
|
+
async function qc(e) {
|
|
4803
4825
|
await e.schema.createTable("forms").addColumn("id", "varchar(255)", (t) => t.primaryKey()).addColumn("name", "varchar(255)", (t) => t.notNull()).addColumn("tenant_id", "varchar(255)", (t) => t.notNull()).addColumn("messages", "varchar(255)").addColumn("languages", "varchar(255)").addColumn("translations", "varchar(4096)").addColumn("nodes", "varchar(4096)").addColumn("start", "varchar(255)").addColumn("ending", "varchar(255)").addColumn("style", "varchar(1042)").addColumn("created_at", "varchar(255)", (t) => t.notNull()).addColumn("updated_at", "varchar(255)", (t) => t.notNull()).execute(), await e.schema.createIndex("forms_tenant_id_idx").on("forms").column("tenant_id").execute();
|
|
4804
4826
|
}
|
|
4805
|
-
async function
|
|
4827
|
+
async function Bc(e) {
|
|
4806
4828
|
await e.schema.dropTable("forms").execute();
|
|
4807
4829
|
}
|
|
4808
|
-
const
|
|
4830
|
+
const Uc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4809
4831
|
__proto__: null,
|
|
4810
|
-
down:
|
|
4811
|
-
up:
|
|
4832
|
+
down: Bc,
|
|
4833
|
+
up: qc
|
|
4812
4834
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4813
|
-
async function
|
|
4835
|
+
async function Qc(e) {
|
|
4814
4836
|
await e.schema.alterTable("hooks").addColumn("form_id", "text").execute(), await e.schema.alterTable("hooks").addColumn("url_tmp", "varchar(512)").execute(), await e.updateTable("hooks").set((t) => ({ url_tmp: t.ref("url") })).execute(), await e.schema.alterTable("hooks").dropColumn("url").execute(), await e.schema.alterTable("hooks").renameColumn("url_tmp", "url").execute();
|
|
4815
4837
|
}
|
|
4816
|
-
async function
|
|
4838
|
+
async function Hc(e) {
|
|
4817
4839
|
await e.schema.dropTable("hooks").ifExists().execute(), await e.schema.createTable("hooks").addColumn("hook_id", "text", (t) => t.primaryKey()).addColumn("tenant_id", "text", (t) => t.notNull()).addColumn("trigger_id", "text", (t) => t.notNull()).addColumn("enabled", "integer", (t) => t.notNull().defaultTo(0)).addColumn("url", "varchar(512)", (t) => t.notNull()).addColumn("synchronous", "integer", (t) => t.notNull().defaultTo(0)).addColumn("priority", "integer").addColumn("created_at", "text", (t) => t.notNull()).addColumn("updated_at", "text", (t) => t.notNull()).execute();
|
|
4818
4840
|
}
|
|
4819
|
-
const
|
|
4841
|
+
const Yc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4820
4842
|
__proto__: null,
|
|
4821
|
-
down:
|
|
4822
|
-
up:
|
|
4843
|
+
down: Hc,
|
|
4844
|
+
up: Qc
|
|
4823
4845
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4824
|
-
async function
|
|
4846
|
+
async function Wc(e) {
|
|
4825
4847
|
await e.schema.alterTable("login_sessions").addColumn(
|
|
4826
4848
|
"login_completed",
|
|
4827
4849
|
"boolean",
|
|
4828
4850
|
(t) => t.notNull().defaultTo(0)
|
|
4829
4851
|
).execute();
|
|
4830
4852
|
}
|
|
4831
|
-
async function
|
|
4853
|
+
async function Gc(e) {
|
|
4832
4854
|
await e.schema.alterTable("login_sessions").dropColumn("login_completed").execute();
|
|
4833
4855
|
}
|
|
4834
|
-
const
|
|
4856
|
+
const Vc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4835
4857
|
__proto__: null,
|
|
4836
|
-
down:
|
|
4837
|
-
up:
|
|
4858
|
+
down: Gc,
|
|
4859
|
+
up: Wc
|
|
4838
4860
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4839
|
-
async function
|
|
4861
|
+
async function Xc(e) {
|
|
4840
4862
|
await e.schema.alterTable("sessions").addColumn(
|
|
4841
4863
|
"login_session_id",
|
|
4842
4864
|
"varchar(21)",
|
|
4843
4865
|
(t) => t.references("login_sessions.id").onDelete("set null")
|
|
4844
4866
|
).execute();
|
|
4845
4867
|
}
|
|
4846
|
-
async function
|
|
4868
|
+
async function Zc(e) {
|
|
4847
4869
|
await e.schema.alterTable("sessions").dropColumn("login_session_id").execute();
|
|
4848
4870
|
}
|
|
4849
|
-
const
|
|
4871
|
+
const el = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4850
4872
|
__proto__: null,
|
|
4851
|
-
down:
|
|
4852
|
-
up:
|
|
4873
|
+
down: Zc,
|
|
4874
|
+
up: Xc
|
|
4853
4875
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4854
|
-
async function
|
|
4876
|
+
async function tl(e) {
|
|
4855
4877
|
await e.schema.createIndex("IDX_sessions_login_session_id").on("sessions").column("login_session_id").execute();
|
|
4856
4878
|
}
|
|
4857
|
-
async function
|
|
4879
|
+
async function al(e) {
|
|
4858
4880
|
await e.schema.dropIndex("IDX_sessions_login_session_id").on("sessions").execute();
|
|
4859
4881
|
}
|
|
4860
|
-
const
|
|
4882
|
+
const nl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4861
4883
|
__proto__: null,
|
|
4862
|
-
down:
|
|
4863
|
-
up:
|
|
4884
|
+
down: al,
|
|
4885
|
+
up: tl
|
|
4864
4886
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4865
|
-
async function
|
|
4887
|
+
async function ol(e) {
|
|
4866
4888
|
await e.schema.alterTable("codes").addColumn("code_challenge", "varchar(128)").execute(), await e.schema.alterTable("codes").addColumn("code_challenge_method", "varchar(5)").execute();
|
|
4867
4889
|
}
|
|
4868
|
-
async function
|
|
4890
|
+
async function rl(e) {
|
|
4869
4891
|
await e.schema.alterTable("codes").dropColumn("code_challenge").execute(), await e.schema.alterTable("codes").dropColumn("code_challenge_method").execute();
|
|
4870
4892
|
}
|
|
4871
|
-
const
|
|
4893
|
+
const sl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4872
4894
|
__proto__: null,
|
|
4873
|
-
down:
|
|
4874
|
-
up:
|
|
4895
|
+
down: rl,
|
|
4896
|
+
up: ol
|
|
4875
4897
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4876
|
-
async function
|
|
4898
|
+
async function il(e) {
|
|
4877
4899
|
await e.schema.alterTable("codes").addColumn("redirect_uri", "varchar(1024)").execute();
|
|
4878
4900
|
}
|
|
4879
|
-
async function
|
|
4901
|
+
async function cl(e) {
|
|
4880
4902
|
await e.schema.alterTable("codes").dropColumn("redirect_uri").execute();
|
|
4881
4903
|
}
|
|
4882
|
-
const
|
|
4904
|
+
const ll = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4883
4905
|
__proto__: null,
|
|
4884
|
-
down:
|
|
4885
|
-
up:
|
|
4906
|
+
down: cl,
|
|
4907
|
+
up: il
|
|
4886
4908
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4887
|
-
async function
|
|
4909
|
+
async function dl(e) {
|
|
4888
4910
|
await e.schema.alterTable("codes").addColumn("nonce", "varchar(1024)").execute(), await e.schema.alterTable("codes").addColumn("state", "varchar(2048)").execute();
|
|
4889
4911
|
}
|
|
4890
|
-
async function
|
|
4912
|
+
async function ul(e) {
|
|
4891
4913
|
await e.schema.alterTable("codes").dropColumn("nonce").execute(), await e.schema.alterTable("codes").dropColumn("state").execute();
|
|
4892
4914
|
}
|
|
4893
|
-
const
|
|
4915
|
+
const _l = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4894
4916
|
__proto__: null,
|
|
4895
|
-
down:
|
|
4896
|
-
up:
|
|
4917
|
+
down: ul,
|
|
4918
|
+
up: dl
|
|
4897
4919
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4898
|
-
async function
|
|
4920
|
+
async function ml(e) {
|
|
4899
4921
|
await e.schema.createTable("themes").addColumn(
|
|
4900
4922
|
"tenant_id",
|
|
4901
4923
|
"varchar(255)",
|
|
@@ -4970,26 +4992,26 @@ async function _l(e) {
|
|
|
4970
4992
|
(t) => t.notNull()
|
|
4971
4993
|
).addColumn("created_at", "varchar(35)", (t) => t.notNull()).addColumn("updated_at", "varchar(35)", (t) => t.notNull()).addPrimaryKeyConstraint("themes_pkey", ["tenant_id", "themeId"]).execute(), await e.schema.createIndex("themes_tenant_id_idx").on("themes").column("tenant_id").execute();
|
|
4972
4994
|
}
|
|
4973
|
-
async function
|
|
4995
|
+
async function hl(e) {
|
|
4974
4996
|
await e.schema.dropTable("themes").execute();
|
|
4975
4997
|
}
|
|
4976
|
-
const
|
|
4998
|
+
const pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4977
4999
|
__proto__: null,
|
|
4978
|
-
down:
|
|
4979
|
-
up:
|
|
5000
|
+
down: hl,
|
|
5001
|
+
up: ml
|
|
4980
5002
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4981
|
-
async function
|
|
5003
|
+
async function fl(e) {
|
|
4982
5004
|
await e.schema.createTable("resource_servers").addColumn("id", "varchar(21)", (t) => t.notNull()).addColumn("tenant_id", "varchar(191)", (t) => t.notNull()).addColumn("identifier", "varchar(191)", (t) => t.notNull()).addColumn("name", "varchar(255)", (t) => t.notNull()).addColumn("scopes", "varchar(4096)").addColumn("signing_alg", "varchar(64)").addColumn("signing_secret", "varchar(2048)").addColumn("token_lifetime", "integer").addColumn("token_lifetime_for_web", "integer").addColumn("skip_consent_for_verifiable_first_party_clients", "integer").addColumn("allow_offline_access", "integer").addColumn("verification_key", "varchar(4096)").addColumn("options", "varchar(4096)").addColumn("created_at", "varchar(35)", (t) => t.notNull()).addColumn("updated_at", "varchar(35)", (t) => t.notNull()).addPrimaryKeyConstraint("resource_servers_pk", ["tenant_id", "id"]).execute(), await e.schema.createIndex("resource_servers_tenant_identifier_uq").on("resource_servers").columns(["tenant_id", "identifier"]).unique().execute(), await e.schema.createTable("roles").addColumn("id", "varchar(21)", (t) => t.notNull()).addColumn("tenant_id", "varchar(191)", (t) => t.notNull()).addColumn("name", "varchar(50)", (t) => t.notNull()).addColumn("description", "varchar(255)").addColumn("created_at", "varchar(35)", (t) => t.notNull()).addColumn("updated_at", "varchar(35)", (t) => t.notNull()).addPrimaryKeyConstraint("roles_pk", ["tenant_id", "id"]).execute(), await e.schema.createIndex("roles_tenant_name_uq").on("roles").columns(["tenant_id", "name"]).unique().execute();
|
|
4983
5005
|
}
|
|
4984
|
-
async function
|
|
5006
|
+
async function gl(e) {
|
|
4985
5007
|
await e.schema.dropTable("roles").execute(), await e.schema.dropTable("resource_servers").execute();
|
|
4986
5008
|
}
|
|
4987
|
-
const
|
|
5009
|
+
const wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4988
5010
|
__proto__: null,
|
|
4989
|
-
down:
|
|
4990
|
-
up:
|
|
5011
|
+
down: gl,
|
|
5012
|
+
up: fl
|
|
4991
5013
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4992
|
-
async function
|
|
5014
|
+
async function yl(e) {
|
|
4993
5015
|
await e.schema.createTable("role_permissions").addColumn("tenant_id", "varchar(191)", (t) => t.notNull()).addColumn("role_id", "varchar(21)", (t) => t.notNull()).addColumn(
|
|
4994
5016
|
"resource_server_identifier",
|
|
4995
5017
|
"varchar(191)",
|
|
@@ -5010,66 +5032,66 @@ async function wl(e) {
|
|
|
5010
5032
|
"permission_name"
|
|
5011
5033
|
]).execute(), await e.schema.createIndex("user_permissions_user_fk").on("user_permissions").columns(["tenant_id", "user_id"]).execute(), await e.schema.createIndex("user_permissions_permission_fk").on("user_permissions").columns(["tenant_id", "resource_server_identifier", "permission_name"]).execute();
|
|
5012
5034
|
}
|
|
5013
|
-
async function
|
|
5035
|
+
async function vl(e) {
|
|
5014
5036
|
await e.schema.dropTable("user_permissions").execute(), await e.schema.dropTable("role_permissions").execute();
|
|
5015
5037
|
}
|
|
5016
|
-
const
|
|
5038
|
+
const Cl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5017
5039
|
__proto__: null,
|
|
5018
|
-
down:
|
|
5019
|
-
up:
|
|
5040
|
+
down: vl,
|
|
5041
|
+
up: yl
|
|
5020
5042
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5021
|
-
async function
|
|
5043
|
+
async function xl(e) {
|
|
5022
5044
|
await e.schema.createTable("user_roles").addColumn("tenant_id", "varchar(191)", (t) => t.notNull()).addColumn("user_id", "varchar(191)", (t) => t.notNull()).addColumn("role_id", "varchar(21)", (t) => t.notNull()).addColumn("created_at", "varchar(35)", (t) => t.notNull()).addPrimaryKeyConstraint("user_roles_pk", [
|
|
5023
5045
|
"tenant_id",
|
|
5024
5046
|
"user_id",
|
|
5025
5047
|
"role_id"
|
|
5026
5048
|
]).execute(), await e.schema.createIndex("user_roles_user_fk").on("user_roles").columns(["tenant_id", "user_id"]).execute(), await e.schema.createIndex("user_roles_role_fk").on("user_roles").columns(["tenant_id", "role_id"]).execute();
|
|
5027
5049
|
}
|
|
5028
|
-
async function
|
|
5050
|
+
async function Tl(e) {
|
|
5029
5051
|
await e.schema.dropTable("user_roles").execute();
|
|
5030
5052
|
}
|
|
5031
|
-
const
|
|
5053
|
+
const Nl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5032
5054
|
__proto__: null,
|
|
5033
|
-
down:
|
|
5034
|
-
up:
|
|
5055
|
+
down: Tl,
|
|
5056
|
+
up: xl
|
|
5035
5057
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5036
|
-
async function Nl(e) {
|
|
5037
|
-
}
|
|
5038
5058
|
async function bl(e) {
|
|
5059
|
+
}
|
|
5060
|
+
async function Sl(e) {
|
|
5039
5061
|
await e.schema.alterTable("keys").dropColumn("connection").execute(), await e.schema.alterTable("keys").modifyColumn("cert", "varchar(2048)").execute(), await e.schema.alterTable("keys").modifyColumn("pkcs7", "varchar(2048)").execute(), await e.schema.alterTable("keys").dropColumn("type").execute();
|
|
5040
5062
|
}
|
|
5041
|
-
const
|
|
5063
|
+
const Ol = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5042
5064
|
__proto__: null,
|
|
5043
|
-
down:
|
|
5044
|
-
up:
|
|
5065
|
+
down: Sl,
|
|
5066
|
+
up: bl
|
|
5045
5067
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5046
|
-
async function
|
|
5068
|
+
async function kl(e) {
|
|
5047
5069
|
await e.schema.createTable("organizations").addColumn("id", "varchar(21)", (t) => t.primaryKey()).addColumn("tenant_id", "varchar(191)", (t) => t.notNull()).addColumn("name", "varchar(256)", (t) => t.notNull()).addColumn("display_name", "varchar(256)").addColumn("branding", "text").addColumn("metadata", "text").addColumn("enabled_connections", "text").addColumn("token_quota", "text").addColumn("created_at", "varchar(35)", (t) => t.notNull()).addColumn("updated_at", "varchar(35)", (t) => t.notNull()).execute(), await e.schema.createIndex("idx_organizations_tenant_id").on("organizations").column("tenant_id").execute(), await e.schema.createIndex("idx_organizations_tenant_name_unique").on("organizations").columns(["tenant_id", "name"]).unique().execute();
|
|
5048
5070
|
}
|
|
5049
|
-
async function
|
|
5071
|
+
async function $l(e) {
|
|
5050
5072
|
await e.schema.dropTable("organizations").execute();
|
|
5051
5073
|
}
|
|
5052
|
-
const
|
|
5074
|
+
const El = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5053
5075
|
__proto__: null,
|
|
5054
|
-
down:
|
|
5055
|
-
up:
|
|
5076
|
+
down: $l,
|
|
5077
|
+
up: kl
|
|
5056
5078
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5057
|
-
async function
|
|
5079
|
+
async function Il(e) {
|
|
5058
5080
|
await e.schema.createTable("user_organizations").addColumn("id", "varchar(21)", (t) => t.primaryKey()).addColumn("tenant_id", "varchar(191)", (t) => t.notNull()).addColumn("user_id", "varchar(191)", (t) => t.notNull()).addColumn("organization_id", "varchar(21)", (t) => t.notNull()).addColumn("created_at", "varchar(35)", (t) => t.notNull()).addColumn("updated_at", "varchar(35)", (t) => t.notNull()).addUniqueConstraint("user_organizations_unique", [
|
|
5059
5081
|
"tenant_id",
|
|
5060
5082
|
"user_id",
|
|
5061
5083
|
"organization_id"
|
|
5062
5084
|
]).execute(), await e.schema.createIndex("idx_user_organizations_tenant_id").on("user_organizations").column("tenant_id").execute(), await e.schema.createIndex("idx_user_organizations_user_id").on("user_organizations").column("user_id").execute(), await e.schema.createIndex("idx_user_organizations_organization_id").on("user_organizations").column("organization_id").execute();
|
|
5063
5085
|
}
|
|
5064
|
-
async function
|
|
5086
|
+
async function zl(e) {
|
|
5065
5087
|
await e.schema.dropTable("user_organizations").execute();
|
|
5066
5088
|
}
|
|
5067
|
-
const
|
|
5089
|
+
const Pl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5068
5090
|
__proto__: null,
|
|
5069
|
-
down:
|
|
5070
|
-
up:
|
|
5091
|
+
down: zl,
|
|
5092
|
+
up: Il
|
|
5071
5093
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5072
|
-
async function
|
|
5094
|
+
async function Dl(e) {
|
|
5073
5095
|
await e.schema.dropTable("user_permissions").execute(), await e.schema.dropTable("user_roles").execute(), await e.schema.createTable("user_permissions").addColumn("tenant_id", "varchar(191)", (t) => t.notNull()).addColumn("user_id", "varchar(191)", (t) => t.notNull()).addColumn(
|
|
5074
5096
|
"resource_server_identifier",
|
|
5075
5097
|
"varchar(21)",
|
|
@@ -5095,7 +5117,7 @@ async function Pl(e) {
|
|
|
5095
5117
|
"organization_id"
|
|
5096
5118
|
]).execute(), await e.schema.createIndex("user_roles_user_fk").on("user_roles").columns(["tenant_id", "user_id"]).execute(), await e.schema.createIndex("user_roles_role_fk").on("user_roles").columns(["tenant_id", "role_id"]).execute(), await e.schema.createIndex("user_roles_organization_fk").on("user_roles").column("organization_id").execute();
|
|
5097
5119
|
}
|
|
5098
|
-
async function
|
|
5120
|
+
async function Al(e) {
|
|
5099
5121
|
await e.schema.dropTable("user_permissions").execute(), await e.schema.dropTable("user_roles").execute(), await e.schema.createTable("user_permissions").addColumn("tenant_id", "varchar(191)", (t) => t.notNull()).addColumn("user_id", "varchar(191)", (t) => t.notNull()).addColumn(
|
|
5100
5122
|
"resource_server_identifier",
|
|
5101
5123
|
"varchar(191)",
|
|
@@ -5111,12 +5133,12 @@ async function Dl(e) {
|
|
|
5111
5133
|
"role_id"
|
|
5112
5134
|
]).execute(), await e.schema.createIndex("user_roles_user_fk").on("user_roles").columns(["tenant_id", "user_id"]).execute(), await e.schema.createIndex("user_roles_role_fk").on("user_roles").columns(["tenant_id", "role_id"]).execute();
|
|
5113
5135
|
}
|
|
5114
|
-
const
|
|
5136
|
+
const jl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5115
5137
|
__proto__: null,
|
|
5116
|
-
down:
|
|
5117
|
-
up:
|
|
5138
|
+
down: Al,
|
|
5139
|
+
up: Dl
|
|
5118
5140
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5119
|
-
async function
|
|
5141
|
+
async function Fl(e) {
|
|
5120
5142
|
await e.schema.createTable("clients").addColumn("client_id", "varchar(191)", (t) => t.notNull()).addColumn(
|
|
5121
5143
|
"tenant_id",
|
|
5122
5144
|
"varchar(191)",
|
|
@@ -5158,13 +5180,13 @@ async function jl(e) {
|
|
|
5158
5180
|
"client_id"
|
|
5159
5181
|
]).execute();
|
|
5160
5182
|
}
|
|
5161
|
-
async function
|
|
5183
|
+
async function Rl(e) {
|
|
5162
5184
|
await e.schema.dropTable("clients").execute();
|
|
5163
5185
|
}
|
|
5164
|
-
const
|
|
5186
|
+
const Ml = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5165
5187
|
__proto__: null,
|
|
5166
|
-
down:
|
|
5167
|
-
up:
|
|
5188
|
+
down: Rl,
|
|
5189
|
+
up: Fl
|
|
5168
5190
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5169
5191
|
async function ye(e) {
|
|
5170
5192
|
try {
|
|
@@ -5173,10 +5195,10 @@ async function ye(e) {
|
|
|
5173
5195
|
return "sqlite";
|
|
5174
5196
|
}
|
|
5175
5197
|
}
|
|
5176
|
-
async function Ml(e) {
|
|
5177
|
-
await ye(e) === "mysql" ? await Jl(e) : await Ll(e);
|
|
5178
|
-
}
|
|
5179
5198
|
async function Jl(e) {
|
|
5199
|
+
await ye(e) === "mysql" ? await Ll(e) : await Kl(e);
|
|
5200
|
+
}
|
|
5201
|
+
async function Ll(e) {
|
|
5180
5202
|
await e.transaction().execute(async (t) => {
|
|
5181
5203
|
const a = await h`
|
|
5182
5204
|
SELECT
|
|
@@ -5257,7 +5279,7 @@ async function Jl(e) {
|
|
|
5257
5279
|
FROM login_sessions_backup`.execute(t), await h`DROP TABLE sessions_backup`.execute(t), await h`DROP TABLE login_sessions_backup`.execute(t), await h`DROP TABLE refresh_tokens_backup`.execute(t);
|
|
5258
5280
|
});
|
|
5259
5281
|
}
|
|
5260
|
-
async function
|
|
5282
|
+
async function Kl(e) {
|
|
5261
5283
|
await e.transaction().execute(async (t) => {
|
|
5262
5284
|
const a = [
|
|
5263
5285
|
"sessions_backup",
|
|
@@ -5323,10 +5345,10 @@ async function Ll(e) {
|
|
|
5323
5345
|
FROM login_sessions_backup`.execute(t), await h`DROP TABLE sessions_backup`.execute(t), await h`DROP TABLE login_sessions_backup`.execute(t), await h`DROP TABLE refresh_tokens_backup`.execute(t);
|
|
5324
5346
|
});
|
|
5325
5347
|
}
|
|
5326
|
-
async function Kl(e) {
|
|
5327
|
-
await ye(e) === "mysql" ? await ql(e) : await Bl(e);
|
|
5328
|
-
}
|
|
5329
5348
|
async function ql(e) {
|
|
5349
|
+
await ye(e) === "mysql" ? await Bl(e) : await Ul(e);
|
|
5350
|
+
}
|
|
5351
|
+
async function Bl(e) {
|
|
5330
5352
|
await e.transaction().execute(async (t) => {
|
|
5331
5353
|
await h`ALTER TABLE refresh_tokens DROP FOREIGN KEY refresh_tokens_client_fk`.execute(
|
|
5332
5354
|
t
|
|
@@ -5343,7 +5365,7 @@ async function ql(e) {
|
|
|
5343
5365
|
);
|
|
5344
5366
|
});
|
|
5345
5367
|
}
|
|
5346
|
-
async function
|
|
5368
|
+
async function Ul(e) {
|
|
5347
5369
|
await e.transaction().execute(async (t) => {
|
|
5348
5370
|
await h`CREATE TABLE refresh_tokens_temp AS SELECT * FROM refresh_tokens`.execute(
|
|
5349
5371
|
t
|
|
@@ -5373,12 +5395,12 @@ async function Bl(e) {
|
|
|
5373
5395
|
FROM login_sessions_temp`.execute(t), await h`DROP TABLE login_sessions_temp`.execute(t);
|
|
5374
5396
|
});
|
|
5375
5397
|
}
|
|
5376
|
-
const
|
|
5398
|
+
const Ql = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5377
5399
|
__proto__: null,
|
|
5378
|
-
down:
|
|
5379
|
-
up:
|
|
5400
|
+
down: ql,
|
|
5401
|
+
up: Jl
|
|
5380
5402
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5381
|
-
async function
|
|
5403
|
+
async function Hl(e) {
|
|
5382
5404
|
await e.schema.createTable("client_grants").addColumn("id", "varchar(21)", (t) => t.notNull()).addColumn(
|
|
5383
5405
|
"tenant_id",
|
|
5384
5406
|
"varchar(191)",
|
|
@@ -5395,89 +5417,89 @@ async function Ql(e) {
|
|
|
5395
5417
|
(t) => t.onDelete("cascade")
|
|
5396
5418
|
).execute(), await e.schema.createIndex("uq_client_grants_tenant_client_audience").on("client_grants").columns(["tenant_id", "client_id", "audience"]).unique().execute(), await e.schema.createIndex("idx_client_grants_audience").on("client_grants").columns(["audience"]).execute();
|
|
5397
5419
|
}
|
|
5398
|
-
async function
|
|
5420
|
+
async function Yl(e) {
|
|
5399
5421
|
await e.schema.dropTable("client_grants").execute();
|
|
5400
5422
|
}
|
|
5401
|
-
const
|
|
5423
|
+
const Wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5402
5424
|
__proto__: null,
|
|
5403
|
-
down:
|
|
5404
|
-
up:
|
|
5425
|
+
down: Yl,
|
|
5426
|
+
up: Hl
|
|
5405
5427
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5406
|
-
async function
|
|
5428
|
+
async function Gl(e) {
|
|
5407
5429
|
await e.schema.dropTable("applications").execute();
|
|
5408
5430
|
}
|
|
5409
|
-
async function
|
|
5431
|
+
async function Vl(e) {
|
|
5410
5432
|
await e.schema.createTable("applications").addColumn("id", "varchar(21)", (t) => t.notNull()).addColumn(
|
|
5411
5433
|
"tenant_id",
|
|
5412
5434
|
"varchar(191)",
|
|
5413
5435
|
(t) => t.notNull().references("tenants.id").onDelete("cascade")
|
|
5414
5436
|
).addColumn("name", "varchar(255)", (t) => t.notNull()).addColumn("client_secret", "varchar(255)").addColumn("callbacks", "text", (t) => t.defaultTo("[]")).addColumn("allowed_origins", "text", (t) => t.defaultTo("[]")).addColumn("web_origins", "text", (t) => t.defaultTo("[]")).addColumn("allowed_logout_urls", "text", (t) => t.defaultTo("[]")).addColumn("allowed_clients", "text", (t) => t.defaultTo("[]")).addColumn("disable_sign_ups", "integer", (t) => t.defaultTo(0)).addColumn("addons", "text", (t) => t.defaultTo("{}")).addColumn("client_metadata", "text", (t) => t.defaultTo("{}")).addColumn("created_at", "varchar(35)", (t) => t.notNull()).addColumn("updated_at", "varchar(35)", (t) => t.notNull()).addPrimaryKeyConstraint("pk_applications", ["tenant_id", "id"]).execute(), await e.schema.createIndex("idx_applications_tenant_id").on("applications").columns(["tenant_id"]).execute();
|
|
5415
5437
|
}
|
|
5416
|
-
const
|
|
5438
|
+
const Xl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5417
5439
|
__proto__: null,
|
|
5418
|
-
down:
|
|
5419
|
-
up:
|
|
5440
|
+
down: Vl,
|
|
5441
|
+
up: Gl
|
|
5420
5442
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5421
|
-
async function
|
|
5443
|
+
async function Zl(e) {
|
|
5422
5444
|
await e.schema.createIndex("users_phone_tenant_provider_index").on("users").columns(["tenant_id", "phone_number", "provider"]).execute();
|
|
5423
5445
|
}
|
|
5424
|
-
async function
|
|
5446
|
+
async function ed(e) {
|
|
5425
5447
|
await e.schema.dropIndex("users_phone_tenant_provider_index").execute();
|
|
5426
5448
|
}
|
|
5427
|
-
const
|
|
5449
|
+
const td = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5428
5450
|
__proto__: null,
|
|
5429
|
-
down:
|
|
5430
|
-
up:
|
|
5451
|
+
down: ed,
|
|
5452
|
+
up: Zl
|
|
5431
5453
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5432
|
-
async function
|
|
5454
|
+
async function ad(e) {
|
|
5433
5455
|
await e.schema.createIndex("login_sessions_id_index").on("login_sessions").column("id").execute();
|
|
5434
5456
|
}
|
|
5435
|
-
async function
|
|
5457
|
+
async function nd(e) {
|
|
5436
5458
|
await e.schema.dropIndex("login_sessions_id_index").execute();
|
|
5437
5459
|
}
|
|
5438
|
-
const
|
|
5460
|
+
const od = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5439
5461
|
__proto__: null,
|
|
5440
|
-
down:
|
|
5441
|
-
up:
|
|
5462
|
+
down: nd,
|
|
5463
|
+
up: ad
|
|
5442
5464
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5443
|
-
async function
|
|
5465
|
+
async function rd(e) {
|
|
5444
5466
|
await e.schema.createIndex("connections_tenant_id_index").on("connections").column("tenant_id").execute();
|
|
5445
5467
|
}
|
|
5446
|
-
async function
|
|
5468
|
+
async function sd(e) {
|
|
5447
5469
|
await e.schema.dropIndex("connections_tenant_id_index").execute();
|
|
5448
5470
|
}
|
|
5449
|
-
const
|
|
5471
|
+
const id = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5450
5472
|
__proto__: null,
|
|
5451
|
-
down:
|
|
5452
|
-
up:
|
|
5473
|
+
down: sd,
|
|
5474
|
+
up: rd
|
|
5453
5475
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5454
|
-
async function
|
|
5476
|
+
async function cd(e) {
|
|
5455
5477
|
await e.schema.dropIndex("idx_user_organizations_tenant_id").execute();
|
|
5456
5478
|
}
|
|
5457
|
-
async function
|
|
5479
|
+
async function ld(e) {
|
|
5458
5480
|
await e.schema.createIndex("idx_user_organizations_tenant_id").on("user_organizations").column("tenant_id").execute();
|
|
5459
5481
|
}
|
|
5460
|
-
const
|
|
5482
|
+
const dd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5461
5483
|
__proto__: null,
|
|
5462
|
-
down:
|
|
5463
|
-
up:
|
|
5484
|
+
down: ld,
|
|
5485
|
+
up: cd
|
|
5464
5486
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5465
|
-
async function
|
|
5487
|
+
async function ud(e) {
|
|
5466
5488
|
await e.schema.createTable("tenant_settings").addColumn(
|
|
5467
5489
|
"tenant_id",
|
|
5468
5490
|
"varchar(191)",
|
|
5469
5491
|
(t) => t.references("tenants.id").onDelete("cascade").notNull().primaryKey()
|
|
5470
5492
|
).addColumn("idle_session_lifetime", "integer").addColumn("session_lifetime", "integer").addColumn("session_cookie", "text").addColumn("enable_client_connections", "integer").addColumn("default_redirection_uri", "text").addColumn("enabled_locales", "text").addColumn("default_directory", "varchar(255)").addColumn("error_page", "text").addColumn("flags", "text").addColumn("friendly_name", "varchar(255)").addColumn("picture_url", "text").addColumn("support_email", "varchar(255)").addColumn("support_url", "text").addColumn("sandbox_version", "varchar(50)").addColumn("sandbox_versions_available", "text").addColumn("change_password", "text").addColumn("guardian_mfa_page", "text").addColumn("default_audience", "varchar(255)").addColumn("default_organization", "varchar(255)").addColumn("sessions", "text").execute();
|
|
5471
5493
|
}
|
|
5472
|
-
async function
|
|
5494
|
+
async function _d(e) {
|
|
5473
5495
|
await e.schema.dropTable("tenant_settings").execute();
|
|
5474
5496
|
}
|
|
5475
|
-
const
|
|
5497
|
+
const md = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5476
5498
|
__proto__: null,
|
|
5477
|
-
down:
|
|
5478
|
-
up:
|
|
5499
|
+
down: _d,
|
|
5500
|
+
up: ud
|
|
5479
5501
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5480
|
-
async function
|
|
5502
|
+
async function hd(e) {
|
|
5481
5503
|
if (await e.schema.alterTable("tenants").addColumn("idle_session_lifetime", "integer").execute(), await e.schema.alterTable("tenants").addColumn("session_lifetime", "integer").execute(), await e.schema.alterTable("tenants").addColumn("session_cookie", "text").execute(), await e.schema.alterTable("tenants").addColumn("allowed_logout_urls", "text").execute(), await e.schema.alterTable("tenants").addColumn("ephemeral_session_lifetime", "integer").execute(), await e.schema.alterTable("tenants").addColumn("idle_ephemeral_session_lifetime", "integer").execute(), await e.schema.alterTable("tenants").addColumn("default_redirection_uri", "text").execute(), await e.schema.alterTable("tenants").addColumn("enabled_locales", "text").execute(), await e.schema.alterTable("tenants").addColumn("default_directory", "varchar(255)").execute(), await e.schema.alterTable("tenants").addColumn("error_page", "text").execute(), await e.schema.alterTable("tenants").addColumn("flags", "text").execute(), await e.schema.alterTable("tenants").addColumn("friendly_name", "varchar(255)").execute(), await e.schema.alterTable("tenants").addColumn("picture_url", "text").execute(), await e.schema.alterTable("tenants").addColumn("support_email", "varchar(255)").execute(), await e.schema.alterTable("tenants").addColumn("sandbox_version", "varchar(50)").execute(), await e.schema.alterTable("tenants").addColumn("sandbox_versions_available", "text").execute(), await e.schema.alterTable("tenants").addColumn("legacy_sandbox_version", "varchar(50)").execute(), await e.schema.alterTable("tenants").addColumn("change_password", "text").execute(), await e.schema.alterTable("tenants").addColumn("guardian_mfa_page", "text").execute(), await e.schema.alterTable("tenants").addColumn("device_flow", "text").execute(), await e.schema.alterTable("tenants").addColumn("default_token_quota", "text").execute(), await e.schema.alterTable("tenants").addColumn("default_audience", "varchar(255)").execute(), await e.schema.alterTable("tenants").addColumn("default_organization", "varchar(255)").execute(), await e.schema.alterTable("tenants").addColumn("sessions", "text").execute(), await e.schema.alterTable("tenants").addColumn("oidc_logout", "text").execute(), await e.schema.alterTable("tenants").addColumn("allow_organization_name_in_authentication_api", "integer").execute(), await e.schema.alterTable("tenants").addColumn("customize_mfa_in_postlogin_action", "integer").execute(), await e.schema.alterTable("tenants").addColumn("acr_values_supported", "text").execute(), await e.schema.alterTable("tenants").addColumn("mtls", "text").execute(), await e.schema.alterTable("tenants").addColumn("pushed_authorization_requests_supported", "integer").execute(), await e.schema.alterTable("tenants").addColumn("authorization_response_iss_parameter_supported", "integer").execute(), await e.updateTable("tenants").set({
|
|
5482
5504
|
friendly_name: h`name`
|
|
5483
5505
|
}).execute(), await e.schema.alterTable("tenants").dropColumn("language").execute(), await e.schema.alterTable("tenants").dropColumn("logo").execute(), await e.schema.alterTable("tenants").dropColumn("primary_color").execute(), await e.schema.alterTable("tenants").dropColumn("secondary_color").execute(), await e.schema.alterTable("tenants").dropColumn("name").execute(), (await e.selectFrom("tenant_settings").select("tenant_id").limit(1).execute()).length > 0) {
|
|
@@ -5508,7 +5530,7 @@ async function md(e) {
|
|
|
5508
5530
|
}
|
|
5509
5531
|
await e.schema.dropTable("tenant_settings").execute();
|
|
5510
5532
|
}
|
|
5511
|
-
async function
|
|
5533
|
+
async function pd(e) {
|
|
5512
5534
|
await e.schema.createTable("tenant_settings").addColumn(
|
|
5513
5535
|
"tenant_id",
|
|
5514
5536
|
"varchar(191)",
|
|
@@ -5565,45 +5587,45 @@ async function hd(e) {
|
|
|
5565
5587
|
name: h`COALESCE(friendly_name, id)`
|
|
5566
5588
|
}).execute(), await e.schema.alterTable("tenants").addColumn("language", "varchar(255)").execute(), await e.schema.alterTable("tenants").addColumn("logo", "text").execute(), await e.schema.alterTable("tenants").addColumn("primary_color", "varchar(50)").execute(), await e.schema.alterTable("tenants").addColumn("secondary_color", "varchar(50)").execute();
|
|
5567
5589
|
}
|
|
5568
|
-
const
|
|
5590
|
+
const fd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5569
5591
|
__proto__: null,
|
|
5570
|
-
down:
|
|
5571
|
-
up:
|
|
5592
|
+
down: pd,
|
|
5593
|
+
up: hd
|
|
5572
5594
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5573
|
-
async function
|
|
5595
|
+
async function gd(e) {
|
|
5574
5596
|
await e.schema.createTable("invites").addColumn("id", "varchar(21)", (t) => t.primaryKey()).addColumn("tenant_id", "varchar(191)", (t) => t.notNull()).addColumn("organization_id", "varchar(21)", (t) => t.notNull()).addColumn("inviter", "text", (t) => t.notNull()).addColumn("invitee", "text", (t) => t.notNull()).addColumn("client_id", "varchar(191)", (t) => t.notNull()).addColumn("connection_id", "varchar(21)").addColumn("invitation_url", "text", (t) => t.notNull()).addColumn("created_at", "varchar(35)", (t) => t.notNull()).addColumn("expires_at", "varchar(35)", (t) => t.notNull()).addColumn("app_metadata", "text").addColumn("user_metadata", "text").addColumn("roles", "text").addColumn("ticket_id", "varchar(191)").addColumn("ttl_sec", "integer").addColumn("send_invitation_email", "integer").execute(), await e.schema.createIndex("idx_invites_tenant_id").on("invites").column("tenant_id").execute(), await e.schema.createIndex("idx_invites_organization_id").on("invites").column("organization_id").execute(), await e.schema.createIndex("idx_invites_expires_at").on("invites").column("expires_at").execute(), await e.schema.createIndex("idx_invites_tenant_created").on("invites").columns(["tenant_id", "created_at"]).execute();
|
|
5575
5597
|
}
|
|
5576
|
-
async function
|
|
5598
|
+
async function wd(e) {
|
|
5577
5599
|
await e.schema.dropTable("invites").execute();
|
|
5578
5600
|
}
|
|
5579
|
-
const
|
|
5601
|
+
const yd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5580
5602
|
__proto__: null,
|
|
5581
|
-
down:
|
|
5582
|
-
up:
|
|
5603
|
+
down: wd,
|
|
5604
|
+
up: gd
|
|
5583
5605
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5584
|
-
async function
|
|
5606
|
+
async function vd(e) {
|
|
5585
5607
|
await e.schema.dropTable("logs").ifExists().execute(), await e.schema.createTable("logs").addColumn("log_id", "varchar(21)", (t) => t.primaryKey().notNull()).addColumn("category", "varchar(255)").addColumn("tenant_id", "varchar(64)").addColumn("user_id", "varchar(64)").addColumn("ip", "varchar(255)").addColumn("type", "varchar(8)", (t) => t.notNull()).addColumn("date", "varchar(25)", (t) => t.notNull()).addColumn("client_id", "varchar(255)").addColumn("client_name", "varchar(255)").addColumn("user_agent", "varchar(255)").addColumn("description", "varchar(255)").addColumn("details", "varchar(2048)").addColumn("isMobile", "integer").addColumn("user_name", "varchar(255)").addColumn("connection", "varchar(255)").addColumn("connection_id", "varchar(255)").addColumn("audience", "varchar(255)").addColumn("scope", "varchar(255)").addColumn("strategy", "varchar(255)").addColumn("strategy_type", "varchar(255)").addColumn("hostname", "varchar(255)").addColumn("auth0_client", "varchar(8192)").addColumn("session_connection", "varchar(255)").execute();
|
|
5586
5608
|
}
|
|
5587
|
-
async function
|
|
5609
|
+
async function Cd(e) {
|
|
5588
5610
|
await e.schema.dropTable("logs").ifExists().execute(), await e.schema.createTable("logs").addColumn("id", "varchar(255)", (t) => t.primaryKey().notNull()).addColumn("category", "varchar(255)", (t) => t.notNull()).addColumn("tenant_id", "varchar(64)").addColumn("user_id", "varchar(64)").addColumn("ip", "varchar(255)").addColumn("type", "varchar(8)", (t) => t.notNull()).addColumn("date", "varchar(25)", (t) => t.notNull()).addColumn("client_id", "varchar(255)").addColumn("client_name", "varchar(255)").addColumn("user_agent", "varchar(255)").addColumn("description", "varchar(255)").addColumn("details", "varchar(2048)").execute();
|
|
5589
5611
|
}
|
|
5590
|
-
const
|
|
5612
|
+
const xd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5591
5613
|
__proto__: null,
|
|
5592
|
-
down:
|
|
5593
|
-
up:
|
|
5614
|
+
down: Cd,
|
|
5615
|
+
up: vd
|
|
5594
5616
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5595
|
-
async function
|
|
5617
|
+
async function Td(e) {
|
|
5596
5618
|
await e.schema.alterTable("logs").addColumn("country_code", "varchar(2)").execute(), await e.schema.alterTable("logs").addColumn("city_name", "varchar(255)").execute(), await e.schema.alterTable("logs").addColumn("latitude", "varchar(255)").execute(), await e.schema.alterTable("logs").addColumn("longitude", "varchar(255)").execute(), await e.schema.alterTable("logs").addColumn("time_zone", "varchar(255)").execute(), await e.schema.alterTable("logs").addColumn("continent_code", "varchar(2)").execute();
|
|
5597
5619
|
}
|
|
5598
|
-
async function
|
|
5620
|
+
async function Nd(e) {
|
|
5599
5621
|
await e.schema.alterTable("logs").dropColumn("country_code").execute(), await e.schema.alterTable("logs").dropColumn("city_name").execute(), await e.schema.alterTable("logs").dropColumn("latitude").execute(), await e.schema.alterTable("logs").dropColumn("longitude").execute(), await e.schema.alterTable("logs").dropColumn("time_zone").execute(), await e.schema.alterTable("logs").dropColumn("continent_code").execute();
|
|
5600
5622
|
}
|
|
5601
|
-
const
|
|
5623
|
+
const bd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5602
5624
|
__proto__: null,
|
|
5603
|
-
down:
|
|
5604
|
-
up:
|
|
5605
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5606
|
-
async function
|
|
5625
|
+
down: Nd,
|
|
5626
|
+
up: Td
|
|
5627
|
+
}, Symbol.toStringTag, { value: "Module" })), F = 1e3;
|
|
5628
|
+
async function Sd(e) {
|
|
5607
5629
|
await e.schema.createTable("password_history").addColumn("id", "varchar(21)", (n) => n.primaryKey()).addColumn("user_id", "varchar(191)", (n) => n.notNull()).addColumn(
|
|
5608
5630
|
"tenant_id",
|
|
5609
5631
|
"varchar(191)",
|
|
@@ -5628,7 +5650,7 @@ async function bd(e) {
|
|
|
5628
5650
|
"algorithm",
|
|
5629
5651
|
"created_at",
|
|
5630
5652
|
"updated_at"
|
|
5631
|
-
]).limit(
|
|
5653
|
+
]).limit(F).offset(t).execute();
|
|
5632
5654
|
if (n.length === 0) {
|
|
5633
5655
|
a = !1;
|
|
5634
5656
|
break;
|
|
@@ -5644,11 +5666,11 @@ async function bd(e) {
|
|
|
5644
5666
|
updated_at: o.updated_at ?? o.created_at,
|
|
5645
5667
|
is_current: 1
|
|
5646
5668
|
}).execute();
|
|
5647
|
-
t +=
|
|
5669
|
+
t += F, n.length < F && (a = !1);
|
|
5648
5670
|
}
|
|
5649
5671
|
await e.schema.alterTable("passwords").renameTo("passwords_backup").execute(), await e.schema.alterTable("password_history").renameTo("passwords").execute();
|
|
5650
5672
|
}
|
|
5651
|
-
async function
|
|
5673
|
+
async function Od(e) {
|
|
5652
5674
|
await e.schema.alterTable("passwords").renameTo("password_history").execute();
|
|
5653
5675
|
try {
|
|
5654
5676
|
await e.schema.alterTable("passwords_backup").renameTo("passwords").execute();
|
|
@@ -5677,7 +5699,7 @@ async function Sd(e) {
|
|
|
5677
5699
|
"algorithm",
|
|
5678
5700
|
"created_at",
|
|
5679
5701
|
"updated_at"
|
|
5680
|
-
]).where("is_current", "=", 1).limit(
|
|
5702
|
+
]).where("is_current", "=", 1).limit(F).offset(t).execute();
|
|
5681
5703
|
if (n.length === 0) {
|
|
5682
5704
|
a = !1;
|
|
5683
5705
|
break;
|
|
@@ -5691,61 +5713,61 @@ async function Sd(e) {
|
|
|
5691
5713
|
created_at: o.created_at,
|
|
5692
5714
|
updated_at: o.updated_at
|
|
5693
5715
|
}).execute();
|
|
5694
|
-
t +=
|
|
5716
|
+
t += F, n.length < F && (a = !1);
|
|
5695
5717
|
}
|
|
5696
5718
|
}
|
|
5697
5719
|
await e.schema.dropTable("password_history").execute();
|
|
5698
5720
|
}
|
|
5699
|
-
const
|
|
5721
|
+
const kd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5700
5722
|
__proto__: null,
|
|
5701
|
-
down:
|
|
5702
|
-
up:
|
|
5723
|
+
down: Od,
|
|
5724
|
+
up: Sd
|
|
5703
5725
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5704
|
-
async function
|
|
5726
|
+
async function $d(e) {
|
|
5705
5727
|
await e.schema.alterTable("connections").addColumn("display_name", "varchar(255)").execute(), await e.schema.alterTable("connections").addColumn("is_domain_connection", "integer").execute(), await e.schema.alterTable("connections").addColumn("show_as_button", "integer").execute(), await e.schema.alterTable("connections").addColumn("metadata", "varchar(4096)").execute();
|
|
5706
5728
|
}
|
|
5707
|
-
async function
|
|
5729
|
+
async function Ed(e) {
|
|
5708
5730
|
await e.schema.alterTable("connections").dropColumn("display_name").execute(), await e.schema.alterTable("connections").dropColumn("is_domain_connection").execute(), await e.schema.alterTable("connections").dropColumn("show_as_button").execute(), await e.schema.alterTable("connections").dropColumn("metadata").execute();
|
|
5709
5731
|
}
|
|
5710
|
-
const
|
|
5732
|
+
const Id = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5711
5733
|
__proto__: null,
|
|
5712
|
-
down:
|
|
5713
|
-
up:
|
|
5734
|
+
down: Ed,
|
|
5735
|
+
up: $d
|
|
5714
5736
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5715
|
-
async function
|
|
5737
|
+
async function zd(e) {
|
|
5716
5738
|
await e.schema.alterTable("clients").addColumn("connections", "text", (t) => t.notNull().defaultTo("[]")).execute();
|
|
5717
5739
|
}
|
|
5718
|
-
async function
|
|
5740
|
+
async function Pd(e) {
|
|
5719
5741
|
await e.schema.alterTable("clients").dropColumn("connections").execute();
|
|
5720
5742
|
}
|
|
5721
|
-
const
|
|
5743
|
+
const Dd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5722
5744
|
__proto__: null,
|
|
5723
|
-
down:
|
|
5724
|
-
up:
|
|
5745
|
+
down: Pd,
|
|
5746
|
+
up: zd
|
|
5725
5747
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5726
|
-
async function
|
|
5748
|
+
async function Ad(e) {
|
|
5727
5749
|
await e.schema.createTable("flows").addColumn("id", "varchar(24)", (t) => t.primaryKey()).addColumn("tenant_id", "varchar(191)", (t) => t.notNull()).addColumn("name", "varchar(150)", (t) => t.notNull()).addColumn("actions", "text").addColumn("created_at", "varchar(35)", (t) => t.notNull()).addColumn("updated_at", "varchar(35)", (t) => t.notNull()).execute(), await e.schema.createIndex("flows_tenant_id_idx").on("flows").column("tenant_id").execute(), await e.schema.dropTable("passwords_backup").execute();
|
|
5728
5750
|
}
|
|
5729
|
-
async function
|
|
5751
|
+
async function jd(e) {
|
|
5730
5752
|
await e.schema.dropTable("flows").execute();
|
|
5731
5753
|
}
|
|
5732
|
-
const
|
|
5754
|
+
const Fd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5733
5755
|
__proto__: null,
|
|
5734
|
-
down:
|
|
5735
|
-
up:
|
|
5756
|
+
down: jd,
|
|
5757
|
+
up: Ad
|
|
5736
5758
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5737
|
-
async function
|
|
5759
|
+
async function Rd(e) {
|
|
5738
5760
|
await e.schema.alterTable("resource_servers").addColumn("is_system", "integer", (t) => t.defaultTo(0).notNull()).execute(), await e.schema.alterTable("roles").addColumn("is_system", "integer", (t) => t.defaultTo(0).notNull()).execute(), await e.schema.alterTable("connections").addColumn("is_system", "integer", (t) => t.defaultTo(0).notNull()).execute();
|
|
5739
5761
|
}
|
|
5740
|
-
async function
|
|
5762
|
+
async function Md(e) {
|
|
5741
5763
|
await e.schema.alterTable("resource_servers").dropColumn("is_system").execute(), await e.schema.alterTable("roles").dropColumn("is_system").execute(), await e.schema.alterTable("connections").dropColumn("is_system").execute();
|
|
5742
5764
|
}
|
|
5743
|
-
const
|
|
5765
|
+
const Jd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5744
5766
|
__proto__: null,
|
|
5745
|
-
down:
|
|
5746
|
-
up:
|
|
5767
|
+
down: Md,
|
|
5768
|
+
up: Rd
|
|
5747
5769
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5748
|
-
async function
|
|
5770
|
+
async function Ld(e) {
|
|
5749
5771
|
const t = await e.selectFrom("keys").selectAll().execute();
|
|
5750
5772
|
await e.schema.dropTable("keys").execute(), await h`ALTER TABLE connections RENAME TO connections_old`.execute(e), await e.schema.createTable("connections").addColumn("id", "varchar(255)", (a) => a.notNull()).addColumn(
|
|
5751
5773
|
"tenant_id",
|
|
@@ -5778,7 +5800,7 @@ async function Jd(e) {
|
|
|
5778
5800
|
for (const a of t)
|
|
5779
5801
|
await e.insertInto("keys").values(a).execute();
|
|
5780
5802
|
}
|
|
5781
|
-
async function
|
|
5803
|
+
async function Kd(e) {
|
|
5782
5804
|
const t = await e.selectFrom("keys").selectAll().execute();
|
|
5783
5805
|
await e.schema.dropTable("keys").execute(), await h`ALTER TABLE connections RENAME TO connections_new`.execute(e), await e.schema.createTable("connections").addColumn("id", "varchar(255)", (a) => a.notNull().primaryKey()).addColumn(
|
|
5784
5806
|
"tenant_id",
|
|
@@ -5815,12 +5837,12 @@ async function Ld(e) {
|
|
|
5815
5837
|
for (const a of t)
|
|
5816
5838
|
await e.insertInto("keys").values(a).execute();
|
|
5817
5839
|
}
|
|
5818
|
-
const
|
|
5840
|
+
const qd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5819
5841
|
__proto__: null,
|
|
5820
|
-
down:
|
|
5821
|
-
up:
|
|
5842
|
+
down: Kd,
|
|
5843
|
+
up: Ld
|
|
5822
5844
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5823
|
-
async function
|
|
5845
|
+
async function Bd(e) {
|
|
5824
5846
|
await e.schema.alterTable("login_sessions").addColumn("state", "varchar(50)", (t) => t.defaultTo("pending")).execute(), await e.schema.alterTable("login_sessions").addColumn("state_data", "text").execute(), await e.schema.alterTable("login_sessions").addColumn("failure_reason", "text").execute(), await e.schema.alterTable("login_sessions").addColumn("user_id", "varchar(255)").execute(), await e.schema.createIndex("login_sessions_tenant_user_idx").on("login_sessions").columns(["tenant_id", "user_id"]).execute(), await e.updateTable("login_sessions").set({
|
|
5825
5847
|
state: h`CASE
|
|
5826
5848
|
WHEN login_completed = 1 THEN 'completed'
|
|
@@ -5829,28 +5851,28 @@ async function qd(e) {
|
|
|
5829
5851
|
END`
|
|
5830
5852
|
}).execute(), await e.schema.alterTable("login_sessions").dropColumn("login_completed").execute(), await e.schema.createIndex("login_sessions_state_idx").on("login_sessions").column("state").execute(), await e.schema.createIndex("login_sessions_state_updated_idx").on("login_sessions").columns(["state", "updated_at"]).execute();
|
|
5831
5853
|
}
|
|
5832
|
-
async function
|
|
5854
|
+
async function Ud(e) {
|
|
5833
5855
|
await e.schema.alterTable("login_sessions").addColumn("login_completed", "integer", (t) => t.defaultTo(0)).execute(), await e.updateTable("login_sessions").set({
|
|
5834
5856
|
login_completed: h`CASE WHEN state = 'completed' THEN 1 ELSE 0 END`
|
|
5835
5857
|
}).execute(), await e.schema.dropIndex("login_sessions_state_updated_idx").execute(), await e.schema.dropIndex("login_sessions_state_idx").execute(), await e.schema.dropIndex("login_sessions_tenant_user_idx").execute(), await e.schema.alterTable("login_sessions").dropColumn("state").dropColumn("state_data").dropColumn("failure_reason").dropColumn("user_id").execute();
|
|
5836
5858
|
}
|
|
5837
|
-
const
|
|
5859
|
+
const Qd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5838
5860
|
__proto__: null,
|
|
5839
|
-
down:
|
|
5840
|
-
up:
|
|
5861
|
+
down: Ud,
|
|
5862
|
+
up: Bd
|
|
5841
5863
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5842
|
-
async function
|
|
5864
|
+
async function Hd(e) {
|
|
5843
5865
|
await e.schema.alterTable("roles").addColumn("metadata", "varchar(4096)").execute(), await e.schema.alterTable("resource_servers").addColumn("metadata", "varchar(4096)").execute();
|
|
5844
5866
|
}
|
|
5845
|
-
async function
|
|
5867
|
+
async function Yd(e) {
|
|
5846
5868
|
await e.schema.alterTable("roles").dropColumn("metadata").execute(), await e.schema.alterTable("resource_servers").dropColumn("metadata").execute();
|
|
5847
5869
|
}
|
|
5848
|
-
const
|
|
5870
|
+
const Wd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5849
5871
|
__proto__: null,
|
|
5850
|
-
down:
|
|
5851
|
-
up:
|
|
5872
|
+
down: Yd,
|
|
5873
|
+
up: Hd
|
|
5852
5874
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5853
|
-
async function
|
|
5875
|
+
async function Gd(e) {
|
|
5854
5876
|
try {
|
|
5855
5877
|
return await h`SELECT VERSION()`.execute(e), "mysql";
|
|
5856
5878
|
} catch {
|
|
@@ -5870,11 +5892,11 @@ async function x(e, t, a, n) {
|
|
|
5870
5892
|
throw o;
|
|
5871
5893
|
}
|
|
5872
5894
|
}
|
|
5873
|
-
async function
|
|
5874
|
-
const t = await
|
|
5895
|
+
async function Vd(e) {
|
|
5896
|
+
const t = await Gd(e);
|
|
5875
5897
|
await x(e, "refresh_tokens", "created_at_ts", "bigint"), await x(e, "refresh_tokens", "expires_at_ts", "bigint"), await x(e, "refresh_tokens", "idle_expires_at_ts", "bigint"), await x(e, "refresh_tokens", "last_exchanged_at_ts", "bigint"), await x(e, "sessions", "created_at_ts", "bigint"), await x(e, "sessions", "updated_at_ts", "bigint"), await x(e, "sessions", "expires_at_ts", "bigint"), await x(e, "sessions", "idle_expires_at_ts", "bigint"), await x(e, "sessions", "authenticated_at_ts", "bigint"), await x(e, "sessions", "last_interaction_at_ts", "bigint"), await x(e, "sessions", "used_at_ts", "bigint"), await x(e, "sessions", "revoked_at_ts", "bigint"), await x(e, "login_sessions", "created_at_ts", "bigint"), await x(e, "login_sessions", "updated_at_ts", "bigint"), await x(e, "login_sessions", "expires_at_ts", "bigint"), t === "mysql" && (await e.schema.alterTable("refresh_tokens").modifyColumn("created_at", "varchar(35)").execute(), await e.schema.alterTable("refresh_tokens").modifyColumn("expires_at", "varchar(35)").execute(), await e.schema.alterTable("sessions").modifyColumn("created_at", "varchar(35)").execute(), await e.schema.alterTable("sessions").modifyColumn("updated_at", "varchar(35)").execute(), await e.schema.alterTable("sessions").modifyColumn("expires_at", "varchar(35)").execute(), await e.schema.alterTable("login_sessions").modifyColumn("created_at", "varchar(35)").execute(), await e.schema.alterTable("login_sessions").modifyColumn("updated_at", "varchar(35)").execute(), await e.schema.alterTable("login_sessions").modifyColumn("expires_at", "varchar(35)").execute()), await e.schema.createIndex("idx_sessions_user_id").on("sessions").columns(["tenant_id", "user_id"]).execute(), await e.schema.createIndex("idx_refresh_tokens_user_id").on("refresh_tokens").columns(["tenant_id", "user_id"]).execute(), await e.schema.createIndex("idx_refresh_tokens_session_id").on("refresh_tokens").column("session_id").execute(), await e.schema.createIndex("idx_refresh_tokens_expires_at_ts").on("refresh_tokens").column("expires_at_ts").execute(), await e.schema.createIndex("idx_sessions_expires_at_ts").on("sessions").column("expires_at_ts").execute(), await e.schema.createIndex("idx_login_sessions_expires_at_ts").on("login_sessions").column("expires_at_ts").execute();
|
|
5876
5898
|
}
|
|
5877
|
-
async function
|
|
5899
|
+
async function j(e, t, a) {
|
|
5878
5900
|
try {
|
|
5879
5901
|
await e.schema.dropIndex(t).on(a).execute();
|
|
5880
5902
|
} catch (n) {
|
|
@@ -5892,13 +5914,13 @@ async function T(e, t, a) {
|
|
|
5892
5914
|
throw n;
|
|
5893
5915
|
}
|
|
5894
5916
|
}
|
|
5895
|
-
async function
|
|
5896
|
-
await
|
|
5917
|
+
async function Xd(e) {
|
|
5918
|
+
await j(e, "idx_sessions_user_id", "sessions"), await j(e, "idx_refresh_tokens_user_id", "refresh_tokens"), await j(e, "idx_refresh_tokens_session_id", "refresh_tokens"), await j(e, "idx_refresh_tokens_expires_at_ts", "refresh_tokens"), await j(e, "idx_sessions_expires_at_ts", "sessions"), await j(e, "idx_login_sessions_expires_at_ts", "login_sessions"), await T(e, "refresh_tokens", "created_at_ts"), await T(e, "refresh_tokens", "expires_at_ts"), await T(e, "refresh_tokens", "idle_expires_at_ts"), await T(e, "refresh_tokens", "last_exchanged_at_ts"), await T(e, "sessions", "created_at_ts"), await T(e, "sessions", "updated_at_ts"), await T(e, "sessions", "expires_at_ts"), await T(e, "sessions", "idle_expires_at_ts"), await T(e, "sessions", "authenticated_at_ts"), await T(e, "sessions", "last_interaction_at_ts"), await T(e, "sessions", "used_at_ts"), await T(e, "sessions", "revoked_at_ts"), await T(e, "login_sessions", "created_at_ts"), await T(e, "login_sessions", "updated_at_ts"), await T(e, "login_sessions", "expires_at_ts");
|
|
5897
5919
|
}
|
|
5898
|
-
const
|
|
5920
|
+
const Zd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5899
5921
|
__proto__: null,
|
|
5900
|
-
down:
|
|
5901
|
-
up:
|
|
5922
|
+
down: Xd,
|
|
5923
|
+
up: Vd
|
|
5902
5924
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5903
5925
|
async function ve(e) {
|
|
5904
5926
|
try {
|
|
@@ -5921,7 +5943,7 @@ async function N(e, t, a) {
|
|
|
5921
5943
|
throw n;
|
|
5922
5944
|
}
|
|
5923
5945
|
}
|
|
5924
|
-
async function
|
|
5946
|
+
async function eu(e) {
|
|
5925
5947
|
const t = await ve(e);
|
|
5926
5948
|
console.log("Dropping indexes that depend on old date columns...");
|
|
5927
5949
|
try {
|
|
@@ -5935,48 +5957,48 @@ async function Zd(e) {
|
|
|
5935
5957
|
}
|
|
5936
5958
|
console.log("Dropping old date columns..."), await N(e, "refresh_tokens", "created_at"), await N(e, "refresh_tokens", "expires_at"), await N(e, "refresh_tokens", "idle_expires_at"), await N(e, "refresh_tokens", "last_exchanged_at"), await N(e, "sessions", "created_at"), await N(e, "sessions", "updated_at"), await N(e, "sessions", "expires_at"), await N(e, "sessions", "idle_expires_at"), await N(e, "sessions", "authenticated_at"), await N(e, "sessions", "last_interaction_at"), await N(e, "sessions", "used_at"), await N(e, "sessions", "revoked_at"), await N(e, "login_sessions", "created_at"), await N(e, "login_sessions", "updated_at"), await N(e, "login_sessions", "expires_at"), t === "mysql" && (console.log("Increasing ID column sizes for ULID support..."), await e.schema.alterTable("login_sessions").modifyColumn("id", "varchar(26)").execute(), await e.schema.alterTable("login_sessions").modifyColumn("session_id", "varchar(26)").execute(), await e.schema.alterTable("login_sessions").modifyColumn("csrf_token", "varchar(26)").execute(), await e.schema.alterTable("sessions").modifyColumn("id", "varchar(26)").execute(), await e.schema.alterTable("sessions").modifyColumn("login_session_id", "varchar(26)").execute(), await e.schema.alterTable("refresh_tokens").modifyColumn("id", "varchar(26)").execute(), await e.schema.alterTable("refresh_tokens").modifyColumn("session_id", "varchar(26)").execute()), console.log("Migration completed successfully");
|
|
5937
5959
|
}
|
|
5938
|
-
async function
|
|
5960
|
+
async function tu(e) {
|
|
5939
5961
|
await ve(e) === "mysql" && (console.log("Restoring ID column sizes to varchar(21)..."), await e.schema.alterTable("login_sessions").modifyColumn("id", "varchar(21)").execute(), await e.schema.alterTable("login_sessions").modifyColumn("session_id", "varchar(21)").execute(), await e.schema.alterTable("login_sessions").modifyColumn("csrf_token", "varchar(21)").execute(), await e.schema.alterTable("sessions").modifyColumn("id", "varchar(21)").execute(), await e.schema.alterTable("sessions").modifyColumn("login_session_id", "varchar(21)").execute(), await e.schema.alterTable("refresh_tokens").modifyColumn("id", "varchar(21)").execute(), await e.schema.alterTable("refresh_tokens").modifyColumn("session_id", "varchar(21)").execute()), console.log("Re-adding old date columns (data will be empty)..."), await e.schema.alterTable("refresh_tokens").addColumn("created_at", "varchar(35)").execute(), await e.schema.alterTable("refresh_tokens").addColumn("expires_at", "varchar(35)").execute(), await e.schema.alterTable("refresh_tokens").addColumn("idle_expires_at", "varchar(35)").execute(), await e.schema.alterTable("refresh_tokens").addColumn("last_exchanged_at", "varchar(35)").execute(), await e.schema.alterTable("sessions").addColumn("created_at", "varchar(35)").execute(), await e.schema.alterTable("sessions").addColumn("updated_at", "varchar(35)").execute(), await e.schema.alterTable("sessions").addColumn("expires_at", "varchar(35)").execute(), await e.schema.alterTable("sessions").addColumn("idle_expires_at", "varchar(35)").execute(), await e.schema.alterTable("sessions").addColumn("authenticated_at", "varchar(35)").execute(), await e.schema.alterTable("sessions").addColumn("last_interaction_at", "varchar(35)").execute(), await e.schema.alterTable("sessions").addColumn("used_at", "varchar(35)").execute(), await e.schema.alterTable("sessions").addColumn("revoked_at", "varchar(35)").execute(), await e.schema.alterTable("login_sessions").addColumn("created_at", "varchar(35)").execute(), await e.schema.alterTable("login_sessions").addColumn("updated_at", "varchar(35)").execute(), await e.schema.alterTable("login_sessions").addColumn("expires_at", "varchar(35)").execute(), console.log("Rollback completed");
|
|
5940
5962
|
}
|
|
5941
|
-
const
|
|
5963
|
+
const au = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5942
5964
|
__proto__: null,
|
|
5943
|
-
down:
|
|
5944
|
-
up:
|
|
5965
|
+
down: tu,
|
|
5966
|
+
up: eu
|
|
5945
5967
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5946
|
-
async function
|
|
5968
|
+
async function nu(e) {
|
|
5947
5969
|
await e.schema.alterTable("users").dropColumn("user_metadata").execute(), await e.schema.alterTable("users").addColumn("user_metadata", "text").execute(), await e.schema.alterTable("users").addColumn("middle_name", "varchar(100)").execute(), await e.schema.alterTable("users").addColumn("profile", "text").execute(), await e.schema.alterTable("users").addColumn("website", "text").execute(), await e.schema.alterTable("users").addColumn("gender", "varchar(50)").execute(), await e.schema.alterTable("users").addColumn("birthdate", "varchar(10)").execute(), await e.schema.alterTable("users").addColumn("zoneinfo", "varchar(100)").execute();
|
|
5948
5970
|
}
|
|
5949
|
-
async function
|
|
5971
|
+
async function ou(e) {
|
|
5950
5972
|
await e.schema.alterTable("users").dropColumn("middle_name").execute(), await e.schema.alterTable("users").dropColumn("profile").execute(), await e.schema.alterTable("users").dropColumn("website").execute(), await e.schema.alterTable("users").dropColumn("gender").execute(), await e.schema.alterTable("users").dropColumn("birthdate").execute(), await e.schema.alterTable("users").dropColumn("zoneinfo").execute(), await e.schema.alterTable("users").dropColumn("user_metadata").execute(), await e.schema.alterTable("users").addColumn("user_metadata", "varchar(4096)").execute();
|
|
5951
5973
|
}
|
|
5952
|
-
const
|
|
5974
|
+
const ru = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5953
5975
|
__proto__: null,
|
|
5954
|
-
down:
|
|
5955
|
-
up:
|
|
5976
|
+
down: ou,
|
|
5977
|
+
up: nu
|
|
5956
5978
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5957
|
-
async function
|
|
5979
|
+
async function su(e) {
|
|
5958
5980
|
await e.schema.alterTable("users").addColumn("preferred_username", "varchar(255)").execute();
|
|
5959
5981
|
}
|
|
5960
|
-
async function
|
|
5982
|
+
async function iu(e) {
|
|
5961
5983
|
await e.schema.alterTable("users").dropColumn("preferred_username").execute();
|
|
5962
5984
|
}
|
|
5963
|
-
const
|
|
5985
|
+
const cu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5964
5986
|
__proto__: null,
|
|
5965
|
-
down:
|
|
5966
|
-
up:
|
|
5987
|
+
down: iu,
|
|
5988
|
+
up: su
|
|
5967
5989
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5968
|
-
async function
|
|
5990
|
+
async function lu(e) {
|
|
5969
5991
|
await e.schema.alterTable("users").addColumn("address", "text").execute();
|
|
5970
5992
|
}
|
|
5971
|
-
async function
|
|
5993
|
+
async function du(e) {
|
|
5972
5994
|
await e.schema.alterTable("users").dropColumn("address").execute();
|
|
5973
5995
|
}
|
|
5974
|
-
const
|
|
5996
|
+
const uu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5975
5997
|
__proto__: null,
|
|
5976
|
-
down:
|
|
5977
|
-
up:
|
|
5998
|
+
down: du,
|
|
5999
|
+
up: lu
|
|
5978
6000
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5979
|
-
async function
|
|
6001
|
+
async function _u(e) {
|
|
5980
6002
|
try {
|
|
5981
6003
|
await e.schema.alterTable("login_sessions").addColumn("authParams_max_age", "integer").execute(), console.log(" Added column authParams_max_age to login_sessions");
|
|
5982
6004
|
} catch (t) {
|
|
@@ -5992,7 +6014,7 @@ async function uu(e) {
|
|
|
5992
6014
|
);
|
|
5993
6015
|
}
|
|
5994
6016
|
}
|
|
5995
|
-
async function
|
|
6017
|
+
async function mu(e) {
|
|
5996
6018
|
try {
|
|
5997
6019
|
await e.schema.alterTable("login_sessions").dropColumn("authParams_max_age").execute();
|
|
5998
6020
|
} catch (t) {
|
|
@@ -6008,38 +6030,38 @@ async function _u(e) {
|
|
|
6008
6030
|
);
|
|
6009
6031
|
}
|
|
6010
6032
|
}
|
|
6011
|
-
const
|
|
6033
|
+
const hu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6012
6034
|
__proto__: null,
|
|
6013
|
-
down:
|
|
6014
|
-
up:
|
|
6035
|
+
down: mu,
|
|
6036
|
+
up: _u
|
|
6015
6037
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6016
|
-
async function
|
|
6038
|
+
async function pu(e) {
|
|
6017
6039
|
await e.schema.alterTable("clients").addColumn("auth0_conformant", "integer", (t) => t.defaultTo(1)).execute();
|
|
6018
6040
|
}
|
|
6019
|
-
async function
|
|
6041
|
+
async function fu(e) {
|
|
6020
6042
|
await e.schema.alterTable("clients").dropColumn("auth0_conformant").execute();
|
|
6021
6043
|
}
|
|
6022
|
-
const
|
|
6044
|
+
const gu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6023
6045
|
__proto__: null,
|
|
6024
|
-
down:
|
|
6025
|
-
up:
|
|
6046
|
+
down: fu,
|
|
6047
|
+
up: pu
|
|
6026
6048
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6027
|
-
async function
|
|
6049
|
+
async function wu(e) {
|
|
6028
6050
|
await e.schema.createTable("universal_login_templates").addColumn(
|
|
6029
6051
|
"tenant_id",
|
|
6030
6052
|
"varchar(191)",
|
|
6031
6053
|
(t) => t.primaryKey().references("tenants.id").onDelete("cascade")
|
|
6032
6054
|
).addColumn("body", "text", (t) => t.notNull()).addColumn("updated_at_ts", "integer", (t) => t.notNull()).addColumn("created_at_ts", "integer", (t) => t.notNull()).execute();
|
|
6033
6055
|
}
|
|
6034
|
-
async function
|
|
6056
|
+
async function yu(e) {
|
|
6035
6057
|
await e.schema.dropTable("universal_login_templates").execute();
|
|
6036
6058
|
}
|
|
6037
|
-
const
|
|
6059
|
+
const vu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6038
6060
|
__proto__: null,
|
|
6039
|
-
down:
|
|
6040
|
-
up:
|
|
6061
|
+
down: yu,
|
|
6062
|
+
up: wu
|
|
6041
6063
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6042
|
-
async function
|
|
6064
|
+
async function Cu(e) {
|
|
6043
6065
|
await e.schema.createTable("custom_text").addColumn(
|
|
6044
6066
|
"tenant_id",
|
|
6045
6067
|
"varchar(191)",
|
|
@@ -6050,26 +6072,26 @@ async function vu(e) {
|
|
|
6050
6072
|
"language"
|
|
6051
6073
|
]).execute();
|
|
6052
6074
|
}
|
|
6053
|
-
async function
|
|
6075
|
+
async function xu(e) {
|
|
6054
6076
|
await e.schema.dropTable("custom_text").execute();
|
|
6055
6077
|
}
|
|
6056
|
-
const
|
|
6078
|
+
const Tu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6057
6079
|
__proto__: null,
|
|
6058
|
-
down:
|
|
6059
|
-
up:
|
|
6080
|
+
down: xu,
|
|
6081
|
+
up: Cu
|
|
6060
6082
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6061
|
-
async function
|
|
6083
|
+
async function Nu(e) {
|
|
6062
6084
|
await e.schema.alterTable("tenants").addColumn("mfa", "text").execute();
|
|
6063
6085
|
}
|
|
6064
|
-
async function
|
|
6086
|
+
async function bu(e) {
|
|
6065
6087
|
await e.schema.alterTable("tenants").dropColumn("mfa").execute();
|
|
6066
6088
|
}
|
|
6067
|
-
const
|
|
6089
|
+
const Su = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6068
6090
|
__proto__: null,
|
|
6069
|
-
down:
|
|
6070
|
-
up:
|
|
6091
|
+
down: bu,
|
|
6092
|
+
up: Nu
|
|
6071
6093
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6072
|
-
async function
|
|
6094
|
+
async function Ou(e) {
|
|
6073
6095
|
try {
|
|
6074
6096
|
return await h`SELECT VERSION()`.execute(e), "mysql";
|
|
6075
6097
|
} catch {
|
|
@@ -6089,8 +6111,8 @@ async function Q(e, t, a, n) {
|
|
|
6089
6111
|
throw o;
|
|
6090
6112
|
}
|
|
6091
6113
|
}
|
|
6092
|
-
async function
|
|
6093
|
-
const t = await
|
|
6114
|
+
async function ku(e) {
|
|
6115
|
+
const t = await Ou(e);
|
|
6094
6116
|
await Q(e, "hooks", "template_id", "text"), await Q(e, "hooks", "created_at_ts", "bigint"), await Q(e, "hooks", "updated_at_ts", "bigint"), t === "mysql" ? await h`
|
|
6095
6117
|
UPDATE hooks
|
|
6096
6118
|
SET created_at_ts = UNIX_TIMESTAMP(created_at) * 1000,
|
|
@@ -6112,13 +6134,13 @@ async function H(e, t, a) {
|
|
|
6112
6134
|
throw n;
|
|
6113
6135
|
}
|
|
6114
6136
|
}
|
|
6115
|
-
async function
|
|
6137
|
+
async function $u(e) {
|
|
6116
6138
|
await H(e, "hooks", "template_id"), await H(e, "hooks", "created_at_ts"), await H(e, "hooks", "updated_at_ts");
|
|
6117
6139
|
}
|
|
6118
|
-
const
|
|
6140
|
+
const Eu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6119
6141
|
__proto__: null,
|
|
6120
|
-
down:
|
|
6121
|
-
up:
|
|
6142
|
+
down: $u,
|
|
6143
|
+
up: ku
|
|
6122
6144
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6123
6145
|
async function Ce(e) {
|
|
6124
6146
|
try {
|
|
@@ -6141,7 +6163,7 @@ async function se(e, t, a) {
|
|
|
6141
6163
|
throw n;
|
|
6142
6164
|
}
|
|
6143
6165
|
}
|
|
6144
|
-
async function
|
|
6166
|
+
async function Iu(e) {
|
|
6145
6167
|
var r, s, i, d, u;
|
|
6146
6168
|
const t = await Ce(e);
|
|
6147
6169
|
console.log(
|
|
@@ -6180,7 +6202,7 @@ async function Eu(e) {
|
|
|
6180
6202
|
(c) => c.notNull().primaryKey()
|
|
6181
6203
|
).execute(), await e.schema.alterTable("hooks").modifyColumn("form_id", "varchar(128)").execute(), await e.schema.alterTable("hooks").modifyColumn("template_id", "varchar(64)").execute());
|
|
6182
6204
|
}
|
|
6183
|
-
async function
|
|
6205
|
+
async function zu(e) {
|
|
6184
6206
|
const t = await Ce(e);
|
|
6185
6207
|
await e.schema.alterTable("hooks").addColumn("created_at", "varchar(255)").execute(), await e.schema.alterTable("hooks").addColumn("updated_at", "varchar(255)").execute(), t === "mysql" ? await h`
|
|
6186
6208
|
UPDATE hooks
|
|
@@ -6198,12 +6220,12 @@ async function Iu(e) {
|
|
|
6198
6220
|
(a) => a.notNull().primaryKey()
|
|
6199
6221
|
).execute(), await e.schema.alterTable("hooks").modifyColumn("form_id", "text").execute(), await e.schema.alterTable("hooks").modifyColumn("template_id", "text").execute());
|
|
6200
6222
|
}
|
|
6201
|
-
const
|
|
6223
|
+
const Pu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6202
6224
|
__proto__: null,
|
|
6203
|
-
down:
|
|
6204
|
-
up:
|
|
6225
|
+
down: zu,
|
|
6226
|
+
up: Iu
|
|
6205
6227
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6206
|
-
async function
|
|
6228
|
+
async function Du(e) {
|
|
6207
6229
|
const { rows: t } = await h`
|
|
6208
6230
|
SELECT username, provider, tenant_id, COUNT(*) AS cnt
|
|
6209
6231
|
FROM users
|
|
@@ -6239,24 +6261,24 @@ async function Pu(e) {
|
|
|
6239
6261
|
}
|
|
6240
6262
|
await e.schema.createIndex("unique_username_provider").on("users").unique().columns(["username", "provider", "tenant_id"]).execute();
|
|
6241
6263
|
}
|
|
6242
|
-
async function
|
|
6264
|
+
async function Au(e) {
|
|
6243
6265
|
await e.schema.dropIndex("unique_username_provider").execute();
|
|
6244
6266
|
}
|
|
6245
|
-
const
|
|
6267
|
+
const ju = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6246
6268
|
__proto__: null,
|
|
6247
|
-
down:
|
|
6248
|
-
up:
|
|
6269
|
+
down: Au,
|
|
6270
|
+
up: Du
|
|
6249
6271
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6250
|
-
async function
|
|
6272
|
+
async function Fu(e) {
|
|
6251
6273
|
await e.schema.alterTable("refresh_tokens").addColumn("login_id", "varchar(26)").execute(), await e.schema.createIndex("idx_refresh_tokens_login_id").on("refresh_tokens").column("login_id").execute();
|
|
6252
6274
|
}
|
|
6253
|
-
async function
|
|
6275
|
+
async function Ru(e) {
|
|
6254
6276
|
await e.schema.dropIndex("idx_refresh_tokens_login_id").execute(), await e.schema.alterTable("refresh_tokens").dropColumn("login_id").execute();
|
|
6255
6277
|
}
|
|
6256
|
-
const
|
|
6278
|
+
const Mu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6257
6279
|
__proto__: null,
|
|
6258
|
-
down:
|
|
6259
|
-
up:
|
|
6280
|
+
down: Ru,
|
|
6281
|
+
up: Fu
|
|
6260
6282
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6261
6283
|
async function xe(e) {
|
|
6262
6284
|
try {
|
|
@@ -6265,99 +6287,99 @@ async function xe(e) {
|
|
|
6265
6287
|
return "sqlite";
|
|
6266
6288
|
}
|
|
6267
6289
|
}
|
|
6268
|
-
async function
|
|
6290
|
+
async function Ju(e) {
|
|
6269
6291
|
await xe(e) === "mysql" ? (await e.schema.alterTable("refresh_tokens").modifyColumn("login_id", "varchar(26)", (a) => a.notNull()).execute(), await e.schema.dropIndex("idx_refresh_tokens_session_id").execute(), await e.schema.alterTable("refresh_tokens").dropColumn("session_id").execute()) : (await e.schema.dropIndex("idx_refresh_tokens_session_id").execute(), await e.schema.alterTable("refresh_tokens").dropColumn("session_id").execute());
|
|
6270
6292
|
}
|
|
6271
|
-
async function
|
|
6293
|
+
async function Lu(e) {
|
|
6272
6294
|
await xe(e) === "mysql" ? (await e.schema.alterTable("refresh_tokens").addColumn("session_id", "varchar(26)").execute(), await e.schema.createIndex("idx_refresh_tokens_session_id").on("refresh_tokens").column("session_id").execute(), await e.schema.alterTable("refresh_tokens").modifyColumn("login_id", "varchar(26)").execute()) : await e.schema.alterTable("refresh_tokens").addColumn("session_id", "varchar(21)").execute();
|
|
6273
6295
|
}
|
|
6274
|
-
const
|
|
6296
|
+
const Ku = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6275
6297
|
__proto__: null,
|
|
6276
|
-
down:
|
|
6277
|
-
up:
|
|
6298
|
+
down: Lu,
|
|
6299
|
+
up: Ju
|
|
6278
6300
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6279
|
-
async function
|
|
6301
|
+
async function qu(e) {
|
|
6280
6302
|
await e.schema.createIndex("idx_sessions_idle_expires_at_ts").on("sessions").column("idle_expires_at_ts").execute(), await e.schema.createIndex("idx_refresh_tokens_idle_expires_at_ts").on("refresh_tokens").column("idle_expires_at_ts").execute();
|
|
6281
6303
|
}
|
|
6282
|
-
async function
|
|
6304
|
+
async function Bu(e) {
|
|
6283
6305
|
await e.schema.dropIndex("idx_sessions_idle_expires_at_ts").on("sessions").execute(), await e.schema.dropIndex("idx_refresh_tokens_idle_expires_at_ts").on("refresh_tokens").execute();
|
|
6284
6306
|
}
|
|
6285
|
-
const
|
|
6307
|
+
const Uu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6286
6308
|
__proto__: null,
|
|
6287
|
-
down:
|
|
6288
|
-
up:
|
|
6309
|
+
down: Bu,
|
|
6310
|
+
up: qu
|
|
6289
6311
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6290
|
-
async function
|
|
6312
|
+
async function Qu(e) {
|
|
6291
6313
|
await e.schema.alterTable("login_sessions").addColumn("auth_connection", "varchar(255)").execute();
|
|
6292
6314
|
}
|
|
6293
|
-
async function
|
|
6315
|
+
async function Hu(e) {
|
|
6294
6316
|
await e.schema.alterTable("login_sessions").dropColumn("auth_connection").execute();
|
|
6295
6317
|
}
|
|
6296
|
-
const
|
|
6318
|
+
const Yu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6297
6319
|
__proto__: null,
|
|
6298
|
-
down:
|
|
6299
|
-
up:
|
|
6320
|
+
down: Hu,
|
|
6321
|
+
up: Qu
|
|
6300
6322
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6301
|
-
async function
|
|
6323
|
+
async function Wu(e) {
|
|
6302
6324
|
await e.schema.createTable("mfa_enrollments").addColumn("id", "varchar(26)", (t) => t.primaryKey()).addColumn(
|
|
6303
6325
|
"tenant_id",
|
|
6304
6326
|
"varchar(191)",
|
|
6305
6327
|
(t) => t.references("tenants.id").onDelete("cascade").notNull()
|
|
6306
6328
|
).addColumn("user_id", "varchar(255)", (t) => t.notNull()).addColumn("type", "varchar(32)", (t) => t.notNull()).addColumn("phone_number", "varchar(32)").addColumn("totp_secret", "varchar(255)").addColumn("confirmed", "integer", (t) => t.notNull().defaultTo(0)).addColumn("created_at_ts", "bigint", (t) => t.notNull()).addColumn("updated_at_ts", "bigint", (t) => t.notNull()).execute(), await e.schema.createIndex("mfa_enrollments_tenant_user_idx").on("mfa_enrollments").columns(["tenant_id", "user_id"]).execute();
|
|
6307
6329
|
}
|
|
6308
|
-
async function
|
|
6330
|
+
async function Gu(e) {
|
|
6309
6331
|
await e.schema.dropTable("mfa_enrollments").execute();
|
|
6310
6332
|
}
|
|
6311
|
-
const
|
|
6333
|
+
const Vu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6312
6334
|
__proto__: null,
|
|
6313
|
-
down:
|
|
6314
|
-
up:
|
|
6335
|
+
down: Gu,
|
|
6336
|
+
up: Wu
|
|
6315
6337
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6316
|
-
async function
|
|
6338
|
+
async function Xu(e) {
|
|
6317
6339
|
await e.schema.alterTable("codes").addColumn("otp", "varchar(32)").execute();
|
|
6318
6340
|
}
|
|
6319
|
-
async function
|
|
6341
|
+
async function Zu(e) {
|
|
6320
6342
|
await e.schema.alterTable("codes").dropColumn("otp").execute();
|
|
6321
6343
|
}
|
|
6322
|
-
const
|
|
6344
|
+
const e_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6323
6345
|
__proto__: null,
|
|
6324
|
-
down:
|
|
6325
|
-
up:
|
|
6346
|
+
down: Zu,
|
|
6347
|
+
up: Xu
|
|
6326
6348
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6327
|
-
async function
|
|
6349
|
+
async function t_(e) {
|
|
6328
6350
|
await e.schema.alterTable("mfa_enrollments").renameTo("authentication_methods").execute(), await e.schema.alterTable("authentication_methods").addColumn("credential_id", "varchar(512)").execute(), await e.schema.alterTable("authentication_methods").addColumn("public_key", "text").execute(), await e.schema.alterTable("authentication_methods").addColumn("sign_count", "integer").execute(), await e.schema.alterTable("authentication_methods").addColumn("credential_backed_up", "integer").execute(), await e.schema.alterTable("authentication_methods").addColumn("transports", "varchar(512)").execute(), await e.schema.alterTable("authentication_methods").addColumn("friendly_name", "varchar(255)").execute(), await e.schema.createIndex("authentication_methods_credential_id_idx").on("authentication_methods").column("credential_id").execute();
|
|
6329
6351
|
}
|
|
6330
|
-
async function
|
|
6352
|
+
async function a_(e) {
|
|
6331
6353
|
await e.schema.dropIndex("authentication_methods_credential_id_idx").execute(), await e.schema.alterTable("authentication_methods").dropColumn("friendly_name").execute(), await e.schema.alterTable("authentication_methods").dropColumn("transports").execute(), await e.schema.alterTable("authentication_methods").dropColumn("credential_backed_up").execute(), await e.schema.alterTable("authentication_methods").dropColumn("sign_count").execute(), await e.schema.alterTable("authentication_methods").dropColumn("public_key").execute(), await e.schema.alterTable("authentication_methods").dropColumn("credential_id").execute(), await e.schema.alterTable("authentication_methods").renameTo("mfa_enrollments").execute();
|
|
6332
6354
|
}
|
|
6333
|
-
const
|
|
6355
|
+
const n_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6334
6356
|
__proto__: null,
|
|
6335
|
-
down:
|
|
6336
|
-
up:
|
|
6357
|
+
down: a_,
|
|
6358
|
+
up: t_
|
|
6337
6359
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6338
|
-
async function
|
|
6360
|
+
async function o_(e) {
|
|
6339
6361
|
await e.schema.createTable("outbox_events").addColumn("id", "varchar(21)", (t) => t.primaryKey()).addColumn("tenant_id", "varchar(191)", (t) => t.notNull()).addColumn("event_type", "varchar(255)", (t) => t.notNull()).addColumn("log_type", "varchar(64)", (t) => t.notNull()).addColumn("aggregate_type", "varchar(64)", (t) => t.notNull()).addColumn("aggregate_id", "varchar(255)", (t) => t.notNull()).addColumn("payload", "text", (t) => t.notNull()).addColumn("created_at", "varchar(35)", (t) => t.notNull()).addColumn("processed_at", "varchar(35)").addColumn("retry_count", "integer", (t) => t.notNull().defaultTo(0)).addColumn("next_retry_at", "varchar(35)").addColumn("error", "text").execute(), await e.schema.createIndex("idx_outbox_unprocessed").on("outbox_events").columns(["processed_at", "created_at"]).execute(), await e.schema.createIndex("idx_outbox_tenant_type").on("outbox_events").columns(["tenant_id", "event_type", "created_at"]).execute();
|
|
6340
6362
|
}
|
|
6341
|
-
async function
|
|
6363
|
+
async function r_(e) {
|
|
6342
6364
|
await e.schema.dropTable("outbox_events").execute();
|
|
6343
6365
|
}
|
|
6344
|
-
const
|
|
6366
|
+
const s_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6345
6367
|
__proto__: null,
|
|
6346
|
-
down:
|
|
6347
|
-
up:
|
|
6368
|
+
down: r_,
|
|
6369
|
+
up: o_
|
|
6348
6370
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6349
|
-
async function
|
|
6371
|
+
async function i_(e) {
|
|
6350
6372
|
await e.schema.alterTable("outbox_events").addColumn("claimed_by", "varchar(64)").execute(), await e.schema.alterTable("outbox_events").addColumn("claim_expires_at", "varchar(35)").execute();
|
|
6351
6373
|
}
|
|
6352
|
-
async function
|
|
6374
|
+
async function c_(e) {
|
|
6353
6375
|
await e.schema.alterTable("outbox_events").dropColumn("claimed_by").execute(), await e.schema.alterTable("outbox_events").dropColumn("claim_expires_at").execute();
|
|
6354
6376
|
}
|
|
6355
|
-
const
|
|
6377
|
+
const l_ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6356
6378
|
__proto__: null,
|
|
6357
|
-
down:
|
|
6358
|
-
up:
|
|
6379
|
+
down: c_,
|
|
6380
|
+
up: i_
|
|
6359
6381
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
6360
|
-
async function
|
|
6382
|
+
async function d_(e) {
|
|
6361
6383
|
await e.schema.createIndex("idx_outbox_claim").on("outbox_events").columns([
|
|
6362
6384
|
"processed_at",
|
|
6363
6385
|
"claim_expires_at",
|
|
@@ -6365,156 +6387,156 @@ async function l_(e) {
|
|
|
6365
6387
|
"created_at"
|
|
6366
6388
|
]).execute();
|
|
6367
6389
|
}
|
|
6368
|
-
async function
|
|
6390
|
+
async function u_(e) {
|
|
6369
6391
|
await e.schema.dropIndex("idx_outbox_claim").on("outbox_events").execute();
|
|
6370
6392
|
}
|
|
6371
|
-
const
|
|
6393
|
+
const __ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6372
6394
|
__proto__: null,
|
|
6373
|
-
down:
|
|
6374
|
-
up:
|
|
6395
|
+
down: u_,
|
|
6396
|
+
up: d_
|
|
6375
6397
|
}, Symbol.toStringTag, { value: "Module" })), Te = {
|
|
6376
|
-
m1_init:
|
|
6377
|
-
m2_magicLink:
|
|
6378
|
-
m3_updateAt:
|
|
6379
|
-
m4_logTable:
|
|
6380
|
-
m5_userProfile:
|
|
6381
|
-
m6_sessions:
|
|
6382
|
-
m7_passwords:
|
|
6383
|
-
m8_logsTableNewFields:
|
|
6384
|
-
m9_passwordTableNewField:
|
|
6385
|
-
n01_codesTable:
|
|
6386
|
-
n11_universalLoginSession:
|
|
6387
|
-
n12_userFields:
|
|
6388
|
-
n13_userEmailIndex:
|
|
6389
|
-
n14_profileDataField:
|
|
6390
|
-
n15_userEmailIndex:
|
|
6391
|
-
n16_userLocale:
|
|
6392
|
-
n17_signingKeys:
|
|
6393
|
-
n18_logsFields:
|
|
6394
|
-
n19_connectionsUserinfo:
|
|
6395
|
-
n20_missingFields:
|
|
6396
|
-
n21_sessionDeletedAt:
|
|
6397
|
-
n22_dropLogsFields:
|
|
6398
|
-
n23_dropUsersFields:
|
|
6399
|
-
n24_logsIndexes:
|
|
6400
|
-
n25_logDescMaxLength:
|
|
6401
|
-
n26_logsTableExtraFields:
|
|
6402
|
-
n27_usersTableNameIndex:
|
|
6403
|
-
n28_usersEmailConstrain:
|
|
6404
|
-
n29_increaseOtpStateLength:
|
|
6405
|
-
n30_increaseTicketStateLength:
|
|
6406
|
-
n31_branding:
|
|
6407
|
-
n32_indexesAndNotNull:
|
|
6408
|
-
n33_vendorIdInUniversalLoginSession:
|
|
6409
|
-
n34_auth0ClientInUniversalLoginSession:
|
|
6410
|
-
n35_increaseUniversalSessionStateLength:
|
|
6411
|
-
n36_authenticationCodes:
|
|
6412
|
-
n37_disableSignUps:
|
|
6413
|
-
n38_otpIpAddress:
|
|
6414
|
-
n39_increaseUserAgentLength:
|
|
6415
|
-
n40_userId:
|
|
6416
|
-
n41_hooks:
|
|
6417
|
-
n42_userIdIndexes:
|
|
6418
|
-
n43_userIdIndexes:
|
|
6419
|
-
n44_codes:
|
|
6420
|
-
n45_hookProperties:
|
|
6421
|
-
n46_loginAuth0Client:
|
|
6422
|
-
n47_loginAuth0Client:
|
|
6423
|
-
n48_saml:
|
|
6424
|
-
n49_removeFields:
|
|
6425
|
-
n50_authParamsNonce:
|
|
6426
|
-
n51_connectionid:
|
|
6427
|
-
n52_cert:
|
|
6428
|
-
n53_codes_primary_key:
|
|
6429
|
-
n54_cleanup_tables:
|
|
6430
|
-
n55_logs_index:
|
|
6431
|
-
n56_application_fields:
|
|
6432
|
-
n57_prompt_settings:
|
|
6433
|
-
n58_connection_client_id:
|
|
6434
|
-
n59_connection_options:
|
|
6435
|
-
n60_users_metadata:
|
|
6436
|
-
n61_userLocales:
|
|
6437
|
-
n62_prompt:
|
|
6438
|
-
n63_connection_cleanup:
|
|
6439
|
-
n64_act_as:
|
|
6440
|
-
n65_code_verifier:
|
|
6441
|
-
n66_email_providers:
|
|
6442
|
-
n67_drop_tickets:
|
|
6443
|
-
n68_login_useragents:
|
|
6444
|
-
n70_refresh_tokens:
|
|
6445
|
-
n71_session_new_fields:
|
|
6446
|
-
n72_session_primary_key:
|
|
6447
|
-
n73_drop_sessions:
|
|
6448
|
-
n74_custom_domains:
|
|
6449
|
-
n75_organizations:
|
|
6450
|
-
n76_authorization_url_length:
|
|
6451
|
-
n77_drop_sessions:
|
|
6452
|
-
n78_login_sessions:
|
|
6453
|
-
n79_drop_sessions_2:
|
|
6454
|
-
n80_recreate_custom_domains:
|
|
6455
|
-
n81_phone:
|
|
6456
|
-
n82_forms:
|
|
6457
|
-
n83_addFormsIdToHooks:
|
|
6458
|
-
n84_login_completed:
|
|
6459
|
-
n85_add_login_session_id_to_sessions:
|
|
6460
|
-
n86_index_sessions_login_session_id:
|
|
6461
|
-
n87_code_challenge:
|
|
6462
|
-
n88_add_redirect_uri_to_codes:
|
|
6463
|
-
n89_add_nonce_and_state_to_codes:
|
|
6464
|
-
n90_themes:
|
|
6465
|
-
n91_resource_servers_rules_permissions:
|
|
6466
|
-
n92_role_permissions:
|
|
6467
|
-
n93_add_permissions_to_roles:
|
|
6468
|
-
n94_keys_connection_and_extend_columns:
|
|
6469
|
-
n95_create_organizations_table:
|
|
6470
|
-
n96_create_user_organizations_table:
|
|
6471
|
-
n97_add_organization_to_user_permissions_and_roles:
|
|
6472
|
-
n98_clients:
|
|
6473
|
-
n99_update_client_foreign_keys:
|
|
6474
|
-
o001_client_grants:
|
|
6475
|
-
o002_drop_applications:
|
|
6476
|
-
o003_phone_number_index:
|
|
6477
|
-
o004_login_sessions_id_index:
|
|
6478
|
-
o005_connections_tenant_index:
|
|
6479
|
-
o006_remove_redundant_user_organizations_tenant_index:
|
|
6480
|
-
o007_tenant_settings:
|
|
6481
|
-
o008_merge_tenant_settings_into_tenants:
|
|
6482
|
-
o009_create_invites_table:
|
|
6483
|
-
o010_add_log_id_to_logs:
|
|
6484
|
-
o011_add_location_info_to_logs:
|
|
6485
|
-
o012_add_password_history:
|
|
6486
|
-
o013_connection_display_name:
|
|
6487
|
-
o014_client_connections:
|
|
6488
|
-
o015_flows:
|
|
6489
|
-
o016_add_is_system_column:
|
|
6490
|
-
o017_connections_composite_key:
|
|
6491
|
-
o018_login_session_state:
|
|
6492
|
-
o019_roles_resource_servers_metadata:
|
|
6493
|
-
o020_session_add_timestamp_columns:
|
|
6494
|
-
o021_session_cleanup_and_ulid:
|
|
6495
|
-
o022_oidc_profile_claims:
|
|
6496
|
-
o023_preferred_username:
|
|
6497
|
-
o024_user_address:
|
|
6498
|
-
o025_authparams_max_age:
|
|
6499
|
-
o026_auth0_conformant:
|
|
6500
|
-
o027_universal_login_templates:
|
|
6501
|
-
o028_custom_text:
|
|
6502
|
-
o029_guardian_mfa:
|
|
6503
|
-
o030_add_template_id_to_hooks:
|
|
6504
|
-
o031_hooks_cleanup:
|
|
6505
|
-
o032_unique_username_provider:
|
|
6506
|
-
o033_add_login_id_to_refresh_tokens:
|
|
6507
|
-
o034_refresh_tokens_replace_session_id_with_login_id:
|
|
6508
|
-
o035_idle_expires_at_ts_indexes:
|
|
6509
|
-
o036_add_connection_to_login_sessions:
|
|
6510
|
-
o037_mfa_enrollments:
|
|
6511
|
-
o038_add_otp_to_codes:
|
|
6512
|
-
o039_rename_mfa_enrollments_to_authentication_methods:
|
|
6513
|
-
o040_create_outbox_events:
|
|
6514
|
-
o041_add_outbox_claim_columns:
|
|
6515
|
-
o042_add_outbox_claim_index:
|
|
6398
|
+
m1_init: Co,
|
|
6399
|
+
m2_magicLink: No,
|
|
6400
|
+
m3_updateAt: Oo,
|
|
6401
|
+
m4_logTable: Eo,
|
|
6402
|
+
m5_userProfile: Po,
|
|
6403
|
+
m6_sessions: jo,
|
|
6404
|
+
m7_passwords: Mo,
|
|
6405
|
+
m8_logsTableNewFields: Ko,
|
|
6406
|
+
m9_passwordTableNewField: Uo,
|
|
6407
|
+
n01_codesTable: Yo,
|
|
6408
|
+
n11_universalLoginSession: Vo,
|
|
6409
|
+
n12_userFields: er,
|
|
6410
|
+
n13_userEmailIndex: nr,
|
|
6411
|
+
n14_profileDataField: sr,
|
|
6412
|
+
n15_userEmailIndex: lr,
|
|
6413
|
+
n16_userLocale: _r,
|
|
6414
|
+
n17_signingKeys: pr,
|
|
6415
|
+
n18_logsFields: wr,
|
|
6416
|
+
n19_connectionsUserinfo: Cr,
|
|
6417
|
+
n20_missingFields: Nr,
|
|
6418
|
+
n21_sessionDeletedAt: Or,
|
|
6419
|
+
n22_dropLogsFields: Er,
|
|
6420
|
+
n23_dropUsersFields: Pr,
|
|
6421
|
+
n24_logsIndexes: jr,
|
|
6422
|
+
n25_logDescMaxLength: Mr,
|
|
6423
|
+
n26_logsTableExtraFields: Kr,
|
|
6424
|
+
n27_usersTableNameIndex: Ur,
|
|
6425
|
+
n28_usersEmailConstrain: Yr,
|
|
6426
|
+
n29_increaseOtpStateLength: Vr,
|
|
6427
|
+
n30_increaseTicketStateLength: es,
|
|
6428
|
+
n31_branding: ns,
|
|
6429
|
+
n32_indexesAndNotNull: ss,
|
|
6430
|
+
n33_vendorIdInUniversalLoginSession: ls,
|
|
6431
|
+
n34_auth0ClientInUniversalLoginSession: _s,
|
|
6432
|
+
n35_increaseUniversalSessionStateLength: ps,
|
|
6433
|
+
n36_authenticationCodes: ws,
|
|
6434
|
+
n37_disableSignUps: Cs,
|
|
6435
|
+
n38_otpIpAddress: Ns,
|
|
6436
|
+
n39_increaseUserAgentLength: Os,
|
|
6437
|
+
n40_userId: Es,
|
|
6438
|
+
n41_hooks: Ps,
|
|
6439
|
+
n42_userIdIndexes: js,
|
|
6440
|
+
n43_userIdIndexes: Ms,
|
|
6441
|
+
n44_codes: Ks,
|
|
6442
|
+
n45_hookProperties: Us,
|
|
6443
|
+
n46_loginAuth0Client: Ys,
|
|
6444
|
+
n47_loginAuth0Client: Vs,
|
|
6445
|
+
n48_saml: ei,
|
|
6446
|
+
n49_removeFields: ni,
|
|
6447
|
+
n50_authParamsNonce: si,
|
|
6448
|
+
n51_connectionid: li,
|
|
6449
|
+
n52_cert: _i,
|
|
6450
|
+
n53_codes_primary_key: pi,
|
|
6451
|
+
n54_cleanup_tables: wi,
|
|
6452
|
+
n55_logs_index: Ci,
|
|
6453
|
+
n56_application_fields: Ni,
|
|
6454
|
+
n57_prompt_settings: Oi,
|
|
6455
|
+
n58_connection_client_id: Ei,
|
|
6456
|
+
n59_connection_options: Pi,
|
|
6457
|
+
n60_users_metadata: ji,
|
|
6458
|
+
n61_userLocales: Mi,
|
|
6459
|
+
n62_prompt: Ki,
|
|
6460
|
+
n63_connection_cleanup: Ui,
|
|
6461
|
+
n64_act_as: Yi,
|
|
6462
|
+
n65_code_verifier: Vi,
|
|
6463
|
+
n66_email_providers: ec,
|
|
6464
|
+
n67_drop_tickets: nc,
|
|
6465
|
+
n68_login_useragents: sc,
|
|
6466
|
+
n70_refresh_tokens: lc,
|
|
6467
|
+
n71_session_new_fields: _c,
|
|
6468
|
+
n72_session_primary_key: pc,
|
|
6469
|
+
n73_drop_sessions: wc,
|
|
6470
|
+
n74_custom_domains: Cc,
|
|
6471
|
+
n75_organizations: Nc,
|
|
6472
|
+
n76_authorization_url_length: Oc,
|
|
6473
|
+
n77_drop_sessions: Ec,
|
|
6474
|
+
n78_login_sessions: Pc,
|
|
6475
|
+
n79_drop_sessions_2: jc,
|
|
6476
|
+
n80_recreate_custom_domains: Mc,
|
|
6477
|
+
n81_phone: Kc,
|
|
6478
|
+
n82_forms: Uc,
|
|
6479
|
+
n83_addFormsIdToHooks: Yc,
|
|
6480
|
+
n84_login_completed: Vc,
|
|
6481
|
+
n85_add_login_session_id_to_sessions: el,
|
|
6482
|
+
n86_index_sessions_login_session_id: nl,
|
|
6483
|
+
n87_code_challenge: sl,
|
|
6484
|
+
n88_add_redirect_uri_to_codes: ll,
|
|
6485
|
+
n89_add_nonce_and_state_to_codes: _l,
|
|
6486
|
+
n90_themes: pl,
|
|
6487
|
+
n91_resource_servers_rules_permissions: wl,
|
|
6488
|
+
n92_role_permissions: Cl,
|
|
6489
|
+
n93_add_permissions_to_roles: Nl,
|
|
6490
|
+
n94_keys_connection_and_extend_columns: Ol,
|
|
6491
|
+
n95_create_organizations_table: El,
|
|
6492
|
+
n96_create_user_organizations_table: Pl,
|
|
6493
|
+
n97_add_organization_to_user_permissions_and_roles: jl,
|
|
6494
|
+
n98_clients: Ml,
|
|
6495
|
+
n99_update_client_foreign_keys: Ql,
|
|
6496
|
+
o001_client_grants: Wl,
|
|
6497
|
+
o002_drop_applications: Xl,
|
|
6498
|
+
o003_phone_number_index: td,
|
|
6499
|
+
o004_login_sessions_id_index: od,
|
|
6500
|
+
o005_connections_tenant_index: id,
|
|
6501
|
+
o006_remove_redundant_user_organizations_tenant_index: dd,
|
|
6502
|
+
o007_tenant_settings: md,
|
|
6503
|
+
o008_merge_tenant_settings_into_tenants: fd,
|
|
6504
|
+
o009_create_invites_table: yd,
|
|
6505
|
+
o010_add_log_id_to_logs: xd,
|
|
6506
|
+
o011_add_location_info_to_logs: bd,
|
|
6507
|
+
o012_add_password_history: kd,
|
|
6508
|
+
o013_connection_display_name: Id,
|
|
6509
|
+
o014_client_connections: Dd,
|
|
6510
|
+
o015_flows: Fd,
|
|
6511
|
+
o016_add_is_system_column: Jd,
|
|
6512
|
+
o017_connections_composite_key: qd,
|
|
6513
|
+
o018_login_session_state: Qd,
|
|
6514
|
+
o019_roles_resource_servers_metadata: Wd,
|
|
6515
|
+
o020_session_add_timestamp_columns: Zd,
|
|
6516
|
+
o021_session_cleanup_and_ulid: au,
|
|
6517
|
+
o022_oidc_profile_claims: ru,
|
|
6518
|
+
o023_preferred_username: cu,
|
|
6519
|
+
o024_user_address: uu,
|
|
6520
|
+
o025_authparams_max_age: hu,
|
|
6521
|
+
o026_auth0_conformant: gu,
|
|
6522
|
+
o027_universal_login_templates: vu,
|
|
6523
|
+
o028_custom_text: Tu,
|
|
6524
|
+
o029_guardian_mfa: Su,
|
|
6525
|
+
o030_add_template_id_to_hooks: Eu,
|
|
6526
|
+
o031_hooks_cleanup: Pu,
|
|
6527
|
+
o032_unique_username_provider: ju,
|
|
6528
|
+
o033_add_login_id_to_refresh_tokens: Mu,
|
|
6529
|
+
o034_refresh_tokens_replace_session_id_with_login_id: Ku,
|
|
6530
|
+
o035_idle_expires_at_ts_indexes: Uu,
|
|
6531
|
+
o036_add_connection_to_login_sessions: Yu,
|
|
6532
|
+
o037_mfa_enrollments: Vu,
|
|
6533
|
+
o038_add_otp_to_codes: e_,
|
|
6534
|
+
o039_rename_mfa_enrollments_to_authentication_methods: n_,
|
|
6535
|
+
o040_create_outbox_events: s_,
|
|
6536
|
+
o041_add_outbox_claim_columns: l_,
|
|
6537
|
+
o042_add_outbox_claim_index: __
|
|
6516
6538
|
};
|
|
6517
|
-
async function
|
|
6539
|
+
async function y_(e, t = !1) {
|
|
6518
6540
|
t && console.log("migrating...");
|
|
6519
6541
|
const a = new we(Te), n = new ce({
|
|
6520
6542
|
db: e,
|
|
@@ -6527,7 +6549,7 @@ async function w_(e, t = !1) {
|
|
|
6527
6549
|
}), o)
|
|
6528
6550
|
throw console.error("failed to migrate"), console.error(o), o;
|
|
6529
6551
|
}
|
|
6530
|
-
async function
|
|
6552
|
+
async function v_(e) {
|
|
6531
6553
|
console.log("migrating...");
|
|
6532
6554
|
const t = new we(Te), a = new ce({
|
|
6533
6555
|
db: e,
|
|
@@ -6538,7 +6560,7 @@ async function y_(e) {
|
|
|
6538
6560
|
}), n)
|
|
6539
6561
|
throw console.error("failed to migrate"), console.error(n), n;
|
|
6540
6562
|
}
|
|
6541
|
-
function
|
|
6563
|
+
function m_(e, t = { useTransactions: !0 }) {
|
|
6542
6564
|
const a = {
|
|
6543
6565
|
branding: ga(e),
|
|
6544
6566
|
clients: Ut(e),
|
|
@@ -6555,7 +6577,7 @@ function __(e, t = { useTransactions: !0 }) {
|
|
|
6555
6577
|
keys: ia(e),
|
|
6556
6578
|
loginSessions: Ja(e),
|
|
6557
6579
|
logs: st(e),
|
|
6558
|
-
authenticationMethods:
|
|
6580
|
+
authenticationMethods: lo(e),
|
|
6559
6581
|
passwords: gt(e),
|
|
6560
6582
|
promptSettings: qa(e),
|
|
6561
6583
|
refreshTokens: en(e),
|
|
@@ -6574,10 +6596,10 @@ function __(e, t = { useTransactions: !0 }) {
|
|
|
6574
6596
|
organizations: Ln(e),
|
|
6575
6597
|
userOrganizations: Yn(e),
|
|
6576
6598
|
stats: ao(e),
|
|
6577
|
-
outbox:
|
|
6599
|
+
outbox: wo(e),
|
|
6578
6600
|
async transaction(n) {
|
|
6579
6601
|
return t.useTransactions === !1 ? n(a) : e.transaction().execute(async (o) => {
|
|
6580
|
-
const r =
|
|
6602
|
+
const r = m_(o, { ...t, useTransactions: !1 });
|
|
6581
6603
|
return n(r);
|
|
6582
6604
|
});
|
|
6583
6605
|
}
|
|
@@ -6585,7 +6607,7 @@ function __(e, t = { useTransactions: !0 }) {
|
|
|
6585
6607
|
return a;
|
|
6586
6608
|
}
|
|
6587
6609
|
export {
|
|
6588
|
-
|
|
6589
|
-
|
|
6590
|
-
|
|
6610
|
+
m_ as default,
|
|
6611
|
+
v_ as migrateDown,
|
|
6612
|
+
y_ as migrateToLatest
|
|
6591
6613
|
};
|