@absolutejs/auth 0.56.3 → 0.56.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/cli/migrate.js.map +1 -1
- package/dist/index.js +31 -1
- package/dist/index.js.map +4 -4
- package/dist/oidc/index.js +11 -1
- package/dist/oidc/index.js.map +3 -3
- package/dist/server.js +31 -1
- package/dist/server.js.map +4 -4
- package/package.json +1 -1
- package/dist/adaptive/config.d.ts +0 -34
- package/dist/adaptive/fingerprint.d.ts +0 -2
- package/dist/adaptive/inMemoryStores.d.ts +0 -3
- package/dist/adaptive/postgresStores.d.ts +0 -245
- package/dist/adaptive/types.d.ts +0 -62
- package/dist/agents/idJag.d.ts +0 -49
- package/dist/agents/inMemoryStores.d.ts +0 -4
- package/dist/agents/oidcAdapter.d.ts +0 -12
- package/dist/agents/postgresStores.d.ts +0 -569
- package/dist/agents/registrationClient.d.ts +0 -50
- package/dist/apikeys/inMemoryStores.d.ts +0 -4
- package/dist/apikeys/postgresStores.d.ts +0 -359
- package/dist/fga/config.d.ts +0 -53
- package/dist/fga/inMemoryStores.d.ts +0 -3
- package/dist/fga/postgresStores.d.ts +0 -116
- package/dist/fga/redisCheckCache.d.ts +0 -11
- package/dist/fga/schema.d.ts +0 -2
- package/dist/fga/types.d.ts +0 -28
- package/dist/migrations/generate.d.ts +0 -2
- package/dist/migrations/index.d.ts +0 -5
- package/dist/migrations/runner.d.ts +0 -13
- package/dist/migrations/types.d.ts +0 -14
- package/dist/oidc/clientIdMetadata.d.ts +0 -32
- package/dist/oidc/inMemoryStores.d.ts +0 -11
- package/dist/oidc/postgresStores.d.ts +0 -1217
- package/dist/organizations/inMemoryOrganizationStore.d.ts +0 -2
- package/dist/organizations/postgresOrganizationStore.d.ts +0 -340
- package/dist/passwordless/inMemoryPasswordlessTokenStore.d.ts +0 -2
- package/dist/passwordless/postgresPasswordlessTokenStore.d.ts +0 -56
- package/dist/portal/inMemorySetupSessionStore.d.ts +0 -2
- package/dist/portal/postgresSetupSessionStore.d.ts +0 -116
- package/dist/roles/inMemoryRoleStore.d.ts +0 -2
- package/dist/roles/postgresRoleStore.d.ts +0 -86
- package/dist/roles/resolver.d.ts +0 -17
- package/dist/scim/postgresScimTokenStore.d.ts +0 -86
- package/dist/sso/inMemorySamlServiceProviderStore.d.ts +0 -2
- package/dist/sso/inMemorySsoConnectionStore.d.ts +0 -2
- package/dist/sso/postgresSamlServiceProviderStore.d.ts +0 -101
- package/dist/sso/postgresSsoConnectionStore.d.ts +0 -116
- package/dist/sso/samlIdpRoutes.d.ts +0 -139
- package/dist/webauthn/inMemoryWebAuthnCredentialStore.d.ts +0 -2
- package/dist/webauthn/postgresWebAuthnCredentialStore.d.ts +0 -146
- package/dist/webhooks/inMemoryStore.d.ts +0 -2
- package/dist/webhooks/postgresStore.d.ts +0 -116
|
@@ -1,340 +0,0 @@
|
|
|
1
|
-
import { type AnyPgDatabase } from '../stores/postgres';
|
|
2
|
-
import type { InvitationState, MembershipStatus, OrganizationStore } from './types';
|
|
3
|
-
export declare const organizationInvitationsTable: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
4
|
-
name: "auth_organization_invitations";
|
|
5
|
-
schema: undefined;
|
|
6
|
-
columns: {
|
|
7
|
-
accepted_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_organization_invitations", import("drizzle-orm/pg-core").PgBigInt53Builder, {
|
|
8
|
-
name: string;
|
|
9
|
-
tableName: "auth_organization_invitations";
|
|
10
|
-
dataType: "number int53";
|
|
11
|
-
data: number;
|
|
12
|
-
driverParam: string | number;
|
|
13
|
-
notNull: false;
|
|
14
|
-
hasDefault: false;
|
|
15
|
-
isPrimaryKey: false;
|
|
16
|
-
isAutoincrement: false;
|
|
17
|
-
hasRuntimeDefault: false;
|
|
18
|
-
enumValues: undefined;
|
|
19
|
-
identity: undefined;
|
|
20
|
-
generated: undefined;
|
|
21
|
-
}>;
|
|
22
|
-
created_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_organization_invitations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
23
|
-
name: string;
|
|
24
|
-
tableName: "auth_organization_invitations";
|
|
25
|
-
dataType: "number int53";
|
|
26
|
-
data: number;
|
|
27
|
-
driverParam: string | number;
|
|
28
|
-
notNull: true;
|
|
29
|
-
hasDefault: false;
|
|
30
|
-
isPrimaryKey: false;
|
|
31
|
-
isAutoincrement: false;
|
|
32
|
-
hasRuntimeDefault: false;
|
|
33
|
-
enumValues: undefined;
|
|
34
|
-
identity: undefined;
|
|
35
|
-
generated: undefined;
|
|
36
|
-
}>;
|
|
37
|
-
email: import("drizzle-orm/pg-core").PgBuildColumn<"auth_organization_invitations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
38
|
-
name: string;
|
|
39
|
-
tableName: "auth_organization_invitations";
|
|
40
|
-
dataType: "string";
|
|
41
|
-
data: string;
|
|
42
|
-
driverParam: string;
|
|
43
|
-
notNull: true;
|
|
44
|
-
hasDefault: false;
|
|
45
|
-
isPrimaryKey: false;
|
|
46
|
-
isAutoincrement: false;
|
|
47
|
-
hasRuntimeDefault: false;
|
|
48
|
-
enumValues: undefined;
|
|
49
|
-
identity: undefined;
|
|
50
|
-
generated: undefined;
|
|
51
|
-
}>;
|
|
52
|
-
expires_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_organization_invitations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
53
|
-
name: string;
|
|
54
|
-
tableName: "auth_organization_invitations";
|
|
55
|
-
dataType: "number int53";
|
|
56
|
-
data: number;
|
|
57
|
-
driverParam: string | number;
|
|
58
|
-
notNull: true;
|
|
59
|
-
hasDefault: false;
|
|
60
|
-
isPrimaryKey: false;
|
|
61
|
-
isAutoincrement: false;
|
|
62
|
-
hasRuntimeDefault: false;
|
|
63
|
-
enumValues: undefined;
|
|
64
|
-
identity: undefined;
|
|
65
|
-
generated: undefined;
|
|
66
|
-
}>;
|
|
67
|
-
invitation_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_organization_invitations", import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
68
|
-
name: string;
|
|
69
|
-
tableName: "auth_organization_invitations";
|
|
70
|
-
dataType: "string";
|
|
71
|
-
data: string;
|
|
72
|
-
driverParam: string;
|
|
73
|
-
notNull: true;
|
|
74
|
-
hasDefault: false;
|
|
75
|
-
isPrimaryKey: false;
|
|
76
|
-
isAutoincrement: false;
|
|
77
|
-
hasRuntimeDefault: false;
|
|
78
|
-
enumValues: undefined;
|
|
79
|
-
identity: undefined;
|
|
80
|
-
generated: undefined;
|
|
81
|
-
}>;
|
|
82
|
-
inviter_user_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_organization_invitations", import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>, {
|
|
83
|
-
name: string;
|
|
84
|
-
tableName: "auth_organization_invitations";
|
|
85
|
-
dataType: "string";
|
|
86
|
-
data: string;
|
|
87
|
-
driverParam: string;
|
|
88
|
-
notNull: false;
|
|
89
|
-
hasDefault: false;
|
|
90
|
-
isPrimaryKey: false;
|
|
91
|
-
isAutoincrement: false;
|
|
92
|
-
hasRuntimeDefault: false;
|
|
93
|
-
enumValues: undefined;
|
|
94
|
-
identity: undefined;
|
|
95
|
-
generated: undefined;
|
|
96
|
-
}>;
|
|
97
|
-
organization_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_organization_invitations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
98
|
-
name: string;
|
|
99
|
-
tableName: "auth_organization_invitations";
|
|
100
|
-
dataType: "string";
|
|
101
|
-
data: string;
|
|
102
|
-
driverParam: string;
|
|
103
|
-
notNull: true;
|
|
104
|
-
hasDefault: false;
|
|
105
|
-
isPrimaryKey: false;
|
|
106
|
-
isAutoincrement: false;
|
|
107
|
-
hasRuntimeDefault: false;
|
|
108
|
-
enumValues: undefined;
|
|
109
|
-
identity: undefined;
|
|
110
|
-
generated: undefined;
|
|
111
|
-
}>;
|
|
112
|
-
roles: import("drizzle-orm/pg-core").PgBuildColumn<"auth_organization_invitations", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, string[]>>>, {
|
|
113
|
-
name: string;
|
|
114
|
-
tableName: "auth_organization_invitations";
|
|
115
|
-
dataType: "object json";
|
|
116
|
-
data: string[];
|
|
117
|
-
driverParam: unknown;
|
|
118
|
-
notNull: true;
|
|
119
|
-
hasDefault: true;
|
|
120
|
-
isPrimaryKey: false;
|
|
121
|
-
isAutoincrement: false;
|
|
122
|
-
hasRuntimeDefault: false;
|
|
123
|
-
enumValues: undefined;
|
|
124
|
-
identity: undefined;
|
|
125
|
-
generated: undefined;
|
|
126
|
-
}>;
|
|
127
|
-
state: import("drizzle-orm/pg-core").PgBuildColumn<"auth_organization_invitations", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>, InvitationState>>>, {
|
|
128
|
-
name: string;
|
|
129
|
-
tableName: "auth_organization_invitations";
|
|
130
|
-
dataType: "string";
|
|
131
|
-
data: InvitationState;
|
|
132
|
-
driverParam: string;
|
|
133
|
-
notNull: true;
|
|
134
|
-
hasDefault: true;
|
|
135
|
-
isPrimaryKey: false;
|
|
136
|
-
isAutoincrement: false;
|
|
137
|
-
hasRuntimeDefault: false;
|
|
138
|
-
enumValues: undefined;
|
|
139
|
-
identity: undefined;
|
|
140
|
-
generated: undefined;
|
|
141
|
-
}>;
|
|
142
|
-
token_hash: import("drizzle-orm/pg-core").PgBuildColumn<"auth_organization_invitations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
143
|
-
name: string;
|
|
144
|
-
tableName: "auth_organization_invitations";
|
|
145
|
-
dataType: "string";
|
|
146
|
-
data: string;
|
|
147
|
-
driverParam: string;
|
|
148
|
-
notNull: true;
|
|
149
|
-
hasDefault: false;
|
|
150
|
-
isPrimaryKey: false;
|
|
151
|
-
isAutoincrement: false;
|
|
152
|
-
hasRuntimeDefault: false;
|
|
153
|
-
enumValues: undefined;
|
|
154
|
-
identity: undefined;
|
|
155
|
-
generated: undefined;
|
|
156
|
-
}>;
|
|
157
|
-
};
|
|
158
|
-
dialect: "pg";
|
|
159
|
-
}>;
|
|
160
|
-
export declare const organizationMembershipsTable: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
161
|
-
name: "auth_organization_memberships";
|
|
162
|
-
schema: undefined;
|
|
163
|
-
columns: {
|
|
164
|
-
created_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_organization_memberships", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
165
|
-
name: string;
|
|
166
|
-
tableName: "auth_organization_memberships";
|
|
167
|
-
dataType: "number int53";
|
|
168
|
-
data: number;
|
|
169
|
-
driverParam: string | number;
|
|
170
|
-
notNull: true;
|
|
171
|
-
hasDefault: false;
|
|
172
|
-
isPrimaryKey: false;
|
|
173
|
-
isAutoincrement: false;
|
|
174
|
-
hasRuntimeDefault: false;
|
|
175
|
-
enumValues: undefined;
|
|
176
|
-
identity: undefined;
|
|
177
|
-
generated: undefined;
|
|
178
|
-
}>;
|
|
179
|
-
organization_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_organization_memberships", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
180
|
-
name: string;
|
|
181
|
-
tableName: "auth_organization_memberships";
|
|
182
|
-
dataType: "string";
|
|
183
|
-
data: string;
|
|
184
|
-
driverParam: string;
|
|
185
|
-
notNull: true;
|
|
186
|
-
hasDefault: false;
|
|
187
|
-
isPrimaryKey: false;
|
|
188
|
-
isAutoincrement: false;
|
|
189
|
-
hasRuntimeDefault: false;
|
|
190
|
-
enumValues: undefined;
|
|
191
|
-
identity: undefined;
|
|
192
|
-
generated: undefined;
|
|
193
|
-
}>;
|
|
194
|
-
roles: import("drizzle-orm/pg-core").PgBuildColumn<"auth_organization_memberships", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, string[]>>>, {
|
|
195
|
-
name: string;
|
|
196
|
-
tableName: "auth_organization_memberships";
|
|
197
|
-
dataType: "object json";
|
|
198
|
-
data: string[];
|
|
199
|
-
driverParam: unknown;
|
|
200
|
-
notNull: true;
|
|
201
|
-
hasDefault: true;
|
|
202
|
-
isPrimaryKey: false;
|
|
203
|
-
isAutoincrement: false;
|
|
204
|
-
hasRuntimeDefault: false;
|
|
205
|
-
enumValues: undefined;
|
|
206
|
-
identity: undefined;
|
|
207
|
-
generated: undefined;
|
|
208
|
-
}>;
|
|
209
|
-
status: import("drizzle-orm/pg-core").PgBuildColumn<"auth_organization_memberships", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>, MembershipStatus>>>, {
|
|
210
|
-
name: string;
|
|
211
|
-
tableName: "auth_organization_memberships";
|
|
212
|
-
dataType: "string";
|
|
213
|
-
data: MembershipStatus;
|
|
214
|
-
driverParam: string;
|
|
215
|
-
notNull: true;
|
|
216
|
-
hasDefault: true;
|
|
217
|
-
isPrimaryKey: false;
|
|
218
|
-
isAutoincrement: false;
|
|
219
|
-
hasRuntimeDefault: false;
|
|
220
|
-
enumValues: undefined;
|
|
221
|
-
identity: undefined;
|
|
222
|
-
generated: undefined;
|
|
223
|
-
}>;
|
|
224
|
-
updated_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_organization_memberships", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
225
|
-
name: string;
|
|
226
|
-
tableName: "auth_organization_memberships";
|
|
227
|
-
dataType: "number int53";
|
|
228
|
-
data: number;
|
|
229
|
-
driverParam: string | number;
|
|
230
|
-
notNull: true;
|
|
231
|
-
hasDefault: false;
|
|
232
|
-
isPrimaryKey: false;
|
|
233
|
-
isAutoincrement: false;
|
|
234
|
-
hasRuntimeDefault: false;
|
|
235
|
-
enumValues: undefined;
|
|
236
|
-
identity: undefined;
|
|
237
|
-
generated: undefined;
|
|
238
|
-
}>;
|
|
239
|
-
user_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_organization_memberships", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
240
|
-
name: string;
|
|
241
|
-
tableName: "auth_organization_memberships";
|
|
242
|
-
dataType: "string";
|
|
243
|
-
data: string;
|
|
244
|
-
driverParam: string;
|
|
245
|
-
notNull: true;
|
|
246
|
-
hasDefault: false;
|
|
247
|
-
isPrimaryKey: false;
|
|
248
|
-
isAutoincrement: false;
|
|
249
|
-
hasRuntimeDefault: false;
|
|
250
|
-
enumValues: undefined;
|
|
251
|
-
identity: undefined;
|
|
252
|
-
generated: undefined;
|
|
253
|
-
}>;
|
|
254
|
-
};
|
|
255
|
-
dialect: "pg";
|
|
256
|
-
}>;
|
|
257
|
-
export declare const organizationsTable: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
258
|
-
name: "auth_organizations";
|
|
259
|
-
schema: undefined;
|
|
260
|
-
columns: {
|
|
261
|
-
created_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_organizations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
262
|
-
name: string;
|
|
263
|
-
tableName: "auth_organizations";
|
|
264
|
-
dataType: "number int53";
|
|
265
|
-
data: number;
|
|
266
|
-
driverParam: string | number;
|
|
267
|
-
notNull: true;
|
|
268
|
-
hasDefault: false;
|
|
269
|
-
isPrimaryKey: false;
|
|
270
|
-
isAutoincrement: false;
|
|
271
|
-
hasRuntimeDefault: false;
|
|
272
|
-
enumValues: undefined;
|
|
273
|
-
identity: undefined;
|
|
274
|
-
generated: undefined;
|
|
275
|
-
}>;
|
|
276
|
-
metadata: import("drizzle-orm/pg-core").PgBuildColumn<"auth_organizations", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, Record<string, unknown>>, {
|
|
277
|
-
name: string;
|
|
278
|
-
tableName: "auth_organizations";
|
|
279
|
-
dataType: "object json";
|
|
280
|
-
data: Record<string, unknown>;
|
|
281
|
-
driverParam: unknown;
|
|
282
|
-
notNull: false;
|
|
283
|
-
hasDefault: false;
|
|
284
|
-
isPrimaryKey: false;
|
|
285
|
-
isAutoincrement: false;
|
|
286
|
-
hasRuntimeDefault: false;
|
|
287
|
-
enumValues: undefined;
|
|
288
|
-
identity: undefined;
|
|
289
|
-
generated: undefined;
|
|
290
|
-
}>;
|
|
291
|
-
name: import("drizzle-orm/pg-core").PgBuildColumn<"auth_organizations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
292
|
-
name: string;
|
|
293
|
-
tableName: "auth_organizations";
|
|
294
|
-
dataType: "string";
|
|
295
|
-
data: string;
|
|
296
|
-
driverParam: string;
|
|
297
|
-
notNull: true;
|
|
298
|
-
hasDefault: false;
|
|
299
|
-
isPrimaryKey: false;
|
|
300
|
-
isAutoincrement: false;
|
|
301
|
-
hasRuntimeDefault: false;
|
|
302
|
-
enumValues: undefined;
|
|
303
|
-
identity: undefined;
|
|
304
|
-
generated: undefined;
|
|
305
|
-
}>;
|
|
306
|
-
organization_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_organizations", import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
307
|
-
name: string;
|
|
308
|
-
tableName: "auth_organizations";
|
|
309
|
-
dataType: "string";
|
|
310
|
-
data: string;
|
|
311
|
-
driverParam: string;
|
|
312
|
-
notNull: true;
|
|
313
|
-
hasDefault: false;
|
|
314
|
-
isPrimaryKey: false;
|
|
315
|
-
isAutoincrement: false;
|
|
316
|
-
hasRuntimeDefault: false;
|
|
317
|
-
enumValues: undefined;
|
|
318
|
-
identity: undefined;
|
|
319
|
-
generated: undefined;
|
|
320
|
-
}>;
|
|
321
|
-
updated_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_organizations", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
322
|
-
name: string;
|
|
323
|
-
tableName: "auth_organizations";
|
|
324
|
-
dataType: "number int53";
|
|
325
|
-
data: number;
|
|
326
|
-
driverParam: string | number;
|
|
327
|
-
notNull: true;
|
|
328
|
-
hasDefault: false;
|
|
329
|
-
isPrimaryKey: false;
|
|
330
|
-
isAutoincrement: false;
|
|
331
|
-
hasRuntimeDefault: false;
|
|
332
|
-
enumValues: undefined;
|
|
333
|
-
identity: undefined;
|
|
334
|
-
generated: undefined;
|
|
335
|
-
}>;
|
|
336
|
-
};
|
|
337
|
-
dialect: "pg";
|
|
338
|
-
}>;
|
|
339
|
-
export declare const createNeonOrganizationStore: (databaseUrl: string) => OrganizationStore;
|
|
340
|
-
export declare const createPostgresOrganizationStore: <DB extends AnyPgDatabase>(db: DB) => OrganizationStore;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { type AnyPgDatabase } from '../stores/postgres';
|
|
2
|
-
import type { PasswordlessTokenStore } from './types';
|
|
3
|
-
export declare const passwordlessTokensTable: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
4
|
-
name: "auth_passwordless_tokens";
|
|
5
|
-
schema: undefined;
|
|
6
|
-
columns: {
|
|
7
|
-
email: import("drizzle-orm/pg-core").PgBuildColumn<"auth_passwordless_tokens", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
8
|
-
name: string;
|
|
9
|
-
tableName: "auth_passwordless_tokens";
|
|
10
|
-
dataType: "string";
|
|
11
|
-
data: string;
|
|
12
|
-
driverParam: string;
|
|
13
|
-
notNull: true;
|
|
14
|
-
hasDefault: false;
|
|
15
|
-
isPrimaryKey: false;
|
|
16
|
-
isAutoincrement: false;
|
|
17
|
-
hasRuntimeDefault: false;
|
|
18
|
-
enumValues: undefined;
|
|
19
|
-
identity: undefined;
|
|
20
|
-
generated: undefined;
|
|
21
|
-
}>;
|
|
22
|
-
expires_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_passwordless_tokens", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
23
|
-
name: string;
|
|
24
|
-
tableName: "auth_passwordless_tokens";
|
|
25
|
-
dataType: "number int53";
|
|
26
|
-
data: number;
|
|
27
|
-
driverParam: string | number;
|
|
28
|
-
notNull: true;
|
|
29
|
-
hasDefault: false;
|
|
30
|
-
isPrimaryKey: false;
|
|
31
|
-
isAutoincrement: false;
|
|
32
|
-
hasRuntimeDefault: false;
|
|
33
|
-
enumValues: undefined;
|
|
34
|
-
identity: undefined;
|
|
35
|
-
generated: undefined;
|
|
36
|
-
}>;
|
|
37
|
-
token_hash: import("drizzle-orm/pg-core").PgBuildColumn<"auth_passwordless_tokens", import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
38
|
-
name: string;
|
|
39
|
-
tableName: "auth_passwordless_tokens";
|
|
40
|
-
dataType: "string";
|
|
41
|
-
data: string;
|
|
42
|
-
driverParam: string;
|
|
43
|
-
notNull: true;
|
|
44
|
-
hasDefault: false;
|
|
45
|
-
isPrimaryKey: false;
|
|
46
|
-
isAutoincrement: false;
|
|
47
|
-
hasRuntimeDefault: false;
|
|
48
|
-
enumValues: undefined;
|
|
49
|
-
identity: undefined;
|
|
50
|
-
generated: undefined;
|
|
51
|
-
}>;
|
|
52
|
-
};
|
|
53
|
-
dialect: "pg";
|
|
54
|
-
}>;
|
|
55
|
-
export declare const createNeonPasswordlessTokenStore: (databaseUrl: string) => PasswordlessTokenStore;
|
|
56
|
-
export declare const createPostgresPasswordlessTokenStore: <DB extends AnyPgDatabase>(db: DB) => PasswordlessTokenStore;
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { type AnyPgDatabase } from '../stores/postgres';
|
|
2
|
-
import type { SetupCapability, SetupSessionStore } from './types';
|
|
3
|
-
export declare const setupSessionsTable: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
4
|
-
name: "auth_setup_sessions";
|
|
5
|
-
schema: undefined;
|
|
6
|
-
columns: {
|
|
7
|
-
capabilities: import("drizzle-orm/pg-core").PgBuildColumn<"auth_setup_sessions", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, SetupCapability[]>>>, {
|
|
8
|
-
name: string;
|
|
9
|
-
tableName: "auth_setup_sessions";
|
|
10
|
-
dataType: "object json";
|
|
11
|
-
data: SetupCapability[];
|
|
12
|
-
driverParam: unknown;
|
|
13
|
-
notNull: true;
|
|
14
|
-
hasDefault: true;
|
|
15
|
-
isPrimaryKey: false;
|
|
16
|
-
isAutoincrement: false;
|
|
17
|
-
hasRuntimeDefault: false;
|
|
18
|
-
enumValues: undefined;
|
|
19
|
-
identity: undefined;
|
|
20
|
-
generated: undefined;
|
|
21
|
-
}>;
|
|
22
|
-
created_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_setup_sessions", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
23
|
-
name: string;
|
|
24
|
-
tableName: "auth_setup_sessions";
|
|
25
|
-
dataType: "number int53";
|
|
26
|
-
data: number;
|
|
27
|
-
driverParam: string | number;
|
|
28
|
-
notNull: true;
|
|
29
|
-
hasDefault: false;
|
|
30
|
-
isPrimaryKey: false;
|
|
31
|
-
isAutoincrement: false;
|
|
32
|
-
hasRuntimeDefault: false;
|
|
33
|
-
enumValues: undefined;
|
|
34
|
-
identity: undefined;
|
|
35
|
-
generated: undefined;
|
|
36
|
-
}>;
|
|
37
|
-
created_by: import("drizzle-orm/pg-core").PgBuildColumn<"auth_setup_sessions", import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>, {
|
|
38
|
-
name: string;
|
|
39
|
-
tableName: "auth_setup_sessions";
|
|
40
|
-
dataType: "string";
|
|
41
|
-
data: string;
|
|
42
|
-
driverParam: string;
|
|
43
|
-
notNull: false;
|
|
44
|
-
hasDefault: false;
|
|
45
|
-
isPrimaryKey: false;
|
|
46
|
-
isAutoincrement: false;
|
|
47
|
-
hasRuntimeDefault: false;
|
|
48
|
-
enumValues: undefined;
|
|
49
|
-
identity: undefined;
|
|
50
|
-
generated: undefined;
|
|
51
|
-
}>;
|
|
52
|
-
expires_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_setup_sessions", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
53
|
-
name: string;
|
|
54
|
-
tableName: "auth_setup_sessions";
|
|
55
|
-
dataType: "number int53";
|
|
56
|
-
data: number;
|
|
57
|
-
driverParam: string | number;
|
|
58
|
-
notNull: true;
|
|
59
|
-
hasDefault: false;
|
|
60
|
-
isPrimaryKey: false;
|
|
61
|
-
isAutoincrement: false;
|
|
62
|
-
hasRuntimeDefault: false;
|
|
63
|
-
enumValues: undefined;
|
|
64
|
-
identity: undefined;
|
|
65
|
-
generated: undefined;
|
|
66
|
-
}>;
|
|
67
|
-
organization_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_setup_sessions", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
68
|
-
name: string;
|
|
69
|
-
tableName: "auth_setup_sessions";
|
|
70
|
-
dataType: "string";
|
|
71
|
-
data: string;
|
|
72
|
-
driverParam: string;
|
|
73
|
-
notNull: true;
|
|
74
|
-
hasDefault: false;
|
|
75
|
-
isPrimaryKey: false;
|
|
76
|
-
isAutoincrement: false;
|
|
77
|
-
hasRuntimeDefault: false;
|
|
78
|
-
enumValues: undefined;
|
|
79
|
-
identity: undefined;
|
|
80
|
-
generated: undefined;
|
|
81
|
-
}>;
|
|
82
|
-
setup_session_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_setup_sessions", import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
83
|
-
name: string;
|
|
84
|
-
tableName: "auth_setup_sessions";
|
|
85
|
-
dataType: "string";
|
|
86
|
-
data: string;
|
|
87
|
-
driverParam: string;
|
|
88
|
-
notNull: true;
|
|
89
|
-
hasDefault: false;
|
|
90
|
-
isPrimaryKey: false;
|
|
91
|
-
isAutoincrement: false;
|
|
92
|
-
hasRuntimeDefault: false;
|
|
93
|
-
enumValues: undefined;
|
|
94
|
-
identity: undefined;
|
|
95
|
-
generated: undefined;
|
|
96
|
-
}>;
|
|
97
|
-
token_hash: import("drizzle-orm/pg-core").PgBuildColumn<"auth_setup_sessions", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
98
|
-
name: string;
|
|
99
|
-
tableName: "auth_setup_sessions";
|
|
100
|
-
dataType: "string";
|
|
101
|
-
data: string;
|
|
102
|
-
driverParam: string;
|
|
103
|
-
notNull: true;
|
|
104
|
-
hasDefault: false;
|
|
105
|
-
isPrimaryKey: false;
|
|
106
|
-
isAutoincrement: false;
|
|
107
|
-
hasRuntimeDefault: false;
|
|
108
|
-
enumValues: undefined;
|
|
109
|
-
identity: undefined;
|
|
110
|
-
generated: undefined;
|
|
111
|
-
}>;
|
|
112
|
-
};
|
|
113
|
-
dialect: "pg";
|
|
114
|
-
}>;
|
|
115
|
-
export declare const createNeonSetupSessionStore: (databaseUrl: string) => SetupSessionStore;
|
|
116
|
-
export declare const createPostgresSetupSessionStore: <DB extends AnyPgDatabase>(db: DB) => SetupSessionStore;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { type AnyPgDatabase } from '../stores/postgres';
|
|
2
|
-
import type { RoleStore } from './types';
|
|
3
|
-
export declare const rolesTable: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
4
|
-
name: "auth_roles";
|
|
5
|
-
schema: undefined;
|
|
6
|
-
columns: {
|
|
7
|
-
created_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_roles", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
8
|
-
name: string;
|
|
9
|
-
tableName: "auth_roles";
|
|
10
|
-
dataType: "number int53";
|
|
11
|
-
data: number;
|
|
12
|
-
driverParam: string | number;
|
|
13
|
-
notNull: true;
|
|
14
|
-
hasDefault: false;
|
|
15
|
-
isPrimaryKey: false;
|
|
16
|
-
isAutoincrement: false;
|
|
17
|
-
hasRuntimeDefault: false;
|
|
18
|
-
enumValues: undefined;
|
|
19
|
-
identity: undefined;
|
|
20
|
-
generated: undefined;
|
|
21
|
-
}>;
|
|
22
|
-
organization_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_roles", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>>, {
|
|
23
|
-
name: string;
|
|
24
|
-
tableName: "auth_roles";
|
|
25
|
-
dataType: "string";
|
|
26
|
-
data: string;
|
|
27
|
-
driverParam: string;
|
|
28
|
-
notNull: true;
|
|
29
|
-
hasDefault: true;
|
|
30
|
-
isPrimaryKey: false;
|
|
31
|
-
isAutoincrement: false;
|
|
32
|
-
hasRuntimeDefault: false;
|
|
33
|
-
enumValues: undefined;
|
|
34
|
-
identity: undefined;
|
|
35
|
-
generated: undefined;
|
|
36
|
-
}>;
|
|
37
|
-
permissions: import("drizzle-orm/pg-core").PgBuildColumn<"auth_roles", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, string[]>>>, {
|
|
38
|
-
name: string;
|
|
39
|
-
tableName: "auth_roles";
|
|
40
|
-
dataType: "object json";
|
|
41
|
-
data: string[];
|
|
42
|
-
driverParam: unknown;
|
|
43
|
-
notNull: true;
|
|
44
|
-
hasDefault: true;
|
|
45
|
-
isPrimaryKey: false;
|
|
46
|
-
isAutoincrement: false;
|
|
47
|
-
hasRuntimeDefault: false;
|
|
48
|
-
enumValues: undefined;
|
|
49
|
-
identity: undefined;
|
|
50
|
-
generated: undefined;
|
|
51
|
-
}>;
|
|
52
|
-
slug: import("drizzle-orm/pg-core").PgBuildColumn<"auth_roles", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
53
|
-
name: string;
|
|
54
|
-
tableName: "auth_roles";
|
|
55
|
-
dataType: "string";
|
|
56
|
-
data: string;
|
|
57
|
-
driverParam: string;
|
|
58
|
-
notNull: true;
|
|
59
|
-
hasDefault: false;
|
|
60
|
-
isPrimaryKey: false;
|
|
61
|
-
isAutoincrement: false;
|
|
62
|
-
hasRuntimeDefault: false;
|
|
63
|
-
enumValues: undefined;
|
|
64
|
-
identity: undefined;
|
|
65
|
-
generated: undefined;
|
|
66
|
-
}>;
|
|
67
|
-
updated_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_roles", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
68
|
-
name: string;
|
|
69
|
-
tableName: "auth_roles";
|
|
70
|
-
dataType: "number int53";
|
|
71
|
-
data: number;
|
|
72
|
-
driverParam: string | number;
|
|
73
|
-
notNull: true;
|
|
74
|
-
hasDefault: false;
|
|
75
|
-
isPrimaryKey: false;
|
|
76
|
-
isAutoincrement: false;
|
|
77
|
-
hasRuntimeDefault: false;
|
|
78
|
-
enumValues: undefined;
|
|
79
|
-
identity: undefined;
|
|
80
|
-
generated: undefined;
|
|
81
|
-
}>;
|
|
82
|
-
};
|
|
83
|
-
dialect: "pg";
|
|
84
|
-
}>;
|
|
85
|
-
export declare const createNeonRoleStore: (databaseUrl: string) => RoleStore;
|
|
86
|
-
export declare const createPostgresRoleStore: <DB extends AnyPgDatabase>(db: DB) => RoleStore;
|
package/dist/roles/resolver.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { OrganizationStore } from '../organizations/types';
|
|
2
|
-
import type { OrganizationId } from '../tenancy';
|
|
3
|
-
import type { RoleStore } from './types';
|
|
4
|
-
export declare const createMembershipPermissionResolver: <UserType>({ getUserId, organizationStore, roleStore }: {
|
|
5
|
-
getUserId: (user: UserType) => string;
|
|
6
|
-
organizationStore: OrganizationStore;
|
|
7
|
-
roleStore: RoleStore;
|
|
8
|
-
}) => ({ organizationId, permission, user }: {
|
|
9
|
-
organizationId?: OrganizationId;
|
|
10
|
-
permission: string;
|
|
11
|
-
user: UserType;
|
|
12
|
-
}) => Promise<boolean>;
|
|
13
|
-
export declare const resolvePermissions: ({ organizationId, roleStore, roles }: {
|
|
14
|
-
organizationId?: OrganizationId;
|
|
15
|
-
roleStore: RoleStore;
|
|
16
|
-
roles: string[];
|
|
17
|
-
}) => Promise<Set<string>>;
|