@dfns/sdk 0.0.0-prealpha.9
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.d.ts +96 -0
- package/baseAuthApi.js +73 -0
- package/codegen/Assets/AssetsClient.d.ts +13 -0
- package/codegen/Assets/AssetsClient.js +94 -0
- package/codegen/Assets/DelegatedAssetsClient.d.ts +16 -0
- package/codegen/Assets/DelegatedAssetsClient.js +125 -0
- package/codegen/Assets/index.d.ts +3 -0
- package/codegen/Assets/index.js +19 -0
- package/codegen/Assets/types.d.ts +37 -0
- package/codegen/Assets/types.js +2 -0
- package/codegen/Auth/AuthClient.d.ts +48 -0
- package/codegen/Auth/AuthClient.js +494 -0
- package/codegen/Auth/DelegatedAuthClient.d.ts +74 -0
- package/codegen/Auth/DelegatedAuthClient.js +882 -0
- package/codegen/Auth/index.d.ts +3 -0
- package/codegen/Auth/index.js +19 -0
- package/codegen/Auth/types.d.ts +169 -0
- package/codegen/Auth/types.js +2 -0
- package/codegen/Blockchains/BlockchainsClient.d.ts +7 -0
- package/codegen/Blockchains/BlockchainsClient.js +23 -0
- package/codegen/Blockchains/DelegatedBlockchainsClient.d.ts +7 -0
- package/codegen/Blockchains/DelegatedBlockchainsClient.js +23 -0
- package/codegen/Blockchains/index.d.ts +3 -0
- package/codegen/Blockchains/index.js +19 -0
- package/codegen/Blockchains/types.d.ts +6 -0
- package/codegen/Blockchains/types.js +2 -0
- package/codegen/Callbacks/CallbacksClient.d.ts +12 -0
- package/codegen/Callbacks/CallbacksClient.js +78 -0
- package/codegen/Callbacks/DelegatedCallbacksClient.d.ts +15 -0
- package/codegen/Callbacks/DelegatedCallbacksClient.js +110 -0
- package/codegen/Callbacks/index.d.ts +3 -0
- package/codegen/Callbacks/index.js +19 -0
- package/codegen/Callbacks/types.d.ts +23 -0
- package/codegen/Callbacks/types.js +2 -0
- package/codegen/Permissions/DelegatedPermissionsClient.d.ts +27 -0
- package/codegen/Permissions/DelegatedPermissionsClient.js +285 -0
- package/codegen/Permissions/PermissionsClient.d.ts +18 -0
- package/codegen/Permissions/PermissionsClient.js +157 -0
- package/codegen/Permissions/index.d.ts +3 -0
- package/codegen/Permissions/index.js +19 -0
- package/codegen/Permissions/types.d.ts +62 -0
- package/codegen/Permissions/types.js +2 -0
- package/codegen/PolicyExecution/DelegatedPolicyExecutionClient.d.ts +11 -0
- package/codegen/PolicyExecution/DelegatedPolicyExecutionClient.js +62 -0
- package/codegen/PolicyExecution/PolicyExecutionClient.d.ts +9 -0
- package/codegen/PolicyExecution/PolicyExecutionClient.js +46 -0
- package/codegen/PolicyExecution/index.d.ts +3 -0
- package/codegen/PolicyExecution/index.js +19 -0
- package/codegen/PolicyExecution/types.d.ts +18 -0
- package/codegen/PolicyExecution/types.js +2 -0
- package/codegen/PolicyManagement/DelegatedPolicyManagementClient.d.ts +25 -0
- package/codegen/PolicyManagement/DelegatedPolicyManagementClient.js +241 -0
- package/codegen/PolicyManagement/PolicyManagementClient.d.ts +18 -0
- package/codegen/PolicyManagement/PolicyManagementClient.js +147 -0
- package/codegen/PolicyManagement/index.d.ts +3 -0
- package/codegen/PolicyManagement/index.js +19 -0
- package/codegen/PolicyManagement/types.d.ts +51 -0
- package/codegen/PolicyManagement/types.js +2 -0
- package/codegen/PublicKeys/DelegatedPublicKeysClient.d.ts +21 -0
- package/codegen/PublicKeys/DelegatedPublicKeysClient.js +191 -0
- package/codegen/PublicKeys/PublicKeysClient.d.ts +16 -0
- package/codegen/PublicKeys/PublicKeysClient.js +130 -0
- package/codegen/PublicKeys/index.d.ts +3 -0
- package/codegen/PublicKeys/index.js +19 -0
- package/codegen/PublicKeys/types.d.ts +51 -0
- package/codegen/PublicKeys/types.js +2 -0
- package/codegen/Wallets/DelegatedWalletsClient.d.ts +26 -0
- package/codegen/Wallets/DelegatedWalletsClient.js +249 -0
- package/codegen/Wallets/WalletsClient.d.ts +21 -0
- package/codegen/Wallets/WalletsClient.js +188 -0
- package/codegen/Wallets/index.d.ts +3 -0
- package/codegen/Wallets/index.js +19 -0
- package/codegen/Wallets/types.d.ts +87 -0
- package/codegen/Wallets/types.js +2 -0
- package/codegen/datamodel/Assets/errors.d.ts +11 -0
- package/codegen/datamodel/Assets/errors.js +17 -0
- package/codegen/datamodel/Assets/index.d.ts +3 -0
- package/codegen/datamodel/Assets/index.js +19 -0
- package/codegen/datamodel/Assets/responses.d.ts +47 -0
- package/codegen/datamodel/Assets/responses.js +2 -0
- package/codegen/datamodel/Assets/types.d.ts +225 -0
- package/codegen/datamodel/Assets/types.js +75 -0
- package/codegen/datamodel/Auth/index.d.ts +2 -0
- package/codegen/datamodel/Auth/index.js +18 -0
- package/codegen/datamodel/Auth/responses.d.ts +348 -0
- package/codegen/datamodel/Auth/responses.js +2 -0
- package/codegen/datamodel/Auth/types.d.ts +610 -0
- package/codegen/datamodel/Auth/types.js +127 -0
- package/codegen/datamodel/Blockchains/index.d.ts +2 -0
- package/codegen/datamodel/Blockchains/index.js +18 -0
- package/codegen/datamodel/Blockchains/responses.d.ts +12 -0
- package/codegen/datamodel/Blockchains/responses.js +2 -0
- package/codegen/datamodel/Blockchains/types.d.ts +269 -0
- package/codegen/datamodel/Blockchains/types.js +53 -0
- package/codegen/datamodel/Callbacks/index.d.ts +2 -0
- package/codegen/datamodel/Callbacks/index.js +18 -0
- package/codegen/datamodel/Callbacks/responses.d.ts +36 -0
- package/codegen/datamodel/Callbacks/responses.js +2 -0
- package/codegen/datamodel/Callbacks/types.d.ts +43 -0
- package/codegen/datamodel/Callbacks/types.js +39 -0
- package/codegen/datamodel/Foundations/errors.d.ts +121 -0
- package/codegen/datamodel/Foundations/errors.js +169 -0
- package/codegen/datamodel/Foundations/index.d.ts +2 -0
- package/codegen/datamodel/Foundations/index.js +18 -0
- package/codegen/datamodel/Foundations/types.d.ts +9756 -0
- package/codegen/datamodel/Foundations/types.js +57753 -0
- package/codegen/datamodel/Permissions/index.d.ts +2 -0
- package/codegen/datamodel/Permissions/index.js +18 -0
- package/codegen/datamodel/Permissions/responses.d.ts +75 -0
- package/codegen/datamodel/Permissions/responses.js +2 -0
- package/codegen/datamodel/Permissions/types.d.ts +93 -0
- package/codegen/datamodel/Permissions/types.js +43 -0
- package/codegen/datamodel/PolicyExecution/errors.d.ts +11 -0
- package/codegen/datamodel/PolicyExecution/errors.js +17 -0
- package/codegen/datamodel/PolicyExecution/index.d.ts +3 -0
- package/codegen/datamodel/PolicyExecution/index.js +19 -0
- package/codegen/datamodel/PolicyExecution/responses.d.ts +19 -0
- package/codegen/datamodel/PolicyExecution/responses.js +2 -0
- package/codegen/datamodel/PolicyExecution/types.d.ts +45 -0
- package/codegen/datamodel/PolicyExecution/types.js +15 -0
- package/codegen/datamodel/PolicyManagement/index.d.ts +2 -0
- package/codegen/datamodel/PolicyManagement/index.js +18 -0
- package/codegen/datamodel/PolicyManagement/responses.d.ts +83 -0
- package/codegen/datamodel/PolicyManagement/responses.js +2 -0
- package/codegen/datamodel/PolicyManagement/types.d.ts +212 -0
- package/codegen/datamodel/PolicyManagement/types.js +77 -0
- package/codegen/datamodel/PublicKeys/index.d.ts +2 -0
- package/codegen/datamodel/PublicKeys/index.js +18 -0
- package/codegen/datamodel/PublicKeys/responses.d.ts +56 -0
- package/codegen/datamodel/PublicKeys/responses.js +2 -0
- package/codegen/datamodel/PublicKeys/types.d.ts +222 -0
- package/codegen/datamodel/PublicKeys/types.js +59 -0
- package/codegen/datamodel/Wallets/index.d.ts +2 -0
- package/codegen/datamodel/Wallets/index.js +18 -0
- package/codegen/datamodel/Wallets/responses.d.ts +77 -0
- package/codegen/datamodel/Wallets/responses.js +2 -0
- package/codegen/datamodel/Wallets/types.d.ts +277 -0
- package/codegen/datamodel/Wallets/types.js +123 -0
- package/dfnsApiClient.d.ts +27 -0
- package/dfnsApiClient.js +45 -0
- package/dfnsAuthenticator.d.ts +17 -0
- package/dfnsAuthenticator.js +29 -0
- package/dfnsDelegatedApiClient.d.ts +24 -0
- package/dfnsDelegatedApiClient.js +41 -0
- package/dfnsError.d.ts +5 -0
- package/dfnsError.js +11 -0
- package/index.d.ts +7 -0
- package/index.js +23 -0
- package/package.json +11 -0
- package/signer.d.ts +42 -0
- package/signer.js +2 -0
- package/store.d.ts +79 -0
- package/store.js +2 -0
- package/utils/base64.d.ts +3 -0
- package/utils/base64.js +20 -0
- package/utils/fetch.d.ts +12 -0
- package/utils/fetch.js +89 -0
- package/utils/nonce.d.ts +1 -0
- package/utils/nonce.js +12 -0
- package/utils/url.d.ts +4 -0
- package/utils/url.js +15 -0
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
import { Amount, AssetSymbol, EntityId, IntegerPositiveStrict, IsoDatetime, Tag, Username } from '../Foundations';
|
|
2
|
+
export type Policy = {
|
|
3
|
+
id: EntityId;
|
|
4
|
+
version: string;
|
|
5
|
+
activityKind: PolicyActivityKind;
|
|
6
|
+
tags?: Tag[];
|
|
7
|
+
dateCreated: IsoDatetime;
|
|
8
|
+
orgId: EntityId;
|
|
9
|
+
description?: string;
|
|
10
|
+
author: Username;
|
|
11
|
+
name?: string;
|
|
12
|
+
status: PolicyStatus;
|
|
13
|
+
controlIds: EntityId[];
|
|
14
|
+
ruleIds: EntityId[];
|
|
15
|
+
filter?: PolicyObjectFilter;
|
|
16
|
+
};
|
|
17
|
+
export type NotifyAndAuditPcConf = {
|
|
18
|
+
kind: PolicyControlKind.NotifyAndAudit;
|
|
19
|
+
usernames?: string[];
|
|
20
|
+
groups?: string[];
|
|
21
|
+
};
|
|
22
|
+
export type RequestApprovalPcConf = {
|
|
23
|
+
kind: PolicyControlKind.RequestApproval;
|
|
24
|
+
approverGroups?: string[];
|
|
25
|
+
approverUsernames?: string[];
|
|
26
|
+
numApprovals: number;
|
|
27
|
+
timeoutInMinutes?: IntegerPositiveStrict;
|
|
28
|
+
};
|
|
29
|
+
export type PolicyRule = {
|
|
30
|
+
id: EntityId;
|
|
31
|
+
version: string;
|
|
32
|
+
kind: PolicyRuleKind;
|
|
33
|
+
tags?: Tag[];
|
|
34
|
+
dateCreated: IsoDatetime;
|
|
35
|
+
orgId: EntityId;
|
|
36
|
+
author: Username;
|
|
37
|
+
description?: string;
|
|
38
|
+
name?: string;
|
|
39
|
+
configuration: PolicyRuleConfiguration;
|
|
40
|
+
status: PolicyRuleStatus;
|
|
41
|
+
};
|
|
42
|
+
export type PolicyControl = {
|
|
43
|
+
id: EntityId;
|
|
44
|
+
version: string;
|
|
45
|
+
kind: PolicyControlKind;
|
|
46
|
+
tags?: Tag[];
|
|
47
|
+
dateCreated: IsoDatetime;
|
|
48
|
+
orgId: EntityId;
|
|
49
|
+
author: Username;
|
|
50
|
+
description?: string;
|
|
51
|
+
name?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Indicates whether control should merge with same one (compared by values).
|
|
54
|
+
* This property should not be set to true, unless outcomes are understood. For example: Let's say we have 3 policies:
|
|
55
|
+
*
|
|
56
|
+
* 1. policy to require approval for payments over €5000
|
|
57
|
+
* 1. policy to require approval for payments done out of office hours
|
|
58
|
+
* 1. policy to require approval for payments done out of Geofence.
|
|
59
|
+
*
|
|
60
|
+
* In this case policies will require 3 approvals combined, which might not be an intent, and only one approval is required.
|
|
61
|
+
*/
|
|
62
|
+
shouldMergeWithSameControl: boolean;
|
|
63
|
+
configuration: PolicyControlConfiguration;
|
|
64
|
+
status: PolicyControlStatus;
|
|
65
|
+
};
|
|
66
|
+
export type CreateAmountLimitPrConf = {
|
|
67
|
+
kind: PolicyRuleKind.PaymentAmountLimit;
|
|
68
|
+
limit: Amount;
|
|
69
|
+
assetSymbol: AssetSymbol;
|
|
70
|
+
shouldIgnoreAssetsWithoutMarketValue: boolean;
|
|
71
|
+
};
|
|
72
|
+
export type UpdateAmountLimitPrConf = {
|
|
73
|
+
limit?: Amount;
|
|
74
|
+
assetSymbol?: AssetSymbol;
|
|
75
|
+
shouldIgnoreAssetsWithoutMarketValue?: boolean;
|
|
76
|
+
};
|
|
77
|
+
export type AmountLimitPrConf = {
|
|
78
|
+
limit: Amount;
|
|
79
|
+
assetSymbol: AssetSymbol;
|
|
80
|
+
shouldIgnoreAssetsWithoutMarketValue: boolean;
|
|
81
|
+
};
|
|
82
|
+
export type CreateRequestApprovalPcConf = {
|
|
83
|
+
kind: PolicyControlKind.RequestApproval;
|
|
84
|
+
approverUsernames?: string[];
|
|
85
|
+
approverGroups?: string[];
|
|
86
|
+
timeoutInMinutes?: IntegerPositiveStrict;
|
|
87
|
+
numApprovals: number;
|
|
88
|
+
};
|
|
89
|
+
export type UpdateRequestApprovalPcConf = {
|
|
90
|
+
approverUsernames?: string[];
|
|
91
|
+
approverGroups?: string[];
|
|
92
|
+
timeoutInMinutes?: number;
|
|
93
|
+
numApprovals?: number;
|
|
94
|
+
};
|
|
95
|
+
export type CreateNotifyAndAuditPcConf = {
|
|
96
|
+
kind: PolicyControlKind.NotifyAndAudit;
|
|
97
|
+
usernames?: string[];
|
|
98
|
+
groups?: string[];
|
|
99
|
+
};
|
|
100
|
+
export type UpdateNotifyAndAuditPcConf = {
|
|
101
|
+
groups?: string[];
|
|
102
|
+
usernames?: string[];
|
|
103
|
+
};
|
|
104
|
+
export type PolicyManagementPreferences = {
|
|
105
|
+
/**
|
|
106
|
+
* Sets default `AssetSymbol` for the policy rules that use it, such as Limit, Velocity, Siphoning, and others.
|
|
107
|
+
*/
|
|
108
|
+
policyRuleAssetSymbol?: boolean;
|
|
109
|
+
};
|
|
110
|
+
export type Create = {};
|
|
111
|
+
export type EmptyConfiguration = {};
|
|
112
|
+
export type CreateAlwaysActivatedPrConf = {
|
|
113
|
+
kind: PolicyRuleKind.AlwaysActivated;
|
|
114
|
+
};
|
|
115
|
+
export type UpdateAlwaysActivatedPrConf = {};
|
|
116
|
+
export type AssetAccountFilter = {
|
|
117
|
+
kind: PolicyObjectFilterKind.AssetAccount;
|
|
118
|
+
assetAccountIds?: EntityId[];
|
|
119
|
+
tags?: Tag[];
|
|
120
|
+
assetSymbols?: string[];
|
|
121
|
+
};
|
|
122
|
+
export type PublicKeyFilter = {
|
|
123
|
+
kind: PolicyObjectFilterKind.PublicKey;
|
|
124
|
+
publicKeyIds?: EntityId[];
|
|
125
|
+
tags?: string[];
|
|
126
|
+
};
|
|
127
|
+
export type CreatePolicyInput = {
|
|
128
|
+
activityKind: PolicyActivityKind;
|
|
129
|
+
description: string;
|
|
130
|
+
name?: string;
|
|
131
|
+
controlIds: EntityId[];
|
|
132
|
+
ruleIds: EntityId[];
|
|
133
|
+
status: PolicyStatus;
|
|
134
|
+
filter?: PolicyObjectFilter;
|
|
135
|
+
isImmutable?: boolean;
|
|
136
|
+
};
|
|
137
|
+
export type UpdatePolicyInput = {
|
|
138
|
+
description?: string;
|
|
139
|
+
controlIds?: EntityId[];
|
|
140
|
+
ruleIds?: EntityId[];
|
|
141
|
+
status?: PolicyStatus;
|
|
142
|
+
filter?: PolicyObjectFilter;
|
|
143
|
+
};
|
|
144
|
+
export type CreatePolicyControlInput = {
|
|
145
|
+
description?: string;
|
|
146
|
+
name?: string;
|
|
147
|
+
configuration: CreatePolicyControlConfiguration;
|
|
148
|
+
isImmutable?: boolean;
|
|
149
|
+
};
|
|
150
|
+
export type UpdatePolicyControlInput = {
|
|
151
|
+
description?: string;
|
|
152
|
+
name?: string;
|
|
153
|
+
configuration?: UpdatePolicyControlConfiguration;
|
|
154
|
+
};
|
|
155
|
+
export type CreatePolicyRuleInput = {
|
|
156
|
+
description?: string;
|
|
157
|
+
name?: string;
|
|
158
|
+
configuration: CreatePolicyRuleConfiguration;
|
|
159
|
+
isImmutable?: boolean;
|
|
160
|
+
};
|
|
161
|
+
export type UpdatePolicyRuleInput = {
|
|
162
|
+
description?: string;
|
|
163
|
+
name?: string;
|
|
164
|
+
configuration: UpdatePolicyRuleConfiguration;
|
|
165
|
+
};
|
|
166
|
+
export type CreatePolicyRuleConfiguration = CreateAmountLimitPrConf | CreateAlwaysActivatedPrConf;
|
|
167
|
+
export type UpdatePolicyRuleConfiguration = UpdateAmountLimitPrConf | UpdateAlwaysActivatedPrConf;
|
|
168
|
+
export type UpdatePolicyControlConfiguration = UpdateRequestApprovalPcConf | UpdateNotifyAndAuditPcConf;
|
|
169
|
+
export type CreatePolicyControlConfiguration = CreateRequestApprovalPcConf | CreateNotifyAndAuditPcConf;
|
|
170
|
+
export type PolicyRuleConfiguration = AmountLimitPrConf | EmptyConfiguration;
|
|
171
|
+
export type PolicyControlConfiguration = NotifyAndAuditPcConf | RequestApprovalPcConf;
|
|
172
|
+
export type PolicyObjectFilter = AssetAccountFilter | PublicKeyFilter;
|
|
173
|
+
export declare enum PolicyActivityKind {
|
|
174
|
+
CreatingSignature = "CreatingSignature",
|
|
175
|
+
TransactionInitiation = "TransactionInitiation",
|
|
176
|
+
PaymentInitiation = "PaymentInitiation",
|
|
177
|
+
WalletTransferAsset = "WalletTransferAsset",
|
|
178
|
+
WalletBroadcastTransaction = "WalletBroadcastTransaction",
|
|
179
|
+
WalletGenerateSignature = "WalletGenerateSignature"
|
|
180
|
+
}
|
|
181
|
+
export declare enum PolicyStatus {
|
|
182
|
+
Enabled = "Enabled",
|
|
183
|
+
Disabled = "Disabled",
|
|
184
|
+
Archived = "Archived"
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* enumm:
|
|
188
|
+
* * NotifyAndAudit
|
|
189
|
+
* * RequestApproval
|
|
190
|
+
*/
|
|
191
|
+
export declare enum PolicyControlKind {
|
|
192
|
+
NotifyAndAudit = "NotifyAndAudit",
|
|
193
|
+
RequestApproval = "RequestApproval"
|
|
194
|
+
}
|
|
195
|
+
export declare enum PolicyRuleKind {
|
|
196
|
+
AlwaysActivated = "AlwaysActivated",
|
|
197
|
+
PaymentAmountLimit = "PaymentAmountLimit",
|
|
198
|
+
TransferAmountLimit = "TransferAmountLimit"
|
|
199
|
+
}
|
|
200
|
+
export declare enum PolicyControlStatus {
|
|
201
|
+
Enabled = "Enabled",
|
|
202
|
+
Archived = "Archived"
|
|
203
|
+
}
|
|
204
|
+
export declare enum PolicyRuleStatus {
|
|
205
|
+
Enabled = "Enabled",
|
|
206
|
+
Archived = "Archived"
|
|
207
|
+
}
|
|
208
|
+
export declare enum PolicyObjectFilterKind {
|
|
209
|
+
AssetAccount = "AssetAccount",
|
|
210
|
+
PublicKey = "PublicKey",
|
|
211
|
+
Wallet = "Wallet"
|
|
212
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PolicyObjectFilterKind = exports.PolicyRuleStatus = exports.PolicyControlStatus = exports.PolicyRuleKind = exports.PolicyControlKind = exports.PolicyStatus = exports.PolicyActivityKind = void 0;
|
|
4
|
+
// FIXME: Missing documentation for PolicyActivityKind
|
|
5
|
+
var PolicyActivityKind;
|
|
6
|
+
(function (PolicyActivityKind) {
|
|
7
|
+
// FIXME: Missing documentation for CreatingSignature
|
|
8
|
+
PolicyActivityKind["CreatingSignature"] = "CreatingSignature";
|
|
9
|
+
// FIXME: Missing documentation for TransactionInitiation
|
|
10
|
+
PolicyActivityKind["TransactionInitiation"] = "TransactionInitiation";
|
|
11
|
+
// FIXME: Missing documentation for PaymentInitiation
|
|
12
|
+
PolicyActivityKind["PaymentInitiation"] = "PaymentInitiation";
|
|
13
|
+
// FIXME: Missing documentation for WalletTransferAsset
|
|
14
|
+
PolicyActivityKind["WalletTransferAsset"] = "WalletTransferAsset";
|
|
15
|
+
// FIXME: Missing documentation for WalletBroadcastTransaction
|
|
16
|
+
PolicyActivityKind["WalletBroadcastTransaction"] = "WalletBroadcastTransaction";
|
|
17
|
+
// FIXME: Missing documentation for WalletGenerateSignature
|
|
18
|
+
PolicyActivityKind["WalletGenerateSignature"] = "WalletGenerateSignature";
|
|
19
|
+
})(PolicyActivityKind = exports.PolicyActivityKind || (exports.PolicyActivityKind = {}));
|
|
20
|
+
// FIXME: Missing documentation for PolicyStatus
|
|
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 || (exports.PolicyStatus = {}));
|
|
30
|
+
/**
|
|
31
|
+
* enumm:
|
|
32
|
+
* * NotifyAndAudit
|
|
33
|
+
* * RequestApproval
|
|
34
|
+
*/
|
|
35
|
+
var PolicyControlKind;
|
|
36
|
+
(function (PolicyControlKind) {
|
|
37
|
+
// FIXME: Missing documentation for NotifyAndAudit
|
|
38
|
+
PolicyControlKind["NotifyAndAudit"] = "NotifyAndAudit";
|
|
39
|
+
// FIXME: Missing documentation for RequestApproval
|
|
40
|
+
PolicyControlKind["RequestApproval"] = "RequestApproval";
|
|
41
|
+
})(PolicyControlKind = exports.PolicyControlKind || (exports.PolicyControlKind = {}));
|
|
42
|
+
// FIXME: Missing documentation for PolicyRuleKind
|
|
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 TransferAmountLimit
|
|
50
|
+
PolicyRuleKind["TransferAmountLimit"] = "TransferAmountLimit";
|
|
51
|
+
})(PolicyRuleKind = exports.PolicyRuleKind || (exports.PolicyRuleKind = {}));
|
|
52
|
+
// FIXME: Missing documentation for PolicyControlStatus
|
|
53
|
+
var PolicyControlStatus;
|
|
54
|
+
(function (PolicyControlStatus) {
|
|
55
|
+
// FIXME: Missing documentation for Enabled
|
|
56
|
+
PolicyControlStatus["Enabled"] = "Enabled";
|
|
57
|
+
// FIXME: Missing documentation for Archived
|
|
58
|
+
PolicyControlStatus["Archived"] = "Archived";
|
|
59
|
+
})(PolicyControlStatus = exports.PolicyControlStatus || (exports.PolicyControlStatus = {}));
|
|
60
|
+
// FIXME: Missing documentation for PolicyRuleStatus
|
|
61
|
+
var PolicyRuleStatus;
|
|
62
|
+
(function (PolicyRuleStatus) {
|
|
63
|
+
// FIXME: Missing documentation for Enabled
|
|
64
|
+
PolicyRuleStatus["Enabled"] = "Enabled";
|
|
65
|
+
// FIXME: Missing documentation for Archived
|
|
66
|
+
PolicyRuleStatus["Archived"] = "Archived";
|
|
67
|
+
})(PolicyRuleStatus = exports.PolicyRuleStatus || (exports.PolicyRuleStatus = {}));
|
|
68
|
+
// FIXME: Missing documentation for PolicyObjectFilterKind
|
|
69
|
+
var PolicyObjectFilterKind;
|
|
70
|
+
(function (PolicyObjectFilterKind) {
|
|
71
|
+
// FIXME: Missing documentation for AssetAccount
|
|
72
|
+
PolicyObjectFilterKind["AssetAccount"] = "AssetAccount";
|
|
73
|
+
// FIXME: Missing documentation for PublicKey
|
|
74
|
+
PolicyObjectFilterKind["PublicKey"] = "PublicKey";
|
|
75
|
+
// FIXME: Missing documentation for Wallet
|
|
76
|
+
PolicyObjectFilterKind["Wallet"] = "Wallet";
|
|
77
|
+
})(PolicyObjectFilterKind = exports.PolicyObjectFilterKind || (exports.PolicyObjectFilterKind = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
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);
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { BadRequestError, EntityNotFoundError, ForbiddenError, PaymentRequiredError, UnauthorizedError } from '../Foundations';
|
|
2
|
+
import { BroadcastedTransaction, GetPublicKeyAddressResponse, GetPublicKeyResponse, PublicKeyRecord, Signature, SignatureResponse, StartWalletConnectSessionOutput } from './types';
|
|
3
|
+
export type GetPublicKeyByIdSuccess = GetPublicKeyResponse;
|
|
4
|
+
export type GetPublicKeyByIdError = {
|
|
5
|
+
error: EntityNotFoundError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
6
|
+
};
|
|
7
|
+
export type GetPublicKeyByIdResponse = GetPublicKeyByIdSuccess | GetPublicKeyByIdError;
|
|
8
|
+
export type CreatePublicKeySuccess = PublicKeyRecord;
|
|
9
|
+
export type CreatePublicKeyError = {
|
|
10
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
11
|
+
};
|
|
12
|
+
export type CreatePublicKeyResponse = CreatePublicKeySuccess | CreatePublicKeyError;
|
|
13
|
+
export type ListPublicKeysSuccess = {
|
|
14
|
+
items: GetPublicKeyResponse[];
|
|
15
|
+
};
|
|
16
|
+
export type ListPublicKeysError = {
|
|
17
|
+
error: EntityNotFoundError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
18
|
+
};
|
|
19
|
+
export type ListPublicKeysResponse = ListPublicKeysSuccess | ListPublicKeysError;
|
|
20
|
+
export type GetAddressForNetworkSuccess = GetPublicKeyAddressResponse;
|
|
21
|
+
export type GetAddressForNetworkError = {
|
|
22
|
+
error: EntityNotFoundError | BadRequestError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
23
|
+
};
|
|
24
|
+
export type GetAddressForNetworkResponse = GetAddressForNetworkSuccess | GetAddressForNetworkError;
|
|
25
|
+
export type GetSignatureByIdSuccess = Signature;
|
|
26
|
+
export type GetSignatureByIdError = {
|
|
27
|
+
error: EntityNotFoundError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
28
|
+
};
|
|
29
|
+
export type GetSignatureByIdResponse = GetSignatureByIdSuccess | GetSignatureByIdError;
|
|
30
|
+
export type CreateSignatureSuccess = SignatureResponse;
|
|
31
|
+
export type CreateSignatureError = {
|
|
32
|
+
error: EntityNotFoundError | PaymentRequiredError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
33
|
+
};
|
|
34
|
+
export type CreateSignatureResponse = CreateSignatureSuccess | CreateSignatureError;
|
|
35
|
+
export type StartWalletConnectSessionSuccess = StartWalletConnectSessionOutput;
|
|
36
|
+
export type StartWalletConnectSessionError = {
|
|
37
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
38
|
+
};
|
|
39
|
+
export type StartWalletConnectSessionResponse = StartWalletConnectSessionSuccess | StartWalletConnectSessionError;
|
|
40
|
+
export type ListTransactionsSuccess = {
|
|
41
|
+
items: BroadcastedTransaction[];
|
|
42
|
+
};
|
|
43
|
+
export type ListTransactionsError = {
|
|
44
|
+
error: EntityNotFoundError | BadRequestError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
45
|
+
};
|
|
46
|
+
export type ListTransactionsResponse = ListTransactionsSuccess | ListTransactionsError;
|
|
47
|
+
export type CreateTransactionSuccess = BroadcastedTransaction;
|
|
48
|
+
export type CreateTransactionError = {
|
|
49
|
+
error: EntityNotFoundError | BadRequestError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
50
|
+
};
|
|
51
|
+
export type CreateTransactionResponse = CreateTransactionSuccess | CreateTransactionError;
|
|
52
|
+
export type GetTransactionByIdSuccess = BroadcastedTransaction;
|
|
53
|
+
export type GetTransactionByIdError = {
|
|
54
|
+
error: EntityNotFoundError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
55
|
+
};
|
|
56
|
+
export type GetTransactionByIdResponse = GetTransactionByIdSuccess | GetTransactionByIdError;
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { Amount, BlockchainAddress, BlockchainNetwork, DocumentSnapshot, EntityId, Initiator, IntegerPositiveStrict, IsoDatetime, PublicKey, Tag } from '../Foundations';
|
|
2
|
+
export type SignatureResponse = {
|
|
3
|
+
r: string;
|
|
4
|
+
s: string;
|
|
5
|
+
recid: number;
|
|
6
|
+
};
|
|
7
|
+
export type PublicKeyRecord = {
|
|
8
|
+
id: EntityId;
|
|
9
|
+
externalId?: string;
|
|
10
|
+
orgId: EntityId;
|
|
11
|
+
publicKey: PublicKey;
|
|
12
|
+
signerIds: string[];
|
|
13
|
+
groupThreshold: number;
|
|
14
|
+
groupSize: number;
|
|
15
|
+
tags?: Tag[];
|
|
16
|
+
isEddsa: boolean;
|
|
17
|
+
};
|
|
18
|
+
export type GetPublicKeyAddressResponse = {
|
|
19
|
+
publicKeyId: string;
|
|
20
|
+
network: string;
|
|
21
|
+
address: BlockchainAddress;
|
|
22
|
+
};
|
|
23
|
+
export type Signature = {
|
|
24
|
+
id: EntityId;
|
|
25
|
+
orgId: EntityId;
|
|
26
|
+
publicKeyId: string;
|
|
27
|
+
hash: string;
|
|
28
|
+
r: string;
|
|
29
|
+
s: string;
|
|
30
|
+
recid: number;
|
|
31
|
+
status: SignatureStatus;
|
|
32
|
+
initiator: Initiator;
|
|
33
|
+
dateCreated: IsoDatetime;
|
|
34
|
+
};
|
|
35
|
+
export type CosmosDenomAmount = {
|
|
36
|
+
denom: string;
|
|
37
|
+
amount: string;
|
|
38
|
+
};
|
|
39
|
+
export type CosmosTimeoutHeight = {
|
|
40
|
+
revisionNumber: string;
|
|
41
|
+
revisionHeight: string;
|
|
42
|
+
};
|
|
43
|
+
export type EvmGenericTx = {
|
|
44
|
+
templateKind: TransactionTemplateKind.EvmGenericTx;
|
|
45
|
+
to: string;
|
|
46
|
+
gasLimit: Amount;
|
|
47
|
+
gasPrice: Amount;
|
|
48
|
+
nonce?: string;
|
|
49
|
+
value?: string;
|
|
50
|
+
data?: string;
|
|
51
|
+
publicKeyId?: string;
|
|
52
|
+
network: BlockchainNetwork;
|
|
53
|
+
/**
|
|
54
|
+
* the maximum amount of gas to be included as a tip to the miner
|
|
55
|
+
*/
|
|
56
|
+
maxPriorityFeePerGas?: Amount;
|
|
57
|
+
/**
|
|
58
|
+
* the maximum amount of gas willing to be paid for the transaction (inclusive of baseFeePerGas and maxPriorityFeePerGas)
|
|
59
|
+
*/
|
|
60
|
+
maxFeePerGas?: Amount;
|
|
61
|
+
typedData?: Eip712TypedData;
|
|
62
|
+
};
|
|
63
|
+
export type CosmosIbcTransferTx = {
|
|
64
|
+
templateKind: TransactionTemplateKind.CosmosIbcTransfer;
|
|
65
|
+
sourcePort: string;
|
|
66
|
+
sourceChannel: string;
|
|
67
|
+
token: CosmosDenomAmount;
|
|
68
|
+
sender: string;
|
|
69
|
+
receiver: string;
|
|
70
|
+
timeoutHeight: CosmosTimeoutHeight;
|
|
71
|
+
timeoutTimestamp: string;
|
|
72
|
+
publicKeyId?: string;
|
|
73
|
+
network: BlockchainNetwork;
|
|
74
|
+
};
|
|
75
|
+
export type Eip712TypedData = {
|
|
76
|
+
types: Record<string, unknown>;
|
|
77
|
+
values: Record<string, unknown>;
|
|
78
|
+
domain?: Eip712TypedDataDomain;
|
|
79
|
+
};
|
|
80
|
+
export type Eip712TypedDataDomain = {
|
|
81
|
+
name?: string;
|
|
82
|
+
chainId?: string;
|
|
83
|
+
version?: string;
|
|
84
|
+
verifyingContract?: string;
|
|
85
|
+
salt?: string;
|
|
86
|
+
};
|
|
87
|
+
export type SolanaTxInstruction = {
|
|
88
|
+
data: string;
|
|
89
|
+
programId: string;
|
|
90
|
+
keys: SolanaTxAccountMeta[];
|
|
91
|
+
};
|
|
92
|
+
export type SolanaTx = {
|
|
93
|
+
feePayer?: string;
|
|
94
|
+
blockhash?: string;
|
|
95
|
+
lastValidBlockHeight?: IntegerPositiveStrict;
|
|
96
|
+
minNonceContextSlot?: IntegerPositiveStrict;
|
|
97
|
+
instructions: SolanaTxInstruction[];
|
|
98
|
+
signatures?: SolanaTxSignature[];
|
|
99
|
+
templateKind: TransactionTemplateKind.SolanaTx;
|
|
100
|
+
};
|
|
101
|
+
export type SolanaTxSignature = {
|
|
102
|
+
signature: string;
|
|
103
|
+
publicKey: string;
|
|
104
|
+
};
|
|
105
|
+
export type SolanaTxAccountMeta = {
|
|
106
|
+
pubkey: string;
|
|
107
|
+
isSigner: boolean;
|
|
108
|
+
isWritable: boolean;
|
|
109
|
+
};
|
|
110
|
+
export type TronTx = {
|
|
111
|
+
visible?: boolean;
|
|
112
|
+
txID?: string;
|
|
113
|
+
contract_address?: string;
|
|
114
|
+
raw_data_hex?: string;
|
|
115
|
+
raw_data: Record<string, unknown>;
|
|
116
|
+
templateKind: TransactionTemplateKind.TronTx;
|
|
117
|
+
};
|
|
118
|
+
export type TezosTx = {
|
|
119
|
+
protocol?: string;
|
|
120
|
+
chain?: string;
|
|
121
|
+
block?: string;
|
|
122
|
+
payload: TezosTxPayload;
|
|
123
|
+
templateKind: TransactionTemplateKind.TezosTx;
|
|
124
|
+
};
|
|
125
|
+
export type TezosTxPayload = {
|
|
126
|
+
branch?: string;
|
|
127
|
+
contents: Record<string, unknown>[];
|
|
128
|
+
};
|
|
129
|
+
export type BroadcastedTransaction = {
|
|
130
|
+
id: EntityId;
|
|
131
|
+
transaction: TransactionPayload;
|
|
132
|
+
snapshot: DocumentSnapshot;
|
|
133
|
+
network: BlockchainNetwork;
|
|
134
|
+
dateCreated: IsoDatetime;
|
|
135
|
+
dateUpdated: IsoDatetime;
|
|
136
|
+
status: TransactionStatus;
|
|
137
|
+
txHash?: string;
|
|
138
|
+
networkResponse?: string;
|
|
139
|
+
dateBroadcasted?: IsoDatetime;
|
|
140
|
+
dateConfirmed?: IsoDatetime;
|
|
141
|
+
initiator: Initiator;
|
|
142
|
+
publicKeyId: string;
|
|
143
|
+
orgId: EntityId;
|
|
144
|
+
fee?: Amount;
|
|
145
|
+
};
|
|
146
|
+
export type GetPublicKeyResponse = {
|
|
147
|
+
id: EntityId;
|
|
148
|
+
externalId?: string;
|
|
149
|
+
publicKey: PublicKey;
|
|
150
|
+
groupThreshold: number;
|
|
151
|
+
groupSize: number;
|
|
152
|
+
tags?: Tag[];
|
|
153
|
+
isEddsa: boolean;
|
|
154
|
+
};
|
|
155
|
+
export type StartWalletConnectSessionOutput = {
|
|
156
|
+
session: WalletConnectSession;
|
|
157
|
+
};
|
|
158
|
+
export type WalletConnectClientMeta = {
|
|
159
|
+
name: string;
|
|
160
|
+
description: string;
|
|
161
|
+
icons: string[];
|
|
162
|
+
};
|
|
163
|
+
export type WalletConnectSession = {
|
|
164
|
+
accounts: string[];
|
|
165
|
+
chainId: IntegerPositiveStrict;
|
|
166
|
+
bridge: string;
|
|
167
|
+
key: string;
|
|
168
|
+
clientId: string;
|
|
169
|
+
clientMeta?: WalletConnectClientMeta;
|
|
170
|
+
peerId: string;
|
|
171
|
+
peerMeta?: WalletConnectClientMeta;
|
|
172
|
+
handshakeId: IntegerPositiveStrict;
|
|
173
|
+
handshakeTopic: string;
|
|
174
|
+
};
|
|
175
|
+
export type CreateSignatureInput = {
|
|
176
|
+
hash: string;
|
|
177
|
+
};
|
|
178
|
+
export type CreatePublicKeyInput = {
|
|
179
|
+
externalId?: string;
|
|
180
|
+
assetAccountId?: EntityId;
|
|
181
|
+
groupSize?: number;
|
|
182
|
+
groupThreshold?: number;
|
|
183
|
+
isEddsa: boolean;
|
|
184
|
+
tags?: Tag[];
|
|
185
|
+
};
|
|
186
|
+
export type CreateWalletTxInput = {
|
|
187
|
+
to: BlockchainAddress;
|
|
188
|
+
amount: Amount;
|
|
189
|
+
asset: string;
|
|
190
|
+
};
|
|
191
|
+
export type StartWalletConnectSessionInput = {
|
|
192
|
+
wcUri: string;
|
|
193
|
+
};
|
|
194
|
+
export type TransactionPayload = EvmGenericTx | SolanaTx;
|
|
195
|
+
export declare enum PublicKeyStatus {
|
|
196
|
+
Active = "Active",
|
|
197
|
+
Disabled = "Disabled",
|
|
198
|
+
Compromised = "Compromised"
|
|
199
|
+
}
|
|
200
|
+
export declare enum SignatureStatus {
|
|
201
|
+
Pending = "Pending",
|
|
202
|
+
Executed = "Executed",
|
|
203
|
+
Rejected = "Rejected",
|
|
204
|
+
Failed = "Failed"
|
|
205
|
+
}
|
|
206
|
+
export declare enum TransactionTemplateKind {
|
|
207
|
+
EvmGenericTx = "EvmGenericTx",
|
|
208
|
+
CosmosIbcTransfer = "CosmosIbcTransfer",
|
|
209
|
+
SolanaTx = "SolanaTx",
|
|
210
|
+
TronTx = "TronTx",
|
|
211
|
+
TezosTx = "TezosTx"
|
|
212
|
+
}
|
|
213
|
+
export declare enum TransactionStatus {
|
|
214
|
+
Initiated = "Initiated",
|
|
215
|
+
PolicyAccepted = "PolicyAccepted",
|
|
216
|
+
PolicyRejected = "PolicyRejected",
|
|
217
|
+
BroadcastPending = "BroadcastPending",
|
|
218
|
+
BroadcastRejected = "BroadcastRejected",
|
|
219
|
+
Broadcasted = "Broadcasted",
|
|
220
|
+
Confirmed = "Confirmed",
|
|
221
|
+
Failed = "Failed"
|
|
222
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TransactionStatus = exports.TransactionTemplateKind = exports.SignatureStatus = exports.PublicKeyStatus = void 0;
|
|
4
|
+
// FIXME: Missing documentation for PublicKeyStatus
|
|
5
|
+
var PublicKeyStatus;
|
|
6
|
+
(function (PublicKeyStatus) {
|
|
7
|
+
// FIXME: Missing documentation for Active
|
|
8
|
+
PublicKeyStatus["Active"] = "Active";
|
|
9
|
+
// FIXME: Missing documentation for Disabled
|
|
10
|
+
PublicKeyStatus["Disabled"] = "Disabled";
|
|
11
|
+
// FIXME: Missing documentation for Compromised
|
|
12
|
+
PublicKeyStatus["Compromised"] = "Compromised";
|
|
13
|
+
})(PublicKeyStatus = exports.PublicKeyStatus || (exports.PublicKeyStatus = {}));
|
|
14
|
+
// FIXME: Missing documentation for SignatureStatus
|
|
15
|
+
var SignatureStatus;
|
|
16
|
+
(function (SignatureStatus) {
|
|
17
|
+
// FIXME: Missing documentation for Pending
|
|
18
|
+
SignatureStatus["Pending"] = "Pending";
|
|
19
|
+
// FIXME: Missing documentation for Executed
|
|
20
|
+
SignatureStatus["Executed"] = "Executed";
|
|
21
|
+
// FIXME: Missing documentation for Rejected
|
|
22
|
+
SignatureStatus["Rejected"] = "Rejected";
|
|
23
|
+
// FIXME: Missing documentation for Failed
|
|
24
|
+
SignatureStatus["Failed"] = "Failed";
|
|
25
|
+
})(SignatureStatus = exports.SignatureStatus || (exports.SignatureStatus = {}));
|
|
26
|
+
// FIXME: Missing documentation for TransactionTemplateKind
|
|
27
|
+
var TransactionTemplateKind;
|
|
28
|
+
(function (TransactionTemplateKind) {
|
|
29
|
+
// FIXME: Missing documentation for EvmGenericTx
|
|
30
|
+
TransactionTemplateKind["EvmGenericTx"] = "EvmGenericTx";
|
|
31
|
+
// FIXME: Missing documentation for CosmosIbcTransfer
|
|
32
|
+
TransactionTemplateKind["CosmosIbcTransfer"] = "CosmosIbcTransfer";
|
|
33
|
+
// FIXME: Missing documentation for SolanaTx
|
|
34
|
+
TransactionTemplateKind["SolanaTx"] = "SolanaTx";
|
|
35
|
+
// FIXME: Missing documentation for TronTx
|
|
36
|
+
TransactionTemplateKind["TronTx"] = "TronTx";
|
|
37
|
+
// FIXME: Missing documentation for TezosTx
|
|
38
|
+
TransactionTemplateKind["TezosTx"] = "TezosTx";
|
|
39
|
+
})(TransactionTemplateKind = exports.TransactionTemplateKind || (exports.TransactionTemplateKind = {}));
|
|
40
|
+
// FIXME: Missing documentation for TransactionStatus
|
|
41
|
+
var TransactionStatus;
|
|
42
|
+
(function (TransactionStatus) {
|
|
43
|
+
// FIXME: Missing documentation for Initiated
|
|
44
|
+
TransactionStatus["Initiated"] = "Initiated";
|
|
45
|
+
// FIXME: Missing documentation for PolicyAccepted
|
|
46
|
+
TransactionStatus["PolicyAccepted"] = "PolicyAccepted";
|
|
47
|
+
// FIXME: Missing documentation for PolicyRejected
|
|
48
|
+
TransactionStatus["PolicyRejected"] = "PolicyRejected";
|
|
49
|
+
// FIXME: Missing documentation for BroadcastPending
|
|
50
|
+
TransactionStatus["BroadcastPending"] = "BroadcastPending";
|
|
51
|
+
// FIXME: Missing documentation for BroadcastRejected
|
|
52
|
+
TransactionStatus["BroadcastRejected"] = "BroadcastRejected";
|
|
53
|
+
// FIXME: Missing documentation for Broadcasted
|
|
54
|
+
TransactionStatus["Broadcasted"] = "Broadcasted";
|
|
55
|
+
// FIXME: Missing documentation for Confirmed
|
|
56
|
+
TransactionStatus["Confirmed"] = "Confirmed";
|
|
57
|
+
// FIXME: Missing documentation for Failed
|
|
58
|
+
TransactionStatus["Failed"] = "Failed";
|
|
59
|
+
})(TransactionStatus = exports.TransactionStatus || (exports.TransactionStatus = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
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);
|