@rio.js/enterprise 1.4.3 → 1.4.4
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/{better-auth-C0GYWCr8.mjs → better-auth-CgVuDqHf.mjs} +1 -1
- package/dist/{better-auth-RunrSBmw.d.mts → better-auth-dl6JU4vx.d.mts} +1 -1
- package/dist/better-auth.d.mts +2 -2
- package/dist/better-auth.mjs +2 -2
- package/dist/{db-D5eWeSOf.d.mts → db-BQg74X-T.d.mts} +3 -3
- package/dist/{db-Bd2Dgk3D.mjs → db-Bu7FlEtc.mjs} +2 -7
- package/dist/db.d.mts +3 -2
- package/dist/db.mjs +4 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/server.mjs +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as teamRole, A as oauthAccessTokenRelations, B as organizationRoleRelations, C as memberAssetRoleRelations, D as memberTeamRole, E as memberRelations, F as object, G as schemaDefinition, H as platformRole, I as objectRelations, J as sessionRelations, K as schemaDefinitionRelations, L as organization$1, M as oauthApplicationRelations, N as oauthConsent, O as memberTeamRoleRelations, P as oauthConsentRelations, Q as teamRelations, R as organizationRelations, S as memberAssetRole, T as memberOrganizationRoleRelations, U as relationship, V as person, W as relationshipRelations, X as teamMember, Y as team, Z as teamMemberRelations, _ as assetType, a as agent, at as verification, b as invitationRelations, c as apikeyRelations, d as assetRole, et as teamRoleRelations, f as assetRoleRelations, g as assetShareRelations, h as assetShareLinkRelations, i as accountRelations, it as userRelations, j as oauthApplication, k as oauthAccessToken, l as asset, m as assetShareLink,
|
|
1
|
+
import { $ as teamRole, A as oauthAccessTokenRelations, B as organizationRoleRelations, C as memberAssetRoleRelations, D as memberTeamRole, E as memberRelations, F as object, G as schemaDefinition, H as platformRole, I as objectRelations, J as sessionRelations, K as schemaDefinitionRelations, L as organization$1, M as oauthApplicationRelations, N as oauthConsent, O as memberTeamRoleRelations, P as oauthConsentRelations, Q as teamRelations, R as organizationRelations, S as memberAssetRole, T as memberOrganizationRoleRelations, U as relationship, V as person, W as relationshipRelations, X as teamMember, Y as team, Z as teamMemberRelations, _ as assetType, a as agent, at as verification, b as invitationRelations, c as apikeyRelations, d as assetRole, et as teamRoleRelations, f as assetRoleRelations, g as assetShareRelations, h as assetShareLinkRelations, i as accountRelations, it as userRelations, j as oauthApplication, k as oauthAccessToken, l as asset, m as assetShareLink, nt as twoFactorRelations, o as agentRelations, ot as enterpriseSchema, p as assetShare, q as session, r as account, rt as user, s as apikey, st as __export, t as db, tt as twoFactor$1, u as assetRelations, v as assetTypeRelations, w as memberOrganizationRole, x as member, y as invitation, z as organizationRole } from "./db-Bu7FlEtc.mjs";
|
|
2
2
|
import { G as getCurrentTransactionAdapter, W as getCurrentGraphContext } from "./json-oFuWgANh-CZSe35mm.mjs";
|
|
3
3
|
import { f as logger, g as BetterAuthError, v as invariant } from "./env-DwlNAN_D-C1zHd0cf-DcFsKQM_.mjs";
|
|
4
4
|
import { A as apiKey, E as admin, K as graph, R as lastLoginMethod, U as organization, a as openAPI, it as APIError$1, j as assets, k as agents, rt as twoFactor, z as mcp } from "./plugins-C_-kHHzW.mjs";
|
package/dist/better-auth.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./db-
|
|
2
|
-
import { n as createAuthSystem, t as auth } from "./better-auth-
|
|
1
|
+
import "./db-BQg74X-T.mjs";
|
|
2
|
+
import { n as createAuthSystem, t as auth } from "./better-auth-dl6JU4vx.mjs";
|
|
3
3
|
export { auth, createAuthSystem };
|
package/dist/better-auth.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./db-
|
|
1
|
+
import "./db-Bu7FlEtc.mjs";
|
|
2
2
|
import "./json-oFuWgANh-CZSe35mm.mjs";
|
|
3
3
|
import "./env-DwlNAN_D-C1zHd0cf-DcFsKQM_.mjs";
|
|
4
4
|
import "./verify-BmFXks5a.mjs";
|
|
@@ -12,6 +12,6 @@ import "./parser-bL7W2mQ0-JPVS1FmJ.mjs";
|
|
|
12
12
|
import "./client--1_AEBPu-Dl2Y0Yen.mjs";
|
|
13
13
|
import "./dist-DGeBMuXr.mjs";
|
|
14
14
|
import "./adapter-factory-BTRALCLD-Bv_0fQx-.mjs";
|
|
15
|
-
import { n as createAuthSystem, t as auth } from "./better-auth-
|
|
15
|
+
import { n as createAuthSystem, t as auth } from "./better-auth-CgVuDqHf.mjs";
|
|
16
16
|
|
|
17
17
|
export { auth, createAuthSystem };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as drizzle_orm0 from "drizzle-orm";
|
|
2
|
-
import * as drizzle_orm_pg_core0 from "drizzle-orm/pg-core";
|
|
3
2
|
import * as drizzle_orm_node_postgres0 from "drizzle-orm/node-postgres";
|
|
3
|
+
import * as drizzle_orm_pg_core0 from "drizzle-orm/pg-core";
|
|
4
4
|
import * as pg0 from "pg";
|
|
5
5
|
|
|
6
6
|
//#region src/db.d.ts
|
|
7
|
-
declare const
|
|
7
|
+
declare const schema: {
|
|
8
8
|
user: drizzle_orm_pg_core0.PgTableWithColumns<{
|
|
9
9
|
name: "user";
|
|
10
10
|
schema: "enterprise";
|
|
@@ -9539,4 +9539,4 @@ declare const db: drizzle_orm_node_postgres0.NodePgDatabase<{
|
|
|
9539
9539
|
$client: pg0.Pool;
|
|
9540
9540
|
};
|
|
9541
9541
|
//#endregion
|
|
9542
|
-
export {
|
|
9542
|
+
export { schema as n, db as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
1
|
import { relations } from "drizzle-orm";
|
|
2
|
+
import { drizzle } from "drizzle-orm/node-postgres";
|
|
3
3
|
import { boolean, index, integer, jsonb, pgSchema, text, timestamp } from "drizzle-orm/pg-core";
|
|
4
4
|
|
|
5
5
|
//#region rolldown:runtime
|
|
@@ -17,7 +17,6 @@ var __export = (all, symbols) => {
|
|
|
17
17
|
}
|
|
18
18
|
return target;
|
|
19
19
|
};
|
|
20
|
-
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
21
20
|
|
|
22
21
|
//#endregion
|
|
23
22
|
//#region src/db-schema.default.ts
|
|
@@ -671,11 +670,7 @@ const schemaDefinitionRelations = relations(schemaDefinition, ({ one }) => ({ us
|
|
|
671
670
|
//#endregion
|
|
672
671
|
//#region src/db.ts
|
|
673
672
|
const schema = { ...db_schema_generated_exports };
|
|
674
|
-
const databaseSchema = schema;
|
|
675
|
-
let drizzle;
|
|
676
|
-
if (process.env.BUN) drizzle = __require("drizzle-orm/bun-sql").drizzle;
|
|
677
|
-
else drizzle = __require("drizzle-orm/node-postgres").drizzle;
|
|
678
673
|
const db = drizzle(process.env.DATABASE_URL + "?options=-c search_path=enterprise", { schema });
|
|
679
674
|
|
|
680
675
|
//#endregion
|
|
681
|
-
export { teamRole as $, oauthAccessTokenRelations as A, organizationRoleRelations as B, memberAssetRoleRelations as C, memberTeamRole as D, memberRelations as E, object as F, schemaDefinition as G, platformRole as H, objectRelations as I, sessionRelations as J, schemaDefinitionRelations as K, organization as L, oauthApplicationRelations as M, oauthConsent as N, memberTeamRoleRelations as O, oauthConsentRelations as P, teamRelations as Q, organizationRelations as R, memberAssetRole as S, memberOrganizationRoleRelations as T, relationship as U, person as V, relationshipRelations as W, teamMember as X, team as Y, teamMemberRelations as Z, assetType as _, agent as a, verification as at, invitationRelations as b, apikeyRelations as c, assetRole as d, teamRoleRelations as et, assetRoleRelations as f, assetShareRelations as g, assetShareLinkRelations as h, accountRelations as i, userRelations as it, oauthApplication as j, oauthAccessToken as k, asset as l, assetShareLink as m,
|
|
676
|
+
export { teamRole as $, oauthAccessTokenRelations as A, organizationRoleRelations as B, memberAssetRoleRelations as C, memberTeamRole as D, memberRelations as E, object as F, schemaDefinition as G, platformRole as H, objectRelations as I, sessionRelations as J, schemaDefinitionRelations as K, organization as L, oauthApplicationRelations as M, oauthConsent as N, memberTeamRoleRelations as O, oauthConsentRelations as P, teamRelations as Q, organizationRelations as R, memberAssetRole as S, memberOrganizationRoleRelations as T, relationship as U, person as V, relationshipRelations as W, teamMember as X, team as Y, teamMemberRelations as Z, assetType as _, agent as a, verification as at, invitationRelations as b, apikeyRelations as c, assetRole as d, teamRoleRelations as et, assetRoleRelations as f, assetShareRelations as g, assetShareLinkRelations as h, accountRelations as i, userRelations as it, oauthApplication as j, oauthAccessToken as k, asset as l, assetShareLink as m, schema as n, twoFactorRelations as nt, agentRelations as o, enterpriseSchema as ot, assetShare as p, session as q, account as r, user as rt, apikey as s, __export as st, db as t, twoFactor as tt, assetRelations as u, assetTypeRelations as v, memberOrganizationRole as w, member as x, invitation as y, organizationRole as z };
|
package/dist/db.d.mts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { n as
|
|
2
|
-
export
|
|
1
|
+
import { n as schema, t as db } from "./db-BQg74X-T.mjs";
|
|
2
|
+
export * from "drizzle-orm/node-postgres";
|
|
3
|
+
export { db, schema };
|
package/dist/db.mjs
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as createAuthSystem } from "./better-auth-
|
|
1
|
+
import { t as db } from "./db-BQg74X-T.mjs";
|
|
2
|
+
import { n as createAuthSystem } from "./better-auth-dl6JU4vx.mjs";
|
|
3
3
|
import { parseSetCookieHeader } from "better-auth/cookies";
|
|
4
4
|
export * from "better-auth";
|
|
5
5
|
export * from "better-auth/crypto";
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as db } from "./db-Bu7FlEtc.mjs";
|
|
2
2
|
import { C as symmetricEncodeJWT, G as getCurrentTransactionAdapter, H as getCurrentAdapter, S as symmetricDecodeJWT, W as getCurrentGraphContext, _ as symmetricEncrypt, c as generateId, d as constantTimeEqual, g as symmetricDecrypt, h as hashPassword, l as generateState, m as generateRandomString, s as HIDE_METADATA, u as parseState, v as verifyPassword, w as verifyJWT, x as signJWT } from "./json-oFuWgANh-CZSe35mm.mjs";
|
|
3
3
|
import { _ as defineErrorCodes, a as getBooleanEnvVar, c as isDevelopment, d as levels, f as logger, g as BetterAuthError, h as BASE_ERROR_CODES, i as env, l as isProduction, m as shouldPublishLog, n as TTY_COLORS, o as getColorDepth, p as nodeENV, r as createLogger, s as getEnvVar, t as ENV, u as isTest, v as invariant } from "./env-DwlNAN_D-C1zHd0cf-DcFsKQM_.mjs";
|
|
4
4
|
import "./verify-BmFXks5a.mjs";
|
|
@@ -12,6 +12,6 @@ import "./parser-bL7W2mQ0-JPVS1FmJ.mjs";
|
|
|
12
12
|
import "./client--1_AEBPu-Dl2Y0Yen.mjs";
|
|
13
13
|
import { n as createTelemetry, r as getTelemetryAuthConfig, t as betterAuth } from "./dist-DGeBMuXr.mjs";
|
|
14
14
|
import "./adapter-factory-BTRALCLD-Bv_0fQx-.mjs";
|
|
15
|
-
import { n as createAuthSystem } from "./better-auth-
|
|
15
|
+
import { n as createAuthSystem } from "./better-auth-CgVuDqHf.mjs";
|
|
16
16
|
|
|
17
17
|
export { APIError$1 as APIError, BASE_ERROR_CODES, BetterAuthError, ENV, HIDE_METADATA, TTY_COLORS, accountSchema, betterAuth, capitalizeFirstLetter, clientCredentialsToken, constantTimeEqual, coreSchema, createAuthSystem, createAuthorizationCodeRequest, createAuthorizationURL, createClientCredentialsTokenRequest, createLogger, createRefreshAccessTokenRequest, createTelemetry, defineErrorCodes, db as enterpriseDB, env, generateCodeChallenge, generateId, generateRandomString, generateState, getBooleanEnvVar, getColorDepth, getCurrentAdapter, getCurrentGraphContext, getCurrentTransactionAdapter, getEnvVar, getOAuth2Tokens, getTelemetryAuthConfig, hashPassword, initializeGraph, invariant, isDevelopment, isProduction, isTest, levels, logger, nodeENV, parseSetCookieHeader, parseState, rateLimitSchema, refreshAccessToken, sessionSchema, shouldPublishLog, signJWT, symmetricDecodeJWT, symmetricDecrypt, symmetricEncodeJWT, symmetricEncrypt, userSchema, validateAuthorizationCode, validateToken, verificationSchema, verifyJWT, verifyPassword };
|
package/dist/server.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as db } from "./db-Bu7FlEtc.mjs";
|
|
2
2
|
import "./json-oFuWgANh-CZSe35mm.mjs";
|
|
3
3
|
import "./env-DwlNAN_D-C1zHd0cf-DcFsKQM_.mjs";
|
|
4
4
|
import "./verify-BmFXks5a.mjs";
|
|
@@ -12,7 +12,7 @@ import "./parser-bL7W2mQ0-JPVS1FmJ.mjs";
|
|
|
12
12
|
import "./client--1_AEBPu-Dl2Y0Yen.mjs";
|
|
13
13
|
import "./dist-DGeBMuXr.mjs";
|
|
14
14
|
import "./adapter-factory-BTRALCLD-Bv_0fQx-.mjs";
|
|
15
|
-
import { t as auth } from "./better-auth-
|
|
15
|
+
import { t as auth } from "./better-auth-CgVuDqHf.mjs";
|
|
16
16
|
import "dotenv/config";
|
|
17
17
|
import { cors } from "@elysiajs/cors";
|
|
18
18
|
import { jwt } from "@elysiajs/jwt";
|