@usewhisper/sdk 3.7.0 → 3.8.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/index.d.mts CHANGED
@@ -1600,6 +1600,15 @@ declare class WhisperContext {
1600
1600
  }): Promise<{
1601
1601
  ingested: number;
1602
1602
  }>;
1603
+ listMemories(params: {
1604
+ project?: string;
1605
+ user_id?: string;
1606
+ session_id?: string;
1607
+ agent_id?: string;
1608
+ limit?: number;
1609
+ }): Promise<{
1610
+ memories: any[];
1611
+ }>;
1603
1612
  addMemory(params: {
1604
1613
  project?: string;
1605
1614
  content: string;
package/index.d.ts CHANGED
@@ -1600,6 +1600,15 @@ declare class WhisperContext {
1600
1600
  }): Promise<{
1601
1601
  ingested: number;
1602
1602
  }>;
1603
+ listMemories(params: {
1604
+ project?: string;
1605
+ user_id?: string;
1606
+ session_id?: string;
1607
+ agent_id?: string;
1608
+ limit?: number;
1609
+ }): Promise<{
1610
+ memories: any[];
1611
+ }>;
1603
1612
  addMemory(params: {
1604
1613
  project?: string;
1605
1614
  content: string;
package/index.js CHANGED
@@ -3900,6 +3900,19 @@ var WhisperContext = class _WhisperContext {
3900
3900
  }
3901
3901
  ]);
3902
3902
  }
3903
+ async listMemories(params) {
3904
+ const projectRef = this.getRequiredProject(params.project);
3905
+ return this.withProjectRefFallback(projectRef, async (project) => {
3906
+ const query = new URLSearchParams({
3907
+ project,
3908
+ ...params.user_id ? { user_id: params.user_id } : {},
3909
+ ...params.session_id ? { session_id: params.session_id } : {},
3910
+ ...params.agent_id ? { agent_id: params.agent_id } : {},
3911
+ limit: String(Math.min(Math.max(params.limit ?? 200, 1), 200))
3912
+ });
3913
+ return this.request(`/v1/memories?${query.toString()}`, { method: "GET" });
3914
+ });
3915
+ }
3903
3916
  async addMemory(params) {
3904
3917
  const projectRef = this.getRequiredProject(params.project);
3905
3918
  return this.withProjectRefFallback(projectRef, async (project) => {
package/index.mjs CHANGED
@@ -3851,6 +3851,19 @@ var WhisperContext = class _WhisperContext {
3851
3851
  }
3852
3852
  ]);
3853
3853
  }
3854
+ async listMemories(params) {
3855
+ const projectRef = this.getRequiredProject(params.project);
3856
+ return this.withProjectRefFallback(projectRef, async (project) => {
3857
+ const query = new URLSearchParams({
3858
+ project,
3859
+ ...params.user_id ? { user_id: params.user_id } : {},
3860
+ ...params.session_id ? { session_id: params.session_id } : {},
3861
+ ...params.agent_id ? { agent_id: params.agent_id } : {},
3862
+ limit: String(Math.min(Math.max(params.limit ?? 200, 1), 200))
3863
+ });
3864
+ return this.request(`/v1/memories?${query.toString()}`, { method: "GET" });
3865
+ });
3866
+ }
3854
3867
  async addMemory(params) {
3855
3868
  const projectRef = this.getRequiredProject(params.project);
3856
3869
  return this.withProjectRefFallback(projectRef, async (project) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usewhisper/sdk",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "whisperContractVersion": "2026.03.10",
5
5
  "scripts": {
6
6
  "build": "tsup ../src/sdk/index.ts --format esm,cjs --dts --out-dir .",