@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,225 @@
|
|
|
1
|
+
import { Amount, AssetSymbol, DfnsCertificate, EntityId, Initiator, IntegerPositiveStrict, IsoDatetime, PublicKey, Tag } from '../Foundations';
|
|
2
|
+
export type PaymentInitiation = {
|
|
3
|
+
id: EntityId;
|
|
4
|
+
paymentId: EntityId;
|
|
5
|
+
externalId?: EntityId;
|
|
6
|
+
status: PaymentInitiationStatus;
|
|
7
|
+
orgId?: EntityId;
|
|
8
|
+
initiator: Initiator;
|
|
9
|
+
assetSymbol: AssetSymbol;
|
|
10
|
+
amount: Amount;
|
|
11
|
+
sender: DfnsAssetAccount;
|
|
12
|
+
receiver: PaymentInstrument;
|
|
13
|
+
dateInitiated: IsoDatetime;
|
|
14
|
+
/**
|
|
15
|
+
* In case payment initiation is rejected by the system, this field will contain information about it.
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
rejectionReason?: string;
|
|
19
|
+
};
|
|
20
|
+
export type BlockchainWalletAddress = {
|
|
21
|
+
kind: PaymentInstrumentKind.BlockchainWalletAddress;
|
|
22
|
+
address: string;
|
|
23
|
+
};
|
|
24
|
+
export type DfnsAssetAccount = {
|
|
25
|
+
kind: PaymentInstrumentKind.DfnsAssetAccount;
|
|
26
|
+
id: EntityId;
|
|
27
|
+
};
|
|
28
|
+
export type AssetAccount = {
|
|
29
|
+
/**
|
|
30
|
+
* Multiple tags can be attached to an entity to categorise or otherwise mark it. For example tags could indicate risk (High, Medium, Low), departments (Trading, Sales, IT), purpose (Treasury, Hot, Deposits), and jurisdictions (US, EU, DE).
|
|
31
|
+
*
|
|
32
|
+
* Multiple tags can be attached to same entity.
|
|
33
|
+
*/
|
|
34
|
+
tags?: Tag[];
|
|
35
|
+
/**
|
|
36
|
+
* Field can be used if entity is created in external (customer’s) system first. This way the external id can be attached to identify entity from Dfns’s data store.
|
|
37
|
+
*/
|
|
38
|
+
externalId?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Indicates id of the Organisation, such as usually a customer, or sub-devision, sub-tenant, and others.
|
|
41
|
+
*/
|
|
42
|
+
orgId: EntityId;
|
|
43
|
+
id: EntityId;
|
|
44
|
+
/**
|
|
45
|
+
* Indicates whether account is ready to be used.
|
|
46
|
+
*/
|
|
47
|
+
status: AssetAccountStatus;
|
|
48
|
+
/**
|
|
49
|
+
* Blockchain address for a chosen Blockchain network.
|
|
50
|
+
*/
|
|
51
|
+
address?: string;
|
|
52
|
+
/**
|
|
53
|
+
* `PublicKey` which is used by `AssetAccount`. Usually this is used to derive addresses on a given blockchain network.
|
|
54
|
+
*
|
|
55
|
+
* Alternatively can be used to verify signatures produced by the platform.
|
|
56
|
+
*/
|
|
57
|
+
publicKey?: string;
|
|
58
|
+
publicKeyId?: EntityId;
|
|
59
|
+
/**
|
|
60
|
+
* # [ENUM]
|
|
61
|
+
*
|
|
62
|
+
* Asset symbol indicating which asset this account is managing. BTC or ETH are obvious examples, but there are thousands of possible symbols. In case of coins (ERC20 and alike) use `COIN.BLOCKCHAIN` syntax, such as USDC.ETH or USDC.SOL to indicate that USDC on Ethereum or USDC on Solana is required. To get a list of all allowed values, send a `CreateAssetAccount` request with the `assetSymbol` field empty.
|
|
63
|
+
*/
|
|
64
|
+
assetSymbol: AssetSymbol;
|
|
65
|
+
/**
|
|
66
|
+
* Custom name that can be added for an account.
|
|
67
|
+
*/
|
|
68
|
+
name: string;
|
|
69
|
+
dateCreated: IsoDatetime;
|
|
70
|
+
dateUpdate: IsoDatetime;
|
|
71
|
+
authorizations?: AssetAccountAuthorization[];
|
|
72
|
+
};
|
|
73
|
+
export type Payment = {
|
|
74
|
+
/**
|
|
75
|
+
* Multiple tags can be attached to an entity to categorise or otherwise mark it. For example tags could indicate risk (High, Medium, Low), departments (Trading, Sales, IT), purpose (Treasury, Hot, Deposits), and jurisdictions (US, EU, DE).
|
|
76
|
+
*
|
|
77
|
+
* Multiple tags can be attached to same entity.
|
|
78
|
+
*/
|
|
79
|
+
tags?: Tag[];
|
|
80
|
+
/**
|
|
81
|
+
* Field can be used if entity is created in external (customer’s) system first. This way the external id can be attached to identify entity from Dfns’s data store.
|
|
82
|
+
*/
|
|
83
|
+
externalId?: string;
|
|
84
|
+
/**
|
|
85
|
+
* Indicates id of the Organisation, such as usually a customer, or sub-devision, sub-tenant, and others.
|
|
86
|
+
*/
|
|
87
|
+
orgId: EntityId;
|
|
88
|
+
id: EntityId;
|
|
89
|
+
status: PaymentStatus;
|
|
90
|
+
initiator: Initiator;
|
|
91
|
+
assetAccountId: EntityId;
|
|
92
|
+
assetSymbol: AssetSymbol;
|
|
93
|
+
amount: Amount;
|
|
94
|
+
sender: PaymentInstrument;
|
|
95
|
+
receiver: PaymentInstrument;
|
|
96
|
+
/**
|
|
97
|
+
* SWIFT (MT, ISO15022) field. Represents additional information about payment.
|
|
98
|
+
*
|
|
99
|
+
*/
|
|
100
|
+
narrative?: string;
|
|
101
|
+
note?: string;
|
|
102
|
+
receiverAddress: string;
|
|
103
|
+
policyCertificate?: DfnsCertificate;
|
|
104
|
+
dateCreated: IsoDatetime;
|
|
105
|
+
dateUpdated: IsoDatetime;
|
|
106
|
+
dateExecuted?: IsoDatetime;
|
|
107
|
+
dateBroadcasted?: IsoDatetime;
|
|
108
|
+
dateFirstConfirmed?: IsoDatetime;
|
|
109
|
+
dateConfirmed?: IsoDatetime;
|
|
110
|
+
dateSettled?: IsoDatetime;
|
|
111
|
+
txHash?: string;
|
|
112
|
+
blockHeight?: number;
|
|
113
|
+
direction: PaymentDirection;
|
|
114
|
+
fee?: Amount;
|
|
115
|
+
};
|
|
116
|
+
export type AssetAccountAuthorization = {
|
|
117
|
+
kind: AssetAccountAuthorizationKind;
|
|
118
|
+
entityId: EntityId;
|
|
119
|
+
permission: AssetAccountPermissions;
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* Balance of one asset account.
|
|
123
|
+
*/
|
|
124
|
+
export type AssetAccountBalance = {
|
|
125
|
+
/**
|
|
126
|
+
* Id of the AssetAccount.
|
|
127
|
+
*/
|
|
128
|
+
id: EntityId;
|
|
129
|
+
/**
|
|
130
|
+
* Asset Symbol of the account.
|
|
131
|
+
*/
|
|
132
|
+
assetSymbol: AssetSymbol;
|
|
133
|
+
/**
|
|
134
|
+
* Balance of the account.
|
|
135
|
+
*/
|
|
136
|
+
balance: Amount;
|
|
137
|
+
maxUnitBalance: Amount;
|
|
138
|
+
};
|
|
139
|
+
export type UpdateAssetAccountPayload = {
|
|
140
|
+
/**
|
|
141
|
+
* Indicates whether account is ready to be used.
|
|
142
|
+
*/
|
|
143
|
+
status: AssetAccountStatus;
|
|
144
|
+
/**
|
|
145
|
+
* Blockchain address for a chosen Blockchain network.
|
|
146
|
+
*/
|
|
147
|
+
address?: string;
|
|
148
|
+
/**
|
|
149
|
+
* `PublicKey` which is used by `AssetAccount`. Usually this is used to derive addresses on a given blockchain network.
|
|
150
|
+
*
|
|
151
|
+
* Alternatively can be used to verify signatures produced by the platform.
|
|
152
|
+
*/
|
|
153
|
+
publicKey?: string;
|
|
154
|
+
/**
|
|
155
|
+
* Custom name that can be added for an account.
|
|
156
|
+
*/
|
|
157
|
+
name?: string;
|
|
158
|
+
};
|
|
159
|
+
export type CreateAssetAccountInput = {
|
|
160
|
+
/**
|
|
161
|
+
* # [ENUM]
|
|
162
|
+
*
|
|
163
|
+
* Asset symbol indicating which asset this account is managing. BTC or ETH are obvious examples, but there are thousands of possible symbols. In case of coins (ERC20 and alike) use `COIN.BLOCKCHAIN` syntax, such as USDC.ETH or USDC.SOL to indicate that USDC on Ethereum or USDC on Solana is required. To get a list of all allowed values, send a `CreateAssetAccount` request with the `assetSymbol` field empty.
|
|
164
|
+
*/
|
|
165
|
+
assetSymbol: AssetSymbol;
|
|
166
|
+
groupSize?: IntegerPositiveStrict;
|
|
167
|
+
groupThreshold?: IntegerPositiveStrict;
|
|
168
|
+
/**
|
|
169
|
+
* `PublicKey` which is used by `AssetAccount`. Usually this is used to derive addresses on a given blockchain network.
|
|
170
|
+
*
|
|
171
|
+
* Alternatively can be used to verify signatures produced by the platform.
|
|
172
|
+
*/
|
|
173
|
+
publicKey?: PublicKey;
|
|
174
|
+
externalId?: string;
|
|
175
|
+
tags?: Tag[];
|
|
176
|
+
/**
|
|
177
|
+
* Custom name that can be added for an account.
|
|
178
|
+
*/
|
|
179
|
+
name?: string;
|
|
180
|
+
};
|
|
181
|
+
export type CreatePaymentInput = {
|
|
182
|
+
externalId?: string;
|
|
183
|
+
assetSymbol: AssetSymbol;
|
|
184
|
+
amount: Amount;
|
|
185
|
+
receiver: PaymentInstrument;
|
|
186
|
+
note?: string;
|
|
187
|
+
narrative?: string;
|
|
188
|
+
};
|
|
189
|
+
export type PaymentInstrument = BlockchainWalletAddress | DfnsAssetAccount;
|
|
190
|
+
export declare enum PaymentInstrumentKind {
|
|
191
|
+
DfnsAssetAccount = "DfnsAssetAccount",
|
|
192
|
+
BlockchainWalletAddress = "BlockchainWalletAddress"
|
|
193
|
+
}
|
|
194
|
+
export declare enum PaymentInitiationStatus {
|
|
195
|
+
Initiated = "Initiated",
|
|
196
|
+
Canceled = "Canceled",
|
|
197
|
+
Rejected = "Rejected"
|
|
198
|
+
}
|
|
199
|
+
export declare enum AssetAccountStatus {
|
|
200
|
+
Creating = "Creating",
|
|
201
|
+
Enabled = "Enabled",
|
|
202
|
+
Failed = "Failed"
|
|
203
|
+
}
|
|
204
|
+
export declare enum PaymentStatus {
|
|
205
|
+
Initiated = "Initiated",
|
|
206
|
+
Rejected = "Rejected",
|
|
207
|
+
Approved = "Approved",
|
|
208
|
+
Executed = "Executed",
|
|
209
|
+
Failed = "Failed",
|
|
210
|
+
Confirmed = "Confirmed"
|
|
211
|
+
}
|
|
212
|
+
export declare enum AssetAccountAuthorizationKind {
|
|
213
|
+
Employee = "Employee",
|
|
214
|
+
Group = "Group",
|
|
215
|
+
ApiKey = "ApiKey"
|
|
216
|
+
}
|
|
217
|
+
export declare enum AssetAccountPermissions {
|
|
218
|
+
InitiatePayments = "InitiatePayments",
|
|
219
|
+
ReadBalance = "ReadBalance",
|
|
220
|
+
ReadPublicKey = "ReadPublicKey"
|
|
221
|
+
}
|
|
222
|
+
export declare enum PaymentDirection {
|
|
223
|
+
Incoming = "Incoming",
|
|
224
|
+
Outgoing = "Outgoing"
|
|
225
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentDirection = exports.AssetAccountPermissions = exports.AssetAccountAuthorizationKind = exports.PaymentStatus = exports.AssetAccountStatus = exports.PaymentInitiationStatus = exports.PaymentInstrumentKind = void 0;
|
|
4
|
+
// FIXME: Missing documentation for PaymentInstrumentKind
|
|
5
|
+
var PaymentInstrumentKind;
|
|
6
|
+
(function (PaymentInstrumentKind) {
|
|
7
|
+
// FIXME: Missing documentation for DfnsAssetAccount
|
|
8
|
+
PaymentInstrumentKind["DfnsAssetAccount"] = "DfnsAssetAccount";
|
|
9
|
+
// FIXME: Missing documentation for BlockchainWalletAddress
|
|
10
|
+
PaymentInstrumentKind["BlockchainWalletAddress"] = "BlockchainWalletAddress";
|
|
11
|
+
})(PaymentInstrumentKind = exports.PaymentInstrumentKind || (exports.PaymentInstrumentKind = {}));
|
|
12
|
+
// FIXME: Missing documentation for PaymentInitiationStatus
|
|
13
|
+
var PaymentInitiationStatus;
|
|
14
|
+
(function (PaymentInitiationStatus) {
|
|
15
|
+
// FIXME: Missing documentation for Initiated
|
|
16
|
+
PaymentInitiationStatus["Initiated"] = "Initiated";
|
|
17
|
+
// FIXME: Missing documentation for Canceled
|
|
18
|
+
PaymentInitiationStatus["Canceled"] = "Canceled";
|
|
19
|
+
// FIXME: Missing documentation for Rejected
|
|
20
|
+
PaymentInitiationStatus["Rejected"] = "Rejected";
|
|
21
|
+
})(PaymentInitiationStatus = exports.PaymentInitiationStatus || (exports.PaymentInitiationStatus = {}));
|
|
22
|
+
// FIXME: Missing documentation for AssetAccountStatus
|
|
23
|
+
var AssetAccountStatus;
|
|
24
|
+
(function (AssetAccountStatus) {
|
|
25
|
+
//Initial state of `AssetAccount` entity, indicating that it’s being created at the moment.
|
|
26
|
+
AssetAccountStatus["Creating"] = "Creating";
|
|
27
|
+
// FIXME: Missing documentation for Enabled
|
|
28
|
+
AssetAccountStatus["Enabled"] = "Enabled";
|
|
29
|
+
// FIXME: Missing documentation for Failed
|
|
30
|
+
AssetAccountStatus["Failed"] = "Failed";
|
|
31
|
+
})(AssetAccountStatus = exports.AssetAccountStatus || (exports.AssetAccountStatus = {}));
|
|
32
|
+
// FIXME: Missing documentation for PaymentStatus
|
|
33
|
+
var PaymentStatus;
|
|
34
|
+
(function (PaymentStatus) {
|
|
35
|
+
//Payment order is received and initiated. It will execute later.
|
|
36
|
+
PaymentStatus["Initiated"] = "Initiated";
|
|
37
|
+
//Some Policy blocked the payment, it is not approved.
|
|
38
|
+
PaymentStatus["Rejected"] = "Rejected";
|
|
39
|
+
//Payment passed Policies, it is approved.
|
|
40
|
+
PaymentStatus["Approved"] = "Approved";
|
|
41
|
+
//Payment is successfully Executed and Broadcasted on the blockchain.
|
|
42
|
+
PaymentStatus["Executed"] = "Executed";
|
|
43
|
+
//Payment tried to execute, but failed doing so.
|
|
44
|
+
PaymentStatus["Failed"] = "Failed";
|
|
45
|
+
//Payment transaction is confirmed on the blockchain.
|
|
46
|
+
PaymentStatus["Confirmed"] = "Confirmed";
|
|
47
|
+
})(PaymentStatus = exports.PaymentStatus || (exports.PaymentStatus = {}));
|
|
48
|
+
// FIXME: Missing documentation for AssetAccountAuthorizationKind
|
|
49
|
+
var AssetAccountAuthorizationKind;
|
|
50
|
+
(function (AssetAccountAuthorizationKind) {
|
|
51
|
+
// FIXME: Missing documentation for Employee
|
|
52
|
+
AssetAccountAuthorizationKind["Employee"] = "Employee";
|
|
53
|
+
// FIXME: Missing documentation for Group
|
|
54
|
+
AssetAccountAuthorizationKind["Group"] = "Group";
|
|
55
|
+
// FIXME: Missing documentation for ApiKey
|
|
56
|
+
AssetAccountAuthorizationKind["ApiKey"] = "ApiKey";
|
|
57
|
+
})(AssetAccountAuthorizationKind = exports.AssetAccountAuthorizationKind || (exports.AssetAccountAuthorizationKind = {}));
|
|
58
|
+
// FIXME: Missing documentation for AssetAccountPermissions
|
|
59
|
+
var AssetAccountPermissions;
|
|
60
|
+
(function (AssetAccountPermissions) {
|
|
61
|
+
// FIXME: Missing documentation for InitiatePayments
|
|
62
|
+
AssetAccountPermissions["InitiatePayments"] = "InitiatePayments";
|
|
63
|
+
// FIXME: Missing documentation for ReadBalance
|
|
64
|
+
AssetAccountPermissions["ReadBalance"] = "ReadBalance";
|
|
65
|
+
// FIXME: Missing documentation for ReadPublicKey
|
|
66
|
+
AssetAccountPermissions["ReadPublicKey"] = "ReadPublicKey";
|
|
67
|
+
})(AssetAccountPermissions = exports.AssetAccountPermissions || (exports.AssetAccountPermissions = {}));
|
|
68
|
+
// FIXME: Missing documentation for PaymentDirection
|
|
69
|
+
var PaymentDirection;
|
|
70
|
+
(function (PaymentDirection) {
|
|
71
|
+
// FIXME: Missing documentation for Incoming
|
|
72
|
+
PaymentDirection["Incoming"] = "Incoming";
|
|
73
|
+
// FIXME: Missing documentation for Outgoing
|
|
74
|
+
PaymentDirection["Outgoing"] = "Outgoing";
|
|
75
|
+
})(PaymentDirection = exports.PaymentDirection || (exports.PaymentDirection = {}));
|
|
@@ -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,348 @@
|
|
|
1
|
+
import { BadRequestError, EntityNotFoundError, ForbiddenError, UnauthorizedError } from '../Foundations';
|
|
2
|
+
import { AccessTokenInfoWithPublicKey, AppInfoWithPublicKey, AvailableOrg, CredentialInfo, GenericSuccessMessage, UserAccessTokenInformation, UserActionSignature, UserCredentialChallenge, UserInfo, UserLogin, UserLoginChallenge, UserRecoveryChallenge, UserRegistration, UserRegistrationChallenge } from './types';
|
|
3
|
+
export type CreateDelegatedUserRegistrationSuccess = UserRegistrationChallenge;
|
|
4
|
+
export type CreateDelegatedUserRegistrationError = {
|
|
5
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
6
|
+
};
|
|
7
|
+
export type CreateDelegatedUserRegistrationResponse = CreateDelegatedUserRegistrationSuccess | CreateDelegatedUserRegistrationError;
|
|
8
|
+
export type CreateUserRegistrationChallengeSuccess = UserRegistrationChallenge;
|
|
9
|
+
export type CreateUserRegistrationChallengeError = {
|
|
10
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
11
|
+
};
|
|
12
|
+
export type CreateUserRegistrationChallengeResponse = CreateUserRegistrationChallengeSuccess | CreateUserRegistrationChallengeError;
|
|
13
|
+
export type CreateUserRegistrationSuccess = UserRegistration;
|
|
14
|
+
export type CreateUserRegistrationError = {
|
|
15
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
16
|
+
};
|
|
17
|
+
export type CreateUserRegistrationResponse = CreateUserRegistrationSuccess | CreateUserRegistrationError;
|
|
18
|
+
export type CreateUserLoginChallengeSuccess = UserLoginChallenge;
|
|
19
|
+
export type CreateUserLoginChallengeError = {
|
|
20
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
21
|
+
};
|
|
22
|
+
export type CreateUserLoginChallengeResponse = CreateUserLoginChallengeSuccess | CreateUserLoginChallengeError;
|
|
23
|
+
export type CreateUserLoginSuccess = UserLogin;
|
|
24
|
+
export type CreateUserLoginError = {
|
|
25
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
26
|
+
};
|
|
27
|
+
export type CreateUserLoginResponse = CreateUserLoginSuccess | CreateUserLoginError;
|
|
28
|
+
export type CreateDelegatedUserLoginSuccess = UserLogin;
|
|
29
|
+
export type CreateDelegatedUserLoginError = {
|
|
30
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
31
|
+
};
|
|
32
|
+
export type CreateDelegatedUserLoginResponse = CreateDelegatedUserLoginSuccess | CreateDelegatedUserLoginError;
|
|
33
|
+
export type CreateUserActionSignatureChallengeSuccess = UserLoginChallenge;
|
|
34
|
+
export type CreateUserActionSignatureChallengeError = {
|
|
35
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
36
|
+
};
|
|
37
|
+
export type CreateUserActionSignatureChallengeResponse = CreateUserActionSignatureChallengeSuccess | CreateUserActionSignatureChallengeError;
|
|
38
|
+
export type CreateUserActionSignatureSuccess = UserActionSignature;
|
|
39
|
+
export type CreateUserActionSignatureError = {
|
|
40
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
41
|
+
};
|
|
42
|
+
export type CreateUserActionSignatureResponse = CreateUserActionSignatureSuccess | CreateUserActionSignatureError;
|
|
43
|
+
export type ResendUserRegistrationEmailSuccess = GenericSuccessMessage;
|
|
44
|
+
export type ResendUserRegistrationEmailError = {
|
|
45
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
46
|
+
};
|
|
47
|
+
export type ResendUserRegistrationEmailResponse = ResendUserRegistrationEmailSuccess | ResendUserRegistrationEmailError;
|
|
48
|
+
export type CreateUserCredentialChallengeSuccess = UserCredentialChallenge;
|
|
49
|
+
export type CreateUserCredentialChallengeError = {
|
|
50
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
51
|
+
};
|
|
52
|
+
export type CreateUserCredentialChallengeResponse = CreateUserCredentialChallengeSuccess | CreateUserCredentialChallengeError;
|
|
53
|
+
export type CreateUserCredentialSuccess = CredentialInfo;
|
|
54
|
+
export type CreateUserCredentialError = {
|
|
55
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
56
|
+
};
|
|
57
|
+
export type CreateUserCredentialResponse = CreateUserCredentialSuccess | CreateUserCredentialError;
|
|
58
|
+
export type ActivateCredentialSuccess = GenericSuccessMessage;
|
|
59
|
+
export type ActivateCredentialError = {
|
|
60
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
61
|
+
};
|
|
62
|
+
export type ActivateCredentialResponse = ActivateCredentialSuccess | ActivateCredentialError;
|
|
63
|
+
export type DeactivateCredentialSuccess = GenericSuccessMessage;
|
|
64
|
+
export type DeactivateCredentialError = {
|
|
65
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
66
|
+
};
|
|
67
|
+
export type DeactivateCredentialResponse = DeactivateCredentialSuccess | DeactivateCredentialError;
|
|
68
|
+
export type ListUserCredentialsSuccess = {
|
|
69
|
+
items: CredentialInfo[];
|
|
70
|
+
};
|
|
71
|
+
export type ListUserCredentialsError = {
|
|
72
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
73
|
+
};
|
|
74
|
+
export type ListUserCredentialsResponse = ListUserCredentialsSuccess | ListUserCredentialsError;
|
|
75
|
+
export type CreateCodeLoginChallengeSuccess = UserLoginChallenge;
|
|
76
|
+
export type CreateCodeLoginChallengeError = {
|
|
77
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
78
|
+
};
|
|
79
|
+
export type CreateCodeLoginChallengeResponse = CreateCodeLoginChallengeSuccess | CreateCodeLoginChallengeError;
|
|
80
|
+
export type CreateCodeLoginSuccess = GenericSuccessMessage;
|
|
81
|
+
export type CreateCodeLoginError = {
|
|
82
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
83
|
+
};
|
|
84
|
+
export type CreateCodeLoginResponse = CreateCodeLoginSuccess | CreateCodeLoginError;
|
|
85
|
+
export type CreateUserLoginFromCodeSuccess = UserLogin;
|
|
86
|
+
export type CreateUserLoginFromCodeError = {
|
|
87
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
88
|
+
};
|
|
89
|
+
export type CreateUserLoginFromCodeResponse = CreateUserLoginFromCodeSuccess | CreateUserLoginFromCodeError;
|
|
90
|
+
export type CreateUserActionSignatureFromCodeSuccess = UserActionSignature;
|
|
91
|
+
export type CreateUserActionSignatureFromCodeError = {
|
|
92
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
93
|
+
};
|
|
94
|
+
export type CreateUserActionSignatureFromCodeResponse = CreateUserActionSignatureFromCodeSuccess | CreateUserActionSignatureFromCodeError;
|
|
95
|
+
export type CreateCodeUserActionSignatureChallengeSuccess = UserLoginChallenge;
|
|
96
|
+
export type CreateCodeUserActionSignatureChallengeError = {
|
|
97
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
98
|
+
};
|
|
99
|
+
export type CreateCodeUserActionSignatureChallengeResponse = CreateCodeUserActionSignatureChallengeSuccess | CreateCodeUserActionSignatureChallengeError;
|
|
100
|
+
export type CreateCodeUserActionSignatureSuccess = GenericSuccessMessage;
|
|
101
|
+
export type CreateCodeUserActionSignatureError = {
|
|
102
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
103
|
+
};
|
|
104
|
+
export type CreateCodeUserActionSignatureResponse = CreateCodeUserActionSignatureSuccess | CreateCodeUserActionSignatureError;
|
|
105
|
+
export type CreateAvailableOrgListSuccess = {
|
|
106
|
+
items: AvailableOrg[];
|
|
107
|
+
};
|
|
108
|
+
export type CreateAvailableOrgListError = {
|
|
109
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
110
|
+
};
|
|
111
|
+
export type CreateAvailableOrgListResponse = CreateAvailableOrgListSuccess | CreateAvailableOrgListError;
|
|
112
|
+
export type ListPersonalAccessTokensSuccess = {
|
|
113
|
+
items: AccessTokenInfoWithPublicKey[];
|
|
114
|
+
};
|
|
115
|
+
export type ListPersonalAccessTokensError = {
|
|
116
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
117
|
+
};
|
|
118
|
+
export type ListPersonalAccessTokensResponse = ListPersonalAccessTokensSuccess | ListPersonalAccessTokensError;
|
|
119
|
+
export type CreatePersonalAccessTokenSuccess = AccessTokenInfoWithPublicKey;
|
|
120
|
+
export type CreatePersonalAccessTokenError = {
|
|
121
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
122
|
+
};
|
|
123
|
+
export type CreatePersonalAccessTokenResponse = CreatePersonalAccessTokenSuccess | CreatePersonalAccessTokenError;
|
|
124
|
+
export type GetPersonalAccessTokensSuccess = AccessTokenInfoWithPublicKey;
|
|
125
|
+
export type GetPersonalAccessTokensError = {
|
|
126
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
127
|
+
};
|
|
128
|
+
export type GetPersonalAccessTokensResponse = GetPersonalAccessTokensSuccess | GetPersonalAccessTokensError;
|
|
129
|
+
export type UpdatePersonalAccessTokenSuccess = AccessTokenInfoWithPublicKey;
|
|
130
|
+
export type UpdatePersonalAccessTokenError = {
|
|
131
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
132
|
+
};
|
|
133
|
+
export type UpdatePersonalAccessTokenResponse = UpdatePersonalAccessTokenSuccess | UpdatePersonalAccessTokenError;
|
|
134
|
+
export type ArchivePersonalAccessTokenSuccess = AccessTokenInfoWithPublicKey;
|
|
135
|
+
export type ArchivePersonalAccessTokenError = {
|
|
136
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
137
|
+
};
|
|
138
|
+
export type ArchivePersonalAccessTokenResponse = ArchivePersonalAccessTokenSuccess | ArchivePersonalAccessTokenError;
|
|
139
|
+
export type ActivatePersonalAccessTokenSuccess = AccessTokenInfoWithPublicKey;
|
|
140
|
+
export type ActivatePersonalAccessTokenError = {
|
|
141
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
142
|
+
};
|
|
143
|
+
export type ActivatePersonalAccessTokenResponse = ActivatePersonalAccessTokenSuccess | ActivatePersonalAccessTokenError;
|
|
144
|
+
export type DeactivatePersonalAccessTokenSuccess = AccessTokenInfoWithPublicKey;
|
|
145
|
+
export type DeactivatePersonalAccessTokenError = {
|
|
146
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
147
|
+
};
|
|
148
|
+
export type DeactivatePersonalAccessTokenResponse = DeactivatePersonalAccessTokenSuccess | DeactivatePersonalAccessTokenError;
|
|
149
|
+
export type ListServiceAccountsSuccess = {
|
|
150
|
+
items: UserAccessTokenInformation[];
|
|
151
|
+
};
|
|
152
|
+
export type ListServiceAccountsError = {
|
|
153
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
154
|
+
};
|
|
155
|
+
export type ListServiceAccountsResponse = ListServiceAccountsSuccess | ListServiceAccountsError;
|
|
156
|
+
export type CreateServiceAccountSuccess = UserAccessTokenInformation;
|
|
157
|
+
export type CreateServiceAccountError = {
|
|
158
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
159
|
+
};
|
|
160
|
+
export type CreateServiceAccountResponse = CreateServiceAccountSuccess | CreateServiceAccountError;
|
|
161
|
+
export type GetServiceAccountSuccess = UserAccessTokenInformation;
|
|
162
|
+
export type GetServiceAccountError = {
|
|
163
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
164
|
+
};
|
|
165
|
+
export type GetServiceAccountResponse = GetServiceAccountSuccess | GetServiceAccountError;
|
|
166
|
+
export type UpdateServiceAccountSuccess = UserAccessTokenInformation;
|
|
167
|
+
export type UpdateServiceAccountError = {
|
|
168
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
169
|
+
};
|
|
170
|
+
export type UpdateServiceAccountResponse = UpdateServiceAccountSuccess | UpdateServiceAccountError;
|
|
171
|
+
export type ArchiveServiceAccountSuccess = UserAccessTokenInformation;
|
|
172
|
+
export type ArchiveServiceAccountError = {
|
|
173
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
174
|
+
};
|
|
175
|
+
export type ArchiveServiceAccountResponse = ArchiveServiceAccountSuccess | ArchiveServiceAccountError;
|
|
176
|
+
export type ActivateServiceAccountSuccess = UserAccessTokenInformation;
|
|
177
|
+
export type ActivateServiceAccountError = {
|
|
178
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
179
|
+
};
|
|
180
|
+
export type ActivateServiceAccountResponse = ActivateServiceAccountSuccess | ActivateServiceAccountError;
|
|
181
|
+
export type DeactivateServiceAccountSuccess = UserAccessTokenInformation;
|
|
182
|
+
export type DeactivateServiceAccountError = {
|
|
183
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
184
|
+
};
|
|
185
|
+
export type DeactivateServiceAccountResponse = DeactivateServiceAccountSuccess | DeactivateServiceAccountError;
|
|
186
|
+
export type ListServiceAccountTokensSuccess = {
|
|
187
|
+
items: AccessTokenInfoWithPublicKey[];
|
|
188
|
+
};
|
|
189
|
+
export type ListServiceAccountTokensError = {
|
|
190
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
191
|
+
};
|
|
192
|
+
export type ListServiceAccountTokensResponse = ListServiceAccountTokensSuccess | ListServiceAccountTokensError;
|
|
193
|
+
export type CreateServiceAccountTokenSuccess = AccessTokenInfoWithPublicKey;
|
|
194
|
+
export type CreateServiceAccountTokenError = {
|
|
195
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
196
|
+
};
|
|
197
|
+
export type CreateServiceAccountTokenResponse = CreateServiceAccountTokenSuccess | CreateServiceAccountTokenError;
|
|
198
|
+
export type GetServiceAccountTokenSuccess = AccessTokenInfoWithPublicKey;
|
|
199
|
+
export type GetServiceAccountTokenError = {
|
|
200
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
201
|
+
};
|
|
202
|
+
export type GetServiceAccountTokenResponse = GetServiceAccountTokenSuccess | GetServiceAccountTokenError;
|
|
203
|
+
export type UpdateServiceAccountTokenSuccess = AccessTokenInfoWithPublicKey;
|
|
204
|
+
export type UpdateServiceAccountTokenError = {
|
|
205
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
206
|
+
};
|
|
207
|
+
export type UpdateServiceAccountTokenResponse = UpdateServiceAccountTokenSuccess | UpdateServiceAccountTokenError;
|
|
208
|
+
export type ArchiveServiceAccountTokenSuccess = AccessTokenInfoWithPublicKey;
|
|
209
|
+
export type ArchiveServiceAccountTokenError = {
|
|
210
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
211
|
+
};
|
|
212
|
+
export type ArchiveServiceAccountTokenResponse = ArchiveServiceAccountTokenSuccess | ArchiveServiceAccountTokenError;
|
|
213
|
+
export type ActivateServiceAccountTokenSuccess = AccessTokenInfoWithPublicKey;
|
|
214
|
+
export type ActivateServiceAccountTokenError = {
|
|
215
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
216
|
+
};
|
|
217
|
+
export type ActivateServiceAccountTokenResponse = ActivateServiceAccountTokenSuccess | ActivateServiceAccountTokenError;
|
|
218
|
+
export type DeactivateServiceAccountTokenSuccess = AccessTokenInfoWithPublicKey;
|
|
219
|
+
export type DeactivateServiceAccountTokenError = {
|
|
220
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
221
|
+
};
|
|
222
|
+
export type DeactivateServiceAccountTokenResponse = DeactivateServiceAccountTokenSuccess | DeactivateServiceAccountTokenError;
|
|
223
|
+
export type ListUsersSuccess = {
|
|
224
|
+
items: UserInfo[];
|
|
225
|
+
};
|
|
226
|
+
export type ListUsersError = {
|
|
227
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
228
|
+
};
|
|
229
|
+
export type ListUsersResponse = ListUsersSuccess | ListUsersError;
|
|
230
|
+
export type CreateUserSuccess = UserInfo;
|
|
231
|
+
export type CreateUserError = {
|
|
232
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
233
|
+
};
|
|
234
|
+
export type CreateUserResponse = CreateUserSuccess | CreateUserError;
|
|
235
|
+
export type GetUserSuccess = UserInfo;
|
|
236
|
+
export type GetUserError = {
|
|
237
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
238
|
+
};
|
|
239
|
+
export type GetUserResponse = GetUserSuccess | GetUserError;
|
|
240
|
+
export type UpdateUserSuccess = UserInfo;
|
|
241
|
+
export type UpdateUserError = {
|
|
242
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
243
|
+
};
|
|
244
|
+
export type UpdateUserResponse = UpdateUserSuccess | UpdateUserError;
|
|
245
|
+
export type ArchiveUserSuccess = UserInfo;
|
|
246
|
+
export type ArchiveUserError = {
|
|
247
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
248
|
+
};
|
|
249
|
+
export type ArchiveUserResponse = ArchiveUserSuccess | ArchiveUserError;
|
|
250
|
+
export type ActivateUserSuccess = UserInfo;
|
|
251
|
+
export type ActivateUserError = {
|
|
252
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
253
|
+
};
|
|
254
|
+
export type ActivateUserResponse = ActivateUserSuccess | ActivateUserError;
|
|
255
|
+
export type DeactivateUserSuccess = UserInfo;
|
|
256
|
+
export type DeactivateUserError = {
|
|
257
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
258
|
+
};
|
|
259
|
+
export type DeactivateUserResponse = DeactivateUserSuccess | DeactivateUserError;
|
|
260
|
+
export type ListApplicationsSuccess = {
|
|
261
|
+
items: AppInfoWithPublicKey[];
|
|
262
|
+
};
|
|
263
|
+
export type ListApplicationsError = {
|
|
264
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
265
|
+
};
|
|
266
|
+
export type ListApplicationsResponse = ListApplicationsSuccess | ListApplicationsError;
|
|
267
|
+
export type CreateApplicationSuccess = AppInfoWithPublicKey;
|
|
268
|
+
export type CreateApplicationError = {
|
|
269
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
270
|
+
};
|
|
271
|
+
export type CreateApplicationResponse = CreateApplicationSuccess | CreateApplicationError;
|
|
272
|
+
export type GetApplicationSuccess = AppInfoWithPublicKey;
|
|
273
|
+
export type GetApplicationError = {
|
|
274
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
275
|
+
};
|
|
276
|
+
export type GetApplicationResponse = GetApplicationSuccess | GetApplicationError;
|
|
277
|
+
export type UpdateApplicationSuccess = AppInfoWithPublicKey;
|
|
278
|
+
export type UpdateApplicationError = {
|
|
279
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
280
|
+
};
|
|
281
|
+
export type UpdateApplicationResponse = UpdateApplicationSuccess | UpdateApplicationError;
|
|
282
|
+
export type ArchiveApplicationSuccess = AppInfoWithPublicKey;
|
|
283
|
+
export type ArchiveApplicationError = {
|
|
284
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
285
|
+
};
|
|
286
|
+
export type ArchiveApplicationResponse = ArchiveApplicationSuccess | ArchiveApplicationError;
|
|
287
|
+
export type ActivateApplicationSuccess = AppInfoWithPublicKey;
|
|
288
|
+
export type ActivateApplicationError = {
|
|
289
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
290
|
+
};
|
|
291
|
+
export type ActivateApplicationResponse = ActivateApplicationSuccess | ActivateApplicationError;
|
|
292
|
+
export type DeactivateApplicationSuccess = AppInfoWithPublicKey;
|
|
293
|
+
export type DeactivateApplicationError = {
|
|
294
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
295
|
+
};
|
|
296
|
+
export type DeactivateApplicationResponse = DeactivateApplicationSuccess | DeactivateApplicationError;
|
|
297
|
+
export type ListApplicationTokensSuccess = {
|
|
298
|
+
items: AccessTokenInfoWithPublicKey[];
|
|
299
|
+
};
|
|
300
|
+
export type ListApplicationTokensError = {
|
|
301
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
302
|
+
};
|
|
303
|
+
export type ListApplicationTokensResponse = ListApplicationTokensSuccess | ListApplicationTokensError;
|
|
304
|
+
export type CreateApplicationTokenSuccess = AccessTokenInfoWithPublicKey;
|
|
305
|
+
export type CreateApplicationTokenError = {
|
|
306
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
307
|
+
};
|
|
308
|
+
export type CreateApplicationTokenResponse = CreateApplicationTokenSuccess | CreateApplicationTokenError;
|
|
309
|
+
export type GetApplicationTokenSuccess = AccessTokenInfoWithPublicKey;
|
|
310
|
+
export type GetApplicationTokenError = {
|
|
311
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
312
|
+
};
|
|
313
|
+
export type GetApplicationTokenResponse = GetApplicationTokenSuccess | GetApplicationTokenError;
|
|
314
|
+
export type UpdateApplicationTokenSuccess = AccessTokenInfoWithPublicKey;
|
|
315
|
+
export type UpdateApplicationTokenError = {
|
|
316
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
317
|
+
};
|
|
318
|
+
export type UpdateApplicationTokenResponse = UpdateApplicationTokenSuccess | UpdateApplicationTokenError;
|
|
319
|
+
export type ArchiveApplicationTokenSuccess = AccessTokenInfoWithPublicKey;
|
|
320
|
+
export type ArchiveApplicationTokenError = {
|
|
321
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
322
|
+
};
|
|
323
|
+
export type ArchiveApplicationTokenResponse = ArchiveApplicationTokenSuccess | ArchiveApplicationTokenError;
|
|
324
|
+
export type ActivateApplicationTokenSuccess = AccessTokenInfoWithPublicKey;
|
|
325
|
+
export type ActivateApplicationTokenError = {
|
|
326
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
327
|
+
};
|
|
328
|
+
export type ActivateApplicationTokenResponse = ActivateApplicationTokenSuccess | ActivateApplicationTokenError;
|
|
329
|
+
export type DeactivateApplicationTokenSuccess = AccessTokenInfoWithPublicKey;
|
|
330
|
+
export type DeactivateApplicationTokenError = {
|
|
331
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
332
|
+
};
|
|
333
|
+
export type DeactivateApplicationTokenResponse = DeactivateApplicationTokenSuccess | DeactivateApplicationTokenError;
|
|
334
|
+
export type CreateUserRecoveryChallengeSuccess = UserRecoveryChallenge;
|
|
335
|
+
export type CreateUserRecoveryChallengeError = {
|
|
336
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
337
|
+
};
|
|
338
|
+
export type CreateUserRecoveryChallengeResponse = CreateUserRecoveryChallengeSuccess | CreateUserRecoveryChallengeError;
|
|
339
|
+
export type CreateUserRecoveryCodeSuccess = GenericSuccessMessage;
|
|
340
|
+
export type CreateUserRecoveryCodeError = {
|
|
341
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
342
|
+
};
|
|
343
|
+
export type CreateUserRecoveryCodeResponse = CreateUserRecoveryCodeSuccess | CreateUserRecoveryCodeError;
|
|
344
|
+
export type CreateUserRecoverySuccess = UserRegistration;
|
|
345
|
+
export type CreateUserRecoveryError = {
|
|
346
|
+
error: UnauthorizedError | ForbiddenError | BadRequestError | EntityNotFoundError;
|
|
347
|
+
};
|
|
348
|
+
export type CreateUserRecoveryResponse = CreateUserRecoverySuccess | CreateUserRecoveryError;
|