@authhero/kysely-adapter 10.4.0 → 10.6.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 +1 -1
- package/dist/kysely-adapter.d.ts +179 -6
- package/dist/kysely-adapter.mjs +575 -565
- package/package.json +3 -3
package/dist/kysely-adapter.mjs
CHANGED
|
@@ -796,15 +796,25 @@ function Wt(t) {
|
|
|
796
796
|
};
|
|
797
797
|
}
|
|
798
798
|
function qt(t) {
|
|
799
|
+
return async (e) => {
|
|
800
|
+
const a = await t.selectFrom("custom_domains").where("custom_domains.domain", "=", e).selectAll().executeTakeFirst();
|
|
801
|
+
return a ? {
|
|
802
|
+
...a,
|
|
803
|
+
primary: a.primary === 1
|
|
804
|
+
} : null;
|
|
805
|
+
};
|
|
806
|
+
}
|
|
807
|
+
function Gt(t) {
|
|
799
808
|
return {
|
|
800
809
|
create: Ut(t),
|
|
801
810
|
get: Vt(t),
|
|
811
|
+
getByDomain: qt(t),
|
|
802
812
|
list: Bt(t),
|
|
803
813
|
remove: Qt(t),
|
|
804
814
|
update: Wt(t)
|
|
805
815
|
};
|
|
806
816
|
}
|
|
807
|
-
function
|
|
817
|
+
function Ht(t) {
|
|
808
818
|
return async (e) => {
|
|
809
819
|
const [a] = await t.selectFrom("branding").where("branding.tenant_id", "=", e).selectAll().execute();
|
|
810
820
|
if (!a)
|
|
@@ -834,7 +844,7 @@ function Gt(t) {
|
|
|
834
844
|
});
|
|
835
845
|
};
|
|
836
846
|
}
|
|
837
|
-
function
|
|
847
|
+
function Xt(t) {
|
|
838
848
|
return async (e, a) => {
|
|
839
849
|
var s, l, d, g, m, w, b, Z, ee, te, ae, re, ne, oe, se, ie, de, ce;
|
|
840
850
|
const { colors: r, font: o, ...n } = a;
|
|
@@ -862,13 +872,13 @@ function Ht(t) {
|
|
|
862
872
|
}
|
|
863
873
|
};
|
|
864
874
|
}
|
|
865
|
-
function
|
|
875
|
+
function Yt(t) {
|
|
866
876
|
return {
|
|
867
|
-
get:
|
|
868
|
-
set:
|
|
877
|
+
get: Ht(t),
|
|
878
|
+
set: Xt(t)
|
|
869
879
|
};
|
|
870
880
|
}
|
|
871
|
-
function
|
|
881
|
+
function Zt(t) {
|
|
872
882
|
return async (e, a = {
|
|
873
883
|
page: 0,
|
|
874
884
|
per_page: 50,
|
|
@@ -892,7 +902,7 @@ function Yt(t) {
|
|
|
892
902
|
};
|
|
893
903
|
};
|
|
894
904
|
}
|
|
895
|
-
function
|
|
905
|
+
function ea(t) {
|
|
896
906
|
return async (e, a) => {
|
|
897
907
|
const r = await t.selectFrom("hooks").where("hooks.tenant_id", "=", e).where("hooks.hook_id", "=", a).selectAll().executeTakeFirst();
|
|
898
908
|
return r ? _({
|
|
@@ -902,10 +912,10 @@ function Zt(t) {
|
|
|
902
912
|
}) : null;
|
|
903
913
|
};
|
|
904
914
|
}
|
|
905
|
-
function
|
|
915
|
+
function ta(t) {
|
|
906
916
|
return async (e, a) => (await t.deleteFrom("hooks").where("hooks.tenant_id", "=", e).where("hooks.hook_id", "=", a).executeTakeFirst()).numDeletedRows > 0;
|
|
907
917
|
}
|
|
908
|
-
function
|
|
918
|
+
function aa(t) {
|
|
909
919
|
return async (e, a) => {
|
|
910
920
|
const r = {
|
|
911
921
|
hook_id: k(),
|
|
@@ -921,7 +931,7 @@ function ta(t) {
|
|
|
921
931
|
}).execute(), r;
|
|
922
932
|
};
|
|
923
933
|
}
|
|
924
|
-
function
|
|
934
|
+
function ra(t) {
|
|
925
935
|
return async (e, a, r) => {
|
|
926
936
|
const o = {
|
|
927
937
|
...r,
|
|
@@ -932,13 +942,13 @@ function aa(t) {
|
|
|
932
942
|
return await t.updateTable("hooks").set(o).where("hooks.hook_id", "=", a).where("hooks.tenant_id", "=", e).execute(), !0;
|
|
933
943
|
};
|
|
934
944
|
}
|
|
935
|
-
function
|
|
945
|
+
function na(t) {
|
|
936
946
|
return {
|
|
937
|
-
create:
|
|
938
|
-
get:
|
|
939
|
-
list:
|
|
940
|
-
update:
|
|
941
|
-
remove:
|
|
947
|
+
create: aa(t),
|
|
948
|
+
get: ea(t),
|
|
949
|
+
list: Zt(t),
|
|
950
|
+
update: ra(t),
|
|
951
|
+
remove: ta(t)
|
|
942
952
|
};
|
|
943
953
|
}
|
|
944
954
|
function E(t, e = "", a = {}) {
|
|
@@ -949,7 +959,7 @@ function E(t, e = "", a = {}) {
|
|
|
949
959
|
}
|
|
950
960
|
return a;
|
|
951
961
|
}
|
|
952
|
-
function
|
|
962
|
+
function oa(t, e) {
|
|
953
963
|
const a = {};
|
|
954
964
|
for (const [r, o] of Object.entries(t)) {
|
|
955
965
|
const n = e.find(
|
|
@@ -967,7 +977,7 @@ function na(t, e) {
|
|
|
967
977
|
}
|
|
968
978
|
return a;
|
|
969
979
|
}
|
|
970
|
-
function
|
|
980
|
+
function sa(t) {
|
|
971
981
|
return async (e, a) => {
|
|
972
982
|
const r = {
|
|
973
983
|
themeId: k(),
|
|
@@ -978,16 +988,16 @@ function oa(t) {
|
|
|
978
988
|
return await t.insertInto("themes").values({ ...E(r), tenant_id: e }).execute(), r;
|
|
979
989
|
};
|
|
980
990
|
}
|
|
981
|
-
function
|
|
991
|
+
function ia(t) {
|
|
982
992
|
return async (e, a) => (await t.deleteFrom("themes").where("themes.tenant_id", "=", e).where("themes.theme_id", "=", a).executeTakeFirst()).numDeletedRows > 0;
|
|
983
993
|
}
|
|
984
|
-
function
|
|
994
|
+
function da(t) {
|
|
985
995
|
return async (e, a) => {
|
|
986
996
|
const r = await t.selectFrom("themes").where("themes.tenant_id", "=", e).where("themes.theme_id", "=", a).selectAll().executeTakeFirst();
|
|
987
997
|
return r ? _(r) : null;
|
|
988
998
|
};
|
|
989
999
|
}
|
|
990
|
-
function
|
|
1000
|
+
function ca(t) {
|
|
991
1001
|
return async (e, a, r) => {
|
|
992
1002
|
const o = E({
|
|
993
1003
|
...r,
|
|
@@ -996,23 +1006,23 @@ function da(t) {
|
|
|
996
1006
|
return await t.updateTable("themes").set(o).where("themes.id", "=", a).where("themes.tenant_id", "=", e).execute(), !0;
|
|
997
1007
|
};
|
|
998
1008
|
}
|
|
999
|
-
function
|
|
1009
|
+
function la(t) {
|
|
1000
1010
|
return {
|
|
1001
|
-
create:
|
|
1002
|
-
get:
|
|
1003
|
-
remove:
|
|
1004
|
-
update:
|
|
1011
|
+
create: sa(t),
|
|
1012
|
+
get: da(t),
|
|
1013
|
+
remove: ia(t),
|
|
1014
|
+
update: ca(t)
|
|
1005
1015
|
};
|
|
1006
1016
|
}
|
|
1007
|
-
function
|
|
1017
|
+
function ua(t) {
|
|
1008
1018
|
return async (e, a) => {
|
|
1009
1019
|
const r = (/* @__PURE__ */ new Date()).toISOString(), o = await t.selectFrom("login_sessions").where("login_sessions.expires_at", ">", r).where("login_sessions.id", "=", a).selectAll().executeTakeFirst();
|
|
1010
1020
|
return o ? Re.parse(
|
|
1011
|
-
|
|
1021
|
+
oa(_(o), ["authParams"])
|
|
1012
1022
|
) : null;
|
|
1013
1023
|
};
|
|
1014
1024
|
}
|
|
1015
|
-
function
|
|
1025
|
+
function ma(t) {
|
|
1016
1026
|
return async (e, a) => {
|
|
1017
1027
|
var o;
|
|
1018
1028
|
const r = {
|
|
@@ -1025,21 +1035,21 @@ function ua(t) {
|
|
|
1025
1035
|
return await t.insertInto("login_sessions").values({ ...E(r), tenant_id: e }).execute(), r;
|
|
1026
1036
|
};
|
|
1027
1037
|
}
|
|
1028
|
-
function
|
|
1038
|
+
function ha(t) {
|
|
1029
1039
|
return async (e, a, r) => (await t.updateTable("login_sessions").set(E(r)).where("login_sessions.id", "=", a).where("login_sessions.tenant_id", "=", e).execute()).length === 1;
|
|
1030
1040
|
}
|
|
1031
|
-
function
|
|
1041
|
+
function _a(t) {
|
|
1032
1042
|
return async (e, a) => (await t.deleteFrom("login_sessions").where("login_sessions.tenant_id", "=", e).where("login_sessions.id", "=", a).execute()).length > 0;
|
|
1033
1043
|
}
|
|
1034
|
-
function
|
|
1044
|
+
function fa(t) {
|
|
1035
1045
|
return {
|
|
1036
|
-
create:
|
|
1037
|
-
get:
|
|
1038
|
-
update:
|
|
1039
|
-
remove:
|
|
1046
|
+
create: ma(t),
|
|
1047
|
+
get: ua(t),
|
|
1048
|
+
update: ha(t),
|
|
1049
|
+
remove: _a(t)
|
|
1040
1050
|
};
|
|
1041
1051
|
}
|
|
1042
|
-
function
|
|
1052
|
+
function pa(t) {
|
|
1043
1053
|
return async (e) => {
|
|
1044
1054
|
const [a] = await t.selectFrom("prompt_settings").where("prompt_settings.tenant_id", "=", e).selectAll().execute();
|
|
1045
1055
|
return _({
|
|
@@ -1059,7 +1069,7 @@ function he(t) {
|
|
|
1059
1069
|
universal_login_experience: t.universal_login_experience
|
|
1060
1070
|
});
|
|
1061
1071
|
}
|
|
1062
|
-
function
|
|
1072
|
+
function ga(t) {
|
|
1063
1073
|
return async (e, a) => {
|
|
1064
1074
|
try {
|
|
1065
1075
|
const r = Ue.parse(a);
|
|
@@ -1072,13 +1082,13 @@ function pa(t) {
|
|
|
1072
1082
|
}
|
|
1073
1083
|
};
|
|
1074
1084
|
}
|
|
1075
|
-
function
|
|
1085
|
+
function ya(t) {
|
|
1076
1086
|
return {
|
|
1077
|
-
get:
|
|
1078
|
-
set:
|
|
1087
|
+
get: pa(t),
|
|
1088
|
+
set: ga(t)
|
|
1079
1089
|
};
|
|
1080
1090
|
}
|
|
1081
|
-
function
|
|
1091
|
+
function wa(t) {
|
|
1082
1092
|
return async (e) => {
|
|
1083
1093
|
const [a] = await t.selectFrom("email_providers").where("email_providers.tenant_id", "=", e).selectAll().execute();
|
|
1084
1094
|
if (!a)
|
|
@@ -1098,7 +1108,7 @@ function ya(t) {
|
|
|
1098
1108
|
});
|
|
1099
1109
|
};
|
|
1100
1110
|
}
|
|
1101
|
-
function
|
|
1111
|
+
function va(t) {
|
|
1102
1112
|
return async (e, a) => {
|
|
1103
1113
|
const { credentials: r, settings: o, enabled: n, ...s } = a;
|
|
1104
1114
|
await t.updateTable("email_providers").set({
|
|
@@ -1109,7 +1119,7 @@ function wa(t) {
|
|
|
1109
1119
|
}).where("tenant_id", "=", e).execute();
|
|
1110
1120
|
};
|
|
1111
1121
|
}
|
|
1112
|
-
function
|
|
1122
|
+
function Na(t) {
|
|
1113
1123
|
return async (e, a) => {
|
|
1114
1124
|
const { credentials: r, settings: o, enabled: n, ...s } = a;
|
|
1115
1125
|
await t.insertInto("email_providers").values({
|
|
@@ -1123,14 +1133,14 @@ function va(t) {
|
|
|
1123
1133
|
}).execute();
|
|
1124
1134
|
};
|
|
1125
1135
|
}
|
|
1126
|
-
function
|
|
1136
|
+
function Ca(t) {
|
|
1127
1137
|
return {
|
|
1128
|
-
get:
|
|
1129
|
-
create:
|
|
1130
|
-
update:
|
|
1138
|
+
get: wa(t),
|
|
1139
|
+
create: Na(t),
|
|
1140
|
+
update: va(t)
|
|
1131
1141
|
};
|
|
1132
1142
|
}
|
|
1133
|
-
function
|
|
1143
|
+
function ba(t) {
|
|
1134
1144
|
return async (e, a) => {
|
|
1135
1145
|
const r = await t.selectFrom("refresh_tokens").where("refresh_tokens.tenant_id", "=", e).where("refresh_tokens.id", "=", a).selectAll().executeTakeFirst();
|
|
1136
1146
|
return r ? {
|
|
@@ -1141,7 +1151,7 @@ function Ca(t) {
|
|
|
1141
1151
|
} : null;
|
|
1142
1152
|
};
|
|
1143
1153
|
}
|
|
1144
|
-
function
|
|
1154
|
+
function xa(t) {
|
|
1145
1155
|
return async (e, a) => {
|
|
1146
1156
|
const r = {
|
|
1147
1157
|
...a,
|
|
@@ -1156,10 +1166,10 @@ function ba(t) {
|
|
|
1156
1166
|
}).execute(), { ...a, ...r };
|
|
1157
1167
|
};
|
|
1158
1168
|
}
|
|
1159
|
-
function
|
|
1169
|
+
function Ta(t) {
|
|
1160
1170
|
return async (e, a) => !!(await t.deleteFrom("refresh_tokens").where("tenant_id", "=", e).where("refresh_tokens.id", "=", a).execute()).length;
|
|
1161
1171
|
}
|
|
1162
|
-
function
|
|
1172
|
+
function Sa(t) {
|
|
1163
1173
|
return async (e, a, r) => {
|
|
1164
1174
|
const o = {
|
|
1165
1175
|
...r,
|
|
@@ -1170,7 +1180,7 @@ function Ta(t) {
|
|
|
1170
1180
|
return !!(await t.updateTable("refresh_tokens").set(o).where("tenant_id", "=", e).where("refresh_tokens.id", "=", a).execute()).length;
|
|
1171
1181
|
};
|
|
1172
1182
|
}
|
|
1173
|
-
function
|
|
1183
|
+
function Oa(t) {
|
|
1174
1184
|
return async (e, a = {
|
|
1175
1185
|
page: 0,
|
|
1176
1186
|
per_page: 50,
|
|
@@ -1201,16 +1211,16 @@ function Sa(t) {
|
|
|
1201
1211
|
};
|
|
1202
1212
|
};
|
|
1203
1213
|
}
|
|
1204
|
-
function
|
|
1214
|
+
function ka(t) {
|
|
1205
1215
|
return {
|
|
1206
|
-
create:
|
|
1207
|
-
get:
|
|
1208
|
-
list:
|
|
1209
|
-
remove:
|
|
1210
|
-
update:
|
|
1216
|
+
create: xa(t),
|
|
1217
|
+
get: ba(t),
|
|
1218
|
+
list: Oa(t),
|
|
1219
|
+
remove: Ta(t),
|
|
1220
|
+
update: Sa(t)
|
|
1211
1221
|
};
|
|
1212
1222
|
}
|
|
1213
|
-
function
|
|
1223
|
+
function $a(t) {
|
|
1214
1224
|
return async () => {
|
|
1215
1225
|
const e = new Date(Date.now() - 864e5).toISOString(), a = new Date(
|
|
1216
1226
|
Date.now() - 1e3 * 60 * 60 * 24 * 7
|
|
@@ -1235,7 +1245,7 @@ function ka(t) {
|
|
|
1235
1245
|
).execute(), console.log("cleanup complete");
|
|
1236
1246
|
};
|
|
1237
1247
|
}
|
|
1238
|
-
function
|
|
1248
|
+
function Da(t) {
|
|
1239
1249
|
return t[t.length - 1];
|
|
1240
1250
|
}
|
|
1241
1251
|
function p(t) {
|
|
@@ -1268,7 +1278,7 @@ const J = p({
|
|
|
1268
1278
|
identifier: J.create(e)
|
|
1269
1279
|
});
|
|
1270
1280
|
}
|
|
1271
|
-
}),
|
|
1281
|
+
}), Ia = p({
|
|
1272
1282
|
is(t) {
|
|
1273
1283
|
return t.kind === "AliasNode";
|
|
1274
1284
|
},
|
|
@@ -1297,7 +1307,7 @@ const J = p({
|
|
|
1297
1307
|
}
|
|
1298
1308
|
});
|
|
1299
1309
|
var K;
|
|
1300
|
-
class
|
|
1310
|
+
class Pa {
|
|
1301
1311
|
constructor() {
|
|
1302
1312
|
j(this, "nodeStack", []);
|
|
1303
1313
|
y(this, K, p({
|
|
@@ -2131,7 +2141,7 @@ class Ia {
|
|
|
2131
2141
|
}
|
|
2132
2142
|
}
|
|
2133
2143
|
K = new WeakMap();
|
|
2134
|
-
const
|
|
2144
|
+
const ja = p({
|
|
2135
2145
|
AlterTableNode: !0,
|
|
2136
2146
|
CreateIndexNode: !0,
|
|
2137
2147
|
CreateSchemaNode: !0,
|
|
@@ -2151,7 +2161,7 @@ const Pa = p({
|
|
|
2151
2161
|
MergeQueryNode: !0
|
|
2152
2162
|
});
|
|
2153
2163
|
var P, T, S, f, ge, ye, we, $, q, ve;
|
|
2154
|
-
class
|
|
2164
|
+
class Ma extends Pa {
|
|
2155
2165
|
constructor(a) {
|
|
2156
2166
|
super();
|
|
2157
2167
|
y(this, f);
|
|
@@ -2192,7 +2202,7 @@ class ja extends Ia {
|
|
|
2192
2202
|
}
|
|
2193
2203
|
}
|
|
2194
2204
|
P = new WeakMap(), T = new WeakMap(), S = new WeakMap(), f = new WeakSet(), ge = function(a) {
|
|
2195
|
-
return a.kind in
|
|
2205
|
+
return a.kind in ja;
|
|
2196
2206
|
}, ye = function(a) {
|
|
2197
2207
|
const r = /* @__PURE__ */ new Set();
|
|
2198
2208
|
if ("name" in a && a.name && W.is(a.name) && u(this, f, q).call(this, a.name, r), "from" in a && a.from)
|
|
@@ -2206,7 +2216,7 @@ P = new WeakMap(), T = new WeakMap(), S = new WeakMap(), f = new WeakSet(), ge =
|
|
|
2206
2216
|
const r = /* @__PURE__ */ new Set();
|
|
2207
2217
|
return "with" in a && a.with && u(this, f, ve).call(this, a.with, r), r;
|
|
2208
2218
|
}, $ = function(a, r) {
|
|
2209
|
-
const o = U.is(a) ? a :
|
|
2219
|
+
const o = U.is(a) ? a : Ia.is(a) && U.is(a.node) ? a.node : null;
|
|
2210
2220
|
o && u(this, f, q).call(this, o.table, r);
|
|
2211
2221
|
}, q = function(a, r) {
|
|
2212
2222
|
const o = a.identifier.name;
|
|
@@ -2218,10 +2228,10 @@ P = new WeakMap(), T = new WeakMap(), S = new WeakMap(), f = new WeakSet(), ge =
|
|
|
2218
2228
|
}
|
|
2219
2229
|
};
|
|
2220
2230
|
var L;
|
|
2221
|
-
class
|
|
2231
|
+
class Fa {
|
|
2222
2232
|
constructor(e) {
|
|
2223
2233
|
y(this, L);
|
|
2224
|
-
M(this, L, new
|
|
2234
|
+
M(this, L, new Ma(e));
|
|
2225
2235
|
}
|
|
2226
2236
|
transformQuery(e) {
|
|
2227
2237
|
return c(this, L).transformNode(e.node);
|
|
@@ -2231,7 +2241,7 @@ class Ma {
|
|
|
2231
2241
|
}
|
|
2232
2242
|
}
|
|
2233
2243
|
L = new WeakMap();
|
|
2234
|
-
class
|
|
2244
|
+
class Aa {
|
|
2235
2245
|
transformQuery(e) {
|
|
2236
2246
|
return e.node;
|
|
2237
2247
|
}
|
|
@@ -2239,7 +2249,7 @@ class Fa {
|
|
|
2239
2249
|
return e.result;
|
|
2240
2250
|
}
|
|
2241
2251
|
}
|
|
2242
|
-
const
|
|
2252
|
+
const La = "kysely_migration", _e = "kysely_migration_lock", za = !1, B = "migration_lock", Ea = p({ __noMigrations__: !0 });
|
|
2243
2253
|
var h, i, F, v, N, D, Ce, C, be, xe, Te, Se, Oe, G, I, H, ke, $e, De, X, Ie, Pe, je, Me, Fe, A;
|
|
2244
2254
|
class Ne {
|
|
2245
2255
|
constructor(e) {
|
|
@@ -2338,7 +2348,7 @@ class Ne {
|
|
|
2338
2348
|
*/
|
|
2339
2349
|
async migrateTo(e) {
|
|
2340
2350
|
return u(this, i, F).call(this, ({ migrations: a, executedMigrations: r, pendingMigrations: o }) => {
|
|
2341
|
-
if (e ===
|
|
2351
|
+
if (e === Ea)
|
|
2342
2352
|
return { direction: "Down", step: 1 / 0 };
|
|
2343
2353
|
if (!a.find((l) => l.name === e))
|
|
2344
2354
|
throw new Error(`migration "${e}" doesn't exist`);
|
|
@@ -2397,13 +2407,13 @@ h = new WeakMap(), i = new WeakSet(), F = async function(e) {
|
|
|
2397
2407
|
}, v = function() {
|
|
2398
2408
|
return c(this, h).migrationTableSchema;
|
|
2399
2409
|
}, N = function() {
|
|
2400
|
-
return c(this, h).migrationTableName ??
|
|
2410
|
+
return c(this, h).migrationTableName ?? La;
|
|
2401
2411
|
}, D = function() {
|
|
2402
2412
|
return c(this, h).migrationLockTableName ?? _e;
|
|
2403
2413
|
}, Ce = function() {
|
|
2404
|
-
return c(this, h).allowUnorderedMigrations ??
|
|
2414
|
+
return c(this, h).allowUnorderedMigrations ?? za;
|
|
2405
2415
|
}, C = function() {
|
|
2406
|
-
return c(this, i, v) ? new
|
|
2416
|
+
return c(this, i, v) ? new Fa(c(this, i, v)) : new Aa();
|
|
2407
2417
|
}, be = async function() {
|
|
2408
2418
|
await u(this, i, xe).call(this), await u(this, i, Te).call(this), await u(this, i, Se).call(this), await u(this, i, Oe).call(this);
|
|
2409
2419
|
}, xe = async function() {
|
|
@@ -2472,7 +2482,7 @@ h = new WeakMap(), i = new WeakSet(), F = async function(e) {
|
|
|
2472
2482
|
return p({
|
|
2473
2483
|
migrations: a,
|
|
2474
2484
|
executedMigrations: r,
|
|
2475
|
-
lastMigration:
|
|
2485
|
+
lastMigration: Da(r),
|
|
2476
2486
|
pendingMigrations: o
|
|
2477
2487
|
});
|
|
2478
2488
|
}, De = function(e, a) {
|
|
@@ -2572,7 +2582,7 @@ class Ae {
|
|
|
2572
2582
|
return this.migrations;
|
|
2573
2583
|
}
|
|
2574
2584
|
}
|
|
2575
|
-
async function
|
|
2585
|
+
async function Ja(t) {
|
|
2576
2586
|
await t.schema.createTable("tenants").addColumn("id", "varchar(255)", (e) => e.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)", (e) => e.notNull()).addColumn("updated_at", "varchar(255)", (e) => e.notNull()).execute(), await t.schema.createTable("users").addColumn("user_id", "varchar(255)", (e) => e.notNull()).addColumn(
|
|
2577
2587
|
"tenant_id",
|
|
2578
2588
|
"varchar(255)",
|
|
@@ -2640,35 +2650,35 @@ async function Ea(t) {
|
|
|
2640
2650
|
(e) => e.references("tenants.id").onDelete("cascade").notNull()
|
|
2641
2651
|
).addColumn("domain", "varchar(255)", (e) => e.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)", (e) => e.notNull()).addColumn("updated_at", "varchar(255)", (e) => e.notNull()).execute();
|
|
2642
2652
|
}
|
|
2643
|
-
async function
|
|
2653
|
+
async function Ka(t) {
|
|
2644
2654
|
await t.schema.dropTable("domains").execute(), await t.schema.dropTable("members").execute(), await t.schema.dropTable("users").execute(), await t.schema.dropTable("connections").execute(), await t.schema.dropTable("applications").execute(), await t.schema.dropTable("migrations").execute(), await t.schema.dropTable("tenants").execute();
|
|
2645
2655
|
}
|
|
2646
|
-
const
|
|
2656
|
+
const Ra = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2647
2657
|
__proto__: null,
|
|
2648
|
-
down:
|
|
2649
|
-
up:
|
|
2658
|
+
down: Ka,
|
|
2659
|
+
up: Ja
|
|
2650
2660
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2651
|
-
async function
|
|
2661
|
+
async function Ua(t) {
|
|
2652
2662
|
await t.schema.alterTable("tenants").addColumn("support_url", "varchar(255)").execute();
|
|
2653
2663
|
}
|
|
2654
|
-
async function
|
|
2664
|
+
async function Ba(t) {
|
|
2655
2665
|
await t.schema.alterTable("tenants").dropColumn("support_url").execute();
|
|
2656
2666
|
}
|
|
2657
|
-
const
|
|
2667
|
+
const Qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2658
2668
|
__proto__: null,
|
|
2659
|
-
down:
|
|
2660
|
-
up:
|
|
2669
|
+
down: Ba,
|
|
2670
|
+
up: Ua
|
|
2661
2671
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2662
|
-
async function Qa(t) {
|
|
2663
|
-
}
|
|
2664
2672
|
async function Va(t) {
|
|
2665
2673
|
}
|
|
2666
|
-
|
|
2674
|
+
async function Wa(t) {
|
|
2675
|
+
}
|
|
2676
|
+
const qa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2667
2677
|
__proto__: null,
|
|
2668
|
-
down:
|
|
2669
|
-
up:
|
|
2678
|
+
down: Wa,
|
|
2679
|
+
up: Va
|
|
2670
2680
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2671
|
-
async function
|
|
2681
|
+
async function Ga(t) {
|
|
2672
2682
|
await t.schema.createTable("logs").addColumn("id", "varchar(255)", (e) => e.notNull().primaryKey()).addColumn("category", "varchar(255)", (e) => e.notNull()).addColumn("tenant_id", "varchar(64)").addColumn("user_id", "varchar(64)").addForeignKeyConstraint(
|
|
2673
2683
|
"tenant_id_constraint",
|
|
2674
2684
|
["tenant_id"],
|
|
@@ -2677,24 +2687,24 @@ async function qa(t) {
|
|
|
2677
2687
|
(e) => e.onDelete("cascade")
|
|
2678
2688
|
).addColumn("ip", "varchar(255)").addColumn("type", "varchar(8)", (e) => e.notNull()).addColumn("date", "varchar(25)", (e) => e.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();
|
|
2679
2689
|
}
|
|
2680
|
-
async function
|
|
2690
|
+
async function Ha(t) {
|
|
2681
2691
|
await t.schema.dropTable("logs").execute();
|
|
2682
2692
|
}
|
|
2683
|
-
const
|
|
2693
|
+
const Xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2684
2694
|
__proto__: null,
|
|
2685
|
-
down:
|
|
2686
|
-
up:
|
|
2695
|
+
down: Ha,
|
|
2696
|
+
up: Ga
|
|
2687
2697
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2688
|
-
async function Xa(t) {
|
|
2689
|
-
}
|
|
2690
2698
|
async function Ya(t) {
|
|
2691
2699
|
}
|
|
2692
|
-
|
|
2700
|
+
async function Za(t) {
|
|
2701
|
+
}
|
|
2702
|
+
const er = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2693
2703
|
__proto__: null,
|
|
2694
|
-
down:
|
|
2695
|
-
up:
|
|
2704
|
+
down: Za,
|
|
2705
|
+
up: Ya
|
|
2696
2706
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2697
|
-
async function
|
|
2707
|
+
async function tr(t) {
|
|
2698
2708
|
await t.schema.createTable("sessions").addColumn("id", "varchar(21)", (e) => e.primaryKey()).addColumn("tenant_id", "varchar(255)").addColumn("user_id", "varchar(255)").addForeignKeyConstraint(
|
|
2699
2709
|
"user_id_constraint",
|
|
2700
2710
|
["user_id", "tenant_id"],
|
|
@@ -2719,15 +2729,15 @@ async function er(t) {
|
|
|
2719
2729
|
(e) => e.references("applications.id").onDelete("cascade").notNull()
|
|
2720
2730
|
).addColumn("code", "varchar(255)", (e) => e.notNull()).addColumn("email", "varchar(255)", (e) => e.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)", (e) => e.notNull()).addColumn("expires_at", "varchar(255)", (e) => e.notNull()).addColumn("used_at", "varchar(255)").execute(), await t.schema.createIndex("otps_email_index").on("otps").column("email").execute(), await t.schema.createIndex("otps_expires_at_index").on("otps").column("expires_at").execute();
|
|
2721
2731
|
}
|
|
2722
|
-
async function
|
|
2732
|
+
async function ar(t) {
|
|
2723
2733
|
await t.schema.dropTable("sessions").execute(), await t.schema.dropTable("tickets").execute(), await t.schema.dropTable("otps").execute();
|
|
2724
2734
|
}
|
|
2725
|
-
const
|
|
2735
|
+
const rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2726
2736
|
__proto__: null,
|
|
2727
|
-
down:
|
|
2728
|
-
up:
|
|
2737
|
+
down: ar,
|
|
2738
|
+
up: tr
|
|
2729
2739
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2730
|
-
async function
|
|
2740
|
+
async function nr(t) {
|
|
2731
2741
|
await t.schema.createTable("passwords").addColumn("tenant_id", "varchar(255)").addColumn("user_id", "varchar(255)").addPrimaryKeyConstraint("passwords_pkey", ["user_id", "tenant_id"]).addForeignKeyConstraint(
|
|
2732
2742
|
"user_id_constraint",
|
|
2733
2743
|
["user_id", "tenant_id"],
|
|
@@ -2742,24 +2752,24 @@ async function rr(t) {
|
|
|
2742
2752
|
(e) => e.onDelete("cascade")
|
|
2743
2753
|
).addColumn("type", "varchar(255)", (e) => e.notNull()).addColumn("created_at", "varchar(255)", (e) => e.notNull()).addColumn("expires_at", "varchar(255)", (e) => e.notNull()).addColumn("used_at", "varchar(255)").execute(), await t.schema.createIndex("codes_expires_at_index").on("codes").column("expires_at").execute();
|
|
2744
2754
|
}
|
|
2745
|
-
async function
|
|
2755
|
+
async function or(t) {
|
|
2746
2756
|
await t.schema.dropTable("passwords").execute(), await t.schema.dropTable("codes").execute();
|
|
2747
2757
|
}
|
|
2748
|
-
const
|
|
2758
|
+
const sr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2749
2759
|
__proto__: null,
|
|
2750
|
-
down:
|
|
2751
|
-
up:
|
|
2760
|
+
down: or,
|
|
2761
|
+
up: nr
|
|
2752
2762
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2753
|
-
async function sr(t) {
|
|
2754
|
-
}
|
|
2755
2763
|
async function ir(t) {
|
|
2756
2764
|
}
|
|
2757
|
-
|
|
2765
|
+
async function dr(t) {
|
|
2766
|
+
}
|
|
2767
|
+
const cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2758
2768
|
__proto__: null,
|
|
2759
|
-
down:
|
|
2760
|
-
up:
|
|
2769
|
+
down: dr,
|
|
2770
|
+
up: ir
|
|
2761
2771
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2762
|
-
async function
|
|
2772
|
+
async function lr(t) {
|
|
2763
2773
|
await t.schema.alterTable("passwords").addColumn(
|
|
2764
2774
|
"password",
|
|
2765
2775
|
"varchar(255)",
|
|
@@ -2767,288 +2777,288 @@ async function cr(t) {
|
|
|
2767
2777
|
(e) => e.notNull()
|
|
2768
2778
|
).execute();
|
|
2769
2779
|
}
|
|
2770
|
-
async function
|
|
2780
|
+
async function ur(t) {
|
|
2771
2781
|
await t.schema.alterTable("passwords").dropColumn("password").execute();
|
|
2772
2782
|
}
|
|
2773
|
-
const
|
|
2783
|
+
const mr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2774
2784
|
__proto__: null,
|
|
2775
|
-
down:
|
|
2776
|
-
up:
|
|
2785
|
+
down: ur,
|
|
2786
|
+
up: lr
|
|
2777
2787
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2778
|
-
async function mr(t) {
|
|
2779
|
-
}
|
|
2780
2788
|
async function hr(t) {
|
|
2781
2789
|
}
|
|
2782
|
-
|
|
2790
|
+
async function _r(t) {
|
|
2791
|
+
}
|
|
2792
|
+
const fr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2783
2793
|
__proto__: null,
|
|
2784
|
-
down:
|
|
2785
|
-
up:
|
|
2794
|
+
down: _r,
|
|
2795
|
+
up: hr
|
|
2786
2796
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2787
|
-
async function fr(t) {
|
|
2788
|
-
}
|
|
2789
2797
|
async function pr(t) {
|
|
2790
2798
|
}
|
|
2791
|
-
|
|
2799
|
+
async function gr(t) {
|
|
2800
|
+
}
|
|
2801
|
+
const yr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2792
2802
|
__proto__: null,
|
|
2793
|
-
down:
|
|
2794
|
-
up:
|
|
2803
|
+
down: gr,
|
|
2804
|
+
up: pr
|
|
2795
2805
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2796
|
-
async function yr(t) {
|
|
2797
|
-
}
|
|
2798
2806
|
async function wr(t) {
|
|
2799
2807
|
}
|
|
2800
|
-
|
|
2808
|
+
async function vr(t) {
|
|
2809
|
+
}
|
|
2810
|
+
const Nr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2801
2811
|
__proto__: null,
|
|
2802
|
-
down:
|
|
2803
|
-
up:
|
|
2812
|
+
down: vr,
|
|
2813
|
+
up: wr
|
|
2804
2814
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2805
|
-
async function
|
|
2815
|
+
async function Cr(t) {
|
|
2806
2816
|
await t.schema.createIndex("users_email_index").on("users").column("email").execute();
|
|
2807
2817
|
}
|
|
2808
|
-
async function
|
|
2818
|
+
async function br(t) {
|
|
2809
2819
|
await t.schema.dropIndex("users_email_index").execute();
|
|
2810
2820
|
}
|
|
2811
|
-
const
|
|
2821
|
+
const xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2812
2822
|
__proto__: null,
|
|
2813
|
-
down:
|
|
2814
|
-
up:
|
|
2823
|
+
down: br,
|
|
2824
|
+
up: Cr
|
|
2815
2825
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2816
|
-
async function
|
|
2826
|
+
async function Tr(t) {
|
|
2817
2827
|
await t.schema.alterTable("users").addColumn("profileData", "varchar(2048)").execute();
|
|
2818
2828
|
}
|
|
2819
|
-
async function
|
|
2829
|
+
async function Sr(t) {
|
|
2820
2830
|
await t.schema.alterTable("users").dropColumn("profileData").execute();
|
|
2821
2831
|
}
|
|
2822
|
-
const
|
|
2832
|
+
const Or = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2823
2833
|
__proto__: null,
|
|
2824
|
-
down:
|
|
2825
|
-
up:
|
|
2834
|
+
down: Sr,
|
|
2835
|
+
up: Tr
|
|
2826
2836
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2827
|
-
async function
|
|
2837
|
+
async function kr(t) {
|
|
2828
2838
|
await t.schema.createIndex("users_linked_to_index").on("users").column("linked_to").execute();
|
|
2829
2839
|
}
|
|
2830
|
-
async function
|
|
2840
|
+
async function $r(t) {
|
|
2831
2841
|
await t.schema.dropIndex("users_linked_to_index");
|
|
2832
2842
|
}
|
|
2833
|
-
const
|
|
2843
|
+
const Dr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2834
2844
|
__proto__: null,
|
|
2835
|
-
down:
|
|
2836
|
-
up:
|
|
2845
|
+
down: $r,
|
|
2846
|
+
up: kr
|
|
2837
2847
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2838
|
-
async function
|
|
2848
|
+
async function Ir(t) {
|
|
2839
2849
|
await t.schema.alterTable("users").addColumn("locale", "varchar(255)").execute();
|
|
2840
2850
|
}
|
|
2841
|
-
async function
|
|
2851
|
+
async function Pr(t) {
|
|
2842
2852
|
await t.schema.alterTable("users").dropColumn("locale").execute();
|
|
2843
2853
|
}
|
|
2844
|
-
const
|
|
2854
|
+
const jr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2845
2855
|
__proto__: null,
|
|
2846
|
-
down:
|
|
2847
|
-
up:
|
|
2856
|
+
down: Pr,
|
|
2857
|
+
up: Ir
|
|
2848
2858
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2849
|
-
async function
|
|
2859
|
+
async function Mr(t) {
|
|
2850
2860
|
await t.schema.createTable("keys").addColumn("kid", "varchar(255)", (e) => e.primaryKey()).addColumn(
|
|
2851
2861
|
"tenant_id",
|
|
2852
2862
|
"varchar(255)",
|
|
2853
2863
|
(e) => e.references("tenants.id").onDelete("cascade")
|
|
2854
2864
|
).addColumn("created_at", "varchar(255)", (e) => e.notNull()).addColumn("revoked_at", "varchar(255)").addColumn("cert", "varchar(2048)").addColumn("pkcs7", "varchar(2048)").addColumn("fingerprint", "varchar(256)").addColumn("thumbprint", "varchar(256)").addColumn("current_since", "varchar(256)").addColumn("current_until", "varchar(256)").execute();
|
|
2855
2865
|
}
|
|
2856
|
-
async function
|
|
2866
|
+
async function Fr(t) {
|
|
2857
2867
|
await t.schema.dropTable("keys").execute();
|
|
2858
2868
|
}
|
|
2859
|
-
const
|
|
2869
|
+
const Ar = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2860
2870
|
__proto__: null,
|
|
2861
|
-
down:
|
|
2862
|
-
up:
|
|
2871
|
+
down: Fr,
|
|
2872
|
+
up: Mr
|
|
2863
2873
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2864
|
-
async function Ar(t) {
|
|
2865
|
-
}
|
|
2866
2874
|
async function Lr(t) {
|
|
2867
2875
|
}
|
|
2868
|
-
|
|
2876
|
+
async function zr(t) {
|
|
2877
|
+
}
|
|
2878
|
+
const Er = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2869
2879
|
__proto__: null,
|
|
2870
|
-
down:
|
|
2871
|
-
up:
|
|
2880
|
+
down: zr,
|
|
2881
|
+
up: Lr
|
|
2872
2882
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2873
|
-
async function Er(t) {
|
|
2874
|
-
}
|
|
2875
2883
|
async function Jr(t) {
|
|
2876
2884
|
}
|
|
2877
|
-
|
|
2885
|
+
async function Kr(t) {
|
|
2886
|
+
}
|
|
2887
|
+
const Rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2878
2888
|
__proto__: null,
|
|
2879
|
-
down:
|
|
2880
|
-
up:
|
|
2889
|
+
down: Kr,
|
|
2890
|
+
up: Jr
|
|
2881
2891
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2882
|
-
async function
|
|
2892
|
+
async function Ur(t) {
|
|
2883
2893
|
await t.schema.alterTable("otps").addColumn("audience", "varchar(255)").execute();
|
|
2884
2894
|
}
|
|
2885
|
-
async function
|
|
2895
|
+
async function Br(t) {
|
|
2886
2896
|
await t.schema.alterTable("otps").dropColumn("audience").execute();
|
|
2887
2897
|
}
|
|
2888
|
-
const
|
|
2898
|
+
const Qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2889
2899
|
__proto__: null,
|
|
2890
|
-
down:
|
|
2891
|
-
up:
|
|
2900
|
+
down: Br,
|
|
2901
|
+
up: Ur
|
|
2892
2902
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2893
|
-
async function Qr(t) {
|
|
2894
|
-
}
|
|
2895
2903
|
async function Vr(t) {
|
|
2896
2904
|
}
|
|
2897
|
-
|
|
2905
|
+
async function Wr(t) {
|
|
2906
|
+
}
|
|
2907
|
+
const qr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2898
2908
|
__proto__: null,
|
|
2899
|
-
down:
|
|
2900
|
-
up:
|
|
2909
|
+
down: Wr,
|
|
2910
|
+
up: Vr
|
|
2901
2911
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2902
|
-
async function
|
|
2912
|
+
async function Gr(t) {
|
|
2903
2913
|
await t.schema.alterTable("logs").dropColumn("category").execute();
|
|
2904
2914
|
}
|
|
2905
|
-
async function
|
|
2915
|
+
async function Hr(t) {
|
|
2906
2916
|
await t.schema.alterTable("logs").addColumn("category", "varchar(255)", (e) => e.notNull()).execute();
|
|
2907
2917
|
}
|
|
2908
|
-
const
|
|
2918
|
+
const Xr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2909
2919
|
__proto__: null,
|
|
2910
|
-
down:
|
|
2911
|
-
up:
|
|
2920
|
+
down: Hr,
|
|
2921
|
+
up: Gr
|
|
2912
2922
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2913
|
-
async function
|
|
2923
|
+
async function Yr(t) {
|
|
2914
2924
|
await t.schema.alterTable("users").dropColumn("tags").execute();
|
|
2915
2925
|
}
|
|
2916
|
-
async function
|
|
2926
|
+
async function Zr(t) {
|
|
2917
2927
|
await t.schema.alterTable("users").addColumn("tags", "varchar(255)").execute();
|
|
2918
2928
|
}
|
|
2919
|
-
const
|
|
2929
|
+
const en = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2920
2930
|
__proto__: null,
|
|
2921
|
-
down:
|
|
2922
|
-
up:
|
|
2931
|
+
down: Zr,
|
|
2932
|
+
up: Yr
|
|
2923
2933
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2924
|
-
async function
|
|
2934
|
+
async function tn(t) {
|
|
2925
2935
|
await t.schema.createIndex("logs_user_id").on("logs").column("user_id").execute(), await t.schema.createIndex("logs_tenant_id").on("logs").column("tenant_id").execute(), await t.schema.createIndex("logs_date").on("logs").column("date").execute();
|
|
2926
2936
|
}
|
|
2927
|
-
async function
|
|
2937
|
+
async function an(t) {
|
|
2928
2938
|
await t.schema.dropIndex("logs_user_id"), await t.schema.dropIndex("logs_tenant_id"), await t.schema.dropIndex("logs_date");
|
|
2929
2939
|
}
|
|
2930
|
-
const
|
|
2940
|
+
const rn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2931
2941
|
__proto__: null,
|
|
2932
|
-
down:
|
|
2933
|
-
up:
|
|
2942
|
+
down: an,
|
|
2943
|
+
up: tn
|
|
2934
2944
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2935
|
-
async function
|
|
2945
|
+
async function nn(t) {
|
|
2936
2946
|
await t.schema.alterTable("logs").dropColumn("details").execute(), await t.schema.alterTable("logs").addColumn("details", "varchar(8192)").execute();
|
|
2937
2947
|
}
|
|
2938
|
-
async function
|
|
2948
|
+
async function on(t) {
|
|
2939
2949
|
await t.schema.alterTable("logs").dropColumn("details").execute(), await t.schema.alterTable("logs").addColumn("details", "varchar(2048)").execute();
|
|
2940
2950
|
}
|
|
2941
|
-
const
|
|
2951
|
+
const sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2942
2952
|
__proto__: null,
|
|
2943
|
-
down:
|
|
2944
|
-
up:
|
|
2953
|
+
down: on,
|
|
2954
|
+
up: nn
|
|
2945
2955
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2946
|
-
async function
|
|
2956
|
+
async function dn(t) {
|
|
2947
2957
|
await t.schema.alterTable("logs").addColumn("user_name", "varchar(255)").execute(), await t.schema.alterTable("logs").addColumn("auth0_client", "varchar(255)").execute(), await t.schema.alterTable("logs").addColumn("isMobile", "boolean").execute(), await t.schema.alterTable("logs").addColumn("connection", "varchar(255)").execute(), await t.schema.alterTable("logs").addColumn("connection_id", "varchar(255)").execute(), await t.schema.alterTable("logs").addColumn("audience", "varchar(255)").execute(), await t.schema.alterTable("logs").addColumn("scope", "varchar(255)").execute(), await t.schema.alterTable("logs").addColumn("strategy", "varchar(255)").execute(), await t.schema.alterTable("logs").addColumn("strategy_type", "varchar(255)").execute(), await t.schema.alterTable("logs").addColumn("hostname", "varchar(255)").execute(), await t.schema.alterTable("logs").addColumn("session_connection", "varchar(255)").execute();
|
|
2948
2958
|
}
|
|
2949
|
-
async function
|
|
2959
|
+
async function cn(t) {
|
|
2950
2960
|
await t.schema.alterTable("logs").dropColumn("user_name").execute(), await t.schema.alterTable("logs").dropColumn("auth0_client").execute(), await t.schema.alterTable("logs").dropColumn("isMobile").execute(), await t.schema.alterTable("logs").dropColumn("connection").execute(), await t.schema.alterTable("logs").dropColumn("connection_id").execute(), await t.schema.alterTable("logs").dropColumn("audience").execute(), await t.schema.alterTable("logs").dropColumn("scope").execute(), await t.schema.alterTable("logs").dropColumn("strategy").execute(), await t.schema.alterTable("logs").dropColumn("strategy_type").execute(), await t.schema.alterTable("logs").dropColumn("hostname").execute(), await t.schema.alterTable("logs").dropColumn("session_connection").execute();
|
|
2951
2961
|
}
|
|
2952
|
-
const
|
|
2962
|
+
const ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2953
2963
|
__proto__: null,
|
|
2954
|
-
down:
|
|
2955
|
-
up:
|
|
2964
|
+
down: cn,
|
|
2965
|
+
up: dn
|
|
2956
2966
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2957
|
-
async function
|
|
2967
|
+
async function un(t) {
|
|
2958
2968
|
await t.schema.createIndex("users_name_index").on("users").column("name").execute();
|
|
2959
2969
|
}
|
|
2960
|
-
async function
|
|
2970
|
+
async function mn(t) {
|
|
2961
2971
|
await t.schema.dropIndex("users_name_index").execute();
|
|
2962
2972
|
}
|
|
2963
|
-
const
|
|
2973
|
+
const hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2964
2974
|
__proto__: null,
|
|
2965
|
-
down:
|
|
2966
|
-
up:
|
|
2975
|
+
down: mn,
|
|
2976
|
+
up: un
|
|
2967
2977
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2968
|
-
async function hn(t) {
|
|
2969
|
-
}
|
|
2970
2978
|
async function _n(t) {
|
|
2979
|
+
}
|
|
2980
|
+
async function fn(t) {
|
|
2971
2981
|
await t.schema.alterTable("users").dropConstraint("unique_email_provider").execute();
|
|
2972
2982
|
}
|
|
2973
|
-
const
|
|
2983
|
+
const pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2974
2984
|
__proto__: null,
|
|
2975
|
-
down:
|
|
2976
|
-
up:
|
|
2985
|
+
down: fn,
|
|
2986
|
+
up: _n
|
|
2977
2987
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2978
|
-
async function
|
|
2988
|
+
async function gn(t) {
|
|
2979
2989
|
await t.schema.alterTable("otps").dropColumn("state").execute(), await t.schema.alterTable("otps").addColumn("state", "varchar(8192)").execute();
|
|
2980
2990
|
}
|
|
2981
|
-
async function
|
|
2991
|
+
async function yn(t) {
|
|
2982
2992
|
await t.schema.alterTable("otps").dropColumn("state").execute(), await t.schema.alterTable("otps").addColumn("state", "varchar(1024)").execute();
|
|
2983
2993
|
}
|
|
2984
|
-
const
|
|
2994
|
+
const wn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2985
2995
|
__proto__: null,
|
|
2986
|
-
down:
|
|
2987
|
-
up:
|
|
2996
|
+
down: yn,
|
|
2997
|
+
up: gn
|
|
2988
2998
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2989
|
-
async function
|
|
2999
|
+
async function vn(t) {
|
|
2990
3000
|
await t.schema.alterTable("tickets").dropColumn("state").execute(), await t.schema.alterTable("tickets").addColumn("state", "varchar(8192)").execute();
|
|
2991
3001
|
}
|
|
2992
|
-
async function
|
|
3002
|
+
async function Nn(t) {
|
|
2993
3003
|
await t.schema.alterTable("tickets").dropColumn("state").execute(), await t.schema.alterTable("tickets").addColumn("state", "varchar(1024)").execute();
|
|
2994
3004
|
}
|
|
2995
|
-
const
|
|
3005
|
+
const Cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2996
3006
|
__proto__: null,
|
|
2997
|
-
down:
|
|
2998
|
-
up:
|
|
3007
|
+
down: Nn,
|
|
3008
|
+
up: vn
|
|
2999
3009
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3000
|
-
async function
|
|
3010
|
+
async function bn(t) {
|
|
3001
3011
|
await t.schema.createTable("branding").addColumn(
|
|
3002
3012
|
"tenant_id",
|
|
3003
3013
|
"varchar(255)",
|
|
3004
3014
|
(e) => e.references("tenants.id").onDelete("cascade").notNull().primaryKey()
|
|
3005
3015
|
).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();
|
|
3006
3016
|
}
|
|
3007
|
-
async function
|
|
3017
|
+
async function xn(t) {
|
|
3008
3018
|
await t.schema.dropTable("branding").execute();
|
|
3009
3019
|
}
|
|
3010
|
-
const
|
|
3020
|
+
const Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3011
3021
|
__proto__: null,
|
|
3012
|
-
down:
|
|
3013
|
-
up:
|
|
3022
|
+
down: xn,
|
|
3023
|
+
up: bn
|
|
3014
3024
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3015
|
-
async function Tn(t) {
|
|
3016
|
-
}
|
|
3017
3025
|
async function Sn(t) {
|
|
3018
3026
|
}
|
|
3019
|
-
|
|
3027
|
+
async function On(t) {
|
|
3028
|
+
}
|
|
3029
|
+
const kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3020
3030
|
__proto__: null,
|
|
3021
|
-
down:
|
|
3022
|
-
up:
|
|
3031
|
+
down: On,
|
|
3032
|
+
up: Sn
|
|
3023
3033
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3024
|
-
async function kn(t) {
|
|
3025
|
-
}
|
|
3026
3034
|
async function $n(t) {
|
|
3027
3035
|
}
|
|
3028
|
-
|
|
3036
|
+
async function Dn(t) {
|
|
3037
|
+
}
|
|
3038
|
+
const In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3029
3039
|
__proto__: null,
|
|
3030
|
-
down:
|
|
3031
|
-
up:
|
|
3040
|
+
down: Dn,
|
|
3041
|
+
up: $n
|
|
3032
3042
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3033
|
-
async function In(t) {
|
|
3034
|
-
}
|
|
3035
3043
|
async function Pn(t) {
|
|
3036
3044
|
}
|
|
3037
|
-
|
|
3045
|
+
async function jn(t) {
|
|
3046
|
+
}
|
|
3047
|
+
const Mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3038
3048
|
__proto__: null,
|
|
3039
|
-
down:
|
|
3040
|
-
up:
|
|
3049
|
+
down: jn,
|
|
3050
|
+
up: Pn
|
|
3041
3051
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3042
|
-
async function Mn(t) {
|
|
3043
|
-
}
|
|
3044
3052
|
async function Fn(t) {
|
|
3045
3053
|
}
|
|
3046
|
-
|
|
3054
|
+
async function An(t) {
|
|
3055
|
+
}
|
|
3056
|
+
const Ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3047
3057
|
__proto__: null,
|
|
3048
|
-
down:
|
|
3049
|
-
up:
|
|
3058
|
+
down: An,
|
|
3059
|
+
up: Fn
|
|
3050
3060
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3051
|
-
async function
|
|
3061
|
+
async function zn(t) {
|
|
3052
3062
|
await t.schema.createTable("authentication_codes").addColumn(
|
|
3053
3063
|
"tenant_id",
|
|
3054
3064
|
"varchar(255)",
|
|
@@ -3059,55 +3069,55 @@ async function Ln(t) {
|
|
|
3059
3069
|
(e) => e.references("applications.id").onDelete("cascade").notNull()
|
|
3060
3070
|
).addColumn("user_id", "varchar(255)", (e) => e.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)", (e) => e.notNull()).addColumn("expires_at", "varchar(255)", (e) => e.notNull()).addColumn("used_at", "varchar(255)").execute();
|
|
3061
3071
|
}
|
|
3062
|
-
async function
|
|
3072
|
+
async function En(t) {
|
|
3063
3073
|
await t.schema.dropTable("authentication_codes").execute();
|
|
3064
3074
|
}
|
|
3065
|
-
const
|
|
3075
|
+
const Jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3066
3076
|
__proto__: null,
|
|
3067
|
-
down:
|
|
3068
|
-
up:
|
|
3077
|
+
down: En,
|
|
3078
|
+
up: zn
|
|
3069
3079
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3070
|
-
async function Jn(t) {
|
|
3071
|
-
}
|
|
3072
3080
|
async function Kn(t) {
|
|
3073
3081
|
}
|
|
3074
|
-
|
|
3082
|
+
async function Rn(t) {
|
|
3083
|
+
}
|
|
3084
|
+
const Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3075
3085
|
__proto__: null,
|
|
3076
|
-
down:
|
|
3077
|
-
up:
|
|
3086
|
+
down: Rn,
|
|
3087
|
+
up: Kn
|
|
3078
3088
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3079
|
-
async function
|
|
3089
|
+
async function Bn(t) {
|
|
3080
3090
|
await t.schema.alterTable("otps").addColumn("ip", "varchar(64)").execute();
|
|
3081
3091
|
}
|
|
3082
|
-
async function
|
|
3092
|
+
async function Qn(t) {
|
|
3083
3093
|
await t.schema.alterTable("otps").dropColumn("ip").execute();
|
|
3084
3094
|
}
|
|
3085
|
-
const
|
|
3095
|
+
const Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3086
3096
|
__proto__: null,
|
|
3087
|
-
down:
|
|
3088
|
-
up:
|
|
3097
|
+
down: Qn,
|
|
3098
|
+
up: Bn
|
|
3089
3099
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3090
|
-
async function
|
|
3100
|
+
async function Wn(t) {
|
|
3091
3101
|
await t.schema.alterTable("logs").dropColumn("user_agent").execute(), await t.schema.alterTable("logs").addColumn("user_agent", "varchar(1024)").execute();
|
|
3092
3102
|
}
|
|
3093
|
-
async function
|
|
3103
|
+
async function qn(t) {
|
|
3094
3104
|
await t.schema.alterTable("logs").dropColumn("user_agent").execute(), await t.schema.alterTable("logs").addColumn("user_agent", "varchar(255)").execute();
|
|
3095
3105
|
}
|
|
3096
|
-
const
|
|
3106
|
+
const Gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3097
3107
|
__proto__: null,
|
|
3098
|
-
down:
|
|
3099
|
-
up:
|
|
3108
|
+
down: qn,
|
|
3109
|
+
up: Wn
|
|
3100
3110
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3101
|
-
async function Gn(t) {
|
|
3102
|
-
}
|
|
3103
3111
|
async function Hn(t) {
|
|
3104
3112
|
}
|
|
3105
|
-
|
|
3113
|
+
async function Xn(t) {
|
|
3114
|
+
}
|
|
3115
|
+
const Yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3106
3116
|
__proto__: null,
|
|
3107
|
-
down:
|
|
3108
|
-
up:
|
|
3117
|
+
down: Xn,
|
|
3118
|
+
up: Hn
|
|
3109
3119
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3110
|
-
async function
|
|
3120
|
+
async function Zn(t) {
|
|
3111
3121
|
await t.schema.createTable("hooks").addColumn("hook_id", "varchar(255)", (e) => e.notNull().primaryKey()).addColumn(
|
|
3112
3122
|
"tenant_id",
|
|
3113
3123
|
"varchar(255)",
|
|
@@ -3118,33 +3128,33 @@ async function Yn(t) {
|
|
|
3118
3128
|
(e) => e.defaultTo(!1).notNull()
|
|
3119
3129
|
).addColumn("priority", "integer").execute();
|
|
3120
3130
|
}
|
|
3121
|
-
async function
|
|
3131
|
+
async function eo(t) {
|
|
3122
3132
|
await t.schema.dropTable("hooks").execute();
|
|
3123
3133
|
}
|
|
3124
|
-
const
|
|
3134
|
+
const to = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3125
3135
|
__proto__: null,
|
|
3126
|
-
down:
|
|
3127
|
-
up:
|
|
3136
|
+
down: eo,
|
|
3137
|
+
up: Zn
|
|
3128
3138
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3129
|
-
async function to(t) {
|
|
3130
|
-
}
|
|
3131
3139
|
async function ao(t) {
|
|
3132
3140
|
}
|
|
3133
|
-
|
|
3141
|
+
async function ro(t) {
|
|
3142
|
+
}
|
|
3143
|
+
const no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3134
3144
|
__proto__: null,
|
|
3135
|
-
down:
|
|
3136
|
-
up:
|
|
3145
|
+
down: ro,
|
|
3146
|
+
up: ao
|
|
3137
3147
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3138
|
-
async function no(t) {
|
|
3139
|
-
}
|
|
3140
3148
|
async function oo(t) {
|
|
3141
3149
|
}
|
|
3142
|
-
|
|
3150
|
+
async function so(t) {
|
|
3151
|
+
}
|
|
3152
|
+
const io = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3143
3153
|
__proto__: null,
|
|
3144
|
-
down:
|
|
3145
|
-
up:
|
|
3154
|
+
down: so,
|
|
3155
|
+
up: oo
|
|
3146
3156
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3147
|
-
async function
|
|
3157
|
+
async function co(t) {
|
|
3148
3158
|
await t.schema.createTable("logins").addColumn("login_id", "varchar(255)", (e) => e.primaryKey()).addColumn(
|
|
3149
3159
|
"tenant_id",
|
|
3150
3160
|
"varchar(255)",
|
|
@@ -3161,7 +3171,7 @@ async function io(t) {
|
|
|
3161
3171
|
(e) => e.onDelete("cascade")
|
|
3162
3172
|
).addColumn("code_type", "varchar(255)", (e) => e.notNull()).addColumn("created_at", "varchar(255)", (e) => e.notNull()).addColumn("expires_at", "varchar(255)", (e) => e.notNull()).addColumn("used_at", "varchar(255)").execute();
|
|
3163
3173
|
}
|
|
3164
|
-
async function
|
|
3174
|
+
async function lo(t) {
|
|
3165
3175
|
await t.schema.dropTable("logins").execute(), await t.schema.alterTable("passwords").dropColumn("algorithm").execute(), await t.schema.dropTable("codes").execute(), await t.schema.createTable("codes").addColumn("id", "varchar(255)", (e) => e.primaryKey()).addColumn("code", "varchar(255)", (e) => e.notNull()).addColumn("user_id", "varchar(255)").addColumn("tenant_id", "varchar(255)").addForeignKeyConstraint(
|
|
3166
3176
|
"codes_user_id_tenant_id_constraint",
|
|
3167
3177
|
["user_id", "tenant_id"],
|
|
@@ -3170,90 +3180,90 @@ async function co(t) {
|
|
|
3170
3180
|
(e) => e.onDelete("cascade")
|
|
3171
3181
|
).addColumn("type", "varchar(255)", (e) => e.notNull()).addColumn("created_at", "varchar(255)", (e) => e.notNull()).addColumn("expires_at", "varchar(255)", (e) => e.notNull()).addColumn("used_at", "varchar(255)").execute();
|
|
3172
3182
|
}
|
|
3173
|
-
const
|
|
3183
|
+
const uo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3174
3184
|
__proto__: null,
|
|
3175
|
-
down:
|
|
3176
|
-
up:
|
|
3185
|
+
down: lo,
|
|
3186
|
+
up: co
|
|
3177
3187
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3178
|
-
async function uo(t) {
|
|
3179
|
-
}
|
|
3180
3188
|
async function mo(t) {
|
|
3181
3189
|
}
|
|
3182
|
-
|
|
3190
|
+
async function ho(t) {
|
|
3191
|
+
}
|
|
3192
|
+
const _o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3183
3193
|
__proto__: null,
|
|
3184
|
-
down:
|
|
3185
|
-
up:
|
|
3194
|
+
down: ho,
|
|
3195
|
+
up: mo
|
|
3186
3196
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3187
|
-
async function
|
|
3197
|
+
async function fo(t) {
|
|
3188
3198
|
await t.schema.alterTable("logins").addColumn("auth0Client", "varchar(256)").execute();
|
|
3189
3199
|
}
|
|
3190
|
-
async function
|
|
3200
|
+
async function po(t) {
|
|
3191
3201
|
await t.schema.alterTable("logins").dropColumn("auth0Client").execute();
|
|
3192
3202
|
}
|
|
3193
|
-
const
|
|
3203
|
+
const go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3194
3204
|
__proto__: null,
|
|
3195
|
-
down:
|
|
3196
|
-
up:
|
|
3205
|
+
down: po,
|
|
3206
|
+
up: fo
|
|
3197
3207
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3198
|
-
async function
|
|
3208
|
+
async function yo(t) {
|
|
3199
3209
|
await t.schema.alterTable("logins").dropColumn("authParams_state").execute(), await t.schema.alterTable("logins").addColumn("authParams_state", "varchar(8192)").execute();
|
|
3200
3210
|
}
|
|
3201
|
-
async function
|
|
3211
|
+
async function wo(t) {
|
|
3202
3212
|
await t.schema.alterTable("logins").dropColumn("authParams_state").execute(), await t.schema.alterTable("logins").addColumn("authParams_state", "varchar(511)").execute();
|
|
3203
3213
|
}
|
|
3204
|
-
const
|
|
3214
|
+
const vo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3205
3215
|
__proto__: null,
|
|
3206
|
-
down:
|
|
3207
|
-
up:
|
|
3216
|
+
down: wo,
|
|
3217
|
+
up: yo
|
|
3208
3218
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3209
|
-
async function vo(t) {
|
|
3210
|
-
}
|
|
3211
3219
|
async function No(t) {
|
|
3212
3220
|
}
|
|
3213
|
-
|
|
3221
|
+
async function Co(t) {
|
|
3222
|
+
}
|
|
3223
|
+
const bo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3214
3224
|
__proto__: null,
|
|
3215
|
-
down:
|
|
3216
|
-
up:
|
|
3225
|
+
down: Co,
|
|
3226
|
+
up: No
|
|
3217
3227
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3218
|
-
async function bo(t) {
|
|
3219
|
-
}
|
|
3220
3228
|
async function xo(t) {
|
|
3221
3229
|
}
|
|
3222
|
-
|
|
3230
|
+
async function To(t) {
|
|
3231
|
+
}
|
|
3232
|
+
const So = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3223
3233
|
__proto__: null,
|
|
3224
|
-
down:
|
|
3225
|
-
up:
|
|
3234
|
+
down: To,
|
|
3235
|
+
up: xo
|
|
3226
3236
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3227
|
-
async function
|
|
3237
|
+
async function Oo(t) {
|
|
3228
3238
|
await t.schema.alterTable("logins").addColumn("authParams_nonce", "varchar(255)").execute();
|
|
3229
3239
|
}
|
|
3230
|
-
async function
|
|
3240
|
+
async function ko(t) {
|
|
3231
3241
|
await t.schema.alterTable("logins").dropColumn("nonce").execute();
|
|
3232
3242
|
}
|
|
3233
|
-
const
|
|
3243
|
+
const $o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3234
3244
|
__proto__: null,
|
|
3235
|
-
down:
|
|
3236
|
-
up:
|
|
3245
|
+
down: ko,
|
|
3246
|
+
up: Oo
|
|
3237
3247
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3238
|
-
async function $o(t) {
|
|
3239
|
-
}
|
|
3240
3248
|
async function Do(t) {
|
|
3241
3249
|
}
|
|
3242
|
-
|
|
3250
|
+
async function Io(t) {
|
|
3251
|
+
}
|
|
3252
|
+
const Po = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3243
3253
|
__proto__: null,
|
|
3244
|
-
down:
|
|
3245
|
-
up:
|
|
3254
|
+
down: Io,
|
|
3255
|
+
up: Do
|
|
3246
3256
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3247
|
-
async function Po(t) {
|
|
3248
|
-
}
|
|
3249
3257
|
async function jo(t) {
|
|
3250
3258
|
}
|
|
3251
|
-
|
|
3259
|
+
async function Mo(t) {
|
|
3260
|
+
}
|
|
3261
|
+
const Fo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3252
3262
|
__proto__: null,
|
|
3253
|
-
down:
|
|
3254
|
-
up:
|
|
3263
|
+
down: Mo,
|
|
3264
|
+
up: jo
|
|
3255
3265
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3256
|
-
async function
|
|
3266
|
+
async function Ao(t) {
|
|
3257
3267
|
await t.schema.dropTable("codes").execute(), await t.schema.createTable("codes").addColumn("code_id", "varchar(255)", (e) => e.notNull()).addColumn(
|
|
3258
3268
|
"tenant_id",
|
|
3259
3269
|
"varchar(255)",
|
|
@@ -3269,7 +3279,7 @@ async function Fo(t) {
|
|
|
3269
3279
|
"code_type"
|
|
3270
3280
|
]).execute();
|
|
3271
3281
|
}
|
|
3272
|
-
async function
|
|
3282
|
+
async function Lo(t) {
|
|
3273
3283
|
await t.schema.dropTable("codes").execute(), await t.schema.createTable("codes").addColumn("code_id", "varchar(255)", (e) => e.primaryKey()).addColumn(
|
|
3274
3284
|
"tenant_id",
|
|
3275
3285
|
"varchar(255)",
|
|
@@ -3282,15 +3292,15 @@ async function Ao(t) {
|
|
|
3282
3292
|
(e) => e.onDelete("cascade")
|
|
3283
3293
|
).addColumn("code_type", "varchar(255)", (e) => e.notNull()).addColumn("created_at", "varchar(255)", (e) => e.notNull()).addColumn("expires_at", "varchar(255)", (e) => e.notNull()).addColumn("used_at", "varchar(255)").execute();
|
|
3284
3294
|
}
|
|
3285
|
-
const
|
|
3295
|
+
const zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3286
3296
|
__proto__: null,
|
|
3287
|
-
down:
|
|
3288
|
-
up:
|
|
3297
|
+
down: Lo,
|
|
3298
|
+
up: Ao
|
|
3289
3299
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3290
|
-
async function
|
|
3300
|
+
async function Eo(t) {
|
|
3291
3301
|
await t.schema.dropTable("otps").execute(), await t.schema.dropTable("authentication_codes").execute();
|
|
3292
3302
|
}
|
|
3293
|
-
async function
|
|
3303
|
+
async function Jo(t) {
|
|
3294
3304
|
await t.schema.alterTable("keys").addColumn("private_key", "varchar(2048)").addColumn("public_key", "varchar(2048)").execute(), await t.schema.createTable("otps").addColumn(
|
|
3295
3305
|
"tenant_id",
|
|
3296
3306
|
"varchar(255)",
|
|
@@ -3309,32 +3319,32 @@ async function Eo(t) {
|
|
|
3309
3319
|
(e) => e.references("applications.id").onDelete("cascade").notNull()
|
|
3310
3320
|
).addColumn("user_id", "varchar(255)", (e) => e.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)", (e) => e.notNull()).addColumn("expires_at", "varchar(255)", (e) => e.notNull()).addColumn("used_at", "varchar(255)").execute();
|
|
3311
3321
|
}
|
|
3312
|
-
const
|
|
3322
|
+
const Ko = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3313
3323
|
__proto__: null,
|
|
3314
|
-
down:
|
|
3315
|
-
up:
|
|
3324
|
+
down: Jo,
|
|
3325
|
+
up: Eo
|
|
3316
3326
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3317
|
-
async function
|
|
3327
|
+
async function Ro(t) {
|
|
3318
3328
|
await t.schema.createIndex("IDX_logs_tenant_date_type_user").on("logs").columns(["tenant_id", "date", "type", "user_id"]).execute();
|
|
3319
3329
|
}
|
|
3320
|
-
async function
|
|
3330
|
+
async function Uo(t) {
|
|
3321
3331
|
await t.schema.dropIndex("IDX_logs_tenant_date_type_user").on("logs").execute();
|
|
3322
3332
|
}
|
|
3323
|
-
const
|
|
3333
|
+
const Bo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3324
3334
|
__proto__: null,
|
|
3325
|
-
down:
|
|
3326
|
-
up:
|
|
3335
|
+
down: Uo,
|
|
3336
|
+
up: Ro
|
|
3327
3337
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3328
|
-
async function Bo(t) {
|
|
3329
|
-
}
|
|
3330
3338
|
async function Qo(t) {
|
|
3331
3339
|
}
|
|
3332
|
-
|
|
3340
|
+
async function Vo(t) {
|
|
3341
|
+
}
|
|
3342
|
+
const Wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3333
3343
|
__proto__: null,
|
|
3334
|
-
down:
|
|
3335
|
-
up:
|
|
3344
|
+
down: Vo,
|
|
3345
|
+
up: Qo
|
|
3336
3346
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3337
|
-
async function
|
|
3347
|
+
async function qo(t) {
|
|
3338
3348
|
await t.schema.createTable("prompt_settings").addColumn("tenant_id", "varchar(64)", (e) => e.primaryKey()).addColumn(
|
|
3339
3349
|
"universal_login_experience",
|
|
3340
3350
|
"varchar(16)",
|
|
@@ -3353,95 +3363,95 @@ async function Wo(t) {
|
|
|
3353
3363
|
(e) => e.defaultTo(!1).notNull()
|
|
3354
3364
|
).execute();
|
|
3355
3365
|
}
|
|
3356
|
-
async function
|
|
3366
|
+
async function Go(t) {
|
|
3357
3367
|
await t.schema.dropTable("prompt_settings").execute();
|
|
3358
3368
|
}
|
|
3359
|
-
const
|
|
3369
|
+
const Ho = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3360
3370
|
__proto__: null,
|
|
3361
|
-
down:
|
|
3362
|
-
up:
|
|
3371
|
+
down: Go,
|
|
3372
|
+
up: qo
|
|
3363
3373
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3364
|
-
async function Ho(t) {
|
|
3365
|
-
}
|
|
3366
3374
|
async function Xo(t) {
|
|
3367
3375
|
}
|
|
3368
|
-
|
|
3376
|
+
async function Yo(t) {
|
|
3377
|
+
}
|
|
3378
|
+
const Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3369
3379
|
__proto__: null,
|
|
3370
|
-
down:
|
|
3371
|
-
up:
|
|
3380
|
+
down: Yo,
|
|
3381
|
+
up: Xo
|
|
3372
3382
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3373
|
-
async function Zo(t) {
|
|
3374
|
-
}
|
|
3375
3383
|
async function es(t) {
|
|
3376
3384
|
}
|
|
3377
|
-
|
|
3385
|
+
async function ts(t) {
|
|
3386
|
+
}
|
|
3387
|
+
const as = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3378
3388
|
__proto__: null,
|
|
3379
|
-
down:
|
|
3380
|
-
up:
|
|
3389
|
+
down: ts,
|
|
3390
|
+
up: es
|
|
3381
3391
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3382
|
-
async function as(t) {
|
|
3383
|
-
}
|
|
3384
3392
|
async function rs(t) {
|
|
3385
3393
|
}
|
|
3386
|
-
|
|
3394
|
+
async function ns(t) {
|
|
3395
|
+
}
|
|
3396
|
+
const os = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3387
3397
|
__proto__: null,
|
|
3388
|
-
down:
|
|
3389
|
-
up:
|
|
3398
|
+
down: ns,
|
|
3399
|
+
up: rs
|
|
3390
3400
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3391
|
-
async function
|
|
3401
|
+
async function ss(t) {
|
|
3392
3402
|
await t.schema.alterTable("logins").addColumn("authParams_ui_locales", "varchar(32)").execute();
|
|
3393
3403
|
}
|
|
3394
|
-
async function
|
|
3404
|
+
async function is(t) {
|
|
3395
3405
|
await t.schema.alterTable("logins").dropColumn("authParams_ui_locales").execute();
|
|
3396
3406
|
}
|
|
3397
|
-
const
|
|
3407
|
+
const ds = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3398
3408
|
__proto__: null,
|
|
3399
|
-
down:
|
|
3400
|
-
up:
|
|
3409
|
+
down: is,
|
|
3410
|
+
up: ss
|
|
3401
3411
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3402
|
-
async function
|
|
3412
|
+
async function cs(t) {
|
|
3403
3413
|
await t.schema.alterTable("logins").addColumn("authParams_prompt", "varchar(16)").execute();
|
|
3404
3414
|
}
|
|
3405
|
-
async function
|
|
3415
|
+
async function ls(t) {
|
|
3406
3416
|
await t.schema.alterTable("logins").dropColumn("authParams_prompt").execute();
|
|
3407
3417
|
}
|
|
3408
|
-
const
|
|
3418
|
+
const us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3409
3419
|
__proto__: null,
|
|
3410
|
-
down:
|
|
3411
|
-
up:
|
|
3420
|
+
down: ls,
|
|
3421
|
+
up: cs
|
|
3412
3422
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3413
|
-
async function us(t) {
|
|
3414
|
-
}
|
|
3415
3423
|
async function ms(t) {
|
|
3416
3424
|
}
|
|
3417
|
-
|
|
3425
|
+
async function hs(t) {
|
|
3426
|
+
}
|
|
3427
|
+
const _s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3418
3428
|
__proto__: null,
|
|
3419
|
-
down:
|
|
3420
|
-
up:
|
|
3429
|
+
down: hs,
|
|
3430
|
+
up: ms
|
|
3421
3431
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3422
|
-
async function
|
|
3432
|
+
async function fs(t) {
|
|
3423
3433
|
await t.schema.alterTable("logins").addColumn("authParams_act_as", "varchar(255)").execute();
|
|
3424
3434
|
}
|
|
3425
|
-
async function
|
|
3435
|
+
async function ps(t) {
|
|
3426
3436
|
await t.schema.alterTable("logins").dropColumn("authParam_act_as").execute();
|
|
3427
3437
|
}
|
|
3428
|
-
const
|
|
3438
|
+
const gs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3429
3439
|
__proto__: null,
|
|
3430
|
-
down:
|
|
3431
|
-
up:
|
|
3440
|
+
down: ps,
|
|
3441
|
+
up: fs
|
|
3432
3442
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3433
|
-
async function
|
|
3443
|
+
async function ys(t) {
|
|
3434
3444
|
await t.schema.alterTable("codes").addColumn("code_verifier", "varchar(128)").execute();
|
|
3435
3445
|
}
|
|
3436
|
-
async function
|
|
3446
|
+
async function ws(t) {
|
|
3437
3447
|
await t.schema.alterTable("codes").dropColumn("code_verifier").execute();
|
|
3438
3448
|
}
|
|
3439
|
-
const
|
|
3449
|
+
const vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3440
3450
|
__proto__: null,
|
|
3441
|
-
down:
|
|
3442
|
-
up:
|
|
3451
|
+
down: ws,
|
|
3452
|
+
up: ys
|
|
3443
3453
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3444
|
-
async function
|
|
3454
|
+
async function Ns(t) {
|
|
3445
3455
|
await t.schema.createTable("email_providers").addColumn("tenant_id", "varchar(255)", (e) => e.primaryKey()).addColumn("name", "varchar(255)", (e) => e.notNull()).addColumn("enabled", "boolean", (e) => e.notNull()).addColumn("default_from_address", "varchar(255)").addColumn(
|
|
3446
3456
|
"credentials",
|
|
3447
3457
|
"varchar(2048)",
|
|
@@ -3452,18 +3462,18 @@ async function vs(t) {
|
|
|
3452
3462
|
(e) => e.notNull().defaultTo("{}")
|
|
3453
3463
|
).addColumn("created_at", "varchar(29)", (e) => e.notNull()).addColumn("updated_at", "varchar(29)", (e) => e.notNull()).execute();
|
|
3454
3464
|
}
|
|
3455
|
-
async function
|
|
3465
|
+
async function Cs(t) {
|
|
3456
3466
|
await t.schema.dropTable("email_providers").execute();
|
|
3457
3467
|
}
|
|
3458
|
-
const
|
|
3468
|
+
const bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3459
3469
|
__proto__: null,
|
|
3460
|
-
down:
|
|
3461
|
-
up:
|
|
3470
|
+
down: Cs,
|
|
3471
|
+
up: Ns
|
|
3462
3472
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3463
|
-
async function
|
|
3473
|
+
async function xs(t) {
|
|
3464
3474
|
await t.schema.dropTable("tickets").execute();
|
|
3465
3475
|
}
|
|
3466
|
-
async function
|
|
3476
|
+
async function Ts(t) {
|
|
3467
3477
|
await t.schema.createTable("tickets").addColumn(
|
|
3468
3478
|
"tenant_id",
|
|
3469
3479
|
"varchar(255)",
|
|
@@ -3474,22 +3484,22 @@ async function xs(t) {
|
|
|
3474
3484
|
(e) => e.references("applications.id").onDelete("cascade").notNull()
|
|
3475
3485
|
).addColumn("email", "varchar(255)", (e) => e.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)", (e) => e.notNull()).addColumn("expires_at", "varchar(255)", (e) => e.notNull()).addColumn("used_at", "varchar(255)").execute();
|
|
3476
3486
|
}
|
|
3477
|
-
const
|
|
3487
|
+
const Ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3478
3488
|
__proto__: null,
|
|
3479
|
-
down:
|
|
3480
|
-
up:
|
|
3489
|
+
down: Ts,
|
|
3490
|
+
up: xs
|
|
3481
3491
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3482
|
-
async function Ss(t) {
|
|
3483
|
-
}
|
|
3484
3492
|
async function Os(t) {
|
|
3493
|
+
}
|
|
3494
|
+
async function ks(t) {
|
|
3485
3495
|
await t.schema.alterTable("logins").dropColumn("ip").dropColumn("useragent").execute();
|
|
3486
3496
|
}
|
|
3487
|
-
const
|
|
3497
|
+
const $s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3488
3498
|
__proto__: null,
|
|
3489
|
-
down:
|
|
3490
|
-
up:
|
|
3499
|
+
down: ks,
|
|
3500
|
+
up: Os
|
|
3491
3501
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3492
|
-
async function
|
|
3502
|
+
async function Ds(t) {
|
|
3493
3503
|
await t.schema.createTable("refresh_tokens").addColumn("id", "varchar(21)", (e) => e.primaryKey()).addColumn(
|
|
3494
3504
|
"client_id",
|
|
3495
3505
|
"varchar(21)",
|
|
@@ -3502,27 +3512,27 @@ async function $s(t) {
|
|
|
3502
3512
|
(e) => e.onDelete("cascade")
|
|
3503
3513
|
).addColumn("created_at", "varchar(35)", (e) => e.notNull()).addColumn("expires_at", "varchar(35)").addColumn("idle_expires_at", "varchar(35)").addColumn("last_exchanged_at", "varchar(35)").addColumn("device", "varchar(2048)", (e) => e.notNull()).addColumn("resource_servers", "varchar(2048)", (e) => e.notNull()).addColumn("rotating", "boolean", (e) => e.notNull()).execute();
|
|
3504
3514
|
}
|
|
3505
|
-
async function
|
|
3515
|
+
async function Is(t) {
|
|
3506
3516
|
await t.schema.dropTable("refresh_tokens").execute();
|
|
3507
3517
|
}
|
|
3508
|
-
const
|
|
3518
|
+
const Ps = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3509
3519
|
__proto__: null,
|
|
3510
|
-
down:
|
|
3511
|
-
up:
|
|
3520
|
+
down: Is,
|
|
3521
|
+
up: Ds
|
|
3512
3522
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3513
|
-
async function Ps(t) {
|
|
3514
|
-
}
|
|
3515
3523
|
async function js(t) {
|
|
3516
3524
|
}
|
|
3517
|
-
|
|
3525
|
+
async function Ms(t) {
|
|
3526
|
+
}
|
|
3527
|
+
const Fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3518
3528
|
__proto__: null,
|
|
3519
|
-
down:
|
|
3520
|
-
up:
|
|
3529
|
+
down: Ms,
|
|
3530
|
+
up: js
|
|
3521
3531
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3522
|
-
async function
|
|
3532
|
+
async function As(t) {
|
|
3523
3533
|
await t.schema.dropTable("sessions").execute(), await t.schema.dropTable("refresh_tokens").execute();
|
|
3524
3534
|
}
|
|
3525
|
-
async function
|
|
3535
|
+
async function Ls(t) {
|
|
3526
3536
|
await t.schema.createTable("sessions").addColumn("id", "varchar(21)", (e) => e.primaryKey()).addColumn("tenant_id", "varchar(255)").addColumn("user_id", "varchar(255)").addForeignKeyConstraint(
|
|
3527
3537
|
"sessions_user_id_constraint",
|
|
3528
3538
|
["user_id", "tenant_id"],
|
|
@@ -3541,12 +3551,12 @@ async function As(t) {
|
|
|
3541
3551
|
(e) => e.onDelete("cascade")
|
|
3542
3552
|
).addColumn("created_at", "varchar(35)", (e) => e.notNull()).addColumn("expires_at", "varchar(35)").addColumn("idle_expires_at", "varchar(35)").addColumn("last_exchanged_at", "varchar(35)").addColumn("device", "varchar(2048)", (e) => e.notNull()).addColumn("resource_servers", "varchar(2048)", (e) => e.notNull()).addColumn("rotating", "boolean", (e) => e.notNull()).execute();
|
|
3543
3553
|
}
|
|
3544
|
-
const
|
|
3554
|
+
const zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3545
3555
|
__proto__: null,
|
|
3546
|
-
down:
|
|
3547
|
-
up:
|
|
3556
|
+
down: Ls,
|
|
3557
|
+
up: As
|
|
3548
3558
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3549
|
-
async function
|
|
3559
|
+
async function Es(t) {
|
|
3550
3560
|
await t.schema.createTable("sessions_2").addColumn("id", "varchar(21)", (e) => e.primaryKey()).addColumn("tenant_id", "varchar(255)").addColumn("user_id", "varchar(255)").addForeignKeyConstraint(
|
|
3551
3561
|
"sessions_2_user_id_constraint",
|
|
3552
3562
|
["user_id", "tenant_id"],
|
|
@@ -3565,15 +3575,15 @@ async function zs(t) {
|
|
|
3565
3575
|
(e) => e.onDelete("cascade")
|
|
3566
3576
|
).addColumn("created_at", "varchar(35)", (e) => e.notNull()).addColumn("expires_at", "varchar(35)").addColumn("idle_expires_at", "varchar(35)").addColumn("last_exchanged_at", "varchar(35)").addColumn("device", "varchar(2048)", (e) => e.notNull()).addColumn("resource_servers", "varchar(2048)", (e) => e.notNull()).addColumn("rotating", "boolean", (e) => e.notNull()).execute();
|
|
3567
3577
|
}
|
|
3568
|
-
async function
|
|
3578
|
+
async function Js(t) {
|
|
3569
3579
|
await t.schema.dropTable("sessions_2").execute(), await t.schema.dropTable("refresh_tokens_2").execute();
|
|
3570
3580
|
}
|
|
3571
|
-
const
|
|
3581
|
+
const Ks = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3572
3582
|
__proto__: null,
|
|
3573
|
-
down:
|
|
3574
|
-
up:
|
|
3583
|
+
down: Js,
|
|
3584
|
+
up: Es
|
|
3575
3585
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3576
|
-
async function
|
|
3586
|
+
async function Rs(t) {
|
|
3577
3587
|
await t.schema.createTable("custom_domains").addColumn(
|
|
3578
3588
|
"custom_domain_id",
|
|
3579
3589
|
"varchar(21)",
|
|
@@ -3584,49 +3594,49 @@ async function Ks(t) {
|
|
|
3584
3594
|
(e) => e.references("tenants.id").onDelete("cascade").notNull()
|
|
3585
3595
|
).addColumn("domain", "varchar(255)", (e) => e.notNull()).addColumn("primary", "boolean", (e) => e.notNull()).addColumn("status", "varchar(50)", (e) => e.notNull()).addColumn("type", "varchar(50)", (e) => e.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)", (e) => e.notNull()).addColumn("updated_at", "varchar(35)", (e) => e.notNull()).execute(), await t.schema.dropTable("domains").execute();
|
|
3586
3596
|
}
|
|
3587
|
-
async function
|
|
3597
|
+
async function Us(t) {
|
|
3588
3598
|
await t.schema.dropTable("custom_domains").execute(), await t.schema.createTable("domains").addColumn("id", "varchar(255)", (e) => e.notNull().primaryKey()).addColumn(
|
|
3589
3599
|
"tenant_id",
|
|
3590
3600
|
"varchar(255)",
|
|
3591
3601
|
(e) => e.references("tenants.id").onDelete("cascade").notNull()
|
|
3592
3602
|
).addColumn("domain", "varchar(255)", (e) => e.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)", (e) => e.notNull()).addColumn("updated_at", "varchar(255)", (e) => e.notNull()).execute();
|
|
3593
3603
|
}
|
|
3594
|
-
const
|
|
3604
|
+
const Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3595
3605
|
__proto__: null,
|
|
3596
|
-
down:
|
|
3597
|
-
up:
|
|
3606
|
+
down: Us,
|
|
3607
|
+
up: Rs
|
|
3598
3608
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3599
|
-
async function Bs(t) {
|
|
3600
|
-
}
|
|
3601
3609
|
async function Qs(t) {
|
|
3610
|
+
}
|
|
3611
|
+
async function Vs(t) {
|
|
3602
3612
|
await t.schema.alterTable("logins").dropColumn("authParams_organization").dropColumn("authorization_url").execute();
|
|
3603
3613
|
}
|
|
3604
|
-
const
|
|
3614
|
+
const Ws = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3605
3615
|
__proto__: null,
|
|
3606
|
-
down:
|
|
3607
|
-
up:
|
|
3616
|
+
down: Vs,
|
|
3617
|
+
up: Qs
|
|
3608
3618
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3609
|
-
async function
|
|
3619
|
+
async function qs(t) {
|
|
3610
3620
|
await t.schema.alterTable("logins").dropColumn("authorization_url").execute(), await t.schema.alterTable("logins").addColumn("authorization_url", "varchar(2048)").execute();
|
|
3611
3621
|
}
|
|
3612
|
-
async function
|
|
3622
|
+
async function Gs(t) {
|
|
3613
3623
|
await t.schema.alterTable("logins").dropColumn("authorization_url").execute(), await t.schema.alterTable("logins").addColumn("authorization_url", "varchar(1024)").execute();
|
|
3614
3624
|
}
|
|
3615
|
-
const
|
|
3625
|
+
const Hs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3616
3626
|
__proto__: null,
|
|
3617
|
-
down:
|
|
3618
|
-
up:
|
|
3627
|
+
down: Gs,
|
|
3628
|
+
up: qs
|
|
3619
3629
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3620
|
-
async function Hs(t) {
|
|
3621
|
-
}
|
|
3622
3630
|
async function Xs(t) {
|
|
3623
3631
|
}
|
|
3624
|
-
|
|
3632
|
+
async function Ys(t) {
|
|
3633
|
+
}
|
|
3634
|
+
const Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3625
3635
|
__proto__: null,
|
|
3626
|
-
down:
|
|
3627
|
-
up:
|
|
3636
|
+
down: Ys,
|
|
3637
|
+
up: Xs
|
|
3628
3638
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3629
|
-
async function
|
|
3639
|
+
async function ei(t) {
|
|
3630
3640
|
await t.schema.createTable("sessions").addColumn("id", "varchar(21)", (e) => e.primaryKey()).addColumn("tenant_id", "varchar(255)").addColumn("user_id", "varchar(255)").addForeignKeyConstraint(
|
|
3631
3641
|
"sessions_user_id_constraint",
|
|
3632
3642
|
["user_id", "tenant_id"],
|
|
@@ -3653,25 +3663,25 @@ async function Zs(t) {
|
|
|
3653
3663
|
(e) => e.onDelete("cascade")
|
|
3654
3664
|
).addColumn("created_at", "varchar(35)", (e) => e.notNull()).addColumn("expires_at", "varchar(35)").addColumn("idle_expires_at", "varchar(35)").addColumn("last_exchanged_at", "varchar(35)").addColumn("device", "varchar(2048)", (e) => e.notNull()).addColumn("resource_servers", "varchar(2048)", (e) => e.notNull()).addColumn("rotating", "boolean", (e) => e.notNull()).execute();
|
|
3655
3665
|
}
|
|
3656
|
-
async function
|
|
3666
|
+
async function ti(t) {
|
|
3657
3667
|
await t.schema.dropTable("sessions").execute(), await t.schema.dropTable("login_sessions").execute(), await t.schema.dropTable("refresh_tokens").execute();
|
|
3658
3668
|
}
|
|
3659
|
-
const
|
|
3669
|
+
const ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3660
3670
|
__proto__: null,
|
|
3661
|
-
down:
|
|
3662
|
-
up:
|
|
3671
|
+
down: ti,
|
|
3672
|
+
up: ei
|
|
3663
3673
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3664
|
-
async function
|
|
3674
|
+
async function ri(t) {
|
|
3665
3675
|
await t.schema.dropTable("logins").execute(), await t.schema.dropTable("sessions_2").execute(), await t.schema.dropTable("refresh_tokens_2").execute();
|
|
3666
3676
|
}
|
|
3667
|
-
async function
|
|
3677
|
+
async function ni(t) {
|
|
3668
3678
|
}
|
|
3669
|
-
const
|
|
3679
|
+
const oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3670
3680
|
__proto__: null,
|
|
3671
|
-
down:
|
|
3672
|
-
up:
|
|
3681
|
+
down: ni,
|
|
3682
|
+
up: ri
|
|
3673
3683
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3674
|
-
async function
|
|
3684
|
+
async function si(t) {
|
|
3675
3685
|
await t.schema.dropTable("custom_domains").execute(), await t.schema.createTable("custom_domains").addColumn(
|
|
3676
3686
|
"custom_domain_id",
|
|
3677
3687
|
"varchar(256)",
|
|
@@ -3682,94 +3692,94 @@ async function oi(t) {
|
|
|
3682
3692
|
(e) => e.references("tenants.id").onDelete("cascade").notNull()
|
|
3683
3693
|
).addColumn("domain", "varchar(255)", (e) => e.notNull()).addColumn("primary", "boolean", (e) => e.notNull()).addColumn("status", "varchar(50)", (e) => e.notNull()).addColumn("type", "varchar(50)", (e) => e.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)", (e) => e.notNull()).addColumn("updated_at", "varchar(35)", (e) => e.notNull()).execute();
|
|
3684
3694
|
}
|
|
3685
|
-
async function
|
|
3695
|
+
async function ii(t) {
|
|
3686
3696
|
}
|
|
3687
|
-
const
|
|
3697
|
+
const di = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3688
3698
|
__proto__: null,
|
|
3689
|
-
down:
|
|
3690
|
-
up:
|
|
3699
|
+
down: ii,
|
|
3700
|
+
up: si
|
|
3691
3701
|
}, Symbol.toStringTag, { value: "Module" })), Le = {
|
|
3692
|
-
m1_init:
|
|
3693
|
-
m2_magicLink:
|
|
3694
|
-
m3_updateAt:
|
|
3695
|
-
m4_logTable:
|
|
3696
|
-
m5_userProfile:
|
|
3697
|
-
m6_sessions:
|
|
3698
|
-
m7_passwords:
|
|
3699
|
-
m8_logsTableNewFields:
|
|
3700
|
-
m9_passwordTableNewField:
|
|
3701
|
-
n01_codesTable:
|
|
3702
|
-
n11_universalLoginSession:
|
|
3703
|
-
n12_userFields:
|
|
3704
|
-
n13_userEmailIndex:
|
|
3705
|
-
n14_profileDataField:
|
|
3706
|
-
n15_userEmailIndex:
|
|
3707
|
-
n16_userLocale:
|
|
3708
|
-
n17_signingKeys:
|
|
3709
|
-
n18_logsFields:
|
|
3710
|
-
n19_connectionsUserinfo:
|
|
3711
|
-
n20_missingFields:
|
|
3712
|
-
n21_sessionDeletedAt:
|
|
3713
|
-
n22_dropLogsFields:
|
|
3714
|
-
n23_dropUsersFields:
|
|
3715
|
-
n24_logsIndexes:
|
|
3716
|
-
n25_logDescMaxLength:
|
|
3717
|
-
n26_logsTableExtraFields:
|
|
3718
|
-
n27_usersTableNameIndex:
|
|
3719
|
-
n28_usersEmailConstrain:
|
|
3720
|
-
n29_increaseOtpStateLength:
|
|
3721
|
-
n30_increaseTicketStateLength:
|
|
3722
|
-
n31_branding:
|
|
3723
|
-
n32_indexesAndNotNull:
|
|
3724
|
-
n33_vendorIdInUniversalLoginSession:
|
|
3725
|
-
n34_auth0ClientInUniversalLoginSession:
|
|
3726
|
-
n35_increaseUniversalSessionStateLength:
|
|
3727
|
-
n36_authenticationCodes:
|
|
3728
|
-
n37_disableSignUps:
|
|
3729
|
-
n38_otpIpAddress:
|
|
3730
|
-
n39_increaseUserAgentLength:
|
|
3731
|
-
n40_userId:
|
|
3732
|
-
n41_hooks:
|
|
3733
|
-
n42_userIdIndexes:
|
|
3734
|
-
n43_userIdIndexes:
|
|
3735
|
-
n44_codes:
|
|
3736
|
-
n45_hookProperties:
|
|
3737
|
-
n46_loginAuth0Client:
|
|
3738
|
-
n47_loginAuth0Client:
|
|
3739
|
-
n48_saml:
|
|
3740
|
-
n49_removeFields:
|
|
3741
|
-
n50_authParamsNonce:
|
|
3742
|
-
n51_connectionid:
|
|
3743
|
-
n52_cert:
|
|
3744
|
-
n53_codes_primary_key:
|
|
3745
|
-
n54_cleanup_tables:
|
|
3746
|
-
n55_logs_index:
|
|
3747
|
-
n56_application_fields:
|
|
3748
|
-
n57_prompt_settings:
|
|
3749
|
-
n58_connection_client_id:
|
|
3750
|
-
n59_connection_options:
|
|
3751
|
-
n60_users_metadata:
|
|
3752
|
-
n61_userLocales:
|
|
3753
|
-
n62_prompt:
|
|
3754
|
-
n63_connection_cleanup:
|
|
3755
|
-
n64_act_as:
|
|
3756
|
-
n65_code_verifier:
|
|
3757
|
-
n66_email_providers:
|
|
3758
|
-
n67_drop_tickets:
|
|
3759
|
-
n68_login_useragents:
|
|
3760
|
-
n70_refresh_tokens:
|
|
3761
|
-
n71_session_new_fields:
|
|
3762
|
-
n72_session_primary_key:
|
|
3763
|
-
n73_drop_sessions:
|
|
3764
|
-
n74_custom_domains:
|
|
3765
|
-
n75_organizations:
|
|
3766
|
-
n76_authorization_url_length:
|
|
3767
|
-
n77_drop_sessions:
|
|
3768
|
-
n78_login_sessions:
|
|
3769
|
-
n79_drop_sessions_2:
|
|
3770
|
-
n80_recreate_custom_domains:
|
|
3702
|
+
m1_init: Ra,
|
|
3703
|
+
m2_magicLink: Qa,
|
|
3704
|
+
m3_updateAt: qa,
|
|
3705
|
+
m4_logTable: Xa,
|
|
3706
|
+
m5_userProfile: er,
|
|
3707
|
+
m6_sessions: rr,
|
|
3708
|
+
m7_passwords: sr,
|
|
3709
|
+
m8_logsTableNewFields: cr,
|
|
3710
|
+
m9_passwordTableNewField: mr,
|
|
3711
|
+
n01_codesTable: fr,
|
|
3712
|
+
n11_universalLoginSession: yr,
|
|
3713
|
+
n12_userFields: Nr,
|
|
3714
|
+
n13_userEmailIndex: xr,
|
|
3715
|
+
n14_profileDataField: Or,
|
|
3716
|
+
n15_userEmailIndex: Dr,
|
|
3717
|
+
n16_userLocale: jr,
|
|
3718
|
+
n17_signingKeys: Ar,
|
|
3719
|
+
n18_logsFields: Er,
|
|
3720
|
+
n19_connectionsUserinfo: Rr,
|
|
3721
|
+
n20_missingFields: Qr,
|
|
3722
|
+
n21_sessionDeletedAt: qr,
|
|
3723
|
+
n22_dropLogsFields: Xr,
|
|
3724
|
+
n23_dropUsersFields: en,
|
|
3725
|
+
n24_logsIndexes: rn,
|
|
3726
|
+
n25_logDescMaxLength: sn,
|
|
3727
|
+
n26_logsTableExtraFields: ln,
|
|
3728
|
+
n27_usersTableNameIndex: hn,
|
|
3729
|
+
n28_usersEmailConstrain: pn,
|
|
3730
|
+
n29_increaseOtpStateLength: wn,
|
|
3731
|
+
n30_increaseTicketStateLength: Cn,
|
|
3732
|
+
n31_branding: Tn,
|
|
3733
|
+
n32_indexesAndNotNull: kn,
|
|
3734
|
+
n33_vendorIdInUniversalLoginSession: In,
|
|
3735
|
+
n34_auth0ClientInUniversalLoginSession: Mn,
|
|
3736
|
+
n35_increaseUniversalSessionStateLength: Ln,
|
|
3737
|
+
n36_authenticationCodes: Jn,
|
|
3738
|
+
n37_disableSignUps: Un,
|
|
3739
|
+
n38_otpIpAddress: Vn,
|
|
3740
|
+
n39_increaseUserAgentLength: Gn,
|
|
3741
|
+
n40_userId: Yn,
|
|
3742
|
+
n41_hooks: to,
|
|
3743
|
+
n42_userIdIndexes: no,
|
|
3744
|
+
n43_userIdIndexes: io,
|
|
3745
|
+
n44_codes: uo,
|
|
3746
|
+
n45_hookProperties: _o,
|
|
3747
|
+
n46_loginAuth0Client: go,
|
|
3748
|
+
n47_loginAuth0Client: vo,
|
|
3749
|
+
n48_saml: bo,
|
|
3750
|
+
n49_removeFields: So,
|
|
3751
|
+
n50_authParamsNonce: $o,
|
|
3752
|
+
n51_connectionid: Po,
|
|
3753
|
+
n52_cert: Fo,
|
|
3754
|
+
n53_codes_primary_key: zo,
|
|
3755
|
+
n54_cleanup_tables: Ko,
|
|
3756
|
+
n55_logs_index: Bo,
|
|
3757
|
+
n56_application_fields: Wo,
|
|
3758
|
+
n57_prompt_settings: Ho,
|
|
3759
|
+
n58_connection_client_id: Zo,
|
|
3760
|
+
n59_connection_options: as,
|
|
3761
|
+
n60_users_metadata: os,
|
|
3762
|
+
n61_userLocales: ds,
|
|
3763
|
+
n62_prompt: us,
|
|
3764
|
+
n63_connection_cleanup: _s,
|
|
3765
|
+
n64_act_as: gs,
|
|
3766
|
+
n65_code_verifier: vs,
|
|
3767
|
+
n66_email_providers: bs,
|
|
3768
|
+
n67_drop_tickets: Ss,
|
|
3769
|
+
n68_login_useragents: $s,
|
|
3770
|
+
n70_refresh_tokens: Ps,
|
|
3771
|
+
n71_session_new_fields: Fs,
|
|
3772
|
+
n72_session_primary_key: zs,
|
|
3773
|
+
n73_drop_sessions: Ks,
|
|
3774
|
+
n74_custom_domains: Bs,
|
|
3775
|
+
n75_organizations: Ws,
|
|
3776
|
+
n76_authorization_url_length: Hs,
|
|
3777
|
+
n77_drop_sessions: Zs,
|
|
3778
|
+
n78_login_sessions: ai,
|
|
3779
|
+
n79_drop_sessions_2: oi,
|
|
3780
|
+
n80_recreate_custom_domains: di
|
|
3771
3781
|
};
|
|
3772
|
-
async function
|
|
3782
|
+
async function hi(t, e = !1) {
|
|
3773
3783
|
e && console.log("migrating...");
|
|
3774
3784
|
const a = new Ae(Le), r = new Ne({
|
|
3775
3785
|
db: t,
|
|
@@ -3782,7 +3792,7 @@ async function mi(t, e = !1) {
|
|
|
3782
3792
|
}), o)
|
|
3783
3793
|
throw console.error("failed to migrate"), console.error(o), o;
|
|
3784
3794
|
}
|
|
3785
|
-
async function
|
|
3795
|
+
async function _i(t) {
|
|
3786
3796
|
console.log("migrating...");
|
|
3787
3797
|
const e = new Ae(Le), a = new Ne({
|
|
3788
3798
|
db: t,
|
|
@@ -3793,31 +3803,31 @@ async function hi(t) {
|
|
|
3793
3803
|
}), r)
|
|
3794
3804
|
throw console.error("failed to migrate"), console.error(r), r;
|
|
3795
3805
|
}
|
|
3796
|
-
function
|
|
3806
|
+
function fi(t) {
|
|
3797
3807
|
return {
|
|
3798
3808
|
applications: It(t),
|
|
3799
|
-
branding:
|
|
3800
|
-
cleanup:
|
|
3809
|
+
branding: Yt(t),
|
|
3810
|
+
cleanup: $a(t),
|
|
3801
3811
|
clients: zt(t),
|
|
3802
3812
|
codes: Tt(t),
|
|
3803
3813
|
connections: Lt(t),
|
|
3804
|
-
emailProviders:
|
|
3805
|
-
customDomains:
|
|
3806
|
-
hooks:
|
|
3814
|
+
emailProviders: Ca(t),
|
|
3815
|
+
customDomains: Gt(t),
|
|
3816
|
+
hooks: na(t),
|
|
3807
3817
|
keys: Rt(t),
|
|
3808
|
-
loginSessions:
|
|
3818
|
+
loginSessions: fa(t),
|
|
3809
3819
|
logs: ct(t),
|
|
3810
3820
|
passwords: wt(t),
|
|
3811
|
-
promptSettings:
|
|
3812
|
-
refreshTokens:
|
|
3821
|
+
promptSettings: ya(t),
|
|
3822
|
+
refreshTokens: ka(t),
|
|
3813
3823
|
sessions: ft(t),
|
|
3814
3824
|
tenants: nt(t),
|
|
3815
|
-
themes:
|
|
3825
|
+
themes: la(t),
|
|
3816
3826
|
users: Xe(t)
|
|
3817
3827
|
};
|
|
3818
3828
|
}
|
|
3819
3829
|
export {
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3830
|
+
fi as default,
|
|
3831
|
+
_i as migrateDown,
|
|
3832
|
+
hi as migrateToLatest
|
|
3823
3833
|
};
|