@crypticdot/defituna-api 4.3.2 → 4.3.3
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/dist/index.cjs +7 -3
- package/dist/index.d.cts +14 -3
- package/dist/index.d.ts +14 -3
- package/dist/index.js +7 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -10575,7 +10575,9 @@ var zGetLpSpotLeaderboardResponse = object({
|
|
|
10575
10575
|
var zGetMarketsData = object({
|
|
10576
10576
|
body: optional(never()),
|
|
10577
10577
|
path: optional(never()),
|
|
10578
|
-
query: optional(
|
|
10578
|
+
query: optional(object({
|
|
10579
|
+
isPermissionless: optional(int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }))
|
|
10580
|
+
}))
|
|
10579
10581
|
});
|
|
10580
10582
|
var zGetMarketsResponse = object({
|
|
10581
10583
|
data: zMarketsListResponse
|
|
@@ -11187,13 +11189,15 @@ var _TunaBackendSdk = class _TunaBackendSdk extends HeyApiClient {
|
|
|
11187
11189
|
/**
|
|
11188
11190
|
* Request all markets
|
|
11189
11191
|
*/
|
|
11190
|
-
getMarkets(options) {
|
|
11192
|
+
getMarkets(parameters, options) {
|
|
11193
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "isPermissionless" }] }]);
|
|
11191
11194
|
return (options?.client ?? this.client).get({
|
|
11192
11195
|
requestValidator: async (data) => await zGetMarketsData.parseAsync(data),
|
|
11193
11196
|
responseTransformer: getMarketsResponseTransformer,
|
|
11194
11197
|
responseValidator: async (data) => await zGetMarketsResponse.parseAsync(data),
|
|
11195
11198
|
url: "/v1/markets",
|
|
11196
|
-
...options
|
|
11199
|
+
...options,
|
|
11200
|
+
...params
|
|
11197
11201
|
});
|
|
11198
11202
|
}
|
|
11199
11203
|
/**
|
package/dist/index.d.cts
CHANGED
|
@@ -1840,10 +1840,17 @@ type GetLpSpotLeaderboardResponse = GetLpSpotLeaderboardResponses[keyof GetLpSpo
|
|
|
1840
1840
|
type GetMarketsData = {
|
|
1841
1841
|
body?: never;
|
|
1842
1842
|
path?: never;
|
|
1843
|
-
query?:
|
|
1843
|
+
query?: {
|
|
1844
|
+
/**
|
|
1845
|
+
* Filter by market permissionless flag: `0` = false, `1` = true.
|
|
1846
|
+
*/
|
|
1847
|
+
isPermissionless?: number;
|
|
1848
|
+
};
|
|
1844
1849
|
url: '/v1/markets';
|
|
1845
1850
|
};
|
|
1846
1851
|
type GetMarketsErrors = {
|
|
1852
|
+
400: BadRequestErrorCodeErrorBody;
|
|
1853
|
+
422: ValidationErrorCodeErrorBody;
|
|
1847
1854
|
500: InternalErrorCodeErrorBody;
|
|
1848
1855
|
};
|
|
1849
1856
|
type GetMarketsError = GetMarketsErrors[keyof GetMarketsErrors];
|
|
@@ -3108,7 +3115,9 @@ declare class TunaBackendSdk extends HeyApiClient {
|
|
|
3108
3115
|
/**
|
|
3109
3116
|
* Request all markets
|
|
3110
3117
|
*/
|
|
3111
|
-
getMarkets<ThrowOnError extends boolean = false>(
|
|
3118
|
+
getMarkets<ThrowOnError extends boolean = false>(parameters?: {
|
|
3119
|
+
isPermissionless?: number;
|
|
3120
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<GetMarketsResponses, GetMarketsErrors, ThrowOnError, "fields">;
|
|
3112
3121
|
/**
|
|
3113
3122
|
* Request market data
|
|
3114
3123
|
*/
|
|
@@ -10654,7 +10663,9 @@ type GetLpSpotLeaderboardResponseZodType = z.infer<typeof zGetLpSpotLeaderboardR
|
|
|
10654
10663
|
declare const zGetMarketsData: z.ZodObject<{
|
|
10655
10664
|
body: z.ZodOptional<z.ZodNever>;
|
|
10656
10665
|
path: z.ZodOptional<z.ZodNever>;
|
|
10657
|
-
query: z.ZodOptional<z.
|
|
10666
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
10667
|
+
isPermissionless: z.ZodOptional<z.ZodInt>;
|
|
10668
|
+
}, z.core.$strip>>;
|
|
10658
10669
|
}, z.core.$strip>;
|
|
10659
10670
|
declare const zGetMarketsResponse: z.ZodObject<{
|
|
10660
10671
|
data: z.ZodObject<{
|
package/dist/index.d.ts
CHANGED
|
@@ -1840,10 +1840,17 @@ type GetLpSpotLeaderboardResponse = GetLpSpotLeaderboardResponses[keyof GetLpSpo
|
|
|
1840
1840
|
type GetMarketsData = {
|
|
1841
1841
|
body?: never;
|
|
1842
1842
|
path?: never;
|
|
1843
|
-
query?:
|
|
1843
|
+
query?: {
|
|
1844
|
+
/**
|
|
1845
|
+
* Filter by market permissionless flag: `0` = false, `1` = true.
|
|
1846
|
+
*/
|
|
1847
|
+
isPermissionless?: number;
|
|
1848
|
+
};
|
|
1844
1849
|
url: '/v1/markets';
|
|
1845
1850
|
};
|
|
1846
1851
|
type GetMarketsErrors = {
|
|
1852
|
+
400: BadRequestErrorCodeErrorBody;
|
|
1853
|
+
422: ValidationErrorCodeErrorBody;
|
|
1847
1854
|
500: InternalErrorCodeErrorBody;
|
|
1848
1855
|
};
|
|
1849
1856
|
type GetMarketsError = GetMarketsErrors[keyof GetMarketsErrors];
|
|
@@ -3108,7 +3115,9 @@ declare class TunaBackendSdk extends HeyApiClient {
|
|
|
3108
3115
|
/**
|
|
3109
3116
|
* Request all markets
|
|
3110
3117
|
*/
|
|
3111
|
-
getMarkets<ThrowOnError extends boolean = false>(
|
|
3118
|
+
getMarkets<ThrowOnError extends boolean = false>(parameters?: {
|
|
3119
|
+
isPermissionless?: number;
|
|
3120
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<GetMarketsResponses, GetMarketsErrors, ThrowOnError, "fields">;
|
|
3112
3121
|
/**
|
|
3113
3122
|
* Request market data
|
|
3114
3123
|
*/
|
|
@@ -10654,7 +10663,9 @@ type GetLpSpotLeaderboardResponseZodType = z.infer<typeof zGetLpSpotLeaderboardR
|
|
|
10654
10663
|
declare const zGetMarketsData: z.ZodObject<{
|
|
10655
10664
|
body: z.ZodOptional<z.ZodNever>;
|
|
10656
10665
|
path: z.ZodOptional<z.ZodNever>;
|
|
10657
|
-
query: z.ZodOptional<z.
|
|
10666
|
+
query: z.ZodOptional<z.ZodObject<{
|
|
10667
|
+
isPermissionless: z.ZodOptional<z.ZodInt>;
|
|
10668
|
+
}, z.core.$strip>>;
|
|
10658
10669
|
}, z.core.$strip>;
|
|
10659
10670
|
declare const zGetMarketsResponse: z.ZodObject<{
|
|
10660
10671
|
data: z.ZodObject<{
|
package/dist/index.js
CHANGED
|
@@ -10247,7 +10247,9 @@ var zGetLpSpotLeaderboardResponse = object({
|
|
|
10247
10247
|
var zGetMarketsData = object({
|
|
10248
10248
|
body: optional(never()),
|
|
10249
10249
|
path: optional(never()),
|
|
10250
|
-
query: optional(
|
|
10250
|
+
query: optional(object({
|
|
10251
|
+
isPermissionless: optional(int().gte(0).max(2147483647, { error: "Invalid value: Expected int32 to be <= 2147483647" }))
|
|
10252
|
+
}))
|
|
10251
10253
|
});
|
|
10252
10254
|
var zGetMarketsResponse = object({
|
|
10253
10255
|
data: zMarketsListResponse
|
|
@@ -10859,13 +10861,15 @@ var _TunaBackendSdk = class _TunaBackendSdk extends HeyApiClient {
|
|
|
10859
10861
|
/**
|
|
10860
10862
|
* Request all markets
|
|
10861
10863
|
*/
|
|
10862
|
-
getMarkets(options) {
|
|
10864
|
+
getMarkets(parameters, options) {
|
|
10865
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "isPermissionless" }] }]);
|
|
10863
10866
|
return (options?.client ?? this.client).get({
|
|
10864
10867
|
requestValidator: async (data) => await zGetMarketsData.parseAsync(data),
|
|
10865
10868
|
responseTransformer: getMarketsResponseTransformer,
|
|
10866
10869
|
responseValidator: async (data) => await zGetMarketsResponse.parseAsync(data),
|
|
10867
10870
|
url: "/v1/markets",
|
|
10868
|
-
...options
|
|
10871
|
+
...options,
|
|
10872
|
+
...params
|
|
10869
10873
|
});
|
|
10870
10874
|
}
|
|
10871
10875
|
/**
|