@absolutejs/auth 0.69.4 → 0.69.6
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 +4 -8
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { type AnyPgDatabase } from '../stores/postgres';
|
|
2
|
+
import type { RoleStore } from './types';
|
|
3
|
+
export declare const rolesTable: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
4
|
+
name: "auth_roles";
|
|
5
|
+
schema: undefined;
|
|
6
|
+
columns: {
|
|
7
|
+
created_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_roles", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
8
|
+
name: string;
|
|
9
|
+
tableName: "auth_roles";
|
|
10
|
+
dataType: "number int53";
|
|
11
|
+
data: number;
|
|
12
|
+
driverParam: string | number;
|
|
13
|
+
notNull: true;
|
|
14
|
+
hasDefault: false;
|
|
15
|
+
isPrimaryKey: false;
|
|
16
|
+
isAutoincrement: false;
|
|
17
|
+
hasRuntimeDefault: false;
|
|
18
|
+
enumValues: undefined;
|
|
19
|
+
identity: undefined;
|
|
20
|
+
generated: undefined;
|
|
21
|
+
}>;
|
|
22
|
+
organization_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_roles", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>>, {
|
|
23
|
+
name: string;
|
|
24
|
+
tableName: "auth_roles";
|
|
25
|
+
dataType: "string";
|
|
26
|
+
data: string;
|
|
27
|
+
driverParam: string;
|
|
28
|
+
notNull: true;
|
|
29
|
+
hasDefault: true;
|
|
30
|
+
isPrimaryKey: false;
|
|
31
|
+
isAutoincrement: false;
|
|
32
|
+
hasRuntimeDefault: false;
|
|
33
|
+
enumValues: undefined;
|
|
34
|
+
identity: undefined;
|
|
35
|
+
generated: undefined;
|
|
36
|
+
}>;
|
|
37
|
+
permissions: import("drizzle-orm/pg-core").PgBuildColumn<"auth_roles", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, string[]>>>, {
|
|
38
|
+
name: string;
|
|
39
|
+
tableName: "auth_roles";
|
|
40
|
+
dataType: "object json";
|
|
41
|
+
data: string[];
|
|
42
|
+
driverParam: unknown;
|
|
43
|
+
notNull: true;
|
|
44
|
+
hasDefault: true;
|
|
45
|
+
isPrimaryKey: false;
|
|
46
|
+
isAutoincrement: false;
|
|
47
|
+
hasRuntimeDefault: false;
|
|
48
|
+
enumValues: undefined;
|
|
49
|
+
identity: undefined;
|
|
50
|
+
generated: undefined;
|
|
51
|
+
}>;
|
|
52
|
+
slug: import("drizzle-orm/pg-core").PgBuildColumn<"auth_roles", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
53
|
+
name: string;
|
|
54
|
+
tableName: "auth_roles";
|
|
55
|
+
dataType: "string";
|
|
56
|
+
data: string;
|
|
57
|
+
driverParam: string;
|
|
58
|
+
notNull: true;
|
|
59
|
+
hasDefault: false;
|
|
60
|
+
isPrimaryKey: false;
|
|
61
|
+
isAutoincrement: false;
|
|
62
|
+
hasRuntimeDefault: false;
|
|
63
|
+
enumValues: undefined;
|
|
64
|
+
identity: undefined;
|
|
65
|
+
generated: undefined;
|
|
66
|
+
}>;
|
|
67
|
+
updated_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_roles", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
68
|
+
name: string;
|
|
69
|
+
tableName: "auth_roles";
|
|
70
|
+
dataType: "number int53";
|
|
71
|
+
data: number;
|
|
72
|
+
driverParam: string | number;
|
|
73
|
+
notNull: true;
|
|
74
|
+
hasDefault: false;
|
|
75
|
+
isPrimaryKey: false;
|
|
76
|
+
isAutoincrement: false;
|
|
77
|
+
hasRuntimeDefault: false;
|
|
78
|
+
enumValues: undefined;
|
|
79
|
+
identity: undefined;
|
|
80
|
+
generated: undefined;
|
|
81
|
+
}>;
|
|
82
|
+
};
|
|
83
|
+
dialect: "pg";
|
|
84
|
+
}>;
|
|
85
|
+
export declare const createNeonRoleStore: (databaseUrl: string) => RoleStore;
|
|
86
|
+
export declare const createPostgresRoleStore: <DB extends AnyPgDatabase>(db: DB) => RoleStore;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { OrganizationStore } from '../organizations/types';
|
|
2
|
+
import type { OrganizationId } from '../tenancy';
|
|
3
|
+
import type { RoleStore } from './types';
|
|
4
|
+
export declare const createMembershipPermissionResolver: <UserType>({ getUserId, organizationStore, roleStore }: {
|
|
5
|
+
getUserId: (user: UserType) => string;
|
|
6
|
+
organizationStore: OrganizationStore;
|
|
7
|
+
roleStore: RoleStore;
|
|
8
|
+
}) => ({ organizationId, permission, user }: {
|
|
9
|
+
organizationId?: OrganizationId;
|
|
10
|
+
permission: string;
|
|
11
|
+
user: UserType;
|
|
12
|
+
}) => Promise<boolean>;
|
|
13
|
+
export declare const resolvePermissions: ({ organizationId, roleStore, roles }: {
|
|
14
|
+
organizationId?: OrganizationId;
|
|
15
|
+
roleStore: RoleStore;
|
|
16
|
+
roles: string[];
|
|
17
|
+
}) => Promise<Set<string>>;
|
package/dist/saml.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { createNodeSamlAdapter, type NodeSamlAdapterOptions } from './sso/nodeSamlAdapter';
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { type AnyPgDatabase } from '../stores/postgres';
|
|
2
|
+
import type { ScimTokenStore } from './types';
|
|
3
|
+
export declare const scimTokensTable: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
4
|
+
name: "auth_scim_tokens";
|
|
5
|
+
schema: undefined;
|
|
6
|
+
columns: {
|
|
7
|
+
created_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_scim_tokens", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
8
|
+
name: string;
|
|
9
|
+
tableName: "auth_scim_tokens";
|
|
10
|
+
dataType: "number int53";
|
|
11
|
+
data: number;
|
|
12
|
+
driverParam: string | number;
|
|
13
|
+
notNull: true;
|
|
14
|
+
hasDefault: false;
|
|
15
|
+
isPrimaryKey: false;
|
|
16
|
+
isAutoincrement: false;
|
|
17
|
+
hasRuntimeDefault: false;
|
|
18
|
+
enumValues: undefined;
|
|
19
|
+
identity: undefined;
|
|
20
|
+
generated: undefined;
|
|
21
|
+
}>;
|
|
22
|
+
hashed_token: import("drizzle-orm/pg-core").PgBuildColumn<"auth_scim_tokens", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
23
|
+
name: string;
|
|
24
|
+
tableName: "auth_scim_tokens";
|
|
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
|
+
last_used_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_scim_tokens", import("drizzle-orm/pg-core").PgBigInt53Builder, {
|
|
38
|
+
name: string;
|
|
39
|
+
tableName: "auth_scim_tokens";
|
|
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
|
+
organization_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_scim_tokens", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
53
|
+
name: string;
|
|
54
|
+
tableName: "auth_scim_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
|
+
token_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_scim_tokens", import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
68
|
+
name: string;
|
|
69
|
+
tableName: "auth_scim_tokens";
|
|
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
|
+
};
|
|
83
|
+
dialect: "pg";
|
|
84
|
+
}>;
|
|
85
|
+
export declare const createNeonScimTokenStore: (databaseUrl: string) => ScimTokenStore;
|
|
86
|
+
export declare const createPostgresScimTokenStore: <DB extends AnyPgDatabase>(db: DB) => ScimTokenStore;
|
package/dist/server.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { AuthInstance } from './authContext';
|
|
2
|
+
import type { AuthConfig } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Create the complete AbsoluteJS auth application through a declaration-stable
|
|
5
|
+
* server entry point. Import this subpath in server applications so TypeScript
|
|
6
|
+
* does not need to load declarations for every optional Auth feature.
|
|
7
|
+
*/
|
|
8
|
+
export declare const auth: <UserType>(configuration: AuthConfig<UserType>) => Promise<AuthInstance<UserType>>;
|
|
9
|
+
export { createAuthContext } from './authContext';
|
|
10
|
+
export type { AuthInstance } from './authContext';
|
|
11
|
+
export type { AuditSink } from './audit/types';
|
|
12
|
+
export type { PortalConfig } from './portal/config';
|
|
13
|
+
export type { SetupCapability, SetupSession, SetupSessionStore } from './portal/types';
|
|
14
|
+
export { createSetupSession } from './portal/operations';
|
|
15
|
+
export { createPostgresSetupSessionStore } from './portal/postgresSetupSessionStore';
|
|
16
|
+
export { protectRoutePlugin } from './routes/protectRoute';
|
|
17
|
+
export { readSessionCookie } from './session/cookieReader';
|
|
18
|
+
export { requireAuthPlugin } from './routes/requireAuth';
|
|
19
|
+
export type { ScimConfig } from './scim/config';
|
|
20
|
+
export type { ScimFilter, ScimGroup, ScimGroupInput, ScimTokenStore, ScimUser, ScimUserInput } from './scim/types';
|
|
21
|
+
export { createPostgresScimTokenStore } from './scim/postgresScimTokenStore';
|
|
22
|
+
export type { AuthSessionStore } from './session/types';
|
|
23
|
+
export { VerificationProviderError, type VerificationCheckInput, type VerificationCheckResult, type VerificationCheckStatus, type VerificationProvider, type VerificationProviderErrorKind, type VerificationPurpose, type VerificationStartInput, type VerificationStartResult } from './verification/types';
|
|
24
|
+
export type { NodeSamlAdapterOptions } from './sso/nodeSamlAdapter';
|
|
25
|
+
export { createNodeSamlAdapter } from './sso/nodeSamlAdapter';
|
|
26
|
+
export type { SsoIdentity, SSOConfig } from './sso/config';
|
|
27
|
+
export type { SSOConnection, SSOConnectionStore } from './sso/types';
|
|
28
|
+
export { createPostgresSsoConnectionStore } from './sso/postgresSsoConnectionStore';
|
|
29
|
+
export { isUserSessionId } from './typeGuards';
|
|
30
|
+
export { userSessionIdTypebox } from './typebox';
|
|
31
|
+
export type { AuthConfig, OAuth2ConfigurationOptions, SessionData, UnregisteredSessionData, UserSessionId } from './types';
|
|
32
|
+
export { instantiateUserSession } from './utils';
|
|
33
|
+
export type { OAuth2TokenResponse, ProviderOption } from 'citra';
|
|
34
|
+
export { extractPropFromIdentity, isValidProviderOption, providers } from 'citra';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import 'reflect-metadata';
|
|
2
|
+
import type { SamlAdapter } from './config';
|
|
3
|
+
export type NodeSamlAdapterOptions = {
|
|
4
|
+
spPrivateKey?: string;
|
|
5
|
+
spCertificate?: string;
|
|
6
|
+
signatureAlgorithm?: 'sha1' | 'sha256' | 'sha512';
|
|
7
|
+
};
|
|
8
|
+
export declare const createNodeSamlAdapter: (options?: NodeSamlAdapterOptions) => Promise<SamlAdapter>;
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { type AnyPgDatabase } from '../stores/postgres';
|
|
2
|
+
import type { SamlServiceProviderStore } from './types';
|
|
3
|
+
export declare const samlServiceProvidersTable: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
4
|
+
name: "auth_saml_service_providers";
|
|
5
|
+
schema: undefined;
|
|
6
|
+
columns: {
|
|
7
|
+
acs_url: import("drizzle-orm/pg-core").PgBuildColumn<"auth_saml_service_providers", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
8
|
+
name: string;
|
|
9
|
+
tableName: "auth_saml_service_providers";
|
|
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_saml_service_providers", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
23
|
+
name: string;
|
|
24
|
+
tableName: "auth_saml_service_providers";
|
|
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
|
+
entity_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_saml_service_providers", import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
38
|
+
name: string;
|
|
39
|
+
tableName: "auth_saml_service_providers";
|
|
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
|
+
name_id_format: import("drizzle-orm/pg-core").PgBuildColumn<"auth_saml_service_providers", import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>, {
|
|
53
|
+
name: string;
|
|
54
|
+
tableName: "auth_saml_service_providers";
|
|
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
|
+
signing_cert: import("drizzle-orm/pg-core").PgBuildColumn<"auth_saml_service_providers", import("drizzle-orm/pg-core").PgTextBuilder<[string, ...string[]]>, {
|
|
68
|
+
name: string;
|
|
69
|
+
tableName: "auth_saml_service_providers";
|
|
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
|
+
updated_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_saml_service_providers", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
83
|
+
name: string;
|
|
84
|
+
tableName: "auth_saml_service_providers";
|
|
85
|
+
dataType: "number int53";
|
|
86
|
+
data: number;
|
|
87
|
+
driverParam: string | number;
|
|
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
|
+
};
|
|
98
|
+
dialect: "pg";
|
|
99
|
+
}>;
|
|
100
|
+
export declare const createNeonSamlServiceProviderStore: (databaseUrl: string) => SamlServiceProviderStore;
|
|
101
|
+
export declare const createPostgresSamlServiceProviderStore: <DB extends AnyPgDatabase>(db: DB) => SamlServiceProviderStore;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { type AnyPgDatabase } from '../stores/postgres';
|
|
2
|
+
import type { SecretCipher } from '../compliance/cipher';
|
|
3
|
+
import type { OidcConnectionConfig, SamlConnectionConfig, SSOConnectionStore, SSOConnectionType } from './types';
|
|
4
|
+
export declare const ssoConnectionsTable: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
5
|
+
name: "auth_sso_connections";
|
|
6
|
+
schema: undefined;
|
|
7
|
+
columns: {
|
|
8
|
+
config: import("drizzle-orm/pg-core").PgBuildColumn<"auth_sso_connections", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgJsonbBuilder, OidcConnectionConfig | SamlConnectionConfig>>, {
|
|
9
|
+
name: string;
|
|
10
|
+
tableName: "auth_sso_connections";
|
|
11
|
+
dataType: "object json";
|
|
12
|
+
data: OidcConnectionConfig | SamlConnectionConfig;
|
|
13
|
+
driverParam: unknown;
|
|
14
|
+
notNull: true;
|
|
15
|
+
hasDefault: false;
|
|
16
|
+
isPrimaryKey: false;
|
|
17
|
+
isAutoincrement: false;
|
|
18
|
+
hasRuntimeDefault: false;
|
|
19
|
+
enumValues: undefined;
|
|
20
|
+
identity: undefined;
|
|
21
|
+
generated: undefined;
|
|
22
|
+
}>;
|
|
23
|
+
connection_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_sso_connections", import("drizzle-orm/pg-core").SetIsPrimaryKey<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
24
|
+
name: string;
|
|
25
|
+
tableName: "auth_sso_connections";
|
|
26
|
+
dataType: "string";
|
|
27
|
+
data: string;
|
|
28
|
+
driverParam: string;
|
|
29
|
+
notNull: true;
|
|
30
|
+
hasDefault: false;
|
|
31
|
+
isPrimaryKey: false;
|
|
32
|
+
isAutoincrement: false;
|
|
33
|
+
hasRuntimeDefault: false;
|
|
34
|
+
enumValues: undefined;
|
|
35
|
+
identity: undefined;
|
|
36
|
+
generated: undefined;
|
|
37
|
+
}>;
|
|
38
|
+
created_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_sso_connections", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
39
|
+
name: string;
|
|
40
|
+
tableName: "auth_sso_connections";
|
|
41
|
+
dataType: "number int53";
|
|
42
|
+
data: number;
|
|
43
|
+
driverParam: string | number;
|
|
44
|
+
notNull: true;
|
|
45
|
+
hasDefault: false;
|
|
46
|
+
isPrimaryKey: false;
|
|
47
|
+
isAutoincrement: false;
|
|
48
|
+
hasRuntimeDefault: false;
|
|
49
|
+
enumValues: undefined;
|
|
50
|
+
identity: undefined;
|
|
51
|
+
generated: undefined;
|
|
52
|
+
}>;
|
|
53
|
+
enabled: import("drizzle-orm/pg-core").PgBuildColumn<"auth_sso_connections", import("drizzle-orm/pg-core").SetHasDefault<import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBooleanBuilder>>, {
|
|
54
|
+
name: string;
|
|
55
|
+
tableName: "auth_sso_connections";
|
|
56
|
+
dataType: "boolean";
|
|
57
|
+
data: boolean;
|
|
58
|
+
driverParam: boolean;
|
|
59
|
+
notNull: true;
|
|
60
|
+
hasDefault: true;
|
|
61
|
+
isPrimaryKey: false;
|
|
62
|
+
isAutoincrement: false;
|
|
63
|
+
hasRuntimeDefault: false;
|
|
64
|
+
enumValues: undefined;
|
|
65
|
+
identity: undefined;
|
|
66
|
+
generated: undefined;
|
|
67
|
+
}>;
|
|
68
|
+
organization_id: import("drizzle-orm/pg-core").PgBuildColumn<"auth_sso_connections", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>>, {
|
|
69
|
+
name: string;
|
|
70
|
+
tableName: "auth_sso_connections";
|
|
71
|
+
dataType: "string";
|
|
72
|
+
data: string;
|
|
73
|
+
driverParam: string;
|
|
74
|
+
notNull: true;
|
|
75
|
+
hasDefault: false;
|
|
76
|
+
isPrimaryKey: false;
|
|
77
|
+
isAutoincrement: false;
|
|
78
|
+
hasRuntimeDefault: false;
|
|
79
|
+
enumValues: undefined;
|
|
80
|
+
identity: undefined;
|
|
81
|
+
generated: undefined;
|
|
82
|
+
}>;
|
|
83
|
+
type: import("drizzle-orm/pg-core").PgBuildColumn<"auth_sso_connections", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").Set$Type<import("drizzle-orm/pg-core").PgVarcharBuilder<[string, ...string[]]>, SSOConnectionType>>, {
|
|
84
|
+
name: string;
|
|
85
|
+
tableName: "auth_sso_connections";
|
|
86
|
+
dataType: "string";
|
|
87
|
+
data: SSOConnectionType;
|
|
88
|
+
driverParam: string;
|
|
89
|
+
notNull: true;
|
|
90
|
+
hasDefault: false;
|
|
91
|
+
isPrimaryKey: false;
|
|
92
|
+
isAutoincrement: false;
|
|
93
|
+
hasRuntimeDefault: false;
|
|
94
|
+
enumValues: undefined;
|
|
95
|
+
identity: undefined;
|
|
96
|
+
generated: undefined;
|
|
97
|
+
}>;
|
|
98
|
+
updated_at_ms: import("drizzle-orm/pg-core").PgBuildColumn<"auth_sso_connections", import("drizzle-orm/pg-core").SetNotNull<import("drizzle-orm/pg-core").PgBigInt53Builder>, {
|
|
99
|
+
name: string;
|
|
100
|
+
tableName: "auth_sso_connections";
|
|
101
|
+
dataType: "number int53";
|
|
102
|
+
data: number;
|
|
103
|
+
driverParam: string | number;
|
|
104
|
+
notNull: true;
|
|
105
|
+
hasDefault: false;
|
|
106
|
+
isPrimaryKey: false;
|
|
107
|
+
isAutoincrement: false;
|
|
108
|
+
hasRuntimeDefault: false;
|
|
109
|
+
enumValues: undefined;
|
|
110
|
+
identity: undefined;
|
|
111
|
+
generated: undefined;
|
|
112
|
+
}>;
|
|
113
|
+
};
|
|
114
|
+
dialect: "pg";
|
|
115
|
+
}>;
|
|
116
|
+
export declare const createNeonSsoConnectionStore: (databaseUrl: string) => SSOConnectionStore;
|
|
117
|
+
export declare const createPostgresSsoConnectionStore: <DB extends AnyPgDatabase>(db: DB, cipher?: SecretCipher) => SSOConnectionStore;
|