@kite-01/sdk 2.4.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/index.cjs +190 -18
- package/dist/index.d.cts +477 -69
- package/dist/index.d.ts +477 -69
- package/dist/index.js +190 -18
- package/package.json +6 -6
package/dist/index.d.cts
CHANGED
|
@@ -337,7 +337,9 @@ type App = {
|
|
|
337
337
|
websiteUrl: string | null;
|
|
338
338
|
termsOfServiceUrl: string | null;
|
|
339
339
|
privacyPolicyUrl: string | null;
|
|
340
|
-
|
|
340
|
+
x402Enabled: boolean;
|
|
341
|
+
x402Chains: Array<string>;
|
|
342
|
+
payoutChainId: string | null;
|
|
341
343
|
payoutAddress: string | null;
|
|
342
344
|
deletedAt: string | null;
|
|
343
345
|
createdAt: string;
|
|
@@ -352,6 +354,9 @@ type AppPage = {
|
|
|
352
354
|
type AppChain = {
|
|
353
355
|
chainId: string;
|
|
354
356
|
address: string;
|
|
357
|
+
x402Allowed: boolean;
|
|
358
|
+
x402Enabled: boolean;
|
|
359
|
+
CCTPPayout: boolean;
|
|
355
360
|
createdAt: string;
|
|
356
361
|
updatedAt: string;
|
|
357
362
|
};
|
|
@@ -391,9 +396,10 @@ type ChainConfig = {
|
|
|
391
396
|
kiteFactoryAddress: string;
|
|
392
397
|
usdPeggedTokenId: string;
|
|
393
398
|
settlementTokenId: string;
|
|
394
|
-
onchainNotifierProviders: Array<'Alchemy' | 'QuickNode' | 'Thirdweb' | 'TrustWallet'
|
|
395
|
-
gasSponsorProviders: Array<'Alchemy' | 'QuickNode' | 'Thirdweb' | 'TrustWallet'
|
|
399
|
+
onchainNotifierProviders: Array<'Alchemy' | 'QuickNode' | 'Thirdweb' | 'TrustWallet'>;
|
|
400
|
+
gasSponsorProviders: Array<'Alchemy' | 'QuickNode' | 'Thirdweb' | 'TrustWallet'>;
|
|
396
401
|
maxGasPrice: string | null;
|
|
402
|
+
x402Enabled: boolean;
|
|
397
403
|
createdAt: string;
|
|
398
404
|
updatedAt: string;
|
|
399
405
|
settlementToken: Token;
|
|
@@ -407,6 +413,16 @@ type ChainWithConfig = {
|
|
|
407
413
|
createdAt: string;
|
|
408
414
|
updatedAt: string;
|
|
409
415
|
config: ChainConfig | null;
|
|
416
|
+
status: 'Live' | 'Deactivated' | 'Deleted';
|
|
417
|
+
cctp: {
|
|
418
|
+
domain: number;
|
|
419
|
+
tokenMessenger: string;
|
|
420
|
+
messageTransmitter: string;
|
|
421
|
+
usdc: string;
|
|
422
|
+
forwarder?: string;
|
|
423
|
+
} | null;
|
|
424
|
+
CCTPPayout: boolean;
|
|
425
|
+
noPayoutReason: 'NoPayoutSet' | 'NoCctpRoute' | 'SettlementTokenNotUsdc';
|
|
410
426
|
};
|
|
411
427
|
type ChainWithConfigList = Array<ChainWithConfig>;
|
|
412
428
|
type ConfiguredChain = {
|
|
@@ -416,6 +432,7 @@ type ConfiguredChain = {
|
|
|
416
432
|
icon: string;
|
|
417
433
|
settlementToken: Token;
|
|
418
434
|
usdPeggedToken: Token;
|
|
435
|
+
CCTPPayout: boolean;
|
|
419
436
|
};
|
|
420
437
|
type ConfiguredChainList = {
|
|
421
438
|
data: Array<ConfiguredChain>;
|
|
@@ -437,6 +454,8 @@ type SupportedChain = {
|
|
|
437
454
|
url: string;
|
|
438
455
|
};
|
|
439
456
|
confirmations: number;
|
|
457
|
+
CCTPPayout: boolean;
|
|
458
|
+
cctpDomain: number | null;
|
|
440
459
|
};
|
|
441
460
|
type SupportedChainList = Array<SupportedChain>;
|
|
442
461
|
type Token = {
|
|
@@ -449,7 +468,6 @@ type Token = {
|
|
|
449
468
|
version: string | null;
|
|
450
469
|
icon: string | null;
|
|
451
470
|
supportsEIP3009: boolean;
|
|
452
|
-
nearIntentsAssetId: string | null;
|
|
453
471
|
listed: boolean;
|
|
454
472
|
deletedAt: string | null;
|
|
455
473
|
createdAt: string;
|
|
@@ -465,7 +483,6 @@ type TokenWithChain = {
|
|
|
465
483
|
version: string | null;
|
|
466
484
|
icon: string | null;
|
|
467
485
|
supportsEIP3009: boolean;
|
|
468
|
-
nearIntentsAssetId: string | null;
|
|
469
486
|
listed: boolean;
|
|
470
487
|
deletedAt: string | null;
|
|
471
488
|
createdAt: string;
|
|
@@ -603,6 +620,7 @@ type Quote = {
|
|
|
603
620
|
meta: {
|
|
604
621
|
[key: string]: unknown;
|
|
605
622
|
} | null;
|
|
623
|
+
channel: 'checkout' | 'x402';
|
|
606
624
|
expiresAt: string;
|
|
607
625
|
createdAt: string;
|
|
608
626
|
updatedAt: string;
|
|
@@ -636,6 +654,7 @@ type QuoteDetails = {
|
|
|
636
654
|
meta: {
|
|
637
655
|
[key: string]: unknown;
|
|
638
656
|
} | null;
|
|
657
|
+
channel: 'checkout' | 'x402';
|
|
639
658
|
expiresAt: string;
|
|
640
659
|
createdAt: string;
|
|
641
660
|
updatedAt: string;
|
|
@@ -657,6 +676,8 @@ type Transfer = {
|
|
|
657
676
|
appId: string;
|
|
658
677
|
quoteId: string;
|
|
659
678
|
settlementRecipient: string;
|
|
679
|
+
settlement: 'Payout' | 'Local';
|
|
680
|
+
settlementReason: 'NoPayoutSet' | 'NoCctpRoute' | 'SettlementTokenNotUsdc';
|
|
660
681
|
minAmountOut: string;
|
|
661
682
|
refundAddress: string;
|
|
662
683
|
payinAddress: string;
|
|
@@ -677,6 +698,15 @@ type Transfer = {
|
|
|
677
698
|
routerAddress: string;
|
|
678
699
|
poolFeeTier: number;
|
|
679
700
|
implementation: string;
|
|
701
|
+
cctp?: {
|
|
702
|
+
tokenMessenger: string;
|
|
703
|
+
destinationDomain: number;
|
|
704
|
+
mintRecipient: string;
|
|
705
|
+
destinationCaller: string;
|
|
706
|
+
hookData: string;
|
|
707
|
+
maxFee: string;
|
|
708
|
+
minFinalityThreshold: number;
|
|
709
|
+
};
|
|
680
710
|
} | {
|
|
681
711
|
id: string;
|
|
682
712
|
pay_in: 'Native' | {
|
|
@@ -723,6 +753,15 @@ type Transfer = {
|
|
|
723
753
|
path: Array<string>;
|
|
724
754
|
} | null;
|
|
725
755
|
implementation: string;
|
|
756
|
+
cctp?: {
|
|
757
|
+
token_messenger: string;
|
|
758
|
+
destination_domain: number;
|
|
759
|
+
mint_recipient: string;
|
|
760
|
+
destination_caller: string;
|
|
761
|
+
hook_data: string;
|
|
762
|
+
max_fee: string;
|
|
763
|
+
min_finality_threshold: number;
|
|
764
|
+
} | null;
|
|
726
765
|
} | {
|
|
727
766
|
id: string;
|
|
728
767
|
token: string;
|
|
@@ -744,6 +783,7 @@ type Transfer = {
|
|
|
744
783
|
x402Payer: string | null;
|
|
745
784
|
x402AuthorizationNonce: string | null;
|
|
746
785
|
x402AuthorizationHash: string | null;
|
|
786
|
+
settlementCallId: string | null;
|
|
747
787
|
x402SettlementCallId: string | null;
|
|
748
788
|
x402BlockchainHash: string | null;
|
|
749
789
|
x402LeaseExpiresAt: string | null;
|
|
@@ -760,38 +800,29 @@ type TransferTimelineEntry = {
|
|
|
760
800
|
createdAt: string;
|
|
761
801
|
};
|
|
762
802
|
type Payout = {
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
destinationSymbol: string;
|
|
767
|
-
destinationChain: string;
|
|
803
|
+
status: 'Pending' | 'Burned' | 'Attested' | 'Delivered' | 'Fallback' | 'Failed';
|
|
804
|
+
destinationChainId: string;
|
|
805
|
+
destinationCaip2Id: string;
|
|
768
806
|
recipient: string;
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
807
|
+
amount: string | null;
|
|
808
|
+
maxFee: string;
|
|
809
|
+
burnHash: string | null;
|
|
810
|
+
burnExplorerUrl: string | null;
|
|
811
|
+
destinationHash: string | null;
|
|
812
|
+
destinationExplorerUrl: string | null;
|
|
813
|
+
attested: boolean;
|
|
814
|
+
attempts: number;
|
|
815
|
+
error: string | null;
|
|
777
816
|
createdAt: string;
|
|
778
817
|
updatedAt: string;
|
|
779
818
|
};
|
|
780
|
-
type PayoutToken = {
|
|
781
|
-
assetId: string;
|
|
782
|
-
blockchain: string;
|
|
783
|
-
symbol: string;
|
|
784
|
-
decimals: number;
|
|
785
|
-
contractAddress: string | null;
|
|
786
|
-
};
|
|
787
|
-
type PayoutTokenList = {
|
|
788
|
-
data: Array<PayoutToken>;
|
|
789
|
-
};
|
|
790
819
|
type TransferDetails = {
|
|
791
820
|
id: string;
|
|
792
821
|
appId: string;
|
|
793
822
|
quoteId: string;
|
|
794
823
|
settlementRecipient: string;
|
|
824
|
+
settlement: 'Payout' | 'Local';
|
|
825
|
+
settlementReason: 'NoPayoutSet' | 'NoCctpRoute' | 'SettlementTokenNotUsdc';
|
|
795
826
|
minAmountOut: string;
|
|
796
827
|
refundAddress: string;
|
|
797
828
|
payinAddress: string;
|
|
@@ -812,6 +843,15 @@ type TransferDetails = {
|
|
|
812
843
|
routerAddress: string;
|
|
813
844
|
poolFeeTier: number;
|
|
814
845
|
implementation: string;
|
|
846
|
+
cctp?: {
|
|
847
|
+
tokenMessenger: string;
|
|
848
|
+
destinationDomain: number;
|
|
849
|
+
mintRecipient: string;
|
|
850
|
+
destinationCaller: string;
|
|
851
|
+
hookData: string;
|
|
852
|
+
maxFee: string;
|
|
853
|
+
minFinalityThreshold: number;
|
|
854
|
+
};
|
|
815
855
|
} | {
|
|
816
856
|
id: string;
|
|
817
857
|
pay_in: 'Native' | {
|
|
@@ -858,6 +898,15 @@ type TransferDetails = {
|
|
|
858
898
|
path: Array<string>;
|
|
859
899
|
} | null;
|
|
860
900
|
implementation: string;
|
|
901
|
+
cctp?: {
|
|
902
|
+
token_messenger: string;
|
|
903
|
+
destination_domain: number;
|
|
904
|
+
mint_recipient: string;
|
|
905
|
+
destination_caller: string;
|
|
906
|
+
hook_data: string;
|
|
907
|
+
max_fee: string;
|
|
908
|
+
min_finality_threshold: number;
|
|
909
|
+
} | null;
|
|
861
910
|
} | {
|
|
862
911
|
id: string;
|
|
863
912
|
token: string;
|
|
@@ -879,6 +928,7 @@ type TransferDetails = {
|
|
|
879
928
|
x402Payer: string | null;
|
|
880
929
|
x402AuthorizationNonce: string | null;
|
|
881
930
|
x402AuthorizationHash: string | null;
|
|
931
|
+
settlementCallId: string | null;
|
|
882
932
|
x402SettlementCallId: string | null;
|
|
883
933
|
x402BlockchainHash: string | null;
|
|
884
934
|
x402LeaseExpiresAt: string | null;
|
|
@@ -887,14 +937,16 @@ type TransferDetails = {
|
|
|
887
937
|
createdAt: string;
|
|
888
938
|
updatedAt: string;
|
|
889
939
|
timeline: Array<TransferTimelineEntry>;
|
|
890
|
-
payout: Payout | null;
|
|
891
940
|
quote: QuoteDetails;
|
|
941
|
+
payout: Payout | null;
|
|
892
942
|
};
|
|
893
943
|
type TransferListItem = {
|
|
894
944
|
id: string;
|
|
895
945
|
appId: string;
|
|
896
946
|
quoteId: string;
|
|
897
947
|
settlementRecipient: string;
|
|
948
|
+
settlement: 'Payout' | 'Local';
|
|
949
|
+
settlementReason: 'NoPayoutSet' | 'NoCctpRoute' | 'SettlementTokenNotUsdc';
|
|
898
950
|
minAmountOut: string;
|
|
899
951
|
refundAddress: string;
|
|
900
952
|
payinAddress: string;
|
|
@@ -915,6 +967,15 @@ type TransferListItem = {
|
|
|
915
967
|
routerAddress: string;
|
|
916
968
|
poolFeeTier: number;
|
|
917
969
|
implementation: string;
|
|
970
|
+
cctp?: {
|
|
971
|
+
tokenMessenger: string;
|
|
972
|
+
destinationDomain: number;
|
|
973
|
+
mintRecipient: string;
|
|
974
|
+
destinationCaller: string;
|
|
975
|
+
hookData: string;
|
|
976
|
+
maxFee: string;
|
|
977
|
+
minFinalityThreshold: number;
|
|
978
|
+
};
|
|
918
979
|
} | {
|
|
919
980
|
id: string;
|
|
920
981
|
pay_in: 'Native' | {
|
|
@@ -961,6 +1022,15 @@ type TransferListItem = {
|
|
|
961
1022
|
path: Array<string>;
|
|
962
1023
|
} | null;
|
|
963
1024
|
implementation: string;
|
|
1025
|
+
cctp?: {
|
|
1026
|
+
token_messenger: string;
|
|
1027
|
+
destination_domain: number;
|
|
1028
|
+
mint_recipient: string;
|
|
1029
|
+
destination_caller: string;
|
|
1030
|
+
hook_data: string;
|
|
1031
|
+
max_fee: string;
|
|
1032
|
+
min_finality_threshold: number;
|
|
1033
|
+
} | null;
|
|
964
1034
|
} | {
|
|
965
1035
|
id: string;
|
|
966
1036
|
token: string;
|
|
@@ -982,6 +1052,7 @@ type TransferListItem = {
|
|
|
982
1052
|
x402Payer: string | null;
|
|
983
1053
|
x402AuthorizationNonce: string | null;
|
|
984
1054
|
x402AuthorizationHash: string | null;
|
|
1055
|
+
settlementCallId: string | null;
|
|
985
1056
|
x402SettlementCallId: string | null;
|
|
986
1057
|
x402BlockchainHash: string | null;
|
|
987
1058
|
x402LeaseExpiresAt: string | null;
|
|
@@ -990,8 +1061,8 @@ type TransferListItem = {
|
|
|
990
1061
|
createdAt: string;
|
|
991
1062
|
updatedAt: string;
|
|
992
1063
|
timeline: Array<TransferTimelineEntry>;
|
|
993
|
-
payout: Payout | null;
|
|
994
1064
|
quote: QuoteDetails;
|
|
1065
|
+
payout: Payout | null;
|
|
995
1066
|
app: {
|
|
996
1067
|
id: string;
|
|
997
1068
|
icon: string | null;
|
|
@@ -1009,6 +1080,8 @@ type CreatedTransfer = {
|
|
|
1009
1080
|
appId: string;
|
|
1010
1081
|
quoteId: string;
|
|
1011
1082
|
settlementRecipient: string;
|
|
1083
|
+
settlement: 'Payout' | 'Local';
|
|
1084
|
+
settlementReason: 'NoPayoutSet' | 'NoCctpRoute' | 'SettlementTokenNotUsdc';
|
|
1012
1085
|
minAmountOut: string;
|
|
1013
1086
|
refundAddress: string;
|
|
1014
1087
|
payinAddress: string;
|
|
@@ -1029,6 +1102,15 @@ type CreatedTransfer = {
|
|
|
1029
1102
|
routerAddress: string;
|
|
1030
1103
|
poolFeeTier: number;
|
|
1031
1104
|
implementation: string;
|
|
1105
|
+
cctp?: {
|
|
1106
|
+
tokenMessenger: string;
|
|
1107
|
+
destinationDomain: number;
|
|
1108
|
+
mintRecipient: string;
|
|
1109
|
+
destinationCaller: string;
|
|
1110
|
+
hookData: string;
|
|
1111
|
+
maxFee: string;
|
|
1112
|
+
minFinalityThreshold: number;
|
|
1113
|
+
};
|
|
1032
1114
|
} | {
|
|
1033
1115
|
id: string;
|
|
1034
1116
|
pay_in: 'Native' | {
|
|
@@ -1075,6 +1157,15 @@ type CreatedTransfer = {
|
|
|
1075
1157
|
path: Array<string>;
|
|
1076
1158
|
} | null;
|
|
1077
1159
|
implementation: string;
|
|
1160
|
+
cctp?: {
|
|
1161
|
+
token_messenger: string;
|
|
1162
|
+
destination_domain: number;
|
|
1163
|
+
mint_recipient: string;
|
|
1164
|
+
destination_caller: string;
|
|
1165
|
+
hook_data: string;
|
|
1166
|
+
max_fee: string;
|
|
1167
|
+
min_finality_threshold: number;
|
|
1168
|
+
} | null;
|
|
1078
1169
|
} | {
|
|
1079
1170
|
id: string;
|
|
1080
1171
|
token: string;
|
|
@@ -1096,6 +1187,7 @@ type CreatedTransfer = {
|
|
|
1096
1187
|
x402Payer: string | null;
|
|
1097
1188
|
x402AuthorizationNonce: string | null;
|
|
1098
1189
|
x402AuthorizationHash: string | null;
|
|
1190
|
+
settlementCallId: string | null;
|
|
1099
1191
|
x402SettlementCallId: string | null;
|
|
1100
1192
|
x402BlockchainHash: string | null;
|
|
1101
1193
|
x402LeaseExpiresAt: string | null;
|
|
@@ -1113,10 +1205,10 @@ type CreatedTransfer = {
|
|
|
1113
1205
|
};
|
|
1114
1206
|
type Webhook = {
|
|
1115
1207
|
id: string;
|
|
1116
|
-
appId: string;
|
|
1208
|
+
appId: string | null;
|
|
1117
1209
|
url: string;
|
|
1118
1210
|
label: string;
|
|
1119
|
-
categories: Array<'Transfer' | 'Deposit' | 'Recovery' | 'ExcessRefund'>;
|
|
1211
|
+
categories: Array<'Transfer' | 'Deposit' | 'Recovery' | 'ExcessRefund' | 'Chain' | 'Payout'>;
|
|
1120
1212
|
signingKeyHint: string;
|
|
1121
1213
|
maxRetries: number;
|
|
1122
1214
|
retryIntervalInSeconds: number;
|
|
@@ -1133,10 +1225,10 @@ type WebhookPage = {
|
|
|
1133
1225
|
};
|
|
1134
1226
|
type CreatedWebhook = {
|
|
1135
1227
|
id: string;
|
|
1136
|
-
appId: string;
|
|
1228
|
+
appId: string | null;
|
|
1137
1229
|
url: string;
|
|
1138
1230
|
label: string;
|
|
1139
|
-
categories: Array<'Transfer' | 'Deposit' | 'Recovery' | 'ExcessRefund'>;
|
|
1231
|
+
categories: Array<'Transfer' | 'Deposit' | 'Recovery' | 'ExcessRefund' | 'Chain' | 'Payout'>;
|
|
1140
1232
|
signingKeyHint: string;
|
|
1141
1233
|
maxRetries: number;
|
|
1142
1234
|
retryIntervalInSeconds: number;
|
|
@@ -1172,8 +1264,8 @@ type WebhookDeliveryPage = {
|
|
|
1172
1264
|
type Event = {
|
|
1173
1265
|
id: string;
|
|
1174
1266
|
sourceId: string | null;
|
|
1175
|
-
appId: string;
|
|
1176
|
-
category: 'Transfer' | 'Deposit' | 'Recovery' | 'ExcessRefund';
|
|
1267
|
+
appId: string | null;
|
|
1268
|
+
category: 'Transfer' | 'Deposit' | 'Recovery' | 'ExcessRefund' | 'Chain' | 'Payout';
|
|
1177
1269
|
previousCategoryStatus: string | null;
|
|
1178
1270
|
currentCategoryStatus: string;
|
|
1179
1271
|
data: unknown;
|
|
@@ -1194,11 +1286,11 @@ type KvEntry = {
|
|
|
1194
1286
|
};
|
|
1195
1287
|
type KvEntryList = Array<KvEntry>;
|
|
1196
1288
|
type ProviderStatus = {
|
|
1197
|
-
provider: 'Alchemy' | 'QuickNode' | 'Thirdweb' | 'TrustWallet'
|
|
1198
|
-
action: 'GasSponsor' | 'OnchainNotifier'
|
|
1289
|
+
provider: 'Alchemy' | 'QuickNode' | 'Thirdweb' | 'TrustWallet';
|
|
1290
|
+
action: 'GasSponsor' | 'OnchainNotifier';
|
|
1199
1291
|
configured: boolean;
|
|
1200
1292
|
keys: Array<{
|
|
1201
|
-
key: 'AlchemyApiKey' | 'AlchemyGasPolicyId' | 'AlchemyAuthToken' | 'QuickNodeApiKey' | 'QuickNodeEvmWalletFilter_WalletsListName' | 'QuickNodeEvmContractEvents_ContractsListName' | 'QuickNodeEvmContractEvents_EventHashesListName' | 'QuickNodeWebhookSecurityToken' | 'ThirdwebSecretKey'
|
|
1293
|
+
key: 'AlchemyApiKey' | 'AlchemyGasPolicyId' | 'AlchemyAuthToken' | 'QuickNodeApiKey' | 'QuickNodeEvmWalletFilter_WalletsListName' | 'QuickNodeEvmContractEvents_ContractsListName' | 'QuickNodeEvmContractEvents_EventHashesListName' | 'QuickNodeWebhookSecurityToken' | 'ThirdwebSecretKey';
|
|
1202
1294
|
type: 'String' | 'SecureString';
|
|
1203
1295
|
required: boolean;
|
|
1204
1296
|
set: boolean;
|
|
@@ -1222,6 +1314,17 @@ type SystemInfo = {
|
|
|
1222
1314
|
explorerUrl: string | null;
|
|
1223
1315
|
}>;
|
|
1224
1316
|
};
|
|
1317
|
+
type OperatorGas = {
|
|
1318
|
+
chainId: string;
|
|
1319
|
+
caip2Id: string;
|
|
1320
|
+
address: string;
|
|
1321
|
+
balance: string | null;
|
|
1322
|
+
symbol: string;
|
|
1323
|
+
decimals: number;
|
|
1324
|
+
sponsored: boolean;
|
|
1325
|
+
low: boolean;
|
|
1326
|
+
};
|
|
1327
|
+
type OperatorGasList = Array<OperatorGas>;
|
|
1225
1328
|
type Stats = {
|
|
1226
1329
|
from: string;
|
|
1227
1330
|
to: string;
|
|
@@ -1435,7 +1538,7 @@ type AppsUpdateData = {
|
|
|
1435
1538
|
websiteUrl?: string | null;
|
|
1436
1539
|
termsOfServiceUrl?: string | null;
|
|
1437
1540
|
privacyPolicyUrl?: string | null;
|
|
1438
|
-
|
|
1541
|
+
payoutChainId?: string | null;
|
|
1439
1542
|
payoutAddress?: string | null;
|
|
1440
1543
|
};
|
|
1441
1544
|
path?: never;
|
|
@@ -1456,7 +1559,7 @@ type AppsCreateData = {
|
|
|
1456
1559
|
websiteUrl?: string | null;
|
|
1457
1560
|
termsOfServiceUrl?: string | null;
|
|
1458
1561
|
privacyPolicyUrl?: string | null;
|
|
1459
|
-
|
|
1562
|
+
payoutChainId?: string | null;
|
|
1460
1563
|
payoutAddress?: string | null;
|
|
1461
1564
|
};
|
|
1462
1565
|
path?: never;
|
|
@@ -1498,6 +1601,23 @@ type AppsRemoveChainResponses = {
|
|
|
1498
1601
|
200: AppChain;
|
|
1499
1602
|
};
|
|
1500
1603
|
type AppsRemoveChainResponse = AppsRemoveChainResponses[keyof AppsRemoveChainResponses];
|
|
1604
|
+
type AppsUpdateChainData = {
|
|
1605
|
+
body: {
|
|
1606
|
+
x402Enabled: boolean;
|
|
1607
|
+
};
|
|
1608
|
+
path: {
|
|
1609
|
+
chainId: string;
|
|
1610
|
+
};
|
|
1611
|
+
query?: never;
|
|
1612
|
+
url: '/api/apps/chains/{chainId}';
|
|
1613
|
+
};
|
|
1614
|
+
type AppsUpdateChainResponses = {
|
|
1615
|
+
/**
|
|
1616
|
+
* Response for status 200
|
|
1617
|
+
*/
|
|
1618
|
+
200: AppChain;
|
|
1619
|
+
};
|
|
1620
|
+
type AppsUpdateChainResponse = AppsUpdateChainResponses[keyof AppsUpdateChainResponses];
|
|
1501
1621
|
type AppsSetChainData = {
|
|
1502
1622
|
body: {
|
|
1503
1623
|
address: string;
|
|
@@ -1515,6 +1635,55 @@ type AppsSetChainResponses = {
|
|
|
1515
1635
|
200: AppChain;
|
|
1516
1636
|
};
|
|
1517
1637
|
type AppsSetChainResponse = AppsSetChainResponses[keyof AppsSetChainResponses];
|
|
1638
|
+
type AppsSetX402Data = {
|
|
1639
|
+
body: {
|
|
1640
|
+
enabled: boolean;
|
|
1641
|
+
};
|
|
1642
|
+
path: {
|
|
1643
|
+
appId: string;
|
|
1644
|
+
};
|
|
1645
|
+
query?: never;
|
|
1646
|
+
url: '/api/apps/{appId}/x402';
|
|
1647
|
+
};
|
|
1648
|
+
type AppsSetX402Responses = {
|
|
1649
|
+
/**
|
|
1650
|
+
* Response for status 200
|
|
1651
|
+
*/
|
|
1652
|
+
200: App;
|
|
1653
|
+
};
|
|
1654
|
+
type AppsSetX402Response = AppsSetX402Responses[keyof AppsSetX402Responses];
|
|
1655
|
+
type AppsDisallowX402ChainData = {
|
|
1656
|
+
body?: never;
|
|
1657
|
+
path: {
|
|
1658
|
+
appId: string;
|
|
1659
|
+
chainId: string;
|
|
1660
|
+
};
|
|
1661
|
+
query?: never;
|
|
1662
|
+
url: '/api/apps/{appId}/x402/chains/{chainId}';
|
|
1663
|
+
};
|
|
1664
|
+
type AppsDisallowX402ChainResponses = {
|
|
1665
|
+
/**
|
|
1666
|
+
* Response for status 200
|
|
1667
|
+
*/
|
|
1668
|
+
200: App;
|
|
1669
|
+
};
|
|
1670
|
+
type AppsDisallowX402ChainResponse = AppsDisallowX402ChainResponses[keyof AppsDisallowX402ChainResponses];
|
|
1671
|
+
type AppsAllowX402ChainData = {
|
|
1672
|
+
body?: never;
|
|
1673
|
+
path: {
|
|
1674
|
+
appId: string;
|
|
1675
|
+
chainId: string;
|
|
1676
|
+
};
|
|
1677
|
+
query?: never;
|
|
1678
|
+
url: '/api/apps/{appId}/x402/chains/{chainId}';
|
|
1679
|
+
};
|
|
1680
|
+
type AppsAllowX402ChainResponses = {
|
|
1681
|
+
/**
|
|
1682
|
+
* Response for status 200
|
|
1683
|
+
*/
|
|
1684
|
+
200: App;
|
|
1685
|
+
};
|
|
1686
|
+
type AppsAllowX402ChainResponse = AppsAllowX402ChainResponses[keyof AppsAllowX402ChainResponses];
|
|
1518
1687
|
type ApiKeysListData = {
|
|
1519
1688
|
body?: never;
|
|
1520
1689
|
path?: never;
|
|
@@ -1683,7 +1852,8 @@ type ChainsDeleteResponses = {
|
|
|
1683
1852
|
type ChainsDeleteResponse = ChainsDeleteResponses[keyof ChainsDeleteResponses];
|
|
1684
1853
|
type ChainsUpdateData = {
|
|
1685
1854
|
body: {
|
|
1686
|
-
isActive
|
|
1855
|
+
isActive?: boolean;
|
|
1856
|
+
x402Enabled?: boolean;
|
|
1687
1857
|
};
|
|
1688
1858
|
path: {
|
|
1689
1859
|
id: string;
|
|
@@ -1705,9 +1875,10 @@ type ChainsConfigureData = {
|
|
|
1705
1875
|
kiteFactoryAddress: string;
|
|
1706
1876
|
usdPeggedTokenId: string;
|
|
1707
1877
|
settlementTokenId: string;
|
|
1708
|
-
onchainNotifierProviders: Array<'Alchemy' | 'QuickNode' | 'Thirdweb' | 'TrustWallet'
|
|
1709
|
-
gasSponsorProviders: Array<'Alchemy' | 'QuickNode' | 'Thirdweb' | 'TrustWallet'
|
|
1878
|
+
onchainNotifierProviders: Array<'Alchemy' | 'QuickNode' | 'Thirdweb' | 'TrustWallet'>;
|
|
1879
|
+
gasSponsorProviders: Array<'Alchemy' | 'QuickNode' | 'Thirdweb' | 'TrustWallet'>;
|
|
1710
1880
|
maxGasPrice?: string | null;
|
|
1881
|
+
x402Enabled?: boolean;
|
|
1711
1882
|
};
|
|
1712
1883
|
path: {
|
|
1713
1884
|
id: string;
|
|
@@ -1738,19 +1909,6 @@ type TokensGetByAddressResponses = {
|
|
|
1738
1909
|
200: TokenWithChain;
|
|
1739
1910
|
};
|
|
1740
1911
|
type TokensGetByAddressResponse = TokensGetByAddressResponses[keyof TokensGetByAddressResponses];
|
|
1741
|
-
type TokensListPayoutsData = {
|
|
1742
|
-
body?: never;
|
|
1743
|
-
path?: never;
|
|
1744
|
-
query?: never;
|
|
1745
|
-
url: '/api/tokens/payouts';
|
|
1746
|
-
};
|
|
1747
|
-
type TokensListPayoutsResponses = {
|
|
1748
|
-
/**
|
|
1749
|
-
* Response for status 200
|
|
1750
|
-
*/
|
|
1751
|
-
200: PayoutTokenList;
|
|
1752
|
-
};
|
|
1753
|
-
type TokensListPayoutsResponse = TokensListPayoutsResponses[keyof TokensListPayoutsResponses];
|
|
1754
1912
|
type TokensListData = {
|
|
1755
1913
|
body?: never;
|
|
1756
1914
|
path?: never;
|
|
@@ -2012,6 +2170,10 @@ type FeesCreateData = {
|
|
|
2012
2170
|
_in?: Array<string>;
|
|
2013
2171
|
};
|
|
2014
2172
|
};
|
|
2173
|
+
channel?: {
|
|
2174
|
+
_eq?: 'checkout' | 'x402';
|
|
2175
|
+
_in?: Array<'checkout' | 'x402'>;
|
|
2176
|
+
};
|
|
2015
2177
|
sourceAmount?: {
|
|
2016
2178
|
_eq?: string;
|
|
2017
2179
|
_gt?: string;
|
|
@@ -2089,6 +2251,10 @@ type FeesUpdateData = {
|
|
|
2089
2251
|
_in?: Array<string>;
|
|
2090
2252
|
};
|
|
2091
2253
|
};
|
|
2254
|
+
channel?: {
|
|
2255
|
+
_eq?: 'checkout' | 'x402';
|
|
2256
|
+
_in?: Array<'checkout' | 'x402'>;
|
|
2257
|
+
};
|
|
2092
2258
|
sourceAmount?: {
|
|
2093
2259
|
_eq?: string;
|
|
2094
2260
|
_gt?: string;
|
|
@@ -2160,7 +2326,7 @@ type KvSetData = {
|
|
|
2160
2326
|
value: string | null;
|
|
2161
2327
|
};
|
|
2162
2328
|
path: {
|
|
2163
|
-
key: 'AlchemyApiKey' | 'AlchemyGasPolicyId' | 'AlchemyAuthToken' | 'QuickNodeApiKey' | 'QuickNodeEvmWalletFilter_WalletsListName' | 'QuickNodeEvmContractEvents_ContractsListName' | 'QuickNodeEvmContractEvents_EventHashesListName' | 'QuickNodeWebhookSecurityToken' | 'ThirdwebSecretKey' |
|
|
2329
|
+
key: 'AlchemyApiKey' | 'AlchemyGasPolicyId' | 'AlchemyAuthToken' | 'QuickNodeApiKey' | 'QuickNodeEvmWalletFilter_WalletsListName' | 'QuickNodeEvmContractEvents_ContractsListName' | 'QuickNodeEvmContractEvents_EventHashesListName' | 'QuickNodeWebhookSecurityToken' | 'ThirdwebSecretKey' | string;
|
|
2164
2330
|
};
|
|
2165
2331
|
query?: never;
|
|
2166
2332
|
url: '/api/kv/{key}';
|
|
@@ -2185,6 +2351,19 @@ type OverviewInfoResponses = {
|
|
|
2185
2351
|
200: SystemInfo;
|
|
2186
2352
|
};
|
|
2187
2353
|
type OverviewInfoResponse = OverviewInfoResponses[keyof OverviewInfoResponses];
|
|
2354
|
+
type OverviewGasData = {
|
|
2355
|
+
body?: never;
|
|
2356
|
+
path?: never;
|
|
2357
|
+
query?: never;
|
|
2358
|
+
url: '/api/overview/gas';
|
|
2359
|
+
};
|
|
2360
|
+
type OverviewGasResponses = {
|
|
2361
|
+
/**
|
|
2362
|
+
* Response for status 200
|
|
2363
|
+
*/
|
|
2364
|
+
200: OperatorGasList;
|
|
2365
|
+
};
|
|
2366
|
+
type OverviewGasResponse = OverviewGasResponses[keyof OverviewGasResponses];
|
|
2188
2367
|
type OverviewStatsData = {
|
|
2189
2368
|
body?: never;
|
|
2190
2369
|
path?: never;
|
|
@@ -2207,7 +2386,8 @@ type OverviewEventsData = {
|
|
|
2207
2386
|
body?: never;
|
|
2208
2387
|
path?: never;
|
|
2209
2388
|
query?: {
|
|
2210
|
-
category?: 'Transfer' | 'Deposit' | 'Recovery' | 'ExcessRefund';
|
|
2389
|
+
category?: 'Transfer' | 'Deposit' | 'Recovery' | 'ExcessRefund' | 'Chain' | 'Payout';
|
|
2390
|
+
system?: boolean;
|
|
2211
2391
|
page?: string | number;
|
|
2212
2392
|
pageSize?: string | number;
|
|
2213
2393
|
};
|
|
@@ -2443,6 +2623,7 @@ type QuotesListData = {
|
|
|
2443
2623
|
query?: {
|
|
2444
2624
|
customerId?: string;
|
|
2445
2625
|
paymentLinkId?: string;
|
|
2626
|
+
channel?: 'checkout' | 'x402';
|
|
2446
2627
|
q?: string;
|
|
2447
2628
|
page?: string | number;
|
|
2448
2629
|
pageSize?: string | number;
|
|
@@ -2460,12 +2641,15 @@ type QuotesCreateData = {
|
|
|
2460
2641
|
body: {
|
|
2461
2642
|
chainId: string;
|
|
2462
2643
|
sourceTokenAddress: string;
|
|
2463
|
-
amount
|
|
2644
|
+
amount?: string;
|
|
2645
|
+
currency?: string;
|
|
2646
|
+
price?: string;
|
|
2464
2647
|
customerId?: string;
|
|
2465
2648
|
reference?: string;
|
|
2466
2649
|
meta?: {
|
|
2467
2650
|
[key: string]: unknown;
|
|
2468
2651
|
};
|
|
2652
|
+
channel?: 'checkout' | 'x402';
|
|
2469
2653
|
};
|
|
2470
2654
|
path?: never;
|
|
2471
2655
|
query?: never;
|
|
@@ -2527,6 +2711,21 @@ type TransfersCreateResponses = {
|
|
|
2527
2711
|
201: CreatedTransfer;
|
|
2528
2712
|
};
|
|
2529
2713
|
type TransfersCreateResponse = TransfersCreateResponses[keyof TransfersCreateResponses];
|
|
2714
|
+
type TransfersGetByPayinAddressData = {
|
|
2715
|
+
body?: never;
|
|
2716
|
+
path: {
|
|
2717
|
+
address: string;
|
|
2718
|
+
};
|
|
2719
|
+
query?: never;
|
|
2720
|
+
url: '/api/transfers/payin/{address}';
|
|
2721
|
+
};
|
|
2722
|
+
type TransfersGetByPayinAddressResponses = {
|
|
2723
|
+
/**
|
|
2724
|
+
* Response for status 200
|
|
2725
|
+
*/
|
|
2726
|
+
200: TransferDetails;
|
|
2727
|
+
};
|
|
2728
|
+
type TransfersGetByPayinAddressResponse = TransfersGetByPayinAddressResponses[keyof TransfersGetByPayinAddressResponses];
|
|
2530
2729
|
type TransfersGetData = {
|
|
2531
2730
|
body?: never;
|
|
2532
2731
|
path: {
|
|
@@ -2542,6 +2741,21 @@ type TransfersGetResponses = {
|
|
|
2542
2741
|
200: TransferDetails;
|
|
2543
2742
|
};
|
|
2544
2743
|
type TransfersGetResponse = TransfersGetResponses[keyof TransfersGetResponses];
|
|
2744
|
+
type TransfersRetryPayoutData = {
|
|
2745
|
+
body?: never;
|
|
2746
|
+
path: {
|
|
2747
|
+
id: string;
|
|
2748
|
+
};
|
|
2749
|
+
query?: never;
|
|
2750
|
+
url: '/api/transfers/{id}/payout/retry';
|
|
2751
|
+
};
|
|
2752
|
+
type TransfersRetryPayoutResponses = {
|
|
2753
|
+
/**
|
|
2754
|
+
* Response for status 200
|
|
2755
|
+
*/
|
|
2756
|
+
200: Payout;
|
|
2757
|
+
};
|
|
2758
|
+
type TransfersRetryPayoutResponse = TransfersRetryPayoutResponses[keyof TransfersRetryPayoutResponses];
|
|
2545
2759
|
type TransfersRefundData = {
|
|
2546
2760
|
body: {
|
|
2547
2761
|
useGasSponsor?: boolean;
|
|
@@ -2622,7 +2836,7 @@ type WebhooksCreateData = {
|
|
|
2622
2836
|
body: {
|
|
2623
2837
|
url: string;
|
|
2624
2838
|
label: string;
|
|
2625
|
-
categories: Array<'Transfer' | 'Deposit' | 'Recovery' | 'ExcessRefund'>;
|
|
2839
|
+
categories: Array<'Transfer' | 'Deposit' | 'Recovery' | 'ExcessRefund' | 'Chain' | 'Payout'>;
|
|
2626
2840
|
maxRetries?: string | number;
|
|
2627
2841
|
retryIntervalInSeconds?: string | number;
|
|
2628
2842
|
timeoutInSeconds?: string | number;
|
|
@@ -2638,6 +2852,98 @@ type WebhooksCreateResponses = {
|
|
|
2638
2852
|
201: CreatedWebhook;
|
|
2639
2853
|
};
|
|
2640
2854
|
type WebhooksCreateResponse = WebhooksCreateResponses[keyof WebhooksCreateResponses];
|
|
2855
|
+
type WebhooksListSystemData = {
|
|
2856
|
+
body?: never;
|
|
2857
|
+
path?: never;
|
|
2858
|
+
query?: {
|
|
2859
|
+
q?: string;
|
|
2860
|
+
page?: string | number;
|
|
2861
|
+
pageSize?: string | number;
|
|
2862
|
+
};
|
|
2863
|
+
url: '/api/webhooks/system';
|
|
2864
|
+
};
|
|
2865
|
+
type WebhooksListSystemResponses = {
|
|
2866
|
+
/**
|
|
2867
|
+
* Response for status 200
|
|
2868
|
+
*/
|
|
2869
|
+
200: WebhookPage;
|
|
2870
|
+
};
|
|
2871
|
+
type WebhooksListSystemResponse = WebhooksListSystemResponses[keyof WebhooksListSystemResponses];
|
|
2872
|
+
type WebhooksCreateSystemData = {
|
|
2873
|
+
body: {
|
|
2874
|
+
url: string;
|
|
2875
|
+
label: string;
|
|
2876
|
+
categories: Array<'Transfer' | 'Deposit' | 'Recovery' | 'ExcessRefund' | 'Chain' | 'Payout'>;
|
|
2877
|
+
maxRetries?: string | number;
|
|
2878
|
+
retryIntervalInSeconds?: string | number;
|
|
2879
|
+
timeoutInSeconds?: string | number;
|
|
2880
|
+
};
|
|
2881
|
+
path?: never;
|
|
2882
|
+
query?: never;
|
|
2883
|
+
url: '/api/webhooks/system';
|
|
2884
|
+
};
|
|
2885
|
+
type WebhooksCreateSystemResponses = {
|
|
2886
|
+
/**
|
|
2887
|
+
* Response for status 201
|
|
2888
|
+
*/
|
|
2889
|
+
201: CreatedWebhook;
|
|
2890
|
+
};
|
|
2891
|
+
type WebhooksCreateSystemResponse = WebhooksCreateSystemResponses[keyof WebhooksCreateSystemResponses];
|
|
2892
|
+
type WebhooksDeleteSystemData = {
|
|
2893
|
+
body?: never;
|
|
2894
|
+
path: {
|
|
2895
|
+
id: string;
|
|
2896
|
+
};
|
|
2897
|
+
query?: never;
|
|
2898
|
+
url: '/api/webhooks/system/{id}';
|
|
2899
|
+
};
|
|
2900
|
+
type WebhooksDeleteSystemResponses = {
|
|
2901
|
+
/**
|
|
2902
|
+
* Response for status 200
|
|
2903
|
+
*/
|
|
2904
|
+
200: Webhook;
|
|
2905
|
+
};
|
|
2906
|
+
type WebhooksDeleteSystemResponse = WebhooksDeleteSystemResponses[keyof WebhooksDeleteSystemResponses];
|
|
2907
|
+
type WebhooksUpdateSystemData = {
|
|
2908
|
+
body: {
|
|
2909
|
+
url?: string;
|
|
2910
|
+
label?: string;
|
|
2911
|
+
categories?: Array<'Transfer' | 'Deposit' | 'Recovery' | 'ExcessRefund' | 'Chain' | 'Payout'>;
|
|
2912
|
+
maxRetries?: string | number;
|
|
2913
|
+
retryIntervalInSeconds?: string | number;
|
|
2914
|
+
timeoutInSeconds?: string | number;
|
|
2915
|
+
};
|
|
2916
|
+
path: {
|
|
2917
|
+
id: string;
|
|
2918
|
+
};
|
|
2919
|
+
query?: never;
|
|
2920
|
+
url: '/api/webhooks/system/{id}';
|
|
2921
|
+
};
|
|
2922
|
+
type WebhooksUpdateSystemResponses = {
|
|
2923
|
+
/**
|
|
2924
|
+
* Response for status 200
|
|
2925
|
+
*/
|
|
2926
|
+
200: Webhook;
|
|
2927
|
+
};
|
|
2928
|
+
type WebhooksUpdateSystemResponse = WebhooksUpdateSystemResponses[keyof WebhooksUpdateSystemResponses];
|
|
2929
|
+
type WebhooksListSystemDeliveriesData = {
|
|
2930
|
+
body?: never;
|
|
2931
|
+
path: {
|
|
2932
|
+
id: string;
|
|
2933
|
+
};
|
|
2934
|
+
query?: {
|
|
2935
|
+
page?: string | number;
|
|
2936
|
+
pageSize?: string | number;
|
|
2937
|
+
};
|
|
2938
|
+
url: '/api/webhooks/system/{id}/deliveries';
|
|
2939
|
+
};
|
|
2940
|
+
type WebhooksListSystemDeliveriesResponses = {
|
|
2941
|
+
/**
|
|
2942
|
+
* Response for status 200
|
|
2943
|
+
*/
|
|
2944
|
+
200: WebhookDeliveryPage;
|
|
2945
|
+
};
|
|
2946
|
+
type WebhooksListSystemDeliveriesResponse = WebhooksListSystemDeliveriesResponses[keyof WebhooksListSystemDeliveriesResponses];
|
|
2641
2947
|
type WebhooksListDeliveriesData = {
|
|
2642
2948
|
body?: never;
|
|
2643
2949
|
path: {
|
|
@@ -2804,10 +3110,34 @@ declare class Apps extends HeyApiClient {
|
|
|
2804
3110
|
* Stop taking payments on a chain
|
|
2805
3111
|
*/
|
|
2806
3112
|
removeChain<ThrowOnError extends boolean = true>(options: Options<AppsRemoveChainData, ThrowOnError>): RequestResult<AppsRemoveChainResponses, unknown, ThrowOnError>;
|
|
3113
|
+
/**
|
|
3114
|
+
* Accept x402 on a chain, or stop
|
|
3115
|
+
*
|
|
3116
|
+
* Turning x402 on answers 403 when the app isn't enabled for x402 or the chain isn't in its allowed list
|
|
3117
|
+
*/
|
|
3118
|
+
updateChain<ThrowOnError extends boolean = true>(options: Options<AppsUpdateChainData, ThrowOnError>): RequestResult<AppsUpdateChainResponses, unknown, ThrowOnError>;
|
|
2807
3119
|
/**
|
|
2808
3120
|
* Take payments on a chain, paid to an address there
|
|
2809
3121
|
*/
|
|
2810
3122
|
setChain<ThrowOnError extends boolean = true>(options: Options<AppsSetChainData, ThrowOnError>): RequestResult<AppsSetChainResponses, unknown, ThrowOnError>;
|
|
3123
|
+
/**
|
|
3124
|
+
* Let an app use x402, or stop
|
|
3125
|
+
*
|
|
3126
|
+
* Let's the root key give (or stop) an app access to x402
|
|
3127
|
+
*/
|
|
3128
|
+
setX402<ThrowOnError extends boolean = true>(options: Options<AppsSetX402Data, ThrowOnError>): RequestResult<AppsSetX402Responses, unknown, ThrowOnError>;
|
|
3129
|
+
/**
|
|
3130
|
+
* Stop allowing an app to accept x402 on a chain
|
|
3131
|
+
*
|
|
3132
|
+
* Idempotent.
|
|
3133
|
+
*/
|
|
3134
|
+
disallowX402Chain<ThrowOnError extends boolean = true>(options: Options<AppsDisallowX402ChainData, ThrowOnError>): RequestResult<AppsDisallowX402ChainResponses, unknown, ThrowOnError>;
|
|
3135
|
+
/**
|
|
3136
|
+
* Allow an app to accept x402 on a chain
|
|
3137
|
+
*
|
|
3138
|
+
* Idempotent. The chain doesn't have to be one of the app's chains yet.
|
|
3139
|
+
*/
|
|
3140
|
+
allowX402Chain<ThrowOnError extends boolean = true>(options: Options<AppsAllowX402ChainData, ThrowOnError>): RequestResult<AppsAllowX402ChainResponses, unknown, ThrowOnError>;
|
|
2811
3141
|
}
|
|
2812
3142
|
declare class ApiKeys extends HeyApiClient {
|
|
2813
3143
|
/**
|
|
@@ -2857,7 +3187,7 @@ declare class Chains extends HeyApiClient {
|
|
|
2857
3187
|
*/
|
|
2858
3188
|
delete<ThrowOnError extends boolean = true>(options: Options<ChainsDeleteData, ThrowOnError>): RequestResult<ChainsDeleteResponses, unknown, ThrowOnError>;
|
|
2859
3189
|
/**
|
|
2860
|
-
*
|
|
3190
|
+
* Turn a chain on or off, or its x402
|
|
2861
3191
|
*/
|
|
2862
3192
|
update<ThrowOnError extends boolean = true>(options: Options<ChainsUpdateData, ThrowOnError>): RequestResult<ChainsUpdateResponses, unknown, ThrowOnError>;
|
|
2863
3193
|
/**
|
|
@@ -2870,10 +3200,6 @@ declare class Tokens extends HeyApiClient {
|
|
|
2870
3200
|
* Get a token by its contract address
|
|
2871
3201
|
*/
|
|
2872
3202
|
getByAddress<ThrowOnError extends boolean = true>(options: Options<TokensGetByAddressData, ThrowOnError>): RequestResult<TokensGetByAddressResponses, unknown, ThrowOnError>;
|
|
2873
|
-
/**
|
|
2874
|
-
* Tokens an app can be paid out in through NEAR Intents
|
|
2875
|
-
*/
|
|
2876
|
-
listPayouts<ThrowOnError extends boolean = true>(options?: Options<TokensListPayoutsData, ThrowOnError>): RequestResult<TokensListPayoutsResponses, unknown, ThrowOnError>;
|
|
2877
3203
|
/**
|
|
2878
3204
|
* List tokens
|
|
2879
3205
|
*/
|
|
@@ -2976,6 +3302,10 @@ declare class Overview extends HeyApiClient {
|
|
|
2976
3302
|
* Service version & operator address
|
|
2977
3303
|
*/
|
|
2978
3304
|
info<ThrowOnError extends boolean = true>(options?: Options<OverviewInfoData, ThrowOnError>): RequestResult<OverviewInfoResponses, unknown, ThrowOnError>;
|
|
3305
|
+
/**
|
|
3306
|
+
* The operator's gas on each chain
|
|
3307
|
+
*/
|
|
3308
|
+
gas<ThrowOnError extends boolean = true>(options?: Options<OverviewGasData, ThrowOnError>): RequestResult<OverviewGasResponses, unknown, ThrowOnError>;
|
|
2979
3309
|
/**
|
|
2980
3310
|
* Basic dashboard statistics
|
|
2981
3311
|
*/
|
|
@@ -3041,7 +3371,7 @@ declare class Quotes extends HeyApiClient {
|
|
|
3041
3371
|
*/
|
|
3042
3372
|
list<ThrowOnError extends boolean = true>(options?: Options<QuotesListData, ThrowOnError>): RequestResult<QuotesListResponses, unknown, ThrowOnError>;
|
|
3043
3373
|
/**
|
|
3044
|
-
* Quote a payment of an exact amount in a token
|
|
3374
|
+
* Quote a payment of an exact amount in a token, or of a price in a currency
|
|
3045
3375
|
*/
|
|
3046
3376
|
create<ThrowOnError extends boolean = true>(options: Options<QuotesCreateData, ThrowOnError>): RequestResult<QuotesCreateResponses, unknown, ThrowOnError>;
|
|
3047
3377
|
/**
|
|
@@ -3058,10 +3388,18 @@ declare class Transfers extends HeyApiClient {
|
|
|
3058
3388
|
* Create transfer for a quote
|
|
3059
3389
|
*/
|
|
3060
3390
|
create<ThrowOnError extends boolean = true>(options: Options<TransfersCreateData, ThrowOnError>): RequestResult<TransfersCreateResponses, unknown, ThrowOnError>;
|
|
3391
|
+
/**
|
|
3392
|
+
* Get a transfer by its pay-in address
|
|
3393
|
+
*/
|
|
3394
|
+
getByPayinAddress<ThrowOnError extends boolean = true>(options: Options<TransfersGetByPayinAddressData, ThrowOnError>): RequestResult<TransfersGetByPayinAddressResponses, unknown, ThrowOnError>;
|
|
3061
3395
|
/**
|
|
3062
3396
|
* Get a transfer
|
|
3063
3397
|
*/
|
|
3064
3398
|
get<ThrowOnError extends boolean = true>(options: Options<TransfersGetData, ThrowOnError>): RequestResult<TransfersGetResponses, unknown, ThrowOnError>;
|
|
3399
|
+
/**
|
|
3400
|
+
* Retry a failed payout's attestation or mint
|
|
3401
|
+
*/
|
|
3402
|
+
retryPayout<ThrowOnError extends boolean = true>(options: Options<TransfersRetryPayoutData, ThrowOnError>): RequestResult<TransfersRetryPayoutResponses, unknown, ThrowOnError>;
|
|
3065
3403
|
/**
|
|
3066
3404
|
* Refund a transfer
|
|
3067
3405
|
*/
|
|
@@ -3084,6 +3422,28 @@ declare class Webhooks extends HeyApiClient {
|
|
|
3084
3422
|
* Create a webhook
|
|
3085
3423
|
*/
|
|
3086
3424
|
create<ThrowOnError extends boolean = true>(options: Options<WebhooksCreateData, ThrowOnError>): RequestResult<WebhooksCreateResponses, unknown, ThrowOnError>;
|
|
3425
|
+
/**
|
|
3426
|
+
* List system webhooks
|
|
3427
|
+
*
|
|
3428
|
+
* System webhooks belong to no app and hear about the whole server, such as Chain events. They only take system categories.
|
|
3429
|
+
*/
|
|
3430
|
+
listSystem<ThrowOnError extends boolean = true>(options?: Options<WebhooksListSystemData, ThrowOnError>): RequestResult<WebhooksListSystemResponses, unknown, ThrowOnError>;
|
|
3431
|
+
/**
|
|
3432
|
+
* Create a system webhook
|
|
3433
|
+
*/
|
|
3434
|
+
createSystem<ThrowOnError extends boolean = true>(options: Options<WebhooksCreateSystemData, ThrowOnError>): RequestResult<WebhooksCreateSystemResponses, unknown, ThrowOnError>;
|
|
3435
|
+
/**
|
|
3436
|
+
* Delete a system webhook
|
|
3437
|
+
*/
|
|
3438
|
+
deleteSystem<ThrowOnError extends boolean = true>(options: Options<WebhooksDeleteSystemData, ThrowOnError>): RequestResult<WebhooksDeleteSystemResponses, unknown, ThrowOnError>;
|
|
3439
|
+
/**
|
|
3440
|
+
* Update a system webhook
|
|
3441
|
+
*/
|
|
3442
|
+
updateSystem<ThrowOnError extends boolean = true>(options: Options<WebhooksUpdateSystemData, ThrowOnError>): RequestResult<WebhooksUpdateSystemResponses, unknown, ThrowOnError>;
|
|
3443
|
+
/**
|
|
3444
|
+
* List a system webhook's delivery attempts
|
|
3445
|
+
*/
|
|
3446
|
+
listSystemDeliveries<ThrowOnError extends boolean = true>(options: Options<WebhooksListSystemDeliveriesData, ThrowOnError>): RequestResult<WebhooksListSystemDeliveriesResponses, unknown, ThrowOnError>;
|
|
3087
3447
|
/**
|
|
3088
3448
|
* List a webhook's delivery attempts
|
|
3089
3449
|
*/
|
|
@@ -3199,12 +3559,60 @@ export declare class KiteError extends Error {
|
|
|
3199
3559
|
}
|
|
3200
3560
|
//#endregion
|
|
3201
3561
|
//#region src/webhooks.d.ts
|
|
3562
|
+
/** The states a chain moves through, announced as Chain events. */
|
|
3563
|
+
type ChainStatus = "Live" | "Deactivated" | "Deleted";
|
|
3564
|
+
/** The data of a Chain event. */
|
|
3565
|
+
type ChainEventData = {
|
|
3566
|
+
chainId: string;
|
|
3567
|
+
caip2Id: string;
|
|
3568
|
+
name: string;
|
|
3569
|
+
testnet: boolean;
|
|
3570
|
+
beta: boolean;
|
|
3571
|
+
settlementToken: {
|
|
3572
|
+
id: string;
|
|
3573
|
+
address: string;
|
|
3574
|
+
symbol: string;
|
|
3575
|
+
decimals: number;
|
|
3576
|
+
} | null;
|
|
3577
|
+
/** Whether Kite allows x402 on the chain at all. */
|
|
3578
|
+
x402: boolean;
|
|
3579
|
+
/** Whether payments on the chain can be paid out through CCTP. */
|
|
3580
|
+
CCTPPayout: boolean;
|
|
3581
|
+
/** Why, when there's more to say, e.g. a deploy dropped the chain. */
|
|
3582
|
+
reason?: string;
|
|
3583
|
+
};
|
|
3584
|
+
/** The states a CCTP payout moves through, announced as Payout events. */
|
|
3585
|
+
type PayoutStatus = "Pending" | "Burned" | "Attested" | "Delivered" | "Fallback" | "Failed";
|
|
3586
|
+
/** The data of a Payout event. */
|
|
3587
|
+
type PayoutEventData = {
|
|
3588
|
+
transferId: string;
|
|
3589
|
+
status: PayoutStatus;
|
|
3590
|
+
destinationChainId: string;
|
|
3591
|
+
destinationCaip2Id: string;
|
|
3592
|
+
recipient: string;
|
|
3593
|
+
amount: string | null;
|
|
3594
|
+
maxFee: string;
|
|
3595
|
+
burnHash: string | null;
|
|
3596
|
+
burnExplorerUrl: string | null;
|
|
3597
|
+
destinationHash: string | null;
|
|
3598
|
+
destinationExplorerUrl: string | null;
|
|
3599
|
+
attested: boolean;
|
|
3600
|
+
attempts: number;
|
|
3601
|
+
error: string | null;
|
|
3602
|
+
createdAt: string;
|
|
3603
|
+
updatedAt: string;
|
|
3604
|
+
};
|
|
3202
3605
|
type WebhookEvent = {
|
|
3203
3606
|
/** The delivery id; the same event retried keeps its eventId. */
|
|
3204
3607
|
id: string;
|
|
3205
3608
|
eventId: string;
|
|
3206
3609
|
webhookId: string;
|
|
3207
|
-
|
|
3610
|
+
/**
|
|
3611
|
+
* Chain is a system category: it reaches only system webhooks, which the
|
|
3612
|
+
* root key manages and which belong to no app. Its data is ChainEventData.
|
|
3613
|
+
* Payout events carry PayoutEventData.
|
|
3614
|
+
*/
|
|
3615
|
+
category: "Transfer" | "Deposit" | "Recovery" | "ExcessRefund" | "Chain" | "Payout";
|
|
3208
3616
|
previous: {
|
|
3209
3617
|
status: string | null;
|
|
3210
3618
|
};
|
|
@@ -3233,4 +3641,4 @@ export declare const verifyWebhook: (input: {
|
|
|
3233
3641
|
tolerance?: number;
|
|
3234
3642
|
}) => Promise<WebhookEvent>;
|
|
3235
3643
|
//#endregion
|
|
3236
|
-
export type { ApiKey, ApiKeyPage, ApiKeysCreateData, ApiKeysCreateResponse, ApiKeysCreateResponses, ApiKeysDeleteData, ApiKeysDeleteResponse, ApiKeysDeleteResponses, ApiKeysGetData, ApiKeysGetResponse, ApiKeysGetResponses, ApiKeysListData, ApiKeysListResponse, ApiKeysListResponses, ApiKeysRevokeData, ApiKeysRevokeResponse, ApiKeysRevokeResponses, ApiKeysUpdateData, ApiKeysUpdateResponse, ApiKeysUpdateResponses, App, AppChain, AppChainList, AppPage, AppsCreateData, AppsCreateResponse, AppsCreateResponses, AppsDeleteData, AppsDeleteResponse, AppsDeleteResponses, AppsGetData, AppsGetResponse, AppsGetResponses, AppsListChainsData, AppsListChainsResponse, AppsListChainsResponses, AppsListData, AppsListResponse, AppsListResponses, AppsRemoveChainData, AppsRemoveChainResponse, AppsRemoveChainResponses, AppsSetChainData, AppsSetChainResponse, AppsSetChainResponses, AppsUpdateData, AppsUpdateResponse, AppsUpdateResponses, Chain, ChainConfig, ChainWithConfig, ChainWithConfigList, ChainsConfigureData, ChainsConfigureResponse, ChainsConfigureResponses, ChainsCreateData, ChainsCreateResponse, ChainsCreateResponses, ChainsDeleteData, ChainsDeleteResponse, ChainsDeleteResponses, ChainsListData, ChainsListFullData, ChainsListFullResponse, ChainsListFullResponses, ChainsListResponse, ChainsListResponses, ChainsListSupportedData, ChainsListSupportedResponse, ChainsListSupportedResponses, ChainsUpdateData, ChainsUpdateResponse, ChainsUpdateResponses, Checkout, CheckoutCancelTransferData, CheckoutCancelTransferResponse, CheckoutCancelTransferResponses, CheckoutGetData, CheckoutGetResponse, CheckoutGetResponses, CheckoutGetTransferData, CheckoutGetTransferResponse, CheckoutGetTransferResponses, CheckoutOpenTransferData, CheckoutOpenTransferResponse, CheckoutOpenTransferResponses, CheckoutQuoteData, CheckoutQuoteResponse, CheckoutQuoteResponses, CheckoutReportPaidData, CheckoutReportPaidResponse, CheckoutReportPaidResponses, CheckoutTransfer, ClientOptions, ConfiguredChain, ConfiguredChainList, CreatedTransfer, CreatedWebhook, Customer, CustomerPage, CustomersDeleteData, CustomersDeleteResponse, CustomersDeleteResponses, CustomersGetData, CustomersGetResponse, CustomersGetResponses, CustomersListData, CustomersListResponse, CustomersListResponses, CustomersUpsertData, CustomersUpsertResponse, CustomersUpsertResponses, Event, EventPage, Fee, FeePage, FeeWithChain, FeesCreateData, FeesCreateResponse, FeesCreateResponses, FeesDeleteData, FeesDeleteResponse, FeesDeleteResponses, FeesGetData, FeesGetResponse, FeesGetResponses, FeesListData, FeesListResponse, FeesListResponses, FeesUpdateData, FeesUpdateResponse, FeesUpdateResponses, KiteAuth, KiteOptions, KvDeleteData, KvDeleteResponse, KvDeleteResponses, KvEntry, KvEntryList, KvListData, KvListProvidersData, KvListProvidersResponse, KvListProvidersResponses, KvListResponse, KvListResponses, KvSetData, KvSetResponse, KvSetResponses, OverviewEventsData, OverviewEventsResponse, OverviewEventsResponses, OverviewInfoData, OverviewInfoResponse, OverviewInfoResponses, OverviewStatsData, OverviewStatsResponse, OverviewStatsResponses, PaymentLink, PaymentLinkPage, PaymentLinksCreateData, PaymentLinksCreateResponse, PaymentLinksCreateResponses, PaymentLinksDeleteData, PaymentLinksDeleteResponse, PaymentLinksDeleteResponses, PaymentLinksGetData, PaymentLinksGetResponse, PaymentLinksGetResponses, PaymentLinksListCurrenciesData, PaymentLinksListCurrenciesResponse, PaymentLinksListCurrenciesResponses, PaymentLinksListData, PaymentLinksListResponse, PaymentLinksListResponses, PaymentLinksQuoteData, PaymentLinksQuoteResponse, PaymentLinksQuoteResponses, PaymentLinksUpdateData, PaymentLinksUpdateResponse, PaymentLinksUpdateResponses, Payout,
|
|
3644
|
+
export type { ApiKey, ApiKeyPage, ApiKeysCreateData, ApiKeysCreateResponse, ApiKeysCreateResponses, ApiKeysDeleteData, ApiKeysDeleteResponse, ApiKeysDeleteResponses, ApiKeysGetData, ApiKeysGetResponse, ApiKeysGetResponses, ApiKeysListData, ApiKeysListResponse, ApiKeysListResponses, ApiKeysRevokeData, ApiKeysRevokeResponse, ApiKeysRevokeResponses, ApiKeysUpdateData, ApiKeysUpdateResponse, ApiKeysUpdateResponses, App, AppChain, AppChainList, AppPage, AppsAllowX402ChainData, AppsAllowX402ChainResponse, AppsAllowX402ChainResponses, AppsCreateData, AppsCreateResponse, AppsCreateResponses, AppsDeleteData, AppsDeleteResponse, AppsDeleteResponses, AppsDisallowX402ChainData, AppsDisallowX402ChainResponse, AppsDisallowX402ChainResponses, AppsGetData, AppsGetResponse, AppsGetResponses, AppsListChainsData, AppsListChainsResponse, AppsListChainsResponses, AppsListData, AppsListResponse, AppsListResponses, AppsRemoveChainData, AppsRemoveChainResponse, AppsRemoveChainResponses, AppsSetChainData, AppsSetChainResponse, AppsSetChainResponses, AppsSetX402Data, AppsSetX402Response, AppsSetX402Responses, AppsUpdateChainData, AppsUpdateChainResponse, AppsUpdateChainResponses, AppsUpdateData, AppsUpdateResponse, AppsUpdateResponses, Chain, ChainConfig, ChainEventData, ChainStatus, ChainWithConfig, ChainWithConfigList, ChainsConfigureData, ChainsConfigureResponse, ChainsConfigureResponses, ChainsCreateData, ChainsCreateResponse, ChainsCreateResponses, ChainsDeleteData, ChainsDeleteResponse, ChainsDeleteResponses, ChainsListData, ChainsListFullData, ChainsListFullResponse, ChainsListFullResponses, ChainsListResponse, ChainsListResponses, ChainsListSupportedData, ChainsListSupportedResponse, ChainsListSupportedResponses, ChainsUpdateData, ChainsUpdateResponse, ChainsUpdateResponses, Checkout, CheckoutCancelTransferData, CheckoutCancelTransferResponse, CheckoutCancelTransferResponses, CheckoutGetData, CheckoutGetResponse, CheckoutGetResponses, CheckoutGetTransferData, CheckoutGetTransferResponse, CheckoutGetTransferResponses, CheckoutOpenTransferData, CheckoutOpenTransferResponse, CheckoutOpenTransferResponses, CheckoutQuoteData, CheckoutQuoteResponse, CheckoutQuoteResponses, CheckoutReportPaidData, CheckoutReportPaidResponse, CheckoutReportPaidResponses, CheckoutTransfer, ClientOptions, ConfiguredChain, ConfiguredChainList, CreatedTransfer, CreatedWebhook, Customer, CustomerPage, CustomersDeleteData, CustomersDeleteResponse, CustomersDeleteResponses, CustomersGetData, CustomersGetResponse, CustomersGetResponses, CustomersListData, CustomersListResponse, CustomersListResponses, CustomersUpsertData, CustomersUpsertResponse, CustomersUpsertResponses, Event, EventPage, Fee, FeePage, FeeWithChain, FeesCreateData, FeesCreateResponse, FeesCreateResponses, FeesDeleteData, FeesDeleteResponse, FeesDeleteResponses, FeesGetData, FeesGetResponse, FeesGetResponses, FeesListData, FeesListResponse, FeesListResponses, FeesUpdateData, FeesUpdateResponse, FeesUpdateResponses, KiteAuth, KiteOptions, KvDeleteData, KvDeleteResponse, KvDeleteResponses, KvEntry, KvEntryList, KvListData, KvListProvidersData, KvListProvidersResponse, KvListProvidersResponses, KvListResponse, KvListResponses, KvSetData, KvSetResponse, KvSetResponses, OperatorGas, OperatorGasList, OverviewEventsData, OverviewEventsResponse, OverviewEventsResponses, OverviewGasData, OverviewGasResponse, OverviewGasResponses, OverviewInfoData, OverviewInfoResponse, OverviewInfoResponses, OverviewStatsData, OverviewStatsResponse, OverviewStatsResponses, PaymentLink, PaymentLinkPage, PaymentLinksCreateData, PaymentLinksCreateResponse, PaymentLinksCreateResponses, PaymentLinksDeleteData, PaymentLinksDeleteResponse, PaymentLinksDeleteResponses, PaymentLinksGetData, PaymentLinksGetResponse, PaymentLinksGetResponses, PaymentLinksListCurrenciesData, PaymentLinksListCurrenciesResponse, PaymentLinksListCurrenciesResponses, PaymentLinksListData, PaymentLinksListResponse, PaymentLinksListResponses, PaymentLinksQuoteData, PaymentLinksQuoteResponse, PaymentLinksQuoteResponses, PaymentLinksUpdateData, PaymentLinksUpdateResponse, PaymentLinksUpdateResponses, Payout, PayoutEventData, PayoutStatus, PriceFeed, PriceFeedWithChain, PriceFeedWithChainList, PriceFeedsCreateData, PriceFeedsCreateResponse, PriceFeedsCreateResponses, PriceFeedsDeleteData, PriceFeedsDeleteResponse, PriceFeedsDeleteResponses, PriceFeedsListData, PriceFeedsListResponse, PriceFeedsListResponses, ProviderStatus, ProviderStatusList, Quote, QuoteDetails, QuoteFee, QuotePage, QuotesCreateData, QuotesCreateResponse, QuotesCreateResponses, QuotesGetData, QuotesGetResponse, QuotesGetResponses, QuotesListData, QuotesListResponse, QuotesListResponses, RatesGetData, RatesGetResponse, RatesGetResponses, Stats, SupportedChain, SupportedChainList, SystemInfo, Token, TokenPage, TokenWithChain, TokensDeleteData, TokensDeleteResponse, TokensDeleteResponses, TokensGetByAddressData, TokensGetByAddressResponse, TokensGetByAddressResponses, TokensListData, TokensListResponse, TokensListResponses, TokensUpdateData, TokensUpdateResponse, TokensUpdateResponses, Transfer, TransferDetails, TransferListItem, TransferPage, TransferTimelineEntry, TransfersCreateData, TransfersCreateResponse, TransfersCreateResponses, TransfersGetByPayinAddressData, TransfersGetByPayinAddressResponse, TransfersGetByPayinAddressResponses, TransfersGetData, TransfersGetResponse, TransfersGetResponses, TransfersListData, TransfersListResponse, TransfersListResponses, TransfersRecoverBalanceData, TransfersRecoverBalanceResponse, TransfersRecoverBalanceResponses, TransfersRecoverData, TransfersRecoverResponse, TransfersRecoverResponses, TransfersRefundData, TransfersRefundResponse, TransfersRefundResponses, TransfersRetryPayoutData, TransfersRetryPayoutResponse, TransfersRetryPayoutResponses, Webhook, WebhookDelivery, WebhookDeliveryPage, WebhookEvent, WebhookPage, WebhooksCreateData, WebhooksCreateResponse, WebhooksCreateResponses, WebhooksCreateSystemData, WebhooksCreateSystemResponse, WebhooksCreateSystemResponses, WebhooksDeleteData, WebhooksDeleteResponse, WebhooksDeleteResponses, WebhooksDeleteSystemData, WebhooksDeleteSystemResponse, WebhooksDeleteSystemResponses, WebhooksListData, WebhooksListDeliveriesData, WebhooksListDeliveriesResponse, WebhooksListDeliveriesResponses, WebhooksListResponse, WebhooksListResponses, WebhooksListSystemData, WebhooksListSystemDeliveriesData, WebhooksListSystemDeliveriesResponse, WebhooksListSystemDeliveriesResponses, WebhooksListSystemResponse, WebhooksListSystemResponses, WebhooksUpdateSystemData, WebhooksUpdateSystemResponse, WebhooksUpdateSystemResponses, X402PayData, X402PayResponse, X402PayResponses, X402PaymentRequirements, X402RequirementsData, X402RequirementsResponse, X402RequirementsResponses, X402SettleData, X402SettleResponse, X402SettleResponses, X402SettleResult, X402Supported, X402SupportedData, X402SupportedResponse, X402SupportedResponses, X402VerifyData, X402VerifyResponse, X402VerifyResponses, X402VerifyResult };
|