@1claw/sdk 0.36.0 → 0.38.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 +55 -0
- package/dist/core/client.d.ts +3 -0
- package/dist/core/client.d.ts.map +1 -1
- package/dist/core/client.js +2 -0
- package/dist/core/client.js.map +1 -1
- package/dist/generated/api-types.d.ts +273 -0
- package/dist/generated/api-types.d.ts.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/resources/signing-keys.d.ts +3 -1
- package/dist/resources/signing-keys.d.ts.map +1 -1
- package/dist/resources/signing-keys.js +5 -0
- package/dist/resources/signing-keys.js.map +1 -1
- package/dist/resources/tokens.d.ts +15 -0
- package/dist/resources/tokens.d.ts.map +1 -0
- package/dist/resources/tokens.js +23 -0
- package/dist/resources/tokens.js.map +1 -0
- package/dist/types.d.ts +96 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -237,6 +237,61 @@ console.log(signRes.data?.from); // derived sender address
|
|
|
237
237
|
|
|
238
238
|
All agent guardrails (allowlists, value caps, daily limits) are enforced exactly as for submit. The transaction is recorded for audit and daily-limit tracking with `status: "sign_only"`.
|
|
239
239
|
|
|
240
|
+
### Non-EVM transactions (Bitcoin, Solana, XRP, Cardano, Tron)
|
|
241
|
+
|
|
242
|
+
The same `submitTransaction` / `signTransaction` methods accept chain-specific fields. Values are in the chain's native unit (BTC, SOL, XRP, ADA, TRX):
|
|
243
|
+
|
|
244
|
+
```typescript
|
|
245
|
+
// Solana devnet — native SOL
|
|
246
|
+
await client.agents.submitTransaction(agentId, {
|
|
247
|
+
chain: "solana-devnet",
|
|
248
|
+
to: "RecipientBase58...",
|
|
249
|
+
value: "0.001",
|
|
250
|
+
});
|
|
251
|
+
|
|
252
|
+
// Bitcoin testnet
|
|
253
|
+
await client.agents.signTransaction(agentId, {
|
|
254
|
+
chain: "bitcoin-testnet",
|
|
255
|
+
to: "tb1q...",
|
|
256
|
+
value: "0.00001",
|
|
257
|
+
fee_rate_sat_per_vbyte: 5,
|
|
258
|
+
});
|
|
259
|
+
|
|
260
|
+
// XRP — simple Payment with destination tag
|
|
261
|
+
await client.agents.submitTransaction(agentId, {
|
|
262
|
+
chain: "xrp-testnet",
|
|
263
|
+
to: "r...",
|
|
264
|
+
value: "1",
|
|
265
|
+
destination_tag: 12345,
|
|
266
|
+
});
|
|
267
|
+
|
|
268
|
+
// XRP — arbitrary XRPL transaction type via xrpl_tx_json
|
|
269
|
+
// Supports 30+ types: TrustSet, OfferCreate, NFTokenMint, AMMCreate, EscrowCreate, etc.
|
|
270
|
+
// Account, Sequence, Fee, and SigningPubKey are auto-filled by the server.
|
|
271
|
+
await client.agents.submitTransaction(agentId, {
|
|
272
|
+
chain: "xrp",
|
|
273
|
+
xrpl_tx_json: {
|
|
274
|
+
TransactionType: "TrustSet",
|
|
275
|
+
LimitAmount: {
|
|
276
|
+
currency: "USD",
|
|
277
|
+
issuer: "rIssuer...",
|
|
278
|
+
value: "100",
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
});
|
|
282
|
+
|
|
283
|
+
// Solana SPL token
|
|
284
|
+
await client.agents.submitTransaction(agentId, {
|
|
285
|
+
chain: "solana-devnet",
|
|
286
|
+
to: "RecipientBase58...",
|
|
287
|
+
value: "10",
|
|
288
|
+
token_mint: "MintBase58...",
|
|
289
|
+
token_decimals: 6,
|
|
290
|
+
});
|
|
291
|
+
```
|
|
292
|
+
|
|
293
|
+
See the [Intents API guide](https://docs.1claw.xyz/docs/guides/intents-api#non-evm-transaction-signing) for full field reference.
|
|
294
|
+
|
|
240
295
|
Key properties:
|
|
241
296
|
|
|
242
297
|
- **Disabled by default** — a human must explicitly enable per-agent
|
package/dist/core/client.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ import { DepositDestinationsResource } from "../resources/deposit-destinations";
|
|
|
22
22
|
import { InternalAccountsResource } from "../resources/internal-accounts";
|
|
23
23
|
import { FiatResource } from "../resources/fiat";
|
|
24
24
|
import { RiskResource } from "../resources/risk";
|
|
25
|
+
import { TokensResource } from "../resources/tokens";
|
|
25
26
|
/**
|
|
26
27
|
* The main 1Claw SDK client. All API resources are exposed as
|
|
27
28
|
* namespaced properties for discoverability and tree-shaking.
|
|
@@ -91,6 +92,8 @@ export declare class OneclawClient {
|
|
|
91
92
|
readonly fiat: FiatResource;
|
|
92
93
|
/** Risk engine — events, verdicts, and honeytokens. */
|
|
93
94
|
readonly risk: RiskResource;
|
|
95
|
+
/** Token registry — list and manage known tokens for guardrail enforcement. */
|
|
96
|
+
readonly tokens: TokensResource;
|
|
94
97
|
constructor(config: OneclawClientConfig);
|
|
95
98
|
private autoAuthenticateUserKey;
|
|
96
99
|
}
|
|
@@ -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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AEvE"}
|
package/dist/core/client.js
CHANGED
|
@@ -22,6 +22,7 @@ import { DepositDestinationsResource } from "../resources/deposit-destinations";
|
|
|
22
22
|
import { InternalAccountsResource } from "../resources/internal-accounts";
|
|
23
23
|
import { FiatResource } from "../resources/fiat";
|
|
24
24
|
import { RiskResource } from "../resources/risk";
|
|
25
|
+
import { TokensResource } from "../resources/tokens";
|
|
25
26
|
/**
|
|
26
27
|
* The main 1Claw SDK client. All API resources are exposed as
|
|
27
28
|
* namespaced properties for discoverability and tree-shaking.
|
|
@@ -76,6 +77,7 @@ export class OneclawClient {
|
|
|
76
77
|
this.internalAccounts = new InternalAccountsResource(this.http);
|
|
77
78
|
this.fiat = new FiatResource(this.http);
|
|
78
79
|
this.risk = new RiskResource(this.http);
|
|
80
|
+
this.tokens = new TokensResource(this.http);
|
|
79
81
|
}
|
|
80
82
|
autoAuthenticateUserKey(config) {
|
|
81
83
|
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,EAA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;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,UAAU,YAAY,CAAC,MAA2B;IACpD,OAAO,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC;AACrC,CAAC"}
|
|
@@ -4330,6 +4330,74 @@ export interface paths {
|
|
|
4330
4330
|
patch?: never;
|
|
4331
4331
|
trace?: never;
|
|
4332
4332
|
};
|
|
4333
|
+
"/v1/tokens": {
|
|
4334
|
+
parameters: {
|
|
4335
|
+
query?: never;
|
|
4336
|
+
header?: never;
|
|
4337
|
+
path?: never;
|
|
4338
|
+
cookie?: never;
|
|
4339
|
+
};
|
|
4340
|
+
/** List known tokens */
|
|
4341
|
+
get: operations["listKnownTokens"];
|
|
4342
|
+
put?: never;
|
|
4343
|
+
post?: never;
|
|
4344
|
+
delete?: never;
|
|
4345
|
+
options?: never;
|
|
4346
|
+
head?: never;
|
|
4347
|
+
patch?: never;
|
|
4348
|
+
trace?: never;
|
|
4349
|
+
};
|
|
4350
|
+
"/v1/chains/{chain_name}/tokens": {
|
|
4351
|
+
parameters: {
|
|
4352
|
+
query?: never;
|
|
4353
|
+
header?: never;
|
|
4354
|
+
path?: never;
|
|
4355
|
+
cookie?: never;
|
|
4356
|
+
};
|
|
4357
|
+
/** List tokens for a specific chain */
|
|
4358
|
+
get: operations["listTokensByChain"];
|
|
4359
|
+
put?: never;
|
|
4360
|
+
post?: never;
|
|
4361
|
+
delete?: never;
|
|
4362
|
+
options?: never;
|
|
4363
|
+
head?: never;
|
|
4364
|
+
patch?: never;
|
|
4365
|
+
trace?: never;
|
|
4366
|
+
};
|
|
4367
|
+
"/v1/admin/tokens": {
|
|
4368
|
+
parameters: {
|
|
4369
|
+
query?: never;
|
|
4370
|
+
header?: never;
|
|
4371
|
+
path?: never;
|
|
4372
|
+
cookie?: never;
|
|
4373
|
+
};
|
|
4374
|
+
get?: never;
|
|
4375
|
+
put?: never;
|
|
4376
|
+
/** Create a known token (admin only) */
|
|
4377
|
+
post: operations["createKnownToken"];
|
|
4378
|
+
delete?: never;
|
|
4379
|
+
options?: never;
|
|
4380
|
+
head?: never;
|
|
4381
|
+
patch?: never;
|
|
4382
|
+
trace?: never;
|
|
4383
|
+
};
|
|
4384
|
+
"/v1/admin/tokens/{token_id}": {
|
|
4385
|
+
parameters: {
|
|
4386
|
+
query?: never;
|
|
4387
|
+
header?: never;
|
|
4388
|
+
path?: never;
|
|
4389
|
+
cookie?: never;
|
|
4390
|
+
};
|
|
4391
|
+
get?: never;
|
|
4392
|
+
put?: never;
|
|
4393
|
+
post?: never;
|
|
4394
|
+
/** Delete a known token (admin only) */
|
|
4395
|
+
delete: operations["deleteKnownToken"];
|
|
4396
|
+
options?: never;
|
|
4397
|
+
head?: never;
|
|
4398
|
+
patch?: never;
|
|
4399
|
+
trace?: never;
|
|
4400
|
+
};
|
|
4333
4401
|
}
|
|
4334
4402
|
export type webhooks = Record<string, never>;
|
|
4335
4403
|
export interface components {
|
|
@@ -4815,6 +4883,23 @@ export interface components {
|
|
|
4815
4883
|
*/
|
|
4816
4884
|
shroud_enabled: boolean;
|
|
4817
4885
|
shroud_config?: components["schemas"]["ShroudConfig"];
|
|
4886
|
+
/** @description Token contract/mint addresses this agent may interact with. Empty = unrestricted. */
|
|
4887
|
+
tx_token_allowlist?: string[];
|
|
4888
|
+
/**
|
|
4889
|
+
* @description When true, only tokens in the known_tokens registry may be used.
|
|
4890
|
+
* @default false
|
|
4891
|
+
*/
|
|
4892
|
+
tx_known_tokens_only: boolean;
|
|
4893
|
+
/** @description Allowed XRP Ledger transaction types (Payment, TrustSet, etc.). Empty = all allowed. */
|
|
4894
|
+
xrpl_allowed_tx_types?: string[];
|
|
4895
|
+
/**
|
|
4896
|
+
* @description Per-chain guardrail overrides. Keys are chain family names (ethereum, bitcoin, solana, etc.).
|
|
4897
|
+
* Each value can contain: max_value, daily_limit, to_allowlist, token_allowlist.
|
|
4898
|
+
* Example: { "ethereum": { "max_value": "0.5", "to_allowlist": ["0x..."] } }
|
|
4899
|
+
*/
|
|
4900
|
+
per_chain_guardrails?: {
|
|
4901
|
+
[key: string]: unknown;
|
|
4902
|
+
};
|
|
4818
4903
|
/**
|
|
4819
4904
|
* Format: date-time
|
|
4820
4905
|
* @description Optional expiration time for the agent's API key.
|
|
@@ -4855,6 +4940,23 @@ export interface components {
|
|
|
4855
4940
|
* Hard-capped at 3600 seconds.
|
|
4856
4941
|
*/
|
|
4857
4942
|
federated_token_ttl_seconds?: number | null;
|
|
4943
|
+
/** @description Token contract/mint addresses this agent may interact with. Empty = unrestricted. */
|
|
4944
|
+
tx_token_allowlist?: string[];
|
|
4945
|
+
/**
|
|
4946
|
+
* @description When true, only tokens in the known_tokens registry may be used.
|
|
4947
|
+
* @default false
|
|
4948
|
+
*/
|
|
4949
|
+
tx_known_tokens_only: boolean;
|
|
4950
|
+
/** @description Allowed XRP Ledger transaction types (Payment, TrustSet, etc.). Empty = all allowed. */
|
|
4951
|
+
xrpl_allowed_tx_types?: string[];
|
|
4952
|
+
/**
|
|
4953
|
+
* @description Per-chain guardrail overrides. Keys are chain family names (ethereum, bitcoin, solana, etc.).
|
|
4954
|
+
* Each value can contain: max_value, daily_limit, to_allowlist, token_allowlist.
|
|
4955
|
+
* Example: { "ethereum": { "max_value": "0.5", "to_allowlist": ["0x..."] } }
|
|
4956
|
+
*/
|
|
4957
|
+
per_chain_guardrails?: {
|
|
4958
|
+
[key: string]: unknown;
|
|
4959
|
+
};
|
|
4858
4960
|
/**
|
|
4859
4961
|
* Format: date-time
|
|
4860
4962
|
* @description Optional expiration time for the agent's API key. Set to null to clear.
|
|
@@ -4914,6 +5016,20 @@ export interface components {
|
|
|
4914
5016
|
message_signing_enabled?: boolean;
|
|
4915
5017
|
/** @description Whether the raw/precomputed-digest signing intent (eip712_digest) is enabled. Blind signing — bypasses transaction guardrails; OFF by default and human-set. Required for ERC-1271/ERC-7739 flows (e.g. Polymarket). */
|
|
4916
5018
|
raw_signing_enabled?: boolean;
|
|
5019
|
+
/** @description Token contract/mint addresses this agent may interact with. */
|
|
5020
|
+
tx_token_allowlist?: string[];
|
|
5021
|
+
/** @description When true, only tokens in the known_tokens registry may be used. */
|
|
5022
|
+
tx_known_tokens_only?: boolean;
|
|
5023
|
+
/** @description Allowed XRP Ledger transaction types. */
|
|
5024
|
+
xrpl_allowed_tx_types?: string[];
|
|
5025
|
+
/** @description Per-chain guardrail overrides. */
|
|
5026
|
+
per_chain_guardrails?: {
|
|
5027
|
+
[key: string]: unknown;
|
|
5028
|
+
};
|
|
5029
|
+
/** @description Per-chain-family daily spend in major units (e.g. {"ethereum": "0.5", "solana": "2.1"}). */
|
|
5030
|
+
tx_spent_today_by_chain?: {
|
|
5031
|
+
[key: string]: string;
|
|
5032
|
+
};
|
|
4917
5033
|
/**
|
|
4918
5034
|
* Format: date-time
|
|
4919
5035
|
* @description Optional expiration time for the agent's API key.
|
|
@@ -4930,6 +5046,37 @@ export interface components {
|
|
|
4930
5046
|
/** @description Multi-chain; one Safe per chain */
|
|
4931
5047
|
smart_accounts?: components["schemas"]["AgentSmartAccountResponse"][];
|
|
4932
5048
|
};
|
|
5049
|
+
KnownToken: {
|
|
5050
|
+
/** Format: uuid */
|
|
5051
|
+
id: string;
|
|
5052
|
+
chain: string;
|
|
5053
|
+
symbol: string;
|
|
5054
|
+
name: string;
|
|
5055
|
+
contract_address: string;
|
|
5056
|
+
decimals: number;
|
|
5057
|
+
is_testnet: boolean;
|
|
5058
|
+
is_verified: boolean;
|
|
5059
|
+
logo_url?: string | null;
|
|
5060
|
+
/** Format: date-time */
|
|
5061
|
+
created_at?: string;
|
|
5062
|
+
/** Format: date-time */
|
|
5063
|
+
updated_at?: string;
|
|
5064
|
+
};
|
|
5065
|
+
KnownTokenListResponse: {
|
|
5066
|
+
tokens: components["schemas"]["KnownToken"][];
|
|
5067
|
+
};
|
|
5068
|
+
CreateKnownTokenRequest: {
|
|
5069
|
+
chain: string;
|
|
5070
|
+
symbol: string;
|
|
5071
|
+
name: string;
|
|
5072
|
+
contract_address: string;
|
|
5073
|
+
decimals: number;
|
|
5074
|
+
/** @default false */
|
|
5075
|
+
is_testnet: boolean;
|
|
5076
|
+
/** @default true */
|
|
5077
|
+
is_verified: boolean;
|
|
5078
|
+
logo_url?: string | null;
|
|
5079
|
+
};
|
|
4933
5080
|
/** @description One Safe smart account per chain for an agent */
|
|
4934
5081
|
AgentSmartAccountResponse: {
|
|
4935
5082
|
/** Format: uuid */
|
|
@@ -5348,6 +5495,10 @@ export interface components {
|
|
|
5348
5495
|
token_decimals?: number;
|
|
5349
5496
|
/** @description Non-EVM (Cardano): transaction time-to-live (absolute slot) */
|
|
5350
5497
|
ttl?: number;
|
|
5498
|
+
/** @description Raw XRPL transaction JSON for full transaction type coverage. When present (and chain is XRP), the handler uses the xrpl-rust binary codec to encode and sign the transaction as-is. Supports all XRPL transaction types: Payment, TrustSet, OfferCreate, OfferCancel, AccountSet, EscrowCreate, NFTokenMint, AMMCreate, and 20+ more. Account, Sequence, Fee, LastLedgerSequence, and SigningPubKey are auto-filled when absent. */
|
|
5499
|
+
xrpl_tx_json?: {
|
|
5500
|
+
[key: string]: unknown;
|
|
5501
|
+
};
|
|
5351
5502
|
};
|
|
5352
5503
|
SignTransactionRequest: {
|
|
5353
5504
|
/** @description Destination address (0x-prefixed) */
|
|
@@ -5381,6 +5532,10 @@ export interface components {
|
|
|
5381
5532
|
token_decimals?: number;
|
|
5382
5533
|
/** @description Non-EVM (Cardano): transaction time-to-live (absolute slot) */
|
|
5383
5534
|
ttl?: number;
|
|
5535
|
+
/** @description Raw XRPL transaction JSON for full transaction type coverage. When present (and chain is XRP), the handler uses the xrpl-rust binary codec to encode and sign the transaction as-is. Supports all XRPL transaction types: Payment, TrustSet, OfferCreate, OfferCancel, AccountSet, EscrowCreate, NFTokenMint, AMMCreate, and 20+ more. Account, Sequence, Fee, LastLedgerSequence, and SigningPubKey are auto-filled when absent. */
|
|
5536
|
+
xrpl_tx_json?: {
|
|
5537
|
+
[key: string]: unknown;
|
|
5538
|
+
};
|
|
5384
5539
|
};
|
|
5385
5540
|
SignTransactionResponse: {
|
|
5386
5541
|
/** @description Raw signed transaction hex (always included) */
|
|
@@ -5499,6 +5654,26 @@ export interface components {
|
|
|
5499
5654
|
max_fee_per_blob_gas?: string;
|
|
5500
5655
|
blob_versioned_hashes?: string[];
|
|
5501
5656
|
authorization_list?: Record<string, never>[];
|
|
5657
|
+
/** @description When true, sign only (do not broadcast). Non-EVM transaction intents only. */
|
|
5658
|
+
sign_only?: boolean;
|
|
5659
|
+
/** @description Non-EVM (XRP): destination tag for exchange deposits */
|
|
5660
|
+
destination_tag?: number;
|
|
5661
|
+
/** @description Non-EVM (XRP, Solana): optional memo */
|
|
5662
|
+
memo?: string;
|
|
5663
|
+
/** @description Non-EVM (Bitcoin): override the fetched fee rate (sat/vByte) */
|
|
5664
|
+
fee_rate_sat_per_vbyte?: number;
|
|
5665
|
+
/** @description Non-EVM (Tron): TRC-20 energy fee limit in sun */
|
|
5666
|
+
fee_limit_sun?: number;
|
|
5667
|
+
/** @description Non-EVM (Solana SPL / Tron TRC-20): token mint or contract address; omit for native transfer */
|
|
5668
|
+
token_mint?: string;
|
|
5669
|
+
/** @description Non-EVM (Solana, Tron): token decimals (default 6) */
|
|
5670
|
+
token_decimals?: number;
|
|
5671
|
+
/** @description Non-EVM (Cardano): transaction time-to-live (absolute slot) */
|
|
5672
|
+
ttl?: number;
|
|
5673
|
+
/** @description Raw XRPL transaction JSON for full transaction type coverage. When present (and chain is XRP), the handler uses the xrpl-rust binary codec to encode and sign the transaction as-is. Supports all XRPL transaction types: Payment, TrustSet, OfferCreate, OfferCancel, AccountSet, EscrowCreate, NFTokenMint, AMMCreate, and 20+ more. Account, Sequence, Fee, LastLedgerSequence, and SigningPubKey are auto-filled when absent. */
|
|
5674
|
+
xrpl_tx_json?: {
|
|
5675
|
+
[key: string]: unknown;
|
|
5676
|
+
};
|
|
5502
5677
|
};
|
|
5503
5678
|
SignIntentResponse: {
|
|
5504
5679
|
intent_type?: string;
|
|
@@ -6220,6 +6395,13 @@ export interface components {
|
|
|
6220
6395
|
address: string;
|
|
6221
6396
|
balance_wei: string;
|
|
6222
6397
|
balance_display: string;
|
|
6398
|
+
/** @description Token balances when ?tokens= query param is provided */
|
|
6399
|
+
tokens?: {
|
|
6400
|
+
contract_address?: string;
|
|
6401
|
+
symbol?: string | null;
|
|
6402
|
+
balance?: string;
|
|
6403
|
+
decimals?: number | null;
|
|
6404
|
+
}[];
|
|
6223
6405
|
};
|
|
6224
6406
|
PaymentRequirement: {
|
|
6225
6407
|
x402Version?: number;
|
|
@@ -12364,5 +12546,96 @@ export interface operations {
|
|
|
12364
12546
|
404: components["responses"]["NotFound"];
|
|
12365
12547
|
};
|
|
12366
12548
|
};
|
|
12549
|
+
listKnownTokens: {
|
|
12550
|
+
parameters: {
|
|
12551
|
+
query?: {
|
|
12552
|
+
/** @description Filter by chain name */
|
|
12553
|
+
chain?: string;
|
|
12554
|
+
};
|
|
12555
|
+
header?: never;
|
|
12556
|
+
path?: never;
|
|
12557
|
+
cookie?: never;
|
|
12558
|
+
};
|
|
12559
|
+
requestBody?: never;
|
|
12560
|
+
responses: {
|
|
12561
|
+
/** @description Token list */
|
|
12562
|
+
200: {
|
|
12563
|
+
headers: {
|
|
12564
|
+
[name: string]: unknown;
|
|
12565
|
+
};
|
|
12566
|
+
content: {
|
|
12567
|
+
"application/json": components["schemas"]["KnownTokenListResponse"];
|
|
12568
|
+
};
|
|
12569
|
+
};
|
|
12570
|
+
};
|
|
12571
|
+
};
|
|
12572
|
+
listTokensByChain: {
|
|
12573
|
+
parameters: {
|
|
12574
|
+
query?: never;
|
|
12575
|
+
header?: never;
|
|
12576
|
+
path: {
|
|
12577
|
+
chain_name: string;
|
|
12578
|
+
};
|
|
12579
|
+
cookie?: never;
|
|
12580
|
+
};
|
|
12581
|
+
requestBody?: never;
|
|
12582
|
+
responses: {
|
|
12583
|
+
/** @description Token list for chain */
|
|
12584
|
+
200: {
|
|
12585
|
+
headers: {
|
|
12586
|
+
[name: string]: unknown;
|
|
12587
|
+
};
|
|
12588
|
+
content: {
|
|
12589
|
+
"application/json": components["schemas"]["KnownTokenListResponse"];
|
|
12590
|
+
};
|
|
12591
|
+
};
|
|
12592
|
+
};
|
|
12593
|
+
};
|
|
12594
|
+
createKnownToken: {
|
|
12595
|
+
parameters: {
|
|
12596
|
+
query?: never;
|
|
12597
|
+
header?: never;
|
|
12598
|
+
path?: never;
|
|
12599
|
+
cookie?: never;
|
|
12600
|
+
};
|
|
12601
|
+
requestBody: {
|
|
12602
|
+
content: {
|
|
12603
|
+
"application/json": components["schemas"]["CreateKnownTokenRequest"];
|
|
12604
|
+
};
|
|
12605
|
+
};
|
|
12606
|
+
responses: {
|
|
12607
|
+
/** @description Token created */
|
|
12608
|
+
201: {
|
|
12609
|
+
headers: {
|
|
12610
|
+
[name: string]: unknown;
|
|
12611
|
+
};
|
|
12612
|
+
content: {
|
|
12613
|
+
"application/json": components["schemas"]["KnownToken"];
|
|
12614
|
+
};
|
|
12615
|
+
};
|
|
12616
|
+
403: components["responses"]["Forbidden"];
|
|
12617
|
+
};
|
|
12618
|
+
};
|
|
12619
|
+
deleteKnownToken: {
|
|
12620
|
+
parameters: {
|
|
12621
|
+
query?: never;
|
|
12622
|
+
header?: never;
|
|
12623
|
+
path: {
|
|
12624
|
+
token_id: string;
|
|
12625
|
+
};
|
|
12626
|
+
cookie?: never;
|
|
12627
|
+
};
|
|
12628
|
+
requestBody?: never;
|
|
12629
|
+
responses: {
|
|
12630
|
+
/** @description Token deleted */
|
|
12631
|
+
204: {
|
|
12632
|
+
headers: {
|
|
12633
|
+
[name: string]: unknown;
|
|
12634
|
+
};
|
|
12635
|
+
content?: never;
|
|
12636
|
+
};
|
|
12637
|
+
403: components["responses"]["Forbidden"];
|
|
12638
|
+
};
|
|
12639
|
+
};
|
|
12367
12640
|
}
|
|
12368
12641
|
//# sourceMappingURL=api-types.d.ts.map
|