@1claw/sdk 0.37.0 → 0.39.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/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 +287 -1
- 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 +76 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
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;
|
|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B,CAAC;IAC1C,wEAAwE;IACxE,QAAQ,CAAC,eAAe,EAAE,uBAAuB,CAAC;IAClD,8DAA8D;IAC9D,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;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;IAC5B,uDAAuD;IACvD,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAC5B,+EAA+E;IAC/E,QAAQ,CAAC,MAAM,EAAE,cAAc,CAAC;gBAEpB,MAAM,EAAE,mBAAmB;IAqCvC,OAAO,CAAC,uBAAuB;CAclC;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,mBAAmB,GAAG,aAAa,CAEvE"}
|
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,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;AACzD,OAAO,EAAE,2BAA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AC,IAAI,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACxC,IAAI,CAAC,IAAI,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACxC,IAAI,CAAC,MAAM,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;IAEO,uBAAuB,CAAC,MAA2B;QACvD,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI;aACxB,OAAO,CAA2B,MAAM,EAAE,wBAAwB,EAAE;YACjE,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE;SACnC,CAAC;aACD,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE;YACV,IAAI,GAAG,CAAC,IAAI,EAAE,YAAY;gBACtB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,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"}
|
|
@@ -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 {
|
|
@@ -4796,7 +4864,19 @@ export interface components {
|
|
|
4796
4864
|
/** @default false */
|
|
4797
4865
|
intents_api_enabled: boolean;
|
|
4798
4866
|
tx_to_allowlist?: string[];
|
|
4867
|
+
/** @description Maximum value per transaction in native major units for the transacting chain family (ETH on EVM, BTC on Bitcoin, SOL on Solana, XRP, ADA, TRX). */
|
|
4868
|
+
tx_max_value?: string;
|
|
4869
|
+
/** @description Rolling daily spend cap in native major units, enforced per chain family at signing time. */
|
|
4870
|
+
tx_daily_limit?: string;
|
|
4871
|
+
/**
|
|
4872
|
+
* @deprecated
|
|
4873
|
+
* @description Deprecated alias for tx_max_value. Same unit semantics (native major units, not ETH-only).
|
|
4874
|
+
*/
|
|
4799
4875
|
tx_max_value_eth?: string;
|
|
4876
|
+
/**
|
|
4877
|
+
* @deprecated
|
|
4878
|
+
* @description Deprecated alias for tx_daily_limit.
|
|
4879
|
+
*/
|
|
4800
4880
|
tx_daily_limit_eth?: string;
|
|
4801
4881
|
tx_allowed_chains?: string[];
|
|
4802
4882
|
/** @description Per-agent token TTL in seconds (overrides global default) */
|
|
@@ -4815,6 +4895,23 @@ export interface components {
|
|
|
4815
4895
|
*/
|
|
4816
4896
|
shroud_enabled: boolean;
|
|
4817
4897
|
shroud_config?: components["schemas"]["ShroudConfig"];
|
|
4898
|
+
/** @description Token contract/mint addresses this agent may interact with. Empty = unrestricted. */
|
|
4899
|
+
tx_token_allowlist?: string[];
|
|
4900
|
+
/**
|
|
4901
|
+
* @description When true, only tokens in the known_tokens registry may be used.
|
|
4902
|
+
* @default false
|
|
4903
|
+
*/
|
|
4904
|
+
tx_known_tokens_only: boolean;
|
|
4905
|
+
/** @description Allowed XRP Ledger transaction types (Payment, TrustSet, etc.). Empty = all allowed. */
|
|
4906
|
+
xrpl_allowed_tx_types?: string[];
|
|
4907
|
+
/**
|
|
4908
|
+
* @description Per-chain guardrail overrides. Keys are signing chains (ethereum, bitcoin, solana, xrp, cardano, tron).
|
|
4909
|
+
* Each value may include max_value, daily_limit, to_allowlist, token_allowlist (legacy *_eth keys accepted).
|
|
4910
|
+
* Strictest of global and per-chain limits wins. Daily limits apply per chain family spend, not cross-chain totals.
|
|
4911
|
+
*/
|
|
4912
|
+
per_chain_guardrails?: {
|
|
4913
|
+
[key: string]: unknown;
|
|
4914
|
+
};
|
|
4818
4915
|
/**
|
|
4819
4916
|
* Format: date-time
|
|
4820
4917
|
* @description Optional expiration time for the agent's API key.
|
|
@@ -4829,7 +4926,19 @@ export interface components {
|
|
|
4829
4926
|
expires_at?: string;
|
|
4830
4927
|
intents_api_enabled?: boolean;
|
|
4831
4928
|
tx_to_allowlist?: string[];
|
|
4929
|
+
/** @description Maximum value per transaction in native major units for the transacting chain family (ETH on EVM, BTC on Bitcoin, SOL on Solana, XRP, ADA, TRX). */
|
|
4930
|
+
tx_max_value?: string;
|
|
4931
|
+
/** @description Rolling daily spend cap in native major units, enforced per chain family at signing time. */
|
|
4932
|
+
tx_daily_limit?: string;
|
|
4933
|
+
/**
|
|
4934
|
+
* @deprecated
|
|
4935
|
+
* @description Deprecated alias for tx_max_value. Same unit semantics (native major units, not ETH-only).
|
|
4936
|
+
*/
|
|
4832
4937
|
tx_max_value_eth?: string;
|
|
4938
|
+
/**
|
|
4939
|
+
* @deprecated
|
|
4940
|
+
* @description Deprecated alias for tx_daily_limit.
|
|
4941
|
+
*/
|
|
4833
4942
|
tx_daily_limit_eth?: string;
|
|
4834
4943
|
tx_allowed_chains?: string[];
|
|
4835
4944
|
token_ttl_seconds?: number | null;
|
|
@@ -4855,6 +4964,23 @@ export interface components {
|
|
|
4855
4964
|
* Hard-capped at 3600 seconds.
|
|
4856
4965
|
*/
|
|
4857
4966
|
federated_token_ttl_seconds?: number | null;
|
|
4967
|
+
/** @description Token contract/mint addresses this agent may interact with. Empty = unrestricted. */
|
|
4968
|
+
tx_token_allowlist?: string[];
|
|
4969
|
+
/**
|
|
4970
|
+
* @description When true, only tokens in the known_tokens registry may be used.
|
|
4971
|
+
* @default false
|
|
4972
|
+
*/
|
|
4973
|
+
tx_known_tokens_only: boolean;
|
|
4974
|
+
/** @description Allowed XRP Ledger transaction types (Payment, TrustSet, etc.). Empty = all allowed. */
|
|
4975
|
+
xrpl_allowed_tx_types?: string[];
|
|
4976
|
+
/**
|
|
4977
|
+
* @description Per-chain guardrail overrides. Keys are signing chains (ethereum, bitcoin, solana, xrp, cardano, tron).
|
|
4978
|
+
* Each value may include max_value, daily_limit, to_allowlist, token_allowlist (legacy *_eth keys accepted).
|
|
4979
|
+
* Strictest of global and per-chain limits wins. Daily limits apply per chain family spend, not cross-chain totals.
|
|
4980
|
+
*/
|
|
4981
|
+
per_chain_guardrails?: {
|
|
4982
|
+
[key: string]: unknown;
|
|
4983
|
+
};
|
|
4858
4984
|
/**
|
|
4859
4985
|
* Format: date-time
|
|
4860
4986
|
* @description Optional expiration time for the agent's API key. Set to null to clear.
|
|
@@ -4872,9 +4998,26 @@ export interface components {
|
|
|
4872
4998
|
is_active: boolean;
|
|
4873
4999
|
intents_api_enabled: boolean;
|
|
4874
5000
|
tx_to_allowlist?: string[];
|
|
5001
|
+
/** @description Maximum value per transaction in native major units for the transacting chain family (ETH on EVM, BTC on Bitcoin, SOL on Solana, XRP, ADA, TRX). */
|
|
5002
|
+
tx_max_value?: string;
|
|
5003
|
+
/** @description Rolling daily spend cap in native major units, enforced per chain family at signing time. */
|
|
5004
|
+
tx_daily_limit?: string;
|
|
5005
|
+
/**
|
|
5006
|
+
* @deprecated
|
|
5007
|
+
* @description Deprecated alias for tx_max_value. Same unit semantics (native major units, not ETH-only).
|
|
5008
|
+
*/
|
|
4875
5009
|
tx_max_value_eth?: string;
|
|
5010
|
+
/**
|
|
5011
|
+
* @deprecated
|
|
5012
|
+
* @description Deprecated alias for tx_daily_limit.
|
|
5013
|
+
*/
|
|
4876
5014
|
tx_daily_limit_eth?: string;
|
|
4877
|
-
/** @description
|
|
5015
|
+
/** @description Sum of today's spend across all chain families in major units. Prefer tx_spent_today_by_chain. */
|
|
5016
|
+
tx_spent_today?: string;
|
|
5017
|
+
/**
|
|
5018
|
+
* @deprecated
|
|
5019
|
+
* @description Deprecated alias for tx_spent_today.
|
|
5020
|
+
*/
|
|
4878
5021
|
tx_spent_today_eth?: string;
|
|
4879
5022
|
tx_allowed_chains?: string[];
|
|
4880
5023
|
token_ttl_seconds?: number | null;
|
|
@@ -4914,6 +5057,20 @@ export interface components {
|
|
|
4914
5057
|
message_signing_enabled?: boolean;
|
|
4915
5058
|
/** @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
5059
|
raw_signing_enabled?: boolean;
|
|
5060
|
+
/** @description Token contract/mint addresses this agent may interact with. */
|
|
5061
|
+
tx_token_allowlist?: string[];
|
|
5062
|
+
/** @description When true, only tokens in the known_tokens registry may be used. */
|
|
5063
|
+
tx_known_tokens_only?: boolean;
|
|
5064
|
+
/** @description Allowed XRP Ledger transaction types. */
|
|
5065
|
+
xrpl_allowed_tx_types?: string[];
|
|
5066
|
+
/** @description Per-chain guardrail overrides. */
|
|
5067
|
+
per_chain_guardrails?: {
|
|
5068
|
+
[key: string]: unknown;
|
|
5069
|
+
};
|
|
5070
|
+
/** @description Per-chain-family daily spend in native major units (keys: evm, bitcoin, solana, xrp, cardano, tron). */
|
|
5071
|
+
tx_spent_today_by_chain?: {
|
|
5072
|
+
[key: string]: string;
|
|
5073
|
+
};
|
|
4917
5074
|
/**
|
|
4918
5075
|
* Format: date-time
|
|
4919
5076
|
* @description Optional expiration time for the agent's API key.
|
|
@@ -4930,6 +5087,37 @@ export interface components {
|
|
|
4930
5087
|
/** @description Multi-chain; one Safe per chain */
|
|
4931
5088
|
smart_accounts?: components["schemas"]["AgentSmartAccountResponse"][];
|
|
4932
5089
|
};
|
|
5090
|
+
KnownToken: {
|
|
5091
|
+
/** Format: uuid */
|
|
5092
|
+
id: string;
|
|
5093
|
+
chain: string;
|
|
5094
|
+
symbol: string;
|
|
5095
|
+
name: string;
|
|
5096
|
+
contract_address: string;
|
|
5097
|
+
decimals: number;
|
|
5098
|
+
is_testnet: boolean;
|
|
5099
|
+
is_verified: boolean;
|
|
5100
|
+
logo_url?: string | null;
|
|
5101
|
+
/** Format: date-time */
|
|
5102
|
+
created_at?: string;
|
|
5103
|
+
/** Format: date-time */
|
|
5104
|
+
updated_at?: string;
|
|
5105
|
+
};
|
|
5106
|
+
KnownTokenListResponse: {
|
|
5107
|
+
tokens: components["schemas"]["KnownToken"][];
|
|
5108
|
+
};
|
|
5109
|
+
CreateKnownTokenRequest: {
|
|
5110
|
+
chain: string;
|
|
5111
|
+
symbol: string;
|
|
5112
|
+
name: string;
|
|
5113
|
+
contract_address: string;
|
|
5114
|
+
decimals: number;
|
|
5115
|
+
/** @default false */
|
|
5116
|
+
is_testnet: boolean;
|
|
5117
|
+
/** @default true */
|
|
5118
|
+
is_verified: boolean;
|
|
5119
|
+
logo_url?: string | null;
|
|
5120
|
+
};
|
|
4933
5121
|
/** @description One Safe smart account per chain for an agent */
|
|
4934
5122
|
AgentSmartAccountResponse: {
|
|
4935
5123
|
/** Format: uuid */
|
|
@@ -6248,6 +6436,13 @@ export interface components {
|
|
|
6248
6436
|
address: string;
|
|
6249
6437
|
balance_wei: string;
|
|
6250
6438
|
balance_display: string;
|
|
6439
|
+
/** @description Token balances when ?tokens= query param is provided */
|
|
6440
|
+
tokens?: {
|
|
6441
|
+
contract_address?: string;
|
|
6442
|
+
symbol?: string | null;
|
|
6443
|
+
balance?: string;
|
|
6444
|
+
decimals?: number | null;
|
|
6445
|
+
}[];
|
|
6251
6446
|
};
|
|
6252
6447
|
PaymentRequirement: {
|
|
6253
6448
|
x402Version?: number;
|
|
@@ -12392,5 +12587,96 @@ export interface operations {
|
|
|
12392
12587
|
404: components["responses"]["NotFound"];
|
|
12393
12588
|
};
|
|
12394
12589
|
};
|
|
12590
|
+
listKnownTokens: {
|
|
12591
|
+
parameters: {
|
|
12592
|
+
query?: {
|
|
12593
|
+
/** @description Filter by chain name */
|
|
12594
|
+
chain?: string;
|
|
12595
|
+
};
|
|
12596
|
+
header?: never;
|
|
12597
|
+
path?: never;
|
|
12598
|
+
cookie?: never;
|
|
12599
|
+
};
|
|
12600
|
+
requestBody?: never;
|
|
12601
|
+
responses: {
|
|
12602
|
+
/** @description Token list */
|
|
12603
|
+
200: {
|
|
12604
|
+
headers: {
|
|
12605
|
+
[name: string]: unknown;
|
|
12606
|
+
};
|
|
12607
|
+
content: {
|
|
12608
|
+
"application/json": components["schemas"]["KnownTokenListResponse"];
|
|
12609
|
+
};
|
|
12610
|
+
};
|
|
12611
|
+
};
|
|
12612
|
+
};
|
|
12613
|
+
listTokensByChain: {
|
|
12614
|
+
parameters: {
|
|
12615
|
+
query?: never;
|
|
12616
|
+
header?: never;
|
|
12617
|
+
path: {
|
|
12618
|
+
chain_name: string;
|
|
12619
|
+
};
|
|
12620
|
+
cookie?: never;
|
|
12621
|
+
};
|
|
12622
|
+
requestBody?: never;
|
|
12623
|
+
responses: {
|
|
12624
|
+
/** @description Token list for chain */
|
|
12625
|
+
200: {
|
|
12626
|
+
headers: {
|
|
12627
|
+
[name: string]: unknown;
|
|
12628
|
+
};
|
|
12629
|
+
content: {
|
|
12630
|
+
"application/json": components["schemas"]["KnownTokenListResponse"];
|
|
12631
|
+
};
|
|
12632
|
+
};
|
|
12633
|
+
};
|
|
12634
|
+
};
|
|
12635
|
+
createKnownToken: {
|
|
12636
|
+
parameters: {
|
|
12637
|
+
query?: never;
|
|
12638
|
+
header?: never;
|
|
12639
|
+
path?: never;
|
|
12640
|
+
cookie?: never;
|
|
12641
|
+
};
|
|
12642
|
+
requestBody: {
|
|
12643
|
+
content: {
|
|
12644
|
+
"application/json": components["schemas"]["CreateKnownTokenRequest"];
|
|
12645
|
+
};
|
|
12646
|
+
};
|
|
12647
|
+
responses: {
|
|
12648
|
+
/** @description Token created */
|
|
12649
|
+
201: {
|
|
12650
|
+
headers: {
|
|
12651
|
+
[name: string]: unknown;
|
|
12652
|
+
};
|
|
12653
|
+
content: {
|
|
12654
|
+
"application/json": components["schemas"]["KnownToken"];
|
|
12655
|
+
};
|
|
12656
|
+
};
|
|
12657
|
+
403: components["responses"]["Forbidden"];
|
|
12658
|
+
};
|
|
12659
|
+
};
|
|
12660
|
+
deleteKnownToken: {
|
|
12661
|
+
parameters: {
|
|
12662
|
+
query?: never;
|
|
12663
|
+
header?: never;
|
|
12664
|
+
path: {
|
|
12665
|
+
token_id: string;
|
|
12666
|
+
};
|
|
12667
|
+
cookie?: never;
|
|
12668
|
+
};
|
|
12669
|
+
requestBody?: never;
|
|
12670
|
+
responses: {
|
|
12671
|
+
/** @description Token deleted */
|
|
12672
|
+
204: {
|
|
12673
|
+
headers: {
|
|
12674
|
+
[name: string]: unknown;
|
|
12675
|
+
};
|
|
12676
|
+
content?: never;
|
|
12677
|
+
};
|
|
12678
|
+
403: components["responses"]["Forbidden"];
|
|
12679
|
+
};
|
|
12680
|
+
};
|
|
12395
12681
|
}
|
|
12396
12682
|
//# sourceMappingURL=api-types.d.ts.map
|