@vibiz/cli 0.3.0 → 0.3.2

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.
@@ -1258,6 +1258,23 @@ var Vibiz = class {
1258
1258
  method: "POST",
1259
1259
  body: input
1260
1260
  }),
1261
+ /**
1262
+ * A bought domain's DNS records (we host its DNS): any key lists them;
1263
+ * adding and removing need a full-access key. Records Vibiz keeps are
1264
+ * `managed` and are removed only with `force`.
1265
+ */
1266
+ records: {
1267
+ list: (domain) => this.request(`/domains/${encodeURIComponent(domain)}/records`),
1268
+ /** Idempotent: the same type, name and value already there comes back (`created: false`). */
1269
+ add: (domain, input) => this.request(
1270
+ `/domains/${encodeURIComponent(domain)}/records`,
1271
+ { method: "POST", body: input }
1272
+ ),
1273
+ remove: (domain, id, opts = {}) => this.request(
1274
+ `/domains/${encodeURIComponent(domain)}/records/${encodeURIComponent(id)}${opts.force ? "?force=1" : ""}`,
1275
+ { method: "DELETE" }
1276
+ )
1277
+ },
1261
1278
  /** Buy for the account: on `project_id` once registered, or none to use later. */
1262
1279
  buy: (input) => this.request("/domains/buy", { method: "POST", body: input }),
1263
1280
  owner: () => this.request("/domains/owner"),
@@ -1846,7 +1863,7 @@ function formatMinor(minor, currency) {
1846
1863
  }
1847
1864
 
1848
1865
  // packages/sdk/src/one-key.ts
1849
- var APP_SDK_VERSION = "0.3.0";
1866
+ var APP_SDK_VERSION = "0.3.2";
1850
1867
  var ONE_KEY_GIVES = "database, sign-in, email and inbox, AI models, files, payments, analytics with session replays, web data, social, phone and connectors";
1851
1868
  function oneKeyMessage(url, host) {
1852
1869
  const where = host ?? "your host";