@unlink-xyz/sdk 0.3.0-canary.501 → 0.3.0-canary.511
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/admin/index.d.ts +6 -6
- package/dist/admin/index.js +2 -2
- package/dist/advanced/index.d.ts +6 -6
- package/dist/advanced/index.js +11 -3
- package/dist/browser/index.d.ts +3 -3
- package/dist/browser/index.js +3 -3
- package/dist/{chunk-RHFB7P35.js → chunk-N6P75QSX.js} +3 -0
- package/dist/{chunk-YEUVDZW5.js → chunk-RWBZRCJK.js} +2 -2
- package/dist/{chunk-NCXAEAWH.js → chunk-SS4R5VSZ.js} +83 -1
- package/dist/{chunk-WIZUQFV2.js → chunk-XGV4UBTY.js} +1 -1
- package/dist/client/index.d.ts +6 -6
- package/dist/client/index.js +3 -3
- package/dist/{client-core-W6SmH0BR.d.ts → client-core-BWfc7DfB.d.ts} +93 -5
- package/dist/crypto/index.d.ts +1 -1
- package/dist/{environments-CjFfeBbS.d.ts → environments-CV1goEMX.d.ts} +3 -0
- package/dist/{errors-D8if5ThL.d.ts → errors-DG4yuYVt.d.ts} +171 -0
- package/dist/{queries-B92_iYX0.d.ts → queries-Sv1fEPc7.d.ts} +1 -1
- package/package.json +1 -1
package/dist/admin/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Client } from 'openapi-fetch';
|
|
2
|
-
import { R as RegistrationPayload, a as RegistrationPayloadWire, c as components, p as paths } from '../errors-
|
|
3
|
-
export { A as AccountKeys, b as ApiError, C as CapabilityError, d as CapabilityErrorCode, e as CapabilityErrorOptions, T as TimeoutError, U as UnlinkError, V as ValidationError, f as assertRegistrationPayloadWire, g as fromRegistrationPayloadWire, t as toRegistrationPayload, h as toRegistrationPayloadWire } from '../errors-
|
|
4
|
-
import { B as BalancesData, T as TransactionListData, I as IssueAuthorizationTokenParams, A as AuthorizationToken } from '../queries-
|
|
5
|
-
export { i as issueAuthorizationToken } from '../queries-
|
|
6
|
-
import { E as EnvironmentName } from '../environments-
|
|
7
|
-
export { a as ENVIRONMENTS } from '../environments-
|
|
2
|
+
import { R as RegistrationPayload, a as RegistrationPayloadWire, c as components, p as paths } from '../errors-DG4yuYVt.js';
|
|
3
|
+
export { A as AccountKeys, b as ApiError, C as CapabilityError, d as CapabilityErrorCode, e as CapabilityErrorOptions, T as TimeoutError, U as UnlinkError, V as ValidationError, f as assertRegistrationPayloadWire, g as fromRegistrationPayloadWire, t as toRegistrationPayload, h as toRegistrationPayloadWire } from '../errors-DG4yuYVt.js';
|
|
4
|
+
import { B as BalancesData, T as TransactionListData, I as IssueAuthorizationTokenParams, A as AuthorizationToken } from '../queries-Sv1fEPc7.js';
|
|
5
|
+
export { i as issueAuthorizationToken } from '../queries-Sv1fEPc7.js';
|
|
6
|
+
import { E as EnvironmentName } from '../environments-CV1goEMX.js';
|
|
7
|
+
export { a as ENVIRONMENTS } from '../environments-CV1goEMX.js';
|
|
8
8
|
|
|
9
9
|
type EnvironmentInfo = components["schemas"]["EnvironmentInfo"];
|
|
10
10
|
type TransactionStatus = components["schemas"]["TransactionStatus"];
|
package/dist/admin/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createHttpClient,
|
|
3
3
|
issueAuthorizationToken
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-XGV4UBTY.js";
|
|
5
5
|
import {
|
|
6
6
|
ENVIRONMENTS,
|
|
7
7
|
getEnvironment,
|
|
8
8
|
getUserBalances,
|
|
9
9
|
getUserTransactions,
|
|
10
10
|
resolveEngineUrl
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-N6P75QSX.js";
|
|
12
12
|
import {
|
|
13
13
|
ApiError,
|
|
14
14
|
CapabilityError,
|
package/dist/advanced/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as openapi_fetch from 'openapi-fetch';
|
|
2
2
|
import { Client } from 'openapi-fetch';
|
|
3
|
-
import { p as paths, S as SignSigningRequestFn } from '../errors-
|
|
4
|
-
export { A as AccountKeys, b as ApiError, C as CapabilityError, d as CapabilityErrorCode, e as CapabilityErrorOptions, R as RegistrationPayload, a as RegistrationPayloadWire, m as Signature, n as SigningRequest, T as TimeoutError, U as UnlinkError, V as ValidationError, f as assertRegistrationPayloadWire, u as assertValidSignature, g as fromRegistrationPayloadWire, v as signSigningRequest, t as toRegistrationPayload, h as toRegistrationPayloadWire, w as verifyMessageHash } from '../errors-
|
|
5
|
-
export { a as ENVIRONMENTS, E as EnvironmentName, r as resolveEngineUrl } from '../environments-
|
|
6
|
-
import { S as SignTypedDataFn, P as Permit2NonceManager, T as TransactionResult, a as TransferInstruction, b as Permit2TypedData, c as Permit2WitnessTypedData } from '../client-core-
|
|
7
|
-
export { C as CreateExecutionAccountClientOptions, D as DepositBackParams, d as DepositBackPreSignParams, E as ENTRY_POINT_V07_ADDRESS, e as Eip1193ProviderOptions, f as EthersProviderLike, g as EthersProviderOptions, h as EthersSignerLike, i as EvmProvider, j as EvmTransactionRequest, k as ExecuteCall, l as ExecuteNextAction, m as ExecuteRecoveryError, n as ExecuteRecoveryMetadata, o as ExecuteRecoveryStage, p as ExecuteResult, q as ExecuteSubmitPayload, r as
|
|
8
|
-
export { A as AuthorizationToken, a as Balance, B as BalancesData, E as EnvironmentInfo, I as IssueAuthorizationTokenParams, b as Transaction, T as TransactionListData, g as getEnvironment, c as getTransaction, d as getUserBalances, e as getUserTransactions, i as issueAuthorizationToken } from '../queries-
|
|
3
|
+
import { p as paths, S as SignSigningRequestFn } from '../errors-DG4yuYVt.js';
|
|
4
|
+
export { A as AccountKeys, b as ApiError, C as CapabilityError, d as CapabilityErrorCode, e as CapabilityErrorOptions, R as RegistrationPayload, a as RegistrationPayloadWire, m as Signature, n as SigningRequest, T as TimeoutError, U as UnlinkError, V as ValidationError, f as assertRegistrationPayloadWire, u as assertValidSignature, g as fromRegistrationPayloadWire, v as signSigningRequest, t as toRegistrationPayload, h as toRegistrationPayloadWire, w as verifyMessageHash } from '../errors-DG4yuYVt.js';
|
|
5
|
+
export { a as ENVIRONMENTS, E as EnvironmentName, r as resolveEngineUrl } from '../environments-CV1goEMX.js';
|
|
6
|
+
import { S as SignTypedDataFn, P as Permit2NonceManager, T as TransactionResult, a as TransferInstruction, b as Permit2TypedData, c as Permit2WitnessTypedData } from '../client-core-BWfc7DfB.js';
|
|
7
|
+
export { C as CreateExecutionAccountClientOptions, D as DepositBackParams, d as DepositBackPreSignParams, E as ENTRY_POINT_V07_ADDRESS, e as Eip1193ProviderOptions, f as EthersProviderLike, g as EthersProviderOptions, h as EthersSignerLike, i as EvmProvider, j as EvmTransactionRequest, k as ExecuteCall, l as ExecuteNextAction, m as ExecuteRecoveryError, n as ExecuteRecoveryMetadata, o as ExecuteRecoveryStage, p as ExecuteResult, q as ExecuteSubmitPayload, r as ExecutionAccount, s as ExecutionAccountClient, t as ExecutionAccountDiscovery, u as ExecutionAccountIndices, v as ExecutionAccountListResponse, w as ExecutionAccountNumberish, x as ExecutionAccountPathIndices, y as ExecutionAccountPolicy, z as ExecutionAccountReservation, A as ExecutionAccountStatus, B as ExecutionIntent, F as ExecutionIntentTypedData, G as ExecutionReservation, H as ExecutionSession, I as ExecutionSessionStatus, J as ExecutionStatus, K as GetCodeFn, L as PollExecuteStatusOptions, M as PreSignedPermit2DepositBack, N as PrepareDepositBack, O as SignedExecutionIntent, Q as SignerProviderOptions, R as TERMINAL_EXECUTE_STATUSES, U as TERMINAL_TRANSACTION_STATUSES, V as TransactionHandle, W as TransactionHandleWaitOptions, X as ViemAccountProviderOptions, Y as ViemLocalAccountLike, Z as ViemProviderOptions, _ as ViemPublicClientLike, $ as ViemWalletClientLike, a0 as buildExecutionIntentTypedData, a1 as computeSoladyERC4337InitCodeHash, a2 as computeSoladyExecutionAccountAddress, a3 as createExecutionAccountClient, a4 as encodeExecutionIntentUserOperationSignature, a5 as evm, a6 as executionAccountPath, a7 as fromWireExecutionIntent, a8 as getExecuteNextAction, a9 as getExecuteSession, aa as getExecutionAccount, ab as getExecutionAccountByAddress, ac as hashExecutionIntent, ad as listExecutionAccounts, ae as ownerAddressToOwnSalt, af as pollExecuteStatus, ag as prepareExecute, ah as reserveExecutionAccount, ai as resolveExecutionAccountPolicy, aj as submitExecute } from '../client-core-BWfc7DfB.js';
|
|
8
|
+
export { A as AuthorizationToken, a as Balance, B as BalancesData, E as EnvironmentInfo, I as IssueAuthorizationTokenParams, b as Transaction, T as TransactionListData, g as getEnvironment, c as getTransaction, d as getUserBalances, e as getUserTransactions, i as issueAuthorizationToken } from '../queries-Sv1fEPc7.js';
|
|
9
9
|
import 'viem';
|
|
10
10
|
|
|
11
11
|
interface HttpClientOptions {
|
package/dist/advanced/index.js
CHANGED
|
@@ -18,20 +18,24 @@ import {
|
|
|
18
18
|
fromWireExecutionIntent,
|
|
19
19
|
getExecuteNextAction,
|
|
20
20
|
getExecuteSession,
|
|
21
|
+
getExecutionAccount,
|
|
22
|
+
getExecutionAccountByAddress,
|
|
21
23
|
getPermit2Nonce,
|
|
22
24
|
hashExecutionIntent,
|
|
25
|
+
listExecutionAccounts,
|
|
23
26
|
ownerAddressToOwnSalt,
|
|
24
27
|
pollExecuteStatus,
|
|
25
28
|
prepareExecute,
|
|
26
29
|
reserveExecutionAccount,
|
|
30
|
+
resolveExecutionAccountPolicy,
|
|
27
31
|
submitExecute,
|
|
28
32
|
transfer,
|
|
29
33
|
withdraw
|
|
30
|
-
} from "../chunk-
|
|
34
|
+
} from "../chunk-SS4R5VSZ.js";
|
|
31
35
|
import {
|
|
32
36
|
createHttpClient,
|
|
33
37
|
issueAuthorizationToken
|
|
34
|
-
} from "../chunk-
|
|
38
|
+
} from "../chunk-XGV4UBTY.js";
|
|
35
39
|
import {
|
|
36
40
|
ENVIRONMENTS,
|
|
37
41
|
getEnvironment,
|
|
@@ -39,7 +43,7 @@ import {
|
|
|
39
43
|
getUserBalances,
|
|
40
44
|
getUserTransactions,
|
|
41
45
|
resolveEngineUrl
|
|
42
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-N6P75QSX.js";
|
|
43
47
|
import {
|
|
44
48
|
ApiError,
|
|
45
49
|
CapabilityError,
|
|
@@ -86,17 +90,21 @@ export {
|
|
|
86
90
|
getEnvironment,
|
|
87
91
|
getExecuteNextAction,
|
|
88
92
|
getExecuteSession,
|
|
93
|
+
getExecutionAccount,
|
|
94
|
+
getExecutionAccountByAddress,
|
|
89
95
|
getPermit2Nonce,
|
|
90
96
|
getTransaction,
|
|
91
97
|
getUserBalances,
|
|
92
98
|
getUserTransactions,
|
|
93
99
|
hashExecutionIntent,
|
|
94
100
|
issueAuthorizationToken,
|
|
101
|
+
listExecutionAccounts,
|
|
95
102
|
ownerAddressToOwnSalt,
|
|
96
103
|
pollExecuteStatus,
|
|
97
104
|
prepareExecute,
|
|
98
105
|
reserveExecutionAccount,
|
|
99
106
|
resolveEngineUrl,
|
|
107
|
+
resolveExecutionAccountPolicy,
|
|
100
108
|
signSigningRequest,
|
|
101
109
|
submitExecute,
|
|
102
110
|
toRegistrationPayload,
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { AuthorizationTokenProviderWithContext, AuthorizationTokenRequestContext, AuthorizationTokenSource, CreateUnlinkClientOptions, DEFAULT_AUTHORIZATION_TOKEN_URL, DEFAULT_REGISTER_URL, createUnlinkClient } from '../client/index.js';
|
|
2
|
-
export { a as ENVIRONMENTS, E as EnvironmentName } from '../environments-
|
|
3
|
-
export {
|
|
4
|
-
export { i as AccountEthereumSignatureOptions, j as AccountExportPayload, A as AccountKeys, k as AccountMnemonicOptions, l as AccountSeedOptions, b as ApiError, C as CapabilityError, d as CapabilityErrorCode, e as CapabilityErrorOptions, R as RegistrationPayload, a as RegistrationPayloadWire, T as TimeoutError, U as UnlinkError, o as UnlinkLocalAccount, V as ValidationError } from '../errors-
|
|
2
|
+
export { a as ENVIRONMENTS, E as EnvironmentName } from '../environments-CV1goEMX.js';
|
|
3
|
+
export { al as AccountMetaMaskOptions, am as AccountMetaMaskResult, an as ApprovalParams, ao as CoreExecutePollOptions, ap as CoreTxPollOptions, aq as DepositParams, ar as DepositWithApprovalParams, aH as Eip1193Provider, e as Eip1193ProviderOptions, f as EthersProviderLike, g as EthersProviderOptions, h as EthersSignerLike, i as EvmProvider, j as EvmTransactionRequest, p as ExecuteResult, r as ExecutionAccount, v as ExecutionAccountListResponse, y as ExecutionAccountPolicy, z as ExecutionAccountReservation, as as ExecutionAccounts, H as ExecutionSession, I as ExecutionSessionStatus, at as Faucet, au as FaucetRequestPrivateTokensParams, av as FaucetRequestTestTokensParams, aw as GetBalancesParams, ax as GetExecutionAccountByAddressParams, ay as GetTransactionsParams, az as ListExecutionAccountsParams, aA as PollExecuteOptions, aB as PollOptions, aC as ReserveExecutionAccountParams, aD as SessionExecuteParams, Q as SignerProviderOptions, V as TransactionHandle, W as TransactionHandleWaitOptions, T as TransactionResult, a as TransferInstruction, aE as TransferParams, ak as UnlinkClient, X as ViemAccountProviderOptions, Y as ViemLocalAccountLike, Z as ViemProviderOptions, _ as ViemPublicClientLike, $ as ViemWalletClientLike, aF as WithdrawParams, aG as account, a5 as evm } from '../client-core-BWfc7DfB.js';
|
|
4
|
+
export { i as AccountEthereumSignatureOptions, j as AccountExportPayload, A as AccountKeys, k as AccountMnemonicOptions, l as AccountSeedOptions, b as ApiError, C as CapabilityError, d as CapabilityErrorCode, e as CapabilityErrorOptions, R as RegistrationPayload, a as RegistrationPayloadWire, T as TimeoutError, U as UnlinkError, o as UnlinkLocalAccount, V as ValidationError } from '../errors-DG4yuYVt.js';
|
|
5
5
|
import 'openapi-fetch';
|
|
6
6
|
import 'viem';
|
package/dist/browser/index.js
CHANGED
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
DEFAULT_AUTHORIZATION_TOKEN_URL,
|
|
3
3
|
DEFAULT_REGISTER_URL,
|
|
4
4
|
createUnlinkClient
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-RWBZRCJK.js";
|
|
6
6
|
import {
|
|
7
7
|
evm
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-SS4R5VSZ.js";
|
|
9
9
|
import {
|
|
10
10
|
ENVIRONMENTS,
|
|
11
11
|
account
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-N6P75QSX.js";
|
|
13
13
|
import {
|
|
14
14
|
ApiError,
|
|
15
15
|
CapabilityError,
|
|
@@ -124,6 +124,9 @@ var ENVIRONMENTS = {
|
|
|
124
124
|
},
|
|
125
125
|
"base-staging": {
|
|
126
126
|
engineUrl: "https://base-staging-api.unlink.xyz"
|
|
127
|
+
},
|
|
128
|
+
"monad-testnet-staging": {
|
|
129
|
+
engineUrl: "https://monad-testnet-staging-api.unlink.xyz"
|
|
127
130
|
}
|
|
128
131
|
};
|
|
129
132
|
function resolveEngineUrl(target) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UnlinkClientImpl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SS4R5VSZ.js";
|
|
4
4
|
import {
|
|
5
5
|
createBodySafeFetch,
|
|
6
6
|
createRetryFetch,
|
|
7
7
|
getEnvironment,
|
|
8
8
|
resolveEngineUrl
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-N6P75QSX.js";
|
|
10
10
|
import {
|
|
11
11
|
ApiError,
|
|
12
12
|
CapabilityError,
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
getTransaction,
|
|
3
3
|
getUserBalances,
|
|
4
4
|
getUserTransactions
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-N6P75QSX.js";
|
|
6
6
|
import {
|
|
7
7
|
ApiError,
|
|
8
8
|
CapabilityError,
|
|
@@ -1534,6 +1534,55 @@ function sleep(ms) {
|
|
|
1534
1534
|
});
|
|
1535
1535
|
}
|
|
1536
1536
|
|
|
1537
|
+
// src/transactions/execution-accounts.ts
|
|
1538
|
+
function resolveExecutionAccountPolicy(policy) {
|
|
1539
|
+
if (policy == null || policy === "fresh") {
|
|
1540
|
+
return { allocationPolicy: "first_unused" };
|
|
1541
|
+
}
|
|
1542
|
+
if (policy === "reuseLatest") {
|
|
1543
|
+
return { allocationPolicy: "most_recent_active" };
|
|
1544
|
+
}
|
|
1545
|
+
if (typeof policy === "object" && "accountIndex" in policy) {
|
|
1546
|
+
return { allocationPolicy: "by_index", accountIndex: policy.accountIndex };
|
|
1547
|
+
}
|
|
1548
|
+
throw new ValidationError(
|
|
1549
|
+
`executionAccounts.reserve: invalid policy ${JSON.stringify(policy)}`
|
|
1550
|
+
);
|
|
1551
|
+
}
|
|
1552
|
+
async function listExecutionAccounts(client, params) {
|
|
1553
|
+
const { data, error } = await client.GET("/execute/accounts", {
|
|
1554
|
+
params: {
|
|
1555
|
+
query: {
|
|
1556
|
+
unlink_address: params.unlinkAddress,
|
|
1557
|
+
...params.environment != null && { environment: params.environment },
|
|
1558
|
+
...params.accountAddress != null && {
|
|
1559
|
+
account_address: params.accountAddress
|
|
1560
|
+
},
|
|
1561
|
+
...params.limit != null && { limit: params.limit },
|
|
1562
|
+
...params.cursor != null && { cursor: params.cursor }
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
});
|
|
1566
|
+
if (error) throw new ApiError("executionAccounts.list", error);
|
|
1567
|
+
return data.data;
|
|
1568
|
+
}
|
|
1569
|
+
async function getExecutionAccount(client, accountId) {
|
|
1570
|
+
const { data, error } = await client.GET("/execute/accounts/{account_id}", {
|
|
1571
|
+
params: { path: { account_id: accountId } }
|
|
1572
|
+
});
|
|
1573
|
+
if (error) throw new ApiError("executionAccounts.get", error);
|
|
1574
|
+
return data.data;
|
|
1575
|
+
}
|
|
1576
|
+
async function getExecutionAccountByAddress(client, params) {
|
|
1577
|
+
const page = await listExecutionAccounts(client, {
|
|
1578
|
+
unlinkAddress: params.unlinkAddress,
|
|
1579
|
+
environment: params.environment,
|
|
1580
|
+
accountAddress: params.address,
|
|
1581
|
+
limit: 1
|
|
1582
|
+
});
|
|
1583
|
+
return page.accounts[0] ?? null;
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1537
1586
|
// src/transactions/sign-submit.ts
|
|
1538
1587
|
async function submitSignature(client, params) {
|
|
1539
1588
|
const { data, error } = await client.POST("/transactions/{tx_id}/submit", {
|
|
@@ -1938,6 +1987,7 @@ var ClientCore = class {
|
|
|
1938
1987
|
getDefaultSigner;
|
|
1939
1988
|
loadSigningHooks;
|
|
1940
1989
|
faucet;
|
|
1990
|
+
executionAccounts;
|
|
1941
1991
|
constructor(options) {
|
|
1942
1992
|
this.client = options.client;
|
|
1943
1993
|
this.account = options.account;
|
|
@@ -1990,6 +2040,34 @@ var ClientCore = class {
|
|
|
1990
2040
|
});
|
|
1991
2041
|
}
|
|
1992
2042
|
};
|
|
2043
|
+
this.executionAccounts = {
|
|
2044
|
+
list: async (params = {}) => {
|
|
2045
|
+
const unlinkAddress = await this.loadAddress();
|
|
2046
|
+
return listExecutionAccounts(this.client, {
|
|
2047
|
+
unlinkAddress,
|
|
2048
|
+
environment: params.environment,
|
|
2049
|
+
accountAddress: params.accountAddress,
|
|
2050
|
+
limit: params.limit,
|
|
2051
|
+
cursor: params.cursor
|
|
2052
|
+
});
|
|
2053
|
+
},
|
|
2054
|
+
get: async (accountId) => getExecutionAccount(this.client, accountId),
|
|
2055
|
+
getByAddress: async (params) => {
|
|
2056
|
+
const [unlinkAddress, environmentInfo] = await Promise.all([
|
|
2057
|
+
this.loadAddress(),
|
|
2058
|
+
this.loadEnvironmentInfo()
|
|
2059
|
+
]);
|
|
2060
|
+
return getExecutionAccountByAddress(this.client, {
|
|
2061
|
+
unlinkAddress,
|
|
2062
|
+
environment: params.environment ?? environmentInfo.name,
|
|
2063
|
+
address: params.address
|
|
2064
|
+
});
|
|
2065
|
+
},
|
|
2066
|
+
reserve: async (params = {}) => {
|
|
2067
|
+
const { allocationPolicy, accountIndex } = resolveExecutionAccountPolicy(params.policy);
|
|
2068
|
+
return this.reserveExecutionAccount({ allocationPolicy, accountIndex });
|
|
2069
|
+
}
|
|
2070
|
+
};
|
|
1993
2071
|
}
|
|
1994
2072
|
// -------------- identity --------------
|
|
1995
2073
|
async getAddress() {
|
|
@@ -2640,6 +2718,10 @@ export {
|
|
|
2640
2718
|
getExecuteSession,
|
|
2641
2719
|
pollExecuteStatus,
|
|
2642
2720
|
fromWireExecutionIntent,
|
|
2721
|
+
resolveExecutionAccountPolicy,
|
|
2722
|
+
listExecutionAccounts,
|
|
2723
|
+
getExecutionAccount,
|
|
2724
|
+
getExecutionAccountByAddress,
|
|
2643
2725
|
transfer,
|
|
2644
2726
|
withdraw,
|
|
2645
2727
|
TERMINAL_TRANSACTION_STATUSES,
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { E as EnvironmentName } from '../environments-
|
|
2
|
-
export { a as ENVIRONMENTS } from '../environments-
|
|
3
|
-
import { i as EvmProvider,
|
|
4
|
-
export {
|
|
5
|
-
import { o as UnlinkLocalAccount, R as RegistrationPayload } from '../errors-
|
|
6
|
-
export { i as AccountEthereumSignatureOptions, j as AccountExportPayload, A as AccountKeys, k as AccountMnemonicOptions, l as AccountSeedOptions, b as ApiError, C as CapabilityError, d as CapabilityErrorCode, e as CapabilityErrorOptions, a as RegistrationPayloadWire, T as TimeoutError, U as UnlinkError, V as ValidationError } from '../errors-
|
|
1
|
+
import { E as EnvironmentName } from '../environments-CV1goEMX.js';
|
|
2
|
+
export { a as ENVIRONMENTS } from '../environments-CV1goEMX.js';
|
|
3
|
+
import { i as EvmProvider, ak as UnlinkClient } from '../client-core-BWfc7DfB.js';
|
|
4
|
+
export { al as AccountMetaMaskOptions, am as AccountMetaMaskResult, an as ApprovalParams, ao as CoreExecutePollOptions, ap as CoreTxPollOptions, aq as DepositParams, ar as DepositWithApprovalParams, e as Eip1193ProviderOptions, f as EthersProviderLike, g as EthersProviderOptions, h as EthersSignerLike, j as EvmTransactionRequest, p as ExecuteResult, r as ExecutionAccount, v as ExecutionAccountListResponse, y as ExecutionAccountPolicy, z as ExecutionAccountReservation, as as ExecutionAccounts, H as ExecutionSession, I as ExecutionSessionStatus, at as Faucet, au as FaucetRequestPrivateTokensParams, av as FaucetRequestTestTokensParams, aw as GetBalancesParams, ax as GetExecutionAccountByAddressParams, ay as GetTransactionsParams, az as ListExecutionAccountsParams, aA as PollExecuteOptions, aB as PollOptions, aC as ReserveExecutionAccountParams, aD as SessionExecuteParams, Q as SignerProviderOptions, V as TransactionHandle, W as TransactionHandleWaitOptions, T as TransactionResult, a as TransferInstruction, aE as TransferParams, X as ViemAccountProviderOptions, Y as ViemLocalAccountLike, Z as ViemProviderOptions, _ as ViemPublicClientLike, $ as ViemWalletClientLike, aF as WithdrawParams, aG as account, a5 as evm } from '../client-core-BWfc7DfB.js';
|
|
5
|
+
import { o as UnlinkLocalAccount, R as RegistrationPayload } from '../errors-DG4yuYVt.js';
|
|
6
|
+
export { i as AccountEthereumSignatureOptions, j as AccountExportPayload, A as AccountKeys, k as AccountMnemonicOptions, l as AccountSeedOptions, b as ApiError, C as CapabilityError, d as CapabilityErrorCode, e as CapabilityErrorOptions, a as RegistrationPayloadWire, T as TimeoutError, U as UnlinkError, V as ValidationError } from '../errors-DG4yuYVt.js';
|
|
7
7
|
import 'openapi-fetch';
|
|
8
8
|
import 'viem';
|
|
9
9
|
|
package/dist/client/index.js
CHANGED
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
DEFAULT_AUTHORIZATION_TOKEN_URL,
|
|
3
3
|
DEFAULT_REGISTER_URL,
|
|
4
4
|
createUnlinkClient
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-RWBZRCJK.js";
|
|
6
6
|
import {
|
|
7
7
|
evm
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-SS4R5VSZ.js";
|
|
9
9
|
import {
|
|
10
10
|
ENVIRONMENTS,
|
|
11
11
|
account
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-N6P75QSX.js";
|
|
13
13
|
import {
|
|
14
14
|
ApiError,
|
|
15
15
|
CapabilityError,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Client } from 'openapi-fetch';
|
|
2
|
-
import { o as UnlinkLocalAccount, A as AccountKeys, l as AccountSeedOptions, k as AccountMnemonicOptions, i as AccountEthereumSignatureOptions, j as AccountExportPayload, q as UnlinkRegistrationProvider, R as RegistrationPayload, c as components, x as AccountProvider, p as paths, S as SignSigningRequestFn, m as Signature } from './errors-
|
|
2
|
+
import { o as UnlinkLocalAccount, A as AccountKeys, l as AccountSeedOptions, k as AccountMnemonicOptions, i as AccountEthereumSignatureOptions, j as AccountExportPayload, q as UnlinkRegistrationProvider, R as RegistrationPayload, c as components, x as AccountProvider, p as paths, S as SignSigningRequestFn, m as Signature } from './errors-DG4yuYVt.js';
|
|
3
3
|
import { Hex } from 'viem';
|
|
4
4
|
|
|
5
5
|
interface AccountMetaMaskOptions {
|
|
@@ -546,7 +546,7 @@ declare class Permit2NonceManager {
|
|
|
546
546
|
private fetchWindow;
|
|
547
547
|
}
|
|
548
548
|
|
|
549
|
-
type ExecutionAccountAllocationPolicy$
|
|
549
|
+
type ExecutionAccountAllocationPolicy$2 = components["schemas"]["ExecutionAccountAllocationPolicy"];
|
|
550
550
|
type ExecutionAccountReservation = components["schemas"]["ExecutionAccountReservation"];
|
|
551
551
|
type ExecutionPrepareResponse = components["schemas"]["ExecutionPrepareResponse"];
|
|
552
552
|
type ExecutionSession = components["schemas"]["ExecutionSession"];
|
|
@@ -598,7 +598,7 @@ interface ExecuteParams {
|
|
|
598
598
|
*/
|
|
599
599
|
calls: ExecuteCall[];
|
|
600
600
|
/** Backend allocation policy. Defaults to first_unused. */
|
|
601
|
-
allocationPolicy?: ExecutionAccountAllocationPolicy$
|
|
601
|
+
allocationPolicy?: ExecutionAccountAllocationPolicy$2;
|
|
602
602
|
/** Required when allocationPolicy is by_index. */
|
|
603
603
|
accountIndex?: number;
|
|
604
604
|
/** Optional deposit-back: returns leftover tokens to the user's pool note. */
|
|
@@ -666,7 +666,7 @@ declare function getExecuteNextAction(session: ExecutionSession): ExecuteNextAct
|
|
|
666
666
|
declare function reserveExecutionAccount(client: Client<paths>, params: {
|
|
667
667
|
unlinkAddress: string;
|
|
668
668
|
environment: string;
|
|
669
|
-
allocationPolicy?: ExecutionAccountAllocationPolicy$
|
|
669
|
+
allocationPolicy?: ExecutionAccountAllocationPolicy$2;
|
|
670
670
|
accountIndex?: number;
|
|
671
671
|
}): Promise<ExecutionAccountReservation>;
|
|
672
672
|
declare function prepareExecute(client: Client<paths>, body: {
|
|
@@ -691,6 +691,47 @@ declare function getExecuteSession(client: Client<paths>, executionId: string):
|
|
|
691
691
|
declare function pollExecuteStatus(client: Client<paths>, executionId: string, options?: PollExecuteStatusOptions): Promise<ExecutionSession>;
|
|
692
692
|
declare function fromWireExecutionIntent(wire: components["schemas"]["ExecutionIntent"] | null | undefined): ExecutionIntent;
|
|
693
693
|
|
|
694
|
+
/** ExecutionAccount identity + lifecycle metadata (wire shape, snake_case). */
|
|
695
|
+
type ExecutionAccount = components["schemas"]["ExecutionAccount"];
|
|
696
|
+
type ExecutionAccountListResponse = components["schemas"]["ExecutionAccountListResponse"];
|
|
697
|
+
type ExecutionAccountAllocationPolicy$1 = components["schemas"]["ExecutionAccountAllocationPolicy"];
|
|
698
|
+
/**
|
|
699
|
+
* Public allocation policy for `executionAccounts.reserve`, mapped onto the
|
|
700
|
+
* backend `allocation_policy`:
|
|
701
|
+
* - `"fresh"` → `first_unused`
|
|
702
|
+
* - `"reuseLatest"` → `most_recent_active`
|
|
703
|
+
* - `{ accountIndex }` → `by_index`
|
|
704
|
+
*/
|
|
705
|
+
type ExecutionAccountPolicy = "fresh" | "reuseLatest" | {
|
|
706
|
+
accountIndex: number;
|
|
707
|
+
};
|
|
708
|
+
declare function resolveExecutionAccountPolicy(policy: ExecutionAccountPolicy | undefined): {
|
|
709
|
+
allocationPolicy: ExecutionAccountAllocationPolicy$1;
|
|
710
|
+
accountIndex?: number;
|
|
711
|
+
};
|
|
712
|
+
interface ListExecutionAccountsRequest {
|
|
713
|
+
/** Caller's bound Unlink address; scopes discovery to that user. */
|
|
714
|
+
unlinkAddress: string;
|
|
715
|
+
environment?: string;
|
|
716
|
+
accountAddress?: string;
|
|
717
|
+
limit?: number;
|
|
718
|
+
cursor?: string;
|
|
719
|
+
}
|
|
720
|
+
declare function listExecutionAccounts(client: Client<paths>, params: ListExecutionAccountsRequest): Promise<ExecutionAccountListResponse>;
|
|
721
|
+
declare function getExecutionAccount(client: Client<paths>, accountId: string): Promise<ExecutionAccount>;
|
|
722
|
+
interface GetExecutionAccountByAddressRequest {
|
|
723
|
+
unlinkAddress: string;
|
|
724
|
+
environment: string;
|
|
725
|
+
address: string;
|
|
726
|
+
}
|
|
727
|
+
/**
|
|
728
|
+
* Convenience over {@link listExecutionAccounts}: resolve the single account at
|
|
729
|
+
* `address` (or `null`). The `(environment, account_address)` unique index
|
|
730
|
+
* guarantees at most one owned account, so this is exactly
|
|
731
|
+
* `list({ accountAddress: address, limit: 1 }).accounts[0] ?? null`.
|
|
732
|
+
*/
|
|
733
|
+
declare function getExecutionAccountByAddress(client: Client<paths>, params: GetExecutionAccountByAddressRequest): Promise<ExecutionAccount | null>;
|
|
734
|
+
|
|
694
735
|
type FaucetMintResponse = components["schemas"]["FaucetMintResponse"];
|
|
695
736
|
type FaucetTransferResponse = components["schemas"]["FaucetTransferResponse"];
|
|
696
737
|
type TransactionStatus = components["schemas"]["TransactionStatus"];
|
|
@@ -791,6 +832,50 @@ interface Faucet {
|
|
|
791
832
|
/** Transfer shielded tokens from the faucet into an Unlink account (inside the privacy pool). */
|
|
792
833
|
requestPrivateTokens(params: FaucetRequestPrivateTokensParams): Promise<FaucetTransferResponse>;
|
|
793
834
|
}
|
|
835
|
+
/** Parameters for {@link ExecutionAccounts.list}. */
|
|
836
|
+
interface ListExecutionAccountsParams {
|
|
837
|
+
environment?: string;
|
|
838
|
+
/** Resolve a single account by its on-chain address (requires `environment`). */
|
|
839
|
+
accountAddress?: string;
|
|
840
|
+
/** Page size, 1–100 (default 50). */
|
|
841
|
+
limit?: number;
|
|
842
|
+
/** Opaque cursor from a previous page's `next_cursor`. */
|
|
843
|
+
cursor?: string;
|
|
844
|
+
}
|
|
845
|
+
/** Parameters for {@link ExecutionAccounts.getByAddress}. */
|
|
846
|
+
interface GetExecutionAccountByAddressParams {
|
|
847
|
+
/** Defaults to the client's bound environment. */
|
|
848
|
+
environment?: string;
|
|
849
|
+
address: string;
|
|
850
|
+
}
|
|
851
|
+
/** Parameters for {@link ExecutionAccounts.reserve}. */
|
|
852
|
+
interface ReserveExecutionAccountParams {
|
|
853
|
+
/**
|
|
854
|
+
* Allocation policy (defaults to `"fresh"`):
|
|
855
|
+
* - `"fresh"` — a new account index (backend `first_unused`)
|
|
856
|
+
* - `"reuseLatest"` — the most recent reserved/active account (`most_recent_active`)
|
|
857
|
+
* - `{ accountIndex }` — a specific index (`by_index`)
|
|
858
|
+
*/
|
|
859
|
+
policy?: ExecutionAccountPolicy;
|
|
860
|
+
}
|
|
861
|
+
/**
|
|
862
|
+
* Per-user execution-account discovery + reservation. Exposes identity and
|
|
863
|
+
* lifecycle metadata only — never balances, positions, or note metadata.
|
|
864
|
+
*/
|
|
865
|
+
interface ExecutionAccounts {
|
|
866
|
+
/** List the caller's execution accounts (keyset-paginated). */
|
|
867
|
+
list(params?: ListExecutionAccountsParams): Promise<ExecutionAccountListResponse>;
|
|
868
|
+
/** Fetch one execution account by id. */
|
|
869
|
+
get(accountId: string): Promise<ExecutionAccount>;
|
|
870
|
+
/**
|
|
871
|
+
* Resolve a single account by its on-chain address (or `null`). Sugar over
|
|
872
|
+
* {@link ExecutionAccounts.list} with `limit: 1` — the
|
|
873
|
+
* `(environment, account_address)` unique index guarantees at most one match.
|
|
874
|
+
*/
|
|
875
|
+
getByAddress(params: GetExecutionAccountByAddressParams): Promise<ExecutionAccount | null>;
|
|
876
|
+
/** Reserve (or reuse) backend-authoritative account indices. */
|
|
877
|
+
reserve(params?: ReserveExecutionAccountParams): Promise<ExecutionAccountReservation>;
|
|
878
|
+
}
|
|
794
879
|
|
|
795
880
|
type BalancesData = components["schemas"]["BalancesData"];
|
|
796
881
|
type EnvironmentInfo = components["schemas"]["EnvironmentInfo"];
|
|
@@ -827,6 +912,9 @@ interface UnlinkClient {
|
|
|
827
912
|
withdraw(params: WithdrawParams): Promise<TransactionHandle>;
|
|
828
913
|
cancelTransaction(txId: string): Promise<void>;
|
|
829
914
|
execute(params: SessionExecuteParams): Promise<ExecuteResult>;
|
|
915
|
+
/** Per-user execution-account discovery + reservation. */
|
|
916
|
+
executionAccounts: ExecutionAccounts;
|
|
917
|
+
/** @deprecated Use {@link UnlinkClient.executionAccounts}.reserve instead. */
|
|
830
918
|
reserveExecutionAccount(params: {
|
|
831
919
|
allocationPolicy?: ExecutionAccountAllocationPolicy;
|
|
832
920
|
accountIndex?: number;
|
|
@@ -844,4 +932,4 @@ interface UnlinkClient {
|
|
|
844
932
|
faucet: Faucet;
|
|
845
933
|
}
|
|
846
934
|
|
|
847
|
-
export {
|
|
935
|
+
export { type ViemWalletClientLike as $, type ExecutionAccountStatus as A, type ExecutionIntent as B, type CreateExecutionAccountClientOptions as C, type DepositBackParams as D, ENTRY_POINT_V07_ADDRESS as E, type ExecutionIntentTypedData as F, type ExecutionReservation as G, type ExecutionSession as H, type ExecutionSessionStatus$1 as I, type ExecutionStatus as J, type GetCodeFn as K, type PollExecuteStatusOptions as L, type PreSignedPermit2DepositBack as M, type PrepareDepositBack as N, type SignedExecutionIntent as O, Permit2NonceManager as P, type SignerProviderOptions as Q, TERMINAL_EXECUTE_STATUSES as R, type SignTypedDataFn as S, type TransactionResult as T, TERMINAL_TRANSACTION_STATUSES as U, type TransactionHandle as V, type TransactionHandleWaitOptions as W, type ViemAccountProviderOptions as X, type ViemLocalAccountLike as Y, type ViemProviderOptions as Z, type ViemPublicClientLike as _, type TransferInstruction as a, buildExecutionIntentTypedData as a0, computeSoladyERC4337InitCodeHash as a1, computeSoladyExecutionAccountAddress as a2, createExecutionAccountClient as a3, encodeExecutionIntentUserOperationSignature as a4, evm as a5, executionAccountPath as a6, fromWireExecutionIntent as a7, getExecuteNextAction as a8, getExecuteSession as a9, type PollExecuteOptions as aA, type PollOptions as aB, type ReserveExecutionAccountParams as aC, type SessionExecuteParams as aD, type TransferParams as aE, type WithdrawParams as aF, account as aG, type Eip1193Provider as aH, getExecutionAccount as aa, getExecutionAccountByAddress as ab, hashExecutionIntent as ac, listExecutionAccounts as ad, ownerAddressToOwnSalt as ae, pollExecuteStatus as af, prepareExecute as ag, reserveExecutionAccount as ah, resolveExecutionAccountPolicy as ai, submitExecute as aj, type UnlinkClient as ak, type AccountMetaMaskOptions as al, type AccountMetaMaskResult as am, type ApprovalParams as an, type CoreExecutePollOptions as ao, type CoreTxPollOptions as ap, type DepositParams as aq, type DepositWithApprovalParams as ar, type ExecutionAccounts as as, type Faucet as at, type FaucetRequestPrivateTokensParams as au, type FaucetRequestTestTokensParams as av, type GetBalancesParams as aw, type GetExecutionAccountByAddressParams as ax, type GetTransactionsParams as ay, type ListExecutionAccountsParams as az, type Permit2TypedData as b, type Permit2WitnessTypedData as c, type DepositBackPreSignParams as d, type Eip1193ProviderOptions as e, type EthersProviderLike as f, type EthersProviderOptions as g, type EthersSignerLike as h, type EvmProvider as i, type EvmTransactionRequest as j, type ExecuteCall as k, type ExecuteNextAction as l, ExecuteRecoveryError as m, type ExecuteRecoveryMetadata as n, type ExecuteRecoveryStage as o, type ExecuteResult as p, type ExecuteSubmitPayload as q, type ExecutionAccount as r, type ExecutionAccountClient as s, type ExecutionAccountDiscovery as t, type ExecutionAccountIndices as u, type ExecutionAccountListResponse as v, type ExecutionAccountNumberish as w, type ExecutionAccountPathIndices as x, type ExecutionAccountPolicy as y, type ExecutionAccountReservation as z };
|
package/dist/crypto/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { i as AccountEthereumSignatureOptions, j as AccountExportPayload, A as AccountKeys, k as AccountMnemonicOptions, l as AccountSeedOptions, b as ApiError, C as CapabilityError, R as RegistrationPayload, a as RegistrationPayloadWire, S as SignSigningRequestFn, m as Signature, n as SigningRequest, T as TimeoutError, U as UnlinkError, o as UnlinkLocalAccount, q as UnlinkRegistrationProvider, r as UnlinkSpendSigner, V as ValidationError, s as account, f as assertRegistrationPayloadWire, u as assertValidSignature, g as fromRegistrationPayloadWire, v as signSigningRequest, t as toRegistrationPayload, h as toRegistrationPayloadWire, w as verifyMessageHash } from '../errors-
|
|
1
|
+
export { i as AccountEthereumSignatureOptions, j as AccountExportPayload, A as AccountKeys, k as AccountMnemonicOptions, l as AccountSeedOptions, b as ApiError, C as CapabilityError, R as RegistrationPayload, a as RegistrationPayloadWire, S as SignSigningRequestFn, m as Signature, n as SigningRequest, T as TimeoutError, U as UnlinkError, o as UnlinkLocalAccount, q as UnlinkRegistrationProvider, r as UnlinkSpendSigner, V as ValidationError, s as account, f as assertRegistrationPayloadWire, u as assertValidSignature, g as fromRegistrationPayloadWire, v as signSigningRequest, t as toRegistrationPayload, h as toRegistrationPayloadWire, w as verifyMessageHash } from '../errors-DG4yuYVt.js';
|
|
2
2
|
|
|
3
3
|
interface BuildDeriveSeedMessageOptions {
|
|
4
4
|
appId: string;
|
|
@@ -15,6 +15,9 @@ declare const ENVIRONMENTS: {
|
|
|
15
15
|
readonly "base-staging": {
|
|
16
16
|
readonly engineUrl: "https://base-staging-api.unlink.xyz";
|
|
17
17
|
};
|
|
18
|
+
readonly "monad-testnet-staging": {
|
|
19
|
+
readonly engineUrl: "https://monad-testnet-staging-api.unlink.xyz";
|
|
20
|
+
};
|
|
18
21
|
};
|
|
19
22
|
/** Canonical names the SDK resolves to a hosted Engine URL. */
|
|
20
23
|
type EnvironmentName = keyof typeof ENVIRONMENTS;
|
|
@@ -511,6 +511,63 @@ interface paths {
|
|
|
511
511
|
patch?: never;
|
|
512
512
|
trace?: never;
|
|
513
513
|
};
|
|
514
|
+
"/execute/accounts": {
|
|
515
|
+
parameters: {
|
|
516
|
+
query?: never;
|
|
517
|
+
header?: never;
|
|
518
|
+
path?: never;
|
|
519
|
+
cookie?: never;
|
|
520
|
+
};
|
|
521
|
+
/**
|
|
522
|
+
* List execution accounts for the authenticated user
|
|
523
|
+
* @description Per-user discovery of ExecutionAccount identity and lifecycle metadata,
|
|
524
|
+
* scoped to the authenticated tenant, project, and Unlink address.
|
|
525
|
+
*
|
|
526
|
+
* Capability-token callers are pinned to the token's Unlink address; a
|
|
527
|
+
* supplied `unlink_address` must match it (mismatch → 403) and otherwise
|
|
528
|
+
* has no effect. Tenant API-key callers must supply `unlink_address` —
|
|
529
|
+
* there is no tenant-wide account list. `account_address` lookups require `environment` and return at most
|
|
530
|
+
* one account owned by the authenticated context; cross-context lookups
|
|
531
|
+
* return an empty list without leaking existence.
|
|
532
|
+
*
|
|
533
|
+
* Identity and lifecycle metadata only — no balances, allowances,
|
|
534
|
+
* positions, token inventories, or note metadata.
|
|
535
|
+
*/
|
|
536
|
+
get: operations["listExecutionAccounts"];
|
|
537
|
+
put?: never;
|
|
538
|
+
post?: never;
|
|
539
|
+
delete?: never;
|
|
540
|
+
options?: never;
|
|
541
|
+
head?: never;
|
|
542
|
+
patch?: never;
|
|
543
|
+
trace?: never;
|
|
544
|
+
};
|
|
545
|
+
"/execute/accounts/{account_id}": {
|
|
546
|
+
parameters: {
|
|
547
|
+
query?: never;
|
|
548
|
+
header?: never;
|
|
549
|
+
path?: never;
|
|
550
|
+
cookie?: never;
|
|
551
|
+
};
|
|
552
|
+
/**
|
|
553
|
+
* Get a single execution account by id
|
|
554
|
+
* @description Returns ExecutionAccount identity and lifecycle metadata for one account,
|
|
555
|
+
* scoped to the authenticated tenant/project. Capability tokens are
|
|
556
|
+
* additionally isolated to their own user. Cross-context lookups never leak
|
|
557
|
+
* existence: tenant API-key callers get 404, capability tokens get a uniform
|
|
558
|
+
* 403 (whether the account is absent or owned by another user). The static
|
|
559
|
+
* `/execute/accounts/reserve` route takes precedence over this dynamic UUID
|
|
560
|
+
* route.
|
|
561
|
+
*/
|
|
562
|
+
get: operations["getExecutionAccount"];
|
|
563
|
+
put?: never;
|
|
564
|
+
post?: never;
|
|
565
|
+
delete?: never;
|
|
566
|
+
options?: never;
|
|
567
|
+
head?: never;
|
|
568
|
+
patch?: never;
|
|
569
|
+
trace?: never;
|
|
570
|
+
};
|
|
514
571
|
"/faucet/mint": {
|
|
515
572
|
parameters: {
|
|
516
573
|
query?: never;
|
|
@@ -882,6 +939,47 @@ interface components {
|
|
|
882
939
|
/** Format: date-time */
|
|
883
940
|
updated_at: string;
|
|
884
941
|
};
|
|
942
|
+
/**
|
|
943
|
+
* @description ExecutionAccount identity and lifecycle metadata. Intentionally excludes
|
|
944
|
+
* balances, allowances, positions, token inventories, and note metadata.
|
|
945
|
+
* All fields are always present; nullable fields are null when not yet
|
|
946
|
+
* known (e.g. an account reserved but not yet deployed).
|
|
947
|
+
*/
|
|
948
|
+
ExecutionAccount: {
|
|
949
|
+
/** Format: uuid */
|
|
950
|
+
account_id: string;
|
|
951
|
+
/** Format: int32 */
|
|
952
|
+
tenant_index: number;
|
|
953
|
+
/** Format: int32 */
|
|
954
|
+
chain_index: number;
|
|
955
|
+
/** Format: int32 */
|
|
956
|
+
account_index: number;
|
|
957
|
+
environment: string;
|
|
958
|
+
account_address: components["schemas"]["EvmAddress"] | null;
|
|
959
|
+
owner_address: components["schemas"]["EvmAddress"] | null;
|
|
960
|
+
status: components["schemas"]["ExecutionAccountStatus"];
|
|
961
|
+
/** Format: date-time */
|
|
962
|
+
deployed_at: string | null;
|
|
963
|
+
/** Format: date-time */
|
|
964
|
+
created_at: string;
|
|
965
|
+
/** Format: date-time */
|
|
966
|
+
updated_at: string;
|
|
967
|
+
/**
|
|
968
|
+
* Format: date-time
|
|
969
|
+
* @description created_at of the newest execution session for this account, or null
|
|
970
|
+
* when no execution session exists.
|
|
971
|
+
*/
|
|
972
|
+
last_execution_at: string | null;
|
|
973
|
+
};
|
|
974
|
+
ExecutionAccountListResponse: {
|
|
975
|
+
accounts: components["schemas"]["ExecutionAccount"][];
|
|
976
|
+
/**
|
|
977
|
+
* @description Opaque cursor for the next page, encoding the (environment,
|
|
978
|
+
* account_index, account_id) ordering tuple. Omitted when no more
|
|
979
|
+
* results.
|
|
980
|
+
*/
|
|
981
|
+
next_cursor?: string;
|
|
982
|
+
};
|
|
885
983
|
ExecutionCall: {
|
|
886
984
|
target: components["schemas"]["EvmAddress"];
|
|
887
985
|
/**
|
|
@@ -1988,6 +2086,79 @@ interface operations {
|
|
|
1988
2086
|
429: components["responses"]["RateLimited"];
|
|
1989
2087
|
};
|
|
1990
2088
|
};
|
|
2089
|
+
listExecutionAccounts: {
|
|
2090
|
+
parameters: {
|
|
2091
|
+
query?: {
|
|
2092
|
+
/** @description Environment name (e.g. "base-sepolia-staging") */
|
|
2093
|
+
environment?: components["parameters"]["environmentQuery"];
|
|
2094
|
+
/**
|
|
2095
|
+
* @description Filter to the single account at this address. Requires `environment`.
|
|
2096
|
+
* Returns at most one account owned by the authenticated context.
|
|
2097
|
+
*/
|
|
2098
|
+
account_address?: components["schemas"]["EvmAddress"];
|
|
2099
|
+
/**
|
|
2100
|
+
* @description The Unlink address to scope discovery to. Required for tenant
|
|
2101
|
+
* API-key callers (no tenant-wide list). For capability tokens it must
|
|
2102
|
+
* match the token's bound address if supplied (mismatch → 403);
|
|
2103
|
+
* otherwise it has no effect.
|
|
2104
|
+
*/
|
|
2105
|
+
unlink_address?: components["schemas"]["Bech32mAddress"];
|
|
2106
|
+
/** @description Maximum number of items to return */
|
|
2107
|
+
limit?: components["parameters"]["limit"];
|
|
2108
|
+
/** @description Opaque pagination cursor from a previous response */
|
|
2109
|
+
cursor?: components["parameters"]["cursor"];
|
|
2110
|
+
};
|
|
2111
|
+
header?: never;
|
|
2112
|
+
path?: never;
|
|
2113
|
+
cookie?: never;
|
|
2114
|
+
};
|
|
2115
|
+
requestBody?: never;
|
|
2116
|
+
responses: {
|
|
2117
|
+
/** @description Paginated execution account list */
|
|
2118
|
+
200: {
|
|
2119
|
+
headers: {
|
|
2120
|
+
[name: string]: unknown;
|
|
2121
|
+
};
|
|
2122
|
+
content: {
|
|
2123
|
+
"application/json": {
|
|
2124
|
+
data: components["schemas"]["ExecutionAccountListResponse"];
|
|
2125
|
+
};
|
|
2126
|
+
};
|
|
2127
|
+
};
|
|
2128
|
+
400: components["responses"]["BadRequest"];
|
|
2129
|
+
401: components["responses"]["Unauthorized"];
|
|
2130
|
+
403: components["responses"]["Forbidden"];
|
|
2131
|
+
429: components["responses"]["RateLimited"];
|
|
2132
|
+
};
|
|
2133
|
+
};
|
|
2134
|
+
getExecutionAccount: {
|
|
2135
|
+
parameters: {
|
|
2136
|
+
query?: never;
|
|
2137
|
+
header?: never;
|
|
2138
|
+
path: {
|
|
2139
|
+
account_id: string;
|
|
2140
|
+
};
|
|
2141
|
+
cookie?: never;
|
|
2142
|
+
};
|
|
2143
|
+
requestBody?: never;
|
|
2144
|
+
responses: {
|
|
2145
|
+
/** @description Execution account */
|
|
2146
|
+
200: {
|
|
2147
|
+
headers: {
|
|
2148
|
+
[name: string]: unknown;
|
|
2149
|
+
};
|
|
2150
|
+
content: {
|
|
2151
|
+
"application/json": {
|
|
2152
|
+
data: components["schemas"]["ExecutionAccount"];
|
|
2153
|
+
};
|
|
2154
|
+
};
|
|
2155
|
+
};
|
|
2156
|
+
401: components["responses"]["Unauthorized"];
|
|
2157
|
+
403: components["responses"]["Forbidden"];
|
|
2158
|
+
404: components["responses"]["NotFound"];
|
|
2159
|
+
429: components["responses"]["RateLimited"];
|
|
2160
|
+
};
|
|
2161
|
+
};
|
|
1991
2162
|
faucetMint: {
|
|
1992
2163
|
parameters: {
|
|
1993
2164
|
query?: never;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Client } from 'openapi-fetch';
|
|
2
|
-
import { p as paths, c as components } from './errors-
|
|
2
|
+
import { p as paths, c as components } from './errors-DG4yuYVt.js';
|
|
3
3
|
|
|
4
4
|
interface IssueAuthorizationTokenParams {
|
|
5
5
|
/** Canonical bech32m address belonging to the caller's admin/project. */
|