@aws-sdk/client-devops-agent 3.1117.0 → 3.1119.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 (40) hide show
  1. package/README.md +7 -0
  2. package/dist-cjs/index.js +230 -106
  3. package/dist-es/DevOpsAgent.js +2 -0
  4. package/dist-es/commands/UpdateApprovalActionCommand.js +4 -0
  5. package/dist-es/commands/index.js +1 -0
  6. package/dist-es/models/enums.js +29 -3
  7. package/dist-es/schemas/schemas_0.js +186 -102
  8. package/dist-types/DevOpsAgent.d.ts +7 -0
  9. package/dist-types/DevOpsAgentClient.d.ts +3 -2
  10. package/dist-types/commands/AssociateServiceCommand.d.ts +84 -2
  11. package/dist-types/commands/CreateAgentSpaceCommand.d.ts +6 -0
  12. package/dist-types/commands/CreateBacklogTaskCommand.d.ts +1 -1
  13. package/dist-types/commands/CreatePrivateConnectionCommand.d.ts +3 -3
  14. package/dist-types/commands/GetAgentSpaceCommand.d.ts +3 -0
  15. package/dist-types/commands/GetAssociationCommand.d.ts +42 -1
  16. package/dist-types/commands/GetBacklogTaskCommand.d.ts +1 -1
  17. package/dist-types/commands/GetServiceCommand.d.ts +3 -1
  18. package/dist-types/commands/ListAgentSpacesCommand.d.ts +3 -0
  19. package/dist-types/commands/ListAssociationsCommand.d.ts +42 -1
  20. package/dist-types/commands/ListBacklogTasksCommand.d.ts +2 -2
  21. package/dist-types/commands/ListExecutionsCommand.d.ts +1 -1
  22. package/dist-types/commands/ListServicesCommand.d.ts +3 -1
  23. package/dist-types/commands/RegisterServiceCommand.d.ts +1 -1
  24. package/dist-types/commands/SendMessageCommand.d.ts +8 -0
  25. package/dist-types/commands/UpdateAgentSpaceCommand.d.ts +6 -0
  26. package/dist-types/commands/UpdateApprovalActionCommand.d.ts +111 -0
  27. package/dist-types/commands/UpdateAssociationCommand.d.ts +84 -2
  28. package/dist-types/commands/UpdateBacklogTaskCommand.d.ts +2 -2
  29. package/dist-types/commands/index.d.ts +1 -0
  30. package/dist-types/models/enums.d.ts +99 -6
  31. package/dist-types/models/models_0.d.ts +243 -7
  32. package/dist-types/schemas/schemas_0.d.ts +8 -0
  33. package/dist-types/ts3.4/DevOpsAgent.d.ts +17 -0
  34. package/dist-types/ts3.4/DevOpsAgentClient.d.ts +6 -0
  35. package/dist-types/ts3.4/commands/UpdateApprovalActionCommand.d.ts +39 -0
  36. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  37. package/dist-types/ts3.4/models/enums.d.ts +36 -4
  38. package/dist-types/ts3.4/models/models_0.d.ts +59 -1
  39. package/dist-types/ts3.4/schemas/schemas_0.d.ts +8 -0
  40. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import type { DocumentType as __DocumentType } from "@smithy/types";
2
- import type { AuthFlow, CapabilityType, EventChannelType, ExecutionStatus, GithubRepoOwnerType, GitLabTokenType, GoalStatus, GoalType, IpAddressType, MCPServerAuthorizationMethod, MonitorAccountType, NewRelicRegion, OrderType, PostRegisterServiceSupportedService, Priority, PrivateConnectionStatus, PrivateConnectionType, RecommendationPriority, RecommendationStatus, RemoteAgentAuthorizationMethod, ResourceConfigDnsResolution, SchedulerState, Service, SourceAccountType, TaskSortField, TaskSortOrder, TaskStatus, TaskType, UserType, ValidationStatus, WebhookType } from "./enums";
2
+ import type { AgentSpacePreferenceKey, ApprovalActionType, ApprovalStatus, AuthFlow, CapabilityType, EventChannelType, ExecutionStatus, GithubRepoOwnerType, GitLabTokenType, GoalStatus, GoalType, IpAddressType, MCPServerAuthorizationMethod, MonitorAccountType, NewRelicRegion, OrderType, PostRegisterServiceSupportedService, Priority, PrivateConnectionStatus, PrivateConnectionType, RecommendationPriority, RecommendationStatus, RemoteAgentAuthorizationMethod, ResourceConfigDnsResolution, SchedulerState, Service, SourceAccountType, TaskSortField, TaskSortOrder, TaskStatus, TaskType, ToolClassification, TriggerEvent, UserType, ValidationStatus, WebhookType } from "./enums";
3
3
  /**
4
4
  * <p>Details specific to a registered Azure DevOps service.</p>
5
5
  * @public
@@ -767,6 +767,38 @@ export interface AgentSpace {
767
767
  * @public
768
768
  */
769
769
  agentSpaceId: string | undefined;
770
+ /**
771
+ * <p>The preferences configured on the agent space. Preferences that are not set take their default values.</p>
772
+ * @public
773
+ */
774
+ preferences?: Partial<Record<AgentSpacePreferenceKey, boolean>> | undefined;
775
+ }
776
+ /**
777
+ * <p>A regex-based match condition. Passes when the value matches any pattern.</p>
778
+ * @public
779
+ */
780
+ export interface PatternFilter {
781
+ /**
782
+ * <p>Anchored full-match regex patterns. The condition passes when the value matches at least one pattern.</p>
783
+ * @public
784
+ */
785
+ patterns: string[] | undefined;
786
+ }
787
+ /**
788
+ * <p>A group of trigger conditions. The group matches when ALL present conditions pass. A group cannot be empty: at least one condition must be present.</p>
789
+ * @public
790
+ */
791
+ export interface TriggerFilterGroup {
792
+ /**
793
+ * <p>Passes when the webhook event is one of the listed events.</p>
794
+ * @public
795
+ */
796
+ events?: TriggerEvent[] | undefined;
797
+ /**
798
+ * <p>Passes when the change request target branch matches. Applicable to RELEASE_READINESS_REVIEW only.</p>
799
+ * @public
800
+ */
801
+ targetBranches?: PatternFilter | undefined;
770
802
  }
771
803
  /**
772
804
  * <p>Capability configuration for the AWS DevOps Agent.</p>
@@ -778,6 +810,11 @@ export interface CapabilityConfiguration {
778
810
  * @public
779
811
  */
780
812
  enabled?: boolean | undefined;
813
+ /**
814
+ * <p>Optional trigger filter groups. Evaluated only when enabled=true; retained while the capability is disabled, so re-enabling restores the prior trigger behavior.</p>
815
+ * @public
816
+ */
817
+ triggerFilterGroups?: TriggerFilterGroup[] | undefined;
781
818
  }
782
819
  /**
783
820
  * <p>Configuration for AWS monitor account integration, allowing AIDevOps to monitor AWS resources.</p>
@@ -799,6 +836,16 @@ export interface AWSConfiguration {
799
836
  * @public
800
837
  */
801
838
  accountType: MonitorAccountType | undefined;
839
+ /**
840
+ * <p>Optional IAM role ARN to be assumed by AIDevOps for elevated directed actions on behalf of the customer. Used for mutating operations gated by elevatedActionsEnabled on the AgentSpace. When not provided, only non-elevated directed actions are available for this AWS account.</p>
841
+ * @public
842
+ */
843
+ agentElevatedRoleArn?: string | undefined;
844
+ /**
845
+ * <p>Validation status of the agentElevatedRoleArn. Updated asynchronously after the customer registers an elevated role. Possible values: PENDING_CONFIRMATION (validation in progress), VALID (role validated), INVALID (validation failed).</p>
846
+ * @public
847
+ */
848
+ agentElevatedRoleArnStatus?: ValidationStatus | undefined;
802
849
  }
803
850
  /**
804
851
  * <p>Configuration for Azure subscription integration.</p>
@@ -886,6 +933,8 @@ export interface GitHubConfiguration {
886
933
  instanceIdentifier?: string | undefined;
887
934
  /**
888
935
  * <p>Optional role ARN that AIDevOps assumes at runtime for automatic verification testing and VPC connectivity on this association.</p>
936
+ *
937
+ * @deprecated (since 2026-08-04) Superseded by the ReleaseManagement association. Configure the runtime role on the ReleaseManagement association and reference it via releaseManagementAssociationId.
889
938
  * @public
890
939
  */
891
940
  runtimeRoleArn?: string | undefined;
@@ -912,10 +961,28 @@ export interface GitLabConfiguration {
912
961
  instanceIdentifier?: string | undefined;
913
962
  /**
914
963
  * <p>Optional role ARN that AIDevOps assumes at runtime for automatic verification testing and VPC connectivity on this association.</p>
964
+ *
965
+ * @deprecated (since 2026-08-04) Superseded by the ReleaseManagement association. Configure the runtime role on the ReleaseManagement association and reference it via releaseManagementAssociationId.
915
966
  * @public
916
967
  */
917
968
  runtimeRoleArn?: string | undefined;
918
969
  }
970
+ /**
971
+ * <p>An MCP tool together with its access categorization.</p>
972
+ * @public
973
+ */
974
+ export interface MCPToolDetail {
975
+ /**
976
+ * <p>The name of the MCP tool.</p>
977
+ * @public
978
+ */
979
+ name: string | undefined;
980
+ /**
981
+ * <p>The access categorization of the MCP tool.</p>
982
+ * @public
983
+ */
984
+ toolClassification?: ToolClassification | undefined;
985
+ }
919
986
  /**
920
987
  * <p>Configuration for Model Context Protocol (MCP) server integration.</p>
921
988
  * @public
@@ -926,12 +993,22 @@ export interface MCPServerConfiguration {
926
993
  * @public
927
994
  */
928
995
  tools: string[] | undefined;
996
+ /**
997
+ * <p>List of MCP tools with their access categorization. When provided, the tool names must match those in the tools member.</p>
998
+ * @public
999
+ */
1000
+ toolDetails?: MCPToolDetail[] | undefined;
929
1001
  }
930
1002
  /**
931
1003
  * <p>Mixin for webhook update support.</p>
932
1004
  * @public
933
1005
  */
934
1006
  export interface MCPServerDatadogConfiguration {
1007
+ /**
1008
+ * <p>The subset of elevated-access tools enabled for this integration.</p>
1009
+ * @public
1010
+ */
1011
+ enabledElevatedTools?: MCPToolDetail[] | undefined;
935
1012
  }
936
1013
  /**
937
1014
  * <p>Configuration for Grafana MCP server integration, used with an AWS-hosted MCP server.</p>
@@ -953,6 +1030,11 @@ export interface MCPServerGrafanaConfiguration {
953
1030
  * @public
954
1031
  */
955
1032
  tools?: string[] | undefined;
1033
+ /**
1034
+ * <p>The subset of elevated-access tools enabled for this integration.</p>
1035
+ * @public
1036
+ */
1037
+ enabledElevatedTools?: MCPToolDetail[] | undefined;
956
1038
  }
957
1039
  /**
958
1040
  * <p>Mixin for webhook update support.</p>
@@ -980,6 +1062,11 @@ export interface MCPServerSigV4Configuration {
980
1062
  * @public
981
1063
  */
982
1064
  tools: string[] | undefined;
1065
+ /**
1066
+ * <p>List of MCP tools with their access categorization. When provided, the tool names must match those in the tools member.</p>
1067
+ * @public
1068
+ */
1069
+ toolDetails?: MCPToolDetail[] | undefined;
983
1070
  }
984
1071
  /**
985
1072
  * <p>Mixin for webhook update support.</p>
@@ -1085,7 +1172,7 @@ export interface SlackConfiguration {
1085
1172
  transmissionTarget: SlackTransmissionTarget | undefined;
1086
1173
  }
1087
1174
  /**
1088
- * <p>Configuration for AWS source account integration. Note: passRole check on 'assumableRoleArn' is not supported.</p>
1175
+ * <p>Configuration for AWS source account integration. Setting the role ARNs on this configuration requires the caller to have at least the iam:PassRole permission (see assumableRoleArn).</p>
1089
1176
  * @public
1090
1177
  */
1091
1178
  export interface SourceAwsConfiguration {
@@ -1100,7 +1187,7 @@ export interface SourceAwsConfiguration {
1100
1187
  */
1101
1188
  accountType: SourceAccountType | undefined;
1102
1189
  /**
1103
- * <p>Role ARN to be assumed by AIDevOps to operate on behalf of customer.</p>
1190
+ * <p>Role ARN to be assumed by AIDevOps to operate on behalf of customer. To set this role ARN on AssociateService or UpdateAssociation, the caller must have at least the iam:PassRole permission on arn:aws:iam::&lt;account-id&gt;:role/* in the caller's own account, with the condition iam:PassedToService set to aidevops.amazonaws.com. A broader iam:PassRole grant also satisfies this requirement.</p>
1104
1191
  * @public
1105
1192
  */
1106
1193
  assumableRoleArn: string | undefined;
@@ -1109,6 +1196,16 @@ export interface SourceAwsConfiguration {
1109
1196
  * @public
1110
1197
  */
1111
1198
  externalId?: string | undefined;
1199
+ /**
1200
+ * <p>Optional IAM role ARN to be assumed by AIDevOps for elevated directed actions on behalf of the customer. Used for mutating operations gated by elevatedActionsEnabled on the AgentSpace. When not provided, only non-elevated directed actions are available for this AWS account. Setting this role is subject to the same minimum iam:PassRole requirement described on assumableRoleArn.</p>
1201
+ * @public
1202
+ */
1203
+ agentElevatedRoleArn?: string | undefined;
1204
+ /**
1205
+ * <p>Validation status of the agentElevatedRoleArn. Updated asynchronously after the customer registers an elevated role. Possible values: PENDING_CONFIRMATION (validation in progress), VALID (role validated), INVALID (validation failed).</p>
1206
+ * @public
1207
+ */
1208
+ agentElevatedRoleArnStatus?: ValidationStatus | undefined;
1112
1209
  }
1113
1210
  /**
1114
1211
  * <p>Union of all supported service configuration types. Each service has its own specific configuration structure.</p>
@@ -2033,6 +2130,11 @@ export interface CreateAgentSpaceInput {
2033
2130
  * @public
2034
2131
  */
2035
2132
  tags?: Record<string, string> | undefined;
2133
+ /**
2134
+ * <p>The preferences to configure on the agent space. Preferences not provided take their default values.</p>
2135
+ * @public
2136
+ */
2137
+ preferences?: Partial<Record<AgentSpacePreferenceKey, boolean>> | undefined;
2036
2138
  }
2037
2139
  /**
2038
2140
  * <p>Output containing the newly created AgentSpace.</p>
@@ -2369,6 +2471,11 @@ export interface UpdateAgentSpaceInput {
2369
2471
  * @public
2370
2472
  */
2371
2473
  locale?: string | undefined;
2474
+ /**
2475
+ * <p>The preferences to configure on the agent space. When provided, this replaces the full set of configured preferences; preferences not included revert to their default values. When omitted, the current preferences are left unchanged.</p>
2476
+ * @public
2477
+ */
2478
+ preferences?: Partial<Record<AgentSpacePreferenceKey, boolean>> | undefined;
2372
2479
  }
2373
2480
  /**
2374
2481
  * <p>Output containing the updated AgentSpace.</p>
@@ -2413,6 +2520,53 @@ export interface UpdateOperatorAppIdpConfigOutput {
2413
2520
  */
2414
2521
  idp: IdpAuthConfiguration | undefined;
2415
2522
  }
2523
+ /**
2524
+ * <p>An approval decision supplied when resuming a paused agent execution. When an agent execution pauses to request approval for an elevated action, SendMessage streams an approval request carrying interrupt identifiers. This structure carries the decision back to the service — which paused tool invocation is being resumed, the opaque interrupt identifier that resumes it, the identifier of the approval request being resolved, optional display text of the control the user chose, and the action taken (APPROVED or REJECTED) — so the service can resume the paused execution. All members are optional on the wire; service-side validation is applied against the populated subset.</p>
2525
+ * @public
2526
+ */
2527
+ export interface ApprovalAction {
2528
+ /**
2529
+ * <p>Identifier of the specific paused tool invocation that requested approval. Correlates the approval decision back to the paused invocation.</p>
2530
+ * @public
2531
+ */
2532
+ toolUseId?: string | undefined;
2533
+ /**
2534
+ * <p>An opaque resume identifier issued by the service when an agent execution pauses for approval. Provide it when resuming so the service can resume the correct paused execution.</p>
2535
+ * @public
2536
+ */
2537
+ interruptId?: string | undefined;
2538
+ /**
2539
+ * <p>Identifier of the approval request being resolved.</p>
2540
+ * @public
2541
+ */
2542
+ approvalId?: string | undefined;
2543
+ /**
2544
+ * <p>Optional display text of the UI control the user chose (for example, "Approve Exact", "Approve Broader", or "Reject"), provided as auxiliary decision context.</p>
2545
+ * @public
2546
+ */
2547
+ buttonText?: string | undefined;
2548
+ /**
2549
+ * <p>The action taken on the approval request — APPROVED or REJECTED.</p>
2550
+ * @public
2551
+ */
2552
+ action?: ApprovalActionType | undefined;
2553
+ }
2554
+ /**
2555
+ * <p>Tool-invocation pattern primitive used to express both an agent-requested approval and a finalized approval. The primitive is uniform across AWS and third-party tools: a tool identifier plus a map of argument pins that narrow which invocations the pattern matches.</p>
2556
+ * @public
2557
+ */
2558
+ export interface ApprovalPattern {
2559
+ /**
2560
+ * <p>Identifier of the tool the pattern applies to (e.g. `use_aws` for AWS actions, or a third-party tool name).</p>
2561
+ * @public
2562
+ */
2563
+ tool: string | undefined;
2564
+ /**
2565
+ * <p>Argument constraints that narrow which tool invocations the pattern matches. For AWS tools, the map must include `operation` (the IAM action, e.g. `ec2:AuthorizeSecurityGroupIngress`) and `resource_arn` (the resource ARN or ARN glob); additional narrowing arguments go in further pin keys. The same `\{tool, argumentPins\}` shape is used uniformly for AWS and third-party tools, with tool-specific keys for third-party tools. Requests whose argument pins are collectively too large are rejected with a ValidationException.</p>
2566
+ * @public
2567
+ */
2568
+ argumentPins: Record<string, string> | undefined;
2569
+ }
2416
2570
  /**
2417
2571
  * <p>Represents an asset in an agent space, including its identifier, type, metadata, version, and timestamps.</p>
2418
2572
  * @public
@@ -2521,7 +2675,7 @@ export interface AssetFileContent {
2521
2675
  */
2522
2676
  export interface AssetSourceUrlContent {
2523
2677
  /**
2524
- * <p>The source URL to import asset content from</p>
2678
+ * <p>The source URL to import asset content from.</p>
2525
2679
  * @public
2526
2680
  */
2527
2681
  url: string | undefined;
@@ -3071,7 +3225,7 @@ export interface CreateBacklogTaskResponse {
3071
3225
  */
3072
3226
  export interface CreateChatRequest {
3073
3227
  /**
3074
- * <p>Unique identifier for an agent space (allows alphanumeric characters and hyphens; 1-64 characters)</p>
3228
+ * <p>The unique identifier for the agent space where the chat will be created.</p>
3075
3229
  * @public
3076
3230
  */
3077
3231
  agentSpaceId: string | undefined;
@@ -4304,7 +4458,7 @@ export interface ListBacklogTasksResponse {
4304
4458
  */
4305
4459
  export interface ListChatsRequest {
4306
4460
  /**
4307
- * <p>Unique identifier for an agent space (allows alphanumeric characters and hyphens; 1-64 characters)</p>
4461
+ * <p>The unique identifier for the agent space to list chats from.</p>
4308
4462
  * @public
4309
4463
  */
4310
4464
  agentSpaceId: string | undefined;
@@ -5122,10 +5276,15 @@ export interface SendMessageContext {
5122
5276
  */
5123
5277
  lastMessage?: string | undefined;
5124
5278
  /**
5125
- * <p>Response to a UI prompt (not a text conversation message). Operator App SDK clients set this to the control-string sentinel `"APPROVAL_ACTION"` when the request is resuming a paused tool call after an operator approval decision; in that case the structured decision context lives on the sibling `approvalAction` member and the chat agent reads from there. Preserved as a String for back-compat: pre-typed-approval clients still encode arbitrary UI-prompt responses as JSON in this field, and the chat agent parses them out during the transition.</p>
5279
+ * <p>Response to a UI prompt (not a text conversation message). Set this to the sentinel value `"APPROVAL_ACTION"` when the request is resuming a paused execution after an approval decision; in that case the structured decision is provided on the sibling `approvalAction` member. Preserved as a String for backward compatibility: clients that predate the typed approval field may still encode UI-prompt responses as JSON in this field.</p>
5126
5280
  * @public
5127
5281
  */
5128
5282
  userActionResponse?: string | undefined;
5283
+ /**
5284
+ * <p>An approval decision supplied when resuming a paused agent execution. When an agent execution pauses to request approval for an elevated action, SendMessage streams an approval request carrying interrupt identifiers. To resume the paused execution, call SendMessage again with `userActionResponse` set to `"APPROVAL_ACTION"` and this member populated with those identifiers and the decision (APPROVED or REJECTED). Optional; omit it for messages that are not resuming an approval.</p>
5285
+ * @public
5286
+ */
5287
+ approvalAction?: ApprovalAction | undefined;
5129
5288
  }
5130
5289
  /**
5131
5290
  * <p>Request structure for sending a chat message</p>
@@ -5164,6 +5323,11 @@ export interface SendMessageRequest {
5164
5323
  * @public
5165
5324
  */
5166
5325
  assetIds?: string[] | undefined;
5326
+ /**
5327
+ * <p>Optional model tier selection. Valid values: smart, balanced, fast. Absent or unrecognized values default to balanced.</p>
5328
+ * @public
5329
+ */
5330
+ modelTier?: string | undefined;
5167
5331
  }
5168
5332
  /**
5169
5333
  * <p>JSON delta containing partial JSON</p>
@@ -5684,6 +5848,16 @@ export interface RegisteredService {
5684
5848
  * @public
5685
5849
  */
5686
5850
  privateConnectionName?: string | undefined;
5851
+ /**
5852
+ * <p>The timestamp when the service was registered.</p>
5853
+ * @public
5854
+ */
5855
+ createdAt: Date | undefined;
5856
+ /**
5857
+ * <p>The timestamp when the service was last updated.</p>
5858
+ * @public
5859
+ */
5860
+ updatedAt: Date | undefined;
5687
5861
  }
5688
5862
  /**
5689
5863
  * <p>Output containing the requested service details.</p>
@@ -7080,6 +7254,68 @@ export interface UntagResourceRequest {
7080
7254
  */
7081
7255
  export interface UntagResourceResponse {
7082
7256
  }
7257
+ /**
7258
+ * <p>Request structure for UpdateApprovalAction. Submits the terminal decision (APPROVED or REJECTED) against an approval request, optionally carrying the finalized pattern and time-to-live when the action is APPROVED, or a free-text rationale when the action is REJECTED. Cross-field invariants between `action` and the approve-only / reject-only members are enforced by service-side validation.</p>
7259
+ * @public
7260
+ */
7261
+ export interface UpdateApprovalActionRequest {
7262
+ /**
7263
+ * <p>The agent space identifier — multi-tenant workspace scope. Bound from the request URI.</p>
7264
+ * @public
7265
+ */
7266
+ agentSpaceId: string | undefined;
7267
+ /**
7268
+ * <p>Identifier of the approval request being resolved. A UUID. Bound from the request URI.</p>
7269
+ * @public
7270
+ */
7271
+ approvalId: string | undefined;
7272
+ /**
7273
+ * <p>The action to take on the approval request — APPROVED or REJECTED.</p>
7274
+ * @public
7275
+ */
7276
+ action: ApprovalActionType | undefined;
7277
+ /**
7278
+ * <p>The finalized pattern (tool + argumentPins) that scopes the approval. Required when `action` is APPROVED; must be absent when `action` is REJECTED. The pattern narrows, and must not widen, the invocation originally requested by the agent. This cross-field invariant is enforced by service-side validation.</p>
7279
+ * @public
7280
+ */
7281
+ finalPattern?: ApprovalPattern | undefined;
7282
+ /**
7283
+ * <p>Optional free-text rationale for the decision. Permitted when `action` is REJECTED; ignored when `action` is APPROVED.</p>
7284
+ * @public
7285
+ */
7286
+ reason?: string | undefined;
7287
+ /**
7288
+ * <p>Approval lifetime in seconds, starting from when the decision is submitted. Required when `action` is APPROVED AND `singleUse` is false; must be absent when `action` is REJECTED or when `singleUse` is true (a single-use approval backs one executed action and the redemption window collapses). Cross-field invariants are enforced by service-side validation; the @range bound here is the operation-boundary check that always applies (a maximum of 4 hours).</p>
7289
+ * @public
7290
+ */
7291
+ ttlSeconds?: number | undefined;
7292
+ /**
7293
+ * <p>Whether the approved action backs a single executed tool call (true) or is reusable within ttlSeconds (false). Required when `action` is APPROVED; must be absent when `action` is REJECTED. When true, ttlSeconds must be absent (the redemption window collapses to the single use). When false, ttlSeconds is required and bounds the reuse window. Cross-field invariants are enforced by service-side validation.</p>
7294
+ * @public
7295
+ */
7296
+ singleUse?: boolean | undefined;
7297
+ }
7298
+ /**
7299
+ * <p>Response structure for UpdateApprovalAction. Reports the post-submission lifecycle status of the approval request and, when applicable, the absolute expiry timestamp. The status is a lifecycle state distinct from the action verb — an APPROVED submission transitions the request to APPROVED status (live, redeemable); a REJECTED submission transitions it to REJECTED status (terminal).</p>
7300
+ * @public
7301
+ */
7302
+ export interface UpdateApprovalActionResponse {
7303
+ /**
7304
+ * <p>Identifier of the approval request that was resolved. Echoed back so the client can correlate the response with the request.</p>
7305
+ * @public
7306
+ */
7307
+ approvalId: string | undefined;
7308
+ /**
7309
+ * <p>Lifecycle status of the approval request immediately after submission. Expected post-submission states are APPROVED (when the action is APPROVED) or REJECTED (when the action is REJECTED); PENDING is not returned from this operation, and REVOKED and REDEEMED are reachable only via subsequent reads.</p>
7310
+ * @public
7311
+ */
7312
+ status: ApprovalStatus | undefined;
7313
+ /**
7314
+ * <p>Absolute timestamp at which the approval expires. Set when status is APPROVED (computed as the submission time plus ttlSeconds); absent when status is REJECTED.</p>
7315
+ * @public
7316
+ */
7317
+ expiresAt?: Date | undefined;
7318
+ }
7083
7319
  /**
7084
7320
  * <p>Request structure for updating an asset</p>
7085
7321
  * @public
@@ -18,6 +18,8 @@ export declare var ValidationException$: StaticErrorSchema;
18
18
  */
19
19
  export declare const errorTypeRegistries: TypeRegistry[];
20
20
  export declare var AgentSpace$: StaticStructureSchema;
21
+ export declare var ApprovalAction$: StaticStructureSchema;
22
+ export declare var ApprovalPattern$: StaticStructureSchema;
21
23
  export declare var Asset$: StaticStructureSchema;
22
24
  export declare var AssetFile$: StaticStructureSchema;
23
25
  export declare var AssetFileContent$: StaticStructureSchema;
@@ -159,12 +161,14 @@ export declare var MCPServerSigV4AuthorizationConfig$: StaticStructureSchema;
159
161
  export declare var MCPServerSigV4Configuration$: StaticStructureSchema;
160
162
  export declare var MCPServerSigV4ServiceDetails$: StaticStructureSchema;
161
163
  export declare var MCPServerSplunkConfiguration$: StaticStructureSchema;
164
+ export declare var MCPToolDetail$: StaticStructureSchema;
162
165
  export declare var NewRelicApiKeyConfig$: StaticStructureSchema;
163
166
  export declare var NewRelicServiceDetails$: StaticStructureSchema;
164
167
  export declare var OAuthAdditionalStepDetails$: StaticStructureSchema;
165
168
  export declare var PagerDutyConfiguration$: StaticStructureSchema;
166
169
  export declare var PagerDutyDetails$: StaticStructureSchema;
167
170
  export declare var PagerDutyOAuthClientCredentialsConfig$: StaticStructureSchema;
171
+ export declare var PatternFilter$: StaticStructureSchema;
168
172
  export declare var PendingMessage$: StaticStructureSchema;
169
173
  export declare var PrivateConnectionSummary$: StaticStructureSchema;
170
174
  export declare var Recommendation$: StaticStructureSchema;
@@ -225,10 +229,13 @@ export declare var TagResourceResponse$: StaticStructureSchema;
225
229
  export declare var Task$: StaticStructureSchema;
226
230
  export declare var TaskFilter$: StaticStructureSchema;
227
231
  export declare var Trigger$: StaticStructureSchema;
232
+ export declare var TriggerFilterGroup$: StaticStructureSchema;
228
233
  export declare var UntagResourceRequest$: StaticStructureSchema;
229
234
  export declare var UntagResourceResponse$: StaticStructureSchema;
230
235
  export declare var UpdateAgentSpaceInput$: StaticStructureSchema;
231
236
  export declare var UpdateAgentSpaceOutput$: StaticStructureSchema;
237
+ export declare var UpdateApprovalActionRequest$: StaticStructureSchema;
238
+ export declare var UpdateApprovalActionResponse$: StaticStructureSchema;
232
239
  export declare var UpdateAssetFileRequest$: StaticStructureSchema;
233
240
  export declare var UpdateAssetFileResponse$: StaticStructureSchema;
234
241
  export declare var UpdateAssetRequest$: StaticStructureSchema;
@@ -325,6 +332,7 @@ export declare var SendMessage$: StaticOperationSchema;
325
332
  export declare var TagResource$: StaticOperationSchema;
326
333
  export declare var UntagResource$: StaticOperationSchema;
327
334
  export declare var UpdateAgentSpace$: StaticOperationSchema;
335
+ export declare var UpdateApprovalAction$: StaticOperationSchema;
328
336
  export declare var UpdateAsset$: StaticOperationSchema;
329
337
  export declare var UpdateAssetFile$: StaticOperationSchema;
330
338
  export declare var UpdateAssociation$: StaticOperationSchema;
@@ -178,6 +178,10 @@ import {
178
178
  UpdateAgentSpaceCommandInput,
179
179
  UpdateAgentSpaceCommandOutput,
180
180
  } from "./commands/UpdateAgentSpaceCommand";
181
+ import {
182
+ UpdateApprovalActionCommandInput,
183
+ UpdateApprovalActionCommandOutput,
184
+ } from "./commands/UpdateApprovalActionCommand";
181
185
  import { UpdateAssetCommandInput, UpdateAssetCommandOutput } from "./commands/UpdateAssetCommand";
182
186
  import {
183
187
  UpdateAssetFileCommandInput,
@@ -892,6 +896,19 @@ export interface DevOpsAgent {
892
896
  options: __HttpHandlerOptions,
893
897
  cb: (err: any, data?: UpdateAgentSpaceCommandOutput) => void,
894
898
  ): void;
899
+ updateApprovalAction(
900
+ args: UpdateApprovalActionCommandInput,
901
+ options?: __HttpHandlerOptions,
902
+ ): Promise<UpdateApprovalActionCommandOutput>;
903
+ updateApprovalAction(
904
+ args: UpdateApprovalActionCommandInput,
905
+ cb: (err: any, data?: UpdateApprovalActionCommandOutput) => void,
906
+ ): void;
907
+ updateApprovalAction(
908
+ args: UpdateApprovalActionCommandInput,
909
+ options: __HttpHandlerOptions,
910
+ cb: (err: any, data?: UpdateApprovalActionCommandOutput) => void,
911
+ ): void;
895
912
  updateAsset(
896
913
  args: UpdateAssetCommandInput,
897
914
  options?: __HttpHandlerOptions,
@@ -213,6 +213,10 @@ import {
213
213
  UpdateAgentSpaceCommandInput,
214
214
  UpdateAgentSpaceCommandOutput,
215
215
  } from "./commands/UpdateAgentSpaceCommand";
216
+ import {
217
+ UpdateApprovalActionCommandInput,
218
+ UpdateApprovalActionCommandOutput,
219
+ } from "./commands/UpdateApprovalActionCommand";
216
220
  import { UpdateAssetCommandInput, UpdateAssetCommandOutput } from "./commands/UpdateAssetCommand";
217
221
  import {
218
222
  UpdateAssetFileCommandInput,
@@ -307,6 +311,7 @@ export type ServiceInputTypes =
307
311
  | TagResourceCommandInput
308
312
  | UntagResourceCommandInput
309
313
  | UpdateAgentSpaceCommandInput
314
+ | UpdateApprovalActionCommandInput
310
315
  | UpdateAssetCommandInput
311
316
  | UpdateAssetFileCommandInput
312
317
  | UpdateAssociationCommandInput
@@ -370,6 +375,7 @@ export type ServiceOutputTypes =
370
375
  | TagResourceCommandOutput
371
376
  | UntagResourceCommandOutput
372
377
  | UpdateAgentSpaceCommandOutput
378
+ | UpdateApprovalActionCommandOutput
373
379
  | UpdateAssetCommandOutput
374
380
  | UpdateAssetFileCommandOutput
375
381
  | UpdateAssociationCommandOutput
@@ -0,0 +1,39 @@
1
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
2
+ import { UpdateApprovalActionRequest, UpdateApprovalActionResponse } from "../models/models_0";
3
+ export { __MetadataBearer };
4
+ export interface UpdateApprovalActionCommandInput extends UpdateApprovalActionRequest {}
5
+ export interface UpdateApprovalActionCommandOutput
6
+ extends UpdateApprovalActionResponse, __MetadataBearer {}
7
+ declare const UpdateApprovalActionCommand_base: {
8
+ new (
9
+ input: UpdateApprovalActionCommandInput,
10
+ ): import("@smithy/core/client").CommandImpl<
11
+ UpdateApprovalActionCommandInput,
12
+ UpdateApprovalActionCommandOutput,
13
+ import("..").DevOpsAgentClientResolvedConfig,
14
+ import("..").ServiceInputTypes,
15
+ import("..").ServiceOutputTypes
16
+ >;
17
+ new (
18
+ input: UpdateApprovalActionCommandInput,
19
+ ): import("@smithy/core/client").CommandImpl<
20
+ UpdateApprovalActionCommandInput,
21
+ UpdateApprovalActionCommandOutput,
22
+ import("..").DevOpsAgentClientResolvedConfig,
23
+ import("..").ServiceInputTypes,
24
+ import("..").ServiceOutputTypes
25
+ >;
26
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
27
+ };
28
+ export declare class UpdateApprovalActionCommand extends UpdateApprovalActionCommand_base {
29
+ protected static __types: {
30
+ api: {
31
+ input: UpdateApprovalActionRequest;
32
+ output: UpdateApprovalActionResponse;
33
+ };
34
+ sdk: {
35
+ input: UpdateApprovalActionCommandInput;
36
+ output: UpdateApprovalActionCommandOutput;
37
+ };
38
+ };
39
+ }
@@ -50,6 +50,7 @@ export * from "./SendMessageCommand";
50
50
  export * from "./TagResourceCommand";
51
51
  export * from "./UntagResourceCommand";
52
52
  export * from "./UpdateAgentSpaceCommand";
53
+ export * from "./UpdateApprovalActionCommand";
53
54
  export * from "./UpdateAssetCommand";
54
55
  export * from "./UpdateAssetFileCommand";
55
56
  export * from "./UpdateAssociationCommand";
@@ -18,6 +18,7 @@ export type MCPServerAuthorizationMethod =
18
18
  (typeof MCPServerAuthorizationMethod)[keyof typeof MCPServerAuthorizationMethod];
19
19
  export declare const NewRelicRegion: {
20
20
  readonly EU: "EU";
21
+ readonly JP: "JP";
21
22
  readonly US: "US";
22
23
  };
23
24
  export type NewRelicRegion = (typeof NewRelicRegion)[keyof typeof NewRelicRegion];
@@ -28,25 +29,41 @@ export declare const RemoteAgentAuthorizationMethod: {
28
29
  };
29
30
  export type RemoteAgentAuthorizationMethod =
30
31
  (typeof RemoteAgentAuthorizationMethod)[keyof typeof RemoteAgentAuthorizationMethod];
32
+ export declare const AgentSpacePreferenceKey: {
33
+ readonly ELEVATED_ACTIONS_ENABLED: "elevatedActionsEnabled";
34
+ };
35
+ export type AgentSpacePreferenceKey =
36
+ (typeof AgentSpacePreferenceKey)[keyof typeof AgentSpacePreferenceKey];
31
37
  export declare const CapabilityType: {
32
38
  readonly RELEASE_READINESS_REVIEW: "RELEASE_READINESS_REVIEW";
33
39
  readonly RELEASE_READINESS_REVIEW_AUTOMATED_TESTING: "RELEASE_READINESS_REVIEW_AUTOMATED_TESTING";
34
40
  };
35
41
  export type CapabilityType = (typeof CapabilityType)[keyof typeof CapabilityType];
42
+ export declare const TriggerEvent: {
43
+ readonly PULL_REQUEST_DRAFT: "PULL_REQUEST_DRAFT";
44
+ readonly PULL_REQUEST_READY_FOR_REVIEW: "PULL_REQUEST_READY_FOR_REVIEW";
45
+ };
46
+ export type TriggerEvent = (typeof TriggerEvent)[keyof typeof TriggerEvent];
36
47
  export declare const MonitorAccountType: {
37
48
  readonly MONITOR: "monitor";
38
49
  };
39
50
  export type MonitorAccountType = (typeof MonitorAccountType)[keyof typeof MonitorAccountType];
40
- export declare const SourceAccountType: {
41
- readonly SOURCE: "source";
42
- };
43
- export type SourceAccountType = (typeof SourceAccountType)[keyof typeof SourceAccountType];
44
51
  export declare const ValidationStatus: {
45
52
  readonly INVALID: "invalid";
46
53
  readonly PENDING_CONFIRMATION: "pending-confirmation";
47
54
  readonly VALID: "valid";
48
55
  };
49
56
  export type ValidationStatus = (typeof ValidationStatus)[keyof typeof ValidationStatus];
57
+ export declare const ToolClassification: {
58
+ readonly DESTRUCTIVE: "DESTRUCTIVE";
59
+ readonly MUTATIVE: "MUTATIVE";
60
+ readonly READ_ONLY: "READ_ONLY";
61
+ };
62
+ export type ToolClassification = (typeof ToolClassification)[keyof typeof ToolClassification];
63
+ export declare const SourceAccountType: {
64
+ readonly SOURCE: "source";
65
+ };
66
+ export type SourceAccountType = (typeof SourceAccountType)[keyof typeof SourceAccountType];
50
67
  export declare const WebhookType: {
51
68
  readonly API_KEY: "apikey";
52
69
  readonly GITLAB: "gitlab";
@@ -60,6 +77,19 @@ export declare const AuthFlow: {
60
77
  readonly IDP: "idp";
61
78
  };
62
79
  export type AuthFlow = (typeof AuthFlow)[keyof typeof AuthFlow];
80
+ export declare const ApprovalActionType: {
81
+ readonly APPROVED: "APPROVED";
82
+ readonly REJECTED: "REJECTED";
83
+ };
84
+ export type ApprovalActionType = (typeof ApprovalActionType)[keyof typeof ApprovalActionType];
85
+ export declare const ApprovalStatus: {
86
+ readonly APPROVED: "APPROVED";
87
+ readonly PENDING: "PENDING";
88
+ readonly REDEEMED: "REDEEMED";
89
+ readonly REJECTED: "REJECTED";
90
+ readonly REVOKED: "REVOKED";
91
+ };
92
+ export type ApprovalStatus = (typeof ApprovalStatus)[keyof typeof ApprovalStatus];
63
93
  export declare const Priority: {
64
94
  readonly CRITICAL: "CRITICAL";
65
95
  readonly HIGH: "HIGH";
@@ -86,6 +116,7 @@ export declare const TaskStatus: {
86
116
  readonly PENDING_TRIAGE: "PENDING_TRIAGE";
87
117
  readonly SKIPPED: "SKIPPED";
88
118
  readonly TIMED_OUT: "TIMED_OUT";
119
+ readonly WAITING: "WAITING";
89
120
  };
90
121
  export type TaskStatus = (typeof TaskStatus)[keyof typeof TaskStatus];
91
122
  export declare const UserType: {
@@ -153,6 +184,7 @@ export declare const ExecutionStatus: {
153
184
  readonly RUNNING: "RUNNING";
154
185
  readonly STOPPED: "STOPPED";
155
186
  readonly TIMED_OUT: "TIMED_OUT";
187
+ readonly WAITING: "WAITING";
156
188
  };
157
189
  export type ExecutionStatus = (typeof ExecutionStatus)[keyof typeof ExecutionStatus];
158
190
  export declare const GoalType: {