@veltrosecurity/sdk 0.20.0 → 0.24.0

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
@@ -58,6 +58,12 @@ await warden.runbooks.list();
58
58
  VectorFlow's `/api/v1` still wants its service-account key, so pass
59
59
  `new BearerToken("vf_live_…")` to `VectorFlowClient`.
60
60
 
61
+ ## Example
62
+
63
+ [`examples/triage.ts`](examples/triage.ts) lists open Warden cases and new critical or high CHAD alerts
64
+ with a personal access token from `VELTRO_TOKEN`. It's read-only and isn't
65
+ part of the published package.
66
+
61
67
  ## Calling convention
62
68
 
63
69
  Every operation is a method on a resource namespace: path parameters are
package/dist/index.cjs CHANGED
@@ -53,7 +53,7 @@ var DEFAULT_MAX_RESPONSE_BYTES = 32 * 1024 * 1024;
53
53
  var DEFAULT_RETRIES = 2;
54
54
  var RETRY_STATUSES = /* @__PURE__ */ new Set([429, 502, 503, 504]);
55
55
  var RETRY_METHODS = /* @__PURE__ */ new Set(["GET", "HEAD", "OPTIONS", "PUT", "DELETE"]);
56
- var USER_AGENT = "veltro-sdk/0.20.0 (+https://github.com/veltrosecurity/veltro)";
56
+ var USER_AGENT = "veltro-sdk/0.24.0 (+https://github.com/veltrosecurity/veltro)";
57
57
  var VeltroError = class extends Error {
58
58
  constructor(message) {
59
59
  super(message);
@@ -1846,6 +1846,10 @@ var ChadRules = class extends Resource {
1846
1846
  listRuleTransitions(ruleId, options = {}) {
1847
1847
  return this.request("GET", `/api/rules/${quoteSegment(ruleId)}/transitions`, options);
1848
1848
  }
1849
+ /** GET /api/rules/{rule_id}/versions — List Rule Versions. */
1850
+ listRuleVersions(ruleId, options = {}) {
1851
+ return this.request("GET", `/api/rules/${quoteSegment(ruleId)}/versions`, options);
1852
+ }
1849
1853
  /** POST /api/rules/{rule_id}/canary — Place Rule In Canary. */
1850
1854
  placeRuleInCanary(ruleId, options = {}) {
1851
1855
  return this.request("POST", `/api/rules/${quoteSegment(ruleId)}/canary`, options);
@@ -3527,7 +3531,7 @@ var VeltroClient = class _VeltroClient {
3527
3531
  };
3528
3532
 
3529
3533
  // src/index.ts
3530
- var VERSION = "0.20.0";
3534
+ var VERSION = "0.24.0";
3531
3535
  // Annotate the CommonJS export names for ESM import in node:
3532
3536
  0 && (module.exports = {
3533
3537
  BearerToken,