-
Notifications
You must be signed in to change notification settings - Fork 273
deps(amazonq): handle authFollowUpClick from webview UI #5668
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
Changes from 3 commits
8da7fce
bdc0459
7c8a681
a9fd117
f642216
5892ee3
a44fc70
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| // Copyright 2025 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| package software.aws.toolkits.jetbrains.services.amazonq.lsp.model.aws.chat | ||
|
|
||
| data class AuthFollowUpClickNotification( | ||
| override val command: String, | ||
| override val params: AuthFollowUpClickedParams, | ||
|
Check warning on line 8 in plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/model/aws/chat/AuthFollowUpClicked.kt
|
||
| ) : ChatNotification<AuthFollowUpClickedParams> | ||
|
|
||
| data class AuthFollowUpClickedParams( | ||
| val tabId: String, | ||
| val messageId: String, | ||
| val authFollowupType: String, | ||
|
Check warning on line 14 in plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/model/aws/chat/AuthFollowUpClicked.kt
|
||
| ) { | ||
| companion object { | ||
| fun create(tabId: String, messageId: String, authType: AuthFollowupType): AuthFollowUpClickedParams = | ||
| AuthFollowUpClickedParams(tabId, messageId, authType.value) | ||
|
Check warning on line 18 in plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/model/aws/chat/AuthFollowUpClicked.kt
|
||
| } | ||
| } | ||
|
|
||
| enum class AuthFollowupType(val value: String) { | ||
| FULL_AUTH("full-auth"), | ||
| RE_AUTH("re-auth"), | ||
| MISSING_SCOPES("missing_scopes"), | ||
| USE_SUPPORTED_AUTH("use-supported-auth"), | ||
|
Check warning on line 26 in plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/model/aws/chat/AuthFollowUpClicked.kt
|
||
| ; | ||
|
|
||
| override fun toString(): String = | ||
| name.lowercase() | ||
| } | ||
|
Check warning on line 31 in plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/model/aws/chat/AuthFollowUpClicked.kt
|
||
Uh oh!
There was an error while loading. Please reload this page.