@brandazine/solari-sdk 0.2.0 → 0.2.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.
package/README.md CHANGED
@@ -18,7 +18,7 @@ const brand = await solari.tools.insight.instagram.brand.overview({ username: "n
18
18
  const tools = await solari.listTools();
19
19
  ```
20
20
 
21
- Get a token with `solari auth token` on a machine that is signed in to the [solari CLI](https://solari.sh/docs), or pass a token you already hold from an MCP connector. With no `token` option the client reads `SOLARI_TOKEN`.
21
+ Create an API key on your [SOLARI My page](https://solari.brandazine.com/me/api-keys) (long-lived, `solari_sk_…`, shown once), or mint a short-lived token with `solari auth token` on a machine signed in to the [solari CLI](https://solari.sh/docs). With no `token` option the client reads `SOLARI_TOKEN`.
22
22
 
23
23
  ## Typed tools
24
24
 
package/dist/index.d.ts CHANGED
@@ -1,8 +1,8 @@
1
- import type { SolariToolMap, SolariToolName, SolariTools, SolariToolsWithoutRequiredArgs } from "./tools.generated";
2
- export * from "./tools.generated";
1
+ import type { SolariToolMap, SolariToolName, SolariTools, SolariToolsWithoutRequiredArgs } from "./tools.generated.js";
2
+ export * from "./tools.generated.js";
3
3
  export declare const DEFAULT_BASE_URL = "https://solari.sh";
4
4
  export declare const API_PREFIX = "/mcp/api/v1";
5
- export declare const SDK_VERSION = "0.2.0";
5
+ export declare const SDK_VERSION = "0.2.2";
6
6
  export declare const TOKEN_ENV = "SOLARI_TOKEN";
7
7
  export interface SolariTool {
8
8
  name: string;
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
- export * from "./tools.generated";
1
+ export * from "./tools.generated.js";
2
2
  export const DEFAULT_BASE_URL = "https://solari.sh";
3
3
  export const API_PREFIX = "/mcp/api/v1";
4
- export const SDK_VERSION = "0.2.0";
4
+ export const SDK_VERSION = "0.2.2";
5
5
  export const TOKEN_ENV = "SOLARI_TOKEN";
6
6
  const DEFAULT_TIMEOUT_MS = 150_000;
7
7
  export class SolariError extends Error {
@@ -90,7 +90,7 @@ export class Solari {
90
90
  throw new SolariError({
91
91
  status: 0,
92
92
  code: "missing_token",
93
- message: `no access token: pass { token } or set ${TOKEN_ENV} (mint one with "solari auth token")`,
93
+ message: `no access token: pass { token } or set ${TOKEN_ENV} (create an API key at https://solari.brandazine.com/me/api-keys, or run "solari auth token")`,
94
94
  });
95
95
  }
96
96
  this.token = token;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brandazine/solari-sdk",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "TypeScript client for the SOLARI API — creator and brand intelligence across Instagram and TikTok.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://solari.sh/api",