@dfns/sdk 0.6.12-rc.1 → 0.7.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/baseAuthApi.d.ts +1 -8
- package/dfnsApiClient.d.ts +1 -1
- package/dfnsAuthenticator.d.ts +2 -2
- package/dfnsDelegatedApiClient.d.ts +1 -1
- package/generated/auth/client.d.ts +0 -5
- package/generated/auth/client.js +0 -60
- package/generated/auth/delegatedClient.d.ts +0 -10
- package/generated/auth/delegatedClient.js +0 -135
- package/generated/auth/types.d.ts +10 -220
- package/generated/exchanges/types.d.ts +1 -3
- package/generated/keys/types.d.ts +0 -3
- package/generated/permissions/types.d.ts +2 -2
- package/generated/policies/types.d.ts +630 -21
- package/generated/staking/types.d.ts +5 -21
- package/generated/wallets/types.d.ts +597 -10
- package/package.json +2 -3
- package/types/generic.d.ts +4 -4
- package/utils/authToken.d.ts +5 -0
- package/utils/authToken.js +20 -0
- package/utils/fetch.js +5 -10
- package/utils/index.d.ts +0 -1
- package/utils/index.js +0 -1
- package/utils/nonce.d.ts +0 -1
- package/utils/nonce.js +0 -12
|
@@ -48,7 +48,6 @@ export type BroadcastTransactionResponse = {
|
|
|
48
48
|
requester: {
|
|
49
49
|
userId: string;
|
|
50
50
|
tokenId?: string | undefined;
|
|
51
|
-
appId?: string | undefined;
|
|
52
51
|
};
|
|
53
52
|
requestBody: {
|
|
54
53
|
kind: "Transaction";
|
|
@@ -265,7 +264,6 @@ export type GenerateSignatureResponse = {
|
|
|
265
264
|
requester: {
|
|
266
265
|
userId: string;
|
|
267
266
|
tokenId?: string | undefined;
|
|
268
|
-
appId?: string | undefined;
|
|
269
267
|
};
|
|
270
268
|
requestBody: {
|
|
271
269
|
kind: "Hash";
|
|
@@ -380,7 +378,6 @@ export type GetSignatureResponse = {
|
|
|
380
378
|
requester: {
|
|
381
379
|
userId: string;
|
|
382
380
|
tokenId?: string | undefined;
|
|
383
|
-
appId?: string | undefined;
|
|
384
381
|
};
|
|
385
382
|
requestBody: {
|
|
386
383
|
kind: "Hash";
|
|
@@ -493,7 +490,6 @@ export type GetTransactionResponse = {
|
|
|
493
490
|
requester: {
|
|
494
491
|
userId: string;
|
|
495
492
|
tokenId?: string | undefined;
|
|
496
|
-
appId?: string | undefined;
|
|
497
493
|
};
|
|
498
494
|
requestBody: {
|
|
499
495
|
kind: "Transaction";
|
|
@@ -558,7 +554,6 @@ export type GetTransferResponse = {
|
|
|
558
554
|
requester: {
|
|
559
555
|
userId: string;
|
|
560
556
|
tokenId?: string | undefined;
|
|
561
|
-
appId?: string | undefined;
|
|
562
557
|
};
|
|
563
558
|
requestBody: {
|
|
564
559
|
kind: "Native";
|
|
@@ -586,6 +581,14 @@ export type GetTransferResponse = {
|
|
|
586
581
|
externalId?: string | undefined;
|
|
587
582
|
/** Id of the fee sponsor that will be used to pay for your transfer fee, it might not be available for all blockchains */
|
|
588
583
|
feeSponsorId?: string | undefined;
|
|
584
|
+
} | {
|
|
585
|
+
kind: "Coin";
|
|
586
|
+
coin: string;
|
|
587
|
+
to: string;
|
|
588
|
+
amount: string;
|
|
589
|
+
externalId?: string | undefined;
|
|
590
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fee, it might not be available for all blockchains */
|
|
591
|
+
feeSponsorId?: string | undefined;
|
|
589
592
|
} | {
|
|
590
593
|
kind: "Erc20";
|
|
591
594
|
contract: string;
|
|
@@ -678,6 +681,194 @@ export type GetTransferResponse = {
|
|
|
678
681
|
approvalId?: string | undefined;
|
|
679
682
|
externalId?: string | undefined;
|
|
680
683
|
feeSponsorId?: string | undefined;
|
|
684
|
+
travelRule?: ({
|
|
685
|
+
kind: "Notabene";
|
|
686
|
+
beneficiaryVASPdid?: string | undefined;
|
|
687
|
+
beneficiaryProof?: ({
|
|
688
|
+
type: string;
|
|
689
|
+
proof: string;
|
|
690
|
+
attestation: string;
|
|
691
|
+
address?: string | undefined;
|
|
692
|
+
status?: string | undefined;
|
|
693
|
+
} | {
|
|
694
|
+
type: "screenshot";
|
|
695
|
+
url: string;
|
|
696
|
+
} | {
|
|
697
|
+
type: "self-declaration";
|
|
698
|
+
did?: string | undefined;
|
|
699
|
+
address?: string | undefined;
|
|
700
|
+
attestation: string;
|
|
701
|
+
confirmed?: boolean | undefined;
|
|
702
|
+
status?: string | undefined;
|
|
703
|
+
} | {
|
|
704
|
+
type: "microtransfer";
|
|
705
|
+
did?: string | undefined;
|
|
706
|
+
address?: string | undefined;
|
|
707
|
+
proof: string;
|
|
708
|
+
chain?: string | undefined;
|
|
709
|
+
destination?: string | undefined;
|
|
710
|
+
amountSubunits?: string | undefined;
|
|
711
|
+
status?: string | undefined;
|
|
712
|
+
} | {
|
|
713
|
+
type: string;
|
|
714
|
+
}) | undefined;
|
|
715
|
+
originator: {
|
|
716
|
+
originatorPersons: {
|
|
717
|
+
naturalPerson?: {
|
|
718
|
+
name: {
|
|
719
|
+
nameIdentifier: {
|
|
720
|
+
primaryIdentifier: string;
|
|
721
|
+
secondaryIdentifier: string;
|
|
722
|
+
}[];
|
|
723
|
+
};
|
|
724
|
+
geographicAddress?: {
|
|
725
|
+
addressType?: string | undefined;
|
|
726
|
+
department?: string | undefined;
|
|
727
|
+
subDepartment?: string | undefined;
|
|
728
|
+
streetName?: string | undefined;
|
|
729
|
+
buildingNumber?: string | undefined;
|
|
730
|
+
buildingName?: string | undefined;
|
|
731
|
+
floor?: string | undefined;
|
|
732
|
+
postBox?: string | undefined;
|
|
733
|
+
room?: string | undefined;
|
|
734
|
+
postCode?: string | undefined;
|
|
735
|
+
townName?: string | undefined;
|
|
736
|
+
townLocationName?: string | undefined;
|
|
737
|
+
districtName?: string | undefined;
|
|
738
|
+
countrySubDivision?: string | undefined;
|
|
739
|
+
addressLine?: string[] | undefined;
|
|
740
|
+
country?: string | undefined;
|
|
741
|
+
}[] | undefined;
|
|
742
|
+
customerIdentification?: string | undefined;
|
|
743
|
+
nationalIdentification?: {
|
|
744
|
+
nationalIdentifier: string;
|
|
745
|
+
nationalIdentifierType: string;
|
|
746
|
+
countryOfIssue?: string | undefined;
|
|
747
|
+
registrationAuthority?: string | undefined;
|
|
748
|
+
} | undefined;
|
|
749
|
+
dateAndPlaceOfBirth?: {
|
|
750
|
+
dateOfBirth: string;
|
|
751
|
+
placeOfBirth: string;
|
|
752
|
+
} | undefined;
|
|
753
|
+
countryOfResidence?: string | undefined;
|
|
754
|
+
} | undefined;
|
|
755
|
+
legalPerson?: {
|
|
756
|
+
name: {
|
|
757
|
+
nameIdentifier: {
|
|
758
|
+
legalPersonName: string;
|
|
759
|
+
legalPersonNameIdentifierType: string;
|
|
760
|
+
}[];
|
|
761
|
+
};
|
|
762
|
+
geographicAddress?: {
|
|
763
|
+
addressType?: string | undefined;
|
|
764
|
+
department?: string | undefined;
|
|
765
|
+
subDepartment?: string | undefined;
|
|
766
|
+
streetName?: string | undefined;
|
|
767
|
+
buildingNumber?: string | undefined;
|
|
768
|
+
buildingName?: string | undefined;
|
|
769
|
+
floor?: string | undefined;
|
|
770
|
+
postBox?: string | undefined;
|
|
771
|
+
room?: string | undefined;
|
|
772
|
+
postCode?: string | undefined;
|
|
773
|
+
townName?: string | undefined;
|
|
774
|
+
townLocationName?: string | undefined;
|
|
775
|
+
districtName?: string | undefined;
|
|
776
|
+
countrySubDivision?: string | undefined;
|
|
777
|
+
addressLine?: string[] | undefined;
|
|
778
|
+
country?: string | undefined;
|
|
779
|
+
}[] | undefined;
|
|
780
|
+
customerNumber?: string | undefined;
|
|
781
|
+
nationalIdentification?: {
|
|
782
|
+
nationalIdentifier: string;
|
|
783
|
+
nationalIdentifierType: string;
|
|
784
|
+
countryOfIssue?: string | undefined;
|
|
785
|
+
registrationAuthority?: string | undefined;
|
|
786
|
+
} | undefined;
|
|
787
|
+
dateOfRegistration?: string | undefined;
|
|
788
|
+
countryOfRegistration?: string | undefined;
|
|
789
|
+
} | undefined;
|
|
790
|
+
}[];
|
|
791
|
+
accountNumber?: string[] | undefined;
|
|
792
|
+
};
|
|
793
|
+
beneficiary: {
|
|
794
|
+
beneficiaryPersons: {
|
|
795
|
+
naturalPerson?: {
|
|
796
|
+
name: {
|
|
797
|
+
nameIdentifier: {
|
|
798
|
+
primaryIdentifier: string;
|
|
799
|
+
secondaryIdentifier: string;
|
|
800
|
+
}[];
|
|
801
|
+
};
|
|
802
|
+
geographicAddress?: {
|
|
803
|
+
addressType?: string | undefined;
|
|
804
|
+
department?: string | undefined;
|
|
805
|
+
subDepartment?: string | undefined;
|
|
806
|
+
streetName?: string | undefined;
|
|
807
|
+
buildingNumber?: string | undefined;
|
|
808
|
+
buildingName?: string | undefined;
|
|
809
|
+
floor?: string | undefined;
|
|
810
|
+
postBox?: string | undefined;
|
|
811
|
+
room?: string | undefined;
|
|
812
|
+
postCode?: string | undefined;
|
|
813
|
+
townName?: string | undefined;
|
|
814
|
+
townLocationName?: string | undefined;
|
|
815
|
+
districtName?: string | undefined;
|
|
816
|
+
countrySubDivision?: string | undefined;
|
|
817
|
+
addressLine?: string[] | undefined;
|
|
818
|
+
country?: string | undefined;
|
|
819
|
+
}[] | undefined;
|
|
820
|
+
customerIdentification?: string | undefined;
|
|
821
|
+
nationalIdentification?: {
|
|
822
|
+
nationalIdentifier: string;
|
|
823
|
+
nationalIdentifierType: string;
|
|
824
|
+
countryOfIssue?: string | undefined;
|
|
825
|
+
registrationAuthority?: string | undefined;
|
|
826
|
+
} | undefined;
|
|
827
|
+
dateAndPlaceOfBirth?: {
|
|
828
|
+
dateOfBirth: string;
|
|
829
|
+
placeOfBirth: string;
|
|
830
|
+
} | undefined;
|
|
831
|
+
countryOfResidence?: string | undefined;
|
|
832
|
+
} | undefined;
|
|
833
|
+
legalPerson?: {
|
|
834
|
+
name: {
|
|
835
|
+
nameIdentifier: {
|
|
836
|
+
legalPersonName: string;
|
|
837
|
+
legalPersonNameIdentifierType: string;
|
|
838
|
+
}[];
|
|
839
|
+
};
|
|
840
|
+
geographicAddress?: {
|
|
841
|
+
addressType?: string | undefined;
|
|
842
|
+
department?: string | undefined;
|
|
843
|
+
subDepartment?: string | undefined;
|
|
844
|
+
streetName?: string | undefined;
|
|
845
|
+
buildingNumber?: string | undefined;
|
|
846
|
+
buildingName?: string | undefined;
|
|
847
|
+
floor?: string | undefined;
|
|
848
|
+
postBox?: string | undefined;
|
|
849
|
+
room?: string | undefined;
|
|
850
|
+
postCode?: string | undefined;
|
|
851
|
+
townName?: string | undefined;
|
|
852
|
+
townLocationName?: string | undefined;
|
|
853
|
+
districtName?: string | undefined;
|
|
854
|
+
countrySubDivision?: string | undefined;
|
|
855
|
+
addressLine?: string[] | undefined;
|
|
856
|
+
country?: string | undefined;
|
|
857
|
+
}[] | undefined;
|
|
858
|
+
customerNumber?: string | undefined;
|
|
859
|
+
nationalIdentification?: {
|
|
860
|
+
nationalIdentifier: string;
|
|
861
|
+
nationalIdentifierType: string;
|
|
862
|
+
countryOfIssue?: string | undefined;
|
|
863
|
+
registrationAuthority?: string | undefined;
|
|
864
|
+
} | undefined;
|
|
865
|
+
dateOfRegistration?: string | undefined;
|
|
866
|
+
countryOfRegistration?: string | undefined;
|
|
867
|
+
} | undefined;
|
|
868
|
+
}[];
|
|
869
|
+
accountNumber?: string[] | undefined;
|
|
870
|
+
};
|
|
871
|
+
}) | undefined;
|
|
681
872
|
};
|
|
682
873
|
export type GetTransferRequest = GetTransferParams;
|
|
683
874
|
export type GetWalletParams = {
|
|
@@ -725,7 +916,7 @@ export type GetWalletAssetsResponse = {
|
|
|
725
916
|
kind: "Erc20" | "Trc20";
|
|
726
917
|
contract: string;
|
|
727
918
|
} | {
|
|
728
|
-
kind: "LockedCoin";
|
|
919
|
+
kind: "Coin" | "LockedCoin";
|
|
729
920
|
coin: string;
|
|
730
921
|
} | {
|
|
731
922
|
kind: "Sep41";
|
|
@@ -1319,7 +1510,6 @@ export type ListSignaturesResponse = {
|
|
|
1319
1510
|
requester: {
|
|
1320
1511
|
userId: string;
|
|
1321
1512
|
tokenId?: string | undefined;
|
|
1322
|
-
appId?: string | undefined;
|
|
1323
1513
|
};
|
|
1324
1514
|
requestBody: {
|
|
1325
1515
|
kind: "Hash";
|
|
@@ -1441,7 +1631,6 @@ export type ListTransactionsResponse = {
|
|
|
1441
1631
|
requester: {
|
|
1442
1632
|
userId: string;
|
|
1443
1633
|
tokenId?: string | undefined;
|
|
1444
|
-
appId?: string | undefined;
|
|
1445
1634
|
};
|
|
1446
1635
|
requestBody: {
|
|
1447
1636
|
kind: "Transaction";
|
|
@@ -1515,7 +1704,6 @@ export type ListTransfersResponse = {
|
|
|
1515
1704
|
requester: {
|
|
1516
1705
|
userId: string;
|
|
1517
1706
|
tokenId?: string | undefined;
|
|
1518
|
-
appId?: string | undefined;
|
|
1519
1707
|
};
|
|
1520
1708
|
requestBody: {
|
|
1521
1709
|
kind: "Native";
|
|
@@ -1543,6 +1731,14 @@ export type ListTransfersResponse = {
|
|
|
1543
1731
|
externalId?: string | undefined;
|
|
1544
1732
|
/** Id of the fee sponsor that will be used to pay for your transfer fee, it might not be available for all blockchains */
|
|
1545
1733
|
feeSponsorId?: string | undefined;
|
|
1734
|
+
} | {
|
|
1735
|
+
kind: "Coin";
|
|
1736
|
+
coin: string;
|
|
1737
|
+
to: string;
|
|
1738
|
+
amount: string;
|
|
1739
|
+
externalId?: string | undefined;
|
|
1740
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fee, it might not be available for all blockchains */
|
|
1741
|
+
feeSponsorId?: string | undefined;
|
|
1546
1742
|
} | {
|
|
1547
1743
|
kind: "Erc20";
|
|
1548
1744
|
contract: string;
|
|
@@ -1635,6 +1831,194 @@ export type ListTransfersResponse = {
|
|
|
1635
1831
|
approvalId?: string | undefined;
|
|
1636
1832
|
externalId?: string | undefined;
|
|
1637
1833
|
feeSponsorId?: string | undefined;
|
|
1834
|
+
travelRule?: ({
|
|
1835
|
+
kind: "Notabene";
|
|
1836
|
+
beneficiaryVASPdid?: string | undefined;
|
|
1837
|
+
beneficiaryProof?: ({
|
|
1838
|
+
type: string;
|
|
1839
|
+
proof: string;
|
|
1840
|
+
attestation: string;
|
|
1841
|
+
address?: string | undefined;
|
|
1842
|
+
status?: string | undefined;
|
|
1843
|
+
} | {
|
|
1844
|
+
type: "screenshot";
|
|
1845
|
+
url: string;
|
|
1846
|
+
} | {
|
|
1847
|
+
type: "self-declaration";
|
|
1848
|
+
did?: string | undefined;
|
|
1849
|
+
address?: string | undefined;
|
|
1850
|
+
attestation: string;
|
|
1851
|
+
confirmed?: boolean | undefined;
|
|
1852
|
+
status?: string | undefined;
|
|
1853
|
+
} | {
|
|
1854
|
+
type: "microtransfer";
|
|
1855
|
+
did?: string | undefined;
|
|
1856
|
+
address?: string | undefined;
|
|
1857
|
+
proof: string;
|
|
1858
|
+
chain?: string | undefined;
|
|
1859
|
+
destination?: string | undefined;
|
|
1860
|
+
amountSubunits?: string | undefined;
|
|
1861
|
+
status?: string | undefined;
|
|
1862
|
+
} | {
|
|
1863
|
+
type: string;
|
|
1864
|
+
}) | undefined;
|
|
1865
|
+
originator: {
|
|
1866
|
+
originatorPersons: {
|
|
1867
|
+
naturalPerson?: {
|
|
1868
|
+
name: {
|
|
1869
|
+
nameIdentifier: {
|
|
1870
|
+
primaryIdentifier: string;
|
|
1871
|
+
secondaryIdentifier: string;
|
|
1872
|
+
}[];
|
|
1873
|
+
};
|
|
1874
|
+
geographicAddress?: {
|
|
1875
|
+
addressType?: string | undefined;
|
|
1876
|
+
department?: string | undefined;
|
|
1877
|
+
subDepartment?: string | undefined;
|
|
1878
|
+
streetName?: string | undefined;
|
|
1879
|
+
buildingNumber?: string | undefined;
|
|
1880
|
+
buildingName?: string | undefined;
|
|
1881
|
+
floor?: string | undefined;
|
|
1882
|
+
postBox?: string | undefined;
|
|
1883
|
+
room?: string | undefined;
|
|
1884
|
+
postCode?: string | undefined;
|
|
1885
|
+
townName?: string | undefined;
|
|
1886
|
+
townLocationName?: string | undefined;
|
|
1887
|
+
districtName?: string | undefined;
|
|
1888
|
+
countrySubDivision?: string | undefined;
|
|
1889
|
+
addressLine?: string[] | undefined;
|
|
1890
|
+
country?: string | undefined;
|
|
1891
|
+
}[] | undefined;
|
|
1892
|
+
customerIdentification?: string | undefined;
|
|
1893
|
+
nationalIdentification?: {
|
|
1894
|
+
nationalIdentifier: string;
|
|
1895
|
+
nationalIdentifierType: string;
|
|
1896
|
+
countryOfIssue?: string | undefined;
|
|
1897
|
+
registrationAuthority?: string | undefined;
|
|
1898
|
+
} | undefined;
|
|
1899
|
+
dateAndPlaceOfBirth?: {
|
|
1900
|
+
dateOfBirth: string;
|
|
1901
|
+
placeOfBirth: string;
|
|
1902
|
+
} | undefined;
|
|
1903
|
+
countryOfResidence?: string | undefined;
|
|
1904
|
+
} | undefined;
|
|
1905
|
+
legalPerson?: {
|
|
1906
|
+
name: {
|
|
1907
|
+
nameIdentifier: {
|
|
1908
|
+
legalPersonName: string;
|
|
1909
|
+
legalPersonNameIdentifierType: string;
|
|
1910
|
+
}[];
|
|
1911
|
+
};
|
|
1912
|
+
geographicAddress?: {
|
|
1913
|
+
addressType?: string | undefined;
|
|
1914
|
+
department?: string | undefined;
|
|
1915
|
+
subDepartment?: string | undefined;
|
|
1916
|
+
streetName?: string | undefined;
|
|
1917
|
+
buildingNumber?: string | undefined;
|
|
1918
|
+
buildingName?: string | undefined;
|
|
1919
|
+
floor?: string | undefined;
|
|
1920
|
+
postBox?: string | undefined;
|
|
1921
|
+
room?: string | undefined;
|
|
1922
|
+
postCode?: string | undefined;
|
|
1923
|
+
townName?: string | undefined;
|
|
1924
|
+
townLocationName?: string | undefined;
|
|
1925
|
+
districtName?: string | undefined;
|
|
1926
|
+
countrySubDivision?: string | undefined;
|
|
1927
|
+
addressLine?: string[] | undefined;
|
|
1928
|
+
country?: string | undefined;
|
|
1929
|
+
}[] | undefined;
|
|
1930
|
+
customerNumber?: string | undefined;
|
|
1931
|
+
nationalIdentification?: {
|
|
1932
|
+
nationalIdentifier: string;
|
|
1933
|
+
nationalIdentifierType: string;
|
|
1934
|
+
countryOfIssue?: string | undefined;
|
|
1935
|
+
registrationAuthority?: string | undefined;
|
|
1936
|
+
} | undefined;
|
|
1937
|
+
dateOfRegistration?: string | undefined;
|
|
1938
|
+
countryOfRegistration?: string | undefined;
|
|
1939
|
+
} | undefined;
|
|
1940
|
+
}[];
|
|
1941
|
+
accountNumber?: string[] | undefined;
|
|
1942
|
+
};
|
|
1943
|
+
beneficiary: {
|
|
1944
|
+
beneficiaryPersons: {
|
|
1945
|
+
naturalPerson?: {
|
|
1946
|
+
name: {
|
|
1947
|
+
nameIdentifier: {
|
|
1948
|
+
primaryIdentifier: string;
|
|
1949
|
+
secondaryIdentifier: string;
|
|
1950
|
+
}[];
|
|
1951
|
+
};
|
|
1952
|
+
geographicAddress?: {
|
|
1953
|
+
addressType?: string | undefined;
|
|
1954
|
+
department?: string | undefined;
|
|
1955
|
+
subDepartment?: string | undefined;
|
|
1956
|
+
streetName?: string | undefined;
|
|
1957
|
+
buildingNumber?: string | undefined;
|
|
1958
|
+
buildingName?: string | undefined;
|
|
1959
|
+
floor?: string | undefined;
|
|
1960
|
+
postBox?: string | undefined;
|
|
1961
|
+
room?: string | undefined;
|
|
1962
|
+
postCode?: string | undefined;
|
|
1963
|
+
townName?: string | undefined;
|
|
1964
|
+
townLocationName?: string | undefined;
|
|
1965
|
+
districtName?: string | undefined;
|
|
1966
|
+
countrySubDivision?: string | undefined;
|
|
1967
|
+
addressLine?: string[] | undefined;
|
|
1968
|
+
country?: string | undefined;
|
|
1969
|
+
}[] | undefined;
|
|
1970
|
+
customerIdentification?: string | undefined;
|
|
1971
|
+
nationalIdentification?: {
|
|
1972
|
+
nationalIdentifier: string;
|
|
1973
|
+
nationalIdentifierType: string;
|
|
1974
|
+
countryOfIssue?: string | undefined;
|
|
1975
|
+
registrationAuthority?: string | undefined;
|
|
1976
|
+
} | undefined;
|
|
1977
|
+
dateAndPlaceOfBirth?: {
|
|
1978
|
+
dateOfBirth: string;
|
|
1979
|
+
placeOfBirth: string;
|
|
1980
|
+
} | undefined;
|
|
1981
|
+
countryOfResidence?: string | undefined;
|
|
1982
|
+
} | undefined;
|
|
1983
|
+
legalPerson?: {
|
|
1984
|
+
name: {
|
|
1985
|
+
nameIdentifier: {
|
|
1986
|
+
legalPersonName: string;
|
|
1987
|
+
legalPersonNameIdentifierType: string;
|
|
1988
|
+
}[];
|
|
1989
|
+
};
|
|
1990
|
+
geographicAddress?: {
|
|
1991
|
+
addressType?: string | undefined;
|
|
1992
|
+
department?: string | undefined;
|
|
1993
|
+
subDepartment?: string | undefined;
|
|
1994
|
+
streetName?: string | undefined;
|
|
1995
|
+
buildingNumber?: string | undefined;
|
|
1996
|
+
buildingName?: string | undefined;
|
|
1997
|
+
floor?: string | undefined;
|
|
1998
|
+
postBox?: string | undefined;
|
|
1999
|
+
room?: string | undefined;
|
|
2000
|
+
postCode?: string | undefined;
|
|
2001
|
+
townName?: string | undefined;
|
|
2002
|
+
townLocationName?: string | undefined;
|
|
2003
|
+
districtName?: string | undefined;
|
|
2004
|
+
countrySubDivision?: string | undefined;
|
|
2005
|
+
addressLine?: string[] | undefined;
|
|
2006
|
+
country?: string | undefined;
|
|
2007
|
+
}[] | undefined;
|
|
2008
|
+
customerNumber?: string | undefined;
|
|
2009
|
+
nationalIdentification?: {
|
|
2010
|
+
nationalIdentifier: string;
|
|
2011
|
+
nationalIdentifierType: string;
|
|
2012
|
+
countryOfIssue?: string | undefined;
|
|
2013
|
+
registrationAuthority?: string | undefined;
|
|
2014
|
+
} | undefined;
|
|
2015
|
+
dateOfRegistration?: string | undefined;
|
|
2016
|
+
countryOfRegistration?: string | undefined;
|
|
2017
|
+
} | undefined;
|
|
2018
|
+
}[];
|
|
2019
|
+
accountNumber?: string[] | undefined;
|
|
2020
|
+
};
|
|
2021
|
+
}) | undefined;
|
|
1638
2022
|
}[];
|
|
1639
2023
|
nextPageToken?: string | undefined;
|
|
1640
2024
|
};
|
|
@@ -1712,6 +2096,14 @@ export type TransferAssetBody = {
|
|
|
1712
2096
|
externalId?: string | undefined;
|
|
1713
2097
|
/** Id of the fee sponsor that will be used to pay for your transfer fee, it might not be available for all blockchains */
|
|
1714
2098
|
feeSponsorId?: string | undefined;
|
|
2099
|
+
} | {
|
|
2100
|
+
kind: "Coin";
|
|
2101
|
+
coin: string;
|
|
2102
|
+
to: string;
|
|
2103
|
+
amount: string;
|
|
2104
|
+
externalId?: string | undefined;
|
|
2105
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fee, it might not be available for all blockchains */
|
|
2106
|
+
feeSponsorId?: string | undefined;
|
|
1715
2107
|
} | {
|
|
1716
2108
|
kind: "Erc20";
|
|
1717
2109
|
contract: string;
|
|
@@ -1793,7 +2185,6 @@ export type TransferAssetResponse = {
|
|
|
1793
2185
|
requester: {
|
|
1794
2186
|
userId: string;
|
|
1795
2187
|
tokenId?: string | undefined;
|
|
1796
|
-
appId?: string | undefined;
|
|
1797
2188
|
};
|
|
1798
2189
|
requestBody: {
|
|
1799
2190
|
kind: "Native";
|
|
@@ -1821,6 +2212,14 @@ export type TransferAssetResponse = {
|
|
|
1821
2212
|
externalId?: string | undefined;
|
|
1822
2213
|
/** Id of the fee sponsor that will be used to pay for your transfer fee, it might not be available for all blockchains */
|
|
1823
2214
|
feeSponsorId?: string | undefined;
|
|
2215
|
+
} | {
|
|
2216
|
+
kind: "Coin";
|
|
2217
|
+
coin: string;
|
|
2218
|
+
to: string;
|
|
2219
|
+
amount: string;
|
|
2220
|
+
externalId?: string | undefined;
|
|
2221
|
+
/** Id of the fee sponsor that will be used to pay for your transfer fee, it might not be available for all blockchains */
|
|
2222
|
+
feeSponsorId?: string | undefined;
|
|
1824
2223
|
} | {
|
|
1825
2224
|
kind: "Erc20";
|
|
1826
2225
|
contract: string;
|
|
@@ -1913,6 +2312,194 @@ export type TransferAssetResponse = {
|
|
|
1913
2312
|
approvalId?: string | undefined;
|
|
1914
2313
|
externalId?: string | undefined;
|
|
1915
2314
|
feeSponsorId?: string | undefined;
|
|
2315
|
+
travelRule?: ({
|
|
2316
|
+
kind: "Notabene";
|
|
2317
|
+
beneficiaryVASPdid?: string | undefined;
|
|
2318
|
+
beneficiaryProof?: ({
|
|
2319
|
+
type: string;
|
|
2320
|
+
proof: string;
|
|
2321
|
+
attestation: string;
|
|
2322
|
+
address?: string | undefined;
|
|
2323
|
+
status?: string | undefined;
|
|
2324
|
+
} | {
|
|
2325
|
+
type: "screenshot";
|
|
2326
|
+
url: string;
|
|
2327
|
+
} | {
|
|
2328
|
+
type: "self-declaration";
|
|
2329
|
+
did?: string | undefined;
|
|
2330
|
+
address?: string | undefined;
|
|
2331
|
+
attestation: string;
|
|
2332
|
+
confirmed?: boolean | undefined;
|
|
2333
|
+
status?: string | undefined;
|
|
2334
|
+
} | {
|
|
2335
|
+
type: "microtransfer";
|
|
2336
|
+
did?: string | undefined;
|
|
2337
|
+
address?: string | undefined;
|
|
2338
|
+
proof: string;
|
|
2339
|
+
chain?: string | undefined;
|
|
2340
|
+
destination?: string | undefined;
|
|
2341
|
+
amountSubunits?: string | undefined;
|
|
2342
|
+
status?: string | undefined;
|
|
2343
|
+
} | {
|
|
2344
|
+
type: string;
|
|
2345
|
+
}) | undefined;
|
|
2346
|
+
originator: {
|
|
2347
|
+
originatorPersons: {
|
|
2348
|
+
naturalPerson?: {
|
|
2349
|
+
name: {
|
|
2350
|
+
nameIdentifier: {
|
|
2351
|
+
primaryIdentifier: string;
|
|
2352
|
+
secondaryIdentifier: string;
|
|
2353
|
+
}[];
|
|
2354
|
+
};
|
|
2355
|
+
geographicAddress?: {
|
|
2356
|
+
addressType?: string | undefined;
|
|
2357
|
+
department?: string | undefined;
|
|
2358
|
+
subDepartment?: string | undefined;
|
|
2359
|
+
streetName?: string | undefined;
|
|
2360
|
+
buildingNumber?: string | undefined;
|
|
2361
|
+
buildingName?: string | undefined;
|
|
2362
|
+
floor?: string | undefined;
|
|
2363
|
+
postBox?: string | undefined;
|
|
2364
|
+
room?: string | undefined;
|
|
2365
|
+
postCode?: string | undefined;
|
|
2366
|
+
townName?: string | undefined;
|
|
2367
|
+
townLocationName?: string | undefined;
|
|
2368
|
+
districtName?: string | undefined;
|
|
2369
|
+
countrySubDivision?: string | undefined;
|
|
2370
|
+
addressLine?: string[] | undefined;
|
|
2371
|
+
country?: string | undefined;
|
|
2372
|
+
}[] | undefined;
|
|
2373
|
+
customerIdentification?: string | undefined;
|
|
2374
|
+
nationalIdentification?: {
|
|
2375
|
+
nationalIdentifier: string;
|
|
2376
|
+
nationalIdentifierType: string;
|
|
2377
|
+
countryOfIssue?: string | undefined;
|
|
2378
|
+
registrationAuthority?: string | undefined;
|
|
2379
|
+
} | undefined;
|
|
2380
|
+
dateAndPlaceOfBirth?: {
|
|
2381
|
+
dateOfBirth: string;
|
|
2382
|
+
placeOfBirth: string;
|
|
2383
|
+
} | undefined;
|
|
2384
|
+
countryOfResidence?: string | undefined;
|
|
2385
|
+
} | undefined;
|
|
2386
|
+
legalPerson?: {
|
|
2387
|
+
name: {
|
|
2388
|
+
nameIdentifier: {
|
|
2389
|
+
legalPersonName: string;
|
|
2390
|
+
legalPersonNameIdentifierType: string;
|
|
2391
|
+
}[];
|
|
2392
|
+
};
|
|
2393
|
+
geographicAddress?: {
|
|
2394
|
+
addressType?: string | undefined;
|
|
2395
|
+
department?: string | undefined;
|
|
2396
|
+
subDepartment?: string | undefined;
|
|
2397
|
+
streetName?: string | undefined;
|
|
2398
|
+
buildingNumber?: string | undefined;
|
|
2399
|
+
buildingName?: string | undefined;
|
|
2400
|
+
floor?: string | undefined;
|
|
2401
|
+
postBox?: string | undefined;
|
|
2402
|
+
room?: string | undefined;
|
|
2403
|
+
postCode?: string | undefined;
|
|
2404
|
+
townName?: string | undefined;
|
|
2405
|
+
townLocationName?: string | undefined;
|
|
2406
|
+
districtName?: string | undefined;
|
|
2407
|
+
countrySubDivision?: string | undefined;
|
|
2408
|
+
addressLine?: string[] | undefined;
|
|
2409
|
+
country?: string | undefined;
|
|
2410
|
+
}[] | undefined;
|
|
2411
|
+
customerNumber?: string | undefined;
|
|
2412
|
+
nationalIdentification?: {
|
|
2413
|
+
nationalIdentifier: string;
|
|
2414
|
+
nationalIdentifierType: string;
|
|
2415
|
+
countryOfIssue?: string | undefined;
|
|
2416
|
+
registrationAuthority?: string | undefined;
|
|
2417
|
+
} | undefined;
|
|
2418
|
+
dateOfRegistration?: string | undefined;
|
|
2419
|
+
countryOfRegistration?: string | undefined;
|
|
2420
|
+
} | undefined;
|
|
2421
|
+
}[];
|
|
2422
|
+
accountNumber?: string[] | undefined;
|
|
2423
|
+
};
|
|
2424
|
+
beneficiary: {
|
|
2425
|
+
beneficiaryPersons: {
|
|
2426
|
+
naturalPerson?: {
|
|
2427
|
+
name: {
|
|
2428
|
+
nameIdentifier: {
|
|
2429
|
+
primaryIdentifier: string;
|
|
2430
|
+
secondaryIdentifier: string;
|
|
2431
|
+
}[];
|
|
2432
|
+
};
|
|
2433
|
+
geographicAddress?: {
|
|
2434
|
+
addressType?: string | undefined;
|
|
2435
|
+
department?: string | undefined;
|
|
2436
|
+
subDepartment?: string | undefined;
|
|
2437
|
+
streetName?: string | undefined;
|
|
2438
|
+
buildingNumber?: string | undefined;
|
|
2439
|
+
buildingName?: string | undefined;
|
|
2440
|
+
floor?: string | undefined;
|
|
2441
|
+
postBox?: string | undefined;
|
|
2442
|
+
room?: string | undefined;
|
|
2443
|
+
postCode?: string | undefined;
|
|
2444
|
+
townName?: string | undefined;
|
|
2445
|
+
townLocationName?: string | undefined;
|
|
2446
|
+
districtName?: string | undefined;
|
|
2447
|
+
countrySubDivision?: string | undefined;
|
|
2448
|
+
addressLine?: string[] | undefined;
|
|
2449
|
+
country?: string | undefined;
|
|
2450
|
+
}[] | undefined;
|
|
2451
|
+
customerIdentification?: string | undefined;
|
|
2452
|
+
nationalIdentification?: {
|
|
2453
|
+
nationalIdentifier: string;
|
|
2454
|
+
nationalIdentifierType: string;
|
|
2455
|
+
countryOfIssue?: string | undefined;
|
|
2456
|
+
registrationAuthority?: string | undefined;
|
|
2457
|
+
} | undefined;
|
|
2458
|
+
dateAndPlaceOfBirth?: {
|
|
2459
|
+
dateOfBirth: string;
|
|
2460
|
+
placeOfBirth: string;
|
|
2461
|
+
} | undefined;
|
|
2462
|
+
countryOfResidence?: string | undefined;
|
|
2463
|
+
} | undefined;
|
|
2464
|
+
legalPerson?: {
|
|
2465
|
+
name: {
|
|
2466
|
+
nameIdentifier: {
|
|
2467
|
+
legalPersonName: string;
|
|
2468
|
+
legalPersonNameIdentifierType: string;
|
|
2469
|
+
}[];
|
|
2470
|
+
};
|
|
2471
|
+
geographicAddress?: {
|
|
2472
|
+
addressType?: string | undefined;
|
|
2473
|
+
department?: string | undefined;
|
|
2474
|
+
subDepartment?: string | undefined;
|
|
2475
|
+
streetName?: string | undefined;
|
|
2476
|
+
buildingNumber?: string | undefined;
|
|
2477
|
+
buildingName?: string | undefined;
|
|
2478
|
+
floor?: string | undefined;
|
|
2479
|
+
postBox?: string | undefined;
|
|
2480
|
+
room?: string | undefined;
|
|
2481
|
+
postCode?: string | undefined;
|
|
2482
|
+
townName?: string | undefined;
|
|
2483
|
+
townLocationName?: string | undefined;
|
|
2484
|
+
districtName?: string | undefined;
|
|
2485
|
+
countrySubDivision?: string | undefined;
|
|
2486
|
+
addressLine?: string[] | undefined;
|
|
2487
|
+
country?: string | undefined;
|
|
2488
|
+
}[] | undefined;
|
|
2489
|
+
customerNumber?: string | undefined;
|
|
2490
|
+
nationalIdentification?: {
|
|
2491
|
+
nationalIdentifier: string;
|
|
2492
|
+
nationalIdentifierType: string;
|
|
2493
|
+
countryOfIssue?: string | undefined;
|
|
2494
|
+
registrationAuthority?: string | undefined;
|
|
2495
|
+
} | undefined;
|
|
2496
|
+
dateOfRegistration?: string | undefined;
|
|
2497
|
+
countryOfRegistration?: string | undefined;
|
|
2498
|
+
} | undefined;
|
|
2499
|
+
}[];
|
|
2500
|
+
accountNumber?: string[] | undefined;
|
|
2501
|
+
};
|
|
2502
|
+
}) | undefined;
|
|
1916
2503
|
};
|
|
1917
2504
|
export type TransferAssetRequest = TransferAssetParams & {
|
|
1918
2505
|
body: TransferAssetBody;
|