@yielded/auth-persistence 0.1.0-beta.17 → 0.1.0-beta.19
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/README.md +5 -2
- package/dist/Adapter.d.mts +2 -2
- package/dist/Adapter.mjs +2 -2
- package/dist/internal/configuration.d.mts +5 -4
- package/dist/internal/configuration.mjs.map +1 -1
- package/dist/internal/crypto.mjs +12 -0
- package/dist/internal/crypto.mjs.map +1 -0
- package/dist/internal/email-kernel.d.mts +7 -7
- package/dist/internal/passkey/admission.mjs +19 -15
- package/dist/internal/passkey/admission.mjs.map +1 -1
- package/dist/internal/passkey/credentials.mjs +4 -4
- package/dist/internal/passkey/credentials.mjs.map +1 -1
- package/dist/internal/passkey/enrollment.mjs +6 -6
- package/dist/internal/passkey/enrollment.mjs.map +1 -1
- package/dist/internal/passkey/flow.mjs +7 -7
- package/dist/internal/passkey/flow.mjs.map +1 -1
- package/dist/internal/passkey/management.mjs +2 -2
- package/dist/internal/passkey/management.mjs.map +1 -1
- package/dist/internal/passkey/registration-ceremony.mjs +2 -2
- package/dist/internal/passkey/registration-ceremony.mjs.map +1 -1
- package/dist/internal/passkey/registration-custody.mjs +1 -1
- package/dist/internal/passkey/registration-custody.mjs.map +1 -1
- package/dist/internal/passkey/registration-write.mjs +12 -12
- package/dist/internal/passkey/registration-write.mjs.map +1 -1
- package/dist/internal/passkey/state.d.mts +1 -1
- package/dist/internal/passkey/state.mjs +8 -9
- package/dist/internal/passkey/state.mjs.map +1 -1
- package/dist/internal/passkey/target.d.mts +1 -1
- package/dist/internal/passkey/target.mjs.map +1 -1
- package/dist/internal/passkey/write-state.mjs +13 -13
- package/dist/internal/passkey/write-state.mjs.map +1 -1
- package/dist/internal/passkey/write-target.mjs.map +1 -1
- package/dist/internal/passkey-kernel.d.mts +705 -249
- package/dist/internal/passkeys.mjs +32 -14
- package/dist/internal/passkeys.mjs.map +1 -1
- package/dist/internal/password-kernel.d.mts +6 -6
- package/dist/internal/password-kernel.mjs +1 -1
- package/dist/internal/password-kernel.mjs.map +1 -1
- package/dist/internal/persistence.d.mts +2 -2
- package/dist/internal/persistence.mjs +18 -9
- package/dist/internal/persistence.mjs.map +1 -1
- package/dist/internal/phone-kernel.d.mts +7 -7
- package/dist/internal/phone-kernel.mjs +14 -14
- package/dist/internal/phone-kernel.mjs.map +1 -1
- package/dist/internal/registration.mjs +8 -7
- package/dist/internal/registration.mjs.map +1 -1
- package/dist/internal/session-kernel.mjs +2 -1
- package/dist/internal/session-kernel.mjs.map +1 -1
- package/dist/internal/sql-query.mjs +1 -1
- package/dist/internal/sql-query.mjs.map +1 -1
- package/dist/internal/storage-mapping.d.mts +5 -4
- package/dist/internal/storage-mapping.mjs +16 -13
- package/dist/internal/storage-mapping.mjs.map +1 -1
- package/dist/internal/storage-validation.d.mts +13 -3
- package/dist/internal/storage-validation.mjs +128 -68
- package/dist/internal/storage-validation.mjs.map +1 -1
- package/dist/internal/transaction-execution-kernel.d.mts +4 -4
- package/dist/internal/transaction-execution-kernel.mjs +7 -5
- package/dist/internal/transaction-execution-kernel.mjs.map +1 -1
- package/package.json +1 -1
- package/src/Adapter.ts +7 -1
- package/src/internal/configuration.ts +5 -3
- package/src/internal/crypto.ts +15 -0
- package/src/internal/passkey/admission.ts +22 -15
- package/src/internal/passkey/credentials.ts +4 -4
- package/src/internal/passkey/enrollment.ts +7 -7
- package/src/internal/passkey/flow.ts +8 -8
- package/src/internal/passkey/management.ts +7 -2
- package/src/internal/passkey/registration-ceremony.ts +2 -2
- package/src/internal/passkey/registration-custody.ts +1 -1
- package/src/internal/passkey/registration-write.ts +12 -12
- package/src/internal/passkey/state.ts +10 -13
- package/src/internal/passkey/target.ts +16 -8
- package/src/internal/passkey/write-state.ts +10 -14
- package/src/internal/passkey/write-target.ts +11 -3
- package/src/internal/passkeys.ts +121 -70
- package/src/internal/password-kernel.ts +2 -2
- package/src/internal/persistence.ts +30 -13
- package/src/internal/phone-kernel.ts +26 -17
- package/src/internal/registration.ts +10 -8
- package/src/internal/session-kernel.ts +3 -2
- package/src/internal/sql-query.ts +3 -2
- package/src/internal/storage-mapping.ts +21 -13
- package/src/internal/storage-validation.ts +219 -139
- package/src/internal/transaction-execution-kernel.ts +30 -11
|
@@ -20,12 +20,12 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
20
20
|
equal: (table: object, values: Row) => SqlFragment;
|
|
21
21
|
copiedRow: (row: Row) => Row;
|
|
22
22
|
matchesNativeRow: (table: object, row: Row, key: Row) => boolean;
|
|
23
|
-
nonce: ()
|
|
24
|
-
key: (kind: string, fields:
|
|
25
|
-
credentialKey: (rpId: string, id: string) => string
|
|
26
|
-
handleKey: (rpId: string, handle: string) => string
|
|
27
|
-
subjectScope: (subjectId: string) => string
|
|
28
|
-
targetScope: (ceremony: import("@yielded/auth/Passkey").PasskeyCeremony) =>
|
|
23
|
+
nonce: import("effect/Effect").Effect<string, import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto>;
|
|
24
|
+
key: (kind: string, fields: readonly string[]) => import("effect/Effect").Effect<string, import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto>;
|
|
25
|
+
credentialKey: (rpId: string, id: string) => import("effect/Effect").Effect<string, import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto>;
|
|
26
|
+
handleKey: (rpId: string, handle: string) => import("effect/Effect").Effect<string, import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto>;
|
|
27
|
+
subjectScope: (subjectId: string) => import("effect/Effect").Effect<string, import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto>;
|
|
28
|
+
targetScope: (ceremony: import("@yielded/auth/Passkey").PasskeyCeremony) => import("effect/Effect").Effect<null, never, never> | import("effect/Effect").Effect<string, import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto>;
|
|
29
29
|
policyStorage: {
|
|
30
30
|
encode: (value: {
|
|
31
31
|
readonly generation: number;
|
|
@@ -260,7 +260,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
260
260
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
261
261
|
readonly minimumCredentials: number;
|
|
262
262
|
}[]];
|
|
263
|
-
}
|
|
263
|
+
};
|
|
264
264
|
readonly expiresAtMillis: number;
|
|
265
265
|
};
|
|
266
266
|
} | {
|
|
@@ -292,7 +292,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
292
292
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
293
293
|
readonly minimumCredentials: number;
|
|
294
294
|
}[]];
|
|
295
|
-
}
|
|
295
|
+
};
|
|
296
296
|
readonly expiresAtMillis: number;
|
|
297
297
|
};
|
|
298
298
|
} | {
|
|
@@ -324,7 +324,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
324
324
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
325
325
|
readonly minimumCredentials: number;
|
|
326
326
|
}[]];
|
|
327
|
-
}
|
|
327
|
+
};
|
|
328
328
|
readonly expiresAtMillis: number;
|
|
329
329
|
};
|
|
330
330
|
};
|
|
@@ -466,7 +466,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
466
466
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
467
467
|
readonly minimumCredentials: number;
|
|
468
468
|
}[]];
|
|
469
|
-
}
|
|
469
|
+
};
|
|
470
470
|
readonly expiresAtMillis: number;
|
|
471
471
|
};
|
|
472
472
|
} | {
|
|
@@ -498,7 +498,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
498
498
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
499
499
|
readonly minimumCredentials: number;
|
|
500
500
|
}[]];
|
|
501
|
-
}
|
|
501
|
+
};
|
|
502
502
|
readonly expiresAtMillis: number;
|
|
503
503
|
};
|
|
504
504
|
} | {
|
|
@@ -530,7 +530,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
530
530
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
531
531
|
readonly minimumCredentials: number;
|
|
532
532
|
}[]];
|
|
533
|
-
}
|
|
533
|
+
};
|
|
534
534
|
readonly expiresAtMillis: number;
|
|
535
535
|
};
|
|
536
536
|
};
|
|
@@ -728,125 +728,581 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
728
728
|
readonly windowMillis: number;
|
|
729
729
|
};
|
|
730
730
|
readonly target: {
|
|
731
|
-
readonly limit: number;
|
|
732
|
-
readonly windowMillis: number;
|
|
733
|
-
};
|
|
734
|
-
};
|
|
735
|
-
} | undefined, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
736
|
-
readPolicyGuards: (mapping: any) => import("effect/Effect").Effect<void, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
737
|
-
discoverSubject: (mapping: any, rpId: string, protocolCredentialId: string) => import("effect/Effect").Effect<(string & import("effect/Brand").Brand<"effect-auth/SubjectId">) | undefined, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
738
|
-
readRevision: (mapping: any, subject: SubjectRead, ids?: readonly string[] | undefined) => import("effect/Effect").Effect<{
|
|
739
|
-
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
740
|
-
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
741
|
-
readonly credentials: readonly {
|
|
742
|
-
readonly credentialId: string;
|
|
743
|
-
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
744
|
-
}[];
|
|
745
|
-
} | undefined, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
746
|
-
readCredential: (mapping: any, subject: SubjectRead, rpId: string, protocolCredentialId: string, ids?: readonly string[] | undefined) => import("effect/Effect").Effect<{
|
|
747
|
-
credential: {
|
|
748
|
-
readonly credentialId: string;
|
|
749
|
-
readonly rpId: string;
|
|
750
|
-
readonly protocolCredentialId: string & import("effect/Brand").Brand<"effect-auth/PasskeyProtocolCredentialId">;
|
|
751
|
-
readonly userHandle: string & import("effect/Brand").Brand<"effect-auth/PasskeyUserHandle">;
|
|
752
|
-
readonly publicKey: string;
|
|
753
|
-
readonly algorithm: -257 | -7;
|
|
754
|
-
readonly profile: {
|
|
755
|
-
readonly profileId: string;
|
|
756
|
-
readonly generation: number;
|
|
757
|
-
readonly rpId: string;
|
|
758
|
-
readonly rpName: string;
|
|
759
|
-
readonly origins: readonly [string, ...string[]];
|
|
760
|
-
readonly developmentLocalhost: boolean;
|
|
761
|
-
readonly residentKey: "discouraged" | "preferred" | "required";
|
|
762
|
-
readonly userVerification: "preferred" | "required";
|
|
763
|
-
readonly primarySignIn: boolean;
|
|
764
|
-
readonly attestation: "none";
|
|
765
|
-
readonly algorithms: readonly [-257 | -7, ...(-257 | -7)[]];
|
|
731
|
+
readonly limit: number;
|
|
732
|
+
readonly windowMillis: number;
|
|
733
|
+
};
|
|
734
|
+
};
|
|
735
|
+
} | undefined, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
736
|
+
readPolicyGuards: (mapping: any) => import("effect/Effect").Effect<void, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
737
|
+
discoverSubject: (mapping: any, rpId: string, protocolCredentialId: string) => import("effect/Effect").Effect<(string & import("effect/Brand").Brand<"effect-auth/SubjectId">) | undefined, import("@yielded/auth/Passkey").PasskeyUnavailable | import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
738
|
+
readRevision: (mapping: any, subject: SubjectRead, ids?: readonly string[] | undefined) => import("effect/Effect").Effect<{
|
|
739
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
740
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
741
|
+
readonly credentials: readonly {
|
|
742
|
+
readonly credentialId: string;
|
|
743
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
744
|
+
}[];
|
|
745
|
+
} | undefined, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
746
|
+
readCredential: (mapping: any, subject: SubjectRead, rpId: string, protocolCredentialId: string, ids?: readonly string[] | undefined) => import("effect/Effect").Effect<{
|
|
747
|
+
credential: {
|
|
748
|
+
readonly credentialId: string;
|
|
749
|
+
readonly rpId: string;
|
|
750
|
+
readonly protocolCredentialId: string & import("effect/Brand").Brand<"effect-auth/PasskeyProtocolCredentialId">;
|
|
751
|
+
readonly userHandle: string & import("effect/Brand").Brand<"effect-auth/PasskeyUserHandle">;
|
|
752
|
+
readonly publicKey: string;
|
|
753
|
+
readonly algorithm: -257 | -7;
|
|
754
|
+
readonly profile: {
|
|
755
|
+
readonly profileId: string;
|
|
756
|
+
readonly generation: number;
|
|
757
|
+
readonly rpId: string;
|
|
758
|
+
readonly rpName: string;
|
|
759
|
+
readonly origins: readonly [string, ...string[]];
|
|
760
|
+
readonly developmentLocalhost: boolean;
|
|
761
|
+
readonly residentKey: "discouraged" | "preferred" | "required";
|
|
762
|
+
readonly userVerification: "preferred" | "required";
|
|
763
|
+
readonly primarySignIn: boolean;
|
|
764
|
+
readonly attestation: "none";
|
|
765
|
+
readonly algorithms: readonly [-257 | -7, ...(-257 | -7)[]];
|
|
766
|
+
};
|
|
767
|
+
readonly revision: {
|
|
768
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
769
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
770
|
+
readonly credentials: readonly {
|
|
771
|
+
readonly credentialId: string;
|
|
772
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
773
|
+
}[];
|
|
774
|
+
};
|
|
775
|
+
readonly active: boolean;
|
|
776
|
+
readonly primarySignIn: boolean;
|
|
777
|
+
readonly enrollmentUserVerified: boolean;
|
|
778
|
+
readonly backupEligible: boolean;
|
|
779
|
+
readonly backupState: boolean;
|
|
780
|
+
readonly counter: number;
|
|
781
|
+
readonly maximumCounter: number;
|
|
782
|
+
};
|
|
783
|
+
row: Row;
|
|
784
|
+
} | undefined, import("@yielded/auth/Passkey").PasskeyUnavailable | import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
785
|
+
lookupCredential: (mapping: any, rpId: string, protocolCredentialId: string) => import("effect/Effect").Effect<{
|
|
786
|
+
readonly credentialId: string;
|
|
787
|
+
readonly rpId: string;
|
|
788
|
+
readonly protocolCredentialId: string & import("effect/Brand").Brand<"effect-auth/PasskeyProtocolCredentialId">;
|
|
789
|
+
readonly userHandle: string & import("effect/Brand").Brand<"effect-auth/PasskeyUserHandle">;
|
|
790
|
+
readonly publicKey: string;
|
|
791
|
+
readonly algorithm: -257 | -7;
|
|
792
|
+
readonly profile: {
|
|
793
|
+
readonly profileId: string;
|
|
794
|
+
readonly generation: number;
|
|
795
|
+
readonly rpId: string;
|
|
796
|
+
readonly rpName: string;
|
|
797
|
+
readonly origins: readonly [string, ...string[]];
|
|
798
|
+
readonly developmentLocalhost: boolean;
|
|
799
|
+
readonly residentKey: "discouraged" | "preferred" | "required";
|
|
800
|
+
readonly userVerification: "preferred" | "required";
|
|
801
|
+
readonly primarySignIn: boolean;
|
|
802
|
+
readonly attestation: "none";
|
|
803
|
+
readonly algorithms: readonly [-257 | -7, ...(-257 | -7)[]];
|
|
804
|
+
};
|
|
805
|
+
readonly revision: {
|
|
806
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
807
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
808
|
+
readonly credentials: readonly {
|
|
809
|
+
readonly credentialId: string;
|
|
810
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
811
|
+
}[];
|
|
812
|
+
};
|
|
813
|
+
readonly active: boolean;
|
|
814
|
+
readonly primarySignIn: boolean;
|
|
815
|
+
readonly enrollmentUserVerified: boolean;
|
|
816
|
+
readonly backupEligible: boolean;
|
|
817
|
+
readonly backupState: boolean;
|
|
818
|
+
readonly counter: number;
|
|
819
|
+
readonly maximumCounter: number;
|
|
820
|
+
} | undefined, import("@yielded/auth/Passkey").PasskeyUnavailable | import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
821
|
+
captureEnrollmentContext: (mapping: any, input: {
|
|
822
|
+
readonly moduleId: string;
|
|
823
|
+
readonly rpId: string;
|
|
824
|
+
readonly subjectId: import("@yielded/auth/Schema").SubjectId;
|
|
825
|
+
}) => import("effect/Effect").Effect<{
|
|
826
|
+
revision: {
|
|
827
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
828
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
829
|
+
readonly credentials: readonly {
|
|
830
|
+
readonly credentialId: string;
|
|
831
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
832
|
+
}[];
|
|
833
|
+
};
|
|
834
|
+
userHandle?: string & import("effect/Brand").Brand<"effect-auth/PasskeyUserHandle">;
|
|
835
|
+
credentials: {
|
|
836
|
+
readonly type: "public-key";
|
|
837
|
+
readonly id: string & import("effect/Brand").Brand<"effect-auth/PasskeyProtocolCredentialId">;
|
|
838
|
+
}[];
|
|
839
|
+
} | undefined, import("@yielded/auth/Passkey").PasskeyUnavailable | import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
840
|
+
};
|
|
841
|
+
admission: {
|
|
842
|
+
chargeRetentionMillis: number;
|
|
843
|
+
chargeScopes: (ceremony: {
|
|
844
|
+
readonly moduleId: string;
|
|
845
|
+
readonly generation: number;
|
|
846
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
847
|
+
readonly commandId: string;
|
|
848
|
+
readonly purpose: "action" | "enrollment" | "pending" | "registration" | "sign-in" | "step-up";
|
|
849
|
+
readonly profile: {
|
|
850
|
+
readonly profileId: string;
|
|
851
|
+
readonly generation: number;
|
|
852
|
+
readonly rpId: string;
|
|
853
|
+
readonly rpName: string;
|
|
854
|
+
readonly origins: readonly [string, ...string[]];
|
|
855
|
+
readonly developmentLocalhost: boolean;
|
|
856
|
+
readonly residentKey: "discouraged" | "preferred" | "required";
|
|
857
|
+
readonly userVerification: "preferred" | "required";
|
|
858
|
+
readonly primarySignIn: boolean;
|
|
859
|
+
readonly attestation: "none";
|
|
860
|
+
readonly algorithms: readonly [-257 | -7, ...(-257 | -7)[]];
|
|
861
|
+
};
|
|
862
|
+
readonly challenge: string;
|
|
863
|
+
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
864
|
+
readonly requestBindingExpiresAtMillis: number;
|
|
865
|
+
readonly issuedAtMillis: number;
|
|
866
|
+
readonly expiresAtMillis: number;
|
|
867
|
+
readonly retentionUntilMillis: number;
|
|
868
|
+
readonly claimLifetimeMillis: number;
|
|
869
|
+
readonly allowedCredentials: readonly {
|
|
870
|
+
readonly type: "public-key";
|
|
871
|
+
readonly id: string & import("effect/Brand").Brand<"effect-auth/PasskeyProtocolCredentialId">;
|
|
872
|
+
}[];
|
|
873
|
+
readonly context: {
|
|
874
|
+
readonly _tag: "SignIn";
|
|
875
|
+
} | {
|
|
876
|
+
readonly _tag: "Registration";
|
|
877
|
+
readonly fingerprint: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
878
|
+
readonly userHandle: string & import("effect/Brand").Brand<"effect-auth/PasskeyUserHandle">;
|
|
879
|
+
readonly name: string;
|
|
880
|
+
readonly displayName: string;
|
|
881
|
+
} | {
|
|
882
|
+
readonly _tag: "Enrollment";
|
|
883
|
+
readonly revision: {
|
|
884
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
885
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
886
|
+
readonly credentials: readonly {
|
|
887
|
+
readonly credentialId: string;
|
|
888
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
889
|
+
}[];
|
|
890
|
+
};
|
|
891
|
+
readonly userHandle: string & import("effect/Brand").Brand<"effect-auth/PasskeyUserHandle">;
|
|
892
|
+
readonly name: string;
|
|
893
|
+
readonly authorization: {
|
|
894
|
+
readonly challenge: {
|
|
895
|
+
readonly moduleId: string;
|
|
896
|
+
readonly action: "enroll-begin" | "enroll-complete" | "remove";
|
|
897
|
+
readonly commandId: string;
|
|
898
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
899
|
+
readonly revision: {
|
|
900
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
901
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
902
|
+
readonly credentials: readonly {
|
|
903
|
+
readonly credentialId: string;
|
|
904
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
905
|
+
}[];
|
|
906
|
+
};
|
|
907
|
+
readonly bindingDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
908
|
+
};
|
|
909
|
+
readonly evidence: {
|
|
910
|
+
readonly bindingDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
911
|
+
readonly revision: {
|
|
912
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
913
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
914
|
+
readonly credentials: readonly {
|
|
915
|
+
readonly credentialId: string;
|
|
916
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
917
|
+
}[];
|
|
918
|
+
};
|
|
919
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
|
|
920
|
+
readonly proofs: readonly [{
|
|
921
|
+
readonly userVerified: boolean;
|
|
922
|
+
readonly phishingResistant: boolean;
|
|
923
|
+
readonly verifiedAt: import("effect/DateTime").Utc;
|
|
924
|
+
readonly method: string;
|
|
925
|
+
readonly credentialId: string;
|
|
926
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
927
|
+
}, ...{
|
|
928
|
+
readonly userVerified: boolean;
|
|
929
|
+
readonly phishingResistant: boolean;
|
|
930
|
+
readonly verifiedAt: import("effect/DateTime").Utc;
|
|
931
|
+
readonly method: string;
|
|
932
|
+
readonly credentialId: string;
|
|
933
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
934
|
+
}[]];
|
|
935
|
+
};
|
|
936
|
+
readonly requirement: {
|
|
937
|
+
readonly maximumAgeMillis: number;
|
|
938
|
+
readonly alternatives: readonly [{
|
|
939
|
+
readonly userVerified: boolean;
|
|
940
|
+
readonly phishingResistant: boolean;
|
|
941
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
942
|
+
readonly minimumCredentials: number;
|
|
943
|
+
}, ...{
|
|
944
|
+
readonly userVerified: boolean;
|
|
945
|
+
readonly phishingResistant: boolean;
|
|
946
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
947
|
+
readonly minimumCredentials: number;
|
|
948
|
+
}[]];
|
|
949
|
+
};
|
|
950
|
+
};
|
|
951
|
+
} | {
|
|
952
|
+
readonly _tag: "Pending";
|
|
953
|
+
readonly target: {
|
|
954
|
+
readonly moduleId: string;
|
|
955
|
+
readonly kind: string;
|
|
956
|
+
readonly commandId: string;
|
|
957
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
|
|
958
|
+
readonly bindingDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
959
|
+
readonly revision: {
|
|
960
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
961
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
962
|
+
readonly credentials: readonly {
|
|
963
|
+
readonly credentialId: string;
|
|
964
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
965
|
+
}[];
|
|
966
|
+
};
|
|
967
|
+
readonly requirement?: {
|
|
968
|
+
readonly maximumAgeMillis: number;
|
|
969
|
+
readonly alternatives: readonly [{
|
|
970
|
+
readonly userVerified: boolean;
|
|
971
|
+
readonly phishingResistant: boolean;
|
|
972
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
973
|
+
readonly minimumCredentials: number;
|
|
974
|
+
}, ...{
|
|
975
|
+
readonly userVerified: boolean;
|
|
976
|
+
readonly phishingResistant: boolean;
|
|
977
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
978
|
+
readonly minimumCredentials: number;
|
|
979
|
+
}[]];
|
|
980
|
+
};
|
|
981
|
+
readonly expiresAtMillis: number;
|
|
982
|
+
};
|
|
983
|
+
} | {
|
|
984
|
+
readonly _tag: "StepUp";
|
|
985
|
+
readonly target: {
|
|
986
|
+
readonly moduleId: string;
|
|
987
|
+
readonly kind: string;
|
|
988
|
+
readonly commandId: string;
|
|
989
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
|
|
990
|
+
readonly bindingDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
991
|
+
readonly revision: {
|
|
992
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
993
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
994
|
+
readonly credentials: readonly {
|
|
995
|
+
readonly credentialId: string;
|
|
996
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
997
|
+
}[];
|
|
998
|
+
};
|
|
999
|
+
readonly requirement?: {
|
|
1000
|
+
readonly maximumAgeMillis: number;
|
|
1001
|
+
readonly alternatives: readonly [{
|
|
1002
|
+
readonly userVerified: boolean;
|
|
1003
|
+
readonly phishingResistant: boolean;
|
|
1004
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1005
|
+
readonly minimumCredentials: number;
|
|
1006
|
+
}, ...{
|
|
1007
|
+
readonly userVerified: boolean;
|
|
1008
|
+
readonly phishingResistant: boolean;
|
|
1009
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1010
|
+
readonly minimumCredentials: number;
|
|
1011
|
+
}[]];
|
|
1012
|
+
};
|
|
1013
|
+
readonly expiresAtMillis: number;
|
|
1014
|
+
};
|
|
1015
|
+
} | {
|
|
1016
|
+
readonly _tag: "Action";
|
|
1017
|
+
readonly target: {
|
|
1018
|
+
readonly moduleId: string;
|
|
1019
|
+
readonly kind: string;
|
|
1020
|
+
readonly commandId: string;
|
|
1021
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
|
|
1022
|
+
readonly bindingDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1023
|
+
readonly revision: {
|
|
1024
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1025
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1026
|
+
readonly credentials: readonly {
|
|
1027
|
+
readonly credentialId: string;
|
|
1028
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1029
|
+
}[];
|
|
1030
|
+
};
|
|
1031
|
+
readonly requirement?: {
|
|
1032
|
+
readonly maximumAgeMillis: number;
|
|
1033
|
+
readonly alternatives: readonly [{
|
|
1034
|
+
readonly userVerified: boolean;
|
|
1035
|
+
readonly phishingResistant: boolean;
|
|
1036
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1037
|
+
readonly minimumCredentials: number;
|
|
1038
|
+
}, ...{
|
|
1039
|
+
readonly userVerified: boolean;
|
|
1040
|
+
readonly phishingResistant: boolean;
|
|
1041
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1042
|
+
readonly minimumCredentials: number;
|
|
1043
|
+
}[]];
|
|
1044
|
+
};
|
|
1045
|
+
readonly expiresAtMillis: number;
|
|
1046
|
+
};
|
|
1047
|
+
};
|
|
1048
|
+
}, subjectId?: string | undefined) => import("effect/Effect").Effect<{
|
|
1049
|
+
kind: PasskeyChargeKind;
|
|
1050
|
+
scope: string;
|
|
1051
|
+
}[], import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto>;
|
|
1052
|
+
lockAdmission: (mapping: any) => import("effect/Effect").Effect<void, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
1053
|
+
admissionCondition: (mapping: any, policies: readonly {
|
|
1054
|
+
readonly generation: number;
|
|
1055
|
+
readonly profiles: readonly [{
|
|
1056
|
+
readonly profileId: string;
|
|
1057
|
+
readonly generation: number;
|
|
1058
|
+
readonly rpId: string;
|
|
1059
|
+
readonly rpName: string;
|
|
1060
|
+
readonly origins: readonly [string, ...string[]];
|
|
1061
|
+
readonly developmentLocalhost: boolean;
|
|
1062
|
+
readonly residentKey: "discouraged" | "preferred" | "required";
|
|
1063
|
+
readonly userVerification: "preferred" | "required";
|
|
1064
|
+
readonly primarySignIn: boolean;
|
|
1065
|
+
readonly attestation: "none";
|
|
1066
|
+
readonly algorithms: readonly [-257 | -7, ...(-257 | -7)[]];
|
|
1067
|
+
}, ...{
|
|
1068
|
+
readonly profileId: string;
|
|
1069
|
+
readonly generation: number;
|
|
1070
|
+
readonly rpId: string;
|
|
1071
|
+
readonly rpName: string;
|
|
1072
|
+
readonly origins: readonly [string, ...string[]];
|
|
1073
|
+
readonly developmentLocalhost: boolean;
|
|
1074
|
+
readonly residentKey: "discouraged" | "preferred" | "required";
|
|
1075
|
+
readonly userVerification: "preferred" | "required";
|
|
1076
|
+
readonly primarySignIn: boolean;
|
|
1077
|
+
readonly attestation: "none";
|
|
1078
|
+
readonly algorithms: readonly [-257 | -7, ...(-257 | -7)[]];
|
|
1079
|
+
}[]];
|
|
1080
|
+
readonly lifetimeMillis: number;
|
|
1081
|
+
readonly claimLifetimeMillis: number;
|
|
1082
|
+
readonly retentionMillis: number;
|
|
1083
|
+
readonly maximumPending: number;
|
|
1084
|
+
readonly maximumPendingPerSubject: number;
|
|
1085
|
+
readonly admission: {
|
|
1086
|
+
readonly global: {
|
|
1087
|
+
readonly limit: number;
|
|
1088
|
+
readonly windowMillis: number;
|
|
1089
|
+
};
|
|
1090
|
+
readonly subject: {
|
|
1091
|
+
readonly limit: number;
|
|
1092
|
+
readonly windowMillis: number;
|
|
1093
|
+
};
|
|
1094
|
+
readonly target: {
|
|
1095
|
+
readonly limit: number;
|
|
1096
|
+
readonly windowMillis: number;
|
|
1097
|
+
};
|
|
1098
|
+
};
|
|
1099
|
+
}[], ceremony: {
|
|
1100
|
+
readonly moduleId: string;
|
|
1101
|
+
readonly generation: number;
|
|
1102
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
1103
|
+
readonly commandId: string;
|
|
1104
|
+
readonly purpose: "action" | "enrollment" | "pending" | "registration" | "sign-in" | "step-up";
|
|
1105
|
+
readonly profile: {
|
|
1106
|
+
readonly profileId: string;
|
|
1107
|
+
readonly generation: number;
|
|
1108
|
+
readonly rpId: string;
|
|
1109
|
+
readonly rpName: string;
|
|
1110
|
+
readonly origins: readonly [string, ...string[]];
|
|
1111
|
+
readonly developmentLocalhost: boolean;
|
|
1112
|
+
readonly residentKey: "discouraged" | "preferred" | "required";
|
|
1113
|
+
readonly userVerification: "preferred" | "required";
|
|
1114
|
+
readonly primarySignIn: boolean;
|
|
1115
|
+
readonly attestation: "none";
|
|
1116
|
+
readonly algorithms: readonly [-257 | -7, ...(-257 | -7)[]];
|
|
1117
|
+
};
|
|
1118
|
+
readonly challenge: string;
|
|
1119
|
+
readonly requestBindingVerifier: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1120
|
+
readonly requestBindingExpiresAtMillis: number;
|
|
1121
|
+
readonly issuedAtMillis: number;
|
|
1122
|
+
readonly expiresAtMillis: number;
|
|
1123
|
+
readonly retentionUntilMillis: number;
|
|
1124
|
+
readonly claimLifetimeMillis: number;
|
|
1125
|
+
readonly allowedCredentials: readonly {
|
|
1126
|
+
readonly type: "public-key";
|
|
1127
|
+
readonly id: string & import("effect/Brand").Brand<"effect-auth/PasskeyProtocolCredentialId">;
|
|
1128
|
+
}[];
|
|
1129
|
+
readonly context: {
|
|
1130
|
+
readonly _tag: "SignIn";
|
|
1131
|
+
} | {
|
|
1132
|
+
readonly _tag: "Registration";
|
|
1133
|
+
readonly fingerprint: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1134
|
+
readonly userHandle: string & import("effect/Brand").Brand<"effect-auth/PasskeyUserHandle">;
|
|
1135
|
+
readonly name: string;
|
|
1136
|
+
readonly displayName: string;
|
|
1137
|
+
} | {
|
|
1138
|
+
readonly _tag: "Enrollment";
|
|
1139
|
+
readonly revision: {
|
|
1140
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1141
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1142
|
+
readonly credentials: readonly {
|
|
1143
|
+
readonly credentialId: string;
|
|
1144
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1145
|
+
}[];
|
|
1146
|
+
};
|
|
1147
|
+
readonly userHandle: string & import("effect/Brand").Brand<"effect-auth/PasskeyUserHandle">;
|
|
1148
|
+
readonly name: string;
|
|
1149
|
+
readonly authorization: {
|
|
1150
|
+
readonly challenge: {
|
|
1151
|
+
readonly moduleId: string;
|
|
1152
|
+
readonly action: "enroll-begin" | "enroll-complete" | "remove";
|
|
1153
|
+
readonly commandId: string;
|
|
1154
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/RequestBindingFlowId">;
|
|
1155
|
+
readonly revision: {
|
|
1156
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1157
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1158
|
+
readonly credentials: readonly {
|
|
1159
|
+
readonly credentialId: string;
|
|
1160
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1161
|
+
}[];
|
|
1162
|
+
};
|
|
1163
|
+
readonly bindingDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1164
|
+
};
|
|
1165
|
+
readonly evidence: {
|
|
1166
|
+
readonly bindingDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1167
|
+
readonly revision: {
|
|
1168
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1169
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1170
|
+
readonly credentials: readonly {
|
|
1171
|
+
readonly credentialId: string;
|
|
1172
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1173
|
+
}[];
|
|
1174
|
+
};
|
|
1175
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
|
|
1176
|
+
readonly proofs: readonly [{
|
|
1177
|
+
readonly userVerified: boolean;
|
|
1178
|
+
readonly phishingResistant: boolean;
|
|
1179
|
+
readonly verifiedAt: import("effect/DateTime").Utc;
|
|
1180
|
+
readonly method: string;
|
|
1181
|
+
readonly credentialId: string;
|
|
1182
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1183
|
+
}, ...{
|
|
1184
|
+
readonly userVerified: boolean;
|
|
1185
|
+
readonly phishingResistant: boolean;
|
|
1186
|
+
readonly verifiedAt: import("effect/DateTime").Utc;
|
|
1187
|
+
readonly method: string;
|
|
1188
|
+
readonly credentialId: string;
|
|
1189
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1190
|
+
}[]];
|
|
1191
|
+
};
|
|
1192
|
+
readonly requirement: {
|
|
1193
|
+
readonly maximumAgeMillis: number;
|
|
1194
|
+
readonly alternatives: readonly [{
|
|
1195
|
+
readonly userVerified: boolean;
|
|
1196
|
+
readonly phishingResistant: boolean;
|
|
1197
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1198
|
+
readonly minimumCredentials: number;
|
|
1199
|
+
}, ...{
|
|
1200
|
+
readonly userVerified: boolean;
|
|
1201
|
+
readonly phishingResistant: boolean;
|
|
1202
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1203
|
+
readonly minimumCredentials: number;
|
|
1204
|
+
}[]];
|
|
1205
|
+
};
|
|
1206
|
+
};
|
|
1207
|
+
} | {
|
|
1208
|
+
readonly _tag: "Pending";
|
|
1209
|
+
readonly target: {
|
|
1210
|
+
readonly moduleId: string;
|
|
1211
|
+
readonly kind: string;
|
|
1212
|
+
readonly commandId: string;
|
|
1213
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
|
|
1214
|
+
readonly bindingDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1215
|
+
readonly revision: {
|
|
1216
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1217
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1218
|
+
readonly credentials: readonly {
|
|
1219
|
+
readonly credentialId: string;
|
|
1220
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1221
|
+
}[];
|
|
1222
|
+
};
|
|
1223
|
+
readonly requirement?: {
|
|
1224
|
+
readonly maximumAgeMillis: number;
|
|
1225
|
+
readonly alternatives: readonly [{
|
|
1226
|
+
readonly userVerified: boolean;
|
|
1227
|
+
readonly phishingResistant: boolean;
|
|
1228
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1229
|
+
readonly minimumCredentials: number;
|
|
1230
|
+
}, ...{
|
|
1231
|
+
readonly userVerified: boolean;
|
|
1232
|
+
readonly phishingResistant: boolean;
|
|
1233
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1234
|
+
readonly minimumCredentials: number;
|
|
1235
|
+
}[]];
|
|
1236
|
+
};
|
|
1237
|
+
readonly expiresAtMillis: number;
|
|
1238
|
+
};
|
|
1239
|
+
} | {
|
|
1240
|
+
readonly _tag: "StepUp";
|
|
1241
|
+
readonly target: {
|
|
1242
|
+
readonly moduleId: string;
|
|
1243
|
+
readonly kind: string;
|
|
1244
|
+
readonly commandId: string;
|
|
1245
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
|
|
1246
|
+
readonly bindingDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1247
|
+
readonly revision: {
|
|
1248
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1249
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1250
|
+
readonly credentials: readonly {
|
|
1251
|
+
readonly credentialId: string;
|
|
1252
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1253
|
+
}[];
|
|
1254
|
+
};
|
|
1255
|
+
readonly requirement?: {
|
|
1256
|
+
readonly maximumAgeMillis: number;
|
|
1257
|
+
readonly alternatives: readonly [{
|
|
1258
|
+
readonly userVerified: boolean;
|
|
1259
|
+
readonly phishingResistant: boolean;
|
|
1260
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1261
|
+
readonly minimumCredentials: number;
|
|
1262
|
+
}, ...{
|
|
1263
|
+
readonly userVerified: boolean;
|
|
1264
|
+
readonly phishingResistant: boolean;
|
|
1265
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1266
|
+
readonly minimumCredentials: number;
|
|
1267
|
+
}[]];
|
|
1268
|
+
};
|
|
1269
|
+
readonly expiresAtMillis: number;
|
|
766
1270
|
};
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
readonly
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
1271
|
+
} | {
|
|
1272
|
+
readonly _tag: "Action";
|
|
1273
|
+
readonly target: {
|
|
1274
|
+
readonly moduleId: string;
|
|
1275
|
+
readonly kind: string;
|
|
1276
|
+
readonly commandId: string;
|
|
1277
|
+
readonly flowId: string & import("effect/Brand").Brand<"effect-auth/AuthenticationFlowId">;
|
|
1278
|
+
readonly bindingDigest: string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
1279
|
+
readonly revision: {
|
|
1280
|
+
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
1281
|
+
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1282
|
+
readonly credentials: readonly {
|
|
1283
|
+
readonly credentialId: string;
|
|
1284
|
+
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
1285
|
+
}[];
|
|
1286
|
+
};
|
|
1287
|
+
readonly requirement?: {
|
|
1288
|
+
readonly maximumAgeMillis: number;
|
|
1289
|
+
readonly alternatives: readonly [{
|
|
1290
|
+
readonly userVerified: boolean;
|
|
1291
|
+
readonly phishingResistant: boolean;
|
|
1292
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1293
|
+
readonly minimumCredentials: number;
|
|
1294
|
+
}, ...{
|
|
1295
|
+
readonly userVerified: boolean;
|
|
1296
|
+
readonly phishingResistant: boolean;
|
|
1297
|
+
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1298
|
+
readonly minimumCredentials: number;
|
|
1299
|
+
}[]];
|
|
1300
|
+
};
|
|
1301
|
+
readonly expiresAtMillis: number;
|
|
774
1302
|
};
|
|
775
|
-
readonly active: boolean;
|
|
776
|
-
readonly primarySignIn: boolean;
|
|
777
|
-
readonly enrollmentUserVerified: boolean;
|
|
778
|
-
readonly backupEligible: boolean;
|
|
779
|
-
readonly backupState: boolean;
|
|
780
|
-
readonly counter: number;
|
|
781
|
-
readonly maximumCounter: number;
|
|
782
|
-
};
|
|
783
|
-
row: Row;
|
|
784
|
-
} | undefined, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
785
|
-
lookupCredential: (mapping: any, rpId: string, protocolCredentialId: string) => import("effect/Effect").Effect<{
|
|
786
|
-
readonly credentialId: string;
|
|
787
|
-
readonly rpId: string;
|
|
788
|
-
readonly protocolCredentialId: string & import("effect/Brand").Brand<"effect-auth/PasskeyProtocolCredentialId">;
|
|
789
|
-
readonly userHandle: string & import("effect/Brand").Brand<"effect-auth/PasskeyUserHandle">;
|
|
790
|
-
readonly publicKey: string;
|
|
791
|
-
readonly algorithm: -257 | -7;
|
|
792
|
-
readonly profile: {
|
|
793
|
-
readonly profileId: string;
|
|
794
|
-
readonly generation: number;
|
|
795
|
-
readonly rpId: string;
|
|
796
|
-
readonly rpName: string;
|
|
797
|
-
readonly origins: readonly [string, ...string[]];
|
|
798
|
-
readonly developmentLocalhost: boolean;
|
|
799
|
-
readonly residentKey: "discouraged" | "preferred" | "required";
|
|
800
|
-
readonly userVerification: "preferred" | "required";
|
|
801
|
-
readonly primarySignIn: boolean;
|
|
802
|
-
readonly attestation: "none";
|
|
803
|
-
readonly algorithms: readonly [-257 | -7, ...(-257 | -7)[]];
|
|
804
|
-
};
|
|
805
|
-
readonly revision: {
|
|
806
|
-
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
807
|
-
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
808
|
-
readonly credentials: readonly {
|
|
809
|
-
readonly credentialId: string;
|
|
810
|
-
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
811
|
-
}[];
|
|
812
1303
|
};
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
readonly enrollmentUserVerified: boolean;
|
|
816
|
-
readonly backupEligible: boolean;
|
|
817
|
-
readonly backupState: boolean;
|
|
818
|
-
readonly counter: number;
|
|
819
|
-
readonly maximumCounter: number;
|
|
820
|
-
} | undefined, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
821
|
-
captureEnrollmentContext: (mapping: any, input: {
|
|
822
|
-
readonly moduleId: string;
|
|
823
|
-
readonly rpId: string;
|
|
824
|
-
readonly subjectId: import("@yielded/auth/Schema").SubjectId;
|
|
825
|
-
}) => import("effect/Effect").Effect<{
|
|
826
|
-
revision: {
|
|
827
|
-
readonly subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
828
|
-
readonly securityRevision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
829
|
-
readonly credentials: readonly {
|
|
830
|
-
readonly credentialId: string;
|
|
831
|
-
readonly revision: string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">;
|
|
832
|
-
}[];
|
|
833
|
-
};
|
|
834
|
-
userHandle?: (string & import("effect/Brand").Brand<"effect-auth/PasskeyUserHandle">) | undefined;
|
|
835
|
-
credentials: {
|
|
836
|
-
readonly type: "public-key";
|
|
837
|
-
readonly id: string & import("effect/Brand").Brand<"effect-auth/PasskeyProtocolCredentialId">;
|
|
838
|
-
}[];
|
|
839
|
-
} | undefined, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
840
|
-
};
|
|
841
|
-
admission: {
|
|
842
|
-
chargeRetentionMillis: number;
|
|
843
|
-
chargeScopes: (ceremony: import("@yielded/auth/Passkey").PasskeyCeremony, subjectId?: string) => {
|
|
844
|
-
kind: PasskeyChargeKind;
|
|
845
|
-
scope: string;
|
|
846
|
-
}[];
|
|
847
|
-
lockAdmission: (mapping: any) => import("effect/Effect").Effect<void, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
848
|
-
admissionCondition: (mapping: any, policies: ReadonlyArray<import("@yielded/auth/Passkey").PasskeyMethodPolicy>, ceremony: import("@yielded/auth/Passkey").PasskeyCeremony, subjectId: string | undefined, added: ReadonlyArray<PasskeyChargeKind>, newFlow: boolean, resolvedSubject: boolean) => SqlFragment;
|
|
849
|
-
guardAdmission: (mapping: any, policies: ReadonlyArray<import("@yielded/auth/Passkey").PasskeyMethodPolicy>, ceremony: import("@yielded/auth/Passkey").PasskeyCeremony, subjectId?: string) => import("effect/Effect").Effect<void, never, CurrentPasskeyTransaction>;
|
|
1304
|
+
}, subjectId: string | undefined, added: readonly PasskeyChargeKind[], newFlow: boolean, resolvedSubject: boolean) => import("effect/Effect").Effect<SqlFragment, import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto>;
|
|
1305
|
+
guardAdmission: (mapping: any, policies: ReadonlyArray<import("@yielded/auth/Passkey").PasskeyMethodPolicy>, ceremony: import("@yielded/auth/Passkey").PasskeyCeremony, subjectId?: string) => import("effect/Effect").Effect<void, import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
850
1306
|
readCharges: (mapping: any, ceremony: {
|
|
851
1307
|
readonly moduleId: string;
|
|
852
1308
|
readonly generation: number;
|
|
@@ -984,7 +1440,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
984
1440
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
985
1441
|
readonly minimumCredentials: number;
|
|
986
1442
|
}[]];
|
|
987
|
-
}
|
|
1443
|
+
};
|
|
988
1444
|
readonly expiresAtMillis: number;
|
|
989
1445
|
};
|
|
990
1446
|
} | {
|
|
@@ -1016,7 +1472,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
1016
1472
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1017
1473
|
readonly minimumCredentials: number;
|
|
1018
1474
|
}[]];
|
|
1019
|
-
}
|
|
1475
|
+
};
|
|
1020
1476
|
readonly expiresAtMillis: number;
|
|
1021
1477
|
};
|
|
1022
1478
|
} | {
|
|
@@ -1048,7 +1504,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
1048
1504
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1049
1505
|
readonly minimumCredentials: number;
|
|
1050
1506
|
}[]];
|
|
1051
|
-
}
|
|
1507
|
+
};
|
|
1052
1508
|
readonly expiresAtMillis: number;
|
|
1053
1509
|
};
|
|
1054
1510
|
};
|
|
@@ -1098,8 +1554,8 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
1098
1554
|
readonly windowMillis: number;
|
|
1099
1555
|
};
|
|
1100
1556
|
};
|
|
1101
|
-
}, subjectId?: string | undefined) => import("effect/Effect").Effect<void, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
1102
|
-
guardChargeSet: (mapping: any, ceremony: import("@yielded/auth/Passkey").PasskeyCeremony, subjectId?: string) => import("effect/Effect").Effect<void,
|
|
1557
|
+
}, subjectId?: string | undefined) => import("effect/Effect").Effect<void, import("@yielded/auth/Passkey").PasskeyUnavailable | import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
1558
|
+
guardChargeSet: (mapping: any, ceremony: import("@yielded/auth/Passkey").PasskeyCeremony, subjectId?: string) => import("effect/Effect").Effect<void, import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
1103
1559
|
insertCharges: (mapping: any, ceremony: {
|
|
1104
1560
|
readonly moduleId: string;
|
|
1105
1561
|
readonly generation: number;
|
|
@@ -1237,7 +1693,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
1237
1693
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1238
1694
|
readonly minimumCredentials: number;
|
|
1239
1695
|
}[]];
|
|
1240
|
-
}
|
|
1696
|
+
};
|
|
1241
1697
|
readonly expiresAtMillis: number;
|
|
1242
1698
|
};
|
|
1243
1699
|
} | {
|
|
@@ -1269,7 +1725,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
1269
1725
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1270
1726
|
readonly minimumCredentials: number;
|
|
1271
1727
|
}[]];
|
|
1272
|
-
}
|
|
1728
|
+
};
|
|
1273
1729
|
readonly expiresAtMillis: number;
|
|
1274
1730
|
};
|
|
1275
1731
|
} | {
|
|
@@ -1301,7 +1757,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
1301
1757
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1302
1758
|
readonly minimumCredentials: number;
|
|
1303
1759
|
}[]];
|
|
1304
|
-
}
|
|
1760
|
+
};
|
|
1305
1761
|
readonly expiresAtMillis: number;
|
|
1306
1762
|
};
|
|
1307
1763
|
};
|
|
@@ -1351,7 +1807,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
1351
1807
|
readonly windowMillis: number;
|
|
1352
1808
|
};
|
|
1353
1809
|
};
|
|
1354
|
-
}, kinds: readonly PasskeyChargeKind[], subjectId?: string | undefined) => import("effect/Effect").Effect<void, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
1810
|
+
}, kinds: readonly PasskeyChargeKind[], subjectId?: string | undefined) => import("effect/Effect").Effect<void, import("@yielded/auth/Passkey").PasskeyUnavailable | import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
1355
1811
|
};
|
|
1356
1812
|
registrationCustody: {
|
|
1357
1813
|
releaseRegistrationCustody: (mapping: any, ceremony: {
|
|
@@ -1491,7 +1947,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
1491
1947
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1492
1948
|
readonly minimumCredentials: number;
|
|
1493
1949
|
}[]];
|
|
1494
|
-
}
|
|
1950
|
+
};
|
|
1495
1951
|
readonly expiresAtMillis: number;
|
|
1496
1952
|
};
|
|
1497
1953
|
} | {
|
|
@@ -1523,7 +1979,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
1523
1979
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1524
1980
|
readonly minimumCredentials: number;
|
|
1525
1981
|
}[]];
|
|
1526
|
-
}
|
|
1982
|
+
};
|
|
1527
1983
|
readonly expiresAtMillis: number;
|
|
1528
1984
|
};
|
|
1529
1985
|
} | {
|
|
@@ -1555,11 +2011,11 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
1555
2011
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1556
2012
|
readonly minimumCredentials: number;
|
|
1557
2013
|
}[]];
|
|
1558
|
-
}
|
|
2014
|
+
};
|
|
1559
2015
|
readonly expiresAtMillis: number;
|
|
1560
2016
|
};
|
|
1561
2017
|
};
|
|
1562
|
-
}) => import("effect/Effect").Effect<void, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
2018
|
+
}) => import("effect/Effect").Effect<void, import("@yielded/auth/Passkey").PasskeyUnavailable | import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
1563
2019
|
scrubRegistrationIntent: (mapping: any, ceremony: {
|
|
1564
2020
|
readonly moduleId: string;
|
|
1565
2021
|
readonly generation: number;
|
|
@@ -1697,7 +2153,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
1697
2153
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1698
2154
|
readonly minimumCredentials: number;
|
|
1699
2155
|
}[]];
|
|
1700
|
-
}
|
|
2156
|
+
};
|
|
1701
2157
|
readonly expiresAtMillis: number;
|
|
1702
2158
|
};
|
|
1703
2159
|
} | {
|
|
@@ -1729,7 +2185,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
1729
2185
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1730
2186
|
readonly minimumCredentials: number;
|
|
1731
2187
|
}[]];
|
|
1732
|
-
}
|
|
2188
|
+
};
|
|
1733
2189
|
readonly expiresAtMillis: number;
|
|
1734
2190
|
};
|
|
1735
2191
|
} | {
|
|
@@ -1761,7 +2217,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
1761
2217
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1762
2218
|
readonly minimumCredentials: number;
|
|
1763
2219
|
}[]];
|
|
1764
|
-
}
|
|
2220
|
+
};
|
|
1765
2221
|
readonly expiresAtMillis: number;
|
|
1766
2222
|
};
|
|
1767
2223
|
};
|
|
@@ -1920,7 +2376,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
1920
2376
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1921
2377
|
readonly minimumCredentials: number;
|
|
1922
2378
|
}[]];
|
|
1923
|
-
}
|
|
2379
|
+
};
|
|
1924
2380
|
readonly expiresAtMillis: number;
|
|
1925
2381
|
};
|
|
1926
2382
|
} | {
|
|
@@ -1952,7 +2408,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
1952
2408
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1953
2409
|
readonly minimumCredentials: number;
|
|
1954
2410
|
}[]];
|
|
1955
|
-
}
|
|
2411
|
+
};
|
|
1956
2412
|
readonly expiresAtMillis: number;
|
|
1957
2413
|
};
|
|
1958
2414
|
} | {
|
|
@@ -1984,7 +2440,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
1984
2440
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
1985
2441
|
readonly minimumCredentials: number;
|
|
1986
2442
|
}[]];
|
|
1987
|
-
}
|
|
2443
|
+
};
|
|
1988
2444
|
readonly expiresAtMillis: number;
|
|
1989
2445
|
};
|
|
1990
2446
|
};
|
|
@@ -2176,7 +2632,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
2176
2632
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
2177
2633
|
readonly minimumCredentials: number;
|
|
2178
2634
|
}[]];
|
|
2179
|
-
}
|
|
2635
|
+
};
|
|
2180
2636
|
readonly expiresAtMillis: number;
|
|
2181
2637
|
};
|
|
2182
2638
|
} | {
|
|
@@ -2208,7 +2664,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
2208
2664
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
2209
2665
|
readonly minimumCredentials: number;
|
|
2210
2666
|
}[]];
|
|
2211
|
-
}
|
|
2667
|
+
};
|
|
2212
2668
|
readonly expiresAtMillis: number;
|
|
2213
2669
|
};
|
|
2214
2670
|
} | {
|
|
@@ -2240,7 +2696,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
2240
2696
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
2241
2697
|
readonly minimumCredentials: number;
|
|
2242
2698
|
}[]];
|
|
2243
|
-
}
|
|
2699
|
+
};
|
|
2244
2700
|
readonly expiresAtMillis: number;
|
|
2245
2701
|
};
|
|
2246
2702
|
};
|
|
@@ -2431,7 +2887,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
2431
2887
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
2432
2888
|
readonly minimumCredentials: number;
|
|
2433
2889
|
}[]];
|
|
2434
|
-
}
|
|
2890
|
+
};
|
|
2435
2891
|
readonly expiresAtMillis: number;
|
|
2436
2892
|
};
|
|
2437
2893
|
} | {
|
|
@@ -2463,7 +2919,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
2463
2919
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
2464
2920
|
readonly minimumCredentials: number;
|
|
2465
2921
|
}[]];
|
|
2466
|
-
}
|
|
2922
|
+
};
|
|
2467
2923
|
readonly expiresAtMillis: number;
|
|
2468
2924
|
};
|
|
2469
2925
|
} | {
|
|
@@ -2495,7 +2951,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
2495
2951
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
2496
2952
|
readonly minimumCredentials: number;
|
|
2497
2953
|
}[]];
|
|
2498
|
-
}
|
|
2954
|
+
};
|
|
2499
2955
|
readonly expiresAtMillis: number;
|
|
2500
2956
|
};
|
|
2501
2957
|
};
|
|
@@ -2503,7 +2959,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
2503
2959
|
readonly claimId: string;
|
|
2504
2960
|
readonly claimedAtMillis: number;
|
|
2505
2961
|
readonly claimExpiresAtMillis: number;
|
|
2506
|
-
}
|
|
2962
|
+
};
|
|
2507
2963
|
credential?: {
|
|
2508
2964
|
readonly credentialId: string;
|
|
2509
2965
|
readonly rpId: string;
|
|
@@ -2539,8 +2995,8 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
2539
2995
|
readonly backupState: boolean;
|
|
2540
2996
|
readonly counter: number;
|
|
2541
2997
|
readonly maximumCounter: number;
|
|
2542
|
-
}
|
|
2543
|
-
} | undefined, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
2998
|
+
};
|
|
2999
|
+
} | undefined, import("@yielded/auth/Passkey").PasskeyUnavailable | import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
2544
3000
|
terminalFlow: (mapping: any, read: FlowRead, state: "Ambiguous" | "Rejected" | "Verified") => import("effect/Effect").Effect<"Ambiguous" | "Rejected" | "Verified", import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
2545
3001
|
issueAssertion: (mapping: any, ceremony: {
|
|
2546
3002
|
readonly moduleId: string;
|
|
@@ -2679,7 +3135,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
2679
3135
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
2680
3136
|
readonly minimumCredentials: number;
|
|
2681
3137
|
}[]];
|
|
2682
|
-
}
|
|
3138
|
+
};
|
|
2683
3139
|
readonly expiresAtMillis: number;
|
|
2684
3140
|
};
|
|
2685
3141
|
} | {
|
|
@@ -2711,7 +3167,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
2711
3167
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
2712
3168
|
readonly minimumCredentials: number;
|
|
2713
3169
|
}[]];
|
|
2714
|
-
}
|
|
3170
|
+
};
|
|
2715
3171
|
readonly expiresAtMillis: number;
|
|
2716
3172
|
};
|
|
2717
3173
|
} | {
|
|
@@ -2743,7 +3199,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
2743
3199
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
2744
3200
|
readonly minimumCredentials: number;
|
|
2745
3201
|
}[]];
|
|
2746
|
-
}
|
|
3202
|
+
};
|
|
2747
3203
|
readonly expiresAtMillis: number;
|
|
2748
3204
|
};
|
|
2749
3205
|
};
|
|
@@ -2795,7 +3251,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
2795
3251
|
};
|
|
2796
3252
|
}) => import("effect/Effect").Effect<{
|
|
2797
3253
|
readonly _tag: "Rejected";
|
|
2798
|
-
readonly ceremony?:
|
|
3254
|
+
readonly ceremony?: never;
|
|
2799
3255
|
} | {
|
|
2800
3256
|
readonly _tag: "Issued";
|
|
2801
3257
|
readonly ceremony: {
|
|
@@ -2935,7 +3391,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
2935
3391
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
2936
3392
|
readonly minimumCredentials: number;
|
|
2937
3393
|
}[]];
|
|
2938
|
-
}
|
|
3394
|
+
};
|
|
2939
3395
|
readonly expiresAtMillis: number;
|
|
2940
3396
|
};
|
|
2941
3397
|
} | {
|
|
@@ -2967,7 +3423,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
2967
3423
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
2968
3424
|
readonly minimumCredentials: number;
|
|
2969
3425
|
}[]];
|
|
2970
|
-
}
|
|
3426
|
+
};
|
|
2971
3427
|
readonly expiresAtMillis: number;
|
|
2972
3428
|
};
|
|
2973
3429
|
} | {
|
|
@@ -2999,12 +3455,12 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
2999
3455
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
3000
3456
|
readonly minimumCredentials: number;
|
|
3001
3457
|
}[]];
|
|
3002
|
-
}
|
|
3458
|
+
};
|
|
3003
3459
|
readonly expiresAtMillis: number;
|
|
3004
3460
|
};
|
|
3005
3461
|
};
|
|
3006
3462
|
};
|
|
3007
|
-
}, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
3463
|
+
}, import("@yielded/auth/Passkey").PasskeyUnavailable | import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
3008
3464
|
contextAssertion: (mapping: any, access: {
|
|
3009
3465
|
readonly moduleId: string;
|
|
3010
3466
|
readonly generation: number;
|
|
@@ -3150,7 +3606,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
3150
3606
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
3151
3607
|
readonly minimumCredentials: number;
|
|
3152
3608
|
}[]];
|
|
3153
|
-
}
|
|
3609
|
+
};
|
|
3154
3610
|
readonly expiresAtMillis: number;
|
|
3155
3611
|
};
|
|
3156
3612
|
} | {
|
|
@@ -3182,7 +3638,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
3182
3638
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
3183
3639
|
readonly minimumCredentials: number;
|
|
3184
3640
|
}[]];
|
|
3185
|
-
}
|
|
3641
|
+
};
|
|
3186
3642
|
readonly expiresAtMillis: number;
|
|
3187
3643
|
};
|
|
3188
3644
|
} | {
|
|
@@ -3214,11 +3670,11 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
3214
3670
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
3215
3671
|
readonly minimumCredentials: number;
|
|
3216
3672
|
}[]];
|
|
3217
|
-
}
|
|
3673
|
+
};
|
|
3218
3674
|
readonly expiresAtMillis: number;
|
|
3219
3675
|
};
|
|
3220
3676
|
};
|
|
3221
|
-
} | undefined, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
3677
|
+
} | undefined, import("@yielded/auth/Passkey").PasskeyUnavailable | import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
3222
3678
|
claimAssertion: (mapping: any, input: {
|
|
3223
3679
|
readonly access: import("@yielded/auth/Passkey").PasskeyAccess;
|
|
3224
3680
|
readonly policy: import("@yielded/auth/Passkey").PasskeyMethodPolicy;
|
|
@@ -3227,7 +3683,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
3227
3683
|
readonly credential?: import("@yielded/auth/Passkey").PasskeyCredential;
|
|
3228
3684
|
}) => import("effect/Effect").Effect<{
|
|
3229
3685
|
readonly _tag: "Rejected";
|
|
3230
|
-
readonly claim?:
|
|
3686
|
+
readonly claim?: never;
|
|
3231
3687
|
} | {
|
|
3232
3688
|
readonly _tag: "Claimed";
|
|
3233
3689
|
readonly claim: {
|
|
@@ -3368,7 +3824,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
3368
3824
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
3369
3825
|
readonly minimumCredentials: number;
|
|
3370
3826
|
}[]];
|
|
3371
|
-
}
|
|
3827
|
+
};
|
|
3372
3828
|
readonly expiresAtMillis: number;
|
|
3373
3829
|
};
|
|
3374
3830
|
} | {
|
|
@@ -3400,7 +3856,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
3400
3856
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
3401
3857
|
readonly minimumCredentials: number;
|
|
3402
3858
|
}[]];
|
|
3403
|
-
}
|
|
3859
|
+
};
|
|
3404
3860
|
readonly expiresAtMillis: number;
|
|
3405
3861
|
};
|
|
3406
3862
|
} | {
|
|
@@ -3432,7 +3888,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
3432
3888
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
3433
3889
|
readonly minimumCredentials: number;
|
|
3434
3890
|
}[]];
|
|
3435
|
-
}
|
|
3891
|
+
};
|
|
3436
3892
|
readonly expiresAtMillis: number;
|
|
3437
3893
|
};
|
|
3438
3894
|
};
|
|
@@ -3441,7 +3897,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
3441
3897
|
readonly claimedAtMillis: number;
|
|
3442
3898
|
readonly claimExpiresAtMillis: number;
|
|
3443
3899
|
};
|
|
3444
|
-
}, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
3900
|
+
}, import("@yielded/auth/Passkey").PasskeyUnavailable | import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
3445
3901
|
exactClaim: (read: FlowRead, claim: import("@yielded/auth/Passkey").PasskeyClaim) => boolean;
|
|
3446
3902
|
settleAssertion: (mapping: any, claim: {
|
|
3447
3903
|
readonly ceremony: {
|
|
@@ -3581,7 +4037,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
3581
4037
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
3582
4038
|
readonly minimumCredentials: number;
|
|
3583
4039
|
}[]];
|
|
3584
|
-
}
|
|
4040
|
+
};
|
|
3585
4041
|
readonly expiresAtMillis: number;
|
|
3586
4042
|
};
|
|
3587
4043
|
} | {
|
|
@@ -3613,7 +4069,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
3613
4069
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
3614
4070
|
readonly minimumCredentials: number;
|
|
3615
4071
|
}[]];
|
|
3616
|
-
}
|
|
4072
|
+
};
|
|
3617
4073
|
readonly expiresAtMillis: number;
|
|
3618
4074
|
};
|
|
3619
4075
|
} | {
|
|
@@ -3645,7 +4101,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
3645
4101
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
3646
4102
|
readonly minimumCredentials: number;
|
|
3647
4103
|
}[]];
|
|
3648
|
-
}
|
|
4104
|
+
};
|
|
3649
4105
|
readonly expiresAtMillis: number;
|
|
3650
4106
|
};
|
|
3651
4107
|
};
|
|
@@ -3686,7 +4142,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
3686
4142
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
3687
4143
|
}[]];
|
|
3688
4144
|
};
|
|
3689
|
-
}, dialect: "mysql" | "pg" | "sqlite") => import("effect/Effect").Effect<"Ambiguous" | "Rejected" | "Verified", import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
4145
|
+
}, dialect: "mysql" | "pg" | "sqlite") => import("effect/Effect").Effect<"Ambiguous" | "Rejected" | "Verified", import("@yielded/auth/Passkey").PasskeyUnavailable | import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
3690
4146
|
cleanupCeremonies: (mapping: any, input: {
|
|
3691
4147
|
readonly moduleId: string;
|
|
3692
4148
|
readonly nowMillis: number;
|
|
@@ -3695,7 +4151,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
3695
4151
|
terminalized: number;
|
|
3696
4152
|
removed: number;
|
|
3697
4153
|
hasMore: boolean;
|
|
3698
|
-
}, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
4154
|
+
}, import("@yielded/auth/Passkey").PasskeyUnavailable | import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
3699
4155
|
};
|
|
3700
4156
|
registrationCeremony: {
|
|
3701
4157
|
contextRegistration: (mapping: any, access: {
|
|
@@ -3843,7 +4299,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
3843
4299
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
3844
4300
|
readonly minimumCredentials: number;
|
|
3845
4301
|
}[]];
|
|
3846
|
-
}
|
|
4302
|
+
};
|
|
3847
4303
|
readonly expiresAtMillis: number;
|
|
3848
4304
|
};
|
|
3849
4305
|
} | {
|
|
@@ -3875,7 +4331,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
3875
4331
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
3876
4332
|
readonly minimumCredentials: number;
|
|
3877
4333
|
}[]];
|
|
3878
|
-
}
|
|
4334
|
+
};
|
|
3879
4335
|
readonly expiresAtMillis: number;
|
|
3880
4336
|
};
|
|
3881
4337
|
} | {
|
|
@@ -3907,18 +4363,18 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
3907
4363
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
3908
4364
|
readonly minimumCredentials: number;
|
|
3909
4365
|
}[]];
|
|
3910
|
-
}
|
|
4366
|
+
};
|
|
3911
4367
|
readonly expiresAtMillis: number;
|
|
3912
4368
|
};
|
|
3913
4369
|
};
|
|
3914
|
-
} | undefined, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
4370
|
+
} | undefined, import("@yielded/auth/Passkey").PasskeyUnavailable | import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
3915
4371
|
claimRegistration: (mapping: any, input: {
|
|
3916
4372
|
readonly access: import("@yielded/auth/Passkey").PasskeyAccess;
|
|
3917
4373
|
readonly policy: import("@yielded/auth/Passkey").PasskeyMethodPolicy;
|
|
3918
4374
|
readonly ceremony: import("@yielded/auth/Passkey").PasskeyCeremony;
|
|
3919
4375
|
readonly claimId: string;
|
|
3920
4376
|
}) => import("effect/Effect").Effect<{
|
|
3921
|
-
readonly claim?:
|
|
4377
|
+
readonly claim?: never;
|
|
3922
4378
|
readonly _tag: "Rejected";
|
|
3923
4379
|
} | {
|
|
3924
4380
|
readonly _tag: "Claimed";
|
|
@@ -4060,7 +4516,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
4060
4516
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
4061
4517
|
readonly minimumCredentials: number;
|
|
4062
4518
|
}[]];
|
|
4063
|
-
}
|
|
4519
|
+
};
|
|
4064
4520
|
readonly expiresAtMillis: number;
|
|
4065
4521
|
};
|
|
4066
4522
|
} | {
|
|
@@ -4092,7 +4548,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
4092
4548
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
4093
4549
|
readonly minimumCredentials: number;
|
|
4094
4550
|
}[]];
|
|
4095
|
-
}
|
|
4551
|
+
};
|
|
4096
4552
|
readonly expiresAtMillis: number;
|
|
4097
4553
|
};
|
|
4098
4554
|
} | {
|
|
@@ -4124,7 +4580,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
4124
4580
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
4125
4581
|
readonly minimumCredentials: number;
|
|
4126
4582
|
}[]];
|
|
4127
|
-
}
|
|
4583
|
+
};
|
|
4128
4584
|
readonly expiresAtMillis: number;
|
|
4129
4585
|
};
|
|
4130
4586
|
};
|
|
@@ -4133,7 +4589,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
4133
4589
|
readonly claimedAtMillis: number;
|
|
4134
4590
|
readonly claimExpiresAtMillis: number;
|
|
4135
4591
|
};
|
|
4136
|
-
}, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
4592
|
+
}, import("@yielded/auth/Passkey").PasskeyUnavailable | import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
4137
4593
|
settleRegistration: (mapping: any, claim: {
|
|
4138
4594
|
readonly ceremony: {
|
|
4139
4595
|
readonly moduleId: string;
|
|
@@ -4272,7 +4728,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
4272
4728
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
4273
4729
|
readonly minimumCredentials: number;
|
|
4274
4730
|
}[]];
|
|
4275
|
-
}
|
|
4731
|
+
};
|
|
4276
4732
|
readonly expiresAtMillis: number;
|
|
4277
4733
|
};
|
|
4278
4734
|
} | {
|
|
@@ -4304,7 +4760,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
4304
4760
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
4305
4761
|
readonly minimumCredentials: number;
|
|
4306
4762
|
}[]];
|
|
4307
|
-
}
|
|
4763
|
+
};
|
|
4308
4764
|
readonly expiresAtMillis: number;
|
|
4309
4765
|
};
|
|
4310
4766
|
} | {
|
|
@@ -4336,7 +4792,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
4336
4792
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
4337
4793
|
readonly minimumCredentials: number;
|
|
4338
4794
|
}[]];
|
|
4339
|
-
}
|
|
4795
|
+
};
|
|
4340
4796
|
readonly expiresAtMillis: number;
|
|
4341
4797
|
};
|
|
4342
4798
|
};
|
|
@@ -4344,29 +4800,29 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
4344
4800
|
readonly claimId: string;
|
|
4345
4801
|
readonly claimedAtMillis: number;
|
|
4346
4802
|
readonly claimExpiresAtMillis: number;
|
|
4347
|
-
}, outcome: "Ambiguous" | "Rejected") => import("effect/Effect").Effect<"Ambiguous" | "Rejected" | "Verified", import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
4803
|
+
}, outcome: "Ambiguous" | "Rejected") => import("effect/Effect").Effect<"Ambiguous" | "Rejected" | "Verified", import("@yielded/auth/Passkey").PasskeyUnavailable | import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
4348
4804
|
};
|
|
4349
4805
|
target: {
|
|
4350
4806
|
sqlClientPasskeyStandaloneGuard: (transactionService: Parameters<<Failure>(unavailable: () => Failure, transactionService: import("effect/sql/SqlClient").SqlClient["transactionService"] | undefined) => import("effect/Effect").Effect<void, Failure, never>>[1]) => import("effect/Effect").Effect<void, import("@yielded/auth/Passkey").PasskeyUnavailable, never>;
|
|
4351
|
-
makePasskeyExecution: (configuration: PasskeyTargetConfiguration, mapping: unknown) => import("effect/Effect").Effect<PasskeyExecution, import("@yielded/auth/Passkey").PasskeyConfigurationError, import("@yielded/auth/Hooks").LifecycleHooks | NativeDatabase>;
|
|
4807
|
+
makePasskeyExecution: (configuration: PasskeyTargetConfiguration, mapping: unknown) => import("effect/Effect").Effect<PasskeyExecution, import("@yielded/auth/Passkey").PasskeyConfigurationError, import("effect/Crypto").Crypto | import("@yielded/auth/Hooks").LifecycleHooks | NativeDatabase>;
|
|
4352
4808
|
capturedService: <S>(service: S, schemas: Record<string, import("effect/Schema").Codec<any, any, never, never>>, execute: PasskeyExecution) => S;
|
|
4353
4809
|
prepareValue: <Value, A>(value: Value, prepare: import("@yielded/auth/Passkey").PreparePasskeyCommit<Value, A>) => import("effect/Effect").Effect<import("@yielded/auth/Hooks").PreparedCommit<A>, never, CurrentPasskeyTransaction>;
|
|
4354
4810
|
observationalContext: <A, E, R>(operation: import("effect/Effect").Effect<A, E, R>) => import("effect/Effect").Effect<A, E, CurrentPasskeyTransaction | Exclude<R, CurrentPasskeyTransaction>>;
|
|
4355
4811
|
makePasskeyPersistence: (mapping: any, execute: PasskeyExecution, configuration: PasskeyTargetConfiguration, registration?: boolean, enrollment?: boolean) => import("@yielded/auth/Passkey").PasskeyPersistence["Service"];
|
|
4356
4812
|
capturedMapping: <M, RSetup>(source: PasskeyMappingSource<M, RSetup>, kind: "read" | "context" | "assertion" | "registration", configuration: PasskeyTargetConfiguration) => import("effect/Effect").Effect<M, import("@yielded/auth/Passkey").PasskeyConfigurationError | PersistenceMappingError, RSetup>;
|
|
4357
|
-
makeTargetPasskeyCredentials: <M, RSetup>(source: PasskeyMappingSource<M, RSetup>, configuration: PasskeyTargetConfiguration) => import("effect/Effect").Effect<PasskeyCredentialServices, import("@yielded/auth/Passkey").PasskeyConfigurationError | PersistenceMappingError, RSetup | NativeDatabase>;
|
|
4358
|
-
makeTargetPasskeyEnrollmentContext: <M, RSetup>(source: PasskeyMappingSource<M, RSetup>, configuration: PasskeyTargetConfiguration) => import("effect/Effect").Effect<PasskeyEnrollmentContextServices, import("@yielded/auth/Passkey").PasskeyConfigurationError | PersistenceMappingError, RSetup | NativeDatabase>;
|
|
4359
|
-
makeTargetPasskeyPersistence: <M, RSetup>(source: PasskeyMappingSource<M, RSetup>, configuration: PasskeyTargetConfiguration) => import("effect/Effect").Effect<PasskeyPersistenceServices, import("@yielded/auth/Passkey").PasskeyConfigurationError | PersistenceMappingError, RSetup | import("@yielded/auth/Hooks").LifecycleHooks | NativeDatabase>;
|
|
4360
|
-
makeTargetPasskeyRegistration: <M, RSetup>(source: PasskeyMappingSource<M, RSetup>, configuration: PasskeyTargetConfiguration) => import("effect/Effect").Effect<PasskeyRegistrationCeremonyServices, import("@yielded/auth/Passkey").PasskeyConfigurationError | PersistenceMappingError, RSetup | import("@yielded/auth/Hooks").LifecycleHooks | NativeDatabase>;
|
|
4361
|
-
coordinateTargetPasskey: <M, RSetup, Transaction, A, E, R>(database: any, source: PasskeyMappingSource<M, RSetup>, configuration: PasskeyTargetConfiguration, owner: (transaction: Transaction, services: PasskeyPersistenceServices, append: (statement: import("effect/sql/Statement").Statement<unknown>) => void) => import("effect/Effect").Effect<A, E, R>) => import("effect/Effect").Effect<A, PasskeyCoordinatorError<E>, R | RSetup | import("@yielded/auth/Hooks").LifecycleHooks | NativeDatabase>;
|
|
4362
|
-
coordinateTargetPasskeyRegistration: <M, RSetup, Transaction, A, E, R>(database: any, source: PasskeyMappingSource<M, RSetup>, configuration: PasskeyTargetConfiguration, owner: (transaction: Transaction, services: PasskeyRegistrationCeremonyServices, append: (statement: import("effect/sql/Statement").Statement<unknown>) => void) => import("effect/Effect").Effect<A, E, R>) => import("effect/Effect").Effect<A, PasskeyCoordinatorError<E>, R | RSetup | import("@yielded/auth/Hooks").LifecycleHooks | NativeDatabase>;
|
|
4813
|
+
makeTargetPasskeyCredentials: <M, RSetup>(source: PasskeyMappingSource<M, RSetup>, configuration: PasskeyTargetConfiguration) => import("effect/Effect").Effect<PasskeyCredentialServices, import("@yielded/auth/Passkey").PasskeyConfigurationError | PersistenceMappingError, RSetup | NativeDatabase | import("effect/Crypto").Crypto>;
|
|
4814
|
+
makeTargetPasskeyEnrollmentContext: <M, RSetup>(source: PasskeyMappingSource<M, RSetup>, configuration: PasskeyTargetConfiguration) => import("effect/Effect").Effect<PasskeyEnrollmentContextServices, import("@yielded/auth/Passkey").PasskeyConfigurationError | PersistenceMappingError, RSetup | NativeDatabase | import("effect/Crypto").Crypto>;
|
|
4815
|
+
makeTargetPasskeyPersistence: <M, RSetup>(source: PasskeyMappingSource<M, RSetup>, configuration: PasskeyTargetConfiguration) => import("effect/Effect").Effect<PasskeyPersistenceServices, import("@yielded/auth/Passkey").PasskeyConfigurationError | PersistenceMappingError, RSetup | import("@yielded/auth/Hooks").LifecycleHooks | NativeDatabase | import("effect/Crypto").Crypto>;
|
|
4816
|
+
makeTargetPasskeyRegistration: <M, RSetup>(source: PasskeyMappingSource<M, RSetup>, configuration: PasskeyTargetConfiguration) => import("effect/Effect").Effect<PasskeyRegistrationCeremonyServices, import("@yielded/auth/Passkey").PasskeyConfigurationError | PersistenceMappingError, RSetup | import("@yielded/auth/Hooks").LifecycleHooks | NativeDatabase | import("effect/Crypto").Crypto>;
|
|
4817
|
+
coordinateTargetPasskey: <M, RSetup, Transaction, A, E, R>(database: any, source: PasskeyMappingSource<M, RSetup>, configuration: PasskeyTargetConfiguration, owner: (transaction: Transaction, services: PasskeyPersistenceServices, append: (statement: import("effect/sql/Statement").Statement<unknown>) => void) => import("effect/Effect").Effect<A, E, R>) => import("effect/Effect").Effect<A, PasskeyCoordinatorError<E>, R | RSetup | import("@yielded/auth/Hooks").LifecycleHooks | NativeDatabase | import("effect/Crypto").Crypto>;
|
|
4818
|
+
coordinateTargetPasskeyRegistration: <M, RSetup, Transaction, A, E, R>(database: any, source: PasskeyMappingSource<M, RSetup>, configuration: PasskeyTargetConfiguration, owner: (transaction: Transaction, services: PasskeyRegistrationCeremonyServices, append: (statement: import("effect/sql/Statement").Statement<unknown>) => void) => import("effect/Effect").Effect<A, E, R>) => import("effect/Effect").Effect<A, PasskeyCoordinatorError<E>, R | RSetup | import("@yielded/auth/Hooks").LifecycleHooks | NativeDatabase | import("effect/Crypto").Crypto>;
|
|
4363
4819
|
};
|
|
4364
4820
|
writeState: {
|
|
4365
4821
|
jsonStorage: <S extends import("effect/Schema").Codec<unknown, unknown, never, never>>(schema: S) => {
|
|
4366
4822
|
encode: (value: S["Type"]) => string;
|
|
4367
4823
|
decode: (text: unknown) => S["Type"];
|
|
4368
4824
|
};
|
|
4369
|
-
digest: <S extends import("effect/Schema").Codec<unknown, unknown, never, never>>(schema: S, value: S["Type"]) => string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
4825
|
+
digest: <S extends import("effect/Schema").Codec<unknown, unknown, never, never>>(schema: S, value: S["Type"]) => import("effect/Effect").Effect<string & import("effect/Brand").Brand<"effect-auth/TokenDigest">, import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto>;
|
|
4370
4826
|
currentSubject: (mapping: any, subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">) => import("effect/Effect").Effect<{
|
|
4371
4827
|
subjectId: string & import("effect/Brand").Brand<"effect-auth/SubjectId">;
|
|
4372
4828
|
nativeId: any;
|
|
@@ -4386,7 +4842,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
4386
4842
|
readonly name: string;
|
|
4387
4843
|
readonly primarySignIn: boolean;
|
|
4388
4844
|
readonly createdAtMillis: number;
|
|
4389
|
-
readonly lastUsedAtMillis?: number
|
|
4845
|
+
readonly lastUsedAtMillis?: number;
|
|
4390
4846
|
};
|
|
4391
4847
|
ownedCredential: (mapping: any, subject: WriteSubject, row: any) => import("effect/Effect").Effect<{
|
|
4392
4848
|
readonly credentialId: string;
|
|
@@ -4423,15 +4879,15 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
4423
4879
|
readonly backupState: boolean;
|
|
4424
4880
|
readonly counter: number;
|
|
4425
4881
|
readonly maximumCounter: number;
|
|
4426
|
-
} | undefined, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
4882
|
+
} | undefined, import("@yielded/auth/Passkey").PasskeyUnavailable | import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
4427
4883
|
managementPolicy: (mapping: any, subject: WriteSubject) => {
|
|
4428
4884
|
readonly maximumCredentials: number;
|
|
4429
4885
|
readonly maximumEvidenceAgeMillis: number;
|
|
4430
4886
|
readonly requireImmediateInvalidation: boolean;
|
|
4431
4887
|
};
|
|
4432
4888
|
metadataAllowed: (mapping: any, subject: WriteSubject) => import("effect/Effect").Effect<boolean, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
4433
|
-
enrollmentDigest: (ceremony: import("@yielded/auth/Passkey").PasskeyCeremony) => string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
4434
|
-
removeDigest: (moduleId: string, commandId: string, credential: import("@yielded/auth/Passkey").PasskeyCredential) => string & import("effect/Brand").Brand<"effect-auth/TokenDigest">;
|
|
4889
|
+
enrollmentDigest: (ceremony: import("@yielded/auth/Passkey").PasskeyCeremony) => import("effect/Effect").Effect<string & import("effect/Brand").Brand<"effect-auth/TokenDigest">, import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto>;
|
|
4890
|
+
removeDigest: (moduleId: string, commandId: string, credential: import("@yielded/auth/Passkey").PasskeyCredential) => import("effect/Effect").Effect<string & import("effect/Brand").Brand<"effect-auth/TokenDigest">, import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto>;
|
|
4435
4891
|
authorizeAction: (mapping: any, subject: WriteSubject, authorization: {
|
|
4436
4892
|
readonly challenge: {
|
|
4437
4893
|
readonly moduleId: string;
|
|
@@ -4526,7 +4982,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
4526
4982
|
readonly existingSessions: "immediate" | "original-absolute-expiry";
|
|
4527
4983
|
readonly maximumExposureMillis: number;
|
|
4528
4984
|
readonly oldAuthenticationEvidence: "rejected";
|
|
4529
|
-
}) => import("effect/Effect").Effect<string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
4985
|
+
}) => import("effect/Effect").Effect<string & import("effect/Brand").Brand<"effect-auth/SecurityRevision">, import("@yielded/auth/Passkey").PasskeyUnavailable | import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
4530
4986
|
validRegistration: (ceremony: import("@yielded/auth/Passkey").PasskeyCeremony, verified: {
|
|
4531
4987
|
readonly algorithm: number;
|
|
4532
4988
|
readonly userVerified: boolean;
|
|
@@ -4671,7 +5127,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
4671
5127
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
4672
5128
|
readonly minimumCredentials: number;
|
|
4673
5129
|
}[]];
|
|
4674
|
-
}
|
|
5130
|
+
};
|
|
4675
5131
|
readonly expiresAtMillis: number;
|
|
4676
5132
|
};
|
|
4677
5133
|
} | {
|
|
@@ -4703,7 +5159,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
4703
5159
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
4704
5160
|
readonly minimumCredentials: number;
|
|
4705
5161
|
}[]];
|
|
4706
|
-
}
|
|
5162
|
+
};
|
|
4707
5163
|
readonly expiresAtMillis: number;
|
|
4708
5164
|
};
|
|
4709
5165
|
} | {
|
|
@@ -4735,7 +5191,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
4735
5191
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
4736
5192
|
readonly minimumCredentials: number;
|
|
4737
5193
|
}[]];
|
|
4738
|
-
}
|
|
5194
|
+
};
|
|
4739
5195
|
readonly expiresAtMillis: number;
|
|
4740
5196
|
};
|
|
4741
5197
|
};
|
|
@@ -4744,8 +5200,8 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
4744
5200
|
readonly name: string;
|
|
4745
5201
|
readonly primarySignIn: boolean;
|
|
4746
5202
|
readonly createdAtMillis: number;
|
|
4747
|
-
readonly lastUsedAtMillis?: number
|
|
4748
|
-
}, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
5203
|
+
readonly lastUsedAtMillis?: number;
|
|
5204
|
+
}, import("@yielded/auth/Passkey").PasskeyUnavailable | import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
4749
5205
|
};
|
|
4750
5206
|
enrollment: {
|
|
4751
5207
|
enrollmentHandle: (mapping: any, subject: WriteSubject, ceremony: {
|
|
@@ -4885,7 +5341,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
4885
5341
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
4886
5342
|
readonly minimumCredentials: number;
|
|
4887
5343
|
}[]];
|
|
4888
|
-
}
|
|
5344
|
+
};
|
|
4889
5345
|
readonly expiresAtMillis: number;
|
|
4890
5346
|
};
|
|
4891
5347
|
} | {
|
|
@@ -4917,7 +5373,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
4917
5373
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
4918
5374
|
readonly minimumCredentials: number;
|
|
4919
5375
|
}[]];
|
|
4920
|
-
}
|
|
5376
|
+
};
|
|
4921
5377
|
readonly expiresAtMillis: number;
|
|
4922
5378
|
};
|
|
4923
5379
|
} | {
|
|
@@ -4949,11 +5405,11 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
4949
5405
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
4950
5406
|
readonly minimumCredentials: number;
|
|
4951
5407
|
}[]];
|
|
4952
|
-
}
|
|
5408
|
+
};
|
|
4953
5409
|
readonly expiresAtMillis: number;
|
|
4954
5410
|
};
|
|
4955
5411
|
};
|
|
4956
|
-
}, create: boolean) => import("effect/Effect").Effect<any, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
5412
|
+
}, create: boolean) => import("effect/Effect").Effect<any, import("@yielded/auth/Passkey").PasskeyUnavailable | import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
4957
5413
|
issueEnrollment: (mapping: any, input: {
|
|
4958
5414
|
readonly ceremony: import("@yielded/auth/Passkey").PasskeyCeremony;
|
|
4959
5415
|
readonly policy: import("@yielded/auth/Passkey").PasskeyMethodPolicy;
|
|
@@ -4961,7 +5417,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
4961
5417
|
readonly authorization: import("@yielded/auth/Passkey").PasskeyActionAuthorization;
|
|
4962
5418
|
}) => import("effect/Effect").Effect<{
|
|
4963
5419
|
readonly _tag: "Rejected";
|
|
4964
|
-
readonly ceremony?:
|
|
5420
|
+
readonly ceremony?: never;
|
|
4965
5421
|
} | {
|
|
4966
5422
|
readonly _tag: "Issued";
|
|
4967
5423
|
readonly ceremony: {
|
|
@@ -5101,7 +5557,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
5101
5557
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
5102
5558
|
readonly minimumCredentials: number;
|
|
5103
5559
|
}[]];
|
|
5104
|
-
}
|
|
5560
|
+
};
|
|
5105
5561
|
readonly expiresAtMillis: number;
|
|
5106
5562
|
};
|
|
5107
5563
|
} | {
|
|
@@ -5133,7 +5589,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
5133
5589
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
5134
5590
|
readonly minimumCredentials: number;
|
|
5135
5591
|
}[]];
|
|
5136
|
-
}
|
|
5592
|
+
};
|
|
5137
5593
|
readonly expiresAtMillis: number;
|
|
5138
5594
|
};
|
|
5139
5595
|
} | {
|
|
@@ -5165,12 +5621,12 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
5165
5621
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
5166
5622
|
readonly minimumCredentials: number;
|
|
5167
5623
|
}[]];
|
|
5168
|
-
}
|
|
5624
|
+
};
|
|
5169
5625
|
readonly expiresAtMillis: number;
|
|
5170
5626
|
};
|
|
5171
5627
|
};
|
|
5172
5628
|
};
|
|
5173
|
-
}, import("@yielded/auth/Passkey").PasskeyUnavailable | PersistenceMappingError, CurrentPasskeyTransaction>;
|
|
5629
|
+
}, import("@yielded/auth/Passkey").PasskeyUnavailable | PersistenceMappingError | import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
5174
5630
|
completeEnrollment: (mapping: any, input: {
|
|
5175
5631
|
readonly claim: import("@yielded/auth/Passkey").PasskeyClaim;
|
|
5176
5632
|
readonly verified: import("@yielded/auth/Passkey").PasskeyRegistrationVerified;
|
|
@@ -5178,8 +5634,8 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
5178
5634
|
readonly management: import("@yielded/auth/Passkey").PasskeyManagementPolicy;
|
|
5179
5635
|
readonly nowMillis: number;
|
|
5180
5636
|
}) => import("effect/Effect").Effect<{
|
|
5181
|
-
credential?: undefined;
|
|
5182
5637
|
readonly _tag: "Rejected";
|
|
5638
|
+
readonly credential?: never;
|
|
5183
5639
|
} | {
|
|
5184
5640
|
readonly _tag: "Enrolled";
|
|
5185
5641
|
readonly credential: {
|
|
@@ -5187,9 +5643,9 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
5187
5643
|
readonly name: string;
|
|
5188
5644
|
readonly primarySignIn: boolean;
|
|
5189
5645
|
readonly createdAtMillis: number;
|
|
5190
|
-
readonly lastUsedAtMillis?: number
|
|
5646
|
+
readonly lastUsedAtMillis?: number;
|
|
5191
5647
|
};
|
|
5192
|
-
}, import("@yielded/auth/Passkey").PasskeyUnavailable | PersistenceMappingError, CurrentPasskeyTransaction>;
|
|
5648
|
+
}, import("@yielded/auth/Passkey").PasskeyUnavailable | PersistenceMappingError | import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
5193
5649
|
};
|
|
5194
5650
|
management: {
|
|
5195
5651
|
listCredentials: (mapping: any, input: {
|
|
@@ -5203,10 +5659,10 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
5203
5659
|
readonly name: string;
|
|
5204
5660
|
readonly primarySignIn: boolean;
|
|
5205
5661
|
readonly createdAtMillis: number;
|
|
5206
|
-
readonly lastUsedAtMillis?: number
|
|
5662
|
+
readonly lastUsedAtMillis?: number;
|
|
5207
5663
|
}[];
|
|
5208
|
-
cursor?: string
|
|
5209
|
-
}, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
5664
|
+
cursor?: string;
|
|
5665
|
+
}, import("@yielded/auth/Passkey").PasskeyUnavailable | import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
5210
5666
|
renameCredential: (mapping: any, input: {
|
|
5211
5667
|
readonly moduleId: string;
|
|
5212
5668
|
readonly subjectId: import("@yielded/auth/Schema").SubjectId;
|
|
@@ -5216,9 +5672,9 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
5216
5672
|
readonly nowMillis: number;
|
|
5217
5673
|
readonly retentionUntilMillis: number;
|
|
5218
5674
|
}) => import("effect/Effect").Effect<{
|
|
5219
|
-
readonly observation?:
|
|
5675
|
+
readonly observation?: never;
|
|
5220
5676
|
readonly _tag: "Rejected";
|
|
5221
|
-
readonly decision?:
|
|
5677
|
+
readonly decision?: never;
|
|
5222
5678
|
} | {
|
|
5223
5679
|
_tag: "Renamed";
|
|
5224
5680
|
credential: {
|
|
@@ -5226,7 +5682,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
5226
5682
|
readonly name: string;
|
|
5227
5683
|
readonly primarySignIn: boolean;
|
|
5228
5684
|
readonly createdAtMillis: number;
|
|
5229
|
-
readonly lastUsedAtMillis?: number
|
|
5685
|
+
readonly lastUsedAtMillis?: number;
|
|
5230
5686
|
};
|
|
5231
5687
|
replayed: boolean;
|
|
5232
5688
|
} | {
|
|
@@ -5236,21 +5692,21 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
5236
5692
|
readonly name: string;
|
|
5237
5693
|
readonly primarySignIn: boolean;
|
|
5238
5694
|
readonly createdAtMillis: number;
|
|
5239
|
-
readonly lastUsedAtMillis?: number
|
|
5695
|
+
readonly lastUsedAtMillis?: number;
|
|
5240
5696
|
};
|
|
5241
5697
|
readonly replayed: false;
|
|
5242
|
-
}, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
5698
|
+
}, import("@yielded/auth/Passkey").PasskeyUnavailable | import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
5243
5699
|
inspectRemove: (mapping: any, input: {
|
|
5244
5700
|
readonly moduleId: string;
|
|
5245
5701
|
readonly subjectId: import("@yielded/auth/Schema").SubjectId;
|
|
5246
5702
|
readonly commandId: string;
|
|
5247
5703
|
readonly credentialId: string;
|
|
5248
5704
|
}) => import("effect/Effect").Effect<{
|
|
5249
|
-
readonly observation?:
|
|
5705
|
+
readonly observation?: never;
|
|
5250
5706
|
readonly _tag: "Rejected";
|
|
5251
|
-
readonly decision?:
|
|
5707
|
+
readonly decision?: never;
|
|
5252
5708
|
} | {
|
|
5253
|
-
credential?:
|
|
5709
|
+
readonly credential?: never;
|
|
5254
5710
|
readonly _tag: "Replay";
|
|
5255
5711
|
readonly result: {
|
|
5256
5712
|
readonly credentialId: string;
|
|
@@ -5263,7 +5719,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
5263
5719
|
readonly replayed: true;
|
|
5264
5720
|
};
|
|
5265
5721
|
} | {
|
|
5266
|
-
readonly result?:
|
|
5722
|
+
readonly result?: never;
|
|
5267
5723
|
readonly _tag: "Target";
|
|
5268
5724
|
readonly credential: {
|
|
5269
5725
|
readonly credentialId: string;
|
|
@@ -5301,7 +5757,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
5301
5757
|
readonly counter: number;
|
|
5302
5758
|
readonly maximumCounter: number;
|
|
5303
5759
|
};
|
|
5304
|
-
}, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
5760
|
+
}, import("@yielded/auth/Passkey").PasskeyUnavailable | import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
5305
5761
|
removeCredential: (mapping: any, input: {
|
|
5306
5762
|
readonly moduleId: string;
|
|
5307
5763
|
readonly commandId: string;
|
|
@@ -5312,9 +5768,9 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
5312
5768
|
readonly nowMillis: number;
|
|
5313
5769
|
readonly retentionUntilMillis: number;
|
|
5314
5770
|
}) => import("effect/Effect").Effect<{
|
|
5315
|
-
readonly observation?:
|
|
5771
|
+
readonly observation?: never;
|
|
5316
5772
|
readonly _tag: "Rejected";
|
|
5317
|
-
readonly decision?:
|
|
5773
|
+
readonly decision?: never;
|
|
5318
5774
|
} | {
|
|
5319
5775
|
readonly _tag: "Removed";
|
|
5320
5776
|
readonly result: {
|
|
@@ -5328,7 +5784,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
5328
5784
|
readonly replayed: true;
|
|
5329
5785
|
};
|
|
5330
5786
|
} | {
|
|
5331
|
-
readonly result?:
|
|
5787
|
+
readonly result?: never;
|
|
5332
5788
|
readonly _tag: "LastSignInMethod";
|
|
5333
5789
|
} | {
|
|
5334
5790
|
readonly _tag: "Removed";
|
|
@@ -5342,7 +5798,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
5342
5798
|
readonly oldAuthenticationEvidence: "rejected";
|
|
5343
5799
|
};
|
|
5344
5800
|
};
|
|
5345
|
-
}, import("@yielded/auth/Passkey").PasskeyUnavailable | PersistenceMappingError, CurrentPasskeyTransaction>;
|
|
5801
|
+
}, import("@yielded/auth/Passkey").PasskeyUnavailable | PersistenceMappingError | import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
5346
5802
|
};
|
|
5347
5803
|
registrationWrite: {
|
|
5348
5804
|
inspectRegistration: (mapping: any, registration: any) => import("effect/Effect").Effect<{
|
|
@@ -5350,14 +5806,14 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
5350
5806
|
name: string;
|
|
5351
5807
|
displayName: string;
|
|
5352
5808
|
eligible: boolean;
|
|
5353
|
-
}, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
5809
|
+
}, import("@yielded/auth/Passkey").PasskeyUnavailable | import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
5354
5810
|
issueRegistration: (mapping: any, input: {
|
|
5355
5811
|
readonly ceremony: import("@yielded/auth/Passkey").PasskeyCeremony;
|
|
5356
5812
|
readonly policy: import("@yielded/auth/Passkey").PasskeyMethodPolicy;
|
|
5357
5813
|
readonly registration: any;
|
|
5358
5814
|
}) => import("effect/Effect").Effect<{
|
|
5359
5815
|
readonly _tag: "Rejected";
|
|
5360
|
-
readonly ceremony?:
|
|
5816
|
+
readonly ceremony?: never;
|
|
5361
5817
|
} | {
|
|
5362
5818
|
readonly _tag: "Issued";
|
|
5363
5819
|
readonly ceremony: {
|
|
@@ -5497,7 +5953,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
5497
5953
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
5498
5954
|
readonly minimumCredentials: number;
|
|
5499
5955
|
}[]];
|
|
5500
|
-
}
|
|
5956
|
+
};
|
|
5501
5957
|
readonly expiresAtMillis: number;
|
|
5502
5958
|
};
|
|
5503
5959
|
} | {
|
|
@@ -5529,7 +5985,7 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
5529
5985
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
5530
5986
|
readonly minimumCredentials: number;
|
|
5531
5987
|
}[]];
|
|
5532
|
-
}
|
|
5988
|
+
};
|
|
5533
5989
|
readonly expiresAtMillis: number;
|
|
5534
5990
|
};
|
|
5535
5991
|
} | {
|
|
@@ -5561,12 +6017,12 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
5561
6017
|
readonly factors: readonly ("inherence" | "knowledge" | "possession")[];
|
|
5562
6018
|
readonly minimumCredentials: number;
|
|
5563
6019
|
}[]];
|
|
5564
|
-
}
|
|
6020
|
+
};
|
|
5565
6021
|
readonly expiresAtMillis: number;
|
|
5566
6022
|
};
|
|
5567
6023
|
};
|
|
5568
6024
|
};
|
|
5569
|
-
}, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
6025
|
+
}, import("@yielded/auth/Passkey").PasskeyUnavailable | import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
5570
6026
|
completeRegistration: (mapping: any, input: {
|
|
5571
6027
|
readonly claim: import("@yielded/auth/Passkey").PasskeyClaim;
|
|
5572
6028
|
readonly verified: import("@yielded/auth/Passkey").PasskeyRegistrationVerified;
|
|
@@ -5575,14 +6031,14 @@ export declare const makePasskeyKernel: (operations: QueryOperations) => {
|
|
|
5575
6031
|
readonly _tag: "Rejected";
|
|
5576
6032
|
} | {
|
|
5577
6033
|
readonly _tag: "RegistrationAccepted";
|
|
5578
|
-
}, import("@yielded/auth/Passkey").PasskeyUnavailable, CurrentPasskeyTransaction>;
|
|
6034
|
+
}, import("@yielded/auth/Passkey").PasskeyUnavailable | import("effect/PlatformError").PlatformError, import("effect/Crypto").Crypto | CurrentPasskeyTransaction>;
|
|
5579
6035
|
};
|
|
5580
6036
|
writeTarget: {
|
|
5581
6037
|
passkeyManagementPersistenceLayer: <E, R>(services: import("effect/Effect").Effect<PasskeyManagementServices, E, R>) => import("effect/Layer").Layer<import("@yielded/auth/Passkey").PasskeyManagementPersistence, E, Exclude<R, import("effect/Scope").Scope>>;
|
|
5582
|
-
makeTargetPasskeyManagement: <M, RSetup>(source: PasskeyMappingSource<M, RSetup>, configuration: PasskeyTargetConfiguration) => import("effect/Effect").Effect<PasskeyManagementServices, import("@yielded/auth/Passkey").PasskeyConfigurationError | PersistenceMappingError, RSetup | import("@yielded/auth/Hooks").LifecycleHooks | NativeDatabase>;
|
|
5583
|
-
makeTargetPasskeyRegistrationWriter: <M, R, RSetup>(source: PasskeyMappingSource<M, RSetup>, configuration: PasskeyTargetConfiguration) => import("effect/Effect").Effect<PasskeyRegistrationServices<R>, import("@yielded/auth/Passkey").PasskeyConfigurationError | PersistenceMappingError, RSetup | import("@yielded/auth/Hooks").LifecycleHooks | NativeDatabase>;
|
|
5584
|
-
coordinateTargetPasskeyManagement: <M, RSetup, Transaction, A, E, R>(database: any, source: PasskeyMappingSource<M, RSetup>, configuration: PasskeyTargetConfiguration, body: (transaction: Transaction, services: PasskeyManagementServices, append: (statement: import("effect/sql/Statement").Statement<unknown>) => void) => import("effect/Effect").Effect<A, E, R>) => import("effect/Effect").Effect<A, PasskeyCoordinatorError<E>, R | RSetup | import("@yielded/auth/Hooks").LifecycleHooks | NativeDatabase>;
|
|
5585
|
-
coordinateTargetPasskeyRegistrationWriter: <M, Value, RSetup, Transaction, A, E, R>(database: any, source: PasskeyMappingSource<M, RSetup>, configuration: PasskeyTargetConfiguration, body: (transaction: Transaction, services: PasskeyRegistrationServices<Value>, append: (statement: import("effect/sql/Statement").Statement<unknown>) => void) => import("effect/Effect").Effect<A, E, R>) => import("effect/Effect").Effect<A, PasskeyCoordinatorError<E>, R | RSetup | import("@yielded/auth/Hooks").LifecycleHooks | NativeDatabase>;
|
|
6038
|
+
makeTargetPasskeyManagement: <M, RSetup>(source: PasskeyMappingSource<M, RSetup>, configuration: PasskeyTargetConfiguration) => import("effect/Effect").Effect<PasskeyManagementServices, import("@yielded/auth/Passkey").PasskeyConfigurationError | PersistenceMappingError, RSetup | import("effect/Crypto").Crypto | import("@yielded/auth/Hooks").LifecycleHooks | NativeDatabase>;
|
|
6039
|
+
makeTargetPasskeyRegistrationWriter: <M, R, RSetup>(source: PasskeyMappingSource<M, RSetup>, configuration: PasskeyTargetConfiguration) => import("effect/Effect").Effect<PasskeyRegistrationServices<R>, import("@yielded/auth/Passkey").PasskeyConfigurationError | PersistenceMappingError, RSetup | import("effect/Crypto").Crypto | import("@yielded/auth/Hooks").LifecycleHooks | NativeDatabase>;
|
|
6040
|
+
coordinateTargetPasskeyManagement: <M, RSetup, Transaction, A, E, R>(database: any, source: PasskeyMappingSource<M, RSetup>, configuration: PasskeyTargetConfiguration, body: (transaction: Transaction, services: PasskeyManagementServices, append: (statement: import("effect/sql/Statement").Statement<unknown>) => void) => import("effect/Effect").Effect<A, E, R>) => import("effect/Effect").Effect<A, PasskeyCoordinatorError<E>, R | RSetup | import("@yielded/auth/Hooks").LifecycleHooks | NativeDatabase | import("effect/Crypto").Crypto>;
|
|
6041
|
+
coordinateTargetPasskeyRegistrationWriter: <M, Value, RSetup, Transaction, A, E, R>(database: any, source: PasskeyMappingSource<M, RSetup>, configuration: PasskeyTargetConfiguration, body: (transaction: Transaction, services: PasskeyRegistrationServices<Value>, append: (statement: import("effect/sql/Statement").Statement<unknown>) => void) => import("effect/Effect").Effect<A, E, R>) => import("effect/Effect").Effect<A, PasskeyCoordinatorError<E>, R | RSetup | import("@yielded/auth/Hooks").LifecycleHooks | NativeDatabase | import("effect/Crypto").Crypto>;
|
|
5586
6042
|
};
|
|
5587
6043
|
};
|
|
5588
6044
|
//#endregion
|