@veltrosecurity/sdk 0.15.10 → 0.15.13

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.10 (+https://github.com/veltrosecurity/veltro)";
56
+ var USER_AGENT = "veltro-sdk/0.15.13 (+https://github.com/veltrosecurity/veltro)";
57
57
  var VeltroError = class extends Error {
58
58
  constructor(message) {
59
59
  super(message);
@@ -651,28 +651,6 @@ var ChadAlerts = class extends Resource {
651
651
  return this.request("PATCH", `/api/alerts/${quoteSegment(alertId)}/status`, options);
652
652
  }
653
653
  };
654
- var ChadApiKeys = class extends Resource {
655
- /** POST /api/api-keys — Create Api Key. */
656
- create(options = {}) {
657
- return this.request("POST", "/api/api-keys", options);
658
- }
659
- /** DELETE /api/api-keys/{key_id} — Delete Api Key. */
660
- delete(keyId, options = {}) {
661
- return this.request("DELETE", `/api/api-keys/${quoteSegment(keyId)}`, options);
662
- }
663
- /** GET /api/api-keys/{key_id} — Get Api Key. */
664
- get(keyId, options = {}) {
665
- return this.request("GET", `/api/api-keys/${quoteSegment(keyId)}`, options);
666
- }
667
- /** GET /api/api-keys — List Api Keys. */
668
- list(options = {}) {
669
- return this.request("GET", "/api/api-keys", options);
670
- }
671
- /** PATCH /api/api-keys/{key_id} — Update Api Key. */
672
- update(keyId, options = {}) {
673
- return this.request("PATCH", `/api/api-keys/${quoteSegment(keyId)}`, options);
674
- }
675
- };
676
654
  var ChadAttack = class extends Resource {
677
655
  /** GET /api/attack/coverage — Get Coverage. */
678
656
  getCoverage(options = {}) {
@@ -1089,6 +1067,48 @@ var ChadDeploymentRequests = class extends Resource {
1089
1067
  return this.request("POST", `/api/deployment-requests/${quoteSegment(requestId)}/resubmit`, options);
1090
1068
  }
1091
1069
  };
1070
+ var ChadDeploymentTargets = class extends Resource {
1071
+ /** POST /api/deployment-targets — Create Deployment Target. */
1072
+ create(options = {}) {
1073
+ return this.request("POST", "/api/deployment-targets", options);
1074
+ }
1075
+ /** DELETE /api/deployment-targets/{deployment_target_id} — Delete Deployment Target. */
1076
+ delete(deploymentTargetId, options = {}) {
1077
+ return this.request("DELETE", `/api/deployment-targets/${quoteSegment(deploymentTargetId)}`, options);
1078
+ }
1079
+ /** DELETE /api/deployment-targets/{deployment_target_id}/git — Disconnect Deployment Target Git. */
1080
+ disconnectDeploymentTargetGit(deploymentTargetId, options = {}) {
1081
+ return this.request("DELETE", `/api/deployment-targets/${quoteSegment(deploymentTargetId)}/git`, options);
1082
+ }
1083
+ /** GET /api/deployment-targets/{deployment_target_id} — Get Deployment Target. */
1084
+ get(deploymentTargetId, options = {}) {
1085
+ return this.request("GET", `/api/deployment-targets/${quoteSegment(deploymentTargetId)}`, options);
1086
+ }
1087
+ /** GET /api/deployment-targets/{deployment_target_id}/git — Get Deployment Target Git Config. */
1088
+ getDeploymentTargetGitConfig(deploymentTargetId, options = {}) {
1089
+ return this.request("GET", `/api/deployment-targets/${quoteSegment(deploymentTargetId)}/git`, options);
1090
+ }
1091
+ /** GET /api/deployment-targets — List Deployment Targets. */
1092
+ list(options = {}) {
1093
+ return this.request("GET", "/api/deployment-targets", options);
1094
+ }
1095
+ /** POST /api/deployment-targets/{target_id}/promote — Promote Rules. */
1096
+ promoteRules(targetId, options = {}) {
1097
+ return this.request("POST", `/api/deployment-targets/${quoteSegment(targetId)}/promote`, options);
1098
+ }
1099
+ /** PUT /api/deployment-targets/{deployment_target_id}/git — Set Deployment Target Git Config. */
1100
+ setDeploymentTargetGitConfig(deploymentTargetId, options = {}) {
1101
+ return this.request("PUT", `/api/deployment-targets/${quoteSegment(deploymentTargetId)}/git`, options);
1102
+ }
1103
+ /** POST /api/deployment-targets/{deployment_target_id}/git/test — Test Deployment Target Git Config. */
1104
+ testDeploymentTargetGitConfig(deploymentTargetId, options = {}) {
1105
+ return this.request("POST", `/api/deployment-targets/${quoteSegment(deploymentTargetId)}/git/test`, options);
1106
+ }
1107
+ /** PATCH /api/deployment-targets/{deployment_target_id} — Update Deployment Target. */
1108
+ update(deploymentTargetId, options = {}) {
1109
+ return this.request("PATCH", `/api/deployment-targets/${quoteSegment(deploymentTargetId)}`, options);
1110
+ }
1111
+ };
1092
1112
  var ChadDetectionPacks = class extends Resource {
1093
1113
  /** GET /api/detection-packs/{name} — Get Installed Pack. */
1094
1114
  getInstalledPack(name, options = {}) {
@@ -1153,48 +1173,6 @@ var ChadEntities = class extends Resource {
1153
1173
  return this.request("GET", `/api/entities/${quoteSegment(entityType)}/${quoteSegment(value)}`, options);
1154
1174
  }
1155
1175
  };
1156
- var ChadEnvironments = class extends Resource {
1157
- /** POST /api/environments — Create Environment. */
1158
- create(options = {}) {
1159
- return this.request("POST", "/api/environments", options);
1160
- }
1161
- /** DELETE /api/environments/{environment_id} — Delete Environment. */
1162
- delete(environmentId, options = {}) {
1163
- return this.request("DELETE", `/api/environments/${quoteSegment(environmentId)}`, options);
1164
- }
1165
- /** DELETE /api/environments/{environment_id}/git — Disconnect Env Git. */
1166
- disconnectEnvGit(environmentId, options = {}) {
1167
- return this.request("DELETE", `/api/environments/${quoteSegment(environmentId)}/git`, options);
1168
- }
1169
- /** GET /api/environments/{environment_id} — Get Environment. */
1170
- get(environmentId, options = {}) {
1171
- return this.request("GET", `/api/environments/${quoteSegment(environmentId)}`, options);
1172
- }
1173
- /** GET /api/environments/{environment_id}/git — Get Env Git Config. */
1174
- getEnvGitConfig(environmentId, options = {}) {
1175
- return this.request("GET", `/api/environments/${quoteSegment(environmentId)}/git`, options);
1176
- }
1177
- /** GET /api/environments — List Environments. */
1178
- list(options = {}) {
1179
- return this.request("GET", "/api/environments", options);
1180
- }
1181
- /** POST /api/environments/{target_id}/promote — Promote Rules. */
1182
- promoteRules(targetId, options = {}) {
1183
- return this.request("POST", `/api/environments/${quoteSegment(targetId)}/promote`, options);
1184
- }
1185
- /** PUT /api/environments/{environment_id}/git — Set Env Git Config. */
1186
- setEnvGitConfig(environmentId, options = {}) {
1187
- return this.request("PUT", `/api/environments/${quoteSegment(environmentId)}/git`, options);
1188
- }
1189
- /** POST /api/environments/{environment_id}/git/test — Test Env Git Config. */
1190
- testEnvGitConfig(environmentId, options = {}) {
1191
- return this.request("POST", `/api/environments/${quoteSegment(environmentId)}/git/test`, options);
1192
- }
1193
- /** PATCH /api/environments/{environment_id} — Update Environment. */
1194
- update(environmentId, options = {}) {
1195
- return this.request("PATCH", `/api/environments/${quoteSegment(environmentId)}`, options);
1196
- }
1197
- };
1198
1176
  var ChadExplore = class extends Resource {
1199
1177
  /** GET /api/explore/capabilities — Explore Capabilities. */
1200
1178
  exploreCapabilities(options = {}) {
@@ -1294,13 +1272,13 @@ var ChadGitops = class extends Resource {
1294
1272
  gitopsWebhook(options = {}) {
1295
1273
  return this.request("POST", "/api/gitops/webhook", options);
1296
1274
  }
1297
- /** POST /api/gitops/environments/{env_id}/import — Import Apply. */
1298
- importApply(envId, options = {}) {
1299
- return this.request("POST", `/api/gitops/environments/${quoteSegment(envId)}/import`, options);
1275
+ /** POST /api/gitops/deployment-targets/{deployment_target_id}/import — Import Apply. */
1276
+ importApply(deploymentTargetId, options = {}) {
1277
+ return this.request("POST", `/api/gitops/deployment-targets/${quoteSegment(deploymentTargetId)}/import`, options);
1300
1278
  }
1301
- /** POST /api/gitops/environments/{env_id}/import-preview — Import Preview. */
1302
- importPreview(envId, options = {}) {
1303
- return this.request("POST", `/api/gitops/environments/${quoteSegment(envId)}/import-preview`, options);
1279
+ /** POST /api/gitops/deployment-targets/{deployment_target_id}/import-preview — Import Preview. */
1280
+ importPreview(deploymentTargetId, options = {}) {
1281
+ return this.request("POST", `/api/gitops/deployment-targets/${quoteSegment(deploymentTargetId)}/import-preview`, options);
1304
1282
  }
1305
1283
  /** PUT /api/gitops/inbound — Set Inbound Flag. */
1306
1284
  setInboundFlag(options = {}) {
@@ -1720,9 +1698,9 @@ var ChadReports = class extends Resource {
1720
1698
  }
1721
1699
  };
1722
1700
  var ChadRetentionPolicy = class extends Resource {
1723
- /** DELETE /api/retention-policy/{environment_id}/{retention_class} — Clear Retention Override. */
1724
- clearRetentionOverride(environmentId, retentionClass, options = {}) {
1725
- return this.request("DELETE", `/api/retention-policy/${quoteSegment(environmentId)}/${quoteSegment(retentionClass)}`, options);
1701
+ /** DELETE /api/retention-policy/{deployment_target_id}/{retention_class} — Clear Retention Override. */
1702
+ clearRetentionOverride(deploymentTargetId, retentionClass, options = {}) {
1703
+ return this.request("DELETE", `/api/retention-policy/${quoteSegment(deploymentTargetId)}/${quoteSegment(retentionClass)}`, options);
1726
1704
  }
1727
1705
  /** GET /api/retention-policy/detection/preview — Detection Retention Preview. */
1728
1706
  detectionRetentionPreview(options = {}) {
@@ -1736,9 +1714,9 @@ var ChadRetentionPolicy = class extends Resource {
1736
1714
  listRetentionMatrix(options = {}) {
1737
1715
  return this.request("GET", "/api/retention-policy", options);
1738
1716
  }
1739
- /** PUT /api/retention-policy/{environment_id}/{retention_class} — Set Retention Override. */
1740
- setRetentionOverride(environmentId, retentionClass, options = {}) {
1741
- return this.request("PUT", `/api/retention-policy/${quoteSegment(environmentId)}/${quoteSegment(retentionClass)}`, options);
1717
+ /** PUT /api/retention-policy/{deployment_target_id}/{retention_class} — Set Retention Override. */
1718
+ setRetentionOverride(deploymentTargetId, retentionClass, options = {}) {
1719
+ return this.request("PUT", `/api/retention-policy/${quoteSegment(deploymentTargetId)}/${quoteSegment(retentionClass)}`, options);
1742
1720
  }
1743
1721
  };
1744
1722
  var ChadRuleCi = class extends Resource {
@@ -2012,10 +1990,6 @@ var ChadSettings = class extends Resource {
2012
1990
  getOpensearchStatus(options = {}) {
2013
1991
  return this.request("GET", "/api/settings/opensearch/status", options);
2014
1992
  }
2015
- /** GET /api/settings/security — Get Security Settings. */
2016
- getSecurity(options = {}) {
2017
- return this.request("GET", "/api/settings/security", options);
2018
- }
2019
1993
  /** GET /api/settings/version — Get Version. */
2020
1994
  getVersion(options = {}) {
2021
1995
  return this.request("GET", "/api/settings/version", options);
@@ -2056,6 +2030,10 @@ var ChadSettings = class extends Resource {
2056
2030
  update(key, options = {}) {
2057
2031
  return this.request("PUT", `/api/settings/${quoteSegment(key)}`, options);
2058
2032
  }
2033
+ /** PUT /api/settings/ai/data-classes — Update Ai Data Classes. */
2034
+ updateAiDataClasses(options = {}) {
2035
+ return this.request("PUT", "/api/settings/ai/data-classes", options);
2036
+ }
2059
2037
  /** PUT /api/settings/alert-clustering — Update Alert Clustering Settings. */
2060
2038
  updateAlertClustering(options = {}) {
2061
2039
  return this.request("PUT", "/api/settings/alert-clustering", options);
@@ -2068,10 +2046,6 @@ var ChadSettings = class extends Resource {
2068
2046
  updateGeoip(options = {}) {
2069
2047
  return this.request("PUT", "/api/settings/geoip", options);
2070
2048
  }
2071
- /** PUT /api/settings/security — Update Security Settings. */
2072
- updateSecurity(options = {}) {
2073
- return this.request("PUT", "/api/settings/security", options);
2074
- }
2075
2049
  /** PUT /api/settings/version-cleanup — Update Version Cleanup Settings. */
2076
2050
  updateVersionCleanup(options = {}) {
2077
2051
  return this.request("PUT", "/api/settings/version-cleanup", options);
@@ -2362,18 +2336,10 @@ var VectorflowAudit = class extends Resource {
2362
2336
  }
2363
2337
  };
2364
2338
  var VectorflowDeployRequests = class extends Resource {
2365
- /** POST /api/v1/deploy-requests/{id}/approve — Approve deploy request. */
2366
- approve(id, options = {}) {
2367
- return this.request("POST", `/api/v1/deploy-requests/${quoteSegment(id)}/approve`, options);
2368
- }
2369
2339
  /** GET /api/v1/deploy-requests — List deploy requests. */
2370
2340
  list(options = {}) {
2371
2341
  return this.request("GET", "/api/v1/deploy-requests", options);
2372
2342
  }
2373
- /** POST /api/v1/deploy-requests/{id}/reject — Reject deploy request. */
2374
- reject(id, options = {}) {
2375
- return this.request("POST", `/api/v1/deploy-requests/${quoteSegment(id)}/reject`, options);
2376
- }
2377
2343
  };
2378
2344
  var VectorflowEnvironments = class extends Resource {
2379
2345
  /** GET /api/v1/environments — List environments. */
@@ -2544,16 +2510,16 @@ var WardenAiAuthoring = class extends Resource {
2544
2510
  }
2545
2511
  };
2546
2512
  var WardenAiSettings = class extends Resource {
2547
- /** GET /api/settings/ai — Get Ai Config. */
2548
- getAiConfig(options = {}) {
2549
- return this.request("GET", "/api/settings/ai", options);
2550
- }
2551
2513
  /** GET /api/settings/ai/status — Get Ai Status. */
2552
2514
  getAiStatus(options = {}) {
2553
2515
  return this.request("GET", "/api/settings/ai/status", options);
2554
2516
  }
2555
- /** PUT /api/settings/ai — Put Ai Config. */
2556
- putAiConfig(options = {}) {
2517
+ /** GET /api/settings/ai — Get Ai Usage. */
2518
+ getAiUsage(options = {}) {
2519
+ return this.request("GET", "/api/settings/ai", options);
2520
+ }
2521
+ /** PUT /api/settings/ai — Put Ai Usage. */
2522
+ putAiUsage(options = {}) {
2557
2523
  return this.request("PUT", "/api/settings/ai", options);
2558
2524
  }
2559
2525
  /** POST /api/settings/ai/test — Test Ai Config. */
@@ -2601,20 +2567,6 @@ var WardenAlerts = class extends Resource {
2601
2567
  return this.request("GET", "/api/alerts", options);
2602
2568
  }
2603
2569
  };
2604
- var WardenApprovalPolicy = class extends Resource {
2605
- /** POST /api/approval-policy/exceptions — Create Exception. */
2606
- createException(options = {}) {
2607
- return this.request("POST", "/api/approval-policy/exceptions", options);
2608
- }
2609
- /** GET /api/approval-policy/exceptions — List Exceptions. */
2610
- listExceptions(options = {}) {
2611
- return this.request("GET", "/api/approval-policy/exceptions", options);
2612
- }
2613
- /** POST /api/approval-policy/exceptions/{exception_id}/revoke — Revoke Exception. */
2614
- revokeException(exceptionId, options = {}) {
2615
- return this.request("POST", `/api/approval-policy/exceptions/${quoteSegment(exceptionId)}/revoke`, options);
2616
- }
2617
- };
2618
2570
  var WardenApprovals = class extends Resource {
2619
2571
  /** GET /api/approvals — List Approvals. */
2620
2572
  list(options = {}) {
@@ -2626,10 +2578,6 @@ var WardenAudit = class extends Resource {
2626
2578
  list(options = {}) {
2627
2579
  return this.request("GET", "/api/audit", options);
2628
2580
  }
2629
- /** GET /api/audit/actors — List Audit Actors. */
2630
- listAuditActors(options = {}) {
2631
- return this.request("GET", "/api/audit/actors", options);
2632
- }
2633
2581
  /** GET /api/audit/verify — Verify Audit Chain. */
2634
2582
  verifyAuditChain(options = {}) {
2635
2583
  return this.request("GET", "/api/audit/verify", options);
@@ -3312,7 +3260,6 @@ var WardenWebhookSources = class extends Resource {
3312
3260
  var ChadResources = class {
3313
3261
  aiCopilot;
3314
3262
  alerts;
3315
- apiKeys;
3316
3263
  attack;
3317
3264
  attackNarratives;
3318
3265
  audit;
@@ -3325,11 +3272,11 @@ var ChadResources = class {
3325
3272
  dashboards;
3326
3273
  dataSources;
3327
3274
  deploymentRequests;
3275
+ deploymentTargets;
3328
3276
  detectionPacks;
3329
3277
  diagnostics;
3330
3278
  enrichmentWebhooks;
3331
3279
  entities;
3332
- environments;
3333
3280
  explore;
3334
3281
  export;
3335
3282
  fieldMappings;
@@ -3372,7 +3319,6 @@ var ChadResources = class {
3372
3319
  constructor(transport) {
3373
3320
  this.aiCopilot = new ChadAiCopilot(transport);
3374
3321
  this.alerts = new ChadAlerts(transport);
3375
- this.apiKeys = new ChadApiKeys(transport);
3376
3322
  this.attack = new ChadAttack(transport);
3377
3323
  this.attackNarratives = new ChadAttackNarratives(transport);
3378
3324
  this.audit = new ChadAudit(transport);
@@ -3385,11 +3331,11 @@ var ChadResources = class {
3385
3331
  this.dashboards = new ChadDashboards(transport);
3386
3332
  this.dataSources = new ChadDataSources(transport);
3387
3333
  this.deploymentRequests = new ChadDeploymentRequests(transport);
3334
+ this.deploymentTargets = new ChadDeploymentTargets(transport);
3388
3335
  this.detectionPacks = new ChadDetectionPacks(transport);
3389
3336
  this.diagnostics = new ChadDiagnostics(transport);
3390
3337
  this.enrichmentWebhooks = new ChadEnrichmentWebhooks(transport);
3391
3338
  this.entities = new ChadEntities(transport);
3392
- this.environments = new ChadEnvironments(transport);
3393
3339
  this.explore = new ChadExplore(transport);
3394
3340
  this.export = new ChadExport(transport);
3395
3341
  this.fieldMappings = new ChadFieldMappings(transport);
@@ -3459,7 +3405,6 @@ var WardenResources = class {
3459
3405
  aiSettings;
3460
3406
  aiTriage;
3461
3407
  alerts;
3462
- approvalPolicy;
3463
3408
  approvals;
3464
3409
  audit;
3465
3410
  authorityRevisions;
@@ -3493,7 +3438,6 @@ var WardenResources = class {
3493
3438
  this.aiSettings = new WardenAiSettings(transport);
3494
3439
  this.aiTriage = new WardenAiTriage(transport);
3495
3440
  this.alerts = new WardenAlerts(transport);
3496
- this.approvalPolicy = new WardenApprovalPolicy(transport);
3497
3441
  this.approvals = new WardenApprovals(transport);
3498
3442
  this.audit = new WardenAudit(transport);
3499
3443
  this.authorityRevisions = new WardenAuthorityRevisions(transport);
@@ -3643,7 +3587,7 @@ var VeltroClient = class _VeltroClient {
3643
3587
  };
3644
3588
 
3645
3589
  // src/index.ts
3646
- var VERSION = "0.15.10";
3590
+ var VERSION = "0.15.13";
3647
3591
  // Annotate the CommonJS export names for ESM import in node:
3648
3592
  0 && (module.exports = {
3649
3593
  BearerToken,