@dfns/sdk 0.6.3 → 0.6.4
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/generated/auth/client.js +1 -1
- package/generated/auth/delegatedClient.d.ts +1 -2
- package/generated/auth/delegatedClient.js +1 -16
- package/generated/auth/types.d.ts +2 -2
- package/generated/exchanges/types.d.ts +1 -1
- package/generated/networks/types.d.ts +1 -1
- package/generated/policies/types.d.ts +57 -45
- package/generated/staking/types.d.ts +11 -11
- package/generated/wallets/types.d.ts +47 -31
- package/package.json +1 -1
package/generated/auth/client.js
CHANGED
|
@@ -608,7 +608,7 @@ class AuthClient {
|
|
|
608
608
|
path: request ?? {},
|
|
609
609
|
query: {},
|
|
610
610
|
});
|
|
611
|
-
const response = await (0,
|
|
611
|
+
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
612
612
|
method: 'PUT',
|
|
613
613
|
body: request.body,
|
|
614
614
|
apiOptions: this.apiOptions,
|
|
@@ -85,8 +85,7 @@ export declare class DelegatedAuthClient {
|
|
|
85
85
|
/** @deprecated, use register instead */
|
|
86
86
|
createUserRegistration(request: T.RegisterRequest): Promise<T.RegisterResponse>;
|
|
87
87
|
registerEndUser(request: T.RegisterEndUserRequest): Promise<T.RegisterEndUserResponse>;
|
|
88
|
-
|
|
89
|
-
resendRegistrationCodeComplete(request: T.ResendRegistrationCodeRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.ResendRegistrationCodeResponse>;
|
|
88
|
+
resendRegistrationCode(request: T.ResendRegistrationCodeRequest): Promise<T.ResendRegistrationCodeResponse>;
|
|
90
89
|
sendLoginCode(request: T.SendLoginCodeRequest): Promise<T.SendLoginCodeResponse>;
|
|
91
90
|
sendRecoveryCode(request: T.SendRecoveryCodeRequest): Promise<T.SendRecoveryCodeResponse>;
|
|
92
91
|
socialLogin(request: T.SocialLoginRequest): Promise<T.SocialLoginResponse>;
|
|
@@ -943,29 +943,14 @@ class DelegatedAuthClient {
|
|
|
943
943
|
});
|
|
944
944
|
return response.json();
|
|
945
945
|
}
|
|
946
|
-
async
|
|
946
|
+
async resendRegistrationCode(request) {
|
|
947
947
|
const path = (0, url_1.buildPathAndQuery)('/auth/registration/code', {
|
|
948
948
|
path: request ?? {},
|
|
949
949
|
query: {},
|
|
950
950
|
});
|
|
951
|
-
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
952
|
-
userActionHttpMethod: 'PUT',
|
|
953
|
-
userActionHttpPath: path,
|
|
954
|
-
userActionPayload: JSON.stringify(request.body),
|
|
955
|
-
userActionServerKind: 'Api',
|
|
956
|
-
}, this.apiOptions);
|
|
957
|
-
return challenge;
|
|
958
|
-
}
|
|
959
|
-
async resendRegistrationCodeComplete(request, signedChallenge) {
|
|
960
|
-
const path = (0, url_1.buildPathAndQuery)('/auth/registration/code', {
|
|
961
|
-
path: request ?? {},
|
|
962
|
-
query: {},
|
|
963
|
-
});
|
|
964
|
-
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
965
951
|
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
966
952
|
method: 'PUT',
|
|
967
953
|
body: request.body,
|
|
968
|
-
headers: { 'x-dfns-useraction': userAction },
|
|
969
954
|
apiOptions: this.apiOptions,
|
|
970
955
|
});
|
|
971
956
|
return response.json();
|
|
@@ -1975,7 +1975,7 @@ export type RegisterEndUserBody = {
|
|
|
1975
1975
|
credentialName?: string | undefined;
|
|
1976
1976
|
} | undefined;
|
|
1977
1977
|
wallets: {
|
|
1978
|
-
network: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "BerachainBArtio" | "Berachain" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet") | ("KeyECDSA" | "KeyEdDSA" | "KeyECDSAStark");
|
|
1978
|
+
network: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "BerachainBArtio" | "Berachain" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet") | ("KeyECDSA" | "KeyEdDSA" | "KeyECDSAStark");
|
|
1979
1979
|
name?: string | undefined;
|
|
1980
1980
|
}[];
|
|
1981
1981
|
};
|
|
@@ -1995,7 +1995,7 @@ export type RegisterEndUserResponse = {
|
|
|
1995
1995
|
};
|
|
1996
1996
|
wallets: {
|
|
1997
1997
|
id: string;
|
|
1998
|
-
network: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "BerachainBArtio" | "Berachain" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet") | ("KeyECDSA" | "KeyEdDSA" | "KeyECDSAStark");
|
|
1998
|
+
network: ("Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "BerachainBArtio" | "Berachain" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet") | ("KeyECDSA" | "KeyEdDSA" | "KeyECDSAStark");
|
|
1999
1999
|
address?: string | undefined;
|
|
2000
2000
|
signingKey: {
|
|
2001
2001
|
id?: string | undefined;
|
|
@@ -395,7 +395,7 @@ export type ListAssetWithdrawalNetworksResponse = (({
|
|
|
395
395
|
kind: "Tep74";
|
|
396
396
|
master: string;
|
|
397
397
|
}) & {
|
|
398
|
-
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "BerachainBArtio" | "Berachain" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet";
|
|
398
|
+
network: "Algorand" | "AlgorandTestnet" | "Aptos" | "AptosTestnet" | "ArbitrumOne" | "ArbitrumGoerli" | "ArbitrumSepolia" | "AvalancheC" | "AvalancheCFuji" | "Base" | "BaseGoerli" | "BaseSepolia" | "BerachainBArtio" | "Berachain" | "Bitcoin" | "BitcoinSignet" | "BitcoinTestnet3" | "Bsc" | "BscTestnet" | "Canton" | "CantonDevnet" | "CantonTestnet" | "Cardano" | "CardanoPreprod" | "Celo" | "CeloAlfajores" | "Dogecoin" | "DogecoinTestnet" | "Ethereum" | "EthereumGoerli" | "EthereumSepolia" | "EthereumHolesky" | "FantomOpera" | "FantomTestnet" | "InternetComputer" | "Ion" | "IonTestnet" | "Iota" | "IotaTestnet" | "Kaspa" | "KaspaTestnet11" | "Kusama" | "Litecoin" | "LitecoinTestnet" | "Optimism" | "OptimismGoerli" | "OptimismSepolia" | "Origyn" | "Polkadot" | "Polygon" | "PolygonAmoy" | "PolygonMumbai" | "Polymesh" | "PolymeshTestnet" | "Race" | "RaceSepolia" | "SeiAtlantic2" | "SeiPacific1" | "Solana" | "SolanaDevnet" | "Stellar" | "StellarTestnet" | "Tezos" | "TezosGhostnet" | "Ton" | "TonTestnet" | "Tron" | "TronNile" | "Westend" | "XrpLedger" | "XrpLedgerTestnet";
|
|
399
399
|
decimals: number;
|
|
400
400
|
})[];
|
|
401
401
|
export type ListAssetWithdrawalNetworksRequest = ListAssetWithdrawalNetworksParams;
|