@polygonlabs/staking-api-client 1.6.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- import { AddValidatorV2Body, AdminCountResponse, AdminEngagementStateResponse, AdminExportResponse, AdminImportBody, AdminImportResponse, AdminSetEngagementStateBody, AdminUpsertValidatorProfileBody, AdminValidatorProfileResponse, CheckpointsSignedCursorQuery, CheckpointsSignedCursorV2Response, CheckpointsSignedCursorV3Response, CheckpointsSignedV3Response, DelegationsByUserV3Response, DelegatorsListV3Response, DelegatorUnbondsV2Response, DelegatorUnbondsV3Response, ErrorResponse, GetAllNotificationsQuery, GetAllValidatorsV2Query, GetAllValidatorsV3Query, GetAllValidatorsV3Response, GetValidatorSetV3Query, GetValidatorSetV3Response, GetValidatorV3Response, LoginV3Response, NotificationArrayResponse, NotificationsCursorQuery, NotificationsCursorResponse, SummaryV3Response, UpdateValidatorV2Body, V2DelegatorArrayResponse, V2DelegatorObjectResponse, V2MonitorResponse, V2RewardsResponse, V2ValidatorArrayResponse, V2ValidatorObjectResponse, ValidationErrorResponse } from '@polygonlabs/staking-api-schemas';
1
+ import { AddValidatorV2Body, AdminCountResponse, AdminEngagementStateResponse, AdminExportResponse, AdminImportBody, AdminImportResponse, AdminSetEngagementStateBody, AdminUpsertValidatorProfileBody, AdminValidatorProfileResponse, CheckpointsSignedCursorQuery, CheckpointsSignedCursorV2Response, CheckpointsSignedCursorV3Response, CheckpointsSignedV3Response, DelegationsByUserV3Response, DelegatorsCursorQuery, DelegatorsCursorV2Response, DelegatorsCursorV3Response, DelegatorsListV3Response, DelegatorUnbondsV2Response, DelegatorUnbondsV3Response, ErrorResponse, GetAllNotificationsQuery, GetAllValidatorsV2Query, GetAllValidatorsV3Query, GetAllValidatorsV3Response, GetValidatorSetV3Query, GetValidatorSetV3Response, GetValidatorV3Response, LoginV3Response, NotificationArrayResponse, NotificationsCursorQuery, NotificationsCursorResponse, SummaryV3Response, UpdateValidatorV2Body, V2DelegatorArrayResponse, V2DelegatorObjectResponse, V2MonitorResponse, V2RewardsResponse, V2ValidatorArrayResponse, V2ValidatorObjectResponse, ValidationErrorResponse } from '@polygonlabs/staking-api-schemas';
2
2
  import { z, type ZodError } from 'zod';
3
3
  import { type Options } from './sdk.gen.js';
4
- import type { AddValidatorV2Data, AdminExportCountData, AdminExportDocumentsData, AdminImportDocumentsData, AdminSetValidatorEngagementStateData, AdminUpsertValidatorProfileData, GetAllDelegatorsV2Data, GetAllDelegatorsV3Data, GetAllNotificationsPageV2Data, GetAllNotificationsPageV3Data, GetAllNotificationsV2Data, GetAllNotificationsV3Data, GetAllValidatorsV2Data, GetAllValidatorsV3Data, GetCheckpointIntervalV2Data, GetCheckpointsSignedByValidatorV2Data, GetCheckpointsSignedByValidatorV3Data, GetCheckpointsSignedPageV2Data, GetCheckpointsSignedPageV3Data, GetCommissionedRewardV2Data, GetCurrentAprV2Data, GetDelegationsByUserV2Data, GetDelegationsByUserV3Data, GetDelegatorUnbondsV2Data, GetDelegatorUnbondsV3Data, GetMissedCheckpointsByAllValidatorsV2Data, GetPerformanceBenchmarkV2Data, GetRewardsSummaryV2Data, GetSignerAddressListForCheckpointNumberV2Data, GetSignerAddressListForLatestCheckpointV2Data, GetSignerEthBalancesV2Data, GetSummaryV3Data, GetTotalStakedV2Data, GetUserLoginV3Data, GetValidatorByAddressV2Data, GetValidatorDelegatorsV2Data, GetValidatorDelegatorsV3Data, GetValidatorSetV3Data, GetValidatorV2Data, GetValidatorV3Data, UpdateValidatorV2Data } from './types.gen.js';
4
+ import type { AddValidatorV2Data, AdminExportCountData, AdminExportDocumentsData, AdminImportDocumentsData, AdminSetValidatorEngagementStateData, AdminUpsertValidatorProfileData, GetAllDelegatorsPageV2Data, GetAllDelegatorsPageV3Data, GetAllDelegatorsV2Data, GetAllDelegatorsV3Data, GetAllNotificationsPageV2Data, GetAllNotificationsPageV3Data, GetAllNotificationsV2Data, GetAllNotificationsV3Data, GetAllValidatorsV2Data, GetAllValidatorsV3Data, GetCheckpointIntervalV2Data, GetCheckpointsSignedByValidatorV2Data, GetCheckpointsSignedByValidatorV3Data, GetCheckpointsSignedPageV2Data, GetCheckpointsSignedPageV3Data, GetCommissionedRewardV2Data, GetCurrentAprV2Data, GetCurrentSpolApyV2Data, GetDelegationsByUserV2Data, GetDelegationsByUserV3Data, GetDelegatorUnbondsV2Data, GetDelegatorUnbondsV3Data, GetMissedCheckpointsByAllValidatorsV2Data, GetPerformanceBenchmarkV2Data, GetRewardsSummaryV2Data, GetSignerAddressListForCheckpointNumberV2Data, GetSignerAddressListForLatestCheckpointV2Data, GetSignerEthBalancesV2Data, GetSummaryV3Data, GetTotalStakedV2Data, GetUserLoginV3Data, GetValidatorByAddressV2Data, GetValidatorDelegatorsPageV2Data, GetValidatorDelegatorsPageV3Data, GetValidatorDelegatorsV2Data, GetValidatorDelegatorsV3Data, GetValidatorSetV3Data, GetValidatorV2Data, GetValidatorV3Data, UpdateValidatorV2Data } from './types.gen.js';
5
5
  export type AdminUpsertValidatorProfileResponses = {
6
6
  200: z.output<typeof AdminValidatorProfileResponse>;
7
7
  };
@@ -470,6 +470,15 @@ export declare const getCheckpointsSignedPageV3Options: (options: Options<GetChe
470
470
  checkpointsSigned: {
471
471
  [x: string]: unknown;
472
472
  checkpointNumber: number;
473
+ transactionHash: string;
474
+ signerAddress: string;
475
+ timestamp: number;
476
+ totalReward: string;
477
+ validatorReward: string;
478
+ commissionedReward: string;
479
+ delegatorsReward: string;
480
+ proposer?: boolean | undefined;
481
+ validatorId?: string | undefined;
473
482
  }[];
474
483
  numberOfCheckpointsMissed?: number | undefined;
475
484
  numberOfCheckpointsSigned?: number | undefined;
@@ -485,6 +494,15 @@ export declare const getCheckpointsSignedPageV3Options: (options: Options<GetChe
485
494
  checkpointsSigned: {
486
495
  [x: string]: unknown;
487
496
  checkpointNumber: number;
497
+ transactionHash: string;
498
+ signerAddress: string;
499
+ timestamp: number;
500
+ totalReward: string;
501
+ validatorReward: string;
502
+ commissionedReward: string;
503
+ delegatorsReward: string;
504
+ proposer?: boolean | undefined;
505
+ validatorId?: string | undefined;
488
506
  }[];
489
507
  numberOfCheckpointsMissed?: number | undefined;
490
508
  numberOfCheckpointsSigned?: number | undefined;
@@ -503,6 +521,15 @@ export declare const getCheckpointsSignedPageV3Options: (options: Options<GetChe
503
521
  checkpointsSigned: {
504
522
  [x: string]: unknown;
505
523
  checkpointNumber: number;
524
+ transactionHash: string;
525
+ signerAddress: string;
526
+ timestamp: number;
527
+ totalReward: string;
528
+ validatorReward: string;
529
+ commissionedReward: string;
530
+ delegatorsReward: string;
531
+ proposer?: boolean | undefined;
532
+ validatorId?: string | undefined;
506
533
  }[];
507
534
  numberOfCheckpointsMissed?: number | undefined;
508
535
  numberOfCheckpointsSigned?: number | undefined;
@@ -525,6 +552,15 @@ export declare const getCheckpointsSignedPageV3Options: (options: Options<GetChe
525
552
  checkpointsSigned: {
526
553
  [x: string]: unknown;
527
554
  checkpointNumber: number;
555
+ transactionHash: string;
556
+ signerAddress: string;
557
+ timestamp: number;
558
+ totalReward: string;
559
+ validatorReward: string;
560
+ commissionedReward: string;
561
+ delegatorsReward: string;
562
+ proposer?: boolean | undefined;
563
+ validatorId?: string | undefined;
528
564
  }[];
529
565
  numberOfCheckpointsMissed?: number | undefined;
530
566
  numberOfCheckpointsSigned?: number | undefined;
@@ -550,6 +586,96 @@ export type GetAllDelegatorsV3Error = GetAllDelegatorsV3Errors[keyof GetAllDeleg
550
586
  export declare const getAllDelegatorsV3Transformer: (data: unknown) => Promise<z.output<typeof DelegatorsListV3Response>>;
551
587
  export declare const getAllDelegatorsV3ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
552
588
  export declare const getAllDelegatorsV3: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetAllDelegatorsV3Data, ThrowOnError>) => WrapErrors<GetAllDelegatorsV3Responses, GetAllDelegatorsV3Errors, ThrowOnError, TResponseStyle>;
589
+ export type GetAllDelegatorsPageV3Responses = {
590
+ 200: z.output<typeof DelegatorsCursorV3Response>;
591
+ };
592
+ export type GetAllDelegatorsPageV3Response = GetAllDelegatorsPageV3Responses[keyof GetAllDelegatorsPageV3Responses];
593
+ export type GetAllDelegatorsPageV3Errors = {
594
+ 400: z.output<typeof ValidationErrorResponse>;
595
+ 500: z.output<typeof ErrorResponse>;
596
+ };
597
+ export type GetAllDelegatorsPageV3Error = GetAllDelegatorsPageV3Errors[keyof GetAllDelegatorsPageV3Errors];
598
+ export declare const getAllDelegatorsPageV3Transformer: (data: unknown) => Promise<z.output<typeof DelegatorsCursorV3Response>>;
599
+ export declare const getAllDelegatorsPageV3ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
600
+ export type GetAllDelegatorsPageV3Input = Omit<GetAllDelegatorsPageV3Data, 'query'> & {
601
+ query?: z.output<typeof DelegatorsCursorQuery>;
602
+ };
603
+ export declare const getAllDelegatorsPageV3InputTransformer: (input: Pick<GetAllDelegatorsPageV3Input, "query">) => Promise<{
604
+ query?: {
605
+ cursor?: unknown;
606
+ limit?: unknown;
607
+ } | undefined;
608
+ }>;
609
+ export declare const getAllDelegatorsPageV3: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetAllDelegatorsPageV3Input, ThrowOnError>) => WrapErrors<GetAllDelegatorsPageV3Responses, GetAllDelegatorsPageV3Errors, ThrowOnError, TResponseStyle>;
610
+ export declare const getAllDelegatorsPageV3QueryKey: (options?: Options<GetAllDelegatorsPageV3Input>) => [Pick<Options<GetAllDelegatorsPageV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
611
+ _id: string;
612
+ }];
613
+ export declare const getAllDelegatorsPageV3Options: (options?: Options<GetAllDelegatorsPageV3Input>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
614
+ success: true;
615
+ result: {
616
+ [x: string]: unknown;
617
+ bondedValidator: number;
618
+ address: string;
619
+ stake: string;
620
+ claimedReward: string;
621
+ }[];
622
+ pagination: {
623
+ limit: 20 | 50 | 100 | 500;
624
+ nextCursor: string | null;
625
+ };
626
+ }, GetAllDelegatorsPageV3Error, {
627
+ success: true;
628
+ result: {
629
+ [x: string]: unknown;
630
+ bondedValidator: number;
631
+ address: string;
632
+ stake: string;
633
+ claimedReward: string;
634
+ }[];
635
+ pagination: {
636
+ limit: 20 | 50 | 100 | 500;
637
+ nextCursor: string | null;
638
+ };
639
+ }, [Pick<Options<GetAllDelegatorsPageV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
640
+ _id: string;
641
+ }]>, "queryFn"> & {
642
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
643
+ success: true;
644
+ result: {
645
+ [x: string]: unknown;
646
+ bondedValidator: number;
647
+ address: string;
648
+ stake: string;
649
+ claimedReward: string;
650
+ }[];
651
+ pagination: {
652
+ limit: 20 | 50 | 100 | 500;
653
+ nextCursor: string | null;
654
+ };
655
+ }, [Pick<Options<GetAllDelegatorsPageV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
656
+ _id: string;
657
+ }], never> | undefined;
658
+ } & {
659
+ queryKey: [Pick<Options<GetAllDelegatorsPageV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
660
+ _id: string;
661
+ }] & {
662
+ [dataTagSymbol]: {
663
+ success: true;
664
+ result: {
665
+ [x: string]: unknown;
666
+ bondedValidator: number;
667
+ address: string;
668
+ stake: string;
669
+ claimedReward: string;
670
+ }[];
671
+ pagination: {
672
+ limit: 20 | 50 | 100 | 500;
673
+ nextCursor: string | null;
674
+ };
675
+ };
676
+ [dataTagErrorSymbol]: GetAllDelegatorsPageV3Error;
677
+ };
678
+ };
553
679
  export type GetDelegationsByUserV3Responses = {
554
680
  200: z.output<typeof DelegationsByUserV3Response>;
555
681
  };
@@ -586,6 +712,96 @@ export type GetValidatorDelegatorsV3Error = GetValidatorDelegatorsV3Errors[keyof
586
712
  export declare const getValidatorDelegatorsV3Transformer: (data: unknown) => Promise<z.output<typeof DelegatorsListV3Response>>;
587
713
  export declare const getValidatorDelegatorsV3ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
588
714
  export declare const getValidatorDelegatorsV3: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options: Options<GetValidatorDelegatorsV3Data, ThrowOnError>) => WrapErrors<GetValidatorDelegatorsV3Responses, GetValidatorDelegatorsV3Errors, ThrowOnError, TResponseStyle>;
715
+ export type GetValidatorDelegatorsPageV3Responses = {
716
+ 200: z.output<typeof DelegatorsCursorV3Response>;
717
+ };
718
+ export type GetValidatorDelegatorsPageV3Response = GetValidatorDelegatorsPageV3Responses[keyof GetValidatorDelegatorsPageV3Responses];
719
+ export type GetValidatorDelegatorsPageV3Errors = {
720
+ 400: z.output<typeof ValidationErrorResponse>;
721
+ 500: z.output<typeof ErrorResponse>;
722
+ };
723
+ export type GetValidatorDelegatorsPageV3Error = GetValidatorDelegatorsPageV3Errors[keyof GetValidatorDelegatorsPageV3Errors];
724
+ export declare const getValidatorDelegatorsPageV3Transformer: (data: unknown) => Promise<z.output<typeof DelegatorsCursorV3Response>>;
725
+ export declare const getValidatorDelegatorsPageV3ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
726
+ export type GetValidatorDelegatorsPageV3Input = Omit<GetValidatorDelegatorsPageV3Data, 'query'> & {
727
+ query?: z.output<typeof DelegatorsCursorQuery>;
728
+ };
729
+ export declare const getValidatorDelegatorsPageV3InputTransformer: (input: Pick<GetValidatorDelegatorsPageV3Input, "query">) => Promise<{
730
+ query?: {
731
+ cursor?: unknown;
732
+ limit?: unknown;
733
+ } | undefined;
734
+ }>;
735
+ export declare const getValidatorDelegatorsPageV3: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options: Options<GetValidatorDelegatorsPageV3Input, ThrowOnError>) => WrapErrors<GetValidatorDelegatorsPageV3Responses, GetValidatorDelegatorsPageV3Errors, ThrowOnError, TResponseStyle>;
736
+ export declare const getValidatorDelegatorsPageV3QueryKey: (options: Options<GetValidatorDelegatorsPageV3Input>) => [Pick<Options<GetValidatorDelegatorsPageV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
737
+ _id: string;
738
+ }];
739
+ export declare const getValidatorDelegatorsPageV3Options: (options: Options<GetValidatorDelegatorsPageV3Input>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
740
+ success: true;
741
+ result: {
742
+ [x: string]: unknown;
743
+ bondedValidator: number;
744
+ address: string;
745
+ stake: string;
746
+ claimedReward: string;
747
+ }[];
748
+ pagination: {
749
+ limit: 20 | 50 | 100 | 500;
750
+ nextCursor: string | null;
751
+ };
752
+ }, GetValidatorDelegatorsPageV3Error, {
753
+ success: true;
754
+ result: {
755
+ [x: string]: unknown;
756
+ bondedValidator: number;
757
+ address: string;
758
+ stake: string;
759
+ claimedReward: string;
760
+ }[];
761
+ pagination: {
762
+ limit: 20 | 50 | 100 | 500;
763
+ nextCursor: string | null;
764
+ };
765
+ }, [Pick<Options<GetValidatorDelegatorsPageV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
766
+ _id: string;
767
+ }]>, "queryFn"> & {
768
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
769
+ success: true;
770
+ result: {
771
+ [x: string]: unknown;
772
+ bondedValidator: number;
773
+ address: string;
774
+ stake: string;
775
+ claimedReward: string;
776
+ }[];
777
+ pagination: {
778
+ limit: 20 | 50 | 100 | 500;
779
+ nextCursor: string | null;
780
+ };
781
+ }, [Pick<Options<GetValidatorDelegatorsPageV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
782
+ _id: string;
783
+ }], never> | undefined;
784
+ } & {
785
+ queryKey: [Pick<Options<GetValidatorDelegatorsPageV3Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
786
+ _id: string;
787
+ }] & {
788
+ [dataTagSymbol]: {
789
+ success: true;
790
+ result: {
791
+ [x: string]: unknown;
792
+ bondedValidator: number;
793
+ address: string;
794
+ stake: string;
795
+ claimedReward: string;
796
+ }[];
797
+ pagination: {
798
+ limit: 20 | 50 | 100 | 500;
799
+ nextCursor: string | null;
800
+ };
801
+ };
802
+ [dataTagErrorSymbol]: GetValidatorDelegatorsPageV3Error;
803
+ };
804
+ };
589
805
  export type GetSummaryV3Responses = {
590
806
  200: z.output<typeof SummaryV3Response>;
591
807
  };
@@ -959,6 +1175,92 @@ export type GetAllDelegatorsV2Error = GetAllDelegatorsV2Errors[keyof GetAllDeleg
959
1175
  export declare const getAllDelegatorsV2Transformer: (data: unknown) => Promise<z.output<typeof V2DelegatorArrayResponse>>;
960
1176
  export declare const getAllDelegatorsV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
961
1177
  export declare const getAllDelegatorsV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetAllDelegatorsV2Data, ThrowOnError>) => WrapErrors<GetAllDelegatorsV2Responses, GetAllDelegatorsV2Errors, ThrowOnError, TResponseStyle>;
1178
+ export type GetAllDelegatorsPageV2Responses = {
1179
+ 200: z.output<typeof DelegatorsCursorV2Response>;
1180
+ };
1181
+ export type GetAllDelegatorsPageV2Response = GetAllDelegatorsPageV2Responses[keyof GetAllDelegatorsPageV2Responses];
1182
+ export type GetAllDelegatorsPageV2Errors = {
1183
+ 400: z.output<typeof ValidationErrorResponse>;
1184
+ 500: z.output<typeof ErrorResponse>;
1185
+ };
1186
+ export type GetAllDelegatorsPageV2Error = GetAllDelegatorsPageV2Errors[keyof GetAllDelegatorsPageV2Errors];
1187
+ export declare const getAllDelegatorsPageV2Transformer: (data: unknown) => Promise<z.output<typeof DelegatorsCursorV2Response>>;
1188
+ export declare const getAllDelegatorsPageV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
1189
+ export type GetAllDelegatorsPageV2Input = Omit<GetAllDelegatorsPageV2Data, 'query'> & {
1190
+ query?: z.output<typeof DelegatorsCursorQuery>;
1191
+ };
1192
+ export declare const getAllDelegatorsPageV2InputTransformer: (input: Pick<GetAllDelegatorsPageV2Input, "query">) => Promise<{
1193
+ query?: {
1194
+ cursor?: unknown;
1195
+ limit?: unknown;
1196
+ } | undefined;
1197
+ }>;
1198
+ export declare const getAllDelegatorsPageV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetAllDelegatorsPageV2Input, ThrowOnError>) => WrapErrors<GetAllDelegatorsPageV2Responses, GetAllDelegatorsPageV2Errors, ThrowOnError, TResponseStyle>;
1199
+ export declare const getAllDelegatorsPageV2QueryKey: (options?: Options<GetAllDelegatorsPageV2Input>) => [Pick<Options<GetAllDelegatorsPageV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
1200
+ _id: string;
1201
+ }];
1202
+ export declare const getAllDelegatorsPageV2Options: (options?: Options<GetAllDelegatorsPageV2Input>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1203
+ success: true;
1204
+ status: "success";
1205
+ result: {
1206
+ [x: string]: unknown;
1207
+ bondedValidator: number;
1208
+ address: string;
1209
+ }[];
1210
+ pagination: {
1211
+ limit: 20 | 50 | 100 | 500;
1212
+ nextCursor: string | null;
1213
+ };
1214
+ }, GetAllDelegatorsPageV2Error, {
1215
+ success: true;
1216
+ status: "success";
1217
+ result: {
1218
+ [x: string]: unknown;
1219
+ bondedValidator: number;
1220
+ address: string;
1221
+ }[];
1222
+ pagination: {
1223
+ limit: 20 | 50 | 100 | 500;
1224
+ nextCursor: string | null;
1225
+ };
1226
+ }, [Pick<Options<GetAllDelegatorsPageV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
1227
+ _id: string;
1228
+ }]>, "queryFn"> & {
1229
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1230
+ success: true;
1231
+ status: "success";
1232
+ result: {
1233
+ [x: string]: unknown;
1234
+ bondedValidator: number;
1235
+ address: string;
1236
+ }[];
1237
+ pagination: {
1238
+ limit: 20 | 50 | 100 | 500;
1239
+ nextCursor: string | null;
1240
+ };
1241
+ }, [Pick<Options<GetAllDelegatorsPageV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
1242
+ _id: string;
1243
+ }], never> | undefined;
1244
+ } & {
1245
+ queryKey: [Pick<Options<GetAllDelegatorsPageV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
1246
+ _id: string;
1247
+ }] & {
1248
+ [dataTagSymbol]: {
1249
+ success: true;
1250
+ status: "success";
1251
+ result: {
1252
+ [x: string]: unknown;
1253
+ bondedValidator: number;
1254
+ address: string;
1255
+ }[];
1256
+ pagination: {
1257
+ limit: 20 | 50 | 100 | 500;
1258
+ nextCursor: string | null;
1259
+ };
1260
+ };
1261
+ [dataTagErrorSymbol]: GetAllDelegatorsPageV2Error;
1262
+ };
1263
+ };
962
1264
  export type GetDelegationsByUserV2Responses = {
963
1265
  200: z.output<typeof V2DelegatorObjectResponse>;
964
1266
  };
@@ -995,6 +1297,92 @@ export type GetValidatorDelegatorsV2Error = GetValidatorDelegatorsV2Errors[keyof
995
1297
  export declare const getValidatorDelegatorsV2Transformer: (data: unknown) => Promise<z.output<typeof V2DelegatorArrayResponse>>;
996
1298
  export declare const getValidatorDelegatorsV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
997
1299
  export declare const getValidatorDelegatorsV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options: Options<GetValidatorDelegatorsV2Data, ThrowOnError>) => WrapErrors<GetValidatorDelegatorsV2Responses, GetValidatorDelegatorsV2Errors, ThrowOnError, TResponseStyle>;
1300
+ export type GetValidatorDelegatorsPageV2Responses = {
1301
+ 200: z.output<typeof DelegatorsCursorV2Response>;
1302
+ };
1303
+ export type GetValidatorDelegatorsPageV2Response = GetValidatorDelegatorsPageV2Responses[keyof GetValidatorDelegatorsPageV2Responses];
1304
+ export type GetValidatorDelegatorsPageV2Errors = {
1305
+ 400: z.output<typeof ValidationErrorResponse>;
1306
+ 500: z.output<typeof ErrorResponse>;
1307
+ };
1308
+ export type GetValidatorDelegatorsPageV2Error = GetValidatorDelegatorsPageV2Errors[keyof GetValidatorDelegatorsPageV2Errors];
1309
+ export declare const getValidatorDelegatorsPageV2Transformer: (data: unknown) => Promise<z.output<typeof DelegatorsCursorV2Response>>;
1310
+ export declare const getValidatorDelegatorsPageV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ValidationErrorResponse> | z.output<typeof ErrorResponse>>;
1311
+ export type GetValidatorDelegatorsPageV2Input = Omit<GetValidatorDelegatorsPageV2Data, 'query'> & {
1312
+ query?: z.output<typeof DelegatorsCursorQuery>;
1313
+ };
1314
+ export declare const getValidatorDelegatorsPageV2InputTransformer: (input: Pick<GetValidatorDelegatorsPageV2Input, "query">) => Promise<{
1315
+ query?: {
1316
+ cursor?: unknown;
1317
+ limit?: unknown;
1318
+ } | undefined;
1319
+ }>;
1320
+ export declare const getValidatorDelegatorsPageV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options: Options<GetValidatorDelegatorsPageV2Input, ThrowOnError>) => WrapErrors<GetValidatorDelegatorsPageV2Responses, GetValidatorDelegatorsPageV2Errors, ThrowOnError, TResponseStyle>;
1321
+ export declare const getValidatorDelegatorsPageV2QueryKey: (options: Options<GetValidatorDelegatorsPageV2Input>) => [Pick<Options<GetValidatorDelegatorsPageV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
1322
+ _id: string;
1323
+ }];
1324
+ export declare const getValidatorDelegatorsPageV2Options: (options: Options<GetValidatorDelegatorsPageV2Input>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<{
1325
+ success: true;
1326
+ status: "success";
1327
+ result: {
1328
+ [x: string]: unknown;
1329
+ bondedValidator: number;
1330
+ address: string;
1331
+ }[];
1332
+ pagination: {
1333
+ limit: 20 | 50 | 100 | 500;
1334
+ nextCursor: string | null;
1335
+ };
1336
+ }, GetValidatorDelegatorsPageV2Error, {
1337
+ success: true;
1338
+ status: "success";
1339
+ result: {
1340
+ [x: string]: unknown;
1341
+ bondedValidator: number;
1342
+ address: string;
1343
+ }[];
1344
+ pagination: {
1345
+ limit: 20 | 50 | 100 | 500;
1346
+ nextCursor: string | null;
1347
+ };
1348
+ }, [Pick<Options<GetValidatorDelegatorsPageV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
1349
+ _id: string;
1350
+ }]>, "queryFn"> & {
1351
+ queryFn?: import("@tanstack/react-query").QueryFunction<{
1352
+ success: true;
1353
+ status: "success";
1354
+ result: {
1355
+ [x: string]: unknown;
1356
+ bondedValidator: number;
1357
+ address: string;
1358
+ }[];
1359
+ pagination: {
1360
+ limit: 20 | 50 | 100 | 500;
1361
+ nextCursor: string | null;
1362
+ };
1363
+ }, [Pick<Options<GetValidatorDelegatorsPageV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
1364
+ _id: string;
1365
+ }], never> | undefined;
1366
+ } & {
1367
+ queryKey: [Pick<Options<GetValidatorDelegatorsPageV2Data>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
1368
+ _id: string;
1369
+ }] & {
1370
+ [dataTagSymbol]: {
1371
+ success: true;
1372
+ status: "success";
1373
+ result: {
1374
+ [x: string]: unknown;
1375
+ bondedValidator: number;
1376
+ address: string;
1377
+ }[];
1378
+ pagination: {
1379
+ limit: 20 | 50 | 100 | 500;
1380
+ nextCursor: string | null;
1381
+ };
1382
+ };
1383
+ [dataTagErrorSymbol]: GetValidatorDelegatorsPageV2Error;
1384
+ };
1385
+ };
998
1386
  export type GetSignerAddressListForLatestCheckpointV2Responses = {
999
1387
  200: z.output<typeof V2MonitorResponse>;
1000
1388
  };
@@ -1370,4 +1758,15 @@ export type GetCurrentAprV2Error = GetCurrentAprV2Errors[keyof GetCurrentAprV2Er
1370
1758
  export declare const getCurrentAprV2Transformer: (data: unknown) => Promise<z.output<typeof V2RewardsResponse>>;
1371
1759
  export declare const getCurrentAprV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ErrorResponse>>;
1372
1760
  export declare const getCurrentAprV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetCurrentAprV2Data, ThrowOnError>) => WrapErrors<GetCurrentAprV2Responses, GetCurrentAprV2Errors, ThrowOnError, TResponseStyle>;
1761
+ export type GetCurrentSpolApyV2Responses = {
1762
+ 200: z.output<typeof V2RewardsResponse>;
1763
+ };
1764
+ export type GetCurrentSpolApyV2Response = GetCurrentSpolApyV2Responses[keyof GetCurrentSpolApyV2Responses];
1765
+ export type GetCurrentSpolApyV2Errors = {
1766
+ 500: z.output<typeof ErrorResponse>;
1767
+ };
1768
+ export type GetCurrentSpolApyV2Error = GetCurrentSpolApyV2Errors[keyof GetCurrentSpolApyV2Errors];
1769
+ export declare const getCurrentSpolApyV2Transformer: (data: unknown) => Promise<z.output<typeof V2RewardsResponse>>;
1770
+ export declare const getCurrentSpolApyV2ErrorTransformer: (data: unknown) => Promise<z.output<typeof ErrorResponse>>;
1771
+ export declare const getCurrentSpolApyV2: <ThrowOnError extends boolean = false, TResponseStyle extends "fields" | "data" = "fields">(options?: Options<GetCurrentSpolApyV2Data, ThrowOnError>) => WrapErrors<GetCurrentSpolApyV2Responses, GetCurrentSpolApyV2Errors, ThrowOnError, TResponseStyle>;
1373
1772
  //# sourceMappingURL=registry-validator.gen.d.ts.map