@bloque/sdk 0.2.2 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bloque.d.ts CHANGED
@@ -4,6 +4,15 @@ import { type BloqueSDKConfig } from '@bloque/sdk-core';
4
4
  import { type CreateIdentityParams, IdentityClient, type IdentityMe } from '@bloque/sdk-identity';
5
5
  import { OrgsClient } from '@bloque/sdk-orgs';
6
6
  import { SwapClient } from '@bloque/sdk-swap';
7
+ export interface BloqueClients {
8
+ accounts: AccountsClient;
9
+ compliance: ComplianceClient;
10
+ identity: IdentityClient;
11
+ orgs: OrgsClient;
12
+ swap: SwapClient;
13
+ urn: string | undefined;
14
+ readonly accessToken: string;
15
+ }
7
16
  export declare class SDK {
8
17
  private readonly httpClient;
9
18
  private readonly identity;
@@ -25,29 +34,13 @@ export declare class SDK {
25
34
  attempts_remaining: number;
26
35
  };
27
36
  }>;
28
- authenticate(): Promise<{
29
- accounts: AccountsClient;
30
- compliance: ComplianceClient;
31
- identity: IdentityClient;
32
- orgs: OrgsClient;
33
- swap: SwapClient;
34
- urn: string | undefined;
35
- readonly accessToken: string;
36
- }>;
37
+ authenticate(): Promise<BloqueClients>;
37
38
  me(): Promise<IdentityMe>;
38
- register(alias: string, params: CreateIdentityParams): Promise<{
39
- accounts: AccountsClient;
40
- compliance: ComplianceClient;
41
- identity: IdentityClient;
42
- orgs: OrgsClient;
43
- swap: SwapClient;
44
- urn: string | undefined;
45
- readonly accessToken: string;
46
- }>;
47
- connect(): Promise<ReturnType<SDK['buildClients']>>;
39
+ register(alias: string, params: CreateIdentityParams): Promise<BloqueClients>;
40
+ connect(): Promise<BloqueClients>;
48
41
  connect(options: {
49
42
  scopes?: string[];
50
- }): Promise<ReturnType<SDK['buildClients']>>;
51
- connect(alias: string): Promise<ReturnType<SDK['buildClients']>>;
52
- connect(origin: string, alias: string, code: string): Promise<ReturnType<SDK['buildClients']>>;
43
+ }): Promise<BloqueClients>;
44
+ connect(alias: string): Promise<BloqueClients>;
45
+ connect(origin: string, alias: string, code: string): Promise<BloqueClients>;
53
46
  }
package/dist/index.d.ts CHANGED
@@ -7,4 +7,5 @@ export type * from '@bloque/sdk-identity';
7
7
  export type * from '@bloque/sdk-orgs';
8
8
  export type * from '@bloque/sdk-swap';
9
9
  export type { BrebClient as SwapBrebClient, ExternalUsBankSwapClient, } from '@bloque/sdk-swap';
10
+ export type { BloqueClients } from './bloque';
10
11
  export { SDK } from './bloque';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bloque/sdk",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "Official Bloque SDK",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -68,11 +68,11 @@
68
68
  "node": ">=22"
69
69
  },
70
70
  "dependencies": {
71
- "@bloque/sdk-accounts": "0.2.2",
72
- "@bloque/sdk-compliance": "0.2.2",
73
- "@bloque/sdk-core": "0.2.2",
74
- "@bloque/sdk-identity": "0.2.2",
75
- "@bloque/sdk-orgs": "0.2.2",
76
- "@bloque/sdk-swap": "0.2.2"
71
+ "@bloque/sdk-accounts": "0.2.4",
72
+ "@bloque/sdk-compliance": "0.2.4",
73
+ "@bloque/sdk-core": "0.2.4",
74
+ "@bloque/sdk-identity": "0.2.4",
75
+ "@bloque/sdk-orgs": "0.2.4",
76
+ "@bloque/sdk-swap": "0.2.4"
77
77
  }
78
78
  }