@bitgen/sdk 0.1.6 → 1.0.3
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/CHANGELOG.md +55 -2
- package/README.md +27 -106
- package/dist/cjs/client.d.ts +20 -8
- package/dist/cjs/client.d.ts.map +1 -1
- package/dist/cjs/client.js +33 -12
- package/dist/cjs/client.js.map +1 -1
- package/dist/cjs/constants.d.ts +256 -0
- package/dist/cjs/constants.d.ts.map +1 -0
- package/dist/cjs/constants.js +214 -0
- package/dist/cjs/constants.js.map +1 -0
- package/dist/cjs/error.d.ts +17 -10
- package/dist/cjs/error.d.ts.map +1 -1
- package/dist/cjs/error.js +25 -7
- package/dist/cjs/error.js.map +1 -1
- package/dist/cjs/http.d.ts +13 -8
- package/dist/cjs/http.d.ts.map +1 -1
- package/dist/cjs/http.js +135 -44
- package/dist/cjs/http.js.map +1 -1
- package/dist/cjs/index.d.ts +14 -1
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +30 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/resources/apikeys.d.ts +18 -0
- package/dist/cjs/resources/apikeys.d.ts.map +1 -0
- package/dist/cjs/resources/apikeys.js +31 -0
- package/dist/cjs/resources/apikeys.js.map +1 -0
- package/dist/cjs/resources/asset.d.ts +17 -5
- package/dist/cjs/resources/asset.d.ts.map +1 -1
- package/dist/cjs/resources/asset.js +17 -6
- package/dist/cjs/resources/asset.js.map +1 -1
- package/dist/cjs/resources/bank.d.ts +11 -6
- package/dist/cjs/resources/bank.d.ts.map +1 -1
- package/dist/cjs/resources/bank.js +17 -9
- package/dist/cjs/resources/bank.js.map +1 -1
- package/dist/cjs/resources/core.d.ts +12 -0
- package/dist/cjs/resources/core.d.ts.map +1 -0
- package/dist/cjs/resources/core.js +22 -0
- package/dist/cjs/resources/core.js.map +1 -0
- package/dist/cjs/resources/custody.d.ts +27 -0
- package/dist/cjs/resources/custody.d.ts.map +1 -0
- package/dist/cjs/resources/custody.js +38 -0
- package/dist/cjs/resources/custody.js.map +1 -0
- package/dist/cjs/resources/customer.d.ts +20 -0
- package/dist/cjs/resources/customer.d.ts.map +1 -0
- package/dist/cjs/resources/customer.js +38 -0
- package/dist/cjs/resources/customer.js.map +1 -0
- package/dist/cjs/resources/staking.d.ts +32 -0
- package/dist/cjs/resources/staking.d.ts.map +1 -0
- package/dist/cjs/resources/staking.js +69 -0
- package/dist/cjs/resources/staking.js.map +1 -0
- package/dist/cjs/resources/trading.d.ts +24 -0
- package/dist/cjs/resources/trading.d.ts.map +1 -0
- package/dist/cjs/resources/trading.js +41 -0
- package/dist/cjs/resources/trading.js.map +1 -0
- package/dist/cjs/resources/transaction.d.ts +6 -9
- package/dist/cjs/resources/transaction.d.ts.map +1 -1
- package/dist/cjs/resources/transaction.js +10 -15
- package/dist/cjs/resources/transaction.js.map +1 -1
- package/dist/cjs/resources/webhooks.d.ts +46 -0
- package/dist/cjs/resources/webhooks.d.ts.map +1 -0
- package/dist/cjs/resources/webhooks.js +142 -0
- package/dist/cjs/resources/webhooks.js.map +1 -0
- package/dist/cjs/types/apikeys.d.ts +43 -0
- package/dist/cjs/types/apikeys.d.ts.map +1 -0
- package/dist/cjs/types/apikeys.js +3 -0
- package/dist/cjs/types/apikeys.js.map +1 -0
- package/dist/cjs/types/asset.d.ts +57 -0
- package/dist/cjs/types/asset.d.ts.map +1 -0
- package/dist/cjs/types/asset.js +3 -0
- package/dist/cjs/types/asset.js.map +1 -0
- package/dist/cjs/types/bank.d.ts +58 -0
- package/dist/cjs/types/bank.d.ts.map +1 -0
- package/dist/cjs/types/bank.js +3 -0
- package/dist/cjs/types/bank.js.map +1 -0
- package/dist/cjs/types/core.d.ts +32 -0
- package/dist/cjs/types/core.d.ts.map +1 -0
- package/dist/cjs/types/core.js +3 -0
- package/dist/cjs/types/core.js.map +1 -0
- package/dist/cjs/types/custody.d.ts +50 -0
- package/dist/cjs/types/custody.d.ts.map +1 -0
- package/dist/cjs/types/custody.js +3 -0
- package/dist/cjs/types/custody.js.map +1 -0
- package/dist/cjs/types/customer.d.ts +190 -0
- package/dist/cjs/types/customer.d.ts.map +1 -0
- package/dist/cjs/types/customer.js +3 -0
- package/dist/cjs/types/customer.js.map +1 -0
- package/dist/cjs/types/index.d.ts +78 -194
- package/dist/cjs/types/index.d.ts.map +1 -1
- package/dist/cjs/types/index.js +0 -1
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/types/staking.d.ts +88 -0
- package/dist/cjs/types/staking.d.ts.map +1 -0
- package/dist/cjs/types/staking.js +3 -0
- package/dist/cjs/types/staking.js.map +1 -0
- package/dist/cjs/types/trading.d.ts +51 -0
- package/dist/cjs/types/trading.d.ts.map +1 -0
- package/dist/cjs/types/trading.js +3 -0
- package/dist/cjs/types/trading.js.map +1 -0
- package/dist/cjs/types/transaction.d.ts +61 -0
- package/dist/cjs/types/transaction.d.ts.map +1 -0
- package/dist/cjs/types/transaction.js +3 -0
- package/dist/cjs/types/transaction.js.map +1 -0
- package/dist/cjs/types/webhooks.d.ts +55 -0
- package/dist/cjs/types/webhooks.d.ts.map +1 -0
- package/dist/cjs/types/webhooks.js +3 -0
- package/dist/cjs/types/webhooks.js.map +1 -0
- package/dist/cjs/utils.d.ts +21 -2
- package/dist/cjs/utils.d.ts.map +1 -1
- package/dist/cjs/utils.js +67 -4
- package/dist/cjs/utils.js.map +1 -1
- package/dist/cjs/version.d.ts +2 -0
- package/dist/cjs/version.d.ts.map +1 -0
- package/dist/cjs/version.js +6 -0
- package/dist/cjs/version.js.map +1 -0
- package/dist/esm/client.d.ts +20 -8
- package/dist/esm/client.d.ts.map +1 -1
- package/dist/esm/client.js +33 -12
- package/dist/esm/client.js.map +1 -1
- package/dist/esm/constants.d.ts +256 -0
- package/dist/esm/constants.d.ts.map +1 -0
- package/dist/esm/constants.js +211 -0
- package/dist/esm/constants.js.map +1 -0
- package/dist/esm/error.d.ts +17 -10
- package/dist/esm/error.d.ts.map +1 -1
- package/dist/esm/error.js +24 -6
- package/dist/esm/error.js.map +1 -1
- package/dist/esm/http.d.ts +13 -8
- package/dist/esm/http.d.ts.map +1 -1
- package/dist/esm/http.js +136 -45
- package/dist/esm/http.js.map +1 -1
- package/dist/esm/index.d.ts +14 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +6 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/resources/apikeys.d.ts +18 -0
- package/dist/esm/resources/apikeys.d.ts.map +1 -0
- package/dist/esm/resources/apikeys.js +27 -0
- package/dist/esm/resources/apikeys.js.map +1 -0
- package/dist/esm/resources/asset.d.ts +17 -5
- package/dist/esm/resources/asset.d.ts.map +1 -1
- package/dist/esm/resources/asset.js +17 -6
- package/dist/esm/resources/asset.js.map +1 -1
- package/dist/esm/resources/bank.d.ts +11 -6
- package/dist/esm/resources/bank.d.ts.map +1 -1
- package/dist/esm/resources/bank.js +18 -10
- package/dist/esm/resources/bank.js.map +1 -1
- package/dist/esm/resources/core.d.ts +12 -0
- package/dist/esm/resources/core.d.ts.map +1 -0
- package/dist/esm/resources/core.js +18 -0
- package/dist/esm/resources/core.js.map +1 -0
- package/dist/esm/resources/custody.d.ts +27 -0
- package/dist/esm/resources/custody.d.ts.map +1 -0
- package/dist/esm/resources/custody.js +34 -0
- package/dist/esm/resources/custody.js.map +1 -0
- package/dist/esm/resources/customer.d.ts +20 -0
- package/dist/esm/resources/customer.d.ts.map +1 -0
- package/dist/esm/resources/customer.js +34 -0
- package/dist/esm/resources/customer.js.map +1 -0
- package/dist/esm/resources/staking.d.ts +32 -0
- package/dist/esm/resources/staking.d.ts.map +1 -0
- package/dist/esm/resources/staking.js +65 -0
- package/dist/esm/resources/staking.js.map +1 -0
- package/dist/esm/resources/trading.d.ts +24 -0
- package/dist/esm/resources/trading.d.ts.map +1 -0
- package/dist/esm/resources/trading.js +37 -0
- package/dist/esm/resources/trading.js.map +1 -0
- package/dist/esm/resources/transaction.d.ts +6 -9
- package/dist/esm/resources/transaction.d.ts.map +1 -1
- package/dist/esm/resources/transaction.js +11 -16
- package/dist/esm/resources/transaction.js.map +1 -1
- package/dist/esm/resources/webhooks.d.ts +46 -0
- package/dist/esm/resources/webhooks.d.ts.map +1 -0
- package/dist/esm/resources/webhooks.js +138 -0
- package/dist/esm/resources/webhooks.js.map +1 -0
- package/dist/esm/types/apikeys.d.ts +43 -0
- package/dist/esm/types/apikeys.d.ts.map +1 -0
- package/dist/esm/types/apikeys.js +2 -0
- package/dist/esm/types/apikeys.js.map +1 -0
- package/dist/esm/types/asset.d.ts +57 -0
- package/dist/esm/types/asset.d.ts.map +1 -0
- package/dist/esm/types/asset.js +2 -0
- package/dist/esm/types/asset.js.map +1 -0
- package/dist/esm/types/bank.d.ts +58 -0
- package/dist/esm/types/bank.d.ts.map +1 -0
- package/dist/esm/types/bank.js +2 -0
- package/dist/esm/types/bank.js.map +1 -0
- package/dist/esm/types/core.d.ts +32 -0
- package/dist/esm/types/core.d.ts.map +1 -0
- package/dist/esm/types/core.js +2 -0
- package/dist/esm/types/core.js.map +1 -0
- package/dist/esm/types/custody.d.ts +50 -0
- package/dist/esm/types/custody.d.ts.map +1 -0
- package/dist/esm/types/custody.js +2 -0
- package/dist/esm/types/custody.js.map +1 -0
- package/dist/esm/types/customer.d.ts +190 -0
- package/dist/esm/types/customer.d.ts.map +1 -0
- package/dist/esm/types/customer.js +2 -0
- package/dist/esm/types/customer.js.map +1 -0
- package/dist/esm/types/index.d.ts +78 -194
- package/dist/esm/types/index.d.ts.map +1 -1
- package/dist/esm/types/index.js +0 -1
- package/dist/esm/types/index.js.map +1 -1
- package/dist/esm/types/staking.d.ts +88 -0
- package/dist/esm/types/staking.d.ts.map +1 -0
- package/dist/esm/types/staking.js +2 -0
- package/dist/esm/types/staking.js.map +1 -0
- package/dist/esm/types/trading.d.ts +51 -0
- package/dist/esm/types/trading.d.ts.map +1 -0
- package/dist/esm/types/trading.js +2 -0
- package/dist/esm/types/trading.js.map +1 -0
- package/dist/esm/types/transaction.d.ts +61 -0
- package/dist/esm/types/transaction.d.ts.map +1 -0
- package/dist/esm/types/transaction.js +2 -0
- package/dist/esm/types/transaction.js.map +1 -0
- package/dist/esm/types/webhooks.d.ts +55 -0
- package/dist/esm/types/webhooks.d.ts.map +1 -0
- package/dist/esm/types/webhooks.js +2 -0
- package/dist/esm/types/webhooks.js.map +1 -0
- package/dist/esm/utils.d.ts +21 -2
- package/dist/esm/utils.d.ts.map +1 -1
- package/dist/esm/utils.js +62 -4
- package/dist/esm/utils.js.map +1 -1
- package/dist/esm/version.d.ts +2 -0
- package/dist/esm/version.d.ts.map +1 -0
- package/dist/esm/version.js +3 -0
- package/dist/esm/version.js.map +1 -0
- package/package.json +29 -12
- package/readme/concepts.md +104 -0
- package/readme/configuration.md +72 -0
- package/readme/errors.md +67 -0
- package/readme/installation.md +43 -0
- package/readme/quick-start.md +87 -0
- package/readme/resource/apikeys.md +103 -0
- package/readme/resource/asset.md +121 -0
- package/readme/resource/bank.md +156 -0
- package/readme/resource/core.md +91 -0
- package/readme/resource/custody.md +166 -0
- package/readme/resource/customer.md +208 -0
- package/readme/resource/staking.md +277 -0
- package/readme/resource/trading.md +166 -0
- package/readme/resource/transaction.md +106 -0
- package/readme/resource/webhooks.md +307 -0
- package/src/client.ts +46 -0
- package/src/constants.ts +281 -0
- package/src/error.ts +36 -0
- package/src/http.ts +201 -0
- package/src/index.ts +111 -0
- package/src/resources/apikeys.ts +30 -0
- package/src/resources/asset.ts +28 -0
- package/src/resources/bank.ts +39 -0
- package/src/resources/core.ts +19 -0
- package/src/resources/custody.ts +37 -0
- package/src/resources/customer.ts +46 -0
- package/src/resources/staking.ts +88 -0
- package/src/resources/trading.ts +41 -0
- package/src/resources/transaction.ts +20 -0
- package/src/resources/webhooks.ts +169 -0
- package/src/types/apikeys.ts +35 -0
- package/src/types/asset.ts +59 -0
- package/src/types/bank.ts +60 -0
- package/src/types/core.ts +32 -0
- package/src/types/custody.ts +40 -0
- package/src/types/customer.ts +189 -0
- package/src/types/index.ts +215 -0
- package/src/types/staking.ts +87 -0
- package/src/types/trading.ts +56 -0
- package/src/types/transaction.ts +62 -0
- package/src/types/webhooks.ts +60 -0
- package/src/utils.ts +74 -0
- package/src/version.ts +2 -0
- package/dist/cjs/resources/order.d.ts +0 -17
- package/dist/cjs/resources/order.d.ts.map +0 -1
- package/dist/cjs/resources/order.js +0 -30
- package/dist/cjs/resources/order.js.map +0 -1
- package/dist/cjs/resources/stats.d.ts +0 -11
- package/dist/cjs/resources/stats.d.ts.map +0 -1
- package/dist/cjs/resources/stats.js +0 -18
- package/dist/cjs/resources/stats.js.map +0 -1
- package/dist/cjs/resources/user.d.ts +0 -22
- package/dist/cjs/resources/user.d.ts.map +0 -1
- package/dist/cjs/resources/user.js +0 -37
- package/dist/cjs/resources/user.js.map +0 -1
- package/dist/cjs/resources/wallet.d.ts +0 -11
- package/dist/cjs/resources/wallet.d.ts.map +0 -1
- package/dist/cjs/resources/wallet.js +0 -19
- package/dist/cjs/resources/wallet.js.map +0 -1
- package/dist/esm/resources/order.d.ts +0 -17
- package/dist/esm/resources/order.d.ts.map +0 -1
- package/dist/esm/resources/order.js +0 -26
- package/dist/esm/resources/order.js.map +0 -1
- package/dist/esm/resources/stats.d.ts +0 -11
- package/dist/esm/resources/stats.d.ts.map +0 -1
- package/dist/esm/resources/stats.js +0 -14
- package/dist/esm/resources/stats.js.map +0 -1
- package/dist/esm/resources/user.d.ts +0 -22
- package/dist/esm/resources/user.d.ts.map +0 -1
- package/dist/esm/resources/user.js +0 -33
- package/dist/esm/resources/user.js.map +0 -1
- package/dist/esm/resources/wallet.d.ts +0 -11
- package/dist/esm/resources/wallet.d.ts.map +0 -1
- package/dist/esm/resources/wallet.js +0 -15
- package/dist/esm/resources/wallet.js.map +0 -1
- package/dist/types/client.d.ts +0 -19
- package/dist/types/client.d.ts.map +0 -1
- package/dist/types/error.d.ts +0 -15
- package/dist/types/error.d.ts.map +0 -1
- package/dist/types/http.d.ts +0 -21
- package/dist/types/http.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -4
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/resources/asset.d.ts +0 -11
- package/dist/types/resources/asset.d.ts.map +0 -1
- package/dist/types/resources/bank.d.ts +0 -13
- package/dist/types/resources/bank.d.ts.map +0 -1
- package/dist/types/resources/order.d.ts +0 -17
- package/dist/types/resources/order.d.ts.map +0 -1
- package/dist/types/resources/stats.d.ts +0 -11
- package/dist/types/resources/stats.d.ts.map +0 -1
- package/dist/types/resources/transaction.d.ts +0 -15
- package/dist/types/resources/transaction.d.ts.map +0 -1
- package/dist/types/resources/user.d.ts +0 -22
- package/dist/types/resources/user.d.ts.map +0 -1
- package/dist/types/resources/wallet.d.ts +0 -11
- package/dist/types/resources/wallet.d.ts.map +0 -1
- package/dist/types/types/index.d.ts +0 -213
- package/dist/types/types/index.d.ts.map +0 -1
- package/dist/types/utils.d.ts +0 -7
- package/dist/types/utils.d.ts.map +0 -1
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import type { Amount, AssetInput, AssetRef, History, OrganizationSummary, UserRef, UserSummary } from './index.js';
|
|
2
|
+
export type { StakingMovementState, StakingMovementKind, StakingPositionState } from '../constants.js';
|
|
3
|
+
import type { StakingMovementState, StakingMovementKind, StakingPositionState } from '../constants.js';
|
|
4
|
+
/** The position carried by a movement — its `uuid` is what `rewards` / `unstake` take */
|
|
5
|
+
export interface StakingPosition {
|
|
6
|
+
uuid: string;
|
|
7
|
+
state: StakingPositionState;
|
|
8
|
+
/** Net capital placed */
|
|
9
|
+
amount: string;
|
|
10
|
+
error: string | null;
|
|
11
|
+
data: {
|
|
12
|
+
rewards?: string;
|
|
13
|
+
lastRewardAt?: number;
|
|
14
|
+
};
|
|
15
|
+
createdAt: number;
|
|
16
|
+
updatedAt: number;
|
|
17
|
+
/** The provider */
|
|
18
|
+
core: CoreRef;
|
|
19
|
+
}
|
|
20
|
+
/** The connector of a staking position — `{ uuid, name, label }` */
|
|
21
|
+
export interface CoreRef {
|
|
22
|
+
uuid: string;
|
|
23
|
+
/** Connector identifier (`figment_sol`) */
|
|
24
|
+
name: string;
|
|
25
|
+
label: string;
|
|
26
|
+
}
|
|
27
|
+
/** A staking request — its `uuid` is what `stake` returns and `get` / `list` / `movements` handle */
|
|
28
|
+
export interface StakingMovement {
|
|
29
|
+
uuid: string;
|
|
30
|
+
state: StakingMovementState;
|
|
31
|
+
kind: StakingMovementKind;
|
|
32
|
+
provider: string;
|
|
33
|
+
amount: string;
|
|
34
|
+
createdAt: number;
|
|
35
|
+
updatedAt: number;
|
|
36
|
+
staking: StakingPosition;
|
|
37
|
+
/** The customer */
|
|
38
|
+
owner: UserSummary;
|
|
39
|
+
asset: AssetRef;
|
|
40
|
+
/** `hub` is never given here */
|
|
41
|
+
organization: OrganizationSummary | null;
|
|
42
|
+
}
|
|
43
|
+
export interface StakingOperation {
|
|
44
|
+
txId: string;
|
|
45
|
+
movement: string | null;
|
|
46
|
+
asset: string;
|
|
47
|
+
kind: string;
|
|
48
|
+
amount: string;
|
|
49
|
+
price: number;
|
|
50
|
+
value: number;
|
|
51
|
+
/** Known events, but the API may send others: any string is accepted */
|
|
52
|
+
event: 'created' | 'pending' | 'validated' | 'failed' | 'reward' | 'claimed' | 'unstake' | 'closed' | (string & {});
|
|
53
|
+
provider: string;
|
|
54
|
+
date: number;
|
|
55
|
+
}
|
|
56
|
+
export interface StakingPortfolio {
|
|
57
|
+
uuid: string;
|
|
58
|
+
/** EUR */
|
|
59
|
+
balances: {
|
|
60
|
+
capital: number;
|
|
61
|
+
revenues: number;
|
|
62
|
+
};
|
|
63
|
+
histories: {
|
|
64
|
+
capital: History;
|
|
65
|
+
revenues: History;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
export interface StakeParams {
|
|
69
|
+
/** uuid or ISO code (`Asset.SOL`), or an `Asset` / `AssetRef` model — its uuid is sent */
|
|
70
|
+
asset: AssetInput;
|
|
71
|
+
/** Crypto quantity — prefer a string */
|
|
72
|
+
amount: Amount;
|
|
73
|
+
/** `uuid` or `name` of a `STAKING` core of the organization (see `providers()`) */
|
|
74
|
+
provider: string;
|
|
75
|
+
}
|
|
76
|
+
export interface StakingListParams {
|
|
77
|
+
/** Customer (unknown → `404 unknown_user`) */
|
|
78
|
+
user?: UserRef;
|
|
79
|
+
/** Movement kind — any other value = all */
|
|
80
|
+
direction?: StakingMovementKind;
|
|
81
|
+
offset?: number;
|
|
82
|
+
limit?: number;
|
|
83
|
+
}
|
|
84
|
+
/** `amount` absent = everything (a full exit ignores the minimums) */
|
|
85
|
+
export interface StakingAmountParams {
|
|
86
|
+
amount?: Amount;
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=staking.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"staking.d.ts","sourceRoot":"","sources":["../../../src/types/staking.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,mBAAmB,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAElH,YAAY,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AACtG,OAAO,KAAK,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAEtG,yFAAyF;AACzF,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,oBAAoB,CAAA;IAC3B,yBAAyB;IACzB,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,IAAI,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IACjD,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,mBAAmB;IACn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KAAE,CAAA;IAC/C,SAAS,EAAE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAA;CACnD;AAED,MAAM,WAAW,WAAW;IAC1B,0FAA0F;IAC1F,KAAK,EAAE,UAAU,CAAA;IACjB,wCAAwC;IACxC,MAAM,EAAE,MAAM,CAAA;IACd,mFAAmF;IACnF,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,iBAAiB;IAChC,8CAA8C;IAC9C,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,4CAA4C;IAC5C,SAAS,CAAC,EAAE,mBAAmB,CAAA;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,sEAAsE;AACtE,MAAM,WAAW,mBAAmB;IAClC,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"staking.js","sourceRoot":"","sources":["../../../src/types/staking.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { Amount, AssetInput, AssetRef, UserRef } from './index.js';
|
|
2
|
+
export type { OrderState, OrderSide, TradingDirection } from '../constants.js';
|
|
3
|
+
import type { OrderState, OrderSide, TradingDirection } from '../constants.js';
|
|
4
|
+
export interface Order {
|
|
5
|
+
uuid: string;
|
|
6
|
+
state: OrderState;
|
|
7
|
+
side: OrderSide;
|
|
8
|
+
/** BUY: EUR (`"25.00"`) — SELL: crypto quantity */
|
|
9
|
+
amount: string;
|
|
10
|
+
reference: string | null;
|
|
11
|
+
/** BUY: crypto quantity received — SELL: EUR credited */
|
|
12
|
+
received: number | null;
|
|
13
|
+
/** EUR price of the token */
|
|
14
|
+
executedPrice: number | null;
|
|
15
|
+
fee: number | null;
|
|
16
|
+
completedAt: number | null;
|
|
17
|
+
createdAt: number;
|
|
18
|
+
user: OrderUser;
|
|
19
|
+
organization: OrderOrganization;
|
|
20
|
+
asset: AssetRef;
|
|
21
|
+
}
|
|
22
|
+
/** The customer of an order — `{ uuid, login }`; carries the customer's uuid: accepted wherever a customer is expected */
|
|
23
|
+
export interface OrderUser {
|
|
24
|
+
uuid: string;
|
|
25
|
+
/** Email */
|
|
26
|
+
login: string;
|
|
27
|
+
}
|
|
28
|
+
/** The organization of an order — `{ uuid, name }` */
|
|
29
|
+
export interface OrderOrganization {
|
|
30
|
+
uuid: string;
|
|
31
|
+
name: string;
|
|
32
|
+
}
|
|
33
|
+
export interface TradingOrderParams {
|
|
34
|
+
/** uuid or ISO code (`Asset.ETH`), or an `Asset` / `AssetRef` model — must be `AVAILABLE` */
|
|
35
|
+
asset: AssetInput;
|
|
36
|
+
/** BUY: EUR, 2 decimals max, ≥ MIN_BUY_CRYPTO — SELL: crypto quantity, ≤ the asset's decimals, EUR value ≥ MIN_SELL_CRYPTO */
|
|
37
|
+
amount: Amount;
|
|
38
|
+
/** Idempotency per (user, side, reference): replaying returns the existing order */
|
|
39
|
+
reference?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface TradingListParams {
|
|
42
|
+
/** Customer uuid (unknown → `404 unknown_user`) */
|
|
43
|
+
user?: UserRef;
|
|
44
|
+
/** `TradingDirection.BUY` or `TradingDirection.SELL` — absent = both sides */
|
|
45
|
+
direction?: TradingDirection;
|
|
46
|
+
/** Only this asset: ISO code, uuid, or an `Asset` / `AssetRef` model */
|
|
47
|
+
asset?: AssetInput;
|
|
48
|
+
offset?: number;
|
|
49
|
+
limit?: number;
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=trading.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trading.d.ts","sourceRoot":"","sources":["../../../src/types/trading.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAEvE,YAAY,EAAE,UAA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UAAU,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trading.js","sourceRoot":"","sources":["../../../src/types/trading.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { AssetInput, OrganizationHub, OrganizationSummary, UserRef, UserSummary } from './index.js';
|
|
2
|
+
export type { TransactionState, TransactionSource, TransactionDirection } from '../constants.js';
|
|
3
|
+
import type { TransactionState, TransactionSource, TransactionDirection } from '../constants.js';
|
|
4
|
+
/** Compliance alert attached to a transaction */
|
|
5
|
+
export interface TransactionAlert {
|
|
6
|
+
uuid: string;
|
|
7
|
+
state: 'OPEN' | 'RESOLVED' | 'DISMISSED' | 'DECLARATED' | 'CONFIRMED';
|
|
8
|
+
severity: 'SUCCESS' | 'WARNING' | 'CRITICAL';
|
|
9
|
+
type: 'KYT' | 'KYC_EXPIRE' | 'SUSPICIOUS_ACTIVITY' | 'AML' | 'SANCTIONS';
|
|
10
|
+
description: string;
|
|
11
|
+
confidence: number;
|
|
12
|
+
recommendation: string | null;
|
|
13
|
+
factors: unknown;
|
|
14
|
+
sources: Record<string, unknown>;
|
|
15
|
+
history: unknown;
|
|
16
|
+
incidentKey: string | null;
|
|
17
|
+
createdAt: number;
|
|
18
|
+
updatedAt: number;
|
|
19
|
+
user: unknown;
|
|
20
|
+
assignee: unknown;
|
|
21
|
+
organization: unknown;
|
|
22
|
+
}
|
|
23
|
+
/** Unified journal of fiat and crypto movements — created internally, never through REST */
|
|
24
|
+
export interface Transaction {
|
|
25
|
+
uuid: string;
|
|
26
|
+
state: TransactionState;
|
|
27
|
+
source: TransactionSource;
|
|
28
|
+
direction: TransactionDirection;
|
|
29
|
+
asset: string;
|
|
30
|
+
amount: number;
|
|
31
|
+
eurValue: number | null;
|
|
32
|
+
reference: string | null;
|
|
33
|
+
credited: boolean;
|
|
34
|
+
/** Internal leg (staking, sale), not a customer operation */
|
|
35
|
+
silent: boolean;
|
|
36
|
+
data: Record<string, unknown>;
|
|
37
|
+
createdAt: number;
|
|
38
|
+
updatedAt: number;
|
|
39
|
+
/** The customer */
|
|
40
|
+
owner: UserSummary | null;
|
|
41
|
+
/** The compliance officer assigned while the transaction is on hold */
|
|
42
|
+
assignee: UserSummary | null;
|
|
43
|
+
organization: (OrganizationSummary & {
|
|
44
|
+
hub: OrganizationHub | null;
|
|
45
|
+
}) | null;
|
|
46
|
+
alert: TransactionAlert | null;
|
|
47
|
+
}
|
|
48
|
+
export interface TransactionListParams {
|
|
49
|
+
/** Customer uuid (unknown → `404 unknown_user`) */
|
|
50
|
+
user?: UserRef;
|
|
51
|
+
/** One state (anything else → `400 invalid_transaction_state`) */
|
|
52
|
+
status?: TransactionState;
|
|
53
|
+
source?: TransactionSource;
|
|
54
|
+
direction?: TransactionDirection;
|
|
55
|
+
/** Only this asset: ISO code, uuid, or an `Asset` / `AssetRef` model */
|
|
56
|
+
asset?: AssetInput;
|
|
57
|
+
offset?: number;
|
|
58
|
+
/** Max 100 on this list */
|
|
59
|
+
limit?: number;
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=transaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../src/types/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,mBAAmB,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAExG,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAChG,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAEhG,iDAAiD;AACjD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,K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AAW,GAAG,IAAI,CAAA;IAC5B,YAAY,EAAE,CAAC,mBAAmB,GAAG;QAAE,GAAG,EAAE,eAAe,GAAG,IAAI,CAAA;KAAE,CAAC,GAAG,IAAI,CAAA;IAC5E,KAAK,EAAE,gBAAgB,GAAG,IAAI,CAAA;CAC/B;AAED,MAAM,WAAW,qBAAqB;IACpC,mDAAmD;IACnD,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,kEAAkE;IAClE,MAAM,CAAC,EAAE,gBAAgB,CAAA;IACzB,MAAM,CAAC,EAAE,iBAAiB,CAAA;IAC1B,SAAS,CAAC,EAAE,oBAAoB,CAAA;IAChC,wEAAwE;IACxE,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAA;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../../src/types/transaction.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export type { WebhookEventName, SubscriberState } from '../constants.js';
|
|
2
|
+
import type { WebhookEventName, SubscriberState } from '../constants.js';
|
|
3
|
+
/** An event of the catalogue (`GET /webhook`) */
|
|
4
|
+
export interface WebhookType {
|
|
5
|
+
uuid: string;
|
|
6
|
+
state: SubscriberState;
|
|
7
|
+
name: string;
|
|
8
|
+
/** Raw JSON `{"fr": "…", "en": "…"}` */
|
|
9
|
+
label: string;
|
|
10
|
+
/** Raw JSON */
|
|
11
|
+
data: string;
|
|
12
|
+
}
|
|
13
|
+
/** A subscription of the organization to an event */
|
|
14
|
+
export interface Subscriber {
|
|
15
|
+
uuid: string;
|
|
16
|
+
state: SubscriberState;
|
|
17
|
+
updatedAt: number;
|
|
18
|
+
webhook: WebhookType;
|
|
19
|
+
}
|
|
20
|
+
/** `GET /webhooks/{organization}` — the HMAC secret, the endpoint and the subscriptions */
|
|
21
|
+
export interface WebhookSubscriptions {
|
|
22
|
+
secret: string;
|
|
23
|
+
endpoint: string;
|
|
24
|
+
items: Subscriber[];
|
|
25
|
+
}
|
|
26
|
+
/** One delivery attempt of a subscription (`GET /webhooks/{subscriber}/logs`) */
|
|
27
|
+
export interface DeliveryLog {
|
|
28
|
+
date: number;
|
|
29
|
+
webhook: string;
|
|
30
|
+
url: string;
|
|
31
|
+
status: string;
|
|
32
|
+
http_code: number | null;
|
|
33
|
+
duration_ms: number | null;
|
|
34
|
+
attempts: number;
|
|
35
|
+
payload: Record<string, unknown>;
|
|
36
|
+
error: string | null;
|
|
37
|
+
}
|
|
38
|
+
/** Envelope delivered to the endpoint — `data` depends on the event */
|
|
39
|
+
export interface WebhookEvent {
|
|
40
|
+
delivery_id: string;
|
|
41
|
+
timestamp: number;
|
|
42
|
+
event: WebhookEventName;
|
|
43
|
+
data: unknown;
|
|
44
|
+
}
|
|
45
|
+
export interface VerifyInput {
|
|
46
|
+
/** The bytes received, never a re-serialized JSON */
|
|
47
|
+
rawBody: string | Uint8Array;
|
|
48
|
+
/** Headers as received (Node `IncomingHttpHeaders`) — names are matched case-insensitively */
|
|
49
|
+
headers: Record<string, string | string[] | undefined>;
|
|
50
|
+
/** The organization's secret, from `list().secret` */
|
|
51
|
+
secret: string;
|
|
52
|
+
/** Seconds, default 300 — `0` disables the freshness check */
|
|
53
|
+
tolerance?: number;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=webhooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../../src/types/webhooks.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AACxE,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAExE,iDAAiD;AACjD,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAA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AA;IACd,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../../../src/types/webhooks.ts"],"names":[],"mappings":""}
|
package/dist/cjs/utils.d.ts
CHANGED
|
@@ -1,7 +1,26 @@
|
|
|
1
|
-
import type { UserRef } from './types/index.js';
|
|
1
|
+
import type { Amount, AssetInput, UserRef } from './types/index.js';
|
|
2
2
|
/**
|
|
3
|
-
* Resolve a UserRef (
|
|
3
|
+
* Resolve a UserRef (uuid or email string, or a model carrying a `uuid`) to its string.
|
|
4
4
|
* Used by all resource methods that accept a user parameter.
|
|
5
5
|
*/
|
|
6
6
|
export declare function resolveUuid(ref: UserRef): string;
|
|
7
|
+
/**
|
|
8
|
+
* The uuid of a reference given as a string (sent as is) or as a model carrying a `uuid` (an `Order`, a
|
|
9
|
+
* `StakingPosition`, an `Apikey`…). An empty string, or a model without one, is refused before any request.
|
|
10
|
+
*/
|
|
11
|
+
export declare function idOf(ref: string | {
|
|
12
|
+
uuid: string;
|
|
13
|
+
}, name: string): string;
|
|
14
|
+
/** An asset as given — a uuid or ISO code string as is, or the uuid of an `Asset` / `AssetRef` model; empty → `TypeError` before any request */
|
|
15
|
+
export declare function assetId(asset: AssetInput): string;
|
|
16
|
+
/** An optional asset filter of a list: absent or `null` stays absent, otherwise `assetId` */
|
|
17
|
+
export declare function assetFilter(asset: AssetInput | null | undefined): string | undefined;
|
|
18
|
+
/** Validate and encode a value used as a path segment (`/asset/{asset}`, `/account/{user}`…) */
|
|
19
|
+
export declare function pathSegment(value: string, name: string): string;
|
|
20
|
+
/**
|
|
21
|
+
* Normalize an amount for the API, which always receives a string: a string is sent as is
|
|
22
|
+
* (trimmed), a finite number ≥ 0 is converted with `String(n)`. Numbers that `String()` writes
|
|
23
|
+
* in exponent notation (below 1e-6 or from 1e21) are refused: pass them as strings.
|
|
24
|
+
*/
|
|
25
|
+
export declare function amount(value: Amount): string;
|
|
7
26
|
//# sourceMappingURL=utils.d.ts.map
|
package/dist/cjs/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAEnE;;;GAGG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,CAMhD;AAED;;;GAGG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAMzE;AAED,gJAAgJ;AAChJ,wBAAgB,OAAO,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAMjD;AAED,6FAA6F;AAC7F,wBAAgB,WAAW,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAEpF;AAED,gGAAgG;AAChG,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAS/D;AAED;;;;GAIG;AACH,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAgB5C"}
|
package/dist/cjs/utils.js
CHANGED
|
@@ -1,13 +1,76 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveUuid = resolveUuid;
|
|
4
|
+
exports.idOf = idOf;
|
|
5
|
+
exports.assetId = assetId;
|
|
6
|
+
exports.assetFilter = assetFilter;
|
|
7
|
+
exports.pathSegment = pathSegment;
|
|
8
|
+
exports.amount = amount;
|
|
4
9
|
/**
|
|
5
|
-
* Resolve a UserRef (
|
|
10
|
+
* Resolve a UserRef (uuid or email string, or a model carrying a `uuid`) to its string.
|
|
6
11
|
* Used by all resource methods that accept a user parameter.
|
|
7
12
|
*/
|
|
8
13
|
function resolveUuid(ref) {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
14
|
+
const value = typeof ref === 'string' ? ref : ref?.uuid;
|
|
15
|
+
if (typeof value !== 'string' || value.trim() === '') {
|
|
16
|
+
throw new TypeError('user must be a non-empty uuid or email, or a model with a non-empty uuid');
|
|
17
|
+
}
|
|
18
|
+
return value;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The uuid of a reference given as a string (sent as is) or as a model carrying a `uuid` (an `Order`, a
|
|
22
|
+
* `StakingPosition`, an `Apikey`…). An empty string, or a model without one, is refused before any request.
|
|
23
|
+
*/
|
|
24
|
+
function idOf(ref, name) {
|
|
25
|
+
const value = typeof ref === 'string' ? ref : ref?.uuid;
|
|
26
|
+
if (typeof value !== 'string' || value.trim() === '') {
|
|
27
|
+
throw new TypeError(`${name} must be a non-empty string, or a model with a non-empty uuid`);
|
|
28
|
+
}
|
|
29
|
+
return value;
|
|
30
|
+
}
|
|
31
|
+
/** An asset as given — a uuid or ISO code string as is, or the uuid of an `Asset` / `AssetRef` model; empty → `TypeError` before any request */
|
|
32
|
+
function assetId(asset) {
|
|
33
|
+
const value = typeof asset === 'string' ? asset : asset?.uuid;
|
|
34
|
+
if (typeof value !== 'string' || value.trim() === '') {
|
|
35
|
+
throw new TypeError('asset must be a uuid or an ISO code, or a model with a non-empty uuid');
|
|
36
|
+
}
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
/** An optional asset filter of a list: absent or `null` stays absent, otherwise `assetId` */
|
|
40
|
+
function assetFilter(asset) {
|
|
41
|
+
return asset === undefined || asset === null ? undefined : assetId(asset);
|
|
42
|
+
}
|
|
43
|
+
/** Validate and encode a value used as a path segment (`/asset/{asset}`, `/account/{user}`…) */
|
|
44
|
+
function pathSegment(value, name) {
|
|
45
|
+
if (typeof value !== 'string' || value.trim() === '') {
|
|
46
|
+
throw new TypeError(`${name} must be a non-empty string`);
|
|
47
|
+
}
|
|
48
|
+
// `.` and `..` are not encoded by encodeURIComponent and would be normalized away by the URL parser
|
|
49
|
+
if (value === '.' || value === '..') {
|
|
50
|
+
throw new TypeError(`${name} must not be "." or ".."`);
|
|
51
|
+
}
|
|
52
|
+
return encodeURIComponent(value);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Normalize an amount for the API, which always receives a string: a string is sent as is
|
|
56
|
+
* (trimmed), a finite number ≥ 0 is converted with `String(n)`. Numbers that `String()` writes
|
|
57
|
+
* in exponent notation (below 1e-6 or from 1e21) are refused: pass them as strings.
|
|
58
|
+
*/
|
|
59
|
+
function amount(value) {
|
|
60
|
+
if (typeof value === 'string') {
|
|
61
|
+
const trimmed = value.trim();
|
|
62
|
+
if (trimmed === '') {
|
|
63
|
+
throw new TypeError('amount must be a non-empty string or a finite number >= 0');
|
|
64
|
+
}
|
|
65
|
+
return trimmed;
|
|
66
|
+
}
|
|
67
|
+
if (typeof value !== 'number' || !Number.isFinite(value) || value < 0) {
|
|
68
|
+
throw new TypeError('amount must be a non-empty string or a finite number >= 0');
|
|
69
|
+
}
|
|
70
|
+
const text = String(value);
|
|
71
|
+
if (text.includes('e')) {
|
|
72
|
+
throw new TypeError(`amount ${text} would be sent in exponent notation: pass it as a decimal string`);
|
|
73
|
+
}
|
|
74
|
+
return text;
|
|
12
75
|
}
|
|
13
76
|
//# sourceMappingURL=utils.js.map
|
package/dist/cjs/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";;AAMA,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";;AAMA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AAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":";;;AAAA,mEAAmE;AACtD,QAAA,OAAO,GAAG,OAAO,CAAA"}
|
package/dist/esm/client.d.ts
CHANGED
|
@@ -1,19 +1,31 @@
|
|
|
1
|
+
import { HttpClient } from './http.js';
|
|
2
|
+
import { ApikeysResource } from './resources/apikeys.js';
|
|
1
3
|
import { AssetResource } from './resources/asset.js';
|
|
2
4
|
import { BankResource } from './resources/bank.js';
|
|
3
|
-
import {
|
|
5
|
+
import { CoreResource } from './resources/core.js';
|
|
6
|
+
import { CustodyResource } from './resources/custody.js';
|
|
7
|
+
import { CustomerResource } from './resources/customer.js';
|
|
8
|
+
import { StakingResource } from './resources/staking.js';
|
|
9
|
+
import { TradingResource } from './resources/trading.js';
|
|
4
10
|
import { TransactionResource } from './resources/transaction.js';
|
|
5
|
-
import {
|
|
6
|
-
import { WalletResource } from './resources/wallet.js';
|
|
7
|
-
import { StatsResource } from './resources/stats.js';
|
|
11
|
+
import { WebhooksResource } from './resources/webhooks.js';
|
|
8
12
|
import type { BitgenConfig } from './types/index.js';
|
|
13
|
+
/**
|
|
14
|
+
* Entry point of the SDK: one instance per API key, resources hang off it (`client.asset`…).
|
|
15
|
+
* Invalid config throws a `TypeError` here, before any request is sent.
|
|
16
|
+
*/
|
|
9
17
|
export declare class BitgenClient {
|
|
18
|
+
protected readonly http: HttpClient;
|
|
10
19
|
readonly asset: AssetResource;
|
|
20
|
+
readonly customer: CustomerResource;
|
|
11
21
|
readonly bank: BankResource;
|
|
12
|
-
readonly
|
|
22
|
+
readonly custody: CustodyResource;
|
|
23
|
+
readonly trading: TradingResource;
|
|
13
24
|
readonly transaction: TransactionResource;
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
25
|
+
readonly core: CoreResource;
|
|
26
|
+
readonly staking: StakingResource;
|
|
27
|
+
readonly webhooks: WebhooksResource;
|
|
28
|
+
readonly apikeys: ApikeysResource;
|
|
17
29
|
constructor(config: BitgenConfig);
|
|
18
30
|
}
|
|
19
31
|
//# sourceMappingURL=client.d.ts.map
|
package/dist/esm/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAA;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAEpD;;;GAGG;AACH,qBAAa,YAAY;IACvB,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;IAEnC,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAA;IAC7B,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAA;IACnC,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;IAC3B,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAA;IACjC,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAA;IACjC,QAAQ,CAAC,WAAW,EAAE,mBAAmB,CAAA;IACzC,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;IAC3B,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAA;IACjC,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAA;IACnC,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAA;gBAErB,MAAM,EAAE,YAAY;CAcjC"}
|
package/dist/esm/client.js
CHANGED
|
@@ -1,21 +1,42 @@
|
|
|
1
1
|
import { HttpClient } from './http.js';
|
|
2
|
+
import { ApikeysResource } from './resources/apikeys.js';
|
|
2
3
|
import { AssetResource } from './resources/asset.js';
|
|
3
4
|
import { BankResource } from './resources/bank.js';
|
|
4
|
-
import {
|
|
5
|
+
import { CoreResource } from './resources/core.js';
|
|
6
|
+
import { CustodyResource } from './resources/custody.js';
|
|
7
|
+
import { CustomerResource } from './resources/customer.js';
|
|
8
|
+
import { StakingResource } from './resources/staking.js';
|
|
9
|
+
import { TradingResource } from './resources/trading.js';
|
|
5
10
|
import { TransactionResource } from './resources/transaction.js';
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
11
|
+
import { WebhooksResource } from './resources/webhooks.js';
|
|
12
|
+
/**
|
|
13
|
+
* Entry point of the SDK: one instance per API key, resources hang off it (`client.asset`…).
|
|
14
|
+
* Invalid config throws a `TypeError` here, before any request is sent.
|
|
15
|
+
*/
|
|
9
16
|
export class BitgenClient {
|
|
17
|
+
http;
|
|
18
|
+
asset;
|
|
19
|
+
customer;
|
|
20
|
+
bank;
|
|
21
|
+
custody;
|
|
22
|
+
trading;
|
|
23
|
+
transaction;
|
|
24
|
+
core;
|
|
25
|
+
staking;
|
|
26
|
+
webhooks;
|
|
27
|
+
apikeys;
|
|
10
28
|
constructor(config) {
|
|
11
|
-
|
|
12
|
-
this.asset = new AssetResource(http);
|
|
13
|
-
this.
|
|
14
|
-
this.
|
|
15
|
-
this.
|
|
16
|
-
this.
|
|
17
|
-
this.
|
|
18
|
-
this.
|
|
29
|
+
this.http = new HttpClient(config);
|
|
30
|
+
this.asset = new AssetResource(this.http);
|
|
31
|
+
this.customer = new CustomerResource(this.http);
|
|
32
|
+
this.bank = new BankResource(this.http);
|
|
33
|
+
this.custody = new CustodyResource(this.http);
|
|
34
|
+
this.trading = new TradingResource(this.http);
|
|
35
|
+
this.transaction = new TransactionResource(this.http);
|
|
36
|
+
this.core = new CoreResource(this.http);
|
|
37
|
+
this.staking = new StakingResource(this.http, this.core);
|
|
38
|
+
this.webhooks = new WebhooksResource(this.http);
|
|
39
|
+
this.apikeys = new ApikeysResource(this.http);
|
|
19
40
|
}
|
|
20
41
|
}
|
|
21
42
|
//# sourceMappingURL=client.js.map
|
package/dist/esm/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,EAAE,eAA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