@privy-io/api-types 0.7.0 → 0.9.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.
- package/CHANGELOG.md +62 -0
- package/client.d.mts +39 -30
- package/client.d.mts.map +1 -1
- package/client.d.ts +39 -30
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/accounts.d.mts +79 -106
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +79 -106
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.js.map +1 -1
- package/resources/accounts.mjs.map +1 -1
- package/resources/aggregations.d.mts +18 -392
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +18 -392
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/aggregations.js.map +1 -1
- package/resources/aggregations.mjs.map +1 -1
- package/resources/apps.d.mts +154 -71
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +154 -71
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs.map +1 -1
- package/resources/client-auth.d.mts +796 -427
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +796 -427
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/client-auth.js.map +1 -1
- package/resources/client-auth.mjs.map +1 -1
- package/resources/cross-app.d.mts +14 -13
- package/resources/cross-app.d.mts.map +1 -1
- package/resources/cross-app.d.ts +14 -13
- package/resources/cross-app.d.ts.map +1 -1
- package/resources/embedded-wallets.d.mts +167 -83
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +167 -83
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/embedded-wallets.js.map +1 -1
- package/resources/embedded-wallets.mjs.map +1 -1
- package/resources/funding.d.mts +150 -64
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts +150 -64
- package/resources/funding.d.ts.map +1 -1
- package/resources/funding.js.map +1 -1
- package/resources/funding.mjs.map +1 -1
- package/resources/index.d.mts +18 -15
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +18 -15
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +224 -1757
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +224 -1757
- package/resources/intents.d.ts.map +1 -1
- package/resources/intents.js.map +1 -1
- package/resources/intents.mjs.map +1 -1
- package/resources/key-quorums.d.mts +74 -26
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +74 -26
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/key-quorums.js +8 -8
- package/resources/key-quorums.js.map +1 -1
- package/resources/key-quorums.mjs +8 -8
- package/resources/key-quorums.mjs.map +1 -1
- package/resources/kraken-embed.d.mts +52 -1
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +52 -1
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/policies.d.mts +512 -992
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +512 -992
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.js +48 -41
- package/resources/policies.js.map +1 -1
- package/resources/policies.mjs +48 -41
- package/resources/policies.mjs.map +1 -1
- package/resources/shared.d.mts +59 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +59 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +9 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +5 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/swaps.d.mts +108 -0
- package/resources/swaps.d.mts.map +1 -0
- package/resources/swaps.d.ts +108 -0
- package/resources/swaps.d.ts.map +1 -0
- package/resources/swaps.js +9 -0
- package/resources/swaps.js.map +1 -0
- package/resources/swaps.mjs +5 -0
- package/resources/swaps.mjs.map +1 -0
- package/resources/transactions.d.mts +150 -98
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +150 -98
- package/resources/transactions.d.ts.map +1 -1
- package/resources/users.d.mts +207 -240
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +207 -240
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js.map +1 -1
- package/resources/users.mjs.map +1 -1
- package/resources/wallet-actions.d.mts +439 -0
- package/resources/wallet-actions.d.mts.map +1 -0
- package/resources/wallet-actions.d.ts +439 -0
- package/resources/wallet-actions.d.ts.map +1 -0
- package/resources/wallet-actions.js +9 -0
- package/resources/wallet-actions.js.map +1 -0
- package/resources/wallet-actions.mjs +5 -0
- package/resources/wallet-actions.mjs.map +1 -0
- package/resources/wallets/balance.d.mts +2 -1
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +2 -1
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/balance.js.map +1 -1
- package/resources/wallets/balance.mjs.map +1 -1
- package/resources/wallets/index.d.mts +1 -1
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +1 -1
- package/resources/wallets/index.d.ts.map +1 -1
- package/resources/wallets/index.js.map +1 -1
- package/resources/wallets/index.mjs.map +1 -1
- package/resources/wallets/transactions.d.mts +11 -30
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +11 -30
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js.map +1 -1
- package/resources/wallets/transactions.mjs.map +1 -1
- package/resources/wallets/wallets.d.mts +2435 -923
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +2435 -923
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +24 -11
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +24 -11
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +1296 -186
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +1296 -186
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/yield.d.mts +25 -1
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +25 -1
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +869 -92
- package/src/internal/utils/env.ts +2 -2
- package/src/resources/accounts.ts +93 -120
- package/src/resources/aggregations.ts +18 -702
- package/src/resources/apps.ts +211 -111
- package/src/resources/client-auth.ts +1361 -896
- package/src/resources/cross-app.ts +19 -15
- package/src/resources/embedded-wallets.ts +219 -123
- package/src/resources/funding.ts +263 -173
- package/src/resources/index.ts +447 -65
- package/src/resources/intents.ts +370 -3100
- package/src/resources/key-quorums.ts +100 -32
- package/src/resources/kraken-embed.ts +105 -0
- package/src/resources/policies.ts +648 -1494
- package/src/resources/shared.ts +79 -0
- package/src/resources/swaps.ts +136 -0
- package/src/resources/transactions.ts +169 -102
- package/src/resources/users.ts +676 -729
- package/src/resources/wallet-actions.ts +573 -0
- package/src/resources/wallets/balance.ts +2 -1
- package/src/resources/wallets/index.ts +156 -17
- package/src/resources/wallets/transactions.ts +12 -88
- package/src/resources/wallets/wallets.ts +3162 -1109
- package/src/resources/webhooks.ts +1609 -229
- package/src/resources/yield.ts +29 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -29,13 +29,13 @@ export class KeyQuorums extends APIResource {
|
|
|
29
29
|
*
|
|
30
30
|
* @example
|
|
31
31
|
* ```ts
|
|
32
|
-
* const
|
|
33
|
-
* '
|
|
32
|
+
* const successResponse = await client.keyQuorums._delete(
|
|
33
|
+
* 'string',
|
|
34
34
|
* );
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
37
|
_delete(keyQuorumID, params = {}, options) {
|
|
38
|
-
const { 'privy-authorization-signature': privyAuthorizationSignature } = params ?? {};
|
|
38
|
+
const { 'privy-authorization-signature': privyAuthorizationSignature, 'privy-request-expiry': privyRequestExpiry, } = params ?? {};
|
|
39
39
|
return this._client.delete(path `/v1/key_quorums/${keyQuorumID}`, {
|
|
40
40
|
...options,
|
|
41
41
|
headers: buildHeaders([
|
|
@@ -43,6 +43,7 @@ export class KeyQuorums extends APIResource {
|
|
|
43
43
|
...(privyAuthorizationSignature != null ?
|
|
44
44
|
{ 'privy-authorization-signature': privyAuthorizationSignature }
|
|
45
45
|
: undefined),
|
|
46
|
+
...(privyRequestExpiry != null ? { 'privy-request-expiry': privyRequestExpiry } : undefined),
|
|
46
47
|
},
|
|
47
48
|
options?.headers,
|
|
48
49
|
]),
|
|
@@ -54,7 +55,7 @@ export class KeyQuorums extends APIResource {
|
|
|
54
55
|
* @example
|
|
55
56
|
* ```ts
|
|
56
57
|
* const keyQuorum = await client.keyQuorums._update(
|
|
57
|
-
* '
|
|
58
|
+
* 'string',
|
|
58
59
|
* {
|
|
59
60
|
* authorization_threshold: 1,
|
|
60
61
|
* display_name: 'Prod key quorum',
|
|
@@ -66,7 +67,7 @@ export class KeyQuorums extends APIResource {
|
|
|
66
67
|
* ```
|
|
67
68
|
*/
|
|
68
69
|
_update(keyQuorumID, params, options) {
|
|
69
|
-
const { 'privy-authorization-signature': privyAuthorizationSignature, ...body } = params;
|
|
70
|
+
const { 'privy-authorization-signature': privyAuthorizationSignature, 'privy-request-expiry': privyRequestExpiry, ...body } = params;
|
|
70
71
|
return this._client.patch(path `/v1/key_quorums/${keyQuorumID}`, {
|
|
71
72
|
body,
|
|
72
73
|
...options,
|
|
@@ -75,6 +76,7 @@ export class KeyQuorums extends APIResource {
|
|
|
75
76
|
...(privyAuthorizationSignature != null ?
|
|
76
77
|
{ 'privy-authorization-signature': privyAuthorizationSignature }
|
|
77
78
|
: undefined),
|
|
79
|
+
...(privyRequestExpiry != null ? { 'privy-request-expiry': privyRequestExpiry } : undefined),
|
|
78
80
|
},
|
|
79
81
|
options?.headers,
|
|
80
82
|
]),
|
|
@@ -85,9 +87,7 @@ export class KeyQuorums extends APIResource {
|
|
|
85
87
|
*
|
|
86
88
|
* @example
|
|
87
89
|
* ```ts
|
|
88
|
-
* const keyQuorum = await client.keyQuorums.get(
|
|
89
|
-
* 'key_quorum_id',
|
|
90
|
-
* );
|
|
90
|
+
* const keyQuorum = await client.keyQuorums.get('string');
|
|
91
91
|
* ```
|
|
92
92
|
*/
|
|
93
93
|
get(keyQuorumID, options) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"key-quorums.mjs","sourceRoot":"","sources":["../src/resources/key-quorums.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"key-quorums.mjs","sourceRoot":"","sources":["../src/resources/key-quorums.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;;;;;;;;;;;;;OAcG;IACH,MAAM,CAAC,IAA2B,EAAE,OAAwB;QAC1D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpE,CAAC;IAED;;;;;;;;;OASG;IACH,OAAO,CACL,WAAkC,EAClC,SAAmD,EAAE,EACrD,OAAwB;QAExB,MAAM,EACJ,+BAA+B,EAAE,2BAA2B,EAC5D,sBAAsB,EAAE,kBAAkB,GAC3C,GAAG,MAAM,IAAI,EAAE,CAAC;QACjB,OA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A,mBAAmB,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF"}
|
|
@@ -2,6 +2,26 @@ import { APIResource } from "../core/resource.mjs";
|
|
|
2
2
|
import * as KrakenEmbedAPI from "./kraken-embed.mjs";
|
|
3
3
|
export declare class KrakenEmbed extends APIResource {
|
|
4
4
|
}
|
|
5
|
+
/**
|
|
6
|
+
* Query parameters for listing and filtering available assets.
|
|
7
|
+
*/
|
|
8
|
+
export interface KrakenEmbedGetAssetListQueryParamsSchema {
|
|
9
|
+
'filter[assets]'?: Array<string>;
|
|
10
|
+
'filter[platform_statuses]'?: Array<'enabled' | 'deposit_only' | 'withdrawal_only' | 'funding_temporarily_disabled' | 'disabled' | (string & {})>;
|
|
11
|
+
'filter[tradable_only]'?: boolean | null;
|
|
12
|
+
'filter[user]'?: string;
|
|
13
|
+
lang?: string;
|
|
14
|
+
'page[number]'?: number;
|
|
15
|
+
'page[size]'?: number;
|
|
16
|
+
quote?: string;
|
|
17
|
+
sort?: 'trending' | 'market_cap_rank' | '-market_cap_rank' | 'symbol' | '-symbol' | 'name' | '-name' | 'change_percent_1h' | '-change_percent_1h' | 'change_percent_24h' | '-change_percent_24h' | 'change_percent_7d' | '-change_percent_7d' | 'change_percent_30d' | '-change_percent_30d' | 'change_percent_1y' | '-change_percent_1y' | 'listing_date' | '-listing_date';
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Query parameters for portfolio details endpoint.
|
|
21
|
+
*/
|
|
22
|
+
export interface KrakenEmbedGetPortfolioDetailsQueryParamsSchema {
|
|
23
|
+
quote?: string;
|
|
24
|
+
}
|
|
5
25
|
/**
|
|
6
26
|
* Query parameters for getting a portfolio summary.
|
|
7
27
|
*/
|
|
@@ -56,7 +76,38 @@ export declare namespace KrakenEmbedGetPortfolioSummaryResponse {
|
|
|
56
76
|
}
|
|
57
77
|
}
|
|
58
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* Query parameters for filtering and paginating portfolio transactions.
|
|
81
|
+
*/
|
|
82
|
+
export interface KrakenEmbedGetPortfolioTransactionsQueryParamsSchema {
|
|
83
|
+
assets?: Array<string>;
|
|
84
|
+
cursor?: string;
|
|
85
|
+
from_time?: string;
|
|
86
|
+
ids?: Array<string>;
|
|
87
|
+
page_size?: number;
|
|
88
|
+
quote?: string;
|
|
89
|
+
ref_ids?: Array<KrakenEmbedGetPortfolioTransactionsQueryParamsSchema.RefID>;
|
|
90
|
+
sorting?: 'descending' | 'ascending';
|
|
91
|
+
statuses?: Array<'unspecified' | 'in_progress' | 'successful' | 'failed'>;
|
|
92
|
+
types?: Array<'simple_order' | 'simple_order_failed' | 'earn_reward'>;
|
|
93
|
+
until_time?: string;
|
|
94
|
+
}
|
|
95
|
+
export declare namespace KrakenEmbedGetPortfolioTransactionsQueryParamsSchema {
|
|
96
|
+
interface RefID {
|
|
97
|
+
ref_id: string;
|
|
98
|
+
type: 'simple_order_quote' | 'simple_order_quote_failed';
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Query parameters for getting a quote status.
|
|
103
|
+
*/
|
|
104
|
+
export interface KrakenEmbedGetQuoteQueryParams {
|
|
105
|
+
/**
|
|
106
|
+
* The ID of the Privy user.
|
|
107
|
+
*/
|
|
108
|
+
user_id: string;
|
|
109
|
+
}
|
|
59
110
|
export declare namespace KrakenEmbed {
|
|
60
|
-
export { type KrakenEmbedGetPortfolioSummaryQueryParams as KrakenEmbedGetPortfolioSummaryQueryParams, type KrakenEmbedCurrentDayPnl as KrakenEmbedCurrentDayPnl, type KrakenEmbedGetPortfolioSummaryResponse as KrakenEmbedGetPortfolioSummaryResponse, };
|
|
111
|
+
export { type KrakenEmbedGetAssetListQueryParamsSchema as KrakenEmbedGetAssetListQueryParamsSchema, type KrakenEmbedGetPortfolioDetailsQueryParamsSchema as KrakenEmbedGetPortfolioDetailsQueryParamsSchema, type KrakenEmbedGetPortfolioSummaryQueryParams as KrakenEmbedGetPortfolioSummaryQueryParams, type KrakenEmbedCurrentDayPnl as KrakenEmbedCurrentDayPnl, type KrakenEmbedGetPortfolioSummaryResponse as KrakenEmbedGetPortfolioSummaryResponse, type KrakenEmbedGetPortfolioTransactionsQueryParamsSchema as KrakenEmbedGetPortfolioTransactionsQueryParamsSchema, type KrakenEmbedGetQuoteQueryParams as KrakenEmbedGetQuoteQueryParams, };
|
|
61
112
|
}
|
|
62
113
|
//# sourceMappingURL=kraken-embed.d.mts.map
|
|
@@ -1 +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,c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,26 @@ import { APIResource } from "../core/resource.js";
|
|
|
2
2
|
import * as KrakenEmbedAPI from "./kraken-embed.js";
|
|
3
3
|
export declare class KrakenEmbed extends APIResource {
|
|
4
4
|
}
|
|
5
|
+
/**
|
|
6
|
+
* Query parameters for listing and filtering available assets.
|
|
7
|
+
*/
|
|
8
|
+
export interface KrakenEmbedGetAssetListQueryParamsSchema {
|
|
9
|
+
'filter[assets]'?: Array<string>;
|
|
10
|
+
'filter[platform_statuses]'?: Array<'enabled' | 'deposit_only' | 'withdrawal_only' | 'funding_temporarily_disabled' | 'disabled' | (string & {})>;
|
|
11
|
+
'filter[tradable_only]'?: boolean | null;
|
|
12
|
+
'filter[user]'?: string;
|
|
13
|
+
lang?: string;
|
|
14
|
+
'page[number]'?: number;
|
|
15
|
+
'page[size]'?: number;
|
|
16
|
+
quote?: string;
|
|
17
|
+
sort?: 'trending' | 'market_cap_rank' | '-market_cap_rank' | 'symbol' | '-symbol' | 'name' | '-name' | 'change_percent_1h' | '-change_percent_1h' | 'change_percent_24h' | '-change_percent_24h' | 'change_percent_7d' | '-change_percent_7d' | 'change_percent_30d' | '-change_percent_30d' | 'change_percent_1y' | '-change_percent_1y' | 'listing_date' | '-listing_date';
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Query parameters for portfolio details endpoint.
|
|
21
|
+
*/
|
|
22
|
+
export interface KrakenEmbedGetPortfolioDetailsQueryParamsSchema {
|
|
23
|
+
quote?: string;
|
|
24
|
+
}
|
|
5
25
|
/**
|
|
6
26
|
* Query parameters for getting a portfolio summary.
|
|
7
27
|
*/
|
|
@@ -56,7 +76,38 @@ export declare namespace KrakenEmbedGetPortfolioSummaryResponse {
|
|
|
56
76
|
}
|
|
57
77
|
}
|
|
58
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* Query parameters for filtering and paginating portfolio transactions.
|
|
81
|
+
*/
|
|
82
|
+
export interface KrakenEmbedGetPortfolioTransactionsQueryParamsSchema {
|
|
83
|
+
assets?: Array<string>;
|
|
84
|
+
cursor?: string;
|
|
85
|
+
from_time?: string;
|
|
86
|
+
ids?: Array<string>;
|
|
87
|
+
page_size?: number;
|
|
88
|
+
quote?: string;
|
|
89
|
+
ref_ids?: Array<KrakenEmbedGetPortfolioTransactionsQueryParamsSchema.RefID>;
|
|
90
|
+
sorting?: 'descending' | 'ascending';
|
|
91
|
+
statuses?: Array<'unspecified' | 'in_progress' | 'successful' | 'failed'>;
|
|
92
|
+
types?: Array<'simple_order' | 'simple_order_failed' | 'earn_reward'>;
|
|
93
|
+
until_time?: string;
|
|
94
|
+
}
|
|
95
|
+
export declare namespace KrakenEmbedGetPortfolioTransactionsQueryParamsSchema {
|
|
96
|
+
interface RefID {
|
|
97
|
+
ref_id: string;
|
|
98
|
+
type: 'simple_order_quote' | 'simple_order_quote_failed';
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Query parameters for getting a quote status.
|
|
103
|
+
*/
|
|
104
|
+
export interface KrakenEmbedGetQuoteQueryParams {
|
|
105
|
+
/**
|
|
106
|
+
* The ID of the Privy user.
|
|
107
|
+
*/
|
|
108
|
+
user_id: string;
|
|
109
|
+
}
|
|
59
110
|
export declare namespace KrakenEmbed {
|
|
60
|
-
export { type KrakenEmbedGetPortfolioSummaryQueryParams as KrakenEmbedGetPortfolioSummaryQueryParams, type KrakenEmbedCurrentDayPnl as KrakenEmbedCurrentDayPnl, type KrakenEmbedGetPortfolioSummaryResponse as KrakenEmbedGetPortfolioSummaryResponse, };
|
|
111
|
+
export { type KrakenEmbedGetAssetListQueryParamsSchema as KrakenEmbedGetAssetListQueryParamsSchema, type KrakenEmbedGetPortfolioDetailsQueryParamsSchema as KrakenEmbedGetPortfolioDetailsQueryParamsSchema, type KrakenEmbedGetPortfolioSummaryQueryParams as KrakenEmbedGetPortfolioSummaryQueryParams, type KrakenEmbedCurrentDayPnl as KrakenEmbedCurrentDayPnl, type KrakenEmbedGetPortfolioSummaryResponse as KrakenEmbedGetPortfolioSummaryResponse, type KrakenEmbedGetPortfolioTransactionsQueryParamsSchema as KrakenEmbedGetPortfolioTransactionsQueryParamsSchema, type KrakenEmbedGetQuoteQueryParams as KrakenEmbedGetQuoteQueryParams, };
|
|
61
112
|
}
|
|
62
113
|
//# sourceMappingURL=kraken-embed.d.ts.map
|
|
@@ -1 +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;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