@veltrosecurity/sdk 0.15.14 → 0.15.17

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.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.15.14 (+https://github.com/veltrosecurity/veltro)";
56
+ var USER_AGENT = "veltro-sdk/0.15.17 (+https://github.com/veltrosecurity/veltro)";
57
57
  var VeltroError = class extends Error {
58
58
  constructor(message) {
59
59
  super(message);
@@ -1550,6 +1550,10 @@ var ChadMode = class extends Resource {
1550
1550
  }
1551
1551
  };
1552
1552
  var ChadNotifications = class extends Resource {
1553
+ /** DELETE /api/notifications/unmoved/{target_id} — Dismiss Unmoved Target. */
1554
+ dismissUnmovedTarget(targetId, options = {}) {
1555
+ return this.request("DELETE", `/api/notifications/unmoved/${quoteSegment(targetId)}`, options);
1556
+ }
1553
1557
  /** GET /api/notifications/settings — Get Mandatory Comments Settings. */
1554
1558
  getMandatoryCommentsSettings(options = {}) {
1555
1559
  return this.request("GET", "/api/notifications/settings", options);
@@ -1558,25 +1562,21 @@ var ChadNotifications = class extends Resource {
1558
1562
  getMandatoryCommentsSettingsPublic(options = {}) {
1559
1563
  return this.request("GET", "/api/notifications/settings/public", options);
1560
1564
  }
1561
- /** GET /api/notifications — Get Notification Settings. */
1562
- getNotificationSettings(options = {}) {
1565
+ /** GET /api/notifications — Get Notification Config. */
1566
+ getNotificationConfig(options = {}) {
1563
1567
  return this.request("GET", "/api/notifications", options);
1564
1568
  }
1565
1569
  /** GET /api/notifications/recent — Get Recent Notifications. */
1566
1570
  getRecent(options = {}) {
1567
1571
  return this.request("GET", "/api/notifications/recent", options);
1568
1572
  }
1569
- /** PUT /api/notifications/alerts — Update Alert Notification. */
1570
- updateAlert(options = {}) {
1571
- return this.request("PUT", "/api/notifications/alerts", options);
1572
- }
1573
1573
  /** PUT /api/notifications/settings — Update Mandatory Comments Settings. */
1574
1574
  updateMandatoryCommentsSettings(options = {}) {
1575
1575
  return this.request("PUT", "/api/notifications/settings", options);
1576
1576
  }
1577
- /** PUT /api/notifications/system — Update System Notification. */
1578
- updateSystem(options = {}) {
1579
- return this.request("PUT", "/api/notifications/system", options);
1577
+ /** PUT /api/notifications — Update Notification Config. */
1578
+ updateNotificationConfig(options = {}) {
1579
+ return this.request("PUT", "/api/notifications", options);
1580
1580
  }
1581
1581
  };
1582
1582
  var ChadOverlays = class extends Resource {
@@ -1958,14 +1958,6 @@ var ChadSavedViews = class extends Resource {
1958
1958
  }
1959
1959
  };
1960
1960
  var ChadSettings = class extends Resource {
1961
- /** GET /api/settings/version/check — Check For Updates. */
1962
- checkForUpdates(options = {}) {
1963
- return this.request("GET", "/api/settings/version/check", options);
1964
- }
1965
- /** POST /api/settings/version/check-now — Check For Updates Now. */
1966
- checkForUpdatesNow(options = {}) {
1967
- return this.request("POST", "/api/settings/version/check-now", options);
1968
- }
1969
1961
  /** POST /api/settings/geoip/download — Download Geoip Database. */
1970
1962
  downloadGeoipDatabase(options = {}) {
1971
1963
  return this.request("POST", "/api/settings/geoip/download", options);
@@ -2022,10 +2014,6 @@ var ChadSettings = class extends Resource {
2022
2014
  testOpensearchConnection(options = {}) {
2023
2015
  return this.request("POST", "/api/settings/opensearch/test", options);
2024
2016
  }
2025
- /** POST /api/settings/webhooks/test — Test Webhook. */
2026
- testWebhook(options = {}) {
2027
- return this.request("POST", "/api/settings/webhooks/test", options);
2028
- }
2029
2017
  /** PUT /api/settings/{key} — Update Setting. */
2030
2018
  update(key, options = {}) {
2031
2019
  return this.request("PUT", `/api/settings/${quoteSegment(key)}`, options);
@@ -2293,32 +2281,6 @@ var ChadWarden = class extends Resource {
2293
2281
  return this.request("PUT", "/api/warden/config", options);
2294
2282
  }
2295
2283
  };
2296
- var ChadWebhooks = class extends Resource {
2297
- /** POST /api/webhooks — Create Webhook. */
2298
- create(options = {}) {
2299
- return this.request("POST", "/api/webhooks", options);
2300
- }
2301
- /** DELETE /api/webhooks/{webhook_id} — Delete Webhook. */
2302
- delete(webhookId, options = {}) {
2303
- return this.request("DELETE", `/api/webhooks/${quoteSegment(webhookId)}`, options);
2304
- }
2305
- /** GET /api/webhooks/{webhook_id} — Get Webhook. */
2306
- get(webhookId, options = {}) {
2307
- return this.request("GET", `/api/webhooks/${quoteSegment(webhookId)}`, options);
2308
- }
2309
- /** GET /api/webhooks — List Webhooks. */
2310
- list(options = {}) {
2311
- return this.request("GET", "/api/webhooks", options);
2312
- }
2313
- /** POST /api/webhooks/{webhook_id}/test — Test Webhook. */
2314
- test(webhookId, options = {}) {
2315
- return this.request("POST", `/api/webhooks/${quoteSegment(webhookId)}/test`, options);
2316
- }
2317
- /** PATCH /api/webhooks/{webhook_id} — Update Webhook. */
2318
- update(webhookId, options = {}) {
2319
- return this.request("PATCH", `/api/webhooks/${quoteSegment(webhookId)}`, options);
2320
- }
2321
- };
2322
2284
  var VectorflowAlerts = class extends Resource {
2323
2285
  /** POST /api/v1/alerts/rules — Create alert rule. */
2324
2286
  createAlertRule(options = {}) {
@@ -3315,7 +3277,6 @@ var ChadResources = class {
3315
3277
  tuning;
3316
3278
  users;
3317
3279
  warden;
3318
- webhooks;
3319
3280
  constructor(transport) {
3320
3281
  this.aiCopilot = new ChadAiCopilot(transport);
3321
3282
  this.alerts = new ChadAlerts(transport);
@@ -3374,7 +3335,6 @@ var ChadResources = class {
3374
3335
  this.tuning = new ChadTuning(transport);
3375
3336
  this.users = new ChadUsers(transport);
3376
3337
  this.warden = new ChadWarden(transport);
3377
- this.webhooks = new ChadWebhooks(transport);
3378
3338
  }
3379
3339
  };
3380
3340
  var VectorflowResources = class {
@@ -3587,7 +3547,7 @@ var VeltroClient = class _VeltroClient {
3587
3547
  };
3588
3548
 
3589
3549
  // src/index.ts
3590
- var VERSION = "0.15.14";
3550
+ var VERSION = "0.15.17";
3591
3551
  // Annotate the CommonJS export names for ESM import in node:
3592
3552
  0 && (module.exports = {
3593
3553
  BearerToken,