Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws/chat-client-ui-types

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws/chat-client-ui-types - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

4

CHANGELOG.md
# 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 @@

11

out/uiContracts.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc