@clear-street/clearstreet 0.103.0 → 0.105.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.
Files changed (130) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/client.d.mts +0 -1
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +0 -1
  5. package/client.d.ts.map +1 -1
  6. package/package.json +1 -1
  7. package/resources/shared.d.mts +3 -4
  8. package/resources/shared.d.mts.map +1 -1
  9. package/resources/shared.d.ts +3 -4
  10. package/resources/shared.d.ts.map +1 -1
  11. package/resources/v1/accounts.d.mts +15 -3
  12. package/resources/v1/accounts.d.mts.map +1 -1
  13. package/resources/v1/accounts.d.ts +15 -3
  14. package/resources/v1/accounts.d.ts.map +1 -1
  15. package/resources/v1/index.d.mts +2 -2
  16. package/resources/v1/index.d.mts.map +1 -1
  17. package/resources/v1/index.d.ts +2 -2
  18. package/resources/v1/index.d.ts.map +1 -1
  19. package/resources/v1/index.js.map +1 -1
  20. package/resources/v1/index.mjs.map +1 -1
  21. package/resources/v1/instrument-data/market-data.d.mts +2 -1
  22. package/resources/v1/instrument-data/market-data.d.mts.map +1 -1
  23. package/resources/v1/instrument-data/market-data.d.ts +2 -1
  24. package/resources/v1/instrument-data/market-data.d.ts.map +1 -1
  25. package/resources/v1/instruments.d.mts +9 -4
  26. package/resources/v1/instruments.d.mts.map +1 -1
  27. package/resources/v1/instruments.d.ts +9 -4
  28. package/resources/v1/instruments.d.ts.map +1 -1
  29. package/resources/v1/instruments.js +2 -2
  30. package/resources/v1/instruments.mjs +2 -2
  31. package/resources/v1/locates.d.mts +123 -1
  32. package/resources/v1/locates.d.mts.map +1 -1
  33. package/resources/v1/locates.d.ts +123 -1
  34. package/resources/v1/locates.d.ts.map +1 -1
  35. package/resources/v1/locates.js +33 -0
  36. package/resources/v1/locates.js.map +1 -1
  37. package/resources/v1/locates.mjs +33 -0
  38. package/resources/v1/locates.mjs.map +1 -1
  39. package/resources/v1/omni-ai/entitlements.d.mts +58 -10
  40. package/resources/v1/omni-ai/entitlements.d.mts.map +1 -1
  41. package/resources/v1/omni-ai/entitlements.d.ts +58 -10
  42. package/resources/v1/omni-ai/entitlements.d.ts.map +1 -1
  43. package/resources/v1/omni-ai/entitlements.js +35 -9
  44. package/resources/v1/omni-ai/entitlements.js.map +1 -1
  45. package/resources/v1/omni-ai/entitlements.mjs +35 -9
  46. package/resources/v1/omni-ai/entitlements.mjs.map +1 -1
  47. package/resources/v1/omni-ai/index.d.mts +1 -1
  48. package/resources/v1/omni-ai/index.d.mts.map +1 -1
  49. package/resources/v1/omni-ai/index.d.ts +1 -1
  50. package/resources/v1/omni-ai/index.d.ts.map +1 -1
  51. package/resources/v1/omni-ai/index.js.map +1 -1
  52. package/resources/v1/omni-ai/index.mjs.map +1 -1
  53. package/resources/v1/omni-ai/omni-ai.d.mts +4 -3
  54. package/resources/v1/omni-ai/omni-ai.d.mts.map +1 -1
  55. package/resources/v1/omni-ai/omni-ai.d.ts +4 -3
  56. package/resources/v1/omni-ai/omni-ai.d.ts.map +1 -1
  57. package/resources/v1/omni-ai/omni-ai.js.map +1 -1
  58. package/resources/v1/omni-ai/omni-ai.mjs.map +1 -1
  59. package/resources/v1/orders.d.mts +2 -1
  60. package/resources/v1/orders.d.mts.map +1 -1
  61. package/resources/v1/orders.d.ts +2 -1
  62. package/resources/v1/orders.d.ts.map +1 -1
  63. package/resources/v1/private-markets/index.d.mts +2 -4
  64. package/resources/v1/private-markets/index.d.mts.map +1 -1
  65. package/resources/v1/private-markets/index.d.ts +2 -4
  66. package/resources/v1/private-markets/index.d.ts.map +1 -1
  67. package/resources/v1/private-markets/index.js +1 -5
  68. package/resources/v1/private-markets/index.js.map +1 -1
  69. package/resources/v1/private-markets/index.mjs +0 -2
  70. package/resources/v1/private-markets/index.mjs.map +1 -1
  71. package/resources/v1/private-markets/iois.d.mts +151 -1
  72. package/resources/v1/private-markets/iois.d.mts.map +1 -1
  73. package/resources/v1/private-markets/iois.d.ts +151 -1
  74. package/resources/v1/private-markets/iois.d.ts.map +1 -1
  75. package/resources/v1/private-markets/iois.js +75 -0
  76. package/resources/v1/private-markets/iois.js.map +1 -1
  77. package/resources/v1/private-markets/iois.mjs +75 -0
  78. package/resources/v1/private-markets/iois.mjs.map +1 -1
  79. package/resources/v1/private-markets/private-markets.d.mts +494 -133
  80. package/resources/v1/private-markets/private-markets.d.mts.map +1 -1
  81. package/resources/v1/private-markets/private-markets.d.ts +494 -133
  82. package/resources/v1/private-markets/private-markets.d.ts.map +1 -1
  83. package/resources/v1/private-markets/private-markets.js +0 -76
  84. package/resources/v1/private-markets/private-markets.js.map +1 -1
  85. package/resources/v1/private-markets/private-markets.mjs +0 -76
  86. package/resources/v1/private-markets/private-markets.mjs.map +1 -1
  87. package/resources/v1/v1.d.mts +4 -4
  88. package/resources/v1/v1.d.mts.map +1 -1
  89. package/resources/v1/v1.d.ts +4 -4
  90. package/resources/v1/v1.d.ts.map +1 -1
  91. package/resources/v1/v1.js.map +1 -1
  92. package/resources/v1/v1.mjs.map +1 -1
  93. package/src/client.ts +0 -1
  94. package/src/resources/shared.ts +1 -3
  95. package/src/resources/v1/accounts.ts +18 -3
  96. package/src/resources/v1/index.ts +32 -7
  97. package/src/resources/v1/instrument-data/market-data.ts +2 -1
  98. package/src/resources/v1/instruments.ts +10 -4
  99. package/src/resources/v1/locates.ts +164 -0
  100. package/src/resources/v1/omni-ai/entitlements.ts +84 -9
  101. package/src/resources/v1/omni-ai/index.ts +6 -0
  102. package/src/resources/v1/omni-ai/omni-ai.ts +14 -1
  103. package/src/resources/v1/orders.ts +2 -1
  104. package/src/resources/v1/private-markets/index.ts +32 -38
  105. package/src/resources/v1/private-markets/iois.ts +205 -1
  106. package/src/resources/v1/private-markets/private-markets.ts +622 -209
  107. package/src/resources/v1/v1.ts +64 -14
  108. package/src/version.ts +1 -1
  109. package/version.d.mts +1 -1
  110. package/version.d.ts +1 -1
  111. package/version.js +1 -1
  112. package/version.mjs +1 -1
  113. package/resources/v1/private-markets/companies.d.mts +0 -368
  114. package/resources/v1/private-markets/companies.d.mts.map +0 -1
  115. package/resources/v1/private-markets/companies.d.ts +0 -368
  116. package/resources/v1/private-markets/companies.d.ts.map +0 -1
  117. package/resources/v1/private-markets/companies.js +0 -9
  118. package/resources/v1/private-markets/companies.js.map +0 -1
  119. package/resources/v1/private-markets/companies.mjs +0 -5
  120. package/resources/v1/private-markets/companies.mjs.map +0 -1
  121. package/resources/v1/private-markets/spvs.d.mts +0 -158
  122. package/resources/v1/private-markets/spvs.d.mts.map +0 -1
  123. package/resources/v1/private-markets/spvs.d.ts +0 -158
  124. package/resources/v1/private-markets/spvs.d.ts.map +0 -1
  125. package/resources/v1/private-markets/spvs.js +0 -9
  126. package/resources/v1/private-markets/spvs.js.map +0 -1
  127. package/resources/v1/private-markets/spvs.mjs +0 -5
  128. package/resources/v1/private-markets/spvs.mjs.map +0 -1
  129. package/src/resources/v1/private-markets/companies.ts +0 -483
  130. package/src/resources/v1/private-markets/spvs.ts +0 -201
@@ -1,28 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export {
4
- Companies,
5
- type CompanyCategory,
6
- type CompanyCitation,
7
- type CompanyCustomer,
8
- type CompanyDetail,
9
- type CompanyDocumentPreview,
10
- type CompanyDocumentRelation,
11
- type CompanyDocumentResource,
12
- type CompanyDocumentType,
13
- type CompanyHeadquarters,
14
- type CompanyLegalEntity,
15
- type CompanyMetricPoint,
16
- type CompanyMetricSeries,
17
- type CompanyNarrativeSection,
18
- type CompanyPerson,
19
- type CompanyPersonRole,
20
- type CompanyProfileResource,
21
- type CompanySocialLink,
22
- type CompanySocialType,
23
- type MetricFrequency,
24
- type MetricKey,
25
- } from './companies';
26
3
  export {
27
4
  Iois,
28
5
  type IoiCompanyResource,
@@ -31,6 +8,13 @@ export {
31
8
  type IoiOfferingResource,
32
9
  type IoiResource,
33
10
  type NdaAcceptanceResource,
11
+ type IoisCreateIoiResponse,
12
+ type IoisGetIoisResponse,
13
+ type IoisUpdateIoiResponse,
14
+ type IoisCreateIoiParams,
15
+ type IoisDeleteIoiParams,
16
+ type IoisGetIoisParams,
17
+ type IoisUpdateIoiParams,
34
18
  } from './iois';
35
19
  export {
36
20
  Offerings,
@@ -59,23 +43,33 @@ export {
59
43
  } from './offerings';
60
44
  export {
61
45
  PrivateMarkets,
62
- type PrivateMarketCreateIoiResponse,
63
- type PrivateMarketGetCompanyByIDResponse,
64
- type PrivateMarketGetIoisResponse,
65
- type PrivateMarketGetSpvByIDResponse,
66
- type PrivateMarketUpdateIoiResponse,
67
- type PrivateMarketCreateIoiParams,
68
- type PrivateMarketDeleteIoiParams,
69
- type PrivateMarketGetCompanyByIDParams,
70
- type PrivateMarketGetIoisParams,
71
- type PrivateMarketGetSpvByIDParams,
72
- type PrivateMarketUpdateIoiParams,
73
- } from './private-markets';
74
- export {
75
- Spvs,
76
46
  type ChargedBy,
47
+ type CompanyCategory,
48
+ type CompanyCitation,
49
+ type CompanyCustomer,
50
+ type CompanyDetail,
51
+ type CompanyDocumentPreview,
52
+ type CompanyDocumentRelation,
53
+ type CompanyDocumentResource,
54
+ type CompanyDocumentType,
55
+ type CompanyHeadquarters,
56
+ type CompanyLegalEntity,
57
+ type CompanyMetricPoint,
58
+ type CompanyMetricSeries,
59
+ type CompanyNarrativeSection,
60
+ type CompanyPerson,
61
+ type CompanyPersonRole,
62
+ type CompanyProfileResource,
63
+ type CompanySocialLink,
64
+ type CompanySocialType,
77
65
  type FeeFrequency,
78
66
  type FeeType,
67
+ type MetricFrequency,
68
+ type MetricKey,
79
69
  type SpvDetail,
80
70
  type SpvFeeTermResource,
81
- } from './spvs';
71
+ type PrivateMarketGetCompanyByIDResponse,
72
+ type PrivateMarketGetSpvByIDResponse,
73
+ type PrivateMarketGetCompanyByIDParams,
74
+ type PrivateMarketGetSpvByIDParams,
75
+ } from './private-markets';
@@ -1,9 +1,95 @@
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';
4
5
  import * as OfferingsAPI from './offerings';
6
+ import { APIPromise } from '../../../core/api-promise';
7
+ import { buildHeaders } from '../../../internal/headers';
8
+ import { RequestOptions } from '../../../internal/request-options';
9
+ import { path } from '../../../internal/utils/path';
5
10
 
6
- export class Iois extends APIResource {}
11
+ /**
12
+ * Browse private-market offerings and their indicative terms. Access requires the account holder to hold an accreditation attestation.
13
+ */
14
+ export class Iois extends APIResource {
15
+ /**
16
+ * Create an IOI for a visible upcoming offering.
17
+ *
18
+ * @example
19
+ * ```ts
20
+ * const response =
21
+ * await client.v1.privateMarkets.iois.createIoi({
22
+ * account_id: 0,
23
+ * notional_amount: '100000.00',
24
+ * offering_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
25
+ * });
26
+ * ```
27
+ */
28
+ createIoi(params: IoisCreateIoiParams, options?: RequestOptions): APIPromise<IoisCreateIoiResponse> {
29
+ const { account_id, ...body } = params;
30
+ return this._client.post('/v1/private-markets/iois', { query: { account_id }, body, ...options });
31
+ }
32
+
33
+ /**
34
+ * Withdraw a live IOI. Repeating a withdrawal returns 404.
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * await client.v1.privateMarkets.iois.deleteIoi(
39
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
40
+ * { account_id: 0 },
41
+ * );
42
+ * ```
43
+ */
44
+ deleteIoi(ioiID: string, params: IoisDeleteIoiParams, options?: RequestOptions): APIPromise<void> {
45
+ const { account_id } = params;
46
+ return this._client.delete(path`/v1/private-markets/iois/${ioiID}`, {
47
+ query: { account_id },
48
+ ...options,
49
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
50
+ });
51
+ }
52
+
53
+ /**
54
+ * List every live IOI for the caller's account-holder entity.
55
+ *
56
+ * @example
57
+ * ```ts
58
+ * const response =
59
+ * await client.v1.privateMarkets.iois.getIois({
60
+ * account_id: 0,
61
+ * });
62
+ * ```
63
+ */
64
+ getIois(query: IoisGetIoisParams, options?: RequestOptions): APIPromise<IoisGetIoisResponse> {
65
+ return this._client.get('/v1/private-markets/iois', { query, ...options });
66
+ }
67
+
68
+ /**
69
+ * Update an IOI's notional, accepting the current NDA revision when required.
70
+ *
71
+ * @example
72
+ * ```ts
73
+ * const response =
74
+ * await client.v1.privateMarkets.iois.updateIoi(
75
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
76
+ * { account_id: 0, notional_amount: '125000.00' },
77
+ * );
78
+ * ```
79
+ */
80
+ updateIoi(
81
+ ioiID: string,
82
+ params: IoisUpdateIoiParams,
83
+ options?: RequestOptions,
84
+ ): APIPromise<IoisUpdateIoiResponse> {
85
+ const { account_id, ...body } = params;
86
+ return this._client.patch(path`/v1/private-markets/iois/${ioiID}`, {
87
+ query: { account_id },
88
+ body,
89
+ ...options,
90
+ });
91
+ }
92
+ }
7
93
 
8
94
  /**
9
95
  * Company identity embedded in an IOI list item.
@@ -79,6 +165,117 @@ export interface NdaAcceptanceResource {
79
165
  version: number;
80
166
  }
81
167
 
168
+ export interface IoisCreateIoiResponse extends Shared.BaseResponse {
169
+ /**
170
+ * IOI list item with the campaign identity needed to render it.
171
+ */
172
+ data: IoiListingResource;
173
+ }
174
+
175
+ export interface IoisGetIoisResponse extends Shared.BaseResponse {
176
+ data: IoiListingResourceList;
177
+ }
178
+
179
+ export interface IoisUpdateIoiResponse extends Shared.BaseResponse {
180
+ /**
181
+ * IOI list item with the campaign identity needed to render it.
182
+ */
183
+ data: IoiListingResource;
184
+ }
185
+
186
+ export interface IoisCreateIoiParams {
187
+ /**
188
+ * Query param
189
+ */
190
+ account_id: number;
191
+
192
+ /**
193
+ * Body param
194
+ */
195
+ notional_amount: string;
196
+
197
+ /**
198
+ * Body param
199
+ */
200
+ offering_id: string;
201
+
202
+ /**
203
+ * Body param: Required only when the offering's attached SPV has an NDA agreement.
204
+ */
205
+ nda_acceptance?: IoisCreateIoiParams.NdaAcceptance | null;
206
+ }
207
+
208
+ export namespace IoisCreateIoiParams {
209
+ /**
210
+ * Required only when the offering's attached SPV has an NDA agreement.
211
+ */
212
+ export interface NdaAcceptance {
213
+ /**
214
+ * Must be true; confirms affirmative assent.
215
+ */
216
+ accepted: boolean;
217
+
218
+ /**
219
+ * Exact agreement id returned by offering detail.
220
+ */
221
+ agreement_id: string;
222
+
223
+ /**
224
+ * Must be true; confirms the signer may bind the account-holder entity.
225
+ */
226
+ authority_confirmed: boolean;
227
+ }
228
+ }
229
+
230
+ export interface IoisDeleteIoiParams {
231
+ account_id: number;
232
+ }
233
+
234
+ export interface IoisGetIoisParams {
235
+ account_id: number;
236
+ }
237
+
238
+ export interface IoisUpdateIoiParams {
239
+ /**
240
+ * Query param
241
+ */
242
+ account_id: number;
243
+
244
+ /**
245
+ * Body param
246
+ */
247
+ notional_amount: string;
248
+
249
+ /**
250
+ * Body param: Required when the SPV's current NDA version is newer than the IOI's
251
+ * latest acceptance. Irrelevant acceptances are rejected.
252
+ */
253
+ nda_acceptance?: IoisUpdateIoiParams.NdaAcceptance | null;
254
+ }
255
+
256
+ export namespace IoisUpdateIoiParams {
257
+ /**
258
+ * Required when the SPV's current NDA version is newer than the IOI's latest
259
+ * acceptance. Irrelevant acceptances are rejected.
260
+ */
261
+ export interface NdaAcceptance {
262
+ /**
263
+ * Must be true; confirms affirmative assent.
264
+ */
265
+ accepted: boolean;
266
+
267
+ /**
268
+ * Exact agreement id returned by offering detail.
269
+ */
270
+ agreement_id: string;
271
+
272
+ /**
273
+ * Must be true; confirms the signer may bind the account-holder entity.
274
+ */
275
+ authority_confirmed: boolean;
276
+ }
277
+ }
278
+
82
279
  export declare namespace Iois {
83
280
  export {
84
281
  type IoiCompanyResource as IoiCompanyResource,
@@ -87,5 +284,12 @@ export declare namespace Iois {
87
284
  type IoiOfferingResource as IoiOfferingResource,
88
285
  type IoiResource as IoiResource,
89
286
  type NdaAcceptanceResource as NdaAcceptanceResource,
287
+ type IoisCreateIoiResponse as IoisCreateIoiResponse,
288
+ type IoisGetIoisResponse as IoisGetIoisResponse,
289
+ type IoisUpdateIoiResponse as IoisUpdateIoiResponse,
290
+ type IoisCreateIoiParams as IoisCreateIoiParams,
291
+ type IoisDeleteIoiParams as IoisDeleteIoiParams,
292
+ type IoisGetIoisParams as IoisGetIoisParams,
293
+ type IoisUpdateIoiParams as IoisUpdateIoiParams,
90
294
  };
91
295
  }