@distilled.cloud/coinbase 1.0.0-rc.7 → 1.0.0-rc.9

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.
@@ -1,4 +1,4 @@
1
- // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/cdp-sdk/openapi.yaml). Do not edit.
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-coinbase/specs/openapi.yaml). Do not edit.
2
2
  import * as S from "@distilled.cloud/core/schema";
3
3
  import * as Redacted from "effect/Redacted";
4
4
  import * as API from "@distilled.cloud/core/api";
@@ -14,6 +14,8 @@ export const AddEndUserEvmAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struc
14
14
  export const EndUserEvmAccount = /*@__PURE__*/ S.suspend(() => S.Struct({
15
15
  address: S.String,
16
16
  createdAt: S.String,
17
+ exportedAt: S.optional(S.NullOr(S.String)),
18
+ ejectedAt: S.optional(S.NullOr(S.String)),
17
19
  })).annotate({
18
20
  identifier: "EndUserEvmAccount",
19
21
  });
@@ -53,6 +55,8 @@ export const AddEndUserSolanaAccountRequest = /*@__PURE__*/ S.suspend(() => S.St
53
55
  export const EndUserSolanaAccount = /*@__PURE__*/ S.suspend(() => S.Struct({
54
56
  address: S.String,
55
57
  createdAt: S.String,
58
+ exportedAt: S.optional(S.NullOr(S.String)),
59
+ ejectedAt: S.optional(S.NullOr(S.String)),
56
60
  })).annotate({
57
61
  identifier: "EndUserSolanaAccount",
58
62
  });
@@ -61,6 +65,396 @@ export const AddEndUserSolanaAccountResponse = /*@__PURE__*/ S.suspend(() => S.S
61
65
  })).annotate({
62
66
  identifier: "AddEndUserSolanaAccountResponse",
63
67
  });
68
+ export const Metadata = /*@__PURE__*/ S.Record(S.String, S.String);
69
+ export const OperationCustomerDisplay = /*@__PURE__*/ S.suspend(() => S.Struct({
70
+ referenceCode: S.optional(S.String),
71
+ })).annotate({
72
+ identifier: "OperationCustomerDisplay",
73
+ });
74
+ export const AuthorizeCoinbasePaymentSessionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
75
+ paymentSessionId: S.String.pipe(T.Label()),
76
+ metadata: S.optional(Metadata),
77
+ customerDisplay: S.optional(OperationCustomerDisplay),
78
+ externalReferenceId: S.optional(S.String),
79
+ }).pipe(T.Http({
80
+ method: "POST",
81
+ uri: "/v2/payment-sessions/{paymentSessionId}/authorizations/coinbase",
82
+ code: 200,
83
+ }))).annotate({
84
+ identifier: "AuthorizeCoinbasePaymentSessionRequest",
85
+ });
86
+ export const PaymentActionStatus = /*@__PURE__*/ S.String;
87
+ export const PaymentError = /*@__PURE__*/ S.suspend(() => S.Struct({
88
+ code: S.optional(S.String),
89
+ message: S.optional(S.String),
90
+ occurredAt: S.optional(S.String),
91
+ })).annotate({ identifier: "PaymentError" });
92
+ export const PaymentSourceNetwork = /*@__PURE__*/ S.String;
93
+ export const PaymentSourceWallet = /*@__PURE__*/ S.suspend(() => S.Struct({
94
+ address: S.String,
95
+ network: S.optional(PaymentSourceNetwork),
96
+ asset: S.optional(S.String),
97
+ })).annotate({
98
+ identifier: "PaymentSourceWallet",
99
+ });
100
+ export const PaymentSourceCoinbase = /*@__PURE__*/ S.suspend(() => S.Struct({
101
+ coinbaseUserId: S.String,
102
+ })).annotate({
103
+ identifier: "PaymentSourceCoinbase",
104
+ });
105
+ export const PaymentSessionSource =
106
+ /*@__PURE__*/ S.Unknown;
107
+ export const OnchainTransaction = /*@__PURE__*/ S.suspend(() => S.Struct({
108
+ transactionHash: S.String,
109
+ network: PaymentSourceNetwork,
110
+ })).annotate({
111
+ identifier: "OnchainTransaction",
112
+ });
113
+ export const AuthorizationOnchainTransactionsList = /*@__PURE__*/ S.Array(OnchainTransaction);
114
+ export const Authorization = /*@__PURE__*/ S.suspend(() => S.Struct({
115
+ authorizationId: S.optional(S.String),
116
+ paymentSessionId: S.optional(S.String),
117
+ status: S.optional(PaymentActionStatus),
118
+ amount: S.optional(S.String),
119
+ error: S.optional(PaymentError),
120
+ message: S.optional(S.String),
121
+ metadata: S.optional(Metadata),
122
+ externalReferenceId: S.optional(S.String),
123
+ customerDisplay: S.optional(OperationCustomerDisplay),
124
+ source: S.optional(PaymentSessionSource),
125
+ onchainTransactions: S.optional(AuthorizationOnchainTransactionsList),
126
+ createdAt: S.optional(S.String),
127
+ updatedAt: S.optional(S.String),
128
+ })).annotate({ identifier: "Authorization" });
129
+ export const OnchainSignedPayload = /*@__PURE__*/ S.suspend(() => S.Struct({
130
+ payloadId: S.optional(S.String),
131
+ signature: S.optional(S.String),
132
+ })).annotate({
133
+ identifier: "OnchainSignedPayload",
134
+ });
135
+ export const AuthorizeWalletPaymentSessionRequestSignedPayloadsList =
136
+ /*@__PURE__*/ S.Array(OnchainSignedPayload);
137
+ export const AuthorizeWalletPaymentSessionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
138
+ paymentSessionId: S.String.pipe(T.Label()),
139
+ optionId: S.String,
140
+ signedPayloads: AuthorizeWalletPaymentSessionRequestSignedPayloadsList,
141
+ metadata: S.optional(Metadata),
142
+ customerDisplay: S.optional(OperationCustomerDisplay),
143
+ externalReferenceId: S.optional(S.String),
144
+ }).pipe(T.Http({
145
+ method: "POST",
146
+ uri: "/v2/payment-sessions/{paymentSessionId}/authorizations/wallet",
147
+ code: 200,
148
+ }))).annotate({
149
+ identifier: "AuthorizeWalletPaymentSessionRequest",
150
+ });
151
+ export const AuthorizeX402PaymentSessionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
152
+ paymentSessionId: S.String.pipe(T.Label()),
153
+ }).pipe(T.Http({
154
+ method: "POST",
155
+ uri: "/v2/payment-sessions/{paymentSessionId}/authorizations/x402",
156
+ code: 200,
157
+ }))).annotate({
158
+ identifier: "AuthorizeX402PaymentSessionRequest",
159
+ });
160
+ export const CancelPaymentSessionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
161
+ paymentSessionId: S.String.pipe(T.Label()),
162
+ cancellationReason: S.optional(S.String),
163
+ }).pipe(T.Http({
164
+ method: "POST",
165
+ uri: "/v2/payment-sessions/{paymentSessionId}/cancel",
166
+ code: 200,
167
+ }))).annotate({
168
+ identifier: "CancelPaymentSessionRequest",
169
+ });
170
+ export const PaymentTargetNetwork = /*@__PURE__*/ S.String;
171
+ export const PaymentTargetWallet = /*@__PURE__*/ S.suspend(() => S.Struct({
172
+ address: S.String,
173
+ network: S.optional(PaymentTargetNetwork),
174
+ })).annotate({
175
+ identifier: "PaymentTargetWallet",
176
+ });
177
+ export const TransfersAccount = /*@__PURE__*/ S.suspend(() => S.Struct({
178
+ accountId: S.String,
179
+ asset: S.String,
180
+ })).annotate({
181
+ identifier: "TransfersAccount",
182
+ });
183
+ export const PaymentSessionTarget =
184
+ /*@__PURE__*/ S.Unknown;
185
+ export const PaymentExpiries = /*@__PURE__*/ S.suspend(() => S.Struct({
186
+ authorizationExpiresAt: S.optional(S.String),
187
+ captureExpiresAt: S.optional(S.String),
188
+ refundExpiresAt: S.optional(S.String),
189
+ })).annotate({
190
+ identifier: "PaymentExpiries",
191
+ });
192
+ export const PaymentSessionStatus = /*@__PURE__*/ S.String;
193
+ export const PaymentSessionBalances = /*@__PURE__*/ S.suspend(() => S.Struct({
194
+ capturable: S.optional(S.String),
195
+ captured: S.optional(S.String),
196
+ refundable: S.optional(S.String),
197
+ refunded: S.optional(S.String),
198
+ })).annotate({
199
+ identifier: "PaymentSessionBalances",
200
+ });
201
+ export const PaymentSessionAuthorizationsList = /*@__PURE__*/ S.Array(Authorization);
202
+ export const CaptureOnchainTransactionsList = /*@__PURE__*/ S.Array(OnchainTransaction);
203
+ export const Capture = /*@__PURE__*/ S.suspend(() => S.Struct({
204
+ captureId: S.optional(S.String),
205
+ paymentSessionId: S.optional(S.String),
206
+ status: S.optional(PaymentActionStatus),
207
+ amount: S.optional(S.String),
208
+ finalCapture: S.Boolean,
209
+ error: S.optional(PaymentError),
210
+ metadata: S.optional(Metadata),
211
+ externalReferenceId: S.optional(S.String),
212
+ customerDisplay: S.optional(OperationCustomerDisplay),
213
+ onchainTransactions: S.optional(CaptureOnchainTransactionsList),
214
+ createdAt: S.optional(S.String),
215
+ updatedAt: S.optional(S.String),
216
+ })).annotate({ identifier: "Capture" });
217
+ export const PaymentSessionCapturesList = /*@__PURE__*/ S.Array(Capture);
218
+ export const VoidOnchainTransactionsList = /*@__PURE__*/ S.Array(OnchainTransaction);
219
+ export const Void = /*@__PURE__*/ S.suspend(() => S.Struct({
220
+ voidId: S.optional(S.String),
221
+ paymentSessionId: S.optional(S.String),
222
+ status: S.optional(PaymentActionStatus),
223
+ amount: S.optional(S.String),
224
+ error: S.optional(PaymentError),
225
+ metadata: S.optional(Metadata),
226
+ externalReferenceId: S.optional(S.String),
227
+ customerDisplay: S.optional(OperationCustomerDisplay),
228
+ onchainTransactions: S.optional(VoidOnchainTransactionsList),
229
+ createdAt: S.optional(S.String),
230
+ updatedAt: S.optional(S.String),
231
+ })).annotate({ identifier: "Void" });
232
+ export const PaymentSessionVoidsList = /*@__PURE__*/ S.Array(Void);
233
+ export const RefundWallet = /*@__PURE__*/ S.suspend(() => S.Struct({
234
+ address: S.String,
235
+ })).annotate({ identifier: "RefundWallet" });
236
+ export const RefundSource =
237
+ /*@__PURE__*/ S.Unknown;
238
+ export const RefundOnchainTransactionsList = /*@__PURE__*/ S.Array(OnchainTransaction);
239
+ export const Refund = /*@__PURE__*/ S.suspend(() => S.Struct({
240
+ refundId: S.optional(S.String),
241
+ paymentSessionId: S.optional(S.String),
242
+ source: S.optional(RefundSource),
243
+ status: S.optional(PaymentActionStatus),
244
+ amount: S.optional(S.String),
245
+ reason: S.optional(S.String),
246
+ error: S.optional(PaymentError),
247
+ metadata: S.optional(Metadata),
248
+ externalReferenceId: S.optional(S.String),
249
+ customerDisplay: S.optional(OperationCustomerDisplay),
250
+ onchainTransactions: S.optional(RefundOnchainTransactionsList),
251
+ createdAt: S.optional(S.String),
252
+ updatedAt: S.optional(S.String),
253
+ })).annotate({ identifier: "Refund" });
254
+ export const PaymentSessionRefundsList = /*@__PURE__*/ S.Array(Refund);
255
+ export const PaymentRedirect = /*@__PURE__*/ S.suspend(() => S.Struct({
256
+ failureUrl: S.optional(S.String),
257
+ successUrl: S.optional(S.String),
258
+ })).annotate({
259
+ identifier: "PaymentRedirect",
260
+ });
261
+ export const CustomerDisplayDisplayAmount = /*@__PURE__*/ S.suspend(() => S.Struct({
262
+ amount: S.String,
263
+ currency: S.String,
264
+ })).annotate({
265
+ identifier: "CustomerDisplayDisplayAmount",
266
+ });
267
+ export const CustomerDisplay = /*@__PURE__*/ S.suspend(() => S.Struct({
268
+ merchantName: S.optional(S.String),
269
+ displayAmount: S.optional(CustomerDisplayDisplayAmount),
270
+ orderCode: S.optional(S.String),
271
+ })).annotate({
272
+ identifier: "CustomerDisplay",
273
+ });
274
+ export const PaymentSession = /*@__PURE__*/ S.suspend(() => S.Struct({
275
+ paymentSessionId: S.optional(S.String),
276
+ entityId: S.optional(S.String),
277
+ amount: S.optional(S.String),
278
+ asset: S.optional(S.String),
279
+ target: S.optional(PaymentSessionTarget),
280
+ autoCapture: S.optional(S.Boolean),
281
+ expiries: S.optional(PaymentExpiries),
282
+ source: S.optional(PaymentSessionSource),
283
+ status: S.optional(PaymentSessionStatus),
284
+ balances: S.optional(PaymentSessionBalances),
285
+ authorizations: S.optional(PaymentSessionAuthorizationsList),
286
+ captures: S.optional(PaymentSessionCapturesList),
287
+ voids: S.optional(PaymentSessionVoidsList),
288
+ refunds: S.optional(PaymentSessionRefundsList),
289
+ url: S.optional(S.String),
290
+ x402Url: S.optional(S.String),
291
+ redirect: S.optional(PaymentRedirect),
292
+ customerDisplay: S.optional(CustomerDisplay),
293
+ metadata: S.optional(Metadata),
294
+ externalReferenceId: S.optional(S.String),
295
+ cancellationReason: S.optional(S.String),
296
+ createdAt: S.optional(S.String),
297
+ updatedAt: S.optional(S.String),
298
+ })).annotate({ identifier: "PaymentSession" });
299
+ export const CapturePaymentSessionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
300
+ paymentSessionId: S.String.pipe(T.Label()),
301
+ amount: S.optional(S.String),
302
+ finalCapture: S.Boolean,
303
+ metadata: S.optional(Metadata),
304
+ externalReferenceId: S.optional(S.String),
305
+ customerDisplay: S.optional(OperationCustomerDisplay),
306
+ }).pipe(T.Http({
307
+ method: "POST",
308
+ uri: "/v2/payment-sessions/{paymentSessionId}/captures",
309
+ code: 200,
310
+ }))).annotate({
311
+ identifier: "CapturePaymentSessionRequest",
312
+ });
313
+ export const CustomerType = /*@__PURE__*/ S.String;
314
+ export const CapabilityInput = /*@__PURE__*/ S.suspend(() => S.Struct({
315
+ requested: S.Boolean,
316
+ })).annotate({
317
+ identifier: "CapabilityInput",
318
+ });
319
+ export const CapabilitiesMapInput = /*@__PURE__*/ S.suspend(() => S.Struct({
320
+ custodyCrypto: S.optional(CapabilityInput),
321
+ custodyFiat: S.optional(CapabilityInput),
322
+ custodyStablecoin: S.optional(CapabilityInput),
323
+ tradeCrypto: S.optional(CapabilityInput),
324
+ tradeStablecoin: S.optional(CapabilityInput),
325
+ transferCrypto: S.optional(CapabilityInput),
326
+ transferFiat: S.optional(CapabilityInput),
327
+ transferStablecoin: S.optional(CapabilityInput),
328
+ })).annotate({
329
+ identifier: "CapabilitiesMapInput",
330
+ });
331
+ export const IndividualInputAddress = /*@__PURE__*/ S.suspend(() => S.Struct({
332
+ line1: S.optional(S.String),
333
+ line2: S.optional(S.String),
334
+ city: S.optional(S.String),
335
+ state: S.optional(S.String),
336
+ postCode: S.optional(S.String),
337
+ countryCode: S.optional(S.String),
338
+ })).annotate({
339
+ identifier: "IndividualInputAddress",
340
+ });
341
+ export const DateOfBirthLenient = /*@__PURE__*/ S.suspend(() => S.Struct({
342
+ day: S.optional(S.String),
343
+ month: S.optional(S.String),
344
+ year: S.optional(S.String),
345
+ })).annotate({
346
+ identifier: "DateOfBirthLenient",
347
+ });
348
+ export const IndividualInputPurposeOfAccount = /*@__PURE__*/ S.String;
349
+ export const IndividualInputSourceOfFunds = /*@__PURE__*/ S.String;
350
+ export const IndividualInputEmploymentStatus = /*@__PURE__*/ S.String;
351
+ export const IndividualInputOccupation = /*@__PURE__*/ S.String;
352
+ export const IndividualInputExpectedVolume = /*@__PURE__*/ S.String;
353
+ export const IndividualInput = /*@__PURE__*/ S.suspend(() => S.Struct({
354
+ firstName: S.optional(S.String),
355
+ lastName: S.optional(S.String),
356
+ address: S.optional(IndividualInputAddress),
357
+ ssnLast4: S.optional(S.String),
358
+ dateOfBirth: S.optional(DateOfBirthLenient),
359
+ fullSsn: S.optional(S.String),
360
+ citizenship: S.optional(S.String),
361
+ email: S.optional(S.String),
362
+ phoneNumber: S.optional(S.String),
363
+ purposeOfAccount: S.optional(IndividualInputPurposeOfAccount),
364
+ sourceOfFunds: S.optional(IndividualInputSourceOfFunds),
365
+ employmentStatus: S.optional(IndividualInputEmploymentStatus),
366
+ occupation: S.optional(IndividualInputOccupation),
367
+ expectedVolume: S.optional(IndividualInputExpectedVolume),
368
+ })).annotate({
369
+ identifier: "IndividualInput",
370
+ });
371
+ export const CreateCustomerRequestProjectIdsList = /*@__PURE__*/ S.Array(S.String);
372
+ export const TosAcceptance = /*@__PURE__*/ S.suspend(() => S.Struct({
373
+ versionId: S.String,
374
+ language: S.String,
375
+ acceptedAt: S.String,
376
+ })).annotate({ identifier: "TosAcceptance" });
377
+ export const CreateCustomerRequestTosAcceptancesList = /*@__PURE__*/ S.Array(TosAcceptance);
378
+ export const UsW9AttestationForm = /*@__PURE__*/ S.String;
379
+ export const UsW9Attestation = /*@__PURE__*/ S.suspend(() => S.Struct({
380
+ form: UsW9AttestationForm,
381
+ edeliveryConsent: S.Boolean,
382
+ acceptedAt: S.String,
383
+ isExemptBackupWithholding: S.Boolean,
384
+ })).annotate({
385
+ identifier: "UsW9Attestation",
386
+ });
387
+ export const CreateCustomerRequestTaxAttestationsList = /*@__PURE__*/ S.Array(UsW9Attestation);
388
+ export const Compliance = /*@__PURE__*/ S.suspend(() => S.Struct({
389
+ requesterIpAddress: S.optional(S.String),
390
+ })).annotate({ identifier: "Compliance" });
391
+ export const CreateCustomerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
392
+ type: CustomerType,
393
+ capabilities: S.optional(CapabilitiesMapInput),
394
+ individual: S.optional(IndividualInput),
395
+ projectIds: S.optional(CreateCustomerRequestProjectIdsList),
396
+ tosAcceptances: S.optional(CreateCustomerRequestTosAcceptancesList),
397
+ taxAttestations: S.optional(CreateCustomerRequestTaxAttestationsList),
398
+ compliance: S.optional(Compliance),
399
+ }).pipe(T.Http({ method: "POST", uri: "/v2/customers", code: 200 }))).annotate({
400
+ identifier: "CreateCustomerRequest",
401
+ });
402
+ export const CapabilityStatus = /*@__PURE__*/ S.String;
403
+ export const Capability = /*@__PURE__*/ S.suspend(() => S.Struct({
404
+ requested: S.Boolean,
405
+ status: CapabilityStatus,
406
+ })).annotate({ identifier: "Capability" });
407
+ export const CapabilitiesMap = /*@__PURE__*/ S.suspend(() => S.Struct({
408
+ custodyCrypto: S.optional(Capability),
409
+ custodyFiat: S.optional(Capability),
410
+ custodyStablecoin: S.optional(Capability),
411
+ tradeCrypto: S.optional(Capability),
412
+ tradeStablecoin: S.optional(Capability),
413
+ transferCrypto: S.optional(Capability),
414
+ transferFiat: S.optional(Capability),
415
+ transferStablecoin: S.optional(Capability),
416
+ })).annotate({
417
+ identifier: "CapabilitiesMap",
418
+ });
419
+ export const RequirementStatus = /*@__PURE__*/ S.String;
420
+ export const CapabilityName = /*@__PURE__*/ S.String;
421
+ export const RequirementImpactList = /*@__PURE__*/ S.Array(CapabilityName);
422
+ export const TermsOfServiceLanguagesList = /*@__PURE__*/ S.Array(S.String);
423
+ export const TermsOfService = /*@__PURE__*/ S.suspend(() => S.Struct({
424
+ versionId: S.String,
425
+ deadline: S.optional(S.String),
426
+ languages: TermsOfServiceLanguagesList,
427
+ url: S.String,
428
+ })).annotate({ identifier: "TermsOfService" });
429
+ export const RequirementTosVersionsList = /*@__PURE__*/ S.Array(TermsOfService);
430
+ export const TaxForm = /*@__PURE__*/ S.String;
431
+ export const RequirementTaxFormsList = /*@__PURE__*/ S.Array(TaxForm);
432
+ export const Requirement = /*@__PURE__*/ S.suspend(() => S.Struct({
433
+ status: RequirementStatus,
434
+ deadline: S.optional(S.String),
435
+ impact: S.optional(RequirementImpactList),
436
+ tosVersions: S.optional(RequirementTosVersionsList),
437
+ taxForms: S.optional(RequirementTaxFormsList),
438
+ })).annotate({ identifier: "Requirement" });
439
+ export const RequirementsMap = /*@__PURE__*/ S.Record(S.String, Requirement);
440
+ export const Individual = /*@__PURE__*/ S.suspend(() => S.Struct({
441
+ firstName: S.optional(S.String),
442
+ lastName: S.optional(S.String),
443
+ email: S.optional(S.String),
444
+ })).annotate({ identifier: "Individual" });
445
+ export const CustomerProjectIdsList = /*@__PURE__*/ S.Array(S.String);
446
+ export const CustomerTosAcceptancesList = /*@__PURE__*/ S.Array(TosAcceptance);
447
+ export const Customer = /*@__PURE__*/ S.suspend(() => S.Struct({
448
+ customerId: S.String,
449
+ type: CustomerType,
450
+ capabilities: CapabilitiesMap,
451
+ requirements: RequirementsMap,
452
+ createdAt: S.optional(S.String),
453
+ updatedAt: S.optional(S.String),
454
+ individual: S.optional(Individual),
455
+ projectIds: S.optional(CustomerProjectIdsList),
456
+ tosAcceptances: S.optional(CustomerTosAcceptancesList),
457
+ })).annotate({ identifier: "Customer" });
64
458
  export const CreateDelegationForEndUserAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
65
459
  userId: S.String.pipe(T.Label()),
66
460
  address: S.String.pipe(T.Label()),
@@ -80,37 +474,68 @@ export const CreateDelegationForEndUserAccountResponse =
80
474
  })).annotate({
81
475
  identifier: "CreateDelegationForEndUserAccountResponse",
82
476
  });
83
- export const DepositDestinationType = /*@__PURE__*/ S.String;
477
+ export const DepositDestinationTypeCase0 = /*@__PURE__*/ S.String;
478
+ export const DepositDestinationTypeCase1 = /*@__PURE__*/ S.String;
479
+ export const DepositDestinationType =
480
+ /*@__PURE__*/ S.Unknown;
84
481
  export const DepositDestinationTargetAccount = /*@__PURE__*/ S.suspend(() => S.Struct({
85
482
  accountId: S.optional(S.String),
86
483
  asset: S.String,
87
484
  })).annotate({
88
485
  identifier: "DepositDestinationTargetAccount",
89
486
  });
90
- export const Metadata = /*@__PURE__*/ S.Record(S.String, S.String);
91
- export const Network = /*@__PURE__*/ S.String;
487
+ export const PaymentNetwork = /*@__PURE__*/ S.String;
488
+ export const OnchainAddress = /*@__PURE__*/ S.suspend(() => S.Struct({
489
+ address: S.String,
490
+ network: PaymentNetwork,
491
+ destinationTag: S.optional(S.String),
492
+ asset: S.String,
493
+ })).annotate({ identifier: "OnchainAddress" });
494
+ export const DepositDestinationTarget =
495
+ /*@__PURE__*/ S.Unknown;
92
496
  export const CreateDepositDestinationCrypto = /*@__PURE__*/ S.suspend(() => S.Struct({
93
- network: Network,
497
+ network: PaymentNetwork,
94
498
  })).annotate({
95
499
  identifier: "CreateDepositDestinationCrypto",
96
500
  });
97
501
  export const CreateCryptoDepositDestinationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
98
502
  accountId: S.String,
99
503
  type: DepositDestinationType,
100
- target: S.optional(DepositDestinationTargetAccount),
504
+ target: S.optional(DepositDestinationTarget),
101
505
  metadata: S.optional(Metadata),
506
+ compliance: S.optional(Compliance),
102
507
  crypto: CreateDepositDestinationCrypto,
103
508
  })).annotate({
104
509
  identifier: "CreateCryptoDepositDestinationRequest",
105
510
  });
106
- export const CreateDepositDestinationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
107
- body: CreateCryptoDepositDestinationRequest.pipe(T.HttpBody()),
511
+ export const CreateDepositDestinationFiatCurrency = /*@__PURE__*/ S.String;
512
+ export const DepositDestinationPaymentRail = /*@__PURE__*/ S.String;
513
+ export const CreateDepositDestinationFiat = /*@__PURE__*/ S.suspend(() => S.Struct({
514
+ currency: CreateDepositDestinationFiatCurrency,
515
+ paymentRail: S.optional(DepositDestinationPaymentRail),
516
+ })).annotate({
517
+ identifier: "CreateDepositDestinationFiat",
518
+ });
519
+ export const CreateFiatDepositDestinationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
520
+ accountId: S.String,
521
+ type: DepositDestinationType,
522
+ target: S.optional(DepositDestinationTarget),
523
+ metadata: S.optional(Metadata),
524
+ compliance: S.optional(Compliance),
525
+ fiat: CreateDepositDestinationFiat,
526
+ })).annotate({
527
+ identifier: "CreateFiatDepositDestinationRequest",
528
+ });
529
+ export const CreateDepositDestinationRequest =
530
+ /*@__PURE__*/ S.Unknown;
531
+ export const CreateDepositDestinationRequest2 = /*@__PURE__*/ S.suspend(() => S.Struct({
532
+ body: CreateDepositDestinationRequest.pipe(T.HttpBody()),
108
533
  }).pipe(T.Http({ method: "POST", uri: "/v2/deposit-destinations", code: 200 }))).annotate({
109
- identifier: "CreateDepositDestinationRequest",
534
+ identifier: "CreateDepositDestinationRequest2",
110
535
  });
111
536
  export const CryptoDepositDestinationType = /*@__PURE__*/ S.String;
112
537
  export const DepositDestinationCrypto = /*@__PURE__*/ S.suspend(() => S.Struct({
113
- network: Network,
538
+ network: PaymentNetwork,
114
539
  address: S.String,
115
540
  })).annotate({
116
541
  identifier: "DepositDestinationCrypto",
@@ -121,7 +546,7 @@ export const CryptoDepositDestination = /*@__PURE__*/ S.suspend(() => S.Struct({
121
546
  accountId: S.String,
122
547
  type: CryptoDepositDestinationType,
123
548
  crypto: DepositDestinationCrypto,
124
- target: S.optional(DepositDestinationTargetAccount),
549
+ target: S.optional(DepositDestinationTarget),
125
550
  status: DepositDestinationStatus,
126
551
  metadata: S.optional(Metadata),
127
552
  createdAt: S.String,
@@ -129,9 +554,94 @@ export const CryptoDepositDestination = /*@__PURE__*/ S.suspend(() => S.Struct({
129
554
  })).annotate({
130
555
  identifier: "CryptoDepositDestination",
131
556
  });
132
- export const CreateDepositDestinationResponse = /*@__PURE__*/ S.suspend(() => CryptoDepositDestination.pipe(T.RawResponseRoot())).annotate({
557
+ export const FiatDepositDestinationType = /*@__PURE__*/ S.String;
558
+ export const BankAccountUSAccountType = /*@__PURE__*/ S.String;
559
+ export const BankAccountUSCurrency = /*@__PURE__*/ S.String;
560
+ export const BankAccountUSSupportedRailsList = /*@__PURE__*/ S.Array(DepositDestinationPaymentRail);
561
+ export const BankAccountUS = /*@__PURE__*/ S.suspend(() => S.Struct({
562
+ accountType: BankAccountUSAccountType,
563
+ currency: BankAccountUSCurrency,
564
+ bankName: S.String,
565
+ beneficiaryName: S.String,
566
+ routingNumber: S.String,
567
+ accountNumber: S.String,
568
+ bankAddress: S.optional(S.String),
569
+ referenceCode: S.optional(S.String),
570
+ supportedRails: BankAccountUSSupportedRailsList,
571
+ })).annotate({ identifier: "BankAccountUS" });
572
+ export const FiatDepositDestination = /*@__PURE__*/ S.suspend(() => S.Struct({
573
+ depositDestinationId: S.String,
574
+ accountId: S.String,
575
+ type: FiatDepositDestinationType,
576
+ fiat: BankAccountUS,
577
+ target: S.optional(DepositDestinationTarget),
578
+ status: DepositDestinationStatus,
579
+ metadata: S.optional(Metadata),
580
+ createdAt: S.String,
581
+ updatedAt: S.String,
582
+ })).annotate({
583
+ identifier: "FiatDepositDestination",
584
+ });
585
+ export const DepositDestination =
586
+ /*@__PURE__*/ S.Unknown;
587
+ export const CreateDepositDestinationResponse = /*@__PURE__*/ S.suspend(() => DepositDestination.pipe(T.RawResponseRoot())).annotate({
133
588
  identifier: "CreateDepositDestinationResponse",
134
589
  });
590
+ export const DisbursementCoinbaseTarget = /*@__PURE__*/ S.suspend(() => S.Struct({
591
+ coinbaseUserId: S.String,
592
+ })).annotate({
593
+ identifier: "DisbursementCoinbaseTarget",
594
+ });
595
+ export const Network = /*@__PURE__*/ S.String;
596
+ export const DisbursementWalletTarget = /*@__PURE__*/ S.suspend(() => S.Struct({
597
+ address: S.String,
598
+ network: Network,
599
+ })).annotate({
600
+ identifier: "DisbursementWalletTarget",
601
+ });
602
+ export const DisbursementTarget =
603
+ /*@__PURE__*/ S.Unknown;
604
+ export const PhysicalAddress = IndividualInputAddress;
605
+ export const Person = /*@__PURE__*/ S.suspend(() => S.Struct({
606
+ name: S.optional(S.String),
607
+ address: S.optional(IndividualInputAddress),
608
+ })).annotate({ identifier: "Person" });
609
+ export const DisbursementCompliance = /*@__PURE__*/ S.suspend(() => S.Struct({
610
+ requesterIpAddress: S.optional(S.String),
611
+ recipient: S.optional(Person),
612
+ })).annotate({
613
+ identifier: "DisbursementCompliance",
614
+ });
615
+ export const CreateDisbursementRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
616
+ source: TransfersAccount,
617
+ target: DisbursementTarget,
618
+ amount: S.String,
619
+ asset: S.String,
620
+ reason: S.optional(S.String),
621
+ externalReferenceId: S.optional(S.String),
622
+ customerDisplay: S.optional(OperationCustomerDisplay),
623
+ metadata: S.optional(Metadata),
624
+ compliance: S.optional(DisbursementCompliance),
625
+ }).pipe(T.Http({ method: "POST", uri: "/v2/disbursements", code: 200 }))).annotate({
626
+ identifier: "CreateDisbursementRequest",
627
+ });
628
+ export const DisbursementOnchainTransactionsList = /*@__PURE__*/ S.Array(OnchainTransaction);
629
+ export const Disbursement = /*@__PURE__*/ S.suspend(() => S.Struct({
630
+ disbursementId: S.String,
631
+ source: TransfersAccount,
632
+ target: DisbursementTarget,
633
+ amount: S.String,
634
+ asset: S.String,
635
+ status: PaymentActionStatus,
636
+ reason: S.optional(S.String),
637
+ externalReferenceId: S.optional(S.String),
638
+ customerDisplay: S.optional(OperationCustomerDisplay),
639
+ metadata: S.optional(Metadata),
640
+ error: S.optional(PaymentError),
641
+ onchainTransactions: S.optional(DisbursementOnchainTransactionsList),
642
+ createdAt: S.String,
643
+ updatedAt: S.String,
644
+ })).annotate({ identifier: "Disbursement" });
135
645
  export const EmailAuthenticationType = /*@__PURE__*/ S.String;
136
646
  export const EmailAuthentication = /*@__PURE__*/ S.suspend(() => S.Struct({
137
647
  type: EmailAuthenticationType,
@@ -328,11 +838,11 @@ export const EIP712Message = /*@__PURE__*/ S.suspend(() => S.Struct({
328
838
  primaryType: S.String,
329
839
  message: S.Unknown,
330
840
  })).annotate({ identifier: "EIP712Message" });
331
- export const CreateSwapQuoteResponsePermit2 = /*@__PURE__*/ S.suspend(() => S.Struct({
841
+ export const SwapPermit2Approval = /*@__PURE__*/ S.suspend(() => S.Struct({
332
842
  hash: S.String,
333
843
  eip712: EIP712Message,
334
844
  })).annotate({
335
- identifier: "CreateSwapQuoteResponsePermit2",
845
+ identifier: "SwapPermit2Approval",
336
846
  });
337
847
  export const CreateSwapQuoteResponseTransaction = /*@__PURE__*/ S.suspend(() => S.Struct({
338
848
  to: S.String,
@@ -353,28 +863,28 @@ export const CreateSwapQuoteResponseFees = /*@__PURE__*/ S.suspend(() => S.Struc
353
863
  })).annotate({
354
864
  identifier: "CreateSwapQuoteResponseFees",
355
865
  });
356
- export const CreateSwapQuoteResponseIssuesAllowance = /*@__PURE__*/ S.suspend(() => S.Struct({
866
+ export const CommonSwapResponseIssuesAllowance = /*@__PURE__*/ S.suspend(() => S.Struct({
357
867
  currentAllowance: S.String,
358
868
  spender: S.String,
359
869
  })).annotate({
360
- identifier: "CreateSwapQuoteResponseIssuesAllowance",
870
+ identifier: "CommonSwapResponseIssuesAllowance",
361
871
  });
362
- export const CreateSwapQuoteResponseIssuesBalance = /*@__PURE__*/ S.suspend(() => S.Struct({
872
+ export const CommonSwapResponseIssuesBalance = /*@__PURE__*/ S.suspend(() => S.Struct({
363
873
  token: S.String,
364
874
  currentBalance: S.String,
365
875
  requiredBalance: S.String,
366
876
  })).annotate({
367
- identifier: "CreateSwapQuoteResponseIssuesBalance",
877
+ identifier: "CommonSwapResponseIssuesBalance",
368
878
  });
369
879
  export const CreateSwapQuoteResponseIssues = /*@__PURE__*/ S.suspend(() => S.Struct({
370
- allowance: S.NullOr(CreateSwapQuoteResponseIssuesAllowance),
371
- balance: S.NullOr(CreateSwapQuoteResponseIssuesBalance),
880
+ allowance: S.NullOr(CommonSwapResponseIssuesAllowance),
881
+ balance: S.NullOr(CommonSwapResponseIssuesBalance),
372
882
  simulationIncomplete: S.Boolean,
373
883
  })).annotate({
374
884
  identifier: "CreateSwapQuoteResponseIssues",
375
885
  });
376
886
  export const CreateSwapQuoteResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
377
- permit2: S.NullOr(CreateSwapQuoteResponsePermit2),
887
+ permit2: S.NullOr(SwapPermit2Approval),
378
888
  transaction: CreateSwapQuoteResponseTransaction,
379
889
  blockNumber: S.String,
380
890
  toAmount: S.String,
@@ -399,7 +909,9 @@ export const CreateEvmSwapQuoteResponse = /*@__PURE__*/ S.suspend(() => CreateSw
399
909
  identifier: "CreateEvmSwapQuoteResponse",
400
910
  });
401
911
  export const CreateFoundationAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
912
+ owner: S.optional(S.String),
402
913
  name: S.optional(S.String),
914
+ compliance: S.optional(Compliance),
403
915
  }).pipe(T.Http({ method: "POST", uri: "/v2/accounts", code: 200 }))).annotate({
404
916
  identifier: "CreateFoundationAccountRequest",
405
917
  });
@@ -414,24 +926,26 @@ export const Account = /*@__PURE__*/ S.suspend(() => S.Struct({
414
926
  })).annotate({ identifier: "Account" });
415
927
  export const OnrampOrderPaymentMethodTypeId = /*@__PURE__*/ S.String;
416
928
  export const CreateOnrampOrderRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
417
- agreementAcceptedAt: S.String,
929
+ agreementAcceptedAt: S.optional(S.String),
418
930
  destinationAddress: S.String,
419
931
  destinationNetwork: S.String,
420
- email: S.String,
932
+ email: S.optional(S.String),
421
933
  isQuote: S.optional(S.Boolean),
422
934
  partnerOrderRef: S.optional(S.String),
423
935
  partnerUserRef: S.String,
424
936
  paymentAmount: S.optional(S.String),
425
937
  paymentCurrency: S.String,
426
938
  paymentMethod: OnrampOrderPaymentMethodTypeId,
427
- phoneNumber: S.String,
428
- phoneNumberVerifiedAt: S.String,
939
+ phoneNumber: S.optional(S.String),
940
+ phoneNumberVerifiedAt: S.optional(S.String),
429
941
  smsVerificationId: S.optional(S.String),
430
942
  emailVerificationId: S.optional(S.String),
431
943
  purchaseAmount: S.optional(S.String),
432
944
  purchaseCurrency: S.String,
433
945
  clientIp: S.optional(S.String),
434
946
  domain: S.optional(S.String),
947
+ locale: S.optional(S.String),
948
+ userAuthToken: S.optional(S.String),
435
949
  }).pipe(T.Http({ method: "POST", uri: "/v2/onramp/orders", code: 200 }))).annotate({
436
950
  identifier: "CreateOnrampOrderRequest",
437
951
  });
@@ -471,6 +985,7 @@ export const OnrampPaymentLink = /*@__PURE__*/ S.suspend(() => S.Struct({
471
985
  export const CreateOnrampOrderResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
472
986
  order: OnrampOrder,
473
987
  paymentLink: S.optional(OnrampPaymentLink),
988
+ userAuthToken: S.optional(S.String),
474
989
  })).annotate({
475
990
  identifier: "CreateOnrampOrderResponse",
476
991
  });
@@ -511,6 +1026,26 @@ export const CreateOnrampSessionResponse = /*@__PURE__*/ S.suspend(() => S.Struc
511
1026
  })).annotate({
512
1027
  identifier: "CreateOnrampSessionResponse",
513
1028
  });
1029
+ export const PaymentSessionCompliance = /*@__PURE__*/ S.suspend(() => S.Struct({
1030
+ requesterIpAddress: S.optional(S.String),
1031
+ buyer: S.optional(Person),
1032
+ })).annotate({
1033
+ identifier: "PaymentSessionCompliance",
1034
+ });
1035
+ export const CreatePaymentSessionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1036
+ amount: S.String,
1037
+ asset: S.String,
1038
+ target: PaymentSessionTarget,
1039
+ expiries: S.optional(PaymentExpiries),
1040
+ redirect: S.optional(PaymentRedirect),
1041
+ autoCapture: S.optional(S.Boolean),
1042
+ externalReferenceId: S.optional(S.String),
1043
+ customerDisplay: S.optional(CustomerDisplay),
1044
+ metadata: S.optional(Metadata),
1045
+ compliance: S.optional(PaymentSessionCompliance),
1046
+ }).pipe(T.Http({ method: "POST", uri: "/v2/payment-sessions", code: 200 }))).annotate({
1047
+ identifier: "CreatePaymentSessionRequest",
1048
+ });
514
1049
  export const CreatePolicyRequestScope = /*@__PURE__*/ S.String;
515
1050
  export const SignEvmTransactionRuleAction = /*@__PURE__*/ S.String;
516
1051
  export const SignEvmTransactionRuleOperation = /*@__PURE__*/ S.String;
@@ -1179,24 +1714,10 @@ export const EvmUserOperation = /*@__PURE__*/ S.suspend(() => S.Struct({
1179
1714
  })).annotate({
1180
1715
  identifier: "EvmUserOperation",
1181
1716
  });
1182
- export const TransfersAccount = /*@__PURE__*/ S.suspend(() => S.Struct({
1183
- accountId: S.String,
1184
- asset: S.String,
1185
- })).annotate({
1186
- identifier: "TransfersAccount",
1187
- });
1188
1717
  export const PaymentMethod = /*@__PURE__*/ S.suspend(() => S.Struct({
1189
1718
  paymentMethodId: S.String,
1190
1719
  asset: S.String,
1191
1720
  })).annotate({ identifier: "PaymentMethod" });
1192
- export const CreateTransferSource =
1193
- /*@__PURE__*/ S.Unknown;
1194
- export const OnchainAddress = /*@__PURE__*/ S.suspend(() => S.Struct({
1195
- address: S.String,
1196
- network: Network,
1197
- destinationTag: S.optional(S.String),
1198
- asset: S.String,
1199
- })).annotate({ identifier: "OnchainAddress" });
1200
1721
  export const EmailInstrument = /*@__PURE__*/ S.suspend(() => S.Struct({
1201
1722
  email: S.String,
1202
1723
  asset: S.String,
@@ -1206,21 +1727,11 @@ export const EmailInstrument = /*@__PURE__*/ S.suspend(() => S.Struct({
1206
1727
  export const TransferTarget =
1207
1728
  /*@__PURE__*/ S.Unknown;
1208
1729
  export const CreateTransferRequestAmountType = /*@__PURE__*/ S.String;
1209
- export const PhysicalAddress = /*@__PURE__*/ S.suspend(() => S.Struct({
1210
- line1: S.optional(S.String),
1211
- line2: S.optional(S.String),
1212
- city: S.optional(S.String),
1213
- state: S.optional(S.String),
1214
- postCode: S.optional(S.String),
1215
- countryCode: S.optional(S.String),
1216
- })).annotate({
1217
- identifier: "PhysicalAddress",
1218
- });
1219
1730
  export const TravelRuleOriginatorVirtualAssetServiceProvider =
1220
1731
  /*@__PURE__*/ S.suspend(() => S.Struct({
1221
- name: S.optional(S.String),
1222
- address: S.optional(PhysicalAddress),
1223
1732
  identifier: S.optional(S.String),
1733
+ name: S.optional(S.String),
1734
+ address: S.optional(IndividualInputAddress),
1224
1735
  })).annotate({
1225
1736
  identifier: "TravelRuleOriginatorVirtualAssetServiceProvider",
1226
1737
  });
@@ -1230,9 +1741,9 @@ export const DateOfBirth = /*@__PURE__*/ S.suspend(() => S.Struct({
1230
1741
  year: S.optional(S.String),
1231
1742
  })).annotate({ identifier: "DateOfBirth" });
1232
1743
  export const TravelRuleOriginator = /*@__PURE__*/ S.suspend(() => S.Struct({
1233
- financialInstitution: S.optional(S.String),
1234
1744
  name: S.optional(S.String),
1235
- address: S.optional(PhysicalAddress),
1745
+ address: S.optional(IndividualInputAddress),
1746
+ financialInstitution: S.optional(S.String),
1236
1747
  virtualAssetServiceProvider: S.optional(TravelRuleOriginatorVirtualAssetServiceProvider),
1237
1748
  personalId: S.optional(S.String),
1238
1749
  dateOfBirth: S.optional(DateOfBirth),
@@ -1241,9 +1752,9 @@ export const TravelRuleOriginator = /*@__PURE__*/ S.suspend(() => S.Struct({
1241
1752
  });
1242
1753
  export const TravelRuleBeneficiaryWalletType = /*@__PURE__*/ S.String;
1243
1754
  export const TravelRuleBeneficiary = /*@__PURE__*/ S.suspend(() => S.Struct({
1244
- financialInstitution: S.optional(S.String),
1245
1755
  name: S.optional(S.String),
1246
- address: S.optional(PhysicalAddress),
1756
+ address: S.optional(IndividualInputAddress),
1757
+ financialInstitution: S.optional(S.String),
1247
1758
  walletType: S.optional(TravelRuleBeneficiaryWalletType),
1248
1759
  })).annotate({
1249
1760
  identifier: "TravelRuleBeneficiary",
@@ -1251,11 +1762,12 @@ export const TravelRuleBeneficiary = /*@__PURE__*/ S.suspend(() => S.Struct({
1251
1762
  export const TravelRule = /*@__PURE__*/ S.suspend(() => S.Struct({
1252
1763
  isSelf: S.optional(S.Boolean),
1253
1764
  isIntermediary: S.optional(S.Boolean),
1765
+ attestVerifiedWalletOwnership: S.optional(S.Boolean),
1254
1766
  originator: S.optional(TravelRuleOriginator),
1255
1767
  beneficiary: S.optional(TravelRuleBeneficiary),
1256
1768
  })).annotate({ identifier: "TravelRule" });
1257
1769
  export const CreateTransferRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1258
- source: CreateTransferSource,
1770
+ source: TransfersAccount,
1259
1771
  target: TransferTarget,
1260
1772
  amount: S.String,
1261
1773
  asset: S.String,
@@ -1268,12 +1780,24 @@ export const CreateTransferRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1268
1780
  identifier: "CreateTransferRequest",
1269
1781
  });
1270
1782
  export const TransferStatus = /*@__PURE__*/ S.String;
1271
- export const OriginatingBankAccountUS = /*@__PURE__*/ S.suspend(() => S.Struct({
1272
- bankName: S.String,
1273
- accountLast4: S.String,
1783
+ export const AchDepositSource = /*@__PURE__*/ S.suspend(() => S.Struct({
1274
1784
  currency: S.String,
1785
+ companyName: S.String,
1786
+ companyEntryDescription: S.String,
1787
+ individualIdentificationNumber: S.optional(S.String),
1275
1788
  })).annotate({
1276
- identifier: "OriginatingBankAccountUS",
1789
+ identifier: "AchDepositSource",
1790
+ });
1791
+ export const FedwireDepositSourceOriginatorToBeneficiaryList =
1792
+ /*@__PURE__*/ S.Array(S.String);
1793
+ export const FedwireDepositSource = /*@__PURE__*/ S.suspend(() => S.Struct({
1794
+ currency: S.String,
1795
+ omad: S.String,
1796
+ accountNumber: S.String,
1797
+ originatorName: S.String,
1798
+ originatorToBeneficiary: S.optional(FedwireDepositSourceOriginatorToBeneficiaryList),
1799
+ })).annotate({
1800
+ identifier: "FedwireDepositSource",
1277
1801
  });
1278
1802
  export const TransferSource =
1279
1803
  /*@__PURE__*/ S.Unknown;
@@ -1307,7 +1831,7 @@ export const DepositDestinationReference = /*@__PURE__*/ S.suspend(() => S.Struc
1307
1831
  });
1308
1832
  export const TransferDetailsOnchainTransactionsItem = /*@__PURE__*/ S.suspend(() => S.Struct({
1309
1833
  transactionHash: S.String,
1310
- network: Network,
1834
+ network: PaymentNetwork,
1311
1835
  })).annotate({
1312
1836
  identifier: "TransferDetailsOnchainTransactionsItem",
1313
1837
  });
@@ -1391,6 +1915,44 @@ export const WebhookSubscriptionResponse = /*@__PURE__*/ S.suspend(() => S.Struc
1391
1915
  })).annotate({
1392
1916
  identifier: "WebhookSubscriptionResponse",
1393
1917
  });
1918
+ export const CreateX402DiscoveryMcpRequestJsonrpc = /*@__PURE__*/ S.String;
1919
+ export const CreateX402DiscoveryMcpRequestId =
1920
+ /*@__PURE__*/ S.Unknown;
1921
+ export const CreateX402DiscoveryMcpRequestParamsMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
1922
+ export const CreateX402DiscoveryMcpRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1923
+ jsonrpc: CreateX402DiscoveryMcpRequestJsonrpc,
1924
+ id: S.optional(CreateX402DiscoveryMcpRequestId),
1925
+ method: S.String,
1926
+ params: S.optional(CreateX402DiscoveryMcpRequestParamsMap),
1927
+ }).pipe(T.Http({ method: "POST", uri: "/v2/x402/discovery/mcp", code: 200 }))).annotate({
1928
+ identifier: "CreateX402DiscoveryMcpRequest",
1929
+ });
1930
+ export const X402McpResponseJsonrpc = /*@__PURE__*/ S.String;
1931
+ export const X402McpResponseId =
1932
+ /*@__PURE__*/ S.Unknown;
1933
+ export const X402McpResponseResultMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
1934
+ export const X402McpErrorDataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
1935
+ export const X402McpError = /*@__PURE__*/ S.suspend(() => S.Struct({
1936
+ code: S.Number,
1937
+ message: S.String,
1938
+ data: S.optional(X402McpErrorDataMap),
1939
+ })).annotate({ identifier: "X402McpError" });
1940
+ export const X402McpResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1941
+ jsonrpc: X402McpResponseJsonrpc,
1942
+ id: S.optional(S.NullOr(X402McpResponseId)),
1943
+ result: S.optional(X402McpResponseResultMap),
1944
+ error: S.optional(X402McpError),
1945
+ })).annotate({
1946
+ identifier: "X402McpResponse",
1947
+ });
1948
+ export const DeleteCustomerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1949
+ customerId: S.String.pipe(T.Label()),
1950
+ }).pipe(T.Http({ method: "DELETE", uri: "/v2/customers/{customerId}", code: 200 }))).annotate({
1951
+ identifier: "DeleteCustomerRequest",
1952
+ });
1953
+ export const DeleteCustomerResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1954
+ identifier: "DeleteCustomerResponse",
1955
+ });
1394
1956
  export const DeletePolicyRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1395
1957
  policyId: S.String.pipe(T.Label()),
1396
1958
  }).pipe(T.Http({
@@ -1510,6 +2072,11 @@ export const Balance = /*@__PURE__*/ S.suspend(() => S.Struct({
1510
2072
  asset: BalancesAsset,
1511
2073
  amount: BalanceAmountMap,
1512
2074
  })).annotate({ identifier: "Balance" });
2075
+ export const GetCustomerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2076
+ customerId: S.String.pipe(T.Label()),
2077
+ }).pipe(T.Http({ method: "GET", uri: "/v2/customers/{customerId}", code: 200 }))).annotate({
2078
+ identifier: "GetCustomerRequest",
2079
+ });
1513
2080
  export const GetDelegationForEndUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1514
2081
  userId: S.String.pipe(T.Label()),
1515
2082
  projectID: S.optional(S.String.pipe(T.Query())),
@@ -1541,17 +2108,26 @@ export const GetDelegationForEndUserAccountResponse = /*@__PURE__*/ S.suspend(()
1541
2108
  })).annotate({
1542
2109
  identifier: "GetDelegationForEndUserAccountResponse",
1543
2110
  });
1544
- export const GetDepositDestinationByIdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2111
+ export const GetDepositDestinationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1545
2112
  depositDestinationId: S.String.pipe(T.Label()),
1546
2113
  }).pipe(T.Http({
1547
2114
  method: "GET",
1548
2115
  uri: "/v2/deposit-destinations/{depositDestinationId}",
1549
2116
  code: 200,
1550
2117
  }))).annotate({
1551
- identifier: "GetDepositDestinationByIdRequest",
2118
+ identifier: "GetDepositDestinationRequest",
1552
2119
  });
1553
- export const GetDepositDestinationByIdResponse = /*@__PURE__*/ S.suspend(() => CryptoDepositDestination.pipe(T.RawResponseRoot())).annotate({
1554
- identifier: "GetDepositDestinationByIdResponse",
2120
+ export const GetDepositDestinationResponse = /*@__PURE__*/ S.suspend(() => DepositDestination.pipe(T.RawResponseRoot())).annotate({
2121
+ identifier: "GetDepositDestinationResponse",
2122
+ });
2123
+ export const GetDisbursementRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2124
+ disbursementId: S.String.pipe(T.Label()),
2125
+ }).pipe(T.Http({
2126
+ method: "GET",
2127
+ uri: "/v2/disbursements/{disbursementId}",
2128
+ code: 200,
2129
+ }))).annotate({
2130
+ identifier: "GetDisbursementRequest",
1555
2131
  });
1556
2132
  export const GetEndUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1557
2133
  userId: S.String.pipe(T.Label()),
@@ -1572,15 +2148,14 @@ export const GetEvmAccountByNameRequest = /*@__PURE__*/ S.suspend(() => S.Struct
1572
2148
  }))).annotate({
1573
2149
  identifier: "GetEvmAccountByNameRequest",
1574
2150
  });
1575
- export const GetEvmEip7702DelegationOperationByIdRequest =
1576
- /*@__PURE__*/ S.suspend(() => S.Struct({
2151
+ export const GetEvmEip7702DelegationOperationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1577
2152
  delegationOperationId: S.String.pipe(T.Label()),
1578
2153
  }).pipe(T.Http({
1579
2154
  method: "GET",
1580
2155
  uri: "/v2/evm/eip7702/delegation-operations/{delegationOperationId}",
1581
2156
  code: 200,
1582
2157
  }))).annotate({
1583
- identifier: "GetEvmEip7702DelegationOperationByIdRequest",
2158
+ identifier: "GetEvmEip7702DelegationOperationRequest",
1584
2159
  });
1585
2160
  export const EvmEip7702DelegationOperationStatus = /*@__PURE__*/ S.String;
1586
2161
  export const EvmEip7702DelegationOperation = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -1623,8 +2198,6 @@ export const GetEvmSwapPriceRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1623
2198
  identifier: "GetEvmSwapPriceRequest",
1624
2199
  });
1625
2200
  export const GetSwapPriceResponseFees = CreateSwapQuoteResponseFees;
1626
- export const GetSwapPriceResponseIssuesAllowance = CreateSwapQuoteResponseIssuesAllowance;
1627
- export const GetSwapPriceResponseIssuesBalance = CreateSwapQuoteResponseIssuesBalance;
1628
2201
  export const GetSwapPriceResponseIssues = CreateSwapQuoteResponseIssues;
1629
2202
  export const GetSwapPriceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1630
2203
  blockNumber: S.String,
@@ -1651,15 +2224,15 @@ export const GetFoundationAccountByIdRequest = /*@__PURE__*/ S.suspend(() => S.S
1651
2224
  }).pipe(T.Http({ method: "GET", uri: "/v2/accounts/{accountId}", code: 200 }))).annotate({
1652
2225
  identifier: "GetFoundationAccountByIdRequest",
1653
2226
  });
1654
- export const GetOnrampOrderByIdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2227
+ export const GetOnrampOrderRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1655
2228
  orderId: S.String.pipe(T.Label()),
1656
2229
  }).pipe(T.Http({ method: "GET", uri: "/v2/onramp/orders/{orderId}", code: 200 }))).annotate({
1657
- identifier: "GetOnrampOrderByIdRequest",
2230
+ identifier: "GetOnrampOrderRequest",
1658
2231
  });
1659
- export const GetOnrampOrderByIdResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2232
+ export const GetOnrampOrderResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1660
2233
  order: OnrampOrder,
1661
2234
  })).annotate({
1662
- identifier: "GetOnrampOrderByIdResponse",
2235
+ identifier: "GetOnrampOrderResponse",
1663
2236
  });
1664
2237
  export const OnrampUserIdType = /*@__PURE__*/ S.String;
1665
2238
  export const GetOnrampUserLimitsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -1679,8 +2252,28 @@ export const OnrampUserLimit = /*@__PURE__*/ S.suspend(() => S.Struct({
1679
2252
  identifier: "OnrampUserLimit",
1680
2253
  });
1681
2254
  export const GetOnrampUserLimitsResponseLimitsList = /*@__PURE__*/ S.Array(OnrampUserLimit);
2255
+ export const OnrampLimitUpgradeStatus = /*@__PURE__*/ S.String;
2256
+ export const OnrampLimitUpgradeIdentityFieldKey = /*@__PURE__*/ S.String;
2257
+ export const OnrampLimitUpgradeOptionFieldsList = /*@__PURE__*/ S.Array(OnrampLimitUpgradeIdentityFieldKey);
2258
+ export const OnrampLimitUpgrade = /*@__PURE__*/ S.suspend(() => S.Struct({
2259
+ limitType: OnrampLimitType,
2260
+ maxUpgrade: S.String,
2261
+ })).annotate({
2262
+ identifier: "OnrampLimitUpgrade",
2263
+ });
2264
+ export const OnrampLimitUpgradeOptionLimitUpgradesList = /*@__PURE__*/ S.Array(OnrampLimitUpgrade);
2265
+ export const OnrampLimitUpgradeOption = /*@__PURE__*/ S.suspend(() => S.Struct({
2266
+ status: OnrampLimitUpgradeStatus,
2267
+ fields: OnrampLimitUpgradeOptionFieldsList,
2268
+ limitUpgrades: OnrampLimitUpgradeOptionLimitUpgradesList,
2269
+ })).annotate({
2270
+ identifier: "OnrampLimitUpgradeOption",
2271
+ });
2272
+ export const GetOnrampUserLimitsResponseLimitUpgradeOptionsList =
2273
+ /*@__PURE__*/ S.Array(OnrampLimitUpgradeOption);
1682
2274
  export const GetOnrampUserLimitsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1683
2275
  limits: GetOnrampUserLimitsResponseLimitsList,
2276
+ limitUpgradeOptions: S.optional(GetOnrampUserLimitsResponseLimitUpgradeOptionsList),
1684
2277
  })).annotate({
1685
2278
  identifier: "GetOnrampUserLimitsResponse",
1686
2279
  });
@@ -1750,6 +2343,55 @@ export const PaymentMethodsPaymentMethod =
1750
2343
  export const GetPaymentMethodResponse = /*@__PURE__*/ S.suspend(() => PaymentMethodsPaymentMethod.pipe(T.RawResponseRoot())).annotate({
1751
2344
  identifier: "GetPaymentMethodResponse",
1752
2345
  });
2346
+ export const GetPaymentSessionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2347
+ paymentSessionId: S.String.pipe(T.Label()),
2348
+ }).pipe(T.Http({
2349
+ method: "GET",
2350
+ uri: "/v2/payment-sessions/{paymentSessionId}",
2351
+ code: 200,
2352
+ }))).annotate({
2353
+ identifier: "GetPaymentSessionRequest",
2354
+ });
2355
+ export const GetPaymentSessionAuthorizationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2356
+ paymentSessionId: S.String.pipe(T.Label()),
2357
+ authorizationId: S.String.pipe(T.Label()),
2358
+ }).pipe(T.Http({
2359
+ method: "GET",
2360
+ uri: "/v2/payment-sessions/{paymentSessionId}/authorizations/{authorizationId}",
2361
+ code: 200,
2362
+ }))).annotate({
2363
+ identifier: "GetPaymentSessionAuthorizationRequest",
2364
+ });
2365
+ export const GetPaymentSessionCaptureRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2366
+ paymentSessionId: S.String.pipe(T.Label()),
2367
+ captureId: S.String.pipe(T.Label()),
2368
+ }).pipe(T.Http({
2369
+ method: "GET",
2370
+ uri: "/v2/payment-sessions/{paymentSessionId}/captures/{captureId}",
2371
+ code: 200,
2372
+ }))).annotate({
2373
+ identifier: "GetPaymentSessionCaptureRequest",
2374
+ });
2375
+ export const GetPaymentSessionRefundRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2376
+ paymentSessionId: S.String.pipe(T.Label()),
2377
+ refundId: S.String.pipe(T.Label()),
2378
+ }).pipe(T.Http({
2379
+ method: "GET",
2380
+ uri: "/v2/payment-sessions/{paymentSessionId}/refunds/{refundId}",
2381
+ code: 200,
2382
+ }))).annotate({
2383
+ identifier: "GetPaymentSessionRefundRequest",
2384
+ });
2385
+ export const GetPaymentSessionVoidRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2386
+ paymentSessionId: S.String.pipe(T.Label()),
2387
+ voidId: S.String.pipe(T.Label()),
2388
+ }).pipe(T.Http({
2389
+ method: "GET",
2390
+ uri: "/v2/payment-sessions/{paymentSessionId}/voids/{voidId}",
2391
+ code: 200,
2392
+ }))).annotate({
2393
+ identifier: "GetPaymentSessionVoidRequest",
2394
+ });
1753
2395
  export const GetPolicyByIdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1754
2396
  policyId: S.String.pipe(T.Label()),
1755
2397
  }).pipe(T.Http({
@@ -1809,10 +2451,10 @@ export const OnchainDataSchemaResponse = /*@__PURE__*/ S.suspend(() => S.Struct(
1809
2451
  })).annotate({
1810
2452
  identifier: "OnchainDataSchemaResponse",
1811
2453
  });
1812
- export const GetTransferByIdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2454
+ export const GetTransferRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1813
2455
  transferId: S.String.pipe(T.Label()),
1814
2456
  }).pipe(T.Http({ method: "GET", uri: "/v2/transfers/{transferId}", code: 200 }))).annotate({
1815
- identifier: "GetTransferByIdRequest",
2457
+ identifier: "GetTransferRequest",
1816
2458
  });
1817
2459
  export const GetUserOperationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1818
2460
  address: S.String.pipe(T.Label()),
@@ -1824,6 +2466,101 @@ export const GetUserOperationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1824
2466
  }))).annotate({
1825
2467
  identifier: "GetUserOperationRequest",
1826
2468
  });
2469
+ export const GetWalletAuthorizationOptionsRequestAddressesList =
2470
+ /*@__PURE__*/ S.Array(S.String);
2471
+ export const GetWalletAuthorizationOptionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2472
+ paymentSessionId: S.String.pipe(T.Label()),
2473
+ addresses: GetWalletAuthorizationOptionsRequestAddressesList.pipe(T.Query()),
2474
+ network: S.optional(PaymentSourceNetwork.pipe(T.Query())),
2475
+ asset: S.optional(S.String.pipe(T.Query())),
2476
+ }).pipe(T.Http({
2477
+ method: "GET",
2478
+ uri: "/v2/payment-sessions/{paymentSessionId}/authorizations/wallet/options",
2479
+ code: 200,
2480
+ }))).annotate({
2481
+ identifier: "GetWalletAuthorizationOptionsRequest",
2482
+ });
2483
+ export const EIP3009PayloadType = /*@__PURE__*/ S.String;
2484
+ export const EIP3009Payload = /*@__PURE__*/ S.suspend(() => S.Struct({
2485
+ payloadId: S.String,
2486
+ type: EIP3009PayloadType,
2487
+ data: EIP712Message,
2488
+ })).annotate({ identifier: "EIP3009Payload" });
2489
+ export const Permit2PayloadType = /*@__PURE__*/ S.String;
2490
+ export const Permit2Payload = /*@__PURE__*/ S.suspend(() => S.Struct({
2491
+ payloadId: S.String,
2492
+ type: Permit2PayloadType,
2493
+ data: EIP712Message,
2494
+ })).annotate({ identifier: "Permit2Payload" });
2495
+ export const Erc20ApprovalPayloadType = /*@__PURE__*/ S.String;
2496
+ export const Erc20ApprovalPayloadData = /*@__PURE__*/ S.suspend(() => S.Struct({
2497
+ chainId: S.Number,
2498
+ to: S.String,
2499
+ data: S.String,
2500
+ value: S.String,
2501
+ gas: S.optional(S.String),
2502
+ maxFeePerGas: S.optional(S.String),
2503
+ maxPriorityFeePerGas: S.optional(S.String),
2504
+ })).annotate({
2505
+ identifier: "Erc20ApprovalPayloadData",
2506
+ });
2507
+ export const Erc20ApprovalPayload = /*@__PURE__*/ S.suspend(() => S.Struct({
2508
+ payloadId: S.String,
2509
+ type: Erc20ApprovalPayloadType,
2510
+ data: Erc20ApprovalPayloadData,
2511
+ })).annotate({
2512
+ identifier: "Erc20ApprovalPayload",
2513
+ });
2514
+ export const SpendPermissionPayloadType = /*@__PURE__*/ S.String;
2515
+ export const SpendPermissionPayload = /*@__PURE__*/ S.suspend(() => S.Struct({
2516
+ payloadId: S.String,
2517
+ type: SpendPermissionPayloadType,
2518
+ data: EIP712Message,
2519
+ })).annotate({
2520
+ identifier: "SpendPermissionPayload",
2521
+ });
2522
+ export const OnchainSignaturePayload =
2523
+ /*@__PURE__*/ S.Unknown;
2524
+ export const WalletAuthorizationOptionPayloadsList = /*@__PURE__*/ S.Array(OnchainSignaturePayload);
2525
+ export const WalletAuthorizationOption = /*@__PURE__*/ S.suspend(() => S.Struct({
2526
+ optionId: S.String,
2527
+ source: PaymentSourceWallet,
2528
+ amount: S.String,
2529
+ asset: S.String,
2530
+ network: PaymentSourceNetwork,
2531
+ payloads: WalletAuthorizationOptionPayloadsList,
2532
+ })).annotate({
2533
+ identifier: "WalletAuthorizationOption",
2534
+ });
2535
+ export const WalletAuthorizationOptionsResponseOptionsList =
2536
+ /*@__PURE__*/ S.Array(WalletAuthorizationOption);
2537
+ export const IneligibleWalletAuthorizationAddressCode = /*@__PURE__*/ S.String;
2538
+ export const WalletAuthorizationFundsRequirement = /*@__PURE__*/ S.suspend(() => S.Struct({
2539
+ asset: S.String,
2540
+ network: PaymentSourceNetwork,
2541
+ currentBalance: S.String,
2542
+ requiredBalance: S.String,
2543
+ })).annotate({
2544
+ identifier: "WalletAuthorizationFundsRequirement",
2545
+ });
2546
+ export const IneligibleWalletAuthorizationAddressFundsRequiredList =
2547
+ /*@__PURE__*/ S.Array(WalletAuthorizationFundsRequirement);
2548
+ export const IneligibleWalletAuthorizationAddress = /*@__PURE__*/ S.suspend(() => S.Struct({
2549
+ address: S.String,
2550
+ code: IneligibleWalletAuthorizationAddressCode,
2551
+ message: S.String,
2552
+ fundsRequired: S.optional(IneligibleWalletAuthorizationAddressFundsRequiredList),
2553
+ })).annotate({
2554
+ identifier: "IneligibleWalletAuthorizationAddress",
2555
+ });
2556
+ export const WalletAuthorizationOptionsResponseIneligibleAddressesList =
2557
+ /*@__PURE__*/ S.Array(IneligibleWalletAuthorizationAddress);
2558
+ export const WalletAuthorizationOptionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2559
+ options: WalletAuthorizationOptionsResponseOptionsList,
2560
+ ineligibleAddresses: WalletAuthorizationOptionsResponseIneligibleAddressesList,
2561
+ })).annotate({
2562
+ identifier: "WalletAuthorizationOptionsResponse",
2563
+ });
1827
2564
  export const GetWebhookSubscriptionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1828
2565
  subscriptionId: S.String.pipe(T.Label()),
1829
2566
  }).pipe(T.Http({
@@ -1833,6 +2570,90 @@ export const GetWebhookSubscriptionRequest = /*@__PURE__*/ S.suspend(() => S.Str
1833
2570
  }))).annotate({
1834
2571
  identifier: "GetWebhookSubscriptionRequest",
1835
2572
  });
2573
+ export const GetX402BundleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2574
+ bundleSlug: S.String.pipe(T.Label()),
2575
+ }).pipe(T.Http({
2576
+ method: "GET",
2577
+ uri: "/v2/x402/discovery/bundles/{bundleSlug}",
2578
+ code: 200,
2579
+ }))).annotate({
2580
+ identifier: "GetX402BundleRequest",
2581
+ });
2582
+ export const X402DiscoveryResourceType = /*@__PURE__*/ S.String;
2583
+ export const X402Version = /*@__PURE__*/ S.Number;
2584
+ export const X402V2PaymentRequirementsScheme = /*@__PURE__*/ S.String;
2585
+ export const X402V2Network = /*@__PURE__*/ S.String;
2586
+ export const X402V2PaymentRequirementsExtraMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
2587
+ export const X402V2PaymentRequirements = /*@__PURE__*/ S.suspend(() => S.Struct({
2588
+ scheme: X402V2PaymentRequirementsScheme,
2589
+ network: X402V2Network,
2590
+ asset: S.String,
2591
+ amount: S.String,
2592
+ payTo: S.String,
2593
+ maxTimeoutSeconds: S.Number,
2594
+ extra: S.optional(X402V2PaymentRequirementsExtraMap),
2595
+ })).annotate({
2596
+ identifier: "X402V2PaymentRequirements",
2597
+ });
2598
+ export const X402V1PaymentRequirementsScheme = /*@__PURE__*/ S.String;
2599
+ export const X402V1Network = /*@__PURE__*/ S.String;
2600
+ export const X402V1PaymentRequirementsOutputSchemaMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
2601
+ export const X402V1PaymentRequirementsExtraMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
2602
+ export const X402V1PaymentRequirements = /*@__PURE__*/ S.suspend(() => S.Struct({
2603
+ scheme: X402V1PaymentRequirementsScheme,
2604
+ network: X402V1Network,
2605
+ maxAmountRequired: S.String,
2606
+ resource: S.String,
2607
+ description: S.String,
2608
+ mimeType: S.String,
2609
+ outputSchema: S.optional(X402V1PaymentRequirementsOutputSchemaMap),
2610
+ payTo: S.String,
2611
+ maxTimeoutSeconds: S.Number,
2612
+ asset: S.String,
2613
+ extra: S.optional(X402V1PaymentRequirementsExtraMap),
2614
+ })).annotate({
2615
+ identifier: "X402V1PaymentRequirements",
2616
+ });
2617
+ export const X402PaymentRequirements =
2618
+ /*@__PURE__*/ S.Unknown;
2619
+ export const X402DiscoveryResourceAcceptsList = /*@__PURE__*/ S.Array(X402PaymentRequirements);
2620
+ export const X402DiscoveryResourceExtensionsMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
2621
+ export const X402ResourceQuality = /*@__PURE__*/ S.suspend(() => S.Struct({
2622
+ l30DaysTotalCalls: S.optional(S.Number),
2623
+ l30DaysUniquePayers: S.optional(S.Number),
2624
+ lastCalledAt: S.optional(S.String),
2625
+ })).annotate({
2626
+ identifier: "X402ResourceQuality",
2627
+ });
2628
+ export const X402DiscoveryResourceTagsList = /*@__PURE__*/ S.Array(S.String);
2629
+ export const X402DiscoveryResourceBundleSlugsList = /*@__PURE__*/ S.Array(S.String);
2630
+ export const X402DiscoveryResource = /*@__PURE__*/ S.suspend(() => S.Struct({
2631
+ resource: S.String,
2632
+ description: S.optional(S.String),
2633
+ type: X402DiscoveryResourceType,
2634
+ x402Version: X402Version,
2635
+ lastUpdated: S.optional(S.String),
2636
+ accepts: S.optional(X402DiscoveryResourceAcceptsList),
2637
+ extensions: S.optional(X402DiscoveryResourceExtensionsMap),
2638
+ quality: S.optional(X402ResourceQuality),
2639
+ serviceName: S.optional(S.String),
2640
+ tags: S.optional(X402DiscoveryResourceTagsList),
2641
+ bundleSlugs: S.optional(X402DiscoveryResourceBundleSlugsList),
2642
+ iconUrl: S.optional(S.String),
2643
+ curated: S.optional(S.Boolean),
2644
+ skillUrl: S.optional(S.String),
2645
+ })).annotate({
2646
+ identifier: "X402DiscoveryResource",
2647
+ });
2648
+ export const GetX402BundleResponseResourcesList = /*@__PURE__*/ S.Array(X402DiscoveryResource);
2649
+ export const GetX402BundleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2650
+ slug: S.String,
2651
+ name: S.String,
2652
+ description: S.optional(S.String),
2653
+ resources: GetX402BundleResponseResourcesList,
2654
+ })).annotate({
2655
+ identifier: "GetX402BundleResponse",
2656
+ });
1836
2657
  export const ImportEndUserRequestKeyType = /*@__PURE__*/ S.String;
1837
2658
  export const ImportEndUserRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1838
2659
  userId: S.String,
@@ -1886,6 +2707,26 @@ export const ListBalancesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1886
2707
  })).annotate({
1887
2708
  identifier: "ListBalancesResponse",
1888
2709
  });
2710
+ export const ListCoinbaseAccountBalancesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/v2/coinbase-accounts/balances", code: 200 }))).annotate({
2711
+ identifier: "ListCoinbaseAccountBalancesRequest",
2712
+ });
2713
+ export const BalancesBalancesList = /*@__PURE__*/ S.Array(Balance);
2714
+ export const Balances = /*@__PURE__*/ S.suspend(() => S.Struct({
2715
+ balances: BalancesBalancesList,
2716
+ })).annotate({ identifier: "Balances" });
2717
+ export const ListCustomersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2718
+ pageSize: S.optional(S.Number.pipe(T.Query())),
2719
+ pageToken: S.optional(S.String.pipe(T.Query())),
2720
+ }).pipe(T.Http({ method: "GET", uri: "/v2/customers", code: 200 }))).annotate({
2721
+ identifier: "ListCustomersRequest",
2722
+ });
2723
+ export const ListCustomersResponseCustomersList = /*@__PURE__*/ S.Array(Customer);
2724
+ export const ListCustomersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2725
+ customers: ListCustomersResponseCustomersList,
2726
+ nextPageToken: S.optional(S.String),
2727
+ })).annotate({
2728
+ identifier: "ListCustomersResponse",
2729
+ });
1889
2730
  export const ListDataTokenBalancesRequestNetwork = /*@__PURE__*/ S.String;
1890
2731
  export const ListDataTokenBalancesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
1891
2732
  network: ListDataTokenBalancesRequestNetwork.pipe(T.Label()),
@@ -1932,13 +2773,29 @@ export const ListDepositDestinationsRequest = /*@__PURE__*/ S.suspend(() => S.St
1932
2773
  identifier: "ListDepositDestinationsRequest",
1933
2774
  });
1934
2775
  export const ListDepositDestinationsResponseDepositDestinationsList =
1935
- /*@__PURE__*/ S.Array(CryptoDepositDestination);
2776
+ /*@__PURE__*/ S.Array(DepositDestination);
1936
2777
  export const ListDepositDestinationsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
1937
2778
  depositDestinations: ListDepositDestinationsResponseDepositDestinationsList,
1938
2779
  nextPageToken: S.optional(S.String),
1939
2780
  })).annotate({
1940
2781
  identifier: "ListDepositDestinationsResponse",
1941
2782
  });
2783
+ export const ListDisbursementsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2784
+ pageSize: S.optional(S.Number.pipe(T.Query())),
2785
+ pageToken: S.optional(S.String.pipe(T.Query())),
2786
+ status: S.optional(PaymentActionStatus.pipe(T.Query())),
2787
+ sourceAccountId: S.optional(S.String.pipe(T.Query())),
2788
+ externalReferenceId: S.optional(S.String.pipe(T.Query())),
2789
+ }).pipe(T.Http({ method: "GET", uri: "/v2/disbursements", code: 200 }))).annotate({
2790
+ identifier: "ListDisbursementsRequest",
2791
+ });
2792
+ export const ListDisbursementsResponseDisbursementsList = /*@__PURE__*/ S.Array(Disbursement);
2793
+ export const ListDisbursementsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2794
+ disbursements: ListDisbursementsResponseDisbursementsList,
2795
+ nextPageToken: S.optional(S.String),
2796
+ })).annotate({
2797
+ identifier: "ListDisbursementsResponse",
2798
+ });
1942
2799
  export const ListEndUsersRequestSortItem = /*@__PURE__*/ S.String;
1943
2800
  export const ListEndUsersRequestSortList = /*@__PURE__*/ S.Array(ListEndUsersRequestSortItem);
1944
2801
  export const ListEndUsersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -2001,9 +2858,11 @@ export const ListEvmTokenBalancesResponse = /*@__PURE__*/ S.suspend(() => S.Stru
2001
2858
  })).annotate({
2002
2859
  identifier: "ListEvmTokenBalancesResponse",
2003
2860
  });
2861
+ export const ListFoundationAccountsRequestOwnerList = /*@__PURE__*/ S.Array(S.String);
2004
2862
  export const ListFoundationAccountsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2005
2863
  pageSize: S.optional(S.Number.pipe(T.Query())),
2006
2864
  pageToken: S.optional(S.String.pipe(T.Query())),
2865
+ owner: S.optional(ListFoundationAccountsRequestOwnerList.pipe(T.Query())),
2007
2866
  type: S.optional(AccountType.pipe(T.Query())),
2008
2867
  }).pipe(T.Http({ method: "GET", uri: "/v2/accounts", code: 200 }))).annotate({
2009
2868
  identifier: "ListFoundationAccountsRequest",
@@ -2029,6 +2888,95 @@ export const ListPaymentMethodsResponse = /*@__PURE__*/ S.suspend(() => S.Struct
2029
2888
  })).annotate({
2030
2889
  identifier: "ListPaymentMethodsResponse",
2031
2890
  });
2891
+ export const ListPaymentSessionAuthorizationsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2892
+ paymentSessionId: S.String.pipe(T.Label()),
2893
+ pageSize: S.optional(S.Number.pipe(T.Query())),
2894
+ pageToken: S.optional(S.String.pipe(T.Query())),
2895
+ }).pipe(T.Http({
2896
+ method: "GET",
2897
+ uri: "/v2/payment-sessions/{paymentSessionId}/authorizations",
2898
+ code: 200,
2899
+ }))).annotate({
2900
+ identifier: "ListPaymentSessionAuthorizationsRequest",
2901
+ });
2902
+ export const ListPaymentSessionAuthorizationsResponseAuthorizationsList =
2903
+ /*@__PURE__*/ S.Array(Authorization);
2904
+ export const ListPaymentSessionAuthorizationsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2905
+ authorizations: ListPaymentSessionAuthorizationsResponseAuthorizationsList,
2906
+ nextPageToken: S.optional(S.String),
2907
+ })).annotate({
2908
+ identifier: "ListPaymentSessionAuthorizationsResponse",
2909
+ });
2910
+ export const ListPaymentSessionCapturesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2911
+ paymentSessionId: S.String.pipe(T.Label()),
2912
+ pageSize: S.optional(S.Number.pipe(T.Query())),
2913
+ pageToken: S.optional(S.String.pipe(T.Query())),
2914
+ }).pipe(T.Http({
2915
+ method: "GET",
2916
+ uri: "/v2/payment-sessions/{paymentSessionId}/captures",
2917
+ code: 200,
2918
+ }))).annotate({
2919
+ identifier: "ListPaymentSessionCapturesRequest",
2920
+ });
2921
+ export const ListPaymentSessionCapturesResponseCapturesList =
2922
+ /*@__PURE__*/ S.Array(Capture);
2923
+ export const ListPaymentSessionCapturesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2924
+ captures: ListPaymentSessionCapturesResponseCapturesList,
2925
+ nextPageToken: S.optional(S.String),
2926
+ })).annotate({
2927
+ identifier: "ListPaymentSessionCapturesResponse",
2928
+ });
2929
+ export const ListPaymentSessionRefundsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2930
+ paymentSessionId: S.String.pipe(T.Label()),
2931
+ pageSize: S.optional(S.Number.pipe(T.Query())),
2932
+ pageToken: S.optional(S.String.pipe(T.Query())),
2933
+ }).pipe(T.Http({
2934
+ method: "GET",
2935
+ uri: "/v2/payment-sessions/{paymentSessionId}/refunds",
2936
+ code: 200,
2937
+ }))).annotate({
2938
+ identifier: "ListPaymentSessionRefundsRequest",
2939
+ });
2940
+ export const ListPaymentSessionRefundsResponseRefundsList =
2941
+ /*@__PURE__*/ S.Array(Refund);
2942
+ export const ListPaymentSessionRefundsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2943
+ refunds: ListPaymentSessionRefundsResponseRefundsList,
2944
+ nextPageToken: S.optional(S.String),
2945
+ })).annotate({
2946
+ identifier: "ListPaymentSessionRefundsResponse",
2947
+ });
2948
+ export const ListPaymentSessionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2949
+ pageSize: S.optional(S.Number.pipe(T.Query())),
2950
+ pageToken: S.optional(S.String.pipe(T.Query())),
2951
+ }).pipe(T.Http({ method: "GET", uri: "/v2/payment-sessions", code: 200 }))).annotate({
2952
+ identifier: "ListPaymentSessionsRequest",
2953
+ });
2954
+ export const ListPaymentSessionsResponsePaymentSessionsList =
2955
+ /*@__PURE__*/ S.Array(PaymentSession);
2956
+ export const ListPaymentSessionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2957
+ paymentSessions: ListPaymentSessionsResponsePaymentSessionsList,
2958
+ nextPageToken: S.optional(S.String),
2959
+ })).annotate({
2960
+ identifier: "ListPaymentSessionsResponse",
2961
+ });
2962
+ export const ListPaymentSessionVoidsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2963
+ paymentSessionId: S.String.pipe(T.Label()),
2964
+ pageSize: S.optional(S.Number.pipe(T.Query())),
2965
+ pageToken: S.optional(S.String.pipe(T.Query())),
2966
+ }).pipe(T.Http({
2967
+ method: "GET",
2968
+ uri: "/v2/payment-sessions/{paymentSessionId}/voids",
2969
+ code: 200,
2970
+ }))).annotate({
2971
+ identifier: "ListPaymentSessionVoidsRequest",
2972
+ });
2973
+ export const ListPaymentSessionVoidsResponseVoidsList = /*@__PURE__*/ S.Array(Void);
2974
+ export const ListPaymentSessionVoidsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2975
+ voids: ListPaymentSessionVoidsResponseVoidsList,
2976
+ nextPageToken: S.optional(S.String),
2977
+ })).annotate({
2978
+ identifier: "ListPaymentSessionVoidsResponse",
2979
+ });
2032
2980
  export const ListPoliciesRequestScope = /*@__PURE__*/ S.String;
2033
2981
  export const ListPoliciesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2034
2982
  pageSize: S.optional(S.Number.pipe(T.Query())),
@@ -2215,100 +3163,52 @@ export const WebhookEventResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2215
3163
  retryCount: S.Number,
2216
3164
  response: S.optional(WebhookEventResponseDetail),
2217
3165
  })).annotate({
2218
- identifier: "WebhookEventResponse",
2219
- });
2220
- export const WebhookEventListResponseEventsList = /*@__PURE__*/ S.Array(WebhookEventResponse);
2221
- export const WebhookEventListResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2222
- events: WebhookEventListResponseEventsList,
2223
- })).annotate({
2224
- identifier: "WebhookEventListResponse",
2225
- });
2226
- export const ListWebhookSubscriptionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2227
- pageSize: S.optional(S.Number.pipe(T.Query())),
2228
- pageToken: S.optional(S.String.pipe(T.Query())),
2229
- }).pipe(T.Http({
2230
- method: "GET",
2231
- uri: "/v2/data/webhooks/subscriptions",
2232
- code: 200,
2233
- }))).annotate({
2234
- identifier: "ListWebhookSubscriptionsRequest",
2235
- });
2236
- export const ListWebhookSubscriptionsResponseSubscriptionsList =
2237
- /*@__PURE__*/ S.Array(WebhookSubscriptionResponse);
2238
- export const ListWebhookSubscriptionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2239
- subscriptions: ListWebhookSubscriptionsResponseSubscriptionsList,
2240
- nextPageToken: S.optional(S.String),
2241
- })).annotate({
2242
- identifier: "ListWebhookSubscriptionsResponse",
2243
- });
2244
- export const ListX402DiscoveryMerchantRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2245
- payTo: S.String.pipe(T.Query()),
2246
- limit: S.optional(S.Number.pipe(T.Query())),
2247
- offset: S.optional(S.Number.pipe(T.Query())),
2248
- }).pipe(T.Http({ method: "GET", uri: "/v2/x402/discovery/merchant", code: 200 }))).annotate({
2249
- identifier: "ListX402DiscoveryMerchantRequest",
2250
- });
2251
- export const X402Version = /*@__PURE__*/ S.Number;
2252
- export const X402DiscoveryResourceType = /*@__PURE__*/ S.String;
2253
- export const X402V2PaymentRequirementsScheme = /*@__PURE__*/ S.String;
2254
- export const X402V2Network = /*@__PURE__*/ S.String;
2255
- export const X402V2PaymentRequirementsExtraMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
2256
- export const X402V2PaymentRequirements = /*@__PURE__*/ S.suspend(() => S.Struct({
2257
- scheme: X402V2PaymentRequirementsScheme,
2258
- network: X402V2Network,
2259
- asset: S.String,
2260
- amount: S.String,
2261
- payTo: S.String,
2262
- maxTimeoutSeconds: S.Number,
2263
- extra: S.optional(X402V2PaymentRequirementsExtraMap),
2264
- })).annotate({
2265
- identifier: "X402V2PaymentRequirements",
2266
- });
2267
- export const X402V1PaymentRequirementsScheme = /*@__PURE__*/ S.String;
2268
- export const X402V1Network = /*@__PURE__*/ S.String;
2269
- export const X402V1PaymentRequirementsOutputSchemaMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
2270
- export const X402V1PaymentRequirementsExtraMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
2271
- export const X402V1PaymentRequirements = /*@__PURE__*/ S.suspend(() => S.Struct({
2272
- scheme: X402V1PaymentRequirementsScheme,
2273
- network: X402V1Network,
2274
- maxAmountRequired: S.String,
2275
- resource: S.String,
2276
- description: S.String,
2277
- mimeType: S.String,
2278
- outputSchema: S.optional(X402V1PaymentRequirementsOutputSchemaMap),
2279
- payTo: S.String,
2280
- maxTimeoutSeconds: S.Number,
2281
- asset: S.String,
2282
- extra: S.optional(X402V1PaymentRequirementsExtraMap),
2283
- })).annotate({
2284
- identifier: "X402V1PaymentRequirements",
3166
+ identifier: "WebhookEventResponse",
2285
3167
  });
2286
- export const X402PaymentRequirements =
2287
- /*@__PURE__*/ S.Unknown;
2288
- export const X402DiscoveryResourceAcceptsList = /*@__PURE__*/ S.Array(X402PaymentRequirements);
2289
- export const X402DiscoveryResourceExtensionsMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
2290
- export const X402ResourceQuality = /*@__PURE__*/ S.suspend(() => S.Struct({
2291
- l30DaysTotalCalls: S.optional(S.Number),
2292
- l30DaysUniquePayers: S.optional(S.Number),
2293
- lastCalledAt: S.optional(S.String),
3168
+ export const WebhookEventListResponseEventsList = /*@__PURE__*/ S.Array(WebhookEventResponse);
3169
+ export const WebhookEventListResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
3170
+ events: WebhookEventListResponseEventsList,
2294
3171
  })).annotate({
2295
- identifier: "X402ResourceQuality",
3172
+ identifier: "WebhookEventListResponse",
2296
3173
  });
2297
- export const X402DiscoveryResourceTagsList = /*@__PURE__*/ S.Array(S.String);
2298
- export const X402DiscoveryResource = /*@__PURE__*/ S.suspend(() => S.Struct({
2299
- resource: S.String,
3174
+ export const ListWebhookSubscriptionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
3175
+ pageSize: S.optional(S.Number.pipe(T.Query())),
3176
+ pageToken: S.optional(S.String.pipe(T.Query())),
3177
+ }).pipe(T.Http({
3178
+ method: "GET",
3179
+ uri: "/v2/data/webhooks/subscriptions",
3180
+ code: 200,
3181
+ }))).annotate({
3182
+ identifier: "ListWebhookSubscriptionsRequest",
3183
+ });
3184
+ export const ListWebhookSubscriptionsResponseSubscriptionsList =
3185
+ /*@__PURE__*/ S.Array(WebhookSubscriptionResponse);
3186
+ export const ListWebhookSubscriptionsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
3187
+ subscriptions: ListWebhookSubscriptionsResponseSubscriptionsList,
3188
+ nextPageToken: S.optional(S.String),
3189
+ })).annotate({
3190
+ identifier: "ListWebhookSubscriptionsResponse",
3191
+ });
3192
+ export const ListX402BundlesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({}).pipe(T.Http({ method: "GET", uri: "/v2/x402/discovery/bundles", code: 200 }))).annotate({
3193
+ identifier: "ListX402BundlesRequest",
3194
+ });
3195
+ export const X402Bundle = /*@__PURE__*/ S.suspend(() => S.Struct({
3196
+ slug: S.String,
3197
+ name: S.String,
2300
3198
  description: S.optional(S.String),
2301
- type: X402DiscoveryResourceType,
2302
- x402Version: X402Version,
2303
- lastUpdated: S.optional(S.String),
2304
- accepts: S.optional(X402DiscoveryResourceAcceptsList),
2305
- extensions: S.optional(X402DiscoveryResourceExtensionsMap),
2306
- quality: S.optional(X402ResourceQuality),
2307
- serviceName: S.optional(S.String),
2308
- tags: S.optional(X402DiscoveryResourceTagsList),
2309
- iconUrl: S.optional(S.String),
3199
+ })).annotate({ identifier: "X402Bundle" });
3200
+ export const X402BundlesResponseBundlesList = /*@__PURE__*/ S.Array(X402Bundle);
3201
+ export const X402BundlesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
3202
+ bundles: X402BundlesResponseBundlesList,
2310
3203
  })).annotate({
2311
- identifier: "X402DiscoveryResource",
3204
+ identifier: "X402BundlesResponse",
3205
+ });
3206
+ export const ListX402DiscoveryMerchantRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
3207
+ payTo: S.String.pipe(T.Query()),
3208
+ limit: S.optional(S.Number.pipe(T.Query())),
3209
+ offset: S.optional(S.Number.pipe(T.Query())),
3210
+ }).pipe(T.Http({ method: "GET", uri: "/v2/x402/discovery/merchant", code: 200 }))).annotate({
3211
+ identifier: "ListX402DiscoveryMerchantRequest",
2312
3212
  });
2313
3213
  export const X402DiscoveryMerchantResponseResourcesList = /*@__PURE__*/ S.Array(X402DiscoveryResource);
2314
3214
  export const X402DiscoveryMerchantResponsePagination = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -2363,36 +3263,6 @@ export const LookupEndUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2363
3263
  })).annotate({
2364
3264
  identifier: "LookupEndUserResponse",
2365
3265
  });
2366
- export const PostX402DiscoveryMcpRequestJsonrpc = /*@__PURE__*/ S.String;
2367
- export const PostX402DiscoveryMcpRequestId =
2368
- /*@__PURE__*/ S.Unknown;
2369
- export const PostX402DiscoveryMcpRequestParamsMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
2370
- export const PostX402DiscoveryMcpRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2371
- jsonrpc: PostX402DiscoveryMcpRequestJsonrpc,
2372
- id: S.optional(PostX402DiscoveryMcpRequestId),
2373
- method: S.String,
2374
- params: S.optional(PostX402DiscoveryMcpRequestParamsMap),
2375
- }).pipe(T.Http({ method: "POST", uri: "/v2/x402/discovery/mcp", code: 200 }))).annotate({
2376
- identifier: "PostX402DiscoveryMcpRequest",
2377
- });
2378
- export const X402McpResponseJsonrpc = /*@__PURE__*/ S.String;
2379
- export const X402McpResponseId =
2380
- /*@__PURE__*/ S.Unknown;
2381
- export const X402McpResponseResultMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
2382
- export const X402McpErrorDataMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
2383
- export const X402McpError = /*@__PURE__*/ S.suspend(() => S.Struct({
2384
- code: S.Number,
2385
- message: S.String,
2386
- data: S.optional(X402McpErrorDataMap),
2387
- })).annotate({ identifier: "X402McpError" });
2388
- export const X402McpResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2389
- jsonrpc: X402McpResponseJsonrpc,
2390
- id: S.optional(S.NullOr(X402McpResponseId)),
2391
- result: S.optional(X402McpResponseResultMap),
2392
- error: S.optional(X402McpError),
2393
- })).annotate({
2394
- identifier: "X402McpResponse",
2395
- });
2396
3266
  export const PrepareAndSendUserOperationRequestCallsList =
2397
3267
  /*@__PURE__*/ S.Array(EvmCall);
2398
3268
  export const PaymasterContext = /*@__PURE__*/ S.Record(S.String, S.Unknown);
@@ -2424,6 +3294,21 @@ export const PrepareUserOperationRequest = /*@__PURE__*/ S.suspend(() => S.Struc
2424
3294
  }))).annotate({
2425
3295
  identifier: "PrepareUserOperationRequest",
2426
3296
  });
3297
+ export const RefundPaymentSessionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
3298
+ paymentSessionId: S.String.pipe(T.Label()),
3299
+ source: RefundSource,
3300
+ amount: S.optional(S.String),
3301
+ reason: S.optional(S.String),
3302
+ metadata: S.optional(Metadata),
3303
+ externalReferenceId: S.optional(S.String),
3304
+ customerDisplay: S.optional(OperationCustomerDisplay),
3305
+ }).pipe(T.Http({
3306
+ method: "POST",
3307
+ uri: "/v2/payment-sessions/{paymentSessionId}/refunds",
3308
+ code: 200,
3309
+ }))).annotate({
3310
+ identifier: "RefundPaymentSessionRequest",
3311
+ });
2427
3312
  export const RequestEvmFaucetRequestNetwork = /*@__PURE__*/ S.String;
2428
3313
  export const RequestEvmFaucetRequestToken = /*@__PURE__*/ S.String;
2429
3314
  export const RequestEvmFaucetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -2438,6 +3323,7 @@ export const RequestEvmFaucetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
2438
3323
  })).annotate({
2439
3324
  identifier: "RequestEvmFaucetResponse",
2440
3325
  });
3326
+ export const OnrampLimitUpgradeInteractionMode = /*@__PURE__*/ S.String;
2441
3327
  export const OnrampLimitUpgradeIdentityFields = /*@__PURE__*/ S.suspend(() => S.Struct({
2442
3328
  ssnLast4: S.optional(S.String),
2443
3329
  dateOfBirth: S.optional(DateOfBirth),
@@ -2447,12 +3333,16 @@ export const OnrampLimitUpgradeIdentityFields = /*@__PURE__*/ S.suspend(() => S.
2447
3333
  export const RequestLimitsUpgradeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2448
3334
  userId: S.String,
2449
3335
  userIdType: OnrampUserIdType,
3336
+ interactionMode: S.optional(OnrampLimitUpgradeInteractionMode),
2450
3337
  fields: S.optional(OnrampLimitUpgradeIdentityFields),
2451
3338
  }).pipe(T.Http({ method: "POST", uri: "/v2/onramp/limits/upgrade", code: 200 }))).annotate({
2452
3339
  identifier: "RequestLimitsUpgradeRequest",
2453
3340
  });
2454
- export const RequestLimitsUpgradeResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
2455
- identifier: "RequestLimitsUpgradeResponse",
3341
+ export const OnrampLimitUpgradeEmbeddedResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
3342
+ upgradeUrl: S.String,
3343
+ expiresAt: S.String,
3344
+ })).annotate({
3345
+ identifier: "OnrampLimitUpgradeEmbeddedResponse",
2456
3346
  });
2457
3347
  export const RequestSolanaFaucetRequestToken = /*@__PURE__*/ S.String;
2458
3348
  export const RequestSolanaFaucetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
@@ -2550,6 +3440,8 @@ export const OnchainDataResult = /*@__PURE__*/ S.suspend(() => S.Struct({
2550
3440
  identifier: "OnchainDataResult",
2551
3441
  });
2552
3442
  export const SearchX402ResourcesRequestExtensionsList = /*@__PURE__*/ S.Array(S.String);
3443
+ export const SearchX402ResourcesRequestTagsList = /*@__PURE__*/ S.Array(S.String);
3444
+ export const SearchX402ResourcesRequestBundleSlugsList = /*@__PURE__*/ S.Array(S.String);
2553
3445
  export const SearchX402ResourcesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
2554
3446
  query: S.optional(S.String.pipe(T.Query())),
2555
3447
  network: S.optional(S.String.pipe(T.Query())),
@@ -2559,6 +3451,9 @@ export const SearchX402ResourcesRequest = /*@__PURE__*/ S.suspend(() => S.Struct
2559
3451
  urlSubstring: S.optional(S.String.pipe(T.Query())),
2560
3452
  maxUsdPrice: S.optional(S.String.pipe(T.Query())),
2561
3453
  extensions: S.optional(SearchX402ResourcesRequestExtensionsList.pipe(T.Query())),
3454
+ tags: S.optional(SearchX402ResourcesRequestTagsList.pipe(T.Query())),
3455
+ bundleSlugs: S.optional(SearchX402ResourcesRequestBundleSlugsList.pipe(T.Query())),
3456
+ curatedOnly: S.optional(S.Boolean.pipe(T.Query())),
2562
3457
  limit: S.optional(S.Number.pipe(T.Query())),
2563
3458
  }).pipe(T.Http({ method: "GET", uri: "/v2/x402/discovery/search", code: 200 }))).annotate({
2564
3459
  identifier: "SearchX402ResourcesRequest",
@@ -3170,20 +4065,53 @@ export const SignSolanaTransactionWithEndUserAccountResponse =
3170
4065
  })).annotate({
3171
4066
  identifier: "SignSolanaTransactionWithEndUserAccountResponse",
3172
4067
  });
3173
- export const DepositTravelRuleOriginatorWalletType = /*@__PURE__*/ S.String;
4068
+ export const X402PaymentRequiredAcceptsList = /*@__PURE__*/ S.Array(X402PaymentRequirements);
4069
+ export const X402PaymentRequiredExtensionsMap = /*@__PURE__*/ S.Record(S.String, S.Unknown);
4070
+ export const X402PaymentRequired = /*@__PURE__*/ S.suspend(() => S.Struct({
4071
+ x402Version: X402Version,
4072
+ accepts: X402PaymentRequiredAcceptsList,
4073
+ resource: S.optional(X402ResourceInfo),
4074
+ error: S.optional(S.String),
4075
+ extensions: S.optional(X402PaymentRequiredExtensionsMap),
4076
+ })).annotate({
4077
+ identifier: "X402PaymentRequired",
4078
+ });
4079
+ export const SignSolanaX402PaymentWithEndUserAccountRequest =
4080
+ /*@__PURE__*/ S.suspend(() => S.Struct({
4081
+ userId: S.String.pipe(T.Label()),
4082
+ projectID: S.optional(S.String.pipe(T.Query())),
4083
+ paymentRequired: X402PaymentRequired,
4084
+ acceptsIndex: S.Number,
4085
+ address: S.String,
4086
+ walletSecretId: S.optional(S.String),
4087
+ }).pipe(T.Http({
4088
+ method: "POST",
4089
+ uri: "/v2/embedded-wallet-api/end-users/{userId}/solana/sign/x402-payment",
4090
+ code: 200,
4091
+ }))).annotate({
4092
+ identifier: "SignSolanaX402PaymentWithEndUserAccountRequest",
4093
+ });
4094
+ export const SignSolanaX402PaymentWithEndUserAccountResponse =
4095
+ /*@__PURE__*/ S.suspend(() => S.Struct({
4096
+ paymentPayload: X402PaymentPayload,
4097
+ })).annotate({
4098
+ identifier: "SignSolanaX402PaymentWithEndUserAccountResponse",
4099
+ });
3174
4100
  export const DepositTravelRuleVasp = /*@__PURE__*/ S.suspend(() => S.Struct({
3175
4101
  identifier: S.optional(S.String),
3176
4102
  name: S.optional(S.String),
3177
4103
  })).annotate({
3178
4104
  identifier: "DepositTravelRuleVasp",
3179
4105
  });
4106
+ export const DepositTravelRuleOriginatorWalletType = /*@__PURE__*/ S.String;
3180
4107
  export const DepositTravelRuleOriginator = /*@__PURE__*/ S.suspend(() => S.Struct({
3181
4108
  name: S.optional(S.String),
3182
- address: S.optional(PhysicalAddress),
3183
- walletType: S.optional(DepositTravelRuleOriginatorWalletType),
4109
+ address: S.optional(IndividualInputAddress),
4110
+ financialInstitution: S.optional(S.String),
3184
4111
  virtualAssetServiceProvider: S.optional(DepositTravelRuleVasp),
3185
4112
  personalId: S.optional(S.String),
3186
4113
  dateOfBirth: S.optional(DateOfBirth),
4114
+ walletType: S.optional(DepositTravelRuleOriginatorWalletType),
3187
4115
  })).annotate({
3188
4116
  identifier: "DepositTravelRuleOriginator",
3189
4117
  });
@@ -3194,9 +4122,11 @@ export const DepositTravelRuleBeneficiary = /*@__PURE__*/ S.suspend(() => S.Stru
3194
4122
  });
3195
4123
  export const SubmitDepositTravelRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
3196
4124
  transferId: S.String.pipe(T.Label()),
4125
+ isSelf: S.optional(S.Boolean),
4126
+ isIntermediary: S.optional(S.Boolean),
4127
+ attestVerifiedWalletOwnership: S.optional(S.Boolean),
3197
4128
  originator: S.optional(DepositTravelRuleOriginator),
3198
4129
  beneficiary: S.optional(DepositTravelRuleBeneficiary),
3199
- isSelf: S.optional(S.Boolean),
3200
4130
  }).pipe(T.Http({
3201
4131
  method: "POST",
3202
4132
  uri: "/v2/transfers/{transferId}/travel-rule",
@@ -3256,6 +4186,23 @@ export const SupportedX402PaymentKindsResponse = /*@__PURE__*/ S.suspend(() => S
3256
4186
  })).annotate({
3257
4187
  identifier: "SupportedX402PaymentKindsResponse",
3258
4188
  });
4189
+ export const UpdateCustomerByIdRequestProjectIdsList = /*@__PURE__*/ S.Array(S.String);
4190
+ export const UpdateCustomerByIdRequestTosAcceptancesList =
4191
+ /*@__PURE__*/ S.Array(TosAcceptance);
4192
+ export const UpdateCustomerByIdRequestTaxAttestationsList =
4193
+ /*@__PURE__*/ S.Array(UsW9Attestation);
4194
+ export const UpdateCustomerByIdRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
4195
+ customerId: S.String.pipe(T.Label()),
4196
+ type: S.optional(CustomerType),
4197
+ capabilities: S.optional(CapabilitiesMapInput),
4198
+ individual: S.optional(IndividualInput),
4199
+ projectIds: S.optional(UpdateCustomerByIdRequestProjectIdsList),
4200
+ tosAcceptances: S.optional(UpdateCustomerByIdRequestTosAcceptancesList),
4201
+ taxAttestations: S.optional(UpdateCustomerByIdRequestTaxAttestationsList),
4202
+ compliance: S.optional(Compliance),
4203
+ }).pipe(T.Http({ method: "PUT", uri: "/v2/customers/{customerId}", code: 200 }))).annotate({
4204
+ identifier: "UpdateCustomerByIdRequest",
4205
+ });
3259
4206
  export const UpdateEvmAccountRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
3260
4207
  address: S.String.pipe(T.Label()),
3261
4208
  name: S.optional(S.String),
@@ -3384,6 +4331,18 @@ export const VerifyX402PaymentResponse = /*@__PURE__*/ S.suspend(() => S.Struct(
3384
4331
  })).annotate({
3385
4332
  identifier: "VerifyX402PaymentResponse",
3386
4333
  });
4334
+ export const VoidPaymentSessionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
4335
+ paymentSessionId: S.String.pipe(T.Label()),
4336
+ metadata: S.optional(Metadata),
4337
+ externalReferenceId: S.optional(S.String),
4338
+ customerDisplay: S.optional(OperationCustomerDisplay),
4339
+ }).pipe(T.Http({
4340
+ method: "POST",
4341
+ uri: "/v2/payment-sessions/{paymentSessionId}/voids",
4342
+ code: 200,
4343
+ }))).annotate({
4344
+ identifier: "VoidPaymentSessionRequest",
4345
+ });
3387
4346
  /** Add EVM account to end user Adds a new EVM EOA account to an existing end user. End users can have up to 10 EVM accounts. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. */
3388
4347
  export const addEndUserEvmAccount = /*@__PURE__*/ API.make(() => ({
3389
4348
  input: AddEndUserEvmAccountRequest,
@@ -3408,6 +4367,54 @@ export const addEndUserSolanaAccount = /*@__PURE__*/ API.make(() => ({
3408
4367
  protocol: CoinbaseProtocol,
3409
4368
  retry: Retry.Retry,
3410
4369
  }));
4370
+ /** Authorize a payment session with a Coinbase account **Merchant-initiated.** The merchant charges the payer's Coinbase account using an OAuth grant the payer authorized earlier, so the payer does not need to be present at payment time. The session must be in `created` status. **Authentication:** Requires a Coinbase OAuth Bearer token with the `coinbase:stablecoins:payment-create` scope. On authorization, a hold is placed on the payer's funds. The authorization is returned in `pending` status and transitions asynchronously to `succeeded` or `failed`. If `autoCapture` is enabled on the session, a capture is automatically created after a successful authorization. */
4371
+ export const authorizeCoinbasePaymentSession = /*@__PURE__*/ API.make(() => ({
4372
+ input: AuthorizeCoinbasePaymentSessionRequest,
4373
+ output: Authorization,
4374
+ errors: [UnknownCoinbaseError],
4375
+ protocol: CoinbaseProtocol,
4376
+ retry: Retry.Retry,
4377
+ }));
4378
+ /** Authorize a payment session with a wallet **Customer-initiated.** Authorizes a payment session using the payer's wallet. The payer signs the payloads themselves, so this call is unauthenticated. The session must be in `created` status. The `optionId` must match one of the options returned by the **Get Wallet Authorization Options** endpoint. Include the signed payloads for the selected option. On authorization, a hold is placed on the payer's funds. The authorization is returned in `pending` status and transitions asynchronously to `succeeded` or `failed`. If `autoCapture` is enabled on the session, a capture is automatically created after a successful authorization. */
4379
+ export const authorizeWalletPaymentSession = /*@__PURE__*/ API.make(() => ({
4380
+ input: AuthorizeWalletPaymentSessionRequest,
4381
+ output: Authorization,
4382
+ errors: [UnknownCoinbaseError],
4383
+ protocol: CoinbaseProtocol,
4384
+ retry: Retry.Retry,
4385
+ }));
4386
+ /** Authorize a payment session with x402 **Customer-initiated.** Authorizes a payment session using x402. The payer supplies the payment payload, so this call is unauthenticated. The session must be in `created` status. The client sends no request body. You may supply the base64-encoded x402-compliant payment payload in the optional **`PAYMENT-SIGNATURE`** header. On authorization, a hold is placed on the payer's funds. The authorization is returned in `pending` status and transitions asynchronously to `succeeded` or `failed`. **402 Payment Required** may be returned when payment must be supplied before authorization can proceed. The **402** response uses the standard CDP **`Error`** JSON body and may include a **`PAYMENT-REQUIRED`** header (see the **402** response) describing accepted networks, assets, and amounts. If `autoCapture` is enabled on the session, a capture is automatically created after a successful authorization. */
4387
+ export const authorizeX402PaymentSession = /*@__PURE__*/ API.make(() => ({
4388
+ input: AuthorizeX402PaymentSessionRequest,
4389
+ output: Authorization,
4390
+ errors: [UnknownCoinbaseError],
4391
+ protocol: CoinbaseProtocol,
4392
+ retry: Retry.Retry,
4393
+ }));
4394
+ /** Cancel a payment session Cancels a payment session before any funds have been authorized or captured. The session must be in `created` status. Cancel is blocked while any authorization action is pending. Once canceled, no further actions can be performed on the session. This is the only way to terminate a pre-authorization session — expiry deadlines block actions but do not automatically transition the session to a terminal state. */
4395
+ export const cancelPaymentSession = /*@__PURE__*/ API.make(() => ({
4396
+ input: CancelPaymentSessionRequest,
4397
+ output: PaymentSession,
4398
+ errors: [UnknownCoinbaseError],
4399
+ protocol: CoinbaseProtocol,
4400
+ retry: Retry.Retry,
4401
+ }));
4402
+ /** Capture a payment session Captures authorized funds. The session must have a positive `capturable` balance and the `captureExpiresAt` deadline must not have passed. This is an asynchronous operation. The capture is returned in `pending` status and transitions to `succeeded` or `failed`. Multiple partial captures are allowed. If `amount` is omitted, the full remaining capturable amount is captured. */
4403
+ export const capturePaymentSession = /*@__PURE__*/ API.make(() => ({
4404
+ input: CapturePaymentSessionRequest,
4405
+ output: Capture,
4406
+ errors: [UnknownCoinbaseError],
4407
+ protocol: CoinbaseProtocol,
4408
+ retry: Retry.Retry,
4409
+ }));
4410
+ /** Create a customer Create a new customer record. You can optionally request capabilities and submit verification requirements in the same request. This endpoint supports creating a customer with: - Minimal data (customer type only) - Capability requests - KYC data submission - Combined request for capability and required info for verification */
4411
+ export const createCustomer = /*@__PURE__*/ API.make(() => ({
4412
+ input: CreateCustomerRequest,
4413
+ output: Customer,
4414
+ errors: [UnknownCoinbaseError],
4415
+ protocol: CoinbaseProtocol,
4416
+ retry: Retry.Retry,
4417
+ }));
3411
4418
  /** Create account-scoped delegation for end user Creates an account-scoped delegation that allows a developer to sign on behalf of an end user for a single blockchain account (identified by its address) for the specified duration. The end user must be authenticated to authorize this delegation. Multiple account-scoped delegations may exist concurrently for a single end user (one per canonical account address). Account-scoped and user-scoped delegations cannot coexist for the same user. When the address corresponds to an EVM Smart Account, the delegation is scoped to the Smart Account's owner EOA rather than the Smart Account address itself. This means `/address/{smartAccountAddress}/delegation` and `/address/{ownerEoaAddress}/delegation` resolve to the same delegation, and the 409 `account_scoped_delegation_active` error may be returned when creating via either address if one already exists for the canonical owner. */
3412
4419
  export const createDelegationForEndUserAccount = /*@__PURE__*/ API.make(() => ({
3413
4420
  input: CreateDelegationForEndUserAccountRequest,
@@ -3416,14 +4423,22 @@ export const createDelegationForEndUserAccount = /*@__PURE__*/ API.make(() => ({
3416
4423
  protocol: CoinbaseProtocol,
3417
4424
  retry: Retry.Retry,
3418
4425
  }));
3419
- /** Create deposit destination Create a new deposit destination for an account. A deposit destination is a cryptocurrency address that can be used to receive funds. The address will be generated for the specified network. */
4426
+ /** Create deposit destination Create a new deposit destination for an account. Two types are supported: - `crypto` (public): provisions a cryptocurrency address on the requested network. The returned `crypto.address` is the deposit address; funds sent to it are credited to the `target` account in the specified asset. For Customer-owned accounts, the Customer must have the `custodyCrypto` and `custodyStablecoin` capabilities enabled. - `fiat` (private-beta): provisions a bank account at a CDP banking partner. The server picks the account type (e.g. `us_bank`) and supported payment rails based on the account's eligibility; pass `fiat.paymentRail` to influence partner selection. The returned `fiat` object contains the bank account details the depositor needs to send funds. For Customer-owned accounts, the Customer must have the `custodyFiat` capability enabled. Requires account enablement — contact your Coinbase representative for access. Fields and behavior may change before general availability. For Customer-owned accounts not authorized for the required capabilities, the request is rejected with `customer_not_authorized` (HTTP 403). The created destination's `status` starts as `pending` for fiat (it becomes `active` once the partner provisioning callback completes) and `active` for crypto. */
3420
4427
  export const createDepositDestination = /*@__PURE__*/ API.make(() => ({
3421
- input: CreateDepositDestinationRequest,
4428
+ input: CreateDepositDestinationRequest2,
3422
4429
  output: CreateDepositDestinationResponse,
3423
4430
  errors: [UnknownCoinbaseError],
3424
4431
  protocol: CoinbaseProtocol,
3425
4432
  retry: Retry.Retry,
3426
4433
  }));
4434
+ /** Create a disbursement Creates a merchant-initiated payment of funds from a CDP account owned by the merchant to a Coinbase user account or onchain address. Used for standalone refunds, goodwill disbursements, rebates, and other merchant-driven payouts that are not tied to a specific payment session. This is an asynchronous operation. The disbursement is returned in `pending` status and transitions to `succeeded` (with associated `onchainTransactions`) or `failed` (with `error`). */
4435
+ export const createDisbursement = /*@__PURE__*/ API.make(() => ({
4436
+ input: CreateDisbursementRequest,
4437
+ output: Disbursement,
4438
+ errors: [UnknownCoinbaseError],
4439
+ protocol: CoinbaseProtocol,
4440
+ retry: Retry.Retry,
4441
+ }));
3427
4442
  /** Create end user Creates an end user. An end user is an entity that can own CDP EVM accounts, EVM smart accounts, and/or Solana accounts. 1 or more authentication methods must be associated with an end user. By default, no accounts are created unless the optional `evmAccount` and/or `solanaAccount` fields are provided. This API is intended to be used by the developer's own backend, and is authenticated using the developer's CDP API key. */
3428
4443
  export const createEndUser = /*@__PURE__*/ API.make(() => ({
3429
4444
  input: CreateEndUserRequest,
@@ -3472,7 +4487,7 @@ export const createEvmSwapQuote = /*@__PURE__*/ API.make(() => ({
3472
4487
  protocol: CoinbaseProtocol,
3473
4488
  retry: Retry.Retry,
3474
4489
  }));
3475
- /** Create account Create an account for your Entity. Support for creating Customer-owned accounts is in development. */
4490
+ /** Create account Create an account. Two ownership modes are supported: - **Entity-owned**: when `owner` is omitted, the account is owned by the Entity making the request. Returns an account with `owner: entity_<uuid>`. - **Customer-owned**: pass a Customer ID as `owner` (e.g. `customer_af2937b0-9846-4fe7-bfe9-ccc22d935114`). The Customer must have the `custodyCrypto`, `custodyFiat`, and `custodyStablecoin` capabilities enabled, otherwise the request is rejected with `customer_not_authorized` (HTTP 403). */
3476
4491
  export const createFoundationAccount = /*@__PURE__*/ API.make(() => ({
3477
4492
  input: CreateFoundationAccountRequest,
3478
4493
  output: Account,
@@ -3480,7 +4495,7 @@ export const createFoundationAccount = /*@__PURE__*/ API.make(() => ({
3480
4495
  protocol: CoinbaseProtocol,
3481
4496
  retry: Retry.Retry,
3482
4497
  }));
3483
- /** Create an onramp order Create a new Onramp order or get a quote for an Onramp order. Either `paymentAmount` or `purchaseAmount` must be provided. This API currently only supports the payment method `GUEST_CHECKOUT_APPLE_PAY`. For detailed integration instructions and to get access to this API, refer to the [Apple Pay Onramp API docs](https://docs.cdp.coinbase.com/onramp-&-offramp/onramp-apis/apple-pay-onramp-api). */
4498
+ /** Create an onramp order Create a new Onramp order or get a quote for an Onramp order. Either `paymentAmount` or `purchaseAmount` must be provided. This API supports two modes: **Headless mode (standard)**: returns a seamless Apple Pay or Google Pay button that you integrate directly into your app. Your app collects and verifies the user's contact details before calling this endpoint — `phoneNumber`, `email`, `phoneNumberVerifiedAt`, and `agreementAcceptedAt` are required and enforced server-side. **Embedded mode**: returns a webview that collects and verifies the user's contact and identity information, then shows the payment screen. Omit both `phoneNumber` and `email` from the request to select this mode. Embedded mode requires account enablement; contact the Onramp team for access. Read more about the difference between the two modes in the [Headless Onramp overview](https://docs.cdp.coinbase.com/onramp/headless-onramp/overview). This API supports the `GUEST_CHECKOUT_APPLE_PAY` and `GUEST_CHECKOUT_GOOGLE_PAY` payment methods. For detailed integration instructions and to get access to this API, refer to the [Guest Checkout Onramp API docs](https://docs.cdp.coinbase.com/onramp/headless-onramp/overview). */
3484
4499
  export const createOnrampOrder = /*@__PURE__*/ API.make(() => ({
3485
4500
  input: CreateOnrampOrderRequest,
3486
4501
  output: CreateOnrampOrderResponse,
@@ -3496,6 +4511,14 @@ export const createOnrampSession = /*@__PURE__*/ API.make(() => ({
3496
4511
  protocol: CoinbaseProtocol,
3497
4512
  retry: Retry.Retry,
3498
4513
  }));
4514
+ /** Create a payment session Creates a payment session that defines what is being paid — amount, asset, and target. Optionally configure execution behavior, expiry deadlines, redirect URLs, and metadata. If expiry deadlines are omitted, sensible defaults are applied (1 day for authorization, 7 days for capture, 30 days for refund). Expiries must be in ascending order — see the `expiries` object for details and constraints. Returns the session in `created` status. Next step: call one of the authorization endpoints (wallet or Coinbase) to authorize the payment. */
4515
+ export const createPaymentSession = /*@__PURE__*/ API.make(() => ({
4516
+ input: CreatePaymentSessionRequest,
4517
+ output: PaymentSession,
4518
+ errors: [UnknownCoinbaseError],
4519
+ protocol: CoinbaseProtocol,
4520
+ retry: Retry.Retry,
4521
+ }));
3499
4522
  /** Create policy Create a policy that can be used to govern the behavior of accounts. */
3500
4523
  export const createPolicy = /*@__PURE__*/ API.make(() => ({
3501
4524
  input: CreatePolicyRequest,
@@ -3536,6 +4559,22 @@ export const createWebhookSubscription = /*@__PURE__*/ API.make(() => ({
3536
4559
  protocol: CoinbaseProtocol,
3537
4560
  retry: Retry.Retry,
3538
4561
  }));
4562
+ /** Handle MCP JSON-RPC request Handles JSON-RPC requests for the Model Context Protocol (MCP). Supports MCP methods for discovering x402 payment resources and tools. */
4563
+ export const createX402DiscoveryMcp = /*@__PURE__*/ API.make(() => ({
4564
+ input: CreateX402DiscoveryMcpRequest,
4565
+ output: X402McpResponse,
4566
+ errors: [UnknownCoinbaseError],
4567
+ protocol: CoinbaseProtocol,
4568
+ retry: Retry.Retry,
4569
+ }));
4570
+ /** Delete a customer Initiates deletion of the customer and all associated data. This operation is idempotent — repeated calls for an already-deleted customer return 204. A 404 is returned only when no customer with the given ID exists for the caller's entity. */
4571
+ export const deleteCustomer = /*@__PURE__*/ API.make(() => ({
4572
+ input: DeleteCustomerRequest,
4573
+ output: DeleteCustomerResponse,
4574
+ errors: [UnknownCoinbaseError],
4575
+ protocol: CoinbaseProtocol,
4576
+ retry: Retry.Retry,
4577
+ }));
3539
4578
  /** Delete policy Delete a policy by its ID. This will have the effect of removing the policy from all accounts that are currently using it. */
3540
4579
  export const deletePolicy = /*@__PURE__*/ API.make(() => ({
3541
4580
  input: DeletePolicyRequest,
@@ -3600,6 +4639,14 @@ export const getBalanceByAsset = /*@__PURE__*/ API.make(() => ({
3600
4639
  protocol: CoinbaseProtocol,
3601
4640
  retry: Retry.Retry,
3602
4641
  }));
4642
+ /** Get a customer Get a customer by their ID. Returns the full customer object. */
4643
+ export const getCustomer = /*@__PURE__*/ API.make(() => ({
4644
+ input: GetCustomerRequest,
4645
+ output: Customer,
4646
+ errors: [UnknownCoinbaseError],
4647
+ protocol: CoinbaseProtocol,
4648
+ retry: Retry.Retry,
4649
+ }));
3603
4650
  /** Get delegation for end user Returns the active delegation for the specified end user, if one exists. This operation can be performed by the end user themselves or by a developer using their API key. */
3604
4651
  export const getDelegationForEndUser = /*@__PURE__*/ API.make(() => ({
3605
4652
  input: GetDelegationForEndUserRequest,
@@ -3617,9 +4664,17 @@ export const getDelegationForEndUserAccount = /*@__PURE__*/ API.make(() => ({
3617
4664
  retry: Retry.Retry,
3618
4665
  }));
3619
4666
  /** Get deposit destination Get a specific deposit destination by its ID. */
3620
- export const getDepositDestinationById = /*@__PURE__*/ API.make(() => ({
3621
- input: GetDepositDestinationByIdRequest,
3622
- output: GetDepositDestinationByIdResponse,
4667
+ export const getDepositDestination = /*@__PURE__*/ API.make(() => ({
4668
+ input: GetDepositDestinationRequest,
4669
+ output: GetDepositDestinationResponse,
4670
+ errors: [UnknownCoinbaseError],
4671
+ protocol: CoinbaseProtocol,
4672
+ retry: Retry.Retry,
4673
+ }));
4674
+ /** Get a disbursement Retrieves a single disbursement by its ID, including source, target, status, amount, associated onchain transactions, error details (if failed), and timestamps. Only returns the disbursement if the API key has permission to access it. */
4675
+ export const getDisbursement = /*@__PURE__*/ API.make(() => ({
4676
+ input: GetDisbursementRequest,
4677
+ output: Disbursement,
3623
4678
  errors: [UnknownCoinbaseError],
3624
4679
  protocol: CoinbaseProtocol,
3625
4680
  retry: Retry.Retry,
@@ -3649,8 +4704,8 @@ export const getEvmAccountByName = /*@__PURE__*/ API.make(() => ({
3649
4704
  retry: Retry.Retry,
3650
4705
  }));
3651
4706
  /** Get EIP-7702 delegation operation by ID Returns the EIP-7702 delegation operation. Use the delegationOperationId returned by the Create EIP-7702 delegation endpoint to poll for operation completion. */
3652
- export const getEvmEip7702DelegationOperationById = /*@__PURE__*/ API.make(() => ({
3653
- input: GetEvmEip7702DelegationOperationByIdRequest,
4707
+ export const getEvmEip7702DelegationOperation = /*@__PURE__*/ API.make(() => ({
4708
+ input: GetEvmEip7702DelegationOperationRequest,
3654
4709
  output: EvmEip7702DelegationOperation,
3655
4710
  errors: [UnknownCoinbaseError],
3656
4711
  protocol: CoinbaseProtocol,
@@ -3689,9 +4744,9 @@ export const getFoundationAccountById = /*@__PURE__*/ API.make(() => ({
3689
4744
  retry: Retry.Retry,
3690
4745
  }));
3691
4746
  /** Get an onramp order by ID Get an onramp order by ID. */
3692
- export const getOnrampOrderById = /*@__PURE__*/ API.make(() => ({
3693
- input: GetOnrampOrderByIdRequest,
3694
- output: GetOnrampOrderByIdResponse,
4747
+ export const getOnrampOrder = /*@__PURE__*/ API.make(() => ({
4748
+ input: GetOnrampOrderRequest,
4749
+ output: GetOnrampOrderResponse,
3695
4750
  errors: [UnknownCoinbaseError],
3696
4751
  protocol: CoinbaseProtocol,
3697
4752
  retry: Retry.Retry,
@@ -3712,6 +4767,46 @@ export const getPaymentMethod = /*@__PURE__*/ API.make(() => ({
3712
4767
  protocol: CoinbaseProtocol,
3713
4768
  retry: Retry.Retry,
3714
4769
  }));
4770
+ /** Get a payment session Retrieves a single payment session by its ID, including its current status, balances, and associated metadata. The API key must have permission to access the requested session. */
4771
+ export const getPaymentSession = /*@__PURE__*/ API.make(() => ({
4772
+ input: GetPaymentSessionRequest,
4773
+ output: PaymentSession,
4774
+ errors: [UnknownCoinbaseError],
4775
+ protocol: CoinbaseProtocol,
4776
+ retry: Retry.Retry,
4777
+ }));
4778
+ /** Get a payment session authorization Retrieves a single authorization by its ID, including its current status, amount, and any associated onchain transactions. */
4779
+ export const getPaymentSessionAuthorization = /*@__PURE__*/ API.make(() => ({
4780
+ input: GetPaymentSessionAuthorizationRequest,
4781
+ output: Authorization,
4782
+ errors: [UnknownCoinbaseError],
4783
+ protocol: CoinbaseProtocol,
4784
+ retry: Retry.Retry,
4785
+ }));
4786
+ /** Get a payment session capture Retrieves a single capture by its ID, including status, captured amount, associated onchain transactions, and timestamps. Only returns the capture if the API key has permission to access it. */
4787
+ export const getPaymentSessionCapture = /*@__PURE__*/ API.make(() => ({
4788
+ input: GetPaymentSessionCaptureRequest,
4789
+ output: Capture,
4790
+ errors: [UnknownCoinbaseError],
4791
+ protocol: CoinbaseProtocol,
4792
+ retry: Retry.Retry,
4793
+ }));
4794
+ /** Get a payment session refund Retrieves a single refund by its ID, including status, refunded amount, reason, associated onchain transactions, and timestamps. Only returns the refund if the API key has permission to access it. */
4795
+ export const getPaymentSessionRefund = /*@__PURE__*/ API.make(() => ({
4796
+ input: GetPaymentSessionRefundRequest,
4797
+ output: Refund,
4798
+ errors: [UnknownCoinbaseError],
4799
+ protocol: CoinbaseProtocol,
4800
+ retry: Retry.Retry,
4801
+ }));
4802
+ /** Get a payment session void Retrieves a single void by its ID, including status, voided amount, associated onchain transactions, and timestamps. Only returns the void if the API key has permission to access it. */
4803
+ export const getPaymentSessionVoid = /*@__PURE__*/ API.make(() => ({
4804
+ input: GetPaymentSessionVoidRequest,
4805
+ output: Void,
4806
+ errors: [UnknownCoinbaseError],
4807
+ protocol: CoinbaseProtocol,
4808
+ retry: Retry.Retry,
4809
+ }));
3715
4810
  /** Get policy by ID Get a policy by its ID. */
3716
4811
  export const getPolicyById = /*@__PURE__*/ API.make(() => ({
3717
4812
  input: GetPolicyByIdRequest,
@@ -3753,8 +4848,8 @@ export const getSQLSchema = /*@__PURE__*/ API.make(() => ({
3753
4848
  retry: Retry.Retry,
3754
4849
  }));
3755
4850
  /** Get transfer Get a transfer by its ID. */
3756
- export const getTransferById = /*@__PURE__*/ API.make(() => ({
3757
- input: GetTransferByIdRequest,
4851
+ export const getTransfer = /*@__PURE__*/ API.make(() => ({
4852
+ input: GetTransferRequest,
3758
4853
  output: Transfer,
3759
4854
  errors: [UnknownCoinbaseError],
3760
4855
  protocol: CoinbaseProtocol,
@@ -3768,6 +4863,14 @@ export const getUserOperation = /*@__PURE__*/ API.make(() => ({
3768
4863
  protocol: CoinbaseProtocol,
3769
4864
  retry: Retry.Retry,
3770
4865
  }));
4866
+ /** Get wallet authorization options Returns the available wallet authorization options for a payment session. The session must be in `created` status. Provide one or more payer wallet addresses as query parameters. Each option specifies the currency, amount, network, and payloads the payer must sign to authorize the payment. Present the options to the payer and let them choose one, then call **Authorize Wallet** with the selected option. This is a stateless read operation — the session is not modified. If a requested address has no eligible authorization options (e.g. insufficient funds), it appears in `ineligibleAddresses` with a `code` and `message` instead of being absent from `options`. When an address is ineligible because of `insufficient_funds`, its `fundsRequired` array lists, per enabled (network, asset) combination, the current balance and required balance the payer needs to become eligible. */
4867
+ export const getWalletAuthorizationOptions = /*@__PURE__*/ API.make(() => ({
4868
+ input: GetWalletAuthorizationOptionsRequest,
4869
+ output: WalletAuthorizationOptionsResponse,
4870
+ errors: [UnknownCoinbaseError],
4871
+ protocol: CoinbaseProtocol,
4872
+ retry: Retry.Retry,
4873
+ }));
3771
4874
  /** Get webhook subscription Retrieve detailed information about a specific webhook subscription including configuration, status, creation timestamp, and webhook signature secret. ### Response Includes - Subscription configuration and filters - Target URL and custom headers - Webhook signature secret for verification - Creation timestamp and status */
3772
4875
  export const getWebhookSubscription = /*@__PURE__*/ API.make(() => ({
3773
4876
  input: GetWebhookSubscriptionRequest,
@@ -3776,6 +4879,14 @@ export const getWebhookSubscription = /*@__PURE__*/ API.make(() => ({
3776
4879
  protocol: CoinbaseProtocol,
3777
4880
  retry: Retry.Retry,
3778
4881
  }));
4882
+ /** Get an x402 bundle Gets a single curated x402 workflow bundle by its bundle slug, including the bundle metadata and its ordered member resources joined to their full discovery metadata. */
4883
+ export const getX402Bundle = /*@__PURE__*/ API.make(() => ({
4884
+ input: GetX402BundleRequest,
4885
+ output: GetX402BundleResponse,
4886
+ errors: [UnknownCoinbaseError],
4887
+ protocol: CoinbaseProtocol,
4888
+ retry: Retry.Retry,
4889
+ }));
3779
4890
  /** Import end user private key Imports an existing private key for an end user into the developer's CDP Project. The private key must be encrypted using the CDP SDK's encryption scheme before being sent to this endpoint. This API should be called from the [CDP SDK](https://github.com/coinbase/cdp-sdk) to ensure that the associated private key is properly encrypted. This endpoint allows developers to import existing keys for their end users, supporting both EVM and Solana key types. The end user must have at least one authentication method configured. */
3780
4891
  export const importEndUser = /*@__PURE__*/ API.make(() => ({
3781
4892
  input: ImportEndUserRequest,
@@ -3816,7 +4927,23 @@ export const listBalances = /*@__PURE__*/ API.make(() => ({
3816
4927
  protocol: CoinbaseProtocol,
3817
4928
  retry: Retry.Retry,
3818
4929
  }));
3819
- /** List EVM token balances Lists the token balances of an EVM address on a given network. The balances include ERC-20 tokens and the native gas token (usually ETH). The response is paginated, and by default, returns 20 balances per page. **Note:** This endpoint provides <1 second freshness from chain tip, <500ms response latency for wallets with reasonable token history, and 99.9% uptime for production use. */
4930
+ /** List Coinbase account balances Returns the balances held in the Coinbase account. The `available` amount is the immediately spendable balance. The `total` amount also includes funds currently on hold. Both amounts are returned as decimal strings with 2 decimal places (e.g. `"50.00"`). **Authentication:** Requires a Coinbase OAuth Bearer token with the `coinbase:stablecoins:balance-read` scope. **Returned assets:** Currently always returns a single USDC entry. If the payer holds no USDC, the entry is still returned with an `available` and `total` of `"0"` so callers do not need to special-case a missing asset. Additional assets may be returned in the future without a contract change. */
4931
+ export const listCoinbaseAccountBalances = /*@__PURE__*/ API.make(() => ({
4932
+ input: ListCoinbaseAccountBalancesRequest,
4933
+ output: Balances,
4934
+ errors: [UnknownCoinbaseError],
4935
+ protocol: CoinbaseProtocol,
4936
+ retry: Retry.Retry,
4937
+ }));
4938
+ /** List customers List all customers. The API will return all customers that the API Key has permissions to access. Results are not returned in any guaranteed order. */
4939
+ export const listCustomers = /*@__PURE__*/ API.make(() => ({
4940
+ input: ListCustomersRequest,
4941
+ output: ListCustomersResponse,
4942
+ errors: [UnknownCoinbaseError],
4943
+ protocol: CoinbaseProtocol,
4944
+ retry: Retry.Retry,
4945
+ }));
4946
+ /** List EVM token balances Lists the token balances of an EVM address on a given network. The balances include ERC-20 tokens and the native gas token (usually ETH). The response is paginated, and by default, returns 20 balances per page. Calls to the `base` and `base-sepolia` networks offer: * 99.5% < 2 second freshness from chain tip for new tokens on an address. * 99.5% < 2 second freshness from chain tip for balance data. Calls to the `ethereum` network offer: * 99% < 30 second freshness from chain tip for new tokens on an address. * 99% < 2 second freshness from chain tip for balance data. */
3820
4947
  export const listDataTokenBalances = /*@__PURE__*/ API.make(() => ({
3821
4948
  input: ListDataTokenBalancesRequest,
3822
4949
  output: ListDataTokenBalancesResponse,
@@ -3832,6 +4959,14 @@ export const listDepositDestinations = /*@__PURE__*/ API.make(() => ({
3832
4959
  protocol: CoinbaseProtocol,
3833
4960
  retry: Retry.Retry,
3834
4961
  }));
4962
+ /** List disbursements Returns a paginated list of disbursements created by the merchant. Each disbursement includes its source, target, status, amount, and timestamps. Only disbursements accessible by the current API key are returned. */
4963
+ export const listDisbursements = /*@__PURE__*/ API.make(() => ({
4964
+ input: ListDisbursementsRequest,
4965
+ output: ListDisbursementsResponse,
4966
+ errors: [UnknownCoinbaseError],
4967
+ protocol: CoinbaseProtocol,
4968
+ retry: Retry.Retry,
4969
+ }));
3835
4970
  /** List end users Lists the end users belonging to the developer's CDP Project. By default, the response is sorted by creation date in ascending order and paginated to 20 users per page. */
3836
4971
  export const listEndUsers = /*@__PURE__*/ API.make(() => ({
3837
4972
  input: ListEndUsersRequest,
@@ -3856,7 +4991,7 @@ export const listEvmSmartAccounts = /*@__PURE__*/ API.make(() => ({
3856
4991
  protocol: CoinbaseProtocol,
3857
4992
  retry: Retry.Retry,
3858
4993
  }));
3859
- /** List EVM token balances Lists the token balances of an EVM address on a given network. The balances include ERC-20 tokens and the native gas token (usually ETH). The response is paginated, and by default, returns 20 balances per page. **Note:** This endpoint is still under development and does not yet provide strong freshness guarantees. Specifically, balances of new tokens can, on occasion, take up to ~30 seconds to appear, while balances of tokens already belonging to an address will generally be close to chain tip. Freshness of new token balances will improve over the coming weeks. */
4994
+ /** List EVM token balances Lists the token balances of an EVM address on a given network. The balances include ERC-20 tokens and the native gas token (usually ETH). The response is paginated, and by default, returns 20 balances per page. Calls to the `base` and `base-sepolia` networks offer: * 99.5% < 2 second freshness from chain tip for new tokens on an address. * 99.5% < 2 second freshness from chain tip for balance data. Calls to the `ethereum` network offer: * 99% < 30 second freshness from chain tip for new tokens on an address. * 99% < 2 second freshness from chain tip for balance data. */
3860
4995
  export const listEvmTokenBalances = /*@__PURE__*/ API.make(() => ({
3861
4996
  input: ListEvmTokenBalancesRequest,
3862
4997
  output: ListEvmTokenBalancesResponse,
@@ -3880,6 +5015,46 @@ export const listPaymentMethods = /*@__PURE__*/ API.make(() => ({
3880
5015
  protocol: CoinbaseProtocol,
3881
5016
  retry: Retry.Retry,
3882
5017
  }));
5018
+ /** List payment session authorizations Returns a paginated list of authorizations for a payment session. Each authorization represents a hold on funds and includes its current status and amount. */
5019
+ export const listPaymentSessionAuthorizations = /*@__PURE__*/ API.make(() => ({
5020
+ input: ListPaymentSessionAuthorizationsRequest,
5021
+ output: ListPaymentSessionAuthorizationsResponse,
5022
+ errors: [UnknownCoinbaseError],
5023
+ protocol: CoinbaseProtocol,
5024
+ retry: Retry.Retry,
5025
+ }));
5026
+ /** List payment session captures Returns a paginated list of captures for a payment session. Each capture includes its status, amount, associated onchain transactions, and timestamps. Only captures accessible by the current API key are returned. */
5027
+ export const listPaymentSessionCaptures = /*@__PURE__*/ API.make(() => ({
5028
+ input: ListPaymentSessionCapturesRequest,
5029
+ output: ListPaymentSessionCapturesResponse,
5030
+ errors: [UnknownCoinbaseError],
5031
+ protocol: CoinbaseProtocol,
5032
+ retry: Retry.Retry,
5033
+ }));
5034
+ /** List payment session refunds Returns a paginated list of refunds for a payment session. Each refund includes its status, amount, reason, associated onchain transactions, and timestamps. Only refunds accessible by the current API key are returned. */
5035
+ export const listPaymentSessionRefunds = /*@__PURE__*/ API.make(() => ({
5036
+ input: ListPaymentSessionRefundsRequest,
5037
+ output: ListPaymentSessionRefundsResponse,
5038
+ errors: [UnknownCoinbaseError],
5039
+ protocol: CoinbaseProtocol,
5040
+ retry: Retry.Retry,
5041
+ }));
5042
+ /** List payment sessions Returns a paginated list of payment sessions that the API key has permission to access. */
5043
+ export const listPaymentSessions = /*@__PURE__*/ API.make(() => ({
5044
+ input: ListPaymentSessionsRequest,
5045
+ output: ListPaymentSessionsResponse,
5046
+ errors: [UnknownCoinbaseError],
5047
+ protocol: CoinbaseProtocol,
5048
+ retry: Retry.Retry,
5049
+ }));
5050
+ /** List payment session voids Returns a paginated list of voids for a payment session. Each void includes its status, amount, associated onchain transactions, and timestamps. Only voids accessible by the current API key are returned. */
5051
+ export const listPaymentSessionVoids = /*@__PURE__*/ API.make(() => ({
5052
+ input: ListPaymentSessionVoidsRequest,
5053
+ output: ListPaymentSessionVoidsResponse,
5054
+ errors: [UnknownCoinbaseError],
5055
+ protocol: CoinbaseProtocol,
5056
+ retry: Retry.Retry,
5057
+ }));
3883
5058
  /** List policies Lists the policies belonging to the developer's CDP Project. Use the `scope` parameter to filter the policies by scope. The response is paginated, and by default, returns 20 policies per page. */
3884
5059
  export const listPolicies = /*@__PURE__*/ API.make(() => ({
3885
5060
  input: ListPoliciesRequest,
@@ -3920,7 +5095,7 @@ export const listTokensForAccount = /*@__PURE__*/ API.make(() => ({
3920
5095
  protocol: CoinbaseProtocol,
3921
5096
  retry: Retry.Retry,
3922
5097
  }));
3923
- /** List transfers List transfers for your organization. Use this to view and monitor your transfer activity. **Status Filtering**: Filter by specific status to efficiently manage transfers: * `?status=processing` - Monitor active transfers. * `?status=quoted` - Find transfers awaiting execution. * `?status=failed` - Review failed transfers for troubleshooting. * `?status=completed` - Find completed transfers. **Account Filtering**: Filter by account ID to find transfers involving a specific account: * `?accountId=<ID>` - All transfers where the account is either source or target (OR semantics). * `?sourceAccountId=<ID>` - Only transfers where the account is the source (outbound). * `?targetAccountId=<ID>` - Only transfers where the account is the target (inbound). Providing `accountId` together with `sourceAccountId` or `targetAccountId` is a validation error and returns HTTP 400. **Date Range Filtering**: Filter by creation or last-updated time for reconciliation: * `?createdAfter=2026-01-01T00:00:00Z&createdBefore=2026-01-31T23:59:59Z` - Transfers created within a date range. * `?updatedAfter=2026-01-01T00:00:00Z` - Transfers updated since a given time. Useful for incremental sync. **Asset Filtering**: Filter by source or target asset symbol: * `?sourceAsset=usd` - Transfers funded from a USD account. * `?targetAsset=usdc` - Transfers delivering USDC to the target. **Other Filters**: * `?sourceAddress=0x...` - Transfers from a specific on-chain source address. * `?targetAddress=0x...` - Transfers to a specific on-chain destination address. * `?targetEmail=user@example.com` - Transfers to a specific email recipient. * `?transferId=transfer_...` - Look up a single transfer by ID; bypasses pagination. */
5098
+ /** List transfers List transfers for your organization. Use this to view and monitor your transfer activity. **Status Filtering**: Filter by specific status to efficiently manage transfers: * `?status=processing` - Monitor active transfers. * `?status=quoted` - Find transfers awaiting execution. * `?status=failed` - Review failed transfers for troubleshooting. * `?status=completed` - Find completed transfers. **Account Filtering**: Filter by account ID to find transfers involving a specific account: * `?accountId=<ID>` - All transfers where the account is either source or target (OR semantics). * `?sourceAccountId=<ID>` - Only transfers where the account is the source (outbound). * `?targetAccountId=<ID>` - Only transfers where the account is the target (inbound). Providing `accountId` together with `sourceAccountId` or `targetAccountId` is a validation error and returns HTTP 400. **Date Range Filtering**: Filter by creation or last-updated time for reconciliation: * `?createdAfter=2026-01-01T00:00:00Z&createdBefore=2026-01-31T23:59:59Z` - Transfers created within a date range. * `?updatedAfter=2026-01-01T00:00:00Z` - Transfers updated since a given time. Useful for incremental sync. **Asset Filtering**: Filter by source or target asset symbol: * `?sourceAsset=usd` - Transfers funded from a USD account. * `?targetAsset=usdc` - Transfers delivering USDC to the target. Supported asset symbols include `usdc`, `eurc`, `usd`, and `eur`. **Other Filters**: * `?sourceAddress=0x...` - Transfers from a specific on-chain source address. * `?targetAddress=0x...` - Transfers to a specific on-chain destination address. * `?targetEmail=user@example.com` - Transfers to a specific email recipient. * `?transferId=transfer_...` - Look up a single transfer by ID; bypasses pagination. */
3924
5099
  export const listTransfers = /*@__PURE__*/ API.make(() => ({
3925
5100
  input: ListTransfersRequest,
3926
5101
  output: ListTransfersResponse,
@@ -3944,6 +5119,14 @@ export const listWebhookSubscriptions = /*@__PURE__*/ API.make(() => ({
3944
5119
  protocol: CoinbaseProtocol,
3945
5120
  retry: Retry.Retry,
3946
5121
  }));
5122
+ /** List x402 bundles Lists the available curated x402 workflow bundles. A bundle is an ordered, named grouping of curated x402 resources that together cover a common agent workflow. The result set is small and server-controlled, so this endpoint is not paginated. */
5123
+ export const listX402Bundles = /*@__PURE__*/ API.make(() => ({
5124
+ input: ListX402BundlesRequest,
5125
+ output: X402BundlesResponse,
5126
+ errors: [UnknownCoinbaseError],
5127
+ protocol: CoinbaseProtocol,
5128
+ retry: Retry.Retry,
5129
+ }));
3947
5130
  /** List merchant discovery info Gets x402 merchant discovery information for a given merchant payment address. This endpoint returns all active x402 resources associated with the specified `payTo` address, allowing clients to discover what payment-gated resources a merchant exposes and their corresponding payment requirements. If no active resources are found for the `payTo` address, the endpoint returns an empty `resources` list. The response is paginated, and by default, returns 20 items per page. */
3948
5131
  export const listX402DiscoveryMerchant = /*@__PURE__*/ API.make(() => ({
3949
5132
  input: ListX402DiscoveryMerchantRequest,
@@ -3968,14 +5151,6 @@ export const lookupEndUser = /*@__PURE__*/ API.make(() => ({
3968
5151
  protocol: CoinbaseProtocol,
3969
5152
  retry: Retry.Retry,
3970
5153
  }));
3971
- /** Handle MCP JSON-RPC request Handles JSON-RPC requests for the Model Context Protocol (MCP). Supports MCP methods for discovering x402 payment resources and tools. */
3972
- export const postX402DiscoveryMcp = /*@__PURE__*/ API.make(() => ({
3973
- input: PostX402DiscoveryMcpRequest,
3974
- output: X402McpResponse,
3975
- errors: [UnknownCoinbaseError],
3976
- protocol: CoinbaseProtocol,
3977
- retry: Retry.Retry,
3978
- }));
3979
5154
  /** Prepare and send user operation Prepares, signs, and sends a user operation for an EVM Smart Account. This API can be used only if the owner on Smart Account is a CDP EVM Account. */
3980
5155
  export const prepareAndSendUserOperation = /*@__PURE__*/ API.make(() => ({
3981
5156
  input: PrepareAndSendUserOperationRequest,
@@ -3992,6 +5167,14 @@ export const prepareUserOperation = /*@__PURE__*/ API.make(() => ({
3992
5167
  protocol: CoinbaseProtocol,
3993
5168
  retry: Retry.Retry,
3994
5169
  }));
5170
+ /** Refund a payment session Returns captured funds to the payer. The session must have a positive `refundable` balance and the `refundExpiresAt` deadline must not have passed. This is an asynchronous operation. The refund is returned in `pending` status and transitions to `succeeded` or `failed`. If `amount` is omitted, the full remaining refundable amount is refunded. Multiple partial refunds are supported. */
5171
+ export const refundPaymentSession = /*@__PURE__*/ API.make(() => ({
5172
+ input: RefundPaymentSessionRequest,
5173
+ output: Refund,
5174
+ errors: [UnknownCoinbaseError],
5175
+ protocol: CoinbaseProtocol,
5176
+ retry: Retry.Retry,
5177
+ }));
3995
5178
  /** Request funds on EVM test networks Request funds from the CDP Faucet on supported EVM test networks. Faucets are available for ETH, USDC, EURC, and cbBTC on Base Sepolia and Ethereum Sepolia, and for ETH only on Ethereum Hoodi. To prevent abuse, we enforce rate limits within a rolling 24-hour window to control the amount of funds that can be requested. These limits are applied at both the CDP User level and the blockchain address level. A single blockchain address cannot exceed the specified limits, even if multiple users submit requests to the same address. */
3996
5179
  export const requestEvmFaucet = /*@__PURE__*/ API.make(() => ({
3997
5180
  input: RequestEvmFaucetRequest,
@@ -4000,10 +5183,10 @@ export const requestEvmFaucet = /*@__PURE__*/ API.make(() => ({
4000
5183
  protocol: CoinbaseProtocol,
4001
5184
  retry: Retry.Retry,
4002
5185
  }));
4003
- /** Request limit upgrade Requests a limit upgrade for an onramp user by submitting identity information. Only phone number is currently supported as a userId. The verification process is asynchronous. After calling this endpoint, use the [Get Onramp User Limits](https://docs.cdp.coinbase.com/api-reference/v2/rest-api/onramp/get-onramp-user-limits) endpoint to check the status in the `limitUpgradeOptions` array. **Prerequisites:** - The phone number must have been previously verified by your app via OTP. - Upgrades may not be available until a certain number of successful transactions by the user. **Supported fields:** - `ssnLast4`: Last 4 digits of the Social Security Number (no dashes or spaces). - `dateOfBirth`: Date of birth (day, month, year as zero-padded strings). */
5186
+ /** Request limit upgrade Requests a limit upgrade for an onramp user. Only phone number is currently supported as a userId. The default API mode submits identity information directly and returns HTTP 202 when the request is accepted. Embedded mode (`interactionMode: embedded`) returns a Coinbase-hosted `upgradeUrl` where the user enters identity information. The verification process is asynchronous. After calling this endpoint, use the [Get Onramp User Limits](https://docs.cdp.coinbase.com/api-reference/v2/rest-api/onramp/get-onramp-user-limits) endpoint to check the status in the `limitUpgradeOptions` array. **Prerequisites:** - The phone number must have been previously verified by your app via OTP. - Upgrades may not be available until a certain number of successful transactions by the user. **Supported fields:** - `ssnLast4`: Last 4 digits of the Social Security Number (no dashes or spaces). - `dateOfBirth`: Date of birth (day, month, year as zero-padded strings). */
4004
5187
  export const requestLimitsUpgrade = /*@__PURE__*/ API.make(() => ({
4005
5188
  input: RequestLimitsUpgradeRequest,
4006
- output: RequestLimitsUpgradeResponse,
5189
+ output: OnrampLimitUpgradeEmbeddedResponse,
4007
5190
  errors: [UnknownCoinbaseError],
4008
5191
  protocol: CoinbaseProtocol,
4009
5192
  retry: Retry.Retry,
@@ -4216,6 +5399,14 @@ export const signSolanaTransactionWithEndUserAccount = /*@__PURE__*/ API.make(()
4216
5399
  protocol: CoinbaseProtocol,
4217
5400
  retry: Retry.Retry,
4218
5401
  }));
5402
+ /** Sign x402 payment via end user Solana account Signs an x402 payment payload using the end user's given Solana account. Accepts the full x402 payment required response body from a resource server plus an index into the accepts array selecting which payment option to sign. The paymentRequired envelope's x402Version, resource, and extensions are carried through into the signed payment payload; only the selected accept entry becomes paymentPayload.accepted. Returns a signed payment payload that can be base64-encoded and sent in the PAYMENT-SIGNATURE header of the resource request. If acceptsIndex is out of range for paymentRequired.accepts, or the selected accept is not a Solana network payment option, the request fails with 422. */
5403
+ export const signSolanaX402PaymentWithEndUserAccount = /*@__PURE__*/ API.make(() => ({
5404
+ input: SignSolanaX402PaymentWithEndUserAccountRequest,
5405
+ output: SignSolanaX402PaymentWithEndUserAccountResponse,
5406
+ errors: [UnknownCoinbaseError],
5407
+ protocol: CoinbaseProtocol,
5408
+ retry: Retry.Retry,
5409
+ }));
4219
5410
  /** Submit deposit travel rule information Submit travel rule information for a deposit transfer held pending compliance review. Required fields vary by jurisdiction and may include originator name, address, date of birth, personal ID, and VASP information. If the submitted information satisfies all jurisdictional requirements, `status` will be `completed` and the transfer will proceed. Otherwise, `status` will be `incomplete` and `missingFields` will indicate which fields still need to be provided. */
4220
5411
  export const submitDepositTravelRule = /*@__PURE__*/ API.make(() => ({
4221
5412
  input: SubmitDepositTravelRuleRequest,
@@ -4240,6 +5431,14 @@ export const supportedX402PaymentKinds = /*@__PURE__*/ API.make(() => ({
4240
5431
  protocol: CoinbaseProtocol,
4241
5432
  retry: Retry.Retry,
4242
5433
  }));
5434
+ /** Update a customer Update customer information and/or request capability changes. This endpoint supports partial updates. Provide only the fields you wish to change. */
5435
+ export const updateCustomerById = /*@__PURE__*/ API.make(() => ({
5436
+ input: UpdateCustomerByIdRequest,
5437
+ output: Customer,
5438
+ errors: [UnknownCoinbaseError],
5439
+ protocol: CoinbaseProtocol,
5440
+ retry: Retry.Retry,
5441
+ }));
4243
5442
  /** Update EVM account Updates an existing EVM account. Use this to update the account's name or account-level policy. */
4244
5443
  export const updateEvmAccount = /*@__PURE__*/ API.make(() => ({
4245
5444
  input: UpdateEvmAccountRequest,
@@ -4304,4 +5503,12 @@ export const verifyX402Payment = /*@__PURE__*/ API.make(() => ({
4304
5503
  protocol: CoinbaseProtocol,
4305
5504
  retry: Retry.Retry,
4306
5505
  }));
5506
+ /** Void a payment session Releases all remaining capturable funds back to the payer. The session must have a positive `capturable` balance. This is an asynchronous operation. The void is returned in `pending` status and transitions to `succeeded` or `failed`. After voiding, no further captures can be made. Unlike **Cancel**, which works before authorization, void works after authorization. */
5507
+ export const voidPaymentSession = /*@__PURE__*/ API.make(() => ({
5508
+ input: VoidPaymentSessionRequest,
5509
+ output: Void,
5510
+ errors: [UnknownCoinbaseError],
5511
+ protocol: CoinbaseProtocol,
5512
+ retry: Retry.Retry,
5513
+ }));
4307
5514
  //# sourceMappingURL=cdp.js.map