@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,359 +0,0 @@
|
|
|
1
|
-
import { type AnyPgDatabase } from '../stores/postgres';
|
|
2
|
-
import type { AccessTokenStore, ApiClientStore, ApiKeyStore } from './types';
|
|
3
|
-
export declare const accessTokensTable: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
4
|
-
name: "auth_access_tokens";
|
|
5
|
-
schema: undefined;
|
|
6
|
-
columns: {
|
|
7
|
-
client_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_access_tokens", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
8
|
-
name: string;
|
|
9
|
-
tableName: "auth_access_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
|
-
created_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_access_tokens", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
23
|
-
name: string;
|
|
24
|
-
tableName: "auth_access_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
|
-
expires_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_access_tokens", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
38
|
-
name: string;
|
|
39
|
-
tableName: "auth_access_tokens";
|
|
40
|
-
dataType: "number int53";
|
|
41
|
-
data: number;
|
|
42
|
-
driverParam: string | number;
|
|
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
|
-
hashed_token: import("drizzle-orm/pg-core").PgBuildColumn<"auth_access_tokens", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
53
|
-
name: string;
|
|
54
|
-
tableName: "auth_access_tokens";
|
|
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
|
-
owner_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_access_tokens", import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>, {
|
|
68
|
-
name: string;
|
|
69
|
-
tableName: "auth_access_tokens";
|
|
70
|
-
dataType: "string";
|
|
71
|
-
data: string;
|
|
72
|
-
driverParam: string;
|
|
73
|
-
notNull: false;
|
|
74
|
-
hasDefault: false;
|
|
75
|
-
isPrimaryKey: false;
|
|
76
|
-
isAutoincrement: false;
|
|
77
|
-
hasRuntimeDefault: false;
|
|
78
|
-
enumValues: undefined;
|
|
79
|
-
identity: undefined;
|
|
80
|
-
generated: undefined;
|
|
81
|
-
}>;
|
|
82
|
-
scopes: import("drizzle-orm/pg-core").PgBuildColumn<"auth_access_tokens", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").SetDimensions<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, 1>>, {
|
|
83
|
-
name: string;
|
|
84
|
-
tableName: "auth_access_tokens";
|
|
85
|
-
dataType: "string";
|
|
86
|
-
data: string[];
|
|
87
|
-
driverParam: string | 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_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_access_tokens", import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
98
|
-
name: string;
|
|
99
|
-
tableName: "auth_access_tokens";
|
|
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 apiClientsTable: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
116
|
-
name: "auth_api_clients";
|
|
117
|
-
schema: undefined;
|
|
118
|
-
columns: {
|
|
119
|
-
client_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_api_clients", import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
120
|
-
name: string;
|
|
121
|
-
tableName: "auth_api_clients";
|
|
122
|
-
dataType: "string";
|
|
123
|
-
data: string;
|
|
124
|
-
driverParam: string;
|
|
125
|
-
notNull: true;
|
|
126
|
-
hasDefault: false;
|
|
127
|
-
isPrimaryKey: false;
|
|
128
|
-
isAutoincrement: false;
|
|
129
|
-
hasRuntimeDefault: false;
|
|
130
|
-
enumValues: undefined;
|
|
131
|
-
identity: undefined;
|
|
132
|
-
generated: undefined;
|
|
133
|
-
}>;
|
|
134
|
-
created_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_api_clients", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
135
|
-
name: string;
|
|
136
|
-
tableName: "auth_api_clients";
|
|
137
|
-
dataType: "number int53";
|
|
138
|
-
data: number;
|
|
139
|
-
driverParam: string | number;
|
|
140
|
-
notNull: true;
|
|
141
|
-
hasDefault: false;
|
|
142
|
-
isPrimaryKey: false;
|
|
143
|
-
isAutoincrement: false;
|
|
144
|
-
hasRuntimeDefault: false;
|
|
145
|
-
enumValues: undefined;
|
|
146
|
-
identity: undefined;
|
|
147
|
-
generated: undefined;
|
|
148
|
-
}>;
|
|
149
|
-
hashed_secret: import("drizzle-orm/pg-core").PgBuildColumn<"auth_api_clients", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
150
|
-
name: string;
|
|
151
|
-
tableName: "auth_api_clients";
|
|
152
|
-
dataType: "string";
|
|
153
|
-
data: string;
|
|
154
|
-
driverParam: string;
|
|
155
|
-
notNull: true;
|
|
156
|
-
hasDefault: false;
|
|
157
|
-
isPrimaryKey: false;
|
|
158
|
-
isAutoincrement: false;
|
|
159
|
-
hasRuntimeDefault: false;
|
|
160
|
-
enumValues: undefined;
|
|
161
|
-
identity: undefined;
|
|
162
|
-
generated: undefined;
|
|
163
|
-
}>;
|
|
164
|
-
name: import("drizzle-orm/pg-core").PgBuildColumn<"auth_api_clients", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
165
|
-
name: string;
|
|
166
|
-
tableName: "auth_api_clients";
|
|
167
|
-
dataType: "string";
|
|
168
|
-
data: string;
|
|
169
|
-
driverParam: string;
|
|
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
|
-
owner_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_api_clients", import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>, {
|
|
180
|
-
name: string;
|
|
181
|
-
tableName: "auth_api_clients";
|
|
182
|
-
dataType: "string";
|
|
183
|
-
data: string;
|
|
184
|
-
driverParam: string;
|
|
185
|
-
notNull: false;
|
|
186
|
-
hasDefault: false;
|
|
187
|
-
isPrimaryKey: false;
|
|
188
|
-
isAutoincrement: false;
|
|
189
|
-
hasRuntimeDefault: false;
|
|
190
|
-
enumValues: undefined;
|
|
191
|
-
identity: undefined;
|
|
192
|
-
generated: undefined;
|
|
193
|
-
}>;
|
|
194
|
-
scopes: import("drizzle-orm/pg-core").PgBuildColumn<"auth_api_clients", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").SetDimensions<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, 1>>, {
|
|
195
|
-
name: string;
|
|
196
|
-
tableName: "auth_api_clients";
|
|
197
|
-
dataType: "string";
|
|
198
|
-
data: string[];
|
|
199
|
-
driverParam: string | string[];
|
|
200
|
-
notNull: true;
|
|
201
|
-
hasDefault: false;
|
|
202
|
-
isPrimaryKey: false;
|
|
203
|
-
isAutoincrement: false;
|
|
204
|
-
hasRuntimeDefault: false;
|
|
205
|
-
enumValues: undefined;
|
|
206
|
-
identity: undefined;
|
|
207
|
-
generated: undefined;
|
|
208
|
-
}>;
|
|
209
|
-
};
|
|
210
|
-
dialect: "pg";
|
|
211
|
-
}>;
|
|
212
|
-
export declare const apiKeysTable: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
213
|
-
name: "auth_api_keys";
|
|
214
|
-
schema: undefined;
|
|
215
|
-
columns: {
|
|
216
|
-
created_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_api_keys", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
217
|
-
name: string;
|
|
218
|
-
tableName: "auth_api_keys";
|
|
219
|
-
dataType: "number int53";
|
|
220
|
-
data: number;
|
|
221
|
-
driverParam: string | number;
|
|
222
|
-
notNull: true;
|
|
223
|
-
hasDefault: false;
|
|
224
|
-
isPrimaryKey: false;
|
|
225
|
-
isAutoincrement: false;
|
|
226
|
-
hasRuntimeDefault: false;
|
|
227
|
-
enumValues: undefined;
|
|
228
|
-
identity: undefined;
|
|
229
|
-
generated: undefined;
|
|
230
|
-
}>;
|
|
231
|
-
expires_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_api_keys", import("drizzle-orm/pg-core").PgBigInt53Builder, {
|
|
232
|
-
name: string;
|
|
233
|
-
tableName: "auth_api_keys";
|
|
234
|
-
dataType: "number int53";
|
|
235
|
-
data: number;
|
|
236
|
-
driverParam: string | number;
|
|
237
|
-
notNull: false;
|
|
238
|
-
hasDefault: false;
|
|
239
|
-
isPrimaryKey: false;
|
|
240
|
-
isAutoincrement: false;
|
|
241
|
-
hasRuntimeDefault: false;
|
|
242
|
-
enumValues: undefined;
|
|
243
|
-
identity: undefined;
|
|
244
|
-
generated: undefined;
|
|
245
|
-
}>;
|
|
246
|
-
hashed_key: import("drizzle-orm/pg-core").PgBuildColumn<"auth_api_keys", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
247
|
-
name: string;
|
|
248
|
-
tableName: "auth_api_keys";
|
|
249
|
-
dataType: "string";
|
|
250
|
-
data: string;
|
|
251
|
-
driverParam: string;
|
|
252
|
-
notNull: true;
|
|
253
|
-
hasDefault: false;
|
|
254
|
-
isPrimaryKey: false;
|
|
255
|
-
isAutoincrement: false;
|
|
256
|
-
hasRuntimeDefault: false;
|
|
257
|
-
enumValues: undefined;
|
|
258
|
-
identity: undefined;
|
|
259
|
-
generated: undefined;
|
|
260
|
-
}>;
|
|
261
|
-
key_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_api_keys", import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
262
|
-
name: string;
|
|
263
|
-
tableName: "auth_api_keys";
|
|
264
|
-
dataType: "string";
|
|
265
|
-
data: string;
|
|
266
|
-
driverParam: string;
|
|
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
|
-
last_used_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_api_keys", import("drizzle-orm/pg-core").PgBigInt53Builder, {
|
|
277
|
-
name: string;
|
|
278
|
-
tableName: "auth_api_keys";
|
|
279
|
-
dataType: "number int53";
|
|
280
|
-
data: number;
|
|
281
|
-
driverParam: string | number;
|
|
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_api_keys", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
292
|
-
name: string;
|
|
293
|
-
tableName: "auth_api_keys";
|
|
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
|
-
owner_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_api_keys", import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>, {
|
|
307
|
-
name: string;
|
|
308
|
-
tableName: "auth_api_keys";
|
|
309
|
-
dataType: "string";
|
|
310
|
-
data: string;
|
|
311
|
-
driverParam: string;
|
|
312
|
-
notNull: false;
|
|
313
|
-
hasDefault: false;
|
|
314
|
-
isPrimaryKey: false;
|
|
315
|
-
isAutoincrement: false;
|
|
316
|
-
hasRuntimeDefault: false;
|
|
317
|
-
enumValues: undefined;
|
|
318
|
-
identity: undefined;
|
|
319
|
-
generated: undefined;
|
|
320
|
-
}>;
|
|
321
|
-
prefix: import("drizzle-orm/pg-core").PgBuildColumn<"auth_api_keys", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
322
|
-
name: string;
|
|
323
|
-
tableName: "auth_api_keys";
|
|
324
|
-
dataType: "string";
|
|
325
|
-
data: string;
|
|
326
|
-
driverParam: string;
|
|
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
|
-
scopes: import("drizzle-orm/pg-core").PgBuildColumn<"auth_api_keys", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").SetDimensions<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, 1>>, {
|
|
337
|
-
name: string;
|
|
338
|
-
tableName: "auth_api_keys";
|
|
339
|
-
dataType: "string";
|
|
340
|
-
data: string[];
|
|
341
|
-
driverParam: string | string[];
|
|
342
|
-
notNull: true;
|
|
343
|
-
hasDefault: false;
|
|
344
|
-
isPrimaryKey: false;
|
|
345
|
-
isAutoincrement: false;
|
|
346
|
-
hasRuntimeDefault: false;
|
|
347
|
-
enumValues: undefined;
|
|
348
|
-
identity: undefined;
|
|
349
|
-
generated: undefined;
|
|
350
|
-
}>;
|
|
351
|
-
};
|
|
352
|
-
dialect: "pg";
|
|
353
|
-
}>;
|
|
354
|
-
export declare const createNeonAccessTokenStore: (databaseUrl: string) => AccessTokenStore;
|
|
355
|
-
export declare const createNeonApiClientStore: (databaseUrl: string) => ApiClientStore;
|
|
356
|
-
export declare const createNeonApiKeyStore: (databaseUrl: string) => ApiKeyStore;
|
|
357
|
-
export declare const createPostgresAccessTokenStore: <DB extends AnyPgDatabase>(db: DB) => AccessTokenStore;
|
|
358
|
-
export declare const createPostgresApiClientStore: <DB extends AnyPgDatabase>(db: DB) => ApiClientStore;
|
|
359
|
-
export declare const createPostgresApiKeyStore: <DB extends AnyPgDatabase>(db: DB) => ApiKeyStore;
|
package/dist/fga/config.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import type { FgaSchema, Warrant, WarrantStore } from './types';
|
|
2
|
-
export type FgaCache = {
|
|
3
|
-
clear: () => void | Promise<void>;
|
|
4
|
-
get: (key: string) => boolean | undefined | Promise<boolean | undefined>;
|
|
5
|
-
set: (key: string, value: boolean) => void | Promise<void>;
|
|
6
|
-
};
|
|
7
|
-
export type FgaConfig = {
|
|
8
|
-
cache?: FgaCache;
|
|
9
|
-
maxDepth?: number;
|
|
10
|
-
schema: FgaSchema;
|
|
11
|
-
warrantStore: WarrantStore;
|
|
12
|
-
};
|
|
13
|
-
export type CheckQuery = {
|
|
14
|
-
relation: string;
|
|
15
|
-
resourceId: string;
|
|
16
|
-
resourceType: string;
|
|
17
|
-
subjectId: string;
|
|
18
|
-
subjectType: string;
|
|
19
|
-
};
|
|
20
|
-
export type Subject = {
|
|
21
|
-
subjectId: string;
|
|
22
|
-
subjectType: string;
|
|
23
|
-
};
|
|
24
|
-
export type ObjectQuery = {
|
|
25
|
-
relation: string;
|
|
26
|
-
resourceType: string;
|
|
27
|
-
subjectId: string;
|
|
28
|
-
subjectType: string;
|
|
29
|
-
};
|
|
30
|
-
export declare const check: (config: FgaConfig, query: CheckQuery) => Promise<boolean>;
|
|
31
|
-
export declare const createInMemoryCheckCache: ({ maxEntries, ttlMs }?: {
|
|
32
|
-
maxEntries?: number;
|
|
33
|
-
ttlMs?: number;
|
|
34
|
-
}) => FgaCache;
|
|
35
|
-
export declare const createFgaEngine: (config: FgaConfig) => {
|
|
36
|
-
check: (query: CheckQuery) => Promise<boolean>;
|
|
37
|
-
deleteWarrant: (warrant: Warrant) => Promise<void>;
|
|
38
|
-
listObjects: (query: ObjectQuery) => Promise<string[]>;
|
|
39
|
-
listSubjects: (query: {
|
|
40
|
-
relation: string;
|
|
41
|
-
resourceId: string;
|
|
42
|
-
resourceType: string;
|
|
43
|
-
}) => Promise<Subject[]>;
|
|
44
|
-
writeWarrant: (warrant: Warrant) => Promise<void>;
|
|
45
|
-
};
|
|
46
|
-
export declare const deleteWarrant: (config: FgaConfig, warrant: Warrant) => Promise<void>;
|
|
47
|
-
export declare const listObjects: (config: FgaConfig, query: ObjectQuery) => Promise<string[]>;
|
|
48
|
-
export declare const listSubjects: (config: FgaConfig, query: {
|
|
49
|
-
relation: string;
|
|
50
|
-
resourceId: string;
|
|
51
|
-
resourceType: string;
|
|
52
|
-
}) => Promise<Subject[]>;
|
|
53
|
-
export declare const writeWarrant: (config: FgaConfig, warrant: Warrant) => Promise<void>;
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
import { type AnyPgDatabase } from '../stores/postgres';
|
|
2
|
-
import type { WarrantStore } from './types';
|
|
3
|
-
export declare const warrantsTable: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
4
|
-
name: "auth_fga_warrants";
|
|
5
|
-
schema: undefined;
|
|
6
|
-
columns: {
|
|
7
|
-
id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_fga_warrants", import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
8
|
-
name: string;
|
|
9
|
-
tableName: "auth_fga_warrants";
|
|
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
|
-
relation: import("drizzle-orm/pg-core").PgBuildColumn<"auth_fga_warrants", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
23
|
-
name: string;
|
|
24
|
-
tableName: "auth_fga_warrants";
|
|
25
|
-
dataType: "string";
|
|
26
|
-
data: string;
|
|
27
|
-
driverParam: string;
|
|
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
|
-
resource_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_fga_warrants", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
38
|
-
name: string;
|
|
39
|
-
tableName: "auth_fga_warrants";
|
|
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
|
-
resource_type: import("drizzle-orm/pg-core").PgBuildColumn<"auth_fga_warrants", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
53
|
-
name: string;
|
|
54
|
-
tableName: "auth_fga_warrants";
|
|
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
|
-
subject_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_fga_warrants", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
68
|
-
name: string;
|
|
69
|
-
tableName: "auth_fga_warrants";
|
|
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
|
-
subject_relation: import("drizzle-orm/pg-core").PgBuildColumn<"auth_fga_warrants", import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>, {
|
|
83
|
-
name: string;
|
|
84
|
-
tableName: "auth_fga_warrants";
|
|
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
|
-
subject_type: import("drizzle-orm/pg-core").PgBuildColumn<"auth_fga_warrants", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
98
|
-
name: string;
|
|
99
|
-
tableName: "auth_fga_warrants";
|
|
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 createNeonWarrantStore: (databaseUrl: string) => WarrantStore;
|
|
116
|
-
export declare const createPostgresWarrantStore: <DB extends AnyPgDatabase>(db: DB) => WarrantStore;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { RedisLike } from '../stores/redis';
|
|
2
|
-
import type { FgaCache } from './config';
|
|
3
|
-
export type RedisFgaCacheClient = RedisLike & {
|
|
4
|
-
keys?: (pattern: string) => Promise<string[]>;
|
|
5
|
-
};
|
|
6
|
-
type CreateRedisFgaCacheOptions = {
|
|
7
|
-
keyPrefix?: string;
|
|
8
|
-
ttlMs?: number;
|
|
9
|
-
};
|
|
10
|
-
export declare const createRedisFgaCache: (redis: RedisFgaCacheClient, { keyPrefix, ttlMs }?: CreateRedisFgaCacheOptions) => FgaCache;
|
|
11
|
-
export {};
|
package/dist/fga/schema.d.ts
DELETED
package/dist/fga/types.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export type Warrant = {
|
|
2
|
-
relation: string;
|
|
3
|
-
resourceId: string;
|
|
4
|
-
resourceType: string;
|
|
5
|
-
subjectId: string;
|
|
6
|
-
subjectRelation?: string;
|
|
7
|
-
subjectType: string;
|
|
8
|
-
};
|
|
9
|
-
export type WarrantStore = {
|
|
10
|
-
deleteWarrant: (warrant: Warrant) => Promise<void>;
|
|
11
|
-
listForResource: (resourceType: string, resourceId: string, relation: string) => Promise<Warrant[]>;
|
|
12
|
-
listResourceIds: (resourceType: string) => Promise<string[]>;
|
|
13
|
-
saveWarrant: (warrant: Warrant) => Promise<void>;
|
|
14
|
-
};
|
|
15
|
-
export type RelationRule = {
|
|
16
|
-
kind: 'computedUserset';
|
|
17
|
-
relation: string;
|
|
18
|
-
} | {
|
|
19
|
-
kind: 'self';
|
|
20
|
-
} | {
|
|
21
|
-
kind: 'tupleToUserset';
|
|
22
|
-
relation: string;
|
|
23
|
-
viaRelation: string;
|
|
24
|
-
} | {
|
|
25
|
-
kind: 'union';
|
|
26
|
-
rules: RelationRule[];
|
|
27
|
-
};
|
|
28
|
-
export type FgaSchema = Record<string, Record<string, RelationRule>>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { BlockMigrations } from './types';
|
|
2
|
-
export type BlockName = 'adaptive' | 'agents' | 'apikeys' | 'audit' | 'credentials' | 'fga' | 'linkedProviders' | 'lockout' | 'mfa' | 'oidc' | 'organizations' | 'passwordless' | 'portal' | 'roles' | 'scim' | 'sessions' | 'sso' | 'vault' | 'vc' | 'webauthn' | 'webhooks';
|
|
3
|
-
export declare const blockMigrations: Record<BlockName, BlockMigrations>;
|
|
4
|
-
export { runMigrations } from './runner';
|
|
5
|
-
export type { Migration, BlockMigrations } from './types';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { type BlockName } from './index';
|
|
2
|
-
export type RunMigrationsOptions = {
|
|
3
|
-
databaseUrl: string;
|
|
4
|
-
/** Subset of blocks to apply. Omit to apply every block the package ships. */
|
|
5
|
-
blocks?: BlockName[];
|
|
6
|
-
/** Optional logger; defaults to console.log. Pass `() => undefined` for silent mode. */
|
|
7
|
-
log?: (message: string) => void;
|
|
8
|
-
};
|
|
9
|
-
export type MigrationRunResult = {
|
|
10
|
-
applied: string[];
|
|
11
|
-
skipped: string[];
|
|
12
|
-
};
|
|
13
|
-
export declare const runMigrations: ({ blocks, databaseUrl, log }: RunMigrationsOptions) => Promise<MigrationRunResult>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export type Migration = {
|
|
2
|
-
/** Stable identifier — stored in `auth_migrations` to track applied state. Must be
|
|
3
|
-
* monotonically ordered within a block (e.g. `0001_init`, `0002_add_foo_column`). */
|
|
4
|
-
id: string;
|
|
5
|
-
/** Idempotent SQL. Use `CREATE TABLE IF NOT EXISTS` so re-running is a no-op even if
|
|
6
|
-
* the consumer wired the tables by hand before adopting the migration runner. */
|
|
7
|
-
sql: string;
|
|
8
|
-
};
|
|
9
|
-
export type BlockMigrations = {
|
|
10
|
-
/** Block name as used in the CLI's `--blocks` flag and in `runMigrations({ blocks })`.
|
|
11
|
-
* Convention: same string as the `src/<block>/` directory. */
|
|
12
|
-
block: string;
|
|
13
|
-
migrations: Migration[];
|
|
14
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { OAuthClient } from './types';
|
|
2
|
-
export type ClientIdMetadataDocument = {
|
|
3
|
-
client_id: string;
|
|
4
|
-
client_name?: string;
|
|
5
|
-
redirect_uris: string[];
|
|
6
|
-
grant_types?: string[];
|
|
7
|
-
response_types?: string[];
|
|
8
|
-
token_endpoint_auth_method?: 'none' | 'private_key_jwt' | 'self_signed_tls_client_auth';
|
|
9
|
-
application_type?: 'native' | 'web';
|
|
10
|
-
client_uri?: string;
|
|
11
|
-
logo_uri?: string;
|
|
12
|
-
policy_uri?: string;
|
|
13
|
-
tos_uri?: string;
|
|
14
|
-
jwks_uri?: string;
|
|
15
|
-
jwks?: {
|
|
16
|
-
keys: JsonWebKey[];
|
|
17
|
-
};
|
|
18
|
-
scope?: string;
|
|
19
|
-
};
|
|
20
|
-
export declare const validateClientIdMetadataDocument: (document: ClientIdMetadataDocument, expectedClientId: string) => string[];
|
|
21
|
-
export declare const clientIdMetadataToOAuthClient: (document: ClientIdMetadataDocument) => OAuthClient;
|
|
22
|
-
/** Resolve an HTTPS URL client_id into OAuth client metadata without prior
|
|
23
|
-
registration. Network access is injected so callers can enforce DNS/IP/redirect
|
|
24
|
-
policy with @absolutejs/egress. Redirects are forbidden and documents are capped
|
|
25
|
-
at 5 KiB per the IETF Client ID Metadata Document security guidance. */
|
|
26
|
-
export declare const createClientIdMetadataResolver: ({ fetch: fetcher, allow, cacheTtlMs, maxBytes, now }: {
|
|
27
|
-
fetch: (input: string | URL, init?: RequestInit) => Promise<Response>;
|
|
28
|
-
allow?: (clientId: string) => boolean | Promise<boolean>;
|
|
29
|
-
cacheTtlMs?: number;
|
|
30
|
-
maxBytes?: number;
|
|
31
|
-
now?: () => number;
|
|
32
|
-
}) => (clientId: string) => Promise<OAuthClient | undefined>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { AuthorizationCodeStore, BackchannelAuthStore, ClientAssertionJtiStore, ClientRegistrationTokenStore, DeviceAuthorizationStore, InitialAccessTokenStore, LogoutDeliveryStore, OAuthClient, OAuthClientStore, OidcRefreshTokenStore, PushedAuthorizationRequestStore } from './types';
|
|
2
|
-
export declare const createInMemoryAuthorizationCodeStore: () => AuthorizationCodeStore;
|
|
3
|
-
export declare const createInMemoryBackchannelAuthStore: () => BackchannelAuthStore;
|
|
4
|
-
export declare const createInMemoryClientAssertionJtiStore: () => ClientAssertionJtiStore;
|
|
5
|
-
export declare const createInMemoryClientRegistrationTokenStore: () => ClientRegistrationTokenStore;
|
|
6
|
-
export declare const createInMemoryDeviceAuthorizationStore: () => DeviceAuthorizationStore;
|
|
7
|
-
export declare const createInMemoryInitialAccessTokenStore: (initialHashes?: string[]) => InitialAccessTokenStore;
|
|
8
|
-
export declare const createInMemoryLogoutDeliveryStore: () => LogoutDeliveryStore;
|
|
9
|
-
export declare const createInMemoryOAuthClientStore: (clients: OAuthClient[]) => OAuthClientStore;
|
|
10
|
-
export declare const createInMemoryOidcRefreshTokenStore: () => OidcRefreshTokenStore;
|
|
11
|
-
export declare const createInMemoryPushedAuthorizationRequestStore: () => PushedAuthorizationRequestStore;
|