@absolutejs/auth 0.69.2 → 0.69.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/client/index.js +11 -8
- package/dist/client/index.js.map +4 -4
- package/dist/client/mobile.js +11 -8
- package/dist/client/mobile.js.map +4 -4
- package/dist/index.js +3 -3
- package/dist/index.js.map +4 -4
- package/dist/server.js +3 -3
- package/dist/server.js.map +4 -4
- package/package.json +2 -6
- package/dist/abuse/captcha.d.ts +0 -11
- package/dist/abuse/config.d.ts +0 -29
- 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/index.d.ts +0 -13
- package/dist/agents/oidcAdapter.d.ts +0 -20
- package/dist/agents/postgresStores.d.ts +0 -1176
- 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/audit/export.d.ts +0 -2
- package/dist/audit/inMemoryAuditStore.d.ts +0 -2
- package/dist/audit/integrity.d.ts +0 -19
- package/dist/audit/postgresAuditStore.d.ts +0 -116
- package/dist/audit/siem.d.ts +0 -11
- package/dist/cli/import/auth0.d.ts +0 -2
- package/dist/cli/import/clerk.d.ts +0 -2
- package/dist/cli/import/index.d.ts +0 -10
- package/dist/cli/import/lucia.d.ts +0 -2
- package/dist/cli/import/nextauth.d.ts +0 -2
- package/dist/cli/import/supabase.d.ts +0 -2
- package/dist/cli/import/types.d.ts +0 -27
- package/dist/cli/migrate.d.ts +0 -2
- package/dist/client/components/react/SignIn.d.ts +0 -32
- package/dist/client/components/react/SignUp.d.ts +0 -29
- package/dist/client/components/react/UserButton.d.ts +0 -36
- package/dist/client/createAuthClient.d.ts +0 -311
- package/dist/client/index.d.ts +0 -6
- package/dist/client/mobile.d.ts +0 -85
- package/dist/client/passkeyHelpers.d.ts +0 -19
- package/dist/client/react.d.ts +0 -87
- package/dist/client/runtimeTransport.d.ts +0 -3
- package/dist/client/sessionExpiry.d.ts +0 -37
- package/dist/client/solid.d.ts +0 -86
- package/dist/client/svelte.d.ts +0 -86
- package/dist/client/vue.d.ts +0 -88
- package/dist/compliance/redaction.d.ts +0 -8
- 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/fingerprint-client/index.d.ts +0 -26
- package/dist/htmx/index.d.ts +0 -2
- package/dist/index.d.ts +0 -4042
- package/dist/linkedProviders/index.d.ts +0 -3
- package/dist/lockout/inMemoryLockoutStore.d.ts +0 -2
- package/dist/lockout/postgresLockoutStore.d.ts +0 -71
- package/dist/lockout/redisLockoutStore.d.ts +0 -3
- package/dist/manifest.d.ts +0 -19
- package/dist/manifest.json +0 -386
- package/dist/mfa/postgresMfaStore.d.ts +0 -266
- package/dist/migrations/generate.d.ts +0 -2
- package/dist/migrations/index.d.ts +0 -6
- package/dist/migrations/runner.d.ts +0 -22
- package/dist/migrations/types.d.ts +0 -14
- package/dist/oidc/clientIdMetadata.d.ts +0 -28
- package/dist/oidc/inMemoryStores.d.ts +0 -12
- package/dist/oidc/inMemoryVciStores.d.ts +0 -3
- package/dist/oidc/index.d.ts +0 -14
- package/dist/oidc/operator.d.ts +0 -14
- package/dist/oidc/postgresStores.d.ts +0 -1361
- package/dist/oidc/vciRoutes.d.ts +0 -56
- 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/plugins/denyDisposableEmail.d.ts +0 -7
- package/dist/plugins/discordAlert.d.ts +0 -7
- package/dist/plugins/geoBlock.d.ts +0 -8
- package/dist/plugins/index.d.ts +0 -12
- package/dist/plugins/pagerdutyAlert.d.ts +0 -9
- package/dist/plugins/posthogIdentify.d.ts +0 -7
- package/dist/plugins/slackAlert.d.ts +0 -7
- package/dist/portal/inMemorySetupSessionStore.d.ts +0 -2
- package/dist/portal/postgresSetupSessionStore.d.ts +0 -116
- package/dist/providers/index.d.ts +0 -2
- 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/saml.d.ts +0 -1
- package/dist/scim/inMemoryScimTokenStore.d.ts +0 -2
- package/dist/scim/postgresScimTokenStore.d.ts +0 -86
- package/dist/server.d.ts +0 -34
- package/dist/sso/inMemorySamlServiceProviderStore.d.ts +0 -2
- package/dist/sso/inMemorySsoConnectionStore.d.ts +0 -2
- package/dist/sso/nodeSamlAdapter.d.ts +0 -8
- package/dist/sso/postgresSamlServiceProviderStore.d.ts +0 -101
- package/dist/sso/postgresSsoConnectionStore.d.ts +0 -117
- package/dist/sso/samlIdpRoutes.d.ts +0 -268
- package/dist/vault/index.d.ts +0 -5
- package/dist/vc/inMemoryVpStores.d.ts +0 -2
- package/dist/vc/openid4vp.d.ts +0 -82
- package/dist/vc/postgresVcStores.d.ts +0 -300
- package/dist/vc/statusList.d.ts +0 -29
- package/dist/vc/statusListRoutes.d.ts +0 -169
- package/dist/vc/vpRoutes.d.ts +0 -224
- package/dist/webauthn/inMemoryWebAuthnCredentialStore.d.ts +0 -2
- package/dist/webauthn/postgresWebAuthnCredentialStore.d.ts +0 -146
- package/dist/webauthn/simpleWebAuthnAdapter.d.ts +0 -3
- package/dist/webauthn.d.ts +0 -1
- package/dist/webhooks/inMemoryStore.d.ts +0 -2
- package/dist/webhooks/postgresStore.d.ts +0 -116
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
import { type AnyPgDatabase } from '../stores/postgres';
|
|
2
|
-
import type { MFAStore } from './types';
|
|
3
|
-
export declare const mfaEnrollmentsTable: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
4
|
-
name: "auth_mfa_enrollments";
|
|
5
|
-
schema: undefined;
|
|
6
|
-
columns: {
|
|
7
|
-
backup_code_hashes: import("drizzle-orm/pg-core").PgBuildColumn<"auth_mfa_enrollments", 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[]>>>, {
|
|
8
|
-
name: string;
|
|
9
|
-
tableName: "auth_mfa_enrollments";
|
|
10
|
-
dataType: "object json";
|
|
11
|
-
data: string[];
|
|
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_mfa_enrollments", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
23
|
-
name: string;
|
|
24
|
-
tableName: "auth_mfa_enrollments";
|
|
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
|
-
last_used_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_mfa_enrollments", import("drizzle-orm/pg-core").PgBigInt53Builder, {
|
|
38
|
-
name: string;
|
|
39
|
-
tableName: "auth_mfa_enrollments";
|
|
40
|
-
dataType: "number int53";
|
|
41
|
-
data: number;
|
|
42
|
-
driverParam: string | number;
|
|
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
|
-
sms_challenge_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_mfa_enrollments", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
|
|
53
|
-
name: string;
|
|
54
|
-
tableName: "auth_mfa_enrollments";
|
|
55
|
-
dataType: "string";
|
|
56
|
-
data: string;
|
|
57
|
-
driverParam: string;
|
|
58
|
-
notNull: false;
|
|
59
|
-
hasDefault: false;
|
|
60
|
-
isPrimaryKey: false;
|
|
61
|
-
isAutoincrement: false;
|
|
62
|
-
hasRuntimeDefault: false;
|
|
63
|
-
enumValues: undefined;
|
|
64
|
-
identity: undefined;
|
|
65
|
-
generated: undefined;
|
|
66
|
-
}>;
|
|
67
|
-
sms_code_sent_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_mfa_enrollments", import("drizzle-orm/pg-core").PgBigInt53Builder, {
|
|
68
|
-
name: string;
|
|
69
|
-
tableName: "auth_mfa_enrollments";
|
|
70
|
-
dataType: "number int53";
|
|
71
|
-
data: number;
|
|
72
|
-
driverParam: string | number;
|
|
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
|
-
sms_failed_attempts: import("drizzle-orm/pg-core").PgBuildColumn<"auth_mfa_enrollments", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgSmallIntBuilder>>, {
|
|
83
|
-
name: string;
|
|
84
|
-
tableName: "auth_mfa_enrollments";
|
|
85
|
-
dataType: "number int16";
|
|
86
|
-
data: number;
|
|
87
|
-
driverParam: string | number;
|
|
88
|
-
notNull: true;
|
|
89
|
-
hasDefault: true;
|
|
90
|
-
isPrimaryKey: false;
|
|
91
|
-
isAutoincrement: false;
|
|
92
|
-
hasRuntimeDefault: false;
|
|
93
|
-
enumValues: undefined;
|
|
94
|
-
identity: undefined;
|
|
95
|
-
generated: undefined;
|
|
96
|
-
}>;
|
|
97
|
-
sms_pending_code_expires_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_mfa_enrollments", import("drizzle-orm/pg-core").PgBigInt53Builder, {
|
|
98
|
-
name: string;
|
|
99
|
-
tableName: "auth_mfa_enrollments";
|
|
100
|
-
dataType: "number int53";
|
|
101
|
-
data: number;
|
|
102
|
-
driverParam: string | number;
|
|
103
|
-
notNull: false;
|
|
104
|
-
hasDefault: false;
|
|
105
|
-
isPrimaryKey: false;
|
|
106
|
-
isAutoincrement: false;
|
|
107
|
-
hasRuntimeDefault: false;
|
|
108
|
-
enumValues: undefined;
|
|
109
|
-
identity: undefined;
|
|
110
|
-
generated: undefined;
|
|
111
|
-
}>;
|
|
112
|
-
sms_pending_code_hash: import("drizzle-orm/pg-core").PgBuildColumn<"auth_mfa_enrollments", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
|
|
113
|
-
name: string;
|
|
114
|
-
tableName: "auth_mfa_enrollments";
|
|
115
|
-
dataType: "string";
|
|
116
|
-
data: string;
|
|
117
|
-
driverParam: string;
|
|
118
|
-
notNull: false;
|
|
119
|
-
hasDefault: false;
|
|
120
|
-
isPrimaryKey: false;
|
|
121
|
-
isAutoincrement: false;
|
|
122
|
-
hasRuntimeDefault: false;
|
|
123
|
-
enumValues: undefined;
|
|
124
|
-
identity: undefined;
|
|
125
|
-
generated: undefined;
|
|
126
|
-
}>;
|
|
127
|
-
sms_pending_purpose: import("drizzle-orm/pg-core").PgBuildColumn<"auth_mfa_enrollments", import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, import("..").VerificationPurpose | undefined>, {
|
|
128
|
-
name: string;
|
|
129
|
-
tableName: "auth_mfa_enrollments";
|
|
130
|
-
dataType: "string";
|
|
131
|
-
data: import("..").VerificationPurpose | undefined;
|
|
132
|
-
driverParam: string;
|
|
133
|
-
notNull: false;
|
|
134
|
-
hasDefault: false;
|
|
135
|
-
isPrimaryKey: false;
|
|
136
|
-
isAutoincrement: false;
|
|
137
|
-
hasRuntimeDefault: false;
|
|
138
|
-
enumValues: undefined;
|
|
139
|
-
identity: undefined;
|
|
140
|
-
generated: undefined;
|
|
141
|
-
}>;
|
|
142
|
-
sms_phone: import("drizzle-orm/pg-core").PgBuildColumn<"auth_mfa_enrollments", import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>, {
|
|
143
|
-
name: string;
|
|
144
|
-
tableName: "auth_mfa_enrollments";
|
|
145
|
-
dataType: "string";
|
|
146
|
-
data: string;
|
|
147
|
-
driverParam: string;
|
|
148
|
-
notNull: false;
|
|
149
|
-
hasDefault: false;
|
|
150
|
-
isPrimaryKey: false;
|
|
151
|
-
isAutoincrement: false;
|
|
152
|
-
hasRuntimeDefault: false;
|
|
153
|
-
enumValues: undefined;
|
|
154
|
-
identity: undefined;
|
|
155
|
-
generated: undefined;
|
|
156
|
-
}>;
|
|
157
|
-
sms_provider_reference: import("drizzle-orm/pg-core").PgBuildColumn<"auth_mfa_enrollments", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
|
|
158
|
-
name: string;
|
|
159
|
-
tableName: "auth_mfa_enrollments";
|
|
160
|
-
dataType: "string";
|
|
161
|
-
data: string;
|
|
162
|
-
driverParam: string;
|
|
163
|
-
notNull: false;
|
|
164
|
-
hasDefault: false;
|
|
165
|
-
isPrimaryKey: false;
|
|
166
|
-
isAutoincrement: false;
|
|
167
|
-
hasRuntimeDefault: false;
|
|
168
|
-
enumValues: undefined;
|
|
169
|
-
identity: undefined;
|
|
170
|
-
generated: undefined;
|
|
171
|
-
}>;
|
|
172
|
-
sms_verified: import("drizzle-orm/pg-core").PgBuildColumn<"auth_mfa_enrollments", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBooleanBuilder>>, {
|
|
173
|
-
name: string;
|
|
174
|
-
tableName: "auth_mfa_enrollments";
|
|
175
|
-
dataType: "boolean";
|
|
176
|
-
data: boolean;
|
|
177
|
-
driverParam: boolean;
|
|
178
|
-
notNull: true;
|
|
179
|
-
hasDefault: true;
|
|
180
|
-
isPrimaryKey: false;
|
|
181
|
-
isAutoincrement: false;
|
|
182
|
-
hasRuntimeDefault: false;
|
|
183
|
-
enumValues: undefined;
|
|
184
|
-
identity: undefined;
|
|
185
|
-
generated: undefined;
|
|
186
|
-
}>;
|
|
187
|
-
totp_failed_attempts: import("drizzle-orm/pg-core").PgBuildColumn<"auth_mfa_enrollments", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgSmallIntBuilder>>, {
|
|
188
|
-
name: string;
|
|
189
|
-
tableName: "auth_mfa_enrollments";
|
|
190
|
-
dataType: "number int16";
|
|
191
|
-
data: number;
|
|
192
|
-
driverParam: string | number;
|
|
193
|
-
notNull: true;
|
|
194
|
-
hasDefault: true;
|
|
195
|
-
isPrimaryKey: false;
|
|
196
|
-
isAutoincrement: false;
|
|
197
|
-
hasRuntimeDefault: false;
|
|
198
|
-
enumValues: undefined;
|
|
199
|
-
identity: undefined;
|
|
200
|
-
generated: undefined;
|
|
201
|
-
}>;
|
|
202
|
-
totp_secret_ciphertext: import("drizzle-orm/pg-core").PgBuildColumn<"auth_mfa_enrollments", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
|
|
203
|
-
name: string;
|
|
204
|
-
tableName: "auth_mfa_enrollments";
|
|
205
|
-
dataType: "string";
|
|
206
|
-
data: string;
|
|
207
|
-
driverParam: string;
|
|
208
|
-
notNull: false;
|
|
209
|
-
hasDefault: false;
|
|
210
|
-
isPrimaryKey: false;
|
|
211
|
-
isAutoincrement: false;
|
|
212
|
-
hasRuntimeDefault: false;
|
|
213
|
-
enumValues: undefined;
|
|
214
|
-
identity: undefined;
|
|
215
|
-
generated: undefined;
|
|
216
|
-
}>;
|
|
217
|
-
totp_verified: import("drizzle-orm/pg-core").PgBuildColumn<"auth_mfa_enrollments", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBooleanBuilder>>, {
|
|
218
|
-
name: string;
|
|
219
|
-
tableName: "auth_mfa_enrollments";
|
|
220
|
-
dataType: "boolean";
|
|
221
|
-
data: boolean;
|
|
222
|
-
driverParam: boolean;
|
|
223
|
-
notNull: true;
|
|
224
|
-
hasDefault: true;
|
|
225
|
-
isPrimaryKey: false;
|
|
226
|
-
isAutoincrement: false;
|
|
227
|
-
hasRuntimeDefault: false;
|
|
228
|
-
enumValues: undefined;
|
|
229
|
-
identity: undefined;
|
|
230
|
-
generated: undefined;
|
|
231
|
-
}>;
|
|
232
|
-
updated_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_mfa_enrollments", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
233
|
-
name: string;
|
|
234
|
-
tableName: "auth_mfa_enrollments";
|
|
235
|
-
dataType: "number int53";
|
|
236
|
-
data: number;
|
|
237
|
-
driverParam: string | number;
|
|
238
|
-
notNull: true;
|
|
239
|
-
hasDefault: false;
|
|
240
|
-
isPrimaryKey: false;
|
|
241
|
-
isAutoincrement: false;
|
|
242
|
-
hasRuntimeDefault: false;
|
|
243
|
-
enumValues: undefined;
|
|
244
|
-
identity: undefined;
|
|
245
|
-
generated: undefined;
|
|
246
|
-
}>;
|
|
247
|
-
user_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_mfa_enrollments", import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
248
|
-
name: string;
|
|
249
|
-
tableName: "auth_mfa_enrollments";
|
|
250
|
-
dataType: "string";
|
|
251
|
-
data: string;
|
|
252
|
-
driverParam: string;
|
|
253
|
-
notNull: true;
|
|
254
|
-
hasDefault: false;
|
|
255
|
-
isPrimaryKey: false;
|
|
256
|
-
isAutoincrement: false;
|
|
257
|
-
hasRuntimeDefault: false;
|
|
258
|
-
enumValues: undefined;
|
|
259
|
-
identity: undefined;
|
|
260
|
-
generated: undefined;
|
|
261
|
-
}>;
|
|
262
|
-
};
|
|
263
|
-
dialect: "pg";
|
|
264
|
-
}>;
|
|
265
|
-
export declare const createNeonMfaStore: (databaseUrl: string) => MFAStore;
|
|
266
|
-
export declare const createPostgresMfaStore: <DB extends AnyPgDatabase>(db: DB) => MFAStore;
|
|
@@ -1,6 +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 { MigrationClient, MigrationQueryResult, MigrationRunResult, RunMigrationsOptions } from './runner';
|
|
6
|
-
export type { Migration, BlockMigrations } from './types';
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type BlockName } from './index';
|
|
2
|
-
export type RunMigrationsOptions = {
|
|
3
|
-
/** Existing SQL client. When provided, the runner does not create or close a pool. */
|
|
4
|
-
client?: MigrationClient;
|
|
5
|
-
/** Postgres connection string used by the default Neon-compatible pool. */
|
|
6
|
-
databaseUrl?: string;
|
|
7
|
-
/** Subset of blocks to apply. Omit to apply every block the package ships. */
|
|
8
|
-
blocks?: BlockName[];
|
|
9
|
-
/** Optional logger; defaults to console.log. Pass `() => undefined` for silent mode. */
|
|
10
|
-
log?: (message: string) => void;
|
|
11
|
-
};
|
|
12
|
-
export type MigrationRunResult = {
|
|
13
|
-
applied: string[];
|
|
14
|
-
skipped: string[];
|
|
15
|
-
};
|
|
16
|
-
export type MigrationQueryResult = {
|
|
17
|
-
rows: unknown[];
|
|
18
|
-
};
|
|
19
|
-
export type MigrationClient = {
|
|
20
|
-
query: (text: string, values?: readonly unknown[]) => Promise<MigrationQueryResult>;
|
|
21
|
-
};
|
|
22
|
-
export declare const runMigrations: ({ blocks, client, 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,28 +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 clientIdMetadataToOAuthClient: (document: ClientIdMetadataDocument) => OAuthClient;
|
|
21
|
-
export declare const createClientIdMetadataResolver: ({ fetch: fetcher, allow, cacheTtlMs, maxBytes, now }: {
|
|
22
|
-
fetch: (input: string | URL, init?: RequestInit) => Promise<Response>;
|
|
23
|
-
allow?: (clientId: string) => boolean | Promise<boolean>;
|
|
24
|
-
cacheTtlMs?: number;
|
|
25
|
-
maxBytes?: number;
|
|
26
|
-
now?: () => number;
|
|
27
|
-
}) => (clientId: string) => Promise<OAuthClient | undefined>;
|
|
28
|
-
export declare const validateClientIdMetadataDocument: (document: ClientIdMetadataDocument, expectedClientId: string) => string[];
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { AuthorizationCodeStore, BackchannelAuthStore, ClientAssertionJtiStore, ClientRegistrationTokenStore, DeviceAuthorizationStore, InitialAccessTokenStore, LogoutDeliveryStore, OAuthClient, OAuthClientStore, OidcRefreshTokenStore, PushedAuthorizationRequestStore, SocketTicketStore } 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;
|
|
12
|
-
export declare const createInMemorySocketTicketStore: () => SocketTicketStore;
|
package/dist/oidc/index.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Declaration-stable OIDC provider entry point.
|
|
3
|
-
*
|
|
4
|
-
* Server applications that only need to issue and verify OAuth/OIDC tokens
|
|
5
|
-
* should import this subpath instead of loading every optional Auth feature
|
|
6
|
-
* through the package root.
|
|
7
|
-
*/
|
|
8
|
-
export type { OidcProviderConfig } from './config';
|
|
9
|
-
export { generateSigningKey, jwkThumbprint, signJwt, signingVerificationKeys, toPublicJwk, verifyJwt, verifyJwtWithKeys, type SigningKey, type SigningKeyIdentity } from './keys';
|
|
10
|
-
export { revokeOAuthClientCredentials } from './operator';
|
|
11
|
-
export { createNeonAuthorizationCodeStore, createNeonClientAssertionJtiStore, createNeonClientRegistrationTokenStore, createNeonDeviceAuthorizationStore, createNeonInitialAccessTokenStore, createNeonOAuthClientStore, createNeonOidcRefreshTokenStore, createNeonSocketTicketStore, createPostgresAuthorizationCodeStore, createPostgresClientAssertionJtiStore, createPostgresClientRegistrationTokenStore, createPostgresDeviceAuthorizationStore, createPostgresInitialAccessTokenStore, createPostgresOAuthClientStore, createPostgresOidcRefreshTokenStore, createPostgresSocketTicketStore } from './postgresStores';
|
|
12
|
-
export { createInMemorySocketTicketStore } from './inMemoryStores';
|
|
13
|
-
export { consumeSocketTicket, issueSocketTicket } from './socketTickets';
|
|
14
|
-
export type { AuthorizationCodeStore, ClientAssertionJtiStore, ClientRegistrationTokenStore, DeviceAuthorizationStore, InitialAccessTokenStore, OAuthClient, OAuthClientStore, OidcRefreshTokenConnection, OidcRefreshTokenStore, SocketTicket, SocketTicketStore } from './types';
|
package/dist/oidc/operator.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { AuthorizationCodeStore, ClientRegistrationTokenStore, DeviceAuthorizationStore, OidcRefreshTokenStore } from './types';
|
|
2
|
-
type OAuthClientCredentialStores = {
|
|
3
|
-
authorizationCodeStore: AuthorizationCodeStore;
|
|
4
|
-
clientRegistrationTokenStore: ClientRegistrationTokenStore;
|
|
5
|
-
deviceAuthorizationStore: DeviceAuthorizationStore;
|
|
6
|
-
refreshTokenStore: OidcRefreshTokenStore;
|
|
7
|
-
};
|
|
8
|
-
export declare const revokeOAuthClientCredentials: (clientId: string, stores: OAuthClientCredentialStores) => Promise<{
|
|
9
|
-
revokedAuthorizationCodes: number;
|
|
10
|
-
revokedDeviceAuthorizations: number;
|
|
11
|
-
revokedRefreshTokens: number;
|
|
12
|
-
revokedRegistrationTokens: number;
|
|
13
|
-
}>;
|
|
14
|
-
export {};
|