@vibiz/cli 0.3.14 → 0.3.16
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.
|
@@ -621,6 +621,16 @@ var Vibiz = class {
|
|
|
621
621
|
remove: (id, domain) => this.request(`/projects/${id}/domains/${encodeURIComponent(domain)}`, {
|
|
622
622
|
method: "DELETE"
|
|
623
623
|
}),
|
|
624
|
+
/**
|
|
625
|
+
* Moving to a new address (full-access keys): every URL on `domain`
|
|
626
|
+
* answers a permanent redirect to the same path on `to`, another live
|
|
627
|
+
* domain of the project, so search engines carry its pages over. `null`
|
|
628
|
+
* stops it. A redirecting domain is never the project's primary.
|
|
629
|
+
*/
|
|
630
|
+
redirect: (id, domain, to) => this.request(`/projects/${id}/domains/${encodeURIComponent(domain)}`, {
|
|
631
|
+
method: "PATCH",
|
|
632
|
+
body: { redirect_to: to }
|
|
633
|
+
}),
|
|
624
634
|
/**
|
|
625
635
|
* Full-access keys: buy a domain from the account's credits; it serves on this
|
|
626
636
|
* project once registered. A Limited key answers `owner_only` with the
|
|
@@ -1222,6 +1232,22 @@ var Vibiz = class {
|
|
|
1222
1232
|
const tail = qs2.size ? `?${qs2}` : "";
|
|
1223
1233
|
return this.request(`/ai/models${tail}`).then((r) => r.data);
|
|
1224
1234
|
},
|
|
1235
|
+
/**
|
|
1236
|
+
* Every image and video model that runs by its id (Kling, Seedance,
|
|
1237
|
+
* face swap, upscalers…), with its live price. Run one with
|
|
1238
|
+
* `jobs.create({ type, model: id, input: { prompt, model_input } })`:
|
|
1239
|
+
* charged from credits.
|
|
1240
|
+
*/
|
|
1241
|
+
mediaModels: (opts = {}) => {
|
|
1242
|
+
const qs2 = new URLSearchParams();
|
|
1243
|
+
if (opts.q) qs2.set("q", opts.q);
|
|
1244
|
+
if (opts.category) qs2.set("category", opts.category);
|
|
1245
|
+
if (opts.limit) qs2.set("limit", String(opts.limit));
|
|
1246
|
+
const tail = qs2.size ? `?${qs2}` : "";
|
|
1247
|
+
return this.request(`/ai/media-models${tail}`).then(
|
|
1248
|
+
(r) => r.data
|
|
1249
|
+
);
|
|
1250
|
+
},
|
|
1225
1251
|
jobs: {
|
|
1226
1252
|
create: (input, opts = {}) => this.request("/ai/jobs", { method: "POST", body: input, ...opts }),
|
|
1227
1253
|
get: (id) => this.request(`/ai/jobs/${id}`),
|
|
@@ -1981,7 +2007,7 @@ function formatMinor(minor, currency) {
|
|
|
1981
2007
|
}
|
|
1982
2008
|
|
|
1983
2009
|
// packages/sdk/src/one-key.ts
|
|
1984
|
-
var APP_SDK_VERSION = "0.3.
|
|
2010
|
+
var APP_SDK_VERSION = "0.3.16";
|
|
1985
2011
|
var ONE_KEY_GIVES = "database, sign-in, email and inbox, AI models, files, payments, analytics with session replays, web data, social, phone and connectors";
|
|
1986
2012
|
function oneKeyMessage(url, host) {
|
|
1987
2013
|
const where = host ?? "your host";
|