@mastra/dynamodb 1.3.2 → 1.3.3-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.
@@ -8,49 +8,49 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
8
8
  service: string;
9
9
  };
10
10
  attributes: {
11
- id: {
12
- type: "string";
13
- required: true;
14
- };
15
- resourceId: {
16
- type: "string";
17
- required: true;
18
- };
19
- title: {
20
- type: "string";
21
- required: true;
22
- };
23
- metadata: {
24
- type: "string";
25
- required: false;
26
- set: (value?: Record<string, unknown> | string) => string | undefined;
27
- get: (value?: string) => any;
28
- };
29
11
  createdAt: {
30
- readonly type: "string";
12
+ readonly type: 'string';
31
13
  readonly required: true;
32
14
  readonly readOnly: true;
33
15
  readonly set: (value?: Date | string) => string;
34
16
  readonly default: () => string;
35
17
  };
36
18
  updatedAt: {
37
- readonly type: "string";
19
+ readonly type: 'string';
38
20
  readonly required: true;
39
21
  readonly set: (value?: Date | string) => string;
40
22
  readonly default: () => string;
41
23
  };
42
24
  ttl: {
43
- readonly type: "number";
25
+ readonly type: 'number';
44
26
  readonly required: false;
45
27
  };
46
28
  expiresAt: {
47
- readonly type: "number";
29
+ readonly type: 'number';
48
30
  readonly required: false;
49
31
  };
50
32
  entity: {
51
33
  type: "string";
52
34
  required: true;
53
35
  };
36
+ id: {
37
+ type: "string";
38
+ required: true;
39
+ };
40
+ resourceId: {
41
+ type: "string";
42
+ required: true;
43
+ };
44
+ title: {
45
+ type: "string";
46
+ required: true;
47
+ };
48
+ metadata: {
49
+ type: "string";
50
+ required: false;
51
+ set: (value?: Record<string, unknown> | string) => string | undefined;
52
+ get: (value?: string) => any;
53
+ };
54
54
  };
55
55
  indexes: {
56
56
  primary: {
@@ -83,6 +83,36 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
83
83
  service: string;
84
84
  };
85
85
  attributes: {
86
+ createdAt: {
87
+ readonly type: 'string';
88
+ readonly required: true;
89
+ readonly readOnly: true;
90
+ readonly set: (value?: Date | string) => string;
91
+ readonly default: () => string;
92
+ };
93
+ updatedAt: {
94
+ readonly type: 'string';
95
+ readonly required: true;
96
+ readonly set: (value?: Date | string) => string;
97
+ readonly default: () => string;
98
+ };
99
+ metadata: {
100
+ readonly type: 'string';
101
+ readonly set: (value?: Record<string, unknown> | string) => string | undefined;
102
+ readonly get: (value?: string) => any;
103
+ };
104
+ ttl: {
105
+ readonly type: 'number';
106
+ readonly required: false;
107
+ };
108
+ expiresAt: {
109
+ readonly type: 'number';
110
+ readonly required: false;
111
+ };
112
+ entity: {
113
+ type: "string";
114
+ required: true;
115
+ };
86
116
  id: {
87
117
  type: "string";
88
118
  required: true;
@@ -94,7 +124,7 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
94
124
  content: {
95
125
  type: "string";
96
126
  required: true;
97
- set: (value?: string | void | undefined) => string | void;
127
+ set: (value?: void | string | undefined) => void | string;
98
128
  get: (value?: string) => any;
99
129
  };
100
130
  role: {
@@ -127,36 +157,6 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
127
157
  set: (value?: string[] | string) => string | undefined;
128
158
  get: (value?: string) => any;
129
159
  };
130
- createdAt: {
131
- readonly type: "string";
132
- readonly required: true;
133
- readonly readOnly: true;
134
- readonly set: (value?: Date | string) => string;
135
- readonly default: () => string;
136
- };
137
- updatedAt: {
138
- readonly type: "string";
139
- readonly required: true;
140
- readonly set: (value?: Date | string) => string;
141
- readonly default: () => string;
142
- };
143
- metadata: {
144
- readonly type: "string";
145
- readonly set: (value?: Record<string, unknown> | string) => string | undefined;
146
- readonly get: (value?: string) => any;
147
- };
148
- ttl: {
149
- readonly type: "number";
150
- readonly required: false;
151
- };
152
- expiresAt: {
153
- readonly type: "number";
154
- readonly required: false;
155
- };
156
- entity: {
157
- type: "string";
158
- required: true;
159
- };
160
160
  };
161
161
  indexes: {
162
162
  primary: {
@@ -189,6 +189,36 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
189
189
  service: string;
190
190
  };
191
191
  attributes: {
192
+ createdAt: {
193
+ readonly type: 'string';
194
+ readonly required: true;
195
+ readonly readOnly: true;
196
+ readonly set: (value?: Date | string) => string;
197
+ readonly default: () => string;
198
+ };
199
+ updatedAt: {
200
+ readonly type: 'string';
201
+ readonly required: true;
202
+ readonly set: (value?: Date | string) => string;
203
+ readonly default: () => string;
204
+ };
205
+ metadata: {
206
+ readonly type: 'string';
207
+ readonly set: (value?: Record<string, unknown> | string) => string | undefined;
208
+ readonly get: (value?: string) => any;
209
+ };
210
+ ttl: {
211
+ readonly type: 'number';
212
+ readonly required: false;
213
+ };
214
+ expiresAt: {
215
+ readonly type: 'number';
216
+ readonly required: false;
217
+ };
218
+ entity: {
219
+ type: "string";
220
+ required: true;
221
+ };
192
222
  input: {
193
223
  type: "string";
194
224
  required: true;
@@ -235,36 +265,6 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
235
265
  default: () => string;
236
266
  set: (value?: Date | string) => string;
237
267
  };
238
- createdAt: {
239
- readonly type: "string";
240
- readonly required: true;
241
- readonly readOnly: true;
242
- readonly set: (value?: Date | string) => string;
243
- readonly default: () => string;
244
- };
245
- updatedAt: {
246
- readonly type: "string";
247
- readonly required: true;
248
- readonly set: (value?: Date | string) => string;
249
- readonly default: () => string;
250
- };
251
- metadata: {
252
- readonly type: "string";
253
- readonly set: (value?: Record<string, unknown> | string) => string | undefined;
254
- readonly get: (value?: string) => any;
255
- };
256
- ttl: {
257
- readonly type: "number";
258
- readonly required: false;
259
- };
260
- expiresAt: {
261
- readonly type: "number";
262
- readonly required: false;
263
- };
264
- entity: {
265
- type: "string";
266
- required: true;
267
- };
268
268
  };
269
269
  indexes: {
270
270
  primary: {
@@ -281,7 +281,7 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
281
281
  index: string;
282
282
  pk: {
283
283
  field: string;
284
- composite: ("entity" | "agent_name")[];
284
+ composite: ("agent_name" | "entity")[];
285
285
  };
286
286
  sk: {
287
287
  field: string;
@@ -297,6 +297,36 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
297
297
  service: string;
298
298
  };
299
299
  attributes: {
300
+ createdAt: {
301
+ readonly type: 'string';
302
+ readonly required: true;
303
+ readonly readOnly: true;
304
+ readonly set: (value?: Date | string) => string;
305
+ readonly default: () => string;
306
+ };
307
+ updatedAt: {
308
+ readonly type: 'string';
309
+ readonly required: true;
310
+ readonly set: (value?: Date | string) => string;
311
+ readonly default: () => string;
312
+ };
313
+ metadata: {
314
+ readonly type: 'string';
315
+ readonly set: (value?: Record<string, unknown> | string) => string | undefined;
316
+ readonly get: (value?: string) => any;
317
+ };
318
+ ttl: {
319
+ readonly type: 'number';
320
+ readonly required: false;
321
+ };
322
+ expiresAt: {
323
+ readonly type: 'number';
324
+ readonly required: false;
325
+ };
326
+ entity: {
327
+ type: "string";
328
+ required: true;
329
+ };
300
330
  id: {
301
331
  type: "string";
302
332
  required: true;
@@ -357,36 +387,6 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
357
387
  type: "number";
358
388
  required: true;
359
389
  };
360
- createdAt: {
361
- readonly type: "string";
362
- readonly required: true;
363
- readonly readOnly: true;
364
- readonly set: (value?: Date | string) => string;
365
- readonly default: () => string;
366
- };
367
- updatedAt: {
368
- readonly type: "string";
369
- readonly required: true;
370
- readonly set: (value?: Date | string) => string;
371
- readonly default: () => string;
372
- };
373
- metadata: {
374
- readonly type: "string";
375
- readonly set: (value?: Record<string, unknown> | string) => string | undefined;
376
- readonly get: (value?: string) => any;
377
- };
378
- ttl: {
379
- readonly type: "number";
380
- readonly required: false;
381
- };
382
- expiresAt: {
383
- readonly type: "number";
384
- readonly required: false;
385
- };
386
- entity: {
387
- type: "string";
388
- required: true;
389
- };
390
390
  };
391
391
  indexes: {
392
392
  primary: {
@@ -430,54 +430,54 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
430
430
  service: string;
431
431
  };
432
432
  attributes: {
433
- workflow_name: {
434
- type: "string";
435
- required: true;
436
- };
437
- run_id: {
438
- type: "string";
439
- required: true;
440
- };
441
- snapshot: {
442
- type: "string";
443
- required: true;
444
- set: (value?: any) => any;
445
- get: (value?: string) => any;
446
- };
447
- resourceId: {
448
- type: "string";
449
- required: false;
450
- };
451
433
  createdAt: {
452
- readonly type: "string";
434
+ readonly type: 'string';
453
435
  readonly required: true;
454
436
  readonly readOnly: true;
455
437
  readonly set: (value?: Date | string) => string;
456
438
  readonly default: () => string;
457
439
  };
458
440
  updatedAt: {
459
- readonly type: "string";
441
+ readonly type: 'string';
460
442
  readonly required: true;
461
443
  readonly set: (value?: Date | string) => string;
462
444
  readonly default: () => string;
463
445
  };
464
446
  metadata: {
465
- readonly type: "string";
447
+ readonly type: 'string';
466
448
  readonly set: (value?: Record<string, unknown> | string) => string | undefined;
467
449
  readonly get: (value?: string) => any;
468
450
  };
469
451
  ttl: {
470
- readonly type: "number";
452
+ readonly type: 'number';
471
453
  readonly required: false;
472
454
  };
473
455
  expiresAt: {
474
- readonly type: "number";
456
+ readonly type: 'number';
475
457
  readonly required: false;
476
458
  };
477
459
  entity: {
478
460
  type: "string";
479
461
  required: true;
480
462
  };
463
+ workflow_name: {
464
+ type: "string";
465
+ required: true;
466
+ };
467
+ run_id: {
468
+ type: "string";
469
+ required: true;
470
+ };
471
+ snapshot: {
472
+ type: "string";
473
+ required: true;
474
+ set: (value?: any) => any;
475
+ get: (value?: string) => any;
476
+ };
477
+ resourceId: {
478
+ type: "string";
479
+ required: false;
480
+ };
481
481
  };
482
482
  indexes: {
483
483
  primary: {
@@ -510,45 +510,45 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
510
510
  service: string;
511
511
  };
512
512
  attributes: {
513
- id: {
514
- type: "string";
515
- required: true;
516
- };
517
- workingMemory: {
518
- type: "string";
519
- required: false;
520
- };
521
- metadata: {
522
- type: "string";
523
- required: false;
524
- set: (value?: string | void | undefined) => string | void;
525
- get: (value?: string) => any;
526
- };
527
513
  createdAt: {
528
- readonly type: "string";
514
+ readonly type: 'string';
529
515
  readonly required: true;
530
516
  readonly readOnly: true;
531
517
  readonly set: (value?: Date | string) => string;
532
518
  readonly default: () => string;
533
519
  };
534
520
  updatedAt: {
535
- readonly type: "string";
521
+ readonly type: 'string';
536
522
  readonly required: true;
537
523
  readonly set: (value?: Date | string) => string;
538
524
  readonly default: () => string;
539
525
  };
540
526
  ttl: {
541
- readonly type: "number";
527
+ readonly type: 'number';
542
528
  readonly required: false;
543
529
  };
544
530
  expiresAt: {
545
- readonly type: "number";
531
+ readonly type: 'number';
546
532
  readonly required: false;
547
533
  };
548
534
  entity: {
549
535
  type: "string";
550
536
  required: true;
551
537
  };
538
+ id: {
539
+ type: "string";
540
+ required: true;
541
+ };
542
+ workingMemory: {
543
+ type: "string";
544
+ required: false;
545
+ };
546
+ metadata: {
547
+ type: "string";
548
+ required: false;
549
+ set: (value?: void | string | undefined) => void | string;
550
+ get: (value?: string) => any;
551
+ };
552
552
  };
553
553
  indexes: {
554
554
  primary: {
@@ -570,6 +570,31 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
570
570
  service: string;
571
571
  };
572
572
  attributes: {
573
+ createdAt: {
574
+ readonly type: 'string';
575
+ readonly required: true;
576
+ readonly readOnly: true;
577
+ readonly set: (value?: Date | string) => string;
578
+ readonly default: () => string;
579
+ };
580
+ updatedAt: {
581
+ readonly type: 'string';
582
+ readonly required: true;
583
+ readonly set: (value?: Date | string) => string;
584
+ readonly default: () => string;
585
+ };
586
+ ttl: {
587
+ readonly type: 'number';
588
+ readonly required: false;
589
+ };
590
+ expiresAt: {
591
+ readonly type: 'number';
592
+ readonly required: false;
593
+ };
594
+ entity: {
595
+ type: "string";
596
+ required: true;
597
+ };
573
598
  id: {
574
599
  type: "string";
575
600
  required: true;
@@ -722,31 +747,6 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
722
747
  type: "string";
723
748
  required: false;
724
749
  };
725
- createdAt: {
726
- readonly type: "string";
727
- readonly required: true;
728
- readonly readOnly: true;
729
- readonly set: (value?: Date | string) => string;
730
- readonly default: () => string;
731
- };
732
- updatedAt: {
733
- readonly type: "string";
734
- readonly required: true;
735
- readonly set: (value?: Date | string) => string;
736
- readonly default: () => string;
737
- };
738
- ttl: {
739
- readonly type: "number";
740
- readonly required: false;
741
- };
742
- expiresAt: {
743
- readonly type: "number";
744
- readonly required: false;
745
- };
746
- entity: {
747
- type: "string";
748
- required: true;
749
- };
750
750
  };
751
751
  indexes: {
752
752
  primary: {
@@ -829,7 +829,7 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
829
829
  index: string;
830
830
  pk: {
831
831
  field: string;
832
- composite: ("entity" | "traceId" | "spanId")[];
832
+ composite: ("entity" | "spanId" | "traceId")[];
833
833
  };
834
834
  sk: {
835
835
  field: string;
@@ -845,6 +845,36 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
845
845
  service: string;
846
846
  };
847
847
  attributes: {
848
+ createdAt: {
849
+ readonly type: 'string';
850
+ readonly required: true;
851
+ readonly readOnly: true;
852
+ readonly set: (value?: Date | string) => string;
853
+ readonly default: () => string;
854
+ };
855
+ updatedAt: {
856
+ readonly type: 'string';
857
+ readonly required: true;
858
+ readonly set: (value?: Date | string) => string;
859
+ readonly default: () => string;
860
+ };
861
+ metadata: {
862
+ readonly type: 'string';
863
+ readonly set: (value?: Record<string, unknown> | string) => string | undefined;
864
+ readonly get: (value?: string) => any;
865
+ };
866
+ ttl: {
867
+ readonly type: 'number';
868
+ readonly required: false;
869
+ };
870
+ expiresAt: {
871
+ readonly type: 'number';
872
+ readonly required: false;
873
+ };
874
+ entity: {
875
+ type: "string";
876
+ required: true;
877
+ };
848
878
  id: {
849
879
  type: "string";
850
880
  required: true;
@@ -925,36 +955,6 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
925
955
  type: "string";
926
956
  required: false;
927
957
  };
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
958
  };
959
959
  indexes: {
960
960
  primary: {
@@ -971,7 +971,7 @@ export declare function getElectroDbService(client: DynamoDBDocumentClient, tabl
971
971
  index: string;
972
972
  pk: {
973
973
  field: string;
974
- composite: ("entity" | "agentId")[];
974
+ composite: ("agentId" | "entity")[];
975
975
  };
976
976
  sk: {
977
977
  field: string;
@@ -6,6 +6,36 @@ export declare const messageEntity: Entity<string, string, string, {
6
6
  service: string;
7
7
  };
8
8
  attributes: {
9
+ createdAt: {
10
+ readonly type: 'string';
11
+ readonly required: true;
12
+ readonly readOnly: true;
13
+ readonly set: (value?: Date | string) => string;
14
+ readonly default: () => string;
15
+ };
16
+ updatedAt: {
17
+ readonly type: 'string';
18
+ readonly required: true;
19
+ readonly set: (value?: Date | string) => string;
20
+ readonly default: () => string;
21
+ };
22
+ metadata: {
23
+ readonly type: 'string';
24
+ readonly set: (value?: Record<string, unknown> | string) => string | undefined;
25
+ readonly get: (value?: string) => any;
26
+ };
27
+ ttl: {
28
+ readonly type: 'number';
29
+ readonly required: false;
30
+ };
31
+ expiresAt: {
32
+ readonly type: 'number';
33
+ readonly required: false;
34
+ };
35
+ entity: {
36
+ type: "string";
37
+ required: true;
38
+ };
9
39
  id: {
10
40
  type: "string";
11
41
  required: true;
@@ -17,7 +47,7 @@ export declare const messageEntity: Entity<string, string, string, {
17
47
  content: {
18
48
  type: "string";
19
49
  required: true;
20
- set: (value?: string | void | undefined) => string | void;
50
+ set: (value?: void | string | undefined) => void | string;
21
51
  get: (value?: string) => any;
22
52
  };
23
53
  role: {
@@ -50,36 +80,6 @@ export declare const messageEntity: Entity<string, string, string, {
50
80
  set: (value?: string[] | string) => string | undefined;
51
81
  get: (value?: string) => any;
52
82
  };
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
- ttl: {
72
- readonly type: "number";
73
- readonly required: false;
74
- };
75
- expiresAt: {
76
- readonly type: "number";
77
- readonly required: false;
78
- };
79
- entity: {
80
- type: "string";
81
- required: true;
82
- };
83
83
  };
84
84
  indexes: {
85
85
  primary: {
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAyBxB,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;;QAEtB,MAAM;QACN,OAAO;QACP,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BA2BS,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;;;;QAetB,OAAO;YACL,EAAE;gBAAI,KAAK;gBAAQ,SAAS;;YAC5B,EAAE;gBAAI,KAAK;gBAAQ,SAAS;;;QAE9B,QAAQ;YACN,KAAK;YACL,EAAE;gBAAI,KAAK;gBAAY,SAAS;;YAChC,EAAE;gBAAI,KAAK;gBAAY,SAAS;;;;UAGpC,CAAC"}