@happyvertical/smrt-secrets 0.40.69 → 0.41.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.
@@ -2,7 +2,7 @@
2
2
  "version": "1.0.0",
3
3
  "timestamp": 0,
4
4
  "packageName": "@happyvertical/smrt-secrets",
5
- "packageVersion": "0.40.69",
5
+ "packageVersion": "0.41.0",
6
6
  "objects": {
7
7
  "@happyvertical/smrt-secrets:SecretAuditLogCollection": {
8
8
  "name": "secretauditlogcollection",
@@ -202,12 +202,6 @@
202
202
  }
203
203
  },
204
204
  "indexes": [
205
- {
206
- "name": "secret_audit_log_collections_id_idx",
207
- "columns": [
208
- "id"
209
- ]
210
- },
211
205
  {
212
206
  "name": "secret_audit_log_collections_slug_context_idx",
213
207
  "columns": [
@@ -215,6 +209,12 @@
215
209
  "context"
216
210
  ],
217
211
  "unique": true
212
+ },
213
+ {
214
+ "name": "secret_audit_log_collections_created_at_idx",
215
+ "columns": [
216
+ "created_at"
217
+ ]
218
218
  }
219
219
  ],
220
220
  "version": "7bb61130"
@@ -403,12 +403,6 @@
403
403
  }
404
404
  },
405
405
  "indexes": [
406
- {
407
- "name": "secret_collections_id_idx",
408
- "columns": [
409
- "id"
410
- ]
411
- },
412
406
  {
413
407
  "name": "secret_collections_slug_context_idx",
414
408
  "columns": [
@@ -416,6 +410,12 @@
416
410
  "context"
417
411
  ],
418
412
  "unique": true
413
+ },
414
+ {
415
+ "name": "secret_collections_created_at_idx",
416
+ "columns": [
417
+ "created_at"
418
+ ]
419
419
  }
420
420
  ],
421
421
  "version": "5f18a721"
@@ -571,12 +571,6 @@
571
571
  }
572
572
  },
573
573
  "indexes": [
574
- {
575
- "name": "tenant_key_collections_id_idx",
576
- "columns": [
577
- "id"
578
- ]
579
- },
580
574
  {
581
575
  "name": "tenant_key_collections_slug_context_idx",
582
576
  "columns": [
@@ -584,6 +578,12 @@
584
578
  "context"
585
579
  ],
586
580
  "unique": true
581
+ },
582
+ {
583
+ "name": "tenant_key_collections_created_at_idx",
584
+ "columns": [
585
+ "created_at"
586
+ ]
587
587
  }
588
588
  ],
589
589
  "version": "26616d13"
@@ -725,7 +725,12 @@
725
725
  "list"
726
726
  ],
727
727
  "skipApiCheck": true
728
- }
728
+ },
729
+ "conflictColumns": [
730
+ "tenant_id",
731
+ "slug",
732
+ "context"
733
+ ]
729
734
  },
730
735
  "extends": "SmrtObject",
731
736
  "exportName": "Secret",
@@ -825,19 +830,21 @@
825
830
  }
826
831
  },
827
832
  "indexes": [
828
- {
829
- "name": "secrets_id_idx",
830
- "columns": [
831
- "id"
832
- ]
833
- },
834
833
  {
835
834
  "name": "secrets_slug_context_idx",
836
835
  "columns": [
836
+ "tenant_id",
837
837
  "slug",
838
838
  "context"
839
839
  ],
840
840
  "unique": true
841
+ },
842
+ {
843
+ "name": "secrets_tenant_id_created_at_idx",
844
+ "columns": [
845
+ "tenant_id",
846
+ "created_at"
847
+ ]
841
848
  }
842
849
  ],
843
850
  "version": "6298a980"
@@ -970,7 +977,12 @@
970
977
  "list"
971
978
  ],
972
979
  "skipApiCheck": true
973
- }
980
+ },
981
+ "conflictColumns": [
982
+ "tenant_id",
983
+ "slug",
984
+ "context"
985
+ ]
974
986
  },
975
987
  "extends": "SmrtObject",
976
988
  "exportName": "SecretAuditLog",
@@ -1060,19 +1072,33 @@
1060
1072
  }
1061
1073
  },
1062
1074
  "indexes": [
1063
- {
1064
- "name": "secret_audit_logs_id_idx",
1065
- "columns": [
1066
- "id"
1067
- ]
1068
- },
1069
1075
  {
1070
1076
  "name": "secret_audit_logs_slug_context_idx",
1071
1077
  "columns": [
1078
+ "tenant_id",
1072
1079
  "slug",
1073
1080
  "context"
1074
1081
  ],
1075
1082
  "unique": true
1083
+ },
1084
+ {
1085
+ "name": "secret_audit_logs_tenant_id_created_at_idx",
1086
+ "columns": [
1087
+ "tenant_id",
1088
+ "created_at"
1089
+ ]
1090
+ },
1091
+ {
1092
+ "name": "secret_audit_logs_secret_id_idx",
1093
+ "columns": [
1094
+ "secret_id"
1095
+ ]
1096
+ },
1097
+ {
1098
+ "name": "secret_audit_logs_user_id_idx",
1099
+ "columns": [
1100
+ "user_id"
1101
+ ]
1076
1102
  }
1077
1103
  ],
1078
1104
  "version": "af0d679d"
@@ -1275,12 +1301,6 @@
1275
1301
  }
1276
1302
  },
1277
1303
  "indexes": [
1278
- {
1279
- "name": "tenant_keys_id_idx",
1280
- "columns": [
1281
- "id"
1282
- ]
1283
- },
1284
1304
  {
1285
1305
  "name": "tenant_keys_slug_context_idx",
1286
1306
  "columns": [
@@ -1288,6 +1308,12 @@
1288
1308
  "context"
1289
1309
  ],
1290
1310
  "unique": true
1311
+ },
1312
+ {
1313
+ "name": "tenant_keys_created_at_idx",
1314
+ "columns": [
1315
+ "created_at"
1316
+ ]
1291
1317
  }
1292
1318
  ],
1293
1319
  "version": "79fd7e46"
@@ -1,2 +1,2 @@
1
- import { i as createAuditEntry, n as Secret, r as SecretAuditLog, t as TenantKey } from "../chunks/TenantKey-BfkQEUIj.js";
1
+ import { i as createAuditEntry, n as Secret, r as SecretAuditLog, t as TenantKey } from "../chunks/TenantKey-CMFX9BVx.js";
2
2
  export { Secret, SecretAuditLog, TenantKey, createAuditEntry };
@@ -1,2 +1,2 @@
1
- import { n as SecretService, t as SecretKeyDriftError } from "../chunks/SecretService-09SbQE3l.js";
1
+ import { n as SecretService, t as SecretKeyDriftError } from "../chunks/SecretService-x1DjrZqX.js";
2
2
  export { SecretKeyDriftError, SecretService };
@@ -3,12 +3,12 @@
3
3
  "sensitiveFieldsExcluded": true,
4
4
  "generatedAt": "1970-01-01T00:00:00.000Z",
5
5
  "packageName": "@happyvertical/smrt-secrets",
6
- "packageVersion": "0.40.69",
6
+ "packageVersion": "0.41.0",
7
7
  "sourceManifestPath": "dist/manifest.json",
8
8
  "agentDocPath": "AGENTS.md",
9
9
  "sourceHashes": {
10
- "manifest": "9bd4574f28d840174b8548d7b49f3bf8296f4ca8fa56abebb99617c46f9ac094",
11
- "packageJson": "e153631f8e636aaa7358f30ac3f60ba58012c099d585128e5bf947c108e93c1c",
10
+ "manifest": "3a44cc8818c1a6b7629233f0bf2b42d4ab27f3b4f4ddc5ef20715a80e9affc0c",
11
+ "packageJson": "4235031f0aecc1dd38c493d0c5b4e2ec89c3c438cabf567c733e891700b66cb2",
12
12
  "agents": "c2be546ffbe79a0df95401c10a60e23f4f31cb8232cb1349fcdb7e5682852d4a"
13
13
  },
14
14
  "exports": [
@@ -451,6 +451,11 @@
451
451
  "mode": "required",
452
452
  "field": "tenantId"
453
453
  },
454
+ "conflictColumns": [
455
+ "tenant_id",
456
+ "slug",
457
+ "context"
458
+ ],
454
459
  "surfaces": [
455
460
  {
456
461
  "kind": "cli",
@@ -591,6 +596,11 @@
591
596
  "mode": "required",
592
597
  "field": "tenantId"
593
598
  },
599
+ "conflictColumns": [
600
+ "tenant_id",
601
+ "slug",
602
+ "context"
603
+ ],
594
604
  "surfaces": [
595
605
  {
596
606
  "kind": "cli",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@happyvertical/smrt-secrets",
3
- "version": "0.40.69",
3
+ "version": "0.41.0",
4
4
  "description": "Per-tenant secret management with envelope encryption for SMRT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -31,15 +31,15 @@
31
31
  "@happyvertical/secrets": "^0.88.0",
32
32
  "@happyvertical/sql": "^0.88.0",
33
33
  "@happyvertical/utils": "^0.88.0",
34
- "@happyvertical/smrt-tenancy": "0.40.69",
35
- "@happyvertical/smrt-core": "0.40.69"
34
+ "@happyvertical/smrt-core": "0.41.0",
35
+ "@happyvertical/smrt-tenancy": "0.41.0"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/node": "24.13.2",
39
39
  "typescript": "5.9.3",
40
40
  "vite": "8.1.4",
41
41
  "vitest": "4.1.10",
42
- "@happyvertical/smrt-vitest": "0.40.69"
42
+ "@happyvertical/smrt-vitest": "0.41.0"
43
43
  },
44
44
  "keywords": [
45
45
  "smrt",