@wtfalch/foundry 0.24.0 → 0.25.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.
@@ -635,6 +635,7 @@ function rowToPlatform(row) {
635
635
  hostname: row.coolifyHostname,
636
636
  gitRef: row.coolifyGitRef,
637
637
  },
638
+ uptime: { enabled: row.uptimeEnabled, tag: row.uptimeTag, sha256: row.uptimeSha256 },
638
639
  };
639
640
  }
640
641
  function platformToRow(platform) {
@@ -677,6 +678,9 @@ function platformToRow(platform) {
677
678
  coolifyEnabled: platform.coolify.enabled,
678
679
  coolifyHostname: platform.coolify.hostname,
679
680
  coolifyGitRef: platform.coolify.gitRef,
681
+ uptimeEnabled: platform.uptime.enabled,
682
+ uptimeTag: platform.uptime.tag,
683
+ uptimeSha256: platform.uptime.sha256,
680
684
  };
681
685
  }
682
686
  /**
@@ -2051,6 +2051,57 @@ export declare const foundryDeclaredPlatform: import("drizzle-orm/pg-core").PgTa
2051
2051
  identity: undefined;
2052
2052
  generated: undefined;
2053
2053
  }, {}, {}>;
2054
+ uptimeEnabled: import("drizzle-orm/pg-core").PgColumn<{
2055
+ name: "uptime_enabled";
2056
+ tableName: "foundry_declared_platform";
2057
+ dataType: "boolean";
2058
+ columnType: "PgBoolean";
2059
+ data: boolean;
2060
+ driverParam: boolean;
2061
+ notNull: true;
2062
+ hasDefault: true;
2063
+ isPrimaryKey: false;
2064
+ isAutoincrement: false;
2065
+ hasRuntimeDefault: false;
2066
+ enumValues: undefined;
2067
+ baseColumn: never;
2068
+ identity: undefined;
2069
+ generated: undefined;
2070
+ }, {}, {}>;
2071
+ uptimeTag: import("drizzle-orm/pg-core").PgColumn<{
2072
+ name: "uptime_tag";
2073
+ tableName: "foundry_declared_platform";
2074
+ dataType: "string";
2075
+ columnType: "PgText";
2076
+ data: string;
2077
+ driverParam: string;
2078
+ notNull: true;
2079
+ hasDefault: true;
2080
+ isPrimaryKey: false;
2081
+ isAutoincrement: false;
2082
+ hasRuntimeDefault: false;
2083
+ enumValues: [string, ...string[]];
2084
+ baseColumn: never;
2085
+ identity: undefined;
2086
+ generated: undefined;
2087
+ }, {}, {}>;
2088
+ uptimeSha256: import("drizzle-orm/pg-core").PgColumn<{
2089
+ name: "uptime_sha256";
2090
+ tableName: "foundry_declared_platform";
2091
+ dataType: "string";
2092
+ columnType: "PgText";
2093
+ data: string;
2094
+ driverParam: string;
2095
+ notNull: true;
2096
+ hasDefault: true;
2097
+ isPrimaryKey: false;
2098
+ isAutoincrement: false;
2099
+ hasRuntimeDefault: false;
2100
+ enumValues: [string, ...string[]];
2101
+ baseColumn: never;
2102
+ identity: undefined;
2103
+ generated: undefined;
2104
+ }, {}, {}>;
2054
2105
  serviceIds: import("drizzle-orm/pg-core").PgColumn<{
2055
2106
  name: "service_ids";
2056
2107
  tableName: "foundry_declared_platform";
@@ -192,6 +192,10 @@ export const foundryDeclaredPlatform = pgTable('foundry_declared_platform', {
192
192
  coolifyEnabled: boolean('coolify_enabled').notNull().default(false),
193
193
  coolifyHostname: text('coolify_hostname').notNull(),
194
194
  coolifyGitRef: text('coolify_git_ref').notNull().default(''),
195
+ /** `migrations/0049_platform_uptime.sql`: the uptime Worker and its artifact pin. */
196
+ uptimeEnabled: boolean('uptime_enabled').notNull().default(true),
197
+ uptimeTag: text('uptime_tag').notNull().default(''),
198
+ uptimeSha256: text('uptime_sha256').notNull().default(''),
195
199
  /** `migrations/0018_platform_apply.sql`: the platform's applied state, `system:kind:key` to provider id. */
196
200
  serviceIds: jsonb('service_ids').$type().notNull().default({}),
197
201
  createdAt: timestamp('created_at', { withTimezone: true }).notNull().defaultNow(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wtfalch/foundry",
3
- "version": "0.24.0",
3
+ "version": "0.25.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",
@@ -43,7 +43,7 @@
43
43
  "dependencies": {
44
44
  "@wtfalch/audit": "0.6.0",
45
45
  "@wtfalch/auth": "0.16.0",
46
- "@wtfalch/edge": "0.11.0",
46
+ "@wtfalch/edge": "0.12.0",
47
47
  "@wtfalch/email": "^0.17.0",
48
48
  "@wtfalch/providers": "0.7.5",
49
49
  "ssh2": "1.17.0",