Skip to content

Commit f81d9a1

Browse files
authored
config(amazonq): update amazonq service api model (#6044)
## Problem update service model ## Solution --- <!--- REMINDER: Ensure that your PR meets the guidelines in CONTRIBUTING.md --> License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 5eaffe4 commit f81d9a1

File tree

1 file changed

+41
-5
lines changed

1 file changed

+41
-5
lines changed

packages/core/src/codewhisperer/client/user-service-2.json

Lines changed: 41 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,9 @@
624624
"acceptedCharacterCount": { "shape": "PrimitiveInteger" },
625625
"totalCharacterCount": { "shape": "PrimitiveInteger" },
626626
"timestamp": { "shape": "Timestamp" },
627-
"unmodifiedAcceptedCharacterCount": { "shape": "PrimitiveInteger" }
627+
"unmodifiedAcceptedCharacterCount": { "shape": "PrimitiveInteger" },
628+
"totalNewCodeCharacterCount": { "shape": "PrimitiveInteger" },
629+
"totalNewCodeLineCount": { "shape": "PrimitiveInteger" }
628630
}
629631
},
630632
"CodeFixAcceptanceEvent": {
@@ -705,7 +707,19 @@
705707
"codeScanJobId": { "shape": "CodeScanJobId" },
706708
"timestamp": { "shape": "Timestamp" },
707709
"codeAnalysisScope": { "shape": "CodeAnalysisScope" }
708-
}
710+
},
711+
"documentation": "<p>Published when a security scan or code review starts</p>"
712+
},
713+
"CodeScanFailedEvent": {
714+
"type": "structure",
715+
"required": ["programmingLanguage", "codeScanJobId", "timestamp"],
716+
"members": {
717+
"programmingLanguage": { "shape": "ProgrammingLanguage" },
718+
"codeScanJobId": { "shape": "CodeScanJobId" },
719+
"timestamp": { "shape": "Timestamp" },
720+
"codeAnalysisScope": { "shape": "CodeAnalysisScope" }
721+
},
722+
"documentation": "<p>Published when a security scan or code review fails</p>"
709723
},
710724
"CodeScanJobId": {
711725
"type": "string",
@@ -738,6 +752,18 @@
738752
"documentation": "<p>Code Scan Remediations Interaction Type</p>",
739753
"enum": ["CODESCAN_ISSUE_HOVER", "CODESCAN_ISSUE_APPLY_FIX", "CODESCAN_ISSUE_VIEW_DETAILS"]
740754
},
755+
"CodeScanSucceededEvent": {
756+
"type": "structure",
757+
"required": ["programmingLanguage", "codeScanJobId", "timestamp", "numberOfFindings"],
758+
"members": {
759+
"programmingLanguage": { "shape": "ProgrammingLanguage" },
760+
"codeScanJobId": { "shape": "CodeScanJobId" },
761+
"timestamp": { "shape": "Timestamp" },
762+
"numberOfFindings": { "shape": "PrimitiveInteger" },
763+
"codeAnalysisScope": { "shape": "CodeAnalysisScope" }
764+
},
765+
"documentation": "<p>Published when a security scan or code review completes successfully</p>"
766+
},
741767
"Completion": {
742768
"type": "structure",
743769
"required": ["content"],
@@ -998,13 +1024,21 @@
9981024
"numberOfAddLines": { "shape": "PrimitiveInteger" },
9991025
"numberOfAddFiles": { "shape": "PrimitiveInteger" },
10001026
"userDecision": { "shape": "DocGenerationUserDecision" },
1001-
"interactionType": { "shape": "DocGenerationInteractionType" }
1027+
"interactionType": { "shape": "DocGenerationInteractionType" },
1028+
"userIdentity": { "shape": "String" },
1029+
"numberOfNavigation": { "shape": "PrimitiveInteger" },
1030+
"folderLevel": { "shape": "DocGenerationFolderLevel" }
10021031
}
10031032
},
1033+
"DocGenerationFolderLevel": {
1034+
"type": "string",
1035+
"documentation": "<p>Doc Generation Folder Level</p>",
1036+
"enum": ["SUB_FOLDER", "ENTIRE_WORKSPACE"]
1037+
},
10041038
"DocGenerationInteractionType": {
10051039
"type": "string",
10061040
"documentation": "<p>Doc Generation Interaction Type</p>",
1007-
"enum": ["GENERATE_README", "UPDATE_README"]
1041+
"enum": ["GENERATE_README", "UPDATE_README", "EDIT_README"]
10081042
},
10091043
"DocGenerationUserDecision": {
10101044
"type": "string",
@@ -2198,7 +2232,7 @@
21982232
},
21992233
"SuggestionState": {
22002234
"type": "string",
2201-
"enum": ["ACCEPT", "REJECT", "DISCARD", "EMPTY"]
2235+
"enum": ["ACCEPT", "REJECT", "DISCARD", "EMPTY", "MERGE"]
22022236
},
22032237
"SupplementalContext": {
22042238
"type": "structure",
@@ -2366,6 +2400,8 @@
23662400
"codeCoverageEvent": { "shape": "CodeCoverageEvent" },
23672401
"userModificationEvent": { "shape": "UserModificationEvent" },
23682402
"codeScanEvent": { "shape": "CodeScanEvent" },
2403+
"codeScanSucceededEvent": { "shape": "CodeScanSucceededEvent" },
2404+
"codeScanFailedEvent": { "shape": "CodeScanFailedEvent" },
23692405
"codeScanRemediationsEvent": { "shape": "CodeScanRemediationsEvent" },
23702406
"codeFixGenerationEvent": { "shape": "CodeFixGenerationEvent" },
23712407
"codeFixAcceptanceEvent": { "shape": "CodeFixAcceptanceEvent" },

0 commit comments

Comments
 (0)