@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,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("./errors"), exports);
18
- __exportStar(require("./responses"), exports);
19
- __exportStar(require("./types"), exports);
@@ -1,19 +0,0 @@
1
- import { BadRequestError, EntityNotFoundError, ForbiddenError, UnauthorizedError } from '../Foundations';
2
- import { PolicyControlExecution } from './types';
3
- export type ListPolicyControlExecutionsSuccess = {
4
- items: PolicyControlExecution[];
5
- };
6
- export type ListPolicyControlExecutionsError = {
7
- error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
8
- };
9
- export type ListPolicyControlExecutionsResponse = ListPolicyControlExecutionsSuccess | ListPolicyControlExecutionsError;
10
- export type GetPolicyControlExecutionByIdSuccess = PolicyControlExecution;
11
- export type GetPolicyControlExecutionByIdError = {
12
- error: EntityNotFoundError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
13
- };
14
- export type GetPolicyControlExecutionByIdResponse = GetPolicyControlExecutionByIdSuccess | GetPolicyControlExecutionByIdError;
15
- export type UpdatePolicyControlExecutionSuccess = PolicyControlExecution;
16
- export type UpdatePolicyControlExecutionError = {
17
- error: EntityNotFoundError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
18
- };
19
- export type UpdatePolicyControlExecutionResponse = UpdatePolicyControlExecutionSuccess | UpdatePolicyControlExecutionError;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,60 +0,0 @@
1
- import { DocumentSnapshot, EntityId, InitiatorKind, IsoDatetime } from '../Foundations';
2
- import { PolicyActivityKind, PolicyControlKind } from '../PolicyManagement';
3
- /**
4
- * @deprecated use the new policy engine instead
5
- */
6
- export type PolicyExecution = {
7
- id: EntityId;
8
- kind: PolicyActivityKind;
9
- status: ExecutionStatus;
10
- orgId: EntityId;
11
- dateCreated: IsoDatetime;
12
- initiatorKind: InitiatorKind;
13
- initiatingEventId: EntityId;
14
- /**
15
- * Applied poliies stored along with PolicyExecution status as-raw-json-string. This ensures that even if somebody tampers with policy, the audit log would have actual-literal representation of what was executed.
16
- *
17
- */
18
- documentedPolicies?: DocumentSnapshot[];
19
- documentedActivity: DocumentSnapshot;
20
- controlExecutions?: PolicyControlExecution[];
21
- policyId: EntityId;
22
- };
23
- /**
24
- * @deprecated use the new policy engine instead
25
- */
26
- export type PolicyControlExecution = {
27
- id: EntityId;
28
- status: ExecutionStatus;
29
- controlId: EntityId;
30
- dateExecuted: IsoDatetime;
31
- dateFullfiled?: IsoDatetime;
32
- policyExecutionId: EntityId;
33
- approvals?: string[];
34
- documentedActivity: DocumentSnapshot;
35
- controlKind: PolicyControlKind;
36
- author: EntityId;
37
- approverUsernames?: string[];
38
- activityKind: PolicyActivityKind;
39
- numApprovals?: number;
40
- activityId: string;
41
- };
42
- /**
43
- * @deprecated use the new policy engine instead
44
- */
45
- export type AppraisableActivity = {};
46
- /**
47
- * @deprecated use the new policy engine instead
48
- */
49
- export type UpdatePolicyControlExecutionInput = {
50
- status: ExecutionStatus;
51
- };
52
- /**
53
- * @deprecated use the new policy engine instead
54
- */
55
- export declare enum ExecutionStatus {
56
- Awaiting = "Awaiting",
57
- Passed = "Passed",
58
- Failed = "Failed",
59
- Timedout = "Timedout"
60
- }
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExecutionStatus = void 0;
4
- /**
5
- * @deprecated use the new policy engine instead
6
- */
7
- var ExecutionStatus;
8
- (function (ExecutionStatus) {
9
- // FIXME: Missing documentation for Awaiting
10
- ExecutionStatus["Awaiting"] = "Awaiting";
11
- // FIXME: Missing documentation for Passed
12
- ExecutionStatus["Passed"] = "Passed";
13
- // FIXME: Missing documentation for Failed
14
- ExecutionStatus["Failed"] = "Failed";
15
- // FIXME: Missing documentation for Timedout
16
- ExecutionStatus["Timedout"] = "Timedout";
17
- })(ExecutionStatus || (exports.ExecutionStatus = ExecutionStatus = {}));
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,83 +0,0 @@
1
- import { BadRequestError, EntityNotFoundError, ForbiddenError, UnauthorizedError } from '../Foundations';
2
- import { Policy, PolicyControl, PolicyRule } from './types';
3
- export type CreatePolicySuccess = Policy;
4
- export type CreatePolicyError = {
5
- error: BadRequestError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
6
- };
7
- export type CreatePolicyResponse = CreatePolicySuccess | CreatePolicyError;
8
- export type UpdatePolicySuccess = Policy;
9
- export type UpdatePolicyError = {
10
- error: BadRequestError | EntityNotFoundError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
11
- };
12
- export type UpdatePolicyResponse = UpdatePolicySuccess | UpdatePolicyError;
13
- export type GetPolicyByIdSuccess = Policy;
14
- export type GetPolicyByIdError = {
15
- error: EntityNotFoundError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
16
- };
17
- export type GetPolicyByIdResponse = GetPolicyByIdSuccess | GetPolicyByIdError;
18
- export type ListPoliciesSuccess = {
19
- items: Policy[];
20
- };
21
- export type ListPoliciesError = {
22
- error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
23
- };
24
- export type ListPoliciesResponse = ListPoliciesSuccess | ListPoliciesError;
25
- export type ArchivePolicySuccess = Policy;
26
- export type ArchivePolicyError = {
27
- error: EntityNotFoundError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
28
- };
29
- export type ArchivePolicyResponse = ArchivePolicySuccess | ArchivePolicyError;
30
- export type CreatePolicyControlSuccess = PolicyControl;
31
- export type CreatePolicyControlError = {
32
- error: BadRequestError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
33
- };
34
- export type CreatePolicyControlResponse = CreatePolicyControlSuccess | CreatePolicyControlError;
35
- export type UpdatePolicyControlSuccess = PolicyControl;
36
- export type UpdatePolicyControlError = {
37
- error: BadRequestError | EntityNotFoundError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
38
- };
39
- export type UpdatePolicyControlResponse = UpdatePolicyControlSuccess | UpdatePolicyControlError;
40
- export type GetPolicyControlByIdSuccess = PolicyControl;
41
- export type GetPolicyControlByIdError = {
42
- error: EntityNotFoundError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
43
- };
44
- export type GetPolicyControlByIdResponse = GetPolicyControlByIdSuccess | GetPolicyControlByIdError;
45
- export type ListPolicyControlsSuccess = {
46
- items: PolicyControl[];
47
- };
48
- export type ListPolicyControlsError = {
49
- error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
50
- };
51
- export type ListPolicyControlsResponse = ListPolicyControlsSuccess | ListPolicyControlsError;
52
- export type ArchivePolicyControlSuccess = PolicyControl;
53
- export type ArchivePolicyControlError = {
54
- error: EntityNotFoundError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
55
- };
56
- export type ArchivePolicyControlResponse = ArchivePolicyControlSuccess | ArchivePolicyControlError;
57
- export type CreatePolicyRuleSuccess = PolicyRule;
58
- export type CreatePolicyRuleError = {
59
- error: BadRequestError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
60
- };
61
- export type CreatePolicyRuleResponse = CreatePolicyRuleSuccess | CreatePolicyRuleError;
62
- export type UpdatePolicyRuleSuccess = PolicyRule;
63
- export type UpdatePolicyRuleError = {
64
- error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
65
- };
66
- export type UpdatePolicyRuleResponse = UpdatePolicyRuleSuccess | UpdatePolicyRuleError;
67
- export type GetPolicyRuleByIdSuccess = PolicyRule;
68
- export type GetPolicyRuleByIdError = {
69
- error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
70
- };
71
- export type GetPolicyRuleByIdResponse = GetPolicyRuleByIdSuccess | GetPolicyRuleByIdError;
72
- export type ListPolicyRulesSuccess = {
73
- items: PolicyRule[];
74
- };
75
- export type ListPolicyRulesError = {
76
- error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
77
- };
78
- export type ListPolicyRulesResponse = ListPolicyRulesSuccess | ListPolicyRulesError;
79
- export type ArchivePolicyRuleSuccess = PolicyRule;
80
- export type ArchivePolicyRuleError = {
81
- error: EntityNotFoundError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
82
- };
83
- export type ArchivePolicyRuleResponse = ArchivePolicyRuleSuccess | ArchivePolicyRuleError;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,391 +0,0 @@
1
- import { Amount, AssetSymbol, EntityId, IntegerPositiveStrict, IsoDatetime, Tag, Username } from '../Foundations';
2
- /**
3
- * @deprecated use the new policy engine instead
4
- */
5
- export type Policy = {
6
- id: EntityId;
7
- version: string;
8
- activityKind: PolicyActivityKind;
9
- tags?: Tag[];
10
- dateCreated: IsoDatetime;
11
- orgId: EntityId;
12
- description?: string;
13
- author: Username;
14
- name?: string;
15
- status: PolicyStatus;
16
- controlIds: EntityId[];
17
- ruleIds: EntityId[];
18
- filter?: PolicyObjectFilter;
19
- };
20
- /**
21
- * @deprecated use the new policy engine instead
22
- */
23
- export type NotifyAndAuditPcConf = {
24
- kind: PolicyControlKind.NotifyAndAudit;
25
- usernames?: string[];
26
- groups?: string[];
27
- };
28
- /**
29
- * @deprecated use the new policy engine instead
30
- */
31
- export type RequestApprovalPcConf = {
32
- kind: PolicyControlKind.RequestApproval;
33
- approverGroups?: string[];
34
- approverUsernames?: string[];
35
- numApprovals: number;
36
- timeoutInMinutes?: IntegerPositiveStrict;
37
- };
38
- /**
39
- * @deprecated use the new policy engine instead
40
- */
41
- export type PolicyRule = {
42
- id: EntityId;
43
- version: string;
44
- kind: PolicyRuleKind;
45
- tags?: Tag[];
46
- dateCreated: IsoDatetime;
47
- orgId: EntityId;
48
- author: Username;
49
- description?: string;
50
- name?: string;
51
- configuration: PolicyRuleConfiguration;
52
- status: PolicyRuleStatus;
53
- };
54
- /**
55
- * @deprecated use the new policy engine instead
56
- */
57
- export type PolicyControl = {
58
- id: EntityId;
59
- version: string;
60
- kind: PolicyControlKind;
61
- tags?: Tag[];
62
- dateCreated: IsoDatetime;
63
- orgId: EntityId;
64
- author: Username;
65
- description?: string;
66
- name?: string;
67
- /**
68
- * Indicates whether control should merge with same one (compared by values).
69
- * This property should not be set to true, unless outcomes are understood. For example: Let's say we have 3 policies:
70
- *
71
- * 1. policy to require approval for payments over €5000
72
- * 1. policy to require approval for payments done out of office hours
73
- * 1. policy to require approval for payments done out of Geofence.
74
- *
75
- * In this case policies will require 3 approvals combined, which might not be an intent, and only one approval is required.
76
- */
77
- shouldMergeWithSameControl: boolean;
78
- configuration: PolicyControlConfiguration;
79
- status: PolicyControlStatus;
80
- };
81
- /**
82
- * @deprecated use the new policy engine instead
83
- */
84
- export type CreateAmountLimitPrConf = {
85
- kind: PolicyRuleKind.PaymentAmountLimit;
86
- limit: Amount;
87
- assetSymbol: AssetSymbol;
88
- shouldIgnoreAssetsWithoutMarketValue: boolean;
89
- };
90
- /**
91
- * @deprecated use the new policy engine instead
92
- */
93
- export type UpdateAmountLimitPrConf = {
94
- limit?: Amount;
95
- assetSymbol?: AssetSymbol;
96
- shouldIgnoreAssetsWithoutMarketValue?: boolean;
97
- };
98
- /**
99
- * @deprecated use the new policy engine instead
100
- */
101
- export type AmountLimitPrConf = {
102
- limit: Amount;
103
- assetSymbol: AssetSymbol;
104
- shouldIgnoreAssetsWithoutMarketValue: boolean;
105
- };
106
- /**
107
- * @deprecated use the new policy engine instead
108
- */
109
- export type CreateTransferLimitPrConf = {
110
- kind: PolicyRuleKind.TransferAmountLimit;
111
- limit: Amount;
112
- currency: Currency;
113
- };
114
- /**
115
- * @deprecated use the new policy engine instead
116
- */
117
- export type UpdateTransferLimitPrConf = {
118
- limit?: Amount;
119
- currency?: Currency;
120
- };
121
- /**
122
- * @deprecated use the new policy engine instead
123
- */
124
- export type TransferLimitPrConf = {
125
- limit: Amount;
126
- currency: Currency;
127
- };
128
- /**
129
- * @deprecated use the new policy engine instead
130
- */
131
- export type CreateOutgoingVelocityPrConf = {
132
- kind: PolicyRuleKind.PaymentAmountOutgoingVelocity;
133
- velocity: Amount;
134
- assetSymbol: AssetSymbol;
135
- intervalInMinutes: number;
136
- shouldIgnoreAssetsWithoutMarketValue: boolean;
137
- };
138
- /**
139
- * @deprecated use the new policy engine instead
140
- */
141
- export type UpdateOutgoingVelocityPrConf = {
142
- velocity?: Amount;
143
- assetSymbol?: AssetSymbol;
144
- intervalInMinutes: number;
145
- shouldIgnoreAssetsWithoutMarketValue?: boolean;
146
- };
147
- /**
148
- * @deprecated use the new policy engine instead
149
- */
150
- export type OutgoingVelocityPrConf = {
151
- velocity: Amount;
152
- assetSymbol: AssetSymbol;
153
- intervalInMinutes: number;
154
- shouldIgnoreAssetsWithoutMarketValue: boolean;
155
- };
156
- /**
157
- * @deprecated use the new policy engine instead
158
- */
159
- export type CreateRequestApprovalPcConf = {
160
- kind: PolicyControlKind.RequestApproval;
161
- approverUsernames?: string[];
162
- approverGroups?: string[];
163
- timeoutInMinutes?: IntegerPositiveStrict;
164
- numApprovals: number;
165
- };
166
- /**
167
- * @deprecated use the new policy engine instead
168
- */
169
- export type UpdateRequestApprovalPcConf = {
170
- approverUsernames?: string[];
171
- approverGroups?: string[];
172
- timeoutInMinutes?: number;
173
- numApprovals?: number;
174
- };
175
- /**
176
- * @deprecated use the new policy engine instead
177
- */
178
- export type CreateNotifyAndAuditPcConf = {
179
- kind: PolicyControlKind.NotifyAndAudit;
180
- usernames?: string[];
181
- groups?: string[];
182
- };
183
- /**
184
- * @deprecated use the new policy engine instead
185
- */
186
- export type UpdateNotifyAndAuditPcConf = {
187
- groups?: string[];
188
- usernames?: string[];
189
- };
190
- /**
191
- * @deprecated use the new policy engine instead
192
- */
193
- export type PolicyManagementPreferences = {
194
- /**
195
- * Sets default `AssetSymbol` for the policy rules that use it, such as Limit, Velocity, Siphoning, and others.
196
- */
197
- policyRuleAssetSymbol?: boolean;
198
- /**
199
- * Sets default interval in minutes for policy rules that use intervals, such as Velocity and Siphoning. \n\nThis setting does not update existing rules. This will only impact rules that are created after this setting is set.
200
- */
201
- policyRuleVelocityIntervalInMinutes: number;
202
- };
203
- /**
204
- * @deprecated use the new policy engine instead
205
- */
206
- export type Create = {};
207
- /**
208
- * @deprecated use the new policy engine instead
209
- */
210
- export type EmptyConfiguration = {};
211
- /**
212
- * @deprecated use the new policy engine instead
213
- */
214
- export type CreateAlwaysActivatedPrConf = {
215
- kind: PolicyRuleKind.AlwaysActivated;
216
- };
217
- /**
218
- * @deprecated use the new policy engine instead
219
- */
220
- export type UpdateAlwaysActivatedPrConf = {};
221
- /**
222
- * @deprecated use the new policy engine instead
223
- */
224
- export type AssetAccountFilter = {
225
- kind: PolicyObjectFilterKind.AssetAccount;
226
- assetAccountIds?: EntityId[];
227
- tags?: Tag[];
228
- assetSymbols?: string[];
229
- };
230
- /**
231
- * @deprecated use the new policy engine instead
232
- */
233
- export type PublicKeyFilter = {
234
- kind: PolicyObjectFilterKind.PublicKey;
235
- publicKeyIds?: EntityId[];
236
- tags?: string[];
237
- };
238
- /**
239
- * @deprecated use the new policy engine instead
240
- */
241
- export type WalletFilter = {
242
- kind: PolicyObjectFilterKind.Wallet;
243
- walletIds?: EntityId[];
244
- };
245
- /**
246
- * @deprecated use the new policy engine instead
247
- */
248
- export type CreatePolicyInput = {
249
- activityKind: PolicyActivityKind;
250
- description: string;
251
- name?: string;
252
- controlIds: EntityId[];
253
- ruleIds: EntityId[];
254
- status: PolicyStatus;
255
- filter?: PolicyObjectFilter;
256
- isImmutable?: boolean;
257
- };
258
- /**
259
- * @deprecated use the new policy engine instead
260
- */
261
- export type UpdatePolicyInput = {
262
- description?: string;
263
- controlIds?: EntityId[];
264
- ruleIds?: EntityId[];
265
- status?: PolicyStatus;
266
- filter?: PolicyObjectFilter;
267
- };
268
- /**
269
- * @deprecated use the new policy engine instead
270
- */
271
- export type CreatePolicyControlInput = {
272
- description?: string;
273
- name?: string;
274
- configuration: CreatePolicyControlConfiguration;
275
- isImmutable?: boolean;
276
- };
277
- /**
278
- * @deprecated use the new policy engine instead
279
- */
280
- export type UpdatePolicyControlInput = {
281
- description?: string;
282
- name?: string;
283
- configuration?: UpdatePolicyControlConfiguration;
284
- };
285
- /**
286
- * @deprecated use the new policy engine instead
287
- */
288
- export type CreatePolicyRuleInput = {
289
- description?: string;
290
- name?: string;
291
- configuration: CreatePolicyRuleConfiguration;
292
- isImmutable?: boolean;
293
- };
294
- /**
295
- * @deprecated use the new policy engine instead
296
- */
297
- export type UpdatePolicyRuleInput = {
298
- description?: string;
299
- name?: string;
300
- configuration: UpdatePolicyRuleConfiguration;
301
- };
302
- /**
303
- * @deprecated use the new policy engine instead
304
- */
305
- export type CreatePolicyRuleConfiguration = CreateAmountLimitPrConf | CreateTransferLimitPrConf | CreateOutgoingVelocityPrConf | CreateAlwaysActivatedPrConf;
306
- /**
307
- * @deprecated use the new policy engine instead
308
- */
309
- export type UpdatePolicyRuleConfiguration = UpdateAmountLimitPrConf | UpdateTransferLimitPrConf | UpdateOutgoingVelocityPrConf | UpdateAlwaysActivatedPrConf;
310
- /**
311
- * @deprecated use the new policy engine instead
312
- */
313
- export type UpdatePolicyControlConfiguration = UpdateRequestApprovalPcConf | UpdateNotifyAndAuditPcConf;
314
- /**
315
- * @deprecated use the new policy engine instead
316
- */
317
- export type CreatePolicyControlConfiguration = CreateRequestApprovalPcConf | CreateNotifyAndAuditPcConf;
318
- /**
319
- * @deprecated use the new policy engine instead
320
- */
321
- export type PolicyRuleConfiguration = AmountLimitPrConf | TransferLimitPrConf | OutgoingVelocityPrConf | EmptyConfiguration;
322
- /**
323
- * @deprecated use the new policy engine instead
324
- */
325
- export type PolicyControlConfiguration = NotifyAndAuditPcConf | RequestApprovalPcConf;
326
- /**
327
- * @deprecated use the new policy engine instead
328
- */
329
- export type PolicyObjectFilter = AssetAccountFilter | PublicKeyFilter | WalletFilter;
330
- /**
331
- * @deprecated use the new policy engine instead
332
- */
333
- export declare enum PolicyActivityKind {
334
- CreatingSignature = "CreatingSignature",
335
- TransactionInitiation = "TransactionInitiation",
336
- PaymentInitiation = "PaymentInitiation",
337
- WalletsTransferAsset = "WalletsTransferAsset"
338
- }
339
- /**
340
- * @deprecated use the new policy engine instead
341
- */
342
- export declare enum PolicyStatus {
343
- Enabled = "Enabled",
344
- Disabled = "Disabled",
345
- Archived = "Archived"
346
- }
347
- /**
348
- * @deprecated use the new policy engine instead
349
- */
350
- export declare enum PolicyControlKind {
351
- NotifyAndAudit = "NotifyAndAudit",
352
- RequestApproval = "RequestApproval"
353
- }
354
- /**
355
- * @deprecated use the new policy engine instead
356
- */
357
- export declare enum PolicyRuleKind {
358
- AlwaysActivated = "AlwaysActivated",
359
- PaymentAmountLimit = "PaymentAmountLimit",
360
- PaymentAmountOutgoingVelocity = "PaymentAmountOutgoingVelocity",
361
- TransferAmountLimit = "TransferAmountLimit"
362
- }
363
- /**
364
- * @deprecated use the new policy engine instead
365
- */
366
- export declare enum Currency {
367
- EUR = "EUR",
368
- USD = "USD"
369
- }
370
- /**
371
- * @deprecated use the new policy engine instead
372
- */
373
- export declare enum PolicyControlStatus {
374
- Enabled = "Enabled",
375
- Archived = "Archived"
376
- }
377
- /**
378
- * @deprecated use the new policy engine instead
379
- */
380
- export declare enum PolicyRuleStatus {
381
- Enabled = "Enabled",
382
- Archived = "Archived"
383
- }
384
- /**
385
- * @deprecated use the new policy engine instead
386
- */
387
- export declare enum PolicyObjectFilterKind {
388
- AssetAccount = "AssetAccount",
389
- PublicKey = "PublicKey",
390
- Wallet = "Wallet"
391
- }