@jclvsh/iris 0.5.5 → 0.7.0

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.js CHANGED
@@ -41,9 +41,12 @@ export class IrisClient {
41
41
  "Get a valid API key from https://iris-ai.dev/settings/api-keys");
42
42
  }
43
43
  this.apiKey = apiKey;
44
- // Default to www host. iris-ai.dev apex 307s to www.iris-ai.dev, and fetch
45
- // strips Authorization across the host change → every call returned APIKEY_001.
46
- this.baseUrl = (process.env.IRIS_API_URL || "https://www.iris-ai.dev/api/v1").replace(/\/+$/, "");
44
+ // Default to api.iris-ai.dev (Stripe/GitHub/OpenAI convention). The api host
45
+ // rewrites /<resource> → /api/v1/<resource> via middleware (see iris/src/proxy.ts),
46
+ // so callers no longer pass the /api/v1/ prefix. Override via IRIS_API_URL if needed.
47
+ // Older versions (≤0.5.5) defaulted to https://www.iris-ai.dev/api/v1 — that host
48
+ // still responds, but the api host is canonical going forward.
49
+ this.baseUrl = (process.env.IRIS_API_URL || "https://api.iris-ai.dev").replace(/\/+$/, "");
47
50
  }
48
51
  async get(path, params) {
49
52
  const url = new URL(`${this.baseUrl}${path}`);
package/dist/types.d.ts CHANGED
@@ -1,13 +1,11 @@
1
1
  export interface PaginatedResponse<T> {
2
2
  success: true;
3
3
  data: T[];
4
- meta: {
5
- pagination: {
6
- page: number;
7
- page_size: number;
8
- total: number;
9
- total_pages: number;
10
- };
4
+ pagination: {
5
+ page: number;
6
+ page_size: number;
7
+ total: number;
8
+ total_pages: number;
11
9
  };
12
10
  }
13
11
  export interface DataResponse<T> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jclvsh/iris",
3
- "version": "0.5.5",
3
+ "version": "0.7.0",
4
4
  "description": "MCP server for the Iris API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",