@privy-io/api-types 0.6.1 → 0.8.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 (197) hide show
  1. package/CHANGELOG.md +72 -0
  2. package/client.d.mts +53 -29
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +53 -29
  5. package/client.d.ts.map +1 -1
  6. package/client.js +32 -7
  7. package/client.js.map +1 -1
  8. package/client.mjs +34 -9
  9. package/client.mjs.map +1 -1
  10. package/package.json +12 -1
  11. package/resources/accounts.d.mts +146 -4
  12. package/resources/accounts.d.mts.map +1 -1
  13. package/resources/accounts.d.ts +146 -4
  14. package/resources/accounts.d.ts.map +1 -1
  15. package/resources/accounts.js.map +1 -1
  16. package/resources/accounts.mjs.map +1 -1
  17. package/resources/aggregations.d.mts +18 -392
  18. package/resources/aggregations.d.mts.map +1 -1
  19. package/resources/aggregations.d.ts +18 -392
  20. package/resources/aggregations.d.ts.map +1 -1
  21. package/resources/aggregations.js.map +1 -1
  22. package/resources/aggregations.mjs.map +1 -1
  23. package/resources/apps.d.mts +197 -70
  24. package/resources/apps.d.mts.map +1 -1
  25. package/resources/apps.d.ts +197 -70
  26. package/resources/apps.d.ts.map +1 -1
  27. package/resources/apps.js.map +1 -1
  28. package/resources/apps.mjs.map +1 -1
  29. package/resources/client-auth.d.mts +975 -463
  30. package/resources/client-auth.d.mts.map +1 -1
  31. package/resources/client-auth.d.ts +975 -463
  32. package/resources/client-auth.d.ts.map +1 -1
  33. package/resources/client-auth.js.map +1 -1
  34. package/resources/client-auth.mjs.map +1 -1
  35. package/resources/cross-app.d.mts +14 -13
  36. package/resources/cross-app.d.mts.map +1 -1
  37. package/resources/cross-app.d.ts +14 -13
  38. package/resources/cross-app.d.ts.map +1 -1
  39. package/resources/embedded-wallets.d.mts +165 -81
  40. package/resources/embedded-wallets.d.mts.map +1 -1
  41. package/resources/embedded-wallets.d.ts +165 -81
  42. package/resources/embedded-wallets.d.ts.map +1 -1
  43. package/resources/embedded-wallets.js.map +1 -1
  44. package/resources/embedded-wallets.mjs.map +1 -1
  45. package/resources/funding.d.mts +150 -64
  46. package/resources/funding.d.mts.map +1 -1
  47. package/resources/funding.d.ts +150 -64
  48. package/resources/funding.d.ts.map +1 -1
  49. package/resources/funding.js.map +1 -1
  50. package/resources/funding.mjs.map +1 -1
  51. package/resources/index.d.mts +18 -14
  52. package/resources/index.d.mts.map +1 -1
  53. package/resources/index.d.ts +18 -14
  54. package/resources/index.d.ts.map +1 -1
  55. package/resources/index.js +9 -1
  56. package/resources/index.js.map +1 -1
  57. package/resources/index.mjs +6 -2
  58. package/resources/index.mjs.map +1 -1
  59. package/resources/intents.d.mts +446 -31
  60. package/resources/intents.d.mts.map +1 -1
  61. package/resources/intents.d.ts +446 -31
  62. package/resources/intents.d.ts.map +1 -1
  63. package/resources/intents.js.map +1 -1
  64. package/resources/intents.mjs.map +1 -1
  65. package/resources/key-quorums.d.mts +108 -17
  66. package/resources/key-quorums.d.mts.map +1 -1
  67. package/resources/key-quorums.d.ts +108 -17
  68. package/resources/key-quorums.d.ts.map +1 -1
  69. package/resources/key-quorums.js +26 -9
  70. package/resources/key-quorums.js.map +1 -1
  71. package/resources/key-quorums.mjs +26 -9
  72. package/resources/key-quorums.mjs.map +1 -1
  73. package/resources/kraken-embed.d.mts +62 -0
  74. package/resources/kraken-embed.d.mts.map +1 -0
  75. package/resources/kraken-embed.d.ts +62 -0
  76. package/resources/kraken-embed.d.ts.map +1 -0
  77. package/resources/kraken-embed.js +9 -0
  78. package/resources/kraken-embed.js.map +1 -0
  79. package/resources/kraken-embed.mjs +5 -0
  80. package/resources/kraken-embed.mjs.map +1 -0
  81. package/resources/policies.d.mts +342 -926
  82. package/resources/policies.d.mts.map +1 -1
  83. package/resources/policies.d.ts +342 -926
  84. package/resources/policies.d.ts.map +1 -1
  85. package/resources/policies.js +51 -41
  86. package/resources/policies.js.map +1 -1
  87. package/resources/policies.mjs +51 -41
  88. package/resources/policies.mjs.map +1 -1
  89. package/resources/shared.d.mts +59 -0
  90. package/resources/shared.d.mts.map +1 -0
  91. package/resources/shared.d.ts +59 -0
  92. package/resources/shared.d.ts.map +1 -0
  93. package/resources/shared.js +9 -0
  94. package/resources/shared.js.map +1 -0
  95. package/resources/shared.mjs +5 -0
  96. package/resources/shared.mjs.map +1 -0
  97. package/resources/swaps.d.mts +108 -0
  98. package/resources/swaps.d.mts.map +1 -0
  99. package/resources/swaps.d.ts +108 -0
  100. package/resources/swaps.d.ts.map +1 -0
  101. package/resources/swaps.js +9 -0
  102. package/resources/swaps.js.map +1 -0
  103. package/resources/swaps.mjs +5 -0
  104. package/resources/swaps.mjs.map +1 -0
  105. package/resources/transactions.d.mts +158 -93
  106. package/resources/transactions.d.mts.map +1 -1
  107. package/resources/transactions.d.ts +158 -93
  108. package/resources/transactions.d.ts.map +1 -1
  109. package/resources/transactions.js +3 -0
  110. package/resources/transactions.js.map +1 -1
  111. package/resources/transactions.mjs +3 -0
  112. package/resources/transactions.mjs.map +1 -1
  113. package/resources/users.d.mts +64 -94
  114. package/resources/users.d.mts.map +1 -1
  115. package/resources/users.d.ts +64 -94
  116. package/resources/users.d.ts.map +1 -1
  117. package/resources/users.js +3 -0
  118. package/resources/users.js.map +1 -1
  119. package/resources/users.mjs +3 -0
  120. package/resources/users.mjs.map +1 -1
  121. package/resources/wallet-actions.d.mts +187 -0
  122. package/resources/wallet-actions.d.mts.map +1 -0
  123. package/resources/wallet-actions.d.ts +187 -0
  124. package/resources/wallet-actions.d.ts.map +1 -0
  125. package/resources/wallet-actions.js +9 -0
  126. package/resources/wallet-actions.js.map +1 -0
  127. package/resources/wallet-actions.mjs +5 -0
  128. package/resources/wallet-actions.mjs.map +1 -0
  129. package/resources/wallets/balance.d.mts +7 -4
  130. package/resources/wallets/balance.d.mts.map +1 -1
  131. package/resources/wallets/balance.d.ts +7 -4
  132. package/resources/wallets/balance.d.ts.map +1 -1
  133. package/resources/wallets/balance.js +3 -0
  134. package/resources/wallets/balance.js.map +1 -1
  135. package/resources/wallets/balance.mjs +3 -0
  136. package/resources/wallets/balance.mjs.map +1 -1
  137. package/resources/wallets/index.d.mts +1 -1
  138. package/resources/wallets/index.d.mts.map +1 -1
  139. package/resources/wallets/index.d.ts +1 -1
  140. package/resources/wallets/index.d.ts.map +1 -1
  141. package/resources/wallets/index.js.map +1 -1
  142. package/resources/wallets/index.mjs.map +1 -1
  143. package/resources/wallets/transactions.d.mts +10 -6
  144. package/resources/wallets/transactions.d.mts.map +1 -1
  145. package/resources/wallets/transactions.d.ts +10 -6
  146. package/resources/wallets/transactions.d.ts.map +1 -1
  147. package/resources/wallets/transactions.js +3 -0
  148. package/resources/wallets/transactions.js.map +1 -1
  149. package/resources/wallets/transactions.mjs +3 -0
  150. package/resources/wallets/transactions.mjs.map +1 -1
  151. package/resources/wallets/wallets.d.mts +2399 -936
  152. package/resources/wallets/wallets.d.mts.map +1 -1
  153. package/resources/wallets/wallets.d.ts +2399 -936
  154. package/resources/wallets/wallets.d.ts.map +1 -1
  155. package/resources/wallets/wallets.js +28 -10
  156. package/resources/wallets/wallets.js.map +1 -1
  157. package/resources/wallets/wallets.mjs +28 -10
  158. package/resources/wallets/wallets.mjs.map +1 -1
  159. package/resources/webhooks.d.mts +780 -339
  160. package/resources/webhooks.d.mts.map +1 -1
  161. package/resources/webhooks.d.ts +780 -339
  162. package/resources/webhooks.d.ts.map +1 -1
  163. package/resources/webhooks.js.map +1 -1
  164. package/resources/webhooks.mjs.map +1 -1
  165. package/resources/yield.d.mts +50 -9
  166. package/resources/yield.d.mts.map +1 -1
  167. package/resources/yield.d.ts +50 -9
  168. package/resources/yield.d.ts.map +1 -1
  169. package/src/client.ts +884 -99
  170. package/src/resources/accounts.ts +179 -3
  171. package/src/resources/aggregations.ts +18 -702
  172. package/src/resources/apps.ts +250 -85
  173. package/src/resources/client-auth.ts +1453 -786
  174. package/src/resources/cross-app.ts +19 -15
  175. package/src/resources/embedded-wallets.ts +219 -123
  176. package/src/resources/funding.ts +263 -173
  177. package/src/resources/index.ts +444 -61
  178. package/src/resources/intents.ts +575 -37
  179. package/src/resources/key-quorums.ts +137 -21
  180. package/src/resources/kraken-embed.ts +85 -0
  181. package/src/resources/policies.ts +582 -1550
  182. package/src/resources/shared.ts +79 -0
  183. package/src/resources/swaps.ts +136 -0
  184. package/src/resources/transactions.ts +188 -91
  185. package/src/resources/users.ts +82 -132
  186. package/src/resources/wallet-actions.ts +251 -0
  187. package/src/resources/wallets/balance.ts +9 -2
  188. package/src/resources/wallets/index.ts +146 -16
  189. package/src/resources/wallets/transactions.ts +12 -4
  190. package/src/resources/wallets/wallets.ts +2922 -974
  191. package/src/resources/webhooks.ts +970 -454
  192. package/src/resources/yield.ts +68 -10
  193. package/src/version.ts +1 -1
  194. package/version.d.mts +1 -1
  195. package/version.d.ts +1 -1
  196. package/version.js +1 -1
  197. package/version.mjs +1 -1
@@ -0,0 +1,62 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import * as KrakenEmbedAPI from "./kraken-embed.mjs";
3
+ export declare class KrakenEmbed extends APIResource {
4
+ }
5
+ /**
6
+ * Query parameters for getting a portfolio summary.
7
+ */
8
+ export interface KrakenEmbedGetPortfolioSummaryQueryParams {
9
+ 'include[current_day_pnl]'?: 'true' | 'false';
10
+ quote?: string;
11
+ }
12
+ /**
13
+ * Current day profit and loss for a portfolio, calculated from the most recent
14
+ * available balance.
15
+ */
16
+ export interface KrakenEmbedCurrentDayPnl {
17
+ pnl: string;
18
+ since: string;
19
+ }
20
+ /**
21
+ * High-level summary of a user's portfolio including total value, available
22
+ * balance, and unrealized P&L.
23
+ */
24
+ export interface KrakenEmbedGetPortfolioSummaryResponse {
25
+ data: KrakenEmbedGetPortfolioSummaryResponse.Data;
26
+ }
27
+ export declare namespace KrakenEmbedGetPortfolioSummaryResponse {
28
+ interface Data {
29
+ result: Data.Result | null;
30
+ error?: Array<unknown>;
31
+ errors?: Array<unknown>;
32
+ }
33
+ namespace Data {
34
+ interface Result {
35
+ available_balance: string;
36
+ currency: string;
37
+ open_orders: string;
38
+ portfolio_value: string;
39
+ timestamp: string;
40
+ withheld_value: string;
41
+ cost_basis?: string | null;
42
+ /**
43
+ * Current day profit and loss for a portfolio, calculated from the most recent
44
+ * available balance.
45
+ */
46
+ current_day_pnl?: Result.CurrentDayPnl;
47
+ lots_upnl?: string | null;
48
+ }
49
+ namespace Result {
50
+ /**
51
+ * Current day profit and loss for a portfolio, calculated from the most recent
52
+ * available balance.
53
+ */
54
+ interface CurrentDayPnl extends KrakenEmbedAPI.KrakenEmbedCurrentDayPnl {
55
+ }
56
+ }
57
+ }
58
+ }
59
+ export declare namespace KrakenEmbed {
60
+ export { type KrakenEmbedGetPortfolioSummaryQueryParams as KrakenEmbedGetPortfolioSummaryQueryParams, type KrakenEmbedCurrentDayPnl as KrakenEmbedCurrentDayPnl, type KrakenEmbedGetPortfolioSummaryResponse as KrakenEmbedGetPortfolioSummaryResponse, };
61
+ }
62
+ //# sourceMappingURL=kraken-embed.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kraken-embed.d.mts","sourceRoot":"","sources":["../src/resources/kraken-embed.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;AAE1B,qBAAa,WAAY,SAAQ,WAAW;CAAG;AAE/C;;GAEG;AACH,MAAM,WAAW,yCAAyC;IACxD,0BAA0B,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAE9C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC,GAAG,EAAE,MAAM,CAAC;IAEZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,sCAAsC;IACrD,IAAI,EAAE,sCAAsC,CAAC,IAAI,CAAC;CACnD;AAED,yBAAiB,sCAAsC,CAAC;IACtD,UAAiB,IAAI;QACnB,MAAM,EAAE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QAE3B,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;QAEvB,MAAM,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;KACzB;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,MAAM;YACrB,iBAAiB,EAAE,MAAM,CAAC;YAE1B,QAAQ,EAAE,MAAM,CAAC;YAEjB,WAAW,EAAE,MAAM,CAAC;YAEpB,eAAe,EAAE,MAAM,CAAC;YAExB,SAAS,EAAE,MAAM,CAAC;YAElB,cAAc,EAAE,MAAM,CAAC;YAEvB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAE3B;;;eAGG;YACH,eAAe,CAAC,EAAE,MAAM,CAAC,aAAa,CAAC;YAEvC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;SAC3B;QAED,UAAiB,MAAM,CAAC;YACtB;;;eAGG;YACH,UAAiB,aAAc,SAAQ,cAAc,CAAC,wBAAwB;aAAG;SAClF;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yCAAyC,IAAI,yCAAyC,EAC3F,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sCAAsC,IAAI,sCAAsC,GACtF,CAAC;CACH"}
@@ -0,0 +1,62 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import * as KrakenEmbedAPI from "./kraken-embed.js";
3
+ export declare class KrakenEmbed extends APIResource {
4
+ }
5
+ /**
6
+ * Query parameters for getting a portfolio summary.
7
+ */
8
+ export interface KrakenEmbedGetPortfolioSummaryQueryParams {
9
+ 'include[current_day_pnl]'?: 'true' | 'false';
10
+ quote?: string;
11
+ }
12
+ /**
13
+ * Current day profit and loss for a portfolio, calculated from the most recent
14
+ * available balance.
15
+ */
16
+ export interface KrakenEmbedCurrentDayPnl {
17
+ pnl: string;
18
+ since: string;
19
+ }
20
+ /**
21
+ * High-level summary of a user's portfolio including total value, available
22
+ * balance, and unrealized P&L.
23
+ */
24
+ export interface KrakenEmbedGetPortfolioSummaryResponse {
25
+ data: KrakenEmbedGetPortfolioSummaryResponse.Data;
26
+ }
27
+ export declare namespace KrakenEmbedGetPortfolioSummaryResponse {
28
+ interface Data {
29
+ result: Data.Result | null;
30
+ error?: Array<unknown>;
31
+ errors?: Array<unknown>;
32
+ }
33
+ namespace Data {
34
+ interface Result {
35
+ available_balance: string;
36
+ currency: string;
37
+ open_orders: string;
38
+ portfolio_value: string;
39
+ timestamp: string;
40
+ withheld_value: string;
41
+ cost_basis?: string | null;
42
+ /**
43
+ * Current day profit and loss for a portfolio, calculated from the most recent
44
+ * available balance.
45
+ */
46
+ current_day_pnl?: Result.CurrentDayPnl;
47
+ lots_upnl?: string | null;
48
+ }
49
+ namespace Result {
50
+ /**
51
+ * Current day profit and loss for a portfolio, calculated from the most recent
52
+ * available balance.
53
+ */
54
+ interface CurrentDayPnl extends KrakenEmbedAPI.KrakenEmbedCurrentDayPnl {
55
+ }
56
+ }
57
+ }
58
+ }
59
+ export declare namespace KrakenEmbed {
60
+ export { type KrakenEmbedGetPortfolioSummaryQueryParams as KrakenEmbedGetPortfolioSummaryQueryParams, type KrakenEmbedCurrentDayPnl as KrakenEmbedCurrentDayPnl, type KrakenEmbedGetPortfolioSummaryResponse as KrakenEmbedGetPortfolioSummaryResponse, };
61
+ }
62
+ //# sourceMappingURL=kraken-embed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kraken-embed.d.ts","sourceRoot":"","sources":["../src/resources/kraken-embed.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,cAAc;AAE1B,qBAAa,WAAY,SAAQ,WAAW;CAAG;AAE/C;;GAEG;AACH,MAAM,WAAW,yCAAyC;IACxD,0BAA0B,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAE9C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC,GAAG,EAAE,MAAM,CAAC;IAEZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,MAAM,WAAW,sCAAsC;IACrD,IAAI,EAAE,sCAAsC,CAAC,IAAI,CAAC;CACnD;AAED,yBAAiB,sCAAsC,CAAC;IACtD,UAAiB,IAAI;QACnB,MAAM,EAAE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QAE3B,KAAK,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;QAEvB,MAAM,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;KACzB;IAED,UAAiB,IAAI,CAAC;QACpB,UAAiB,MAAM;YACrB,iBAAiB,EAAE,MAAM,CAAC;YAE1B,QAAQ,EAAE,MAAM,CAAC;YAEjB,WAAW,EAAE,MAAM,CAAC;YAEpB,eAAe,EAAE,MAAM,CAAC;YAExB,SAAS,EAAE,MAAM,CAAC;YAElB,cAAc,EAAE,MAAM,CAAC;YAEvB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;YAE3B;;;eAGG;YACH,eAAe,CAAC,EAAE,MAAM,CAAC,aAAa,CAAC;YAEvC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;SAC3B;QAED,UAAiB,MAAM,CAAC;YACtB;;;eAGG;YACH,UAAiB,aAAc,SAAQ,cAAc,CAAC,wBAAwB;aAAG;SAClF;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yCAAyC,IAAI,yCAAyC,EAC3F,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sCAAsC,IAAI,sCAAsC,GACtF,CAAC;CACH"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.KrakenEmbed = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ class KrakenEmbed extends resource_1.APIResource {
7
+ }
8
+ exports.KrakenEmbed = KrakenEmbed;
9
+ //# sourceMappingURL=kraken-embed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kraken-embed.js","sourceRoot":"","sources":["../src/resources/kraken-embed.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,MAAa,WAAY,SAAQ,sBAAW;CAAG;AAA/C,kCAA+C"}
@@ -0,0 +1,5 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ export class KrakenEmbed extends APIResource {
4
+ }
5
+ //# sourceMappingURL=kraken-embed.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kraken-embed.mjs","sourceRoot":"","sources":["../src/resources/kraken-embed.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,WAAY,SAAQ,WAAW;CAAG"}