@absolutejs/auth 0.45.9 → 0.46.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/cli/migrate.js +12 -4
- package/dist/cli/migrate.js.map +12 -12
- package/dist/client/index.js +17 -17
- package/dist/client/index.js.map +5 -5
- package/dist/client/react.js +17 -17
- package/dist/client/react.js.map +6 -6
- package/dist/client/solid.js +17 -17
- package/dist/client/solid.js.map +4 -4
- package/dist/client/svelte.js +17 -17
- package/dist/client/svelte.js.map +4 -4
- package/dist/client/vue.js +17 -17
- package/dist/client/vue.js.map +5 -5
- package/dist/fingerprint-client/index.js +5 -2
- package/dist/fingerprint-client/index.js.map +3 -3
- package/dist/htmx/index.js +2 -2
- package/dist/htmx/index.js.map +2 -2
- package/dist/index.d.ts +36 -15059
- package/dist/index.js +181 -120
- package/dist/index.js.map +39 -39
- package/dist/plugins/index.js.map +2 -2
- package/dist/providers/index.js +2 -2
- package/dist/providers/index.js.map +2 -2
- package/dist/types.d.ts +30 -22
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -151,7 +151,7 @@ var init_crypto = __esm(() => {
|
|
|
151
151
|
textDecoder = new TextDecoder;
|
|
152
152
|
});
|
|
153
153
|
|
|
154
|
-
//
|
|
154
|
+
// node_modules/citra/dist/index.js
|
|
155
155
|
var BASE64_BLOCK_SIZE = 4;
|
|
156
156
|
var NUM_GENERATOR_BYTES = 32;
|
|
157
157
|
var anilistProfileQuery = `query {
|
|
@@ -3834,7 +3834,9 @@ var credentialsLogin = ({
|
|
|
3834
3834
|
});
|
|
3835
3835
|
}
|
|
3836
3836
|
if (requireEmailVerification && !credential.emailVerified) {
|
|
3837
|
-
return status("Forbidden", {
|
|
3837
|
+
return status("Forbidden", {
|
|
3838
|
+
status: "email_not_verified"
|
|
3839
|
+
});
|
|
3838
3840
|
}
|
|
3839
3841
|
if (await isMfaRequired?.(user, mfaContext)) {
|
|
3840
3842
|
const compatibilityLayer = await createSessionCompatibilityLayer({
|
|
@@ -3866,7 +3868,10 @@ var credentialsLogin = ({
|
|
|
3866
3868
|
user
|
|
3867
3869
|
});
|
|
3868
3870
|
await onCredentialsLoginSuccess?.({ user, userSessionId });
|
|
3869
|
-
return status("OK", {
|
|
3871
|
+
return status("OK", {
|
|
3872
|
+
passwordCompromised,
|
|
3873
|
+
status: "authenticated"
|
|
3874
|
+
});
|
|
3870
3875
|
}), {
|
|
3871
3876
|
body: t6.Object({ email: t6.String(), password: t6.String() }),
|
|
3872
3877
|
cookie: t6.Cookie({ user_session_id: userSessionIdTypebox })
|
|
@@ -4002,7 +4007,9 @@ var credentialsRegister = ({
|
|
|
4002
4007
|
user: created
|
|
4003
4008
|
});
|
|
4004
4009
|
if (requireEmailVerification) {
|
|
4005
|
-
return status("Created", {
|
|
4010
|
+
return status("Created", {
|
|
4011
|
+
status: "verification_required"
|
|
4012
|
+
});
|
|
4006
4013
|
}
|
|
4007
4014
|
const userSessionId = await promoteToSession({
|
|
4008
4015
|
authSessionStore,
|
|
@@ -4012,7 +4019,10 @@ var credentialsRegister = ({
|
|
|
4012
4019
|
sessionDurationMs,
|
|
4013
4020
|
user: created
|
|
4014
4021
|
});
|
|
4015
|
-
await onCredentialsLoginSuccess?.({
|
|
4022
|
+
await onCredentialsLoginSuccess?.({
|
|
4023
|
+
user: created,
|
|
4024
|
+
userSessionId
|
|
4025
|
+
});
|
|
4016
4026
|
return status("Created", { status: "authenticated" });
|
|
4017
4027
|
}), {
|
|
4018
4028
|
body: t8.Object({ email: t8.String(), password: t8.String() }, { additionalProperties: true }),
|
|
@@ -5349,7 +5359,9 @@ var buildIssuerMetadata = ({
|
|
|
5349
5359
|
display: configuration.display,
|
|
5350
5360
|
format: configuration.format,
|
|
5351
5361
|
order: configuration.order,
|
|
5352
|
-
proof_types_supported: {
|
|
5362
|
+
proof_types_supported: {
|
|
5363
|
+
jwt: { proof_signing_alg_values_supported: ["ES256"] }
|
|
5364
|
+
},
|
|
5353
5365
|
vct: configuration.vct
|
|
5354
5366
|
}
|
|
5355
5367
|
])),
|
|
@@ -5642,7 +5654,12 @@ var deliverLogoutToOne = async ({
|
|
|
5642
5654
|
userId
|
|
5643
5655
|
}) => {
|
|
5644
5656
|
try {
|
|
5645
|
-
await postLogoutToken({
|
|
5657
|
+
await postLogoutToken({
|
|
5658
|
+
endpointUrl,
|
|
5659
|
+
fetchImpl,
|
|
5660
|
+
logoutToken,
|
|
5661
|
+
timeoutMs
|
|
5662
|
+
});
|
|
5646
5663
|
} catch (error) {
|
|
5647
5664
|
const delivery = {
|
|
5648
5665
|
attempts: 1,
|
|
@@ -5971,7 +5988,9 @@ var registerClient = async ({
|
|
|
5971
5988
|
status: 400
|
|
5972
5989
|
};
|
|
5973
5990
|
}
|
|
5974
|
-
const decision = await onClientRegistration?.({
|
|
5991
|
+
const decision = await onClientRegistration?.({
|
|
5992
|
+
metadata
|
|
5993
|
+
}) ?? { allow: true };
|
|
5975
5994
|
if (!decision.allow) {
|
|
5976
5995
|
return {
|
|
5977
5996
|
body: {
|
|
@@ -6017,7 +6036,9 @@ var updateRegisteredClient = async ({
|
|
|
6017
6036
|
});
|
|
6018
6037
|
if (!authed)
|
|
6019
6038
|
return { body: { error: "invalid_token" }, status: 401 };
|
|
6020
|
-
const decision = await onClientRegistration?.({
|
|
6039
|
+
const decision = await onClientRegistration?.({
|
|
6040
|
+
metadata
|
|
6041
|
+
}) ?? { allow: true };
|
|
6021
6042
|
if (!decision.allow) {
|
|
6022
6043
|
return {
|
|
6023
6044
|
body: {
|
|
@@ -6482,7 +6503,12 @@ var oidcProviderRoutes = (config) => {
|
|
|
6482
6503
|
url.searchParams.set("state", query.state);
|
|
6483
6504
|
return redirectTo(url.toString());
|
|
6484
6505
|
};
|
|
6485
|
-
return new Elysia15().use(sessionStore()).get(authorizeRoute, async ({
|
|
6506
|
+
return new Elysia15().use(sessionStore()).get(authorizeRoute, async ({
|
|
6507
|
+
cookie: { user_session_id },
|
|
6508
|
+
query,
|
|
6509
|
+
request,
|
|
6510
|
+
store
|
|
6511
|
+
}) => {
|
|
6486
6512
|
let effectiveQuery = query;
|
|
6487
6513
|
if (query.request_uri !== undefined && config.pushedAuthorizationRequestStore !== undefined && query.client_id !== undefined) {
|
|
6488
6514
|
const pushed = await consumePushedRequest({
|
|
@@ -6533,7 +6559,10 @@ var oidcProviderRoutes = (config) => {
|
|
|
6533
6559
|
return jsonResponse({ error: "unsupported_response_mode" }, HTTP_BAD_REQUEST2);
|
|
6534
6560
|
}
|
|
6535
6561
|
const errorRedirect = (error) => {
|
|
6536
|
-
const params2 = {
|
|
6562
|
+
const params2 = {
|
|
6563
|
+
error,
|
|
6564
|
+
iss: issuer
|
|
6565
|
+
};
|
|
6537
6566
|
if (state !== undefined)
|
|
6538
6567
|
params2.state = state;
|
|
6539
6568
|
return respondToClient(redirectUri, responseMode, params2);
|
|
@@ -6917,11 +6946,7 @@ var oidcProviderRoutes = (config) => {
|
|
|
6917
6946
|
cookie: t12.Cookie({
|
|
6918
6947
|
user_session_id: t12.Optional(userSessionIdTypebox)
|
|
6919
6948
|
})
|
|
6920
|
-
}).get(endSessionRoute, async ({
|
|
6921
|
-
cookie: { user_session_id },
|
|
6922
|
-
query,
|
|
6923
|
-
store
|
|
6924
|
-
}) => handleEndSession({
|
|
6949
|
+
}).get(endSessionRoute, async ({ cookie: { user_session_id }, query, store }) => handleEndSession({
|
|
6925
6950
|
cookie: user_session_id,
|
|
6926
6951
|
inMemorySession: store.session,
|
|
6927
6952
|
query
|
|
@@ -6935,11 +6960,7 @@ var oidcProviderRoutes = (config) => {
|
|
|
6935
6960
|
post_logout_redirect_uri: t12.Optional(t12.String()),
|
|
6936
6961
|
state: t12.Optional(t12.String())
|
|
6937
6962
|
})
|
|
6938
|
-
}).post(endSessionRoute, async ({
|
|
6939
|
-
body,
|
|
6940
|
-
cookie: { user_session_id },
|
|
6941
|
-
store
|
|
6942
|
-
}) => handleEndSession({
|
|
6963
|
+
}).post(endSessionRoute, async ({ body, cookie: { user_session_id }, store }) => handleEndSession({
|
|
6943
6964
|
cookie: user_session_id,
|
|
6944
6965
|
inMemorySession: store.session,
|
|
6945
6966
|
query: body
|
|
@@ -10025,7 +10046,13 @@ var samlSsoRoutes = ({
|
|
|
10025
10046
|
}).get(sloRoute, async ({
|
|
10026
10047
|
cookie: { user_session_id },
|
|
10027
10048
|
params: { organizationId },
|
|
10028
|
-
query: {
|
|
10049
|
+
query: {
|
|
10050
|
+
RelayState,
|
|
10051
|
+
SAMLRequest,
|
|
10052
|
+
SAMLResponse,
|
|
10053
|
+
SigAlg,
|
|
10054
|
+
Signature
|
|
10055
|
+
},
|
|
10029
10056
|
redirect,
|
|
10030
10057
|
request,
|
|
10031
10058
|
status,
|
|
@@ -10611,7 +10638,7 @@ var createInMemoryVaultStore = () => {
|
|
|
10611
10638
|
}
|
|
10612
10639
|
};
|
|
10613
10640
|
};
|
|
10614
|
-
//
|
|
10641
|
+
// node_modules/drizzle-orm/entity.js
|
|
10615
10642
|
var entityKind = Symbol.for("drizzle:entityKind");
|
|
10616
10643
|
var hasOwnEntityKind = Symbol.for("drizzle:hasOwnEntityKind");
|
|
10617
10644
|
function is(value, type) {
|
|
@@ -10636,7 +10663,7 @@ function is(value, type) {
|
|
|
10636
10663
|
return false;
|
|
10637
10664
|
}
|
|
10638
10665
|
|
|
10639
|
-
//
|
|
10666
|
+
// node_modules/drizzle-orm/column.js
|
|
10640
10667
|
class Column {
|
|
10641
10668
|
constructor(table, config) {
|
|
10642
10669
|
this.table = table;
|
|
@@ -10686,7 +10713,7 @@ class Column {
|
|
|
10686
10713
|
}
|
|
10687
10714
|
}
|
|
10688
10715
|
|
|
10689
|
-
//
|
|
10716
|
+
// node_modules/drizzle-orm/column-builder.js
|
|
10690
10717
|
class ColumnBuilder {
|
|
10691
10718
|
static [entityKind] = "ColumnBuilder";
|
|
10692
10719
|
config;
|
|
@@ -10742,10 +10769,10 @@ class ColumnBuilder {
|
|
|
10742
10769
|
}
|
|
10743
10770
|
}
|
|
10744
10771
|
|
|
10745
|
-
//
|
|
10772
|
+
// node_modules/drizzle-orm/table.utils.js
|
|
10746
10773
|
var TableName = Symbol.for("drizzle:Name");
|
|
10747
10774
|
|
|
10748
|
-
//
|
|
10775
|
+
// node_modules/drizzle-orm/pg-core/foreign-keys.js
|
|
10749
10776
|
class ForeignKeyBuilder {
|
|
10750
10777
|
static [entityKind] = "PgForeignKeyBuilder";
|
|
10751
10778
|
reference;
|
|
@@ -10799,12 +10826,12 @@ class ForeignKey {
|
|
|
10799
10826
|
}
|
|
10800
10827
|
}
|
|
10801
10828
|
|
|
10802
|
-
//
|
|
10829
|
+
// node_modules/drizzle-orm/tracing-utils.js
|
|
10803
10830
|
function iife(fn, ...args) {
|
|
10804
10831
|
return fn(...args);
|
|
10805
10832
|
}
|
|
10806
10833
|
|
|
10807
|
-
//
|
|
10834
|
+
// node_modules/drizzle-orm/pg-core/unique-constraint.js
|
|
10808
10835
|
function uniqueKeyName(table, columns) {
|
|
10809
10836
|
return `${table[TableName]}_${columns.join("_")}_unique`;
|
|
10810
10837
|
}
|
|
@@ -10841,7 +10868,7 @@ class UniqueConstraint {
|
|
|
10841
10868
|
}
|
|
10842
10869
|
}
|
|
10843
10870
|
|
|
10844
|
-
//
|
|
10871
|
+
// node_modules/drizzle-orm/pg-core/utils/array.js
|
|
10845
10872
|
function parsePgArrayValue(arrayString, startFrom, inQuotes) {
|
|
10846
10873
|
for (let i = startFrom;i < arrayString.length; i++) {
|
|
10847
10874
|
const char = arrayString[i];
|
|
@@ -10917,7 +10944,7 @@ function makePgArray(array) {
|
|
|
10917
10944
|
}).join(",")}}`;
|
|
10918
10945
|
}
|
|
10919
10946
|
|
|
10920
|
-
//
|
|
10947
|
+
// node_modules/drizzle-orm/pg-core/columns/common.js
|
|
10921
10948
|
class PgColumnBuilder extends ColumnBuilder {
|
|
10922
10949
|
foreignKeyConfigs = [];
|
|
10923
10950
|
static [entityKind] = "PgColumnBuilder";
|
|
@@ -11050,7 +11077,7 @@ class PgArray extends PgColumn {
|
|
|
11050
11077
|
}
|
|
11051
11078
|
}
|
|
11052
11079
|
|
|
11053
|
-
//
|
|
11080
|
+
// node_modules/drizzle-orm/pg-core/columns/enum.js
|
|
11054
11081
|
var isPgEnumSym = Symbol.for("drizzle:isPgEnum");
|
|
11055
11082
|
function isPgEnum(obj) {
|
|
11056
11083
|
return !!obj && typeof obj === "function" && isPgEnumSym in obj && obj[isPgEnumSym] === true;
|
|
@@ -11068,7 +11095,7 @@ class PgEnumColumn extends PgColumn {
|
|
|
11068
11095
|
}
|
|
11069
11096
|
}
|
|
11070
11097
|
|
|
11071
|
-
//
|
|
11098
|
+
// node_modules/drizzle-orm/subquery.js
|
|
11072
11099
|
class Subquery {
|
|
11073
11100
|
static [entityKind] = "Subquery";
|
|
11074
11101
|
constructor(sql, selection, alias, isWith = false) {
|
|
@@ -11086,10 +11113,10 @@ class WithSubquery extends Subquery {
|
|
|
11086
11113
|
static [entityKind] = "WithSubquery";
|
|
11087
11114
|
}
|
|
11088
11115
|
|
|
11089
|
-
//
|
|
11116
|
+
// node_modules/drizzle-orm/version.js
|
|
11090
11117
|
var version = "0.41.0";
|
|
11091
11118
|
|
|
11092
|
-
//
|
|
11119
|
+
// node_modules/drizzle-orm/tracing.js
|
|
11093
11120
|
var otel;
|
|
11094
11121
|
var rawTracer;
|
|
11095
11122
|
var tracer = {
|
|
@@ -11116,10 +11143,10 @@ var tracer = {
|
|
|
11116
11143
|
}
|
|
11117
11144
|
};
|
|
11118
11145
|
|
|
11119
|
-
//
|
|
11146
|
+
// node_modules/drizzle-orm/view-common.js
|
|
11120
11147
|
var ViewBaseConfig = Symbol.for("drizzle:ViewBaseConfig");
|
|
11121
11148
|
|
|
11122
|
-
//
|
|
11149
|
+
// node_modules/drizzle-orm/table.js
|
|
11123
11150
|
var Schema = Symbol.for("drizzle:Schema");
|
|
11124
11151
|
var Columns = Symbol.for("drizzle:Columns");
|
|
11125
11152
|
var ExtraConfigColumns = Symbol.for("drizzle:ExtraConfigColumns");
|
|
@@ -11163,7 +11190,7 @@ function getTableUniqueName(table) {
|
|
|
11163
11190
|
return `${table[Schema] ?? "public"}.${table[TableName]}`;
|
|
11164
11191
|
}
|
|
11165
11192
|
|
|
11166
|
-
//
|
|
11193
|
+
// node_modules/drizzle-orm/sql/sql.js
|
|
11167
11194
|
function isSQLWrapper(value) {
|
|
11168
11195
|
return value !== null && value !== undefined && typeof value.getSQL === "function";
|
|
11169
11196
|
}
|
|
@@ -11536,7 +11563,7 @@ Subquery.prototype.getSQL = function() {
|
|
|
11536
11563
|
return new SQL([this]);
|
|
11537
11564
|
};
|
|
11538
11565
|
|
|
11539
|
-
//
|
|
11566
|
+
// node_modules/drizzle-orm/alias.js
|
|
11540
11567
|
class ColumnAliasProxyHandler {
|
|
11541
11568
|
constructor(table) {
|
|
11542
11569
|
this.table = table;
|
|
@@ -11615,7 +11642,7 @@ function mapColumnsInSQLToAlias(query, alias) {
|
|
|
11615
11642
|
}));
|
|
11616
11643
|
}
|
|
11617
11644
|
|
|
11618
|
-
//
|
|
11645
|
+
// node_modules/drizzle-orm/errors.js
|
|
11619
11646
|
class DrizzleError extends Error {
|
|
11620
11647
|
static [entityKind] = "DrizzleError";
|
|
11621
11648
|
constructor({ message, cause }) {
|
|
@@ -11625,7 +11652,7 @@ class DrizzleError extends Error {
|
|
|
11625
11652
|
}
|
|
11626
11653
|
}
|
|
11627
11654
|
|
|
11628
|
-
//
|
|
11655
|
+
// node_modules/drizzle-orm/sql/expressions/conditions.js
|
|
11629
11656
|
function bindIfParam(value, column) {
|
|
11630
11657
|
if (isDriverValueEncoder(column) && !isSQLWrapper(value) && !is(value, Param) && !is(value, Placeholder) && !is(value, Column) && !is(value, Table) && !is(value, View)) {
|
|
11631
11658
|
return new Param(value, column);
|
|
@@ -11730,7 +11757,7 @@ function notIlike(column, value) {
|
|
|
11730
11757
|
return sql`${column} not ilike ${value}`;
|
|
11731
11758
|
}
|
|
11732
11759
|
|
|
11733
|
-
//
|
|
11760
|
+
// node_modules/drizzle-orm/sql/expressions/select.js
|
|
11734
11761
|
function asc(column) {
|
|
11735
11762
|
return sql`${column} asc`;
|
|
11736
11763
|
}
|
|
@@ -11738,7 +11765,7 @@ function desc(column) {
|
|
|
11738
11765
|
return sql`${column} desc`;
|
|
11739
11766
|
}
|
|
11740
11767
|
|
|
11741
|
-
//
|
|
11768
|
+
// node_modules/drizzle-orm/logger.js
|
|
11742
11769
|
class ConsoleLogWriter {
|
|
11743
11770
|
static [entityKind] = "ConsoleLogWriter";
|
|
11744
11771
|
write(message) {
|
|
@@ -11770,7 +11797,7 @@ class NoopLogger {
|
|
|
11770
11797
|
logQuery() {}
|
|
11771
11798
|
}
|
|
11772
11799
|
|
|
11773
|
-
//
|
|
11800
|
+
// node_modules/drizzle-orm/query-promise.js
|
|
11774
11801
|
class QueryPromise {
|
|
11775
11802
|
static [entityKind] = "QueryPromise";
|
|
11776
11803
|
[Symbol.toStringTag] = "QueryPromise";
|
|
@@ -11791,7 +11818,7 @@ class QueryPromise {
|
|
|
11791
11818
|
}
|
|
11792
11819
|
}
|
|
11793
11820
|
|
|
11794
|
-
//
|
|
11821
|
+
// node_modules/drizzle-orm/utils.js
|
|
11795
11822
|
function mapResultRow(columns, row, joinsNotNullableMap) {
|
|
11796
11823
|
const nullifyMap = {};
|
|
11797
11824
|
const result = columns.reduce((result2, { path, field }, columnIndex) => {
|
|
@@ -11942,7 +11969,7 @@ function isConfig(data) {
|
|
|
11942
11969
|
return false;
|
|
11943
11970
|
}
|
|
11944
11971
|
|
|
11945
|
-
//
|
|
11972
|
+
// node_modules/drizzle-orm/pg-core/columns/int.common.js
|
|
11946
11973
|
class PgIntColumnBaseBuilder extends PgColumnBuilder {
|
|
11947
11974
|
static [entityKind] = "PgIntColumnBaseBuilder";
|
|
11948
11975
|
generatedAlwaysAsIdentity(sequence) {
|
|
@@ -11981,7 +12008,7 @@ class PgIntColumnBaseBuilder extends PgColumnBuilder {
|
|
|
11981
12008
|
}
|
|
11982
12009
|
}
|
|
11983
12010
|
|
|
11984
|
-
//
|
|
12011
|
+
// node_modules/drizzle-orm/pg-core/columns/bigint.js
|
|
11985
12012
|
class PgBigInt53Builder extends PgIntColumnBaseBuilder {
|
|
11986
12013
|
static [entityKind] = "PgBigInt53Builder";
|
|
11987
12014
|
constructor(name) {
|
|
@@ -12032,7 +12059,7 @@ function bigint(a, b) {
|
|
|
12032
12059
|
return new PgBigInt64Builder(name);
|
|
12033
12060
|
}
|
|
12034
12061
|
|
|
12035
|
-
//
|
|
12062
|
+
// node_modules/drizzle-orm/pg-core/columns/bigserial.js
|
|
12036
12063
|
class PgBigSerial53Builder extends PgColumnBuilder {
|
|
12037
12064
|
static [entityKind] = "PgBigSerial53Builder";
|
|
12038
12065
|
constructor(name) {
|
|
@@ -12086,7 +12113,7 @@ function bigserial(a, b) {
|
|
|
12086
12113
|
return new PgBigSerial64Builder(name);
|
|
12087
12114
|
}
|
|
12088
12115
|
|
|
12089
|
-
//
|
|
12116
|
+
// node_modules/drizzle-orm/pg-core/columns/boolean.js
|
|
12090
12117
|
class PgBooleanBuilder extends PgColumnBuilder {
|
|
12091
12118
|
static [entityKind] = "PgBooleanBuilder";
|
|
12092
12119
|
constructor(name) {
|
|
@@ -12107,7 +12134,7 @@ function boolean(name) {
|
|
|
12107
12134
|
return new PgBooleanBuilder(name ?? "");
|
|
12108
12135
|
}
|
|
12109
12136
|
|
|
12110
|
-
//
|
|
12137
|
+
// node_modules/drizzle-orm/pg-core/columns/char.js
|
|
12111
12138
|
class PgCharBuilder extends PgColumnBuilder {
|
|
12112
12139
|
static [entityKind] = "PgCharBuilder";
|
|
12113
12140
|
constructor(name, config) {
|
|
@@ -12133,7 +12160,7 @@ function char(a, b = {}) {
|
|
|
12133
12160
|
return new PgCharBuilder(name, config);
|
|
12134
12161
|
}
|
|
12135
12162
|
|
|
12136
|
-
//
|
|
12163
|
+
// node_modules/drizzle-orm/pg-core/columns/cidr.js
|
|
12137
12164
|
class PgCidrBuilder extends PgColumnBuilder {
|
|
12138
12165
|
static [entityKind] = "PgCidrBuilder";
|
|
12139
12166
|
constructor(name) {
|
|
@@ -12154,7 +12181,7 @@ function cidr(name) {
|
|
|
12154
12181
|
return new PgCidrBuilder(name ?? "");
|
|
12155
12182
|
}
|
|
12156
12183
|
|
|
12157
|
-
//
|
|
12184
|
+
// node_modules/drizzle-orm/pg-core/columns/custom.js
|
|
12158
12185
|
class PgCustomColumnBuilder extends PgColumnBuilder {
|
|
12159
12186
|
static [entityKind] = "PgCustomColumnBuilder";
|
|
12160
12187
|
constructor(name, fieldConfig, customTypeParams) {
|
|
@@ -12195,7 +12222,7 @@ function customType(customTypeParams) {
|
|
|
12195
12222
|
};
|
|
12196
12223
|
}
|
|
12197
12224
|
|
|
12198
|
-
//
|
|
12225
|
+
// node_modules/drizzle-orm/pg-core/columns/date.common.js
|
|
12199
12226
|
class PgDateColumnBaseBuilder extends PgColumnBuilder {
|
|
12200
12227
|
static [entityKind] = "PgDateColumnBaseBuilder";
|
|
12201
12228
|
defaultNow() {
|
|
@@ -12203,7 +12230,7 @@ class PgDateColumnBaseBuilder extends PgColumnBuilder {
|
|
|
12203
12230
|
}
|
|
12204
12231
|
}
|
|
12205
12232
|
|
|
12206
|
-
//
|
|
12233
|
+
// node_modules/drizzle-orm/pg-core/columns/date.js
|
|
12207
12234
|
class PgDateBuilder extends PgDateColumnBaseBuilder {
|
|
12208
12235
|
static [entityKind] = "PgDateBuilder";
|
|
12209
12236
|
constructor(name) {
|
|
@@ -12251,7 +12278,7 @@ function date(a, b) {
|
|
|
12251
12278
|
return new PgDateStringBuilder(name);
|
|
12252
12279
|
}
|
|
12253
12280
|
|
|
12254
|
-
//
|
|
12281
|
+
// node_modules/drizzle-orm/pg-core/columns/double-precision.js
|
|
12255
12282
|
class PgDoublePrecisionBuilder extends PgColumnBuilder {
|
|
12256
12283
|
static [entityKind] = "PgDoublePrecisionBuilder";
|
|
12257
12284
|
constructor(name) {
|
|
@@ -12278,7 +12305,7 @@ function doublePrecision(name) {
|
|
|
12278
12305
|
return new PgDoublePrecisionBuilder(name ?? "");
|
|
12279
12306
|
}
|
|
12280
12307
|
|
|
12281
|
-
//
|
|
12308
|
+
// node_modules/drizzle-orm/pg-core/columns/inet.js
|
|
12282
12309
|
class PgInetBuilder extends PgColumnBuilder {
|
|
12283
12310
|
static [entityKind] = "PgInetBuilder";
|
|
12284
12311
|
constructor(name) {
|
|
@@ -12299,7 +12326,7 @@ function inet(name) {
|
|
|
12299
12326
|
return new PgInetBuilder(name ?? "");
|
|
12300
12327
|
}
|
|
12301
12328
|
|
|
12302
|
-
//
|
|
12329
|
+
// node_modules/drizzle-orm/pg-core/columns/integer.js
|
|
12303
12330
|
class PgIntegerBuilder extends PgIntColumnBaseBuilder {
|
|
12304
12331
|
static [entityKind] = "PgIntegerBuilder";
|
|
12305
12332
|
constructor(name) {
|
|
@@ -12326,7 +12353,7 @@ function integer(name) {
|
|
|
12326
12353
|
return new PgIntegerBuilder(name ?? "");
|
|
12327
12354
|
}
|
|
12328
12355
|
|
|
12329
|
-
//
|
|
12356
|
+
// node_modules/drizzle-orm/pg-core/columns/interval.js
|
|
12330
12357
|
class PgIntervalBuilder extends PgColumnBuilder {
|
|
12331
12358
|
static [entityKind] = "PgIntervalBuilder";
|
|
12332
12359
|
constructor(name, intervalConfig) {
|
|
@@ -12353,7 +12380,7 @@ function interval(a, b = {}) {
|
|
|
12353
12380
|
return new PgIntervalBuilder(name, config);
|
|
12354
12381
|
}
|
|
12355
12382
|
|
|
12356
|
-
//
|
|
12383
|
+
// node_modules/drizzle-orm/pg-core/columns/json.js
|
|
12357
12384
|
class PgJsonBuilder extends PgColumnBuilder {
|
|
12358
12385
|
static [entityKind] = "PgJsonBuilder";
|
|
12359
12386
|
constructor(name) {
|
|
@@ -12390,7 +12417,7 @@ function json(name) {
|
|
|
12390
12417
|
return new PgJsonBuilder(name ?? "");
|
|
12391
12418
|
}
|
|
12392
12419
|
|
|
12393
|
-
//
|
|
12420
|
+
// node_modules/drizzle-orm/pg-core/columns/jsonb.js
|
|
12394
12421
|
class PgJsonbBuilder extends PgColumnBuilder {
|
|
12395
12422
|
static [entityKind] = "PgJsonbBuilder";
|
|
12396
12423
|
constructor(name) {
|
|
@@ -12427,7 +12454,7 @@ function jsonb(name) {
|
|
|
12427
12454
|
return new PgJsonbBuilder(name ?? "");
|
|
12428
12455
|
}
|
|
12429
12456
|
|
|
12430
|
-
//
|
|
12457
|
+
// node_modules/drizzle-orm/pg-core/columns/line.js
|
|
12431
12458
|
class PgLineBuilder extends PgColumnBuilder {
|
|
12432
12459
|
static [entityKind] = "PgLineBuilder";
|
|
12433
12460
|
constructor(name) {
|
|
@@ -12483,7 +12510,7 @@ function line(a, b) {
|
|
|
12483
12510
|
return new PgLineABCBuilder(name);
|
|
12484
12511
|
}
|
|
12485
12512
|
|
|
12486
|
-
//
|
|
12513
|
+
// node_modules/drizzle-orm/pg-core/columns/macaddr.js
|
|
12487
12514
|
class PgMacaddrBuilder extends PgColumnBuilder {
|
|
12488
12515
|
static [entityKind] = "PgMacaddrBuilder";
|
|
12489
12516
|
constructor(name) {
|
|
@@ -12504,7 +12531,7 @@ function macaddr(name) {
|
|
|
12504
12531
|
return new PgMacaddrBuilder(name ?? "");
|
|
12505
12532
|
}
|
|
12506
12533
|
|
|
12507
|
-
//
|
|
12534
|
+
// node_modules/drizzle-orm/pg-core/columns/macaddr8.js
|
|
12508
12535
|
class PgMacaddr8Builder extends PgColumnBuilder {
|
|
12509
12536
|
static [entityKind] = "PgMacaddr8Builder";
|
|
12510
12537
|
constructor(name) {
|
|
@@ -12525,7 +12552,7 @@ function macaddr8(name) {
|
|
|
12525
12552
|
return new PgMacaddr8Builder(name ?? "");
|
|
12526
12553
|
}
|
|
12527
12554
|
|
|
12528
|
-
//
|
|
12555
|
+
// node_modules/drizzle-orm/pg-core/columns/numeric.js
|
|
12529
12556
|
class PgNumericBuilder extends PgColumnBuilder {
|
|
12530
12557
|
static [entityKind] = "PgNumericBuilder";
|
|
12531
12558
|
constructor(name, precision, scale) {
|
|
@@ -12640,7 +12667,7 @@ function numeric(a, b) {
|
|
|
12640
12667
|
return mode === "number" ? new PgNumericNumberBuilder(name, config?.precision, config?.scale) : mode === "bigint" ? new PgNumericBigIntBuilder(name, config?.precision, config?.scale) : new PgNumericBuilder(name, config?.precision, config?.scale);
|
|
12641
12668
|
}
|
|
12642
12669
|
|
|
12643
|
-
//
|
|
12670
|
+
// node_modules/drizzle-orm/pg-core/columns/point.js
|
|
12644
12671
|
class PgPointTupleBuilder extends PgColumnBuilder {
|
|
12645
12672
|
static [entityKind] = "PgPointTupleBuilder";
|
|
12646
12673
|
constructor(name) {
|
|
@@ -12702,7 +12729,7 @@ function point(a, b) {
|
|
|
12702
12729
|
return new PgPointObjectBuilder(name);
|
|
12703
12730
|
}
|
|
12704
12731
|
|
|
12705
|
-
//
|
|
12732
|
+
// node_modules/drizzle-orm/pg-core/columns/postgis_extension/utils.js
|
|
12706
12733
|
function hexToBytes(hex) {
|
|
12707
12734
|
const bytes = [];
|
|
12708
12735
|
for (let c = 0;c < hex.length; c += 2) {
|
|
@@ -12741,7 +12768,7 @@ function parseEWKB(hex) {
|
|
|
12741
12768
|
throw new Error("Unsupported geometry type");
|
|
12742
12769
|
}
|
|
12743
12770
|
|
|
12744
|
-
//
|
|
12771
|
+
// node_modules/drizzle-orm/pg-core/columns/postgis_extension/geometry.js
|
|
12745
12772
|
class PgGeometryBuilder extends PgColumnBuilder {
|
|
12746
12773
|
static [entityKind] = "PgGeometryBuilder";
|
|
12747
12774
|
constructor(name) {
|
|
@@ -12796,7 +12823,7 @@ function geometry(a, b) {
|
|
|
12796
12823
|
return new PgGeometryObjectBuilder(name);
|
|
12797
12824
|
}
|
|
12798
12825
|
|
|
12799
|
-
//
|
|
12826
|
+
// node_modules/drizzle-orm/pg-core/columns/real.js
|
|
12800
12827
|
class PgRealBuilder extends PgColumnBuilder {
|
|
12801
12828
|
static [entityKind] = "PgRealBuilder";
|
|
12802
12829
|
constructor(name, length) {
|
|
@@ -12827,7 +12854,7 @@ function real(name) {
|
|
|
12827
12854
|
return new PgRealBuilder(name ?? "");
|
|
12828
12855
|
}
|
|
12829
12856
|
|
|
12830
|
-
//
|
|
12857
|
+
// node_modules/drizzle-orm/pg-core/columns/serial.js
|
|
12831
12858
|
class PgSerialBuilder extends PgColumnBuilder {
|
|
12832
12859
|
static [entityKind] = "PgSerialBuilder";
|
|
12833
12860
|
constructor(name) {
|
|
@@ -12850,7 +12877,7 @@ function serial(name) {
|
|
|
12850
12877
|
return new PgSerialBuilder(name ?? "");
|
|
12851
12878
|
}
|
|
12852
12879
|
|
|
12853
|
-
//
|
|
12880
|
+
// node_modules/drizzle-orm/pg-core/columns/smallint.js
|
|
12854
12881
|
class PgSmallIntBuilder extends PgIntColumnBaseBuilder {
|
|
12855
12882
|
static [entityKind] = "PgSmallIntBuilder";
|
|
12856
12883
|
constructor(name) {
|
|
@@ -12877,7 +12904,7 @@ function smallint(name) {
|
|
|
12877
12904
|
return new PgSmallIntBuilder(name ?? "");
|
|
12878
12905
|
}
|
|
12879
12906
|
|
|
12880
|
-
//
|
|
12907
|
+
// node_modules/drizzle-orm/pg-core/columns/smallserial.js
|
|
12881
12908
|
class PgSmallSerialBuilder extends PgColumnBuilder {
|
|
12882
12909
|
static [entityKind] = "PgSmallSerialBuilder";
|
|
12883
12910
|
constructor(name) {
|
|
@@ -12900,7 +12927,7 @@ function smallserial(name) {
|
|
|
12900
12927
|
return new PgSmallSerialBuilder(name ?? "");
|
|
12901
12928
|
}
|
|
12902
12929
|
|
|
12903
|
-
//
|
|
12930
|
+
// node_modules/drizzle-orm/pg-core/columns/text.js
|
|
12904
12931
|
class PgTextBuilder extends PgColumnBuilder {
|
|
12905
12932
|
static [entityKind] = "PgTextBuilder";
|
|
12906
12933
|
constructor(name, config) {
|
|
@@ -12924,7 +12951,7 @@ function text(a, b = {}) {
|
|
|
12924
12951
|
return new PgTextBuilder(name, config);
|
|
12925
12952
|
}
|
|
12926
12953
|
|
|
12927
|
-
//
|
|
12954
|
+
// node_modules/drizzle-orm/pg-core/columns/time.js
|
|
12928
12955
|
class PgTimeBuilder extends PgDateColumnBaseBuilder {
|
|
12929
12956
|
constructor(name, withTimezone, precision) {
|
|
12930
12957
|
super(name, "string", "PgTime");
|
|
@@ -12958,7 +12985,7 @@ function time(a, b = {}) {
|
|
|
12958
12985
|
return new PgTimeBuilder(name, config.withTimezone ?? false, config.precision);
|
|
12959
12986
|
}
|
|
12960
12987
|
|
|
12961
|
-
//
|
|
12988
|
+
// node_modules/drizzle-orm/pg-core/columns/timestamp.js
|
|
12962
12989
|
class PgTimestampBuilder extends PgDateColumnBaseBuilder {
|
|
12963
12990
|
static [entityKind] = "PgTimestampBuilder";
|
|
12964
12991
|
constructor(name, withTimezone, precision) {
|
|
@@ -13026,7 +13053,7 @@ function timestamp(a, b = {}) {
|
|
|
13026
13053
|
return new PgTimestampBuilder(name, config?.withTimezone ?? false, config?.precision);
|
|
13027
13054
|
}
|
|
13028
13055
|
|
|
13029
|
-
//
|
|
13056
|
+
// node_modules/drizzle-orm/pg-core/columns/uuid.js
|
|
13030
13057
|
class PgUUIDBuilder extends PgColumnBuilder {
|
|
13031
13058
|
static [entityKind] = "PgUUIDBuilder";
|
|
13032
13059
|
constructor(name) {
|
|
@@ -13050,7 +13077,7 @@ function uuid(name) {
|
|
|
13050
13077
|
return new PgUUIDBuilder(name ?? "");
|
|
13051
13078
|
}
|
|
13052
13079
|
|
|
13053
|
-
//
|
|
13080
|
+
// node_modules/drizzle-orm/pg-core/columns/varchar.js
|
|
13054
13081
|
class PgVarcharBuilder extends PgColumnBuilder {
|
|
13055
13082
|
static [entityKind] = "PgVarcharBuilder";
|
|
13056
13083
|
constructor(name, config) {
|
|
@@ -13076,7 +13103,7 @@ function varchar(a, b = {}) {
|
|
|
13076
13103
|
return new PgVarcharBuilder(name, config);
|
|
13077
13104
|
}
|
|
13078
13105
|
|
|
13079
|
-
//
|
|
13106
|
+
// node_modules/drizzle-orm/pg-core/columns/vector_extension/bit.js
|
|
13080
13107
|
class PgBinaryVectorBuilder extends PgColumnBuilder {
|
|
13081
13108
|
static [entityKind] = "PgBinaryVectorBuilder";
|
|
13082
13109
|
constructor(name, config) {
|
|
@@ -13100,7 +13127,7 @@ function bit(a, b) {
|
|
|
13100
13127
|
return new PgBinaryVectorBuilder(name, config);
|
|
13101
13128
|
}
|
|
13102
13129
|
|
|
13103
|
-
//
|
|
13130
|
+
// node_modules/drizzle-orm/pg-core/columns/vector_extension/halfvec.js
|
|
13104
13131
|
class PgHalfVectorBuilder extends PgColumnBuilder {
|
|
13105
13132
|
static [entityKind] = "PgHalfVectorBuilder";
|
|
13106
13133
|
constructor(name, config) {
|
|
@@ -13130,7 +13157,7 @@ function halfvec(a, b) {
|
|
|
13130
13157
|
return new PgHalfVectorBuilder(name, config);
|
|
13131
13158
|
}
|
|
13132
13159
|
|
|
13133
|
-
//
|
|
13160
|
+
// node_modules/drizzle-orm/pg-core/columns/vector_extension/sparsevec.js
|
|
13134
13161
|
class PgSparseVectorBuilder extends PgColumnBuilder {
|
|
13135
13162
|
static [entityKind] = "PgSparseVectorBuilder";
|
|
13136
13163
|
constructor(name, config) {
|
|
@@ -13154,7 +13181,7 @@ function sparsevec(a, b) {
|
|
|
13154
13181
|
return new PgSparseVectorBuilder(name, config);
|
|
13155
13182
|
}
|
|
13156
13183
|
|
|
13157
|
-
//
|
|
13184
|
+
// node_modules/drizzle-orm/pg-core/columns/vector_extension/vector.js
|
|
13158
13185
|
class PgVectorBuilder extends PgColumnBuilder {
|
|
13159
13186
|
static [entityKind] = "PgVectorBuilder";
|
|
13160
13187
|
constructor(name, config) {
|
|
@@ -13184,7 +13211,7 @@ function vector(a, b) {
|
|
|
13184
13211
|
return new PgVectorBuilder(name, config);
|
|
13185
13212
|
}
|
|
13186
13213
|
|
|
13187
|
-
//
|
|
13214
|
+
// node_modules/drizzle-orm/pg-core/columns/all.js
|
|
13188
13215
|
function getPgColumnBuilders() {
|
|
13189
13216
|
return {
|
|
13190
13217
|
bigint,
|
|
@@ -13222,7 +13249,7 @@ function getPgColumnBuilders() {
|
|
|
13222
13249
|
};
|
|
13223
13250
|
}
|
|
13224
13251
|
|
|
13225
|
-
//
|
|
13252
|
+
// node_modules/drizzle-orm/pg-core/table.js
|
|
13226
13253
|
var InlineForeignKeys = Symbol.for("drizzle:PgInlineForeignKeys");
|
|
13227
13254
|
var EnableRLS = Symbol.for("drizzle:EnableRLS");
|
|
13228
13255
|
|
|
@@ -13270,7 +13297,7 @@ var pgTable = (name, columns, extraConfig) => {
|
|
|
13270
13297
|
return pgTableWithSchema(name, columns, extraConfig, undefined);
|
|
13271
13298
|
};
|
|
13272
13299
|
|
|
13273
|
-
//
|
|
13300
|
+
// node_modules/drizzle-orm/pg-core/primary-keys.js
|
|
13274
13301
|
function primaryKey(...config) {
|
|
13275
13302
|
if (config[0].columns) {
|
|
13276
13303
|
return new PrimaryKeyBuilder(config[0].columns, config[0].name);
|
|
@@ -13305,7 +13332,7 @@ class PrimaryKey {
|
|
|
13305
13332
|
}
|
|
13306
13333
|
}
|
|
13307
13334
|
|
|
13308
|
-
//
|
|
13335
|
+
// node_modules/drizzle-orm/relations.js
|
|
13309
13336
|
class Relation {
|
|
13310
13337
|
constructor(sourceTable, referencedTable, relationName) {
|
|
13311
13338
|
this.sourceTable = sourceTable;
|
|
@@ -13525,7 +13552,7 @@ function mapRelationalRow(tablesConfig, tableConfig, row, buildQueryResultSelect
|
|
|
13525
13552
|
return result;
|
|
13526
13553
|
}
|
|
13527
13554
|
|
|
13528
|
-
//
|
|
13555
|
+
// node_modules/drizzle-orm/pg-core/checks.js
|
|
13529
13556
|
class CheckBuilder {
|
|
13530
13557
|
constructor(name, value) {
|
|
13531
13558
|
this.name = name;
|
|
@@ -13549,7 +13576,7 @@ class Check {
|
|
|
13549
13576
|
value;
|
|
13550
13577
|
}
|
|
13551
13578
|
|
|
13552
|
-
//
|
|
13579
|
+
// node_modules/drizzle-orm/selection-proxy.js
|
|
13553
13580
|
class SelectionProxyHandler {
|
|
13554
13581
|
static [entityKind] = "SelectionProxyHandler";
|
|
13555
13582
|
config;
|
|
@@ -13601,7 +13628,7 @@ class SelectionProxyHandler {
|
|
|
13601
13628
|
}
|
|
13602
13629
|
}
|
|
13603
13630
|
|
|
13604
|
-
//
|
|
13631
|
+
// node_modules/drizzle-orm/pg-core/query-builders/delete.js
|
|
13605
13632
|
class PgDeleteBase extends QueryPromise {
|
|
13606
13633
|
constructor(table, session, dialect, withList) {
|
|
13607
13634
|
super();
|
|
@@ -13657,7 +13684,7 @@ class PgDeleteBase extends QueryPromise {
|
|
|
13657
13684
|
}
|
|
13658
13685
|
}
|
|
13659
13686
|
|
|
13660
|
-
//
|
|
13687
|
+
// node_modules/drizzle-orm/casing.js
|
|
13661
13688
|
function toSnakeCase(input) {
|
|
13662
13689
|
const words = input.replace(/['\u2019]/g, "").match(/[\da-z]+|[A-Z]+(?![a-z])|[A-Z][\da-z]+/g) ?? [];
|
|
13663
13690
|
return words.map((word) => word.toLowerCase()).join("_");
|
|
@@ -13710,12 +13737,12 @@ class CasingCache {
|
|
|
13710
13737
|
}
|
|
13711
13738
|
}
|
|
13712
13739
|
|
|
13713
|
-
//
|
|
13740
|
+
// node_modules/drizzle-orm/pg-core/view-base.js
|
|
13714
13741
|
class PgViewBase extends View {
|
|
13715
13742
|
static [entityKind] = "PgViewBase";
|
|
13716
13743
|
}
|
|
13717
13744
|
|
|
13718
|
-
//
|
|
13745
|
+
// node_modules/drizzle-orm/pg-core/dialect.js
|
|
13719
13746
|
class PgDialect {
|
|
13720
13747
|
static [entityKind] = "PgDialect";
|
|
13721
13748
|
casing;
|
|
@@ -14272,7 +14299,7 @@ class PgDialect {
|
|
|
14272
14299
|
}
|
|
14273
14300
|
}
|
|
14274
14301
|
|
|
14275
|
-
//
|
|
14302
|
+
// node_modules/drizzle-orm/query-builders/query-builder.js
|
|
14276
14303
|
class TypedQueryBuilder {
|
|
14277
14304
|
static [entityKind] = "TypedQueryBuilder";
|
|
14278
14305
|
getSelectedFields() {
|
|
@@ -14280,7 +14307,7 @@ class TypedQueryBuilder {
|
|
|
14280
14307
|
}
|
|
14281
14308
|
}
|
|
14282
14309
|
|
|
14283
|
-
//
|
|
14310
|
+
// node_modules/drizzle-orm/pg-core/query-builders/select.js
|
|
14284
14311
|
class PgSelectBuilder {
|
|
14285
14312
|
static [entityKind] = "PgSelectBuilder";
|
|
14286
14313
|
fields;
|
|
@@ -14569,7 +14596,7 @@ var intersectAll = createSetOperator("intersect", true);
|
|
|
14569
14596
|
var except = createSetOperator("except", false);
|
|
14570
14597
|
var exceptAll = createSetOperator("except", true);
|
|
14571
14598
|
|
|
14572
|
-
//
|
|
14599
|
+
// node_modules/drizzle-orm/pg-core/query-builders/query-builder.js
|
|
14573
14600
|
class QueryBuilder {
|
|
14574
14601
|
static [entityKind] = "PgQueryBuilder";
|
|
14575
14602
|
dialect;
|
|
@@ -14647,7 +14674,7 @@ class QueryBuilder {
|
|
|
14647
14674
|
}
|
|
14648
14675
|
}
|
|
14649
14676
|
|
|
14650
|
-
//
|
|
14677
|
+
// node_modules/drizzle-orm/pg-core/query-builders/insert.js
|
|
14651
14678
|
class PgInsertBuilder {
|
|
14652
14679
|
constructor(table, session, dialect, withList, overridingSystemValue_) {
|
|
14653
14680
|
this.table = table;
|
|
@@ -14766,7 +14793,7 @@ class PgInsertBase extends QueryPromise {
|
|
|
14766
14793
|
}
|
|
14767
14794
|
}
|
|
14768
14795
|
|
|
14769
|
-
//
|
|
14796
|
+
// node_modules/drizzle-orm/pg-core/query-builders/refresh-materialized-view.js
|
|
14770
14797
|
class PgRefreshMaterializedView extends QueryPromise {
|
|
14771
14798
|
constructor(view, session, dialect) {
|
|
14772
14799
|
super();
|
|
@@ -14817,7 +14844,7 @@ class PgRefreshMaterializedView extends QueryPromise {
|
|
|
14817
14844
|
};
|
|
14818
14845
|
}
|
|
14819
14846
|
|
|
14820
|
-
//
|
|
14847
|
+
// node_modules/drizzle-orm/pg-core/query-builders/update.js
|
|
14821
14848
|
class PgUpdateBuilder {
|
|
14822
14849
|
constructor(table, session, dialect, withList) {
|
|
14823
14850
|
this.table = table;
|
|
@@ -14967,7 +14994,7 @@ class PgUpdateBase extends QueryPromise {
|
|
|
14967
14994
|
}
|
|
14968
14995
|
}
|
|
14969
14996
|
|
|
14970
|
-
//
|
|
14997
|
+
// node_modules/drizzle-orm/pg-core/query-builders/count.js
|
|
14971
14998
|
class PgCountBuilder extends SQL {
|
|
14972
14999
|
constructor(params) {
|
|
14973
15000
|
super(PgCountBuilder.buildEmbeddedCount(params.source, params.filters).queryChunks);
|
|
@@ -15008,7 +15035,7 @@ class PgCountBuilder extends SQL {
|
|
|
15008
15035
|
}
|
|
15009
15036
|
}
|
|
15010
15037
|
|
|
15011
|
-
//
|
|
15038
|
+
// node_modules/drizzle-orm/pg-core/query-builders/query.js
|
|
15012
15039
|
class RelationalQueryBuilder {
|
|
15013
15040
|
constructor(fullSchema, schema, tableNamesMap, table, tableConfig, dialect, session) {
|
|
15014
15041
|
this.fullSchema = fullSchema;
|
|
@@ -15091,7 +15118,7 @@ class PgRelationalQuery extends QueryPromise {
|
|
|
15091
15118
|
}
|
|
15092
15119
|
}
|
|
15093
15120
|
|
|
15094
|
-
//
|
|
15121
|
+
// node_modules/drizzle-orm/pg-core/query-builders/raw.js
|
|
15095
15122
|
class PgRaw extends QueryPromise {
|
|
15096
15123
|
constructor(execute, sql2, query, mapBatchResult) {
|
|
15097
15124
|
super();
|
|
@@ -15118,7 +15145,7 @@ class PgRaw extends QueryPromise {
|
|
|
15118
15145
|
}
|
|
15119
15146
|
}
|
|
15120
15147
|
|
|
15121
|
-
//
|
|
15148
|
+
// node_modules/drizzle-orm/pg-core/db.js
|
|
15122
15149
|
class PgDatabase {
|
|
15123
15150
|
constructor(dialect, session, schema) {
|
|
15124
15151
|
this.dialect = dialect;
|
|
@@ -15242,7 +15269,7 @@ class PgDatabase {
|
|
|
15242
15269
|
}
|
|
15243
15270
|
}
|
|
15244
15271
|
|
|
15245
|
-
//
|
|
15272
|
+
// node_modules/drizzle-orm/pg-core/indexes.js
|
|
15246
15273
|
class IndexBuilder {
|
|
15247
15274
|
static [entityKind] = "PgIndexBuilder";
|
|
15248
15275
|
config;
|
|
@@ -15280,7 +15307,7 @@ class Index {
|
|
|
15280
15307
|
}
|
|
15281
15308
|
}
|
|
15282
15309
|
|
|
15283
|
-
//
|
|
15310
|
+
// node_modules/drizzle-orm/pg-core/policies.js
|
|
15284
15311
|
class PgPolicy {
|
|
15285
15312
|
constructor(name, config) {
|
|
15286
15313
|
this.name = name;
|
|
@@ -15305,7 +15332,7 @@ class PgPolicy {
|
|
|
15305
15332
|
}
|
|
15306
15333
|
}
|
|
15307
15334
|
|
|
15308
|
-
//
|
|
15335
|
+
// node_modules/drizzle-orm/pg-core/session.js
|
|
15309
15336
|
class PgPreparedQuery {
|
|
15310
15337
|
constructor(query) {
|
|
15311
15338
|
this.query = query;
|
|
@@ -15347,7 +15374,7 @@ class PgSession {
|
|
|
15347
15374
|
}
|
|
15348
15375
|
}
|
|
15349
15376
|
|
|
15350
|
-
//
|
|
15377
|
+
// node_modules/drizzle-orm/pg-core/utils.js
|
|
15351
15378
|
function getTableConfig(table) {
|
|
15352
15379
|
const columns = Object.values(table[Table.Symbol.Columns]);
|
|
15353
15380
|
const indexes = [];
|
|
@@ -15393,7 +15420,7 @@ function getTableConfig(table) {
|
|
|
15393
15420
|
};
|
|
15394
15421
|
}
|
|
15395
15422
|
|
|
15396
|
-
//
|
|
15423
|
+
// node_modules/@neondatabase/serverless/index.mjs
|
|
15397
15424
|
var vo = Object.create;
|
|
15398
15425
|
var Te = Object.defineProperty;
|
|
15399
15426
|
var xo = Object.getOwnPropertyDescriptor;
|
|
@@ -20253,7 +20280,7 @@ buffer/index.js:
|
|
|
20253
20280
|
*)
|
|
20254
20281
|
*/
|
|
20255
20282
|
|
|
20256
|
-
//
|
|
20283
|
+
// node_modules/drizzle-orm/neon-http/session.js
|
|
20257
20284
|
var rawQueryConfig = {
|
|
20258
20285
|
arrayMode: false,
|
|
20259
20286
|
fullResults: true
|
|
@@ -20366,7 +20393,7 @@ class NeonHttpSession extends PgSession {
|
|
|
20366
20393
|
}
|
|
20367
20394
|
}
|
|
20368
20395
|
|
|
20369
|
-
//
|
|
20396
|
+
// node_modules/drizzle-orm/neon-http/driver.js
|
|
20370
20397
|
class NeonHttpDriver {
|
|
20371
20398
|
constructor(client, dialect, options = {}) {
|
|
20372
20399
|
this.client = client;
|
|
@@ -22481,7 +22508,11 @@ var vciRoutes = ({
|
|
|
22481
22508
|
const credentialRoute = `${vciRoute}/credential`;
|
|
22482
22509
|
const nonceRoute = `${vciRoute}/nonce`;
|
|
22483
22510
|
const vciSigningKey = vciConfig.signingKey ?? signingKey;
|
|
22484
|
-
return new Elysia35().get("/.well-known/openid-credential-issuer", () => Response.json(buildIssuerMetadata({
|
|
22511
|
+
return new Elysia35().get("/.well-known/openid-credential-issuer", () => Response.json(buildIssuerMetadata({
|
|
22512
|
+
config: vciConfig,
|
|
22513
|
+
issuer: issuerUrl,
|
|
22514
|
+
vciRoute
|
|
22515
|
+
}))).post(credentialRoute, async ({ body, headers }) => {
|
|
22485
22516
|
const accessToken = extractBearer(headers.authorization);
|
|
22486
22517
|
if (accessToken === undefined) {
|
|
22487
22518
|
return errorBody("invalid_token", HTTP_UNAUTHORIZED3);
|
|
@@ -22520,7 +22551,10 @@ var vciRoutes = ({
|
|
|
22520
22551
|
nonceHash: await hashToken2(nonce)
|
|
22521
22552
|
});
|
|
22522
22553
|
const msPerSecond = 1000;
|
|
22523
|
-
return Response.json({
|
|
22554
|
+
return Response.json({
|
|
22555
|
+
c_nonce: nonce,
|
|
22556
|
+
c_nonce_expires_in: Math.floor(ttlMs / msPerSecond)
|
|
22557
|
+
}, { status: HTTP_OK3 });
|
|
22524
22558
|
});
|
|
22525
22559
|
};
|
|
22526
22560
|
// src/vc/statusList.ts
|
|
@@ -22617,7 +22651,10 @@ var verifyStatusListJwt = async ({
|
|
|
22617
22651
|
return;
|
|
22618
22652
|
}
|
|
22619
22653
|
const bits = await decompress(lst);
|
|
22620
|
-
return {
|
|
22654
|
+
return {
|
|
22655
|
+
bits,
|
|
22656
|
+
sub: typeof payload.sub === "string" ? payload.sub : undefined
|
|
22657
|
+
};
|
|
22621
22658
|
};
|
|
22622
22659
|
// src/vc/statusListRoutes.ts
|
|
22623
22660
|
import { Elysia as Elysia36, t as t32 } from "elysia";
|
|
@@ -22901,7 +22938,10 @@ var vpRoutes = ({
|
|
|
22901
22938
|
return errorBody2("unknown_request", HTTP_NOT_FOUND2);
|
|
22902
22939
|
}
|
|
22903
22940
|
const rebuilt = await createPresentationRequest({
|
|
22904
|
-
config: {
|
|
22941
|
+
config: {
|
|
22942
|
+
...vpConfig,
|
|
22943
|
+
requestStore: passthroughStore(stored)
|
|
22944
|
+
},
|
|
22905
22945
|
input: {
|
|
22906
22946
|
clientId: stored.clientId,
|
|
22907
22947
|
requestedClaims: stored.requestedClaims,
|
|
@@ -22911,7 +22951,9 @@ var vpRoutes = ({
|
|
|
22911
22951
|
getRequestUri: () => `${issuerUrl}${vpRoute}/request/${id}`
|
|
22912
22952
|
});
|
|
22913
22953
|
return new Response(rebuilt.requestObject, {
|
|
22914
|
-
headers: {
|
|
22954
|
+
headers: {
|
|
22955
|
+
"content-type": "application/oauth-authz-req+jwt"
|
|
22956
|
+
},
|
|
22915
22957
|
status: HTTP_OK5
|
|
22916
22958
|
});
|
|
22917
22959
|
}, { params: t33.Object({ id: t33.String() }) }).post(responseRoute, async ({ body }) => {
|
|
@@ -23431,7 +23473,11 @@ var createInMemoryDeviceAuthorizationStore = () => {
|
|
|
23431
23473
|
const record = byDeviceCode.get(deviceCodeHash);
|
|
23432
23474
|
if (!record)
|
|
23433
23475
|
return;
|
|
23434
|
-
byDeviceCode.set(deviceCodeHash, {
|
|
23476
|
+
byDeviceCode.set(deviceCodeHash, {
|
|
23477
|
+
...record,
|
|
23478
|
+
status,
|
|
23479
|
+
userSub
|
|
23480
|
+
});
|
|
23435
23481
|
}
|
|
23436
23482
|
};
|
|
23437
23483
|
};
|
|
@@ -23582,7 +23628,9 @@ var oauthDeviceAuthorizationsTable = pgTable("auth_oauth_device_authorizations",
|
|
|
23582
23628
|
length: ID_LENGTH8
|
|
23583
23629
|
}).primaryKey(),
|
|
23584
23630
|
expires_at_ms: bigint("expires_at_ms", { mode: "number" }).notNull(),
|
|
23585
|
-
interval_seconds: bigint("interval_seconds", {
|
|
23631
|
+
interval_seconds: bigint("interval_seconds", {
|
|
23632
|
+
mode: "number"
|
|
23633
|
+
}).notNull(),
|
|
23586
23634
|
scopes: text("scopes").array().notNull(),
|
|
23587
23635
|
status: varchar("status", { length: 16 }).notNull(),
|
|
23588
23636
|
user_code: varchar("user_code", { length: 16 }).notNull().unique(),
|
|
@@ -23797,7 +23845,9 @@ var createPostgresDeviceAuthorizationStore = (db) => ({
|
|
|
23797
23845
|
});
|
|
23798
23846
|
var createPostgresInitialAccessTokenStore = (db) => ({
|
|
23799
23847
|
consumeToken: async (tokenHash) => {
|
|
23800
|
-
const deleted = await db.delete(oauthInitialAccessTokensTable).where(eq(oauthInitialAccessTokensTable.token_hash, tokenHash)).returning({
|
|
23848
|
+
const deleted = await db.delete(oauthInitialAccessTokensTable).where(eq(oauthInitialAccessTokensTable.token_hash, tokenHash)).returning({
|
|
23849
|
+
token_hash: oauthInitialAccessTokensTable.token_hash
|
|
23850
|
+
});
|
|
23801
23851
|
return deleted.length > 0;
|
|
23802
23852
|
}
|
|
23803
23853
|
});
|
|
@@ -24475,7 +24525,10 @@ var parseBoolean = (raw) => {
|
|
|
24475
24525
|
return false;
|
|
24476
24526
|
return;
|
|
24477
24527
|
};
|
|
24478
|
-
var createRedisFgaCache = (redis, {
|
|
24528
|
+
var createRedisFgaCache = (redis, {
|
|
24529
|
+
keyPrefix = DEFAULT_PREFIX2,
|
|
24530
|
+
ttlMs = DEFAULT_TTL_MS
|
|
24531
|
+
} = {}) => ({
|
|
24479
24532
|
clear: async () => {
|
|
24480
24533
|
const enumerate = redis.keys;
|
|
24481
24534
|
if (enumerate === undefined)
|
|
@@ -25446,7 +25499,11 @@ var siblingEndpoints = (urls) => {
|
|
|
25446
25499
|
};
|
|
25447
25500
|
var createNodeSamlAdapter = async (options = {}) => {
|
|
25448
25501
|
const { SAML } = await import("@node-saml/node-saml");
|
|
25449
|
-
const {
|
|
25502
|
+
const {
|
|
25503
|
+
signatureAlgorithm = "sha256",
|
|
25504
|
+
spCertificate,
|
|
25505
|
+
spPrivateKey
|
|
25506
|
+
} = options;
|
|
25450
25507
|
const canSign = spPrivateKey !== undefined;
|
|
25451
25508
|
const build = (connection, urls) => {
|
|
25452
25509
|
const { acsUrl, sloUrl } = siblingEndpoints(urls);
|
|
@@ -25472,7 +25529,10 @@ var createNodeSamlAdapter = async (options = {}) => {
|
|
|
25472
25529
|
};
|
|
25473
25530
|
const adapter = {
|
|
25474
25531
|
createAuthorizationUrl: ({ acsUrl, connection, relayState }) => build(connection, { acsUrl }).getAuthorizeUrlAsync(relayState ?? "", undefined, {}),
|
|
25475
|
-
getServiceProviderMetadata: ({ acsUrl, connection, sloUrl }) => build(connection, {
|
|
25532
|
+
getServiceProviderMetadata: ({ acsUrl, connection, sloUrl }) => build(connection, {
|
|
25533
|
+
acsUrl,
|
|
25534
|
+
sloUrl
|
|
25535
|
+
}).generateServiceProviderMetadata(null, spCertificate ?? null),
|
|
25476
25536
|
validateAssertion: async ({ acsUrl, connection, samlResponse }) => {
|
|
25477
25537
|
const { profile: profile2 } = await build(connection, {
|
|
25478
25538
|
acsUrl
|
|
@@ -25963,7 +26023,7 @@ var auth = async ({
|
|
|
25963
26023
|
const auditedOnCallbackSuccess = auditEmit ? composeCallbackAudit(onCallbackSuccess, auditEmit) : onCallbackSuccess;
|
|
25964
26024
|
const auditedOnRevocationSuccess = auditEmit ? composeRevocationAudit(onRevocationSuccess, auditEmit) : onRevocationSuccess;
|
|
25965
26025
|
const auditedOnSignOut = auditEmit ? composeSignOutAudit(onSignOut, auditEmit) : onSignOut;
|
|
25966
|
-
|
|
26026
|
+
const composedAuth = new Elysia39().use(sessionCleanup({
|
|
25967
26027
|
authSessionStore,
|
|
25968
26028
|
cleanupIntervalMs,
|
|
25969
26029
|
maxSessions,
|
|
@@ -26058,6 +26118,7 @@ var auth = async ({
|
|
|
26058
26118
|
...htmx,
|
|
26059
26119
|
authSessionStore
|
|
26060
26120
|
}) : new Elysia39);
|
|
26121
|
+
return composedAuth;
|
|
26061
26122
|
};
|
|
26062
26123
|
export {
|
|
26063
26124
|
writeWarrant,
|
|
@@ -26492,5 +26553,5 @@ export {
|
|
|
26492
26553
|
AuthIdentityConflictError
|
|
26493
26554
|
};
|
|
26494
26555
|
|
|
26495
|
-
//# debugId=
|
|
26556
|
+
//# debugId=85B7840BC5CF820764756E2164756E21
|
|
26496
26557
|
//# sourceMappingURL=index.js.map
|