@mastra/dynamodb 1.0.3-alpha.0 → 1.0.4-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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @mastra/dynamodb
2
2
 
3
+ ## 1.0.4-alpha.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Add `BackgroundTasksStorage` domain implementation so `@mastra/core` background task execution works with any storage adapter. ([#15307](https://github.com/mastra-ai/mastra/pull/15307))
8
+
9
+ - Updated dependencies [[`d63ffdb`](https://github.com/mastra-ai/mastra/commit/d63ffdbb2c11e76fe5ea45faab44bc15460f010c)]:
10
+ - @mastra/core@1.25.1-alpha.0
11
+
12
+ ## 1.0.3
13
+
14
+ ### Patch Changes
15
+
16
+ - dependencies updates: ([#14061](https://github.com/mastra-ai/mastra/pull/14061))
17
+ - Updated dependency [`@aws-sdk/client-dynamodb@^3.1004.0` ↗︎](https://www.npmjs.com/package/@aws-sdk/client-dynamodb/v/3.1004.0) (from `^3.902.0`, in `dependencies`)
18
+ - Updated dependency [`@aws-sdk/lib-dynamodb@^3.1004.0` ↗︎](https://www.npmjs.com/package/@aws-sdk/lib-dynamodb/v/3.1004.0) (from `^3.902.0`, in `dependencies`)
19
+
20
+ - Fixed slow semantic recall on large threads in the MongoDB and DynamoDB memory stores. Included message lookups now avoid unnecessary work when semantic recall only needs specific messages and nearby context. (Fixes #11702) ([#14022](https://github.com/mastra-ai/mastra/pull/14022))
21
+
22
+ - Updated dependencies [[`4f71b43`](https://github.com/mastra-ai/mastra/commit/4f71b436a4a6b8839842d8da47b57b84509af56c), [`a070277`](https://github.com/mastra-ai/mastra/commit/a07027766ce195ba74d0783116d894cbab25d44c), [`b628b91`](https://github.com/mastra-ai/mastra/commit/b628b9128b372c0f54214d902b07279f03443900), [`332c014`](https://github.com/mastra-ai/mastra/commit/332c014e076b81edf7fe45b58205882726415e90), [`6b63153`](https://github.com/mastra-ai/mastra/commit/6b63153878ea841c0f4ce632ba66bb33e57e9c1b), [`4246e34`](https://github.com/mastra-ai/mastra/commit/4246e34cec9c26636d0965942268e6d07c346671), [`b8837ee`](https://github.com/mastra-ai/mastra/commit/b8837ee77e2e84197609762bfabd8b3da326d30c), [`866cc2c`](https://github.com/mastra-ai/mastra/commit/866cc2cb1f0e3b314afab5194f69477fada745d1), [`5d950f7`](https://github.com/mastra-ai/mastra/commit/5d950f7bf426a215a1808f0abef7de5c8336ba1c), [`28c85b1`](https://github.com/mastra-ai/mastra/commit/28c85b184fc32b40f7f160483c982da6d388ecbd), [`e9a08fb`](https://github.com/mastra-ai/mastra/commit/e9a08fbef1ada7e50e961e2f54f55e8c10b4a45c), [`1d0a8a8`](https://github.com/mastra-ai/mastra/commit/1d0a8a8acf33203d5744fc429b090ad8598aa8ed), [`631ffd8`](https://github.com/mastra-ai/mastra/commit/631ffd82fed108648b448b28e6a90e38c5f53bf5), [`6bcbf8a`](https://github.com/mastra-ai/mastra/commit/6bcbf8a6774d5a53b21d61db8a45ce2593ca1616), [`aae2295`](https://github.com/mastra-ai/mastra/commit/aae2295838a2d329ad6640829e87934790ffe5b8), [`aa61f29`](https://github.com/mastra-ai/mastra/commit/aa61f29ff8095ce46a4ae16e46c4d8c79b2b685b), [`7ff3714`](https://github.com/mastra-ai/mastra/commit/7ff37148515439bb3be009a60e02c3e363299760), [`18c3a90`](https://github.com/mastra-ai/mastra/commit/18c3a90c9e48cf69500e308affeb8eba5860b2af), [`41d79a1`](https://github.com/mastra-ai/mastra/commit/41d79a14bd8cb6de1e2565fd0a04786bae2f211b), [`f35487b`](https://github.com/mastra-ai/mastra/commit/f35487bb2d46c636e22aa71d90025613ae38235a), [`6dc2192`](https://github.com/mastra-ai/mastra/commit/6dc21921aef0f0efab15cd0805fa3d18f277a76f), [`eeb3a3f`](https://github.com/mastra-ai/mastra/commit/eeb3a3f43aca10cf49479eed2a84b7d9ecea02ba), [`e673376`](https://github.com/mastra-ai/mastra/commit/e6733763ad1321aa7e5ae15096b9c2104f93b1f3), [`05f8d90`](https://github.com/mastra-ai/mastra/commit/05f8d9009290ce6aa03428b3add635268615db85), [`b2204c9`](https://github.com/mastra-ai/mastra/commit/b2204c98a42848bbfb6f0440f005dc2b6354f1cd), [`a1bf1e3`](https://github.com/mastra-ai/mastra/commit/a1bf1e385ed4c0ef6f11b56c5887442970d127f2), [`b6f647a`](https://github.com/mastra-ai/mastra/commit/b6f647ae2388e091f366581595feb957e37d5b40), [`0c57b8b`](https://github.com/mastra-ai/mastra/commit/0c57b8b0a69a97b5a4ae3f79be6c610f29f3cf7b), [`b081f27`](https://github.com/mastra-ai/mastra/commit/b081f272cf411716e1d6bd72ceac4bcee2657b19), [`4b8da97`](https://github.com/mastra-ai/mastra/commit/4b8da97a5ce306e97869df6c39535d9069e563db), [`0c09eac`](https://github.com/mastra-ai/mastra/commit/0c09eacb1926f64cfdc9ae5c6d63385cf8c9f72c), [`6b9b93d`](https://github.com/mastra-ai/mastra/commit/6b9b93d6f459d1ba6e36f163abf62a085ddb3d64), [`31b6067`](https://github.com/mastra-ai/mastra/commit/31b6067d0cc3ab10e1b29c36147f3b5266bc714a), [`797ac42`](https://github.com/mastra-ai/mastra/commit/797ac4276de231ad2d694d9aeca75980f6cd0419), [`0bc289e`](https://github.com/mastra-ai/mastra/commit/0bc289e2d476bf46c5b91c21969e8d0c6864691c), [`9b75a06`](https://github.com/mastra-ai/mastra/commit/9b75a06e53ebb0b950ba7c1e83a0142047185f46), [`4c3a1b1`](https://github.com/mastra-ai/mastra/commit/4c3a1b122ea083e003d71092f30f3b31680b01c0), [`256df35`](https://github.com/mastra-ai/mastra/commit/256df3571d62beb3ad4971faa432927cc140e603), [`85cc3b3`](https://github.com/mastra-ai/mastra/commit/85cc3b3b6f32ae4b083c26498f50d5b250ba944b), [`97ea28c`](https://github.com/mastra-ai/mastra/commit/97ea28c746e9e4147d56047bbb1c4a92417a3fec), [`d567299`](https://github.com/mastra-ai/mastra/commit/d567299cf81e02bd9d5221d4bc05967d6c224161), [`716ffe6`](https://github.com/mastra-ai/mastra/commit/716ffe68bed81f7c2690bc8581b9e140f7bf1c3d), [`8296332`](https://github.com/mastra-ai/mastra/commit/8296332de21c16e3dfc3d0b2d615720a6dc88f2f), [`4df2116`](https://github.com/mastra-ai/mastra/commit/4df211619dd922c047d396ca41cd7027c8c4c8e7), [`2219c1a`](https://github.com/mastra-ai/mastra/commit/2219c1acbd21da116da877f0036ffb985a9dd5a3), [`17c4145`](https://github.com/mastra-ai/mastra/commit/17c4145166099354545582335b5252bdfdfd908b)]:
23
+ - @mastra/core@1.11.0
24
+
3
25
  ## 1.0.3-alpha.0
4
26
 
5
27
  ### Patch Changes
@@ -3,7 +3,7 @@ name: mastra-dynamodb
3
3
  description: Documentation for @mastra/dynamodb. Use when working with @mastra/dynamodb APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/dynamodb"
6
- version: "1.0.3-alpha.0"
6
+ version: "1.0.4-alpha.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -16,7 +16,7 @@ Read the individual reference documents for detailed explanations and code examp
16
16
 
17
17
  ### Reference
18
18
 
19
- - [Reference: DynamoDB Storage](references/reference-storage-dynamodb.md) - Documentation for the DynamoDB storage implementation in Mastra, using a single-table design with ElectroDB.
19
+ - [Reference: DynamoDB storage](references/reference-storage-dynamodb.md) - Documentation for the DynamoDB storage implementation in Mastra, using a single-table design with ElectroDB.
20
20
 
21
21
 
22
22
  Read [assets/SOURCE_MAP.json](assets/SOURCE_MAP.json) for source code references.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.3-alpha.0",
2
+ "version": "1.0.4-alpha.0",
3
3
  "package": "@mastra/dynamodb",
4
4
  "exports": {},
5
5
  "modules": {}
@@ -1,8 +1,8 @@
1
- # DynamoDB Storage
1
+ # DynamoDB storage
2
2
 
3
3
  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/).
4
4
 
5
- > **Observability Not Supported:** DynamoDB storage **doesn't support the observability domain**. Traces from the `DefaultExporter` can't be persisted to DynamoDB, and Mastra Studio's observability features won't work with DynamoDB as your only storage provider. To enable observability, use [composite storage](https://mastra.ai/reference/storage/composite) to route observability data to a supported provider like ClickHouse or PostgreSQL.
5
+ > **Observability Not Supported:** DynamoDB storage **doesn't support the observability domain**. Traces from the `DefaultExporter` can't be persisted to DynamoDB, and [Studio's](https://mastra.ai/docs/studio/overview) observability features won't work with DynamoDB as your only storage provider. To enable observability, use [composite storage](https://mastra.ai/reference/storage/composite) to route observability data to a supported provider like ClickHouse or PostgreSQL.
6
6
 
7
7
  > **Item Size Limit:** DynamoDB enforces a **400 KB maximum item size**. This limit can be exceeded when storing messages with base64-encoded attachments such as images. See [Handling large attachments](https://mastra.ai/docs/memory/storage) for workarounds including uploading attachments to external storage.
8
8
 
@@ -120,7 +120,7 @@ For local development, you can use [DynamoDB Local](https://docs.aws.amazon.com/
120
120
 
121
121
  **config.ttl** (`object`): TTL (Time To Live) configuration for automatic data expiration. Configure per entity type: thread, message, trace, eval, workflow\_snapshot, resource, score. Each entity config includes: enabled (boolean), attributeName (string, default: 'ttl'), defaultTtlSeconds (number).
122
122
 
123
- ## TTL (Time To Live) Configuration
123
+ ## TTL (time to live) configuration
124
124
 
125
125
  DynamoDB TTL allows you to automatically delete items after a specified time period. This is useful for:
126
126
 
@@ -216,7 +216,7 @@ aws dynamodb update-time-to-live \
216
216
 
217
217
  > **Note:** DynamoDB deletes expired items within 48 hours after expiration. Items remain queryable until actually deleted.
218
218
 
219
- ## AWS IAM Permissions
219
+ ## AWS IAM permissions
220
220
 
221
221
  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.
222
222
 
@@ -246,7 +246,7 @@ The IAM role or user executing the code needs appropriate permissions to interac
246
246
  }
247
247
  ```
248
248
 
249
- ## Key Considerations
249
+ ## Key considerations
250
250
 
251
251
  Before diving into the architectural details, keep these key points in mind when working with the DynamoDB storage adapter:
252
252
 
@@ -255,7 +255,7 @@ Before diving into the architectural details, keep these key points in mind when
255
255
  - **Understanding GSIs:** Familiarity with how the GSIs are structured (as per `TABLE_SETUP.md`) is important for understanding data retrieval and potential query patterns.
256
256
  - **ElectroDB:** The adapter uses ElectroDB to manage interactions with DynamoDB, providing a layer of abstraction and type safety over raw DynamoDB operations.
257
257
 
258
- ## Architectural Approach
258
+ ## Architectural approach
259
259
 
260
260
  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.).
261
261
 
@@ -0,0 +1,156 @@
1
+ import { Entity } from 'electrodb';
2
+ export declare const backgroundTaskEntity: Entity<string, string, string, {
3
+ model: {
4
+ entity: string;
5
+ version: string;
6
+ service: string;
7
+ };
8
+ attributes: {
9
+ id: {
10
+ type: "string";
11
+ required: true;
12
+ };
13
+ status: {
14
+ type: "string";
15
+ required: true;
16
+ };
17
+ toolName: {
18
+ type: "string";
19
+ required: true;
20
+ };
21
+ toolCallId: {
22
+ type: "string";
23
+ required: true;
24
+ };
25
+ agentId: {
26
+ type: "string";
27
+ required: true;
28
+ };
29
+ runId: {
30
+ type: "string";
31
+ required: true;
32
+ };
33
+ threadId: {
34
+ type: "string";
35
+ required: false;
36
+ };
37
+ resourceId: {
38
+ type: "string";
39
+ required: false;
40
+ };
41
+ args: {
42
+ set: (value?: unknown) => string | undefined;
43
+ get: (value?: string) => any;
44
+ type: "string";
45
+ required: true;
46
+ };
47
+ result: {
48
+ set: (value?: unknown) => string | undefined;
49
+ get: (value?: string) => any;
50
+ type: "string";
51
+ required: false;
52
+ };
53
+ error: {
54
+ set: (value?: unknown) => string | undefined;
55
+ get: (value?: string) => any;
56
+ type: "string";
57
+ required: false;
58
+ };
59
+ retryCount: {
60
+ type: "number";
61
+ required: true;
62
+ };
63
+ maxRetries: {
64
+ type: "number";
65
+ required: true;
66
+ };
67
+ timeoutMs: {
68
+ type: "number";
69
+ required: true;
70
+ };
71
+ startedAtIso: {
72
+ type: "string";
73
+ required: false;
74
+ };
75
+ completedAtIso: {
76
+ type: "string";
77
+ required: false;
78
+ };
79
+ createdAt: {
80
+ readonly type: "string";
81
+ readonly required: true;
82
+ readonly readOnly: true;
83
+ readonly set: (value?: Date | string) => string;
84
+ readonly default: () => string;
85
+ };
86
+ updatedAt: {
87
+ readonly type: "string";
88
+ readonly required: true;
89
+ readonly set: (value?: Date | string) => string;
90
+ readonly default: () => string;
91
+ };
92
+ metadata: {
93
+ readonly type: "string";
94
+ readonly set: (value?: Record<string, unknown> | string) => string | undefined;
95
+ readonly get: (value?: string) => any;
96
+ };
97
+ ttl: {
98
+ readonly type: "number";
99
+ readonly required: false;
100
+ };
101
+ expiresAt: {
102
+ readonly type: "number";
103
+ readonly required: false;
104
+ };
105
+ entity: {
106
+ type: "string";
107
+ required: true;
108
+ };
109
+ };
110
+ indexes: {
111
+ primary: {
112
+ pk: {
113
+ field: string;
114
+ composite: ("entity" | "id")[];
115
+ };
116
+ sk: {
117
+ field: string;
118
+ composite: "entity"[];
119
+ };
120
+ };
121
+ byAgent: {
122
+ index: string;
123
+ pk: {
124
+ field: string;
125
+ composite: ("entity" | "agentId")[];
126
+ };
127
+ sk: {
128
+ field: string;
129
+ composite: "createdAt"[];
130
+ };
131
+ };
132
+ byRun: {
133
+ index: string;
134
+ pk: {
135
+ field: string;
136
+ composite: ("entity" | "runId")[];
137
+ };
138
+ sk: {
139
+ field: string;
140
+ composite: "createdAt"[];
141
+ };
142
+ };
143
+ byStatus: {
144
+ index: string;
145
+ pk: {
146
+ field: string;
147
+ composite: ("entity" | "status")[];
148
+ };
149
+ sk: {
150
+ field: string;
151
+ composite: "createdAt"[];
152
+ };
153
+ };
154
+ };
155
+ }, string>;
156
+ //# sourceMappingURL=background-task.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"background-task.d.ts","sourceRoot":"","sources":["../../src/entities/background-task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AA2BnC,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAnBjB,OAAO;0BAKP,MAAM;;;;;0BALN,OAAO;0BAKP,MAAM;;;;;0BALN,OAAO;0BAKP,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAoHpB,CAAC"}
@@ -106,5 +106,5 @@ export declare const evalEntity: Entity<string, string, string, {
106
106
  };
107
107
  };
108
108
  };
109
- }>;
109
+ }, string>;
110
110
  //# sourceMappingURL=eval.d.ts.map
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAmB/B,CAAC"}
@@ -75,7 +75,7 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
75
75
  };
76
76
  };
77
77
  };
78
- }>;
78
+ }, string>;
79
79
  message: import("electrodb").Entity<string, string, string, {
80
80
  model: {
81
81
  entity: string;
@@ -181,7 +181,7 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
181
181
  };
182
182
  };
183
183
  };
184
- }>;
184
+ }, string>;
185
185
  eval: import("electrodb").Entity<string, string, string, {
186
186
  model: {
187
187
  entity: string;
@@ -289,7 +289,7 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
289
289
  };
290
290
  };
291
291
  };
292
- }>;
292
+ }, string>;
293
293
  trace: import("electrodb").Entity<string, string, string, {
294
294
  model: {
295
295
  entity: string;
@@ -422,7 +422,7 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
422
422
  };
423
423
  };
424
424
  };
425
- }>;
425
+ }, string>;
426
426
  workflow_snapshot: import("electrodb").Entity<string, string, string, {
427
427
  model: {
428
428
  entity: string;
@@ -502,7 +502,7 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
502
502
  };
503
503
  };
504
504
  };
505
- }>;
505
+ }, string>;
506
506
  resource: import("electrodb").Entity<string, string, string, {
507
507
  model: {
508
508
  entity: string;
@@ -562,7 +562,7 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
562
562
  };
563
563
  };
564
564
  };
565
- }>;
565
+ }, string>;
566
566
  score: import("electrodb").Entity<string, string, string, {
567
567
  model: {
568
568
  entity: string;
@@ -817,6 +817,160 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
817
817
  };
818
818
  };
819
819
  };
820
- }>;
820
+ }, string>;
821
+ background_task: import("electrodb").Entity<string, string, string, {
822
+ model: {
823
+ entity: string;
824
+ version: string;
825
+ service: string;
826
+ };
827
+ attributes: {
828
+ id: {
829
+ type: "string";
830
+ required: true;
831
+ };
832
+ status: {
833
+ type: "string";
834
+ required: true;
835
+ };
836
+ toolName: {
837
+ type: "string";
838
+ required: true;
839
+ };
840
+ toolCallId: {
841
+ type: "string";
842
+ required: true;
843
+ };
844
+ agentId: {
845
+ type: "string";
846
+ required: true;
847
+ };
848
+ runId: {
849
+ type: "string";
850
+ required: true;
851
+ };
852
+ threadId: {
853
+ type: "string";
854
+ required: false;
855
+ };
856
+ resourceId: {
857
+ type: "string";
858
+ required: false;
859
+ };
860
+ args: {
861
+ set: (value?: unknown) => string | undefined;
862
+ get: (value?: string) => any;
863
+ type: "string";
864
+ required: true;
865
+ };
866
+ result: {
867
+ set: (value?: unknown) => string | undefined;
868
+ get: (value?: string) => any;
869
+ type: "string";
870
+ required: false;
871
+ };
872
+ error: {
873
+ set: (value?: unknown) => string | undefined;
874
+ get: (value?: string) => any;
875
+ type: "string";
876
+ required: false;
877
+ };
878
+ retryCount: {
879
+ type: "number";
880
+ required: true;
881
+ };
882
+ maxRetries: {
883
+ type: "number";
884
+ required: true;
885
+ };
886
+ timeoutMs: {
887
+ type: "number";
888
+ required: true;
889
+ };
890
+ startedAtIso: {
891
+ type: "string";
892
+ required: false;
893
+ };
894
+ completedAtIso: {
895
+ type: "string";
896
+ required: false;
897
+ };
898
+ createdAt: {
899
+ readonly type: "string";
900
+ readonly required: true;
901
+ readonly readOnly: true;
902
+ readonly set: (value?: Date | string) => string;
903
+ readonly default: () => string;
904
+ };
905
+ updatedAt: {
906
+ readonly type: "string";
907
+ readonly required: true;
908
+ readonly set: (value?: Date | string) => string;
909
+ readonly default: () => string;
910
+ };
911
+ metadata: {
912
+ readonly type: "string";
913
+ readonly set: (value?: Record<string, unknown> | string) => string | undefined;
914
+ readonly get: (value?: string) => any;
915
+ };
916
+ ttl: {
917
+ readonly type: "number";
918
+ readonly required: false;
919
+ };
920
+ expiresAt: {
921
+ readonly type: "number";
922
+ readonly required: false;
923
+ };
924
+ entity: {
925
+ type: "string";
926
+ required: true;
927
+ };
928
+ };
929
+ indexes: {
930
+ primary: {
931
+ pk: {
932
+ field: string;
933
+ composite: ("entity" | "id")[];
934
+ };
935
+ sk: {
936
+ field: string;
937
+ composite: "entity"[];
938
+ };
939
+ };
940
+ byAgent: {
941
+ index: string;
942
+ pk: {
943
+ field: string;
944
+ composite: ("entity" | "agentId")[];
945
+ };
946
+ sk: {
947
+ field: string;
948
+ composite: "createdAt"[];
949
+ };
950
+ };
951
+ byRun: {
952
+ index: string;
953
+ pk: {
954
+ field: string;
955
+ composite: ("entity" | "runId")[];
956
+ };
957
+ sk: {
958
+ field: string;
959
+ composite: "createdAt"[];
960
+ };
961
+ };
962
+ byStatus: {
963
+ index: string;
964
+ pk: {
965
+ field: string;
966
+ composite: ("entity" | "status")[];
967
+ };
968
+ sk: {
969
+ field: string;
970
+ composite: "createdAt"[];
971
+ };
972
+ };
973
+ };
974
+ }, string>;
821
975
  }>;
822
976
  //# sourceMappingURL=index.d.ts.map
@@ -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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiBpF"}
@@ -104,5 +104,5 @@ export declare const messageEntity: Entity<string, string, string, {
104
104
  };
105
105
  };
106
106
  };
107
- }>;
107
+ }, string>;
108
108
  //# sourceMappingURL=message.d.ts.map
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAyBxB,CAAC"}
@@ -58,5 +58,5 @@ export declare const resourceEntity: Entity<string, string, string, {
58
58
  };
59
59
  };
60
60
  };
61
- }>;
61
+ }, string>;
62
62
  //# sourceMappingURL=resource.d.ts.map
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAsBxB,CAAC"}
@@ -253,5 +253,5 @@ export declare const scoreEntity: Entity<string, string, string, {
253
253
  };
254
254
  };
255
255
  };
256
- }>;
256
+ }, string>;
257
257
  //# sourceMappingURL=score.d.ts.map
@@ -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;;;;;;;;;0BAoBN,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,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;;;;;0BAgBN,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM;0BAMhC,MAAM;;;;;;;;;0BAoBN,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAuExB,CAAC"}
@@ -73,5 +73,5 @@ export declare const threadEntity: Entity<string, string, string, {
73
73
  };
74
74
  };
75
75
  };
76
- }>;
76
+ }, string>;
77
77
  //# sourceMappingURL=thread.d.ts.map
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA2BxB,CAAC"}
@@ -131,5 +131,5 @@ export declare const traceEntity: Entity<string, string, string, {
131
131
  };
132
132
  };
133
133
  };
134
- }>;
134
+ }, string>;
135
135
  //# sourceMappingURL=trace.d.ts.map
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAiCxB,CAAC"}
@@ -78,5 +78,5 @@ export declare const workflowSnapshotEntity: Entity<string, string, string, {
78
78
  };
79
79
  };
80
80
  };
81
- }>;
81
+ }, string>;
82
82
  //# sourceMappingURL=workflow-snapshot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-snapshot.d.ts","sourceRoot":"","sources":["../../src/entities/workflow-snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;0BAwBf,GAAG;0BAOH,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBxB,CAAC"}
1
+ {"version":3,"file":"workflow-snapshot.d.ts","sourceRoot":"","sources":["../../src/entities/workflow-snapshot.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;0BAwBf,GAAG;0BAOH,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAqBxB,CAAC"}