@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,310 +0,0 @@
|
|
|
1
|
-
import { DfnsApiClientOptions } from '../../dfnsApiClient'
|
|
2
|
-
import { simpleFetch, userActionFetch } from '../../utils/fetch'
|
|
3
|
-
import { buildPathAndQuery } from '../../utils/url'
|
|
4
|
-
import * as T from './types'
|
|
5
|
-
|
|
6
|
-
export class WalletsClient {
|
|
7
|
-
constructor(private apiOptions: DfnsApiClientOptions) {}
|
|
8
|
-
|
|
9
|
-
async createWallet(
|
|
10
|
-
request: T.CreateWalletRequest
|
|
11
|
-
): Promise<T.CreateWalletResponse> {
|
|
12
|
-
const path = buildPathAndQuery('/wallets', {
|
|
13
|
-
path: {},
|
|
14
|
-
query: {},
|
|
15
|
-
})
|
|
16
|
-
|
|
17
|
-
const response = await userActionFetch(path, {
|
|
18
|
-
method: 'POST',
|
|
19
|
-
body: request.body,
|
|
20
|
-
apiOptions: this.apiOptions,
|
|
21
|
-
})
|
|
22
|
-
|
|
23
|
-
return response.json()
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
async getWallet(request: T.GetWalletRequest): Promise<T.GetWalletResponse> {
|
|
27
|
-
const path = buildPathAndQuery('/wallets/:walletId', {
|
|
28
|
-
path: { walletId: request.walletId },
|
|
29
|
-
query: {},
|
|
30
|
-
})
|
|
31
|
-
|
|
32
|
-
const response = await simpleFetch(path, {
|
|
33
|
-
method: 'GET',
|
|
34
|
-
apiOptions: this.apiOptions,
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
return response.json()
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
async getWalletAssets(
|
|
41
|
-
request: T.GetWalletAssetsRequest
|
|
42
|
-
): Promise<T.GetWalletAssetsResponse> {
|
|
43
|
-
const path = buildPathAndQuery('/wallets/:walletId/assets', {
|
|
44
|
-
path: { walletId: request.walletId },
|
|
45
|
-
query: {},
|
|
46
|
-
})
|
|
47
|
-
|
|
48
|
-
const response = await simpleFetch(path, {
|
|
49
|
-
method: 'GET',
|
|
50
|
-
apiOptions: this.apiOptions,
|
|
51
|
-
})
|
|
52
|
-
|
|
53
|
-
return response.json()
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
async getWalletNfts(
|
|
57
|
-
request: T.GetWalletNftsRequest
|
|
58
|
-
): Promise<T.GetWalletNftsResponse> {
|
|
59
|
-
const path = buildPathAndQuery('/wallets/:walletId/nfts', {
|
|
60
|
-
path: { walletId: request.walletId },
|
|
61
|
-
query: {},
|
|
62
|
-
})
|
|
63
|
-
|
|
64
|
-
const response = await simpleFetch(path, {
|
|
65
|
-
method: 'GET',
|
|
66
|
-
apiOptions: this.apiOptions,
|
|
67
|
-
})
|
|
68
|
-
|
|
69
|
-
return response.json()
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
async listWallets(
|
|
73
|
-
request: T.ListWalletsRequest
|
|
74
|
-
): Promise<T.ListWalletsResponse> {
|
|
75
|
-
const path = buildPathAndQuery('/wallets', {
|
|
76
|
-
path: {},
|
|
77
|
-
query: request.query ?? {},
|
|
78
|
-
})
|
|
79
|
-
|
|
80
|
-
const response = await simpleFetch(path, {
|
|
81
|
-
method: 'GET',
|
|
82
|
-
apiOptions: this.apiOptions,
|
|
83
|
-
})
|
|
84
|
-
|
|
85
|
-
return response.json()
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
async getWalletHistory(
|
|
89
|
-
request: T.GetWalletHistoryRequest
|
|
90
|
-
): Promise<T.GetWalletHistoryResponse> {
|
|
91
|
-
const path = buildPathAndQuery('/wallets/:walletId/history', {
|
|
92
|
-
path: { walletId: request.walletId },
|
|
93
|
-
query: request.query ?? {},
|
|
94
|
-
})
|
|
95
|
-
|
|
96
|
-
const response = await simpleFetch(path, {
|
|
97
|
-
method: 'GET',
|
|
98
|
-
apiOptions: this.apiOptions,
|
|
99
|
-
})
|
|
100
|
-
|
|
101
|
-
return response.json()
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
async transferAsset(
|
|
105
|
-
request: T.TransferAssetRequest
|
|
106
|
-
): Promise<T.TransferAssetResponse> {
|
|
107
|
-
const path = buildPathAndQuery('/wallets/:walletId/transfers', {
|
|
108
|
-
path: { walletId: request.walletId },
|
|
109
|
-
query: {},
|
|
110
|
-
})
|
|
111
|
-
|
|
112
|
-
const response = await userActionFetch(path, {
|
|
113
|
-
method: 'POST',
|
|
114
|
-
body: request.body,
|
|
115
|
-
apiOptions: this.apiOptions,
|
|
116
|
-
})
|
|
117
|
-
|
|
118
|
-
return response.json()
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
async getTransfer(
|
|
122
|
-
request: T.GetTransferRequest
|
|
123
|
-
): Promise<T.GetTransferResponse> {
|
|
124
|
-
const path = buildPathAndQuery('/wallets/:walletId/transfers/:transferId', {
|
|
125
|
-
path: { walletId: request.walletId, transferId: request.transferId },
|
|
126
|
-
query: {},
|
|
127
|
-
})
|
|
128
|
-
|
|
129
|
-
const response = await simpleFetch(path, {
|
|
130
|
-
method: 'GET',
|
|
131
|
-
apiOptions: this.apiOptions,
|
|
132
|
-
})
|
|
133
|
-
|
|
134
|
-
return response.json()
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
async listTransfers(
|
|
138
|
-
request: T.ListTransfersRequest
|
|
139
|
-
): Promise<T.ListTransfersResponse> {
|
|
140
|
-
const path = buildPathAndQuery('/wallets/:walletId/transfers', {
|
|
141
|
-
path: { walletId: request.walletId },
|
|
142
|
-
query: request.query ?? {},
|
|
143
|
-
})
|
|
144
|
-
|
|
145
|
-
const response = await simpleFetch(path, {
|
|
146
|
-
method: 'GET',
|
|
147
|
-
apiOptions: this.apiOptions,
|
|
148
|
-
})
|
|
149
|
-
|
|
150
|
-
return response.json()
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
async broadcastTransaction(
|
|
154
|
-
request: T.BroadcastTransactionRequest
|
|
155
|
-
): Promise<T.BroadcastTransactionResponse> {
|
|
156
|
-
const path = buildPathAndQuery('/wallets/:walletId/transactions', {
|
|
157
|
-
path: { walletId: request.walletId },
|
|
158
|
-
query: {},
|
|
159
|
-
})
|
|
160
|
-
|
|
161
|
-
const response = await userActionFetch(path, {
|
|
162
|
-
method: 'POST',
|
|
163
|
-
body: request.body,
|
|
164
|
-
apiOptions: this.apiOptions,
|
|
165
|
-
})
|
|
166
|
-
|
|
167
|
-
return response.json()
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
async getTransaction(
|
|
171
|
-
request: T.GetTransactionRequest
|
|
172
|
-
): Promise<T.GetTransactionResponse> {
|
|
173
|
-
const path = buildPathAndQuery(
|
|
174
|
-
'/wallets/:walletId/transactions/:transactionId',
|
|
175
|
-
{
|
|
176
|
-
path: {
|
|
177
|
-
walletId: request.walletId,
|
|
178
|
-
transactionId: request.transactionId,
|
|
179
|
-
},
|
|
180
|
-
query: {},
|
|
181
|
-
}
|
|
182
|
-
)
|
|
183
|
-
|
|
184
|
-
const response = await simpleFetch(path, {
|
|
185
|
-
method: 'GET',
|
|
186
|
-
apiOptions: this.apiOptions,
|
|
187
|
-
})
|
|
188
|
-
|
|
189
|
-
return response.json()
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
async listTransactions(
|
|
193
|
-
request: T.ListTransactionsRequest
|
|
194
|
-
): Promise<T.ListTransactionsResponse> {
|
|
195
|
-
const path = buildPathAndQuery('/wallets/:walletId/transactions', {
|
|
196
|
-
path: { walletId: request.walletId },
|
|
197
|
-
query: request.query ?? {},
|
|
198
|
-
})
|
|
199
|
-
|
|
200
|
-
const response = await simpleFetch(path, {
|
|
201
|
-
method: 'GET',
|
|
202
|
-
apiOptions: this.apiOptions,
|
|
203
|
-
})
|
|
204
|
-
|
|
205
|
-
return response.json()
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
async generateSignature(
|
|
209
|
-
request: T.GenerateSignatureRequest
|
|
210
|
-
): Promise<T.GenerateSignatureResponse> {
|
|
211
|
-
const path = buildPathAndQuery('/wallets/:walletId/signatures', {
|
|
212
|
-
path: { walletId: request.walletId },
|
|
213
|
-
query: {},
|
|
214
|
-
})
|
|
215
|
-
|
|
216
|
-
const response = await userActionFetch(path, {
|
|
217
|
-
method: 'POST',
|
|
218
|
-
body: request.body,
|
|
219
|
-
apiOptions: this.apiOptions,
|
|
220
|
-
})
|
|
221
|
-
|
|
222
|
-
return response.json()
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
async getSignature(
|
|
226
|
-
request: T.GetSignatureRequest
|
|
227
|
-
): Promise<T.GetSignatureResponse> {
|
|
228
|
-
const path = buildPathAndQuery(
|
|
229
|
-
'/wallets/:walletId/signatures/:signatureId',
|
|
230
|
-
{
|
|
231
|
-
path: { walletId: request.walletId, signatureId: request.signatureId },
|
|
232
|
-
query: {},
|
|
233
|
-
}
|
|
234
|
-
)
|
|
235
|
-
|
|
236
|
-
const response = await simpleFetch(path, {
|
|
237
|
-
method: 'GET',
|
|
238
|
-
apiOptions: this.apiOptions,
|
|
239
|
-
})
|
|
240
|
-
|
|
241
|
-
return response.json()
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
async listSignatures(
|
|
245
|
-
request: T.ListSignaturesRequest
|
|
246
|
-
): Promise<T.ListSignaturesResponse> {
|
|
247
|
-
const path = buildPathAndQuery('/wallets/:walletId/signatures', {
|
|
248
|
-
path: { walletId: request.walletId },
|
|
249
|
-
query: request.query ?? {},
|
|
250
|
-
})
|
|
251
|
-
|
|
252
|
-
const response = await simpleFetch(path, {
|
|
253
|
-
method: 'GET',
|
|
254
|
-
apiOptions: this.apiOptions,
|
|
255
|
-
})
|
|
256
|
-
|
|
257
|
-
return response.json()
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
async importWallet(
|
|
261
|
-
request: T.ImportWalletRequest
|
|
262
|
-
): Promise<T.ImportWalletResponse> {
|
|
263
|
-
const path = buildPathAndQuery('/wallets/import', {
|
|
264
|
-
path: {},
|
|
265
|
-
query: {},
|
|
266
|
-
})
|
|
267
|
-
|
|
268
|
-
const response = await userActionFetch(path, {
|
|
269
|
-
method: 'POST',
|
|
270
|
-
body: request.body,
|
|
271
|
-
apiOptions: this.apiOptions,
|
|
272
|
-
})
|
|
273
|
-
|
|
274
|
-
return response.json()
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
async exportWallet(
|
|
278
|
-
request: T.ExportWalletRequest
|
|
279
|
-
): Promise<T.ExportWalletResponse> {
|
|
280
|
-
const path = buildPathAndQuery('/wallets/:walletId/export', {
|
|
281
|
-
path: { walletId: request.walletId },
|
|
282
|
-
query: {},
|
|
283
|
-
})
|
|
284
|
-
|
|
285
|
-
const response = await userActionFetch(path, {
|
|
286
|
-
method: 'POST',
|
|
287
|
-
body: request.body,
|
|
288
|
-
apiOptions: this.apiOptions,
|
|
289
|
-
})
|
|
290
|
-
|
|
291
|
-
return response.json()
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
async delegateWallet(
|
|
295
|
-
request: T.DelegateWalletRequest
|
|
296
|
-
): Promise<T.DelegateWalletResponse> {
|
|
297
|
-
const path = buildPathAndQuery('/wallets/:walletId/delegate', {
|
|
298
|
-
path: { walletId: request.walletId },
|
|
299
|
-
query: {},
|
|
300
|
-
})
|
|
301
|
-
|
|
302
|
-
const response = await userActionFetch(path, {
|
|
303
|
-
method: 'POST',
|
|
304
|
-
body: request.body,
|
|
305
|
-
apiOptions: this.apiOptions,
|
|
306
|
-
})
|
|
307
|
-
|
|
308
|
-
return response.json()
|
|
309
|
-
}
|
|
310
|
-
}
|
package/codegen/Wallets/index.ts
DELETED
package/codegen/Wallets/types.ts
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import * as Foundations from '../datamodel/Foundations'
|
|
2
|
-
import * as Wallets from '../datamodel/Wallets'
|
|
3
|
-
|
|
4
|
-
export type CreateWalletRequest = {
|
|
5
|
-
body: Wallets.CreateWalletBody
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export type CreateWalletResponse = Wallets.Wallet
|
|
9
|
-
|
|
10
|
-
export type GetWalletRequest = {
|
|
11
|
-
walletId: Foundations.EntityId
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export type GetWalletResponse = Wallets.Wallet
|
|
15
|
-
|
|
16
|
-
export type GetWalletAssetsRequest = {
|
|
17
|
-
walletId: Foundations.EntityId
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export type GetWalletAssetsResponse = Wallets.WalletAssets
|
|
21
|
-
|
|
22
|
-
export type GetWalletNftsRequest = {
|
|
23
|
-
walletId: Foundations.EntityId
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export type GetWalletNftsResponse = Wallets.WalletNfts
|
|
27
|
-
|
|
28
|
-
export type ListWalletsRequest = {
|
|
29
|
-
query?: {
|
|
30
|
-
limit?: Foundations.IntegerPositiveStrict
|
|
31
|
-
paginationToken?: string
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export type ListWalletsResponse = Wallets.PaginatedWalletList
|
|
36
|
-
|
|
37
|
-
export type GetWalletHistoryRequest = {
|
|
38
|
-
walletId: Foundations.EntityId
|
|
39
|
-
query?: {
|
|
40
|
-
limit?: Foundations.IntegerPositiveStrict
|
|
41
|
-
paginationToken?: Foundations.IsoDatetime
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export type GetWalletHistoryResponse = Wallets.PaginatedEventHistory
|
|
46
|
-
|
|
47
|
-
export type TransferAssetRequest = {
|
|
48
|
-
walletId: Foundations.EntityId
|
|
49
|
-
body: Wallets.TransferAssetBody
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export type TransferAssetResponse = Wallets.TransferRequest
|
|
53
|
-
|
|
54
|
-
export type GetTransferRequest = {
|
|
55
|
-
walletId: Foundations.EntityId
|
|
56
|
-
transferId: Foundations.EntityId
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export type GetTransferResponse = Wallets.TransferRequest
|
|
60
|
-
|
|
61
|
-
export type ListTransfersRequest = {
|
|
62
|
-
walletId: Foundations.EntityId
|
|
63
|
-
query?: {
|
|
64
|
-
limit?: Foundations.IntegerPositiveStrict
|
|
65
|
-
paginationToken?: string
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export type ListTransfersResponse = Wallets.PaginatedTransferList
|
|
70
|
-
|
|
71
|
-
export type BroadcastTransactionRequest = {
|
|
72
|
-
walletId: Foundations.EntityId
|
|
73
|
-
body: Wallets.BroadcastTransactionBody
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export type BroadcastTransactionResponse = Wallets.TransactionRequest
|
|
77
|
-
|
|
78
|
-
export type GetTransactionRequest = {
|
|
79
|
-
walletId: Foundations.EntityId
|
|
80
|
-
transactionId: Foundations.EntityId
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export type GetTransactionResponse = Wallets.TransactionRequest
|
|
84
|
-
|
|
85
|
-
export type ListTransactionsRequest = {
|
|
86
|
-
walletId: Foundations.EntityId
|
|
87
|
-
query?: {
|
|
88
|
-
limit?: Foundations.IntegerPositiveStrict
|
|
89
|
-
paginationToken?: string
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
export type ListTransactionsResponse = Wallets.PaginatedTransactionList
|
|
94
|
-
|
|
95
|
-
export type GenerateSignatureRequest = {
|
|
96
|
-
walletId: Foundations.EntityId
|
|
97
|
-
body: Wallets.GenerateSignatureBody
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export type GenerateSignatureResponse = Wallets.SignatureRequest
|
|
101
|
-
|
|
102
|
-
export type GetSignatureRequest = {
|
|
103
|
-
walletId: Foundations.EntityId
|
|
104
|
-
signatureId: Foundations.EntityId
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export type GetSignatureResponse = Wallets.SignatureRequest
|
|
108
|
-
|
|
109
|
-
export type ListSignaturesRequest = {
|
|
110
|
-
walletId: Foundations.EntityId
|
|
111
|
-
query?: {
|
|
112
|
-
limit?: Foundations.IntegerPositiveStrict
|
|
113
|
-
paginationToken?: string
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export type ListSignaturesResponse = Wallets.PaginatedSignatureList
|
|
118
|
-
|
|
119
|
-
export type ImportWalletRequest = {
|
|
120
|
-
body: Wallets.ImportWalletBody
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
export type ImportWalletResponse = Wallets.Wallet
|
|
124
|
-
|
|
125
|
-
export type ExportWalletRequest = {
|
|
126
|
-
walletId: Foundations.EntityId
|
|
127
|
-
body: Wallets.ExportWalletBody
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
export type ExportWalletResponse = Wallets.ExportedSigningKey
|
|
131
|
-
|
|
132
|
-
export type DelegateWalletRequest = {
|
|
133
|
-
walletId: Foundations.EntityId
|
|
134
|
-
body: Wallets.DelegateWalletBody
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export type DelegateWalletResponse = Wallets.DelegateWalletResult
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { DfnsError } from '../Foundations'
|
|
2
|
-
export class ApiKeyActionNotAllowed extends DfnsError {
|
|
3
|
-
name: string = 'ApiKeyActionNotAllowed'
|
|
4
|
-
// FIXME: Missing documentation for httpStatus
|
|
5
|
-
httpStatus: number = 403
|
|
6
|
-
|
|
7
|
-
// FIXME: Missing documentation for errorName
|
|
8
|
-
errorName: string = 'Forbidden'
|
|
9
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
BadRequestError,
|
|
3
|
-
EntityNotFoundError,
|
|
4
|
-
ForbiddenError,
|
|
5
|
-
UnauthorizedError,
|
|
6
|
-
} from '../Foundations'
|
|
7
|
-
import { ApiKeyActionNotAllowed } from './errors'
|
|
8
|
-
import { ApiKeyRecord, ApiKeyRecordWithToken } from './types'
|
|
9
|
-
|
|
10
|
-
// Response for CreateApiKey
|
|
11
|
-
|
|
12
|
-
export type CreateApiKeySuccess = ApiKeyRecordWithToken
|
|
13
|
-
|
|
14
|
-
export type CreateApiKeyError = {
|
|
15
|
-
error:
|
|
16
|
-
| ApiKeyActionNotAllowed
|
|
17
|
-
| UnauthorizedError
|
|
18
|
-
| ForbiddenError
|
|
19
|
-
| BadRequestError
|
|
20
|
-
| EntityNotFoundError
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export type CreateApiKeyResponse = CreateApiKeySuccess | CreateApiKeyError
|
|
24
|
-
|
|
25
|
-
// Response for ListApiKeys
|
|
26
|
-
|
|
27
|
-
export type ListApiKeysSuccess = {
|
|
28
|
-
items: ApiKeyRecord[]
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export type ListApiKeysError = {
|
|
32
|
-
error:
|
|
33
|
-
| UnauthorizedError
|
|
34
|
-
| ForbiddenError
|
|
35
|
-
| BadRequestError
|
|
36
|
-
| EntityNotFoundError
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export type ListApiKeysResponse = ListApiKeysSuccess | ListApiKeysError
|
|
40
|
-
|
|
41
|
-
// Response for RevokeApiKey
|
|
42
|
-
|
|
43
|
-
export type RevokeApiKeySuccess = ApiKeyRecord
|
|
44
|
-
|
|
45
|
-
export type RevokeApiKeyError = {
|
|
46
|
-
error:
|
|
47
|
-
| ApiKeyActionNotAllowed
|
|
48
|
-
| UnauthorizedError
|
|
49
|
-
| ForbiddenError
|
|
50
|
-
| BadRequestError
|
|
51
|
-
| EntityNotFoundError
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export type RevokeApiKeyResponse = RevokeApiKeySuccess | RevokeApiKeyError
|
|
55
|
-
|
|
56
|
-
// Response for GetApiKeyById
|
|
57
|
-
|
|
58
|
-
export type GetApiKeyByIdSuccess = ApiKeyRecord
|
|
59
|
-
|
|
60
|
-
export type GetApiKeyByIdError = {
|
|
61
|
-
error:
|
|
62
|
-
| UnauthorizedError
|
|
63
|
-
| ForbiddenError
|
|
64
|
-
| BadRequestError
|
|
65
|
-
| EntityNotFoundError
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
export type GetApiKeyByIdResponse = GetApiKeyByIdSuccess | GetApiKeyByIdError
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { EntityId, IsoDatetime } from '../Foundations'
|
|
2
|
-
|
|
3
|
-
// FIXME: Missing documentation for ApiKeyRecord
|
|
4
|
-
export type ApiKeyRecord = {
|
|
5
|
-
// FIXME: Missing documentation for id
|
|
6
|
-
id: EntityId
|
|
7
|
-
|
|
8
|
-
// FIXME: Missing documentation for status
|
|
9
|
-
status: ApiKeyStatus
|
|
10
|
-
|
|
11
|
-
// FIXME: Missing documentation for externalId
|
|
12
|
-
externalId?: string
|
|
13
|
-
|
|
14
|
-
// FIXME: Missing documentation for orgId
|
|
15
|
-
orgId: EntityId
|
|
16
|
-
|
|
17
|
-
// FIXME: Missing documentation for dateCreated
|
|
18
|
-
dateCreated: IsoDatetime
|
|
19
|
-
|
|
20
|
-
// FIXME: Missing documentation for name
|
|
21
|
-
name?: string
|
|
22
|
-
|
|
23
|
-
// FIXME: Missing documentation for authorId
|
|
24
|
-
authorId: EntityId
|
|
25
|
-
|
|
26
|
-
// FIXME: Missing documentation for scopes
|
|
27
|
-
scopes: string[]
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// FIXME: Missing documentation for ApiKeyRecordWithToken
|
|
31
|
-
export type ApiKeyRecordWithToken = {
|
|
32
|
-
// FIXME: Missing documentation for id
|
|
33
|
-
id: EntityId
|
|
34
|
-
|
|
35
|
-
// FIXME: Missing documentation for status
|
|
36
|
-
status: ApiKeyStatus
|
|
37
|
-
|
|
38
|
-
// FIXME: Missing documentation for externalId
|
|
39
|
-
externalId?: string
|
|
40
|
-
|
|
41
|
-
// FIXME: Missing documentation for orgId
|
|
42
|
-
orgId: EntityId
|
|
43
|
-
|
|
44
|
-
// FIXME: Missing documentation for dateCreated
|
|
45
|
-
dateCreated: IsoDatetime
|
|
46
|
-
|
|
47
|
-
// FIXME: Missing documentation for name
|
|
48
|
-
name?: string
|
|
49
|
-
|
|
50
|
-
// FIXME: Missing documentation for authorId
|
|
51
|
-
authorId: EntityId
|
|
52
|
-
|
|
53
|
-
// FIXME: Missing documentation for scopes
|
|
54
|
-
scopes: string[]
|
|
55
|
-
|
|
56
|
-
// FIXME: Missing documentation for token
|
|
57
|
-
token: ApiKeyValue
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// FIXME: Missing documentation for ApiKeyValue
|
|
61
|
-
export type ApiKeyValue = string
|
|
62
|
-
|
|
63
|
-
// FIXME: Missing documentation for CreateApiKeyInput
|
|
64
|
-
export type CreateApiKeyInput = {
|
|
65
|
-
// FIXME: Missing documentation for scopes
|
|
66
|
-
scopes: string[]
|
|
67
|
-
|
|
68
|
-
// FIXME: Missing documentation for externalId
|
|
69
|
-
externalId?: string
|
|
70
|
-
|
|
71
|
-
// FIXME: Missing documentation for name
|
|
72
|
-
name: string
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
// FIXME: Missing documentation for ApiKeyStatus
|
|
76
|
-
export enum ApiKeyStatus {
|
|
77
|
-
// FIXME: Missing documentation for Active
|
|
78
|
-
Active = 'Active',
|
|
79
|
-
// FIXME: Missing documentation for Archived
|
|
80
|
-
Archived = 'Archived',
|
|
81
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { DfnsError } from '../Foundations'
|
|
2
|
-
export class InsufficientFunds extends DfnsError {
|
|
3
|
-
name: string = 'InsufficientFunds'
|
|
4
|
-
// FIXME: Missing documentation for serviceName
|
|
5
|
-
serviceName: string
|
|
6
|
-
|
|
7
|
-
// FIXME: Missing documentation for message
|
|
8
|
-
message: string
|
|
9
|
-
|
|
10
|
-
// FIXME: Missing documentation for causes
|
|
11
|
-
causes?: string[]
|
|
12
|
-
|
|
13
|
-
// FIXME: Missing documentation for shouldTriggerInvestigaton
|
|
14
|
-
shouldTriggerInvestigaton: boolean
|
|
15
|
-
|
|
16
|
-
// FIXME: Missing documentation for isDfnsError
|
|
17
|
-
isDfnsError: boolean = true
|
|
18
|
-
|
|
19
|
-
// FIXME: Missing documentation for httpStatus
|
|
20
|
-
httpStatus: number = 422
|
|
21
|
-
|
|
22
|
-
// FIXME: Missing documentation for errorName
|
|
23
|
-
errorName: string = 'Insufficient funds in asset account'
|
|
24
|
-
}
|