@mastra/dynamodb 0.0.0-working-memory-per-user-20250620163010 → 0.0.0-zod-v4-compat-part-2-20250822105954

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 (54) hide show
  1. package/LICENSE.md +11 -42
  2. package/dist/entities/eval.d.ts +102 -0
  3. package/dist/entities/eval.d.ts.map +1 -0
  4. package/dist/entities/index.d.ts +732 -0
  5. package/dist/entities/index.d.ts.map +1 -0
  6. package/dist/entities/message.d.ts +100 -0
  7. package/dist/entities/message.d.ts.map +1 -0
  8. package/dist/entities/resource.d.ts +54 -0
  9. package/dist/entities/resource.d.ts.map +1 -0
  10. package/dist/entities/score.d.ts +215 -0
  11. package/dist/entities/score.d.ts.map +1 -0
  12. package/dist/entities/thread.d.ts +69 -0
  13. package/dist/entities/thread.d.ts.map +1 -0
  14. package/dist/entities/trace.d.ts +127 -0
  15. package/dist/entities/trace.d.ts.map +1 -0
  16. package/dist/entities/utils.d.ts +21 -0
  17. package/dist/entities/utils.d.ts.map +1 -0
  18. package/dist/entities/workflow-snapshot.d.ts +74 -0
  19. package/dist/entities/workflow-snapshot.d.ts.map +1 -0
  20. package/dist/index.cjs +2176 -516
  21. package/dist/index.cjs.map +1 -0
  22. package/dist/index.d.ts +2 -2
  23. package/dist/index.d.ts.map +1 -0
  24. package/dist/index.js +2163 -503
  25. package/dist/index.js.map +1 -0
  26. package/dist/storage/domains/legacy-evals/index.d.ts +19 -0
  27. package/dist/storage/domains/legacy-evals/index.d.ts.map +1 -0
  28. package/dist/storage/domains/memory/index.d.ts +77 -0
  29. package/dist/storage/domains/memory/index.d.ts.map +1 -0
  30. package/dist/storage/domains/operations/index.d.ts +69 -0
  31. package/dist/storage/domains/operations/index.d.ts.map +1 -0
  32. package/dist/storage/domains/score/index.d.ts +42 -0
  33. package/dist/storage/domains/score/index.d.ts.map +1 -0
  34. package/dist/storage/domains/traces/index.d.ts +28 -0
  35. package/dist/storage/domains/traces/index.d.ts.map +1 -0
  36. package/dist/storage/domains/workflows/index.d.ts +32 -0
  37. package/dist/storage/domains/workflows/index.d.ts.map +1 -0
  38. package/dist/storage/index.d.ts +220 -0
  39. package/dist/storage/index.d.ts.map +1 -0
  40. package/package.json +12 -12
  41. package/src/entities/index.ts +5 -1
  42. package/src/entities/resource.ts +57 -0
  43. package/src/entities/score.ts +285 -0
  44. package/src/storage/domains/legacy-evals/index.ts +243 -0
  45. package/src/storage/domains/memory/index.ts +894 -0
  46. package/src/storage/domains/operations/index.ts +433 -0
  47. package/src/storage/domains/score/index.ts +285 -0
  48. package/src/storage/domains/traces/index.ts +286 -0
  49. package/src/storage/domains/workflows/index.ts +297 -0
  50. package/src/storage/index.test.ts +1347 -1216
  51. package/src/storage/index.ts +211 -881
  52. package/dist/_tsup-dts-rollup.d.cts +0 -1157
  53. package/dist/_tsup-dts-rollup.d.ts +0 -1157
  54. package/dist/index.d.cts +0 -2
@@ -0,0 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgBpF"}
@@ -0,0 +1,100 @@
1
+ import { Entity } from 'electrodb';
2
+ export declare const messageEntity: 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
+ threadId: {
14
+ type: "string";
15
+ required: true;
16
+ };
17
+ content: {
18
+ type: "string";
19
+ required: true;
20
+ set: (value?: string | void | undefined) => string | void;
21
+ get: (value?: string) => any;
22
+ };
23
+ role: {
24
+ type: "string";
25
+ required: true;
26
+ };
27
+ type: {
28
+ type: "string";
29
+ default: string;
30
+ };
31
+ resourceId: {
32
+ type: "string";
33
+ required: false;
34
+ };
35
+ toolCallIds: {
36
+ type: "string";
37
+ required: false;
38
+ set: (value?: string[] | string) => string | undefined;
39
+ get: (value?: string) => any;
40
+ };
41
+ toolCallArgs: {
42
+ type: "string";
43
+ required: false;
44
+ set: (value?: Record<string, unknown>[] | string) => string | undefined;
45
+ get: (value?: string) => any;
46
+ };
47
+ toolNames: {
48
+ type: "string";
49
+ required: false;
50
+ set: (value?: string[] | string) => string | undefined;
51
+ get: (value?: string) => any;
52
+ };
53
+ createdAt: {
54
+ readonly type: "string";
55
+ readonly required: true;
56
+ readonly readOnly: true;
57
+ readonly set: (value?: Date | string) => string;
58
+ readonly default: () => string;
59
+ };
60
+ updatedAt: {
61
+ readonly type: "string";
62
+ readonly required: true;
63
+ readonly set: (value?: Date | string) => string;
64
+ readonly default: () => string;
65
+ };
66
+ metadata: {
67
+ readonly type: "string";
68
+ readonly set: (value?: Record<string, unknown> | string) => string | undefined;
69
+ readonly get: (value?: string) => any;
70
+ };
71
+ entity: {
72
+ type: "string";
73
+ required: true;
74
+ };
75
+ };
76
+ indexes: {
77
+ primary: {
78
+ pk: {
79
+ field: string;
80
+ composite: ("entity" | "id")[];
81
+ };
82
+ sk: {
83
+ field: string;
84
+ composite: "entity"[];
85
+ };
86
+ };
87
+ byThread: {
88
+ index: string;
89
+ pk: {
90
+ field: string;
91
+ composite: ("entity" | "threadId")[];
92
+ };
93
+ sk: {
94
+ field: string;
95
+ composite: "createdAt"[];
96
+ };
97
+ };
98
+ };
99
+ }>;
100
+ //# sourceMappingURL=message.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,54 @@
1
+ import { Entity } from 'electrodb';
2
+ export declare const resourceEntity: 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
+ workingMemory: {
14
+ type: "string";
15
+ required: false;
16
+ };
17
+ metadata: {
18
+ type: "string";
19
+ required: false;
20
+ set: (value?: string | void | undefined) => string | void;
21
+ get: (value?: string) => any;
22
+ };
23
+ createdAt: {
24
+ readonly type: "string";
25
+ readonly required: true;
26
+ readonly readOnly: true;
27
+ readonly set: (value?: Date | string) => string;
28
+ readonly default: () => string;
29
+ };
30
+ updatedAt: {
31
+ readonly type: "string";
32
+ readonly required: true;
33
+ readonly set: (value?: Date | string) => string;
34
+ readonly default: () => string;
35
+ };
36
+ entity: {
37
+ type: "string";
38
+ required: true;
39
+ };
40
+ };
41
+ indexes: {
42
+ primary: {
43
+ pk: {
44
+ field: string;
45
+ composite: ("entity" | "id")[];
46
+ };
47
+ sk: {
48
+ field: string;
49
+ composite: "entity"[];
50
+ };
51
+ };
52
+ };
53
+ }>;
54
+ //# sourceMappingURL=resource.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,215 @@
1
+ import { Entity } from 'electrodb';
2
+ export declare const scoreEntity: 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
+ scorerId: {
14
+ type: "string";
15
+ required: true;
16
+ };
17
+ traceId: {
18
+ type: "string";
19
+ required: false;
20
+ };
21
+ runId: {
22
+ type: "string";
23
+ required: true;
24
+ };
25
+ scorer: {
26
+ type: "string";
27
+ required: true;
28
+ set: (value?: Record<string, unknown> | string) => string | undefined;
29
+ get: (value?: string) => any;
30
+ };
31
+ extractStepResult: {
32
+ type: "string";
33
+ required: false;
34
+ set: (value?: Record<string, unknown> | string) => string | undefined;
35
+ get: (value?: string) => any;
36
+ };
37
+ analyzeStepResult: {
38
+ type: "string";
39
+ required: false;
40
+ set: (value?: Record<string, unknown> | string) => string | undefined;
41
+ get: (value?: string) => any;
42
+ };
43
+ score: {
44
+ type: "number";
45
+ required: true;
46
+ };
47
+ reason: {
48
+ type: "string";
49
+ required: false;
50
+ };
51
+ extractPrompt: {
52
+ type: "string";
53
+ required: false;
54
+ };
55
+ analyzePrompt: {
56
+ type: "string";
57
+ required: false;
58
+ };
59
+ reasonPrompt: {
60
+ type: "string";
61
+ required: false;
62
+ };
63
+ input: {
64
+ type: "string";
65
+ required: true;
66
+ set: (value?: Record<string, unknown> | string) => string | undefined;
67
+ get: (value?: string) => any;
68
+ };
69
+ output: {
70
+ type: "string";
71
+ required: true;
72
+ set: (value?: Record<string, unknown> | string) => string | undefined;
73
+ get: (value?: string) => any;
74
+ };
75
+ additionalContext: {
76
+ type: "string";
77
+ required: false;
78
+ set: (value?: Record<string, unknown> | string) => string | undefined;
79
+ get: (value?: string) => any;
80
+ };
81
+ runtimeContext: {
82
+ type: "string";
83
+ required: false;
84
+ set: (value?: Record<string, unknown> | string) => string | undefined;
85
+ get: (value?: string) => any;
86
+ };
87
+ entityType: {
88
+ type: "string";
89
+ required: false;
90
+ };
91
+ entityData: {
92
+ type: "string";
93
+ required: false;
94
+ set: (value?: Record<string, unknown> | string) => string | undefined;
95
+ get: (value?: string) => any;
96
+ };
97
+ entityId: {
98
+ type: "string";
99
+ required: false;
100
+ };
101
+ source: {
102
+ type: "string";
103
+ required: true;
104
+ };
105
+ resourceId: {
106
+ type: "string";
107
+ required: false;
108
+ };
109
+ threadId: {
110
+ type: "string";
111
+ required: false;
112
+ };
113
+ createdAt: {
114
+ readonly type: "string";
115
+ readonly required: true;
116
+ readonly readOnly: true;
117
+ readonly set: (value?: Date | string) => string;
118
+ readonly default: () => string;
119
+ };
120
+ updatedAt: {
121
+ readonly type: "string";
122
+ readonly required: true;
123
+ readonly set: (value?: Date | string) => string;
124
+ readonly default: () => string;
125
+ };
126
+ metadata: {
127
+ readonly type: "string";
128
+ readonly set: (value?: Record<string, unknown> | string) => string | undefined;
129
+ readonly get: (value?: string) => any;
130
+ };
131
+ entity: {
132
+ type: "string";
133
+ required: true;
134
+ };
135
+ };
136
+ indexes: {
137
+ primary: {
138
+ pk: {
139
+ field: string;
140
+ composite: ("entity" | "id")[];
141
+ };
142
+ sk: {
143
+ field: string;
144
+ composite: "entity"[];
145
+ };
146
+ };
147
+ byScorer: {
148
+ index: string;
149
+ pk: {
150
+ field: string;
151
+ composite: ("entity" | "scorerId")[];
152
+ };
153
+ sk: {
154
+ field: string;
155
+ composite: "createdAt"[];
156
+ };
157
+ };
158
+ byRun: {
159
+ index: string;
160
+ pk: {
161
+ field: string;
162
+ composite: ("entity" | "runId")[];
163
+ };
164
+ sk: {
165
+ field: string;
166
+ composite: "createdAt"[];
167
+ };
168
+ };
169
+ byTrace: {
170
+ index: string;
171
+ pk: {
172
+ field: string;
173
+ composite: ("entity" | "traceId")[];
174
+ };
175
+ sk: {
176
+ field: string;
177
+ composite: "createdAt"[];
178
+ };
179
+ };
180
+ byEntityData: {
181
+ index: string;
182
+ pk: {
183
+ field: string;
184
+ composite: ("entity" | "entityId")[];
185
+ };
186
+ sk: {
187
+ field: string;
188
+ composite: "createdAt"[];
189
+ };
190
+ };
191
+ byResource: {
192
+ index: string;
193
+ pk: {
194
+ field: string;
195
+ composite: ("entity" | "resourceId")[];
196
+ };
197
+ sk: {
198
+ field: string;
199
+ composite: "createdAt"[];
200
+ };
201
+ };
202
+ byThread: {
203
+ index: string;
204
+ pk: {
205
+ field: string;
206
+ composite: ("entity" | "threadId")[];
207
+ };
208
+ sk: {
209
+ field: string;
210
+ composite: "createdAt"[];
211
+ };
212
+ };
213
+ };
214
+ }>;
215
+ //# sourceMappingURL=score.d.ts.map
@@ -0,0 +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;;;;;;;;;;;;;;;;;;;;;;;;;;0BA+BJ,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;;;;;;;;;;;;;;;;;;;;;;;;;0BAoCN,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,GAAG,MAAM;0BAMhC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkExB,CAAC"}
@@ -0,0 +1,69 @@
1
+ import { Entity } from 'electrodb';
2
+ export declare const threadEntity: 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
+ resourceId: {
14
+ type: "string";
15
+ required: true;
16
+ };
17
+ title: {
18
+ type: "string";
19
+ required: true;
20
+ };
21
+ metadata: {
22
+ type: "string";
23
+ required: false;
24
+ set: (value?: Record<string, unknown> | string) => string | undefined;
25
+ get: (value?: string) => any;
26
+ };
27
+ createdAt: {
28
+ readonly type: "string";
29
+ readonly required: true;
30
+ readonly readOnly: true;
31
+ readonly set: (value?: Date | string) => string;
32
+ readonly default: () => string;
33
+ };
34
+ updatedAt: {
35
+ readonly type: "string";
36
+ readonly required: true;
37
+ readonly set: (value?: Date | string) => string;
38
+ readonly default: () => string;
39
+ };
40
+ entity: {
41
+ type: "string";
42
+ required: true;
43
+ };
44
+ };
45
+ indexes: {
46
+ primary: {
47
+ pk: {
48
+ field: string;
49
+ composite: ("entity" | "id")[];
50
+ };
51
+ sk: {
52
+ field: string;
53
+ composite: "id"[];
54
+ };
55
+ };
56
+ byResource: {
57
+ index: string;
58
+ pk: {
59
+ field: string;
60
+ composite: ("entity" | "resourceId")[];
61
+ };
62
+ sk: {
63
+ field: string;
64
+ composite: "createdAt"[];
65
+ };
66
+ };
67
+ };
68
+ }>;
69
+ //# sourceMappingURL=thread.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,127 @@
1
+ import { Entity } from 'electrodb';
2
+ export declare const traceEntity: 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
+ parentSpanId: {
14
+ type: "string";
15
+ required: false;
16
+ };
17
+ name: {
18
+ type: "string";
19
+ required: true;
20
+ };
21
+ traceId: {
22
+ type: "string";
23
+ required: true;
24
+ };
25
+ scope: {
26
+ type: "string";
27
+ required: true;
28
+ };
29
+ kind: {
30
+ type: "number";
31
+ required: true;
32
+ };
33
+ attributes: {
34
+ type: "string";
35
+ required: false;
36
+ set: (value?: any) => any;
37
+ get: (value?: string) => any;
38
+ };
39
+ status: {
40
+ type: "string";
41
+ required: false;
42
+ set: (value?: any) => any;
43
+ get: (value?: string) => string | undefined;
44
+ };
45
+ events: {
46
+ type: "string";
47
+ required: false;
48
+ set: (value?: any) => any;
49
+ get: (value?: string) => string | undefined;
50
+ };
51
+ links: {
52
+ type: "string";
53
+ required: false;
54
+ set: (value?: any) => any;
55
+ get: (value?: string) => string | undefined;
56
+ };
57
+ other: {
58
+ type: "string";
59
+ required: false;
60
+ };
61
+ startTime: {
62
+ type: "number";
63
+ required: true;
64
+ };
65
+ endTime: {
66
+ type: "number";
67
+ required: true;
68
+ };
69
+ createdAt: {
70
+ readonly type: "string";
71
+ readonly required: true;
72
+ readonly readOnly: true;
73
+ readonly set: (value?: Date | string) => string;
74
+ readonly default: () => string;
75
+ };
76
+ updatedAt: {
77
+ readonly type: "string";
78
+ readonly required: true;
79
+ readonly set: (value?: Date | string) => string;
80
+ readonly default: () => string;
81
+ };
82
+ metadata: {
83
+ readonly type: "string";
84
+ readonly set: (value?: Record<string, unknown> | string) => string | undefined;
85
+ readonly get: (value?: string) => any;
86
+ };
87
+ entity: {
88
+ type: "string";
89
+ required: true;
90
+ };
91
+ };
92
+ indexes: {
93
+ primary: {
94
+ pk: {
95
+ field: string;
96
+ composite: ("entity" | "id")[];
97
+ };
98
+ sk: {
99
+ field: string;
100
+ composite: never[];
101
+ };
102
+ };
103
+ byName: {
104
+ index: string;
105
+ pk: {
106
+ field: string;
107
+ composite: ("entity" | "name")[];
108
+ };
109
+ sk: {
110
+ field: string;
111
+ composite: "startTime"[];
112
+ };
113
+ };
114
+ byScope: {
115
+ index: string;
116
+ pk: {
117
+ field: string;
118
+ composite: ("entity" | "scope")[];
119
+ };
120
+ sk: {
121
+ field: string;
122
+ composite: "startTime"[];
123
+ };
124
+ };
125
+ };
126
+ }>;
127
+ //# sourceMappingURL=trace.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,21 @@
1
+ export declare const baseAttributes: {
2
+ readonly createdAt: {
3
+ readonly type: "string";
4
+ readonly required: true;
5
+ readonly readOnly: true;
6
+ readonly set: (value?: Date | string) => string;
7
+ readonly default: () => string;
8
+ };
9
+ readonly updatedAt: {
10
+ readonly type: "string";
11
+ readonly required: true;
12
+ readonly set: (value?: Date | string) => string;
13
+ readonly default: () => string;
14
+ };
15
+ readonly metadata: {
16
+ readonly type: "string";
17
+ readonly set: (value?: Record<string, unknown> | string) => string | undefined;
18
+ readonly get: (value?: string) => any;
19
+ };
20
+ };
21
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/entities/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;;+BAMT,IAAI,GAAG,MAAM;;;;;;+BAab,IAAI,GAAG,MAAM;;;;;+BAYb,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM;+BAOhC,MAAM;;CAYd,CAAC"}
@@ -0,0 +1,74 @@
1
+ import { Entity } from 'electrodb';
2
+ export declare const workflowSnapshotEntity: Entity<string, string, string, {
3
+ model: {
4
+ entity: string;
5
+ version: string;
6
+ service: string;
7
+ };
8
+ attributes: {
9
+ workflow_name: {
10
+ type: "string";
11
+ required: true;
12
+ };
13
+ run_id: {
14
+ type: "string";
15
+ required: true;
16
+ };
17
+ snapshot: {
18
+ type: "string";
19
+ required: true;
20
+ set: (value?: any) => any;
21
+ get: (value?: string) => any;
22
+ };
23
+ resourceId: {
24
+ type: "string";
25
+ required: false;
26
+ };
27
+ createdAt: {
28
+ readonly type: "string";
29
+ readonly required: true;
30
+ readonly readOnly: true;
31
+ readonly set: (value?: Date | string) => string;
32
+ readonly default: () => string;
33
+ };
34
+ updatedAt: {
35
+ readonly type: "string";
36
+ readonly required: true;
37
+ readonly set: (value?: Date | string) => string;
38
+ readonly default: () => string;
39
+ };
40
+ metadata: {
41
+ readonly type: "string";
42
+ readonly set: (value?: Record<string, unknown> | string) => string | undefined;
43
+ readonly get: (value?: string) => any;
44
+ };
45
+ entity: {
46
+ type: "string";
47
+ required: true;
48
+ };
49
+ };
50
+ indexes: {
51
+ primary: {
52
+ pk: {
53
+ field: string;
54
+ composite: ("entity" | "workflow_name")[];
55
+ };
56
+ sk: {
57
+ field: string;
58
+ composite: "run_id"[];
59
+ };
60
+ };
61
+ gsi2: {
62
+ index: string;
63
+ pk: {
64
+ field: string;
65
+ composite: ("entity" | "run_id")[];
66
+ };
67
+ sk: {
68
+ field: string;
69
+ composite: "workflow_name"[];
70
+ };
71
+ };
72
+ };
73
+ }>;
74
+ //# sourceMappingURL=workflow-snapshot.d.ts.map
@@ -0,0 +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"}