From 89c9d2489a9bb7529ea1f65d592b1450cb4a2ca8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 28 May 2025 17:31:56 +0000 Subject: [PATCH] feat: APIs update from https://github.com/anduril/apis/commit/e6ea994a62b29d3856f61f8408b3cb784e2a1a24 --- src/anduril/entitymanager/v1/__init__.py | 114 +---------------------- src/anduril/taskmanager/v1/__init__.py | 12 +-- 2 files changed, 3 insertions(+), 123 deletions(-) diff --git a/src/anduril/entitymanager/v1/__init__.py b/src/anduril/entitymanager/v1/__init__.py index 7a48429..278fbd3 100644 --- a/src/anduril/entitymanager/v1/__init__.py +++ b/src/anduril/entitymanager/v1/__init__.py @@ -1,8 +1,8 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# sources: anduril/entitymanager/v1/classification.pub.proto, anduril/entitymanager/v1/contact_details.pub.proto, anduril/entitymanager/v1/correlations.pub.proto, anduril/entitymanager/v1/dimensions.pub.proto, anduril/entitymanager/v1/entity.pub.proto, anduril/entitymanager/v1/entity_manager_grpcapi.pub.proto, anduril/entitymanager/v1/filter.pub.proto, anduril/entitymanager/v1/filter_dynamic.pub.proto, anduril/entitymanager/v1/geoentity.pub.proto, anduril/entitymanager/v1/group.pub.proto, anduril/entitymanager/v1/health_status.pub.proto, anduril/entitymanager/v1/location.pub.proto, anduril/entitymanager/v1/media.pub.proto, anduril/entitymanager/v1/notification.pub.proto, anduril/entitymanager/v1/ontology.pub.proto, anduril/entitymanager/v1/options.pub.proto, anduril/entitymanager/v1/orbit.pub.proto, anduril/entitymanager/v1/payloads.pub.proto, anduril/entitymanager/v1/power.pub.proto, anduril/entitymanager/v1/rate_limit.pub.proto, anduril/entitymanager/v1/relationship.pub.proto, anduril/entitymanager/v1/route_details.pub.proto, anduril/entitymanager/v1/schedule.pub.proto, anduril/entitymanager/v1/sensors.pub.proto, anduril/entitymanager/v1/signal.pub.proto, anduril/entitymanager/v1/supplies.pub.proto, anduril/entitymanager/v1/target_priority.pub.proto, anduril/entitymanager/v1/transponder_codes.pub.proto, anduril/entitymanager/v1/types.pub.proto +# sources: anduril/entitymanager/v1/classification.pub.proto, anduril/entitymanager/v1/dimensions.pub.proto, anduril/entitymanager/v1/entity.pub.proto, anduril/entitymanager/v1/entity_manager_grpcapi.pub.proto, anduril/entitymanager/v1/filter.pub.proto, anduril/entitymanager/v1/filter_dynamic.pub.proto, anduril/entitymanager/v1/geoentity.pub.proto, anduril/entitymanager/v1/group.pub.proto, anduril/entitymanager/v1/health_status.pub.proto, anduril/entitymanager/v1/location.pub.proto, anduril/entitymanager/v1/media.pub.proto, anduril/entitymanager/v1/ontology.pub.proto, anduril/entitymanager/v1/options.pub.proto, anduril/entitymanager/v1/orbit.pub.proto, anduril/entitymanager/v1/payloads.pub.proto, anduril/entitymanager/v1/power.pub.proto, anduril/entitymanager/v1/rate_limit.pub.proto, anduril/entitymanager/v1/relationship.pub.proto, anduril/entitymanager/v1/route_details.pub.proto, anduril/entitymanager/v1/schedule.pub.proto, anduril/entitymanager/v1/sensors.pub.proto, anduril/entitymanager/v1/signal.pub.proto, anduril/entitymanager/v1/supplies.pub.proto, anduril/entitymanager/v1/target_priority.pub.proto, anduril/entitymanager/v1/transponder_codes.pub.proto, anduril/entitymanager/v1/types.pub.proto # plugin: python-betterproto # This file has been @generated -import warnings + from dataclasses import dataclass from datetime import datetime from typing import ( @@ -42,42 +42,6 @@ class ClassificationLevels(betterproto.Enum): TOP_SECRET = 5 -class CorrelationStatus(betterproto.Enum): - """The status of the correlation.""" - - INVALID = 0 - MANUAL_INSPECTION = 1 - """ - potential correlation requested by manual inspection, not yet confirmed. - """ - - AUTO_SUGGESTED = 2 - """potential correlation suggested by system, not yet confirmed.""" - - START_CORRELATE = 3 - """deprecated""" - - CONFIRMED = 4 - """correlation has been confirmed, treat non primary as hidden.""" - - DENIED = 5 - """correlation was explicitly rejected, treat as non correlated.""" - - -class ScoreInterpretation(betterproto.Enum): - """The interpretation of the correlation score.""" - - INVALID = 0 - UNLIKELY = 1 - """unlikely these are the same entity""" - - LIKELY = 2 - """likely these are the same entity""" - - VERY_LIKELY = 3 - """very likely these are the same entity""" - - class GeoType(betterproto.Enum): """The type of geo entity.""" @@ -687,57 +651,6 @@ class ClassificationInformation(betterproto.Message): """ -@dataclass(eq=False, repr=False) -class ContactDetails(betterproto.Message): - """Contains details on how to make contact with an entity.""" - - phone_number: str = betterproto.string_field(1) - """The primary phone number for this entity.""" - - -@dataclass(eq=False, repr=False) -class Correlated(betterproto.Message): - """ - Available for Entities that are a correlated (N to 1) set of entities. This will be present on each entity in the - set. - """ - - primary_entity_id: str = betterproto.string_field(1) - """primary entity id""" - - status: "CorrelationStatus" = betterproto.enum_field(2) - """status representing this correlation""" - - scores: List["CorrelationScore"] = betterproto.message_field(3) - """score pairings between this and other entity ids""" - - expires_time: datetime = betterproto.message_field(4) - """if not present, does not expire""" - - -@dataclass(eq=False, repr=False) -class CorrelationScore(betterproto.Message): - """A correlation scoring between two entities.""" - - other_entity_id: str = betterproto.string_field(1) - score: float = betterproto.float_field(2) - interpretation: "ScoreInterpretation" = betterproto.enum_field(3) - link16_compliant: bool = betterproto.bool_field(4) - """Deprecated: do not use""" - - other_status: "CorrelationStatus" = betterproto.enum_field(5) - """ - status of other_entity_id correlation, expresses relationship of other to correlation set this entity is part of. - """ - - def __post_init__(self) -> None: - super().__post_init__() - if self.is_set("link16_compliant"): - warnings.warn( - "CorrelationScore.link16_compliant is deprecated", DeprecationWarning - ) - - @dataclass(eq=False, repr=False) class Dimensions(betterproto.Message): length_m: float = betterproto.float_field(1) @@ -3021,29 +2934,6 @@ class WithinComparison(betterproto.Message): pass -@dataclass(eq=False, repr=False) -class OverrideNotificationPayload(betterproto.Message): - """A notification to indicate when a field is overridden on an entity.""" - - entity: "Entity" = betterproto.message_field(1) - """ - The entity containing the values to override and the entityID being overriden. - Used by the client to determine the value a field is overridden to (e.g. hostile). - """ - - field_path: str = betterproto.string_field(2) - """ - The field path determining the path on an entity to override. Used by the client - to determine whether an override request was for a particular field (e.g. disposition). - """ - - provenance: "Provenance" = betterproto.message_field(3) - """ - The provenance of the override request. This should always match the OverrideEntityRequest - provenance field. - """ - - class EntityManagerApiStub(betterproto.ServiceStub): async def publish_entity( self, diff --git a/src/anduril/taskmanager/v1/__init__.py b/src/anduril/taskmanager/v1/__init__.py index 12231b5..6b844f3 100644 --- a/src/anduril/taskmanager/v1/__init__.py +++ b/src/anduril/taskmanager/v1/__init__.py @@ -1,5 +1,5 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! -# sources: anduril/taskmanager/v1/generic_spec.pub.proto, anduril/taskmanager/v1/task.pub.proto, anduril/taskmanager/v1/task_api.pub.proto, anduril/taskmanager/v1/task_manager_grpcapi.pub.proto +# sources: anduril/taskmanager/v1/task.pub.proto, anduril/taskmanager/v1/task_api.pub.proto, anduril/taskmanager/v1/task_manager_grpcapi.pub.proto # plugin: python-betterproto # This file has been @generated import warnings @@ -149,16 +149,6 @@ class QueryTasksRequestFilterType(betterproto.Enum): FILTER_TYPE_EXCLUSIVE = 2 -@dataclass(eq=False, repr=False) -class GenericSpec(betterproto.Message): - """ - GenericSpec is a wrapper for arbitrary JSON payloads. Meant for wrapping a Task's specification field, if needed. - """ - - payload: "betterproto_lib_google_protobuf.Value" = betterproto.message_field(1) - """Can represent any JSON value.""" - - @dataclass(eq=False, repr=False) class Task(betterproto.Message): """A Task is something an agent can be asked to do."""