@lansweeper/install-api-grpc 0.0.6 → 0.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.
@@ -1 +1 @@
1
- {"file":[{"name":"proto/install.proto","package":"lansweeper.install.v1","messageType":[{"name":"SetPublicKeyRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"public_key","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"publicKey"},{"name":"signed_identity","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"signedIdentity"}]},{"name":"SetPublicKeyResponse"},{"name":"SetHubCertificateRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"hub_certificate","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"hubCertificate"}]},{"name":"SetHubCertificateResponse"},{"name":"RemoveHubCertificateRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"}]},{"name":"RemoveHubCertificateResponse"},{"name":"GetHubCertificatesRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_keys","number":2,"label":"LABEL_REPEATED","type":"TYPE_STRING","jsonName":"installKeys"}]},{"name":"GetHubCertificatesResponse","field":[{"name":"hub_certificates","number":1,"label":"LABEL_REPEATED","type":"TYPE_MESSAGE","typeName":".lansweeper.install.v1.HubCertificateInstallation","jsonName":"hubCertificates"}]},{"name":"HubCertificateInstallation","field":[{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"hub_certificate","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"hubCertificate"}]}],"service":[{"name":"InstallService","method":[{"name":"GetHubCertificates","inputType":".lansweeper.install.v1.GetHubCertificatesRequest","outputType":".lansweeper.install.v1.GetHubCertificatesResponse","options":{}},{"name":"SetPublicKey","inputType":".lansweeper.install.v1.SetPublicKeyRequest","outputType":".lansweeper.install.v1.SetPublicKeyResponse","options":{}},{"name":"SetHubCertificate","inputType":".lansweeper.install.v1.SetHubCertificateRequest","outputType":".lansweeper.install.v1.SetHubCertificateResponse","options":{}},{"name":"RemoveHubCertificate","inputType":".lansweeper.install.v1.RemoveHubCertificateRequest","outputType":".lansweeper.install.v1.RemoveHubCertificateResponse","options":{}}]}],"options":{"goPackage":"./generated-go"},"sourceCodeInfo":{"location":[{"span":[0,0,52,1]},{"path":[12],"span":[0,0,18]},{"path":[2],"span":[2,0,30]},{"path":[8],"span":[4,0,37]},{"path":[8,11],"span":[4,0,37]},{"path":[4,0],"span":[6,0,11,1]},{"path":[4,0,1],"span":[6,8,27]},{"path":[4,0,2,0],"span":[7,2,21]},{"path":[4,0,2,0,5],"span":[7,2,8]},{"path":[4,0,2,0,1],"span":[7,9,16]},{"path":[4,0,2,0,3],"span":[7,19,20]},{"path":[4,0,2,1],"span":[8,2,25]},{"path":[4,0,2,1,5],"span":[8,2,8]},{"path":[4,0,2,1,1],"span":[8,9,20]},{"path":[4,0,2,1,3],"span":[8,23,24]},{"path":[4,0,2,2],"span":[9,2,24]},{"path":[4,0,2,2,5],"span":[9,2,8]},{"path":[4,0,2,2,1],"span":[9,9,19]},{"path":[4,0,2,2,3],"span":[9,22,23]},{"path":[4,0,2,3],"span":[10,2,29]},{"path":[4,0,2,3,5],"span":[10,2,8]},{"path":[4,0,2,3,1],"span":[10,9,24]},{"path":[4,0,2,3,3],"span":[10,27,28]},{"path":[4,1],"span":[13,0,14,1]},{"path":[4,1,1],"span":[13,8,28]},{"path":[4,2],"span":[16,0,20,1]},{"path":[4,2,1],"span":[16,8,32]},{"path":[4,2,2,0],"span":[17,2,21]},{"path":[4,2,2,0,5],"span":[17,2,8]},{"path":[4,2,2,0,1],"span":[17,9,16]},{"path":[4,2,2,0,3],"span":[17,19,20]},{"path":[4,2,2,1],"span":[18,2,25]},{"path":[4,2,2,1,5],"span":[18,2,8]},{"path":[4,2,2,1,1],"span":[18,9,20]},{"path":[4,2,2,1,3],"span":[18,23,24]},{"path":[4,2,2,2],"span":[19,2,29]},{"path":[4,2,2,2,5],"span":[19,2,8]},{"path":[4,2,2,2,1],"span":[19,9,24]},{"path":[4,2,2,2,3],"span":[19,27,28]},{"path":[4,3],"span":[22,0,23,1]},{"path":[4,3,1],"span":[22,8,33]},{"path":[4,4],"span":[25,0,28,1]},{"path":[4,4,1],"span":[25,8,35]},{"path":[4,4,2,0],"span":[26,2,21]},{"path":[4,4,2,0,5],"span":[26,2,8]},{"path":[4,4,2,0,1],"span":[26,9,16]},{"path":[4,4,2,0,3],"span":[26,19,20]},{"path":[4,4,2,1],"span":[27,2,25]},{"path":[4,4,2,1,5],"span":[27,2,8]},{"path":[4,4,2,1,1],"span":[27,9,20]},{"path":[4,4,2,1,3],"span":[27,23,24]},{"path":[4,5],"span":[30,0,31,1]},{"path":[4,5,1],"span":[30,8,36]},{"path":[4,6],"span":[33,0,36,1]},{"path":[4,6,1],"span":[33,8,33]},{"path":[4,6,2,0],"span":[34,2,21]},{"path":[4,6,2,0,5],"span":[34,2,8]},{"path":[4,6,2,0,1],"span":[34,9,16]},{"path":[4,6,2,0,3],"span":[34,19,20]},{"path":[4,6,2,1],"span":[35,2,35]},{"path":[4,6,2,1,4],"span":[35,2,10]},{"path":[4,6,2,1,5],"span":[35,11,17]},{"path":[4,6,2,1,1],"span":[35,18,30]},{"path":[4,6,2,1,3],"span":[35,33,34]},{"path":[4,7],"span":[38,0,40,1]},{"path":[4,7,1],"span":[38,8,34]},{"path":[4,7,2,0],"span":[39,2,59]},{"path":[4,7,2,0,4],"span":[39,2,10]},{"path":[4,7,2,0,6],"span":[39,11,37]},{"path":[4,7,2,0,1],"span":[39,38,54]},{"path":[4,7,2,0,3],"span":[39,57,58]},{"path":[4,8],"span":[42,0,45,1]},{"path":[4,8,1],"span":[42,8,34]},{"path":[4,8,2,0],"span":[43,2,25]},{"path":[4,8,2,0,5],"span":[43,2,8]},{"path":[4,8,2,0,1],"span":[43,9,20]},{"path":[4,8,2,0,3],"span":[43,23,24]},{"path":[4,8,2,1],"span":[44,2,29]},{"path":[4,8,2,1,5],"span":[44,2,8]},{"path":[4,8,2,1,1],"span":[44,9,24]},{"path":[4,8,2,1,3],"span":[44,27,28]},{"path":[6,0],"span":[47,0,52,1]},{"path":[6,0,1],"span":[47,8,22]},{"path":[6,0,2,0],"span":[48,2,91]},{"path":[6,0,2,0,1],"span":[48,6,24]},{"path":[6,0,2,0,2],"span":[48,25,50]},{"path":[6,0,2,0,3],"span":[48,61,87]},{"path":[6,0,2,1],"span":[49,2,73]},{"path":[6,0,2,1,1],"span":[49,6,18]},{"path":[6,0,2,1,2],"span":[49,19,38]},{"path":[6,0,2,1,3],"span":[49,49,69]},{"path":[6,0,2,2],"span":[50,2,88]},{"path":[6,0,2,2,1],"span":[50,6,23]},{"path":[6,0,2,2,2],"span":[50,24,48]},{"path":[6,0,2,2,3],"span":[50,59,84]},{"path":[6,0,2,3],"span":[51,2,97]},{"path":[6,0,2,3,1],"span":[51,6,26]},{"path":[6,0,2,3,2],"span":[51,27,54]},{"path":[6,0,2,3,3],"span":[51,65,93]}]},"syntax":"proto3","bufExtension":{"isImport":false,"isSyntaxUnspecified":false}}]}
1
+ {"file":[{"name":"google/protobuf/timestamp.proto","package":"google.protobuf","messageType":[{"name":"Timestamp","field":[{"name":"seconds","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_INT64","jsonName":"seconds"},{"name":"nanos","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_INT32","jsonName":"nanos"}]}],"options":{"javaPackage":"com.google.protobuf","javaOuterClassname":"TimestampProto","javaMultipleFiles":true,"goPackage":"google.golang.org/protobuf/types/known/timestamppb","ccEnableArenas":true,"objcClassPrefix":"GPB","csharpNamespace":"Google.Protobuf.WellKnownTypes"},"sourceCodeInfo":{"location":[{"span":[30,0,146,1]},{"path":[12],"span":[30,0,18],"leadingDetachedComments":[" Protocol Buffers - Google's data interchange format\n Copyright 2008 Google Inc. All rights reserved.\n https://developers.google.com/protocol-buffers/\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are\n met:\n\n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n * Redistributions in binary form must reproduce the above\n copyright notice, this list of conditions and the following disclaimer\n in the documentation and/or other materials provided with the\n distribution.\n * Neither the name of Google Inc. nor the names of its\n contributors may be used to endorse or promote products derived from\n this software without specific prior written permission.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"]},{"path":[2],"span":[32,0,24]},{"path":[8],"span":[34,0,59]},{"path":[8,37],"span":[34,0,59]},{"path":[8],"span":[35,0,31]},{"path":[8,31],"span":[35,0,31]},{"path":[8],"span":[36,0,73]},{"path":[8,11],"span":[36,0,73]},{"path":[8],"span":[37,0,44]},{"path":[8,1],"span":[37,0,44]},{"path":[8],"span":[38,0,47]},{"path":[8,8],"span":[38,0,47]},{"path":[8],"span":[39,0,34]},{"path":[8,10],"span":[39,0,34]},{"path":[8],"span":[40,0,33]},{"path":[8,36],"span":[40,0,33]},{"path":[4,0],"span":[135,0,146,1],"leadingComments":" A Timestamp represents a point in time independent of any time zone or local\n calendar, encoded as a count of seconds and fractions of seconds at\n nanosecond resolution. The count is relative to an epoch at UTC midnight on\n January 1, 1970, in the proleptic Gregorian calendar which extends the\n Gregorian calendar backwards to year one.\n\n All minutes are 60 seconds long. Leap seconds are \"smeared\" so that no leap\n second table is needed for interpretation, using a [24-hour linear\n smear](https://developers.google.com/time/smear).\n\n The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By\n restricting to that range, we ensure that we can convert to and from [RFC\n 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.\n\n # Examples\n\n Example 1: Compute Timestamp from POSIX `time()`.\n\n Timestamp timestamp;\n timestamp.set_seconds(time(NULL));\n timestamp.set_nanos(0);\n\n Example 2: Compute Timestamp from POSIX `gettimeofday()`.\n\n struct timeval tv;\n gettimeofday(&tv, NULL);\n\n Timestamp timestamp;\n timestamp.set_seconds(tv.tv_sec);\n timestamp.set_nanos(tv.tv_usec * 1000);\n\n Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.\n\n FILETIME ft;\n GetSystemTimeAsFileTime(&ft);\n UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;\n\n // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z\n // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.\n Timestamp timestamp;\n timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));\n timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));\n\n Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.\n\n long millis = System.currentTimeMillis();\n\n Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)\n .setNanos((int) ((millis % 1000) * 1000000)).build();\n\n\n Example 5: Compute Timestamp from Java `Instant.now()`.\n\n Instant now = Instant.now();\n\n Timestamp timestamp =\n Timestamp.newBuilder().setSeconds(now.getEpochSecond())\n .setNanos(now.getNano()).build();\n\n\n Example 6: Compute Timestamp from current time in Python.\n\n timestamp = Timestamp()\n timestamp.GetCurrentTime()\n\n # JSON Mapping\n\n In JSON format, the Timestamp type is encoded as a string in the\n [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the\n format is \"{year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z\"\n where {year} is always expressed using four digits while {month}, {day},\n {hour}, {min}, and {sec} are zero-padded to two digits each. The fractional\n seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),\n are optional. The \"Z\" suffix indicates the timezone (\"UTC\"); the timezone\n is required. A proto3 JSON serializer should always use UTC (as indicated by\n \"Z\") when printing the Timestamp type and a proto3 JSON parser should be\n able to accept both UTC and other timezones (as indicated by an offset).\n\n For example, \"2017-01-15T01:30:15.01Z\" encodes 15.01 seconds past\n 01:30 UTC on January 15, 2017.\n\n In JavaScript, one can convert a Date object to this format using the\n standard\n [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)\n method. In Python, a standard `datetime.datetime` object can be converted\n to this format using\n [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with\n the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use\n the Joda Time's [`ISODateTimeFormat.dateTime()`](\n http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D\n ) to obtain a formatter capable of generating timestamps in this format.\n\n\n"},{"path":[4,0,1],"span":[135,8,17]},{"path":[4,0,2,0],"span":[139,2,20],"leadingComments":" Represents seconds of UTC time since Unix epoch\n 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to\n 9999-12-31T23:59:59Z inclusive.\n"},{"path":[4,0,2,0,5],"span":[139,2,7]},{"path":[4,0,2,0,1],"span":[139,8,15]},{"path":[4,0,2,0,3],"span":[139,18,19]},{"path":[4,0,2,1],"span":[145,2,18],"leadingComments":" Non-negative fractions of a second at nanosecond resolution. Negative\n second values with fractions must still have non-negative nanos values\n that count forward in time. Must be from 0 to 999,999,999\n inclusive.\n"},{"path":[4,0,2,1,5],"span":[145,2,7]},{"path":[4,0,2,1,1],"span":[145,8,13]},{"path":[4,0,2,1,3],"span":[145,16,17]}]},"syntax":"proto3","bufExtension":{"isImport":true,"isSyntaxUnspecified":false}},{"name":"proto/install.proto","package":"lansweeper.install.v1","dependency":["google/protobuf/timestamp.proto"],"messageType":[{"name":"SetPublicKeyRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"public_key","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"publicKey"},{"name":"signed_identity","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"signedIdentity"}]},{"name":"SetPublicKeyResponse"},{"name":"SetHubCertificateRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"hub_certificate","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"hubCertificate"}]},{"name":"SetHubCertificateResponse"},{"name":"RemoveHubCertificateRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"}]},{"name":"RemoveHubCertificateResponse"},{"name":"GetHubCertificatesRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"install_keys","number":2,"label":"LABEL_REPEATED","type":"TYPE_STRING","jsonName":"installKeys"}]},{"name":"GetHubCertificatesResponse","field":[{"name":"hub_certificates","number":1,"label":"LABEL_REPEATED","type":"TYPE_MESSAGE","typeName":".lansweeper.install.v1.HubCertificateInstallation","jsonName":"hubCertificates"}]},{"name":"HubCertificateInstallation","field":[{"name":"install_key","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"installKey"},{"name":"hub_certificate","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"hubCertificate"}]},{"name":"Installation","field":[{"name":"id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"id"},{"name":"site_id","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"type","number":3,"label":"LABEL_OPTIONAL","type":"TYPE_ENUM","typeName":".lansweeper.install.v1.InstallType","jsonName":"type"},{"name":"state","number":4,"label":"LABEL_OPTIONAL","type":"TYPE_ENUM","typeName":".lansweeper.install.v1.InstallStateValue","jsonName":"state"},{"name":"synced_at","number":5,"label":"LABEL_OPTIONAL","type":"TYPE_MESSAGE","typeName":".google.protobuf.Timestamp","jsonName":"syncedAt"}]},{"name":"GetInstallationsBySiteRequest","field":[{"name":"site_id","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_STRING","jsonName":"siteId"},{"name":"filter","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_MESSAGE","typeName":".lansweeper.install.v1.GetInstallationsBySiteRequest.Filter","oneofIndex":0,"jsonName":"filter","proto3Optional":true}],"nestedType":[{"name":"Filter","field":[{"name":"type","number":1,"label":"LABEL_OPTIONAL","type":"TYPE_ENUM","typeName":".lansweeper.install.v1.InstallType","oneofIndex":0,"jsonName":"type","proto3Optional":true},{"name":"synced_at","number":2,"label":"LABEL_OPTIONAL","type":"TYPE_MESSAGE","typeName":".google.protobuf.Timestamp","oneofIndex":1,"jsonName":"syncedAt","proto3Optional":true}],"oneofDecl":[{"name":"_type"},{"name":"_synced_at"}]}],"oneofDecl":[{"name":"_filter"}]},{"name":"GetInstallationsBySiteResponse","field":[{"name":"installations","number":1,"label":"LABEL_REPEATED","type":"TYPE_MESSAGE","typeName":".lansweeper.install.v1.Installation","jsonName":"installations"}]}],"enumType":[{"name":"InstallType","value":[{"name":"IT","number":0},{"name":"OT","number":1},{"name":"IT_AGENT","number":2},{"name":"CLOUD","number":3},{"name":"NETWORK_DISCOVERY","number":4}]},{"name":"InstallStateValue","value":[{"name":"UNESPECIFIED","number":0},{"name":"LINKED","number":1},{"name":"UNLINKED","number":2}]}],"service":[{"name":"InstallService","method":[{"name":"GetHubCertificates","inputType":".lansweeper.install.v1.GetHubCertificatesRequest","outputType":".lansweeper.install.v1.GetHubCertificatesResponse","options":{}},{"name":"SetPublicKey","inputType":".lansweeper.install.v1.SetPublicKeyRequest","outputType":".lansweeper.install.v1.SetPublicKeyResponse","options":{}},{"name":"SetHubCertificate","inputType":".lansweeper.install.v1.SetHubCertificateRequest","outputType":".lansweeper.install.v1.SetHubCertificateResponse","options":{}},{"name":"RemoveHubCertificate","inputType":".lansweeper.install.v1.RemoveHubCertificateRequest","outputType":".lansweeper.install.v1.RemoveHubCertificateResponse","options":{}},{"name":"GetInstallationsBySite","inputType":".lansweeper.install.v1.GetInstallationsBySiteRequest","outputType":".lansweeper.install.v1.GetInstallationsBySiteResponse","options":{}}]}],"options":{"goPackage":"./generated-go"},"sourceCodeInfo":{"location":[{"span":[0,0,90,1]},{"path":[12],"span":[0,0,18]},{"path":[3,0],"span":[2,0,41]},{"path":[2],"span":[4,0,30]},{"path":[8],"span":[6,0,37]},{"path":[8,11],"span":[6,0,37]},{"path":[4,0],"span":[8,0,13,1]},{"path":[4,0,1],"span":[8,8,27]},{"path":[4,0,2,0],"span":[9,2,21]},{"path":[4,0,2,0,5],"span":[9,2,8]},{"path":[4,0,2,0,1],"span":[9,9,16]},{"path":[4,0,2,0,3],"span":[9,19,20]},{"path":[4,0,2,1],"span":[10,2,25]},{"path":[4,0,2,1,5],"span":[10,2,8]},{"path":[4,0,2,1,1],"span":[10,9,20]},{"path":[4,0,2,1,3],"span":[10,23,24]},{"path":[4,0,2,2],"span":[11,2,24]},{"path":[4,0,2,2,5],"span":[11,2,8]},{"path":[4,0,2,2,1],"span":[11,9,19]},{"path":[4,0,2,2,3],"span":[11,22,23]},{"path":[4,0,2,3],"span":[12,2,29]},{"path":[4,0,2,3,5],"span":[12,2,8]},{"path":[4,0,2,3,1],"span":[12,9,24]},{"path":[4,0,2,3,3],"span":[12,27,28]},{"path":[4,1],"span":[15,0,16,1]},{"path":[4,1,1],"span":[15,8,28]},{"path":[4,2],"span":[18,0,22,1]},{"path":[4,2,1],"span":[18,8,32]},{"path":[4,2,2,0],"span":[19,2,21]},{"path":[4,2,2,0,5],"span":[19,2,8]},{"path":[4,2,2,0,1],"span":[19,9,16]},{"path":[4,2,2,0,3],"span":[19,19,20]},{"path":[4,2,2,1],"span":[20,2,25]},{"path":[4,2,2,1,5],"span":[20,2,8]},{"path":[4,2,2,1,1],"span":[20,9,20]},{"path":[4,2,2,1,3],"span":[20,23,24]},{"path":[4,2,2,2],"span":[21,2,29]},{"path":[4,2,2,2,5],"span":[21,2,8]},{"path":[4,2,2,2,1],"span":[21,9,24]},{"path":[4,2,2,2,3],"span":[21,27,28]},{"path":[4,3],"span":[24,0,25,1]},{"path":[4,3,1],"span":[24,8,33]},{"path":[4,4],"span":[27,0,30,1]},{"path":[4,4,1],"span":[27,8,35]},{"path":[4,4,2,0],"span":[28,2,21]},{"path":[4,4,2,0,5],"span":[28,2,8]},{"path":[4,4,2,0,1],"span":[28,9,16]},{"path":[4,4,2,0,3],"span":[28,19,20]},{"path":[4,4,2,1],"span":[29,2,25]},{"path":[4,4,2,1,5],"span":[29,2,8]},{"path":[4,4,2,1,1],"span":[29,9,20]},{"path":[4,4,2,1,3],"span":[29,23,24]},{"path":[4,5],"span":[32,0,33,1]},{"path":[4,5,1],"span":[32,8,36]},{"path":[4,6],"span":[35,0,38,1]},{"path":[4,6,1],"span":[35,8,33]},{"path":[4,6,2,0],"span":[36,2,21]},{"path":[4,6,2,0,5],"span":[36,2,8]},{"path":[4,6,2,0,1],"span":[36,9,16]},{"path":[4,6,2,0,3],"span":[36,19,20]},{"path":[4,6,2,1],"span":[37,2,35]},{"path":[4,6,2,1,4],"span":[37,2,10]},{"path":[4,6,2,1,5],"span":[37,11,17]},{"path":[4,6,2,1,1],"span":[37,18,30]},{"path":[4,6,2,1,3],"span":[37,33,34]},{"path":[4,7],"span":[40,0,42,1]},{"path":[4,7,1],"span":[40,8,34]},{"path":[4,7,2,0],"span":[41,2,59]},{"path":[4,7,2,0,4],"span":[41,2,10]},{"path":[4,7,2,0,6],"span":[41,11,37]},{"path":[4,7,2,0,1],"span":[41,38,54]},{"path":[4,7,2,0,3],"span":[41,57,58]},{"path":[4,8],"span":[44,0,47,1]},{"path":[4,8,1],"span":[44,8,34]},{"path":[4,8,2,0],"span":[45,2,25]},{"path":[4,8,2,0,5],"span":[45,2,8]},{"path":[4,8,2,0,1],"span":[45,9,20]},{"path":[4,8,2,0,3],"span":[45,23,24]},{"path":[4,8,2,1],"span":[46,2,29]},{"path":[4,8,2,1,5],"span":[46,2,8]},{"path":[4,8,2,1,1],"span":[46,9,24]},{"path":[4,8,2,1,3],"span":[46,27,28]},{"path":[5,0],"span":[49,0,55,1]},{"path":[5,0,1],"span":[49,5,16]},{"path":[5,0,2,0],"span":[50,2,7]},{"path":[5,0,2,0,1],"span":[50,2,4]},{"path":[5,0,2,0,2],"span":[50,5,6]},{"path":[5,0,2,1],"span":[51,2,7]},{"path":[5,0,2,1,1],"span":[51,2,4]},{"path":[5,0,2,1,2],"span":[51,5,6]},{"path":[5,0,2,2],"span":[52,2,13]},{"path":[5,0,2,2,1],"span":[52,2,10]},{"path":[5,0,2,2,2],"span":[52,11,12]},{"path":[5,0,2,3],"span":[53,2,10]},{"path":[5,0,2,3,1],"span":[53,2,7]},{"path":[5,0,2,3,2],"span":[53,8,9]},{"path":[5,0,2,4],"span":[54,2,22]},{"path":[5,0,2,4,1],"span":[54,2,19]},{"path":[5,0,2,4,2],"span":[54,20,21]},{"path":[5,1],"span":[57,0,61,1]},{"path":[5,1,1],"span":[57,5,22]},{"path":[5,1,2,0],"span":[58,2,19]},{"path":[5,1,2,0,1],"span":[58,2,14]},{"path":[5,1,2,0,2],"span":[58,17,18]},{"path":[5,1,2,1],"span":[59,2,13]},{"path":[5,1,2,1,1],"span":[59,2,8]},{"path":[5,1,2,1,2],"span":[59,11,12]},{"path":[5,1,2,2],"span":[60,2,15]},{"path":[5,1,2,2,1],"span":[60,2,10]},{"path":[5,1,2,2,2],"span":[60,13,14]},{"path":[4,9],"span":[63,0,69,1]},{"path":[4,9,1],"span":[63,8,20]},{"path":[4,9,2,0],"span":[64,2,16]},{"path":[4,9,2,0,5],"span":[64,2,8]},{"path":[4,9,2,0,1],"span":[64,9,11]},{"path":[4,9,2,0,3],"span":[64,14,15]},{"path":[4,9,2,1],"span":[65,2,21]},{"path":[4,9,2,1,5],"span":[65,2,8]},{"path":[4,9,2,1,1],"span":[65,9,16]},{"path":[4,9,2,1,3],"span":[65,19,20]},{"path":[4,9,2,2],"span":[66,2,23]},{"path":[4,9,2,2,6],"span":[66,2,13]},{"path":[4,9,2,2,1],"span":[66,14,18]},{"path":[4,9,2,2,3],"span":[66,21,22]},{"path":[4,9,2,3],"span":[67,2,30]},{"path":[4,9,2,3,6],"span":[67,2,19]},{"path":[4,9,2,3,1],"span":[67,20,25]},{"path":[4,9,2,3,3],"span":[67,28,29]},{"path":[4,9,2,4],"span":[68,2,42]},{"path":[4,9,2,4,6],"span":[68,2,27]},{"path":[4,9,2,4,1],"span":[68,28,37]},{"path":[4,9,2,4,3],"span":[68,40,41]},{"path":[4,10],"span":[71,0,78,1]},{"path":[4,10,1],"span":[71,8,37]},{"path":[4,10,2,0],"span":[72,2,21]},{"path":[4,10,2,0,5],"span":[72,2,8]},{"path":[4,10,2,0,1],"span":[72,9,16]},{"path":[4,10,2,0,3],"span":[72,19,20]},{"path":[4,10,3,0],"span":[73,2,76,3]},{"path":[4,10,3,0,1],"span":[73,10,16]},{"path":[4,10,3,0,2,0],"span":[74,4,32]},{"path":[4,10,3,0,2,0,4],"span":[74,4,12]},{"path":[4,10,3,0,2,0,6],"span":[74,13,24]},{"path":[4,10,3,0,2,0,1],"span":[74,25,29]},{"path":[4,10,3,0,2,0,3],"span":[74,30,31]},{"path":[4,10,3,0,2,1],"span":[75,4,53]},{"path":[4,10,3,0,2,1,4],"span":[75,4,12]},{"path":[4,10,3,0,2,1,6],"span":[75,13,38]},{"path":[4,10,3,0,2,1,1],"span":[75,39,48]},{"path":[4,10,3,0,2,1,3],"span":[75,51,52]},{"path":[4,10,2,1],"span":[77,2,29]},{"path":[4,10,2,1,4],"span":[77,2,10]},{"path":[4,10,2,1,6],"span":[77,11,17]},{"path":[4,10,2,1,1],"span":[77,18,24]},{"path":[4,10,2,1,3],"span":[77,27,28]},{"path":[4,11],"span":[80,0,82,1]},{"path":[4,11,1],"span":[80,8,38]},{"path":[4,11,2,0],"span":[81,2,42]},{"path":[4,11,2,0,4],"span":[81,2,10]},{"path":[4,11,2,0,6],"span":[81,11,23]},{"path":[4,11,2,0,1],"span":[81,24,37]},{"path":[4,11,2,0,3],"span":[81,40,41]},{"path":[6,0],"span":[84,0,90,1]},{"path":[6,0,1],"span":[84,8,22]},{"path":[6,0,2,0],"span":[85,2,91]},{"path":[6,0,2,0,1],"span":[85,6,24]},{"path":[6,0,2,0,2],"span":[85,25,50]},{"path":[6,0,2,0,3],"span":[85,61,87]},{"path":[6,0,2,1],"span":[86,2,73]},{"path":[6,0,2,1,1],"span":[86,6,18]},{"path":[6,0,2,1,2],"span":[86,19,38]},{"path":[6,0,2,1,3],"span":[86,49,69]},{"path":[6,0,2,2],"span":[87,2,88]},{"path":[6,0,2,2,1],"span":[87,6,23]},{"path":[6,0,2,2,2],"span":[87,24,48]},{"path":[6,0,2,2,3],"span":[87,59,84]},{"path":[6,0,2,3],"span":[88,2,97]},{"path":[6,0,2,3,1],"span":[88,6,26]},{"path":[6,0,2,3,2],"span":[88,27,54]},{"path":[6,0,2,3,3],"span":[88,65,93]},{"path":[6,0,2,4],"span":[89,2,103]},{"path":[6,0,2,4,1],"span":[89,6,28]},{"path":[6,0,2,4,2],"span":[89,29,58]},{"path":[6,0,2,4,3],"span":[89,69,99]}]},"syntax":"proto3","bufExtension":{"isImport":false,"isSyntaxUnspecified":false}}]}
@@ -6,12 +6,14 @@
6
6
 
7
7
  import * as grpc from "@grpc/grpc-js";
8
8
  import * as install_pb from "./install_pb";
9
+ import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
9
10
 
10
11
  interface IInstallServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
11
12
  getHubCertificates: IInstallServiceService_IGetHubCertificates;
12
13
  setPublicKey: IInstallServiceService_ISetPublicKey;
13
14
  setHubCertificate: IInstallServiceService_ISetHubCertificate;
14
15
  removeHubCertificate: IInstallServiceService_IRemoveHubCertificate;
16
+ getInstallationsBySite: IInstallServiceService_IGetInstallationsBySite;
15
17
  }
16
18
 
17
19
  interface IInstallServiceService_IGetHubCertificates extends grpc.MethodDefinition<install_pb.GetHubCertificatesRequest, install_pb.GetHubCertificatesResponse> {
@@ -50,6 +52,15 @@ interface IInstallServiceService_IRemoveHubCertificate extends grpc.MethodDefini
50
52
  responseSerialize: grpc.serialize<install_pb.RemoveHubCertificateResponse>;
51
53
  responseDeserialize: grpc.deserialize<install_pb.RemoveHubCertificateResponse>;
52
54
  }
55
+ interface IInstallServiceService_IGetInstallationsBySite extends grpc.MethodDefinition<install_pb.GetInstallationsBySiteRequest, install_pb.GetInstallationsBySiteResponse> {
56
+ path: "/lansweeper.install.v1.InstallService/GetInstallationsBySite";
57
+ requestStream: false;
58
+ responseStream: false;
59
+ requestSerialize: grpc.serialize<install_pb.GetInstallationsBySiteRequest>;
60
+ requestDeserialize: grpc.deserialize<install_pb.GetInstallationsBySiteRequest>;
61
+ responseSerialize: grpc.serialize<install_pb.GetInstallationsBySiteResponse>;
62
+ responseDeserialize: grpc.deserialize<install_pb.GetInstallationsBySiteResponse>;
63
+ }
53
64
 
54
65
  export const InstallServiceService: IInstallServiceService;
55
66
 
@@ -58,6 +69,7 @@ export interface IInstallServiceServer extends grpc.UntypedServiceImplementation
58
69
  setPublicKey: grpc.handleUnaryCall<install_pb.SetPublicKeyRequest, install_pb.SetPublicKeyResponse>;
59
70
  setHubCertificate: grpc.handleUnaryCall<install_pb.SetHubCertificateRequest, install_pb.SetHubCertificateResponse>;
60
71
  removeHubCertificate: grpc.handleUnaryCall<install_pb.RemoveHubCertificateRequest, install_pb.RemoveHubCertificateResponse>;
72
+ getInstallationsBySite: grpc.handleUnaryCall<install_pb.GetInstallationsBySiteRequest, install_pb.GetInstallationsBySiteResponse>;
61
73
  }
62
74
 
63
75
  export interface IInstallServiceClient {
@@ -73,6 +85,9 @@ export interface IInstallServiceClient {
73
85
  removeHubCertificate(request: install_pb.RemoveHubCertificateRequest, callback: (error: grpc.ServiceError | null, response: install_pb.RemoveHubCertificateResponse) => void): grpc.ClientUnaryCall;
74
86
  removeHubCertificate(request: install_pb.RemoveHubCertificateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.RemoveHubCertificateResponse) => void): grpc.ClientUnaryCall;
75
87
  removeHubCertificate(request: install_pb.RemoveHubCertificateRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.RemoveHubCertificateResponse) => void): grpc.ClientUnaryCall;
88
+ getInstallationsBySite(request: install_pb.GetInstallationsBySiteRequest, callback: (error: grpc.ServiceError | null, response: install_pb.GetInstallationsBySiteResponse) => void): grpc.ClientUnaryCall;
89
+ getInstallationsBySite(request: install_pb.GetInstallationsBySiteRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.GetInstallationsBySiteResponse) => void): grpc.ClientUnaryCall;
90
+ getInstallationsBySite(request: install_pb.GetInstallationsBySiteRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.GetInstallationsBySiteResponse) => void): grpc.ClientUnaryCall;
76
91
  }
77
92
 
78
93
  export class InstallServiceClient extends grpc.Client implements IInstallServiceClient {
@@ -89,4 +104,7 @@ export class InstallServiceClient extends grpc.Client implements IInstallService
89
104
  public removeHubCertificate(request: install_pb.RemoveHubCertificateRequest, callback: (error: grpc.ServiceError | null, response: install_pb.RemoveHubCertificateResponse) => void): grpc.ClientUnaryCall;
90
105
  public removeHubCertificate(request: install_pb.RemoveHubCertificateRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.RemoveHubCertificateResponse) => void): grpc.ClientUnaryCall;
91
106
  public removeHubCertificate(request: install_pb.RemoveHubCertificateRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.RemoveHubCertificateResponse) => void): grpc.ClientUnaryCall;
107
+ public getInstallationsBySite(request: install_pb.GetInstallationsBySiteRequest, callback: (error: grpc.ServiceError | null, response: install_pb.GetInstallationsBySiteResponse) => void): grpc.ClientUnaryCall;
108
+ public getInstallationsBySite(request: install_pb.GetInstallationsBySiteRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: install_pb.GetInstallationsBySiteResponse) => void): grpc.ClientUnaryCall;
109
+ public getInstallationsBySite(request: install_pb.GetInstallationsBySiteRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: install_pb.GetInstallationsBySiteResponse) => void): grpc.ClientUnaryCall;
92
110
  }
@@ -3,6 +3,7 @@
3
3
  'use strict';
4
4
  var grpc = require('@grpc/grpc-js');
5
5
  var install_pb = require('./install_pb.js');
6
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
6
7
 
7
8
  function serialize_lansweeper_install_v1_GetHubCertificatesRequest(arg) {
8
9
  if (!(arg instanceof install_pb.GetHubCertificatesRequest)) {
@@ -26,6 +27,28 @@ function deserialize_lansweeper_install_v1_GetHubCertificatesResponse(buffer_arg
26
27
  return install_pb.GetHubCertificatesResponse.deserializeBinary(new Uint8Array(buffer_arg));
27
28
  }
28
29
 
30
+ function serialize_lansweeper_install_v1_GetInstallationsBySiteRequest(arg) {
31
+ if (!(arg instanceof install_pb.GetInstallationsBySiteRequest)) {
32
+ throw new Error('Expected argument of type lansweeper.install.v1.GetInstallationsBySiteRequest');
33
+ }
34
+ return Buffer.from(arg.serializeBinary());
35
+ }
36
+
37
+ function deserialize_lansweeper_install_v1_GetInstallationsBySiteRequest(buffer_arg) {
38
+ return install_pb.GetInstallationsBySiteRequest.deserializeBinary(new Uint8Array(buffer_arg));
39
+ }
40
+
41
+ function serialize_lansweeper_install_v1_GetInstallationsBySiteResponse(arg) {
42
+ if (!(arg instanceof install_pb.GetInstallationsBySiteResponse)) {
43
+ throw new Error('Expected argument of type lansweeper.install.v1.GetInstallationsBySiteResponse');
44
+ }
45
+ return Buffer.from(arg.serializeBinary());
46
+ }
47
+
48
+ function deserialize_lansweeper_install_v1_GetInstallationsBySiteResponse(buffer_arg) {
49
+ return install_pb.GetInstallationsBySiteResponse.deserializeBinary(new Uint8Array(buffer_arg));
50
+ }
51
+
29
52
  function serialize_lansweeper_install_v1_RemoveHubCertificateRequest(arg) {
30
53
  if (!(arg instanceof install_pb.RemoveHubCertificateRequest)) {
31
54
  throw new Error('Expected argument of type lansweeper.install.v1.RemoveHubCertificateRequest');
@@ -138,6 +161,17 @@ var InstallServiceService = exports.InstallServiceService = {
138
161
  responseSerialize: serialize_lansweeper_install_v1_RemoveHubCertificateResponse,
139
162
  responseDeserialize: deserialize_lansweeper_install_v1_RemoveHubCertificateResponse,
140
163
  },
164
+ getInstallationsBySite: {
165
+ path: '/lansweeper.install.v1.InstallService/GetInstallationsBySite',
166
+ requestStream: false,
167
+ responseStream: false,
168
+ requestType: install_pb.GetInstallationsBySiteRequest,
169
+ responseType: install_pb.GetInstallationsBySiteResponse,
170
+ requestSerialize: serialize_lansweeper_install_v1_GetInstallationsBySiteRequest,
171
+ requestDeserialize: deserialize_lansweeper_install_v1_GetInstallationsBySiteRequest,
172
+ responseSerialize: serialize_lansweeper_install_v1_GetInstallationsBySiteResponse,
173
+ responseDeserialize: deserialize_lansweeper_install_v1_GetInstallationsBySiteResponse,
174
+ },
141
175
  };
142
176
 
143
177
  exports.InstallServiceClient = grpc.makeGenericClientConstructor(InstallServiceService);
@@ -5,6 +5,7 @@
5
5
  /* eslint-disable */
6
6
 
7
7
  import * as jspb from "google-protobuf";
8
+ import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
8
9
 
9
10
  export class SetPublicKeyRequest extends jspb.Message {
10
11
  getSiteId(): string;
@@ -204,3 +205,131 @@ export namespace HubCertificateInstallation {
204
205
  hubCertificate: string,
205
206
  }
206
207
  }
208
+
209
+ export class Installation extends jspb.Message {
210
+ getId(): string;
211
+ setId(value: string): Installation;
212
+ getSiteId(): string;
213
+ setSiteId(value: string): Installation;
214
+ getType(): InstallType;
215
+ setType(value: InstallType): Installation;
216
+ getState(): InstallStateValue;
217
+ setState(value: InstallStateValue): Installation;
218
+
219
+ hasSyncedAt(): boolean;
220
+ clearSyncedAt(): void;
221
+ getSyncedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
222
+ setSyncedAt(value?: google_protobuf_timestamp_pb.Timestamp): Installation;
223
+
224
+ serializeBinary(): Uint8Array;
225
+ toObject(includeInstance?: boolean): Installation.AsObject;
226
+ static toObject(includeInstance: boolean, msg: Installation): Installation.AsObject;
227
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
228
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
229
+ static serializeBinaryToWriter(message: Installation, writer: jspb.BinaryWriter): void;
230
+ static deserializeBinary(bytes: Uint8Array): Installation;
231
+ static deserializeBinaryFromReader(message: Installation, reader: jspb.BinaryReader): Installation;
232
+ }
233
+
234
+ export namespace Installation {
235
+ export type AsObject = {
236
+ id: string,
237
+ siteId: string,
238
+ type: InstallType,
239
+ state: InstallStateValue,
240
+ syncedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
241
+ }
242
+ }
243
+
244
+ export class GetInstallationsBySiteRequest extends jspb.Message {
245
+ getSiteId(): string;
246
+ setSiteId(value: string): GetInstallationsBySiteRequest;
247
+
248
+ hasFilter(): boolean;
249
+ clearFilter(): void;
250
+ getFilter(): GetInstallationsBySiteRequest.Filter | undefined;
251
+ setFilter(value?: GetInstallationsBySiteRequest.Filter): GetInstallationsBySiteRequest;
252
+
253
+ serializeBinary(): Uint8Array;
254
+ toObject(includeInstance?: boolean): GetInstallationsBySiteRequest.AsObject;
255
+ static toObject(includeInstance: boolean, msg: GetInstallationsBySiteRequest): GetInstallationsBySiteRequest.AsObject;
256
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
257
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
258
+ static serializeBinaryToWriter(message: GetInstallationsBySiteRequest, writer: jspb.BinaryWriter): void;
259
+ static deserializeBinary(bytes: Uint8Array): GetInstallationsBySiteRequest;
260
+ static deserializeBinaryFromReader(message: GetInstallationsBySiteRequest, reader: jspb.BinaryReader): GetInstallationsBySiteRequest;
261
+ }
262
+
263
+ export namespace GetInstallationsBySiteRequest {
264
+ export type AsObject = {
265
+ siteId: string,
266
+ filter?: GetInstallationsBySiteRequest.Filter.AsObject,
267
+ }
268
+
269
+
270
+ export class Filter extends jspb.Message {
271
+
272
+ hasType(): boolean;
273
+ clearType(): void;
274
+ getType(): InstallType | undefined;
275
+ setType(value: InstallType): Filter;
276
+
277
+ hasSyncedAt(): boolean;
278
+ clearSyncedAt(): void;
279
+ getSyncedAt(): google_protobuf_timestamp_pb.Timestamp | undefined;
280
+ setSyncedAt(value?: google_protobuf_timestamp_pb.Timestamp): Filter;
281
+
282
+ serializeBinary(): Uint8Array;
283
+ toObject(includeInstance?: boolean): Filter.AsObject;
284
+ static toObject(includeInstance: boolean, msg: Filter): Filter.AsObject;
285
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
286
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
287
+ static serializeBinaryToWriter(message: Filter, writer: jspb.BinaryWriter): void;
288
+ static deserializeBinary(bytes: Uint8Array): Filter;
289
+ static deserializeBinaryFromReader(message: Filter, reader: jspb.BinaryReader): Filter;
290
+ }
291
+
292
+ export namespace Filter {
293
+ export type AsObject = {
294
+ type?: InstallType,
295
+ syncedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
296
+ }
297
+ }
298
+
299
+ }
300
+
301
+ export class GetInstallationsBySiteResponse extends jspb.Message {
302
+ clearInstallationsList(): void;
303
+ getInstallationsList(): Array<Installation>;
304
+ setInstallationsList(value: Array<Installation>): GetInstallationsBySiteResponse;
305
+ addInstallations(value?: Installation, index?: number): Installation;
306
+
307
+ serializeBinary(): Uint8Array;
308
+ toObject(includeInstance?: boolean): GetInstallationsBySiteResponse.AsObject;
309
+ static toObject(includeInstance: boolean, msg: GetInstallationsBySiteResponse): GetInstallationsBySiteResponse.AsObject;
310
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
311
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
312
+ static serializeBinaryToWriter(message: GetInstallationsBySiteResponse, writer: jspb.BinaryWriter): void;
313
+ static deserializeBinary(bytes: Uint8Array): GetInstallationsBySiteResponse;
314
+ static deserializeBinaryFromReader(message: GetInstallationsBySiteResponse, reader: jspb.BinaryReader): GetInstallationsBySiteResponse;
315
+ }
316
+
317
+ export namespace GetInstallationsBySiteResponse {
318
+ export type AsObject = {
319
+ installationsList: Array<Installation.AsObject>,
320
+ }
321
+ }
322
+
323
+ export enum InstallType {
324
+ IT = 0,
325
+ OT = 1,
326
+ IT_AGENT = 2,
327
+ CLOUD = 3,
328
+ NETWORK_DISCOVERY = 4,
329
+ }
330
+
331
+ export enum InstallStateValue {
332
+ UNESPECIFIED = 0,
333
+ LINKED = 1,
334
+ UNLINKED = 2,
335
+ }
@@ -21,9 +21,17 @@ var global = (function() {
21
21
  return Function('return this')();
22
22
  }.call(null));
23
23
 
24
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
25
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
24
26
  goog.exportSymbol('proto.lansweeper.install.v1.GetHubCertificatesRequest', null, global);
25
27
  goog.exportSymbol('proto.lansweeper.install.v1.GetHubCertificatesResponse', null, global);
28
+ goog.exportSymbol('proto.lansweeper.install.v1.GetInstallationsBySiteRequest', null, global);
29
+ goog.exportSymbol('proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter', null, global);
30
+ goog.exportSymbol('proto.lansweeper.install.v1.GetInstallationsBySiteResponse', null, global);
26
31
  goog.exportSymbol('proto.lansweeper.install.v1.HubCertificateInstallation', null, global);
32
+ goog.exportSymbol('proto.lansweeper.install.v1.InstallStateValue', null, global);
33
+ goog.exportSymbol('proto.lansweeper.install.v1.InstallType', null, global);
34
+ goog.exportSymbol('proto.lansweeper.install.v1.Installation', null, global);
27
35
  goog.exportSymbol('proto.lansweeper.install.v1.RemoveHubCertificateRequest', null, global);
28
36
  goog.exportSymbol('proto.lansweeper.install.v1.RemoveHubCertificateResponse', null, global);
29
37
  goog.exportSymbol('proto.lansweeper.install.v1.SetHubCertificateRequest', null, global);
@@ -219,6 +227,90 @@ if (goog.DEBUG && !COMPILED) {
219
227
  */
220
228
  proto.lansweeper.install.v1.HubCertificateInstallation.displayName = 'proto.lansweeper.install.v1.HubCertificateInstallation';
221
229
  }
230
+ /**
231
+ * Generated by JsPbCodeGenerator.
232
+ * @param {Array=} opt_data Optional initial data array, typically from a
233
+ * server response, or constructed directly in Javascript. The array is used
234
+ * in place and becomes part of the constructed object. It is not cloned.
235
+ * If no data is provided, the constructed object will be empty, but still
236
+ * valid.
237
+ * @extends {jspb.Message}
238
+ * @constructor
239
+ */
240
+ proto.lansweeper.install.v1.Installation = function(opt_data) {
241
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
242
+ };
243
+ goog.inherits(proto.lansweeper.install.v1.Installation, jspb.Message);
244
+ if (goog.DEBUG && !COMPILED) {
245
+ /**
246
+ * @public
247
+ * @override
248
+ */
249
+ proto.lansweeper.install.v1.Installation.displayName = 'proto.lansweeper.install.v1.Installation';
250
+ }
251
+ /**
252
+ * Generated by JsPbCodeGenerator.
253
+ * @param {Array=} opt_data Optional initial data array, typically from a
254
+ * server response, or constructed directly in Javascript. The array is used
255
+ * in place and becomes part of the constructed object. It is not cloned.
256
+ * If no data is provided, the constructed object will be empty, but still
257
+ * valid.
258
+ * @extends {jspb.Message}
259
+ * @constructor
260
+ */
261
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest = function(opt_data) {
262
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
263
+ };
264
+ goog.inherits(proto.lansweeper.install.v1.GetInstallationsBySiteRequest, jspb.Message);
265
+ if (goog.DEBUG && !COMPILED) {
266
+ /**
267
+ * @public
268
+ * @override
269
+ */
270
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.displayName = 'proto.lansweeper.install.v1.GetInstallationsBySiteRequest';
271
+ }
272
+ /**
273
+ * Generated by JsPbCodeGenerator.
274
+ * @param {Array=} opt_data Optional initial data array, typically from a
275
+ * server response, or constructed directly in Javascript. The array is used
276
+ * in place and becomes part of the constructed object. It is not cloned.
277
+ * If no data is provided, the constructed object will be empty, but still
278
+ * valid.
279
+ * @extends {jspb.Message}
280
+ * @constructor
281
+ */
282
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter = function(opt_data) {
283
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
284
+ };
285
+ goog.inherits(proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter, jspb.Message);
286
+ if (goog.DEBUG && !COMPILED) {
287
+ /**
288
+ * @public
289
+ * @override
290
+ */
291
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.displayName = 'proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter';
292
+ }
293
+ /**
294
+ * Generated by JsPbCodeGenerator.
295
+ * @param {Array=} opt_data Optional initial data array, typically from a
296
+ * server response, or constructed directly in Javascript. The array is used
297
+ * in place and becomes part of the constructed object. It is not cloned.
298
+ * If no data is provided, the constructed object will be empty, but still
299
+ * valid.
300
+ * @extends {jspb.Message}
301
+ * @constructor
302
+ */
303
+ proto.lansweeper.install.v1.GetInstallationsBySiteResponse = function(opt_data) {
304
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.install.v1.GetInstallationsBySiteResponse.repeatedFields_, null);
305
+ };
306
+ goog.inherits(proto.lansweeper.install.v1.GetInstallationsBySiteResponse, jspb.Message);
307
+ if (goog.DEBUG && !COMPILED) {
308
+ /**
309
+ * @public
310
+ * @override
311
+ */
312
+ proto.lansweeper.install.v1.GetInstallationsBySiteResponse.displayName = 'proto.lansweeper.install.v1.GetInstallationsBySiteResponse';
313
+ }
222
314
 
223
315
 
224
316
 
@@ -1598,4 +1690,835 @@ proto.lansweeper.install.v1.HubCertificateInstallation.prototype.setHubCertifica
1598
1690
  };
1599
1691
 
1600
1692
 
1693
+
1694
+
1695
+
1696
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1697
+ /**
1698
+ * Creates an object representation of this proto.
1699
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1700
+ * Optional fields that are not set will be set to undefined.
1701
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1702
+ * For the list of reserved names please see:
1703
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1704
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1705
+ * JSPB instance for transitional soy proto support:
1706
+ * http://goto/soy-param-migration
1707
+ * @return {!Object}
1708
+ */
1709
+ proto.lansweeper.install.v1.Installation.prototype.toObject = function(opt_includeInstance) {
1710
+ return proto.lansweeper.install.v1.Installation.toObject(opt_includeInstance, this);
1711
+ };
1712
+
1713
+
1714
+ /**
1715
+ * Static version of the {@see toObject} method.
1716
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1717
+ * the JSPB instance for transitional soy proto support:
1718
+ * http://goto/soy-param-migration
1719
+ * @param {!proto.lansweeper.install.v1.Installation} msg The msg instance to transform.
1720
+ * @return {!Object}
1721
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1722
+ */
1723
+ proto.lansweeper.install.v1.Installation.toObject = function(includeInstance, msg) {
1724
+ var f, obj = {
1725
+ id: jspb.Message.getFieldWithDefault(msg, 1, ""),
1726
+ siteId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1727
+ type: jspb.Message.getFieldWithDefault(msg, 3, 0),
1728
+ state: jspb.Message.getFieldWithDefault(msg, 4, 0),
1729
+ syncedAt: (f = msg.getSyncedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
1730
+ };
1731
+
1732
+ if (includeInstance) {
1733
+ obj.$jspbMessageInstance = msg;
1734
+ }
1735
+ return obj;
1736
+ };
1737
+ }
1738
+
1739
+
1740
+ /**
1741
+ * Deserializes binary data (in protobuf wire format).
1742
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1743
+ * @return {!proto.lansweeper.install.v1.Installation}
1744
+ */
1745
+ proto.lansweeper.install.v1.Installation.deserializeBinary = function(bytes) {
1746
+ var reader = new jspb.BinaryReader(bytes);
1747
+ var msg = new proto.lansweeper.install.v1.Installation;
1748
+ return proto.lansweeper.install.v1.Installation.deserializeBinaryFromReader(msg, reader);
1749
+ };
1750
+
1751
+
1752
+ /**
1753
+ * Deserializes binary data (in protobuf wire format) from the
1754
+ * given reader into the given message object.
1755
+ * @param {!proto.lansweeper.install.v1.Installation} msg The message object to deserialize into.
1756
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1757
+ * @return {!proto.lansweeper.install.v1.Installation}
1758
+ */
1759
+ proto.lansweeper.install.v1.Installation.deserializeBinaryFromReader = function(msg, reader) {
1760
+ while (reader.nextField()) {
1761
+ if (reader.isEndGroup()) {
1762
+ break;
1763
+ }
1764
+ var field = reader.getFieldNumber();
1765
+ switch (field) {
1766
+ case 1:
1767
+ var value = /** @type {string} */ (reader.readString());
1768
+ msg.setId(value);
1769
+ break;
1770
+ case 2:
1771
+ var value = /** @type {string} */ (reader.readString());
1772
+ msg.setSiteId(value);
1773
+ break;
1774
+ case 3:
1775
+ var value = /** @type {!proto.lansweeper.install.v1.InstallType} */ (reader.readEnum());
1776
+ msg.setType(value);
1777
+ break;
1778
+ case 4:
1779
+ var value = /** @type {!proto.lansweeper.install.v1.InstallStateValue} */ (reader.readEnum());
1780
+ msg.setState(value);
1781
+ break;
1782
+ case 5:
1783
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1784
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1785
+ msg.setSyncedAt(value);
1786
+ break;
1787
+ default:
1788
+ reader.skipField();
1789
+ break;
1790
+ }
1791
+ }
1792
+ return msg;
1793
+ };
1794
+
1795
+
1796
+ /**
1797
+ * Serializes the message to binary data (in protobuf wire format).
1798
+ * @return {!Uint8Array}
1799
+ */
1800
+ proto.lansweeper.install.v1.Installation.prototype.serializeBinary = function() {
1801
+ var writer = new jspb.BinaryWriter();
1802
+ proto.lansweeper.install.v1.Installation.serializeBinaryToWriter(this, writer);
1803
+ return writer.getResultBuffer();
1804
+ };
1805
+
1806
+
1807
+ /**
1808
+ * Serializes the given message to binary data (in protobuf wire
1809
+ * format), writing to the given BinaryWriter.
1810
+ * @param {!proto.lansweeper.install.v1.Installation} message
1811
+ * @param {!jspb.BinaryWriter} writer
1812
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1813
+ */
1814
+ proto.lansweeper.install.v1.Installation.serializeBinaryToWriter = function(message, writer) {
1815
+ var f = undefined;
1816
+ f = message.getId();
1817
+ if (f.length > 0) {
1818
+ writer.writeString(
1819
+ 1,
1820
+ f
1821
+ );
1822
+ }
1823
+ f = message.getSiteId();
1824
+ if (f.length > 0) {
1825
+ writer.writeString(
1826
+ 2,
1827
+ f
1828
+ );
1829
+ }
1830
+ f = message.getType();
1831
+ if (f !== 0.0) {
1832
+ writer.writeEnum(
1833
+ 3,
1834
+ f
1835
+ );
1836
+ }
1837
+ f = message.getState();
1838
+ if (f !== 0.0) {
1839
+ writer.writeEnum(
1840
+ 4,
1841
+ f
1842
+ );
1843
+ }
1844
+ f = message.getSyncedAt();
1845
+ if (f != null) {
1846
+ writer.writeMessage(
1847
+ 5,
1848
+ f,
1849
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1850
+ );
1851
+ }
1852
+ };
1853
+
1854
+
1855
+ /**
1856
+ * optional string id = 1;
1857
+ * @return {string}
1858
+ */
1859
+ proto.lansweeper.install.v1.Installation.prototype.getId = function() {
1860
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1861
+ };
1862
+
1863
+
1864
+ /**
1865
+ * @param {string} value
1866
+ * @return {!proto.lansweeper.install.v1.Installation} returns this
1867
+ */
1868
+ proto.lansweeper.install.v1.Installation.prototype.setId = function(value) {
1869
+ return jspb.Message.setProto3StringField(this, 1, value);
1870
+ };
1871
+
1872
+
1873
+ /**
1874
+ * optional string site_id = 2;
1875
+ * @return {string}
1876
+ */
1877
+ proto.lansweeper.install.v1.Installation.prototype.getSiteId = function() {
1878
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1879
+ };
1880
+
1881
+
1882
+ /**
1883
+ * @param {string} value
1884
+ * @return {!proto.lansweeper.install.v1.Installation} returns this
1885
+ */
1886
+ proto.lansweeper.install.v1.Installation.prototype.setSiteId = function(value) {
1887
+ return jspb.Message.setProto3StringField(this, 2, value);
1888
+ };
1889
+
1890
+
1891
+ /**
1892
+ * optional InstallType type = 3;
1893
+ * @return {!proto.lansweeper.install.v1.InstallType}
1894
+ */
1895
+ proto.lansweeper.install.v1.Installation.prototype.getType = function() {
1896
+ return /** @type {!proto.lansweeper.install.v1.InstallType} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1897
+ };
1898
+
1899
+
1900
+ /**
1901
+ * @param {!proto.lansweeper.install.v1.InstallType} value
1902
+ * @return {!proto.lansweeper.install.v1.Installation} returns this
1903
+ */
1904
+ proto.lansweeper.install.v1.Installation.prototype.setType = function(value) {
1905
+ return jspb.Message.setProto3EnumField(this, 3, value);
1906
+ };
1907
+
1908
+
1909
+ /**
1910
+ * optional InstallStateValue state = 4;
1911
+ * @return {!proto.lansweeper.install.v1.InstallStateValue}
1912
+ */
1913
+ proto.lansweeper.install.v1.Installation.prototype.getState = function() {
1914
+ return /** @type {!proto.lansweeper.install.v1.InstallStateValue} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
1915
+ };
1916
+
1917
+
1918
+ /**
1919
+ * @param {!proto.lansweeper.install.v1.InstallStateValue} value
1920
+ * @return {!proto.lansweeper.install.v1.Installation} returns this
1921
+ */
1922
+ proto.lansweeper.install.v1.Installation.prototype.setState = function(value) {
1923
+ return jspb.Message.setProto3EnumField(this, 4, value);
1924
+ };
1925
+
1926
+
1927
+ /**
1928
+ * optional google.protobuf.Timestamp synced_at = 5;
1929
+ * @return {?proto.google.protobuf.Timestamp}
1930
+ */
1931
+ proto.lansweeper.install.v1.Installation.prototype.getSyncedAt = function() {
1932
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1933
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
1934
+ };
1935
+
1936
+
1937
+ /**
1938
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1939
+ * @return {!proto.lansweeper.install.v1.Installation} returns this
1940
+ */
1941
+ proto.lansweeper.install.v1.Installation.prototype.setSyncedAt = function(value) {
1942
+ return jspb.Message.setWrapperField(this, 5, value);
1943
+ };
1944
+
1945
+
1946
+ /**
1947
+ * Clears the message field making it undefined.
1948
+ * @return {!proto.lansweeper.install.v1.Installation} returns this
1949
+ */
1950
+ proto.lansweeper.install.v1.Installation.prototype.clearSyncedAt = function() {
1951
+ return this.setSyncedAt(undefined);
1952
+ };
1953
+
1954
+
1955
+ /**
1956
+ * Returns whether this field is set.
1957
+ * @return {boolean}
1958
+ */
1959
+ proto.lansweeper.install.v1.Installation.prototype.hasSyncedAt = function() {
1960
+ return jspb.Message.getField(this, 5) != null;
1961
+ };
1962
+
1963
+
1964
+
1965
+
1966
+
1967
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1968
+ /**
1969
+ * Creates an object representation of this proto.
1970
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1971
+ * Optional fields that are not set will be set to undefined.
1972
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1973
+ * For the list of reserved names please see:
1974
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1975
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1976
+ * JSPB instance for transitional soy proto support:
1977
+ * http://goto/soy-param-migration
1978
+ * @return {!Object}
1979
+ */
1980
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.prototype.toObject = function(opt_includeInstance) {
1981
+ return proto.lansweeper.install.v1.GetInstallationsBySiteRequest.toObject(opt_includeInstance, this);
1982
+ };
1983
+
1984
+
1985
+ /**
1986
+ * Static version of the {@see toObject} method.
1987
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1988
+ * the JSPB instance for transitional soy proto support:
1989
+ * http://goto/soy-param-migration
1990
+ * @param {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest} msg The msg instance to transform.
1991
+ * @return {!Object}
1992
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1993
+ */
1994
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.toObject = function(includeInstance, msg) {
1995
+ var f, obj = {
1996
+ siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1997
+ filter: (f = msg.getFilter()) && proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.toObject(includeInstance, f)
1998
+ };
1999
+
2000
+ if (includeInstance) {
2001
+ obj.$jspbMessageInstance = msg;
2002
+ }
2003
+ return obj;
2004
+ };
2005
+ }
2006
+
2007
+
2008
+ /**
2009
+ * Deserializes binary data (in protobuf wire format).
2010
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2011
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest}
2012
+ */
2013
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.deserializeBinary = function(bytes) {
2014
+ var reader = new jspb.BinaryReader(bytes);
2015
+ var msg = new proto.lansweeper.install.v1.GetInstallationsBySiteRequest;
2016
+ return proto.lansweeper.install.v1.GetInstallationsBySiteRequest.deserializeBinaryFromReader(msg, reader);
2017
+ };
2018
+
2019
+
2020
+ /**
2021
+ * Deserializes binary data (in protobuf wire format) from the
2022
+ * given reader into the given message object.
2023
+ * @param {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest} msg The message object to deserialize into.
2024
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2025
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest}
2026
+ */
2027
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.deserializeBinaryFromReader = function(msg, reader) {
2028
+ while (reader.nextField()) {
2029
+ if (reader.isEndGroup()) {
2030
+ break;
2031
+ }
2032
+ var field = reader.getFieldNumber();
2033
+ switch (field) {
2034
+ case 1:
2035
+ var value = /** @type {string} */ (reader.readString());
2036
+ msg.setSiteId(value);
2037
+ break;
2038
+ case 2:
2039
+ var value = new proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter;
2040
+ reader.readMessage(value,proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.deserializeBinaryFromReader);
2041
+ msg.setFilter(value);
2042
+ break;
2043
+ default:
2044
+ reader.skipField();
2045
+ break;
2046
+ }
2047
+ }
2048
+ return msg;
2049
+ };
2050
+
2051
+
2052
+ /**
2053
+ * Serializes the message to binary data (in protobuf wire format).
2054
+ * @return {!Uint8Array}
2055
+ */
2056
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.prototype.serializeBinary = function() {
2057
+ var writer = new jspb.BinaryWriter();
2058
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.serializeBinaryToWriter(this, writer);
2059
+ return writer.getResultBuffer();
2060
+ };
2061
+
2062
+
2063
+ /**
2064
+ * Serializes the given message to binary data (in protobuf wire
2065
+ * format), writing to the given BinaryWriter.
2066
+ * @param {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest} message
2067
+ * @param {!jspb.BinaryWriter} writer
2068
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2069
+ */
2070
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.serializeBinaryToWriter = function(message, writer) {
2071
+ var f = undefined;
2072
+ f = message.getSiteId();
2073
+ if (f.length > 0) {
2074
+ writer.writeString(
2075
+ 1,
2076
+ f
2077
+ );
2078
+ }
2079
+ f = message.getFilter();
2080
+ if (f != null) {
2081
+ writer.writeMessage(
2082
+ 2,
2083
+ f,
2084
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.serializeBinaryToWriter
2085
+ );
2086
+ }
2087
+ };
2088
+
2089
+
2090
+
2091
+
2092
+
2093
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2094
+ /**
2095
+ * Creates an object representation of this proto.
2096
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2097
+ * Optional fields that are not set will be set to undefined.
2098
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2099
+ * For the list of reserved names please see:
2100
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2101
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2102
+ * JSPB instance for transitional soy proto support:
2103
+ * http://goto/soy-param-migration
2104
+ * @return {!Object}
2105
+ */
2106
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.toObject = function(opt_includeInstance) {
2107
+ return proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.toObject(opt_includeInstance, this);
2108
+ };
2109
+
2110
+
2111
+ /**
2112
+ * Static version of the {@see toObject} method.
2113
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2114
+ * the JSPB instance for transitional soy proto support:
2115
+ * http://goto/soy-param-migration
2116
+ * @param {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter} msg The msg instance to transform.
2117
+ * @return {!Object}
2118
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2119
+ */
2120
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.toObject = function(includeInstance, msg) {
2121
+ var f, obj = {
2122
+ type: jspb.Message.getFieldWithDefault(msg, 1, 0),
2123
+ syncedAt: (f = msg.getSyncedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
2124
+ };
2125
+
2126
+ if (includeInstance) {
2127
+ obj.$jspbMessageInstance = msg;
2128
+ }
2129
+ return obj;
2130
+ };
2131
+ }
2132
+
2133
+
2134
+ /**
2135
+ * Deserializes binary data (in protobuf wire format).
2136
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2137
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter}
2138
+ */
2139
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.deserializeBinary = function(bytes) {
2140
+ var reader = new jspb.BinaryReader(bytes);
2141
+ var msg = new proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter;
2142
+ return proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.deserializeBinaryFromReader(msg, reader);
2143
+ };
2144
+
2145
+
2146
+ /**
2147
+ * Deserializes binary data (in protobuf wire format) from the
2148
+ * given reader into the given message object.
2149
+ * @param {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter} msg The message object to deserialize into.
2150
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2151
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter}
2152
+ */
2153
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.deserializeBinaryFromReader = function(msg, reader) {
2154
+ while (reader.nextField()) {
2155
+ if (reader.isEndGroup()) {
2156
+ break;
2157
+ }
2158
+ var field = reader.getFieldNumber();
2159
+ switch (field) {
2160
+ case 1:
2161
+ var value = /** @type {!proto.lansweeper.install.v1.InstallType} */ (reader.readEnum());
2162
+ msg.setType(value);
2163
+ break;
2164
+ case 2:
2165
+ var value = new google_protobuf_timestamp_pb.Timestamp;
2166
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
2167
+ msg.setSyncedAt(value);
2168
+ break;
2169
+ default:
2170
+ reader.skipField();
2171
+ break;
2172
+ }
2173
+ }
2174
+ return msg;
2175
+ };
2176
+
2177
+
2178
+ /**
2179
+ * Serializes the message to binary data (in protobuf wire format).
2180
+ * @return {!Uint8Array}
2181
+ */
2182
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.serializeBinary = function() {
2183
+ var writer = new jspb.BinaryWriter();
2184
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.serializeBinaryToWriter(this, writer);
2185
+ return writer.getResultBuffer();
2186
+ };
2187
+
2188
+
2189
+ /**
2190
+ * Serializes the given message to binary data (in protobuf wire
2191
+ * format), writing to the given BinaryWriter.
2192
+ * @param {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter} message
2193
+ * @param {!jspb.BinaryWriter} writer
2194
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2195
+ */
2196
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.serializeBinaryToWriter = function(message, writer) {
2197
+ var f = undefined;
2198
+ f = /** @type {!proto.lansweeper.install.v1.InstallType} */ (jspb.Message.getField(message, 1));
2199
+ if (f != null) {
2200
+ writer.writeEnum(
2201
+ 1,
2202
+ f
2203
+ );
2204
+ }
2205
+ f = message.getSyncedAt();
2206
+ if (f != null) {
2207
+ writer.writeMessage(
2208
+ 2,
2209
+ f,
2210
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2211
+ );
2212
+ }
2213
+ };
2214
+
2215
+
2216
+ /**
2217
+ * optional InstallType type = 1;
2218
+ * @return {!proto.lansweeper.install.v1.InstallType}
2219
+ */
2220
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.getType = function() {
2221
+ return /** @type {!proto.lansweeper.install.v1.InstallType} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2222
+ };
2223
+
2224
+
2225
+ /**
2226
+ * @param {!proto.lansweeper.install.v1.InstallType} value
2227
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter} returns this
2228
+ */
2229
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.setType = function(value) {
2230
+ return jspb.Message.setField(this, 1, value);
2231
+ };
2232
+
2233
+
2234
+ /**
2235
+ * Clears the field making it undefined.
2236
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter} returns this
2237
+ */
2238
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.clearType = function() {
2239
+ return jspb.Message.setField(this, 1, undefined);
2240
+ };
2241
+
2242
+
2243
+ /**
2244
+ * Returns whether this field is set.
2245
+ * @return {boolean}
2246
+ */
2247
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.hasType = function() {
2248
+ return jspb.Message.getField(this, 1) != null;
2249
+ };
2250
+
2251
+
2252
+ /**
2253
+ * optional google.protobuf.Timestamp synced_at = 2;
2254
+ * @return {?proto.google.protobuf.Timestamp}
2255
+ */
2256
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.getSyncedAt = function() {
2257
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2258
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
2259
+ };
2260
+
2261
+
2262
+ /**
2263
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2264
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter} returns this
2265
+ */
2266
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.setSyncedAt = function(value) {
2267
+ return jspb.Message.setWrapperField(this, 2, value);
2268
+ };
2269
+
2270
+
2271
+ /**
2272
+ * Clears the message field making it undefined.
2273
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter} returns this
2274
+ */
2275
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.clearSyncedAt = function() {
2276
+ return this.setSyncedAt(undefined);
2277
+ };
2278
+
2279
+
2280
+ /**
2281
+ * Returns whether this field is set.
2282
+ * @return {boolean}
2283
+ */
2284
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter.prototype.hasSyncedAt = function() {
2285
+ return jspb.Message.getField(this, 2) != null;
2286
+ };
2287
+
2288
+
2289
+ /**
2290
+ * optional string site_id = 1;
2291
+ * @return {string}
2292
+ */
2293
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.prototype.getSiteId = function() {
2294
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2295
+ };
2296
+
2297
+
2298
+ /**
2299
+ * @param {string} value
2300
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest} returns this
2301
+ */
2302
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.prototype.setSiteId = function(value) {
2303
+ return jspb.Message.setProto3StringField(this, 1, value);
2304
+ };
2305
+
2306
+
2307
+ /**
2308
+ * optional Filter filter = 2;
2309
+ * @return {?proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter}
2310
+ */
2311
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.prototype.getFilter = function() {
2312
+ return /** @type{?proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter} */ (
2313
+ jspb.Message.getWrapperField(this, proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter, 2));
2314
+ };
2315
+
2316
+
2317
+ /**
2318
+ * @param {?proto.lansweeper.install.v1.GetInstallationsBySiteRequest.Filter|undefined} value
2319
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest} returns this
2320
+ */
2321
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.prototype.setFilter = function(value) {
2322
+ return jspb.Message.setWrapperField(this, 2, value);
2323
+ };
2324
+
2325
+
2326
+ /**
2327
+ * Clears the message field making it undefined.
2328
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteRequest} returns this
2329
+ */
2330
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.prototype.clearFilter = function() {
2331
+ return this.setFilter(undefined);
2332
+ };
2333
+
2334
+
2335
+ /**
2336
+ * Returns whether this field is set.
2337
+ * @return {boolean}
2338
+ */
2339
+ proto.lansweeper.install.v1.GetInstallationsBySiteRequest.prototype.hasFilter = function() {
2340
+ return jspb.Message.getField(this, 2) != null;
2341
+ };
2342
+
2343
+
2344
+
2345
+ /**
2346
+ * List of repeated fields within this message type.
2347
+ * @private {!Array<number>}
2348
+ * @const
2349
+ */
2350
+ proto.lansweeper.install.v1.GetInstallationsBySiteResponse.repeatedFields_ = [1];
2351
+
2352
+
2353
+
2354
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2355
+ /**
2356
+ * Creates an object representation of this proto.
2357
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2358
+ * Optional fields that are not set will be set to undefined.
2359
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2360
+ * For the list of reserved names please see:
2361
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2362
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2363
+ * JSPB instance for transitional soy proto support:
2364
+ * http://goto/soy-param-migration
2365
+ * @return {!Object}
2366
+ */
2367
+ proto.lansweeper.install.v1.GetInstallationsBySiteResponse.prototype.toObject = function(opt_includeInstance) {
2368
+ return proto.lansweeper.install.v1.GetInstallationsBySiteResponse.toObject(opt_includeInstance, this);
2369
+ };
2370
+
2371
+
2372
+ /**
2373
+ * Static version of the {@see toObject} method.
2374
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2375
+ * the JSPB instance for transitional soy proto support:
2376
+ * http://goto/soy-param-migration
2377
+ * @param {!proto.lansweeper.install.v1.GetInstallationsBySiteResponse} msg The msg instance to transform.
2378
+ * @return {!Object}
2379
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2380
+ */
2381
+ proto.lansweeper.install.v1.GetInstallationsBySiteResponse.toObject = function(includeInstance, msg) {
2382
+ var f, obj = {
2383
+ installationsList: jspb.Message.toObjectList(msg.getInstallationsList(),
2384
+ proto.lansweeper.install.v1.Installation.toObject, includeInstance)
2385
+ };
2386
+
2387
+ if (includeInstance) {
2388
+ obj.$jspbMessageInstance = msg;
2389
+ }
2390
+ return obj;
2391
+ };
2392
+ }
2393
+
2394
+
2395
+ /**
2396
+ * Deserializes binary data (in protobuf wire format).
2397
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2398
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteResponse}
2399
+ */
2400
+ proto.lansweeper.install.v1.GetInstallationsBySiteResponse.deserializeBinary = function(bytes) {
2401
+ var reader = new jspb.BinaryReader(bytes);
2402
+ var msg = new proto.lansweeper.install.v1.GetInstallationsBySiteResponse;
2403
+ return proto.lansweeper.install.v1.GetInstallationsBySiteResponse.deserializeBinaryFromReader(msg, reader);
2404
+ };
2405
+
2406
+
2407
+ /**
2408
+ * Deserializes binary data (in protobuf wire format) from the
2409
+ * given reader into the given message object.
2410
+ * @param {!proto.lansweeper.install.v1.GetInstallationsBySiteResponse} msg The message object to deserialize into.
2411
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2412
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteResponse}
2413
+ */
2414
+ proto.lansweeper.install.v1.GetInstallationsBySiteResponse.deserializeBinaryFromReader = function(msg, reader) {
2415
+ while (reader.nextField()) {
2416
+ if (reader.isEndGroup()) {
2417
+ break;
2418
+ }
2419
+ var field = reader.getFieldNumber();
2420
+ switch (field) {
2421
+ case 1:
2422
+ var value = new proto.lansweeper.install.v1.Installation;
2423
+ reader.readMessage(value,proto.lansweeper.install.v1.Installation.deserializeBinaryFromReader);
2424
+ msg.addInstallations(value);
2425
+ break;
2426
+ default:
2427
+ reader.skipField();
2428
+ break;
2429
+ }
2430
+ }
2431
+ return msg;
2432
+ };
2433
+
2434
+
2435
+ /**
2436
+ * Serializes the message to binary data (in protobuf wire format).
2437
+ * @return {!Uint8Array}
2438
+ */
2439
+ proto.lansweeper.install.v1.GetInstallationsBySiteResponse.prototype.serializeBinary = function() {
2440
+ var writer = new jspb.BinaryWriter();
2441
+ proto.lansweeper.install.v1.GetInstallationsBySiteResponse.serializeBinaryToWriter(this, writer);
2442
+ return writer.getResultBuffer();
2443
+ };
2444
+
2445
+
2446
+ /**
2447
+ * Serializes the given message to binary data (in protobuf wire
2448
+ * format), writing to the given BinaryWriter.
2449
+ * @param {!proto.lansweeper.install.v1.GetInstallationsBySiteResponse} message
2450
+ * @param {!jspb.BinaryWriter} writer
2451
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2452
+ */
2453
+ proto.lansweeper.install.v1.GetInstallationsBySiteResponse.serializeBinaryToWriter = function(message, writer) {
2454
+ var f = undefined;
2455
+ f = message.getInstallationsList();
2456
+ if (f.length > 0) {
2457
+ writer.writeRepeatedMessage(
2458
+ 1,
2459
+ f,
2460
+ proto.lansweeper.install.v1.Installation.serializeBinaryToWriter
2461
+ );
2462
+ }
2463
+ };
2464
+
2465
+
2466
+ /**
2467
+ * repeated Installation installations = 1;
2468
+ * @return {!Array<!proto.lansweeper.install.v1.Installation>}
2469
+ */
2470
+ proto.lansweeper.install.v1.GetInstallationsBySiteResponse.prototype.getInstallationsList = function() {
2471
+ return /** @type{!Array<!proto.lansweeper.install.v1.Installation>} */ (
2472
+ jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.install.v1.Installation, 1));
2473
+ };
2474
+
2475
+
2476
+ /**
2477
+ * @param {!Array<!proto.lansweeper.install.v1.Installation>} value
2478
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteResponse} returns this
2479
+ */
2480
+ proto.lansweeper.install.v1.GetInstallationsBySiteResponse.prototype.setInstallationsList = function(value) {
2481
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2482
+ };
2483
+
2484
+
2485
+ /**
2486
+ * @param {!proto.lansweeper.install.v1.Installation=} opt_value
2487
+ * @param {number=} opt_index
2488
+ * @return {!proto.lansweeper.install.v1.Installation}
2489
+ */
2490
+ proto.lansweeper.install.v1.GetInstallationsBySiteResponse.prototype.addInstallations = function(opt_value, opt_index) {
2491
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lansweeper.install.v1.Installation, opt_index);
2492
+ };
2493
+
2494
+
2495
+ /**
2496
+ * Clears the list making it empty but non-null.
2497
+ * @return {!proto.lansweeper.install.v1.GetInstallationsBySiteResponse} returns this
2498
+ */
2499
+ proto.lansweeper.install.v1.GetInstallationsBySiteResponse.prototype.clearInstallationsList = function() {
2500
+ return this.setInstallationsList([]);
2501
+ };
2502
+
2503
+
2504
+ /**
2505
+ * @enum {number}
2506
+ */
2507
+ proto.lansweeper.install.v1.InstallType = {
2508
+ IT: 0,
2509
+ OT: 1,
2510
+ IT_AGENT: 2,
2511
+ CLOUD: 3,
2512
+ NETWORK_DISCOVERY: 4
2513
+ };
2514
+
2515
+ /**
2516
+ * @enum {number}
2517
+ */
2518
+ proto.lansweeper.install.v1.InstallStateValue = {
2519
+ UNESPECIFIED: 0,
2520
+ LINKED: 1,
2521
+ UNLINKED: 2
2522
+ };
2523
+
1601
2524
  goog.object.extend(exports, proto.lansweeper.install.v1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lansweeper/install-api-grpc",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "install api grpc",
5
5
  "main": "gen-proto/index.js",
6
6
  "types": "gen-proto/index.d.ts",
@@ -16,5 +16,5 @@
16
16
  "devDependencies": {
17
17
  "@types/google-protobuf": "^3.15.5"
18
18
  },
19
- "gitHead": "1b8cb0bdaf7fcb4f1f20fa1e7508edd112b76a9e"
19
+ "gitHead": "4a94c6ec117a0a7a5ade74a57612af673cd37774"
20
20
  }
@@ -1,5 +1,7 @@
1
1
  syntax = "proto3";
2
2
 
3
+ import "google/protobuf/timestamp.proto";
4
+
3
5
  package lansweeper.install.v1;
4
6
 
5
7
  option go_package = "./generated-go";
@@ -45,9 +47,45 @@ message HubCertificateInstallation {
45
47
  string hub_certificate = 3;
46
48
  }
47
49
 
50
+ enum InstallType {
51
+ IT=0;
52
+ OT=1;
53
+ IT_AGENT=2;
54
+ CLOUD=3;
55
+ NETWORK_DISCOVERY=4;
56
+ }
57
+
58
+ enum InstallStateValue {
59
+ UNESPECIFIED = 0;
60
+ LINKED = 1;
61
+ UNLINKED = 2;
62
+ }
63
+
64
+ message Installation {
65
+ string id = 1;
66
+ string site_id = 2;
67
+ InstallType type = 3;
68
+ InstallStateValue state = 4;
69
+ google.protobuf.Timestamp synced_at = 5;
70
+ }
71
+
72
+ message GetInstallationsBySiteRequest {
73
+ string site_id = 1;
74
+ message Filter {
75
+ optional InstallType type=1;
76
+ optional google.protobuf.Timestamp synced_at = 2;
77
+ }
78
+ optional Filter filter = 2;
79
+ }
80
+
81
+ message GetInstallationsBySiteResponse {
82
+ repeated Installation installations = 1;
83
+ }
84
+
48
85
  service InstallService {
49
86
  rpc GetHubCertificates(GetHubCertificatesRequest) returns (GetHubCertificatesResponse) {}
50
87
  rpc SetPublicKey(SetPublicKeyRequest) returns (SetPublicKeyResponse) {}
51
88
  rpc SetHubCertificate(SetHubCertificateRequest) returns (SetHubCertificateResponse) {}
52
89
  rpc RemoveHubCertificate(RemoveHubCertificateRequest) returns (RemoveHubCertificateResponse) {}
90
+ rpc GetInstallationsBySite(GetInstallationsBySiteRequest) returns (GetInstallationsBySiteResponse) {}
53
91
  }