@dfns/sdk 0.3.1 → 0.3.2
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/codegen/datamodel/Assets/types.d.ts +1 -7
- package/codegen/datamodel/Wallets/types.d.ts +152 -45
- package/codegen/datamodel/Wallets/types.js +34 -4
- package/dfnsApiClient.d.ts +2 -12
- package/dfnsApiClient.js +4 -18
- package/dfnsDelegatedApiClient.d.ts +2 -12
- package/dfnsDelegatedApiClient.js +4 -18
- package/generated/networks/client.d.ts +8 -0
- package/generated/networks/client.js +34 -0
- package/generated/networks/delegatedClient.d.ts +8 -0
- package/generated/networks/delegatedClient.js +34 -0
- package/generated/networks/index.d.ts +3 -0
- package/{codegen/datamodel/Orgs → generated/networks}/index.js +2 -1
- package/generated/networks/types.d.ts +37 -0
- package/generated/permissions/types.d.ts +49 -4
- package/generated/policies/types.d.ts +258 -2
- package/generated/wallets/types.d.ts +36 -31
- package/generated/webhooks/types.d.ts +9 -9
- package/package.json +1 -1
- package/types/networks.d.ts +1 -0
- package/{codegen/datamodel/BlockchainIndexing/index.js → types/networks.js} +1 -1
- 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/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.d.ts +0 -51
- package/codegen/PolicyManagement/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/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/BlockchainIndexing/errors.d.ts +0 -0
- package/codegen/datamodel/BlockchainIndexing/errors.js +0 -1
- package/codegen/datamodel/BlockchainIndexing/index.d.ts +0 -1
- package/codegen/datamodel/BlockchainIndexing/responses.d.ts +0 -6
- package/codegen/datamodel/BlockchainIndexing/responses.js +0 -2
- package/codegen/datamodel/BlockchainIndexing/types.d.ts +0 -0
- package/codegen/datamodel/BlockchainIndexing/types.js +0 -1
- package/codegen/datamodel/Blockchains/errors.d.ts +0 -0
- 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/Orgs/errors.d.ts +0 -0
- package/codegen/datamodel/Orgs/errors.js +0 -1
- package/codegen/datamodel/Orgs/index.d.ts +0 -2
- 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.d.ts +0 -0
- 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.d.ts +0 -0
- 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/Signers/errors.d.ts +0 -0
- 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/Blockchains → generated/networks}/types.js +0 -0
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PolicyObjectFilterKind = exports.PolicyRuleStatus = exports.PolicyControlStatus = exports.Currency = exports.PolicyRuleKind = exports.PolicyControlKind = exports.PolicyStatus = exports.PolicyActivityKind = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* @deprecated use the new policy engine instead
|
|
6
|
-
*/
|
|
7
|
-
var PolicyActivityKind;
|
|
8
|
-
(function (PolicyActivityKind) {
|
|
9
|
-
// FIXME: Missing documentation for CreatingSignature
|
|
10
|
-
PolicyActivityKind["CreatingSignature"] = "CreatingSignature";
|
|
11
|
-
// FIXME: Missing documentation for TransactionInitiation
|
|
12
|
-
PolicyActivityKind["TransactionInitiation"] = "TransactionInitiation";
|
|
13
|
-
// FIXME: Missing documentation for PaymentInitiation
|
|
14
|
-
PolicyActivityKind["PaymentInitiation"] = "PaymentInitiation";
|
|
15
|
-
// FIXME: Missing documentation for WalletsTransferAsset
|
|
16
|
-
PolicyActivityKind["WalletsTransferAsset"] = "WalletsTransferAsset";
|
|
17
|
-
})(PolicyActivityKind || (exports.PolicyActivityKind = PolicyActivityKind = {}));
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated use the new policy engine instead
|
|
20
|
-
*/
|
|
21
|
-
var PolicyStatus;
|
|
22
|
-
(function (PolicyStatus) {
|
|
23
|
-
// FIXME: Missing documentation for Enabled
|
|
24
|
-
PolicyStatus["Enabled"] = "Enabled";
|
|
25
|
-
// FIXME: Missing documentation for Disabled
|
|
26
|
-
PolicyStatus["Disabled"] = "Disabled";
|
|
27
|
-
// FIXME: Missing documentation for Archived
|
|
28
|
-
PolicyStatus["Archived"] = "Archived";
|
|
29
|
-
})(PolicyStatus || (exports.PolicyStatus = PolicyStatus = {}));
|
|
30
|
-
/**
|
|
31
|
-
* @deprecated use the new policy engine instead
|
|
32
|
-
*/
|
|
33
|
-
var PolicyControlKind;
|
|
34
|
-
(function (PolicyControlKind) {
|
|
35
|
-
// FIXME: Missing documentation for NotifyAndAudit
|
|
36
|
-
PolicyControlKind["NotifyAndAudit"] = "NotifyAndAudit";
|
|
37
|
-
// FIXME: Missing documentation for RequestApproval
|
|
38
|
-
PolicyControlKind["RequestApproval"] = "RequestApproval";
|
|
39
|
-
})(PolicyControlKind || (exports.PolicyControlKind = PolicyControlKind = {}));
|
|
40
|
-
/**
|
|
41
|
-
* @deprecated use the new policy engine instead
|
|
42
|
-
*/
|
|
43
|
-
var PolicyRuleKind;
|
|
44
|
-
(function (PolicyRuleKind) {
|
|
45
|
-
// FIXME: Missing documentation for AlwaysActivated
|
|
46
|
-
PolicyRuleKind["AlwaysActivated"] = "AlwaysActivated";
|
|
47
|
-
// FIXME: Missing documentation for PaymentAmountLimit
|
|
48
|
-
PolicyRuleKind["PaymentAmountLimit"] = "PaymentAmountLimit";
|
|
49
|
-
// FIXME: Missing documentation for PaymentAmountOutgoingVelocity
|
|
50
|
-
PolicyRuleKind["PaymentAmountOutgoingVelocity"] = "PaymentAmountOutgoingVelocity";
|
|
51
|
-
// FIXME: Missing documentation for TransferAmountLimit
|
|
52
|
-
PolicyRuleKind["TransferAmountLimit"] = "TransferAmountLimit";
|
|
53
|
-
})(PolicyRuleKind || (exports.PolicyRuleKind = PolicyRuleKind = {}));
|
|
54
|
-
/**
|
|
55
|
-
* @deprecated use the new policy engine instead
|
|
56
|
-
*/
|
|
57
|
-
var Currency;
|
|
58
|
-
(function (Currency) {
|
|
59
|
-
// FIXME: Missing documentation for EUR
|
|
60
|
-
Currency["EUR"] = "EUR";
|
|
61
|
-
// FIXME: Missing documentation for USD
|
|
62
|
-
Currency["USD"] = "USD";
|
|
63
|
-
})(Currency || (exports.Currency = Currency = {}));
|
|
64
|
-
/**
|
|
65
|
-
* @deprecated use the new policy engine instead
|
|
66
|
-
*/
|
|
67
|
-
var PolicyControlStatus;
|
|
68
|
-
(function (PolicyControlStatus) {
|
|
69
|
-
// FIXME: Missing documentation for Enabled
|
|
70
|
-
PolicyControlStatus["Enabled"] = "Enabled";
|
|
71
|
-
// FIXME: Missing documentation for Archived
|
|
72
|
-
PolicyControlStatus["Archived"] = "Archived";
|
|
73
|
-
})(PolicyControlStatus || (exports.PolicyControlStatus = PolicyControlStatus = {}));
|
|
74
|
-
/**
|
|
75
|
-
* @deprecated use the new policy engine instead
|
|
76
|
-
*/
|
|
77
|
-
var PolicyRuleStatus;
|
|
78
|
-
(function (PolicyRuleStatus) {
|
|
79
|
-
// FIXME: Missing documentation for Enabled
|
|
80
|
-
PolicyRuleStatus["Enabled"] = "Enabled";
|
|
81
|
-
// FIXME: Missing documentation for Archived
|
|
82
|
-
PolicyRuleStatus["Archived"] = "Archived";
|
|
83
|
-
})(PolicyRuleStatus || (exports.PolicyRuleStatus = PolicyRuleStatus = {}));
|
|
84
|
-
/**
|
|
85
|
-
* @deprecated use the new policy engine instead
|
|
86
|
-
*/
|
|
87
|
-
var PolicyObjectFilterKind;
|
|
88
|
-
(function (PolicyObjectFilterKind) {
|
|
89
|
-
// FIXME: Missing documentation for AssetAccount
|
|
90
|
-
PolicyObjectFilterKind["AssetAccount"] = "AssetAccount";
|
|
91
|
-
// FIXME: Missing documentation for PublicKey
|
|
92
|
-
PolicyObjectFilterKind["PublicKey"] = "PublicKey";
|
|
93
|
-
// FIXME: Missing documentation for Wallet
|
|
94
|
-
PolicyObjectFilterKind["Wallet"] = "Wallet";
|
|
95
|
-
})(PolicyObjectFilterKind || (exports.PolicyObjectFilterKind = PolicyObjectFilterKind = {}));
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -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("./responses"), exports);
|
|
18
|
-
__exportStar(require("./types"), exports);
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { BadRequestError, ForbiddenError, UnauthorizedError } from '../Foundations';
|
|
2
|
-
import { ClusterList } from './types';
|
|
3
|
-
export type ListSignersSuccess = ClusterList;
|
|
4
|
-
export type ListSignersError = {
|
|
5
|
-
error: ForbiddenError | UnauthorizedError | BadRequestError;
|
|
6
|
-
};
|
|
7
|
-
export type ListSignersResponse = ListSignersSuccess | ListSignersError;
|
|
8
|
-
export type GetLatestClusterHealthSuccess = String;
|
|
9
|
-
export type GetLatestClusterHealthError = {
|
|
10
|
-
error: ForbiddenError;
|
|
11
|
-
};
|
|
12
|
-
export type GetLatestClusterHealthResponse = GetLatestClusterHealthSuccess | GetLatestClusterHealthError;
|
|
13
|
-
export type ListClustersHealthSuccess = String;
|
|
14
|
-
export type ListClustersHealthError = {
|
|
15
|
-
error: ForbiddenError;
|
|
16
|
-
};
|
|
17
|
-
export type ListClustersHealthResponse = ListClustersHealthSuccess | ListClustersHealthError;
|
|
18
|
-
export type SetKeyMaxPresigsSuccess = String;
|
|
19
|
-
export type SetKeyMaxPresigsError = {
|
|
20
|
-
error: ForbiddenError;
|
|
21
|
-
};
|
|
22
|
-
export type SetKeyMaxPresigsResponse = SetKeyMaxPresigsSuccess | SetKeyMaxPresigsError;
|
|
23
|
-
export type TriggerClusterProvisioningSuccess = String;
|
|
24
|
-
export type TriggerClusterProvisioningError = {
|
|
25
|
-
error: ForbiddenError;
|
|
26
|
-
};
|
|
27
|
-
export type TriggerClusterProvisioningResponse = TriggerClusterProvisioningSuccess | TriggerClusterProvisioningError;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { EntityId } from '../Foundations';
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/signers' instead
|
|
4
|
-
*/
|
|
5
|
-
export type Cluster = {
|
|
6
|
-
clusterId: EntityId;
|
|
7
|
-
signers: Signer[];
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/signers' instead
|
|
11
|
-
*/
|
|
12
|
-
export type Signer = {
|
|
13
|
-
signerId: string;
|
|
14
|
-
encryptionKey: string;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* @deprecated import equivalent type from '@dfns/sdk/types/signers' instead
|
|
18
|
-
*/
|
|
19
|
-
export type ClusterList = {
|
|
20
|
-
clusters: Cluster[];
|
|
21
|
-
};
|
|
File without changes
|