From 297eeb652853b9d6c1493504365826a8c57fa100 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 5 Nov 2024 13:17:40 +0000 Subject: [PATCH] feat: Automated regeneration of FCM client --- clients/fcm/README.md | 2 +- clients/fcm/lib/google_api/fcm/v1/metadata.ex | 2 +- clients/fcm/lib/google_api/fcm/v1/model/apns_config.ex | 3 +++ clients/fcm/mix.exs | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/clients/fcm/README.md b/clients/fcm/README.md index 5c126ad291..4cc323ec5a 100644 --- a/clients/fcm/README.md +++ b/clients/fcm/README.md @@ -11,7 +11,7 @@ Install this package from [Hex](https://hex.pm) by adding ```elixir def deps do - [{:google_api_fcm, "~> 0.12"}] + [{:google_api_fcm, "~> 0.13"}] end ``` diff --git a/clients/fcm/lib/google_api/fcm/v1/metadata.ex b/clients/fcm/lib/google_api/fcm/v1/metadata.ex index 88057b16eb..1bc8c052b0 100644 --- a/clients/fcm/lib/google_api/fcm/v1/metadata.ex +++ b/clients/fcm/lib/google_api/fcm/v1/metadata.ex @@ -20,7 +20,7 @@ defmodule GoogleApi.FCM.V1 do API client metadata for GoogleApi.FCM.V1. """ - @discovery_revision "20240524" + @discovery_revision "20241101" def discovery_revision(), do: @discovery_revision end diff --git a/clients/fcm/lib/google_api/fcm/v1/model/apns_config.ex b/clients/fcm/lib/google_api/fcm/v1/model/apns_config.ex index 4ad760d65b..b363b9014d 100644 --- a/clients/fcm/lib/google_api/fcm/v1/model/apns_config.ex +++ b/clients/fcm/lib/google_api/fcm/v1/model/apns_config.ex @@ -23,6 +23,7 @@ defmodule GoogleApi.FCM.V1.Model.ApnsConfig do * `fcmOptions` (*type:* `GoogleApi.FCM.V1.Model.ApnsFcmOptions.t`, *default:* `nil`) - Options for features provided by the FCM SDK for iOS. * `headers` (*type:* `map()`, *default:* `nil`) - HTTP request headers defined in Apple Push Notification Service. Refer to [APNs request headers](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns) for supported headers such as `apns-expiration` and `apns-priority`. The backend sets a default value for `apns-expiration` of 30 days and a default value for `apns-priority` of 10 if not explicitly set. + * `liveActivityToken` (*type:* `String.t`, *default:* `nil`) - Optional. [Apple Live Activity](https://developer.apple.com/design/human-interface-guidelines/live-activities) token to send updates to. This token can either be a push token or [push-to-start](https://developer.apple.com/documentation/activitykit/activity/pushtostarttoken) token from Apple. * `payload` (*type:* `map()`, *default:* `nil`) - APNs payload as a JSON object, including both `aps` dictionary and custom payload. See [Payload Key Reference](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/generating_a_remote_notification). If present, it overrides google.firebase.fcm.v1.Notification.title and google.firebase.fcm.v1.Notification.body. """ @@ -31,11 +32,13 @@ defmodule GoogleApi.FCM.V1.Model.ApnsConfig do @type t :: %__MODULE__{ :fcmOptions => GoogleApi.FCM.V1.Model.ApnsFcmOptions.t() | nil, :headers => map() | nil, + :liveActivityToken => String.t() | nil, :payload => map() | nil } field(:fcmOptions, as: GoogleApi.FCM.V1.Model.ApnsFcmOptions) field(:headers, type: :map) + field(:liveActivityToken) field(:payload, type: :map) end diff --git a/clients/fcm/mix.exs b/clients/fcm/mix.exs index fa273b0413..dda4eee014 100644 --- a/clients/fcm/mix.exs +++ b/clients/fcm/mix.exs @@ -18,7 +18,7 @@ defmodule GoogleApi.FCM.Mixfile do use Mix.Project - @version "0.12.0" + @version "0.13.0" def project() do [