@mastra/dynamodb 0.0.0-tsconfig-compile-20250703214351 → 0.0.0-workflow-deno-20250616115451

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,7 +1,6 @@
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';
5
4
  import type { MastraMessageV1 } from '@mastra/core/memory';
6
5
  import type { MastraMessageV2 } from '@mastra/core/memory';
7
6
  import { MastraStorage } from '@mastra/core/storage';
@@ -12,7 +11,6 @@ import type { StorageGetMessagesArg } from '@mastra/core/storage';
12
11
  import type { StorageGetTracesArg } from '@mastra/core/storage';
13
12
  import type { StorageThreadType } from '@mastra/core/memory';
14
13
  import type { TABLE_NAMES } from '@mastra/core/storage';
15
- import type { TABLE_RESOURCES } from '@mastra/core/storage';
16
14
  import type { Trace } from '@mastra/core/telemetry';
17
15
  import type { WorkflowRun } from '@mastra/core/storage';
18
16
  import type { WorkflowRuns } from '@mastra/core/storage';
@@ -90,27 +88,27 @@ declare class DynamoDBStore extends MastraStorage {
90
88
  * Clear all items from a logical "table" (entity type)
91
89
  */
92
90
  clearTable({ tableName }: {
93
- tableName: SUPPORTED_TABLE_NAMES;
91
+ tableName: TABLE_NAMES;
94
92
  }): Promise<void>;
95
93
  /**
96
94
  * Insert a record into the specified "table" (entity)
97
95
  */
98
- insert({ tableName, record, }: {
99
- tableName: SUPPORTED_TABLE_NAMES;
96
+ insert({ tableName, record }: {
97
+ tableName: TABLE_NAMES;
100
98
  record: Record<string, any>;
101
99
  }): Promise<void>;
102
100
  /**
103
101
  * Insert multiple records as a batch
104
102
  */
105
- batchInsert({ tableName, records, }: {
106
- tableName: SUPPORTED_TABLE_NAMES;
103
+ batchInsert({ tableName, records }: {
104
+ tableName: TABLE_NAMES;
107
105
  records: Record<string, any>[];
108
106
  }): Promise<void>;
109
107
  /**
110
108
  * Load a record by its keys
111
109
  */
112
- load<R>({ tableName, keys, }: {
113
- tableName: SUPPORTED_TABLE_NAMES;
110
+ load<R>({ tableName, keys }: {
111
+ tableName: TABLE_NAMES;
114
112
  keys: Record<string, string>;
115
113
  }): Promise<R | null>;
116
114
  getThreadById({ threadId }: {
@@ -198,15 +196,6 @@ declare class DynamoDBStore extends MastraStorage {
198
196
  * Should be called when the store is no longer needed, e.g., at the end of tests or application shutdown.
199
197
  */
200
198
  close(): Promise<void>;
201
- updateMessages(_args: {
202
- messages: Partial<Omit<MastraMessageV2, 'createdAt'>> & {
203
- id: string;
204
- content?: {
205
- metadata?: MastraMessageContentV2['metadata'];
206
- content?: MastraMessageContentV2['content'];
207
- };
208
- }[];
209
- }): Promise<MastraMessageV2[]>;
210
199
  }
211
200
  export { DynamoDBStore }
212
201
  export { DynamoDBStore as DynamoDBStore_alias_1 }
@@ -888,8 +877,6 @@ export declare const messageEntity: Entity<string, string, string, {
888
877
  };
889
878
  }>;
890
879
 
891
- declare type SUPPORTED_TABLE_NAMES = Exclude<TABLE_NAMES, typeof TABLE_RESOURCES>;
892
-
893
880
  export declare const threadEntity: Entity<string, string, string, {
894
881
  model: {
895
882
  entity: string;
@@ -1,7 +1,6 @@
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';
5
4
  import type { MastraMessageV1 } from '@mastra/core/memory';
6
5
  import type { MastraMessageV2 } from '@mastra/core/memory';
7
6
  import { MastraStorage } from '@mastra/core/storage';
@@ -12,7 +11,6 @@ import type { StorageGetMessagesArg } from '@mastra/core/storage';
12
11
  import type { StorageGetTracesArg } from '@mastra/core/storage';
13
12
  import type { StorageThreadType } from '@mastra/core/memory';
14
13
  import type { TABLE_NAMES } from '@mastra/core/storage';
15
- import type { TABLE_RESOURCES } from '@mastra/core/storage';
16
14
  import type { Trace } from '@mastra/core/telemetry';
17
15
  import type { WorkflowRun } from '@mastra/core/storage';
18
16
  import type { WorkflowRuns } from '@mastra/core/storage';
@@ -90,27 +88,27 @@ declare class DynamoDBStore extends MastraStorage {
90
88
  * Clear all items from a logical "table" (entity type)
91
89
  */
92
90
  clearTable({ tableName }: {
93
- tableName: SUPPORTED_TABLE_NAMES;
91
+ tableName: TABLE_NAMES;
94
92
  }): Promise<void>;
95
93
  /**
96
94
  * Insert a record into the specified "table" (entity)
97
95
  */
98
- insert({ tableName, record, }: {
99
- tableName: SUPPORTED_TABLE_NAMES;
96
+ insert({ tableName, record }: {
97
+ tableName: TABLE_NAMES;
100
98
  record: Record<string, any>;
101
99
  }): Promise<void>;
102
100
  /**
103
101
  * Insert multiple records as a batch
104
102
  */
105
- batchInsert({ tableName, records, }: {
106
- tableName: SUPPORTED_TABLE_NAMES;
103
+ batchInsert({ tableName, records }: {
104
+ tableName: TABLE_NAMES;
107
105
  records: Record<string, any>[];
108
106
  }): Promise<void>;
109
107
  /**
110
108
  * Load a record by its keys
111
109
  */
112
- load<R>({ tableName, keys, }: {
113
- tableName: SUPPORTED_TABLE_NAMES;
110
+ load<R>({ tableName, keys }: {
111
+ tableName: TABLE_NAMES;
114
112
  keys: Record<string, string>;
115
113
  }): Promise<R | null>;
116
114
  getThreadById({ threadId }: {
@@ -198,15 +196,6 @@ declare class DynamoDBStore extends MastraStorage {
198
196
  * Should be called when the store is no longer needed, e.g., at the end of tests or application shutdown.
199
197
  */
200
198
  close(): Promise<void>;
201
- updateMessages(_args: {
202
- messages: Partial<Omit<MastraMessageV2, 'createdAt'>> & {
203
- id: string;
204
- content?: {
205
- metadata?: MastraMessageContentV2['metadata'];
206
- content?: MastraMessageContentV2['content'];
207
- };
208
- }[];
209
- }): Promise<MastraMessageV2[]>;
210
199
  }
211
200
  export { DynamoDBStore }
212
201
  export { DynamoDBStore as DynamoDBStore_alias_1 }
@@ -888,8 +877,6 @@ export declare const messageEntity: Entity<string, string, string, {
888
877
  };
889
878
  }>;
890
879
 
891
- declare type SUPPORTED_TABLE_NAMES = Exclude<TABLE_NAMES, typeof TABLE_RESOURCES>;
892
-
893
880
  export declare const threadEntity: Entity<string, string, string, {
894
881
  model: {
895
882
  entity: string;