@1claw/sdk 0.27.0 → 0.29.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.
@@ -1432,6 +1432,27 @@ export interface paths {
1432
1432
  patch?: never;
1433
1433
  trace?: never;
1434
1434
  };
1435
+ "/v1/agents/{agent_id}/signing-keys/{chain}/balance": {
1436
+ parameters: {
1437
+ query?: never;
1438
+ header?: never;
1439
+ path?: never;
1440
+ cookie?: never;
1441
+ };
1442
+ /**
1443
+ * Get signing key balance
1444
+ * @description Returns the native token balance for the agent's signing key address
1445
+ * on the specified chain.
1446
+ */
1447
+ get: operations["getSigningKeyBalance"];
1448
+ put?: never;
1449
+ post?: never;
1450
+ delete?: never;
1451
+ options?: never;
1452
+ head?: never;
1453
+ patch?: never;
1454
+ trace?: never;
1455
+ };
1435
1456
  "/v1/agents/{agent_id}/sign": {
1436
1457
  parameters: {
1437
1458
  query?: never;
@@ -2099,6 +2120,88 @@ export interface paths {
2099
2120
  patch?: never;
2100
2121
  trace?: never;
2101
2122
  };
2123
+ "/v1/treasury/{treasury_id}/proposals": {
2124
+ parameters: {
2125
+ query?: never;
2126
+ header?: never;
2127
+ path?: never;
2128
+ cookie?: never;
2129
+ };
2130
+ /** List proposals for a treasury */
2131
+ get: operations["listTreasuryProposals"];
2132
+ put?: never;
2133
+ /**
2134
+ * Create a multisig proposal
2135
+ * @description Create a new Safe multisig transaction proposal. The proposer must be a
2136
+ * treasury signer or an agent with an active delegation for the treasury.
2137
+ * If auto-approve rules match, the agent's signature is auto-inserted and
2138
+ * auto-execute fires if threshold is met.
2139
+ */
2140
+ post: operations["createTreasuryProposal"];
2141
+ delete?: never;
2142
+ options?: never;
2143
+ head?: never;
2144
+ patch?: never;
2145
+ trace?: never;
2146
+ };
2147
+ "/v1/treasury/{treasury_id}/proposals/{proposal_id}": {
2148
+ parameters: {
2149
+ query?: never;
2150
+ header?: never;
2151
+ path?: never;
2152
+ cookie?: never;
2153
+ };
2154
+ /** Get a proposal with collected signatures */
2155
+ get: operations["getTreasuryProposal"];
2156
+ put?: never;
2157
+ post?: never;
2158
+ /** Cancel a pending proposal (proposer only) */
2159
+ delete: operations["cancelTreasuryProposal"];
2160
+ options?: never;
2161
+ head?: never;
2162
+ patch?: never;
2163
+ trace?: never;
2164
+ };
2165
+ "/v1/treasury/{treasury_id}/proposals/{proposal_id}/sign": {
2166
+ parameters: {
2167
+ query?: never;
2168
+ header?: never;
2169
+ path?: never;
2170
+ cookie?: never;
2171
+ };
2172
+ get?: never;
2173
+ put?: never;
2174
+ /**
2175
+ * Sign a proposal (approve or reject)
2176
+ * @description Submit an EIP-712 signature for a pending proposal. When approve signatures
2177
+ * reach the Safe threshold, auto-execute fires: signatures are collected in
2178
+ * address-sorted order, `execTransaction` calldata is built, and the transaction
2179
+ * is broadcast via RPC.
2180
+ */
2181
+ post: operations["signTreasuryProposal"];
2182
+ delete?: never;
2183
+ options?: never;
2184
+ head?: never;
2185
+ patch?: never;
2186
+ trace?: never;
2187
+ };
2188
+ "/v1/treasury/{treasury_id}/proposals/{proposal_id}/execute": {
2189
+ parameters: {
2190
+ query?: never;
2191
+ header?: never;
2192
+ path?: never;
2193
+ cookie?: never;
2194
+ };
2195
+ get?: never;
2196
+ put?: never;
2197
+ /** Force-execute a proposal if threshold is met (user-only) */
2198
+ post: operations["executeTreasuryProposal"];
2199
+ delete?: never;
2200
+ options?: never;
2201
+ head?: never;
2202
+ patch?: never;
2203
+ trace?: never;
2204
+ };
2102
2205
  "/v1/treasury/wallets/generate": {
2103
2206
  parameters: {
2104
2207
  query?: never;
@@ -2202,6 +2305,108 @@ export interface paths {
2202
2305
  patch?: never;
2203
2306
  trace?: never;
2204
2307
  };
2308
+ "/v1/treasury/wallets/{chain}/balance": {
2309
+ parameters: {
2310
+ query?: never;
2311
+ header?: never;
2312
+ path?: never;
2313
+ cookie?: never;
2314
+ };
2315
+ /**
2316
+ * Get wallet balance
2317
+ * @description Returns the native and token balances for the user's active wallet
2318
+ * on the specified chain.
2319
+ */
2320
+ get: operations["getTreasuryWalletBalance"];
2321
+ put?: never;
2322
+ post?: never;
2323
+ delete?: never;
2324
+ options?: never;
2325
+ head?: never;
2326
+ patch?: never;
2327
+ trace?: never;
2328
+ };
2329
+ "/v1/treasury/wallets/{chain}/send": {
2330
+ parameters: {
2331
+ query?: never;
2332
+ header?: never;
2333
+ path?: never;
2334
+ cookie?: never;
2335
+ };
2336
+ get?: never;
2337
+ put?: never;
2338
+ /**
2339
+ * Send from treasury wallet
2340
+ * @description Signs and broadcasts a transaction from the user's active wallet on
2341
+ * the specified chain. Requires re-authentication via `X-Auth-Confirm`
2342
+ * header (account password). Human users only.
2343
+ */
2344
+ post: operations["sendFromTreasuryWallet"];
2345
+ delete?: never;
2346
+ options?: never;
2347
+ head?: never;
2348
+ patch?: never;
2349
+ trace?: never;
2350
+ };
2351
+ "/v1/treasury/wallets/{chain}/swap": {
2352
+ parameters: {
2353
+ query?: never;
2354
+ header?: never;
2355
+ path?: never;
2356
+ cookie?: never;
2357
+ };
2358
+ get?: never;
2359
+ put?: never;
2360
+ /**
2361
+ * Swap tokens via DEX aggregator
2362
+ * @description Executes a token swap through a DEX aggregator from the user's active
2363
+ * wallet on the specified chain. Requires re-authentication via
2364
+ * `X-Auth-Confirm` header (account password). Human users only.
2365
+ */
2366
+ post: operations["swapFromTreasuryWallet"];
2367
+ delete?: never;
2368
+ options?: never;
2369
+ head?: never;
2370
+ patch?: never;
2371
+ trace?: never;
2372
+ };
2373
+ "/v1/webhooks": {
2374
+ parameters: {
2375
+ query?: never;
2376
+ header?: never;
2377
+ path?: never;
2378
+ cookie?: never;
2379
+ };
2380
+ /** List webhooks */
2381
+ get: operations["listWebhooks"];
2382
+ put?: never;
2383
+ /** Register a webhook */
2384
+ post: operations["createWebhook"];
2385
+ delete?: never;
2386
+ options?: never;
2387
+ head?: never;
2388
+ patch?: never;
2389
+ trace?: never;
2390
+ };
2391
+ "/v1/webhooks/{id}": {
2392
+ parameters: {
2393
+ query?: never;
2394
+ header?: never;
2395
+ path?: never;
2396
+ cookie?: never;
2397
+ };
2398
+ /** Get webhook */
2399
+ get: operations["getWebhook"];
2400
+ put?: never;
2401
+ post?: never;
2402
+ /** Delete webhook */
2403
+ delete: operations["deleteWebhook"];
2404
+ options?: never;
2405
+ head?: never;
2406
+ /** Update webhook */
2407
+ patch: operations["updateWebhook"];
2408
+ trace?: never;
2409
+ };
2205
2410
  "/v1/admin/settings": {
2206
2411
  parameters: {
2207
2412
  query?: never;
@@ -2732,6 +2937,70 @@ export interface paths {
2732
2937
  };
2733
2938
  trace?: never;
2734
2939
  };
2940
+ "/v1/platform/apps/{appId}/rotate-key": {
2941
+ parameters: {
2942
+ query?: never;
2943
+ header?: never;
2944
+ path?: never;
2945
+ cookie?: never;
2946
+ };
2947
+ get?: never;
2948
+ put?: never;
2949
+ /**
2950
+ * Rotate platform API key
2951
+ * @description Generate a new API key for the platform app. The old key is immediately invalidated. Returns the new key (one-time).
2952
+ */
2953
+ post: {
2954
+ parameters: {
2955
+ query?: never;
2956
+ header?: never;
2957
+ path: {
2958
+ appId: string;
2959
+ };
2960
+ cookie?: never;
2961
+ };
2962
+ requestBody?: {
2963
+ content: {
2964
+ "application/json": {
2965
+ /**
2966
+ * Format: date-time
2967
+ * @description Optional expiration for the new key.
2968
+ */
2969
+ api_key_expires_at?: string | null;
2970
+ };
2971
+ };
2972
+ };
2973
+ responses: {
2974
+ /** @description New key generated */
2975
+ 200: {
2976
+ headers: {
2977
+ [name: string]: unknown;
2978
+ };
2979
+ content: {
2980
+ "application/json": {
2981
+ /** @description The new API key (shown once) */
2982
+ api_key?: string;
2983
+ api_key_prefix?: string;
2984
+ /** Format: date-time */
2985
+ api_key_expires_at?: string | null;
2986
+ };
2987
+ };
2988
+ };
2989
+ /** @description Only human users can rotate platform keys */
2990
+ 403: {
2991
+ headers: {
2992
+ [name: string]: unknown;
2993
+ };
2994
+ content?: never;
2995
+ };
2996
+ };
2997
+ };
2998
+ delete?: never;
2999
+ options?: never;
3000
+ head?: never;
3001
+ patch?: never;
3002
+ trace?: never;
3003
+ };
2735
3004
  "/v1/platform/apps/{appId}/templates": {
2736
3005
  parameters: {
2737
3006
  query?: never;
@@ -3784,6 +4053,11 @@ export interface components {
3784
4053
  */
3785
4054
  shroud_enabled: boolean;
3786
4055
  shroud_config?: components["schemas"]["ShroudConfig"];
4056
+ /**
4057
+ * Format: date-time
4058
+ * @description Optional expiration time for the agent's API key.
4059
+ */
4060
+ api_key_expires_at?: string | null;
3787
4061
  };
3788
4062
  UpdateAgentRequest: {
3789
4063
  name?: string;
@@ -3819,6 +4093,11 @@ export interface components {
3819
4093
  * Hard-capped at 3600 seconds.
3820
4094
  */
3821
4095
  federated_token_ttl_seconds?: number | null;
4096
+ /**
4097
+ * Format: date-time
4098
+ * @description Optional expiration time for the agent's API key. Set to null to clear.
4099
+ */
4100
+ api_key_expires_at?: string | null;
3822
4101
  };
3823
4102
  AgentResponse: {
3824
4103
  /** Format: uuid */
@@ -3871,6 +4150,13 @@ export interface components {
3871
4150
  eip712_default_policy?: "deny" | "allow";
3872
4151
  /** @description Whether EIP-191 personal_sign is enabled. */
3873
4152
  message_signing_enabled?: boolean;
4153
+ /**
4154
+ * Format: date-time
4155
+ * @description Optional expiration time for the agent's API key.
4156
+ */
4157
+ api_key_expires_at?: string | null;
4158
+ /** @description Agent's Ethereum EOA address (used as Safe signer for smart accounts and Intents API). */
4159
+ evm_address?: string | null;
3874
4160
  /** Format: date-time */
3875
4161
  created_at: string;
3876
4162
  /** Format: date-time */
@@ -4279,6 +4565,11 @@ export interface components {
4279
4565
  * @enum {string}
4280
4566
  */
4281
4567
  mode: "eoa" | "smart_account";
4568
+ /**
4569
+ * @description Whether to submit as a gasless (sponsored) transaction
4570
+ * @default false
4571
+ */
4572
+ gasless: boolean;
4282
4573
  };
4283
4574
  SignTransactionRequest: {
4284
4575
  /** @description Destination address (0x-prefixed) */
@@ -4883,6 +5174,79 @@ export interface components {
4883
5174
  /** Format: date-time */
4884
5175
  resolved_at?: string;
4885
5176
  };
5177
+ CreateTreasuryProposalRequest: {
5178
+ /** @description Destination address (0x-prefixed) */
5179
+ to_address: string;
5180
+ /** @description Transaction value in wei */
5181
+ value_wei: string;
5182
+ /** @description Chain name (e.g. ethereum, base) */
5183
+ chain: string;
5184
+ /** @description Numeric chain ID (alternative to chain name) */
5185
+ chain_id?: number;
5186
+ /** @description Hex-encoded calldata (optional) */
5187
+ data_hex?: string;
5188
+ /**
5189
+ * @description Safe operation type (0 = Call, 1 = DelegateCall)
5190
+ * @default 0
5191
+ */
5192
+ operation: number;
5193
+ };
5194
+ SignTreasuryProposalRequest: {
5195
+ /**
5196
+ * @description Whether to approve or reject the proposal
5197
+ * @enum {string}
5198
+ */
5199
+ decision: "approve" | "reject";
5200
+ /** @description EIP-712 signature (hex). If omitted, server signs with caller's key. */
5201
+ signature?: string;
5202
+ };
5203
+ TreasuryProposalResponse: {
5204
+ /** Format: uuid */
5205
+ id?: string;
5206
+ /** Format: uuid */
5207
+ treasury_id?: string;
5208
+ /** Format: uuid */
5209
+ proposed_by?: string;
5210
+ /** @enum {string} */
5211
+ proposed_by_type?: "user" | "agent";
5212
+ chain?: string;
5213
+ chain_id?: number;
5214
+ safe_address?: string;
5215
+ to_address?: string;
5216
+ value_wei?: string;
5217
+ data_hex?: string | null;
5218
+ operation?: number;
5219
+ safe_tx_hash?: string | null;
5220
+ nonce?: number | null;
5221
+ /** @enum {string} */
5222
+ status?: "pending" | "approved" | "executing" | "executed" | "rejected" | "expired";
5223
+ threshold?: number;
5224
+ /** Format: date-time */
5225
+ expires_at?: string | null;
5226
+ executed_tx_hash?: string | null;
5227
+ /** Format: date-time */
5228
+ executed_at?: string | null;
5229
+ signatures?: components["schemas"]["ProposalSignatureResponse"][];
5230
+ /** Format: date-time */
5231
+ created_at?: string;
5232
+ };
5233
+ ProposalSignatureResponse: {
5234
+ /** Format: uuid */
5235
+ id?: string;
5236
+ /** Format: uuid */
5237
+ signer_id?: string;
5238
+ /** @enum {string} */
5239
+ signer_type?: "user" | "agent";
5240
+ signer_address?: string;
5241
+ signature?: string;
5242
+ /** @enum {string} */
5243
+ decision?: "approve" | "reject";
5244
+ /** Format: date-time */
5245
+ created_at?: string;
5246
+ };
5247
+ TreasuryProposalListResponse: {
5248
+ proposals?: components["schemas"]["TreasuryProposalResponse"][];
5249
+ };
4886
5250
  GenerateTreasuryWalletsRequest: {
4887
5251
  /** @description Chains to generate wallets for (e.g. ["ethereum", "solana"]). Omit for all supported chains. */
4888
5252
  chains?: string[];
@@ -4908,14 +5272,110 @@ export interface components {
4908
5272
  /** @description Raw private key in hex encoding. Handle with extreme care. */
4909
5273
  private_key_hex?: string;
4910
5274
  };
4911
- PaymentRequirement: {
4912
- x402Version?: number;
4913
- accepts?: {
4914
- scheme?: string;
4915
- network?: string;
4916
- payTo?: string;
4917
- price?: string;
4918
- requiredDeadlineSeconds?: number;
5275
+ TreasuryWalletBalanceResponse: {
5276
+ chain: string;
5277
+ address: string;
5278
+ native: {
5279
+ symbol: string;
5280
+ balance_wei: string;
5281
+ balance_display: string;
5282
+ };
5283
+ tokens?: {
5284
+ contract_address: string;
5285
+ balance_raw: string;
5286
+ }[];
5287
+ };
5288
+ TreasuryWalletSendRequest: {
5289
+ /** @description Destination address (0x-prefixed) */
5290
+ to: string;
5291
+ /** @description Value in wei */
5292
+ value_wei: string;
5293
+ /** @description Hex-encoded calldata (optional) */
5294
+ data?: string;
5295
+ /** @description Gas limit override */
5296
+ gas_limit?: number;
5297
+ };
5298
+ TreasuryWalletSendResponse: {
5299
+ tx_hash: string;
5300
+ from: string;
5301
+ to: string;
5302
+ value_wei: string;
5303
+ chain: string;
5304
+ status: string;
5305
+ };
5306
+ TreasuryWalletSwapRequest: {
5307
+ /** @description Address of the token to sell (or "native" for ETH) */
5308
+ sell_token: string;
5309
+ /** @description Address of the token to buy (or "native" for ETH) */
5310
+ buy_token: string;
5311
+ /** @description Amount to sell in token's smallest unit */
5312
+ sell_amount: string;
5313
+ };
5314
+ TreasuryWalletSwapResponse: {
5315
+ tx_hash: string;
5316
+ sell_token: string;
5317
+ buy_token: string;
5318
+ sell_amount: string;
5319
+ buy_amount: string;
5320
+ chain: string;
5321
+ status: string;
5322
+ };
5323
+ CreateWebhookRequest: {
5324
+ /**
5325
+ * Format: uri
5326
+ * @description HTTPS URL to deliver webhook events to
5327
+ */
5328
+ url: string;
5329
+ /** @description Event types to subscribe to */
5330
+ events: string[];
5331
+ description?: string;
5332
+ };
5333
+ UpdateWebhookRequest: {
5334
+ /** Format: uri */
5335
+ url?: string;
5336
+ events?: string[];
5337
+ is_active?: boolean;
5338
+ description?: string;
5339
+ };
5340
+ WebhookCreatedResponse: {
5341
+ /** Format: uuid */
5342
+ id: string;
5343
+ /** Format: uri */
5344
+ url: string;
5345
+ events: string[];
5346
+ /** @description HMAC signing secret for verifying payloads (shown only once) */
5347
+ secret: string;
5348
+ /** Format: date-time */
5349
+ created_at: string;
5350
+ };
5351
+ WebhookResponse: {
5352
+ /** Format: uuid */
5353
+ id: string;
5354
+ /** Format: uri */
5355
+ url: string;
5356
+ events: string[];
5357
+ is_active: boolean;
5358
+ description?: string;
5359
+ /** Format: date-time */
5360
+ created_at: string;
5361
+ };
5362
+ WebhookListResponse: {
5363
+ webhooks: components["schemas"]["WebhookResponse"][];
5364
+ };
5365
+ SigningKeyBalanceResponse: {
5366
+ chain: string;
5367
+ address: string;
5368
+ balance_wei: string;
5369
+ balance_display: string;
5370
+ };
5371
+ PaymentRequirement: {
5372
+ x402Version?: number;
5373
+ accepts?: {
5374
+ scheme?: string;
5375
+ network?: string;
5376
+ payTo?: string;
5377
+ price?: string;
5378
+ requiredDeadlineSeconds?: number;
4919
5379
  }[];
4920
5380
  description?: string;
4921
5381
  };
@@ -5048,6 +5508,11 @@ export interface components {
5048
5508
  */
5049
5509
  auth_mode: "silent" | "user_signin" | "configurable";
5050
5510
  max_connected_users?: number | null;
5511
+ /**
5512
+ * Format: date-time
5513
+ * @description Optional expiration time for the platform API key.
5514
+ */
5515
+ api_key_expires_at?: string | null;
5051
5516
  };
5052
5517
  UpdatePlatformAppRequest: {
5053
5518
  name?: string;
@@ -5065,6 +5530,11 @@ export interface components {
5065
5530
  auth_mode?: "silent" | "user_signin" | "configurable";
5066
5531
  max_connected_users?: number | null;
5067
5532
  is_active?: boolean;
5533
+ /**
5534
+ * Format: date-time
5535
+ * @description Optional expiration time for the platform API key. Set to null to clear.
5536
+ */
5537
+ api_key_expires_at?: string | null;
5068
5538
  };
5069
5539
  PlatformAppResponse: {
5070
5540
  /** Format: uuid */
@@ -5085,6 +5555,16 @@ export interface components {
5085
5555
  auth_mode?: string;
5086
5556
  max_connected_users?: number | null;
5087
5557
  connected_users?: number;
5558
+ /**
5559
+ * Format: date-time
5560
+ * @description When the platform API key expires.
5561
+ */
5562
+ api_key_expires_at?: string | null;
5563
+ /**
5564
+ * Format: date-time
5565
+ * @description When the platform API key was last rotated.
5566
+ */
5567
+ api_key_rotated_at?: string | null;
5088
5568
  /** Format: date-time */
5089
5569
  created_at?: string;
5090
5570
  /** Format: date-time */
@@ -7780,6 +8260,32 @@ export interface operations {
7780
8260
  404: components["responses"]["NotFound"];
7781
8261
  };
7782
8262
  };
8263
+ getSigningKeyBalance: {
8264
+ parameters: {
8265
+ query?: never;
8266
+ header?: never;
8267
+ path: {
8268
+ agent_id: components["parameters"]["AgentId"];
8269
+ chain: string;
8270
+ };
8271
+ cookie?: never;
8272
+ };
8273
+ requestBody?: never;
8274
+ responses: {
8275
+ /** @description Signing key balance */
8276
+ 200: {
8277
+ headers: {
8278
+ [name: string]: unknown;
8279
+ };
8280
+ content: {
8281
+ "application/json": components["schemas"]["SigningKeyBalanceResponse"];
8282
+ };
8283
+ };
8284
+ 401: components["responses"]["Unauthorized"];
8285
+ 403: components["responses"]["Forbidden"];
8286
+ 404: components["responses"]["NotFound"];
8287
+ };
8288
+ };
7783
8289
  signIntent: {
7784
8290
  parameters: {
7785
8291
  query?: never;
@@ -8838,6 +9344,167 @@ export interface operations {
8838
9344
  404: components["responses"]["NotFound"];
8839
9345
  };
8840
9346
  };
9347
+ listTreasuryProposals: {
9348
+ parameters: {
9349
+ query?: {
9350
+ status?: "pending" | "approved" | "executing" | "executed" | "rejected" | "expired";
9351
+ };
9352
+ header?: never;
9353
+ path: {
9354
+ treasury_id: string;
9355
+ };
9356
+ cookie?: never;
9357
+ };
9358
+ requestBody?: never;
9359
+ responses: {
9360
+ /** @description Proposal list */
9361
+ 200: {
9362
+ headers: {
9363
+ [name: string]: unknown;
9364
+ };
9365
+ content: {
9366
+ "application/json": components["schemas"]["TreasuryProposalListResponse"];
9367
+ };
9368
+ };
9369
+ 401: components["responses"]["Unauthorized"];
9370
+ 403: components["responses"]["Forbidden"];
9371
+ };
9372
+ };
9373
+ createTreasuryProposal: {
9374
+ parameters: {
9375
+ query?: never;
9376
+ header?: never;
9377
+ path: {
9378
+ treasury_id: string;
9379
+ };
9380
+ cookie?: never;
9381
+ };
9382
+ requestBody: {
9383
+ content: {
9384
+ "application/json": components["schemas"]["CreateTreasuryProposalRequest"];
9385
+ };
9386
+ };
9387
+ responses: {
9388
+ /** @description Proposal created */
9389
+ 201: {
9390
+ headers: {
9391
+ [name: string]: unknown;
9392
+ };
9393
+ content: {
9394
+ "application/json": components["schemas"]["TreasuryProposalResponse"];
9395
+ };
9396
+ };
9397
+ 400: components["responses"]["BadRequest"];
9398
+ 401: components["responses"]["Unauthorized"];
9399
+ 403: components["responses"]["Forbidden"];
9400
+ };
9401
+ };
9402
+ getTreasuryProposal: {
9403
+ parameters: {
9404
+ query?: never;
9405
+ header?: never;
9406
+ path: {
9407
+ treasury_id: string;
9408
+ proposal_id: string;
9409
+ };
9410
+ cookie?: never;
9411
+ };
9412
+ requestBody?: never;
9413
+ responses: {
9414
+ /** @description Proposal details */
9415
+ 200: {
9416
+ headers: {
9417
+ [name: string]: unknown;
9418
+ };
9419
+ content: {
9420
+ "application/json": components["schemas"]["TreasuryProposalResponse"];
9421
+ };
9422
+ };
9423
+ 401: components["responses"]["Unauthorized"];
9424
+ 404: components["responses"]["NotFound"];
9425
+ };
9426
+ };
9427
+ cancelTreasuryProposal: {
9428
+ parameters: {
9429
+ query?: never;
9430
+ header?: never;
9431
+ path: {
9432
+ treasury_id: string;
9433
+ proposal_id: string;
9434
+ };
9435
+ cookie?: never;
9436
+ };
9437
+ requestBody?: never;
9438
+ responses: {
9439
+ /** @description Proposal cancelled */
9440
+ 204: {
9441
+ headers: {
9442
+ [name: string]: unknown;
9443
+ };
9444
+ content?: never;
9445
+ };
9446
+ 401: components["responses"]["Unauthorized"];
9447
+ 403: components["responses"]["Forbidden"];
9448
+ 404: components["responses"]["NotFound"];
9449
+ };
9450
+ };
9451
+ signTreasuryProposal: {
9452
+ parameters: {
9453
+ query?: never;
9454
+ header?: never;
9455
+ path: {
9456
+ treasury_id: string;
9457
+ proposal_id: string;
9458
+ };
9459
+ cookie?: never;
9460
+ };
9461
+ requestBody: {
9462
+ content: {
9463
+ "application/json": components["schemas"]["SignTreasuryProposalRequest"];
9464
+ };
9465
+ };
9466
+ responses: {
9467
+ /** @description Signature recorded (may include executed_tx_hash if auto-executed) */
9468
+ 200: {
9469
+ headers: {
9470
+ [name: string]: unknown;
9471
+ };
9472
+ content: {
9473
+ "application/json": components["schemas"]["TreasuryProposalResponse"];
9474
+ };
9475
+ };
9476
+ 400: components["responses"]["BadRequest"];
9477
+ 401: components["responses"]["Unauthorized"];
9478
+ 403: components["responses"]["Forbidden"];
9479
+ 404: components["responses"]["NotFound"];
9480
+ };
9481
+ };
9482
+ executeTreasuryProposal: {
9483
+ parameters: {
9484
+ query?: never;
9485
+ header?: never;
9486
+ path: {
9487
+ treasury_id: string;
9488
+ proposal_id: string;
9489
+ };
9490
+ cookie?: never;
9491
+ };
9492
+ requestBody?: never;
9493
+ responses: {
9494
+ /** @description Proposal executed */
9495
+ 200: {
9496
+ headers: {
9497
+ [name: string]: unknown;
9498
+ };
9499
+ content: {
9500
+ "application/json": components["schemas"]["TreasuryProposalResponse"];
9501
+ };
9502
+ };
9503
+ 401: components["responses"]["Unauthorized"];
9504
+ 403: components["responses"]["Forbidden"];
9505
+ 404: components["responses"]["NotFound"];
9506
+ };
9507
+ };
8841
9508
  generateTreasuryWallets: {
8842
9509
  parameters: {
8843
9510
  query?: never;
@@ -8989,6 +9656,222 @@ export interface operations {
8989
9656
  404: components["responses"]["NotFound"];
8990
9657
  };
8991
9658
  };
9659
+ getTreasuryWalletBalance: {
9660
+ parameters: {
9661
+ query?: {
9662
+ /** @description Optional list of ERC-20 contract addresses to query balances for */
9663
+ tokens?: string[];
9664
+ };
9665
+ header?: never;
9666
+ path: {
9667
+ chain: string;
9668
+ };
9669
+ cookie?: never;
9670
+ };
9671
+ requestBody?: never;
9672
+ responses: {
9673
+ /** @description Wallet balance */
9674
+ 200: {
9675
+ headers: {
9676
+ [name: string]: unknown;
9677
+ };
9678
+ content: {
9679
+ "application/json": components["schemas"]["TreasuryWalletBalanceResponse"];
9680
+ };
9681
+ };
9682
+ 401: components["responses"]["Unauthorized"];
9683
+ 403: components["responses"]["Forbidden"];
9684
+ 404: components["responses"]["NotFound"];
9685
+ };
9686
+ };
9687
+ sendFromTreasuryWallet: {
9688
+ parameters: {
9689
+ query?: never;
9690
+ header: {
9691
+ /** @description Account password for re-authentication */
9692
+ "X-Auth-Confirm": string;
9693
+ };
9694
+ path: {
9695
+ chain: string;
9696
+ };
9697
+ cookie?: never;
9698
+ };
9699
+ requestBody: {
9700
+ content: {
9701
+ "application/json": components["schemas"]["TreasuryWalletSendRequest"];
9702
+ };
9703
+ };
9704
+ responses: {
9705
+ /** @description Transaction sent */
9706
+ 200: {
9707
+ headers: {
9708
+ [name: string]: unknown;
9709
+ };
9710
+ content: {
9711
+ "application/json": components["schemas"]["TreasuryWalletSendResponse"];
9712
+ };
9713
+ };
9714
+ 400: components["responses"]["BadRequest"];
9715
+ 401: components["responses"]["Unauthorized"];
9716
+ 403: components["responses"]["Forbidden"];
9717
+ 404: components["responses"]["NotFound"];
9718
+ };
9719
+ };
9720
+ swapFromTreasuryWallet: {
9721
+ parameters: {
9722
+ query?: never;
9723
+ header: {
9724
+ /** @description Account password for re-authentication */
9725
+ "X-Auth-Confirm": string;
9726
+ };
9727
+ path: {
9728
+ chain: string;
9729
+ };
9730
+ cookie?: never;
9731
+ };
9732
+ requestBody: {
9733
+ content: {
9734
+ "application/json": components["schemas"]["TreasuryWalletSwapRequest"];
9735
+ };
9736
+ };
9737
+ responses: {
9738
+ /** @description Swap executed */
9739
+ 200: {
9740
+ headers: {
9741
+ [name: string]: unknown;
9742
+ };
9743
+ content: {
9744
+ "application/json": components["schemas"]["TreasuryWalletSwapResponse"];
9745
+ };
9746
+ };
9747
+ 400: components["responses"]["BadRequest"];
9748
+ 401: components["responses"]["Unauthorized"];
9749
+ 403: components["responses"]["Forbidden"];
9750
+ 404: components["responses"]["NotFound"];
9751
+ };
9752
+ };
9753
+ listWebhooks: {
9754
+ parameters: {
9755
+ query?: never;
9756
+ header?: never;
9757
+ path?: never;
9758
+ cookie?: never;
9759
+ };
9760
+ requestBody?: never;
9761
+ responses: {
9762
+ /** @description Webhook list */
9763
+ 200: {
9764
+ headers: {
9765
+ [name: string]: unknown;
9766
+ };
9767
+ content: {
9768
+ "application/json": components["schemas"]["WebhookListResponse"];
9769
+ };
9770
+ };
9771
+ 401: components["responses"]["Unauthorized"];
9772
+ };
9773
+ };
9774
+ createWebhook: {
9775
+ parameters: {
9776
+ query?: never;
9777
+ header?: never;
9778
+ path?: never;
9779
+ cookie?: never;
9780
+ };
9781
+ requestBody: {
9782
+ content: {
9783
+ "application/json": components["schemas"]["CreateWebhookRequest"];
9784
+ };
9785
+ };
9786
+ responses: {
9787
+ /** @description Webhook registered */
9788
+ 201: {
9789
+ headers: {
9790
+ [name: string]: unknown;
9791
+ };
9792
+ content: {
9793
+ "application/json": components["schemas"]["WebhookCreatedResponse"];
9794
+ };
9795
+ };
9796
+ 400: components["responses"]["BadRequest"];
9797
+ 401: components["responses"]["Unauthorized"];
9798
+ };
9799
+ };
9800
+ getWebhook: {
9801
+ parameters: {
9802
+ query?: never;
9803
+ header?: never;
9804
+ path: {
9805
+ id: string;
9806
+ };
9807
+ cookie?: never;
9808
+ };
9809
+ requestBody?: never;
9810
+ responses: {
9811
+ /** @description Webhook details */
9812
+ 200: {
9813
+ headers: {
9814
+ [name: string]: unknown;
9815
+ };
9816
+ content: {
9817
+ "application/json": components["schemas"]["WebhookResponse"];
9818
+ };
9819
+ };
9820
+ 401: components["responses"]["Unauthorized"];
9821
+ 404: components["responses"]["NotFound"];
9822
+ };
9823
+ };
9824
+ deleteWebhook: {
9825
+ parameters: {
9826
+ query?: never;
9827
+ header?: never;
9828
+ path: {
9829
+ id: string;
9830
+ };
9831
+ cookie?: never;
9832
+ };
9833
+ requestBody?: never;
9834
+ responses: {
9835
+ /** @description Webhook deleted */
9836
+ 204: {
9837
+ headers: {
9838
+ [name: string]: unknown;
9839
+ };
9840
+ content?: never;
9841
+ };
9842
+ 401: components["responses"]["Unauthorized"];
9843
+ 404: components["responses"]["NotFound"];
9844
+ };
9845
+ };
9846
+ updateWebhook: {
9847
+ parameters: {
9848
+ query?: never;
9849
+ header?: never;
9850
+ path: {
9851
+ id: string;
9852
+ };
9853
+ cookie?: never;
9854
+ };
9855
+ requestBody: {
9856
+ content: {
9857
+ "application/json": components["schemas"]["UpdateWebhookRequest"];
9858
+ };
9859
+ };
9860
+ responses: {
9861
+ /** @description Webhook updated */
9862
+ 200: {
9863
+ headers: {
9864
+ [name: string]: unknown;
9865
+ };
9866
+ content: {
9867
+ "application/json": components["schemas"]["WebhookResponse"];
9868
+ };
9869
+ };
9870
+ 400: components["responses"]["BadRequest"];
9871
+ 401: components["responses"]["Unauthorized"];
9872
+ 404: components["responses"]["NotFound"];
9873
+ };
9874
+ };
8992
9875
  adminListSettings: {
8993
9876
  parameters: {
8994
9877
  query?: never;