Skip to content
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

deps(cw): regen clients with codegen at 0.25.x #6439

Merged
merged 36 commits into from
Feb 14, 2025
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
b6a853e
deps: add in generated client
Hweinstock Jan 27, 2025
3c37c57
fix: add missing type annotation
Hweinstock Jan 27, 2025
a3c9adf
fix: pin client versions used by toolkit
Hweinstock Jan 29, 2025
7450af0
deps: regen other client to fix to same version
Hweinstock Jan 29, 2025
7a33dcc
deps: fix other @aws-sdk/* packages
Hweinstock Jan 29, 2025
b1470ed
deps: update package-lock
Hweinstock Jan 29, 2025
83a18cc
deps: avoid fixing to specific version
Hweinstock Jan 29, 2025
b3e02c9
deps: pin smithy major versions
Hweinstock Jan 29, 2025
046c3fb
deps: add back missing module
Hweinstock Jan 29, 2025
8b44fdd
refactor: gross workarounds for it to build
Hweinstock Jan 29, 2025
548fb51
refactor: implement custom credentials provider
Hweinstock Jan 30, 2025
96c7759
refactor: rename profile field to match expected
Hweinstock Jan 30, 2025
a4a2709
docs: add documentation link in implementation
Hweinstock Jan 30, 2025
49195c3
deps: remove deprecated dependencies
Hweinstock Jan 30, 2025
d2f3c4f
refactor: add stronger typing
Hweinstock Jan 30, 2025
d7bede6
docs: remove documentation link since its already in the types
Hweinstock Jan 31, 2025
d7a9ca3
test: implement tests for behavior of credentials provider
Hweinstock Jan 31, 2025
cee9f55
merge: resolve package.json conflicts
Hweinstock Jan 31, 2025
d180291
Merge branch 'master' into auth/loadedConfigFile
Hweinstock Jan 31, 2025
4cd53bd
merge: undo merge
Hweinstock Jan 31, 2025
cea3f93
deps: consume single credential providers package
Hweinstock Jan 31, 2025
d2c81f3
Merge branch 'master' into regenClient/0.25.x
Hweinstock Jan 31, 2025
2450ed4
deps: consume only cred providers needed
Hweinstock Jan 31, 2025
1c8f322
deps: avoid relying on deprecated package
Hweinstock Jan 31, 2025
c358a2a
refactor: avoid unnecessary type annotation
Hweinstock Feb 3, 2025
c5aa07f
deps: remove dependence on ini and add env
Hweinstock Feb 3, 2025
bf3af8f
merge: resolve package-lock conflicts
Hweinstock Feb 10, 2025
20552b8
refactor: simplify conditional args
Hweinstock Feb 11, 2025
21b8b31
docs: add section with links for shared credentials file
Hweinstock Feb 11, 2025
4befa8c
fix: avoid importing from index.ts
Hweinstock Feb 11, 2025
c3ac3d8
Merge branch 'master' into auth/loadedConfigFile
Hweinstock Feb 11, 2025
7a58a30
Merge branch 'master' into auth/loadedConfigFile
Hweinstock Feb 11, 2025
0242b59
merge: fix conflicts with upstream
Hweinstock Feb 11, 2025
a54d8c0
merge: bring in auth changes
Hweinstock Feb 11, 2025
4a847f5
merge: resolve conflicts
Hweinstock Feb 13, 2025
3039bdb
refactor: undo unnecessary import change
Hweinstock Feb 13, 2025
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
35,538 changes: 13,949 additions & 21,589 deletions package-lock.json

Large diffs are not rendered by default.

38 changes: 19 additions & 19 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -496,28 +496,28 @@
"dependencies": {
"@amzn/amazon-q-developer-streaming-client": "file:../../src.gen/@amzn/amazon-q-developer-streaming-client",
"@amzn/codewhisperer-streaming": "file:../../src.gen/@amzn/codewhisperer-streaming",
"@aws-sdk/client-cloudformation": "^3.667.0",
"@aws-sdk/client-cloudwatch-logs": "^3.666.0",
"@aws-sdk/client-cognito-identity": "^3.637.0",
"@aws-sdk/client-docdb": "^3.699.0",
"@aws-sdk/client-docdb-elastic": "^3.699.0",
"@aws-sdk/client-lambda": "^3.637.0",
"@aws-sdk/client-sso": "^3.342.0",
"@aws-sdk/client-sso-oidc": "^3.574.0",
"@aws-sdk/credential-provider-env": "3.696.0",
"@aws-sdk/credential-provider-process": "3.37.0",
"@aws-sdk/credential-provider-sso": "^3.345.0",
"@aws-sdk/property-provider": "3.46.0",
"@aws-sdk/smithy-client": "^3.46.0",
"@aws-sdk/util-arn-parser": "^3.46.0",
"@aws-sdk/client-cloudformation": "<3.696.0",
"@aws-sdk/client-cloudwatch-logs": "<3.696.0",
"@aws-sdk/client-cognito-identity": "<3.696.0",
"@aws-sdk/client-docdb": "<3.696.0",
"@aws-sdk/client-docdb-elastic": "<3.696.0",
"@aws-sdk/client-lambda": "<3.696.0",
"@aws-sdk/client-sso": "<3.696.0",
"@aws-sdk/client-sso-oidc": "<3.696.0",
"@aws-sdk/credential-provider-env": "<3.696.0",
"@aws-sdk/credential-provider-process": "<3.696.0",
"@aws-sdk/credential-provider-sso": "<3.696.0",
"@aws-sdk/property-provider": "<3.696.0",
"@aws-sdk/smithy-client": "<3.696.0",
"@aws-sdk/util-arn-parser": "<3.696.0",
"@aws/mynah-ui": "^4.22.1",
"@gerhobbelt/gitignore-parser": "^0.2.0-9",
"@iarna/toml": "^2.2.5",
"@smithy/middleware-retry": "^2.3.1",
"@smithy/protocol-http": "^3.3.0",
"@smithy/service-error-classification": "^2.1.5",
"@smithy/shared-ini-file-loader": "^2.2.8",
"@smithy/util-retry": "^2.2.0",
"@smithy/middleware-retry": "^3.0.0",
"@smithy/protocol-http": "^4.0.0",
"@smithy/service-error-classification": "^3.0.0",
"@smithy/shared-ini-file-loader": "^3.0.0",
"@smithy/util-retry": "^3.0.0",
"@vscode/debugprotocol": "^1.57.0",
"@zip.js/zip.js": "^2.7.41",
"adm-zip": "^0.5.10",
3 changes: 2 additions & 1 deletion packages/core/src/amazonqFeatureDev/client/featureDev.ts
Original file line number Diff line number Diff line change
@@ -32,6 +32,7 @@ import {
MetricData,
TelemetryEvent,
} from './featuredevproxyclient'
import { ExportResultArchiveCommandInput } from '@amzn/codewhisperer-streaming'
import { FeatureClient } from '../../amazonq/client/client'

// Re-enable once BE is able to handle retries.
@@ -229,7 +230,7 @@ export class FeatureDevClient implements FeatureClient {
const params = {
exportId: conversationId,
exportIntent: 'TASK_ASSIST',
}
} satisfies ExportResultArchiveCommandInput
getLogger().debug(`Executing exportResultArchive with %O`, params)
const archiveResponse = await streamingClient.exportResultArchive(params)
const buffer: number[] = []
2 changes: 1 addition & 1 deletion packages/core/src/shared/errors.ts
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@

import * as vscode from 'vscode'
import { AWSError } from 'aws-sdk'
import { ServiceException } from '@aws-sdk/smithy-client'
import { ServiceException } from '@smithy/smithy-client'
import { isThrottlingError, isTransientError } from '@smithy/service-error-classification'
import { Result } from './telemetry/telemetry'
import { CancellationError } from './utilities/timeoutUtils'
Original file line number Diff line number Diff line change
@@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2018-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Copyright 2018-2025 Amazon.com, Inc. or its affiliates. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
52 changes: 51 additions & 1 deletion src.gen/@amzn/amazon-q-developer-streaming-client/README.md
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
AWS SDK for JavaScript QDeveloperStreaming Client for Node.js, Browser and React Native.

## Installing
To install the this package, simply type add or install @amzn/amazon-q-developer-streaming-client
To install this package, simply type add or install @amzn/amazon-q-developer-streaming-client
using your favorite package manager:
- `npm install @amzn/amazon-q-developer-streaming-client`
- `yarn add @amzn/amazon-q-developer-streaming-client`
@@ -194,6 +194,7 @@ To contribute to client you can check our [generate clients scripts](https://git
This SDK is distributed under the
[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0),
see LICENSE for more information.

## Client Commands (Operations List)

<details>
@@ -324,6 +325,13 @@ UpdateProfile
</details>
<details>
<summary>
VendKeyGrant
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qdeveloperstreaming/command/VendKeyGrantCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qdeveloperstreaming/Interface/VendKeyGrantCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qdeveloperstreaming/Interface/VendKeyGrantCommandOutput/)
</details>
<details>
<summary>
CreateArtifactUploadUrl
</summary>

@@ -366,6 +374,13 @@ GetCodeAnalysis
</details>
<details>
<summary>
GetCodeFixJob
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qdeveloperstreaming/command/GetCodeFixJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qdeveloperstreaming/Interface/GetCodeFixJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qdeveloperstreaming/Interface/GetCodeFixJobCommandOutput/)
</details>
<details>
<summary>
GetTaskAssistCodeGeneration
</summary>

@@ -436,6 +451,13 @@ StartCodeAnalysis
</details>
<details>
<summary>
StartCodeFixJob
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qdeveloperstreaming/command/StartCodeFixJobCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qdeveloperstreaming/Interface/StartCodeFixJobCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qdeveloperstreaming/Interface/StartCodeFixJobCommandOutput/)
</details>
<details>
<summary>
StartTaskAssistCodeGeneration
</summary>

@@ -485,6 +507,13 @@ GenerateTaskAssistPlan
</details>
<details>
<summary>
AssociateConnectorResource
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qdeveloperstreaming/command/AssociateConnectorResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qdeveloperstreaming/Interface/AssociateConnectorResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qdeveloperstreaming/Interface/AssociateConnectorResourceCommandOutput/)
</details>
<details>
<summary>
CreateAssignment
</summary>

@@ -534,6 +563,13 @@ DeletePlugin
</details>
<details>
<summary>
GetConnector
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qdeveloperstreaming/command/GetConnectorCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qdeveloperstreaming/Interface/GetConnectorCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qdeveloperstreaming/Interface/GetConnectorCommandOutput/)
</details>
<details>
<summary>
GetConversation
</summary>

@@ -590,6 +626,13 @@ ListConversations
</details>
<details>
<summary>
ListDashboardMetrics
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qdeveloperstreaming/command/ListDashboardMetricsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qdeveloperstreaming/Interface/ListDashboardMetricsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qdeveloperstreaming/Interface/ListDashboardMetricsCommandOutput/)
</details>
<details>
<summary>
ListExtensionProviders
</summary>

@@ -639,6 +682,13 @@ PassRequest
</details>
<details>
<summary>
RejectConnector
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/qdeveloperstreaming/command/RejectConnectorCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qdeveloperstreaming/Interface/RejectConnectorCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-qdeveloperstreaming/Interface/RejectConnectorCommandOutput/)
</details>
<details>
<summary>
SendEvent
</summary>

Loading