|
2 | 2 | "version": "2.0", |
3 | 3 | "metadata": { |
4 | 4 | "apiVersion": "2022-11-11", |
| 5 | + "auth": ["smithy.api#httpBearerAuth"], |
5 | 6 | "endpointPrefix": "amazoncodewhispererservice", |
6 | 7 | "jsonVersion": "1.0", |
7 | 8 | "protocol": "json", |
| 9 | + "protocols": ["json"], |
8 | 10 | "serviceFullName": "Amazon CodeWhisperer", |
9 | 11 | "serviceId": "CodeWhispererRuntime", |
| 12 | + "signatureVersion": "bearer", |
10 | 13 | "signingName": "amazoncodewhispererservice", |
11 | 14 | "targetPrefix": "AmazonCodeWhispererService", |
12 | 15 | "uid": "codewhispererruntime-2022-11-11" |
|
624 | 627 | "acceptedCharacterCount": { "shape": "PrimitiveInteger" }, |
625 | 628 | "totalCharacterCount": { "shape": "PrimitiveInteger" }, |
626 | 629 | "timestamp": { "shape": "Timestamp" }, |
627 | | - "unmodifiedAcceptedCharacterCount": { "shape": "PrimitiveInteger" } |
| 630 | + "unmodifiedAcceptedCharacterCount": { "shape": "PrimitiveInteger" }, |
| 631 | + "totalNewCodeCharacterCount": { "shape": "PrimitiveInteger" }, |
| 632 | + "totalNewCodeLineCount": { "shape": "PrimitiveInteger" } |
628 | 633 | } |
629 | 634 | }, |
630 | 635 | "CodeFixAcceptanceEvent": { |
|
705 | 710 | "codeScanJobId": { "shape": "CodeScanJobId" }, |
706 | 711 | "timestamp": { "shape": "Timestamp" }, |
707 | 712 | "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>" |
709 | 726 | }, |
710 | 727 | "CodeScanJobId": { |
711 | 728 | "type": "string", |
|
738 | 755 | "documentation": "<p>Code Scan Remediations Interaction Type</p>", |
739 | 756 | "enum": ["CODESCAN_ISSUE_HOVER", "CODESCAN_ISSUE_APPLY_FIX", "CODESCAN_ISSUE_VIEW_DETAILS"] |
740 | 757 | }, |
| 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 | + }, |
741 | 770 | "Completion": { |
742 | 771 | "type": "structure", |
743 | 772 | "required": ["content"], |
|
998 | 1027 | "numberOfAddLines": { "shape": "PrimitiveInteger" }, |
999 | 1028 | "numberOfAddFiles": { "shape": "PrimitiveInteger" }, |
1000 | 1029 | "userDecision": { "shape": "DocGenerationUserDecision" }, |
1001 | | - "interactionType": { "shape": "DocGenerationInteractionType" } |
| 1030 | + "interactionType": { "shape": "DocGenerationInteractionType" }, |
| 1031 | + "userIdentity": { "shape": "String" }, |
| 1032 | + "numberOfNavigation": { "shape": "PrimitiveInteger" }, |
| 1033 | + "folderLevel": { "shape": "DocGenerationFolderLevel" } |
1002 | 1034 | } |
1003 | 1035 | }, |
| 1036 | + "DocGenerationFolderLevel": { |
| 1037 | + "type": "string", |
| 1038 | + "documentation": "<p>Doc Generation Folder Level</p>", |
| 1039 | + "enum": ["SUB_FOLDER", "ENTIRE_WORKSPACE"] |
| 1040 | + }, |
1004 | 1041 | "DocGenerationInteractionType": { |
1005 | 1042 | "type": "string", |
1006 | 1043 | "documentation": "<p>Doc Generation Interaction Type</p>", |
1007 | | - "enum": ["GENERATE_README", "UPDATE_README"] |
| 1044 | + "enum": ["GENERATE_README", "UPDATE_README", "EDIT_README"] |
1008 | 1045 | }, |
1009 | 1046 | "DocGenerationUserDecision": { |
1010 | 1047 | "type": "string", |
|
2198 | 2235 | }, |
2199 | 2236 | "SuggestionState": { |
2200 | 2237 | "type": "string", |
2201 | | - "enum": ["ACCEPT", "REJECT", "DISCARD", "EMPTY"] |
| 2238 | + "enum": ["ACCEPT", "REJECT", "DISCARD", "EMPTY", "MERGE"] |
2202 | 2239 | }, |
2203 | 2240 | "SupplementalContext": { |
2204 | 2241 | "type": "structure", |
|
2366 | 2403 | "codeCoverageEvent": { "shape": "CodeCoverageEvent" }, |
2367 | 2404 | "userModificationEvent": { "shape": "UserModificationEvent" }, |
2368 | 2405 | "codeScanEvent": { "shape": "CodeScanEvent" }, |
| 2406 | + "codeScanSucceededEvent": { "shape": "CodeScanSucceededEvent" }, |
| 2407 | + "codeScanFailedEvent": { "shape": "CodeScanFailedEvent" }, |
2369 | 2408 | "codeScanRemediationsEvent": { "shape": "CodeScanRemediationsEvent" }, |
2370 | 2409 | "codeFixGenerationEvent": { "shape": "CodeFixGenerationEvent" }, |
2371 | 2410 | "codeFixAcceptanceEvent": { "shape": "CodeFixAcceptanceEvent" }, |
|
0 commit comments