@haakco/hostingctl 1.0.691 → 1.0.695
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 +38 -17
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
- package/platform/darwin-arm64/hostingctl +0 -0
- package/platform/darwin-x64/hostingctl +0 -0
- package/platform/linux-arm64/hostingctl +0 -0
- package/platform/linux-x64/hostingctl +0 -0
- package/platform/windows-x64/hostingctl.exe +0 -0
package/dist/main.js
CHANGED
|
@@ -61571,10 +61571,12 @@ var confirmHostingApplicationRecoveryRequestSchema = object({
|
|
|
61571
61571
|
})
|
|
61572
61572
|
}).describe("Confirming one application's reset or restore against the inventory that was reviewed.\n\n`confirmation` is the digest the review returned, and it is required rather than optional: it is\nwhat makes the confirmation an approval of an exact inventory instead of an approval of a label.\n`desiredGeneration` is the same idea at the environment level, so a request composed before\nanother change is a conflict rather than a reset of something else.\n\nThe reviewed figures travel as one typed `intake` object rather than flat fields, so the HTTP\nboundary and the domain contract cannot drift into two shapes with the same names. The intake\nitself is validated by the DTO's own types when it is hydrated.");
|
|
61573
61573
|
var confirmHostingSshHostKeyRequestSchema = object({ fingerprint: string().max(120) }).describe("The fingerprint the client obtained independently for a source's server host key.\n\nIt is compared with the discovered value by the service, so only its shape belongs here. It is\nrequired rather than inferred: a confirmation that echoed what the platform already held would not\nbe a confirmation at all.");
|
|
61574
|
+
var hostingStorageObjectEncryptionEnumSchema = _enum(["none", "sse_c"]);
|
|
61574
61575
|
var confirmHostingStorageAdoptionRequestSchema = object({
|
|
61575
61576
|
operationId: string().regex(/^[a-z0-9][a-z0-9-]{3,40}$/),
|
|
61576
61577
|
bindingGeneration: int().min(0),
|
|
61577
|
-
captureDigest: string().regex(/^[a-f0-9]{64}$/)
|
|
61578
|
+
captureDigest: string().regex(/^[a-f0-9]{64}$/),
|
|
61579
|
+
targetEncryption: union([hostingStorageObjectEncryptionEnumSchema, _null()]).optional()
|
|
61578
61580
|
}).describe("One exact capture a client confirms before it may become the bucket's physical binding.\n\nThe operation, the binding generation and the digest are all required and matched together: the same captured\nrepresentations can recur in a later operation, so a payload carrying only a digest could approve a cutover the\nclient never reviewed. Whether these name the capture currently frozen is answered by the recorded adoption, which\nrefuses a stale or foreign identity.");
|
|
61579
61581
|
object({
|
|
61580
61582
|
confirmation: string().min(64).max(64).regex(/^[a-f0-9]+$/),
|
|
@@ -65608,7 +65610,10 @@ var hostingStorageAdoptionDataSchema = object({
|
|
|
65608
65610
|
requestedAction: string().nullable(),
|
|
65609
65611
|
updatedAt: string(),
|
|
65610
65612
|
disposal: union([hostingStorageAdoptionDisposalDataSchema, _null()]),
|
|
65611
|
-
restore: union([hostingStorageAdoptionRestoreDataSchema, _null()])
|
|
65613
|
+
restore: union([hostingStorageAdoptionRestoreDataSchema, _null()]),
|
|
65614
|
+
sourceEncryption: string().nullable().describe("The mode this operation observed for its source; null means unobserved, never plaintext."),
|
|
65615
|
+
targetEncryption: string().nullable().describe("The mode this operation will leave the bucket in."),
|
|
65616
|
+
retainedSourceMayBeUnencrypted: boolean().nullable().describe("True only when an observed plaintext source is replaced by an encrypted candidate.")
|
|
65612
65617
|
});
|
|
65613
65618
|
var hostingStorageGatewayObjectDataSchema = object({
|
|
65614
65619
|
key: string(),
|
|
@@ -65641,7 +65646,8 @@ var hostingStorageGatewayRetainedDataSchema = object({
|
|
|
65641
65646
|
epoch: int(),
|
|
65642
65647
|
captureDigest: string(),
|
|
65643
65648
|
captureObjectCount: int(),
|
|
65644
|
-
captureBytes: int()
|
|
65649
|
+
captureBytes: int(),
|
|
65650
|
+
objectEncryption: string().nullable().describe("The mode this retained namespace's objects were written with; null when the record predates it.")
|
|
65645
65651
|
});
|
|
65646
65652
|
object({
|
|
65647
65653
|
bucket: string(),
|
|
@@ -65684,6 +65690,10 @@ var hostingStorageBucketDataSchema = object({
|
|
|
65684
65690
|
bucket: string(),
|
|
65685
65691
|
billingMode: string().describe("`native` bills measured usage; `allocated` bills the whole purchased allocation."),
|
|
65686
65692
|
billingModeLabel: string().describe("The client-facing name of that basis, so no surface has to invent its own wording."),
|
|
65693
|
+
encryption: string().describe("The encryption product this bucket was sold: `none` or `sse_c`. It is declared, not inferred, because the two products behave differently in one visible way: the platform\nsupplies the key for an `sse_c` bucket, so no client or download carries one."),
|
|
65694
|
+
encryptionLabel: string().describe("The client-facing name of that product, so the panel and the CLI cannot word it two ways."),
|
|
65695
|
+
contentFormat: string().describe("How this bucket's bytes are represented: `native` or `rclone_crypt`. It is declared at purchase and never changed, because reinterpreting objects nothing has re-encrypted would\nmake them unreadable. A crypt bucket keeps the native endpoint but its bytes are encrypted content and names,\nso it is only read through the platform's crypt mount."),
|
|
65696
|
+
contentFormatLabel: string().describe("The client-facing name of that format, from the same catalogue the format itself comes from."),
|
|
65687
65697
|
capacityBytes: int(),
|
|
65688
65698
|
subscriptionCapacityBytes: int().describe("How much of the company's package storage this bucket holds, in bytes; zero when it holds none. It is usable capacity and it is not billed: the package's unit price already contains it, so it never\nappears as a storage line. `capacityBytes` remains the purchased allocation the monthly run prices."),
|
|
65689
65699
|
totalCapacityBytes: int().describe("What the bucket can actually hold: purchased capacity plus the package storage assigned to it."),
|
|
@@ -65693,7 +65703,7 @@ var hostingStorageBucketDataSchema = object({
|
|
|
65693
65703
|
status: string(),
|
|
65694
65704
|
statusMessage: string(),
|
|
65695
65705
|
hardQuotaEnforced: boolean(),
|
|
65696
|
-
connection: hostingStorageConnectionDataSchema,
|
|
65706
|
+
connection: union([hostingStorageConnectionDataSchema, _null()]),
|
|
65697
65707
|
accessKeyHint: string().nullable(),
|
|
65698
65708
|
usage: hostingStorageObservationDataSchema,
|
|
65699
65709
|
bindings: array(hostingStorageBindingDataSchema),
|
|
@@ -65822,7 +65832,8 @@ var hostingStorageQuoteDataSchema = object({
|
|
|
65822
65832
|
vatBasisPoints: int().describe("The VAT rate at the current month's tax point, which the prorated figure uses."),
|
|
65823
65833
|
monthlyVatBasisPoints: int().describe("The VAT rate at the next month's tax point, which the monthly figures use."),
|
|
65824
65834
|
generatedAt: string(),
|
|
65825
|
-
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.")
|
|
65835
|
+
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."),
|
|
65836
|
+
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.")
|
|
65826
65837
|
});
|
|
65827
65838
|
object({
|
|
65828
65839
|
rows: array(object({
|
|
@@ -67083,7 +67094,8 @@ var storeHostingSshSourceRequestSchema = object({
|
|
|
67083
67094
|
}).describe("A new Git-over-SSH source: a label, a repository address and the ref to read.\n\nOnly shape is checked here. Whether the address is an accepted SSH Git URL, whether the server\nanswers and whether the ref exists are the service's answers, because each requires a decision\nabout the world rather than about the submitted string.");
|
|
67084
67095
|
var storeHostingStorageAdoptionRequestSchema = object({
|
|
67085
67096
|
maintenanceConfirmed: boolean(),
|
|
67086
|
-
retainedDataAcknowledged: boolean()
|
|
67097
|
+
retainedDataAcknowledged: boolean(),
|
|
67098
|
+
targetEncryption: union([hostingStorageObjectEncryptionEnumSchema, _null()]).optional()
|
|
67087
67099
|
}).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.");
|
|
67088
67100
|
var storeHostingStorageBindingRequestSchema = object({
|
|
67089
67101
|
path: string().max(255).optional(),
|
|
@@ -67092,6 +67104,8 @@ var storeHostingStorageBindingRequestSchema = object({
|
|
|
67092
67104
|
var storeHostingStorageBucketRequestSchema = object({
|
|
67093
67105
|
name: string().min(1).max(64).regex(/^[\pL\pN][\pL\pN ._-]*$/),
|
|
67094
67106
|
mode: _enum(["native", "allocated"]).optional(),
|
|
67107
|
+
encryption: string().optional(),
|
|
67108
|
+
contentFormat: _enum(["native", "rclone_crypt"]).optional(),
|
|
67095
67109
|
quote: object({
|
|
67096
67110
|
bucketUuid: string().nullish(),
|
|
67097
67111
|
bucketName: string().nullish(),
|
|
@@ -67144,8 +67158,10 @@ var storeHostingStorageObjectGrantRequestSchema = object({
|
|
|
67144
67158
|
var storeNativeHostingStorageBucketRequestSchema = object({
|
|
67145
67159
|
name: string().min(1).max(64).regex(/^[\pL\pN][\pL\pN ._-]*$/).describe("The client's own label, so they can tell two purchases apart."),
|
|
67146
67160
|
purchaseKey: uuid().nullish().describe("There is no token to replay, so the caller's own key is what makes a retry return the bucket it already\ncreated instead of buying a second one."),
|
|
67147
|
-
maximumBytes: int().min(0).max(0x5af3107a4000).nullish().describe("The same ceiling the maximum endpoint applies, from the same owner: a purchase may not buy a maximum\nthat could not be set on a bucket that already exists.")
|
|
67148
|
-
|
|
67161
|
+
maximumBytes: int().min(0).max(0x5af3107a4000).nullish().describe("The same ceiling the maximum endpoint applies, from the same owner: a purchase may not buy a maximum\nthat could not be set on a bucket that already exists."),
|
|
67162
|
+
encryption: hostingStorageObjectEncryptionEnumSchema.optional().describe("A closed vocabulary, because the value is persisted, printed to the client and used to decide whether object\ntraffic may be served at all: free text would turn a typo into a silently unencrypted bucket."),
|
|
67163
|
+
contentFormat: string().optional().describe("A bucket that pays for what it stores is read through the native S3 endpoint, which cannot read encrypted\ncontent and names. The format is refused by name rather than silently ignored.")
|
|
67164
|
+
}).describe("One purchase of storage that pays for what it stores.\n\nIts own request rather than a mode flag on the allocation purchase, because the two answers have different shapes: an\nallocation purchase confirms a priced quote, and this one carries no quote at all. Keeping them apart means a\ngenerated client can tell which body an endpoint takes instead of being handed an object whose required fields\ndepend on another field.\n\nThe optional maximum may be stated here so a bucket starts protected instead of being limited after it has already\nserved. It is optional in the other direction from the maximum endpoint: that one owns a change to an existing\nbucket, where omission would be an ambiguous removal, while a purchase has no previous value to remove, so an absent\nkey and an explicit null both mean \"no maximum\".\n\nThe encryption product is stated here and nowhere else, for the same reason: it belongs to the purchase. A bucket that\nalready holds objects cannot have its encryption changed by a flag, because nothing has re-encrypted them. Omission\nmeans `none`, so every existing purchase path keeps writing exactly what it wrote before.");
|
|
67149
67165
|
var storePackageHostingStorageBucketRequestSchema = object({
|
|
67150
67166
|
name: string().min(1).max(64).regex(/^[\pL\pN][\pL\pN ._-]*$/).describe("The client's own label, so they can tell two purchases apart."),
|
|
67151
67167
|
purchaseKey: uuid().describe("There is no token to replay, so the caller's own key is what makes a retry return the bucket it already\ncreated instead of reserving the same GiB twice."),
|
|
@@ -67153,7 +67169,9 @@ var storePackageHostingStorageBucketRequestSchema = object({
|
|
|
67153
67169
|
quote: string().optional().describe("Nothing below belongs to this product. Refusing them by name keeps a client from sending a priced or\nusage-billed purchase here and being surprised by what it bought."),
|
|
67154
67170
|
reviewToken: string().optional(),
|
|
67155
67171
|
mode: string().optional(),
|
|
67156
|
-
maximumBytes: string().optional()
|
|
67172
|
+
maximumBytes: string().optional(),
|
|
67173
|
+
encryption: string().optional().describe("Encryption belongs to the pay-for-what-you-store product, which delivers the platform key. Refusing it by\nname keeps a package purchase from silently ignoring the product that was asked for."),
|
|
67174
|
+
contentFormat: _enum(["native", "rclone_crypt"]).optional().describe("Package storage buys the same allocated product, so it may carry the same content format.")
|
|
67157
67175
|
}).describe("One bucket funded by the storage the company's package already includes.\n\nIt is its own request rather than another mode of a purchase, because nothing on it is priced: the package's unit\nprice already contains the included GiB, so this request only names a bucket, states a quantity in whole GiB and\ncarries the caller's own idempotency key. The priced fields are therefore prohibited instead of optional — a quote\nhere would charge for storage the company has already paid for, and a native maximum or product would buy a\ndifferent thing than the package storage being assigned.");
|
|
67158
67176
|
var storePlatformAlertRecipientRequestSchema = object({ email: email().max(254) }).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.");
|
|
67159
67177
|
var storePlatformCompanyNvmeBlocksRequestSchema = object({
|
|
@@ -70057,7 +70075,7 @@ union([
|
|
|
70057
70075
|
hostingStorageStoreNativeStatus403Schema,
|
|
70058
70076
|
hostingStorageStoreNativeStatus422Schema
|
|
70059
70077
|
]);
|
|
70060
|
-
storeNativeHostingStorageBucketRequestSchema.describe("One purchase of storage that pays for what it stores.\n\nIts own request rather than a mode flag on the allocation purchase, because the two answers have different shapes: an\nallocation purchase confirms a priced quote, and this one carries no quote at all. Keeping them apart means a\ngenerated client can tell which body an endpoint takes instead of being handed an object whose required fields\ndepend on another field.\n\nThe optional maximum may be stated here so a bucket starts protected instead of being limited after it has already\nserved. It is optional in the other direction from the maximum endpoint: that one owns a change to an existing\nbucket, where omission would be an ambiguous removal, while a purchase has no previous value to remove, so an absent\nkey and an explicit null both mean \"no maximum\".");
|
|
70078
|
+
storeNativeHostingStorageBucketRequestSchema.describe("One purchase of storage that pays for what it stores.\n\nIts own request rather than a mode flag on the allocation purchase, because the two answers have different shapes: an\nallocation purchase confirms a priced quote, and this one carries no quote at all. Keeping them apart means a\ngenerated client can tell which body an endpoint takes instead of being handed an object whose required fields\ndepend on another field.\n\nThe optional maximum may be stated here so a bucket starts protected instead of being limited after it has already\nserved. It is optional in the other direction from the maximum endpoint: that one owns a change to an existing\nbucket, where omission would be an ambiguous removal, while a purchase has no previous value to remove, so an absent\nkey and an explicit null both mean \"no maximum\".\n\nThe encryption product is stated here and nowhere else, for the same reason: it belongs to the purchase. A bucket that\nalready holds objects cannot have its encryption changed by a flag, because nothing has re-encrypted them. Omission\nmeans `none`, so every existing purchase path keeps writing exactly what it wrote before.");
|
|
70061
70079
|
var hostingStorageStorePackageStatus200Schema = hostingStorageBucketDataSchema;
|
|
70062
70080
|
var hostingStorageStorePackageStatus201Schema = hostingStorageBucketDataSchema;
|
|
70063
70081
|
var hostingStorageStorePackageStatus401Schema = object({ message: string().describe("Error overview.") });
|
|
@@ -70270,6 +70288,7 @@ storeHostingStorageObjectGrantRequestSchema.describe("Asking for one short-lived
|
|
|
70270
70288
|
int().min(10).max(1e5);
|
|
70271
70289
|
uuid().nullish();
|
|
70272
70290
|
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.");
|
|
70291
|
+
_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.");
|
|
70273
70292
|
union([
|
|
70274
70293
|
object({ message: string().describe("Error overview.") }),
|
|
70275
70294
|
object({ message: string().describe("Error overview.") }),
|
|
@@ -78079,10 +78098,12 @@ function bucketText(bucket) {
|
|
|
78079
78098
|
const connection = bucket.connection;
|
|
78080
78099
|
return [
|
|
78081
78100
|
` name ${bucket.name}`,
|
|
78082
|
-
` bucket ${
|
|
78083
|
-
|
|
78084
|
-
|
|
78085
|
-
|
|
78101
|
+
...connection === null ? [` bucket ${bucket.bucket}`, " connection none: this bucket has no native S3 endpoint; reach it through its crypt mount"] : [
|
|
78102
|
+
` bucket ${connection.bucket}`,
|
|
78103
|
+
` endpoint ${connection.endpoint}`,
|
|
78104
|
+
` region ${connection.region}`,
|
|
78105
|
+
` addressing ${connection.pathStyle ? "path-style" : "virtual-hosted-style"}`
|
|
78106
|
+
],
|
|
78086
78107
|
` billing ${bucket.billingModeLabel}`,
|
|
78087
78108
|
` capacity ${readableBytes(bucket.capacityBytes)}`,
|
|
78088
78109
|
` included download ${readableBytes(bucket.includedDownloadBytes)} a month`,
|
|
@@ -79898,7 +79919,7 @@ function writeUpdateState(state, env = process.env) {
|
|
|
79898
79919
|
}
|
|
79899
79920
|
//#endregion
|
|
79900
79921
|
//#region src/version.ts
|
|
79901
|
-
var VERSION = "1.0.
|
|
79922
|
+
var VERSION = "1.0.695";
|
|
79902
79923
|
//#endregion
|
|
79903
79924
|
//#region src/commands/update.ts
|
|
79904
79925
|
/**
|
|
@@ -79973,7 +79994,7 @@ var update = {
|
|
|
79973
79994
|
}, process.env);
|
|
79974
79995
|
return {
|
|
79975
79996
|
...known,
|
|
79976
|
-
current: after ?? "1.0.
|
|
79997
|
+
current: after ?? "1.0.695",
|
|
79977
79998
|
latest: after ?? latest,
|
|
79978
79999
|
upToDate: after !== null && (latest === null || !isNewerVersion(latest, after)),
|
|
79979
80000
|
action: "run",
|
|
@@ -80255,7 +80276,7 @@ async function printUpdateNotice(options) {
|
|
|
80255
80276
|
}, env, { waitMs: NOTICE_LOCK_WAIT_MS });
|
|
80256
80277
|
} catch {}
|
|
80257
80278
|
if (latest === null) return;
|
|
80258
|
-
if (!isNewerVersion(latest, "1.0.
|
|
80279
|
+
if (!isNewerVersion(latest, "1.0.695")) return;
|
|
80259
80280
|
process.stderr.write(`A newer hostingctl is published: ${latest} (this copy is ${VERSION}). Run \`hostingctl update\` to update.\n`);
|
|
80260
80281
|
}
|
|
80261
80282
|
/** Whether an environment variable is set to something, which is how CI and the opt-out are read. */
|