@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 +68 -124
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +39 -71
- package/dist/index.d.ts +39 -71
- package/dist/index.js +68 -124
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -239,19 +239,6 @@ declare class ChadAlerts extends Resource {
|
|
|
239
239
|
/** PATCH /api/alerts/{alert_id}/status — Update Alert Status. */
|
|
240
240
|
updateAlertStatus<T = unknown>(alertId: string, options?: RequestOptions): Promise<T>;
|
|
241
241
|
}
|
|
242
|
-
/** `chad` resource `api_keys`. */
|
|
243
|
-
declare class ChadApiKeys extends Resource {
|
|
244
|
-
/** POST /api/api-keys — Create Api Key. */
|
|
245
|
-
create<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
246
|
-
/** DELETE /api/api-keys/{key_id} — Delete Api Key. */
|
|
247
|
-
delete<T = unknown>(keyId: string, options?: RequestOptions): Promise<T>;
|
|
248
|
-
/** GET /api/api-keys/{key_id} — Get Api Key. */
|
|
249
|
-
get<T = unknown>(keyId: string, options?: RequestOptions): Promise<T>;
|
|
250
|
-
/** GET /api/api-keys — List Api Keys. */
|
|
251
|
-
list<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
252
|
-
/** PATCH /api/api-keys/{key_id} — Update Api Key. */
|
|
253
|
-
update<T = unknown>(keyId: string, options?: RequestOptions): Promise<T>;
|
|
254
|
-
}
|
|
255
242
|
/** `chad` resource `attack`. */
|
|
256
243
|
declare class ChadAttack extends Resource {
|
|
257
244
|
/** GET /api/attack/coverage — Get Coverage. */
|
|
@@ -484,6 +471,29 @@ declare class ChadDeploymentRequests extends Resource {
|
|
|
484
471
|
/** POST /api/deployment-requests/{request_id}/resubmit — Resubmit Deployment Request. */
|
|
485
472
|
resubmit<T = unknown>(requestId: string, options?: RequestOptions): Promise<T>;
|
|
486
473
|
}
|
|
474
|
+
/** `chad` resource `deployment_targets`. */
|
|
475
|
+
declare class ChadDeploymentTargets extends Resource {
|
|
476
|
+
/** POST /api/deployment-targets — Create Deployment Target. */
|
|
477
|
+
create<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
478
|
+
/** DELETE /api/deployment-targets/{deployment_target_id} — Delete Deployment Target. */
|
|
479
|
+
delete<T = unknown>(deploymentTargetId: string, options?: RequestOptions): Promise<T>;
|
|
480
|
+
/** DELETE /api/deployment-targets/{deployment_target_id}/git — Disconnect Deployment Target Git. */
|
|
481
|
+
disconnectDeploymentTargetGit<T = unknown>(deploymentTargetId: string, options?: RequestOptions): Promise<T>;
|
|
482
|
+
/** GET /api/deployment-targets/{deployment_target_id} — Get Deployment Target. */
|
|
483
|
+
get<T = unknown>(deploymentTargetId: string, options?: RequestOptions): Promise<T>;
|
|
484
|
+
/** GET /api/deployment-targets/{deployment_target_id}/git — Get Deployment Target Git Config. */
|
|
485
|
+
getDeploymentTargetGitConfig<T = unknown>(deploymentTargetId: string, options?: RequestOptions): Promise<T>;
|
|
486
|
+
/** GET /api/deployment-targets — List Deployment Targets. */
|
|
487
|
+
list<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
488
|
+
/** POST /api/deployment-targets/{target_id}/promote — Promote Rules. */
|
|
489
|
+
promoteRules<T = unknown>(targetId: string, options?: RequestOptions): Promise<T>;
|
|
490
|
+
/** PUT /api/deployment-targets/{deployment_target_id}/git — Set Deployment Target Git Config. */
|
|
491
|
+
setDeploymentTargetGitConfig<T = unknown>(deploymentTargetId: string, options?: RequestOptions): Promise<T>;
|
|
492
|
+
/** POST /api/deployment-targets/{deployment_target_id}/git/test — Test Deployment Target Git Config. */
|
|
493
|
+
testDeploymentTargetGitConfig<T = unknown>(deploymentTargetId: string, options?: RequestOptions): Promise<T>;
|
|
494
|
+
/** PATCH /api/deployment-targets/{deployment_target_id} — Update Deployment Target. */
|
|
495
|
+
update<T = unknown>(deploymentTargetId: string, options?: RequestOptions): Promise<T>;
|
|
496
|
+
}
|
|
487
497
|
/** `chad` resource `detection_packs`. */
|
|
488
498
|
declare class ChadDetectionPacks extends Resource {
|
|
489
499
|
/** GET /api/detection-packs/{name} — Get Installed Pack. */
|
|
@@ -524,29 +534,6 @@ declare class ChadEntities extends Resource {
|
|
|
524
534
|
/** GET /api/entities/{entity_type}/{value} — Get Entity. */
|
|
525
535
|
get<T = unknown>(entityType: string, value: string, options?: RequestOptions): Promise<T>;
|
|
526
536
|
}
|
|
527
|
-
/** `chad` resource `environments`. */
|
|
528
|
-
declare class ChadEnvironments extends Resource {
|
|
529
|
-
/** POST /api/environments — Create Environment. */
|
|
530
|
-
create<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
531
|
-
/** DELETE /api/environments/{environment_id} — Delete Environment. */
|
|
532
|
-
delete<T = unknown>(environmentId: string, options?: RequestOptions): Promise<T>;
|
|
533
|
-
/** DELETE /api/environments/{environment_id}/git — Disconnect Env Git. */
|
|
534
|
-
disconnectEnvGit<T = unknown>(environmentId: string, options?: RequestOptions): Promise<T>;
|
|
535
|
-
/** GET /api/environments/{environment_id} — Get Environment. */
|
|
536
|
-
get<T = unknown>(environmentId: string, options?: RequestOptions): Promise<T>;
|
|
537
|
-
/** GET /api/environments/{environment_id}/git — Get Env Git Config. */
|
|
538
|
-
getEnvGitConfig<T = unknown>(environmentId: string, options?: RequestOptions): Promise<T>;
|
|
539
|
-
/** GET /api/environments — List Environments. */
|
|
540
|
-
list<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
541
|
-
/** POST /api/environments/{target_id}/promote — Promote Rules. */
|
|
542
|
-
promoteRules<T = unknown>(targetId: string, options?: RequestOptions): Promise<T>;
|
|
543
|
-
/** PUT /api/environments/{environment_id}/git — Set Env Git Config. */
|
|
544
|
-
setEnvGitConfig<T = unknown>(environmentId: string, options?: RequestOptions): Promise<T>;
|
|
545
|
-
/** POST /api/environments/{environment_id}/git/test — Test Env Git Config. */
|
|
546
|
-
testEnvGitConfig<T = unknown>(environmentId: string, options?: RequestOptions): Promise<T>;
|
|
547
|
-
/** PATCH /api/environments/{environment_id} — Update Environment. */
|
|
548
|
-
update<T = unknown>(environmentId: string, options?: RequestOptions): Promise<T>;
|
|
549
|
-
}
|
|
550
537
|
/** `chad` resource `explore`. */
|
|
551
538
|
declare class ChadExplore extends Resource {
|
|
552
539
|
/** GET /api/explore/capabilities — Explore Capabilities. */
|
|
@@ -604,10 +591,10 @@ declare class ChadGitops extends Resource {
|
|
|
604
591
|
getInboundFlag<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
605
592
|
/** POST /api/gitops/webhook — Gitops Webhook. */
|
|
606
593
|
gitopsWebhook<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
607
|
-
/** POST /api/gitops/
|
|
608
|
-
importApply<T = unknown>(
|
|
609
|
-
/** POST /api/gitops/
|
|
610
|
-
importPreview<T = unknown>(
|
|
594
|
+
/** POST /api/gitops/deployment-targets/{deployment_target_id}/import — Import Apply. */
|
|
595
|
+
importApply<T = unknown>(deploymentTargetId: string, options?: RequestOptions): Promise<T>;
|
|
596
|
+
/** POST /api/gitops/deployment-targets/{deployment_target_id}/import-preview — Import Preview. */
|
|
597
|
+
importPreview<T = unknown>(deploymentTargetId: string, options?: RequestOptions): Promise<T>;
|
|
611
598
|
/** PUT /api/gitops/inbound — Set Inbound Flag. */
|
|
612
599
|
setInboundFlag<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
613
600
|
}
|
|
@@ -851,16 +838,16 @@ declare class ChadReports extends Resource {
|
|
|
851
838
|
}
|
|
852
839
|
/** `chad` resource `retention_policy`. */
|
|
853
840
|
declare class ChadRetentionPolicy extends Resource {
|
|
854
|
-
/** DELETE /api/retention-policy/{
|
|
855
|
-
clearRetentionOverride<T = unknown>(
|
|
841
|
+
/** DELETE /api/retention-policy/{deployment_target_id}/{retention_class} — Clear Retention Override. */
|
|
842
|
+
clearRetentionOverride<T = unknown>(deploymentTargetId: string, retentionClass: string, options?: RequestOptions): Promise<T>;
|
|
856
843
|
/** GET /api/retention-policy/detection/preview — Detection Retention Preview. */
|
|
857
844
|
detectionRetentionPreview<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
858
845
|
/** POST /api/retention-policy/detection/purge — Detection Retention Purge. */
|
|
859
846
|
detectionRetentionPurge<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
860
847
|
/** GET /api/retention-policy — List Retention Matrix. */
|
|
861
848
|
listRetentionMatrix<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
862
|
-
/** PUT /api/retention-policy/{
|
|
863
|
-
setRetentionOverride<T = unknown>(
|
|
849
|
+
/** PUT /api/retention-policy/{deployment_target_id}/{retention_class} — Set Retention Override. */
|
|
850
|
+
setRetentionOverride<T = unknown>(deploymentTargetId: string, retentionClass: string, options?: RequestOptions): Promise<T>;
|
|
864
851
|
}
|
|
865
852
|
/** `chad` resource `rule_ci`. */
|
|
866
853
|
declare class ChadRuleCi extends Resource {
|
|
@@ -1009,8 +996,6 @@ declare class ChadSettings extends Resource {
|
|
|
1009
996
|
getGeoip<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1010
997
|
/** GET /api/settings/opensearch/status — Get Opensearch Status. */
|
|
1011
998
|
getOpensearchStatus<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1012
|
-
/** GET /api/settings/security — Get Security Settings. */
|
|
1013
|
-
getSecurity<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1014
999
|
/** GET /api/settings/version — Get Version. */
|
|
1015
1000
|
getVersion<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1016
1001
|
/** GET /api/settings/version-cleanup — Get Version Cleanup Settings. */
|
|
@@ -1031,14 +1016,14 @@ declare class ChadSettings extends Resource {
|
|
|
1031
1016
|
testWebhook<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1032
1017
|
/** PUT /api/settings/{key} — Update Setting. */
|
|
1033
1018
|
update<T = unknown>(key: string, options?: RequestOptions): Promise<T>;
|
|
1019
|
+
/** PUT /api/settings/ai/data-classes — Update Ai Data Classes. */
|
|
1020
|
+
updateAiDataClasses<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1034
1021
|
/** PUT /api/settings/alert-clustering — Update Alert Clustering Settings. */
|
|
1035
1022
|
updateAlertClustering<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1036
1023
|
/** PUT /api/settings/explore — Update Explore Settings. */
|
|
1037
1024
|
updateExplore<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1038
1025
|
/** PUT /api/settings/geoip — Update Geoip Settings. */
|
|
1039
1026
|
updateGeoip<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1040
|
-
/** PUT /api/settings/security — Update Security Settings. */
|
|
1041
|
-
updateSecurity<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1042
1027
|
/** PUT /api/settings/version-cleanup — Update Version Cleanup Settings. */
|
|
1043
1028
|
updateVersionCleanup<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1044
1029
|
}
|
|
@@ -1214,12 +1199,8 @@ declare class VectorflowAudit extends Resource {
|
|
|
1214
1199
|
}
|
|
1215
1200
|
/** `vectorflow` resource `deploy_requests`. */
|
|
1216
1201
|
declare class VectorflowDeployRequests extends Resource {
|
|
1217
|
-
/** POST /api/v1/deploy-requests/{id}/approve — Approve deploy request. */
|
|
1218
|
-
approve<T = unknown>(id: string, options?: RequestOptions): Promise<T>;
|
|
1219
1202
|
/** GET /api/v1/deploy-requests — List deploy requests. */
|
|
1220
1203
|
list<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1221
|
-
/** POST /api/v1/deploy-requests/{id}/reject — Reject deploy request. */
|
|
1222
|
-
reject<T = unknown>(id: string, options?: RequestOptions): Promise<T>;
|
|
1223
1204
|
}
|
|
1224
1205
|
/** `vectorflow` resource `environments`. */
|
|
1225
1206
|
declare class VectorflowEnvironments extends Resource {
|
|
@@ -1323,12 +1304,12 @@ declare class WardenAiAuthoring extends Resource {
|
|
|
1323
1304
|
}
|
|
1324
1305
|
/** `warden` resource `ai_settings`. */
|
|
1325
1306
|
declare class WardenAiSettings extends Resource {
|
|
1326
|
-
/** GET /api/settings/ai — Get Ai Config. */
|
|
1327
|
-
getAiConfig<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1328
1307
|
/** GET /api/settings/ai/status — Get Ai Status. */
|
|
1329
1308
|
getAiStatus<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1330
|
-
/**
|
|
1331
|
-
|
|
1309
|
+
/** GET /api/settings/ai — Get Ai Usage. */
|
|
1310
|
+
getAiUsage<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1311
|
+
/** PUT /api/settings/ai — Put Ai Usage. */
|
|
1312
|
+
putAiUsage<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1332
1313
|
/** POST /api/settings/ai/test — Test Ai Config. */
|
|
1333
1314
|
testAiConfig<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1334
1315
|
}
|
|
@@ -1356,15 +1337,6 @@ declare class WardenAlerts extends Resource {
|
|
|
1356
1337
|
/** GET /api/alerts — List Alerts. */
|
|
1357
1338
|
list<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1358
1339
|
}
|
|
1359
|
-
/** `warden` resource `approval_policy`. */
|
|
1360
|
-
declare class WardenApprovalPolicy extends Resource {
|
|
1361
|
-
/** POST /api/approval-policy/exceptions — Create Exception. */
|
|
1362
|
-
createException<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1363
|
-
/** GET /api/approval-policy/exceptions — List Exceptions. */
|
|
1364
|
-
listExceptions<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1365
|
-
/** POST /api/approval-policy/exceptions/{exception_id}/revoke — Revoke Exception. */
|
|
1366
|
-
revokeException<T = unknown>(exceptionId: string, options?: RequestOptions): Promise<T>;
|
|
1367
|
-
}
|
|
1368
1340
|
/** `warden` resource `approvals`. */
|
|
1369
1341
|
declare class WardenApprovals extends Resource {
|
|
1370
1342
|
/** GET /api/approvals — List Approvals. */
|
|
@@ -1374,8 +1346,6 @@ declare class WardenApprovals extends Resource {
|
|
|
1374
1346
|
declare class WardenAudit extends Resource {
|
|
1375
1347
|
/** GET /api/audit — List Audit. */
|
|
1376
1348
|
list<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1377
|
-
/** GET /api/audit/actors — List Audit Actors. */
|
|
1378
|
-
listAuditActors<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1379
1349
|
/** GET /api/audit/verify — Verify Audit Chain. */
|
|
1380
1350
|
verifyAuditChain<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1381
1351
|
}
|
|
@@ -1770,7 +1740,6 @@ declare class WardenWebhookSources extends Resource {
|
|
|
1770
1740
|
declare class ChadResources {
|
|
1771
1741
|
readonly aiCopilot: ChadAiCopilot;
|
|
1772
1742
|
readonly alerts: ChadAlerts;
|
|
1773
|
-
readonly apiKeys: ChadApiKeys;
|
|
1774
1743
|
readonly attack: ChadAttack;
|
|
1775
1744
|
readonly attackNarratives: ChadAttackNarratives;
|
|
1776
1745
|
readonly audit: ChadAudit;
|
|
@@ -1783,11 +1752,11 @@ declare class ChadResources {
|
|
|
1783
1752
|
readonly dashboards: ChadDashboards;
|
|
1784
1753
|
readonly dataSources: ChadDataSources;
|
|
1785
1754
|
readonly deploymentRequests: ChadDeploymentRequests;
|
|
1755
|
+
readonly deploymentTargets: ChadDeploymentTargets;
|
|
1786
1756
|
readonly detectionPacks: ChadDetectionPacks;
|
|
1787
1757
|
readonly diagnostics: ChadDiagnostics;
|
|
1788
1758
|
readonly enrichmentWebhooks: ChadEnrichmentWebhooks;
|
|
1789
1759
|
readonly entities: ChadEntities;
|
|
1790
|
-
readonly environments: ChadEnvironments;
|
|
1791
1760
|
readonly explore: ChadExplore;
|
|
1792
1761
|
readonly export: ChadExport;
|
|
1793
1762
|
readonly fieldMappings: ChadFieldMappings;
|
|
@@ -1849,7 +1818,6 @@ declare class WardenResources {
|
|
|
1849
1818
|
readonly aiSettings: WardenAiSettings;
|
|
1850
1819
|
readonly aiTriage: WardenAiTriage;
|
|
1851
1820
|
readonly alerts: WardenAlerts;
|
|
1852
|
-
readonly approvalPolicy: WardenApprovalPolicy;
|
|
1853
1821
|
readonly approvals: WardenApprovals;
|
|
1854
1822
|
readonly audit: WardenAudit;
|
|
1855
1823
|
readonly authorityRevisions: WardenAuthorityRevisions;
|
|
@@ -1976,6 +1944,6 @@ declare class VeltroClient {
|
|
|
1976
1944
|
* No runtime dependencies: the transport is `fetch`.
|
|
1977
1945
|
*/
|
|
1978
1946
|
|
|
1979
|
-
declare const VERSION = "0.15.
|
|
1947
|
+
declare const VERSION = "0.15.13";
|
|
1980
1948
|
|
|
1981
1949
|
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
|
@@ -239,19 +239,6 @@ declare class ChadAlerts extends Resource {
|
|
|
239
239
|
/** PATCH /api/alerts/{alert_id}/status — Update Alert Status. */
|
|
240
240
|
updateAlertStatus<T = unknown>(alertId: string, options?: RequestOptions): Promise<T>;
|
|
241
241
|
}
|
|
242
|
-
/** `chad` resource `api_keys`. */
|
|
243
|
-
declare class ChadApiKeys extends Resource {
|
|
244
|
-
/** POST /api/api-keys — Create Api Key. */
|
|
245
|
-
create<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
246
|
-
/** DELETE /api/api-keys/{key_id} — Delete Api Key. */
|
|
247
|
-
delete<T = unknown>(keyId: string, options?: RequestOptions): Promise<T>;
|
|
248
|
-
/** GET /api/api-keys/{key_id} — Get Api Key. */
|
|
249
|
-
get<T = unknown>(keyId: string, options?: RequestOptions): Promise<T>;
|
|
250
|
-
/** GET /api/api-keys — List Api Keys. */
|
|
251
|
-
list<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
252
|
-
/** PATCH /api/api-keys/{key_id} — Update Api Key. */
|
|
253
|
-
update<T = unknown>(keyId: string, options?: RequestOptions): Promise<T>;
|
|
254
|
-
}
|
|
255
242
|
/** `chad` resource `attack`. */
|
|
256
243
|
declare class ChadAttack extends Resource {
|
|
257
244
|
/** GET /api/attack/coverage — Get Coverage. */
|
|
@@ -484,6 +471,29 @@ declare class ChadDeploymentRequests extends Resource {
|
|
|
484
471
|
/** POST /api/deployment-requests/{request_id}/resubmit — Resubmit Deployment Request. */
|
|
485
472
|
resubmit<T = unknown>(requestId: string, options?: RequestOptions): Promise<T>;
|
|
486
473
|
}
|
|
474
|
+
/** `chad` resource `deployment_targets`. */
|
|
475
|
+
declare class ChadDeploymentTargets extends Resource {
|
|
476
|
+
/** POST /api/deployment-targets — Create Deployment Target. */
|
|
477
|
+
create<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
478
|
+
/** DELETE /api/deployment-targets/{deployment_target_id} — Delete Deployment Target. */
|
|
479
|
+
delete<T = unknown>(deploymentTargetId: string, options?: RequestOptions): Promise<T>;
|
|
480
|
+
/** DELETE /api/deployment-targets/{deployment_target_id}/git — Disconnect Deployment Target Git. */
|
|
481
|
+
disconnectDeploymentTargetGit<T = unknown>(deploymentTargetId: string, options?: RequestOptions): Promise<T>;
|
|
482
|
+
/** GET /api/deployment-targets/{deployment_target_id} — Get Deployment Target. */
|
|
483
|
+
get<T = unknown>(deploymentTargetId: string, options?: RequestOptions): Promise<T>;
|
|
484
|
+
/** GET /api/deployment-targets/{deployment_target_id}/git — Get Deployment Target Git Config. */
|
|
485
|
+
getDeploymentTargetGitConfig<T = unknown>(deploymentTargetId: string, options?: RequestOptions): Promise<T>;
|
|
486
|
+
/** GET /api/deployment-targets — List Deployment Targets. */
|
|
487
|
+
list<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
488
|
+
/** POST /api/deployment-targets/{target_id}/promote — Promote Rules. */
|
|
489
|
+
promoteRules<T = unknown>(targetId: string, options?: RequestOptions): Promise<T>;
|
|
490
|
+
/** PUT /api/deployment-targets/{deployment_target_id}/git — Set Deployment Target Git Config. */
|
|
491
|
+
setDeploymentTargetGitConfig<T = unknown>(deploymentTargetId: string, options?: RequestOptions): Promise<T>;
|
|
492
|
+
/** POST /api/deployment-targets/{deployment_target_id}/git/test — Test Deployment Target Git Config. */
|
|
493
|
+
testDeploymentTargetGitConfig<T = unknown>(deploymentTargetId: string, options?: RequestOptions): Promise<T>;
|
|
494
|
+
/** PATCH /api/deployment-targets/{deployment_target_id} — Update Deployment Target. */
|
|
495
|
+
update<T = unknown>(deploymentTargetId: string, options?: RequestOptions): Promise<T>;
|
|
496
|
+
}
|
|
487
497
|
/** `chad` resource `detection_packs`. */
|
|
488
498
|
declare class ChadDetectionPacks extends Resource {
|
|
489
499
|
/** GET /api/detection-packs/{name} — Get Installed Pack. */
|
|
@@ -524,29 +534,6 @@ declare class ChadEntities extends Resource {
|
|
|
524
534
|
/** GET /api/entities/{entity_type}/{value} — Get Entity. */
|
|
525
535
|
get<T = unknown>(entityType: string, value: string, options?: RequestOptions): Promise<T>;
|
|
526
536
|
}
|
|
527
|
-
/** `chad` resource `environments`. */
|
|
528
|
-
declare class ChadEnvironments extends Resource {
|
|
529
|
-
/** POST /api/environments — Create Environment. */
|
|
530
|
-
create<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
531
|
-
/** DELETE /api/environments/{environment_id} — Delete Environment. */
|
|
532
|
-
delete<T = unknown>(environmentId: string, options?: RequestOptions): Promise<T>;
|
|
533
|
-
/** DELETE /api/environments/{environment_id}/git — Disconnect Env Git. */
|
|
534
|
-
disconnectEnvGit<T = unknown>(environmentId: string, options?: RequestOptions): Promise<T>;
|
|
535
|
-
/** GET /api/environments/{environment_id} — Get Environment. */
|
|
536
|
-
get<T = unknown>(environmentId: string, options?: RequestOptions): Promise<T>;
|
|
537
|
-
/** GET /api/environments/{environment_id}/git — Get Env Git Config. */
|
|
538
|
-
getEnvGitConfig<T = unknown>(environmentId: string, options?: RequestOptions): Promise<T>;
|
|
539
|
-
/** GET /api/environments — List Environments. */
|
|
540
|
-
list<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
541
|
-
/** POST /api/environments/{target_id}/promote — Promote Rules. */
|
|
542
|
-
promoteRules<T = unknown>(targetId: string, options?: RequestOptions): Promise<T>;
|
|
543
|
-
/** PUT /api/environments/{environment_id}/git — Set Env Git Config. */
|
|
544
|
-
setEnvGitConfig<T = unknown>(environmentId: string, options?: RequestOptions): Promise<T>;
|
|
545
|
-
/** POST /api/environments/{environment_id}/git/test — Test Env Git Config. */
|
|
546
|
-
testEnvGitConfig<T = unknown>(environmentId: string, options?: RequestOptions): Promise<T>;
|
|
547
|
-
/** PATCH /api/environments/{environment_id} — Update Environment. */
|
|
548
|
-
update<T = unknown>(environmentId: string, options?: RequestOptions): Promise<T>;
|
|
549
|
-
}
|
|
550
537
|
/** `chad` resource `explore`. */
|
|
551
538
|
declare class ChadExplore extends Resource {
|
|
552
539
|
/** GET /api/explore/capabilities — Explore Capabilities. */
|
|
@@ -604,10 +591,10 @@ declare class ChadGitops extends Resource {
|
|
|
604
591
|
getInboundFlag<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
605
592
|
/** POST /api/gitops/webhook — Gitops Webhook. */
|
|
606
593
|
gitopsWebhook<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
607
|
-
/** POST /api/gitops/
|
|
608
|
-
importApply<T = unknown>(
|
|
609
|
-
/** POST /api/gitops/
|
|
610
|
-
importPreview<T = unknown>(
|
|
594
|
+
/** POST /api/gitops/deployment-targets/{deployment_target_id}/import — Import Apply. */
|
|
595
|
+
importApply<T = unknown>(deploymentTargetId: string, options?: RequestOptions): Promise<T>;
|
|
596
|
+
/** POST /api/gitops/deployment-targets/{deployment_target_id}/import-preview — Import Preview. */
|
|
597
|
+
importPreview<T = unknown>(deploymentTargetId: string, options?: RequestOptions): Promise<T>;
|
|
611
598
|
/** PUT /api/gitops/inbound — Set Inbound Flag. */
|
|
612
599
|
setInboundFlag<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
613
600
|
}
|
|
@@ -851,16 +838,16 @@ declare class ChadReports extends Resource {
|
|
|
851
838
|
}
|
|
852
839
|
/** `chad` resource `retention_policy`. */
|
|
853
840
|
declare class ChadRetentionPolicy extends Resource {
|
|
854
|
-
/** DELETE /api/retention-policy/{
|
|
855
|
-
clearRetentionOverride<T = unknown>(
|
|
841
|
+
/** DELETE /api/retention-policy/{deployment_target_id}/{retention_class} — Clear Retention Override. */
|
|
842
|
+
clearRetentionOverride<T = unknown>(deploymentTargetId: string, retentionClass: string, options?: RequestOptions): Promise<T>;
|
|
856
843
|
/** GET /api/retention-policy/detection/preview — Detection Retention Preview. */
|
|
857
844
|
detectionRetentionPreview<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
858
845
|
/** POST /api/retention-policy/detection/purge — Detection Retention Purge. */
|
|
859
846
|
detectionRetentionPurge<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
860
847
|
/** GET /api/retention-policy — List Retention Matrix. */
|
|
861
848
|
listRetentionMatrix<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
862
|
-
/** PUT /api/retention-policy/{
|
|
863
|
-
setRetentionOverride<T = unknown>(
|
|
849
|
+
/** PUT /api/retention-policy/{deployment_target_id}/{retention_class} — Set Retention Override. */
|
|
850
|
+
setRetentionOverride<T = unknown>(deploymentTargetId: string, retentionClass: string, options?: RequestOptions): Promise<T>;
|
|
864
851
|
}
|
|
865
852
|
/** `chad` resource `rule_ci`. */
|
|
866
853
|
declare class ChadRuleCi extends Resource {
|
|
@@ -1009,8 +996,6 @@ declare class ChadSettings extends Resource {
|
|
|
1009
996
|
getGeoip<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1010
997
|
/** GET /api/settings/opensearch/status — Get Opensearch Status. */
|
|
1011
998
|
getOpensearchStatus<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1012
|
-
/** GET /api/settings/security — Get Security Settings. */
|
|
1013
|
-
getSecurity<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1014
999
|
/** GET /api/settings/version — Get Version. */
|
|
1015
1000
|
getVersion<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1016
1001
|
/** GET /api/settings/version-cleanup — Get Version Cleanup Settings. */
|
|
@@ -1031,14 +1016,14 @@ declare class ChadSettings extends Resource {
|
|
|
1031
1016
|
testWebhook<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1032
1017
|
/** PUT /api/settings/{key} — Update Setting. */
|
|
1033
1018
|
update<T = unknown>(key: string, options?: RequestOptions): Promise<T>;
|
|
1019
|
+
/** PUT /api/settings/ai/data-classes — Update Ai Data Classes. */
|
|
1020
|
+
updateAiDataClasses<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1034
1021
|
/** PUT /api/settings/alert-clustering — Update Alert Clustering Settings. */
|
|
1035
1022
|
updateAlertClustering<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1036
1023
|
/** PUT /api/settings/explore — Update Explore Settings. */
|
|
1037
1024
|
updateExplore<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1038
1025
|
/** PUT /api/settings/geoip — Update Geoip Settings. */
|
|
1039
1026
|
updateGeoip<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1040
|
-
/** PUT /api/settings/security — Update Security Settings. */
|
|
1041
|
-
updateSecurity<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1042
1027
|
/** PUT /api/settings/version-cleanup — Update Version Cleanup Settings. */
|
|
1043
1028
|
updateVersionCleanup<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1044
1029
|
}
|
|
@@ -1214,12 +1199,8 @@ declare class VectorflowAudit extends Resource {
|
|
|
1214
1199
|
}
|
|
1215
1200
|
/** `vectorflow` resource `deploy_requests`. */
|
|
1216
1201
|
declare class VectorflowDeployRequests extends Resource {
|
|
1217
|
-
/** POST /api/v1/deploy-requests/{id}/approve — Approve deploy request. */
|
|
1218
|
-
approve<T = unknown>(id: string, options?: RequestOptions): Promise<T>;
|
|
1219
1202
|
/** GET /api/v1/deploy-requests — List deploy requests. */
|
|
1220
1203
|
list<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1221
|
-
/** POST /api/v1/deploy-requests/{id}/reject — Reject deploy request. */
|
|
1222
|
-
reject<T = unknown>(id: string, options?: RequestOptions): Promise<T>;
|
|
1223
1204
|
}
|
|
1224
1205
|
/** `vectorflow` resource `environments`. */
|
|
1225
1206
|
declare class VectorflowEnvironments extends Resource {
|
|
@@ -1323,12 +1304,12 @@ declare class WardenAiAuthoring extends Resource {
|
|
|
1323
1304
|
}
|
|
1324
1305
|
/** `warden` resource `ai_settings`. */
|
|
1325
1306
|
declare class WardenAiSettings extends Resource {
|
|
1326
|
-
/** GET /api/settings/ai — Get Ai Config. */
|
|
1327
|
-
getAiConfig<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1328
1307
|
/** GET /api/settings/ai/status — Get Ai Status. */
|
|
1329
1308
|
getAiStatus<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1330
|
-
/**
|
|
1331
|
-
|
|
1309
|
+
/** GET /api/settings/ai — Get Ai Usage. */
|
|
1310
|
+
getAiUsage<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1311
|
+
/** PUT /api/settings/ai — Put Ai Usage. */
|
|
1312
|
+
putAiUsage<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1332
1313
|
/** POST /api/settings/ai/test — Test Ai Config. */
|
|
1333
1314
|
testAiConfig<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1334
1315
|
}
|
|
@@ -1356,15 +1337,6 @@ declare class WardenAlerts extends Resource {
|
|
|
1356
1337
|
/** GET /api/alerts — List Alerts. */
|
|
1357
1338
|
list<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1358
1339
|
}
|
|
1359
|
-
/** `warden` resource `approval_policy`. */
|
|
1360
|
-
declare class WardenApprovalPolicy extends Resource {
|
|
1361
|
-
/** POST /api/approval-policy/exceptions — Create Exception. */
|
|
1362
|
-
createException<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1363
|
-
/** GET /api/approval-policy/exceptions — List Exceptions. */
|
|
1364
|
-
listExceptions<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1365
|
-
/** POST /api/approval-policy/exceptions/{exception_id}/revoke — Revoke Exception. */
|
|
1366
|
-
revokeException<T = unknown>(exceptionId: string, options?: RequestOptions): Promise<T>;
|
|
1367
|
-
}
|
|
1368
1340
|
/** `warden` resource `approvals`. */
|
|
1369
1341
|
declare class WardenApprovals extends Resource {
|
|
1370
1342
|
/** GET /api/approvals — List Approvals. */
|
|
@@ -1374,8 +1346,6 @@ declare class WardenApprovals extends Resource {
|
|
|
1374
1346
|
declare class WardenAudit extends Resource {
|
|
1375
1347
|
/** GET /api/audit — List Audit. */
|
|
1376
1348
|
list<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1377
|
-
/** GET /api/audit/actors — List Audit Actors. */
|
|
1378
|
-
listAuditActors<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1379
1349
|
/** GET /api/audit/verify — Verify Audit Chain. */
|
|
1380
1350
|
verifyAuditChain<T = unknown>(options?: RequestOptions): Promise<T>;
|
|
1381
1351
|
}
|
|
@@ -1770,7 +1740,6 @@ declare class WardenWebhookSources extends Resource {
|
|
|
1770
1740
|
declare class ChadResources {
|
|
1771
1741
|
readonly aiCopilot: ChadAiCopilot;
|
|
1772
1742
|
readonly alerts: ChadAlerts;
|
|
1773
|
-
readonly apiKeys: ChadApiKeys;
|
|
1774
1743
|
readonly attack: ChadAttack;
|
|
1775
1744
|
readonly attackNarratives: ChadAttackNarratives;
|
|
1776
1745
|
readonly audit: ChadAudit;
|
|
@@ -1783,11 +1752,11 @@ declare class ChadResources {
|
|
|
1783
1752
|
readonly dashboards: ChadDashboards;
|
|
1784
1753
|
readonly dataSources: ChadDataSources;
|
|
1785
1754
|
readonly deploymentRequests: ChadDeploymentRequests;
|
|
1755
|
+
readonly deploymentTargets: ChadDeploymentTargets;
|
|
1786
1756
|
readonly detectionPacks: ChadDetectionPacks;
|
|
1787
1757
|
readonly diagnostics: ChadDiagnostics;
|
|
1788
1758
|
readonly enrichmentWebhooks: ChadEnrichmentWebhooks;
|
|
1789
1759
|
readonly entities: ChadEntities;
|
|
1790
|
-
readonly environments: ChadEnvironments;
|
|
1791
1760
|
readonly explore: ChadExplore;
|
|
1792
1761
|
readonly export: ChadExport;
|
|
1793
1762
|
readonly fieldMappings: ChadFieldMappings;
|
|
@@ -1849,7 +1818,6 @@ declare class WardenResources {
|
|
|
1849
1818
|
readonly aiSettings: WardenAiSettings;
|
|
1850
1819
|
readonly aiTriage: WardenAiTriage;
|
|
1851
1820
|
readonly alerts: WardenAlerts;
|
|
1852
|
-
readonly approvalPolicy: WardenApprovalPolicy;
|
|
1853
1821
|
readonly approvals: WardenApprovals;
|
|
1854
1822
|
readonly audit: WardenAudit;
|
|
1855
1823
|
readonly authorityRevisions: WardenAuthorityRevisions;
|
|
@@ -1976,6 +1944,6 @@ declare class VeltroClient {
|
|
|
1976
1944
|
* No runtime dependencies: the transport is `fetch`.
|
|
1977
1945
|
*/
|
|
1978
1946
|
|
|
1979
|
-
declare const VERSION = "0.15.
|
|
1947
|
+
declare const VERSION = "0.15.13";
|
|
1980
1948
|
|
|
1981
1949
|
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 };
|