@robbeverhelst/do 1.152.0 → 1.153.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 (2) hide show
  1. package/dist/do.js +19 -2
  2. package/package.json +1 -1
package/dist/do.js CHANGED
@@ -2571,6 +2571,7 @@ var tenants = pgTable("tenants", {
2571
2571
  id: text("id").primaryKey(),
2572
2572
  name: text("name").notNull(),
2573
2573
  backdrop: text("backdrop"),
2574
+ gaardHouseUrl: text("gaard_house_url"),
2574
2575
  createdAt: timestamp("created_at", { withTimezone: true }).notNull().defaultNow(),
2575
2576
  updatedAt: timestamp("updated_at", { withTimezone: true }).notNull().defaultNow(),
2576
2577
  deletedAt: timestamp("deleted_at", { withTimezone: true })
@@ -18024,7 +18025,7 @@ var spaceSchema = createSelectSchema(tenants, {
18024
18025
  createdAt: exports_external.coerce.date(),
18025
18026
  updatedAt: exports_external.coerce.date(),
18026
18027
  deletedAt: exports_external.coerce.date().nullable()
18027
- });
18028
+ }).omit({ gaardHouseUrl: true });
18028
18029
  var backdropIdSchema = exports_external.string().trim().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/, "a backdrop id is lowercase words joined by dashes").max(40);
18029
18030
  var updateSpaceInputSchema = exports_external.object({
18030
18031
  name: exports_external.string().trim().min(1).max(120).optional(),
@@ -19125,6 +19126,22 @@ var importPlacesResultSchema = exports_external.object({
19125
19126
  skipped: exports_external.number().int().min(0),
19126
19127
  places: exports_external.array(placeViewSchema)
19127
19128
  });
19129
+ function asUrl(value) {
19130
+ try {
19131
+ return new URL(value);
19132
+ } catch {
19133
+ return null;
19134
+ }
19135
+ }
19136
+ var gaardHouseUrlSchema = exports_external.string().trim().max(2048).url("that isn't a URL").refine((value) => asUrl(value)?.protocol === "https:", "the URL must start with https://").refine((value) => {
19137
+ const url2 = asUrl(value);
19138
+ return !url2 || url2.username === "" && url2.password === "";
19139
+ }, "the URL can't hold a username or password");
19140
+ var placesSourceSchema = exports_external.object({ gaardHouseUrl: exports_external.string().nullable() });
19141
+ var updatePlacesSourceInputSchema = exports_external.object({
19142
+ gaardHouseUrl: exports_external.union([exports_external.literal("").transform(() => null), gaardHouseUrlSchema]).nullable()
19143
+ }).strict();
19144
+ var importLinkedHouseInputSchema = exports_external.object({ houseIndex: exports_external.number().int().min(0).default(0) }).strict();
19128
19145
 
19129
19146
  // ../../packages/schema/src/contracts/modules.ts
19130
19147
  var MODULE_KEYS = [
@@ -20789,7 +20806,7 @@ function parseCapture2(input, now) {
20789
20806
 
20790
20807
  // src/meta.ts
20791
20808
  var CLI_NAME = "do";
20792
- var VERSION = "1.152.0";
20809
+ var VERSION = "1.153.0";
20793
20810
  var API_PREFIX = "/api/v1";
20794
20811
  var DEFAULT_API_URL = "http://localhost:3001";
20795
20812
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robbeverhelst/do",
3
- "version": "1.152.0",
3
+ "version": "1.153.0",
4
4
  "private": false,
5
5
  "description": "do — the agent-drivable CLI over the public /api/v1 surface",
6
6
  "type": "module",