@veltrosecurity/sdk 0.15.10 → 0.15.14

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
@@ -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.10 (+https://github.com/veltrosecurity/veltro)";
7
+ var USER_AGENT = "veltro-sdk/0.15.14 (+https://github.com/veltrosecurity/veltro)";
8
8
  var VeltroError = class extends Error {
9
9
  constructor(message) {
10
10
  super(message);
@@ -602,28 +602,6 @@ var ChadAlerts = class extends Resource {
602
602
  return this.request("PATCH", `/api/alerts/${quoteSegment(alertId)}/status`, options);
603
603
  }
604
604
  };
605
- var ChadApiKeys = class extends Resource {
606
- /** POST /api/api-keys — Create Api Key. */
607
- create(options = {}) {
608
- return this.request("POST", "/api/api-keys", options);
609
- }
610
- /** DELETE /api/api-keys/{key_id} — Delete Api Key. */
611
- delete(keyId, options = {}) {
612
- return this.request("DELETE", `/api/api-keys/${quoteSegment(keyId)}`, options);
613
- }
614
- /** GET /api/api-keys/{key_id} — Get Api Key. */
615
- get(keyId, options = {}) {
616
- return this.request("GET", `/api/api-keys/${quoteSegment(keyId)}`, options);
617
- }
618
- /** GET /api/api-keys — List Api Keys. */
619
- list(options = {}) {
620
- return this.request("GET", "/api/api-keys", options);
621
- }
622
- /** PATCH /api/api-keys/{key_id} — Update Api Key. */
623
- update(keyId, options = {}) {
624
- return this.request("PATCH", `/api/api-keys/${quoteSegment(keyId)}`, options);
625
- }
626
- };
627
605
  var ChadAttack = class extends Resource {
628
606
  /** GET /api/attack/coverage — Get Coverage. */
629
607
  getCoverage(options = {}) {
@@ -1040,6 +1018,48 @@ var ChadDeploymentRequests = class extends Resource {
1040
1018
  return this.request("POST", `/api/deployment-requests/${quoteSegment(requestId)}/resubmit`, options);
1041
1019
  }
1042
1020
  };
1021
+ var ChadDeploymentTargets = class extends Resource {
1022
+ /** POST /api/deployment-targets — Create Deployment Target. */
1023
+ create(options = {}) {
1024
+ return this.request("POST", "/api/deployment-targets", options);
1025
+ }
1026
+ /** DELETE /api/deployment-targets/{deployment_target_id} — Delete Deployment Target. */
1027
+ delete(deploymentTargetId, options = {}) {
1028
+ return this.request("DELETE", `/api/deployment-targets/${quoteSegment(deploymentTargetId)}`, options);
1029
+ }
1030
+ /** DELETE /api/deployment-targets/{deployment_target_id}/git — Disconnect Deployment Target Git. */
1031
+ disconnectDeploymentTargetGit(deploymentTargetId, options = {}) {
1032
+ return this.request("DELETE", `/api/deployment-targets/${quoteSegment(deploymentTargetId)}/git`, options);
1033
+ }
1034
+ /** GET /api/deployment-targets/{deployment_target_id} — Get Deployment Target. */
1035
+ get(deploymentTargetId, options = {}) {
1036
+ return this.request("GET", `/api/deployment-targets/${quoteSegment(deploymentTargetId)}`, options);
1037
+ }
1038
+ /** GET /api/deployment-targets/{deployment_target_id}/git — Get Deployment Target Git Config. */
1039
+ getDeploymentTargetGitConfig(deploymentTargetId, options = {}) {
1040
+ return this.request("GET", `/api/deployment-targets/${quoteSegment(deploymentTargetId)}/git`, options);
1041
+ }
1042
+ /** GET /api/deployment-targets — List Deployment Targets. */
1043
+ list(options = {}) {
1044
+ return this.request("GET", "/api/deployment-targets", options);
1045
+ }
1046
+ /** POST /api/deployment-targets/{target_id}/promote — Promote Rules. */
1047
+ promoteRules(targetId, options = {}) {
1048
+ return this.request("POST", `/api/deployment-targets/${quoteSegment(targetId)}/promote`, options);
1049
+ }
1050
+ /** PUT /api/deployment-targets/{deployment_target_id}/git — Set Deployment Target Git Config. */
1051
+ setDeploymentTargetGitConfig(deploymentTargetId, options = {}) {
1052
+ return this.request("PUT", `/api/deployment-targets/${quoteSegment(deploymentTargetId)}/git`, options);
1053
+ }
1054
+ /** POST /api/deployment-targets/{deployment_target_id}/git/test — Test Deployment Target Git Config. */
1055
+ testDeploymentTargetGitConfig(deploymentTargetId, options = {}) {
1056
+ return this.request("POST", `/api/deployment-targets/${quoteSegment(deploymentTargetId)}/git/test`, options);
1057
+ }
1058
+ /** PATCH /api/deployment-targets/{deployment_target_id} — Update Deployment Target. */
1059
+ update(deploymentTargetId, options = {}) {
1060
+ return this.request("PATCH", `/api/deployment-targets/${quoteSegment(deploymentTargetId)}`, options);
1061
+ }
1062
+ };
1043
1063
  var ChadDetectionPacks = class extends Resource {
1044
1064
  /** GET /api/detection-packs/{name} — Get Installed Pack. */
1045
1065
  getInstalledPack(name, options = {}) {
@@ -1104,48 +1124,6 @@ var ChadEntities = class extends Resource {
1104
1124
  return this.request("GET", `/api/entities/${quoteSegment(entityType)}/${quoteSegment(value)}`, options);
1105
1125
  }
1106
1126
  };
1107
- var ChadEnvironments = class extends Resource {
1108
- /** POST /api/environments — Create Environment. */
1109
- create(options = {}) {
1110
- return this.request("POST", "/api/environments", options);
1111
- }
1112
- /** DELETE /api/environments/{environment_id} — Delete Environment. */
1113
- delete(environmentId, options = {}) {
1114
- return this.request("DELETE", `/api/environments/${quoteSegment(environmentId)}`, options);
1115
- }
1116
- /** DELETE /api/environments/{environment_id}/git — Disconnect Env Git. */
1117
- disconnectEnvGit(environmentId, options = {}) {
1118
- return this.request("DELETE", `/api/environments/${quoteSegment(environmentId)}/git`, options);
1119
- }
1120
- /** GET /api/environments/{environment_id} — Get Environment. */
1121
- get(environmentId, options = {}) {
1122
- return this.request("GET", `/api/environments/${quoteSegment(environmentId)}`, options);
1123
- }
1124
- /** GET /api/environments/{environment_id}/git — Get Env Git Config. */
1125
- getEnvGitConfig(environmentId, options = {}) {
1126
- return this.request("GET", `/api/environments/${quoteSegment(environmentId)}/git`, options);
1127
- }
1128
- /** GET /api/environments — List Environments. */
1129
- list(options = {}) {
1130
- return this.request("GET", "/api/environments", options);
1131
- }
1132
- /** POST /api/environments/{target_id}/promote — Promote Rules. */
1133
- promoteRules(targetId, options = {}) {
1134
- return this.request("POST", `/api/environments/${quoteSegment(targetId)}/promote`, options);
1135
- }
1136
- /** PUT /api/environments/{environment_id}/git — Set Env Git Config. */
1137
- setEnvGitConfig(environmentId, options = {}) {
1138
- return this.request("PUT", `/api/environments/${quoteSegment(environmentId)}/git`, options);
1139
- }
1140
- /** POST /api/environments/{environment_id}/git/test — Test Env Git Config. */
1141
- testEnvGitConfig(environmentId, options = {}) {
1142
- return this.request("POST", `/api/environments/${quoteSegment(environmentId)}/git/test`, options);
1143
- }
1144
- /** PATCH /api/environments/{environment_id} — Update Environment. */
1145
- update(environmentId, options = {}) {
1146
- return this.request("PATCH", `/api/environments/${quoteSegment(environmentId)}`, options);
1147
- }
1148
- };
1149
1127
  var ChadExplore = class extends Resource {
1150
1128
  /** GET /api/explore/capabilities — Explore Capabilities. */
1151
1129
  exploreCapabilities(options = {}) {
@@ -1245,13 +1223,13 @@ var ChadGitops = class extends Resource {
1245
1223
  gitopsWebhook(options = {}) {
1246
1224
  return this.request("POST", "/api/gitops/webhook", options);
1247
1225
  }
1248
- /** POST /api/gitops/environments/{env_id}/import — Import Apply. */
1249
- importApply(envId, options = {}) {
1250
- return this.request("POST", `/api/gitops/environments/${quoteSegment(envId)}/import`, options);
1226
+ /** POST /api/gitops/deployment-targets/{deployment_target_id}/import — Import Apply. */
1227
+ importApply(deploymentTargetId, options = {}) {
1228
+ return this.request("POST", `/api/gitops/deployment-targets/${quoteSegment(deploymentTargetId)}/import`, options);
1251
1229
  }
1252
- /** POST /api/gitops/environments/{env_id}/import-preview — Import Preview. */
1253
- importPreview(envId, options = {}) {
1254
- return this.request("POST", `/api/gitops/environments/${quoteSegment(envId)}/import-preview`, options);
1230
+ /** POST /api/gitops/deployment-targets/{deployment_target_id}/import-preview — Import Preview. */
1231
+ importPreview(deploymentTargetId, options = {}) {
1232
+ return this.request("POST", `/api/gitops/deployment-targets/${quoteSegment(deploymentTargetId)}/import-preview`, options);
1255
1233
  }
1256
1234
  /** PUT /api/gitops/inbound — Set Inbound Flag. */
1257
1235
  setInboundFlag(options = {}) {
@@ -1671,9 +1649,9 @@ var ChadReports = class extends Resource {
1671
1649
  }
1672
1650
  };
1673
1651
  var ChadRetentionPolicy = class extends Resource {
1674
- /** DELETE /api/retention-policy/{environment_id}/{retention_class} — Clear Retention Override. */
1675
- clearRetentionOverride(environmentId, retentionClass, options = {}) {
1676
- return this.request("DELETE", `/api/retention-policy/${quoteSegment(environmentId)}/${quoteSegment(retentionClass)}`, options);
1652
+ /** DELETE /api/retention-policy/{deployment_target_id}/{retention_class} — Clear Retention Override. */
1653
+ clearRetentionOverride(deploymentTargetId, retentionClass, options = {}) {
1654
+ return this.request("DELETE", `/api/retention-policy/${quoteSegment(deploymentTargetId)}/${quoteSegment(retentionClass)}`, options);
1677
1655
  }
1678
1656
  /** GET /api/retention-policy/detection/preview — Detection Retention Preview. */
1679
1657
  detectionRetentionPreview(options = {}) {
@@ -1687,9 +1665,9 @@ var ChadRetentionPolicy = class extends Resource {
1687
1665
  listRetentionMatrix(options = {}) {
1688
1666
  return this.request("GET", "/api/retention-policy", options);
1689
1667
  }
1690
- /** PUT /api/retention-policy/{environment_id}/{retention_class} — Set Retention Override. */
1691
- setRetentionOverride(environmentId, retentionClass, options = {}) {
1692
- return this.request("PUT", `/api/retention-policy/${quoteSegment(environmentId)}/${quoteSegment(retentionClass)}`, options);
1668
+ /** PUT /api/retention-policy/{deployment_target_id}/{retention_class} — Set Retention Override. */
1669
+ setRetentionOverride(deploymentTargetId, retentionClass, options = {}) {
1670
+ return this.request("PUT", `/api/retention-policy/${quoteSegment(deploymentTargetId)}/${quoteSegment(retentionClass)}`, options);
1693
1671
  }
1694
1672
  };
1695
1673
  var ChadRuleCi = class extends Resource {
@@ -1963,10 +1941,6 @@ var ChadSettings = class extends Resource {
1963
1941
  getOpensearchStatus(options = {}) {
1964
1942
  return this.request("GET", "/api/settings/opensearch/status", options);
1965
1943
  }
1966
- /** GET /api/settings/security — Get Security Settings. */
1967
- getSecurity(options = {}) {
1968
- return this.request("GET", "/api/settings/security", options);
1969
- }
1970
1944
  /** GET /api/settings/version — Get Version. */
1971
1945
  getVersion(options = {}) {
1972
1946
  return this.request("GET", "/api/settings/version", options);
@@ -2007,6 +1981,10 @@ var ChadSettings = class extends Resource {
2007
1981
  update(key, options = {}) {
2008
1982
  return this.request("PUT", `/api/settings/${quoteSegment(key)}`, options);
2009
1983
  }
1984
+ /** PUT /api/settings/ai/data-classes — Update Ai Data Classes. */
1985
+ updateAiDataClasses(options = {}) {
1986
+ return this.request("PUT", "/api/settings/ai/data-classes", options);
1987
+ }
2010
1988
  /** PUT /api/settings/alert-clustering — Update Alert Clustering Settings. */
2011
1989
  updateAlertClustering(options = {}) {
2012
1990
  return this.request("PUT", "/api/settings/alert-clustering", options);
@@ -2019,10 +1997,6 @@ var ChadSettings = class extends Resource {
2019
1997
  updateGeoip(options = {}) {
2020
1998
  return this.request("PUT", "/api/settings/geoip", options);
2021
1999
  }
2022
- /** PUT /api/settings/security — Update Security Settings. */
2023
- updateSecurity(options = {}) {
2024
- return this.request("PUT", "/api/settings/security", options);
2025
- }
2026
2000
  /** PUT /api/settings/version-cleanup — Update Version Cleanup Settings. */
2027
2001
  updateVersionCleanup(options = {}) {
2028
2002
  return this.request("PUT", "/api/settings/version-cleanup", options);
@@ -2313,18 +2287,10 @@ var VectorflowAudit = class extends Resource {
2313
2287
  }
2314
2288
  };
2315
2289
  var VectorflowDeployRequests = class extends Resource {
2316
- /** POST /api/v1/deploy-requests/{id}/approve — Approve deploy request. */
2317
- approve(id, options = {}) {
2318
- return this.request("POST", `/api/v1/deploy-requests/${quoteSegment(id)}/approve`, options);
2319
- }
2320
2290
  /** GET /api/v1/deploy-requests — List deploy requests. */
2321
2291
  list(options = {}) {
2322
2292
  return this.request("GET", "/api/v1/deploy-requests", options);
2323
2293
  }
2324
- /** POST /api/v1/deploy-requests/{id}/reject — Reject deploy request. */
2325
- reject(id, options = {}) {
2326
- return this.request("POST", `/api/v1/deploy-requests/${quoteSegment(id)}/reject`, options);
2327
- }
2328
2294
  };
2329
2295
  var VectorflowEnvironments = class extends Resource {
2330
2296
  /** GET /api/v1/environments — List environments. */
@@ -2495,16 +2461,16 @@ var WardenAiAuthoring = class extends Resource {
2495
2461
  }
2496
2462
  };
2497
2463
  var WardenAiSettings = class extends Resource {
2498
- /** GET /api/settings/ai — Get Ai Config. */
2499
- getAiConfig(options = {}) {
2500
- return this.request("GET", "/api/settings/ai", options);
2501
- }
2502
2464
  /** GET /api/settings/ai/status — Get Ai Status. */
2503
2465
  getAiStatus(options = {}) {
2504
2466
  return this.request("GET", "/api/settings/ai/status", options);
2505
2467
  }
2506
- /** PUT /api/settings/ai — Put Ai Config. */
2507
- putAiConfig(options = {}) {
2468
+ /** GET /api/settings/ai — Get Ai Usage. */
2469
+ getAiUsage(options = {}) {
2470
+ return this.request("GET", "/api/settings/ai", options);
2471
+ }
2472
+ /** PUT /api/settings/ai — Put Ai Usage. */
2473
+ putAiUsage(options = {}) {
2508
2474
  return this.request("PUT", "/api/settings/ai", options);
2509
2475
  }
2510
2476
  /** POST /api/settings/ai/test — Test Ai Config. */
@@ -2552,20 +2518,6 @@ var WardenAlerts = class extends Resource {
2552
2518
  return this.request("GET", "/api/alerts", options);
2553
2519
  }
2554
2520
  };
2555
- var WardenApprovalPolicy = class extends Resource {
2556
- /** POST /api/approval-policy/exceptions — Create Exception. */
2557
- createException(options = {}) {
2558
- return this.request("POST", "/api/approval-policy/exceptions", options);
2559
- }
2560
- /** GET /api/approval-policy/exceptions — List Exceptions. */
2561
- listExceptions(options = {}) {
2562
- return this.request("GET", "/api/approval-policy/exceptions", options);
2563
- }
2564
- /** POST /api/approval-policy/exceptions/{exception_id}/revoke — Revoke Exception. */
2565
- revokeException(exceptionId, options = {}) {
2566
- return this.request("POST", `/api/approval-policy/exceptions/${quoteSegment(exceptionId)}/revoke`, options);
2567
- }
2568
- };
2569
2521
  var WardenApprovals = class extends Resource {
2570
2522
  /** GET /api/approvals — List Approvals. */
2571
2523
  list(options = {}) {
@@ -2577,10 +2529,6 @@ var WardenAudit = class extends Resource {
2577
2529
  list(options = {}) {
2578
2530
  return this.request("GET", "/api/audit", options);
2579
2531
  }
2580
- /** GET /api/audit/actors — List Audit Actors. */
2581
- listAuditActors(options = {}) {
2582
- return this.request("GET", "/api/audit/actors", options);
2583
- }
2584
2532
  /** GET /api/audit/verify — Verify Audit Chain. */
2585
2533
  verifyAuditChain(options = {}) {
2586
2534
  return this.request("GET", "/api/audit/verify", options);
@@ -3263,7 +3211,6 @@ var WardenWebhookSources = class extends Resource {
3263
3211
  var ChadResources = class {
3264
3212
  aiCopilot;
3265
3213
  alerts;
3266
- apiKeys;
3267
3214
  attack;
3268
3215
  attackNarratives;
3269
3216
  audit;
@@ -3276,11 +3223,11 @@ var ChadResources = class {
3276
3223
  dashboards;
3277
3224
  dataSources;
3278
3225
  deploymentRequests;
3226
+ deploymentTargets;
3279
3227
  detectionPacks;
3280
3228
  diagnostics;
3281
3229
  enrichmentWebhooks;
3282
3230
  entities;
3283
- environments;
3284
3231
  explore;
3285
3232
  export;
3286
3233
  fieldMappings;
@@ -3323,7 +3270,6 @@ var ChadResources = class {
3323
3270
  constructor(transport) {
3324
3271
  this.aiCopilot = new ChadAiCopilot(transport);
3325
3272
  this.alerts = new ChadAlerts(transport);
3326
- this.apiKeys = new ChadApiKeys(transport);
3327
3273
  this.attack = new ChadAttack(transport);
3328
3274
  this.attackNarratives = new ChadAttackNarratives(transport);
3329
3275
  this.audit = new ChadAudit(transport);
@@ -3336,11 +3282,11 @@ var ChadResources = class {
3336
3282
  this.dashboards = new ChadDashboards(transport);
3337
3283
  this.dataSources = new ChadDataSources(transport);
3338
3284
  this.deploymentRequests = new ChadDeploymentRequests(transport);
3285
+ this.deploymentTargets = new ChadDeploymentTargets(transport);
3339
3286
  this.detectionPacks = new ChadDetectionPacks(transport);
3340
3287
  this.diagnostics = new ChadDiagnostics(transport);
3341
3288
  this.enrichmentWebhooks = new ChadEnrichmentWebhooks(transport);
3342
3289
  this.entities = new ChadEntities(transport);
3343
- this.environments = new ChadEnvironments(transport);
3344
3290
  this.explore = new ChadExplore(transport);
3345
3291
  this.export = new ChadExport(transport);
3346
3292
  this.fieldMappings = new ChadFieldMappings(transport);
@@ -3410,7 +3356,6 @@ var WardenResources = class {
3410
3356
  aiSettings;
3411
3357
  aiTriage;
3412
3358
  alerts;
3413
- approvalPolicy;
3414
3359
  approvals;
3415
3360
  audit;
3416
3361
  authorityRevisions;
@@ -3444,7 +3389,6 @@ var WardenResources = class {
3444
3389
  this.aiSettings = new WardenAiSettings(transport);
3445
3390
  this.aiTriage = new WardenAiTriage(transport);
3446
3391
  this.alerts = new WardenAlerts(transport);
3447
- this.approvalPolicy = new WardenApprovalPolicy(transport);
3448
3392
  this.approvals = new WardenApprovals(transport);
3449
3393
  this.audit = new WardenAudit(transport);
3450
3394
  this.authorityRevisions = new WardenAuthorityRevisions(transport);
@@ -3594,7 +3538,7 @@ var VeltroClient = class _VeltroClient {
3594
3538
  };
3595
3539
 
3596
3540
  // src/index.ts
3597
- var VERSION = "0.15.10";
3541
+ var VERSION = "0.15.14";
3598
3542
  export {
3599
3543
  BearerToken,
3600
3544
  ChadClient,