From 729abb715833f5d732e78469dc33487b4e0637d1 Mon Sep 17 00:00:00 2001 From: Matthias Hogerheijde Date: Tue, 3 Sep 2024 09:31:35 +0200 Subject: [PATCH] 0.207.0 --- CHANGELOG.md | 21 + asset.proto | 4 +- asset_service.proto | 2 +- assignment.proto | 2 +- base.proto | 2 +- certificate.proto | 2 +- currentuser.proto | 2 +- device.proto | 2 +- device_service.proto | 2 +- device_type.proto | 2 +- device_type_service.proto | 2 +- docs/html/asset.html | 1025 +++++++++++++++++++++--- docs/html/asset_service.html | 88 +- docs/html/assignment.html | 88 +- docs/html/device.html | 81 +- docs/html/event.html | 102 ++- docs/html/field_service.html | 14 + docs/html/integration_mqtt.html | 81 +- docs/html/integration_slack.html | 81 +- docs/html/message.html | 81 +- docs/html/modem.html | 81 +- docs/html/publisher.html | 81 +- docs/html/tag.html | 81 +- docs/html/token.html | 14 + docs/html/value_service.html | 16 +- docs/html/webhook.html | 81 +- docs/md/asset.md | 96 +++ docs/md/asset_service.md | 1 + docs/md/assignment.md | 1 + docs/md/event.md | 3 + docs/md/field_service.md | 2 + docs/md/tag.md | 20 +- docs/md/token.md | 2 + docs/md/value_service.md | 3 +- email_notifications.proto | 2 +- event-json-examples/asset-created.json | 9 + event.proto | 2 +- export.proto | 2 +- field.proto | 2 +- field_service.proto | 3 +- health.proto | 2 +- integration_mqtt.proto | 2 +- integration_slack.proto | 2 +- map.proto | 2 +- message.proto | 2 +- modem.proto | 2 +- modem_alarm.proto | 2 +- modem_message_body_parser.proto | 2 +- named_location.proto | 2 +- organization.proto | 2 +- permission.proto | 2 +- publisher.proto | 2 +- role.proto | 2 +- role_service.proto | 2 +- simulation.proto | 2 +- simulation_service.proto | 2 +- sso.proto | 2 +- tag.proto | 20 +- testing.proto | 2 +- token.proto | 8 +- transfer.proto | 2 +- transfer_service.proto | 2 +- unit_preferences_service.proto | 2 +- user.proto | 2 +- value.proto | 2 +- value_service.proto | 7 +- webhook.proto | 2 +- 67 files changed, 2087 insertions(+), 182 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 79567e3..62bcfb2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,26 @@ # Changelog Hiber API +### 0.207 (2024-09-03) + +##### TokenService + +- Added `Token.last_used` with the date the token was last used. +- Added `Token.used_for_this_call` to show that this token was used to make the call that resulted in this list of tokens. + +##### TagService + +- Added `ListTagsRequest.asset_count` to count the assets for the listed tags. + - Added `ListTagsRequest.Response.tag_asset_count` for the result. + +##### AssetService + +- Added `Asset.AssignedDevice.health` to see the health of assigned device(s). + +##### ValueService + +- Removed the `repeated` flag on `ValueContext.assets` and renamed the field to `asset`. + - Values with multiple assets will be repeated instead. + ### 0.204 (2024-08-06) ##### AssetService diff --git a/asset.proto b/asset.proto index 85b196e..5a59b3a 100644 --- a/asset.proto +++ b/asset.proto @@ -4,13 +4,14 @@ package hiber.asset; import "google/protobuf/struct.proto"; import "base.proto"; +import "health.proto"; import "tag.proto"; import "value.proto"; option java_multiple_files = false; option java_package = "global.hiber.api.grpc.asset"; option java_outer_classname = "AssetApi"; -option go_package = "hiber"; +option go_package = ".;hiber"; /* Assets are things that collect the data produced by devices. * Devices are assigned to assets to handle data ownership. @@ -51,6 +52,7 @@ message Asset { optional Timestamp last_message_sent_at = 5; optional Timestamp last_message_received_at = 6; optional TimeRange assignment_time_range = 7; + optional health.HealthLevel health = 8; } string identifier = 1; diff --git a/asset_service.proto b/asset_service.proto index 028a093..eb13ccc 100644 --- a/asset_service.proto +++ b/asset_service.proto @@ -13,7 +13,7 @@ import "value.proto"; option java_multiple_files = false; option java_package = "global.hiber.api.grpc.asset"; option java_outer_classname = "AssetServiceApi"; -option go_package = "hiber"; +option go_package = ".;hiber"; /* Manage Assets in your organization, creating new assets, * updating or deleting them in bulk and changing assigned tags and devices. diff --git a/assignment.proto b/assignment.proto index cacb1ab..a5d58c9 100644 --- a/assignment.proto +++ b/assignment.proto @@ -14,7 +14,7 @@ import "tag.proto"; option java_multiple_files = false; option java_package = "global.hiber.api.grpc.assign"; option java_outer_classname = "AssignmentApi"; -option go_package = "hiber"; +option go_package = ".;hiber"; service AssignmentService { /* List assignments. */ diff --git a/base.proto b/base.proto index 2a7cc5d..cb34b22 100644 --- a/base.proto +++ b/base.proto @@ -8,7 +8,7 @@ import "permission.proto"; option java_multiple_files = true; option java_package = "global.hiber.api.grpc"; -option go_package = "hiber"; +option go_package = ".;hiber"; /* Update object for an int that can be set to 0. * diff --git a/certificate.proto b/certificate.proto index 7ec5d40..c130424 100644 --- a/certificate.proto +++ b/certificate.proto @@ -7,7 +7,7 @@ import "base.proto"; option java_multiple_files = false; option java_package = "global.hiber.api.grpc.certificate"; option java_outer_classname = "CertificateApi"; -option go_package = "hiber"; +option go_package = ".;hiber"; service CertificateService { rpc List (ListCertificatesRequest) returns (ListCertificatesRequest.Response); diff --git a/currentuser.proto b/currentuser.proto index ed331ff..cb991ce 100644 --- a/currentuser.proto +++ b/currentuser.proto @@ -9,7 +9,7 @@ import "role.proto"; option java_multiple_files = false; option java_package = "global.hiber.api.grpc.user"; option java_outer_classname = "CurrentUserApi"; -option go_package = "hiber"; +option go_package = ".;hiber"; /* Calls related to the current user. Typically, a newly created user only has access to these calls, all * others require an organization to be linked. diff --git a/device.proto b/device.proto index 989fd81..7173544 100644 --- a/device.proto +++ b/device.proto @@ -13,7 +13,7 @@ import "value.proto"; option java_multiple_files = false; option java_package = "global.hiber.api.grpc.device"; option java_outer_classname = "DeviceApi"; -option go_package = "hiber"; +option go_package = ".;hiber"; /* Information about a device. * A device is anything in the Hiber network that can send data to our systems. diff --git a/device_service.proto b/device_service.proto index cb85896..57c9fc6 100644 --- a/device_service.proto +++ b/device_service.proto @@ -15,7 +15,7 @@ import "value.proto"; option java_multiple_files = false; option java_package = "global.hiber.api.grpc.device"; option java_outer_classname = "DeviceServiceApi"; -option go_package = "hiber"; +option go_package = ".;hiber"; /* At the core of the Hiber system, devices are the network nodes that send information and user data. * This service contains calls to list and manage devices. diff --git a/device_type.proto b/device_type.proto index e8ab1f5..ec29a74 100644 --- a/device_type.proto +++ b/device_type.proto @@ -4,7 +4,7 @@ package hiber.device.type; option java_multiple_files = true; option java_package = "global.hiber.api.grpc.device.type"; -option go_package = "hiber"; +option go_package = ".;hiber"; /* Preconfigured device type. */ message DeviceType { diff --git a/device_type_service.proto b/device_type_service.proto index 4a7581a..562ad64 100644 --- a/device_type_service.proto +++ b/device_type_service.proto @@ -11,7 +11,7 @@ import "device_type.proto"; option java_multiple_files = false; option java_package = "global.hiber.api.grpc.device.type"; option java_outer_classname = "DeviceTypeApi"; -option go_package = "hiber"; +option go_package = ".;hiber"; service DeviceTypeService { rpc List (ListDeviceTypes.Request) returns (ListDeviceTypes.Response); diff --git a/docs/html/asset.html b/docs/html/asset.html index aab660c..80887d0 100644 --- a/docs/html/asset.html +++ b/docs/html/asset.html @@ -412,6 +412,97 @@

Table of Contents

+
  • + health.proto + +
  • + +
  • tag.proto