@crypticdot/defituna-api 4.3.3 → 4.3.4
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 +139 -0
- package/dist/index.d.cts +194 -1
- package/dist/index.d.ts +194 -1
- package/dist/index.js +126 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -54,6 +54,14 @@ __export(index_exports, {
|
|
|
54
54
|
unwrap: () => unwrap,
|
|
55
55
|
zBadRequestErrorCodeErrorBody: () => zBadRequestErrorCodeErrorBody,
|
|
56
56
|
zCloseSpotPositionQuoteDto: () => zCloseSpotPositionQuoteDto,
|
|
57
|
+
zConfirmBindData: () => zConfirmBindData,
|
|
58
|
+
zConfirmBindRequest: () => zConfirmBindRequest,
|
|
59
|
+
zConfirmBindResponse: () => zConfirmBindResponse,
|
|
60
|
+
zConfirmBindResponse2: () => zConfirmBindResponse2,
|
|
61
|
+
zCreateBindChallengeData: () => zCreateBindChallengeData,
|
|
62
|
+
zCreateBindChallengeRequest: () => zCreateBindChallengeRequest,
|
|
63
|
+
zCreateBindChallengeResponse: () => zCreateBindChallengeResponse,
|
|
64
|
+
zCreateBindChallengeResponse2: () => zCreateBindChallengeResponse2,
|
|
57
65
|
zDecreaseSpotPositionQuoteDto: () => zDecreaseSpotPositionQuoteDto,
|
|
58
66
|
zFeeAmountWithUsd: () => zFeeAmountWithUsd,
|
|
59
67
|
zFeesStatsGroupDto: () => zFeesStatsGroupDto,
|
|
@@ -158,6 +166,11 @@ __export(index_exports, {
|
|
|
158
166
|
zI64Dto: () => zI64Dto,
|
|
159
167
|
zIncreaseSpotPositionQuoteDto: () => zIncreaseSpotPositionQuoteDto,
|
|
160
168
|
zInternalErrorCodeErrorBody: () => zInternalErrorCodeErrorBody,
|
|
169
|
+
zInviteApiError400Error: () => zInviteApiError400Error,
|
|
170
|
+
zInviteApiError400InvalidBindRequest: () => zInviteApiError400InvalidBindRequest,
|
|
171
|
+
zInviteApiError404Error: () => zInviteApiError404Error,
|
|
172
|
+
zInviteApiError409Error: () => zInviteApiError409Error,
|
|
173
|
+
zInviteApiError500Error: () => zInviteApiError500Error,
|
|
161
174
|
zLeaderboardError400BadRequest: () => zLeaderboardError400BadRequest,
|
|
162
175
|
zLeaderboardError400Error: () => zLeaderboardError400Error,
|
|
163
176
|
zLeaderboardError500Error: () => zLeaderboardError500Error,
|
|
@@ -432,6 +445,22 @@ var buildClientParams = (args, fields) => {
|
|
|
432
445
|
};
|
|
433
446
|
|
|
434
447
|
// src/client/transformers.gen.ts
|
|
448
|
+
var createBindChallengeResponseSchemaResponseTransformer = (data) => {
|
|
449
|
+
data.expiresAt = new Date(data.expiresAt);
|
|
450
|
+
return data;
|
|
451
|
+
};
|
|
452
|
+
var createBindChallengeResponseTransformer = async (data) => {
|
|
453
|
+
data.data = createBindChallengeResponseSchemaResponseTransformer(data.data);
|
|
454
|
+
return data;
|
|
455
|
+
};
|
|
456
|
+
var confirmBindResponseSchemaResponseTransformer = (data) => {
|
|
457
|
+
data.boundAt = new Date(data.boundAt);
|
|
458
|
+
return data;
|
|
459
|
+
};
|
|
460
|
+
var confirmBindResponseTransformer = async (data) => {
|
|
461
|
+
data.data = confirmBindResponseSchemaResponseTransformer(data.data);
|
|
462
|
+
return data;
|
|
463
|
+
};
|
|
435
464
|
var u64DtoSchemaResponseTransformer = (data) => {
|
|
436
465
|
data = BigInt(data.toString());
|
|
437
466
|
return data;
|
|
@@ -9010,6 +9039,14 @@ var zBadRequestErrorCodeErrorBody = object({
|
|
|
9010
9039
|
"invalid_body"
|
|
9011
9040
|
])
|
|
9012
9041
|
});
|
|
9042
|
+
var zConfirmBindResponse = object({
|
|
9043
|
+
boundAt: preprocess((value) => value instanceof Date ? value.toISOString() : value, iso_exports.datetime())
|
|
9044
|
+
});
|
|
9045
|
+
var zCreateBindChallengeResponse = object({
|
|
9046
|
+
expiresAt: preprocess((value) => value instanceof Date ? value.toISOString() : value, iso_exports.datetime()),
|
|
9047
|
+
messageB64: string2(),
|
|
9048
|
+
nonce: string2()
|
|
9049
|
+
});
|
|
9013
9050
|
var zFeesStatsGroupDto = object({
|
|
9014
9051
|
addLiquidityFees: number2(),
|
|
9015
9052
|
failedNetworkFees: number2(),
|
|
@@ -9070,6 +9107,30 @@ var zFeeAmountWithUsd = object({
|
|
|
9070
9107
|
var zInternalErrorCodeErrorBody = object({
|
|
9071
9108
|
code: _enum(["internal_error"])
|
|
9072
9109
|
});
|
|
9110
|
+
var zInviteApiError400InvalidBindRequest = object({
|
|
9111
|
+
code: _enum(["invalid_bind_request"])
|
|
9112
|
+
});
|
|
9113
|
+
var zInviteApiError400Error = union([
|
|
9114
|
+
object({
|
|
9115
|
+
code: literal("invalid_bind_request")
|
|
9116
|
+
}).and(zInviteApiError400InvalidBindRequest),
|
|
9117
|
+
object({
|
|
9118
|
+
code: union([
|
|
9119
|
+
literal("invalid_body"),
|
|
9120
|
+
literal("invalid_path"),
|
|
9121
|
+
literal("invalid_query")
|
|
9122
|
+
])
|
|
9123
|
+
}).and(zBadRequestErrorCodeErrorBody)
|
|
9124
|
+
]);
|
|
9125
|
+
var zInviteApiError404Error = object({
|
|
9126
|
+
code: _enum(["invite_code_not_found"])
|
|
9127
|
+
});
|
|
9128
|
+
var zInviteApiError409Error = object({
|
|
9129
|
+
code: _enum(["wallet_already_bound"])
|
|
9130
|
+
});
|
|
9131
|
+
var zInviteApiError500Error = object({
|
|
9132
|
+
code: _enum(["internal_error"])
|
|
9133
|
+
});
|
|
9073
9134
|
var zLeaderboardError400BadRequest = object({
|
|
9074
9135
|
code: _enum(["bad_request"])
|
|
9075
9136
|
});
|
|
@@ -9237,6 +9298,17 @@ var zPoolsError500Error = object({
|
|
|
9237
9298
|
code: _enum(["internal_error"])
|
|
9238
9299
|
});
|
|
9239
9300
|
var zPubkeyDto = string2().regex(/^[1-9A-HJ-NP-Za-km-z]+$/);
|
|
9301
|
+
var zConfirmBindRequest = object({
|
|
9302
|
+
inviteCode: string2().min(3).max(64),
|
|
9303
|
+
messageB64: string2().min(16).max(2048),
|
|
9304
|
+
nonce: string2().min(26).max(64),
|
|
9305
|
+
signatureB64: string2().min(86).max(128),
|
|
9306
|
+
wallet: zPubkeyDto
|
|
9307
|
+
});
|
|
9308
|
+
var zCreateBindChallengeRequest = object({
|
|
9309
|
+
inviteCode: string2().min(3).max(64),
|
|
9310
|
+
wallet: zPubkeyDto
|
|
9311
|
+
});
|
|
9240
9312
|
var zFusionFeesStatsGroupDto = object({
|
|
9241
9313
|
pool: zPubkeyDto,
|
|
9242
9314
|
runningTotalCollectedFees: number2(),
|
|
@@ -10557,6 +10629,22 @@ var zSubscriptionOptions = object({
|
|
|
10557
10629
|
zWalletSubscription
|
|
10558
10630
|
]))
|
|
10559
10631
|
});
|
|
10632
|
+
var zCreateBindChallengeData = object({
|
|
10633
|
+
body: zCreateBindChallengeRequest,
|
|
10634
|
+
path: optional(never()),
|
|
10635
|
+
query: optional(never())
|
|
10636
|
+
});
|
|
10637
|
+
var zCreateBindChallengeResponse2 = object({
|
|
10638
|
+
data: zCreateBindChallengeResponse
|
|
10639
|
+
});
|
|
10640
|
+
var zConfirmBindData = object({
|
|
10641
|
+
body: zConfirmBindRequest,
|
|
10642
|
+
path: optional(never()),
|
|
10643
|
+
query: optional(never())
|
|
10644
|
+
});
|
|
10645
|
+
var zConfirmBindResponse2 = object({
|
|
10646
|
+
data: zConfirmBindResponse
|
|
10647
|
+
});
|
|
10560
10648
|
var zGetLpSpotLeaderboardData = object({
|
|
10561
10649
|
body: optional(never()),
|
|
10562
10650
|
path: optional(never()),
|
|
@@ -11167,6 +11255,44 @@ var _TunaBackendSdk = class _TunaBackendSdk extends HeyApiClient {
|
|
|
11167
11255
|
super(args);
|
|
11168
11256
|
_TunaBackendSdk.__registry.set(this, args?.key);
|
|
11169
11257
|
}
|
|
11258
|
+
/**
|
|
11259
|
+
* Create invite bind challenge
|
|
11260
|
+
*/
|
|
11261
|
+
createBindChallenge(parameters, options) {
|
|
11262
|
+
const params = buildClientParams([parameters], [{ args: [{ key: "createBindChallengeRequest", map: "body" }] }]);
|
|
11263
|
+
return (options?.client ?? this.client).post({
|
|
11264
|
+
requestValidator: async (data) => await zCreateBindChallengeData.parseAsync(data),
|
|
11265
|
+
responseTransformer: createBindChallengeResponseTransformer,
|
|
11266
|
+
responseValidator: async (data) => await zCreateBindChallengeResponse2.parseAsync(data),
|
|
11267
|
+
url: "/v1/invites/bind/challenge",
|
|
11268
|
+
...options,
|
|
11269
|
+
...params,
|
|
11270
|
+
headers: {
|
|
11271
|
+
"Content-Type": "application/json",
|
|
11272
|
+
...options?.headers,
|
|
11273
|
+
...params.headers
|
|
11274
|
+
}
|
|
11275
|
+
});
|
|
11276
|
+
}
|
|
11277
|
+
/**
|
|
11278
|
+
* Confirm invite bind by signature
|
|
11279
|
+
*/
|
|
11280
|
+
confirmBind(parameters, options) {
|
|
11281
|
+
const params = buildClientParams([parameters], [{ args: [{ key: "confirmBindRequest", map: "body" }] }]);
|
|
11282
|
+
return (options?.client ?? this.client).post({
|
|
11283
|
+
requestValidator: async (data) => await zConfirmBindData.parseAsync(data),
|
|
11284
|
+
responseTransformer: confirmBindResponseTransformer,
|
|
11285
|
+
responseValidator: async (data) => await zConfirmBindResponse2.parseAsync(data),
|
|
11286
|
+
url: "/v1/invites/bind/confirm",
|
|
11287
|
+
...options,
|
|
11288
|
+
...params,
|
|
11289
|
+
headers: {
|
|
11290
|
+
"Content-Type": "application/json",
|
|
11291
|
+
...options?.headers,
|
|
11292
|
+
...params.headers
|
|
11293
|
+
}
|
|
11294
|
+
});
|
|
11295
|
+
}
|
|
11170
11296
|
/**
|
|
11171
11297
|
* Request LP and Spot leaderboard
|
|
11172
11298
|
*/
|
|
@@ -12052,6 +12178,14 @@ async function unwrap(promise2) {
|
|
|
12052
12178
|
unwrap,
|
|
12053
12179
|
zBadRequestErrorCodeErrorBody,
|
|
12054
12180
|
zCloseSpotPositionQuoteDto,
|
|
12181
|
+
zConfirmBindData,
|
|
12182
|
+
zConfirmBindRequest,
|
|
12183
|
+
zConfirmBindResponse,
|
|
12184
|
+
zConfirmBindResponse2,
|
|
12185
|
+
zCreateBindChallengeData,
|
|
12186
|
+
zCreateBindChallengeRequest,
|
|
12187
|
+
zCreateBindChallengeResponse,
|
|
12188
|
+
zCreateBindChallengeResponse2,
|
|
12055
12189
|
zDecreaseSpotPositionQuoteDto,
|
|
12056
12190
|
zFeeAmountWithUsd,
|
|
12057
12191
|
zFeesStatsGroupDto,
|
|
@@ -12156,6 +12290,11 @@ async function unwrap(promise2) {
|
|
|
12156
12290
|
zI64Dto,
|
|
12157
12291
|
zIncreaseSpotPositionQuoteDto,
|
|
12158
12292
|
zInternalErrorCodeErrorBody,
|
|
12293
|
+
zInviteApiError400Error,
|
|
12294
|
+
zInviteApiError400InvalidBindRequest,
|
|
12295
|
+
zInviteApiError404Error,
|
|
12296
|
+
zInviteApiError409Error,
|
|
12297
|
+
zInviteApiError500Error,
|
|
12159
12298
|
zLeaderboardError400BadRequest,
|
|
12160
12299
|
zLeaderboardError400Error,
|
|
12161
12300
|
zLeaderboardError500Error,
|
package/dist/index.d.cts
CHANGED
|
@@ -335,6 +335,43 @@ type CloseSpotPositionQuoteDto = {
|
|
|
335
335
|
*/
|
|
336
336
|
requiredSwapAmount: U64Dto;
|
|
337
337
|
};
|
|
338
|
+
type ConfirmBindRequest = {
|
|
339
|
+
inviteCode: string;
|
|
340
|
+
/**
|
|
341
|
+
* Base64-encoded message returned by `/bind/challenge`.
|
|
342
|
+
*/
|
|
343
|
+
messageB64: string;
|
|
344
|
+
nonce: string;
|
|
345
|
+
/**
|
|
346
|
+
* Base64-encoded Ed25519 signature of `message_b64`.
|
|
347
|
+
*/
|
|
348
|
+
signatureB64: string;
|
|
349
|
+
wallet: PubkeyDto;
|
|
350
|
+
};
|
|
351
|
+
type ConfirmBindResponse = {
|
|
352
|
+
/**
|
|
353
|
+
* Binding timestamp in UTC. Only fees after this time are attributed.
|
|
354
|
+
*/
|
|
355
|
+
boundAt: Date;
|
|
356
|
+
};
|
|
357
|
+
type CreateBindChallengeRequest = {
|
|
358
|
+
inviteCode: string;
|
|
359
|
+
wallet: PubkeyDto;
|
|
360
|
+
};
|
|
361
|
+
type CreateBindChallengeResponse = {
|
|
362
|
+
/**
|
|
363
|
+
* Challenge expiration timestamp in UTC.
|
|
364
|
+
*/
|
|
365
|
+
expiresAt: Date;
|
|
366
|
+
/**
|
|
367
|
+
* Base64-encoded message that must be signed by the wallet.
|
|
368
|
+
*/
|
|
369
|
+
messageB64: string;
|
|
370
|
+
/**
|
|
371
|
+
* One-time challenge id to be echoed back in `/bind/confirm`.
|
|
372
|
+
*/
|
|
373
|
+
nonce: string;
|
|
374
|
+
};
|
|
338
375
|
type DecreaseSpotPositionQuoteDto = {
|
|
339
376
|
/**
|
|
340
377
|
* Position decrease percentage
|
|
@@ -478,6 +515,23 @@ type IncreaseSpotPositionQuoteDto = {
|
|
|
478
515
|
type InternalErrorCodeErrorBody = {
|
|
479
516
|
code: 'internal_error';
|
|
480
517
|
};
|
|
518
|
+
type InviteApiError400Error = ({
|
|
519
|
+
code: 'invalid_bind_request';
|
|
520
|
+
} & InviteApiError400InvalidBindRequest) | ({
|
|
521
|
+
code: 'invalid_body' | 'invalid_path' | 'invalid_query';
|
|
522
|
+
} & BadRequestErrorCodeErrorBody);
|
|
523
|
+
type InviteApiError400InvalidBindRequest = {
|
|
524
|
+
code: 'invalid_bind_request';
|
|
525
|
+
};
|
|
526
|
+
type InviteApiError404Error = {
|
|
527
|
+
code: 'invite_code_not_found';
|
|
528
|
+
};
|
|
529
|
+
type InviteApiError409Error = {
|
|
530
|
+
code: 'wallet_already_bound';
|
|
531
|
+
};
|
|
532
|
+
type InviteApiError500Error = {
|
|
533
|
+
code: 'internal_error';
|
|
534
|
+
};
|
|
481
535
|
type LeaderboardError400BadRequest = {
|
|
482
536
|
code: 'bad_request';
|
|
483
537
|
};
|
|
@@ -1797,6 +1851,46 @@ declare const WalletSubscriptionTopic: {
|
|
|
1797
1851
|
readonly ORDER_HISTORY: "order_history";
|
|
1798
1852
|
};
|
|
1799
1853
|
type WalletSubscriptionTopic = typeof WalletSubscriptionTopic[keyof typeof WalletSubscriptionTopic];
|
|
1854
|
+
type CreateBindChallengeData = {
|
|
1855
|
+
body: CreateBindChallengeRequest;
|
|
1856
|
+
path?: never;
|
|
1857
|
+
query?: never;
|
|
1858
|
+
url: '/v1/invites/bind/challenge';
|
|
1859
|
+
};
|
|
1860
|
+
type CreateBindChallengeErrors = {
|
|
1861
|
+
400: InviteApiError400Error;
|
|
1862
|
+
404: InviteApiError404Error;
|
|
1863
|
+
409: InviteApiError409Error;
|
|
1864
|
+
422: ValidationErrorCodeErrorBody;
|
|
1865
|
+
500: InviteApiError500Error;
|
|
1866
|
+
};
|
|
1867
|
+
type CreateBindChallengeError = CreateBindChallengeErrors[keyof CreateBindChallengeErrors];
|
|
1868
|
+
type CreateBindChallengeResponses = {
|
|
1869
|
+
200: {
|
|
1870
|
+
data: CreateBindChallengeResponse;
|
|
1871
|
+
};
|
|
1872
|
+
};
|
|
1873
|
+
type CreateBindChallengeResponse2 = CreateBindChallengeResponses[keyof CreateBindChallengeResponses];
|
|
1874
|
+
type ConfirmBindData = {
|
|
1875
|
+
body: ConfirmBindRequest;
|
|
1876
|
+
path?: never;
|
|
1877
|
+
query?: never;
|
|
1878
|
+
url: '/v1/invites/bind/confirm';
|
|
1879
|
+
};
|
|
1880
|
+
type ConfirmBindErrors = {
|
|
1881
|
+
400: InviteApiError400Error;
|
|
1882
|
+
404: InviteApiError404Error;
|
|
1883
|
+
409: InviteApiError409Error;
|
|
1884
|
+
422: ValidationErrorCodeErrorBody;
|
|
1885
|
+
500: InviteApiError500Error;
|
|
1886
|
+
};
|
|
1887
|
+
type ConfirmBindError = ConfirmBindErrors[keyof ConfirmBindErrors];
|
|
1888
|
+
type ConfirmBindResponses = {
|
|
1889
|
+
200: {
|
|
1890
|
+
data: ConfirmBindResponse;
|
|
1891
|
+
};
|
|
1892
|
+
};
|
|
1893
|
+
type ConfirmBindResponse2 = ConfirmBindResponses[keyof ConfirmBindResponses];
|
|
1800
1894
|
type GetLpSpotLeaderboardData = {
|
|
1801
1895
|
body?: never;
|
|
1802
1896
|
path?: never;
|
|
@@ -3102,6 +3196,18 @@ declare class TunaBackendSdk extends HeyApiClient {
|
|
|
3102
3196
|
client?: Client;
|
|
3103
3197
|
key?: string;
|
|
3104
3198
|
});
|
|
3199
|
+
/**
|
|
3200
|
+
* Create invite bind challenge
|
|
3201
|
+
*/
|
|
3202
|
+
createBindChallenge<ThrowOnError extends boolean = false>(parameters: {
|
|
3203
|
+
createBindChallengeRequest: CreateBindChallengeRequest;
|
|
3204
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<CreateBindChallengeResponses, CreateBindChallengeErrors, ThrowOnError, "fields">;
|
|
3205
|
+
/**
|
|
3206
|
+
* Confirm invite bind by signature
|
|
3207
|
+
*/
|
|
3208
|
+
confirmBind<ThrowOnError extends boolean = false>(parameters: {
|
|
3209
|
+
confirmBindRequest: ConfirmBindRequest;
|
|
3210
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<ConfirmBindResponses, ConfirmBindErrors, ThrowOnError, "fields">;
|
|
3105
3211
|
/**
|
|
3106
3212
|
* Request LP and Spot leaderboard
|
|
3107
3213
|
*/
|
|
@@ -3485,6 +3591,14 @@ declare const zBadRequestErrorCodeErrorBody: z.ZodObject<{
|
|
|
3485
3591
|
invalid_body: "invalid_body";
|
|
3486
3592
|
}>;
|
|
3487
3593
|
}, z.core.$strip>;
|
|
3594
|
+
declare const zConfirmBindResponse: z.ZodObject<{
|
|
3595
|
+
boundAt: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>;
|
|
3596
|
+
}, z.core.$strip>;
|
|
3597
|
+
declare const zCreateBindChallengeResponse: z.ZodObject<{
|
|
3598
|
+
expiresAt: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>;
|
|
3599
|
+
messageB64: z.ZodString;
|
|
3600
|
+
nonce: z.ZodString;
|
|
3601
|
+
}, z.core.$strip>;
|
|
3488
3602
|
declare const zFeesStatsGroupDto: z.ZodObject<{
|
|
3489
3603
|
addLiquidityFees: z.ZodNumber;
|
|
3490
3604
|
failedNetworkFees: z.ZodNumber;
|
|
@@ -3557,6 +3671,41 @@ declare const zInternalErrorCodeErrorBody: z.ZodObject<{
|
|
|
3557
3671
|
internal_error: "internal_error";
|
|
3558
3672
|
}>;
|
|
3559
3673
|
}, z.core.$strip>;
|
|
3674
|
+
declare const zInviteApiError400InvalidBindRequest: z.ZodObject<{
|
|
3675
|
+
code: z.ZodEnum<{
|
|
3676
|
+
invalid_bind_request: "invalid_bind_request";
|
|
3677
|
+
}>;
|
|
3678
|
+
}, z.core.$strip>;
|
|
3679
|
+
declare const zInviteApiError400Error: z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
3680
|
+
code: z.ZodLiteral<"invalid_bind_request">;
|
|
3681
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3682
|
+
code: z.ZodEnum<{
|
|
3683
|
+
invalid_bind_request: "invalid_bind_request";
|
|
3684
|
+
}>;
|
|
3685
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3686
|
+
code: z.ZodUnion<readonly [z.ZodLiteral<"invalid_body">, z.ZodLiteral<"invalid_path">, z.ZodLiteral<"invalid_query">]>;
|
|
3687
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3688
|
+
code: z.ZodEnum<{
|
|
3689
|
+
invalid_path: "invalid_path";
|
|
3690
|
+
invalid_query: "invalid_query";
|
|
3691
|
+
invalid_body: "invalid_body";
|
|
3692
|
+
}>;
|
|
3693
|
+
}, z.core.$strip>>]>;
|
|
3694
|
+
declare const zInviteApiError404Error: z.ZodObject<{
|
|
3695
|
+
code: z.ZodEnum<{
|
|
3696
|
+
invite_code_not_found: "invite_code_not_found";
|
|
3697
|
+
}>;
|
|
3698
|
+
}, z.core.$strip>;
|
|
3699
|
+
declare const zInviteApiError409Error: z.ZodObject<{
|
|
3700
|
+
code: z.ZodEnum<{
|
|
3701
|
+
wallet_already_bound: "wallet_already_bound";
|
|
3702
|
+
}>;
|
|
3703
|
+
}, z.core.$strip>;
|
|
3704
|
+
declare const zInviteApiError500Error: z.ZodObject<{
|
|
3705
|
+
code: z.ZodEnum<{
|
|
3706
|
+
internal_error: "internal_error";
|
|
3707
|
+
}>;
|
|
3708
|
+
}, z.core.$strip>;
|
|
3560
3709
|
declare const zLeaderboardError400BadRequest: z.ZodObject<{
|
|
3561
3710
|
code: z.ZodEnum<{
|
|
3562
3711
|
bad_request: "bad_request";
|
|
@@ -3791,6 +3940,17 @@ declare const zPoolsError500Error: z.ZodObject<{
|
|
|
3791
3940
|
* - OpenAPI: `type: string`, pattern for base58, optional format
|
|
3792
3941
|
*/
|
|
3793
3942
|
declare const zPubkeyDto: z.ZodString;
|
|
3943
|
+
declare const zConfirmBindRequest: z.ZodObject<{
|
|
3944
|
+
inviteCode: z.ZodString;
|
|
3945
|
+
messageB64: z.ZodString;
|
|
3946
|
+
nonce: z.ZodString;
|
|
3947
|
+
signatureB64: z.ZodString;
|
|
3948
|
+
wallet: z.ZodString;
|
|
3949
|
+
}, z.core.$strip>;
|
|
3950
|
+
declare const zCreateBindChallengeRequest: z.ZodObject<{
|
|
3951
|
+
inviteCode: z.ZodString;
|
|
3952
|
+
wallet: z.ZodString;
|
|
3953
|
+
}, z.core.$strip>;
|
|
3794
3954
|
declare const zFusionFeesStatsGroupDto: z.ZodObject<{
|
|
3795
3955
|
pool: z.ZodString;
|
|
3796
3956
|
runningTotalCollectedFees: z.ZodNumber;
|
|
@@ -10624,6 +10784,39 @@ declare const zSubscriptionOptions: z.ZodObject<{
|
|
|
10624
10784
|
}>>;
|
|
10625
10785
|
}, z.core.$strip>]>>;
|
|
10626
10786
|
}, z.core.$strip>;
|
|
10787
|
+
declare const zCreateBindChallengeData: z.ZodObject<{
|
|
10788
|
+
body: z.ZodObject<{
|
|
10789
|
+
inviteCode: z.ZodString;
|
|
10790
|
+
wallet: z.ZodString;
|
|
10791
|
+
}, z.core.$strip>;
|
|
10792
|
+
path: z.ZodOptional<z.ZodNever>;
|
|
10793
|
+
query: z.ZodOptional<z.ZodNever>;
|
|
10794
|
+
}, z.core.$strip>;
|
|
10795
|
+
declare const zCreateBindChallengeResponse2: z.ZodObject<{
|
|
10796
|
+
data: z.ZodObject<{
|
|
10797
|
+
expiresAt: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>;
|
|
10798
|
+
messageB64: z.ZodString;
|
|
10799
|
+
nonce: z.ZodString;
|
|
10800
|
+
}, z.core.$strip>;
|
|
10801
|
+
}, z.core.$strip>;
|
|
10802
|
+
type CreateBindChallengeResponseZodType = z.infer<typeof zCreateBindChallengeResponse2>;
|
|
10803
|
+
declare const zConfirmBindData: z.ZodObject<{
|
|
10804
|
+
body: z.ZodObject<{
|
|
10805
|
+
inviteCode: z.ZodString;
|
|
10806
|
+
messageB64: z.ZodString;
|
|
10807
|
+
nonce: z.ZodString;
|
|
10808
|
+
signatureB64: z.ZodString;
|
|
10809
|
+
wallet: z.ZodString;
|
|
10810
|
+
}, z.core.$strip>;
|
|
10811
|
+
path: z.ZodOptional<z.ZodNever>;
|
|
10812
|
+
query: z.ZodOptional<z.ZodNever>;
|
|
10813
|
+
}, z.core.$strip>;
|
|
10814
|
+
declare const zConfirmBindResponse2: z.ZodObject<{
|
|
10815
|
+
data: z.ZodObject<{
|
|
10816
|
+
boundAt: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>;
|
|
10817
|
+
}, z.core.$strip>;
|
|
10818
|
+
}, z.core.$strip>;
|
|
10819
|
+
type ConfirmBindResponseZodType = z.infer<typeof zConfirmBindResponse2>;
|
|
10627
10820
|
declare const zGetLpSpotLeaderboardData: z.ZodObject<{
|
|
10628
10821
|
body: z.ZodOptional<z.ZodNever>;
|
|
10629
10822
|
path: z.ZodOptional<z.ZodNever>;
|
|
@@ -14680,4 +14873,4 @@ declare class TunaBackendSdkError<TCause = unknown> extends Error {
|
|
|
14680
14873
|
declare const tunaSdkErrorInterceptor: (error: unknown, response?: Response) => TunaBackendSdkError<unknown>;
|
|
14681
14874
|
declare const isTunaSdkError: <TCause = unknown>(error: unknown) => error is TunaBackendSdkError<TCause>;
|
|
14682
14875
|
|
|
14683
|
-
export { type BadRequestErrorCodeErrorBody, type ClientOptions, type CloseSpotPositionQuoteDto, type DecreaseSpotPositionQuoteDto, type FeeAmountWithUsd, type FeesStatsGroupDto, type FieldError, type FusionFeesStatsGroupDto, type GetCloseSpotPositionQuoteData, type GetCloseSpotPositionQuoteError, type GetCloseSpotPositionQuoteErrors, type GetCloseSpotPositionQuoteResponse, type GetCloseSpotPositionQuoteResponseZodType, type GetCloseSpotPositionQuoteResponses, type GetDecreaseSpotPositionQuoteData, type GetDecreaseSpotPositionQuoteError, type GetDecreaseSpotPositionQuoteErrors, type GetDecreaseSpotPositionQuoteResponse, type GetDecreaseSpotPositionQuoteResponseZodType, type GetDecreaseSpotPositionQuoteResponses, type GetFeesStatsData, type GetFeesStatsError, type GetFeesStatsErrors, type GetFeesStatsResponse, type GetFeesStatsResponseZodType, type GetFeesStatsResponses, type GetFusionFeesStatsData, type GetFusionFeesStatsError, type GetFusionFeesStatsErrors, type GetFusionFeesStatsResponse, type GetFusionFeesStatsResponseZodType, type GetFusionFeesStatsResponses, type GetIncreaseSpotPositionQuoteData, type GetIncreaseSpotPositionQuoteError, type GetIncreaseSpotPositionQuoteErrors, type GetIncreaseSpotPositionQuoteResponse, type GetIncreaseSpotPositionQuoteResponseZodType, type GetIncreaseSpotPositionQuoteResponses, type GetLendingPositionData, type GetLendingPositionError, type GetLendingPositionErrors, type GetLendingPositionResponse, type GetLendingPositionResponseZodType, type GetLendingPositionResponses, type GetLendingPositionsData, type GetLendingPositionsError, type GetLendingPositionsErrors, type GetLendingPositionsResponse, type GetLendingPositionsResponseZodType, type GetLendingPositionsResponses, type GetLimitOrderData, type GetLimitOrderError, type GetLimitOrderError404Error, type GetLimitOrderError500Error, type GetLimitOrderErrors, type GetLimitOrderQuoteByInputData, type GetLimitOrderQuoteByInputError, type GetLimitOrderQuoteByInputErrors, type GetLimitOrderQuoteByInputResponse, type GetLimitOrderQuoteByInputResponseZodType, type GetLimitOrderQuoteByInputResponses, type GetLimitOrderQuoteByOutputData, type GetLimitOrderQuoteByOutputError, type GetLimitOrderQuoteByOutputErrors, type GetLimitOrderQuoteByOutputResponse, type GetLimitOrderQuoteByOutputResponseZodType, type GetLimitOrderQuoteByOutputResponses, type GetLimitOrderResponse, type GetLimitOrderResponseZodType, type GetLimitOrderResponses, type GetLimitOrdersData, type GetLimitOrdersError, type GetLimitOrdersErrors, type GetLimitOrdersResponse, type GetLimitOrdersResponseZodType, type GetLimitOrdersResponses, type GetLpPositionActionsData, type GetLpPositionActionsError, type GetLpPositionActionsErrors, type GetLpPositionActionsResponse, type GetLpPositionActionsResponseZodType, type GetLpPositionActionsResponses, type GetLpPositionsData, type GetLpPositionsError, type GetLpPositionsErrors, type GetLpPositionsResponse, type GetLpPositionsResponseZodType, type GetLpPositionsResponses, type GetLpSpotLeaderboardData, type GetLpSpotLeaderboardError, type GetLpSpotLeaderboardErrors, type GetLpSpotLeaderboardResponse, type GetLpSpotLeaderboardResponseZodType, type GetLpSpotLeaderboardResponses, type GetMarketData, type GetMarketError, type GetMarketErrors, type GetMarketResponse, type GetMarketResponseZodType, type GetMarketResponses, type GetMarketsData, type GetMarketsError, type GetMarketsErrors, type GetMarketsResponse, type GetMarketsResponseZodType, type GetMarketsResponses, type GetMintData, type GetMintError, type GetMintErrors, type GetMintResponse, type GetMintResponseZodType, type GetMintResponses, type GetMintsData, type GetMintsError, type GetMintsErrors, type GetMintsResponse, type GetMintsResponseZodType, type GetMintsResponses, type GetOraclePriceData, type GetOraclePriceError, type GetOraclePriceErrors, type GetOraclePriceResponse, type GetOraclePriceResponseZodType, type GetOraclePriceResponses, type GetOraclePricesData, type GetOraclePricesError, type GetOraclePricesErrors, type GetOraclePricesResponse, type GetOraclePricesResponseZodType, type GetOraclePricesResponses, type GetOrderHistoryData, type GetOrderHistoryError, type GetOrderHistoryErrors, type GetOrderHistoryResponse, type GetOrderHistoryResponseZodType, type GetOrderHistoryResponses, type GetPairPriceData, type GetPairPriceError, type GetPairPriceErrors, type GetPairPriceResponse, type GetPairPriceResponseZodType, type GetPairPriceResponses, type GetPoolCandlesData, type GetPoolCandlesError, type GetPoolCandlesErrors, type GetPoolCandlesResponse, type GetPoolCandlesResponseZodType, type GetPoolCandlesResponses, type GetPoolData, type GetPoolError, type GetPoolErrors, type GetPoolOrderBookData, type GetPoolOrderBookError, type GetPoolOrderBookErrors, type GetPoolOrderBookResponse, type GetPoolOrderBookResponseZodType, type GetPoolOrderBookResponses, type GetPoolResponse, type GetPoolResponseZodType, type GetPoolResponses, type GetPoolSwapsData, type GetPoolSwapsError, type GetPoolSwapsErrors, type GetPoolSwapsResponse, type GetPoolSwapsResponseZodType, type GetPoolSwapsResponses, type GetPoolTicksData, type GetPoolTicksError, type GetPoolTicksErrors, type GetPoolTicksResponse, type GetPoolTicksResponseZodType, type GetPoolTicksResponses, type GetPoolsData, type GetPoolsError, type GetPoolsErrors, type GetPoolsResponse, type GetPoolsResponseZodType, type GetPoolsResponses, type GetPositionsStatsData, type GetPositionsStatsError, type GetPositionsStatsErrors, type GetPositionsStatsResponse, type GetPositionsStatsResponseZodType, type GetPositionsStatsResponses, type GetPositionsTotalData, type GetPositionsTotalError, type GetPositionsTotalErrors, type GetPositionsTotalResponse, type GetPositionsTotalResponseZodType, type GetPositionsTotalResponses, type GetSpotPositionData, type GetSpotPositionError, type GetSpotPositionErrors, type GetSpotPositionResponse, type GetSpotPositionResponseZodType, type GetSpotPositionResponses, type GetSpotPositionsData, type GetSpotPositionsError, type GetSpotPositionsErrors, type GetSpotPositionsResponse, type GetSpotPositionsResponseZodType, type GetSpotPositionsResponses, type GetStakingLeaderboardData, type GetStakingLeaderboardError, type GetStakingLeaderboardErrors, type GetStakingLeaderboardResponse, type GetStakingLeaderboardResponseZodType, type GetStakingLeaderboardResponses, type GetStakingRevenueStatsData, type GetStakingRevenueStatsError, type GetStakingRevenueStatsErrors, type GetStakingRevenueStatsResponse, type GetStakingRevenueStatsResponseZodType, type GetStakingRevenueStatsResponses, type GetStakingTreasuryData, type GetStakingTreasuryError, type GetStakingTreasuryErrors, type GetStakingTreasuryResponse, type GetStakingTreasuryResponseZodType, type GetStakingTreasuryResponses, type GetSwapQuoteByInputData, type GetSwapQuoteByInputError, type GetSwapQuoteByInputErrors, type GetSwapQuoteByInputResponse, type GetSwapQuoteByInputResponseZodType, type GetSwapQuoteByInputResponses, type GetSwapQuoteByOutputData, type GetSwapQuoteByOutputError, type GetSwapQuoteByOutputErrors, type GetSwapQuoteByOutputResponse, type GetSwapQuoteByOutputResponseZodType, type GetSwapQuoteByOutputResponses, type GetTradableAmountData, type GetTradableAmountError, type GetTradableAmountErrors, type GetTradableAmountResponse, type GetTradableAmountResponseZodType, type GetTradableAmountResponses, type GetTradeHistoryData, type GetTradeHistoryError, type GetTradeHistoryErrors, type GetTradeHistoryResponse, type GetTradeHistoryResponseZodType, type GetTradeHistoryResponses, type GetTunaPositionData, type GetTunaPositionError, type GetTunaPositionErrors, type GetTunaPositionResponse, type GetTunaPositionResponseZodType, type GetTunaPositionResponses, type GetTunaPositionsData, type GetTunaPositionsError, type GetTunaPositionsErrors, type GetTunaPositionsResponse, type GetTunaPositionsResponseZodType, type GetTunaPositionsResponses, type GetUserStakingPositionData, type GetUserStakingPositionError, type GetUserStakingPositionErrors, type GetUserStakingPositionHistoryData, type GetUserStakingPositionHistoryError, type GetUserStakingPositionHistoryErrors, type GetUserStakingPositionHistoryResponse, type GetUserStakingPositionHistoryResponseZodType, type GetUserStakingPositionHistoryResponses, type GetUserStakingPositionResponse, type GetUserStakingPositionResponseZodType, type GetUserStakingPositionResponses, type GetVaultData, type GetVaultError, type GetVaultErrors, type GetVaultHistoryData, type GetVaultHistoryError, type GetVaultHistoryErrors, type GetVaultHistoryResponse, type GetVaultHistoryResponseZodType, type GetVaultHistoryResponses, type GetVaultResponse, type GetVaultResponseZodType, type GetVaultResponses, type GetVaultsData, type GetVaultsError, type GetVaultsErrors, type GetVaultsResponse, type GetVaultsResponseZodType, type GetVaultsResponses, type HttpStatusData, type I128Dto, type I64Dto, type IncreaseSpotPositionQuoteDto, type InternalErrorCodeErrorBody, type LeaderboardError400BadRequest, type LeaderboardError400Error, type LeaderboardError500Error, type LeaderboardItemDto, LeaderboardPeriod, LeaderboardSortBy, type LendingPositionDto, type LendingPositionError404Error, type LendingPositionError500Error, type LendingPositionResponse, type LendingPositionsListResponse, type LimitOrderDto, type LimitOrderQuoteByInputDto, type LimitOrderQuoteByOutputDto, type LimitOrderResponse, LimitOrderStatus, type LimitOrdersListResponse, type LpPositionResponse, type LpPositionsError400BadRequest, type LpPositionsError400Error, type LpPositionsError500Error, type LpPositionsHistoryListResponse, type LpPositionsListResponse, type MarketDto, type MarketError404Error, type MarketError500Error, type MarketResponse, type MarketsListResponse, type MintDto, type MintError404Error, type MintError500Error, NotificationAction, NotificationEntity, type Options, type OraclePriceDto, type OraclePriceError404Error, type OraclePriceError500Error, type OrderBookDto, type OrderBookEntryDto, type OrderBookWrapper, type OrderHistoryEntryDto, type OrderHistoryListResponse, type OrderHistoryNotificationResponse, OrderHistoryStatus, OrderHistoryType, OrderHistoryUiDirection, type PaginationMeta, type PoolDto, type PoolPriceCandleDto, PoolProvider, type PoolStatsDto, type PoolStatsGroupDto, type PoolStatsGroupEntryDto, type PoolSubscription, PoolSubscriptionTopic, type PoolSwapDto, type PoolTicksDto, type PoolsError400BadRequest, type PoolsError400Error, type PoolsError404Error, type PoolsError500Error, type PubkeyDto, RateLimitSource, type RetryAfterHint, type SearchTokensData, type SearchTokensError, type SearchTokensErrors, type SearchTokensResponse, type SearchTokensResponseZodType, type SearchTokensResponses, type ServerSentEventsOptions, type ServerSentEventsResult, type Snapshot, type SnapshotContainer, type SpotPositionError404Error, type SpotPositionError500Error, type SpotPositionResponse, type SpotPositionsListResponse, type SseData, type SseErrors, type SseResponse, type SseResponse2, type SseResponseInitialMessage, type SseResponseLendingPosition, type SseResponseLendingPositionPayload, type SseResponseOrderHistoryEntry, type SseResponseOrderHistoryEntryPayload, type SseResponsePoolSwap, type SseResponsePoolSwapPayload, type SseResponseSnapshot, type SseResponseStakingPosition, type SseResponseStakingPositionPayload, type SseResponseTradeHistoryEntry, type SseResponseTradeHistoryEntryPayload, type SseResponseZodType, type SseResponses, type StakingDepositsStatsDto, type StakingError400BadRequest, type StakingError400Error, type StakingError500Error, type StakingLeaderboardPositionDto, type StakingPositionActionDto, StakingPositionActionType, type StakingPositionDto, type StatsError400BadRequest, type StatsError400Error, type StatsError500Error, type StreamEvent, type StreamInitalMessage, type SubscriptionOptions, type SwapQuoteByInputDto, type SwapQuoteByOutputDto, type TickDto, type TokenAmountWithUsd, type TokenAuditDto, type TokenFirstPoolDto, type TokenPairPriceResponseDto, type TokenPriceDto, type TokenSearchItemDto, type TokenStatsWindowDto, type TokensError400BadRequest, type TokensError400Error, type TokensError404Error, type TokensError429Error, type TokensError429TooManyRequests, type TokensError429UpstreamRateLimited, type TokensError500Error, type TokensError502Error, type TradableAmountDto, TradeHistoryAction, type TradeHistoryEntryDto, type TradeHistoryEntryPnlUsd, type TradeHistoryListResponse, type TradeHistoryNotificationResponse, TradeHistoryUiDirection, type TreasuryDto, TunaBackendSdk, TunaBackendSdkError, type TunaLpPositionActionComposite, type TunaLpPositionActionDto, TunaLpPositionAutoCompound, TunaLpPositionAutoCompounding, type TunaLpPositionDto, type TunaLpPositionFlags, type TunaLpPositionInnerSwaps, TunaLpPositionLimitOrderSwap, type TunaLpPositionParameters, TunaLpPositionRebalance, type TunaLpPositionTokenPrices, type TunaLpPositionTransfer, type TunaLpPositionTriggerOrder, TunaLpPositionTriggerOrderType, type TunaLpPositionValue, TunaLpPositionsActionType, type TunaLpPositionsStats, type TunaPositionDto, TunaPositionDtoLockType, TunaPositionDtoState, TunaPositionMarketMaker, TunaPositionPoolToken, type TunaPositionTokenDepositedCollateral, type TunaPositionTokenPnl, type TunaPositionUsdPnl, type TunaSpotPositionDto, TunaSpotPositionDtoState, type U128Dto, type U64Dto, type UpdateStreamSubscriptionData, type UpdateStreamSubscriptionError, type UpdateStreamSubscriptionError404Error, type UpdateStreamSubscriptionError500Error, type UpdateStreamSubscriptionErrors, type UpdateStreamSubscriptionResponse, type UpdateStreamSubscriptionResponseZodType, type UpdateStreamSubscriptionResponses, type ValidationErrorCodeErrorBody, type ValidationErrorCodeValidationDetailsErrorBody, type VaultDto, type VaultError400BadRequest, type VaultError400Error, type VaultError404Error, type VaultError500Error, type VaultResponse, type VaultStatsDto, type VaultsListResponse, type VestingDto, type WalletSubscription, WalletSubscriptionTopic, createClient, createSseClient, isTunaSdkError, tunaSdkErrorInterceptor, unwrap, zBadRequestErrorCodeErrorBody, zCloseSpotPositionQuoteDto, zDecreaseSpotPositionQuoteDto, zFeeAmountWithUsd, zFeesStatsGroupDto, zFieldError, zFusionFeesStatsGroupDto, zGetCloseSpotPositionQuoteData, zGetCloseSpotPositionQuoteResponse, zGetDecreaseSpotPositionQuoteData, zGetDecreaseSpotPositionQuoteResponse, zGetFeesStatsData, zGetFeesStatsResponse, zGetFusionFeesStatsData, zGetFusionFeesStatsResponse, zGetIncreaseSpotPositionQuoteData, zGetIncreaseSpotPositionQuoteResponse, zGetLendingPositionData, zGetLendingPositionResponse, zGetLendingPositionsData, zGetLendingPositionsResponse, zGetLimitOrderData, zGetLimitOrderError404Error, zGetLimitOrderError500Error, zGetLimitOrderQuoteByInputData, zGetLimitOrderQuoteByInputResponse, zGetLimitOrderQuoteByOutputData, zGetLimitOrderQuoteByOutputResponse, zGetLimitOrderResponse, zGetLimitOrdersData, zGetLimitOrdersResponse, zGetLpPositionActionsData, zGetLpPositionActionsResponse, zGetLpPositionsData, zGetLpPositionsResponse, zGetLpSpotLeaderboardData, zGetLpSpotLeaderboardResponse, zGetMarketData, zGetMarketResponse, zGetMarketsData, zGetMarketsResponse, zGetMintData, zGetMintResponse, zGetMintsData, zGetMintsResponse, zGetOraclePriceData, zGetOraclePriceResponse, zGetOraclePricesData, zGetOraclePricesResponse, zGetOrderHistoryData, zGetOrderHistoryResponse, zGetPairPriceData, zGetPairPriceResponse, zGetPoolCandlesData, zGetPoolCandlesResponse, zGetPoolData, zGetPoolOrderBookData, zGetPoolOrderBookResponse, zGetPoolResponse, zGetPoolSwapsData, zGetPoolSwapsResponse, zGetPoolTicksData, zGetPoolTicksResponse, zGetPoolsData, zGetPoolsResponse, zGetPositionsStatsData, zGetPositionsStatsResponse, zGetPositionsTotalData, zGetPositionsTotalResponse, zGetSpotPositionData, zGetSpotPositionResponse, zGetSpotPositionsData, zGetSpotPositionsResponse, zGetStakingLeaderboardData, zGetStakingLeaderboardResponse, zGetStakingRevenueStatsData, zGetStakingRevenueStatsResponse, zGetStakingTreasuryData, zGetStakingTreasuryResponse, zGetSwapQuoteByInputData, zGetSwapQuoteByInputResponse, zGetSwapQuoteByOutputData, zGetSwapQuoteByOutputResponse, zGetTradableAmountData, zGetTradableAmountResponse, zGetTradeHistoryData, zGetTradeHistoryResponse, zGetTunaPositionData, zGetTunaPositionResponse, zGetTunaPositionsData, zGetTunaPositionsResponse, zGetUserStakingPositionData, zGetUserStakingPositionHistoryData, zGetUserStakingPositionHistoryResponse, zGetUserStakingPositionResponse, zGetVaultData, zGetVaultHistoryData, zGetVaultHistoryResponse, zGetVaultResponse, zGetVaultsData, zGetVaultsResponse, zHttpStatusData, zI128Dto, zI64Dto, zIncreaseSpotPositionQuoteDto, zInternalErrorCodeErrorBody, zLeaderboardError400BadRequest, zLeaderboardError400Error, zLeaderboardError500Error, zLeaderboardItemDto, zLeaderboardPeriod, zLeaderboardSortBy, zLendingPositionDto, zLendingPositionError404Error, zLendingPositionError500Error, zLendingPositionResponse, zLendingPositionsListResponse, zLimitOrderDto, zLimitOrderQuoteByInputDto, zLimitOrderQuoteByOutputDto, zLimitOrderResponse, zLimitOrderStatus, zLimitOrdersListResponse, zLpPositionResponse, zLpPositionsError400BadRequest, zLpPositionsError400Error, zLpPositionsError500Error, zLpPositionsHistoryListResponse, zLpPositionsListResponse, zMarketDto, zMarketError404Error, zMarketError500Error, zMarketResponse, zMarketsListResponse, zMintDto, zMintError404Error, zMintError500Error, zNotificationAction, zNotificationEntity, zOraclePriceDto, zOraclePriceError404Error, zOraclePriceError500Error, zOrderBookDto, zOrderBookEntryDto, zOrderBookWrapper, zOrderHistoryEntryDto, zOrderHistoryListResponse, zOrderHistoryNotificationResponse, zOrderHistoryStatus, zOrderHistoryType, zOrderHistoryUiDirection, zPaginationMeta, zPoolDto, zPoolPriceCandleDto, zPoolProvider, zPoolStatsDto, zPoolStatsGroupDto, zPoolStatsGroupEntryDto, zPoolSubscription, zPoolSubscriptionTopic, zPoolSwapDto, zPoolTicksDto, zPoolsError400BadRequest, zPoolsError400Error, zPoolsError404Error, zPoolsError500Error, zPubkeyDto, zRateLimitSource, zRetryAfterHint, zSearchTokensData, zSearchTokensResponse, zSnapshot, zSnapshotContainer, zSpotPositionError404Error, zSpotPositionError500Error, zSpotPositionResponse, zSpotPositionsListResponse, zSseData, zSseResponse, zSseResponse2, zSseResponseInitialMessage, zSseResponseLendingPosition, zSseResponseLendingPositionPayload, zSseResponseOrderHistoryEntry, zSseResponseOrderHistoryEntryPayload, zSseResponsePoolSwap, zSseResponsePoolSwapPayload, zSseResponseSnapshot, zSseResponseStakingPosition, zSseResponseStakingPositionPayload, zSseResponseTradeHistoryEntry, zSseResponseTradeHistoryEntryPayload, zStakingDepositsStatsDto, zStakingError400BadRequest, zStakingError400Error, zStakingError500Error, zStakingLeaderboardPositionDto, zStakingPositionActionDto, zStakingPositionActionType, zStakingPositionDto, zStatsError400BadRequest, zStatsError400Error, zStatsError500Error, zStreamInitalMessage, zSubscriptionOptions, zSwapQuoteByInputDto, zSwapQuoteByOutputDto, zTickDto, zTokenAmountWithUsd, zTokenAuditDto, zTokenFirstPoolDto, zTokenPairPriceResponseDto, zTokenPriceDto, zTokenSearchItemDto, zTokenStatsWindowDto, zTokensError400BadRequest, zTokensError400Error, zTokensError404Error, zTokensError429Error, zTokensError429TooManyRequests, zTokensError429UpstreamRateLimited, zTokensError500Error, zTokensError502Error, zTradableAmountDto, zTradeHistoryAction, zTradeHistoryEntryDto, zTradeHistoryEntryPnlUsd, zTradeHistoryListResponse, zTradeHistoryNotificationResponse, zTradeHistoryUiDirection, zTreasuryDto, zTunaLpPositionActionComposite, zTunaLpPositionActionDto, zTunaLpPositionAutoCompound, zTunaLpPositionAutoCompounding, zTunaLpPositionDto, zTunaLpPositionFlags, zTunaLpPositionInnerSwaps, zTunaLpPositionLimitOrderSwap, zTunaLpPositionParameters, zTunaLpPositionRebalance, zTunaLpPositionTokenPrices, zTunaLpPositionTransfer, zTunaLpPositionTriggerOrder, zTunaLpPositionTriggerOrderType, zTunaLpPositionValue, zTunaLpPositionsActionType, zTunaLpPositionsStats, zTunaPositionDto, zTunaPositionDtoLockType, zTunaPositionDtoState, zTunaPositionMarketMaker, zTunaPositionPoolToken, zTunaPositionTokenDepositedCollateral, zTunaPositionTokenPnl, zTunaPositionUsdPnl, zTunaSpotPositionDto, zTunaSpotPositionDtoState, zU128Dto, zU64Dto, zUpdateStreamSubscriptionData, zUpdateStreamSubscriptionError404Error, zUpdateStreamSubscriptionError500Error, zUpdateStreamSubscriptionResponse, zValidationErrorCodeErrorBody, zValidationErrorCodeValidationDetailsErrorBody, zVaultDto, zVaultError400BadRequest, zVaultError400Error, zVaultError404Error, zVaultError500Error, zVaultResponse, zVaultStatsDto, zVaultsListResponse, zVestingDto, zWalletSubscription, zWalletSubscriptionTopic };
|
|
14876
|
+
export { type BadRequestErrorCodeErrorBody, type ClientOptions, type CloseSpotPositionQuoteDto, type ConfirmBindData, type ConfirmBindError, type ConfirmBindErrors, type ConfirmBindRequest, type ConfirmBindResponse, type ConfirmBindResponse2, type ConfirmBindResponseZodType, type ConfirmBindResponses, type CreateBindChallengeData, type CreateBindChallengeError, type CreateBindChallengeErrors, type CreateBindChallengeRequest, type CreateBindChallengeResponse, type CreateBindChallengeResponse2, type CreateBindChallengeResponseZodType, type CreateBindChallengeResponses, type DecreaseSpotPositionQuoteDto, type FeeAmountWithUsd, type FeesStatsGroupDto, type FieldError, type FusionFeesStatsGroupDto, type GetCloseSpotPositionQuoteData, type GetCloseSpotPositionQuoteError, type GetCloseSpotPositionQuoteErrors, type GetCloseSpotPositionQuoteResponse, type GetCloseSpotPositionQuoteResponseZodType, type GetCloseSpotPositionQuoteResponses, type GetDecreaseSpotPositionQuoteData, type GetDecreaseSpotPositionQuoteError, type GetDecreaseSpotPositionQuoteErrors, type GetDecreaseSpotPositionQuoteResponse, type GetDecreaseSpotPositionQuoteResponseZodType, type GetDecreaseSpotPositionQuoteResponses, type GetFeesStatsData, type GetFeesStatsError, type GetFeesStatsErrors, type GetFeesStatsResponse, type GetFeesStatsResponseZodType, type GetFeesStatsResponses, type GetFusionFeesStatsData, type GetFusionFeesStatsError, type GetFusionFeesStatsErrors, type GetFusionFeesStatsResponse, type GetFusionFeesStatsResponseZodType, type GetFusionFeesStatsResponses, type GetIncreaseSpotPositionQuoteData, type GetIncreaseSpotPositionQuoteError, type GetIncreaseSpotPositionQuoteErrors, type GetIncreaseSpotPositionQuoteResponse, type GetIncreaseSpotPositionQuoteResponseZodType, type GetIncreaseSpotPositionQuoteResponses, type GetLendingPositionData, type GetLendingPositionError, type GetLendingPositionErrors, type GetLendingPositionResponse, type GetLendingPositionResponseZodType, type GetLendingPositionResponses, type GetLendingPositionsData, type GetLendingPositionsError, type GetLendingPositionsErrors, type GetLendingPositionsResponse, type GetLendingPositionsResponseZodType, type GetLendingPositionsResponses, type GetLimitOrderData, type GetLimitOrderError, type GetLimitOrderError404Error, type GetLimitOrderError500Error, type GetLimitOrderErrors, type GetLimitOrderQuoteByInputData, type GetLimitOrderQuoteByInputError, type GetLimitOrderQuoteByInputErrors, type GetLimitOrderQuoteByInputResponse, type GetLimitOrderQuoteByInputResponseZodType, type GetLimitOrderQuoteByInputResponses, type GetLimitOrderQuoteByOutputData, type GetLimitOrderQuoteByOutputError, type GetLimitOrderQuoteByOutputErrors, type GetLimitOrderQuoteByOutputResponse, type GetLimitOrderQuoteByOutputResponseZodType, type GetLimitOrderQuoteByOutputResponses, type GetLimitOrderResponse, type GetLimitOrderResponseZodType, type GetLimitOrderResponses, type GetLimitOrdersData, type GetLimitOrdersError, type GetLimitOrdersErrors, type GetLimitOrdersResponse, type GetLimitOrdersResponseZodType, type GetLimitOrdersResponses, type GetLpPositionActionsData, type GetLpPositionActionsError, type GetLpPositionActionsErrors, type GetLpPositionActionsResponse, type GetLpPositionActionsResponseZodType, type GetLpPositionActionsResponses, type GetLpPositionsData, type GetLpPositionsError, type GetLpPositionsErrors, type GetLpPositionsResponse, type GetLpPositionsResponseZodType, type GetLpPositionsResponses, type GetLpSpotLeaderboardData, type GetLpSpotLeaderboardError, type GetLpSpotLeaderboardErrors, type GetLpSpotLeaderboardResponse, type GetLpSpotLeaderboardResponseZodType, type GetLpSpotLeaderboardResponses, type GetMarketData, type GetMarketError, type GetMarketErrors, type GetMarketResponse, type GetMarketResponseZodType, type GetMarketResponses, type GetMarketsData, type GetMarketsError, type GetMarketsErrors, type GetMarketsResponse, type GetMarketsResponseZodType, type GetMarketsResponses, type GetMintData, type GetMintError, type GetMintErrors, type GetMintResponse, type GetMintResponseZodType, type GetMintResponses, type GetMintsData, type GetMintsError, type GetMintsErrors, type GetMintsResponse, type GetMintsResponseZodType, type GetMintsResponses, type GetOraclePriceData, type GetOraclePriceError, type GetOraclePriceErrors, type GetOraclePriceResponse, type GetOraclePriceResponseZodType, type GetOraclePriceResponses, type GetOraclePricesData, type GetOraclePricesError, type GetOraclePricesErrors, type GetOraclePricesResponse, type GetOraclePricesResponseZodType, type GetOraclePricesResponses, type GetOrderHistoryData, type GetOrderHistoryError, type GetOrderHistoryErrors, type GetOrderHistoryResponse, type GetOrderHistoryResponseZodType, type GetOrderHistoryResponses, type GetPairPriceData, type GetPairPriceError, type GetPairPriceErrors, type GetPairPriceResponse, type GetPairPriceResponseZodType, type GetPairPriceResponses, type GetPoolCandlesData, type GetPoolCandlesError, type GetPoolCandlesErrors, type GetPoolCandlesResponse, type GetPoolCandlesResponseZodType, type GetPoolCandlesResponses, type GetPoolData, type GetPoolError, type GetPoolErrors, type GetPoolOrderBookData, type GetPoolOrderBookError, type GetPoolOrderBookErrors, type GetPoolOrderBookResponse, type GetPoolOrderBookResponseZodType, type GetPoolOrderBookResponses, type GetPoolResponse, type GetPoolResponseZodType, type GetPoolResponses, type GetPoolSwapsData, type GetPoolSwapsError, type GetPoolSwapsErrors, type GetPoolSwapsResponse, type GetPoolSwapsResponseZodType, type GetPoolSwapsResponses, type GetPoolTicksData, type GetPoolTicksError, type GetPoolTicksErrors, type GetPoolTicksResponse, type GetPoolTicksResponseZodType, type GetPoolTicksResponses, type GetPoolsData, type GetPoolsError, type GetPoolsErrors, type GetPoolsResponse, type GetPoolsResponseZodType, type GetPoolsResponses, type GetPositionsStatsData, type GetPositionsStatsError, type GetPositionsStatsErrors, type GetPositionsStatsResponse, type GetPositionsStatsResponseZodType, type GetPositionsStatsResponses, type GetPositionsTotalData, type GetPositionsTotalError, type GetPositionsTotalErrors, type GetPositionsTotalResponse, type GetPositionsTotalResponseZodType, type GetPositionsTotalResponses, type GetSpotPositionData, type GetSpotPositionError, type GetSpotPositionErrors, type GetSpotPositionResponse, type GetSpotPositionResponseZodType, type GetSpotPositionResponses, type GetSpotPositionsData, type GetSpotPositionsError, type GetSpotPositionsErrors, type GetSpotPositionsResponse, type GetSpotPositionsResponseZodType, type GetSpotPositionsResponses, type GetStakingLeaderboardData, type GetStakingLeaderboardError, type GetStakingLeaderboardErrors, type GetStakingLeaderboardResponse, type GetStakingLeaderboardResponseZodType, type GetStakingLeaderboardResponses, type GetStakingRevenueStatsData, type GetStakingRevenueStatsError, type GetStakingRevenueStatsErrors, type GetStakingRevenueStatsResponse, type GetStakingRevenueStatsResponseZodType, type GetStakingRevenueStatsResponses, type GetStakingTreasuryData, type GetStakingTreasuryError, type GetStakingTreasuryErrors, type GetStakingTreasuryResponse, type GetStakingTreasuryResponseZodType, type GetStakingTreasuryResponses, type GetSwapQuoteByInputData, type GetSwapQuoteByInputError, type GetSwapQuoteByInputErrors, type GetSwapQuoteByInputResponse, type GetSwapQuoteByInputResponseZodType, type GetSwapQuoteByInputResponses, type GetSwapQuoteByOutputData, type GetSwapQuoteByOutputError, type GetSwapQuoteByOutputErrors, type GetSwapQuoteByOutputResponse, type GetSwapQuoteByOutputResponseZodType, type GetSwapQuoteByOutputResponses, type GetTradableAmountData, type GetTradableAmountError, type GetTradableAmountErrors, type GetTradableAmountResponse, type GetTradableAmountResponseZodType, type GetTradableAmountResponses, type GetTradeHistoryData, type GetTradeHistoryError, type GetTradeHistoryErrors, type GetTradeHistoryResponse, type GetTradeHistoryResponseZodType, type GetTradeHistoryResponses, type GetTunaPositionData, type GetTunaPositionError, type GetTunaPositionErrors, type GetTunaPositionResponse, type GetTunaPositionResponseZodType, type GetTunaPositionResponses, type GetTunaPositionsData, type GetTunaPositionsError, type GetTunaPositionsErrors, type GetTunaPositionsResponse, type GetTunaPositionsResponseZodType, type GetTunaPositionsResponses, type GetUserStakingPositionData, type GetUserStakingPositionError, type GetUserStakingPositionErrors, type GetUserStakingPositionHistoryData, type GetUserStakingPositionHistoryError, type GetUserStakingPositionHistoryErrors, type GetUserStakingPositionHistoryResponse, type GetUserStakingPositionHistoryResponseZodType, type GetUserStakingPositionHistoryResponses, type GetUserStakingPositionResponse, type GetUserStakingPositionResponseZodType, type GetUserStakingPositionResponses, type GetVaultData, type GetVaultError, type GetVaultErrors, type GetVaultHistoryData, type GetVaultHistoryError, type GetVaultHistoryErrors, type GetVaultHistoryResponse, type GetVaultHistoryResponseZodType, type GetVaultHistoryResponses, type GetVaultResponse, type GetVaultResponseZodType, type GetVaultResponses, type GetVaultsData, type GetVaultsError, type GetVaultsErrors, type GetVaultsResponse, type GetVaultsResponseZodType, type GetVaultsResponses, type HttpStatusData, type I128Dto, type I64Dto, type IncreaseSpotPositionQuoteDto, type InternalErrorCodeErrorBody, type InviteApiError400Error, type InviteApiError400InvalidBindRequest, type InviteApiError404Error, type InviteApiError409Error, type InviteApiError500Error, type LeaderboardError400BadRequest, type LeaderboardError400Error, type LeaderboardError500Error, type LeaderboardItemDto, LeaderboardPeriod, LeaderboardSortBy, type LendingPositionDto, type LendingPositionError404Error, type LendingPositionError500Error, type LendingPositionResponse, type LendingPositionsListResponse, type LimitOrderDto, type LimitOrderQuoteByInputDto, type LimitOrderQuoteByOutputDto, type LimitOrderResponse, LimitOrderStatus, type LimitOrdersListResponse, type LpPositionResponse, type LpPositionsError400BadRequest, type LpPositionsError400Error, type LpPositionsError500Error, type LpPositionsHistoryListResponse, type LpPositionsListResponse, type MarketDto, type MarketError404Error, type MarketError500Error, type MarketResponse, type MarketsListResponse, type MintDto, type MintError404Error, type MintError500Error, NotificationAction, NotificationEntity, type Options, type OraclePriceDto, type OraclePriceError404Error, type OraclePriceError500Error, type OrderBookDto, type OrderBookEntryDto, type OrderBookWrapper, type OrderHistoryEntryDto, type OrderHistoryListResponse, type OrderHistoryNotificationResponse, OrderHistoryStatus, OrderHistoryType, OrderHistoryUiDirection, type PaginationMeta, type PoolDto, type PoolPriceCandleDto, PoolProvider, type PoolStatsDto, type PoolStatsGroupDto, type PoolStatsGroupEntryDto, type PoolSubscription, PoolSubscriptionTopic, type PoolSwapDto, type PoolTicksDto, type PoolsError400BadRequest, type PoolsError400Error, type PoolsError404Error, type PoolsError500Error, type PubkeyDto, RateLimitSource, type RetryAfterHint, type SearchTokensData, type SearchTokensError, type SearchTokensErrors, type SearchTokensResponse, type SearchTokensResponseZodType, type SearchTokensResponses, type ServerSentEventsOptions, type ServerSentEventsResult, type Snapshot, type SnapshotContainer, type SpotPositionError404Error, type SpotPositionError500Error, type SpotPositionResponse, type SpotPositionsListResponse, type SseData, type SseErrors, type SseResponse, type SseResponse2, type SseResponseInitialMessage, type SseResponseLendingPosition, type SseResponseLendingPositionPayload, type SseResponseOrderHistoryEntry, type SseResponseOrderHistoryEntryPayload, type SseResponsePoolSwap, type SseResponsePoolSwapPayload, type SseResponseSnapshot, type SseResponseStakingPosition, type SseResponseStakingPositionPayload, type SseResponseTradeHistoryEntry, type SseResponseTradeHistoryEntryPayload, type SseResponseZodType, type SseResponses, type StakingDepositsStatsDto, type StakingError400BadRequest, type StakingError400Error, type StakingError500Error, type StakingLeaderboardPositionDto, type StakingPositionActionDto, StakingPositionActionType, type StakingPositionDto, type StatsError400BadRequest, type StatsError400Error, type StatsError500Error, type StreamEvent, type StreamInitalMessage, type SubscriptionOptions, type SwapQuoteByInputDto, type SwapQuoteByOutputDto, type TickDto, type TokenAmountWithUsd, type TokenAuditDto, type TokenFirstPoolDto, type TokenPairPriceResponseDto, type TokenPriceDto, type TokenSearchItemDto, type TokenStatsWindowDto, type TokensError400BadRequest, type TokensError400Error, type TokensError404Error, type TokensError429Error, type TokensError429TooManyRequests, type TokensError429UpstreamRateLimited, type TokensError500Error, type TokensError502Error, type TradableAmountDto, TradeHistoryAction, type TradeHistoryEntryDto, type TradeHistoryEntryPnlUsd, type TradeHistoryListResponse, type TradeHistoryNotificationResponse, TradeHistoryUiDirection, type TreasuryDto, TunaBackendSdk, TunaBackendSdkError, type TunaLpPositionActionComposite, type TunaLpPositionActionDto, TunaLpPositionAutoCompound, TunaLpPositionAutoCompounding, type TunaLpPositionDto, type TunaLpPositionFlags, type TunaLpPositionInnerSwaps, TunaLpPositionLimitOrderSwap, type TunaLpPositionParameters, TunaLpPositionRebalance, type TunaLpPositionTokenPrices, type TunaLpPositionTransfer, type TunaLpPositionTriggerOrder, TunaLpPositionTriggerOrderType, type TunaLpPositionValue, TunaLpPositionsActionType, type TunaLpPositionsStats, type TunaPositionDto, TunaPositionDtoLockType, TunaPositionDtoState, TunaPositionMarketMaker, TunaPositionPoolToken, type TunaPositionTokenDepositedCollateral, type TunaPositionTokenPnl, type TunaPositionUsdPnl, type TunaSpotPositionDto, TunaSpotPositionDtoState, type U128Dto, type U64Dto, type UpdateStreamSubscriptionData, type UpdateStreamSubscriptionError, type UpdateStreamSubscriptionError404Error, type UpdateStreamSubscriptionError500Error, type UpdateStreamSubscriptionErrors, type UpdateStreamSubscriptionResponse, type UpdateStreamSubscriptionResponseZodType, type UpdateStreamSubscriptionResponses, type ValidationErrorCodeErrorBody, type ValidationErrorCodeValidationDetailsErrorBody, type VaultDto, type VaultError400BadRequest, type VaultError400Error, type VaultError404Error, type VaultError500Error, type VaultResponse, type VaultStatsDto, type VaultsListResponse, type VestingDto, type WalletSubscription, WalletSubscriptionTopic, createClient, createSseClient, isTunaSdkError, tunaSdkErrorInterceptor, unwrap, zBadRequestErrorCodeErrorBody, zCloseSpotPositionQuoteDto, zConfirmBindData, zConfirmBindRequest, zConfirmBindResponse, zConfirmBindResponse2, zCreateBindChallengeData, zCreateBindChallengeRequest, zCreateBindChallengeResponse, zCreateBindChallengeResponse2, zDecreaseSpotPositionQuoteDto, zFeeAmountWithUsd, zFeesStatsGroupDto, zFieldError, zFusionFeesStatsGroupDto, zGetCloseSpotPositionQuoteData, zGetCloseSpotPositionQuoteResponse, zGetDecreaseSpotPositionQuoteData, zGetDecreaseSpotPositionQuoteResponse, zGetFeesStatsData, zGetFeesStatsResponse, zGetFusionFeesStatsData, zGetFusionFeesStatsResponse, zGetIncreaseSpotPositionQuoteData, zGetIncreaseSpotPositionQuoteResponse, zGetLendingPositionData, zGetLendingPositionResponse, zGetLendingPositionsData, zGetLendingPositionsResponse, zGetLimitOrderData, zGetLimitOrderError404Error, zGetLimitOrderError500Error, zGetLimitOrderQuoteByInputData, zGetLimitOrderQuoteByInputResponse, zGetLimitOrderQuoteByOutputData, zGetLimitOrderQuoteByOutputResponse, zGetLimitOrderResponse, zGetLimitOrdersData, zGetLimitOrdersResponse, zGetLpPositionActionsData, zGetLpPositionActionsResponse, zGetLpPositionsData, zGetLpPositionsResponse, zGetLpSpotLeaderboardData, zGetLpSpotLeaderboardResponse, zGetMarketData, zGetMarketResponse, zGetMarketsData, zGetMarketsResponse, zGetMintData, zGetMintResponse, zGetMintsData, zGetMintsResponse, zGetOraclePriceData, zGetOraclePriceResponse, zGetOraclePricesData, zGetOraclePricesResponse, zGetOrderHistoryData, zGetOrderHistoryResponse, zGetPairPriceData, zGetPairPriceResponse, zGetPoolCandlesData, zGetPoolCandlesResponse, zGetPoolData, zGetPoolOrderBookData, zGetPoolOrderBookResponse, zGetPoolResponse, zGetPoolSwapsData, zGetPoolSwapsResponse, zGetPoolTicksData, zGetPoolTicksResponse, zGetPoolsData, zGetPoolsResponse, zGetPositionsStatsData, zGetPositionsStatsResponse, zGetPositionsTotalData, zGetPositionsTotalResponse, zGetSpotPositionData, zGetSpotPositionResponse, zGetSpotPositionsData, zGetSpotPositionsResponse, zGetStakingLeaderboardData, zGetStakingLeaderboardResponse, zGetStakingRevenueStatsData, zGetStakingRevenueStatsResponse, zGetStakingTreasuryData, zGetStakingTreasuryResponse, zGetSwapQuoteByInputData, zGetSwapQuoteByInputResponse, zGetSwapQuoteByOutputData, zGetSwapQuoteByOutputResponse, zGetTradableAmountData, zGetTradableAmountResponse, zGetTradeHistoryData, zGetTradeHistoryResponse, zGetTunaPositionData, zGetTunaPositionResponse, zGetTunaPositionsData, zGetTunaPositionsResponse, zGetUserStakingPositionData, zGetUserStakingPositionHistoryData, zGetUserStakingPositionHistoryResponse, zGetUserStakingPositionResponse, zGetVaultData, zGetVaultHistoryData, zGetVaultHistoryResponse, zGetVaultResponse, zGetVaultsData, zGetVaultsResponse, zHttpStatusData, zI128Dto, zI64Dto, zIncreaseSpotPositionQuoteDto, zInternalErrorCodeErrorBody, zInviteApiError400Error, zInviteApiError400InvalidBindRequest, zInviteApiError404Error, zInviteApiError409Error, zInviteApiError500Error, zLeaderboardError400BadRequest, zLeaderboardError400Error, zLeaderboardError500Error, zLeaderboardItemDto, zLeaderboardPeriod, zLeaderboardSortBy, zLendingPositionDto, zLendingPositionError404Error, zLendingPositionError500Error, zLendingPositionResponse, zLendingPositionsListResponse, zLimitOrderDto, zLimitOrderQuoteByInputDto, zLimitOrderQuoteByOutputDto, zLimitOrderResponse, zLimitOrderStatus, zLimitOrdersListResponse, zLpPositionResponse, zLpPositionsError400BadRequest, zLpPositionsError400Error, zLpPositionsError500Error, zLpPositionsHistoryListResponse, zLpPositionsListResponse, zMarketDto, zMarketError404Error, zMarketError500Error, zMarketResponse, zMarketsListResponse, zMintDto, zMintError404Error, zMintError500Error, zNotificationAction, zNotificationEntity, zOraclePriceDto, zOraclePriceError404Error, zOraclePriceError500Error, zOrderBookDto, zOrderBookEntryDto, zOrderBookWrapper, zOrderHistoryEntryDto, zOrderHistoryListResponse, zOrderHistoryNotificationResponse, zOrderHistoryStatus, zOrderHistoryType, zOrderHistoryUiDirection, zPaginationMeta, zPoolDto, zPoolPriceCandleDto, zPoolProvider, zPoolStatsDto, zPoolStatsGroupDto, zPoolStatsGroupEntryDto, zPoolSubscription, zPoolSubscriptionTopic, zPoolSwapDto, zPoolTicksDto, zPoolsError400BadRequest, zPoolsError400Error, zPoolsError404Error, zPoolsError500Error, zPubkeyDto, zRateLimitSource, zRetryAfterHint, zSearchTokensData, zSearchTokensResponse, zSnapshot, zSnapshotContainer, zSpotPositionError404Error, zSpotPositionError500Error, zSpotPositionResponse, zSpotPositionsListResponse, zSseData, zSseResponse, zSseResponse2, zSseResponseInitialMessage, zSseResponseLendingPosition, zSseResponseLendingPositionPayload, zSseResponseOrderHistoryEntry, zSseResponseOrderHistoryEntryPayload, zSseResponsePoolSwap, zSseResponsePoolSwapPayload, zSseResponseSnapshot, zSseResponseStakingPosition, zSseResponseStakingPositionPayload, zSseResponseTradeHistoryEntry, zSseResponseTradeHistoryEntryPayload, zStakingDepositsStatsDto, zStakingError400BadRequest, zStakingError400Error, zStakingError500Error, zStakingLeaderboardPositionDto, zStakingPositionActionDto, zStakingPositionActionType, zStakingPositionDto, zStatsError400BadRequest, zStatsError400Error, zStatsError500Error, zStreamInitalMessage, zSubscriptionOptions, zSwapQuoteByInputDto, zSwapQuoteByOutputDto, zTickDto, zTokenAmountWithUsd, zTokenAuditDto, zTokenFirstPoolDto, zTokenPairPriceResponseDto, zTokenPriceDto, zTokenSearchItemDto, zTokenStatsWindowDto, zTokensError400BadRequest, zTokensError400Error, zTokensError404Error, zTokensError429Error, zTokensError429TooManyRequests, zTokensError429UpstreamRateLimited, zTokensError500Error, zTokensError502Error, zTradableAmountDto, zTradeHistoryAction, zTradeHistoryEntryDto, zTradeHistoryEntryPnlUsd, zTradeHistoryListResponse, zTradeHistoryNotificationResponse, zTradeHistoryUiDirection, zTreasuryDto, zTunaLpPositionActionComposite, zTunaLpPositionActionDto, zTunaLpPositionAutoCompound, zTunaLpPositionAutoCompounding, zTunaLpPositionDto, zTunaLpPositionFlags, zTunaLpPositionInnerSwaps, zTunaLpPositionLimitOrderSwap, zTunaLpPositionParameters, zTunaLpPositionRebalance, zTunaLpPositionTokenPrices, zTunaLpPositionTransfer, zTunaLpPositionTriggerOrder, zTunaLpPositionTriggerOrderType, zTunaLpPositionValue, zTunaLpPositionsActionType, zTunaLpPositionsStats, zTunaPositionDto, zTunaPositionDtoLockType, zTunaPositionDtoState, zTunaPositionMarketMaker, zTunaPositionPoolToken, zTunaPositionTokenDepositedCollateral, zTunaPositionTokenPnl, zTunaPositionUsdPnl, zTunaSpotPositionDto, zTunaSpotPositionDtoState, zU128Dto, zU64Dto, zUpdateStreamSubscriptionData, zUpdateStreamSubscriptionError404Error, zUpdateStreamSubscriptionError500Error, zUpdateStreamSubscriptionResponse, zValidationErrorCodeErrorBody, zValidationErrorCodeValidationDetailsErrorBody, zVaultDto, zVaultError400BadRequest, zVaultError400Error, zVaultError404Error, zVaultError500Error, zVaultResponse, zVaultStatsDto, zVaultsListResponse, zVestingDto, zWalletSubscription, zWalletSubscriptionTopic };
|
package/dist/index.d.ts
CHANGED
|
@@ -335,6 +335,43 @@ type CloseSpotPositionQuoteDto = {
|
|
|
335
335
|
*/
|
|
336
336
|
requiredSwapAmount: U64Dto;
|
|
337
337
|
};
|
|
338
|
+
type ConfirmBindRequest = {
|
|
339
|
+
inviteCode: string;
|
|
340
|
+
/**
|
|
341
|
+
* Base64-encoded message returned by `/bind/challenge`.
|
|
342
|
+
*/
|
|
343
|
+
messageB64: string;
|
|
344
|
+
nonce: string;
|
|
345
|
+
/**
|
|
346
|
+
* Base64-encoded Ed25519 signature of `message_b64`.
|
|
347
|
+
*/
|
|
348
|
+
signatureB64: string;
|
|
349
|
+
wallet: PubkeyDto;
|
|
350
|
+
};
|
|
351
|
+
type ConfirmBindResponse = {
|
|
352
|
+
/**
|
|
353
|
+
* Binding timestamp in UTC. Only fees after this time are attributed.
|
|
354
|
+
*/
|
|
355
|
+
boundAt: Date;
|
|
356
|
+
};
|
|
357
|
+
type CreateBindChallengeRequest = {
|
|
358
|
+
inviteCode: string;
|
|
359
|
+
wallet: PubkeyDto;
|
|
360
|
+
};
|
|
361
|
+
type CreateBindChallengeResponse = {
|
|
362
|
+
/**
|
|
363
|
+
* Challenge expiration timestamp in UTC.
|
|
364
|
+
*/
|
|
365
|
+
expiresAt: Date;
|
|
366
|
+
/**
|
|
367
|
+
* Base64-encoded message that must be signed by the wallet.
|
|
368
|
+
*/
|
|
369
|
+
messageB64: string;
|
|
370
|
+
/**
|
|
371
|
+
* One-time challenge id to be echoed back in `/bind/confirm`.
|
|
372
|
+
*/
|
|
373
|
+
nonce: string;
|
|
374
|
+
};
|
|
338
375
|
type DecreaseSpotPositionQuoteDto = {
|
|
339
376
|
/**
|
|
340
377
|
* Position decrease percentage
|
|
@@ -478,6 +515,23 @@ type IncreaseSpotPositionQuoteDto = {
|
|
|
478
515
|
type InternalErrorCodeErrorBody = {
|
|
479
516
|
code: 'internal_error';
|
|
480
517
|
};
|
|
518
|
+
type InviteApiError400Error = ({
|
|
519
|
+
code: 'invalid_bind_request';
|
|
520
|
+
} & InviteApiError400InvalidBindRequest) | ({
|
|
521
|
+
code: 'invalid_body' | 'invalid_path' | 'invalid_query';
|
|
522
|
+
} & BadRequestErrorCodeErrorBody);
|
|
523
|
+
type InviteApiError400InvalidBindRequest = {
|
|
524
|
+
code: 'invalid_bind_request';
|
|
525
|
+
};
|
|
526
|
+
type InviteApiError404Error = {
|
|
527
|
+
code: 'invite_code_not_found';
|
|
528
|
+
};
|
|
529
|
+
type InviteApiError409Error = {
|
|
530
|
+
code: 'wallet_already_bound';
|
|
531
|
+
};
|
|
532
|
+
type InviteApiError500Error = {
|
|
533
|
+
code: 'internal_error';
|
|
534
|
+
};
|
|
481
535
|
type LeaderboardError400BadRequest = {
|
|
482
536
|
code: 'bad_request';
|
|
483
537
|
};
|
|
@@ -1797,6 +1851,46 @@ declare const WalletSubscriptionTopic: {
|
|
|
1797
1851
|
readonly ORDER_HISTORY: "order_history";
|
|
1798
1852
|
};
|
|
1799
1853
|
type WalletSubscriptionTopic = typeof WalletSubscriptionTopic[keyof typeof WalletSubscriptionTopic];
|
|
1854
|
+
type CreateBindChallengeData = {
|
|
1855
|
+
body: CreateBindChallengeRequest;
|
|
1856
|
+
path?: never;
|
|
1857
|
+
query?: never;
|
|
1858
|
+
url: '/v1/invites/bind/challenge';
|
|
1859
|
+
};
|
|
1860
|
+
type CreateBindChallengeErrors = {
|
|
1861
|
+
400: InviteApiError400Error;
|
|
1862
|
+
404: InviteApiError404Error;
|
|
1863
|
+
409: InviteApiError409Error;
|
|
1864
|
+
422: ValidationErrorCodeErrorBody;
|
|
1865
|
+
500: InviteApiError500Error;
|
|
1866
|
+
};
|
|
1867
|
+
type CreateBindChallengeError = CreateBindChallengeErrors[keyof CreateBindChallengeErrors];
|
|
1868
|
+
type CreateBindChallengeResponses = {
|
|
1869
|
+
200: {
|
|
1870
|
+
data: CreateBindChallengeResponse;
|
|
1871
|
+
};
|
|
1872
|
+
};
|
|
1873
|
+
type CreateBindChallengeResponse2 = CreateBindChallengeResponses[keyof CreateBindChallengeResponses];
|
|
1874
|
+
type ConfirmBindData = {
|
|
1875
|
+
body: ConfirmBindRequest;
|
|
1876
|
+
path?: never;
|
|
1877
|
+
query?: never;
|
|
1878
|
+
url: '/v1/invites/bind/confirm';
|
|
1879
|
+
};
|
|
1880
|
+
type ConfirmBindErrors = {
|
|
1881
|
+
400: InviteApiError400Error;
|
|
1882
|
+
404: InviteApiError404Error;
|
|
1883
|
+
409: InviteApiError409Error;
|
|
1884
|
+
422: ValidationErrorCodeErrorBody;
|
|
1885
|
+
500: InviteApiError500Error;
|
|
1886
|
+
};
|
|
1887
|
+
type ConfirmBindError = ConfirmBindErrors[keyof ConfirmBindErrors];
|
|
1888
|
+
type ConfirmBindResponses = {
|
|
1889
|
+
200: {
|
|
1890
|
+
data: ConfirmBindResponse;
|
|
1891
|
+
};
|
|
1892
|
+
};
|
|
1893
|
+
type ConfirmBindResponse2 = ConfirmBindResponses[keyof ConfirmBindResponses];
|
|
1800
1894
|
type GetLpSpotLeaderboardData = {
|
|
1801
1895
|
body?: never;
|
|
1802
1896
|
path?: never;
|
|
@@ -3102,6 +3196,18 @@ declare class TunaBackendSdk extends HeyApiClient {
|
|
|
3102
3196
|
client?: Client;
|
|
3103
3197
|
key?: string;
|
|
3104
3198
|
});
|
|
3199
|
+
/**
|
|
3200
|
+
* Create invite bind challenge
|
|
3201
|
+
*/
|
|
3202
|
+
createBindChallenge<ThrowOnError extends boolean = false>(parameters: {
|
|
3203
|
+
createBindChallengeRequest: CreateBindChallengeRequest;
|
|
3204
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<CreateBindChallengeResponses, CreateBindChallengeErrors, ThrowOnError, "fields">;
|
|
3205
|
+
/**
|
|
3206
|
+
* Confirm invite bind by signature
|
|
3207
|
+
*/
|
|
3208
|
+
confirmBind<ThrowOnError extends boolean = false>(parameters: {
|
|
3209
|
+
confirmBindRequest: ConfirmBindRequest;
|
|
3210
|
+
}, options?: Options<never, ThrowOnError>): RequestResult<ConfirmBindResponses, ConfirmBindErrors, ThrowOnError, "fields">;
|
|
3105
3211
|
/**
|
|
3106
3212
|
* Request LP and Spot leaderboard
|
|
3107
3213
|
*/
|
|
@@ -3485,6 +3591,14 @@ declare const zBadRequestErrorCodeErrorBody: z.ZodObject<{
|
|
|
3485
3591
|
invalid_body: "invalid_body";
|
|
3486
3592
|
}>;
|
|
3487
3593
|
}, z.core.$strip>;
|
|
3594
|
+
declare const zConfirmBindResponse: z.ZodObject<{
|
|
3595
|
+
boundAt: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>;
|
|
3596
|
+
}, z.core.$strip>;
|
|
3597
|
+
declare const zCreateBindChallengeResponse: z.ZodObject<{
|
|
3598
|
+
expiresAt: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>;
|
|
3599
|
+
messageB64: z.ZodString;
|
|
3600
|
+
nonce: z.ZodString;
|
|
3601
|
+
}, z.core.$strip>;
|
|
3488
3602
|
declare const zFeesStatsGroupDto: z.ZodObject<{
|
|
3489
3603
|
addLiquidityFees: z.ZodNumber;
|
|
3490
3604
|
failedNetworkFees: z.ZodNumber;
|
|
@@ -3557,6 +3671,41 @@ declare const zInternalErrorCodeErrorBody: z.ZodObject<{
|
|
|
3557
3671
|
internal_error: "internal_error";
|
|
3558
3672
|
}>;
|
|
3559
3673
|
}, z.core.$strip>;
|
|
3674
|
+
declare const zInviteApiError400InvalidBindRequest: z.ZodObject<{
|
|
3675
|
+
code: z.ZodEnum<{
|
|
3676
|
+
invalid_bind_request: "invalid_bind_request";
|
|
3677
|
+
}>;
|
|
3678
|
+
}, z.core.$strip>;
|
|
3679
|
+
declare const zInviteApiError400Error: z.ZodUnion<readonly [z.ZodIntersection<z.ZodObject<{
|
|
3680
|
+
code: z.ZodLiteral<"invalid_bind_request">;
|
|
3681
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3682
|
+
code: z.ZodEnum<{
|
|
3683
|
+
invalid_bind_request: "invalid_bind_request";
|
|
3684
|
+
}>;
|
|
3685
|
+
}, z.core.$strip>>, z.ZodIntersection<z.ZodObject<{
|
|
3686
|
+
code: z.ZodUnion<readonly [z.ZodLiteral<"invalid_body">, z.ZodLiteral<"invalid_path">, z.ZodLiteral<"invalid_query">]>;
|
|
3687
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3688
|
+
code: z.ZodEnum<{
|
|
3689
|
+
invalid_path: "invalid_path";
|
|
3690
|
+
invalid_query: "invalid_query";
|
|
3691
|
+
invalid_body: "invalid_body";
|
|
3692
|
+
}>;
|
|
3693
|
+
}, z.core.$strip>>]>;
|
|
3694
|
+
declare const zInviteApiError404Error: z.ZodObject<{
|
|
3695
|
+
code: z.ZodEnum<{
|
|
3696
|
+
invite_code_not_found: "invite_code_not_found";
|
|
3697
|
+
}>;
|
|
3698
|
+
}, z.core.$strip>;
|
|
3699
|
+
declare const zInviteApiError409Error: z.ZodObject<{
|
|
3700
|
+
code: z.ZodEnum<{
|
|
3701
|
+
wallet_already_bound: "wallet_already_bound";
|
|
3702
|
+
}>;
|
|
3703
|
+
}, z.core.$strip>;
|
|
3704
|
+
declare const zInviteApiError500Error: z.ZodObject<{
|
|
3705
|
+
code: z.ZodEnum<{
|
|
3706
|
+
internal_error: "internal_error";
|
|
3707
|
+
}>;
|
|
3708
|
+
}, z.core.$strip>;
|
|
3560
3709
|
declare const zLeaderboardError400BadRequest: z.ZodObject<{
|
|
3561
3710
|
code: z.ZodEnum<{
|
|
3562
3711
|
bad_request: "bad_request";
|
|
@@ -3791,6 +3940,17 @@ declare const zPoolsError500Error: z.ZodObject<{
|
|
|
3791
3940
|
* - OpenAPI: `type: string`, pattern for base58, optional format
|
|
3792
3941
|
*/
|
|
3793
3942
|
declare const zPubkeyDto: z.ZodString;
|
|
3943
|
+
declare const zConfirmBindRequest: z.ZodObject<{
|
|
3944
|
+
inviteCode: z.ZodString;
|
|
3945
|
+
messageB64: z.ZodString;
|
|
3946
|
+
nonce: z.ZodString;
|
|
3947
|
+
signatureB64: z.ZodString;
|
|
3948
|
+
wallet: z.ZodString;
|
|
3949
|
+
}, z.core.$strip>;
|
|
3950
|
+
declare const zCreateBindChallengeRequest: z.ZodObject<{
|
|
3951
|
+
inviteCode: z.ZodString;
|
|
3952
|
+
wallet: z.ZodString;
|
|
3953
|
+
}, z.core.$strip>;
|
|
3794
3954
|
declare const zFusionFeesStatsGroupDto: z.ZodObject<{
|
|
3795
3955
|
pool: z.ZodString;
|
|
3796
3956
|
runningTotalCollectedFees: z.ZodNumber;
|
|
@@ -10624,6 +10784,39 @@ declare const zSubscriptionOptions: z.ZodObject<{
|
|
|
10624
10784
|
}>>;
|
|
10625
10785
|
}, z.core.$strip>]>>;
|
|
10626
10786
|
}, z.core.$strip>;
|
|
10787
|
+
declare const zCreateBindChallengeData: z.ZodObject<{
|
|
10788
|
+
body: z.ZodObject<{
|
|
10789
|
+
inviteCode: z.ZodString;
|
|
10790
|
+
wallet: z.ZodString;
|
|
10791
|
+
}, z.core.$strip>;
|
|
10792
|
+
path: z.ZodOptional<z.ZodNever>;
|
|
10793
|
+
query: z.ZodOptional<z.ZodNever>;
|
|
10794
|
+
}, z.core.$strip>;
|
|
10795
|
+
declare const zCreateBindChallengeResponse2: z.ZodObject<{
|
|
10796
|
+
data: z.ZodObject<{
|
|
10797
|
+
expiresAt: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>;
|
|
10798
|
+
messageB64: z.ZodString;
|
|
10799
|
+
nonce: z.ZodString;
|
|
10800
|
+
}, z.core.$strip>;
|
|
10801
|
+
}, z.core.$strip>;
|
|
10802
|
+
type CreateBindChallengeResponseZodType = z.infer<typeof zCreateBindChallengeResponse2>;
|
|
10803
|
+
declare const zConfirmBindData: z.ZodObject<{
|
|
10804
|
+
body: z.ZodObject<{
|
|
10805
|
+
inviteCode: z.ZodString;
|
|
10806
|
+
messageB64: z.ZodString;
|
|
10807
|
+
nonce: z.ZodString;
|
|
10808
|
+
signatureB64: z.ZodString;
|
|
10809
|
+
wallet: z.ZodString;
|
|
10810
|
+
}, z.core.$strip>;
|
|
10811
|
+
path: z.ZodOptional<z.ZodNever>;
|
|
10812
|
+
query: z.ZodOptional<z.ZodNever>;
|
|
10813
|
+
}, z.core.$strip>;
|
|
10814
|
+
declare const zConfirmBindResponse2: z.ZodObject<{
|
|
10815
|
+
data: z.ZodObject<{
|
|
10816
|
+
boundAt: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodISODateTime>;
|
|
10817
|
+
}, z.core.$strip>;
|
|
10818
|
+
}, z.core.$strip>;
|
|
10819
|
+
type ConfirmBindResponseZodType = z.infer<typeof zConfirmBindResponse2>;
|
|
10627
10820
|
declare const zGetLpSpotLeaderboardData: z.ZodObject<{
|
|
10628
10821
|
body: z.ZodOptional<z.ZodNever>;
|
|
10629
10822
|
path: z.ZodOptional<z.ZodNever>;
|
|
@@ -14680,4 +14873,4 @@ declare class TunaBackendSdkError<TCause = unknown> extends Error {
|
|
|
14680
14873
|
declare const tunaSdkErrorInterceptor: (error: unknown, response?: Response) => TunaBackendSdkError<unknown>;
|
|
14681
14874
|
declare const isTunaSdkError: <TCause = unknown>(error: unknown) => error is TunaBackendSdkError<TCause>;
|
|
14682
14875
|
|
|
14683
|
-
export { type BadRequestErrorCodeErrorBody, type ClientOptions, type CloseSpotPositionQuoteDto, type DecreaseSpotPositionQuoteDto, type FeeAmountWithUsd, type FeesStatsGroupDto, type FieldError, type FusionFeesStatsGroupDto, type GetCloseSpotPositionQuoteData, type GetCloseSpotPositionQuoteError, type GetCloseSpotPositionQuoteErrors, type GetCloseSpotPositionQuoteResponse, type GetCloseSpotPositionQuoteResponseZodType, type GetCloseSpotPositionQuoteResponses, type GetDecreaseSpotPositionQuoteData, type GetDecreaseSpotPositionQuoteError, type GetDecreaseSpotPositionQuoteErrors, type GetDecreaseSpotPositionQuoteResponse, type GetDecreaseSpotPositionQuoteResponseZodType, type GetDecreaseSpotPositionQuoteResponses, type GetFeesStatsData, type GetFeesStatsError, type GetFeesStatsErrors, type GetFeesStatsResponse, type GetFeesStatsResponseZodType, type GetFeesStatsResponses, type GetFusionFeesStatsData, type GetFusionFeesStatsError, type GetFusionFeesStatsErrors, type GetFusionFeesStatsResponse, type GetFusionFeesStatsResponseZodType, type GetFusionFeesStatsResponses, type GetIncreaseSpotPositionQuoteData, type GetIncreaseSpotPositionQuoteError, type GetIncreaseSpotPositionQuoteErrors, type GetIncreaseSpotPositionQuoteResponse, type GetIncreaseSpotPositionQuoteResponseZodType, type GetIncreaseSpotPositionQuoteResponses, type GetLendingPositionData, type GetLendingPositionError, type GetLendingPositionErrors, type GetLendingPositionResponse, type GetLendingPositionResponseZodType, type GetLendingPositionResponses, type GetLendingPositionsData, type GetLendingPositionsError, type GetLendingPositionsErrors, type GetLendingPositionsResponse, type GetLendingPositionsResponseZodType, type GetLendingPositionsResponses, type GetLimitOrderData, type GetLimitOrderError, type GetLimitOrderError404Error, type GetLimitOrderError500Error, type GetLimitOrderErrors, type GetLimitOrderQuoteByInputData, type GetLimitOrderQuoteByInputError, type GetLimitOrderQuoteByInputErrors, type GetLimitOrderQuoteByInputResponse, type GetLimitOrderQuoteByInputResponseZodType, type GetLimitOrderQuoteByInputResponses, type GetLimitOrderQuoteByOutputData, type GetLimitOrderQuoteByOutputError, type GetLimitOrderQuoteByOutputErrors, type GetLimitOrderQuoteByOutputResponse, type GetLimitOrderQuoteByOutputResponseZodType, type GetLimitOrderQuoteByOutputResponses, type GetLimitOrderResponse, type GetLimitOrderResponseZodType, type GetLimitOrderResponses, type GetLimitOrdersData, type GetLimitOrdersError, type GetLimitOrdersErrors, type GetLimitOrdersResponse, type GetLimitOrdersResponseZodType, type GetLimitOrdersResponses, type GetLpPositionActionsData, type GetLpPositionActionsError, type GetLpPositionActionsErrors, type GetLpPositionActionsResponse, type GetLpPositionActionsResponseZodType, type GetLpPositionActionsResponses, type GetLpPositionsData, type GetLpPositionsError, type GetLpPositionsErrors, type GetLpPositionsResponse, type GetLpPositionsResponseZodType, type GetLpPositionsResponses, type GetLpSpotLeaderboardData, type GetLpSpotLeaderboardError, type GetLpSpotLeaderboardErrors, type GetLpSpotLeaderboardResponse, type GetLpSpotLeaderboardResponseZodType, type GetLpSpotLeaderboardResponses, type GetMarketData, type GetMarketError, type GetMarketErrors, type GetMarketResponse, type GetMarketResponseZodType, type GetMarketResponses, type GetMarketsData, type GetMarketsError, type GetMarketsErrors, type GetMarketsResponse, type GetMarketsResponseZodType, type GetMarketsResponses, type GetMintData, type GetMintError, type GetMintErrors, type GetMintResponse, type GetMintResponseZodType, type GetMintResponses, type GetMintsData, type GetMintsError, type GetMintsErrors, type GetMintsResponse, type GetMintsResponseZodType, type GetMintsResponses, type GetOraclePriceData, type GetOraclePriceError, type GetOraclePriceErrors, type GetOraclePriceResponse, type GetOraclePriceResponseZodType, type GetOraclePriceResponses, type GetOraclePricesData, type GetOraclePricesError, type GetOraclePricesErrors, type GetOraclePricesResponse, type GetOraclePricesResponseZodType, type GetOraclePricesResponses, type GetOrderHistoryData, type GetOrderHistoryError, type GetOrderHistoryErrors, type GetOrderHistoryResponse, type GetOrderHistoryResponseZodType, type GetOrderHistoryResponses, type GetPairPriceData, type GetPairPriceError, type GetPairPriceErrors, type GetPairPriceResponse, type GetPairPriceResponseZodType, type GetPairPriceResponses, type GetPoolCandlesData, type GetPoolCandlesError, type GetPoolCandlesErrors, type GetPoolCandlesResponse, type GetPoolCandlesResponseZodType, type GetPoolCandlesResponses, type GetPoolData, type GetPoolError, type GetPoolErrors, type GetPoolOrderBookData, type GetPoolOrderBookError, type GetPoolOrderBookErrors, type GetPoolOrderBookResponse, type GetPoolOrderBookResponseZodType, type GetPoolOrderBookResponses, type GetPoolResponse, type GetPoolResponseZodType, type GetPoolResponses, type GetPoolSwapsData, type GetPoolSwapsError, type GetPoolSwapsErrors, type GetPoolSwapsResponse, type GetPoolSwapsResponseZodType, type GetPoolSwapsResponses, type GetPoolTicksData, type GetPoolTicksError, type GetPoolTicksErrors, type GetPoolTicksResponse, type GetPoolTicksResponseZodType, type GetPoolTicksResponses, type GetPoolsData, type GetPoolsError, type GetPoolsErrors, type GetPoolsResponse, type GetPoolsResponseZodType, type GetPoolsResponses, type GetPositionsStatsData, type GetPositionsStatsError, type GetPositionsStatsErrors, type GetPositionsStatsResponse, type GetPositionsStatsResponseZodType, type GetPositionsStatsResponses, type GetPositionsTotalData, type GetPositionsTotalError, type GetPositionsTotalErrors, type GetPositionsTotalResponse, type GetPositionsTotalResponseZodType, type GetPositionsTotalResponses, type GetSpotPositionData, type GetSpotPositionError, type GetSpotPositionErrors, type GetSpotPositionResponse, type GetSpotPositionResponseZodType, type GetSpotPositionResponses, type GetSpotPositionsData, type GetSpotPositionsError, type GetSpotPositionsErrors, type GetSpotPositionsResponse, type GetSpotPositionsResponseZodType, type GetSpotPositionsResponses, type GetStakingLeaderboardData, type GetStakingLeaderboardError, type GetStakingLeaderboardErrors, type GetStakingLeaderboardResponse, type GetStakingLeaderboardResponseZodType, type GetStakingLeaderboardResponses, type GetStakingRevenueStatsData, type GetStakingRevenueStatsError, type GetStakingRevenueStatsErrors, type GetStakingRevenueStatsResponse, type GetStakingRevenueStatsResponseZodType, type GetStakingRevenueStatsResponses, type GetStakingTreasuryData, type GetStakingTreasuryError, type GetStakingTreasuryErrors, type GetStakingTreasuryResponse, type GetStakingTreasuryResponseZodType, type GetStakingTreasuryResponses, type GetSwapQuoteByInputData, type GetSwapQuoteByInputError, type GetSwapQuoteByInputErrors, type GetSwapQuoteByInputResponse, type GetSwapQuoteByInputResponseZodType, type GetSwapQuoteByInputResponses, type GetSwapQuoteByOutputData, type GetSwapQuoteByOutputError, type GetSwapQuoteByOutputErrors, type GetSwapQuoteByOutputResponse, type GetSwapQuoteByOutputResponseZodType, type GetSwapQuoteByOutputResponses, type GetTradableAmountData, type GetTradableAmountError, type GetTradableAmountErrors, type GetTradableAmountResponse, type GetTradableAmountResponseZodType, type GetTradableAmountResponses, type GetTradeHistoryData, type GetTradeHistoryError, type GetTradeHistoryErrors, type GetTradeHistoryResponse, type GetTradeHistoryResponseZodType, type GetTradeHistoryResponses, type GetTunaPositionData, type GetTunaPositionError, type GetTunaPositionErrors, type GetTunaPositionResponse, type GetTunaPositionResponseZodType, type GetTunaPositionResponses, type GetTunaPositionsData, type GetTunaPositionsError, type GetTunaPositionsErrors, type GetTunaPositionsResponse, type GetTunaPositionsResponseZodType, type GetTunaPositionsResponses, type GetUserStakingPositionData, type GetUserStakingPositionError, type GetUserStakingPositionErrors, type GetUserStakingPositionHistoryData, type GetUserStakingPositionHistoryError, type GetUserStakingPositionHistoryErrors, type GetUserStakingPositionHistoryResponse, type GetUserStakingPositionHistoryResponseZodType, type GetUserStakingPositionHistoryResponses, type GetUserStakingPositionResponse, type GetUserStakingPositionResponseZodType, type GetUserStakingPositionResponses, type GetVaultData, type GetVaultError, type GetVaultErrors, type GetVaultHistoryData, type GetVaultHistoryError, type GetVaultHistoryErrors, type GetVaultHistoryResponse, type GetVaultHistoryResponseZodType, type GetVaultHistoryResponses, type GetVaultResponse, type GetVaultResponseZodType, type GetVaultResponses, type GetVaultsData, type GetVaultsError, type GetVaultsErrors, type GetVaultsResponse, type GetVaultsResponseZodType, type GetVaultsResponses, type HttpStatusData, type I128Dto, type I64Dto, type IncreaseSpotPositionQuoteDto, type InternalErrorCodeErrorBody, type LeaderboardError400BadRequest, type LeaderboardError400Error, type LeaderboardError500Error, type LeaderboardItemDto, LeaderboardPeriod, LeaderboardSortBy, type LendingPositionDto, type LendingPositionError404Error, type LendingPositionError500Error, type LendingPositionResponse, type LendingPositionsListResponse, type LimitOrderDto, type LimitOrderQuoteByInputDto, type LimitOrderQuoteByOutputDto, type LimitOrderResponse, LimitOrderStatus, type LimitOrdersListResponse, type LpPositionResponse, type LpPositionsError400BadRequest, type LpPositionsError400Error, type LpPositionsError500Error, type LpPositionsHistoryListResponse, type LpPositionsListResponse, type MarketDto, type MarketError404Error, type MarketError500Error, type MarketResponse, type MarketsListResponse, type MintDto, type MintError404Error, type MintError500Error, NotificationAction, NotificationEntity, type Options, type OraclePriceDto, type OraclePriceError404Error, type OraclePriceError500Error, type OrderBookDto, type OrderBookEntryDto, type OrderBookWrapper, type OrderHistoryEntryDto, type OrderHistoryListResponse, type OrderHistoryNotificationResponse, OrderHistoryStatus, OrderHistoryType, OrderHistoryUiDirection, type PaginationMeta, type PoolDto, type PoolPriceCandleDto, PoolProvider, type PoolStatsDto, type PoolStatsGroupDto, type PoolStatsGroupEntryDto, type PoolSubscription, PoolSubscriptionTopic, type PoolSwapDto, type PoolTicksDto, type PoolsError400BadRequest, type PoolsError400Error, type PoolsError404Error, type PoolsError500Error, type PubkeyDto, RateLimitSource, type RetryAfterHint, type SearchTokensData, type SearchTokensError, type SearchTokensErrors, type SearchTokensResponse, type SearchTokensResponseZodType, type SearchTokensResponses, type ServerSentEventsOptions, type ServerSentEventsResult, type Snapshot, type SnapshotContainer, type SpotPositionError404Error, type SpotPositionError500Error, type SpotPositionResponse, type SpotPositionsListResponse, type SseData, type SseErrors, type SseResponse, type SseResponse2, type SseResponseInitialMessage, type SseResponseLendingPosition, type SseResponseLendingPositionPayload, type SseResponseOrderHistoryEntry, type SseResponseOrderHistoryEntryPayload, type SseResponsePoolSwap, type SseResponsePoolSwapPayload, type SseResponseSnapshot, type SseResponseStakingPosition, type SseResponseStakingPositionPayload, type SseResponseTradeHistoryEntry, type SseResponseTradeHistoryEntryPayload, type SseResponseZodType, type SseResponses, type StakingDepositsStatsDto, type StakingError400BadRequest, type StakingError400Error, type StakingError500Error, type StakingLeaderboardPositionDto, type StakingPositionActionDto, StakingPositionActionType, type StakingPositionDto, type StatsError400BadRequest, type StatsError400Error, type StatsError500Error, type StreamEvent, type StreamInitalMessage, type SubscriptionOptions, type SwapQuoteByInputDto, type SwapQuoteByOutputDto, type TickDto, type TokenAmountWithUsd, type TokenAuditDto, type TokenFirstPoolDto, type TokenPairPriceResponseDto, type TokenPriceDto, type TokenSearchItemDto, type TokenStatsWindowDto, type TokensError400BadRequest, type TokensError400Error, type TokensError404Error, type TokensError429Error, type TokensError429TooManyRequests, type TokensError429UpstreamRateLimited, type TokensError500Error, type TokensError502Error, type TradableAmountDto, TradeHistoryAction, type TradeHistoryEntryDto, type TradeHistoryEntryPnlUsd, type TradeHistoryListResponse, type TradeHistoryNotificationResponse, TradeHistoryUiDirection, type TreasuryDto, TunaBackendSdk, TunaBackendSdkError, type TunaLpPositionActionComposite, type TunaLpPositionActionDto, TunaLpPositionAutoCompound, TunaLpPositionAutoCompounding, type TunaLpPositionDto, type TunaLpPositionFlags, type TunaLpPositionInnerSwaps, TunaLpPositionLimitOrderSwap, type TunaLpPositionParameters, TunaLpPositionRebalance, type TunaLpPositionTokenPrices, type TunaLpPositionTransfer, type TunaLpPositionTriggerOrder, TunaLpPositionTriggerOrderType, type TunaLpPositionValue, TunaLpPositionsActionType, type TunaLpPositionsStats, type TunaPositionDto, TunaPositionDtoLockType, TunaPositionDtoState, TunaPositionMarketMaker, TunaPositionPoolToken, type TunaPositionTokenDepositedCollateral, type TunaPositionTokenPnl, type TunaPositionUsdPnl, type TunaSpotPositionDto, TunaSpotPositionDtoState, type U128Dto, type U64Dto, type UpdateStreamSubscriptionData, type UpdateStreamSubscriptionError, type UpdateStreamSubscriptionError404Error, type UpdateStreamSubscriptionError500Error, type UpdateStreamSubscriptionErrors, type UpdateStreamSubscriptionResponse, type UpdateStreamSubscriptionResponseZodType, type UpdateStreamSubscriptionResponses, type ValidationErrorCodeErrorBody, type ValidationErrorCodeValidationDetailsErrorBody, type VaultDto, type VaultError400BadRequest, type VaultError400Error, type VaultError404Error, type VaultError500Error, type VaultResponse, type VaultStatsDto, type VaultsListResponse, type VestingDto, type WalletSubscription, WalletSubscriptionTopic, createClient, createSseClient, isTunaSdkError, tunaSdkErrorInterceptor, unwrap, zBadRequestErrorCodeErrorBody, zCloseSpotPositionQuoteDto, zDecreaseSpotPositionQuoteDto, zFeeAmountWithUsd, zFeesStatsGroupDto, zFieldError, zFusionFeesStatsGroupDto, zGetCloseSpotPositionQuoteData, zGetCloseSpotPositionQuoteResponse, zGetDecreaseSpotPositionQuoteData, zGetDecreaseSpotPositionQuoteResponse, zGetFeesStatsData, zGetFeesStatsResponse, zGetFusionFeesStatsData, zGetFusionFeesStatsResponse, zGetIncreaseSpotPositionQuoteData, zGetIncreaseSpotPositionQuoteResponse, zGetLendingPositionData, zGetLendingPositionResponse, zGetLendingPositionsData, zGetLendingPositionsResponse, zGetLimitOrderData, zGetLimitOrderError404Error, zGetLimitOrderError500Error, zGetLimitOrderQuoteByInputData, zGetLimitOrderQuoteByInputResponse, zGetLimitOrderQuoteByOutputData, zGetLimitOrderQuoteByOutputResponse, zGetLimitOrderResponse, zGetLimitOrdersData, zGetLimitOrdersResponse, zGetLpPositionActionsData, zGetLpPositionActionsResponse, zGetLpPositionsData, zGetLpPositionsResponse, zGetLpSpotLeaderboardData, zGetLpSpotLeaderboardResponse, zGetMarketData, zGetMarketResponse, zGetMarketsData, zGetMarketsResponse, zGetMintData, zGetMintResponse, zGetMintsData, zGetMintsResponse, zGetOraclePriceData, zGetOraclePriceResponse, zGetOraclePricesData, zGetOraclePricesResponse, zGetOrderHistoryData, zGetOrderHistoryResponse, zGetPairPriceData, zGetPairPriceResponse, zGetPoolCandlesData, zGetPoolCandlesResponse, zGetPoolData, zGetPoolOrderBookData, zGetPoolOrderBookResponse, zGetPoolResponse, zGetPoolSwapsData, zGetPoolSwapsResponse, zGetPoolTicksData, zGetPoolTicksResponse, zGetPoolsData, zGetPoolsResponse, zGetPositionsStatsData, zGetPositionsStatsResponse, zGetPositionsTotalData, zGetPositionsTotalResponse, zGetSpotPositionData, zGetSpotPositionResponse, zGetSpotPositionsData, zGetSpotPositionsResponse, zGetStakingLeaderboardData, zGetStakingLeaderboardResponse, zGetStakingRevenueStatsData, zGetStakingRevenueStatsResponse, zGetStakingTreasuryData, zGetStakingTreasuryResponse, zGetSwapQuoteByInputData, zGetSwapQuoteByInputResponse, zGetSwapQuoteByOutputData, zGetSwapQuoteByOutputResponse, zGetTradableAmountData, zGetTradableAmountResponse, zGetTradeHistoryData, zGetTradeHistoryResponse, zGetTunaPositionData, zGetTunaPositionResponse, zGetTunaPositionsData, zGetTunaPositionsResponse, zGetUserStakingPositionData, zGetUserStakingPositionHistoryData, zGetUserStakingPositionHistoryResponse, zGetUserStakingPositionResponse, zGetVaultData, zGetVaultHistoryData, zGetVaultHistoryResponse, zGetVaultResponse, zGetVaultsData, zGetVaultsResponse, zHttpStatusData, zI128Dto, zI64Dto, zIncreaseSpotPositionQuoteDto, zInternalErrorCodeErrorBody, zLeaderboardError400BadRequest, zLeaderboardError400Error, zLeaderboardError500Error, zLeaderboardItemDto, zLeaderboardPeriod, zLeaderboardSortBy, zLendingPositionDto, zLendingPositionError404Error, zLendingPositionError500Error, zLendingPositionResponse, zLendingPositionsListResponse, zLimitOrderDto, zLimitOrderQuoteByInputDto, zLimitOrderQuoteByOutputDto, zLimitOrderResponse, zLimitOrderStatus, zLimitOrdersListResponse, zLpPositionResponse, zLpPositionsError400BadRequest, zLpPositionsError400Error, zLpPositionsError500Error, zLpPositionsHistoryListResponse, zLpPositionsListResponse, zMarketDto, zMarketError404Error, zMarketError500Error, zMarketResponse, zMarketsListResponse, zMintDto, zMintError404Error, zMintError500Error, zNotificationAction, zNotificationEntity, zOraclePriceDto, zOraclePriceError404Error, zOraclePriceError500Error, zOrderBookDto, zOrderBookEntryDto, zOrderBookWrapper, zOrderHistoryEntryDto, zOrderHistoryListResponse, zOrderHistoryNotificationResponse, zOrderHistoryStatus, zOrderHistoryType, zOrderHistoryUiDirection, zPaginationMeta, zPoolDto, zPoolPriceCandleDto, zPoolProvider, zPoolStatsDto, zPoolStatsGroupDto, zPoolStatsGroupEntryDto, zPoolSubscription, zPoolSubscriptionTopic, zPoolSwapDto, zPoolTicksDto, zPoolsError400BadRequest, zPoolsError400Error, zPoolsError404Error, zPoolsError500Error, zPubkeyDto, zRateLimitSource, zRetryAfterHint, zSearchTokensData, zSearchTokensResponse, zSnapshot, zSnapshotContainer, zSpotPositionError404Error, zSpotPositionError500Error, zSpotPositionResponse, zSpotPositionsListResponse, zSseData, zSseResponse, zSseResponse2, zSseResponseInitialMessage, zSseResponseLendingPosition, zSseResponseLendingPositionPayload, zSseResponseOrderHistoryEntry, zSseResponseOrderHistoryEntryPayload, zSseResponsePoolSwap, zSseResponsePoolSwapPayload, zSseResponseSnapshot, zSseResponseStakingPosition, zSseResponseStakingPositionPayload, zSseResponseTradeHistoryEntry, zSseResponseTradeHistoryEntryPayload, zStakingDepositsStatsDto, zStakingError400BadRequest, zStakingError400Error, zStakingError500Error, zStakingLeaderboardPositionDto, zStakingPositionActionDto, zStakingPositionActionType, zStakingPositionDto, zStatsError400BadRequest, zStatsError400Error, zStatsError500Error, zStreamInitalMessage, zSubscriptionOptions, zSwapQuoteByInputDto, zSwapQuoteByOutputDto, zTickDto, zTokenAmountWithUsd, zTokenAuditDto, zTokenFirstPoolDto, zTokenPairPriceResponseDto, zTokenPriceDto, zTokenSearchItemDto, zTokenStatsWindowDto, zTokensError400BadRequest, zTokensError400Error, zTokensError404Error, zTokensError429Error, zTokensError429TooManyRequests, zTokensError429UpstreamRateLimited, zTokensError500Error, zTokensError502Error, zTradableAmountDto, zTradeHistoryAction, zTradeHistoryEntryDto, zTradeHistoryEntryPnlUsd, zTradeHistoryListResponse, zTradeHistoryNotificationResponse, zTradeHistoryUiDirection, zTreasuryDto, zTunaLpPositionActionComposite, zTunaLpPositionActionDto, zTunaLpPositionAutoCompound, zTunaLpPositionAutoCompounding, zTunaLpPositionDto, zTunaLpPositionFlags, zTunaLpPositionInnerSwaps, zTunaLpPositionLimitOrderSwap, zTunaLpPositionParameters, zTunaLpPositionRebalance, zTunaLpPositionTokenPrices, zTunaLpPositionTransfer, zTunaLpPositionTriggerOrder, zTunaLpPositionTriggerOrderType, zTunaLpPositionValue, zTunaLpPositionsActionType, zTunaLpPositionsStats, zTunaPositionDto, zTunaPositionDtoLockType, zTunaPositionDtoState, zTunaPositionMarketMaker, zTunaPositionPoolToken, zTunaPositionTokenDepositedCollateral, zTunaPositionTokenPnl, zTunaPositionUsdPnl, zTunaSpotPositionDto, zTunaSpotPositionDtoState, zU128Dto, zU64Dto, zUpdateStreamSubscriptionData, zUpdateStreamSubscriptionError404Error, zUpdateStreamSubscriptionError500Error, zUpdateStreamSubscriptionResponse, zValidationErrorCodeErrorBody, zValidationErrorCodeValidationDetailsErrorBody, zVaultDto, zVaultError400BadRequest, zVaultError400Error, zVaultError404Error, zVaultError500Error, zVaultResponse, zVaultStatsDto, zVaultsListResponse, zVestingDto, zWalletSubscription, zWalletSubscriptionTopic };
|
|
14876
|
+
export { type BadRequestErrorCodeErrorBody, type ClientOptions, type CloseSpotPositionQuoteDto, type ConfirmBindData, type ConfirmBindError, type ConfirmBindErrors, type ConfirmBindRequest, type ConfirmBindResponse, type ConfirmBindResponse2, type ConfirmBindResponseZodType, type ConfirmBindResponses, type CreateBindChallengeData, type CreateBindChallengeError, type CreateBindChallengeErrors, type CreateBindChallengeRequest, type CreateBindChallengeResponse, type CreateBindChallengeResponse2, type CreateBindChallengeResponseZodType, type CreateBindChallengeResponses, type DecreaseSpotPositionQuoteDto, type FeeAmountWithUsd, type FeesStatsGroupDto, type FieldError, type FusionFeesStatsGroupDto, type GetCloseSpotPositionQuoteData, type GetCloseSpotPositionQuoteError, type GetCloseSpotPositionQuoteErrors, type GetCloseSpotPositionQuoteResponse, type GetCloseSpotPositionQuoteResponseZodType, type GetCloseSpotPositionQuoteResponses, type GetDecreaseSpotPositionQuoteData, type GetDecreaseSpotPositionQuoteError, type GetDecreaseSpotPositionQuoteErrors, type GetDecreaseSpotPositionQuoteResponse, type GetDecreaseSpotPositionQuoteResponseZodType, type GetDecreaseSpotPositionQuoteResponses, type GetFeesStatsData, type GetFeesStatsError, type GetFeesStatsErrors, type GetFeesStatsResponse, type GetFeesStatsResponseZodType, type GetFeesStatsResponses, type GetFusionFeesStatsData, type GetFusionFeesStatsError, type GetFusionFeesStatsErrors, type GetFusionFeesStatsResponse, type GetFusionFeesStatsResponseZodType, type GetFusionFeesStatsResponses, type GetIncreaseSpotPositionQuoteData, type GetIncreaseSpotPositionQuoteError, type GetIncreaseSpotPositionQuoteErrors, type GetIncreaseSpotPositionQuoteResponse, type GetIncreaseSpotPositionQuoteResponseZodType, type GetIncreaseSpotPositionQuoteResponses, type GetLendingPositionData, type GetLendingPositionError, type GetLendingPositionErrors, type GetLendingPositionResponse, type GetLendingPositionResponseZodType, type GetLendingPositionResponses, type GetLendingPositionsData, type GetLendingPositionsError, type GetLendingPositionsErrors, type GetLendingPositionsResponse, type GetLendingPositionsResponseZodType, type GetLendingPositionsResponses, type GetLimitOrderData, type GetLimitOrderError, type GetLimitOrderError404Error, type GetLimitOrderError500Error, type GetLimitOrderErrors, type GetLimitOrderQuoteByInputData, type GetLimitOrderQuoteByInputError, type GetLimitOrderQuoteByInputErrors, type GetLimitOrderQuoteByInputResponse, type GetLimitOrderQuoteByInputResponseZodType, type GetLimitOrderQuoteByInputResponses, type GetLimitOrderQuoteByOutputData, type GetLimitOrderQuoteByOutputError, type GetLimitOrderQuoteByOutputErrors, type GetLimitOrderQuoteByOutputResponse, type GetLimitOrderQuoteByOutputResponseZodType, type GetLimitOrderQuoteByOutputResponses, type GetLimitOrderResponse, type GetLimitOrderResponseZodType, type GetLimitOrderResponses, type GetLimitOrdersData, type GetLimitOrdersError, type GetLimitOrdersErrors, type GetLimitOrdersResponse, type GetLimitOrdersResponseZodType, type GetLimitOrdersResponses, type GetLpPositionActionsData, type GetLpPositionActionsError, type GetLpPositionActionsErrors, type GetLpPositionActionsResponse, type GetLpPositionActionsResponseZodType, type GetLpPositionActionsResponses, type GetLpPositionsData, type GetLpPositionsError, type GetLpPositionsErrors, type GetLpPositionsResponse, type GetLpPositionsResponseZodType, type GetLpPositionsResponses, type GetLpSpotLeaderboardData, type GetLpSpotLeaderboardError, type GetLpSpotLeaderboardErrors, type GetLpSpotLeaderboardResponse, type GetLpSpotLeaderboardResponseZodType, type GetLpSpotLeaderboardResponses, type GetMarketData, type GetMarketError, type GetMarketErrors, type GetMarketResponse, type GetMarketResponseZodType, type GetMarketResponses, type GetMarketsData, type GetMarketsError, type GetMarketsErrors, type GetMarketsResponse, type GetMarketsResponseZodType, type GetMarketsResponses, type GetMintData, type GetMintError, type GetMintErrors, type GetMintResponse, type GetMintResponseZodType, type GetMintResponses, type GetMintsData, type GetMintsError, type GetMintsErrors, type GetMintsResponse, type GetMintsResponseZodType, type GetMintsResponses, type GetOraclePriceData, type GetOraclePriceError, type GetOraclePriceErrors, type GetOraclePriceResponse, type GetOraclePriceResponseZodType, type GetOraclePriceResponses, type GetOraclePricesData, type GetOraclePricesError, type GetOraclePricesErrors, type GetOraclePricesResponse, type GetOraclePricesResponseZodType, type GetOraclePricesResponses, type GetOrderHistoryData, type GetOrderHistoryError, type GetOrderHistoryErrors, type GetOrderHistoryResponse, type GetOrderHistoryResponseZodType, type GetOrderHistoryResponses, type GetPairPriceData, type GetPairPriceError, type GetPairPriceErrors, type GetPairPriceResponse, type GetPairPriceResponseZodType, type GetPairPriceResponses, type GetPoolCandlesData, type GetPoolCandlesError, type GetPoolCandlesErrors, type GetPoolCandlesResponse, type GetPoolCandlesResponseZodType, type GetPoolCandlesResponses, type GetPoolData, type GetPoolError, type GetPoolErrors, type GetPoolOrderBookData, type GetPoolOrderBookError, type GetPoolOrderBookErrors, type GetPoolOrderBookResponse, type GetPoolOrderBookResponseZodType, type GetPoolOrderBookResponses, type GetPoolResponse, type GetPoolResponseZodType, type GetPoolResponses, type GetPoolSwapsData, type GetPoolSwapsError, type GetPoolSwapsErrors, type GetPoolSwapsResponse, type GetPoolSwapsResponseZodType, type GetPoolSwapsResponses, type GetPoolTicksData, type GetPoolTicksError, type GetPoolTicksErrors, type GetPoolTicksResponse, type GetPoolTicksResponseZodType, type GetPoolTicksResponses, type GetPoolsData, type GetPoolsError, type GetPoolsErrors, type GetPoolsResponse, type GetPoolsResponseZodType, type GetPoolsResponses, type GetPositionsStatsData, type GetPositionsStatsError, type GetPositionsStatsErrors, type GetPositionsStatsResponse, type GetPositionsStatsResponseZodType, type GetPositionsStatsResponses, type GetPositionsTotalData, type GetPositionsTotalError, type GetPositionsTotalErrors, type GetPositionsTotalResponse, type GetPositionsTotalResponseZodType, type GetPositionsTotalResponses, type GetSpotPositionData, type GetSpotPositionError, type GetSpotPositionErrors, type GetSpotPositionResponse, type GetSpotPositionResponseZodType, type GetSpotPositionResponses, type GetSpotPositionsData, type GetSpotPositionsError, type GetSpotPositionsErrors, type GetSpotPositionsResponse, type GetSpotPositionsResponseZodType, type GetSpotPositionsResponses, type GetStakingLeaderboardData, type GetStakingLeaderboardError, type GetStakingLeaderboardErrors, type GetStakingLeaderboardResponse, type GetStakingLeaderboardResponseZodType, type GetStakingLeaderboardResponses, type GetStakingRevenueStatsData, type GetStakingRevenueStatsError, type GetStakingRevenueStatsErrors, type GetStakingRevenueStatsResponse, type GetStakingRevenueStatsResponseZodType, type GetStakingRevenueStatsResponses, type GetStakingTreasuryData, type GetStakingTreasuryError, type GetStakingTreasuryErrors, type GetStakingTreasuryResponse, type GetStakingTreasuryResponseZodType, type GetStakingTreasuryResponses, type GetSwapQuoteByInputData, type GetSwapQuoteByInputError, type GetSwapQuoteByInputErrors, type GetSwapQuoteByInputResponse, type GetSwapQuoteByInputResponseZodType, type GetSwapQuoteByInputResponses, type GetSwapQuoteByOutputData, type GetSwapQuoteByOutputError, type GetSwapQuoteByOutputErrors, type GetSwapQuoteByOutputResponse, type GetSwapQuoteByOutputResponseZodType, type GetSwapQuoteByOutputResponses, type GetTradableAmountData, type GetTradableAmountError, type GetTradableAmountErrors, type GetTradableAmountResponse, type GetTradableAmountResponseZodType, type GetTradableAmountResponses, type GetTradeHistoryData, type GetTradeHistoryError, type GetTradeHistoryErrors, type GetTradeHistoryResponse, type GetTradeHistoryResponseZodType, type GetTradeHistoryResponses, type GetTunaPositionData, type GetTunaPositionError, type GetTunaPositionErrors, type GetTunaPositionResponse, type GetTunaPositionResponseZodType, type GetTunaPositionResponses, type GetTunaPositionsData, type GetTunaPositionsError, type GetTunaPositionsErrors, type GetTunaPositionsResponse, type GetTunaPositionsResponseZodType, type GetTunaPositionsResponses, type GetUserStakingPositionData, type GetUserStakingPositionError, type GetUserStakingPositionErrors, type GetUserStakingPositionHistoryData, type GetUserStakingPositionHistoryError, type GetUserStakingPositionHistoryErrors, type GetUserStakingPositionHistoryResponse, type GetUserStakingPositionHistoryResponseZodType, type GetUserStakingPositionHistoryResponses, type GetUserStakingPositionResponse, type GetUserStakingPositionResponseZodType, type GetUserStakingPositionResponses, type GetVaultData, type GetVaultError, type GetVaultErrors, type GetVaultHistoryData, type GetVaultHistoryError, type GetVaultHistoryErrors, type GetVaultHistoryResponse, type GetVaultHistoryResponseZodType, type GetVaultHistoryResponses, type GetVaultResponse, type GetVaultResponseZodType, type GetVaultResponses, type GetVaultsData, type GetVaultsError, type GetVaultsErrors, type GetVaultsResponse, type GetVaultsResponseZodType, type GetVaultsResponses, type HttpStatusData, type I128Dto, type I64Dto, type IncreaseSpotPositionQuoteDto, type InternalErrorCodeErrorBody, type InviteApiError400Error, type InviteApiError400InvalidBindRequest, type InviteApiError404Error, type InviteApiError409Error, type InviteApiError500Error, type LeaderboardError400BadRequest, type LeaderboardError400Error, type LeaderboardError500Error, type LeaderboardItemDto, LeaderboardPeriod, LeaderboardSortBy, type LendingPositionDto, type LendingPositionError404Error, type LendingPositionError500Error, type LendingPositionResponse, type LendingPositionsListResponse, type LimitOrderDto, type LimitOrderQuoteByInputDto, type LimitOrderQuoteByOutputDto, type LimitOrderResponse, LimitOrderStatus, type LimitOrdersListResponse, type LpPositionResponse, type LpPositionsError400BadRequest, type LpPositionsError400Error, type LpPositionsError500Error, type LpPositionsHistoryListResponse, type LpPositionsListResponse, type MarketDto, type MarketError404Error, type MarketError500Error, type MarketResponse, type MarketsListResponse, type MintDto, type MintError404Error, type MintError500Error, NotificationAction, NotificationEntity, type Options, type OraclePriceDto, type OraclePriceError404Error, type OraclePriceError500Error, type OrderBookDto, type OrderBookEntryDto, type OrderBookWrapper, type OrderHistoryEntryDto, type OrderHistoryListResponse, type OrderHistoryNotificationResponse, OrderHistoryStatus, OrderHistoryType, OrderHistoryUiDirection, type PaginationMeta, type PoolDto, type PoolPriceCandleDto, PoolProvider, type PoolStatsDto, type PoolStatsGroupDto, type PoolStatsGroupEntryDto, type PoolSubscription, PoolSubscriptionTopic, type PoolSwapDto, type PoolTicksDto, type PoolsError400BadRequest, type PoolsError400Error, type PoolsError404Error, type PoolsError500Error, type PubkeyDto, RateLimitSource, type RetryAfterHint, type SearchTokensData, type SearchTokensError, type SearchTokensErrors, type SearchTokensResponse, type SearchTokensResponseZodType, type SearchTokensResponses, type ServerSentEventsOptions, type ServerSentEventsResult, type Snapshot, type SnapshotContainer, type SpotPositionError404Error, type SpotPositionError500Error, type SpotPositionResponse, type SpotPositionsListResponse, type SseData, type SseErrors, type SseResponse, type SseResponse2, type SseResponseInitialMessage, type SseResponseLendingPosition, type SseResponseLendingPositionPayload, type SseResponseOrderHistoryEntry, type SseResponseOrderHistoryEntryPayload, type SseResponsePoolSwap, type SseResponsePoolSwapPayload, type SseResponseSnapshot, type SseResponseStakingPosition, type SseResponseStakingPositionPayload, type SseResponseTradeHistoryEntry, type SseResponseTradeHistoryEntryPayload, type SseResponseZodType, type SseResponses, type StakingDepositsStatsDto, type StakingError400BadRequest, type StakingError400Error, type StakingError500Error, type StakingLeaderboardPositionDto, type StakingPositionActionDto, StakingPositionActionType, type StakingPositionDto, type StatsError400BadRequest, type StatsError400Error, type StatsError500Error, type StreamEvent, type StreamInitalMessage, type SubscriptionOptions, type SwapQuoteByInputDto, type SwapQuoteByOutputDto, type TickDto, type TokenAmountWithUsd, type TokenAuditDto, type TokenFirstPoolDto, type TokenPairPriceResponseDto, type TokenPriceDto, type TokenSearchItemDto, type TokenStatsWindowDto, type TokensError400BadRequest, type TokensError400Error, type TokensError404Error, type TokensError429Error, type TokensError429TooManyRequests, type TokensError429UpstreamRateLimited, type TokensError500Error, type TokensError502Error, type TradableAmountDto, TradeHistoryAction, type TradeHistoryEntryDto, type TradeHistoryEntryPnlUsd, type TradeHistoryListResponse, type TradeHistoryNotificationResponse, TradeHistoryUiDirection, type TreasuryDto, TunaBackendSdk, TunaBackendSdkError, type TunaLpPositionActionComposite, type TunaLpPositionActionDto, TunaLpPositionAutoCompound, TunaLpPositionAutoCompounding, type TunaLpPositionDto, type TunaLpPositionFlags, type TunaLpPositionInnerSwaps, TunaLpPositionLimitOrderSwap, type TunaLpPositionParameters, TunaLpPositionRebalance, type TunaLpPositionTokenPrices, type TunaLpPositionTransfer, type TunaLpPositionTriggerOrder, TunaLpPositionTriggerOrderType, type TunaLpPositionValue, TunaLpPositionsActionType, type TunaLpPositionsStats, type TunaPositionDto, TunaPositionDtoLockType, TunaPositionDtoState, TunaPositionMarketMaker, TunaPositionPoolToken, type TunaPositionTokenDepositedCollateral, type TunaPositionTokenPnl, type TunaPositionUsdPnl, type TunaSpotPositionDto, TunaSpotPositionDtoState, type U128Dto, type U64Dto, type UpdateStreamSubscriptionData, type UpdateStreamSubscriptionError, type UpdateStreamSubscriptionError404Error, type UpdateStreamSubscriptionError500Error, type UpdateStreamSubscriptionErrors, type UpdateStreamSubscriptionResponse, type UpdateStreamSubscriptionResponseZodType, type UpdateStreamSubscriptionResponses, type ValidationErrorCodeErrorBody, type ValidationErrorCodeValidationDetailsErrorBody, type VaultDto, type VaultError400BadRequest, type VaultError400Error, type VaultError404Error, type VaultError500Error, type VaultResponse, type VaultStatsDto, type VaultsListResponse, type VestingDto, type WalletSubscription, WalletSubscriptionTopic, createClient, createSseClient, isTunaSdkError, tunaSdkErrorInterceptor, unwrap, zBadRequestErrorCodeErrorBody, zCloseSpotPositionQuoteDto, zConfirmBindData, zConfirmBindRequest, zConfirmBindResponse, zConfirmBindResponse2, zCreateBindChallengeData, zCreateBindChallengeRequest, zCreateBindChallengeResponse, zCreateBindChallengeResponse2, zDecreaseSpotPositionQuoteDto, zFeeAmountWithUsd, zFeesStatsGroupDto, zFieldError, zFusionFeesStatsGroupDto, zGetCloseSpotPositionQuoteData, zGetCloseSpotPositionQuoteResponse, zGetDecreaseSpotPositionQuoteData, zGetDecreaseSpotPositionQuoteResponse, zGetFeesStatsData, zGetFeesStatsResponse, zGetFusionFeesStatsData, zGetFusionFeesStatsResponse, zGetIncreaseSpotPositionQuoteData, zGetIncreaseSpotPositionQuoteResponse, zGetLendingPositionData, zGetLendingPositionResponse, zGetLendingPositionsData, zGetLendingPositionsResponse, zGetLimitOrderData, zGetLimitOrderError404Error, zGetLimitOrderError500Error, zGetLimitOrderQuoteByInputData, zGetLimitOrderQuoteByInputResponse, zGetLimitOrderQuoteByOutputData, zGetLimitOrderQuoteByOutputResponse, zGetLimitOrderResponse, zGetLimitOrdersData, zGetLimitOrdersResponse, zGetLpPositionActionsData, zGetLpPositionActionsResponse, zGetLpPositionsData, zGetLpPositionsResponse, zGetLpSpotLeaderboardData, zGetLpSpotLeaderboardResponse, zGetMarketData, zGetMarketResponse, zGetMarketsData, zGetMarketsResponse, zGetMintData, zGetMintResponse, zGetMintsData, zGetMintsResponse, zGetOraclePriceData, zGetOraclePriceResponse, zGetOraclePricesData, zGetOraclePricesResponse, zGetOrderHistoryData, zGetOrderHistoryResponse, zGetPairPriceData, zGetPairPriceResponse, zGetPoolCandlesData, zGetPoolCandlesResponse, zGetPoolData, zGetPoolOrderBookData, zGetPoolOrderBookResponse, zGetPoolResponse, zGetPoolSwapsData, zGetPoolSwapsResponse, zGetPoolTicksData, zGetPoolTicksResponse, zGetPoolsData, zGetPoolsResponse, zGetPositionsStatsData, zGetPositionsStatsResponse, zGetPositionsTotalData, zGetPositionsTotalResponse, zGetSpotPositionData, zGetSpotPositionResponse, zGetSpotPositionsData, zGetSpotPositionsResponse, zGetStakingLeaderboardData, zGetStakingLeaderboardResponse, zGetStakingRevenueStatsData, zGetStakingRevenueStatsResponse, zGetStakingTreasuryData, zGetStakingTreasuryResponse, zGetSwapQuoteByInputData, zGetSwapQuoteByInputResponse, zGetSwapQuoteByOutputData, zGetSwapQuoteByOutputResponse, zGetTradableAmountData, zGetTradableAmountResponse, zGetTradeHistoryData, zGetTradeHistoryResponse, zGetTunaPositionData, zGetTunaPositionResponse, zGetTunaPositionsData, zGetTunaPositionsResponse, zGetUserStakingPositionData, zGetUserStakingPositionHistoryData, zGetUserStakingPositionHistoryResponse, zGetUserStakingPositionResponse, zGetVaultData, zGetVaultHistoryData, zGetVaultHistoryResponse, zGetVaultResponse, zGetVaultsData, zGetVaultsResponse, zHttpStatusData, zI128Dto, zI64Dto, zIncreaseSpotPositionQuoteDto, zInternalErrorCodeErrorBody, zInviteApiError400Error, zInviteApiError400InvalidBindRequest, zInviteApiError404Error, zInviteApiError409Error, zInviteApiError500Error, zLeaderboardError400BadRequest, zLeaderboardError400Error, zLeaderboardError500Error, zLeaderboardItemDto, zLeaderboardPeriod, zLeaderboardSortBy, zLendingPositionDto, zLendingPositionError404Error, zLendingPositionError500Error, zLendingPositionResponse, zLendingPositionsListResponse, zLimitOrderDto, zLimitOrderQuoteByInputDto, zLimitOrderQuoteByOutputDto, zLimitOrderResponse, zLimitOrderStatus, zLimitOrdersListResponse, zLpPositionResponse, zLpPositionsError400BadRequest, zLpPositionsError400Error, zLpPositionsError500Error, zLpPositionsHistoryListResponse, zLpPositionsListResponse, zMarketDto, zMarketError404Error, zMarketError500Error, zMarketResponse, zMarketsListResponse, zMintDto, zMintError404Error, zMintError500Error, zNotificationAction, zNotificationEntity, zOraclePriceDto, zOraclePriceError404Error, zOraclePriceError500Error, zOrderBookDto, zOrderBookEntryDto, zOrderBookWrapper, zOrderHistoryEntryDto, zOrderHistoryListResponse, zOrderHistoryNotificationResponse, zOrderHistoryStatus, zOrderHistoryType, zOrderHistoryUiDirection, zPaginationMeta, zPoolDto, zPoolPriceCandleDto, zPoolProvider, zPoolStatsDto, zPoolStatsGroupDto, zPoolStatsGroupEntryDto, zPoolSubscription, zPoolSubscriptionTopic, zPoolSwapDto, zPoolTicksDto, zPoolsError400BadRequest, zPoolsError400Error, zPoolsError404Error, zPoolsError500Error, zPubkeyDto, zRateLimitSource, zRetryAfterHint, zSearchTokensData, zSearchTokensResponse, zSnapshot, zSnapshotContainer, zSpotPositionError404Error, zSpotPositionError500Error, zSpotPositionResponse, zSpotPositionsListResponse, zSseData, zSseResponse, zSseResponse2, zSseResponseInitialMessage, zSseResponseLendingPosition, zSseResponseLendingPositionPayload, zSseResponseOrderHistoryEntry, zSseResponseOrderHistoryEntryPayload, zSseResponsePoolSwap, zSseResponsePoolSwapPayload, zSseResponseSnapshot, zSseResponseStakingPosition, zSseResponseStakingPositionPayload, zSseResponseTradeHistoryEntry, zSseResponseTradeHistoryEntryPayload, zStakingDepositsStatsDto, zStakingError400BadRequest, zStakingError400Error, zStakingError500Error, zStakingLeaderboardPositionDto, zStakingPositionActionDto, zStakingPositionActionType, zStakingPositionDto, zStatsError400BadRequest, zStatsError400Error, zStatsError500Error, zStreamInitalMessage, zSubscriptionOptions, zSwapQuoteByInputDto, zSwapQuoteByOutputDto, zTickDto, zTokenAmountWithUsd, zTokenAuditDto, zTokenFirstPoolDto, zTokenPairPriceResponseDto, zTokenPriceDto, zTokenSearchItemDto, zTokenStatsWindowDto, zTokensError400BadRequest, zTokensError400Error, zTokensError404Error, zTokensError429Error, zTokensError429TooManyRequests, zTokensError429UpstreamRateLimited, zTokensError500Error, zTokensError502Error, zTradableAmountDto, zTradeHistoryAction, zTradeHistoryEntryDto, zTradeHistoryEntryPnlUsd, zTradeHistoryListResponse, zTradeHistoryNotificationResponse, zTradeHistoryUiDirection, zTreasuryDto, zTunaLpPositionActionComposite, zTunaLpPositionActionDto, zTunaLpPositionAutoCompound, zTunaLpPositionAutoCompounding, zTunaLpPositionDto, zTunaLpPositionFlags, zTunaLpPositionInnerSwaps, zTunaLpPositionLimitOrderSwap, zTunaLpPositionParameters, zTunaLpPositionRebalance, zTunaLpPositionTokenPrices, zTunaLpPositionTransfer, zTunaLpPositionTriggerOrder, zTunaLpPositionTriggerOrderType, zTunaLpPositionValue, zTunaLpPositionsActionType, zTunaLpPositionsStats, zTunaPositionDto, zTunaPositionDtoLockType, zTunaPositionDtoState, zTunaPositionMarketMaker, zTunaPositionPoolToken, zTunaPositionTokenDepositedCollateral, zTunaPositionTokenPnl, zTunaPositionUsdPnl, zTunaSpotPositionDto, zTunaSpotPositionDtoState, zU128Dto, zU64Dto, zUpdateStreamSubscriptionData, zUpdateStreamSubscriptionError404Error, zUpdateStreamSubscriptionError500Error, zUpdateStreamSubscriptionResponse, zValidationErrorCodeErrorBody, zValidationErrorCodeValidationDetailsErrorBody, zVaultDto, zVaultError400BadRequest, zVaultError400Error, zVaultError404Error, zVaultError500Error, zVaultResponse, zVaultStatsDto, zVaultsListResponse, zVestingDto, zWalletSubscription, zWalletSubscriptionTopic };
|
package/dist/index.js
CHANGED
|
@@ -104,6 +104,22 @@ var buildClientParams = (args, fields) => {
|
|
|
104
104
|
};
|
|
105
105
|
|
|
106
106
|
// src/client/transformers.gen.ts
|
|
107
|
+
var createBindChallengeResponseSchemaResponseTransformer = (data) => {
|
|
108
|
+
data.expiresAt = new Date(data.expiresAt);
|
|
109
|
+
return data;
|
|
110
|
+
};
|
|
111
|
+
var createBindChallengeResponseTransformer = async (data) => {
|
|
112
|
+
data.data = createBindChallengeResponseSchemaResponseTransformer(data.data);
|
|
113
|
+
return data;
|
|
114
|
+
};
|
|
115
|
+
var confirmBindResponseSchemaResponseTransformer = (data) => {
|
|
116
|
+
data.boundAt = new Date(data.boundAt);
|
|
117
|
+
return data;
|
|
118
|
+
};
|
|
119
|
+
var confirmBindResponseTransformer = async (data) => {
|
|
120
|
+
data.data = confirmBindResponseSchemaResponseTransformer(data.data);
|
|
121
|
+
return data;
|
|
122
|
+
};
|
|
107
123
|
var u64DtoSchemaResponseTransformer = (data) => {
|
|
108
124
|
data = BigInt(data.toString());
|
|
109
125
|
return data;
|
|
@@ -8682,6 +8698,14 @@ var zBadRequestErrorCodeErrorBody = object({
|
|
|
8682
8698
|
"invalid_body"
|
|
8683
8699
|
])
|
|
8684
8700
|
});
|
|
8701
|
+
var zConfirmBindResponse = object({
|
|
8702
|
+
boundAt: preprocess((value) => value instanceof Date ? value.toISOString() : value, iso_exports.datetime())
|
|
8703
|
+
});
|
|
8704
|
+
var zCreateBindChallengeResponse = object({
|
|
8705
|
+
expiresAt: preprocess((value) => value instanceof Date ? value.toISOString() : value, iso_exports.datetime()),
|
|
8706
|
+
messageB64: string2(),
|
|
8707
|
+
nonce: string2()
|
|
8708
|
+
});
|
|
8685
8709
|
var zFeesStatsGroupDto = object({
|
|
8686
8710
|
addLiquidityFees: number2(),
|
|
8687
8711
|
failedNetworkFees: number2(),
|
|
@@ -8742,6 +8766,30 @@ var zFeeAmountWithUsd = object({
|
|
|
8742
8766
|
var zInternalErrorCodeErrorBody = object({
|
|
8743
8767
|
code: _enum(["internal_error"])
|
|
8744
8768
|
});
|
|
8769
|
+
var zInviteApiError400InvalidBindRequest = object({
|
|
8770
|
+
code: _enum(["invalid_bind_request"])
|
|
8771
|
+
});
|
|
8772
|
+
var zInviteApiError400Error = union([
|
|
8773
|
+
object({
|
|
8774
|
+
code: literal("invalid_bind_request")
|
|
8775
|
+
}).and(zInviteApiError400InvalidBindRequest),
|
|
8776
|
+
object({
|
|
8777
|
+
code: union([
|
|
8778
|
+
literal("invalid_body"),
|
|
8779
|
+
literal("invalid_path"),
|
|
8780
|
+
literal("invalid_query")
|
|
8781
|
+
])
|
|
8782
|
+
}).and(zBadRequestErrorCodeErrorBody)
|
|
8783
|
+
]);
|
|
8784
|
+
var zInviteApiError404Error = object({
|
|
8785
|
+
code: _enum(["invite_code_not_found"])
|
|
8786
|
+
});
|
|
8787
|
+
var zInviteApiError409Error = object({
|
|
8788
|
+
code: _enum(["wallet_already_bound"])
|
|
8789
|
+
});
|
|
8790
|
+
var zInviteApiError500Error = object({
|
|
8791
|
+
code: _enum(["internal_error"])
|
|
8792
|
+
});
|
|
8745
8793
|
var zLeaderboardError400BadRequest = object({
|
|
8746
8794
|
code: _enum(["bad_request"])
|
|
8747
8795
|
});
|
|
@@ -8909,6 +8957,17 @@ var zPoolsError500Error = object({
|
|
|
8909
8957
|
code: _enum(["internal_error"])
|
|
8910
8958
|
});
|
|
8911
8959
|
var zPubkeyDto = string2().regex(/^[1-9A-HJ-NP-Za-km-z]+$/);
|
|
8960
|
+
var zConfirmBindRequest = object({
|
|
8961
|
+
inviteCode: string2().min(3).max(64),
|
|
8962
|
+
messageB64: string2().min(16).max(2048),
|
|
8963
|
+
nonce: string2().min(26).max(64),
|
|
8964
|
+
signatureB64: string2().min(86).max(128),
|
|
8965
|
+
wallet: zPubkeyDto
|
|
8966
|
+
});
|
|
8967
|
+
var zCreateBindChallengeRequest = object({
|
|
8968
|
+
inviteCode: string2().min(3).max(64),
|
|
8969
|
+
wallet: zPubkeyDto
|
|
8970
|
+
});
|
|
8912
8971
|
var zFusionFeesStatsGroupDto = object({
|
|
8913
8972
|
pool: zPubkeyDto,
|
|
8914
8973
|
runningTotalCollectedFees: number2(),
|
|
@@ -10229,6 +10288,22 @@ var zSubscriptionOptions = object({
|
|
|
10229
10288
|
zWalletSubscription
|
|
10230
10289
|
]))
|
|
10231
10290
|
});
|
|
10291
|
+
var zCreateBindChallengeData = object({
|
|
10292
|
+
body: zCreateBindChallengeRequest,
|
|
10293
|
+
path: optional(never()),
|
|
10294
|
+
query: optional(never())
|
|
10295
|
+
});
|
|
10296
|
+
var zCreateBindChallengeResponse2 = object({
|
|
10297
|
+
data: zCreateBindChallengeResponse
|
|
10298
|
+
});
|
|
10299
|
+
var zConfirmBindData = object({
|
|
10300
|
+
body: zConfirmBindRequest,
|
|
10301
|
+
path: optional(never()),
|
|
10302
|
+
query: optional(never())
|
|
10303
|
+
});
|
|
10304
|
+
var zConfirmBindResponse2 = object({
|
|
10305
|
+
data: zConfirmBindResponse
|
|
10306
|
+
});
|
|
10232
10307
|
var zGetLpSpotLeaderboardData = object({
|
|
10233
10308
|
body: optional(never()),
|
|
10234
10309
|
path: optional(never()),
|
|
@@ -10839,6 +10914,44 @@ var _TunaBackendSdk = class _TunaBackendSdk extends HeyApiClient {
|
|
|
10839
10914
|
super(args);
|
|
10840
10915
|
_TunaBackendSdk.__registry.set(this, args?.key);
|
|
10841
10916
|
}
|
|
10917
|
+
/**
|
|
10918
|
+
* Create invite bind challenge
|
|
10919
|
+
*/
|
|
10920
|
+
createBindChallenge(parameters, options) {
|
|
10921
|
+
const params = buildClientParams([parameters], [{ args: [{ key: "createBindChallengeRequest", map: "body" }] }]);
|
|
10922
|
+
return (options?.client ?? this.client).post({
|
|
10923
|
+
requestValidator: async (data) => await zCreateBindChallengeData.parseAsync(data),
|
|
10924
|
+
responseTransformer: createBindChallengeResponseTransformer,
|
|
10925
|
+
responseValidator: async (data) => await zCreateBindChallengeResponse2.parseAsync(data),
|
|
10926
|
+
url: "/v1/invites/bind/challenge",
|
|
10927
|
+
...options,
|
|
10928
|
+
...params,
|
|
10929
|
+
headers: {
|
|
10930
|
+
"Content-Type": "application/json",
|
|
10931
|
+
...options?.headers,
|
|
10932
|
+
...params.headers
|
|
10933
|
+
}
|
|
10934
|
+
});
|
|
10935
|
+
}
|
|
10936
|
+
/**
|
|
10937
|
+
* Confirm invite bind by signature
|
|
10938
|
+
*/
|
|
10939
|
+
confirmBind(parameters, options) {
|
|
10940
|
+
const params = buildClientParams([parameters], [{ args: [{ key: "confirmBindRequest", map: "body" }] }]);
|
|
10941
|
+
return (options?.client ?? this.client).post({
|
|
10942
|
+
requestValidator: async (data) => await zConfirmBindData.parseAsync(data),
|
|
10943
|
+
responseTransformer: confirmBindResponseTransformer,
|
|
10944
|
+
responseValidator: async (data) => await zConfirmBindResponse2.parseAsync(data),
|
|
10945
|
+
url: "/v1/invites/bind/confirm",
|
|
10946
|
+
...options,
|
|
10947
|
+
...params,
|
|
10948
|
+
headers: {
|
|
10949
|
+
"Content-Type": "application/json",
|
|
10950
|
+
...options?.headers,
|
|
10951
|
+
...params.headers
|
|
10952
|
+
}
|
|
10953
|
+
});
|
|
10954
|
+
}
|
|
10842
10955
|
/**
|
|
10843
10956
|
* Request LP and Spot leaderboard
|
|
10844
10957
|
*/
|
|
@@ -11723,6 +11836,14 @@ export {
|
|
|
11723
11836
|
unwrap,
|
|
11724
11837
|
zBadRequestErrorCodeErrorBody,
|
|
11725
11838
|
zCloseSpotPositionQuoteDto,
|
|
11839
|
+
zConfirmBindData,
|
|
11840
|
+
zConfirmBindRequest,
|
|
11841
|
+
zConfirmBindResponse,
|
|
11842
|
+
zConfirmBindResponse2,
|
|
11843
|
+
zCreateBindChallengeData,
|
|
11844
|
+
zCreateBindChallengeRequest,
|
|
11845
|
+
zCreateBindChallengeResponse,
|
|
11846
|
+
zCreateBindChallengeResponse2,
|
|
11726
11847
|
zDecreaseSpotPositionQuoteDto,
|
|
11727
11848
|
zFeeAmountWithUsd,
|
|
11728
11849
|
zFeesStatsGroupDto,
|
|
@@ -11827,6 +11948,11 @@ export {
|
|
|
11827
11948
|
zI64Dto,
|
|
11828
11949
|
zIncreaseSpotPositionQuoteDto,
|
|
11829
11950
|
zInternalErrorCodeErrorBody,
|
|
11951
|
+
zInviteApiError400Error,
|
|
11952
|
+
zInviteApiError400InvalidBindRequest,
|
|
11953
|
+
zInviteApiError404Error,
|
|
11954
|
+
zInviteApiError409Error,
|
|
11955
|
+
zInviteApiError500Error,
|
|
11830
11956
|
zLeaderboardError400BadRequest,
|
|
11831
11957
|
zLeaderboardError400Error,
|
|
11832
11958
|
zLeaderboardError500Error,
|