@clear-street/clearstreet 0.103.0 → 0.104.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 (113) hide show
  1. package/CHANGELOG.md +11 -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/index.d.mts +2 -2
  12. package/resources/v1/index.d.mts.map +1 -1
  13. package/resources/v1/index.d.ts +2 -2
  14. package/resources/v1/index.d.ts.map +1 -1
  15. package/resources/v1/index.js.map +1 -1
  16. package/resources/v1/index.mjs.map +1 -1
  17. package/resources/v1/instrument-data/market-data.d.mts +2 -1
  18. package/resources/v1/instrument-data/market-data.d.mts.map +1 -1
  19. package/resources/v1/instrument-data/market-data.d.ts +2 -1
  20. package/resources/v1/instrument-data/market-data.d.ts.map +1 -1
  21. package/resources/v1/locates.d.mts +123 -1
  22. package/resources/v1/locates.d.mts.map +1 -1
  23. package/resources/v1/locates.d.ts +123 -1
  24. package/resources/v1/locates.d.ts.map +1 -1
  25. package/resources/v1/locates.js +33 -0
  26. package/resources/v1/locates.js.map +1 -1
  27. package/resources/v1/locates.mjs +33 -0
  28. package/resources/v1/locates.mjs.map +1 -1
  29. package/resources/v1/omni-ai/entitlements.d.mts +58 -10
  30. package/resources/v1/omni-ai/entitlements.d.mts.map +1 -1
  31. package/resources/v1/omni-ai/entitlements.d.ts +58 -10
  32. package/resources/v1/omni-ai/entitlements.d.ts.map +1 -1
  33. package/resources/v1/omni-ai/entitlements.js +35 -9
  34. package/resources/v1/omni-ai/entitlements.js.map +1 -1
  35. package/resources/v1/omni-ai/entitlements.mjs +35 -9
  36. package/resources/v1/omni-ai/entitlements.mjs.map +1 -1
  37. package/resources/v1/omni-ai/index.d.mts +1 -1
  38. package/resources/v1/omni-ai/index.d.mts.map +1 -1
  39. package/resources/v1/omni-ai/index.d.ts +1 -1
  40. package/resources/v1/omni-ai/index.d.ts.map +1 -1
  41. package/resources/v1/omni-ai/index.js.map +1 -1
  42. package/resources/v1/omni-ai/index.mjs.map +1 -1
  43. package/resources/v1/omni-ai/omni-ai.d.mts +2 -2
  44. package/resources/v1/omni-ai/omni-ai.d.mts.map +1 -1
  45. package/resources/v1/omni-ai/omni-ai.d.ts +2 -2
  46. package/resources/v1/omni-ai/omni-ai.d.ts.map +1 -1
  47. package/resources/v1/omni-ai/omni-ai.js.map +1 -1
  48. package/resources/v1/omni-ai/omni-ai.mjs.map +1 -1
  49. package/resources/v1/private-markets/index.d.mts +2 -4
  50. package/resources/v1/private-markets/index.d.mts.map +1 -1
  51. package/resources/v1/private-markets/index.d.ts +2 -4
  52. package/resources/v1/private-markets/index.d.ts.map +1 -1
  53. package/resources/v1/private-markets/index.js +1 -5
  54. package/resources/v1/private-markets/index.js.map +1 -1
  55. package/resources/v1/private-markets/index.mjs +0 -2
  56. package/resources/v1/private-markets/index.mjs.map +1 -1
  57. package/resources/v1/private-markets/iois.d.mts +151 -1
  58. package/resources/v1/private-markets/iois.d.mts.map +1 -1
  59. package/resources/v1/private-markets/iois.d.ts +151 -1
  60. package/resources/v1/private-markets/iois.d.ts.map +1 -1
  61. package/resources/v1/private-markets/iois.js +75 -0
  62. package/resources/v1/private-markets/iois.js.map +1 -1
  63. package/resources/v1/private-markets/iois.mjs +75 -0
  64. package/resources/v1/private-markets/iois.mjs.map +1 -1
  65. package/resources/v1/private-markets/private-markets.d.mts +494 -133
  66. package/resources/v1/private-markets/private-markets.d.mts.map +1 -1
  67. package/resources/v1/private-markets/private-markets.d.ts +494 -133
  68. package/resources/v1/private-markets/private-markets.d.ts.map +1 -1
  69. package/resources/v1/private-markets/private-markets.js +0 -76
  70. package/resources/v1/private-markets/private-markets.js.map +1 -1
  71. package/resources/v1/private-markets/private-markets.mjs +0 -76
  72. package/resources/v1/private-markets/private-markets.mjs.map +1 -1
  73. package/resources/v1/v1.d.mts +4 -4
  74. package/resources/v1/v1.d.mts.map +1 -1
  75. package/resources/v1/v1.d.ts +4 -4
  76. package/resources/v1/v1.d.ts.map +1 -1
  77. package/resources/v1/v1.js.map +1 -1
  78. package/resources/v1/v1.mjs.map +1 -1
  79. package/src/client.ts +0 -1
  80. package/src/resources/shared.ts +1 -3
  81. package/src/resources/v1/index.ts +32 -7
  82. package/src/resources/v1/instrument-data/market-data.ts +2 -1
  83. package/src/resources/v1/locates.ts +164 -0
  84. package/src/resources/v1/omni-ai/entitlements.ts +84 -9
  85. package/src/resources/v1/omni-ai/index.ts +6 -0
  86. package/src/resources/v1/omni-ai/omni-ai.ts +12 -0
  87. package/src/resources/v1/private-markets/index.ts +32 -38
  88. package/src/resources/v1/private-markets/iois.ts +205 -1
  89. package/src/resources/v1/private-markets/private-markets.ts +622 -209
  90. package/src/resources/v1/v1.ts +64 -14
  91. package/src/version.ts +1 -1
  92. package/version.d.mts +1 -1
  93. package/version.d.ts +1 -1
  94. package/version.js +1 -1
  95. package/version.mjs +1 -1
  96. package/resources/v1/private-markets/companies.d.mts +0 -368
  97. package/resources/v1/private-markets/companies.d.mts.map +0 -1
  98. package/resources/v1/private-markets/companies.d.ts +0 -368
  99. package/resources/v1/private-markets/companies.d.ts.map +0 -1
  100. package/resources/v1/private-markets/companies.js +0 -9
  101. package/resources/v1/private-markets/companies.js.map +0 -1
  102. package/resources/v1/private-markets/companies.mjs +0 -5
  103. package/resources/v1/private-markets/companies.mjs.map +0 -1
  104. package/resources/v1/private-markets/spvs.d.mts +0 -158
  105. package/resources/v1/private-markets/spvs.d.mts.map +0 -1
  106. package/resources/v1/private-markets/spvs.d.ts +0 -158
  107. package/resources/v1/private-markets/spvs.d.ts.map +0 -1
  108. package/resources/v1/private-markets/spvs.js +0 -9
  109. package/resources/v1/private-markets/spvs.js.map +0 -1
  110. package/resources/v1/private-markets/spvs.mjs +0 -5
  111. package/resources/v1/private-markets/spvs.mjs.map +0 -1
  112. package/src/resources/v1/private-markets/companies.ts +0 -483
  113. package/src/resources/v1/private-markets/spvs.ts +0 -201
@@ -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
  }