From 36dd6f3a60e90b233329cff3dca4f18bab775c5a Mon Sep 17 00:00:00 2001 From: Will Lo Date: Fri, 8 Nov 2024 12:46:17 -0800 Subject: [PATCH] update Q API model --- .../codewhisperer/client/user-service-2.json | 495 ++++++++++++++++-- 1 file changed, 457 insertions(+), 38 deletions(-) diff --git a/packages/core/src/codewhisperer/client/user-service-2.json b/packages/core/src/codewhisperer/client/user-service-2.json index 9defffe1063..14fd81ebd03 100644 --- a/packages/core/src/codewhisperer/client/user-service-2.json +++ b/packages/core/src/codewhisperer/client/user-service-2.json @@ -2,11 +2,14 @@ "version": "2.0", "metadata": { "apiVersion": "2022-11-11", + "auth": ["smithy.api#httpBearerAuth"], "endpointPrefix": "amazoncodewhispererservice", "jsonVersion": "1.0", "protocol": "json", + "protocols": ["json"], "serviceFullName": "Amazon CodeWhisperer", "serviceId": "CodeWhispererRuntime", + "signatureVersion": "bearer", "signingName": "amazoncodewhispererservice", "targetPrefix": "AmazonCodeWhispererService", "uid": "codewhispererruntime-2022-11-11" @@ -116,6 +119,22 @@ ], "documentation": "

Gets the metadata of a code analysis job.

" }, + "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": { @@ -134,6 +153,22 @@ ], "documentation": "

API to get status of task assist code generation.

" }, + "GetTestGeneration": { + "name": "GetTestGeneration", + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { "shape": "GetTestGenerationRequest" }, + "output": { "shape": "GetTestGenerationResponse" }, + "errors": [ + { "shape": "ThrottlingException" }, + { "shape": "InternalServerException" }, + { "shape": "ValidationException" }, + { "shape": "AccessDeniedException" } + ], + "documentation": "

API to get test generation job.

" + }, "GetTransformation": { "name": "GetTransformation", "http": { @@ -269,6 +304,21 @@ "documentation": "

Starts a code analysis job

", "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": { @@ -288,6 +338,24 @@ ], "documentation": "

API to start task assist code generation.

" }, + "StartTestGeneration": { + "name": "StartTestGeneration", + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { "shape": "StartTestGenerationRequest" }, + "output": { "shape": "StartTestGenerationResponse" }, + "errors": [ + { "shape": "ThrottlingException" }, + { "shape": "ConflictException" }, + { "shape": "InternalServerException" }, + { "shape": "ValidationException" }, + { "shape": "AccessDeniedException" } + ], + "documentation": "

API to start test generation.

", + "idempotent": true + }, "StartTransformation": { "name": "StartTransformation", "http": { @@ -482,7 +550,8 @@ "acceptedCharacterCount": { "shape": "Integer" }, "acceptedLineCount": { "shape": "Integer" }, "acceptedSnippetHasReference": { "shape": "Boolean" }, - "hasProjectLevelContext": { "shape": "Boolean" } + "hasProjectLevelContext": { "shape": "Boolean" }, + "userIntent": { "shape": "UserIntent" } } }, "ChatInteractWithMessageEventInteractionTargetString": { @@ -516,7 +585,7 @@ "ChatTriggerType": { "type": "string", "documentation": "

Trigger Reason for Chat

", - "enum": ["MANUAL", "DIAGNOSTIC"] + "enum": ["MANUAL", "DIAGNOSTIC", "INLINE_CHAT"] }, "ChatUserModificationEvent": { "type": "structure", @@ -561,6 +630,49 @@ "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", + "documentation": "

Code fix name

", + "max": 128, + "min": 1 + }, + "CodeFixUploadContext": { + "type": "structure", + "required": ["codeFixName"], + "members": { + "codeFixName": { "shape": "CodeFixName" } + } + }, "CodeGenerationId": { "type": "string", "documentation": "

ID which represents a single code generation in a conversation

", @@ -658,11 +770,17 @@ "type": "structure", "required": ["message"], "members": { - "message": { "shape": "String" } + "message": { "shape": "String" }, + "reason": { "shape": "ConflictExceptionReason" } }, "documentation": "

This exception is thrown when the action to perform could not be completed because the resource is in a conflicting state.

", "exception": true }, + "ConflictExceptionReason": { + "type": "string", + "documentation": "

Reason for ConflictException

", + "enum": ["CUSTOMER_KMS_KEY_INVALID_KEY_POLICY", "CUSTOMER_KMS_KEY_DISABLED", "MISMATCHED_KMS_KEY"] + }, "ConsoleState": { "type": "structure", "members": { @@ -736,7 +854,8 @@ "contentLength": { "shape": "CreateUploadUrlRequestContentLengthLong" }, "artifactType": { "shape": "ArtifactType" }, "uploadIntent": { "shape": "UploadIntent" }, - "uploadContext": { "shape": "UploadContext" } + "uploadContext": { "shape": "UploadContext" }, + "uploadId": { "shape": "UploadId" } } }, "CreateUploadUrlRequestContentChecksumString": { @@ -873,6 +992,27 @@ "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", + "documentation": "

Doc Generation Interaction Type

", + "enum": ["GENERATE_README", "UPDATE_README"] + }, + "DocGenerationUserDecision": { + "type": "string", + "enum": ["ACCEPT", "REJECT"] + }, "DocumentSymbol": { "type": "structure", "required": ["name", "type"], @@ -907,6 +1047,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 @@ -947,6 +1105,10 @@ "environmentVariables": { "shape": "EnvironmentVariables", "documentation": "

The environment variables set in the current environment

" + }, + "timezoneOffset": { + "shape": "EnvStateTimezoneOffsetInteger", + "documentation": "

Local timezone offset of the client. For more information, see documentation https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getTimezoneOffset

" } }, "documentation": "

State related to the user's environment

" @@ -963,6 +1125,12 @@ "min": 1, "pattern": "(macos|linux|windows)" }, + "EnvStateTimezoneOffsetInteger": { + "type": "integer", + "box": true, + "max": 1440, + "min": -1440 + }, "EnvironmentVariable": { "type": "structure", "members": { @@ -996,6 +1164,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"], @@ -1149,6 +1355,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"], @@ -1170,6 +1396,22 @@ }, "documentation": "

Response for getting task assist code generation status.

" }, + "GetTestGenerationRequest": { + "type": "structure", + "required": ["testGenerationJobGroupName", "testGenerationJobId"], + "members": { + "testGenerationJobGroupName": { "shape": "TestGenerationJobGroupName" }, + "testGenerationJobId": { "shape": "UUID" } + }, + "documentation": "

Structure to represent get test generation request.

" + }, + "GetTestGenerationResponse": { + "type": "structure", + "members": { + "testGenerationJob": { "shape": "TestGenerationJob" } + }, + "documentation": "

Structure to represent get test generation response.

" + }, "GetTransformationPlanRequest": { "type": "structure", "required": ["transformationJobId"], @@ -1220,7 +1462,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 }, @@ -1274,6 +1516,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"], @@ -1285,6 +1538,10 @@ "fault": true, "retryable": { "throttling": false } }, + "LineRangeList": { + "type": "list", + "member": { "shape": "Range" } + }, "ListAvailableCustomizationsRequest": { "type": "structure", "members": { @@ -1431,7 +1688,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", @@ -1790,6 +2047,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"], @@ -1797,7 +2089,10 @@ "conversationState": { "shape": "ConversationState" }, "workspaceState": { "shape": "WorkspaceState" }, "taskAssistPlan": { "shape": "TaskAssistPlan" }, - "currentCodeGenerationId": { "shape": "CodeGenerationId" } + "codeGenerationId": { "shape": "CodeGenerationId" }, + "currentCodeGenerationId": { "shape": "CodeGenerationId" }, + "intent": { "shape": "Intent" }, + "intentContext": { "shape": "IntentContext" } }, "documentation": "

Structure to represent start code generation request.

" }, @@ -1810,6 +2105,42 @@ }, "documentation": "

Structure to represent start code generation response.

" }, + "StartTestGenerationRequest": { + "type": "structure", + "required": ["uploadId", "targetCodeList", "userInput"], + "members": { + "uploadId": { "shape": "UploadId" }, + "targetCodeList": { "shape": "TargetCodeList" }, + "userInput": { + "shape": "StartTestGenerationRequestUserInputString", + "documentation": "

The content of user input.

" + }, + "testGenerationJobGroupName": { "shape": "TestGenerationJobGroupName" }, + "clientToken": { + "shape": "StartTestGenerationRequestClientTokenString", + "idempotencyToken": true + } + }, + "documentation": "

Structure to represent test generation request.

" + }, + "StartTestGenerationRequestClientTokenString": { + "type": "string", + "max": 256, + "min": 1 + }, + "StartTestGenerationRequestUserInputString": { + "type": "string", + "max": 4096, + "min": 0, + "sensitive": true + }, + "StartTestGenerationResponse": { + "type": "structure", + "members": { + "testGenerationJob": { "shape": "TestGenerationJob" } + }, + "documentation": "

Structure to represent code transformation response.

" + }, "StartTransformationRequest": { "type": "structure", "required": ["workspaceState", "transformationSpec"], @@ -1849,6 +2180,25 @@ "documentation": "

Structure to represent stop code transformation response.

" }, "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"] @@ -1926,6 +2276,28 @@ "type": "string", "enum": ["DECLARATION", "USAGE"] }, + "TargetCode": { + "type": "structure", + "required": ["relativeTargetPath"], + "members": { + "relativeTargetPath": { + "shape": "TargetCodeRelativeTargetPathString", + "documentation": "

The file path relative to the root of the workspace, could be a single file or a folder.

" + }, + "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" }, @@ -1998,13 +2370,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 }, @@ -2027,6 +2406,53 @@ "documentation": "

CodeWhisperer terminal Interaction Type

", "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" } + }, + "documentation": "

Represents a test generation job

" + }, + "TestGenerationJobGroupName": { + "type": "string", + "documentation": "

Test generation job group name

", + "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"], @@ -2106,34 +2532,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", @@ -2333,7 +2747,8 @@ "members": { "taskAssistPlanningUploadContext": { "shape": "TaskAssistPlanningUploadContext" }, "transformationUploadContext": { "shape": "TransformationUploadContext" }, - "codeAnalysisUploadContext": { "shape": "CodeAnalysisUploadContext" } + "codeAnalysisUploadContext": { "shape": "CodeAnalysisUploadContext" }, + "codeFixUploadContext": { "shape": "CodeFixUploadContext" } }, "union": true }, @@ -2350,7 +2765,9 @@ "TRANSFORMATION", "TASK_ASSIST_PLANNING", "AUTOMATIC_FILE_SECURITY_SCAN", - "FULL_PROJECT_SECURITY_SCAN" + "FULL_PROJECT_SECURITY_SCAN", + "UNIT_TESTS_GENERATION", + "CODE_FIX_GENERATION" ] }, "UserContext": { @@ -2444,7 +2861,9 @@ "CITE_SOURCES", "EXPLAIN_LINE_BY_LINE", "EXPLAIN_CODE_SELECTION", - "GENERATE_CLOUDFORMATION_TEMPLATE" + "GENERATE_CLOUDFORMATION_TEMPLATE", + "GENERATE_UNIT_TESTS", + "CODE_GENERATION" ] }, "UserModificationEvent": { @@ -2517,7 +2936,7 @@ "ValidationExceptionReason": { "type": "string", "documentation": "

Reason for ValidationException

", - "enum": ["INVALID_CONVERSATION_ID", "CONTENT_LENGTH_EXCEEDS_THRESHOLD"] + "enum": ["INVALID_CONVERSATION_ID", "CONTENT_LENGTH_EXCEEDS_THRESHOLD", "INVALID_KMS_GRANT"] }, "WorkspaceState": { "type": "structure",