@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,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CallbackSubscriptionStatus = exports.CallbackEventStatus = exports.CallbackEventKind = void 0;
|
|
4
|
-
// FIXME: Missing documentation for CallbackEventKind
|
|
5
|
-
var CallbackEventKind;
|
|
6
|
-
(function (CallbackEventKind) {
|
|
7
|
-
// FIXME: Missing documentation for PaymentInitiated
|
|
8
|
-
CallbackEventKind["PaymentInitiated"] = "PaymentInitiated";
|
|
9
|
-
// FIXME: Missing documentation for PaymentExecuted
|
|
10
|
-
CallbackEventKind["PaymentExecuted"] = "PaymentExecuted";
|
|
11
|
-
// FIXME: Missing documentation for PaymentConfirmed
|
|
12
|
-
CallbackEventKind["PaymentConfirmed"] = "PaymentConfirmed";
|
|
13
|
-
// FIXME: Missing documentation for PaymentReceived
|
|
14
|
-
CallbackEventKind["PaymentReceived"] = "PaymentReceived";
|
|
15
|
-
// FIXME: Missing documentation for TransactionBroadcasted
|
|
16
|
-
CallbackEventKind["TransactionBroadcasted"] = "TransactionBroadcasted";
|
|
17
|
-
// FIXME: Missing documentation for WalletCreated
|
|
18
|
-
CallbackEventKind["WalletCreated"] = "WalletCreated";
|
|
19
|
-
// FIXME: Missing documentation for PolicyActivated
|
|
20
|
-
CallbackEventKind["PolicyActivated"] = "PolicyActivated";
|
|
21
|
-
})(CallbackEventKind || (exports.CallbackEventKind = CallbackEventKind = {}));
|
|
22
|
-
// FIXME: Missing documentation for CallbackEventStatus
|
|
23
|
-
var CallbackEventStatus;
|
|
24
|
-
(function (CallbackEventStatus) {
|
|
25
|
-
// FIXME: Missing documentation for Sent
|
|
26
|
-
CallbackEventStatus["Sent"] = "Sent";
|
|
27
|
-
// FIXME: Missing documentation for Failed
|
|
28
|
-
CallbackEventStatus["Failed"] = "Failed";
|
|
29
|
-
})(CallbackEventStatus || (exports.CallbackEventStatus = CallbackEventStatus = {}));
|
|
30
|
-
// FIXME: Missing documentation for CallbackSubscriptionStatus
|
|
31
|
-
var CallbackSubscriptionStatus;
|
|
32
|
-
(function (CallbackSubscriptionStatus) {
|
|
33
|
-
// FIXME: Missing documentation for Enabled
|
|
34
|
-
CallbackSubscriptionStatus["Enabled"] = "Enabled";
|
|
35
|
-
// FIXME: Missing documentation for Disabled
|
|
36
|
-
CallbackSubscriptionStatus["Disabled"] = "Disabled";
|
|
37
|
-
// FIXME: Missing documentation for Archived
|
|
38
|
-
CallbackSubscriptionStatus["Archived"] = "Archived";
|
|
39
|
-
})(CallbackSubscriptionStatus || (exports.CallbackSubscriptionStatus = CallbackSubscriptionStatus = {}));
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
export declare class DfnsError extends Error {
|
|
2
|
-
name: string;
|
|
3
|
-
errorName: string;
|
|
4
|
-
httpStatus: number;
|
|
5
|
-
shouldTriggerInvestigation: boolean;
|
|
6
|
-
serviceName: string;
|
|
7
|
-
causes?: string[];
|
|
8
|
-
isDfnsError: boolean;
|
|
9
|
-
constructor(message: string, serviceName: string, causes?: string[], shouldTriggerInvestigation?: boolean);
|
|
10
|
-
toErrorObject(): {
|
|
11
|
-
name: string;
|
|
12
|
-
errorName: string;
|
|
13
|
-
serviceName: string;
|
|
14
|
-
message: string;
|
|
15
|
-
causes: string[] | undefined;
|
|
16
|
-
shouldTriggerInvestigation: boolean;
|
|
17
|
-
httpStatus: number;
|
|
18
|
-
stackTrace: string;
|
|
19
|
-
};
|
|
20
|
-
toString(): string;
|
|
21
|
-
}
|
|
22
|
-
export declare class ServiceUnavailableError extends DfnsError {
|
|
23
|
-
name: string;
|
|
24
|
-
serviceName: string;
|
|
25
|
-
message: string;
|
|
26
|
-
causes?: string[];
|
|
27
|
-
shouldTriggerInvestigaton: boolean;
|
|
28
|
-
isDfnsError: boolean;
|
|
29
|
-
httpStatus: number;
|
|
30
|
-
errorName: string;
|
|
31
|
-
}
|
|
32
|
-
export declare class NotImplementedError extends DfnsError {
|
|
33
|
-
name: string;
|
|
34
|
-
serviceName: string;
|
|
35
|
-
message: string;
|
|
36
|
-
causes?: string[];
|
|
37
|
-
shouldTriggerInvestigaton: boolean;
|
|
38
|
-
isDfnsError: boolean;
|
|
39
|
-
httpStatus: number;
|
|
40
|
-
errorName: string;
|
|
41
|
-
}
|
|
42
|
-
export declare class InternalServerError extends DfnsError {
|
|
43
|
-
name: string;
|
|
44
|
-
serviceName: string;
|
|
45
|
-
message: string;
|
|
46
|
-
causes?: string[];
|
|
47
|
-
shouldTriggerInvestigaton: boolean;
|
|
48
|
-
isDfnsError: boolean;
|
|
49
|
-
httpStatus: number;
|
|
50
|
-
errorName: string;
|
|
51
|
-
}
|
|
52
|
-
export declare class UnprocessableContentError extends DfnsError {
|
|
53
|
-
name: string;
|
|
54
|
-
serviceName: string;
|
|
55
|
-
message: string;
|
|
56
|
-
causes?: string[];
|
|
57
|
-
shouldTriggerInvestigaton: boolean;
|
|
58
|
-
isDfnsError: boolean;
|
|
59
|
-
httpStatus: number;
|
|
60
|
-
errorName: string;
|
|
61
|
-
}
|
|
62
|
-
export declare class EntityExpiredError extends DfnsError {
|
|
63
|
-
name: string;
|
|
64
|
-
serviceName: string;
|
|
65
|
-
message: string;
|
|
66
|
-
causes?: string[];
|
|
67
|
-
shouldTriggerInvestigaton: boolean;
|
|
68
|
-
isDfnsError: boolean;
|
|
69
|
-
httpStatus: number;
|
|
70
|
-
errorName: string;
|
|
71
|
-
}
|
|
72
|
-
export declare class DuplicateError extends DfnsError {
|
|
73
|
-
name: string;
|
|
74
|
-
serviceName: string;
|
|
75
|
-
message: string;
|
|
76
|
-
causes?: string[];
|
|
77
|
-
shouldTriggerInvestigaton: boolean;
|
|
78
|
-
isDfnsError: boolean;
|
|
79
|
-
httpStatus: number;
|
|
80
|
-
errorName: string;
|
|
81
|
-
}
|
|
82
|
-
export declare class EntityNotFoundError extends DfnsError {
|
|
83
|
-
name: string;
|
|
84
|
-
serviceName: string;
|
|
85
|
-
message: string;
|
|
86
|
-
causes?: string[];
|
|
87
|
-
shouldTriggerInvestigaton: boolean;
|
|
88
|
-
isDfnsError: boolean;
|
|
89
|
-
httpStatus: number;
|
|
90
|
-
errorName: string;
|
|
91
|
-
}
|
|
92
|
-
export declare class ForbiddenError extends DfnsError {
|
|
93
|
-
name: string;
|
|
94
|
-
serviceName: string;
|
|
95
|
-
message: string;
|
|
96
|
-
causes?: string[];
|
|
97
|
-
shouldTriggerInvestigaton: boolean;
|
|
98
|
-
isDfnsError: boolean;
|
|
99
|
-
httpStatus: number;
|
|
100
|
-
errorName: string;
|
|
101
|
-
}
|
|
102
|
-
export declare class PaymentRequiredError extends DfnsError {
|
|
103
|
-
name: string;
|
|
104
|
-
serviceName: string;
|
|
105
|
-
message: string;
|
|
106
|
-
causes?: string[];
|
|
107
|
-
shouldTriggerInvestigaton: boolean;
|
|
108
|
-
isDfnsError: boolean;
|
|
109
|
-
httpStatus: number;
|
|
110
|
-
errorName: string;
|
|
111
|
-
}
|
|
112
|
-
export declare class UnauthorizedError extends DfnsError {
|
|
113
|
-
name: string;
|
|
114
|
-
serviceName: string;
|
|
115
|
-
message: string;
|
|
116
|
-
causes?: string[];
|
|
117
|
-
shouldTriggerInvestigaton: boolean;
|
|
118
|
-
isDfnsError: boolean;
|
|
119
|
-
httpStatus: number;
|
|
120
|
-
errorName: string;
|
|
121
|
-
}
|
|
122
|
-
export declare class BadRequestError extends DfnsError {
|
|
123
|
-
name: string;
|
|
124
|
-
serviceName: string;
|
|
125
|
-
message: string;
|
|
126
|
-
causes?: string[];
|
|
127
|
-
shouldTriggerInvestigaton: boolean;
|
|
128
|
-
isDfnsError: boolean;
|
|
129
|
-
httpStatus: number;
|
|
130
|
-
errorName: string;
|
|
131
|
-
}
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BadRequestError = exports.UnauthorizedError = exports.PaymentRequiredError = exports.ForbiddenError = exports.EntityNotFoundError = exports.DuplicateError = exports.EntityExpiredError = exports.UnprocessableContentError = exports.InternalServerError = exports.NotImplementedError = exports.ServiceUnavailableError = exports.DfnsError = void 0;
|
|
4
|
-
class DfnsError extends Error {
|
|
5
|
-
constructor(message, serviceName, causes = [], shouldTriggerInvestigation = true) {
|
|
6
|
-
super(message);
|
|
7
|
-
this.name = 'DfnsError';
|
|
8
|
-
this.errorName = '';
|
|
9
|
-
this.httpStatus = 500;
|
|
10
|
-
this.shouldTriggerInvestigation = false;
|
|
11
|
-
this.serviceName = 'SERVICE_NOT_DEFINED';
|
|
12
|
-
this.causes = [];
|
|
13
|
-
this.isDfnsError = true;
|
|
14
|
-
this.serviceName = serviceName || process.env.SERVICE_NAME;
|
|
15
|
-
this.shouldTriggerInvestigation = shouldTriggerInvestigation;
|
|
16
|
-
this.causes = causes;
|
|
17
|
-
if (typeof serviceName !== 'string') {
|
|
18
|
-
this.serviceName = 'SERVICE_NOT_DEFINED';
|
|
19
|
-
this.shouldTriggerInvestigation = true;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
toErrorObject() {
|
|
23
|
-
const stackTrace = this.stack || '';
|
|
24
|
-
return {
|
|
25
|
-
name: this.name,
|
|
26
|
-
errorName: this.errorName,
|
|
27
|
-
serviceName: this.serviceName,
|
|
28
|
-
message: this.message,
|
|
29
|
-
causes: this.causes,
|
|
30
|
-
shouldTriggerInvestigation: this.shouldTriggerInvestigation,
|
|
31
|
-
httpStatus: this.httpStatus,
|
|
32
|
-
stackTrace,
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
toString() {
|
|
36
|
-
return JSON.stringify(this.toErrorObject());
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
exports.DfnsError = DfnsError;
|
|
40
|
-
class ServiceUnavailableError extends DfnsError {
|
|
41
|
-
constructor() {
|
|
42
|
-
super(...arguments);
|
|
43
|
-
this.name = 'ServiceUnavailableError';
|
|
44
|
-
// FIXME: Missing documentation for isDfnsError
|
|
45
|
-
this.isDfnsError = true;
|
|
46
|
-
// FIXME: Missing documentation for httpStatus
|
|
47
|
-
this.httpStatus = 503;
|
|
48
|
-
// FIXME: Missing documentation for errorName
|
|
49
|
-
this.errorName = 'Service Unavailable';
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
exports.ServiceUnavailableError = ServiceUnavailableError;
|
|
53
|
-
class NotImplementedError extends DfnsError {
|
|
54
|
-
constructor() {
|
|
55
|
-
super(...arguments);
|
|
56
|
-
this.name = 'NotImplementedError';
|
|
57
|
-
// FIXME: Missing documentation for isDfnsError
|
|
58
|
-
this.isDfnsError = true;
|
|
59
|
-
// FIXME: Missing documentation for httpStatus
|
|
60
|
-
this.httpStatus = 501;
|
|
61
|
-
// FIXME: Missing documentation for errorName
|
|
62
|
-
this.errorName = 'Not Implemented';
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
exports.NotImplementedError = NotImplementedError;
|
|
66
|
-
class InternalServerError extends DfnsError {
|
|
67
|
-
constructor() {
|
|
68
|
-
super(...arguments);
|
|
69
|
-
this.name = 'InternalServerError';
|
|
70
|
-
// FIXME: Missing documentation for isDfnsError
|
|
71
|
-
this.isDfnsError = true;
|
|
72
|
-
// FIXME: Missing documentation for httpStatus
|
|
73
|
-
this.httpStatus = 500;
|
|
74
|
-
// FIXME: Missing documentation for errorName
|
|
75
|
-
this.errorName = 'Internal Server Error';
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
exports.InternalServerError = InternalServerError;
|
|
79
|
-
class UnprocessableContentError extends DfnsError {
|
|
80
|
-
constructor() {
|
|
81
|
-
super(...arguments);
|
|
82
|
-
this.name = 'UnprocessableContentError';
|
|
83
|
-
// FIXME: Missing documentation for isDfnsError
|
|
84
|
-
this.isDfnsError = true;
|
|
85
|
-
// FIXME: Missing documentation for httpStatus
|
|
86
|
-
this.httpStatus = 422;
|
|
87
|
-
// FIXME: Missing documentation for errorName
|
|
88
|
-
this.errorName = 'Unprocessable Content';
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
exports.UnprocessableContentError = UnprocessableContentError;
|
|
92
|
-
class EntityExpiredError extends DfnsError {
|
|
93
|
-
constructor() {
|
|
94
|
-
super(...arguments);
|
|
95
|
-
this.name = 'EntityExpiredError';
|
|
96
|
-
// FIXME: Missing documentation for isDfnsError
|
|
97
|
-
this.isDfnsError = true;
|
|
98
|
-
// FIXME: Missing documentation for httpStatus
|
|
99
|
-
this.httpStatus = 410;
|
|
100
|
-
// FIXME: Missing documentation for errorName
|
|
101
|
-
this.errorName = 'Resource Expired';
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
exports.EntityExpiredError = EntityExpiredError;
|
|
105
|
-
class DuplicateError extends DfnsError {
|
|
106
|
-
constructor() {
|
|
107
|
-
super(...arguments);
|
|
108
|
-
this.name = 'DuplicateError';
|
|
109
|
-
// FIXME: Missing documentation for isDfnsError
|
|
110
|
-
this.isDfnsError = true;
|
|
111
|
-
// FIXME: Missing documentation for httpStatus
|
|
112
|
-
this.httpStatus = 409;
|
|
113
|
-
// FIXME: Missing documentation for errorName
|
|
114
|
-
this.errorName = 'Duplicate';
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
exports.DuplicateError = DuplicateError;
|
|
118
|
-
class EntityNotFoundError extends DfnsError {
|
|
119
|
-
constructor() {
|
|
120
|
-
super(...arguments);
|
|
121
|
-
this.name = 'EntityNotFoundError';
|
|
122
|
-
// FIXME: Missing documentation for isDfnsError
|
|
123
|
-
this.isDfnsError = true;
|
|
124
|
-
// FIXME: Missing documentation for httpStatus
|
|
125
|
-
this.httpStatus = 404;
|
|
126
|
-
// FIXME: Missing documentation for errorName
|
|
127
|
-
this.errorName = 'Not Found';
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
exports.EntityNotFoundError = EntityNotFoundError;
|
|
131
|
-
class ForbiddenError extends DfnsError {
|
|
132
|
-
constructor() {
|
|
133
|
-
super(...arguments);
|
|
134
|
-
this.name = 'ForbiddenError';
|
|
135
|
-
// FIXME: Missing documentation for isDfnsError
|
|
136
|
-
this.isDfnsError = true;
|
|
137
|
-
// FIXME: Missing documentation for httpStatus
|
|
138
|
-
this.httpStatus = 403;
|
|
139
|
-
// FIXME: Missing documentation for errorName
|
|
140
|
-
this.errorName = 'Access To Resource Not Allowed';
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
exports.ForbiddenError = ForbiddenError;
|
|
144
|
-
class PaymentRequiredError extends DfnsError {
|
|
145
|
-
constructor() {
|
|
146
|
-
super(...arguments);
|
|
147
|
-
this.name = 'PaymentRequiredError';
|
|
148
|
-
// FIXME: Missing documentation for isDfnsError
|
|
149
|
-
this.isDfnsError = true;
|
|
150
|
-
// FIXME: Missing documentation for httpStatus
|
|
151
|
-
this.httpStatus = 402;
|
|
152
|
-
// FIXME: Missing documentation for errorName
|
|
153
|
-
this.errorName = 'Payment Required';
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
exports.PaymentRequiredError = PaymentRequiredError;
|
|
157
|
-
class UnauthorizedError extends DfnsError {
|
|
158
|
-
constructor() {
|
|
159
|
-
super(...arguments);
|
|
160
|
-
this.name = 'UnauthorizedError';
|
|
161
|
-
// FIXME: Missing documentation for isDfnsError
|
|
162
|
-
this.isDfnsError = true;
|
|
163
|
-
// FIXME: Missing documentation for httpStatus
|
|
164
|
-
this.httpStatus = 401;
|
|
165
|
-
// FIXME: Missing documentation for errorName
|
|
166
|
-
this.errorName = 'Unauthorized';
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
exports.UnauthorizedError = UnauthorizedError;
|
|
170
|
-
class BadRequestError extends DfnsError {
|
|
171
|
-
constructor() {
|
|
172
|
-
super(...arguments);
|
|
173
|
-
this.name = 'BadRequestError';
|
|
174
|
-
// FIXME: Missing documentation for isDfnsError
|
|
175
|
-
this.isDfnsError = true;
|
|
176
|
-
// FIXME: Missing documentation for httpStatus
|
|
177
|
-
this.httpStatus = 400;
|
|
178
|
-
// FIXME: Missing documentation for errorName
|
|
179
|
-
this.errorName = 'Bad Request';
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
exports.BadRequestError = BadRequestError;
|
|
@@ -1,18 +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("./errors"), exports);
|
|
18
|
-
__exportStar(require("./types"), exports);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|