sentisense 0.55.0 → 0.57.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
@@ -253,6 +253,7 @@ Price fields carry `priceAsOf` (Unix milliseconds) for the age of the market dat
253
253
  client.documents.getByTicker("AAPL", { source: "news", days: 3 })
254
254
  client.documents.search("NVDA earnings", { days: 7, limit: 20 })
255
255
  client.documents.getStories({ limit: 10 })
256
+ client.documents.searchStories({ query: "fed decision", days: 30, limit: 20 })
256
257
  client.documents.getStoryDetail("cluster_abc123")
257
258
  ```
258
259
 
package/dist/cli.cjs CHANGED
@@ -1331,7 +1331,7 @@ var flowsCommand = {
1331
1331
  };
1332
1332
 
1333
1333
  // src/version.ts
1334
- var VERSION = "0.55.0";
1334
+ var VERSION = "0.57.0";
1335
1335
 
1336
1336
  // src/resources/analyst.ts
1337
1337
  var Analyst = class {
@@ -1557,6 +1557,17 @@ var Documents = class {
1557
1557
  async getStoryDetail(clusterId) {
1558
1558
  return this.client.get(`/api/v1/documents/stories/${encodeURIComponent(clusterId)}`);
1559
1559
  }
1560
+ /**
1561
+ * Free-text search across the AI-curated stories, newest first.
1562
+ *
1563
+ * The query is parsed like {@link Documents.search}: explicit entity ids first, then entities
1564
+ * recognised in the text, then the remaining words as keywords that must all appear in the
1565
+ * story's own title or summary. The rows are the same {@link Story} shape {@link
1566
+ * Documents.getStories} returns, so an `id` can go straight to {@link Documents.getStoryDetail}.
1567
+ */
1568
+ async searchStories(options) {
1569
+ return this.client.get("/api/v1/documents/stories/search", options);
1570
+ }
1560
1571
  /** Get stories for a specific stock. */
1561
1572
  async getStoriesByTicker(ticker, options) {
1562
1573
  return this.client.get(
package/dist/index.cjs CHANGED
@@ -306,6 +306,17 @@ var Documents = class {
306
306
  async getStoryDetail(clusterId) {
307
307
  return this.client.get(`/api/v1/documents/stories/${encodeURIComponent(clusterId)}`);
308
308
  }
309
+ /**
310
+ * Free-text search across the AI-curated stories, newest first.
311
+ *
312
+ * The query is parsed like {@link Documents.search}: explicit entity ids first, then entities
313
+ * recognised in the text, then the remaining words as keywords that must all appear in the
314
+ * story's own title or summary. The rows are the same {@link Story} shape {@link
315
+ * Documents.getStories} returns, so an `id` can go straight to {@link Documents.getStoryDetail}.
316
+ */
317
+ async searchStories(options) {
318
+ return this.client.get("/api/v1/documents/stories/search", options);
319
+ }
309
320
  /** Get stories for a specific stock. */
310
321
  async getStoriesByTicker(ticker, options) {
311
322
  return this.client.get(
@@ -1335,7 +1346,7 @@ var Trackers = class {
1335
1346
  };
1336
1347
 
1337
1348
  // src/version.ts
1338
- var VERSION = "0.55.0";
1349
+ var VERSION = "0.57.0";
1339
1350
 
1340
1351
  // src/client.ts
1341
1352
  var DEFAULT_BASE_URL = "https://app.sentisense.ai";