@better-update/cli 0.29.2 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +15 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -34,7 +34,7 @@ var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
|
34
34
|
|
|
35
35
|
//#endregion
|
|
36
36
|
//#region package.json
|
|
37
|
-
var version = "0.
|
|
37
|
+
var version = "0.31.0";
|
|
38
38
|
|
|
39
39
|
//#endregion
|
|
40
40
|
//#region src/lib/interactive-mode.ts
|
|
@@ -484,6 +484,7 @@ var AndroidUploadKeystore = class extends Schema.Class("AndroidUploadKeystore")(
|
|
|
484
484
|
md5Fingerprint: Schema.NullOr(Schema.String),
|
|
485
485
|
sha1Fingerprint: Schema.NullOr(Schema.String),
|
|
486
486
|
sha256Fingerprint: Schema.NullOr(Schema.String),
|
|
487
|
+
keystoreType: Schema.NullOr(Schema.Literal("JKS", "PKCS12")),
|
|
487
488
|
createdAt: DateTimeString,
|
|
488
489
|
updatedAt: DateTimeString
|
|
489
490
|
}) {};
|
|
@@ -498,7 +499,8 @@ const UploadAndroidUploadKeystoreBody = Schema.Struct({
|
|
|
498
499
|
keyAlias: Schema.String.pipe(Schema.minLength(1), Schema.maxLength(200)),
|
|
499
500
|
md5Fingerprint: Schema.optional(Schema.String.pipe(Schema.maxLength(200))),
|
|
500
501
|
sha1Fingerprint: Schema.optional(Schema.String.pipe(Schema.maxLength(200))),
|
|
501
|
-
sha256Fingerprint: Schema.optional(Schema.String.pipe(Schema.maxLength(200)))
|
|
502
|
+
sha256Fingerprint: Schema.optional(Schema.String.pipe(Schema.maxLength(200))),
|
|
503
|
+
keystoreType: Schema.optional(Schema.Literal("JKS", "PKCS12"))
|
|
502
504
|
});
|
|
503
505
|
const DeleteAndroidUploadKeystoreResult = DeletedResult;
|
|
504
506
|
/** Encrypted envelope plus metadata; the CLI decrypts `ciphertext` to recover `{ keystoreBase64, keystorePassword, keyPassword }`. */
|
|
@@ -1702,6 +1704,7 @@ var GoogleServiceAccountKey = class extends Schema.Class("GoogleServiceAccountKe
|
|
|
1702
1704
|
clientEmail: Schema.String,
|
|
1703
1705
|
privateKeyId: Schema.String,
|
|
1704
1706
|
googleProjectId: Schema.String,
|
|
1707
|
+
clientId: Schema.NullOr(Schema.String),
|
|
1705
1708
|
createdAt: DateTimeString,
|
|
1706
1709
|
updatedAt: DateTimeString
|
|
1707
1710
|
}) {};
|
|
@@ -1715,7 +1718,8 @@ const UploadGoogleServiceAccountKeyBody = Schema.Struct({
|
|
|
1715
1718
|
...encryptedEnvelopeFields,
|
|
1716
1719
|
clientEmail: Schema.String.pipe(Schema.minLength(1), Schema.maxLength(320)),
|
|
1717
1720
|
privateKeyId: Schema.String.pipe(Schema.minLength(1), Schema.maxLength(200)),
|
|
1718
|
-
googleProjectId: Schema.String.pipe(Schema.minLength(1), Schema.maxLength(200))
|
|
1721
|
+
googleProjectId: Schema.String.pipe(Schema.minLength(1), Schema.maxLength(200)),
|
|
1722
|
+
clientId: Schema.optional(Schema.NullOr(Schema.String.pipe(Schema.maxLength(200))))
|
|
1719
1723
|
});
|
|
1720
1724
|
const DeleteGoogleServiceAccountKeyResult = DeletedResult;
|
|
1721
1725
|
/** Encrypted envelope plus metadata; the CLI decrypts `ciphertext` to recover `{ json }`. */
|
|
@@ -19658,7 +19662,8 @@ const generateAndUploadKeystore = (api, input) => Effect.scoped(Effect.gen(funct
|
|
|
19658
19662
|
keyAlias: input.keyAlias,
|
|
19659
19663
|
md5Fingerprint: fingerprints.md5,
|
|
19660
19664
|
sha1Fingerprint: fingerprints.sha1,
|
|
19661
|
-
sha256Fingerprint: fingerprints.sha256
|
|
19665
|
+
sha256Fingerprint: fingerprints.sha256,
|
|
19666
|
+
keystoreType: "JKS"
|
|
19662
19667
|
});
|
|
19663
19668
|
const envelope = yield* sealForUpload({
|
|
19664
19669
|
session,
|
|
@@ -25979,7 +25984,8 @@ const parseGoogleServiceAccountKey = (jsonText) => Effect.gen(function* () {
|
|
|
25979
25984
|
return {
|
|
25980
25985
|
clientEmail: raw.client_email,
|
|
25981
25986
|
privateKeyId: raw.private_key_id,
|
|
25982
|
-
googleProjectId: raw.project_id
|
|
25987
|
+
googleProjectId: raw.project_id,
|
|
25988
|
+
clientId: isNonEmptyString(raw.client_id) ? raw.client_id : null
|
|
25983
25989
|
};
|
|
25984
25990
|
});
|
|
25985
25991
|
|
|
@@ -26198,7 +26204,8 @@ const uploadAndroidKeystore = (api, input, bytes) => Effect.gen(function* () {
|
|
|
26198
26204
|
keyAlias: parsed.keyAlias,
|
|
26199
26205
|
md5Fingerprint: fingerprints.md5,
|
|
26200
26206
|
sha1Fingerprint: fingerprints.sha1,
|
|
26201
|
-
sha256Fingerprint: fingerprints.sha256
|
|
26207
|
+
sha256Fingerprint: fingerprints.sha256,
|
|
26208
|
+
keystoreType: parsed.format
|
|
26202
26209
|
});
|
|
26203
26210
|
const envelope = yield* sealForUpload({
|
|
26204
26211
|
session: yield* openVaultSessionInteractive(api),
|
|
@@ -26226,7 +26233,8 @@ const uploadAndroidGoogleServiceAccountKey = (api, input, bytes) => Effect.gen(f
|
|
|
26226
26233
|
const metadata = {
|
|
26227
26234
|
clientEmail: parsed.clientEmail,
|
|
26228
26235
|
privateKeyId: parsed.privateKeyId,
|
|
26229
|
-
googleProjectId: parsed.googleProjectId
|
|
26236
|
+
googleProjectId: parsed.googleProjectId,
|
|
26237
|
+
clientId: parsed.clientId
|
|
26230
26238
|
};
|
|
26231
26239
|
const envelope = yield* sealForUpload({
|
|
26232
26240
|
session: yield* openVaultSessionInteractive(api),
|