@treeseed/sdk 0.10.11 → 0.10.13

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 (52) hide show
  1. package/README.md +2 -2
  2. package/dist/api/auth/d1-store.js +20 -1
  3. package/dist/capacity-provider.d.ts +53 -1
  4. package/dist/capacity.d.ts +80 -1
  5. package/dist/capacity.js +687 -8
  6. package/dist/db/d1.d.ts +109 -3227
  7. package/dist/db/index.d.ts +1 -0
  8. package/dist/db/index.js +1 -0
  9. package/dist/db/market-schema.d.ts +43769 -0
  10. package/dist/db/market-schema.js +1878 -0
  11. package/dist/db/node-sqlite.d.ts +109 -3227
  12. package/dist/db/schema.d.ts +226 -5757
  13. package/dist/db/schema.js +35 -226
  14. package/dist/index.d.ts +6 -4
  15. package/dist/index.js +32 -0
  16. package/dist/market-client.d.ts +135 -0
  17. package/dist/market-client.js +134 -1
  18. package/dist/operations/services/commit-message-provider.js +1 -1
  19. package/dist/operations/services/d1-migration.js +0 -59
  20. package/dist/operations/services/deploy.js +5 -1
  21. package/dist/operations/services/github-api.d.ts +83 -0
  22. package/dist/operations/services/github-api.js +167 -0
  23. package/dist/operations/services/local-dev.js +3 -3
  24. package/dist/operations/services/mailpit-runtime.d.ts +13 -2
  25. package/dist/operations/services/mailpit-runtime.js +19 -14
  26. package/dist/operations/services/project-web-monitor.d.ts +15 -0
  27. package/dist/operations/services/project-web-monitor.js +260 -0
  28. package/dist/operations/services/railway-api.js +2 -2
  29. package/dist/operations/services/release-candidate.js +9 -9
  30. package/dist/operations/services/runtime-paths.d.ts +1 -1
  31. package/dist/operations/services/runtime-paths.js +2 -2
  32. package/dist/operations/services/template-registry.js +10 -1
  33. package/dist/operations.d.ts +1 -0
  34. package/dist/operations.js +11 -1
  35. package/dist/platform-operation-store.d.ts +4 -0
  36. package/dist/platform-operation-store.js +29 -3
  37. package/dist/platform-operations.d.ts +8 -0
  38. package/dist/platform-operations.js +19 -0
  39. package/dist/remote.js +6 -6
  40. package/dist/scripts/tenant-d1-migrate-local.js +2 -3
  41. package/dist/scripts/test-cloudflare-local.js +1 -1
  42. package/dist/scripts/workspace-command-e2e.js +3 -1
  43. package/dist/sdk-types.d.ts +281 -3
  44. package/dist/sdk-types.js +5 -1
  45. package/dist/seeds/normalize.js +6 -0
  46. package/dist/seeds/schema.js +61 -1
  47. package/dist/seeds/types.d.ts +32 -0
  48. package/drizzle/d1/0000_treeseed_d1.sql +37 -0
  49. package/drizzle/market/0000_market_control_plane.sql +2929 -0
  50. package/drizzle/market/0001_capacity_budget_mode_default.sql +4 -0
  51. package/drizzle/market/0002_user_email_addresses.sql +26 -0
  52. package/package.json +8 -1
@@ -0,0 +1,37 @@
1
+ CREATE TABLE IF NOT EXISTS `contact_submissions` (
2
+ `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
3
+ `name` text,
4
+ `email` text NOT NULL,
5
+ `organization` text,
6
+ `contact_type` text,
7
+ `subject` text,
8
+ `message` text NOT NULL,
9
+ `user_agent` text,
10
+ `created_at` text NOT NULL,
11
+ `ip_hash` text
12
+ );
13
+
14
+ CREATE INDEX IF NOT EXISTS `idx_contact_submissions_created_at` ON `contact_submissions` (`created_at`);
15
+ CREATE INDEX IF NOT EXISTS `idx_contact_submissions_email` ON `contact_submissions` (`email`);
16
+ CREATE TABLE IF NOT EXISTS `runtime_records` (
17
+ `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
18
+ `record_type` text NOT NULL,
19
+ `record_key` text NOT NULL,
20
+ `lookup_key` text,
21
+ `secondary_key` text,
22
+ `status` text NOT NULL,
23
+ `schema_version` integer DEFAULT 1 NOT NULL,
24
+ `created_at` text NOT NULL,
25
+ `updated_at` text NOT NULL,
26
+ `expires_at` text,
27
+ `payload_json` text NOT NULL,
28
+ `meta_json` text NOT NULL
29
+ );
30
+
31
+ CREATE INDEX IF NOT EXISTS `idx_runtime_records_type_lookup_updated` ON `runtime_records` (`record_type`,`lookup_key`,`updated_at`);
32
+ CREATE INDEX IF NOT EXISTS `idx_runtime_records_type_status_updated` ON `runtime_records` (`record_type`,`status`,`updated_at`);
33
+ CREATE UNIQUE INDEX IF NOT EXISTS `idx_runtime_records_type_record_key` ON `runtime_records` (`record_type`,`record_key`);
34
+ CREATE TABLE IF NOT EXISTS `subscribers` (
35
+ `email` text PRIMARY KEY NOT NULL,
36
+ `created_at` text NOT NULL
37
+ );