@1claw/sdk 0.29.1 → 0.31.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/README.md +4 -1
- package/dist/core/client.d.ts +9 -0
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/client.js +6 -0
- package/dist/core/client.js.map +1 -1
- package/dist/generated/api-types.d.ts +519 -0
- package/dist/generated/api-types.d.ts.map +1 -1
- package/dist/resources/deposit-destinations.d.ts +53 -0
- package/dist/resources/deposit-destinations.d.ts.map +1 -0
- package/dist/resources/deposit-destinations.js +24 -0
- package/dist/resources/deposit-destinations.js.map +1 -0
- package/dist/resources/fiat.d.ts +37 -0
- package/dist/resources/fiat.d.ts.map +1 -0
- package/dist/resources/fiat.js +12 -0
- package/dist/resources/fiat.js.map +1 -0
- package/dist/resources/internal-accounts.d.ts +67 -0
- package/dist/resources/internal-accounts.d.ts.map +1 -0
- package/dist/resources/internal-accounts.js +21 -0
- package/dist/resources/internal-accounts.js.map +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -97,8 +97,11 @@ await client.auth.verifyEmailChange({ code: "123456" });
|
|
|
97
97
|
| `client.apiKeys` | `create`, `list`, `revoke` |
|
|
98
98
|
| `client.treasury` | `create`, `list`, `get`, `update`, `delete`, `addSigner`, `removeSigner`, `requestAccess`, `listAccessRequests`, `approveAccess`, `denyAccess`, `propose`, `listProposals`, `getProposal`, `signProposal`, `executeProposal` |
|
|
99
99
|
| `client.treasuryWallets` | `generateWallets`, `listWallets`, `getWallet`, `getWalletBalance`, `sendFromWallet`, `swapFromWallet`, `exportWallet`, `rotateWallet`, `deactivateWallet` |
|
|
100
|
+
| `client.depositDestinations` | `create`, `list`, `get`, `update` |
|
|
101
|
+
| `client.internalAccounts` | `create`, `list`, `get`, `transfer`, `getLedger` |
|
|
102
|
+
| `client.fiat` | `createOnrampSession`, `initiateOfframp` |
|
|
100
103
|
| `client.signingKeys` | `create`, `list`, `rotate`, `deactivate`, `export` |
|
|
101
|
-
| `client.platform` | `createApp`, `listApps`, `getApp`, `updateApp`, `deleteApp`, `createTemplate`, `listTemplates`, `upsertUser`, `listUsers`, `bootstrapUser`, `claimPreview`, `claimRedeem`, `listConnectedApps`, `disconnectApp` |
|
|
104
|
+
| `client.platform` | `createApp`, `listApps`, `getApp`, `updateApp`, `deleteApp`, `rotateKey`, `createTemplate`, `listTemplates`, `upsertUser`, `listUsers`, `bootstrapUser`, `reissueClaim`, `claimPreview`, `claimRedeem`, `listConnectedApps`, `disconnectApp` |
|
|
102
105
|
| `client.devices` | `register`, `list`, `delete`, `challenge`, `attest`, `setPushToken` |
|
|
103
106
|
| `client.passkeys` | `list`, `registerBegin`, `registerComplete`, `assertBegin`, `assertComplete`, `delete` |
|
|
104
107
|
| `client.x402` | `getPaymentRequirement`, `pay`, `verifyReceipt`, `withPayment` |
|
package/dist/core/client.d.ts
CHANGED
|
@@ -18,6 +18,9 @@ import { TreasuryWalletsResource } from "../resources/treasury-wallets";
|
|
|
18
18
|
import { PlatformResource } from "../resources/platform";
|
|
19
19
|
import { DevicesResource } from "../resources/devices";
|
|
20
20
|
import { PasskeysResource } from "../resources/passkeys";
|
|
21
|
+
import { DepositDestinationsResource } from "../resources/deposit-destinations";
|
|
22
|
+
import { InternalAccountsResource } from "../resources/internal-accounts";
|
|
23
|
+
import { FiatResource } from "../resources/fiat";
|
|
21
24
|
/**
|
|
22
25
|
* The main 1Claw SDK client. All API resources are exposed as
|
|
23
26
|
* namespaced properties for discoverability and tree-shaking.
|
|
@@ -79,6 +82,12 @@ export declare class OneclawClient {
|
|
|
79
82
|
readonly devices: DevicesResource;
|
|
80
83
|
/** WebAuthn passkeys — register and assert FIDO2 credentials. */
|
|
81
84
|
readonly passkeys: PasskeysResource;
|
|
85
|
+
/** Deposit destinations — unique addresses for tracking incoming payments. */
|
|
86
|
+
readonly depositDestinations: DepositDestinationsResource;
|
|
87
|
+
/** Internal accounts — off-chain double-entry ledger for instant transfers. */
|
|
88
|
+
readonly internalAccounts: InternalAccountsResource;
|
|
89
|
+
/** Fiat on/off ramps — buy and sell crypto via partner integrations. */
|
|
90
|
+
readonly fiat: FiatResource;
|
|
82
91
|
constructor(config: OneclawClientConfig);
|
|
83
92
|
private autoAuthenticateUserKey;
|
|
84
93
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/core/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,E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AC;IACpC,kEAAkE;IAClE,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAClC,iEAAiE;IACjE,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IACpC,8EAA8E;IAC9E,QAAQ,CAAC,mBAAmB,EAAE,2BAA2B,CAAC;IAC1D,+EAA+E;IAC/E,QAAQ,CAAC,gBAAgB,EAAE,wBAAwB,CAAC;IACpD,wEAAwE;IACxE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;gBAEhB,MAAM,EAAE,mBAAmB;IAmCvC,OAAO,CAAC,uBAAuB;CAclC;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,mBAAmB,GAAG,aAAa,CAEvE"}
|
package/dist/core/client.js
CHANGED
|
@@ -18,6 +18,9 @@ import { TreasuryWalletsResource } from "../resources/treasury-wallets";
|
|
|
18
18
|
import { PlatformResource } from "../resources/platform";
|
|
19
19
|
import { DevicesResource } from "../resources/devices";
|
|
20
20
|
import { PasskeysResource } from "../resources/passkeys";
|
|
21
|
+
import { DepositDestinationsResource } from "../resources/deposit-destinations";
|
|
22
|
+
import { InternalAccountsResource } from "../resources/internal-accounts";
|
|
23
|
+
import { FiatResource } from "../resources/fiat";
|
|
21
24
|
/**
|
|
22
25
|
* The main 1Claw SDK client. All API resources are exposed as
|
|
23
26
|
* namespaced properties for discoverability and tree-shaking.
|
|
@@ -68,6 +71,9 @@ export class OneclawClient {
|
|
|
68
71
|
this.platform = new PlatformResource(this.http);
|
|
69
72
|
this.devices = new DevicesResource(this.http);
|
|
70
73
|
this.passkeys = new PasskeysResource(this.http);
|
|
74
|
+
this.depositDestinations = new DepositDestinationsResource(this.http);
|
|
75
|
+
this.internalAccounts = new InternalAccountsResource(this.http);
|
|
76
|
+
this.fiat = new FiatResource(this.http);
|
|
71
77
|
}
|
|
72
78
|
autoAuthenticateUserKey(config) {
|
|
73
79
|
const authPromise = this.http
|
package/dist/core/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/core/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/core/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,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AC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAClD,CAAC,CAAC,CAAC;QAEP,WAAW,CAAC,KAAK,CAAC,GAAG,EAAE;YACnB,mDAAmD;QACvD,CAAC,CAAC,CAAC;IACP,CAAC;CACJ;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,YAAY,CAAC,MAA2B;IACpD,OAAO,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC;AACrC,CAAC"}
|
|
@@ -3568,6 +3568,196 @@ export interface paths {
|
|
|
3568
3568
|
patch?: never;
|
|
3569
3569
|
trace?: never;
|
|
3570
3570
|
};
|
|
3571
|
+
"/v1/deposit-destinations": {
|
|
3572
|
+
parameters: {
|
|
3573
|
+
query?: never;
|
|
3574
|
+
header?: never;
|
|
3575
|
+
path?: never;
|
|
3576
|
+
cookie?: never;
|
|
3577
|
+
};
|
|
3578
|
+
/** List deposit destinations */
|
|
3579
|
+
get: operations["listDepositDestinations"];
|
|
3580
|
+
put?: never;
|
|
3581
|
+
/** Create deposit destination */
|
|
3582
|
+
post: operations["createDepositDestination"];
|
|
3583
|
+
delete?: never;
|
|
3584
|
+
options?: never;
|
|
3585
|
+
head?: never;
|
|
3586
|
+
patch?: never;
|
|
3587
|
+
trace?: never;
|
|
3588
|
+
};
|
|
3589
|
+
"/v1/deposit-destinations/{id}": {
|
|
3590
|
+
parameters: {
|
|
3591
|
+
query?: never;
|
|
3592
|
+
header?: never;
|
|
3593
|
+
path?: never;
|
|
3594
|
+
cookie?: never;
|
|
3595
|
+
};
|
|
3596
|
+
/** Get deposit destination */
|
|
3597
|
+
get: operations["getDepositDestination"];
|
|
3598
|
+
put?: never;
|
|
3599
|
+
post?: never;
|
|
3600
|
+
delete?: never;
|
|
3601
|
+
options?: never;
|
|
3602
|
+
head?: never;
|
|
3603
|
+
/** Update deposit destination status */
|
|
3604
|
+
patch: operations["updateDepositDestination"];
|
|
3605
|
+
trace?: never;
|
|
3606
|
+
};
|
|
3607
|
+
"/v1/internal-accounts": {
|
|
3608
|
+
parameters: {
|
|
3609
|
+
query?: never;
|
|
3610
|
+
header?: never;
|
|
3611
|
+
path?: never;
|
|
3612
|
+
cookie?: never;
|
|
3613
|
+
};
|
|
3614
|
+
/** List internal accounts */
|
|
3615
|
+
get: operations["listInternalAccounts"];
|
|
3616
|
+
put?: never;
|
|
3617
|
+
/** Create internal account */
|
|
3618
|
+
post: operations["createInternalAccount"];
|
|
3619
|
+
delete?: never;
|
|
3620
|
+
options?: never;
|
|
3621
|
+
head?: never;
|
|
3622
|
+
patch?: never;
|
|
3623
|
+
trace?: never;
|
|
3624
|
+
};
|
|
3625
|
+
"/v1/internal-accounts/{id}": {
|
|
3626
|
+
parameters: {
|
|
3627
|
+
query?: never;
|
|
3628
|
+
header?: never;
|
|
3629
|
+
path?: never;
|
|
3630
|
+
cookie?: never;
|
|
3631
|
+
};
|
|
3632
|
+
/** Get internal account */
|
|
3633
|
+
get: operations["getInternalAccount"];
|
|
3634
|
+
put?: never;
|
|
3635
|
+
post?: never;
|
|
3636
|
+
delete?: never;
|
|
3637
|
+
options?: never;
|
|
3638
|
+
head?: never;
|
|
3639
|
+
patch?: never;
|
|
3640
|
+
trace?: never;
|
|
3641
|
+
};
|
|
3642
|
+
"/v1/internal-accounts/{id}/ledger": {
|
|
3643
|
+
parameters: {
|
|
3644
|
+
query?: never;
|
|
3645
|
+
header?: never;
|
|
3646
|
+
path?: never;
|
|
3647
|
+
cookie?: never;
|
|
3648
|
+
};
|
|
3649
|
+
/** Get account ledger */
|
|
3650
|
+
get: operations["getInternalAccountLedger"];
|
|
3651
|
+
put?: never;
|
|
3652
|
+
post?: never;
|
|
3653
|
+
delete?: never;
|
|
3654
|
+
options?: never;
|
|
3655
|
+
head?: never;
|
|
3656
|
+
patch?: never;
|
|
3657
|
+
trace?: never;
|
|
3658
|
+
};
|
|
3659
|
+
"/v1/internal-transfers": {
|
|
3660
|
+
parameters: {
|
|
3661
|
+
query?: never;
|
|
3662
|
+
header?: never;
|
|
3663
|
+
path?: never;
|
|
3664
|
+
cookie?: never;
|
|
3665
|
+
};
|
|
3666
|
+
get?: never;
|
|
3667
|
+
put?: never;
|
|
3668
|
+
/** Transfer between internal accounts */
|
|
3669
|
+
post: operations["createInternalTransfer"];
|
|
3670
|
+
delete?: never;
|
|
3671
|
+
options?: never;
|
|
3672
|
+
head?: never;
|
|
3673
|
+
patch?: never;
|
|
3674
|
+
trace?: never;
|
|
3675
|
+
};
|
|
3676
|
+
"/v1/fiat/onramp/session": {
|
|
3677
|
+
parameters: {
|
|
3678
|
+
query?: never;
|
|
3679
|
+
header?: never;
|
|
3680
|
+
path?: never;
|
|
3681
|
+
cookie?: never;
|
|
3682
|
+
};
|
|
3683
|
+
get?: never;
|
|
3684
|
+
put?: never;
|
|
3685
|
+
/** Create fiat onramp session */
|
|
3686
|
+
post: operations["createFiatOnrampSession"];
|
|
3687
|
+
delete?: never;
|
|
3688
|
+
options?: never;
|
|
3689
|
+
head?: never;
|
|
3690
|
+
patch?: never;
|
|
3691
|
+
trace?: never;
|
|
3692
|
+
};
|
|
3693
|
+
"/v1/fiat/offramp/initiate": {
|
|
3694
|
+
parameters: {
|
|
3695
|
+
query?: never;
|
|
3696
|
+
header?: never;
|
|
3697
|
+
path?: never;
|
|
3698
|
+
cookie?: never;
|
|
3699
|
+
};
|
|
3700
|
+
get?: never;
|
|
3701
|
+
put?: never;
|
|
3702
|
+
/** Initiate fiat offramp */
|
|
3703
|
+
post: operations["initiateFiatOfframp"];
|
|
3704
|
+
delete?: never;
|
|
3705
|
+
options?: never;
|
|
3706
|
+
head?: never;
|
|
3707
|
+
patch?: never;
|
|
3708
|
+
trace?: never;
|
|
3709
|
+
};
|
|
3710
|
+
"/v1/auth/social-login": {
|
|
3711
|
+
parameters: {
|
|
3712
|
+
query?: never;
|
|
3713
|
+
header?: never;
|
|
3714
|
+
path?: never;
|
|
3715
|
+
cookie?: never;
|
|
3716
|
+
};
|
|
3717
|
+
get?: never;
|
|
3718
|
+
put?: never;
|
|
3719
|
+
/** Social login (Google, Apple, Discord) */
|
|
3720
|
+
post: operations["socialLogin"];
|
|
3721
|
+
delete?: never;
|
|
3722
|
+
options?: never;
|
|
3723
|
+
head?: never;
|
|
3724
|
+
patch?: never;
|
|
3725
|
+
trace?: never;
|
|
3726
|
+
};
|
|
3727
|
+
"/v1/auth/passkeys/tx-assert/begin": {
|
|
3728
|
+
parameters: {
|
|
3729
|
+
query?: never;
|
|
3730
|
+
header?: never;
|
|
3731
|
+
path?: never;
|
|
3732
|
+
cookie?: never;
|
|
3733
|
+
};
|
|
3734
|
+
get?: never;
|
|
3735
|
+
put?: never;
|
|
3736
|
+
/** Begin passkey transaction authorization */
|
|
3737
|
+
post: operations["passkeyTxAssertBegin"];
|
|
3738
|
+
delete?: never;
|
|
3739
|
+
options?: never;
|
|
3740
|
+
head?: never;
|
|
3741
|
+
patch?: never;
|
|
3742
|
+
trace?: never;
|
|
3743
|
+
};
|
|
3744
|
+
"/v1/auth/passkeys/tx-assert/complete": {
|
|
3745
|
+
parameters: {
|
|
3746
|
+
query?: never;
|
|
3747
|
+
header?: never;
|
|
3748
|
+
path?: never;
|
|
3749
|
+
cookie?: never;
|
|
3750
|
+
};
|
|
3751
|
+
get?: never;
|
|
3752
|
+
put?: never;
|
|
3753
|
+
/** Complete passkey transaction authorization */
|
|
3754
|
+
post: operations["passkeyTxAssertComplete"];
|
|
3755
|
+
delete?: never;
|
|
3756
|
+
options?: never;
|
|
3757
|
+
head?: never;
|
|
3758
|
+
patch?: never;
|
|
3759
|
+
trace?: never;
|
|
3760
|
+
};
|
|
3571
3761
|
}
|
|
3572
3762
|
export type webhooks = Record<string, never>;
|
|
3573
3763
|
export interface components {
|
|
@@ -10273,5 +10463,334 @@ export interface operations {
|
|
|
10273
10463
|
409: components["responses"]["Conflict"];
|
|
10274
10464
|
};
|
|
10275
10465
|
};
|
|
10466
|
+
listDepositDestinations: {
|
|
10467
|
+
parameters: {
|
|
10468
|
+
query?: never;
|
|
10469
|
+
header?: never;
|
|
10470
|
+
path?: never;
|
|
10471
|
+
cookie?: never;
|
|
10472
|
+
};
|
|
10473
|
+
requestBody?: never;
|
|
10474
|
+
responses: {
|
|
10475
|
+
/** @description List of destinations */
|
|
10476
|
+
200: {
|
|
10477
|
+
headers: {
|
|
10478
|
+
[name: string]: unknown;
|
|
10479
|
+
};
|
|
10480
|
+
content?: never;
|
|
10481
|
+
};
|
|
10482
|
+
};
|
|
10483
|
+
};
|
|
10484
|
+
createDepositDestination: {
|
|
10485
|
+
parameters: {
|
|
10486
|
+
query?: never;
|
|
10487
|
+
header?: never;
|
|
10488
|
+
path?: never;
|
|
10489
|
+
cookie?: never;
|
|
10490
|
+
};
|
|
10491
|
+
requestBody: {
|
|
10492
|
+
content: {
|
|
10493
|
+
"application/json": {
|
|
10494
|
+
chain: string;
|
|
10495
|
+
label?: string;
|
|
10496
|
+
/** Format: uuid */
|
|
10497
|
+
treasury_wallet_id?: string;
|
|
10498
|
+
};
|
|
10499
|
+
};
|
|
10500
|
+
};
|
|
10501
|
+
responses: {
|
|
10502
|
+
/** @description Destination created */
|
|
10503
|
+
201: {
|
|
10504
|
+
headers: {
|
|
10505
|
+
[name: string]: unknown;
|
|
10506
|
+
};
|
|
10507
|
+
content?: never;
|
|
10508
|
+
};
|
|
10509
|
+
401: components["responses"]["Unauthorized"];
|
|
10510
|
+
};
|
|
10511
|
+
};
|
|
10512
|
+
getDepositDestination: {
|
|
10513
|
+
parameters: {
|
|
10514
|
+
query?: never;
|
|
10515
|
+
header?: never;
|
|
10516
|
+
path: {
|
|
10517
|
+
id: string;
|
|
10518
|
+
};
|
|
10519
|
+
cookie?: never;
|
|
10520
|
+
};
|
|
10521
|
+
requestBody?: never;
|
|
10522
|
+
responses: {
|
|
10523
|
+
/** @description Destination detail with events */
|
|
10524
|
+
200: {
|
|
10525
|
+
headers: {
|
|
10526
|
+
[name: string]: unknown;
|
|
10527
|
+
};
|
|
10528
|
+
content?: never;
|
|
10529
|
+
};
|
|
10530
|
+
};
|
|
10531
|
+
};
|
|
10532
|
+
updateDepositDestination: {
|
|
10533
|
+
parameters: {
|
|
10534
|
+
query?: never;
|
|
10535
|
+
header?: never;
|
|
10536
|
+
path: {
|
|
10537
|
+
id: string;
|
|
10538
|
+
};
|
|
10539
|
+
cookie?: never;
|
|
10540
|
+
};
|
|
10541
|
+
requestBody: {
|
|
10542
|
+
content: {
|
|
10543
|
+
"application/json": {
|
|
10544
|
+
/** @enum {string} */
|
|
10545
|
+
status?: "active" | "paused" | "archived";
|
|
10546
|
+
};
|
|
10547
|
+
};
|
|
10548
|
+
};
|
|
10549
|
+
responses: {
|
|
10550
|
+
/** @description Updated destination */
|
|
10551
|
+
200: {
|
|
10552
|
+
headers: {
|
|
10553
|
+
[name: string]: unknown;
|
|
10554
|
+
};
|
|
10555
|
+
content?: never;
|
|
10556
|
+
};
|
|
10557
|
+
};
|
|
10558
|
+
};
|
|
10559
|
+
listInternalAccounts: {
|
|
10560
|
+
parameters: {
|
|
10561
|
+
query?: never;
|
|
10562
|
+
header?: never;
|
|
10563
|
+
path?: never;
|
|
10564
|
+
cookie?: never;
|
|
10565
|
+
};
|
|
10566
|
+
requestBody?: never;
|
|
10567
|
+
responses: {
|
|
10568
|
+
/** @description Account list with balances */
|
|
10569
|
+
200: {
|
|
10570
|
+
headers: {
|
|
10571
|
+
[name: string]: unknown;
|
|
10572
|
+
};
|
|
10573
|
+
content?: never;
|
|
10574
|
+
};
|
|
10575
|
+
};
|
|
10576
|
+
};
|
|
10577
|
+
createInternalAccount: {
|
|
10578
|
+
parameters: {
|
|
10579
|
+
query?: never;
|
|
10580
|
+
header?: never;
|
|
10581
|
+
path?: never;
|
|
10582
|
+
cookie?: never;
|
|
10583
|
+
};
|
|
10584
|
+
requestBody: {
|
|
10585
|
+
content: {
|
|
10586
|
+
"application/json": {
|
|
10587
|
+
name: string;
|
|
10588
|
+
description?: string;
|
|
10589
|
+
};
|
|
10590
|
+
};
|
|
10591
|
+
};
|
|
10592
|
+
responses: {
|
|
10593
|
+
/** @description Account created */
|
|
10594
|
+
201: {
|
|
10595
|
+
headers: {
|
|
10596
|
+
[name: string]: unknown;
|
|
10597
|
+
};
|
|
10598
|
+
content?: never;
|
|
10599
|
+
};
|
|
10600
|
+
};
|
|
10601
|
+
};
|
|
10602
|
+
getInternalAccount: {
|
|
10603
|
+
parameters: {
|
|
10604
|
+
query?: never;
|
|
10605
|
+
header?: never;
|
|
10606
|
+
path: {
|
|
10607
|
+
id: string;
|
|
10608
|
+
};
|
|
10609
|
+
cookie?: never;
|
|
10610
|
+
};
|
|
10611
|
+
requestBody?: never;
|
|
10612
|
+
responses: {
|
|
10613
|
+
/** @description Account detail */
|
|
10614
|
+
200: {
|
|
10615
|
+
headers: {
|
|
10616
|
+
[name: string]: unknown;
|
|
10617
|
+
};
|
|
10618
|
+
content?: never;
|
|
10619
|
+
};
|
|
10620
|
+
};
|
|
10621
|
+
};
|
|
10622
|
+
getInternalAccountLedger: {
|
|
10623
|
+
parameters: {
|
|
10624
|
+
query?: never;
|
|
10625
|
+
header?: never;
|
|
10626
|
+
path: {
|
|
10627
|
+
id: string;
|
|
10628
|
+
};
|
|
10629
|
+
cookie?: never;
|
|
10630
|
+
};
|
|
10631
|
+
requestBody?: never;
|
|
10632
|
+
responses: {
|
|
10633
|
+
/** @description Ledger entries */
|
|
10634
|
+
200: {
|
|
10635
|
+
headers: {
|
|
10636
|
+
[name: string]: unknown;
|
|
10637
|
+
};
|
|
10638
|
+
content?: never;
|
|
10639
|
+
};
|
|
10640
|
+
};
|
|
10641
|
+
};
|
|
10642
|
+
createInternalTransfer: {
|
|
10643
|
+
parameters: {
|
|
10644
|
+
query?: never;
|
|
10645
|
+
header?: never;
|
|
10646
|
+
path?: never;
|
|
10647
|
+
cookie?: never;
|
|
10648
|
+
};
|
|
10649
|
+
requestBody: {
|
|
10650
|
+
content: {
|
|
10651
|
+
"application/json": {
|
|
10652
|
+
/** Format: uuid */
|
|
10653
|
+
from_account_id: string;
|
|
10654
|
+
/** Format: uuid */
|
|
10655
|
+
to_account_id: string;
|
|
10656
|
+
asset: string;
|
|
10657
|
+
amount: string;
|
|
10658
|
+
memo?: string;
|
|
10659
|
+
};
|
|
10660
|
+
};
|
|
10661
|
+
};
|
|
10662
|
+
responses: {
|
|
10663
|
+
/** @description Transfer completed */
|
|
10664
|
+
201: {
|
|
10665
|
+
headers: {
|
|
10666
|
+
[name: string]: unknown;
|
|
10667
|
+
};
|
|
10668
|
+
content?: never;
|
|
10669
|
+
};
|
|
10670
|
+
};
|
|
10671
|
+
};
|
|
10672
|
+
createFiatOnrampSession: {
|
|
10673
|
+
parameters: {
|
|
10674
|
+
query?: never;
|
|
10675
|
+
header?: never;
|
|
10676
|
+
path?: never;
|
|
10677
|
+
cookie?: never;
|
|
10678
|
+
};
|
|
10679
|
+
requestBody?: never;
|
|
10680
|
+
responses: {
|
|
10681
|
+
/** @description Onramp widget URL */
|
|
10682
|
+
201: {
|
|
10683
|
+
headers: {
|
|
10684
|
+
[name: string]: unknown;
|
|
10685
|
+
};
|
|
10686
|
+
content?: never;
|
|
10687
|
+
};
|
|
10688
|
+
};
|
|
10689
|
+
};
|
|
10690
|
+
initiateFiatOfframp: {
|
|
10691
|
+
parameters: {
|
|
10692
|
+
query?: never;
|
|
10693
|
+
header?: never;
|
|
10694
|
+
path?: never;
|
|
10695
|
+
cookie?: never;
|
|
10696
|
+
};
|
|
10697
|
+
requestBody?: never;
|
|
10698
|
+
responses: {
|
|
10699
|
+
/** @description Offramp widget URL */
|
|
10700
|
+
201: {
|
|
10701
|
+
headers: {
|
|
10702
|
+
[name: string]: unknown;
|
|
10703
|
+
};
|
|
10704
|
+
content?: never;
|
|
10705
|
+
};
|
|
10706
|
+
};
|
|
10707
|
+
};
|
|
10708
|
+
socialLogin: {
|
|
10709
|
+
parameters: {
|
|
10710
|
+
query?: never;
|
|
10711
|
+
header?: never;
|
|
10712
|
+
path?: never;
|
|
10713
|
+
cookie?: never;
|
|
10714
|
+
};
|
|
10715
|
+
requestBody: {
|
|
10716
|
+
content: {
|
|
10717
|
+
"application/json": {
|
|
10718
|
+
/** @enum {string} */
|
|
10719
|
+
provider: "google" | "apple" | "discord";
|
|
10720
|
+
/** @description Google/Apple ID token, or Discord OAuth authorization code */
|
|
10721
|
+
id_token: string;
|
|
10722
|
+
/** @description Required for Discord — must match the redirect URI used in the OAuth flow */
|
|
10723
|
+
oauth_redirect_uri?: string;
|
|
10724
|
+
auto_provision_chains?: string[];
|
|
10725
|
+
};
|
|
10726
|
+
};
|
|
10727
|
+
};
|
|
10728
|
+
responses: {
|
|
10729
|
+
/** @description Login successful */
|
|
10730
|
+
200: {
|
|
10731
|
+
headers: {
|
|
10732
|
+
[name: string]: unknown;
|
|
10733
|
+
};
|
|
10734
|
+
content?: never;
|
|
10735
|
+
};
|
|
10736
|
+
/** @description New user created */
|
|
10737
|
+
201: {
|
|
10738
|
+
headers: {
|
|
10739
|
+
[name: string]: unknown;
|
|
10740
|
+
};
|
|
10741
|
+
content?: never;
|
|
10742
|
+
};
|
|
10743
|
+
/** @description Invalid or unverified token */
|
|
10744
|
+
401: {
|
|
10745
|
+
headers: {
|
|
10746
|
+
[name: string]: unknown;
|
|
10747
|
+
};
|
|
10748
|
+
content?: never;
|
|
10749
|
+
};
|
|
10750
|
+
/** @description Email already registered (no auto-linking) */
|
|
10751
|
+
409: {
|
|
10752
|
+
headers: {
|
|
10753
|
+
[name: string]: unknown;
|
|
10754
|
+
};
|
|
10755
|
+
content?: never;
|
|
10756
|
+
};
|
|
10757
|
+
};
|
|
10758
|
+
};
|
|
10759
|
+
passkeyTxAssertBegin: {
|
|
10760
|
+
parameters: {
|
|
10761
|
+
query?: never;
|
|
10762
|
+
header?: never;
|
|
10763
|
+
path?: never;
|
|
10764
|
+
cookie?: never;
|
|
10765
|
+
};
|
|
10766
|
+
requestBody?: never;
|
|
10767
|
+
responses: {
|
|
10768
|
+
/** @description WebAuthn challenge */
|
|
10769
|
+
200: {
|
|
10770
|
+
headers: {
|
|
10771
|
+
[name: string]: unknown;
|
|
10772
|
+
};
|
|
10773
|
+
content?: never;
|
|
10774
|
+
};
|
|
10775
|
+
};
|
|
10776
|
+
};
|
|
10777
|
+
passkeyTxAssertComplete: {
|
|
10778
|
+
parameters: {
|
|
10779
|
+
query?: never;
|
|
10780
|
+
header?: never;
|
|
10781
|
+
path?: never;
|
|
10782
|
+
cookie?: never;
|
|
10783
|
+
};
|
|
10784
|
+
requestBody?: never;
|
|
10785
|
+
responses: {
|
|
10786
|
+
/** @description Passkey token for X-Passkey-Token header */
|
|
10787
|
+
200: {
|
|
10788
|
+
headers: {
|
|
10789
|
+
[name: string]: unknown;
|
|
10790
|
+
};
|
|
10791
|
+
content?: never;
|
|
10792
|
+
};
|
|
10793
|
+
};
|
|
10794
|
+
};
|
|
10276
10795
|
}
|
|
10277
10796
|
//# sourceMappingURL=api-types.d.ts.map
|