From 2f9d202c9bbfda08c13752941bbdbd447fa36ccb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 27 May 2025 15:46:49 +0000 Subject: [PATCH] feat: APIs update from https://github.com/anduril/apis/commit/dbee5118f1ee13f44c7c084226c3bd8037907f40 --- src/anduril/entitymanager/v1/__init__.py | 58 +++++++++++------------- 1 file changed, 27 insertions(+), 31 deletions(-) diff --git a/src/anduril/entitymanager/v1/__init__.py b/src/anduril/entitymanager/v1/__init__.py index c22a2bb..7a48429 100644 --- a/src/anduril/entitymanager/v1/__init__.py +++ b/src/anduril/entitymanager/v1/__init__.py @@ -186,6 +186,12 @@ class AlertLevel(betterproto.Enum): """For conditions that require immediate awareness and response.""" +class MediaType(betterproto.Enum): + INVALID = 0 + IMAGE = 2 + VIDEO = 3 + + class AltIdType(betterproto.Enum): """The type of alternate id.""" @@ -625,14 +631,6 @@ class EventType(betterproto.Enum): """entity override was set after the entity expiration.""" -class MediaType(betterproto.Enum): - INVALID = 0 - THUMBNAIL = 1 - IMAGE = 2 - VIDEO = 3 - SLIPPY_TILES = 4 - - @dataclass(eq=False, repr=False) class Classification(betterproto.Message): """ @@ -1231,6 +1229,22 @@ class AlertCondition(betterproto.Message): """ +@dataclass(eq=False, repr=False) +class Media(betterproto.Message): + """Media associated with an entity.""" + + media: List["MediaItem"] = betterproto.message_field(1) + + +@dataclass(eq=False, repr=False) +class MediaItem(betterproto.Message): + type: "MediaType" = betterproto.enum_field(2) + relative_path: str = betterproto.string_field(3) + """ + The path, relative to the environment base URL, where media related to an entity can be accessed + """ + + @dataclass(eq=False, repr=False) class UInt32Range(betterproto.Message): lower_bound: int = betterproto.uint32_field(1) @@ -2112,6 +2126,11 @@ class Entity(betterproto.Message): task_catalog: "__tasks_v2__.TaskCatalog" = betterproto.message_field(31) """A catalog of tasks that can be performed by an entity.""" + media: "Media" = betterproto.message_field(32) + """ + Media associated with an entity, such as videos, images, or thumbnails. + """ + relationships: "Relationships" = betterproto.message_field(33) """ The relationships between this entity and other entities in the common operational picture (COP). @@ -3002,29 +3021,6 @@ class WithinComparison(betterproto.Message): pass -@dataclass(eq=False, repr=False) -class Media(betterproto.Message): - """Media associated with an entity.""" - - media: List["MediaItem"] = betterproto.message_field(1) - - -@dataclass(eq=False, repr=False) -class MediaItem(betterproto.Message): - url: str = betterproto.string_field(1) - """ - To Be Deprecated, use relative_path. - The url where the media related to an entity can be accessed - """ - - type: "MediaType" = betterproto.enum_field(2) - relative_path: str = betterproto.string_field(3) - """ - The relative path where the media related to an entity can be accessed when used to query against a blobs service - node. - """ - - @dataclass(eq=False, repr=False) class OverrideNotificationPayload(betterproto.Message): """A notification to indicate when a field is overridden on an entity."""