@global-torque/domain-types 0.2.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/CHANGELOG.md +12 -0
- package/LICENSE +21 -0
- package/NOTICE.md +11 -0
- package/README.md +64 -0
- package/SECURITY.md +9 -0
- package/SUPPORT.md +6 -0
- package/package.json +67 -0
- package/src/accreditationTypes.ts +22 -0
- package/src/analyticsTypes.ts +184 -0
- package/src/authConstants.ts +16 -0
- package/src/authTypes.ts +155 -0
- package/src/blogTypes.ts +30 -0
- package/src/contentTypes.ts +37 -0
- package/src/dashboardTypes.ts +9 -0
- package/src/distributionsTypes.ts +49 -0
- package/src/esignTypes.ts +11 -0
- package/src/evmTypes.ts +525 -0
- package/src/filerTypes.ts +60 -0
- package/src/index.ts +5 -0
- package/src/investmentTypes.ts +204 -0
- package/src/kycTypes.ts +44 -0
- package/src/notificationsTypes.ts +95 -0
- package/src/offerCardTypes.ts +48 -0
- package/src/offerTypes.ts +275 -0
- package/src/onboardingTypes.ts +55 -0
- package/src/profileTypes.ts +9 -0
- package/src/profilesTypes.ts +344 -0
- package/src/settingsTypes.ts +20 -0
- package/src/vaultTypes.ts +250 -0
- package/src/walletTypes.ts +147 -0
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
import type { AccreditationTypes, IAccreditationData } from './accreditationTypes.ts';
|
|
2
|
+
import type { IKycData, InvestKycTypes } from './kycTypes.ts';
|
|
3
|
+
|
|
4
|
+
export interface IEmployment {
|
|
5
|
+
type: string;
|
|
6
|
+
employer_name?: string;
|
|
7
|
+
role?: string;
|
|
8
|
+
address1?: string;
|
|
9
|
+
address2?: string;
|
|
10
|
+
city?: string;
|
|
11
|
+
postal_code?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface IFinra {
|
|
15
|
+
member_association: boolean;
|
|
16
|
+
correspondence: boolean;
|
|
17
|
+
member_firm_name: string;
|
|
18
|
+
compliance_contact_name: string;
|
|
19
|
+
compliance_contant_email: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface ITenPercentShareholder {
|
|
23
|
+
shareholder_association: boolean;
|
|
24
|
+
ticker_symbol_list: string;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface IBeneficiary {
|
|
28
|
+
first_name: string;
|
|
29
|
+
last_name: string;
|
|
30
|
+
relationship_type: string;
|
|
31
|
+
phone: string;
|
|
32
|
+
email: string;
|
|
33
|
+
dob: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface IInvestmentObjectives {
|
|
37
|
+
objectives: string;
|
|
38
|
+
years_experience: number;
|
|
39
|
+
duration: string;
|
|
40
|
+
importance_of_access: string;
|
|
41
|
+
risk_comfort: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface IAccreditedInvestor {
|
|
45
|
+
is_accredited: boolean;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface IRegCF {
|
|
49
|
+
limitation_rule: boolean;
|
|
50
|
+
limitation_rule_confirmation: boolean;
|
|
51
|
+
annual_income: number;
|
|
52
|
+
net_worth: number;
|
|
53
|
+
invested_external: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface IOwnership {
|
|
57
|
+
first_name: string;
|
|
58
|
+
last_name: string;
|
|
59
|
+
middle_name: string;
|
|
60
|
+
dob: string;
|
|
61
|
+
phone: string;
|
|
62
|
+
ssn: string;
|
|
63
|
+
address1: string;
|
|
64
|
+
address2: string;
|
|
65
|
+
city: string;
|
|
66
|
+
state: string;
|
|
67
|
+
zip_code: string;
|
|
68
|
+
country: string;
|
|
69
|
+
citizenship: string;
|
|
70
|
+
nc_account_nickname?: string;
|
|
71
|
+
nc_account_bank_name?: string;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface IBusinessController {
|
|
75
|
+
first_name: string;
|
|
76
|
+
last_name: string;
|
|
77
|
+
address1: string;
|
|
78
|
+
address2: string;
|
|
79
|
+
city: string;
|
|
80
|
+
state: string;
|
|
81
|
+
zip_code: string;
|
|
82
|
+
country: string;
|
|
83
|
+
phone: string;
|
|
84
|
+
email: string;
|
|
85
|
+
dob: string;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export interface ITypeOfId {
|
|
89
|
+
type: string;
|
|
90
|
+
number: string;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export interface IFormPartialBeneficialOwnershipItem {
|
|
94
|
+
first_name: string;
|
|
95
|
+
last_name: string;
|
|
96
|
+
dob: string;
|
|
97
|
+
address1: string;
|
|
98
|
+
address2?: string;
|
|
99
|
+
city: string;
|
|
100
|
+
state: string;
|
|
101
|
+
zip_code: string;
|
|
102
|
+
country: string;
|
|
103
|
+
phone: string;
|
|
104
|
+
email: string;
|
|
105
|
+
non_us: string;
|
|
106
|
+
ssn?: string;
|
|
107
|
+
type_of_identification?: {
|
|
108
|
+
id_number: string;
|
|
109
|
+
country: string;
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export interface IFormPartialBeneficialOwnershipItemFormatted extends IFormPartialBeneficialOwnershipItem {
|
|
114
|
+
phoneFormatted?: string;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export interface IUserDataIndividual {
|
|
118
|
+
first_name?: string;
|
|
119
|
+
last_name?: string;
|
|
120
|
+
middle_name?: string;
|
|
121
|
+
dob?: string;
|
|
122
|
+
phone?: string;
|
|
123
|
+
email?: string;
|
|
124
|
+
ssn?: string;
|
|
125
|
+
address1?: string;
|
|
126
|
+
address2?: string;
|
|
127
|
+
type?: string;
|
|
128
|
+
city?: string;
|
|
129
|
+
state?: string;
|
|
130
|
+
zip_code?: string;
|
|
131
|
+
country?: string;
|
|
132
|
+
citizenship?: string;
|
|
133
|
+
nc_party_id?: string;
|
|
134
|
+
nc_link_id?: string;
|
|
135
|
+
employment: IEmployment;
|
|
136
|
+
ip_address: string;
|
|
137
|
+
beneficiary: IBeneficiary;
|
|
138
|
+
risk_involved?: boolean;
|
|
139
|
+
finra_affiliated: IFinra;
|
|
140
|
+
accredited_investor: IAccreditedInvestor;
|
|
141
|
+
resell_difficulties?: boolean;
|
|
142
|
+
cancelation_restrictions?: boolean;
|
|
143
|
+
educational_materials?: boolean;
|
|
144
|
+
investment_objectives: IInvestmentObjectives;
|
|
145
|
+
irs_backup_withholding?: boolean;
|
|
146
|
+
ten_percent_shareholder?: ITenPercentShareholder;
|
|
147
|
+
no_legal_advices_from_company?: boolean;
|
|
148
|
+
/** Answers to fund-defined custom onboarding questions, keyed by label-derived slug. */
|
|
149
|
+
custom_fields?: Record<string, string | number | boolean>;
|
|
150
|
+
name?: string;
|
|
151
|
+
owner_title?: string;
|
|
152
|
+
tax_exempts?: string;
|
|
153
|
+
solely_for_investing?: string;
|
|
154
|
+
business_controller?: IBusinessController;
|
|
155
|
+
type_of_identification?: ITypeOfId;
|
|
156
|
+
account_number?: string;
|
|
157
|
+
full_account_name?: string;
|
|
158
|
+
ein?: string;
|
|
159
|
+
is_full_ssn_provided: boolean;
|
|
160
|
+
beneficials?: IFormPartialBeneficialOwnershipItem[];
|
|
161
|
+
formattedBeneficials?: IFormPartialBeneficialOwnershipItemFormatted[];
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export interface IProfileIndividual {
|
|
165
|
+
id: number;
|
|
166
|
+
escrow_id?: string;
|
|
167
|
+
type: string;
|
|
168
|
+
data: IUserDataIndividual;
|
|
169
|
+
kyc_id: number;
|
|
170
|
+
kyc_status?: InvestKycTypes;
|
|
171
|
+
kyc_data?: IKycData[];
|
|
172
|
+
accreditation_id: number;
|
|
173
|
+
accreditation_status?: AccreditationTypes;
|
|
174
|
+
accreditation_data?: IAccreditationData[];
|
|
175
|
+
kyc_at: string;
|
|
176
|
+
accreditation_at: string;
|
|
177
|
+
wallet: IWallet;
|
|
178
|
+
total_distributions?: number;
|
|
179
|
+
total_investments_12_months?: number;
|
|
180
|
+
total_investments?: number;
|
|
181
|
+
avarange_annual: number;
|
|
182
|
+
total_investments_change_percent: number;
|
|
183
|
+
total_distributions_change_percent: number;
|
|
184
|
+
user_id?: number;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export interface IProfileData {
|
|
188
|
+
id?: number;
|
|
189
|
+
profile_id?: number;
|
|
190
|
+
user_id?: number;
|
|
191
|
+
escrow_id?: string;
|
|
192
|
+
profile_type?: string;
|
|
193
|
+
first_name?: string;
|
|
194
|
+
last_name?: string;
|
|
195
|
+
middle_name?: string;
|
|
196
|
+
dob?: string;
|
|
197
|
+
phone?: string;
|
|
198
|
+
ssn?: string;
|
|
199
|
+
address1?: string;
|
|
200
|
+
address2?: string;
|
|
201
|
+
city?: string;
|
|
202
|
+
state?: string;
|
|
203
|
+
zip_code?: string;
|
|
204
|
+
country?: string;
|
|
205
|
+
citizenship?: string;
|
|
206
|
+
nc_party_id?: string;
|
|
207
|
+
nc_account_nickname?: string;
|
|
208
|
+
nc_account_bank_name?: string;
|
|
209
|
+
employment?: IEmployment;
|
|
210
|
+
finra_affiliated?: IFinra;
|
|
211
|
+
ten_percent_shareholder?: ITenPercentShareholder;
|
|
212
|
+
beneficiary?: IBeneficiary;
|
|
213
|
+
investment_objectives?: IInvestmentObjectives;
|
|
214
|
+
accredited_investor?: IAccreditedInvestor;
|
|
215
|
+
reg_cf?: IRegCF;
|
|
216
|
+
irs_backup_withholding?: boolean;
|
|
217
|
+
educational_materials?: boolean;
|
|
218
|
+
cancelation_restrictions?: boolean;
|
|
219
|
+
resell_difficulties?: boolean;
|
|
220
|
+
risk_involved?: boolean;
|
|
221
|
+
no_legal_advices_from_company?: boolean;
|
|
222
|
+
/** Answers to fund-defined custom onboarding questions, keyed by label-derived slug. */
|
|
223
|
+
custom_fields?: Record<string, string | number | boolean>;
|
|
224
|
+
total_distributions?: number;
|
|
225
|
+
total_investments_12_months?: number;
|
|
226
|
+
total_investments?: number;
|
|
227
|
+
kyc_status?: InvestKycTypes;
|
|
228
|
+
kyc_data?: IKycData[];
|
|
229
|
+
accreditation_status?: AccreditationTypes;
|
|
230
|
+
accreditation_data?: IAccreditationData[];
|
|
231
|
+
wallet_id?: number;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export interface IProfile {
|
|
235
|
+
accreditation_status: AccreditationTypes;
|
|
236
|
+
accreditation_data: IAccreditationData[];
|
|
237
|
+
accreditation_id: string;
|
|
238
|
+
id: number;
|
|
239
|
+
user_id: number;
|
|
240
|
+
escrow_id: string;
|
|
241
|
+
kyc_at: string;
|
|
242
|
+
accreditation_at: string;
|
|
243
|
+
created_at: string;
|
|
244
|
+
updated_at: string;
|
|
245
|
+
kyc_status: InvestKycTypes;
|
|
246
|
+
kyc_id: string;
|
|
247
|
+
kyc_data: IKycData[];
|
|
248
|
+
type: string;
|
|
249
|
+
data: IOwnership;
|
|
250
|
+
total_investments: number;
|
|
251
|
+
total_investments_12_months: number;
|
|
252
|
+
total_distributions: number;
|
|
253
|
+
avarange_annual: number;
|
|
254
|
+
wallet_id: number;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export interface IUser {
|
|
258
|
+
id: number;
|
|
259
|
+
first_name: string;
|
|
260
|
+
last_name: string;
|
|
261
|
+
phone: string;
|
|
262
|
+
created_at: string;
|
|
263
|
+
updated_at: string;
|
|
264
|
+
image_link_id: string;
|
|
265
|
+
profiles: IProfileFormatted[];
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
export interface IUserFormatted extends IUser {
|
|
269
|
+
fullName: string;
|
|
270
|
+
createdAtFormattedShortMonth: string;
|
|
271
|
+
phoneFormatted?: string;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
export interface IProfileList {
|
|
275
|
+
id: number;
|
|
276
|
+
label: string;
|
|
277
|
+
value: string;
|
|
278
|
+
action?: IProfileListAction;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
export interface IProfileListAction {
|
|
282
|
+
type: string;
|
|
283
|
+
url: string;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export interface ISchema {
|
|
287
|
+
$schema: string;
|
|
288
|
+
definitions: {
|
|
289
|
+
Individual?: {
|
|
290
|
+
properties: Record<string, any>;
|
|
291
|
+
type: string;
|
|
292
|
+
required?: string[];
|
|
293
|
+
};
|
|
294
|
+
RegCF?: {
|
|
295
|
+
properties: Record<string, any>;
|
|
296
|
+
type: string;
|
|
297
|
+
required?: string[];
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
$ref: string;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
export interface IWallet {
|
|
304
|
+
id: number;
|
|
305
|
+
status: string;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
export interface IBackgroundInfo {
|
|
309
|
+
reg_cf?: {
|
|
310
|
+
net_worth: number;
|
|
311
|
+
annual_income: number;
|
|
312
|
+
limitation_rule: boolean;
|
|
313
|
+
invested_external: number;
|
|
314
|
+
limitation_rule_confirmation: boolean;
|
|
315
|
+
};
|
|
316
|
+
accredited_investor?: {
|
|
317
|
+
explanation: string;
|
|
318
|
+
is_accredited: boolean;
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
export interface IProfileFormatted extends IProfileIndividual {
|
|
323
|
+
isTypeIndividual: boolean;
|
|
324
|
+
isTypeEntity: boolean;
|
|
325
|
+
isTypeTrust: boolean;
|
|
326
|
+
isTypeSdira: boolean;
|
|
327
|
+
isTypeSolo401k: boolean;
|
|
328
|
+
isKycApproved: boolean;
|
|
329
|
+
isKycInProgress: boolean;
|
|
330
|
+
isKycPending: boolean;
|
|
331
|
+
isKycDeclined: boolean;
|
|
332
|
+
isKycNew: boolean;
|
|
333
|
+
isKycNone: boolean;
|
|
334
|
+
isAccreditationApproved: boolean;
|
|
335
|
+
isAccreditationInProgress: boolean;
|
|
336
|
+
isAccreditationPending: boolean;
|
|
337
|
+
isAccreditationDeclined: boolean;
|
|
338
|
+
isAccreditationNew: boolean;
|
|
339
|
+
isAccreditationInfoRequired: boolean;
|
|
340
|
+
isAccreditationExpired: boolean;
|
|
341
|
+
isCanCallKycPlaid: boolean;
|
|
342
|
+
hasBeneficials: boolean;
|
|
343
|
+
beneficialsCount: number;
|
|
344
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ISession } from './authTypes.ts';
|
|
2
|
+
|
|
3
|
+
export type { IAuthFlow, ILogoutFlow, ISession } from './authTypes.ts';
|
|
4
|
+
|
|
5
|
+
export interface IActivityRow {
|
|
6
|
+
date: string;
|
|
7
|
+
time: string;
|
|
8
|
+
ip: string;
|
|
9
|
+
browser: string;
|
|
10
|
+
id: string;
|
|
11
|
+
current?: boolean;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type ISessionDevice = ISession['devices'][number];
|
|
15
|
+
|
|
16
|
+
export interface ISessionFormatted extends ISession {
|
|
17
|
+
authenticatedAtDate: string;
|
|
18
|
+
authenticatedAtTime: string;
|
|
19
|
+
devicesFormatted: IActivityRow[];
|
|
20
|
+
}
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
export const VaultProtocolStates = {
|
|
2
|
+
unconfirmed: 'unconfirmed',
|
|
3
|
+
pending: 'pending',
|
|
4
|
+
claimable: 'claimable',
|
|
5
|
+
claimed: 'claimed',
|
|
6
|
+
} as const;
|
|
7
|
+
|
|
8
|
+
export type VaultProtocolState =
|
|
9
|
+
typeof VaultProtocolStates[keyof typeof VaultProtocolStates];
|
|
10
|
+
|
|
11
|
+
export const VaultOperationStatuses = {
|
|
12
|
+
created: 'created',
|
|
13
|
+
submitted: 'submitted',
|
|
14
|
+
confirmed: 'confirmed',
|
|
15
|
+
failed: 'failed',
|
|
16
|
+
} as const;
|
|
17
|
+
|
|
18
|
+
export type VaultOperationStatus =
|
|
19
|
+
typeof VaultOperationStatuses[keyof typeof VaultOperationStatuses];
|
|
20
|
+
|
|
21
|
+
export type VaultOperationStage =
|
|
22
|
+
| 'awaiting_signature'
|
|
23
|
+
| 'signing_or_submitting'
|
|
24
|
+
| 'detected_provisional'
|
|
25
|
+
| 'expired'
|
|
26
|
+
| 'rejected'
|
|
27
|
+
| 'abandoned'
|
|
28
|
+
| VaultOperationStatus;
|
|
29
|
+
|
|
30
|
+
export interface VaultOperationFinality {
|
|
31
|
+
block_number: number | string;
|
|
32
|
+
block_hash: string;
|
|
33
|
+
confirmation_count: number;
|
|
34
|
+
confirmation_target: number;
|
|
35
|
+
finalized: boolean;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface VaultLifecycleOperation {
|
|
39
|
+
id: number;
|
|
40
|
+
status: VaultOperationStatus;
|
|
41
|
+
stage?: VaultOperationStage;
|
|
42
|
+
failure_reason?: string;
|
|
43
|
+
amount_raw?: string;
|
|
44
|
+
tx_hash?: string;
|
|
45
|
+
transaction_to_address?: string;
|
|
46
|
+
call_target_address?: string;
|
|
47
|
+
selector?: string;
|
|
48
|
+
can_abandon?: boolean;
|
|
49
|
+
finality?: VaultOperationFinality;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface VaultSigningPayload {
|
|
53
|
+
reused: boolean;
|
|
54
|
+
operation_id: number;
|
|
55
|
+
stage: VaultOperationStage;
|
|
56
|
+
chain: string;
|
|
57
|
+
from_address: string;
|
|
58
|
+
transaction_to_address: string;
|
|
59
|
+
transaction_call_data: string;
|
|
60
|
+
call_target_address: string;
|
|
61
|
+
contract_function_selector: string;
|
|
62
|
+
call_data: string;
|
|
63
|
+
logical_call_data: string;
|
|
64
|
+
amount_raw: string;
|
|
65
|
+
confirmation_target: number;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export interface VaultAssetIdentity {
|
|
69
|
+
symbol: string;
|
|
70
|
+
address: string;
|
|
71
|
+
decimals: number;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export interface VaultDeployment {
|
|
75
|
+
contract_id: number;
|
|
76
|
+
status: string;
|
|
77
|
+
chain: string;
|
|
78
|
+
address: string;
|
|
79
|
+
asset: VaultAssetIdentity;
|
|
80
|
+
share: VaultAssetIdentity;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface VaultRedemptionEstimate {
|
|
84
|
+
nav_record_id: number;
|
|
85
|
+
nav_version: number;
|
|
86
|
+
nav_usdc_raw: string;
|
|
87
|
+
valuation_block_number: string;
|
|
88
|
+
valuation_as_of: string;
|
|
89
|
+
asset_amount_raw: string;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface VaultRedemptionFinal {
|
|
93
|
+
asset_amount_raw: string;
|
|
94
|
+
pricing_source?: string | null;
|
|
95
|
+
dealing_price_usdc_raw?: string | null;
|
|
96
|
+
priced_by_user_id?: number | null;
|
|
97
|
+
priced_request_effect_id?: number | null;
|
|
98
|
+
priced_at?: string | null;
|
|
99
|
+
nav_record_id?: number | null;
|
|
100
|
+
nav_version?: number | null;
|
|
101
|
+
nav_usdc_raw?: string | null;
|
|
102
|
+
valuation_block_number?: string | null;
|
|
103
|
+
valuation_as_of?: string | null;
|
|
104
|
+
delta_from_estimate_raw: string | null;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export type VaultClaimDirection = 'deposit' | 'redemption';
|
|
108
|
+
export interface VaultRedemption {
|
|
109
|
+
id: number;
|
|
110
|
+
offer_id?: number;
|
|
111
|
+
profile_id?: number;
|
|
112
|
+
investment_id?: number | null;
|
|
113
|
+
vault_contract_id?: number;
|
|
114
|
+
request_origin: 'application' | 'chain';
|
|
115
|
+
request_effect_id: number | null;
|
|
116
|
+
request_effect_state?: 'assigned' | 'unassigned';
|
|
117
|
+
status?: string;
|
|
118
|
+
pricing_status: 'awaiting_dealing_nav' | 'priced';
|
|
119
|
+
protocol_state: VaultProtocolState;
|
|
120
|
+
share_amount_raw: string;
|
|
121
|
+
pending_shares_raw: string;
|
|
122
|
+
claimable_shares_raw: string;
|
|
123
|
+
claimable_assets_raw: string;
|
|
124
|
+
claimed_shares_raw: string;
|
|
125
|
+
claimed_assets_raw: string;
|
|
126
|
+
liquidity_shortfall_raw?: string;
|
|
127
|
+
request_locked_at?: string | null;
|
|
128
|
+
estimate: VaultRedemptionEstimate | null;
|
|
129
|
+
dealing_cutoff: {
|
|
130
|
+
block_number: string;
|
|
131
|
+
at: string;
|
|
132
|
+
} | null;
|
|
133
|
+
final: VaultRedemptionFinal | null;
|
|
134
|
+
operations: {
|
|
135
|
+
request: VaultLifecycleOperation | null;
|
|
136
|
+
fulfillment: VaultLifecycleOperation | null;
|
|
137
|
+
claim: VaultLifecycleOperation | null;
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export interface VaultPosition {
|
|
142
|
+
offer_id: number;
|
|
143
|
+
profile_id: number;
|
|
144
|
+
vault: {
|
|
145
|
+
deployment: VaultDeployment;
|
|
146
|
+
deposit: {
|
|
147
|
+
investment_id: number;
|
|
148
|
+
protocol_state: VaultProtocolState;
|
|
149
|
+
request_origin: 'application' | 'chain';
|
|
150
|
+
request_effect_id: number | null;
|
|
151
|
+
request_effect_state?: 'assigned' | 'unassigned';
|
|
152
|
+
request_controller: {
|
|
153
|
+
chain_account_id: number;
|
|
154
|
+
address: string;
|
|
155
|
+
};
|
|
156
|
+
price_source: string | null;
|
|
157
|
+
price_usdc_raw: string;
|
|
158
|
+
nav_record_id: number | null;
|
|
159
|
+
nav_version: number | null;
|
|
160
|
+
priced_at: string | null;
|
|
161
|
+
custody: {
|
|
162
|
+
state: 'unfunded' | 'funding' | 'funded' | 'held' | 'refunding' | 'refund_locked' | 'released' | 'refunded';
|
|
163
|
+
wallet_address: string | null;
|
|
164
|
+
funded_at: string | null;
|
|
165
|
+
refund_locked_at: string | null;
|
|
166
|
+
released_at: string | null;
|
|
167
|
+
refunded_at: string | null;
|
|
168
|
+
};
|
|
169
|
+
request_locked_at: string | null;
|
|
170
|
+
asset_amount_raw: string;
|
|
171
|
+
share_amount_raw: string;
|
|
172
|
+
pending_assets_raw: string;
|
|
173
|
+
claimable_assets_raw: string;
|
|
174
|
+
claimable_shares_raw: string;
|
|
175
|
+
claimed_assets_raw: string;
|
|
176
|
+
claimed_shares_raw: string;
|
|
177
|
+
controller_aggregate?: {
|
|
178
|
+
pending_assets_raw: string;
|
|
179
|
+
claimable_assets_raw: string;
|
|
180
|
+
unassigned_pending_assets_raw: string;
|
|
181
|
+
unassigned_claimable_assets_raw: string;
|
|
182
|
+
};
|
|
183
|
+
operations: Record<string, VaultLifecycleOperation | null>;
|
|
184
|
+
} | null;
|
|
185
|
+
position: {
|
|
186
|
+
share_balance_raw: string;
|
|
187
|
+
historical_claimed_shares_raw: string;
|
|
188
|
+
available_to_redeem_shares_raw: string;
|
|
189
|
+
};
|
|
190
|
+
redemptions: VaultRedemption[];
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export interface CreateVaultRedemptionRequest {
|
|
195
|
+
offer_id: number;
|
|
196
|
+
shares_raw: string;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export interface ArmVaultOperationRequest {
|
|
200
|
+
operation_id: number;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export interface VaultLifecycleStatus {
|
|
204
|
+
business_id?: number;
|
|
205
|
+
action: string;
|
|
206
|
+
vault_contract_id?: number;
|
|
207
|
+
profile_id?: number;
|
|
208
|
+
direction?: 'deposit' | 'redemption';
|
|
209
|
+
vault_request_origin?: string;
|
|
210
|
+
can_fund?: boolean;
|
|
211
|
+
can_request?: boolean;
|
|
212
|
+
funding_blocking_reason?: string | null;
|
|
213
|
+
protocol_state?: VaultProtocolState;
|
|
214
|
+
asset_amount_raw?: string;
|
|
215
|
+
share_amount_raw?: string;
|
|
216
|
+
pending_assets_raw?: string;
|
|
217
|
+
pending_shares_raw?: string;
|
|
218
|
+
claimable_assets_raw?: string;
|
|
219
|
+
claimable_shares_raw?: string;
|
|
220
|
+
custody_address?: string;
|
|
221
|
+
custody_funded_at?: string | null;
|
|
222
|
+
custody_refund_locked_at?: string | null;
|
|
223
|
+
custody_released_at?: string | null;
|
|
224
|
+
custody_refunded_at?: string | null;
|
|
225
|
+
request_locked_at?: string | null;
|
|
226
|
+
requested_at?: string | null;
|
|
227
|
+
request_effect_id?: number | null;
|
|
228
|
+
operation: VaultLifecycleOperation | null;
|
|
229
|
+
reconciliation?: {
|
|
230
|
+
vault_contract_id: number;
|
|
231
|
+
chain: string;
|
|
232
|
+
vault_address: string;
|
|
233
|
+
request_controller_address: string;
|
|
234
|
+
direction: 'deposit' | 'redemption';
|
|
235
|
+
observed_block: number;
|
|
236
|
+
observed_block_hash: string;
|
|
237
|
+
share_balance_raw: string;
|
|
238
|
+
pending_raw: string;
|
|
239
|
+
claimable_raw: string;
|
|
240
|
+
assigned_pending_raw: string;
|
|
241
|
+
assigned_claimable_raw: string;
|
|
242
|
+
unassigned_pending_raw: string;
|
|
243
|
+
unassigned_claimable_raw: string;
|
|
244
|
+
unassigned_effect_ids: number[];
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
export interface VaultCustodyFundingRequest {
|
|
249
|
+
idempotency_key: string;
|
|
250
|
+
}
|