@absolutejs/auth 0.45.4 → 0.45.6
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/apikeys/postgresStores.d.ts +4 -4
- package/dist/cli/migrate.js.map +7 -7
- package/dist/index.js.map +7 -7
- package/dist/organizations/postgresOrganizationStore.d.ts +2 -2
- package/dist/portal/postgresSetupSessionStore.d.ts +2 -2
- package/dist/scim/postgresScimTokenStore.d.ts +2 -2
- package/dist/sso/postgresSsoConnectionStore.d.ts +2 -2
- package/dist/stores/postgres.d.ts +2 -5
- package/package.json +4 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AnyPgDatabase
|
|
1
|
+
import { type AnyPgDatabase } from '../stores/postgres';
|
|
2
2
|
import type { InvitationState, MembershipStatus, OrganizationStore } from './types';
|
|
3
3
|
export declare const organizationInvitationsTable: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
4
4
|
name: "auth_organization_invitations";
|
|
@@ -409,4 +409,4 @@ export declare const organizationsTable: import("drizzle-orm/pg-core").PgTableWi
|
|
|
409
409
|
dialect: "pg";
|
|
410
410
|
}>;
|
|
411
411
|
export declare const createNeonOrganizationStore: (databaseUrl: string) => OrganizationStore;
|
|
412
|
-
export declare const createPostgresOrganizationStore: <
|
|
412
|
+
export declare const createPostgresOrganizationStore: <DB extends AnyPgDatabase>(db: DB) => OrganizationStore;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AnyPgDatabase
|
|
1
|
+
import { type AnyPgDatabase } from '../stores/postgres';
|
|
2
2
|
import type { SetupCapability, SetupSessionStore } from './types';
|
|
3
3
|
export declare const setupSessionsTable: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
4
4
|
name: "auth_setup_sessions";
|
|
@@ -137,4 +137,4 @@ export declare const setupSessionsTable: import("drizzle-orm/pg-core").PgTableWi
|
|
|
137
137
|
dialect: "pg";
|
|
138
138
|
}>;
|
|
139
139
|
export declare const createNeonSetupSessionStore: (databaseUrl: string) => SetupSessionStore;
|
|
140
|
-
export declare const createPostgresSetupSessionStore: <
|
|
140
|
+
export declare const createPostgresSetupSessionStore: <DB extends AnyPgDatabase>(db: DB) => SetupSessionStore;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AnyPgDatabase
|
|
1
|
+
import { type AnyPgDatabase } from '../stores/postgres';
|
|
2
2
|
import type { ScimTokenStore } from './types';
|
|
3
3
|
export declare const scimTokensTable: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
4
4
|
name: "auth_scim_tokens";
|
|
@@ -99,4 +99,4 @@ export declare const scimTokensTable: import("drizzle-orm/pg-core").PgTableWithC
|
|
|
99
99
|
dialect: "pg";
|
|
100
100
|
}>;
|
|
101
101
|
export declare const createNeonScimTokenStore: (databaseUrl: string) => ScimTokenStore;
|
|
102
|
-
export declare const createPostgresScimTokenStore: <
|
|
102
|
+
export declare const createPostgresScimTokenStore: <DB extends AnyPgDatabase>(db: DB) => ScimTokenStore;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AnyPgDatabase
|
|
1
|
+
import { type AnyPgDatabase } from '../stores/postgres';
|
|
2
2
|
import type { OidcConnectionConfig, SamlConnectionConfig, SSOConnectionStore, SSOConnectionType } from './types';
|
|
3
3
|
export declare const ssoConnectionsTable: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
4
4
|
name: "auth_sso_connections";
|
|
@@ -136,4 +136,4 @@ export declare const ssoConnectionsTable: import("drizzle-orm/pg-core").PgTableW
|
|
|
136
136
|
dialect: "pg";
|
|
137
137
|
}>;
|
|
138
138
|
export declare const createNeonSsoConnectionStore: (databaseUrl: string) => SSOConnectionStore;
|
|
139
|
-
export declare const createPostgresSsoConnectionStore: <
|
|
139
|
+
export declare const createPostgresSsoConnectionStore: <DB extends AnyPgDatabase>(db: DB) => SSOConnectionStore;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
export type AnyPgDatabase<Q extends PgQueryResultHKT = PgQueryResultHKT, TFullSchema extends Record<string, unknown> = Record<string, never>, TSchema extends TablesRelationalConfig = ExtractTablesWithRelations<TFullSchema>> = PgDatabase<Q, TFullSchema, TSchema>;
|
|
4
|
-
export type { PgQueryResultHKT } from 'drizzle-orm/pg-core';
|
|
5
|
-
export type { TablesRelationalConfig } from 'drizzle-orm';
|
|
1
|
+
import type { PgDatabase } from 'drizzle-orm/pg-core';
|
|
2
|
+
export type AnyPgDatabase = PgDatabase<any, any, any>;
|
|
6
3
|
export declare const createNeonDatabase: (databaseUrl: string) => import("drizzle-orm/neon-http").NeonHttpDatabase<Record<string, never>> & {
|
|
7
4
|
$client: import("@neondatabase/serverless").NeonQueryFunction<false, false>;
|
|
8
5
|
};
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.45.
|
|
2
|
+
"version": "0.45.6",
|
|
3
3
|
"name": "@absolutejs/auth",
|
|
4
4
|
"description": "An authorization library for absolutejs",
|
|
5
5
|
"repository": {
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"@opentelemetry/api": ">=1.7",
|
|
35
35
|
"@simplewebauthn/browser": ">=13",
|
|
36
|
+
"drizzle-orm": ">=0.41.0",
|
|
36
37
|
"elysia": ">= 1.4.26",
|
|
37
38
|
"react": ">=18 <20",
|
|
38
39
|
"solid-js": ">=1.8",
|
|
@@ -62,11 +63,11 @@
|
|
|
62
63
|
"dependencies": {
|
|
63
64
|
"@absolutejs/linked-providers": "0.0.2",
|
|
64
65
|
"@neondatabase/serverless": "1.0.0",
|
|
65
|
-
"citra": "^0.28.0"
|
|
66
|
-
"drizzle-orm": "0.41.0"
|
|
66
|
+
"citra": "^0.28.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@absolutejs/absolute": "^0.19.0-beta.1023",
|
|
70
|
+
"drizzle-orm": "0.41.0",
|
|
70
71
|
"@eslint/js": "^10.0.1",
|
|
71
72
|
"@opentelemetry/api": "^1.9.1",
|
|
72
73
|
"@opentelemetry/sdk-trace-base": "^2.7.1",
|