@tryvira/sdk 0.1.29 → 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
  }
@@ -257,6 +262,13 @@ var ViraClient = class {
257
262
  path: `/v1/connections/${encodeURIComponent(connectionId)}/health`
258
263
  });
259
264
  }
265
+ getConnection(connectionId) {
266
+ required(connectionId, "SDK_CONNECTION_ID_REQUIRED");
267
+ return this.request({
268
+ method: "GET",
269
+ path: `/v1/connections/${encodeURIComponent(connectionId)}`
270
+ });
271
+ }
260
272
  listSystemConnections(systemId) {
261
273
  required(systemId, "SDK_SYSTEM_ID_REQUIRED");
262
274
  return this.request({
@@ -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;
@@ -224,6 +230,7 @@ export declare class ViraClient {
224
230
  idempotencyKey?: string;
225
231
  }): Promise<ViraResponse<ClientBody> | null>;
226
232
  connectionHealth(connectionId: string): Promise<ViraResponse<ClientBody> | null>;
233
+ getConnection(connectionId: string): Promise<ViraResponse<ClientBody> | null>;
227
234
  listSystemConnections(systemId: string): Promise<ViraResponse<ClientBody> | null>;
228
235
  inventory(systemId: string): Promise<ViraResponse<ClientBody> | null>;
229
236
  listPacks(): Promise<ViraResponse<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvira/sdk",
3
- "version": "0.1.29",
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"},