@vicinae/api 0.14.4 → 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.
@@ -427,6 +427,7 @@ export declare enum Icon {
427
427
  XMarkCircle = "x-mark-circle",
428
428
  XMarkCircleFilled = "x-mark-circle-filled",
429
429
  XMarkTopRightSquare = "x-mark-top-right-square",
430
+ Zendesk = "zendesk",
430
431
  /** @deprecated Use {@link Icon.ArrowClockwise} instead. */
431
432
  TwoArrowsClockwise = "arrow-clockwise",
432
433
  /** @deprecated Use {@link Icon.EyeDisabled} instead. */
package/dist/api/icon.js CHANGED
@@ -431,6 +431,7 @@ var Icon;
431
431
  Icon["XMarkCircle"] = "x-mark-circle";
432
432
  Icon["XMarkCircleFilled"] = "x-mark-circle-filled";
433
433
  Icon["XMarkTopRightSquare"] = "x-mark-top-right-square";
434
+ Icon["Zendesk"] = "zendesk";
434
435
  /** @deprecated Use {@link Icon.ArrowClockwise} instead. */
435
436
  Icon["TwoArrowsClockwise"] = "arrow-clockwise";
436
437
  /** @deprecated Use {@link Icon.EyeDisabled} instead. */
@@ -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.4",
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",