@kite-01/sdk 2.1.0 → 2.3.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/dist/index.d.cts +134 -2
- package/dist/index.d.ts +134 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -423,6 +423,7 @@ type ConfiguredChainList = {
|
|
|
423
423
|
type SupportedChain = {
|
|
424
424
|
caip2Id: string;
|
|
425
425
|
name: string;
|
|
426
|
+
icon: string;
|
|
426
427
|
chainId: number | null;
|
|
427
428
|
testnet: boolean;
|
|
428
429
|
beta: boolean;
|
|
@@ -704,6 +705,38 @@ type Transfer = {
|
|
|
704
705
|
wrap: string;
|
|
705
706
|
} | null;
|
|
706
707
|
implementation: string;
|
|
708
|
+
} | {
|
|
709
|
+
id: string;
|
|
710
|
+
pay_in: string;
|
|
711
|
+
amount_in: string;
|
|
712
|
+
settlement_token: string;
|
|
713
|
+
settlement_recipient: string;
|
|
714
|
+
min_amount_out: string;
|
|
715
|
+
fees: Array<{
|
|
716
|
+
recipient: string;
|
|
717
|
+
amount: string;
|
|
718
|
+
}>;
|
|
719
|
+
refund_address: string;
|
|
720
|
+
expires_at: string;
|
|
721
|
+
swap: {
|
|
722
|
+
router: string;
|
|
723
|
+
path: Array<string>;
|
|
724
|
+
} | null;
|
|
725
|
+
implementation: string;
|
|
726
|
+
} | {
|
|
727
|
+
id: string;
|
|
728
|
+
token: string;
|
|
729
|
+
amount: string;
|
|
730
|
+
settle: string;
|
|
731
|
+
min_out: string;
|
|
732
|
+
route: string;
|
|
733
|
+
recipient: string;
|
|
734
|
+
fees: Array<{
|
|
735
|
+
recipient: string;
|
|
736
|
+
amount: string;
|
|
737
|
+
}>;
|
|
738
|
+
refund: string;
|
|
739
|
+
expires_at: string;
|
|
707
740
|
};
|
|
708
741
|
status: 'Created' | 'AwaitingDeposit' | 'DepositReceived' | 'Processing' | 'x402Settled' | 'Cancelled' | 'Refunded' | 'Failed' | 'Settled';
|
|
709
742
|
settlementBlockchainHash: string | null;
|
|
@@ -807,6 +840,38 @@ type TransferDetails = {
|
|
|
807
840
|
wrap: string;
|
|
808
841
|
} | null;
|
|
809
842
|
implementation: string;
|
|
843
|
+
} | {
|
|
844
|
+
id: string;
|
|
845
|
+
pay_in: string;
|
|
846
|
+
amount_in: string;
|
|
847
|
+
settlement_token: string;
|
|
848
|
+
settlement_recipient: string;
|
|
849
|
+
min_amount_out: string;
|
|
850
|
+
fees: Array<{
|
|
851
|
+
recipient: string;
|
|
852
|
+
amount: string;
|
|
853
|
+
}>;
|
|
854
|
+
refund_address: string;
|
|
855
|
+
expires_at: string;
|
|
856
|
+
swap: {
|
|
857
|
+
router: string;
|
|
858
|
+
path: Array<string>;
|
|
859
|
+
} | null;
|
|
860
|
+
implementation: string;
|
|
861
|
+
} | {
|
|
862
|
+
id: string;
|
|
863
|
+
token: string;
|
|
864
|
+
amount: string;
|
|
865
|
+
settle: string;
|
|
866
|
+
min_out: string;
|
|
867
|
+
route: string;
|
|
868
|
+
recipient: string;
|
|
869
|
+
fees: Array<{
|
|
870
|
+
recipient: string;
|
|
871
|
+
amount: string;
|
|
872
|
+
}>;
|
|
873
|
+
refund: string;
|
|
874
|
+
expires_at: string;
|
|
810
875
|
};
|
|
811
876
|
status: 'Created' | 'AwaitingDeposit' | 'DepositReceived' | 'Processing' | 'x402Settled' | 'Cancelled' | 'Refunded' | 'Failed' | 'Settled';
|
|
812
877
|
settlementBlockchainHash: string | null;
|
|
@@ -878,6 +943,38 @@ type TransferListItem = {
|
|
|
878
943
|
wrap: string;
|
|
879
944
|
} | null;
|
|
880
945
|
implementation: string;
|
|
946
|
+
} | {
|
|
947
|
+
id: string;
|
|
948
|
+
pay_in: string;
|
|
949
|
+
amount_in: string;
|
|
950
|
+
settlement_token: string;
|
|
951
|
+
settlement_recipient: string;
|
|
952
|
+
min_amount_out: string;
|
|
953
|
+
fees: Array<{
|
|
954
|
+
recipient: string;
|
|
955
|
+
amount: string;
|
|
956
|
+
}>;
|
|
957
|
+
refund_address: string;
|
|
958
|
+
expires_at: string;
|
|
959
|
+
swap: {
|
|
960
|
+
router: string;
|
|
961
|
+
path: Array<string>;
|
|
962
|
+
} | null;
|
|
963
|
+
implementation: string;
|
|
964
|
+
} | {
|
|
965
|
+
id: string;
|
|
966
|
+
token: string;
|
|
967
|
+
amount: string;
|
|
968
|
+
settle: string;
|
|
969
|
+
min_out: string;
|
|
970
|
+
route: string;
|
|
971
|
+
recipient: string;
|
|
972
|
+
fees: Array<{
|
|
973
|
+
recipient: string;
|
|
974
|
+
amount: string;
|
|
975
|
+
}>;
|
|
976
|
+
refund: string;
|
|
977
|
+
expires_at: string;
|
|
881
978
|
};
|
|
882
979
|
status: 'Created' | 'AwaitingDeposit' | 'DepositReceived' | 'Processing' | 'x402Settled' | 'Cancelled' | 'Refunded' | 'Failed' | 'Settled';
|
|
883
980
|
settlementBlockchainHash: string | null;
|
|
@@ -960,6 +1057,38 @@ type CreatedTransfer = {
|
|
|
960
1057
|
wrap: string;
|
|
961
1058
|
} | null;
|
|
962
1059
|
implementation: string;
|
|
1060
|
+
} | {
|
|
1061
|
+
id: string;
|
|
1062
|
+
pay_in: string;
|
|
1063
|
+
amount_in: string;
|
|
1064
|
+
settlement_token: string;
|
|
1065
|
+
settlement_recipient: string;
|
|
1066
|
+
min_amount_out: string;
|
|
1067
|
+
fees: Array<{
|
|
1068
|
+
recipient: string;
|
|
1069
|
+
amount: string;
|
|
1070
|
+
}>;
|
|
1071
|
+
refund_address: string;
|
|
1072
|
+
expires_at: string;
|
|
1073
|
+
swap: {
|
|
1074
|
+
router: string;
|
|
1075
|
+
path: Array<string>;
|
|
1076
|
+
} | null;
|
|
1077
|
+
implementation: string;
|
|
1078
|
+
} | {
|
|
1079
|
+
id: string;
|
|
1080
|
+
token: string;
|
|
1081
|
+
amount: string;
|
|
1082
|
+
settle: string;
|
|
1083
|
+
min_out: string;
|
|
1084
|
+
route: string;
|
|
1085
|
+
recipient: string;
|
|
1086
|
+
fees: Array<{
|
|
1087
|
+
recipient: string;
|
|
1088
|
+
amount: string;
|
|
1089
|
+
}>;
|
|
1090
|
+
refund: string;
|
|
1091
|
+
expires_at: string;
|
|
963
1092
|
};
|
|
964
1093
|
status: 'Created' | 'AwaitingDeposit' | 'DepositReceived' | 'Processing' | 'x402Settled' | 'Cancelled' | 'Refunded' | 'Failed' | 'Settled';
|
|
965
1094
|
settlementBlockchainHash: string | null;
|
|
@@ -1078,8 +1207,9 @@ type ProviderStatus = {
|
|
|
1078
1207
|
type ProviderStatusList = Array<ProviderStatus>;
|
|
1079
1208
|
type SystemInfo = {
|
|
1080
1209
|
version: string;
|
|
1210
|
+
demo: boolean;
|
|
1081
1211
|
operators: Array<{
|
|
1082
|
-
chainType: 'Evm' | 'Near';
|
|
1212
|
+
chainType: 'Evm' | 'Near' | 'Stellar' | 'Gno';
|
|
1083
1213
|
address: string;
|
|
1084
1214
|
}>;
|
|
1085
1215
|
chains: Array<{
|
|
@@ -1148,6 +1278,7 @@ type X402PaymentRequirements = {
|
|
|
1148
1278
|
extra: {
|
|
1149
1279
|
name?: string;
|
|
1150
1280
|
version?: string;
|
|
1281
|
+
areFeesSponsored?: boolean;
|
|
1151
1282
|
};
|
|
1152
1283
|
};
|
|
1153
1284
|
type X402VerifyResult = {
|
|
@@ -1211,9 +1342,10 @@ type Checkout = {
|
|
|
1211
1342
|
id: string;
|
|
1212
1343
|
caip2Id: string;
|
|
1213
1344
|
name: string;
|
|
1214
|
-
chainType: 'Evm' | 'Near';
|
|
1345
|
+
chainType: 'Evm' | 'Near' | 'Stellar' | 'Gno';
|
|
1215
1346
|
chainId: number | null;
|
|
1216
1347
|
testnet: boolean;
|
|
1348
|
+
beta: boolean;
|
|
1217
1349
|
icon: string;
|
|
1218
1350
|
nativeCurrency: {
|
|
1219
1351
|
name: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -423,6 +423,7 @@ type ConfiguredChainList = {
|
|
|
423
423
|
type SupportedChain = {
|
|
424
424
|
caip2Id: string;
|
|
425
425
|
name: string;
|
|
426
|
+
icon: string;
|
|
426
427
|
chainId: number | null;
|
|
427
428
|
testnet: boolean;
|
|
428
429
|
beta: boolean;
|
|
@@ -704,6 +705,38 @@ type Transfer = {
|
|
|
704
705
|
wrap: string;
|
|
705
706
|
} | null;
|
|
706
707
|
implementation: string;
|
|
708
|
+
} | {
|
|
709
|
+
id: string;
|
|
710
|
+
pay_in: string;
|
|
711
|
+
amount_in: string;
|
|
712
|
+
settlement_token: string;
|
|
713
|
+
settlement_recipient: string;
|
|
714
|
+
min_amount_out: string;
|
|
715
|
+
fees: Array<{
|
|
716
|
+
recipient: string;
|
|
717
|
+
amount: string;
|
|
718
|
+
}>;
|
|
719
|
+
refund_address: string;
|
|
720
|
+
expires_at: string;
|
|
721
|
+
swap: {
|
|
722
|
+
router: string;
|
|
723
|
+
path: Array<string>;
|
|
724
|
+
} | null;
|
|
725
|
+
implementation: string;
|
|
726
|
+
} | {
|
|
727
|
+
id: string;
|
|
728
|
+
token: string;
|
|
729
|
+
amount: string;
|
|
730
|
+
settle: string;
|
|
731
|
+
min_out: string;
|
|
732
|
+
route: string;
|
|
733
|
+
recipient: string;
|
|
734
|
+
fees: Array<{
|
|
735
|
+
recipient: string;
|
|
736
|
+
amount: string;
|
|
737
|
+
}>;
|
|
738
|
+
refund: string;
|
|
739
|
+
expires_at: string;
|
|
707
740
|
};
|
|
708
741
|
status: 'Created' | 'AwaitingDeposit' | 'DepositReceived' | 'Processing' | 'x402Settled' | 'Cancelled' | 'Refunded' | 'Failed' | 'Settled';
|
|
709
742
|
settlementBlockchainHash: string | null;
|
|
@@ -807,6 +840,38 @@ type TransferDetails = {
|
|
|
807
840
|
wrap: string;
|
|
808
841
|
} | null;
|
|
809
842
|
implementation: string;
|
|
843
|
+
} | {
|
|
844
|
+
id: string;
|
|
845
|
+
pay_in: string;
|
|
846
|
+
amount_in: string;
|
|
847
|
+
settlement_token: string;
|
|
848
|
+
settlement_recipient: string;
|
|
849
|
+
min_amount_out: string;
|
|
850
|
+
fees: Array<{
|
|
851
|
+
recipient: string;
|
|
852
|
+
amount: string;
|
|
853
|
+
}>;
|
|
854
|
+
refund_address: string;
|
|
855
|
+
expires_at: string;
|
|
856
|
+
swap: {
|
|
857
|
+
router: string;
|
|
858
|
+
path: Array<string>;
|
|
859
|
+
} | null;
|
|
860
|
+
implementation: string;
|
|
861
|
+
} | {
|
|
862
|
+
id: string;
|
|
863
|
+
token: string;
|
|
864
|
+
amount: string;
|
|
865
|
+
settle: string;
|
|
866
|
+
min_out: string;
|
|
867
|
+
route: string;
|
|
868
|
+
recipient: string;
|
|
869
|
+
fees: Array<{
|
|
870
|
+
recipient: string;
|
|
871
|
+
amount: string;
|
|
872
|
+
}>;
|
|
873
|
+
refund: string;
|
|
874
|
+
expires_at: string;
|
|
810
875
|
};
|
|
811
876
|
status: 'Created' | 'AwaitingDeposit' | 'DepositReceived' | 'Processing' | 'x402Settled' | 'Cancelled' | 'Refunded' | 'Failed' | 'Settled';
|
|
812
877
|
settlementBlockchainHash: string | null;
|
|
@@ -878,6 +943,38 @@ type TransferListItem = {
|
|
|
878
943
|
wrap: string;
|
|
879
944
|
} | null;
|
|
880
945
|
implementation: string;
|
|
946
|
+
} | {
|
|
947
|
+
id: string;
|
|
948
|
+
pay_in: string;
|
|
949
|
+
amount_in: string;
|
|
950
|
+
settlement_token: string;
|
|
951
|
+
settlement_recipient: string;
|
|
952
|
+
min_amount_out: string;
|
|
953
|
+
fees: Array<{
|
|
954
|
+
recipient: string;
|
|
955
|
+
amount: string;
|
|
956
|
+
}>;
|
|
957
|
+
refund_address: string;
|
|
958
|
+
expires_at: string;
|
|
959
|
+
swap: {
|
|
960
|
+
router: string;
|
|
961
|
+
path: Array<string>;
|
|
962
|
+
} | null;
|
|
963
|
+
implementation: string;
|
|
964
|
+
} | {
|
|
965
|
+
id: string;
|
|
966
|
+
token: string;
|
|
967
|
+
amount: string;
|
|
968
|
+
settle: string;
|
|
969
|
+
min_out: string;
|
|
970
|
+
route: string;
|
|
971
|
+
recipient: string;
|
|
972
|
+
fees: Array<{
|
|
973
|
+
recipient: string;
|
|
974
|
+
amount: string;
|
|
975
|
+
}>;
|
|
976
|
+
refund: string;
|
|
977
|
+
expires_at: string;
|
|
881
978
|
};
|
|
882
979
|
status: 'Created' | 'AwaitingDeposit' | 'DepositReceived' | 'Processing' | 'x402Settled' | 'Cancelled' | 'Refunded' | 'Failed' | 'Settled';
|
|
883
980
|
settlementBlockchainHash: string | null;
|
|
@@ -960,6 +1057,38 @@ type CreatedTransfer = {
|
|
|
960
1057
|
wrap: string;
|
|
961
1058
|
} | null;
|
|
962
1059
|
implementation: string;
|
|
1060
|
+
} | {
|
|
1061
|
+
id: string;
|
|
1062
|
+
pay_in: string;
|
|
1063
|
+
amount_in: string;
|
|
1064
|
+
settlement_token: string;
|
|
1065
|
+
settlement_recipient: string;
|
|
1066
|
+
min_amount_out: string;
|
|
1067
|
+
fees: Array<{
|
|
1068
|
+
recipient: string;
|
|
1069
|
+
amount: string;
|
|
1070
|
+
}>;
|
|
1071
|
+
refund_address: string;
|
|
1072
|
+
expires_at: string;
|
|
1073
|
+
swap: {
|
|
1074
|
+
router: string;
|
|
1075
|
+
path: Array<string>;
|
|
1076
|
+
} | null;
|
|
1077
|
+
implementation: string;
|
|
1078
|
+
} | {
|
|
1079
|
+
id: string;
|
|
1080
|
+
token: string;
|
|
1081
|
+
amount: string;
|
|
1082
|
+
settle: string;
|
|
1083
|
+
min_out: string;
|
|
1084
|
+
route: string;
|
|
1085
|
+
recipient: string;
|
|
1086
|
+
fees: Array<{
|
|
1087
|
+
recipient: string;
|
|
1088
|
+
amount: string;
|
|
1089
|
+
}>;
|
|
1090
|
+
refund: string;
|
|
1091
|
+
expires_at: string;
|
|
963
1092
|
};
|
|
964
1093
|
status: 'Created' | 'AwaitingDeposit' | 'DepositReceived' | 'Processing' | 'x402Settled' | 'Cancelled' | 'Refunded' | 'Failed' | 'Settled';
|
|
965
1094
|
settlementBlockchainHash: string | null;
|
|
@@ -1078,8 +1207,9 @@ type ProviderStatus = {
|
|
|
1078
1207
|
type ProviderStatusList = Array<ProviderStatus>;
|
|
1079
1208
|
type SystemInfo = {
|
|
1080
1209
|
version: string;
|
|
1210
|
+
demo: boolean;
|
|
1081
1211
|
operators: Array<{
|
|
1082
|
-
chainType: 'Evm' | 'Near';
|
|
1212
|
+
chainType: 'Evm' | 'Near' | 'Stellar' | 'Gno';
|
|
1083
1213
|
address: string;
|
|
1084
1214
|
}>;
|
|
1085
1215
|
chains: Array<{
|
|
@@ -1148,6 +1278,7 @@ type X402PaymentRequirements = {
|
|
|
1148
1278
|
extra: {
|
|
1149
1279
|
name?: string;
|
|
1150
1280
|
version?: string;
|
|
1281
|
+
areFeesSponsored?: boolean;
|
|
1151
1282
|
};
|
|
1152
1283
|
};
|
|
1153
1284
|
type X402VerifyResult = {
|
|
@@ -1211,9 +1342,10 @@ type Checkout = {
|
|
|
1211
1342
|
id: string;
|
|
1212
1343
|
caip2Id: string;
|
|
1213
1344
|
name: string;
|
|
1214
|
-
chainType: 'Evm' | 'Near';
|
|
1345
|
+
chainType: 'Evm' | 'Near' | 'Stellar' | 'Gno';
|
|
1215
1346
|
chainId: number | null;
|
|
1216
1347
|
testnet: boolean;
|
|
1348
|
+
beta: boolean;
|
|
1217
1349
|
icon: string;
|
|
1218
1350
|
nativeCurrency: {
|
|
1219
1351
|
name: string;
|