@privy-io/api-types 0.5.0 → 0.6.1

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 (89) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/client.d.mts +13 -7
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +13 -7
  5. package/client.d.ts.map +1 -1
  6. package/client.js +15 -2
  7. package/client.js.map +1 -1
  8. package/client.mjs +15 -2
  9. package/client.mjs.map +1 -1
  10. package/internal/tslib.js +17 -17
  11. package/internal/utils/query.d.mts +2 -0
  12. package/internal/utils/query.d.mts.map +1 -0
  13. package/internal/utils/query.d.ts +2 -0
  14. package/internal/utils/query.d.ts.map +1 -0
  15. package/internal/utils/query.js +10 -0
  16. package/internal/utils/query.js.map +1 -0
  17. package/internal/utils/query.mjs +6 -0
  18. package/internal/utils/query.mjs.map +1 -0
  19. package/internal/utils.d.mts +1 -0
  20. package/internal/utils.d.ts +1 -0
  21. package/internal/utils.js +1 -0
  22. package/internal/utils.js.map +1 -1
  23. package/internal/utils.mjs +1 -0
  24. package/package.json +1 -1
  25. package/resources/accounts.d.mts +85 -0
  26. package/resources/accounts.d.mts.map +1 -0
  27. package/resources/accounts.d.ts +85 -0
  28. package/resources/accounts.d.ts.map +1 -0
  29. package/resources/accounts.js +9 -0
  30. package/resources/accounts.js.map +1 -0
  31. package/resources/accounts.mjs +5 -0
  32. package/resources/accounts.mjs.map +1 -0
  33. package/resources/client-auth.d.mts +15 -1
  34. package/resources/client-auth.d.mts.map +1 -1
  35. package/resources/client-auth.d.ts +15 -1
  36. package/resources/client-auth.d.ts.map +1 -1
  37. package/resources/index.d.mts +5 -3
  38. package/resources/index.d.mts.map +1 -1
  39. package/resources/index.d.ts +5 -3
  40. package/resources/index.d.ts.map +1 -1
  41. package/resources/index.js +5 -1
  42. package/resources/index.js.map +1 -1
  43. package/resources/index.mjs +2 -0
  44. package/resources/index.mjs.map +1 -1
  45. package/resources/intents.d.mts +104 -0
  46. package/resources/intents.d.mts.map +1 -0
  47. package/resources/intents.d.ts +104 -0
  48. package/resources/intents.d.ts.map +1 -0
  49. package/resources/intents.js +9 -0
  50. package/resources/intents.js.map +1 -0
  51. package/resources/intents.mjs +5 -0
  52. package/resources/intents.mjs.map +1 -0
  53. package/resources/key-quorums.d.mts +14 -0
  54. package/resources/key-quorums.d.mts.map +1 -1
  55. package/resources/key-quorums.d.ts +14 -0
  56. package/resources/key-quorums.d.ts.map +1 -1
  57. package/resources/policies.d.mts +8 -8
  58. package/resources/policies.d.ts +8 -8
  59. package/resources/wallets/wallets.d.mts +11 -4
  60. package/resources/wallets/wallets.d.mts.map +1 -1
  61. package/resources/wallets/wallets.d.ts +11 -4
  62. package/resources/wallets/wallets.d.ts.map +1 -1
  63. package/resources/wallets/wallets.js.map +1 -1
  64. package/resources/wallets/wallets.mjs.map +1 -1
  65. package/resources/webhooks.d.mts +38 -1
  66. package/resources/webhooks.d.mts.map +1 -1
  67. package/resources/webhooks.d.ts +38 -1
  68. package/resources/webhooks.d.ts.map +1 -1
  69. package/resources/yield.d.mts +48 -1
  70. package/resources/yield.d.mts.map +1 -1
  71. package/resources/yield.d.ts +48 -1
  72. package/resources/yield.d.ts.map +1 -1
  73. package/src/client.ts +56 -4
  74. package/src/internal/utils/query.ts +7 -0
  75. package/src/internal/utils.ts +1 -0
  76. package/src/resources/accounts.ts +106 -0
  77. package/src/resources/client-auth.ts +22 -0
  78. package/src/resources/index.ts +17 -0
  79. package/src/resources/intents.ts +138 -0
  80. package/src/resources/key-quorums.ts +17 -0
  81. package/src/resources/policies.ts +8 -8
  82. package/src/resources/wallets/wallets.ts +13 -5
  83. package/src/resources/webhooks.ts +60 -0
  84. package/src/resources/yield.ts +59 -0
  85. package/src/version.ts +1 -1
  86. package/version.d.mts +1 -1
  87. package/version.d.ts +1 -1
  88. package/version.js +1 -1
  89. package/version.mjs +1 -1
@@ -1,6 +1,10 @@
1
1
  import { APIResource } from "../core/resource.mjs";
2
2
  export declare class Yield extends APIResource {
3
3
  }
4
+ /**
5
+ * An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
6
+ */
7
+ export type EvmCaip2ChainID = string;
4
8
  /**
5
9
  * Supported yield/lending protocol providers.
6
10
  */
@@ -258,7 +262,50 @@ export declare namespace EthereumYieldPositionResponse {
258
262
  symbol: string;
259
263
  }
260
264
  }
265
+ /**
266
+ * Input for claiming incentive rewards from vault participation.
267
+ */
268
+ export interface EthereumYieldClaimInput {
269
+ /**
270
+ * An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
271
+ */
272
+ caip2: EvmCaip2ChainID;
273
+ }
274
+ /**
275
+ * A single reward token claimed from vault participation.
276
+ */
277
+ export interface EthereumYieldClaimReward {
278
+ /**
279
+ * Amount claimed in the smallest unit.
280
+ */
281
+ amount: string;
282
+ /**
283
+ * Reward token contract address.
284
+ */
285
+ token_address: string;
286
+ /**
287
+ * Reward token symbol (e.g., "MORPHO").
288
+ */
289
+ token_symbol: string;
290
+ }
291
+ /**
292
+ * Response from a yield reward claim operation.
293
+ */
294
+ export interface EthereumYieldClaimResponse {
295
+ /**
296
+ * Privy transaction record ID for the claim operation.
297
+ */
298
+ id: string;
299
+ /**
300
+ * An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
301
+ */
302
+ caip2: EvmCaip2ChainID;
303
+ /**
304
+ * List of reward tokens claimed.
305
+ */
306
+ rewards: Array<EthereumYieldClaimReward>;
307
+ }
261
308
  export declare namespace Yield {
262
- export { type EthereumYieldProvider as EthereumYieldProvider, type EthereumYieldSweepType as EthereumYieldSweepType, type EthereumYieldSweepStatus as EthereumYieldSweepStatus, type EthereumYieldDepositInput as EthereumYieldDepositInput, type EthereumYieldWithdrawInput as EthereumYieldWithdrawInput, type EthereumYieldSweepResponse as EthereumYieldSweepResponse, type EthereumVaultDetailsInput as EthereumVaultDetailsInput, type EthereumYieldSweepIDInput as EthereumYieldSweepIDInput, type EthereumVaultResponse as EthereumVaultResponse, type EthereumVaultDetailsResponse as EthereumVaultDetailsResponse, type EthereumYieldPositionsInput as EthereumYieldPositionsInput, type EthereumVaultPosition as EthereumVaultPosition, type EthereumYieldPositionResponse as EthereumYieldPositionResponse, };
309
+ export { type EvmCaip2ChainID as EvmCaip2ChainID, type EthereumYieldProvider as EthereumYieldProvider, type EthereumYieldSweepType as EthereumYieldSweepType, type EthereumYieldSweepStatus as EthereumYieldSweepStatus, type EthereumYieldDepositInput as EthereumYieldDepositInput, type EthereumYieldWithdrawInput as EthereumYieldWithdrawInput, type EthereumYieldSweepResponse as EthereumYieldSweepResponse, type EthereumVaultDetailsInput as EthereumVaultDetailsInput, type EthereumYieldSweepIDInput as EthereumYieldSweepIDInput, type EthereumVaultResponse as EthereumVaultResponse, type EthereumVaultDetailsResponse as EthereumVaultDetailsResponse, type EthereumYieldPositionsInput as EthereumYieldPositionsInput, type EthereumVaultPosition as EthereumVaultPosition, type EthereumYieldPositionResponse as EthereumYieldPositionResponse, type EthereumYieldClaimInput as EthereumYieldClaimInput, type EthereumYieldClaimReward as EthereumYieldClaimReward, type EthereumYieldClaimResponse as EthereumYieldClaimResponse, };
263
310
  }
264
311
  //# sourceMappingURL=yield.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"yield.d.mts","sourceRoot":"","sources":["../src/resources/yield.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,KAAM,SAAQ,WAAW;CAAG;AAEzC;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,UAAU,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;AAE1E;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ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G;QACH,MAAM,EAAE,MAAM,CAAC;KAChB;CACF;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,EAAE,eAAe,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,eAAe,CAAC;IAEvB;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAC;CAC1C;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
@@ -1,6 +1,10 @@
1
1
  import { APIResource } from "../core/resource.js";
2
2
  export declare class Yield extends APIResource {
3
3
  }
4
+ /**
5
+ * An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
6
+ */
7
+ export type EvmCaip2ChainID = string;
4
8
  /**
5
9
  * Supported yield/lending protocol providers.
6
10
  */
@@ -258,7 +262,50 @@ export declare namespace EthereumYieldPositionResponse {
258
262
  symbol: string;
259
263
  }
260
264
  }
265
+ /**
266
+ * Input for claiming incentive rewards from vault participation.
267
+ */
268
+ export interface EthereumYieldClaimInput {
269
+ /**
270
+ * An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
271
+ */
272
+ caip2: EvmCaip2ChainID;
273
+ }
274
+ /**
275
+ * A single reward token claimed from vault participation.
276
+ */
277
+ export interface EthereumYieldClaimReward {
278
+ /**
279
+ * Amount claimed in the smallest unit.
280
+ */
281
+ amount: string;
282
+ /**
283
+ * Reward token contract address.
284
+ */
285
+ token_address: string;
286
+ /**
287
+ * Reward token symbol (e.g., "MORPHO").
288
+ */
289
+ token_symbol: string;
290
+ }
291
+ /**
292
+ * Response from a yield reward claim operation.
293
+ */
294
+ export interface EthereumYieldClaimResponse {
295
+ /**
296
+ * Privy transaction record ID for the claim operation.
297
+ */
298
+ id: string;
299
+ /**
300
+ * An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
301
+ */
302
+ caip2: EvmCaip2ChainID;
303
+ /**
304
+ * List of reward tokens claimed.
305
+ */
306
+ rewards: Array<EthereumYieldClaimReward>;
307
+ }
261
308
  export declare namespace Yield {
262
- export { type EthereumYieldProvider as EthereumYieldProvider, type EthereumYieldSweepType as EthereumYieldSweepType, type EthereumYieldSweepStatus as EthereumYieldSweepStatus, type EthereumYieldDepositInput as EthereumYieldDepositInput, type EthereumYieldWithdrawInput as EthereumYieldWithdrawInput, type EthereumYieldSweepResponse as EthereumYieldSweepResponse, type EthereumVaultDetailsInput as EthereumVaultDetailsInput, type EthereumYieldSweepIDInput as EthereumYieldSweepIDInput, type EthereumVaultResponse as EthereumVaultResponse, type EthereumVaultDetailsResponse as EthereumVaultDetailsResponse, type EthereumYieldPositionsInput as EthereumYieldPositionsInput, type EthereumVaultPosition as EthereumVaultPosition, type EthereumYieldPositionResponse as EthereumYieldPositionResponse, };
309
+ export { type EvmCaip2ChainID as EvmCaip2ChainID, type EthereumYieldProvider as EthereumYieldProvider, type EthereumYieldSweepType as EthereumYieldSweepType, type EthereumYieldSweepStatus as EthereumYieldSweepStatus, type EthereumYieldDepositInput as EthereumYieldDepositInput, type EthereumYieldWithdrawInput as EthereumYieldWithdrawInput, type EthereumYieldSweepResponse as EthereumYieldSweepResponse, type EthereumVaultDetailsInput as EthereumVaultDetailsInput, type EthereumYieldSweepIDInput as EthereumYieldSweepIDInput, type EthereumVaultResponse as EthereumVaultResponse, type EthereumVaultDetailsResponse as EthereumVaultDetailsResponse, type EthereumYieldPositionsInput as EthereumYieldPositionsInput, type EthereumVaultPosition as EthereumVaultPosition, type EthereumYieldPositionResponse as EthereumYieldPositionResponse, type EthereumYieldClaimInput as EthereumYieldClaimInput, type EthereumYieldClaimReward as EthereumYieldClaimReward, type EthereumYieldClaimResponse as EthereumYieldClaimResponse, };
263
310
  }
264
311
  //# sourceMappingURL=yield.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"yield.d.ts","sourceRoot":"","sources":["../src/resources/yield.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,KAAM,SAAQ,WAAW;CAAG;AAEzC;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,SAAS,GAAG,UAAU,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;AAE1E;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB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,CAAC;KAChB;CACF;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,KAAK,EAAE,eAAe,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,KAAK,EAAE,eAAe,CAAC;IAEvB;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAC;CAC1C;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
package/src/client.ts CHANGED
@@ -11,7 +11,7 @@ import type { APIResponseProps } from './internal/parse';
11
11
  import { getPlatformHeaders } from './internal/detect-platform';
12
12
  import * as Shims from './internal/shims';
13
13
  import * as Opts from './internal/request-options';
14
- import * as qs from './internal/qs';
14
+ import { stringifyQuery } from './internal/utils/query';
15
15
  import { VERSION } from './version';
16
16
  import * as Errors from './core/error';
17
17
  import * as Pagination from './core/pagination';
@@ -19,6 +19,14 @@ import { AbstractPage, type CursorParams, CursorResponse } from './core/paginati
19
19
  import * as Uploads from './core/uploads';
20
20
  import * as API from './resources/index';
21
21
  import { APIPromise } from './core/api-promise';
22
+ import {
23
+ AccountResponse,
24
+ AccountWallet,
25
+ AccountWalletConfigurationItem,
26
+ Accounts,
27
+ AccountsListResponse,
28
+ CreateAccountInput,
29
+ } from './resources/accounts';
22
30
  import {
23
31
  Aggregation,
24
32
  AggregationGroupBy,
@@ -35,6 +43,7 @@ import {
35
43
  BridgeDestinationAsset,
36
44
  BridgeEurFiatVirtualAccountDepositInstructions,
37
45
  BridgeFiatCustomerResponse,
46
+ BridgeFiatRejectionReason,
38
47
  BridgeFiatVirtualAccountDepositInstructions,
39
48
  BridgeFiatVirtualAccountDestination,
40
49
  BridgeFiatVirtualAccountRequest,
@@ -42,6 +51,7 @@ import {
42
51
  BridgeFiatVirtualAccountSource,
43
52
  BridgeGbpFiatVirtualAccountDepositInstructions,
44
53
  BridgeMxnFiatVirtualAccountDepositInstructions,
54
+ BridgeOnrampProvider,
45
55
  BridgeSandboxFiatCustomerResponse,
46
56
  BridgeSandboxFiatVirtualAccountRequest,
47
57
  BridgeSandboxFiatVirtualAccountResponse,
@@ -149,6 +159,7 @@ import {
149
159
  MoonpayOnRampSignInput,
150
160
  MoonpayOnRampSignResponse,
151
161
  } from './resources/funding';
162
+ import { IntentAuthorizationKeyQuorumMember, IntentAuthorizationMember, Intents } from './resources/intents';
152
163
  import {
153
164
  KeyQuorum,
154
165
  KeyQuorumCreateParams,
@@ -303,12 +314,17 @@ import {
303
314
  WalletRecoveredWebhookPayload,
304
315
  WalletRecoverySetupWebhookPayload,
305
316
  Webhooks,
317
+ YieldDepositConfirmedWebhookPayload,
318
+ YieldWithdrawConfirmedWebhookPayload,
306
319
  } from './resources/webhooks';
307
320
  import {
308
321
  EthereumVaultDetailsInput,
309
322
  EthereumVaultDetailsResponse,
310
323
  EthereumVaultPosition,
311
324
  EthereumVaultResponse,
325
+ EthereumYieldClaimInput,
326
+ EthereumYieldClaimResponse,
327
+ EthereumYieldClaimReward,
312
328
  EthereumYieldDepositInput,
313
329
  EthereumYieldPositionResponse,
314
330
  EthereumYieldPositionsInput,
@@ -318,6 +334,7 @@ import {
318
334
  EthereumYieldSweepStatus,
319
335
  EthereumYieldSweepType,
320
336
  EthereumYieldWithdrawInput,
337
+ EvmCaip2ChainID,
321
338
  Yield,
322
339
  } from './resources/yield';
323
340
  import {
@@ -628,8 +645,8 @@ export class Privy {
628
645
  return buildHeaders([{ Authorization }]);
629
646
  }
630
647
 
631
- protected stringifyQuery(query: Record<string, unknown>): string {
632
- return qs.stringify(query, { arrayFormat: 'comma' });
648
+ protected stringifyQuery(query: object | Record<string, unknown>): string {
649
+ return stringifyQuery(query);
633
650
  }
634
651
 
635
652
  private getUserAgent(): string {
@@ -666,7 +683,7 @@ export class Privy {
666
683
  }
667
684
 
668
685
  if (typeof query === 'object' && query && !Array.isArray(query)) {
669
- url.search = this.stringifyQuery(query as Record<string, unknown>);
686
+ url.search = this.stringifyQuery(query);
670
687
  }
671
688
 
672
689
  return url.toString();
@@ -1124,6 +1141,14 @@ export class Privy {
1124
1141
  (Symbol.iterator in body && 'next' in body && typeof body.next === 'function'))
1125
1142
  ) {
1126
1143
  return { bodyHeaders: undefined, body: Shims.ReadableStreamFrom(body as AsyncIterable<Uint8Array>) };
1144
+ } else if (
1145
+ typeof body === 'object' &&
1146
+ headers.values.get('content-type') === 'application/x-www-form-urlencoded'
1147
+ ) {
1148
+ return {
1149
+ bodyHeaders: { 'content-type': 'application/x-www-form-urlencoded' },
1150
+ body: this.stringifyQuery(body),
1151
+ };
1127
1152
  } else {
1128
1153
  return this.#encoder({ body, headers });
1129
1154
  }
@@ -1161,7 +1186,9 @@ export class Privy {
1161
1186
  keyQuorums: API.KeyQuorums = new API.KeyQuorums(this);
1162
1187
  aggregations: API.Aggregations = new API.Aggregations(this);
1163
1188
  webhooks: API.Webhooks = new API.Webhooks(this);
1189
+ accounts: API.Accounts = new API.Accounts(this);
1164
1190
  yield: API.Yield = new API.Yield(this);
1191
+ intents: API.Intents = new API.Intents(this);
1165
1192
  }
1166
1193
 
1167
1194
  Privy.Wallets = Wallets;
@@ -1177,7 +1204,9 @@ Privy.Transactions = Transactions;
1177
1204
  Privy.KeyQuorums = KeyQuorums;
1178
1205
  Privy.Aggregations = Aggregations;
1179
1206
  Privy.Webhooks = Webhooks;
1207
+ Privy.Accounts = Accounts;
1180
1208
  Privy.Yield = Yield;
1209
+ Privy.Intents = Intents;
1181
1210
 
1182
1211
  export declare namespace Privy {
1183
1212
  export type RequestOptions = Opts.RequestOptions;
@@ -1333,9 +1362,11 @@ export declare namespace Privy {
1333
1362
  type PrivyOAuthProviderID as PrivyOAuthProviderID,
1334
1363
  type CustomOAuthProviderID as CustomOAuthProviderID,
1335
1364
  type OAuthProviderID as OAuthProviderID,
1365
+ type BridgeOnrampProvider as BridgeOnrampProvider,
1336
1366
  type OnrampProvider as OnrampProvider,
1337
1367
  type GetFiatCustomerRequestInput as GetFiatCustomerRequestInput,
1338
1368
  type CreateOrUpdateFiatCustomerRequestInput as CreateOrUpdateFiatCustomerRequestInput,
1369
+ type BridgeFiatRejectionReason as BridgeFiatRejectionReason,
1339
1370
  type BridgeFiatCustomerResponse as BridgeFiatCustomerResponse,
1340
1371
  type BridgeSandboxFiatCustomerResponse as BridgeSandboxFiatCustomerResponse,
1341
1372
  type FiatCustomerResponse as FiatCustomerResponse,
@@ -1538,10 +1569,22 @@ export declare namespace Privy {
1538
1569
  type KrakenEmbedUserVerifiedWebhookPayload as KrakenEmbedUserVerifiedWebhookPayload,
1539
1570
  type KrakenEmbedUserDisabledWebhookPayload as KrakenEmbedUserDisabledWebhookPayload,
1540
1571
  type KrakenEmbedUserClosedWebhookPayload as KrakenEmbedUserClosedWebhookPayload,
1572
+ type YieldDepositConfirmedWebhookPayload as YieldDepositConfirmedWebhookPayload,
1573
+ type YieldWithdrawConfirmedWebhookPayload as YieldWithdrawConfirmedWebhookPayload,
1574
+ };
1575
+
1576
+ export {
1577
+ Accounts as Accounts,
1578
+ type AccountWallet as AccountWallet,
1579
+ type AccountResponse as AccountResponse,
1580
+ type AccountWalletConfigurationItem as AccountWalletConfigurationItem,
1581
+ type CreateAccountInput as CreateAccountInput,
1582
+ type AccountsListResponse as AccountsListResponse,
1541
1583
  };
1542
1584
 
1543
1585
  export {
1544
1586
  Yield as Yield,
1587
+ type EvmCaip2ChainID as EvmCaip2ChainID,
1545
1588
  type EthereumYieldProvider as EthereumYieldProvider,
1546
1589
  type EthereumYieldSweepType as EthereumYieldSweepType,
1547
1590
  type EthereumYieldSweepStatus as EthereumYieldSweepStatus,
@@ -1555,5 +1598,14 @@ export declare namespace Privy {
1555
1598
  type EthereumYieldPositionsInput as EthereumYieldPositionsInput,
1556
1599
  type EthereumVaultPosition as EthereumVaultPosition,
1557
1600
  type EthereumYieldPositionResponse as EthereumYieldPositionResponse,
1601
+ type EthereumYieldClaimInput as EthereumYieldClaimInput,
1602
+ type EthereumYieldClaimReward as EthereumYieldClaimReward,
1603
+ type EthereumYieldClaimResponse as EthereumYieldClaimResponse,
1604
+ };
1605
+
1606
+ export {
1607
+ Intents as Intents,
1608
+ type IntentAuthorizationKeyQuorumMember as IntentAuthorizationKeyQuorumMember,
1609
+ type IntentAuthorizationMember as IntentAuthorizationMember,
1558
1610
  };
1559
1611
  }
@@ -0,0 +1,7 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import * as qs from '../qs/stringify';
4
+
5
+ export function stringifyQuery(query: object | Record<string, unknown>) {
6
+ return qs.stringify(query, { arrayFormat: 'comma' });
7
+ }
@@ -6,3 +6,4 @@ export * from './utils/env';
6
6
  export * from './utils/log';
7
7
  export * from './utils/uuid';
8
8
  export * from './utils/sleep';
9
+ export * from './utils/query';
@@ -0,0 +1,106 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import * as WalletsAPI from './wallets/wallets';
5
+
6
+ export class Accounts extends APIResource {}
7
+
8
+ /**
9
+ * A wallet belonging to a digital asset account.
10
+ */
11
+ export interface AccountWallet {
12
+ /**
13
+ * The wallet ID.
14
+ */
15
+ id: string;
16
+
17
+ /**
18
+ * The on-chain address of the wallet.
19
+ */
20
+ address: string;
21
+
22
+ /**
23
+ * The wallet chain types that offer first class support.
24
+ */
25
+ chain_type: WalletsAPI.FirstClassChainType;
26
+
27
+ /**
28
+ * Information about the custodian managing this wallet.
29
+ */
30
+ custody?: WalletsAPI.WalletCustodian;
31
+ }
32
+
33
+ /**
34
+ * A digital asset account that groups wallets under a single entity.
35
+ */
36
+ export interface AccountResponse {
37
+ /**
38
+ * The account ID.
39
+ */
40
+ id: string;
41
+
42
+ /**
43
+ * An optional display name for the account.
44
+ */
45
+ display_name: string | null;
46
+
47
+ /**
48
+ * The wallets belonging to this account.
49
+ */
50
+ wallets: Array<AccountWallet>;
51
+ }
52
+
53
+ /**
54
+ * Configuration for a wallet to create within an account.
55
+ */
56
+ export interface AccountWalletConfigurationItem {
57
+ /**
58
+ * The wallet chain types that offer first class support.
59
+ */
60
+ chain_type: WalletsAPI.FirstClassChainType;
61
+
62
+ /**
63
+ * Information about the custodian managing this wallet.
64
+ */
65
+ custody?: WalletsAPI.WalletCustodian;
66
+ }
67
+
68
+ /**
69
+ * Input for creating a digital asset account.
70
+ */
71
+ export interface CreateAccountInput {
72
+ /**
73
+ * Configuration for wallets to create.
74
+ */
75
+ wallets_configuration: Array<AccountWalletConfigurationItem>;
76
+
77
+ /**
78
+ * An optional display name for the account.
79
+ */
80
+ display_name?: string;
81
+ }
82
+
83
+ /**
84
+ * Paginated list of digital asset accounts.
85
+ */
86
+ export interface AccountsListResponse {
87
+ /**
88
+ * The list of accounts.
89
+ */
90
+ data: Array<AccountResponse>;
91
+
92
+ /**
93
+ * Cursor for fetching the next page of results, or null if no more results.
94
+ */
95
+ next_cursor: string | null;
96
+ }
97
+
98
+ export declare namespace Accounts {
99
+ export {
100
+ type AccountWallet as AccountWallet,
101
+ type AccountResponse as AccountResponse,
102
+ type AccountWalletConfigurationItem as AccountWalletConfigurationItem,
103
+ type CreateAccountInput as CreateAccountInput,
104
+ type AccountsListResponse as AccountsListResponse,
105
+ };
106
+ }
@@ -1232,6 +1232,11 @@ export type CustomOAuthProviderID = `custom:${string}`;
1232
1232
  */
1233
1233
  export type OAuthProviderID = ExternalOAuthProviderID | PrivyOAuthProviderID | CustomOAuthProviderID;
1234
1234
 
1235
+ /**
1236
+ * Bridge provider variant — production or sandbox.
1237
+ */
1238
+ export type BridgeOnrampProvider = 'bridge' | 'bridge-sandbox';
1239
+
1235
1240
  /**
1236
1241
  * Valid set of onramp providers
1237
1242
  */
@@ -1245,6 +1250,8 @@ export interface GetFiatCustomerRequestInput {
1245
1250
  * Valid set of onramp providers
1246
1251
  */
1247
1252
  provider: OnrampProvider;
1253
+
1254
+ kyc_redirect_url?: string;
1248
1255
  }
1249
1256
 
1250
1257
  /**
@@ -1257,6 +1264,15 @@ export interface CreateOrUpdateFiatCustomerRequestInput {
1257
1264
  * Valid set of onramp providers
1258
1265
  */
1259
1266
  provider: OnrampProvider;
1267
+
1268
+ kyc_redirect_url?: string;
1269
+ }
1270
+
1271
+ /**
1272
+ * A rejection reason for a customer KYC verification.
1273
+ */
1274
+ export interface BridgeFiatRejectionReason {
1275
+ reason: string;
1260
1276
  }
1261
1277
 
1262
1278
  /**
@@ -1280,6 +1296,8 @@ export interface BridgeFiatCustomerResponse {
1280
1296
  | 'under_review';
1281
1297
 
1282
1298
  kyc_url?: string;
1299
+
1300
+ rejection_reasons?: Array<BridgeFiatRejectionReason>;
1283
1301
  }
1284
1302
 
1285
1303
  /**
@@ -1303,6 +1321,8 @@ export interface BridgeSandboxFiatCustomerResponse {
1303
1321
  | 'under_review';
1304
1322
 
1305
1323
  kyc_url?: string;
1324
+
1325
+ rejection_reasons?: Array<BridgeFiatRejectionReason>;
1306
1326
  }
1307
1327
 
1308
1328
  /**
@@ -1571,9 +1591,11 @@ export declare namespace ClientAuth {
1571
1591
  type PrivyOAuthProviderID as PrivyOAuthProviderID,
1572
1592
  type CustomOAuthProviderID as CustomOAuthProviderID,
1573
1593
  type OAuthProviderID as OAuthProviderID,
1594
+ type BridgeOnrampProvider as BridgeOnrampProvider,
1574
1595
  type OnrampProvider as OnrampProvider,
1575
1596
  type GetFiatCustomerRequestInput as GetFiatCustomerRequestInput,
1576
1597
  type CreateOrUpdateFiatCustomerRequestInput as CreateOrUpdateFiatCustomerRequestInput,
1598
+ type BridgeFiatRejectionReason as BridgeFiatRejectionReason,
1577
1599
  type BridgeFiatCustomerResponse as BridgeFiatCustomerResponse,
1578
1600
  type BridgeSandboxFiatCustomerResponse as BridgeSandboxFiatCustomerResponse,
1579
1601
  type FiatCustomerResponse as FiatCustomerResponse,
@@ -1,5 +1,13 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
+ export {
4
+ Accounts,
5
+ type AccountWallet,
6
+ type AccountResponse,
7
+ type AccountWalletConfigurationItem,
8
+ type CreateAccountInput,
9
+ type AccountsListResponse,
10
+ } from './accounts';
3
11
  export {
4
12
  Aggregations,
5
13
  type AggregationMethod,
@@ -85,9 +93,11 @@ export {
85
93
  type PrivyOAuthProviderID,
86
94
  type CustomOAuthProviderID,
87
95
  type OAuthProviderID,
96
+ type BridgeOnrampProvider,
88
97
  type OnrampProvider,
89
98
  type GetFiatCustomerRequestInput,
90
99
  type CreateOrUpdateFiatCustomerRequestInput,
100
+ type BridgeFiatRejectionReason,
91
101
  type BridgeFiatCustomerResponse,
92
102
  type BridgeSandboxFiatCustomerResponse,
93
103
  type FiatCustomerResponse,
@@ -130,6 +140,7 @@ export {
130
140
  type MoonpayOnRampSignInput,
131
141
  type MoonpayOnRampSignResponse,
132
142
  } from './funding';
143
+ export { Intents, type IntentAuthorizationKeyQuorumMember, type IntentAuthorizationMember } from './intents';
133
144
  export {
134
145
  KeyQuorums,
135
146
  type KeyQuorum,
@@ -341,9 +352,12 @@ export {
341
352
  type KrakenEmbedUserVerifiedWebhookPayload,
342
353
  type KrakenEmbedUserDisabledWebhookPayload,
343
354
  type KrakenEmbedUserClosedWebhookPayload,
355
+ type YieldDepositConfirmedWebhookPayload,
356
+ type YieldWithdrawConfirmedWebhookPayload,
344
357
  } from './webhooks';
345
358
  export {
346
359
  Yield,
360
+ type EvmCaip2ChainID,
347
361
  type EthereumYieldProvider,
348
362
  type EthereumYieldSweepType,
349
363
  type EthereumYieldSweepStatus,
@@ -357,4 +371,7 @@ export {
357
371
  type EthereumYieldPositionsInput,
358
372
  type EthereumVaultPosition,
359
373
  type EthereumYieldPositionResponse,
374
+ type EthereumYieldClaimInput,
375
+ type EthereumYieldClaimReward,
376
+ type EthereumYieldClaimResponse,
360
377
  } from './yield';