@tryvira/sdk 0.1.74 → 0.1.75

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
@@ -394,6 +394,13 @@ var ViraClient = class {
394
394
  query: { ...options.reviewState ? { reviewState: options.reviewState } : {}, ...listQuery(options) }
395
395
  });
396
396
  }
397
+ async reviewDiscoveryCandidate(kind, key, input, options = {}) {
398
+ required(kind, "SDK_DISCOVERY_CANDIDATE_KIND_REQUIRED");
399
+ required(key, "SDK_DISCOVERY_CANDIDATE_KEY_REQUIRED");
400
+ required(typeof input?.decision === "string" ? input.decision : "", "SDK_DISCOVERY_CANDIDATE_DECISION_REQUIRED");
401
+ const path = `/v1/discovery/candidates/${encodeURIComponent(kind)}/${encodeURIComponent(key)}/review`;
402
+ return this.request({ method: "POST", path, body: input }, { idempotencyKey: options.idempotencyKey ?? await contentIdempotencyKey(`sdk:discovery-review:${kind}:${key}`, input) });
403
+ }
397
404
  async createSignalDiscoveryProposal(input, options = {}) {
398
405
  return this.request({ method: "POST", path: "/v1/signals/discovery-proposals", body: input }, { idempotencyKey: options.idempotencyKey ?? await contentIdempotencyKey("sdk:signal-discovery-proposal", input) });
399
406
  }
@@ -331,6 +331,9 @@ export declare class ViraClient {
331
331
  }): Promise<ViraResponse<{
332
332
  candidates: readonly ClientBody[];
333
333
  }> | null>;
334
+ reviewDiscoveryCandidate(kind: string, key: string, input: ClientBody, options?: {
335
+ idempotencyKey?: string;
336
+ }): Promise<ViraResponse<ClientBody> | null>;
334
337
  createSignalDiscoveryProposal(input: ClientBody, options?: {
335
338
  idempotencyKey?: string;
336
339
  }): Promise<ViraResponse<ClientBody> | null>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryvira/sdk",
3
- "version": "0.1.74",
3
+ "version": "0.1.75",
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"},