@aws/chat-client-ui-types
Advanced tools
Comparing version 0.0.5 to 0.0.6
# Changelog | ||
## [0.0.6] - 2024-06-20 | ||
- Introduce `CHAT_OPTIONS` contract to allow sending chat options like available quick actions to the UI | ||
## [0.0.5] - 2024-06-05 | ||
@@ -4,0 +8,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { InsertToCursorPositionParams } from '@aws/language-server-runtimes-types'; | ||
import { InsertToCursorPositionParams, ChatOptions } from '@aws/language-server-runtimes-types'; | ||
export { InsertToCursorPositionParams } from '@aws/language-server-runtimes-types'; | ||
@@ -12,3 +12,4 @@ export type AuthFollowUpType = 'full-auth' | 're-auth' | 'missing_scopes' | 'use-supported-auth'; | ||
export declare const GENERIC_COMMAND = "genericCommand"; | ||
export type UiMessageCommand = typeof SEND_TO_PROMPT | typeof ERROR_MESSAGE | typeof INSERT_TO_CURSOR_POSITION | typeof AUTH_FOLLOW_UP_CLICKED | typeof GENERIC_COMMAND; | ||
export declare const CHAT_OPTIONS = "chatOptions"; | ||
export type UiMessageCommand = typeof SEND_TO_PROMPT | typeof ERROR_MESSAGE | typeof INSERT_TO_CURSOR_POSITION | typeof AUTH_FOLLOW_UP_CLICKED | typeof GENERIC_COMMAND | typeof CHAT_OPTIONS; | ||
export interface UiMessage { | ||
@@ -18,3 +19,3 @@ command: UiMessageCommand; | ||
} | ||
export type UiMessageParams = InsertToCursorPositionParams | AuthFollowUpClickedParams | GenericCommandParams | ErrorParams; | ||
export type UiMessageParams = InsertToCursorPositionParams | AuthFollowUpClickedParams | GenericCommandParams | ErrorParams | SendToPromptParams | ChatOptions; | ||
export interface SendToPromptParams { | ||
@@ -61,1 +62,5 @@ selection: string; | ||
} | ||
export interface ChatOptionsMessage { | ||
command: typeof CHAT_OPTIONS; | ||
params: ChatOptions; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.GENERIC_COMMAND = exports.AUTH_FOLLOW_UP_CLICKED = exports.INSERT_TO_CURSOR_POSITION = exports.ERROR_MESSAGE = exports.SEND_TO_PROMPT = exports.isValidAuthFollowUpType = void 0; | ||
exports.CHAT_OPTIONS = exports.GENERIC_COMMAND = exports.AUTH_FOLLOW_UP_CLICKED = exports.INSERT_TO_CURSOR_POSITION = exports.ERROR_MESSAGE = exports.SEND_TO_PROMPT = exports.isValidAuthFollowUpType = void 0; | ||
function isValidAuthFollowUpType(value) { | ||
@@ -13,2 +13,3 @@ return ['full-auth', 're-auth', 'missing_scopes', 'use-supported-auth'].includes(value); | ||
exports.GENERIC_COMMAND = 'genericCommand'; | ||
exports.CHAT_OPTIONS = 'chatOptions'; | ||
//# sourceMappingURL=uiContracts.js.map |
{ | ||
"name": "@aws/chat-client-ui-types", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "Type definitions for Chat UIs in Language Servers and Runtimes for AWS", | ||
@@ -9,3 +9,3 @@ "main": "./out/index.js", | ||
"compile": "tsc --build", | ||
"prepub:copyFiles": "cp ../LICENSE ../NOTICE ../SECURITY.md .", | ||
"prepub:copyFiles": "shx cp ../LICENSE ../NOTICE ../SECURITY.md .", | ||
"prepub": "npm run clean && npm run compile && npm run prepub:copyFiles", | ||
@@ -22,4 +22,4 @@ "pub": "npm publish" | ||
"dependencies": { | ||
"@aws/language-server-runtimes-types": "0.x.x" | ||
"@aws/language-server-runtimes-types": "^0.0.6" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16700
94
+ Added@aws/language-server-runtimes-types@0.0.6(transitive)
- Removed@aws/language-server-runtimes-types@0.1.1(transitive)