@tryvira/sdk 0.1.30 → 0.1.31

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.js CHANGED
@@ -197,6 +197,11 @@ var ViraClient = class {
197
197
  trace(event, options = {}) {
198
198
  return this.observe({ ...event, eventType: "model.response" }, options);
199
199
  }
200
+ searchRuntimeTraces(query = {}) {
201
+ const params = new URLSearchParams();
202
+ for (const [key, value] of Object.entries(query)) if (value !== void 0) params.set(key, String(value));
203
+ return this.request({ method: "GET", path: `/v1/runtime/traces/search${params.size ? `?${params.toString()}` : ""}` });
204
+ }
200
205
  outcome(event, options = {}) {
201
206
  return this.observe({ ...event, eventType: "business.outcome" }, options);
202
207
  }
@@ -176,6 +176,12 @@ export declare class ViraClient {
176
176
  }, options?: {
177
177
  idempotencyKey?: string;
178
178
  }): Promise<ViraResponse<ClientBody> | null>;
179
+ searchRuntimeTraces(query?: {
180
+ limit?: number;
181
+ cursor?: string;
182
+ query?: string;
183
+ event?: string;
184
+ }): Promise<ViraResponse<ClientBody> | null>;
179
185
  outcome(event: {
180
186
  eventId: string;
181
187
  aiSystemId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvira/sdk",
3
- "version": "0.1.30",
3
+ "version": "0.1.31",
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"},