@mastra/dynamodb 0.0.0-error-handler-fix-20251020202607 → 0.0.0-esbuild-bundle-worker-20260807182016

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 (55) hide show
  1. package/CHANGELOG.md +1932 -3
  2. package/LICENSE.md +15 -0
  3. package/README.md +1 -2
  4. package/dist/docs/SKILL.md +22 -0
  5. package/dist/docs/assets/SOURCE_MAP.json +6 -0
  6. package/dist/docs/references/reference-storage-dynamodb.md +284 -0
  7. package/dist/entities/background-task.d.ts +166 -0
  8. package/dist/entities/background-task.d.ts.map +1 -0
  9. package/dist/entities/eval.d.ts +9 -1
  10. package/dist/entities/eval.d.ts.map +1 -1
  11. package/dist/entities/index.d.ts +257 -12
  12. package/dist/entities/index.d.ts.map +1 -1
  13. package/dist/entities/message.d.ts +9 -1
  14. package/dist/entities/message.d.ts.map +1 -1
  15. package/dist/entities/resource.d.ts +9 -1
  16. package/dist/entities/resource.d.ts.map +1 -1
  17. package/dist/entities/score.d.ts +39 -6
  18. package/dist/entities/score.d.ts.map +1 -1
  19. package/dist/entities/thread.d.ts +9 -1
  20. package/dist/entities/thread.d.ts.map +1 -1
  21. package/dist/entities/trace.d.ts +9 -1
  22. package/dist/entities/trace.d.ts.map +1 -1
  23. package/dist/entities/utils.d.ts +90 -0
  24. package/dist/entities/utils.d.ts.map +1 -1
  25. package/dist/entities/workflow-snapshot.d.ts +9 -1
  26. package/dist/entities/workflow-snapshot.d.ts.map +1 -1
  27. package/dist/index.cjs +3071 -3185
  28. package/dist/index.cjs.map +1 -1
  29. package/dist/index.js +3060 -3181
  30. package/dist/index.js.map +1 -1
  31. package/dist/storage/db/index.d.ts +48 -0
  32. package/dist/storage/db/index.d.ts.map +1 -0
  33. package/dist/storage/domains/background-tasks/index.d.ts +17 -0
  34. package/dist/storage/domains/background-tasks/index.d.ts.map +1 -0
  35. package/dist/storage/domains/memory/index.d.ts +21 -46
  36. package/dist/storage/domains/memory/index.d.ts.map +1 -1
  37. package/dist/storage/domains/scores/index.d.ts +51 -0
  38. package/dist/storage/domains/scores/index.d.ts.map +1 -0
  39. package/dist/storage/domains/utils.d.ts +7 -0
  40. package/dist/storage/domains/utils.d.ts.map +1 -0
  41. package/dist/storage/domains/workflows/index.d.ts +26 -24
  42. package/dist/storage/domains/workflows/index.d.ts.map +1 -1
  43. package/dist/storage/index.d.ts +178 -221
  44. package/dist/storage/index.d.ts.map +1 -1
  45. package/dist/storage/ttl.d.ts +52 -0
  46. package/dist/storage/ttl.d.ts.map +1 -0
  47. package/package.json +24 -21
  48. package/dist/storage/domains/legacy-evals/index.d.ts +0 -19
  49. package/dist/storage/domains/legacy-evals/index.d.ts.map +0 -1
  50. package/dist/storage/domains/operations/index.d.ts +0 -69
  51. package/dist/storage/domains/operations/index.d.ts.map +0 -1
  52. package/dist/storage/domains/score/index.d.ts +0 -51
  53. package/dist/storage/domains/score/index.d.ts.map +0 -1
  54. package/dist/storage/domains/traces/index.d.ts +0 -28
  55. package/dist/storage/domains/traces/index.d.ts.map +0 -1
@@ -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;
@@ -67,7 +75,7 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
67
75
  };
68
76
  };
69
77
  };
70
- }>;
78
+ }, string>;
71
79
  message: import("electrodb").Entity<string, string, string, {
72
80
  model: {
73
81
  entity: string;
@@ -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;
@@ -165,7 +181,7 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
165
181
  };
166
182
  };
167
183
  };
168
- }>;
184
+ }, string>;
169
185
  eval: import("electrodb").Entity<string, string, string, {
170
186
  model: {
171
187
  entity: string;
@@ -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;
@@ -265,7 +289,7 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
265
289
  };
266
290
  };
267
291
  };
268
- }>;
292
+ }, string>;
269
293
  trace: import("electrodb").Entity<string, string, string, {
270
294
  model: {
271
295
  entity: string;
@@ -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;
@@ -390,7 +422,7 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
390
422
  };
391
423
  };
392
424
  };
393
- }>;
425
+ }, string>;
394
426
  workflow_snapshot: import("electrodb").Entity<string, string, string, {
395
427
  model: {
396
428
  entity: string;
@@ -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;
@@ -462,7 +502,7 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
462
502
  };
463
503
  };
464
504
  };
465
- }>;
505
+ }, string>;
466
506
  resource: import("electrodb").Entity<string, string, string, {
467
507
  model: {
468
508
  entity: string;
@@ -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;
@@ -514,7 +562,7 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
514
562
  };
515
563
  };
516
564
  };
517
- }>;
565
+ }, string>;
518
566
  score: import("electrodb").Entity<string, string, string, {
519
567
  model: {
520
568
  entity: string;
@@ -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;
@@ -640,6 +698,26 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
640
698
  type: "string";
641
699
  required: false;
642
700
  };
701
+ organizationId: {
702
+ type: "string";
703
+ required: false;
704
+ };
705
+ projectId: {
706
+ type: "string";
707
+ required: false;
708
+ };
709
+ batchId: {
710
+ type: "string";
711
+ required: false;
712
+ };
713
+ datasetId: {
714
+ type: "string";
715
+ required: false;
716
+ };
717
+ datasetItemId: {
718
+ type: "string";
719
+ required: false;
720
+ };
643
721
  threadId: {
644
722
  type: "string";
645
723
  required: false;
@@ -657,10 +735,13 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
657
735
  readonly set: (value?: Date | string) => string;
658
736
  readonly default: () => string;
659
737
  };
660
- metadata: {
661
- readonly type: "string";
662
- readonly set: (value?: Record<string, unknown> | string) => string | undefined;
663
- readonly get: (value?: string) => any;
738
+ ttl: {
739
+ readonly type: "number";
740
+ readonly required: false;
741
+ };
742
+ expiresAt: {
743
+ readonly type: "number";
744
+ readonly required: false;
664
745
  };
665
746
  entity: {
666
747
  type: "string";
@@ -756,6 +837,170 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
756
837
  };
757
838
  };
758
839
  };
759
- }>;
840
+ }, string>;
841
+ background_task: import("electrodb").Entity<string, string, string, {
842
+ model: {
843
+ entity: string;
844
+ version: string;
845
+ service: string;
846
+ };
847
+ attributes: {
848
+ id: {
849
+ type: "string";
850
+ required: true;
851
+ };
852
+ status: {
853
+ type: "string";
854
+ required: true;
855
+ };
856
+ toolName: {
857
+ type: "string";
858
+ required: true;
859
+ };
860
+ toolCallId: {
861
+ type: "string";
862
+ required: true;
863
+ };
864
+ agentId: {
865
+ type: "string";
866
+ required: true;
867
+ };
868
+ runId: {
869
+ type: "string";
870
+ required: true;
871
+ };
872
+ threadId: {
873
+ type: "string";
874
+ required: false;
875
+ };
876
+ resourceId: {
877
+ type: "string";
878
+ required: false;
879
+ };
880
+ args: {
881
+ set: (value?: unknown) => string | undefined;
882
+ get: (value?: string) => any;
883
+ type: "string";
884
+ required: true;
885
+ };
886
+ result: {
887
+ set: (value?: unknown) => string | undefined;
888
+ get: (value?: string) => any;
889
+ type: "string";
890
+ required: false;
891
+ };
892
+ error: {
893
+ set: (value?: unknown) => string | undefined;
894
+ get: (value?: string) => any;
895
+ type: "string";
896
+ required: false;
897
+ };
898
+ suspendPayload: {
899
+ set: (value?: unknown) => string | undefined;
900
+ get: (value?: string) => any;
901
+ type: "string";
902
+ required: false;
903
+ };
904
+ retryCount: {
905
+ type: "number";
906
+ required: true;
907
+ };
908
+ maxRetries: {
909
+ type: "number";
910
+ required: true;
911
+ };
912
+ timeoutMs: {
913
+ type: "number";
914
+ required: true;
915
+ };
916
+ startedAtIso: {
917
+ type: "string";
918
+ required: false;
919
+ };
920
+ suspendedAtIso: {
921
+ type: "string";
922
+ required: false;
923
+ };
924
+ completedAtIso: {
925
+ type: "string";
926
+ required: false;
927
+ };
928
+ createdAt: {
929
+ readonly type: "string";
930
+ readonly required: true;
931
+ readonly readOnly: true;
932
+ readonly set: (value?: Date | string) => string;
933
+ readonly default: () => string;
934
+ };
935
+ updatedAt: {
936
+ readonly type: "string";
937
+ readonly required: true;
938
+ readonly set: (value?: Date | string) => string;
939
+ readonly default: () => string;
940
+ };
941
+ metadata: {
942
+ readonly type: "string";
943
+ readonly set: (value?: Record<string, unknown> | string) => string | undefined;
944
+ readonly get: (value?: string) => any;
945
+ };
946
+ ttl: {
947
+ readonly type: "number";
948
+ readonly required: false;
949
+ };
950
+ expiresAt: {
951
+ readonly type: "number";
952
+ readonly required: false;
953
+ };
954
+ entity: {
955
+ type: "string";
956
+ required: true;
957
+ };
958
+ };
959
+ indexes: {
960
+ primary: {
961
+ pk: {
962
+ field: string;
963
+ composite: ("entity" | "id")[];
964
+ };
965
+ sk: {
966
+ field: string;
967
+ composite: "entity"[];
968
+ };
969
+ };
970
+ byAgent: {
971
+ index: string;
972
+ pk: {
973
+ field: string;
974
+ composite: ("entity" | "agentId")[];
975
+ };
976
+ sk: {
977
+ field: string;
978
+ composite: "createdAt"[];
979
+ };
980
+ };
981
+ byRun: {
982
+ index: string;
983
+ pk: {
984
+ field: string;
985
+ composite: ("entity" | "runId")[];
986
+ };
987
+ sk: {
988
+ field: string;
989
+ composite: "createdAt"[];
990
+ };
991
+ };
992
+ byStatus: {
993
+ index: string;
994
+ pk: {
995
+ field: string;
996
+ composite: ("entity" | "status")[];
997
+ };
998
+ sk: {
999
+ field: string;
1000
+ composite: "createdAt"[];
1001
+ };
1002
+ };
1003
+ };
1004
+ }, string>;
760
1005
  }>;
761
1006
  //# 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"}
@@ -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;
@@ -96,5 +104,5 @@ export declare const messageEntity: Entity<string, string, string, {
96
104
  };
97
105
  };
98
106
  };
99
- }>;
107
+ }, string>;
100
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"}
@@ -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;
@@ -50,5 +58,5 @@ export declare const resourceEntity: Entity<string, string, string, {
50
58
  };
51
59
  };
52
60
  };
53
- }>;
61
+ }, string>;
54
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"}
@@ -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;
@@ -124,6 +134,26 @@ export declare const scoreEntity: Entity<string, string, string, {
124
134
  type: "string";
125
135
  required: false;
126
136
  };
137
+ organizationId: {
138
+ type: "string";
139
+ required: false;
140
+ };
141
+ projectId: {
142
+ type: "string";
143
+ required: false;
144
+ };
145
+ batchId: {
146
+ type: "string";
147
+ required: false;
148
+ };
149
+ datasetId: {
150
+ type: "string";
151
+ required: false;
152
+ };
153
+ datasetItemId: {
154
+ type: "string";
155
+ required: false;
156
+ };
127
157
  threadId: {
128
158
  type: "string";
129
159
  required: false;
@@ -141,10 +171,13 @@ export declare const scoreEntity: Entity<string, string, string, {
141
171
  readonly set: (value?: Date | string) => string;
142
172
  readonly default: () => string;
143
173
  };
144
- metadata: {
145
- readonly type: "string";
146
- readonly set: (value?: Record<string, unknown> | string) => string | undefined;
147
- readonly get: (value?: string) => any;
174
+ ttl: {
175
+ readonly type: "number";
176
+ readonly required: false;
177
+ };
178
+ expiresAt: {
179
+ readonly type: "number";
180
+ readonly required: false;
148
181
  };
149
182
  entity: {
150
183
  type: "string";
@@ -240,5 +273,5 @@ export declare const scoreEntity: Entity<string, string, string, {
240
273
  };
241
274
  };
242
275
  };
243
- }>;
276
+ }, string>;
244
277
  //# 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;;;;;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,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,EAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA2FxB,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;
@@ -65,5 +73,5 @@ export declare const threadEntity: Entity<string, string, string, {
65
73
  };
66
74
  };
67
75
  };
68
- }>;
76
+ }, string>;
69
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"}
@@ -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;
@@ -123,5 +131,5 @@ export declare const traceEntity: Entity<string, string, string, {
123
131
  };
124
132
  };
125
133
  };
126
- }>;
134
+ }, string>;
127
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"}
@@ -1,3 +1,74 @@
1
+ /**
2
+ * Base fields shared by all entities
3
+ */
4
+ export interface BaseEntityData {
5
+ entity: string;
6
+ createdAt: string;
7
+ updatedAt: string;
8
+ metadata?: string;
9
+ ttl?: number;
10
+ expiresAt?: number;
11
+ }
12
+ export interface ThreadEntityData extends BaseEntityData {
13
+ entity: 'thread';
14
+ id: string;
15
+ resourceId: string;
16
+ title: string;
17
+ }
18
+ export interface MessageEntityData extends BaseEntityData {
19
+ entity: 'message';
20
+ id: string;
21
+ threadId?: string;
22
+ role: string;
23
+ type?: string;
24
+ content: string;
25
+ resourceId?: string;
26
+ toolCallIds?: string;
27
+ toolCallArgs?: string;
28
+ toolNames?: string;
29
+ }
30
+ export interface ResourceEntityData extends BaseEntityData {
31
+ entity: 'resource';
32
+ id: string;
33
+ workingMemory?: string;
34
+ }
35
+ export interface WorkflowSnapshotEntityData extends BaseEntityData {
36
+ entity: 'workflow_snapshot';
37
+ workflow_name: string;
38
+ run_id: string;
39
+ snapshot: string;
40
+ resourceId?: string;
41
+ }
42
+ export interface ScoreEntityData extends BaseEntityData {
43
+ entity: 'score';
44
+ id: string;
45
+ scorerId: string;
46
+ runId: string;
47
+ scorer: string;
48
+ score: number;
49
+ input: string;
50
+ output: string;
51
+ source: string;
52
+ traceId?: string;
53
+ spanId?: string;
54
+ reason?: string;
55
+ extractPrompt?: string;
56
+ analyzePrompt?: string;
57
+ reasonPrompt?: string;
58
+ generateScorePrompt?: string;
59
+ generateReasonPrompt?: string;
60
+ preprocessPrompt?: string;
61
+ extractStepResult?: string;
62
+ preprocessStepResult?: string;
63
+ analyzeStepResult?: string;
64
+ additionalContext?: string;
65
+ requestContext?: string;
66
+ entityType?: string;
67
+ entityData?: string;
68
+ entityId?: string;
69
+ resourceId?: string;
70
+ threadId?: string;
71
+ }
1
72
  export declare const baseAttributes: {
2
73
  readonly createdAt: {
3
74
  readonly type: "string";
@@ -17,5 +88,24 @@ export declare const baseAttributes: {
17
88
  readonly set: (value?: Record<string, unknown> | string) => string | undefined;
18
89
  readonly get: (value?: string) => any;
19
90
  };
91
+ /**
92
+ * TTL attribute for DynamoDB automatic item expiration.
93
+ * This is a Unix timestamp (epoch seconds) that indicates when the item should be deleted.
94
+ *
95
+ * Note: For TTL to work, you must enable TTL on your DynamoDB table
96
+ * specifying this attribute name (default: 'ttl').
97
+ */
98
+ readonly ttl: {
99
+ readonly type: "number";
100
+ readonly required: false;
101
+ };
102
+ /**
103
+ * Alternative TTL attribute with configurable name.
104
+ * Use this if you've configured TTL on your DynamoDB table with 'expiresAt' as the attribute name.
105
+ */
106
+ readonly expiresAt: {
107
+ readonly type: "number";
108
+ readonly required: false;
109
+ };
20
110
  };
21
111
  //# sourceMappingURL=utils.d.ts.map