@intx/db 0.3.0 → 0.4.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.
Files changed (71) hide show
  1. package/README.md +11 -0
  2. package/dist/approval-store.d.ts +7 -0
  3. package/dist/approval-store.js +13 -0
  4. package/dist/backfill-principal-keys.d.ts +9 -0
  5. package/dist/backfill-principal-keys.js +51 -0
  6. package/dist/client.d.ts +27 -2
  7. package/dist/client.js +6 -0
  8. package/dist/config.d.ts +1 -0
  9. package/dist/config.js +2 -0
  10. package/dist/connection.js +1 -0
  11. package/dist/credential-resolution.d.ts +54 -5
  12. package/dist/credential-resolution.js +109 -0
  13. package/dist/index.d.ts +11 -5
  14. package/dist/index.js +10 -4
  15. package/dist/model-source-resolution.d.ts +6 -5
  16. package/dist/model-source-resolution.js +42 -13
  17. package/dist/parse-row.d.ts +39 -8
  18. package/dist/parse-row.js +8 -0
  19. package/dist/principal-key-store.d.ts +51 -0
  20. package/dist/principal-key-store.js +82 -0
  21. package/dist/principal-store.d.ts +44 -0
  22. package/dist/principal-store.js +67 -0
  23. package/dist/schema/approvals.js +5 -0
  24. package/dist/schema/git-tokens.js +1 -1
  25. package/dist/schema/index.d.ts +2 -0
  26. package/dist/schema/index.js +2 -0
  27. package/dist/schema/principal-keys.d.ts +126 -0
  28. package/dist/schema/principal-keys.js +28 -0
  29. package/dist/schema/sidecar-allocation.d.ts +19 -40
  30. package/dist/schema/sidecar-allocation.js +4 -8
  31. package/dist/schema/sidecar.d.ts +0 -17
  32. package/dist/schema/sidecar.js +4 -12
  33. package/dist/schema/tenants.js +13 -3
  34. package/dist/schema/workflow-probe.d.ts +358 -0
  35. package/dist/schema/workflow-probe.js +51 -0
  36. package/dist/schema/workflow-run-dispatch.d.ts +17 -0
  37. package/dist/schema/workflow-run-dispatch.js +7 -0
  38. package/dist/schema/workflow-run.d.ts +27 -0
  39. package/dist/schema/workflow-run.js +8 -0
  40. package/dist/sender-key-resolver.d.ts +91 -0
  41. package/dist/sender-key-resolver.js +184 -0
  42. package/dist/sidecar-allocation-store.d.ts +38 -3
  43. package/dist/sidecar-allocation-store.js +224 -22
  44. package/dist/signer-identity.d.ts +12 -0
  45. package/dist/signer-identity.js +15 -0
  46. package/dist/tenant-hierarchy.d.ts +2 -0
  47. package/dist/tenant-hierarchy.js +27 -0
  48. package/dist/workflow-probe-store.d.ts +47 -0
  49. package/dist/workflow-probe-store.js +124 -0
  50. package/dist/workflow-run-dispatch-store.d.ts +3 -0
  51. package/dist/workflow-run-dispatch-store.js +12 -2
  52. package/migrations/0085_add_approval_run_idx.sql +1 -0
  53. package/migrations/0086_cool_human_cannonball.sql +1 -0
  54. package/migrations/0087_drop_sidecar_placement.sql +3 -0
  55. package/migrations/0088_thick_sprite.sql +32 -0
  56. package/migrations/0089_tense_selene.sql +13 -0
  57. package/migrations/0090_tenant_domain_lower_unique.sql +2 -0
  58. package/migrations/0091_workflow_run_dispatch_sender_address.sql +21 -0
  59. package/migrations/0092_sidecar_destroy_failed.sql +4 -0
  60. package/migrations/0093_sidecar_initialization.sql +2 -0
  61. package/migrations/meta/0085_snapshot.json +4111 -0
  62. package/migrations/meta/0086_snapshot.json +4117 -0
  63. package/migrations/meta/0087_snapshot.json +4100 -0
  64. package/migrations/meta/0088_snapshot.json +4286 -0
  65. package/migrations/meta/0089_snapshot.json +4376 -0
  66. package/migrations/meta/0090_snapshot.json +4387 -0
  67. package/migrations/meta/0091_snapshot.json +4397 -0
  68. package/migrations/meta/0092_snapshot.json +4397 -0
  69. package/migrations/meta/0093_snapshot.json +4407 -0
  70. package/migrations/meta/_journal.json +63 -0
  71. package/package.json +6 -5
@@ -589,6 +589,69 @@
589
589
  "when": 1787169492000,
590
590
  "tag": "0084_delete_orphaned_credential_grants",
591
591
  "breakpoints": true
592
+ },
593
+ {
594
+ "idx": 85,
595
+ "version": "7",
596
+ "when": 1787528583748,
597
+ "tag": "0085_add_approval_run_idx",
598
+ "breakpoints": true
599
+ },
600
+ {
601
+ "idx": 86,
602
+ "version": "7",
603
+ "when": 1788412751293,
604
+ "tag": "0086_cool_human_cannonball",
605
+ "breakpoints": true
606
+ },
607
+ {
608
+ "idx": 87,
609
+ "version": "7",
610
+ "when": 1787862143742,
611
+ "tag": "0087_drop_sidecar_placement",
612
+ "breakpoints": true
613
+ },
614
+ {
615
+ "idx": 88,
616
+ "version": "7",
617
+ "when": 1788200236163,
618
+ "tag": "0088_thick_sprite",
619
+ "breakpoints": true
620
+ },
621
+ {
622
+ "idx": 89,
623
+ "version": "7",
624
+ "when": 1788617577404,
625
+ "tag": "0089_tense_selene",
626
+ "breakpoints": true
627
+ },
628
+ {
629
+ "idx": 90,
630
+ "version": "7",
631
+ "when": 1788736070428,
632
+ "tag": "0090_tenant_domain_lower_unique",
633
+ "breakpoints": true
634
+ },
635
+ {
636
+ "idx": 91,
637
+ "version": "7",
638
+ "when": 1788849155396,
639
+ "tag": "0091_workflow_run_dispatch_sender_address",
640
+ "breakpoints": true
641
+ },
642
+ {
643
+ "idx": 92,
644
+ "version": "7",
645
+ "when": 1788967084060,
646
+ "tag": "0092_sidecar_destroy_failed",
647
+ "breakpoints": true
648
+ },
649
+ {
650
+ "idx": 93,
651
+ "version": "7",
652
+ "when": 1789466440782,
653
+ "tag": "0093_sidecar_initialization",
654
+ "breakpoints": true
592
655
  }
593
656
  ]
594
657
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@intx/db",
3
3
  "description": "Client, schema, migrations, and row parsers for the hub's PostgreSQL database",
4
- "version": "0.3.0",
4
+ "version": "0.4.0",
5
5
  "license": "LGPL-2.1-only",
6
6
  "type": "module",
7
7
  "exports": {
@@ -17,10 +17,11 @@
17
17
  }
18
18
  },
19
19
  "dependencies": {
20
- "@intx/authz": "0.3.0",
21
- "@intx/crypto": "0.3.0",
22
- "@intx/log": "0.3.0",
23
- "@intx/types": "0.3.0",
20
+ "@intx/authz": "0.4.0",
21
+ "@intx/crypto": "0.4.0",
22
+ "@intx/hub-common": "0.4.0",
23
+ "@intx/log": "0.4.0",
24
+ "@intx/types": "0.4.0",
24
25
  "arktype": "^2.1.29",
25
26
  "drizzle-orm": "^0.45.1",
26
27
  "postgres": "^3.4.8"