@wtfalch/foundry 0.8.0 → 0.9.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.
@@ -1,4 +1,4 @@
1
- import type { AppEnvSource, IssuerApp } from '../org.js';
1
+ import type { AppEnvSource, HostingEntry, IssuerApp } from '../org.js';
2
2
  import type { Plan } from '../plan.js';
3
3
  import type { Checkpoint } from '../state.js';
4
4
  /**
@@ -463,6 +463,25 @@ export declare const declaredOrgs: import("drizzle-orm/pg-core").PgTableWithColu
463
463
  }, {}, {
464
464
  $type: Record<string, AppEnvSource>;
465
465
  }>;
466
+ hostingEntries: import("drizzle-orm/pg-core").PgColumn<{
467
+ name: "hosting_entries";
468
+ tableName: "foundry_declared_orgs";
469
+ dataType: "json";
470
+ columnType: "PgJsonb";
471
+ data: HostingEntry[];
472
+ driverParam: unknown;
473
+ notNull: true;
474
+ hasDefault: true;
475
+ isPrimaryKey: false;
476
+ isAutoincrement: false;
477
+ hasRuntimeDefault: false;
478
+ enumValues: undefined;
479
+ baseColumn: never;
480
+ identity: undefined;
481
+ generated: undefined;
482
+ }, {}, {
483
+ $type: HostingEntry[];
484
+ }>;
466
485
  ssoEnabled: import("drizzle-orm/pg-core").PgColumn<{
467
486
  name: "sso_enabled";
468
487
  tableName: "foundry_declared_orgs";
@@ -43,11 +43,17 @@ export const declaredOrgs = pgTable('foundry_declared_orgs', {
43
43
  hostingIssuerApps: jsonb('hosting_issuer_apps').notNull().default([]).$type(),
44
44
  hostingAccessEmails: jsonb('hosting_access_emails').notNull().default([]).$type(),
45
45
  // HostingConfig.appEnv (org.ts, #243). Maps the app's own env var names to
46
- // values the plan already mints; empty by default.
46
+ // values the plan already mints; empty by default. Read only by migration
47
+ // 0029, which copies it into `hostingEntries`.
47
48
  hostingAppEnv: jsonb('hosting_app_env')
48
49
  .notNull()
49
50
  .default({})
50
51
  .$type(),
52
+ // HostingConfig.entries (org.ts): one entry per app. Replaces the flat
53
+ // hosting_database, hosting_git_branch, hosting_build_pack,
54
+ // hosting_access_emails and hosting_app_env columns, which stay for an older
55
+ // reader and are no longer written.
56
+ hostingEntries: jsonb('hosting_entries').notNull().default([]).$type(),
51
57
  ssoEnabled: boolean('sso_enabled').notNull().default(false),
52
58
  guestsEnabled: boolean('guests_enabled').notNull().default(false),
53
59
  soloEnabled: boolean('solo_enabled').notNull().default(false),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wtfalch/foundry",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "Foundry's SDK: the declared org's types, the plan and apply contracts, and the state store's interface.",
5
5
  "repository": {
6
6
  "type": "git",