@yielded/auth-persistence-drizzle 0.1.0-beta.1 → 0.1.0-beta.12
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/D1.d.mts +27 -22
- package/dist/D1.mjs +10 -4
- package/dist/D1.mjs.map +1 -1
- package/dist/Libsql.d.mts +66 -61
- package/dist/Libsql.mjs +20 -15
- package/dist/Libsql.mjs.map +1 -1
- package/dist/Mysql2.d.mts +58 -46
- package/dist/Mysql2.mjs +13 -6
- package/dist/Mysql2.mjs.map +1 -1
- package/dist/Pglite.d.mts +43 -32
- package/dist/Pglite.mjs +12 -7
- package/dist/Pglite.mjs.map +1 -1
- package/dist/Postgres.d.mts +59 -48
- package/dist/Postgres.mjs +12 -7
- package/dist/Postgres.mjs.map +1 -1
- package/dist/SqliteBun.d.mts +58 -53
- package/dist/SqliteBun.mjs +20 -14
- package/dist/SqliteBun.mjs.map +1 -1
- package/dist/SqliteDo.d.mts +66 -60
- package/dist/SqliteDo.mjs +26 -14
- package/dist/SqliteDo.mjs.map +1 -1
- package/dist/SqliteNode.d.mts +58 -53
- package/dist/SqliteNode.mjs +20 -14
- package/dist/SqliteNode.mjs.map +1 -1
- package/dist/SqliteWasm.d.mts +66 -61
- package/dist/SqliteWasm.mjs +20 -14
- package/dist/SqliteWasm.mjs.map +1 -1
- package/dist/drizzle/d1-database.d.mts +11 -0
- package/dist/drizzle/d1-database.mjs +8 -0
- package/dist/drizzle/d1-database.mjs.map +1 -0
- package/dist/drizzle/d1-emails.d.mts +8 -7
- package/dist/drizzle/d1-emails.mjs +7 -4
- package/dist/drizzle/d1-emails.mjs.map +1 -1
- package/dist/drizzle/d1-identity.mjs +12 -9
- package/dist/drizzle/d1-identity.mjs.map +1 -1
- package/dist/drizzle/d1-oauth.d.mts +14 -13
- package/dist/drizzle/d1-oauth.mjs +7 -4
- package/dist/drizzle/d1-oauth.mjs.map +1 -1
- package/dist/drizzle/d1-passkey.d.mts +3 -14
- package/dist/drizzle/d1-passkey.mjs +2 -1
- package/dist/drizzle/d1-passkey.mjs.map +1 -1
- package/dist/drizzle/d1-password-prepared.d.mts +4 -3
- package/dist/drizzle/d1-password-prepared.mjs +3 -1
- package/dist/drizzle/d1-password-prepared.mjs.map +1 -1
- package/dist/drizzle/d1-passwords.d.mts +6 -5
- package/dist/drizzle/d1-passwords.mjs +5 -2
- package/dist/drizzle/d1-passwords.mjs.map +1 -1
- package/dist/drizzle/d1-phone.d.mts +3 -4
- package/dist/drizzle/d1-phone.mjs +2 -1
- package/dist/drizzle/d1-phone.mjs.map +1 -1
- package/dist/drizzle/d1-planning.d.mts +1 -1
- package/dist/drizzle/d1-proofs.d.mts +4 -3
- package/dist/drizzle/d1-proofs.mjs +3 -1
- package/dist/drizzle/d1-proofs.mjs.map +1 -1
- package/dist/drizzle/d1-sessions.d.mts +11 -10
- package/dist/drizzle/d1-sessions.mjs +15 -9
- package/dist/drizzle/d1-sessions.mjs.map +1 -1
- package/dist/drizzle/d1-totp.d.mts +3 -4
- package/dist/drizzle/d1-totp.mjs +2 -1
- package/dist/drizzle/d1-totp.mjs.map +1 -1
- package/dist/drizzle/email-registration.mjs +2 -1
- package/dist/drizzle/email-registration.mjs.map +1 -1
- package/dist/drizzle/email-target.d.mts +7 -6
- package/dist/drizzle/email-target.mjs +10 -10
- package/dist/drizzle/email-target.mjs.map +1 -1
- package/dist/drizzle/mysql-database.d.mts +8 -0
- package/dist/drizzle/mysql-database.mjs +8 -0
- package/dist/drizzle/mysql-database.mjs.map +1 -0
- package/dist/drizzle/mysql-emails.d.mts +7 -6
- package/dist/drizzle/mysql-emails.mjs +12 -8
- package/dist/drizzle/mysql-emails.mjs.map +1 -1
- package/dist/drizzle/mysql-identity.mjs +12 -9
- package/dist/drizzle/mysql-identity.mjs.map +1 -1
- package/dist/drizzle/mysql-password-prepared.d.mts +3 -2
- package/dist/drizzle/mysql-password-prepared.mjs +6 -2
- package/dist/drizzle/mysql-password-prepared.mjs.map +1 -1
- package/dist/drizzle/mysql-passwords.d.mts +6 -4
- package/dist/drizzle/mysql-passwords.mjs +11 -7
- package/dist/drizzle/mysql-passwords.mjs.map +1 -1
- package/dist/drizzle/mysql-proofs.d.mts +3 -2
- package/dist/drizzle/mysql-proofs.mjs +8 -4
- package/dist/drizzle/mysql-proofs.mjs.map +1 -1
- package/dist/drizzle/mysql-sessions.d.mts +11 -10
- package/dist/drizzle/mysql-sessions.mjs +16 -12
- package/dist/drizzle/mysql-sessions.mjs.map +1 -1
- package/dist/drizzle/native-database.mjs +10 -0
- package/dist/drizzle/native-database.mjs.map +1 -0
- package/dist/drizzle/oauth-connected-drivers.mjs +7 -5
- package/dist/drizzle/oauth-connected-drivers.mjs.map +1 -1
- package/dist/drizzle/oauth-connected-target.d.mts +6 -7
- package/dist/drizzle/oauth-connected-target.mjs +4 -5
- package/dist/drizzle/oauth-connected-target.mjs.map +1 -1
- package/dist/drizzle/oauth-drivers.mjs +8 -6
- package/dist/drizzle/oauth-drivers.mjs.map +1 -1
- package/dist/drizzle/oauth-target.d.mts +12 -11
- package/dist/drizzle/oauth-target.mjs +13 -12
- package/dist/drizzle/oauth-target.mjs.map +1 -1
- package/dist/drizzle/passkey-drivers.mjs +8 -6
- package/dist/drizzle/passkey-drivers.mjs.map +1 -1
- package/dist/drizzle/passkey-write-drivers.mjs +5 -3
- package/dist/drizzle/passkey-write-drivers.mjs.map +1 -1
- package/dist/drizzle/passkey-write-target.d.mts +1 -1
- package/dist/drizzle/password-prepared-sql.mjs +2 -1
- package/dist/drizzle/password-prepared-sql.mjs.map +1 -1
- package/dist/drizzle/password-prepared-target.d.mts +3 -2
- package/dist/drizzle/password-prepared-target.mjs +4 -3
- package/dist/drizzle/password-prepared-target.mjs.map +1 -1
- package/dist/drizzle/password-registration.mjs +2 -1
- package/dist/drizzle/password-registration.mjs.map +1 -1
- package/dist/drizzle/password-target.d.mts +5 -4
- package/dist/drizzle/password-target.mjs +8 -8
- package/dist/drizzle/password-target.mjs.map +1 -1
- package/dist/drizzle/pg-database.d.mts +9 -0
- package/dist/drizzle/pg-database.mjs +8 -0
- package/dist/drizzle/pg-database.mjs.map +1 -0
- package/dist/drizzle/pg-emails.d.mts +7 -6
- package/dist/drizzle/pg-emails.mjs +12 -8
- package/dist/drizzle/pg-emails.mjs.map +1 -1
- package/dist/drizzle/pg-identity.mjs +12 -9
- package/dist/drizzle/pg-identity.mjs.map +1 -1
- package/dist/drizzle/pg-password-prepared.d.mts +3 -2
- package/dist/drizzle/pg-password-prepared.mjs +6 -2
- package/dist/drizzle/pg-password-prepared.mjs.map +1 -1
- package/dist/drizzle/pg-passwords.d.mts +6 -4
- package/dist/drizzle/pg-passwords.mjs +11 -7
- package/dist/drizzle/pg-passwords.mjs.map +1 -1
- package/dist/drizzle/pg-proofs.d.mts +3 -2
- package/dist/drizzle/pg-proofs.mjs +8 -4
- package/dist/drizzle/pg-proofs.mjs.map +1 -1
- package/dist/drizzle/pg-sessions.d.mts +11 -10
- package/dist/drizzle/pg-sessions.mjs +16 -12
- package/dist/drizzle/pg-sessions.mjs.map +1 -1
- package/dist/drizzle/phone-target.d.mts +4 -3
- package/dist/drizzle/phone-target.mjs +12 -11
- package/dist/drizzle/phone-target.mjs.map +1 -1
- package/dist/drizzle/proof-target.d.mts +3 -2
- package/dist/drizzle/proof-target.mjs +5 -5
- package/dist/drizzle/proof-target.mjs.map +1 -1
- package/dist/drizzle/session-sql.d.mts +1 -0
- package/dist/drizzle/session-target.d.mts +10 -8
- package/dist/drizzle/session-target.mjs +11 -11
- package/dist/drizzle/session-target.mjs.map +1 -1
- package/dist/drizzle/sqlite-emails.mjs +9 -5
- package/dist/drizzle/sqlite-emails.mjs.map +1 -1
- package/dist/drizzle/sqlite-identity.mjs +14 -11
- package/dist/drizzle/sqlite-identity.mjs.map +1 -1
- package/dist/drizzle/sqlite-password-prepared.mjs +7 -3
- package/dist/drizzle/sqlite-password-prepared.mjs.map +1 -1
- package/dist/drizzle/sqlite-passwords.mjs +10 -6
- package/dist/drizzle/sqlite-passwords.mjs.map +1 -1
- package/dist/drizzle/sqlite-proofs.mjs +7 -3
- package/dist/drizzle/sqlite-proofs.mjs.map +1 -1
- package/dist/drizzle/sqlite-sessions.mjs +16 -12
- package/dist/drizzle/sqlite-sessions.mjs.map +1 -1
- package/dist/drizzle/standalone-guard.d.mts +2 -0
- package/dist/drizzle/standalone-guard.mjs +8 -4
- package/dist/drizzle/standalone-guard.mjs.map +1 -1
- package/dist/drizzle/totp-target.d.mts +4 -3
- package/dist/drizzle/totp-target.mjs +31 -28
- package/dist/drizzle/totp-target.mjs.map +1 -1
- package/package.json +1 -1
- package/src/D1.ts +37 -10
- package/src/Libsql.ts +45 -17
- package/src/Mysql2.ts +39 -13
- package/src/Pglite.ts +47 -13
- package/src/Postgres.ts +47 -13
- package/src/SqliteBun.ts +58 -30
- package/src/SqliteDo.ts +61 -19
- package/src/SqliteNode.ts +55 -28
- package/src/SqliteWasm.ts +55 -28
- package/src/drizzle/d1-database.ts +10 -0
- package/src/drizzle/d1-emails.ts +84 -84
- package/src/drizzle/d1-identity.ts +17 -20
- package/src/drizzle/d1-oauth.ts +19 -8
- package/src/drizzle/d1-passkey.ts +5 -1
- package/src/drizzle/d1-password-prepared.ts +38 -37
- package/src/drizzle/d1-passwords.ts +74 -76
- package/src/drizzle/d1-phone.ts +5 -1
- package/src/drizzle/d1-proofs.ts +29 -30
- package/src/drizzle/d1-sessions.ts +51 -38
- package/src/drizzle/d1-totp.ts +5 -1
- package/src/drizzle/email-registration.ts +6 -2
- package/src/drizzle/email-target.ts +17 -19
- package/src/drizzle/mysql-database.ts +8 -0
- package/src/drizzle/mysql-emails.ts +28 -16
- package/src/drizzle/mysql-identity.ts +18 -21
- package/src/drizzle/mysql-password-prepared.ts +10 -8
- package/src/drizzle/mysql-passwords.ts +21 -9
- package/src/drizzle/mysql-proofs.ts +16 -5
- package/src/drizzle/mysql-sessions.ts +40 -17
- package/src/drizzle/native-database.ts +22 -0
- package/src/drizzle/oauth-connected-drivers.ts +18 -6
- package/src/drizzle/oauth-connected-target.ts +16 -17
- package/src/drizzle/oauth-drivers.ts +26 -10
- package/src/drizzle/oauth-target.ts +30 -42
- package/src/drizzle/passkey-drivers.ts +21 -13
- package/src/drizzle/passkey-write-drivers.ts +11 -6
- package/src/drizzle/password-prepared-sql.ts +2 -4
- package/src/drizzle/password-prepared-target.ts +9 -6
- package/src/drizzle/password-registration.ts +7 -8
- package/src/drizzle/password-target.ts +19 -18
- package/src/drizzle/pg-database.ts +10 -0
- package/src/drizzle/pg-emails.ts +28 -16
- package/src/drizzle/pg-identity.ts +18 -22
- package/src/drizzle/pg-password-prepared.ts +10 -8
- package/src/drizzle/pg-passwords.ts +21 -9
- package/src/drizzle/pg-proofs.ts +16 -5
- package/src/drizzle/pg-sessions.ts +40 -17
- package/src/drizzle/phone-target.ts +22 -17
- package/src/drizzle/proof-target.ts +9 -12
- package/src/drizzle/session-target.ts +32 -50
- package/src/drizzle/sqlite-emails.ts +30 -13
- package/src/drizzle/sqlite-identity.ts +22 -42
- package/src/drizzle/sqlite-password-prepared.ts +23 -9
- package/src/drizzle/sqlite-passwords.ts +29 -15
- package/src/drizzle/sqlite-proofs.ts +28 -5
- package/src/drizzle/sqlite-sessions.ts +49 -23
- package/src/drizzle/standalone-guard.ts +18 -6
- package/src/drizzle/totp-target.ts +61 -60
- package/dist/drizzle/d1-identity.d.mts +0 -30
- package/dist/drizzle/mysql-identity.d.mts +0 -21
- package/dist/drizzle/pg-identity.d.mts +0 -22
package/dist/Postgres.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IdentityTables } from "./drizzle/model.mjs";
|
|
1
|
+
import { ExternalIdentityTables, IdentityTables, SubjectProvisioningTables } from "./drizzle/model.mjs";
|
|
2
2
|
import { PasskeyCredentialMapping, PasskeyEnrollmentContextMapping, PasskeyPersistenceMapping } from "./drizzle/passkey-model.mjs";
|
|
3
3
|
import { OAuthAccountsMapping, OAuthRegistrationAuthority, OAuthRegistrationIntentMapping, OAuthRegistrationMapping, OAuthSignInMapping } from "./drizzle/oauth-model.mjs";
|
|
4
4
|
import { OAuthConnectedMapping, OAuthConnectedRevocationMapping } from "./drizzle/oauth-connected-model.mjs";
|
|
@@ -12,26 +12,35 @@ import "./index.mjs";
|
|
|
12
12
|
import { SuppliedService } from "./drizzle/SuppliedService.mjs";
|
|
13
13
|
import { TotpCoordinatorError } from "./drizzle/totp-target.mjs";
|
|
14
14
|
import { PhoneCoordinatorError } from "./drizzle/phone-target.mjs";
|
|
15
|
-
import {
|
|
15
|
+
import { Database } from "./drizzle/pg-database.mjs";
|
|
16
16
|
import { coordinatePgAuthenticationAuthority, coordinatePgPendingAuthentication, coordinatePgSessionStepUp, coordinatePgSignedSessionValidity, coordinatePgStatefulSessions, makePgAuthenticationAuthorityServices, makePgPendingAuthenticationServices, makePgSessionStepUpServices, makePgSignedSessionValidityServices, makePgStatefulSessionServices } from "./drizzle/pg-sessions.mjs";
|
|
17
17
|
import { coordinatePgProofPersistence, makePgProofPersistenceServices } from "./drizzle/pg-proofs.mjs";
|
|
18
18
|
import { coordinatePgPasswordPersistence, coordinatePgPasswordRegistration, makePgPasswordPersistenceServices, makePgPasswordRegistrationServices } from "./drizzle/pg-passwords.mjs";
|
|
19
19
|
import { coordinatePgEmailAddress, coordinatePgEmailRegistration, makePgEmailAddressServices, makePgEmailRegistrationServices, makePgEmailSignInServices } from "./drizzle/pg-emails.mjs";
|
|
20
20
|
import { coordinatePgPasswordPreparedPersistence, makePgPasswordPreparedPersistenceServices } from "./drizzle/pg-password-prepared.mjs";
|
|
21
|
-
import {
|
|
22
|
-
import { Effect } from "effect";
|
|
21
|
+
import { Effect, Layer } from "effect";
|
|
23
22
|
import { AnyPgTable } from "drizzle-orm/pg-core";
|
|
24
23
|
import { EffectPgDatabase } from "drizzle-orm/effect-postgres";
|
|
25
24
|
//#region src/Postgres.d.ts
|
|
25
|
+
export declare const makeSubjectProvisioningServices: <Subject extends AnyPgTable, Identifier extends AnyPgTable, Request extends AnyPgTable, NativeId>(mapping: SubjectProvisioningTables<Subject, Identifier, Request, NativeId>) => Effect.Effect<{
|
|
26
|
+
readonly subjectProvisioner: {
|
|
27
|
+
readonly provision: (input: import("@yielded/auth/Identity").SubjectProvisioningInput) => Effect.Effect<import("@yielded/auth/Identity").ProvisioningResult, import("@yielded/auth/Identity").IdentityConflict | import("@yielded/auth/Identity").IdentityUnavailable>;
|
|
28
|
+
};
|
|
29
|
+
}, never, Database>;
|
|
30
|
+
export declare const makeExternalIdentityServices: <Subject extends AnyPgTable, External extends AnyPgTable, NativeId>(mapping: ExternalIdentityTables<Subject, External, NativeId>) => Effect.Effect<{
|
|
31
|
+
readonly externalIdentityMutation: {
|
|
32
|
+
readonly bind: (subjectId: import("@yielded/auth/Schema").SubjectId, identity: import("@yielded/auth/Identity").ExternalIdentity) => Effect.Effect<void, import("@yielded/auth/Identity").IdentityConflict | import("@yielded/auth/Identity").IdentityUnavailable>;
|
|
33
|
+
};
|
|
34
|
+
}, never, Database>;
|
|
26
35
|
export declare const commitMode: "interactive";
|
|
27
|
-
export declare const makeIdentityServices: <Subject extends AnyPgTable, Identifier extends AnyPgTable, External extends AnyPgTable, Request extends AnyPgTable, NativeId>(
|
|
36
|
+
export declare const makeIdentityServices: <Subject extends AnyPgTable, Identifier extends AnyPgTable, External extends AnyPgTable, Request extends AnyPgTable, NativeId>(mapping: IdentityTables<Subject, Identifier, External, Request, NativeId>) => Effect.Effect<{
|
|
28
37
|
subjectProvisioner: {
|
|
29
38
|
readonly provision: (input: import("@yielded/auth/Identity").SubjectProvisioningInput) => Effect.Effect<import("@yielded/auth/Identity").ProvisioningResult, import("@yielded/auth/Identity").IdentityConflict | import("@yielded/auth/Identity").IdentityUnavailable>;
|
|
30
39
|
};
|
|
31
40
|
externalIdentityMutation: {
|
|
32
41
|
readonly bind: (subjectId: import("@yielded/auth/Schema").SubjectId, identity: import("@yielded/auth/Identity").ExternalIdentity) => Effect.Effect<void, import("@yielded/auth/Identity").IdentityConflict | import("@yielded/auth/Identity").IdentityUnavailable>;
|
|
33
42
|
};
|
|
34
|
-
}
|
|
43
|
+
}, never, Database>;
|
|
35
44
|
export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
36
45
|
dialect: "pg";
|
|
37
46
|
}>, O extends AnyPgTable<{
|
|
@@ -46,7 +55,7 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
46
55
|
dialect: "pg";
|
|
47
56
|
}>, U extends AnyPgTable<{
|
|
48
57
|
dialect: "pg";
|
|
49
|
-
}>, N>(
|
|
58
|
+
}>, N>(mapping: OAuthAccountsMapping<S, O, C, AC, F, TA, U, N>) => Effect.Effect<{
|
|
50
59
|
oauthAccountsPersistence: {
|
|
51
60
|
readonly capture: (input: {
|
|
52
61
|
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
@@ -191,9 +200,9 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
191
200
|
readonly invalidation: import("@yielded/auth/Sessions").SessionInvalidationWindow;
|
|
192
201
|
readonly nowMillis: number;
|
|
193
202
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
194
|
-
readonly _tag: "Cancelled";
|
|
195
|
-
} | {
|
|
196
203
|
readonly _tag: "Rejected";
|
|
204
|
+
} | {
|
|
205
|
+
readonly _tag: "Cancelled";
|
|
197
206
|
} | {
|
|
198
207
|
readonly _tag: "Ambiguous";
|
|
199
208
|
} | {
|
|
@@ -296,7 +305,7 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
296
305
|
readonly hasMore: boolean;
|
|
297
306
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
298
307
|
};
|
|
299
|
-
}, never, import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthSignInServices: <S extends AnyPgTable<{
|
|
308
|
+
}, never, Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthSignInServices: <S extends AnyPgTable<{
|
|
300
309
|
dialect: "pg";
|
|
301
310
|
}>, O extends AnyPgTable<{
|
|
302
311
|
dialect: "pg";
|
|
@@ -306,7 +315,7 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
306
315
|
dialect: "pg";
|
|
307
316
|
}>, F extends AnyPgTable<{
|
|
308
317
|
dialect: "pg";
|
|
309
|
-
}>, N>(
|
|
318
|
+
}>, N>(mapping: OAuthSignInMapping<S, O, C, AC, F, N>) => Effect.Effect<{
|
|
310
319
|
oauthSignInPersistence: {
|
|
311
320
|
readonly issue: <A>(input: import("@yielded/auth/OAuth").OAuthPendingFlow, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<import("@yielded/auth/OAuth").OAuthIssueDecision, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
312
321
|
readonly claim: <A>(input: {
|
|
@@ -338,7 +347,7 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
338
347
|
readonly hasMore: boolean;
|
|
339
348
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
340
349
|
};
|
|
341
|
-
}, never, import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthRegistrationIntentServices: <S extends AnyPgTable<{
|
|
350
|
+
}, never, Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthRegistrationIntentServices: <S extends AnyPgTable<{
|
|
342
351
|
dialect: "pg";
|
|
343
352
|
}>, O extends AnyPgTable<{
|
|
344
353
|
dialect: "pg";
|
|
@@ -352,7 +361,7 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
352
361
|
dialect: "pg";
|
|
353
362
|
}>, I extends AnyPgTable<{
|
|
354
363
|
dialect: "pg";
|
|
355
|
-
}>, N>(
|
|
364
|
+
}>, N>(mapping: OAuthRegistrationIntentMapping<S, O, C, AC, F, TA, I, N>) => Effect.Effect<{
|
|
356
365
|
oauthRegistrationIntents: {
|
|
357
366
|
readonly settle: <A>(input: {
|
|
358
367
|
readonly claim: import("@yielded/auth/OAuth").OAuthClaim;
|
|
@@ -361,7 +370,7 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
361
370
|
readonly nowMillis: number;
|
|
362
371
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<import("@yielded/auth/OAuth").OAuthRegistrationSettlement, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
363
372
|
};
|
|
364
|
-
}, never, import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthRegistrationServices: <Registration, S extends AnyPgTable<{
|
|
373
|
+
}, never, Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthRegistrationServices: <Registration, S extends AnyPgTable<{
|
|
365
374
|
dialect: "pg";
|
|
366
375
|
}>, O extends AnyPgTable<{
|
|
367
376
|
dialect: "pg";
|
|
@@ -375,9 +384,9 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
375
384
|
dialect: "pg";
|
|
376
385
|
}>, R extends AnyPgTable<{
|
|
377
386
|
dialect: "pg";
|
|
378
|
-
}>, N>(
|
|
387
|
+
}>, N>(mapping: OAuthRegistrationMapping<Registration, S, O, C, AC, TA, I, R, N>) => Effect.Effect<{
|
|
379
388
|
registrationAuthority: OAuthRegistrationAuthority<Registration>;
|
|
380
|
-
}, never, import("@yielded/auth/Hooks").LifecycleHooks>, coordinateOAuthRegistration: {
|
|
389
|
+
}, never, Database | import("@yielded/auth/Hooks").LifecycleHooks>, coordinateOAuthRegistration: {
|
|
381
390
|
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, TargetId, Registration, S extends AnyPgTable<{
|
|
382
391
|
dialect: "pg";
|
|
383
392
|
}>, O extends AnyPgTable<{
|
|
@@ -549,7 +558,7 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
549
558
|
dialect: "pg";
|
|
550
559
|
}>, N, J extends AnyPgTable<{
|
|
551
560
|
dialect: "pg";
|
|
552
|
-
}> = never>(
|
|
561
|
+
}> = never>(mapping: OAuthConnectedMapping<S, AC, T, O, F, G, C, H, UA, DC, N, J>) => Effect.Effect<{
|
|
553
562
|
oauthConnectedPersistence: {
|
|
554
563
|
readonly claimSignIn: <A>(input: {
|
|
555
564
|
readonly claim: import("@yielded/auth/OAuth").OAuthClaim;
|
|
@@ -564,13 +573,11 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
564
573
|
readonly reservation: import("@yielded/auth/OAuth").OAuthSignInAccessClaim;
|
|
565
574
|
readonly outcome: import("@yielded/auth/OAuth").OAuthSignInAccessOutcome;
|
|
566
575
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
567
|
-
readonly _tag: "Cancelled";
|
|
568
|
-
} | {
|
|
569
576
|
readonly _tag: "Rejected";
|
|
570
577
|
} | {
|
|
571
|
-
readonly _tag: "
|
|
578
|
+
readonly _tag: "Cancelled";
|
|
572
579
|
} | {
|
|
573
|
-
readonly _tag: "
|
|
580
|
+
readonly _tag: "Ambiguous";
|
|
574
581
|
} | {
|
|
575
582
|
readonly _tag: "Connected";
|
|
576
583
|
readonly grant: {
|
|
@@ -640,6 +647,8 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
640
647
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
641
648
|
};
|
|
642
649
|
};
|
|
650
|
+
} | {
|
|
651
|
+
readonly _tag: "Conflict";
|
|
643
652
|
} | {
|
|
644
653
|
readonly _tag: "Busy";
|
|
645
654
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
|
|
@@ -910,13 +919,11 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
910
919
|
readonly authorization: import("@yielded/auth/OAuth").OAuthConnectedActionAuthorization;
|
|
911
920
|
readonly nowMillis: number;
|
|
912
921
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
913
|
-
readonly _tag: "Cancelled";
|
|
914
|
-
} | {
|
|
915
922
|
readonly _tag: "Rejected";
|
|
916
923
|
} | {
|
|
917
|
-
readonly _tag: "
|
|
924
|
+
readonly _tag: "Cancelled";
|
|
918
925
|
} | {
|
|
919
|
-
readonly _tag: "
|
|
926
|
+
readonly _tag: "Ambiguous";
|
|
920
927
|
} | {
|
|
921
928
|
readonly _tag: "Connected";
|
|
922
929
|
readonly grant: {
|
|
@@ -986,6 +993,8 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
986
993
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
987
994
|
};
|
|
988
995
|
};
|
|
996
|
+
} | {
|
|
997
|
+
readonly _tag: "Conflict";
|
|
989
998
|
} | {
|
|
990
999
|
readonly _tag: "Busy";
|
|
991
1000
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
|
|
@@ -1139,8 +1148,6 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
1139
1148
|
readonly profileKey: string & import("effect/Brand").Brand<"effect-auth/OAuthPermissionProfileKey">;
|
|
1140
1149
|
}) => Effect.Effect<{
|
|
1141
1150
|
readonly _tag: "Rejected";
|
|
1142
|
-
} | {
|
|
1143
|
-
readonly _tag: "ReauthorizationRequired";
|
|
1144
1151
|
} | {
|
|
1145
1152
|
readonly _tag: "Busy";
|
|
1146
1153
|
} | {
|
|
@@ -1212,6 +1219,8 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
1212
1219
|
readonly ciphertext: import("effect/Redacted").Redacted<string>;
|
|
1213
1220
|
};
|
|
1214
1221
|
};
|
|
1222
|
+
} | {
|
|
1223
|
+
readonly _tag: "ReauthorizationRequired";
|
|
1215
1224
|
}, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
1216
1225
|
readonly claimRefresh: <A>(input: {
|
|
1217
1226
|
readonly grant: import("@yielded/auth/OAuth").OAuthConnectedStoredGrant;
|
|
@@ -1221,10 +1230,10 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
1221
1230
|
readonly lifetimeMillis: number;
|
|
1222
1231
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
1223
1232
|
readonly _tag: "Rejected";
|
|
1224
|
-
} | {
|
|
1225
|
-
readonly _tag: "ReauthorizationRequired";
|
|
1226
1233
|
} | {
|
|
1227
1234
|
readonly _tag: "Busy";
|
|
1235
|
+
} | {
|
|
1236
|
+
readonly _tag: "ReauthorizationRequired";
|
|
1228
1237
|
} | {
|
|
1229
1238
|
readonly _tag: "Claimed";
|
|
1230
1239
|
readonly claim: {
|
|
@@ -1387,10 +1396,10 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
1387
1396
|
readonly lifetimeMillis: number;
|
|
1388
1397
|
}, prepare: import("@yielded/auth/OAuth").PrepareOAuthCommit<{
|
|
1389
1398
|
readonly _tag: "Rejected";
|
|
1390
|
-
} | {
|
|
1391
|
-
readonly _tag: "ReauthorizationRequired";
|
|
1392
1399
|
} | {
|
|
1393
1400
|
readonly _tag: "Busy";
|
|
1401
|
+
} | {
|
|
1402
|
+
readonly _tag: "ReauthorizationRequired";
|
|
1394
1403
|
} | {
|
|
1395
1404
|
readonly _tag: "Admitted";
|
|
1396
1405
|
readonly admissionId: string & import("effect/Brand").Brand<"effect-auth/OAuthClaimId">;
|
|
@@ -1405,7 +1414,7 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
1405
1414
|
readonly hasMore: boolean;
|
|
1406
1415
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable, never>;
|
|
1407
1416
|
};
|
|
1408
|
-
}, never, import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthConnectedRevocationServices: <T extends AnyPgTable<{
|
|
1417
|
+
}, never, Database | import("@yielded/auth/Hooks").LifecycleHooks>, makeOAuthConnectedRevocationServices: <T extends AnyPgTable<{
|
|
1409
1418
|
dialect: "pg";
|
|
1410
1419
|
}>, O extends AnyPgTable<{
|
|
1411
1420
|
dialect: "pg";
|
|
@@ -1419,7 +1428,7 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
1419
1428
|
dialect: "pg";
|
|
1420
1429
|
}>, J extends AnyPgTable<{
|
|
1421
1430
|
dialect: "pg";
|
|
1422
|
-
}>, N>(
|
|
1431
|
+
}>, N>(mapping: OAuthConnectedRevocationMapping<T, O, F, G, C, H, J, N>) => Effect.Effect<{
|
|
1423
1432
|
oauthConnectedRevocations: {
|
|
1424
1433
|
readonly claim: <A>(input: {
|
|
1425
1434
|
readonly moduleId: string & import("effect/Brand").Brand<"effect-auth/OAuthModuleId">;
|
|
@@ -1513,7 +1522,7 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
1513
1522
|
readonly settled: boolean;
|
|
1514
1523
|
}, A>) => Effect.Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, import("@yielded/auth/OAuth").OAuthUnavailable>;
|
|
1515
1524
|
};
|
|
1516
|
-
}, never, import("@yielded/auth/Hooks").LifecycleHooks>, coordinateOAuthConnected: {
|
|
1525
|
+
}, never, Database | import("@yielded/auth/Hooks").LifecycleHooks>, coordinateOAuthConnected: {
|
|
1517
1526
|
<D extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
1518
1527
|
dialect: "pg";
|
|
1519
1528
|
}>, AC extends AnyPgTable<{
|
|
@@ -1608,7 +1617,7 @@ export declare const makeOAuthAccountsServices: <S extends AnyPgTable<{
|
|
|
1608
1617
|
} ? Parameters<Parameters<D["transaction"]>[0]>[0] : never>, TxShape>;
|
|
1609
1618
|
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | OAuthCoordinatorError<E>, DatabaseRequirements | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/OAuth").OAuthConnectedRevocations>>;
|
|
1610
1619
|
};
|
|
1611
|
-
export declare const makePasskeyCredentialServices: <
|
|
1620
|
+
export declare const makePasskeyCredentialServices: <S extends AnyPgTable<{
|
|
1612
1621
|
dialect: "pg";
|
|
1613
1622
|
}>, C extends AnyPgTable<{
|
|
1614
1623
|
dialect: "pg";
|
|
@@ -1618,7 +1627,7 @@ export declare const makePasskeyCredentialServices: <Database extends EffectPgDa
|
|
|
1618
1627
|
dialect: "pg";
|
|
1619
1628
|
}>, H extends AnyPgTable<{
|
|
1620
1629
|
dialect: "pg";
|
|
1621
|
-
}>, N, RSetup = never>(
|
|
1630
|
+
}>, N, RSetup = never>(mapping: import("@yielded/auth-persistence/Adapter").PasskeyMappingSource<PasskeyCredentialMapping<S, C, F, O, H, N>, RSetup>) => Effect.Effect<import("@yielded/auth-persistence/Adapter").PasskeyCredentialServices, import("@yielded/auth/Passkey").PasskeyConfigurationError | import("@yielded/auth-persistence/Adapter").PersistenceMappingError, Database | Exclude<RSetup, import("@yielded/auth-persistence/Adapter").NativeDatabase>>, makePasskeyPersistenceServices: <S extends AnyPgTable<{
|
|
1622
1631
|
dialect: "pg";
|
|
1623
1632
|
}>, C extends AnyPgTable<{
|
|
1624
1633
|
dialect: "pg";
|
|
@@ -1636,7 +1645,7 @@ export declare const makePasskeyCredentialServices: <Database extends EffectPgDa
|
|
|
1636
1645
|
dialect: "pg";
|
|
1637
1646
|
}>, Charge extends AnyPgTable<{
|
|
1638
1647
|
dialect: "pg";
|
|
1639
|
-
}>, N, RSetup = never>(
|
|
1648
|
+
}>, N, RSetup = never>(mapping: import("@yielded/auth-persistence/Adapter").PasskeyMappingSource<PasskeyPersistenceMapping<PasskeyCredentialMapping<S, C, F, O, H, N>, M, Flow, Admission, Charge, N>, RSetup>) => Effect.Effect<import("@yielded/auth-persistence/Adapter").PasskeyPersistenceServices, import("@yielded/auth/Passkey").PasskeyConfigurationError | import("@yielded/auth-persistence/Adapter").PersistenceMappingError, Database | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<RSetup, import("@yielded/auth-persistence/Adapter").NativeDatabase>>, makePasskeyEnrollmentContextServices: <S extends AnyPgTable<{
|
|
1640
1649
|
dialect: "pg";
|
|
1641
1650
|
}>, C extends AnyPgTable<{
|
|
1642
1651
|
dialect: "pg";
|
|
@@ -1648,7 +1657,7 @@ export declare const makePasskeyCredentialServices: <Database extends EffectPgDa
|
|
|
1648
1657
|
dialect: "pg";
|
|
1649
1658
|
}>, M extends AnyPgTable<{
|
|
1650
1659
|
dialect: "pg";
|
|
1651
|
-
}>, N, RSetup = never>(
|
|
1660
|
+
}>, N, RSetup = never>(mapping: import("@yielded/auth-persistence/Adapter").PasskeyMappingSource<PasskeyEnrollmentContextMapping<PasskeyCredentialMapping<S, C, F, O, H, N>, M, N>, RSetup>) => Effect.Effect<import("@yielded/auth-persistence/Adapter").PasskeyEnrollmentContextServices, import("@yielded/auth/Passkey").PasskeyConfigurationError | import("@yielded/auth-persistence/Adapter").PersistenceMappingError, Database | Exclude<RSetup, import("@yielded/auth-persistence/Adapter").NativeDatabase>>, makePasskeyRegistrationCeremonyServices: <M extends AnyPgTable<{
|
|
1652
1661
|
dialect: "pg";
|
|
1653
1662
|
}>, Flow extends AnyPgTable<{
|
|
1654
1663
|
dialect: "pg";
|
|
@@ -1660,7 +1669,7 @@ export declare const makePasskeyCredentialServices: <Database extends EffectPgDa
|
|
|
1660
1669
|
dialect: "pg";
|
|
1661
1670
|
}>, H extends AnyPgTable<{
|
|
1662
1671
|
dialect: "pg";
|
|
1663
|
-
}>, RSetup = never>(
|
|
1672
|
+
}>, RSetup = never>(mapping: import("@yielded/auth-persistence/Adapter").PasskeyMappingSource<PasskeyRegistrationCeremonyMapping<M, Flow, Admission, Charge, Intent, H>, RSetup>) => Effect.Effect<import("@yielded/auth-persistence/Adapter").PasskeyRegistrationCeremonyServices, import("@yielded/auth/Passkey").PasskeyConfigurationError | import("@yielded/auth-persistence/Adapter").PersistenceMappingError, Database | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<RSetup, import("@yielded/auth-persistence/Adapter").NativeDatabase>>, coordinatePasskeyPersistence: {
|
|
1664
1673
|
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
1665
1674
|
dialect: "pg";
|
|
1666
1675
|
}>, C extends AnyPgTable<{
|
|
@@ -1742,7 +1751,7 @@ export declare const makePasskeyCredentialServices: <Database extends EffectPgDa
|
|
|
1742
1751
|
readonly transaction: (...args: any[]) => any;
|
|
1743
1752
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
1744
1753
|
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | import("@yielded/auth-persistence/Adapter").PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/Passkey").PasskeyPersistence>>;
|
|
1745
|
-
}, makePasskeyManagementServices: <
|
|
1754
|
+
}, makePasskeyManagementServices: <S extends AnyPgTable<{
|
|
1746
1755
|
dialect: "pg";
|
|
1747
1756
|
}>, C extends AnyPgTable<{
|
|
1748
1757
|
dialect: "pg";
|
|
@@ -1762,7 +1771,7 @@ export declare const makePasskeyCredentialServices: <Database extends EffectPgDa
|
|
|
1762
1771
|
dialect: "pg";
|
|
1763
1772
|
}>, Command extends AnyPgTable<{
|
|
1764
1773
|
dialect: "pg";
|
|
1765
|
-
}>, N, RSetup = never>(
|
|
1774
|
+
}>, N, RSetup = never>(mapping: import("@yielded/auth-persistence/Adapter").PasskeyMappingSource<PasskeyManagementMapping<S, C, F, O, H, M, Flow, Admission, Charge, Command, N>, RSetup>) => Effect.Effect<import("@yielded/auth-persistence/Adapter").PasskeyManagementServices, import("@yielded/auth/Passkey").PasskeyConfigurationError | import("@yielded/auth-persistence/Adapter").PersistenceMappingError, Database | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<RSetup, import("@yielded/auth-persistence/Adapter").NativeDatabase>>, makePasskeyRegistrationServices: <S extends AnyPgTable<{
|
|
1766
1775
|
dialect: "pg";
|
|
1767
1776
|
}>, C extends AnyPgTable<{
|
|
1768
1777
|
dialect: "pg";
|
|
@@ -1782,7 +1791,7 @@ export declare const makePasskeyCredentialServices: <Database extends EffectPgDa
|
|
|
1782
1791
|
dialect: "pg";
|
|
1783
1792
|
}>, Intent extends AnyPgTable<{
|
|
1784
1793
|
dialect: "pg";
|
|
1785
|
-
}>, N, Value, RSetup = never>(
|
|
1794
|
+
}>, N, Value, RSetup = never>(mapping: import("@yielded/auth-persistence/Adapter").PasskeyMappingSource<PasskeyRegistrationMapping<S, C, F, O, H, M, Flow, Admission, Charge, Intent, N, Value>, RSetup>) => Effect.Effect<import("@yielded/auth-persistence/Adapter").PasskeyRegistrationServices<Value>, import("@yielded/auth/Passkey").PasskeyConfigurationError | import("@yielded/auth-persistence/Adapter").PersistenceMappingError, Database | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<RSetup, import("@yielded/auth-persistence/Adapter").NativeDatabase>>, coordinatePasskeyManagement: {
|
|
1786
1795
|
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
1787
1796
|
dialect: "pg";
|
|
1788
1797
|
}>, C extends AnyPgTable<{
|
|
@@ -1887,13 +1896,13 @@ export declare const makePasskeyCredentialServices: <Database extends EffectPgDa
|
|
|
1887
1896
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
1888
1897
|
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | import("@yielded/auth-persistence/Adapter").PasskeyCoordinatorError<E>, DatabaseRequirements | RSetup | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, AuthorityId | TxId | import("@yielded/auth/Passkey").PasskeyPersistence>>;
|
|
1889
1898
|
};
|
|
1890
|
-
export declare const makeTotpPersistenceServices: <
|
|
1899
|
+
export declare const makeTotpPersistenceServices: <S extends AnyPgTable<{
|
|
1891
1900
|
dialect: "pg";
|
|
1892
1901
|
}>, F extends AnyPgTable<{
|
|
1893
1902
|
dialect: "pg";
|
|
1894
1903
|
}>, C extends AnyPgTable<{
|
|
1895
1904
|
dialect: "pg";
|
|
1896
|
-
}>, N, RSetup = never>(
|
|
1905
|
+
}>, N, RSetup = never>(mapping: TotpMappingSource<TotpMapping<S, F, C, N>, RSetup>) => Effect.Effect<TotpPersistenceServices, import("@yielded/auth-persistence/Adapter").PersistenceMappingError | import("@yielded/auth/Totp").TotpConfigurationError, Database | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<RSetup, import("@yielded/auth-persistence/Adapter").NativeDatabase>>, coordinateTotpPersistence: {
|
|
1897
1906
|
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
1898
1907
|
dialect: "pg";
|
|
1899
1908
|
}>, F extends AnyPgTable<{
|
|
@@ -1917,7 +1926,7 @@ export declare const makeTotpPersistenceServices: <Database extends EffectPgData
|
|
|
1917
1926
|
} ? Parameters<Parameters<Database["transaction"]>[0]>[0] : never>, TxShape>;
|
|
1918
1927
|
}, body: Effect.Effect<A, E, R>): Effect.Effect<A, DatabaseError | TotpCoordinatorError<E>, DatabaseRequirements | RSetup | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<R, TxId | import("@yielded/auth/Totp").TotpPersistence>>;
|
|
1919
1928
|
};
|
|
1920
|
-
export declare const makePhonePersistenceServices: <
|
|
1929
|
+
export declare const makePhonePersistenceServices: <S extends AnyPgTable<{
|
|
1921
1930
|
dialect: "pg";
|
|
1922
1931
|
}>, I extends AnyPgTable<{
|
|
1923
1932
|
dialect: "pg";
|
|
@@ -1925,7 +1934,7 @@ export declare const makePhonePersistenceServices: <Database extends EffectPgDat
|
|
|
1925
1934
|
dialect: "pg";
|
|
1926
1935
|
}>, C extends AnyPgTable<{
|
|
1927
1936
|
dialect: "pg";
|
|
1928
|
-
}>, N, RSetup = never>(
|
|
1937
|
+
}>, N, RSetup = never>(mapping: PhoneMappingSource<PhoneMapping<S, I, C, F, N>, RSetup>) => Effect.Effect<PhonePersistenceServices, import("@yielded/auth-persistence/Adapter").PersistenceMappingError | import("@yielded/auth/PhoneOtp").PhoneConfigurationError, Database | import("@yielded/auth/Hooks").LifecycleHooks | Exclude<RSetup, import("@yielded/auth-persistence/Adapter").NativeDatabase>>, coordinatePhonePersistence: {
|
|
1929
1938
|
<Database extends EffectPgDatabase<import("drizzle-orm").TablesRelationalConfig>, S extends AnyPgTable<{
|
|
1930
1939
|
dialect: "pg";
|
|
1931
1940
|
}>, I extends AnyPgTable<{
|
|
@@ -1955,8 +1964,10 @@ export declare const makePhonePersistenceServices: <Database extends EffectPgDat
|
|
|
1955
1964
|
};
|
|
1956
1965
|
export declare const AuthPersistence: {
|
|
1957
1966
|
make: <C extends import("@yielded/auth-persistence/Adapter").ClaimsCodec, const Id extends string, const A extends import("@yielded/auth-persistence/Adapter").Definition<C, Id>>(auth: A & import("@yielded/auth-persistence/Adapter").Definition<C, Id>) => import("@yielded/auth-persistence/Adapter").BoundPersistence<import("drizzle-orm/pg-core").PgTable<import("drizzle-orm/pg-core").TableConfig>, import("@effect/sql-pg/PgClient").PgClient, C, Id, A>;
|
|
1958
|
-
migrationsLayer: (options: import("drizzle-orm/migrator").MigrationConfig) =>
|
|
1967
|
+
migrationsLayer: (options: import("drizzle-orm/migrator").MigrationConfig) => Layer.Layer<never, import("drizzle-orm/effect-core").EffectDrizzleQueryError | import("drizzle-orm/effect-core").MigratorInitError | import("@yielded/auth-persistence/Adapter").PersistenceConfigurationError | import("effect/sql/SqlError").SqlError, import("@effect/sql-pg/PgClient").PgClient>;
|
|
1959
1968
|
};
|
|
1969
|
+
/** Construct Drizzle from the driver's SQL-client Layer. */
|
|
1970
|
+
export declare const databaseLayer: Layer.Layer<Database, never, import("@effect/sql-pg/PgClient").PgClient>;
|
|
1960
1971
|
//#endregion
|
|
1961
|
-
export { coordinatePgAuthenticationAuthority as coordinateAuthenticationAuthority, coordinatePgEmailAddress as coordinateEmailAddress, coordinatePgEmailRegistration as coordinateEmailRegistration, coordinatePgPasswordPersistence as coordinatePasswordPersistence, coordinatePgPasswordPreparedPersistence as coordinatePasswordPreparedPersistence, coordinatePgPasswordRegistration as coordinatePasswordRegistration, coordinatePgPendingAuthentication as coordinatePendingAuthentication, coordinatePgProofPersistence as coordinateProofPersistence, coordinatePgSessionStepUp as coordinateSessionStepUp, coordinatePgSignedSessionValidity as coordinateSignedSessionValidity, coordinatePgStatefulSessions as coordinateStatefulSessions, makePgAuthenticationAuthorityServices as makeAuthenticationAuthorityServices, makePgEmailAddressServices as makeEmailAddressServices, makePgEmailRegistrationServices as makeEmailRegistrationServices, makePgEmailSignInServices as makeEmailSignInServices,
|
|
1972
|
+
export { Database, coordinatePgAuthenticationAuthority as coordinateAuthenticationAuthority, coordinatePgEmailAddress as coordinateEmailAddress, coordinatePgEmailRegistration as coordinateEmailRegistration, coordinatePgPasswordPersistence as coordinatePasswordPersistence, coordinatePgPasswordPreparedPersistence as coordinatePasswordPreparedPersistence, coordinatePgPasswordRegistration as coordinatePasswordRegistration, coordinatePgPendingAuthentication as coordinatePendingAuthentication, coordinatePgProofPersistence as coordinateProofPersistence, coordinatePgSessionStepUp as coordinateSessionStepUp, coordinatePgSignedSessionValidity as coordinateSignedSessionValidity, coordinatePgStatefulSessions as coordinateStatefulSessions, makePgAuthenticationAuthorityServices as makeAuthenticationAuthorityServices, makePgEmailAddressServices as makeEmailAddressServices, makePgEmailRegistrationServices as makeEmailRegistrationServices, makePgEmailSignInServices as makeEmailSignInServices, makePgPasswordPersistenceServices as makePasswordPersistenceServices, makePgPasswordPreparedPersistenceServices as makePasswordPreparedPersistenceServices, makePgPasswordRegistrationServices as makePasswordRegistrationServices, makePgPendingAuthenticationServices as makePendingAuthenticationServices, makePgProofPersistenceServices as makeProofPersistenceServices, makePgSessionStepUpServices as makeSessionStepUpServices, makePgSignedSessionValidityServices as makeSignedSessionValidityServices, makePgStatefulSessionServices as makeStatefulSessionServices, passwordPreparedPersistenceLayer };
|
|
1962
1973
|
//# sourceMappingURL=Postgres.d.mts.map
|
package/dist/Postgres.mjs
CHANGED
|
@@ -6,6 +6,7 @@ import { makePasskeyTarget } from "./drizzle/passkey-drivers.mjs";
|
|
|
6
6
|
import { makePhoneTarget, sqlClientPhoneStandaloneGuard } from "./drizzle/phone-target.mjs";
|
|
7
7
|
import { makeOAuthTarget } from "./drizzle/oauth-drivers.mjs";
|
|
8
8
|
import { drizzleMigrationsLayer } from "./internal/drizzle-migrations.mjs";
|
|
9
|
+
import { Database } from "./drizzle/pg-database.mjs";
|
|
9
10
|
import { makePgExternalIdentityServices, makePgIdentityServices, makePgSubjectProvisioningServices } from "./drizzle/pg-identity.mjs";
|
|
10
11
|
import { coordinatePgAuthenticationAuthority, coordinatePgPendingAuthentication, coordinatePgSessionStepUp, coordinatePgSignedSessionValidity, coordinatePgStatefulSessions, makePgAuthenticationAuthorityServices, makePgPendingAuthenticationServices, makePgSessionStepUpServices, makePgSignedSessionValidityServices, makePgStatefulSessionServices } from "./drizzle/pg-sessions.mjs";
|
|
11
12
|
import { coordinatePgProofPersistence, makePgProofPersistenceServices } from "./drizzle/pg-proofs.mjs";
|
|
@@ -13,30 +14,32 @@ import { coordinatePgPasswordPersistence, coordinatePgPasswordRegistration, make
|
|
|
13
14
|
import { coordinatePgEmailAddress, coordinatePgEmailRegistration, makePgEmailAddressServices, makePgEmailRegistrationServices, makePgEmailSignInServices } from "./drizzle/pg-emails.mjs";
|
|
14
15
|
import { coordinatePgPasswordPreparedPersistence, makePgPasswordPreparedPersistenceServices } from "./drizzle/pg-password-prepared.mjs";
|
|
15
16
|
import { postgresPersistence } from "./internal/drizzle-postgres.mjs";
|
|
16
|
-
import { Effect } from "effect";
|
|
17
|
+
import { Effect, Layer } from "effect";
|
|
17
18
|
import { makeWithDefaults } from "drizzle-orm/effect-postgres";
|
|
18
19
|
//#region src/Postgres.ts
|
|
20
|
+
const makeSubjectProvisioningServices = (mapping) => makePgSubjectProvisioningServices(mapping);
|
|
21
|
+
const makeExternalIdentityServices = (mapping) => makePgExternalIdentityServices(mapping);
|
|
19
22
|
const commitMode = "interactive";
|
|
20
|
-
const makeIdentityServices = (
|
|
21
|
-
const { makeOAuthAccountsServices, makeOAuthSignInServices, makeOAuthRegistrationIntentServices, makeOAuthRegistrationServices, coordinateOAuthRegistration, coordinateOAuthSignIn, coordinateOAuthRegistrationIntents, coordinateOAuthAccounts, makeOAuthConnectedServices, makeOAuthConnectedRevocationServices, coordinateOAuthConnected, coordinateOAuthConnectedRevocations } = makeOAuthTarget({
|
|
23
|
+
const makeIdentityServices = (mapping) => makePgIdentityServices(mapping);
|
|
24
|
+
const { makeOAuthAccountsServices, makeOAuthSignInServices, makeOAuthRegistrationIntentServices, makeOAuthRegistrationServices, coordinateOAuthRegistration, coordinateOAuthSignIn, coordinateOAuthRegistrationIntents, coordinateOAuthAccounts, makeOAuthConnectedServices, makeOAuthConnectedRevocationServices, coordinateOAuthConnected, coordinateOAuthConnectedRevocations } = makeOAuthTarget(Database, {
|
|
22
25
|
mode: "interactive",
|
|
23
26
|
dialect: "pg",
|
|
24
27
|
locking: true,
|
|
25
28
|
standaloneGuard: sqlClientOAuthStandaloneGuard
|
|
26
29
|
});
|
|
27
|
-
const { makePasskeyCredentialServices, makePasskeyPersistenceServices, makePasskeyEnrollmentContextServices, makePasskeyRegistrationCeremonyServices, coordinatePasskeyPersistence, coordinatePasskeyRegistrationCeremony, makePasskeyManagementServices, makePasskeyRegistrationServices, coordinatePasskeyManagement, coordinatePasskeyRegistration } = makePasskeyTarget({
|
|
30
|
+
const { makePasskeyCredentialServices, makePasskeyPersistenceServices, makePasskeyEnrollmentContextServices, makePasskeyRegistrationCeremonyServices, coordinatePasskeyPersistence, coordinatePasskeyRegistrationCeremony, makePasskeyManagementServices, makePasskeyRegistrationServices, coordinatePasskeyManagement, coordinatePasskeyRegistration } = makePasskeyTarget(Database, {
|
|
28
31
|
mode: "interactive",
|
|
29
32
|
dialect: "pg",
|
|
30
33
|
locking: true,
|
|
31
34
|
standaloneGuard: sqlClientPasskeyStandaloneGuard
|
|
32
35
|
});
|
|
33
|
-
const { makeTotpPersistenceServices, coordinateTotpPersistence } = makeTotpTarget({
|
|
36
|
+
const { makeTotpPersistenceServices, coordinateTotpPersistence } = makeTotpTarget(Database, {
|
|
34
37
|
mode: "interactive",
|
|
35
38
|
dialect: "pg",
|
|
36
39
|
locking: true,
|
|
37
40
|
standaloneGuard: sqlClientTotpStandaloneGuard
|
|
38
41
|
});
|
|
39
|
-
const { makePhonePersistenceServices, coordinatePhonePersistence } = makePhoneTarget({
|
|
42
|
+
const { makePhonePersistenceServices, coordinatePhonePersistence } = makePhoneTarget(Database, {
|
|
40
43
|
mode: "interactive",
|
|
41
44
|
dialect: "pg",
|
|
42
45
|
locking: true,
|
|
@@ -46,7 +49,9 @@ const AuthPersistence = {
|
|
|
46
49
|
...postgresPersistence(makeWithDefaults({})),
|
|
47
50
|
migrationsLayer: drizzleMigrationsLayer(makeWithDefaults({}), Effect.promise(() => import("drizzle-orm/effect-postgres/migrator")).pipe(Effect.map((module) => module.migrate)))
|
|
48
51
|
};
|
|
52
|
+
/** Construct Drizzle from the driver's SQL-client Layer. */
|
|
53
|
+
const databaseLayer = Layer.effect(Database, makeWithDefaults({}));
|
|
49
54
|
//#endregion
|
|
50
|
-
export { AuthPersistence, commitMode, coordinatePgAuthenticationAuthority as coordinateAuthenticationAuthority, coordinatePgEmailAddress as coordinateEmailAddress, coordinatePgEmailRegistration as coordinateEmailRegistration, coordinateOAuthAccounts, coordinateOAuthConnected, coordinateOAuthConnectedRevocations, coordinateOAuthRegistration, coordinateOAuthRegistrationIntents, coordinateOAuthSignIn, coordinatePasskeyManagement, coordinatePasskeyPersistence, coordinatePasskeyRegistration, coordinatePasskeyRegistrationCeremony, coordinatePgPasswordPersistence as coordinatePasswordPersistence, coordinatePgPasswordPreparedPersistence as coordinatePasswordPreparedPersistence, coordinatePgPasswordRegistration as coordinatePasswordRegistration, coordinatePgPendingAuthentication as coordinatePendingAuthentication, coordinatePhonePersistence, coordinatePgProofPersistence as coordinateProofPersistence, coordinatePgSessionStepUp as coordinateSessionStepUp, coordinatePgSignedSessionValidity as coordinateSignedSessionValidity, coordinatePgStatefulSessions as coordinateStatefulSessions, coordinateTotpPersistence, makePgAuthenticationAuthorityServices as makeAuthenticationAuthorityServices, makePgEmailAddressServices as makeEmailAddressServices, makePgEmailRegistrationServices as makeEmailRegistrationServices, makePgEmailSignInServices as makeEmailSignInServices,
|
|
55
|
+
export { AuthPersistence, Database, commitMode, coordinatePgAuthenticationAuthority as coordinateAuthenticationAuthority, coordinatePgEmailAddress as coordinateEmailAddress, coordinatePgEmailRegistration as coordinateEmailRegistration, coordinateOAuthAccounts, coordinateOAuthConnected, coordinateOAuthConnectedRevocations, coordinateOAuthRegistration, coordinateOAuthRegistrationIntents, coordinateOAuthSignIn, coordinatePasskeyManagement, coordinatePasskeyPersistence, coordinatePasskeyRegistration, coordinatePasskeyRegistrationCeremony, coordinatePgPasswordPersistence as coordinatePasswordPersistence, coordinatePgPasswordPreparedPersistence as coordinatePasswordPreparedPersistence, coordinatePgPasswordRegistration as coordinatePasswordRegistration, coordinatePgPendingAuthentication as coordinatePendingAuthentication, coordinatePhonePersistence, coordinatePgProofPersistence as coordinateProofPersistence, coordinatePgSessionStepUp as coordinateSessionStepUp, coordinatePgSignedSessionValidity as coordinateSignedSessionValidity, coordinatePgStatefulSessions as coordinateStatefulSessions, coordinateTotpPersistence, databaseLayer, makePgAuthenticationAuthorityServices as makeAuthenticationAuthorityServices, makePgEmailAddressServices as makeEmailAddressServices, makePgEmailRegistrationServices as makeEmailRegistrationServices, makePgEmailSignInServices as makeEmailSignInServices, makeExternalIdentityServices, makeIdentityServices, makeOAuthAccountsServices, makeOAuthConnectedRevocationServices, makeOAuthConnectedServices, makeOAuthRegistrationIntentServices, makeOAuthRegistrationServices, makeOAuthSignInServices, makePasskeyCredentialServices, makePasskeyEnrollmentContextServices, makePasskeyManagementServices, makePasskeyPersistenceServices, makePasskeyRegistrationCeremonyServices, makePasskeyRegistrationServices, makePgPasswordPersistenceServices as makePasswordPersistenceServices, makePgPasswordPreparedPersistenceServices as makePasswordPreparedPersistenceServices, makePgPasswordRegistrationServices as makePasswordRegistrationServices, makePgPendingAuthenticationServices as makePendingAuthenticationServices, makePhonePersistenceServices, makePgProofPersistenceServices as makeProofPersistenceServices, makePgSessionStepUpServices as makeSessionStepUpServices, makePgSignedSessionValidityServices as makeSignedSessionValidityServices, makePgStatefulSessionServices as makeStatefulSessionServices, makeSubjectProvisioningServices, makeTotpPersistenceServices, passwordPreparedPersistenceLayer };
|
|
51
56
|
|
|
52
57
|
//# sourceMappingURL=Postgres.mjs.map
|
package/dist/Postgres.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Postgres.mjs","names":[],"sources":["../src/Postgres.ts"],"sourcesContent":["import type { AnyRelations } from \"drizzle-orm\";\nimport { type EffectPgDatabase, makeWithDefaults } from \"drizzle-orm/effect-postgres\";\nimport type { AnyPgTable } from \"drizzle-orm/pg-core\";\nimport { Effect } from \"effect\";\n\nimport type {
|
|
1
|
+
{"version":3,"file":"Postgres.mjs","names":[],"sources":["../src/Postgres.ts"],"sourcesContent":["import type { AnyRelations } from \"drizzle-orm\";\nimport { type EffectPgDatabase, makeWithDefaults } from \"drizzle-orm/effect-postgres\";\nimport type { AnyPgTable } from \"drizzle-orm/pg-core\";\nimport { Effect, Layer } from \"effect\";\n\nimport type {\n IdentityTables,\n SubjectProvisioningTables,\n ExternalIdentityTables,\n} from \"./drizzle/model\";\nimport { Database } from \"./drizzle/pg-database\";\nimport {\n makePgExternalIdentityServices,\n makePgIdentityServices,\n makePgSubjectProvisioningServices,\n} from \"./drizzle/pg-identity\";\n\nexport { Database } from \"./drizzle/pg-database\";\n\nexport {\n coordinatePgAuthenticationAuthority as coordinateAuthenticationAuthority,\n coordinatePgPendingAuthentication as coordinatePendingAuthentication,\n coordinatePgSignedSessionValidity as coordinateSignedSessionValidity,\n coordinatePgStatefulSessions as coordinateStatefulSessions,\n makePgAuthenticationAuthorityServices as makeAuthenticationAuthorityServices,\n makePgPendingAuthenticationServices as makePendingAuthenticationServices,\n makePgSignedSessionValidityServices as makeSignedSessionValidityServices,\n makePgStatefulSessionServices as makeStatefulSessionServices,\n} from \"./drizzle/pg-sessions\";\n\nexport {\n coordinatePgProofPersistence as coordinateProofPersistence,\n makePgProofPersistenceServices as makeProofPersistenceServices,\n} from \"./drizzle/pg-proofs\";\n\nexport {\n coordinatePgPasswordPersistence as coordinatePasswordPersistence,\n coordinatePgPasswordRegistration as coordinatePasswordRegistration,\n makePgPasswordPersistenceServices as makePasswordPersistenceServices,\n makePgPasswordRegistrationServices as makePasswordRegistrationServices,\n} from \"./drizzle/pg-passwords\";\n\nexport {\n coordinatePgEmailAddress as coordinateEmailAddress,\n coordinatePgEmailRegistration as coordinateEmailRegistration,\n makePgEmailAddressServices as makeEmailAddressServices,\n makePgEmailRegistrationServices as makeEmailRegistrationServices,\n makePgEmailSignInServices as makeEmailSignInServices,\n} from \"./drizzle/pg-emails\";\n\nexport const makeSubjectProvisioningServices = <\n Subject extends AnyPgTable,\n Identifier extends AnyPgTable,\n Request extends AnyPgTable,\n NativeId,\n>(\n mapping: SubjectProvisioningTables<Subject, Identifier, Request, NativeId>,\n) => makePgSubjectProvisioningServices(mapping);\n\nexport const makeExternalIdentityServices = <\n Subject extends AnyPgTable,\n External extends AnyPgTable,\n NativeId,\n>(\n mapping: ExternalIdentityTables<Subject, External, NativeId>,\n) => makePgExternalIdentityServices(mapping);\n\nexport const commitMode = \"interactive\" as const;\n\nexport const makeIdentityServices = <\n Subject extends AnyPgTable,\n Identifier extends AnyPgTable,\n External extends AnyPgTable,\n Request extends AnyPgTable,\n NativeId,\n>(\n mapping: IdentityTables<Subject, Identifier, External, Request, NativeId>,\n) => makePgIdentityServices(mapping);\n\nexport {\n makePgSessionStepUpServices as makeSessionStepUpServices,\n coordinatePgSessionStepUp as coordinateSessionStepUp,\n} from \"./drizzle/pg-sessions\";\n\nexport {\n makePgPasswordPreparedPersistenceServices as makePasswordPreparedPersistenceServices,\n coordinatePgPasswordPreparedPersistence as coordinatePasswordPreparedPersistence,\n} from \"./drizzle/pg-password-prepared\";\n\nexport { passwordPreparedPersistenceLayer } from \"./drizzle/password-prepared-target\";\n\nimport { makeOAuthTarget } from \"./drizzle/oauth-drivers\";\nimport { sqlClientOAuthStandaloneGuard } from \"./drizzle/oauth-target\";\n\nconst oauthTarget = makeOAuthTarget<\n Database,\n EffectPgDatabase<AnyRelations>,\n AnyPgTable<{ dialect: \"pg\" }>\n>(Database, {\n mode: \"interactive\",\n dialect: \"pg\",\n locking: true,\n standaloneGuard: sqlClientOAuthStandaloneGuard,\n});\n\nexport const {\n makeOAuthAccountsServices,\n makeOAuthSignInServices,\n makeOAuthRegistrationIntentServices,\n makeOAuthRegistrationServices,\n coordinateOAuthRegistration,\n coordinateOAuthSignIn,\n coordinateOAuthRegistrationIntents,\n coordinateOAuthAccounts,\n makeOAuthConnectedServices,\n makeOAuthConnectedRevocationServices,\n coordinateOAuthConnected,\n coordinateOAuthConnectedRevocations,\n} = oauthTarget;\n\nimport { makePasskeyTarget } from \"./drizzle/passkey-drivers\";\nimport { sqlClientPasskeyStandaloneGuard } from \"./drizzle/passkey-target\";\n\nconst passkeyTarget = makePasskeyTarget<\n Database,\n EffectPgDatabase<AnyRelations>,\n AnyPgTable<{ dialect: \"pg\" }>\n>(Database, {\n mode: \"interactive\",\n dialect: \"pg\",\n locking: true,\n standaloneGuard: sqlClientPasskeyStandaloneGuard,\n});\n\nexport const {\n makePasskeyCredentialServices,\n makePasskeyPersistenceServices,\n makePasskeyEnrollmentContextServices,\n makePasskeyRegistrationCeremonyServices,\n coordinatePasskeyPersistence,\n coordinatePasskeyRegistrationCeremony,\n makePasskeyManagementServices,\n makePasskeyRegistrationServices,\n coordinatePasskeyManagement,\n coordinatePasskeyRegistration,\n} = passkeyTarget;\n\nimport { makeTotpTarget, sqlClientTotpStandaloneGuard } from \"./drizzle/totp-target\";\n\nconst totpTarget = makeTotpTarget<\n Database,\n EffectPgDatabase<AnyRelations>,\n AnyPgTable<{ dialect: \"pg\" }>\n>(Database, {\n mode: \"interactive\",\n dialect: \"pg\",\n locking: true,\n standaloneGuard: sqlClientTotpStandaloneGuard,\n});\n\nexport const { makeTotpPersistenceServices, coordinateTotpPersistence } = totpTarget;\n\nimport { makePhoneTarget, sqlClientPhoneStandaloneGuard } from \"./drizzle/phone-target\";\n\nconst phoneTarget = makePhoneTarget<\n Database,\n EffectPgDatabase<AnyRelations>,\n AnyPgTable<{ dialect: \"pg\" }>\n>(Database, {\n mode: \"interactive\",\n dialect: \"pg\",\n locking: true,\n standaloneGuard: sqlClientPhoneStandaloneGuard,\n});\n\nexport const { makePhonePersistenceServices, coordinatePhonePersistence } = phoneTarget;\n\nimport { drizzleMigrationsLayer } from \"./internal/drizzle-migrations\";\nimport { postgresPersistence } from \"./internal/drizzle-postgres\";\n\nexport const AuthPersistence = {\n ...postgresPersistence(makeWithDefaults({})),\n migrationsLayer: drizzleMigrationsLayer(\n makeWithDefaults({}),\n Effect.promise(() => import(\"drizzle-orm/effect-postgres/migrator\")).pipe(\n Effect.map((module) => module.migrate),\n ),\n ),\n};\n\n/** Construct Drizzle from the driver's SQL-client Layer. */\nexport const databaseLayer = Layer.effect(Database, makeWithDefaults({}));\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAkDA,MAAa,mCAMX,YACG,kCAAkC,OAAO;AAE9C,MAAa,gCAKX,YACG,+BAA+B,OAAO;AAE3C,MAAa,aAAa;AAE1B,MAAa,wBAOX,YACG,uBAAuB,OAAO;AA4BnC,MAAa,EACX,2BACA,yBACA,qCACA,+BACA,6BACA,uBACA,oCACA,yBACA,4BACA,sCACA,0BACA,wCAvBkB,gBAIlB,UAAU;CACV,MAAM;CACN,SAAS;CACT,SAAS;CACT,iBAAiB;AACnB,CAeI;AAgBJ,MAAa,EACX,+BACA,gCACA,sCACA,yCACA,8BACA,uCACA,+BACA,iCACA,6BACA,kCArBoB,kBAIpB,UAAU;CACV,MAAM;CACN,SAAS;CACT,SAAS;CACT,iBAAiB;AACnB,CAaI;AAeJ,MAAa,EAAE,6BAA6B,8BAXzB,eAIjB,UAAU;CACV,MAAM;CACN,SAAS;CACT,SAAS;CACT,iBAAiB;AACnB,CAE0E;AAe1E,MAAa,EAAE,8BAA8B,+BAXzB,gBAIlB,UAAU;CACV,MAAM;CACN,SAAS;CACT,SAAS;CACT,iBAAiB;AACnB,CAE4E;AAK5E,MAAa,kBAAkB;CAC7B,GAAG,oBAAoB,iBAAiB,CAAC,CAAC,CAAC;CAC3C,iBAAiB,uBACf,iBAAiB,CAAC,CAAC,GACnB,OAAO,cAAc,OAAO,uCAAuC,CAAC,CAAC,KACnE,OAAO,KAAK,WAAW,OAAO,OAAO,CACvC,CACF;AACF;;AAGA,MAAa,gBAAgB,MAAM,OAAO,UAAU,iBAAiB,CAAC,CAAC,CAAC"}
|