@mastra/dynamodb 0.11.0-alpha.4 → 0.11.1-alpha.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.
@@ -1,6 +1,7 @@
1
1
  import type { DynamoDBDocumentClient } from '@aws-sdk/lib-dynamodb';
2
2
  import { Entity } from 'electrodb';
3
3
  import type { EvalRow } from '@mastra/core/storage';
4
+ import type { MastraMessageContentV2 } from '@mastra/core/agent';
4
5
  import type { MastraMessageV1 } from '@mastra/core/memory';
5
6
  import type { MastraMessageV2 } from '@mastra/core/memory';
6
7
  import { MastraStorage } from '@mastra/core/storage';
@@ -196,6 +197,15 @@ declare class DynamoDBStore extends MastraStorage {
196
197
  * Should be called when the store is no longer needed, e.g., at the end of tests or application shutdown.
197
198
  */
198
199
  close(): Promise<void>;
200
+ updateMessages(_args: {
201
+ messages: Partial<Omit<MastraMessageV2, 'createdAt'>> & {
202
+ id: string;
203
+ content?: {
204
+ metadata?: MastraMessageContentV2['metadata'];
205
+ content?: MastraMessageContentV2['content'];
206
+ };
207
+ }[];
208
+ }): Promise<MastraMessageV2[]>;
199
209
  }
200
210
  export { DynamoDBStore }
201
211
  export { DynamoDBStore as DynamoDBStore_alias_1 }
@@ -1,6 +1,7 @@
1
1
  import type { DynamoDBDocumentClient } from '@aws-sdk/lib-dynamodb';
2
2
  import { Entity } from 'electrodb';
3
3
  import type { EvalRow } from '@mastra/core/storage';
4
+ import type { MastraMessageContentV2 } from '@mastra/core/agent';
4
5
  import type { MastraMessageV1 } from '@mastra/core/memory';
5
6
  import type { MastraMessageV2 } from '@mastra/core/memory';
6
7
  import { MastraStorage } from '@mastra/core/storage';
@@ -196,6 +197,15 @@ declare class DynamoDBStore extends MastraStorage {
196
197
  * Should be called when the store is no longer needed, e.g., at the end of tests or application shutdown.
197
198
  */
198
199
  close(): Promise<void>;
200
+ updateMessages(_args: {
201
+ messages: Partial<Omit<MastraMessageV2, 'createdAt'>> & {
202
+ id: string;
203
+ content?: {
204
+ metadata?: MastraMessageContentV2['metadata'];
205
+ content?: MastraMessageContentV2['content'];
206
+ };
207
+ }[];
208
+ }): Promise<MastraMessageV2[]>;
199
209
  }
200
210
  export { DynamoDBStore }
201
211
  export { DynamoDBStore as DynamoDBStore_alias_1 }
package/dist/index.cjs CHANGED
@@ -1333,6 +1333,10 @@ var DynamoDBStore = class extends storage.MastraStorage {
1333
1333
  throw error;
1334
1334
  }
1335
1335
  }
1336
+ async updateMessages(_args) {
1337
+ this.logger.error("updateMessages is not yet implemented in DynamoDBStore");
1338
+ throw new Error("Method not implemented");
1339
+ }
1336
1340
  };
1337
1341
 
1338
1342
  exports.DynamoDBStore = DynamoDBStore;
package/dist/index.js CHANGED
@@ -1331,6 +1331,10 @@ var DynamoDBStore = class extends MastraStorage {
1331
1331
  throw error;
1332
1332
  }
1333
1333
  }
1334
+ async updateMessages(_args) {
1335
+ this.logger.error("updateMessages is not yet implemented in DynamoDBStore");
1336
+ throw new Error("Method not implemented");
1337
+ }
1334
1338
  };
1335
1339
 
1336
1340
  export { DynamoDBStore };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/dynamodb",
3
- "version": "0.11.0-alpha.4",
3
+ "version": "0.11.1-alpha.0",
4
4
  "description": "DynamoDB storage adapter for Mastra",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -40,9 +40,9 @@
40
40
  "tsup": "^8.5.0",
41
41
  "typescript": "^5.8.3",
42
42
  "vitest": "^3.2.3",
43
- "@internal/lint": "0.0.12",
44
- "@internal/storage-test-utils": "0.0.8",
45
- "@mastra/core": "0.10.6-alpha.5"
43
+ "@internal/lint": "0.0.13",
44
+ "@mastra/core": "0.10.7-alpha.0",
45
+ "@internal/storage-test-utils": "0.0.9"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting",
@@ -1,5 +1,6 @@
1
1
  import { DynamoDBClient, DescribeTableCommand } from '@aws-sdk/client-dynamodb';
2
2
  import { DynamoDBDocumentClient } from '@aws-sdk/lib-dynamodb';
3
+ import type { MastraMessageContentV2 } from '@mastra/core/agent';
3
4
  import { MessageList } from '@mastra/core/agent';
4
5
  import type { StorageThreadType, MastraMessageV2, MastraMessageV1 } from '@mastra/core/memory';
5
6
 
@@ -1135,4 +1136,15 @@ export class DynamoDBStore extends MastraStorage {
1135
1136
  throw error;
1136
1137
  }
1137
1138
  }
1139
+
1140
+ async updateMessages(_args: {
1141
+ messages: Partial<Omit<MastraMessageV2, 'createdAt'>> &
1142
+ {
1143
+ id: string;
1144
+ content?: { metadata?: MastraMessageContentV2['metadata']; content?: MastraMessageContentV2['content'] };
1145
+ }[];
1146
+ }): Promise<MastraMessageV2[]> {
1147
+ this.logger.error('updateMessages is not yet implemented in DynamoDBStore');
1148
+ throw new Error('Method not implemented');
1149
+ }
1138
1150
  }