amazon-connect-chatjs
Advanced tools
Comparing version 1.1.4 to 1.1.5
{ | ||
"name": "amazon-connect-chatjs", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"main": "dist/amazon-connect-chat.js", | ||
@@ -69,6 +69,6 @@ "types": "src/index.d.ts", | ||
"regenerator-runtime": "^0.13.3", | ||
"typescript": "3.0.1", | ||
"typescript": "^4.2.4", | ||
"webpack": "^4.26.0", | ||
"webpack-cli": "^3.1.2", | ||
"webpack-dev-server": "^3.1.10" | ||
"webpack-dev-server": "^3.11.2" | ||
}, | ||
@@ -75,0 +75,0 @@ "dependencies": { |
@@ -76,3 +76,3 @@ # About | ||
## `connect.ChatSesion` API | ||
## `connect.ChatSession` API | ||
@@ -79,0 +79,0 @@ This is the main entry point to `amazon-connect-chatjs`. |
@@ -185,2 +185,23 @@ declare namespace connect { | ||
/** | ||
* Uploads a file | ||
* See: https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_StartAttachmentUpload.html | ||
* See: https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_CompleteAttachmentUpload.html | ||
* @param args The arguments of the operation. | ||
*/ | ||
sendAttachment(args: SendAttachmentArgs): Promise<ParticipantServiceResponse<SendAttachmentResult>>; | ||
sendAttachment<T>( | ||
args: WithMetadata<SendAttachmentArgs, T> | ||
): Promise<WithMetadata<ParticipantServiceResponse<SendAttachmentResult>, T>>; | ||
/** | ||
* Downloads a file | ||
* See: https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_GetAttachment.html | ||
* @param args The arguments of the operation. | ||
*/ | ||
downloadAttachment(args: DownloadAttachmentArgs): Promise<ParticipantServiceResponse<DownloadAttachmentResult>>; | ||
downloadAttachment<T>( | ||
args: WithMetadata<DownloadAttachmentArgs, T> | ||
): Promise<WithMetadata<ParticipantServiceResponse<DownloadAttachmentResult>, T>>; | ||
/** | ||
* Sends a message as the current session's participant. | ||
@@ -500,2 +521,22 @@ * See: https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_SendMessage.html | ||
/** | ||
* An object that is transformed to a request of the Amazon Connect Participant Service `StartAttachmentUpload and Complete Attachment Upload` API. | ||
* See: https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_StartAttachmentUpload.html | ||
*/ | ||
interface SendAttachmentArgs { | ||
/** | ||
* An HTML file object | ||
* https://developer.mozilla.org/en-US/docs/Web/API/File | ||
*/ | ||
attachment: File; | ||
} | ||
/** | ||
* An object that is transformed to a request of the Amazon Connect Participant Service `GetAttachment` API. | ||
* See: https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_GetAttachment.html | ||
*/ | ||
interface DownloadAttachmentArgs { | ||
attachmentId: string; | ||
} | ||
/** | ||
* Represents the response of the Amazon Connect Participant Service `SendEvent` API. | ||
@@ -516,2 +557,22 @@ * See: https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_SendEvent.html#API_SendEvent_ResponseSyntax | ||
/** | ||
* Represents the response of the Amazon Connect Participant Service `CompleteAttachmentUpload` API. | ||
* See: https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_CompleteAttachmentUpload.html | ||
*/ | ||
interface SendAttachmentResult { | ||
} | ||
/** | ||
* Represents the response of the Amazon Connect Participant Service `GetAttachment` API. | ||
* See: https://docs.aws.amazon.com/connect-participant/latest/APIReference/API_GetAttachment.html | ||
*/ | ||
interface DownloadAttachmentResult { | ||
// This is the pre-signed URL that can be used for uploading the file to Amazon S3 when used in response to StartAttachmentUpload. | ||
Url: string; | ||
// The expiration time of the URL in ISO timestamp. | ||
// It's specified in ISO 8601 format: yyyy-MM-ddThh:mm:ss.SSSZ. For example, 2019-11-08T02:41:28.172Z. | ||
UrlExpiry: string; | ||
} | ||
// ====== | ||
@@ -557,2 +618,2 @@ // Events | ||
} | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1033237
1740
3