@haakco/hostingctl 1.0.838 → 1.0.851

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/main.js CHANGED
@@ -33577,23 +33577,6 @@ function hostingApplicationSiteAccessUsersDestroy(options) {
33577
33577
  }));
33578
33578
  }
33579
33579
  /**
33580
- * {@link /c/:company/hosting/environments/:environmentUuid/applications/:workloadUuid/site-access/audience}
33581
- */
33582
- function hostingApplicationSiteAccessAudienceStore(options) {
33583
- const { client: request = client, ...config } = options;
33584
- return withUnwrap(request({
33585
- method: "POST",
33586
- url: "/c/{company}/hosting/environments/{environmentUuid}/applications/{workloadUuid}/site-access/audience",
33587
- security: [{
33588
- type: "http",
33589
- scheme: "bearer"
33590
- }],
33591
- contentType: { request: "application/json" },
33592
- ...config,
33593
- throwOnError: config.throwOnError ?? true
33594
- }));
33595
- }
33596
- /**
33597
33580
  * {@link /c/:company/hosting/environments/:environmentUuid/applications/:workloadUuid/speed-check}
33598
33581
  */
33599
33582
  function hostingApplicationSpeedShow(options) {
@@ -35515,6 +35498,39 @@ function hostingNvmeBlocksQuote(options) {
35515
35498
  }));
35516
35499
  }
35517
35500
  /**
35501
+ * {@link /c/:company/hosting/environments/:environmentUuid/outbound-rules}
35502
+ */
35503
+ function hostingEnvironmentsOutboundRulesShow(options) {
35504
+ const { client: request = client, ...config } = options;
35505
+ return withUnwrap(request({
35506
+ method: "GET",
35507
+ url: "/c/{company}/hosting/environments/{environmentUuid}/outbound-rules",
35508
+ security: [{
35509
+ type: "http",
35510
+ scheme: "bearer"
35511
+ }],
35512
+ ...config,
35513
+ throwOnError: config.throwOnError ?? true
35514
+ }));
35515
+ }
35516
+ /**
35517
+ * {@link /c/:company/hosting/environments/:environmentUuid/outbound-rules}
35518
+ */
35519
+ function hostingEnvironmentsOutboundRulesUpdate(options) {
35520
+ const { client: request = client, ...config } = options;
35521
+ return withUnwrap(request({
35522
+ method: "PUT",
35523
+ url: "/c/{company}/hosting/environments/{environmentUuid}/outbound-rules",
35524
+ security: [{
35525
+ type: "http",
35526
+ scheme: "bearer"
35527
+ }],
35528
+ contentType: { request: "application/json" },
35529
+ ...config,
35530
+ throwOnError: config.throwOnError ?? true
35531
+ }));
35532
+ }
35533
+ /**
35518
35534
  * {@link /me/ssh-keys}
35519
35535
  */
35520
35536
  function hostingPersonalKeyIndex(options = {}) {
@@ -36727,23 +36743,6 @@ function hostingSiteAccessRealmRetry(options) {
36727
36743
  }));
36728
36744
  }
36729
36745
  /**
36730
- * {@link /c/:company/hosting/environments/:environmentUuid/site-access/realm}
36731
- */
36732
- function hostingSiteAccessRealmStore(options) {
36733
- const { client: request = client, ...config } = options;
36734
- return withUnwrap(request({
36735
- method: "POST",
36736
- url: "/c/{company}/hosting/environments/{environmentUuid}/site-access/realm",
36737
- security: [{
36738
- type: "http",
36739
- scheme: "bearer"
36740
- }],
36741
- contentType: { request: "application/json" },
36742
- ...config,
36743
- throwOnError: config.throwOnError ?? true
36744
- }));
36745
- }
36746
- /**
36747
36746
  * {@link /c/:company/hosting/environments/:environmentUuid/site-insights}
36748
36747
  */
36749
36748
  function hostingSiteInsightsShow(options) {
@@ -37713,6 +37712,38 @@ function hostingStorageQuoteShow(options) {
37713
37712
  }));
37714
37713
  }
37715
37714
  /**
37715
+ * {@link /c/:company/hosting/storage/:bucketUuid/encryption-rotation}
37716
+ */
37717
+ function hostingStorageEncryptionRotationShow(options) {
37718
+ const { client: request = client, ...config } = options;
37719
+ return withUnwrap(request({
37720
+ method: "GET",
37721
+ url: "/c/{company}/hosting/storage/{bucketUuid}/encryption-rotation",
37722
+ security: [{
37723
+ type: "http",
37724
+ scheme: "bearer"
37725
+ }],
37726
+ ...config,
37727
+ throwOnError: config.throwOnError ?? true
37728
+ }));
37729
+ }
37730
+ /**
37731
+ * {@link /c/:company/hosting/storage/:bucketUuid/encryption-rotation}
37732
+ */
37733
+ function hostingStorageEncryptionRotationStart(options) {
37734
+ const { client: request = client, ...config } = options;
37735
+ return withUnwrap(request({
37736
+ method: "POST",
37737
+ url: "/c/{company}/hosting/storage/{bucketUuid}/encryption-rotation",
37738
+ security: [{
37739
+ type: "http",
37740
+ scheme: "bearer"
37741
+ }],
37742
+ ...config,
37743
+ throwOnError: config.throwOnError ?? true
37744
+ }));
37745
+ }
37746
+ /**
37716
37747
  * {@link /c/:company/hosting/environments/:environmentUuid/storage-usage}
37717
37748
  */
37718
37749
  function hostingEnvironmentsStorageUsage(options) {
@@ -39593,13 +39624,13 @@ function platformHostingPoolAllowance(options) {
39593
39624
  }));
39594
39625
  }
39595
39626
  /**
39596
- * {@link /platform/hosting/environments/:environmentUuid/realm}
39627
+ * {@link /platform/hosting/companies/:company/custd-authority}
39597
39628
  */
39598
- function platformHostingRealmStore(options) {
39629
+ function platformHostingCustdAuthorityStore(options) {
39599
39630
  const { client: request = client, ...config } = options;
39600
39631
  return withUnwrap(request({
39601
39632
  method: "POST",
39602
- url: "/platform/hosting/environments/{environmentUuid}/realm",
39633
+ url: "/platform/hosting/companies/{company}/custd-authority",
39603
39634
  security: [{
39604
39635
  type: "http",
39605
39636
  scheme: "bearer"
@@ -41215,7 +41246,7 @@ function emailText(email) {
41215
41246
  ].join("\n");
41216
41247
  }
41217
41248
  // src/commands/auth-account.ts
41218
- var USAGE$65 = [
41249
+ var USAGE$66 = [
41219
41250
  "Usage: hostingctl auth closure show",
41220
41251
  " hostingctl auth closure request --reason <text> (--current-password-file <path>|--current-password-stdin)",
41221
41252
  " hostingctl auth picture set --image-file <path>",
@@ -41241,26 +41272,26 @@ async function account$1(context, subcommand, rest) {
41241
41272
  if (subcommand === "picture") return await picture(context, action, tail);
41242
41273
  if (subcommand === "notifications") return await notifications(context, action, tail);
41243
41274
  if (subcommand === "sent-email" || subcommand === "sent-email-show") return await sentEmail(context, { kind: "auth" }, subcommand, rest);
41244
- throw new UsageError(USAGE$65);
41275
+ throw new UsageError(USAGE$66);
41245
41276
  }
41246
41277
  /** `auth closure show|request`. */
41247
41278
  async function closure(context, action, tail) {
41248
- if (tail.length > 0) throw new UsageError(USAGE$65);
41279
+ if (tail.length > 0) throw new UsageError(USAGE$66);
41249
41280
  if (action === "show") return (await accountClosureShow({})).data;
41250
41281
  if (action === "request") return await closeAccount(context);
41251
- throw new UsageError(USAGE$65);
41282
+ throw new UsageError(USAGE$66);
41252
41283
  }
41253
41284
  /** `auth picture set|remove`. */
41254
41285
  async function picture(context, action, tail) {
41255
- if (tail.length > 0) throw new UsageError(USAGE$65);
41286
+ if (tail.length > 0) throw new UsageError(USAGE$66);
41256
41287
  if (action === "set") return await setPicture(context);
41257
41288
  if (action === "remove") return await removePicture(context);
41258
- throw new UsageError(USAGE$65);
41289
+ throw new UsageError(USAGE$66);
41259
41290
  }
41260
41291
  /** `auth notifications`, `read <id>` or `read-all`. */
41261
41292
  async function notifications(context, action, tail) {
41262
41293
  if (action === void 0) {
41263
- if (tail.length > 0) throw new UsageError(USAGE$65);
41294
+ if (tail.length > 0) throw new UsageError(USAGE$66);
41264
41295
  return await allPages(async (page, perPage) => {
41265
41296
  const answer = await notificationIndex({ query: {
41266
41297
  page,
@@ -41276,7 +41307,7 @@ async function notifications(context, action, tail) {
41276
41307
  await notificationMarkAllRead({});
41277
41308
  return null;
41278
41309
  });
41279
- if (action !== "read" || tail.length !== 1) throw new UsageError(USAGE$65);
41310
+ if (action !== "read" || tail.length !== 1) throw new UsageError(USAGE$66);
41280
41311
  const notification = tail[0] ?? "";
41281
41312
  return await confirmableWrite(context, `Mark notification ${notification} read.`, async () => {
41282
41313
  await notificationMarkRead({ path: { notification } });
@@ -41292,11 +41323,11 @@ async function notifications(context, action, tail) {
41292
41323
  */
41293
41324
  async function closeAccount(context) {
41294
41325
  const reason = context.flags.get("--reason")?.trim() ?? "";
41295
- if (reason === "") throw new UsageError(`closure request needs --reason.\n\n${USAGE$65}`);
41326
+ if (reason === "") throw new UsageError(`closure request needs --reason.\n\n${USAGE$66}`);
41296
41327
  return await confirmableWrite(context, ["Close this account, which removes the data the review lists and keeps what it lists as retained.", " The review is re-read first, so the digest sent is the one you are shown now."].join("\n"), async () => {
41297
41328
  const review = (await accountClosureShow({})).data;
41298
41329
  if (review.blockingReasons.length > 0) throw new UsageError(["This account cannot be closed while these reasons block it:", ...review.blockingReasons.map((one) => ` ${one.companySlug} (${one.role}): ${one.reason}`)].join("\n"));
41299
- const currentPassword = readSecret(context, "current-password", 1024, USAGE$65);
41330
+ const currentPassword = readSecret(context, "current-password", 1024, USAGE$66);
41300
41331
  return (await accountClosureStore({ body: {
41301
41332
  reason,
41302
41333
  reviewedDigest: review.digest,
@@ -41308,7 +41339,7 @@ async function closeAccount(context) {
41308
41339
  async function setPicture(context) {
41309
41340
  const file = context.flags.get("--image-file") ?? "";
41310
41341
  return await confirmableWrite(context, file === "" ? "Set the profile picture." : `Set the profile picture to ${file}.`, async () => {
41311
- return (await profilePictureStore({ body: await imageUpload(file, USAGE$65) })).data;
41342
+ return (await profilePictureStore({ body: await imageUpload(file, USAGE$66) })).data;
41312
41343
  });
41313
41344
  }
41314
41345
  /** `auth picture remove`. */
@@ -41318,7 +41349,7 @@ async function removePicture(context) {
41318
41349
  });
41319
41350
  }
41320
41351
  // src/commands/auth-identity.ts
41321
- var USAGE$64 = [
41352
+ var USAGE$65 = [
41322
41353
  "Usage: hostingctl auth profile [--name <name>] [--email <email>] [--current-password-file <path>]",
41323
41354
  " hostingctl auth password (--current-password-file <path>|--current-password-stdin) (--new-password-file <path>|--new-password-stdin)",
41324
41355
  " hostingctl auth register --name <name> --email <email> (--password-file <path>|--password-stdin)",
@@ -41343,12 +41374,12 @@ var MAX_TOKEN_BYTES = 4096;
41343
41374
  /** One required flag's value, or a refusal naming the flag. */
41344
41375
  function required$8(context, flag) {
41345
41376
  const value = context.flags.get(flag)?.trim() ?? "";
41346
- if (value === "") throw new UsageError(`${flag} is required.\n\n${USAGE$64}`);
41377
+ if (value === "") throw new UsageError(`${flag} is required.\n\n${USAGE$65}`);
41347
41378
  return value;
41348
41379
  }
41349
41380
  /** No positional arguments: every input here is a flag or a secret source. */
41350
41381
  function noPositional(rest) {
41351
- if (rest.length > 0) throw new UsageError(USAGE$64);
41382
+ if (rest.length > 0) throw new UsageError(USAGE$65);
41352
41383
  }
41353
41384
  /** The API's password contract takes a confirmation; the CLI's one input is the new password itself. */
41354
41385
  function passwordBody(password) {
@@ -41371,16 +41402,16 @@ async function identity(context, subcommand, rest) {
41371
41402
  if (subcommand === "forgot-password") return await forgotPassword(context);
41372
41403
  if (subcommand === "reset-password") return await resetPassword(context);
41373
41404
  if (subcommand === "verify-email") return await verifyEmail(context);
41374
- throw new UsageError(USAGE$64);
41405
+ throw new UsageError(USAGE$65);
41375
41406
  }
41376
41407
  /** `auth profile`: the account's own name and email, with the current password only when the email changes. */
41377
41408
  async function profile$2(context) {
41378
41409
  const name = context.flags.get("--name")?.trim() ?? "";
41379
41410
  const email = context.flags.get("--email")?.trim() ?? "";
41380
- if (name === "" && email === "" && !context.flags.has("--current-password-file") && !context.flags.has("--current-password-stdin")) throw new UsageError(`Pass --name, --email, or both.\n\n${USAGE$64}`);
41411
+ if (name === "" && email === "" && !context.flags.has("--current-password-file") && !context.flags.has("--current-password-stdin")) throw new UsageError(`Pass --name, --email, or both.\n\n${USAGE$65}`);
41381
41412
  return await confirmableWrite(context, `Update the account's ${[name === "" ? null : `name to "${name}"`, email === "" ? null : `email to ${email}`].filter((one) => one !== null).join(" and ")}.`, async () => {
41382
41413
  const current = (await authMe({})).data;
41383
- const currentPassword = hasSecret(context, "current-password") ? readSecret(context, "current-password", MAX_PASSWORD_BYTES$1, USAGE$64) : void 0;
41414
+ const currentPassword = hasSecret(context, "current-password") ? readSecret(context, "current-password", MAX_PASSWORD_BYTES$1, USAGE$65) : void 0;
41384
41415
  return (await authUpdateProfile({ body: {
41385
41416
  name: name === "" ? current.name ?? "" : name,
41386
41417
  email: email === "" ? current.email ?? "" : email,
@@ -41396,8 +41427,8 @@ function hasSecret(context, name) {
41396
41427
  async function password$1(context) {
41397
41428
  return await confirmableWrite(context, "Change the account's password.", async () => {
41398
41429
  return (await authChangePassword({ body: {
41399
- currentPassword: readSecret(context, "current-password", MAX_PASSWORD_BYTES$1, USAGE$64),
41400
- ...passwordBody(readSecret(context, "new-password", MAX_PASSWORD_BYTES$1, USAGE$64))
41430
+ currentPassword: readSecret(context, "current-password", MAX_PASSWORD_BYTES$1, USAGE$65),
41431
+ ...passwordBody(readSecret(context, "new-password", MAX_PASSWORD_BYTES$1, USAGE$65))
41401
41432
  } })).data;
41402
41433
  });
41403
41434
  }
@@ -41409,7 +41440,7 @@ async function register$1(context) {
41409
41440
  return (await authRegister({ body: {
41410
41441
  name,
41411
41442
  email,
41412
- ...passwordBody(readSecret(context, "password", MAX_PASSWORD_BYTES$1, USAGE$64))
41443
+ ...passwordBody(readSecret(context, "password", MAX_PASSWORD_BYTES$1, USAGE$65))
41413
41444
  } })).data;
41414
41445
  });
41415
41446
  }
@@ -41424,8 +41455,8 @@ async function forgotPassword(context) {
41424
41455
  async function resetPassword(context) {
41425
41456
  const email = required$8(context, "--email");
41426
41457
  return await confirmableWrite(context, `Reset the password for ${email}.`, async () => {
41427
- const token = readSecret(context, "token", MAX_TOKEN_BYTES, USAGE$64);
41428
- const password = readSecret(context, "password", MAX_PASSWORD_BYTES$1, USAGE$64);
41458
+ const token = readSecret(context, "token", MAX_TOKEN_BYTES, USAGE$65);
41459
+ const password = readSecret(context, "password", MAX_PASSWORD_BYTES$1, USAGE$65);
41429
41460
  return (await authResetPassword({ body: {
41430
41461
  token,
41431
41462
  email,
@@ -41440,7 +41471,7 @@ async function verifyEmail(context) {
41440
41471
  });
41441
41472
  }
41442
41473
  // src/commands/auth-impersonation.ts
41443
- var USAGE$63 = [
41474
+ var USAGE$64 = [
41444
41475
  "Usage: hostingctl auth impersonate start --target <user-uuid> --company <slug> --reason <text> [--minutes <n>] --store-as <profile>",
41445
41476
  " hostingctl auth impersonate status",
41446
41477
  " hostingctl auth impersonate stop",
@@ -41473,7 +41504,7 @@ async function impersonation(context, rest) {
41473
41504
  if (action === "stop" && tail.length === 0) return await stop(context);
41474
41505
  if (action === "list" && tail.length === 0) return await list$7();
41475
41506
  if (action === "end" && tail.length === 1) return await end(context, tail[0] ?? "");
41476
- throw new UsageError(USAGE$63);
41507
+ throw new UsageError(USAGE$64);
41477
41508
  }
41478
41509
  /** `start`: mint a token for another user, and keep it in a profile of its own. */
41479
41510
  async function start$2(context) {
@@ -41481,8 +41512,8 @@ async function start$2(context) {
41481
41512
  const company = context.flags.get("--company")?.trim() ?? "";
41482
41513
  const reason = context.flags.get("--reason")?.trim() ?? "";
41483
41514
  const storeAs = context.flags.get("--store-as")?.trim() ?? "";
41484
- if (target === "" || company === "" || reason === "") throw new UsageError(`start needs --target, --company and --reason.\n\n${USAGE$63}`);
41485
- if (storeAs === "") throw new UsageError(`start needs --store-as <profile>.\n\n${USAGE$63}`);
41515
+ if (target === "" || company === "" || reason === "") throw new UsageError(`start needs --target, --company and --reason.\n\n${USAGE$64}`);
41516
+ if (storeAs === "") throw new UsageError(`start needs --store-as <profile>.\n\n${USAGE$64}`);
41486
41517
  const minutes = wholeNumberFlag(context.flags, "--minutes") ?? DEFAULT_MINUTES;
41487
41518
  const document = await readProfiles();
41488
41519
  const operator = namedProfile(context.flags, document);
@@ -41576,7 +41607,7 @@ async function list$7() {
41576
41607
  }
41577
41608
  /** `end <uuid>`: end one recorded session by its uuid. */
41578
41609
  async function end(context, uuid) {
41579
- if (uuid === "") throw new UsageError(USAGE$63);
41610
+ if (uuid === "") throw new UsageError(USAGE$64);
41580
41611
  return await confirmableWrite(context, `End impersonation session ${uuid}.`, async () => ({
41581
41612
  ...EMPTY,
41582
41613
  action: "end",
@@ -41584,7 +41615,7 @@ async function end(context, uuid) {
41584
41615
  }));
41585
41616
  }
41586
41617
  // src/commands/auth-push.ts
41587
- var USAGE$62 = [
41618
+ var USAGE$63 = [
41588
41619
  "Usage: hostingctl auth push-token set (--token-file <path>|--token-stdin)",
41589
41620
  " hostingctl auth push-token remove (--token-file <path>|--token-stdin)",
41590
41621
  "",
@@ -41595,12 +41626,12 @@ var USAGE$62 = [
41595
41626
  /** `auth push-token set|remove`: this account's mobile push registration. */
41596
41627
  async function authPush(context, rest) {
41597
41628
  const [action, ...tail] = rest;
41598
- if (tail.length > 0) throw new UsageError(USAGE$62);
41629
+ if (tail.length > 0) throw new UsageError(USAGE$63);
41599
41630
  if (action === "set") return {
41600
41631
  kind: "push-token",
41601
41632
  action: "set",
41602
41633
  sent: (await confirmableWrite(context, "Register this device's push token.", async () => {
41603
- await expoTokenStore({ body: { token: readSecret(context, "token", 4096, USAGE$62) } });
41634
+ await expoTokenStore({ body: { token: readSecret(context, "token", 4096, USAGE$63) } });
41604
41635
  return null;
41605
41636
  })).sent
41606
41637
  };
@@ -41608,11 +41639,11 @@ async function authPush(context, rest) {
41608
41639
  kind: "push-token",
41609
41640
  action: "remove",
41610
41641
  sent: (await confirmableWrite(context, "Remove this device's push token.", async () => {
41611
- await expoTokenDestroy({ query: { token: readSecret(context, "token", 4096, USAGE$62) } });
41642
+ await expoTokenDestroy({ query: { token: readSecret(context, "token", 4096, USAGE$63) } });
41612
41643
  return null;
41613
41644
  })).sent
41614
41645
  };
41615
- throw new UsageError(USAGE$62);
41646
+ throw new UsageError(USAGE$63);
41616
41647
  }
41617
41648
  /** The `auth push-token` renderer. */
41618
41649
  function authPushText(report) {
@@ -41840,51 +41871,51 @@ var AUTH_TOPICS = [
41840
41871
  },
41841
41872
  {
41842
41873
  path: ["profile"],
41843
- usage: USAGE$64
41874
+ usage: USAGE$65
41844
41875
  },
41845
41876
  {
41846
41877
  path: ["password"],
41847
- usage: USAGE$64
41878
+ usage: USAGE$65
41848
41879
  },
41849
41880
  {
41850
41881
  path: ["register"],
41851
- usage: USAGE$64
41882
+ usage: USAGE$65
41852
41883
  },
41853
41884
  {
41854
41885
  path: ["forgot-password"],
41855
- usage: USAGE$64
41886
+ usage: USAGE$65
41856
41887
  },
41857
41888
  {
41858
41889
  path: ["reset-password"],
41859
- usage: USAGE$64
41890
+ usage: USAGE$65
41860
41891
  },
41861
41892
  {
41862
41893
  path: ["verify-email"],
41863
- usage: USAGE$64
41894
+ usage: USAGE$65
41864
41895
  },
41865
41896
  {
41866
41897
  path: ["closure"],
41867
- usage: USAGE$65
41898
+ usage: USAGE$66
41868
41899
  },
41869
41900
  {
41870
41901
  path: ["picture"],
41871
- usage: USAGE$65
41902
+ usage: USAGE$66
41872
41903
  },
41873
41904
  {
41874
41905
  path: ["notifications"],
41875
- usage: USAGE$65
41906
+ usage: USAGE$66
41876
41907
  },
41877
41908
  {
41878
41909
  path: ["push-token"],
41879
- usage: USAGE$62
41910
+ usage: USAGE$63
41880
41911
  },
41881
41912
  {
41882
41913
  path: ["impersonate"],
41883
- usage: USAGE$63
41914
+ usage: USAGE$64
41884
41915
  }
41885
41916
  ];
41886
41917
  // src/commands/auth-sessions.ts
41887
- var USAGE$61 = [
41918
+ var USAGE$62 = [
41888
41919
  "Usage: hostingctl auth profiles",
41889
41920
  "",
41890
41921
  "Lists every session this machine holds: the profile name, the API it signs in to, when its access token",
@@ -41902,7 +41933,7 @@ var USAGE$61 = [
41902
41933
  * made a machine signed in to two accounts look like a machine signed in to none.
41903
41934
  */
41904
41935
  async function authSessions(context, rest) {
41905
- if (rest.length > 0) throw new UsageError(USAGE$61);
41936
+ if (rest.length > 0) throw new UsageError(USAGE$62);
41906
41937
  const document = await readProfiles();
41907
41938
  const selected = namedProfile(context.flags, document);
41908
41939
  const profiles = Object.entries(document.profiles).map(([name, stored]) => ({
@@ -42650,7 +42681,7 @@ var MAILBOX_TOPICS = [{
42650
42681
  usage: MAILBOX_IMPORT_USAGE
42651
42682
  }];
42652
42683
  // src/commands/mailbox-recovery.ts
42653
- var USAGE$60 = [
42684
+ var USAGE$61 = [
42654
42685
  "Usage: hostingctl mailbox recovery <request|verify|reset> [options]",
42655
42686
  "",
42656
42687
  " request --address <address> Ask for a self-service reset link for a mailbox address.",
@@ -42678,16 +42709,16 @@ function isSessionlessMailboxCommand(argv) {
42678
42709
  /** `mailbox recovery request|verify|reset`: the unauthenticated, token-authorized recovery journey. */
42679
42710
  async function runMailboxRecovery(context, rest) {
42680
42711
  const [action, extra] = rest;
42681
- if (extra !== void 0) throw new UsageError(USAGE$60);
42712
+ if (extra !== void 0) throw new UsageError(USAGE$61);
42682
42713
  if (action === "request") return await request$3(context);
42683
42714
  if (action === "verify") return await verify$2(context);
42684
42715
  if (action === "reset") return await reset(context);
42685
- throw new UsageError(USAGE$60);
42716
+ throw new UsageError(USAGE$61);
42686
42717
  }
42687
42718
  /** `request`: the answer is deliberately identical whether or not an eligible mailbox exists. */
42688
42719
  async function request$3(context) {
42689
42720
  const address = context.flags.get("--address");
42690
- if (address === void 0 || address === "") throw new UsageError(USAGE$60);
42721
+ if (address === void 0 || address === "") throw new UsageError(USAGE$61);
42691
42722
  return await confirmableWrite(context, `Request a mailbox recovery link for ${address}. The answer is the same for an unknown mailbox, one with no confirmed fallback, and an eligible one.`, async () => (await emailMailboxRecoveryRequest({ body: { address } })).data);
42692
42723
  }
42693
42724
  /** `verify`: the token is read only when the send actually happens, so a dry run never touches a secret. */
@@ -42708,7 +42739,7 @@ async function reset(context) {
42708
42739
  }
42709
42740
  /** One recovery token or new password, read from a private file or stdin under the recovery bound. */
42710
42741
  function recoverySecret(context, name) {
42711
- return readSecret(context, name, MAX_RECOVERY_SECRET_BYTES, USAGE$60);
42742
+ return readSecret(context, name, MAX_RECOVERY_SECRET_BYTES, USAGE$61);
42712
42743
  }
42713
42744
  // src/commands/mailbox.ts
42714
42745
  /**
@@ -42841,7 +42872,7 @@ async function environmentGeneration(path) {
42841
42872
  }
42842
42873
  // src/commands/access-credentials.ts
42843
42874
  /** The usage this module refuses with, owned by the commands it implements. */
42844
- var USAGE$59 = [
42875
+ var USAGE$60 = [
42845
42876
  "Usage: hostingctl access key add <environment-uuid> --company <slug> --access-user <uuid> --name <n> --public-key-file <path>",
42846
42877
  " hostingctl access key remove <environment-uuid> --company <slug> --access-user <uuid> <key-uuid>",
42847
42878
  " hostingctl access password set <environment-uuid> --company <slug> --access-user <uuid> (--password-file <path>|--password-stdin)",
@@ -42859,12 +42890,12 @@ var USAGE$59 = [
42859
42890
  /** `key add|remove`. */
42860
42891
  async function key(context, path, action, tail) {
42861
42892
  const accessUserUuid = context.flags.get("--access-user") ?? "";
42862
- if (accessUserUuid === "") throw new UsageError(`key needs --access-user.\\n\\n${USAGE$59}`);
42893
+ if (accessUserUuid === "") throw new UsageError(`key needs --access-user.\\n\\n${USAGE$60}`);
42863
42894
  if (action === "add") {
42864
- if (tail.length > 0) throw new UsageError(USAGE$59);
42895
+ if (tail.length > 0) throw new UsageError(USAGE$60);
42865
42896
  const name = context.flags.get("--name")?.trim() ?? "";
42866
42897
  const file = context.flags.get("--public-key-file") ?? "";
42867
- if (name === "" || file === "") throw new UsageError(`key add needs --name and --public-key-file.\\n\\n${USAGE$59}`);
42898
+ if (name === "" || file === "") throw new UsageError(`key add needs --name and --public-key-file.\\n\\n${USAGE$60}`);
42868
42899
  const publicKey = readPrivateFile(file, "public key", 8192).trim();
42869
42900
  return await confirmableWrite(context, `Add key "${name}" to login ${accessUserUuid}.`, async () => {
42870
42901
  const body = {
@@ -42883,7 +42914,7 @@ async function key(context, path, action, tail) {
42883
42914
  }
42884
42915
  if (action === "remove") {
42885
42916
  const [keyUuid, ...extra] = tail;
42886
- if (keyUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$59);
42917
+ if (keyUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$60);
42887
42918
  return await confirmableWrite(context, `Remove key ${keyUuid} from login ${accessUserUuid}.`, async () => {
42888
42919
  return (await hostingAccessDestroyKey({
42889
42920
  path: {
@@ -42895,18 +42926,18 @@ async function key(context, path, action, tail) {
42895
42926
  })).data;
42896
42927
  });
42897
42928
  }
42898
- throw new UsageError(USAGE$59);
42929
+ throw new UsageError(USAGE$60);
42899
42930
  }
42900
42931
  /** `password set|clear`. */
42901
42932
  async function password(context, path, action, tail) {
42902
42933
  const accessUserUuid = context.flags.get("--access-user") ?? "";
42903
- if (accessUserUuid === "" || tail.length > 0) throw new UsageError(`password needs --access-user.\\n\\n${USAGE$59}`);
42934
+ if (accessUserUuid === "" || tail.length > 0) throw new UsageError(`password needs --access-user.\\n\\n${USAGE$60}`);
42904
42935
  const userPath = {
42905
42936
  ...path,
42906
42937
  accessUserUuid
42907
42938
  };
42908
42939
  if (action === "set") return await confirmableWrite(context, "Set this login's password. The previous password stops working when the change is applied.", async () => {
42909
- const password = readSecret(context, "password", 1024, USAGE$59);
42940
+ const password = readSecret(context, "password", 1024, USAGE$60);
42910
42941
  const body = {
42911
42942
  desiredGeneration: await environmentGeneration(path),
42912
42943
  password,
@@ -42924,7 +42955,7 @@ async function password(context, path, action, tail) {
42924
42955
  query
42925
42956
  })).data;
42926
42957
  });
42927
- throw new UsageError(USAGE$59);
42958
+ throw new UsageError(USAGE$60);
42928
42959
  }
42929
42960
  // src/commands/booleans.ts
42930
42961
  /**
@@ -42947,7 +42978,7 @@ function onOff$5(context, flag, usage) {
42947
42978
  return value;
42948
42979
  }
42949
42980
  // src/commands/access-admin.ts
42950
- var USAGE$58 = [
42981
+ var USAGE$59 = [
42951
42982
  "Usage: hostingctl access settings <environment-uuid> --company <slug>",
42952
42983
  " hostingctl access settings-set <environment-uuid> --company <slug> --password <on|off> --sftp-only <on|off>",
42953
42984
  " hostingctl access grants <environment-uuid> --company <slug>",
@@ -42975,7 +43006,7 @@ var USAGE$58 = [
42975
43006
  /** `access settings|settings-set|grants|grant|un-grant|key|password|user-show|user-set|received`. */
42976
43007
  async function accessAdmin(context, subcommand, rest) {
42977
43008
  if (subcommand === "received") {
42978
- if (rest.length > 0) throw new UsageError(USAGE$58);
43009
+ if (rest.length > 0) throw new UsageError(USAGE$59);
42979
43010
  return {
42980
43011
  kind: "received",
42981
43012
  grants: (await hostingAccessReceivedIndex({})).data.items
@@ -42983,7 +43014,7 @@ async function accessAdmin(context, subcommand, rest) {
42983
43014
  }
42984
43015
  const [first, ...after] = rest;
42985
43016
  const takesAction = subcommand === "key" || subcommand === "password";
42986
- const path = await environmentPath$1(context, takesAction ? after[0] : first, USAGE$58);
43017
+ const path = await environmentPath$1(context, takesAction ? after[0] : first, USAGE$59);
42987
43018
  const tail = takesAction ? after.slice(1) : after;
42988
43019
  return await routed(context, subcommand, path, first ?? "", tail);
42989
43020
  }
@@ -42998,7 +43029,7 @@ async function routed(context, subcommand, path, action, tail) {
42998
43029
  if (subcommand === "password") return await written$9(password(context, path, action, tail));
42999
43030
  if (subcommand === "user-show") return await userShow(path, tail);
43000
43031
  if (subcommand === "user-set") return await written$9(userSet(context, path, tail));
43001
- throw new UsageError(USAGE$58);
43032
+ throw new UsageError(USAGE$59);
43002
43033
  }
43003
43034
  /** Tag one write's outcome with the group that produced it. */
43004
43035
  async function written$9(pending) {
@@ -43009,7 +43040,7 @@ async function written$9(pending) {
43009
43040
  }
43010
43041
  /** A company-wide read takes no positionals. */
43011
43042
  function noExtra$22(rest) {
43012
- if (rest.length > 0) throw new UsageError(USAGE$58);
43043
+ if (rest.length > 0) throw new UsageError(USAGE$59);
43013
43044
  }
43014
43045
  /** `settings`. */
43015
43046
  async function settings$1(path, rest) {
@@ -43022,8 +43053,8 @@ async function settings$1(path, rest) {
43022
43053
  /** `settings-set --password … --sftp-only …`. */
43023
43054
  async function settingsSet(context, path, rest) {
43024
43055
  noExtra$22(rest);
43025
- const passwordEnabled = onOff$5(context, "--password", USAGE$58);
43026
- const sftpOnly = onOff$5(context, "--sftp-only", USAGE$58);
43056
+ const passwordEnabled = onOff$5(context, "--password", USAGE$59);
43057
+ const sftpOnly = onOff$5(context, "--sftp-only", USAGE$59);
43027
43058
  return await confirmableWrite(context, [`Set password sign-in ${passwordEnabled ? "on" : "off"} and SFTP-only ${sftpOnly ? "on" : "off"}.`, " Logins keep their keys either way; this changes how a login may authenticate."].join("\\n"), async () => {
43028
43059
  return (await hostingAccessUpdate({
43029
43060
  path,
@@ -43048,7 +43079,7 @@ async function grant$1(context, path, rest) {
43048
43079
  noExtra$22(rest);
43049
43080
  const userUuid = context.flags.get("--user") ?? "";
43050
43081
  const accessUserUuid = context.flags.get("--access-user") ?? "";
43051
- if (userUuid === "" || accessUserUuid === "") throw new UsageError(`grant needs --user and --access-user.\\n\\n${USAGE$58}`);
43082
+ if (userUuid === "" || accessUserUuid === "") throw new UsageError(`grant needs --user and --access-user.\\n\\n${USAGE$59}`);
43052
43083
  return await confirmableWrite(context, `Grant user ${userUuid} the login ${accessUserUuid} on this environment.`, async () => {
43053
43084
  return (await hostingAccessGrantStore({
43054
43085
  path,
@@ -43063,7 +43094,7 @@ async function grant$1(context, path, rest) {
43063
43094
  /** `un-grant <grant-uuid>`. */
43064
43095
  async function unGrant(context, path, rest) {
43065
43096
  const [grantUuid, ...extra] = rest;
43066
- if (grantUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$58);
43097
+ if (grantUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$59);
43067
43098
  return await confirmableWrite(context, `Withdraw grant ${grantUuid}. The login stays; only this account's access to it ends.`, async () => {
43068
43099
  const query = { desiredGeneration: await environmentGeneration(path) };
43069
43100
  return (await hostingAccessGrantDestroy({
@@ -43078,7 +43109,7 @@ async function unGrant(context, path, rest) {
43078
43109
  /** `user-show <access-user-uuid>`. */
43079
43110
  async function userShow(path, rest) {
43080
43111
  const [accessUserUuid, ...extra] = rest;
43081
- if (accessUserUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$58);
43112
+ if (accessUserUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$59);
43082
43113
  return {
43083
43114
  kind: "user",
43084
43115
  user: (await hostingAccessShowUser({ path: {
@@ -43090,7 +43121,7 @@ async function userShow(path, rest) {
43090
43121
  /** `user-set <access-user-uuid> [--name] [--enabled] [--read-only]`. */
43091
43122
  async function userSet(context, path, rest) {
43092
43123
  const [accessUserUuid, ...extra] = rest;
43093
- if (accessUserUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$58);
43124
+ if (accessUserUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$59);
43094
43125
  const userPath = {
43095
43126
  ...path,
43096
43127
  accessUserUuid
@@ -43099,7 +43130,7 @@ async function userSet(context, path, rest) {
43099
43130
  const name = context.flags.get("--name")?.trim();
43100
43131
  const enabled = onOffFlag(context, "--enabled");
43101
43132
  const readOnly = onOffFlag(context, "--read-only");
43102
- if (name === void 0 && enabled === null && readOnly === null) throw new UsageError(`user-set needs --name, --enabled, --read-only or a combination.\\n\\n${USAGE$58}`);
43133
+ if (name === void 0 && enabled === null && readOnly === null) throw new UsageError(`user-set needs --name, --enabled, --read-only or a combination.\\n\\n${USAGE$59}`);
43103
43134
  const body = {
43104
43135
  desiredGeneration: await environmentGeneration(path),
43105
43136
  name: name === void 0 || name === "" ? current.name : name,
@@ -43249,43 +43280,43 @@ var ACCESS_METADATA = {
43249
43280
  var ACCESS_TOPICS = [
43250
43281
  {
43251
43282
  path: ["settings"],
43252
- usage: USAGE$58
43283
+ usage: USAGE$59
43253
43284
  },
43254
43285
  {
43255
43286
  path: ["settings-set"],
43256
- usage: USAGE$58
43287
+ usage: USAGE$59
43257
43288
  },
43258
43289
  {
43259
43290
  path: ["grants"],
43260
- usage: USAGE$58
43291
+ usage: USAGE$59
43261
43292
  },
43262
43293
  {
43263
43294
  path: ["grant"],
43264
- usage: USAGE$58
43295
+ usage: USAGE$59
43265
43296
  },
43266
43297
  {
43267
43298
  path: ["un-grant"],
43268
- usage: USAGE$58
43299
+ usage: USAGE$59
43269
43300
  },
43270
43301
  {
43271
43302
  path: ["user-show"],
43272
- usage: USAGE$58
43303
+ usage: USAGE$59
43273
43304
  },
43274
43305
  {
43275
43306
  path: ["user-set"],
43276
- usage: USAGE$58
43307
+ usage: USAGE$59
43277
43308
  },
43278
43309
  {
43279
43310
  path: ["received"],
43280
- usage: USAGE$58
43311
+ usage: USAGE$59
43281
43312
  },
43282
43313
  {
43283
43314
  path: ["key"],
43284
- usage: USAGE$59
43315
+ usage: USAGE$60
43285
43316
  },
43286
43317
  {
43287
43318
  path: ["password"],
43288
- usage: USAGE$59
43319
+ usage: USAGE$60
43289
43320
  }
43290
43321
  ];
43291
43322
  // src/commands/access.ts
@@ -43650,7 +43681,7 @@ function notAMember(unknown, eligible) {
43650
43681
  ].join("\n");
43651
43682
  }
43652
43683
  // src/commands/environment-storage-usage.ts
43653
- var USAGE$57 = [
43684
+ var USAGE$58 = [
43654
43685
  "Usage: hostingctl environment storage-usage <environment-uuid> --company <slug>",
43655
43686
  "",
43656
43687
  " storage-usage What each volume was allocated, what it has written and what is left, from the",
@@ -43669,7 +43700,7 @@ var USAGE$57 = [
43669
43700
  */
43670
43701
  async function environmentStorageUsage(context, rest) {
43671
43702
  const [uuid, ...extra] = rest;
43672
- if (uuid === void 0 || extra.length > 0) throw new UsageError(USAGE$57);
43703
+ if (uuid === void 0 || extra.length > 0) throw new UsageError(USAGE$58);
43673
43704
  return (await hostingEnvironmentsStorageUsage({ path: {
43674
43705
  company: await requireCompany(context.flags),
43675
43706
  environmentUuid: uuid
@@ -44117,7 +44148,7 @@ var ADMIN_ACTIONS = /* @__PURE__ */ new Set([
44117
44148
  "recovery-cancel"
44118
44149
  ]);
44119
44150
  // src/commands/application-admin.ts
44120
- var USAGE$56 = [
44151
+ var USAGE$57 = [
44121
44152
  "Usage: hostingctl application administrator <environment-uuid> <application-uuid> --company <slug>",
44122
44153
  " hostingctl application administrator-reset|administrator-reveal <environment-uuid> <application-uuid> --company <slug>",
44123
44154
  " hostingctl application recovery-status|recovery-retry|recovery-cancel <environment-uuid> <application-uuid> <recovery-uuid> --company <slug>",
@@ -44144,7 +44175,7 @@ async function applicationAdmin(context, action, path, rest) {
44144
44175
  if (action === "administrator-reset") return await credential(context, path, rest, "reset");
44145
44176
  if (action === "administrator-reveal") return await credential(context, path, rest, "reveal");
44146
44177
  const [recoveryUuid, ...extra] = rest;
44147
- if (recoveryUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$56);
44178
+ if (recoveryUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$57);
44148
44179
  const recoveryPath = {
44149
44180
  ...path,
44150
44181
  recoveryUuid
@@ -44157,7 +44188,7 @@ async function applicationAdmin(context, action, path, rest) {
44157
44188
  return (await hostingApplicationRecoveryRetry({ path: recoveryPath })).data;
44158
44189
  }));
44159
44190
  if (action === "recovery-cancel") return await written$8(confirmableWrite(context, "Cancel this recovery. Writers are released and the application returns to its previous state.", async () => (await hostingApplicationRecoveryCancel({ path: recoveryPath })).data));
44160
- throw new UsageError(USAGE$56);
44191
+ throw new UsageError(USAGE$57);
44161
44192
  }
44162
44193
  /** `administrator-reset|reveal`: the one place the application's own password is printed. */
44163
44194
  async function credential(context, path, rest, kind) {
@@ -44178,7 +44209,7 @@ async function written$8(pending) {
44178
44209
  }
44179
44210
  /** No positional arguments, or a usage refusal. */
44180
44211
  function noExtra$21(rest) {
44181
- if (rest.length > 0) throw new UsageError(USAGE$56);
44212
+ if (rest.length > 0) throw new UsageError(USAGE$57);
44182
44213
  }
44183
44214
  /** One recovery as one line: what it is doing, how far, and what it holds. */
44184
44215
  function recoveryLines$1(one) {
@@ -44577,7 +44608,7 @@ async function requireSelectionBranch(company, selectionUuid, branch) {
44577
44608
  throw new UsageError(`Branch "${branch}" is not a branch of ${found.selection.owner}/${found.selection.name}. Its branches: ${offered.branches.join(", ")}.`);
44578
44609
  }
44579
44610
  // src/commands/application-builds.ts
44580
- var USAGE$55 = [
44611
+ var USAGE$56 = [
44581
44612
  "Usage: hostingctl application build <environment-uuid> <application-uuid> --company <slug> [--source <selection-uuid> | --source-upload <upload-uuid> | --ssh-source <connection-uuid>] [--idempotency-key <key>] [--wait [--timeout <seconds>]]",
44582
44613
  " hostingctl application build-log <environment-uuid> <application-uuid> <build-uuid> --company <slug>",
44583
44614
  " hostingctl application build-retry|build-cancel <environment-uuid> <application-uuid> <build-uuid> --company <slug>",
@@ -44607,7 +44638,7 @@ async function applicationBuilds(context, action, path, rest) {
44607
44638
  }
44608
44639
  if (action === "source-bind") return await bind$2(context, path, rest);
44609
44640
  const [buildUuid, ...extra] = rest;
44610
- if (buildUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$55);
44641
+ if (buildUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$56);
44611
44642
  const buildPath = {
44612
44643
  ...path,
44613
44644
  buildUuid
@@ -44622,7 +44653,7 @@ async function applicationBuilds(context, action, path, rest) {
44622
44653
  if (action === "build-cancel") return await written$7(confirmableWrite(context, "Stop this build. A running build stops where it is.", async () => {
44623
44654
  return (await hostingDeploymentCancel({ path: buildPath })).data;
44624
44655
  }));
44625
- throw new UsageError(USAGE$55);
44656
+ throw new UsageError(USAGE$56);
44626
44657
  }
44627
44658
  /**
44628
44659
  * `source-bind --selection … | --ssh-source … [--source-kind …] [--branch …] [--tag …] [--auto-deploy …]`.
@@ -44634,7 +44665,7 @@ async function bind$2(context, path, rest) {
44634
44665
  noExtra$20(rest);
44635
44666
  const repositorySelectionUuid = context.flags.get("--selection")?.trim() ?? "";
44636
44667
  const sshSourceUuid = context.flags.get("--ssh-source")?.trim() ?? "";
44637
- if (repositorySelectionUuid === "" === (sshSourceUuid === "")) throw new UsageError(`source-bind needs exactly one of --selection or --ssh-source.\n\n${USAGE$55}`);
44668
+ if (repositorySelectionUuid === "" === (sshSourceUuid === "")) throw new UsageError(`source-bind needs exactly one of --selection or --ssh-source.\n\n${USAGE$56}`);
44638
44669
  const sourceKind = sourceKindFlag(context, sshSourceUuid === "" ? "github" : "ssh");
44639
44670
  const branch = context.flags.get("--branch")?.trim();
44640
44671
  const tag = context.flags.get("--tag")?.trim();
@@ -44659,8 +44690,8 @@ async function bind$2(context, path, rest) {
44659
44690
  function sourceKindFlag(context, implied) {
44660
44691
  const value = context.flags.get("--source-kind")?.trim() ?? "";
44661
44692
  if (value === "") return implied;
44662
- if (value !== "github" && value !== "ssh") throw new UsageError(`--source-kind must be github or ssh (got "${value}").\n\n${USAGE$55}`);
44663
- if (value !== implied) throw new UsageError(`--source-kind ${value} does not match the ${implied} reference named.\n\n${USAGE$55}`);
44693
+ if (value !== "github" && value !== "ssh") throw new UsageError(`--source-kind must be github or ssh (got "${value}").\n\n${USAGE$56}`);
44694
+ if (value !== implied) throw new UsageError(`--source-kind ${value} does not match the ${implied} reference named.\n\n${USAGE$56}`);
44664
44695
  return value;
44665
44696
  }
44666
44697
  /** Tag one write's outcome with the group that produced it. */
@@ -44672,7 +44703,7 @@ async function written$7(pending) {
44672
44703
  }
44673
44704
  /** No positional arguments, or a usage refusal. */
44674
44705
  function noExtra$20(rest) {
44675
- if (rest.length > 0) throw new UsageError(USAGE$55);
44706
+ if (rest.length > 0) throw new UsageError(USAGE$56);
44676
44707
  }
44677
44708
  /**
44678
44709
  * `build <env> <workload> [--source …|--source-upload …|--ssh-source …] [--idempotency-key …]`: queue a build.
@@ -44799,7 +44830,7 @@ function overCurrent(current, named) {
44799
44830
  };
44800
44831
  }
44801
44832
  // src/commands/application-cache.ts
44802
- var USAGE$54 = [
44833
+ var USAGE$55 = [
44803
44834
  "Usage: hostingctl application cache <environment-uuid> <application-uuid> --company <slug>",
44804
44835
  " hostingctl application cache-set <environment-uuid> <application-uuid> --company <slug> [--enabled <on|off>] [--fresh <s>] [--background <s>] [--browser <s>] [--reset <on|off>] [--template <id> | --rules-file <rules.json>]",
44805
44836
  " hostingctl application cache-purge <environment-uuid> <application-uuid> --company <slug>",
@@ -44842,7 +44873,7 @@ async function applicationCache(context, action, path, rest) {
44842
44873
  }
44843
44874
  if (action === "canonical") {
44844
44875
  const routeUuid = context.flags.get("--route") ?? "";
44845
- if (routeUuid === "") throw new UsageError(`canonical needs --route.\n\n${USAGE$54}`);
44876
+ if (routeUuid === "") throw new UsageError(`canonical needs --route.\n\n${USAGE$55}`);
44846
44877
  return await written$6(confirmableWrite(context, `Make route ${routeUuid} this application's canonical address.`, async () => {
44847
44878
  const desiredGeneration = await generation$1(path);
44848
44879
  return (await hostingApplicationRouteSelectCanonical({
@@ -44854,7 +44885,7 @@ async function applicationCache(context, action, path, rest) {
44854
44885
  })).data;
44855
44886
  }));
44856
44887
  }
44857
- throw new UsageError(USAGE$54);
44888
+ throw new UsageError(USAGE$55);
44858
44889
  }
44859
44890
  /** `application routes|route-add|route-remove`, which are environment-scoped. */
44860
44891
  async function applicationRoutes(context, action, path, rest) {
@@ -44868,7 +44899,7 @@ async function applicationRoutes(context, action, path, rest) {
44868
44899
  if (action === "route-add") return await addRoute(context, path, rest);
44869
44900
  if (action === "route-remove") {
44870
44901
  const [routeUuid, ...extra] = rest;
44871
- if (routeUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$54);
44902
+ if (routeUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$55);
44872
44903
  return await written$6(confirmableWrite(context, `Remove route ${routeUuid}.`, async () => {
44873
44904
  const body = { desiredGeneration: await generation$1(path) };
44874
44905
  return (await hostingApplicationRouteRemove({
@@ -44880,7 +44911,7 @@ async function applicationRoutes(context, action, path, rest) {
44880
44911
  })).data;
44881
44912
  }));
44882
44913
  }
44883
- throw new UsageError(USAGE$54);
44914
+ throw new UsageError(USAGE$55);
44884
44915
  }
44885
44916
  /** `route-add --source … --target … --path …`. */
44886
44917
  async function addRoute(context, path, rest) {
@@ -44888,7 +44919,7 @@ async function addRoute(context, path, rest) {
44888
44919
  const sourceWorkloadUuid = context.flags.get("--source") ?? "";
44889
44920
  const targetWorkloadUuid = context.flags.get("--target") ?? "";
44890
44921
  const routePath = context.flags.get("--path") ?? "";
44891
- if (sourceWorkloadUuid === "" || targetWorkloadUuid === "" || routePath === "") throw new UsageError(`route-add needs --source, --target and --path.\n\n${USAGE$54}`);
44922
+ if (sourceWorkloadUuid === "" || targetWorkloadUuid === "" || routePath === "") throw new UsageError(`route-add needs --source, --target and --path.\n\n${USAGE$55}`);
44892
44923
  const domainUuid = context.flags.get("--domain")?.trim();
44893
44924
  const canonical = onOffFlag(context, "--canonical") ?? false;
44894
44925
  return await written$6(confirmableWrite(context, `Route ${routePath} from ${sourceWorkloadUuid} to ${targetWorkloadUuid}${canonical ? " as canonical" : ""}.`, async () => {
@@ -44921,11 +44952,11 @@ function cacheBody(context) {
44921
44952
  const raw = context.flags.get(flag)?.trim() ?? "";
44922
44953
  if (raw === "") continue;
44923
44954
  const value = Number(raw);
44924
- if (!Number.isInteger(value) || value < 0) throw new UsageError(`${flag} must be a whole number of seconds.\n\n${USAGE$54}`);
44955
+ if (!Number.isInteger(value) || value < 0) throw new UsageError(`${flag} must be a whole number of seconds.\n\n${USAGE$55}`);
44925
44956
  body[field] = value;
44926
44957
  }
44927
- addCacheRules(context, body, USAGE$54);
44928
- if (Object.keys(body).length === 0) throw new UsageError(`cache-set needs at least one field.\n\n${USAGE$54}`);
44958
+ addCacheRules(context, body, USAGE$55);
44959
+ if (Object.keys(body).length === 0) throw new UsageError(`cache-set needs at least one field.\n\n${USAGE$55}`);
44929
44960
  return body;
44930
44961
  }
44931
44962
  /** The environment's generation, which every write here must name. */
@@ -44941,7 +44972,7 @@ async function written$6(pending) {
44941
44972
  }
44942
44973
  /** No positional arguments, or a usage refusal. */
44943
44974
  function noExtra$19(rest) {
44944
- if (rest.length > 0) throw new UsageError(USAGE$54);
44975
+ if (rest.length > 0) throw new UsageError(USAGE$55);
44945
44976
  }
44946
44977
  /** The `application cache*|routes|route-*` renderer. */
44947
44978
  function applicationCacheText(report) {
@@ -45101,7 +45132,7 @@ function describeAuth(workloadUuid, auth) {
45101
45132
  ].join("\n");
45102
45133
  }
45103
45134
  // src/commands/application-create.ts
45104
- var USAGE$53 = [
45135
+ var USAGE$54 = [
45105
45136
  "Usage: hostingctl application create <environment-uuid> --company <slug> --type <type> --name <name>",
45106
45137
  " --cpu-request <millicores> --memory-request <MiB>",
45107
45138
  " [--cpu-limit <millicores>] [--memory-limit <MiB>] [--label <text>] [--hostname <host>]",
@@ -45138,11 +45169,11 @@ var CREATE_FLAGS = [{
45138
45169
  }];
45139
45170
  /** `application create <env> …`, from the `application` command. */
45140
45171
  async function applicationCreate(context, path, rest) {
45141
- if (rest.length > 0) throw new UsageError(USAGE$53);
45172
+ if (rest.length > 0) throw new UsageError(USAGE$54);
45142
45173
  const type = context.flags.get("--type")?.trim().toLowerCase() ?? "";
45143
- if (!TYPES.has(type)) throw new UsageError(`create needs --type wordpress, moodle, infisical, supabase-auth, supabase-rest or supabase-realtime.\n\n${USAGE$53}`);
45174
+ if (!TYPES.has(type)) throw new UsageError(`create needs --type wordpress, moodle, infisical, supabase-auth, supabase-rest or supabase-realtime.\n\n${USAGE$54}`);
45144
45175
  const name = context.flags.get("--name")?.trim() ?? "";
45145
- if (name === "") throw new UsageError(`create needs --name.\n\n${USAGE$53}`);
45176
+ if (name === "") throw new UsageError(`create needs --name.\n\n${USAGE$54}`);
45146
45177
  const resources = requestedResources(context);
45147
45178
  const label = context.flags.get("--label")?.trim() ?? "";
45148
45179
  const intendedHostname = context.flags.get("--hostname")?.trim().toLowerCase() ?? "";
@@ -45187,7 +45218,7 @@ function requestedResources(context) {
45187
45218
  /** One required whole-number flag, or a usage refusal naming the flag. */
45188
45219
  function required$7(context, flag) {
45189
45220
  const value = wholeNumberFlag(context.flags, flag);
45190
- if (value === null) throw new UsageError(`create needs ${flag}.\n\n${USAGE$53}`);
45221
+ if (value === null) throw new UsageError(`create needs ${flag}.\n\n${USAGE$54}`);
45191
45222
  return value;
45192
45223
  }
45193
45224
  // src/commands/application-import-fetch.ts
@@ -45254,7 +45285,7 @@ async function fetchImport(context, action, path, rest) {
45254
45285
  })).data);
45255
45286
  }
45256
45287
  // src/commands/application-upload.ts
45257
- var USAGE$52 = [
45288
+ var USAGE$53 = [
45258
45289
  "Usage: hostingctl application import-upload <environment-uuid> <application-uuid> --company <slug>",
45259
45290
  " --database <path-to.sql> --archive <path-to.zip|path-to.jpa> | --directory <dir>",
45260
45291
  "",
@@ -45283,12 +45314,12 @@ var STAGING_WAIT_MS = 9e5;
45283
45314
  /** How often the staged import is asked for its state while the queue works. */
45284
45315
  var STAGING_POLL_MS = 3e3;
45285
45316
  async function applicationUpload(context, path, rest) {
45286
- if (rest.length > 0) throw new UsageError(USAGE$52);
45317
+ if (rest.length > 0) throw new UsageError(USAGE$53);
45287
45318
  const database = context.flags.get("--database")?.trim() ?? "";
45288
45319
  const archive = context.flags.get("--archive")?.trim() ?? "";
45289
45320
  const directory = context.flags.get("--directory")?.trim() ?? "";
45290
- if (archive !== "" && directory !== "") throw new UsageError(`Send the site files as either --archive or --directory, not both.\n\n${USAGE$52}`);
45291
- if (database === "" && !isAkeebaArchive(archive)) throw new UsageError(`--database is required unless --archive is an Akeeba backup (.jpa or .jps), which carries the site's database inside the archive. If --archive is an Akeeba backup renamed .zip, rename it so its own database is used.\n\n${USAGE$52}`);
45321
+ if (archive !== "" && directory !== "") throw new UsageError(`Send the site files as either --archive or --directory, not both.\n\n${USAGE$53}`);
45322
+ if (database === "" && !isAkeebaArchive(archive)) throw new UsageError(`--database is required unless --archive is an Akeeba backup (.jpa or .jps), which carries the site's database inside the archive. If --archive is an Akeeba backup renamed .zip, rename it so its own database is used.\n\n${USAGE$53}`);
45292
45323
  const databaseBytes = database === "" ? 0 : await sizeOf(database, "database");
45293
45324
  const files = directory === "" ? [] : await manifestOf(directory);
45294
45325
  const fileBytes = directory === "" ? 0 : await totalSize(files);
@@ -45397,7 +45428,7 @@ function describe$2(bytes) {
45397
45428
  return `${(bytes / 1048576).toFixed(1)} MiB`;
45398
45429
  }
45399
45430
  // src/commands/application-import.ts
45400
- var USAGE$51 = [
45431
+ var USAGE$52 = [
45401
45432
  "Usage: hostingctl application import <environment-uuid> <application-uuid> <import-uuid> --company <slug>",
45402
45433
  " hostingctl application import-upload <environment-uuid> <application-uuid> --company <slug>",
45403
45434
  " --database <path-to.sql> [--archive <path-to.zip> | --directory <dir>]",
@@ -45423,7 +45454,7 @@ async function applicationImport(context, action, path, rest) {
45423
45454
  outcome: await fetchImport(context, action, path, rest)
45424
45455
  };
45425
45456
  const [importUuid, ...extra] = rest;
45426
- if (importUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$51);
45457
+ if (importUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$52);
45427
45458
  if (action === "import") return {
45428
45459
  kind: "import",
45429
45460
  staged: (await hostingWordpressImportShowImport({ path: {
@@ -45436,13 +45467,13 @@ async function applicationImport(context, action, path, rest) {
45436
45467
  importUuid
45437
45468
  } })).data));
45438
45469
  if (action === "url-repair-confirm") return await confirmRepair(context, path, importUuid);
45439
- throw new UsageError(USAGE$51);
45470
+ throw new UsageError(USAGE$52);
45440
45471
  }
45441
45472
  /** `url-repair-preview --source-url …`: the review a confirmation is made against. */
45442
45473
  async function previewRepair(context, path, rest) {
45443
- if (rest.length > 0) throw new UsageError(USAGE$51);
45474
+ if (rest.length > 0) throw new UsageError(USAGE$52);
45444
45475
  const sourceUrl = context.flags.get("--source-url")?.trim() ?? "";
45445
- if (sourceUrl === "") throw new UsageError(`url-repair-preview needs --source-url.\n\n${USAGE$51}`);
45476
+ if (sourceUrl === "") throw new UsageError(`url-repair-preview needs --source-url.\n\n${USAGE$52}`);
45446
45477
  return {
45447
45478
  kind: "url-repair",
45448
45479
  recovery: (await hostingWordpressUrlRepairPreview({
@@ -45454,7 +45485,7 @@ async function previewRepair(context, path, rest) {
45454
45485
  /** `url-repair-confirm <recovery> --confirmation …`: the typed text the review asked for. */
45455
45486
  async function confirmRepair(context, path, recoveryUuid) {
45456
45487
  const confirmation = context.flags.get("--confirmation")?.trim() ?? "";
45457
- if (confirmation === "") throw new UsageError(`url-repair-confirm needs --confirmation.\n\n${USAGE$51}`);
45488
+ if (confirmation === "") throw new UsageError(`url-repair-confirm needs --confirmation.\n\n${USAGE$52}`);
45458
45489
  return await written$5(confirmableWrite(context, `Confirm the URL repair by typing its confirmation ("${confirmation}").`, async () => {
45459
45490
  const desiredGeneration = (await hostingEnvironmentShow({ path })).data.desiredGeneration;
45460
45491
  const body = {
@@ -45598,7 +45629,7 @@ function recoveryWaitText(report) {
45598
45629
  return `Recovery ${report.recovery.uuid} ${report.recovery.statusName}: ${report.recovery.actionName} of ${report.recovery.workloadName} is done.`;
45599
45630
  }
45600
45631
  // src/commands/application-recovery.ts
45601
- var USAGE$50 = [
45632
+ var USAGE$51 = [
45602
45633
  "Usage: hostingctl application recovery-review <environment-uuid> <application-uuid> --company <slug> [--import <uuid>]",
45603
45634
  " hostingctl application recovery-confirm <environment-uuid> <application-uuid> --company <slug> --confirmation <text> [--import <uuid>] [--wait [--timeout <seconds>]]",
45604
45635
  "",
@@ -45618,9 +45649,9 @@ var USAGE$50 = [
45618
45649
  ].join("\n");
45619
45650
  /** `application recovery-review|recovery-confirm`. */
45620
45651
  async function applicationRecovery(context, action, path, rest) {
45621
- if (rest.length > 0) throw new UsageError(USAGE$50);
45652
+ if (rest.length > 0) throw new UsageError(USAGE$51);
45622
45653
  const importUuid = context.flags.get("--import")?.trim();
45623
- if (importUuid === "") throw new UsageError(`--import needs the staged import's id.\n\n${USAGE$50}`);
45654
+ if (importUuid === "") throw new UsageError(`--import needs the staged import's id.\n\n${USAGE$51}`);
45624
45655
  const review = (await hostingApplicationRecoveryShow({
45625
45656
  path,
45626
45657
  ...importUuid === void 0 ? {} : { query: { importUuid } }
@@ -45629,10 +45660,10 @@ async function applicationRecovery(context, action, path, rest) {
45629
45660
  kind: "recovery-review",
45630
45661
  review
45631
45662
  };
45632
- if (action !== "recovery-confirm") throw new UsageError(USAGE$50);
45663
+ if (action !== "recovery-confirm") throw new UsageError(USAGE$51);
45633
45664
  if (review.blockedReason !== null) throw new UsageError(`This restore is blocked: ${review.blockedReason}`);
45634
45665
  const confirmation = context.flags.get("--confirmation")?.trim() ?? "";
45635
- if (confirmation === "") throw new UsageError(`recovery-confirm needs --confirmation.\n\n${USAGE$50}`);
45666
+ if (confirmation === "") throw new UsageError(`recovery-confirm needs --confirmation.\n\n${USAGE$51}`);
45636
45667
  const wait = context.flags.has("--wait");
45637
45668
  const deadline = wait ? commandDeadline(context.flags) : 0;
45638
45669
  const outcome = await confirmableWrite(context, `Confirm ${review.actionName} of ${review.name}${review.installedVersion === null ? "" : ` from ${review.installedVersion}`}: ${String(review.routeUuids.length)} route(s) and ${String(review.hosts.length)} host(s) are rewritten.`, async () => {
@@ -45834,7 +45865,7 @@ function siteAccessText(report) {
45834
45865
  return report.assignments.length === 0 ? "Nobody has been invited to sign in." : report.assignments.map(assignmentLine).join("\n");
45835
45866
  }
45836
45867
  // src/commands/application-site-access.ts
45837
- var USAGE$49 = [
45868
+ var USAGE$50 = [
45838
45869
  "Usage: hostingctl application site-access <environment-uuid> <application-uuid> --company <slug>",
45839
45870
  " hostingctl application site-access-set <environment-uuid> <application-uuid> --company <slug> --sign-in <on|off> [--audience <name>]",
45840
45871
  " hostingctl application site-access-rotate <environment-uuid> <application-uuid> --company <slug>",
@@ -45877,14 +45908,14 @@ var flow$1 = siteAccessFlow({
45877
45908
  refresh: async (path) => (await hostingApplicationSiteAccessUsersRefresh({ path })).data,
45878
45909
  destroy: async (path) => (await hostingApplicationSiteAccessUsersDestroy({ path })).data,
45879
45910
  rotate: async (path) => (await hostingApplicationSiteAccessRotate({ path })).data
45880
- }, USAGE$49);
45911
+ }, USAGE$50);
45881
45912
  /** `application site-access*|site-user*`, which the application dispatcher calls with its resolved path. */
45882
45913
  async function applicationSiteAccess(context, action, path, rest) {
45883
- if (rest.some((one) => one === "")) throw new UsageError(USAGE$49);
45914
+ if (rest.some((one) => one === "")) throw new UsageError(USAGE$50);
45884
45915
  return await flow$1(context, action, path, rest);
45885
45916
  }
45886
45917
  // src/commands/application-source-ssh.ts
45887
- var USAGE$48 = [
45918
+ var USAGE$49 = [
45888
45919
  "Usage: hostingctl application source-ssh-list --company <slug>",
45889
45920
  " hostingctl application source-ssh-show <connection-uuid> --company <slug>",
45890
45921
  " hostingctl application source-ssh-create --company <slug> --name <label> --repo <url> --ref <name> [--ref-kind branch|tag]",
@@ -45936,7 +45967,7 @@ async function applicationSshSources(context, action, company, rest) {
45936
45967
  }
45937
45968
  if (action === "source-ssh-create") return await create$5(context, company, rest);
45938
45969
  const [connectionUuid, ...extra] = rest;
45939
- if (connectionUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$48);
45970
+ if (connectionUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$49);
45940
45971
  const path = {
45941
45972
  company,
45942
45973
  connectionUuid
@@ -45958,7 +45989,7 @@ async function applicationSshSources(context, action, company, rest) {
45958
45989
  "to be installed on the Git server before access can be proved again."
45959
45990
  ].join("\n"), async () => (await hostingSshSourcesRotateKey({ path })).data));
45960
45991
  if (action === "source-ssh-revoke") return await written$4(confirmableWrite(context, [`Retire the SSH source ${connectionUuid}.`, "The source stops fetching and cannot promote a pending candidate; a release already serving is unchanged."].join("\n"), async () => (await hostingSshSourcesRevoke({ path })).data));
45961
- throw new UsageError(USAGE$48);
45992
+ throw new UsageError(USAGE$49);
45962
45993
  }
45963
45994
  /** `source-ssh-create --name … --repo … --ref … [--ref-kind …]`: one repository and the ref it reads. */
45964
45995
  async function create$5(context, company, rest) {
@@ -45988,7 +46019,7 @@ async function update$5(context, path) {
45988
46019
  const name = optionalFlag(context, "--name");
45989
46020
  const ref = optionalFlag(context, "--ref");
45990
46021
  const refKind = refKindFlag(context);
45991
- if (name === null && ref === null && refKind === null) throw new UsageError(`source-ssh-update needs --name, --ref or --ref-kind.\n\n${USAGE$48}`);
46022
+ if (name === null && ref === null && refKind === null) throw new UsageError(`source-ssh-update needs --name, --ref or --ref-kind.\n\n${USAGE$49}`);
45992
46023
  const described = [name === null ? "" : `label ${name}`, ref === null ? "" : `ref ${ref}`].filter((one) => one !== "").join(", ");
45993
46024
  return await written$4(confirmableWrite(context, [
45994
46025
  `Edit the SSH source ${path.connectionUuid}${described === "" ? "" : `: ${described}`}.`,
@@ -46020,7 +46051,7 @@ async function confirmHostKey(context, path) {
46020
46051
  /** A required flag's value, or a refusal naming the flag. */
46021
46052
  function required$6(context, flag) {
46022
46053
  const value = context.flags.get(flag)?.trim() ?? "";
46023
- if (value === "") throw new UsageError(`${flag} is required.\n\n${USAGE$48}`);
46054
+ if (value === "") throw new UsageError(`${flag} is required.\n\n${USAGE$49}`);
46024
46055
  return value;
46025
46056
  }
46026
46057
  /** An optional flag's value, or null when it was not given. */
@@ -46033,7 +46064,7 @@ function refKindFlag(context) {
46033
46064
  const value = context.flags.get("--ref-kind")?.trim() ?? "";
46034
46065
  if (value === "") return null;
46035
46066
  if (value === "branch" || value === "tag") return value;
46036
- throw new UsageError(`--ref-kind must be branch or tag (got "${value}").\n\n${USAGE$48}`);
46067
+ throw new UsageError(`--ref-kind must be branch or tag (got "${value}").\n\n${USAGE$49}`);
46037
46068
  }
46038
46069
  /** Tag one write's outcome with the group that produced it. */
46039
46070
  async function written$4(pending) {
@@ -46044,10 +46075,10 @@ async function written$4(pending) {
46044
46075
  }
46045
46076
  /** No positional arguments, or a usage refusal. */
46046
46077
  function noExtra$17(rest) {
46047
- if (rest.length > 0) throw new UsageError(USAGE$48);
46078
+ if (rest.length > 0) throw new UsageError(USAGE$49);
46048
46079
  }
46049
46080
  // src/commands/application-source-upload.ts
46050
- var USAGE$47 = [
46081
+ var USAGE$48 = [
46051
46082
  "Usage: hostingctl application source-upload <environment-uuid> <application-uuid> --company <slug> --file <path-to.zip>",
46052
46083
  " hostingctl application source-uploads <environment-uuid> <application-uuid> --company <slug>",
46053
46084
  " hostingctl application source-upload-show <environment-uuid> <application-uuid> <upload-uuid> --company <slug>",
@@ -46086,7 +46117,7 @@ async function applicationSourceUploads(context, action, path, rest) {
46086
46117
  };
46087
46118
  }
46088
46119
  const [uploadUuid, ...extra] = rest;
46089
- if (uploadUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$47);
46120
+ if (uploadUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$48);
46090
46121
  const uploadPath = {
46091
46122
  ...path,
46092
46123
  uploadUuid
@@ -46098,7 +46129,7 @@ async function applicationSourceUploads(context, action, path, rest) {
46098
46129
  if (action === "source-upload-discard") return await written$3(confirmableWrite(context, [`Discard the staged source upload ${uploadUuid}.`, "A build that already used it keeps the copy it was handed, so nothing that is serving changes."].join("\n"), async () => {
46099
46130
  await hostingSourceUploadsDestroy({ path: uploadPath });
46100
46131
  }));
46101
- throw new UsageError(USAGE$47);
46132
+ throw new UsageError(USAGE$48);
46102
46133
  }
46103
46134
  /**
46104
46135
  * `source-upload --file …`: stage one ZIP as the application's source.
@@ -46110,7 +46141,7 @@ async function applicationSourceUploads(context, action, path, rest) {
46110
46141
  async function store(context, path, rest) {
46111
46142
  noExtra$16(rest);
46112
46143
  const file = context.flags.get("--file")?.trim() ?? "";
46113
- if (file === "") throw new UsageError(`source-upload needs --file.\n\n${USAGE$47}`);
46144
+ if (file === "") throw new UsageError(`source-upload needs --file.\n\n${USAGE$48}`);
46114
46145
  return await written$3(confirmableWrite(context, [
46115
46146
  `Upload ${file} as the staged source for application ${path.workloadUuid}.`,
46116
46147
  "The platform normalizes the archive, measures it and reviews it; installing dependencies and changing anything",
@@ -46150,7 +46181,7 @@ async function written$3(pending) {
46150
46181
  }
46151
46182
  /** No positional arguments, or a usage refusal. */
46152
46183
  function noExtra$16(rest) {
46153
- if (rest.length > 0) throw new UsageError(USAGE$47);
46184
+ if (rest.length > 0) throw new UsageError(USAGE$48);
46154
46185
  }
46155
46186
  /** One staged upload: what the platform measured, what the review found, and when staging expires. */
46156
46187
  function uploadLines(upload) {
@@ -46277,51 +46308,51 @@ var SOURCE_SUBCOMMANDS = [
46277
46308
  var SOURCE_TOPICS = [
46278
46309
  {
46279
46310
  path: ["source-upload"],
46280
- usage: USAGE$47
46311
+ usage: USAGE$48
46281
46312
  },
46282
46313
  {
46283
46314
  path: ["source-uploads"],
46284
- usage: USAGE$47
46315
+ usage: USAGE$48
46285
46316
  },
46286
46317
  {
46287
46318
  path: ["source-upload-show"],
46288
- usage: USAGE$47
46319
+ usage: USAGE$48
46289
46320
  },
46290
46321
  {
46291
46322
  path: ["source-upload-discard"],
46292
- usage: USAGE$47
46323
+ usage: USAGE$48
46293
46324
  },
46294
46325
  {
46295
46326
  path: ["source-ssh-list"],
46296
- usage: USAGE$48
46327
+ usage: USAGE$49
46297
46328
  },
46298
46329
  {
46299
46330
  path: ["source-ssh-show"],
46300
- usage: USAGE$48
46331
+ usage: USAGE$49
46301
46332
  },
46302
46333
  {
46303
46334
  path: ["source-ssh-create"],
46304
- usage: USAGE$48
46335
+ usage: USAGE$49
46305
46336
  },
46306
46337
  {
46307
46338
  path: ["source-ssh-update"],
46308
- usage: USAGE$48
46339
+ usage: USAGE$49
46309
46340
  },
46310
46341
  {
46311
46342
  path: ["source-ssh-confirm-host-key"],
46312
- usage: USAGE$48
46343
+ usage: USAGE$49
46313
46344
  },
46314
46345
  {
46315
46346
  path: ["source-ssh-verify"],
46316
- usage: USAGE$48
46347
+ usage: USAGE$49
46317
46348
  },
46318
46349
  {
46319
46350
  path: ["source-ssh-rotate-key"],
46320
- usage: USAGE$48
46351
+ usage: USAGE$49
46321
46352
  },
46322
46353
  {
46323
46354
  path: ["source-ssh-revoke"],
46324
- usage: USAGE$48
46355
+ usage: USAGE$49
46325
46356
  }
46326
46357
  ];
46327
46358
  // src/commands/application-speed.ts
@@ -46351,7 +46382,7 @@ function applicationSpeedText(check) {
46351
46382
  * paused. It starts no build and promotes nothing. The pause is the customer's own control: while it holds, a push to
46352
46383
  * the bound ref is read and matched but builds nothing, and the release that is serving is untouched either way.
46353
46384
  */
46354
- var USAGE$46 = [
46385
+ var USAGE$47 = [
46355
46386
  "Usage: hostingctl application updates <environment-uuid> <application-uuid> --company <slug>",
46356
46387
  " hostingctl application updates-pause <environment-uuid> <application-uuid> --company <slug>",
46357
46388
  " hostingctl application updates-resume <environment-uuid> <application-uuid> --company <slug>",
@@ -46364,7 +46395,7 @@ var USAGE$46 = [
46364
46395
  "Both writes need --confirm; --dry-run describes the change without sending it."
46365
46396
  ].join("\n");
46366
46397
  async function applicationUpdates(context, action, path, rest) {
46367
- if (rest.length > 0) throw new UsageError(USAGE$46);
46398
+ if (rest.length > 0) throw new UsageError(USAGE$47);
46368
46399
  if (action === "updates") return {
46369
46400
  kind: "updates",
46370
46401
  surface: (await hostingApplicationUpdatesShow({ path })).data
@@ -46376,7 +46407,7 @@ async function applicationUpdates(context, action, path, rest) {
46376
46407
  outcome: await confirmableWrite(context, pausing ? `Pause updates for application ${path.workloadUuid}: a push to its bound ref stops building it, and the release that is serving is unchanged.` : `Resume updates for application ${path.workloadUuid}: it may be a candidate again. Nothing is deployed by resuming.`, async () => pausing ? (await hostingApplicationUpdatesPause({ path })).data : (await hostingApplicationUpdatesResume({ path })).data)
46377
46408
  };
46378
46409
  }
46379
- throw new UsageError(USAGE$46);
46410
+ throw new UsageError(USAGE$47);
46380
46411
  }
46381
46412
  /**
46382
46413
  * The update state in words.
@@ -46628,64 +46659,64 @@ var APPLICATION_TOPICS = [
46628
46659
  },
46629
46660
  {
46630
46661
  path: ["create"],
46631
- usage: USAGE$53
46662
+ usage: USAGE$54
46632
46663
  },
46633
46664
  {
46634
46665
  path: ["build-log"],
46635
- usage: USAGE$55
46666
+ usage: USAGE$56
46636
46667
  },
46637
46668
  {
46638
46669
  path: ["build-retry"],
46639
- usage: USAGE$55
46670
+ usage: USAGE$56
46640
46671
  },
46641
46672
  {
46642
46673
  path: ["build-cancel"],
46643
- usage: USAGE$55
46674
+ usage: USAGE$56
46644
46675
  },
46645
46676
  {
46646
46677
  path: ["source-bind"],
46647
- usage: USAGE$55
46678
+ usage: USAGE$56
46648
46679
  },
46649
46680
  {
46650
46681
  path: ["source-unbind"],
46651
- usage: USAGE$55
46682
+ usage: USAGE$56
46652
46683
  },
46653
46684
  ...SOURCE_TOPICS,
46654
46685
  {
46655
46686
  path: ["cache"],
46656
- usage: USAGE$54
46687
+ usage: USAGE$55
46657
46688
  },
46658
46689
  {
46659
46690
  path: ["cache-set"],
46660
- usage: USAGE$54
46691
+ usage: USAGE$55
46661
46692
  },
46662
46693
  {
46663
46694
  path: ["cache-purge"],
46664
- usage: USAGE$54
46695
+ usage: USAGE$55
46665
46696
  },
46666
46697
  {
46667
46698
  path: ["routes"],
46668
- usage: USAGE$54
46699
+ usage: USAGE$55
46669
46700
  },
46670
46701
  {
46671
46702
  path: ["route-add"],
46672
- usage: USAGE$54
46703
+ usage: USAGE$55
46673
46704
  },
46674
46705
  {
46675
46706
  path: ["route-remove"],
46676
- usage: USAGE$54
46707
+ usage: USAGE$55
46677
46708
  },
46678
46709
  {
46679
46710
  path: ["canonical"],
46680
- usage: USAGE$54
46711
+ usage: USAGE$55
46681
46712
  },
46682
46713
  {
46683
46714
  path: ["import"],
46684
- usage: USAGE$51
46715
+ usage: USAGE$52
46685
46716
  },
46686
46717
  {
46687
46718
  path: ["import-upload"],
46688
- usage: USAGE$52
46719
+ usage: USAGE$53
46689
46720
  },
46690
46721
  ...[
46691
46722
  "import-discard",
@@ -46693,16 +46724,16 @@ var APPLICATION_TOPICS = [
46693
46724
  "url-repair-confirm"
46694
46725
  ].map((one) => ({
46695
46726
  path: [one],
46696
- usage: USAGE$51
46727
+ usage: USAGE$52
46697
46728
  })),
46698
46729
  ...FETCH_TOPICS,
46699
46730
  {
46700
46731
  path: ["recovery-review"],
46701
- usage: USAGE$50
46732
+ usage: USAGE$51
46702
46733
  },
46703
46734
  {
46704
46735
  path: ["recovery-confirm"],
46705
- usage: USAGE$50
46736
+ usage: USAGE$51
46706
46737
  },
46707
46738
  {
46708
46739
  path: ["runtime"],
@@ -46714,59 +46745,59 @@ var APPLICATION_TOPICS = [
46714
46745
  },
46715
46746
  {
46716
46747
  path: ["site-access"],
46717
- usage: USAGE$49
46748
+ usage: USAGE$50
46718
46749
  },
46719
46750
  {
46720
46751
  path: ["site-access-set"],
46721
- usage: USAGE$49
46752
+ usage: USAGE$50
46722
46753
  },
46723
46754
  {
46724
46755
  path: ["site-access-rotate"],
46725
- usage: USAGE$49
46756
+ usage: USAGE$50
46726
46757
  },
46727
46758
  {
46728
46759
  path: ["site-users"],
46729
- usage: USAGE$49
46760
+ usage: USAGE$50
46730
46761
  },
46731
46762
  {
46732
46763
  path: ["site-user"],
46733
- usage: USAGE$49
46764
+ usage: USAGE$50
46734
46765
  },
46735
46766
  {
46736
46767
  path: ["updates"],
46737
- usage: USAGE$46
46768
+ usage: USAGE$47
46738
46769
  },
46739
46770
  {
46740
46771
  path: ["updates-pause"],
46741
- usage: USAGE$46
46772
+ usage: USAGE$47
46742
46773
  },
46743
46774
  {
46744
46775
  path: ["updates-resume"],
46745
- usage: USAGE$46
46776
+ usage: USAGE$47
46746
46777
  },
46747
46778
  {
46748
46779
  path: ["administrator"],
46749
- usage: USAGE$56
46780
+ usage: USAGE$57
46750
46781
  },
46751
46782
  {
46752
46783
  path: ["administrator-reset"],
46753
- usage: USAGE$56
46784
+ usage: USAGE$57
46754
46785
  },
46755
46786
  {
46756
46787
  path: ["administrator-reveal"],
46757
- usage: USAGE$56
46788
+ usage: USAGE$57
46758
46789
  },
46759
46790
  {
46760
46791
  path: ["recovery-status"],
46761
- usage: USAGE$56
46792
+ usage: USAGE$57
46762
46793
  },
46763
46794
  {
46764
46795
  path: ["recovery-retry"],
46765
- usage: USAGE$56
46796
+ usage: USAGE$57
46766
46797
  },
46767
46798
  {
46768
46799
  path: ["recovery-cancel"],
46769
- usage: USAGE$56
46800
+ usage: USAGE$57
46770
46801
  }
46771
46802
  ];
46772
46803
  // src/commands/application-lifecycle.ts
@@ -54770,7 +54801,7 @@ var ZodRecord = /*@__PURE__*/ $constructor("ZodRecord", (inst, def) => {
54770
54801
  inst.keyType = def.keyType;
54771
54802
  inst.valueType = def.valueType;
54772
54803
  });
54773
- function record$4(keyType, valueType, params) {
54804
+ function record$3(keyType, valueType, params) {
54774
54805
  if (!valueType || !valueType._zod) return new ZodRecord({
54775
54806
  type: "record",
54776
54807
  keyType: string(),
@@ -55220,6 +55251,10 @@ var attachPlatformCompanyMemberRequestSchema = object({
55220
55251
  email: email$1().max(255),
55221
55252
  role: _enum(["Company Admin", "Company Member"])
55222
55253
  }).describe("Attach an account that already exists to a client company, without its password and without an accepted\ninvitation.\n\nInviting stays the normal path: this exists for the mailbox that never receives the mail, or the account an\noperator has just been asked to grant access to. It creates no account, so the address must already belong to a\nverified one — attaching an address nobody holds is refused by field rather than quietly turned into a user.");
55254
+ var attestHostingCustdAuthorityRequestSchema = object({
55255
+ custdCompanyUuid: uuid(),
55256
+ owningUserUuid: uuid()
55257
+ }).describe("The CustD company and its real owning user that act for one Hosting company. Provider project,\nenvironment and directory identities are never inputs: reconciliation records them from CustD's answers.");
55223
55258
  var authoritativeDnsRecordDataSchema = object({
55224
55259
  name: string(),
55225
55260
  type: string(),
@@ -56554,16 +56589,16 @@ object({
56554
56589
  desiredGeneration: int().min(0)
56555
56590
  });
56556
56591
  var portableSiteBindingsDataSchema = object({
56557
- applications: record$4(string(), string()),
56558
- repositories: record$4(string(), string()),
56559
- domains: record$4(string(), string()),
56560
- services: record$4(string(), string()),
56561
- emailDomains: record$4(string(), string()),
56562
- siteUsers: record$4(string(), string()),
56563
- accessUsers: record$4(string(), string()),
56564
- members: record$4(string(), string()),
56592
+ applications: record$3(string(), string()),
56593
+ repositories: record$3(string(), string()),
56594
+ domains: record$3(string(), string()),
56595
+ services: record$3(string(), string()),
56596
+ emailDomains: record$3(string(), string()),
56597
+ siteUsers: record$3(string(), string()),
56598
+ accessUsers: record$3(string(), string()),
56599
+ members: record$3(string(), string()),
56565
56600
  aliasRecipients: array(string()),
56566
- loginKeys: record$4(string(), string())
56601
+ loginKeys: record$3(string(), string())
56567
56602
  });
56568
56603
  var portableSiteConsentsDataSchema = object({
56569
56604
  serviceAddition: boolean(),
@@ -57756,6 +57791,7 @@ var hostingDeploymentIdentityPersonDataSchema = object({
57756
57791
  });
57757
57792
  var hostingDeploymentIdentityDataSchema = object({
57758
57793
  state: _enum([
57794
+ "awaiting-application",
57759
57795
  "failed",
57760
57796
  "not-provisioned",
57761
57797
  "paused",
@@ -59293,11 +59329,6 @@ object({
59293
59329
  declarations: array(hostingConsumerDeclarationDataSchema),
59294
59330
  refusals: array(hostingConsumerDeclarationRefusalDataSchema)
59295
59331
  });
59296
- object({
59297
- uuid: string(),
59298
- workloadUuid: string(),
59299
- audience: string()
59300
- });
59301
59332
  var hostingDataHandoverEnumSchema = _enum(["test_copy_is_current", "refreshed_from_source"]).describe("How the client says a tested copy relates to the site it was copied from, when it is made live (Plan 146). Going live is a configuration and traffic change, never a fresh restore over newer data, so the platform cannot know whether the original took orders, comments or sign-ups while the copy was tested. The client states it.\n| |\n|---|\n| `test_copy_is_current` <br/> The test copy holds everything that should go live; nothing the original took since the copy is needed. |\n| `refreshed_from_source` <br/> The original was restored into this test environment again, after writes stopped, just before going live. |");
59302
59333
  object({
59303
59334
  databaseUuid: string(),
@@ -60542,6 +60573,18 @@ var hostingOperationsDataSchema = object({
60542
60573
  recent: array(hostingOperationSummaryDataSchema),
60543
60574
  lateAfterSeconds: int().describe("The stage duration that counts as late, so the screen and the query cannot disagree.")
60544
60575
  });
60576
+ var hostingOutboundRuleDataSchema = object({
60577
+ protocol: string(),
60578
+ port: int(),
60579
+ end_port: int().nullable()
60580
+ });
60581
+ object({
60582
+ rules: array(hostingOutboundRuleDataSchema).nullable(),
60583
+ desiredGeneration: int(),
60584
+ appliedGeneration: int(),
60585
+ appliedRules: array(hostingOutboundRuleDataSchema).nullable(),
60586
+ rulesAppliedGeneration: int().nullable()
60587
+ });
60545
60588
  var hostingPackageDataSchema = object({
60546
60589
  slug: string(),
60547
60590
  name: string(),
@@ -61605,6 +61648,24 @@ var hostingStorageQuoteDataSchema = object({
61605
61648
  reviewToken: string().describe("The confirmation token a purchase or increase must send back. Every answer a client can act on is signed;\nonly the internal pre-sign construction behind it carries an empty string."),
61606
61649
  contentFormat: string().describe("How the purchased bucket's bytes will be represented: `native` or `rclone_crypt`. It is part of the priced decision because it is part of what is bought, and it is defaulted so a quote issued\nbefore the format existed still reads as the native product it was.")
61607
61650
  });
61651
+ var hostingStorageRotationPhaseEnumSchema = _enum([
61652
+ "preparing",
61653
+ "waiting_for_uploads",
61654
+ "rewriting",
61655
+ "verifying",
61656
+ "retaining",
61657
+ "completed",
61658
+ "failed"
61659
+ ]);
61660
+ object({ rotation: union([object({
61661
+ uuid: string(),
61662
+ phase: hostingStorageRotationPhaseEnumSchema,
61663
+ objectsRewritten: int(),
61664
+ totalObjects: int().nullable(),
61665
+ retainedVersions: int(),
61666
+ observedAt: string().nullable(),
61667
+ completedAt: string().nullable()
61668
+ }), _null()]) });
61608
61669
  object({
61609
61670
  rows: array(object({
61610
61671
  claim: string(),
@@ -62393,7 +62454,6 @@ var recordBillingProviderSettlementRequestSchema = object({
62393
62454
  requestKey: string().max(64),
62394
62455
  note: string().max(255).nullish()
62395
62456
  }).describe("An operator transcribes the provider's amounts; this request neither moves nor verifies money.");
62396
- var recordHostingCustdAudienceRequestSchema = object({ audience: string().regex(/^[a-z0-9][a-z0-9._-]{2,199}$/) }).describe("The shape of one application workload's CustD realm audience name.\n\nAn audience name is the only input. Provider client id and redirect URIs belong to the realm\nintent's registration settings, never to the recorded audience binding, so this request cannot\nleak them into the binding. The alphabet is the same one the binding service records with.");
62397
62457
  var recoveryCodeSetDataSchema = object({ codes: array(string()) });
62398
62458
  var redeemBillingDiscountCodeRequestSchema = object({ code: string().max(64) }).describe("Redeeming a code.\n\nThe code is the only field: the account is the one the route resolved, never a value in the body, so a caller\ncannot redeem a code against somebody else's account.");
62399
62459
  var redeemMailboxRecoveryRequestSchema = object({
@@ -63092,18 +63152,6 @@ var storeHostingBackupDestinationRequestSchema = object({
63092
63152
  secretAccessKey: string().max(1024),
63093
63153
  armed: boolean().optional()
63094
63154
  }).describe("The one write that records a company's own backup destination.\n\nThe rules are the boundary of a credential the platform will later use to reach a client's bucket, so\nthey are stricter than \"it is a string\": the endpoint must be a real HTTPS URL (a plaintext endpoint\nwould carry the secret in the clear), the bucket and region must be the shapes S3 accepts, and the\nprefix must be a relative folder without a `..` segment because it decides where copies land.\n\nA local endpoint is allowed over HTTP only when its host is loopback, which is how a client tests\nagainst MinIO on their own machine. Everything else is refused here rather than discovered when a\nbackup fails weeks later.");
63095
- var storeHostingCustdRealmRequestSchema = object({
63096
- custdCompanyUuid: uuid(),
63097
- owningUserUuid: uuid(),
63098
- registrationPolicy: _enum(["invite_only", "open"]),
63099
- loginPaused: boolean(),
63100
- expectedRevision: int().min(0),
63101
- audiences: array(object({
63102
- audience: string().regex(/^[a-z0-9][a-z0-9._-]{2,199}$/),
63103
- publicClient: boolean(),
63104
- redirectUris: array(url().max(2048))
63105
- })).max(20).describe("One audience per application workload, so the environment's own application ceiling is\nthe bound; an audience name uses the same alphabet the binding service records.")
63106
- }).describe("The shape of one environment's deployment-realm allocation intent.\n\nAuthority is existing tenant identity only — the CustD company and its real owning user. Provider\nproject/environment/directory identifiers are deliberately absent: allocation records them from the\nSDK's own response, never from a caller. The remaining fields are the same realm intent the internal\nservice already accepts, so this request adds a boundary without changing what the service records.");
63107
63155
  var storeHostingDatabaseBackupRequestSchema = object({
63108
63156
  connection: uuid(),
63109
63157
  delivery: hostingDatabaseBackupDeliveryEnumSchema.optional().describe("Where a backup of a database on another host goes once it is dumped. The download always exists, because it is what the copy reads: `download` keeps only that, and `download-and-bucket` (the default) also copies it to the company's own backup destination when one is armed.\n")
@@ -63657,6 +63705,14 @@ var updateHostingObjectCacheSettingsRequestSchema = object({
63657
63705
  desiredGeneration: int().min(1),
63658
63706
  enabled: boolean()
63659
63707
  }).describe("The body of \"serve this environment's WordPress sites from the Redis object cache, or stop\".\n\nBoth fields are required: the switch decides whether a mounted platform file stands in front of\nevery page of every WordPress member, and an omitted `enabled` must not read as `false`.");
63708
+ object({
63709
+ desiredGeneration: int().min(1),
63710
+ rules: array(object({
63711
+ protocol: _enum(["TCP", "UDP"]),
63712
+ port: int().min(1).max(65535),
63713
+ end_port: int().min(1).max(65535).nullish()
63714
+ })).max(64).nullable()
63715
+ });
63660
63716
  var updateHostingProviderConnectionRequestSchema = object({
63661
63717
  retention: hostingProviderConnectionRetentionEnumSchema.optional(),
63662
63718
  name: string().max(100).nullish().describe("A saved connection is found again by its name; a single-use one has none."),
@@ -63769,7 +63825,7 @@ object({
63769
63825
  });
63770
63826
  var validationErrorDataSchema = object({
63771
63827
  message: string(),
63772
- errors: record$4(string(), array(string())).optional()
63828
+ errors: record$3(string(), array(string())).optional()
63773
63829
  });
63774
63830
  var verifyMailboxFallbackRequestSchema = object({ token: string().max(200) }).describe("Confirming control of a candidate fallback address with the token from the verification link.\n\nThe token is taken in the POST body so a mail scanner following a GET cannot consume the grant. A\nsuccessful confirmation only marks the stored fallback verified; it changes no password.");
63775
63831
  var voidBillingReservationRequestSchema = object({ reason: string().min(3).max(255) }).describe("Voiding an unissued reservation, with the reason that explains the gap in the number series.\n\nOnly a reservation may be voided: once a document is issued, correcting it is a credit note, not a\nvoid. The reason is compulsory because the number stays spent and a reader of the series must be able\nto see why.");
@@ -63797,7 +63853,7 @@ object({
63797
63853
  object({ message: string().describe("Error overview.") });
63798
63854
  object({
63799
63855
  message: string().describe("Errors overview."),
63800
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
63856
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
63801
63857
  });
63802
63858
  object({ message: string().describe("Error overview.") });
63803
63859
  object({ message: string().describe("Error overview.") });
@@ -63822,7 +63878,7 @@ object({
63822
63878
  });
63823
63879
  object({
63824
63880
  message: string().describe("Errors overview."),
63825
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
63881
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
63826
63882
  });
63827
63883
  object({ message: string().describe("Error overview.") });
63828
63884
  union([object({ message: string().describe("Error overview.") }), validationErrorDataSchema]);
@@ -63861,7 +63917,7 @@ union([
63861
63917
  object({ message: string().describe("Error overview.") }),
63862
63918
  object({
63863
63919
  message: string().describe("Errors overview."),
63864
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
63920
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
63865
63921
  })
63866
63922
  ]);
63867
63923
  object({
@@ -63881,7 +63937,7 @@ union([
63881
63937
  object({ message: string().describe("Error overview.") }),
63882
63938
  object({
63883
63939
  message: string().describe("Errors overview."),
63884
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
63940
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
63885
63941
  })
63886
63942
  ]);
63887
63943
  object({
@@ -63902,7 +63958,7 @@ union([
63902
63958
  object({ message: string().describe("Error overview.") }),
63903
63959
  object({
63904
63960
  message: string().describe("Errors overview."),
63905
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
63961
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
63906
63962
  })
63907
63963
  ]);
63908
63964
  object({
@@ -64019,7 +64075,7 @@ union([
64019
64075
  object({ message: string().describe("Error overview.") }),
64020
64076
  object({
64021
64077
  message: string().describe("Errors overview."),
64022
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
64078
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
64023
64079
  })
64024
64080
  ]);
64025
64081
  object({ company: string() });
@@ -64035,7 +64091,7 @@ union([
64035
64091
  object({ message: string().describe("Error overview.") }),
64036
64092
  object({
64037
64093
  message: string().describe("Errors overview."),
64038
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
64094
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
64039
64095
  })
64040
64096
  ]);
64041
64097
  storeBillingPaymentMethodRequestSchema.optional().describe("Start authorizing a payment method, optionally replacing one that already exists.\n\nThere is no amount, no card field and no customer-supplied provider detail here: the customer is\nsent to the provider to enter the card, and only a verified provider confirmation can activate it.");
@@ -64054,7 +64110,7 @@ union([
64054
64110
  object({ message: string().describe("Error overview.") }),
64055
64111
  object({
64056
64112
  message: string().describe("Errors overview."),
64057
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
64113
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
64058
64114
  })
64059
64115
  ]);
64060
64116
  revokeBillingPaymentMethodRequestSchema.optional().describe("Withdraw authorization. The reason is optional; stopping future charges is not conditional on it.");
@@ -64158,7 +64214,7 @@ var companyBillingRefundStoreStatus401Schema = object({ message: string().descri
64158
64214
  var companyBillingRefundStoreStatus403Schema = object({ message: string().describe("Error overview.") });
64159
64215
  var companyBillingRefundStoreStatus422Schema = object({
64160
64216
  message: string().describe("Errors overview."),
64161
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
64217
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
64162
64218
  });
64163
64219
  union([companyBillingRefundStoreStatus200Schema, companyBillingRefundStoreStatus201Schema]);
64164
64220
  union([
@@ -64176,12 +64232,12 @@ union([
64176
64232
  object({ company: string() });
64177
64233
  object({
64178
64234
  message: string().describe("Errors overview."),
64179
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
64235
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
64180
64236
  });
64181
64237
  object({ invitationUuid: string() });
64182
64238
  union([object({ message: string().describe("Error overview.") }), object({
64183
64239
  message: string().describe("Errors overview."),
64184
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
64240
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
64185
64241
  })]);
64186
64242
  object({ invitationUuid: string() });
64187
64243
  union([object({ message: string().describe("Error overview.") }), object({ message: string().describe("Error overview.") })]);
@@ -64191,7 +64247,7 @@ union([
64191
64247
  object({ message: string().describe("Error overview.") }),
64192
64248
  object({
64193
64249
  message: string().describe("Errors overview."),
64194
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
64250
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
64195
64251
  })
64196
64252
  ]);
64197
64253
  object({ company: string() });
@@ -64214,7 +64270,7 @@ union([
64214
64270
  object({ message: string().describe("Error overview.") }),
64215
64271
  object({
64216
64272
  message: string().describe("Errors overview."),
64217
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
64273
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
64218
64274
  })
64219
64275
  ]);
64220
64276
  object({ company: string() });
@@ -64320,7 +64376,7 @@ union([
64320
64376
  object({ message: string().describe("Error overview.") }),
64321
64377
  object({
64322
64378
  message: string().describe("Errors overview."),
64323
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
64379
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
64324
64380
  })
64325
64381
  ]);
64326
64382
  object({ enabled: boolean() });
@@ -64505,7 +64561,7 @@ union([
64505
64561
  object({ message: string().describe("Error overview.") }),
64506
64562
  object({
64507
64563
  message: string().describe("Errors overview."),
64508
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
64564
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
64509
64565
  })
64510
64566
  ]);
64511
64567
  object({ company: string() });
@@ -64605,7 +64661,7 @@ union([
64605
64661
  messageDataSchema,
64606
64662
  object({
64607
64663
  message: string().describe("Errors overview."),
64608
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
64664
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
64609
64665
  })
64610
64666
  ]);
64611
64667
  object({
@@ -64673,7 +64729,7 @@ union([
64673
64729
  messageDataSchema,
64674
64730
  object({
64675
64731
  message: string().describe("Errors overview."),
64676
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
64732
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
64677
64733
  })
64678
64734
  ]);
64679
64735
  object({
@@ -64728,7 +64784,7 @@ union([
64728
64784
  object({ message: string().describe("Error overview.") }),
64729
64785
  object({
64730
64786
  message: string().describe("Errors overview."),
64731
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
64787
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
64732
64788
  })
64733
64789
  ]);
64734
64790
  object({
@@ -64743,7 +64799,7 @@ union([
64743
64799
  object({ message: string().describe("Error overview.") }),
64744
64800
  object({
64745
64801
  message: string().describe("Errors overview."),
64746
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
64802
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
64747
64803
  })
64748
64804
  ]);
64749
64805
  object({
@@ -64873,7 +64929,7 @@ union([
64873
64929
  messageDataSchema,
64874
64930
  object({
64875
64931
  message: string().describe("Errors overview."),
64876
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
64932
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
64877
64933
  })
64878
64934
  ]);
64879
64935
  object({
@@ -64943,7 +64999,7 @@ union([
64943
64999
  object({ message: string().describe("Error overview.") }),
64944
65000
  object({
64945
65001
  message: string().describe("Errors overview."),
64946
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
65002
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
64947
65003
  })
64948
65004
  ]);
64949
65005
  setEmailMailboxForwardingRequestSchema.describe("The mailbox's whole forwarding destination set, in one replace.\n\nThe list must be explicitly present: `destinationAddresses` absent, null or not a list is a\nvalidation refusal, never a clear — `[]` is the one deliberate clear. Each entry is validated\nwith Laravel's standard syntax rules (`email:rfc|max:254`), and two entries that normalize to\nthe same address (casing or surrounding-whitespace variants included) are refused on the\nlater index rather than silently de-duplicated; entry refusals are indexed\n(`destinationAddresses.N`). Normalization itself is owned by\n{@see CanonicalEmailService}; nothing here infers recipient verification from syntax.");
@@ -65054,7 +65110,7 @@ union([
65054
65110
  object({ message: string().describe("Error overview.") }),
65055
65111
  object({
65056
65112
  message: string().describe("Errors overview."),
65057
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
65113
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
65058
65114
  })
65059
65115
  ]);
65060
65116
  object({
@@ -65167,7 +65223,7 @@ union([
65167
65223
  messageDataSchema,
65168
65224
  object({
65169
65225
  message: string().describe("Errors overview."),
65170
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
65226
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
65171
65227
  })
65172
65228
  ]);
65173
65229
  object({
@@ -65181,7 +65237,7 @@ union([
65181
65237
  messageDataSchema,
65182
65238
  object({
65183
65239
  message: string().describe("Errors overview."),
65184
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
65240
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
65185
65241
  })
65186
65242
  ]);
65187
65243
  object({
@@ -65197,7 +65253,7 @@ union([
65197
65253
  object({ message: string().describe("Error overview.") }),
65198
65254
  object({
65199
65255
  message: string().describe("Errors overview."),
65200
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
65256
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
65201
65257
  })
65202
65258
  ]);
65203
65259
  object({
@@ -65212,7 +65268,7 @@ union([
65212
65268
  messageDataSchema,
65213
65269
  object({
65214
65270
  message: string().describe("Errors overview."),
65215
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
65271
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
65216
65272
  })
65217
65273
  ]);
65218
65274
  object({ company: string() });
@@ -65234,7 +65290,7 @@ union([
65234
65290
  messageDataSchema,
65235
65291
  object({
65236
65292
  message: string().describe("Errors overview."),
65237
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
65293
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
65238
65294
  })
65239
65295
  ]);
65240
65296
  object({ company: string() });
@@ -65347,7 +65403,7 @@ union([
65347
65403
  messageDataSchema,
65348
65404
  object({
65349
65405
  message: string().describe("Errors overview."),
65350
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
65406
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
65351
65407
  })
65352
65408
  ]);
65353
65409
  updateHostingAccessSettingsRequestSchema.describe("Turning environment-wide password login on or off, and choosing whether the\nenvironment's customer logins may run commands at all.\n\nBoth values are required: a missing setting is a malformed request, not \"leave\n * it as it is\", because these decide whether every stored password in the\nenvironment works and whether every customer login can execute a command.");
@@ -65460,7 +65516,7 @@ union([
65460
65516
  messageDataSchema,
65461
65517
  object({
65462
65518
  message: string().describe("Errors overview."),
65463
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
65519
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
65464
65520
  }),
65465
65521
  messageDataSchema
65466
65522
  ]);
@@ -65540,7 +65596,7 @@ union([
65540
65596
  messageDataSchema,
65541
65597
  object({
65542
65598
  message: string().describe("Errors overview."),
65543
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
65599
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
65544
65600
  })
65545
65601
  ]);
65546
65602
  updateHostingAccessUserRequestSchema.describe("Changing one access user's label or enabled state.\n\nNo `username` rule: the username is immutable, so a payload containing one is\nignored rather than accepted as a change it cannot make.\n\n`readOnly` IS required, unlike on create. Changing a login's label must state\nthe access wanted, because a field missing by accident would otherwise reset a\nread-only login back to read-write — the direction that grants more than the\ncustomer asked for.");
@@ -65874,7 +65930,7 @@ union([
65874
65930
  object({ message: string().describe("Error overview.") }),
65875
65931
  object({
65876
65932
  message: string().describe("Errors overview."),
65877
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
65933
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
65878
65934
  })
65879
65935
  ]);
65880
65936
  object({
@@ -65886,7 +65942,7 @@ union([
65886
65942
  object({ message: string().describe("Error overview.") }),
65887
65943
  object({
65888
65944
  message: string().describe("Errors overview."),
65889
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
65945
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
65890
65946
  })
65891
65947
  ]);
65892
65948
  object({
@@ -65899,7 +65955,7 @@ union([
65899
65955
  object({ message: string().describe("Error overview.") }),
65900
65956
  object({
65901
65957
  message: string().describe("Errors overview."),
65902
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
65958
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
65903
65959
  })
65904
65960
  ]);
65905
65961
  object({
@@ -65923,7 +65979,7 @@ union([
65923
65979
  messageDataSchema,
65924
65980
  object({
65925
65981
  message: string().describe("Errors overview."),
65926
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
65982
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
65927
65983
  })
65928
65984
  ]);
65929
65985
  object({
@@ -65939,7 +65995,7 @@ union([
65939
65995
  messageDataSchema,
65940
65996
  object({
65941
65997
  message: string().describe("Errors overview."),
65942
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
65998
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
65943
65999
  })
65944
66000
  ]);
65945
66001
  object({
@@ -65957,7 +66013,7 @@ union([
65957
66013
  messageDataSchema,
65958
66014
  object({
65959
66015
  message: string().describe("Errors overview."),
65960
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
66016
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
65961
66017
  })
65962
66018
  ]);
65963
66019
  object({
@@ -66022,18 +66078,6 @@ union([
66022
66078
  messageDataSchema,
66023
66079
  validationErrorDataSchema
66024
66080
  ]);
66025
- recordHostingCustdAudienceRequestSchema.describe("The shape of one application workload's CustD realm audience name.\n\nAn audience name is the only input. Provider client id and redirect URIs belong to the realm\nintent's registration settings, never to the recorded audience binding, so this request cannot\nleak them into the binding. The alphabet is the same one the binding service records with.");
66026
- object({
66027
- company: string(),
66028
- environmentUuid: string(),
66029
- workloadUuid: string()
66030
- });
66031
- union([
66032
- object({ message: string().describe("Error overview.") }),
66033
- object({ message: string().describe("Error overview.") }),
66034
- messageDataSchema,
66035
- validationErrorDataSchema
66036
- ]);
66037
66081
  object({
66038
66082
  company: string(),
66039
66083
  environmentUuid: string(),
@@ -66229,7 +66273,7 @@ union([
66229
66273
  object({ message: string().describe("Error overview.") }),
66230
66274
  object({
66231
66275
  message: string().describe("Errors overview."),
66232
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
66276
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
66233
66277
  })
66234
66278
  ]);
66235
66279
  object({ company: string() });
@@ -66239,7 +66283,7 @@ union([
66239
66283
  object({ message: string().describe("Error overview.") }),
66240
66284
  object({
66241
66285
  message: string().describe("Errors overview."),
66242
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
66286
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
66243
66287
  })
66244
66288
  ]);
66245
66289
  purchaseHostingPoolRequestSchema.describe("Company capability middleware owns authority; the purchase owner also enforces self-service origin.");
@@ -66272,7 +66316,7 @@ union([
66272
66316
  messageDataSchema,
66273
66317
  object({
66274
66318
  message: string().describe("Errors overview."),
66275
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
66319
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
66276
66320
  }),
66277
66321
  messageDataSchema
66278
66322
  ]);
@@ -66287,7 +66331,7 @@ union([
66287
66331
  messageDataSchema,
66288
66332
  object({
66289
66333
  message: string().describe("Errors overview."),
66290
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
66334
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
66291
66335
  }),
66292
66336
  messageDataSchema
66293
66337
  ]);
@@ -66322,7 +66366,7 @@ union([
66322
66366
  messageDataSchema,
66323
66367
  object({
66324
66368
  message: string().describe("Errors overview."),
66325
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
66369
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
66326
66370
  }),
66327
66371
  messageDataSchema
66328
66372
  ]);
@@ -66649,7 +66693,7 @@ union([
66649
66693
  messageDataSchema,
66650
66694
  object({
66651
66695
  message: string().describe("Errors overview."),
66652
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
66696
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
66653
66697
  })
66654
66698
  ]);
66655
66699
  saveHostingDomainRedirectRequestSchema.describe("One whole-domain redirect to save.\n\nThe source name comes from the route, the environment from the route, and the target is one of two\nnamed shapes: an application alias (`hostingDomainUuid`) or an explicitly saved HTTPS address\n(`destinationUrl`). The service refuses the combination each shape cannot use, so a body cannot\ndescribe a state the database would refuse.");
@@ -66767,7 +66811,7 @@ union([
66767
66811
  object({ message: string().describe("Error overview.") }),
66768
66812
  object({
66769
66813
  message: string().describe("Errors overview."),
66770
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
66814
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
66771
66815
  })
66772
66816
  ]);
66773
66817
  object({
@@ -66866,7 +66910,7 @@ union([
66866
66910
  object({ message: string().describe("Error overview.") }),
66867
66911
  object({
66868
66912
  message: string().describe("Errors overview."),
66869
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
66913
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
66870
66914
  })
66871
66915
  ]);
66872
66916
  object({
@@ -66959,7 +67003,7 @@ var hostingExternalSecretLinkStatus404Schema = messageDataSchema;
66959
67003
  var hostingExternalSecretLinkStatus409Schema = messageDataSchema;
66960
67004
  var hostingExternalSecretLinkStatus422Schema = object({
66961
67005
  message: string().describe("Errors overview."),
66962
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
67006
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
66963
67007
  });
66964
67008
  union([hostingExternalSecretLinkStatus200Schema, hostingExternalSecretLinkStatus201Schema]);
66965
67009
  union([
@@ -67005,7 +67049,7 @@ union([
67005
67049
  messageDataSchema,
67006
67050
  object({
67007
67051
  message: string().describe("Errors overview."),
67008
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
67052
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
67009
67053
  })
67010
67054
  ]);
67011
67055
  rotateHostingExternalSecretConnectionRequestSchema.describe("Rotating the machine identity of one external secret connection.\n\nThe new credential is written to the approved secret owner beside the\nversion it replaces, and the superseded version is removed from the store.");
@@ -67149,7 +67193,7 @@ union([
67149
67193
  object({ message: string().describe("Error overview.") }),
67150
67194
  object({
67151
67195
  message: string().describe("Errors overview."),
67152
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
67196
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
67153
67197
  })
67154
67198
  ]);
67155
67199
  storeHostingGeneratedHostnameWordRequestSchema.describe("Add one word to the generated-hostname vocabulary.\n\nThe alphabet and the length are the same rule the table holds, checked here so the failure is a field\nerror on the screen that caused it rather than a database constraint. It cannot drift from the table:\nboth are the three-to-seven lower-case letters a DNS label is composed of.");
@@ -67158,7 +67202,7 @@ union([
67158
67202
  object({ message: string().describe("Error overview.") }),
67159
67203
  object({
67160
67204
  message: string().describe("Errors overview."),
67161
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
67205
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
67162
67206
  })
67163
67207
  ]);
67164
67208
  updateHostingGeneratedHostnameWordRequestSchema.describe("Switch one word in the generated-hostname vocabulary on or off.\n\nDisabling is the only write: a word already drawn into an address is never removed or renamed, because\nthe address is a client's permanent fallback route. Disabling stops a word being drawn again.");
@@ -67179,7 +67223,7 @@ union([
67179
67223
  messageDataSchema,
67180
67224
  object({
67181
67225
  message: string().describe("Errors overview."),
67182
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
67226
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
67183
67227
  })
67184
67228
  ]);
67185
67229
  object({
@@ -67213,6 +67257,23 @@ union([
67213
67257
  ]);
67214
67258
  object({ company: string() });
67215
67259
  object({ blocks: int().min(1).max(1e4) });
67260
+ union([object({ message: string().describe("Error overview.") }), object({ message: string().describe("Error overview.") })]);
67261
+ object({
67262
+ company: string(),
67263
+ environmentUuid: string()
67264
+ });
67265
+ union([
67266
+ object({ message: string().describe("Error overview.") }),
67267
+ object({ message: string().describe("Error overview.") }),
67268
+ object({
67269
+ message: string().describe("Errors overview."),
67270
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
67271
+ })
67272
+ ]);
67273
+ object({
67274
+ company: string(),
67275
+ environmentUuid: string()
67276
+ });
67216
67277
  int().optional().default(1).describe("Page number.");
67217
67278
  int().optional().default(25).describe("Number of keys per page (maximum 100).");
67218
67279
  string().optional().default("-created_at").describe("Sort by created_at; prefix with - for descending order.");
@@ -67292,7 +67353,7 @@ union([
67292
67353
  object({ message: string().describe("Error overview.") }),
67293
67354
  object({
67294
67355
  message: string().describe("Errors overview."),
67295
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
67356
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
67296
67357
  })
67297
67358
  ]);
67298
67359
  object({ company: string() });
@@ -67383,7 +67444,7 @@ union([
67383
67444
  object({ message: string().describe("Error overview.") }),
67384
67445
  object({
67385
67446
  message: string().describe("Errors overview."),
67386
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
67447
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
67387
67448
  })
67388
67449
  ]);
67389
67450
  object({ company: string() });
@@ -67579,7 +67640,7 @@ var hostingRepositoryConnectionStartStatus401Schema = object({ message: string()
67579
67640
  var hostingRepositoryConnectionStartStatus403Schema = object({ message: string().describe("Error overview.") });
67580
67641
  var hostingRepositoryConnectionStartStatus422Schema = object({
67581
67642
  message: string().describe("Errors overview."),
67582
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
67643
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
67583
67644
  });
67584
67645
  var hostingRepositoryConnectionStartStatus503Schema = messageDataSchema;
67585
67646
  union([hostingRepositoryConnectionStartStatus200Schema, hostingRepositoryConnectionStartStatus201Schema]);
@@ -67649,7 +67710,7 @@ var hostingRuntimeVersionGrantsStoreStatus401Schema = object({ message: string()
67649
67710
  var hostingRuntimeVersionGrantsStoreStatus403Schema = object({ message: string().describe("Error overview.") });
67650
67711
  var hostingRuntimeVersionGrantsStoreStatus422Schema = object({
67651
67712
  message: string().describe("Errors overview."),
67652
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
67713
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
67653
67714
  });
67654
67715
  union([hostingRuntimeVersionGrantsStoreStatus200Schema, hostingRuntimeVersionGrantsStoreStatus201Schema]);
67655
67716
  union([
@@ -67674,7 +67735,7 @@ union([
67674
67735
  object({ message: string().describe("Error overview.") }),
67675
67736
  object({
67676
67737
  message: string().describe("Errors overview."),
67677
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
67738
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
67678
67739
  })
67679
67740
  ]);
67680
67741
  storeHostingSeedDefinitionRequestSchema.describe("Record one seed definition.\n\nScope and company are decided together: a platform definition must not name a company, and a\ncompany definition must. The rule is stated here as a field error and enforced again by the\ndatabase, so a caller learns which field is wrong without a constraint ever being the reporter.");
@@ -67683,7 +67744,7 @@ union([
67683
67744
  object({ message: string().describe("Error overview.") }),
67684
67745
  object({
67685
67746
  message: string().describe("Errors overview."),
67686
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
67747
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
67687
67748
  })
67688
67749
  ]);
67689
67750
  updateHostingSeedDefinitionRequestSchema.describe("Record the preparation policy a recipe carries.\n\nDeliberately only the policy: enabling a definition and selecting a version are activation, and\nboth wait for a verified placement rather than an editable field.");
@@ -67693,7 +67754,7 @@ union([
67693
67754
  object({ message: string().describe("Error overview.") }),
67694
67755
  object({
67695
67756
  message: string().describe("Errors overview."),
67696
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
67757
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
67697
67758
  })
67698
67759
  ]);
67699
67760
  updateHostingSeedConsumptionRequestSchema.describe("Record whether a definition's verified version may serve future claims.\n\nOnly the flag is accepted. Enabling is checked against the selected version's verified placement in\nthe service, so this request stays a field shape rather than a second eligibility owner.");
@@ -67703,7 +67764,7 @@ union([
67703
67764
  object({ message: string().describe("Error overview.") }),
67704
67765
  object({
67705
67766
  message: string().describe("Errors overview."),
67706
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
67767
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
67707
67768
  })
67708
67769
  ]);
67709
67770
  promoteHostingSeedVersionRequestSchema.describe("Promote one immutable version to the version this definition selects for future claims.\n\nThe version is named by UUID; whether it belongs to the addressed definition is checked in the\nservice against the definition that owns the route, so the field rule is a shape check only.");
@@ -67713,7 +67774,7 @@ union([
67713
67774
  object({ message: string().describe("Error overview.") }),
67714
67775
  object({
67715
67776
  message: string().describe("Errors overview."),
67716
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
67777
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
67717
67778
  })
67718
67779
  ]);
67719
67780
  storeHostingSeedVersionRequestSchema.describe("Record one immutable seed version.\n\nThe source snapshot is a release/commit *and* a checksum, and the content contract names the tree\nthe adoption step verifies. `releaseUuid` is a reference to the existing immutable artifact owner,\nnever a copied snapshot or an object path, and a platform version may not point at a company's\nrelease — the service refuses that, because a shared seed cannot carry private bytes.\n\n`sourceCommit` and `runtimeImageDigest` are identity, so they are validated as identity: a commit\nis a full 40- or 64-character hex object id, and the runtime image must end in an `@sha256:`\ndigest — either a bare digest or the full `repository[:tag]@sha256:…` reference a Pod can pull.\nA mutable tag like `latest` is deliberately refused here rather than persisted as if it pinned\nbytes, because a version whose runtime can change under it is not a version.");
@@ -67723,7 +67784,7 @@ union([
67723
67784
  object({ message: string().describe("Error overview.") }),
67724
67785
  object({
67725
67786
  message: string().describe("Errors overview."),
67726
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
67787
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
67727
67788
  })
67728
67789
  ]);
67729
67790
  storeHostingSeedPlacementRequestSchema.describe("Record one seed version's desired state on one cluster.\n\nA caller supplies the cluster, the per-placement execution mode and the smallest claim the storage\nclass can provision. Resource names and observed readiness are deliberately not accepted: those are\nwritten by construction and by a real observation, and never fabricated from a request.");
@@ -67787,7 +67848,7 @@ union([
67787
67848
  messageDataSchema,
67788
67849
  object({
67789
67850
  message: string().describe("Errors overview."),
67790
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
67851
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
67791
67852
  })
67792
67853
  ]);
67793
67854
  object({
@@ -67897,7 +67958,7 @@ union([
67897
67958
  messageDataSchema,
67898
67959
  object({
67899
67960
  message: string().describe("Errors overview."),
67900
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
67961
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
67901
67962
  })
67902
67963
  ]);
67903
67964
  object({
@@ -67912,7 +67973,7 @@ union([
67912
67973
  messageDataSchema,
67913
67974
  object({
67914
67975
  message: string().describe("Errors overview."),
67915
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
67976
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
67916
67977
  })
67917
67978
  ]);
67918
67979
  object({
@@ -67929,7 +67990,7 @@ union([
67929
67990
  messageDataSchema,
67930
67991
  object({
67931
67992
  message: string().describe("Errors overview."),
67932
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
67993
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
67933
67994
  })
67934
67995
  ]);
67935
67996
  object({
@@ -67975,20 +68036,6 @@ object({
67975
68036
  company: string(),
67976
68037
  environmentUuid: string()
67977
68038
  });
67978
- union([
67979
- object({ message: string().describe("Error overview.") }),
67980
- object({ message: string().describe("Error overview.") }),
67981
- messageDataSchema,
67982
- object({
67983
- message: string().describe("Errors overview."),
67984
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
67985
- })
67986
- ]);
67987
- storeHostingCustdRealmRequestSchema.describe("The shape of one environment's deployment-realm allocation intent.\n\nAuthority is existing tenant identity only — the CustD company and its real owning user. Provider\nproject/environment/directory identifiers are deliberately absent: allocation records them from the\nSDK's own response, never from a caller. The remaining fields are the same realm intent the internal\nservice already accepts, so this request adds a boundary without changing what the service records.");
67988
- object({
67989
- company: string(),
67990
- environmentUuid: string()
67991
- });
67992
68039
  union([
67993
68040
  object({ message: string().describe("Error overview.") }),
67994
68041
  object({ message: string().describe("Error overview.") }),
@@ -68040,7 +68087,7 @@ union([
68040
68087
  object({ message: string().describe("Error overview.") }),
68041
68088
  object({
68042
68089
  message: string().describe("Errors overview."),
68043
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
68090
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
68044
68091
  })
68045
68092
  ]);
68046
68093
  object({ company: string() });
@@ -68387,7 +68434,7 @@ var hostingStorageAdoptionRepairStatus401Schema = object({ message: string().des
68387
68434
  var hostingStorageAdoptionRepairStatus403Schema = object({ message: string().describe("Error overview.") });
68388
68435
  var hostingStorageAdoptionRepairStatus422Schema = object({
68389
68436
  message: string().describe("Errors overview."),
68390
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
68437
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
68391
68438
  });
68392
68439
  union([hostingStorageAdoptionRepairStatus200Schema, hostingStorageAdoptionRepairStatus201Schema]);
68393
68440
  union([
@@ -68405,7 +68452,7 @@ var hostingStorageAdoptionRetainedDisposeStatus401Schema = object({ message: str
68405
68452
  var hostingStorageAdoptionRetainedDisposeStatus403Schema = object({ message: string().describe("Error overview.") });
68406
68453
  var hostingStorageAdoptionRetainedDisposeStatus422Schema = object({
68407
68454
  message: string().describe("Errors overview."),
68408
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
68455
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
68409
68456
  });
68410
68457
  union([hostingStorageAdoptionRetainedDisposeStatus200Schema, hostingStorageAdoptionRetainedDisposeStatus201Schema]);
68411
68458
  union([
@@ -68526,7 +68573,7 @@ union([
68526
68573
  object({ message: string().describe("Error overview.") }),
68527
68574
  object({
68528
68575
  message: string().describe("Errors overview."),
68529
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
68576
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
68530
68577
  })
68531
68578
  ]);
68532
68579
  object({ company: string() });
@@ -68574,7 +68621,7 @@ union([
68574
68621
  object({ message: string().describe("Error overview.") }),
68575
68622
  object({
68576
68623
  message: string().describe("Errors overview."),
68577
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
68624
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
68578
68625
  })
68579
68626
  ]);
68580
68627
  storeHostingStorageObjectGrantRequestSchema.describe("Asking for one short-lived signed URL for one object.\n\nThe direction decides the verb: a download signs a GET and an upload signs a PUT, so a browser or the CLI\ncan move the bytes itself. The key is the client's own path inside their bucket and is validated as a key,\nnot as a filesystem path — control characters are refused because they would break signing and logging.");
@@ -68600,6 +68647,20 @@ object({
68600
68647
  conversion: boolean().optional().describe("Asking to price the allocation a usage-billed bucket would move to, rather than an increase to one it\nalready holds. The intent changes which refusals apply, so it is asked for rather than guessed."),
68601
68648
  contentFormat: _enum(["native", "rclone_crypt"]).optional().describe("A new purchase may choose how its bytes are represented; a quote for an existing bucket prices the format\nthat bucket already has, because nothing reinterprets its bytes later.")
68602
68649
  });
68650
+ union([object({ message: string().describe("Error overview.") }), object({ message: string().describe("Error overview.") })]);
68651
+ object({
68652
+ company: string(),
68653
+ bucketUuid: string()
68654
+ });
68655
+ union([
68656
+ object({ message: string().describe("Error overview.") }),
68657
+ object({ message: string().describe("Error overview.") }),
68658
+ validationErrorDataSchema
68659
+ ]);
68660
+ object({
68661
+ company: string(),
68662
+ bucketUuid: string()
68663
+ });
68603
68664
  union([
68604
68665
  object({ message: string().describe("Error overview.") }),
68605
68666
  object({ message: string().describe("Error overview.") }),
@@ -68615,7 +68676,7 @@ union([
68615
68676
  messageDataSchema,
68616
68677
  object({
68617
68678
  message: string().describe("Errors overview."),
68618
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
68679
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
68619
68680
  })
68620
68681
  ]);
68621
68682
  updateHostingToolSelectionRequestSchema.describe("Switching one browser tool on or off for an environment.\n\n`desiredGeneration` is required because this is a desired-state change: a request made against a\ngeneration the environment has already moved past would silently overwrite a newer decision.");
@@ -68767,7 +68828,7 @@ var hostingWordpressUrlRepairPreviewStatus401Schema = object({ message: string()
68767
68828
  var hostingWordpressUrlRepairPreviewStatus403Schema = object({ message: string().describe("Error overview.") });
68768
68829
  var hostingWordpressUrlRepairPreviewStatus422Schema = object({
68769
68830
  message: string().describe("Errors overview."),
68770
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
68831
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
68771
68832
  });
68772
68833
  union([hostingWordpressUrlRepairPreviewStatus200Schema, hostingWordpressUrlRepairPreviewStatus201Schema]);
68773
68834
  union([
@@ -68785,7 +68846,7 @@ union([
68785
68846
  object({ message: string().describe("Error overview.") }),
68786
68847
  object({
68787
68848
  message: string().describe("Errors overview."),
68788
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
68849
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
68789
68850
  })
68790
68851
  ]);
68791
68852
  object({
@@ -68870,7 +68931,7 @@ int().min(1).optional();
68870
68931
  int().min(1).max(100).optional();
68871
68932
  union([object({ message: string().describe("Error overview.") }), object({
68872
68933
  message: string().describe("Errors overview."),
68873
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
68934
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
68874
68935
  })]);
68875
68936
  object({
68876
68937
  company: string().max(255).nullish(),
@@ -68903,7 +68964,7 @@ union([
68903
68964
  object({ message: string().describe("Error overview.") }),
68904
68965
  object({
68905
68966
  message: string().describe("Errors overview."),
68906
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
68967
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
68907
68968
  })
68908
68969
  ]);
68909
68970
  storePlatformAlertRecipientRequestSchema.describe("Add one system-admin address to the platform alert recipient list.\n\nSyntax is the request's (`email:rfc|max:254`); normalization to the canonical value is the\nexisting `emails` owner's, never a second normalizer here. The route's `can:` middleware owns the\npermission check, so authorization is not repeated.");
@@ -68912,7 +68973,7 @@ union([
68912
68973
  object({ message: string().describe("Error overview.") }),
68913
68974
  object({
68914
68975
  message: string().describe("Errors overview."),
68915
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
68976
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
68916
68977
  })
68917
68978
  ]);
68918
68979
  updatePlatformAlertRecipientRequestSchema.describe("Switch one platform alert recipient on or off.\n\nOne required boolean. A disabled recipient stays on the list and receives nothing; the service\nowns the rule that the final active recipient may not be disabled while alerting is on, and the\nroute's `can:` middleware owns permission.");
@@ -68925,7 +68986,7 @@ union([
68925
68986
  object({ message: string().describe("Error overview.") }),
68926
68987
  object({
68927
68988
  message: string().describe("Errors overview."),
68928
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
68989
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
68929
68990
  })
68930
68991
  ]);
68931
68992
  updatePlatformAlertSettingsRequestSchema.describe("The desired-enabled change to platform alerting.\n\nOne required boolean, because that is the whole settings surface. The service owns the rules that\ndecide whether the change is allowed; the route's `can:` middleware owns permission.");
@@ -68934,7 +68995,7 @@ union([
68934
68995
  object({ message: string().describe("Error overview.") }),
68935
68996
  object({
68936
68997
  message: string().describe("Errors overview."),
68937
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
68998
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
68938
68999
  })
68939
69000
  ]);
68940
69001
  object({ company: string() });
@@ -68951,7 +69012,7 @@ union([
68951
69012
  object({ message: string().describe("Error overview.") }),
68952
69013
  object({
68953
69014
  message: string().describe("Errors overview."),
68954
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69015
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
68955
69016
  })
68956
69017
  ]);
68957
69018
  reconcileBillingCollectionAttemptRequestSchema.describe("Resolve a charge nobody can account for.\n\nThe note is required because it is the evidence for a decision about money: what the operator\nchecked and where. `charged` additionally needs the provider's own transaction id and the amount\nthat actually settled, which is what makes the resulting receipt idempotent.");
@@ -68964,7 +69025,7 @@ union([
68964
69025
  object({ message: string().describe("Error overview.") }),
68965
69026
  object({
68966
69027
  message: string().describe("Errors overview."),
68967
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69028
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
68968
69029
  })
68969
69030
  ]);
68970
69031
  reconcileBillingCollectionAttemptRequestSchema.describe("Resolve a charge nobody can account for.\n\nThe note is required because it is the evidence for a decision about money: what the operator\nchecked and where. `charged` additionally needs the provider's own transaction id and the amount\nthat actually settled, which is what makes the resulting receipt idempotent.");
@@ -68977,7 +69038,7 @@ union([
68977
69038
  object({ message: string().describe("Error overview.") }),
68978
69039
  object({
68979
69040
  message: string().describe("Errors overview."),
68980
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69041
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
68981
69042
  })
68982
69043
  ]);
68983
69044
  recordBillingCollectionReceiptRequestSchema.describe("Record money received outside Hosting against one invoice, attributed to the operator who did it.\n\nThe provider's transaction id is required: it is the idempotency key, so a repeated submission is\nthe same settlement rather than a second one.");
@@ -68990,7 +69051,7 @@ union([
68990
69051
  object({ message: string().describe("Error overview.") }),
68991
69052
  object({
68992
69053
  message: string().describe("Errors overview."),
68993
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69054
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
68994
69055
  })
68995
69056
  ]);
68996
69057
  refundBillingCollectionReceiptRequestSchema.describe("Record that verified money came back.\n\nThe reason is required because it is the evidence for a return: a refund is a cash movement, and the record\nhas to say who established it and why. A credit note is a supply reversal and is not this.\n\nThere is no destination field, by design. The money goes back to the original payment instrument; this\nrequest only carries the provider's own refund reference so the return can be checked against it later.");
@@ -69004,7 +69065,7 @@ union([
69004
69065
  object({ message: string().describe("Error overview.") }),
69005
69066
  object({
69006
69067
  message: string().describe("Errors overview."),
69007
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69068
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69008
69069
  })
69009
69070
  ]);
69010
69071
  releaseBillingCollectionReversalHoldRequestSchema.describe("Let one invoice's automatic collection resume after money came back.\n\nThe reason is required because the whole point of the hold is that a second charge has to be explainable:\nthe record must say who decided the debt stands and why. Releasing charges nothing by itself.");
@@ -69017,7 +69078,7 @@ union([
69017
69078
  object({ message: string().describe("Error overview.") }),
69018
69079
  object({
69019
69080
  message: string().describe("Errors overview."),
69020
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69081
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69021
69082
  })
69022
69083
  ]);
69023
69084
  releaseBillingCollectionLockRequestSchema.describe("Let a company's automatic collection resume after it was stopped.\n\nThe reason is required because the release is the whole evidence that somebody looked: the record has to\nsay who let the company back into automatic collection and why. Releasing charges nothing by itself.");
@@ -69027,7 +69088,7 @@ union([
69027
69088
  object({ message: string().describe("Error overview.") }),
69028
69089
  object({
69029
69090
  message: string().describe("Errors overview."),
69030
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69091
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69031
69092
  })
69032
69093
  ]);
69033
69094
  applyBillingCreditRequestSchema.describe("Apply one held amount to one invoice.\n\nThe credit is named explicitly, because \"use whatever credit this company has\" would make the ledger entry\nunattributable the moment a company holds two amounts. The reason is required for the same reason it is\nrequired everywhere else on this money path: a person decided it, so the record has to say why.");
@@ -69040,7 +69101,7 @@ union([
69040
69101
  object({ message: string().describe("Error overview.") }),
69041
69102
  object({
69042
69103
  message: string().describe("Errors overview."),
69043
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69104
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69044
69105
  })
69045
69106
  ]);
69046
69107
  reverseBillingCreditApplicationRequestSchema.describe("Undo an application of held credit, putting it back where it came from.\n\nA correction is a reasoned act, not a deletion: the reason is what explains later why the invoice owes again.");
@@ -69310,7 +69371,7 @@ union([
69310
69371
  object({ message: string().describe("Error overview.") }),
69311
69372
  object({
69312
69373
  message: string().describe("Errors overview."),
69313
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69374
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69314
69375
  })
69315
69376
  ]);
69316
69377
  recordBillingProviderPayoutRequestSchema.describe("An operator transcribes what landed in the bank for one provider payout. Nothing is derived or verified.");
@@ -69321,7 +69382,7 @@ union([
69321
69382
  object({ message: string().describe("Error overview.") }),
69322
69383
  object({
69323
69384
  message: string().describe("Errors overview."),
69324
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69385
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69325
69386
  })
69326
69387
  ]);
69327
69388
  recordBillingProviderSettlementRequestSchema.describe("An operator transcribes the provider's amounts; this request neither moves nor verifies money.");
@@ -69379,7 +69440,7 @@ union([
69379
69440
  object({ message: string().describe("Error overview.") }),
69380
69441
  object({
69381
69442
  message: string().describe("Errors overview."),
69382
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69443
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69383
69444
  })
69384
69445
  ]);
69385
69446
  object({ providerRefundReference: string().max(64) });
@@ -69394,7 +69455,7 @@ union([
69394
69455
  object({ message: string().describe("Error overview.") }),
69395
69456
  object({
69396
69457
  message: string().describe("Errors overview."),
69397
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69458
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69398
69459
  })
69399
69460
  ]);
69400
69461
  object({ note: string().max(250) });
@@ -69409,7 +69470,7 @@ union([
69409
69470
  object({ message: string().describe("Error overview.") }),
69410
69471
  object({
69411
69472
  message: string().describe("Errors overview."),
69412
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69473
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69413
69474
  })
69414
69475
  ]);
69415
69476
  object({ note: string().max(250) });
@@ -69427,7 +69488,7 @@ union([
69427
69488
  object({ message: string().describe("Error overview.") }),
69428
69489
  object({
69429
69490
  message: string().describe("Errors overview."),
69430
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69491
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69431
69492
  })
69432
69493
  ]);
69433
69494
  billingRunRequestSchema.describe("Pricing or reading one company-month.\n\nThe month is required and is a local `YYYY-MM`: a default would be a guessed invoice period, and a wrong\ninvoice period is worse than a refusal. There is deliberately no `issue` flag here — pricing a month and\nturning it into a numbered document are different actions, so no single request can do both.");
@@ -69562,7 +69623,7 @@ union([
69562
69623
  object({ message: string().describe("Error overview.") }),
69563
69624
  object({
69564
69625
  message: string().describe("Errors overview."),
69565
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69626
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69566
69627
  })
69567
69628
  ]);
69568
69629
  object({ company: string().describe("The company slug") });
@@ -69582,7 +69643,7 @@ union([
69582
69643
  object({ message: string().describe("Error overview.") }),
69583
69644
  object({
69584
69645
  message: string().describe("Errors overview."),
69585
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69646
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69586
69647
  })
69587
69648
  ]);
69588
69649
  provisionHostingPoolRequestSchema.describe("Platform client-management middleware owns authority; the service refuses priced accounts.");
@@ -69591,13 +69652,11 @@ union([
69591
69652
  object({ message: string().describe("Error overview.") }),
69592
69653
  object({ message: string().describe("Error overview.") }),
69593
69654
  messageDataSchema,
69594
- object({
69595
- message: string().describe("Errors overview."),
69596
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69597
- })
69655
+ messageDataSchema,
69656
+ validationErrorDataSchema
69598
69657
  ]);
69599
- storeHostingCustdRealmRequestSchema.describe("The shape of one environment's deployment-realm allocation intent.\n\nAuthority is existing tenant identity only — the CustD company and its real owning user. Provider\nproject/environment/directory identifiers are deliberately absent: allocation records them from the\nSDK's own response, never from a caller. The remaining fields are the same realm intent the internal\nservice already accepts, so this request adds a boundary without changing what the service records.");
69600
- object({ environmentUuid: string() });
69658
+ attestHostingCustdAuthorityRequestSchema.describe("The CustD company and its real owning user that act for one Hosting company. Provider project,\nenvironment and directory identities are never inputs: reconciliation records them from CustD's answers.");
69659
+ object({ company: string() });
69601
69660
  union([object({ message: string().describe("Error overview.") }), messageDataSchema]);
69602
69661
  union([
69603
69662
  object({ message: string().describe("Error overview.") }),
@@ -69612,7 +69671,7 @@ union([
69612
69671
  object({ message: string().describe("Error overview.") }),
69613
69672
  object({
69614
69673
  message: string().describe("Errors overview."),
69615
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69674
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69616
69675
  })
69617
69676
  ]);
69618
69677
  dnsPhysicalPurgeAttestationRequestSchema.describe("One operator's recorded read of the independent secondary store.\n\nEvery field is something the operator observed; none of it is inferred by the product. No credential,\ntoken or store dump belongs in the body, which is why the raw output is named through\n`evidenceReference` rather than submitted. `expectedGeneration` is the generation the operator read\nthe store against: the service refuses the record when the zone has since moved, so the decision\ncannot be stamped onto a generation the operator never observed. The platform route's `can:`\nmiddleware is the authorization owner, so `authorize()` only says the request itself is well-formed.");
@@ -69624,7 +69683,7 @@ union([
69624
69683
  object({ message: string().describe("Error overview.") }),
69625
69684
  object({
69626
69685
  message: string().describe("Errors overview."),
69627
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69686
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69628
69687
  })
69629
69688
  ]);
69630
69689
  dnsPhysicalPurgeRevocationRequestSchema.describe("Withdrawing a recorded secondary-store decision.\n\nA revocation is a decision of its own, so it carries its own reason rather than a bare DELETE. The\nplatform route's `can:` middleware is the authorization owner.");
@@ -69643,7 +69702,7 @@ union([
69643
69702
  object({ message: string().describe("Error overview.") }),
69644
69703
  object({
69645
69704
  message: string().describe("Errors overview."),
69646
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69705
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69647
69706
  })
69648
69707
  ]);
69649
69708
  object({ "filter[hostname]": string().describe("The exact name to resolve, for example shop.example.com. Required; there is no list-all mode.") });
@@ -69654,7 +69713,7 @@ union([
69654
69713
  object({ message: string().describe("Error overview.") }),
69655
69714
  object({
69656
69715
  message: string().describe("Errors overview."),
69657
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69716
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69658
69717
  })
69659
69718
  ]);
69660
69719
  object({ domain: string().describe("The domain UUID") });
@@ -69665,7 +69724,7 @@ union([
69665
69724
  object({ message: string().describe("Error overview.") }),
69666
69725
  object({
69667
69726
  message: string().describe("Errors overview."),
69668
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69727
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69669
69728
  })
69670
69729
  ]);
69671
69730
  object({ domain: string().describe("The domain UUID") });
@@ -69677,7 +69736,7 @@ var platformDomainOwnershipTransferStatus403Schema = object({ message: string().
69677
69736
  var platformDomainOwnershipTransferStatus404Schema = object({ message: string().describe("Error overview.") });
69678
69737
  var platformDomainOwnershipTransferStatus422Schema = object({
69679
69738
  message: string().describe("Errors overview."),
69680
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69739
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69681
69740
  });
69682
69741
  union([platformDomainOwnershipTransferStatus201Schema, platformDomainOwnershipTransferStatus202Schema]);
69683
69742
  union([
@@ -69766,7 +69825,7 @@ union([
69766
69825
  object({ message: string().describe("Error overview.") }),
69767
69826
  object({
69768
69827
  message: string().describe("Errors overview."),
69769
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69828
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69770
69829
  })
69771
69830
  ]);
69772
69831
  object({
@@ -69828,7 +69887,7 @@ union([
69828
69887
  messageDataSchema,
69829
69888
  object({
69830
69889
  message: string().describe("Errors overview."),
69831
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69890
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69832
69891
  })
69833
69892
  ]);
69834
69893
  object({ kind: hostingOperationKindEnumSchema.optional().describe("The lifecycle operations whose timing Hosting records. Each case is a family whose own owner already records when it started, what it was in and how it ended; `HostingOperationSourceImport` only projects those recorded instants into the shared timing tables. No case exists for a family without stage evidence of its own, and nothing here is a workflow engine: a case names work another owner already performed. - `reconcile` — the reconcile journal's named stages (`HostingDiagnosticsJournal`), which is what provisioning, updates and rollouts all converge through. - `build` — one `HostingBuild` attempt: queued, then run to an artifact. - `update` — one `HostingRelease` activation: prepared, then applied and made active. - `restore` — one `HostingApplicationRecovery` review/reset/restore, with its recorded phases. - `backup` — one observed backup run per track, as the existing backup readers saw it. The readers are cluster reads, so the projection is written where the platform already observes out of band; the operator's read never calls the cluster.\n") });
@@ -69848,7 +69907,7 @@ union([
69848
69907
  object({ message: string().describe("Error overview.") }),
69849
69908
  object({
69850
69909
  message: string().describe("Errors overview."),
69851
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69910
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69852
69911
  })
69853
69912
  ]);
69854
69913
  evacuateHostingRuntimeVersionRequestSchema.describe("Moving a bounded batch off one line, with the reason every move carries.");
@@ -69861,7 +69920,7 @@ union([
69861
69920
  object({ message: string().describe("Error overview.") }),
69862
69921
  object({
69863
69922
  message: string().describe("Errors overview."),
69864
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69923
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69865
69924
  })
69866
69925
  ]);
69867
69926
  retireHostingRuntimeVersionRequestSchema.describe("Retiring one line, with the reason the audit record carries.");
@@ -69874,7 +69933,7 @@ union([
69874
69933
  object({ message: string().describe("Error overview.") }),
69875
69934
  object({
69876
69935
  message: string().describe("Errors overview."),
69877
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69936
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69878
69937
  })
69879
69938
  ]);
69880
69939
  announceHostingRuntimeVersionNoticeRequestSchema.describe("Announcing the date a line's applications will be moved, which gates `forced`.");
@@ -69887,7 +69946,7 @@ union([
69887
69946
  object({ message: string().describe("Error overview.") }),
69888
69947
  object({
69889
69948
  message: string().describe("Errors overview."),
69890
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69949
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69891
69950
  })
69892
69951
  ]);
69893
69952
  changeHostingRuntimeVersionStateRequestSchema.describe("Declaring one line's lifecycle state, with the note a state outside Live requires.");
@@ -69909,7 +69968,7 @@ union([
69909
69968
  object({ message: string().describe("Error overview.") }),
69910
69969
  object({
69911
69970
  message: string().describe("Errors overview."),
69912
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69971
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69913
69972
  })
69914
69973
  ]);
69915
69974
  object({
@@ -69935,7 +69994,7 @@ union([
69935
69994
  object({ message: string().describe("Error overview.") }),
69936
69995
  object({
69937
69996
  message: string().describe("Errors overview."),
69938
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
69997
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69939
69998
  })
69940
69999
  ]);
69941
70000
  object({ period: string().regex(/^[0-9]{4}-(0[1-9]|1[0-2])$/).nullish() });
@@ -69945,7 +70004,7 @@ union([
69945
70004
  object({ message: string().describe("Error overview.") }),
69946
70005
  object({
69947
70006
  message: string().describe("Errors overview."),
69948
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
70007
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69949
70008
  })
69950
70009
  ]);
69951
70010
  registerHostingStorageClassRequestSchema.describe("Register one cluster's Kubernetes StorageClass in the catalogue.\n\nThe name is validated as a Kubernetes object name and unique per cluster, because it names an\nobject that already exists: a second row for the same class would let two records disagree about\none pool. Nothing here contacts the cluster; registration records intent.");
@@ -69957,7 +70016,7 @@ union([
69957
70016
  messageDataSchema,
69958
70017
  object({
69959
70018
  message: string().describe("Errors overview."),
69960
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
70019
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69961
70020
  })
69962
70021
  ]);
69963
70022
  updateHostingStorageClassRequestSchema.describe("Edit a registered class's display text.\n\nOnly the name and description are editable. The Kubernetes name, backend and cluster are the\nclass's identity and changing them would make an existing claim's history untrue.");
@@ -69967,7 +70026,7 @@ union([
69967
70026
  object({ message: string().describe("Error overview.") }),
69968
70027
  object({
69969
70028
  message: string().describe("Errors overview."),
69970
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
70029
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69971
70030
  })
69972
70031
  ]);
69973
70032
  setHostingStorageClassEnabledRequestSchema.describe("Switch one registered class's enabled state.");
@@ -69984,7 +70043,7 @@ union([
69984
70043
  object({ message: string().describe("Error overview.") }),
69985
70044
  object({
69986
70045
  message: string().describe("Errors overview."),
69987
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
70046
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
69988
70047
  })
69989
70048
  ]);
69990
70049
  setHostingClusterStorageDefaultRequestSchema.describe("Choose the class a cluster allocates a claim type from when an environment names no choice.\n\nIt is desired state for future allocation only: a volume already bound keeps its recorded class.");
@@ -69996,7 +70055,7 @@ union([
69996
70055
  object({ message: string().describe("Error overview.") }),
69997
70056
  object({
69998
70057
  message: string().describe("Errors overview."),
69999
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
70058
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
70000
70059
  })
70001
70060
  ]);
70002
70061
  object({ clusterUuid: string() });
@@ -70047,7 +70106,7 @@ union([
70047
70106
  messageDataSchema,
70048
70107
  object({
70049
70108
  message: string().describe("Errors overview."),
70050
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
70109
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
70051
70110
  })
70052
70111
  ]);
70053
70112
  exportPortableSiteRequestSchema.optional();
@@ -70335,7 +70394,7 @@ union([
70335
70394
  object({ message: string().describe("Error overview.") }),
70336
70395
  object({
70337
70396
  message: string().describe("Errors overview."),
70338
- errors: record$4(string(), array(string())).describe("A detailed description of each field that failed validation.")
70397
+ errors: record$3(string(), array(string())).describe("A detailed description of each field that failed validation.")
70339
70398
  })
70340
70399
  ]);
70341
70400
  updateEmailReportingMailboxRequestSchema.describe("A platform operator selecting a collector's reporting mailbox or toggling its boundary.\n\nThe mailbox is addressed by its UUID; whether it is an eligible, credential-bearing mailbox owned\nby this installation is the service's decision, so an ineligible UUID is a field refusal rather\nthan a validation coincidence.");
@@ -71801,7 +71860,7 @@ function episode(rest) {
71801
71860
  };
71802
71861
  }
71803
71862
  // src/commands/company-assets.ts
71804
- var USAGE$45 = [
71863
+ var USAGE$46 = [
71805
71864
  "Usage: hostingctl company logo|favicon set --image-file <path> --company <slug>",
71806
71865
  " hostingctl company logo|favicon remove --company <slug>",
71807
71866
  "",
@@ -71816,17 +71875,17 @@ var USAGE$45 = [
71816
71875
  */
71817
71876
  async function companyAssets(context, asset, rest) {
71818
71877
  const [action, ...tail] = rest;
71819
- if (tail.length > 0) throw new UsageError(USAGE$45);
71878
+ if (tail.length > 0) throw new UsageError(USAGE$46);
71820
71879
  const company = await requireCompany(context.flags);
71821
71880
  if (action === "set") return await set$2(context, asset, company);
71822
71881
  if (action === "remove") return await remove$4(context, asset, company);
71823
- throw new UsageError(USAGE$45);
71882
+ throw new UsageError(USAGE$46);
71824
71883
  }
71825
71884
  /** `set --image-file …`: one multipart upload of the asset. */
71826
71885
  async function set$2(context, asset, company) {
71827
71886
  const file = context.flags.get("--image-file") ?? "";
71828
71887
  return await confirmableWrite(context, file === "" ? `Set ${company}'s ${asset}.` : `Set ${company}'s ${asset} to ${file}.`, async () => {
71829
- const body = await imageUpload(file, USAGE$45);
71888
+ const body = await imageUpload(file, USAGE$46);
71830
71889
  return asset === "logo" ? (await companyAssetStoreLogo({
71831
71890
  path: { company },
71832
71891
  body
@@ -71862,7 +71921,7 @@ function companyRole(raw, usage) {
71862
71921
  return named;
71863
71922
  }
71864
71923
  // src/commands/company-invitations.ts
71865
- var USAGE$44 = [
71924
+ var USAGE$45 = [
71866
71925
  "Usage: hostingctl company invitations --company <slug>",
71867
71926
  " hostingctl company invite --company <slug> --email <email> --name <name> --role <admin|member>",
71868
71927
  " hostingctl company cancel-invitation <invitation-uuid> --company <slug>",
@@ -71886,7 +71945,7 @@ var MAX_INVITATION_TOKEN_BYTES = 4096;
71886
71945
  */
71887
71946
  async function companyInvitations(context, subcommand, rest) {
71888
71947
  if (subcommand === "invitations") {
71889
- if (rest.length > 0) throw new UsageError(USAGE$44);
71948
+ if (rest.length > 0) throw new UsageError(USAGE$45);
71890
71949
  const company = await requireCompany(context.flags);
71891
71950
  return {
71892
71951
  kind: "invitations",
@@ -71897,20 +71956,20 @@ async function companyInvitations(context, subcommand, rest) {
71897
71956
  if (subcommand === "invite") return await invite(context, rest);
71898
71957
  if (subcommand === "cancel-invitation") return await cancel$1(context, rest);
71899
71958
  if (subcommand === "invitation-preview") return (await companyInvitationPreview({
71900
- path: { invitationUuid: oneUuid$7(rest, USAGE$44) },
71901
- body: { token: readSecret(context, "token", MAX_INVITATION_TOKEN_BYTES, USAGE$44) }
71959
+ path: { invitationUuid: oneUuid$7(rest, USAGE$45) },
71960
+ body: { token: readSecret(context, "token", MAX_INVITATION_TOKEN_BYTES, USAGE$45) }
71902
71961
  })).data;
71903
71962
  if (subcommand === "invitation-accept") return await accept(context, rest);
71904
- throw new UsageError(USAGE$44);
71963
+ throw new UsageError(USAGE$45);
71905
71964
  }
71906
71965
  /** `invite --email … --name … --role …`. */
71907
71966
  async function invite(context, rest) {
71908
- if (rest.length > 0) throw new UsageError(USAGE$44);
71967
+ if (rest.length > 0) throw new UsageError(USAGE$45);
71909
71968
  const company = await requireCompany(context.flags);
71910
71969
  const email = context.flags.get("--email")?.trim() ?? "";
71911
71970
  const name = context.flags.get("--name")?.trim() ?? "";
71912
- const role = companyRole(context.flags.get("--role"), USAGE$44);
71913
- if (email === "" || name === "") throw new UsageError(`invite needs --email and --name.\n\n${USAGE$44}`);
71971
+ const role = companyRole(context.flags.get("--role"), USAGE$45);
71972
+ if (email === "" || name === "") throw new UsageError(`invite needs --email and --name.\n\n${USAGE$45}`);
71914
71973
  return await confirmableWrite(context, `Invite ${name} <${email}> into ${company} as ${role}.`, async () => (await companyInvitationStore({
71915
71974
  path: { company },
71916
71975
  body: {
@@ -71922,7 +71981,7 @@ async function invite(context, rest) {
71922
71981
  }
71923
71982
  /** `cancel-invitation <uuid> --company …`. */
71924
71983
  async function cancel$1(context, rest) {
71925
- const invitationUuid = oneUuid$7(rest, USAGE$44);
71984
+ const invitationUuid = oneUuid$7(rest, USAGE$45);
71926
71985
  const company = await requireCompany(context.flags);
71927
71986
  return await confirmableWrite(context, `Cancel invitation ${invitationUuid}.`, async () => {
71928
71987
  return (await companyInvitationDestroy({ path: {
@@ -71933,11 +71992,11 @@ async function cancel$1(context, rest) {
71933
71992
  }
71934
71993
  /** `invitation-accept <uuid>`: join the company the invitation names. */
71935
71994
  async function accept(context, rest) {
71936
- const invitationUuid = oneUuid$7(rest, USAGE$44);
71995
+ const invitationUuid = oneUuid$7(rest, USAGE$45);
71937
71996
  return await confirmableWrite(context, `Accept invitation ${invitationUuid}.`, async () => {
71938
71997
  return (await companyInvitationAccept({
71939
71998
  path: { invitationUuid },
71940
- body: { token: readSecret(context, "token", MAX_INVITATION_TOKEN_BYTES, USAGE$44) }
71999
+ body: { token: readSecret(context, "token", MAX_INVITATION_TOKEN_BYTES, USAGE$45) }
71941
72000
  })).data;
71942
72001
  });
71943
72002
  }
@@ -72056,31 +72115,31 @@ var COMPANY_TOPICS = [
72056
72115
  },
72057
72116
  {
72058
72117
  path: ["logo"],
72059
- usage: USAGE$45
72118
+ usage: USAGE$46
72060
72119
  },
72061
72120
  {
72062
72121
  path: ["favicon"],
72063
- usage: USAGE$45
72122
+ usage: USAGE$46
72064
72123
  },
72065
72124
  {
72066
72125
  path: ["invitations"],
72067
- usage: USAGE$44
72126
+ usage: USAGE$45
72068
72127
  },
72069
72128
  {
72070
72129
  path: ["invite"],
72071
- usage: USAGE$44
72130
+ usage: USAGE$45
72072
72131
  },
72073
72132
  {
72074
72133
  path: ["cancel-invitation"],
72075
- usage: USAGE$44
72134
+ usage: USAGE$45
72076
72135
  },
72077
72136
  {
72078
72137
  path: ["invitation-preview"],
72079
- usage: USAGE$44
72138
+ usage: USAGE$45
72080
72139
  },
72081
72140
  {
72082
72141
  path: ["invitation-accept"],
72083
- usage: USAGE$44
72142
+ usage: USAGE$45
72084
72143
  }
72085
72144
  ];
72086
72145
  // src/commands/company-text.ts
@@ -74614,7 +74673,7 @@ var diagnostics = {
74614
74673
  }
74615
74674
  };
74616
74675
  // src/commands/dns-records.ts
74617
- var USAGE$43 = [
74676
+ var USAGE$44 = [
74618
74677
  "Usage: hostingctl dns enable <domain-uuid> --company <slug>",
74619
74678
  " hostingctl dns record set <domain-uuid> --company <slug> --file <set.json>",
74620
74679
  " hostingctl dns record remove <domain-uuid> --company <slug> --name <relative> --type <type>",
@@ -74650,10 +74709,10 @@ var RECORD_TYPES = /* @__PURE__ */ new Set([
74650
74709
  /** `dns enable|record|dnssec|handover`, dispatched from the `dns` command. */
74651
74710
  async function dnsWrites(context, subcommand, rest) {
74652
74711
  if (subcommand === "enable") return await enable(context, rest);
74653
- if (subcommand === "record") return await record$3(context, rest);
74712
+ if (subcommand === "record") return await record$2(context, rest);
74654
74713
  if (subcommand === "dnssec") return await changeDnssec(context, rest);
74655
74714
  if (subcommand === "handover") return await handover(context, rest);
74656
- throw new UsageError(USAGE$43);
74715
+ throw new UsageError(USAGE$44);
74657
74716
  }
74658
74717
  /** The zone's current desired generation, which every write must name. */
74659
74718
  async function generation(company, domainUuid) {
@@ -74664,7 +74723,7 @@ async function generation(company, domainUuid) {
74664
74723
  }
74665
74724
  /** `dns enable <uuid>`: take the zone over into managed DNS. */
74666
74725
  async function enable(context, rest) {
74667
- const domainUuid = oneUuid$7(rest, USAGE$43);
74726
+ const domainUuid = oneUuid$7(rest, USAGE$44);
74668
74727
  const company = await requireCompany(context.flags);
74669
74728
  return await confirmableWrite(context, "Publish this name's zone in managed DNS.", async () => (await domainsDnsStore({ path: {
74670
74729
  company,
@@ -74672,18 +74731,18 @@ async function enable(context, rest) {
74672
74731
  } })).data);
74673
74732
  }
74674
74733
  /** `dns record set|remove`. */
74675
- async function record$3(context, rest) {
74734
+ async function record$2(context, rest) {
74676
74735
  const [action, ...tail] = rest;
74677
- const domainUuid = oneUuid$7(tail, USAGE$43);
74736
+ const domainUuid = oneUuid$7(tail, USAGE$44);
74678
74737
  const company = await requireCompany(context.flags);
74679
74738
  if (action === "set") return await setRecord(context, company, domainUuid);
74680
74739
  if (action === "remove") return await removeRecord(context, company, domainUuid);
74681
- throw new UsageError(USAGE$43);
74740
+ throw new UsageError(USAGE$44);
74682
74741
  }
74683
74742
  /** `record set --file`: replace one set with the file's own values. */
74684
74743
  async function setRecord(context, company, domainUuid) {
74685
74744
  const file = context.flags.get("--file") ?? "";
74686
- if (file === "") throw new UsageError(`record set needs --file <set.json>.\n\n${USAGE$43}`);
74745
+ if (file === "") throw new UsageError(`record set needs --file <set.json>.\n\n${USAGE$44}`);
74687
74746
  const set = recordSetFromFile(file);
74688
74747
  return await confirmableWrite(context, [`Replace the ${set.recordType.toUpperCase()} set "${set.relativeName}" (ttl ${String(set.ttlSeconds)}) with:`, ...set.values.map((one) => ` ${one}`)].join("\n"), async () => {
74689
74748
  const body = {
@@ -74703,7 +74762,7 @@ async function setRecord(context, company, domainUuid) {
74703
74762
  async function removeRecord(context, company, domainUuid) {
74704
74763
  const relativeName = context.flags.get("--name") ?? "";
74705
74764
  const recordType = recordTypeFlag(context);
74706
- if (relativeName === "") throw new UsageError(`record remove needs --name.\n\n${USAGE$43}`);
74765
+ if (relativeName === "") throw new UsageError(`record remove needs --name.\n\n${USAGE$44}`);
74707
74766
  return await confirmableWrite(context, `Remove the ${recordType.toUpperCase()} set "${relativeName}".`, async () => {
74708
74767
  const query = {
74709
74768
  relativeName,
@@ -74722,8 +74781,8 @@ async function removeRecord(context, company, domainUuid) {
74722
74781
  /** `dns dnssec <signed|unsigned> <uuid>`: the signing mode, with the confirmation the API requires. */
74723
74782
  async function changeDnssec(context, rest) {
74724
74783
  const [mode, uuid, ...extra] = rest;
74725
- if (mode === void 0 || mode !== "signed" && mode !== "unsigned" || extra.length > 0) throw new UsageError(USAGE$43);
74726
- const domainUuid = oneUuid$7(uuid === void 0 ? [] : [uuid], USAGE$43);
74784
+ if (mode === void 0 || mode !== "signed" && mode !== "unsigned" || extra.length > 0) throw new UsageError(USAGE$44);
74785
+ const domainUuid = oneUuid$7(uuid === void 0 ? [] : [uuid], USAGE$44);
74727
74786
  const company = await requireCompany(context.flags);
74728
74787
  return await confirmableWrite(context, [`Set the zone's signing mode to ${mode}.`, ...mode === "signed" ? [" DNSSEC signing is added; resolvers that fail validation will not answer until DS records match."] : [" DNSSEC signing is removed; the DS record in the parent zone has to be removed too."]].join("\n"), async () => {
74729
74788
  const body = {
@@ -74742,7 +74801,7 @@ async function changeDnssec(context, rest) {
74742
74801
  }
74743
74802
  /** `dns handover <uuid>`: hand the zone back, dropping what this platform publishes. */
74744
74803
  async function handover(context, rest) {
74745
- const domainUuid = oneUuid$7(rest, USAGE$43);
74804
+ const domainUuid = oneUuid$7(rest, USAGE$44);
74746
74805
  const company = await requireCompany(context.flags);
74747
74806
  return await confirmableWrite(context, ["Hand this name's zone back out of managed DNS.", " Address records published here stop being published; the name and its applications stay."].join("\n"), async () => {
74748
74807
  const body = {
@@ -74761,7 +74820,7 @@ async function handover(context, rest) {
74761
74820
  /** A record type flag, refused when it is not one of the API's own values. */
74762
74821
  function recordTypeFlag(context) {
74763
74822
  const raw = (context.flags.get("--type") ?? "").trim().toLowerCase();
74764
- if (!RECORD_TYPES.has(raw)) throw new UsageError(`--type must be one of ${[...RECORD_TYPES].join(", ")} (got "${raw}").\n\n${USAGE$43}`);
74823
+ if (!RECORD_TYPES.has(raw)) throw new UsageError(`--type must be one of ${[...RECORD_TYPES].join(", ")} (got "${raw}").\n\n${USAGE$44}`);
74765
74824
  return raw;
74766
74825
  }
74767
74826
  /**
@@ -74794,7 +74853,7 @@ function recordSetFromValue(value, subject) {
74794
74853
  };
74795
74854
  }
74796
74855
  // src/commands/dns-templates.ts
74797
- var USAGE$42 = [
74856
+ var USAGE$43 = [
74798
74857
  "Usage: hostingctl dns template list --company <slug>",
74799
74858
  " hostingctl dns template show <template-uuid> --company <slug>",
74800
74859
  " hostingctl dns template save [<template-uuid>] --company <slug> --file <template.json>",
@@ -74816,24 +74875,24 @@ var USAGE$42 = [
74816
74875
  async function dnsTemplates(context, rest) {
74817
74876
  const [action, ...tail] = rest;
74818
74877
  if (action === "list") {
74819
- if (tail.length > 0) throw new UsageError(USAGE$42);
74878
+ if (tail.length > 0) throw new UsageError(USAGE$43);
74820
74879
  return {
74821
74880
  kind: "templates",
74822
74881
  templates: (await dnsTemplatesIndex({ path: { company: await requireCompany(context.flags) } })).data.templates
74823
74882
  };
74824
74883
  }
74825
- if (action === "show") return await show$5(context, oneUuid$7(tail, USAGE$42));
74884
+ if (action === "show") return await show$5(context, oneUuid$7(tail, USAGE$43));
74826
74885
  if (action === "save") return await save$1(context, tail[0]);
74827
- if (action === "delete") return await destroy$1(context, oneUuid$7(tail, USAGE$42));
74828
- if (action === "from-zone") return await fromZone(context, oneUuid$7(tail, USAGE$42));
74886
+ if (action === "delete") return await destroy$1(context, oneUuid$7(tail, USAGE$43));
74887
+ if (action === "from-zone") return await fromZone(context, oneUuid$7(tail, USAGE$43));
74829
74888
  if (action === "preview") return await preview$2(context, tail);
74830
74889
  if (action === "apply") return await apply(context, tail);
74831
- throw new UsageError(USAGE$42);
74890
+ throw new UsageError(USAGE$43);
74832
74891
  }
74833
74892
  /** Two uuids: the template, then the zone it applies to. */
74834
74893
  function templateAndZone(rest) {
74835
74894
  const [templateUuid, domainUuid, ...extra] = rest;
74836
- if (templateUuid === void 0 || templateUuid === "" || domainUuid === void 0 || domainUuid === "" || extra.length > 0) throw new UsageError(USAGE$42);
74895
+ if (templateUuid === void 0 || templateUuid === "" || domainUuid === void 0 || domainUuid === "" || extra.length > 0) throw new UsageError(USAGE$43);
74837
74896
  return {
74838
74897
  templateUuid,
74839
74898
  domainUuid
@@ -74852,7 +74911,7 @@ async function show$5(context, templateUuid) {
74852
74911
  /** `save [<uuid>] --file …`: record a new template, or replace the one named. */
74853
74912
  async function save$1(context, templateUuid) {
74854
74913
  const file = context.flags.get("--file") ?? "";
74855
- if (file === "") throw new UsageError(`template save needs --file <template.json>.\n\n${USAGE$42}`);
74914
+ if (file === "") throw new UsageError(`template save needs --file <template.json>.\n\n${USAGE$43}`);
74856
74915
  const company = await requireCompany(context.flags);
74857
74916
  const document = readJsonObject(file, "template");
74858
74917
  const name = typeof document.name === "string" ? document.name.trim() : "";
@@ -74888,7 +74947,7 @@ async function destroy$1(context, templateUuid) {
74888
74947
  async function fromZone(context, domainUuid) {
74889
74948
  const company = await requireCompany(context.flags);
74890
74949
  const name = context.flags.get("--name")?.trim() ?? "";
74891
- if (name === "") throw new UsageError(`template from-zone needs --name.\n\n${USAGE$42}`);
74950
+ if (name === "") throw new UsageError(`template from-zone needs --name.\n\n${USAGE$43}`);
74892
74951
  const zone = (await domainsDnsShow({ path: {
74893
74952
  company,
74894
74953
  domainUuid
@@ -74957,7 +75016,7 @@ function recordSetsFromFile$1(document, subject) {
74957
75016
  });
74958
75017
  }
74959
75018
  // src/commands/dns-text.ts
74960
- var USAGE$41 = [
75019
+ var USAGE$42 = [
74961
75020
  "Usage: hostingctl dns <zone|export> <domain-uuid> --company <slug>",
74962
75021
  " hostingctl dns import <preview|apply> <domain-uuid> --company <slug> --file <path> [--confirm]",
74963
75022
  " hostingctl dns enable <domain-uuid> --company <slug>",
@@ -75027,7 +75086,7 @@ function applyText(result) {
75027
75086
  var DNS_METADATA = {
75028
75087
  name: "dns",
75029
75088
  summary: "A managed name's zone, its zone-file export, and the reviewed import write.",
75030
- usage: USAGE$41,
75089
+ usage: USAGE$42,
75031
75090
  flags: [
75032
75091
  {
75033
75092
  name: "--file",
@@ -75065,23 +75124,23 @@ var DNS_METADATA = {
75065
75124
  var DNS_TOPICS = [
75066
75125
  {
75067
75126
  path: ["enable"],
75068
- usage: USAGE$43
75127
+ usage: USAGE$44
75069
75128
  },
75070
75129
  {
75071
75130
  path: ["record"],
75072
- usage: USAGE$43
75131
+ usage: USAGE$44
75073
75132
  },
75074
75133
  {
75075
75134
  path: ["dnssec"],
75076
- usage: USAGE$43
75135
+ usage: USAGE$44
75077
75136
  },
75078
75137
  {
75079
75138
  path: ["handover"],
75080
- usage: USAGE$43
75139
+ usage: USAGE$44
75081
75140
  },
75082
75141
  {
75083
75142
  path: ["template"],
75084
- usage: USAGE$42
75143
+ usage: USAGE$43
75085
75144
  }
75086
75145
  ];
75087
75146
  // src/commands/dns-import.ts
@@ -75098,7 +75157,7 @@ var IMPORT_LINE = /^(\S+)\s+(\d+)\s+(\S+)\s+(.+)$/;
75098
75157
  * hold customer DNS data, so its contents are never printed; only the API's own answer is shown.
75099
75158
  */
75100
75159
  function recordSetsFromFile(file) {
75101
- if (file === void 0 || file === "") throw new UsageError(`Importing needs the record sets from disk: pass --file <path>.\n\n${USAGE$41}`);
75160
+ if (file === void 0 || file === "") throw new UsageError(`Importing needs the record sets from disk: pass --file <path>.\n\n${USAGE$42}`);
75102
75161
  const sets = /* @__PURE__ */ new Map();
75103
75162
  for (const [index, raw] of readBoundedImportFile(file, "import").split("\n").entries()) addLine(sets, raw.trim(), index + 1);
75104
75163
  if (sets.size === 0) throw new UsageError(`The import file [${file}] holds no record sets.`);
@@ -75190,7 +75249,7 @@ var dns = {
75190
75249
  if (subcommand === "import") return await importRecords(context, rest);
75191
75250
  if (subcommand === "template") return await dnsTemplates(context, rest);
75192
75251
  if (WRITE_SUBCOMMANDS$1.has(subcommand ?? "")) return await dnsWrites(context, subcommand ?? "", rest);
75193
- throw new UsageError(USAGE$41);
75252
+ throw new UsageError(USAGE$42);
75194
75253
  },
75195
75254
  human(report) {
75196
75255
  if ("sent" in report) return renderWriteOutcome(report, dnsWriteText);
@@ -75209,7 +75268,7 @@ async function readZone(context, rest, which) {
75209
75268
  /** `import preview|apply <uuid> --file <path>`: the review, or the reviewed write. */
75210
75269
  async function importRecords(context, rest) {
75211
75270
  const [action, ...tail] = rest;
75212
- if (action !== "preview" && action !== "apply") throw new UsageError(USAGE$41);
75271
+ if (action !== "preview" && action !== "apply") throw new UsageError(USAGE$42);
75213
75272
  const path = await domainPath$1(context, tail);
75214
75273
  const recordSets = recordSetsFromFile(context.flags.get("--file"));
75215
75274
  if (action === "preview") return (await domainsDnsImportPreview({
@@ -75246,7 +75305,7 @@ async function applyImport(context, path, recordSets) {
75246
75305
  /** The company and the one domain uuid a DNS subcommand needs, or a usage refusal. */
75247
75306
  async function domainPath$1(context, rest) {
75248
75307
  const [domainUuid, ...extra] = rest;
75249
- if (domainUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$41);
75308
+ if (domainUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$42);
75250
75309
  return {
75251
75310
  company: await requireCompany(context.flags),
75252
75311
  domainUuid
@@ -75412,7 +75471,7 @@ function checkText(check) {
75412
75471
  }
75413
75472
  // src/commands/email-alias.ts
75414
75473
  /** The one usage string this group refuses with, owned by the group it belongs to. */
75415
- var USAGE$40 = [
75474
+ var USAGE$41 = [
75416
75475
  "Usage: hostingctl email alias add <email-domain-uuid> --company <slug> --local <name> --destinations a@x,b@y",
75417
75476
  " hostingctl email alias set <email-domain-uuid> <alias-uuid> --company <slug> --destinations a@x,b@y",
75418
75477
  " hostingctl email alias remove <email-domain-uuid> <alias-uuid> --company <slug>",
@@ -75436,16 +75495,16 @@ async function aliasGroup(context, action, tail) {
75436
75495
  if (action === "set") return await aliasSet(context, tail);
75437
75496
  if (action === "remove") return await aliasRemove(context, tail);
75438
75497
  if (action === "unroute") return await aliasUnroute(context, tail);
75439
- throw new UsageError(USAGE$40);
75498
+ throw new UsageError(USAGE$41);
75440
75499
  }
75441
75500
  /** `alias add <domain> --local … --destinations …`: a new forwarding address. */
75442
75501
  async function aliasAdd(context, tail) {
75443
75502
  const [emailDomainUuid, ...extra] = tail;
75444
- if (emailDomainUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$40);
75503
+ if (emailDomainUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$41);
75445
75504
  const company = await requireCompany(context.flags);
75446
75505
  const localPart = context.flags.get("--local")?.trim().toLowerCase() ?? "";
75447
75506
  const list = destinations$1(context);
75448
- if (localPart === "" || list.length === 0) throw new UsageError(`alias add needs --local and --destinations.\n\n${USAGE$40}`);
75507
+ if (localPart === "" || list.length === 0) throw new UsageError(`alias add needs --local and --destinations.\n\n${USAGE$41}`);
75449
75508
  return await confirmableWrite(context, [`Create ${localPart}@… forwarding to:`, ...list.map((one) => ` ${one}`)].join("\n"), async () => {
75450
75509
  return (await emailAliasesStore({
75451
75510
  path: {
@@ -75462,10 +75521,10 @@ async function aliasAdd(context, tail) {
75462
75521
  /** `alias set <domain> <alias> --destinations …`: replace the complete recipient list. */
75463
75522
  async function aliasSet(context, tail) {
75464
75523
  const [emailDomainUuid, aliasUuid, ...extra] = tail;
75465
- if (emailDomainUuid === void 0 || aliasUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$40);
75524
+ if (emailDomainUuid === void 0 || aliasUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$41);
75466
75525
  const company = await requireCompany(context.flags);
75467
75526
  const list = destinations$1(context);
75468
- if (list.length === 0) throw new UsageError(`alias set needs --destinations.\n\n${USAGE$40}`);
75527
+ if (list.length === 0) throw new UsageError(`alias set needs --destinations.\n\n${USAGE$41}`);
75469
75528
  return await confirmableWrite(context, [`Replace ${aliasUuid}'s destinations with:`, ...list.map((one) => ` ${one}`)].join("\n"), async () => {
75470
75529
  return (await emailAliasesUpdate({
75471
75530
  path: {
@@ -75480,7 +75539,7 @@ async function aliasSet(context, tail) {
75480
75539
  /** `alias remove <domain> <alias>`. */
75481
75540
  async function aliasRemove(context, tail) {
75482
75541
  const [emailDomainUuid, aliasUuid, ...extra] = tail;
75483
- if (emailDomainUuid === void 0 || aliasUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$40);
75542
+ if (emailDomainUuid === void 0 || aliasUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$41);
75484
75543
  const company = await requireCompany(context.flags);
75485
75544
  return await confirmableWrite(context, `Remove alias ${aliasUuid}.`, async () => {
75486
75545
  return (await emailAliasesDestroy({ path: {
@@ -75493,7 +75552,7 @@ async function aliasRemove(context, tail) {
75493
75552
  /** `alias unroute <domain> <alias> <mailbox>`: drop one destination. */
75494
75553
  async function aliasUnroute(context, tail) {
75495
75554
  const [emailDomainUuid, aliasUuid, mailboxUuid, ...extra] = tail;
75496
- if (emailDomainUuid === void 0 || aliasUuid === void 0 || mailboxUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$40);
75555
+ if (emailDomainUuid === void 0 || aliasUuid === void 0 || mailboxUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$41);
75497
75556
  const company = await requireCompany(context.flags);
75498
75557
  return await confirmableWrite(context, `Stop forwarding ${aliasUuid} to mailbox ${mailboxUuid}.`, async () => {
75499
75558
  return (await emailAliasesDestinationsDestroy({ path: {
@@ -75505,7 +75564,7 @@ async function aliasUnroute(context, tail) {
75505
75564
  });
75506
75565
  }
75507
75566
  // src/commands/email-address.ts
75508
- var USAGE$39 = [
75567
+ var USAGE$40 = [
75509
75568
  "Usage: hostingctl email alias add <email-domain-uuid> --company <slug> --local <name> --destinations a@x,b@y",
75510
75569
  " hostingctl email alias set <email-domain-uuid> <alias-uuid> --company <slug> --destinations a@x,b@y",
75511
75570
  " hostingctl email alias remove <email-domain-uuid> <alias-uuid> --company <slug>",
@@ -75531,13 +75590,13 @@ async function emailAddresses(context, subcommand, rest) {
75531
75590
  if (subcommand === "alias") return await aliasGroup(context, action, tail);
75532
75591
  if (subcommand === "app-token") return await appToken(context, action, tail);
75533
75592
  if (subcommand === "send-as") return await sendAs(context, action, tail);
75534
- throw new UsageError(USAGE$39);
75593
+ throw new UsageError(USAGE$40);
75535
75594
  }
75536
75595
  /** `app-token list|issue|revoke|deliver`. */
75537
75596
  async function appToken(context, action, tail) {
75538
75597
  const company = await requireCompany(context.flags);
75539
75598
  const [emailDomainUuid, mailboxUuid, third, ...extra] = tail;
75540
- if (emailDomainUuid === void 0 || mailboxUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$39);
75599
+ if (emailDomainUuid === void 0 || mailboxUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$40);
75541
75600
  const path = {
75542
75601
  company,
75543
75602
  emailDomainUuid,
@@ -75565,7 +75624,7 @@ async function appToken(context, action, tail) {
75565
75624
  }
75566
75625
  if (action === "issue" && third === void 0) {
75567
75626
  const label = context.flags.get("--label")?.trim() ?? "";
75568
- if (label === "") throw new UsageError(`app-token issue needs --label.\n\n${USAGE$39}`);
75627
+ if (label === "") throw new UsageError(`app-token issue needs --label.\n\n${USAGE$40}`);
75569
75628
  return await confirmableWrite(context, `Create an application password labelled "${label}".`, async () => {
75570
75629
  return (await emailAppTokensStore({
75571
75630
  path,
@@ -75573,7 +75632,7 @@ async function appToken(context, action, tail) {
75573
75632
  })).data;
75574
75633
  });
75575
75634
  }
75576
- if (third === void 0) throw new UsageError(USAGE$39);
75635
+ if (third === void 0) throw new UsageError(USAGE$40);
75577
75636
  const tokenPath = {
75578
75637
  ...path,
75579
75638
  tokenUuid: third
@@ -75582,14 +75641,14 @@ async function appToken(context, action, tail) {
75582
75641
  return (await emailAppTokensRevoke({ path: tokenPath })).data;
75583
75642
  });
75584
75643
  if (action === "deliver") return await confirmableWrite(context, [`Return application password ${third} once.`, " The value is printed here and not stored: it cannot be read again after this."].join("\n"), async () => (await emailAppTokensDeliver({ path: tokenPath })).data);
75585
- throw new UsageError(USAGE$39);
75644
+ throw new UsageError(USAGE$40);
75586
75645
  }
75587
75646
  /** `send-as list|grant|revoke`. */
75588
75647
  async function sendAs(context, action, tail) {
75589
75648
  const company = await requireCompany(context.flags);
75590
75649
  if (action === "revoke") {
75591
75650
  const [grantUuid, ...extra] = tail;
75592
- if (grantUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$39);
75651
+ if (grantUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$40);
75593
75652
  return await confirmableWrite(context, `Revoke send-as grant ${grantUuid}.`, async () => {
75594
75653
  return (await emailSendAsGrantsDestroy({ path: {
75595
75654
  company,
@@ -75598,7 +75657,7 @@ async function sendAs(context, action, tail) {
75598
75657
  });
75599
75658
  }
75600
75659
  const [emailDomainUuid, mailboxUuid, ...extra] = tail;
75601
- if (emailDomainUuid === void 0 || mailboxUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$39);
75660
+ if (emailDomainUuid === void 0 || mailboxUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$40);
75602
75661
  const path = {
75603
75662
  company,
75604
75663
  emailDomainUuid,
@@ -75625,7 +75684,7 @@ async function sendAs(context, action, tail) {
75625
75684
  }
75626
75685
  if (action === "grant") {
75627
75686
  const grantedAddressUuid = context.flags.get("--address") ?? "";
75628
- if (grantedAddressUuid === "") throw new UsageError(`send-as grant needs --address.\n\n${USAGE$39}`);
75687
+ if (grantedAddressUuid === "") throw new UsageError(`send-as grant needs --address.\n\n${USAGE$40}`);
75629
75688
  return await confirmableWrite(context, `Allow this mailbox to send as address ${grantedAddressUuid}.`, async () => {
75630
75689
  return (await emailSendAsGrantsStore({
75631
75690
  path,
@@ -75633,7 +75692,7 @@ async function sendAs(context, action, tail) {
75633
75692
  })).data;
75634
75693
  });
75635
75694
  }
75636
- throw new UsageError(USAGE$39);
75695
+ throw new UsageError(USAGE$40);
75637
75696
  }
75638
75697
  // src/commands/email-write-text.ts
75639
75698
  /**
@@ -75648,7 +75707,7 @@ async function sendAs(context, action, tail) {
75648
75707
  */
75649
75708
  function emailWriteText(result) {
75650
75709
  const value = result;
75651
- return secret$1(value) ?? address(value) ?? record$2(value) ?? numbers(value) ?? "Done.";
75710
+ return secret$1(value) ?? address(value) ?? record$1(value) ?? numbers(value) ?? "Done.";
75652
75711
  }
75653
75712
  /** A one-time credential: an application password or a mailbox password. */
75654
75713
  function secret$1(value) {
@@ -75671,7 +75730,7 @@ function address(value) {
75671
75730
  return null;
75672
75731
  }
75673
75732
  /** A record-shaped answer: a sending hold, which is the only one carrying a reason and a held time. */
75674
- function record$2(value) {
75733
+ function record$1(value) {
75675
75734
  if (typeof value.heldAt !== "string" || typeof value.reason !== "string") return null;
75676
75735
  return ` ${String(value.uuid)} ${value.reason} ${String(value.status)} held ${value.heldAt}`;
75677
75736
  }
@@ -75699,7 +75758,7 @@ function emailAddressText(report) {
75699
75758
  return "Done.";
75700
75759
  }
75701
75760
  // src/commands/email-domain.ts
75702
- var USAGE$38 = [
75761
+ var USAGE$39 = [
75703
75762
  "Usage: hostingctl email offer",
75704
75763
  " hostingctl email enroll --company <slug>",
75705
75764
  " hostingctl email agree --company <slug> --term <package-term-uuid>",
@@ -75720,7 +75779,7 @@ var USAGE$38 = [
75720
75779
  /** `email offer|agree|provision|domain|catch-all`, dispatched from the `email` command. */
75721
75780
  async function emailDomains(context, subcommand, rest) {
75722
75781
  if (subcommand === "offer") {
75723
- if (rest.length > 0) throw new UsageError(USAGE$38);
75782
+ if (rest.length > 0) throw new UsageError(USAGE$39);
75724
75783
  return {
75725
75784
  kind: "offers",
75726
75785
  offers: (await emailOffers({ path: { company: await requireCompany(context.flags) } })).data
@@ -75731,11 +75790,11 @@ async function emailDomains(context, subcommand, rest) {
75731
75790
  if (subcommand === "provision") return await provision(context, rest);
75732
75791
  if (subcommand === "domain") return await domain(context, rest);
75733
75792
  if (subcommand === "catch-all") return await catchAll(context, rest);
75734
- throw new UsageError(USAGE$38);
75793
+ throw new UsageError(USAGE$39);
75735
75794
  }
75736
75795
  /** A company-wide command takes no positionals. */
75737
75796
  function noExtra$14(rest) {
75738
- if (rest.length > 0) throw new UsageError(USAGE$38);
75797
+ if (rest.length > 0) throw new UsageError(USAGE$39);
75739
75798
  }
75740
75799
  /** `enroll`: create the service record and start provisioning, which is the API's own create. */
75741
75800
  async function enroll(context, rest) {
@@ -75748,7 +75807,7 @@ async function agree(context, rest) {
75748
75807
  noExtra$14(rest);
75749
75808
  const company = await requireCompany(context.flags);
75750
75809
  const packageTermUuid = context.flags.get("--term") ?? "";
75751
- if (packageTermUuid === "") throw new UsageError(`agree needs --term.\n\n${USAGE$38}`);
75810
+ if (packageTermUuid === "") throw new UsageError(`agree needs --term.\n\n${USAGE$39}`);
75752
75811
  return await confirmableWrite(context, `Accept email package term ${packageTermUuid} for ${company}.`, async () => (await emailAgreement({
75753
75812
  path: { company },
75754
75813
  body: { packageTermUuid }
@@ -75767,7 +75826,7 @@ async function domain(context, rest) {
75767
75826
  if (action === "add") {
75768
75827
  noExtra$14(tail);
75769
75828
  const hostname = context.flags.get("--hostname")?.trim().toLowerCase() ?? "";
75770
- if (hostname === "") throw new UsageError(`domain add needs --hostname.\n\n${USAGE$38}`);
75829
+ if (hostname === "") throw new UsageError(`domain add needs --hostname.\n\n${USAGE$39}`);
75771
75830
  return await confirmableWrite(context, `Attach ${hostname} to ${company}'s mail service.`, async () => {
75772
75831
  return (await emailDomainsStore({
75773
75832
  path: { company },
@@ -75777,7 +75836,7 @@ async function domain(context, rest) {
75777
75836
  }
75778
75837
  const path = {
75779
75838
  company,
75780
- emailDomainUuid: oneUuid$7(tail, USAGE$38)
75839
+ emailDomainUuid: oneUuid$7(tail, USAGE$39)
75781
75840
  };
75782
75841
  if (action === "recheck") return await confirmableWrite(context, "Re-observe this name's DNS now.", async () => {
75783
75842
  return (await emailDomainsRecheck({ path })).data;
@@ -75797,14 +75856,14 @@ async function domain(context, rest) {
75797
75856
  body
75798
75857
  })).data;
75799
75858
  });
75800
- throw new UsageError(USAGE$38);
75859
+ throw new UsageError(USAGE$39);
75801
75860
  }
75802
75861
  /** `catch-all show|set|clear`. */
75803
75862
  async function catchAll(context, rest) {
75804
75863
  const [action, ...tail] = rest;
75805
75864
  const path = {
75806
75865
  company: await requireCompany(context.flags),
75807
- emailDomainUuid: oneUuid$7(tail, USAGE$38)
75866
+ emailDomainUuid: oneUuid$7(tail, USAGE$39)
75808
75867
  };
75809
75868
  if (action === "show") return {
75810
75869
  kind: "catch-all",
@@ -75812,7 +75871,7 @@ async function catchAll(context, rest) {
75812
75871
  };
75813
75872
  if (action === "set") {
75814
75873
  const destinations = destinationList(context);
75815
- if (destinations.length === 0) throw new UsageError(`catch-all set needs --destinations a@x,b@y.\n\n${USAGE$38}`);
75874
+ if (destinations.length === 0) throw new UsageError(`catch-all set needs --destinations a@x,b@y.\n\n${USAGE$39}`);
75816
75875
  return await confirmableWrite(context, [`Enable the catch-all for this name, forwarding to:`, ...destinations.map((one) => ` ${one}`)].join("\n"), async () => {
75817
75876
  return (await emailCatchAllUpdate({
75818
75877
  path,
@@ -75824,7 +75883,7 @@ async function catchAll(context, rest) {
75824
75883
  });
75825
75884
  }
75826
75885
  if (action === "clear") return await confirmableWrite(context, "Disable the catch-all: mail to an unknown address at this name is refused rather than forwarded.", async () => (await emailCatchAllDestroy({ path })).data);
75827
- throw new UsageError(USAGE$38);
75886
+ throw new UsageError(USAGE$39);
75828
75887
  }
75829
75888
  /**
75830
75889
  * The comma-separated `--destinations`.
@@ -75855,7 +75914,7 @@ function catchAllText(one) {
75855
75914
  return ` the catch-all forwards to ${one.destinations.join(", ") || "nobody"}`;
75856
75915
  }
75857
75916
  // src/commands/email-holds.ts
75858
- var USAGE$37 = [
75917
+ var USAGE$38 = [
75859
75918
  "Usage: hostingctl email hold list --company <slug>",
75860
75919
  " hostingctl email hold create --company <slug> --reason <compromise|abuse|operator> [--mailbox <uuid>]",
75861
75920
  " hostingctl email hold release <hold-uuid> --company <slug>",
@@ -75878,21 +75937,21 @@ async function emailHolds(context, rest) {
75878
75937
  const [action, ...tail] = rest;
75879
75938
  const company = await requireCompany(context.flags);
75880
75939
  if (action === "list") {
75881
- if (tail.length > 0) throw new UsageError(USAGE$37);
75940
+ if (tail.length > 0) throw new UsageError(USAGE$38);
75882
75941
  return {
75883
75942
  kind: "holds",
75884
75943
  holds: (await emailHoldsIndex({ path: { company } })).data.holds
75885
75944
  };
75886
75945
  }
75887
75946
  if (action === "create") return await create$3(context, tail, company);
75888
- if (action === "release") return await release$1(context, oneUuid$7(tail, USAGE$37), company);
75889
- throw new UsageError(USAGE$37);
75947
+ if (action === "release") return await release$1(context, oneUuid$7(tail, USAGE$38), company);
75948
+ throw new UsageError(USAGE$38);
75890
75949
  }
75891
75950
  /** `create --reason … [--mailbox …]`. */
75892
75951
  async function create$3(context, tail, company) {
75893
- if (tail.length > 0) throw new UsageError(USAGE$37);
75952
+ if (tail.length > 0) throw new UsageError(USAGE$38);
75894
75953
  const raw = context.flags.get("--reason")?.trim() ?? "";
75895
- if (!REASONS.has(raw)) throw new UsageError(`--reason must be compromise, abuse or operator (got "${raw}").\n\n${USAGE$37}`);
75954
+ if (!REASONS.has(raw)) throw new UsageError(`--reason must be compromise, abuse or operator (got "${raw}").\n\n${USAGE$38}`);
75896
75955
  const mailboxUuid = context.flags.get("--mailbox")?.trim() ?? "";
75897
75956
  return await confirmableWrite(context, [`Hold outbound mail for ${mailboxUuid === "" ? "the whole service" : `mailbox ${mailboxUuid}`} because: ${raw}.`, " Nothing is sent until this hold is released."].join("\n"), async () => {
75898
75957
  return (await emailHoldsStore({
@@ -75927,7 +75986,7 @@ function emailHoldText(report) {
75927
75986
  return report.holds.length === 0 ? "No sending holds." : report.holds.map(holdLine).join("\n");
75928
75987
  }
75929
75988
  // src/commands/email-mailbox-admin.ts
75930
- var USAGE$36 = [
75989
+ var USAGE$37 = [
75931
75990
  "Usage: hostingctl email mailbox add <email-domain-uuid> --company <slug> --local <name> --quota <gb-5|gb-10|gb-20>",
75932
75991
  " hostingctl email mailbox change <email-domain-uuid> <mailbox-uuid> --company <slug> [--status enabled|suspended] [--quota <size>]",
75933
75992
  " hostingctl email mailbox remove <email-domain-uuid> <mailbox-uuid> --company <slug>",
@@ -75959,7 +76018,7 @@ var STATUSES = /* @__PURE__ */ new Set(["enabled", "suspended"]);
75959
76018
  async function emailMailboxAdmin(context, action, tail) {
75960
76019
  if (action === "add") return await add$8(context, tail);
75961
76020
  const [emailDomainUuid, mailboxUuid, ...extra] = tail;
75962
- if (emailDomainUuid === void 0 || mailboxUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$36);
76021
+ if (emailDomainUuid === void 0 || mailboxUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$37);
75963
76022
  const path = {
75964
76023
  company: await requireCompany(context.flags),
75965
76024
  emailDomainUuid,
@@ -75977,7 +76036,7 @@ async function emailMailboxAdmin(context, action, tail) {
75977
76036
  if (action === "preferences-set") return await preferences(context, path);
75978
76037
  if (action === "credential") return await revealCredential(context, path, false);
75979
76038
  if (action === "reset-credential") return await revealCredential(context, path, true);
75980
- throw new UsageError(USAGE$36);
76039
+ throw new UsageError(USAGE$37);
75981
76040
  }
75982
76041
  /** A quota flag from the API's own values. */
75983
76042
  function quota(context) {
@@ -75993,11 +76052,11 @@ function destinations(context) {
75993
76052
  /** `add <domain> --local … --quota …`. */
75994
76053
  async function add$8(context, tail) {
75995
76054
  const [emailDomainUuid, ...extra] = tail;
75996
- if (emailDomainUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$36);
76055
+ if (emailDomainUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$37);
75997
76056
  const company = await requireCompany(context.flags);
75998
76057
  const localPart = context.flags.get("--local")?.trim().toLowerCase() ?? "";
75999
76058
  const size = quota(context);
76000
- if (localPart === "" || size === null) throw new UsageError(`mailbox add needs --local and --quota.\n\n${USAGE$36}`);
76059
+ if (localPart === "" || size === null) throw new UsageError(`mailbox add needs --local and --quota.\n\n${USAGE$37}`);
76001
76060
  return await confirmableWrite(context, `Create mailbox ${localPart}@… with a ${size} quota.`, async () => {
76002
76061
  return (await emailMailboxesStore({
76003
76062
  path: {
@@ -76022,7 +76081,7 @@ function statusFlag(context) {
76022
76081
  async function change$1(context, path) {
76023
76082
  const status = statusFlag(context);
76024
76083
  const size = quota(context);
76025
- if (status === null && size === null) throw new UsageError(`mailbox change needs --status, --quota or both.\n\n${USAGE$36}`);
76084
+ if (status === null && size === null) throw new UsageError(`mailbox change needs --status, --quota or both.\n\n${USAGE$37}`);
76026
76085
  return await confirmableWrite(context, `Set this mailbox's ${[status === null ? null : `status to ${status}`, size === null ? null : `quota to ${size}`].filter((one) => one !== null).join(" and ")}.`, async () => {
76027
76086
  return (await emailMailboxesUpdate({
76028
76087
  path,
@@ -76050,7 +76109,7 @@ async function preferences(context, path) {
76050
76109
  const markRead = onOff$4(context, "--spam-mark-read");
76051
76110
  const threshold = context.flags.get("--spam-threshold");
76052
76111
  const summary = context.flags.get("--vacation-subject");
76053
- if (vacation === null && markRead === null && threshold === void 0 && summary === void 0) throw new UsageError(`preferences-set needs --vacation, --spam-threshold, --spam-mark-read or --vacation-subject.\n\n${USAGE$36}`);
76112
+ if (vacation === null && markRead === null && threshold === void 0 && summary === void 0) throw new UsageError(`preferences-set needs --vacation, --spam-threshold, --spam-mark-read or --vacation-subject.\n\n${USAGE$37}`);
76054
76113
  const body = {
76055
76114
  vacationEnabled: vacation ?? current.vacationEnabled,
76056
76115
  vacationSubject: context.flags.get("--vacation-subject") ?? current.vacationSubject,
@@ -76104,7 +76163,7 @@ function emailMailboxAdminText(report) {
76104
76163
  return preferencesText(report.preferences);
76105
76164
  }
76106
76165
  // src/commands/email-service.ts
76107
- var USAGE$35 = [
76166
+ var USAGE$36 = [
76108
76167
  "Usage: hostingctl email service <suspend|resume> --company <slug>",
76109
76168
  " hostingctl email service cancellation --company <slug>",
76110
76169
  " hostingctl email service cancel --company <slug> --ends-at <iso-date>",
@@ -76131,11 +76190,11 @@ async function emailService(context, subcommand, rest) {
76131
76190
  if (subcommand === "dmarc-set") return await dmarcSet$1(context, rest);
76132
76191
  if (subcommand === "blocklist-set") return await blocklistSet(context, rest);
76133
76192
  if (subcommand === "service") return await service(context, rest);
76134
- throw new UsageError(USAGE$35);
76193
+ throw new UsageError(USAGE$36);
76135
76194
  }
76136
76195
  /** A company-wide command takes no positionals. */
76137
76196
  function noExtra$13(rest) {
76138
- if (rest.length > 0) throw new UsageError(USAGE$35);
76197
+ if (rest.length > 0) throw new UsageError(USAGE$36);
76139
76198
  }
76140
76199
  /** `service suspend|resume|cancellation|cancel|cancel-withdraw`. */
76141
76200
  async function service(context, rest) {
@@ -76161,7 +76220,7 @@ async function service(context, rest) {
76161
76220
  if (action === "cancel") {
76162
76221
  noExtra$13(tail);
76163
76222
  const endsAt = context.flags.get("--ends-at")?.trim() ?? "";
76164
- if (endsAt === "") throw new UsageError(`service cancel needs --ends-at.\n\n${USAGE$35}`);
76223
+ if (endsAt === "") throw new UsageError(`service cancel needs --ends-at.\n\n${USAGE$36}`);
76165
76224
  if (Number.isNaN(Date.parse(endsAt))) throw new UsageError(`--ends-at must be an ISO date (got "${endsAt}").`);
76166
76225
  return await confirmableWrite(context, [`End the mail service at ${endsAt}.`, " Mail keeps working until then; the cancellation can be withdrawn before that date."].join("\n"), async () => (await emailCancellationStore({
76167
76226
  path: { company },
@@ -76174,7 +76233,7 @@ async function service(context, rest) {
76174
76233
  return (await emailCancellationWithdraw({ path: { company } })).data;
76175
76234
  });
76176
76235
  }
76177
- throw new UsageError(USAGE$35);
76236
+ throw new UsageError(USAGE$36);
76178
76237
  }
76179
76238
  /** `dmarc`: DMARC reporting for every attached name. */
76180
76239
  async function dmarc$1(context, rest) {
@@ -76194,7 +76253,7 @@ async function blocklist$1(context, rest) {
76194
76253
  }
76195
76254
  /** `dmarc-set <name> --enabled on|off`. */
76196
76255
  async function dmarcSet$1(context, rest) {
76197
- const emailDomainUuid = oneUuid$7(rest, USAGE$35);
76256
+ const emailDomainUuid = oneUuid$7(rest, USAGE$36);
76198
76257
  const company = await requireCompany(context.flags);
76199
76258
  const enabled = onOff$3(context);
76200
76259
  return await confirmableWrite(context, `${enabled ? "Enable" : "Disable"} DMARC reporting for this name.`, async () => {
@@ -76209,7 +76268,7 @@ async function dmarcSet$1(context, rest) {
76209
76268
  }
76210
76269
  /** `blocklist-set <name> --enabled on|off`. */
76211
76270
  async function blocklistSet(context, rest) {
76212
- const emailDomainUuid = oneUuid$7(rest, USAGE$35);
76271
+ const emailDomainUuid = oneUuid$7(rest, USAGE$36);
76213
76272
  const company = await requireCompany(context.flags);
76214
76273
  const enabled = onOff$3(context);
76215
76274
  return await confirmableWrite(context, `${enabled ? "Enable" : "Disable"} blocklist monitoring for this name.`, async () => {
@@ -76226,7 +76285,7 @@ async function blocklistSet(context, rest) {
76226
76285
  async function importSchema(context, rest) {
76227
76286
  noExtra$13(rest);
76228
76287
  const version = context.flags.get("--version")?.trim() ?? "";
76229
- if (version === "") throw new UsageError(`import-schema needs --version.\n\n${USAGE$35}`);
76288
+ if (version === "") throw new UsageError(`import-schema needs --version.\n\n${USAGE$36}`);
76230
76289
  return {
76231
76290
  kind: "schema",
76232
76291
  version,
@@ -76238,7 +76297,7 @@ function onOff$3(context) {
76238
76297
  const raw = context.flags.get("--enabled")?.trim() ?? "";
76239
76298
  if (raw === "on" || raw === "true") return true;
76240
76299
  if (raw === "off" || raw === "false") return false;
76241
- throw new UsageError(`--enabled must be on or off (got "${raw}").\n\n${USAGE$35}`);
76300
+ throw new UsageError(`--enabled must be on or off (got "${raw}").\n\n${USAGE$36}`);
76242
76301
  }
76243
76302
  /** The `email service|dmarc|blocklist|import-schema` renderer. */
76244
76303
  function emailServiceText(report) {
@@ -76250,7 +76309,7 @@ function emailServiceText(report) {
76250
76309
  }
76251
76310
  // src/commands/email-sync-csv.ts
76252
76311
  /** The usage this group refuses with, owned by the command it belongs to. */
76253
- var USAGE$34 = [
76312
+ var USAGE$35 = [
76254
76313
  "Usage: hostingctl email sync csv <preview|commit> <email-domain-uuid> --company <slug> --file <path>",
76255
76314
  "",
76256
76315
  " preview What the file's rows would become. Writes nothing.",
@@ -76261,7 +76320,7 @@ var USAGE$34 = [
76261
76320
  /** One named uuid, or a usage refusal. */
76262
76321
  function one$2(rest) {
76263
76322
  const [uuid, ...extra] = rest;
76264
- if (uuid === void 0 || uuid === "" || extra.length > 0) throw new UsageError(USAGE$34);
76323
+ if (uuid === void 0 || uuid === "" || extra.length > 0) throw new UsageError(USAGE$35);
76265
76324
  return uuid;
76266
76325
  }
76267
76326
  /** `csv preview|commit <domain> --file <path>`: one multipart upload of the CSV itself. */
@@ -76269,7 +76328,7 @@ async function csv(context, tail) {
76269
76328
  const [action, ...args] = tail;
76270
76329
  const path = await domainPath(context, one$2(args));
76271
76330
  const file = context.flags.get("--file") ?? "";
76272
- if (file === "") throw new UsageError(`sync csv needs --file <path>.\n\n${USAGE$34}`);
76331
+ if (file === "") throw new UsageError(`sync csv needs --file <path>.\n\n${USAGE$35}`);
76273
76332
  if (action === "preview") return {
76274
76333
  kind: "csv-preview",
76275
76334
  rows: (await emailMailboxSyncCsvPreview({
@@ -76277,10 +76336,10 @@ async function csv(context, tail) {
76277
76336
  body: await csvPreviewBody(file)
76278
76337
  })).data.rows
76279
76338
  };
76280
- if (action !== "commit") throw new UsageError(USAGE$34);
76339
+ if (action !== "commit") throw new UsageError(USAGE$35);
76281
76340
  const recurrence = recurrenceFlag(context) ?? "once";
76282
76341
  const endsAt = context.flags.get("--ends-at")?.trim() || null;
76283
- if (recurrence === "until" && endsAt === null) throw new UsageError(`--recurrence until needs --ends-at.\n\n${USAGE$34}`);
76342
+ if (recurrence === "until" && endsAt === null) throw new UsageError(`--recurrence until needs --ends-at.\n\n${USAGE$35}`);
76284
76343
  return await confirmableWrite(context, [`Commit the sync accounts in ${file}, once the API has reviewed it.`, ` The review is re-read here and only its accepted rows are committed: ${recurrence}${endsAt === null ? "" : ` until ${endsAt}`}.`].join("\n"), async () => {
76285
76344
  const accepted = (await emailMailboxSyncCsvPreview({
76286
76345
  path,
@@ -76328,7 +76387,7 @@ async function csvCommitBody(file, accepted, recurrence, endsAt) {
76328
76387
  return form;
76329
76388
  }
76330
76389
  // src/commands/email-sync.ts
76331
- var USAGE$33 = [
76390
+ var USAGE$34 = [
76332
76391
  "Usage: hostingctl email sync show <email-domain-uuid> --company <slug>",
76333
76392
  " hostingctl email sync server <email-domain-uuid> --company <slug> --host <host> --port <n> --encryption <tls|starttls>",
76334
76393
  " hostingctl email sync account add <email-domain-uuid> --company <slug> --username <login> (--password-file <path>|--password-stdin) --mailbox <uuid> --recurrence <once|until> [--ends-at <iso>]",
@@ -76353,12 +76412,12 @@ async function emailSync(context, rest) {
76353
76412
  if (action === "server") return await server(context, tail);
76354
76413
  if (action === "account") return await account(context, tail);
76355
76414
  if (action === "csv") return await csv(context, tail);
76356
- throw new UsageError(USAGE$33);
76415
+ throw new UsageError(USAGE$34);
76357
76416
  }
76358
76417
  /** One named uuid, or a usage refusal. */
76359
76418
  function one$1(rest) {
76360
76419
  const [uuid, ...extra] = rest;
76361
- if (uuid === void 0 || uuid === "" || extra.length > 0) throw new UsageError(USAGE$33);
76420
+ if (uuid === void 0 || uuid === "" || extra.length > 0) throw new UsageError(USAGE$34);
76362
76421
  return uuid;
76363
76422
  }
76364
76423
  /** `show`: the server and every account. */
@@ -76374,9 +76433,9 @@ async function server(context, tail) {
76374
76433
  const host = context.flags.get("--host")?.trim() ?? "";
76375
76434
  const port = Number(context.flags.get("--port") ?? "");
76376
76435
  const encryption = context.flags.get("--encryption")?.trim() ?? "";
76377
- if (host === "") throw new UsageError(`sync server needs --host.\n\n${USAGE$33}`);
76378
- if (!Number.isInteger(port) || port < 1 || port > 65535) throw new UsageError(`--port must be a whole number between 1 and 65535.\n\n${USAGE$33}`);
76379
- if (!ENCRYPTIONS.has(encryption)) throw new UsageError(`--encryption must be tls or starttls (got "${encryption}").\n\n${USAGE$33}`);
76436
+ if (host === "") throw new UsageError(`sync server needs --host.\n\n${USAGE$34}`);
76437
+ if (!Number.isInteger(port) || port < 1 || port > 65535) throw new UsageError(`--port must be a whole number between 1 and 65535.\n\n${USAGE$34}`);
76438
+ if (!ENCRYPTIONS.has(encryption)) throw new UsageError(`--encryption must be tls or starttls (got "${encryption}").\n\n${USAGE$34}`);
76380
76439
  return await confirmableWrite(context, `Point the mailbox sync source at ${host}:${String(port)} over ${encryption}.`, async () => {
76381
76440
  return (await emailMailboxSyncServerUpdate({
76382
76441
  path,
@@ -76400,9 +76459,9 @@ async function account(context, tail) {
76400
76459
  const [action, ...args] = tail;
76401
76460
  if (action === "add") return await accountAdd(context, args);
76402
76461
  if (action === "change") return await accountChange(context, args);
76403
- if (action === void 0) throw new UsageError(USAGE$33);
76462
+ if (action === void 0) throw new UsageError(USAGE$34);
76404
76463
  const [emailDomainUuid, accountUuid, ...extra] = args;
76405
- if (emailDomainUuid === void 0 || accountUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$33);
76464
+ if (emailDomainUuid === void 0 || accountUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$34);
76406
76465
  return await accountAction(context, action, {
76407
76466
  ...await domainPath(context, emailDomainUuid),
76408
76467
  accountUuid
@@ -76421,13 +76480,13 @@ async function accountAction(context, action, path) {
76421
76480
  if (action === "start") return await startAccount(context, path);
76422
76481
  if (action === "stop") return await confirmableWrite(context, "Stop this account's scheduled sync. The source credential is kept.", async () => (await emailMailboxSyncAccountsStop({ path })).data);
76423
76482
  if (action === "forget") return await confirmableWrite(context, "Forget this account's source credential and stop future work.", async () => (await emailMailboxSyncAccountsForget({ path })).data);
76424
- throw new UsageError(USAGE$33);
76483
+ throw new UsageError(USAGE$34);
76425
76484
  }
76426
76485
  /** `start`: the schedule the account should run on from now. */
76427
76486
  async function startAccount(context, path) {
76428
76487
  const recurrence = recurrenceFlag(context) ?? "once";
76429
76488
  const endsAt = context.flags.get("--ends-at")?.trim() || null;
76430
- if (recurrence === "until" && endsAt === null) throw new UsageError(`--recurrence until needs --ends-at.\n\n${USAGE$33}`);
76489
+ if (recurrence === "until" && endsAt === null) throw new UsageError(`--recurrence until needs --ends-at.\n\n${USAGE$34}`);
76431
76490
  return await confirmableWrite(context, `Start this account's scheduled sync (${recurrence}${endsAt === null ? "" : ` until ${endsAt}`}).`, async () => (await emailMailboxSyncAccountsStart({
76432
76491
  path,
76433
76492
  body: {
@@ -76440,7 +76499,7 @@ async function startAccount(context, path) {
76440
76499
  async function accountAdd(context, args) {
76441
76500
  const path = await domainPath(context, one$1(args));
76442
76501
  const body = accountBody(context);
76443
- const sourcePassword = readSecret(context, "password", 4096, USAGE$33);
76502
+ const sourcePassword = readSecret(context, "password", 4096, USAGE$34);
76444
76503
  return await confirmableWrite(context, [`Add a sync account for ${body.sourceUsername} into mailbox ${body.mailboxUuid}.`, ` It runs ${body.recurrence === "once" ? "once" : `until ${String(body.endsAt)}`}.`].join("\n"), async () => (await emailMailboxSyncAccountsStore({
76445
76504
  path,
76446
76505
  body: {
@@ -76452,7 +76511,7 @@ async function accountAdd(context, args) {
76452
76511
  /** `account change <domain> <account> [fields]`: only the fields named are sent. */
76453
76512
  async function accountChange(context, args) {
76454
76513
  const [emailDomainUuid, accountUuid, ...extra] = args;
76455
- if (emailDomainUuid === void 0 || accountUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$33);
76514
+ if (emailDomainUuid === void 0 || accountUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$34);
76456
76515
  const path = {
76457
76516
  ...await domainPath(context, emailDomainUuid),
76458
76517
  accountUuid
@@ -76466,8 +76525,8 @@ async function accountChange(context, args) {
76466
76525
  if (mailbox !== "") body.mailboxUuid = mailbox;
76467
76526
  if (recurrence !== null) body.recurrence = recurrence;
76468
76527
  if (endsAt !== "") body.endsAt = endsAt;
76469
- if (context.flags.has("--password-file") || context.flags.has("--password-stdin")) body.sourcePassword = readSecret(context, "password", 4096, USAGE$33);
76470
- if (Object.keys(body).length === 0) throw new UsageError(`account change needs at least one field.\n\n${USAGE$33}`);
76528
+ if (context.flags.has("--password-file") || context.flags.has("--password-stdin")) body.sourcePassword = readSecret(context, "password", 4096, USAGE$34);
76529
+ if (Object.keys(body).length === 0) throw new UsageError(`account change needs at least one field.\n\n${USAGE$34}`);
76471
76530
  return await confirmableWrite(context, "Change this sync account.", async () => {
76472
76531
  return (await emailMailboxSyncAccountsUpdate({
76473
76532
  path,
@@ -76481,8 +76540,8 @@ function accountBody(context) {
76481
76540
  const mailboxUuid = context.flags.get("--mailbox")?.trim() ?? "";
76482
76541
  const recurrence = recurrenceFlag(context) ?? "once";
76483
76542
  const endsAt = context.flags.get("--ends-at")?.trim() ?? "";
76484
- if (sourceUsername === "" || mailboxUuid === "") throw new UsageError(`account add needs --username and --mailbox.\n\n${USAGE$33}`);
76485
- if (recurrence === "until" && endsAt === "") throw new UsageError(`--recurrence until needs --ends-at.\n\n${USAGE$33}`);
76543
+ if (sourceUsername === "" || mailboxUuid === "") throw new UsageError(`account add needs --username and --mailbox.\n\n${USAGE$34}`);
76544
+ if (recurrence === "until" && endsAt === "") throw new UsageError(`--recurrence until needs --ends-at.\n\n${USAGE$34}`);
76486
76545
  return {
76487
76546
  sourceUsername,
76488
76547
  mailboxUuid,
@@ -76498,7 +76557,7 @@ function recurrenceFlag(context) {
76498
76557
  return raw;
76499
76558
  }
76500
76559
  // src/commands/email-text.ts
76501
- var USAGE$32 = [
76560
+ var USAGE$33 = [
76502
76561
  "Usage: hostingctl email <show|names> --company <slug>",
76503
76562
  " hostingctl email <mailboxes|aliases> <email-domain-uuid> --company <slug>",
76504
76563
  " hostingctl email mailbox <email-domain-uuid> <mailbox-uuid> --company <slug>",
@@ -76580,7 +76639,7 @@ function count$1(shown, total) {
76580
76639
  var EMAIL_METADATA = {
76581
76640
  name: "email",
76582
76641
  summary: "A company's email service, its attached names, their mailboxes and aliases.",
76583
- usage: USAGE$32,
76642
+ usage: USAGE$33,
76584
76643
  flags: [
76585
76644
  {
76586
76645
  name: "--address",
@@ -76760,75 +76819,75 @@ var EMAIL_METADATA = {
76760
76819
  var EMAIL_TOPICS = [
76761
76820
  {
76762
76821
  path: ["alias"],
76763
- usage: USAGE$40
76822
+ usage: USAGE$41
76764
76823
  },
76765
76824
  {
76766
76825
  path: ["app-token"],
76767
- usage: USAGE$39
76826
+ usage: USAGE$40
76768
76827
  },
76769
76828
  {
76770
76829
  path: ["send-as"],
76771
- usage: USAGE$39
76830
+ usage: USAGE$40
76772
76831
  },
76773
76832
  {
76774
76833
  path: ["offer"],
76775
- usage: USAGE$38
76834
+ usage: USAGE$39
76776
76835
  },
76777
76836
  {
76778
76837
  path: ["enroll"],
76779
- usage: USAGE$38
76838
+ usage: USAGE$39
76780
76839
  },
76781
76840
  {
76782
76841
  path: ["agree"],
76783
- usage: USAGE$38
76842
+ usage: USAGE$39
76784
76843
  },
76785
76844
  {
76786
76845
  path: ["provision"],
76787
- usage: USAGE$38
76846
+ usage: USAGE$39
76788
76847
  },
76789
76848
  {
76790
76849
  path: ["domain"],
76791
- usage: USAGE$38
76850
+ usage: USAGE$39
76792
76851
  },
76793
76852
  {
76794
76853
  path: ["catch-all"],
76795
- usage: USAGE$38
76854
+ usage: USAGE$39
76796
76855
  },
76797
76856
  {
76798
76857
  path: ["service"],
76799
- usage: USAGE$35
76858
+ usage: USAGE$36
76800
76859
  },
76801
76860
  {
76802
76861
  path: ["dmarc"],
76803
- usage: USAGE$35
76862
+ usage: USAGE$36
76804
76863
  },
76805
76864
  {
76806
76865
  path: ["dmarc-set"],
76807
- usage: USAGE$35
76866
+ usage: USAGE$36
76808
76867
  },
76809
76868
  {
76810
76869
  path: ["blocklist"],
76811
- usage: USAGE$35
76870
+ usage: USAGE$36
76812
76871
  },
76813
76872
  {
76814
76873
  path: ["blocklist-set"],
76815
- usage: USAGE$35
76874
+ usage: USAGE$36
76816
76875
  },
76817
76876
  {
76818
76877
  path: ["import-schema"],
76819
- usage: USAGE$35
76878
+ usage: USAGE$36
76820
76879
  },
76821
76880
  {
76822
76881
  path: ["sync"],
76823
- usage: USAGE$33
76882
+ usage: USAGE$34
76824
76883
  },
76825
76884
  {
76826
76885
  path: ["hold"],
76827
- usage: USAGE$37
76886
+ usage: USAGE$38
76828
76887
  },
76829
76888
  {
76830
76889
  path: ["mailbox"],
76831
- usage: USAGE$36
76890
+ usage: USAGE$37
76832
76891
  }
76833
76892
  ];
76834
76893
  // src/commands/email-sync-text.ts
@@ -76868,7 +76927,7 @@ async function companyRead(context, subcommand, rest) {
76868
76927
  if (subcommand === "mailboxes") return await mailboxes(company, rest);
76869
76928
  if (subcommand === "mailbox") return await mailbox(company, rest);
76870
76929
  if (subcommand === "aliases") return await aliases(company, rest);
76871
- throw new UsageError(USAGE$32);
76930
+ throw new UsageError(USAGE$33);
76872
76931
  }
76873
76932
  /** The renderer for a tagged feature read, or null when this command renders the answer itself. */
76874
76933
  function taggedText(report) {
@@ -76953,7 +77012,7 @@ var email = {
76953
77012
  ...EMAIL_METADATA,
76954
77013
  async run(context) {
76955
77014
  const [subcommand, ...rest] = context.positional;
76956
- if (subcommand === void 0 || !SUBCOMMANDS.has(subcommand)) throw new UsageError(USAGE$32);
77015
+ if (subcommand === void 0 || !SUBCOMMANDS.has(subcommand)) throw new UsageError(USAGE$33);
76957
77016
  const feature = dispatched$1(context, subcommand, rest);
76958
77017
  if (feature !== null) return await feature;
76959
77018
  return await companyRead(context, subcommand, rest);
@@ -77038,7 +77097,7 @@ async function aliases(company, rest) {
77038
77097
  /** `mailbox <email-domain-uuid> <mailbox-uuid>`: one record, independent of index pagination. */
77039
77098
  async function mailbox(company, rest) {
77040
77099
  const [emailDomainUuid, mailboxUuid, ...extra] = rest;
77041
- if (emailDomainUuid === void 0 || mailboxUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$32);
77100
+ if (emailDomainUuid === void 0 || mailboxUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$33);
77042
77101
  return (await emailMailboxesShow({ path: {
77043
77102
  company,
77044
77103
  emailDomainUuid,
@@ -77048,12 +77107,12 @@ async function mailbox(company, rest) {
77048
77107
  /** The one uuid a collection read names, or a usage refusal. */
77049
77108
  function oneUuid$4(rest) {
77050
77109
  const [uuid, ...extra] = rest;
77051
- if (uuid === void 0 || extra.length > 0) throw new UsageError(USAGE$32);
77110
+ if (uuid === void 0 || extra.length > 0) throw new UsageError(USAGE$33);
77052
77111
  return uuid;
77053
77112
  }
77054
77113
  /** A company-wide read takes no positional arguments. */
77055
77114
  function noExtra$12(rest) {
77056
- if (rest.length > 0) throw new UsageError(USAGE$32);
77115
+ if (rest.length > 0) throw new UsageError(USAGE$33);
77057
77116
  }
77058
77117
  // src/commands/environment-activation.ts
77059
77118
  async function environmentActivation(context, args) {
@@ -77068,7 +77127,7 @@ async function environmentActivation(context, args) {
77068
77127
  };
77069
77128
  }
77070
77129
  // src/commands/environment-admin.ts
77071
- var USAGE$31 = [
77130
+ var USAGE$32 = [
77072
77131
  "Usage: hostingctl environment retention <environment-uuid> --company <slug>",
77073
77132
  " hostingctl environment retention-set <environment-uuid> --company <slug> --extra-days <n> --effective-at <iso> --agreement <uuid> [--package <key>]",
77074
77133
  " hostingctl environment database-show <environment-uuid> <database-uuid> --company <slug>",
@@ -77092,9 +77151,9 @@ async function environmentAdmin(context, subcommand, rest) {
77092
77151
  if (subcommand === "retention") return await retention(context, first);
77093
77152
  if (subcommand === "retention-set") return await retentionSet(context, first);
77094
77153
  if (subcommand === "database-show" || subcommand === "database-reveal") {
77095
- if (first === void 0 || tail.length !== 1) throw new UsageError(USAGE$31);
77154
+ if (first === void 0 || tail.length !== 1) throw new UsageError(USAGE$32);
77096
77155
  const path = {
77097
- ...await environmentPath$1(context, first, USAGE$31),
77156
+ ...await environmentPath$1(context, first, USAGE$32),
77098
77157
  databaseUuid: tail[0] ?? ""
77099
77158
  };
77100
77159
  if (subcommand === "database-show") return {
@@ -77104,24 +77163,24 @@ async function environmentAdmin(context, subcommand, rest) {
77104
77163
  return await revealDatabase(context, path);
77105
77164
  }
77106
77165
  if (subcommand === "tuning") return await tuning(context, first, tail);
77107
- throw new UsageError(USAGE$31);
77166
+ throw new UsageError(USAGE$32);
77108
77167
  }
77109
77168
  /** `retention <env>`. */
77110
77169
  async function retention(context, environmentUuid) {
77111
77170
  return {
77112
77171
  kind: "retention",
77113
- retention: (await hostingRetentionShow({ path: await environmentPath$1(context, environmentUuid, USAGE$31) })).data
77172
+ retention: (await hostingRetentionShow({ path: await environmentPath$1(context, environmentUuid, USAGE$32) })).data
77114
77173
  };
77115
77174
  }
77116
77175
  /** `retention-set <env> --extra-days … --effective-at … --agreement …`. */
77117
77176
  async function retentionSet(context, environmentUuid) {
77118
- const path = await environmentPath$1(context, environmentUuid, USAGE$31);
77177
+ const path = await environmentPath$1(context, environmentUuid, USAGE$32);
77119
77178
  const extraDays = Number(context.flags.get("--extra-days") ?? "");
77120
77179
  const effectiveAt = context.flags.get("--effective-at")?.trim() ?? "";
77121
77180
  const baselineAgreementUuid = context.flags.get("--agreement")?.trim() ?? "";
77122
- if (!Number.isInteger(extraDays) || extraDays < 1) throw new UsageError(`retention-set needs --extra-days as a whole number of at least 1.\n\n${USAGE$31}`);
77123
- if (effectiveAt === "" || Number.isNaN(Date.parse(effectiveAt))) throw new UsageError(`retention-set needs --effective-at as an ISO date.\n\n${USAGE$31}`);
77124
- if (baselineAgreementUuid === "") throw new UsageError(`retention-set needs --agreement.\n\n${USAGE$31}`);
77181
+ if (!Number.isInteger(extraDays) || extraDays < 1) throw new UsageError(`retention-set needs --extra-days as a whole number of at least 1.\n\n${USAGE$32}`);
77182
+ if (effectiveAt === "" || Number.isNaN(Date.parse(effectiveAt))) throw new UsageError(`retention-set needs --effective-at as an ISO date.\n\n${USAGE$32}`);
77183
+ if (baselineAgreementUuid === "") throw new UsageError(`retention-set needs --agreement.\n\n${USAGE$32}`);
77125
77184
  const packageKey = context.flags.get("--package")?.trim();
77126
77185
  return {
77127
77186
  kind: "write",
@@ -77148,7 +77207,7 @@ async function revealDatabase(context, path) {
77148
77207
  /** `tuning preview|restore <env>`. */
77149
77208
  async function tuning(context, action, rest) {
77150
77209
  const environmentUuid = rest[0];
77151
- const path = await environmentPath$1(context, environmentUuid, USAGE$31);
77210
+ const path = await environmentPath$1(context, environmentUuid, USAGE$32);
77152
77211
  if (action === "preview" && rest.length === 1) {
77153
77212
  const body = (await hostingEnvironmentShow({ path })).data;
77154
77213
  return {
@@ -77161,7 +77220,7 @@ async function tuning(context, action, rest) {
77161
77220
  }
77162
77221
  if (action === "restore" && rest.length === 1) {
77163
77222
  const generation = Number(context.flags.get("--generation") ?? "");
77164
- if (!Number.isInteger(generation) || generation < 1) throw new UsageError(`tuning restore needs --generation.\n\n${USAGE$31}`);
77223
+ if (!Number.isInteger(generation) || generation < 1) throw new UsageError(`tuning restore needs --generation.\n\n${USAGE$32}`);
77165
77224
  return {
77166
77225
  kind: "write",
77167
77226
  outcome: await confirmableWrite(context, `Restore the recorded tuning for generation ${String(generation)}.`, async () => (await hostingTuningRestore({
@@ -77170,7 +77229,7 @@ async function tuning(context, action, rest) {
77170
77229
  })).data)
77171
77230
  };
77172
77231
  }
77173
- throw new UsageError(USAGE$31);
77232
+ throw new UsageError(USAGE$32);
77174
77233
  }
77175
77234
  /** One retention window as one line, and the write receipt for it. */
77176
77235
  function retentionText(one) {
@@ -77275,7 +77334,7 @@ async function cacheSet(context, path) {
77275
77334
  })).data);
77276
77335
  }
77277
77336
  // src/commands/environment-component-version.ts
77278
- var USAGE$30 = [
77337
+ var USAGE$31 = [
77279
77338
  "Usage: hostingctl environment component-version <environment-uuid> <workload-uuid> <version> --company <slug>",
77280
77339
  "",
77281
77340
  " component-version Move one curated component instance to another version this platform pins an image",
@@ -77293,7 +77352,7 @@ var USAGE$30 = [
77293
77352
  */
77294
77353
  async function environmentComponentVersion(context, rest) {
77295
77354
  const [uuid, workloadUuid, version, ...extra] = rest;
77296
- if (uuid === void 0 || workloadUuid === void 0 || version === void 0 || extra.length > 0) throw new UsageError(USAGE$30);
77355
+ if (uuid === void 0 || workloadUuid === void 0 || version === void 0 || extra.length > 0) throw new UsageError(USAGE$31);
77297
77356
  const path = {
77298
77357
  company: await requireCompany(context.flags),
77299
77358
  environmentUuid: uuid,
@@ -77478,8 +77537,8 @@ async function configuration(context, rest) {
77478
77537
  } })).data;
77479
77538
  if (action === "preview") return await preview$1(context, company, environmentUuid);
77480
77539
  if (action === "restore") return await restore$1(context, company, environmentUuid);
77481
- if (action === "save") return await record$1(context, company, environmentUuid, false);
77482
- if (action === "apply") return await record$1(context, company, environmentUuid, true);
77540
+ if (action === "save") return await record(context, company, environmentUuid, false);
77541
+ if (action === "apply") return await record(context, company, environmentUuid, true);
77483
77542
  throw new UsageError(CONFIGURATION_USAGE);
77484
77543
  }
77485
77544
  /** `restore`: put the environment back on the revision it last applied. */
@@ -77513,7 +77572,7 @@ async function preview$1(context, company, environmentUuid) {
77513
77572
  * rather than a value the CLI assembled. An `apply` reviews for apply so the returned `canApply` is the
77514
77573
  * verdict the write relies on.
77515
77574
  */
77516
- async function record$1(context, company, environmentUuid, apply) {
77575
+ async function record(context, company, environmentUuid, apply) {
77517
77576
  const target = configurationTarget(context);
77518
77577
  const document = configurationDocument(context);
77519
77578
  const applicationUuid = adoptedApplication(context);
@@ -77729,7 +77788,7 @@ function initialSelectionText(selection) {
77729
77788
  return `${selection.volumeType}: ${selection.storageClass ?? selection.storageClassUuid ?? ""}`;
77730
77789
  }
77731
77790
  // src/commands/environment-create.ts
77732
- var USAGE$29 = [
77791
+ var USAGE$30 = [
77733
77792
  "Usage: hostingctl environment create --company <slug> --name <name> [--slug <slug>] [--package <key>]",
77734
77793
  " hostingctl environment create --client <slug> --name <name> [--slug <slug>] [--package <key>]",
77735
77794
  " [--storage-classes <volume-type>=<class>[,<volume-type>=<class>...]] [--environment-mode <live|test>]",
@@ -77799,12 +77858,12 @@ var CREATE_FLAG_SPECS = [
77799
77858
  * not.
77800
77859
  */
77801
77860
  async function create$2(context, rest) {
77802
- if (rest.length > 0) throw new UsageError(USAGE$29);
77861
+ if (rest.length > 0) throw new UsageError(USAGE$30);
77803
77862
  const name = context.flags.get("--name")?.trim() ?? "";
77804
- if (name === "") throw new UsageError(`create needs --name.\n\n${USAGE$29}`);
77805
- const slug = slugFor(context.flags.get("--slug"), name, USAGE$29);
77806
- const slice = sliceFor(context.flags, USAGE$29);
77807
- const storageSelections = storageSelectionsFor(context.flags, USAGE$29);
77863
+ if (name === "") throw new UsageError(`create needs --name.\n\n${USAGE$30}`);
77864
+ const slug = slugFor(context.flags.get("--slug"), name, USAGE$30);
77865
+ const slice = sliceFor(context.flags, USAGE$30);
77866
+ const storageSelections = storageSelectionsFor(context.flags, USAGE$30);
77808
77867
  const mode = environmentModeFor(context.flags.get("--environment-mode"));
77809
77868
  const scope = await scopeFor(context.flags);
77810
77869
  const chosen = chosenPackage(await catalogFor(scope), context.flags.get("--package")?.trim() ?? "");
@@ -77822,18 +77881,18 @@ async function create$2(context, rest) {
77822
77881
  function environmentModeFor(value) {
77823
77882
  const mode = value?.trim() ?? "live";
77824
77883
  if (mode === "live" || mode === "test") return mode;
77825
- throw new UsageError(`--environment-mode must be live or test (got ${mode}).\n\n${USAGE$29}`);
77884
+ throw new UsageError(`--environment-mode must be live or test (got ${mode}).\n\n${USAGE$30}`);
77826
77885
  }
77827
77886
  /** Which company or client the create is for, from exactly one of `--company` and `--client`. */
77828
77887
  async function scopeFor(flags) {
77829
77888
  const client = flags.get("--client")?.trim() ?? "";
77830
77889
  const company = flags.get("--company")?.trim() ?? "";
77831
- if (client !== "" && company !== "") throw new UsageError(`Pass --company or --client, not both.\n\n${USAGE$29}`);
77890
+ if (client !== "" && company !== "") throw new UsageError(`Pass --company or --client, not both.\n\n${USAGE$30}`);
77832
77891
  if (client !== "") return {
77833
77892
  mode: "client",
77834
77893
  client
77835
77894
  };
77836
- if (company === "") throw new UsageError(`create needs --company <slug> or --client <slug>.\n\n${USAGE$29}`);
77895
+ if (company === "") throw new UsageError(`create needs --company <slug> or --client <slug>.\n\n${USAGE$30}`);
77837
77896
  return {
77838
77897
  mode: "company",
77839
77898
  company: await requireCompany(flags)
@@ -77847,7 +77906,7 @@ async function catalogFor(scope) {
77847
77906
  /** The package the create sends: the one named, or the catalog's first, refused when the catalog does not carry it. */
77848
77907
  function chosenPackage(packages, requested) {
77849
77908
  const chosen = requested === "" ? packages[0] : packages.find((one) => one.key === requested);
77850
- if (chosen === void 0) throw new UsageError(`--package must be one of ${packages.map((one) => one.key).join(", ")} (got ${requested}).\n\n${USAGE$29}`);
77909
+ if (chosen === void 0) throw new UsageError(`--package must be one of ${packages.map((one) => one.key).join(", ")} (got ${requested}).\n\n${USAGE$30}`);
77851
77910
  return chosen;
77852
77911
  }
77853
77912
  /** The create itself, through the route that addressee is reached by. */
@@ -78203,7 +78262,7 @@ function oneUuid$2(rest) {
78203
78262
  return uuid;
78204
78263
  }
78205
78264
  // src/commands/environment-domains.ts
78206
- var USAGE$28 = [
78265
+ var USAGE$29 = [
78207
78266
  "Usage: hostingctl environment domains <environment-uuid> --company <slug>",
78208
78267
  " hostingctl environment domain-add <environment-uuid> --company <slug> --hostname <host> --application <application-uuid> [--intended on|off]",
78209
78268
  " hostingctl environment domain-verify|domain-check-routing|domain-intended|domain-primary|domain-remove <environment-uuid> <domain-uuid> --company <slug>",
@@ -78236,7 +78295,7 @@ var DOMAIN_ACTIONS = {
78236
78295
  /** `environment domains|domain-add|domain-*|redirects|redirect-set|redirect-remove`. */
78237
78296
  async function environmentDomains(context, subcommand, rest) {
78238
78297
  const [environmentUuid, ...tail] = rest;
78239
- const path = await environmentPath$1(context, environmentUuid, USAGE$28);
78298
+ const path = await environmentPath$1(context, environmentUuid, USAGE$29);
78240
78299
  if (subcommand === "domains") return await domains(path, tail);
78241
78300
  if (subcommand === "redirects") return await redirects(path, tail);
78242
78301
  if (subcommand === "domain-add") return await add$7(context, path, tail);
@@ -78245,7 +78304,7 @@ async function environmentDomains(context, subcommand, rest) {
78245
78304
  if (subcommand === "domain-remove") return await removeDomain(context, path, tail);
78246
78305
  const action = DOMAIN_ACTIONS[subcommand];
78247
78306
  if (action !== void 0) return await domainAction(context, subcommand, action, path, tail);
78248
- throw new UsageError(USAGE$28);
78307
+ throw new UsageError(USAGE$29);
78249
78308
  }
78250
78309
  /** `domains <env>`. */
78251
78310
  async function domains(path, rest) {
@@ -78268,7 +78327,7 @@ async function add$7(context, path, rest) {
78268
78327
  noExtra$11(rest);
78269
78328
  const hostname = context.flags.get("--hostname")?.trim().toLowerCase() ?? "";
78270
78329
  const workloadUuid = context.flags.get("--application")?.trim() ?? "";
78271
- if (hostname === "" || workloadUuid === "") throw new UsageError(`domain-add needs --hostname and --application.\n\n${USAGE$28}`);
78330
+ if (hostname === "" || workloadUuid === "") throw new UsageError(`domain-add needs --hostname and --application.\n\n${USAGE$29}`);
78272
78331
  const intended = onOffFlag(context, "--intended") ?? false;
78273
78332
  return await written$2(confirmableWrite(context, `Serve ${hostname} from application ${workloadUuid}${intended ? " as an intended name" : ""}.`, async () => {
78274
78333
  return (await hostingDomainStore({
@@ -78284,7 +78343,7 @@ async function add$7(context, path, rest) {
78284
78343
  /** The five actions that take only the environment and the name. */
78285
78344
  async function domainAction(context, subcommand, action, path, rest) {
78286
78345
  const [domainUuid, ...extra] = rest;
78287
- if (domainUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$28);
78346
+ if (domainUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$29);
78288
78347
  const described = {
78289
78348
  "domain-verify": "Check this name's ownership TXT record now.",
78290
78349
  "domain-check-routing": "Check this name's routing now.",
@@ -78302,7 +78361,7 @@ async function domainAction(context, subcommand, action, path, rest) {
78302
78361
  /** `domain-remove <env> <domain>`: stop serving a name. */
78303
78362
  async function removeDomain(context, path, rest) {
78304
78363
  const [domainUuid, ...extra] = rest;
78305
- if (domainUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$28);
78364
+ if (domainUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$29);
78306
78365
  const fallBackToGenerated = onOffFlag(context, "--fall-back-to-generated") ?? true;
78307
78366
  return await written$2(confirmableWrite(context, "Stop serving this name. Its record stays readable, and the environment keeps its generated hostname.", async () => {
78308
78367
  const body = { fallBackToGenerated };
@@ -78318,13 +78377,13 @@ async function removeDomain(context, path, rest) {
78318
78377
  /** `redirect-set <env> <domain> --target … --mode … [--destination …]`. */
78319
78378
  async function setRedirect(context, path, rest) {
78320
78379
  const [domainUuid, ...extra] = rest;
78321
- if (domainUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$28);
78380
+ if (domainUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$29);
78322
78381
  const target = context.flags.get("--target")?.trim() ?? "";
78323
78382
  const mode = context.flags.get("--mode")?.trim() ?? "";
78324
78383
  const destinationUrl = context.flags.get("--destination")?.trim() ?? "";
78325
- if (!TARGETS.has(target)) throw new UsageError(`--target must be application or fixed.\n\n${USAGE$28}`);
78326
- if (!MODES$2.has(mode)) throw new UsageError(`--mode must be temporary or permanent.\n\n${USAGE$28}`);
78327
- if (target === "fixed" && destinationUrl === "") throw new UsageError(`--target fixed needs --destination <url>.\n\n${USAGE$28}`);
78384
+ if (!TARGETS.has(target)) throw new UsageError(`--target must be application or fixed.\n\n${USAGE$29}`);
78385
+ if (!MODES$2.has(mode)) throw new UsageError(`--mode must be temporary or permanent.\n\n${USAGE$29}`);
78386
+ if (target === "fixed" && destinationUrl === "") throw new UsageError(`--target fixed needs --destination <url>.\n\n${USAGE$29}`);
78328
78387
  return await written$2(confirmableWrite(context, [`Redirect this name ${mode} to ${target === "fixed" ? destinationUrl : "its application"}.`, " The redirect activates once the source name's DNS resolves."].join("\n"), async () => {
78329
78388
  const body = {
78330
78389
  target,
@@ -78344,7 +78403,7 @@ async function setRedirect(context, path, rest) {
78344
78403
  /** `redirect-remove <env> <redirect-uuid>`. */
78345
78404
  async function removeRedirect(context, path, rest) {
78346
78405
  const [redirectUuid, ...extra] = rest;
78347
- if (redirectUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$28);
78406
+ if (redirectUuid === void 0 || extra.length > 0) throw new UsageError(USAGE$29);
78348
78407
  return await written$2(confirmableWrite(context, `Remove redirect ${redirectUuid}.`, async () => {
78349
78408
  return (await hostingDomainRedirectDestroy({ path: {
78350
78409
  ...path,
@@ -78361,7 +78420,7 @@ async function written$2(pending) {
78361
78420
  }
78362
78421
  /** No positional arguments, or a usage refusal. */
78363
78422
  function noExtra$11(rest) {
78364
- if (rest.length > 0) throw new UsageError(USAGE$28);
78423
+ if (rest.length > 0) throw new UsageError(USAGE$29);
78365
78424
  }
78366
78425
  // src/commands/schedule-flags.ts
78367
78426
  /** The API's own bound on patterns in one schedule. */
@@ -78571,7 +78630,7 @@ async function releaseBundle(context, args) {
78571
78630
  };
78572
78631
  }
78573
78632
  // src/commands/environment-exports.ts
78574
- var USAGE$27 = [
78633
+ var USAGE$28 = [
78575
78634
  "Usage: hostingctl environment export-sources <environment-uuid> --company <slug>",
78576
78635
  " hostingctl environment export-sources-refresh <environment-uuid> --company <slug>",
78577
78636
  " hostingctl environment export-create <environment-uuid> <source-id> --company <slug>",
@@ -78609,7 +78668,7 @@ var USAGE$27 = [
78609
78668
  async function environmentExports(context, subcommand, rest) {
78610
78669
  if (subcommand === "release-bundle") return await releaseBundle(context, rest);
78611
78670
  const [environmentUuid, ...tail] = rest;
78612
- const path = await environmentPath$1(context, environmentUuid, USAGE$27);
78671
+ const path = await environmentPath$1(context, environmentUuid, USAGE$28);
78613
78672
  if (subcommand === "export-sources" || subcommand === "export-sources-refresh") {
78614
78673
  noExtra$10(tail);
78615
78674
  return await environmentExportSources(context, path, subcommand);
@@ -78628,15 +78687,15 @@ async function environmentExports(context, subcommand, rest) {
78628
78687
  noExtra$10(tail);
78629
78688
  return await listBackupSchedules(path);
78630
78689
  }
78631
- if (subcommand === "database-backup-schedule-stop") return await stopBackupSchedule(context, path, tail, USAGE$27);
78632
- if (subcommand === "database-import" || subcommand === "database-import-confirm") return await databaseImport(context, path, subcommand, tail, USAGE$27);
78690
+ if (subcommand === "database-backup-schedule-stop") return await stopBackupSchedule(context, path, tail, USAGE$28);
78691
+ if (subcommand === "database-import" || subcommand === "database-import-confirm") return await databaseImport(context, path, subcommand, tail, USAGE$28);
78633
78692
  if (subcommand === "database-export-download") return await download(path, tail);
78634
78693
  if (subcommand === "database-export-remove") return await remove$2(context, path, tail);
78635
- throw new UsageError(USAGE$27);
78694
+ throw new UsageError(USAGE$28);
78636
78695
  }
78637
78696
  async function createRetained(context, path, rest) {
78638
78697
  const [sourceId, ...extra] = rest;
78639
- if (!sourceId || extra.length > 0) throw new UsageError(USAGE$27);
78698
+ if (!sourceId || extra.length > 0) throw new UsageError(USAGE$28);
78640
78699
  return {
78641
78700
  kind: "export-write",
78642
78701
  outcome: await confirmableWrite(context, `Prepare a download from retained source ${sourceId}. Its capture, scope and expiry remain those recorded by the platform.`, async () => (await hostingExportStore({
@@ -78646,7 +78705,7 @@ async function createRetained(context, path, rest) {
78646
78705
  };
78647
78706
  }
78648
78707
  async function create(context, path, rest) {
78649
- const databaseUuid = oneUuid$7(rest, USAGE$27);
78708
+ const databaseUuid = oneUuid$7(rest, USAGE$28);
78650
78709
  return {
78651
78710
  kind: "export-write",
78652
78711
  outcome: await confirmableWrite(context, "Take a portable export of this database now. It is downloadable until its expiry.", async () => {
@@ -78662,7 +78721,7 @@ async function create(context, path, rest) {
78662
78721
  }
78663
78722
  /** `database-backup <env> <connection>`: back up a database on another host into an export of this environment. */
78664
78723
  async function backup(context, path, rest) {
78665
- const connection = oneUuid$7(rest, USAGE$27);
78724
+ const connection = oneUuid$7(rest, USAGE$28);
78666
78725
  if ([
78667
78726
  "--schedule",
78668
78727
  "--timezone",
@@ -78683,7 +78742,7 @@ async function backup(context, path, rest) {
78683
78742
  }
78684
78743
  /** `database-export-download <env> <export>`: a time-limited URL, which is the customer's copy. */
78685
78744
  async function download(path, rest) {
78686
- const exportUuid = oneUuid$7(rest, USAGE$27);
78745
+ const exportUuid = oneUuid$7(rest, USAGE$28);
78687
78746
  return {
78688
78747
  kind: "download",
78689
78748
  download: (await hostingDatabaseExportDownload({ path: {
@@ -78693,7 +78752,7 @@ async function download(path, rest) {
78693
78752
  };
78694
78753
  }
78695
78754
  async function remove$2(context, path, rest) {
78696
- const exportUuid = oneUuid$7(rest, USAGE$27);
78755
+ const exportUuid = oneUuid$7(rest, USAGE$28);
78697
78756
  return {
78698
78757
  kind: "export-write",
78699
78758
  outcome: await confirmableWrite(context, `Retire export ${exportUuid}. Its URL stops working once it is gone.`, async () => (await hostingDatabaseExportDestroy({ path: {
@@ -78703,7 +78762,7 @@ async function remove$2(context, path, rest) {
78703
78762
  };
78704
78763
  }
78705
78764
  function noExtra$10(rest) {
78706
- if (rest.length > 0) throw new UsageError(USAGE$27);
78765
+ if (rest.length > 0) throw new UsageError(USAGE$28);
78707
78766
  }
78708
78767
  function exportLine(one) {
78709
78768
  const size = one.sizeBytes === null ? "" : ` ${String(Math.round(one.sizeBytes / 1024))} KiB`;
@@ -78794,7 +78853,7 @@ function environmentMailRelayText(report) {
78794
78853
  return renderWriteOutcome(report.outcome, diagnosisText);
78795
78854
  }
78796
78855
  // src/commands/environment-mode.ts
78797
- var USAGE$26 = [
78856
+ var USAGE$27 = [
78798
78857
  "Usage: hostingctl environment mode review <environment-uuid> --company <slug> --to <live|test>",
78799
78858
  " hostingctl environment mode set <environment-uuid> --company <slug> --to live --data-handover <handover>",
78800
78859
  " hostingctl environment mode set <environment-uuid> --company <slug> --to test",
@@ -78821,8 +78880,8 @@ var MODE_FLAG_SPECS = [{
78821
78880
  /** `environment mode review|set`. */
78822
78881
  async function environmentMode(context, rest) {
78823
78882
  const [action, environmentUuid, ...extra] = rest;
78824
- if (action === void 0 || extra.length > 0) throw new UsageError(USAGE$26);
78825
- const path = await environmentPath$1(context, environmentUuid, USAGE$26);
78883
+ if (action === void 0 || extra.length > 0) throw new UsageError(USAGE$27);
78884
+ const path = await environmentPath$1(context, environmentUuid, USAGE$27);
78826
78885
  const target = oneOf(context.flags.get("--to"), MODES$1, "--to");
78827
78886
  if (action === "review") return {
78828
78887
  kind: "mode-review",
@@ -78832,7 +78891,7 @@ async function environmentMode(context, rest) {
78832
78891
  })).data
78833
78892
  };
78834
78893
  if (action === "set") return await set$1(context, path, target);
78835
- throw new UsageError(USAGE$26);
78894
+ throw new UsageError(USAGE$27);
78836
78895
  }
78837
78896
  async function set$1(context, path, target) {
78838
78897
  const handover = target === "live" ? oneOf(context.flags.get("--data-handover"), HANDOVERS, "--data-handover") : null;
@@ -78856,7 +78915,7 @@ async function set$1(context, path, target) {
78856
78915
  }
78857
78916
  function oneOf(value, allowed, flag) {
78858
78917
  const chosen = allowed.find((one) => one === value?.trim());
78859
- if (chosen === void 0) throw new UsageError(`${flag} must be one of ${allowed.join(", ")}.\n\n${USAGE$26}`);
78918
+ if (chosen === void 0) throw new UsageError(`${flag} must be one of ${allowed.join(", ")}.\n\n${USAGE$27}`);
78860
78919
  return chosen;
78861
78920
  }
78862
78921
  /** The `environment mode …` renderer. */
@@ -78876,6 +78935,65 @@ function environmentModeText(report) {
78876
78935
  ...review.dataHandoverRequired ? ["Going live needs --data-handover."] : []
78877
78936
  ].join("\n");
78878
78937
  }
78938
+ // src/commands/environment-outbound-rules.ts
78939
+ var USAGE$26 = [
78940
+ "Usage: hostingctl environment outbound-rules show <environment-uuid> --company <slug>",
78941
+ " hostingctl environment outbound-rules set <environment-uuid> --company <slug> --rules <json|null>",
78942
+ "",
78943
+ " show The requested and last confirmed public outbound rules for the whole environment.",
78944
+ " set Replace them, against the generation `show` reads. Needs --confirm; --dry-run sends nothing.",
78945
+ "",
78946
+ " --rules null for unrestricted access, [] to block public access, or [{\"protocol\":\"TCP\",\"port\":443}]",
78947
+ " to allow HTTPS; a range adds end_port."
78948
+ ].join("\n");
78949
+ /** The flags this group reads, published by the environment group's metadata. */
78950
+ var OUTBOUND_RULES_FLAG_SPECS = [{
78951
+ name: "--rules",
78952
+ takesValue: true,
78953
+ description: "`outbound-rules set`: null, or a JSON array of protocol, port and optional end_port."
78954
+ }];
78955
+ var DESCRIPTION = "Change public outbound ports for the whole environment, including tools and jobs.";
78956
+ /** `environment outbound-rules show|set`. */
78957
+ async function environmentOutboundRules(context, rest) {
78958
+ const [action, environmentUuid, ...extra] = rest;
78959
+ if (action !== "show" && action !== "set" || extra.length > 0) throw new UsageError(USAGE$26);
78960
+ const path = await environmentPath$1(context, environmentUuid, USAGE$26);
78961
+ if (action === "show") return {
78962
+ kind: "outbound-rules",
78963
+ rules: await read(path)
78964
+ };
78965
+ const rules = parsedRules(context.flags.get("--rules"));
78966
+ return {
78967
+ kind: "outbound-rules-write",
78968
+ outcome: await confirmableWrite(context, DESCRIPTION, async () => {
78969
+ const { desiredGeneration } = await read(path);
78970
+ return (await hostingEnvironmentsOutboundRulesUpdate({
78971
+ path,
78972
+ body: {
78973
+ desiredGeneration,
78974
+ rules
78975
+ }
78976
+ })).data;
78977
+ })
78978
+ };
78979
+ }
78980
+ async function read(path) {
78981
+ return (await hostingEnvironmentsOutboundRulesShow({ path })).data;
78982
+ }
78983
+ /** The API validates each rule; this only refuses text that is neither null nor an array. */
78984
+ function parsedRules(value) {
78985
+ try {
78986
+ const rules = JSON.parse(value ?? "");
78987
+ if (rules === null || Array.isArray(rules)) return rules;
78988
+ } catch {}
78989
+ throw new UsageError(`--rules must be null or a JSON array of protocol, port and optional end_port.\n\n${USAGE$26}`);
78990
+ }
78991
+ /** The `environment outbound-rules …` renderer: the rules as the API states them. */
78992
+ function environmentOutboundRulesText(report) {
78993
+ const pretty = (rules) => JSON.stringify(rules, null, 2);
78994
+ if (report.kind === "outbound-rules") return pretty(report.rules);
78995
+ return renderWriteOutcome(report.outcome, pretty);
78996
+ }
78879
78997
  // src/commands/environment-runtime-version-grants.ts
78880
78998
  /**
78881
78999
  * The flags this command reads, declared beside it so the metadata owner spreads one list rather than
@@ -79091,6 +79209,7 @@ var ENVIRONMENT_SUBCOMMANDS = [
79091
79209
  "redirect-remove",
79092
79210
  "tools",
79093
79211
  "mode",
79212
+ "outbound-rules",
79094
79213
  "export-sources",
79095
79214
  "export-sources-refresh",
79096
79215
  "export-create",
@@ -79548,7 +79667,7 @@ var USAGE$23 = [
79548
79667
  " hostingctl environment service-runtime <environment-uuid> <type> --company <slug> --running <on|off>",
79549
79668
  " hostingctl environment service-protect <environment-uuid> <type> --company <slug> --locked <on|off>",
79550
79669
  " hostingctl environment service-retirement <environment-uuid> <type> --company <slug>",
79551
- " hostingctl environment service-retire <environment-uuid> <type> --company <slug> --digest <review-digest>",
79670
+ " hostingctl environment service-retire <environment-uuid> <type> --company <slug> --digest <review-digest> [--confirmation <service-name> --data-disposition <copy-taken|accepted-loss>]",
79552
79671
  "",
79553
79672
  " service-add-review What adding this service would cost, before it is added.",
79554
79673
  " service-add Add one service: its type, its name and how many replicas it runs.",
@@ -79661,15 +79780,26 @@ async function protect(context, path, type) {
79661
79780
  })).data;
79662
79781
  }));
79663
79782
  }
79664
- /** `service-retire <type> --digest …`: the review's digest is the confirmation. */
79783
+ /** Retire against a reviewed digest and the client's explicit data disposition. */
79665
79784
  async function retire$1(context, path, type) {
79666
79785
  const digest = context.flags.get("--digest")?.trim() ?? "";
79667
79786
  if (digest === "") throw new UsageError(`service-retire needs --digest.\n\n${USAGE$23}`);
79668
- return await written$1(confirmableWrite(context, [`Request the retirement of the ${type} service.`, " The digest binds this request to the review it was made against."].join("\n"), async () => {
79787
+ const confirmation = context.flags.get("--confirmation");
79788
+ const disposition = context.flags.get("--data-disposition");
79789
+ if (disposition !== void 0 && disposition !== "copy-taken" && disposition !== "accepted-loss") throw new UsageError("--data-disposition must be copy-taken or accepted-loss.");
79790
+ const dataDisposition = disposition;
79791
+ return await written$1(confirmableWrite(context, [
79792
+ `Request the retirement of the ${type} service.`,
79793
+ " The digest binds this request to the review it was made against.",
79794
+ ...confirmation === void 0 ? [] : [` Service confirmation: ${confirmation}.`],
79795
+ ...dataDisposition === void 0 ? [] : [` Data disposition: ${dataDisposition}.`]
79796
+ ].join("\n"), async () => {
79669
79797
  const desiredGeneration = await environmentGeneration(path);
79670
79798
  const body = {
79671
79799
  digest,
79672
- desiredGeneration
79800
+ desiredGeneration,
79801
+ confirmation,
79802
+ dataDisposition
79673
79803
  };
79674
79804
  return (await hostingServiceRetirementStore({
79675
79805
  path: {
@@ -79930,23 +80060,23 @@ function list$5(values) {
79930
80060
  var ENVIRONMENT_TOPICS = [
79931
80061
  {
79932
80062
  path: ["retention"],
79933
- usage: USAGE$31
80063
+ usage: USAGE$32
79934
80064
  },
79935
80065
  {
79936
80066
  path: ["retention-set"],
79937
- usage: USAGE$31
80067
+ usage: USAGE$32
79938
80068
  },
79939
80069
  {
79940
80070
  path: ["database-show"],
79941
- usage: USAGE$31
80071
+ usage: USAGE$32
79942
80072
  },
79943
80073
  {
79944
80074
  path: ["database-reveal"],
79945
- usage: USAGE$31
80075
+ usage: USAGE$32
79946
80076
  },
79947
80077
  {
79948
80078
  path: ["tuning"],
79949
- usage: USAGE$31
80079
+ usage: USAGE$32
79950
80080
  },
79951
80081
  {
79952
80082
  path: ["configuration"],
@@ -79974,95 +80104,95 @@ var ENVIRONMENT_TOPICS = [
79974
80104
  },
79975
80105
  {
79976
80106
  path: ["domains"],
79977
- usage: USAGE$28
80107
+ usage: USAGE$29
79978
80108
  },
79979
80109
  {
79980
80110
  path: ["domain-add"],
79981
- usage: USAGE$28
80111
+ usage: USAGE$29
79982
80112
  },
79983
80113
  {
79984
80114
  path: ["domain-verify"],
79985
- usage: USAGE$28
80115
+ usage: USAGE$29
79986
80116
  },
79987
80117
  {
79988
80118
  path: ["domain-check-routing"],
79989
- usage: USAGE$28
80119
+ usage: USAGE$29
79990
80120
  },
79991
80121
  {
79992
80122
  path: ["domain-intended"],
79993
- usage: USAGE$28
80123
+ usage: USAGE$29
79994
80124
  },
79995
80125
  {
79996
80126
  path: ["domain-primary"],
79997
- usage: USAGE$28
80127
+ usage: USAGE$29
79998
80128
  },
79999
80129
  {
80000
80130
  path: ["domain-remove"],
80001
- usage: USAGE$28
80131
+ usage: USAGE$29
80002
80132
  },
80003
80133
  {
80004
80134
  path: ["redirects"],
80005
- usage: USAGE$28
80135
+ usage: USAGE$29
80006
80136
  },
80007
80137
  {
80008
80138
  path: ["redirect-set"],
80009
- usage: USAGE$28
80139
+ usage: USAGE$29
80010
80140
  },
80011
80141
  {
80012
80142
  path: ["redirect-remove"],
80013
- usage: USAGE$28
80143
+ usage: USAGE$29
80014
80144
  },
80015
80145
  {
80016
80146
  path: ["export-sources"],
80017
- usage: USAGE$27
80147
+ usage: USAGE$28
80018
80148
  },
80019
80149
  {
80020
80150
  path: ["export-sources-refresh"],
80021
- usage: USAGE$27
80151
+ usage: USAGE$28
80022
80152
  },
80023
80153
  {
80024
80154
  path: ["export-create"],
80025
- usage: USAGE$27
80155
+ usage: USAGE$28
80026
80156
  },
80027
80157
  {
80028
80158
  path: ["database-exports"],
80029
- usage: USAGE$27
80159
+ usage: USAGE$28
80030
80160
  },
80031
80161
  {
80032
80162
  path: ["database-export-create"],
80033
- usage: USAGE$27
80163
+ usage: USAGE$28
80034
80164
  },
80035
80165
  {
80036
80166
  path: ["database-backup"],
80037
- usage: USAGE$27
80167
+ usage: USAGE$28
80038
80168
  },
80039
80169
  {
80040
80170
  path: ["database-backup-schedules"],
80041
- usage: USAGE$27
80171
+ usage: USAGE$28
80042
80172
  },
80043
80173
  {
80044
80174
  path: ["database-backup-schedule-stop"],
80045
- usage: USAGE$27
80175
+ usage: USAGE$28
80046
80176
  },
80047
80177
  {
80048
80178
  path: ["database-export-download"],
80049
- usage: USAGE$27
80179
+ usage: USAGE$28
80050
80180
  },
80051
80181
  {
80052
80182
  path: ["database-export-remove"],
80053
- usage: USAGE$27
80183
+ usage: USAGE$28
80054
80184
  },
80055
80185
  {
80056
80186
  path: ["database-import"],
80057
- usage: USAGE$27
80187
+ usage: USAGE$28
80058
80188
  },
80059
80189
  {
80060
80190
  path: ["database-import-confirm"],
80061
- usage: USAGE$27
80191
+ usage: USAGE$28
80062
80192
  },
80063
80193
  {
80064
80194
  path: ["release-bundle"],
80065
- usage: USAGE$27
80195
+ usage: USAGE$28
80066
80196
  },
80067
80197
  {
80068
80198
  path: ["service-add-review"],
@@ -80110,6 +80240,10 @@ var ENVIRONMENT_TOPICS = [
80110
80240
  },
80111
80241
  {
80112
80242
  path: ["mode"],
80243
+ usage: USAGE$27
80244
+ },
80245
+ {
80246
+ path: ["outbound-rules"],
80113
80247
  usage: USAGE$26
80114
80248
  },
80115
80249
  {
@@ -80122,7 +80256,6 @@ var ENVIRONMENT_TOPICS = [
80122
80256
  }
80123
80257
  ];
80124
80258
  // src/commands/environment-metadata.ts
80125
- /** Environment command metadata shares the usage owner with command execution. */
80126
80259
  var ENVIRONMENT_METADATA = {
80127
80260
  name: "environment",
80128
80261
  summary: "Create an environment, or read one in detail with its profile coverage, databases and writes.",
@@ -80146,6 +80279,7 @@ var ENVIRONMENT_METADATA = {
80146
80279
  },
80147
80280
  ...RUNTIME_VERSION_GRANT_FLAG_SPECS,
80148
80281
  ...MODE_FLAG_SPECS,
80282
+ ...OUTBOUND_RULES_FLAG_SPECS,
80149
80283
  ...SETUP_FLAG_SPECS,
80150
80284
  {
80151
80285
  name: "--enabled",
@@ -80272,11 +80406,6 @@ var ENVIRONMENT_METADATA = {
80272
80406
  takesValue: true,
80273
80407
  description: "The review digest the recorded change is made against."
80274
80408
  },
80275
- {
80276
- name: "--generation",
80277
- takesValue: true,
80278
- description: "The environment generation the change is recorded against."
80279
- },
80280
80409
  {
80281
80410
  name: "--agreement",
80282
80411
  takesValue: true,
@@ -80395,7 +80524,12 @@ var ENVIRONMENT_METADATA = {
80395
80524
  {
80396
80525
  name: "--confirmation",
80397
80526
  takesValue: true,
80398
- description: "database-import-confirm: the review's digest, from its `confirm with` line."
80527
+ description: "database-import-confirm: the review digest; service-retire: the reviewed service name."
80528
+ },
80529
+ {
80530
+ name: "--data-disposition",
80531
+ takesValue: true,
80532
+ description: "service-retire: explicitly choose copy-taken or accepted-loss for its data."
80399
80533
  }
80400
80534
  ],
80401
80535
  subcommands: ENVIRONMENT_SUBCOMMANDS
@@ -81022,6 +81156,7 @@ function environmentTaggedText(report) {
81022
81156
  if (report.kind === "secret-reveal") return renderWriteOutcome(report.outcome, (result) => `Saved ${result.name} to ${result.savedTo} (mode 600).`);
81023
81157
  if (report.kind === "activation") return renderWriteOutcome(report.outcome, (result) => JSON.stringify(result, null, 2));
81024
81158
  if (report.kind === "mode-review" || report.kind === "mode-write") return environmentModeText(report);
81159
+ if (report.kind === "outbound-rules" || report.kind === "outbound-rules-write") return environmentOutboundRulesText(report);
81025
81160
  return featureText(report);
81026
81161
  }
81027
81162
  function featureText(report) {
@@ -81600,6 +81735,7 @@ function oneUuid(rest) {
81600
81735
  var SIMPLE_SUBCOMMANDS = {
81601
81736
  tools: environmentTools,
81602
81737
  mode: environmentMode,
81738
+ "outbound-rules": environmentOutboundRules,
81603
81739
  activate: environmentActivation,
81604
81740
  create: create$2,
81605
81741
  setup,
@@ -84266,13 +84402,13 @@ var USAGE$12 = [
84266
84402
  async function platformDomain(context, action, uuid, rest) {
84267
84403
  if (rest.length > 0) throw new UsageError(USAGE$12);
84268
84404
  if (action === "show") return (await platformDomainOwnershipShow({ path: { domain: uuid } })).data;
84269
- if (action === "attest") return await attest(context, uuid);
84405
+ if (action === "attest") return await attest$1(context, uuid);
84270
84406
  if (action === "revoke") return await revoke$2(context, uuid);
84271
84407
  if (action === "transfer") return await transfer(context, uuid);
84272
84408
  if (action === "purge-attest" || action === "purge-revoke") return await platformDnsPurge(context, action, uuid, USAGE$12);
84273
84409
  throw new UsageError(USAGE$12);
84274
84410
  }
84275
- async function attest(context, uuid) {
84411
+ async function attest$1(context, uuid) {
84276
84412
  const reason = requiredReason(context);
84277
84413
  return await confirmableWrite(context, `Attest that domain claim ${uuid} is owned, with reason: ${reason}`, async () => (await platformDomainOwnershipAttest({
84278
84414
  path: { domain: uuid },
@@ -87005,13 +87141,6 @@ function connectionLimits(context) {
87005
87141
  }
87006
87142
  // src/commands/realm-metadata.ts
87007
87143
  /**
87008
- * The registration policies the API accepts.
87009
- *
87010
- * They live beside the usage text that names them, so the text and the check that refuses another value
87011
- * cannot drift apart.
87012
- */
87013
- var REGISTRATION_POLICIES = ["invite_only", "open"];
87014
- /**
87015
87144
  * `realm` — the deployment realm an environment records.
87016
87145
  *
87017
87146
  * The usage text moves here from the command module, so the description of the command and the command
@@ -87019,72 +87148,35 @@ var REGISTRATION_POLICIES = ["invite_only", "open"];
87019
87148
  */
87020
87149
  var REALM_USAGE = [
87021
87150
  "Usage: hostingctl realm show <environment-uuid> --company <slug>",
87022
- " hostingctl realm adopt <environment-uuid> --custd-company <uuid> --owning-user <uuid>",
87023
- ` --registration-policy <${REGISTRATION_POLICIES.join("|")}> --expected-revision <n>`,
87024
- " [--login-paused] [--audiences <path>]",
87025
- " hostingctl realm record <environment-uuid> --company <slug> --custd-company <uuid> --owning-user <uuid>",
87026
- ` --registration-policy <${REGISTRATION_POLICIES.join("|")}> --expected-revision <n>`,
87027
- " [--login-paused] [--audiences <path>]",
87028
87151
  " hostingctl realm retry <environment-uuid> --company <slug>",
87029
- " hostingctl realm audience <environment-uuid> <workload-uuid> --company <slug> --audience <name>",
87152
+ " hostingctl realm attest <company-slug> --custd-company <uuid> --owning-user <uuid>",
87030
87153
  "",
87031
87154
  " show The environment's recorded deployment-realm convergence.",
87032
- " adopt Record the realm allocation intent for one environment (platform-addressed).",
87033
- " record Record the same intent through the company's own surface, with no staff attestation.",
87034
- " retry Reconcile the environment's realm from its recorded intent.",
87035
- " audience Record one application workload's realm audience name.",
87155
+ " retry Reconcile the environment's realm again after a failed stage.",
87156
+ " attest Record which CustD company and owning user act for a company (platform staff).",
87036
87157
  "",
87037
- "The realm state `show` prints is recorded convergence, never provider health, a working",
87038
- "sign-in or released routes. Every write needs --confirm; --dry-run describes the change",
87039
- "without sending it."
87158
+ "A realm is never adopted by hand: once a company is attested, turning sign-in on for an",
87159
+ "application creates or updates its environment's realm. The state `show` prints is recorded",
87160
+ "convergence, never provider health, a working sign-in or released routes. Every write needs",
87161
+ "--confirm; --dry-run describes the change without sending it."
87040
87162
  ].join("\n");
87041
87163
  var REALM_METADATA = {
87042
87164
  name: "realm",
87043
- summary: "One environment's deployment realm: observe it, adopt it, retry it, record an audience.",
87165
+ summary: "Deployment realms: observe or retry one, or attest a company's CustD authority.",
87044
87166
  usage: REALM_USAGE,
87045
- flags: [
87046
- {
87047
- name: "--custd-company",
87048
- takesValue: true,
87049
- description: "The CustD company the environment's realm is allocated from."
87050
- },
87051
- {
87052
- name: "--owning-user",
87053
- takesValue: true,
87054
- description: "The user the recorded realm intent is owned by."
87055
- },
87056
- {
87057
- name: "--registration-policy",
87058
- takesValue: true,
87059
- description: "The registration policy to record: invite_only or open."
87060
- },
87061
- {
87062
- name: "--expected-revision",
87063
- takesValue: true,
87064
- description: "The revision the record is made against, so a stale read is refused."
87065
- },
87066
- {
87067
- name: "--login-paused",
87068
- takesValue: false,
87069
- description: "Record the realm with logins paused."
87070
- },
87071
- {
87072
- name: "--audiences",
87073
- takesValue: true,
87074
- description: "The file holding the audiences to record, as the API's own JSON array."
87075
- },
87076
- {
87077
- name: "--audience",
87078
- takesValue: true,
87079
- description: "The audience name one workload is recorded under."
87080
- }
87081
- ],
87167
+ flags: [{
87168
+ name: "--custd-company",
87169
+ takesValue: true,
87170
+ description: "The CustD company that acts for the Hosting company."
87171
+ }, {
87172
+ name: "--owning-user",
87173
+ takesValue: true,
87174
+ description: "The CustD platform user who owns that company's realms."
87175
+ }],
87082
87176
  subcommands: [
87083
87177
  "show",
87084
- "adopt",
87085
- "record",
87086
87178
  "retry",
87087
- "audience"
87179
+ "attest"
87088
87180
  ]
87089
87181
  };
87090
87182
  // src/commands/realm-text.ts
@@ -87093,12 +87185,8 @@ function realmText(report) {
87093
87185
  if ("sent" in report) return renderWriteOutcome(report, outcomeOf);
87094
87186
  return identityText(report);
87095
87187
  }
87096
- /**
87097
- * A write's own answer, narrowed per shape: recording an audience answers the binding it recorded, while
87098
- * adopting and retrying answer the API's message about work it accepted.
87099
- */
87188
+ /** Every write answers the API's message about the work it accepted. */
87100
87189
  function outcomeOf(result) {
87101
- if ("uuid" in result) return ` recorded audience ${result.audience} for workload ${result.workloadUuid} (binding ${result.uuid})`;
87102
87190
  return ` ${result.message}`;
87103
87191
  }
87104
87192
  /**
@@ -87167,25 +87255,20 @@ function personStateOf(person) {
87167
87255
  }
87168
87256
  // src/commands/realm.ts
87169
87257
  /**
87170
- * `realm` — one environment's deployment-realm lifecycle: the recorded state, adoption, retry and the
87171
- * per-workload audience name.
87258
+ * `realm` — deployment realms: the recorded state, a retry, and the one platform step they depend on.
87172
87259
  *
87173
- * `show` reads the deployment identity the access view already carries, so the CLI adds no endpoint. `adopt`
87260
+ * `show` reads the deployment identity the access view already carries, so the CLI adds no endpoint. `attest`
87174
87261
  * is platform-addressed because the staff actor who may attest a CustD company's authority belongs to no
87175
- * company; the other two are company-scoped, like the routes they call. No provider project, environment or
87176
- * directory identifier is an input anywhere: the API records those from the provider's own answer.
87262
+ * company. No realm is adopted here: Hosting derives each one from the applications that require sign-in.
87177
87263
  */
87178
87264
  var realm = {
87179
87265
  ...REALM_METADATA,
87180
87266
  async run(context) {
87181
- const [subcommand, ...rest] = context.positional;
87182
- const [environmentUuid, second, ...extra] = rest;
87183
- if (subcommand === void 0 || environmentUuid === void 0 || extra.length > 0) throw new UsageError(REALM_USAGE);
87184
- if (subcommand === "show" && second === void 0) return await show$2(context, environmentUuid);
87185
- if (subcommand === "adopt" && second === void 0) return await adopt(context, environmentUuid);
87186
- if (subcommand === "record" && second === void 0) return await record(context, environmentUuid);
87187
- if (subcommand === "retry" && second === void 0) return await retry(context, environmentUuid);
87188
- if (subcommand === "audience" && second !== void 0) return await audience(context, environmentUuid, second);
87267
+ const [subcommand, subject, ...extra] = context.positional;
87268
+ if (subcommand === void 0 || subject === void 0 || extra.length > 0) throw new UsageError(REALM_USAGE);
87269
+ if (subcommand === "show") return await show$2(context, subject);
87270
+ if (subcommand === "retry") return await retry(context, subject);
87271
+ if (subcommand === "attest") return await attest(context, subject);
87189
87272
  throw new UsageError(REALM_USAGE);
87190
87273
  },
87191
87274
  human: realmText
@@ -87197,107 +87280,29 @@ async function show$2(context, environmentUuid) {
87197
87280
  environmentUuid
87198
87281
  } })).data.deploymentIdentity;
87199
87282
  }
87200
- /**
87201
- * `realm adopt <uuid>`: record one environment's deployment-realm allocation intent.
87202
- *
87203
- * The authority it carries is existing tenant identity only — the CustD company and its real owning user — so
87204
- * those two are required inputs and nothing about the provider is. The accepted answer records intent;
87205
- * reconciliation converges it afterwards, which is why no flag here claims a realm is provisioned.
87206
- */
87207
- async function adopt(context, environmentUuid) {
87208
- return await recordIntent(context, environmentUuid, "adopt", null);
87209
- }
87210
- /**
87211
- * `realm record <uuid>`: the same intent, recorded by the company's own actor rather than by staff.
87212
- *
87213
- * `adopt` exists for the case where staff attest a CustD company's authority; this is the client's own route to
87214
- * the same recording, so a company that already knows its CustD identity never needs an operator in the loop.
87215
- */
87216
- async function record(context, environmentUuid) {
87217
- return await recordIntent(context, environmentUuid, "record", await requireCompany(context.flags));
87218
- }
87219
- /**
87220
- * Record one environment's realm intent, through the platform route when no company is given and through the
87221
- * company's own route when one is.
87222
- */
87223
- async function recordIntent(context, environmentUuid, verb, company) {
87224
- const body = {
87225
- custdCompanyUuid: requiredFlag$4(context, "--custd-company", REALM_USAGE),
87226
- owningUserUuid: requiredFlag$4(context, "--owning-user", REALM_USAGE),
87227
- registrationPolicy: registrationPolicyOf(context),
87228
- loginPaused: context.flags.has("--login-paused"),
87229
- expectedRevision: expectedRevisionOf(context),
87230
- audiences: audiencesOf(context.flags.get("--audiences"))
87231
- };
87232
- return await confirmableWrite(context, [
87233
- `${verb === "adopt" ? "Adopt" : "Record"} the deployment realm of ${environmentUuid} from CustD company ${body.custdCompanyUuid}, owned by ${body.owningUserUuid}:`,
87234
- `registration ${body.registrationPolicy}, logins ${body.loginPaused ? "paused" : "active"}, expected revision ${String(body.expectedRevision)}, ${String(body.audiences.length)} audience(s).`,
87235
- "The accepted answer records intent; reconciliation converges it afterwards."
87236
- ].join("\n"), async () => company === null ? (await platformHostingRealmStore({
87237
- path: { environmentUuid },
87238
- body
87239
- })).data : (await hostingSiteAccessRealmStore({
87240
- path: {
87241
- company,
87242
- environmentUuid
87243
- },
87244
- body
87245
- })).data);
87246
- }
87247
- /** `realm retry <uuid>`: reconcile the realm from what is recorded, which is how a failed convergence heals. */
87283
+ /** `realm retry <uuid>`: reconcile the realm again, which is how a failed convergence heals. */
87248
87284
  async function retry(context, environmentUuid) {
87249
87285
  const company = await requireCompany(context.flags);
87250
- return await confirmableWrite(context, `Retry the deployment realm of ${environmentUuid} from its recorded intent. The accepted answer records the retry; reconciliation observes its result.`, async () => (await hostingSiteAccessRealmRetry({ path: {
87286
+ return await confirmableWrite(context, `Retry the deployment realm of ${environmentUuid}. The accepted answer records the retry; reconciliation observes its result.`, async () => (await hostingSiteAccessRealmRetry({ path: {
87251
87287
  company,
87252
87288
  environmentUuid
87253
87289
  } })).data);
87254
87290
  }
87255
- /** `realm audience <uuid> <workload-uuid>`: the name the environment's recorded intent then has to match. */
87256
- async function audience(context, environmentUuid, workloadUuid) {
87257
- const company = await requireCompany(context.flags);
87258
- const name = requiredFlag$4(context, "--audience", REALM_USAGE);
87259
- return await confirmableWrite(context, `Record audience ${name} for workload ${workloadUuid} in ${environmentUuid}.`, async () => (await hostingApplicationSiteAccessAudienceStore({
87260
- path: {
87261
- company,
87262
- environmentUuid,
87263
- workloadUuid
87264
- },
87265
- body: { audience: name }
87266
- })).data);
87267
- }
87268
- /** `--registration-policy`, required and one of the API's own named policies; anything else is bad usage. */
87269
- function registrationPolicyOf(context) {
87270
- const raw = context.flags.get("--registration-policy")?.trim() ?? "";
87271
- const policy = REGISTRATION_POLICIES.find((one) => one === raw);
87272
- if (policy === void 0) throw new UsageError(`adopt needs --registration-policy, one of ${REGISTRATION_POLICIES.join(", ")}.\n\n${REALM_USAGE}`);
87273
- return policy;
87274
- }
87275
- /** The revision the caller reviewed. A missing or non-numeric one is bad usage, not a request the API refuses. */
87276
- function expectedRevisionOf(context) {
87277
- const raw = context.flags.get("--expected-revision")?.trim() ?? "";
87278
- if (!/^\d+$/.test(raw)) throw new UsageError(`adopt needs --expected-revision, a whole number of 0 or more.\n\n${REALM_USAGE}`);
87279
- return Number.parseInt(raw, 10);
87280
- }
87281
87291
  /**
87282
- * The audience registrations the intent carries, from one JSON array.
87292
+ * `realm attest <company-slug>`: record which CustD company and owning user act for a Hosting company.
87283
87293
  *
87284
- * Each audience is a name, whether its client is public and its exact redirect URIs — registration settings a
87285
- * CLI must not invent, so they are supplied in the API's own shape and the API validates them. An omitted file
87286
- * means no recorded audience, and the API refuses a list that does not match the environment's recorded
87287
- * workload audiences rather than adopting an intent nobody reviewed. The file is read bounded and never printed.
87294
+ * Those two are existing tenant identity, so they are the only inputs; nothing about a provider project,
87295
+ * environment or directory is. Every environment of the company is reconciled afterwards.
87288
87296
  */
87289
- function audiencesOf(file) {
87290
- const path = (file ?? "").trim();
87291
- if (path === "") return [];
87292
- const contents = readBoundedImportFile(path, "audiences");
87293
- let parsed;
87294
- try {
87295
- parsed = JSON.parse(contents);
87296
- } catch {
87297
- throw new UsageError(`The audiences file [${path}] is not valid JSON.`);
87298
- }
87299
- if (!Array.isArray(parsed)) throw new UsageError(`The audiences file [${path}] must contain one JSON array.`);
87300
- return parsed;
87297
+ async function attest(context, company) {
87298
+ const body = {
87299
+ custdCompanyUuid: requiredFlag$4(context, "--custd-company", REALM_USAGE),
87300
+ owningUserUuid: requiredFlag$4(context, "--owning-user", REALM_USAGE)
87301
+ };
87302
+ return await confirmableWrite(context, [`Attest CustD company ${body.custdCompanyUuid}, owned by ${body.owningUserUuid}, for ${company}.`, "Each environment's realm then follows from the applications that require sign-in."].join("\n"), async () => (await platformHostingCustdAuthorityStore({
87303
+ path: { company },
87304
+ body
87305
+ })).data);
87301
87306
  }
87302
87307
  var REFERENCE_METADATA = {
87303
87308
  name: "reference",
@@ -89284,6 +89289,7 @@ var STORAGE_USAGE = [
89284
89289
  " hostingctl storage ceiling --company <slug>",
89285
89290
  " hostingctl storage ceiling --company <slug> (--set <rand>|--remove) [--confirm]",
89286
89291
  " hostingctl storage maximum <bucket-uuid> --company <slug>",
89292
+ " hostingctl storage encryption <bucket-uuid> [status|rotate] --company <slug> [--dry-run|--confirm]",
89287
89293
  " hostingctl storage maximum <bucket-uuid> --company <slug> (--bytes <bytes>|--remove)",
89288
89294
  " [--confirm]",
89289
89295
  " hostingctl storage add --company <slug> --name <name> --size <gib>",
@@ -89367,6 +89373,7 @@ var STORAGE_USAGE = [
89367
89373
  " upload-url One short-lived signed URL that writes one key.",
89368
89374
  " bind Reach the bucket from an environment, natively or at a directory.",
89369
89375
  " unbind Stop an environment reaching the bucket. The objects are unchanged.",
89376
+ " encryption Check or rotate the key protecting stored data, with background progress and no interruption.",
89370
89377
  " adoption Move a bucket that already holds data into a new physical namespace without changing its",
89371
89378
  " public name. `start --maintenance --retained-data` pauses every client request while it runs; the capture",
89372
89379
  " advances in bounded steps and freezes into a digest, and `confirm` that digest is what",
@@ -89581,7 +89588,8 @@ var STORAGE_METADATA = {
89581
89588
  "upload-url",
89582
89589
  "bind",
89583
89590
  "unbind",
89584
- "adoption"
89591
+ "adoption",
89592
+ "encryption"
89585
89593
  ]
89586
89594
  };
89587
89595
  // src/commands/storage-arguments.ts
@@ -90293,6 +90301,29 @@ function bucketState(bucket) {
90293
90301
  if (bucket.state !== "complete") return "incomplete: nothing chargeable is counted for it";
90294
90302
  return bucket.sealedThrough === null ? "complete" : `complete, sealed through ${bucket.sealedThrough}`;
90295
90303
  }
90304
+ // src/commands/storage-encryption.ts
90305
+ async function encryptionRotation(context, tail) {
90306
+ const [bucketUuid, action = "status", ...extra] = tail;
90307
+ if (bucketUuid === void 0 || extra.length > 0 || !["status", "rotate"].includes(action)) throw new UsageError("storage encryption <bucket-uuid> [status|rotate] [--dry-run|--confirm]");
90308
+ const path = await bucketPath(context, [bucketUuid]);
90309
+ if (action === "status") return {
90310
+ kind: "encryption-rotation",
90311
+ bucketUuid,
90312
+ rotation: (await hostingStorageEncryptionRotationShow({ path })).data.rotation
90313
+ };
90314
+ return await confirmableWrite(context, `Rotate the encryption key of bucket ${bucketUuid} in company ${path.company}. New writes use the replacement key while existing objects are re-encrypted in the background. Storage stays available; the previous key is kept until retained versions no longer need it.`, async () => ({
90315
+ kind: "encryption-rotation",
90316
+ bucketUuid,
90317
+ rotation: (await hostingStorageEncryptionRotationStart({ path })).data
90318
+ }));
90319
+ }
90320
+ function encryptionRotationText(report) {
90321
+ const rotation = report.rotation;
90322
+ if (rotation === null) return `Bucket ${report.bucketUuid} has no encryption-key rotation.`;
90323
+ const total = rotation.totalObjects === null ? "" : ` of ${rotation.totalObjects}`;
90324
+ const retained = rotation.retainedVersions > 0 ? ` ${rotation.retainedVersions} retained object version(s) still need the previous key.` : "";
90325
+ return `Bucket ${report.bucketUuid}: ${rotation.phase.replaceAll("_", " ")}. Objects processed: ${rotation.objectsRewritten}${total}.${retained}`;
90326
+ }
90296
90327
  // src/commands/storage-maximum-text.ts
90297
90328
  /**
90298
90329
  * How one bucket's optional stored-byte maximum answers a person.
@@ -90392,6 +90423,7 @@ function storageText(report) {
90392
90423
  if ("sent" in report) return renderWriteOutcome(report, storageChangeText);
90393
90424
  if (report.kind === "adoption" || report.kind === "adoption-page" || report.kind === "adoption-retained" || report.kind === "adoption-recovery") return adoptionText(report);
90394
90425
  switch (report.kind) {
90426
+ case "encryption-rotation": return encryptionRotationText(report);
90395
90427
  case "buckets": return bucketsText(report.buckets);
90396
90428
  case "objects": return objectsText(report.page, report.prefix);
90397
90429
  case "grant": return grantText(report.grant);
@@ -90406,6 +90438,7 @@ function storageText(report) {
90406
90438
  /** What a storage write changed, in the words of the thing it changed. */
90407
90439
  function storageChangeText(change) {
90408
90440
  switch (change.kind) {
90441
+ case "encryption-rotation": return encryptionRotationText(change);
90409
90442
  case "adoption":
90410
90443
  case "restored":
90411
90444
  case "adoption-disposal": return adoptionChangeText(change);
@@ -91138,6 +91171,7 @@ async function dispatch$1(context) {
91138
91171
  case "bind": return await bind(context, tail);
91139
91172
  case "unbind": return await unbind(context, tail);
91140
91173
  case "adoption": return await adoption(context, tail);
91174
+ case "encryption": return await encryptionRotation(context, tail);
91141
91175
  default: throw new UsageError(STORAGE_USAGE);
91142
91176
  }
91143
91177
  }
@@ -92328,7 +92362,7 @@ function writeUpdateState(state, env = process.env) {
92328
92362
  } catch {}
92329
92363
  }
92330
92364
  // src/version.ts
92331
- var VERSION = "1.0.838";
92365
+ var VERSION = "1.0.851";
92332
92366
  // src/commands/update.ts
92333
92367
  /**
92334
92368
  * `update` — bring this copy of the CLI up to the published version.
@@ -92402,7 +92436,7 @@ var update = {
92402
92436
  }, process.env);
92403
92437
  return {
92404
92438
  ...known,
92405
- current: after ?? "1.0.838",
92439
+ current: after ?? "1.0.851",
92406
92440
  latest: after ?? latest,
92407
92441
  upToDate: after !== null && (latest === null || !isNewerVersion(latest, after)),
92408
92442
  action: "run",
@@ -92688,7 +92722,7 @@ async function printUpdateNotice(options) {
92688
92722
  }, env, { waitMs: NOTICE_LOCK_WAIT_MS });
92689
92723
  } catch {}
92690
92724
  if (latest === null) return;
92691
- if (!isNewerVersion(latest, "1.0.838")) return;
92725
+ if (!isNewerVersion(latest, "1.0.851")) return;
92692
92726
  process.stderr.write(`A newer hostingctl is published: ${latest} (this copy is ${VERSION}). Run \`hostingctl update\` to update.\n`);
92693
92727
  }
92694
92728
  /** Whether an environment variable is set to something, which is how CI and the opt-out are read. */