@haakco/hostingctl 1.0.724 → 1.0.741

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
@@ -44792,6 +44792,20 @@ function randAmount(cents) {
44792
44792
  return `${(cents / 100).toFixed(2)} rand`;
44793
44793
  }
44794
44794
  //#endregion
44795
+ //#region src/commands/billing-rates-text.ts
44796
+ /**
44797
+ * The text for the price book: one line per window, and under an increase for every existing customer, where its
44798
+ * notices have got. A company moves only the notice period after its own email was sent.
44799
+ */
44800
+ function ratesText(items) {
44801
+ if (items.length === 0) return "No price window is recorded. Nothing can be priced, so nothing can be issued.";
44802
+ return items.map((rate) => ` ${rate.product.padEnd(4)} ${(rate.packageKey ?? "any").padEnd(14)} ${(rate.companySlug ?? "all companies").padEnd(18)} ${formatMoney(rate.amountCents, rate.currency)} from ${rate.effectiveFrom.slice(0, 10)}${rate.effectiveUntil === null ? "" : ` until ${rate.effectiveUntil.slice(0, 10)}`}${rate.notices === null ? "" : `\n ${noticeText(rate.notices)}`}`).join("\n");
44803
+ }
44804
+ /** Where an increase for every existing customer has got with its notices. */
44805
+ function noticeText(notices) {
44806
+ return `notices: ${notices.lastNotifiedMovesOn === null ? `${notices.notifiedCount} told` : `${notices.notifiedCount} told (all moved by ${notices.lastNotifiedMovesOn})`}, ${notices.pendingEarliestMovesOn === null ? `${notices.pendingCount} waiting` : `${notices.pendingCount} waiting for their notice (none moves before ${notices.pendingEarliestMovesOn})`}`;
44807
+ }
44808
+ //#endregion
44795
44809
  //#region src/commands/billing-text-documents.ts
44796
44810
  /**
44797
44811
  * The text for the document, pack and payment answers.
@@ -45005,10 +45019,6 @@ function issuerText(issuer) {
45005
45019
  issuer.issuanceActivated ? ` issuance is ON, first issued month ${issuer.firstIssuedMonth ?? "not recorded"}` : " issuance is OFF: no document can be issued until the first issued month is recorded"
45006
45020
  ].join("\n");
45007
45021
  }
45008
- function ratesText(items) {
45009
- if (items.length === 0) return "No price window is recorded. Nothing can be priced, so nothing can be issued.";
45010
- return items.map((rate) => ` ${rate.product.padEnd(4)} ${(rate.packageKey ?? "any").padEnd(14)} ${(rate.companySlug ?? "all companies").padEnd(18)} ${formatMoney(rate.amountCents, rate.currency)} from ${rate.effectiveFrom.slice(0, 10)}${rate.effectiveUntil === null ? "" : ` until ${rate.effectiveUntil.slice(0, 10)}`}`).join("\n");
45011
- }
45012
45022
  function taxRatesText(items) {
45013
45023
  if (items.length === 0) return "No VAT window is recorded.";
45014
45024
  return items.map((rate) => ` ${rate.label.padEnd(10)} ${(rate.basisPoints / 100).toFixed(2)}% from ${rate.effectiveFrom.slice(0, 10)}${rate.effectiveUntil === null ? "" : ` until ${rate.effectiveUntil.slice(0, 10)}`}`).join("\n");
@@ -61336,6 +61346,12 @@ object({
61336
61346
  keepingPriceCount: int().describe("Of those, how many keep their current price: every one on a grandfathered increase, none otherwise."),
61337
61347
  rateUuid: string().nullable()
61338
61348
  });
61349
+ var billingPriceNoticeProgressDataSchema = object({
61350
+ notifiedCount: int(),
61351
+ pendingCount: int(),
61352
+ lastNotifiedMovesOn: string().nullable(),
61353
+ pendingEarliestMovesOn: string().nullable()
61354
+ });
61339
61355
  object({
61340
61356
  uuid: string(),
61341
61357
  provider: string(),
@@ -61382,7 +61398,8 @@ object({ items: array(object({
61382
61398
  currency: string(),
61383
61399
  effectiveFrom: string(),
61384
61400
  effectiveUntil: string().nullable(),
61385
- existingCustomers: union([billingRateExistingCustomerRuleEnumSchema, _null()])
61401
+ existingCustomers: union([billingRateExistingCustomerRuleEnumSchema, _null()]),
61402
+ notices: union([billingPriceNoticeProgressDataSchema, _null()])
61386
61403
  })) });
61387
61404
  var billingReceivablesSuspensionDataSchema = object({
61388
61405
  reason: string(),
@@ -61859,6 +61876,13 @@ object({
61859
61876
  scopes: array(consentScopeDataSchema),
61860
61877
  user: userDataSchema
61861
61878
  });
61879
+ var contactTopicEnumSchema = _enum([
61880
+ "support",
61881
+ "billing",
61882
+ "sales",
61883
+ "privacy",
61884
+ "abuse"
61885
+ ]).describe("What a public contact-form message is about, so support can route it from the subject line.\n");
61862
61886
  var createHostingAccessGrantRequestSchema = object({
61863
61887
  desiredGeneration: int().min(1),
61864
61888
  userUuid: uuid(),
@@ -62493,6 +62517,13 @@ object({
62493
62517
  secret: string().nullable()
62494
62518
  });
62495
62519
  object({ subjects: array(blocklistStatusDataSchema) });
62520
+ var emailClientSetupDnsRecordDataSchema = object({
62521
+ purpose: string().describe("What the record does, in a person's words."),
62522
+ relativeName: string(),
62523
+ recordType: string(),
62524
+ ttlSeconds: int(),
62525
+ value: string()
62526
+ });
62496
62527
  object({
62497
62528
  mailboxUuid: string(),
62498
62529
  address: string(),
@@ -62620,7 +62651,8 @@ var emailDomainSummaryDataSchema = object({
62620
62651
  releasedAt: string().nullable(),
62621
62652
  checks: array(emailDomainObservedCheckDataSchema),
62622
62653
  expectedDnsRecords: array(emailExpectedDnsRecordDataSchema),
62623
- recipientRoute: union([emailRecipientRouteStateDataSchema, _null()])
62654
+ recipientRoute: union([emailRecipientRouteStateDataSchema, _null()]),
62655
+ clientSetupDnsRecords: array(emailClientSetupDnsRecordDataSchema)
62624
62656
  });
62625
62657
  var emailEnrollmentAvailabilityDataSchema = object({
62626
62658
  available: boolean(),
@@ -62646,7 +62678,8 @@ var emailKindEnumSchema = _enum([
62646
62678
  "verify-email",
62647
62679
  "platform-alert",
62648
62680
  "billing-price-increase-notice",
62649
- "billing-price-increase-cancelled"
62681
+ "billing-price-increase-cancelled",
62682
+ "contact-message"
62650
62683
  ]);
62651
62684
  var emailMailboxQuotaEnumSchema = _enum([
62652
62685
  "gb-5",
@@ -62738,7 +62771,8 @@ object({
62738
62771
  outgoingSecurity: string().nullable(),
62739
62772
  authenticationRequired: boolean(),
62740
62773
  webmailUrl: string().nullable(),
62741
- copyText: string()
62774
+ copyText: string(),
62775
+ appleProfileUrl: string().nullable().describe("The mail server's Apple setup profile, or null when the deployment names none.")
62742
62776
  });
62743
62777
  var emailMailboxTaskStatusEnumSchema = _enum([
62744
62778
  "requested",
@@ -63639,7 +63673,6 @@ var hostingRestoreIntakeRequestDataSchema = object({
63639
63673
  claimFreeBytes: int().nullable(),
63640
63674
  claimFreeInodes: int().nullable(),
63641
63675
  claimApplicationBytes: int(),
63642
- claimLonghornBytes: int(),
63643
63676
  stagingFreeBytes: int().nullable(),
63644
63677
  stagingEphemeralLimitBytes: int().nullable(),
63645
63678
  stagingNodePressure: boolean(),
@@ -64999,8 +65032,7 @@ var hostingStorageClassDataSchema = object({
64999
65032
  enabled: boolean(),
65000
65033
  restricted: boolean(),
65001
65034
  volumeTypes: array(string()),
65002
- reportsUsedBytes: boolean(),
65003
- supportsBackingImages: boolean()
65035
+ reportsUsedBytes: boolean()
65004
65036
  });
65005
65037
  object({
65006
65038
  volumeType: string(),
@@ -65932,7 +65964,8 @@ var hostingStorageBindingDataSchema = object({
65932
65964
  uuid: string(),
65933
65965
  environmentUuid: string(),
65934
65966
  path: string().nullable(),
65935
- mode: string()
65967
+ mode: string(),
65968
+ applicationUuid: string().nullable().describe("The application whose tree a mount belongs to; null for native access.")
65936
65969
  });
65937
65970
  var hostingStorageBindingModeEnumSchema = _enum(["native", "mount"]).describe("How one environment reaches a company's purchased object storage. The two modes are access paths to the *same* bucket, not separate products: a client can use a normal S3 client, mount the bucket at a directory in an application, or do both, and switching between them moves no data and costs nothing extra. `native` records that the client uses the branded S3 endpoint itself, so the platform composes no mount for it.\n");
65938
65971
  var hostingStorageNativeMaximumDataSchema = object({
@@ -65994,7 +66027,6 @@ object({
65994
66027
  slug: string(),
65995
66028
  name: string(),
65996
66029
  reportsUsedBytes: boolean(),
65997
- supportsBackingImages: boolean(),
65998
66030
  enabled: boolean()
65999
66031
  })),
66000
66032
  volumeTypes: array(object({
@@ -66109,7 +66141,7 @@ object({
66109
66141
  rows: array(object({
66110
66142
  claim: string(),
66111
66143
  provisionedBytes: int().describe("What the purchase allocated, from the platform's own record."),
66112
- usedBytes: int().nullable().describe("What the volume reports as written, or null when this credential cannot read it."),
66144
+ usedBytes: int().nullable().describe("What the volume reports as written, or null when its storage kind does not report it."),
66113
66145
  freeBytes: int().nullable().describe("What the volume still has room for, or null when unreadable."),
66114
66146
  idle: boolean().describe("Almost nothing written against a large allocation: the state that starved a workload earlier."),
66115
66147
  unreadable: string().nullable().describe("Why the numbers are absent, when they are.")
@@ -67057,6 +67089,14 @@ var selectGitHubRepositoryRequestSchema = object({
67057
67089
  branch: string().min(1).max(255).nullish(),
67058
67090
  configPath: string().min(1).max(255).nullish()
67059
67091
  }).describe("One repository selected from a bound installation, by GitHub's numeric id.\n\nThe name is deliberately not accepted: a rename would otherwise silently stop matching,\nand the id is what the provider's own repository list is keyed on.");
67092
+ object({
67093
+ name: string().max(120),
67094
+ email: email().max(255),
67095
+ company: string().max(160).nullish(),
67096
+ topic: contactTopicEnumSchema.describe("What a public contact-form message is about, so support can route it from the subject line.\n"),
67097
+ message: string().min(10).max(5e3),
67098
+ website: string().max(255).nullish().describe("A field people never see. A bot that fills it is answered as if it had been sent.")
67099
+ });
67060
67100
  var sendMailboxSetupInstructionsRequestSchema = object({ recipient: email().max(254).nullish() }).describe("Sending one mailbox's mail-client setup instructions.\n\n`recipient` is optional: when it is absent the mailbox's stored fallback address is used. A mailbox\nmay not be usable yet, so the mailbox's own address is never required as the destination and the\nmessage carries no password.");
67061
67101
  var sentEmailContextEnumSchema = _enum([
67062
67102
  "billing-document",
@@ -67426,7 +67466,8 @@ var storeHostingStorageAdoptionRequestSchema = object({
67426
67466
  }).describe("The two acknowledgments required before a bucket is held for adoption.\n\nBoth are required statements rather than optional flags. A hold stops the client's applications writing, and the\nprevious contents stay as retained data instead of being deleted, so an adoption must never begin because someone\nomitted to disagree. They are recorded on the activity entry, which is where the consent that authorised the hold is\naudited.");
67427
67467
  var storeHostingStorageBindingRequestSchema = object({
67428
67468
  path: string().max(255).optional(),
67429
- mode: hostingStorageBindingModeEnumSchema.describe("How one environment reaches a company's purchased object storage. The two modes are access paths to the *same* bucket, not separate products: a client can use a normal S3 client, mount the bucket at a directory in an application, or do both, and switching between them moves no data and costs nothing extra. `native` records that the client uses the branded S3 endpoint itself, so the platform composes no mount for it.\n")
67469
+ mode: hostingStorageBindingModeEnumSchema.describe("How one environment reaches a company's purchased object storage. The two modes are access paths to the *same* bucket, not separate products: a client can use a normal S3 client, mount the bucket at a directory in an application, or do both, and switching between them moves no data and costs nothing extra. `native` records that the client uses the branded S3 endpoint itself, so the platform composes no mount for it.\n"),
67470
+ application: uuid().nullish().describe("The application whose tree a mounted directory belongs to. Optional while the environment runs one.")
67430
67471
  }).describe("Binding a purchased bucket to one environment, natively or as a managed directory.\n\nThe path is the dangerous part, so its rule is owned by `StorageMountPath` rather than written as\nbranching inside this declaration; a path that is not absolute, contains a traversal segment, is the\nfilesystem root or lands on a reserved system/managed location is refused before any write. Only the\nmount path is a directory inside the application tree, so it is validated here rather than by a\nbranching rule inside the controller.");
67431
67472
  var storeHostingStorageBucketRequestSchema = object({
67432
67473
  name: string().min(1).max(64).regex(/^[\pL\pN][\pL\pN ._-]*$/),
@@ -67943,7 +67984,6 @@ object({
67943
67984
  lastRejectionReason: string().nullable(),
67944
67985
  lastError: string().nullable()
67945
67986
  });
67946
- object({ message: string().describe("Error overview.") });
67947
67987
  object({
67948
67988
  message: string().describe("Errors overview."),
67949
67989
  errors: record$1(string(), array(string())).describe("A detailed description of each field that failed validation.")
@@ -67951,6 +67991,7 @@ object({
67951
67991
  object({ message: string().describe("Error overview.") });
67952
67992
  object({ message: string().describe("Error overview.") });
67953
67993
  object({ message: string().describe("Error overview.") });
67994
+ object({ message: string().describe("Error overview.") });
67954
67995
  union([
67955
67996
  object({ message: string().describe("Error overview.") }),
67956
67997
  messageDataSchema,
@@ -68234,6 +68275,7 @@ union([
68234
68275
  object({ message: string().describe("Error overview.") }),
68235
68276
  messageDataSchema
68236
68277
  ]);
68278
+ union([messageDataSchema, messageDataSchema]);
68237
68279
  union([
68238
68280
  object({ message: string().describe("Error overview.") }),
68239
68281
  object({ message: string().describe("Error overview.") }),
@@ -68862,7 +68904,7 @@ union([loginContinuationDataSchema, authorizationCodeDataSchema]);
68862
68904
  union([messageDataSchema, messageDataSchema]);
68863
68905
  firstPartyAuthorizeRequestSchema.describe("Credential-to-code exchange for an approved first-party public client.\nThe client ID, redirect URI and PKCE challenge are all required; nothing is\ntrusted from the caller beyond the credentials themselves.");
68864
68906
  var authPasskeyAuthorizeStatus200Schema = passkeyAssertionOptionsDataSchema;
68865
- var authPasskeyAuthorizeStatus201Schema = string();
68907
+ var authPasskeyAuthorizeStatus201Schema = passkeyAssertionOptionsDataSchema;
68866
68908
  var authPasskeyAuthorizeStatus422Schema = messageDataSchema;
68867
68909
  var authPasskeyAuthorizeStatus429Schema = messageDataSchema;
68868
68910
  union([authPasskeyAuthorizeStatus200Schema, authPasskeyAuthorizeStatus201Schema]);
@@ -70768,7 +70810,7 @@ loginContinuationTotpRequestSchema.describe("One ceremony step: an authenticator
70768
70810
  union([messageDataSchema, messageDataSchema]);
70769
70811
  loginContinuationRecoveryCodeRequestSchema.describe("One ceremony step: a recovery code offered to the login continuation that is waiting.\n\nA recovery code replaces a lost factor, so this step is refused a stage where nothing is pending\nand it never returns access — only the replacement stage.");
70770
70812
  var authContinuationPasskeyOptionsStatus200Schema = passkeyAssertionOptionsDataSchema;
70771
- var authContinuationPasskeyOptionsStatus201Schema = string();
70813
+ var authContinuationPasskeyOptionsStatus201Schema = passkeyAssertionOptionsDataSchema;
70772
70814
  var authContinuationPasskeyOptionsStatus422Schema = messageDataSchema;
70773
70815
  var authContinuationPasskeyOptionsStatus429Schema = messageDataSchema;
70774
70816
  union([authContinuationPasskeyOptionsStatus200Schema, authContinuationPasskeyOptionsStatus201Schema]);
@@ -70777,7 +70819,7 @@ loginContinuationPasskeyOptionsRequestSchema.describe("The first half of a passk
70777
70819
  union([messageDataSchema, messageDataSchema]);
70778
70820
  loginContinuationPasskeyRequestSchema.describe("The second half of a passkey ceremony: the browser's signed assertion for the pending login.\n\n`challengeId` names the one challenge the options answer minted for this login, and `credential` is\nthe WebAuthn JSON the browser returned for it. Neither can name a member or a credential the\ncontinuation does not already belong to.");
70779
70821
  var authContinuationEnrolTotpStatus200Schema = totpEnrolmentDataSchema;
70780
- var authContinuationEnrolTotpStatus201Schema = string();
70822
+ var authContinuationEnrolTotpStatus201Schema = totpEnrolmentDataSchema;
70781
70823
  var authContinuationEnrolTotpStatus422Schema = messageDataSchema;
70782
70824
  var authContinuationEnrolTotpStatus429Schema = messageDataSchema;
70783
70825
  union([authContinuationEnrolTotpStatus200Schema, authContinuationEnrolTotpStatus201Schema]);
@@ -70786,7 +70828,7 @@ loginContinuationEnrolRequestSchema.describe("The first half of an enrolment: a
70786
70828
  union([messageDataSchema, messageDataSchema]);
70787
70829
  loginContinuationTotpRequestSchema.describe("One ceremony step: an authenticator-app code for the login continuation that asked for it.\n\nThe continuation is the whole capability. There is no email, password, user id or client field to\nsubmit, so a caller can only finish the stage that is actually pending.");
70788
70830
  var authContinuationEnrolPasskeyOptionsStatus200Schema = passkeyRegistrationOptionsDataSchema;
70789
- var authContinuationEnrolPasskeyOptionsStatus201Schema = string();
70831
+ var authContinuationEnrolPasskeyOptionsStatus201Schema = passkeyRegistrationOptionsDataSchema;
70790
70832
  var authContinuationEnrolPasskeyOptionsStatus422Schema = messageDataSchema;
70791
70833
  var authContinuationEnrolPasskeyOptionsStatus429Schema = messageDataSchema;
70792
70834
  union([authContinuationEnrolPasskeyOptionsStatus200Schema, authContinuationEnrolPasskeyOptionsStatus201Schema]);
@@ -71725,7 +71767,7 @@ union([
71725
71767
  stateManagerIntentRequestSchema.describe("The manager's intent-resolution request.\n\nThe run reference is the exact manager tuple the callback must bind and echo.\nThe intent reference is the Laravel-owned record it must resolve. Neither a\ncompany, an actor nor a credential is accepted: the handler resolves those\nserver-side and a caller-supplied identity grants no authority.\n\nThe callback is a Laravel/HTTP boundary, so its own fields are camelCase like\nthe rest of the API. The complete unfiltered payload is checked against the one\nshared callback schema, so a superseded snake_case, mixed or unknown-field body\nis refused rather than silently coerced by Laravel's field filtering.");
71726
71768
  object({ message: string().describe("Error overview.") });
71727
71769
  var strongAuthFactorBeginTotpStatus200Schema = totpEnrolmentDataSchema;
71728
- var strongAuthFactorBeginTotpStatus201Schema = string();
71770
+ var strongAuthFactorBeginTotpStatus201Schema = totpEnrolmentDataSchema;
71729
71771
  var strongAuthFactorBeginTotpStatus401Schema = object({ message: string().describe("Error overview.") });
71730
71772
  var strongAuthFactorBeginTotpStatus403Schema = messageDataSchema;
71731
71773
  union([strongAuthFactorBeginTotpStatus200Schema, strongAuthFactorBeginTotpStatus201Schema]);
@@ -71736,7 +71778,7 @@ union([
71736
71778
  messageDataSchema
71737
71779
  ]);
71738
71780
  var strongAuthFactorConfirmTotpStatus200Schema = strongAuthFactorInventoryDataSchema;
71739
- var strongAuthFactorConfirmTotpStatus201Schema = string();
71781
+ var strongAuthFactorConfirmTotpStatus201Schema = strongAuthFactorInventoryDataSchema;
71740
71782
  var strongAuthFactorConfirmTotpStatus401Schema = object({ message: string().describe("Error overview.") });
71741
71783
  var strongAuthFactorConfirmTotpStatus403Schema = messageDataSchema;
71742
71784
  var strongAuthFactorConfirmTotpStatus422Schema = messageDataSchema;
@@ -71748,19 +71790,19 @@ union([
71748
71790
  ]);
71749
71791
  confirmTotpRequestSchema.describe("The code that finishes an authenticator-app enrolment for the caller's own account.\n\nThere is no subject field: the account being changed is the one the presented credential\nauthenticated, so no caller can name somebody else's enrolment.");
71750
71792
  var strongAuthFactorIssueRecoveryCodesStatus200Schema = recoveryCodeSetDataSchema;
71751
- var strongAuthFactorIssueRecoveryCodesStatus201Schema = string();
71793
+ var strongAuthFactorIssueRecoveryCodesStatus201Schema = recoveryCodeSetDataSchema;
71752
71794
  var strongAuthFactorIssueRecoveryCodesStatus401Schema = object({ message: string().describe("Error overview.") });
71753
71795
  var strongAuthFactorIssueRecoveryCodesStatus403Schema = messageDataSchema;
71754
71796
  union([strongAuthFactorIssueRecoveryCodesStatus200Schema, strongAuthFactorIssueRecoveryCodesStatus201Schema]);
71755
71797
  union([strongAuthFactorIssueRecoveryCodesStatus401Schema, strongAuthFactorIssueRecoveryCodesStatus403Schema]);
71756
71798
  var strongAuthPasskeyOptionsStatus200Schema = passkeyRegistrationOptionsDataSchema;
71757
- var strongAuthPasskeyOptionsStatus201Schema = string();
71799
+ var strongAuthPasskeyOptionsStatus201Schema = passkeyRegistrationOptionsDataSchema;
71758
71800
  var strongAuthPasskeyOptionsStatus401Schema = object({ message: string().describe("Error overview.") });
71759
71801
  var strongAuthPasskeyOptionsStatus403Schema = messageDataSchema;
71760
71802
  union([strongAuthPasskeyOptionsStatus200Schema, strongAuthPasskeyOptionsStatus201Schema]);
71761
71803
  union([strongAuthPasskeyOptionsStatus401Schema, strongAuthPasskeyOptionsStatus403Schema]);
71762
71804
  var strongAuthPasskeyStoreStatus200Schema = passkeyCredentialDataSchema;
71763
- var strongAuthPasskeyStoreStatus201Schema = string();
71805
+ var strongAuthPasskeyStoreStatus201Schema = passkeyCredentialDataSchema;
71764
71806
  var strongAuthPasskeyStoreStatus401Schema = object({ message: string().describe("Error overview.") });
71765
71807
  var strongAuthPasskeyStoreStatus403Schema = messageDataSchema;
71766
71808
  var strongAuthPasskeyStoreStatus422Schema = messageDataSchema;
@@ -77340,7 +77382,7 @@ var STORAGE_USAGE = [
77340
77382
  " hostingctl storage download-url <bucket-uuid> --company <slug> --key <key>",
77341
77383
  " hostingctl storage upload-url <bucket-uuid> --company <slug> --key <key>",
77342
77384
  " hostingctl storage bind <bucket-uuid> --company <slug> --environment <uuid>",
77343
- " (--path <directory>|--native)",
77385
+ " (--path <directory> [--application <uuid>]|--native)",
77344
77386
  " hostingctl storage unbind <bucket-uuid> --company <slug> --environment <uuid>",
77345
77387
  " hostingctl storage adoption <bucket-uuid> --company <slug> [status]",
77346
77388
  " hostingctl storage adoption <bucket-uuid> --company <slug> start --maintenance",
@@ -77481,6 +77523,11 @@ var STORAGE_METADATA = {
77481
77523
  takesValue: true,
77482
77524
  description: "The directory the environment mounts the bucket at; it has to be absolute."
77483
77525
  },
77526
+ {
77527
+ name: "--application",
77528
+ takesValue: true,
77529
+ description: "The application whose directory a mount is; needed when the environment runs more than one, and taken as the only one otherwise."
77530
+ },
77484
77531
  {
77485
77532
  name: "--quote-file",
77486
77533
  takesValue: true,
@@ -77679,9 +77726,15 @@ function bindingBody(context) {
77679
77726
  const directory = trimmedFlag(context, "--path");
77680
77727
  const native = context.flags.has("--native");
77681
77728
  if (native === (directory !== "")) throw new UsageError(`bind needs exactly one of --path <directory> or --native.\n\n${STORAGE_USAGE}`);
77682
- return native ? { mode: "native" } : {
77729
+ const application = trimmedFlag(context, "--application");
77730
+ if (native) return { mode: "native" };
77731
+ return application === "" ? {
77683
77732
  mode: "mount",
77684
77733
  path: directory
77734
+ } : {
77735
+ mode: "mount",
77736
+ path: directory,
77737
+ application
77685
77738
  };
77686
77739
  }
77687
77740
  /** A flag's value with the surrounding space removed, or the empty string when it was not given. */
@@ -79264,7 +79317,6 @@ function classText(one) {
79264
79317
  `Enabled: ${one.enabled ? "yes" : "no"}`,
79265
79318
  `Trial (offered only where an operator selects it): ${one.restricted ? "yes" : "no"}`,
79266
79319
  `Reports written bytes: ${one.reportsUsedBytes ? "yes" : "no"}`,
79267
- `Can carry a seed: ${one.supportsBackingImages ? "yes" : "no"}`,
79268
79320
  `UUID: ${one.uuid}`
79269
79321
  ].filter((line) => line !== null).join("\n");
79270
79322
  }
@@ -79297,12 +79349,8 @@ var VOLUME_TYPES = [
79297
79349
  "database-data",
79298
79350
  "redis-data"
79299
79351
  ];
79300
- /** The backends the platform's closed behaviour vocabulary carries. */
79301
- var BACKENDS = [
79302
- "longhorn",
79303
- "ceph",
79304
- "local-path"
79305
- ];
79352
+ /** The backends a class can be registered on; the retired `longhorn` backend is history only. */
79353
+ var BACKENDS = ["ceph", "local-path"];
79306
79354
  function claimType(value) {
79307
79355
  const known = VOLUME_TYPES.find((type) => type === value);
79308
79356
  if (known === void 0) throw new UsageError(`[${value}] is not a claim type; use one of ${VOLUME_TYPES.join(", ")}.`);
@@ -80280,7 +80328,7 @@ function writeUpdateState(state, env = process.env) {
80280
80328
  }
80281
80329
  //#endregion
80282
80330
  //#region src/version.ts
80283
- var VERSION = "1.0.724";
80331
+ var VERSION = "1.0.741";
80284
80332
  //#endregion
80285
80333
  //#region src/commands/update.ts
80286
80334
  /**
@@ -80355,7 +80403,7 @@ var update = {
80355
80403
  }, process.env);
80356
80404
  return {
80357
80405
  ...known,
80358
- current: after ?? "1.0.724",
80406
+ current: after ?? "1.0.741",
80359
80407
  latest: after ?? latest,
80360
80408
  upToDate: after !== null && (latest === null || !isNewerVersion(latest, after)),
80361
80409
  action: "run",
@@ -80637,7 +80685,7 @@ async function printUpdateNotice(options) {
80637
80685
  }, env, { waitMs: NOTICE_LOCK_WAIT_MS });
80638
80686
  } catch {}
80639
80687
  if (latest === null) return;
80640
- if (!isNewerVersion(latest, "1.0.724")) return;
80688
+ if (!isNewerVersion(latest, "1.0.741")) return;
80641
80689
  process.stderr.write(`A newer hostingctl is published: ${latest} (this copy is ${VERSION}). Run \`hostingctl update\` to update.\n`);
80642
80690
  }
80643
80691
  /** Whether an environment variable is set to something, which is how CI and the opt-out are read. */