@dfns/sdk 0.1.0-alpha.1
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 +53 -0
- package/baseAuthApi.js +39 -0
- package/codegen/ApiKeys/ApiKeysClient.d.ts +10 -0
- package/codegen/ApiKeys/ApiKeysClient.js +56 -0
- package/codegen/ApiKeys/DelegatedApiKeysClient.d.ts +13 -0
- package/codegen/ApiKeys/DelegatedApiKeysClient.js +88 -0
- package/codegen/ApiKeys/index.d.ts +3 -0
- package/codegen/ApiKeys/index.js +19 -0
- package/codegen/ApiKeys/types.d.ts +16 -0
- package/codegen/ApiKeys/types.js +2 -0
- package/codegen/Assets/AssetsClient.d.ts +14 -0
- package/codegen/Assets/AssetsClient.js +105 -0
- package/codegen/Assets/DelegatedAssetsClient.d.ts +18 -0
- package/codegen/Assets/DelegatedAssetsClient.js +152 -0
- package/codegen/Assets/index.d.ts +3 -0
- package/codegen/Assets/index.js +19 -0
- package/codegen/Assets/types.d.ts +39 -0
- package/codegen/Assets/types.js +2 -0
- package/codegen/Auth/AuthClient.d.ts +62 -0
- package/codegen/Auth/AuthClient.js +667 -0
- package/codegen/Auth/DelegatedAuthClient.d.ts +98 -0
- package/codegen/Auth/DelegatedAuthClient.js +1223 -0
- package/codegen/Auth/index.d.ts +3 -0
- package/codegen/Auth/index.js +19 -0
- package/codegen/Auth/types.d.ts +243 -0
- package/codegen/Auth/types.js +2 -0
- package/codegen/Callbacks/CallbacksClient.d.ts +12 -0
- package/codegen/Callbacks/CallbacksClient.js +78 -0
- package/codegen/Callbacks/DelegatedCallbacksClient.d.ts +15 -0
- package/codegen/Callbacks/DelegatedCallbacksClient.js +110 -0
- package/codegen/Callbacks/index.d.ts +3 -0
- package/codegen/Callbacks/index.js +19 -0
- package/codegen/Callbacks/types.d.ts +23 -0
- package/codegen/Callbacks/types.js +2 -0
- package/codegen/Permissions/DelegatedPermissionsClient.d.ts +28 -0
- package/codegen/Permissions/DelegatedPermissionsClient.js +297 -0
- package/codegen/Permissions/PermissionsClient.d.ts +19 -0
- package/codegen/Permissions/PermissionsClient.js +169 -0
- package/codegen/Permissions/index.d.ts +3 -0
- package/codegen/Permissions/index.js +19 -0
- package/codegen/Permissions/types.d.ts +71 -0
- package/codegen/Permissions/types.js +2 -0
- package/codegen/PolicyExecution/DelegatedPolicyExecutionClient.d.ts +11 -0
- package/codegen/PolicyExecution/DelegatedPolicyExecutionClient.js +62 -0
- package/codegen/PolicyExecution/PolicyExecutionClient.d.ts +9 -0
- package/codegen/PolicyExecution/PolicyExecutionClient.js +46 -0
- package/codegen/PolicyExecution/index.d.ts +3 -0
- package/codegen/PolicyExecution/index.js +19 -0
- package/codegen/PolicyExecution/types.d.ts +16 -0
- package/codegen/PolicyExecution/types.js +2 -0
- package/codegen/PolicyManagement/DelegatedPolicyManagementClient.d.ts +31 -0
- package/codegen/PolicyManagement/DelegatedPolicyManagementClient.js +324 -0
- package/codegen/PolicyManagement/PolicyManagementClient.d.ts +21 -0
- package/codegen/PolicyManagement/PolicyManagementClient.js +185 -0
- package/codegen/PolicyManagement/index.d.ts +3 -0
- package/codegen/PolicyManagement/index.js +19 -0
- package/codegen/PolicyManagement/types.d.ts +91 -0
- package/codegen/PolicyManagement/types.js +2 -0
- package/codegen/PublicKeys/DelegatedPublicKeysClient.d.ts +21 -0
- package/codegen/PublicKeys/DelegatedPublicKeysClient.js +191 -0
- package/codegen/PublicKeys/PublicKeysClient.d.ts +16 -0
- package/codegen/PublicKeys/PublicKeysClient.js +130 -0
- package/codegen/PublicKeys/index.d.ts +3 -0
- package/codegen/PublicKeys/index.js +19 -0
- package/codegen/PublicKeys/types.d.ts +51 -0
- package/codegen/PublicKeys/types.js +2 -0
- package/codegen/Wallets/DelegatedWalletsClient.d.ts +26 -0
- package/codegen/Wallets/DelegatedWalletsClient.js +249 -0
- package/codegen/Wallets/WalletsClient.d.ts +21 -0
- package/codegen/Wallets/WalletsClient.js +188 -0
- package/codegen/Wallets/index.d.ts +3 -0
- package/codegen/Wallets/index.js +19 -0
- package/codegen/Wallets/types.d.ts +87 -0
- package/codegen/Wallets/types.js +2 -0
- package/codegen/datamodel/ApiKeys/errors.d.ts +6 -0
- package/codegen/datamodel/ApiKeys/errors.js +15 -0
- package/codegen/datamodel/ApiKeys/index.d.ts +3 -0
- package/codegen/datamodel/ApiKeys/index.js +19 -0
- package/codegen/datamodel/ApiKeys/responses.d.ts +25 -0
- package/codegen/datamodel/ApiKeys/responses.js +2 -0
- package/codegen/datamodel/ApiKeys/types.d.ts +32 -0
- package/codegen/datamodel/ApiKeys/types.js +11 -0
- package/codegen/datamodel/Assets/errors.d.ts +11 -0
- package/codegen/datamodel/Assets/errors.js +17 -0
- package/codegen/datamodel/Assets/index.d.ts +3 -0
- package/codegen/datamodel/Assets/index.js +19 -0
- package/codegen/datamodel/Assets/responses.d.ts +45 -0
- package/codegen/datamodel/Assets/responses.js +2 -0
- package/codegen/datamodel/Assets/types.d.ts +225 -0
- package/codegen/datamodel/Assets/types.js +75 -0
- package/codegen/datamodel/Auth/index.d.ts +2 -0
- package/codegen/datamodel/Auth/index.js +18 -0
- package/codegen/datamodel/Auth/responses.d.ts +348 -0
- package/codegen/datamodel/Auth/responses.js +2 -0
- package/codegen/datamodel/Auth/types.d.ts +610 -0
- package/codegen/datamodel/Auth/types.js +127 -0
- package/codegen/datamodel/Callbacks/index.d.ts +2 -0
- package/codegen/datamodel/Callbacks/index.js +18 -0
- package/codegen/datamodel/Callbacks/responses.d.ts +36 -0
- package/codegen/datamodel/Callbacks/responses.js +2 -0
- package/codegen/datamodel/Callbacks/types.d.ts +43 -0
- package/codegen/datamodel/Callbacks/types.js +39 -0
- package/codegen/datamodel/Foundations/errors.d.ts +121 -0
- package/codegen/datamodel/Foundations/errors.js +169 -0
- package/codegen/datamodel/Foundations/index.d.ts +2 -0
- package/codegen/datamodel/Foundations/index.js +18 -0
- package/codegen/datamodel/Foundations/types.d.ts +9754 -0
- package/codegen/datamodel/Foundations/types.js +57741 -0
- package/codegen/datamodel/Permissions/index.d.ts +2 -0
- package/codegen/datamodel/Permissions/index.js +18 -0
- package/codegen/datamodel/Permissions/responses.d.ts +75 -0
- package/codegen/datamodel/Permissions/responses.js +2 -0
- package/codegen/datamodel/Permissions/types.d.ts +106 -0
- package/codegen/datamodel/Permissions/types.js +65 -0
- package/codegen/datamodel/PolicyExecution/errors.d.ts +11 -0
- package/codegen/datamodel/PolicyExecution/errors.js +17 -0
- package/codegen/datamodel/PolicyExecution/index.d.ts +3 -0
- package/codegen/datamodel/PolicyExecution/index.js +19 -0
- package/codegen/datamodel/PolicyExecution/responses.d.ts +17 -0
- package/codegen/datamodel/PolicyExecution/responses.js +2 -0
- package/codegen/datamodel/PolicyExecution/types.d.ts +45 -0
- package/codegen/datamodel/PolicyExecution/types.js +15 -0
- package/codegen/datamodel/PolicyManagement/index.d.ts +2 -0
- package/codegen/datamodel/PolicyManagement/index.js +18 -0
- package/codegen/datamodel/PolicyManagement/responses.d.ts +83 -0
- package/codegen/datamodel/PolicyManagement/responses.js +2 -0
- package/codegen/datamodel/PolicyManagement/types.d.ts +252 -0
- package/codegen/datamodel/PolicyManagement/types.js +81 -0
- package/codegen/datamodel/PublicKeys/index.d.ts +2 -0
- package/codegen/datamodel/PublicKeys/index.js +18 -0
- package/codegen/datamodel/PublicKeys/responses.d.ts +56 -0
- package/codegen/datamodel/PublicKeys/responses.js +2 -0
- package/codegen/datamodel/PublicKeys/types.d.ts +222 -0
- package/codegen/datamodel/PublicKeys/types.js +59 -0
- package/codegen/datamodel/Wallets/index.d.ts +2 -0
- package/codegen/datamodel/Wallets/index.js +18 -0
- package/codegen/datamodel/Wallets/responses.d.ts +77 -0
- package/codegen/datamodel/Wallets/responses.js +2 -0
- package/codegen/datamodel/Wallets/types.d.ts +261 -0
- package/codegen/datamodel/Wallets/types.js +89 -0
- package/dfnsApiClient.d.ts +27 -0
- package/dfnsApiClient.js +45 -0
- package/dfnsAuthenticator.d.ts +11 -0
- package/dfnsAuthenticator.js +18 -0
- package/dfnsDelegatedApiClient.d.ts +24 -0
- package/dfnsDelegatedApiClient.js +41 -0
- package/dfnsError.d.ts +5 -0
- package/dfnsError.js +11 -0
- package/index.d.ts +3 -0
- package/index.js +19 -0
- package/package.json +11 -0
- package/signer.d.ts +47 -0
- package/signer.js +2 -0
- package/utils/base64.d.ts +3 -0
- package/utils/base64.js +20 -0
- package/utils/fetch.d.ts +12 -0
- package/utils/fetch.js +89 -0
- package/utils/nonce.d.ts +1 -0
- package/utils/nonce.js +12 -0
- package/utils/url.d.ts +4 -0
- package/utils/url.js +15 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionStatus = exports.TransactionTemplateKind = exports.SignatureStatus = exports.PublicKeyStatus = void 0;
|
|
4
|
+
// FIXME: Missing documentation for PublicKeyStatus
|
|
5
|
+
var PublicKeyStatus;
|
|
6
|
+
(function (PublicKeyStatus) {
|
|
7
|
+
// FIXME: Missing documentation for Active
|
|
8
|
+
PublicKeyStatus["Active"] = "Active";
|
|
9
|
+
// FIXME: Missing documentation for Disabled
|
|
10
|
+
PublicKeyStatus["Disabled"] = "Disabled";
|
|
11
|
+
// FIXME: Missing documentation for Compromised
|
|
12
|
+
PublicKeyStatus["Compromised"] = "Compromised";
|
|
13
|
+
})(PublicKeyStatus = exports.PublicKeyStatus || (exports.PublicKeyStatus = {}));
|
|
14
|
+
// FIXME: Missing documentation for SignatureStatus
|
|
15
|
+
var SignatureStatus;
|
|
16
|
+
(function (SignatureStatus) {
|
|
17
|
+
// FIXME: Missing documentation for Pending
|
|
18
|
+
SignatureStatus["Pending"] = "Pending";
|
|
19
|
+
// FIXME: Missing documentation for Executed
|
|
20
|
+
SignatureStatus["Executed"] = "Executed";
|
|
21
|
+
// FIXME: Missing documentation for Rejected
|
|
22
|
+
SignatureStatus["Rejected"] = "Rejected";
|
|
23
|
+
// FIXME: Missing documentation for Failed
|
|
24
|
+
SignatureStatus["Failed"] = "Failed";
|
|
25
|
+
})(SignatureStatus = exports.SignatureStatus || (exports.SignatureStatus = {}));
|
|
26
|
+
// FIXME: Missing documentation for TransactionTemplateKind
|
|
27
|
+
var TransactionTemplateKind;
|
|
28
|
+
(function (TransactionTemplateKind) {
|
|
29
|
+
// FIXME: Missing documentation for EvmGenericTx
|
|
30
|
+
TransactionTemplateKind["EvmGenericTx"] = "EvmGenericTx";
|
|
31
|
+
// FIXME: Missing documentation for CosmosIbcTransfer
|
|
32
|
+
TransactionTemplateKind["CosmosIbcTransfer"] = "CosmosIbcTransfer";
|
|
33
|
+
// FIXME: Missing documentation for SolanaTx
|
|
34
|
+
TransactionTemplateKind["SolanaTx"] = "SolanaTx";
|
|
35
|
+
// FIXME: Missing documentation for TronTx
|
|
36
|
+
TransactionTemplateKind["TronTx"] = "TronTx";
|
|
37
|
+
// FIXME: Missing documentation for TezosTx
|
|
38
|
+
TransactionTemplateKind["TezosTx"] = "TezosTx";
|
|
39
|
+
})(TransactionTemplateKind = exports.TransactionTemplateKind || (exports.TransactionTemplateKind = {}));
|
|
40
|
+
// FIXME: Missing documentation for TransactionStatus
|
|
41
|
+
var TransactionStatus;
|
|
42
|
+
(function (TransactionStatus) {
|
|
43
|
+
// FIXME: Missing documentation for Initiated
|
|
44
|
+
TransactionStatus["Initiated"] = "Initiated";
|
|
45
|
+
// FIXME: Missing documentation for PolicyAccepted
|
|
46
|
+
TransactionStatus["PolicyAccepted"] = "PolicyAccepted";
|
|
47
|
+
// FIXME: Missing documentation for PolicyRejected
|
|
48
|
+
TransactionStatus["PolicyRejected"] = "PolicyRejected";
|
|
49
|
+
// FIXME: Missing documentation for BroadcastPending
|
|
50
|
+
TransactionStatus["BroadcastPending"] = "BroadcastPending";
|
|
51
|
+
// FIXME: Missing documentation for BroadcastRejected
|
|
52
|
+
TransactionStatus["BroadcastRejected"] = "BroadcastRejected";
|
|
53
|
+
// FIXME: Missing documentation for Broadcasted
|
|
54
|
+
TransactionStatus["Broadcasted"] = "Broadcasted";
|
|
55
|
+
// FIXME: Missing documentation for Confirmed
|
|
56
|
+
TransactionStatus["Confirmed"] = "Confirmed";
|
|
57
|
+
// FIXME: Missing documentation for Failed
|
|
58
|
+
TransactionStatus["Failed"] = "Failed";
|
|
59
|
+
})(TransactionStatus = exports.TransactionStatus || (exports.TransactionStatus = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./responses"), exports);
|
|
18
|
+
__exportStar(require("./types"), exports);
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { BadRequestError, EntityNotFoundError, ForbiddenError, UnauthorizedError } from '../Foundations';
|
|
2
|
+
import { PaginatedEventHistory, PaginatedSignatureList, PaginatedTransactionList, PaginatedTransferList, PaginatedWalletList, SignatureRequest, TransactionRequest, TransferRequest, Wallet, WalletAssets, WalletNfts } from './types';
|
|
3
|
+
export type CreateWalletSuccess = Wallet;
|
|
4
|
+
export type CreateWalletError = {
|
|
5
|
+
error: BadRequestError | ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
6
|
+
};
|
|
7
|
+
export type CreateWalletResponse = CreateWalletSuccess | CreateWalletError;
|
|
8
|
+
export type GetWalletSuccess = Wallet;
|
|
9
|
+
export type GetWalletError = {
|
|
10
|
+
error: EntityNotFoundError | BadRequestError | ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
11
|
+
};
|
|
12
|
+
export type GetWalletResponse = GetWalletSuccess | GetWalletError;
|
|
13
|
+
export type GetWalletAssetsSuccess = WalletAssets;
|
|
14
|
+
export type GetWalletAssetsError = {
|
|
15
|
+
error: EntityNotFoundError | ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
16
|
+
};
|
|
17
|
+
export type GetWalletAssetsResponse = GetWalletAssetsSuccess | GetWalletAssetsError;
|
|
18
|
+
export type GetWalletNftsSuccess = WalletNfts;
|
|
19
|
+
export type GetWalletNftsError = {
|
|
20
|
+
error: EntityNotFoundError | BadRequestError | ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
21
|
+
};
|
|
22
|
+
export type GetWalletNftsResponse = GetWalletNftsSuccess | GetWalletNftsError;
|
|
23
|
+
export type ListWalletsSuccess = PaginatedWalletList;
|
|
24
|
+
export type ListWalletsError = {
|
|
25
|
+
error: ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
26
|
+
};
|
|
27
|
+
export type ListWalletsResponse = ListWalletsSuccess | ListWalletsError;
|
|
28
|
+
export type GetWalletHistorySuccess = PaginatedEventHistory;
|
|
29
|
+
export type GetWalletHistoryError = {
|
|
30
|
+
error: EntityNotFoundError | BadRequestError | ForbiddenError | UnauthorizedError;
|
|
31
|
+
};
|
|
32
|
+
export type GetWalletHistoryResponse = GetWalletHistorySuccess | GetWalletHistoryError;
|
|
33
|
+
export type TransferAssetSuccess = TransferRequest;
|
|
34
|
+
export type TransferAssetError = {
|
|
35
|
+
error: BadRequestError | ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
36
|
+
};
|
|
37
|
+
export type TransferAssetResponse = TransferAssetSuccess | TransferAssetError;
|
|
38
|
+
export type GetTransferSuccess = TransferRequest;
|
|
39
|
+
export type GetTransferError = {
|
|
40
|
+
error: EntityNotFoundError | BadRequestError | ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
41
|
+
};
|
|
42
|
+
export type GetTransferResponse = GetTransferSuccess | GetTransferError;
|
|
43
|
+
export type ListTransfersSuccess = PaginatedTransferList;
|
|
44
|
+
export type ListTransfersError = {
|
|
45
|
+
error: ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
46
|
+
};
|
|
47
|
+
export type ListTransfersResponse = ListTransfersSuccess | ListTransfersError;
|
|
48
|
+
export type BroadcastTransactionSuccess = TransactionRequest;
|
|
49
|
+
export type BroadcastTransactionError = {
|
|
50
|
+
error: BadRequestError | ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
51
|
+
};
|
|
52
|
+
export type BroadcastTransactionResponse = BroadcastTransactionSuccess | BroadcastTransactionError;
|
|
53
|
+
export type GetTransactionSuccess = TransactionRequest;
|
|
54
|
+
export type GetTransactionError = {
|
|
55
|
+
error: EntityNotFoundError | BadRequestError | ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
56
|
+
};
|
|
57
|
+
export type GetTransactionResponse = GetTransactionSuccess | GetTransactionError;
|
|
58
|
+
export type ListTransactionsSuccess = PaginatedTransactionList;
|
|
59
|
+
export type ListTransactionsError = {
|
|
60
|
+
error: ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
61
|
+
};
|
|
62
|
+
export type ListTransactionsResponse = ListTransactionsSuccess | ListTransactionsError;
|
|
63
|
+
export type GenerateSignatureSuccess = SignatureRequest;
|
|
64
|
+
export type GenerateSignatureError = {
|
|
65
|
+
error: BadRequestError | ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
66
|
+
};
|
|
67
|
+
export type GenerateSignatureResponse = GenerateSignatureSuccess | GenerateSignatureError;
|
|
68
|
+
export type GetSignatureSuccess = SignatureRequest;
|
|
69
|
+
export type GetSignatureError = {
|
|
70
|
+
error: EntityNotFoundError | BadRequestError | ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
71
|
+
};
|
|
72
|
+
export type GetSignatureResponse = GetSignatureSuccess | GetSignatureError;
|
|
73
|
+
export type ListSignaturesSuccess = PaginatedSignatureList;
|
|
74
|
+
export type ListSignaturesError = {
|
|
75
|
+
error: ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
76
|
+
};
|
|
77
|
+
export type ListSignaturesResponse = ListSignaturesSuccess | ListSignaturesError;
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import { Amount, BlockchainAddress, BlockchainNetwork, EntityId, IsoDatetime, Tag } from '../Foundations';
|
|
2
|
+
import { IdentityKind } from '../Permissions';
|
|
3
|
+
export type TransferNativeRequest = {
|
|
4
|
+
kind: TransferKind.Native;
|
|
5
|
+
to: BlockchainAddress;
|
|
6
|
+
amount: Amount;
|
|
7
|
+
};
|
|
8
|
+
export type TransferErc20Request = {
|
|
9
|
+
kind: TransferKind.Erc20;
|
|
10
|
+
contract: BlockchainAddress;
|
|
11
|
+
to: BlockchainAddress;
|
|
12
|
+
amount: Amount;
|
|
13
|
+
};
|
|
14
|
+
export type TransferErc721Request = {
|
|
15
|
+
kind: TransferKind.Erc721;
|
|
16
|
+
contract: BlockchainAddress;
|
|
17
|
+
to: BlockchainAddress;
|
|
18
|
+
tokenId: string;
|
|
19
|
+
};
|
|
20
|
+
export type BroadcastEvmTransactionRequest = {
|
|
21
|
+
kind: TransactionKind.Evm;
|
|
22
|
+
to?: BlockchainAddress;
|
|
23
|
+
value?: Amount;
|
|
24
|
+
data?: string;
|
|
25
|
+
nonce?: number;
|
|
26
|
+
gasLimit?: Amount;
|
|
27
|
+
gasPrice?: Amount;
|
|
28
|
+
maxPriorityFeePerGas?: Amount;
|
|
29
|
+
maxFeePerGas?: Amount;
|
|
30
|
+
};
|
|
31
|
+
export type SignHashRequest = {
|
|
32
|
+
kind: SignatureKind.Hash;
|
|
33
|
+
hash: string;
|
|
34
|
+
};
|
|
35
|
+
export type Eip712Domain = {
|
|
36
|
+
name?: string;
|
|
37
|
+
version?: string;
|
|
38
|
+
chainId?: number;
|
|
39
|
+
verifyingContract?: BlockchainAddress;
|
|
40
|
+
salt?: string;
|
|
41
|
+
};
|
|
42
|
+
export type SignEip712TypedDataRequest = {
|
|
43
|
+
kind: SignatureKind.Eip712;
|
|
44
|
+
types: Record<string, unknown>;
|
|
45
|
+
domain: Eip712Domain;
|
|
46
|
+
message: Record<string, unknown>;
|
|
47
|
+
};
|
|
48
|
+
export type Wallet = {
|
|
49
|
+
id: EntityId;
|
|
50
|
+
network: BlockchainNetwork;
|
|
51
|
+
status: WalletStatus;
|
|
52
|
+
address?: string;
|
|
53
|
+
name?: string;
|
|
54
|
+
externalId?: string;
|
|
55
|
+
tags: Tag[];
|
|
56
|
+
dateCreated: IsoDatetime;
|
|
57
|
+
};
|
|
58
|
+
export type WalletAssets = {
|
|
59
|
+
walletId: EntityId;
|
|
60
|
+
network: BlockchainNetwork;
|
|
61
|
+
assets: WalletAsset[];
|
|
62
|
+
};
|
|
63
|
+
export type WalletAsset = {
|
|
64
|
+
contract?: string;
|
|
65
|
+
name?: string;
|
|
66
|
+
symbol?: string;
|
|
67
|
+
decimals: number;
|
|
68
|
+
balance: Amount;
|
|
69
|
+
};
|
|
70
|
+
export type WalletNfts = {
|
|
71
|
+
walletId: EntityId;
|
|
72
|
+
network: BlockchainNetwork;
|
|
73
|
+
nfts: WalletNft[];
|
|
74
|
+
};
|
|
75
|
+
export type WalletNft = {
|
|
76
|
+
contract: string;
|
|
77
|
+
name?: string;
|
|
78
|
+
symbol?: string;
|
|
79
|
+
tokenIds: string[];
|
|
80
|
+
count: number;
|
|
81
|
+
};
|
|
82
|
+
export type PaginatedWalletList = {
|
|
83
|
+
items: Wallet[];
|
|
84
|
+
nextPageToken?: string;
|
|
85
|
+
};
|
|
86
|
+
export type NativeTransferEvent = {
|
|
87
|
+
kind: EventKind.NativeTransfer;
|
|
88
|
+
walletId: EntityId;
|
|
89
|
+
network: BlockchainNetwork;
|
|
90
|
+
blockNumber: number;
|
|
91
|
+
txHash: string;
|
|
92
|
+
index?: string;
|
|
93
|
+
timestamp: IsoDatetime;
|
|
94
|
+
fee?: Amount;
|
|
95
|
+
direction: TransferDirection;
|
|
96
|
+
symbol: string;
|
|
97
|
+
decimals: number;
|
|
98
|
+
from: BlockchainAddress;
|
|
99
|
+
to: BlockchainAddress;
|
|
100
|
+
value: Amount;
|
|
101
|
+
};
|
|
102
|
+
export type Erc20TransferEvent = {
|
|
103
|
+
kind: EventKind.Erc20Transfer;
|
|
104
|
+
walletId: EntityId;
|
|
105
|
+
network: BlockchainNetwork;
|
|
106
|
+
blockNumber: number;
|
|
107
|
+
txHash: string;
|
|
108
|
+
index?: string;
|
|
109
|
+
timestamp: IsoDatetime;
|
|
110
|
+
fee?: Amount;
|
|
111
|
+
direction: TransferDirection;
|
|
112
|
+
contract: BlockchainAddress;
|
|
113
|
+
name?: string;
|
|
114
|
+
symbol?: string;
|
|
115
|
+
decimals: number;
|
|
116
|
+
from: BlockchainAddress;
|
|
117
|
+
to: BlockchainAddress;
|
|
118
|
+
value: Amount;
|
|
119
|
+
};
|
|
120
|
+
export type Erc721TransferEvent = {
|
|
121
|
+
kind: EventKind.Erc721Transfer;
|
|
122
|
+
walletId: EntityId;
|
|
123
|
+
network: BlockchainNetwork;
|
|
124
|
+
blockNumber: number;
|
|
125
|
+
txHash: string;
|
|
126
|
+
index?: string;
|
|
127
|
+
timestamp: IsoDatetime;
|
|
128
|
+
fee?: Amount;
|
|
129
|
+
direction: TransferDirection;
|
|
130
|
+
contract: BlockchainAddress;
|
|
131
|
+
name?: string;
|
|
132
|
+
symbol?: string;
|
|
133
|
+
from: BlockchainAddress;
|
|
134
|
+
to: BlockchainAddress;
|
|
135
|
+
tokenId: string;
|
|
136
|
+
};
|
|
137
|
+
export type PaginatedEventHistory = {
|
|
138
|
+
walletId: EntityId;
|
|
139
|
+
network: BlockchainNetwork;
|
|
140
|
+
items: BlockchainEvent[];
|
|
141
|
+
nextPageToken?: string;
|
|
142
|
+
};
|
|
143
|
+
export type TransferRequest = {
|
|
144
|
+
id: EntityId;
|
|
145
|
+
walletId: EntityId;
|
|
146
|
+
network: BlockchainNetwork;
|
|
147
|
+
txHash?: string;
|
|
148
|
+
requester: RequesterIdentity;
|
|
149
|
+
requestBody: TransferAssetRequest;
|
|
150
|
+
status: TransferStatus;
|
|
151
|
+
fee?: Amount;
|
|
152
|
+
error?: string;
|
|
153
|
+
dateRequested: IsoDatetime;
|
|
154
|
+
dateBroadcasted?: IsoDatetime;
|
|
155
|
+
dateConfirmed?: IsoDatetime;
|
|
156
|
+
};
|
|
157
|
+
export type PaginatedTransferList = {
|
|
158
|
+
walletId: EntityId;
|
|
159
|
+
items: TransferRequest[];
|
|
160
|
+
nextPageToken?: string;
|
|
161
|
+
};
|
|
162
|
+
export type TransactionRequest = {
|
|
163
|
+
id: EntityId;
|
|
164
|
+
walletId: EntityId;
|
|
165
|
+
network: BlockchainNetwork;
|
|
166
|
+
txHash?: string;
|
|
167
|
+
requester: RequesterIdentity;
|
|
168
|
+
requestBody: BroadcastTransactionRequest;
|
|
169
|
+
status: TransactionStatus;
|
|
170
|
+
error?: string;
|
|
171
|
+
fee?: Amount;
|
|
172
|
+
dateRequested: IsoDatetime;
|
|
173
|
+
dateBroadcasted?: IsoDatetime;
|
|
174
|
+
dateConfirmed?: IsoDatetime;
|
|
175
|
+
};
|
|
176
|
+
export type PaginatedTransactionList = {
|
|
177
|
+
walletId: EntityId;
|
|
178
|
+
items: TransactionRequest[];
|
|
179
|
+
nextPageToken?: string;
|
|
180
|
+
};
|
|
181
|
+
export type Signature = {
|
|
182
|
+
r: string;
|
|
183
|
+
s: string;
|
|
184
|
+
recid?: number;
|
|
185
|
+
};
|
|
186
|
+
export type SignatureRequest = {
|
|
187
|
+
id: EntityId;
|
|
188
|
+
walletId: EntityId;
|
|
189
|
+
requester: RequesterIdentity;
|
|
190
|
+
requestBody: GenerateSignatureRequest;
|
|
191
|
+
signature?: Signature;
|
|
192
|
+
status: SignatureStatus;
|
|
193
|
+
error?: string;
|
|
194
|
+
dateRequested: IsoDatetime;
|
|
195
|
+
datePolicyResolved?: IsoDatetime;
|
|
196
|
+
dateSigned?: IsoDatetime;
|
|
197
|
+
};
|
|
198
|
+
export type PaginatedSignatureList = {
|
|
199
|
+
walletId: EntityId;
|
|
200
|
+
items: SignatureRequest[];
|
|
201
|
+
nextPageToken?: string;
|
|
202
|
+
};
|
|
203
|
+
export type RequesterIdentity = {
|
|
204
|
+
kind: IdentityKind;
|
|
205
|
+
userId: EntityId;
|
|
206
|
+
tokenId?: EntityId;
|
|
207
|
+
appId?: EntityId;
|
|
208
|
+
};
|
|
209
|
+
export type CreateWalletRequest = {
|
|
210
|
+
network: BlockchainNetwork;
|
|
211
|
+
externalId?: string;
|
|
212
|
+
tags?: Tag[];
|
|
213
|
+
name?: string;
|
|
214
|
+
};
|
|
215
|
+
export type TransferAssetRequest = TransferNativeRequest | TransferErc20Request | TransferErc721Request;
|
|
216
|
+
export type BroadcastTransactionRequest = BroadcastEvmTransactionRequest;
|
|
217
|
+
export type GenerateSignatureRequest = SignHashRequest | SignEip712TypedDataRequest;
|
|
218
|
+
export type BlockchainEvent = NativeTransferEvent | Erc20TransferEvent | Erc721TransferEvent;
|
|
219
|
+
export declare enum TransferKind {
|
|
220
|
+
Native = "Native",
|
|
221
|
+
Erc20 = "Erc20",
|
|
222
|
+
Erc721 = "Erc721"
|
|
223
|
+
}
|
|
224
|
+
export declare enum TransactionKind {
|
|
225
|
+
Evm = "Evm"
|
|
226
|
+
}
|
|
227
|
+
export declare enum SignatureKind {
|
|
228
|
+
Hash = "Hash",
|
|
229
|
+
Eip712 = "Eip712"
|
|
230
|
+
}
|
|
231
|
+
export declare enum WalletStatus {
|
|
232
|
+
Active = "Active",
|
|
233
|
+
Creating = "Creating",
|
|
234
|
+
Failed = "Failed"
|
|
235
|
+
}
|
|
236
|
+
export declare enum EventKind {
|
|
237
|
+
NativeTransfer = "NativeTransfer",
|
|
238
|
+
Erc20Transfer = "Erc20Transfer",
|
|
239
|
+
Erc721Transfer = "Erc721Transfer"
|
|
240
|
+
}
|
|
241
|
+
export declare enum TransferDirection {
|
|
242
|
+
In = "In",
|
|
243
|
+
Out = "Out"
|
|
244
|
+
}
|
|
245
|
+
export declare enum TransferStatus {
|
|
246
|
+
Pending = "Pending",
|
|
247
|
+
Broadcasted = "Broadcasted",
|
|
248
|
+
Confirmed = "Confirmed",
|
|
249
|
+
Failed = "Failed"
|
|
250
|
+
}
|
|
251
|
+
export declare enum TransactionStatus {
|
|
252
|
+
Pending = "Pending",
|
|
253
|
+
Broadcasted = "Broadcasted",
|
|
254
|
+
Confirmed = "Confirmed",
|
|
255
|
+
Failed = "Failed"
|
|
256
|
+
}
|
|
257
|
+
export declare enum SignatureStatus {
|
|
258
|
+
Pending = "Pending",
|
|
259
|
+
Signed = "Signed",
|
|
260
|
+
Failed = "Failed"
|
|
261
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SignatureStatus = exports.TransactionStatus = exports.TransferStatus = exports.TransferDirection = exports.EventKind = exports.WalletStatus = exports.SignatureKind = exports.TransactionKind = exports.TransferKind = void 0;
|
|
4
|
+
// FIXME: Missing documentation for TransferKind
|
|
5
|
+
var TransferKind;
|
|
6
|
+
(function (TransferKind) {
|
|
7
|
+
// FIXME: Missing documentation for Native
|
|
8
|
+
TransferKind["Native"] = "Native";
|
|
9
|
+
// FIXME: Missing documentation for Erc20
|
|
10
|
+
TransferKind["Erc20"] = "Erc20";
|
|
11
|
+
// FIXME: Missing documentation for Erc721
|
|
12
|
+
TransferKind["Erc721"] = "Erc721";
|
|
13
|
+
})(TransferKind = exports.TransferKind || (exports.TransferKind = {}));
|
|
14
|
+
// FIXME: Missing documentation for TransactionKind
|
|
15
|
+
var TransactionKind;
|
|
16
|
+
(function (TransactionKind) {
|
|
17
|
+
// FIXME: Missing documentation for Evm
|
|
18
|
+
TransactionKind["Evm"] = "Evm";
|
|
19
|
+
})(TransactionKind = exports.TransactionKind || (exports.TransactionKind = {}));
|
|
20
|
+
// FIXME: Missing documentation for SignatureKind
|
|
21
|
+
var SignatureKind;
|
|
22
|
+
(function (SignatureKind) {
|
|
23
|
+
// FIXME: Missing documentation for Hash
|
|
24
|
+
SignatureKind["Hash"] = "Hash";
|
|
25
|
+
// FIXME: Missing documentation for Eip712
|
|
26
|
+
SignatureKind["Eip712"] = "Eip712";
|
|
27
|
+
})(SignatureKind = exports.SignatureKind || (exports.SignatureKind = {}));
|
|
28
|
+
// FIXME: Missing documentation for WalletStatus
|
|
29
|
+
var WalletStatus;
|
|
30
|
+
(function (WalletStatus) {
|
|
31
|
+
// FIXME: Missing documentation for Active
|
|
32
|
+
WalletStatus["Active"] = "Active";
|
|
33
|
+
//Initial state of `AssetAccount` entity, indicating that it’s being created at the moment.
|
|
34
|
+
WalletStatus["Creating"] = "Creating";
|
|
35
|
+
// FIXME: Missing documentation for Failed
|
|
36
|
+
WalletStatus["Failed"] = "Failed";
|
|
37
|
+
})(WalletStatus = exports.WalletStatus || (exports.WalletStatus = {}));
|
|
38
|
+
// FIXME: Missing documentation for EventKind
|
|
39
|
+
var EventKind;
|
|
40
|
+
(function (EventKind) {
|
|
41
|
+
// FIXME: Missing documentation for NativeTransfer
|
|
42
|
+
EventKind["NativeTransfer"] = "NativeTransfer";
|
|
43
|
+
// FIXME: Missing documentation for Erc20Transfer
|
|
44
|
+
EventKind["Erc20Transfer"] = "Erc20Transfer";
|
|
45
|
+
// FIXME: Missing documentation for Erc721Transfer
|
|
46
|
+
EventKind["Erc721Transfer"] = "Erc721Transfer";
|
|
47
|
+
})(EventKind = exports.EventKind || (exports.EventKind = {}));
|
|
48
|
+
// FIXME: Missing documentation for TransferDirection
|
|
49
|
+
var TransferDirection;
|
|
50
|
+
(function (TransferDirection) {
|
|
51
|
+
// FIXME: Missing documentation for In
|
|
52
|
+
TransferDirection["In"] = "In";
|
|
53
|
+
// FIXME: Missing documentation for Out
|
|
54
|
+
TransferDirection["Out"] = "Out";
|
|
55
|
+
})(TransferDirection = exports.TransferDirection || (exports.TransferDirection = {}));
|
|
56
|
+
// FIXME: Missing documentation for TransferStatus
|
|
57
|
+
var TransferStatus;
|
|
58
|
+
(function (TransferStatus) {
|
|
59
|
+
// FIXME: Missing documentation for Pending
|
|
60
|
+
TransferStatus["Pending"] = "Pending";
|
|
61
|
+
// FIXME: Missing documentation for Broadcasted
|
|
62
|
+
TransferStatus["Broadcasted"] = "Broadcasted";
|
|
63
|
+
// FIXME: Missing documentation for Confirmed
|
|
64
|
+
TransferStatus["Confirmed"] = "Confirmed";
|
|
65
|
+
// FIXME: Missing documentation for Failed
|
|
66
|
+
TransferStatus["Failed"] = "Failed";
|
|
67
|
+
})(TransferStatus = exports.TransferStatus || (exports.TransferStatus = {}));
|
|
68
|
+
// FIXME: Missing documentation for TransactionStatus
|
|
69
|
+
var TransactionStatus;
|
|
70
|
+
(function (TransactionStatus) {
|
|
71
|
+
// FIXME: Missing documentation for Pending
|
|
72
|
+
TransactionStatus["Pending"] = "Pending";
|
|
73
|
+
// FIXME: Missing documentation for Broadcasted
|
|
74
|
+
TransactionStatus["Broadcasted"] = "Broadcasted";
|
|
75
|
+
// FIXME: Missing documentation for Confirmed
|
|
76
|
+
TransactionStatus["Confirmed"] = "Confirmed";
|
|
77
|
+
// FIXME: Missing documentation for Failed
|
|
78
|
+
TransactionStatus["Failed"] = "Failed";
|
|
79
|
+
})(TransactionStatus = exports.TransactionStatus || (exports.TransactionStatus = {}));
|
|
80
|
+
// FIXME: Missing documentation for SignatureStatus
|
|
81
|
+
var SignatureStatus;
|
|
82
|
+
(function (SignatureStatus) {
|
|
83
|
+
// FIXME: Missing documentation for Pending
|
|
84
|
+
SignatureStatus["Pending"] = "Pending";
|
|
85
|
+
// FIXME: Missing documentation for Signed
|
|
86
|
+
SignatureStatus["Signed"] = "Signed";
|
|
87
|
+
// FIXME: Missing documentation for Failed
|
|
88
|
+
SignatureStatus["Failed"] = "Failed";
|
|
89
|
+
})(SignatureStatus = exports.SignatureStatus || (exports.SignatureStatus = {}));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { DfnsBaseApiOptions } from './baseAuthApi';
|
|
2
|
+
import { ApiKeysClient } from './codegen/ApiKeys';
|
|
3
|
+
import { AssetsClient } from './codegen/Assets';
|
|
4
|
+
import { AuthClient } from './codegen/Auth';
|
|
5
|
+
import { CallbacksClient } from './codegen/Callbacks';
|
|
6
|
+
import { PermissionsClient } from './codegen/Permissions';
|
|
7
|
+
import { PolicyExecutionClient } from './codegen/PolicyExecution';
|
|
8
|
+
import { PolicyManagementClient } from './codegen/PolicyManagement';
|
|
9
|
+
import { PublicKeysClient } from './codegen/PublicKeys';
|
|
10
|
+
import { WalletsClient } from './codegen/Wallets';
|
|
11
|
+
import { Signer } from './signer';
|
|
12
|
+
export type DfnsApiClientOptions = DfnsBaseApiOptions & {
|
|
13
|
+
signer: Signer;
|
|
14
|
+
};
|
|
15
|
+
export declare class DfnsApiClient {
|
|
16
|
+
private apiOptions;
|
|
17
|
+
constructor(apiOptions: DfnsApiClientOptions);
|
|
18
|
+
get apiKeys(): ApiKeysClient;
|
|
19
|
+
get assets(): AssetsClient;
|
|
20
|
+
get auth(): AuthClient;
|
|
21
|
+
get callbacks(): CallbacksClient;
|
|
22
|
+
get permissions(): PermissionsClient;
|
|
23
|
+
get policyExecution(): PolicyExecutionClient;
|
|
24
|
+
get policyManagement(): PolicyManagementClient;
|
|
25
|
+
get publicKeys(): PublicKeysClient;
|
|
26
|
+
get wallets(): WalletsClient;
|
|
27
|
+
}
|
package/dfnsApiClient.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DfnsApiClient = void 0;
|
|
4
|
+
const ApiKeys_1 = require("./codegen/ApiKeys");
|
|
5
|
+
const Assets_1 = require("./codegen/Assets");
|
|
6
|
+
const Auth_1 = require("./codegen/Auth");
|
|
7
|
+
const Callbacks_1 = require("./codegen/Callbacks");
|
|
8
|
+
const Permissions_1 = require("./codegen/Permissions");
|
|
9
|
+
const PolicyExecution_1 = require("./codegen/PolicyExecution");
|
|
10
|
+
const PolicyManagement_1 = require("./codegen/PolicyManagement");
|
|
11
|
+
const PublicKeys_1 = require("./codegen/PublicKeys");
|
|
12
|
+
const Wallets_1 = require("./codegen/Wallets");
|
|
13
|
+
class DfnsApiClient {
|
|
14
|
+
constructor(apiOptions) {
|
|
15
|
+
this.apiOptions = apiOptions;
|
|
16
|
+
}
|
|
17
|
+
get apiKeys() {
|
|
18
|
+
return new ApiKeys_1.ApiKeysClient(this.apiOptions);
|
|
19
|
+
}
|
|
20
|
+
get assets() {
|
|
21
|
+
return new Assets_1.AssetsClient(this.apiOptions);
|
|
22
|
+
}
|
|
23
|
+
get auth() {
|
|
24
|
+
return new Auth_1.AuthClient(this.apiOptions);
|
|
25
|
+
}
|
|
26
|
+
get callbacks() {
|
|
27
|
+
return new Callbacks_1.CallbacksClient(this.apiOptions);
|
|
28
|
+
}
|
|
29
|
+
get permissions() {
|
|
30
|
+
return new Permissions_1.PermissionsClient(this.apiOptions);
|
|
31
|
+
}
|
|
32
|
+
get policyExecution() {
|
|
33
|
+
return new PolicyExecution_1.PolicyExecutionClient(this.apiOptions);
|
|
34
|
+
}
|
|
35
|
+
get policyManagement() {
|
|
36
|
+
return new PolicyManagement_1.PolicyManagementClient(this.apiOptions);
|
|
37
|
+
}
|
|
38
|
+
get publicKeys() {
|
|
39
|
+
return new PublicKeys_1.PublicKeysClient(this.apiOptions);
|
|
40
|
+
}
|
|
41
|
+
get wallets() {
|
|
42
|
+
return new Wallets_1.WalletsClient(this.apiOptions);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.DfnsApiClient = DfnsApiClient;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CreateUserLoginChallengeRequest, UserLoginResponse } from './baseAuthApi';
|
|
2
|
+
import { DfnsApiClientOptions } from './dfnsApiClient';
|
|
3
|
+
export type LoginRequest = CreateUserLoginChallengeRequest;
|
|
4
|
+
export type LoginResponse = UserLoginResponse;
|
|
5
|
+
export type DfnsAuthenticatorOptions = Omit<DfnsApiClientOptions, 'accessToken'>;
|
|
6
|
+
export declare class DfnsAuthenticator {
|
|
7
|
+
private apiOptions;
|
|
8
|
+
private api;
|
|
9
|
+
constructor(apiOptions: DfnsAuthenticatorOptions);
|
|
10
|
+
login(request: LoginRequest): Promise<LoginResponse>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DfnsAuthenticator = void 0;
|
|
4
|
+
const baseAuthApi_1 = require("./baseAuthApi");
|
|
5
|
+
class DfnsAuthenticator {
|
|
6
|
+
constructor(apiOptions) {
|
|
7
|
+
this.apiOptions = apiOptions;
|
|
8
|
+
}
|
|
9
|
+
async login(request) {
|
|
10
|
+
const { challenge, challengeIdentifier, allowCredentials } = await baseAuthApi_1.BaseAuthApi.createUserLoginChallenge(request, this.apiOptions);
|
|
11
|
+
const assertions = await this.apiOptions.signer.sign(challenge, allowCredentials);
|
|
12
|
+
return baseAuthApi_1.BaseAuthApi.signUserLoginChallenge({
|
|
13
|
+
challengeIdentifier,
|
|
14
|
+
...assertions,
|
|
15
|
+
}, this.apiOptions);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.DfnsAuthenticator = DfnsAuthenticator;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DfnsBaseApiOptions } from './baseAuthApi';
|
|
2
|
+
import { DelegatedApiKeysClient } from './codegen/ApiKeys';
|
|
3
|
+
import { DelegatedAssetsClient } from './codegen/Assets';
|
|
4
|
+
import { DelegatedCallbacksClient } from './codegen/Callbacks';
|
|
5
|
+
import { DelegatedPermissionsClient } from './codegen/Permissions';
|
|
6
|
+
import { DelegatedPolicyExecutionClient } from './codegen/PolicyExecution';
|
|
7
|
+
import { DelegatedPolicyManagementClient } from './codegen/PolicyManagement';
|
|
8
|
+
import { DelegatedPublicKeysClient } from './codegen/PublicKeys';
|
|
9
|
+
import { DelegatedWalletsClient } from './codegen/Wallets';
|
|
10
|
+
export type DfnsDelegatedApiClientOptions = DfnsBaseApiOptions & {
|
|
11
|
+
accessToken: string;
|
|
12
|
+
};
|
|
13
|
+
export declare class DfnsDelegatedApiClient {
|
|
14
|
+
private apiOptions;
|
|
15
|
+
constructor(apiOptions: DfnsDelegatedApiClientOptions);
|
|
16
|
+
get apiKeys(): DelegatedApiKeysClient;
|
|
17
|
+
get assets(): DelegatedAssetsClient;
|
|
18
|
+
get callbacks(): DelegatedCallbacksClient;
|
|
19
|
+
get permissions(): DelegatedPermissionsClient;
|
|
20
|
+
get policyExecution(): DelegatedPolicyExecutionClient;
|
|
21
|
+
get policyManagement(): DelegatedPolicyManagementClient;
|
|
22
|
+
get publicKeys(): DelegatedPublicKeysClient;
|
|
23
|
+
get wallets(): DelegatedWalletsClient;
|
|
24
|
+
}
|