@session.js/types 1.0.4 → 1.0.5

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.
@@ -6,7 +6,8 @@ export declare enum RequestType {
6
6
  GetSnodes = "/get_snodes",
7
7
  GetSwarms = "/get_swarms",
8
8
  Poll = "/poll",
9
- UploadAttachment = "/upload_attachment"
9
+ UploadAttachment = "/upload_attachment",
10
+ DownloadAttachment = "/download_attachment"
10
11
  }
11
12
  export type RequestStoreBody = {
12
13
  destination: string;
@@ -5,4 +5,5 @@ export var RequestType;
5
5
  RequestType["GetSwarms"] = "/get_swarms";
6
6
  RequestType["Poll"] = "/poll";
7
7
  RequestType["UploadAttachment"] = "/upload_attachment";
8
+ RequestType["DownloadAttachment"] = "/download_attachment";
8
9
  })(RequestType || (RequestType = {}));
@@ -1,3 +1,3 @@
1
- import { signalservice as SignalService } from './compiled.js';
1
+ import { signalservice as SignalService } from './compiled';
2
2
  import { ProtobufUtils } from './utils.js';
3
3
  export { SignalService, ProtobufUtils };
@@ -1,3 +1,3 @@
1
- import { signalservice as SignalService } from './compiled.js';
1
+ import { signalservice as SignalService } from './compiled';
2
2
  import { ProtobufUtils } from './utils.js';
3
3
  export { SignalService, ProtobufUtils };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@session.js/types",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "author": "Viktor Shchelochkov <hi@hloth.dev> (https://hloth.dev)",
@@ -81,7 +81,7 @@
81
81
  }
82
82
  },
83
83
  "scripts": {
84
- "build": "tsc --project tsconfig.build.json && tsc-alias -p tsconfig.build.json --resolve-full-paths && cp src/signal-bindings/compiled.js dist/signal-bindings/compiled.js && cp src/signal-bindings/compiled.d.ts dist/signal-bindings/compiled.d.ts",
84
+ "build": "rm -rf dist && tsc --project tsconfig.build.json && tsc-alias -p tsconfig.build.json --resolve-full-paths && cp src/signal-bindings/compiled.js dist/signal-bindings/compiled.js && cp src/signal-bindings/compiled.d.ts dist/signal-bindings/compiled.d.ts",
85
85
  "protobuf": "pbjs --target static-module --wrap es6 --out src/signal-bindings/compiled.js src/signal-bindings/signalservice.proto && pbts --out src/signal-bindings/compiled.d.ts src/signal-bindings/compiled.js --force-long"
86
86
  },
87
87
  "peerDependencies": {
@@ -96,4 +96,4 @@
96
96
  "protobufjs-cli": "^1.1.2",
97
97
  "tsc-alias": "^1.8.10"
98
98
  }
99
- }
99
+ }