diff --git a/CHANGELOG.md b/CHANGELOG.md index 14f866d..af707a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.9.26 (2025-12-11) + +### Changes + +- Re-generate graph api. + ## 0.9.25 (2025-12-05) ### Changes diff --git a/python/mujinwebstackclient/version.py b/python/mujinwebstackclient/version.py index 2da2b2e..d003960 100644 --- a/python/mujinwebstackclient/version.py +++ b/python/mujinwebstackclient/version.py @@ -1,3 +1,3 @@ -__version__ = '0.9.25' +__version__ = '0.9.26' # Do not forget to update CHANGELOG.md diff --git a/python/mujinwebstackclient/webstackgraphclient.py b/python/mujinwebstackclient/webstackgraphclient.py index 803ff4c..889fd51 100644 --- a/python/mujinwebstackclient/webstackgraphclient.py +++ b/python/mujinwebstackclient/webstackgraphclient.py @@ -2,7 +2,7 @@ # # DO NOT EDIT, THIS FILE WAS AUTO-GENERATED # GENERATED BY: mujin_webstackclientpy_generategraphclient.py -# GENERATED AGAINST: mujinwebstack/2.35.29+e5dac01fbda79dacb960549c4aa193d5da9bbba5 +# GENERATED AGAINST: mujinwebstack/2.36.5+2d8243f00f38c1ebf0ab0d3a8eedd62886c5fa8f # import warnings @@ -1290,11 +1290,15 @@ def GetLogEntry( │ │ └─ CalibrationVisionBoardDotMaskLogEntry │ ├─ CalibrationVisionResultIntrinsicsLogEntry │ ├─ CalibrationVisionModelParametersIntrinsicsLogEntry + │ │ └─ CalibrationVisionModelParametersAppliedLogEntry │ ├─ CalibrationVisionResultRelativeLogEntry │ ├─ CalibrationVisionResultHandEyeLogEntry │ ├─ CalibrationVisionModelParametersHandEyeLogEntry + │ │ └─ CalibrationVisionModelParametersAppliedLogEntry │ ├─ CalibrationVisionModelParametersRelativeLogEntry + │ │ └─ CalibrationVisionModelParametersAppliedLogEntry │ └─ CalibrationVisionSingleShotModelParametersLogEntry + │ └─ CalibrationVisionModelParametersAppliedLogEntry ├─ AccountUserChangeLogEntry ├─ AccountGroupChangeLogEntry ├─ AccountRoleChangeLogEntry @@ -2342,6 +2346,23 @@ def IsAttachedSensorMoveable( ] return self._CallSimpleGraphAPI('query', operationName='IsAttachedSensorMoveable', parameterNameTypeValues=parameterNameTypeValues, returnType='Boolean', fields=fields, timeout=timeout) + def IsRuntimeContainerModified( + self, + fields: Optional[Union[List[str], Dict[str, Any]]] = None, + timeout: Optional[float] = None, + ) -> bool: + """Check if there are changes in current runtime container. + + Args: + fields (list or dict, optional): Specifies a subset of fields to return. + timeout (float, optional): Number of seconds to wait for response. + + Returns: + bool: The `Boolean` scalar type represents `true` or `false`. + """ + parameterNameTypeValues: List[Tuple[str, str, Any]] = [] + return self._CallSimpleGraphAPI('query', operationName='IsRuntimeContainerModified', parameterNameTypeValues=parameterNameTypeValues, returnType='Boolean', fields=fields, timeout=timeout) + def IsSensorLinkMoveable( self, bodyName: str, @@ -4879,6 +4900,30 @@ def CommandWarehouseExecutionOrchestrator( ] return self._CallSimpleGraphAPI('mutation', operationName='CommandWarehouseExecutionOrchestrator', parameterNameTypeValues=parameterNameTypeValues, returnType='CommandWarehouseExecutionOrchestratorMutations', fields=fields, timeout=timeout) + def CommitRuntimeContainer( + self, + comment: str, + pause: Optional[bool] = None, + fields: Optional[Union[List[str], Dict[str, Any]]] = None, + timeout: Optional[float] = None, + ) -> None: + """Commit current runtime container. + + Args: + comment (str): Commit from author + pause (bool, optional): Whether to pause the current runtime container while committing, if not specified, container is not paused. + fields (list or dict, optional): Specifies a subset of fields to return. + timeout (float, optional): Number of seconds to wait for response. + + Returns: + Void: + """ + parameterNameTypeValues: List[Tuple[str, str, Any]] = [ + ('comment', 'String!', comment), + ('pause', 'Boolean', pause), + ] + return self._CallSimpleGraphAPI('mutation', operationName='CommitRuntimeContainer', parameterNameTypeValues=parameterNameTypeValues, returnType='Void', fields=fields, timeout=timeout) + def ConfigureRobotBridges( self, command: str, @@ -9851,6 +9896,31 @@ def CallbackFunction(error: Optional[ControllerGraphClientException], response: ] return self._CallSubscribeGraphAPI(operationName='SubscribeCameraCalibrationOrchestratorState', parameterNameTypeValues=parameterNameTypeValues, returnType='CalibrationOrchestratorState', callbackFunction=callbackFunction, fields=fields) + def SubscribeCloudAgentState( + self, + callbackFunction: Callable[[Optional[Any], Optional[Dict[str, Any]]], None], + interval: str = '5s', + fields: Optional[Union[List[str], Dict[str, Any]]] = None, + ) -> Subscription: + """ + + Args: + callbackFunction (Callable[[Optional[ControllerGraphClientException], Optional[dict]], None]): + A function with signature that will be called when the subscription is triggered: + def CallbackFunction(error: Optional[ControllerGraphClientException], response: Optional[dict]) -> None + - error: Contains an error message (or `None` if no error occurred). + - response: Contains the returned payload (or `None` if an error occurred). + interval (str, optional): Interval at which the subscription rate should not exceed, for example "2s" or "200ms" + fields (list or dict, optional): Specifies a subset of fields to return. + + Returns: + CloudAgentState: + """ + parameterNameTypeValues: List[Tuple[str, str, Any]] = [ + ('interval', 'String', interval), + ] + return self._CallSubscribeGraphAPI(operationName='SubscribeCloudAgentState', parameterNameTypeValues=parameterNameTypeValues, returnType='CloudAgentState', callbackFunction=callbackFunction, fields=fields) + def SubscribeConfigurationChange( self, callbackFunction: Callable[[Optional[Any], Optional[Dict[str, Any]]], None],