@polygonlabs/staking-api-client 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/MIGRATION.md +7 -0
- package/README.md +43 -0
- package/dist/generated/@tanstack/react-query.gen.d.ts +1602 -0
- package/dist/generated/@tanstack/react-query.gen.d.ts.map +1 -0
- package/dist/generated/@tanstack/react-query.gen.js +707 -0
- package/dist/generated/@tanstack/react-query.gen.js.map +1 -0
- package/dist/generated/client/client.gen.d.ts +3 -0
- package/dist/generated/client/client.gen.d.ts.map +1 -0
- package/dist/generated/client/client.gen.js +236 -0
- package/dist/generated/client/client.gen.js.map +1 -0
- package/dist/generated/client/index.d.ts +9 -0
- package/dist/generated/client/index.d.ts.map +1 -0
- package/dist/generated/client/index.js +7 -0
- package/dist/generated/client/index.js.map +1 -0
- package/dist/generated/client/types.gen.d.ts +118 -0
- package/dist/generated/client/types.gen.d.ts.map +1 -0
- package/dist/generated/client/types.gen.js +3 -0
- package/dist/generated/client/types.gen.js.map +1 -0
- package/dist/generated/client/utils.gen.d.ts +34 -0
- package/dist/generated/client/utils.gen.d.ts.map +1 -0
- package/dist/generated/client/utils.gen.js +229 -0
- package/dist/generated/client/utils.gen.js.map +1 -0
- package/dist/generated/client.gen.d.ts +13 -0
- package/dist/generated/client.gen.d.ts.map +1 -0
- package/dist/generated/client.gen.js +4 -0
- package/dist/generated/client.gen.js.map +1 -0
- package/dist/generated/core/auth.gen.d.ts +19 -0
- package/dist/generated/core/auth.gen.d.ts.map +1 -0
- package/dist/generated/core/auth.gen.js +15 -0
- package/dist/generated/core/auth.gen.js.map +1 -0
- package/dist/generated/core/bodySerializer.gen.d.ts +26 -0
- package/dist/generated/core/bodySerializer.gen.d.ts.map +1 -0
- package/dist/generated/core/bodySerializer.gen.js +58 -0
- package/dist/generated/core/bodySerializer.gen.js.map +1 -0
- package/dist/generated/core/params.gen.d.ts +44 -0
- package/dist/generated/core/params.gen.d.ts.map +1 -0
- package/dist/generated/core/params.gen.js +101 -0
- package/dist/generated/core/params.gen.js.map +1 -0
- package/dist/generated/core/pathSerializer.gen.d.ts +34 -0
- package/dist/generated/core/pathSerializer.gen.d.ts.map +1 -0
- package/dist/generated/core/pathSerializer.gen.js +107 -0
- package/dist/generated/core/pathSerializer.gen.js.map +1 -0
- package/dist/generated/core/queryKeySerializer.gen.d.ts +19 -0
- package/dist/generated/core/queryKeySerializer.gen.d.ts.map +1 -0
- package/dist/generated/core/queryKeySerializer.gen.js +93 -0
- package/dist/generated/core/queryKeySerializer.gen.js.map +1 -0
- package/dist/generated/core/serverSentEvents.gen.d.ts +72 -0
- package/dist/generated/core/serverSentEvents.gen.d.ts.map +1 -0
- package/dist/generated/core/serverSentEvents.gen.js +134 -0
- package/dist/generated/core/serverSentEvents.gen.js.map +1 -0
- package/dist/generated/core/types.gen.d.ts +79 -0
- package/dist/generated/core/types.gen.d.ts.map +1 -0
- package/dist/generated/core/types.gen.js +3 -0
- package/dist/generated/core/types.gen.js.map +1 -0
- package/dist/generated/core/utils.gen.d.ts +20 -0
- package/dist/generated/core/utils.gen.d.ts.map +1 -0
- package/dist/generated/core/utils.gen.js +88 -0
- package/dist/generated/core/utils.gen.js.map +1 -0
- package/dist/generated/index.d.ts +4 -0
- package/dist/generated/index.d.ts.map +1 -0
- package/dist/generated/index.js +5 -0
- package/dist/generated/index.js.map +1 -0
- package/dist/generated/registry-validator.gen.d.ts +781 -0
- package/dist/generated/registry-validator.gen.d.ts.map +1 -0
- package/dist/generated/registry-validator.gen.js +1296 -0
- package/dist/generated/registry-validator.gen.js.map +1 -0
- package/dist/generated/sdk.gen.d.ts +151 -0
- package/dist/generated/sdk.gen.d.ts.map +1 -0
- package/dist/generated/sdk.gen.js +281 -0
- package/dist/generated/sdk.gen.js.map +1 -0
- package/dist/generated/types.gen.d.ts +994 -0
- package/dist/generated/types.gen.d.ts.map +1 -0
- package/dist/generated/types.gen.js +3 -0
- package/dist/generated/types.gen.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/react.d.ts +2 -0
- package/dist/react.d.ts.map +1 -0
- package/dist/react.js +6 -0
- package/dist/react.js.map +1 -0
- package/dist/tsconfig.lib.tsbuildinfo +1 -0
- package/package.json +70 -0
|
@@ -0,0 +1,781 @@
|
|
|
1
|
+
import { AddValidatorV2Body, AdminUpsertValidatorProfileBody, AdminValidatorProfileResponse, CheckpointsSignedV3Response, DelegationsByUserV3Response, DelegatorsListV3Response, DelegatorUnbondsV3Response, ErrorResponse, GetAllNotificationsQuery, GetAllValidatorsV2Query, GetAllValidatorsV3Query, GetAllValidatorsV3Response, GetValidatorV3Response, LoginV3Response, NotificationArrayResponse, SummaryV3Response, UpdateValidatorV2Body, V2DelegatorArrayResponse, V2DelegatorObjectResponse, V2MonitorResponse, V2RewardsResponse, V2ValidatorArrayResponse, V2ValidatorObjectResponse, ValidationErrorResponse } from '@polygonlabs/staking-api-schemas';
|
|
2
|
+
import { z, type ZodError } from 'zod';
|
|
3
|
+
import { type Options } from './sdk.gen.js';
|
|
4
|
+
import type { AddValidatorV2Data, AdminUpsertValidatorProfileData, GetAllDelegatorsV2Data, GetAllDelegatorsV3Data, GetAllNotificationsV2Data, GetAllNotificationsV3Data, GetAllValidatorsV2Data, GetAllValidatorsV3Data, GetCheckpointIntervalV2Data, GetCheckpointsSignedByValidatorV2Data, GetCheckpointsSignedByValidatorV3Data, GetCommissionedRewardV2Data, GetCurrentAprV2Data, GetDelegationsByUserV2Data, GetDelegationsByUserV3Data, GetDelegatorUnbondsV2Data, GetDelegatorUnbondsV3Data, GetMissedCheckpointsByAllValidatorsV2Data, GetPerformanceBenchmarkV2Data, GetRewardsSummaryV2Data, GetSignerAddressListForCheckpointNumberV2Data, GetSignerAddressListForLatestCheckpointV2Data, GetSignerEthBalancesV2Data, GetSummaryV3Data, GetTotalStakedV2Data, GetUserLoginV3Data, GetValidatorByAddressV2Data, GetValidatorDelegatorsV2Data, GetValidatorDelegatorsV3Data, GetValidatorV2Data, GetValidatorV3Data, UpdateValidatorV2Data } from './types.gen.js';
|
|
5
|
+
export type AdminUpsertValidatorProfileResponses = {
|
|
6
|
+
200: z.output<typeof AdminValidatorProfileResponse>;
|
|
7
|
+
};
|
|
8
|
+
export type AdminUpsertValidatorProfileResponse = AdminUpsertValidatorProfileResponses[keyof AdminUpsertValidatorProfileResponses];
|
|
9
|
+
export type AdminUpsertValidatorProfileErrors = {
|
|
10
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
11
|
+
401: z.output<typeof ErrorResponse>;
|
|
12
|
+
500: z.output<typeof ErrorResponse>;
|
|
13
|
+
};
|
|
14
|
+
export type AdminUpsertValidatorProfileError = AdminUpsertValidatorProfileErrors[keyof AdminUpsertValidatorProfileErrors];
|
|
15
|
+
export declare const adminUpsertValidatorProfileTransformer: (data: unknown) => Promise<z.output<typeof AdminValidatorProfileResponse>>;
|
|
16
|
+
export declare const adminUpsertValidatorProfileErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
17
|
+
/**
|
|
18
|
+
* @internal — emitted by `@polygonlabs/zod-to-openapi-heyapi`. Do not
|
|
19
|
+
* instantiate from consumer code; the wrapper constructs these in
|
|
20
|
+
* response to fetch transport rejections (DNS / abort / `ECONNRESET`).
|
|
21
|
+
* Narrow via the emitted `isTransportError` type-predicate guard.
|
|
22
|
+
*/
|
|
23
|
+
export declare class TransportError extends Error {
|
|
24
|
+
readonly cause: Error;
|
|
25
|
+
constructor(cause: Error);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* @internal — emitted by `@polygonlabs/zod-to-openapi-heyapi`. Do not
|
|
29
|
+
* instantiate from consumer code; the wrapper constructs these when
|
|
30
|
+
* `parseAsync` rejects an HTTP error body that did not match any
|
|
31
|
+
* registered error schema. `cause` carries the `ZodError` issues;
|
|
32
|
+
* `body` is the original wire body for debugging schema drift.
|
|
33
|
+
* Narrow via the emitted `isResponseValidationError` type-predicate guard.
|
|
34
|
+
*/
|
|
35
|
+
export declare class ResponseValidationError extends Error {
|
|
36
|
+
readonly cause: ZodError;
|
|
37
|
+
readonly body: unknown;
|
|
38
|
+
constructor(cause: ZodError, body: unknown);
|
|
39
|
+
}
|
|
40
|
+
export declare const isTransportError: (value: unknown) => value is TransportError;
|
|
41
|
+
export declare const isResponseValidationError: (value: unknown) => value is ResponseValidationError;
|
|
42
|
+
export declare const isWrapperError: (value: unknown) => value is TransportError | ResponseValidationError;
|
|
43
|
+
export type WrapErrors<TData, TError, ThrowOnError extends boolean, TResponseStyle extends "fields" | "data" = 'fields'> = Promise<ThrowOnError extends true ? TResponseStyle extends "data" ? TData extends Record<string, unknown> ? TData[keyof TData] : TData : {
|
|
44
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
45
|
+
request: Request;
|
|
46
|
+
response: Response;
|
|
47
|
+
} : TResponseStyle extends "data" ? (TData extends Record<string, unknown> ? TData[keyof TData] : TData) | undefined : ({
|
|
48
|
+
data: TData extends Record<string, unknown> ? TData[keyof TData] : TData;
|
|
49
|
+
error: undefined;
|
|
50
|
+
} | {
|
|
51
|
+
data: undefined;
|
|
52
|
+
error: (TError extends Record<string, unknown> ? TError[keyof TError] : TError) | TransportError | ResponseValidationError;
|
|
53
|
+
}) & {
|
|
54
|
+
request: Request;
|
|
55
|
+
response: Response;
|
|
56
|
+
}>;
|
|
57
|
+
export type AdminUpsertValidatorProfileInput = Omit<AdminUpsertValidatorProfileData, 'body'> & {
|
|
58
|
+
body?: z.output<typeof AdminUpsertValidatorProfileBody>;
|
|
59
|
+
};
|
|
60
|
+
export declare const adminUpsertValidatorProfileInputTransformer: (input: Pick<AdminUpsertValidatorProfileInput, "body">) => Promise<{
|
|
61
|
+
body?: {
|
|
62
|
+
owner: string;
|
|
63
|
+
name?: string | undefined;
|
|
64
|
+
description?: string | undefined;
|
|
65
|
+
logoUrl?: string | undefined;
|
|
66
|
+
validatorUrl?: string | undefined;
|
|
67
|
+
} | undefined;
|
|
68
|
+
}>;
|
|
69
|
+
export declare const adminUpsertValidatorProfile: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<AdminUpsertValidatorProfileInput, ThrowOnError>) => WrapErrors<AdminUpsertValidatorProfileResponses, AdminUpsertValidatorProfileErrors, ThrowOnError, TResponseStyle>;
|
|
70
|
+
export type QueryKey<TOptions extends Options> = [
|
|
71
|
+
Pick<TOptions, 'baseUrl' | 'body' | 'headers' | 'path' | 'query'> & {
|
|
72
|
+
_id: string;
|
|
73
|
+
}
|
|
74
|
+
];
|
|
75
|
+
export declare const adminUpsertValidatorProfileQueryKey: (options?: Options<AdminUpsertValidatorProfileInput>) => [Pick<Options<AdminUpsertValidatorProfileData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
76
|
+
_id: string;
|
|
77
|
+
}];
|
|
78
|
+
export declare const adminUpsertValidatorProfileOptions: (options?: Options<AdminUpsertValidatorProfileInput>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
79
|
+
[x: string]: unknown;
|
|
80
|
+
success: boolean;
|
|
81
|
+
result?: unknown;
|
|
82
|
+
error?: string | undefined;
|
|
83
|
+
}, AdminUpsertValidatorProfileError, {
|
|
84
|
+
[x: string]: unknown;
|
|
85
|
+
success: boolean;
|
|
86
|
+
result?: unknown;
|
|
87
|
+
error?: string | undefined;
|
|
88
|
+
}, [Pick<Options<AdminUpsertValidatorProfileData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
89
|
+
_id: string;
|
|
90
|
+
}]>, "queryFn"> & {
|
|
91
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
92
|
+
[x: string]: unknown;
|
|
93
|
+
success: boolean;
|
|
94
|
+
result?: unknown;
|
|
95
|
+
error?: string | undefined;
|
|
96
|
+
}, [Pick<Options<AdminUpsertValidatorProfileData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
97
|
+
_id: string;
|
|
98
|
+
}], never> | undefined;
|
|
99
|
+
} & {
|
|
100
|
+
queryKey: [Pick<Options<AdminUpsertValidatorProfileData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
101
|
+
_id: string;
|
|
102
|
+
}] & {
|
|
103
|
+
[dataTagSymbol]: {
|
|
104
|
+
[x: string]: unknown;
|
|
105
|
+
success: boolean;
|
|
106
|
+
result?: unknown;
|
|
107
|
+
error?: string | undefined;
|
|
108
|
+
};
|
|
109
|
+
[dataTagErrorSymbol]: AdminUpsertValidatorProfileError;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
export type GetAllValidatorsV3Responses = {
|
|
113
|
+
200: z.output<typeof GetAllValidatorsV3Response>;
|
|
114
|
+
};
|
|
115
|
+
export type GetAllValidatorsV3Response = GetAllValidatorsV3Responses[keyof GetAllValidatorsV3Responses];
|
|
116
|
+
export type GetAllValidatorsV3Errors = {
|
|
117
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
118
|
+
500: z.output<typeof ErrorResponse>;
|
|
119
|
+
};
|
|
120
|
+
export type GetAllValidatorsV3Error = GetAllValidatorsV3Errors[keyof GetAllValidatorsV3Errors];
|
|
121
|
+
export declare const getAllValidatorsV3Transformer: (data: unknown) => Promise<z.output<typeof GetAllValidatorsV3Response>>;
|
|
122
|
+
export declare const getAllValidatorsV3ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
123
|
+
export type GetAllValidatorsV3Input = Omit<GetAllValidatorsV3Data, 'query'> & {
|
|
124
|
+
query?: z.output<typeof GetAllValidatorsV3Query>;
|
|
125
|
+
};
|
|
126
|
+
export declare const getAllValidatorsV3InputTransformer: (input: Pick<GetAllValidatorsV3Input, "query">) => Promise<{
|
|
127
|
+
query?: {
|
|
128
|
+
offset?: unknown;
|
|
129
|
+
limit?: unknown;
|
|
130
|
+
sortBy?: string | undefined;
|
|
131
|
+
searchStr?: string | undefined;
|
|
132
|
+
inAuction?: string | undefined;
|
|
133
|
+
moveStakeEnabled?: string | undefined;
|
|
134
|
+
allValidators?: string | undefined;
|
|
135
|
+
} | undefined;
|
|
136
|
+
}>;
|
|
137
|
+
export declare const getAllValidatorsV3: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetAllValidatorsV3Input, ThrowOnError>) => WrapErrors<GetAllValidatorsV3Responses, GetAllValidatorsV3Errors, ThrowOnError, TResponseStyle>;
|
|
138
|
+
export declare const getAllValidatorsV3QueryKey: (options?: Options<GetAllValidatorsV3Input>) => [Pick<Options<GetAllValidatorsV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
139
|
+
_id: string;
|
|
140
|
+
}];
|
|
141
|
+
export declare const getAllValidatorsV3Options: (options?: Options<GetAllValidatorsV3Input>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
142
|
+
[x: string]: unknown;
|
|
143
|
+
success: boolean;
|
|
144
|
+
result?: {
|
|
145
|
+
[x: string]: unknown;
|
|
146
|
+
}[] | undefined;
|
|
147
|
+
error?: string | undefined;
|
|
148
|
+
}, GetAllValidatorsV3Error, {
|
|
149
|
+
[x: string]: unknown;
|
|
150
|
+
success: boolean;
|
|
151
|
+
result?: {
|
|
152
|
+
[x: string]: unknown;
|
|
153
|
+
}[] | undefined;
|
|
154
|
+
error?: string | undefined;
|
|
155
|
+
}, [Pick<Options<GetAllValidatorsV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
156
|
+
_id: string;
|
|
157
|
+
}]>, "queryFn"> & {
|
|
158
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
159
|
+
[x: string]: unknown;
|
|
160
|
+
success: boolean;
|
|
161
|
+
result?: {
|
|
162
|
+
[x: string]: unknown;
|
|
163
|
+
}[] | undefined;
|
|
164
|
+
error?: string | undefined;
|
|
165
|
+
}, [Pick<Options<GetAllValidatorsV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
166
|
+
_id: string;
|
|
167
|
+
}], never> | undefined;
|
|
168
|
+
} & {
|
|
169
|
+
queryKey: [Pick<Options<GetAllValidatorsV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
170
|
+
_id: string;
|
|
171
|
+
}] & {
|
|
172
|
+
[dataTagSymbol]: {
|
|
173
|
+
[x: string]: unknown;
|
|
174
|
+
success: boolean;
|
|
175
|
+
result?: {
|
|
176
|
+
[x: string]: unknown;
|
|
177
|
+
}[] | undefined;
|
|
178
|
+
error?: string | undefined;
|
|
179
|
+
};
|
|
180
|
+
[dataTagErrorSymbol]: GetAllValidatorsV3Error;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
export type GetValidatorV3Responses = {
|
|
184
|
+
200: z.output<typeof GetValidatorV3Response>;
|
|
185
|
+
};
|
|
186
|
+
export type GetValidatorV3Response = GetValidatorV3Responses[keyof GetValidatorV3Responses];
|
|
187
|
+
export type GetValidatorV3Errors = {
|
|
188
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
189
|
+
500: z.output<typeof ErrorResponse>;
|
|
190
|
+
};
|
|
191
|
+
export type GetValidatorV3Error = GetValidatorV3Errors[keyof GetValidatorV3Errors];
|
|
192
|
+
export declare const getValidatorV3Transformer: (data: unknown) => Promise<z.output<typeof GetValidatorV3Response>>;
|
|
193
|
+
export declare const getValidatorV3ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
194
|
+
export declare const getValidatorV3: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options: Options<GetValidatorV3Data, ThrowOnError>) => WrapErrors<GetValidatorV3Responses, GetValidatorV3Errors, ThrowOnError, TResponseStyle>;
|
|
195
|
+
export type GetCheckpointsSignedByValidatorV3Responses = {
|
|
196
|
+
200: z.output<typeof CheckpointsSignedV3Response>;
|
|
197
|
+
};
|
|
198
|
+
export type GetCheckpointsSignedByValidatorV3Response = GetCheckpointsSignedByValidatorV3Responses[keyof GetCheckpointsSignedByValidatorV3Responses];
|
|
199
|
+
export type GetCheckpointsSignedByValidatorV3Errors = {
|
|
200
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
201
|
+
500: z.output<typeof ErrorResponse>;
|
|
202
|
+
};
|
|
203
|
+
export type GetCheckpointsSignedByValidatorV3Error = GetCheckpointsSignedByValidatorV3Errors[keyof GetCheckpointsSignedByValidatorV3Errors];
|
|
204
|
+
export declare const getCheckpointsSignedByValidatorV3Transformer: (data: unknown) => Promise<z.output<typeof CheckpointsSignedV3Response>>;
|
|
205
|
+
export declare const getCheckpointsSignedByValidatorV3ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
206
|
+
export declare const getCheckpointsSignedByValidatorV3: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options: Options<GetCheckpointsSignedByValidatorV3Data, ThrowOnError>) => WrapErrors<GetCheckpointsSignedByValidatorV3Responses, GetCheckpointsSignedByValidatorV3Errors, ThrowOnError, TResponseStyle>;
|
|
207
|
+
export type GetAllDelegatorsV3Responses = {
|
|
208
|
+
200: z.output<typeof DelegatorsListV3Response>;
|
|
209
|
+
};
|
|
210
|
+
export type GetAllDelegatorsV3Response = GetAllDelegatorsV3Responses[keyof GetAllDelegatorsV3Responses];
|
|
211
|
+
export type GetAllDelegatorsV3Errors = {
|
|
212
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
213
|
+
500: z.output<typeof ErrorResponse>;
|
|
214
|
+
};
|
|
215
|
+
export type GetAllDelegatorsV3Error = GetAllDelegatorsV3Errors[keyof GetAllDelegatorsV3Errors];
|
|
216
|
+
export declare const getAllDelegatorsV3Transformer: (data: unknown) => Promise<z.output<typeof DelegatorsListV3Response>>;
|
|
217
|
+
export declare const getAllDelegatorsV3ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
218
|
+
export declare const getAllDelegatorsV3: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetAllDelegatorsV3Data, ThrowOnError>) => WrapErrors<GetAllDelegatorsV3Responses, GetAllDelegatorsV3Errors, ThrowOnError, TResponseStyle>;
|
|
219
|
+
export type GetDelegationsByUserV3Responses = {
|
|
220
|
+
200: z.output<typeof DelegationsByUserV3Response>;
|
|
221
|
+
};
|
|
222
|
+
export type GetDelegationsByUserV3Response = GetDelegationsByUserV3Responses[keyof GetDelegationsByUserV3Responses];
|
|
223
|
+
export type GetDelegationsByUserV3Errors = {
|
|
224
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
225
|
+
500: z.output<typeof ErrorResponse>;
|
|
226
|
+
};
|
|
227
|
+
export type GetDelegationsByUserV3Error = GetDelegationsByUserV3Errors[keyof GetDelegationsByUserV3Errors];
|
|
228
|
+
export declare const getDelegationsByUserV3Transformer: (data: unknown) => Promise<z.output<typeof DelegationsByUserV3Response>>;
|
|
229
|
+
export declare const getDelegationsByUserV3ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
230
|
+
export declare const getDelegationsByUserV3: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options: Options<GetDelegationsByUserV3Data, ThrowOnError>) => WrapErrors<GetDelegationsByUserV3Responses, GetDelegationsByUserV3Errors, ThrowOnError, TResponseStyle>;
|
|
231
|
+
export type GetDelegatorUnbondsV3Responses = {
|
|
232
|
+
200: z.output<typeof DelegatorUnbondsV3Response>;
|
|
233
|
+
};
|
|
234
|
+
export type GetDelegatorUnbondsV3Response = GetDelegatorUnbondsV3Responses[keyof GetDelegatorUnbondsV3Responses];
|
|
235
|
+
export type GetDelegatorUnbondsV3Errors = {
|
|
236
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
237
|
+
500: z.output<typeof ErrorResponse>;
|
|
238
|
+
};
|
|
239
|
+
export type GetDelegatorUnbondsV3Error = GetDelegatorUnbondsV3Errors[keyof GetDelegatorUnbondsV3Errors];
|
|
240
|
+
export declare const getDelegatorUnbondsV3Transformer: (data: unknown) => Promise<z.output<typeof DelegatorUnbondsV3Response>>;
|
|
241
|
+
export declare const getDelegatorUnbondsV3ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
242
|
+
export declare const getDelegatorUnbondsV3: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options: Options<GetDelegatorUnbondsV3Data, ThrowOnError>) => WrapErrors<GetDelegatorUnbondsV3Responses, GetDelegatorUnbondsV3Errors, ThrowOnError, TResponseStyle>;
|
|
243
|
+
export type GetValidatorDelegatorsV3Responses = {
|
|
244
|
+
200: z.output<typeof DelegatorsListV3Response>;
|
|
245
|
+
};
|
|
246
|
+
export type GetValidatorDelegatorsV3Response = GetValidatorDelegatorsV3Responses[keyof GetValidatorDelegatorsV3Responses];
|
|
247
|
+
export type GetValidatorDelegatorsV3Errors = {
|
|
248
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
249
|
+
500: z.output<typeof ErrorResponse>;
|
|
250
|
+
};
|
|
251
|
+
export type GetValidatorDelegatorsV3Error = GetValidatorDelegatorsV3Errors[keyof GetValidatorDelegatorsV3Errors];
|
|
252
|
+
export declare const getValidatorDelegatorsV3Transformer: (data: unknown) => Promise<z.output<typeof DelegatorsListV3Response>>;
|
|
253
|
+
export declare const getValidatorDelegatorsV3ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
254
|
+
export declare const getValidatorDelegatorsV3: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options: Options<GetValidatorDelegatorsV3Data, ThrowOnError>) => WrapErrors<GetValidatorDelegatorsV3Responses, GetValidatorDelegatorsV3Errors, ThrowOnError, TResponseStyle>;
|
|
255
|
+
export type GetSummaryV3Responses = {
|
|
256
|
+
200: z.output<typeof SummaryV3Response>;
|
|
257
|
+
};
|
|
258
|
+
export type GetSummaryV3Response = GetSummaryV3Responses[keyof GetSummaryV3Responses];
|
|
259
|
+
export type GetSummaryV3Errors = {
|
|
260
|
+
500: z.output<typeof ErrorResponse>;
|
|
261
|
+
};
|
|
262
|
+
export type GetSummaryV3Error = GetSummaryV3Errors[keyof GetSummaryV3Errors];
|
|
263
|
+
export declare const getSummaryV3Transformer: (data: unknown) => Promise<z.output<typeof SummaryV3Response>>;
|
|
264
|
+
export declare const getSummaryV3ErrorTransformer: (data: unknown) => Promise<z.output<typeof ErrorResponse>>;
|
|
265
|
+
export declare const getSummaryV3: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetSummaryV3Data, ThrowOnError>) => WrapErrors<GetSummaryV3Responses, GetSummaryV3Errors, ThrowOnError, TResponseStyle>;
|
|
266
|
+
export type GetUserLoginV3Responses = {
|
|
267
|
+
200: z.output<typeof LoginV3Response>;
|
|
268
|
+
};
|
|
269
|
+
export type GetUserLoginV3Response = GetUserLoginV3Responses[keyof GetUserLoginV3Responses];
|
|
270
|
+
export type GetUserLoginV3Errors = {
|
|
271
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
272
|
+
500: z.output<typeof ErrorResponse>;
|
|
273
|
+
};
|
|
274
|
+
export type GetUserLoginV3Error = GetUserLoginV3Errors[keyof GetUserLoginV3Errors];
|
|
275
|
+
export declare const getUserLoginV3Transformer: (data: unknown) => Promise<z.output<typeof LoginV3Response>>;
|
|
276
|
+
export declare const getUserLoginV3ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
277
|
+
export declare const getUserLoginV3: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetUserLoginV3Data, ThrowOnError>) => WrapErrors<GetUserLoginV3Responses, GetUserLoginV3Errors, ThrowOnError, TResponseStyle>;
|
|
278
|
+
export type GetAllValidatorsV2Responses = {
|
|
279
|
+
200: z.output<typeof V2ValidatorArrayResponse>;
|
|
280
|
+
};
|
|
281
|
+
export type GetAllValidatorsV2Response = GetAllValidatorsV2Responses[keyof GetAllValidatorsV2Responses];
|
|
282
|
+
export type GetAllValidatorsV2Errors = {
|
|
283
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
284
|
+
500: z.output<typeof ErrorResponse>;
|
|
285
|
+
};
|
|
286
|
+
export type GetAllValidatorsV2Error = GetAllValidatorsV2Errors[keyof GetAllValidatorsV2Errors];
|
|
287
|
+
export declare const getAllValidatorsV2Transformer: (data: unknown) => Promise<z.output<typeof V2ValidatorArrayResponse>>;
|
|
288
|
+
export declare const getAllValidatorsV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
289
|
+
export type GetAllValidatorsV2Input = Omit<GetAllValidatorsV2Data, 'query'> & {
|
|
290
|
+
query?: z.output<typeof GetAllValidatorsV2Query>;
|
|
291
|
+
};
|
|
292
|
+
export declare const getAllValidatorsV2InputTransformer: (input: Pick<GetAllValidatorsV2Input, "query">) => Promise<{
|
|
293
|
+
query?: {
|
|
294
|
+
offset?: unknown;
|
|
295
|
+
limit?: unknown;
|
|
296
|
+
sortBy?: string | undefined;
|
|
297
|
+
searchStr?: string | undefined;
|
|
298
|
+
moveStakeEnabled?: string | undefined;
|
|
299
|
+
} | undefined;
|
|
300
|
+
}>;
|
|
301
|
+
export declare const getAllValidatorsV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetAllValidatorsV2Input, ThrowOnError>) => WrapErrors<GetAllValidatorsV2Responses, GetAllValidatorsV2Errors, ThrowOnError, TResponseStyle>;
|
|
302
|
+
export declare const getAllValidatorsV2QueryKey: (options?: Options<GetAllValidatorsV2Input>) => [Pick<Options<GetAllValidatorsV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
303
|
+
_id: string;
|
|
304
|
+
}];
|
|
305
|
+
export declare const getAllValidatorsV2Options: (options?: Options<GetAllValidatorsV2Input>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
306
|
+
[x: string]: unknown;
|
|
307
|
+
success: boolean;
|
|
308
|
+
result?: unknown[] | undefined;
|
|
309
|
+
error?: string | undefined;
|
|
310
|
+
}, GetAllValidatorsV2Error, {
|
|
311
|
+
[x: string]: unknown;
|
|
312
|
+
success: boolean;
|
|
313
|
+
result?: unknown[] | undefined;
|
|
314
|
+
error?: string | undefined;
|
|
315
|
+
}, [Pick<Options<GetAllValidatorsV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
316
|
+
_id: string;
|
|
317
|
+
}]>, "queryFn"> & {
|
|
318
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
319
|
+
[x: string]: unknown;
|
|
320
|
+
success: boolean;
|
|
321
|
+
result?: unknown[] | undefined;
|
|
322
|
+
error?: string | undefined;
|
|
323
|
+
}, [Pick<Options<GetAllValidatorsV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
324
|
+
_id: string;
|
|
325
|
+
}], never> | undefined;
|
|
326
|
+
} & {
|
|
327
|
+
queryKey: [Pick<Options<GetAllValidatorsV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
328
|
+
_id: string;
|
|
329
|
+
}] & {
|
|
330
|
+
[dataTagSymbol]: {
|
|
331
|
+
[x: string]: unknown;
|
|
332
|
+
success: boolean;
|
|
333
|
+
result?: unknown[] | undefined;
|
|
334
|
+
error?: string | undefined;
|
|
335
|
+
};
|
|
336
|
+
[dataTagErrorSymbol]: GetAllValidatorsV2Error;
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
export type GetTotalStakedV2Responses = {
|
|
340
|
+
200: z.output<typeof V2ValidatorObjectResponse>;
|
|
341
|
+
};
|
|
342
|
+
export type GetTotalStakedV2Response = GetTotalStakedV2Responses[keyof GetTotalStakedV2Responses];
|
|
343
|
+
export type GetTotalStakedV2Errors = {
|
|
344
|
+
500: z.output<typeof ErrorResponse>;
|
|
345
|
+
};
|
|
346
|
+
export type GetTotalStakedV2Error = GetTotalStakedV2Errors[keyof GetTotalStakedV2Errors];
|
|
347
|
+
export declare const getTotalStakedV2Transformer: (data: unknown) => Promise<z.output<typeof V2ValidatorObjectResponse>>;
|
|
348
|
+
export declare const getTotalStakedV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ErrorResponse>>;
|
|
349
|
+
export declare const getTotalStakedV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetTotalStakedV2Data, ThrowOnError>) => WrapErrors<GetTotalStakedV2Responses, GetTotalStakedV2Errors, ThrowOnError, TResponseStyle>;
|
|
350
|
+
export type GetValidatorByAddressV2Responses = {
|
|
351
|
+
200: z.output<typeof V2ValidatorObjectResponse>;
|
|
352
|
+
};
|
|
353
|
+
export type GetValidatorByAddressV2Response = GetValidatorByAddressV2Responses[keyof GetValidatorByAddressV2Responses];
|
|
354
|
+
export type GetValidatorByAddressV2Errors = {
|
|
355
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
356
|
+
500: z.output<typeof ErrorResponse>;
|
|
357
|
+
};
|
|
358
|
+
export type GetValidatorByAddressV2Error = GetValidatorByAddressV2Errors[keyof GetValidatorByAddressV2Errors];
|
|
359
|
+
export declare const getValidatorByAddressV2Transformer: (data: unknown) => Promise<z.output<typeof V2ValidatorObjectResponse>>;
|
|
360
|
+
export declare const getValidatorByAddressV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
361
|
+
export declare const getValidatorByAddressV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options: Options<GetValidatorByAddressV2Data, ThrowOnError>) => WrapErrors<GetValidatorByAddressV2Responses, GetValidatorByAddressV2Errors, ThrowOnError, TResponseStyle>;
|
|
362
|
+
export type GetCheckpointsSignedByValidatorV2Responses = {
|
|
363
|
+
200: z.output<typeof V2ValidatorArrayResponse>;
|
|
364
|
+
};
|
|
365
|
+
export type GetCheckpointsSignedByValidatorV2Response = GetCheckpointsSignedByValidatorV2Responses[keyof GetCheckpointsSignedByValidatorV2Responses];
|
|
366
|
+
export type GetCheckpointsSignedByValidatorV2Errors = {
|
|
367
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
368
|
+
500: z.output<typeof ErrorResponse>;
|
|
369
|
+
};
|
|
370
|
+
export type GetCheckpointsSignedByValidatorV2Error = GetCheckpointsSignedByValidatorV2Errors[keyof GetCheckpointsSignedByValidatorV2Errors];
|
|
371
|
+
export declare const getCheckpointsSignedByValidatorV2Transformer: (data: unknown) => Promise<z.output<typeof V2ValidatorArrayResponse>>;
|
|
372
|
+
export declare const getCheckpointsSignedByValidatorV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
373
|
+
export declare const getCheckpointsSignedByValidatorV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options: Options<GetCheckpointsSignedByValidatorV2Data, ThrowOnError>) => WrapErrors<GetCheckpointsSignedByValidatorV2Responses, GetCheckpointsSignedByValidatorV2Errors, ThrowOnError, TResponseStyle>;
|
|
374
|
+
export type GetCommissionedRewardV2Responses = {
|
|
375
|
+
200: z.output<typeof V2ValidatorObjectResponse>;
|
|
376
|
+
};
|
|
377
|
+
export type GetCommissionedRewardV2Response = GetCommissionedRewardV2Responses[keyof GetCommissionedRewardV2Responses];
|
|
378
|
+
export type GetCommissionedRewardV2Errors = {
|
|
379
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
380
|
+
500: z.output<typeof ErrorResponse>;
|
|
381
|
+
};
|
|
382
|
+
export type GetCommissionedRewardV2Error = GetCommissionedRewardV2Errors[keyof GetCommissionedRewardV2Errors];
|
|
383
|
+
export declare const getCommissionedRewardV2Transformer: (data: unknown) => Promise<z.output<typeof V2ValidatorObjectResponse>>;
|
|
384
|
+
export declare const getCommissionedRewardV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
385
|
+
export declare const getCommissionedRewardV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options: Options<GetCommissionedRewardV2Data, ThrowOnError>) => WrapErrors<GetCommissionedRewardV2Responses, GetCommissionedRewardV2Errors, ThrowOnError, TResponseStyle>;
|
|
386
|
+
export type GetValidatorV2Responses = {
|
|
387
|
+
200: z.output<typeof V2ValidatorObjectResponse>;
|
|
388
|
+
};
|
|
389
|
+
export type GetValidatorV2Response = GetValidatorV2Responses[keyof GetValidatorV2Responses];
|
|
390
|
+
export type GetValidatorV2Errors = {
|
|
391
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
392
|
+
500: z.output<typeof ErrorResponse>;
|
|
393
|
+
};
|
|
394
|
+
export type GetValidatorV2Error = GetValidatorV2Errors[keyof GetValidatorV2Errors];
|
|
395
|
+
export declare const getValidatorV2Transformer: (data: unknown) => Promise<z.output<typeof V2ValidatorObjectResponse>>;
|
|
396
|
+
export declare const getValidatorV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
397
|
+
export declare const getValidatorV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options: Options<GetValidatorV2Data, ThrowOnError>) => WrapErrors<GetValidatorV2Responses, GetValidatorV2Errors, ThrowOnError, TResponseStyle>;
|
|
398
|
+
export type AddValidatorV2Responses = {
|
|
399
|
+
200: z.output<typeof V2ValidatorObjectResponse>;
|
|
400
|
+
};
|
|
401
|
+
export type AddValidatorV2Response = AddValidatorV2Responses[keyof AddValidatorV2Responses];
|
|
402
|
+
export type AddValidatorV2Errors = {
|
|
403
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
404
|
+
401: z.output<typeof ErrorResponse>;
|
|
405
|
+
500: z.output<typeof ErrorResponse>;
|
|
406
|
+
};
|
|
407
|
+
export type AddValidatorV2Error = AddValidatorV2Errors[keyof AddValidatorV2Errors];
|
|
408
|
+
export declare const addValidatorV2Transformer: (data: unknown) => Promise<z.output<typeof V2ValidatorObjectResponse>>;
|
|
409
|
+
export declare const addValidatorV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
410
|
+
export type AddValidatorV2Input = Omit<AddValidatorV2Data, 'body'> & {
|
|
411
|
+
body?: z.output<typeof AddValidatorV2Body>;
|
|
412
|
+
};
|
|
413
|
+
export declare const addValidatorV2InputTransformer: (input: Pick<AddValidatorV2Input, "body">) => Promise<{
|
|
414
|
+
body?: {
|
|
415
|
+
owner: string;
|
|
416
|
+
signature?: string | undefined;
|
|
417
|
+
name?: string | undefined;
|
|
418
|
+
url?: string | undefined;
|
|
419
|
+
logoUrl?: string | undefined;
|
|
420
|
+
description?: string | undefined;
|
|
421
|
+
} | undefined;
|
|
422
|
+
}>;
|
|
423
|
+
export declare const addValidatorV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<AddValidatorV2Input, ThrowOnError>) => WrapErrors<AddValidatorV2Responses, AddValidatorV2Errors, ThrowOnError, TResponseStyle>;
|
|
424
|
+
export declare const addValidatorV2QueryKey: (options?: Options<AddValidatorV2Input>) => [Pick<Options<AddValidatorV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
425
|
+
_id: string;
|
|
426
|
+
}];
|
|
427
|
+
export declare const addValidatorV2Options: (options?: Options<AddValidatorV2Input>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
428
|
+
[x: string]: unknown;
|
|
429
|
+
success: boolean;
|
|
430
|
+
result?: unknown;
|
|
431
|
+
error?: string | undefined;
|
|
432
|
+
}, AddValidatorV2Error, {
|
|
433
|
+
[x: string]: unknown;
|
|
434
|
+
success: boolean;
|
|
435
|
+
result?: unknown;
|
|
436
|
+
error?: string | undefined;
|
|
437
|
+
}, [Pick<Options<AddValidatorV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
438
|
+
_id: string;
|
|
439
|
+
}]>, "queryFn"> & {
|
|
440
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
441
|
+
[x: string]: unknown;
|
|
442
|
+
success: boolean;
|
|
443
|
+
result?: unknown;
|
|
444
|
+
error?: string | undefined;
|
|
445
|
+
}, [Pick<Options<AddValidatorV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
446
|
+
_id: string;
|
|
447
|
+
}], never> | undefined;
|
|
448
|
+
} & {
|
|
449
|
+
queryKey: [Pick<Options<AddValidatorV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
450
|
+
_id: string;
|
|
451
|
+
}] & {
|
|
452
|
+
[dataTagSymbol]: {
|
|
453
|
+
[x: string]: unknown;
|
|
454
|
+
success: boolean;
|
|
455
|
+
result?: unknown;
|
|
456
|
+
error?: string | undefined;
|
|
457
|
+
};
|
|
458
|
+
[dataTagErrorSymbol]: AddValidatorV2Error;
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
export type UpdateValidatorV2Responses = {
|
|
462
|
+
200: z.output<typeof V2ValidatorObjectResponse>;
|
|
463
|
+
};
|
|
464
|
+
export type UpdateValidatorV2Response = UpdateValidatorV2Responses[keyof UpdateValidatorV2Responses];
|
|
465
|
+
export type UpdateValidatorV2Errors = {
|
|
466
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
467
|
+
401: z.output<typeof ErrorResponse>;
|
|
468
|
+
500: z.output<typeof ErrorResponse>;
|
|
469
|
+
};
|
|
470
|
+
export type UpdateValidatorV2Error = UpdateValidatorV2Errors[keyof UpdateValidatorV2Errors];
|
|
471
|
+
export declare const updateValidatorV2Transformer: (data: unknown) => Promise<z.output<typeof V2ValidatorObjectResponse>>;
|
|
472
|
+
export declare const updateValidatorV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
473
|
+
export type UpdateValidatorV2Input = Omit<UpdateValidatorV2Data, 'body'> & {
|
|
474
|
+
body?: z.output<typeof UpdateValidatorV2Body>;
|
|
475
|
+
};
|
|
476
|
+
export declare const updateValidatorV2InputTransformer: (input: Pick<UpdateValidatorV2Input, "body">) => Promise<{
|
|
477
|
+
body?: {
|
|
478
|
+
owner: string;
|
|
479
|
+
signature?: string | undefined;
|
|
480
|
+
name?: string | undefined;
|
|
481
|
+
validatorUrl?: string | undefined;
|
|
482
|
+
logoUrl?: string | undefined;
|
|
483
|
+
description?: string | undefined;
|
|
484
|
+
} | undefined;
|
|
485
|
+
}>;
|
|
486
|
+
export declare const updateValidatorV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<UpdateValidatorV2Input, ThrowOnError>) => WrapErrors<UpdateValidatorV2Responses, UpdateValidatorV2Errors, ThrowOnError, TResponseStyle>;
|
|
487
|
+
export declare const updateValidatorV2QueryKey: (options?: Options<UpdateValidatorV2Input>) => [Pick<Options<UpdateValidatorV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
488
|
+
_id: string;
|
|
489
|
+
}];
|
|
490
|
+
export declare const updateValidatorV2Options: (options?: Options<UpdateValidatorV2Input>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
491
|
+
[x: string]: unknown;
|
|
492
|
+
success: boolean;
|
|
493
|
+
result?: unknown;
|
|
494
|
+
error?: string | undefined;
|
|
495
|
+
}, UpdateValidatorV2Error, {
|
|
496
|
+
[x: string]: unknown;
|
|
497
|
+
success: boolean;
|
|
498
|
+
result?: unknown;
|
|
499
|
+
error?: string | undefined;
|
|
500
|
+
}, [Pick<Options<UpdateValidatorV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
501
|
+
_id: string;
|
|
502
|
+
}]>, "queryFn"> & {
|
|
503
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
504
|
+
[x: string]: unknown;
|
|
505
|
+
success: boolean;
|
|
506
|
+
result?: unknown;
|
|
507
|
+
error?: string | undefined;
|
|
508
|
+
}, [Pick<Options<UpdateValidatorV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
509
|
+
_id: string;
|
|
510
|
+
}], never> | undefined;
|
|
511
|
+
} & {
|
|
512
|
+
queryKey: [Pick<Options<UpdateValidatorV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
513
|
+
_id: string;
|
|
514
|
+
}] & {
|
|
515
|
+
[dataTagSymbol]: {
|
|
516
|
+
[x: string]: unknown;
|
|
517
|
+
success: boolean;
|
|
518
|
+
result?: unknown;
|
|
519
|
+
error?: string | undefined;
|
|
520
|
+
};
|
|
521
|
+
[dataTagErrorSymbol]: UpdateValidatorV2Error;
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
export type GetAllDelegatorsV2Responses = {
|
|
525
|
+
200: z.output<typeof V2DelegatorArrayResponse>;
|
|
526
|
+
};
|
|
527
|
+
export type GetAllDelegatorsV2Response = GetAllDelegatorsV2Responses[keyof GetAllDelegatorsV2Responses];
|
|
528
|
+
export type GetAllDelegatorsV2Errors = {
|
|
529
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
530
|
+
500: z.output<typeof ErrorResponse>;
|
|
531
|
+
};
|
|
532
|
+
export type GetAllDelegatorsV2Error = GetAllDelegatorsV2Errors[keyof GetAllDelegatorsV2Errors];
|
|
533
|
+
export declare const getAllDelegatorsV2Transformer: (data: unknown) => Promise<z.output<typeof V2DelegatorArrayResponse>>;
|
|
534
|
+
export declare const getAllDelegatorsV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
535
|
+
export declare const getAllDelegatorsV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetAllDelegatorsV2Data, ThrowOnError>) => WrapErrors<GetAllDelegatorsV2Responses, GetAllDelegatorsV2Errors, ThrowOnError, TResponseStyle>;
|
|
536
|
+
export type GetDelegationsByUserV2Responses = {
|
|
537
|
+
200: z.output<typeof V2DelegatorObjectResponse>;
|
|
538
|
+
};
|
|
539
|
+
export type GetDelegationsByUserV2Response = GetDelegationsByUserV2Responses[keyof GetDelegationsByUserV2Responses];
|
|
540
|
+
export type GetDelegationsByUserV2Errors = {
|
|
541
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
542
|
+
500: z.output<typeof ErrorResponse>;
|
|
543
|
+
};
|
|
544
|
+
export type GetDelegationsByUserV2Error = GetDelegationsByUserV2Errors[keyof GetDelegationsByUserV2Errors];
|
|
545
|
+
export declare const getDelegationsByUserV2Transformer: (data: unknown) => Promise<z.output<typeof V2DelegatorObjectResponse>>;
|
|
546
|
+
export declare const getDelegationsByUserV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
547
|
+
export declare const getDelegationsByUserV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options: Options<GetDelegationsByUserV2Data, ThrowOnError>) => WrapErrors<GetDelegationsByUserV2Responses, GetDelegationsByUserV2Errors, ThrowOnError, TResponseStyle>;
|
|
548
|
+
export type GetDelegatorUnbondsV2Responses = {
|
|
549
|
+
200: z.output<typeof V2DelegatorArrayResponse>;
|
|
550
|
+
};
|
|
551
|
+
export type GetDelegatorUnbondsV2Response = GetDelegatorUnbondsV2Responses[keyof GetDelegatorUnbondsV2Responses];
|
|
552
|
+
export type GetDelegatorUnbondsV2Errors = {
|
|
553
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
554
|
+
500: z.output<typeof ErrorResponse>;
|
|
555
|
+
};
|
|
556
|
+
export type GetDelegatorUnbondsV2Error = GetDelegatorUnbondsV2Errors[keyof GetDelegatorUnbondsV2Errors];
|
|
557
|
+
export declare const getDelegatorUnbondsV2Transformer: (data: unknown) => Promise<z.output<typeof V2DelegatorArrayResponse>>;
|
|
558
|
+
export declare const getDelegatorUnbondsV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
559
|
+
export declare const getDelegatorUnbondsV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options: Options<GetDelegatorUnbondsV2Data, ThrowOnError>) => WrapErrors<GetDelegatorUnbondsV2Responses, GetDelegatorUnbondsV2Errors, ThrowOnError, TResponseStyle>;
|
|
560
|
+
export type GetValidatorDelegatorsV2Responses = {
|
|
561
|
+
200: z.output<typeof V2DelegatorArrayResponse>;
|
|
562
|
+
};
|
|
563
|
+
export type GetValidatorDelegatorsV2Response = GetValidatorDelegatorsV2Responses[keyof GetValidatorDelegatorsV2Responses];
|
|
564
|
+
export type GetValidatorDelegatorsV2Errors = {
|
|
565
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
566
|
+
500: z.output<typeof ErrorResponse>;
|
|
567
|
+
};
|
|
568
|
+
export type GetValidatorDelegatorsV2Error = GetValidatorDelegatorsV2Errors[keyof GetValidatorDelegatorsV2Errors];
|
|
569
|
+
export declare const getValidatorDelegatorsV2Transformer: (data: unknown) => Promise<z.output<typeof V2DelegatorArrayResponse>>;
|
|
570
|
+
export declare const getValidatorDelegatorsV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
571
|
+
export declare const getValidatorDelegatorsV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options: Options<GetValidatorDelegatorsV2Data, ThrowOnError>) => WrapErrors<GetValidatorDelegatorsV2Responses, GetValidatorDelegatorsV2Errors, ThrowOnError, TResponseStyle>;
|
|
572
|
+
export type GetSignerAddressListForLatestCheckpointV2Responses = {
|
|
573
|
+
200: z.output<typeof V2MonitorResponse>;
|
|
574
|
+
};
|
|
575
|
+
export type GetSignerAddressListForLatestCheckpointV2Response = GetSignerAddressListForLatestCheckpointV2Responses[keyof GetSignerAddressListForLatestCheckpointV2Responses];
|
|
576
|
+
export type GetSignerAddressListForLatestCheckpointV2Errors = {
|
|
577
|
+
500: z.output<typeof ErrorResponse>;
|
|
578
|
+
};
|
|
579
|
+
export type GetSignerAddressListForLatestCheckpointV2Error = GetSignerAddressListForLatestCheckpointV2Errors[keyof GetSignerAddressListForLatestCheckpointV2Errors];
|
|
580
|
+
export declare const getSignerAddressListForLatestCheckpointV2Transformer: (data: unknown) => Promise<z.output<typeof V2MonitorResponse>>;
|
|
581
|
+
export declare const getSignerAddressListForLatestCheckpointV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ErrorResponse>>;
|
|
582
|
+
export declare const getSignerAddressListForLatestCheckpointV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetSignerAddressListForLatestCheckpointV2Data, ThrowOnError>) => WrapErrors<GetSignerAddressListForLatestCheckpointV2Responses, GetSignerAddressListForLatestCheckpointV2Errors, ThrowOnError, TResponseStyle>;
|
|
583
|
+
export type GetMissedCheckpointsByAllValidatorsV2Responses = {
|
|
584
|
+
200: z.output<typeof V2MonitorResponse>;
|
|
585
|
+
};
|
|
586
|
+
export type GetMissedCheckpointsByAllValidatorsV2Response = GetMissedCheckpointsByAllValidatorsV2Responses[keyof GetMissedCheckpointsByAllValidatorsV2Responses];
|
|
587
|
+
export type GetMissedCheckpointsByAllValidatorsV2Errors = {
|
|
588
|
+
500: z.output<typeof ErrorResponse>;
|
|
589
|
+
};
|
|
590
|
+
export type GetMissedCheckpointsByAllValidatorsV2Error = GetMissedCheckpointsByAllValidatorsV2Errors[keyof GetMissedCheckpointsByAllValidatorsV2Errors];
|
|
591
|
+
export declare const getMissedCheckpointsByAllValidatorsV2Transformer: (data: unknown) => Promise<z.output<typeof V2MonitorResponse>>;
|
|
592
|
+
export declare const getMissedCheckpointsByAllValidatorsV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ErrorResponse>>;
|
|
593
|
+
export declare const getMissedCheckpointsByAllValidatorsV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetMissedCheckpointsByAllValidatorsV2Data, ThrowOnError>) => WrapErrors<GetMissedCheckpointsByAllValidatorsV2Responses, GetMissedCheckpointsByAllValidatorsV2Errors, ThrowOnError, TResponseStyle>;
|
|
594
|
+
export type GetSignerAddressListForCheckpointNumberV2Responses = {
|
|
595
|
+
200: z.output<typeof V2MonitorResponse>;
|
|
596
|
+
};
|
|
597
|
+
export type GetSignerAddressListForCheckpointNumberV2Response = GetSignerAddressListForCheckpointNumberV2Responses[keyof GetSignerAddressListForCheckpointNumberV2Responses];
|
|
598
|
+
export type GetSignerAddressListForCheckpointNumberV2Errors = {
|
|
599
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
600
|
+
500: z.output<typeof ErrorResponse>;
|
|
601
|
+
};
|
|
602
|
+
export type GetSignerAddressListForCheckpointNumberV2Error = GetSignerAddressListForCheckpointNumberV2Errors[keyof GetSignerAddressListForCheckpointNumberV2Errors];
|
|
603
|
+
export declare const getSignerAddressListForCheckpointNumberV2Transformer: (data: unknown) => Promise<z.output<typeof V2MonitorResponse>>;
|
|
604
|
+
export declare const getSignerAddressListForCheckpointNumberV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
605
|
+
export declare const getSignerAddressListForCheckpointNumberV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options: Options<GetSignerAddressListForCheckpointNumberV2Data, ThrowOnError>) => WrapErrors<GetSignerAddressListForCheckpointNumberV2Responses, GetSignerAddressListForCheckpointNumberV2Errors, ThrowOnError, TResponseStyle>;
|
|
606
|
+
export type GetCheckpointIntervalV2Responses = {
|
|
607
|
+
200: z.output<typeof V2MonitorResponse>;
|
|
608
|
+
};
|
|
609
|
+
export type GetCheckpointIntervalV2Response = GetCheckpointIntervalV2Responses[keyof GetCheckpointIntervalV2Responses];
|
|
610
|
+
export type GetCheckpointIntervalV2Errors = {
|
|
611
|
+
500: z.output<typeof ErrorResponse>;
|
|
612
|
+
};
|
|
613
|
+
export type GetCheckpointIntervalV2Error = GetCheckpointIntervalV2Errors[keyof GetCheckpointIntervalV2Errors];
|
|
614
|
+
export declare const getCheckpointIntervalV2Transformer: (data: unknown) => Promise<z.output<typeof V2MonitorResponse>>;
|
|
615
|
+
export declare const getCheckpointIntervalV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ErrorResponse>>;
|
|
616
|
+
export declare const getCheckpointIntervalV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetCheckpointIntervalV2Data, ThrowOnError>) => WrapErrors<GetCheckpointIntervalV2Responses, GetCheckpointIntervalV2Errors, ThrowOnError, TResponseStyle>;
|
|
617
|
+
export type GetSignerEthBalancesV2Responses = {
|
|
618
|
+
200: z.output<typeof V2MonitorResponse>;
|
|
619
|
+
};
|
|
620
|
+
export type GetSignerEthBalancesV2Response = GetSignerEthBalancesV2Responses[keyof GetSignerEthBalancesV2Responses];
|
|
621
|
+
export type GetSignerEthBalancesV2Errors = {
|
|
622
|
+
500: z.output<typeof ErrorResponse>;
|
|
623
|
+
};
|
|
624
|
+
export type GetSignerEthBalancesV2Error = GetSignerEthBalancesV2Errors[keyof GetSignerEthBalancesV2Errors];
|
|
625
|
+
export declare const getSignerEthBalancesV2Transformer: (data: unknown) => Promise<z.output<typeof V2MonitorResponse>>;
|
|
626
|
+
export declare const getSignerEthBalancesV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ErrorResponse>>;
|
|
627
|
+
export declare const getSignerEthBalancesV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetSignerEthBalancesV2Data, ThrowOnError>) => WrapErrors<GetSignerEthBalancesV2Responses, GetSignerEthBalancesV2Errors, ThrowOnError, TResponseStyle>;
|
|
628
|
+
export type GetPerformanceBenchmarkV2Responses = {
|
|
629
|
+
200: z.output<typeof V2MonitorResponse>;
|
|
630
|
+
};
|
|
631
|
+
export type GetPerformanceBenchmarkV2Response = GetPerformanceBenchmarkV2Responses[keyof GetPerformanceBenchmarkV2Responses];
|
|
632
|
+
export type GetPerformanceBenchmarkV2Errors = {
|
|
633
|
+
500: z.output<typeof ErrorResponse>;
|
|
634
|
+
};
|
|
635
|
+
export type GetPerformanceBenchmarkV2Error = GetPerformanceBenchmarkV2Errors[keyof GetPerformanceBenchmarkV2Errors];
|
|
636
|
+
export declare const getPerformanceBenchmarkV2Transformer: (data: unknown) => Promise<z.output<typeof V2MonitorResponse>>;
|
|
637
|
+
export declare const getPerformanceBenchmarkV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ErrorResponse>>;
|
|
638
|
+
export declare const getPerformanceBenchmarkV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetPerformanceBenchmarkV2Data, ThrowOnError>) => WrapErrors<GetPerformanceBenchmarkV2Responses, GetPerformanceBenchmarkV2Errors, ThrowOnError, TResponseStyle>;
|
|
639
|
+
export type GetAllNotificationsV2Responses = {
|
|
640
|
+
200: z.output<typeof NotificationArrayResponse>;
|
|
641
|
+
};
|
|
642
|
+
export type GetAllNotificationsV2Response = GetAllNotificationsV2Responses[keyof GetAllNotificationsV2Responses];
|
|
643
|
+
export type GetAllNotificationsV2Errors = {
|
|
644
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
645
|
+
500: z.output<typeof ErrorResponse>;
|
|
646
|
+
};
|
|
647
|
+
export type GetAllNotificationsV2Error = GetAllNotificationsV2Errors[keyof GetAllNotificationsV2Errors];
|
|
648
|
+
export declare const getAllNotificationsV2Transformer: (data: unknown) => Promise<z.output<typeof NotificationArrayResponse>>;
|
|
649
|
+
export declare const getAllNotificationsV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
650
|
+
export type GetAllNotificationsV2Input = Omit<GetAllNotificationsV2Data, 'query'> & {
|
|
651
|
+
query?: z.output<typeof GetAllNotificationsQuery>;
|
|
652
|
+
};
|
|
653
|
+
export declare const getAllNotificationsV2InputTransformer: (input: Pick<GetAllNotificationsV2Input, "query">) => Promise<{
|
|
654
|
+
query?: {
|
|
655
|
+
offset?: unknown;
|
|
656
|
+
limit?: unknown;
|
|
657
|
+
filterBy?: string | undefined;
|
|
658
|
+
searchString?: string | undefined;
|
|
659
|
+
} | undefined;
|
|
660
|
+
}>;
|
|
661
|
+
export declare const getAllNotificationsV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetAllNotificationsV2Input, ThrowOnError>) => WrapErrors<GetAllNotificationsV2Responses, GetAllNotificationsV2Errors, ThrowOnError, TResponseStyle>;
|
|
662
|
+
export declare const getAllNotificationsV2QueryKey: (options?: Options<GetAllNotificationsV2Input>) => [Pick<Options<GetAllNotificationsV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
663
|
+
_id: string;
|
|
664
|
+
}];
|
|
665
|
+
export declare const getAllNotificationsV2Options: (options?: Options<GetAllNotificationsV2Input>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
666
|
+
[x: string]: unknown;
|
|
667
|
+
success: boolean;
|
|
668
|
+
result?: unknown[] | undefined;
|
|
669
|
+
error?: string | undefined;
|
|
670
|
+
}, GetAllNotificationsV2Error, {
|
|
671
|
+
[x: string]: unknown;
|
|
672
|
+
success: boolean;
|
|
673
|
+
result?: unknown[] | undefined;
|
|
674
|
+
error?: string | undefined;
|
|
675
|
+
}, [Pick<Options<GetAllNotificationsV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
676
|
+
_id: string;
|
|
677
|
+
}]>, "queryFn"> & {
|
|
678
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
679
|
+
[x: string]: unknown;
|
|
680
|
+
success: boolean;
|
|
681
|
+
result?: unknown[] | undefined;
|
|
682
|
+
error?: string | undefined;
|
|
683
|
+
}, [Pick<Options<GetAllNotificationsV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
684
|
+
_id: string;
|
|
685
|
+
}], never> | undefined;
|
|
686
|
+
} & {
|
|
687
|
+
queryKey: [Pick<Options<GetAllNotificationsV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
688
|
+
_id: string;
|
|
689
|
+
}] & {
|
|
690
|
+
[dataTagSymbol]: {
|
|
691
|
+
[x: string]: unknown;
|
|
692
|
+
success: boolean;
|
|
693
|
+
result?: unknown[] | undefined;
|
|
694
|
+
error?: string | undefined;
|
|
695
|
+
};
|
|
696
|
+
[dataTagErrorSymbol]: GetAllNotificationsV2Error;
|
|
697
|
+
};
|
|
698
|
+
};
|
|
699
|
+
export type GetAllNotificationsV3Responses = {
|
|
700
|
+
200: z.output<typeof NotificationArrayResponse>;
|
|
701
|
+
};
|
|
702
|
+
export type GetAllNotificationsV3Response = GetAllNotificationsV3Responses[keyof GetAllNotificationsV3Responses];
|
|
703
|
+
export type GetAllNotificationsV3Errors = {
|
|
704
|
+
400: z.output<typeof ValidationErrorResponse>;
|
|
705
|
+
500: z.output<typeof ErrorResponse>;
|
|
706
|
+
};
|
|
707
|
+
export type GetAllNotificationsV3Error = GetAllNotificationsV3Errors[keyof GetAllNotificationsV3Errors];
|
|
708
|
+
export declare const getAllNotificationsV3Transformer: (data: unknown) => Promise<z.output<typeof NotificationArrayResponse>>;
|
|
709
|
+
export declare const getAllNotificationsV3ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
|
|
710
|
+
export type GetAllNotificationsV3Input = Omit<GetAllNotificationsV3Data, 'query'> & {
|
|
711
|
+
query?: z.output<typeof GetAllNotificationsQuery>;
|
|
712
|
+
};
|
|
713
|
+
export declare const getAllNotificationsV3InputTransformer: (input: Pick<GetAllNotificationsV3Input, "query">) => Promise<{
|
|
714
|
+
query?: {
|
|
715
|
+
offset?: unknown;
|
|
716
|
+
limit?: unknown;
|
|
717
|
+
filterBy?: string | undefined;
|
|
718
|
+
searchString?: string | undefined;
|
|
719
|
+
} | undefined;
|
|
720
|
+
}>;
|
|
721
|
+
export declare const getAllNotificationsV3: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetAllNotificationsV3Input, ThrowOnError>) => WrapErrors<GetAllNotificationsV3Responses, GetAllNotificationsV3Errors, ThrowOnError, TResponseStyle>;
|
|
722
|
+
export declare const getAllNotificationsV3QueryKey: (options?: Options<GetAllNotificationsV3Input>) => [Pick<Options<GetAllNotificationsV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
723
|
+
_id: string;
|
|
724
|
+
}];
|
|
725
|
+
export declare const getAllNotificationsV3Options: (options?: Options<GetAllNotificationsV3Input>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
|
|
726
|
+
[x: string]: unknown;
|
|
727
|
+
success: boolean;
|
|
728
|
+
result?: unknown[] | undefined;
|
|
729
|
+
error?: string | undefined;
|
|
730
|
+
}, GetAllNotificationsV3Error, {
|
|
731
|
+
[x: string]: unknown;
|
|
732
|
+
success: boolean;
|
|
733
|
+
result?: unknown[] | undefined;
|
|
734
|
+
error?: string | undefined;
|
|
735
|
+
}, [Pick<Options<GetAllNotificationsV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
736
|
+
_id: string;
|
|
737
|
+
}]>, "queryFn"> & {
|
|
738
|
+
queryFn?: import("@tanstack/react-query").QueryFunction<{
|
|
739
|
+
[x: string]: unknown;
|
|
740
|
+
success: boolean;
|
|
741
|
+
result?: unknown[] | undefined;
|
|
742
|
+
error?: string | undefined;
|
|
743
|
+
}, [Pick<Options<GetAllNotificationsV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
744
|
+
_id: string;
|
|
745
|
+
}], never> | undefined;
|
|
746
|
+
} & {
|
|
747
|
+
queryKey: [Pick<Options<GetAllNotificationsV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
|
|
748
|
+
_id: string;
|
|
749
|
+
}] & {
|
|
750
|
+
[dataTagSymbol]: {
|
|
751
|
+
[x: string]: unknown;
|
|
752
|
+
success: boolean;
|
|
753
|
+
result?: unknown[] | undefined;
|
|
754
|
+
error?: string | undefined;
|
|
755
|
+
};
|
|
756
|
+
[dataTagErrorSymbol]: GetAllNotificationsV3Error;
|
|
757
|
+
};
|
|
758
|
+
};
|
|
759
|
+
export type GetRewardsSummaryV2Responses = {
|
|
760
|
+
200: z.output<typeof V2RewardsResponse>;
|
|
761
|
+
};
|
|
762
|
+
export type GetRewardsSummaryV2Response = GetRewardsSummaryV2Responses[keyof GetRewardsSummaryV2Responses];
|
|
763
|
+
export type GetRewardsSummaryV2Errors = {
|
|
764
|
+
500: z.output<typeof ErrorResponse>;
|
|
765
|
+
};
|
|
766
|
+
export type GetRewardsSummaryV2Error = GetRewardsSummaryV2Errors[keyof GetRewardsSummaryV2Errors];
|
|
767
|
+
export declare const getRewardsSummaryV2Transformer: (data: unknown) => Promise<z.output<typeof V2RewardsResponse>>;
|
|
768
|
+
export declare const getRewardsSummaryV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ErrorResponse>>;
|
|
769
|
+
export declare const getRewardsSummaryV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetRewardsSummaryV2Data, ThrowOnError>) => WrapErrors<GetRewardsSummaryV2Responses, GetRewardsSummaryV2Errors, ThrowOnError, TResponseStyle>;
|
|
770
|
+
export type GetCurrentAprV2Responses = {
|
|
771
|
+
200: z.output<typeof V2RewardsResponse>;
|
|
772
|
+
};
|
|
773
|
+
export type GetCurrentAprV2Response = GetCurrentAprV2Responses[keyof GetCurrentAprV2Responses];
|
|
774
|
+
export type GetCurrentAprV2Errors = {
|
|
775
|
+
500: z.output<typeof ErrorResponse>;
|
|
776
|
+
};
|
|
777
|
+
export type GetCurrentAprV2Error = GetCurrentAprV2Errors[keyof GetCurrentAprV2Errors];
|
|
778
|
+
export declare const getCurrentAprV2Transformer: (data: unknown) => Promise<z.output<typeof V2RewardsResponse>>;
|
|
779
|
+
export declare const getCurrentAprV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ErrorResponse>>;
|
|
780
|
+
export declare const getCurrentAprV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetCurrentAprV2Data, ThrowOnError>) => WrapErrors<GetCurrentAprV2Responses, GetCurrentAprV2Errors, ThrowOnError, TResponseStyle>;
|
|
781
|
+
//# sourceMappingURL=registry-validator.gen.d.ts.map
|