@clear-street/clearstreet 0.96.0 → 0.98.0
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 +24 -0
- package/package.json +1 -1
- package/resources/v1/accounts.d.mts +13 -1
- package/resources/v1/accounts.d.mts.map +1 -1
- package/resources/v1/accounts.d.ts +13 -1
- package/resources/v1/accounts.d.ts.map +1 -1
- package/resources/v1/calendar.d.mts +7 -1
- package/resources/v1/calendar.d.mts.map +1 -1
- package/resources/v1/calendar.d.ts +7 -1
- package/resources/v1/calendar.d.ts.map +1 -1
- package/resources/v1/index.d.mts +3 -2
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +3 -2
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +3 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +2 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/instrument-data/instrument-data.d.mts +12 -0
- package/resources/v1/instrument-data/instrument-data.d.mts.map +1 -1
- package/resources/v1/instrument-data/instrument-data.d.ts +12 -0
- package/resources/v1/instrument-data/instrument-data.d.ts.map +1 -1
- package/resources/v1/instrument-data/instrument-data.js +12 -0
- package/resources/v1/instrument-data/instrument-data.js.map +1 -1
- package/resources/v1/instrument-data/instrument-data.mjs +12 -0
- package/resources/v1/instrument-data/instrument-data.mjs.map +1 -1
- package/resources/v1/instrument-data/news.d.mts +3 -0
- package/resources/v1/instrument-data/news.d.mts.map +1 -1
- package/resources/v1/instrument-data/news.d.ts +3 -0
- package/resources/v1/instrument-data/news.d.ts.map +1 -1
- package/resources/v1/instrument-data/news.js +3 -0
- package/resources/v1/instrument-data/news.js.map +1 -1
- package/resources/v1/instrument-data/news.mjs +3 -0
- package/resources/v1/instrument-data/news.mjs.map +1 -1
- package/resources/v1/instruments.d.mts +5 -2
- package/resources/v1/instruments.d.mts.map +1 -1
- package/resources/v1/instruments.d.ts +5 -2
- package/resources/v1/instruments.d.ts.map +1 -1
- package/resources/v1/omni-feed.d.mts +173 -0
- package/resources/v1/omni-feed.d.mts.map +1 -0
- package/resources/v1/omni-feed.d.ts +173 -0
- package/resources/v1/omni-feed.d.ts.map +1 -0
- package/resources/v1/omni-feed.js +67 -0
- package/resources/v1/omni-feed.js.map +1 -0
- package/resources/v1/omni-feed.mjs +63 -0
- package/resources/v1/omni-feed.mjs.map +1 -0
- package/resources/v1/orders.d.mts +29 -4
- package/resources/v1/orders.d.mts.map +1 -1
- package/resources/v1/orders.d.ts +29 -4
- package/resources/v1/orders.d.ts.map +1 -1
- package/resources/v1/private-markets/companies.d.mts +368 -0
- package/resources/v1/private-markets/companies.d.mts.map +1 -0
- package/resources/v1/private-markets/companies.d.ts +368 -0
- package/resources/v1/private-markets/companies.d.ts.map +1 -0
- package/resources/v1/private-markets/companies.js +9 -0
- package/resources/v1/private-markets/companies.js.map +1 -0
- package/resources/v1/private-markets/companies.mjs +5 -0
- package/resources/v1/private-markets/companies.mjs.map +1 -0
- package/resources/v1/private-markets/index.d.mts +5 -2
- package/resources/v1/private-markets/index.d.mts.map +1 -1
- package/resources/v1/private-markets/index.d.ts +5 -2
- package/resources/v1/private-markets/index.d.ts.map +1 -1
- package/resources/v1/private-markets/index.js +7 -1
- package/resources/v1/private-markets/index.js.map +1 -1
- package/resources/v1/private-markets/index.mjs +4 -1
- package/resources/v1/private-markets/index.mjs.map +1 -1
- package/resources/v1/private-markets/iois.d.mts +64 -0
- package/resources/v1/private-markets/iois.d.mts.map +1 -0
- package/resources/v1/private-markets/iois.d.ts +64 -0
- package/resources/v1/private-markets/iois.d.ts.map +1 -0
- package/resources/v1/private-markets/iois.js +9 -0
- package/resources/v1/private-markets/iois.js.map +1 -0
- package/resources/v1/private-markets/iois.mjs +5 -0
- package/resources/v1/private-markets/iois.mjs.map +1 -0
- package/resources/v1/private-markets/offerings.d.mts +38 -1
- package/resources/v1/private-markets/offerings.d.mts.map +1 -1
- package/resources/v1/private-markets/offerings.d.ts +38 -1
- package/resources/v1/private-markets/offerings.d.ts.map +1 -1
- package/resources/v1/private-markets/private-markets.d.mts +217 -2
- package/resources/v1/private-markets/private-markets.d.mts.map +1 -1
- package/resources/v1/private-markets/private-markets.d.ts +217 -2
- package/resources/v1/private-markets/private-markets.d.ts.map +1 -1
- package/resources/v1/private-markets/private-markets.js +117 -0
- package/resources/v1/private-markets/private-markets.js.map +1 -1
- package/resources/v1/private-markets/private-markets.mjs +117 -0
- package/resources/v1/private-markets/private-markets.mjs.map +1 -1
- package/resources/v1/private-markets/spvs.d.mts +158 -0
- package/resources/v1/private-markets/spvs.d.mts.map +1 -0
- package/resources/v1/private-markets/spvs.d.ts +158 -0
- package/resources/v1/private-markets/spvs.d.ts.map +1 -0
- package/resources/v1/private-markets/spvs.js +9 -0
- package/resources/v1/private-markets/spvs.js.map +1 -0
- package/resources/v1/private-markets/spvs.mjs +5 -0
- package/resources/v1/private-markets/spvs.mjs.map +1 -0
- package/resources/v1/v1.d.mts +8 -4
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +8 -4
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +4 -0
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +5 -1
- package/resources/v1/v1.mjs.map +1 -1
- package/src/resources/v1/accounts.ts +16 -0
- package/src/resources/v1/calendar.ts +8 -1
- package/src/resources/v1/index.ts +26 -1
- package/src/resources/v1/instrument-data/instrument-data.ts +12 -0
- package/src/resources/v1/instrument-data/news.ts +3 -0
- package/src/resources/v1/instruments.ts +5 -2
- package/src/resources/v1/omni-feed.ts +218 -0
- package/src/resources/v1/orders.ts +38 -4
- package/src/resources/v1/private-markets/companies.ts +483 -0
- package/src/resources/v1/private-markets/index.ts +55 -1
- package/src/resources/v1/private-markets/iois.ts +91 -0
- package/src/resources/v1/private-markets/offerings.ts +46 -0
- package/src/resources/v1/private-markets/private-markets.ts +374 -0
- package/src/resources/v1/private-markets/spvs.ts +201 -0
- package/src/resources/v1/v1.ts +56 -2
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,11 +1,47 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as Shared from '../../shared';
|
|
5
|
+
import * as CompaniesAPI from './companies';
|
|
6
|
+
import {
|
|
7
|
+
Companies,
|
|
8
|
+
CompanyCategory,
|
|
9
|
+
CompanyCitation,
|
|
10
|
+
CompanyCustomer,
|
|
11
|
+
CompanyDetail,
|
|
12
|
+
CompanyDocumentPreview,
|
|
13
|
+
CompanyDocumentRelation,
|
|
14
|
+
CompanyDocumentResource,
|
|
15
|
+
CompanyDocumentType,
|
|
16
|
+
CompanyHeadquarters,
|
|
17
|
+
CompanyLegalEntity,
|
|
18
|
+
CompanyMetricPoint,
|
|
19
|
+
CompanyMetricSeries,
|
|
20
|
+
CompanyNarrativeSection,
|
|
21
|
+
CompanyPerson,
|
|
22
|
+
CompanyPersonRole,
|
|
23
|
+
CompanyProfileResource,
|
|
24
|
+
CompanySocialLink,
|
|
25
|
+
CompanySocialType,
|
|
26
|
+
MetricFrequency,
|
|
27
|
+
MetricKey,
|
|
28
|
+
} from './companies';
|
|
29
|
+
import * as IoisAPI from './iois';
|
|
30
|
+
import {
|
|
31
|
+
IoiCompanyResource,
|
|
32
|
+
IoiListingResource,
|
|
33
|
+
IoiListingResourceList,
|
|
34
|
+
IoiOfferingResource,
|
|
35
|
+
IoiResource,
|
|
36
|
+
Iois,
|
|
37
|
+
NdaAcceptanceResource,
|
|
38
|
+
} from './iois';
|
|
4
39
|
import * as OfferingsAPI from './offerings';
|
|
5
40
|
import {
|
|
6
41
|
Currency,
|
|
7
42
|
MetricUnit,
|
|
8
43
|
MetricValueType,
|
|
44
|
+
NdaAgreementResource,
|
|
9
45
|
OfferingCard,
|
|
10
46
|
OfferingCardList,
|
|
11
47
|
OfferingClass,
|
|
@@ -26,19 +62,348 @@ import {
|
|
|
26
62
|
SpvStatus,
|
|
27
63
|
ValuationBasis,
|
|
28
64
|
} from './offerings';
|
|
65
|
+
import * as SpvsAPI from './spvs';
|
|
66
|
+
import { ChargedBy, FeeFrequency, FeeType, SpvDetail, SpvFeeTermResource, Spvs } from './spvs';
|
|
67
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
68
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
69
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
70
|
+
import { path } from '../../../internal/utils/path';
|
|
29
71
|
|
|
72
|
+
/**
|
|
73
|
+
* Browse private-market offerings and their indicative terms. Access requires the account holder to hold an accreditation attestation.
|
|
74
|
+
*/
|
|
30
75
|
export class PrivateMarkets extends APIResource {
|
|
76
|
+
companies: CompaniesAPI.Companies = new CompaniesAPI.Companies(this._client);
|
|
77
|
+
iois: IoisAPI.Iois = new IoisAPI.Iois(this._client);
|
|
31
78
|
offerings: OfferingsAPI.Offerings = new OfferingsAPI.Offerings(this._client);
|
|
79
|
+
spvs: SpvsAPI.Spvs = new SpvsAPI.Spvs(this._client);
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Create an IOI for a visible upcoming offering.
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* ```ts
|
|
86
|
+
* const response = await client.v1.privateMarkets.createIoi({
|
|
87
|
+
* account_id: 0,
|
|
88
|
+
* notional_amount: '100000.00',
|
|
89
|
+
* offering_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
90
|
+
* });
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
93
|
+
createIoi(
|
|
94
|
+
params: PrivateMarketCreateIoiParams,
|
|
95
|
+
options?: RequestOptions,
|
|
96
|
+
): APIPromise<PrivateMarketCreateIoiResponse> {
|
|
97
|
+
const { account_id, ...body } = params;
|
|
98
|
+
return this._client.post('/v1/private-markets/iois', { query: { account_id }, body, ...options });
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Withdraw a live IOI. Repeating a withdrawal returns 404.
|
|
103
|
+
*
|
|
104
|
+
* @example
|
|
105
|
+
* ```ts
|
|
106
|
+
* await client.v1.privateMarkets.deleteIoi(
|
|
107
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
108
|
+
* { account_id: 0 },
|
|
109
|
+
* );
|
|
110
|
+
* ```
|
|
111
|
+
*/
|
|
112
|
+
deleteIoi(ioiID: string, params: PrivateMarketDeleteIoiParams, options?: RequestOptions): APIPromise<void> {
|
|
113
|
+
const { account_id } = params;
|
|
114
|
+
return this._client.delete(path`/v1/private-markets/iois/${ioiID}`, {
|
|
115
|
+
query: { account_id },
|
|
116
|
+
...options,
|
|
117
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Fetch one published private-market company with its complete versioned profile.
|
|
123
|
+
* Requires the account holder to have attested. Returns `404` when the company
|
|
124
|
+
* does not exist or is not yet published.
|
|
125
|
+
*
|
|
126
|
+
* @example
|
|
127
|
+
* ```ts
|
|
128
|
+
* const response =
|
|
129
|
+
* await client.v1.privateMarkets.getCompanyByID(
|
|
130
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
131
|
+
* { account_id: 0 },
|
|
132
|
+
* );
|
|
133
|
+
* ```
|
|
134
|
+
*/
|
|
135
|
+
getCompanyByID(
|
|
136
|
+
companyID: string,
|
|
137
|
+
query: PrivateMarketGetCompanyByIDParams,
|
|
138
|
+
options?: RequestOptions,
|
|
139
|
+
): APIPromise<PrivateMarketGetCompanyByIDResponse> {
|
|
140
|
+
return this._client.get(path`/v1/private-markets/companies/${companyID}`, { query, ...options });
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* List every live IOI for the caller's account-holder entity.
|
|
145
|
+
*
|
|
146
|
+
* @example
|
|
147
|
+
* ```ts
|
|
148
|
+
* const response = await client.v1.privateMarkets.getIois({
|
|
149
|
+
* account_id: 0,
|
|
150
|
+
* });
|
|
151
|
+
* ```
|
|
152
|
+
*/
|
|
153
|
+
getIois(
|
|
154
|
+
query: PrivateMarketGetIoisParams,
|
|
155
|
+
options?: RequestOptions,
|
|
156
|
+
): APIPromise<PrivateMarketGetIoisResponse> {
|
|
157
|
+
return this._client.get('/v1/private-markets/iois', { query, ...options });
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Fetch one private-market SPV's complete economics and fee schedule. Requires the
|
|
162
|
+
* account holder to have attested. Returns `404` unless the SPV is `OPEN` and
|
|
163
|
+
* attached to a currently visible `ACTIVE` offering.
|
|
164
|
+
*
|
|
165
|
+
* @example
|
|
166
|
+
* ```ts
|
|
167
|
+
* const response = await client.v1.privateMarkets.getSpvByID(
|
|
168
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
169
|
+
* { account_id: 0 },
|
|
170
|
+
* );
|
|
171
|
+
* ```
|
|
172
|
+
*/
|
|
173
|
+
getSpvByID(
|
|
174
|
+
spvID: string,
|
|
175
|
+
query: PrivateMarketGetSpvByIDParams,
|
|
176
|
+
options?: RequestOptions,
|
|
177
|
+
): APIPromise<PrivateMarketGetSpvByIDResponse> {
|
|
178
|
+
return this._client.get(path`/v1/private-markets/spvs/${spvID}`, { query, ...options });
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
/**
|
|
182
|
+
* Update an IOI's notional, accepting the current NDA revision when required.
|
|
183
|
+
*
|
|
184
|
+
* @example
|
|
185
|
+
* ```ts
|
|
186
|
+
* const response = await client.v1.privateMarkets.updateIoi(
|
|
187
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
188
|
+
* { account_id: 0, notional_amount: '125000.00' },
|
|
189
|
+
* );
|
|
190
|
+
* ```
|
|
191
|
+
*/
|
|
192
|
+
updateIoi(
|
|
193
|
+
ioiID: string,
|
|
194
|
+
params: PrivateMarketUpdateIoiParams,
|
|
195
|
+
options?: RequestOptions,
|
|
196
|
+
): APIPromise<PrivateMarketUpdateIoiResponse> {
|
|
197
|
+
const { account_id, ...body } = params;
|
|
198
|
+
return this._client.patch(path`/v1/private-markets/iois/${ioiID}`, {
|
|
199
|
+
query: { account_id },
|
|
200
|
+
body,
|
|
201
|
+
...options,
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export interface PrivateMarketCreateIoiResponse extends Shared.BaseResponse {
|
|
207
|
+
/**
|
|
208
|
+
* IOI list item with the campaign identity needed to render it.
|
|
209
|
+
*/
|
|
210
|
+
data: IoisAPI.IoiListingResource;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export interface PrivateMarketGetCompanyByIDResponse extends Shared.BaseResponse {
|
|
214
|
+
/**
|
|
215
|
+
* A company's identity and its complete published profile.
|
|
216
|
+
*/
|
|
217
|
+
data: CompaniesAPI.CompanyDetail;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export interface PrivateMarketGetIoisResponse extends Shared.BaseResponse {
|
|
221
|
+
data: IoisAPI.IoiListingResourceList;
|
|
32
222
|
}
|
|
33
223
|
|
|
224
|
+
export interface PrivateMarketGetSpvByIDResponse extends Shared.BaseResponse {
|
|
225
|
+
/**
|
|
226
|
+
* An OPEN SPV's identity, exact economics, and typed fee schedule.
|
|
227
|
+
*/
|
|
228
|
+
data: SpvsAPI.SpvDetail;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
export interface PrivateMarketUpdateIoiResponse extends Shared.BaseResponse {
|
|
232
|
+
/**
|
|
233
|
+
* IOI list item with the campaign identity needed to render it.
|
|
234
|
+
*/
|
|
235
|
+
data: IoisAPI.IoiListingResource;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export interface PrivateMarketCreateIoiParams {
|
|
239
|
+
/**
|
|
240
|
+
* Query param
|
|
241
|
+
*/
|
|
242
|
+
account_id: number;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Body param
|
|
246
|
+
*/
|
|
247
|
+
notional_amount: string;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* Body param
|
|
251
|
+
*/
|
|
252
|
+
offering_id: string;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Body param: Required only when the offering's attached SPV has an NDA agreement.
|
|
256
|
+
*/
|
|
257
|
+
nda_acceptance?: PrivateMarketCreateIoiParams.NdaAcceptance | null;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export namespace PrivateMarketCreateIoiParams {
|
|
261
|
+
/**
|
|
262
|
+
* Required only when the offering's attached SPV has an NDA agreement.
|
|
263
|
+
*/
|
|
264
|
+
export interface NdaAcceptance {
|
|
265
|
+
/**
|
|
266
|
+
* Must be true; confirms affirmative assent.
|
|
267
|
+
*/
|
|
268
|
+
accepted: boolean;
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Exact agreement id returned by offering detail.
|
|
272
|
+
*/
|
|
273
|
+
agreement_id: string;
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Must be true; confirms the signer may bind the account-holder entity.
|
|
277
|
+
*/
|
|
278
|
+
authority_confirmed: boolean;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
export interface PrivateMarketDeleteIoiParams {
|
|
283
|
+
account_id: number;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export interface PrivateMarketGetCompanyByIDParams {
|
|
287
|
+
/**
|
|
288
|
+
* Account whose account-holder entity must hold an accreditation attestation to
|
|
289
|
+
* browse private-market offerings.
|
|
290
|
+
*/
|
|
291
|
+
account_id: number;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export interface PrivateMarketGetIoisParams {
|
|
295
|
+
account_id: number;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
export interface PrivateMarketGetSpvByIDParams {
|
|
299
|
+
/**
|
|
300
|
+
* Account whose account-holder entity must hold an accreditation attestation to
|
|
301
|
+
* browse private-market offerings.
|
|
302
|
+
*/
|
|
303
|
+
account_id: number;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
export interface PrivateMarketUpdateIoiParams {
|
|
307
|
+
/**
|
|
308
|
+
* Query param
|
|
309
|
+
*/
|
|
310
|
+
account_id: number;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Body param
|
|
314
|
+
*/
|
|
315
|
+
notional_amount: string;
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Body param: Required when the SPV's current NDA version is newer than the IOI's
|
|
319
|
+
* latest acceptance. Irrelevant acceptances are rejected.
|
|
320
|
+
*/
|
|
321
|
+
nda_acceptance?: PrivateMarketUpdateIoiParams.NdaAcceptance | null;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
export namespace PrivateMarketUpdateIoiParams {
|
|
325
|
+
/**
|
|
326
|
+
* Required when the SPV's current NDA version is newer than the IOI's latest
|
|
327
|
+
* acceptance. Irrelevant acceptances are rejected.
|
|
328
|
+
*/
|
|
329
|
+
export interface NdaAcceptance {
|
|
330
|
+
/**
|
|
331
|
+
* Must be true; confirms affirmative assent.
|
|
332
|
+
*/
|
|
333
|
+
accepted: boolean;
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Exact agreement id returned by offering detail.
|
|
337
|
+
*/
|
|
338
|
+
agreement_id: string;
|
|
339
|
+
|
|
340
|
+
/**
|
|
341
|
+
* Must be true; confirms the signer may bind the account-holder entity.
|
|
342
|
+
*/
|
|
343
|
+
authority_confirmed: boolean;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
PrivateMarkets.Companies = Companies;
|
|
348
|
+
PrivateMarkets.Iois = Iois;
|
|
34
349
|
PrivateMarkets.Offerings = Offerings;
|
|
350
|
+
PrivateMarkets.Spvs = Spvs;
|
|
35
351
|
|
|
36
352
|
export declare namespace PrivateMarkets {
|
|
353
|
+
export {
|
|
354
|
+
type PrivateMarketCreateIoiResponse as PrivateMarketCreateIoiResponse,
|
|
355
|
+
type PrivateMarketGetCompanyByIDResponse as PrivateMarketGetCompanyByIDResponse,
|
|
356
|
+
type PrivateMarketGetIoisResponse as PrivateMarketGetIoisResponse,
|
|
357
|
+
type PrivateMarketGetSpvByIDResponse as PrivateMarketGetSpvByIDResponse,
|
|
358
|
+
type PrivateMarketUpdateIoiResponse as PrivateMarketUpdateIoiResponse,
|
|
359
|
+
type PrivateMarketCreateIoiParams as PrivateMarketCreateIoiParams,
|
|
360
|
+
type PrivateMarketDeleteIoiParams as PrivateMarketDeleteIoiParams,
|
|
361
|
+
type PrivateMarketGetCompanyByIDParams as PrivateMarketGetCompanyByIDParams,
|
|
362
|
+
type PrivateMarketGetIoisParams as PrivateMarketGetIoisParams,
|
|
363
|
+
type PrivateMarketGetSpvByIDParams as PrivateMarketGetSpvByIDParams,
|
|
364
|
+
type PrivateMarketUpdateIoiParams as PrivateMarketUpdateIoiParams,
|
|
365
|
+
};
|
|
366
|
+
|
|
367
|
+
export {
|
|
368
|
+
Companies as Companies,
|
|
369
|
+
type CompanyCategory as CompanyCategory,
|
|
370
|
+
type CompanyCitation as CompanyCitation,
|
|
371
|
+
type CompanyCustomer as CompanyCustomer,
|
|
372
|
+
type CompanyDetail as CompanyDetail,
|
|
373
|
+
type CompanyDocumentPreview as CompanyDocumentPreview,
|
|
374
|
+
type CompanyDocumentRelation as CompanyDocumentRelation,
|
|
375
|
+
type CompanyDocumentResource as CompanyDocumentResource,
|
|
376
|
+
type CompanyDocumentType as CompanyDocumentType,
|
|
377
|
+
type CompanyHeadquarters as CompanyHeadquarters,
|
|
378
|
+
type CompanyLegalEntity as CompanyLegalEntity,
|
|
379
|
+
type CompanyMetricPoint as CompanyMetricPoint,
|
|
380
|
+
type CompanyMetricSeries as CompanyMetricSeries,
|
|
381
|
+
type CompanyNarrativeSection as CompanyNarrativeSection,
|
|
382
|
+
type CompanyPerson as CompanyPerson,
|
|
383
|
+
type CompanyPersonRole as CompanyPersonRole,
|
|
384
|
+
type CompanyProfileResource as CompanyProfileResource,
|
|
385
|
+
type CompanySocialLink as CompanySocialLink,
|
|
386
|
+
type CompanySocialType as CompanySocialType,
|
|
387
|
+
type MetricFrequency as MetricFrequency,
|
|
388
|
+
type MetricKey as MetricKey,
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
export {
|
|
392
|
+
Iois as Iois,
|
|
393
|
+
type IoiCompanyResource as IoiCompanyResource,
|
|
394
|
+
type IoiListingResource as IoiListingResource,
|
|
395
|
+
type IoiListingResourceList as IoiListingResourceList,
|
|
396
|
+
type IoiOfferingResource as IoiOfferingResource,
|
|
397
|
+
type IoiResource as IoiResource,
|
|
398
|
+
type NdaAcceptanceResource as NdaAcceptanceResource,
|
|
399
|
+
};
|
|
400
|
+
|
|
37
401
|
export {
|
|
38
402
|
Offerings as Offerings,
|
|
39
403
|
type Currency as Currency,
|
|
40
404
|
type MetricUnit as MetricUnit,
|
|
41
405
|
type MetricValueType as MetricValueType,
|
|
406
|
+
type NdaAgreementResource as NdaAgreementResource,
|
|
42
407
|
type OfferingCard as OfferingCard,
|
|
43
408
|
type OfferingCardList as OfferingCardList,
|
|
44
409
|
type OfferingClass as OfferingClass,
|
|
@@ -58,4 +423,13 @@ export declare namespace PrivateMarkets {
|
|
|
58
423
|
type OfferingGetOfferingByIDParams as OfferingGetOfferingByIDParams,
|
|
59
424
|
type OfferingGetOfferingsParams as OfferingGetOfferingsParams,
|
|
60
425
|
};
|
|
426
|
+
|
|
427
|
+
export {
|
|
428
|
+
Spvs as Spvs,
|
|
429
|
+
type ChargedBy as ChargedBy,
|
|
430
|
+
type FeeFrequency as FeeFrequency,
|
|
431
|
+
type FeeType as FeeType,
|
|
432
|
+
type SpvDetail as SpvDetail,
|
|
433
|
+
type SpvFeeTermResource as SpvFeeTermResource,
|
|
434
|
+
};
|
|
61
435
|
}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as OfferingsAPI from './offerings';
|
|
5
|
+
|
|
6
|
+
export class Spvs extends APIResource {}
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Party charging a fee.
|
|
10
|
+
*/
|
|
11
|
+
export type ChargedBy = 'FUND_MANAGER' | 'CLEAR_STREET' | 'THIRD_PARTY';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Fee timing/cadence.
|
|
15
|
+
*/
|
|
16
|
+
export type FeeFrequency = 'ONE_TIME' | 'ANNUAL' | 'AT_EXIT' | 'PASS_THROUGH';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Kind of SPV fee.
|
|
20
|
+
*/
|
|
21
|
+
export type FeeType = 'MANAGEMENT' | 'CARRY' | 'PLACEMENT' | 'ADMINISTRATIVE' | 'OTHER';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* An OPEN SPV's identity, exact economics, and typed fee schedule.
|
|
25
|
+
*/
|
|
26
|
+
export interface SpvDetail {
|
|
27
|
+
/**
|
|
28
|
+
* Stable SPV identifier.
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Company whose shares the vehicle holds.
|
|
34
|
+
*/
|
|
35
|
+
company_id: string;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Terms currency.
|
|
39
|
+
*/
|
|
40
|
+
currency: OfferingsAPI.Currency;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Legal/display name.
|
|
44
|
+
*/
|
|
45
|
+
name: string;
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Lifecycle state.
|
|
49
|
+
*/
|
|
50
|
+
status: OfferingsAPI.SpvStatus;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Price per share including fees.
|
|
54
|
+
*/
|
|
55
|
+
all_in_price_per_share?: string | null;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Custodian.
|
|
59
|
+
*/
|
|
60
|
+
custodian_name?: string | null;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Per-share fee.
|
|
64
|
+
*/
|
|
65
|
+
fee_per_share?: string | null;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Typed fee schedule.
|
|
69
|
+
*/
|
|
70
|
+
fee_terms?: Array<SpvFeeTermResource>;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Percentage of dollar allocation funded, derived from the allocation pair.
|
|
74
|
+
*/
|
|
75
|
+
funded_percent?: string | null;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Funding deadline.
|
|
79
|
+
*/
|
|
80
|
+
funding_deadline?: string | null;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* SPV manager.
|
|
84
|
+
*/
|
|
85
|
+
manager_name?: string | null;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Minimum investment amount.
|
|
89
|
+
*/
|
|
90
|
+
minimum_investment_amount?: string | null;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Time the vehicle opened.
|
|
94
|
+
*/
|
|
95
|
+
opened_at?: string | null;
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Price per share excluding fees.
|
|
99
|
+
*/
|
|
100
|
+
price_per_share?: string | null;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Remaining dollar allocation.
|
|
104
|
+
*/
|
|
105
|
+
remaining_allocation_amount?: string | null;
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Remaining share allocation.
|
|
109
|
+
*/
|
|
110
|
+
remaining_share_allocation?: string | null;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* Underlying share class, when specified.
|
|
114
|
+
*/
|
|
115
|
+
share_class?: string | null;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Plain-text vehicle structure.
|
|
119
|
+
*/
|
|
120
|
+
structure_description?: string | null;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Total dollar allocation.
|
|
124
|
+
*/
|
|
125
|
+
total_allocation_amount?: string | null;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Total share allocation.
|
|
129
|
+
*/
|
|
130
|
+
total_share_allocation?: string | null;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Exact company valuation.
|
|
134
|
+
*/
|
|
135
|
+
valuation?: string | null;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Meaning of `valuation`.
|
|
139
|
+
*/
|
|
140
|
+
valuation_basis?: OfferingsAPI.ValuationBasis | null;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* One typed SPV fee term.
|
|
145
|
+
*/
|
|
146
|
+
export interface SpvFeeTermResource {
|
|
147
|
+
/**
|
|
148
|
+
* Charging party.
|
|
149
|
+
*/
|
|
150
|
+
charged_by: ChargedBy;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Terms currency.
|
|
154
|
+
*/
|
|
155
|
+
currency: OfferingsAPI.Currency;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Plain-text fee disclosure.
|
|
159
|
+
*/
|
|
160
|
+
description: string;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Fee kind.
|
|
164
|
+
*/
|
|
165
|
+
fee_type: FeeType;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Timing/cadence.
|
|
169
|
+
*/
|
|
170
|
+
frequency: FeeFrequency;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* Exact fixed amount, when amount-based.
|
|
174
|
+
*/
|
|
175
|
+
amount?: string | null;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Charge duration in years, when specified.
|
|
179
|
+
*/
|
|
180
|
+
duration_years?: string | null;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Carry hurdle as a decimal fraction, when specified.
|
|
184
|
+
*/
|
|
185
|
+
hurdle_rate?: string | null;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Decimal fraction between zero and one, when percentage-based.
|
|
189
|
+
*/
|
|
190
|
+
rate?: string | null;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export declare namespace Spvs {
|
|
194
|
+
export {
|
|
195
|
+
type ChargedBy as ChargedBy,
|
|
196
|
+
type FeeFrequency as FeeFrequency,
|
|
197
|
+
type FeeType as FeeType,
|
|
198
|
+
type SpvDetail as SpvDetail,
|
|
199
|
+
type SpvFeeTermResource as SpvFeeTermResource,
|
|
200
|
+
};
|
|
201
|
+
}
|
package/src/resources/v1/v1.ts
CHANGED
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
AccountGetAccountsResponse,
|
|
14
14
|
AccountGetPortfolioHistoryParams,
|
|
15
15
|
AccountGetPortfolioHistoryResponse,
|
|
16
|
+
AccountHolderEntityKind,
|
|
16
17
|
AccountList,
|
|
17
18
|
AccountPatchAccountByIDParams,
|
|
18
19
|
AccountPatchAccountByIDResponse,
|
|
@@ -71,6 +72,18 @@ import {
|
|
|
71
72
|
OptionsContract,
|
|
72
73
|
OptionsContractList,
|
|
73
74
|
} from './instruments';
|
|
75
|
+
import * as OmniFeedAPI from './omni-feed';
|
|
76
|
+
import {
|
|
77
|
+
FeedItem,
|
|
78
|
+
FeedItemKind,
|
|
79
|
+
FeedItemMetric,
|
|
80
|
+
FeedMetricType,
|
|
81
|
+
FeedPage,
|
|
82
|
+
OmniFeed,
|
|
83
|
+
OmniFeedGetFeedParams,
|
|
84
|
+
OmniFeedGetFeedResponse,
|
|
85
|
+
OmniFeedPostFeedEventParams,
|
|
86
|
+
} from './omni-feed';
|
|
74
87
|
import * as OrdersAPI from './orders';
|
|
75
88
|
import {
|
|
76
89
|
Execution,
|
|
@@ -260,7 +273,20 @@ import {
|
|
|
260
273
|
SuggestedActionsPayload,
|
|
261
274
|
} from './omni-ai/omni-ai';
|
|
262
275
|
import * as PrivateMarketsAPI from './private-markets/private-markets';
|
|
263
|
-
import {
|
|
276
|
+
import {
|
|
277
|
+
PrivateMarketCreateIoiParams,
|
|
278
|
+
PrivateMarketCreateIoiResponse,
|
|
279
|
+
PrivateMarketDeleteIoiParams,
|
|
280
|
+
PrivateMarketGetCompanyByIDParams,
|
|
281
|
+
PrivateMarketGetCompanyByIDResponse,
|
|
282
|
+
PrivateMarketGetIoisParams,
|
|
283
|
+
PrivateMarketGetIoisResponse,
|
|
284
|
+
PrivateMarketGetSpvByIDParams,
|
|
285
|
+
PrivateMarketGetSpvByIDResponse,
|
|
286
|
+
PrivateMarketUpdateIoiParams,
|
|
287
|
+
PrivateMarketUpdateIoiResponse,
|
|
288
|
+
PrivateMarkets,
|
|
289
|
+
} from './private-markets/private-markets';
|
|
264
290
|
|
|
265
291
|
export class V1 extends APIResource {
|
|
266
292
|
accounts: AccountsAPI.Accounts = new AccountsAPI.Accounts(this._client);
|
|
@@ -269,6 +295,7 @@ export class V1 extends APIResource {
|
|
|
269
295
|
instrumentData: InstrumentDataAPI.InstrumentData = new InstrumentDataAPI.InstrumentData(this._client);
|
|
270
296
|
instruments: InstrumentsAPI.Instruments = new InstrumentsAPI.Instruments(this._client);
|
|
271
297
|
omniAI: OmniAIAPI.OmniAI = new OmniAIAPI.OmniAI(this._client);
|
|
298
|
+
omniFeed: OmniFeedAPI.OmniFeed = new OmniFeedAPI.OmniFeed(this._client);
|
|
272
299
|
orders: OrdersAPI.Orders = new OrdersAPI.Orders(this._client);
|
|
273
300
|
positions: PositionsAPI.Positions = new PositionsAPI.Positions(this._client);
|
|
274
301
|
privateMarkets: PrivateMarketsAPI.PrivateMarkets = new PrivateMarketsAPI.PrivateMarkets(this._client);
|
|
@@ -292,6 +319,7 @@ V1.Calendar = Calendar;
|
|
|
292
319
|
V1.InstrumentData = InstrumentData;
|
|
293
320
|
V1.Instruments = Instruments;
|
|
294
321
|
V1.OmniAI = OmniAI;
|
|
322
|
+
V1.OmniFeed = OmniFeed;
|
|
295
323
|
V1.Orders = Orders;
|
|
296
324
|
V1.Positions = Positions;
|
|
297
325
|
V1.PrivateMarkets = PrivateMarkets;
|
|
@@ -306,6 +334,7 @@ export declare namespace V1 {
|
|
|
306
334
|
type Account as Account,
|
|
307
335
|
type AccountBalances as AccountBalances,
|
|
308
336
|
type AccountBalancesSod as AccountBalancesSod,
|
|
337
|
+
type AccountHolderEntityKind as AccountHolderEntityKind,
|
|
309
338
|
type AccountList as AccountList,
|
|
310
339
|
type AccountSettings as AccountSettings,
|
|
311
340
|
type AccountStatus as AccountStatus,
|
|
@@ -446,6 +475,18 @@ export declare namespace V1 {
|
|
|
446
475
|
type SuggestedActionsPayload as SuggestedActionsPayload,
|
|
447
476
|
};
|
|
448
477
|
|
|
478
|
+
export {
|
|
479
|
+
OmniFeed as OmniFeed,
|
|
480
|
+
type FeedItem as FeedItem,
|
|
481
|
+
type FeedItemKind as FeedItemKind,
|
|
482
|
+
type FeedItemMetric as FeedItemMetric,
|
|
483
|
+
type FeedMetricType as FeedMetricType,
|
|
484
|
+
type FeedPage as FeedPage,
|
|
485
|
+
type OmniFeedGetFeedResponse as OmniFeedGetFeedResponse,
|
|
486
|
+
type OmniFeedGetFeedParams as OmniFeedGetFeedParams,
|
|
487
|
+
type OmniFeedPostFeedEventParams as OmniFeedPostFeedEventParams,
|
|
488
|
+
};
|
|
489
|
+
|
|
449
490
|
export {
|
|
450
491
|
Orders as Orders,
|
|
451
492
|
type Execution as Execution,
|
|
@@ -503,7 +544,20 @@ export declare namespace V1 {
|
|
|
503
544
|
type PositionSubmitPositionInstructionsParams as PositionSubmitPositionInstructionsParams,
|
|
504
545
|
};
|
|
505
546
|
|
|
506
|
-
export {
|
|
547
|
+
export {
|
|
548
|
+
PrivateMarkets as PrivateMarkets,
|
|
549
|
+
type PrivateMarketCreateIoiResponse as PrivateMarketCreateIoiResponse,
|
|
550
|
+
type PrivateMarketGetCompanyByIDResponse as PrivateMarketGetCompanyByIDResponse,
|
|
551
|
+
type PrivateMarketGetIoisResponse as PrivateMarketGetIoisResponse,
|
|
552
|
+
type PrivateMarketGetSpvByIDResponse as PrivateMarketGetSpvByIDResponse,
|
|
553
|
+
type PrivateMarketUpdateIoiResponse as PrivateMarketUpdateIoiResponse,
|
|
554
|
+
type PrivateMarketCreateIoiParams as PrivateMarketCreateIoiParams,
|
|
555
|
+
type PrivateMarketDeleteIoiParams as PrivateMarketDeleteIoiParams,
|
|
556
|
+
type PrivateMarketGetCompanyByIDParams as PrivateMarketGetCompanyByIDParams,
|
|
557
|
+
type PrivateMarketGetIoisParams as PrivateMarketGetIoisParams,
|
|
558
|
+
type PrivateMarketGetSpvByIDParams as PrivateMarketGetSpvByIDParams,
|
|
559
|
+
type PrivateMarketUpdateIoiParams as PrivateMarketUpdateIoiParams,
|
|
560
|
+
};
|
|
507
561
|
|
|
508
562
|
export {
|
|
509
563
|
Screener as Screener,
|