@happyvertical/smrt-messages 0.42.7 → 0.43.1

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.
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-messages",
5
- "packageVersion": "0.42.7",
5
+ "packageVersion": "0.43.1",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-messages:AccountCollection": {
8
8
  "name": "accountcollection",
@@ -2285,6 +2285,25 @@
2285
2285
  }
2286
2286
  },
2287
2287
  "methods": {
2288
+ "withDatabase": {
2289
+ "name": "withDatabase",
2290
+ "async": true,
2291
+ "parameters": [
2292
+ {
2293
+ "name": "db",
2294
+ "type": "DatabaseInterface",
2295
+ "optional": false
2296
+ },
2297
+ {
2298
+ "name": "operation",
2299
+ "type": "Function",
2300
+ "optional": false
2301
+ }
2302
+ ],
2303
+ "returnType": "Promise<T>",
2304
+ "isStatic": false,
2305
+ "isPublic": true
2306
+ },
2288
2307
  "getAiUsageSnapshot": {
2289
2308
  "name": "getAiUsageSnapshot",
2290
2309
  "async": false,
@@ -3249,7 +3268,13 @@
3249
3268
  "type": "UUID",
3250
3269
  "referenceKind": "foreignKey",
3251
3270
  "notNull": false,
3252
- "unique": false
3271
+ "unique": false,
3272
+ "foreignKey": {
3273
+ "table": "messages",
3274
+ "column": "id",
3275
+ "onDelete": "NO ACTION",
3276
+ "onUpdate": "CASCADE"
3277
+ }
3253
3278
  },
3254
3279
  "filename": {
3255
3280
  "type": "TEXT",
@@ -3313,7 +3338,7 @@
3313
3338
  ]
3314
3339
  }
3315
3340
  ],
3316
- "version": "989aa463"
3341
+ "version": "ee5ae0dd"
3317
3342
  }
3318
3343
  },
3319
3344
  "@happyvertical/smrt-messages:Blacklist": {
@@ -3694,6 +3719,25 @@
3694
3719
  }
3695
3720
  },
3696
3721
  "methods": {
3722
+ "withDatabase": {
3723
+ "name": "withDatabase",
3724
+ "async": true,
3725
+ "parameters": [
3726
+ {
3727
+ "name": "db",
3728
+ "type": "DatabaseInterface",
3729
+ "optional": false
3730
+ },
3731
+ {
3732
+ "name": "operation",
3733
+ "type": "Function",
3734
+ "optional": false
3735
+ }
3736
+ ],
3737
+ "returnType": "Promise<T>",
3738
+ "isStatic": false,
3739
+ "isPublic": true
3740
+ },
3697
3741
  "getAiUsageSnapshot": {
3698
3742
  "name": "getAiUsageSnapshot",
3699
3743
  "async": false,
@@ -4572,7 +4616,13 @@
4572
4616
  "account_id": {
4573
4617
  "type": "UUID",
4574
4618
  "referenceKind": "foreignKey",
4575
- "notNull": false
4619
+ "notNull": false,
4620
+ "foreignKey": {
4621
+ "table": "accounts",
4622
+ "column": "id",
4623
+ "onDelete": "NO ACTION",
4624
+ "onUpdate": "CASCADE"
4625
+ }
4576
4626
  },
4577
4627
  "persona_id": {
4578
4628
  "type": "UUID",
@@ -4582,7 +4632,13 @@
4582
4632
  "endpoint_id": {
4583
4633
  "type": "UUID",
4584
4634
  "referenceKind": "foreignKey",
4585
- "notNull": false
4635
+ "notNull": false,
4636
+ "foreignKey": {
4637
+ "table": "messaging_endpoints",
4638
+ "column": "id",
4639
+ "onDelete": "NO ACTION",
4640
+ "onUpdate": "CASCADE"
4641
+ }
4586
4642
  },
4587
4643
  "correlation_id": {
4588
4644
  "type": "TEXT",
@@ -4670,7 +4726,13 @@
4670
4726
  "in_reply_to_message_id": {
4671
4727
  "type": "UUID",
4672
4728
  "referenceKind": "foreignKey",
4673
- "notNull": false
4729
+ "notNull": false,
4730
+ "foreignKey": {
4731
+ "table": "messages",
4732
+ "column": "id",
4733
+ "onDelete": "NO ACTION",
4734
+ "onUpdate": "CASCADE"
4735
+ }
4674
4736
  },
4675
4737
  "message_id": {
4676
4738
  "type": "TEXT",
@@ -4862,7 +4924,7 @@
4862
4924
  ]
4863
4925
  }
4864
4926
  ],
4865
- "version": "e535c8c6"
4927
+ "version": "6ff29dd9"
4866
4928
  }
4867
4929
  },
4868
4930
  "@happyvertical/smrt-messages:EmailAccount": {
@@ -4960,6 +5022,25 @@
4960
5022
  }
4961
5023
  },
4962
5024
  "methods": {
5025
+ "withDatabase": {
5026
+ "name": "withDatabase",
5027
+ "async": true,
5028
+ "parameters": [
5029
+ {
5030
+ "name": "db",
5031
+ "type": "DatabaseInterface",
5032
+ "optional": false
5033
+ },
5034
+ {
5035
+ "name": "operation",
5036
+ "type": "Function",
5037
+ "optional": false
5038
+ }
5039
+ ],
5040
+ "returnType": "Promise<T>",
5041
+ "isStatic": false,
5042
+ "isPublic": true
5043
+ },
4963
5044
  "getAiUsageSnapshot": {
4964
5045
  "name": "getAiUsageSnapshot",
4965
5046
  "async": false,
@@ -6126,7 +6207,13 @@
6126
6207
  "type": "UUID",
6127
6208
  "referenceKind": "foreignKey",
6128
6209
  "notNull": false,
6129
- "unique": false
6210
+ "unique": false,
6211
+ "foreignKey": {
6212
+ "table": "accounts",
6213
+ "column": "id",
6214
+ "onDelete": "NO ACTION",
6215
+ "onUpdate": "CASCADE"
6216
+ }
6130
6217
  },
6131
6218
  "name": {
6132
6219
  "type": "TEXT",
@@ -6191,7 +6278,7 @@
6191
6278
  ]
6192
6279
  }
6193
6280
  ],
6194
- "version": "55c8a788"
6281
+ "version": "e895818f"
6195
6282
  }
6196
6283
  },
6197
6284
  "@happyvertical/smrt-messages:Message": {
@@ -6344,6 +6431,25 @@
6344
6431
  }
6345
6432
  },
6346
6433
  "methods": {
6434
+ "withDatabase": {
6435
+ "name": "withDatabase",
6436
+ "async": true,
6437
+ "parameters": [
6438
+ {
6439
+ "name": "db",
6440
+ "type": "DatabaseInterface",
6441
+ "optional": false
6442
+ },
6443
+ {
6444
+ "name": "operation",
6445
+ "type": "Function",
6446
+ "optional": false
6447
+ }
6448
+ ],
6449
+ "returnType": "Promise<T>",
6450
+ "isStatic": false,
6451
+ "isPublic": true
6452
+ },
6347
6453
  "getAiUsageSnapshot": {
6348
6454
  "name": "getAiUsageSnapshot",
6349
6455
  "async": false,
@@ -7111,7 +7217,13 @@
7111
7217
  "account_id": {
7112
7218
  "type": "UUID",
7113
7219
  "referenceKind": "foreignKey",
7114
- "notNull": false
7220
+ "notNull": false,
7221
+ "foreignKey": {
7222
+ "table": "accounts",
7223
+ "column": "id",
7224
+ "onDelete": "NO ACTION",
7225
+ "onUpdate": "CASCADE"
7226
+ }
7115
7227
  },
7116
7228
  "persona_id": {
7117
7229
  "type": "UUID",
@@ -7121,7 +7233,13 @@
7121
7233
  "endpoint_id": {
7122
7234
  "type": "UUID",
7123
7235
  "referenceKind": "foreignKey",
7124
- "notNull": false
7236
+ "notNull": false,
7237
+ "foreignKey": {
7238
+ "table": "messaging_endpoints",
7239
+ "column": "id",
7240
+ "onDelete": "NO ACTION",
7241
+ "onUpdate": "CASCADE"
7242
+ }
7125
7243
  },
7126
7244
  "correlation_id": {
7127
7245
  "type": "TEXT",
@@ -7209,7 +7327,13 @@
7209
7327
  "in_reply_to_message_id": {
7210
7328
  "type": "UUID",
7211
7329
  "referenceKind": "foreignKey",
7212
- "notNull": false
7330
+ "notNull": false,
7331
+ "foreignKey": {
7332
+ "table": "messages",
7333
+ "column": "id",
7334
+ "onDelete": "NO ACTION",
7335
+ "onUpdate": "CASCADE"
7336
+ }
7213
7337
  },
7214
7338
  "message_id": {
7215
7339
  "type": "TEXT",
@@ -7401,7 +7525,7 @@
7401
7525
  ]
7402
7526
  }
7403
7527
  ],
7404
- "version": "e535c8c6"
7528
+ "version": "c03791c7"
7405
7529
  }
7406
7530
  },
7407
7531
  "@happyvertical/smrt-messages:MessagingEndpoint": {
@@ -7852,13 +7976,25 @@
7852
7976
  "type": "UUID",
7853
7977
  "referenceKind": "foreignKey",
7854
7978
  "notNull": true,
7855
- "unique": false
7979
+ "unique": false,
7980
+ "foreignKey": {
7981
+ "table": "accounts",
7982
+ "column": "id",
7983
+ "onDelete": "CASCADE",
7984
+ "onUpdate": "CASCADE"
7985
+ }
7856
7986
  },
7857
7987
  "endpoint_id": {
7858
7988
  "type": "UUID",
7859
7989
  "referenceKind": "foreignKey",
7860
7990
  "notNull": true,
7861
- "unique": false
7991
+ "unique": false,
7992
+ "foreignKey": {
7993
+ "table": "messaging_endpoints",
7994
+ "column": "id",
7995
+ "onDelete": "CASCADE",
7996
+ "onUpdate": "CASCADE"
7997
+ }
7862
7998
  },
7863
7999
  "purpose": {
7864
8000
  "type": "TEXT",
@@ -7923,7 +8059,7 @@
7923
8059
  ]
7924
8060
  }
7925
8061
  ],
7926
- "version": "8729538d"
8062
+ "version": "3dc1d5d0"
7927
8063
  }
7928
8064
  },
7929
8065
  "@happyvertical/smrt-messages:SlackAccount": {
@@ -8024,6 +8160,25 @@
8024
8160
  }
8025
8161
  },
8026
8162
  "methods": {
8163
+ "withDatabase": {
8164
+ "name": "withDatabase",
8165
+ "async": true,
8166
+ "parameters": [
8167
+ {
8168
+ "name": "db",
8169
+ "type": "DatabaseInterface",
8170
+ "optional": false
8171
+ },
8172
+ {
8173
+ "name": "operation",
8174
+ "type": "Function",
8175
+ "optional": false
8176
+ }
8177
+ ],
8178
+ "returnType": "Promise<T>",
8179
+ "isStatic": false,
8180
+ "isPublic": true
8181
+ },
8027
8182
  "getAiUsageSnapshot": {
8028
8183
  "name": "getAiUsageSnapshot",
8029
8184
  "async": false,
@@ -8954,6 +9109,25 @@
8954
9109
  }
8955
9110
  },
8956
9111
  "methods": {
9112
+ "withDatabase": {
9113
+ "name": "withDatabase",
9114
+ "async": true,
9115
+ "parameters": [
9116
+ {
9117
+ "name": "db",
9118
+ "type": "DatabaseInterface",
9119
+ "optional": false
9120
+ },
9121
+ {
9122
+ "name": "operation",
9123
+ "type": "Function",
9124
+ "optional": false
9125
+ }
9126
+ ],
9127
+ "returnType": "Promise<T>",
9128
+ "isStatic": false,
9129
+ "isPublic": true
9130
+ },
8957
9131
  "getAiUsageSnapshot": {
8958
9132
  "name": "getAiUsageSnapshot",
8959
9133
  "async": false,
@@ -9751,7 +9925,13 @@
9751
9925
  "account_id": {
9752
9926
  "type": "UUID",
9753
9927
  "referenceKind": "foreignKey",
9754
- "notNull": false
9928
+ "notNull": false,
9929
+ "foreignKey": {
9930
+ "table": "accounts",
9931
+ "column": "id",
9932
+ "onDelete": "NO ACTION",
9933
+ "onUpdate": "CASCADE"
9934
+ }
9755
9935
  },
9756
9936
  "persona_id": {
9757
9937
  "type": "UUID",
@@ -9761,7 +9941,13 @@
9761
9941
  "endpoint_id": {
9762
9942
  "type": "UUID",
9763
9943
  "referenceKind": "foreignKey",
9764
- "notNull": false
9944
+ "notNull": false,
9945
+ "foreignKey": {
9946
+ "table": "messaging_endpoints",
9947
+ "column": "id",
9948
+ "onDelete": "NO ACTION",
9949
+ "onUpdate": "CASCADE"
9950
+ }
9765
9951
  },
9766
9952
  "correlation_id": {
9767
9953
  "type": "TEXT",
@@ -9849,7 +10035,13 @@
9849
10035
  "in_reply_to_message_id": {
9850
10036
  "type": "UUID",
9851
10037
  "referenceKind": "foreignKey",
9852
- "notNull": false
10038
+ "notNull": false,
10039
+ "foreignKey": {
10040
+ "table": "messages",
10041
+ "column": "id",
10042
+ "onDelete": "NO ACTION",
10043
+ "onUpdate": "CASCADE"
10044
+ }
9853
10045
  },
9854
10046
  "message_id": {
9855
10047
  "type": "TEXT",
@@ -10041,7 +10233,7 @@
10041
10233
  ]
10042
10234
  }
10043
10235
  ],
10044
- "version": "e535c8c6"
10236
+ "version": "f91bb49a"
10045
10237
  }
10046
10238
  },
10047
10239
  "@happyvertical/smrt-messages:TelegramAccount": {
@@ -10130,6 +10322,25 @@
10130
10322
  }
10131
10323
  },
10132
10324
  "methods": {
10325
+ "withDatabase": {
10326
+ "name": "withDatabase",
10327
+ "async": true,
10328
+ "parameters": [
10329
+ {
10330
+ "name": "db",
10331
+ "type": "DatabaseInterface",
10332
+ "optional": false
10333
+ },
10334
+ {
10335
+ "name": "operation",
10336
+ "type": "Function",
10337
+ "optional": false
10338
+ }
10339
+ ],
10340
+ "returnType": "Promise<T>",
10341
+ "isStatic": false,
10342
+ "isPublic": true
10343
+ },
10133
10344
  "getAiUsageSnapshot": {
10134
10345
  "name": "getAiUsageSnapshot",
10135
10346
  "async": false,
@@ -11068,6 +11279,25 @@
11068
11279
  }
11069
11280
  },
11070
11281
  "methods": {
11282
+ "withDatabase": {
11283
+ "name": "withDatabase",
11284
+ "async": true,
11285
+ "parameters": [
11286
+ {
11287
+ "name": "db",
11288
+ "type": "DatabaseInterface",
11289
+ "optional": false
11290
+ },
11291
+ {
11292
+ "name": "operation",
11293
+ "type": "Function",
11294
+ "optional": false
11295
+ }
11296
+ ],
11297
+ "returnType": "Promise<T>",
11298
+ "isStatic": false,
11299
+ "isPublic": true
11300
+ },
11071
11301
  "getAiUsageSnapshot": {
11072
11302
  "name": "getAiUsageSnapshot",
11073
11303
  "async": false,
@@ -11885,7 +12115,13 @@
11885
12115
  "account_id": {
11886
12116
  "type": "UUID",
11887
12117
  "referenceKind": "foreignKey",
11888
- "notNull": false
12118
+ "notNull": false,
12119
+ "foreignKey": {
12120
+ "table": "accounts",
12121
+ "column": "id",
12122
+ "onDelete": "NO ACTION",
12123
+ "onUpdate": "CASCADE"
12124
+ }
11889
12125
  },
11890
12126
  "persona_id": {
11891
12127
  "type": "UUID",
@@ -11895,7 +12131,13 @@
11895
12131
  "endpoint_id": {
11896
12132
  "type": "UUID",
11897
12133
  "referenceKind": "foreignKey",
11898
- "notNull": false
12134
+ "notNull": false,
12135
+ "foreignKey": {
12136
+ "table": "messaging_endpoints",
12137
+ "column": "id",
12138
+ "onDelete": "NO ACTION",
12139
+ "onUpdate": "CASCADE"
12140
+ }
11899
12141
  },
11900
12142
  "correlation_id": {
11901
12143
  "type": "TEXT",
@@ -11983,7 +12225,13 @@
11983
12225
  "in_reply_to_message_id": {
11984
12226
  "type": "UUID",
11985
12227
  "referenceKind": "foreignKey",
11986
- "notNull": false
12228
+ "notNull": false,
12229
+ "foreignKey": {
12230
+ "table": "messages",
12231
+ "column": "id",
12232
+ "onDelete": "NO ACTION",
12233
+ "onUpdate": "CASCADE"
12234
+ }
11987
12235
  },
11988
12236
  "message_id": {
11989
12237
  "type": "TEXT",
@@ -12175,7 +12423,7 @@
12175
12423
  ]
12176
12424
  }
12177
12425
  ],
12178
- "version": "e535c8c6"
12426
+ "version": "ffd4cea3"
12179
12427
  }
12180
12428
  },
12181
12429
  "@happyvertical/smrt-messages:TwitterAccount": {
@@ -12272,6 +12520,25 @@
12272
12520
  }
12273
12521
  },
12274
12522
  "methods": {
12523
+ "withDatabase": {
12524
+ "name": "withDatabase",
12525
+ "async": true,
12526
+ "parameters": [
12527
+ {
12528
+ "name": "db",
12529
+ "type": "DatabaseInterface",
12530
+ "optional": false
12531
+ },
12532
+ {
12533
+ "name": "operation",
12534
+ "type": "Function",
12535
+ "optional": false
12536
+ }
12537
+ ],
12538
+ "returnType": "Promise<T>",
12539
+ "isStatic": false,
12540
+ "isPublic": true
12541
+ },
12275
12542
  "getAiUsageSnapshot": {
12276
12543
  "name": "getAiUsageSnapshot",
12277
12544
  "async": false,
@@ -13271,6 +13538,25 @@
13271
13538
  }
13272
13539
  },
13273
13540
  "methods": {
13541
+ "withDatabase": {
13542
+ "name": "withDatabase",
13543
+ "async": true,
13544
+ "parameters": [
13545
+ {
13546
+ "name": "db",
13547
+ "type": "DatabaseInterface",
13548
+ "optional": false
13549
+ },
13550
+ {
13551
+ "name": "operation",
13552
+ "type": "Function",
13553
+ "optional": false
13554
+ }
13555
+ ],
13556
+ "returnType": "Promise<T>",
13557
+ "isStatic": false,
13558
+ "isPublic": true
13559
+ },
13274
13560
  "getAiUsageSnapshot": {
13275
13561
  "name": "getAiUsageSnapshot",
13276
13562
  "async": false,
@@ -3,12 +3,12 @@
3
3
  "sensitiveFieldsExcluded": true,
4
4
  "generatedAt": "1970-01-01T00:00:00.000Z",
5
5
  "packageName": "@happyvertical/smrt-messages",
6
- "packageVersion": "0.42.7",
6
+ "packageVersion": "0.43.1",
7
7
  "sourceManifestPath": "dist/manifest.json",
8
8
  "agentDocPath": "AGENTS.md",
9
9
  "sourceHashes": {
10
- "manifest": "6b8cc83a3b04d2a56db4d777aed82b965d90cb255ffe247a3ed4c19a7b287a8b",
11
- "packageJson": "4739dc24ecebb894557663f696329159e6ffc04fc820829d8e9163cf048fa5a8",
10
+ "manifest": "6599d820d7801338344bef6169eb4bc41ec5188542e11bbed828f29e98abcf22",
11
+ "packageJson": "e600276d1da80f4b68c4b8ee5d63153aa3decb9acbb6daafc0c78c151c89ba13",
12
12
  "agents": "712dcc2f244d01db8b49d764b8c076e94cb9274fa4b458d7c902434a0473f127"
13
13
  },
14
14
  "exports": [
@@ -1354,7 +1354,8 @@
1354
1354
  "summarizeAiUsage",
1355
1355
  "toJSON",
1356
1356
  "toPlainObject",
1357
- "toPublicJSON"
1357
+ "toPublicJSON",
1358
+ "withDatabase"
1358
1359
  ],
1359
1360
  "methodSignatures": [
1360
1361
  {
@@ -1671,6 +1672,15 @@
1671
1672
  "options?: PublicJsonOptions"
1672
1673
  ],
1673
1674
  "returns": "Record<string>"
1675
+ },
1676
+ {
1677
+ "name": "withDatabase",
1678
+ "async": true,
1679
+ "params": [
1680
+ "db: DatabaseInterface",
1681
+ "operation: Function"
1682
+ ],
1683
+ "returns": "Promise<T>"
1674
1684
  }
1675
1685
  ],
1676
1686
  "tenant": {
@@ -2482,7 +2492,8 @@
2482
2492
  "toJSON",
2483
2493
  "toPlainObject",
2484
2494
  "toPublicJSON",
2485
- "toggleFlagged"
2495
+ "toggleFlagged",
2496
+ "withDatabase"
2486
2497
  ],
2487
2498
  "methodSignatures": [
2488
2499
  {
@@ -2898,6 +2909,15 @@
2898
2909
  "options?: PublicJsonOptions"
2899
2910
  ],
2900
2911
  "returns": "Record<string>"
2912
+ },
2913
+ {
2914
+ "name": "withDatabase",
2915
+ "async": true,
2916
+ "params": [
2917
+ "db: DatabaseInterface",
2918
+ "operation: Function"
2919
+ ],
2920
+ "returns": "Promise<T>"
2901
2921
  }
2902
2922
  ],
2903
2923
  "tableStrategy": "sti",
@@ -3140,7 +3160,8 @@
3140
3160
  "syncFrom",
3141
3161
  "toJSON",
3142
3162
  "toPlainObject",
3143
- "toPublicJSON"
3163
+ "toPublicJSON",
3164
+ "withDatabase"
3144
3165
  ],
3145
3166
  "methodSignatures": [
3146
3167
  {
@@ -3501,6 +3522,15 @@
3501
3522
  "options?: PublicJsonOptions"
3502
3523
  ],
3503
3524
  "returns": "Record<string>"
3525
+ },
3526
+ {
3527
+ "name": "withDatabase",
3528
+ "async": true,
3529
+ "params": [
3530
+ "db: DatabaseInterface",
3531
+ "operation: Function"
3532
+ ],
3533
+ "returns": "Promise<T>"
3504
3534
  }
3505
3535
  ],
3506
3536
  "tableStrategy": "sti",
@@ -4119,7 +4149,8 @@
4119
4149
  "toJSON",
4120
4150
  "toPlainObject",
4121
4151
  "toPublicJSON",
4122
- "toggleFlagged"
4152
+ "toggleFlagged",
4153
+ "withDatabase"
4123
4154
  ],
4124
4155
  "methodSignatures": [
4125
4156
  {
@@ -4480,6 +4511,15 @@
4480
4511
  "options?: PublicJsonOptions"
4481
4512
  ],
4482
4513
  "returns": "Record<string>"
4514
+ },
4515
+ {
4516
+ "name": "withDatabase",
4517
+ "async": true,
4518
+ "params": [
4519
+ "db: DatabaseInterface",
4520
+ "operation: Function"
4521
+ ],
4522
+ "returns": "Promise<T>"
4483
4523
  }
4484
4524
  ],
4485
4525
  "tenant": {
@@ -5011,7 +5051,8 @@
5011
5051
  "summarizeAiUsage",
5012
5052
  "toJSON",
5013
5053
  "toPlainObject",
5014
- "toPublicJSON"
5054
+ "toPublicJSON",
5055
+ "withDatabase"
5015
5056
  ],
5016
5057
  "methodSignatures": [
5017
5058
  {
@@ -5328,6 +5369,15 @@
5328
5369
  "options?: PublicJsonOptions"
5329
5370
  ],
5330
5371
  "returns": "Record<string>"
5372
+ },
5373
+ {
5374
+ "name": "withDatabase",
5375
+ "async": true,
5376
+ "params": [
5377
+ "db: DatabaseInterface",
5378
+ "operation: Function"
5379
+ ],
5380
+ "returns": "Promise<T>"
5331
5381
  }
5332
5382
  ],
5333
5383
  "tableStrategy": "sti",
@@ -5708,7 +5758,8 @@
5708
5758
  "toJSON",
5709
5759
  "toPlainObject",
5710
5760
  "toPublicJSON",
5711
- "toggleFlagged"
5761
+ "toggleFlagged",
5762
+ "withDatabase"
5712
5763
  ],
5713
5764
  "methodSignatures": [
5714
5765
  {
@@ -6085,6 +6136,15 @@
6085
6136
  "options?: PublicJsonOptions"
6086
6137
  ],
6087
6138
  "returns": "Record<string>"
6139
+ },
6140
+ {
6141
+ "name": "withDatabase",
6142
+ "async": true,
6143
+ "params": [
6144
+ "db: DatabaseInterface",
6145
+ "operation: Function"
6146
+ ],
6147
+ "returns": "Promise<T>"
6088
6148
  }
6089
6149
  ],
6090
6150
  "tableStrategy": "sti",
@@ -6291,7 +6351,8 @@
6291
6351
  "summarizeAiUsage",
6292
6352
  "toJSON",
6293
6353
  "toPlainObject",
6294
- "toPublicJSON"
6354
+ "toPublicJSON",
6355
+ "withDatabase"
6295
6356
  ],
6296
6357
  "methodSignatures": [
6297
6358
  {
@@ -6608,6 +6669,15 @@
6608
6669
  "options?: PublicJsonOptions"
6609
6670
  ],
6610
6671
  "returns": "Record<string>"
6672
+ },
6673
+ {
6674
+ "name": "withDatabase",
6675
+ "async": true,
6676
+ "params": [
6677
+ "db: DatabaseInterface",
6678
+ "operation: Function"
6679
+ ],
6680
+ "returns": "Promise<T>"
6611
6681
  }
6612
6682
  ],
6613
6683
  "tableStrategy": "sti",
@@ -6998,7 +7068,8 @@
6998
7068
  "toJSON",
6999
7069
  "toPlainObject",
7000
7070
  "toPublicJSON",
7001
- "toggleFlagged"
7071
+ "toggleFlagged",
7072
+ "withDatabase"
7002
7073
  ],
7003
7074
  "methodSignatures": [
7004
7075
  {
@@ -7375,6 +7446,15 @@
7375
7446
  "options?: PublicJsonOptions"
7376
7447
  ],
7377
7448
  "returns": "Record<string>"
7449
+ },
7450
+ {
7451
+ "name": "withDatabase",
7452
+ "async": true,
7453
+ "params": [
7454
+ "db: DatabaseInterface",
7455
+ "operation: Function"
7456
+ ],
7457
+ "returns": "Promise<T>"
7378
7458
  }
7379
7459
  ],
7380
7460
  "tableStrategy": "sti",
@@ -7593,7 +7673,8 @@
7593
7673
  "summarizeAiUsage",
7594
7674
  "toJSON",
7595
7675
  "toPlainObject",
7596
- "toPublicJSON"
7676
+ "toPublicJSON",
7677
+ "withDatabase"
7597
7678
  ],
7598
7679
  "methodSignatures": [
7599
7680
  {
@@ -7910,6 +7991,15 @@
7910
7991
  "options?: PublicJsonOptions"
7911
7992
  ],
7912
7993
  "returns": "Record<string>"
7994
+ },
7995
+ {
7996
+ "name": "withDatabase",
7997
+ "async": true,
7998
+ "params": [
7999
+ "db: DatabaseInterface",
8000
+ "operation: Function"
8001
+ ],
8002
+ "returns": "Promise<T>"
7913
8003
  }
7914
8004
  ],
7915
8005
  "tableStrategy": "sti",
@@ -8231,7 +8321,8 @@
8231
8321
  "summarizeAiUsage",
8232
8322
  "toJSON",
8233
8323
  "toPlainObject",
8234
- "toPublicJSON"
8324
+ "toPublicJSON",
8325
+ "withDatabase"
8235
8326
  ],
8236
8327
  "methodSignatures": [
8237
8328
  {
@@ -8548,6 +8639,15 @@
8548
8639
  "options?: PublicJsonOptions"
8549
8640
  ],
8550
8641
  "returns": "Record<string>"
8642
+ },
8643
+ {
8644
+ "name": "withDatabase",
8645
+ "async": true,
8646
+ "params": [
8647
+ "db: DatabaseInterface",
8648
+ "operation: Function"
8649
+ ],
8650
+ "returns": "Promise<T>"
8551
8651
  }
8552
8652
  ],
8553
8653
  "tableStrategy": "sti",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-messages",
3
- "version": "0.42.7",
3
+ "version": "0.43.1",
4
4
  "description": "Unified multi-channel messaging with STI-based hierarchies",
5
5
  "type": "module",
6
6
  "smrtRawPrimitives": "strict",
@@ -62,12 +62,12 @@
62
62
  "@happyvertical/messages": "^0.88.0",
63
63
  "@happyvertical/sql": "^0.88.0",
64
64
  "@happyvertical/utils": "^0.88.0",
65
- "@happyvertical/smrt-core": "0.42.7",
66
- "@happyvertical/smrt-types": "0.42.7",
67
- "@happyvertical/smrt-secrets": "0.42.7",
68
- "@happyvertical/smrt-ui": "0.42.7",
69
- "@happyvertical/smrt-tenancy": "0.42.7",
70
- "@happyvertical/smrt-users": "0.42.7"
65
+ "@happyvertical/smrt-core": "0.43.1",
66
+ "@happyvertical/smrt-tenancy": "0.43.1",
67
+ "@happyvertical/smrt-secrets": "0.43.1",
68
+ "@happyvertical/smrt-ui": "0.43.1",
69
+ "@happyvertical/smrt-users": "0.43.1",
70
+ "@happyvertical/smrt-types": "0.43.1"
71
71
  },
72
72
  "peerDependencies": {
73
73
  "@happyvertical/encryption": "*",
@@ -90,7 +90,7 @@
90
90
  "typescript": "5.9.3",
91
91
  "vite": "8.1.4",
92
92
  "vitest": "4.1.10",
93
- "@happyvertical/smrt-vitest": "0.42.7"
93
+ "@happyvertical/smrt-vitest": "0.43.1"
94
94
  },
95
95
  "keywords": [
96
96
  "email",