diff --git a/packages/core/src/codewhisperer/client/user-service-2.json b/packages/core/src/codewhisperer/client/user-service-2.json index 93b857f6ac0..969abf41f1a 100644 --- a/packages/core/src/codewhisperer/client/user-service-2.json +++ b/packages/core/src/codewhisperer/client/user-service-2.json @@ -66,6 +66,25 @@ "documentation": "

Creates a pre-signed, S3 write URL for uploading a repository zip archive.

", "idempotent": true }, + "CreateUserMemoryEntry": { + "name": "CreateUserMemoryEntry", + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { "shape": "CreateUserMemoryEntryInput" }, + "output": { "shape": "CreateUserMemoryEntryOutput" }, + "errors": [ + { "shape": "ThrottlingException" }, + { "shape": "ServiceQuotaExceededException" }, + { "shape": "ResourceNotFoundException" }, + { "shape": "InternalServerException" }, + { "shape": "ValidationException" }, + { "shape": "AccessDeniedException" } + ], + "documentation": "

API to create a single user memory entry

", + "idempotent": true + }, "CreateWorkspace": { "name": "CreateWorkspace", "http": { @@ -100,6 +119,24 @@ ], "documentation": "

API to delete task assist conversation.

" }, + "DeleteUserMemoryEntry": { + "name": "DeleteUserMemoryEntry", + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { "shape": "DeleteUserMemoryEntryInput" }, + "output": { "shape": "DeleteUserMemoryEntryOutput" }, + "errors": [ + { "shape": "ThrottlingException" }, + { "shape": "ResourceNotFoundException" }, + { "shape": "InternalServerException" }, + { "shape": "ValidationException" }, + { "shape": "AccessDeniedException" } + ], + "documentation": "

API to delete a single user memory entry

", + "idempotent": true + }, "DeleteWorkspace": { "name": "DeleteWorkspace", "http": { @@ -312,6 +349,23 @@ ], "documentation": "

Return configruations for each feature that has been setup for A/B testing.

" }, + "ListUserMemoryEntries": { + "name": "ListUserMemoryEntries", + "http": { + "method": "POST", + "requestUri": "/" + }, + "input": { "shape": "ListUserMemoryEntriesInput" }, + "output": { "shape": "ListUserMemoryEntriesOutput" }, + "errors": [ + { "shape": "ThrottlingException" }, + { "shape": "ResourceNotFoundException" }, + { "shape": "InternalServerException" }, + { "shape": "ValidationException" }, + { "shape": "AccessDeniedException" } + ], + "documentation": "

API to list user memories

" + }, "ListWorkspaceMetadata": { "name": "ListWorkspaceMetadata", "http": { @@ -647,6 +701,17 @@ "min": 0, "sensitive": true }, + "AttributesMap": { + "type": "map", + "key": { "shape": "AttributesMapKeyString" }, + "value": { "shape": "StringList" }, + "documentation": "

Attributes is a map of key-value pairs

" + }, + "AttributesMapKeyString": { + "type": "string", + "max": 128, + "min": 1 + }, "Base64EncodedPaginationToken": { "type": "string", "max": 2048, @@ -665,6 +730,17 @@ "toggle": { "shape": "OptInFeatureToggle" } } }, + "ChangeLogGranularityType": { + "type": "string", + "enum": ["STANDARD", "BUSINESS"] + }, + "ChangeLogOptions": { + "type": "structure", + "required": ["granularity"], + "members": { + "granularity": { "shape": "ChangeLogGranularityType" } + } + }, "ChatAddMessageEvent": { "type": "structure", "required": ["conversationId", "messageId"], @@ -689,7 +765,7 @@ "type": "list", "member": { "shape": "ChatMessage" }, "documentation": "

Indicates Participant in Chat conversation

", - "max": 100, + "max": 250, "min": 0 }, "ChatInteractWithMessageEvent": { @@ -803,6 +879,23 @@ "type": "integer", "min": 0 }, + "CodeDescription": { + "type": "structure", + "required": ["href"], + "members": { + "href": { + "shape": "CodeDescriptionHrefString", + "documentation": "

An URI to open with more information about the diagnostic error.

" + } + }, + "documentation": "

Structure to capture a description for an error code.

" + }, + "CodeDescriptionHrefString": { + "type": "string", + "max": 1024, + "min": 1, + "sensitive": true + }, "CodeFixAcceptanceEvent": { "type": "structure", "required": ["jobId"], @@ -1086,6 +1179,40 @@ "requestHeaders": { "shape": "RequestHeaders" } } }, + "CreateUserMemoryEntryInput": { + "type": "structure", + "required": ["memoryEntryString", "origin"], + "members": { + "memoryEntryString": { "shape": "CreateUserMemoryEntryInputMemoryEntryStringString" }, + "origin": { "shape": "Origin" }, + "profileArn": { + "shape": "CreateUserMemoryEntryInputProfileArnString", + "documentation": "

ProfileArn for the managing Q Profile

" + }, + "clientToken": { + "shape": "IdempotencyToken", + "idempotencyToken": true + } + } + }, + "CreateUserMemoryEntryInputMemoryEntryStringString": { + "type": "string", + "max": 500, + "min": 1, + "sensitive": true + }, + "CreateUserMemoryEntryInputProfileArnString": { + "type": "string", + "min": 1, + "pattern": "arn:aws:codewhisperer:[-.a-z0-9]{1,63}:\\d{12}:profile/([a-zA-Z0-9]){12}" + }, + "CreateUserMemoryEntryOutput": { + "type": "structure", + "required": ["memoryEntry"], + "members": { + "memoryEntry": { "shape": "MemoryEntry" } + } + }, "CreateWorkspaceRequest": { "type": "structure", "required": ["workspaceRoot"], @@ -1171,6 +1298,32 @@ }, "documentation": "

Structure to represent bootstrap conversation response.

" }, + "DeleteUserMemoryEntryInput": { + "type": "structure", + "required": ["id"], + "members": { + "id": { "shape": "DeleteUserMemoryEntryInputIdString" }, + "profileArn": { + "shape": "DeleteUserMemoryEntryInputProfileArnString", + "documentation": "

ProfileArn for the managing Q Profile

" + } + } + }, + "DeleteUserMemoryEntryInputIdString": { + "type": "string", + "max": 36, + "min": 36, + "pattern": "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}" + }, + "DeleteUserMemoryEntryInputProfileArnString": { + "type": "string", + "min": 1, + "pattern": "arn:aws:codewhisperer:[-.a-z0-9]{1,63}:\\d{12}:profile/([a-zA-Z0-9]){12}" + }, + "DeleteUserMemoryEntryOutput": { + "type": "structure", + "members": {} + }, "DeleteWorkspaceRequest": { "type": "structure", "required": ["workspaceId"], @@ -1204,11 +1357,66 @@ "documentation": "

Represents a Diagnostic message

", "union": true }, + "DiagnosticLocation": { + "type": "structure", + "required": ["uri", "range"], + "members": { + "uri": { "shape": "DiagnosticLocationUriString" }, + "range": { "shape": "Range" } + }, + "documentation": "

Represents a location inside a resource, such as a line inside a text file.

" + }, + "DiagnosticLocationUriString": { + "type": "string", + "max": 1024, + "min": 1, + "sensitive": true + }, + "DiagnosticRelatedInformation": { + "type": "structure", + "required": ["location", "message"], + "members": { + "location": { + "shape": "DiagnosticLocation", + "documentation": "

The location of this related diagnostic information.

" + }, + "message": { + "shape": "DiagnosticRelatedInformationMessageString", + "documentation": "

The message of this related diagnostic information.

" + } + }, + "documentation": "

Represents a related message and source code location for a diagnostic.

" + }, + "DiagnosticRelatedInformationList": { + "type": "list", + "member": { "shape": "DiagnosticRelatedInformation" }, + "documentation": "

List of DiagnosticRelatedInformation

", + "max": 1024, + "min": 0 + }, + "DiagnosticRelatedInformationMessageString": { + "type": "string", + "max": 1024, + "min": 0, + "sensitive": true + }, "DiagnosticSeverity": { "type": "string", "documentation": "

Diagnostic Error types

", "enum": ["ERROR", "WARNING", "INFORMATION", "HINT"] }, + "DiagnosticTag": { + "type": "string", + "documentation": "

The diagnostic tags.

", + "enum": ["UNNECESSARY", "DEPRECATED"] + }, + "DiagnosticTagList": { + "type": "list", + "member": { "shape": "DiagnosticTag" }, + "documentation": "

List of DiagnosticTag

", + "max": 1024, + "min": 0 + }, "Dimension": { "type": "structure", "members": { @@ -1378,7 +1586,8 @@ "required": ["type"], "members": { "scope": { "shape": "DocumentationIntentContextScopeString" }, - "type": { "shape": "DocumentationType" } + "type": { "shape": "DocumentationType" }, + "changeLogOptions": { "shape": "ChangeLogOptions" } } }, "DocumentationIntentContextScopeString": { @@ -1389,12 +1598,26 @@ }, "DocumentationType": { "type": "string", - "enum": ["README"] + "enum": ["README", "CHANGE_LOG"] }, "Double": { "type": "double", "box": true }, + "Edit": { + "type": "structure", + "required": ["content"], + "members": { + "content": { "shape": "EditContentString" }, + "references": { "shape": "References" } + } + }, + "EditContentString": { + "type": "string", + "max": 5120, + "min": 1, + "sensitive": true + }, "EditorState": { "type": "structure", "members": { @@ -1691,7 +1914,9 @@ "required": ["fileContext"], "members": { "fileContext": { "shape": "FileContext" }, + "editorState": { "shape": "EditorState" }, "maxResults": { "shape": "GenerateCompletionsRequestMaxResultsInteger" }, + "predictionTypes": { "shape": "PredictionTypes" }, "nextToken": { "shape": "GenerateCompletionsRequestNextTokenString" }, "referenceTrackerConfiguration": { "shape": "ReferenceTrackerConfiguration" }, "supplementalContexts": { "shape": "SupplementalContextList" }, @@ -1718,6 +1943,7 @@ "GenerateCompletionsResponse": { "type": "structure", "members": { + "predictions": { "shape": "Predictions" }, "completions": { "shape": "Completions" }, "nextToken": { "shape": "SensitiveString" } } @@ -2126,9 +2352,48 @@ "featureEvaluations": { "shape": "FeatureEvaluationsList" } } }, + "ListUserMemoryEntriesInput": { + "type": "structure", + "members": { + "maxResults": { "shape": "ListUserMemoryEntriesInputMaxResultsInteger" }, + "profileArn": { + "shape": "ListUserMemoryEntriesInputProfileArnString", + "documentation": "

ProfileArn for the managing Q Profile

" + }, + "nextToken": { "shape": "ListUserMemoryEntriesInputNextTokenString" } + } + }, + "ListUserMemoryEntriesInputMaxResultsInteger": { + "type": "integer", + "box": true, + "max": 100, + "min": 1 + }, + "ListUserMemoryEntriesInputNextTokenString": { + "type": "string", + "min": 1, + "pattern": "\\S+" + }, + "ListUserMemoryEntriesInputProfileArnString": { + "type": "string", + "min": 1, + "pattern": "arn:aws:codewhisperer:[-.a-z0-9]{1,63}:\\d{12}:profile/([a-zA-Z0-9]){12}" + }, + "ListUserMemoryEntriesOutput": { + "type": "structure", + "required": ["memoryEntries"], + "members": { + "memoryEntries": { "shape": "MemoryEntryList" }, + "nextToken": { "shape": "ListUserMemoryEntriesOutputNextTokenString" } + } + }, + "ListUserMemoryEntriesOutputNextTokenString": { + "type": "string", + "min": 1, + "pattern": "\\S+" + }, "ListWorkspaceMetadataRequest": { "type": "structure", - "required": ["workspaceRoot"], "members": { "workspaceRoot": { "shape": "ListWorkspaceMetadataRequestWorkspaceRootString" }, "nextToken": { "shape": "String" }, @@ -2154,6 +2419,47 @@ "type": "long", "box": true }, + "MemoryEntry": { + "type": "structure", + "required": ["id", "memoryEntryString", "metadata"], + "members": { + "id": { + "shape": "MemoryEntryIdString", + "documentation": "

A unique identifier for a single memory entry

" + }, + "memoryEntryString": { "shape": "MemoryEntryMemoryEntryStringString" }, + "metadata": { "shape": "MemoryEntryMetadata" } + }, + "documentation": "

MemoryEntry corresponds to a single user memory

" + }, + "MemoryEntryIdString": { + "type": "string", + "max": 36, + "min": 36, + "pattern": "[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}" + }, + "MemoryEntryList": { + "type": "list", + "member": { "shape": "MemoryEntry" }, + "documentation": "

List of user memories

" + }, + "MemoryEntryMemoryEntryStringString": { + "type": "string", + "max": 500, + "min": 1, + "sensitive": true + }, + "MemoryEntryMetadata": { + "type": "structure", + "required": ["origin", "createdAt", "updatedAt"], + "members": { + "origin": { "shape": "Origin" }, + "attributes": { "shape": "AttributesMap" }, + "createdAt": { "shape": "Timestamp" }, + "updatedAt": { "shape": "Timestamp" } + }, + "documentation": "

Metadata for a single memory entry

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

Unique identifier for the chat message

", @@ -2307,6 +2613,35 @@ "min": 1, "sensitive": true }, + "Prediction": { + "type": "structure", + "members": { + "completion": { "shape": "Completion" }, + "edit": { "shape": "Edit" } + }, + "union": true + }, + "PredictionType": { + "type": "string", + "enum": ["Completions", "Edits"] + }, + "PredictionTypes": { + "type": "list", + "member": { "shape": "PredictionType" } + }, + "Predictions": { + "type": "list", + "member": { "shape": "Prediction" }, + "max": 10, + "min": 0 + }, + "PreviousEditorStateMetadata": { + "type": "structure", + "required": ["timeOffset"], + "members": { + "timeOffset": { "shape": "Integer" } + } + }, "PrimitiveInteger": { "type": "integer" }, "Profile": { "type": "structure", @@ -2918,6 +3253,19 @@ "documentation": "

Structure to represent stop code transformation response.

" }, "String": { "type": "string" }, + "StringList": { + "type": "list", + "member": { "shape": "StringListMemberString" }, + "documentation": "

A list of strings

", + "max": 50, + "min": 0 + }, + "StringListMemberString": { + "type": "string", + "max": 256, + "min": 1, + "sensitive": true + }, "SuggestedFix": { "type": "structure", "members": { @@ -2947,7 +3295,9 @@ "required": ["filePath", "content"], "members": { "filePath": { "shape": "SupplementalContextFilePathString" }, - "content": { "shape": "SupplementalContextContentString" } + "content": { "shape": "SupplementalContextContentString" }, + "type": { "shape": "SupplementalContextType" }, + "metadata": { "shape": "SupplementalContextMetadata" } } }, "SupplementalContextContentString": { @@ -2968,6 +3318,17 @@ "max": 5, "min": 0 }, + "SupplementalContextMetadata": { + "type": "structure", + "members": { + "previousEditorStateMetadata": { "shape": "PreviousEditorStateMetadata" } + }, + "union": true + }, + "SupplementalContextType": { + "type": "string", + "enum": ["PreviousEditorState", "WorkspaceContext"] + }, "SupplementaryWebLink": { "type": "structure", "required": ["url", "title"], @@ -3306,10 +3667,42 @@ "message": { "shape": "TextDocumentDiagnosticMessageString", "documentation": "

The diagnostic's message.

" + }, + "code": { + "shape": "TextDocumentDiagnosticCodeString", + "documentation": "

The diagnostic's code, which might appear in the user interface.

" + }, + "codeDescription": { + "shape": "CodeDescription", + "documentation": "

An optional property to describe the error code.

" + }, + "tags": { + "shape": "DiagnosticTagList", + "documentation": "

Additional metadata about the diagnostic.

" + }, + "relatedInformation": { + "shape": "DiagnosticRelatedInformationList", + "documentation": "

an array of related diagnostic information, e.g. when symbol-names within a scope collide all definitions can be marked via this property.

" + }, + "data": { + "shape": "TextDocumentDiagnosticDataString", + "documentation": "

A data entry field that is preserved between a textDocument/publishDiagnostics notification and textDocument/codeAction request.

" } }, "documentation": "

Structure to represent metadata about a TextDocument Diagnostic

" }, + "TextDocumentDiagnosticCodeString": { + "type": "string", + "max": 1024, + "min": 0, + "sensitive": true + }, + "TextDocumentDiagnosticDataString": { + "type": "string", + "max": 4096, + "min": 0, + "sensitive": true + }, "TextDocumentDiagnosticMessageString": { "type": "string", "max": 1024, @@ -3936,6 +4329,7 @@ "members": { "workspaceId": { "shape": "UUID" }, "workspaceStatus": { "shape": "WorkspaceStatus" }, + "environmentAddress": { "shape": "SensitiveString" }, "environmentId": { "shape": "SensitiveString" } } },