@amerged/ohmyhost-cli 0.1.56 → 0.1.58
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/README.md +1 -1
- package/dist/bin.js +1 -1
- package/dist/{chunk-HNFWXGDN.js → chunk-XFL3XJWI.js} +579 -76
- package/dist/index.js +7 -1
- package/package.json +1 -1
- package/src/apps/product-cli/package.json +1 -1
- package/src/apps/product-cli/src/cli.ts +150 -11
- package/src/apps/product-cli/src/command.ts +185 -4
- package/src/apps/product-cli/src/product-api.ts +126 -3
- package/src/apps/product-cli/src/repository-init.ts +8 -0
- package/src/apps/product-cli/src/runtime-contract.ts +43 -5
- package/src/apps/product-cli/src/user-token-file.ts +73 -0
- package/src/packages/contracts/package.json +5 -0
- package/src/packages/contracts/src/credit-pricing.ts +1 -1
- package/src/packages/contracts/src/database-events.ts +67 -0
- package/src/packages/contracts/src/framework-admission.ts +5 -4
- package/src/packages/contracts/src/framework-source-rules.ts +9 -2
- package/src/packages/contracts/src/index.ts +9 -0
- package/src/packages/contracts/src/operation-deployment-result.ts +121 -1
- package/src/packages/contracts/src/operation-failure.ts +72 -1
- package/src/packages/contracts/src/problem-policy.ts +13 -1
- package/src/packages/contracts/src/secret-names.ts +3 -2
- package/src/packages/contracts/src/signup-attribution.ts +15 -0
- package/src/packages/sdk-ts/package.json +1 -1
- package/src/packages/sdk-ts/src/generated/index.ts +30 -0
- package/src/packages/sdk-ts/src/generated/sdk.gen.ts +230 -3
- package/src/packages/sdk-ts/src/generated/types.gen.ts +376 -1
|
@@ -7126,9 +7126,9 @@ var require_pako = __commonJS({
|
|
|
7126
7126
|
var assign = require_common().assign;
|
|
7127
7127
|
var deflate = require_deflate2();
|
|
7128
7128
|
var inflate = require_inflate2();
|
|
7129
|
-
var
|
|
7129
|
+
var constants5 = require_constants();
|
|
7130
7130
|
var pako = {};
|
|
7131
|
-
assign(pako, deflate, inflate,
|
|
7131
|
+
assign(pako, deflate, inflate, constants5);
|
|
7132
7132
|
module.exports = pako;
|
|
7133
7133
|
}
|
|
7134
7134
|
});
|
|
@@ -8944,19 +8944,19 @@ If you're a developer and you believe this is a bug in isomorphic-git, please fi
|
|
|
8944
8944
|
if (!path2.length) return ".";
|
|
8945
8945
|
path2 = path2.replace(/\\/g, "/");
|
|
8946
8946
|
const drivePrefix = getWindowsDrivePrefix(path2);
|
|
8947
|
-
const
|
|
8947
|
+
const isAbsolute4 = path2[0] === "/" || drivePrefix !== null && path2[2] === "/";
|
|
8948
8948
|
const trailingSeparator = path2.at(-1) === "/";
|
|
8949
8949
|
const pathBody = drivePrefix ? path2.slice(2) : path2;
|
|
8950
|
-
let normalized = normalizeString(pathBody, !
|
|
8950
|
+
let normalized = normalizeString(pathBody, !isAbsolute4);
|
|
8951
8951
|
if (!normalized.length) {
|
|
8952
|
-
const root = drivePrefix ?
|
|
8953
|
-
return trailingSeparator && !
|
|
8952
|
+
const root = drivePrefix ? isAbsolute4 ? drivePrefix + "/" : drivePrefix : isAbsolute4 ? "/" : ".";
|
|
8953
|
+
return trailingSeparator && !isAbsolute4 ? root + "/" : root;
|
|
8954
8954
|
}
|
|
8955
8955
|
if (trailingSeparator) normalized += "/";
|
|
8956
8956
|
if (drivePrefix) {
|
|
8957
|
-
return
|
|
8957
|
+
return isAbsolute4 ? `${drivePrefix}/${normalized}` : `${drivePrefix}${normalized}`;
|
|
8958
8958
|
}
|
|
8959
|
-
return
|
|
8959
|
+
return isAbsolute4 ? `/${normalized}` : normalized;
|
|
8960
8960
|
}
|
|
8961
8961
|
function join7(...args) {
|
|
8962
8962
|
if (args.length === 0) return ".";
|
|
@@ -12039,7 +12039,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
|
|
|
12039
12039
|
throw new MissingParameterError(name);
|
|
12040
12040
|
}
|
|
12041
12041
|
}
|
|
12042
|
-
function
|
|
12042
|
+
function isAbsolute3(filepath) {
|
|
12043
12043
|
return filepath.startsWith("/") || /^[a-zA-Z]:[\\/]/.test(filepath);
|
|
12044
12044
|
}
|
|
12045
12045
|
async function discoverGitdir({ fsp, dotgit }) {
|
|
@@ -12050,7 +12050,7 @@ ${obj.gpgsig ? obj.gpgsig : ""}`;
|
|
|
12050
12050
|
return dotgit;
|
|
12051
12051
|
} else if (dotgitStat.isFile()) {
|
|
12052
12052
|
return fsp._readFile(dotgit, "utf8").then((contents) => contents.trimRight().substr(8)).then((submoduleGitdir) => {
|
|
12053
|
-
if (
|
|
12053
|
+
if (isAbsolute3(submoduleGitdir)) {
|
|
12054
12054
|
return submoduleGitdir;
|
|
12055
12055
|
}
|
|
12056
12056
|
const gitdir = join7(dirname4(dotgit), submoduleGitdir);
|
|
@@ -20103,11 +20103,11 @@ var require_codegen = __commonJS({
|
|
|
20103
20103
|
const rhs = this.rhs === void 0 ? "" : ` = ${this.rhs}`;
|
|
20104
20104
|
return `${varKind} ${this.name}${rhs};` + _n;
|
|
20105
20105
|
}
|
|
20106
|
-
optimizeNames(names,
|
|
20106
|
+
optimizeNames(names, constants5) {
|
|
20107
20107
|
if (!names[this.name.str])
|
|
20108
20108
|
return;
|
|
20109
20109
|
if (this.rhs)
|
|
20110
|
-
this.rhs = optimizeExpr(this.rhs, names,
|
|
20110
|
+
this.rhs = optimizeExpr(this.rhs, names, constants5);
|
|
20111
20111
|
return this;
|
|
20112
20112
|
}
|
|
20113
20113
|
get names() {
|
|
@@ -20124,10 +20124,10 @@ var require_codegen = __commonJS({
|
|
|
20124
20124
|
render({ _n }) {
|
|
20125
20125
|
return `${this.lhs} = ${this.rhs};` + _n;
|
|
20126
20126
|
}
|
|
20127
|
-
optimizeNames(names,
|
|
20127
|
+
optimizeNames(names, constants5) {
|
|
20128
20128
|
if (this.lhs instanceof code_1.Name && !names[this.lhs.str] && !this.sideEffects)
|
|
20129
20129
|
return;
|
|
20130
|
-
this.rhs = optimizeExpr(this.rhs, names,
|
|
20130
|
+
this.rhs = optimizeExpr(this.rhs, names, constants5);
|
|
20131
20131
|
return this;
|
|
20132
20132
|
}
|
|
20133
20133
|
get names() {
|
|
@@ -20188,8 +20188,8 @@ var require_codegen = __commonJS({
|
|
|
20188
20188
|
optimizeNodes() {
|
|
20189
20189
|
return `${this.code}` ? this : void 0;
|
|
20190
20190
|
}
|
|
20191
|
-
optimizeNames(names,
|
|
20192
|
-
this.code = optimizeExpr(this.code, names,
|
|
20191
|
+
optimizeNames(names, constants5) {
|
|
20192
|
+
this.code = optimizeExpr(this.code, names, constants5);
|
|
20193
20193
|
return this;
|
|
20194
20194
|
}
|
|
20195
20195
|
get names() {
|
|
@@ -20218,12 +20218,12 @@ var require_codegen = __commonJS({
|
|
|
20218
20218
|
}
|
|
20219
20219
|
return nodes.length > 0 ? this : void 0;
|
|
20220
20220
|
}
|
|
20221
|
-
optimizeNames(names,
|
|
20221
|
+
optimizeNames(names, constants5) {
|
|
20222
20222
|
const { nodes } = this;
|
|
20223
20223
|
let i = nodes.length;
|
|
20224
20224
|
while (i--) {
|
|
20225
20225
|
const n = nodes[i];
|
|
20226
|
-
if (n.optimizeNames(names,
|
|
20226
|
+
if (n.optimizeNames(names, constants5))
|
|
20227
20227
|
continue;
|
|
20228
20228
|
subtractNames(names, n.names);
|
|
20229
20229
|
nodes.splice(i, 1);
|
|
@@ -20276,12 +20276,12 @@ var require_codegen = __commonJS({
|
|
|
20276
20276
|
return void 0;
|
|
20277
20277
|
return this;
|
|
20278
20278
|
}
|
|
20279
|
-
optimizeNames(names,
|
|
20279
|
+
optimizeNames(names, constants5) {
|
|
20280
20280
|
var _a;
|
|
20281
|
-
this.else = (_a = this.else) === null || _a === void 0 ? void 0 : _a.optimizeNames(names,
|
|
20282
|
-
if (!(super.optimizeNames(names,
|
|
20281
|
+
this.else = (_a = this.else) === null || _a === void 0 ? void 0 : _a.optimizeNames(names, constants5);
|
|
20282
|
+
if (!(super.optimizeNames(names, constants5) || this.else))
|
|
20283
20283
|
return;
|
|
20284
|
-
this.condition = optimizeExpr(this.condition, names,
|
|
20284
|
+
this.condition = optimizeExpr(this.condition, names, constants5);
|
|
20285
20285
|
return this;
|
|
20286
20286
|
}
|
|
20287
20287
|
get names() {
|
|
@@ -20304,10 +20304,10 @@ var require_codegen = __commonJS({
|
|
|
20304
20304
|
render(opts) {
|
|
20305
20305
|
return `for(${this.iteration})` + super.render(opts);
|
|
20306
20306
|
}
|
|
20307
|
-
optimizeNames(names,
|
|
20308
|
-
if (!super.optimizeNames(names,
|
|
20307
|
+
optimizeNames(names, constants5) {
|
|
20308
|
+
if (!super.optimizeNames(names, constants5))
|
|
20309
20309
|
return;
|
|
20310
|
-
this.iteration = optimizeExpr(this.iteration, names,
|
|
20310
|
+
this.iteration = optimizeExpr(this.iteration, names, constants5);
|
|
20311
20311
|
return this;
|
|
20312
20312
|
}
|
|
20313
20313
|
get names() {
|
|
@@ -20343,10 +20343,10 @@ var require_codegen = __commonJS({
|
|
|
20343
20343
|
render(opts) {
|
|
20344
20344
|
return `for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})` + super.render(opts);
|
|
20345
20345
|
}
|
|
20346
|
-
optimizeNames(names,
|
|
20347
|
-
if (!super.optimizeNames(names,
|
|
20346
|
+
optimizeNames(names, constants5) {
|
|
20347
|
+
if (!super.optimizeNames(names, constants5))
|
|
20348
20348
|
return;
|
|
20349
|
-
this.iterable = optimizeExpr(this.iterable, names,
|
|
20349
|
+
this.iterable = optimizeExpr(this.iterable, names, constants5);
|
|
20350
20350
|
return this;
|
|
20351
20351
|
}
|
|
20352
20352
|
get names() {
|
|
@@ -20388,11 +20388,11 @@ var require_codegen = __commonJS({
|
|
|
20388
20388
|
(_b = this.finally) === null || _b === void 0 ? void 0 : _b.optimizeNodes();
|
|
20389
20389
|
return this;
|
|
20390
20390
|
}
|
|
20391
|
-
optimizeNames(names,
|
|
20391
|
+
optimizeNames(names, constants5) {
|
|
20392
20392
|
var _a, _b;
|
|
20393
|
-
super.optimizeNames(names,
|
|
20394
|
-
(_a = this.catch) === null || _a === void 0 ? void 0 : _a.optimizeNames(names,
|
|
20395
|
-
(_b = this.finally) === null || _b === void 0 ? void 0 : _b.optimizeNames(names,
|
|
20393
|
+
super.optimizeNames(names, constants5);
|
|
20394
|
+
(_a = this.catch) === null || _a === void 0 ? void 0 : _a.optimizeNames(names, constants5);
|
|
20395
|
+
(_b = this.finally) === null || _b === void 0 ? void 0 : _b.optimizeNames(names, constants5);
|
|
20396
20396
|
return this;
|
|
20397
20397
|
}
|
|
20398
20398
|
get names() {
|
|
@@ -20693,7 +20693,7 @@ var require_codegen = __commonJS({
|
|
|
20693
20693
|
function addExprNames(names, from) {
|
|
20694
20694
|
return from instanceof code_1._CodeOrName ? addNames(names, from.names) : names;
|
|
20695
20695
|
}
|
|
20696
|
-
function optimizeExpr(expr, names,
|
|
20696
|
+
function optimizeExpr(expr, names, constants5) {
|
|
20697
20697
|
if (expr instanceof code_1.Name)
|
|
20698
20698
|
return replaceName(expr);
|
|
20699
20699
|
if (!canOptimize(expr))
|
|
@@ -20708,14 +20708,14 @@ var require_codegen = __commonJS({
|
|
|
20708
20708
|
return items;
|
|
20709
20709
|
}, []));
|
|
20710
20710
|
function replaceName(n) {
|
|
20711
|
-
const c =
|
|
20711
|
+
const c = constants5[n.str];
|
|
20712
20712
|
if (c === void 0 || names[n.str] !== 1)
|
|
20713
20713
|
return n;
|
|
20714
20714
|
delete names[n.str];
|
|
20715
20715
|
return c;
|
|
20716
20716
|
}
|
|
20717
20717
|
function canOptimize(e) {
|
|
20718
|
-
return e instanceof code_1._Code && e._items.some((c) => c instanceof code_1.Name && names[c.str] === 1 &&
|
|
20718
|
+
return e instanceof code_1._Code && e._items.some((c) => c instanceof code_1.Name && names[c.str] === 1 && constants5[c.str] !== void 0);
|
|
20719
20719
|
}
|
|
20720
20720
|
}
|
|
20721
20721
|
function subtractNames(names, from) {
|
|
@@ -38651,8 +38651,8 @@ var FRAMEWORK_CONVERSION_DETAILS = Object.freeze({
|
|
|
38651
38651
|
from: "framework",
|
|
38652
38652
|
text: {
|
|
38653
38653
|
nextjs: "runtime.mode: edge",
|
|
38654
|
-
"vite-static": "runtime.mode: edge with src/ohmyhost/companion.ts when database, auth, mail, ai, storage or functions.crons is set, and static otherwise",
|
|
38655
|
-
"tanstack-start": "runtime.mode: edge, or static without functions.crons, storage and
|
|
38654
|
+
"vite-static": "runtime.mode: edge with src/ohmyhost/companion.ts when database, auth, mail, ai, browser, storage or functions.crons is set, and static otherwise",
|
|
38655
|
+
"tanstack-start": "runtime.mode: edge, or static without functions.crons, storage, ai and browser",
|
|
38656
38656
|
astro: "runtime.mode: static for prerendered sites, or edge with the Cloudflare adapter"
|
|
38657
38657
|
}
|
|
38658
38658
|
}
|
|
@@ -38681,7 +38681,7 @@ var FRAMEWORK_CONVERSION_DETAILS = Object.freeze({
|
|
|
38681
38681
|
},
|
|
38682
38682
|
build_option_unsupported: {
|
|
38683
38683
|
paths: ["repository_config"],
|
|
38684
|
-
template: '"{{path}}" sets a build option this runtime ignores: build.ssg_cache_max_mib
|
|
38684
|
+
template: '"{{path}}" sets a build option this runtime ignores: build.ssg_cache_max_mib and build.next_revalidate_path apply only to Next.js, and runtime.mode: functions takes only build.install. Remove the option, commit and push the change, then plan the new commit.'
|
|
38685
38685
|
},
|
|
38686
38686
|
application_root_missing: {
|
|
38687
38687
|
paths: ["repository_config"],
|
|
@@ -38713,7 +38713,7 @@ var FRAMEWORK_CONVERSION_DETAILS = Object.freeze({
|
|
|
38713
38713
|
},
|
|
38714
38714
|
companion_entry_required: {
|
|
38715
38715
|
paths: ["module"],
|
|
38716
|
-
template: '"{{path}}" is missing. A Vite app with runtime.mode: edge or with database, auth, mail, ai, storage or functions.crons needs this Worker module with export default { fetch }. Add it, or use runtime.mode: static without those settings; commit and push the change, then plan the new commit.'
|
|
38716
|
+
template: '"{{path}}" is missing. A Vite app with runtime.mode: edge or with database, auth, mail, ai, browser, storage or functions.crons needs this Worker module with export default { fetch }. Add it, or use runtime.mode: static without those settings; commit and push the change, then plan the new commit.'
|
|
38717
38717
|
},
|
|
38718
38718
|
worker_module_required: {
|
|
38719
38719
|
paths: ["module"],
|
|
@@ -38991,6 +38991,24 @@ var failures = {
|
|
|
38991
38991
|
"Read the current source to confirm it did not change, then submit the change again with a new idempotency key."
|
|
38992
38992
|
]
|
|
38993
38993
|
};
|
|
38994
|
+
function parseMigrationFailureDiagnostic(value) {
|
|
38995
|
+
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
38996
|
+
return null;
|
|
38997
|
+
const r = value;
|
|
38998
|
+
if (Object.keys(r).some((key) => !["reason", "file", "statement_index", "sqlstate"].includes(key)) || !["catalog_changed", "execution_failed", "ledger_conflict", "not_admitted"].includes(String(r["reason"])) || !(r["file"] === null || typeof r["file"] === "string" && r["file"].length <= 512 && /^(?:[A-Za-z0-9][A-Za-z0-9._-]*\/)*\d{14}_[a-z0-9][a-z0-9_-]*\.sql$/u.test(r["file"])))
|
|
38999
|
+
return null;
|
|
39000
|
+
const ordinal = r["statement_index"], state = r["sqlstate"];
|
|
39001
|
+
if (Object.hasOwn(r, "statement_index") && ordinal === void 0 || Object.hasOwn(r, "sqlstate") && state === void 0)
|
|
39002
|
+
return null;
|
|
39003
|
+
if (ordinal === void 0 !== (state === void 0) || ordinal !== void 0 && (r["reason"] !== "execution_failed" || r["file"] === null || typeof ordinal !== "number" || !Number.isSafeInteger(ordinal) || ordinal < 1) || state !== void 0 && (ordinal === void 0 || typeof state !== "string" || !/^[0-9A-Z]{5}$/u.test(state) || state.startsWith("08") || /^57P0[123]$/u.test(state)))
|
|
39004
|
+
return null;
|
|
39005
|
+
return Object.freeze({
|
|
39006
|
+
reason: r["reason"],
|
|
39007
|
+
file: r["file"],
|
|
39008
|
+
...ordinal === void 0 ? {} : { statement_index: ordinal },
|
|
39009
|
+
...state === void 0 ? {} : { sqlstate: state }
|
|
39010
|
+
});
|
|
39011
|
+
}
|
|
38994
39012
|
function publicOperationReconciliation(observation) {
|
|
38995
39013
|
if (!["required", "pending"].includes(observation.state) || !Number.isFinite(Date.parse(observation.observed_at)) || (observation.state === "required" ? observation.attempt_id !== null : typeof observation.attempt_id !== "string" || !/^[0-7][0-9A-HJKMNP-TV-Z]{25}$/u.test(observation.attempt_id)))
|
|
38996
39014
|
throw new TypeError("Operation reconciliation observation is invalid");
|
|
@@ -39006,12 +39024,14 @@ function publicOperationFailure(internalCode, diagnostic2) {
|
|
|
39006
39024
|
const code = Object.hasOwn(failures, normalized) ? normalized : "operation_failed";
|
|
39007
39025
|
const [message, suggested_action] = failures[code];
|
|
39008
39026
|
const detail = code === "auto_deploy_plan_rejected" ? frameworkConversionDetail(diagnostic2) : null;
|
|
39027
|
+
const migration = code === "database_migration_failed" ? parseMigrationFailureDiagnostic(diagnostic2) : null;
|
|
39009
39028
|
return Object.freeze({
|
|
39010
39029
|
code,
|
|
39011
39030
|
message,
|
|
39012
39031
|
retryable: false,
|
|
39013
39032
|
suggested_action,
|
|
39014
|
-
...detail === null ? {} : { detail }
|
|
39033
|
+
...detail === null ? {} : { detail },
|
|
39034
|
+
...migration === null ? {} : { migration }
|
|
39015
39035
|
});
|
|
39016
39036
|
}
|
|
39017
39037
|
|
|
@@ -40036,6 +40056,9 @@ function createOperationDeploymentProgress(input) {
|
|
|
40036
40056
|
invalid3();
|
|
40037
40057
|
if (input.build_completed_at !== void 0 && (!Number.isFinite(Date.parse(input.build_completed_at)) || new Date(input.build_completed_at).toISOString() !== input.build_completed_at))
|
|
40038
40058
|
invalid3();
|
|
40059
|
+
const mail = input.mail === void 0 ? void 0 : parseDeploymentMailProgress(input.mail);
|
|
40060
|
+
if (mail !== void 0 && input.phase !== "waiting_for_mail")
|
|
40061
|
+
invalid3();
|
|
40039
40062
|
return Object.freeze({
|
|
40040
40063
|
...input.build_completed_at === void 0 ? {} : { build_completed_at: input.build_completed_at },
|
|
40041
40064
|
phase: input.phase,
|
|
@@ -40043,8 +40066,49 @@ function createOperationDeploymentProgress(input) {
|
|
|
40043
40066
|
deployment_id: input.deployment_id,
|
|
40044
40067
|
observed_at: input.observed_at,
|
|
40045
40068
|
next_poll_after_seconds: 60,
|
|
40046
|
-
suggested_action: deploymentProgressActions[input.phase].replace("PROJECT", project)
|
|
40069
|
+
suggested_action: mail === void 0 || mail.dns_records.length === 0 ? deploymentProgressActions[input.phase].replace("PROJECT", project) : "Follow the mail readiness and DNS records shown here, then poll this same operation. Do not rebuild or repeat correct DNS changes.",
|
|
40070
|
+
...mail === void 0 ? {} : { mail }
|
|
40071
|
+
});
|
|
40072
|
+
}
|
|
40073
|
+
function parseDeploymentMailProgress(value) {
|
|
40074
|
+
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
40075
|
+
invalid3();
|
|
40076
|
+
const raw = value;
|
|
40077
|
+
const keys = ["domain", "status", "configured_at", "dns_records"];
|
|
40078
|
+
for (const optional of [
|
|
40079
|
+
"observed_at",
|
|
40080
|
+
"verification_issue",
|
|
40081
|
+
"next_check_after_seconds",
|
|
40082
|
+
"sending",
|
|
40083
|
+
"receiving"
|
|
40084
|
+
])
|
|
40085
|
+
if (raw[optional] !== void 0)
|
|
40086
|
+
keys.push(optional);
|
|
40087
|
+
const row = exactRecord(raw, keys), time3 = (v) => typeof v === "string" && Number.isFinite(Date.parse(v)) && new Date(v).toISOString() === v, state = ["disabled", "pending", "ready", "failed"];
|
|
40088
|
+
if (typeof row["domain"] !== "string" || row["domain"].length > 253 || !/^[a-z0-9.-]+$/u.test(row["domain"]) || ![
|
|
40089
|
+
"configured",
|
|
40090
|
+
"delegation_required",
|
|
40091
|
+
"ready",
|
|
40092
|
+
"verification_pending",
|
|
40093
|
+
"verification_failed"
|
|
40094
|
+
].includes(String(row["status"])) || !time3(row["configured_at"]) || row["observed_at"] !== void 0 && !time3(row["observed_at"]) || row["verification_issue"] !== void 0 && row["verification_issue"] !== null && ![
|
|
40095
|
+
"identity_missing",
|
|
40096
|
+
"identity_verification_failed",
|
|
40097
|
+
"dkim_verification_failed",
|
|
40098
|
+
"dkim_records_changed",
|
|
40099
|
+
"tenant_association_missing"
|
|
40100
|
+
].includes(String(row["verification_issue"])) || row["next_check_after_seconds"] !== void 0 && ![60, 3600, null].includes(row["next_check_after_seconds"]) || row["sending"] !== void 0 && !state.includes(String(row["sending"])) || row["receiving"] !== void 0 && !state.includes(String(row["receiving"])) || !Array.isArray(row["dns_records"]) || row["dns_records"].length > 16)
|
|
40101
|
+
invalid3();
|
|
40102
|
+
const records2 = row["dns_records"].map((value2) => {
|
|
40103
|
+
if (typeof value2 !== "object" || value2 === null || Array.isArray(value2))
|
|
40104
|
+
invalid3();
|
|
40105
|
+
const item = value2;
|
|
40106
|
+
const record8 = exactRecord(item, item["priority"] === void 0 ? ["type", "name", "value", "status"] : ["type", "name", "value", "status", "priority"]);
|
|
40107
|
+
if (!["MX", "TXT", "CNAME"].includes(String(record8["type"])) || typeof record8["name"] !== "string" || record8["name"].length === 0 || record8["name"].length > 253 || /[\r\n\0]/u.test(record8["name"]) || !(record8["name"] === row["domain"] || record8["name"].endsWith(`.${row["domain"]}`)) || typeof record8["value"] !== "string" || record8["value"].length === 0 || record8["value"].length > 4096 || /[\r\n\0]/u.test(record8["value"]) || typeof record8["status"] !== "string" || record8["status"].length === 0 || record8["status"].length > 32 || /[\r\n\0]/u.test(record8["status"]) || record8["type"] === "MX" && (!Number.isSafeInteger(record8["priority"]) || Number(record8["priority"]) < 0 || Number(record8["priority"]) > 65535) || record8["type"] !== "MX" && record8["priority"] !== void 0)
|
|
40108
|
+
invalid3();
|
|
40109
|
+
return Object.freeze({ ...record8 });
|
|
40047
40110
|
});
|
|
40111
|
+
return Object.freeze({ ...row, dns_records: records2 });
|
|
40048
40112
|
}
|
|
40049
40113
|
function parseOperationDeploymentProgress(value) {
|
|
40050
40114
|
const keys = [
|
|
@@ -40057,13 +40121,16 @@ function parseOperationDeploymentProgress(value) {
|
|
|
40057
40121
|
];
|
|
40058
40122
|
if (typeof value === "object" && value !== null && Object.hasOwn(value, "build_completed_at"))
|
|
40059
40123
|
keys.push("build_completed_at");
|
|
40124
|
+
if (typeof value === "object" && value !== null && Object.hasOwn(value, "mail"))
|
|
40125
|
+
keys.push("mail");
|
|
40060
40126
|
const row = exactRecord(value, keys);
|
|
40061
40127
|
const parsed = createOperationDeploymentProgress({
|
|
40062
40128
|
...row["build_completed_at"] === void 0 ? {} : { build_completed_at: row["build_completed_at"] },
|
|
40063
40129
|
phase: row["phase"],
|
|
40064
40130
|
project_id: row["project_id"],
|
|
40065
40131
|
deployment_id: row["deployment_id"],
|
|
40066
|
-
observed_at: row["observed_at"]
|
|
40132
|
+
observed_at: row["observed_at"],
|
|
40133
|
+
...row["mail"] === void 0 ? {} : { mail: parseDeploymentMailProgress(row["mail"]) }
|
|
40067
40134
|
});
|
|
40068
40135
|
if (row["next_poll_after_seconds"] !== 60 || row["suggested_action"] !== parsed.suggested_action)
|
|
40069
40136
|
invalid3();
|
|
@@ -40454,9 +40521,21 @@ var PROBLEM_POLICY = {
|
|
|
40454
40521
|
shared_data_requires_promotion: {
|
|
40455
40522
|
status: 409,
|
|
40456
40523
|
retryable: false,
|
|
40457
|
-
action: "
|
|
40524
|
+
action: "This is a legacy deployment restriction. Update the CLI and MCP to the current release, then plan with environment prod. The current platform permits direct Prod deployment with shared data; its migrations affect both environments when Dev exists. If the restriction persists, report the request ID.",
|
|
40458
40525
|
title: "Shared data requires promotion"
|
|
40459
40526
|
},
|
|
40527
|
+
development_environment_exists: {
|
|
40528
|
+
status: 409,
|
|
40529
|
+
retryable: false,
|
|
40530
|
+
action: "Read project status and use the existing Dev environment ID.",
|
|
40531
|
+
title: "Development environment already exists"
|
|
40532
|
+
},
|
|
40533
|
+
development_environment_missing: {
|
|
40534
|
+
status: 409,
|
|
40535
|
+
retryable: false,
|
|
40536
|
+
action: "Select environment prod, or add Dev with 'ohmyhost project dev add'.",
|
|
40537
|
+
title: "Development environment is missing"
|
|
40538
|
+
},
|
|
40460
40539
|
production_deployment_required: {
|
|
40461
40540
|
status: 409,
|
|
40462
40541
|
retryable: false,
|
|
@@ -41081,7 +41160,8 @@ var parseProjectStatus = (value) => {
|
|
|
41081
41160
|
"dev_url",
|
|
41082
41161
|
"prod_url",
|
|
41083
41162
|
"latest_operation",
|
|
41084
|
-
"cleanup_state"
|
|
41163
|
+
"cleanup_state",
|
|
41164
|
+
"custom_domains"
|
|
41085
41165
|
]);
|
|
41086
41166
|
const handle = input["handle"];
|
|
41087
41167
|
if (!isUlid(input["project_id"]) || typeof input["etag"] !== "string" || !/^"sha256-[a-f0-9]{64}"$/u.test(input["etag"]) || !boundedString(handle, 3, 59) || !/^[a-z0-9]+(?:-[a-z0-9]+){0,4}$/u.test(handle) || input["region"] !== "us" && input["region"] !== "eu" || input["dev_access_mode"] !== "protected" && input["dev_access_mode"] !== "public" || input["lifecycle"] !== "active" && input["lifecycle"] !== "deleting" && input["lifecycle"] !== "deleted" || input["dev_url"] !== null && ![`https://dev-${handle}.dev.check.omh.st`, `https://dev-${handle}.check.omh.st`].includes(String(input["dev_url"])) || input["prod_url"] !== null && ![`https://${handle}.dev.check.omh.st`, `https://${handle}.check.omh.st`].includes(String(input["prod_url"])) || input["cleanup_state"] !== "not_started" && input["cleanup_state"] !== "pending" && input["cleanup_state"] !== "completed" && input["cleanup_state"] !== "reconciliation_required") {
|
|
@@ -41097,6 +41177,15 @@ var parseProjectStatus = (value) => {
|
|
|
41097
41177
|
}
|
|
41098
41178
|
if (input["head_deployment"] !== null)
|
|
41099
41179
|
parseProjectDeployment(input["head_deployment"]);
|
|
41180
|
+
if (input["custom_domains"] !== void 0) {
|
|
41181
|
+
if (!Array.isArray(input["custom_domains"]) || input["custom_domains"].length > 64)
|
|
41182
|
+
throw new ResponseContractError();
|
|
41183
|
+
for (const raw of input["custom_domains"]) {
|
|
41184
|
+
const domain2 = exactRecord2(raw, ["hostname", "environment", "state"]);
|
|
41185
|
+
if (!isPaidHostname(domain2["hostname"]) || domain2["environment"] !== "prod" || !["awaiting_deployment", "pending", "active", "deleting"].includes(String(domain2["state"])))
|
|
41186
|
+
throw new ResponseContractError();
|
|
41187
|
+
}
|
|
41188
|
+
}
|
|
41100
41189
|
if (input["environments"] !== void 0) {
|
|
41101
41190
|
const environments = input["environments"];
|
|
41102
41191
|
if (!Array.isArray(environments) || environments.length > 2)
|
|
@@ -41467,13 +41556,22 @@ var parseOperation = (value) => {
|
|
|
41467
41556
|
};
|
|
41468
41557
|
};
|
|
41469
41558
|
function parseOperationFailure(value) {
|
|
41470
|
-
const input = exactRecord2(value, [
|
|
41559
|
+
const input = exactRecord2(value, [
|
|
41560
|
+
"code",
|
|
41561
|
+
"message",
|
|
41562
|
+
"retryable",
|
|
41563
|
+
"suggested_action",
|
|
41564
|
+
"detail",
|
|
41565
|
+
"migration"
|
|
41566
|
+
]);
|
|
41471
41567
|
const detail = input["detail"];
|
|
41472
|
-
const
|
|
41473
|
-
|
|
41568
|
+
const framework = detail === void 0 || input["code"] !== "auto_deploy_plan_rejected" ? null : frameworkConversionDiagnosticFromDetail(detail);
|
|
41569
|
+
const migration = input["migration"] === void 0 ? null : parseMigrationFailureDiagnostic(input["migration"]);
|
|
41570
|
+
const normalize = (value2) => JSON.stringify(Object.fromEntries(Object.entries(value2).sort(([a], [b]) => a.localeCompare(b))));
|
|
41571
|
+
if (typeof input["code"] !== "string" || !boundedString(input["message"], 1, 512) || input["retryable"] !== false || !boundedString(input["suggested_action"], 1, 500) || detail !== void 0 && framework === null || input["migration"] !== void 0 && (input["code"] !== "database_migration_failed" || migration === null || normalize(input["migration"]) !== normalize(migration)))
|
|
41474
41572
|
throw new ResponseContractError();
|
|
41475
|
-
const safe = publicOperationFailure(input["code"],
|
|
41476
|
-
if (safe.code !== input["code"] || safe.detail !== detail)
|
|
41573
|
+
const safe = publicOperationFailure(input["code"], migration ?? framework);
|
|
41574
|
+
if (safe.code !== input["code"] || safe.detail !== detail || JSON.stringify(safe.migration) !== JSON.stringify(migration ?? void 0))
|
|
41477
41575
|
throw new ResponseContractError();
|
|
41478
41576
|
return safe;
|
|
41479
41577
|
}
|
|
@@ -41999,6 +42097,53 @@ var UserTokenFileError = class extends Error {
|
|
|
41999
42097
|
this.keyId = keyId;
|
|
42000
42098
|
}
|
|
42001
42099
|
};
|
|
42100
|
+
var PrivateSecretFileError = class extends Error {
|
|
42101
|
+
code = "private_output_invalid";
|
|
42102
|
+
constructor() {
|
|
42103
|
+
super("Choose a new private output file outside the repository or ignored by Git. Existing files and links are never replaced. After an uncertain activation, retry the same key and request with a new output file.");
|
|
42104
|
+
}
|
|
42105
|
+
};
|
|
42106
|
+
async function preparePrivateSecretFile(output) {
|
|
42107
|
+
const path2 = resolve3(output);
|
|
42108
|
+
let file;
|
|
42109
|
+
try {
|
|
42110
|
+
await requireIgnoredTokenFile(path2);
|
|
42111
|
+
file = await open(path2, constants3.O_RDWR | constants3.O_CREAT | constants3.O_EXCL | (constants3.O_NOFOLLOW ?? 0), 384);
|
|
42112
|
+
const handle = file;
|
|
42113
|
+
await secureTokenFile(path2, handle);
|
|
42114
|
+
const identity = await handle.stat();
|
|
42115
|
+
if (!identity.isFile() || identity.nlink !== 1 || identity.size !== 0)
|
|
42116
|
+
throw new PrivateSecretFileError();
|
|
42117
|
+
return {
|
|
42118
|
+
path: path2,
|
|
42119
|
+
async save(value) {
|
|
42120
|
+
try {
|
|
42121
|
+
if (!/^[\x21-\x7e]{16,512}$/u.test(value))
|
|
42122
|
+
throw new PrivateSecretFileError();
|
|
42123
|
+
const current = await lstat(path2), before = await handle.stat();
|
|
42124
|
+
if (!current.isFile() || current.isSymbolicLink() || current.nlink !== 1 || current.ino !== identity.ino || current.dev !== identity.dev || before.size !== 0)
|
|
42125
|
+
throw new PrivateSecretFileError();
|
|
42126
|
+
await handle.writeFile(value, "utf8");
|
|
42127
|
+
await handle.sync();
|
|
42128
|
+
const after = await lstat(path2), stored = Buffer.alloc(Buffer.byteLength(value));
|
|
42129
|
+
try {
|
|
42130
|
+
const read = await handle.read(stored, 0, stored.length, 0);
|
|
42131
|
+
if (!after.isFile() || after.isSymbolicLink() || after.nlink !== 1 || after.ino !== identity.ino || after.dev !== identity.dev || after.size !== stored.length || read.bytesRead !== stored.length || stored.toString("utf8") !== value)
|
|
42132
|
+
throw new PrivateSecretFileError();
|
|
42133
|
+
} finally {
|
|
42134
|
+
stored.fill(0);
|
|
42135
|
+
}
|
|
42136
|
+
} catch {
|
|
42137
|
+
throw new PrivateSecretFileError();
|
|
42138
|
+
}
|
|
42139
|
+
},
|
|
42140
|
+
close: () => handle.close()
|
|
42141
|
+
};
|
|
42142
|
+
} catch {
|
|
42143
|
+
await file?.close();
|
|
42144
|
+
throw new PrivateSecretFileError();
|
|
42145
|
+
}
|
|
42146
|
+
}
|
|
42002
42147
|
var tokenFileAction = (code, keyId) => {
|
|
42003
42148
|
switch (code) {
|
|
42004
42149
|
case "token_file_not_ignored":
|
|
@@ -42524,6 +42669,7 @@ var INSTALLED_PLATFORM_KEY_NAMES = [
|
|
|
42524
42669
|
"OHMYHOST_STORAGE_KEY",
|
|
42525
42670
|
"OHMYHOST_MAIL_KEY",
|
|
42526
42671
|
"OHMYHOST_AI_KEY",
|
|
42672
|
+
"OHMYHOST_BROWSER_KEY",
|
|
42527
42673
|
"BETTER_AUTH_SECRET"
|
|
42528
42674
|
];
|
|
42529
42675
|
var INSTALLED_PLATFORM_KEYS = new Set(INSTALLED_PLATFORM_KEY_NAMES);
|
|
@@ -42729,6 +42875,23 @@ function assertDatabaseWebhook(value) {
|
|
|
42729
42875
|
throw new TypeError("Invalid database webhook");
|
|
42730
42876
|
assertWebhookFields(value);
|
|
42731
42877
|
}
|
|
42878
|
+
var SUBSCRIPTION_KEYS = ["id", "environment", "state", "generation", "provider_id"];
|
|
42879
|
+
function assertSubscriptionFields(value) {
|
|
42880
|
+
if (!matches(value["id"], /^[0-7][0-9A-HJKMNP-TV-Z]{25}$/u) || !oneOf(["dev", "prod"], value["environment"]) || !oneOf(["creating", "active", "deactivating", "inactive"], value["state"]) || !Number.isSafeInteger(value["generation"]) || Number(value["generation"]) < 1 || !(value["provider_id"] === null || matches(value["provider_id"], WEBHOOK_ID_PATTERN)) || value["state"] === "creating" && value["provider_id"] !== null || (value["state"] === "active" || value["state"] === "deactivating") && value["provider_id"] === null)
|
|
42881
|
+
throw new TypeError("Invalid database webhook subscription");
|
|
42882
|
+
}
|
|
42883
|
+
function assertDatabaseWebhookSubscription(value) {
|
|
42884
|
+
if (!record2(value) || !exact2(value, SUBSCRIPTION_KEYS))
|
|
42885
|
+
throw new TypeError("Invalid database webhook subscription");
|
|
42886
|
+
assertSubscriptionFields(value);
|
|
42887
|
+
}
|
|
42888
|
+
function assertDatabaseWebhookSubscriptionActivation(value) {
|
|
42889
|
+
if (!record2(value) || !exact2(value, [...SUBSCRIPTION_KEYS, "secret"]))
|
|
42890
|
+
throw new TypeError("Invalid database webhook subscription activation");
|
|
42891
|
+
assertSubscriptionFields(value);
|
|
42892
|
+
if (value["state"] !== "active" || value["provider_id"] === null || typeof value["secret"] !== "string" || !/^[\x21-\x7e]{16,512}$/u.test(value["secret"]))
|
|
42893
|
+
throw new TypeError("Invalid database webhook subscription activation");
|
|
42894
|
+
}
|
|
42732
42895
|
function assertDatabaseWatch(value) {
|
|
42733
42896
|
if (!record2(value) || !exact2(value, DATABASE_WATCH_KEYS) || !matches(value["id"], DATABASE_WATCH_ID_PATTERN) || !oneOf(["dev", "prod"], value["environment"]) || !isDatabaseWatchSchema(value["schema"]) || !isDatabaseWatchIdentifier(value["table"]) || !Array.isArray(value["columns"]) || value["columns"].length < 1 || value["columns"].length > DATABASE_WATCH_MAX_COLUMNS || !value["columns"].every(isDatabaseWatchIdentifier) || !isCanonicalOperations(value["operations"]) || value["topic"] !== dataEventTopic(value["table"]) || value["event_type"] !== `data.${value["topic"]}`)
|
|
42734
42897
|
throw new TypeError("Invalid database watch");
|
|
@@ -43510,6 +43673,8 @@ var recognizedCommandLabel = (argv) => {
|
|
|
43510
43673
|
return "project notes set";
|
|
43511
43674
|
if (value === "project" && values[0] === "status")
|
|
43512
43675
|
return "project status";
|
|
43676
|
+
if (value === "project" && values[0] === "dev" && values[1] === "add")
|
|
43677
|
+
return "project dev add";
|
|
43513
43678
|
if (value === "project" && values[0] === "handle" && values[1] === "check")
|
|
43514
43679
|
return "project handle check";
|
|
43515
43680
|
if (value === "project" && values[0] === "handle" && values[1] === "set")
|
|
@@ -43551,6 +43716,8 @@ var recognizedCommandLabel = (argv) => {
|
|
|
43551
43716
|
if (value === "database" && values[0] === "table" && values[1] === "create")
|
|
43552
43717
|
return "database table create";
|
|
43553
43718
|
if (value === "database" && values[0] === "webhook") {
|
|
43719
|
+
if (values[1] === "subscription" && ["activate", "deactivate", "status"].includes(values[2] ?? ""))
|
|
43720
|
+
return `database webhook subscription ${values[2]}`;
|
|
43554
43721
|
if (values[1] === "create")
|
|
43555
43722
|
return "database webhook create";
|
|
43556
43723
|
if (values[1] === "list")
|
|
@@ -44288,6 +44455,17 @@ var parseProductCliCommand = (argv) => {
|
|
|
44288
44455
|
}
|
|
44289
44456
|
if (first === "project") {
|
|
44290
44457
|
const subcommand = values.shift();
|
|
44458
|
+
if (subcommand === "dev" && values.shift() === "add") {
|
|
44459
|
+
if (yes || wait || follow || stdin)
|
|
44460
|
+
throw new InvalidCommandError();
|
|
44461
|
+
const options2 = parseOptions(values, ["--project", "--idempotency-key"]);
|
|
44462
|
+
return {
|
|
44463
|
+
kind: "project-development-add",
|
|
44464
|
+
projectId: options2["--project"],
|
|
44465
|
+
idempotencyKey: options2["--idempotency-key"],
|
|
44466
|
+
credentialStore
|
|
44467
|
+
};
|
|
44468
|
+
}
|
|
44291
44469
|
if (subcommand === "data") {
|
|
44292
44470
|
const action = values.shift();
|
|
44293
44471
|
if (follow || stdin || action !== "plan" && action !== "change")
|
|
@@ -44457,12 +44635,14 @@ var parseProductCliCommand = (argv) => {
|
|
|
44457
44635
|
"--idempotency-key",
|
|
44458
44636
|
"--data-mode",
|
|
44459
44637
|
"--dev-access-mode",
|
|
44638
|
+
"--include-development-environment",
|
|
44460
44639
|
"--region"
|
|
44461
44640
|
]);
|
|
44462
44641
|
const dataMode = options["--data-mode"];
|
|
44463
44642
|
const devAccessMode = options["--dev-access-mode"];
|
|
44643
|
+
const includeDevelopmentEnvironment = options["--include-development-environment"];
|
|
44464
44644
|
const region = options["--region"];
|
|
44465
|
-
if (!options["--organization"] || !options["--name"] || !options["--idempotency-key"] || dataMode !== void 0 && dataMode !== "shared" && dataMode !== "isolated" || devAccessMode !== void 0 && devAccessMode !== "protected" && devAccessMode !== "public" || region !== void 0 && region !== "us" && region !== "eu")
|
|
44645
|
+
if (!options["--organization"] || !options["--name"] || !options["--idempotency-key"] || dataMode !== void 0 && dataMode !== "shared" && dataMode !== "isolated" || devAccessMode !== void 0 && devAccessMode !== "protected" && devAccessMode !== "public" || includeDevelopmentEnvironment !== void 0 && includeDevelopmentEnvironment !== "true" && includeDevelopmentEnvironment !== "false" || region !== void 0 && region !== "us" && region !== "eu")
|
|
44466
44646
|
throw new InvalidCommandError();
|
|
44467
44647
|
return {
|
|
44468
44648
|
kind: "project-create",
|
|
@@ -44470,6 +44650,7 @@ var parseProductCliCommand = (argv) => {
|
|
|
44470
44650
|
name: options["--name"],
|
|
44471
44651
|
...dataMode === void 0 ? {} : { dataMode },
|
|
44472
44652
|
...devAccessMode === void 0 ? {} : { devAccessMode },
|
|
44653
|
+
...includeDevelopmentEnvironment === void 0 ? {} : { includeDevelopmentEnvironment: includeDevelopmentEnvironment === "true" },
|
|
44473
44654
|
...region === void 0 ? {} : { region },
|
|
44474
44655
|
idempotencyKey: options["--idempotency-key"],
|
|
44475
44656
|
credentialStore
|
|
@@ -44715,6 +44896,79 @@ var parseProductCliCommand = (argv) => {
|
|
|
44715
44896
|
if (first === "database" && values[0] === "webhook") {
|
|
44716
44897
|
values.shift();
|
|
44717
44898
|
const subcommand = values.shift();
|
|
44899
|
+
if (subcommand === "subscription") {
|
|
44900
|
+
const action = values.shift();
|
|
44901
|
+
if (!["activate", "deactivate", "status"].includes(action ?? "") || wait || follow || revoke || stdin || yes !== (action !== "status"))
|
|
44902
|
+
throw new InvalidCommandError();
|
|
44903
|
+
const options = parseOptionalOptions(values, [
|
|
44904
|
+
"--project",
|
|
44905
|
+
"--environment",
|
|
44906
|
+
"--subscription",
|
|
44907
|
+
"--generation",
|
|
44908
|
+
"--url",
|
|
44909
|
+
"--event-types",
|
|
44910
|
+
"--headers-file",
|
|
44911
|
+
"--out",
|
|
44912
|
+
"--idempotency-key"
|
|
44913
|
+
]);
|
|
44914
|
+
const projectId = options["--project"], environment = options["--environment"] ?? (action === "status" ? "dev" : void 0), subscriptionId = options["--subscription"];
|
|
44915
|
+
if (!isValue(projectId) || !subscriptionId || !ORGANIZATION_ULID.test(subscriptionId) || environment !== "dev" && environment !== "prod")
|
|
44916
|
+
throw new InvalidCommandError();
|
|
44917
|
+
if (action === "status") {
|
|
44918
|
+
if ([
|
|
44919
|
+
"--generation",
|
|
44920
|
+
"--url",
|
|
44921
|
+
"--event-types",
|
|
44922
|
+
"--headers-file",
|
|
44923
|
+
"--out",
|
|
44924
|
+
"--idempotency-key"
|
|
44925
|
+
].some((key) => options[key] !== void 0))
|
|
44926
|
+
throw new InvalidCommandError();
|
|
44927
|
+
return {
|
|
44928
|
+
kind: "database-webhook-subscription-status",
|
|
44929
|
+
projectId,
|
|
44930
|
+
environment,
|
|
44931
|
+
subscriptionId,
|
|
44932
|
+
credentialStore
|
|
44933
|
+
};
|
|
44934
|
+
}
|
|
44935
|
+
const generationText = options["--generation"], idempotencyKey = options["--idempotency-key"];
|
|
44936
|
+
if (!generationText || !/^[1-9][0-9]*$/u.test(generationText) || Number(generationText) > 2147483647 || !isValue(idempotencyKey))
|
|
44937
|
+
throw new InvalidCommandError();
|
|
44938
|
+
const generation2 = Number(generationText);
|
|
44939
|
+
if (action === "deactivate") {
|
|
44940
|
+
if (["--url", "--event-types", "--headers-file", "--out"].some((key) => options[key] !== void 0))
|
|
44941
|
+
throw new InvalidCommandError();
|
|
44942
|
+
return {
|
|
44943
|
+
kind: "database-webhook-subscription-deactivate",
|
|
44944
|
+
projectId,
|
|
44945
|
+
environment,
|
|
44946
|
+
subscriptionId,
|
|
44947
|
+
generation: generation2,
|
|
44948
|
+
idempotencyKey,
|
|
44949
|
+
yes: true,
|
|
44950
|
+
credentialStore
|
|
44951
|
+
};
|
|
44952
|
+
}
|
|
44953
|
+
const url = options["--url"], eventTypes = options["--event-types"], headersFile = options["--headers-file"], outputPath = options["--out"];
|
|
44954
|
+
if (!isValue(url) || !isValue(eventTypes) || !isValue(outputPath) || headersFile !== void 0 && !isValue(headersFile))
|
|
44955
|
+
throw new InvalidCommandError();
|
|
44956
|
+
const request = contractValue(() => parseDatabaseWebhookCreateRequest({ url, event_types: eventTypes.split(",") }));
|
|
44957
|
+
return {
|
|
44958
|
+
kind: "database-webhook-subscription-activate",
|
|
44959
|
+
projectId,
|
|
44960
|
+
environment,
|
|
44961
|
+
subscriptionId,
|
|
44962
|
+
generation: generation2,
|
|
44963
|
+
url: request.url,
|
|
44964
|
+
eventTypes: request.event_types,
|
|
44965
|
+
headersFile: headersFile ?? null,
|
|
44966
|
+
outputPath,
|
|
44967
|
+
idempotencyKey,
|
|
44968
|
+
yes: true,
|
|
44969
|
+
credentialStore
|
|
44970
|
+
};
|
|
44971
|
+
}
|
|
44718
44972
|
if (subcommand === "create") {
|
|
44719
44973
|
if (!yes || wait || follow || revoke || stdin)
|
|
44720
44974
|
throw new InvalidCommandError();
|
|
@@ -45089,7 +45343,7 @@ var parseProductCliCommand = (argv) => {
|
|
|
45089
45343
|
kind: "plan",
|
|
45090
45344
|
projectId,
|
|
45091
45345
|
commitSha,
|
|
45092
|
-
environment: deploymentEnvironment(options["--environment"]),
|
|
45346
|
+
...options["--environment"] === void 0 ? {} : { environment: deploymentEnvironment(options["--environment"]) },
|
|
45093
45347
|
credentialStore
|
|
45094
45348
|
};
|
|
45095
45349
|
}
|
|
@@ -45114,7 +45368,7 @@ var parseProductCliCommand = (argv) => {
|
|
|
45114
45368
|
projectId,
|
|
45115
45369
|
planId,
|
|
45116
45370
|
commitSha,
|
|
45117
|
-
environment: deploymentEnvironment(options["--environment"]),
|
|
45371
|
+
...options["--environment"] === void 0 ? {} : { environment: deploymentEnvironment(options["--environment"]) },
|
|
45118
45372
|
idempotencyKey,
|
|
45119
45373
|
yes,
|
|
45120
45374
|
wait,
|
|
@@ -45890,8 +46144,9 @@ var publicWorkspace = (organization) => ({
|
|
|
45890
46144
|
});
|
|
45891
46145
|
|
|
45892
46146
|
// apps/product-cli/dist/cli.js
|
|
45893
|
-
import {
|
|
45894
|
-
import {
|
|
46147
|
+
import { constants as constants4 } from "node:fs";
|
|
46148
|
+
import { lstat as lstat2, open as open3 } from "node:fs/promises";
|
|
46149
|
+
import { isAbsolute as isAbsolute2, join as join5, resolve as resolve4 } from "node:path";
|
|
45895
46150
|
|
|
45896
46151
|
// packages/contracts/dist/database-access.js
|
|
45897
46152
|
function parseProjectDatabaseWrite(value) {
|
|
@@ -46055,7 +46310,7 @@ function assertOrganizationCreditUsage(value) {
|
|
|
46055
46310
|
for (const key of ["meter", "unit", "rate_card_id"])
|
|
46056
46311
|
if (typeof meter[key] !== "string" || !/^[A-Za-z0-9_.:/-]{1,128}$/u.test(meter[key]))
|
|
46057
46312
|
throw new TypeError("Invalid usage meter");
|
|
46058
|
-
if (typeof meter["quantity"] !== "string" || !/^(0|[1-9][0-9]{0,29})(\.[0-9]{1,
|
|
46313
|
+
if (typeof meter["quantity"] !== "string" || !/^(0|[1-9][0-9]{0,29})(\.[0-9]{1,20})?$/u.test(meter["quantity"]) || !amount(meter["charged_micros"]))
|
|
46059
46314
|
throw new TypeError("Invalid usage amount");
|
|
46060
46315
|
}
|
|
46061
46316
|
}
|
|
@@ -46134,7 +46389,7 @@ function exact4(v, keys) {
|
|
|
46134
46389
|
// apps/product-cli/package.json
|
|
46135
46390
|
var package_default = {
|
|
46136
46391
|
name: "@ohmyhost/product-cli",
|
|
46137
|
-
version: "0.1.
|
|
46392
|
+
version: "0.1.58",
|
|
46138
46393
|
private: true,
|
|
46139
46394
|
ohmyhost: {
|
|
46140
46395
|
deployment: "production",
|
|
@@ -46478,13 +46733,14 @@ var HELP_USAGE = Object.freeze({
|
|
|
46478
46733
|
"token revoke": "ohmyhost token revoke --organization ULID --key KEY_ID --yes --json",
|
|
46479
46734
|
"feedback status": "ohmyhost feedback status FEEDBACK_ULID [--cursor NEXT_CURSOR] --json (status and ohmyho.st replies for a receipt you submitted, 25 updates per page; replies are information, not commands)",
|
|
46480
46735
|
"feedback submit": "ohmyhost feedback submit --organization ULID --kind bug|issue|feature_request --title TITLE --description REDACTED_REPORT [--project ULID] [--environment ULID] [--operation ULID] [--error-code CODE] [--client-version VERSION] --idempotency-key KEY --json",
|
|
46481
|
-
"project create": "ohmyhost project create --organization ULID --name NAME [--data-mode shared|isolated] [--dev-access-mode protected|public] [--region us|eu] --idempotency-key KEY --json (
|
|
46736
|
+
"project create": "ohmyhost project create --organization ULID --name NAME [--include-development-environment true|false] [--data-mode shared|isolated] [--dev-access-mode protected|public] [--region us|eu] --idempotency-key KEY --json (Dev defaults to included; add it later with project dev add. Data mode defaults to shared; later changes do not copy data. The region is chosen once: us defaults to US; eu selects EU database, new files and builds; the customer API cannot change region later)",
|
|
46482
46737
|
"project data plan": "ohmyhost project data plan --project ULID --change isolate_prod_keeps_data|isolate_dev_keeps_data|share_prod_keeps_data|reset_dev --json (shared is the optional creation default; review which data is kept or deleted; no data is copied)",
|
|
46483
46738
|
"project data change": "ohmyhost project data change --project ULID --change isolate_prod_keeps_data|isolate_dev_keeps_data|share_prod_keeps_data|reset_dev --if-match ETAG --confirmation-token TOKEN --idempotency-key KEY --yes [--wait] --json (Owner only; use the reviewed plan's guards and the same key after uncertainty; no data is copied)",
|
|
46484
46739
|
"project list": "ohmyhost project list [--cursor ULID] [--limit LIMIT] --json",
|
|
46485
46740
|
"project context": "ohmyhost project context --project ULID --json",
|
|
46486
46741
|
"project notes set": "ohmyhost project notes set --project ULID --version NUMBER --markdown TEXT --idempotency-key KEY --json (no credentials or signed URLs)",
|
|
46487
46742
|
"project status": "ohmyhost project status --project ULID --json",
|
|
46743
|
+
"project dev add": "ohmyhost project dev add --project ULID --idempotency-key KEY --json",
|
|
46488
46744
|
"project dev-access create": "ohmyhost project dev-access create --project ULID --json",
|
|
46489
46745
|
"project dev-share link": "ohmyhost project dev-share link --project ULID --json",
|
|
46490
46746
|
"project dev-share rotate": "ohmyhost project dev-share rotate --project ULID --idempotency-key KEY --yes --json",
|
|
@@ -46506,6 +46762,9 @@ var HELP_USAGE = Object.freeze({
|
|
|
46506
46762
|
"database watch delete": "ohmyhost database watch delete --project ULID --environment dev|prod --watch ID --idempotency-key KEY --yes --json",
|
|
46507
46763
|
"database table create": "ohmyhost database table create --project ULID --environment dev|prod --table NAME --columns-file PATH [--primary-key COL[,COL]] --idempotency-key KEY --yes --json (the table is created in the public schema as the migration role, with the same access as migration tables, so a database watch can attach later; the columns file is a UTF-8 JSON array of 1 to 64 column objects, at most 64 KiB, each with name, type and optional nullable, identity and default; types: text, integer, bigint, boolean, numeric, double precision, timestamptz, date, uuid, jsonb; identity needs integer or bigint; default now needs timestamptz and default uuid needs uuid; identical repeats answer created false; at most 100 tables, 64 columns per table)",
|
|
46508
46764
|
"database webhook create": "ohmyhost database webhook create --project ULID --environment dev|prod --url HTTPS_URL --event-types TYPE[,TYPE] [--headers-file PATH] --idempotency-key KEY --yes --json (the signing secret is shown once in this answer; types: database.created, database.ready, database.woke, database.slept, database.suspended, database.resized, database.deleted, data.<topic> for the rows of one watched table printed by database watch create, or data.* for every watched table; a bare * is not accepted and does not include data events; the headers file is a UTF-8 JSON object of at most 8 KiB)",
|
|
46765
|
+
"database webhook subscription activate": "ohmyhost database webhook subscription activate --project ULID --environment dev|prod --subscription ULID --generation N --url HTTPS_URL --event-types TYPE[,TYPE] [--headers-file PATH] --out NEW_PRIVATE_FILE --idempotency-key KEY --yes --json (the secret is written privately; repeat the same key and body after uncertainty using a new output file)",
|
|
46766
|
+
"database webhook subscription deactivate": "ohmyhost database webhook subscription deactivate --project ULID --environment dev|prod --subscription ULID --generation N --idempotency-key KEY --yes --json",
|
|
46767
|
+
"database webhook subscription status": "ohmyhost database webhook subscription status --project ULID [--environment dev|prod] --subscription ULID --json",
|
|
46509
46768
|
"database webhook list": "ohmyhost database webhook list --project ULID [--environment dev|prod] --json (dev when omitted; the secret is never listed)",
|
|
46510
46769
|
"database webhook get": "ohmyhost database webhook get --project ULID [--environment dev|prod] --webhook ID --json",
|
|
46511
46770
|
"database webhook delete": "ohmyhost database webhook delete --project ULID --environment dev|prod --webhook ID [--idempotency-key KEY] --yes --json (a retry with the same key and request returns the stored answer; without a key each call is new)",
|
|
@@ -46982,6 +47241,8 @@ var ProductCli = class {
|
|
|
46982
47241
|
}
|
|
46983
47242
|
if (command.kind === "project-status")
|
|
46984
47243
|
return await this.getProjectStatus(command, signal);
|
|
47244
|
+
if (command.kind === "project-development-add")
|
|
47245
|
+
return await this.addProjectDevelopment(command, signal);
|
|
46985
47246
|
if (command.kind === "project-dev-access-create")
|
|
46986
47247
|
return await this.createDevAccessTicket(command, signal);
|
|
46987
47248
|
if (command.kind === "project-flag-status" || command.kind === "project-flag-set") {
|
|
@@ -47048,6 +47309,8 @@ var ProductCli = class {
|
|
|
47048
47309
|
return await this.createDatabaseTable(command, signal);
|
|
47049
47310
|
if (command.kind === "database-webhook-create")
|
|
47050
47311
|
return await this.createDatabaseWebhook(command, signal);
|
|
47312
|
+
if (command.kind === "database-webhook-subscription-activate" || command.kind === "database-webhook-subscription-deactivate" || command.kind === "database-webhook-subscription-status")
|
|
47313
|
+
return await this.databaseWebhookSubscription(command, signal);
|
|
47051
47314
|
if (command.kind === "database-webhook-list")
|
|
47052
47315
|
return await this.listDatabaseWebhooks(command, signal);
|
|
47053
47316
|
if (command.kind === "database-webhook-get")
|
|
@@ -47157,7 +47420,7 @@ var ProductCli = class {
|
|
|
47157
47420
|
}
|
|
47158
47421
|
return await this.deleteEnvironmentSecret(command, signal);
|
|
47159
47422
|
} catch (error) {
|
|
47160
|
-
if (error instanceof UserTokenFileError)
|
|
47423
|
+
if (error instanceof UserTokenFileError || error instanceof PrivateSecretFileError)
|
|
47161
47424
|
return failure(name, 3, error.code, false, error.message);
|
|
47162
47425
|
if (error instanceof InteractiveSessionRequiredError)
|
|
47163
47426
|
return failure(name, 2, "interactive_login_required", false, `A user API token cannot create, list or select a workspace. Run '${this.dependencies.commandPrefix} login --json' in a process without OHMYHOST_TOKEN.`);
|
|
@@ -47526,6 +47789,7 @@ var ProductCli = class {
|
|
|
47526
47789
|
name: command.name,
|
|
47527
47790
|
...command.dataMode === void 0 ? {} : { dataMode: command.dataMode },
|
|
47528
47791
|
...command.devAccessMode === void 0 ? {} : { devAccessMode: command.devAccessMode },
|
|
47792
|
+
...command.includeDevelopmentEnvironment === void 0 ? {} : { includeDevelopmentEnvironment: command.includeDevelopmentEnvironment },
|
|
47529
47793
|
...command.region === void 0 ? {} : { region: command.region },
|
|
47530
47794
|
idempotencyKey: command.idempotencyKey
|
|
47531
47795
|
}));
|
|
@@ -47559,6 +47823,14 @@ var ProductCli = class {
|
|
|
47559
47823
|
const project = parseProjectStatus(await api.getProjectStatus(command.projectId));
|
|
47560
47824
|
return success("project status", { status: "succeeded", project, context: this.context() });
|
|
47561
47825
|
}
|
|
47826
|
+
async addProjectDevelopment(command, signal) {
|
|
47827
|
+
const api = await this.authenticatedApi(command.credentialStore, signal);
|
|
47828
|
+
const operation = parseOperation(await api.addProjectDevelopmentEnvironment({
|
|
47829
|
+
projectId: command.projectId,
|
|
47830
|
+
idempotencyKey: command.idempotencyKey
|
|
47831
|
+
}));
|
|
47832
|
+
return success("project dev add", { status: "accepted", operation });
|
|
47833
|
+
}
|
|
47562
47834
|
async createDevAccessTicket(command, signal) {
|
|
47563
47835
|
const api = await this.authenticatedApi(command.credentialStore, signal);
|
|
47564
47836
|
const ticket = parseDevAccessTicket(await api.createDevAccessTicket(command.projectId));
|
|
@@ -47664,6 +47936,48 @@ var ProductCli = class {
|
|
|
47664
47936
|
});
|
|
47665
47937
|
return success("database webhook create", { status: "succeeded", webhook });
|
|
47666
47938
|
}
|
|
47939
|
+
async databaseWebhookSubscription(command, signal) {
|
|
47940
|
+
const common = {
|
|
47941
|
+
projectId: command.projectId,
|
|
47942
|
+
environment: command.environment,
|
|
47943
|
+
subscriptionId: command.subscriptionId
|
|
47944
|
+
};
|
|
47945
|
+
if (command.kind === "database-webhook-subscription-activate") {
|
|
47946
|
+
const request = await webhookCreateRequest(command);
|
|
47947
|
+
const file = await preparePrivateSecretFile(command.outputPath);
|
|
47948
|
+
try {
|
|
47949
|
+
const api2 = await this.authenticatedApi(command.credentialStore, signal);
|
|
47950
|
+
const value = await api2.activateDatabaseWebhookSubscription({
|
|
47951
|
+
...common,
|
|
47952
|
+
generation: command.generation,
|
|
47953
|
+
idempotencyKey: command.idempotencyKey,
|
|
47954
|
+
request
|
|
47955
|
+
});
|
|
47956
|
+
await file.save(value.secret);
|
|
47957
|
+
const subscription2 = {
|
|
47958
|
+
id: value.id,
|
|
47959
|
+
environment: value.environment,
|
|
47960
|
+
state: value.state,
|
|
47961
|
+
generation: value.generation,
|
|
47962
|
+
provider_id: value.provider_id
|
|
47963
|
+
};
|
|
47964
|
+
return success(parsedCommandName(command), {
|
|
47965
|
+
status: "succeeded",
|
|
47966
|
+
subscription: subscription2,
|
|
47967
|
+
secret_file: file.path
|
|
47968
|
+
});
|
|
47969
|
+
} finally {
|
|
47970
|
+
await file.close();
|
|
47971
|
+
}
|
|
47972
|
+
}
|
|
47973
|
+
const api = await this.authenticatedApi(command.credentialStore, signal);
|
|
47974
|
+
const subscription = command.kind === "database-webhook-subscription-status" ? await api.getDatabaseWebhookSubscription(common) : await api.deactivateDatabaseWebhookSubscription({
|
|
47975
|
+
...common,
|
|
47976
|
+
generation: command.generation,
|
|
47977
|
+
idempotencyKey: command.idempotencyKey
|
|
47978
|
+
});
|
|
47979
|
+
return success(parsedCommandName(command), { status: "succeeded", subscription });
|
|
47980
|
+
}
|
|
47667
47981
|
async listDatabaseWebhooks(command, signal) {
|
|
47668
47982
|
const api = await this.authenticatedApi(command.credentialStore, signal);
|
|
47669
47983
|
const page = await api.listProjectDatabaseWebhooks({
|
|
@@ -48108,7 +48422,7 @@ var ProductCli = class {
|
|
|
48108
48422
|
const plan = command.commitSha === null ? null : parseDeploymentPlan(await api.planDeployment({
|
|
48109
48423
|
projectId: command.projectId,
|
|
48110
48424
|
commitSha: command.commitSha,
|
|
48111
|
-
environment: command.environment
|
|
48425
|
+
...command.environment === void 0 ? {} : { environment: command.environment }
|
|
48112
48426
|
}));
|
|
48113
48427
|
let accepted;
|
|
48114
48428
|
try {
|
|
@@ -48127,7 +48441,7 @@ var ProductCli = class {
|
|
|
48127
48441
|
if (command.wait)
|
|
48128
48442
|
operation = await this.waitForOperation(api, operation, signal);
|
|
48129
48443
|
const notes = operation.state === "succeeded" ? [
|
|
48130
|
-
`
|
|
48444
|
+
`If this is a Dev deployment, check project status for dev_access_mode. For protected Dev, run '${this.dependencies.commandPrefix} project dev-share link --project ULID --json' and open or share its persistent share_url; public Dev opens directly.`
|
|
48131
48445
|
] : [];
|
|
48132
48446
|
return success("deploy", {
|
|
48133
48447
|
status: command.wait ? "completed" : "accepted",
|
|
@@ -48468,17 +48782,25 @@ var reusedKeyProblem = (error) => {
|
|
|
48468
48782
|
};
|
|
48469
48783
|
var OPERATION_STREAM_CONNECTIONS = 4;
|
|
48470
48784
|
var readStatementFile = (path2) => readBoundedUtf8File(path2, 65536, () => new ProductCliFailure(2, "statement_file_invalid", false, STATEMENT_FILE_INVALID_ACTION));
|
|
48471
|
-
var readBoundedUtf8File = async (path2, maxBytes, refusal) => {
|
|
48785
|
+
var readBoundedUtf8File = async (path2, maxBytes, refusal, privateFile = false) => {
|
|
48472
48786
|
let file;
|
|
48787
|
+
let before;
|
|
48473
48788
|
try {
|
|
48474
|
-
|
|
48789
|
+
if (privateFile) {
|
|
48790
|
+
if (!isAbsolute2(path2))
|
|
48791
|
+
throw refusal();
|
|
48792
|
+
before = await lstat2(path2);
|
|
48793
|
+
if (!before.isFile() || before.isSymbolicLink() || before.nlink !== 1 || process.platform !== "win32" && (before.uid !== process.getuid?.() || (before.mode & 63) !== 0))
|
|
48794
|
+
throw refusal();
|
|
48795
|
+
}
|
|
48796
|
+
file = await open3(path2, privateFile ? constants4.O_RDONLY | (constants4.O_NOFOLLOW ?? 0) : "r");
|
|
48475
48797
|
} catch {
|
|
48476
48798
|
throw refusal();
|
|
48477
48799
|
}
|
|
48478
48800
|
const buffer = Buffer.alloc(maxBytes + 1);
|
|
48479
48801
|
try {
|
|
48480
48802
|
const stat3 = await file.stat();
|
|
48481
|
-
if (!stat3.isFile() || stat3.size > maxBytes)
|
|
48803
|
+
if (!stat3.isFile() || stat3.size > maxBytes || before !== void 0 && (stat3.ino !== before.ino || stat3.dev !== before.dev || stat3.nlink !== 1 || stat3.size !== before.size || process.platform !== "win32" && (stat3.uid !== process.getuid?.() || (stat3.mode & 63) !== 0)))
|
|
48482
48804
|
throw refusal();
|
|
48483
48805
|
let length = 0;
|
|
48484
48806
|
while (length < buffer.length) {
|
|
@@ -48499,9 +48821,9 @@ var readBoundedUtf8File = async (path2, maxBytes, refusal) => {
|
|
|
48499
48821
|
await file.close();
|
|
48500
48822
|
}
|
|
48501
48823
|
};
|
|
48502
|
-
var webhookCreateRequest = async (command) => {
|
|
48824
|
+
var webhookCreateRequest = async (command, privateHeaders = false) => {
|
|
48503
48825
|
const headersFailure = () => new ProductCliFailure(2, "headers_file_invalid", false, HEADERS_FILE_INVALID_ACTION);
|
|
48504
|
-
const headers = command.headersFile === null ? void 0 : await readBoundedUtf8File(command.headersFile, 8192, headersFailure).then((text) => {
|
|
48826
|
+
const headers = command.headersFile === null ? void 0 : await readBoundedUtf8File(command.headersFile, 8192, headersFailure, privateHeaders).then((text) => {
|
|
48505
48827
|
try {
|
|
48506
48828
|
return JSON.parse(text);
|
|
48507
48829
|
} catch {
|
|
@@ -48518,6 +48840,7 @@ var webhookCreateRequest = async (command) => {
|
|
|
48518
48840
|
throw headersFailure();
|
|
48519
48841
|
}
|
|
48520
48842
|
};
|
|
48843
|
+
var readPrivateWebhookCreateRequest = (input) => webhookCreateRequest(input, true);
|
|
48521
48844
|
var scheduleSetRequest = async (command) => {
|
|
48522
48845
|
const statementsFailure = () => new ProductCliFailure(2, "statements_file_invalid", false, SCHEDULE_STATEMENTS_FILE_INVALID_ACTION);
|
|
48523
48846
|
const statements = await readBoundedUtf8File(command.statementsFile, 65536, statementsFailure).then((text) => {
|
|
@@ -48693,6 +49016,8 @@ var parsedCommandName = (command) => {
|
|
|
48693
49016
|
return "project notes set";
|
|
48694
49017
|
if (command.kind === "project-status")
|
|
48695
49018
|
return "project status";
|
|
49019
|
+
if (command.kind === "project-development-add")
|
|
49020
|
+
return "project dev add";
|
|
48696
49021
|
if (command.kind === "project-dev-access-create")
|
|
48697
49022
|
return "project dev-access create";
|
|
48698
49023
|
if (command.kind === "project-dev-share-link")
|
|
@@ -48733,6 +49058,12 @@ var parsedCommandName = (command) => {
|
|
|
48733
49058
|
return "database table create";
|
|
48734
49059
|
if (command.kind === "database-webhook-create")
|
|
48735
49060
|
return "database webhook create";
|
|
49061
|
+
if (command.kind === "database-webhook-subscription-activate")
|
|
49062
|
+
return "database webhook subscription activate";
|
|
49063
|
+
if (command.kind === "database-webhook-subscription-deactivate")
|
|
49064
|
+
return "database webhook subscription deactivate";
|
|
49065
|
+
if (command.kind === "database-webhook-subscription-status")
|
|
49066
|
+
return "database webhook subscription status";
|
|
48736
49067
|
if (command.kind === "database-webhook-list")
|
|
48737
49068
|
return "database webhook list";
|
|
48738
49069
|
if (command.kind === "database-webhook-get")
|
|
@@ -51009,6 +51340,30 @@ var setProjectNotes = (parameters, options) => {
|
|
|
51009
51340
|
}
|
|
51010
51341
|
});
|
|
51011
51342
|
};
|
|
51343
|
+
var addProjectDevelopmentEnvironment = (parameters, options) => {
|
|
51344
|
+
const params = buildClientParams([parameters], [
|
|
51345
|
+
{
|
|
51346
|
+
args: [
|
|
51347
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
51348
|
+
{ in: "headers", key: "Idempotency-Key" },
|
|
51349
|
+
{ in: "path", key: "project_id" },
|
|
51350
|
+
{ key: "body", map: "body" }
|
|
51351
|
+
]
|
|
51352
|
+
}
|
|
51353
|
+
]);
|
|
51354
|
+
return (options?.client ?? client).post({
|
|
51355
|
+
responseStyle: "data",
|
|
51356
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
51357
|
+
url: "/v1/projects/{project_id}/environments/dev",
|
|
51358
|
+
...options,
|
|
51359
|
+
...params,
|
|
51360
|
+
headers: {
|
|
51361
|
+
"Content-Type": "application/json",
|
|
51362
|
+
...options?.headers,
|
|
51363
|
+
...params.headers
|
|
51364
|
+
}
|
|
51365
|
+
});
|
|
51366
|
+
};
|
|
51012
51367
|
var getProjectStatus = (parameters, options) => {
|
|
51013
51368
|
const params = buildClientParams([parameters], [
|
|
51014
51369
|
{
|
|
@@ -52016,6 +52371,73 @@ var deleteProjectDatabaseWatch = (parameters, options) => {
|
|
|
52016
52371
|
...params
|
|
52017
52372
|
});
|
|
52018
52373
|
};
|
|
52374
|
+
var getDatabaseWebhookSubscription = (parameters, options) => {
|
|
52375
|
+
const params = buildClientParams([parameters], [
|
|
52376
|
+
{
|
|
52377
|
+
args: [
|
|
52378
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
52379
|
+
{ in: "path", key: "project_id" },
|
|
52380
|
+
{ in: "path", key: "subscription_id" },
|
|
52381
|
+
{ in: "query", key: "environment" }
|
|
52382
|
+
]
|
|
52383
|
+
}
|
|
52384
|
+
]);
|
|
52385
|
+
return (options?.client ?? client).get({
|
|
52386
|
+
responseStyle: "data",
|
|
52387
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
52388
|
+
url: "/v1/projects/{project_id}/database/webhook-subscriptions/{subscription_id}",
|
|
52389
|
+
...options,
|
|
52390
|
+
...params
|
|
52391
|
+
});
|
|
52392
|
+
};
|
|
52393
|
+
var deactivateDatabaseWebhookSubscription = (parameters, options) => {
|
|
52394
|
+
const params = buildClientParams([parameters], [
|
|
52395
|
+
{
|
|
52396
|
+
args: [
|
|
52397
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
52398
|
+
{ in: "headers", key: "Idempotency-Key" },
|
|
52399
|
+
{ in: "path", key: "project_id" },
|
|
52400
|
+
{ in: "path", key: "subscription_id" },
|
|
52401
|
+
{ in: "path", key: "generation" },
|
|
52402
|
+
{ in: "query", key: "environment" }
|
|
52403
|
+
]
|
|
52404
|
+
}
|
|
52405
|
+
]);
|
|
52406
|
+
return (options?.client ?? client).delete({
|
|
52407
|
+
responseStyle: "data",
|
|
52408
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
52409
|
+
url: "/v1/projects/{project_id}/database/webhook-subscriptions/{subscription_id}/activations/{generation}",
|
|
52410
|
+
...options,
|
|
52411
|
+
...params
|
|
52412
|
+
});
|
|
52413
|
+
};
|
|
52414
|
+
var activateDatabaseWebhookSubscription = (parameters, options) => {
|
|
52415
|
+
const params = buildClientParams([parameters], [
|
|
52416
|
+
{
|
|
52417
|
+
args: [
|
|
52418
|
+
{ in: "headers", key: "X-Request-Id" },
|
|
52419
|
+
{ in: "headers", key: "Idempotency-Key" },
|
|
52420
|
+
{ in: "path", key: "project_id" },
|
|
52421
|
+
{ in: "path", key: "subscription_id" },
|
|
52422
|
+
{ in: "path", key: "generation" },
|
|
52423
|
+
{ in: "query", key: "environment" },
|
|
52424
|
+
{ key: "databaseWebhookCreateRequest", map: "body" }
|
|
52425
|
+
]
|
|
52426
|
+
}
|
|
52427
|
+
]);
|
|
52428
|
+
return (options?.client ?? client).put({
|
|
52429
|
+
responseStyle: "data",
|
|
52430
|
+
security: [{ scheme: "bearer", type: "http" }],
|
|
52431
|
+
url: "/v1/projects/{project_id}/database/webhook-subscriptions/{subscription_id}/activations/{generation}",
|
|
52432
|
+
...options,
|
|
52433
|
+
...params,
|
|
52434
|
+
headers: {
|
|
52435
|
+
"Content-Type": "application/json",
|
|
52436
|
+
...options?.headers,
|
|
52437
|
+
...params.headers
|
|
52438
|
+
}
|
|
52439
|
+
});
|
|
52440
|
+
};
|
|
52019
52441
|
var listProjectDatabaseWebhooks = (parameters, options) => {
|
|
52020
52442
|
const params = buildClientParams([parameters], [
|
|
52021
52443
|
{
|
|
@@ -53792,6 +54214,48 @@ var GeneratedSdkProductApi = class {
|
|
|
53792
54214
|
throw new TypeError(WEBHOOK_SCOPE_MISMATCH);
|
|
53793
54215
|
return value;
|
|
53794
54216
|
}
|
|
54217
|
+
async getDatabaseWebhookSubscription(input) {
|
|
54218
|
+
const value = await getDatabaseWebhookSubscription({
|
|
54219
|
+
project_id: input.projectId,
|
|
54220
|
+
environment: input.environment,
|
|
54221
|
+
subscription_id: input.subscriptionId
|
|
54222
|
+
}, { client: this.#client });
|
|
54223
|
+
assertDatabaseWebhookSubscription(value);
|
|
54224
|
+
if (value.id !== input.subscriptionId || value.environment !== input.environment)
|
|
54225
|
+
throw new TypeError(WEBHOOK_SCOPE_MISMATCH);
|
|
54226
|
+
return value;
|
|
54227
|
+
}
|
|
54228
|
+
async activateDatabaseWebhookSubscription(input) {
|
|
54229
|
+
const value = await activateDatabaseWebhookSubscription({
|
|
54230
|
+
project_id: input.projectId,
|
|
54231
|
+
environment: input.environment,
|
|
54232
|
+
subscription_id: input.subscriptionId,
|
|
54233
|
+
generation: input.generation,
|
|
54234
|
+
"Idempotency-Key": input.idempotencyKey,
|
|
54235
|
+
databaseWebhookCreateRequest: {
|
|
54236
|
+
...input.request,
|
|
54237
|
+
event_types: [...input.request.event_types],
|
|
54238
|
+
headers: { ...input.request.headers }
|
|
54239
|
+
}
|
|
54240
|
+
}, { client: this.#client });
|
|
54241
|
+
assertDatabaseWebhookSubscriptionActivation(value);
|
|
54242
|
+
if (value.id !== input.subscriptionId || value.environment !== input.environment || value.generation !== input.generation)
|
|
54243
|
+
throw new TypeError(WEBHOOK_SCOPE_MISMATCH);
|
|
54244
|
+
return value;
|
|
54245
|
+
}
|
|
54246
|
+
async deactivateDatabaseWebhookSubscription(input) {
|
|
54247
|
+
const value = await deactivateDatabaseWebhookSubscription({
|
|
54248
|
+
project_id: input.projectId,
|
|
54249
|
+
environment: input.environment,
|
|
54250
|
+
subscription_id: input.subscriptionId,
|
|
54251
|
+
generation: input.generation,
|
|
54252
|
+
"Idempotency-Key": input.idempotencyKey
|
|
54253
|
+
}, { client: this.#client });
|
|
54254
|
+
assertDatabaseWebhookSubscription(value);
|
|
54255
|
+
if (value.id !== input.subscriptionId || value.environment !== input.environment || value.generation !== input.generation || value.state !== "inactive")
|
|
54256
|
+
throw new TypeError(WEBHOOK_SCOPE_MISMATCH);
|
|
54257
|
+
return value;
|
|
54258
|
+
}
|
|
53795
54259
|
async listProjectDatabaseWebhooks(input) {
|
|
53796
54260
|
const value = await listProjectDatabaseWebhooks({ project_id: input.projectId, environment: input.environment }, { client: this.#client });
|
|
53797
54261
|
assertDatabaseWebhookPage(value);
|
|
@@ -54011,10 +54475,14 @@ var GeneratedSdkProductApi = class {
|
|
|
54011
54475
|
name: input.name,
|
|
54012
54476
|
...input.dataMode === void 0 ? {} : { data_mode: input.dataMode },
|
|
54013
54477
|
...input.devAccessMode === void 0 ? {} : { dev_access_mode: input.devAccessMode },
|
|
54478
|
+
...input.includeDevelopmentEnvironment === void 0 ? {} : { include_development_environment: input.includeDevelopmentEnvironment },
|
|
54014
54479
|
...input.region === void 0 ? {} : { region: input.region }
|
|
54015
54480
|
}
|
|
54016
54481
|
}, { client: this.#client });
|
|
54017
54482
|
}
|
|
54483
|
+
async addProjectDevelopmentEnvironment(input) {
|
|
54484
|
+
return addProjectDevelopmentEnvironment({ project_id: input.projectId, "Idempotency-Key": input.idempotencyKey, body: {} }, { client: this.#client });
|
|
54485
|
+
}
|
|
54018
54486
|
async getOperation(operationId) {
|
|
54019
54487
|
return getOperation({ operation_id: operationId }, { client: this.#client });
|
|
54020
54488
|
}
|
|
@@ -54079,7 +54547,10 @@ var GeneratedSdkProductApi = class {
|
|
|
54079
54547
|
async planDeployment(input) {
|
|
54080
54548
|
return planDeployment({
|
|
54081
54549
|
project_id: input.projectId,
|
|
54082
|
-
planDeploymentRequest: {
|
|
54550
|
+
planDeploymentRequest: {
|
|
54551
|
+
commit_sha: input.commitSha,
|
|
54552
|
+
...input.environment === void 0 ? {} : { environment: input.environment }
|
|
54553
|
+
}
|
|
54083
54554
|
}, { client: this.#client });
|
|
54084
54555
|
}
|
|
54085
54556
|
async createDeployment(input) {
|
|
@@ -54183,7 +54654,7 @@ var GeneratedSdkProductApi = class {
|
|
|
54183
54654
|
|
|
54184
54655
|
// apps/product-cli/dist/repository-init.js
|
|
54185
54656
|
import { createHash as createHash4 } from "node:crypto";
|
|
54186
|
-
import { lstat as
|
|
54657
|
+
import { lstat as lstat3, open as open4, readFile as readFile3, readdir as readdir3, stat as stat2 } from "node:fs/promises";
|
|
54187
54658
|
import { dirname as dirname3, posix, resolve as resolve5 } from "node:path";
|
|
54188
54659
|
|
|
54189
54660
|
// packages/contracts/dist/application-root.js
|
|
@@ -54306,6 +54777,9 @@ var ohmyhost_schema_default = {
|
|
|
54306
54777
|
},
|
|
54307
54778
|
credits: {
|
|
54308
54779
|
$ref: "#/$defs/credits"
|
|
54780
|
+
},
|
|
54781
|
+
browser: {
|
|
54782
|
+
$ref: "#/$defs/browserRendering"
|
|
54309
54783
|
}
|
|
54310
54784
|
},
|
|
54311
54785
|
$defs: {
|
|
@@ -54350,6 +54824,10 @@ var ohmyhost_schema_default = {
|
|
|
54350
54824
|
minimum: 1,
|
|
54351
54825
|
maximum: 64,
|
|
54352
54826
|
description: "Maximum private immutable Next.js prerender cache in MiB; defaults to 32. Cache storage costs zero credits. Public assets retain their independent limit."
|
|
54827
|
+
},
|
|
54828
|
+
next_revalidate_path: {
|
|
54829
|
+
type: "boolean",
|
|
54830
|
+
description: "Opt into deployment-scoped on-demand Next.js path revalidation."
|
|
54353
54831
|
}
|
|
54354
54832
|
}
|
|
54355
54833
|
},
|
|
@@ -54644,6 +55122,16 @@ var ohmyhost_schema_default = {
|
|
|
54644
55122
|
},
|
|
54645
55123
|
required: ["threshold", "amount_usd_micros", "monthly_cap_usd_micros"]
|
|
54646
55124
|
}
|
|
55125
|
+
},
|
|
55126
|
+
browserRendering: {
|
|
55127
|
+
type: "object",
|
|
55128
|
+
additionalProperties: false,
|
|
55129
|
+
required: ["enabled"],
|
|
55130
|
+
properties: {
|
|
55131
|
+
enabled: {
|
|
55132
|
+
type: "boolean"
|
|
55133
|
+
}
|
|
55134
|
+
}
|
|
54647
55135
|
}
|
|
54648
55136
|
},
|
|
54649
55137
|
allOf: [
|
|
@@ -54697,6 +55185,9 @@ var ohmyhost_schema_default = {
|
|
|
54697
55185
|
},
|
|
54698
55186
|
ssg_cache_max_mib: {
|
|
54699
55187
|
$ref: "#/$defs/build/properties/ssg_cache_max_mib"
|
|
55188
|
+
},
|
|
55189
|
+
next_revalidate_path: {
|
|
55190
|
+
$ref: "#/$defs/build/properties/next_revalidate_path"
|
|
54700
55191
|
}
|
|
54701
55192
|
}
|
|
54702
55193
|
}
|
|
@@ -54838,7 +55329,8 @@ function parseOhmyhostConfig(value) {
|
|
|
54838
55329
|
install: input.build.install,
|
|
54839
55330
|
command: input.build.command,
|
|
54840
55331
|
output: input.build.output,
|
|
54841
|
-
...input.build.ssg_cache_max_mib === void 0 ? {} : { ssg_cache_max_mib: input.build.ssg_cache_max_mib }
|
|
55332
|
+
...input.build.ssg_cache_max_mib === void 0 ? {} : { ssg_cache_max_mib: input.build.ssg_cache_max_mib },
|
|
55333
|
+
...input.build.next_revalidate_path === true ? { next_revalidate_path: true } : {}
|
|
54842
55334
|
}),
|
|
54843
55335
|
runtime: Object.freeze({
|
|
54844
55336
|
mode: input.runtime.mode,
|
|
@@ -54869,6 +55361,7 @@ function parseOhmyhostConfig(value) {
|
|
|
54869
55361
|
...input.ai.jurisdiction === void 0 ? {} : { jurisdiction: input.ai.jurisdiction }
|
|
54870
55362
|
})
|
|
54871
55363
|
},
|
|
55364
|
+
...input.browser === void 0 ? {} : { browser: Object.freeze({ enabled: input.browser.enabled }) },
|
|
54872
55365
|
...input.functions === void 0 ? {} : {
|
|
54873
55366
|
functions: Object.freeze({ crons: normalizeCrons(input.functions.crons) })
|
|
54874
55367
|
},
|
|
@@ -55072,7 +55565,7 @@ function declaredDependencyNames(manifest2) {
|
|
|
55072
55565
|
return names;
|
|
55073
55566
|
}
|
|
55074
55567
|
function viteCompanionRequired(configuration) {
|
|
55075
|
-
return configuration.runtime.mode === "edge" || configuration.database?.enabled === true || configuration.auth?.provider === "better-auth" || configuration.mail?.enabled === true || configuration.ai?.enabled === true || configuration.storage !== void 0 || (configuration.functions?.crons.length ?? 0) > 0;
|
|
55568
|
+
return configuration.runtime.mode === "edge" || configuration.database?.enabled === true || configuration.auth?.provider === "better-auth" || configuration.mail?.enabled === true || configuration.ai?.enabled === true || configuration.browser?.enabled === true || configuration.storage !== void 0 || (configuration.functions?.crons.length ?? 0) > 0;
|
|
55076
55569
|
}
|
|
55077
55570
|
function frameworkVersionAdmissions(framework, manifest2, lockfile) {
|
|
55078
55571
|
const admissions = [];
|
|
@@ -55326,7 +55819,7 @@ function configurationFindings(input) {
|
|
|
55326
55819
|
}
|
|
55327
55820
|
if (framework !== "functions" && !runtimeModeAdmitted(framework, configuration, crons))
|
|
55328
55821
|
findings.push(diagnostic({ code: "runtime_mode_unsupported", path: REPOSITORY_CONFIG, framework }));
|
|
55329
|
-
if (build !== null && framework !== "nextjs" && build.ssg_cache_max_mib !== void 0)
|
|
55822
|
+
if (build !== null && framework !== "nextjs" && (build.ssg_cache_max_mib !== void 0 || build.next_revalidate_path === true))
|
|
55330
55823
|
findings.push(diagnostic({ code: "build_option_unsupported", path: REPOSITORY_CONFIG }));
|
|
55331
55824
|
const output = framework === "astro" ? configuration.runtime.mode === "edge" ? "dist/client" : "dist" : BUILD_OUTPUTS[framework];
|
|
55332
55825
|
if (build !== null && output !== void 0 && build.output !== output)
|
|
@@ -55344,12 +55837,12 @@ function configurationFindings(input) {
|
|
|
55344
55837
|
function runtimeModeAdmitted(framework, configuration, crons) {
|
|
55345
55838
|
const mode = configuration.runtime.mode;
|
|
55346
55839
|
if (framework === "astro")
|
|
55347
|
-
return mode === "edge" || mode === "static" && !crons && configuration.storage === void 0 && configuration.database?.enabled !== true && configuration.mail?.enabled !== true && configuration.ai?.enabled !== true && configuration.auth?.provider !== "better-auth";
|
|
55840
|
+
return mode === "edge" || mode === "static" && !crons && configuration.storage === void 0 && configuration.database?.enabled !== true && configuration.mail?.enabled !== true && configuration.ai?.enabled !== true && configuration.browser?.enabled !== true && configuration.auth?.provider !== "better-auth";
|
|
55348
55841
|
if (framework === "nextjs")
|
|
55349
55842
|
return mode === "edge";
|
|
55350
55843
|
if (framework === "vite-static")
|
|
55351
55844
|
return mode === (viteCompanionRequired(configuration) ? "edge" : "static");
|
|
55352
|
-
return mode === "edge" || mode === "static" && !crons && configuration.storage === void 0 && configuration.ai?.enabled !== true;
|
|
55845
|
+
return mode === "edge" || mode === "static" && !crons && configuration.storage === void 0 && configuration.ai?.enabled !== true && configuration.browser?.enabled !== true;
|
|
55353
55846
|
}
|
|
55354
55847
|
function betterAuthFindings(configuration, manifest2) {
|
|
55355
55848
|
return configuration.auth?.provider === "better-auth" && declaredDependency(manifest2, "better-auth", "any") !== MANAGED_BETTER_AUTH_VERSION ? [diagnostic({ code: "better_auth_version_required", path: PACKAGE_MANIFEST2 })] : [];
|
|
@@ -56269,6 +56762,10 @@ var MAIL_RUNTIME_BINDINGS = Object.freeze([
|
|
|
56269
56762
|
"OHMYHOST_PROJECT_ID"
|
|
56270
56763
|
]);
|
|
56271
56764
|
var AI_RUNTIME_BINDINGS = Object.freeze(["OHMYHOST_AI_BASE_URL", "OHMYHOST_AI_KEY"]);
|
|
56765
|
+
var BROWSER_RUNTIME_BINDINGS = Object.freeze([
|
|
56766
|
+
"OHMYHOST_BROWSER_BASE_URL",
|
|
56767
|
+
"OHMYHOST_BROWSER_KEY"
|
|
56768
|
+
]);
|
|
56272
56769
|
var CUSTOMER_RUNTIME_SOURCE = `npm:@amerged/ohmyhost-runtime@${package_default.version}`;
|
|
56273
56770
|
var PENDING_CHECKS = Object.freeze({
|
|
56274
56771
|
installed_version: "compatibility.frameworks lists a version range that no lockfile ohmyho.st reads (package-lock.json v2/v3 or pnpm-lock.yaml v6/v9) resolves. Planning admits it; after the frozen install, the build checks the installed version against the same security minimum.",
|
|
@@ -56363,6 +56860,7 @@ async function initializeRepository(input) {
|
|
|
56363
56860
|
const targetBetterAuth = existingConfiguration?.auth?.provider === "better-auth";
|
|
56364
56861
|
const targetMail = existingConfiguration?.mail?.enabled === true;
|
|
56365
56862
|
const targetAi = existingConfiguration?.ai?.enabled === true;
|
|
56863
|
+
const targetBrowser = existingConfiguration?.browser?.enabled === true;
|
|
56366
56864
|
const targetStorage = r2 || supabaseStorage;
|
|
56367
56865
|
const tanStackRuntime = framework !== "tanstack-start" && framework !== "astro" ? null : targetStorage ? "edge" : framework === "astro" ? dependencies.has("@astrojs/cloudflare") ? "edge" : "static" : proposedTanStackRuntime(frameworkConfig, dependencies);
|
|
56368
56866
|
const companionRequired = framework === "vite" && (existingConfiguration === null ? databaseProvider !== "none" || targetBetterAuth || targetMail || targetStorage || edgeFunctionNames.size > 0 || applicationFiles.includes(VITE_COMPANION_ENTRY_PATH) : viteCompanionRequired(existingConfiguration));
|
|
@@ -56386,6 +56884,7 @@ async function initializeRepository(input) {
|
|
|
56386
56884
|
auth: targetBetterAuth,
|
|
56387
56885
|
mail: targetMail,
|
|
56388
56886
|
ai: targetAi,
|
|
56887
|
+
browser: targetBrowser,
|
|
56389
56888
|
storage: targetStorage
|
|
56390
56889
|
});
|
|
56391
56890
|
const companion = companionRequired ? viteCompanionScaffold(applicationFiles, capabilities) : null;
|
|
@@ -56900,7 +57399,7 @@ async function hasDirectApplicationShape(repositoryRoot, repositoryFiles, applic
|
|
|
56900
57399
|
}
|
|
56901
57400
|
async function isRealDirectory(path2) {
|
|
56902
57401
|
try {
|
|
56903
|
-
const information = await
|
|
57402
|
+
const information = await lstat3(path2);
|
|
56904
57403
|
return information.isDirectory() && !information.isSymbolicLink();
|
|
56905
57404
|
} catch {
|
|
56906
57405
|
return false;
|
|
@@ -56928,7 +57427,7 @@ function hasDirectSafeBuildCommand(manifest2, framework) {
|
|
|
56928
57427
|
async function assertRepositoryRoot(root) {
|
|
56929
57428
|
let information;
|
|
56930
57429
|
try {
|
|
56931
|
-
information = await
|
|
57430
|
+
information = await lstat3(root);
|
|
56932
57431
|
} catch {
|
|
56933
57432
|
throw new RepositoryInitError("repository_not_found", "Repository directory does not exist");
|
|
56934
57433
|
}
|
|
@@ -56941,7 +57440,7 @@ async function assertRepositoryRoot(root) {
|
|
|
56941
57440
|
for (let ancestor = root; ; ancestor = dirname3(ancestor)) {
|
|
56942
57441
|
let marker;
|
|
56943
57442
|
try {
|
|
56944
|
-
marker = await
|
|
57443
|
+
marker = await lstat3(resolve5(ancestor, ".git"));
|
|
56945
57444
|
} catch (error) {
|
|
56946
57445
|
if (error.code !== "ENOENT") {
|
|
56947
57446
|
throw new RepositoryInitError("repository_unreadable", "Could not determine the Git repository root");
|
|
@@ -57194,7 +57693,8 @@ function runtimeContract(capabilities) {
|
|
|
57194
57693
|
...capabilities.storage ? STORAGE_RUNTIME_BINDINGS : [],
|
|
57195
57694
|
...capabilities.database ? ["OHMYHOST_DATABASE"] : [],
|
|
57196
57695
|
...capabilities.mail ? MAIL_RUNTIME_BINDINGS : [],
|
|
57197
|
-
...capabilities.ai ? AI_RUNTIME_BINDINGS : []
|
|
57696
|
+
...capabilities.ai ? AI_RUNTIME_BINDINGS : [],
|
|
57697
|
+
...capabilities.browser ? BROWSER_RUNTIME_BINDINGS : []
|
|
57198
57698
|
])
|
|
57199
57699
|
].sort()),
|
|
57200
57700
|
packages: Object.freeze({
|
|
@@ -58812,6 +59312,8 @@ export {
|
|
|
58812
59312
|
completeLocalSourcePublication,
|
|
58813
59313
|
inspectLocalSourcePublications,
|
|
58814
59314
|
UserTokenFileError,
|
|
59315
|
+
PrivateSecretFileError,
|
|
59316
|
+
preparePrivateSecretFile,
|
|
58815
59317
|
prepareUserTokenFile,
|
|
58816
59318
|
ProfileNameConflictError,
|
|
58817
59319
|
ProfileLimitError,
|
|
@@ -58859,6 +59361,7 @@ export {
|
|
|
58859
59361
|
ProductCli,
|
|
58860
59362
|
ACCOUNT_SENSITIVE_PROBLEMS,
|
|
58861
59363
|
classifyCliFailure,
|
|
59364
|
+
readPrivateWebhookCreateRequest,
|
|
58862
59365
|
executeNativeAuth,
|
|
58863
59366
|
GeneratedSdkManagedSourceApi,
|
|
58864
59367
|
assertDatabaseTableAnswer,
|