@joai/sdk 7.0.1 → 7.0.3

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/index.d.mts CHANGED
@@ -2106,6 +2106,7 @@ interface JoAiClientConfig {
2106
2106
  apiToken?: string;
2107
2107
  team?: string;
2108
2108
  env?: AppEnv;
2109
+ locale?: string;
2109
2110
  agentAuthKey?: string;
2110
2111
  cache?: CacheConfig;
2111
2112
  buildSecret?: string;
package/dist/index.mjs CHANGED
@@ -3251,6 +3251,7 @@ var JoAiClient = class {
3251
3251
  const apiBaseUrl = getApiBaseUrl(config.env ?? "mainnet");
3252
3252
  const headers = {};
3253
3253
  if (config.team) headers["X-Team"] = config.team;
3254
+ if (config.locale) headers["Accept-Language"] = config.locale;
3254
3255
  if (config.agentAuthKey) headers["X-Agent-Auth-Key"] = config.agentAuthKey;
3255
3256
  if (config.buildSecret) headers["X-Build-Secret"] = config.buildSecret;
3256
3257
  const http = new HttpService(`${apiBaseUrl}/v1`, void 0, config.apiToken, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joai/sdk",
3
- "version": "7.0.1",
3
+ "version": "7.0.3",
4
4
  "description": "JoAi public API SDK — build with your AI agents",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -35,11 +35,11 @@
35
35
  "test": "jest --config jest.config.js"
36
36
  },
37
37
  "dependencies": {
38
- "@joai/core": "^4.15.1",
38
+ "@joai/core": "^4.15.2",
39
39
  "@joai/warps": "*"
40
40
  },
41
41
  "peerDependencies": {
42
- "@joai/core": "^4.15.1"
42
+ "@joai/core": "^4.15.2"
43
43
  },
44
44
  "devDependencies": {
45
45
  "tsdown": "^0.21.0",