@bloque/sdk-compliance 0.0.23 → 0.0.24
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { HttpClient } from '@bloque/sdk-core';
|
|
2
2
|
import { BaseClient } from '@bloque/sdk-core';
|
|
3
|
-
import { KycClient } from './kyc/client';
|
|
3
|
+
import { KycClient } from './kyc/kyc-client';
|
|
4
4
|
export declare class ComplianceClient extends BaseClient {
|
|
5
5
|
readonly kyc: KycClient;
|
|
6
6
|
constructor(httpClient: HttpClient);
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './client';
|
|
2
|
-
export * from './kyc/client';
|
|
1
|
+
export * from './compliance-client';
|
|
2
|
+
export * from './kyc/kyc-client';
|
|
3
3
|
export * from './kyc/types';
|
|
@@ -1,10 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @internal
|
|
3
|
+
* Wire types for Compliance API communication (snake_case format)
|
|
4
|
+
* These types represent the raw API request/response format
|
|
5
|
+
* and should not be used directly by SDK consumers.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @internal
|
|
9
|
+
* Accomplice type for compliance verification
|
|
10
|
+
*/
|
|
1
11
|
export type AccompliceType = 'person' | 'company';
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
* Start KYC verification request body
|
|
15
|
+
*/
|
|
2
16
|
export interface StartKycVerificationRequest {
|
|
3
17
|
urn: string;
|
|
4
18
|
type: 'kyc' | 'kyb';
|
|
5
19
|
accompliceType: AccompliceType;
|
|
6
20
|
webhookUrl?: string;
|
|
7
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* @internal
|
|
24
|
+
* Start KYC verification response
|
|
25
|
+
*/
|
|
8
26
|
export interface StartKycVerificationResponse {
|
|
9
27
|
url: string;
|
|
10
28
|
type: 'kyc' | 'kyb';
|
|
@@ -12,6 +30,10 @@ export interface StartKycVerificationResponse {
|
|
|
12
30
|
provider: 'AMLBOT';
|
|
13
31
|
status: 'awaiting_compliance_verification' | 'approved' | 'rejected';
|
|
14
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
* Get KYC verification response
|
|
36
|
+
*/
|
|
15
37
|
export interface GetKycVerificationResponse {
|
|
16
38
|
type: 'kyc' | 'kyb';
|
|
17
39
|
level: 'basic';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bloque/sdk-compliance",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.24",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bloque",
|
|
@@ -34,6 +34,6 @@
|
|
|
34
34
|
"node": ">=22"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@bloque/sdk-core": "0.0.
|
|
37
|
+
"@bloque/sdk-core": "0.0.24"
|
|
38
38
|
}
|
|
39
39
|
}
|
|
File without changes
|