@aws-sdk/client-securityagent 3.1171.0 → 3.1173.0

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.
Files changed (38) hide show
  1. package/README.md +7 -0
  2. package/dist-cjs/index.js +48 -9
  3. package/dist-es/SecurityAgent.js +2 -0
  4. package/dist-es/commands/ResumePentestJobCommand.js +4 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/enums.js +10 -0
  7. package/dist-es/schemas/schemas_0.js +28 -8
  8. package/dist-types/SecurityAgent.d.ts +8 -0
  9. package/dist-types/SecurityAgentClient.d.ts +3 -2
  10. package/dist-types/commands/BatchDisassociateFindingIssueCommand.d.ts +1 -1
  11. package/dist-types/commands/BatchExportFindingsCommand.d.ts +1 -1
  12. package/dist-types/commands/BatchGetCodeReviewJobsCommand.d.ts +2 -2
  13. package/dist-types/commands/BatchGetFindingsCommand.d.ts +3 -0
  14. package/dist-types/commands/BatchGetPentestJobsCommand.d.ts +3 -2
  15. package/dist-types/commands/BatchGetThreatModelJobsCommand.d.ts +2 -2
  16. package/dist-types/commands/ListCodeReviewJobsForCodeReviewCommand.d.ts +1 -1
  17. package/dist-types/commands/ListPentestJobsForPentestCommand.d.ts +2 -1
  18. package/dist-types/commands/ListThreatModelJobsCommand.d.ts +1 -1
  19. package/dist-types/commands/ResumePentestJobCommand.d.ts +119 -0
  20. package/dist-types/commands/StartCodeReviewJobCommand.d.ts +1 -1
  21. package/dist-types/commands/StartPentestJobCommand.d.ts +2 -2
  22. package/dist-types/commands/StartThreatModelJobCommand.d.ts +1 -1
  23. package/dist-types/commands/StopPentestJobCommand.d.ts +1 -0
  24. package/dist-types/commands/index.d.ts +1 -0
  25. package/dist-types/models/enums.d.ts +27 -0
  26. package/dist-types/models/models_0.d.ts +112 -77
  27. package/dist-types/models/models_1.d.ts +79 -2
  28. package/dist-types/schemas/schemas_0.d.ts +3 -0
  29. package/dist-types/ts3.4/SecurityAgent.d.ts +18 -0
  30. package/dist-types/ts3.4/SecurityAgentClient.d.ts +6 -0
  31. package/dist-types/ts3.4/commands/ResumePentestJobCommand.d.ts +38 -0
  32. package/dist-types/ts3.4/commands/StartPentestJobCommand.d.ts +1 -1
  33. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  34. package/dist-types/ts3.4/models/enums.d.ts +12 -0
  35. package/dist-types/ts3.4/models/models_0.d.ts +24 -16
  36. package/dist-types/ts3.4/models/models_1.d.ts +19 -0
  37. package/dist-types/ts3.4/schemas/schemas_0.d.ts +3 -0
  38. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
- import { StartPentestJobInput, StartPentestJobOutput } from "../models/models_0";
2
+ import { StartPentestJobInput, StartPentestJobOutput } from "../models/models_1";
3
3
  export { __MetadataBearer };
4
4
  export interface StartPentestJobCommandInput extends StartPentestJobInput {}
5
5
  export interface StartPentestJobCommandOutput extends StartPentestJobOutput, __MetadataBearer {}
@@ -72,6 +72,7 @@ export * from "./ListThreatModelJobTasksCommand";
72
72
  export * from "./ListThreatModelJobsCommand";
73
73
  export * from "./ListThreatModelsCommand";
74
74
  export * from "./ListThreatsCommand";
75
+ export * from "./ResumePentestJobCommand";
75
76
  export * from "./StartCodeRemediationCommand";
76
77
  export * from "./StartCodeReviewJobCommand";
77
78
  export * from "./StartPentestJobCommand";
@@ -138,6 +138,7 @@ export type TestScopeType = (typeof TestScopeType)[keyof typeof TestScopeType];
138
138
  export declare const ErrorCode: {
139
139
  readonly CLIENT_ERROR: "CLIENT_ERROR";
140
140
  readonly INTERNAL_ERROR: "INTERNAL_ERROR";
141
+ readonly PAUSED_BY_USER: "PAUSED_BY_USER";
141
142
  readonly STOPPED_BY_USER: "STOPPED_BY_USER";
142
143
  };
143
144
  export type ErrorCode = (typeof ErrorCode)[keyof typeof ErrorCode];
@@ -161,6 +162,8 @@ export declare const JobStatus: {
161
162
  readonly COMPLETED: "COMPLETED";
162
163
  readonly FAILED: "FAILED";
163
164
  readonly IN_PROGRESS: "IN_PROGRESS";
165
+ readonly PAUSED: "PAUSED";
166
+ readonly PAUSING: "PAUSING";
164
167
  readonly STOPPED: "STOPPED";
165
168
  readonly STOPPING: "STOPPING";
166
169
  };
@@ -197,6 +200,15 @@ export declare const CodeRemediationTaskStatus: {
197
200
  };
198
201
  export type CodeRemediationTaskStatus =
199
202
  (typeof CodeRemediationTaskStatus)[keyof typeof CodeRemediationTaskStatus];
203
+ export declare const CodeRemediationJobStatus: {
204
+ readonly COMPLETED: "COMPLETED";
205
+ readonly FAILED: "FAILED";
206
+ readonly IN_PROGRESS: "IN_PROGRESS";
207
+ readonly NO_CHANGE_REQUIRED: "NO_CHANGE_REQUIRED";
208
+ readonly UNKNOWN: "UNKNOWN";
209
+ };
210
+ export type CodeRemediationJobStatus =
211
+ (typeof CodeRemediationJobStatus)[keyof typeof CodeRemediationJobStatus];
200
212
  export declare const ValidationStatus: {
201
213
  readonly CONFIRMED: "CONFIRMED";
202
214
  readonly NOT_REPRODUCED: "NOT_REPRODUCED";
@@ -3,6 +3,7 @@ import {
3
3
  ArtifactType,
4
4
  AuthenticationProviderType,
5
5
  CleanUpStrategy,
6
+ CodeRemediationJobStatus,
6
7
  CodeRemediationStrategy,
7
8
  CodeRemediationTaskStatus,
8
9
  ConfidenceLevel,
@@ -643,6 +644,9 @@ export interface CodeRemediationTaskDetails {
643
644
  repoName?: string | undefined;
644
645
  codeDiffLink?: string | undefined;
645
646
  pullRequestLink?: string | undefined;
647
+ status?: CodeRemediationJobStatus | undefined;
648
+ statusCode?: string | undefined;
649
+ statusReason?: string | undefined;
646
650
  }
647
651
  export interface CodeRemediationTask {
648
652
  status: CodeRemediationTaskStatus | undefined;
@@ -744,6 +748,7 @@ export interface PentestJob {
744
748
  scopeChanges?: ScopeChange[] | undefined;
745
749
  cicdConfiguration?: CiCdConfiguration | undefined;
746
750
  testScope?: TestScope | undefined;
751
+ version?: string | undefined;
747
752
  createdAt?: Date | undefined;
748
753
  updatedAt?: Date | undefined;
749
754
  }
@@ -2093,6 +2098,7 @@ export interface PentestJobSummary {
2093
2098
  updatedAt?: Date | undefined;
2094
2099
  jobType?: JobType | undefined;
2095
2100
  reportUrl?: string | undefined;
2101
+ version?: string | undefined;
2096
2102
  }
2097
2103
  export interface ListPentestJobsForPentestOutput {
2098
2104
  pentestJobSummaries?: PentestJobSummary[] | undefined;
@@ -2312,6 +2318,24 @@ export interface UpdatePrivateConnectionCertificateOutput {
2312
2318
  failureMessage?: string | undefined;
2313
2319
  tags?: Record<string, string> | undefined;
2314
2320
  }
2321
+ export interface ResumePentestJobInput {
2322
+ agentSpaceId?: string | undefined;
2323
+ pentestJobId?: string | undefined;
2324
+ actors?: Actor[] | undefined;
2325
+ networkTrafficConfig?: NetworkTrafficConfig | undefined;
2326
+ vpcConfig?: VpcConfig | undefined;
2327
+ maxTaskHours?: number | undefined;
2328
+ copyConfigFromPentest?: boolean | undefined;
2329
+ }
2330
+ export interface ResumePentestJobOutput {
2331
+ title?: string | undefined;
2332
+ status?: JobStatus | undefined;
2333
+ createdAt?: Date | undefined;
2334
+ updatedAt?: Date | undefined;
2335
+ pentestId?: string | undefined;
2336
+ pentestJobId?: string | undefined;
2337
+ version?: string | undefined;
2338
+ }
2315
2339
  export interface UpdateSecurityRequirementPackInput {
2316
2340
  packId: string | undefined;
2317
2341
  name?: string | undefined;
@@ -2345,19 +2369,3 @@ export interface StartCodeReviewJobOutput {
2345
2369
  codeReviewJobId: string | undefined;
2346
2370
  agentSpaceId?: string | undefined;
2347
2371
  }
2348
- export interface StartPentestJobInput {
2349
- agentSpaceId: string | undefined;
2350
- pentestId: string | undefined;
2351
- jobType?: JobType | undefined;
2352
- selectedFindingIds?: string[] | undefined;
2353
- scopeChanges?: ScopeChange[] | undefined;
2354
- }
2355
- export interface StartPentestJobOutput {
2356
- title?: string | undefined;
2357
- status?: JobStatus | undefined;
2358
- createdAt?: Date | undefined;
2359
- updatedAt?: Date | undefined;
2360
- pentestId?: string | undefined;
2361
- pentestJobId?: string | undefined;
2362
- agentSpaceId?: string | undefined;
2363
- }
@@ -4,6 +4,7 @@ import {
4
4
  DomainVerificationMethod,
5
5
  FindingStatus,
6
6
  JobStatus,
7
+ JobType,
7
8
  RiskLevel,
8
9
  RiskType,
9
10
  SkillType,
@@ -23,12 +24,29 @@ import {
23
24
  NetworkTrafficConfig,
24
25
  ReportDestination,
25
26
  ReportFilters,
27
+ ScopeChange,
26
28
  TestScope,
27
29
  ThreatAnchorShape,
28
30
  ThreatEvidenceShape,
29
31
  VerificationDetails,
30
32
  VpcConfig,
31
33
  } from "./models_0";
34
+ export interface StartPentestJobInput {
35
+ agentSpaceId: string | undefined;
36
+ pentestId: string | undefined;
37
+ jobType?: JobType | undefined;
38
+ selectedFindingIds?: string[] | undefined;
39
+ scopeChanges?: ScopeChange[] | undefined;
40
+ }
41
+ export interface StartPentestJobOutput {
42
+ title?: string | undefined;
43
+ status?: JobStatus | undefined;
44
+ createdAt?: Date | undefined;
45
+ updatedAt?: Date | undefined;
46
+ pentestId?: string | undefined;
47
+ pentestJobId?: string | undefined;
48
+ agentSpaceId?: string | undefined;
49
+ }
32
50
  export interface StartThreatModelJobInput {
33
51
  agentSpaceId: string | undefined;
34
52
  threatModelId: string | undefined;
@@ -50,6 +68,7 @@ export interface StopCodeReviewJobOutput {}
50
68
  export interface StopPentestJobInput {
51
69
  agentSpaceId: string | undefined;
52
70
  pentestJobId: string | undefined;
71
+ pause?: boolean | undefined;
53
72
  }
54
73
  export interface StopPentestJobOutput {}
55
74
  export interface StopThreatModelJobInput {
@@ -252,6 +252,8 @@ export declare var PentestSummary$: StaticStructureSchema;
252
252
  export declare var PrivateConnectionSummary$: StaticStructureSchema;
253
253
  export declare var ReportDestination$: StaticStructureSchema;
254
254
  export declare var ReportFilters$: StaticStructureSchema;
255
+ export declare var ResumePentestJobInput$: StaticStructureSchema;
256
+ export declare var ResumePentestJobOutput$: StaticStructureSchema;
255
257
  export declare var ScopeChange$: StaticStructureSchema;
256
258
  export declare var ScopeResult$: StaticStructureSchema;
257
259
  export declare var SecurityRequirementArtifact$: StaticStructureSchema;
@@ -416,6 +418,7 @@ export declare var ListThreatModelJobs$: StaticOperationSchema;
416
418
  export declare var ListThreatModelJobTasks$: StaticOperationSchema;
417
419
  export declare var ListThreatModels$: StaticOperationSchema;
418
420
  export declare var ListThreats$: StaticOperationSchema;
421
+ export declare var ResumePentestJob$: StaticOperationSchema;
419
422
  export declare var StartCodeRemediation$: StaticOperationSchema;
420
423
  export declare var StartCodeReviewJob$: StaticOperationSchema;
421
424
  export declare var StartPentestJob$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-securityagent",
3
- "version": "3.1171.0",
3
+ "version": "3.1173.0",
4
4
  "description": "AWS SDK for JavaScript Securityagent Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-securityagent",
6
6
  "license": "Apache-2.0",