@vicinae/api 0.14.5 → 0.15.0

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.
@@ -1,6 +1,8 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
2
  export declare const protobufPackage = "proto.ext.daemon";
3
3
  export interface UrlResponse {
4
+ /** empty string if no error */
5
+ error: string;
4
6
  }
5
7
  export interface UrlRequest {
6
8
  url: string;
@@ -10,10 +10,13 @@ exports.Response = exports.Request = exports.DmenuResponse = exports.DmenuReques
10
10
  const wire_1 = require("@bufbuild/protobuf/wire");
11
11
  exports.protobufPackage = "proto.ext.daemon";
12
12
  function createBaseUrlResponse() {
13
- return {};
13
+ return { error: "" };
14
14
  }
15
15
  exports.UrlResponse = {
16
- encode(_, writer = new wire_1.BinaryWriter()) {
16
+ encode(message, writer = new wire_1.BinaryWriter()) {
17
+ if (message.error !== "") {
18
+ writer.uint32(10).string(message.error);
19
+ }
17
20
  return writer;
18
21
  },
19
22
  decode(input, length) {
@@ -23,6 +26,13 @@ exports.UrlResponse = {
23
26
  while (reader.pos < end) {
24
27
  const tag = reader.uint32();
25
28
  switch (tag >>> 3) {
29
+ case 1: {
30
+ if (tag !== 10) {
31
+ break;
32
+ }
33
+ message.error = reader.string();
34
+ continue;
35
+ }
26
36
  }
27
37
  if ((tag & 7) === 4 || tag === 0) {
28
38
  break;
@@ -31,18 +41,22 @@ exports.UrlResponse = {
31
41
  }
32
42
  return message;
33
43
  },
34
- fromJSON(_) {
35
- return {};
44
+ fromJSON(object) {
45
+ return { error: isSet(object.error) ? globalThis.String(object.error) : "" };
36
46
  },
37
- toJSON(_) {
47
+ toJSON(message) {
38
48
  const obj = {};
49
+ if (message.error !== "") {
50
+ obj.error = message.error;
51
+ }
39
52
  return obj;
40
53
  },
41
54
  create(base) {
42
55
  return exports.UrlResponse.fromPartial(base ?? {});
43
56
  },
44
- fromPartial(_) {
57
+ fromPartial(object) {
45
58
  const message = createBaseUrlResponse();
59
+ message.error = object.error ?? "";
46
60
  return message;
47
61
  },
48
62
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vicinae/api",
3
- "version": "0.14.5",
3
+ "version": "0.15.0",
4
4
  "description": "TypeScript SDK to build Vicinae extensions",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",