Skip to content

feat: add fileUri to FileContext #1399

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
* DO NOT EDIT BY HAND.
*/

import {Request} from 'aws-sdk/lib/request';
import {Response} from 'aws-sdk/lib/response';
import {AWSError} from 'aws-sdk/lib/error';
import {Service} from 'aws-sdk/lib/service';
import {ServiceConfigurationOptions} from 'aws-sdk/lib/service';
import {ConfigBase as Config} from 'aws-sdk/lib/config-base';
import { Request } from 'aws-sdk/lib/request';
import { Response } from 'aws-sdk/lib/response';
import { AWSError } from 'aws-sdk/lib/error';
import { Service } from 'aws-sdk/lib/service';
import { ServiceConfigurationOptions } from 'aws-sdk/lib/service';
import { ConfigBase as Config } from 'aws-sdk/lib/config-base';
interface Blob {}
declare class CodeWhispererSigV4Client extends Service {
/**
Expand Down Expand Up @@ -131,11 +131,11 @@ declare class CodeWhispererSigV4Client extends Service {
updateProfile(callback?: (err: AWSError, data: CodeWhispererSigV4Client.Types.UpdateProfileResponse) => void): Request<CodeWhispererSigV4Client.Types.UpdateProfileResponse, AWSError>;
}
declare namespace CodeWhispererSigV4Client {
export type ArtifactMap = {[key: string]: UploadId};
export type ArtifactType = "SourceCode"|"BuiltJars"|string;
export type ArtifactMap = { [key: string]: UploadId };
export type ArtifactType = "SourceCode" | "BuiltJars" | string;
export type Base64EncodedPaginationToken = string;
export type CodeScanFindingsSchema = "codescan/findings/1.0"|string;
export type CodeScanStatus = "Completed"|"Pending"|"Failed"|string;
export type CodeScanFindingsSchema = "codescan/findings/1.0" | string;
export type CodeScanStatus = "Completed" | "Pending" | "Failed" | string;
export interface CreateCodeScanRequest {
artifacts: ArtifactMap;
programmingLanguage: ProgrammingLanguage;
Expand Down Expand Up @@ -178,8 +178,10 @@ declare namespace CodeWhispererSigV4Client {
leftFileContent: FileContextLeftFileContentString;
rightFileContent: FileContextRightFileContentString;
filename: FileContextFilenameString;
fileUri?: FileContextFileUriString;
programmingLanguage: ProgrammingLanguage;
}
export type FileContextFileUriString = string;
export type FileContextFilenameString = string;
export type FileContextLeftFileContentString = string;
export type FileContextRightFileContentString = string;
Expand Down Expand Up @@ -290,7 +292,7 @@ declare namespace CodeWhispererSigV4Client {
}
export type RecommendationContentString = string;
export type RecommendationsList = Recommendation[];
export type RecommendationsWithReferencesPreference = "BLOCK"|"ALLOW"|string;
export type RecommendationsWithReferencesPreference = "BLOCK" | "ALLOW" | string;
export interface Reference {
licenseName?: ReferenceLicenseNameString;
repository?: ReferenceRepositoryString;
Expand Down Expand Up @@ -353,7 +355,7 @@ declare namespace CodeWhispererSigV4Client {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
*/
export type apiVersion = "2022-06-15"|"latest"|string;
export type apiVersion = "2022-06-15" | "latest" | string;
export interface ClientApiVersions {
/**
* A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
Expand All @@ -368,4 +370,3 @@ declare namespace CodeWhispererSigV4Client {
}
export = CodeWhispererSigV4Client;


8 changes: 8 additions & 0 deletions server/aws-lsp-codewhisperer/src/client/sigv4/service.json
Original file line number Diff line number Diff line change
Expand Up @@ -612,11 +612,19 @@
"filename": {
"shape": "FileContextFilenameString"
},
"fileUri": {
"shape": "FileContextFileUriString"
},
"programmingLanguage": {
"shape": "ProgrammingLanguage"
}
}
},
"FileContextFileUriString": {
"type": "string",
"max": 1024,
"min": 1
},
"FileContextFilenameString": {
"type": "string",
"max": 1024,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2223,11 +2223,20 @@
"filename": {
"shape": "FileContextFilenameString"
},
"fileUri": {
"shape": "FileContextFileUriString"
},
"programmingLanguage": {
"shape": "ProgrammingLanguage"
}
}
},
"FileContextFileUriString": {
"type": "string",
"max": 1024,
"min": 1,
"sensitive": true
},
"FileContextFilenameString": {
"type": "string",
"max": 1024,
Expand Down
Loading
Loading