@tryvira/sdk 0.1.21 → 0.1.23

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -68,7 +68,10 @@ var ViraClient = class {
68
68
  ...this.defaultHeaders
69
69
  };
70
70
  if (request.body) headers["content-type"] = "application/json";
71
- if (this.apiKey) headers.authorization = `Bearer ${this.apiKey}`;
71
+ if (this.apiKey) {
72
+ headers.authorization = `Bearer ${this.apiKey}`;
73
+ headers["x-vira-api-key"] = this.apiKey;
74
+ }
72
75
  if (options.idempotencyKey)
73
76
  headers["idempotency-key"] = options.idempotencyKey;
74
77
  const retryable = request.method === "GET" || Boolean(options.idempotencyKey);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvira/sdk",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
4
4
  "description": "Typed Vira SDK for connect-once, observation and governed runtime execution.",
5
5
  "keywords": ["vira", "ai-governance", "ai-runtime", "semantic-routing"],
6
6
  "engines": {"node": ">=20"},