reportify-sdk 0.3.19 → 0.3.21

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/dist/index.d.ts CHANGED
@@ -1284,10 +1284,12 @@ declare class AgentModule {
1284
1284
  * @param options - Optional parameters
1285
1285
  * @param options.title - Conversation title
1286
1286
  * @param options.conversationType - Conversation type: "agent_chat", "task_chat", "debug_chat", "bot_chat"
1287
+ * @param options.meta - Metadata dict (optional)
1287
1288
  */
1288
1289
  createConversation(agentId: number, options?: {
1289
1290
  title?: string;
1290
1291
  conversationType?: string;
1292
+ meta?: Record<string, unknown>;
1291
1293
  }): Promise<AgentConversation>;
1292
1294
  /**
1293
1295
  * Chat with agent in a conversation
@@ -1522,6 +1524,122 @@ declare class UserModule {
1522
1524
  symbol: string;
1523
1525
  success: boolean;
1524
1526
  }>;
1527
+ }
1528
+
1529
+ /**
1530
+ * Search Module
1531
+ *
1532
+ * Provides document search functionality across various categories.
1533
+ */
1534
+
1535
+ /**
1536
+ * Search module for document search functionality.
1537
+ *
1538
+ * @example
1539
+ * ```typescript
1540
+ * const results = await client.search.all('Tesla earnings');
1541
+ * const news = await client.search.news('Apple iPhone');
1542
+ * ```
1543
+ */
1544
+ declare class SearchModule {
1545
+ private client;
1546
+ constructor(client: Reportify);
1547
+ /**
1548
+ * Search documents across all categories
1549
+ *
1550
+ * @param query - Search query string
1551
+ * @param options - Search options
1552
+ * @returns List of matching documents
1553
+ */
1554
+ all(query: string, options?: SearchOptions): Promise<Document[]>;
1555
+ /**
1556
+ * Search news articles
1557
+ */
1558
+ news(query: string, options?: SearchOptions): Promise<Document[]>;
1559
+ /**
1560
+ * Search research reports
1561
+ */
1562
+ reports(query: string, options?: SearchOptions): Promise<Document[]>;
1563
+ /**
1564
+ * Search company filings
1565
+ *
1566
+ * @param query - Search query string
1567
+ * @param symbols - Stock symbols in market:ticker format (required, e.g., US:AAPL, HK:00700, SH:600519, SZ:000001)
1568
+ * @param options - Search options
1569
+ */
1570
+ filings(query: string, symbols: string[], options?: Omit<SearchOptions, 'symbols' | 'categories' | 'industries' | 'channelIds'>): Promise<Document[]>;
1571
+ /**
1572
+ * Search for earnings-related conference call transcripts and presentation slides.
1573
+ * Query is optional - if not provided, returns documents in reverse chronological order;
1574
+ * if provided, results are sorted by relevance by default.
1575
+ *
1576
+ * @param symbols - Stock symbols in market:ticker format (required, e.g., US:AAPL, HK:00700, SH:600519, SZ:000001)
1577
+ * @param options - Search options including query, fiscal year/quarter filters, and sort order
1578
+ */
1579
+ conferenceCalls(symbols: string[], options?: EarningsSearchOptions & {
1580
+ query?: string;
1581
+ }): Promise<Document[]>;
1582
+ /**
1583
+ * Search for earnings-related documents submitted to exchanges, including quarterly reports,
1584
+ * semi-annual reports, and annual reports. Query is optional - if not provided, returns
1585
+ * documents in reverse chronological order; if provided, results are sorted by relevance by default.
1586
+ *
1587
+ * @param symbols - Stock symbols in market:ticker format (required, e.g., US:AAPL, HK:00700, SH:600519, SZ:000001)
1588
+ * @param options - Search options including query, fiscal year/quarter filters, and sort order
1589
+ */
1590
+ earningsPack(symbols: string[], options?: EarningsSearchOptions & {
1591
+ query?: string;
1592
+ }): Promise<Document[]>;
1593
+ /**
1594
+ * Search conference calls and IR (Investor Relations) meetings
1595
+ */
1596
+ minutes(query: string, options?: SearchOptions): Promise<Document[]>;
1597
+ /**
1598
+ * Search social media content
1599
+ */
1600
+ socials(query: string, options?: SearchOptions): Promise<Document[]>;
1601
+ /**
1602
+ * Search webpage content
1603
+ */
1604
+ webpages(query: string, options?: Omit<SearchOptions, 'symbols' | 'categories' | 'industries' | 'channelIds'>): Promise<Document[]>;
1605
+ /**
1606
+ * Crawl web content from given URLs.
1607
+ *
1608
+ * @param urls Array of URLs to get contents for
1609
+ * @param options Options for text, highlights, summary, subpages, etc.
1610
+ * @returns CrawlResponse Promise with extracted results and statuses
1611
+ */
1612
+ crawl(urls: string[], options?: {
1613
+ text?: boolean | {
1614
+ max_characters?: number;
1615
+ include_html_tags?: boolean;
1616
+ verbosity?: 'compact' | 'full';
1617
+ };
1618
+ highlights?: {
1619
+ query?: string;
1620
+ max_characters?: number;
1621
+ num_sentences?: number;
1622
+ highlights_per_url?: number;
1623
+ };
1624
+ summary?: {
1625
+ query?: string;
1626
+ };
1627
+ subpages?: number;
1628
+ subpage_target?: string[];
1629
+ max_age_hours?: number;
1630
+ livecrawl_timeout?: number;
1631
+ }): Promise<any>;
1632
+ }
1633
+
1634
+ /**
1635
+ * Following Module
1636
+ *
1637
+ * Provides access to follow group management functionality.
1638
+ */
1639
+
1640
+ declare class FollowingModule {
1641
+ private client;
1642
+ constructor(client: Reportify);
1525
1643
  /**
1526
1644
  * Create a new follow group
1527
1645
  *
@@ -1532,7 +1650,7 @@ declare class UserModule {
1532
1650
  *
1533
1651
  * @example
1534
1652
  * ```typescript
1535
- * const result = await client.user.createFollowGroup('My Stocks', [
1653
+ * const result = await client.following.createFollowGroup('My Stocks', [
1536
1654
  * { follow_type: 1, follow_value: 'US:AAPL' },
1537
1655
  * { follow_type: 1, follow_value: 'HK:00700' }
1538
1656
  * ]);
@@ -1554,7 +1672,7 @@ declare class UserModule {
1554
1672
  *
1555
1673
  * @example
1556
1674
  * ```typescript
1557
- * const groups = await client.user.getFollowGroups();
1675
+ * const groups = await client.following.getFollowGroups();
1558
1676
  * groups.forEach(group => {
1559
1677
  * console.log(`${group.name}: ${group.count} items`);
1560
1678
  * });
@@ -1573,7 +1691,7 @@ declare class UserModule {
1573
1691
  *
1574
1692
  * @example
1575
1693
  * ```typescript
1576
- * const group = await client.user.getFollowGroup('group_123');
1694
+ * const group = await client.following.getFollowGroup('group_123');
1577
1695
  * console.log(`${group.name}: ${group.count} items`);
1578
1696
  * ```
1579
1697
  */
@@ -1595,7 +1713,7 @@ declare class UserModule {
1595
1713
  *
1596
1714
  * @example
1597
1715
  * ```typescript
1598
- * const result = await client.user.updateFollowGroup('group_123', 'New Name');
1716
+ * const result = await client.following.updateFollowGroup('group_123', 'New Name');
1599
1717
  * console.log(`Updated: ${result.name}`);
1600
1718
  * ```
1601
1719
  */
@@ -1612,7 +1730,7 @@ declare class UserModule {
1612
1730
  *
1613
1731
  * @example
1614
1732
  * ```typescript
1615
- * await client.user.deleteFollowGroup('group_123');
1733
+ * await client.following.deleteFollowGroup('group_123');
1616
1734
  * ```
1617
1735
  */
1618
1736
  deleteFollowGroup(groupId: string): Promise<void>;
@@ -1626,7 +1744,7 @@ declare class UserModule {
1626
1744
  *
1627
1745
  * @example
1628
1746
  * ```typescript
1629
- * await client.user.addFollowsToGroup('group_123', [
1747
+ * await client.following.addFollowsToGroup('group_123', [
1630
1748
  * { follow_type: 1, follow_value: 'US:TSLA' }
1631
1749
  * ]);
1632
1750
  * ```
@@ -1644,7 +1762,7 @@ declare class UserModule {
1644
1762
  *
1645
1763
  * @example
1646
1764
  * ```typescript
1647
- * await client.user.removeFollowsFromGroup('group_123', ['AAPL', 'MSFT']);
1765
+ * await client.following.removeFollowsFromGroup('group_123', ['AAPL', 'MSFT']);
1648
1766
  * ```
1649
1767
  */
1650
1768
  removeFollowsFromGroup(groupId: string, followValues: string[]): Promise<void>;
@@ -1658,7 +1776,7 @@ declare class UserModule {
1658
1776
  *
1659
1777
  * @example
1660
1778
  * ```typescript
1661
- * await client.user.setGroupFollows('group_123', [
1779
+ * await client.following.setGroupFollows('group_123', [
1662
1780
  * { follow_type: 1, follow_value: 'US:AAPL' },
1663
1781
  * { follow_type: 1, follow_value: 'HK:00700' }
1664
1782
  * ]);
@@ -1669,23 +1787,23 @@ declare class UserModule {
1669
1787
  follow_value: string;
1670
1788
  }>): Promise<void>;
1671
1789
  /**
1672
- * Get reports for a follow group
1790
+ * Get docs for a follow group
1673
1791
  *
1674
1792
  * @param groupId - Group ID
1675
1793
  * @param pageNum - Page number (default: 1)
1676
1794
  * @param pageSize - Page size (default: 10, max: 100)
1677
- * @returns Report data including items list, total_count, page_num, and page_size
1795
+ * @returns docs data including items list, total_count, page_num, and page_size
1678
1796
  *
1679
1797
  * @example
1680
1798
  * ```typescript
1681
- * const result = await client.user.getGroupReports('group_123', 1, 20);
1799
+ * const result = await client.following.getFollowGroupDocs('group_123', 1, 20);
1682
1800
  * console.log(`Total: ${result.total_count}`);
1683
- * result.items.forEach(report => {
1684
- * console.log(report.title || 'Untitled');
1801
+ * result.items.forEach(doc => {
1802
+ * console.log(doc.title || 'Untitled');
1685
1803
  * });
1686
1804
  * ```
1687
1805
  */
1688
- getGroupReports(groupId: string, pageNum?: number, pageSize?: number): Promise<{
1806
+ getFollowGroupDocs(groupId: string, pageNum?: number, pageSize?: number): Promise<{
1689
1807
  items: any[];
1690
1808
  total_count: number;
1691
1809
  page_num: number;
@@ -1693,111 +1811,6 @@ declare class UserModule {
1693
1811
  }>;
1694
1812
  }
1695
1813
 
1696
- /**
1697
- * Search Module
1698
- *
1699
- * Provides document search functionality across various categories.
1700
- */
1701
-
1702
- /**
1703
- * Search module for document search functionality.
1704
- *
1705
- * @example
1706
- * ```typescript
1707
- * const results = await client.search.all('Tesla earnings');
1708
- * const news = await client.search.news('Apple iPhone');
1709
- * ```
1710
- */
1711
- declare class SearchModule {
1712
- private client;
1713
- constructor(client: Reportify);
1714
- /**
1715
- * Search documents across all categories
1716
- *
1717
- * @param query - Search query string
1718
- * @param options - Search options
1719
- * @returns List of matching documents
1720
- */
1721
- all(query: string, options?: SearchOptions): Promise<Document[]>;
1722
- /**
1723
- * Search news articles
1724
- */
1725
- news(query: string, options?: SearchOptions): Promise<Document[]>;
1726
- /**
1727
- * Search research reports
1728
- */
1729
- reports(query: string, options?: SearchOptions): Promise<Document[]>;
1730
- /**
1731
- * Search company filings
1732
- *
1733
- * @param query - Search query string
1734
- * @param symbols - Stock symbols in market:ticker format (required, e.g., US:AAPL, HK:00700, SH:600519, SZ:000001)
1735
- * @param options - Search options
1736
- */
1737
- filings(query: string, symbols: string[], options?: Omit<SearchOptions, 'symbols' | 'categories' | 'industries' | 'channelIds'>): Promise<Document[]>;
1738
- /**
1739
- * Search for earnings-related conference call transcripts and presentation slides.
1740
- * Query is optional - if not provided, returns documents in reverse chronological order;
1741
- * if provided, results are sorted by relevance by default.
1742
- *
1743
- * @param symbols - Stock symbols in market:ticker format (required, e.g., US:AAPL, HK:00700, SH:600519, SZ:000001)
1744
- * @param options - Search options including query, fiscal year/quarter filters, and sort order
1745
- */
1746
- conferenceCalls(symbols: string[], options?: EarningsSearchOptions & {
1747
- query?: string;
1748
- }): Promise<Document[]>;
1749
- /**
1750
- * Search for earnings-related documents submitted to exchanges, including quarterly reports,
1751
- * semi-annual reports, and annual reports. Query is optional - if not provided, returns
1752
- * documents in reverse chronological order; if provided, results are sorted by relevance by default.
1753
- *
1754
- * @param symbols - Stock symbols in market:ticker format (required, e.g., US:AAPL, HK:00700, SH:600519, SZ:000001)
1755
- * @param options - Search options including query, fiscal year/quarter filters, and sort order
1756
- */
1757
- earningsPack(symbols: string[], options?: EarningsSearchOptions & {
1758
- query?: string;
1759
- }): Promise<Document[]>;
1760
- /**
1761
- * Search conference calls and IR (Investor Relations) meetings
1762
- */
1763
- minutes(query: string, options?: SearchOptions): Promise<Document[]>;
1764
- /**
1765
- * Search social media content
1766
- */
1767
- socials(query: string, options?: SearchOptions): Promise<Document[]>;
1768
- /**
1769
- * Search webpage content
1770
- */
1771
- webpages(query: string, options?: Omit<SearchOptions, 'symbols' | 'categories' | 'industries' | 'channelIds'>): Promise<Document[]>;
1772
- /**
1773
- * Crawl web content from given URLs.
1774
- *
1775
- * @param urls Array of URLs to get contents for
1776
- * @param options Options for text, highlights, summary, subpages, etc.
1777
- * @returns CrawlResponse Promise with extracted results and statuses
1778
- */
1779
- crawl(urls: string[], options?: {
1780
- text?: boolean | {
1781
- max_characters?: number;
1782
- include_html_tags?: boolean;
1783
- verbosity?: 'compact' | 'full';
1784
- };
1785
- highlights?: {
1786
- query?: string;
1787
- max_characters?: number;
1788
- num_sentences?: number;
1789
- highlights_per_url?: number;
1790
- };
1791
- summary?: {
1792
- query?: string;
1793
- };
1794
- subpages?: number;
1795
- subpage_target?: string[];
1796
- max_age_hours?: number;
1797
- livecrawl_timeout?: number;
1798
- }): Promise<any>;
1799
- }
1800
-
1801
1814
  /**
1802
1815
  * Reportify Client
1803
1816
  *
@@ -1833,6 +1846,7 @@ declare class Reportify {
1833
1846
  readonly kb: KBModule;
1834
1847
  readonly timeline: TimelineModule;
1835
1848
  readonly user: UserModule;
1849
+ readonly following: FollowingModule;
1836
1850
  constructor(config: ReportifyConfig);
1837
1851
  /**
1838
1852
  * Make an HTTP request to the API
@@ -1863,4 +1877,4 @@ declare class Reportify {
1863
1877
  getBytes(path: string): Promise<ArrayBuffer>;
1864
1878
  }
1865
1879
 
1866
- export { APIError, type AgentConversation, type AgentMessage, AgentModule, AuthenticationError, type BacktestParams, type BacktestResult, type BatchKline1mParams, type BatchMinuteParams, type BatchOHLCVParams, type Calendar, type Channel, ChannelsModule, type ChatCompletionOptions, type ChatCompletionResponse, type ChatMode, ChatModule, type Chunk, type ChunkSearchOptions, type CompanyInfo, type CompanyOverview, type Concept, type ConceptDoc, type ConceptEvent, type ConceptFeed, type ConceptStock, ConceptsModule, type DocsListOptions, DocsModule, type Document, type DocumentInput, type EarningsEvent, type EarningsSearchOptions, type FactorComputeParams, type FactorMeta, type FinancialStatement, type FollowedCompany, type IPOEvent, type IPOStatus, type IndexConstituent, type IndexFund, type IndicatorComputeParams, type IndicatorData, type IndicatorMeta, type IndustryConstituent, KBModule, type KBSearchOptions, type Kline1mParams, type Market, type MinuteParams, NotFoundError, type OHLCVData, type OHLCVParams, type PaginatedResponse, type Period, type PriceData, QuantModule, type Quote, RateLimitError, Reportify, type ReportifyConfig, ReportifyError, type ScreenParams, type ScreenedStock, SearchModule, type SearchOptions, type Shareholder, type ShareholderType, type StockInfo, type StockMarket, StockModule, TimelineModule, type TimelineOptions, type UploadDocRequest, UserModule };
1880
+ export { APIError, type AgentConversation, type AgentMessage, AgentModule, AuthenticationError, type BacktestParams, type BacktestResult, type BatchKline1mParams, type BatchMinuteParams, type BatchOHLCVParams, type Calendar, type Channel, ChannelsModule, type ChatCompletionOptions, type ChatCompletionResponse, type ChatMode, ChatModule, type Chunk, type ChunkSearchOptions, type CompanyInfo, type CompanyOverview, type Concept, type ConceptDoc, type ConceptEvent, type ConceptFeed, type ConceptStock, ConceptsModule, type DocsListOptions, DocsModule, type Document, type DocumentInput, type EarningsEvent, type EarningsSearchOptions, type FactorComputeParams, type FactorMeta, type FinancialStatement, type FollowedCompany, FollowingModule, type IPOEvent, type IPOStatus, type IndexConstituent, type IndexFund, type IndicatorComputeParams, type IndicatorData, type IndicatorMeta, type IndustryConstituent, KBModule, type KBSearchOptions, type Kline1mParams, type Market, type MinuteParams, NotFoundError, type OHLCVData, type OHLCVParams, type PaginatedResponse, type Period, type PriceData, QuantModule, type Quote, RateLimitError, Reportify, type ReportifyConfig, ReportifyError, type ScreenParams, type ScreenedStock, SearchModule, type SearchOptions, type Shareholder, type ShareholderType, type StockInfo, type StockMarket, StockModule, TimelineModule, type TimelineOptions, type UploadDocRequest, UserModule };