@mastra/dynamodb 0.0.0-bundle-recursion-20251030002519 → 0.0.0-bundle-version-20260121091645

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.
Files changed (49) hide show
  1. package/CHANGELOG.md +1380 -3
  2. package/README.md +1 -2
  3. package/dist/docs/README.md +31 -0
  4. package/dist/docs/SKILL.md +32 -0
  5. package/dist/docs/SOURCE_MAP.json +6 -0
  6. package/dist/docs/storage/01-reference.md +249 -0
  7. package/dist/entities/eval.d.ts +8 -0
  8. package/dist/entities/eval.d.ts.map +1 -1
  9. package/dist/entities/index.d.ts +66 -5
  10. package/dist/entities/index.d.ts.map +1 -1
  11. package/dist/entities/message.d.ts +8 -0
  12. package/dist/entities/message.d.ts.map +1 -1
  13. package/dist/entities/resource.d.ts +8 -0
  14. package/dist/entities/resource.d.ts.map +1 -1
  15. package/dist/entities/score.d.ts +18 -5
  16. package/dist/entities/score.d.ts.map +1 -1
  17. package/dist/entities/thread.d.ts +8 -0
  18. package/dist/entities/thread.d.ts.map +1 -1
  19. package/dist/entities/trace.d.ts +8 -0
  20. package/dist/entities/trace.d.ts.map +1 -1
  21. package/dist/entities/utils.d.ts +90 -0
  22. package/dist/entities/utils.d.ts.map +1 -1
  23. package/dist/entities/workflow-snapshot.d.ts +8 -0
  24. package/dist/entities/workflow-snapshot.d.ts.map +1 -1
  25. package/dist/index.cjs +663 -1017
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.js +657 -1018
  28. package/dist/index.js.map +1 -1
  29. package/dist/storage/db/index.d.ts +48 -0
  30. package/dist/storage/db/index.d.ts.map +1 -0
  31. package/dist/storage/domains/memory/index.d.ts +18 -45
  32. package/dist/storage/domains/memory/index.d.ts.map +1 -1
  33. package/dist/storage/domains/scores/index.d.ts +47 -0
  34. package/dist/storage/domains/scores/index.d.ts.map +1 -0
  35. package/dist/storage/domains/utils.d.ts +7 -0
  36. package/dist/storage/domains/utils.d.ts.map +1 -0
  37. package/dist/storage/domains/workflows/index.d.ts +17 -24
  38. package/dist/storage/domains/workflows/index.d.ts.map +1 -1
  39. package/dist/storage/index.d.ts +177 -206
  40. package/dist/storage/index.d.ts.map +1 -1
  41. package/dist/storage/ttl.d.ts +52 -0
  42. package/dist/storage/ttl.d.ts.map +1 -0
  43. package/package.json +17 -15
  44. package/dist/storage/domains/legacy-evals/index.d.ts +0 -19
  45. package/dist/storage/domains/legacy-evals/index.d.ts.map +0 -1
  46. package/dist/storage/domains/operations/index.d.ts +0 -69
  47. package/dist/storage/domains/operations/index.d.ts.map +0 -1
  48. package/dist/storage/domains/score/index.d.ts +0 -51
  49. package/dist/storage/domains/score/index.d.ts.map +0 -1
package/README.md CHANGED
@@ -45,9 +45,8 @@ const storage = new DynamoDBStore({
45
45
 
46
46
  // Initialize vector store (if using semantic recall)
47
47
  const vector = new PineconeVector({
48
+ id: 'dynamodb-pinecone',
48
49
  apiKey: process.env.PINECONE_API_KEY,
49
- environment: process.env.PINECONE_ENVIRONMENT,
50
- index: process.env.PINECONE_INDEX,
51
50
  });
52
51
 
53
52
  // Memory combines storage (like DynamoDBStore) with an optional vector store for recall
@@ -0,0 +1,31 @@
1
+ # @mastra/dynamodb Documentation
2
+
3
+ > Embedded documentation for coding agents
4
+
5
+ ## Quick Start
6
+
7
+ ```bash
8
+ # Read the skill overview
9
+ cat docs/SKILL.md
10
+
11
+ # Get the source map
12
+ cat docs/SOURCE_MAP.json
13
+
14
+ # Read topic documentation
15
+ cat docs/<topic>/01-overview.md
16
+ ```
17
+
18
+ ## Structure
19
+
20
+ ```
21
+ docs/
22
+ ├── SKILL.md # Entry point
23
+ ├── README.md # This file
24
+ ├── SOURCE_MAP.json # Export index
25
+ ├── storage/ (1 files)
26
+ ```
27
+
28
+ ## Version
29
+
30
+ Package: @mastra/dynamodb
31
+ Version: 1.0.0
@@ -0,0 +1,32 @@
1
+ ---
2
+ name: mastra-dynamodb-docs
3
+ description: Documentation for @mastra/dynamodb. Includes links to type definitions and readable implementation code in dist/.
4
+ ---
5
+
6
+ # @mastra/dynamodb Documentation
7
+
8
+ > **Version**: 1.0.0
9
+ > **Package**: @mastra/dynamodb
10
+
11
+ ## Quick Navigation
12
+
13
+ Use SOURCE_MAP.json to find any export:
14
+
15
+ ```bash
16
+ cat docs/SOURCE_MAP.json
17
+ ```
18
+
19
+ Each export maps to:
20
+ - **types**: `.d.ts` file with JSDoc and API signatures
21
+ - **implementation**: `.js` chunk file with readable source
22
+ - **docs**: Conceptual documentation in `docs/`
23
+
24
+ ## Top Exports
25
+
26
+
27
+
28
+ See SOURCE_MAP.json for the complete list.
29
+
30
+ ## Available Topics
31
+
32
+ - [Storage](storage/) - 1 file(s)
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": "1.0.0",
3
+ "package": "@mastra/dynamodb",
4
+ "exports": {},
5
+ "modules": {}
6
+ }
@@ -0,0 +1,249 @@
1
+ # Storage API Reference
2
+
3
+ > API reference for storage - 1 entries
4
+
5
+
6
+ ---
7
+
8
+ ## Reference: DynamoDB Storage
9
+
10
+ > Documentation for the DynamoDB storage implementation in Mastra, using a single-table design with ElectroDB.
11
+
12
+ The DynamoDB storage implementation provides a scalable and performant NoSQL database solution for Mastra, leveraging a single-table design pattern with [ElectroDB](https://electrodb.dev/).
13
+
14
+ ## Features
15
+
16
+ - Efficient single-table design for all Mastra storage needs
17
+ - Based on ElectroDB for type-safe DynamoDB access
18
+ - Support for AWS credentials, regions, and endpoints
19
+ - Compatible with AWS DynamoDB Local for development
20
+ - Stores Thread, Message, Trace, Eval, and Workflow data
21
+ - Optimized for serverless environments
22
+ - Configurable TTL (Time To Live) for automatic data expiration per entity type
23
+
24
+ ## Installation
25
+
26
+ ```bash
27
+ npm install @mastra/dynamodb@latest
28
+ ```
29
+
30
+ ## Prerequisites
31
+
32
+ Before using this package, you **must** create a DynamoDB table with a specific structure, including primary keys and Global Secondary Indexes (GSIs). This adapter expects the DynamoDB table and its GSIs to be provisioned externally.
33
+
34
+ Detailed instructions for setting up the table using AWS CloudFormation or AWS CDK are available in [TABLE_SETUP.md](https://github.com/mastra-ai/mastra/blob/main/stores/dynamodb/TABLE_SETUP.md). Please ensure your table is configured according to those instructions before proceeding.
35
+
36
+ ## Usage
37
+
38
+ ### Basic Usage
39
+
40
+ ```typescript
41
+ import { Memory } from "@mastra/memory";
42
+ import { DynamoDBStore } from "@mastra/dynamodb";
43
+
44
+ // Initialize the DynamoDB storage
45
+ const storage = new DynamoDBStore({
46
+ id: "dynamodb", // Unique identifier for this storage instance
47
+ config: {
48
+ tableName: "mastra-single-table", // Name of your DynamoDB table
49
+ region: "us-east-1", // Optional: AWS region, defaults to 'us-east-1'
50
+ // endpoint: "http://localhost:8000", // Optional: For local DynamoDB
51
+ // credentials: { accessKeyId: "YOUR_ACCESS_KEY", secretAccessKey: "YOUR_SECRET_KEY" } // Optional
52
+ },
53
+ });
54
+
55
+ // Example: Initialize Memory with DynamoDB storage
56
+ const memory = new Memory({
57
+ storage,
58
+ options: {
59
+ lastMessages: 10,
60
+ },
61
+ });
62
+ ```
63
+
64
+ ### Local Development with DynamoDB Local
65
+
66
+ For local development, you can use [DynamoDB Local](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html).
67
+
68
+ 1. **Run DynamoDB Local (e.g., using Docker):**
69
+
70
+ ```bash
71
+ docker run -p 8000:8000 amazon/dynamodb-local
72
+ ```
73
+
74
+ 2. **Configure `DynamoDBStore` to use the local endpoint:**
75
+
76
+ ```typescript
77
+ import { DynamoDBStore } from "@mastra/dynamodb";
78
+
79
+ const storage = new DynamoDBStore({
80
+ id: "dynamodb-local",
81
+ config: {
82
+ tableName: "mastra-single-table", // Ensure this table is created in your local DynamoDB
83
+ region: "localhost", // Can be any string for local, 'localhost' is common
84
+ endpoint: "http://localhost:8000",
85
+ // For DynamoDB Local, credentials are not typically required unless configured.
86
+ // If you've configured local credentials:
87
+ // credentials: { accessKeyId: "fakeMyKeyId", secretAccessKey: "fakeSecretAccessKey" }
88
+ },
89
+ });
90
+ ```
91
+
92
+ You will still need to create the table and GSIs in your local DynamoDB instance, for example, using the AWS CLI pointed to your local endpoint.
93
+
94
+ ## Parameters
95
+
96
+ ## TTL (Time To Live) Configuration
97
+
98
+ DynamoDB TTL allows you to automatically delete items after a specified time period. This is useful for:
99
+
100
+ - **Cost optimization**: Automatically remove old data to reduce storage costs
101
+ - **Data lifecycle management**: Implement retention policies for compliance
102
+ - **Performance**: Prevent tables from growing indefinitely
103
+ - **Privacy compliance**: Automatically purge personal data after specified periods
104
+
105
+ ### Enabling TTL
106
+
107
+ To use TTL, you must:
108
+
109
+ 1. **Configure TTL in DynamoDBStore** (shown below)
110
+ 2. **Enable TTL on your DynamoDB table** via AWS Console or CLI, specifying the attribute name (default: `ttl`)
111
+
112
+ ```typescript
113
+ import { DynamoDBStore } from "@mastra/dynamodb";
114
+
115
+ const storage = new DynamoDBStore({
116
+ name: "dynamodb",
117
+ config: {
118
+ tableName: "mastra-single-table",
119
+ region: "us-east-1",
120
+ ttl: {
121
+ // Messages expire after 30 days
122
+ message: {
123
+ enabled: true,
124
+ defaultTtlSeconds: 30 * 24 * 60 * 60, // 30 days
125
+ },
126
+ // Threads expire after 90 days
127
+ thread: {
128
+ enabled: true,
129
+ defaultTtlSeconds: 90 * 24 * 60 * 60, // 90 days
130
+ },
131
+ // Traces expire after 7 days with custom attribute name
132
+ trace: {
133
+ enabled: true,
134
+ attributeName: "expiresAt", // Custom TTL attribute
135
+ defaultTtlSeconds: 7 * 24 * 60 * 60, // 7 days
136
+ },
137
+ // Workflow snapshots don't expire
138
+ workflow_snapshot: {
139
+ enabled: false,
140
+ },
141
+ },
142
+ },
143
+ });
144
+ ```
145
+
146
+ ### Supported Entity Types
147
+
148
+ TTL can be configured for these entity types:
149
+
150
+ | Entity | Description |
151
+ |--------|-------------|
152
+ | `thread` | Conversation threads |
153
+ | `message` | Messages within threads |
154
+ | `trace` | Observability traces |
155
+ | `eval` | Evaluation results |
156
+ | `workflow_snapshot` | Workflow state snapshots |
157
+ | `resource` | User/resource data |
158
+ | `score` | Scoring results |
159
+
160
+ ### TTL Entity Configuration
161
+
162
+ Each entity type accepts the following configuration:
163
+
164
+ ### Enabling TTL on Your DynamoDB Table
165
+
166
+ After configuring TTL in your code, you must enable TTL on the DynamoDB table itself:
167
+
168
+ **Using AWS CLI:**
169
+
170
+ ```bash
171
+ aws dynamodb update-time-to-live \
172
+ --table-name mastra-single-table \
173
+ --time-to-live-specification "Enabled=true, AttributeName=ttl"
174
+ ```
175
+
176
+ **Using AWS Console:**
177
+
178
+ 1. Go to the DynamoDB console
179
+ 2. Select your table
180
+ 3. Go to "Additional settings" tab
181
+ 4. Under "Time to Live (TTL)", click "Manage TTL"
182
+ 5. Enable TTL and specify the attribute name (default: `ttl`)
183
+
184
+ > **Note**: DynamoDB deletes expired items within 48 hours after expiration. Items remain queryable until actually deleted.
185
+
186
+ ## AWS IAM Permissions
187
+
188
+ The IAM role or user executing the code needs appropriate permissions to interact with the specified DynamoDB table and its indexes. Below is a sample policy. Replace `${YOUR_TABLE_NAME}` with your actual table name and `${YOUR_AWS_REGION}` and `${YOUR_AWS_ACCOUNT_ID}` with appropriate values.
189
+
190
+ ```json
191
+ {
192
+ "Version": "2012-10-17",
193
+ "Statement": [
194
+ {
195
+ "Effect": "Allow",
196
+ "Action": [
197
+ "dynamodb:DescribeTable",
198
+ "dynamodb:GetItem",
199
+ "dynamodb:PutItem",
200
+ "dynamodb:UpdateItem",
201
+ "dynamodb:DeleteItem",
202
+ "dynamodb:Query",
203
+ "dynamodb:Scan",
204
+ "dynamodb:BatchGetItem",
205
+ "dynamodb:BatchWriteItem"
206
+ ],
207
+ "Resource": [
208
+ "arn:aws:dynamodb:${YOUR_AWS_REGION}:${YOUR_AWS_ACCOUNT_ID}:table/${YOUR_TABLE_NAME}",
209
+ "arn:aws:dynamodb:${YOUR_AWS_REGION}:${YOUR_AWS_ACCOUNT_ID}:table/${YOUR_TABLE_NAME}/index/*"
210
+ ]
211
+ }
212
+ ]
213
+ }
214
+ ```
215
+
216
+ ## Key Considerations
217
+
218
+ Before diving into the architectural details, keep these key points in mind when working with the DynamoDB storage adapter:
219
+
220
+ - **External Table Provisioning:** This adapter _requires_ you to create and configure the DynamoDB table and its Global Secondary Indexes (GSIs) yourself, prior to using the adapter. Follow the guide in [TABLE_SETUP.md](https://github.com/mastra-ai/mastra/blob/main/stores/dynamodb/TABLE_SETUP.md).
221
+ - **Single-Table Design:** All Mastra data (threads, messages, etc.) is stored in one DynamoDB table. This is a deliberate design choice optimized for DynamoDB, differing from relational database approaches.
222
+ - **Understanding GSIs:** Familiarity with how the GSIs are structured (as per `TABLE_SETUP.md`) is important for understanding data retrieval and potential query patterns.
223
+ - **ElectroDB:** The adapter uses ElectroDB to manage interactions with DynamoDB, providing a layer of abstraction and type safety over raw DynamoDB operations.
224
+
225
+ ## Architectural Approach
226
+
227
+ This storage adapter utilizes a **single-table design pattern** leveraging [ElectroDB](https://electrodb.dev/), a common and recommended approach for DynamoDB. This differs architecturally from relational database adapters (like `@mastra/pg` or `@mastra/libsql`) that typically use multiple tables, each dedicated to a specific entity (threads, messages, etc.).
228
+
229
+ Key aspects of this approach:
230
+
231
+ - **DynamoDB Native:** The single-table design is optimized for DynamoDB's key-value and query capabilities, often leading to better performance and scalability compared to mimicking relational models.
232
+ - **External Table Management:** Unlike some adapters that might offer helper functions to create tables via code, this adapter **expects the DynamoDB table and its associated Global Secondary Indexes (GSIs) to be provisioned externally** before use. Please refer to [TABLE_SETUP.md](https://github.com/mastra-ai/mastra/blob/main/stores/dynamodb/TABLE_SETUP.md) for detailed instructions using tools like AWS CloudFormation or CDK. The adapter focuses solely on interacting with the pre-existing table structure.
233
+ - **Consistency via Interface:** While the underlying storage model differs, this adapter adheres to the same `MastraStorage` interface as other adapters, ensuring it can be used interchangeably within the Mastra `Memory` component.
234
+
235
+ ### Mastra Data in the Single Table
236
+
237
+ Within the single DynamoDB table, different Mastra data entities (such as Threads, Messages, Traces, Evals, and Workflows) are managed and distinguished using ElectroDB. ElectroDB defines specific models for each entity type, which include unique key structures and attributes. This allows the adapter to store and retrieve diverse data types efficiently within the same table.
238
+
239
+ For example, a `Thread` item might have a primary key like `THREAD#<threadId>`, while a `Message` item belonging to that thread might use `THREAD#<threadId>` as a partition key and `MESSAGE#<messageId>` as a sort key. The Global Secondary Indexes (GSIs), detailed in `TABLE_SETUP.md`, are strategically designed to support common access patterns across these different entities, such as fetching all messages for a thread or querying traces associated with a particular workflow.
240
+
241
+ ### Advantages of Single-Table Design
242
+
243
+ This implementation uses a single-table design pattern with ElectroDB, which offers several advantages within the context of DynamoDB:
244
+
245
+ 1. **Lower cost (potentially):** Fewer tables can simplify Read/Write Capacity Unit (RCU/WCU) provisioning and management, especially with on-demand capacity.
246
+ 2. **Better performance:** Related data can be co-located or accessed efficiently through GSIs, enabling fast lookups for common access patterns.
247
+ 3. **Simplified administration:** Fewer distinct tables to monitor, back up, and manage.
248
+ 4. **Reduced complexity in access patterns:** ElectroDB helps manage the complexity of item types and access patterns on a single table.
249
+ 5. **Transaction support:** DynamoDB transactions can be used across different "entity" types stored within the same table if needed.
@@ -70,6 +70,14 @@ export declare const evalEntity: Entity<string, string, string, {
70
70
  readonly set: (value?: Record<string, unknown> | string) => string | undefined;
71
71
  readonly get: (value?: string) => any;
72
72
  };
73
+ ttl: {
74
+ readonly type: "number";
75
+ readonly required: false;
76
+ };
77
+ expiresAt: {
78
+ readonly type: "number";
79
+ readonly required: false;
80
+ };
73
81
  entity: {
74
82
  type: "string";
75
83
  required: true;
@@ -1 +1 @@
1
- {"version":3,"file":"eval.d.ts","sourceRoot":"","sources":["../../src/entities/eval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;0BAwBH,GAAG;0BAOH,MAAM;;;;;;;;;;;;;;;;;0BAuBN,GAAG;0BAOH,MAAM;;;;;;;;;;;;;;0BAkBN,IAAI,GAAG,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmB/B,CAAC"}
1
+ {"version":3,"file":"eval.d.ts","sourceRoot":"","sources":["../../src/entities/eval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;0BAwBH,GAAG;0BAOH,MAAM;;;;;;;;;;;;;;;;;0BAuBN,GAAG;0BAOH,MAAM;;;;;;;;;;;;;;0BAkBN,IAAI,GAAG,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmB/B,CAAC"}
@@ -39,6 +39,14 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
39
39
  readonly set: (value?: Date | string) => string;
40
40
  readonly default: () => string;
41
41
  };
42
+ ttl: {
43
+ readonly type: "number";
44
+ readonly required: false;
45
+ };
46
+ expiresAt: {
47
+ readonly type: "number";
48
+ readonly required: false;
49
+ };
42
50
  entity: {
43
51
  type: "string";
44
52
  required: true;
@@ -137,6 +145,14 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
137
145
  readonly set: (value?: Record<string, unknown> | string) => string | undefined;
138
146
  readonly get: (value?: string) => any;
139
147
  };
148
+ ttl: {
149
+ readonly type: "number";
150
+ readonly required: false;
151
+ };
152
+ expiresAt: {
153
+ readonly type: "number";
154
+ readonly required: false;
155
+ };
140
156
  entity: {
141
157
  type: "string";
142
158
  required: true;
@@ -237,6 +253,14 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
237
253
  readonly set: (value?: Record<string, unknown> | string) => string | undefined;
238
254
  readonly get: (value?: string) => any;
239
255
  };
256
+ ttl: {
257
+ readonly type: "number";
258
+ readonly required: false;
259
+ };
260
+ expiresAt: {
261
+ readonly type: "number";
262
+ readonly required: false;
263
+ };
240
264
  entity: {
241
265
  type: "string";
242
266
  required: true;
@@ -351,6 +375,14 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
351
375
  readonly set: (value?: Record<string, unknown> | string) => string | undefined;
352
376
  readonly get: (value?: string) => any;
353
377
  };
378
+ ttl: {
379
+ readonly type: "number";
380
+ readonly required: false;
381
+ };
382
+ expiresAt: {
383
+ readonly type: "number";
384
+ readonly required: false;
385
+ };
354
386
  entity: {
355
387
  type: "string";
356
388
  required: true;
@@ -434,6 +466,14 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
434
466
  readonly set: (value?: Record<string, unknown> | string) => string | undefined;
435
467
  readonly get: (value?: string) => any;
436
468
  };
469
+ ttl: {
470
+ readonly type: "number";
471
+ readonly required: false;
472
+ };
473
+ expiresAt: {
474
+ readonly type: "number";
475
+ readonly required: false;
476
+ };
437
477
  entity: {
438
478
  type: "string";
439
479
  required: true;
@@ -497,6 +537,14 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
497
537
  readonly set: (value?: Date | string) => string;
498
538
  readonly default: () => string;
499
539
  };
540
+ ttl: {
541
+ readonly type: "number";
542
+ readonly required: false;
543
+ };
544
+ expiresAt: {
545
+ readonly type: "number";
546
+ readonly required: false;
547
+ };
500
548
  entity: {
501
549
  type: "string";
502
550
  required: true;
@@ -554,6 +602,10 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
554
602
  set: (value?: Record<string, unknown> | string) => string | undefined;
555
603
  get: (value?: string) => any;
556
604
  };
605
+ preprocessPrompt: {
606
+ type: "string";
607
+ required: false;
608
+ };
557
609
  preprocessStepResult: {
558
610
  type: "string";
559
611
  required: false;
@@ -612,7 +664,13 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
612
664
  set: (value?: Record<string, unknown> | string) => string | undefined;
613
665
  get: (value?: string) => any;
614
666
  };
615
- runtimeContext: {
667
+ metadata: {
668
+ type: "string";
669
+ required: false;
670
+ set: (value?: Record<string, unknown> | string) => string | undefined;
671
+ get: (value?: string) => any;
672
+ };
673
+ requestContext: {
616
674
  type: "string";
617
675
  required: false;
618
676
  set: (value?: Record<string, unknown> | string) => string | undefined;
@@ -657,10 +715,13 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
657
715
  readonly set: (value?: Date | string) => string;
658
716
  readonly default: () => string;
659
717
  };
660
- metadata: {
661
- readonly type: "string";
662
- readonly set: (value?: Record<string, unknown> | string) => string | undefined;
663
- readonly get: (value?: string) => any;
718
+ ttl: {
719
+ readonly type: "number";
720
+ readonly required: false;
721
+ };
722
+ expiresAt: {
723
+ readonly type: "number";
724
+ readonly required: false;
664
725
  };
665
726
  entity: {
666
727
  type: "string";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASpC,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,sBAAsB,EAAE,SAAS,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgBpF"}
@@ -68,6 +68,14 @@ export declare const messageEntity: Entity<string, string, string, {
68
68
  readonly set: (value?: Record<string, unknown> | string) => string | undefined;
69
69
  readonly get: (value?: string) => any;
70
70
  };
71
+ ttl: {
72
+ readonly type: "number";
73
+ readonly required: false;
74
+ };
75
+ expiresAt: {
76
+ readonly type: "number";
77
+ readonly required: false;
78
+ };
71
79
  entity: {
72
80
  type: "string";
73
81
  required: true;
@@ -1 +1 @@
1
- {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src/entities/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;0BA+BN,MAAM;;;;;;;;;;;;;;;;;0BA8BN,MAAM,EAAE,GAAG,MAAM;0BAOjB,MAAM;;;;;0BAgBN,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,MAAM;0BAOlC,MAAM;;;;;0BAgBN,MAAM,EAAE,GAAG,MAAM;0BAOjB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBxB,CAAC"}
1
+ {"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src/entities/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;0BA+BN,MAAM;;;;;;;;;;;;;;;;;0BA8BN,MAAM,EAAE,GAAG,MAAM;0BAOjB,MAAM;;;;;0BAgBN,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,MAAM;0BAOlC,MAAM;;;;;0BAgBN,MAAM,EAAE,GAAG,MAAM;0BAOjB,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBxB,CAAC"}
@@ -33,6 +33,14 @@ export declare const resourceEntity: Entity<string, string, string, {
33
33
  readonly set: (value?: Date | string) => string;
34
34
  readonly default: () => string;
35
35
  };
36
+ ttl: {
37
+ readonly type: "number";
38
+ readonly required: false;
39
+ };
40
+ expiresAt: {
41
+ readonly type: "number";
42
+ readonly required: false;
43
+ };
36
44
  entity: {
37
45
  type: "string";
38
46
  required: true;
@@ -1 +1 @@
1
- {"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../../src/entities/resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;0BA+BP,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsBxB,CAAC"}
1
+ {"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../../src/entities/resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;0BA+BP,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsBxB,CAAC"}
@@ -38,6 +38,10 @@ export declare const scoreEntity: Entity<string, string, string, {
38
38
  set: (value?: Record<string, unknown> | string) => string | undefined;
39
39
  get: (value?: string) => any;
40
40
  };
41
+ preprocessPrompt: {
42
+ type: "string";
43
+ required: false;
44
+ };
41
45
  preprocessStepResult: {
42
46
  type: "string";
43
47
  required: false;
@@ -96,7 +100,13 @@ export declare const scoreEntity: Entity<string, string, string, {
96
100
  set: (value?: Record<string, unknown> | string) => string | undefined;
97
101
  get: (value?: string) => any;
98
102
  };
99
- runtimeContext: {
103
+ metadata: {
104
+ type: "string";
105
+ required: false;
106
+ set: (value?: Record<string, unknown> | string) => string | undefined;
107
+ get: (value?: string) => any;
108
+ };
109
+ requestContext: {
100
110
  type: "string";
101
111
  required: false;
102
112
  set: (value?: Record<string, unknown> | string) => string | undefined;
@@ -141,10 +151,13 @@ export declare const scoreEntity: Entity<string, string, string, {
141
151
  readonly set: (value?: Date | string) => string;
142
152
  readonly default: () => string;
143
153
  };
144
- metadata: {
145
- readonly type: "string";
146
- readonly set: (value?: Record<string, unknown> | string) => string | undefined;
147
- readonly get: (value?: string) => any;
154
+ ttl: {
155
+ readonly type: "number";
156
+ readonly required: false;
157
+ };
158
+ expiresAt: {
159
+ readonly type: "number";
160
+ readonly required: false;
148
161
  };
149
162
  entity: {
150
163
  type: "string";
@@ -1 +1 @@
1
- {"version":3,"file":"score.d.ts","sourceRoot":"","sources":["../../src/entities/score.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAmCJ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM;0BAMhC,MAAM;;;;;0BAgBN,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM;0BAMhC,MAAM;;;;;0BAgBN,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM;0BAMhC,MAAM;;;;;0BAgBN,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM;0BAMhC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA8CN,MAAM,CAAC,MAAM,EAAE,OAAO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AG,MAAM;0BAMhC,MAAM;;;;;0BAgBN,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM;0BAMhC,MAAM;;;;;0BAgBN,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM;0BAMhC,MAAM;;;;;;;;;0BAoBN,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM;0BAMhC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuExB,CAAC"}
@@ -37,6 +37,14 @@ export declare const threadEntity: Entity<string, string, string, {
37
37
  readonly set: (value?: Date | string) => string;
38
38
  readonly default: () => string;
39
39
  };
40
+ ttl: {
41
+ readonly type: "number";
42
+ readonly required: false;
43
+ };
44
+ expiresAt: {
45
+ readonly type: "number";
46
+ readonly required: false;
47
+ };
40
48
  entity: {
41
49
  type: "string";
42
50
  required: true;
@@ -1 +1 @@
1
- {"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../src/entities/thread.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;0BA4BL,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM;0BAOhC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BxB,CAAC"}
1
+ {"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../src/entities/thread.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;0BA4BL,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM;0BAOhC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2BxB,CAAC"}
@@ -84,6 +84,14 @@ export declare const traceEntity: Entity<string, string, string, {
84
84
  readonly set: (value?: Record<string, unknown> | string) => string | undefined;
85
85
  readonly get: (value?: string) => any;
86
86
  };
87
+ ttl: {
88
+ readonly type: "number";
89
+ readonly required: false;
90
+ };
91
+ expiresAt: {
92
+ readonly type: "number";
93
+ readonly required: false;
94
+ };
87
95
  entity: {
88
96
  type: "string";
89
97
  required: true;
@@ -1 +1 @@
1
- {"version":3,"file":"trace.d.ts","sourceRoot":"","sources":["../../src/entities/trace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAwCJ,GAAG;0BAOH,MAAM;;;;;0BAQN,GAAG;0BAOH,MAAM;;;;;0BAQN,GAAG;0BAOH,MAAM;;;;;0BAQN,GAAG;0BAOH,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiCxB,CAAC"}
1
+ {"version":3,"file":"trace.d.ts","sourceRoot":"","sources":["../../src/entities/trace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAwCJ,GAAG;0BAOH,MAAM;;;;;0BAQN,GAAG;0BAOH,MAAM;;;;;0BAQN,GAAG;0BAOH,MAAM;;;;;0BAQN,GAAG;0BAOH,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiCxB,CAAC"}