Skip to content

Commit 518c26b

Browse files
committed
update amazonq service api model
1 parent 87ea4d9 commit 518c26b

File tree

1 file changed

+44
-5
lines changed

1 file changed

+44
-5
lines changed

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

Lines changed: 44 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
"version": "2.0",
33
"metadata": {
44
"apiVersion": "2022-11-11",
5+
"auth": ["smithy.api#httpBearerAuth"],
56
"endpointPrefix": "amazoncodewhispererservice",
67
"jsonVersion": "1.0",
78
"protocol": "json",
9+
"protocols": ["json"],
810
"serviceFullName": "Amazon CodeWhisperer",
911
"serviceId": "CodeWhispererRuntime",
12+
"signatureVersion": "bearer",
1013
"signingName": "amazoncodewhispererservice",
1114
"targetPrefix": "AmazonCodeWhispererService",
1215
"uid": "codewhispererruntime-2022-11-11"
@@ -624,7 +627,9 @@
624627
"acceptedCharacterCount": { "shape": "PrimitiveInteger" },
625628
"totalCharacterCount": { "shape": "PrimitiveInteger" },
626629
"timestamp": { "shape": "Timestamp" },
627-
"unmodifiedAcceptedCharacterCount": { "shape": "PrimitiveInteger" }
630+
"unmodifiedAcceptedCharacterCount": { "shape": "PrimitiveInteger" },
631+
"totalNewCodeCharacterCount": { "shape": "PrimitiveInteger" },
632+
"totalNewCodeLineCount": { "shape": "PrimitiveInteger" }
628633
}
629634
},
630635
"CodeFixAcceptanceEvent": {
@@ -705,7 +710,19 @@
705710
"codeScanJobId": { "shape": "CodeScanJobId" },
706711
"timestamp": { "shape": "Timestamp" },
707712
"codeAnalysisScope": { "shape": "CodeAnalysisScope" }
708-
}
713+
},
714+
"documentation": "<p>Published when a security scan or code review starts</p>"
715+
},
716+
"CodeScanFailedEvent": {
717+
"type": "structure",
718+
"required": ["programmingLanguage", "codeScanJobId", "timestamp"],
719+
"members": {
720+
"programmingLanguage": { "shape": "ProgrammingLanguage" },
721+
"codeScanJobId": { "shape": "CodeScanJobId" },
722+
"timestamp": { "shape": "Timestamp" },
723+
"codeAnalysisScope": { "shape": "CodeAnalysisScope" }
724+
},
725+
"documentation": "<p>Published when a security scan or code review fails</p>"
709726
},
710727
"CodeScanJobId": {
711728
"type": "string",
@@ -738,6 +755,18 @@
738755
"documentation": "<p>Code Scan Remediations Interaction Type</p>",
739756
"enum": ["CODESCAN_ISSUE_HOVER", "CODESCAN_ISSUE_APPLY_FIX", "CODESCAN_ISSUE_VIEW_DETAILS"]
740757
},
758+
"CodeScanSucceededEvent": {
759+
"type": "structure",
760+
"required": ["programmingLanguage", "codeScanJobId", "timestamp", "numberOfFindings"],
761+
"members": {
762+
"programmingLanguage": { "shape": "ProgrammingLanguage" },
763+
"codeScanJobId": { "shape": "CodeScanJobId" },
764+
"timestamp": { "shape": "Timestamp" },
765+
"numberOfFindings": { "shape": "PrimitiveInteger" },
766+
"codeAnalysisScope": { "shape": "CodeAnalysisScope" }
767+
},
768+
"documentation": "<p>Published when a security scan or code review completes successfully</p>"
769+
},
741770
"Completion": {
742771
"type": "structure",
743772
"required": ["content"],
@@ -998,13 +1027,21 @@
9981027
"numberOfAddLines": { "shape": "PrimitiveInteger" },
9991028
"numberOfAddFiles": { "shape": "PrimitiveInteger" },
10001029
"userDecision": { "shape": "DocGenerationUserDecision" },
1001-
"interactionType": { "shape": "DocGenerationInteractionType" }
1030+
"interactionType": { "shape": "DocGenerationInteractionType" },
1031+
"userIdentity": { "shape": "String" },
1032+
"numberOfNavigation": { "shape": "PrimitiveInteger" },
1033+
"folderLevel": { "shape": "DocGenerationFolderLevel" }
10021034
}
10031035
},
1036+
"DocGenerationFolderLevel": {
1037+
"type": "string",
1038+
"documentation": "<p>Doc Generation Folder Level</p>",
1039+
"enum": ["SUB_FOLDER", "ENTIRE_WORKSPACE"]
1040+
},
10041041
"DocGenerationInteractionType": {
10051042
"type": "string",
10061043
"documentation": "<p>Doc Generation Interaction Type</p>",
1007-
"enum": ["GENERATE_README", "UPDATE_README"]
1044+
"enum": ["GENERATE_README", "UPDATE_README", "EDIT_README"]
10081045
},
10091046
"DocGenerationUserDecision": {
10101047
"type": "string",
@@ -2198,7 +2235,7 @@
21982235
},
21992236
"SuggestionState": {
22002237
"type": "string",
2201-
"enum": ["ACCEPT", "REJECT", "DISCARD", "EMPTY"]
2238+
"enum": ["ACCEPT", "REJECT", "DISCARD", "EMPTY", "MERGE"]
22022239
},
22032240
"SupplementalContext": {
22042241
"type": "structure",
@@ -2366,6 +2403,8 @@
23662403
"codeCoverageEvent": { "shape": "CodeCoverageEvent" },
23672404
"userModificationEvent": { "shape": "UserModificationEvent" },
23682405
"codeScanEvent": { "shape": "CodeScanEvent" },
2406+
"codeScanSucceededEvent": { "shape": "CodeScanSucceededEvent" },
2407+
"codeScanFailedEvent": { "shape": "CodeScanFailedEvent" },
23692408
"codeScanRemediationsEvent": { "shape": "CodeScanRemediationsEvent" },
23702409
"codeFixGenerationEvent": { "shape": "CodeFixGenerationEvent" },
23712410
"codeFixAcceptanceEvent": { "shape": "CodeFixAcceptanceEvent" },

0 commit comments

Comments
 (0)