@quilibrium/quilibrium-js-sdk-channels 2.1.0

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.
@@ -0,0 +1,69 @@
1
+ export declare const getStoredPasskeys: () => Promise<StoredPasskey[]>;
2
+ export declare function encrypt(data: any, keys: any): Promise<{
3
+ iv: Uint8Array<ArrayBuffer>;
4
+ ciphertext: ArrayBuffer;
5
+ }>;
6
+ export declare function decrypt(data: any, iv: any, keys: any): Promise<Uint8Array<ArrayBuffer>>;
7
+ export declare function createKeyFromBuffer(buffer: ArrayBuffer): Promise<CryptoKey>;
8
+ export declare function encryptDataSaveKey(id: number, data: Buffer): Promise<void>;
9
+ export declare function loadKeyDecryptData(id: number): Promise<Uint8Array<ArrayBuffer>>;
10
+ export declare const updateStoredPasskey: (credentialId: string, storedPasskey: StoredPasskey) => Promise<boolean>;
11
+ export declare const register: (fqAppPrefix: string, account: string) => Promise<{
12
+ id: string;
13
+ rawId: string;
14
+ }>;
15
+ export declare const completeRegistration: (fqAppPrefix: string, request: PasskeyAuthenticationRequestLargeBlob) => Promise<{
16
+ id: string;
17
+ rawId: string;
18
+ response: {
19
+ authenticatorData: string;
20
+ clientDataJSON: string;
21
+ signature: string;
22
+ userHandle: string;
23
+ };
24
+ }>;
25
+ export declare const authenticate: (fqAppPrefix: string, request: PasskeyAuthenticationRequest) => Promise<{
26
+ id: string;
27
+ rawId: string;
28
+ response: {
29
+ authenticatorData: string;
30
+ clientDataJSON: string;
31
+ signature: string;
32
+ userHandle: string;
33
+ };
34
+ largeBlob: string;
35
+ }>;
36
+ export declare const isPasskeysSupported: () => Promise<"PRF" | "LargeBlob" | null>;
37
+ export interface PasskeyRegistrationResult {
38
+ id: string;
39
+ }
40
+ export interface PasskeyAuthenticationRequestLargeBlob {
41
+ credentialId: string;
42
+ address: string;
43
+ publicKey: string;
44
+ largeBlob: string;
45
+ displayName?: string;
46
+ }
47
+ export interface PasskeyAuthenticationRequest {
48
+ credentialId: string;
49
+ }
50
+ export interface PasskeyAuthenticationResult {
51
+ id: string;
52
+ rawId: string;
53
+ type?: string;
54
+ response: {
55
+ authenticatorData: string;
56
+ clientDataJSON: string;
57
+ signature: string;
58
+ userHandle: string;
59
+ };
60
+ largeBlob?: string;
61
+ }
62
+ export interface StoredPasskey {
63
+ credentialId: string;
64
+ address: string;
65
+ publicKey: string;
66
+ displayName?: string;
67
+ pfpUrl?: string;
68
+ completedOnboarding: boolean;
69
+ }
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@quilibrium/quilibrium-js-sdk-channels",
3
+ "version": "2.1.0",
4
+ "license": "MIT",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "module": "dist/index.esm.js",
8
+ "types": "dist/index.d.ts",
9
+ "scripts": {
10
+ "build": "rollup -c",
11
+ "dev": "rollup -c -w",
12
+ "clean": "rimraf dist"
13
+ },
14
+ "files": [
15
+ "dist"
16
+ ],
17
+ "exports": {
18
+ ".": {
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.esm.js",
21
+ "require": "./dist/index.js"
22
+ }
23
+ },
24
+ "dependencies": {
25
+ "base58-js": "^2.0.0",
26
+ "buffer": "^6.0.3",
27
+ "multiformats": "^13.3.1",
28
+ "react": "^18.0.0",
29
+ "react-dom": "^18.0.0",
30
+ "react-dropzone": "^14.3.5"
31
+ },
32
+ "devDependencies": {
33
+ "@rollup/plugin-commonjs": "^28.0.2",
34
+ "@rollup/plugin-node-resolve": "^16.0.0",
35
+ "@rollup/plugin-typescript": "^12.1.2",
36
+ "@rollup/plugin-wasm": "^6.2.2",
37
+ "@types/react": "^19.0.7",
38
+ "@types/react-dom": "^19.0.3",
39
+ "rollup": "^4.30.1",
40
+ "rollup-plugin-dts": "^6.1.1",
41
+ "tailwindcss": "^3.4.17",
42
+ "typescript": "^5.7.3"
43
+ }
44
+ }