@absolutejs/auth 0.69.4 → 0.69.5
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/abuse/captcha.d.ts +11 -0
- package/dist/abuse/config.d.ts +29 -0
- package/dist/adaptive/config.d.ts +34 -0
- package/dist/adaptive/fingerprint.d.ts +2 -0
- package/dist/adaptive/inMemoryStores.d.ts +3 -0
- package/dist/adaptive/postgresStores.d.ts +245 -0
- package/dist/adaptive/types.d.ts +62 -0
- package/dist/agents/idJag.d.ts +49 -0
- package/dist/agents/inMemoryStores.d.ts +4 -0
- package/dist/agents/index.d.ts +13 -0
- package/dist/agents/oidcAdapter.d.ts +20 -0
- package/dist/agents/postgresStores.d.ts +1176 -0
- package/dist/agents/registrationClient.d.ts +50 -0
- package/dist/apikeys/inMemoryStores.d.ts +4 -0
- package/dist/apikeys/postgresStores.d.ts +359 -0
- package/dist/audit/export.d.ts +2 -0
- package/dist/audit/inMemoryAuditStore.d.ts +2 -0
- package/dist/audit/integrity.d.ts +19 -0
- package/dist/audit/postgresAuditStore.d.ts +116 -0
- package/dist/audit/siem.d.ts +11 -0
- package/dist/cli/import/auth0.d.ts +2 -0
- package/dist/cli/import/clerk.d.ts +2 -0
- package/dist/cli/import/index.d.ts +10 -0
- package/dist/cli/import/lucia.d.ts +2 -0
- package/dist/cli/import/nextauth.d.ts +2 -0
- package/dist/cli/import/supabase.d.ts +2 -0
- package/dist/cli/import/types.d.ts +27 -0
- package/dist/cli/migrate.d.ts +2 -0
- package/dist/client/components/react/SignIn.d.ts +32 -0
- package/dist/client/components/react/SignUp.d.ts +29 -0
- package/dist/client/components/react/UserButton.d.ts +36 -0
- package/dist/client/createAuthClient.d.ts +311 -0
- package/dist/client/index.d.ts +6 -0
- package/dist/client/mobile.d.ts +87 -0
- package/dist/client/passkeyHelpers.d.ts +19 -0
- package/dist/client/react.d.ts +87 -0
- package/dist/client/runtimeTransport.d.ts +3 -0
- package/dist/client/sessionExpiry.d.ts +37 -0
- package/dist/client/solid.d.ts +86 -0
- package/dist/client/svelte.d.ts +86 -0
- package/dist/client/vue.d.ts +88 -0
- package/dist/compliance/redaction.d.ts +8 -0
- package/dist/fga/config.d.ts +53 -0
- package/dist/fga/inMemoryStores.d.ts +3 -0
- package/dist/fga/postgresStores.d.ts +116 -0
- package/dist/fga/redisCheckCache.d.ts +11 -0
- package/dist/fga/schema.d.ts +2 -0
- package/dist/fga/types.d.ts +28 -0
- package/dist/fingerprint-client/index.d.ts +26 -0
- package/dist/htmx/index.d.ts +2 -0
- package/dist/index.d.ts +4042 -0
- package/dist/linkedProviders/index.d.ts +3 -0
- package/dist/lockout/inMemoryLockoutStore.d.ts +2 -0
- package/dist/lockout/postgresLockoutStore.d.ts +71 -0
- package/dist/lockout/redisLockoutStore.d.ts +3 -0
- package/dist/manifest.d.ts +19 -0
- package/dist/manifest.json +386 -0
- package/dist/mfa/postgresMfaStore.d.ts +266 -0
- package/dist/migrations/generate.d.ts +2 -0
- package/dist/migrations/index.d.ts +6 -0
- package/dist/migrations/runner.d.ts +22 -0
- package/dist/migrations/types.d.ts +14 -0
- package/dist/oidc/clientIdMetadata.d.ts +28 -0
- package/dist/oidc/inMemoryStores.d.ts +12 -0
- package/dist/oidc/inMemoryVciStores.d.ts +3 -0
- package/dist/oidc/index.d.ts +14 -0
- package/dist/oidc/operator.d.ts +14 -0
- package/dist/oidc/postgresStores.d.ts +1361 -0
- package/dist/oidc/vciRoutes.d.ts +56 -0
- package/dist/organizations/inMemoryOrganizationStore.d.ts +2 -0
- package/dist/organizations/postgresOrganizationStore.d.ts +340 -0
- package/dist/passwordless/inMemoryPasswordlessTokenStore.d.ts +2 -0
- package/dist/passwordless/postgresPasswordlessTokenStore.d.ts +56 -0
- package/dist/plugins/denyDisposableEmail.d.ts +7 -0
- package/dist/plugins/discordAlert.d.ts +7 -0
- package/dist/plugins/geoBlock.d.ts +8 -0
- package/dist/plugins/index.d.ts +12 -0
- package/dist/plugins/pagerdutyAlert.d.ts +9 -0
- package/dist/plugins/posthogIdentify.d.ts +7 -0
- package/dist/plugins/slackAlert.d.ts +7 -0
- package/dist/portal/inMemorySetupSessionStore.d.ts +2 -0
- package/dist/portal/postgresSetupSessionStore.d.ts +116 -0
- package/dist/providers/index.d.ts +2 -0
- package/dist/roles/inMemoryRoleStore.d.ts +2 -0
- package/dist/roles/postgresRoleStore.d.ts +86 -0
- package/dist/roles/resolver.d.ts +17 -0
- package/dist/saml.d.ts +1 -0
- package/dist/scim/inMemoryScimTokenStore.d.ts +2 -0
- package/dist/scim/postgresScimTokenStore.d.ts +86 -0
- package/dist/server.d.ts +34 -0
- package/dist/sso/inMemorySamlServiceProviderStore.d.ts +2 -0
- package/dist/sso/inMemorySsoConnectionStore.d.ts +2 -0
- package/dist/sso/nodeSamlAdapter.d.ts +8 -0
- package/dist/sso/postgresSamlServiceProviderStore.d.ts +101 -0
- package/dist/sso/postgresSsoConnectionStore.d.ts +117 -0
- package/dist/sso/samlIdpRoutes.d.ts +268 -0
- package/dist/vault/index.d.ts +5 -0
- package/dist/vc/inMemoryVpStores.d.ts +2 -0
- package/dist/vc/openid4vp.d.ts +82 -0
- package/dist/vc/postgresVcStores.d.ts +300 -0
- package/dist/vc/statusList.d.ts +29 -0
- package/dist/vc/statusListRoutes.d.ts +169 -0
- package/dist/vc/vpRoutes.d.ts +224 -0
- package/dist/webauthn/inMemoryWebAuthnCredentialStore.d.ts +2 -0
- package/dist/webauthn/postgresWebAuthnCredentialStore.d.ts +146 -0
- package/dist/webauthn/simpleWebAuthnAdapter.d.ts +3 -0
- package/dist/webauthn.d.ts +1 -0
- package/dist/webhooks/inMemoryStore.d.ts +2 -0
- package/dist/webhooks/postgresStore.d.ts +116 -0
- package/package.json +3 -3
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import type { SigningKey } from './keys';
|
|
2
|
+
import { type VciConfig } from './vci';
|
|
3
|
+
export declare const vciRoutes: ({ issuerUrl, signingKey, vciConfig }: {
|
|
4
|
+
issuerUrl: string;
|
|
5
|
+
signingKey: SigningKey;
|
|
6
|
+
vciConfig: VciConfig;
|
|
7
|
+
}) => import("elysia/types").AddRoute<"", "local", import("elysia/types").DefaultSingleton, {
|
|
8
|
+
typebox: {};
|
|
9
|
+
error: [];
|
|
10
|
+
}, import("elysia/types").DefaultMetadata, {
|
|
11
|
+
".well-known": {
|
|
12
|
+
"openid-credential-issuer": {
|
|
13
|
+
get: {
|
|
14
|
+
body: unknown;
|
|
15
|
+
params: {};
|
|
16
|
+
query: unknown;
|
|
17
|
+
headers: unknown;
|
|
18
|
+
response: {
|
|
19
|
+
200: Response;
|
|
20
|
+
};
|
|
21
|
+
error: never;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
} & {
|
|
26
|
+
[x: string]: {
|
|
27
|
+
credential: {
|
|
28
|
+
post: {
|
|
29
|
+
body: {
|
|
30
|
+
format?: "vc+sd-jwt" | undefined;
|
|
31
|
+
proof?: {
|
|
32
|
+
jwt: string;
|
|
33
|
+
proof_type: "jwt";
|
|
34
|
+
} | undefined;
|
|
35
|
+
};
|
|
36
|
+
params: {};
|
|
37
|
+
query: unknown;
|
|
38
|
+
headers: unknown;
|
|
39
|
+
response: {
|
|
40
|
+
200: Response;
|
|
41
|
+
422: {
|
|
42
|
+
type: "validation";
|
|
43
|
+
title: "Validation Error";
|
|
44
|
+
status: 422;
|
|
45
|
+
detail?: string;
|
|
46
|
+
on: string;
|
|
47
|
+
found?: unknown;
|
|
48
|
+
property?: string;
|
|
49
|
+
expected?: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
error: never;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
}, import("elysia/types").DefaultEphemeral, import("elysia/types").DefaultEphemeral, "post", `/${string}/nonce`, import("elysia/types").IntersectIfObjectSchema<import("elysia").UnwrapRoute<{}, {}, `/${string}/nonce`>, import("elysia/types").MergeScopedSchemas<{}, {}, {}>>, {}, () => Promise<Response>>;
|
|
@@ -0,0 +1,340 @@
|
|
|
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;
|
|
@@ -0,0 +1,56 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AuditEvent, AuditEventType, AuditSink } from '../audit/types';
|
|
2
|
+
export type DiscordAlertOptions = {
|
|
3
|
+
events?: readonly AuditEventType[];
|
|
4
|
+
formatContent?: (event: AuditEvent) => string;
|
|
5
|
+
webhookUrl: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const discordAlertPlugin: ({ events, formatContent, webhookUrl }: DiscordAlertOptions) => AuditSink;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type GeoBlockOptions = {
|
|
2
|
+
allowCountries: readonly string[];
|
|
3
|
+
denyCountries?: never;
|
|
4
|
+
} | {
|
|
5
|
+
allowCountries?: never;
|
|
6
|
+
denyCountries: readonly string[];
|
|
7
|
+
};
|
|
8
|
+
export declare const geoBlockPlugin: (options: GeoBlockOptions) => (headers: Record<string, string | undefined>) => boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { denyDisposableEmailPlugin } from './denyDisposableEmail';
|
|
2
|
+
export type { DenyDisposableEmailDecision } from './denyDisposableEmail';
|
|
3
|
+
export { discordAlertPlugin } from './discordAlert';
|
|
4
|
+
export type { DiscordAlertOptions } from './discordAlert';
|
|
5
|
+
export { geoBlockPlugin } from './geoBlock';
|
|
6
|
+
export type { GeoBlockOptions } from './geoBlock';
|
|
7
|
+
export { pagerdutyAlertPlugin } from './pagerdutyAlert';
|
|
8
|
+
export type { PagerDutyAlertOptions, PagerDutySeverity } from './pagerdutyAlert';
|
|
9
|
+
export { posthogIdentifyPlugin } from './posthogIdentify';
|
|
10
|
+
export type { PosthogIdentifyOptions } from './posthogIdentify';
|
|
11
|
+
export { slackAlertPlugin } from './slackAlert';
|
|
12
|
+
export type { SlackAlertOptions } from './slackAlert';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { AuditEventType, AuditSink } from '../audit/types';
|
|
2
|
+
export type PagerDutySeverity = 'critical' | 'error' | 'info' | 'warning';
|
|
3
|
+
export type PagerDutyAlertOptions = {
|
|
4
|
+
events?: readonly AuditEventType[];
|
|
5
|
+
routingKey: string;
|
|
6
|
+
severity?: PagerDutySeverity;
|
|
7
|
+
source?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const pagerdutyAlertPlugin: ({ events, routingKey, severity, source }: PagerDutyAlertOptions) => AuditSink;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AuditEvent, AuditSink } from '../audit/types';
|
|
2
|
+
export type PosthogIdentifyOptions = {
|
|
3
|
+
host?: string;
|
|
4
|
+
projectApiKey: string;
|
|
5
|
+
properties?: (event: AuditEvent) => Record<string, unknown>;
|
|
6
|
+
};
|
|
7
|
+
export declare const posthogIdentifyPlugin: ({ host, projectApiKey, properties }: PosthogIdentifyOptions) => AuditSink;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AuditEvent, AuditEventType, AuditSink } from '../audit/types';
|
|
2
|
+
export type SlackAlertOptions = {
|
|
3
|
+
events?: readonly AuditEventType[];
|
|
4
|
+
formatMessage?: (event: AuditEvent) => string;
|
|
5
|
+
webhookUrl: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const slackAlertPlugin: ({ events, formatMessage, webhookUrl }: SlackAlertOptions) => AuditSink;
|
|
@@ -0,0 +1,116 @@
|
|
|
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;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export type { CredentialsFor, OAuth2Client, OAuth2TokenResponse, OIDCProvider, PKCEProvider, ProviderConfiguration, ProviderOption, ProvidersMap, RefreshableProvider, RevocableProvider, ScopeRequiredProvider } from 'citra';
|
|
2
|
+
export { decodeJWT, extractPropFromIdentity, isOIDCProviderOption, isPKCEProviderOption, isRefreshableOAuth2Client, isRefreshableProviderOption, isRevocableOAuth2Client, isRevocableProviderOption, isValidProviderOption, oidcProviderOptions, pkceProviderOptions, providerOptions, providers, refreshableProviderOptions, revocableProviderOptions, scopeRequiredProviderOptions } from 'citra';
|