@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.d.cts CHANGED
@@ -752,20 +752,20 @@ declare class ChadMode extends Resource {
752
752
  }
753
753
  /** `chad` resource `notifications`. */
754
754
  declare class ChadNotifications extends Resource {
755
+ /** DELETE /api/notifications/unmoved/{target_id} — Dismiss Unmoved Target. */
756
+ dismissUnmovedTarget<T = unknown>(targetId: string, options?: RequestOptions): Promise<T>;
755
757
  /** GET /api/notifications/settings — Get Mandatory Comments Settings. */
756
758
  getMandatoryCommentsSettings<T = unknown>(options?: RequestOptions): Promise<T>;
757
759
  /** GET /api/notifications/settings/public — Get Mandatory Comments Settings Public. */
758
760
  getMandatoryCommentsSettingsPublic<T = unknown>(options?: RequestOptions): Promise<T>;
759
- /** GET /api/notifications — Get Notification Settings. */
760
- getNotificationSettings<T = unknown>(options?: RequestOptions): Promise<T>;
761
+ /** GET /api/notifications — Get Notification Config. */
762
+ getNotificationConfig<T = unknown>(options?: RequestOptions): Promise<T>;
761
763
  /** GET /api/notifications/recent — Get Recent Notifications. */
762
764
  getRecent<T = unknown>(options?: RequestOptions): Promise<T>;
763
- /** PUT /api/notifications/alerts — Update Alert Notification. */
764
- updateAlert<T = unknown>(options?: RequestOptions): Promise<T>;
765
765
  /** PUT /api/notifications/settings — Update Mandatory Comments Settings. */
766
766
  updateMandatoryCommentsSettings<T = unknown>(options?: RequestOptions): Promise<T>;
767
- /** PUT /api/notifications/system — Update System Notification. */
768
- updateSystem<T = unknown>(options?: RequestOptions): Promise<T>;
767
+ /** PUT /api/notifications — Update Notification Config. */
768
+ updateNotificationConfig<T = unknown>(options?: RequestOptions): Promise<T>;
769
769
  }
770
770
  /** `chad` resource `overlays`. */
771
771
  declare class ChadOverlays extends Resource {
@@ -980,10 +980,6 @@ declare class ChadSavedViews extends Resource {
980
980
  }
981
981
  /** `chad` resource `settings`. */
982
982
  declare class ChadSettings extends Resource {
983
- /** GET /api/settings/version/check — Check For Updates. */
984
- checkForUpdates<T = unknown>(options?: RequestOptions): Promise<T>;
985
- /** POST /api/settings/version/check-now — Check For Updates Now. */
986
- checkForUpdatesNow<T = unknown>(options?: RequestOptions): Promise<T>;
987
983
  /** POST /api/settings/geoip/download — Download Geoip Database. */
988
984
  downloadGeoipDatabase<T = unknown>(options?: RequestOptions): Promise<T>;
989
985
  /** GET /api/settings/ai/status — Get Ai Status. */
@@ -1012,8 +1008,6 @@ declare class ChadSettings extends Resource {
1012
1008
  testIndexPattern<T = unknown>(options?: RequestOptions): Promise<T>;
1013
1009
  /** POST /api/settings/opensearch/test — Test Opensearch Connection. */
1014
1010
  testOpensearchConnection<T = unknown>(options?: RequestOptions): Promise<T>;
1015
- /** POST /api/settings/webhooks/test — Test Webhook. */
1016
- testWebhook<T = unknown>(options?: RequestOptions): Promise<T>;
1017
1011
  /** PUT /api/settings/{key} — Update Setting. */
1018
1012
  update<T = unknown>(key: string, options?: RequestOptions): Promise<T>;
1019
1013
  /** PUT /api/settings/ai/data-classes — Update Ai Data Classes. */
@@ -1170,21 +1164,6 @@ declare class ChadWarden extends Resource {
1170
1164
  /** PUT /api/warden/config — Update Warden Config. */
1171
1165
  updateWardenConfig<T = unknown>(options?: RequestOptions): Promise<T>;
1172
1166
  }
1173
- /** `chad` resource `webhooks`. */
1174
- declare class ChadWebhooks extends Resource {
1175
- /** POST /api/webhooks — Create Webhook. */
1176
- create<T = unknown>(options?: RequestOptions): Promise<T>;
1177
- /** DELETE /api/webhooks/{webhook_id} — Delete Webhook. */
1178
- delete<T = unknown>(webhookId: string, options?: RequestOptions): Promise<T>;
1179
- /** GET /api/webhooks/{webhook_id} — Get Webhook. */
1180
- get<T = unknown>(webhookId: string, options?: RequestOptions): Promise<T>;
1181
- /** GET /api/webhooks — List Webhooks. */
1182
- list<T = unknown>(options?: RequestOptions): Promise<T>;
1183
- /** POST /api/webhooks/{webhook_id}/test — Test Webhook. */
1184
- test<T = unknown>(webhookId: string, options?: RequestOptions): Promise<T>;
1185
- /** PATCH /api/webhooks/{webhook_id} — Update Webhook. */
1186
- update<T = unknown>(webhookId: string, options?: RequestOptions): Promise<T>;
1187
- }
1188
1167
  /** `vectorflow` resource `alerts`. */
1189
1168
  declare class VectorflowAlerts extends Resource {
1190
1169
  /** POST /api/v1/alerts/rules — Create alert rule. */
@@ -1795,7 +1774,6 @@ declare class ChadResources {
1795
1774
  readonly tuning: ChadTuning;
1796
1775
  readonly users: ChadUsers;
1797
1776
  readonly warden: ChadWarden;
1798
- readonly webhooks: ChadWebhooks;
1799
1777
  constructor(transport: Transport);
1800
1778
  }
1801
1779
  /** Every `vectorflow` resource, bound to one transport. */
@@ -1944,6 +1922,6 @@ declare class VeltroClient {
1944
1922
  * No runtime dependencies: the transport is `fetch`.
1945
1923
  */
1946
1924
 
1947
- declare const VERSION = "0.15.14";
1925
+ declare const VERSION = "0.15.17";
1948
1926
 
1949
1927
  export { type Auth, BearerToken, ChadClient, ChadResources, DEFAULT_MAX_RESPONSE_BYTES, DEFAULT_RETRIES, DEFAULT_TIMEOUT_MS, MissingCredentialError, NoAuth, type ProductClientOptions, type QueryValue, type RequestOptions, Resource, SESSION_COOKIE_PREFIX, SUITE_PREFIXES, SuiteSession, type SuiteSessionOptions, Transport, type TransportOptions, VERSION, VectorFlowClient, VectorflowResources, VeltroApiError, VeltroClient, type VeltroClientOptions, VeltroError, type VeltroLoginOptions, VeltroResponseTooLargeError, VeltroTransportError, WardenClient, WardenResources, quoteSegment };
package/dist/index.d.ts CHANGED
@@ -752,20 +752,20 @@ declare class ChadMode extends Resource {
752
752
  }
753
753
  /** `chad` resource `notifications`. */
754
754
  declare class ChadNotifications extends Resource {
755
+ /** DELETE /api/notifications/unmoved/{target_id} — Dismiss Unmoved Target. */
756
+ dismissUnmovedTarget<T = unknown>(targetId: string, options?: RequestOptions): Promise<T>;
755
757
  /** GET /api/notifications/settings — Get Mandatory Comments Settings. */
756
758
  getMandatoryCommentsSettings<T = unknown>(options?: RequestOptions): Promise<T>;
757
759
  /** GET /api/notifications/settings/public — Get Mandatory Comments Settings Public. */
758
760
  getMandatoryCommentsSettingsPublic<T = unknown>(options?: RequestOptions): Promise<T>;
759
- /** GET /api/notifications — Get Notification Settings. */
760
- getNotificationSettings<T = unknown>(options?: RequestOptions): Promise<T>;
761
+ /** GET /api/notifications — Get Notification Config. */
762
+ getNotificationConfig<T = unknown>(options?: RequestOptions): Promise<T>;
761
763
  /** GET /api/notifications/recent — Get Recent Notifications. */
762
764
  getRecent<T = unknown>(options?: RequestOptions): Promise<T>;
763
- /** PUT /api/notifications/alerts — Update Alert Notification. */
764
- updateAlert<T = unknown>(options?: RequestOptions): Promise<T>;
765
765
  /** PUT /api/notifications/settings — Update Mandatory Comments Settings. */
766
766
  updateMandatoryCommentsSettings<T = unknown>(options?: RequestOptions): Promise<T>;
767
- /** PUT /api/notifications/system — Update System Notification. */
768
- updateSystem<T = unknown>(options?: RequestOptions): Promise<T>;
767
+ /** PUT /api/notifications — Update Notification Config. */
768
+ updateNotificationConfig<T = unknown>(options?: RequestOptions): Promise<T>;
769
769
  }
770
770
  /** `chad` resource `overlays`. */
771
771
  declare class ChadOverlays extends Resource {
@@ -980,10 +980,6 @@ declare class ChadSavedViews extends Resource {
980
980
  }
981
981
  /** `chad` resource `settings`. */
982
982
  declare class ChadSettings extends Resource {
983
- /** GET /api/settings/version/check — Check For Updates. */
984
- checkForUpdates<T = unknown>(options?: RequestOptions): Promise<T>;
985
- /** POST /api/settings/version/check-now — Check For Updates Now. */
986
- checkForUpdatesNow<T = unknown>(options?: RequestOptions): Promise<T>;
987
983
  /** POST /api/settings/geoip/download — Download Geoip Database. */
988
984
  downloadGeoipDatabase<T = unknown>(options?: RequestOptions): Promise<T>;
989
985
  /** GET /api/settings/ai/status — Get Ai Status. */
@@ -1012,8 +1008,6 @@ declare class ChadSettings extends Resource {
1012
1008
  testIndexPattern<T = unknown>(options?: RequestOptions): Promise<T>;
1013
1009
  /** POST /api/settings/opensearch/test — Test Opensearch Connection. */
1014
1010
  testOpensearchConnection<T = unknown>(options?: RequestOptions): Promise<T>;
1015
- /** POST /api/settings/webhooks/test — Test Webhook. */
1016
- testWebhook<T = unknown>(options?: RequestOptions): Promise<T>;
1017
1011
  /** PUT /api/settings/{key} — Update Setting. */
1018
1012
  update<T = unknown>(key: string, options?: RequestOptions): Promise<T>;
1019
1013
  /** PUT /api/settings/ai/data-classes — Update Ai Data Classes. */
@@ -1170,21 +1164,6 @@ declare class ChadWarden extends Resource {
1170
1164
  /** PUT /api/warden/config — Update Warden Config. */
1171
1165
  updateWardenConfig<T = unknown>(options?: RequestOptions): Promise<T>;
1172
1166
  }
1173
- /** `chad` resource `webhooks`. */
1174
- declare class ChadWebhooks extends Resource {
1175
- /** POST /api/webhooks — Create Webhook. */
1176
- create<T = unknown>(options?: RequestOptions): Promise<T>;
1177
- /** DELETE /api/webhooks/{webhook_id} — Delete Webhook. */
1178
- delete<T = unknown>(webhookId: string, options?: RequestOptions): Promise<T>;
1179
- /** GET /api/webhooks/{webhook_id} — Get Webhook. */
1180
- get<T = unknown>(webhookId: string, options?: RequestOptions): Promise<T>;
1181
- /** GET /api/webhooks — List Webhooks. */
1182
- list<T = unknown>(options?: RequestOptions): Promise<T>;
1183
- /** POST /api/webhooks/{webhook_id}/test — Test Webhook. */
1184
- test<T = unknown>(webhookId: string, options?: RequestOptions): Promise<T>;
1185
- /** PATCH /api/webhooks/{webhook_id} — Update Webhook. */
1186
- update<T = unknown>(webhookId: string, options?: RequestOptions): Promise<T>;
1187
- }
1188
1167
  /** `vectorflow` resource `alerts`. */
1189
1168
  declare class VectorflowAlerts extends Resource {
1190
1169
  /** POST /api/v1/alerts/rules — Create alert rule. */
@@ -1795,7 +1774,6 @@ declare class ChadResources {
1795
1774
  readonly tuning: ChadTuning;
1796
1775
  readonly users: ChadUsers;
1797
1776
  readonly warden: ChadWarden;
1798
- readonly webhooks: ChadWebhooks;
1799
1777
  constructor(transport: Transport);
1800
1778
  }
1801
1779
  /** Every `vectorflow` resource, bound to one transport. */
@@ -1944,6 +1922,6 @@ declare class VeltroClient {
1944
1922
  * No runtime dependencies: the transport is `fetch`.
1945
1923
  */
1946
1924
 
1947
- declare const VERSION = "0.15.14";
1925
+ declare const VERSION = "0.15.17";
1948
1926
 
1949
1927
  export { type Auth, BearerToken, ChadClient, ChadResources, DEFAULT_MAX_RESPONSE_BYTES, DEFAULT_RETRIES, DEFAULT_TIMEOUT_MS, MissingCredentialError, NoAuth, type ProductClientOptions, type QueryValue, type RequestOptions, Resource, SESSION_COOKIE_PREFIX, SUITE_PREFIXES, SuiteSession, type SuiteSessionOptions, Transport, type TransportOptions, VERSION, VectorFlowClient, VectorflowResources, VeltroApiError, VeltroClient, type VeltroClientOptions, VeltroError, type VeltroLoginOptions, VeltroResponseTooLargeError, VeltroTransportError, WardenClient, WardenResources, quoteSegment };
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ var DEFAULT_MAX_RESPONSE_BYTES = 32 * 1024 * 1024;
4
4
  var DEFAULT_RETRIES = 2;
5
5
  var RETRY_STATUSES = /* @__PURE__ */ new Set([429, 502, 503, 504]);
6
6
  var RETRY_METHODS = /* @__PURE__ */ new Set(["GET", "HEAD", "OPTIONS", "PUT", "DELETE"]);
7
- var USER_AGENT = "veltro-sdk/0.15.14 (+https://github.com/veltrosecurity/veltro)";
7
+ var USER_AGENT = "veltro-sdk/0.15.17 (+https://github.com/veltrosecurity/veltro)";
8
8
  var VeltroError = class extends Error {
9
9
  constructor(message) {
10
10
  super(message);
@@ -1501,6 +1501,10 @@ var ChadMode = class extends Resource {
1501
1501
  }
1502
1502
  };
1503
1503
  var ChadNotifications = class extends Resource {
1504
+ /** DELETE /api/notifications/unmoved/{target_id} — Dismiss Unmoved Target. */
1505
+ dismissUnmovedTarget(targetId, options = {}) {
1506
+ return this.request("DELETE", `/api/notifications/unmoved/${quoteSegment(targetId)}`, options);
1507
+ }
1504
1508
  /** GET /api/notifications/settings — Get Mandatory Comments Settings. */
1505
1509
  getMandatoryCommentsSettings(options = {}) {
1506
1510
  return this.request("GET", "/api/notifications/settings", options);
@@ -1509,25 +1513,21 @@ var ChadNotifications = class extends Resource {
1509
1513
  getMandatoryCommentsSettingsPublic(options = {}) {
1510
1514
  return this.request("GET", "/api/notifications/settings/public", options);
1511
1515
  }
1512
- /** GET /api/notifications — Get Notification Settings. */
1513
- getNotificationSettings(options = {}) {
1516
+ /** GET /api/notifications — Get Notification Config. */
1517
+ getNotificationConfig(options = {}) {
1514
1518
  return this.request("GET", "/api/notifications", options);
1515
1519
  }
1516
1520
  /** GET /api/notifications/recent — Get Recent Notifications. */
1517
1521
  getRecent(options = {}) {
1518
1522
  return this.request("GET", "/api/notifications/recent", options);
1519
1523
  }
1520
- /** PUT /api/notifications/alerts — Update Alert Notification. */
1521
- updateAlert(options = {}) {
1522
- return this.request("PUT", "/api/notifications/alerts", options);
1523
- }
1524
1524
  /** PUT /api/notifications/settings — Update Mandatory Comments Settings. */
1525
1525
  updateMandatoryCommentsSettings(options = {}) {
1526
1526
  return this.request("PUT", "/api/notifications/settings", options);
1527
1527
  }
1528
- /** PUT /api/notifications/system — Update System Notification. */
1529
- updateSystem(options = {}) {
1530
- return this.request("PUT", "/api/notifications/system", options);
1528
+ /** PUT /api/notifications — Update Notification Config. */
1529
+ updateNotificationConfig(options = {}) {
1530
+ return this.request("PUT", "/api/notifications", options);
1531
1531
  }
1532
1532
  };
1533
1533
  var ChadOverlays = class extends Resource {
@@ -1909,14 +1909,6 @@ var ChadSavedViews = class extends Resource {
1909
1909
  }
1910
1910
  };
1911
1911
  var ChadSettings = class extends Resource {
1912
- /** GET /api/settings/version/check — Check For Updates. */
1913
- checkForUpdates(options = {}) {
1914
- return this.request("GET", "/api/settings/version/check", options);
1915
- }
1916
- /** POST /api/settings/version/check-now — Check For Updates Now. */
1917
- checkForUpdatesNow(options = {}) {
1918
- return this.request("POST", "/api/settings/version/check-now", options);
1919
- }
1920
1912
  /** POST /api/settings/geoip/download — Download Geoip Database. */
1921
1913
  downloadGeoipDatabase(options = {}) {
1922
1914
  return this.request("POST", "/api/settings/geoip/download", options);
@@ -1973,10 +1965,6 @@ var ChadSettings = class extends Resource {
1973
1965
  testOpensearchConnection(options = {}) {
1974
1966
  return this.request("POST", "/api/settings/opensearch/test", options);
1975
1967
  }
1976
- /** POST /api/settings/webhooks/test — Test Webhook. */
1977
- testWebhook(options = {}) {
1978
- return this.request("POST", "/api/settings/webhooks/test", options);
1979
- }
1980
1968
  /** PUT /api/settings/{key} — Update Setting. */
1981
1969
  update(key, options = {}) {
1982
1970
  return this.request("PUT", `/api/settings/${quoteSegment(key)}`, options);
@@ -2244,32 +2232,6 @@ var ChadWarden = class extends Resource {
2244
2232
  return this.request("PUT", "/api/warden/config", options);
2245
2233
  }
2246
2234
  };
2247
- var ChadWebhooks = class extends Resource {
2248
- /** POST /api/webhooks — Create Webhook. */
2249
- create(options = {}) {
2250
- return this.request("POST", "/api/webhooks", options);
2251
- }
2252
- /** DELETE /api/webhooks/{webhook_id} — Delete Webhook. */
2253
- delete(webhookId, options = {}) {
2254
- return this.request("DELETE", `/api/webhooks/${quoteSegment(webhookId)}`, options);
2255
- }
2256
- /** GET /api/webhooks/{webhook_id} — Get Webhook. */
2257
- get(webhookId, options = {}) {
2258
- return this.request("GET", `/api/webhooks/${quoteSegment(webhookId)}`, options);
2259
- }
2260
- /** GET /api/webhooks — List Webhooks. */
2261
- list(options = {}) {
2262
- return this.request("GET", "/api/webhooks", options);
2263
- }
2264
- /** POST /api/webhooks/{webhook_id}/test — Test Webhook. */
2265
- test(webhookId, options = {}) {
2266
- return this.request("POST", `/api/webhooks/${quoteSegment(webhookId)}/test`, options);
2267
- }
2268
- /** PATCH /api/webhooks/{webhook_id} — Update Webhook. */
2269
- update(webhookId, options = {}) {
2270
- return this.request("PATCH", `/api/webhooks/${quoteSegment(webhookId)}`, options);
2271
- }
2272
- };
2273
2235
  var VectorflowAlerts = class extends Resource {
2274
2236
  /** POST /api/v1/alerts/rules — Create alert rule. */
2275
2237
  createAlertRule(options = {}) {
@@ -3266,7 +3228,6 @@ var ChadResources = class {
3266
3228
  tuning;
3267
3229
  users;
3268
3230
  warden;
3269
- webhooks;
3270
3231
  constructor(transport) {
3271
3232
  this.aiCopilot = new ChadAiCopilot(transport);
3272
3233
  this.alerts = new ChadAlerts(transport);
@@ -3325,7 +3286,6 @@ var ChadResources = class {
3325
3286
  this.tuning = new ChadTuning(transport);
3326
3287
  this.users = new ChadUsers(transport);
3327
3288
  this.warden = new ChadWarden(transport);
3328
- this.webhooks = new ChadWebhooks(transport);
3329
3289
  }
3330
3290
  };
3331
3291
  var VectorflowResources = class {
@@ -3538,7 +3498,7 @@ var VeltroClient = class _VeltroClient {
3538
3498
  };
3539
3499
 
3540
3500
  // src/index.ts
3541
- var VERSION = "0.15.14";
3501
+ var VERSION = "0.15.17";
3542
3502
  export {
3543
3503
  BearerToken,
3544
3504
  ChadClient,