diff --git a/plugins/core/sdk-codegen/codegen-resources/codewhispererruntime/service-2.json b/plugins/core/sdk-codegen/codegen-resources/codewhispererruntime/service-2.json index 029f2d170a1..a930962b361 100644 --- a/plugins/core/sdk-codegen/codegen-resources/codewhispererruntime/service-2.json +++ b/plugins/core/sdk-codegen/codegen-resources/codewhispererruntime/service-2.json @@ -113,6 +113,22 @@ { "shape": "AccessDeniedException" } ] }, + "GetCodeFixJob": { + "name": "GetCodeFixJob", + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { "shape": "GetCodeFixJobRequest" }, + "output": { "shape": "GetCodeFixJobResponse" }, + "errors": [ + { "shape": "ThrottlingException" }, + { "shape": "ResourceNotFoundException" }, + { "shape": "InternalServerException" }, + { "shape": "ValidationException" }, + { "shape": "AccessDeniedException" } + ] + }, "GetTaskAssistCodeGeneration": { "name": "GetTaskAssistCodeGeneration", "http": { @@ -130,6 +146,21 @@ { "shape": "AccessDeniedException" } ] }, + "GetTestGeneration": { + "name": "GetTestGeneration", + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { "shape": "GetTestGenerationRequest" }, + "output": { "shape": "GetTestGenerationResponse" }, + "errors": [ + { "shape": "ThrottlingException" }, + { "shape": "InternalServerException" }, + { "shape": "ValidationException" }, + { "shape": "AccessDeniedException" } + ] + }, "GetTransformation": { "name": "GetTransformation", "http": { @@ -258,6 +289,21 @@ ], "idempotent": true }, + "StartCodeFixJob": { + "name": "StartCodeFixJob", + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { "shape": "StartCodeFixJobRequest" }, + "output": { "shape": "StartCodeFixJobResponse" }, + "errors": [ + { "shape": "ThrottlingException" }, + { "shape": "InternalServerException" }, + { "shape": "ValidationException" }, + { "shape": "AccessDeniedException" } + ] + }, "StartTaskAssistCodeGeneration": { "name": "StartTaskAssistCodeGeneration", "http": { @@ -276,6 +322,23 @@ { "shape": "AccessDeniedException" } ] }, + "StartTestGeneration": { + "name": "StartTestGeneration", + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { "shape": "StartTestGenerationRequest" }, + "output": { "shape": "StartTestGenerationResponse" }, + "errors": [ + { "shape": "ThrottlingException" }, + { "shape": "ConflictException" }, + { "shape": "InternalServerException" }, + { "shape": "ValidationException" }, + { "shape": "AccessDeniedException" } + ], + "idempotent": true + }, "StartTransformation": { "name": "StartTransformation", "http": { @@ -458,11 +521,21 @@ }, "ChatMessageInteractionType": { "type": "string", - "enum": ["INSERT_AT_CURSOR", "COPY_SNIPPET", "COPY", "CLICK_LINK", "CLICK_BODY_LINK", "CLICK_FOLLOW_UP", "HOVER_REFERENCE", "UPVOTE", "DOWNVOTE"] + "enum": [ + "INSERT_AT_CURSOR", + "COPY_SNIPPET", + "COPY", + "CLICK_LINK", + "CLICK_BODY_LINK", + "CLICK_FOLLOW_UP", + "HOVER_REFERENCE", + "UPVOTE", + "DOWNVOTE" + ] }, "ChatTriggerType": { "type": "string", - "enum": ["MANUAL", "DIAGNOSTIC"] + "enum": ["MANUAL", "DIAGNOSTIC", "INLINE_CHAT"] }, "ChatUserModificationEvent": { "type": "structure", @@ -507,6 +580,48 @@ "unmodifiedAcceptedCharacterCount": { "shape": "PrimitiveInteger" } } }, + "CodeFixAcceptanceEvent": { + "type": "structure", + "required": ["jobId"], + "members": { + "jobId": { "shape": "String" }, + "ruleId": { "shape": "String" }, + "detectorId": { "shape": "String" }, + "findingId": { "shape": "String" }, + "programmingLanguage": { "shape": "ProgrammingLanguage" }, + "linesOfCodeAccepted": { "shape": "Integer" }, + "charsOfCodeAccepted": { "shape": "Integer" } + } + }, + "CodeFixGenerationEvent": { + "type": "structure", + "required": ["jobId"], + "members": { + "jobId": { "shape": "String" }, + "ruleId": { "shape": "String" }, + "detectorId": { "shape": "String" }, + "findingId": { "shape": "String" }, + "programmingLanguage": { "shape": "ProgrammingLanguage" }, + "linesOfCodeGenerated": { "shape": "Integer" }, + "charsOfCodeGenerated": { "shape": "Integer" } + } + }, + "CodeFixJobStatus": { + "type": "string", + "enum": ["Succeeded", "InProgress", "Failed"] + }, + "CodeFixName": { + "type": "string", + "max": 128, + "min": 1 + }, + "CodeFixUploadContext": { + "type": "structure", + "required": ["codeFixName"], + "members": { + "codeFixName": { "shape": "CodeFixName" } + } + }, "CodeGenerationId": { "type": "string", "max": 128, @@ -600,10 +715,15 @@ "type": "structure", "required": ["message"], "members": { - "message": { "shape": "String" } + "message": { "shape": "String" }, + "reason": { "shape": "ConflictExceptionReason" } }, "exception": true }, + "ConflictExceptionReason": { + "type": "string", + "enum": ["CUSTOMER_KMS_KEY_INVALID_KEY_POLICY", "CUSTOMER_KMS_KEY_DISABLED", "MISMATCHED_KMS_KEY"] + }, "ConsoleState": { "type": "structure", "members": { @@ -780,6 +900,26 @@ "min": 1, "pattern": "[-a-zA-Z0-9._]*" }, + "DocGenerationEvent": { + "type": "structure", + "required": ["conversationId"], + "members": { + "conversationId": { "shape": "ConversationId" }, + "numberOfAddChars": { "shape": "PrimitiveInteger" }, + "numberOfAddLines": { "shape": "PrimitiveInteger" }, + "numberOfAddFiles": { "shape": "PrimitiveInteger" }, + "userDecision": { "shape": "DocGenerationUserDecision" }, + "interactionType": { "shape": "DocGenerationInteractionType" } + } + }, + "DocGenerationInteractionType": { + "type": "string", + "enum": ["GENERATE_README", "UPDATE_README"] + }, + "DocGenerationUserDecision": { + "type": "string", + "enum": ["ACCEPT", "REJECT"] + }, "DocumentSymbol": { "type": "structure", "required": ["name", "type"], @@ -805,6 +945,24 @@ "max": 1000, "min": 0 }, + "DocumentationIntentContext": { + "type": "structure", + "required": ["type"], + "members": { + "scope": { "shape": "DocumentationIntentContextScopeString" }, + "type": { "shape": "DocumentationType" } + } + }, + "DocumentationIntentContextScopeString": { + "type": "string", + "max": 4096, + "min": 1, + "sensitive": true + }, + "DocumentationType": { + "type": "string", + "enum": ["README"] + }, "Double": { "type": "double", "box": true @@ -823,7 +981,8 @@ "members": { "operatingSystem": { "shape": "EnvStateOperatingSystemString" }, "currentWorkingDirectory": { "shape": "EnvStateCurrentWorkingDirectoryString" }, - "environmentVariables": { "shape": "EnvironmentVariables" } + "environmentVariables": { "shape": "EnvironmentVariables" }, + "timezoneOffset": { "shape": "EnvStateTimezoneOffsetInteger" } } }, "EnvStateCurrentWorkingDirectoryString": { @@ -838,6 +997,12 @@ "min": 1, "pattern": "(macos|linux|windows)" }, + "EnvStateTimezoneOffsetInteger": { + "type": "integer", + "box": true, + "max": 1440, + "min": -1440 + }, "EnvironmentVariable": { "type": "structure", "members": { @@ -863,6 +1028,44 @@ "max": 100, "min": 0 }, + "FeatureDevCodeAcceptanceEvent": { + "type": "structure", + "required": ["conversationId", "linesOfCodeAccepted", "charactersOfCodeAccepted"], + "members": { + "conversationId": { "shape": "ConversationId" }, + "linesOfCodeAccepted": { "shape": "FeatureDevCodeAcceptanceEventLinesOfCodeAcceptedInteger" }, + "charactersOfCodeAccepted": { "shape": "FeatureDevCodeAcceptanceEventCharactersOfCodeAcceptedInteger" }, + "programmingLanguage": { "shape": "ProgrammingLanguage" } + } + }, + "FeatureDevCodeAcceptanceEventCharactersOfCodeAcceptedInteger": { + "type": "integer", + "min": 0 + }, + "FeatureDevCodeAcceptanceEventLinesOfCodeAcceptedInteger": { + "type": "integer", + "min": 0 + }, + "FeatureDevCodeGenerationEvent": { + "type": "structure", + "required": ["conversationId", "linesOfCodeGenerated", "charactersOfCodeGenerated"], + "members": { + "conversationId": { "shape": "ConversationId" }, + "linesOfCodeGenerated": { "shape": "FeatureDevCodeGenerationEventLinesOfCodeGeneratedInteger" }, + "charactersOfCodeGenerated": { + "shape": "FeatureDevCodeGenerationEventCharactersOfCodeGeneratedInteger" + }, + "programmingLanguage": { "shape": "ProgrammingLanguage" } + } + }, + "FeatureDevCodeGenerationEventCharactersOfCodeGeneratedInteger": { + "type": "integer", + "min": 0 + }, + "FeatureDevCodeGenerationEventLinesOfCodeGeneratedInteger": { + "type": "integer", + "min": 0 + }, "FeatureDevEvent": { "type": "structure", "required": ["conversationId"], @@ -1009,6 +1212,26 @@ "errorMessage": { "shape": "SensitiveString" } } }, + "GetCodeFixJobRequest": { + "type": "structure", + "required": ["jobId"], + "members": { + "jobId": { "shape": "GetCodeFixJobRequestJobIdString" } + } + }, + "GetCodeFixJobRequestJobIdString": { + "type": "string", + "max": 256, + "min": 1, + "pattern": ".*[A-Za-z0-9-:]+.*" + }, + "GetCodeFixJobResponse": { + "type": "structure", + "members": { + "jobStatus": { "shape": "CodeFixJobStatus" }, + "suggestedFix": { "shape": "SuggestedFix" } + } + }, "GetTaskAssistCodeGenerationRequest": { "type": "structure", "required": ["conversationId", "codeGenerationId"], @@ -1028,6 +1251,20 @@ "codeGenerationTotalIterationCount": { "shape": "Integer" } } }, + "GetTestGenerationRequest": { + "type": "structure", + "required": ["testGenerationJobGroupName", "testGenerationJobId"], + "members": { + "testGenerationJobGroupName": { "shape": "TestGenerationJobGroupName" }, + "testGenerationJobId": { "shape": "UUID" } + } + }, + "GetTestGenerationResponse": { + "type": "structure", + "members": { + "testGenerationJob": { "shape": "TestGenerationJob" } + } + }, "GetTransformationPlanRequest": { "type": "structure", "required": ["transformationJobId"], @@ -1070,7 +1307,7 @@ }, "IdeCategory": { "type": "string", - "enum": ["JETBRAINS", "VSCODE", "CLI", "JUPYTER_MD", "JUPYTER_SM"], + "enum": ["JETBRAINS", "VSCODE", "CLI", "JUPYTER_MD", "JUPYTER_SM", "ECLIPSE", "VISUAL_STUDIO"], "max": 64, "min": 1 }, @@ -1102,7 +1339,7 @@ "required": ["requestId", "timestamp"], "members": { "requestId": { "shape": "UUID" }, - "timestamp":{"shape":"Timestamp"}, + "timestamp": { "shape": "Timestamp" }, "inputLength": { "shape": "PrimitiveInteger" }, "numSelectedLines": { "shape": "PrimitiveInteger" }, "numSuggestionAddChars": { "shape": "PrimitiveInteger" }, @@ -1124,6 +1361,17 @@ "type": "integer", "box": true }, + "Intent": { + "type": "string", + "enum": ["DEV", "DOC"] + }, + "IntentContext": { + "type": "structure", + "members": { + "documentation": { "shape": "DocumentationIntentContext" } + }, + "union": true + }, "InternalServerException": { "type": "structure", "required": ["message"], @@ -1134,6 +1382,10 @@ "fault": true, "retryable": { "throttling": false } }, + "LineRangeList": { + "type": "list", + "member": { "shape": "Range" } + }, "ListAvailableCustomizationsRequest": { "type": "structure", "members": { @@ -1271,7 +1523,7 @@ "type": "string", "max": 128, "min": 1, - "pattern": "(python|javascript|java|csharp|typescript|c|cpp|go|kotlin|php|ruby|rust|scala|shell|sql|json|yaml|vue|tf|tsx|jsx|plaintext)" + "pattern": "(python|javascript|java|csharp|typescript|c|cpp|go|kotlin|php|ruby|rust|scala|shell|sql|json|yaml|vue|tf|tsx|jsx|plaintext|systemverilog|dart|lua|swift|powershell|r)" }, "ProgressUpdates": { "type": "list", @@ -1557,6 +1809,41 @@ "max": 256, "min": 1 }, + "StartCodeFixJobRequest": { + "type": "structure", + "required": ["snippetRange", "uploadId"], + "members": { + "snippetRange": { "shape": "Range" }, + "uploadId": { "shape": "UploadId" }, + "description": { "shape": "StartCodeFixJobRequestDescriptionString" }, + "ruleId": { "shape": "StartCodeFixJobRequestRuleIdString" }, + "codeFixName": { "shape": "CodeFixName" } + } + }, + "StartCodeFixJobRequestDescriptionString": { + "type": "string", + "max": 2000, + "min": 1 + }, + "StartCodeFixJobRequestRuleIdString": { + "type": "string", + "max": 256, + "min": 1, + "pattern": ".*[A-Za-z0-9-]+.*" + }, + "StartCodeFixJobResponse": { + "type": "structure", + "members": { + "jobId": { "shape": "StartCodeFixJobResponseJobIdString" }, + "status": { "shape": "CodeFixJobStatus" } + } + }, + "StartCodeFixJobResponseJobIdString": { + "type": "string", + "max": 256, + "min": 1, + "pattern": ".*[A-Za-z0-9-:]+.*" + }, "StartTaskAssistCodeGenerationRequest": { "type": "structure", "required": ["conversationState", "workspaceState"], @@ -1565,7 +1852,9 @@ "workspaceState": { "shape": "WorkspaceState" }, "taskAssistPlan": { "shape": "TaskAssistPlan" }, "codeGenerationId": { "shape": "CodeGenerationId" }, - "currentCodeGenerationId": { "shape": "CodeGenerationId" } + "currentCodeGenerationId": { "shape": "CodeGenerationId" }, + "intent": { "shape": "Intent" }, + "intentContext": { "shape": "IntentContext" } } }, "StartTaskAssistCodeGenerationResponse": { @@ -1576,6 +1865,37 @@ "codeGenerationId": { "shape": "CodeGenerationId" } } }, + "StartTestGenerationRequest": { + "type": "structure", + "required": ["uploadId", "targetCodeList", "userInput"], + "members": { + "uploadId": { "shape": "UploadId" }, + "targetCodeList": { "shape": "TargetCodeList" }, + "userInput": { "shape": "StartTestGenerationRequestUserInputString" }, + "testGenerationJobGroupName": { "shape": "TestGenerationJobGroupName" }, + "clientToken": { + "shape": "StartTestGenerationRequestClientTokenString", + "idempotencyToken": true + } + } + }, + "StartTestGenerationRequestClientTokenString": { + "type": "string", + "max": 256, + "min": 1 + }, + "StartTestGenerationRequestUserInputString": { + "type": "string", + "max": 4096, + "min": 0, + "sensitive": true + }, + "StartTestGenerationResponse": { + "type": "structure", + "members": { + "testGenerationJob": { "shape": "TestGenerationJob" } + } + }, "StartTransformationRequest": { "type": "structure", "required": ["workspaceState", "transformationSpec"], @@ -1611,6 +1931,25 @@ } }, "String": { "type": "string" }, + "SuggestedFix": { + "type": "structure", + "members": { + "codeDiff": { "shape": "SuggestedFixCodeDiffString" }, + "description": { "shape": "SuggestedFixDescriptionString" }, + "references": { "shape": "References" } + } + }, + "SuggestedFixCodeDiffString": { + "type": "string", + "max": 200000, + "min": 0, + "sensitive": true + }, + "SuggestedFixDescriptionString": { + "type": "string", + "max": 2000, + "min": 1 + }, "SuggestionState": { "type": "string", "enum": ["ACCEPT", "REJECT", "DISCARD", "EMPTY"] @@ -1678,6 +2017,25 @@ "type": "string", "enum": ["DECLARATION", "USAGE"] }, + "TargetCode": { + "type": "structure", + "required": ["relativeTargetPath"], + "members": { + "relativeTargetPath": { "shape": "TargetCodeRelativeTargetPathString" }, + "targetLineRangeList": { "shape": "LineRangeList" } + } + }, + "TargetCodeList": { + "type": "list", + "member": { "shape": "TargetCode" }, + "min": 1 + }, + "TargetCodeRelativeTargetPathString": { + "type": "string", + "max": 4096, + "min": 1, + "sensitive": true + }, "TaskAssistPlan": { "type": "list", "member": { "shape": "TaskAssistPlanStep" }, @@ -1733,13 +2091,20 @@ "userModificationEvent": { "shape": "UserModificationEvent" }, "codeScanEvent": { "shape": "CodeScanEvent" }, "codeScanRemediationsEvent": { "shape": "CodeScanRemediationsEvent" }, + "codeFixGenerationEvent": { "shape": "CodeFixGenerationEvent" }, + "codeFixAcceptanceEvent": { "shape": "CodeFixAcceptanceEvent" }, "metricData": { "shape": "MetricData" }, "chatAddMessageEvent": { "shape": "ChatAddMessageEvent" }, "chatInteractWithMessageEvent": { "shape": "ChatInteractWithMessageEvent" }, "chatUserModificationEvent": { "shape": "ChatUserModificationEvent" }, "terminalUserInteractionEvent": { "shape": "TerminalUserInteractionEvent" }, "featureDevEvent": { "shape": "FeatureDevEvent" }, - "inlineChatEvent": { "shape": "InlineChatEvent" } + "featureDevCodeGenerationEvent": { "shape": "FeatureDevCodeGenerationEvent" }, + "featureDevCodeAcceptanceEvent": { "shape": "FeatureDevCodeAcceptanceEvent" }, + "inlineChatEvent": { "shape": "InlineChatEvent" }, + "transformEvent": { "shape": "TransformEvent" }, + "docGenerationEvent": { "shape": "DocGenerationEvent" }, + "testGenerationEvent": { "shape": "TestGenerationEvent" } }, "union": true }, @@ -1761,6 +2126,51 @@ "type": "string", "enum": ["CODEWHISPERER_TERMINAL_TRANSLATION_ACTION", "CODEWHISPERER_TERMINAL_COMPLETION_INSERTED"] }, + "TestGenerationEvent": { + "type": "structure", + "required": ["jobId", "groupName"], + "members": { + "jobId": { "shape": "UUID" }, + "groupName": { "shape": "TestGenerationJobGroupName" }, + "timestamp": { "shape": "Timestamp" }, + "ideCategory": { "shape": "IdeCategory" }, + "programmingLanguage": { "shape": "ProgrammingLanguage" }, + "numberOfUnitTestCasesGenerated": { "shape": "Integer" }, + "numberOfUnitTestCasesAccepted": { "shape": "Integer" }, + "linesOfCodeGenerated": { "shape": "Integer" }, + "linesOfCodeAccepted": { "shape": "Integer" }, + "charsOfCodeGenerated": { "shape": "Integer" }, + "charsOfCodeAccepted": { "shape": "Integer" } + } + }, + "TestGenerationJob": { + "type": "structure", + "required": ["testGenerationJobId", "testGenerationJobGroupName", "status", "creationTime"], + "members": { + "testGenerationJobId": { "shape": "UUID" }, + "testGenerationJobGroupName": { "shape": "TestGenerationJobGroupName" }, + "status": { "shape": "TestGenerationJobStatus" }, + "shortAnswer": { "shape": "SensitiveString" }, + "creationTime": { "shape": "Timestamp" }, + "progressRate": { "shape": "TestGenerationJobProgressRateInteger" } + } + }, + "TestGenerationJobGroupName": { + "type": "string", + "max": 128, + "min": 1, + "pattern": "[a-zA-Z0-9-_]+" + }, + "TestGenerationJobProgressRateInteger": { + "type": "integer", + "box": true, + "max": 100, + "min": 0 + }, + "TestGenerationJobStatus": { + "type": "string", + "enum": ["IN_PROGRESS", "FAILED", "COMPLETED"] + }, "TextDocument": { "type": "structure", "required": ["relativeFilePath"], @@ -1810,34 +2220,22 @@ "retryable": { "throttling": true } }, "Timestamp": { "type": "timestamp" }, + "TransformEvent": { + "type": "structure", + "required": ["jobId"], + "members": { + "jobId": { "shape": "TransformationJobId" }, + "timestamp": { "shape": "Timestamp" }, + "ideCategory": { "shape": "IdeCategory" }, + "programmingLanguage": { "shape": "ProgrammingLanguage" }, + "linesOfCodeChanged": { "shape": "Integer" }, + "charsOfCodeChanged": { "shape": "Integer" }, + "linesOfCodeSubmitted": { "shape": "Integer" } + } + }, "TransformationDotNetRuntimeEnv": { "type": "string", - "enum": [ - "NET_FRAMEWORK_V_3_5", - "NET_FRAMEWORK_V_4_0", - "NET_FRAMEWORK_V_4_5", - "NET_FRAMEWORK_V_4_5_1", - "NET_FRAMEWORK_V_4_5_2", - "NET_FRAMEWORK_V_4_6", - "NET_FRAMEWORK_V_4_6_1", - "NET_FRAMEWORK_V_4_6_2", - "NET_FRAMEWORK_V_4_7", - "NET_FRAMEWORK_V_4_7_1", - "NET_FRAMEWORK_V_4_7_2", - "NET_FRAMEWORK_V_4_8", - "NET_FRAMEWORK_V_4_8_1", - "NET_CORE_APP_1_0", - "NET_CORE_APP_1_1", - "NET_CORE_APP_2_0", - "NET_CORE_APP_2_1", - "NET_CORE_APP_2_2", - "NET_CORE_APP_3_0", - "NET_CORE_APP_3_1", - "NET_5_0", - "NET_6_0", - "NET_7_0", - "NET_8_0" - ] + "enum": ["NET_5_0", "NET_6_0", "NET_7_0", "NET_8_0", "NET_9_0", "NET_STANDARD_2_0"] }, "TransformationDownloadArtifact": { "type": "structure", @@ -2035,7 +2433,8 @@ "members": { "taskAssistPlanningUploadContext": { "shape": "TaskAssistPlanningUploadContext" }, "transformationUploadContext": { "shape": "TransformationUploadContext" }, - "codeAnalysisUploadContext": { "shape": "CodeAnalysisUploadContext" } + "codeAnalysisUploadContext": { "shape": "CodeAnalysisUploadContext" }, + "codeFixUploadContext": { "shape": "CodeFixUploadContext" } }, "union": true }, @@ -2050,7 +2449,9 @@ "TRANSFORMATION", "TASK_ASSIST_PLANNING", "AUTOMATIC_FILE_SECURITY_SCAN", - "FULL_PROJECT_SECURITY_SCAN" + "FULL_PROJECT_SECURITY_SCAN", + "UNIT_TESTS_GENERATION", + "CODE_FIX_GENERATION" ] }, "UserContext": { @@ -2108,7 +2509,9 @@ "CITE_SOURCES", "EXPLAIN_LINE_BY_LINE", "EXPLAIN_CODE_SELECTION", - "GENERATE_UNIT_TESTS" + "GENERATE_CLOUDFORMATION_TEMPLATE", + "GENERATE_UNIT_TESTS", + "CODE_GENERATION" ] }, "UserModificationEvent":{ @@ -2178,7 +2581,7 @@ }, "ValidationExceptionReason": { "type": "string", - "enum": ["INVALID_CONVERSATION_ID", "CONTENT_LENGTH_EXCEEDS_THRESHOLD"] + "enum": ["INVALID_CONVERSATION_ID", "CONTENT_LENGTH_EXCEEDS_THRESHOLD", "INVALID_KMS_GRANT"] }, "WorkspaceState": { "type": "structure",