@clear-street/clearstreet 0.75.0 → 0.77.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 +18 -0
- package/package.json +1 -1
- package/resources/v1/accounts.d.mts +26 -13
- package/resources/v1/accounts.d.mts.map +1 -1
- package/resources/v1/accounts.d.ts +26 -13
- package/resources/v1/accounts.d.ts.map +1 -1
- package/resources/v1/calendar.d.mts +10 -5
- package/resources/v1/calendar.d.mts.map +1 -1
- package/resources/v1/calendar.d.ts +10 -5
- package/resources/v1/calendar.d.ts.map +1 -1
- package/resources/v1/index.d.mts +0 -1
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +0 -1
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +1 -3
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +0 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/instrument-data/instrument-data.d.mts +90 -45
- package/resources/v1/instrument-data/instrument-data.d.mts.map +1 -1
- package/resources/v1/instrument-data/instrument-data.d.ts +90 -45
- 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 +29 -14
- package/resources/v1/instrument-data/market-data.d.mts.map +1 -1
- package/resources/v1/instrument-data/market-data.d.ts +29 -14
- package/resources/v1/instrument-data/market-data.d.ts.map +1 -1
- package/resources/v1/instrument-data/news.d.mts +10 -5
- package/resources/v1/instrument-data/news.d.mts.map +1 -1
- package/resources/v1/instrument-data/news.d.ts +10 -5
- package/resources/v1/instrument-data/news.d.ts.map +1 -1
- package/resources/v1/instruments.d.mts +42 -21
- package/resources/v1/instruments.d.mts.map +1 -1
- package/resources/v1/instruments.d.ts +42 -21
- package/resources/v1/instruments.d.ts.map +1 -1
- package/resources/v1/omni-ai/messages.d.mts +4 -0
- package/resources/v1/omni-ai/messages.d.mts.map +1 -1
- package/resources/v1/omni-ai/messages.d.ts +4 -0
- package/resources/v1/omni-ai/messages.d.ts.map +1 -1
- package/resources/v1/omni-ai/omni-ai.d.mts +20 -10
- package/resources/v1/omni-ai/omni-ai.d.mts.map +1 -1
- package/resources/v1/omni-ai/omni-ai.d.ts +20 -10
- 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/responses.d.mts +9 -2
- package/resources/v1/omni-ai/responses.d.mts.map +1 -1
- package/resources/v1/omni-ai/responses.d.ts +9 -2
- package/resources/v1/omni-ai/responses.d.ts.map +1 -1
- package/resources/v1/omni-ai/threads.d.mts +1 -1
- package/resources/v1/omni-ai/threads.d.ts +1 -1
- package/resources/v1/orders.d.mts +30 -15
- package/resources/v1/orders.d.mts.map +1 -1
- package/resources/v1/orders.d.ts +30 -15
- package/resources/v1/orders.d.ts.map +1 -1
- package/resources/v1/positions.d.mts +46 -27
- package/resources/v1/positions.d.mts.map +1 -1
- package/resources/v1/positions.d.ts +46 -27
- package/resources/v1/positions.d.ts.map +1 -1
- package/resources/v1/positions.js +11 -5
- package/resources/v1/positions.js.map +1 -1
- package/resources/v1/positions.mjs +11 -5
- package/resources/v1/positions.mjs.map +1 -1
- package/resources/v1/v1.d.mts +0 -4
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +0 -4
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +0 -4
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +0 -4
- package/resources/v1/v1.mjs.map +1 -1
- package/resources/v1/watchlist.d.mts +4 -2
- package/resources/v1/watchlist.d.mts.map +1 -1
- package/resources/v1/watchlist.d.ts +4 -2
- package/resources/v1/watchlist.d.ts.map +1 -1
- package/src/resources/v1/accounts.ts +26 -13
- package/src/resources/v1/calendar.ts +10 -5
- package/src/resources/v1/index.ts +0 -1
- package/src/resources/v1/instrument-data/instrument-data.ts +90 -45
- package/src/resources/v1/instrument-data/market-data.ts +29 -14
- package/src/resources/v1/instrument-data/news.ts +10 -5
- package/src/resources/v1/instruments.ts +42 -21
- package/src/resources/v1/omni-ai/messages.ts +4 -0
- package/src/resources/v1/omni-ai/omni-ai.ts +20 -10
- package/src/resources/v1/omni-ai/responses.ts +9 -2
- package/src/resources/v1/omni-ai/threads.ts +1 -1
- package/src/resources/v1/orders.ts +30 -15
- package/src/resources/v1/positions.ts +45 -27
- package/src/resources/v1/v1.ts +0 -6
- package/src/resources/v1/watchlist.ts +4 -2
- 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/websocket.d.mts +0 -18
- package/resources/v1/websocket.d.mts.map +0 -1
- package/resources/v1/websocket.d.ts +0 -18
- package/resources/v1/websocket.d.ts.map +0 -1
- package/resources/v1/websocket.js +0 -27
- package/resources/v1/websocket.js.map +0 -1
- package/resources/v1/websocket.mjs +0 -23
- package/resources/v1/websocket.mjs.map +0 -1
- package/src/resources/v1/websocket.ts +0 -26
|
@@ -89,6 +89,12 @@ export class Positions extends APIResource {
|
|
|
89
89
|
* Returns the current lifecycle state of the account's position instructions.
|
|
90
90
|
* Optionally filter by a specific contract.
|
|
91
91
|
*
|
|
92
|
+
* Note: instructions that fail pre-acceptance validation on `POST` — duplicates,
|
|
93
|
+
* `DO_NOT_EXERCISE` / `CONTRARY_EXERCISE` on a non-expiry day, insufficient
|
|
94
|
+
* position, or an unresolvable instrument — are rejected (with `status = REJECTED`
|
|
95
|
+
* and a `rejection_reason`) without being persisted, so they surface only in the
|
|
96
|
+
* `POST` response and never appear in this list.
|
|
97
|
+
*
|
|
92
98
|
* @example
|
|
93
99
|
* ```ts
|
|
94
100
|
* const response =
|
|
@@ -127,14 +133,14 @@ export class Positions extends APIResource {
|
|
|
127
133
|
*
|
|
128
134
|
* - **All rows accepted** → `200 OK`. Every row is in `data` with `status = SENT`.
|
|
129
135
|
* - **Partial success** → `207 Multi-Status`. `data` contains every row; rejected
|
|
130
|
-
* rows carry `status =
|
|
131
|
-
*
|
|
136
|
+
* rows carry `status = REJECTED` and `rejection_reason`. The top-level `error`
|
|
137
|
+
* summarizes the batch failure.
|
|
132
138
|
* - **All rows rejected** → `4xx`/`5xx`. The HTTP status reflects the aggregate
|
|
133
139
|
* cause: `409` when every row was a duplicate, `400` for validation failures
|
|
134
140
|
* like DNE/CEA on a non-expiry day, `503` if the clearing service is
|
|
135
|
-
* unavailable. `data` still contains every row carrying
|
|
136
|
-
* `
|
|
137
|
-
*
|
|
141
|
+
* unavailable. `data` still contains every row carrying `status = REJECTED` and
|
|
142
|
+
* `rejection_reason` so callers can attribute failures by `instruction_id`; the
|
|
143
|
+
* top-level `error` summarizes the batch.
|
|
138
144
|
*
|
|
139
145
|
* @example
|
|
140
146
|
* ```ts
|
|
@@ -209,55 +215,66 @@ export interface Position {
|
|
|
209
215
|
symbol: string;
|
|
210
216
|
|
|
211
217
|
/**
|
|
212
|
-
* The average price paid per share or contract for this position
|
|
218
|
+
* The average price paid per share or contract for this position When a
|
|
219
|
+
* null/undefined value is observed, it indicates that there is no available data.
|
|
213
220
|
*/
|
|
214
221
|
avg_price?: string | null;
|
|
215
222
|
|
|
216
223
|
/**
|
|
217
|
-
* The closing price used to value the position for the last trading day
|
|
224
|
+
* The closing price used to value the position for the last trading day When a
|
|
225
|
+
* null/undefined value is observed, it indicates that there is no available data.
|
|
218
226
|
*/
|
|
219
227
|
closing_price?: string | null;
|
|
220
228
|
|
|
221
229
|
/**
|
|
222
|
-
* The market date associated with `closing_price`
|
|
230
|
+
* The market date associated with `closing_price` When a null/undefined value is
|
|
231
|
+
* observed, it indicates that there is no available data.
|
|
223
232
|
*/
|
|
224
233
|
closing_price_date?: string | null;
|
|
225
234
|
|
|
226
235
|
/**
|
|
227
|
-
* The total cost basis for this position
|
|
236
|
+
* The total cost basis for this position When a null/undefined value is observed,
|
|
237
|
+
* it indicates that there is no available data.
|
|
228
238
|
*/
|
|
229
239
|
cost_basis?: string | null;
|
|
230
240
|
|
|
231
241
|
/**
|
|
232
242
|
* The unrealized profit or loss for this position relative to the previous close
|
|
243
|
+
* When a null/undefined value is observed, it indicates that there is no available
|
|
244
|
+
* data.
|
|
233
245
|
*/
|
|
234
246
|
daily_unrealized_pnl?: string | null;
|
|
235
247
|
|
|
236
248
|
/**
|
|
237
249
|
* The unrealized profit/loss for the position for the current day, expressed as a
|
|
238
|
-
* percentage of the baseline value (range: 0-100).
|
|
250
|
+
* percentage of the baseline value (range: 0-100). When a null/undefined value is
|
|
251
|
+
* observed, it indicates that there is no available data.
|
|
239
252
|
*/
|
|
240
253
|
daily_unrealized_pnl_pct?: string | null;
|
|
241
254
|
|
|
242
255
|
/**
|
|
243
|
-
* The current market price of the instrument
|
|
256
|
+
* The current market price of the instrument When a null/undefined value is
|
|
257
|
+
* observed, it indicates that there is no available data.
|
|
244
258
|
*/
|
|
245
259
|
instrument_price?: string | null;
|
|
246
260
|
|
|
247
261
|
/**
|
|
248
|
-
* Identifier of the underlying instrument, when available
|
|
262
|
+
* Identifier of the underlying instrument, when available When a null/undefined
|
|
263
|
+
* value is observed, it indicates it does not apply.
|
|
249
264
|
*/
|
|
250
265
|
underlying_instrument_id?: string | null;
|
|
251
266
|
|
|
252
267
|
/**
|
|
253
268
|
* The total unrealized profit or loss for this position based on current market
|
|
254
|
-
* value
|
|
269
|
+
* value When a null/undefined value is observed, it indicates that there is no
|
|
270
|
+
* available data.
|
|
255
271
|
*/
|
|
256
272
|
unrealized_pnl?: string | null;
|
|
257
273
|
|
|
258
274
|
/**
|
|
259
275
|
* The unrealized profit/loss for the position, expressed as a percentage of the
|
|
260
|
-
* position's cost basis (range: 0-100).
|
|
276
|
+
* position's cost basis (range: 0-100). When a null/undefined value is observed,
|
|
277
|
+
* it indicates that there is no available data.
|
|
261
278
|
*/
|
|
262
279
|
unrealized_pnl_pct?: string | null;
|
|
263
280
|
}
|
|
@@ -309,25 +326,28 @@ export interface PositionInstruction {
|
|
|
309
326
|
|
|
310
327
|
/**
|
|
311
328
|
* Number of contracts accepted by the clearing venue. Populated once the
|
|
312
|
-
* instruction reaches `ACCEPTED`.
|
|
329
|
+
* instruction reaches `ACCEPTED`. When a null/undefined value is observed, it
|
|
330
|
+
* indicates that there is no available data.
|
|
313
331
|
*/
|
|
314
332
|
accepted_quantity?: string | null;
|
|
315
333
|
|
|
316
334
|
/**
|
|
317
|
-
* When the instruction was first accepted by the service.
|
|
335
|
+
* When the instruction was first accepted by the service. When a null/undefined
|
|
336
|
+
* value is observed, it indicates that there is no available data.
|
|
318
337
|
*/
|
|
319
338
|
created_at?: string | null;
|
|
320
339
|
|
|
321
340
|
/**
|
|
322
341
|
* Human-readable explanation populated on any non-success terminal status —
|
|
323
|
-
* `REJECTED
|
|
324
|
-
*
|
|
325
|
-
*
|
|
342
|
+
* `REJECTED` or `CANCEL_FAILED`. On a `207 Multi-Status` batch submit the
|
|
343
|
+
* top-level `error` field summarizes the batch; per-row detail continues to live
|
|
344
|
+
* here. When a null/undefined value is observed, it indicates it does not apply.
|
|
326
345
|
*/
|
|
327
346
|
rejection_reason?: string | null;
|
|
328
347
|
|
|
329
348
|
/**
|
|
330
|
-
* When the instruction's lifecycle state last changed.
|
|
349
|
+
* When the instruction's lifecycle state last changed. When a null/undefined value
|
|
350
|
+
* is observed, it indicates that there is no available data.
|
|
331
351
|
*/
|
|
332
352
|
updated_at?: string | null;
|
|
333
353
|
}
|
|
@@ -339,12 +359,11 @@ export type PositionInstructionList = Array<PositionInstruction>;
|
|
|
339
359
|
*
|
|
340
360
|
* - `SENT`: accepted and submitted to the clearing venue.
|
|
341
361
|
* - `ACCEPTED`: terminal — accepted by the clearing venue.
|
|
342
|
-
* - `REJECTED`: terminal rejection
|
|
343
|
-
*
|
|
344
|
-
*
|
|
345
|
-
*
|
|
346
|
-
*
|
|
347
|
-
* insufficient position, or an invalid instrument.
|
|
362
|
+
* - `REJECTED`: terminal rejection; `rejection_reason` carries the detail. Covers
|
|
363
|
+
* both venue-reported rejections and rejections raised before the instruction
|
|
364
|
+
* reached the clearing venue (e.g. duplicate `instruction_id`, `DO_NOT_EXERCISE`
|
|
365
|
+
* / `CONTRARY_EXERCISE` submitted on a non-expiry day, insufficient position, or
|
|
366
|
+
* an instrument that does not resolve).
|
|
348
367
|
* - `CANCEL_REQUESTED`: cancel accepted; final cancel state pending.
|
|
349
368
|
* - `CANCELLED`: terminal — cancel completed.
|
|
350
369
|
* - `CANCEL_FAILED`: cancel could not be completed; operator attention required.
|
|
@@ -355,7 +374,6 @@ export type PositionInstructionStatus =
|
|
|
355
374
|
| 'SENT'
|
|
356
375
|
| 'ACCEPTED'
|
|
357
376
|
| 'REJECTED'
|
|
358
|
-
| 'ENGINE_REJECTED'
|
|
359
377
|
| 'CANCEL_REQUESTED'
|
|
360
378
|
| 'CANCELLED'
|
|
361
379
|
| 'CANCEL_FAILED'
|
package/src/resources/v1/v1.ts
CHANGED
|
@@ -144,8 +144,6 @@ import {
|
|
|
144
144
|
WatchlistGetWatchlistsResponse,
|
|
145
145
|
WatchlistItemEntry,
|
|
146
146
|
} from './watchlist';
|
|
147
|
-
import * as WebsocketAPI from './websocket';
|
|
148
|
-
import { Websocket } from './websocket';
|
|
149
147
|
import * as InstrumentDataAPI from './instrument-data/instrument-data';
|
|
150
148
|
import {
|
|
151
149
|
AllEventsEventType,
|
|
@@ -223,7 +221,6 @@ export class V1 extends APIResource {
|
|
|
223
221
|
orders: OrdersAPI.Orders = new OrdersAPI.Orders(this._client);
|
|
224
222
|
positions: PositionsAPI.Positions = new PositionsAPI.Positions(this._client);
|
|
225
223
|
watchlist: WatchlistAPI.Watchlist = new WatchlistAPI.Watchlist(this._client);
|
|
226
|
-
websocket: WebsocketAPI.Websocket = new WebsocketAPI.Websocket(this._client);
|
|
227
224
|
}
|
|
228
225
|
|
|
229
226
|
/**
|
|
@@ -240,7 +237,6 @@ V1.OmniAI = OmniAI;
|
|
|
240
237
|
V1.Orders = Orders;
|
|
241
238
|
V1.Positions = Positions;
|
|
242
239
|
V1.Watchlist = Watchlist;
|
|
243
|
-
V1.Websocket = Websocket;
|
|
244
240
|
|
|
245
241
|
export declare namespace V1 {
|
|
246
242
|
export { type SecurityType as SecurityType };
|
|
@@ -457,6 +453,4 @@ export declare namespace V1 {
|
|
|
457
453
|
type WatchlistDeleteWatchlistItemParams as WatchlistDeleteWatchlistItemParams,
|
|
458
454
|
type WatchlistGetWatchlistsParams as WatchlistGetWatchlistsParams,
|
|
459
455
|
};
|
|
460
|
-
|
|
461
|
-
export { Websocket as Websocket };
|
|
462
456
|
}
|
|
@@ -193,12 +193,14 @@ export interface WatchlistItemEntry {
|
|
|
193
193
|
added_at: string;
|
|
194
194
|
|
|
195
195
|
/**
|
|
196
|
-
* Price when the item was added
|
|
196
|
+
* Price when the item was added When a null/undefined value is observed, it
|
|
197
|
+
* indicates that there is no available data.
|
|
197
198
|
*/
|
|
198
199
|
added_price?: string | null;
|
|
199
200
|
|
|
200
201
|
/**
|
|
201
|
-
* Instrument details
|
|
202
|
+
* Instrument details When a null/undefined value is observed, it indicates that
|
|
203
|
+
* there is no available data.
|
|
202
204
|
*/
|
|
203
205
|
instrument?: InstrumentsAPI.Instrument | null;
|
|
204
206
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.77.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.77.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.77.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.77.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
-
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
-
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
-
/**
|
|
5
|
-
* Active Websocket.
|
|
6
|
-
*/
|
|
7
|
-
export declare class Websocket extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Upgrade the HTTP connection to a WebSocket and echo incoming messages.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* await client.v1.websocket.websocketHandler();
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
websocketHandler(options?: RequestOptions): APIPromise<void>;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=websocket.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"websocket.d.mts","sourceRoot":"","sources":["../../src/resources/v1/websocket.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;OAOG;IACH,gBAAgB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAM7D"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { APIResource } from "../../core/resource.js";
|
|
2
|
-
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
-
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
-
/**
|
|
5
|
-
* Active Websocket.
|
|
6
|
-
*/
|
|
7
|
-
export declare class Websocket extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Upgrade the HTTP connection to a WebSocket and echo incoming messages.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* await client.v1.websocket.websocketHandler();
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
websocketHandler(options?: RequestOptions): APIPromise<void>;
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=websocket.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"websocket.d.ts","sourceRoot":"","sources":["../../src/resources/v1/websocket.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE;;GAEG;AACH,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;;;;OAOG;IACH,gBAAgB,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAM7D"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Websocket = void 0;
|
|
5
|
-
const resource_1 = require("../../core/resource.js");
|
|
6
|
-
const headers_1 = require("../../internal/headers.js");
|
|
7
|
-
/**
|
|
8
|
-
* Active Websocket.
|
|
9
|
-
*/
|
|
10
|
-
class Websocket extends resource_1.APIResource {
|
|
11
|
-
/**
|
|
12
|
-
* Upgrade the HTTP connection to a WebSocket and echo incoming messages.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* await client.v1.websocket.websocketHandler();
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
websocketHandler(options) {
|
|
20
|
-
return this._client.get('/v1/ws', {
|
|
21
|
-
...options,
|
|
22
|
-
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
exports.Websocket = Websocket;
|
|
27
|
-
//# sourceMappingURL=websocket.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"websocket.js","sourceRoot":"","sources":["../../src/resources/v1/websocket.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,uDAAsD;AAGtD;;GAEG;AACH,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;;;;OAOG;IACH,gBAAgB,CAAC,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE;YAChC,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;CACF;AAfD,8BAeC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
-
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
|
-
/**
|
|
5
|
-
* Active Websocket.
|
|
6
|
-
*/
|
|
7
|
-
export class Websocket extends APIResource {
|
|
8
|
-
/**
|
|
9
|
-
* Upgrade the HTTP connection to a WebSocket and echo incoming messages.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* ```ts
|
|
13
|
-
* await client.v1.websocket.websocketHandler();
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
websocketHandler(options) {
|
|
17
|
-
return this._client.get('/v1/ws', {
|
|
18
|
-
...options,
|
|
19
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=websocket.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"websocket.mjs","sourceRoot":"","sources":["../../src/resources/v1/websocket.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAGtD;;GAEG;AACH,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;;;;OAOG;IACH,gBAAgB,CAAC,OAAwB;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE;YAChC,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
-
|
|
3
|
-
import { APIResource } from '../../core/resource';
|
|
4
|
-
import { APIPromise } from '../../core/api-promise';
|
|
5
|
-
import { buildHeaders } from '../../internal/headers';
|
|
6
|
-
import { RequestOptions } from '../../internal/request-options';
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Active Websocket.
|
|
10
|
-
*/
|
|
11
|
-
export class Websocket extends APIResource {
|
|
12
|
-
/**
|
|
13
|
-
* Upgrade the HTTP connection to a WebSocket and echo incoming messages.
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* ```ts
|
|
17
|
-
* await client.v1.websocket.websocketHandler();
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
websocketHandler(options?: RequestOptions): APIPromise<void> {
|
|
21
|
-
return this._client.get('/v1/ws', {
|
|
22
|
-
...options,
|
|
23
|
-
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
}
|