@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.
- package/CHANGELOG.md +11 -0
- package/client.d.mts +0 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +0 -1
- package/client.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/shared.d.mts +3 -4
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +3 -4
- package/resources/shared.d.ts.map +1 -1
- package/resources/v1/index.d.mts +2 -2
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +2 -2
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/instrument-data/market-data.d.mts +2 -1
- package/resources/v1/instrument-data/market-data.d.mts.map +1 -1
- package/resources/v1/instrument-data/market-data.d.ts +2 -1
- package/resources/v1/instrument-data/market-data.d.ts.map +1 -1
- package/resources/v1/locates.d.mts +123 -1
- package/resources/v1/locates.d.mts.map +1 -1
- package/resources/v1/locates.d.ts +123 -1
- package/resources/v1/locates.d.ts.map +1 -1
- package/resources/v1/locates.js +33 -0
- package/resources/v1/locates.js.map +1 -1
- package/resources/v1/locates.mjs +33 -0
- package/resources/v1/locates.mjs.map +1 -1
- package/resources/v1/omni-ai/entitlements.d.mts +58 -10
- package/resources/v1/omni-ai/entitlements.d.mts.map +1 -1
- package/resources/v1/omni-ai/entitlements.d.ts +58 -10
- package/resources/v1/omni-ai/entitlements.d.ts.map +1 -1
- package/resources/v1/omni-ai/entitlements.js +35 -9
- package/resources/v1/omni-ai/entitlements.js.map +1 -1
- package/resources/v1/omni-ai/entitlements.mjs +35 -9
- package/resources/v1/omni-ai/entitlements.mjs.map +1 -1
- package/resources/v1/omni-ai/index.d.mts +1 -1
- package/resources/v1/omni-ai/index.d.mts.map +1 -1
- package/resources/v1/omni-ai/index.d.ts +1 -1
- package/resources/v1/omni-ai/index.d.ts.map +1 -1
- package/resources/v1/omni-ai/index.js.map +1 -1
- package/resources/v1/omni-ai/index.mjs.map +1 -1
- package/resources/v1/omni-ai/omni-ai.d.mts +2 -2
- package/resources/v1/omni-ai/omni-ai.d.mts.map +1 -1
- package/resources/v1/omni-ai/omni-ai.d.ts +2 -2
- package/resources/v1/omni-ai/omni-ai.d.ts.map +1 -1
- package/resources/v1/omni-ai/omni-ai.js.map +1 -1
- package/resources/v1/omni-ai/omni-ai.mjs.map +1 -1
- package/resources/v1/private-markets/index.d.mts +2 -4
- package/resources/v1/private-markets/index.d.mts.map +1 -1
- package/resources/v1/private-markets/index.d.ts +2 -4
- package/resources/v1/private-markets/index.d.ts.map +1 -1
- package/resources/v1/private-markets/index.js +1 -5
- package/resources/v1/private-markets/index.js.map +1 -1
- package/resources/v1/private-markets/index.mjs +0 -2
- package/resources/v1/private-markets/index.mjs.map +1 -1
- package/resources/v1/private-markets/iois.d.mts +151 -1
- package/resources/v1/private-markets/iois.d.mts.map +1 -1
- package/resources/v1/private-markets/iois.d.ts +151 -1
- package/resources/v1/private-markets/iois.d.ts.map +1 -1
- package/resources/v1/private-markets/iois.js +75 -0
- package/resources/v1/private-markets/iois.js.map +1 -1
- package/resources/v1/private-markets/iois.mjs +75 -0
- package/resources/v1/private-markets/iois.mjs.map +1 -1
- package/resources/v1/private-markets/private-markets.d.mts +494 -133
- package/resources/v1/private-markets/private-markets.d.mts.map +1 -1
- package/resources/v1/private-markets/private-markets.d.ts +494 -133
- package/resources/v1/private-markets/private-markets.d.ts.map +1 -1
- package/resources/v1/private-markets/private-markets.js +0 -76
- package/resources/v1/private-markets/private-markets.js.map +1 -1
- package/resources/v1/private-markets/private-markets.mjs +0 -76
- package/resources/v1/private-markets/private-markets.mjs.map +1 -1
- package/resources/v1/v1.d.mts +4 -4
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +4 -4
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs.map +1 -1
- package/src/client.ts +0 -1
- package/src/resources/shared.ts +1 -3
- package/src/resources/v1/index.ts +32 -7
- package/src/resources/v1/instrument-data/market-data.ts +2 -1
- package/src/resources/v1/locates.ts +164 -0
- package/src/resources/v1/omni-ai/entitlements.ts +84 -9
- package/src/resources/v1/omni-ai/index.ts +6 -0
- package/src/resources/v1/omni-ai/omni-ai.ts +12 -0
- package/src/resources/v1/private-markets/index.ts +32 -38
- package/src/resources/v1/private-markets/iois.ts +205 -1
- package/src/resources/v1/private-markets/private-markets.ts +622 -209
- package/src/resources/v1/v1.ts +64 -14
- 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
- package/resources/v1/private-markets/companies.d.mts +0 -368
- package/resources/v1/private-markets/companies.d.mts.map +0 -1
- package/resources/v1/private-markets/companies.d.ts +0 -368
- package/resources/v1/private-markets/companies.d.ts.map +0 -1
- package/resources/v1/private-markets/companies.js +0 -9
- package/resources/v1/private-markets/companies.js.map +0 -1
- package/resources/v1/private-markets/companies.mjs +0 -5
- package/resources/v1/private-markets/companies.mjs.map +0 -1
- package/resources/v1/private-markets/spvs.d.mts +0 -158
- package/resources/v1/private-markets/spvs.d.mts.map +0 -1
- package/resources/v1/private-markets/spvs.d.ts +0 -158
- package/resources/v1/private-markets/spvs.d.ts.map +0 -1
- package/resources/v1/private-markets/spvs.js +0 -9
- package/resources/v1/private-markets/spvs.js.map +0 -1
- package/resources/v1/private-markets/spvs.mjs +0 -5
- package/resources/v1/private-markets/spvs.mjs.map +0 -1
- package/src/resources/v1/private-markets/companies.ts +0 -483
- package/src/resources/v1/private-markets/spvs.ts +0 -201
|
@@ -1,6 +1,63 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as Shared from "../../shared.js";
|
|
2
3
|
import * as OfferingsAPI from "./offerings.js";
|
|
4
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
5
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
6
|
+
/**
|
|
7
|
+
* Browse private-market offerings and their indicative terms. Access requires the account holder to hold an accreditation attestation.
|
|
8
|
+
*/
|
|
3
9
|
export declare class Iois extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Create an IOI for a visible upcoming offering.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const response =
|
|
16
|
+
* await client.v1.privateMarkets.iois.createIoi({
|
|
17
|
+
* account_id: 0,
|
|
18
|
+
* notional_amount: '100000.00',
|
|
19
|
+
* offering_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
createIoi(params: IoisCreateIoiParams, options?: RequestOptions): APIPromise<IoisCreateIoiResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Withdraw a live IOI. Repeating a withdrawal returns 404.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* await client.v1.privateMarkets.iois.deleteIoi(
|
|
30
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
31
|
+
* { account_id: 0 },
|
|
32
|
+
* );
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
deleteIoi(ioiID: string, params: IoisDeleteIoiParams, options?: RequestOptions): APIPromise<void>;
|
|
36
|
+
/**
|
|
37
|
+
* List every live IOI for the caller's account-holder entity.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* ```ts
|
|
41
|
+
* const response =
|
|
42
|
+
* await client.v1.privateMarkets.iois.getIois({
|
|
43
|
+
* account_id: 0,
|
|
44
|
+
* });
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
getIois(query: IoisGetIoisParams, options?: RequestOptions): APIPromise<IoisGetIoisResponse>;
|
|
48
|
+
/**
|
|
49
|
+
* Update an IOI's notional, accepting the current NDA revision when required.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* const response =
|
|
54
|
+
* await client.v1.privateMarkets.iois.updateIoi(
|
|
55
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
56
|
+
* { account_id: 0, notional_amount: '125000.00' },
|
|
57
|
+
* );
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
updateIoi(ioiID: string, params: IoisUpdateIoiParams, options?: RequestOptions): APIPromise<IoisUpdateIoiResponse>;
|
|
4
61
|
}
|
|
5
62
|
/**
|
|
6
63
|
* Company identity embedded in an IOI list item.
|
|
@@ -58,7 +115,100 @@ export interface NdaAcceptanceResource {
|
|
|
58
115
|
agreement_id: string;
|
|
59
116
|
version: number;
|
|
60
117
|
}
|
|
118
|
+
export interface IoisCreateIoiResponse extends Shared.BaseResponse {
|
|
119
|
+
/**
|
|
120
|
+
* IOI list item with the campaign identity needed to render it.
|
|
121
|
+
*/
|
|
122
|
+
data: IoiListingResource;
|
|
123
|
+
}
|
|
124
|
+
export interface IoisGetIoisResponse extends Shared.BaseResponse {
|
|
125
|
+
data: IoiListingResourceList;
|
|
126
|
+
}
|
|
127
|
+
export interface IoisUpdateIoiResponse extends Shared.BaseResponse {
|
|
128
|
+
/**
|
|
129
|
+
* IOI list item with the campaign identity needed to render it.
|
|
130
|
+
*/
|
|
131
|
+
data: IoiListingResource;
|
|
132
|
+
}
|
|
133
|
+
export interface IoisCreateIoiParams {
|
|
134
|
+
/**
|
|
135
|
+
* Query param
|
|
136
|
+
*/
|
|
137
|
+
account_id: number;
|
|
138
|
+
/**
|
|
139
|
+
* Body param
|
|
140
|
+
*/
|
|
141
|
+
notional_amount: string;
|
|
142
|
+
/**
|
|
143
|
+
* Body param
|
|
144
|
+
*/
|
|
145
|
+
offering_id: string;
|
|
146
|
+
/**
|
|
147
|
+
* Body param: Required only when the offering's attached SPV has an NDA agreement.
|
|
148
|
+
*/
|
|
149
|
+
nda_acceptance?: IoisCreateIoiParams.NdaAcceptance | null;
|
|
150
|
+
}
|
|
151
|
+
export declare namespace IoisCreateIoiParams {
|
|
152
|
+
/**
|
|
153
|
+
* Required only when the offering's attached SPV has an NDA agreement.
|
|
154
|
+
*/
|
|
155
|
+
interface NdaAcceptance {
|
|
156
|
+
/**
|
|
157
|
+
* Must be true; confirms affirmative assent.
|
|
158
|
+
*/
|
|
159
|
+
accepted: boolean;
|
|
160
|
+
/**
|
|
161
|
+
* Exact agreement id returned by offering detail.
|
|
162
|
+
*/
|
|
163
|
+
agreement_id: string;
|
|
164
|
+
/**
|
|
165
|
+
* Must be true; confirms the signer may bind the account-holder entity.
|
|
166
|
+
*/
|
|
167
|
+
authority_confirmed: boolean;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
export interface IoisDeleteIoiParams {
|
|
171
|
+
account_id: number;
|
|
172
|
+
}
|
|
173
|
+
export interface IoisGetIoisParams {
|
|
174
|
+
account_id: number;
|
|
175
|
+
}
|
|
176
|
+
export interface IoisUpdateIoiParams {
|
|
177
|
+
/**
|
|
178
|
+
* Query param
|
|
179
|
+
*/
|
|
180
|
+
account_id: number;
|
|
181
|
+
/**
|
|
182
|
+
* Body param
|
|
183
|
+
*/
|
|
184
|
+
notional_amount: string;
|
|
185
|
+
/**
|
|
186
|
+
* Body param: Required when the SPV's current NDA version is newer than the IOI's
|
|
187
|
+
* latest acceptance. Irrelevant acceptances are rejected.
|
|
188
|
+
*/
|
|
189
|
+
nda_acceptance?: IoisUpdateIoiParams.NdaAcceptance | null;
|
|
190
|
+
}
|
|
191
|
+
export declare namespace IoisUpdateIoiParams {
|
|
192
|
+
/**
|
|
193
|
+
* Required when the SPV's current NDA version is newer than the IOI's latest
|
|
194
|
+
* acceptance. Irrelevant acceptances are rejected.
|
|
195
|
+
*/
|
|
196
|
+
interface NdaAcceptance {
|
|
197
|
+
/**
|
|
198
|
+
* Must be true; confirms affirmative assent.
|
|
199
|
+
*/
|
|
200
|
+
accepted: boolean;
|
|
201
|
+
/**
|
|
202
|
+
* Exact agreement id returned by offering detail.
|
|
203
|
+
*/
|
|
204
|
+
agreement_id: string;
|
|
205
|
+
/**
|
|
206
|
+
* Must be true; confirms the signer may bind the account-holder entity.
|
|
207
|
+
*/
|
|
208
|
+
authority_confirmed: boolean;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
61
211
|
export declare namespace Iois {
|
|
62
|
-
export { type IoiCompanyResource as IoiCompanyResource, type IoiListingResource as IoiListingResource, type IoiListingResourceList as IoiListingResourceList, type IoiOfferingResource as IoiOfferingResource, type IoiResource as IoiResource, type NdaAcceptanceResource as NdaAcceptanceResource, };
|
|
212
|
+
export { type IoiCompanyResource as IoiCompanyResource, type IoiListingResource as IoiListingResource, type IoiListingResourceList as IoiListingResourceList, type IoiOfferingResource as IoiOfferingResource, type IoiResource as IoiResource, type NdaAcceptanceResource as NdaAcceptanceResource, type IoisCreateIoiResponse as IoisCreateIoiResponse, type IoisGetIoisResponse as IoisGetIoisResponse, type IoisUpdateIoiResponse as IoisUpdateIoiResponse, type IoisCreateIoiParams as IoisCreateIoiParams, type IoisDeleteIoiParams as IoisDeleteIoiParams, type IoisGetIoisParams as IoisGetIoisParams, type IoisUpdateIoiParams as IoisUpdateIoiParams, };
|
|
63
213
|
}
|
|
64
214
|
//# sourceMappingURL=iois.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iois.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/private-markets/iois.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,YAAY,uBAAoB;
|
|
1
|
+
{"version":3,"file":"iois.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/private-markets/iois.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,MAAM,wBAAqB;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CACpB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,cAAc,CAAC,EAAE,mBAAmB,CAAC,aAAa,GAAG,IAAI,CAAC;CAC3D;AAED,yBAAiB,mBAAmB,CAAC;IACnC;;;OAGG;IACH,UAAiB,aAAa;QAC5B;;WAEG;QACH,QAAQ,EAAE,OAAO,CAAC;QAElB;;WAEG;QACH,YAAY,EAAE,MAAM,CAAC;QAErB;;WAEG;QACH,mBAAmB,EAAE,OAAO,CAAC;KAC9B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,IAAI,CAAC;IAC5B,OAAO,EACL,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -3,7 +3,82 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Iois = void 0;
|
|
5
5
|
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../../internal/headers.js");
|
|
7
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
8
|
+
/**
|
|
9
|
+
* Browse private-market offerings and their indicative terms. Access requires the account holder to hold an accreditation attestation.
|
|
10
|
+
*/
|
|
6
11
|
class Iois extends resource_1.APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Create an IOI for a visible upcoming offering.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const response =
|
|
18
|
+
* await client.v1.privateMarkets.iois.createIoi({
|
|
19
|
+
* account_id: 0,
|
|
20
|
+
* notional_amount: '100000.00',
|
|
21
|
+
* offering_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
22
|
+
* });
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
createIoi(params, options) {
|
|
26
|
+
const { account_id, ...body } = params;
|
|
27
|
+
return this._client.post('/v1/private-markets/iois', { query: { account_id }, body, ...options });
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Withdraw a live IOI. Repeating a withdrawal returns 404.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* await client.v1.privateMarkets.iois.deleteIoi(
|
|
35
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
36
|
+
* { account_id: 0 },
|
|
37
|
+
* );
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
deleteIoi(ioiID, params, options) {
|
|
41
|
+
const { account_id } = params;
|
|
42
|
+
return this._client.delete((0, path_1.path) `/v1/private-markets/iois/${ioiID}`, {
|
|
43
|
+
query: { account_id },
|
|
44
|
+
...options,
|
|
45
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* List every live IOI for the caller's account-holder entity.
|
|
50
|
+
*
|
|
51
|
+
* @example
|
|
52
|
+
* ```ts
|
|
53
|
+
* const response =
|
|
54
|
+
* await client.v1.privateMarkets.iois.getIois({
|
|
55
|
+
* account_id: 0,
|
|
56
|
+
* });
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
getIois(query, options) {
|
|
60
|
+
return this._client.get('/v1/private-markets/iois', { query, ...options });
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Update an IOI's notional, accepting the current NDA revision when required.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* ```ts
|
|
67
|
+
* const response =
|
|
68
|
+
* await client.v1.privateMarkets.iois.updateIoi(
|
|
69
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
70
|
+
* { account_id: 0, notional_amount: '125000.00' },
|
|
71
|
+
* );
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
updateIoi(ioiID, params, options) {
|
|
75
|
+
const { account_id, ...body } = params;
|
|
76
|
+
return this._client.patch((0, path_1.path) `/v1/private-markets/iois/${ioiID}`, {
|
|
77
|
+
query: { account_id },
|
|
78
|
+
body,
|
|
79
|
+
...options,
|
|
80
|
+
});
|
|
81
|
+
}
|
|
7
82
|
}
|
|
8
83
|
exports.Iois = Iois;
|
|
9
84
|
//# sourceMappingURL=iois.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iois.js","sourceRoot":"","sources":["../../../src/resources/v1/private-markets/iois.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;
|
|
1
|
+
{"version":3,"file":"iois.js","sourceRoot":"","sources":["../../../src/resources/v1/private-markets/iois.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAIrD,0DAAyD;AAEzD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;;;;;;OAYG;IACH,SAAS,CAAC,MAA2B,EAAE,OAAwB;QAC7D,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;IAED;;;;;;;;;;OAUG;IACH,SAAS,CAAC,KAAa,EAAE,MAA2B,EAAE,OAAwB;QAC5E,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,4BAA4B,KAAK,EAAE,EAAE;YAClE,KAAK,EAAE,EAAE,UAAU,EAAE;YACrB,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,OAAO,CAAC,KAAwB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,0BAA0B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,SAAS,CACP,KAAa,EACb,MAA2B,EAC3B,OAAwB;QAExB,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,4BAA4B,KAAK,EAAE,EAAE;YACjE,KAAK,EAAE,EAAE,UAAU,EAAE;YACrB,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AA9ED,oBA8EC"}
|
|
@@ -1,5 +1,80 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
4
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Browse private-market offerings and their indicative terms. Access requires the account holder to hold an accreditation attestation.
|
|
7
|
+
*/
|
|
3
8
|
export class Iois extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create an IOI for a visible upcoming offering.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const response =
|
|
15
|
+
* await client.v1.privateMarkets.iois.createIoi({
|
|
16
|
+
* account_id: 0,
|
|
17
|
+
* notional_amount: '100000.00',
|
|
18
|
+
* offering_id: '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
createIoi(params, options) {
|
|
23
|
+
const { account_id, ...body } = params;
|
|
24
|
+
return this._client.post('/v1/private-markets/iois', { query: { account_id }, body, ...options });
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Withdraw a live IOI. Repeating a withdrawal returns 404.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* await client.v1.privateMarkets.iois.deleteIoi(
|
|
32
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
33
|
+
* { account_id: 0 },
|
|
34
|
+
* );
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
deleteIoi(ioiID, params, options) {
|
|
38
|
+
const { account_id } = params;
|
|
39
|
+
return this._client.delete(path `/v1/private-markets/iois/${ioiID}`, {
|
|
40
|
+
query: { account_id },
|
|
41
|
+
...options,
|
|
42
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* List every live IOI for the caller's account-holder entity.
|
|
47
|
+
*
|
|
48
|
+
* @example
|
|
49
|
+
* ```ts
|
|
50
|
+
* const response =
|
|
51
|
+
* await client.v1.privateMarkets.iois.getIois({
|
|
52
|
+
* account_id: 0,
|
|
53
|
+
* });
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
getIois(query, options) {
|
|
57
|
+
return this._client.get('/v1/private-markets/iois', { query, ...options });
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Update an IOI's notional, accepting the current NDA revision when required.
|
|
61
|
+
*
|
|
62
|
+
* @example
|
|
63
|
+
* ```ts
|
|
64
|
+
* const response =
|
|
65
|
+
* await client.v1.privateMarkets.iois.updateIoi(
|
|
66
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
67
|
+
* { account_id: 0, notional_amount: '125000.00' },
|
|
68
|
+
* );
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
updateIoi(ioiID, params, options) {
|
|
72
|
+
const { account_id, ...body } = params;
|
|
73
|
+
return this._client.patch(path `/v1/private-markets/iois/${ioiID}`, {
|
|
74
|
+
query: { account_id },
|
|
75
|
+
body,
|
|
76
|
+
...options,
|
|
77
|
+
});
|
|
78
|
+
}
|
|
4
79
|
}
|
|
5
80
|
//# sourceMappingURL=iois.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iois.mjs","sourceRoot":"","sources":["../../../src/resources/v1/private-markets/iois.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;
|
|
1
|
+
{"version":3,"file":"iois.mjs","sourceRoot":"","sources":["../../../src/resources/v1/private-markets/iois.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAIrD,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAEzD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;;;;;;OAYG;IACH,SAAS,CAAC,MAA2B,EAAE,OAAwB;QAC7D,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CA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