From 97c4e19c76b7f072ce8507cb7e7a527582111272 Mon Sep 17 00:00:00 2001 From: Maksym Arutyunyan <103510076+maksymar@users.noreply.github.com> Date: Fri, 6 Sep 2024 21:10:42 +0200 Subject: [PATCH] feat: add AllowedViewers variant to LogVisibility enum (#512) --- src/ic-cdk/CHANGELOG.md | 2 ++ src/ic-cdk/src/api/management_canister/main/types.rs | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/ic-cdk/CHANGELOG.md b/src/ic-cdk/CHANGELOG.md index 3bd84028..2acde0b7 100644 --- a/src/ic-cdk/CHANGELOG.md +++ b/src/ic-cdk/CHANGELOG.md @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [unreleased] +* Add `AllowedViewers` to `LogVisibility` enum. + ## [0.16.0] - 2024-08-27 ### Changed diff --git a/src/ic-cdk/src/api/management_canister/main/types.rs b/src/ic-cdk/src/api/management_canister/main/types.rs index d08ca652..ec68304d 100644 --- a/src/ic-cdk/src/api/management_canister/main/types.rs +++ b/src/ic-cdk/src/api/management_canister/main/types.rs @@ -16,6 +16,9 @@ pub enum LogVisibility { #[serde(rename = "public")] /// Everyone is allowed to access the canister's logs. Public, + #[serde(rename = "allowed_viewers")] + /// Canister logs are visible to a set of principals. + AllowedViewers(Vec), } /// Canister settings.