@mastra/client-js 1.59.0-alpha.2 → 1.59.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.
@@ -3,7 +3,7 @@ name: mastra-client-js
3
3
  description: Documentation for @mastra/client-js. Use when working with @mastra/client-js APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/client-js"
6
- version: "1.59.0-alpha.2"
6
+ version: "1.59.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.59.0-alpha.2",
2
+ "version": "1.59.0",
3
3
  "package": "@mastra/client-js",
4
4
  "exports": {},
5
5
  "modules": {}
package/dist/index.cjs CHANGED
@@ -4004,6 +4004,14 @@ var Knowledge = class extends BaseResource {
4004
4004
  graph(params = {}) {
4005
4005
  return this.request(`${this.base}/graph${query(params)}`);
4006
4006
  }
4007
+ /** Exact link counts for up to 200 pages, over the whole store. Rejects with 501 where there is no link index. */
4008
+ linkCounts(pageIds) {
4009
+ return this.request(`${this.base}/link-counts${query({ pageId: pageIds })}`);
4010
+ }
4011
+ /** One page's links, bounded, with the pages at their other ends. Rejects with 501 where there is no link index. */
4012
+ pageLinks(pageId, params = {}) {
4013
+ return this.request(`${this.base}/pages/${encodeURIComponent(pageId)}/links${query(params)}`);
4014
+ }
4007
4015
  /** Pages and notes matching `searchQuery`, optionally only within the given scope page ids. */
4008
4016
  search(searchQuery, params = {}) {
4009
4017
  return this.request(`${this.base}/search${query({