@session.js/types 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,8 @@ export declare enum RequestType {
7
7
  GetSwarms = "/get_swarms",
8
8
  Poll = "/poll",
9
9
  UploadAttachment = "/upload_attachment",
10
- DownloadAttachment = "/download_attachment"
10
+ DownloadAttachment = "/download_attachment",
11
+ DeleteMessages = "/delete_messages"
11
12
  }
12
13
  export type RequestStoreBody = {
13
14
  destination: string;
@@ -28,3 +29,10 @@ export type RequestPollBody = {
28
29
  export type RequestUploadAttachment = {
29
30
  data: ArrayBuffer;
30
31
  };
32
+ export type RequestDownloadAttachment = {
33
+ id: string;
34
+ };
35
+ export type RequestDeleteMessages = {
36
+ swarm: Swarm;
37
+ hashes: string[];
38
+ };
@@ -6,4 +6,5 @@ export var RequestType;
6
6
  RequestType["Poll"] = "/poll";
7
7
  RequestType["UploadAttachment"] = "/upload_attachment";
8
8
  RequestType["DownloadAttachment"] = "/download_attachment";
9
+ RequestType["DeleteMessages"] = "/delete_messages";
9
10
  })(RequestType || (RequestType = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@session.js/types",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Viktor Shchelochkov <hi@hloth.dev> (https://hloth.dev)",