@dfns/sdk 0.2.2 → 0.2.3-rc.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.ts +236 -0
- package/codegen/Assets/AssetsClient.ts +137 -0
- package/codegen/Assets/DelegatedAssetsClient.ts +201 -0
- package/codegen/Assets/index.ts +3 -0
- package/codegen/Assets/types.ts +45 -0
- package/codegen/Auth/AuthClient.ts +729 -0
- package/codegen/Auth/DelegatedAuthClient.ts +1508 -0
- package/codegen/Auth/index.ts +3 -0
- package/codegen/Auth/types.ts +262 -0
- package/codegen/Blockchains/BlockchainsClient.ts +25 -0
- package/codegen/Blockchains/DelegatedBlockchainsClient.ts +25 -0
- package/codegen/Blockchains/index.ts +3 -0
- package/codegen/Blockchains/types.ts +8 -0
- package/codegen/Callbacks/CallbacksClient.ts +107 -0
- package/codegen/Callbacks/DelegatedCallbacksClient.ts +172 -0
- package/codegen/Callbacks/index.ts +3 -0
- package/codegen/Callbacks/{types.d.ts → types.ts} +26 -18
- package/codegen/Permissions/DelegatedPermissionsClient.ts +468 -0
- package/codegen/Permissions/PermissionsClient.ts +223 -0
- package/codegen/Permissions/index.ts +3 -0
- package/codegen/Permissions/types.ts +82 -0
- package/codegen/PolicyExecution/DelegatedPolicyExecutionClient.ts +99 -0
- package/codegen/PolicyExecution/PolicyExecutionClient.ts +63 -0
- package/codegen/PolicyExecution/index.ts +3 -0
- package/codegen/PolicyExecution/types.ts +24 -0
- package/codegen/PolicyManagement/DelegatedPolicyManagementClient.ts +384 -0
- package/codegen/PolicyManagement/PolicyManagementClient.ts +205 -0
- package/codegen/PolicyManagement/index.ts +3 -0
- package/codegen/PolicyManagement/{types.d.ts → types.ts} +56 -40
- package/codegen/PublicKeys/DelegatedPublicKeysClient.ts +299 -0
- package/codegen/PublicKeys/PublicKeysClient.ts +179 -0
- package/codegen/PublicKeys/index.ts +3 -0
- package/codegen/PublicKeys/types.ts +68 -0
- package/codegen/Signers/DelegatedSignersClient.ts +22 -0
- package/codegen/Signers/SignersClient.ts +22 -0
- package/codegen/Signers/index.ts +3 -0
- package/codegen/Signers/types.ts +3 -0
- package/codegen/Wallets/DelegatedWalletsClient.ts +511 -0
- package/codegen/Wallets/WalletsClient.ts +310 -0
- package/codegen/Wallets/index.ts +3 -0
- package/codegen/Wallets/types.ts +137 -0
- package/codegen/datamodel/ApiKeys/errors.ts +9 -0
- package/codegen/datamodel/ApiKeys/index.ts +3 -0
- package/codegen/datamodel/ApiKeys/responses.ts +68 -0
- package/codegen/datamodel/ApiKeys/types.ts +81 -0
- package/codegen/datamodel/Assets/errors.ts +24 -0
- package/codegen/datamodel/Assets/index.ts +3 -0
- package/codegen/datamodel/Assets/responses.ts +146 -0
- package/codegen/datamodel/Assets/types.ts +417 -0
- package/codegen/datamodel/Auth/index.ts +2 -0
- package/codegen/datamodel/Auth/responses.ts +1110 -0
- package/codegen/datamodel/Auth/types.ts +1404 -0
- package/codegen/datamodel/BlockchainIndexing/index.ts +1 -0
- package/codegen/datamodel/BlockchainIndexing/{responses.d.ts → responses.ts} +10 -5
- package/codegen/datamodel/Blockchains/index.ts +2 -0
- package/codegen/datamodel/Blockchains/responses.ts +41 -0
- package/codegen/datamodel/Blockchains/types.ts +695 -0
- package/codegen/datamodel/Callbacks/index.ts +2 -0
- package/codegen/datamodel/Callbacks/responses.ts +110 -0
- package/codegen/datamodel/Callbacks/types.ts +100 -0
- package/codegen/datamodel/Foundations/errors.ts +299 -0
- package/codegen/datamodel/Foundations/index.ts +2 -0
- package/codegen/datamodel/Foundations/types.ts +57921 -0
- package/codegen/datamodel/Orgs/index.ts +2 -0
- package/codegen/datamodel/Orgs/responses.ts +104 -0
- package/codegen/datamodel/Orgs/types.ts +322 -0
- package/codegen/datamodel/Permissions/index.ts +2 -0
- package/codegen/datamodel/Permissions/responses.ts +258 -0
- package/codegen/datamodel/Permissions/types.ts +221 -0
- package/codegen/datamodel/PolicyExecution/errors.ts +24 -0
- package/codegen/datamodel/PolicyExecution/index.ts +3 -0
- package/codegen/datamodel/PolicyExecution/responses.ts +59 -0
- package/codegen/datamodel/PolicyExecution/types.ts +122 -0
- package/codegen/datamodel/PolicyManagement/index.ts +2 -0
- package/codegen/datamodel/PolicyManagement/responses.ts +255 -0
- package/codegen/datamodel/PolicyManagement/types.ts +711 -0
- package/codegen/datamodel/PublicKeys/index.ts +2 -0
- package/codegen/datamodel/PublicKeys/responses.ts +190 -0
- package/codegen/datamodel/PublicKeys/types.ts +558 -0
- package/codegen/datamodel/Signers/index.ts +2 -0
- package/codegen/datamodel/Signers/responses.ts +64 -0
- package/codegen/datamodel/Signers/types.ts +31 -0
- package/codegen/datamodel/Wallets/errors.ts +0 -0
- package/codegen/datamodel/Wallets/index.ts +2 -0
- package/codegen/datamodel/Wallets/responses.ts +318 -0
- package/codegen/datamodel/Wallets/types.ts +1268 -0
- package/dfnsApiClient.ts +76 -0
- package/dfnsAuthenticator.ts +59 -0
- package/dfnsDelegatedApiClient.ts +75 -0
- package/dfnsError.ts +5 -0
- package/generated/permissions/client.ts +125 -0
- package/generated/permissions/delegatedClient.ts +266 -0
- package/generated/permissions/index.ts +3 -0
- package/generated/permissions/types.ts +202 -0
- package/generated/policies/client.ts +110 -0
- package/generated/policies/delegatedClient.ts +223 -0
- package/generated/policies/index.ts +3 -0
- package/generated/policies/{types.d.ts → types.ts} +29 -17
- package/generated/signers/client.ts +22 -0
- package/generated/signers/delegatedClient.ts +23 -0
- package/generated/signers/index.ts +3 -0
- package/generated/signers/{types.d.ts → types.ts} +1 -0
- package/generated/wallets/client.ts +282 -0
- package/generated/wallets/delegatedClient.ts +507 -0
- package/generated/wallets/index.ts +3 -0
- package/generated/wallets/{types.d.ts → types.ts} +120 -48
- package/generated/webhooks/client.ts +124 -0
- package/generated/webhooks/delegatedClient.ts +237 -0
- package/generated/webhooks/index.ts +3 -0
- package/generated/webhooks/{types.d.ts → types.ts} +34 -16
- package/index.ts +7 -0
- package/package.json +1 -8
- package/project.json +14 -0
- package/signer.ts +60 -0
- package/store.ts +99 -0
- package/tsconfig.json +7 -0
- package/typedoc.json +21 -0
- package/types/policies.ts +1 -0
- package/types/signers.ts +1 -0
- package/types/wallets.ts +1 -0
- package/types/webhooks.ts +1 -0
- package/utils/base64.ts +19 -0
- package/utils/fetch.ts +130 -0
- package/utils/index.ts +4 -0
- package/utils/nonce.ts +12 -0
- package/utils/url.ts +19 -0
- package/baseAuthApi.d.ts +0 -113
- package/baseAuthApi.js +0 -97
- package/codegen/Assets/AssetsClient.d.ts +0 -13
- package/codegen/Assets/AssetsClient.js +0 -93
- package/codegen/Assets/DelegatedAssetsClient.d.ts +0 -16
- package/codegen/Assets/DelegatedAssetsClient.js +0 -124
- package/codegen/Assets/index.d.ts +0 -3
- package/codegen/Assets/index.js +0 -19
- package/codegen/Assets/types.d.ts +0 -37
- package/codegen/Assets/types.js +0 -2
- package/codegen/Auth/AuthClient.d.ts +0 -50
- package/codegen/Auth/AuthClient.js +0 -518
- package/codegen/Auth/DelegatedAuthClient.d.ts +0 -78
- package/codegen/Auth/DelegatedAuthClient.js +0 -936
- package/codegen/Auth/index.d.ts +0 -3
- package/codegen/Auth/index.js +0 -19
- package/codegen/Auth/types.d.ts +0 -177
- package/codegen/Auth/types.js +0 -2
- package/codegen/Blockchains/BlockchainsClient.d.ts +0 -7
- package/codegen/Blockchains/BlockchainsClient.js +0 -23
- package/codegen/Blockchains/DelegatedBlockchainsClient.d.ts +0 -7
- package/codegen/Blockchains/DelegatedBlockchainsClient.js +0 -23
- package/codegen/Blockchains/index.d.ts +0 -3
- package/codegen/Blockchains/index.js +0 -19
- package/codegen/Blockchains/types.d.ts +0 -6
- package/codegen/Blockchains/types.js +0 -2
- package/codegen/Callbacks/CallbacksClient.d.ts +0 -12
- package/codegen/Callbacks/CallbacksClient.js +0 -78
- package/codegen/Callbacks/DelegatedCallbacksClient.d.ts +0 -15
- package/codegen/Callbacks/DelegatedCallbacksClient.js +0 -110
- package/codegen/Callbacks/index.d.ts +0 -3
- package/codegen/Callbacks/index.js +0 -19
- package/codegen/Callbacks/types.js +0 -2
- package/codegen/Permissions/DelegatedPermissionsClient.d.ts +0 -27
- package/codegen/Permissions/DelegatedPermissionsClient.js +0 -284
- package/codegen/Permissions/PermissionsClient.d.ts +0 -18
- package/codegen/Permissions/PermissionsClient.js +0 -156
- package/codegen/Permissions/index.d.ts +0 -3
- package/codegen/Permissions/index.js +0 -19
- package/codegen/Permissions/types.d.ts +0 -62
- package/codegen/Permissions/types.js +0 -2
- package/codegen/PolicyExecution/DelegatedPolicyExecutionClient.d.ts +0 -11
- package/codegen/PolicyExecution/DelegatedPolicyExecutionClient.js +0 -61
- package/codegen/PolicyExecution/PolicyExecutionClient.d.ts +0 -9
- package/codegen/PolicyExecution/PolicyExecutionClient.js +0 -45
- package/codegen/PolicyExecution/index.d.ts +0 -3
- package/codegen/PolicyExecution/index.js +0 -19
- package/codegen/PolicyExecution/types.d.ts +0 -18
- package/codegen/PolicyExecution/types.js +0 -2
- package/codegen/PolicyManagement/DelegatedPolicyManagementClient.d.ts +0 -25
- package/codegen/PolicyManagement/DelegatedPolicyManagementClient.js +0 -240
- package/codegen/PolicyManagement/PolicyManagementClient.d.ts +0 -18
- package/codegen/PolicyManagement/PolicyManagementClient.js +0 -146
- package/codegen/PolicyManagement/index.d.ts +0 -3
- package/codegen/PolicyManagement/index.js +0 -19
- package/codegen/PolicyManagement/types.js +0 -2
- package/codegen/PublicKeys/DelegatedPublicKeysClient.d.ts +0 -21
- package/codegen/PublicKeys/DelegatedPublicKeysClient.js +0 -189
- package/codegen/PublicKeys/PublicKeysClient.d.ts +0 -16
- package/codegen/PublicKeys/PublicKeysClient.js +0 -128
- package/codegen/PublicKeys/index.d.ts +0 -3
- package/codegen/PublicKeys/index.js +0 -19
- package/codegen/PublicKeys/types.d.ts +0 -51
- package/codegen/PublicKeys/types.js +0 -2
- package/codegen/Signers/DelegatedSignersClient.d.ts +0 -7
- package/codegen/Signers/DelegatedSignersClient.js +0 -22
- package/codegen/Signers/SignersClient.d.ts +0 -7
- package/codegen/Signers/SignersClient.js +0 -22
- package/codegen/Signers/index.d.ts +0 -3
- package/codegen/Signers/index.js +0 -19
- package/codegen/Signers/types.d.ts +0 -2
- package/codegen/Signers/types.js +0 -2
- package/codegen/Wallets/DelegatedWalletsClient.d.ts +0 -32
- package/codegen/Wallets/DelegatedWalletsClient.js +0 -325
- package/codegen/Wallets/WalletsClient.d.ts +0 -24
- package/codegen/Wallets/WalletsClient.js +0 -219
- package/codegen/Wallets/index.d.ts +0 -3
- package/codegen/Wallets/index.js +0 -19
- package/codegen/Wallets/types.d.ts +0 -101
- package/codegen/Wallets/types.js +0 -2
- package/codegen/datamodel/ApiKeys/errors.d.ts +0 -6
- package/codegen/datamodel/ApiKeys/errors.js +0 -15
- package/codegen/datamodel/ApiKeys/index.d.ts +0 -3
- package/codegen/datamodel/ApiKeys/index.js +0 -19
- package/codegen/datamodel/ApiKeys/responses.d.ts +0 -25
- package/codegen/datamodel/ApiKeys/responses.js +0 -2
- package/codegen/datamodel/ApiKeys/types.d.ts +0 -32
- package/codegen/datamodel/ApiKeys/types.js +0 -11
- package/codegen/datamodel/Assets/errors.d.ts +0 -11
- package/codegen/datamodel/Assets/errors.js +0 -17
- package/codegen/datamodel/Assets/index.d.ts +0 -3
- package/codegen/datamodel/Assets/index.js +0 -19
- package/codegen/datamodel/Assets/responses.d.ts +0 -47
- package/codegen/datamodel/Assets/responses.js +0 -2
- package/codegen/datamodel/Assets/types.d.ts +0 -225
- package/codegen/datamodel/Assets/types.js +0 -75
- package/codegen/datamodel/Auth/errors.js +0 -1
- package/codegen/datamodel/Auth/index.d.ts +0 -2
- package/codegen/datamodel/Auth/index.js +0 -18
- package/codegen/datamodel/Auth/responses.d.ts +0 -358
- package/codegen/datamodel/Auth/responses.js +0 -2
- package/codegen/datamodel/Auth/types.d.ts +0 -615
- package/codegen/datamodel/Auth/types.js +0 -127
- package/codegen/datamodel/BlockchainIndexing/errors.js +0 -1
- package/codegen/datamodel/BlockchainIndexing/index.d.ts +0 -1
- package/codegen/datamodel/BlockchainIndexing/index.js +0 -17
- package/codegen/datamodel/BlockchainIndexing/responses.js +0 -2
- package/codegen/datamodel/BlockchainIndexing/types.js +0 -1
- package/codegen/datamodel/Blockchains/errors.js +0 -1
- package/codegen/datamodel/Blockchains/index.d.ts +0 -2
- package/codegen/datamodel/Blockchains/index.js +0 -18
- package/codegen/datamodel/Blockchains/responses.d.ts +0 -12
- package/codegen/datamodel/Blockchains/responses.js +0 -2
- package/codegen/datamodel/Blockchains/types.d.ts +0 -270
- package/codegen/datamodel/Blockchains/types.js +0 -53
- package/codegen/datamodel/Callbacks/errors.js +0 -1
- package/codegen/datamodel/Callbacks/index.d.ts +0 -2
- package/codegen/datamodel/Callbacks/index.js +0 -18
- package/codegen/datamodel/Callbacks/responses.d.ts +0 -36
- package/codegen/datamodel/Callbacks/responses.js +0 -2
- package/codegen/datamodel/Callbacks/types.d.ts +0 -43
- package/codegen/datamodel/Callbacks/types.js +0 -39
- package/codegen/datamodel/Foundations/errors.d.ts +0 -131
- package/codegen/datamodel/Foundations/errors.js +0 -182
- package/codegen/datamodel/Foundations/index.d.ts +0 -2
- package/codegen/datamodel/Foundations/index.js +0 -18
- package/codegen/datamodel/Foundations/responses.js +0 -1
- package/codegen/datamodel/Foundations/types.d.ts +0 -9759
- package/codegen/datamodel/Foundations/types.js +0 -57755
- package/codegen/datamodel/Orgs/errors.js +0 -1
- package/codegen/datamodel/Orgs/index.d.ts +0 -2
- package/codegen/datamodel/Orgs/index.js +0 -18
- package/codegen/datamodel/Orgs/responses.d.ts +0 -45
- package/codegen/datamodel/Orgs/responses.js +0 -2
- package/codegen/datamodel/Orgs/types.d.ts +0 -240
- package/codegen/datamodel/Orgs/types.js +0 -39
- package/codegen/datamodel/Permissions/errors.js +0 -1
- package/codegen/datamodel/Permissions/index.d.ts +0 -2
- package/codegen/datamodel/Permissions/index.js +0 -18
- package/codegen/datamodel/Permissions/responses.d.ts +0 -75
- package/codegen/datamodel/Permissions/responses.js +0 -2
- package/codegen/datamodel/Permissions/types.d.ts +0 -93
- package/codegen/datamodel/Permissions/types.js +0 -43
- package/codegen/datamodel/PolicyExecution/errors.d.ts +0 -11
- package/codegen/datamodel/PolicyExecution/errors.js +0 -17
- package/codegen/datamodel/PolicyExecution/index.d.ts +0 -3
- package/codegen/datamodel/PolicyExecution/index.js +0 -19
- package/codegen/datamodel/PolicyExecution/responses.d.ts +0 -19
- package/codegen/datamodel/PolicyExecution/responses.js +0 -2
- package/codegen/datamodel/PolicyExecution/types.d.ts +0 -60
- package/codegen/datamodel/PolicyExecution/types.js +0 -17
- package/codegen/datamodel/PolicyManagement/errors.js +0 -1
- package/codegen/datamodel/PolicyManagement/index.d.ts +0 -2
- package/codegen/datamodel/PolicyManagement/index.js +0 -18
- package/codegen/datamodel/PolicyManagement/responses.d.ts +0 -83
- package/codegen/datamodel/PolicyManagement/responses.js +0 -2
- package/codegen/datamodel/PolicyManagement/types.d.ts +0 -391
- package/codegen/datamodel/PolicyManagement/types.js +0 -95
- package/codegen/datamodel/PublicKeys/errors.js +0 -1
- package/codegen/datamodel/PublicKeys/index.d.ts +0 -2
- package/codegen/datamodel/PublicKeys/index.js +0 -18
- package/codegen/datamodel/PublicKeys/responses.d.ts +0 -56
- package/codegen/datamodel/PublicKeys/responses.js +0 -2
- package/codegen/datamodel/PublicKeys/types.d.ts +0 -223
- package/codegen/datamodel/PublicKeys/types.js +0 -59
- package/codegen/datamodel/Signers/errors.js +0 -1
- package/codegen/datamodel/Signers/index.d.ts +0 -2
- package/codegen/datamodel/Signers/index.js +0 -18
- package/codegen/datamodel/Signers/responses.d.ts +0 -27
- package/codegen/datamodel/Signers/responses.js +0 -2
- package/codegen/datamodel/Signers/types.d.ts +0 -21
- package/codegen/datamodel/Signers/types.js +0 -2
- package/codegen/datamodel/Wallets/errors.js +0 -1
- package/codegen/datamodel/Wallets/index.d.ts +0 -2
- package/codegen/datamodel/Wallets/index.js +0 -18
- package/codegen/datamodel/Wallets/responses.d.ts +0 -92
- package/codegen/datamodel/Wallets/responses.js +0 -2
- package/codegen/datamodel/Wallets/types.d.ts +0 -677
- package/codegen/datamodel/Wallets/types.js +0 -251
- package/dfnsApiClient.d.ts +0 -39
- package/dfnsApiClient.js +0 -63
- package/dfnsAuthenticator.d.ts +0 -17
- package/dfnsAuthenticator.js +0 -29
- package/dfnsDelegatedApiClient.d.ts +0 -38
- package/dfnsDelegatedApiClient.js +0 -63
- package/dfnsError.d.ts +0 -5
- package/dfnsError.js +0 -11
- package/generated/policies/client.d.ts +0 -13
- package/generated/policies/client.js +0 -92
- package/generated/policies/delegatedClient.d.ts +0 -18
- package/generated/policies/delegatedClient.js +0 -153
- package/generated/policies/index.d.ts +0 -3
- package/generated/policies/index.js +0 -19
- package/generated/policies/types.js +0 -2
- package/generated/signers/client.d.ts +0 -7
- package/generated/signers/client.js +0 -22
- package/generated/signers/delegatedClient.d.ts +0 -7
- package/generated/signers/delegatedClient.js +0 -22
- package/generated/signers/index.d.ts +0 -3
- package/generated/signers/index.js +0 -19
- package/generated/signers/types.js +0 -2
- package/generated/wallets/client.d.ts +0 -25
- package/generated/wallets/client.js +0 -228
- package/generated/wallets/delegatedClient.d.ts +0 -34
- package/generated/wallets/delegatedClient.js +0 -349
- package/generated/wallets/index.d.ts +0 -3
- package/generated/wallets/index.js +0 -19
- package/generated/wallets/types.js +0 -2
- package/generated/webhooks/client.d.ts +0 -14
- package/generated/webhooks/client.js +0 -103
- package/generated/webhooks/delegatedClient.d.ts +0 -19
- package/generated/webhooks/delegatedClient.js +0 -164
- package/generated/webhooks/index.d.ts +0 -3
- package/generated/webhooks/index.js +0 -19
- package/generated/webhooks/types.js +0 -2
- package/index.d.ts +0 -7
- package/index.js +0 -23
- package/signer.d.ts +0 -52
- package/signer.js +0 -2
- package/store.d.ts +0 -79
- package/store.js +0 -2
- package/types/policies.d.ts +0 -1
- package/types/policies.js +0 -17
- package/types/signers.d.ts +0 -1
- package/types/signers.js +0 -17
- package/types/wallets.d.ts +0 -1
- package/types/wallets.js +0 -17
- package/types/webhooks.d.ts +0 -1
- package/types/webhooks.js +0 -17
- package/utils/base64.d.ts +0 -3
- package/utils/base64.js +0 -20
- package/utils/fetch.d.ts +0 -12
- package/utils/fetch.js +0 -94
- package/utils/index.d.ts +0 -4
- package/utils/index.js +0 -20
- package/utils/nonce.d.ts +0 -1
- package/utils/nonce.js +0 -12
- package/utils/url.d.ts +0 -4
- package/utils/url.js +0 -16
- /package/{codegen/datamodel/Auth/errors.d.ts → README.md} +0 -0
- /package/codegen/datamodel/{BlockchainIndexing/errors.d.ts → Auth/errors.ts} +0 -0
- /package/codegen/datamodel/BlockchainIndexing/{types.d.ts → errors.ts} +0 -0
- /package/codegen/datamodel/{Blockchains/errors.d.ts → BlockchainIndexing/types.ts} +0 -0
- /package/codegen/datamodel/{Callbacks/errors.d.ts → Blockchains/errors.ts} +0 -0
- /package/codegen/datamodel/{Foundations/responses.d.ts → Callbacks/errors.ts} +0 -0
- /package/codegen/datamodel/{Orgs/errors.d.ts → Foundations/responses.ts} +0 -0
- /package/codegen/datamodel/{Permissions/errors.d.ts → Orgs/errors.ts} +0 -0
- /package/codegen/datamodel/{PolicyManagement/errors.d.ts → Permissions/errors.ts} +0 -0
- /package/codegen/datamodel/{PublicKeys/errors.d.ts → PolicyManagement/errors.ts} +0 -0
- /package/codegen/datamodel/{Signers/errors.d.ts → PublicKeys/errors.ts} +0 -0
- /package/codegen/datamodel/{Wallets/errors.d.ts → Signers/errors.ts} +0 -0
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DelegatedPublicKeysClient = void 0;
|
|
4
|
-
const baseAuthApi_1 = require("../../baseAuthApi");
|
|
5
|
-
const fetch_1 = require("../../utils/fetch");
|
|
6
|
-
const url_1 = require("../../utils/url");
|
|
7
|
-
class DelegatedPublicKeysClient {
|
|
8
|
-
constructor(apiOptions) {
|
|
9
|
-
this.apiOptions = apiOptions;
|
|
10
|
-
}
|
|
11
|
-
async getPublicKeyById(request) {
|
|
12
|
-
const path = (0, url_1.buildPathAndQuery)('/public-keys/:publicKeyId', {
|
|
13
|
-
path: { publicKeyId: request.publicKeyId },
|
|
14
|
-
query: {},
|
|
15
|
-
});
|
|
16
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
17
|
-
method: 'GET',
|
|
18
|
-
apiOptions: this.apiOptions,
|
|
19
|
-
});
|
|
20
|
-
return response.json();
|
|
21
|
-
}
|
|
22
|
-
async createPublicKeyInit(request) {
|
|
23
|
-
const path = (0, url_1.buildPathAndQuery)('/public-keys', {
|
|
24
|
-
path: {},
|
|
25
|
-
query: {},
|
|
26
|
-
});
|
|
27
|
-
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
28
|
-
userActionHttpMethod: 'POST',
|
|
29
|
-
userActionHttpPath: path,
|
|
30
|
-
userActionPayload: JSON.stringify(request.body),
|
|
31
|
-
userActionServerKind: 'Api',
|
|
32
|
-
}, this.apiOptions);
|
|
33
|
-
return challenge;
|
|
34
|
-
}
|
|
35
|
-
async createPublicKeyComplete(request, signedChallenge) {
|
|
36
|
-
const path = (0, url_1.buildPathAndQuery)('/public-keys', {
|
|
37
|
-
path: {},
|
|
38
|
-
query: {},
|
|
39
|
-
});
|
|
40
|
-
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
41
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
42
|
-
method: 'POST',
|
|
43
|
-
body: request.body,
|
|
44
|
-
headers: { 'x-dfns-useraction': userAction },
|
|
45
|
-
apiOptions: this.apiOptions,
|
|
46
|
-
});
|
|
47
|
-
return response.json();
|
|
48
|
-
}
|
|
49
|
-
async listPublicKeys() {
|
|
50
|
-
const path = (0, url_1.buildPathAndQuery)('/public-keys', {
|
|
51
|
-
path: {},
|
|
52
|
-
query: {},
|
|
53
|
-
});
|
|
54
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
55
|
-
method: 'GET',
|
|
56
|
-
apiOptions: this.apiOptions,
|
|
57
|
-
});
|
|
58
|
-
return response.json();
|
|
59
|
-
}
|
|
60
|
-
async getAddressForNetwork(request) {
|
|
61
|
-
const path = (0, url_1.buildPathAndQuery)('/public-keys/:publicKeyId/address', {
|
|
62
|
-
path: { publicKeyId: request.publicKeyId },
|
|
63
|
-
query: request.query ?? {},
|
|
64
|
-
});
|
|
65
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
66
|
-
method: 'GET',
|
|
67
|
-
apiOptions: this.apiOptions,
|
|
68
|
-
});
|
|
69
|
-
return response.json();
|
|
70
|
-
}
|
|
71
|
-
async getSignatureById(request) {
|
|
72
|
-
const path = (0, url_1.buildPathAndQuery)('/public-keys/:publicKeyId/signatures/:signatureId', {
|
|
73
|
-
path: {
|
|
74
|
-
publicKeyId: request.publicKeyId,
|
|
75
|
-
signatureId: request.signatureId,
|
|
76
|
-
},
|
|
77
|
-
query: {},
|
|
78
|
-
});
|
|
79
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
80
|
-
method: 'GET',
|
|
81
|
-
apiOptions: this.apiOptions,
|
|
82
|
-
});
|
|
83
|
-
return response.json();
|
|
84
|
-
}
|
|
85
|
-
async createSignatureInit(request) {
|
|
86
|
-
const path = (0, url_1.buildPathAndQuery)('/public-keys/:publicKeyId/signatures', {
|
|
87
|
-
path: { publicKeyId: request.publicKeyId },
|
|
88
|
-
query: {},
|
|
89
|
-
});
|
|
90
|
-
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
91
|
-
userActionHttpMethod: 'POST',
|
|
92
|
-
userActionHttpPath: path,
|
|
93
|
-
userActionPayload: JSON.stringify(request.body),
|
|
94
|
-
userActionServerKind: 'Api',
|
|
95
|
-
}, this.apiOptions);
|
|
96
|
-
return challenge;
|
|
97
|
-
}
|
|
98
|
-
async createSignatureComplete(request, signedChallenge) {
|
|
99
|
-
const path = (0, url_1.buildPathAndQuery)('/public-keys/:publicKeyId/signatures', {
|
|
100
|
-
path: { publicKeyId: request.publicKeyId },
|
|
101
|
-
query: {},
|
|
102
|
-
});
|
|
103
|
-
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
104
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
105
|
-
method: 'POST',
|
|
106
|
-
body: request.body,
|
|
107
|
-
headers: { 'x-dfns-useraction': userAction },
|
|
108
|
-
apiOptions: this.apiOptions,
|
|
109
|
-
});
|
|
110
|
-
return response.json();
|
|
111
|
-
}
|
|
112
|
-
async startWalletConnectSessionInit(request) {
|
|
113
|
-
const path = (0, url_1.buildPathAndQuery)('/public-keys/:publicKeyId/walletconnect-session', {
|
|
114
|
-
path: { publicKeyId: request.publicKeyId },
|
|
115
|
-
query: {},
|
|
116
|
-
});
|
|
117
|
-
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
118
|
-
userActionHttpMethod: 'POST',
|
|
119
|
-
userActionHttpPath: path,
|
|
120
|
-
userActionPayload: JSON.stringify(request.body),
|
|
121
|
-
userActionServerKind: 'Api',
|
|
122
|
-
}, this.apiOptions);
|
|
123
|
-
return challenge;
|
|
124
|
-
}
|
|
125
|
-
async startWalletConnectSessionComplete(request, signedChallenge) {
|
|
126
|
-
const path = (0, url_1.buildPathAndQuery)('/public-keys/:publicKeyId/walletconnect-session', {
|
|
127
|
-
path: { publicKeyId: request.publicKeyId },
|
|
128
|
-
query: {},
|
|
129
|
-
});
|
|
130
|
-
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
131
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
132
|
-
method: 'POST',
|
|
133
|
-
body: request.body,
|
|
134
|
-
headers: { 'x-dfns-useraction': userAction },
|
|
135
|
-
apiOptions: this.apiOptions,
|
|
136
|
-
});
|
|
137
|
-
return response.json();
|
|
138
|
-
}
|
|
139
|
-
async listTransactions(request) {
|
|
140
|
-
const path = (0, url_1.buildPathAndQuery)('/public-keys/:publicKeyId/transactions', {
|
|
141
|
-
path: { publicKeyId: request.publicKeyId },
|
|
142
|
-
query: request.query ?? {},
|
|
143
|
-
});
|
|
144
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
145
|
-
method: 'GET',
|
|
146
|
-
apiOptions: this.apiOptions,
|
|
147
|
-
});
|
|
148
|
-
return response.json();
|
|
149
|
-
}
|
|
150
|
-
async createTransactionInit(request) {
|
|
151
|
-
const path = (0, url_1.buildPathAndQuery)('/public-keys/transactions', {
|
|
152
|
-
path: {},
|
|
153
|
-
query: {},
|
|
154
|
-
});
|
|
155
|
-
const challenge = await baseAuthApi_1.BaseAuthApi.createUserActionChallenge({
|
|
156
|
-
userActionHttpMethod: 'POST',
|
|
157
|
-
userActionHttpPath: path,
|
|
158
|
-
userActionPayload: JSON.stringify(request.body),
|
|
159
|
-
userActionServerKind: 'Api',
|
|
160
|
-
}, this.apiOptions);
|
|
161
|
-
return challenge;
|
|
162
|
-
}
|
|
163
|
-
async createTransactionComplete(request, signedChallenge) {
|
|
164
|
-
const path = (0, url_1.buildPathAndQuery)('/public-keys/transactions', {
|
|
165
|
-
path: {},
|
|
166
|
-
query: {},
|
|
167
|
-
});
|
|
168
|
-
const { userAction } = await baseAuthApi_1.BaseAuthApi.signUserActionChallenge(signedChallenge, this.apiOptions);
|
|
169
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
170
|
-
method: 'POST',
|
|
171
|
-
body: request.body,
|
|
172
|
-
headers: { 'x-dfns-useraction': userAction },
|
|
173
|
-
apiOptions: this.apiOptions,
|
|
174
|
-
});
|
|
175
|
-
return response.json();
|
|
176
|
-
}
|
|
177
|
-
async getTransactionById(request) {
|
|
178
|
-
const path = (0, url_1.buildPathAndQuery)('/public-keys/transactions/:transactionId', {
|
|
179
|
-
path: { transactionId: request.transactionId },
|
|
180
|
-
query: {},
|
|
181
|
-
});
|
|
182
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
183
|
-
method: 'GET',
|
|
184
|
-
apiOptions: this.apiOptions,
|
|
185
|
-
});
|
|
186
|
-
return response.json();
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
exports.DelegatedPublicKeysClient = DelegatedPublicKeysClient;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { DfnsApiClientOptions } from '../../dfnsApiClient';
|
|
2
|
-
import * as T from './types';
|
|
3
|
-
export declare class PublicKeysClient {
|
|
4
|
-
private apiOptions;
|
|
5
|
-
constructor(apiOptions: DfnsApiClientOptions);
|
|
6
|
-
getPublicKeyById(request: T.GetPublicKeyByIdRequest): Promise<T.GetPublicKeyByIdResponse>;
|
|
7
|
-
createPublicKey(request: T.CreatePublicKeyRequest): Promise<T.CreatePublicKeyResponse>;
|
|
8
|
-
listPublicKeys(): Promise<T.ListPublicKeysResponse>;
|
|
9
|
-
getAddressForNetwork(request: T.GetAddressForNetworkRequest): Promise<T.GetAddressForNetworkResponse>;
|
|
10
|
-
getSignatureById(request: T.GetSignatureByIdRequest): Promise<T.GetSignatureByIdResponse>;
|
|
11
|
-
createSignature(request: T.CreateSignatureRequest): Promise<T.CreateSignatureResponse>;
|
|
12
|
-
startWalletConnectSession(request: T.StartWalletConnectSessionRequest): Promise<T.StartWalletConnectSessionResponse>;
|
|
13
|
-
listTransactions(request: T.ListTransactionsRequest): Promise<T.ListTransactionsResponse>;
|
|
14
|
-
createTransaction(request: T.CreateTransactionRequest): Promise<T.CreateTransactionResponse>;
|
|
15
|
-
getTransactionById(request: T.GetTransactionByIdRequest): Promise<T.GetTransactionByIdResponse>;
|
|
16
|
-
}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PublicKeysClient = void 0;
|
|
4
|
-
const fetch_1 = require("../../utils/fetch");
|
|
5
|
-
const url_1 = require("../../utils/url");
|
|
6
|
-
class PublicKeysClient {
|
|
7
|
-
constructor(apiOptions) {
|
|
8
|
-
this.apiOptions = apiOptions;
|
|
9
|
-
}
|
|
10
|
-
async getPublicKeyById(request) {
|
|
11
|
-
const path = (0, url_1.buildPathAndQuery)('/public-keys/:publicKeyId', {
|
|
12
|
-
path: { publicKeyId: request.publicKeyId },
|
|
13
|
-
query: {},
|
|
14
|
-
});
|
|
15
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
16
|
-
method: 'GET',
|
|
17
|
-
apiOptions: this.apiOptions,
|
|
18
|
-
});
|
|
19
|
-
return response.json();
|
|
20
|
-
}
|
|
21
|
-
async createPublicKey(request) {
|
|
22
|
-
const path = (0, url_1.buildPathAndQuery)('/public-keys', {
|
|
23
|
-
path: {},
|
|
24
|
-
query: {},
|
|
25
|
-
});
|
|
26
|
-
const response = await (0, fetch_1.userActionFetch)(path, {
|
|
27
|
-
method: 'POST',
|
|
28
|
-
body: request.body,
|
|
29
|
-
apiOptions: this.apiOptions,
|
|
30
|
-
});
|
|
31
|
-
return response.json();
|
|
32
|
-
}
|
|
33
|
-
async listPublicKeys() {
|
|
34
|
-
const path = (0, url_1.buildPathAndQuery)('/public-keys', {
|
|
35
|
-
path: {},
|
|
36
|
-
query: {},
|
|
37
|
-
});
|
|
38
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
39
|
-
method: 'GET',
|
|
40
|
-
apiOptions: this.apiOptions,
|
|
41
|
-
});
|
|
42
|
-
return response.json();
|
|
43
|
-
}
|
|
44
|
-
async getAddressForNetwork(request) {
|
|
45
|
-
const path = (0, url_1.buildPathAndQuery)('/public-keys/:publicKeyId/address', {
|
|
46
|
-
path: { publicKeyId: request.publicKeyId },
|
|
47
|
-
query: request.query ?? {},
|
|
48
|
-
});
|
|
49
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
50
|
-
method: 'GET',
|
|
51
|
-
apiOptions: this.apiOptions,
|
|
52
|
-
});
|
|
53
|
-
return response.json();
|
|
54
|
-
}
|
|
55
|
-
async getSignatureById(request) {
|
|
56
|
-
const path = (0, url_1.buildPathAndQuery)('/public-keys/:publicKeyId/signatures/:signatureId', {
|
|
57
|
-
path: {
|
|
58
|
-
publicKeyId: request.publicKeyId,
|
|
59
|
-
signatureId: request.signatureId,
|
|
60
|
-
},
|
|
61
|
-
query: {},
|
|
62
|
-
});
|
|
63
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
64
|
-
method: 'GET',
|
|
65
|
-
apiOptions: this.apiOptions,
|
|
66
|
-
});
|
|
67
|
-
return response.json();
|
|
68
|
-
}
|
|
69
|
-
async createSignature(request) {
|
|
70
|
-
const path = (0, url_1.buildPathAndQuery)('/public-keys/:publicKeyId/signatures', {
|
|
71
|
-
path: { publicKeyId: request.publicKeyId },
|
|
72
|
-
query: {},
|
|
73
|
-
});
|
|
74
|
-
const response = await (0, fetch_1.userActionFetch)(path, {
|
|
75
|
-
method: 'POST',
|
|
76
|
-
body: request.body,
|
|
77
|
-
apiOptions: this.apiOptions,
|
|
78
|
-
});
|
|
79
|
-
return response.json();
|
|
80
|
-
}
|
|
81
|
-
async startWalletConnectSession(request) {
|
|
82
|
-
const path = (0, url_1.buildPathAndQuery)('/public-keys/:publicKeyId/walletconnect-session', {
|
|
83
|
-
path: { publicKeyId: request.publicKeyId },
|
|
84
|
-
query: {},
|
|
85
|
-
});
|
|
86
|
-
const response = await (0, fetch_1.userActionFetch)(path, {
|
|
87
|
-
method: 'POST',
|
|
88
|
-
body: request.body,
|
|
89
|
-
apiOptions: this.apiOptions,
|
|
90
|
-
});
|
|
91
|
-
return response.json();
|
|
92
|
-
}
|
|
93
|
-
async listTransactions(request) {
|
|
94
|
-
const path = (0, url_1.buildPathAndQuery)('/public-keys/:publicKeyId/transactions', {
|
|
95
|
-
path: { publicKeyId: request.publicKeyId },
|
|
96
|
-
query: request.query ?? {},
|
|
97
|
-
});
|
|
98
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
99
|
-
method: 'GET',
|
|
100
|
-
apiOptions: this.apiOptions,
|
|
101
|
-
});
|
|
102
|
-
return response.json();
|
|
103
|
-
}
|
|
104
|
-
async createTransaction(request) {
|
|
105
|
-
const path = (0, url_1.buildPathAndQuery)('/public-keys/transactions', {
|
|
106
|
-
path: {},
|
|
107
|
-
query: {},
|
|
108
|
-
});
|
|
109
|
-
const response = await (0, fetch_1.userActionFetch)(path, {
|
|
110
|
-
method: 'POST',
|
|
111
|
-
body: request.body,
|
|
112
|
-
apiOptions: this.apiOptions,
|
|
113
|
-
});
|
|
114
|
-
return response.json();
|
|
115
|
-
}
|
|
116
|
-
async getTransactionById(request) {
|
|
117
|
-
const path = (0, url_1.buildPathAndQuery)('/public-keys/transactions/:transactionId', {
|
|
118
|
-
path: { transactionId: request.transactionId },
|
|
119
|
-
query: {},
|
|
120
|
-
});
|
|
121
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
122
|
-
method: 'GET',
|
|
123
|
-
apiOptions: this.apiOptions,
|
|
124
|
-
});
|
|
125
|
-
return response.json();
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
exports.PublicKeysClient = PublicKeysClient;
|
|
@@ -1,19 +0,0 @@
|
|
|
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("./DelegatedPublicKeysClient"), exports);
|
|
18
|
-
__exportStar(require("./PublicKeysClient"), exports);
|
|
19
|
-
__exportStar(require("./types"), exports);
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import * as PublicKeys from '../datamodel/PublicKeys';
|
|
2
|
-
export type GetPublicKeyByIdRequest = {
|
|
3
|
-
publicKeyId: string;
|
|
4
|
-
};
|
|
5
|
-
export type GetPublicKeyByIdResponse = PublicKeys.GetPublicKeyResponse;
|
|
6
|
-
export type CreatePublicKeyRequest = {
|
|
7
|
-
body: PublicKeys.CreatePublicKeyInput;
|
|
8
|
-
};
|
|
9
|
-
export type CreatePublicKeyResponse = PublicKeys.PublicKeyRecord;
|
|
10
|
-
export type ListPublicKeysResponse = {
|
|
11
|
-
items: PublicKeys.GetPublicKeyResponse[];
|
|
12
|
-
};
|
|
13
|
-
export type GetAddressForNetworkRequest = {
|
|
14
|
-
publicKeyId: string;
|
|
15
|
-
query?: {
|
|
16
|
-
network: string;
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
export type GetAddressForNetworkResponse = PublicKeys.GetPublicKeyAddressResponse;
|
|
20
|
-
export type GetSignatureByIdRequest = {
|
|
21
|
-
publicKeyId: string;
|
|
22
|
-
signatureId: string;
|
|
23
|
-
};
|
|
24
|
-
export type GetSignatureByIdResponse = PublicKeys.Signature;
|
|
25
|
-
export type CreateSignatureRequest = {
|
|
26
|
-
publicKeyId: string;
|
|
27
|
-
body: PublicKeys.CreateSignatureInput;
|
|
28
|
-
};
|
|
29
|
-
export type CreateSignatureResponse = PublicKeys.SignatureResponse;
|
|
30
|
-
export type StartWalletConnectSessionRequest = {
|
|
31
|
-
publicKeyId: string;
|
|
32
|
-
body: PublicKeys.StartWalletConnectSessionInput;
|
|
33
|
-
};
|
|
34
|
-
export type StartWalletConnectSessionResponse = PublicKeys.StartWalletConnectSessionOutput;
|
|
35
|
-
export type ListTransactionsRequest = {
|
|
36
|
-
publicKeyId: string;
|
|
37
|
-
query?: {
|
|
38
|
-
assets: string;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
export type ListTransactionsResponse = {
|
|
42
|
-
items: PublicKeys.BroadcastedTransaction[];
|
|
43
|
-
};
|
|
44
|
-
export type CreateTransactionRequest = {
|
|
45
|
-
body: PublicKeys.TransactionPayload;
|
|
46
|
-
};
|
|
47
|
-
export type CreateTransactionResponse = PublicKeys.BroadcastedTransaction;
|
|
48
|
-
export type GetTransactionByIdRequest = {
|
|
49
|
-
transactionId: string;
|
|
50
|
-
};
|
|
51
|
-
export type GetTransactionByIdResponse = PublicKeys.BroadcastedTransaction;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DfnsDelegatedApiClientOptions } from '../../dfnsDelegatedApiClient';
|
|
2
|
-
import * as T from './types';
|
|
3
|
-
export declare class DelegatedSignersClient {
|
|
4
|
-
private apiOptions;
|
|
5
|
-
constructor(apiOptions: DfnsDelegatedApiClientOptions);
|
|
6
|
-
listSigners(): Promise<T.ListSignersResponse>;
|
|
7
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DelegatedSignersClient = void 0;
|
|
4
|
-
const fetch_1 = require("../../utils/fetch");
|
|
5
|
-
const url_1 = require("../../utils/url");
|
|
6
|
-
class DelegatedSignersClient {
|
|
7
|
-
constructor(apiOptions) {
|
|
8
|
-
this.apiOptions = apiOptions;
|
|
9
|
-
}
|
|
10
|
-
async listSigners() {
|
|
11
|
-
const path = (0, url_1.buildPathAndQuery)('/signers', {
|
|
12
|
-
path: {},
|
|
13
|
-
query: {},
|
|
14
|
-
});
|
|
15
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
16
|
-
method: 'GET',
|
|
17
|
-
apiOptions: this.apiOptions,
|
|
18
|
-
});
|
|
19
|
-
return response.json();
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.DelegatedSignersClient = DelegatedSignersClient;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SignersClient = void 0;
|
|
4
|
-
const fetch_1 = require("../../utils/fetch");
|
|
5
|
-
const url_1 = require("../../utils/url");
|
|
6
|
-
class SignersClient {
|
|
7
|
-
constructor(apiOptions) {
|
|
8
|
-
this.apiOptions = apiOptions;
|
|
9
|
-
}
|
|
10
|
-
async listSigners() {
|
|
11
|
-
const path = (0, url_1.buildPathAndQuery)('/signers', {
|
|
12
|
-
path: {},
|
|
13
|
-
query: {},
|
|
14
|
-
});
|
|
15
|
-
const response = await (0, fetch_1.simpleFetch)(path, {
|
|
16
|
-
method: 'GET',
|
|
17
|
-
apiOptions: this.apiOptions,
|
|
18
|
-
});
|
|
19
|
-
return response.json();
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.SignersClient = SignersClient;
|
package/codegen/Signers/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
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("./DelegatedSignersClient"), exports);
|
|
18
|
-
__exportStar(require("./SignersClient"), exports);
|
|
19
|
-
__exportStar(require("./types"), exports);
|
package/codegen/Signers/types.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { SignUserActionChallengeRequest, UserActionChallengeResponse } from '../../baseAuthApi';
|
|
2
|
-
import { DfnsDelegatedApiClientOptions } from '../../dfnsDelegatedApiClient';
|
|
3
|
-
import * as T from './types';
|
|
4
|
-
export declare class DelegatedWalletsClient {
|
|
5
|
-
private apiOptions;
|
|
6
|
-
constructor(apiOptions: DfnsDelegatedApiClientOptions);
|
|
7
|
-
createWalletInit(request: T.CreateWalletRequest): Promise<UserActionChallengeResponse>;
|
|
8
|
-
createWalletComplete(request: T.CreateWalletRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.CreateWalletResponse>;
|
|
9
|
-
getWallet(request: T.GetWalletRequest): Promise<T.GetWalletResponse>;
|
|
10
|
-
getWalletAssets(request: T.GetWalletAssetsRequest): Promise<T.GetWalletAssetsResponse>;
|
|
11
|
-
getWalletNfts(request: T.GetWalletNftsRequest): Promise<T.GetWalletNftsResponse>;
|
|
12
|
-
listWallets(request: T.ListWalletsRequest): Promise<T.ListWalletsResponse>;
|
|
13
|
-
getWalletHistory(request: T.GetWalletHistoryRequest): Promise<T.GetWalletHistoryResponse>;
|
|
14
|
-
transferAssetInit(request: T.TransferAssetRequest): Promise<UserActionChallengeResponse>;
|
|
15
|
-
transferAssetComplete(request: T.TransferAssetRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.TransferAssetResponse>;
|
|
16
|
-
getTransfer(request: T.GetTransferRequest): Promise<T.GetTransferResponse>;
|
|
17
|
-
listTransfers(request: T.ListTransfersRequest): Promise<T.ListTransfersResponse>;
|
|
18
|
-
broadcastTransactionInit(request: T.BroadcastTransactionRequest): Promise<UserActionChallengeResponse>;
|
|
19
|
-
broadcastTransactionComplete(request: T.BroadcastTransactionRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.BroadcastTransactionResponse>;
|
|
20
|
-
getTransaction(request: T.GetTransactionRequest): Promise<T.GetTransactionResponse>;
|
|
21
|
-
listTransactions(request: T.ListTransactionsRequest): Promise<T.ListTransactionsResponse>;
|
|
22
|
-
generateSignatureInit(request: T.GenerateSignatureRequest): Promise<UserActionChallengeResponse>;
|
|
23
|
-
generateSignatureComplete(request: T.GenerateSignatureRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.GenerateSignatureResponse>;
|
|
24
|
-
getSignature(request: T.GetSignatureRequest): Promise<T.GetSignatureResponse>;
|
|
25
|
-
listSignatures(request: T.ListSignaturesRequest): Promise<T.ListSignaturesResponse>;
|
|
26
|
-
importWalletInit(request: T.ImportWalletRequest): Promise<UserActionChallengeResponse>;
|
|
27
|
-
importWalletComplete(request: T.ImportWalletRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.ImportWalletResponse>;
|
|
28
|
-
exportWalletInit(request: T.ExportWalletRequest): Promise<UserActionChallengeResponse>;
|
|
29
|
-
exportWalletComplete(request: T.ExportWalletRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.ExportWalletResponse>;
|
|
30
|
-
delegateWalletInit(request: T.DelegateWalletRequest): Promise<UserActionChallengeResponse>;
|
|
31
|
-
delegateWalletComplete(request: T.DelegateWalletRequest, signedChallenge: SignUserActionChallengeRequest): Promise<T.DelegateWalletResponse>;
|
|
32
|
-
}
|