@vibiz/sdk 0.3.8 → 0.3.9

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/client.d.ts CHANGED
@@ -724,6 +724,14 @@ export declare class Vibiz {
724
724
  url: string;
725
725
  console_url?: string;
726
726
  }>;
727
+ /**
728
+ * Owner: a Google service-account key (the JSON file, as text or parsed),
729
+ * so nobody signs in with Google. `owner_email` is added as an owner of
730
+ * every site, so they show in that person's own Search Console.
731
+ */
732
+ addGoogleKey: (key: string | Record<string, unknown>, opts?: {
733
+ owner_email?: string;
734
+ }) => Promise<SearchConnectionList>;
727
735
  /** Owner: the Bing Webmaster API key, for every project. */
728
736
  connectBing: (apiKey: string) => Promise<SearchConnectionList>;
729
737
  /** Owner: disconnect a Google account or the Bing key. */
package/dist/index.js CHANGED
@@ -846,6 +846,15 @@ var Vibiz = class {
846
846
  connections: () => this.request("/search/connections"),
847
847
  /** Owner: Google's consent page to connect a Google account (open `url` in a browser). */
848
848
  connectGoogle: () => this.request("/search/google/connect", { method: "POST" }),
849
+ /**
850
+ * Owner: a Google service-account key (the JSON file, as text or parsed),
851
+ * so nobody signs in with Google. `owner_email` is added as an owner of
852
+ * every site, so they show in that person's own Search Console.
853
+ */
854
+ addGoogleKey: (key, opts = {}) => this.request("/search/google/key", {
855
+ method: "POST",
856
+ body: { key, ...opts }
857
+ }),
849
858
  /** Owner: the Bing Webmaster API key, for every project. */
850
859
  connectBing: (apiKey) => this.request("/search/bing", {
851
860
  method: "POST",
@@ -1932,7 +1941,7 @@ function formatMinor(minor, currency) {
1932
1941
  }
1933
1942
 
1934
1943
  // packages/sdk/src/one-key.ts
1935
- var APP_SDK_VERSION = "0.3.8";
1944
+ var APP_SDK_VERSION = "0.3.9";
1936
1945
  var ONE_KEY_GIVES = "database, sign-in, email and inbox, AI models, files, payments, analytics with session replays, web data, social, phone and connectors";
1937
1946
  function oneKeyMessage(url, host) {
1938
1947
  const where = host ?? "your host";
package/dist/one-key.d.ts CHANGED
@@ -10,7 +10,7 @@
10
10
  * (`npm install --save-exact @vibiz/app@<this>`). A test keeps it, the skills
11
11
  * and the docs equal to packages/app/package.json.
12
12
  */
13
- export declare const APP_SDK_VERSION = "0.3.8";
13
+ export declare const APP_SDK_VERSION = "0.3.9";
14
14
  /** Everything one app key reaches. */
15
15
  export declare const ONE_KEY_GIVES = "database, sign-in, email and inbox, AI models, files, payments, analytics with session replays, web data, social, phone and connectors";
16
16
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibiz/sdk",
3
- "version": "0.3.8",
3
+ "version": "0.3.9",
4
4
  "description": "Typed client for the Vibiz Stack API: projects, hosting, databases, sign-in, email, AI, payments and more.",
5
5
  "keywords": [
6
6
  "vibiz",