@dfns/sdk 0.2.3-rc.1 → 0.2.3
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 +113 -0
- package/baseAuthApi.js +97 -0
- package/codegen/Assets/AssetsClient.d.ts +13 -0
- package/codegen/Assets/AssetsClient.js +93 -0
- package/codegen/Assets/DelegatedAssetsClient.d.ts +16 -0
- package/codegen/Assets/DelegatedAssetsClient.js +124 -0
- package/codegen/Assets/index.d.ts +3 -0
- package/codegen/Assets/index.js +19 -0
- package/codegen/Assets/types.d.ts +37 -0
- package/codegen/Assets/types.js +2 -0
- package/codegen/Auth/AuthClient.d.ts +50 -0
- package/codegen/Auth/AuthClient.js +518 -0
- package/codegen/Auth/DelegatedAuthClient.d.ts +78 -0
- package/codegen/Auth/DelegatedAuthClient.js +936 -0
- package/codegen/Auth/index.d.ts +3 -0
- package/codegen/Auth/index.js +19 -0
- package/codegen/Auth/types.d.ts +177 -0
- package/codegen/Auth/types.js +2 -0
- package/codegen/Blockchains/BlockchainsClient.d.ts +7 -0
- package/codegen/Blockchains/BlockchainsClient.js +23 -0
- package/codegen/Blockchains/DelegatedBlockchainsClient.d.ts +7 -0
- package/codegen/Blockchains/DelegatedBlockchainsClient.js +23 -0
- package/codegen/Blockchains/index.d.ts +3 -0
- package/codegen/Blockchains/index.js +19 -0
- package/codegen/Blockchains/types.d.ts +6 -0
- package/codegen/Blockchains/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.ts → types.d.ts} +18 -26
- package/codegen/Callbacks/types.js +2 -0
- package/codegen/Permissions/DelegatedPermissionsClient.d.ts +27 -0
- package/codegen/Permissions/DelegatedPermissionsClient.js +284 -0
- package/codegen/Permissions/PermissionsClient.d.ts +18 -0
- package/codegen/Permissions/PermissionsClient.js +156 -0
- package/codegen/Permissions/index.d.ts +3 -0
- package/codegen/Permissions/index.js +19 -0
- package/codegen/Permissions/types.d.ts +62 -0
- package/codegen/Permissions/types.js +2 -0
- package/codegen/PolicyExecution/DelegatedPolicyExecutionClient.d.ts +11 -0
- package/codegen/PolicyExecution/DelegatedPolicyExecutionClient.js +61 -0
- package/codegen/PolicyExecution/PolicyExecutionClient.d.ts +9 -0
- package/codegen/PolicyExecution/PolicyExecutionClient.js +45 -0
- package/codegen/PolicyExecution/index.d.ts +3 -0
- package/codegen/PolicyExecution/index.js +19 -0
- package/codegen/PolicyExecution/types.d.ts +18 -0
- package/codegen/PolicyExecution/types.js +2 -0
- package/codegen/PolicyManagement/DelegatedPolicyManagementClient.d.ts +25 -0
- package/codegen/PolicyManagement/DelegatedPolicyManagementClient.js +240 -0
- package/codegen/PolicyManagement/PolicyManagementClient.d.ts +18 -0
- package/codegen/PolicyManagement/PolicyManagementClient.js +146 -0
- package/codegen/PolicyManagement/index.d.ts +3 -0
- package/codegen/PolicyManagement/index.js +19 -0
- package/codegen/PolicyManagement/{types.ts → types.d.ts} +40 -56
- package/codegen/PolicyManagement/types.js +2 -0
- package/codegen/PublicKeys/DelegatedPublicKeysClient.d.ts +21 -0
- package/codegen/PublicKeys/DelegatedPublicKeysClient.js +189 -0
- package/codegen/PublicKeys/PublicKeysClient.d.ts +16 -0
- package/codegen/PublicKeys/PublicKeysClient.js +128 -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/Signers/DelegatedSignersClient.d.ts +7 -0
- package/codegen/Signers/DelegatedSignersClient.js +22 -0
- package/codegen/Signers/SignersClient.d.ts +7 -0
- package/codegen/Signers/SignersClient.js +22 -0
- package/codegen/Signers/index.d.ts +3 -0
- package/codegen/Signers/index.js +19 -0
- package/codegen/Signers/types.d.ts +2 -0
- package/codegen/Signers/types.js +2 -0
- package/codegen/Wallets/DelegatedWalletsClient.d.ts +32 -0
- package/codegen/Wallets/DelegatedWalletsClient.js +325 -0
- package/codegen/Wallets/WalletsClient.d.ts +24 -0
- package/codegen/Wallets/WalletsClient.js +219 -0
- package/codegen/Wallets/index.d.ts +3 -0
- package/codegen/Wallets/index.js +19 -0
- package/codegen/Wallets/types.d.ts +101 -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 +47 -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/errors.js +1 -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 +358 -0
- package/codegen/datamodel/Auth/responses.js +2 -0
- package/codegen/datamodel/Auth/types.d.ts +615 -0
- package/codegen/datamodel/Auth/types.js +127 -0
- package/codegen/datamodel/BlockchainIndexing/errors.js +1 -0
- package/codegen/datamodel/BlockchainIndexing/index.d.ts +1 -0
- package/codegen/datamodel/BlockchainIndexing/index.js +17 -0
- package/codegen/datamodel/BlockchainIndexing/{responses.ts → responses.d.ts} +5 -10
- package/codegen/datamodel/BlockchainIndexing/responses.js +2 -0
- package/codegen/datamodel/BlockchainIndexing/types.js +1 -0
- package/codegen/datamodel/Blockchains/errors.js +1 -0
- package/codegen/datamodel/Blockchains/index.d.ts +2 -0
- package/codegen/datamodel/Blockchains/index.js +18 -0
- package/codegen/datamodel/Blockchains/responses.d.ts +12 -0
- package/codegen/datamodel/Blockchains/responses.js +2 -0
- package/codegen/datamodel/Blockchains/types.d.ts +270 -0
- package/codegen/datamodel/Blockchains/types.js +53 -0
- package/codegen/datamodel/Callbacks/errors.js +1 -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 +131 -0
- package/codegen/datamodel/Foundations/errors.js +182 -0
- package/codegen/datamodel/Foundations/index.d.ts +2 -0
- package/codegen/datamodel/Foundations/index.js +18 -0
- package/codegen/datamodel/Foundations/responses.js +1 -0
- package/codegen/datamodel/Foundations/types.d.ts +9759 -0
- package/codegen/datamodel/Foundations/types.js +57755 -0
- package/codegen/datamodel/Orgs/errors.js +1 -0
- package/codegen/datamodel/Orgs/index.d.ts +2 -0
- package/codegen/datamodel/Orgs/index.js +18 -0
- package/codegen/datamodel/Orgs/responses.d.ts +45 -0
- package/codegen/datamodel/Orgs/responses.js +2 -0
- package/codegen/datamodel/Orgs/types.d.ts +240 -0
- package/codegen/datamodel/Orgs/types.js +39 -0
- package/codegen/datamodel/Permissions/errors.js +1 -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 +93 -0
- package/codegen/datamodel/Permissions/types.js +43 -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 +19 -0
- package/codegen/datamodel/PolicyExecution/responses.js +2 -0
- package/codegen/datamodel/PolicyExecution/types.d.ts +60 -0
- package/codegen/datamodel/PolicyExecution/types.js +17 -0
- package/codegen/datamodel/PolicyManagement/errors.js +1 -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 +391 -0
- package/codegen/datamodel/PolicyManagement/types.js +95 -0
- package/codegen/datamodel/PublicKeys/errors.js +1 -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 +223 -0
- package/codegen/datamodel/PublicKeys/types.js +59 -0
- package/codegen/datamodel/Signers/errors.js +1 -0
- package/codegen/datamodel/Signers/index.d.ts +2 -0
- package/codegen/datamodel/Signers/index.js +18 -0
- package/codegen/datamodel/Signers/responses.d.ts +27 -0
- package/codegen/datamodel/Signers/responses.js +2 -0
- package/codegen/datamodel/Signers/types.d.ts +21 -0
- package/codegen/datamodel/Signers/types.js +2 -0
- package/codegen/datamodel/Wallets/errors.js +1 -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 +92 -0
- package/codegen/datamodel/Wallets/responses.js +2 -0
- package/codegen/datamodel/Wallets/types.d.ts +677 -0
- package/codegen/datamodel/Wallets/types.js +251 -0
- package/dfnsApiClient.d.ts +39 -0
- package/dfnsApiClient.js +63 -0
- package/dfnsAuthenticator.d.ts +17 -0
- package/dfnsAuthenticator.js +29 -0
- package/dfnsDelegatedApiClient.d.ts +38 -0
- package/dfnsDelegatedApiClient.js +63 -0
- package/dfnsError.d.ts +5 -0
- package/dfnsError.js +11 -0
- package/generated/policies/client.d.ts +13 -0
- package/generated/policies/client.js +92 -0
- package/generated/policies/delegatedClient.d.ts +18 -0
- package/generated/policies/delegatedClient.js +153 -0
- package/generated/policies/index.d.ts +3 -0
- package/generated/policies/index.js +19 -0
- package/generated/policies/{types.ts → types.d.ts} +17 -29
- package/generated/policies/types.js +2 -0
- package/generated/signers/client.d.ts +7 -0
- package/generated/signers/client.js +22 -0
- package/generated/signers/delegatedClient.d.ts +7 -0
- package/generated/signers/delegatedClient.js +22 -0
- package/generated/signers/index.d.ts +3 -0
- package/generated/signers/index.js +19 -0
- package/generated/signers/{types.ts → types.d.ts} +0 -1
- package/generated/signers/types.js +2 -0
- package/generated/wallets/client.d.ts +25 -0
- package/generated/wallets/client.js +228 -0
- package/generated/wallets/delegatedClient.d.ts +34 -0
- package/generated/wallets/delegatedClient.js +349 -0
- package/generated/wallets/index.d.ts +3 -0
- package/generated/wallets/index.js +19 -0
- package/generated/wallets/{types.ts → types.d.ts} +45 -86
- package/generated/wallets/types.js +2 -0
- package/generated/webhooks/client.d.ts +14 -0
- package/generated/webhooks/client.js +103 -0
- package/generated/webhooks/delegatedClient.d.ts +19 -0
- package/generated/webhooks/delegatedClient.js +164 -0
- package/generated/webhooks/index.d.ts +3 -0
- package/generated/webhooks/index.js +19 -0
- package/generated/webhooks/{types.ts → types.d.ts} +16 -34
- package/generated/webhooks/types.js +2 -0
- package/index.d.ts +7 -0
- package/index.js +23 -0
- package/package.json +8 -1
- package/signer.d.ts +52 -0
- package/signer.js +2 -0
- package/store.d.ts +79 -0
- package/store.js +2 -0
- package/types/policies.d.ts +1 -0
- package/types/policies.js +17 -0
- package/types/signers.d.ts +1 -0
- package/types/signers.js +17 -0
- package/types/wallets.d.ts +1 -0
- package/types/wallets.js +17 -0
- package/types/webhooks.d.ts +1 -0
- package/types/webhooks.js +17 -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 +94 -0
- package/utils/index.d.ts +4 -0
- package/utils/index.js +20 -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 +16 -0
- package/baseAuthApi.ts +0 -236
- package/codegen/Assets/AssetsClient.ts +0 -137
- package/codegen/Assets/DelegatedAssetsClient.ts +0 -201
- package/codegen/Assets/index.ts +0 -3
- package/codegen/Assets/types.ts +0 -45
- package/codegen/Auth/AuthClient.ts +0 -729
- package/codegen/Auth/DelegatedAuthClient.ts +0 -1508
- package/codegen/Auth/index.ts +0 -3
- package/codegen/Auth/types.ts +0 -262
- package/codegen/Blockchains/BlockchainsClient.ts +0 -25
- package/codegen/Blockchains/DelegatedBlockchainsClient.ts +0 -25
- package/codegen/Blockchains/index.ts +0 -3
- package/codegen/Blockchains/types.ts +0 -8
- package/codegen/Callbacks/CallbacksClient.ts +0 -107
- package/codegen/Callbacks/DelegatedCallbacksClient.ts +0 -172
- package/codegen/Callbacks/index.ts +0 -3
- package/codegen/Permissions/DelegatedPermissionsClient.ts +0 -468
- package/codegen/Permissions/PermissionsClient.ts +0 -223
- package/codegen/Permissions/index.ts +0 -3
- package/codegen/Permissions/types.ts +0 -82
- package/codegen/PolicyExecution/DelegatedPolicyExecutionClient.ts +0 -99
- package/codegen/PolicyExecution/PolicyExecutionClient.ts +0 -63
- package/codegen/PolicyExecution/index.ts +0 -3
- package/codegen/PolicyExecution/types.ts +0 -24
- package/codegen/PolicyManagement/DelegatedPolicyManagementClient.ts +0 -384
- package/codegen/PolicyManagement/PolicyManagementClient.ts +0 -205
- package/codegen/PolicyManagement/index.ts +0 -3
- package/codegen/PublicKeys/DelegatedPublicKeysClient.ts +0 -299
- package/codegen/PublicKeys/PublicKeysClient.ts +0 -179
- package/codegen/PublicKeys/index.ts +0 -3
- package/codegen/PublicKeys/types.ts +0 -68
- package/codegen/Signers/DelegatedSignersClient.ts +0 -22
- package/codegen/Signers/SignersClient.ts +0 -22
- package/codegen/Signers/index.ts +0 -3
- package/codegen/Signers/types.ts +0 -3
- package/codegen/Wallets/DelegatedWalletsClient.ts +0 -511
- package/codegen/Wallets/WalletsClient.ts +0 -310
- package/codegen/Wallets/index.ts +0 -3
- package/codegen/Wallets/types.ts +0 -137
- package/codegen/datamodel/ApiKeys/errors.ts +0 -9
- package/codegen/datamodel/ApiKeys/index.ts +0 -3
- package/codegen/datamodel/ApiKeys/responses.ts +0 -68
- package/codegen/datamodel/ApiKeys/types.ts +0 -81
- package/codegen/datamodel/Assets/errors.ts +0 -24
- package/codegen/datamodel/Assets/index.ts +0 -3
- package/codegen/datamodel/Assets/responses.ts +0 -146
- package/codegen/datamodel/Assets/types.ts +0 -417
- package/codegen/datamodel/Auth/index.ts +0 -2
- package/codegen/datamodel/Auth/responses.ts +0 -1110
- package/codegen/datamodel/Auth/types.ts +0 -1404
- package/codegen/datamodel/BlockchainIndexing/index.ts +0 -1
- package/codegen/datamodel/Blockchains/index.ts +0 -2
- package/codegen/datamodel/Blockchains/responses.ts +0 -41
- package/codegen/datamodel/Blockchains/types.ts +0 -695
- package/codegen/datamodel/Callbacks/index.ts +0 -2
- package/codegen/datamodel/Callbacks/responses.ts +0 -110
- package/codegen/datamodel/Callbacks/types.ts +0 -100
- package/codegen/datamodel/Foundations/errors.ts +0 -299
- package/codegen/datamodel/Foundations/index.ts +0 -2
- package/codegen/datamodel/Foundations/types.ts +0 -57921
- package/codegen/datamodel/Orgs/index.ts +0 -2
- package/codegen/datamodel/Orgs/responses.ts +0 -104
- package/codegen/datamodel/Orgs/types.ts +0 -322
- package/codegen/datamodel/Permissions/index.ts +0 -2
- package/codegen/datamodel/Permissions/responses.ts +0 -258
- package/codegen/datamodel/Permissions/types.ts +0 -221
- package/codegen/datamodel/PolicyExecution/errors.ts +0 -24
- package/codegen/datamodel/PolicyExecution/index.ts +0 -3
- package/codegen/datamodel/PolicyExecution/responses.ts +0 -59
- package/codegen/datamodel/PolicyExecution/types.ts +0 -122
- package/codegen/datamodel/PolicyManagement/index.ts +0 -2
- package/codegen/datamodel/PolicyManagement/responses.ts +0 -255
- package/codegen/datamodel/PolicyManagement/types.ts +0 -711
- package/codegen/datamodel/PublicKeys/index.ts +0 -2
- package/codegen/datamodel/PublicKeys/responses.ts +0 -190
- package/codegen/datamodel/PublicKeys/types.ts +0 -558
- package/codegen/datamodel/Signers/index.ts +0 -2
- package/codegen/datamodel/Signers/responses.ts +0 -64
- package/codegen/datamodel/Signers/types.ts +0 -31
- package/codegen/datamodel/Wallets/errors.ts +0 -0
- package/codegen/datamodel/Wallets/index.ts +0 -2
- package/codegen/datamodel/Wallets/responses.ts +0 -318
- package/codegen/datamodel/Wallets/types.ts +0 -1268
- package/dfnsApiClient.ts +0 -76
- package/dfnsAuthenticator.ts +0 -59
- package/dfnsDelegatedApiClient.ts +0 -75
- package/dfnsError.ts +0 -5
- package/generated/permissions/client.ts +0 -125
- package/generated/permissions/delegatedClient.ts +0 -266
- package/generated/permissions/index.ts +0 -3
- package/generated/permissions/types.ts +0 -202
- package/generated/policies/client.ts +0 -110
- package/generated/policies/delegatedClient.ts +0 -223
- package/generated/policies/index.ts +0 -3
- package/generated/signers/client.ts +0 -22
- package/generated/signers/delegatedClient.ts +0 -23
- package/generated/signers/index.ts +0 -3
- package/generated/wallets/client.ts +0 -282
- package/generated/wallets/delegatedClient.ts +0 -507
- package/generated/wallets/index.ts +0 -3
- package/generated/webhooks/client.ts +0 -124
- package/generated/webhooks/delegatedClient.ts +0 -237
- package/generated/webhooks/index.ts +0 -3
- package/index.ts +0 -7
- package/project.json +0 -14
- package/signer.ts +0 -60
- package/store.ts +0 -99
- package/tsconfig.json +0 -7
- package/typedoc.json +0 -21
- package/types/policies.ts +0 -1
- package/types/signers.ts +0 -1
- package/types/wallets.ts +0 -1
- package/types/webhooks.ts +0 -1
- package/utils/base64.ts +0 -19
- package/utils/fetch.ts +0 -130
- package/utils/index.ts +0 -4
- package/utils/nonce.ts +0 -12
- package/utils/url.ts +0 -19
- /package/{README.md → codegen/datamodel/Auth/errors.d.ts} +0 -0
- /package/codegen/datamodel/{Auth/errors.ts → BlockchainIndexing/errors.d.ts} +0 -0
- /package/codegen/datamodel/BlockchainIndexing/{errors.ts → types.d.ts} +0 -0
- /package/codegen/datamodel/{BlockchainIndexing/types.ts → Blockchains/errors.d.ts} +0 -0
- /package/codegen/datamodel/{Blockchains/errors.ts → Callbacks/errors.d.ts} +0 -0
- /package/codegen/datamodel/{Callbacks/errors.ts → Foundations/responses.d.ts} +0 -0
- /package/codegen/datamodel/{Foundations/responses.ts → Orgs/errors.d.ts} +0 -0
- /package/codegen/datamodel/{Orgs/errors.ts → Permissions/errors.d.ts} +0 -0
- /package/codegen/datamodel/{Permissions/errors.ts → PolicyManagement/errors.d.ts} +0 -0
- /package/codegen/datamodel/{PolicyManagement/errors.ts → PublicKeys/errors.d.ts} +0 -0
- /package/codegen/datamodel/{PublicKeys/errors.ts → Signers/errors.d.ts} +0 -0
- /package/codegen/datamodel/{Signers/errors.ts → Wallets/errors.d.ts} +0 -0
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BadRequestError,
|
|
3
|
-
EntityNotFoundError,
|
|
4
|
-
ForbiddenError,
|
|
5
|
-
PaymentRequiredError,
|
|
6
|
-
UnauthorizedError,
|
|
7
|
-
} from '../Foundations'
|
|
8
|
-
import { InsufficientFunds } from './errors'
|
|
9
|
-
import { AssetAccount, AssetAccountBalance, Payment } from './types'
|
|
10
|
-
|
|
11
|
-
// Response for InitiatePayment
|
|
12
|
-
|
|
13
|
-
export type InitiatePaymentSuccess = Payment
|
|
14
|
-
|
|
15
|
-
export type InitiatePaymentError = {
|
|
16
|
-
error:
|
|
17
|
-
| BadRequestError
|
|
18
|
-
| PaymentRequiredError
|
|
19
|
-
| InsufficientFunds
|
|
20
|
-
| UnauthorizedError
|
|
21
|
-
| ForbiddenError
|
|
22
|
-
| BadRequestError
|
|
23
|
-
| EntityNotFoundError
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export type InitiatePaymentResponse =
|
|
27
|
-
| InitiatePaymentSuccess
|
|
28
|
-
| InitiatePaymentError
|
|
29
|
-
|
|
30
|
-
// Response for GetPaymentById
|
|
31
|
-
|
|
32
|
-
export type GetPaymentByIdSuccess = Payment
|
|
33
|
-
|
|
34
|
-
export type GetPaymentByIdError = {
|
|
35
|
-
error:
|
|
36
|
-
| EntityNotFoundError
|
|
37
|
-
| UnauthorizedError
|
|
38
|
-
| ForbiddenError
|
|
39
|
-
| BadRequestError
|
|
40
|
-
| EntityNotFoundError
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export type GetPaymentByIdResponse = GetPaymentByIdSuccess | GetPaymentByIdError
|
|
44
|
-
|
|
45
|
-
// Response for ListPayments
|
|
46
|
-
|
|
47
|
-
export type ListPaymentsSuccess = {
|
|
48
|
-
items: Payment[]
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export type ListPaymentsError = {
|
|
52
|
-
error:
|
|
53
|
-
| EntityNotFoundError
|
|
54
|
-
| UnauthorizedError
|
|
55
|
-
| ForbiddenError
|
|
56
|
-
| BadRequestError
|
|
57
|
-
| EntityNotFoundError
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export type ListPaymentsResponse = ListPaymentsSuccess | ListPaymentsError
|
|
61
|
-
|
|
62
|
-
// Response for CreateAssetAccount
|
|
63
|
-
|
|
64
|
-
export type CreateAssetAccountSuccess = AssetAccount
|
|
65
|
-
|
|
66
|
-
export type CreateAssetAccountError = {
|
|
67
|
-
error:
|
|
68
|
-
| EntityNotFoundError
|
|
69
|
-
| BadRequestError
|
|
70
|
-
| PaymentRequiredError
|
|
71
|
-
| UnauthorizedError
|
|
72
|
-
| ForbiddenError
|
|
73
|
-
| BadRequestError
|
|
74
|
-
| EntityNotFoundError
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
export type CreateAssetAccountResponse =
|
|
78
|
-
| CreateAssetAccountSuccess
|
|
79
|
-
| CreateAssetAccountError
|
|
80
|
-
|
|
81
|
-
// Response for GetAssetAccountById
|
|
82
|
-
|
|
83
|
-
export type GetAssetAccountByIdSuccess = AssetAccount
|
|
84
|
-
|
|
85
|
-
export type GetAssetAccountByIdError = {
|
|
86
|
-
error:
|
|
87
|
-
| UnauthorizedError
|
|
88
|
-
| ForbiddenError
|
|
89
|
-
| BadRequestError
|
|
90
|
-
| EntityNotFoundError
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export type GetAssetAccountByIdResponse =
|
|
94
|
-
| GetAssetAccountByIdSuccess
|
|
95
|
-
| GetAssetAccountByIdError
|
|
96
|
-
|
|
97
|
-
// Response for ListAssetAccounts
|
|
98
|
-
|
|
99
|
-
export type ListAssetAccountsSuccess = {
|
|
100
|
-
items: AssetAccount[]
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
export type ListAssetAccountsError = {
|
|
104
|
-
error:
|
|
105
|
-
| UnauthorizedError
|
|
106
|
-
| ForbiddenError
|
|
107
|
-
| BadRequestError
|
|
108
|
-
| EntityNotFoundError
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export type ListAssetAccountsResponse =
|
|
112
|
-
| ListAssetAccountsSuccess
|
|
113
|
-
| ListAssetAccountsError
|
|
114
|
-
|
|
115
|
-
// Response for ArchiveAssetAccount
|
|
116
|
-
|
|
117
|
-
export type ArchiveAssetAccountSuccess = AssetAccount
|
|
118
|
-
|
|
119
|
-
export type ArchiveAssetAccountError = {
|
|
120
|
-
error:
|
|
121
|
-
| EntityNotFoundError
|
|
122
|
-
| UnauthorizedError
|
|
123
|
-
| ForbiddenError
|
|
124
|
-
| BadRequestError
|
|
125
|
-
| EntityNotFoundError
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export type ArchiveAssetAccountResponse =
|
|
129
|
-
| ArchiveAssetAccountSuccess
|
|
130
|
-
| ArchiveAssetAccountError
|
|
131
|
-
|
|
132
|
-
// Response for GetAssetAccountBalanceById
|
|
133
|
-
|
|
134
|
-
export type GetAssetAccountBalanceByIdSuccess = AssetAccountBalance
|
|
135
|
-
|
|
136
|
-
export type GetAssetAccountBalanceByIdError = {
|
|
137
|
-
error:
|
|
138
|
-
| UnauthorizedError
|
|
139
|
-
| ForbiddenError
|
|
140
|
-
| BadRequestError
|
|
141
|
-
| EntityNotFoundError
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
export type GetAssetAccountBalanceByIdResponse =
|
|
145
|
-
| GetAssetAccountBalanceByIdSuccess
|
|
146
|
-
| GetAssetAccountBalanceByIdError
|
|
@@ -1,417 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Amount,
|
|
3
|
-
AssetSymbol,
|
|
4
|
-
DfnsCertificate,
|
|
5
|
-
EntityId,
|
|
6
|
-
Initiator,
|
|
7
|
-
IntegerPositiveStrict,
|
|
8
|
-
IsoDatetime,
|
|
9
|
-
PublicKey,
|
|
10
|
-
Tag,
|
|
11
|
-
} from '../Foundations'
|
|
12
|
-
|
|
13
|
-
// FIXME: Missing documentation for PaymentInitiation
|
|
14
|
-
export type PaymentInitiation = {
|
|
15
|
-
// FIXME: Missing documentation for id
|
|
16
|
-
id: EntityId
|
|
17
|
-
|
|
18
|
-
// FIXME: Missing documentation for paymentId
|
|
19
|
-
paymentId: EntityId
|
|
20
|
-
|
|
21
|
-
// FIXME: Missing documentation for externalId
|
|
22
|
-
externalId?: EntityId
|
|
23
|
-
|
|
24
|
-
// FIXME: Missing documentation for status
|
|
25
|
-
status: PaymentInitiationStatus
|
|
26
|
-
|
|
27
|
-
// FIXME: Missing documentation for orgId
|
|
28
|
-
orgId?: EntityId
|
|
29
|
-
|
|
30
|
-
// FIXME: Missing documentation for initiator
|
|
31
|
-
initiator: Initiator
|
|
32
|
-
|
|
33
|
-
// FIXME: Missing documentation for assetSymbol
|
|
34
|
-
assetSymbol: AssetSymbol
|
|
35
|
-
|
|
36
|
-
// FIXME: Missing documentation for amount
|
|
37
|
-
amount: Amount
|
|
38
|
-
|
|
39
|
-
// FIXME: Missing documentation for sender
|
|
40
|
-
sender: DfnsAssetAccount
|
|
41
|
-
|
|
42
|
-
// FIXME: Missing documentation for receiver
|
|
43
|
-
receiver: PaymentInstrument
|
|
44
|
-
|
|
45
|
-
// FIXME: Missing documentation for dateInitiated
|
|
46
|
-
dateInitiated: IsoDatetime
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* In case payment initiation is rejected by the system, this field will contain information about it.
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
52
|
-
rejectionReason?: string
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// FIXME: Missing documentation for BlockchainWalletAddress
|
|
56
|
-
export type BlockchainWalletAddress = {
|
|
57
|
-
// FIXME: Missing documentation for kind
|
|
58
|
-
kind: PaymentInstrumentKind.BlockchainWalletAddress
|
|
59
|
-
|
|
60
|
-
// FIXME: Missing documentation for address
|
|
61
|
-
address: string
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// FIXME: Missing documentation for DfnsAssetAccount
|
|
65
|
-
export type DfnsAssetAccount = {
|
|
66
|
-
// FIXME: Missing documentation for kind
|
|
67
|
-
kind: PaymentInstrumentKind.DfnsAssetAccount
|
|
68
|
-
|
|
69
|
-
// FIXME: Missing documentation for id
|
|
70
|
-
id: EntityId
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// FIXME: Missing documentation for AssetAccount
|
|
74
|
-
export type AssetAccount = {
|
|
75
|
-
/**
|
|
76
|
-
* Multiple tags can be attached to an entity to categorise or otherwise mark it. For example tags could indicate risk (High, Medium, Low), departments (Trading, Sales, IT), purpose (Treasury, Hot, Deposits), and jurisdictions (US, EU, DE).
|
|
77
|
-
*
|
|
78
|
-
* Multiple tags can be attached to same entity.
|
|
79
|
-
*/
|
|
80
|
-
tags?: Tag[]
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Field can be used if entity is created in external (customer’s) system first. This way the external id can be attached to identify entity from Dfns’s data store.
|
|
84
|
-
*/
|
|
85
|
-
externalId?: string
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Indicates id of the Organisation, such as usually a customer, or sub-devision, sub-tenant, and others.
|
|
89
|
-
*/
|
|
90
|
-
orgId: EntityId
|
|
91
|
-
|
|
92
|
-
// FIXME: Missing documentation for id
|
|
93
|
-
id: EntityId
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Indicates whether account is ready to be used.
|
|
97
|
-
*/
|
|
98
|
-
status: AssetAccountStatus
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* Blockchain address for a chosen Blockchain network.
|
|
102
|
-
*/
|
|
103
|
-
address?: string
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* `PublicKey` which is used by `AssetAccount`. Usually this is used to derive addresses on a given blockchain network.
|
|
107
|
-
*
|
|
108
|
-
* Alternatively can be used to verify signatures produced by the platform.
|
|
109
|
-
*/
|
|
110
|
-
publicKey?: string
|
|
111
|
-
|
|
112
|
-
// FIXME: Missing documentation for publicKeyId
|
|
113
|
-
publicKeyId?: EntityId
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* # [ENUM]
|
|
117
|
-
*
|
|
118
|
-
* Asset symbol indicating which asset this account is managing. BTC or ETH are obvious examples, but there are thousands of possible symbols. In case of coins (ERC20 and alike) use `COIN.BLOCKCHAIN` syntax, such as USDC.ETH or USDC.SOL to indicate that USDC on Ethereum or USDC on Solana is required. To get a list of all allowed values, send a `CreateAssetAccount` request with the `assetSymbol` field empty.
|
|
119
|
-
*/
|
|
120
|
-
assetSymbol: AssetSymbol
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Custom name that can be added for an account.
|
|
124
|
-
*/
|
|
125
|
-
name: string
|
|
126
|
-
|
|
127
|
-
// FIXME: Missing documentation for dateCreated
|
|
128
|
-
dateCreated: IsoDatetime
|
|
129
|
-
|
|
130
|
-
// FIXME: Missing documentation for dateUpdate
|
|
131
|
-
dateUpdate: IsoDatetime
|
|
132
|
-
|
|
133
|
-
// FIXME: Missing documentation for authorizations
|
|
134
|
-
authorizations?: AssetAccountAuthorization[]
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
// FIXME: Missing documentation for Payment
|
|
138
|
-
export type Payment = {
|
|
139
|
-
/**
|
|
140
|
-
* Multiple tags can be attached to an entity to categorise or otherwise mark it. For example tags could indicate risk (High, Medium, Low), departments (Trading, Sales, IT), purpose (Treasury, Hot, Deposits), and jurisdictions (US, EU, DE).
|
|
141
|
-
*
|
|
142
|
-
* Multiple tags can be attached to same entity.
|
|
143
|
-
*/
|
|
144
|
-
tags?: Tag[]
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* Field can be used if entity is created in external (customer’s) system first. This way the external id can be attached to identify entity from Dfns’s data store.
|
|
148
|
-
*/
|
|
149
|
-
externalId?: string
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Indicates id of the Organisation, such as usually a customer, or sub-devision, sub-tenant, and others.
|
|
153
|
-
*/
|
|
154
|
-
orgId: EntityId
|
|
155
|
-
|
|
156
|
-
// FIXME: Missing documentation for id
|
|
157
|
-
id: EntityId
|
|
158
|
-
|
|
159
|
-
// FIXME: Missing documentation for status
|
|
160
|
-
status: PaymentStatus
|
|
161
|
-
|
|
162
|
-
// FIXME: Missing documentation for initiator
|
|
163
|
-
initiator: Initiator
|
|
164
|
-
|
|
165
|
-
// FIXME: Missing documentation for assetAccountId
|
|
166
|
-
assetAccountId: EntityId
|
|
167
|
-
|
|
168
|
-
// FIXME: Missing documentation for assetSymbol
|
|
169
|
-
assetSymbol: AssetSymbol
|
|
170
|
-
|
|
171
|
-
// FIXME: Missing documentation for amount
|
|
172
|
-
amount: Amount
|
|
173
|
-
|
|
174
|
-
// FIXME: Missing documentation for sender
|
|
175
|
-
sender: PaymentInstrument
|
|
176
|
-
|
|
177
|
-
// FIXME: Missing documentation for receiver
|
|
178
|
-
receiver: PaymentInstrument
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* SWIFT (MT, ISO15022) field. Represents additional information about payment.
|
|
182
|
-
*
|
|
183
|
-
*/
|
|
184
|
-
narrative?: string
|
|
185
|
-
|
|
186
|
-
// FIXME: Missing documentation for note
|
|
187
|
-
note?: string
|
|
188
|
-
|
|
189
|
-
// FIXME: Missing documentation for receiverAddress
|
|
190
|
-
receiverAddress: string
|
|
191
|
-
|
|
192
|
-
// FIXME: Missing documentation for policyCertificate
|
|
193
|
-
policyCertificate?: DfnsCertificate
|
|
194
|
-
|
|
195
|
-
// FIXME: Missing documentation for dateCreated
|
|
196
|
-
dateCreated: IsoDatetime
|
|
197
|
-
|
|
198
|
-
// FIXME: Missing documentation for dateUpdated
|
|
199
|
-
dateUpdated: IsoDatetime
|
|
200
|
-
|
|
201
|
-
// FIXME: Missing documentation for dateExecuted
|
|
202
|
-
dateExecuted?: IsoDatetime
|
|
203
|
-
|
|
204
|
-
// FIXME: Missing documentation for dateBroadcasted
|
|
205
|
-
dateBroadcasted?: IsoDatetime
|
|
206
|
-
|
|
207
|
-
// FIXME: Missing documentation for dateFirstConfirmed
|
|
208
|
-
dateFirstConfirmed?: IsoDatetime
|
|
209
|
-
|
|
210
|
-
// FIXME: Missing documentation for dateConfirmed
|
|
211
|
-
dateConfirmed?: IsoDatetime
|
|
212
|
-
|
|
213
|
-
// FIXME: Missing documentation for dateSettled
|
|
214
|
-
dateSettled?: IsoDatetime
|
|
215
|
-
|
|
216
|
-
// FIXME: Missing documentation for txHash
|
|
217
|
-
txHash?: string
|
|
218
|
-
|
|
219
|
-
// FIXME: Missing documentation for blockHeight
|
|
220
|
-
blockHeight?: number
|
|
221
|
-
|
|
222
|
-
// FIXME: Missing documentation for direction
|
|
223
|
-
direction: PaymentDirection
|
|
224
|
-
|
|
225
|
-
// FIXME: Missing documentation for fee
|
|
226
|
-
fee?: Amount
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
// FIXME: Missing documentation for AssetAccountAuthorization
|
|
230
|
-
export type AssetAccountAuthorization = {
|
|
231
|
-
// FIXME: Missing documentation for kind
|
|
232
|
-
kind: AssetAccountAuthorizationKind
|
|
233
|
-
|
|
234
|
-
// FIXME: Missing documentation for entityId
|
|
235
|
-
entityId: EntityId
|
|
236
|
-
|
|
237
|
-
// FIXME: Missing documentation for permission
|
|
238
|
-
permission: AssetAccountPermissions
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* Balance of one asset account.
|
|
243
|
-
*/
|
|
244
|
-
export type AssetAccountBalance = {
|
|
245
|
-
/**
|
|
246
|
-
* Id of the AssetAccount.
|
|
247
|
-
*/
|
|
248
|
-
id: EntityId
|
|
249
|
-
|
|
250
|
-
/**
|
|
251
|
-
* Asset Symbol of the account.
|
|
252
|
-
*/
|
|
253
|
-
assetSymbol: AssetSymbol
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* Balance of the account.
|
|
257
|
-
*/
|
|
258
|
-
balance: Amount
|
|
259
|
-
|
|
260
|
-
// FIXME: Missing documentation for maxUnitBalance
|
|
261
|
-
maxUnitBalance: Amount
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
// FIXME: Missing documentation for UpdateAssetAccountPayload
|
|
265
|
-
export type UpdateAssetAccountPayload = {
|
|
266
|
-
/**
|
|
267
|
-
* Indicates whether account is ready to be used.
|
|
268
|
-
*/
|
|
269
|
-
status: AssetAccountStatus
|
|
270
|
-
|
|
271
|
-
/**
|
|
272
|
-
* Blockchain address for a chosen Blockchain network.
|
|
273
|
-
*/
|
|
274
|
-
address?: string
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* `PublicKey` which is used by `AssetAccount`. Usually this is used to derive addresses on a given blockchain network.
|
|
278
|
-
*
|
|
279
|
-
* Alternatively can be used to verify signatures produced by the platform.
|
|
280
|
-
*/
|
|
281
|
-
publicKey?: string
|
|
282
|
-
|
|
283
|
-
/**
|
|
284
|
-
* Custom name that can be added for an account.
|
|
285
|
-
*/
|
|
286
|
-
name?: string
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
// FIXME: Missing documentation for CreateAssetAccountInput
|
|
290
|
-
export type CreateAssetAccountInput = {
|
|
291
|
-
/**
|
|
292
|
-
* # [ENUM]
|
|
293
|
-
*
|
|
294
|
-
* Asset symbol indicating which asset this account is managing. BTC or ETH are obvious examples, but there are thousands of possible symbols. In case of coins (ERC20 and alike) use `COIN.BLOCKCHAIN` syntax, such as USDC.ETH or USDC.SOL to indicate that USDC on Ethereum or USDC on Solana is required. To get a list of all allowed values, send a `CreateAssetAccount` request with the `assetSymbol` field empty.
|
|
295
|
-
*/
|
|
296
|
-
assetSymbol: AssetSymbol
|
|
297
|
-
|
|
298
|
-
// FIXME: Missing documentation for groupSize
|
|
299
|
-
groupSize?: IntegerPositiveStrict
|
|
300
|
-
|
|
301
|
-
// FIXME: Missing documentation for groupThreshold
|
|
302
|
-
groupThreshold?: IntegerPositiveStrict
|
|
303
|
-
|
|
304
|
-
/**
|
|
305
|
-
* `PublicKey` which is used by `AssetAccount`. Usually this is used to derive addresses on a given blockchain network.
|
|
306
|
-
*
|
|
307
|
-
* Alternatively can be used to verify signatures produced by the platform.
|
|
308
|
-
*/
|
|
309
|
-
publicKey?: PublicKey
|
|
310
|
-
|
|
311
|
-
// FIXME: Missing documentation for externalId
|
|
312
|
-
externalId?: string
|
|
313
|
-
|
|
314
|
-
// FIXME: Missing documentation for tags
|
|
315
|
-
tags?: Tag[]
|
|
316
|
-
|
|
317
|
-
/**
|
|
318
|
-
* Custom name that can be added for an account.
|
|
319
|
-
*/
|
|
320
|
-
name?: string
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
// FIXME: Missing documentation for CreatePaymentInput
|
|
324
|
-
export type CreatePaymentInput = {
|
|
325
|
-
// FIXME: Missing documentation for externalId
|
|
326
|
-
externalId?: string
|
|
327
|
-
|
|
328
|
-
// FIXME: Missing documentation for assetSymbol
|
|
329
|
-
assetSymbol: AssetSymbol
|
|
330
|
-
|
|
331
|
-
// FIXME: Missing documentation for amount
|
|
332
|
-
amount: Amount
|
|
333
|
-
|
|
334
|
-
// FIXME: Missing documentation for receiver
|
|
335
|
-
receiver: PaymentInstrument
|
|
336
|
-
|
|
337
|
-
// FIXME: Missing documentation for note
|
|
338
|
-
note?: string
|
|
339
|
-
|
|
340
|
-
// FIXME: Missing documentation for narrative
|
|
341
|
-
narrative?: string
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
// FIXME: Missing documentation for PaymentInstrument
|
|
345
|
-
export type PaymentInstrument = BlockchainWalletAddress | DfnsAssetAccount
|
|
346
|
-
|
|
347
|
-
// FIXME: Missing documentation for PaymentInstrumentKind
|
|
348
|
-
export enum PaymentInstrumentKind {
|
|
349
|
-
// FIXME: Missing documentation for DfnsAssetAccount
|
|
350
|
-
DfnsAssetAccount = 'DfnsAssetAccount',
|
|
351
|
-
// FIXME: Missing documentation for BlockchainWalletAddress
|
|
352
|
-
BlockchainWalletAddress = 'BlockchainWalletAddress',
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
// FIXME: Missing documentation for PaymentInitiationStatus
|
|
356
|
-
export enum PaymentInitiationStatus {
|
|
357
|
-
// FIXME: Missing documentation for Initiated
|
|
358
|
-
Initiated = 'Initiated',
|
|
359
|
-
// FIXME: Missing documentation for Canceled
|
|
360
|
-
Canceled = 'Canceled',
|
|
361
|
-
// FIXME: Missing documentation for Rejected
|
|
362
|
-
Rejected = 'Rejected',
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
// FIXME: Missing documentation for AssetAccountStatus
|
|
366
|
-
export enum AssetAccountStatus {
|
|
367
|
-
//Initial state of `AssetAccount` entity, indicating that it’s being created at the moment.
|
|
368
|
-
Creating = 'Creating',
|
|
369
|
-
// FIXME: Missing documentation for Enabled
|
|
370
|
-
Enabled = 'Enabled',
|
|
371
|
-
// FIXME: Missing documentation for Failed
|
|
372
|
-
Failed = 'Failed',
|
|
373
|
-
}
|
|
374
|
-
|
|
375
|
-
// FIXME: Missing documentation for PaymentStatus
|
|
376
|
-
export enum PaymentStatus {
|
|
377
|
-
//Payment order is received and initiated. It will execute later.
|
|
378
|
-
Initiated = 'Initiated',
|
|
379
|
-
//Some Policy blocked the payment, it is not approved.
|
|
380
|
-
Rejected = 'Rejected',
|
|
381
|
-
//Payment passed Policies, it is approved.
|
|
382
|
-
Approved = 'Approved',
|
|
383
|
-
//Payment is successfully Executed and Broadcasted on the blockchain.
|
|
384
|
-
Executed = 'Executed',
|
|
385
|
-
//Payment tried to execute, but failed doing so.
|
|
386
|
-
Failed = 'Failed',
|
|
387
|
-
//Payment transaction is confirmed on the blockchain.
|
|
388
|
-
Confirmed = 'Confirmed',
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
// FIXME: Missing documentation for AssetAccountAuthorizationKind
|
|
392
|
-
export enum AssetAccountAuthorizationKind {
|
|
393
|
-
// FIXME: Missing documentation for Employee
|
|
394
|
-
Employee = 'Employee',
|
|
395
|
-
// FIXME: Missing documentation for Group
|
|
396
|
-
Group = 'Group',
|
|
397
|
-
// FIXME: Missing documentation for ApiKey
|
|
398
|
-
ApiKey = 'ApiKey',
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
// FIXME: Missing documentation for AssetAccountPermissions
|
|
402
|
-
export enum AssetAccountPermissions {
|
|
403
|
-
// FIXME: Missing documentation for InitiatePayments
|
|
404
|
-
InitiatePayments = 'InitiatePayments',
|
|
405
|
-
// FIXME: Missing documentation for ReadBalance
|
|
406
|
-
ReadBalance = 'ReadBalance',
|
|
407
|
-
// FIXME: Missing documentation for ReadPublicKey
|
|
408
|
-
ReadPublicKey = 'ReadPublicKey',
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
// FIXME: Missing documentation for PaymentDirection
|
|
412
|
-
export enum PaymentDirection {
|
|
413
|
-
// FIXME: Missing documentation for Incoming
|
|
414
|
-
Incoming = 'Incoming',
|
|
415
|
-
// FIXME: Missing documentation for Outgoing
|
|
416
|
-
Outgoing = 'Outgoing',
|
|
417
|
-
}
|