@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
package/dist/client/svelte.d.ts
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { type Writable } from 'svelte/store';
|
|
2
|
-
import type { AuthClient, AuthClientError } from './createAuthClient';
|
|
3
|
-
type Mutator<Args, Data> = (args: Args) => Promise<{
|
|
4
|
-
data: Data | null;
|
|
5
|
-
error: AuthClientError | null;
|
|
6
|
-
}>;
|
|
7
|
-
type MutationState<Args, Data> = {
|
|
8
|
-
data: Writable<Data | null>;
|
|
9
|
-
error: Writable<AuthClientError | null>;
|
|
10
|
-
isPending: Writable<boolean>;
|
|
11
|
-
mutate: Mutator<Args, Data>;
|
|
12
|
-
reset: () => void;
|
|
13
|
-
};
|
|
14
|
-
export declare const useMagicLink: (client: AuthClient) => MutationState<{
|
|
15
|
-
email: string;
|
|
16
|
-
}, {
|
|
17
|
-
ok: true;
|
|
18
|
-
}>;
|
|
19
|
-
export declare const useMfaChallenge: (client: AuthClient) => MutationState<{
|
|
20
|
-
code: string;
|
|
21
|
-
}, {
|
|
22
|
-
status: "authenticated";
|
|
23
|
-
}>;
|
|
24
|
-
export declare const usePasskeyAutofill: (client: AuthClient) => {
|
|
25
|
-
cancel: () => void;
|
|
26
|
-
data: Writable<{
|
|
27
|
-
status: "authenticated";
|
|
28
|
-
} | null>;
|
|
29
|
-
error: Writable<AuthClientError | null>;
|
|
30
|
-
isPending: Writable<boolean>;
|
|
31
|
-
start: () => Promise<void>;
|
|
32
|
-
};
|
|
33
|
-
export declare const usePasswordReset: (client: AuthClient) => MutationState<{
|
|
34
|
-
email: string;
|
|
35
|
-
}, {
|
|
36
|
-
ok: true;
|
|
37
|
-
}>;
|
|
38
|
-
export declare const useSessions: (client: AuthClient) => {
|
|
39
|
-
data: Writable<unknown[] | null>;
|
|
40
|
-
error: Writable<AuthClientError | null>;
|
|
41
|
-
isPending: Writable<boolean>;
|
|
42
|
-
refetch: () => Promise<void>;
|
|
43
|
-
revoke: (sessionId: string) => Promise<{
|
|
44
|
-
data: null;
|
|
45
|
-
error: AuthClientError;
|
|
46
|
-
} | {
|
|
47
|
-
data: {
|
|
48
|
-
ok: true;
|
|
49
|
-
};
|
|
50
|
-
error: null;
|
|
51
|
-
}>;
|
|
52
|
-
};
|
|
53
|
-
export declare const useSignIn: (client: AuthClient) => MutationState<{
|
|
54
|
-
email: string;
|
|
55
|
-
password: string;
|
|
56
|
-
}, {
|
|
57
|
-
passwordCompromised?: boolean;
|
|
58
|
-
status: "authenticated" | "mfa_required";
|
|
59
|
-
}>;
|
|
60
|
-
export declare const useSignOut: (client: AuthClient) => MutationState<unknown, null>;
|
|
61
|
-
export declare const useSignUp: (client: AuthClient) => MutationState<{
|
|
62
|
-
[extra: string]: unknown;
|
|
63
|
-
email: string;
|
|
64
|
-
password: string;
|
|
65
|
-
}, {
|
|
66
|
-
status: "authenticated";
|
|
67
|
-
} | {
|
|
68
|
-
status: "verification_required";
|
|
69
|
-
}>;
|
|
70
|
-
export declare const useUpgradeToPasskey: (client: AuthClient) => {
|
|
71
|
-
error: Writable<AuthClientError | null>;
|
|
72
|
-
isPending: Writable<boolean>;
|
|
73
|
-
passkeys: Writable<unknown[] | null>;
|
|
74
|
-
refetch: () => Promise<void>;
|
|
75
|
-
register: () => Promise<{
|
|
76
|
-
data: null;
|
|
77
|
-
error: AuthClientError;
|
|
78
|
-
} | {
|
|
79
|
-
data: {
|
|
80
|
-
ok: true;
|
|
81
|
-
};
|
|
82
|
-
error: null;
|
|
83
|
-
}>;
|
|
84
|
-
shouldPrompt: Writable<boolean>;
|
|
85
|
-
};
|
|
86
|
-
export {};
|
package/dist/client/vue.d.ts
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { type Ref } from 'vue';
|
|
2
|
-
import type { AuthClient, AuthClientError } from './createAuthClient';
|
|
3
|
-
type Mutator<Args, Data> = (args: Args) => Promise<{
|
|
4
|
-
data: Data | null;
|
|
5
|
-
error: AuthClientError | null;
|
|
6
|
-
}>;
|
|
7
|
-
type MutationState<Args, Data> = {
|
|
8
|
-
data: Ref<Data | null>;
|
|
9
|
-
error: Ref<AuthClientError | null>;
|
|
10
|
-
isPending: Ref<boolean>;
|
|
11
|
-
mutate: Mutator<Args, Data>;
|
|
12
|
-
reset: () => void;
|
|
13
|
-
};
|
|
14
|
-
export declare const useMagicLink: (client: AuthClient) => MutationState<{
|
|
15
|
-
email: string;
|
|
16
|
-
}, {
|
|
17
|
-
ok: true;
|
|
18
|
-
}>;
|
|
19
|
-
export declare const useMfaChallenge: (client: AuthClient) => MutationState<{
|
|
20
|
-
code: string;
|
|
21
|
-
}, {
|
|
22
|
-
status: "authenticated";
|
|
23
|
-
}>;
|
|
24
|
-
export declare const usePasskeyAutofill: (client: AuthClient) => {
|
|
25
|
-
cancel: () => void;
|
|
26
|
-
data: Ref<{
|
|
27
|
-
status: "authenticated";
|
|
28
|
-
} | null, {
|
|
29
|
-
status: "authenticated";
|
|
30
|
-
} | null>;
|
|
31
|
-
error: Ref<AuthClientError | null, AuthClientError | null>;
|
|
32
|
-
isPending: Ref<boolean, boolean>;
|
|
33
|
-
start: () => Promise<void>;
|
|
34
|
-
};
|
|
35
|
-
export declare const usePasswordReset: (client: AuthClient) => MutationState<{
|
|
36
|
-
email: string;
|
|
37
|
-
}, {
|
|
38
|
-
ok: true;
|
|
39
|
-
}>;
|
|
40
|
-
export declare const useSessions: (client: AuthClient) => {
|
|
41
|
-
data: Ref<unknown[] | null, unknown[] | null>;
|
|
42
|
-
error: Ref<AuthClientError | null, AuthClientError | null>;
|
|
43
|
-
isPending: Ref<boolean, boolean>;
|
|
44
|
-
refetch: () => Promise<void>;
|
|
45
|
-
revoke: (sessionId: string) => Promise<{
|
|
46
|
-
data: null;
|
|
47
|
-
error: AuthClientError;
|
|
48
|
-
} | {
|
|
49
|
-
data: {
|
|
50
|
-
ok: true;
|
|
51
|
-
};
|
|
52
|
-
error: null;
|
|
53
|
-
}>;
|
|
54
|
-
};
|
|
55
|
-
export declare const useSignIn: (client: AuthClient) => MutationState<{
|
|
56
|
-
email: string;
|
|
57
|
-
password: string;
|
|
58
|
-
}, {
|
|
59
|
-
passwordCompromised?: boolean;
|
|
60
|
-
status: "authenticated" | "mfa_required";
|
|
61
|
-
}>;
|
|
62
|
-
export declare const useSignOut: (client: AuthClient) => MutationState<unknown, null>;
|
|
63
|
-
export declare const useSignUp: (client: AuthClient) => MutationState<{
|
|
64
|
-
[extra: string]: unknown;
|
|
65
|
-
email: string;
|
|
66
|
-
password: string;
|
|
67
|
-
}, {
|
|
68
|
-
status: "authenticated";
|
|
69
|
-
} | {
|
|
70
|
-
status: "verification_required";
|
|
71
|
-
}>;
|
|
72
|
-
export declare const useUpgradeToPasskey: (client: AuthClient) => {
|
|
73
|
-
error: Ref<AuthClientError | null, AuthClientError | null>;
|
|
74
|
-
isPending: Ref<boolean, boolean>;
|
|
75
|
-
passkeys: Ref<unknown[] | null, unknown[] | null>;
|
|
76
|
-
refetch: () => Promise<void>;
|
|
77
|
-
register: () => Promise<{
|
|
78
|
-
data: null;
|
|
79
|
-
error: AuthClientError;
|
|
80
|
-
} | {
|
|
81
|
-
data: {
|
|
82
|
-
ok: true;
|
|
83
|
-
};
|
|
84
|
-
error: null;
|
|
85
|
-
}>;
|
|
86
|
-
shouldPrompt: Ref<boolean, boolean>;
|
|
87
|
-
};
|
|
88
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { AuditEvent } from '../audit/types';
|
|
2
|
-
type AuditRedactorOptions = {
|
|
3
|
-
dropFields?: string[];
|
|
4
|
-
hashFields?: string[];
|
|
5
|
-
redactIp?: boolean;
|
|
6
|
-
};
|
|
7
|
-
export declare const createAuditRedactor: ({ dropFields, hashFields, redactIp }: AuditRedactorOptions) => (event: AuditEvent) => Promise<AuditEvent>;
|
|
8
|
-
export {};
|
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,26 +0,0 @@
|
|
|
1
|
-
export type FingerprintSignals = {
|
|
2
|
-
audio?: number;
|
|
3
|
-
canvas?: string;
|
|
4
|
-
deviceMemory?: number;
|
|
5
|
-
fonts?: string[];
|
|
6
|
-
hardwareConcurrency?: number;
|
|
7
|
-
languages?: readonly string[];
|
|
8
|
-
pixelRatio?: number;
|
|
9
|
-
platform?: string;
|
|
10
|
-
screen?: {
|
|
11
|
-
colorDepth: number;
|
|
12
|
-
height: number;
|
|
13
|
-
width: number;
|
|
14
|
-
};
|
|
15
|
-
timezone?: string;
|
|
16
|
-
userAgent?: string;
|
|
17
|
-
webgl?: {
|
|
18
|
-
renderer?: string;
|
|
19
|
-
vendor?: string;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export type DeviceFingerprint = {
|
|
23
|
-
deviceId: string;
|
|
24
|
-
signals: FingerprintSignals;
|
|
25
|
-
};
|
|
26
|
-
export declare const collectDeviceFingerprint: () => Promise<DeviceFingerprint>;
|
package/dist/htmx/index.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export { escapeHtml, resolveAuthHtmxRenderers } from './renderers';
|
|
2
|
-
export type { AuthHtmxClient, AuthHtmxConnectorTarget, AuthHtmxProviderData, AuthHtmxProviderInfo, AuthHtmxRenderersConfig, AuthHtmxRenderOverrides, AuthHtmxUser, AuthIdentityMergeRequestSummary, AuthIdentityPayload, AuthIdentitySummary, LinkedProviderBindingSummary, LinkedProviderGrantSummary, LinkedProviderPayload, ResolvedAuthHtmxRenderers } from './types';
|