@absolutejs/auth 0.46.1 → 0.48.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.
@@ -4,11 +4,10 @@ export declare const auditEventsTable: import("drizzle-orm/pg-core").PgTableWith
4
4
  name: "auth_audit_events";
5
5
  schema: undefined;
6
6
  columns: {
7
- at_ms: import("drizzle-orm/pg-core").PgColumn<{
8
- name: "at_ms";
7
+ at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_audit_events", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
8
+ name: string;
9
9
  tableName: "auth_audit_events";
10
- dataType: "number";
11
- columnType: "PgBigInt53";
10
+ dataType: "number int53";
12
11
  data: number;
13
12
  driverParam: string | number;
14
13
  notNull: true;
@@ -17,34 +16,28 @@ export declare const auditEventsTable: import("drizzle-orm/pg-core").PgTableWith
17
16
  isAutoincrement: false;
18
17
  hasRuntimeDefault: false;
19
18
  enumValues: undefined;
20
- baseColumn: never;
21
19
  identity: undefined;
22
20
  generated: undefined;
23
- }, {}, {}>;
24
- id: import("drizzle-orm/pg-core").PgColumn<{
25
- name: "id";
21
+ }>;
22
+ id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_audit_events", import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
23
+ name: string;
26
24
  tableName: "auth_audit_events";
27
25
  dataType: "string";
28
- columnType: "PgVarchar";
29
26
  data: string;
30
27
  driverParam: string;
31
28
  notNull: true;
32
29
  hasDefault: false;
33
- isPrimaryKey: true;
30
+ isPrimaryKey: false;
34
31
  isAutoincrement: false;
35
32
  hasRuntimeDefault: false;
36
- enumValues: [string, ...string[]];
37
- baseColumn: never;
33
+ enumValues: undefined;
38
34
  identity: undefined;
39
35
  generated: undefined;
40
- }, {}, {
41
- length: 255;
42
36
  }>;
43
- ip: import("drizzle-orm/pg-core").PgColumn<{
44
- name: "ip";
37
+ ip: import("drizzle-orm/pg-core").PgBuildColumn<"auth_audit_events", import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>, {
38
+ name: string;
45
39
  tableName: "auth_audit_events";
46
40
  dataType: "string";
47
- columnType: "PgVarchar";
48
41
  data: string;
49
42
  driverParam: string;
50
43
  notNull: false;
@@ -52,18 +45,14 @@ export declare const auditEventsTable: import("drizzle-orm/pg-core").PgTableWith
52
45
  isPrimaryKey: false;
53
46
  isAutoincrement: false;
54
47
  hasRuntimeDefault: false;
55
- enumValues: [string, ...string[]];
56
- baseColumn: never;
48
+ enumValues: undefined;
57
49
  identity: undefined;
58
50
  generated: undefined;
59
- }, {}, {
60
- length: 64;
61
51
  }>;
62
- metadata_json: import("drizzle-orm/pg-core").PgColumn<{
63
- name: "metadata_json";
52
+ metadata_json: import("drizzle-orm/pg-core").PgBuildColumn<"auth_audit_events", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, Record<string, unknown>>, {
53
+ name: string;
64
54
  tableName: "auth_audit_events";
65
- dataType: "json";
66
- columnType: "PgJsonb";
55
+ dataType: "object json";
67
56
  data: Record<string, unknown>;
68
57
  driverParam: unknown;
69
58
  notNull: false;
@@ -72,17 +61,13 @@ export declare const auditEventsTable: import("drizzle-orm/pg-core").PgTableWith
72
61
  isAutoincrement: false;
73
62
  hasRuntimeDefault: false;
74
63
  enumValues: undefined;
75
- baseColumn: never;
76
64
  identity: undefined;
77
65
  generated: undefined;
78
- }, {}, {
79
- $type: Record<string, unknown>;
80
66
  }>;
81
- organization_id: import("drizzle-orm/pg-core").PgColumn<{
82
- name: "organization_id";
67
+ organization_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_audit_events", import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>, {
68
+ name: string;
83
69
  tableName: "auth_audit_events";
84
70
  dataType: "string";
85
- columnType: "PgVarchar";
86
71
  data: string;
87
72
  driverParam: string;
88
73
  notNull: false;
@@ -90,18 +75,14 @@ export declare const auditEventsTable: import("drizzle-orm/pg-core").PgTableWith
90
75
  isPrimaryKey: false;
91
76
  isAutoincrement: false;
92
77
  hasRuntimeDefault: false;
93
- enumValues: [string, ...string[]];
94
- baseColumn: never;
78
+ enumValues: undefined;
95
79
  identity: undefined;
96
80
  generated: undefined;
97
- }, {}, {
98
- length: 255;
99
81
  }>;
100
- type: import("drizzle-orm/pg-core").PgColumn<{
101
- name: "type";
82
+ type: import("drizzle-orm/pg-core").PgBuildColumn<"auth_audit_events", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
83
+ name: string;
102
84
  tableName: "auth_audit_events";
103
85
  dataType: "string";
104
- columnType: "PgVarchar";
105
86
  data: string;
106
87
  driverParam: string;
107
88
  notNull: true;
@@ -109,18 +90,14 @@ export declare const auditEventsTable: import("drizzle-orm/pg-core").PgTableWith
109
90
  isPrimaryKey: false;
110
91
  isAutoincrement: false;
111
92
  hasRuntimeDefault: false;
112
- enumValues: [string, ...string[]];
113
- baseColumn: never;
93
+ enumValues: undefined;
114
94
  identity: undefined;
115
95
  generated: undefined;
116
- }, {}, {
117
- length: 64;
118
96
  }>;
119
- user_id: import("drizzle-orm/pg-core").PgColumn<{
120
- name: "user_id";
97
+ user_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_audit_events", import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>, {
98
+ name: string;
121
99
  tableName: "auth_audit_events";
122
100
  dataType: "string";
123
- columnType: "PgVarchar";
124
101
  data: string;
125
102
  driverParam: string;
126
103
  notNull: false;
@@ -128,15 +105,12 @@ export declare const auditEventsTable: import("drizzle-orm/pg-core").PgTableWith
128
105
  isPrimaryKey: false;
129
106
  isAutoincrement: false;
130
107
  hasRuntimeDefault: false;
131
- enumValues: [string, ...string[]];
132
- baseColumn: never;
108
+ enumValues: undefined;
133
109
  identity: undefined;
134
110
  generated: undefined;
135
- }, {}, {
136
- length: 255;
137
111
  }>;
138
112
  };
139
113
  dialect: "pg";
140
114
  }>;
141
115
  export declare const createNeonAuditSink: (databaseUrl: string) => AuditSink;
142
- export declare const createPostgresAuditSink: (db: AnyPgDatabase) => AuditSink;
116
+ export declare const createPostgresAuditSink: <DB extends AnyPgDatabase>(db: DB) => AuditSink;
@@ -400,13 +400,7 @@ var warrantsTable = pgTable5("auth_fga_warrants", {
400
400
  import { neon as neon3 } from "@neondatabase/serverless";
401
401
  import { desc as desc4, eq as eq6 } from "drizzle-orm";
402
402
  import { drizzle as drizzle2 } from "drizzle-orm/neon-http";
403
- import {
404
- jsonb as jsonb2,
405
- pgTable as pgTable6,
406
- text as text3,
407
- timestamp,
408
- varchar as varchar6
409
- } from "drizzle-orm/pg-core";
403
+ import { jsonb as jsonb2, pgTable as pgTable6, text as text3, timestamp, varchar as varchar6 } from "drizzle-orm/pg-core";
410
404
 
411
405
  // node_modules/citra/dist/index.js
412
406
  var NUM_GENERATOR_BYTES = 32;
@@ -2542,7 +2536,7 @@ var oauthRefreshTokensTable = pgTable9("auth_oauth_refresh_tokens", {
2542
2536
  });
2543
2537
 
2544
2538
  // src/organizations/postgresOrganizationStore.ts
2545
- import { and as and4, eq as eq10 } from "drizzle-orm";
2539
+ import { and as and4, desc as desc6, eq as eq10 } from "drizzle-orm";
2546
2540
  import {
2547
2541
  bigint as bigint8,
2548
2542
  jsonb as jsonb5,
@@ -2638,7 +2632,7 @@ var rolesTable = pgTable13("auth_roles", {
2638
2632
  }, (table) => [primaryKey3({ columns: [table.organization_id, table.slug] })]);
2639
2633
 
2640
2634
  // src/scim/postgresScimTokenStore.ts
2641
- import { desc as desc6, eq as eq14 } from "drizzle-orm";
2635
+ import { desc as desc7, eq as eq14 } from "drizzle-orm";
2642
2636
  import { bigint as bigint12, pgTable as pgTable14, varchar as varchar14 } from "drizzle-orm/pg-core";
2643
2637
  var ID_LENGTH12 = 255;
2644
2638
  var scimTokensTable = pgTable14("auth_scim_tokens", {
@@ -2653,10 +2647,11 @@ var scimTokensTable = pgTable14("auth_scim_tokens", {
2653
2647
 
2654
2648
  // src/session/neonStore.ts
2655
2649
  import { neon as neon4 } from "@neondatabase/serverless";
2656
- import { eq as eq15 } from "drizzle-orm";
2650
+ import { eq as eq15, lt as lt4 } from "drizzle-orm";
2657
2651
  import { drizzle as drizzle3 } from "drizzle-orm/neon-http";
2658
2652
  import {
2659
2653
  bigint as bigint13,
2654
+ index,
2660
2655
  jsonb as jsonb8,
2661
2656
  pgTable as pgTable15,
2662
2657
  text as text6,
@@ -2672,7 +2667,7 @@ var authSessionsTable = pgTable15("auth_sessions", {
2672
2667
  refresh_token: text6("refresh_token"),
2673
2668
  updated_at: timestamp2("updated_at").notNull().defaultNow(),
2674
2669
  user_json: jsonb8("user_json").$type().notNull()
2675
- });
2670
+ }, (table) => [index("auth_sessions_expires_at_idx").on(table.expires_at_ms)]);
2676
2671
  var authUnregisteredSessionsTable = pgTable15("auth_unregistered_sessions", {
2677
2672
  access_token: text6("access_token"),
2678
2673
  created_at: timestamp2("created_at").notNull().defaultNow(),
@@ -2682,7 +2677,9 @@ var authUnregisteredSessionsTable = pgTable15("auth_unregistered_sessions", {
2682
2677
  session_information_json: jsonb8("session_information_json").$type(),
2683
2678
  updated_at: timestamp2("updated_at").notNull().defaultNow(),
2684
2679
  user_identity_json: jsonb8("user_identity_json").$type()
2685
- });
2680
+ }, (table) => [
2681
+ index("auth_unregistered_sessions_expires_at_idx").on(table.expires_at_ms)
2682
+ ]);
2686
2683
 
2687
2684
  // src/sso/postgresSamlServiceProviderStore.ts
2688
2685
  import { eq as eq16 } from "drizzle-orm";
@@ -2699,7 +2696,7 @@ var samlServiceProvidersTable = pgTable16("auth_saml_service_providers", {
2699
2696
  });
2700
2697
 
2701
2698
  // src/sso/postgresSsoConnectionStore.ts
2702
- import { and as and6, desc as desc7, eq as eq17 } from "drizzle-orm";
2699
+ import { and as and6, desc as desc8, eq as eq17 } from "drizzle-orm";
2703
2700
  import { bigint as bigint15, boolean as boolean5, jsonb as jsonb9, pgTable as pgTable17, varchar as varchar17 } from "drizzle-orm/pg-core";
2704
2701
  var ID_LENGTH14 = 255;
2705
2702
  var TYPE_LENGTH2 = 16;
@@ -2791,7 +2788,7 @@ var webauthnCredentialsTable = pgTable20("auth_webauthn_credentials", {
2791
2788
  });
2792
2789
 
2793
2790
  // src/webhooks/postgresStore.ts
2794
- import { desc as desc8, eq as eq21 } from "drizzle-orm";
2791
+ import { desc as desc9, eq as eq21 } from "drizzle-orm";
2795
2792
  import { bigint as bigint19, jsonb as jsonb12, pgTable as pgTable21, text as text10, varchar as varchar21 } from "drizzle-orm/pg-core";
2796
2793
  var ID_LENGTH18 = 255;
2797
2794
  var URL_LENGTH3 = 2048;
@@ -3141,5 +3138,5 @@ var main = async () => {
3141
3138
  };
3142
3139
  await main();
3143
3140
 
3144
- //# debugId=A939370FFB3E484364756E2164756E21
3141
+ //# debugId=474CAAFC16D5EDB764756E2164756E21
3145
3142
  //# sourceMappingURL=migrate.js.map