@clear-street/clearstreet 0.102.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 +23 -0
- package/package.json +1 -1
- package/resources/v1/index.d.mts +2 -1
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +2 -1
- 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 +1 -0
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/instrument-data/instrument-data.d.mts +22 -4
- package/resources/v1/instrument-data/instrument-data.d.mts.map +1 -1
- package/resources/v1/instrument-data/instrument-data.d.ts +22 -4
- package/resources/v1/instrument-data/instrument-data.d.ts.map +1 -1
- package/resources/v1/instrument-data/instrument-data.js.map +1 -1
- package/resources/v1/instrument-data/instrument-data.mjs.map +1 -1
- package/resources/v1/instrument-data/market-data.d.mts +21 -3
- package/resources/v1/instrument-data/market-data.d.mts.map +1 -1
- package/resources/v1/instrument-data/market-data.d.ts +21 -3
- package/resources/v1/instrument-data/market-data.d.ts.map +1 -1
- package/resources/v1/instrument-data/market-data.js +5 -0
- package/resources/v1/instrument-data/market-data.js.map +1 -1
- package/resources/v1/instrument-data/market-data.mjs +5 -0
- package/resources/v1/instrument-data/market-data.mjs.map +1 -1
- package/resources/v1/locates.d.mts +220 -0
- package/resources/v1/locates.d.mts.map +1 -0
- package/resources/v1/locates.d.ts +220 -0
- package/resources/v1/locates.d.ts.map +1 -0
- package/resources/v1/locates.js +81 -0
- package/resources/v1/locates.js.map +1 -0
- package/resources/v1/locates.mjs +77 -0
- package/resources/v1/locates.mjs.map +1 -0
- 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 +6 -5
- package/resources/v1/omni-ai/omni-ai.d.mts.map +1 -1
- package/resources/v1/omni-ai/omni-ai.d.ts +6 -5
- 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/omni-ai/threads.d.mts +8 -2
- package/resources/v1/omni-ai/threads.d.mts.map +1 -1
- package/resources/v1/omni-ai/threads.d.ts +8 -2
- package/resources/v1/omni-ai/threads.d.ts.map +1 -1
- package/resources/v1/omni-ai/threads.js +4 -2
- package/resources/v1/omni-ai/threads.js.map +1 -1
- package/resources/v1/omni-ai/threads.mjs +4 -2
- package/resources/v1/omni-ai/threads.mjs.map +1 -1
- package/resources/v1/orders.d.mts +24 -6
- package/resources/v1/orders.d.mts.map +1 -1
- package/resources/v1/orders.d.ts +24 -6
- package/resources/v1/orders.d.ts.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 +6 -2
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +6 -2
- 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 +4 -0
- package/resources/v1/v1.mjs.map +1 -1
- package/src/resources/v1/index.ts +41 -7
- package/src/resources/v1/instrument-data/instrument-data.ts +24 -4
- package/src/resources/v1/instrument-data/market-data.ts +23 -3
- package/src/resources/v1/locates.ts +294 -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 +16 -3
- package/src/resources/v1/omni-ai/threads.ts +8 -2
- package/src/resources/v1/orders.ts +31 -6
- 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 +86 -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
|
@@ -13,10 +13,16 @@ import {
|
|
|
13
13
|
EntitlementCreateEntitlementsResponse,
|
|
14
14
|
EntitlementDeleteEntitlementResponse,
|
|
15
15
|
EntitlementGetEntitlementAgreementsResponse,
|
|
16
|
+
EntitlementGetEntitlementStatusParams,
|
|
17
|
+
EntitlementGetEntitlementStatusResponse,
|
|
16
18
|
EntitlementGetEntitlementsParams,
|
|
17
19
|
EntitlementGetEntitlementsResponse,
|
|
20
|
+
EntitlementOptOutEntitlementsParams,
|
|
21
|
+
EntitlementOptOutEntitlementsResponse,
|
|
18
22
|
EntitlementResource,
|
|
19
23
|
EntitlementResourceList,
|
|
24
|
+
EntitlementStatusResource,
|
|
25
|
+
EntitlementStatusResourceList,
|
|
20
26
|
Entitlements,
|
|
21
27
|
} from './entitlements';
|
|
22
28
|
import * as MessagesAPI from './messages';
|
|
@@ -533,9 +539,10 @@ export interface PrefillNewOrderRequest {
|
|
|
533
539
|
stop_price?: string | null;
|
|
534
540
|
|
|
535
541
|
/**
|
|
536
|
-
* Optional execution strategy. One of `SOR`, `VWAP`, or `
|
|
537
|
-
* `
|
|
538
|
-
*
|
|
542
|
+
* Optional execution strategy. One of `SOR`, `VWAP`, `TWAP`, or `DMA`. Defaults to
|
|
543
|
+
* `SOR`, the only strategy OTC common-stock orders support. `VWAP` and `TWAP` are
|
|
544
|
+
* supported only on `MARKET` and `LIMIT` orders, and `DMA` only on `LIMIT` orders;
|
|
545
|
+
* all three require `DAY` time-in-force.
|
|
539
546
|
*/
|
|
540
547
|
strategy?: OrdersAPI.OrderStrategy | null;
|
|
541
548
|
|
|
@@ -725,12 +732,18 @@ export declare namespace OmniAI {
|
|
|
725
732
|
type EntitlementAgreementResourceList as EntitlementAgreementResourceList,
|
|
726
733
|
type EntitlementResource as EntitlementResource,
|
|
727
734
|
type EntitlementResourceList as EntitlementResourceList,
|
|
735
|
+
type EntitlementStatusResource as EntitlementStatusResource,
|
|
736
|
+
type EntitlementStatusResourceList as EntitlementStatusResourceList,
|
|
728
737
|
type EntitlementCreateEntitlementsResponse as EntitlementCreateEntitlementsResponse,
|
|
729
738
|
type EntitlementDeleteEntitlementResponse as EntitlementDeleteEntitlementResponse,
|
|
730
739
|
type EntitlementGetEntitlementAgreementsResponse as EntitlementGetEntitlementAgreementsResponse,
|
|
740
|
+
type EntitlementGetEntitlementStatusResponse as EntitlementGetEntitlementStatusResponse,
|
|
731
741
|
type EntitlementGetEntitlementsResponse as EntitlementGetEntitlementsResponse,
|
|
742
|
+
type EntitlementOptOutEntitlementsResponse as EntitlementOptOutEntitlementsResponse,
|
|
732
743
|
type EntitlementCreateEntitlementsParams as EntitlementCreateEntitlementsParams,
|
|
744
|
+
type EntitlementGetEntitlementStatusParams as EntitlementGetEntitlementStatusParams,
|
|
733
745
|
type EntitlementGetEntitlementsParams as EntitlementGetEntitlementsParams,
|
|
746
|
+
type EntitlementOptOutEntitlementsParams as EntitlementOptOutEntitlementsParams,
|
|
734
747
|
};
|
|
735
748
|
|
|
736
749
|
export {
|
|
@@ -138,8 +138,10 @@ export class Threads extends APIResource {
|
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
|
-
* List authorized conversation metadata,
|
|
142
|
-
* `
|
|
141
|
+
* List authorized conversation metadata, most recently active first (by
|
|
142
|
+
* `updated_at`, which a new message moves). Use `page_size` and `page_token` for
|
|
143
|
+
* pagination, and the messages endpoint for conversation history. A thread that
|
|
144
|
+
* gets a message while you page moves to the first page.
|
|
143
145
|
*
|
|
144
146
|
* With `account_id`, list only conversations linked to that account and require
|
|
145
147
|
* current account access. Without it, list only conversations with no linked
|
|
@@ -323,6 +325,10 @@ export interface Thread {
|
|
|
323
325
|
|
|
324
326
|
title: string;
|
|
325
327
|
|
|
328
|
+
/**
|
|
329
|
+
* Time of the last activity: a new message in the thread or a change to the
|
|
330
|
+
* thread.
|
|
331
|
+
*/
|
|
326
332
|
updated_at: string;
|
|
327
333
|
}
|
|
328
334
|
|
|
@@ -309,9 +309,10 @@ export interface NewOrderRequest {
|
|
|
309
309
|
stop_price?: string | null;
|
|
310
310
|
|
|
311
311
|
/**
|
|
312
|
-
* Optional execution strategy. One of `SOR`, `VWAP`, or `
|
|
313
|
-
* `
|
|
314
|
-
*
|
|
312
|
+
* Optional execution strategy. One of `SOR`, `VWAP`, `TWAP`, or `DMA`. Defaults to
|
|
313
|
+
* `SOR`, the only strategy OTC common-stock orders support. `VWAP` and `TWAP` are
|
|
314
|
+
* supported only on `MARKET` and `LIMIT` orders, and `DMA` only on `LIMIT` orders;
|
|
315
|
+
* all three require `DAY` time-in-force.
|
|
315
316
|
*/
|
|
316
317
|
strategy?: OrderStrategy | null;
|
|
317
318
|
|
|
@@ -553,7 +554,12 @@ export namespace Order {
|
|
|
553
554
|
/**
|
|
554
555
|
* Execution strategy type.
|
|
555
556
|
*/
|
|
556
|
-
type:
|
|
557
|
+
type: 'SOR' | 'VWAP' | 'TWAP' | 'DMA';
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* Venue code the order is routed to. DMA only.
|
|
561
|
+
*/
|
|
562
|
+
destination?: string;
|
|
557
563
|
|
|
558
564
|
/**
|
|
559
565
|
* UTC timestamp (RFC 3339) at which execution ends.
|
|
@@ -595,9 +601,13 @@ export type OrderStatus =
|
|
|
595
601
|
|
|
596
602
|
/**
|
|
597
603
|
* Optional execution strategy controlling how the order is worked in the market.
|
|
598
|
-
* Omit to use standard routing. One of `SOR`, `VWAP`, or `
|
|
604
|
+
* Omit to use standard routing. One of `SOR`, `VWAP`, `TWAP`, or `DMA`.
|
|
599
605
|
*/
|
|
600
|
-
export type OrderStrategy =
|
|
606
|
+
export type OrderStrategy =
|
|
607
|
+
| OrderStrategy.Type
|
|
608
|
+
| OrderStrategy.UnionMember1
|
|
609
|
+
| OrderStrategy.UnionMember2
|
|
610
|
+
| OrderStrategy.UnionMember3;
|
|
601
611
|
|
|
602
612
|
export namespace OrderStrategy {
|
|
603
613
|
/**
|
|
@@ -655,6 +665,21 @@ export namespace OrderStrategy {
|
|
|
655
665
|
*/
|
|
656
666
|
start_at?: string;
|
|
657
667
|
}
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* Direct Market Access. Routes the order straight to the named venue.
|
|
671
|
+
*/
|
|
672
|
+
export interface UnionMember3 {
|
|
673
|
+
/**
|
|
674
|
+
* Venue code the order is routed to.
|
|
675
|
+
*/
|
|
676
|
+
destination: string;
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* Execution strategy type.
|
|
680
|
+
*/
|
|
681
|
+
type: 'DMA';
|
|
682
|
+
}
|
|
658
683
|
}
|
|
659
684
|
|
|
660
685
|
/**
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
}
|