@hightop/sdk 0.1.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.
@@ -0,0 +1,2069 @@
1
+ export declare const AGENT_API_CONTRACT_VERSION = "1.5.0";
2
+ export type EthAddress = `0x${string}`;
3
+ export type AgentErrorDetailsByCode = {
4
+ idempotency_request_in_progress: {
5
+ idempotency_key: string;
6
+ };
7
+ idempotency_key_reuse_mismatch: {
8
+ idempotency_key: string;
9
+ original_method: string;
10
+ original_path: string;
11
+ };
12
+ slippage_exceeded: {
13
+ quote_id: string;
14
+ expected_out: string;
15
+ min_amount_out: string;
16
+ };
17
+ quote_already_consumed: {
18
+ quote_id: string;
19
+ consumed_at: string | null;
20
+ consumed_by_operation_id?: string;
21
+ };
22
+ quote_expired: {
23
+ quote_id: string;
24
+ expired_at: string;
25
+ };
26
+ rate_limited: {
27
+ limit_count: number;
28
+ attempted_count: number;
29
+ period: 'transaction';
30
+ };
31
+ limit_exceeded: {
32
+ cap: number;
33
+ observed: number;
34
+ period: 'rolling_30d' | 'active';
35
+ } | {
36
+ max_endpoints: number;
37
+ };
38
+ ltv_too_high: {
39
+ current_ltv: string;
40
+ estimated_ltv_after: string;
41
+ max_ltv_after: string;
42
+ };
43
+ ltv_target_unreachable: {
44
+ current_ltv: string;
45
+ target_ltv: string;
46
+ max_repay_usd: string;
47
+ required_repay_usd: string;
48
+ estimated_ltv_after: string;
49
+ };
50
+ };
51
+ export type KnownAgentErrorDetailsCode = keyof AgentErrorDetailsByCode;
52
+ export type AgentApiError = {
53
+ code: string;
54
+ message: string;
55
+ details?: Record<string, unknown>;
56
+ remediation?: {
57
+ action: string;
58
+ message: string;
59
+ };
60
+ };
61
+ export declare const agentErrorDetailsValidators: {
62
+ idempotency_request_in_progress: (value: unknown) => value is AgentErrorDetailsByCode["idempotency_request_in_progress"];
63
+ idempotency_key_reuse_mismatch: (value: unknown) => value is AgentErrorDetailsByCode["idempotency_key_reuse_mismatch"];
64
+ slippage_exceeded: (value: unknown) => value is AgentErrorDetailsByCode["slippage_exceeded"];
65
+ quote_already_consumed: (value: unknown) => value is AgentErrorDetailsByCode["quote_already_consumed"];
66
+ quote_expired: (value: unknown) => value is AgentErrorDetailsByCode["quote_expired"];
67
+ rate_limited: (value: unknown) => value is AgentErrorDetailsByCode["rate_limited"];
68
+ limit_exceeded: (value: unknown) => value is AgentErrorDetailsByCode["limit_exceeded"];
69
+ ltv_too_high: (value: unknown) => value is AgentErrorDetailsByCode["ltv_too_high"];
70
+ ltv_target_unreachable: (value: unknown) => value is AgentErrorDetailsByCode["ltv_target_unreachable"];
71
+ };
72
+ export declare function getAgentApiError(error: unknown): AgentApiError | null;
73
+ export declare function isAgentErrorCode<Code extends KnownAgentErrorDetailsCode>(error: AgentApiError, code: Code): error is AgentApiError & {
74
+ code: Code;
75
+ details: AgentErrorDetailsByCode[Code];
76
+ };
77
+ export declare function getAgentApiErrorByCode<Code extends KnownAgentErrorDetailsCode>(error: unknown, code: Code): (AgentApiError & {
78
+ code: Code;
79
+ details: AgentErrorDetailsByCode[Code];
80
+ }) | null;
81
+ export type AgentApiSelfResponse = {
82
+ ok: true;
83
+ agent: {
84
+ id: string;
85
+ name: string;
86
+ enabled: boolean;
87
+ wallet_address: string;
88
+ manager_address: string;
89
+ agent_wrapper_address: string;
90
+ active_window: {
91
+ starts_at: string | null;
92
+ expires_at: string | null;
93
+ } | null;
94
+ };
95
+ permissions: Record<string, unknown>;
96
+ limits: Record<string, unknown>;
97
+ cannot: Array<{
98
+ action: string;
99
+ reason: string;
100
+ }>;
101
+ current_usage: Record<string, unknown>;
102
+ };
103
+ export type AgentApiSelfUsageResponse = {
104
+ ok: true;
105
+ rate_limits: Array<{
106
+ route_class?: 'read' | 'write' | 'webhook_management' | 'simulate';
107
+ window_seconds: number;
108
+ limit: number;
109
+ remaining: number;
110
+ reset_at: string;
111
+ }>;
112
+ throttled: boolean;
113
+ current_usage: {
114
+ requests_in_current_window: number;
115
+ operations_submitted_today?: number;
116
+ };
117
+ };
118
+ export type AgentApiCapabilitiesResponse = {
119
+ ok: true;
120
+ api_version: '1.0';
121
+ agent_api_contract_version: string;
122
+ base_path: '/v1/agent';
123
+ endpoints: Array<{
124
+ method: 'GET' | 'POST' | 'PATCH' | 'DELETE';
125
+ path: string;
126
+ description: string;
127
+ oauth_scope: 'agent:read' | 'agent:simulate' | 'agent:payments:write' | 'agent:conversions:write' | 'agent:withdrawals:write' | 'agent:earn:write' | 'agent:borrow:write' | 'agent:webhooks:manage';
128
+ rate_limit_class: 'read' | 'write' | 'webhook_management' | 'simulate';
129
+ idempotency_required: boolean;
130
+ request_schema?: string;
131
+ response_schema?: string;
132
+ }>;
133
+ webhook_event_types: Array<'payment.submitted' | 'payment.executed' | 'payment.execution_failed' | 'payment.received' | 'one_off_payment.created' | 'one_off_payment.claimed' | 'one_off_payment.expired' | 'one_off_payment.execution_failed' | 'conversion.executed' | 'conversion.execution_failed' | 'earn.deposit.executed' | 'earn.withdraw.executed' | 'earn.move.executed' | 'rewards.claimed' | 'debt.borrowed' | 'debt.repaid' | 'debt.deleveraged' | 'collateral.added' | 'collateral.removed' | 'withdrawal.submitted' | 'withdrawal.settled' | 'withdrawal.execution_failed' | 'deposit.received' | 'trusted_destination.confirmed' | 'trusted_destination.cancelled' | 'trusted_destination.removed' | 'recurring_payment.updated' | 'recipient.changed' | 'agent.limit_approaching' | 'agent.limit_reached' | 'agent.disabled' | 'agent.expired' | 'agent.expiring_soon' | 'agent.webhook_disabled' | 'operation.policy_rejected' | 'webhook.test'>;
134
+ emitted_webhook_event_types: Array<'payment.submitted' | 'payment.executed' | 'payment.execution_failed' | 'payment.received' | 'one_off_payment.created' | 'one_off_payment.claimed' | 'one_off_payment.expired' | 'one_off_payment.execution_failed' | 'conversion.executed' | 'conversion.execution_failed' | 'earn.deposit.executed' | 'earn.withdraw.executed' | 'earn.move.executed' | 'rewards.claimed' | 'debt.borrowed' | 'debt.repaid' | 'debt.deleveraged' | 'collateral.added' | 'collateral.removed' | 'withdrawal.submitted' | 'withdrawal.settled' | 'withdrawal.execution_failed' | 'deposit.received' | 'trusted_destination.confirmed' | 'trusted_destination.cancelled' | 'trusted_destination.removed' | 'recurring_payment.updated' | 'recipient.changed' | 'agent.limit_approaching' | 'agent.limit_reached' | 'agent.disabled' | 'agent.expired' | 'agent.expiring_soon' | 'agent.webhook_disabled' | 'operation.policy_rejected' | 'webhook.test'>;
135
+ subscribable_webhook_event_types: Array<'payment.executed' | 'payment.execution_failed' | 'one_off_payment.created' | 'one_off_payment.claimed' | 'one_off_payment.expired' | 'one_off_payment.execution_failed' | 'conversion.executed' | 'conversion.execution_failed' | 'earn.deposit.executed' | 'earn.withdraw.executed' | 'earn.move.executed' | 'rewards.claimed' | 'debt.borrowed' | 'debt.repaid' | 'debt.deleveraged' | 'collateral.added' | 'collateral.removed' | 'withdrawal.settled' | 'withdrawal.execution_failed' | 'trusted_destination.confirmed' | 'trusted_destination.cancelled' | 'trusted_destination.removed' | 'agent.webhook_disabled' | 'operation.policy_rejected' | 'webhook.test'>;
136
+ operation_types: Array<'payment' | 'conversion' | 'earn.deposit' | 'earn.withdraw' | 'earn.move' | 'earn.rewards_claim' | 'debt.borrow' | 'debt.repay' | 'debt.deleverage' | 'collateral.add' | 'collateral.remove' | 'trusted_destination.confirm' | 'trusted_destination.cancel' | 'trusted_destination.remove' | 'withdrawal.bank' | 'withdrawal.crypto' | 'one_off_payment.create'>;
137
+ operation_statuses: Array<'accepted' | 'policy_rejected' | 'submitted' | 'executed' | 'execution_failed' | 'cancelled'>;
138
+ };
139
+ export type AgentApiAccountResponse = {
140
+ ok: true;
141
+ account: {
142
+ user_display_name?: string;
143
+ username?: string;
144
+ wallet_id: string;
145
+ wallet_address: string;
146
+ net_worth_usd: string;
147
+ cash_usd: string;
148
+ earn_usd: string;
149
+ debt_usd: string;
150
+ collateral_usd: string;
151
+ };
152
+ };
153
+ export type AgentApiResourceListQuery = {
154
+ cursor?: string;
155
+ limit?: number;
156
+ };
157
+ export type AgentApiAssetsResponse = {
158
+ ok: true;
159
+ items: Array<{
160
+ symbol: string;
161
+ display_name: string;
162
+ decimals: number;
163
+ asset_address?: string;
164
+ icon_url?: string;
165
+ allowed: boolean;
166
+ balance?: string;
167
+ balance_usd?: string;
168
+ }>;
169
+ next_cursor: string | null;
170
+ has_more: boolean;
171
+ };
172
+ export type AgentApiProtocolsResponse = {
173
+ ok: true;
174
+ items: Array<{
175
+ id: string;
176
+ display_name: string;
177
+ category: 'earn' | 'borrow' | 'conversion' | 'rewards';
178
+ allowed: boolean;
179
+ current_apy?: string;
180
+ risk_tier?: 'low' | 'medium' | 'high';
181
+ }>;
182
+ next_cursor: string | null;
183
+ has_more: boolean;
184
+ };
185
+ export type AgentApiBalancesResponse = {
186
+ ok: true;
187
+ items: Array<{
188
+ asset_symbol: string;
189
+ asset_display_name: string;
190
+ amount: string;
191
+ amount_usd: string;
192
+ category: 'cash' | 'earn' | 'collateral' | 'debt';
193
+ apy?: string;
194
+ }>;
195
+ next_cursor: string | null;
196
+ has_more: boolean;
197
+ };
198
+ export type AgentApiActivityQuery = {
199
+ cursor?: string;
200
+ limit?: number;
201
+ type?: 'payment.sent' | 'payment.received' | 'payment.failed' | 'one_off_payment.created' | 'one_off_payment.claimed' | 'one_off_payment.expired' | 'one_off_payment.execution_failed' | 'conversion.executed' | 'conversion.failed' | 'earn.deposited' | 'earn.withdrawn' | 'earn.moved' | 'rewards.claimed' | 'debt.borrowed' | 'debt.repaid' | 'debt.deleveraged' | 'collateral.added' | 'collateral.removed' | 'withdrawal.created' | 'withdrawal.settled' | 'withdrawal.failed' | 'deposit.received' | 'trusted_destination.confirmed' | 'trusted_destination.cancelled' | 'trusted_destination.removed' | 'recurring_payment.updated' | 'recipient.changed' | 'agent.disabled' | 'agent.expired' | 'agent.webhook_secret_rotated' | 'agent.operation_failed' | 'agent.operation_blocked';
202
+ since?: string;
203
+ };
204
+ export type AgentApiActivityResponse = {
205
+ ok: true;
206
+ items: Array<{
207
+ id: string;
208
+ type: 'payment.sent' | 'payment.received' | 'payment.failed' | 'one_off_payment.created' | 'one_off_payment.claimed' | 'one_off_payment.expired' | 'one_off_payment.execution_failed' | 'conversion.executed' | 'conversion.failed' | 'earn.deposited' | 'earn.withdrawn' | 'earn.moved' | 'rewards.claimed' | 'debt.borrowed' | 'debt.repaid' | 'debt.deleveraged' | 'collateral.added' | 'collateral.removed' | 'withdrawal.created' | 'withdrawal.settled' | 'withdrawal.failed' | 'deposit.received' | 'trusted_destination.confirmed' | 'trusted_destination.cancelled' | 'trusted_destination.removed' | 'recurring_payment.updated' | 'recipient.changed' | 'agent.disabled' | 'agent.expired' | 'agent.webhook_secret_rotated' | 'agent.operation_failed' | 'agent.operation_blocked' | string;
209
+ title: string;
210
+ data: Record<string, unknown>;
211
+ tx_hash: string | null;
212
+ wallet_address: string | null;
213
+ agent_id?: string | null;
214
+ activity_category: string | null;
215
+ notification_type: 'AGENT_OPERATION_EXECUTED' | 'AGENT_OPERATION_EXECUTION_FAILED' | 'AGENT_OPERATION_POLICY_REJECTED' | string | unknown | null;
216
+ read_at: string | null;
217
+ is_badge_eligible: boolean;
218
+ created_at: string;
219
+ }>;
220
+ next_cursor: string | null;
221
+ has_more: boolean;
222
+ };
223
+ export type AgentApiOperationsQuery = {
224
+ cursor?: string;
225
+ limit?: number;
226
+ status?: 'accepted' | 'policy_rejected' | 'submitted' | 'executed' | 'execution_failed' | 'cancelled';
227
+ type?: 'payment' | 'conversion' | 'earn.deposit' | 'earn.withdraw' | 'earn.move' | 'earn.rewards_claim' | 'debt.borrow' | 'debt.repay' | 'debt.deleverage' | 'collateral.add' | 'collateral.remove' | 'trusted_destination.confirm' | 'trusted_destination.cancel' | 'trusted_destination.remove' | 'withdrawal.bank' | 'withdrawal.crypto' | 'one_off_payment.create';
228
+ since?: string;
229
+ };
230
+ export type AgentApiOperationsResponse = {
231
+ ok: true;
232
+ items: Array<{
233
+ id: string;
234
+ idempotency_key_hash: string | null;
235
+ type: 'payment' | 'conversion' | 'earn.deposit' | 'earn.withdraw' | 'earn.move' | 'earn.rewards_claim' | 'debt.borrow' | 'debt.repay' | 'debt.deleverage' | 'collateral.add' | 'collateral.remove' | 'trusted_destination.confirm' | 'trusted_destination.cancel' | 'trusted_destination.remove' | 'withdrawal.bank' | 'withdrawal.crypto' | 'one_off_payment.create';
236
+ status: 'accepted' | 'policy_rejected' | 'submitted' | 'executed' | 'execution_failed' | 'cancelled';
237
+ resource: {
238
+ type: 'operation' | 'payment' | 'one_off_payment' | 'x402_payment' | 'withdrawal' | 'deposit' | 'conversion' | 'earn_position' | 'earn_opportunity' | 'debt_position' | 'collateral' | 'trusted_destination' | 'recurring_payment' | 'recipient' | 'activity' | 'webhook_endpoint' | 'webhook_event' | 'webhook_delivery';
239
+ id: string;
240
+ };
241
+ amount_usd?: string;
242
+ asset_symbol?: string;
243
+ human_message?: string;
244
+ fee_usd: string;
245
+ created_at: string;
246
+ submitted_at?: string;
247
+ executed_at?: string;
248
+ failed_at?: string;
249
+ error?: {
250
+ code: 'authentication_failed' | 'agent_disabled' | 'agent_not_yet_active' | 'agent_expired' | 'owner_only_action' | 'identity_gated_action' | 'permission_not_granted' | 'insufficient_scope' | 'asset_not_allowed' | 'recipient_not_allowed' | 'protocol_not_allowed' | 'limit_exceeded' | 'cooldown_active' | 'ltv_too_high' | 'validation_failed' | 'not_found' | 'insufficient_funds' | 'slippage_exceeded' | 'price_stale' | 'quote_expired' | 'quote_already_consumed' | 'timelock_not_elapsed' | 'ltv_target_unreachable' | 'idempotency_key_reuse_mismatch' | 'idempotency_request_in_progress' | 'rule_changed_during_execution' | 'operation_not_cancellable' | 'execution_failed' | 'execution_timeout' | 'batch_step_failed' | 'rate_limited' | 'internal_error';
251
+ message: string;
252
+ details?: Record<string, unknown>;
253
+ remediation?: {
254
+ action: 'open_app' | 'retry_later' | 'refresh_credentials' | 'contact_support';
255
+ message: string;
256
+ };
257
+ };
258
+ onchain?: {
259
+ chain_id: number;
260
+ wallet_address?: string;
261
+ manager_address?: string;
262
+ agent_wrapper_address?: string;
263
+ agent_sender_address?: string;
264
+ tx_hash?: string;
265
+ user_operation_hash?: string;
266
+ bundler_hash?: string;
267
+ raw_destination_address?: string;
268
+ tx_calldata?: string;
269
+ preflight_transactions?: Array<{
270
+ type: 'add_collateral';
271
+ tx_hash: string;
272
+ }>;
273
+ };
274
+ }>;
275
+ next_cursor: string | null;
276
+ has_more: boolean;
277
+ };
278
+ export type AgentApiOperationDetailQuery = {
279
+ id: string;
280
+ include?: 'onchain';
281
+ };
282
+ export type AgentApiOperationResponse = {
283
+ ok: true;
284
+ operation: {
285
+ id: string;
286
+ idempotency_key_hash: string | null;
287
+ type: 'payment' | 'conversion' | 'earn.deposit' | 'earn.withdraw' | 'earn.move' | 'earn.rewards_claim' | 'debt.borrow' | 'debt.repay' | 'debt.deleverage' | 'collateral.add' | 'collateral.remove' | 'trusted_destination.confirm' | 'trusted_destination.cancel' | 'trusted_destination.remove' | 'withdrawal.bank' | 'withdrawal.crypto' | 'one_off_payment.create';
288
+ status: 'accepted' | 'policy_rejected' | 'submitted' | 'executed' | 'execution_failed' | 'cancelled';
289
+ resource: {
290
+ type: 'operation' | 'payment' | 'one_off_payment' | 'x402_payment' | 'withdrawal' | 'deposit' | 'conversion' | 'earn_position' | 'earn_opportunity' | 'debt_position' | 'collateral' | 'trusted_destination' | 'recurring_payment' | 'recipient' | 'activity' | 'webhook_endpoint' | 'webhook_event' | 'webhook_delivery';
291
+ id: string;
292
+ };
293
+ amount_usd?: string;
294
+ asset_symbol?: string;
295
+ human_message?: string;
296
+ fee_usd: string;
297
+ created_at: string;
298
+ submitted_at?: string;
299
+ executed_at?: string;
300
+ failed_at?: string;
301
+ error?: {
302
+ code: 'authentication_failed' | 'agent_disabled' | 'agent_not_yet_active' | 'agent_expired' | 'owner_only_action' | 'identity_gated_action' | 'permission_not_granted' | 'insufficient_scope' | 'asset_not_allowed' | 'recipient_not_allowed' | 'protocol_not_allowed' | 'limit_exceeded' | 'cooldown_active' | 'ltv_too_high' | 'validation_failed' | 'not_found' | 'insufficient_funds' | 'slippage_exceeded' | 'price_stale' | 'quote_expired' | 'quote_already_consumed' | 'timelock_not_elapsed' | 'ltv_target_unreachable' | 'idempotency_key_reuse_mismatch' | 'idempotency_request_in_progress' | 'rule_changed_during_execution' | 'operation_not_cancellable' | 'execution_failed' | 'execution_timeout' | 'batch_step_failed' | 'rate_limited' | 'internal_error';
303
+ message: string;
304
+ details?: Record<string, unknown>;
305
+ remediation?: {
306
+ action: 'open_app' | 'retry_later' | 'refresh_credentials' | 'contact_support';
307
+ message: string;
308
+ };
309
+ };
310
+ onchain?: {
311
+ chain_id: number;
312
+ wallet_address?: string;
313
+ manager_address?: string;
314
+ agent_wrapper_address?: string;
315
+ agent_sender_address?: string;
316
+ tx_hash?: string;
317
+ user_operation_hash?: string;
318
+ bundler_hash?: string;
319
+ raw_destination_address?: string;
320
+ tx_calldata?: string;
321
+ preflight_transactions?: Array<{
322
+ type: 'add_collateral';
323
+ tx_hash: string;
324
+ }>;
325
+ };
326
+ };
327
+ };
328
+ export type AgentApiRecipientsQuery = {
329
+ cursor?: string;
330
+ limit?: number;
331
+ };
332
+ export type AgentApiRecipientsResponse = {
333
+ ok: true;
334
+ items: Array<{
335
+ id: string;
336
+ type: 'trusted_destination' | 'recurring_payment' | 'one_off_payment' | 'hightop_user' | 'external_address';
337
+ display_name: string;
338
+ nickname?: string;
339
+ asset_symbols?: string[];
340
+ status: 'active' | 'pending' | 'expired' | 'removed';
341
+ agent_actions: Array<'send_payment' | 'pay_one_off_payment' | 'confirm' | 'cancel' | 'remove' | 'view' | 'withdraw_to' | 'use_for_deposit'>;
342
+ blocked_actions: Record<string, unknown>;
343
+ }>;
344
+ next_cursor: string | null;
345
+ has_more: boolean;
346
+ };
347
+ export type AgentApiRecipientDetailQuery = {
348
+ id: string;
349
+ };
350
+ export type AgentApiRecipientResponse = {
351
+ ok: true;
352
+ recipient: {
353
+ id: string;
354
+ type: 'trusted_destination' | 'recurring_payment' | 'one_off_payment' | 'hightop_user' | 'external_address';
355
+ display_name: string;
356
+ nickname?: string;
357
+ asset_symbols?: string[];
358
+ status: 'active' | 'pending' | 'expired' | 'removed';
359
+ agent_actions: Array<'send_payment' | 'pay_one_off_payment' | 'confirm' | 'cancel' | 'remove' | 'view' | 'withdraw_to' | 'use_for_deposit'>;
360
+ blocked_actions: Record<string, unknown>;
361
+ };
362
+ };
363
+ export type AgentApiRecipientResolveRequest = {
364
+ to: string;
365
+ asset?: string;
366
+ action?: 'send_payment' | 'pay_one_off_payment' | 'confirm' | 'cancel' | 'remove' | 'view' | 'withdraw_to' | 'use_for_deposit';
367
+ };
368
+ export type AgentApiPaymentCreateRequest = {
369
+ to: string;
370
+ asset: string;
371
+ deliver_as?: 'auto' | 'one_off_payment' | 'recurring_payment' | 'trusted_destination';
372
+ note?: string | null;
373
+ slippage_percent?: number;
374
+ prefer?: 'auto' | 'one_off_payment' | 'recurring_payment' | 'trusted_destination';
375
+ amount?: string;
376
+ amount_usd?: string;
377
+ };
378
+ export type AgentApiWriteResponse = {
379
+ ok: true;
380
+ operation_id: string;
381
+ status: 'accepted' | 'policy_rejected' | 'submitted' | 'executed' | 'execution_failed' | 'cancelled';
382
+ resource: {
383
+ type: 'operation' | 'payment' | 'one_off_payment' | 'x402_payment' | 'withdrawal' | 'deposit' | 'conversion' | 'earn_position' | 'earn_opportunity' | 'debt_position' | 'collateral' | 'trusted_destination' | 'recurring_payment' | 'recipient' | 'activity' | 'webhook_endpoint' | 'webhook_event' | 'webhook_delivery';
384
+ id: string;
385
+ };
386
+ fee_usd: string;
387
+ human_message?: string;
388
+ policy_evaluation?: {
389
+ allowed: boolean;
390
+ matched_permissions?: Array<{
391
+ name: string;
392
+ source?: string;
393
+ allowed: boolean;
394
+ }>;
395
+ blocks?: Array<{
396
+ code: 'authentication_failed' | 'agent_disabled' | 'agent_not_yet_active' | 'agent_expired' | 'owner_only_action' | 'identity_gated_action' | 'permission_not_granted' | 'insufficient_scope' | 'asset_not_allowed' | 'recipient_not_allowed' | 'protocol_not_allowed' | 'limit_exceeded' | 'cooldown_active' | 'ltv_too_high' | 'validation_failed' | 'not_found' | 'insufficient_funds' | 'slippage_exceeded' | 'price_stale' | 'quote_expired' | 'quote_already_consumed' | 'timelock_not_elapsed' | 'ltv_target_unreachable' | 'idempotency_key_reuse_mismatch' | 'idempotency_request_in_progress' | 'rule_changed_during_execution' | 'operation_not_cancellable' | 'execution_failed' | 'execution_timeout' | 'batch_step_failed' | 'rate_limited' | 'internal_error';
397
+ message: string;
398
+ details?: Record<string, unknown>;
399
+ remediation?: {
400
+ action: 'open_app' | 'retry_later' | 'refresh_credentials' | 'contact_support';
401
+ message: string;
402
+ };
403
+ }>;
404
+ };
405
+ repay_amount_usd?: string;
406
+ estimated_ltv_after?: string;
407
+ onchain?: {
408
+ preflight_transactions: Array<{
409
+ type: 'add_collateral';
410
+ tx_hash: string;
411
+ }>;
412
+ };
413
+ };
414
+ export type AgentApiResourceDetailQuery = {
415
+ id: string;
416
+ include?: 'onchain';
417
+ };
418
+ export type AgentApiOneOffPaymentCreateRequest = {
419
+ to: string;
420
+ asset: string;
421
+ note?: string | null;
422
+ unlock_delay_seconds?: number;
423
+ expires_in_seconds?: number;
424
+ amount?: string;
425
+ amount_usd?: string;
426
+ };
427
+ export type AgentApiWithdrawalToBankRequest = {
428
+ method_id: string;
429
+ asset: string;
430
+ note?: string | null;
431
+ amount?: string;
432
+ amount_usd?: string;
433
+ };
434
+ export type AgentApiWithdrawalToCryptoRequest = {
435
+ destination_id: string;
436
+ asset: string;
437
+ note?: string | null;
438
+ amount?: string;
439
+ amount_usd?: string;
440
+ };
441
+ export type AgentApiWithdrawalMethodsResponse = {
442
+ ok: true;
443
+ items: Array<{
444
+ id: string;
445
+ type: 'bank' | 'crypto';
446
+ display_name: string;
447
+ nickname?: string;
448
+ asset_symbols: string[];
449
+ status: 'active' | 'pending' | 'disabled';
450
+ }>;
451
+ next_cursor: string | null;
452
+ has_more: boolean;
453
+ };
454
+ export type AgentApiDepositMethodsResponse = {
455
+ ok: true;
456
+ items: Array<{
457
+ id: string;
458
+ type: 'virtual_account' | 'crypto_address';
459
+ display_name: string;
460
+ asset_symbols: string[];
461
+ instructions?: string;
462
+ }>;
463
+ next_cursor: string | null;
464
+ has_more: boolean;
465
+ };
466
+ export type AgentApiDepositAddressQuery = {
467
+ asset: string;
468
+ chain?: 'base';
469
+ };
470
+ export type AgentApiDepositAddressResponse = {
471
+ ok: true;
472
+ asset: string;
473
+ chain: 'base';
474
+ address: string;
475
+ };
476
+ export type AgentApiEarnResponse = {
477
+ ok: true;
478
+ items: Array<{
479
+ id: string;
480
+ asset_symbol: string;
481
+ protocol_id: string;
482
+ protocol_name: string;
483
+ vault_id: string;
484
+ vault_name: string;
485
+ amount: string;
486
+ amount_usd: string;
487
+ apy: string;
488
+ earned_usd?: string;
489
+ }>;
490
+ next_cursor: string | null;
491
+ has_more: boolean;
492
+ };
493
+ export type AgentApiEarnDetailQuery = {
494
+ id: string;
495
+ };
496
+ export type AgentApiEarnPositionResponse = {
497
+ ok: true;
498
+ position: {
499
+ id: string;
500
+ asset_symbol: string;
501
+ protocol_id: string;
502
+ protocol_name: string;
503
+ vault_id: string;
504
+ vault_name: string;
505
+ amount: string;
506
+ amount_usd: string;
507
+ apy: string;
508
+ earned_usd?: string;
509
+ };
510
+ };
511
+ export type AgentApiEarnOpportunitiesResponse = {
512
+ ok: true;
513
+ items: Array<{
514
+ id: string;
515
+ asset_symbol: string;
516
+ protocol_id: string;
517
+ protocol_name: string;
518
+ vault_id: string;
519
+ vault_name: string;
520
+ apy: string;
521
+ risk_tier?: 'low' | 'medium' | 'high';
522
+ allowed: boolean;
523
+ }>;
524
+ next_cursor: string | null;
525
+ has_more: boolean;
526
+ };
527
+ export type AgentApiEarnDepositRequest = {
528
+ asset: string;
529
+ vault_id?: string;
530
+ use_best_available?: boolean;
531
+ amount?: string;
532
+ amount_usd?: string;
533
+ };
534
+ export type AgentApiEarnWithdrawRequest = {
535
+ position_id: string;
536
+ withdraw_all?: boolean;
537
+ destination_asset?: string;
538
+ allow_conversion?: boolean;
539
+ amount?: string;
540
+ amount_usd?: string;
541
+ };
542
+ export type AgentApiEarnMoveRequest = {
543
+ from_position_id: string;
544
+ move_all?: boolean;
545
+ to_vault_id?: string;
546
+ to_best_available?: boolean;
547
+ amount?: string;
548
+ amount_usd?: string;
549
+ };
550
+ export type AgentApiEarnRewardsClaimRequest = {
551
+ protocols?: Array<'underscore-earn' | 'ripe-rewards'>;
552
+ };
553
+ export type AgentApiBorrowResponse = {
554
+ ok: true;
555
+ summary: {
556
+ debt_usd: string;
557
+ collateral_usd: string;
558
+ available_to_borrow_usd: string;
559
+ current_ltv: string;
560
+ max_ltv: string;
561
+ };
562
+ };
563
+ export type AgentApiBorrowRequest = {
564
+ asset: 'USDC' | 'GREEN' | '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913' | '0xd1Eac76497D06Cf15475A5e3984D5bC03de7C707';
565
+ max_ltv_after?: string;
566
+ amount?: string;
567
+ amount_usd?: string;
568
+ };
569
+ export type AgentApiCollateralResponse = {
570
+ ok: true;
571
+ items: Array<{
572
+ asset_symbol: string;
573
+ amount: string;
574
+ amount_usd: string;
575
+ ltv: string;
576
+ max_ltv: string;
577
+ }>;
578
+ next_cursor: string | null;
579
+ has_more: boolean;
580
+ };
581
+ export type AgentApiBorrowRepayRequest = {
582
+ asset: 'GREEN' | '0xd1Eac76497D06Cf15475A5e3984D5bC03de7C707';
583
+ repay_all?: boolean;
584
+ source_asset?: string;
585
+ allow_conversion?: boolean;
586
+ amount?: string;
587
+ amount_usd?: string;
588
+ };
589
+ export type AgentApiDeleverageRequest = {
590
+ target_ltv: string;
591
+ max_repay_amount_usd?: string;
592
+ source_asset?: string;
593
+ use_available_cash_first?: boolean;
594
+ allow_conversion?: boolean;
595
+ allow_partial?: boolean;
596
+ };
597
+ export type AgentApiCollateralAddRequest = {
598
+ asset: string;
599
+ source_asset?: string;
600
+ allow_conversion?: boolean;
601
+ amount?: string;
602
+ amount_usd?: string;
603
+ };
604
+ export type AgentApiCollateralRemoveRequest = {
605
+ asset: string;
606
+ remove_all?: boolean;
607
+ max_ltv_after?: string;
608
+ amount?: string;
609
+ amount_usd?: string;
610
+ };
611
+ export type AgentApiConversionQuoteRequest = {
612
+ from_asset: string;
613
+ to_asset: string;
614
+ from_vault_address?: string;
615
+ to_vault_address?: string;
616
+ slippage_percent?: number;
617
+ amount?: string;
618
+ amount_usd?: string;
619
+ };
620
+ export type AgentApiConversionQuoteResponse = {
621
+ ok: true;
622
+ quote: {
623
+ quote_id: string;
624
+ from_asset: string;
625
+ to_asset: string;
626
+ from_vault_address: string | null;
627
+ to_vault_address: string | null;
628
+ from_amount: string;
629
+ expected_out: string;
630
+ min_amount_out: string;
631
+ slippage_percent: number;
632
+ human_rate: string;
633
+ route: {
634
+ legs: Array<{
635
+ protocol_id: string;
636
+ protocol_name: string;
637
+ pool_address?: string;
638
+ from_asset: string;
639
+ to_asset: string;
640
+ expected_out: string;
641
+ fee_bps?: number;
642
+ }>;
643
+ intermediate_assets: string[];
644
+ };
645
+ expires_at: string;
646
+ expires_in_seconds: number;
647
+ };
648
+ };
649
+ export type AgentApiConversionExecuteRequest = {
650
+ quote_id: string;
651
+ };
652
+ export type AgentApiSimulateRequest = {
653
+ method: 'POST' | 'PATCH' | 'DELETE';
654
+ path: string;
655
+ body?: unknown | null;
656
+ };
657
+ export type AgentApiSimulateResponse = {
658
+ ok: true;
659
+ would_succeed: boolean;
660
+ execution_path: string[];
661
+ blocks?: Array<{
662
+ code: 'authentication_failed' | 'agent_disabled' | 'agent_not_yet_active' | 'agent_expired' | 'owner_only_action' | 'identity_gated_action' | 'permission_not_granted' | 'insufficient_scope' | 'asset_not_allowed' | 'recipient_not_allowed' | 'protocol_not_allowed' | 'limit_exceeded' | 'cooldown_active' | 'ltv_too_high' | 'validation_failed' | 'not_found' | 'insufficient_funds' | 'slippage_exceeded' | 'price_stale' | 'quote_expired' | 'quote_already_consumed' | 'timelock_not_elapsed' | 'ltv_target_unreachable' | 'idempotency_key_reuse_mismatch' | 'idempotency_request_in_progress' | 'rule_changed_during_execution' | 'operation_not_cancellable' | 'execution_failed' | 'execution_timeout' | 'batch_step_failed' | 'rate_limited' | 'internal_error';
663
+ message: string;
664
+ details?: Record<string, unknown>;
665
+ remediation?: {
666
+ action: 'open_app' | 'retry_later' | 'refresh_credentials' | 'contact_support';
667
+ message: string;
668
+ };
669
+ }>;
670
+ };
671
+ export type AgentApiX402SignRequest = {
672
+ payment_requirements?: {
673
+ scheme: 'exact';
674
+ network: 'base' | 'eip155:8453';
675
+ maxAmountRequired?: string;
676
+ amount?: string;
677
+ resource?: string | {
678
+ url: string;
679
+ description?: string;
680
+ mimeType?: string;
681
+ };
682
+ description?: string;
683
+ mimeType?: string;
684
+ outputSchema?: Record<string, unknown>;
685
+ payTo: string;
686
+ maxTimeoutSeconds?: number;
687
+ asset: string;
688
+ extra?: Record<string, unknown> | null;
689
+ };
690
+ pay_to?: string;
691
+ amount?: string;
692
+ target_url?: string;
693
+ max_timeout_seconds?: number;
694
+ };
695
+ export type AgentApiX402SignResponse = {
696
+ ok: true;
697
+ operation_id: string;
698
+ payment_id: string;
699
+ payment_header: string;
700
+ payment_version: 1 | 2;
701
+ payment_header_name: 'X-PAYMENT' | 'PAYMENT-SIGNATURE';
702
+ payment_headers: {
703
+ 'X-PAYMENT': string;
704
+ 'PAYMENT-SIGNATURE'?: string;
705
+ };
706
+ nonce: string;
707
+ amount: string;
708
+ pay_to: string;
709
+ valid_before: string;
710
+ };
711
+ export type AgentApiX402QuoteRequest = {
712
+ url: string;
713
+ method?: 'GET' | 'POST';
714
+ body?: unknown | null;
715
+ timeout_ms?: number;
716
+ };
717
+ export type AgentApiX402QuoteResponse = {
718
+ ok: true;
719
+ x402_required: boolean;
720
+ supported: boolean;
721
+ price: {
722
+ amount: string;
723
+ asset: string;
724
+ network: 'base' | 'eip155:8453';
725
+ pay_to: string;
726
+ resource: string | null;
727
+ description: string | null;
728
+ mime_type: string | null;
729
+ max_timeout_seconds: number | null;
730
+ } | null;
731
+ response: {
732
+ status: number;
733
+ content_type: string | null;
734
+ body?: unknown | null;
735
+ };
736
+ unsupported_reason?: 'none_structural' | 'timeout_window_unsupported';
737
+ unsupported_details?: {
738
+ advertised_max_timeout_seconds: number;
739
+ min_supported_seconds: number;
740
+ max_supported_seconds: number;
741
+ };
742
+ };
743
+ export type AgentApiX402PurchaseRequest = {
744
+ url: string;
745
+ method?: 'GET' | 'POST';
746
+ body?: unknown | null;
747
+ max_amount: string;
748
+ };
749
+ export type AgentApiX402PurchaseResponse = {
750
+ ok: true;
751
+ paid: boolean;
752
+ payment_authorized: boolean;
753
+ seller_accepted: boolean;
754
+ settled: boolean;
755
+ settlement: Record<string, unknown> | null;
756
+ operation_id: string | null;
757
+ payment: {
758
+ payment_id: string;
759
+ amount: string;
760
+ pay_to: string;
761
+ nonce: string;
762
+ valid_before: string;
763
+ payment_header?: string;
764
+ payment_version?: 1 | 2;
765
+ payment_header_name?: 'X-PAYMENT' | 'PAYMENT-SIGNATURE';
766
+ payment_headers?: {
767
+ 'X-PAYMENT': string;
768
+ 'PAYMENT-SIGNATURE'?: string;
769
+ };
770
+ } | null;
771
+ response: {
772
+ status: number;
773
+ content_type: string | null;
774
+ body?: unknown | null;
775
+ } | null;
776
+ recoverable?: boolean;
777
+ recovery_error?: {
778
+ code: 'authentication_failed' | 'agent_disabled' | 'agent_not_yet_active' | 'agent_expired' | 'owner_only_action' | 'identity_gated_action' | 'permission_not_granted' | 'insufficient_scope' | 'asset_not_allowed' | 'recipient_not_allowed' | 'protocol_not_allowed' | 'limit_exceeded' | 'cooldown_active' | 'ltv_too_high' | 'validation_failed' | 'not_found' | 'insufficient_funds' | 'slippage_exceeded' | 'price_stale' | 'quote_expired' | 'quote_already_consumed' | 'timelock_not_elapsed' | 'ltv_target_unreachable' | 'idempotency_key_reuse_mismatch' | 'idempotency_request_in_progress' | 'rule_changed_during_execution' | 'operation_not_cancellable' | 'execution_failed' | 'execution_timeout' | 'batch_step_failed' | 'rate_limited' | 'internal_error';
779
+ message: string;
780
+ details?: Record<string, unknown>;
781
+ remediation?: {
782
+ action: 'open_app' | 'retry_later' | 'refresh_credentials' | 'contact_support';
783
+ message: string;
784
+ };
785
+ };
786
+ seller_error?: {
787
+ code: 'authentication_failed' | 'agent_disabled' | 'agent_not_yet_active' | 'agent_expired' | 'owner_only_action' | 'identity_gated_action' | 'permission_not_granted' | 'insufficient_scope' | 'asset_not_allowed' | 'recipient_not_allowed' | 'protocol_not_allowed' | 'limit_exceeded' | 'cooldown_active' | 'ltv_too_high' | 'validation_failed' | 'not_found' | 'insufficient_funds' | 'slippage_exceeded' | 'price_stale' | 'quote_expired' | 'quote_already_consumed' | 'timelock_not_elapsed' | 'ltv_target_unreachable' | 'idempotency_key_reuse_mismatch' | 'idempotency_request_in_progress' | 'rule_changed_during_execution' | 'operation_not_cancellable' | 'execution_failed' | 'execution_timeout' | 'batch_step_failed' | 'rate_limited' | 'internal_error';
788
+ message: string;
789
+ details?: Record<string, unknown>;
790
+ remediation?: {
791
+ action: 'open_app' | 'retry_later' | 'refresh_credentials' | 'contact_support';
792
+ message: string;
793
+ };
794
+ };
795
+ };
796
+ export type AgentApiWebhookCreateRequest = {
797
+ url: string;
798
+ description?: string;
799
+ event_types: Array<'payment.executed' | 'payment.execution_failed' | 'one_off_payment.created' | 'one_off_payment.claimed' | 'one_off_payment.expired' | 'one_off_payment.execution_failed' | 'conversion.executed' | 'conversion.execution_failed' | 'earn.deposit.executed' | 'earn.withdraw.executed' | 'earn.move.executed' | 'rewards.claimed' | 'debt.borrowed' | 'debt.repaid' | 'debt.deleveraged' | 'collateral.added' | 'collateral.removed' | 'withdrawal.settled' | 'withdrawal.execution_failed' | 'trusted_destination.confirmed' | 'trusted_destination.cancelled' | 'trusted_destination.removed' | 'agent.webhook_disabled' | 'operation.policy_rejected' | 'webhook.test'>;
800
+ };
801
+ export type AgentApiWebhookCreateResponse = {
802
+ ok: true;
803
+ webhook: {
804
+ id: string;
805
+ url: string;
806
+ description: string | null;
807
+ event_types: Array<'payment.submitted' | 'payment.executed' | 'payment.execution_failed' | 'payment.received' | 'one_off_payment.created' | 'one_off_payment.claimed' | 'one_off_payment.expired' | 'one_off_payment.execution_failed' | 'conversion.executed' | 'conversion.execution_failed' | 'earn.deposit.executed' | 'earn.withdraw.executed' | 'earn.move.executed' | 'rewards.claimed' | 'debt.borrowed' | 'debt.repaid' | 'debt.deleveraged' | 'collateral.added' | 'collateral.removed' | 'withdrawal.submitted' | 'withdrawal.settled' | 'withdrawal.execution_failed' | 'deposit.received' | 'trusted_destination.confirmed' | 'trusted_destination.cancelled' | 'trusted_destination.removed' | 'recurring_payment.updated' | 'recipient.changed' | 'agent.limit_approaching' | 'agent.limit_reached' | 'agent.disabled' | 'agent.expired' | 'agent.expiring_soon' | 'agent.webhook_disabled' | 'operation.policy_rejected' | 'webhook.test'>;
808
+ enabled: boolean;
809
+ disabled_reason: 'owner_disabled' | 'sustained_failures' | 'agent_disabled' | 'security_action' | null;
810
+ consecutive_failures: number;
811
+ last_delivered_at: string | null;
812
+ last_failure_at: string | null;
813
+ created_at: string;
814
+ updated_at: string;
815
+ };
816
+ signing_secret: string;
817
+ };
818
+ export type AgentApiWebhooksResponse = {
819
+ ok: true;
820
+ items: Array<{
821
+ id: string;
822
+ url: string;
823
+ description: string | null;
824
+ event_types: Array<'payment.submitted' | 'payment.executed' | 'payment.execution_failed' | 'payment.received' | 'one_off_payment.created' | 'one_off_payment.claimed' | 'one_off_payment.expired' | 'one_off_payment.execution_failed' | 'conversion.executed' | 'conversion.execution_failed' | 'earn.deposit.executed' | 'earn.withdraw.executed' | 'earn.move.executed' | 'rewards.claimed' | 'debt.borrowed' | 'debt.repaid' | 'debt.deleveraged' | 'collateral.added' | 'collateral.removed' | 'withdrawal.submitted' | 'withdrawal.settled' | 'withdrawal.execution_failed' | 'deposit.received' | 'trusted_destination.confirmed' | 'trusted_destination.cancelled' | 'trusted_destination.removed' | 'recurring_payment.updated' | 'recipient.changed' | 'agent.limit_approaching' | 'agent.limit_reached' | 'agent.disabled' | 'agent.expired' | 'agent.expiring_soon' | 'agent.webhook_disabled' | 'operation.policy_rejected' | 'webhook.test'>;
825
+ enabled: boolean;
826
+ disabled_reason: 'owner_disabled' | 'sustained_failures' | 'agent_disabled' | 'security_action' | null;
827
+ consecutive_failures: number;
828
+ last_delivered_at: string | null;
829
+ last_failure_at: string | null;
830
+ created_at: string;
831
+ updated_at: string;
832
+ }>;
833
+ next_cursor: string | null;
834
+ has_more: boolean;
835
+ };
836
+ export type AgentApiWebhookResponse = {
837
+ ok: true;
838
+ webhook: {
839
+ id: string;
840
+ url: string;
841
+ description: string | null;
842
+ event_types: Array<'payment.submitted' | 'payment.executed' | 'payment.execution_failed' | 'payment.received' | 'one_off_payment.created' | 'one_off_payment.claimed' | 'one_off_payment.expired' | 'one_off_payment.execution_failed' | 'conversion.executed' | 'conversion.execution_failed' | 'earn.deposit.executed' | 'earn.withdraw.executed' | 'earn.move.executed' | 'rewards.claimed' | 'debt.borrowed' | 'debt.repaid' | 'debt.deleveraged' | 'collateral.added' | 'collateral.removed' | 'withdrawal.submitted' | 'withdrawal.settled' | 'withdrawal.execution_failed' | 'deposit.received' | 'trusted_destination.confirmed' | 'trusted_destination.cancelled' | 'trusted_destination.removed' | 'recurring_payment.updated' | 'recipient.changed' | 'agent.limit_approaching' | 'agent.limit_reached' | 'agent.disabled' | 'agent.expired' | 'agent.expiring_soon' | 'agent.webhook_disabled' | 'operation.policy_rejected' | 'webhook.test'>;
843
+ enabled: boolean;
844
+ disabled_reason: 'owner_disabled' | 'sustained_failures' | 'agent_disabled' | 'security_action' | null;
845
+ consecutive_failures: number;
846
+ last_delivered_at: string | null;
847
+ last_failure_at: string | null;
848
+ created_at: string;
849
+ updated_at: string;
850
+ };
851
+ };
852
+ export type AgentApiWebhookPatchRequest = {
853
+ url?: string;
854
+ description?: string | null;
855
+ event_types?: Array<'payment.executed' | 'payment.execution_failed' | 'one_off_payment.created' | 'one_off_payment.claimed' | 'one_off_payment.expired' | 'one_off_payment.execution_failed' | 'conversion.executed' | 'conversion.execution_failed' | 'earn.deposit.executed' | 'earn.withdraw.executed' | 'earn.move.executed' | 'rewards.claimed' | 'debt.borrowed' | 'debt.repaid' | 'debt.deleveraged' | 'collateral.added' | 'collateral.removed' | 'withdrawal.settled' | 'withdrawal.execution_failed' | 'trusted_destination.confirmed' | 'trusted_destination.cancelled' | 'trusted_destination.removed' | 'agent.webhook_disabled' | 'operation.policy_rejected' | 'webhook.test'>;
856
+ enabled?: boolean;
857
+ };
858
+ export type AgentApiWebhookDeleteRequest = {};
859
+ export type AgentApiWebhookDeleteResponse = {
860
+ ok: true;
861
+ webhook: {
862
+ id: string;
863
+ url: string;
864
+ description: string | null;
865
+ event_types: Array<'payment.submitted' | 'payment.executed' | 'payment.execution_failed' | 'payment.received' | 'one_off_payment.created' | 'one_off_payment.claimed' | 'one_off_payment.expired' | 'one_off_payment.execution_failed' | 'conversion.executed' | 'conversion.execution_failed' | 'earn.deposit.executed' | 'earn.withdraw.executed' | 'earn.move.executed' | 'rewards.claimed' | 'debt.borrowed' | 'debt.repaid' | 'debt.deleveraged' | 'collateral.added' | 'collateral.removed' | 'withdrawal.submitted' | 'withdrawal.settled' | 'withdrawal.execution_failed' | 'deposit.received' | 'trusted_destination.confirmed' | 'trusted_destination.cancelled' | 'trusted_destination.removed' | 'recurring_payment.updated' | 'recipient.changed' | 'agent.limit_approaching' | 'agent.limit_reached' | 'agent.disabled' | 'agent.expired' | 'agent.expiring_soon' | 'agent.webhook_disabled' | 'operation.policy_rejected' | 'webhook.test'>;
866
+ enabled: boolean;
867
+ disabled_reason: 'owner_disabled' | 'sustained_failures' | 'agent_disabled' | 'security_action' | null;
868
+ consecutive_failures: number;
869
+ last_delivered_at: string | null;
870
+ last_failure_at: string | null;
871
+ created_at: string;
872
+ updated_at: string;
873
+ };
874
+ };
875
+ export type AgentApiWebhookRotateSecretRequest = {};
876
+ export type AgentApiWebhookRotateSecretResponse = {
877
+ ok: true;
878
+ webhook: {
879
+ id: string;
880
+ url: string;
881
+ description: string | null;
882
+ event_types: Array<'payment.submitted' | 'payment.executed' | 'payment.execution_failed' | 'payment.received' | 'one_off_payment.created' | 'one_off_payment.claimed' | 'one_off_payment.expired' | 'one_off_payment.execution_failed' | 'conversion.executed' | 'conversion.execution_failed' | 'earn.deposit.executed' | 'earn.withdraw.executed' | 'earn.move.executed' | 'rewards.claimed' | 'debt.borrowed' | 'debt.repaid' | 'debt.deleveraged' | 'collateral.added' | 'collateral.removed' | 'withdrawal.submitted' | 'withdrawal.settled' | 'withdrawal.execution_failed' | 'deposit.received' | 'trusted_destination.confirmed' | 'trusted_destination.cancelled' | 'trusted_destination.removed' | 'recurring_payment.updated' | 'recipient.changed' | 'agent.limit_approaching' | 'agent.limit_reached' | 'agent.disabled' | 'agent.expired' | 'agent.expiring_soon' | 'agent.webhook_disabled' | 'operation.policy_rejected' | 'webhook.test'>;
883
+ enabled: boolean;
884
+ disabled_reason: 'owner_disabled' | 'sustained_failures' | 'agent_disabled' | 'security_action' | null;
885
+ consecutive_failures: number;
886
+ last_delivered_at: string | null;
887
+ last_failure_at: string | null;
888
+ created_at: string;
889
+ updated_at: string;
890
+ };
891
+ signing_secret: string;
892
+ previous_secret_valid_until: string;
893
+ };
894
+ export type AgentApiWebhookDeliveriesQuery = {
895
+ cursor?: string;
896
+ limit?: number;
897
+ id: string;
898
+ status?: 'pending' | 'processing' | 'delivered' | 'failed_retryable' | 'failed_terminal' | 'abandoned';
899
+ event_id?: string;
900
+ };
901
+ export type AgentApiWebhookDeliveriesResponse = {
902
+ ok: true;
903
+ items: Array<{
904
+ id: string;
905
+ event_id: string;
906
+ endpoint_id: string;
907
+ attempt: number;
908
+ status: 'pending' | 'processing' | 'delivered' | 'failed_retryable' | 'failed_terminal' | 'abandoned';
909
+ http_status: number | null;
910
+ error_class: string | null;
911
+ latency_ms: number | null;
912
+ next_attempt_at: string | null;
913
+ first_attempt_at: string | null;
914
+ last_attempt_at: string | null;
915
+ terminal_at: string | null;
916
+ created_at: string;
917
+ updated_at: string;
918
+ event_type: 'payment.submitted' | 'payment.executed' | 'payment.execution_failed' | 'payment.received' | 'one_off_payment.created' | 'one_off_payment.claimed' | 'one_off_payment.expired' | 'one_off_payment.execution_failed' | 'conversion.executed' | 'conversion.execution_failed' | 'earn.deposit.executed' | 'earn.withdraw.executed' | 'earn.move.executed' | 'rewards.claimed' | 'debt.borrowed' | 'debt.repaid' | 'debt.deleveraged' | 'collateral.added' | 'collateral.removed' | 'withdrawal.submitted' | 'withdrawal.settled' | 'withdrawal.execution_failed' | 'deposit.received' | 'trusted_destination.confirmed' | 'trusted_destination.cancelled' | 'trusted_destination.removed' | 'recurring_payment.updated' | 'recipient.changed' | 'agent.limit_approaching' | 'agent.limit_reached' | 'agent.disabled' | 'agent.expired' | 'agent.expiring_soon' | 'agent.webhook_disabled' | 'operation.policy_rejected' | 'webhook.test';
919
+ event_created_at: string;
920
+ response_body: string | null;
921
+ }>;
922
+ next_cursor: string | null;
923
+ has_more: boolean;
924
+ };
925
+ export type AgentApiWebhookTestRequest = {};
926
+ export type AgentApiWebhookTestResponse = {
927
+ ok: true;
928
+ event: {
929
+ id: string;
930
+ type: 'payment.submitted' | 'payment.executed' | 'payment.execution_failed' | 'payment.received' | 'one_off_payment.created' | 'one_off_payment.claimed' | 'one_off_payment.expired' | 'one_off_payment.execution_failed' | 'conversion.executed' | 'conversion.execution_failed' | 'earn.deposit.executed' | 'earn.withdraw.executed' | 'earn.move.executed' | 'rewards.claimed' | 'debt.borrowed' | 'debt.repaid' | 'debt.deleveraged' | 'collateral.added' | 'collateral.removed' | 'withdrawal.submitted' | 'withdrawal.settled' | 'withdrawal.execution_failed' | 'deposit.received' | 'trusted_destination.confirmed' | 'trusted_destination.cancelled' | 'trusted_destination.removed' | 'recurring_payment.updated' | 'recipient.changed' | 'agent.limit_approaching' | 'agent.limit_reached' | 'agent.disabled' | 'agent.expired' | 'agent.expiring_soon' | 'agent.webhook_disabled' | 'operation.policy_rejected' | 'webhook.test';
931
+ created_at: string;
932
+ payload: Record<string, unknown>;
933
+ };
934
+ delivery: {
935
+ id: string;
936
+ event_id: string;
937
+ endpoint_id: string;
938
+ attempt: number;
939
+ status: 'pending' | 'processing' | 'delivered' | 'failed_retryable' | 'failed_terminal' | 'abandoned';
940
+ http_status: number | null;
941
+ error_class: string | null;
942
+ latency_ms: number | null;
943
+ next_attempt_at: string | null;
944
+ first_attempt_at: string | null;
945
+ last_attempt_at: string | null;
946
+ terminal_at: string | null;
947
+ created_at: string;
948
+ updated_at: string;
949
+ event_type: 'payment.submitted' | 'payment.executed' | 'payment.execution_failed' | 'payment.received' | 'one_off_payment.created' | 'one_off_payment.claimed' | 'one_off_payment.expired' | 'one_off_payment.execution_failed' | 'conversion.executed' | 'conversion.execution_failed' | 'earn.deposit.executed' | 'earn.withdraw.executed' | 'earn.move.executed' | 'rewards.claimed' | 'debt.borrowed' | 'debt.repaid' | 'debt.deleveraged' | 'collateral.added' | 'collateral.removed' | 'withdrawal.submitted' | 'withdrawal.settled' | 'withdrawal.execution_failed' | 'deposit.received' | 'trusted_destination.confirmed' | 'trusted_destination.cancelled' | 'trusted_destination.removed' | 'recurring_payment.updated' | 'recipient.changed' | 'agent.limit_approaching' | 'agent.limit_reached' | 'agent.disabled' | 'agent.expired' | 'agent.expiring_soon' | 'agent.webhook_disabled' | 'operation.policy_rejected' | 'webhook.test';
950
+ event_created_at: string;
951
+ response_body: string | null;
952
+ };
953
+ };
954
+ export type AgentApiHttpMethod = 'GET' | 'POST' | 'PATCH' | 'DELETE';
955
+ export type AgentApiRouteClass = 'read' | 'write' | 'simulate' | 'webhook_management';
956
+ export type AgentApiEndpointMetadata = {
957
+ readonly key: string;
958
+ readonly method: AgentApiHttpMethod;
959
+ readonly path: string;
960
+ readonly pathParams: readonly string[];
961
+ readonly queryParams: readonly string[];
962
+ readonly bodyParams: readonly string[];
963
+ readonly requestSchema: string | null;
964
+ readonly bodySchema: string | null;
965
+ readonly responseSchema: string | null;
966
+ readonly requestType: string | null;
967
+ readonly responseType: string | null;
968
+ readonly idempotencyRequired: boolean;
969
+ readonly routeClass: AgentApiRouteClass;
970
+ readonly description: string;
971
+ };
972
+ export declare const agentApiEndpoints: readonly [{
973
+ readonly key: "GET /v1/agent/self";
974
+ readonly method: "GET";
975
+ readonly path: "/v1/agent/self";
976
+ readonly pathParams: readonly [];
977
+ readonly queryParams: readonly [];
978
+ readonly bodyParams: readonly [];
979
+ readonly requestSchema: null;
980
+ readonly bodySchema: null;
981
+ readonly responseSchema: "agentApiSelfResponse";
982
+ readonly requestType: null;
983
+ readonly responseType: "AgentApiSelfResponse";
984
+ readonly idempotencyRequired: false;
985
+ readonly routeClass: "read";
986
+ readonly description: "Return the authenticated agent and scoped wallet context.";
987
+ }, {
988
+ readonly key: "GET /v1/agent/self/usage";
989
+ readonly method: "GET";
990
+ readonly path: "/v1/agent/self/usage";
991
+ readonly pathParams: readonly [];
992
+ readonly queryParams: readonly [];
993
+ readonly bodyParams: readonly [];
994
+ readonly requestSchema: null;
995
+ readonly bodySchema: null;
996
+ readonly responseSchema: "agentApiSelfUsageResponse";
997
+ readonly requestType: null;
998
+ readonly responseType: "AgentApiSelfUsageResponse";
999
+ readonly idempotencyRequired: false;
1000
+ readonly routeClass: "read";
1001
+ readonly description: "Return current Agent API rate-limit and usage state.";
1002
+ }, {
1003
+ readonly key: "GET /v1/agent/capabilities";
1004
+ readonly method: "GET";
1005
+ readonly path: "/v1/agent/capabilities";
1006
+ readonly pathParams: readonly [];
1007
+ readonly queryParams: readonly [];
1008
+ readonly bodyParams: readonly [];
1009
+ readonly requestSchema: null;
1010
+ readonly bodySchema: null;
1011
+ readonly responseSchema: "agentApiCapabilitiesResponse";
1012
+ readonly requestType: null;
1013
+ readonly responseType: "AgentApiCapabilitiesResponse";
1014
+ readonly idempotencyRequired: false;
1015
+ readonly routeClass: "read";
1016
+ readonly description: "Return Agent API capabilities for the authenticated agent.";
1017
+ }, {
1018
+ readonly key: "GET /v1/agent/capabilities.json";
1019
+ readonly method: "GET";
1020
+ readonly path: "/v1/agent/capabilities.json";
1021
+ readonly pathParams: readonly [];
1022
+ readonly queryParams: readonly [];
1023
+ readonly bodyParams: readonly [];
1024
+ readonly requestSchema: null;
1025
+ readonly bodySchema: null;
1026
+ readonly responseSchema: "agentApiCapabilitiesResponse";
1027
+ readonly requestType: null;
1028
+ readonly responseType: "AgentApiCapabilitiesResponse";
1029
+ readonly idempotencyRequired: false;
1030
+ readonly routeClass: "read";
1031
+ readonly description: "Return Agent API capabilities as JSON.";
1032
+ }, {
1033
+ readonly key: "GET /v1/agent/account";
1034
+ readonly method: "GET";
1035
+ readonly path: "/v1/agent/account";
1036
+ readonly pathParams: readonly [];
1037
+ readonly queryParams: readonly [];
1038
+ readonly bodyParams: readonly [];
1039
+ readonly requestSchema: null;
1040
+ readonly bodySchema: null;
1041
+ readonly responseSchema: "agentApiAccountResponse";
1042
+ readonly requestType: null;
1043
+ readonly responseType: "AgentApiAccountResponse";
1044
+ readonly idempotencyRequired: false;
1045
+ readonly routeClass: "read";
1046
+ readonly description: "Return a scoped account summary for the authenticated agent wallet.";
1047
+ }, {
1048
+ readonly key: "GET /v1/agent/assets";
1049
+ readonly method: "GET";
1050
+ readonly path: "/v1/agent/assets";
1051
+ readonly pathParams: readonly [];
1052
+ readonly queryParams: readonly ["cursor", "limit"];
1053
+ readonly bodyParams: readonly [];
1054
+ readonly requestSchema: "agentApiResourceListQuery";
1055
+ readonly bodySchema: null;
1056
+ readonly responseSchema: "agentApiAssetsResponse";
1057
+ readonly requestType: "AgentApiResourceListQuery";
1058
+ readonly responseType: "AgentApiAssetsResponse";
1059
+ readonly idempotencyRequired: false;
1060
+ readonly routeClass: "read";
1061
+ readonly description: "List assets visible to the authenticated agent.";
1062
+ }, {
1063
+ readonly key: "GET /v1/agent/protocols";
1064
+ readonly method: "GET";
1065
+ readonly path: "/v1/agent/protocols";
1066
+ readonly pathParams: readonly [];
1067
+ readonly queryParams: readonly ["cursor", "limit"];
1068
+ readonly bodyParams: readonly [];
1069
+ readonly requestSchema: "agentApiResourceListQuery";
1070
+ readonly bodySchema: null;
1071
+ readonly responseSchema: "agentApiProtocolsResponse";
1072
+ readonly requestType: "AgentApiResourceListQuery";
1073
+ readonly responseType: "AgentApiProtocolsResponse";
1074
+ readonly idempotencyRequired: false;
1075
+ readonly routeClass: "read";
1076
+ readonly description: "List protocols visible to the authenticated agent.";
1077
+ }, {
1078
+ readonly key: "GET /v1/agent/balances";
1079
+ readonly method: "GET";
1080
+ readonly path: "/v1/agent/balances";
1081
+ readonly pathParams: readonly [];
1082
+ readonly queryParams: readonly ["cursor", "limit"];
1083
+ readonly bodyParams: readonly [];
1084
+ readonly requestSchema: "agentApiResourceListQuery";
1085
+ readonly bodySchema: null;
1086
+ readonly responseSchema: "agentApiBalancesResponse";
1087
+ readonly requestType: "AgentApiResourceListQuery";
1088
+ readonly responseType: "AgentApiBalancesResponse";
1089
+ readonly idempotencyRequired: false;
1090
+ readonly routeClass: "read";
1091
+ readonly description: "List balances for the authenticated agent wallet.";
1092
+ }, {
1093
+ readonly key: "GET /v1/agent/balances/cash";
1094
+ readonly method: "GET";
1095
+ readonly path: "/v1/agent/balances/cash";
1096
+ readonly pathParams: readonly [];
1097
+ readonly queryParams: readonly ["cursor", "limit"];
1098
+ readonly bodyParams: readonly [];
1099
+ readonly requestSchema: "agentApiResourceListQuery";
1100
+ readonly bodySchema: null;
1101
+ readonly responseSchema: "agentApiBalancesResponse";
1102
+ readonly requestType: "AgentApiResourceListQuery";
1103
+ readonly responseType: "AgentApiBalancesResponse";
1104
+ readonly idempotencyRequired: false;
1105
+ readonly routeClass: "read";
1106
+ readonly description: "List cash balances for the authenticated agent wallet.";
1107
+ }, {
1108
+ readonly key: "GET /v1/agent/activity";
1109
+ readonly method: "GET";
1110
+ readonly path: "/v1/agent/activity";
1111
+ readonly pathParams: readonly [];
1112
+ readonly queryParams: readonly ["cursor", "limit", "type", "since"];
1113
+ readonly bodyParams: readonly [];
1114
+ readonly requestSchema: "agentApiActivityQuery";
1115
+ readonly bodySchema: null;
1116
+ readonly responseSchema: "agentApiActivityResponse";
1117
+ readonly requestType: "AgentApiActivityQuery";
1118
+ readonly responseType: "AgentApiActivityResponse";
1119
+ readonly idempotencyRequired: false;
1120
+ readonly routeClass: "read";
1121
+ readonly description: "List scoped Activity rows for the authenticated agent wallet without marking them read.";
1122
+ }, {
1123
+ readonly key: "GET /v1/agent/operations";
1124
+ readonly method: "GET";
1125
+ readonly path: "/v1/agent/operations";
1126
+ readonly pathParams: readonly [];
1127
+ readonly queryParams: readonly ["cursor", "limit", "status", "type", "since"];
1128
+ readonly bodyParams: readonly [];
1129
+ readonly requestSchema: "agentApiOperationsQuery";
1130
+ readonly bodySchema: null;
1131
+ readonly responseSchema: "agentApiOperationsResponse";
1132
+ readonly requestType: "AgentApiOperationsQuery";
1133
+ readonly responseType: "AgentApiOperationsResponse";
1134
+ readonly idempotencyRequired: false;
1135
+ readonly routeClass: "read";
1136
+ readonly description: "List AgentOperation rows for the authenticated agent.";
1137
+ }, {
1138
+ readonly key: "GET /v1/agent/operations/{id}";
1139
+ readonly method: "GET";
1140
+ readonly path: "/v1/agent/operations/{id}";
1141
+ readonly pathParams: readonly ["id"];
1142
+ readonly queryParams: readonly ["include"];
1143
+ readonly bodyParams: readonly [];
1144
+ readonly requestSchema: "agentApiOperationDetailQuery";
1145
+ readonly bodySchema: null;
1146
+ readonly responseSchema: "agentApiOperationResponse";
1147
+ readonly requestType: "AgentApiOperationDetailQuery";
1148
+ readonly responseType: "AgentApiOperationResponse";
1149
+ readonly idempotencyRequired: false;
1150
+ readonly routeClass: "read";
1151
+ readonly description: "Get one AgentOperation for the authenticated agent.";
1152
+ }, {
1153
+ readonly key: "GET /v1/agent/recipients";
1154
+ readonly method: "GET";
1155
+ readonly path: "/v1/agent/recipients";
1156
+ readonly pathParams: readonly [];
1157
+ readonly queryParams: readonly ["cursor", "limit"];
1158
+ readonly bodyParams: readonly [];
1159
+ readonly requestSchema: "agentApiRecipientsQuery";
1160
+ readonly bodySchema: null;
1161
+ readonly responseSchema: "agentApiRecipientsResponse";
1162
+ readonly requestType: "AgentApiRecipientsQuery";
1163
+ readonly responseType: "AgentApiRecipientsResponse";
1164
+ readonly idempotencyRequired: false;
1165
+ readonly routeClass: "read";
1166
+ readonly description: "List payment recipients visible to the authenticated agent wallet.";
1167
+ }, {
1168
+ readonly key: "GET /v1/agent/recipients/{id}";
1169
+ readonly method: "GET";
1170
+ readonly path: "/v1/agent/recipients/{id}";
1171
+ readonly pathParams: readonly ["id"];
1172
+ readonly queryParams: readonly [];
1173
+ readonly bodyParams: readonly [];
1174
+ readonly requestSchema: "agentApiRecipientDetailQuery";
1175
+ readonly bodySchema: null;
1176
+ readonly responseSchema: "agentApiRecipientResponse";
1177
+ readonly requestType: "AgentApiRecipientDetailQuery";
1178
+ readonly responseType: "AgentApiRecipientResponse";
1179
+ readonly idempotencyRequired: false;
1180
+ readonly routeClass: "read";
1181
+ readonly description: "Get one recipient visible to the authenticated agent wallet.";
1182
+ }, {
1183
+ readonly key: "POST /v1/agent/recipients/resolve";
1184
+ readonly method: "POST";
1185
+ readonly path: "/v1/agent/recipients/resolve";
1186
+ readonly pathParams: readonly [];
1187
+ readonly queryParams: readonly [];
1188
+ readonly bodyParams: readonly ["to", "asset", "action"];
1189
+ readonly requestSchema: "agentApiRecipientResolveRequest";
1190
+ readonly bodySchema: "agentApiRecipientResolveRequest";
1191
+ readonly responseSchema: "agentApiRecipientResponse";
1192
+ readonly requestType: "AgentApiRecipientResolveRequest";
1193
+ readonly responseType: "AgentApiRecipientResponse";
1194
+ readonly idempotencyRequired: false;
1195
+ readonly routeClass: "read";
1196
+ readonly description: "Resolve an agent-facing recipient identifier.";
1197
+ }, {
1198
+ readonly key: "POST /v1/agent/payments";
1199
+ readonly method: "POST";
1200
+ readonly path: "/v1/agent/payments";
1201
+ readonly pathParams: readonly [];
1202
+ readonly queryParams: readonly [];
1203
+ readonly bodyParams: readonly ["to", "asset", "deliver_as", "note", "slippage_percent", "prefer", "amount", "amount_usd"];
1204
+ readonly requestSchema: "agentApiPaymentCreateRequest";
1205
+ readonly bodySchema: "agentApiPaymentCreateRequest";
1206
+ readonly responseSchema: "agentApiWriteResponse";
1207
+ readonly requestType: "AgentApiPaymentCreateRequest";
1208
+ readonly responseType: "AgentApiWriteResponse";
1209
+ readonly idempotencyRequired: true;
1210
+ readonly routeClass: "write";
1211
+ readonly description: "Create a payment operation.";
1212
+ }, {
1213
+ readonly key: "GET /v1/agent/payments";
1214
+ readonly method: "GET";
1215
+ readonly path: "/v1/agent/payments";
1216
+ readonly pathParams: readonly [];
1217
+ readonly queryParams: readonly ["cursor", "limit"];
1218
+ readonly bodyParams: readonly [];
1219
+ readonly requestSchema: "agentApiResourceListQuery";
1220
+ readonly bodySchema: null;
1221
+ readonly responseSchema: "agentApiOperationsResponse";
1222
+ readonly requestType: "AgentApiResourceListQuery";
1223
+ readonly responseType: "AgentApiOperationsResponse";
1224
+ readonly idempotencyRequired: false;
1225
+ readonly routeClass: "read";
1226
+ readonly description: "List payment operations for the authenticated agent.";
1227
+ }, {
1228
+ readonly key: "GET /v1/agent/payments/{id}";
1229
+ readonly method: "GET";
1230
+ readonly path: "/v1/agent/payments/{id}";
1231
+ readonly pathParams: readonly ["id"];
1232
+ readonly queryParams: readonly ["include"];
1233
+ readonly bodyParams: readonly [];
1234
+ readonly requestSchema: "agentApiResourceDetailQuery";
1235
+ readonly bodySchema: null;
1236
+ readonly responseSchema: "agentApiOperationResponse";
1237
+ readonly requestType: "AgentApiResourceDetailQuery";
1238
+ readonly responseType: "AgentApiOperationResponse";
1239
+ readonly idempotencyRequired: false;
1240
+ readonly routeClass: "read";
1241
+ readonly description: "Get one payment operation for the authenticated agent.";
1242
+ }, {
1243
+ readonly key: "POST /v1/agent/one-off-payments";
1244
+ readonly method: "POST";
1245
+ readonly path: "/v1/agent/one-off-payments";
1246
+ readonly pathParams: readonly [];
1247
+ readonly queryParams: readonly [];
1248
+ readonly bodyParams: readonly ["to", "asset", "note", "unlock_delay_seconds", "expires_in_seconds", "amount", "amount_usd"];
1249
+ readonly requestSchema: "agentApiOneOffPaymentCreateRequest";
1250
+ readonly bodySchema: "agentApiOneOffPaymentCreateRequest";
1251
+ readonly responseSchema: "agentApiWriteResponse";
1252
+ readonly requestType: "AgentApiOneOffPaymentCreateRequest";
1253
+ readonly responseType: "AgentApiWriteResponse";
1254
+ readonly idempotencyRequired: true;
1255
+ readonly routeClass: "write";
1256
+ readonly description: "Create a one-off payment operation.";
1257
+ }, {
1258
+ readonly key: "GET /v1/agent/one-off-payments";
1259
+ readonly method: "GET";
1260
+ readonly path: "/v1/agent/one-off-payments";
1261
+ readonly pathParams: readonly [];
1262
+ readonly queryParams: readonly ["cursor", "limit"];
1263
+ readonly bodyParams: readonly [];
1264
+ readonly requestSchema: "agentApiResourceListQuery";
1265
+ readonly bodySchema: null;
1266
+ readonly responseSchema: "agentApiOperationsResponse";
1267
+ readonly requestType: "AgentApiResourceListQuery";
1268
+ readonly responseType: "AgentApiOperationsResponse";
1269
+ readonly idempotencyRequired: false;
1270
+ readonly routeClass: "read";
1271
+ readonly description: "List one-off payment operations for the authenticated agent.";
1272
+ }, {
1273
+ readonly key: "GET /v1/agent/one-off-payments/{id}";
1274
+ readonly method: "GET";
1275
+ readonly path: "/v1/agent/one-off-payments/{id}";
1276
+ readonly pathParams: readonly ["id"];
1277
+ readonly queryParams: readonly ["include"];
1278
+ readonly bodyParams: readonly [];
1279
+ readonly requestSchema: "agentApiResourceDetailQuery";
1280
+ readonly bodySchema: null;
1281
+ readonly responseSchema: "agentApiOperationResponse";
1282
+ readonly requestType: "AgentApiResourceDetailQuery";
1283
+ readonly responseType: "AgentApiOperationResponse";
1284
+ readonly idempotencyRequired: false;
1285
+ readonly routeClass: "read";
1286
+ readonly description: "Get a one-off payment operation for the authenticated agent.";
1287
+ }, {
1288
+ readonly key: "POST /v1/agent/withdrawals/to-bank";
1289
+ readonly method: "POST";
1290
+ readonly path: "/v1/agent/withdrawals/to-bank";
1291
+ readonly pathParams: readonly [];
1292
+ readonly queryParams: readonly [];
1293
+ readonly bodyParams: readonly ["method_id", "asset", "note", "amount", "amount_usd"];
1294
+ readonly requestSchema: "agentApiWithdrawalToBankRequest";
1295
+ readonly bodySchema: "agentApiWithdrawalToBankRequest";
1296
+ readonly responseSchema: "agentApiWriteResponse";
1297
+ readonly requestType: "AgentApiWithdrawalToBankRequest";
1298
+ readonly responseType: "AgentApiWriteResponse";
1299
+ readonly idempotencyRequired: true;
1300
+ readonly routeClass: "write";
1301
+ readonly description: "Create a bank withdrawal operation.";
1302
+ }, {
1303
+ readonly key: "POST /v1/agent/withdrawals/to-crypto";
1304
+ readonly method: "POST";
1305
+ readonly path: "/v1/agent/withdrawals/to-crypto";
1306
+ readonly pathParams: readonly [];
1307
+ readonly queryParams: readonly [];
1308
+ readonly bodyParams: readonly ["destination_id", "asset", "note", "amount", "amount_usd"];
1309
+ readonly requestSchema: "agentApiWithdrawalToCryptoRequest";
1310
+ readonly bodySchema: "agentApiWithdrawalToCryptoRequest";
1311
+ readonly responseSchema: "agentApiWriteResponse";
1312
+ readonly requestType: "AgentApiWithdrawalToCryptoRequest";
1313
+ readonly responseType: "AgentApiWriteResponse";
1314
+ readonly idempotencyRequired: true;
1315
+ readonly routeClass: "write";
1316
+ readonly description: "Create a crypto withdrawal operation.";
1317
+ }, {
1318
+ readonly key: "GET /v1/agent/withdrawals";
1319
+ readonly method: "GET";
1320
+ readonly path: "/v1/agent/withdrawals";
1321
+ readonly pathParams: readonly [];
1322
+ readonly queryParams: readonly ["cursor", "limit"];
1323
+ readonly bodyParams: readonly [];
1324
+ readonly requestSchema: "agentApiResourceListQuery";
1325
+ readonly bodySchema: null;
1326
+ readonly responseSchema: "agentApiOperationsResponse";
1327
+ readonly requestType: "AgentApiResourceListQuery";
1328
+ readonly responseType: "AgentApiOperationsResponse";
1329
+ readonly idempotencyRequired: false;
1330
+ readonly routeClass: "read";
1331
+ readonly description: "List withdrawal operations for the authenticated agent.";
1332
+ }, {
1333
+ readonly key: "GET /v1/agent/withdrawals/{id}";
1334
+ readonly method: "GET";
1335
+ readonly path: "/v1/agent/withdrawals/{id}";
1336
+ readonly pathParams: readonly ["id"];
1337
+ readonly queryParams: readonly ["include"];
1338
+ readonly bodyParams: readonly [];
1339
+ readonly requestSchema: "agentApiResourceDetailQuery";
1340
+ readonly bodySchema: null;
1341
+ readonly responseSchema: "agentApiOperationResponse";
1342
+ readonly requestType: "AgentApiResourceDetailQuery";
1343
+ readonly responseType: "AgentApiOperationResponse";
1344
+ readonly idempotencyRequired: false;
1345
+ readonly routeClass: "read";
1346
+ readonly description: "Get one withdrawal operation for the authenticated agent.";
1347
+ }, {
1348
+ readonly key: "GET /v1/agent/withdrawal-methods";
1349
+ readonly method: "GET";
1350
+ readonly path: "/v1/agent/withdrawal-methods";
1351
+ readonly pathParams: readonly [];
1352
+ readonly queryParams: readonly ["cursor", "limit"];
1353
+ readonly bodyParams: readonly [];
1354
+ readonly requestSchema: "agentApiResourceListQuery";
1355
+ readonly bodySchema: null;
1356
+ readonly responseSchema: "agentApiWithdrawalMethodsResponse";
1357
+ readonly requestType: "AgentApiResourceListQuery";
1358
+ readonly responseType: "AgentApiWithdrawalMethodsResponse";
1359
+ readonly idempotencyRequired: false;
1360
+ readonly routeClass: "read";
1361
+ readonly description: "List withdrawal methods visible to the authenticated agent wallet.";
1362
+ }, {
1363
+ readonly key: "GET /v1/agent/deposit-methods";
1364
+ readonly method: "GET";
1365
+ readonly path: "/v1/agent/deposit-methods";
1366
+ readonly pathParams: readonly [];
1367
+ readonly queryParams: readonly ["cursor", "limit"];
1368
+ readonly bodyParams: readonly [];
1369
+ readonly requestSchema: "agentApiResourceListQuery";
1370
+ readonly bodySchema: null;
1371
+ readonly responseSchema: "agentApiDepositMethodsResponse";
1372
+ readonly requestType: "AgentApiResourceListQuery";
1373
+ readonly responseType: "AgentApiDepositMethodsResponse";
1374
+ readonly idempotencyRequired: false;
1375
+ readonly routeClass: "read";
1376
+ readonly description: "List deposit methods for the authenticated agent wallet.";
1377
+ }, {
1378
+ readonly key: "GET /v1/agent/deposit-address";
1379
+ readonly method: "GET";
1380
+ readonly path: "/v1/agent/deposit-address";
1381
+ readonly pathParams: readonly [];
1382
+ readonly queryParams: readonly ["asset", "chain"];
1383
+ readonly bodyParams: readonly [];
1384
+ readonly requestSchema: "agentApiDepositAddressQuery";
1385
+ readonly bodySchema: null;
1386
+ readonly responseSchema: "agentApiDepositAddressResponse";
1387
+ readonly requestType: "AgentApiDepositAddressQuery";
1388
+ readonly responseType: "AgentApiDepositAddressResponse";
1389
+ readonly idempotencyRequired: false;
1390
+ readonly routeClass: "read";
1391
+ readonly description: "Return a Base deposit address for an asset.";
1392
+ }, {
1393
+ readonly key: "GET /v1/agent/earn";
1394
+ readonly method: "GET";
1395
+ readonly path: "/v1/agent/earn";
1396
+ readonly pathParams: readonly [];
1397
+ readonly queryParams: readonly ["cursor", "limit"];
1398
+ readonly bodyParams: readonly [];
1399
+ readonly requestSchema: "agentApiResourceListQuery";
1400
+ readonly bodySchema: null;
1401
+ readonly responseSchema: "agentApiEarnResponse";
1402
+ readonly requestType: "AgentApiResourceListQuery";
1403
+ readonly responseType: "AgentApiEarnResponse";
1404
+ readonly idempotencyRequired: false;
1405
+ readonly routeClass: "read";
1406
+ readonly description: "List earn positions for the authenticated agent wallet.";
1407
+ }, {
1408
+ readonly key: "GET /v1/agent/earn/{id}";
1409
+ readonly method: "GET";
1410
+ readonly path: "/v1/agent/earn/{id}";
1411
+ readonly pathParams: readonly ["id"];
1412
+ readonly queryParams: readonly [];
1413
+ readonly bodyParams: readonly [];
1414
+ readonly requestSchema: "agentApiEarnDetailQuery";
1415
+ readonly bodySchema: null;
1416
+ readonly responseSchema: "agentApiEarnPositionResponse";
1417
+ readonly requestType: "AgentApiEarnDetailQuery";
1418
+ readonly responseType: "AgentApiEarnPositionResponse";
1419
+ readonly idempotencyRequired: false;
1420
+ readonly routeClass: "read";
1421
+ readonly description: "Get one earn position for the authenticated agent wallet.";
1422
+ }, {
1423
+ readonly key: "GET /v1/agent/earn/opportunities";
1424
+ readonly method: "GET";
1425
+ readonly path: "/v1/agent/earn/opportunities";
1426
+ readonly pathParams: readonly [];
1427
+ readonly queryParams: readonly ["cursor", "limit"];
1428
+ readonly bodyParams: readonly [];
1429
+ readonly requestSchema: "agentApiResourceListQuery";
1430
+ readonly bodySchema: null;
1431
+ readonly responseSchema: "agentApiEarnOpportunitiesResponse";
1432
+ readonly requestType: "AgentApiResourceListQuery";
1433
+ readonly responseType: "AgentApiEarnOpportunitiesResponse";
1434
+ readonly idempotencyRequired: false;
1435
+ readonly routeClass: "read";
1436
+ readonly description: "List earn opportunities available to the authenticated agent.";
1437
+ }, {
1438
+ readonly key: "POST /v1/agent/earn/deposit";
1439
+ readonly method: "POST";
1440
+ readonly path: "/v1/agent/earn/deposit";
1441
+ readonly pathParams: readonly [];
1442
+ readonly queryParams: readonly [];
1443
+ readonly bodyParams: readonly ["asset", "vault_id", "use_best_available", "amount", "amount_usd"];
1444
+ readonly requestSchema: "agentApiEarnDepositRequest";
1445
+ readonly bodySchema: "agentApiEarnDepositRequest";
1446
+ readonly responseSchema: "agentApiWriteResponse";
1447
+ readonly requestType: "AgentApiEarnDepositRequest";
1448
+ readonly responseType: "AgentApiWriteResponse";
1449
+ readonly idempotencyRequired: true;
1450
+ readonly routeClass: "write";
1451
+ readonly description: "Create an earn deposit operation.";
1452
+ }, {
1453
+ readonly key: "POST /v1/agent/earn/withdraw";
1454
+ readonly method: "POST";
1455
+ readonly path: "/v1/agent/earn/withdraw";
1456
+ readonly pathParams: readonly [];
1457
+ readonly queryParams: readonly [];
1458
+ readonly bodyParams: readonly ["position_id", "withdraw_all", "destination_asset", "allow_conversion", "amount", "amount_usd"];
1459
+ readonly requestSchema: "agentApiEarnWithdrawRequest";
1460
+ readonly bodySchema: "agentApiEarnWithdrawRequest";
1461
+ readonly responseSchema: "agentApiWriteResponse";
1462
+ readonly requestType: "AgentApiEarnWithdrawRequest";
1463
+ readonly responseType: "AgentApiWriteResponse";
1464
+ readonly idempotencyRequired: true;
1465
+ readonly routeClass: "write";
1466
+ readonly description: "Create an earn withdrawal operation.";
1467
+ }, {
1468
+ readonly key: "POST /v1/agent/earn/move";
1469
+ readonly method: "POST";
1470
+ readonly path: "/v1/agent/earn/move";
1471
+ readonly pathParams: readonly [];
1472
+ readonly queryParams: readonly [];
1473
+ readonly bodyParams: readonly ["from_position_id", "move_all", "to_vault_id", "to_best_available", "amount", "amount_usd"];
1474
+ readonly requestSchema: "agentApiEarnMoveRequest";
1475
+ readonly bodySchema: "agentApiEarnMoveRequest";
1476
+ readonly responseSchema: "agentApiWriteResponse";
1477
+ readonly requestType: "AgentApiEarnMoveRequest";
1478
+ readonly responseType: "AgentApiWriteResponse";
1479
+ readonly idempotencyRequired: true;
1480
+ readonly routeClass: "write";
1481
+ readonly description: "Create an earn move operation.";
1482
+ }, {
1483
+ readonly key: "POST /v1/agent/earn/rewards/claim";
1484
+ readonly method: "POST";
1485
+ readonly path: "/v1/agent/earn/rewards/claim";
1486
+ readonly pathParams: readonly [];
1487
+ readonly queryParams: readonly [];
1488
+ readonly bodyParams: readonly ["protocols"];
1489
+ readonly requestSchema: "agentApiEarnRewardsClaimRequest";
1490
+ readonly bodySchema: "agentApiEarnRewardsClaimRequest";
1491
+ readonly responseSchema: "agentApiWriteResponse";
1492
+ readonly requestType: "AgentApiEarnRewardsClaimRequest";
1493
+ readonly responseType: "AgentApiWriteResponse";
1494
+ readonly idempotencyRequired: true;
1495
+ readonly routeClass: "write";
1496
+ readonly description: "Create a rewards claim operation.";
1497
+ }, {
1498
+ readonly key: "GET /v1/agent/borrow";
1499
+ readonly method: "GET";
1500
+ readonly path: "/v1/agent/borrow";
1501
+ readonly pathParams: readonly [];
1502
+ readonly queryParams: readonly [];
1503
+ readonly bodyParams: readonly [];
1504
+ readonly requestSchema: null;
1505
+ readonly bodySchema: null;
1506
+ readonly responseSchema: "agentApiBorrowResponse";
1507
+ readonly requestType: null;
1508
+ readonly responseType: "AgentApiBorrowResponse";
1509
+ readonly idempotencyRequired: false;
1510
+ readonly routeClass: "read";
1511
+ readonly description: "Return borrow summary for the authenticated agent wallet.";
1512
+ }, {
1513
+ readonly key: "POST /v1/agent/borrow";
1514
+ readonly method: "POST";
1515
+ readonly path: "/v1/agent/borrow";
1516
+ readonly pathParams: readonly [];
1517
+ readonly queryParams: readonly [];
1518
+ readonly bodyParams: readonly ["asset", "max_ltv_after", "amount", "amount_usd"];
1519
+ readonly requestSchema: "agentApiBorrowRequest";
1520
+ readonly bodySchema: "agentApiBorrowRequest";
1521
+ readonly responseSchema: "agentApiWriteResponse";
1522
+ readonly requestType: "AgentApiBorrowRequest";
1523
+ readonly responseType: "AgentApiWriteResponse";
1524
+ readonly idempotencyRequired: true;
1525
+ readonly routeClass: "write";
1526
+ readonly description: "Create a borrow operation for USDC or GREEN.";
1527
+ }, {
1528
+ readonly key: "GET /v1/agent/borrow/collateral";
1529
+ readonly method: "GET";
1530
+ readonly path: "/v1/agent/borrow/collateral";
1531
+ readonly pathParams: readonly [];
1532
+ readonly queryParams: readonly ["cursor", "limit"];
1533
+ readonly bodyParams: readonly [];
1534
+ readonly requestSchema: "agentApiResourceListQuery";
1535
+ readonly bodySchema: null;
1536
+ readonly responseSchema: "agentApiCollateralResponse";
1537
+ readonly requestType: "AgentApiResourceListQuery";
1538
+ readonly responseType: "AgentApiCollateralResponse";
1539
+ readonly idempotencyRequired: false;
1540
+ readonly routeClass: "read";
1541
+ readonly description: "List collateral for the authenticated agent wallet.";
1542
+ }, {
1543
+ readonly key: "POST /v1/agent/borrow/repay";
1544
+ readonly method: "POST";
1545
+ readonly path: "/v1/agent/borrow/repay";
1546
+ readonly pathParams: readonly [];
1547
+ readonly queryParams: readonly [];
1548
+ readonly bodyParams: readonly ["asset", "repay_all", "source_asset", "allow_conversion", "amount", "amount_usd"];
1549
+ readonly requestSchema: "agentApiBorrowRepayRequest";
1550
+ readonly bodySchema: "agentApiBorrowRepayRequest";
1551
+ readonly responseSchema: "agentApiWriteResponse";
1552
+ readonly requestType: "AgentApiBorrowRepayRequest";
1553
+ readonly responseType: "AgentApiWriteResponse";
1554
+ readonly idempotencyRequired: true;
1555
+ readonly routeClass: "write";
1556
+ readonly description: "Create a debt repayment operation.";
1557
+ }, {
1558
+ readonly key: "POST /v1/agent/borrow/deleverage";
1559
+ readonly method: "POST";
1560
+ readonly path: "/v1/agent/borrow/deleverage";
1561
+ readonly pathParams: readonly [];
1562
+ readonly queryParams: readonly [];
1563
+ readonly bodyParams: readonly ["target_ltv", "max_repay_amount_usd", "source_asset", "use_available_cash_first", "allow_conversion", "allow_partial"];
1564
+ readonly requestSchema: "agentApiDeleverageRequest";
1565
+ readonly bodySchema: "agentApiDeleverageRequest";
1566
+ readonly responseSchema: "agentApiWriteResponse";
1567
+ readonly requestType: "AgentApiDeleverageRequest";
1568
+ readonly responseType: "AgentApiWriteResponse";
1569
+ readonly idempotencyRequired: true;
1570
+ readonly routeClass: "write";
1571
+ readonly description: "Create a target-LTV deleverage operation.";
1572
+ }, {
1573
+ readonly key: "POST /v1/agent/borrow/collateral/add";
1574
+ readonly method: "POST";
1575
+ readonly path: "/v1/agent/borrow/collateral/add";
1576
+ readonly pathParams: readonly [];
1577
+ readonly queryParams: readonly [];
1578
+ readonly bodyParams: readonly ["asset", "source_asset", "allow_conversion", "amount", "amount_usd"];
1579
+ readonly requestSchema: "agentApiCollateralAddRequest";
1580
+ readonly bodySchema: "agentApiCollateralAddRequest";
1581
+ readonly responseSchema: "agentApiWriteResponse";
1582
+ readonly requestType: "AgentApiCollateralAddRequest";
1583
+ readonly responseType: "AgentApiWriteResponse";
1584
+ readonly idempotencyRequired: true;
1585
+ readonly routeClass: "write";
1586
+ readonly description: "Create a collateral add operation.";
1587
+ }, {
1588
+ readonly key: "POST /v1/agent/borrow/collateral/remove";
1589
+ readonly method: "POST";
1590
+ readonly path: "/v1/agent/borrow/collateral/remove";
1591
+ readonly pathParams: readonly [];
1592
+ readonly queryParams: readonly [];
1593
+ readonly bodyParams: readonly ["asset", "remove_all", "max_ltv_after", "amount", "amount_usd"];
1594
+ readonly requestSchema: "agentApiCollateralRemoveRequest";
1595
+ readonly bodySchema: "agentApiCollateralRemoveRequest";
1596
+ readonly responseSchema: "agentApiWriteResponse";
1597
+ readonly requestType: "AgentApiCollateralRemoveRequest";
1598
+ readonly responseType: "AgentApiWriteResponse";
1599
+ readonly idempotencyRequired: true;
1600
+ readonly routeClass: "write";
1601
+ readonly description: "Create a collateral remove operation.";
1602
+ }, {
1603
+ readonly key: "POST /v1/agent/conversions/quote";
1604
+ readonly method: "POST";
1605
+ readonly path: "/v1/agent/conversions/quote";
1606
+ readonly pathParams: readonly [];
1607
+ readonly queryParams: readonly [];
1608
+ readonly bodyParams: readonly ["from_asset", "to_asset", "from_vault_address", "to_vault_address", "slippage_percent", "amount", "amount_usd"];
1609
+ readonly requestSchema: "agentApiConversionQuoteRequest";
1610
+ readonly bodySchema: "agentApiConversionQuoteRequest";
1611
+ readonly responseSchema: "agentApiConversionQuoteResponse";
1612
+ readonly requestType: "AgentApiConversionQuoteRequest";
1613
+ readonly responseType: "AgentApiConversionQuoteResponse";
1614
+ readonly idempotencyRequired: true;
1615
+ readonly routeClass: "simulate";
1616
+ readonly description: "Create a stateful conversion quote.";
1617
+ }, {
1618
+ readonly key: "POST /v1/agent/conversions";
1619
+ readonly method: "POST";
1620
+ readonly path: "/v1/agent/conversions";
1621
+ readonly pathParams: readonly [];
1622
+ readonly queryParams: readonly [];
1623
+ readonly bodyParams: readonly ["quote_id"];
1624
+ readonly requestSchema: "agentApiConversionExecuteRequest";
1625
+ readonly bodySchema: "agentApiConversionExecuteRequest";
1626
+ readonly responseSchema: "agentApiWriteResponse";
1627
+ readonly requestType: "AgentApiConversionExecuteRequest";
1628
+ readonly responseType: "AgentApiWriteResponse";
1629
+ readonly idempotencyRequired: true;
1630
+ readonly routeClass: "write";
1631
+ readonly description: "Execute a conversion from a quote.";
1632
+ }, {
1633
+ readonly key: "GET /v1/agent/conversions";
1634
+ readonly method: "GET";
1635
+ readonly path: "/v1/agent/conversions";
1636
+ readonly pathParams: readonly [];
1637
+ readonly queryParams: readonly ["cursor", "limit"];
1638
+ readonly bodyParams: readonly [];
1639
+ readonly requestSchema: "agentApiResourceListQuery";
1640
+ readonly bodySchema: null;
1641
+ readonly responseSchema: "agentApiOperationsResponse";
1642
+ readonly requestType: "AgentApiResourceListQuery";
1643
+ readonly responseType: "AgentApiOperationsResponse";
1644
+ readonly idempotencyRequired: false;
1645
+ readonly routeClass: "read";
1646
+ readonly description: "List conversion operations for the authenticated agent.";
1647
+ }, {
1648
+ readonly key: "GET /v1/agent/conversions/{id}";
1649
+ readonly method: "GET";
1650
+ readonly path: "/v1/agent/conversions/{id}";
1651
+ readonly pathParams: readonly ["id"];
1652
+ readonly queryParams: readonly ["include"];
1653
+ readonly bodyParams: readonly [];
1654
+ readonly requestSchema: "agentApiResourceDetailQuery";
1655
+ readonly bodySchema: null;
1656
+ readonly responseSchema: "agentApiOperationResponse";
1657
+ readonly requestType: "AgentApiResourceDetailQuery";
1658
+ readonly responseType: "AgentApiOperationResponse";
1659
+ readonly idempotencyRequired: false;
1660
+ readonly routeClass: "read";
1661
+ readonly description: "Get one conversion operation for the authenticated agent.";
1662
+ }, {
1663
+ readonly key: "GET /v1/agent/trusted-destinations";
1664
+ readonly method: "GET";
1665
+ readonly path: "/v1/agent/trusted-destinations";
1666
+ readonly pathParams: readonly [];
1667
+ readonly queryParams: readonly ["cursor", "limit"];
1668
+ readonly bodyParams: readonly [];
1669
+ readonly requestSchema: "agentApiResourceListQuery";
1670
+ readonly bodySchema: null;
1671
+ readonly responseSchema: "agentApiRecipientsResponse";
1672
+ readonly requestType: "AgentApiResourceListQuery";
1673
+ readonly responseType: "AgentApiRecipientsResponse";
1674
+ readonly idempotencyRequired: false;
1675
+ readonly routeClass: "read";
1676
+ readonly description: "List trusted destinations visible to the authenticated agent wallet.";
1677
+ }, {
1678
+ readonly key: "GET /v1/agent/trusted-destinations/{id}";
1679
+ readonly method: "GET";
1680
+ readonly path: "/v1/agent/trusted-destinations/{id}";
1681
+ readonly pathParams: readonly ["id"];
1682
+ readonly queryParams: readonly [];
1683
+ readonly bodyParams: readonly [];
1684
+ readonly requestSchema: "agentApiRecipientDetailQuery";
1685
+ readonly bodySchema: null;
1686
+ readonly responseSchema: "agentApiRecipientResponse";
1687
+ readonly requestType: "AgentApiRecipientDetailQuery";
1688
+ readonly responseType: "AgentApiRecipientResponse";
1689
+ readonly idempotencyRequired: false;
1690
+ readonly routeClass: "read";
1691
+ readonly description: "Get one trusted destination visible to the authenticated agent wallet.";
1692
+ }, {
1693
+ readonly key: "GET /v1/agent/recurring-payments";
1694
+ readonly method: "GET";
1695
+ readonly path: "/v1/agent/recurring-payments";
1696
+ readonly pathParams: readonly [];
1697
+ readonly queryParams: readonly ["cursor", "limit"];
1698
+ readonly bodyParams: readonly [];
1699
+ readonly requestSchema: "agentApiResourceListQuery";
1700
+ readonly bodySchema: null;
1701
+ readonly responseSchema: "agentApiRecipientsResponse";
1702
+ readonly requestType: "AgentApiResourceListQuery";
1703
+ readonly responseType: "AgentApiRecipientsResponse";
1704
+ readonly idempotencyRequired: false;
1705
+ readonly routeClass: "read";
1706
+ readonly description: "List recurring payment recipients visible to the authenticated agent wallet.";
1707
+ }, {
1708
+ readonly key: "GET /v1/agent/recurring-payments/{id}";
1709
+ readonly method: "GET";
1710
+ readonly path: "/v1/agent/recurring-payments/{id}";
1711
+ readonly pathParams: readonly ["id"];
1712
+ readonly queryParams: readonly [];
1713
+ readonly bodyParams: readonly [];
1714
+ readonly requestSchema: "agentApiRecipientDetailQuery";
1715
+ readonly bodySchema: null;
1716
+ readonly responseSchema: "agentApiRecipientResponse";
1717
+ readonly requestType: "AgentApiRecipientDetailQuery";
1718
+ readonly responseType: "AgentApiRecipientResponse";
1719
+ readonly idempotencyRequired: false;
1720
+ readonly routeClass: "read";
1721
+ readonly description: "Get one recurring payment recipient visible to the authenticated agent wallet.";
1722
+ }, {
1723
+ readonly key: "POST /v1/agent/simulate";
1724
+ readonly method: "POST";
1725
+ readonly path: "/v1/agent/simulate";
1726
+ readonly pathParams: readonly [];
1727
+ readonly queryParams: readonly [];
1728
+ readonly bodyParams: readonly ["method", "path", "body"];
1729
+ readonly requestSchema: "agentApiSimulateRequest";
1730
+ readonly bodySchema: "agentApiSimulateRequest";
1731
+ readonly responseSchema: "agentApiSimulateResponse";
1732
+ readonly requestType: "AgentApiSimulateRequest";
1733
+ readonly responseType: "AgentApiSimulateResponse";
1734
+ readonly idempotencyRequired: false;
1735
+ readonly routeClass: "simulate";
1736
+ readonly description: "Simulate a write request without broadcasting.";
1737
+ }, {
1738
+ readonly key: "POST /v1/agent/x402/sign";
1739
+ readonly method: "POST";
1740
+ readonly path: "/v1/agent/x402/sign";
1741
+ readonly pathParams: readonly [];
1742
+ readonly queryParams: readonly [];
1743
+ readonly bodyParams: readonly ["payment_requirements", "pay_to", "amount", "target_url", "max_timeout_seconds"];
1744
+ readonly requestSchema: "agentApiX402SignRequest";
1745
+ readonly bodySchema: "agentApiX402SignRequest";
1746
+ readonly responseSchema: "agentApiX402SignResponse";
1747
+ readonly requestType: "AgentApiX402SignRequest";
1748
+ readonly responseType: "AgentApiX402SignResponse";
1749
+ readonly idempotencyRequired: true;
1750
+ readonly routeClass: "write";
1751
+ readonly description: "Sign a Base USDC x402 payment authorization from an x402 payment requirement.";
1752
+ }, {
1753
+ readonly key: "POST /v1/agent/x402/quote";
1754
+ readonly method: "POST";
1755
+ readonly path: "/v1/agent/x402/quote";
1756
+ readonly pathParams: readonly [];
1757
+ readonly queryParams: readonly [];
1758
+ readonly bodyParams: readonly ["url", "method", "body", "timeout_ms"];
1759
+ readonly requestSchema: "agentApiX402QuoteRequest";
1760
+ readonly bodySchema: "agentApiX402QuoteRequest";
1761
+ readonly responseSchema: "agentApiX402QuoteResponse";
1762
+ readonly requestType: "AgentApiX402QuoteRequest";
1763
+ readonly responseType: "AgentApiX402QuoteResponse";
1764
+ readonly idempotencyRequired: false;
1765
+ readonly routeClass: "simulate";
1766
+ readonly description: "Fetch a URL and return its supported x402 price without paying.";
1767
+ }, {
1768
+ readonly key: "POST /v1/agent/x402/purchase";
1769
+ readonly method: "POST";
1770
+ readonly path: "/v1/agent/x402/purchase";
1771
+ readonly pathParams: readonly [];
1772
+ readonly queryParams: readonly [];
1773
+ readonly bodyParams: readonly ["url", "method", "body", "max_amount"];
1774
+ readonly requestSchema: "agentApiX402PurchaseRequest";
1775
+ readonly bodySchema: "agentApiX402PurchaseRequest";
1776
+ readonly responseSchema: "agentApiX402PurchaseResponse";
1777
+ readonly requestType: "AgentApiX402PurchaseRequest";
1778
+ readonly responseType: "AgentApiX402PurchaseResponse";
1779
+ readonly idempotencyRequired: true;
1780
+ readonly routeClass: "write";
1781
+ readonly description: "Fetch a URL, satisfy an x402 challenge when required, and return the upstream response.";
1782
+ }, {
1783
+ readonly key: "POST /v1/agent/webhooks";
1784
+ readonly method: "POST";
1785
+ readonly path: "/v1/agent/webhooks";
1786
+ readonly pathParams: readonly [];
1787
+ readonly queryParams: readonly [];
1788
+ readonly bodyParams: readonly ["url", "description", "event_types"];
1789
+ readonly requestSchema: "agentApiWebhookCreateRequest";
1790
+ readonly bodySchema: "agentApiWebhookCreateRequest";
1791
+ readonly responseSchema: "agentApiWebhookCreateResponse";
1792
+ readonly requestType: "AgentApiWebhookCreateRequest";
1793
+ readonly responseType: "AgentApiWebhookCreateResponse";
1794
+ readonly idempotencyRequired: true;
1795
+ readonly routeClass: "webhook_management";
1796
+ readonly description: "Create an outbound webhook endpoint.";
1797
+ }, {
1798
+ readonly key: "GET /v1/agent/webhooks";
1799
+ readonly method: "GET";
1800
+ readonly path: "/v1/agent/webhooks";
1801
+ readonly pathParams: readonly [];
1802
+ readonly queryParams: readonly ["cursor", "limit"];
1803
+ readonly bodyParams: readonly [];
1804
+ readonly requestSchema: "agentApiResourceListQuery";
1805
+ readonly bodySchema: null;
1806
+ readonly responseSchema: "agentApiWebhooksResponse";
1807
+ readonly requestType: "AgentApiResourceListQuery";
1808
+ readonly responseType: "AgentApiWebhooksResponse";
1809
+ readonly idempotencyRequired: false;
1810
+ readonly routeClass: "webhook_management";
1811
+ readonly description: "List outbound webhook endpoints for the authenticated agent.";
1812
+ }, {
1813
+ readonly key: "GET /v1/agent/webhooks/{id}";
1814
+ readonly method: "GET";
1815
+ readonly path: "/v1/agent/webhooks/{id}";
1816
+ readonly pathParams: readonly ["id"];
1817
+ readonly queryParams: readonly ["include"];
1818
+ readonly bodyParams: readonly [];
1819
+ readonly requestSchema: "agentApiResourceDetailQuery";
1820
+ readonly bodySchema: null;
1821
+ readonly responseSchema: "agentApiWebhookResponse";
1822
+ readonly requestType: "AgentApiResourceDetailQuery";
1823
+ readonly responseType: "AgentApiWebhookResponse";
1824
+ readonly idempotencyRequired: false;
1825
+ readonly routeClass: "webhook_management";
1826
+ readonly description: "Get one outbound webhook endpoint for the authenticated agent.";
1827
+ }, {
1828
+ readonly key: "PATCH /v1/agent/webhooks/{id}";
1829
+ readonly method: "PATCH";
1830
+ readonly path: "/v1/agent/webhooks/{id}";
1831
+ readonly pathParams: readonly ["id"];
1832
+ readonly queryParams: readonly [];
1833
+ readonly bodyParams: readonly ["url", "description", "event_types", "enabled"];
1834
+ readonly requestSchema: "agentApiWebhookPatchRequest";
1835
+ readonly bodySchema: "agentApiWebhookPatchRequest";
1836
+ readonly responseSchema: "agentApiWebhookResponse";
1837
+ readonly requestType: "AgentApiWebhookPatchRequest";
1838
+ readonly responseType: "AgentApiWebhookResponse";
1839
+ readonly idempotencyRequired: true;
1840
+ readonly routeClass: "webhook_management";
1841
+ readonly description: "Update an outbound webhook endpoint.";
1842
+ }, {
1843
+ readonly key: "DELETE /v1/agent/webhooks/{id}";
1844
+ readonly method: "DELETE";
1845
+ readonly path: "/v1/agent/webhooks/{id}";
1846
+ readonly pathParams: readonly ["id"];
1847
+ readonly queryParams: readonly [];
1848
+ readonly bodyParams: readonly [];
1849
+ readonly requestSchema: "agentApiWebhookDeleteRequest";
1850
+ readonly bodySchema: "agentApiWebhookDeleteRequest";
1851
+ readonly responseSchema: "agentApiWebhookDeleteResponse";
1852
+ readonly requestType: "AgentApiWebhookDeleteRequest";
1853
+ readonly responseType: "AgentApiWebhookDeleteResponse";
1854
+ readonly idempotencyRequired: true;
1855
+ readonly routeClass: "webhook_management";
1856
+ readonly description: "Delete or disable an outbound webhook endpoint.";
1857
+ }, {
1858
+ readonly key: "POST /v1/agent/webhooks/{id}/rotate-secret";
1859
+ readonly method: "POST";
1860
+ readonly path: "/v1/agent/webhooks/{id}/rotate-secret";
1861
+ readonly pathParams: readonly ["id"];
1862
+ readonly queryParams: readonly [];
1863
+ readonly bodyParams: readonly [];
1864
+ readonly requestSchema: "agentApiWebhookRotateSecretRequest";
1865
+ readonly bodySchema: "agentApiWebhookRotateSecretRequest";
1866
+ readonly responseSchema: "agentApiWebhookRotateSecretResponse";
1867
+ readonly requestType: "AgentApiWebhookRotateSecretRequest";
1868
+ readonly responseType: "AgentApiWebhookRotateSecretResponse";
1869
+ readonly idempotencyRequired: true;
1870
+ readonly routeClass: "webhook_management";
1871
+ readonly description: "Rotate an outbound webhook signing secret.";
1872
+ }, {
1873
+ readonly key: "GET /v1/agent/webhooks/{id}/deliveries";
1874
+ readonly method: "GET";
1875
+ readonly path: "/v1/agent/webhooks/{id}/deliveries";
1876
+ readonly pathParams: readonly ["id"];
1877
+ readonly queryParams: readonly ["cursor", "limit", "status", "event_id"];
1878
+ readonly bodyParams: readonly [];
1879
+ readonly requestSchema: "agentApiWebhookDeliveriesQuery";
1880
+ readonly bodySchema: null;
1881
+ readonly responseSchema: "agentApiWebhookDeliveriesResponse";
1882
+ readonly requestType: "AgentApiWebhookDeliveriesQuery";
1883
+ readonly responseType: "AgentApiWebhookDeliveriesResponse";
1884
+ readonly idempotencyRequired: false;
1885
+ readonly routeClass: "read";
1886
+ readonly description: "List webhook delivery attempts for one outbound webhook endpoint.";
1887
+ }, {
1888
+ readonly key: "POST /v1/agent/webhooks/{id}/test";
1889
+ readonly method: "POST";
1890
+ readonly path: "/v1/agent/webhooks/{id}/test";
1891
+ readonly pathParams: readonly ["id"];
1892
+ readonly queryParams: readonly [];
1893
+ readonly bodyParams: readonly [];
1894
+ readonly requestSchema: "agentApiWebhookTestRequest";
1895
+ readonly bodySchema: "agentApiWebhookTestRequest";
1896
+ readonly responseSchema: "agentApiWebhookTestResponse";
1897
+ readonly requestType: "AgentApiWebhookTestRequest";
1898
+ readonly responseType: "AgentApiWebhookTestResponse";
1899
+ readonly idempotencyRequired: true;
1900
+ readonly routeClass: "webhook_management";
1901
+ readonly description: "Send a webhook.test delivery to an outbound webhook endpoint.";
1902
+ }];
1903
+ export type AgentApiEndpoint = (typeof agentApiEndpoints)[number];
1904
+ export type AgentApiEndpointKey = AgentApiEndpoint['key'];
1905
+ export declare function getAgentApiEndpoint(key: AgentApiEndpointKey): AgentApiEndpoint;
1906
+ export type AgentApiPathParamValue = string | number | bigint;
1907
+ export type AgentApiPathParams = Record<string, AgentApiPathParamValue>;
1908
+ export type AgentApiEndpointRequestMap = {
1909
+ readonly 'GET /v1/agent/self': undefined;
1910
+ readonly 'GET /v1/agent/self/usage': undefined;
1911
+ readonly 'GET /v1/agent/capabilities': undefined;
1912
+ readonly 'GET /v1/agent/capabilities.json': undefined;
1913
+ readonly 'GET /v1/agent/account': undefined;
1914
+ readonly 'GET /v1/agent/assets': AgentApiResourceListQuery;
1915
+ readonly 'GET /v1/agent/protocols': AgentApiResourceListQuery;
1916
+ readonly 'GET /v1/agent/balances': AgentApiResourceListQuery;
1917
+ readonly 'GET /v1/agent/balances/cash': AgentApiResourceListQuery;
1918
+ readonly 'GET /v1/agent/activity': AgentApiActivityQuery;
1919
+ readonly 'GET /v1/agent/operations': AgentApiOperationsQuery;
1920
+ readonly 'GET /v1/agent/operations/{id}': AgentApiOperationDetailQuery & {
1921
+ id: AgentApiPathParamValue;
1922
+ };
1923
+ readonly 'GET /v1/agent/recipients': AgentApiRecipientsQuery;
1924
+ readonly 'GET /v1/agent/recipients/{id}': AgentApiRecipientDetailQuery & {
1925
+ id: AgentApiPathParamValue;
1926
+ };
1927
+ readonly 'POST /v1/agent/recipients/resolve': AgentApiRecipientResolveRequest;
1928
+ readonly 'POST /v1/agent/payments': AgentApiPaymentCreateRequest;
1929
+ readonly 'GET /v1/agent/payments': AgentApiResourceListQuery;
1930
+ readonly 'GET /v1/agent/payments/{id}': AgentApiResourceDetailQuery & {
1931
+ id: AgentApiPathParamValue;
1932
+ };
1933
+ readonly 'POST /v1/agent/one-off-payments': AgentApiOneOffPaymentCreateRequest;
1934
+ readonly 'GET /v1/agent/one-off-payments': AgentApiResourceListQuery;
1935
+ readonly 'GET /v1/agent/one-off-payments/{id}': AgentApiResourceDetailQuery & {
1936
+ id: AgentApiPathParamValue;
1937
+ };
1938
+ readonly 'POST /v1/agent/withdrawals/to-bank': AgentApiWithdrawalToBankRequest;
1939
+ readonly 'POST /v1/agent/withdrawals/to-crypto': AgentApiWithdrawalToCryptoRequest;
1940
+ readonly 'GET /v1/agent/withdrawals': AgentApiResourceListQuery;
1941
+ readonly 'GET /v1/agent/withdrawals/{id}': AgentApiResourceDetailQuery & {
1942
+ id: AgentApiPathParamValue;
1943
+ };
1944
+ readonly 'GET /v1/agent/withdrawal-methods': AgentApiResourceListQuery;
1945
+ readonly 'GET /v1/agent/deposit-methods': AgentApiResourceListQuery;
1946
+ readonly 'GET /v1/agent/deposit-address': AgentApiDepositAddressQuery;
1947
+ readonly 'GET /v1/agent/earn': AgentApiResourceListQuery;
1948
+ readonly 'GET /v1/agent/earn/{id}': AgentApiEarnDetailQuery & {
1949
+ id: AgentApiPathParamValue;
1950
+ };
1951
+ readonly 'GET /v1/agent/earn/opportunities': AgentApiResourceListQuery;
1952
+ readonly 'POST /v1/agent/earn/deposit': AgentApiEarnDepositRequest;
1953
+ readonly 'POST /v1/agent/earn/withdraw': AgentApiEarnWithdrawRequest;
1954
+ readonly 'POST /v1/agent/earn/move': AgentApiEarnMoveRequest;
1955
+ readonly 'POST /v1/agent/earn/rewards/claim': AgentApiEarnRewardsClaimRequest;
1956
+ readonly 'GET /v1/agent/borrow': undefined;
1957
+ readonly 'POST /v1/agent/borrow': AgentApiBorrowRequest;
1958
+ readonly 'GET /v1/agent/borrow/collateral': AgentApiResourceListQuery;
1959
+ readonly 'POST /v1/agent/borrow/repay': AgentApiBorrowRepayRequest;
1960
+ readonly 'POST /v1/agent/borrow/deleverage': AgentApiDeleverageRequest;
1961
+ readonly 'POST /v1/agent/borrow/collateral/add': AgentApiCollateralAddRequest;
1962
+ readonly 'POST /v1/agent/borrow/collateral/remove': AgentApiCollateralRemoveRequest;
1963
+ readonly 'POST /v1/agent/conversions/quote': AgentApiConversionQuoteRequest;
1964
+ readonly 'POST /v1/agent/conversions': AgentApiConversionExecuteRequest;
1965
+ readonly 'GET /v1/agent/conversions': AgentApiResourceListQuery;
1966
+ readonly 'GET /v1/agent/conversions/{id}': AgentApiResourceDetailQuery & {
1967
+ id: AgentApiPathParamValue;
1968
+ };
1969
+ readonly 'GET /v1/agent/trusted-destinations': AgentApiResourceListQuery;
1970
+ readonly 'GET /v1/agent/trusted-destinations/{id}': AgentApiRecipientDetailQuery & {
1971
+ id: AgentApiPathParamValue;
1972
+ };
1973
+ readonly 'GET /v1/agent/recurring-payments': AgentApiResourceListQuery;
1974
+ readonly 'GET /v1/agent/recurring-payments/{id}': AgentApiRecipientDetailQuery & {
1975
+ id: AgentApiPathParamValue;
1976
+ };
1977
+ readonly 'POST /v1/agent/simulate': AgentApiSimulateRequest;
1978
+ readonly 'POST /v1/agent/x402/sign': AgentApiX402SignRequest;
1979
+ readonly 'POST /v1/agent/x402/quote': AgentApiX402QuoteRequest;
1980
+ readonly 'POST /v1/agent/x402/purchase': AgentApiX402PurchaseRequest;
1981
+ readonly 'POST /v1/agent/webhooks': AgentApiWebhookCreateRequest;
1982
+ readonly 'GET /v1/agent/webhooks': AgentApiResourceListQuery;
1983
+ readonly 'GET /v1/agent/webhooks/{id}': AgentApiResourceDetailQuery & {
1984
+ id: AgentApiPathParamValue;
1985
+ };
1986
+ readonly 'PATCH /v1/agent/webhooks/{id}': AgentApiWebhookPatchRequest & {
1987
+ id: AgentApiPathParamValue;
1988
+ };
1989
+ readonly 'DELETE /v1/agent/webhooks/{id}': AgentApiWebhookDeleteRequest & {
1990
+ id: AgentApiPathParamValue;
1991
+ };
1992
+ readonly 'POST /v1/agent/webhooks/{id}/rotate-secret': AgentApiWebhookRotateSecretRequest & {
1993
+ id: AgentApiPathParamValue;
1994
+ };
1995
+ readonly 'GET /v1/agent/webhooks/{id}/deliveries': AgentApiWebhookDeliveriesQuery & {
1996
+ id: AgentApiPathParamValue;
1997
+ };
1998
+ readonly 'POST /v1/agent/webhooks/{id}/test': AgentApiWebhookTestRequest & {
1999
+ id: AgentApiPathParamValue;
2000
+ };
2001
+ };
2002
+ export type AgentApiEndpointResponseMap = {
2003
+ readonly 'GET /v1/agent/self': AgentApiSelfResponse;
2004
+ readonly 'GET /v1/agent/self/usage': AgentApiSelfUsageResponse;
2005
+ readonly 'GET /v1/agent/capabilities': AgentApiCapabilitiesResponse;
2006
+ readonly 'GET /v1/agent/capabilities.json': AgentApiCapabilitiesResponse;
2007
+ readonly 'GET /v1/agent/account': AgentApiAccountResponse;
2008
+ readonly 'GET /v1/agent/assets': AgentApiAssetsResponse;
2009
+ readonly 'GET /v1/agent/protocols': AgentApiProtocolsResponse;
2010
+ readonly 'GET /v1/agent/balances': AgentApiBalancesResponse;
2011
+ readonly 'GET /v1/agent/balances/cash': AgentApiBalancesResponse;
2012
+ readonly 'GET /v1/agent/activity': AgentApiActivityResponse;
2013
+ readonly 'GET /v1/agent/operations': AgentApiOperationsResponse;
2014
+ readonly 'GET /v1/agent/operations/{id}': AgentApiOperationResponse;
2015
+ readonly 'GET /v1/agent/recipients': AgentApiRecipientsResponse;
2016
+ readonly 'GET /v1/agent/recipients/{id}': AgentApiRecipientResponse;
2017
+ readonly 'POST /v1/agent/recipients/resolve': AgentApiRecipientResponse;
2018
+ readonly 'POST /v1/agent/payments': AgentApiWriteResponse;
2019
+ readonly 'GET /v1/agent/payments': AgentApiOperationsResponse;
2020
+ readonly 'GET /v1/agent/payments/{id}': AgentApiOperationResponse;
2021
+ readonly 'POST /v1/agent/one-off-payments': AgentApiWriteResponse;
2022
+ readonly 'GET /v1/agent/one-off-payments': AgentApiOperationsResponse;
2023
+ readonly 'GET /v1/agent/one-off-payments/{id}': AgentApiOperationResponse;
2024
+ readonly 'POST /v1/agent/withdrawals/to-bank': AgentApiWriteResponse;
2025
+ readonly 'POST /v1/agent/withdrawals/to-crypto': AgentApiWriteResponse;
2026
+ readonly 'GET /v1/agent/withdrawals': AgentApiOperationsResponse;
2027
+ readonly 'GET /v1/agent/withdrawals/{id}': AgentApiOperationResponse;
2028
+ readonly 'GET /v1/agent/withdrawal-methods': AgentApiWithdrawalMethodsResponse;
2029
+ readonly 'GET /v1/agent/deposit-methods': AgentApiDepositMethodsResponse;
2030
+ readonly 'GET /v1/agent/deposit-address': AgentApiDepositAddressResponse;
2031
+ readonly 'GET /v1/agent/earn': AgentApiEarnResponse;
2032
+ readonly 'GET /v1/agent/earn/{id}': AgentApiEarnPositionResponse;
2033
+ readonly 'GET /v1/agent/earn/opportunities': AgentApiEarnOpportunitiesResponse;
2034
+ readonly 'POST /v1/agent/earn/deposit': AgentApiWriteResponse;
2035
+ readonly 'POST /v1/agent/earn/withdraw': AgentApiWriteResponse;
2036
+ readonly 'POST /v1/agent/earn/move': AgentApiWriteResponse;
2037
+ readonly 'POST /v1/agent/earn/rewards/claim': AgentApiWriteResponse;
2038
+ readonly 'GET /v1/agent/borrow': AgentApiBorrowResponse;
2039
+ readonly 'POST /v1/agent/borrow': AgentApiWriteResponse;
2040
+ readonly 'GET /v1/agent/borrow/collateral': AgentApiCollateralResponse;
2041
+ readonly 'POST /v1/agent/borrow/repay': AgentApiWriteResponse;
2042
+ readonly 'POST /v1/agent/borrow/deleverage': AgentApiWriteResponse;
2043
+ readonly 'POST /v1/agent/borrow/collateral/add': AgentApiWriteResponse;
2044
+ readonly 'POST /v1/agent/borrow/collateral/remove': AgentApiWriteResponse;
2045
+ readonly 'POST /v1/agent/conversions/quote': AgentApiConversionQuoteResponse;
2046
+ readonly 'POST /v1/agent/conversions': AgentApiWriteResponse;
2047
+ readonly 'GET /v1/agent/conversions': AgentApiOperationsResponse;
2048
+ readonly 'GET /v1/agent/conversions/{id}': AgentApiOperationResponse;
2049
+ readonly 'GET /v1/agent/trusted-destinations': AgentApiRecipientsResponse;
2050
+ readonly 'GET /v1/agent/trusted-destinations/{id}': AgentApiRecipientResponse;
2051
+ readonly 'GET /v1/agent/recurring-payments': AgentApiRecipientsResponse;
2052
+ readonly 'GET /v1/agent/recurring-payments/{id}': AgentApiRecipientResponse;
2053
+ readonly 'POST /v1/agent/simulate': AgentApiSimulateResponse;
2054
+ readonly 'POST /v1/agent/x402/sign': AgentApiX402SignResponse;
2055
+ readonly 'POST /v1/agent/x402/quote': AgentApiX402QuoteResponse;
2056
+ readonly 'POST /v1/agent/x402/purchase': AgentApiX402PurchaseResponse;
2057
+ readonly 'POST /v1/agent/webhooks': AgentApiWebhookCreateResponse;
2058
+ readonly 'GET /v1/agent/webhooks': AgentApiWebhooksResponse;
2059
+ readonly 'GET /v1/agent/webhooks/{id}': AgentApiWebhookResponse;
2060
+ readonly 'PATCH /v1/agent/webhooks/{id}': AgentApiWebhookResponse;
2061
+ readonly 'DELETE /v1/agent/webhooks/{id}': AgentApiWebhookDeleteResponse;
2062
+ readonly 'POST /v1/agent/webhooks/{id}/rotate-secret': AgentApiWebhookRotateSecretResponse;
2063
+ readonly 'GET /v1/agent/webhooks/{id}/deliveries': AgentApiWebhookDeliveriesResponse;
2064
+ readonly 'POST /v1/agent/webhooks/{id}/test': AgentApiWebhookTestResponse;
2065
+ };
2066
+ export type AgentApiRequestFor<Key extends AgentApiEndpointKey> = AgentApiEndpointRequestMap[Key];
2067
+ export type AgentApiResponseFor<Key extends AgentApiEndpointKey> = AgentApiEndpointResponseMap[Key];
2068
+ export declare function buildAgentApiPath(pathTemplate: string, pathParams?: AgentApiPathParams): string;
2069
+ //# sourceMappingURL=agent-api.d.ts.map