@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.
- package/dist/bootstrap/declare.js +1 -5
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/migrations/0029_hosting_entries.sql +109 -0
- package/dist/org.d.ts +59 -27
- package/dist/org.js +98 -26
- package/dist/plan/diff.js +25 -19
- package/dist/plan/executor.d.ts +45 -29
- package/dist/plan/executor.js +291 -158
- package/dist/plan/index.d.ts +1 -1
- package/dist/plan/index.js +1 -1
- package/dist/plan/plan-apply.js +6 -9
- package/dist/plan/platform-diff.d.ts +23 -11
- package/dist/plan/platform-diff.js +39 -14
- package/dist/plan/platform-providers.d.ts +7 -0
- package/dist/plan/platform-providers.js +93 -13
- package/dist/plan/zitadel-system-api.d.ts +64 -0
- package/dist/plan/zitadel-system-api.js +125 -0
- package/dist/platform.d.ts +1 -1
- package/dist/store/postgres.js +2 -10
- package/dist/store/schema.d.ts +20 -1
- package/dist/store/schema.js +7 -1
- package/package.json +1 -1
package/dist/store/schema.d.ts
CHANGED
|
@@ -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";
|
package/dist/store/schema.js
CHANGED
|
@@ -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),
|