@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.
Files changed (115) hide show
  1. package/codegen/datamodel/Assets/types.d.ts +1 -7
  2. package/codegen/datamodel/Wallets/types.d.ts +152 -45
  3. package/codegen/datamodel/Wallets/types.js +34 -4
  4. package/dfnsApiClient.d.ts +2 -12
  5. package/dfnsApiClient.js +4 -18
  6. package/dfnsDelegatedApiClient.d.ts +2 -12
  7. package/dfnsDelegatedApiClient.js +4 -18
  8. package/generated/networks/client.d.ts +8 -0
  9. package/generated/networks/client.js +34 -0
  10. package/generated/networks/delegatedClient.d.ts +8 -0
  11. package/generated/networks/delegatedClient.js +34 -0
  12. package/generated/networks/index.d.ts +3 -0
  13. package/{codegen/datamodel/Orgs → generated/networks}/index.js +2 -1
  14. package/generated/networks/types.d.ts +37 -0
  15. package/generated/permissions/types.d.ts +49 -4
  16. package/generated/policies/types.d.ts +258 -2
  17. package/generated/wallets/types.d.ts +36 -31
  18. package/generated/webhooks/types.d.ts +9 -9
  19. package/package.json +1 -1
  20. package/types/networks.d.ts +1 -0
  21. package/{codegen/datamodel/BlockchainIndexing/index.js → types/networks.js} +1 -1
  22. package/codegen/Blockchains/BlockchainsClient.d.ts +0 -7
  23. package/codegen/Blockchains/BlockchainsClient.js +0 -23
  24. package/codegen/Blockchains/DelegatedBlockchainsClient.d.ts +0 -7
  25. package/codegen/Blockchains/DelegatedBlockchainsClient.js +0 -23
  26. package/codegen/Blockchains/index.d.ts +0 -3
  27. package/codegen/Blockchains/index.js +0 -19
  28. package/codegen/Blockchains/types.d.ts +0 -6
  29. package/codegen/PolicyExecution/DelegatedPolicyExecutionClient.d.ts +0 -11
  30. package/codegen/PolicyExecution/DelegatedPolicyExecutionClient.js +0 -61
  31. package/codegen/PolicyExecution/PolicyExecutionClient.d.ts +0 -9
  32. package/codegen/PolicyExecution/PolicyExecutionClient.js +0 -45
  33. package/codegen/PolicyExecution/index.d.ts +0 -3
  34. package/codegen/PolicyExecution/index.js +0 -19
  35. package/codegen/PolicyExecution/types.d.ts +0 -18
  36. package/codegen/PolicyExecution/types.js +0 -2
  37. package/codegen/PolicyManagement/DelegatedPolicyManagementClient.d.ts +0 -25
  38. package/codegen/PolicyManagement/DelegatedPolicyManagementClient.js +0 -240
  39. package/codegen/PolicyManagement/PolicyManagementClient.d.ts +0 -18
  40. package/codegen/PolicyManagement/PolicyManagementClient.js +0 -146
  41. package/codegen/PolicyManagement/index.d.ts +0 -3
  42. package/codegen/PolicyManagement/index.js +0 -19
  43. package/codegen/PolicyManagement/types.d.ts +0 -51
  44. package/codegen/PolicyManagement/types.js +0 -2
  45. package/codegen/Signers/DelegatedSignersClient.d.ts +0 -7
  46. package/codegen/Signers/DelegatedSignersClient.js +0 -22
  47. package/codegen/Signers/SignersClient.d.ts +0 -7
  48. package/codegen/Signers/SignersClient.js +0 -22
  49. package/codegen/Signers/index.d.ts +0 -3
  50. package/codegen/Signers/index.js +0 -19
  51. package/codegen/Signers/types.d.ts +0 -2
  52. package/codegen/Signers/types.js +0 -2
  53. package/codegen/datamodel/ApiKeys/errors.d.ts +0 -6
  54. package/codegen/datamodel/ApiKeys/errors.js +0 -15
  55. package/codegen/datamodel/ApiKeys/index.d.ts +0 -3
  56. package/codegen/datamodel/ApiKeys/index.js +0 -19
  57. package/codegen/datamodel/ApiKeys/responses.d.ts +0 -25
  58. package/codegen/datamodel/ApiKeys/responses.js +0 -2
  59. package/codegen/datamodel/ApiKeys/types.d.ts +0 -32
  60. package/codegen/datamodel/ApiKeys/types.js +0 -11
  61. package/codegen/datamodel/BlockchainIndexing/errors.d.ts +0 -0
  62. package/codegen/datamodel/BlockchainIndexing/errors.js +0 -1
  63. package/codegen/datamodel/BlockchainIndexing/index.d.ts +0 -1
  64. package/codegen/datamodel/BlockchainIndexing/responses.d.ts +0 -6
  65. package/codegen/datamodel/BlockchainIndexing/responses.js +0 -2
  66. package/codegen/datamodel/BlockchainIndexing/types.d.ts +0 -0
  67. package/codegen/datamodel/BlockchainIndexing/types.js +0 -1
  68. package/codegen/datamodel/Blockchains/errors.d.ts +0 -0
  69. package/codegen/datamodel/Blockchains/errors.js +0 -1
  70. package/codegen/datamodel/Blockchains/index.d.ts +0 -2
  71. package/codegen/datamodel/Blockchains/index.js +0 -18
  72. package/codegen/datamodel/Blockchains/responses.d.ts +0 -12
  73. package/codegen/datamodel/Blockchains/responses.js +0 -2
  74. package/codegen/datamodel/Blockchains/types.d.ts +0 -270
  75. package/codegen/datamodel/Blockchains/types.js +0 -53
  76. package/codegen/datamodel/Orgs/errors.d.ts +0 -0
  77. package/codegen/datamodel/Orgs/errors.js +0 -1
  78. package/codegen/datamodel/Orgs/index.d.ts +0 -2
  79. package/codegen/datamodel/Orgs/responses.d.ts +0 -45
  80. package/codegen/datamodel/Orgs/responses.js +0 -2
  81. package/codegen/datamodel/Orgs/types.d.ts +0 -240
  82. package/codegen/datamodel/Orgs/types.js +0 -39
  83. package/codegen/datamodel/Permissions/errors.d.ts +0 -0
  84. package/codegen/datamodel/Permissions/errors.js +0 -1
  85. package/codegen/datamodel/Permissions/index.d.ts +0 -2
  86. package/codegen/datamodel/Permissions/index.js +0 -18
  87. package/codegen/datamodel/Permissions/responses.d.ts +0 -75
  88. package/codegen/datamodel/Permissions/responses.js +0 -2
  89. package/codegen/datamodel/Permissions/types.d.ts +0 -93
  90. package/codegen/datamodel/Permissions/types.js +0 -43
  91. package/codegen/datamodel/PolicyExecution/errors.d.ts +0 -11
  92. package/codegen/datamodel/PolicyExecution/errors.js +0 -17
  93. package/codegen/datamodel/PolicyExecution/index.d.ts +0 -3
  94. package/codegen/datamodel/PolicyExecution/index.js +0 -19
  95. package/codegen/datamodel/PolicyExecution/responses.d.ts +0 -19
  96. package/codegen/datamodel/PolicyExecution/responses.js +0 -2
  97. package/codegen/datamodel/PolicyExecution/types.d.ts +0 -60
  98. package/codegen/datamodel/PolicyExecution/types.js +0 -17
  99. package/codegen/datamodel/PolicyManagement/errors.d.ts +0 -0
  100. package/codegen/datamodel/PolicyManagement/errors.js +0 -1
  101. package/codegen/datamodel/PolicyManagement/index.d.ts +0 -2
  102. package/codegen/datamodel/PolicyManagement/index.js +0 -18
  103. package/codegen/datamodel/PolicyManagement/responses.d.ts +0 -83
  104. package/codegen/datamodel/PolicyManagement/responses.js +0 -2
  105. package/codegen/datamodel/PolicyManagement/types.d.ts +0 -391
  106. package/codegen/datamodel/PolicyManagement/types.js +0 -95
  107. package/codegen/datamodel/Signers/errors.d.ts +0 -0
  108. package/codegen/datamodel/Signers/errors.js +0 -1
  109. package/codegen/datamodel/Signers/index.d.ts +0 -2
  110. package/codegen/datamodel/Signers/index.js +0 -18
  111. package/codegen/datamodel/Signers/responses.d.ts +0 -27
  112. package/codegen/datamodel/Signers/responses.js +0 -2
  113. package/codegen/datamodel/Signers/types.d.ts +0 -21
  114. package/codegen/datamodel/Signers/types.js +0 -2
  115. /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,2 +0,0 @@
1
- export * from './responses';
2
- export * from './types';
@@ -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,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });