@sovant/sdk 1.4.3 → 1.4.4

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
@@ -276,7 +276,8 @@ const pinned = await sv.memory.list({
276
276
 
277
277
  ## Versioning & Changelog
278
278
 
279
- - **Current release:** 1.4.3
279
+ - **Current release:** 1.4.4
280
+ - Version 1.4.4 — add `X-Sovant-Client` header for SDK telemetry
280
281
  - Version 1.4.3 — add `memory.list()` for filtered pagination
281
282
  - Version 1.4.2 — README sync
282
283
  - Version 1.4.1 — CJS export fix
package/dist/index.cjs CHANGED
@@ -20,10 +20,12 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
+ SDK_VERSION: () => SDK_VERSION,
23
24
  Sovant: () => Sovant,
24
25
  SovantError: () => SovantError
25
26
  });
26
27
  module.exports = __toCommonJS(index_exports);
28
+ var SDK_VERSION = "1.4.4";
27
29
  var Sovant = class {
28
30
  apiKey;
29
31
  baseUrl;
@@ -64,6 +66,7 @@ var Sovant = class {
64
66
  headers: {
65
67
  "content-type": "application/json",
66
68
  authorization: `Bearer ${this.apiKey}`,
69
+ "x-sovant-client": `ts-sdk/${SDK_VERSION}`,
67
70
  ...init.headers || {}
68
71
  },
69
72
  signal: ctl.signal
@@ -327,6 +330,7 @@ var SovantError = class extends Error {
327
330
  };
328
331
  // Annotate the CommonJS export names for ESM import in node:
329
332
  0 && (module.exports = {
333
+ SDK_VERSION,
330
334
  Sovant,
331
335
  SovantError
332
336
  });
package/dist/index.d.cts CHANGED
@@ -1,3 +1,5 @@
1
+ /** SDK version — used for X-Sovant-Client header */
2
+ declare const SDK_VERSION = "1.4.4";
1
3
  type SovantClientOptions = {
2
4
  apiKey: string;
3
5
  baseUrl?: string;
@@ -270,4 +272,4 @@ declare class SovantError extends Error {
270
272
  constructor(message: string, code: string, status?: number, details?: any);
271
273
  }
272
274
 
273
- export { type Memory, type MemoryListParams, type MemoryListResponse, Sovant, type SovantClientOptions, SovantError };
275
+ export { type Memory, type MemoryListParams, type MemoryListResponse, SDK_VERSION, Sovant, type SovantClientOptions, SovantError };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ /** SDK version — used for X-Sovant-Client header */
2
+ declare const SDK_VERSION = "1.4.4";
1
3
  type SovantClientOptions = {
2
4
  apiKey: string;
3
5
  baseUrl?: string;
@@ -270,4 +272,4 @@ declare class SovantError extends Error {
270
272
  constructor(message: string, code: string, status?: number, details?: any);
271
273
  }
272
274
 
273
- export { type Memory, type MemoryListParams, type MemoryListResponse, Sovant, type SovantClientOptions, SovantError };
275
+ export { type Memory, type MemoryListParams, type MemoryListResponse, SDK_VERSION, Sovant, type SovantClientOptions, SovantError };
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  // src/index.ts
2
+ var SDK_VERSION = "1.4.4";
2
3
  var Sovant = class {
3
4
  apiKey;
4
5
  baseUrl;
@@ -39,6 +40,7 @@ var Sovant = class {
39
40
  headers: {
40
41
  "content-type": "application/json",
41
42
  authorization: `Bearer ${this.apiKey}`,
43
+ "x-sovant-client": `ts-sdk/${SDK_VERSION}`,
42
44
  ...init.headers || {}
43
45
  },
44
46
  signal: ctl.signal
@@ -301,6 +303,7 @@ var SovantError = class extends Error {
301
303
  }
302
304
  };
303
305
  export {
306
+ SDK_VERSION,
304
307
  Sovant,
305
308
  SovantError
306
309
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sovant/sdk",
3
- "version": "1.4.3",
3
+ "version": "1.4.4",
4
4
  "description": "Official Sovant Memory-as-a-Service SDK for JavaScript and TypeScript",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",