@guveno/wallet-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 +211 -0
- package/dist/api/client.d.ts +48 -0
- package/dist/api/client.d.ts.map +1 -0
- package/dist/api/client.js +563 -0
- package/dist/api/client.js.map +1 -0
- package/dist/api/types.d.ts +237 -0
- package/dist/api/types.d.ts.map +1 -0
- package/dist/api/types.js +9 -0
- package/dist/api/types.js.map +1 -0
- package/dist/chains.d.ts +25 -0
- package/dist/chains.d.ts.map +1 -0
- package/dist/chains.js +67 -0
- package/dist/chains.js.map +1 -0
- package/dist/constants.d.ts +17 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +19 -0
- package/dist/constants.js.map +1 -0
- package/dist/crypto/sealed-box.d.ts +8 -0
- package/dist/crypto/sealed-box.d.ts.map +1 -0
- package/dist/crypto/sealed-box.js +66 -0
- package/dist/crypto/sealed-box.js.map +1 -0
- package/dist/derivation.d.ts +26 -0
- package/dist/derivation.d.ts.map +1 -0
- package/dist/derivation.js +121 -0
- package/dist/derivation.js.map +1 -0
- package/dist/errors.d.ts +81 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +95 -0
- package/dist/errors.js.map +1 -0
- package/dist/hot-wallet.d.ts +57 -0
- package/dist/hot-wallet.d.ts.map +1 -0
- package/dist/hot-wallet.js +139 -0
- package/dist/hot-wallet.js.map +1 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -0
- package/dist/keyprovider/file-provider.d.ts +19 -0
- package/dist/keyprovider/file-provider.d.ts.map +1 -0
- package/dist/keyprovider/file-provider.js +48 -0
- package/dist/keyprovider/file-provider.js.map +1 -0
- package/dist/keyprovider/index.d.ts +13 -0
- package/dist/keyprovider/index.d.ts.map +1 -0
- package/dist/keyprovider/index.js +3 -0
- package/dist/keyprovider/index.js.map +1 -0
- package/dist/keyprovider/kms-provider.d.ts +26 -0
- package/dist/keyprovider/kms-provider.d.ts.map +1 -0
- package/dist/keyprovider/kms-provider.js +32 -0
- package/dist/keyprovider/kms-provider.js.map +1 -0
- package/dist/manager.d.ts +28 -0
- package/dist/manager.d.ts.map +1 -0
- package/dist/manager.js +499 -0
- package/dist/manager.js.map +1 -0
- package/dist/mnemonic.d.ts +13 -0
- package/dist/mnemonic.d.ts.map +1 -0
- package/dist/mnemonic.js +44 -0
- package/dist/mnemonic.js.map +1 -0
- package/dist/session/file-store.d.ts +10 -0
- package/dist/session/file-store.d.ts.map +1 -0
- package/dist/session/file-store.js +88 -0
- package/dist/session/file-store.js.map +1 -0
- package/dist/signing/sign-bitcoin.d.ts +14 -0
- package/dist/signing/sign-bitcoin.d.ts.map +1 -0
- package/dist/signing/sign-bitcoin.js +133 -0
- package/dist/signing/sign-bitcoin.js.map +1 -0
- package/dist/signing/sign-ethereum.d.ts +13 -0
- package/dist/signing/sign-ethereum.d.ts.map +1 -0
- package/dist/signing/sign-ethereum.js +49 -0
- package/dist/signing/sign-ethereum.js.map +1 -0
- package/dist/signing/sign-polkadot.d.ts +9 -0
- package/dist/signing/sign-polkadot.d.ts.map +1 -0
- package/dist/signing/sign-polkadot.js +79 -0
- package/dist/signing/sign-polkadot.js.map +1 -0
- package/dist/signing/sign-withdrawal.d.ts +21 -0
- package/dist/signing/sign-withdrawal.d.ts.map +1 -0
- package/dist/signing/sign-withdrawal.js +35 -0
- package/dist/signing/sign-withdrawal.js.map +1 -0
- package/dist/signing/sign-xrp.d.ts +7 -0
- package/dist/signing/sign-xrp.d.ts.map +1 -0
- package/dist/signing/sign-xrp.js +27 -0
- package/dist/signing/sign-xrp.js.map +1 -0
- package/dist/signing/types.d.ts +84 -0
- package/dist/signing/types.d.ts.map +1 -0
- package/dist/signing/types.js +15 -0
- package/dist/signing/types.js.map +1 -0
- package/dist/storage/crypto.d.ts +7 -0
- package/dist/storage/crypto.d.ts.map +1 -0
- package/dist/storage/crypto.js +80 -0
- package/dist/storage/crypto.js.map +1 -0
- package/dist/storage/file-store.d.ts +21 -0
- package/dist/storage/file-store.d.ts.map +1 -0
- package/dist/storage/file-store.js +219 -0
- package/dist/storage/file-store.js.map +1 -0
- package/dist/types.d.ts +187 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/docs/security.md +119 -0
- package/package.json +76 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Guveno LLC
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
# Guveno Wallet SDK
|
|
2
|
+
|
|
3
|
+
Add secure crypto custody to your platform — create and manage multi-chain wallets, automate withdrawals, and receive real-time webhooks for Bitcoin, Ethereum, XRP, Polkadot, and more. Built for exchanges, fintechs, and platforms.
|
|
4
|
+
|
|
5
|
+
A typed TypeScript SDK with client-side key encryption, HD wallet groups, and a fully offline signing path, so the server never holds plaintext key material.
|
|
6
|
+
|
|
7
|
+
> Prefer the terminal? The [`@guveno/cli`](https://www.npmjs.com/package/@guveno/cli) package wraps this SDK with the same features.
|
|
8
|
+
|
|
9
|
+
## Install
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install @guveno/wallet-sdk
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Requires Node.js 20+.
|
|
16
|
+
|
|
17
|
+
## Quick start
|
|
18
|
+
|
|
19
|
+
Create a wallet, and you get back a derived address you can fund right away:
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
import { WalletManager } from '@guveno/wallet-sdk';
|
|
23
|
+
|
|
24
|
+
const manager = new WalletManager();
|
|
25
|
+
|
|
26
|
+
const created = await manager.createWalletGroup({
|
|
27
|
+
name: 'treasury-btc',
|
|
28
|
+
chain: 'bitcoin',
|
|
29
|
+
words: 24, // 12 or 24-word recovery phrase
|
|
30
|
+
encryptionPassword: process.env.WALLET_ENCRYPTION_PASSWORD!
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
console.log(created.firstAccount.address); // bc1...
|
|
34
|
+
console.log(created.firstAccount.derivationPath); // m/84'/0'/0'/0/0
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
A **wallet group** is one recovery phrase (seed) on one chain, plus the addresses you derive from it. Derive as many addresses as you need — each gets the next index.
|
|
38
|
+
|
|
39
|
+
> **What is `WALLET_ENCRYPTION_PASSWORD`?**
|
|
40
|
+
> A passphrase *you* choose. The SDK runs it through scrypt to derive an AES-256-GCM key that encrypts your recovery phrase at rest, before anything touches disk. You must supply the same password later to derive new addresses, export, or decrypt — and it is **never sent to the server and never recoverable if lost**, so store it safely.
|
|
41
|
+
|
|
42
|
+
## Working with wallets
|
|
43
|
+
|
|
44
|
+
### Import an existing recovery phrase
|
|
45
|
+
|
|
46
|
+
```ts
|
|
47
|
+
const imported = await manager.importWalletGroup({
|
|
48
|
+
name: 'restored-xrp',
|
|
49
|
+
chain: 'xrp',
|
|
50
|
+
mnemonic: 'test test test test test test test test test test test junk',
|
|
51
|
+
encryptionPassword: process.env.WALLET_ENCRYPTION_PASSWORD!
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
console.log(imported.account.address); // r...
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Re-importing the same phrase for the same chain reuses the group and derives the next address. Importing it for a *different* chain creates a new group that reuses the same underlying key — so one seed can back wallets across every chain.
|
|
58
|
+
|
|
59
|
+
### Derive another address
|
|
60
|
+
|
|
61
|
+
```ts
|
|
62
|
+
const next = await manager.deriveAddress({
|
|
63
|
+
group: 'restored-xrp',
|
|
64
|
+
label: 'ops',
|
|
65
|
+
encryptionPassword: process.env.WALLET_ENCRYPTION_PASSWORD!
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
console.log(next.index, next.address); // 1 r...
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### List, rename, and label
|
|
72
|
+
|
|
73
|
+
```ts
|
|
74
|
+
const groups = await manager.listWalletGroups();
|
|
75
|
+
const accounts = await manager.listDerivedAccounts('treasury-btc');
|
|
76
|
+
|
|
77
|
+
await manager.renameWalletGroup('treasury-btc', 'treasury-btc-main');
|
|
78
|
+
await manager.labelAccount({ group: 'treasury-btc-main', index: 1, label: 'fees' });
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
For local backup/migration you can also export wallet metadata and records, and decrypt stored secrets with your password — see [examples/](#examples).
|
|
82
|
+
|
|
83
|
+
## Upload to Guveno (server API)
|
|
84
|
+
|
|
85
|
+
`GuvenoApiClient` talks to the Guveno API for auth, wallet records, and webhooks. The mnemonic is sealed to your account's encryption key before it ever leaves your machine.
|
|
86
|
+
|
|
87
|
+
```ts
|
|
88
|
+
import { GuvenoApiClient } from '@guveno/wallet-sdk';
|
|
89
|
+
|
|
90
|
+
const client = new GuvenoApiClient({ baseUrl: 'https://api.guveno.com/v1' });
|
|
91
|
+
|
|
92
|
+
const auth = await client.login({
|
|
93
|
+
email: 'user@example.com',
|
|
94
|
+
password: process.env.ACCOUNT_PASSWORD!
|
|
95
|
+
});
|
|
96
|
+
client.setAccessToken(auth.accessToken);
|
|
97
|
+
|
|
98
|
+
const user = await client.getCurrentUser();
|
|
99
|
+
if (!user.encryptionKey) throw new Error('Complete onboarding before uploading wallets.');
|
|
100
|
+
|
|
101
|
+
const payload = await manager.exportWalletForApi('treasury-btc-main', {
|
|
102
|
+
recipientPublicKey: user.encryptionKey.publicKey,
|
|
103
|
+
encryptionPassword: process.env.WALLET_ENCRYPTION_PASSWORD!
|
|
104
|
+
});
|
|
105
|
+
const wallet = await client.createWalletRecord(payload);
|
|
106
|
+
|
|
107
|
+
console.log(wallet.name);
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
The sealed secret is stored as `keyAccess`; wallet and address rows stay searchable without ever exposing plaintext secrets.
|
|
111
|
+
|
|
112
|
+
### Webhooks
|
|
113
|
+
|
|
114
|
+
Subscribe to deposit/withdrawal events. `createWebhook` returns the `signingSecret` **once** — store it to verify the `x-guveno-signature` header on incoming requests.
|
|
115
|
+
|
|
116
|
+
```ts
|
|
117
|
+
const webhook = await client.createWebhook({
|
|
118
|
+
type: 'api',
|
|
119
|
+
config: { url: 'https://example.com/webhooks/guveno' },
|
|
120
|
+
events: ['deposit.confirmed', 'withdrawal.confirmed'] // or ['*'] for all
|
|
121
|
+
});
|
|
122
|
+
console.log(webhook.signingSecret); // shown only here
|
|
123
|
+
|
|
124
|
+
const deliveries = await client.listWebhookDeliveries(webhook.id, { limit: 50 });
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
All event types are exported as `WEBHOOK_EVENT_TYPES`. Creating/deleting webhooks requires an `owner` or `admin` role.
|
|
128
|
+
|
|
129
|
+
## Automated withdrawals (hot wallet)
|
|
130
|
+
|
|
131
|
+
`HotWallet` runs the full `prepare → sign → broadcast` loop for headless callers like an exchange hot wallet — no per-withdrawal human step. The server never holds key material: the mnemonic is resolved from a `KeyProvider`, used **in process** to sign, then dropped.
|
|
132
|
+
|
|
133
|
+
Authenticate the client with a `gv_live_...` API key whose role is in `WITHDRAWAL_ROLES` (`owner`, `admin`, `manager`, or `signer`). API keys can't read encrypted wallet secrets, which is why the hot wallet sources the mnemonic itself.
|
|
134
|
+
|
|
135
|
+
```ts
|
|
136
|
+
import { GuvenoApiClient, HotWallet, FileKeyProvider } from '@guveno/wallet-sdk';
|
|
137
|
+
|
|
138
|
+
const api = new GuvenoApiClient({ baseUrl: 'https://api.guveno.com/v1', apiKey: process.env.GUVENO_API_KEY });
|
|
139
|
+
|
|
140
|
+
// keys.json: { "<keyFingerprint>": "<bip39 mnemonic>", ... }
|
|
141
|
+
const hot = new HotWallet({ api, keys: new FileKeyProvider('/run/secrets/keys.json') });
|
|
142
|
+
|
|
143
|
+
const withdrawal = await hot.withdraw({
|
|
144
|
+
addressId: 100,
|
|
145
|
+
assetId: 1,
|
|
146
|
+
toAddress: '0x70997970C51812dc3A010C7d01b50e0d17dc79C8',
|
|
147
|
+
amount: '1.5'
|
|
148
|
+
});
|
|
149
|
+
console.log(withdrawal.status); // 'broadcast' — confirmation arrives via webhooks
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
Don't want a plaintext key file? Use `KmsKeyProvider` with a `decrypt` callback backed by AWS KMS, GCP KMS, Vault, or an HSM — the plaintext mnemonic exists only transiently in memory while a withdrawal is signed.
|
|
153
|
+
|
|
154
|
+
```ts
|
|
155
|
+
import { HotWallet, KmsKeyProvider } from '@guveno/wallet-sdk';
|
|
156
|
+
|
|
157
|
+
const keys = new KmsKeyProvider({
|
|
158
|
+
entries: { '<keyFingerprint>': '<base64 KMS ciphertext>' },
|
|
159
|
+
decrypt: async (ciphertext) => {
|
|
160
|
+
const out = await kms.decrypt({ CiphertextBlob: Buffer.from(ciphertext, 'base64') });
|
|
161
|
+
return Buffer.from(out.Plaintext).toString('utf8'); // the mnemonic
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
Good to know:
|
|
167
|
+
|
|
168
|
+
- **Per-address serialization** — withdrawals on the same address are queued so concurrent sends never collide on a nonce; different addresses run in parallel.
|
|
169
|
+
- **Idempotency** — an `idempotencyKey` is auto-generated per call; pass your own to make a retried `withdraw(...)` replay-safe.
|
|
170
|
+
- **All custodied chains are signable** (`SIGNABLE_CHAINS`); Polkadot extrinsics are built fully offline from metadata the server includes in the prepared payload.
|
|
171
|
+
|
|
172
|
+
## CLI
|
|
173
|
+
|
|
174
|
+
The `guveno` command-line tool lives in [`@guveno/cli`](https://www.npmjs.com/package/@guveno/cli) — local wallet management, API auth, wallet upload, and webhooks from your terminal.
|
|
175
|
+
|
|
176
|
+
## Supported chains
|
|
177
|
+
|
|
178
|
+
| Chain | Address style |
|
|
179
|
+
| --- | --- |
|
|
180
|
+
| Bitcoin | native SegWit `bc1...` |
|
|
181
|
+
| Ethereum | `0x...` |
|
|
182
|
+
| XRP | classic `r...` |
|
|
183
|
+
| Polkadot | SS58 (`1...` mainnet) |
|
|
184
|
+
|
|
185
|
+
**We're adding new chains regularly** — these four are live today. All use standard HD derivation, so a recovery phrase restores the same accounts in any compatible wallet (Polkadot uses sr25519 substrate junctions, matching Polkadot-JS / Talisman).
|
|
186
|
+
|
|
187
|
+
## Where your keys are stored
|
|
188
|
+
|
|
189
|
+
By default the SDK keeps wallet data under `~/.guveno` (override with `GUVENO_WALLET_HOME`):
|
|
190
|
+
|
|
191
|
+
- `metadata.json` — non-sensitive keys, wallets, and addresses
|
|
192
|
+
- `secrets.json` — your recovery phrase, encrypted with your `WALLET_ENCRYPTION_PASSWORD`
|
|
193
|
+
- `auth-session.json` — saved API session for the CLI
|
|
194
|
+
|
|
195
|
+
This local store is for single-user workflows, not shared or multi-process custody.
|
|
196
|
+
|
|
197
|
+
## Security
|
|
198
|
+
|
|
199
|
+
- The SDK never logs recovery phrases, decrypted secrets, or private keys.
|
|
200
|
+
- `secrets.json` is encrypted client-side with scrypt + AES-256-GCM before it hits disk.
|
|
201
|
+
- Server uploads seal the mnemonic to your account's X25519 public key before sending.
|
|
202
|
+
- Identical recovery phrases for the same company reuse one key record server-side.
|
|
203
|
+
|
|
204
|
+
More detail: [docs/security.md](./docs/security.md)
|
|
205
|
+
|
|
206
|
+
## Examples
|
|
207
|
+
|
|
208
|
+
- [examples/create-wallet-group.ts](./examples/create-wallet-group.ts)
|
|
209
|
+
- [examples/import-and-derive.ts](./examples/import-and-derive.ts)
|
|
210
|
+
- [examples/export-wallet-record.ts](./examples/export-wallet-record.ts)
|
|
211
|
+
- [examples/server-auth-and-upload.ts](./examples/server-auth-and-upload.ts)
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { ApiAuthResponse, ApiClientOptions, ApiEmailPasswordInput, ApiPageInfo, ApiSignupResponse, ApiUser, ApiVerifyEmailInput, ApiWalletAddress, ApiWalletDetail, ApiWalletKeySecret, ApiWalletSummary, ApiWebhook, ApiWebhookDelivery, ApiWebhookWithSecret, ApiWithdrawal, BroadcastWithdrawalInput, CreateApiWalletInput, CreateApiWebhookInput, ListApiAddressOptions, ListApiWalletOptions, ListApiWebhookDeliveryOptions, ListApiWithdrawalOptions, PrepareWithdrawalInput, PrepareWithdrawalResult, UpdateApiWalletInput } from './types.js';
|
|
2
|
+
export declare class GuvenoApiClient {
|
|
3
|
+
readonly baseUrl: string;
|
|
4
|
+
private readonly fetchImpl;
|
|
5
|
+
private accessToken;
|
|
6
|
+
constructor(options?: ApiClientOptions);
|
|
7
|
+
setAccessToken(accessToken: string | undefined): void;
|
|
8
|
+
/** Authenticate with a `gv_live_...` API key. Sent as the bearer token, like {@link setAccessToken}. */
|
|
9
|
+
setApiKey(apiKey: string | undefined): void;
|
|
10
|
+
/**
|
|
11
|
+
* Registers an account and triggers a 6-digit verification-code email. No
|
|
12
|
+
* session is issued — call {@link verifyEmail} with the code to obtain the
|
|
13
|
+
* access token.
|
|
14
|
+
*/
|
|
15
|
+
signup(input: ApiEmailPasswordInput): Promise<ApiSignupResponse>;
|
|
16
|
+
/** Confirms the signup verification code and returns the session token. */
|
|
17
|
+
verifyEmail(input: ApiVerifyEmailInput): Promise<ApiAuthResponse>;
|
|
18
|
+
/** Requests a fresh signup verification code for the given email. */
|
|
19
|
+
resendVerificationCode(email: string): Promise<{
|
|
20
|
+
email: string;
|
|
21
|
+
}>;
|
|
22
|
+
login(input: ApiEmailPasswordInput): Promise<ApiAuthResponse>;
|
|
23
|
+
getCurrentUser(): Promise<ApiUser>;
|
|
24
|
+
createWalletRecord(input: CreateApiWalletInput): Promise<ApiWalletDetail>;
|
|
25
|
+
listWalletRecords(options?: ListApiWalletOptions): Promise<ApiWalletSummary[]>;
|
|
26
|
+
listWalletRecordPage(options?: ListApiWalletOptions): Promise<{
|
|
27
|
+
items: ApiWalletSummary[];
|
|
28
|
+
pageInfo: ApiPageInfo;
|
|
29
|
+
}>;
|
|
30
|
+
getWalletRecord(walletId: string | number): Promise<ApiWalletDetail>;
|
|
31
|
+
getWalletKeySecret(walletId: string | number): Promise<ApiWalletKeySecret>;
|
|
32
|
+
listWalletAddresses(walletId: string | number, options?: ListApiAddressOptions): Promise<{
|
|
33
|
+
items: ApiWalletAddress[];
|
|
34
|
+
pageInfo: ApiPageInfo;
|
|
35
|
+
}>;
|
|
36
|
+
updateWalletRecord(walletId: string | number, input: UpdateApiWalletInput): Promise<ApiWalletDetail>;
|
|
37
|
+
deleteWalletRecord(walletId: string | number): Promise<void>;
|
|
38
|
+
listWebhooks(): Promise<ApiWebhook[]>;
|
|
39
|
+
createWebhook(input: CreateApiWebhookInput): Promise<ApiWebhookWithSecret>;
|
|
40
|
+
listWebhookDeliveries(webhookId: string | number, options?: ListApiWebhookDeliveryOptions): Promise<ApiWebhookDelivery[]>;
|
|
41
|
+
deleteWebhook(webhookId: string | number): Promise<void>;
|
|
42
|
+
prepareWithdrawal(input: PrepareWithdrawalInput): Promise<PrepareWithdrawalResult>;
|
|
43
|
+
broadcastWithdrawal(input: BroadcastWithdrawalInput): Promise<ApiWithdrawal>;
|
|
44
|
+
getWithdrawal(withdrawalId: string | number): Promise<ApiWithdrawal>;
|
|
45
|
+
listWithdrawals(options?: ListApiWithdrawalOptions): Promise<ApiWithdrawal[]>;
|
|
46
|
+
private request;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/api/client.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,WAAW,EACX,iBAAiB,EACjB,OAAO,EACP,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,EACf,kBAAkB,EAClB,gBAAgB,EAChB,UAAU,EACV,kBAAkB,EAClB,oBAAoB,EACpB,aAAa,EACb,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,6BAA6B,EAC7B,wBAAwB,EACxB,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,YAAY,CAAC;AAoRpB,qBAAa,eAAe;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAe;IACzC,OAAO,CAAC,WAAW,CAAqB;gBAE5B,OAAO,GAAE,gBAAqB;IAM1C,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAIrD,wGAAwG;IACxG,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAI3C;;;;OAIG;I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