telescope-ai 0.1.3 → 0.3.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/README.md CHANGED
@@ -22,15 +22,22 @@ npm install -S telescope-ai
22
22
  import { TelescopeClient } from "telescope-ai";
23
23
 
24
24
  const client = new TelescopeClient({
25
- apiKey: "your-api-key", // defaults to TELESCOPE_API_KEY in backend environments
26
- connectTimeout: 30000, // optional, max ms to wait for server response (default: 30s)
27
- debug: false, // optional, enables console logging
25
+ // For server environments you can use API keys (default to TELESCOPE_API_KEY env var)
26
+ apiKey: "your-api-key",
27
+
28
+ // In client apps and frontends use client tokens (can be generated via `client.createClientToken()`)
29
+ clientToken: "tsc-short-lived-token"
28
30
  });
29
31
 
30
32
  // Use namespaced product APIs
31
33
  const data = await client.insights.instrument.generate({
32
34
  instrument_reference_id1: "AAPL_US",
33
35
  });
36
+
37
+ const latestNews = await client.news.latest.generate({
38
+ instrument_reference_id1s: ["AAPL_US"],
39
+ instrument_group_ids: ["your-group-id"],
40
+ });
34
41
  ```
35
42
 
36
43
  ### Streaming Example
@@ -116,6 +123,8 @@ const client = new TelescopeClient({
116
123
 
117
124
  - `TelescopeClient.VERSION` - Static property containing the SDK version
118
125
  - `client.insights` - Namespaced access to Insights API
126
+ - `client.atlas` - Namespaced access to Atlas API
127
+ - `client.news` - Namespaced access to News API
119
128
 
120
129
  #### Methods
121
130
 
@@ -148,6 +157,33 @@ const data = await client.insights.portfolio.generateFromResponse(response);
148
157
 
149
158
  > **Note:** Ripple and Guardrails clients are coming in a future release once their backends support the V2 SSE format.
150
159
 
160
+ ### News API
161
+
162
+ Access via `client.news`.
163
+
164
+ ```typescript
165
+ // Non-streaming: latest stories for instruments
166
+ const latest = await client.news.latest.generate({
167
+ instrument_reference_id1s: ["AAPL_US", "NVDA_US"],
168
+ instrument_group_ids: ["group-uuid"],
169
+ limit: 20,
170
+ locale: "en-US",
171
+ });
172
+
173
+ // Streaming: trending topics
174
+ const session = client.news.trendingTopics.stream({
175
+ topics: ["Region: Global"],
176
+ limit: 10,
177
+ locale: "en-US",
178
+ });
179
+
180
+ // Non-streaming: trending topics
181
+ const topics = await client.news.trendingTopics.generate({
182
+ topics: ["Asset Class: Crypto"],
183
+ limit: 10,
184
+ });
185
+ ```
186
+
151
187
  ### StreamSession
152
188
 
153
189
  Returned by streaming methods. Provides real-time access to streaming data.
@@ -200,21 +200,24 @@ declare class StreamSession<T = Record<string, unknown>> {
200
200
  private notifyObservers;
201
201
  }
202
202
  //#endregion
203
- //#region src/insights/client.d.ts
204
- /** Instrument information returned in insights responses */
205
- interface InsightInstrument {
206
- id?: string;
203
+ //#region src/instruments/client.d.ts
204
+ interface Instrument {
205
+ id: string;
206
+ instrument_group_id: string;
207
207
  ticker: string;
208
208
  title: string;
209
- region?: string;
210
- type?: string;
209
+ reference_id1: string | null;
210
+ reference_id2: string | null;
211
+ color?: string;
212
+ image_url?: string;
213
+ market_cap: number | null;
211
214
  }
212
- /** A single insight group with title and content */
215
+ //#endregion
216
+ //#region src/insights/instrument/client.d.ts
213
217
  interface InsightGroup {
214
- title?: string;
215
- content?: string;
218
+ title: string;
219
+ content: string;
216
220
  }
217
- /** Citation reference in insights */
218
221
  interface InsightCitation {
219
222
  id?: string;
220
223
  title?: string;
@@ -222,136 +225,128 @@ interface InsightCitation {
222
225
  source?: string;
223
226
  published_at?: string;
224
227
  }
225
- /** Response from instrument insights endpoint */
226
228
  interface InstrumentInsightsResponse {
227
- instrument?: InsightInstrument;
228
- groups?: InsightGroup[];
229
+ instrument: Instrument;
230
+ groups: InsightGroup[];
229
231
  citations?: InsightCitation[];
232
+ updated_at: string;
230
233
  }
231
- /** Response from portfolio insights endpoint */
232
- interface PortfolioInsightsResponse {
233
- /** Portfolio overview text */
234
- overview?: string;
235
- /** Per-instrument insights */
236
- instruments?: InstrumentInsightsResponse[];
237
- }
238
- /** Request parameters for instrument insights */
239
234
  interface InstrumentInsightsRequest {
240
- /** Instrument ID (UUID) */
241
235
  instrument_id?: string;
242
- /** Reference ID 1 (e.g., ticker symbol) */
243
236
  instrument_reference_id1?: string;
244
- /** Reference ID 2 (e.g., ISIN) */
245
237
  instrument_reference_id2?: string;
246
- /** Instrument group IDs for lookup */
247
- instrument_group_ids?: string[];
248
- /** Locale for response (e.g., "en-US") */
238
+ instrument_group_ids: string[];
249
239
  locale?: string;
250
- /** Profile for insights configuration */
251
240
  profile?: string;
252
- /** Enable streaming (should be true for SSE) */
253
241
  stream?: boolean;
254
242
  }
255
- /** Request parameters for portfolio insights */
243
+ declare class InstrumentInsightsClient {
244
+ private readonly client;
245
+ constructor(client: TelescopeClient);
246
+ stream(request: Omit<InstrumentInsightsRequest, "stream">, options?: StreamOptions): StreamSession<InstrumentInsightsResponse>;
247
+ generate(request: Omit<InstrumentInsightsRequest, "stream">): Promise<InstrumentInsightsResponse>;
248
+ streamFromResponse(source: SSESource): StreamSession<InstrumentInsightsResponse>;
249
+ generateFromResponse(response: Response): Promise<InstrumentInsightsResponse>;
250
+ }
251
+ //#endregion
252
+ //#region src/insights/portfolio/client.d.ts
253
+ interface InsightsError {
254
+ status_code: number;
255
+ message: string;
256
+ code: string;
257
+ additional_data?: Record<string, unknown>;
258
+ }
259
+ interface PortfolioInsightsResponse {
260
+ heading?: string;
261
+ overview?: string;
262
+ instruments?: InstrumentInsightsResponse[];
263
+ errors?: InsightsError[];
264
+ updated_at: string;
265
+ }
256
266
  interface PortfolioInsightsRequest {
257
- /** Instrument IDs (UUIDs) */
258
267
  instrument_ids?: string[];
259
- /** Reference ID 1s (e.g., ticker symbols) */
260
268
  instrument_reference_id1s?: string[];
261
- /** Reference ID 2s (e.g., ISINs) */
262
269
  instrument_reference_id2s?: string[];
263
- /** Instrument group IDs for lookup */
264
- instrument_group_ids?: string[];
265
- /** Omit individual instrument output (only return overview) */
270
+ instrument_group_ids: string[];
271
+ instrument_weightings?: Record<string, number>;
266
272
  omit_instruments_output?: boolean;
267
- /** Locale for response (e.g., "en-US") */
268
273
  locale?: string;
269
- /** Profile for insights configuration */
270
274
  profile?: string;
271
- /** Enable streaming (should be true for SSE) */
272
275
  stream?: boolean;
273
276
  }
274
- /**
275
- * Sub-client for instrument insights operations.
276
- */
277
- declare class InstrumentInsightsClient {
278
- private readonly client;
279
- constructor(client: TelescopeClient);
280
- /**
281
- * Stream insights for a single instrument via SSE.
282
- *
283
- * @example
284
- * ```ts
285
- * const session = client.insights.instrument.stream({ instrument_id: "abc123" });
286
- * session.subscribe({ onPatch: (data) => console.log(data.groups) });
287
- * const result = await session.complete();
288
- * ```
289
- */
290
- stream(request: Omit<InstrumentInsightsRequest, "stream">, options?: StreamOptions): StreamSession<InstrumentInsightsResponse>;
291
- /**
292
- * Get insights for an instrument (non-streaming).
293
- *
294
- * @example
295
- * ```ts
296
- * const data = await client.insights.instrument.generate({ instrument_id: "abc123" });
297
- * ```
298
- */
299
- generate(request: Omit<InstrumentInsightsRequest, "stream">): Promise<InstrumentInsightsResponse>;
300
- /**
301
- * Create a StreamSession from a pre-existing SSE response.
302
- * Use this when you have a response from a proxy or custom fetch.
303
- */
304
- streamFromResponse(source: SSESource): StreamSession<InstrumentInsightsResponse>;
305
- /**
306
- * Parse a pre-existing JSON response (non-streaming).
307
- * Use this when you have a response from a proxy or custom fetch.
308
- */
309
- generateFromResponse(response: Response): Promise<InstrumentInsightsResponse>;
310
- }
311
- /**
312
- * Sub-client for portfolio insights operations.
313
- */
314
277
  declare class PortfolioInsightsClient {
315
278
  private readonly client;
316
279
  constructor(client: TelescopeClient);
317
- /**
318
- * Stream insights for a portfolio via SSE.
319
- */
320
280
  stream(request: Omit<PortfolioInsightsRequest, "stream">, options?: StreamOptions): StreamSession<PortfolioInsightsResponse>;
321
- /**
322
- * Get insights for a portfolio (non-streaming).
323
- */
324
281
  generate(request: Omit<PortfolioInsightsRequest, "stream">): Promise<PortfolioInsightsResponse>;
325
- /**
326
- * Create a StreamSession from a pre-existing SSE response.
327
- */
328
282
  streamFromResponse(source: SSESource): StreamSession<PortfolioInsightsResponse>;
329
- /**
330
- * Parse a pre-existing JSON response (non-streaming).
331
- */
332
283
  generateFromResponse(response: Response): Promise<PortfolioInsightsResponse>;
333
284
  }
334
- /**
335
- * InsightsClient provides access to the Insights v2 API.
336
- *
337
- * @example
338
- * ```ts
339
- * const client = new TelescopeClient({ apiKey: "..." });
340
- *
341
- * // Namespaced access
342
- * const session = client.insights.instrument.stream({ instrument_id: "abc123" });
343
- * const data = await client.insights.portfolio.generate({ instrument_ids: [...] });
344
- *
345
- * // Proxy scenarios
346
- * const response = await fetch("/my-proxy/insights/portfolio", { ... });
347
- * const proxySession = client.insights.portfolio.streamFromResponse(response);
348
- * ```
349
- */
285
+ //#endregion
286
+ //#region src/insights/watchlist/client.d.ts
287
+ type WatchlistInsightsRequest = PortfolioInsightsRequest;
288
+ type WatchlistInsightsResponse = PortfolioInsightsResponse;
289
+ declare class WatchlistInsightsClient {
290
+ private readonly client;
291
+ constructor(client: TelescopeClient);
292
+ stream(request: Omit<WatchlistInsightsRequest, "stream">, options?: StreamOptions): StreamSession<WatchlistInsightsResponse>;
293
+ generate(request: Omit<WatchlistInsightsRequest, "stream">): Promise<WatchlistInsightsResponse>;
294
+ streamFromResponse(source: SSESource): StreamSession<WatchlistInsightsResponse>;
295
+ generateFromResponse(response: Response): Promise<WatchlistInsightsResponse>;
296
+ }
297
+ //#endregion
298
+ //#region src/insights/market/client.d.ts
299
+ interface MarketInsightsRequest {
300
+ profile: string;
301
+ locale?: string;
302
+ stream?: boolean;
303
+ }
304
+ interface MarketInsightsResponse {
305
+ groups: InsightGroup[];
306
+ updated_at: string;
307
+ }
308
+ declare class MarketInsightsClient {
309
+ private readonly client;
310
+ constructor(client: TelescopeClient);
311
+ stream(request: Omit<MarketInsightsRequest, "stream">, options?: StreamOptions): StreamSession<MarketInsightsResponse>;
312
+ generate(request: Omit<MarketInsightsRequest, "stream">): Promise<MarketInsightsResponse>;
313
+ streamFromResponse(source: SSESource): StreamSession<MarketInsightsResponse>;
314
+ generateFromResponse(response: Response): Promise<MarketInsightsResponse>;
315
+ }
316
+ //#endregion
317
+ //#region src/insights/trending/client.d.ts
318
+ type TrendingInsightsFocus = "global" | "crypto" | "new-zealand" | "australia" | "south-africa" | "singapore" | "united-kingdom" | "europe" | "united-states";
319
+ interface TrendingStory {
320
+ headline: string;
321
+ prompt: string;
322
+ summary: string;
323
+ }
324
+ interface TrendingInsightsRequest {
325
+ focus?: TrendingInsightsFocus;
326
+ limit?: number;
327
+ locale?: string;
328
+ stream?: boolean;
329
+ }
330
+ interface TrendingInsightsResponse {
331
+ stories: TrendingStory[];
332
+ updated_at: string;
333
+ }
334
+ declare class TrendingInsightsClient {
335
+ private readonly client;
336
+ constructor(client: TelescopeClient);
337
+ stream(request: Omit<TrendingInsightsRequest, "stream">, options?: StreamOptions): StreamSession<TrendingInsightsResponse>;
338
+ generate(request: Omit<TrendingInsightsRequest, "stream">): Promise<TrendingInsightsResponse>;
339
+ streamFromResponse(source: SSESource): StreamSession<TrendingInsightsResponse>;
340
+ generateFromResponse(response: Response): Promise<TrendingInsightsResponse>;
341
+ }
342
+ //#endregion
343
+ //#region src/insights/client.d.ts
350
344
  declare class InsightsClient {
351
- /** Instrument insights operations */
352
345
  readonly instrument: InstrumentInsightsClient;
353
- /** Portfolio insights operations */
354
346
  readonly portfolio: PortfolioInsightsClient;
347
+ readonly watchlist: WatchlistInsightsClient;
348
+ readonly market: MarketInsightsClient;
349
+ readonly trending: TrendingInsightsClient;
355
350
  constructor(client: TelescopeClient);
356
351
  }
357
352
  //#endregion
@@ -439,6 +434,18 @@ interface AtlasAdviceResponse {
439
434
  assumption_log?: Record<string, unknown>[];
440
435
  advice?: Record<string, unknown>[];
441
436
  }
437
+ /** Summary of an advisor environment returned by the list endpoint */
438
+ interface AdvisorEnvironmentSummary {
439
+ id: string;
440
+ title: string;
441
+ description?: string;
442
+ currency?: string;
443
+ is_global: boolean;
444
+ instrument_groups?: {
445
+ id: string;
446
+ title: string;
447
+ }[];
448
+ }
442
449
  /**
443
450
  * AtlasClient provides access to the Atlas v2 API.
444
451
  *
@@ -482,11 +489,92 @@ declare class AtlasClient {
482
489
  * Archive or unarchive advice entries.
483
490
  */
484
491
  archiveAdvice(ids: string[], archived?: boolean): Promise<void>;
492
+ /**
493
+ * List available advisor environments.
494
+ */
495
+ getAdvisorEnvironments(options?: {
496
+ region?: string;
497
+ currency?: string;
498
+ }): Promise<AdvisorEnvironmentSummary[]>;
499
+ }
500
+ //#endregion
501
+ //#region src/news/client.d.ts
502
+ /** Shared story shape returned by News v2 endpoints. */
503
+ interface NewsStory {
504
+ id: string;
505
+ headline: string;
506
+ prompt: string;
507
+ summary: string;
508
+ first_clustered_at: string;
509
+ last_revised_at: string;
510
+ article_count: number;
511
+ is_breaking: boolean;
512
+ }
513
+ /** Request body for POST /v2/news/latest. */
514
+ interface NewsLatestRequest {
515
+ instrument_ids?: string[];
516
+ instrument_reference_id1s?: string[];
517
+ instrument_reference_id2s?: string[];
518
+ instrument_group_ids: string[];
519
+ limit?: number;
520
+ locale?: string;
521
+ stream?: boolean;
522
+ }
523
+ /** Response body for POST /v2/news/latest. */
524
+ interface NewsLatestResponse {
525
+ stories: NewsStory[];
526
+ }
527
+ /** Request body for POST /v2/news/trending/topics. */
528
+ interface NewsTrendingTopicsRequest {
529
+ topics: string[];
530
+ limit?: number;
531
+ locale?: string;
532
+ stream?: boolean;
533
+ }
534
+ /** Response body for POST /v2/news/trending/topics. */
535
+ interface NewsTrendingTopicsResponse {
536
+ stories: NewsStory[];
537
+ }
538
+ declare class NewsLatestClient {
539
+ private readonly client;
540
+ constructor(client: TelescopeClient);
541
+ /**
542
+ * Get latest stories for a set of instruments (non-streaming).
543
+ */
544
+ generate(request: Omit<NewsLatestRequest, "stream">): Promise<NewsLatestResponse>;
545
+ }
546
+ declare class NewsTrendingTopicsClient {
547
+ private readonly client;
548
+ constructor(client: TelescopeClient);
549
+ /**
550
+ * Stream ranked trending topics via SSE.
551
+ */
552
+ stream(request: Omit<NewsTrendingTopicsRequest, "stream">, options?: StreamOptions): StreamSession<NewsTrendingTopicsResponse>;
553
+ /**
554
+ * Get ranked trending topics (non-streaming).
555
+ */
556
+ generate(request: Omit<NewsTrendingTopicsRequest, "stream">): Promise<NewsTrendingTopicsResponse>;
557
+ /**
558
+ * Create a StreamSession from a pre-existing SSE response.
559
+ */
560
+ streamFromResponse(source: SSESource): StreamSession<NewsTrendingTopicsResponse>;
561
+ /**
562
+ * Parse a pre-existing JSON response (non-streaming).
563
+ */
564
+ generateFromResponse(response: Response): Promise<NewsTrendingTopicsResponse>;
565
+ }
566
+ /**
567
+ * NewsClient provides access to News v2 API.
568
+ */
569
+ declare class NewsClient {
570
+ readonly latest: NewsLatestClient;
571
+ readonly trendingTopics: NewsTrendingTopicsClient;
572
+ constructor(client: TelescopeClient);
485
573
  }
486
574
  //#endregion
487
575
  //#region src/core/client.d.ts
488
576
  /** SDK version - matches package.json */
489
- declare const VERSION = "0.1.0";
577
+ declare const VERSION = "0.3.0";
490
578
  interface TelescopeClientOptions {
491
579
  /**
492
580
  * Organization API key for authentication (starts with `tsk_`).
@@ -518,11 +606,28 @@ interface StreamOptions {
518
606
  signal?: AbortSignal;
519
607
  /** Override the default connection timeout for this stream. Only applies to the initial connection, not the total stream duration. */
520
608
  connectTimeout?: number;
609
+ /** Additional request headers. Merged with (and can override) the default headers the client sets. */
610
+ headers?: Record<string, string>;
611
+ }
612
+ interface CreateClientTokenOptions {
613
+ /** Custom identifier for the token. */
614
+ client_id?: string;
615
+ /** Seconds until the token expires. Default: 86400 (24 hours). */
616
+ expires_in?: number;
617
+ }
618
+ interface ClientToken {
619
+ id: string;
620
+ token: string;
621
+ client_id: string | null;
622
+ expires_at: string;
623
+ created_at: string;
521
624
  }
522
625
  /** InsightsClient type - imported lazily to avoid circular deps */
523
626
  type InsightsClientType = InsightsClient;
524
627
  /** AtlasClient type - imported lazily to avoid circular deps */
525
628
  type AtlasClientType = AtlasClient;
629
+ /** NewsClient type - imported lazily to avoid circular deps */
630
+ type NewsClientType = NewsClient;
526
631
  /**
527
632
  * TelescopeClient provides HTTP and SSE streaming access to the Telescope API.
528
633
  *
@@ -550,13 +655,14 @@ type AtlasClientType = AtlasClient;
550
655
  */
551
656
  declare class TelescopeClient {
552
657
  /** SDK version */
553
- static readonly VERSION = "0.1.0";
658
+ static readonly VERSION = "0.3.0";
554
659
  private readonly baseUrl;
555
660
  private readonly apiKey;
556
661
  private readonly connectTimeout;
557
662
  private readonly debugEnabled;
558
663
  private _insights?;
559
664
  private _atlas?;
665
+ private _news?;
560
666
  constructor(options?: TelescopeClientOptions);
561
667
  /**
562
668
  * Namespaced access to Insights API.
@@ -578,15 +684,45 @@ declare class TelescopeClient {
578
684
  * ```
579
685
  */
580
686
  get atlas(): AtlasClientType;
687
+ /**
688
+ * Namespaced access to News API.
689
+ *
690
+ * @example
691
+ * ```ts
692
+ * const latest = await client.news.latest.generate({ ... });
693
+ * const session = client.news.trendingTopics.stream({ topic: "global" });
694
+ * ```
695
+ */
696
+ get news(): NewsClientType;
581
697
  /**
582
698
  * Log debug messages when debug mode is enabled.
583
699
  */
584
700
  private debug;
585
701
  /**
586
- * Generate a client token for frontend clients.
587
- * Typically called by backends using an organization API key.
702
+ * Create a client token for frontend authentication.
703
+ * Requires an API key (`tsk_`), not a client token.
704
+ *
705
+ * @example
706
+ * ```ts
707
+ * const client = new TelescopeClient({ apiKey: "tsk_..." });
708
+ * const { token, expires_at } = await client.createClientToken({
709
+ * client_id: "user-123",
710
+ * expires_in: 3600,
711
+ * });
712
+ * ```
713
+ */
714
+ createClientToken(options?: CreateClientTokenOptions): Promise<ClientToken>;
715
+ /**
716
+ * Revoke a client token by ID. The token will immediately become invalid.
717
+ * Requires an API key (`tsk_`), not a client token.
718
+ *
719
+ * @example
720
+ * ```ts
721
+ * const client = new TelescopeClient({ apiKey: "tsk_..." });
722
+ * await client.revokeClientToken("token-uuid-here");
723
+ * ```
588
724
  */
589
- generateClientToken(): Promise<string>;
725
+ revokeClientToken(id: string): Promise<void>;
590
726
  /**
591
727
  * Make a generic HTTP request.
592
728
  */
@@ -647,5 +783,5 @@ declare class TelescopeClient {
647
783
  private executeStream;
648
784
  }
649
785
  //#endregion
650
- export { CompleteEventData as A, SSEEventName as B, StreamStatus as C, StreamingError as D, SSEError as E, PatchOperation as F, isArrayIndex as H, Path as I, PathCompleteEventData as L, HeartbeatEventData as M, JSONValue as N, TelescopeClientError as O, PatchEventData as P, PathSegment as R, StreamSession as S, NetworkError as T, parseEvent as U, SSESource as V, pathToKey as W, InstrumentInsightsResponse as _, VERSION as a, StreamObserver as b, AtlasClient as c, AtlasTrade as d, InsightCitation as f, InstrumentInsightsRequest as g, InsightsClient as h, TelescopeClientOptions as i, ErrorEventData as j, TokenError as k, AtlasHolding as l, InsightInstrument as m, StreamOptions as n, AtlasAdviceRequest as o, InsightGroup as p, TelescopeClient as r, AtlasAdviceResponse as s, RequestOptions as t, AtlasStatus as u, PortfolioInsightsRequest as v, ApiError as w, StreamPhase as x, PortfolioInsightsResponse as y, SSEEvent as z };
651
- //# sourceMappingURL=client-DlnWfnqA.d.mts.map
786
+ export { Path as $, PortfolioInsightsRequest as A, StreamStatus as B, TrendingInsightsResponse as C, WatchlistInsightsRequest as D, MarketInsightsResponse as E, InstrumentInsightsResponse as F, TelescopeClientError as G, NetworkError as H, Instrument as I, ErrorEventData as J, TokenError as K, StreamObserver as L, InsightCitation as M, InsightGroup as N, WatchlistInsightsResponse as O, InstrumentInsightsRequest as P, PatchOperation as Q, StreamPhase as R, TrendingInsightsRequest as S, MarketInsightsRequest as T, SSEError as U, ApiError as V, StreamingError as W, JSONValue as X, HeartbeatEventData as Y, PatchEventData as Z, AtlasHolding as _, TelescopeClient as a, isArrayIndex as at, InsightsClient as b, NewsClient as c, NewsStory as d, PathCompleteEventData as et, NewsTrendingTopicsRequest as f, AtlasClient as g, AtlasAdviceResponse as h, StreamOptions as i, SSESource as it, PortfolioInsightsResponse as j, InsightsError as k, NewsLatestRequest as l, AtlasAdviceRequest as m, CreateClientTokenOptions as n, SSEEvent as nt, TelescopeClientOptions as o, parseEvent as ot, NewsTrendingTopicsResponse as p, CompleteEventData as q, RequestOptions as r, SSEEventName as rt, VERSION as s, pathToKey as st, ClientToken as t, PathSegment as tt, NewsLatestResponse as u, AtlasStatus as v, TrendingStory as w, TrendingInsightsFocus as x, AtlasTrade as y, StreamSession as z };
787
+ //# sourceMappingURL=client-BRRp-2Rl.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-BRRp-2Rl.d.mts","names":[],"sources":["../src/core/types.ts","../src/core/errors.ts","../src/core/stream-session.ts","../src/instruments/client.ts","../src/insights/instrument/client.ts","../src/insights/portfolio/client.ts","../src/insights/watchlist/client.ts","../src/insights/market/client.ts","../src/insights/trending/client.ts","../src/insights/client.ts","../src/atlas/client.ts","../src/news/client.ts","../src/core/client.ts"],"mappings":";;AAWA;;;;;;;;;KAAY,SAAA,GACR,QAAA;EACE,IAAA,EAAM,cAAA,CAAe,UAAA;EAAa,OAAA,GAAU,OAAA;AAAA;;KAGtC,WAAA;;KAGA,IAAA,IAAQ,WAAA,KAAgB,WAAA;AAHpC;AAAA,KAMY,SAAA,sCAKR,SAAA;EAAA,CACG,GAAA,WAAc,SAAA;AAAA;;KAGT,cAAA;;UAOK,cAAA;EACf,SAAA,EAAW,cAAA;EACX,IAAA,EAAM,IAAA;EACN,KAAA,GAAQ,SAAA;AAAA;;UAIO,qBAAA;EACf,IAAA,EAAM,IAAA;AAAA;;UAIS,cAAA;EACf,IAAA;EACA,OAAA;EACA,WAAA;EACA,IAAA,GAAO,IAAA;EACP,eAAA,GAAkB,MAAA;AAAA;AAjBpB;AAAA,KAqBY,kBAAA,GAAqB,MAAA;;KAGrB,iBAAA,GAAoB,MAAA;;KAGpB,QAAA;EACN,KAAA;EAAgB,IAAA,EAAM,cAAA;AAAA;EACtB,KAAA;EAAwB,IAAA,EAAM,qBAAA;AAAA;EAC9B,KAAA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