From 357bfe90797819e53f68c260ee3ed06e7be569c3 Mon Sep 17 00:00:00 2001 From: Barkin Simsek Date: Mon, 19 Jan 2026 13:09:13 +0900 Subject: [PATCH] Re-generate graph API. --- CHANGELOG.md | 4 + python/mujinwebstackclient/version.py | 2 +- .../webstackgraphclient.py | 176 +++++++++++++++++- 3 files changed, 178 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c5a9ed6..01ff08b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.9.28 (2026-01-19) + +- Re-generate graph api. + ## 0.9.27 (2026-01-14) ### Changes diff --git a/python/mujinwebstackclient/version.py b/python/mujinwebstackclient/version.py index b008342..f3a742f 100644 --- a/python/mujinwebstackclient/version.py +++ b/python/mujinwebstackclient/version.py @@ -1,3 +1,3 @@ -__version__ = '0.9.27' +__version__ = '0.9.28' # Do not forget to update CHANGELOG.md diff --git a/python/mujinwebstackclient/webstackgraphclient.py b/python/mujinwebstackclient/webstackgraphclient.py index 889fd51..e51edbb 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.36.5+2d8243f00f38c1ebf0ab0d3a8eedd62886c5fa8f +# GENERATED AGAINST: mujinwebstack/3.1.0+b10543f54c276b552bfe7157162398a1505ae3b0 # import warnings @@ -136,6 +136,27 @@ def CommandSensorBridgesEx( parameterNameTypeValues: List[Tuple[str, str, Any]] = [] return self._CallSimpleGraphAPI('query', operationName='CommandSensorBridgesEx', parameterNameTypeValues=parameterNameTypeValues, returnType='CommandSensorBridgesExQueries', fields=fields, timeout=timeout) + def CommandVisionManagerEx( + self, + slaverequestid: str, + fields: Optional[Union[List[str], Dict[str, Any]]] = None, + timeout: Optional[float] = None, + ) -> Any: + """ + + Args: + slaverequestid (str): + fields (list or dict, optional): Specifies a subset of fields to return. + timeout (float, optional): Number of seconds to wait for response. + + Returns: + CommandVisionManagerExQueries: + """ + parameterNameTypeValues: List[Tuple[str, str, Any]] = [ + ('slaverequestid', 'String!', slaverequestid), + ] + return self._CallSimpleGraphAPI('query', operationName='CommandVisionManagerEx', parameterNameTypeValues=parameterNameTypeValues, returnType='CommandVisionManagerExQueries', fields=fields, timeout=timeout) + def ConfigureRobotBridgesEx( self, fields: Optional[Union[List[str], Dict[str, Any]]] = None, @@ -404,6 +425,27 @@ def GetApplicationConfiguration( ] return self._CallSimpleGraphAPI('query', operationName='GetApplicationConfiguration', parameterNameTypeValues=parameterNameTypeValues, returnType='Configuration', fields=fields, timeout=timeout) + def GetApplicationTemplate( + self, + applicationTemplateId: str, + fields: Optional[Union[List[str], Dict[str, Any]]] = None, + timeout: Optional[float] = None, + ) -> Any: + """Get a specific application template. + + Args: + applicationTemplateId (str): ID of an existing application template. + fields (list or dict, optional): Specifies a subset of fields to return. + timeout (float, optional): Number of seconds to wait for response. + + Returns: + ApplicationTemplate: ApplicationTemplate for the frontend. + """ + parameterNameTypeValues: List[Tuple[str, str, Any]] = [ + ('applicationTemplateId', 'String!', applicationTemplateId), + ] + return self._CallSimpleGraphAPI('query', operationName='GetApplicationTemplate', parameterNameTypeValues=parameterNameTypeValues, returnType='ApplicationTemplate', fields=fields, timeout=timeout) + def GetAttachedSensor( self, attachedSensorId: str, @@ -548,6 +590,23 @@ def GetConfigurationRevision( ] return self._CallSimpleGraphAPI('query', operationName='GetConfigurationRevision', parameterNameTypeValues=parameterNameTypeValues, returnType='ConfigurationRevision', fields=fields, timeout=timeout) + def GetConfigurationsResetToken( + self, + fields: Optional[Union[List[str], Dict[str, Any]]] = None, + timeout: Optional[float] = None, + ) -> str: + """GetConfigurationsResetToken returns a unique token which the caller must provide to ResetConfigurations to complete the reset. + + Args: + fields (list or dict, optional): Specifies a subset of fields to return. + timeout (float, optional): Number of seconds to wait for response. + + Returns: + str: The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text. + """ + parameterNameTypeValues: List[Tuple[str, str, Any]] = [] + return self._CallSimpleGraphAPI('query', operationName='GetConfigurationsResetToken', parameterNameTypeValues=parameterNameTypeValues, returnType='String', fields=fields, timeout=timeout) + def GetConnectedBody( self, bodyId: str, @@ -581,6 +640,23 @@ def GetConnectedBody( ] return self._CallSimpleGraphAPI('query', operationName='GetConnectedBody', parameterNameTypeValues=parameterNameTypeValues, returnType='ConnectedBody', fields=fields, timeout=timeout) + def GetControllerResetToken( + self, + fields: Optional[Union[List[str], Dict[str, Any]]] = None, + timeout: Optional[float] = None, + ) -> str: + """GetControllerResetToken returns a token which the caller must provide to ResetController to complete the reset. + + Args: + fields (list or dict, optional): Specifies a subset of fields to return. + timeout (float, optional): Number of seconds to wait for response. + + Returns: + str: The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text. + """ + parameterNameTypeValues: List[Tuple[str, str, Any]] = [] + return self._CallSimpleGraphAPI('query', operationName='GetControllerResetToken', parameterNameTypeValues=parameterNameTypeValues, returnType='String', fields=fields, timeout=timeout) + def GetControllerSystemConfiguration( self, applicationId: Optional[str] = None, @@ -1351,6 +1427,9 @@ def GetLogEntry( ├─ PalletSandwicherLogEntry ├─ PalletStackerLogEntry ├─ MobileRobotControlSystemLogEntry + ├─ GenericOccurrenceMetricLogEntry + ├─ GenericDistributionMetricLogEntry + ├─ GenericTimeDurationMetricLogEntry └─ GraspSetLogEntry ``` """ @@ -2500,6 +2579,28 @@ def ListApplicationConfigurations( ] return self._CallSimpleGraphAPI('query', operationName='ListApplicationConfigurations', parameterNameTypeValues=parameterNameTypeValues, returnType='ListApplicationConfigurationsReturnValue', fields=fields, timeout=timeout) + @UseLazyGraphQuery + def ListApplicationTemplates( + self, + options: Optional[Any] = None, + fields: Optional[Union[List[str], Dict[str, Any]]] = None, + timeout: Optional[float] = None, + ) -> Any: + """List all application templates. + + Args: + options (ListOptionsWithAggregationsInput, optional): + fields (list or dict, optional): Specifies a subset of fields to return. + timeout (float, optional): Number of seconds to wait for response. + + Returns: + ListApplicationTemplatesReturnValue: + """ + parameterNameTypeValues: List[Tuple[str, str, Any]] = [ + ('options', 'ListOptionsWithAggregationsInput', options), + ] + return self._CallSimpleGraphAPI('query', operationName='ListApplicationTemplates', parameterNameTypeValues=parameterNameTypeValues, returnType='ListApplicationTemplatesReturnValue', fields=fields, timeout=timeout) + @UseLazyGraphQuery def ListAttachedSensors( self, @@ -7730,6 +7831,30 @@ def IdentifyNetworkInterface( ] return self._CallSimpleGraphAPI('mutation', operationName='IdentifyNetworkInterface', parameterNameTypeValues=parameterNameTypeValues, returnType='Void', fields=fields, timeout=timeout) + def InstantiateApplicationTemplate( + self, + applicationTemplateId: str, + applicationConfiguration: Optional[Any] = None, + fields: Optional[Union[List[str], Dict[str, Any]]] = None, + timeout: Optional[float] = None, + ) -> Any: + """Instantiate an application template. + + Args: + applicationTemplateId (str): ID of the application template to instantiate. + applicationConfiguration (ApplicationConfigurationInput, optional): Properties to be applied on the newly created application configuration. + fields (list or dict, optional): Specifies a subset of fields to return. + timeout (float, optional): Number of seconds to wait for response. + + Returns: + InstantiateApplicationTemplateReturnValue: The result of an application template instantiation. + """ + parameterNameTypeValues: List[Tuple[str, str, Any]] = [ + ('applicationTemplateId', 'String!', applicationTemplateId), + ('applicationConfiguration', 'ApplicationConfigurationInput', applicationConfiguration), + ] + return self._CallSimpleGraphAPI('mutation', operationName='InstantiateApplicationTemplate', parameterNameTypeValues=parameterNameTypeValues, returnType='InstantiateApplicationTemplateReturnValue', fields=fields, timeout=timeout) + def Login( self, username: str, @@ -9287,6 +9412,51 @@ def RemoveUserPassword( ] return self._CallSimpleGraphAPI('mutation', operationName='RemoveUserPassword', parameterNameTypeValues=parameterNameTypeValues, returnType='Void', fields=fields, timeout=timeout) + def ResetConfigurations( + self, + token: str, + fields: Optional[Union[List[str], Dict[str, Any]]] = None, + timeout: Optional[float] = None, + ) -> None: + """ResetConfigurations resets all user configurations to their default values. +This operation is irreversible and it is recommended to backup the data before calling this api. + + Args: + token (str): Token for configuration reset + 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]] = [ + ('token', 'String!', token), + ] + return self._CallSimpleGraphAPI('mutation', operationName='ResetConfigurations', parameterNameTypeValues=parameterNameTypeValues, returnType='Void', fields=fields, timeout=timeout) + + def ResetController( + self, + token: str, + fields: Optional[Union[List[str], Dict[str, Any]]] = None, + timeout: Optional[float] = None, + ) -> None: + """ResetController resets the controller and restarts the runtime container. +This is an irreversible destructive operation and will remove all user data such as accounts, configurations, environments, ITL programs etc. +It is highly recommended to backup the data before calling this api. + + Args: + token (str): Token for controller reset + 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]] = [ + ('token', 'String!', token), + ] + return self._CallSimpleGraphAPI('mutation', operationName='ResetController', parameterNameTypeValues=parameterNameTypeValues, returnType='Void', fields=fields, timeout=timeout) + def RestartPlanningServer( self, fields: Optional[Union[List[str], Dict[str, Any]]] = None, @@ -10686,13 +10856,13 @@ def CallbackFunction(error: Optional[ControllerGraphClientException], response: fields (list or dict, optional): Specifies a subset of fields to return. Returns: - SubscribeVisionManagerMasterStateReturns: + VisionManagerPublishedState: """ parameterNameTypeValues: List[Tuple[str, str, Any]] = [ ('interval', 'String', interval), ('units', 'UnitSelectionInput', units), ] - return self._CallSubscribeGraphAPI(operationName='SubscribeVisionManagerMasterState', parameterNameTypeValues=parameterNameTypeValues, returnType='SubscribeVisionManagerMasterStateReturns', callbackFunction=callbackFunction, fields=fields) + return self._CallSubscribeGraphAPI(operationName='SubscribeVisionManagerMasterState', parameterNameTypeValues=parameterNameTypeValues, returnType='VisionManagerPublishedState', callbackFunction=callbackFunction, fields=fields) def SubscribeWarehouseExecutionOrchestratorState( self,