@lazycatcloud/sdk 0.1.26 → 0.1.29

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.
Files changed (95) hide show
  1. package/dist/common/box.d.ts +5 -10
  2. package/dist/common/box.d.ts.map +1 -1
  3. package/dist/common/box.js +4 -10
  4. package/dist/common/box.js.map +1 -1
  5. package/dist/common/browseronly.d.ts +3 -8
  6. package/dist/common/browseronly.d.ts.map +1 -1
  7. package/dist/common/browseronly.js +4 -10
  8. package/dist/common/browseronly.js.map +1 -1
  9. package/dist/common/end_device.d.ts +8 -12
  10. package/dist/common/end_device.d.ts.map +1 -1
  11. package/dist/common/end_device.js +4 -10
  12. package/dist/common/end_device.js.map +1 -1
  13. package/dist/common/gateway.d.ts +5 -10
  14. package/dist/common/gateway.d.ts.map +1 -1
  15. package/dist/common/gateway.js +4 -10
  16. package/dist/common/gateway.js.map +1 -1
  17. package/dist/common/peripheral_device.d.ts +8 -13
  18. package/dist/common/peripheral_device.d.ts.map +1 -1
  19. package/dist/common/peripheral_device.js +4 -10
  20. package/dist/common/peripheral_device.js.map +1 -1
  21. package/dist/common/permissions.d.ts +94 -0
  22. package/dist/common/permissions.d.ts.map +1 -0
  23. package/dist/common/permissions.js +247 -0
  24. package/dist/common/permissions.js.map +1 -0
  25. package/dist/common/security_context.d.ts +8 -13
  26. package/dist/common/security_context.d.ts.map +1 -1
  27. package/dist/common/security_context.js +4 -10
  28. package/dist/common/security_context.js.map +1 -1
  29. package/dist/common/users.d.ts +11 -16
  30. package/dist/common/users.d.ts.map +1 -1
  31. package/dist/common/users.js +4 -10
  32. package/dist/common/users.js.map +1 -1
  33. package/dist/google/protobuf/descriptor.d.ts +1643 -1643
  34. package/dist/google/protobuf/descriptor.d.ts.map +1 -1
  35. package/dist/google/protobuf/descriptor.js +14 -20
  36. package/dist/google/protobuf/descriptor.js.map +1 -1
  37. package/dist/google/protobuf/empty.d.ts +1 -1
  38. package/dist/google/protobuf/empty.d.ts.map +1 -1
  39. package/dist/google/protobuf/timestamp.d.ts +1 -1
  40. package/dist/google/protobuf/timestamp.d.ts.map +1 -1
  41. package/dist/google/protobuf/timestamp.js.map +1 -1
  42. package/dist/localdevice/clipboard.d.ts +4 -9
  43. package/dist/localdevice/clipboard.d.ts.map +1 -1
  44. package/dist/localdevice/clipboard.js +18 -30
  45. package/dist/localdevice/clipboard.js.map +1 -1
  46. package/dist/localdevice/device.d.ts +1 -6
  47. package/dist/localdevice/device.d.ts.map +1 -1
  48. package/dist/localdevice/device.js +4 -10
  49. package/dist/localdevice/device.js.map +1 -1
  50. package/dist/localdevice/dialog.d.ts +5 -10
  51. package/dist/localdevice/dialog.d.ts.map +1 -1
  52. package/dist/localdevice/dialog.js +4 -10
  53. package/dist/localdevice/dialog.js.map +1 -1
  54. package/dist/localdevice/network.d.ts +1 -6
  55. package/dist/localdevice/network.d.ts.map +1 -1
  56. package/dist/localdevice/network.js +4 -10
  57. package/dist/localdevice/network.js.map +1 -1
  58. package/dist/localdevice/photo.d.ts +18 -23
  59. package/dist/localdevice/photo.d.ts.map +1 -1
  60. package/dist/localdevice/photo.js +4 -10
  61. package/dist/localdevice/photo.js.map +1 -1
  62. package/dist/package.json +1 -1
  63. package/dist/sys/OS_snapshot.d.ts +19 -24
  64. package/dist/sys/OS_snapshot.d.ts.map +1 -1
  65. package/dist/sys/OS_snapshot.js +4 -10
  66. package/dist/sys/OS_snapshot.js.map +1 -1
  67. package/dist/sys/OS_upgrader.d.ts +6 -11
  68. package/dist/sys/OS_upgrader.d.ts.map +1 -1
  69. package/dist/sys/OS_upgrader.js +4 -10
  70. package/dist/sys/OS_upgrader.js.map +1 -1
  71. package/dist/sys/hc-core/hc-core.d.ts +28 -33
  72. package/dist/sys/hc-core/hc-core.d.ts.map +1 -1
  73. package/dist/sys/hc-core/hc-core.js +18 -30
  74. package/dist/sys/hc-core/hc-core.js.map +1 -1
  75. package/dist/sys/ingress.d.ts +10 -15
  76. package/dist/sys/ingress.d.ts.map +1 -1
  77. package/dist/sys/ingress.js +4 -10
  78. package/dist/sys/ingress.js.map +1 -1
  79. package/dist/sys/network_manager.d.ts +298 -0
  80. package/dist/sys/network_manager.d.ts.map +1 -0
  81. package/dist/sys/network_manager.js +750 -0
  82. package/dist/sys/network_manager.js.map +1 -0
  83. package/dist/sys/package_manager.d.ts +25 -30
  84. package/dist/sys/package_manager.d.ts.map +1 -1
  85. package/dist/sys/package_manager.js +4 -10
  86. package/dist/sys/package_manager.js.map +1 -1
  87. package/dist/sys/portal-server/portal-server.d.ts +53 -49
  88. package/dist/sys/portal-server/portal-server.d.ts.map +1 -1
  89. package/dist/sys/portal-server/portal-server.js +59 -64
  90. package/dist/sys/portal-server/portal-server.js.map +1 -1
  91. package/dist/sys/snapd.d.ts +11 -16
  92. package/dist/sys/snapd.d.ts.map +1 -1
  93. package/dist/sys/snapd.js +4 -10
  94. package/dist/sys/snapd.js.map +1 -1
  95. package/package.json +1 -1
@@ -3,8 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.HPortalSysCreateUserDesc = exports.HPortalSysDeleteUserDesc = exports.HPortalSysResetPasswordDesc = exports.HPortalSysChangeRoleDesc = exports.HPortalSysQueryRoleDesc = exports.HPortalSysListUsersDesc = exports.HPortalSysPairDevicesDesc = exports.HPortalSysFreeVirtualExternalIPDesc = exports.HPortalSysAllocVirtualExternalIPDesc = exports.HPortalSysGetAppCertDesc = exports.HPortalSysGetDomainCertDesc = exports.HPortalSysQueryBoxInfoDesc = exports.HPortalSysQueryDeviceByIDDesc = exports.HPortalSysListDevicesDesc = exports.HPortalSysQueryLoginDesc = exports.HPortalSysDesc = exports.HPortalSysClientImpl = exports.LogoutRequest = exports.ForceResetPasswordRequest = exports.CreateUserRequest = exports.DeleteUserRequest = exports.ResetPasswordRequest = exports.QueryRoleReply = exports.ChangeRoleReqeust = exports.UserID = exports.ListDeviceReply = exports.ListDeviceRequest = exports.Device = exports.DomainCertReply = exports.DomainCertRequest = exports.BoxInfo = exports.PeerID = exports.LoginInfo = exports.AuthToken = exports.AppCertReply = exports.AppCertRequest = exports.FreeVEIPReply = exports.FreeVEIPRequest = exports.AllocVEIPReply = exports.AllocVEIPRequest = exports.PairDevicesRequest = exports.ListUsersReply = exports.UserInvitation = exports.GenUserInvitationRequest = exports.logoutRequest_ReasonToJSON = exports.logoutRequest_ReasonFromJSON = exports.LogoutRequest_Reason = exports.roleToJSON = exports.roleFromJSON = exports.Role = void 0;
7
- exports.GrpcWebError = exports.GrpcWebImpl = exports.HPortalSysLogoutDesc = exports.HPortalSysGenUserInvitationDesc = exports.HPortalSysForceResetPasswordDesc = void 0;
6
+ exports.HPortalSysCreateUserDesc = exports.HPortalSysDeleteUserDesc = exports.HPortalSysResetPasswordDesc = exports.HPortalSysChangeRoleDesc = exports.HPortalSysQueryRoleDesc = exports.HPortalSysListUsersDesc = exports.HPortalSysPairDevicesDesc = exports.HPortalSysFreeVirtualExternalIPDesc = exports.HPortalSysAllocVirtualExternalIPDesc = exports.HPortalSysGetAppCertDesc = exports.HPortalSysGetDomainCertDesc = exports.HPortalSysQueryBoxInfoDesc = exports.HPortalSysQueryDeviceByIDDesc = exports.HPortalSysListDevicesDesc = exports.HPortalSysQueryLoginDesc = exports.HPortalSysDesc = exports.HPortalSysClientImpl = exports.LogoutRequest = exports.ForceResetPasswordRequest = exports.CreateUserRequest = exports.DeleteUserRequest = exports.ResetPasswordRequest = exports.QueryRoleReply = exports.ChangeRoleReqeust = exports.UserID = exports.ListDeviceReply = exports.ListDeviceRequest = exports.Device = exports.DomainCertReply = exports.DomainCertRequest = exports.BoxInfo = exports.DeviceID = exports.LoginInfo = exports.AuthToken = exports.AppCertReply = exports.AppCertRequest = exports.FreeVEIPReply = exports.FreeVEIPRequest = exports.AllocVEIPReply = exports.AllocVEIPRequest = exports.PairDevicesRequest = exports.ListUsersReply = exports.UserInvitation = exports.GenUserInvitationRequest = exports.logoutRequest_ReasonToJSON = exports.logoutRequest_ReasonFromJSON = exports.LogoutRequest_Reason = exports.roleToJSON = exports.roleFromJSON = exports.Role = void 0;
7
+ exports.GrpcWebImpl = exports.HPortalSysLogoutDesc = exports.HPortalSysGenUserInvitationDesc = exports.HPortalSysForceResetPasswordDesc = void 0;
8
8
  /* eslint-disable */
9
9
  const grpc_web_1 = require("@improbable-eng/grpc-web");
10
10
  const empty_1 = require("../../google/protobuf/empty");
@@ -48,18 +48,18 @@ function roleToJSON(object) {
48
48
  exports.roleToJSON = roleToJSON;
49
49
  var LogoutRequest_Reason;
50
50
  (function (LogoutRequest_Reason) {
51
- LogoutRequest_Reason[LogoutRequest_Reason["Logout"] = 0] = "Logout";
52
- LogoutRequest_Reason[LogoutRequest_Reason["ResetPassword"] = 1] = "ResetPassword";
51
+ LogoutRequest_Reason[LogoutRequest_Reason["LogoutByDeleting"] = 0] = "LogoutByDeleting";
52
+ LogoutRequest_Reason[LogoutRequest_Reason["LogoutByUser"] = 1] = "LogoutByUser";
53
53
  LogoutRequest_Reason[LogoutRequest_Reason["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
54
54
  })(LogoutRequest_Reason = exports.LogoutRequest_Reason || (exports.LogoutRequest_Reason = {}));
55
55
  function logoutRequest_ReasonFromJSON(object) {
56
56
  switch (object) {
57
57
  case 0:
58
- case "Logout":
59
- return LogoutRequest_Reason.Logout;
58
+ case "LogoutByDeleting":
59
+ return LogoutRequest_Reason.LogoutByDeleting;
60
60
  case 1:
61
- case "ResetPassword":
62
- return LogoutRequest_Reason.ResetPassword;
61
+ case "LogoutByUser":
62
+ return LogoutRequest_Reason.LogoutByUser;
63
63
  case -1:
64
64
  case "UNRECOGNIZED":
65
65
  default:
@@ -69,10 +69,10 @@ function logoutRequest_ReasonFromJSON(object) {
69
69
  exports.logoutRequest_ReasonFromJSON = logoutRequest_ReasonFromJSON;
70
70
  function logoutRequest_ReasonToJSON(object) {
71
71
  switch (object) {
72
- case LogoutRequest_Reason.Logout:
73
- return "Logout";
74
- case LogoutRequest_Reason.ResetPassword:
75
- return "ResetPassword";
72
+ case LogoutRequest_Reason.LogoutByDeleting:
73
+ return "LogoutByDeleting";
74
+ case LogoutRequest_Reason.LogoutByUser:
75
+ return "LogoutByUser";
76
76
  case LogoutRequest_Reason.UNRECOGNIZED:
77
77
  default:
78
78
  return "UNRECOGNIZED";
@@ -795,10 +795,10 @@ exports.LoginInfo = {
795
795
  return message;
796
796
  },
797
797
  };
798
- function createBasePeerID() {
798
+ function createBaseDeviceID() {
799
799
  return { id: "" };
800
800
  }
801
- exports.PeerID = {
801
+ exports.DeviceID = {
802
802
  encode(message, writer = minimal_1.default.Writer.create()) {
803
803
  if (message.id !== "") {
804
804
  writer.uint32(10).string(message.id);
@@ -808,7 +808,7 @@ exports.PeerID = {
808
808
  decode(input, length) {
809
809
  const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
810
810
  let end = length === undefined ? reader.len : reader.pos + length;
811
- const message = createBasePeerID();
811
+ const message = createBaseDeviceID();
812
812
  while (reader.pos < end) {
813
813
  const tag = reader.uint32();
814
814
  switch (tag >>> 3) {
@@ -834,7 +834,7 @@ exports.PeerID = {
834
834
  },
835
835
  fromPartial(object) {
836
836
  var _a;
837
- const message = createBasePeerID();
837
+ const message = createBaseDeviceID();
838
838
  message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
839
839
  return message;
840
840
  },
@@ -1059,6 +1059,7 @@ exports.DomainCertReply = {
1059
1059
  };
1060
1060
  function createBaseDevice() {
1061
1061
  return {
1062
+ udid: "",
1062
1063
  peerId: "",
1063
1064
  isOnline: false,
1064
1065
  deviceApiUrl: "",
@@ -1069,6 +1070,9 @@ function createBaseDevice() {
1069
1070
  }
1070
1071
  exports.Device = {
1071
1072
  encode(message, writer = minimal_1.default.Writer.create()) {
1073
+ if (message.udid !== "") {
1074
+ writer.uint32(58).string(message.udid);
1075
+ }
1072
1076
  if (message.peerId !== "") {
1073
1077
  writer.uint32(10).string(message.peerId);
1074
1078
  }
@@ -1096,6 +1100,9 @@ exports.Device = {
1096
1100
  while (reader.pos < end) {
1097
1101
  const tag = reader.uint32();
1098
1102
  switch (tag >>> 3) {
1103
+ case 7:
1104
+ message.udid = reader.string();
1105
+ break;
1099
1106
  case 1:
1100
1107
  message.peerId = reader.string();
1101
1108
  break;
@@ -1123,6 +1130,7 @@ exports.Device = {
1123
1130
  },
1124
1131
  fromJSON(object) {
1125
1132
  return {
1133
+ udid: isSet(object.udid) ? String(object.udid) : "",
1126
1134
  peerId: isSet(object.peerId) ? String(object.peerId) : "",
1127
1135
  isOnline: isSet(object.isOnline) ? Boolean(object.isOnline) : false,
1128
1136
  deviceApiUrl: isSet(object.deviceApiUrl)
@@ -1137,6 +1145,7 @@ exports.Device = {
1137
1145
  },
1138
1146
  toJSON(message) {
1139
1147
  const obj = {};
1148
+ message.udid !== undefined && (obj.udid = message.udid);
1140
1149
  message.peerId !== undefined && (obj.peerId = message.peerId);
1141
1150
  message.isOnline !== undefined && (obj.isOnline = message.isOnline);
1142
1151
  message.deviceApiUrl !== undefined &&
@@ -1148,14 +1157,15 @@ exports.Device = {
1148
1157
  return obj;
1149
1158
  },
1150
1159
  fromPartial(object) {
1151
- var _a, _b, _c, _d, _e, _f;
1160
+ var _a, _b, _c, _d, _e, _f, _g;
1152
1161
  const message = createBaseDevice();
1153
- message.peerId = (_a = object.peerId) !== null && _a !== void 0 ? _a : "";
1154
- message.isOnline = (_b = object.isOnline) !== null && _b !== void 0 ? _b : false;
1155
- message.deviceApiUrl = (_c = object.deviceApiUrl) !== null && _c !== void 0 ? _c : "";
1156
- message.name = (_d = object.name) !== null && _d !== void 0 ? _d : "";
1157
- message.model = (_e = object.model) !== null && _e !== void 0 ? _e : "";
1158
- message.bindingTime = (_f = object.bindingTime) !== null && _f !== void 0 ? _f : undefined;
1162
+ message.udid = (_a = object.udid) !== null && _a !== void 0 ? _a : "";
1163
+ message.peerId = (_b = object.peerId) !== null && _b !== void 0 ? _b : "";
1164
+ message.isOnline = (_c = object.isOnline) !== null && _c !== void 0 ? _c : false;
1165
+ message.deviceApiUrl = (_d = object.deviceApiUrl) !== null && _d !== void 0 ? _d : "";
1166
+ message.name = (_e = object.name) !== null && _e !== void 0 ? _e : "";
1167
+ message.model = (_f = object.model) !== null && _f !== void 0 ? _f : "";
1168
+ message.bindingTime = (_g = object.bindingTime) !== null && _g !== void 0 ? _g : undefined;
1159
1169
  return message;
1160
1170
  },
1161
1171
  };
@@ -1629,15 +1639,15 @@ exports.ForceResetPasswordRequest = {
1629
1639
  },
1630
1640
  };
1631
1641
  function createBaseLogoutRequest() {
1632
- return { uid: "", uniqueDeivceId: "", reason: 0 };
1642
+ return { uid: "", udid: "", reason: 0 };
1633
1643
  }
1634
1644
  exports.LogoutRequest = {
1635
1645
  encode(message, writer = minimal_1.default.Writer.create()) {
1636
1646
  if (message.uid !== "") {
1637
1647
  writer.uint32(10).string(message.uid);
1638
1648
  }
1639
- if (message.uniqueDeivceId !== "") {
1640
- writer.uint32(18).string(message.uniqueDeivceId);
1649
+ if (message.udid !== "") {
1650
+ writer.uint32(18).string(message.udid);
1641
1651
  }
1642
1652
  if (message.reason !== 0) {
1643
1653
  writer.uint32(24).int32(message.reason);
@@ -1655,7 +1665,7 @@ exports.LogoutRequest = {
1655
1665
  message.uid = reader.string();
1656
1666
  break;
1657
1667
  case 2:
1658
- message.uniqueDeivceId = reader.string();
1668
+ message.udid = reader.string();
1659
1669
  break;
1660
1670
  case 3:
1661
1671
  message.reason = reader.int32();
@@ -1670,9 +1680,7 @@ exports.LogoutRequest = {
1670
1680
  fromJSON(object) {
1671
1681
  return {
1672
1682
  uid: isSet(object.uid) ? String(object.uid) : "",
1673
- uniqueDeivceId: isSet(object.uniqueDeivceId)
1674
- ? String(object.uniqueDeivceId)
1675
- : "",
1683
+ udid: isSet(object.udid) ? String(object.udid) : "",
1676
1684
  reason: isSet(object.reason)
1677
1685
  ? logoutRequest_ReasonFromJSON(object.reason)
1678
1686
  : 0,
@@ -1681,8 +1689,7 @@ exports.LogoutRequest = {
1681
1689
  toJSON(message) {
1682
1690
  const obj = {};
1683
1691
  message.uid !== undefined && (obj.uid = message.uid);
1684
- message.uniqueDeivceId !== undefined &&
1685
- (obj.uniqueDeivceId = message.uniqueDeivceId);
1692
+ message.udid !== undefined && (obj.udid = message.udid);
1686
1693
  message.reason !== undefined &&
1687
1694
  (obj.reason = logoutRequest_ReasonToJSON(message.reason));
1688
1695
  return obj;
@@ -1691,7 +1698,7 @@ exports.LogoutRequest = {
1691
1698
  var _a, _b, _c;
1692
1699
  const message = createBaseLogoutRequest();
1693
1700
  message.uid = (_a = object.uid) !== null && _a !== void 0 ? _a : "";
1694
- message.uniqueDeivceId = (_b = object.uniqueDeivceId) !== null && _b !== void 0 ? _b : "";
1701
+ message.udid = (_b = object.udid) !== null && _b !== void 0 ? _b : "";
1695
1702
  message.reason = (_c = object.reason) !== null && _c !== void 0 ? _c : 0;
1696
1703
  return message;
1697
1704
  },
@@ -1725,7 +1732,7 @@ class HPortalSysClientImpl {
1725
1732
  return this.rpc.unary(exports.HPortalSysListDevicesDesc, exports.ListDeviceRequest.fromPartial(request), metadata);
1726
1733
  }
1727
1734
  QueryDeviceByID(request, metadata) {
1728
- return this.rpc.unary(exports.HPortalSysQueryDeviceByIDDesc, exports.PeerID.fromPartial(request), metadata);
1735
+ return this.rpc.unary(exports.HPortalSysQueryDeviceByIDDesc, exports.DeviceID.fromPartial(request), metadata);
1729
1736
  }
1730
1737
  QueryBoxInfo(request, metadata) {
1731
1738
  return this.rpc.unary(exports.HPortalSysQueryBoxInfoDesc, empty_1.Empty.fromPartial(request), metadata);
@@ -1820,7 +1827,7 @@ exports.HPortalSysQueryDeviceByIDDesc = {
1820
1827
  responseStream: false,
1821
1828
  requestType: {
1822
1829
  serializeBinary() {
1823
- return exports.PeerID.encode(this).finish();
1830
+ return exports.DeviceID.encode(this).finish();
1824
1831
  },
1825
1832
  },
1826
1833
  responseType: {
@@ -2124,7 +2131,9 @@ class GrpcWebImpl {
2124
2131
  resolve(response.message);
2125
2132
  }
2126
2133
  else {
2127
- const err = new GrpcWebError(response.statusMessage, response.status, response.trailers);
2134
+ const err = new Error(response.statusMessage);
2135
+ err.code = response.status;
2136
+ err.metadata = response.trailers;
2128
2137
  reject(err);
2129
2138
  }
2130
2139
  },
@@ -2181,30 +2190,24 @@ var globalThis = (() => {
2181
2190
  return global;
2182
2191
  throw "Unable to locate global object";
2183
2192
  })();
2193
+ const atob = globalThis.atob ||
2194
+ ((b64) => globalThis.Buffer.from(b64, "base64").toString("binary"));
2184
2195
  function bytesFromBase64(b64) {
2185
- if (globalThis.Buffer) {
2186
- return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
2187
- }
2188
- else {
2189
- const bin = globalThis.atob(b64);
2190
- const arr = new Uint8Array(bin.length);
2191
- for (let i = 0; i < bin.length; ++i) {
2192
- arr[i] = bin.charCodeAt(i);
2193
- }
2194
- return arr;
2196
+ const bin = atob(b64);
2197
+ const arr = new Uint8Array(bin.length);
2198
+ for (let i = 0; i < bin.length; ++i) {
2199
+ arr[i] = bin.charCodeAt(i);
2195
2200
  }
2201
+ return arr;
2196
2202
  }
2203
+ const btoa = globalThis.btoa ||
2204
+ ((bin) => globalThis.Buffer.from(bin, "binary").toString("base64"));
2197
2205
  function base64FromBytes(arr) {
2198
- if (globalThis.Buffer) {
2199
- return globalThis.Buffer.from(arr).toString("base64");
2200
- }
2201
- else {
2202
- const bin = [];
2203
- arr.forEach((byte) => {
2204
- bin.push(String.fromCharCode(byte));
2205
- });
2206
- return globalThis.btoa(bin.join(""));
2207
- }
2206
+ const bin = [];
2207
+ arr.forEach((byte) => {
2208
+ bin.push(String.fromCharCode(byte));
2209
+ });
2210
+ return btoa(bin.join(""));
2208
2211
  }
2209
2212
  function toTimestamp(date) {
2210
2213
  const seconds = date.getTime() / 1000;
@@ -2230,12 +2233,4 @@ function fromJsonTimestamp(o) {
2230
2233
  function isSet(value) {
2231
2234
  return value !== null && value !== undefined;
2232
2235
  }
2233
- class GrpcWebError extends Error {
2234
- constructor(message, code, metadata) {
2235
- super(message);
2236
- this.code = code;
2237
- this.metadata = metadata;
2238
- }
2239
- }
2240
- exports.GrpcWebError = GrpcWebError;
2241
2236
  //# sourceMappingURL=portal-server.js.map