@kite-01/sdk 2.1.0 → 2.2.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 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,24 @@ 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;
707
726
  };
708
727
  status: 'Created' | 'AwaitingDeposit' | 'DepositReceived' | 'Processing' | 'x402Settled' | 'Cancelled' | 'Refunded' | 'Failed' | 'Settled';
709
728
  settlementBlockchainHash: string | null;
@@ -807,6 +826,24 @@ type TransferDetails = {
807
826
  wrap: string;
808
827
  } | null;
809
828
  implementation: string;
829
+ } | {
830
+ id: string;
831
+ pay_in: string;
832
+ amount_in: string;
833
+ settlement_token: string;
834
+ settlement_recipient: string;
835
+ min_amount_out: string;
836
+ fees: Array<{
837
+ recipient: string;
838
+ amount: string;
839
+ }>;
840
+ refund_address: string;
841
+ expires_at: string;
842
+ swap: {
843
+ router: string;
844
+ path: Array<string>;
845
+ } | null;
846
+ implementation: string;
810
847
  };
811
848
  status: 'Created' | 'AwaitingDeposit' | 'DepositReceived' | 'Processing' | 'x402Settled' | 'Cancelled' | 'Refunded' | 'Failed' | 'Settled';
812
849
  settlementBlockchainHash: string | null;
@@ -878,6 +915,24 @@ type TransferListItem = {
878
915
  wrap: string;
879
916
  } | null;
880
917
  implementation: string;
918
+ } | {
919
+ id: string;
920
+ pay_in: string;
921
+ amount_in: string;
922
+ settlement_token: string;
923
+ settlement_recipient: string;
924
+ min_amount_out: string;
925
+ fees: Array<{
926
+ recipient: string;
927
+ amount: string;
928
+ }>;
929
+ refund_address: string;
930
+ expires_at: string;
931
+ swap: {
932
+ router: string;
933
+ path: Array<string>;
934
+ } | null;
935
+ implementation: string;
881
936
  };
882
937
  status: 'Created' | 'AwaitingDeposit' | 'DepositReceived' | 'Processing' | 'x402Settled' | 'Cancelled' | 'Refunded' | 'Failed' | 'Settled';
883
938
  settlementBlockchainHash: string | null;
@@ -960,6 +1015,24 @@ type CreatedTransfer = {
960
1015
  wrap: string;
961
1016
  } | null;
962
1017
  implementation: string;
1018
+ } | {
1019
+ id: string;
1020
+ pay_in: string;
1021
+ amount_in: string;
1022
+ settlement_token: string;
1023
+ settlement_recipient: string;
1024
+ min_amount_out: string;
1025
+ fees: Array<{
1026
+ recipient: string;
1027
+ amount: string;
1028
+ }>;
1029
+ refund_address: string;
1030
+ expires_at: string;
1031
+ swap: {
1032
+ router: string;
1033
+ path: Array<string>;
1034
+ } | null;
1035
+ implementation: string;
963
1036
  };
964
1037
  status: 'Created' | 'AwaitingDeposit' | 'DepositReceived' | 'Processing' | 'x402Settled' | 'Cancelled' | 'Refunded' | 'Failed' | 'Settled';
965
1038
  settlementBlockchainHash: string | null;
@@ -1078,8 +1151,9 @@ type ProviderStatus = {
1078
1151
  type ProviderStatusList = Array<ProviderStatus>;
1079
1152
  type SystemInfo = {
1080
1153
  version: string;
1154
+ demo: boolean;
1081
1155
  operators: Array<{
1082
- chainType: 'Evm' | 'Near';
1156
+ chainType: 'Evm' | 'Near' | 'Stellar';
1083
1157
  address: string;
1084
1158
  }>;
1085
1159
  chains: Array<{
@@ -1148,6 +1222,7 @@ type X402PaymentRequirements = {
1148
1222
  extra: {
1149
1223
  name?: string;
1150
1224
  version?: string;
1225
+ areFeesSponsored?: boolean;
1151
1226
  };
1152
1227
  };
1153
1228
  type X402VerifyResult = {
@@ -1211,7 +1286,7 @@ type Checkout = {
1211
1286
  id: string;
1212
1287
  caip2Id: string;
1213
1288
  name: string;
1214
- chainType: 'Evm' | 'Near';
1289
+ chainType: 'Evm' | 'Near' | 'Stellar';
1215
1290
  chainId: number | null;
1216
1291
  testnet: boolean;
1217
1292
  icon: 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,24 @@ 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;
707
726
  };
708
727
  status: 'Created' | 'AwaitingDeposit' | 'DepositReceived' | 'Processing' | 'x402Settled' | 'Cancelled' | 'Refunded' | 'Failed' | 'Settled';
709
728
  settlementBlockchainHash: string | null;
@@ -807,6 +826,24 @@ type TransferDetails = {
807
826
  wrap: string;
808
827
  } | null;
809
828
  implementation: string;
829
+ } | {
830
+ id: string;
831
+ pay_in: string;
832
+ amount_in: string;
833
+ settlement_token: string;
834
+ settlement_recipient: string;
835
+ min_amount_out: string;
836
+ fees: Array<{
837
+ recipient: string;
838
+ amount: string;
839
+ }>;
840
+ refund_address: string;
841
+ expires_at: string;
842
+ swap: {
843
+ router: string;
844
+ path: Array<string>;
845
+ } | null;
846
+ implementation: string;
810
847
  };
811
848
  status: 'Created' | 'AwaitingDeposit' | 'DepositReceived' | 'Processing' | 'x402Settled' | 'Cancelled' | 'Refunded' | 'Failed' | 'Settled';
812
849
  settlementBlockchainHash: string | null;
@@ -878,6 +915,24 @@ type TransferListItem = {
878
915
  wrap: string;
879
916
  } | null;
880
917
  implementation: string;
918
+ } | {
919
+ id: string;
920
+ pay_in: string;
921
+ amount_in: string;
922
+ settlement_token: string;
923
+ settlement_recipient: string;
924
+ min_amount_out: string;
925
+ fees: Array<{
926
+ recipient: string;
927
+ amount: string;
928
+ }>;
929
+ refund_address: string;
930
+ expires_at: string;
931
+ swap: {
932
+ router: string;
933
+ path: Array<string>;
934
+ } | null;
935
+ implementation: string;
881
936
  };
882
937
  status: 'Created' | 'AwaitingDeposit' | 'DepositReceived' | 'Processing' | 'x402Settled' | 'Cancelled' | 'Refunded' | 'Failed' | 'Settled';
883
938
  settlementBlockchainHash: string | null;
@@ -960,6 +1015,24 @@ type CreatedTransfer = {
960
1015
  wrap: string;
961
1016
  } | null;
962
1017
  implementation: string;
1018
+ } | {
1019
+ id: string;
1020
+ pay_in: string;
1021
+ amount_in: string;
1022
+ settlement_token: string;
1023
+ settlement_recipient: string;
1024
+ min_amount_out: string;
1025
+ fees: Array<{
1026
+ recipient: string;
1027
+ amount: string;
1028
+ }>;
1029
+ refund_address: string;
1030
+ expires_at: string;
1031
+ swap: {
1032
+ router: string;
1033
+ path: Array<string>;
1034
+ } | null;
1035
+ implementation: string;
963
1036
  };
964
1037
  status: 'Created' | 'AwaitingDeposit' | 'DepositReceived' | 'Processing' | 'x402Settled' | 'Cancelled' | 'Refunded' | 'Failed' | 'Settled';
965
1038
  settlementBlockchainHash: string | null;
@@ -1078,8 +1151,9 @@ type ProviderStatus = {
1078
1151
  type ProviderStatusList = Array<ProviderStatus>;
1079
1152
  type SystemInfo = {
1080
1153
  version: string;
1154
+ demo: boolean;
1081
1155
  operators: Array<{
1082
- chainType: 'Evm' | 'Near';
1156
+ chainType: 'Evm' | 'Near' | 'Stellar';
1083
1157
  address: string;
1084
1158
  }>;
1085
1159
  chains: Array<{
@@ -1148,6 +1222,7 @@ type X402PaymentRequirements = {
1148
1222
  extra: {
1149
1223
  name?: string;
1150
1224
  version?: string;
1225
+ areFeesSponsored?: boolean;
1151
1226
  };
1152
1227
  };
1153
1228
  type X402VerifyResult = {
@@ -1211,7 +1286,7 @@ type Checkout = {
1211
1286
  id: string;
1212
1287
  caip2Id: string;
1213
1288
  name: string;
1214
- chainType: 'Evm' | 'Near';
1289
+ chainType: 'Evm' | 'Near' | 'Stellar';
1215
1290
  chainId: number | null;
1216
1291
  testnet: boolean;
1217
1292
  icon: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kite-01/sdk",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "Server-side client for the Kite payments API",
5
5
  "license": "MIT",
6
6
  "repository": {