@privy-io/api-types 0.20.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/client.d.mts +25 -16
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +25 -16
  5. package/client.d.ts.map +1 -1
  6. package/client.js +9 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +9 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/actions.d.mts +14 -0
  12. package/resources/actions.d.mts.map +1 -0
  13. package/resources/actions.d.ts +14 -0
  14. package/resources/actions.d.ts.map +1 -0
  15. package/resources/actions.js +9 -0
  16. package/resources/actions.js.map +1 -0
  17. package/resources/actions.mjs +5 -0
  18. package/resources/actions.mjs.map +1 -0
  19. package/resources/apps.d.mts +4 -0
  20. package/resources/apps.d.mts.map +1 -1
  21. package/resources/apps.d.ts +4 -0
  22. package/resources/apps.d.ts.map +1 -1
  23. package/resources/cards.d.mts +449 -0
  24. package/resources/cards.d.mts.map +1 -0
  25. package/resources/cards.d.ts +449 -0
  26. package/resources/cards.d.ts.map +1 -0
  27. package/resources/cards.js +9 -0
  28. package/resources/cards.js.map +1 -0
  29. package/resources/cards.mjs +5 -0
  30. package/resources/cards.mjs.map +1 -0
  31. package/resources/client-auth.d.mts +22 -5
  32. package/resources/client-auth.d.mts.map +1 -1
  33. package/resources/client-auth.d.ts +22 -5
  34. package/resources/client-auth.d.ts.map +1 -1
  35. package/resources/fiat.d.mts +921 -2
  36. package/resources/fiat.d.mts.map +1 -1
  37. package/resources/fiat.d.ts +921 -2
  38. package/resources/fiat.d.ts.map +1 -1
  39. package/resources/fiat.js.map +1 -1
  40. package/resources/fiat.mjs.map +1 -1
  41. package/resources/index.d.mts +11 -8
  42. package/resources/index.d.mts.map +1 -1
  43. package/resources/index.d.ts +11 -8
  44. package/resources/index.d.ts.map +1 -1
  45. package/resources/index.js +7 -1
  46. package/resources/index.js.map +1 -1
  47. package/resources/index.mjs +3 -0
  48. package/resources/index.mjs.map +1 -1
  49. package/resources/intents.d.mts +1 -0
  50. package/resources/intents.d.mts.map +1 -1
  51. package/resources/intents.d.ts +1 -0
  52. package/resources/intents.d.ts.map +1 -1
  53. package/resources/onramps.d.mts +39 -1
  54. package/resources/onramps.d.mts.map +1 -1
  55. package/resources/onramps.d.ts +39 -1
  56. package/resources/onramps.d.ts.map +1 -1
  57. package/resources/onramps.js.map +1 -1
  58. package/resources/onramps.mjs.map +1 -1
  59. package/resources/organizations.d.mts +54 -1
  60. package/resources/organizations.d.mts.map +1 -1
  61. package/resources/organizations.d.ts +54 -1
  62. package/resources/organizations.d.ts.map +1 -1
  63. package/resources/organizations.js.map +1 -1
  64. package/resources/organizations.mjs.map +1 -1
  65. package/resources/policies.d.mts +26 -3
  66. package/resources/policies.d.mts.map +1 -1
  67. package/resources/policies.d.ts +26 -3
  68. package/resources/policies.d.ts.map +1 -1
  69. package/resources/shared.d.mts +31 -1
  70. package/resources/shared.d.mts.map +1 -1
  71. package/resources/shared.d.ts +31 -1
  72. package/resources/shared.d.ts.map +1 -1
  73. package/resources/swaps.d.mts +11 -1
  74. package/resources/swaps.d.mts.map +1 -1
  75. package/resources/swaps.d.ts +11 -1
  76. package/resources/swaps.d.ts.map +1 -1
  77. package/resources/transactions.d.mts +3 -0
  78. package/resources/transactions.d.mts.map +1 -1
  79. package/resources/transactions.d.ts +3 -0
  80. package/resources/transactions.d.ts.map +1 -1
  81. package/resources/wallet-automations.d.mts +387 -0
  82. package/resources/wallet-automations.d.mts.map +1 -0
  83. package/resources/wallet-automations.d.ts +387 -0
  84. package/resources/wallet-automations.d.ts.map +1 -0
  85. package/resources/wallet-automations.js +9 -0
  86. package/resources/wallet-automations.js.map +1 -0
  87. package/resources/wallet-automations.mjs +5 -0
  88. package/resources/wallet-automations.mjs.map +1 -0
  89. package/resources/wallets/actions.d.mts +207 -8
  90. package/resources/wallets/actions.d.mts.map +1 -1
  91. package/resources/wallets/actions.d.ts +207 -8
  92. package/resources/wallets/actions.d.ts.map +1 -1
  93. package/resources/wallets/actions.js.map +1 -1
  94. package/resources/wallets/actions.mjs.map +1 -1
  95. package/resources/wallets/balance.d.mts +3 -3
  96. package/resources/wallets/balance.d.mts.map +1 -1
  97. package/resources/wallets/balance.d.ts +3 -3
  98. package/resources/wallets/balance.d.ts.map +1 -1
  99. package/resources/wallets/index.d.mts +2 -2
  100. package/resources/wallets/index.d.mts.map +1 -1
  101. package/resources/wallets/index.d.ts +2 -2
  102. package/resources/wallets/index.d.ts.map +1 -1
  103. package/resources/wallets/index.js.map +1 -1
  104. package/resources/wallets/index.mjs.map +1 -1
  105. package/resources/wallets/transactions.d.mts +11 -2
  106. package/resources/wallets/transactions.d.mts.map +1 -1
  107. package/resources/wallets/transactions.d.ts +11 -2
  108. package/resources/wallets/transactions.d.ts.map +1 -1
  109. package/resources/wallets/wallets.d.mts +672 -48
  110. package/resources/wallets/wallets.d.mts.map +1 -1
  111. package/resources/wallets/wallets.d.ts +672 -48
  112. package/resources/wallets/wallets.d.ts.map +1 -1
  113. package/resources/wallets/wallets.js.map +1 -1
  114. package/resources/wallets/wallets.mjs.map +1 -1
  115. package/resources/webhooks.d.mts +686 -3
  116. package/resources/webhooks.d.mts.map +1 -1
  117. package/resources/webhooks.d.ts +686 -3
  118. package/resources/webhooks.d.ts.map +1 -1
  119. package/resources/webhooks.js.map +1 -1
  120. package/resources/webhooks.mjs.map +1 -1
  121. package/src/client.ts +481 -0
  122. package/src/resources/actions.ts +17 -0
  123. package/src/resources/apps.ts +5 -0
  124. package/src/resources/cards.ts +586 -0
  125. package/src/resources/client-auth.ts +29 -4
  126. package/src/resources/fiat.ts +1226 -3
  127. package/src/resources/index.ts +236 -0
  128. package/src/resources/intents.ts +2 -0
  129. package/src/resources/onramps.ts +43 -0
  130. package/src/resources/organizations.ts +68 -0
  131. package/src/resources/policies.ts +61 -0
  132. package/src/resources/shared.ts +44 -0
  133. package/src/resources/swaps.ts +13 -1
  134. package/src/resources/transactions.ts +3 -0
  135. package/src/resources/wallet-automations.ts +529 -0
  136. package/src/resources/wallets/actions.ts +261 -7
  137. package/src/resources/wallets/balance.ts +41 -1
  138. package/src/resources/wallets/index.ts +55 -0
  139. package/src/resources/wallets/transactions.ts +11 -1
  140. package/src/resources/wallets/wallets.ts +888 -39
  141. package/src/resources/webhooks.ts +878 -9
  142. package/src/version.ts +1 -1
  143. package/version.d.mts +1 -1
  144. package/version.d.ts +1 -1
  145. package/version.js +1 -1
  146. package/version.mjs +1 -1
@@ -0,0 +1,17 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import * as ActionsAPI from './wallets/actions';
5
+
6
+ export class Actions extends APIResource {}
7
+
8
+ /**
9
+ * A list of wallet actions.
10
+ */
11
+ export interface ListActions {
12
+ actions: Array<ActionsAPI.WalletActionResponse>;
13
+ }
14
+
15
+ export declare namespace Actions {
16
+ export { type ListActions as ListActions };
17
+ }
@@ -133,6 +133,11 @@ export interface AppResponse {
133
133
 
134
134
  legacy_wallet_ui_config: boolean;
135
135
 
136
+ /**
137
+ * The legal name of the company that operates the app.
138
+ */
139
+ legal_name: string | null;
140
+
136
141
  line_oauth: boolean;
137
142
 
138
143
  linkedin_oauth: boolean;
@@ -0,0 +1,586 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import * as AppsAPI from './apps';
5
+ import * as SharedAPI from './shared';
6
+
7
+ export class Cards extends APIResource {}
8
+
9
+ /**
10
+ * A single agreement the user must accept for the issuing bank.
11
+ */
12
+ export interface CardIssuingBankAgreement {
13
+ /**
14
+ * Stable identifier for this agreement, e.g. "cardholder_agreement". Match on this
15
+ * rather than on `name`, which is display copy and can be reworded.
16
+ */
17
+ id: string;
18
+
19
+ /**
20
+ * Display name, e.g. "Cardholder Agreement".
21
+ */
22
+ name: string;
23
+
24
+ /**
25
+ * Link to the agreement. Empty when the document has not been published yet.
26
+ */
27
+ url: (string & {}) | '';
28
+ }
29
+
30
+ /**
31
+ * The bank issuing the card and the agreements the user must accept for it. Served
32
+ * from the backend so the agreements can change without an SDK release, and so
33
+ * swapping banks does not require a client change.
34
+ */
35
+ export interface CardIssuingBankInfo {
36
+ /**
37
+ * Agreements the user must accept for this bank, in the order they should be
38
+ * presented. Render every entry — the set and size vary by bank.
39
+ */
40
+ agreements: Array<CardIssuingBankAgreement>;
41
+
42
+ /**
43
+ * Display name of the issuing bank, e.g. "Lead Bank".
44
+ */
45
+ name: string;
46
+ }
47
+
48
+ /**
49
+ * Why a lost or stolen card is being canceled.
50
+ */
51
+ export type CardIssuingCancellationReason = 'lost' | 'stolen';
52
+
53
+ /**
54
+ * Stripe Issuing card state bound to a Privy user and wallet.
55
+ */
56
+ export interface CardIssuingCardResponse {
57
+ id: string;
58
+
59
+ /**
60
+ * The asset the card funds from. 'usdc' on EVM and Solana, 'pathusd' on Tempo.
61
+ */
62
+ asset: string;
63
+
64
+ /**
65
+ * USD balance of the card funding wallet on the configured chain, or null when
66
+ * unavailable.
67
+ */
68
+ balance_formatted: string | null;
69
+
70
+ brand: string | null;
71
+
72
+ /**
73
+ * Cardholder metadata for a card.
74
+ */
75
+ cardholder: CardIssuingCardholder;
76
+
77
+ /**
78
+ * A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
79
+ */
80
+ chain_id: AppsAPI.Caip2;
81
+
82
+ /**
83
+ * Unix timestamp, in seconds, of when the card was created.
84
+ */
85
+ created_at: number;
86
+
87
+ /**
88
+ * Card expiration month from 1 to 12, or null when unavailable.
89
+ */
90
+ exp_month: number | null;
91
+
92
+ /**
93
+ * Four-digit card expiration year, or null when unavailable.
94
+ */
95
+ exp_year: number | null;
96
+
97
+ last4: string | null;
98
+
99
+ provider_id: string;
100
+
101
+ status: string;
102
+
103
+ wallet_id: string;
104
+ }
105
+
106
+ /**
107
+ * Lifecycle status of a card. Active unfreezes the card, inactive freezes it, and
108
+ * canceled closes it.
109
+ */
110
+ export type CardIssuingCardStatus = 'active' | 'inactive' | 'canceled';
111
+
112
+ /**
113
+ * Cardholder metadata for a card.
114
+ */
115
+ export interface CardIssuingCardholder {
116
+ /**
117
+ * Cardholder name printed on the card, or null when unavailable.
118
+ */
119
+ name: string | null;
120
+ }
121
+
122
+ /**
123
+ * Stripe Issuing cards bound to the authenticated Privy user.
124
+ */
125
+ export interface CardIssuingCardsResponse {
126
+ data: Array<CardIssuingCardResponse>;
127
+
128
+ next_cursor: string | null;
129
+ }
130
+
131
+ /**
132
+ * Browser-safe configuration for rendering Stripe Issuing card details.
133
+ */
134
+ export interface CardIssuingConfig {
135
+ /**
136
+ * Stripe publishable key for initializing Stripe.js in the browser.
137
+ */
138
+ publishable_key: string;
139
+ }
140
+
141
+ /**
142
+ * Query parameters for reading an app's card-issuing client configuration.
143
+ */
144
+ export interface CardIssuingConfigQueryParams {
145
+ /**
146
+ * The Privy API environment.
147
+ */
148
+ environment: SharedAPI.IntegrationEnvironment;
149
+ }
150
+
151
+ /**
152
+ * Browser-safe card-issuing configuration for the authenticated user's app.
153
+ */
154
+ export interface CardIssuingConfigResponse {
155
+ /**
156
+ * Browser-safe configuration for rendering Stripe Issuing card details.
157
+ */
158
+ data: CardIssuingConfig;
159
+ }
160
+
161
+ /**
162
+ * Input for creating a virtual Stripe Issuing card for a Privy wallet.
163
+ */
164
+ export interface CardIssuingCreateCardInput {
165
+ /**
166
+ * The asset to fund the card. Must be 'usdc' on EVM and Solana, or 'pathusd' on
167
+ * Tempo.
168
+ */
169
+ asset: string;
170
+
171
+ /**
172
+ * A valid CAIP-2 chain ID (e.g. 'eip155:4217' for Tempo, 'eip155:1' for Ethereum).
173
+ */
174
+ chain_id: AppsAPI.Caip2;
175
+
176
+ /**
177
+ * The Privy API environment.
178
+ */
179
+ environment: SharedAPI.IntegrationEnvironment;
180
+
181
+ wallet_id: string;
182
+ }
183
+
184
+ /**
185
+ * A cards customer exists and must accept the bank agreements. Privy records these
186
+ * rather than the provider, so this step is reached even when the provider already
187
+ * has its own terms — for example a customer onboarded through another product.
188
+ */
189
+ export interface CardIssuingCustomerBankTermsRequiredResponse {
190
+ /**
191
+ * The bank issuing the card and the agreements the user must accept for it. Served
192
+ * from the backend so the agreements can change without an SDK release, and so
193
+ * swapping banks does not require a client change.
194
+ */
195
+ bank_info: CardIssuingBankInfo;
196
+
197
+ status: 'bank_terms_required';
198
+ }
199
+
200
+ /**
201
+ * Request body for recording that the user accepted the agreements Privy tracks.
202
+ * Send one field per screen the user accepted. Acceptances are recorded once —
203
+ * re-sending a field that is already recorded leaves the original timestamp
204
+ * unchanged.
205
+ */
206
+ export interface CardIssuingCustomerConsentsRequestBody {
207
+ /**
208
+ * The Privy API environment.
209
+ */
210
+ environment: SharedAPI.IntegrationEnvironment;
211
+
212
+ /**
213
+ * Set to true when the user accepted the bank agreements. Requires the electronic
214
+ * disclosure to be accepted first, in this request or a previous one.
215
+ */
216
+ accept_bank_terms?: boolean;
217
+
218
+ /**
219
+ * Set to true when the user accepted the electronic disclosure (E-Sign consent).
220
+ */
221
+ accept_electronic_disclosure?: boolean;
222
+ }
223
+
224
+ /**
225
+ * A cards customer exists and the user must accept the electronic disclosure
226
+ * (E-Sign consent) before any other agreement can be accepted electronically.
227
+ */
228
+ export interface CardIssuingCustomerElectronicDisclosureRequiredResponse {
229
+ /**
230
+ * The disclosure the user must accept, rendered by the client.
231
+ */
232
+ disclosure_url: string;
233
+
234
+ status: 'electronic_disclosure_required';
235
+ }
236
+
237
+ /**
238
+ * The cards customer cannot continue onboarding or issue cards.
239
+ */
240
+ export interface CardIssuingCustomerErrorResponse {
241
+ status: 'error';
242
+ }
243
+
244
+ /**
245
+ * Input for getting or creating a cards customer.
246
+ */
247
+ export interface CardIssuingCustomerInput {
248
+ /**
249
+ * The Privy API environment.
250
+ */
251
+ environment: SharedAPI.IntegrationEnvironment;
252
+ }
253
+
254
+ /**
255
+ * A Bridge cards customer exists and must complete KYC before card creation.
256
+ */
257
+ export interface CardIssuingCustomerKYCRequiredResponse {
258
+ kyc_url: string;
259
+
260
+ status: 'kyc_required';
261
+ }
262
+
263
+ /**
264
+ * No cards customer has been created for this Privy user.
265
+ */
266
+ export interface CardIssuingCustomerNotCreatedResponse {
267
+ status: 'not_created';
268
+ }
269
+
270
+ /**
271
+ * A cards customer waiting for card issuing to become available.
272
+ */
273
+ export interface CardIssuingCustomerPendingResponse {
274
+ status: 'pending';
275
+ }
276
+
277
+ /**
278
+ * A cards customer exists and must accept the provider terms hosted at `tos_url`
279
+ * before KYC. Reached only once the bank agreements are recorded.
280
+ */
281
+ export interface CardIssuingCustomerProviderTermsRequiredResponse {
282
+ status: 'provider_terms_required';
283
+
284
+ tos_url: string;
285
+ }
286
+
287
+ /**
288
+ * A cards customer that has completed onboarding and can issue cards.
289
+ */
290
+ export interface CardIssuingCustomerReadyResponse {
291
+ status: 'ready';
292
+ }
293
+
294
+ /**
295
+ * The cards customer was rejected during verification.
296
+ */
297
+ export interface CardIssuingCustomerRejectedResponse {
298
+ status: 'rejected';
299
+
300
+ rejection_reasons?: Array<CardIssuingCustomerRejectionReason>;
301
+ }
302
+
303
+ /**
304
+ * A customer-facing reason the cards customer was rejected.
305
+ */
306
+ export interface CardIssuingCustomerRejectionReason {
307
+ reason: string;
308
+ }
309
+
310
+ /**
311
+ * Cards customer state for a Privy user.
312
+ */
313
+ export interface CardIssuingCustomerResponse {
314
+ /**
315
+ * No cards customer has been created for this Privy user.
316
+ */
317
+ data:
318
+ | CardIssuingCustomerNotCreatedResponse
319
+ | CardIssuingCustomerElectronicDisclosureRequiredResponse
320
+ | CardIssuingCustomerBankTermsRequiredResponse
321
+ | CardIssuingCustomerProviderTermsRequiredResponse
322
+ | CardIssuingCustomerKYCRequiredResponse
323
+ | CardIssuingCustomerPendingResponse
324
+ | CardIssuingCustomerUnderReviewResponse
325
+ | CardIssuingCustomerRejectedResponse
326
+ | CardIssuingCustomerErrorResponse
327
+ | CardIssuingCustomerReadyResponse;
328
+ }
329
+
330
+ /**
331
+ * A cards customer undergoing provider review before onboarding can continue.
332
+ */
333
+ export interface CardIssuingCustomerUnderReviewResponse {
334
+ status: 'under_review';
335
+ }
336
+
337
+ /**
338
+ * Dispute associated with card activity.
339
+ */
340
+ export interface CardIssuingDispute {
341
+ /**
342
+ * Status of a dispute for card activity.
343
+ */
344
+ status: CardIssuingDisputeStatus;
345
+ }
346
+
347
+ /**
348
+ * Status of a dispute for card activity.
349
+ */
350
+ export type CardIssuingDisputeStatus = 'expired' | 'lost' | 'submitted' | 'unsubmitted' | 'won';
351
+
352
+ /**
353
+ * Short-lived Stripe authorization for displaying card details.
354
+ */
355
+ export interface CardIssuingEphemeralKey {
356
+ /**
357
+ * Secret used only by Stripe Issuing Elements in the authenticated browser.
358
+ */
359
+ ephemeral_key_secret: string;
360
+ }
361
+
362
+ /**
363
+ * Request body for authorizing Stripe Issuing Elements to display card details.
364
+ */
365
+ export interface CardIssuingEphemeralKeyRequestBody {
366
+ /**
367
+ * The Privy API environment.
368
+ */
369
+ environment: SharedAPI.IntegrationEnvironment;
370
+
371
+ /**
372
+ * Browser nonce returned by Stripe.js for the card provider ID.
373
+ */
374
+ nonce: string;
375
+ }
376
+
377
+ /**
378
+ * Short-lived Stripe authorization for displaying an authenticated card.
379
+ */
380
+ export interface CardIssuingEphemeralKeyResponse {
381
+ /**
382
+ * Short-lived Stripe authorization for displaying card details.
383
+ */
384
+ data: CardIssuingEphemeralKey;
385
+ }
386
+
387
+ /**
388
+ * Query parameters for listing cards bound to the authenticated Privy user.
389
+ */
390
+ export interface CardIssuingListCardsInput {
391
+ /**
392
+ * The Privy API environment.
393
+ */
394
+ environment: SharedAPI.IntegrationEnvironment;
395
+
396
+ /**
397
+ * Cursor returned by the previous page.
398
+ */
399
+ cursor?: string;
400
+
401
+ /**
402
+ * Maximum number of cards to return.
403
+ */
404
+ limit?: number;
405
+ }
406
+
407
+ /**
408
+ * Query parameters for listing activity for a Privy card.
409
+ */
410
+ export interface CardIssuingListTransactionsInput {
411
+ /**
412
+ * The Privy API environment.
413
+ */
414
+ environment: SharedAPI.IntegrationEnvironment;
415
+
416
+ /**
417
+ * Opaque cursor returned by the previous page.
418
+ */
419
+ cursor?: string;
420
+
421
+ /**
422
+ * Maximum number of records requested from each card activity source.
423
+ */
424
+ limit?: number;
425
+ }
426
+
427
+ /**
428
+ * Merchant metadata for card activity.
429
+ */
430
+ export interface CardIssuingMerchant {
431
+ name: string | null;
432
+ }
433
+
434
+ /**
435
+ * Encrypted PIN to set on the card.
436
+ */
437
+ export interface CardIssuingPinUpdate {
438
+ /**
439
+ * The PIN, encrypted with the Stripe Issuing key.
440
+ */
441
+ encrypted_number: string;
442
+ }
443
+
444
+ /**
445
+ * Input for replacing a lost, stolen, or expired card.
446
+ */
447
+ export interface CardIssuingReplaceCardRequestBody {
448
+ /**
449
+ * The Privy API environment.
450
+ */
451
+ environment: SharedAPI.IntegrationEnvironment;
452
+
453
+ /**
454
+ * Why a card is being replaced.
455
+ */
456
+ replacement_reason: CardIssuingReplacementReason;
457
+ }
458
+
459
+ /**
460
+ * Why a card is being replaced.
461
+ */
462
+ export type CardIssuingReplacementReason = 'lost' | 'stolen' | 'expired';
463
+
464
+ /**
465
+ * Query parameters for downloading a monthly card statement.
466
+ */
467
+ export interface CardIssuingStatementQueryParams {
468
+ /**
469
+ * The Privy API environment.
470
+ */
471
+ environment: SharedAPI.IntegrationEnvironment;
472
+ }
473
+
474
+ /**
475
+ * Card activity
476
+ */
477
+ export interface CardIssuingTransactionResponse {
478
+ id: string;
479
+
480
+ amount: number;
481
+
482
+ created: number;
483
+
484
+ currency: string;
485
+
486
+ /**
487
+ * Dispute associated with card activity.
488
+ */
489
+ dispute: CardIssuingDispute | null;
490
+
491
+ /**
492
+ * Merchant metadata for card activity.
493
+ */
494
+ merchant: CardIssuingMerchant;
495
+
496
+ /**
497
+ * Status for card activity.
498
+ */
499
+ status: CardIssuingTransactionStatus;
500
+ }
501
+
502
+ /**
503
+ * Status for card activity.
504
+ */
505
+ export type CardIssuingTransactionStatus = 'pending' | 'posted' | 'declined' | 'expired' | 'reversed';
506
+
507
+ /**
508
+ * A chronological list of card activity.
509
+ */
510
+ export interface CardIssuingTransactionsResponse {
511
+ data: Array<CardIssuingTransactionResponse>;
512
+
513
+ next_cursor: string | null;
514
+ }
515
+
516
+ /**
517
+ * Input for updating a card.
518
+ */
519
+ export interface CardIssuingUpdateCardInput {
520
+ /**
521
+ * The Privy API environment.
522
+ */
523
+ environment: SharedAPI.IntegrationEnvironment;
524
+
525
+ /**
526
+ * Why a lost or stolen card is being canceled.
527
+ */
528
+ cancellation_reason?: CardIssuingCancellationReason;
529
+
530
+ /**
531
+ * Encrypted PIN to set on the card.
532
+ */
533
+ pin?: CardIssuingPinUpdate;
534
+
535
+ /**
536
+ * Lifecycle status of a card. Active unfreezes the card, inactive freezes it, and
537
+ * canceled closes it.
538
+ */
539
+ status?: CardIssuingCardStatus;
540
+ }
541
+
542
+ export declare namespace Cards {
543
+ export {
544
+ type CardIssuingBankAgreement as CardIssuingBankAgreement,
545
+ type CardIssuingBankInfo as CardIssuingBankInfo,
546
+ type CardIssuingCancellationReason as CardIssuingCancellationReason,
547
+ type CardIssuingCardResponse as CardIssuingCardResponse,
548
+ type CardIssuingCardStatus as CardIssuingCardStatus,
549
+ type CardIssuingCardholder as CardIssuingCardholder,
550
+ type CardIssuingCardsResponse as CardIssuingCardsResponse,
551
+ type CardIssuingConfig as CardIssuingConfig,
552
+ type CardIssuingConfigQueryParams as CardIssuingConfigQueryParams,
553
+ type CardIssuingConfigResponse as CardIssuingConfigResponse,
554
+ type CardIssuingCreateCardInput as CardIssuingCreateCardInput,
555
+ type CardIssuingCustomerBankTermsRequiredResponse as CardIssuingCustomerBankTermsRequiredResponse,
556
+ type CardIssuingCustomerConsentsRequestBody as CardIssuingCustomerConsentsRequestBody,
557
+ type CardIssuingCustomerElectronicDisclosureRequiredResponse as CardIssuingCustomerElectronicDisclosureRequiredResponse,
558
+ type CardIssuingCustomerErrorResponse as CardIssuingCustomerErrorResponse,
559
+ type CardIssuingCustomerInput as CardIssuingCustomerInput,
560
+ type CardIssuingCustomerKYCRequiredResponse as CardIssuingCustomerKYCRequiredResponse,
561
+ type CardIssuingCustomerNotCreatedResponse as CardIssuingCustomerNotCreatedResponse,
562
+ type CardIssuingCustomerPendingResponse as CardIssuingCustomerPendingResponse,
563
+ type CardIssuingCustomerProviderTermsRequiredResponse as CardIssuingCustomerProviderTermsRequiredResponse,
564
+ type CardIssuingCustomerReadyResponse as CardIssuingCustomerReadyResponse,
565
+ type CardIssuingCustomerRejectedResponse as CardIssuingCustomerRejectedResponse,
566
+ type CardIssuingCustomerRejectionReason as CardIssuingCustomerRejectionReason,
567
+ type CardIssuingCustomerResponse as CardIssuingCustomerResponse,
568
+ type CardIssuingCustomerUnderReviewResponse as CardIssuingCustomerUnderReviewResponse,
569
+ type CardIssuingDispute as CardIssuingDispute,
570
+ type CardIssuingDisputeStatus as CardIssuingDisputeStatus,
571
+ type CardIssuingEphemeralKey as CardIssuingEphemeralKey,
572
+ type CardIssuingEphemeralKeyRequestBody as CardIssuingEphemeralKeyRequestBody,
573
+ type CardIssuingEphemeralKeyResponse as CardIssuingEphemeralKeyResponse,
574
+ type CardIssuingListCardsInput as CardIssuingListCardsInput,
575
+ type CardIssuingListTransactionsInput as CardIssuingListTransactionsInput,
576
+ type CardIssuingMerchant as CardIssuingMerchant,
577
+ type CardIssuingPinUpdate as CardIssuingPinUpdate,
578
+ type CardIssuingReplaceCardRequestBody as CardIssuingReplaceCardRequestBody,
579
+ type CardIssuingReplacementReason as CardIssuingReplacementReason,
580
+ type CardIssuingStatementQueryParams as CardIssuingStatementQueryParams,
581
+ type CardIssuingTransactionResponse as CardIssuingTransactionResponse,
582
+ type CardIssuingTransactionStatus as CardIssuingTransactionStatus,
583
+ type CardIssuingTransactionsResponse as CardIssuingTransactionsResponse,
584
+ type CardIssuingUpdateCardInput as CardIssuingUpdateCardInput,
585
+ };
586
+ }
@@ -1061,17 +1061,28 @@ export interface OAuthTokenSuccessResponse {
1061
1061
  }
1062
1062
 
1063
1063
  /**
1064
- * The request body for transferring an OAuth account.
1064
+ * OAuth transfer request body for native SDKs using PKCE.
1065
1065
  */
1066
- export interface OAuthTransferRequestBody {
1066
+ export interface OAuthTransferNativeSDKRequestBody {
1067
+ authorization_code: string;
1068
+
1067
1069
  nonce: string;
1068
1070
 
1071
+ state_code: string;
1072
+
1069
1073
  /**
1070
- * User info for an OAuth transfer.
1074
+ * The type of OAuth authorization code.
1071
1075
  */
1072
- userInfo: OAuthTransferUserInfo;
1076
+ code_type?: OAuthCodeType;
1077
+
1078
+ code_verifier?: string;
1073
1079
  }
1074
1080
 
1081
+ /**
1082
+ * The request body for transferring an OAuth account.
1083
+ */
1084
+ export type OAuthTransferRequestBody = OAuthTransferNativeSDKRequestBody | OAuthTransferWebSDKRequestBody;
1085
+
1075
1086
  /**
1076
1087
  * User info for an OAuth transfer.
1077
1088
  */
@@ -1105,6 +1116,18 @@ export interface OAuthTransferUserInfoMeta {
1105
1116
  providerAppId?: string;
1106
1117
  }
1107
1118
 
1119
+ /**
1120
+ * OAuth transfer request body for the web SDK.
1121
+ */
1122
+ export interface OAuthTransferWebSDKRequestBody {
1123
+ nonce: string;
1124
+
1125
+ /**
1126
+ * User info for an OAuth transfer.
1127
+ */
1128
+ userInfo: OAuthTransferUserInfo;
1129
+ }
1130
+
1108
1131
  /**
1109
1132
  * The request body for unlinking an OAuth account.
1110
1133
  */
@@ -2128,9 +2151,11 @@ export declare namespace ClientAuth {
2128
2151
  type OAuthTokenRefreshTokenRequestBody as OAuthTokenRefreshTokenRequestBody,
2129
2152
  type OAuthTokenRequestBody as OAuthTokenRequestBody,
2130
2153
  type OAuthTokenSuccessResponse as OAuthTokenSuccessResponse,
2154
+ type OAuthTransferNativeSDKRequestBody as OAuthTransferNativeSDKRequestBody,
2131
2155
  type OAuthTransferRequestBody as OAuthTransferRequestBody,
2132
2156
  type OAuthTransferUserInfo as OAuthTransferUserInfo,
2133
2157
  type OAuthTransferUserInfoMeta as OAuthTransferUserInfoMeta,
2158
+ type OAuthTransferWebSDKRequestBody as OAuthTransferWebSDKRequestBody,
2134
2159
  type OAuthUnlinkRequestBody as OAuthUnlinkRequestBody,
2135
2160
  type OAuthVerifyRequestBody as OAuthVerifyRequestBody,
2136
2161
  type OAuthVerifyResponseBody as OAuthVerifyResponseBody,