@dfns/sdk 0.3.0 → 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 +286 -30
- package/generated/wallets/types.d.ts +94 -33
- package/generated/webhooks/types.d.ts +10 -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,270 +0,0 @@
|
|
|
1
|
-
import { Amount, BlockchainAddress, IntegerPositiveStrict, IsoDatetime } from '../Foundations';
|
|
2
|
-
export type BtcBlock = {
|
|
3
|
-
hash: string;
|
|
4
|
-
number: number;
|
|
5
|
-
timestamp: IsoDatetime;
|
|
6
|
-
transactions: BtcTransaction[];
|
|
7
|
-
};
|
|
8
|
-
export type BtcTransaction = {
|
|
9
|
-
hash: string;
|
|
10
|
-
blockNumber: number;
|
|
11
|
-
size: number;
|
|
12
|
-
weight: number;
|
|
13
|
-
locktime: number;
|
|
14
|
-
vins: BtcTransactionInput[];
|
|
15
|
-
vouts: BtcTransactionOutput[];
|
|
16
|
-
coinbase: boolean;
|
|
17
|
-
fee?: Amount;
|
|
18
|
-
};
|
|
19
|
-
export type BtcTransactionInput = {
|
|
20
|
-
hash: string;
|
|
21
|
-
index: number;
|
|
22
|
-
address?: BlockchainAddress;
|
|
23
|
-
value?: Amount;
|
|
24
|
-
};
|
|
25
|
-
export type BtcTransactionOutput = {
|
|
26
|
-
index: number;
|
|
27
|
-
address?: BlockchainAddress;
|
|
28
|
-
value: Amount;
|
|
29
|
-
};
|
|
30
|
-
export type EvmBlock = {
|
|
31
|
-
hash: string;
|
|
32
|
-
number: number;
|
|
33
|
-
timestamp: IsoDatetime;
|
|
34
|
-
transactions: EvmTransaction[];
|
|
35
|
-
};
|
|
36
|
-
export type EvmTransaction = {
|
|
37
|
-
hash: string;
|
|
38
|
-
blockNumber: number;
|
|
39
|
-
nonce: number;
|
|
40
|
-
from: BlockchainAddress;
|
|
41
|
-
to?: BlockchainAddress;
|
|
42
|
-
value: Amount;
|
|
43
|
-
data?: string;
|
|
44
|
-
signature: string;
|
|
45
|
-
gasLimit: Amount;
|
|
46
|
-
gasPrice?: Amount;
|
|
47
|
-
maxFeePerGas?: Amount;
|
|
48
|
-
maxPriorityFeePerGas?: Amount;
|
|
49
|
-
receipt?: EvmTransactionReceipt;
|
|
50
|
-
logs?: EvmLog[];
|
|
51
|
-
};
|
|
52
|
-
export type EvmTransactionReceipt = {
|
|
53
|
-
gasUsed: Amount;
|
|
54
|
-
effectiveGasPrice: Amount;
|
|
55
|
-
fee: Amount;
|
|
56
|
-
status: TransactionStatus;
|
|
57
|
-
error?: string;
|
|
58
|
-
};
|
|
59
|
-
export type Erc20Log = {
|
|
60
|
-
kind: EvmLogKind.Erc20;
|
|
61
|
-
index: number;
|
|
62
|
-
address: BlockchainAddress;
|
|
63
|
-
from: BlockchainAddress;
|
|
64
|
-
to: BlockchainAddress;
|
|
65
|
-
value: Amount;
|
|
66
|
-
};
|
|
67
|
-
export type Erc721Log = {
|
|
68
|
-
kind: EvmLogKind.Erc721;
|
|
69
|
-
index: number;
|
|
70
|
-
address: BlockchainAddress;
|
|
71
|
-
from: BlockchainAddress;
|
|
72
|
-
to: BlockchainAddress;
|
|
73
|
-
tokenId: string;
|
|
74
|
-
};
|
|
75
|
-
export type EvmUntypedLog = {
|
|
76
|
-
kind: EvmLogKind.Unknown;
|
|
77
|
-
index: number;
|
|
78
|
-
address: BlockchainAddress;
|
|
79
|
-
topics: string[];
|
|
80
|
-
data: string;
|
|
81
|
-
};
|
|
82
|
-
export type EvmFeeEstimates = {
|
|
83
|
-
safeLow: Eip1559Fee;
|
|
84
|
-
standard: Eip1559Fee;
|
|
85
|
-
fast: Eip1559Fee;
|
|
86
|
-
estimatedBaseFee: string;
|
|
87
|
-
blockNumber: IntegerPositiveStrict;
|
|
88
|
-
kind: FeeEstimationKind;
|
|
89
|
-
};
|
|
90
|
-
export type Eip1559Fee = {
|
|
91
|
-
maxPriorityFee: string;
|
|
92
|
-
maxFee: string;
|
|
93
|
-
};
|
|
94
|
-
export type CallViewFunctionInput = {
|
|
95
|
-
data: string;
|
|
96
|
-
contract: string;
|
|
97
|
-
};
|
|
98
|
-
export type CallViewFunctionResult = {
|
|
99
|
-
data: string;
|
|
100
|
-
};
|
|
101
|
-
export type TrxBlock = {
|
|
102
|
-
hash: string;
|
|
103
|
-
number: number;
|
|
104
|
-
timestamp: IsoDatetime;
|
|
105
|
-
transactions: TrxTransaction[];
|
|
106
|
-
};
|
|
107
|
-
export type TrxTransaction = {
|
|
108
|
-
hash: string;
|
|
109
|
-
blockNumber: number;
|
|
110
|
-
feeLimit?: Amount;
|
|
111
|
-
from: BlockchainAddress;
|
|
112
|
-
receipt: TrxReceipt;
|
|
113
|
-
};
|
|
114
|
-
export type TrxTransferTransaction = {
|
|
115
|
-
hash: string;
|
|
116
|
-
blockNumber: number;
|
|
117
|
-
feeLimit?: Amount;
|
|
118
|
-
from: BlockchainAddress;
|
|
119
|
-
receipt: TrxReceipt;
|
|
120
|
-
kind: TrxTransactionKind.TransferContract;
|
|
121
|
-
to: BlockchainAddress;
|
|
122
|
-
amount: Amount;
|
|
123
|
-
};
|
|
124
|
-
export type TrxTransferAssetTransaction = {
|
|
125
|
-
hash: string;
|
|
126
|
-
blockNumber: number;
|
|
127
|
-
feeLimit?: Amount;
|
|
128
|
-
from: BlockchainAddress;
|
|
129
|
-
receipt: TrxReceipt;
|
|
130
|
-
kind: TrxTransactionKind.TransferAssetContract;
|
|
131
|
-
asset: string;
|
|
132
|
-
to: BlockchainAddress;
|
|
133
|
-
amount: Amount;
|
|
134
|
-
};
|
|
135
|
-
export type TrxSmartContractTransaction = {
|
|
136
|
-
hash: string;
|
|
137
|
-
blockNumber: number;
|
|
138
|
-
feeLimit?: Amount;
|
|
139
|
-
from: BlockchainAddress;
|
|
140
|
-
receipt: TrxReceipt;
|
|
141
|
-
kind: TrxTransactionKind.TriggerSmartContract;
|
|
142
|
-
contract: BlockchainAddress;
|
|
143
|
-
data: string;
|
|
144
|
-
logs: EvmLog[];
|
|
145
|
-
};
|
|
146
|
-
export type TrxUntypedTransaction = {
|
|
147
|
-
hash: string;
|
|
148
|
-
blockNumber: number;
|
|
149
|
-
feeLimit?: Amount;
|
|
150
|
-
from: BlockchainAddress;
|
|
151
|
-
receipt: TrxReceipt;
|
|
152
|
-
kind: TrxTransactionKind;
|
|
153
|
-
parameters: Record<string, unknown>;
|
|
154
|
-
};
|
|
155
|
-
export type TrxReceipt = {
|
|
156
|
-
fee?: Amount;
|
|
157
|
-
energyFee?: Amount;
|
|
158
|
-
energyUsage?: Amount;
|
|
159
|
-
netFee?: Amount;
|
|
160
|
-
netUsage?: Amount;
|
|
161
|
-
status: TransactionStatus;
|
|
162
|
-
error?: string;
|
|
163
|
-
};
|
|
164
|
-
export type XrpBlock = {
|
|
165
|
-
hash: string;
|
|
166
|
-
number: number;
|
|
167
|
-
timestamp: IsoDatetime;
|
|
168
|
-
transactions: XrpTransaction[];
|
|
169
|
-
};
|
|
170
|
-
export type XrpTransaction = {
|
|
171
|
-
hash: string;
|
|
172
|
-
blockNumber: number;
|
|
173
|
-
account: BlockchainAddress;
|
|
174
|
-
fee: Amount;
|
|
175
|
-
status: TransactionStatus;
|
|
176
|
-
error?: string;
|
|
177
|
-
};
|
|
178
|
-
export type XrpPaymentTransaction = {
|
|
179
|
-
hash: string;
|
|
180
|
-
blockNumber: number;
|
|
181
|
-
account: BlockchainAddress;
|
|
182
|
-
fee: Amount;
|
|
183
|
-
status: TransactionStatus;
|
|
184
|
-
error?: string;
|
|
185
|
-
kind: XrpTransactionKind.Payment;
|
|
186
|
-
to: BlockchainAddress;
|
|
187
|
-
currency?: string;
|
|
188
|
-
issuer?: BlockchainAddress;
|
|
189
|
-
amount: Amount;
|
|
190
|
-
};
|
|
191
|
-
export type XrpUntypedTransaction = {
|
|
192
|
-
hash: string;
|
|
193
|
-
blockNumber: number;
|
|
194
|
-
account: BlockchainAddress;
|
|
195
|
-
fee: Amount;
|
|
196
|
-
status: TransactionStatus;
|
|
197
|
-
error?: string;
|
|
198
|
-
kind: XrpTransactionKind;
|
|
199
|
-
};
|
|
200
|
-
export type SolBlock = {
|
|
201
|
-
hash: string;
|
|
202
|
-
number: number;
|
|
203
|
-
timestamp: IsoDatetime;
|
|
204
|
-
transactions: SolTransaction[];
|
|
205
|
-
};
|
|
206
|
-
export type SolTransaction = {
|
|
207
|
-
hash: string;
|
|
208
|
-
blockNumber: number;
|
|
209
|
-
version: string;
|
|
210
|
-
from: BlockchainAddress;
|
|
211
|
-
instructions: SolInstruction[];
|
|
212
|
-
fee: Amount;
|
|
213
|
-
status: TransactionStatus;
|
|
214
|
-
error?: string;
|
|
215
|
-
};
|
|
216
|
-
export type SolInstruction = {
|
|
217
|
-
index: string;
|
|
218
|
-
program: BlockchainAddress;
|
|
219
|
-
};
|
|
220
|
-
export type SolSystemTransferInstruction = {
|
|
221
|
-
index: string;
|
|
222
|
-
program: BlockchainAddress;
|
|
223
|
-
kind: SolInstructionKind.SystemTransfer;
|
|
224
|
-
from: BlockchainAddress;
|
|
225
|
-
to: BlockchainAddress;
|
|
226
|
-
value: Amount;
|
|
227
|
-
};
|
|
228
|
-
export type SolTokenTransferInstruction = {
|
|
229
|
-
index: string;
|
|
230
|
-
program: BlockchainAddress;
|
|
231
|
-
kind: SolInstructionKind.TokenTransfer;
|
|
232
|
-
mint: BlockchainAddress;
|
|
233
|
-
from: BlockchainAddress;
|
|
234
|
-
fromTokenAccount: BlockchainAddress;
|
|
235
|
-
to: BlockchainAddress;
|
|
236
|
-
toTokenAccount: BlockchainAddress;
|
|
237
|
-
value: Amount;
|
|
238
|
-
};
|
|
239
|
-
export type SolUntypedInstruction = {
|
|
240
|
-
index: string;
|
|
241
|
-
program: BlockchainAddress;
|
|
242
|
-
accounts: BlockchainAddress[];
|
|
243
|
-
data: string;
|
|
244
|
-
};
|
|
245
|
-
export type EvmLog = Erc20Log | Erc721Log | EvmUntypedLog;
|
|
246
|
-
export declare enum EvmLogKind {
|
|
247
|
-
Unknown = "Unknown",
|
|
248
|
-
Erc20 = "Erc20",
|
|
249
|
-
Erc721 = "Erc721"
|
|
250
|
-
}
|
|
251
|
-
export declare enum TransactionStatus {
|
|
252
|
-
SUCCESS = "SUCCESS",
|
|
253
|
-
FAILED = "FAILED"
|
|
254
|
-
}
|
|
255
|
-
export declare enum TrxTransactionKind {
|
|
256
|
-
TransferContract = "TransferContract",
|
|
257
|
-
TransferAssetContract = "TransferAssetContract",
|
|
258
|
-
TriggerSmartContract = "TriggerSmartContract"
|
|
259
|
-
}
|
|
260
|
-
export declare enum XrpTransactionKind {
|
|
261
|
-
Payment = "Payment"
|
|
262
|
-
}
|
|
263
|
-
export declare enum SolInstructionKind {
|
|
264
|
-
SystemTransfer = "SystemTransfer",
|
|
265
|
-
TokenTransfer = "TokenTransfer"
|
|
266
|
-
}
|
|
267
|
-
export declare enum FeeEstimationKind {
|
|
268
|
-
Eip1559 = "Eip1559",
|
|
269
|
-
EthLegacy = "EthLegacy"
|
|
270
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FeeEstimationKind = exports.SolInstructionKind = exports.XrpTransactionKind = exports.TrxTransactionKind = exports.TransactionStatus = exports.EvmLogKind = void 0;
|
|
4
|
-
// FIXME: Missing documentation for EvmLogKind
|
|
5
|
-
var EvmLogKind;
|
|
6
|
-
(function (EvmLogKind) {
|
|
7
|
-
// FIXME: Missing documentation for Unknown
|
|
8
|
-
EvmLogKind["Unknown"] = "Unknown";
|
|
9
|
-
// FIXME: Missing documentation for Erc20
|
|
10
|
-
EvmLogKind["Erc20"] = "Erc20";
|
|
11
|
-
// FIXME: Missing documentation for Erc721
|
|
12
|
-
EvmLogKind["Erc721"] = "Erc721";
|
|
13
|
-
})(EvmLogKind || (exports.EvmLogKind = EvmLogKind = {}));
|
|
14
|
-
// FIXME: Missing documentation for TransactionStatus
|
|
15
|
-
var TransactionStatus;
|
|
16
|
-
(function (TransactionStatus) {
|
|
17
|
-
// FIXME: Missing documentation for SUCCESS
|
|
18
|
-
TransactionStatus["SUCCESS"] = "SUCCESS";
|
|
19
|
-
// FIXME: Missing documentation for FAILED
|
|
20
|
-
TransactionStatus["FAILED"] = "FAILED";
|
|
21
|
-
})(TransactionStatus || (exports.TransactionStatus = TransactionStatus = {}));
|
|
22
|
-
// FIXME: Missing documentation for TrxTransactionKind
|
|
23
|
-
var TrxTransactionKind;
|
|
24
|
-
(function (TrxTransactionKind) {
|
|
25
|
-
// FIXME: Missing documentation for TransferContract
|
|
26
|
-
TrxTransactionKind["TransferContract"] = "TransferContract";
|
|
27
|
-
// FIXME: Missing documentation for TransferAssetContract
|
|
28
|
-
TrxTransactionKind["TransferAssetContract"] = "TransferAssetContract";
|
|
29
|
-
// FIXME: Missing documentation for TriggerSmartContract
|
|
30
|
-
TrxTransactionKind["TriggerSmartContract"] = "TriggerSmartContract";
|
|
31
|
-
})(TrxTransactionKind || (exports.TrxTransactionKind = TrxTransactionKind = {}));
|
|
32
|
-
// FIXME: Missing documentation for XrpTransactionKind
|
|
33
|
-
var XrpTransactionKind;
|
|
34
|
-
(function (XrpTransactionKind) {
|
|
35
|
-
// FIXME: Missing documentation for Payment
|
|
36
|
-
XrpTransactionKind["Payment"] = "Payment";
|
|
37
|
-
})(XrpTransactionKind || (exports.XrpTransactionKind = XrpTransactionKind = {}));
|
|
38
|
-
// FIXME: Missing documentation for SolInstructionKind
|
|
39
|
-
var SolInstructionKind;
|
|
40
|
-
(function (SolInstructionKind) {
|
|
41
|
-
// FIXME: Missing documentation for SystemTransfer
|
|
42
|
-
SolInstructionKind["SystemTransfer"] = "SystemTransfer";
|
|
43
|
-
// FIXME: Missing documentation for TokenTransfer
|
|
44
|
-
SolInstructionKind["TokenTransfer"] = "TokenTransfer";
|
|
45
|
-
})(SolInstructionKind || (exports.SolInstructionKind = SolInstructionKind = {}));
|
|
46
|
-
// FIXME: Missing documentation for FeeEstimationKind
|
|
47
|
-
var FeeEstimationKind;
|
|
48
|
-
(function (FeeEstimationKind) {
|
|
49
|
-
// FIXME: Missing documentation for Eip1559
|
|
50
|
-
FeeEstimationKind["Eip1559"] = "Eip1559";
|
|
51
|
-
// FIXME: Missing documentation for EthLegacy
|
|
52
|
-
FeeEstimationKind["EthLegacy"] = "EthLegacy";
|
|
53
|
-
})(FeeEstimationKind || (exports.FeeEstimationKind = FeeEstimationKind = {}));
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { BadRequestError, EntityNotFoundError, ForbiddenError, UnauthorizedError } from '../Foundations';
|
|
2
|
-
import { Org, OrgEmployee } from './types';
|
|
3
|
-
export type GetEmployeeByIdSuccess = OrgEmployee;
|
|
4
|
-
export type GetEmployeeByIdError = {
|
|
5
|
-
error: EntityNotFoundError | ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
6
|
-
};
|
|
7
|
-
export type GetEmployeeByIdResponse = GetEmployeeByIdSuccess | GetEmployeeByIdError;
|
|
8
|
-
export type ListEmployeesSuccess = {
|
|
9
|
-
items: OrgEmployee[];
|
|
10
|
-
};
|
|
11
|
-
export type ListEmployeesError = {
|
|
12
|
-
error: ForbiddenError | UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
13
|
-
};
|
|
14
|
-
export type ListEmployeesResponse = ListEmployeesSuccess | ListEmployeesError;
|
|
15
|
-
export type CreateOrgSuccess = Org;
|
|
16
|
-
export type CreateOrgError = {
|
|
17
|
-
error: ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
18
|
-
};
|
|
19
|
-
export type CreateOrgResponse = CreateOrgSuccess | CreateOrgError;
|
|
20
|
-
export type ListOrgsSuccess = {
|
|
21
|
-
items: Org[];
|
|
22
|
-
};
|
|
23
|
-
export type ListOrgsError = {
|
|
24
|
-
error: ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
25
|
-
};
|
|
26
|
-
export type ListOrgsResponse = ListOrgsSuccess | ListOrgsError;
|
|
27
|
-
export type ListPackageVersionsSuccess = {
|
|
28
|
-
items: Org[];
|
|
29
|
-
};
|
|
30
|
-
export type ListPackageVersionsError = {
|
|
31
|
-
error: ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
32
|
-
};
|
|
33
|
-
export type ListPackageVersionsResponse = ListPackageVersionsSuccess | ListPackageVersionsError;
|
|
34
|
-
export type CreateOrgSettingSuccess = Org;
|
|
35
|
-
export type CreateOrgSettingError = {
|
|
36
|
-
error: ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
37
|
-
};
|
|
38
|
-
export type CreateOrgSettingResponse = CreateOrgSettingSuccess | CreateOrgSettingError;
|
|
39
|
-
export type ListOrgSettingsSuccess = {
|
|
40
|
-
items: Org[];
|
|
41
|
-
};
|
|
42
|
-
export type ListOrgSettingsError = {
|
|
43
|
-
error: ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
44
|
-
};
|
|
45
|
-
export type ListOrgSettingsResponse = ListOrgSettingsSuccess | ListOrgSettingsError;
|
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
import { Countries, Email, EntityId, IdentityIssuer, IsoDate, IsoDatetime } from '../Foundations';
|
|
2
|
-
/**
|
|
3
|
-
* `Org` encapsulates information about a Dfns’s customer .
|
|
4
|
-
*/
|
|
5
|
-
export type Org = {
|
|
6
|
-
/**
|
|
7
|
-
* Unique organisation identifier.
|
|
8
|
-
*/
|
|
9
|
-
id: EntityId;
|
|
10
|
-
/**
|
|
11
|
-
* Full legal name of the organisation, including suffixes such as LLC, Limited, etc.
|
|
12
|
-
*/
|
|
13
|
-
legalName: string;
|
|
14
|
-
/**
|
|
15
|
-
* Trading name by which company is known. For example "Panasonic" instead of "Panasonic Holdings Corporation".
|
|
16
|
-
*/
|
|
17
|
-
tradingName?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Country where organisation is head quartered, and default jurisdiction if applies.
|
|
20
|
-
*/
|
|
21
|
-
country: Countries;
|
|
22
|
-
/**
|
|
23
|
-
* Date when organisation was incorporated.
|
|
24
|
-
*/
|
|
25
|
-
dateOfIncorporation: IsoDate;
|
|
26
|
-
/**
|
|
27
|
-
* Date when organisation was onboarded in Dfns.
|
|
28
|
-
*/
|
|
29
|
-
dateOnboarded: IsoDatetime;
|
|
30
|
-
/**
|
|
31
|
-
* Status of the organisation. Indicates whether organisation is currently operational. See `OrgStatus` for details.
|
|
32
|
-
*/
|
|
33
|
-
status: OrgStatus;
|
|
34
|
-
/**
|
|
35
|
-
* List of employee users that are onboarded within organisation
|
|
36
|
-
*/
|
|
37
|
-
employees: OrgEmployee[];
|
|
38
|
-
/**
|
|
39
|
-
* List of groups available within organisation, to which users (i.e. employees) can belong to.
|
|
40
|
-
*/
|
|
41
|
-
groups?: EmployeeGroup[];
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* `OrgEmployee` is a type of `User` that has access to Dfns API. `OrgEmployee` always maps to a given Natural Person (i.e. human). There are other users such as service accounts, that can be mapped to servers and other technical entities.
|
|
45
|
-
*/
|
|
46
|
-
export type OrgEmployee = {
|
|
47
|
-
/**
|
|
48
|
-
* Unique employee identifier.
|
|
49
|
-
*/
|
|
50
|
-
id: EntityId;
|
|
51
|
-
/**
|
|
52
|
-
* Status of the employee. Identifies if given user can perform any actions or not. See `OrgEmployeeStatus` for more details.
|
|
53
|
-
*/
|
|
54
|
-
status: OrgEmployeeStatus;
|
|
55
|
-
/**
|
|
56
|
-
* Indicates organisation to which employee belongs to.
|
|
57
|
-
*/
|
|
58
|
-
orgId: string;
|
|
59
|
-
/**
|
|
60
|
-
* Employee's username. Usually it is an email.
|
|
61
|
-
*/
|
|
62
|
-
username: string;
|
|
63
|
-
/**
|
|
64
|
-
* Employee email.
|
|
65
|
-
*/
|
|
66
|
-
email: Email;
|
|
67
|
-
/**
|
|
68
|
-
* Identity issuer (eg Auth0). Empty if it's the default one (Dfns one). The issuer will be filled for non-Dfns issuers.
|
|
69
|
-
*/
|
|
70
|
-
issuer: IdentityIssuer;
|
|
71
|
-
/**
|
|
72
|
-
* Date when employee was created.
|
|
73
|
-
*/
|
|
74
|
-
dateCreated: IsoDatetime;
|
|
75
|
-
/**
|
|
76
|
-
* Date when employee record was last updated.
|
|
77
|
-
*/
|
|
78
|
-
dateUpdated: IsoDatetime;
|
|
79
|
-
/**
|
|
80
|
-
* Employee's full legal name.
|
|
81
|
-
*/
|
|
82
|
-
fullName: string;
|
|
83
|
-
/**
|
|
84
|
-
* Employee's date of birth.
|
|
85
|
-
*/
|
|
86
|
-
dateOfBirth?: IsoDate;
|
|
87
|
-
/**
|
|
88
|
-
* List of groups to which employee belongs to.
|
|
89
|
-
*/
|
|
90
|
-
groups?: EmployeeGroup[];
|
|
91
|
-
};
|
|
92
|
-
/**
|
|
93
|
-
* Used to group `OrgEmployees` by various criteria. Such as jurisdiction, department, access rights.
|
|
94
|
-
*/
|
|
95
|
-
export type EmployeeGroup = {
|
|
96
|
-
/**
|
|
97
|
-
* Name of the `Group`
|
|
98
|
-
*/
|
|
99
|
-
name: string;
|
|
100
|
-
};
|
|
101
|
-
/**
|
|
102
|
-
* Operation Payload used to create new `OrgEmployee` record.
|
|
103
|
-
*/
|
|
104
|
-
export type CreateOrgEmployeePayload = {
|
|
105
|
-
/**
|
|
106
|
-
* Employee’s username.
|
|
107
|
-
*/
|
|
108
|
-
username: string;
|
|
109
|
-
/**
|
|
110
|
-
* Employee’s email.
|
|
111
|
-
*/
|
|
112
|
-
email: Email;
|
|
113
|
-
/**
|
|
114
|
-
* Identity issuer (eg Auth0). Empty if it's the default one (Dfns one). The issuer will be filled for non-Dfns issuers.
|
|
115
|
-
*/
|
|
116
|
-
issuer?: string;
|
|
117
|
-
/**
|
|
118
|
-
* Employee's full legal name.
|
|
119
|
-
*/
|
|
120
|
-
fullName: string;
|
|
121
|
-
/**
|
|
122
|
-
* Employee's date of birth.
|
|
123
|
-
*/
|
|
124
|
-
dateOfBirth?: IsoDate;
|
|
125
|
-
};
|
|
126
|
-
export type OrgApiKey = {
|
|
127
|
-
apiKeyId: EntityId;
|
|
128
|
-
orgId: EntityId;
|
|
129
|
-
};
|
|
130
|
-
export type CreateEmployee = {
|
|
131
|
-
/**
|
|
132
|
-
* Employee’s username.
|
|
133
|
-
*/
|
|
134
|
-
username: string;
|
|
135
|
-
/**
|
|
136
|
-
* Employee’s email.
|
|
137
|
-
*/
|
|
138
|
-
email: Email;
|
|
139
|
-
/**
|
|
140
|
-
* Identity issuer (eg Auth0). Empty if it's the default one (Dfns one). The issuer will be filled for non-Dfns issuers.
|
|
141
|
-
*/
|
|
142
|
-
issuer?: string;
|
|
143
|
-
/**
|
|
144
|
-
* Employee's full legal name.
|
|
145
|
-
*/
|
|
146
|
-
fullName: string;
|
|
147
|
-
/**
|
|
148
|
-
* Employee's date of birth.
|
|
149
|
-
*/
|
|
150
|
-
dateOfBirth?: IsoDate;
|
|
151
|
-
authVersionToUse?: AuthSystemVersion;
|
|
152
|
-
};
|
|
153
|
-
export type UpdateEmployee = {
|
|
154
|
-
/**
|
|
155
|
-
* Employee's full legal name.
|
|
156
|
-
*
|
|
157
|
-
*/
|
|
158
|
-
fullName?: string;
|
|
159
|
-
/**
|
|
160
|
-
* Employee's date of birth.
|
|
161
|
-
*/
|
|
162
|
-
dateOfBirth?: IsoDate;
|
|
163
|
-
/**
|
|
164
|
-
* Status of the employee. Identifies if given user can perform any actions or not. See `OrgEmployeeStatus` for more details.
|
|
165
|
-
*/
|
|
166
|
-
status?: OrgEmployeeStatus;
|
|
167
|
-
};
|
|
168
|
-
export type UpdateOrg = {
|
|
169
|
-
/**
|
|
170
|
-
* Full legal name of the organisation, including suffixes such as LLC, Limited, etc.
|
|
171
|
-
*/
|
|
172
|
-
legalName?: string;
|
|
173
|
-
/**
|
|
174
|
-
* Trading name by which company is known. For example "Panasonic" instead of "Panasonic Holdings Corporation".
|
|
175
|
-
*/
|
|
176
|
-
tradingName?: string;
|
|
177
|
-
/**
|
|
178
|
-
* Date when organisation was incorporated.
|
|
179
|
-
*/
|
|
180
|
-
dateOfIncorporation?: IsoDate;
|
|
181
|
-
/**
|
|
182
|
-
* Country where organisation is head quartered, and default jurisdiction if applies.
|
|
183
|
-
*/
|
|
184
|
-
country?: Countries;
|
|
185
|
-
/**
|
|
186
|
-
* Date when organisation was onboarded in Dfns.
|
|
187
|
-
*/
|
|
188
|
-
dateOnboarded?: IsoDate;
|
|
189
|
-
};
|
|
190
|
-
export type CreateOrg = {
|
|
191
|
-
/**
|
|
192
|
-
* Full legal name of the organisation, including suffixes such as LLC, Limited, etc.
|
|
193
|
-
*/
|
|
194
|
-
legalName: string;
|
|
195
|
-
/**
|
|
196
|
-
* Trading name by which company is known. For example "Panasonic" instead of "Panasonic Holdings Corporation".
|
|
197
|
-
*/
|
|
198
|
-
tradingName: string;
|
|
199
|
-
/**
|
|
200
|
-
* Date when organisation was incorporated.
|
|
201
|
-
*/
|
|
202
|
-
dateOfIncorporation: IsoDate;
|
|
203
|
-
/**
|
|
204
|
-
* Country where organisation is head quartered, and default jurisdiction if applies.
|
|
205
|
-
*/
|
|
206
|
-
country: Countries;
|
|
207
|
-
/**
|
|
208
|
-
* Date when organisation was onboarded in Dfns.
|
|
209
|
-
*/
|
|
210
|
-
dateOnboarded?: IsoDate;
|
|
211
|
-
/**
|
|
212
|
-
* List of `CreateOrgEmpoyeePayload` for the organisations. These employees will be created for this org.
|
|
213
|
-
*/
|
|
214
|
-
employees?: CreateOrgEmployeePayload[];
|
|
215
|
-
authVersionToUse?: AuthSystemVersion;
|
|
216
|
-
/**
|
|
217
|
-
* Indicates signing cluster identifier.
|
|
218
|
-
*/
|
|
219
|
-
clusterId?: string;
|
|
220
|
-
};
|
|
221
|
-
/**
|
|
222
|
-
* Indicates customer’s status within a lifecycle.
|
|
223
|
-
*/
|
|
224
|
-
export declare enum OrgStatus {
|
|
225
|
-
Archived = "Archived",
|
|
226
|
-
Disabled = "Disabled",
|
|
227
|
-
Enabled = "Enabled",
|
|
228
|
-
Creating = "Creating",
|
|
229
|
-
Approved = "Approved"
|
|
230
|
-
}
|
|
231
|
-
export declare enum OrgEmployeeStatus {
|
|
232
|
-
Enabled = "Enabled",
|
|
233
|
-
Disabled = "Disabled",
|
|
234
|
-
Archived = "Archived"
|
|
235
|
-
}
|
|
236
|
-
export declare enum AuthSystemVersion {
|
|
237
|
-
AuthV1 = "AuthV1",
|
|
238
|
-
AuthV2 = "AuthV2",
|
|
239
|
-
All = "All"
|
|
240
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AuthSystemVersion = exports.OrgEmployeeStatus = exports.OrgStatus = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Indicates customer’s status within a lifecycle.
|
|
6
|
-
*/
|
|
7
|
-
var OrgStatus;
|
|
8
|
-
(function (OrgStatus) {
|
|
9
|
-
//Customer is archived and no longer functional. Customer will have to go through re-onboarding to be enabled again.
|
|
10
|
-
OrgStatus["Archived"] = "Archived";
|
|
11
|
-
//Customer is disabled. Usually temporary action, in case something goes wrong.
|
|
12
|
-
OrgStatus["Disabled"] = "Disabled";
|
|
13
|
-
//Customer is enabled and operational.
|
|
14
|
-
OrgStatus["Enabled"] = "Enabled";
|
|
15
|
-
//Customer is being created at the moment.
|
|
16
|
-
OrgStatus["Creating"] = "Creating";
|
|
17
|
-
//Customer is approved to be created and initialized.
|
|
18
|
-
OrgStatus["Approved"] = "Approved";
|
|
19
|
-
})(OrgStatus || (exports.OrgStatus = OrgStatus = {}));
|
|
20
|
-
// FIXME: Missing documentation for OrgEmployeeStatus
|
|
21
|
-
var OrgEmployeeStatus;
|
|
22
|
-
(function (OrgEmployeeStatus) {
|
|
23
|
-
//OrgEmployee is enabled and active.
|
|
24
|
-
OrgEmployeeStatus["Enabled"] = "Enabled";
|
|
25
|
-
//OrgEmployee is temporary disabled.
|
|
26
|
-
OrgEmployeeStatus["Disabled"] = "Disabled";
|
|
27
|
-
//OrgEmployee is deleted, and archived for audit purposes.
|
|
28
|
-
OrgEmployeeStatus["Archived"] = "Archived";
|
|
29
|
-
})(OrgEmployeeStatus || (exports.OrgEmployeeStatus = OrgEmployeeStatus = {}));
|
|
30
|
-
// FIXME: Missing documentation for AuthSystemVersion
|
|
31
|
-
var AuthSystemVersion;
|
|
32
|
-
(function (AuthSystemVersion) {
|
|
33
|
-
// FIXME: Missing documentation for AuthV1
|
|
34
|
-
AuthSystemVersion["AuthV1"] = "AuthV1";
|
|
35
|
-
// FIXME: Missing documentation for AuthV2
|
|
36
|
-
AuthSystemVersion["AuthV2"] = "AuthV2";
|
|
37
|
-
// FIXME: Missing documentation for All
|
|
38
|
-
AuthSystemVersion["All"] = "All";
|
|
39
|
-
})(AuthSystemVersion || (exports.AuthSystemVersion = AuthSystemVersion = {}));
|
|
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);
|