@quantabit/kyc-sdk 1.0.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.
- package/LICENSE +21 -0
- package/README.md +83 -0
- package/dist/index.cjs +540 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.esm.js +523 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/styles.css +0 -0
- package/package.json +97 -0
- package/types/index.d.ts +39 -0
package/package.json
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@quantabit/kyc-sdk",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "QuantaBit KYC SDK - Identity verification, document upload review, and compliance level management",
|
|
6
|
+
"main": "dist/index.cjs",
|
|
7
|
+
"module": "dist/index.esm.js",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"README.md",
|
|
11
|
+
"LICENSE",
|
|
12
|
+
"types"
|
|
13
|
+
],
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./types/index.d.ts",
|
|
17
|
+
"import": "./dist/index.esm.js",
|
|
18
|
+
"require": "./dist/index.cjs"
|
|
19
|
+
},
|
|
20
|
+
"./styles": "./dist/styles.css"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "rollup -c",
|
|
24
|
+
"dev": "rollup -c -w",
|
|
25
|
+
"clean": "rm -rf dist",
|
|
26
|
+
"prepublishOnly": "npm run build",
|
|
27
|
+
"test": "jest --passWithNoTests"
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"react": ">=17.0.0",
|
|
31
|
+
"react-dom": ">=17.0.0"
|
|
32
|
+
},
|
|
33
|
+
"peerDependenciesMeta": {
|
|
34
|
+
"react": {
|
|
35
|
+
"optional": true
|
|
36
|
+
},
|
|
37
|
+
"react-dom": {
|
|
38
|
+
"optional": true
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@babel/core": "^7.23.0",
|
|
43
|
+
"@babel/preset-react": "^7.23.0",
|
|
44
|
+
"@rollup/plugin-babel": "^6.0.0",
|
|
45
|
+
"@rollup/plugin-commonjs": "^25.0.0",
|
|
46
|
+
"@rollup/plugin-node-resolve": "^15.0.0",
|
|
47
|
+
"rollup": "^4.0.0",
|
|
48
|
+
"rollup-plugin-postcss": "^4.0.0",
|
|
49
|
+
"@babel/preset-env": "^7.23.0",
|
|
50
|
+
"babel-jest": "^29.7.0",
|
|
51
|
+
"identity-obj-proxy": "^3.0.0",
|
|
52
|
+
"jest": "^29.7.0",
|
|
53
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
54
|
+
"react": "^18.2.0",
|
|
55
|
+
"react-dom": "^18.2.0"
|
|
56
|
+
},
|
|
57
|
+
"keywords": [
|
|
58
|
+
"kyc",
|
|
59
|
+
"identity",
|
|
60
|
+
"verification",
|
|
61
|
+
"compliance",
|
|
62
|
+
"quantabit"
|
|
63
|
+
],
|
|
64
|
+
"author": "QuantaBit Team",
|
|
65
|
+
"license": "MIT",
|
|
66
|
+
"publishConfig": {
|
|
67
|
+
"access": "public",
|
|
68
|
+
"registry": "https://registry.npmjs.org"
|
|
69
|
+
},
|
|
70
|
+
"dependencies": {
|
|
71
|
+
"@quantabit/sdk-config": "^1.0.6"
|
|
72
|
+
},
|
|
73
|
+
"repository": {
|
|
74
|
+
"type": "git",
|
|
75
|
+
"url": "https://github.com/quantabit-chain/qbit-sdk.git",
|
|
76
|
+
"directory": "packages/kyc-sdk"
|
|
77
|
+
},
|
|
78
|
+
"homepage": "https://github.com/quantabit-chain/qbit-sdk/tree/main/packages/kyc-sdk#readme",
|
|
79
|
+
"bugs": {
|
|
80
|
+
"url": "https://github.com/quantabit-chain/qbit-sdk/issues"
|
|
81
|
+
},
|
|
82
|
+
"types": "types/index.d.ts",
|
|
83
|
+
"engines": {
|
|
84
|
+
"node": ">=18.0.0"
|
|
85
|
+
},
|
|
86
|
+
"sideEffects": [
|
|
87
|
+
"*.css"
|
|
88
|
+
],
|
|
89
|
+
"qbit": {
|
|
90
|
+
"privacy": {
|
|
91
|
+
"level": "functional",
|
|
92
|
+
"dataCollection": "Feature-related data for personalization. Requires user consent.",
|
|
93
|
+
"gdprCompliant": true,
|
|
94
|
+
"ccpaCompliant": true
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @quantabit/kyc-sdk TypeScript Type Definitions
|
|
3
|
+
*
|
|
4
|
+
* Auto-generated type stubs. Enhance with specific types as the SDK matures.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { FC, ReactNode } from 'react';
|
|
8
|
+
|
|
9
|
+
// ============ Services ============
|
|
10
|
+
|
|
11
|
+
export declare const kycApi: any;
|
|
12
|
+
|
|
13
|
+
export declare class KYCApiClient {
|
|
14
|
+
constructor(config?: Record<string, any>);
|
|
15
|
+
setToken(token: string): void;
|
|
16
|
+
setBaseUrl(url: string): void;
|
|
17
|
+
destroy(): void;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// ============ Types & Enums ============
|
|
21
|
+
|
|
22
|
+
export declare const KYCLevel: any;
|
|
23
|
+
export declare const KYCStatus: Record<string, string>;
|
|
24
|
+
export declare const DocumentType: Record<string, string>;
|
|
25
|
+
export declare const VerificationType: Record<string, string>;
|
|
26
|
+
|
|
27
|
+
// ============ Functions & Utilities ============
|
|
28
|
+
|
|
29
|
+
export declare const messages: Record<string, Record<string, string>>;
|
|
30
|
+
export declare const SUPPORTED_LANGUAGES: string[];
|
|
31
|
+
export declare function setLanguage(lang: string): void;
|
|
32
|
+
export declare function getLanguage(): string;
|
|
33
|
+
export declare function t(key: string, params?: Record<string, any>): string;
|
|
34
|
+
export declare function getStatus(...args: any[]): any;
|
|
35
|
+
export declare function verifyPhone(...args: any[]): any;
|
|
36
|
+
export declare function verifyEmail(...args: any[]): any;
|
|
37
|
+
export declare function uploadDocument(...args: any[]): any;
|
|
38
|
+
export declare function submitDocumentVerification(...args: any[]): any;
|
|
39
|
+
|