@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.
Files changed (132) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/package.json +1 -1
  3. package/resources/v1/index.d.mts +2 -1
  4. package/resources/v1/index.d.mts.map +1 -1
  5. package/resources/v1/index.d.ts +2 -1
  6. package/resources/v1/index.d.ts.map +1 -1
  7. package/resources/v1/index.js +3 -1
  8. package/resources/v1/index.js.map +1 -1
  9. package/resources/v1/index.mjs +1 -0
  10. package/resources/v1/index.mjs.map +1 -1
  11. package/resources/v1/instrument-data/instrument-data.d.mts +22 -4
  12. package/resources/v1/instrument-data/instrument-data.d.mts.map +1 -1
  13. package/resources/v1/instrument-data/instrument-data.d.ts +22 -4
  14. package/resources/v1/instrument-data/instrument-data.d.ts.map +1 -1
  15. package/resources/v1/instrument-data/instrument-data.js.map +1 -1
  16. package/resources/v1/instrument-data/instrument-data.mjs.map +1 -1
  17. package/resources/v1/instrument-data/market-data.d.mts +21 -3
  18. package/resources/v1/instrument-data/market-data.d.mts.map +1 -1
  19. package/resources/v1/instrument-data/market-data.d.ts +21 -3
  20. package/resources/v1/instrument-data/market-data.d.ts.map +1 -1
  21. package/resources/v1/instrument-data/market-data.js +5 -0
  22. package/resources/v1/instrument-data/market-data.js.map +1 -1
  23. package/resources/v1/instrument-data/market-data.mjs +5 -0
  24. package/resources/v1/instrument-data/market-data.mjs.map +1 -1
  25. package/resources/v1/locates.d.mts +220 -0
  26. package/resources/v1/locates.d.mts.map +1 -0
  27. package/resources/v1/locates.d.ts +220 -0
  28. package/resources/v1/locates.d.ts.map +1 -0
  29. package/resources/v1/locates.js +81 -0
  30. package/resources/v1/locates.js.map +1 -0
  31. package/resources/v1/locates.mjs +77 -0
  32. package/resources/v1/locates.mjs.map +1 -0
  33. package/resources/v1/omni-ai/entitlements.d.mts +58 -10
  34. package/resources/v1/omni-ai/entitlements.d.mts.map +1 -1
  35. package/resources/v1/omni-ai/entitlements.d.ts +58 -10
  36. package/resources/v1/omni-ai/entitlements.d.ts.map +1 -1
  37. package/resources/v1/omni-ai/entitlements.js +35 -9
  38. package/resources/v1/omni-ai/entitlements.js.map +1 -1
  39. package/resources/v1/omni-ai/entitlements.mjs +35 -9
  40. package/resources/v1/omni-ai/entitlements.mjs.map +1 -1
  41. package/resources/v1/omni-ai/index.d.mts +1 -1
  42. package/resources/v1/omni-ai/index.d.mts.map +1 -1
  43. package/resources/v1/omni-ai/index.d.ts +1 -1
  44. package/resources/v1/omni-ai/index.d.ts.map +1 -1
  45. package/resources/v1/omni-ai/index.js.map +1 -1
  46. package/resources/v1/omni-ai/index.mjs.map +1 -1
  47. package/resources/v1/omni-ai/omni-ai.d.mts +6 -5
  48. package/resources/v1/omni-ai/omni-ai.d.mts.map +1 -1
  49. package/resources/v1/omni-ai/omni-ai.d.ts +6 -5
  50. package/resources/v1/omni-ai/omni-ai.d.ts.map +1 -1
  51. package/resources/v1/omni-ai/omni-ai.js.map +1 -1
  52. package/resources/v1/omni-ai/omni-ai.mjs.map +1 -1
  53. package/resources/v1/omni-ai/threads.d.mts +8 -2
  54. package/resources/v1/omni-ai/threads.d.mts.map +1 -1
  55. package/resources/v1/omni-ai/threads.d.ts +8 -2
  56. package/resources/v1/omni-ai/threads.d.ts.map +1 -1
  57. package/resources/v1/omni-ai/threads.js +4 -2
  58. package/resources/v1/omni-ai/threads.js.map +1 -1
  59. package/resources/v1/omni-ai/threads.mjs +4 -2
  60. package/resources/v1/omni-ai/threads.mjs.map +1 -1
  61. package/resources/v1/orders.d.mts +24 -6
  62. package/resources/v1/orders.d.mts.map +1 -1
  63. package/resources/v1/orders.d.ts +24 -6
  64. package/resources/v1/orders.d.ts.map +1 -1
  65. package/resources/v1/private-markets/index.d.mts +2 -4
  66. package/resources/v1/private-markets/index.d.mts.map +1 -1
  67. package/resources/v1/private-markets/index.d.ts +2 -4
  68. package/resources/v1/private-markets/index.d.ts.map +1 -1
  69. package/resources/v1/private-markets/index.js +1 -5
  70. package/resources/v1/private-markets/index.js.map +1 -1
  71. package/resources/v1/private-markets/index.mjs +0 -2
  72. package/resources/v1/private-markets/index.mjs.map +1 -1
  73. package/resources/v1/private-markets/iois.d.mts +151 -1
  74. package/resources/v1/private-markets/iois.d.mts.map +1 -1
  75. package/resources/v1/private-markets/iois.d.ts +151 -1
  76. package/resources/v1/private-markets/iois.d.ts.map +1 -1
  77. package/resources/v1/private-markets/iois.js +75 -0
  78. package/resources/v1/private-markets/iois.js.map +1 -1
  79. package/resources/v1/private-markets/iois.mjs +75 -0
  80. package/resources/v1/private-markets/iois.mjs.map +1 -1
  81. package/resources/v1/private-markets/private-markets.d.mts +494 -133
  82. package/resources/v1/private-markets/private-markets.d.mts.map +1 -1
  83. package/resources/v1/private-markets/private-markets.d.ts +494 -133
  84. package/resources/v1/private-markets/private-markets.d.ts.map +1 -1
  85. package/resources/v1/private-markets/private-markets.js +0 -76
  86. package/resources/v1/private-markets/private-markets.js.map +1 -1
  87. package/resources/v1/private-markets/private-markets.mjs +0 -76
  88. package/resources/v1/private-markets/private-markets.mjs.map +1 -1
  89. package/resources/v1/v1.d.mts +6 -2
  90. package/resources/v1/v1.d.mts.map +1 -1
  91. package/resources/v1/v1.d.ts +6 -2
  92. package/resources/v1/v1.d.ts.map +1 -1
  93. package/resources/v1/v1.js +4 -0
  94. package/resources/v1/v1.js.map +1 -1
  95. package/resources/v1/v1.mjs +4 -0
  96. package/resources/v1/v1.mjs.map +1 -1
  97. package/src/resources/v1/index.ts +41 -7
  98. package/src/resources/v1/instrument-data/instrument-data.ts +24 -4
  99. package/src/resources/v1/instrument-data/market-data.ts +23 -3
  100. package/src/resources/v1/locates.ts +294 -0
  101. package/src/resources/v1/omni-ai/entitlements.ts +84 -9
  102. package/src/resources/v1/omni-ai/index.ts +6 -0
  103. package/src/resources/v1/omni-ai/omni-ai.ts +16 -3
  104. package/src/resources/v1/omni-ai/threads.ts +8 -2
  105. package/src/resources/v1/orders.ts +31 -6
  106. package/src/resources/v1/private-markets/index.ts +32 -38
  107. package/src/resources/v1/private-markets/iois.ts +205 -1
  108. package/src/resources/v1/private-markets/private-markets.ts +622 -209
  109. package/src/resources/v1/v1.ts +86 -14
  110. package/src/version.ts +1 -1
  111. package/version.d.mts +1 -1
  112. package/version.d.ts +1 -1
  113. package/version.js +1 -1
  114. package/version.mjs +1 -1
  115. package/resources/v1/private-markets/companies.d.mts +0 -368
  116. package/resources/v1/private-markets/companies.d.mts.map +0 -1
  117. package/resources/v1/private-markets/companies.d.ts +0 -368
  118. package/resources/v1/private-markets/companies.d.ts.map +0 -1
  119. package/resources/v1/private-markets/companies.js +0 -9
  120. package/resources/v1/private-markets/companies.js.map +0 -1
  121. package/resources/v1/private-markets/companies.mjs +0 -5
  122. package/resources/v1/private-markets/companies.mjs.map +0 -1
  123. package/resources/v1/private-markets/spvs.d.mts +0 -158
  124. package/resources/v1/private-markets/spvs.d.mts.map +0 -1
  125. package/resources/v1/private-markets/spvs.d.ts +0 -158
  126. package/resources/v1/private-markets/spvs.d.ts.map +0 -1
  127. package/resources/v1/private-markets/spvs.js +0 -9
  128. package/resources/v1/private-markets/spvs.js.map +0 -1
  129. package/resources/v1/private-markets/spvs.mjs +0 -5
  130. package/resources/v1/private-markets/spvs.mjs.map +0 -1
  131. package/src/resources/v1/private-markets/companies.ts +0 -483
  132. package/src/resources/v1/private-markets/spvs.ts +0 -201
@@ -8,6 +8,8 @@ import * as CalendarAPI from "./calendar.mjs";
8
8
  import { Calendar, } from "./calendar.mjs";
9
9
  import * as InstrumentsAPI from "./instruments.mjs";
10
10
  import { Instruments, } from "./instruments.mjs";
11
+ import * as LocatesAPI from "./locates.mjs";
12
+ import { Locates, } from "./locates.mjs";
11
13
  import * as OmniFeedAPI from "./omni-feed.mjs";
12
14
  import { OmniFeed, } from "./omni-feed.mjs";
13
15
  import * as OrdersAPI from "./orders.mjs";
@@ -32,6 +34,7 @@ export class V1 extends APIResource {
32
34
  this.calendar = new CalendarAPI.Calendar(this._client);
33
35
  this.instrumentData = new InstrumentDataAPI.InstrumentData(this._client);
34
36
  this.instruments = new InstrumentsAPI.Instruments(this._client);
37
+ this.locates = new LocatesAPI.Locates(this._client);
35
38
  this.omniAI = new OmniAIAPI.OmniAI(this._client);
36
39
  this.omniFeed = new OmniFeedAPI.OmniFeed(this._client);
37
40
  this.orders = new OrdersAPI.Orders(this._client);
@@ -46,6 +49,7 @@ V1.APIVersion = APIVersion;
46
49
  V1.Calendar = Calendar;
47
50
  V1.InstrumentData = InstrumentData;
48
51
  V1.Instruments = Instruments;
52
+ V1.Locates = Locates;
49
53
  V1.OmniAI = OmniAI;
50
54
  V1.OmniFeed = OmniFeed;
51
55
  V1.Orders = Orders;
@@ -1 +1 @@
1
- {"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAoBL,QAAQ,GAUT,uBAAmB;AACpB,OAAO,KAAK,aAAa,0BAAsB;AAC/C,OAAO,EAAE,UAAU,EAAyC,0BAAsB;AAClF,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EACL,QAAQ,GAmBT,uBAAmB;AACpB,OAAO,KAAK,cAAc,0BAAsB;AAChD,OAAO,EAcL,WAAW,GAMZ,0BAAsB;AACvB,OAAO,KAAK,WAAW,wBAAoB;AAC3C,OAAO,EAML,QAAQ,GAIT,wBAAoB;AACrB,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAwBL,MAAM,GASP,qBAAiB;AAClB,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAqBL,SAAS,GACV,wBAAoB;AACrB,OAAO,KAAK,WAAW,uBAAmB;AAC1C,OAAO,EAmBL,QAAQ,GAsBT,uBAAmB;AACpB,OAAO,KAAK,YAAY,wBA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A2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,mBAAc,GAAqC,IAAI,iBAAiB,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACtG,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/E,CAAC;CAAA;AAYD,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACvB,EAAE,CAAC,UAAU,GAAG,UAAU,CAAC;AAC3B,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACvB,EAAE,CAAC,cAAc,GAAG,cAAc,CAAC;AACnC,EAAE,CAAC,WAAW,GAAG,WAAW,CAAC;AAC7B,EAAE,CAAC,OAAO,GAAG,OAAO,CAAC;AACrB,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC;AACnB,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACvB,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC;AACnB,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC;AACzB,EAAE,CAAC,cAAc,GAAG,cAAc,CAAC;AACnC,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACvB,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC"}
@@ -113,6 +113,22 @@ export {
113
113
  type InstrumentGetOptionContractsParams,
114
114
  type InstrumentSearchInstrumentsParams,
115
115
  } from './instruments';
116
+ export {
117
+ Locates,
118
+ type Locate,
119
+ type LocateList,
120
+ type LocateRate,
121
+ type LocateRateResult,
122
+ type LocateRateResultList,
123
+ type LocateStatus,
124
+ type LocateGetLocateByIDResponse,
125
+ type LocateGetLocateRateByIDResponse,
126
+ type LocateGetLocateRatesResponse,
127
+ type LocateGetLocatesResponse,
128
+ type LocateGetLocateByIDParams,
129
+ type LocateGetLocateRatesParams,
130
+ type LocateGetLocatesParams,
131
+ } from './locates';
116
132
  export {
117
133
  OmniAI,
118
134
  type ActionButton,
@@ -213,17 +229,35 @@ export {
213
229
  } from './positions';
214
230
  export {
215
231
  PrivateMarkets,
216
- type PrivateMarketCreateIoiResponse,
232
+ type ChargedBy,
233
+ type CompanyCategory,
234
+ type CompanyCitation,
235
+ type CompanyCustomer,
236
+ type CompanyDetail,
237
+ type CompanyDocumentPreview,
238
+ type CompanyDocumentRelation,
239
+ type CompanyDocumentResource,
240
+ type CompanyDocumentType,
241
+ type CompanyHeadquarters,
242
+ type CompanyLegalEntity,
243
+ type CompanyMetricPoint,
244
+ type CompanyMetricSeries,
245
+ type CompanyNarrativeSection,
246
+ type CompanyPerson,
247
+ type CompanyPersonRole,
248
+ type CompanyProfileResource,
249
+ type CompanySocialLink,
250
+ type CompanySocialType,
251
+ type FeeFrequency,
252
+ type FeeType,
253
+ type MetricFrequency,
254
+ type MetricKey,
255
+ type SpvDetail,
256
+ type SpvFeeTermResource,
217
257
  type PrivateMarketGetCompanyByIDResponse,
218
- type PrivateMarketGetIoisResponse,
219
258
  type PrivateMarketGetSpvByIDResponse,
220
- type PrivateMarketUpdateIoiResponse,
221
- type PrivateMarketCreateIoiParams,
222
- type PrivateMarketDeleteIoiParams,
223
259
  type PrivateMarketGetCompanyByIDParams,
224
- type PrivateMarketGetIoisParams,
225
260
  type PrivateMarketGetSpvByIDParams,
226
- type PrivateMarketUpdateIoiParams,
227
261
  } from './private-markets/index';
228
262
  export {
229
263
  Screener,
@@ -1021,11 +1021,21 @@ export interface InstrumentEventIpoItem {
1021
1021
  exchange?: string | null;
1022
1022
 
1023
1023
  /**
1024
- * IPO market cap. When a null/undefined value is observed, it indicates that there
1025
- * is no available data.
1024
+ * @deprecated Deprecated: use `offering_amount`, which carries the same value.
1025
+ * This is not a market capitalization. When a null/undefined value is observed, it
1026
+ * indicates that there is no available data.
1026
1027
  */
1027
1028
  market_cap?: string | null;
1028
1029
 
1030
+ /**
1031
+ * IPO maximum aggregate offering value: all offered shares, including
1032
+ * over-allotment (greenshoe) shares, at the top of the price range. This is an
1033
+ * upper bound. It assumes full exercise of the over-allotment option and pricing
1034
+ * at the top of the range. When a null/undefined value is observed, it indicates
1035
+ * that there is no available data.
1036
+ */
1037
+ offering_amount?: string | null;
1038
+
1029
1039
  /**
1030
1040
  * IPO price range. When a null/undefined value is observed, it indicates that
1031
1041
  * there is no available data.
@@ -1412,11 +1422,21 @@ export interface InstrumentIpoEvent {
1412
1422
  exchange?: string | null;
1413
1423
 
1414
1424
  /**
1415
- * IPO market cap. When a null/undefined value is observed, it indicates that there
1416
- * is no available data.
1425
+ * @deprecated Deprecated: use `offering_amount`, which carries the same value.
1426
+ * This is not a market capitalization. When a null/undefined value is observed, it
1427
+ * indicates that there is no available data.
1417
1428
  */
1418
1429
  market_cap?: string | null;
1419
1430
 
1431
+ /**
1432
+ * IPO maximum aggregate offering value: all offered shares, including
1433
+ * over-allotment (greenshoe) shares, at the top of the price range. This is an
1434
+ * upper bound. It assumes full exercise of the over-allotment option and pricing
1435
+ * at the top of the range. When a null/undefined value is observed, it indicates
1436
+ * that there is no available data.
1437
+ */
1438
+ offering_amount?: string | null;
1439
+
1420
1440
  /**
1421
1441
  * IPO price range. When a null/undefined value is observed, it indicates that
1422
1442
  * there is no available data.
@@ -36,6 +36,11 @@ export class MarketData extends APIResource {
36
36
  /**
37
37
  * Get market data snapshots for one or more securities.
38
38
  *
39
+ * Two targeting modes, mutually exclusive: `instrument_ids` (1-100 ids), or
40
+ * `underlying_instrument_id` + `expiry` together, which resolves the underlier's
41
+ * option chain for that expiry and returns a snapshot for every contract in it
42
+ * (uncapped).
43
+ *
39
44
  * @example
40
45
  * ```ts
41
46
  * const response =
@@ -227,7 +232,8 @@ export interface SnapshotGreeks {
227
232
  gamma: string;
228
233
 
229
234
  /**
230
- * Implied volatility, annualized (`0.20` == 20%).
235
+ * Implied volatility. Temporarily withheld: always `0`. Do not use this value; it
236
+ * is not a market implied volatility.
231
237
  */
232
238
  iv: string;
233
239
 
@@ -456,12 +462,26 @@ export interface MarketDataGetDailySummariesParams {
456
462
  }
457
463
 
458
464
  export interface MarketDataGetSnapshotsParams {
465
+ /**
466
+ * Filter the option chain to contracts expiring on this date (YYYY-MM-DD). Must be
467
+ * provided together with `underlying_instrument_id`.
468
+ */
469
+ expiry?: string;
470
+
459
471
  /**
460
472
  * Comma-separated instrument IDs (UUID) or symbols (equity tickers or OSI option
461
- * symbols). Required; accepts 1 to 100 IDs. Duplicate resolved ids collapse to a
462
- * single row.
473
+ * symbols). Accepts 1 to 100 IDs; duplicate resolved ids collapse to a single row.
474
+ * Required unless `underlying_instrument_id` and `expiry` are provided; mutually
475
+ * exclusive with that pair.
463
476
  */
464
477
  instrument_ids?: Array<OrdersAPI.InstrumentIDOrSymbol>;
478
+
479
+ /**
480
+ * Instrument identifier or symbol of the underlying equity/index for an option
481
+ * chain. Must be provided together with `expiry`; mutually exclusive with
482
+ * `instrument_ids`.
483
+ */
484
+ underlying_instrument_id?: string;
465
485
  }
466
486
 
467
487
  export declare namespace MarketData {
@@ -0,0 +1,294 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import * as Shared from '../shared';
5
+ import * as OrdersAPI from './orders';
6
+ import { APIPromise } from '../../core/api-promise';
7
+ import { RequestOptions } from '../../internal/request-options';
8
+ import { path } from '../../internal/utils/path';
9
+
10
+ /**
11
+ * Query locate requests, granted locates, and cached locate borrow rates.
12
+ */
13
+ export class Locates extends APIResource {
14
+ /**
15
+ * > **Beta** — this endpoint may change before general availability.
16
+ *
17
+ * Fetch one locate by id, matched against the locate request id, locate id, and
18
+ * client request id, across all days in force.
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * const response = await client.v1.locates.getLocateByID(
23
+ * 'id',
24
+ * { account_id: 0 },
25
+ * );
26
+ * ```
27
+ */
28
+ getLocateByID(
29
+ id: string,
30
+ params: LocateGetLocateByIDParams,
31
+ options?: RequestOptions,
32
+ ): APIPromise<LocateGetLocateByIDResponse> {
33
+ const { account_id } = params;
34
+ return this._client.get(path`/v1/accounts/${account_id}/locates/${id}`, options);
35
+ }
36
+
37
+ /**
38
+ * > **Beta** — this endpoint may change before general availability.
39
+ *
40
+ * Fetch the cached locate borrow rate for one instrument. Rates refresh
41
+ * periodically; `404` means no rate is currently cached for the instrument.
42
+ *
43
+ * @example
44
+ * ```ts
45
+ * const response = await client.v1.locates.getLocateRateByID(
46
+ * 'x',
47
+ * );
48
+ * ```
49
+ */
50
+ getLocateRateByID(
51
+ instrumentID: OrdersAPI.InstrumentIDOrSymbol,
52
+ options?: RequestOptions,
53
+ ): APIPromise<LocateGetLocateRateByIDResponse> {
54
+ return this._client.get(path`/v1/locates/rates/${instrumentID}`, options);
55
+ }
56
+
57
+ /**
58
+ * > **Beta** — this endpoint may change before general availability.
59
+ *
60
+ * Fetch the cached locate borrow rates for up to 1,000 instruments. The response
61
+ * returns one row per requested instrument, in request order. Each row carries
62
+ * either the `rate` or an `error` — a `404` when the instrument is unknown or has
63
+ * no cached rate. The status is `207` when any row has an error, `200` when every
64
+ * instrument resolved to a rate.
65
+ *
66
+ * @example
67
+ * ```ts
68
+ * const response = await client.v1.locates.getLocateRates({
69
+ * instrument_ids: ['x'],
70
+ * });
71
+ * ```
72
+ */
73
+ getLocateRates(
74
+ query: LocateGetLocateRatesParams,
75
+ options?: RequestOptions,
76
+ ): APIPromise<LocateGetLocateRatesResponse> {
77
+ return this._client.get('/v1/locates/rates', { query, ...options });
78
+ }
79
+
80
+ /**
81
+ * > **Beta** — this endpoint may change before general availability.
82
+ *
83
+ * List locates for the account on one effective date, which defaults to today's
84
+ * New York calendar date. Filter by comma-separated statuses and instrument ids or
85
+ * symbols.
86
+ *
87
+ * @example
88
+ * ```ts
89
+ * const response = await client.v1.locates.getLocates(0);
90
+ * ```
91
+ */
92
+ getLocates(
93
+ accountID: number,
94
+ query: LocateGetLocatesParams | null | undefined = {},
95
+ options?: RequestOptions,
96
+ ): APIPromise<LocateGetLocatesResponse> {
97
+ return this._client.get(path`/v1/accounts/${accountID}/locates`, { query, ...options });
98
+ }
99
+ }
100
+
101
+ /**
102
+ * A locate request joined with the locate granted for it, if any.
103
+ */
104
+ export interface Locate {
105
+ /**
106
+ * Account the locate is booked to.
107
+ */
108
+ account_id: number;
109
+
110
+ /**
111
+ * Caller-assigned id of the locate request.
112
+ */
113
+ client_request_id: string;
114
+
115
+ /**
116
+ * New York calendar date the locate is in force for.
117
+ */
118
+ effective_date: string;
119
+
120
+ /**
121
+ * Instrument id.
122
+ */
123
+ instrument_id: string;
124
+
125
+ /**
126
+ * Engine-assigned locate request id.
127
+ */
128
+ locate_request_id: string;
129
+
130
+ /**
131
+ * Number of shares requested.
132
+ */
133
+ requested_quantity: number;
134
+
135
+ /**
136
+ * Presented status of the locate.
137
+ */
138
+ status: LocateStatus;
139
+
140
+ /**
141
+ * Engine-assigned locate id; set once the locate is granted. When a null/undefined
142
+ * value is observed, it indicates it does not apply.
143
+ */
144
+ locate_id?: string | null;
145
+
146
+ /**
147
+ * Number of shares granted; set once the locate is granted. When a null/undefined
148
+ * value is observed, it indicates it does not apply.
149
+ */
150
+ quantity?: number | null;
151
+
152
+ /**
153
+ * Client order id the request relates to, if any. When a null/undefined value is
154
+ * observed, it indicates it does not apply.
155
+ */
156
+ related_order_id?: string | null;
157
+
158
+ /**
159
+ * Number of granted shares reserved. When a null/undefined value is observed, it
160
+ * indicates it does not apply.
161
+ */
162
+ reserved_quantity?: number | null;
163
+
164
+ /**
165
+ * Number of granted shares already used. When a null/undefined value is observed,
166
+ * it indicates it does not apply.
167
+ */
168
+ used_quantity?: number | null;
169
+ }
170
+
171
+ export type LocateList = Array<Locate>;
172
+
173
+ /**
174
+ * A locate borrow rate for an instrument.
175
+ */
176
+ export interface LocateRate {
177
+ /**
178
+ * Instrument id the rate applies to.
179
+ */
180
+ instrument_id: string;
181
+
182
+ /**
183
+ * Borrow rate, expressed as a decimal (e.g. 0.037012 for 3.7012%).
184
+ */
185
+ rate: string;
186
+
187
+ /**
188
+ * When the rate was requested from the locates venue.
189
+ */
190
+ as_of?: string | null;
191
+ }
192
+
193
+ /**
194
+ * A requested instrument with either its cached borrow rate or an error.
195
+ */
196
+ export interface LocateRateResult {
197
+ /**
198
+ * The instrument id (UUID) or symbol, echoed exactly as requested, so each result
199
+ * maps back to its request.
200
+ */
201
+ instrument: OrdersAPI.InstrumentIDOrSymbol;
202
+
203
+ /**
204
+ * Why no rate is present — a `404` when the instrument is unknown or has no cached
205
+ * rate. Omitted when `rate` is present.
206
+ */
207
+ error?: Shared.APIError | null;
208
+
209
+ /**
210
+ * The cached borrow rate. Present when a rate was found; omitted when `error` is
211
+ * present.
212
+ */
213
+ rate?: LocateRate | null;
214
+ }
215
+
216
+ export type LocateRateResultList = Array<LocateRateResult>;
217
+
218
+ /**
219
+ * The presented status of a locate: the locate-request lifecycle plus `EXPIRED`
220
+ * for accepted locates whose effective date has passed.
221
+ */
222
+ export type LocateStatus = 'REQUESTED' | 'ACCEPTED' | 'REJECTED' | 'EXPIRED';
223
+
224
+ export interface LocateGetLocateByIDResponse extends Shared.BaseResponse {
225
+ /**
226
+ * A locate request joined with the locate granted for it, if any.
227
+ */
228
+ data: Locate;
229
+ }
230
+
231
+ export interface LocateGetLocateRateByIDResponse extends Shared.BaseResponse {
232
+ /**
233
+ * A locate borrow rate for an instrument.
234
+ */
235
+ data: LocateRate;
236
+ }
237
+
238
+ export interface LocateGetLocateRatesResponse extends Shared.BaseResponse {
239
+ data: LocateRateResultList;
240
+ }
241
+
242
+ export interface LocateGetLocatesResponse extends Shared.BaseResponse {
243
+ data: LocateList;
244
+ }
245
+
246
+ export interface LocateGetLocateByIDParams {
247
+ /**
248
+ * Account identifier
249
+ */
250
+ account_id: number;
251
+ }
252
+
253
+ export interface LocateGetLocateRatesParams {
254
+ /**
255
+ * Comma-separated instrument IDs (UUID) or symbols; at least one, at most 1,000.
256
+ */
257
+ instrument_ids: Array<OrdersAPI.InstrumentIDOrSymbol>;
258
+ }
259
+
260
+ export interface LocateGetLocatesParams {
261
+ /**
262
+ * Effective date to list; defaults to today's New York calendar date. Explicit
263
+ * dates are used unchanged, including weekends and holidays.
264
+ */
265
+ effective_date?: string;
266
+
267
+ /**
268
+ * Comma-separated instrument IDs (UUID) or symbols.
269
+ */
270
+ instrument_ids?: Array<OrdersAPI.InstrumentIDOrSymbol>;
271
+
272
+ /**
273
+ * Comma-separated locate statuses to filter by
274
+ */
275
+ status?: Array<'REQUESTED' | 'ACCEPTED' | 'REJECTED' | 'EXPIRED'>;
276
+ }
277
+
278
+ export declare namespace Locates {
279
+ export {
280
+ type Locate as Locate,
281
+ type LocateList as LocateList,
282
+ type LocateRate as LocateRate,
283
+ type LocateRateResult as LocateRateResult,
284
+ type LocateRateResultList as LocateRateResultList,
285
+ type LocateStatus as LocateStatus,
286
+ type LocateGetLocateByIDResponse as LocateGetLocateByIDResponse,
287
+ type LocateGetLocateRateByIDResponse as LocateGetLocateRateByIDResponse,
288
+ type LocateGetLocateRatesResponse as LocateGetLocateRatesResponse,
289
+ type LocateGetLocatesResponse as LocateGetLocatesResponse,
290
+ type LocateGetLocateByIDParams as LocateGetLocateByIDParams,
291
+ type LocateGetLocateRatesParams as LocateGetLocateRatesParams,
292
+ type LocateGetLocatesParams as LocateGetLocatesParams,
293
+ };
294
+ }
@@ -34,13 +34,9 @@ export class Entitlements extends APIResource {
34
34
  /**
35
35
  * Revoke one entitlement grant by id.
36
36
  *
37
- * @example
38
- * ```ts
39
- * const response =
40
- * await client.v1.omniAI.entitlements.deleteEntitlement(
41
- * 'entitlement_id',
42
- * );
43
- * ```
37
+ * Deprecated -- use `POST /omni-ai/entitlements/opt-out`.
38
+ *
39
+ * @deprecated
44
40
  */
45
41
  deleteEntitlement(
46
42
  entitlementID: string,
@@ -65,20 +61,58 @@ export class Entitlements extends APIResource {
65
61
  }
66
62
 
67
63
  /**
68
- * List caller's active entitlement grants.
64
+ * Whether each entitlement is enabled, per account. Accounts with no recorded
65
+ * choice are enabled by default. Without `account_id`, covers every account the
66
+ * caller can access.
69
67
  *
70
68
  * @example
71
69
  * ```ts
72
70
  * const response =
73
- * await client.v1.omniAI.entitlements.getEntitlements();
71
+ * await client.v1.omniAI.entitlements.getEntitlementStatus();
74
72
  * ```
75
73
  */
74
+ getEntitlementStatus(
75
+ query: EntitlementGetEntitlementStatusParams | null | undefined = {},
76
+ options?: RequestOptions,
77
+ ): APIPromise<EntitlementGetEntitlementStatusResponse> {
78
+ return this._client.get('/v1/omni-ai/entitlement-status', { query, ...options });
79
+ }
80
+
81
+ /**
82
+ * List caller's active entitlement grants.
83
+ *
84
+ * Deprecated -- use `GET /omni-ai/entitlement-status`; this lists explicit grants
85
+ * only and omits accounts that are enabled by default.
86
+ *
87
+ * @deprecated
88
+ */
76
89
  getEntitlements(
77
90
  query: EntitlementGetEntitlementsParams | null | undefined = {},
78
91
  options?: RequestOptions,
79
92
  ): APIPromise<EntitlementGetEntitlementsResponse> {
80
93
  return this._client.get('/v1/omni-ai/entitlements', { query, ...options });
81
94
  }
95
+
96
+ /**
97
+ * Turn off one-or-more entitlements for the given accounts. Idempotent: accounts
98
+ * that are already opted out are left as they are. To turn an entitlement back on,
99
+ * sign the agreement with `POST /omni-ai/entitlements`.
100
+ *
101
+ * @example
102
+ * ```ts
103
+ * const response =
104
+ * await client.v1.omniAI.entitlements.optOutEntitlements({
105
+ * account_ids: [100019, 100021],
106
+ * entitlement_codes: ['omni.account_data'],
107
+ * });
108
+ * ```
109
+ */
110
+ optOutEntitlements(
111
+ body: EntitlementOptOutEntitlementsParams,
112
+ options?: RequestOptions,
113
+ ): APIPromise<EntitlementOptOutEntitlementsResponse> {
114
+ return this._client.post('/v1/omni-ai/entitlements/opt-out', { body, ...options });
115
+ }
82
116
  }
83
117
 
84
118
  export interface DeleteEntitlementResponse {
@@ -125,6 +159,23 @@ export interface EntitlementResource {
125
159
 
126
160
  export type EntitlementResourceList = Array<EntitlementResource>;
127
161
 
162
+ /**
163
+ * Whether an entitlement is enabled for one account. Accounts the user never chose
164
+ * for are enabled by default.
165
+ */
166
+ export interface EntitlementStatusResource {
167
+ account_id: number;
168
+
169
+ enabled: boolean;
170
+
171
+ /**
172
+ * Stable entitlement code granted by an agreement.
173
+ */
174
+ entitlement_code: OmniAIAPI.EntitlementCode;
175
+ }
176
+
177
+ export type EntitlementStatusResourceList = Array<EntitlementStatusResource>;
178
+
128
179
  export interface EntitlementCreateEntitlementsResponse extends Shared.BaseResponse {
129
180
  data: EntitlementResourceList;
130
181
  }
@@ -137,10 +188,18 @@ export interface EntitlementGetEntitlementAgreementsResponse extends Shared.Base
137
188
  data: EntitlementAgreementResourceList;
138
189
  }
139
190
 
191
+ export interface EntitlementGetEntitlementStatusResponse extends Shared.BaseResponse {
192
+ data: EntitlementStatusResourceList;
193
+ }
194
+
140
195
  export interface EntitlementGetEntitlementsResponse extends Shared.BaseResponse {
141
196
  data: EntitlementResourceList;
142
197
  }
143
198
 
199
+ export interface EntitlementOptOutEntitlementsResponse extends Shared.BaseResponse {
200
+ data: EntitlementStatusResourceList;
201
+ }
202
+
144
203
  export interface EntitlementCreateEntitlementsParams {
145
204
  account_ids: Array<number>;
146
205
 
@@ -149,10 +208,20 @@ export interface EntitlementCreateEntitlementsParams {
149
208
  entitlement_codes: Array<OmniAIAPI.EntitlementCode>;
150
209
  }
151
210
 
211
+ export interface EntitlementGetEntitlementStatusParams {
212
+ account_id?: number;
213
+ }
214
+
152
215
  export interface EntitlementGetEntitlementsParams {
153
216
  account_id?: number;
154
217
  }
155
218
 
219
+ export interface EntitlementOptOutEntitlementsParams {
220
+ account_ids: Array<number>;
221
+
222
+ entitlement_codes: Array<OmniAIAPI.EntitlementCode>;
223
+ }
224
+
156
225
  export declare namespace Entitlements {
157
226
  export {
158
227
  type DeleteEntitlementResponse as DeleteEntitlementResponse,
@@ -160,11 +229,17 @@ export declare namespace Entitlements {
160
229
  type EntitlementAgreementResourceList as EntitlementAgreementResourceList,
161
230
  type EntitlementResource as EntitlementResource,
162
231
  type EntitlementResourceList as EntitlementResourceList,
232
+ type EntitlementStatusResource as EntitlementStatusResource,
233
+ type EntitlementStatusResourceList as EntitlementStatusResourceList,
163
234
  type EntitlementCreateEntitlementsResponse as EntitlementCreateEntitlementsResponse,
164
235
  type EntitlementDeleteEntitlementResponse as EntitlementDeleteEntitlementResponse,
165
236
  type EntitlementGetEntitlementAgreementsResponse as EntitlementGetEntitlementAgreementsResponse,
237
+ type EntitlementGetEntitlementStatusResponse as EntitlementGetEntitlementStatusResponse,
166
238
  type EntitlementGetEntitlementsResponse as EntitlementGetEntitlementsResponse,
239
+ type EntitlementOptOutEntitlementsResponse as EntitlementOptOutEntitlementsResponse,
167
240
  type EntitlementCreateEntitlementsParams as EntitlementCreateEntitlementsParams,
241
+ type EntitlementGetEntitlementStatusParams as EntitlementGetEntitlementStatusParams,
168
242
  type EntitlementGetEntitlementsParams as EntitlementGetEntitlementsParams,
243
+ type EntitlementOptOutEntitlementsParams as EntitlementOptOutEntitlementsParams,
169
244
  };
170
245
  }
@@ -7,12 +7,18 @@ export {
7
7
  type EntitlementAgreementResourceList,
8
8
  type EntitlementResource,
9
9
  type EntitlementResourceList,
10
+ type EntitlementStatusResource,
11
+ type EntitlementStatusResourceList,
10
12
  type EntitlementCreateEntitlementsResponse,
11
13
  type EntitlementDeleteEntitlementResponse,
12
14
  type EntitlementGetEntitlementAgreementsResponse,
15
+ type EntitlementGetEntitlementStatusResponse,
13
16
  type EntitlementGetEntitlementsResponse,
17
+ type EntitlementOptOutEntitlementsResponse,
14
18
  type EntitlementCreateEntitlementsParams,
19
+ type EntitlementGetEntitlementStatusParams,
15
20
  type EntitlementGetEntitlementsParams,
21
+ type EntitlementOptOutEntitlementsParams,
16
22
  } from './entitlements';
17
23
  export {
18
24
  Messages,