From bac0ae96cda09e7993f91e8a02271cf3de7bfb88 Mon Sep 17 00:00:00 2001 From: "kuan-yu.chen" Date: Wed, 29 Oct 2025 14:41:50 +0900 Subject: [PATCH 1/6] Update webstack client graphql api --- .../webstackgraphclient.py | 235 +++++++++++++++++- 1 file changed, 228 insertions(+), 7 deletions(-) diff --git a/python/mujinwebstackclient/webstackgraphclient.py b/python/mujinwebstackclient/webstackgraphclient.py index 931ac11..85e7d29 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.34.23+6d3647b06ff15c20f5c09554ad343785e25954e7 +# GENERATED AGAINST: mujinwebstack/2.35.0+48dc897df600041e027eaa31d49cf0f4c89598f9 # import warnings @@ -35,6 +35,27 @@ def CommandBaseSystemOrchestrator( ] return self._CallSimpleGraphAPI('query', operationName='CommandBaseSystemOrchestrator', parameterNameTypeValues=parameterNameTypeValues, returnType='CommandBaseSystemOrchestratorQueries', fields=fields, timeout=timeout) + def CommandCameraCalibrationOrchestrator( + self, + orchestratorId: str, + fields: Optional[Union[List[str], Dict[str, Any]]] = None, + timeout: Optional[float] = None, + ) -> Any: + """ + + Args: + orchestratorId (str): + fields (list or dict, optional): Specifies a subset of fields to return. + timeout (float, optional): Number of seconds to wait for response. + + Returns: + CommandCameraCalibrationOrchestratorQueries: + """ + parameterNameTypeValues: List[Tuple[str, str, Any]] = [ + ('orchestratorId', 'String!', orchestratorId), + ] + return self._CallSimpleGraphAPI('query', operationName='CommandCameraCalibrationOrchestrator', parameterNameTypeValues=parameterNameTypeValues, returnType='CommandCameraCalibrationOrchestratorQueries', fields=fields, timeout=timeout) + def CommandPackingOrchestrator( self, orchestratorId: str, @@ -1164,7 +1185,7 @@ def GetLogEntry( Returns: LogEntry: An entry in the logs. The current parent-children level relationship among log entry types: - + ``` LogEntry ├─ GenericLogEntry @@ -1205,11 +1226,23 @@ def GetLogEntry( │ ├─ PackFormationOrderCycleLogEntry │ │ ├─ PackFormationOrderCycleFinishedLogEntry │ │ └─ ProductionOperationLogEntry - │ ├─ PalletWrapperOrderCycleOrderCycleLogEntry - │ │ ├─ PalletWrapperOrderCycleOrderCycleFinishedLogEntry + │ ├─ PalletWrapperOrderCycleLogEntry + │ │ ├─ PalletWrapperOrderCycleFinishedLogEntry + │ │ └─ ProductionOperationLogEntry + │ ├─ PalletStackerOrderCycleLogEntry + │ │ ├─ PalletStackerOrderCycleFinishedLogEntry │ │ └─ ProductionOperationLogEntry - │ ├─ LabelerOrderCycleOrderCycleLogEntry - │ │ ├─ LabelerOrderCycleOrderCycleFinishedLogEntry + │ ├─ PalletSandwicherOrderCycleLogEntry + │ │ ├─ PalletSandwicherOrderCycleFinishedLogEntry + │ │ └─ ProductionOperationLogEntry + │ ├─ LabelerOrderCycleLogEntry + │ │ ├─ LabelerOrderCycleFinishedLogEntry + │ │ └─ ProductionOperationLogEntry + │ ├─ TrashingOrderCycleLogEntry + │ │ ├─ TrashingOrderCycleFinishedLogEntry + │ │ └─ ProductionOperationLogEntry + │ ├─ ManualInspectionOrderCycleLogEntry + │ │ ├─ ManualInspectionOrderCycleFinishedLogEntry │ │ └─ ProductionOperationLogEntry │ ├─ VisionInspectionOrderCycleLogEntry │ │ ├─ VisionInspectionOrderCycleFinishedLogEntry @@ -1781,6 +1814,33 @@ def GetRobotMotionParameters( ] return self._CallSimpleGraphAPI('query', operationName='GetRobotMotionParameters', parameterNameTypeValues=parameterNameTypeValues, returnType='RobotMotionParameters', fields=fields, timeout=timeout) + def GetScheduleEvent( + self, + scheduleEventId: str, + instancesEndedAt: Optional[Any] = None, + instancesStartedAt: Optional[Any] = None, + fields: Optional[Union[List[str], Dict[str, Any]]] = None, + timeout: Optional[float] = None, + ) -> Any: + """Get a schedule event. + + Args: + scheduleEventId (str): ID of the schedule event. + instancesEndedAt (DateTime, optional): The time until which schedule instances are requested. + instancesStartedAt (DateTime, optional): The time from which schedule instances are requested. + fields (list or dict, optional): Specifies a subset of fields to return. + timeout (float, optional): Number of seconds to wait for response. + + Returns: + ScheduleEvent: + """ + parameterNameTypeValues: List[Tuple[str, str, Any]] = [ + ('scheduleEventId', 'String!', scheduleEventId), + ('instancesEndedAt', 'DateTime', instancesEndedAt), + ('instancesStartedAt', 'DateTime', instancesStartedAt), + ] + return self._CallSimpleGraphAPI('query', operationName='GetScheduleEvent', parameterNameTypeValues=parameterNameTypeValues, returnType='ScheduleEvent', fields=fields, timeout=timeout) + def GetSensorBridgeModuleBySensorBridgeType( self, sensorBridgeType: str, @@ -2314,6 +2374,24 @@ def ListAlarmDefinitions( ] return self._CallSimpleGraphAPI('query', operationName='ListAlarmDefinitions', parameterNameTypeValues=parameterNameTypeValues, returnType='ListAlarmDefinitionsReturnValue', fields=fields, timeout=timeout) + @UseLazyGraphQuery + def ListAllLogEntryTypes( + self, + fields: Optional[Union[List[str], Dict[str, Any]]] = None, + timeout: Optional[float] = None, + ) -> List[Any]: + """List all implemented log entry types + + Args: + fields (list or dict, optional): Specifies a subset of fields to return. + timeout (float, optional): Number of seconds to wait for response. + + Returns: + [LogType]: Log type of an entry + """ + parameterNameTypeValues: List[Tuple[str, str, Any]] = [] + return self._CallSimpleGraphAPI('query', operationName='ListAllLogEntryTypes', parameterNameTypeValues=parameterNameTypeValues, returnType='LogType', fields=fields, timeout=timeout) + @UseLazyGraphQuery def ListAncestorLogEntries( self, @@ -3730,6 +3808,34 @@ def ListRoles( ] return self._CallSimpleGraphAPI('query', operationName='ListRoles', parameterNameTypeValues=parameterNameTypeValues, returnType='ListRolesReturnValue', fields=fields, timeout=timeout) + @UseLazyGraphQuery + def ListScheduleEventsWithInstances( + self, + instancesEndedAt: Optional[Any] = None, + instancesStartedAt: Optional[Any] = None, + options: Optional[Any] = None, + fields: Optional[Union[List[str], Dict[str, Any]]] = None, + timeout: Optional[float] = None, + ) -> Any: + """List schedule events with matching instances. + + Args: + instancesEndedAt (DateTime, optional): The time until which schedule instances are requested. + instancesStartedAt (DateTime, optional): The time from which schedule instances are requested. + 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: + ListScheduleEventsWithInstancesReturnValue: + """ + parameterNameTypeValues: List[Tuple[str, str, Any]] = [ + ('instancesEndedAt', 'DateTime', instancesEndedAt), + ('instancesStartedAt', 'DateTime', instancesStartedAt), + ('options', 'ListOptionsWithAggregationsInput', options), + ] + return self._CallSimpleGraphAPI('query', operationName='ListScheduleEventsWithInstances', parameterNameTypeValues=parameterNameTypeValues, returnType='ListScheduleEventsWithInstancesReturnValue', fields=fields, timeout=timeout) + @UseLazyGraphQuery def ListSensorBridgeModules( self, @@ -4319,6 +4425,27 @@ def CommandCalibrationOrchestrator( ] return self._CallSimpleGraphAPI('mutation', operationName='CommandCalibrationOrchestrator', parameterNameTypeValues=parameterNameTypeValues, returnType='CommandCalibrationOrchestratorMutations', fields=fields, timeout=timeout) + def CommandCameraCalibrationOrchestrator( + self, + orchestratorId: str, + fields: Optional[Union[List[str], Dict[str, Any]]] = None, + timeout: Optional[float] = None, + ) -> Any: + """ + + Args: + orchestratorId (str): + fields (list or dict, optional): Specifies a subset of fields to return. + timeout (float, optional): Number of seconds to wait for response. + + Returns: + CommandCameraCalibrationOrchestratorMutations: + """ + parameterNameTypeValues: List[Tuple[str, str, Any]] = [ + ('orchestratorId', 'String!', orchestratorId), + ] + return self._CallSimpleGraphAPI('mutation', operationName='CommandCameraCalibrationOrchestrator', parameterNameTypeValues=parameterNameTypeValues, returnType='CommandCameraCalibrationOrchestratorMutations', fields=fields, timeout=timeout) + def CommandFleetOrchestrator( self, orchestratorId: str, @@ -6326,6 +6453,27 @@ def CreateRole( ] return self._CallSimpleGraphAPI('mutation', operationName='CreateRole', parameterNameTypeValues=parameterNameTypeValues, returnType='Role', fields=fields, timeout=timeout) + def CreateScheduleEvent( + self, + scheduleEvent: Any, + fields: Optional[Union[List[str], Dict[str, Any]]] = None, + timeout: Optional[float] = None, + ) -> Any: + """Create a new schedule event. + + Args: + scheduleEvent (ScheduleEventInput): A list of schedule events. + fields (list or dict, optional): Specifies a subset of fields to return. + timeout (float, optional): Number of seconds to wait for response. + + Returns: + ScheduleEvent: + """ + parameterNameTypeValues: List[Tuple[str, str, Any]] = [ + ('scheduleEvent', 'ScheduleEventInput!', scheduleEvent), + ] + return self._CallSimpleGraphAPI('mutation', operationName='CreateScheduleEvent', parameterNameTypeValues=parameterNameTypeValues, returnType='ScheduleEvent', fields=fields, timeout=timeout) + def CreateTool( self, bodyId: str, @@ -7265,6 +7413,27 @@ def DeleteRole( ] return self._CallSimpleGraphAPI('mutation', operationName='DeleteRole', parameterNameTypeValues=parameterNameTypeValues, returnType='Void', fields=fields, timeout=timeout) + def DeleteScheduleEvent( + self, + scheduleEventId: str, + fields: Optional[Union[List[str], Dict[str, Any]]] = None, + timeout: Optional[float] = None, + ) -> None: + """Delete an existing schedule event. + + Args: + scheduleEventId (str): ID of the schedule event. + 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]] = [ + ('scheduleEventId', 'String!', scheduleEventId), + ] + return self._CallSimpleGraphAPI('mutation', operationName='DeleteScheduleEvent', parameterNameTypeValues=parameterNameTypeValues, returnType='Void', fields=fields, timeout=timeout) + def DeleteTool( self, bodyId: str, @@ -8799,6 +8968,30 @@ def ModifyRole( ] return self._CallSimpleGraphAPI('mutation', operationName='ModifyRole', parameterNameTypeValues=parameterNameTypeValues, returnType='Role', fields=fields, timeout=timeout) + def ModifyScheduleEvent( + self, + scheduleEvent: Any, + scheduleEventId: str, + fields: Optional[Union[List[str], Dict[str, Any]]] = None, + timeout: Optional[float] = None, + ) -> Any: + """Modify an existing schedule event. + + Args: + scheduleEvent (ScheduleEventInput): Properties to be modified on the schedule event. + scheduleEventId (str): ID of the schedule event. + fields (list or dict, optional): Specifies a subset of fields to return. + timeout (float, optional): Number of seconds to wait for response. + + Returns: + ScheduleEvent: + """ + parameterNameTypeValues: List[Tuple[str, str, Any]] = [ + ('scheduleEvent', 'ScheduleEventInput!', scheduleEvent), + ('scheduleEventId', 'String!', scheduleEventId), + ] + return self._CallSimpleGraphAPI('mutation', operationName='ModifyScheduleEvent', parameterNameTypeValues=parameterNameTypeValues, returnType='ScheduleEvent', fields=fields, timeout=timeout) + def ModifyTool( self, bodyId: str, @@ -9658,6 +9851,34 @@ def CallbackFunction(error: Optional[ControllerGraphClientException], response: ] return self._CallSubscribeGraphAPI(operationName='SubscribeCalibrationOrchestratorState', parameterNameTypeValues=parameterNameTypeValues, returnType='CalibrationOrchestratorState', callbackFunction=callbackFunction, fields=fields) + def SubscribeCameraCalibrationOrchestratorState( + self, + callbackFunction: Callable[[Optional[Any], Optional[Dict[str, Any]]], None], + orchestratorId: str, + 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). + orchestratorId (str): ID of the orchestrator to subscribe to + 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: + CalibrationOrchestratorState: + """ + parameterNameTypeValues: List[Tuple[str, str, Any]] = [ + ('orchestratorId', 'String!', orchestratorId), + ('interval', 'String', interval), + ] + return self._CallSubscribeGraphAPI(operationName='SubscribeCameraCalibrationOrchestratorState', parameterNameTypeValues=parameterNameTypeValues, returnType='CalibrationOrchestratorState', callbackFunction=callbackFunction, fields=fields) + def SubscribeConfigurationChange( self, callbackFunction: Callable[[Optional[Any], Optional[Dict[str, Any]]], None], @@ -10513,4 +10734,4 @@ def subscriptions(self) -> GraphSubscriptionsClient: # # DO NOT EDIT, THIS FILE WAS AUTO-GENERATED, SEE HEADER -# +# \ No newline at end of file From f49a0f43ec8fbe36b51ba7f4fcae5e24a5faf0ac Mon Sep 17 00:00:00 2001 From: "kuan-yu.chen" Date: Thu, 13 Nov 2025 10:38:38 +0900 Subject: [PATCH 2/6] Update graphclient to add the new graph api ListAllLogEntriesSchemaInfo --- python/mujinwebstackclient/webstackgraphclient.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/python/mujinwebstackclient/webstackgraphclient.py b/python/mujinwebstackclient/webstackgraphclient.py index 85e7d29..1f6d7c4 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.0+48dc897df600041e027eaa31d49cf0f4c89598f9 +# GENERATED AGAINST: mujinwebstack/2.35.10+13a3c99ca98f102aae8546ee187bae9e8cd22cb1 # import warnings @@ -2375,22 +2375,22 @@ def ListAlarmDefinitions( return self._CallSimpleGraphAPI('query', operationName='ListAlarmDefinitions', parameterNameTypeValues=parameterNameTypeValues, returnType='ListAlarmDefinitionsReturnValue', fields=fields, timeout=timeout) @UseLazyGraphQuery - def ListAllLogEntryTypes( + def ListAllLogEntriesSchemaInfo( self, fields: Optional[Union[List[str], Dict[str, Any]]] = None, timeout: Optional[float] = None, - ) -> List[Any]: - """List all implemented log entry types + ) -> Any: + """List all implemented log entries schema info. Args: fields (list or dict, optional): Specifies a subset of fields to return. timeout (float, optional): Number of seconds to wait for response. Returns: - [LogType]: Log type of an entry + ListAllLogEntriesSchemaInfoReturnValue: """ parameterNameTypeValues: List[Tuple[str, str, Any]] = [] - return self._CallSimpleGraphAPI('query', operationName='ListAllLogEntryTypes', parameterNameTypeValues=parameterNameTypeValues, returnType='LogType', fields=fields, timeout=timeout) + return self._CallSimpleGraphAPI('query', operationName='ListAllLogEntriesSchemaInfo', parameterNameTypeValues=parameterNameTypeValues, returnType='ListAllLogEntriesSchemaInfoReturnValue', fields=fields, timeout=timeout) @UseLazyGraphQuery def ListAncestorLogEntries( From 2653be41089bed35dc290adf3d705a995deaacb2 Mon Sep 17 00:00:00 2001 From: "kuan-yu.chen" Date: Mon, 1 Dec 2025 13:11:37 +0900 Subject: [PATCH 3/6] Expose GetAllLogEntriesSchemaInfo, need to regenerate again once webstack part is merged to fix the GENERATED AGAINST version --- .../webstackgraphclient.py | 54 ++++++++++++------- 1 file changed, 35 insertions(+), 19 deletions(-) diff --git a/python/mujinwebstackclient/webstackgraphclient.py b/python/mujinwebstackclient/webstackgraphclient.py index 1f6d7c4..5e269c3 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.10+13a3c99ca98f102aae8546ee187bae9e8cd22cb1 +# GENERATED AGAINST: mujinwebstack/2.35.18+4e095951399f54ec70f33282801b296891da9489-dirty # import warnings @@ -119,6 +119,23 @@ def CommandRobotBridgesV2( ] return self._CallSimpleGraphAPI('query', operationName='CommandRobotBridgesV2', parameterNameTypeValues=parameterNameTypeValues, returnType='CommandRobotBridgesV2Queries', fields=fields, timeout=timeout) + def CommandSensorBridgesEx( + self, + fields: Optional[Union[List[str], Dict[str, Any]]] = None, + timeout: Optional[float] = None, + ) -> Any: + """ + + Args: + fields (list or dict, optional): Specifies a subset of fields to return. + timeout (float, optional): Number of seconds to wait for response. + + Returns: + CommandSensorBridgesExQueries: + """ + parameterNameTypeValues: List[Tuple[str, str, Any]] = [] + return self._CallSimpleGraphAPI('query', operationName='CommandSensorBridgesEx', parameterNameTypeValues=parameterNameTypeValues, returnType='CommandSensorBridgesExQueries', fields=fields, timeout=timeout) + def ConfigureRobotBridgesEx( self, fields: Optional[Union[List[str], Dict[str, Any]]] = None, @@ -330,6 +347,23 @@ def GetAlarmDefinition( ] return self._CallSimpleGraphAPI('query', operationName='GetAlarmDefinition', parameterNameTypeValues=parameterNameTypeValues, returnType='AlarmDefinition', fields=fields, timeout=timeout) + def GetAllLogEntriesSchemaInfo( + self, + fields: Optional[Union[List[str], Dict[str, Any]]] = None, + timeout: Optional[float] = None, + ) -> Any: + """Get all implemented log entries schema info. + + Args: + fields (list or dict, optional): Specifies a subset of fields to return. + timeout (float, optional): Number of seconds to wait for response. + + Returns: + GetAllLogEntriesSchemaInfoReturnValue: + """ + parameterNameTypeValues: List[Tuple[str, str, Any]] = [] + return self._CallSimpleGraphAPI('query', operationName='GetAllLogEntriesSchemaInfo', parameterNameTypeValues=parameterNameTypeValues, returnType='GetAllLogEntriesSchemaInfoReturnValue', fields=fields, timeout=timeout) + def GetAppearanceParameters( self, bodyId: str, @@ -2374,24 +2408,6 @@ def ListAlarmDefinitions( ] return self._CallSimpleGraphAPI('query', operationName='ListAlarmDefinitions', parameterNameTypeValues=parameterNameTypeValues, returnType='ListAlarmDefinitionsReturnValue', fields=fields, timeout=timeout) - @UseLazyGraphQuery - def ListAllLogEntriesSchemaInfo( - self, - fields: Optional[Union[List[str], Dict[str, Any]]] = None, - timeout: Optional[float] = None, - ) -> Any: - """List all implemented log entries schema info. - - Args: - fields (list or dict, optional): Specifies a subset of fields to return. - timeout (float, optional): Number of seconds to wait for response. - - Returns: - ListAllLogEntriesSchemaInfoReturnValue: - """ - parameterNameTypeValues: List[Tuple[str, str, Any]] = [] - return self._CallSimpleGraphAPI('query', operationName='ListAllLogEntriesSchemaInfo', parameterNameTypeValues=parameterNameTypeValues, returnType='ListAllLogEntriesSchemaInfoReturnValue', fields=fields, timeout=timeout) - @UseLazyGraphQuery def ListAncestorLogEntries( self, From 62a4259f1142c65934d47762be3351d48e7777c8 Mon Sep 17 00:00:00 2001 From: "kuan-yu.chen" Date: Thu, 4 Dec 2025 09:40:10 +0900 Subject: [PATCH 4/6] Add new line add the end of file --- python/mujinwebstackclient/webstackgraphclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/mujinwebstackclient/webstackgraphclient.py b/python/mujinwebstackclient/webstackgraphclient.py index 5e269c3..bb6919f 100644 --- a/python/mujinwebstackclient/webstackgraphclient.py +++ b/python/mujinwebstackclient/webstackgraphclient.py @@ -10750,4 +10750,4 @@ def subscriptions(self) -> GraphSubscriptionsClient: # # DO NOT EDIT, THIS FILE WAS AUTO-GENERATED, SEE HEADER -# \ No newline at end of file +# From 948898890543c6db61b95c593f5f7a8720d33b64 Mon Sep 17 00:00:00 2001 From: Barkin Simsek Date: Fri, 5 Dec 2025 17:20:11 +0900 Subject: [PATCH 5/6] Generate client again. --- .../webstackgraphclient.py | 90 +++++-------------- 1 file changed, 23 insertions(+), 67 deletions(-) diff --git a/python/mujinwebstackclient/webstackgraphclient.py b/python/mujinwebstackclient/webstackgraphclient.py index bb6919f..803ff4c 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.18+4e095951399f54ec70f33282801b296891da9489-dirty +# GENERATED AGAINST: mujinwebstack/2.35.29+e5dac01fbda79dacb960549c4aa193d5da9bbba5 # import warnings @@ -347,23 +347,6 @@ def GetAlarmDefinition( ] return self._CallSimpleGraphAPI('query', operationName='GetAlarmDefinition', parameterNameTypeValues=parameterNameTypeValues, returnType='AlarmDefinition', fields=fields, timeout=timeout) - def GetAllLogEntriesSchemaInfo( - self, - fields: Optional[Union[List[str], Dict[str, Any]]] = None, - timeout: Optional[float] = None, - ) -> Any: - """Get all implemented log entries schema info. - - Args: - fields (list or dict, optional): Specifies a subset of fields to return. - timeout (float, optional): Number of seconds to wait for response. - - Returns: - GetAllLogEntriesSchemaInfoReturnValue: - """ - parameterNameTypeValues: List[Tuple[str, str, Any]] = [] - return self._CallSimpleGraphAPI('query', operationName='GetAllLogEntriesSchemaInfo', parameterNameTypeValues=parameterNameTypeValues, returnType='GetAllLogEntriesSchemaInfoReturnValue', fields=fields, timeout=timeout) - def GetAppearanceParameters( self, bodyId: str, @@ -3393,6 +3376,28 @@ def ListLogEntriesV2( ] return self._CallSimpleGraphAPI('query', operationName='ListLogEntriesV2', parameterNameTypeValues=parameterNameTypeValues, returnType='ListLogEntriesV2ReturnValue', fields=fields, timeout=timeout) + @UseLazyGraphQuery + def ListLogEntryTypeInfos( + self, + options: Optional[Any] = None, + fields: Optional[Union[List[str], Dict[str, Any]]] = None, + timeout: Optional[float] = None, + ) -> Any: + """Get all available log types information. + + 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: + ListLogEntryTypeInfosReturnValue: + """ + parameterNameTypeValues: List[Tuple[str, str, Any]] = [ + ('options', 'ListOptionsWithAggregationsInput', options), + ] + return self._CallSimpleGraphAPI('query', operationName='ListLogEntryTypeInfos', parameterNameTypeValues=parameterNameTypeValues, returnType='ListLogEntryTypeInfosReturnValue', fields=fields, timeout=timeout) + @UseLazyGraphQuery def ListModules( self, @@ -4420,27 +4425,6 @@ def CommandBaseSystemOrchestrator( ] return self._CallSimpleGraphAPI('mutation', operationName='CommandBaseSystemOrchestrator', parameterNameTypeValues=parameterNameTypeValues, returnType='CommandBaseSystemOrchestratorMutations', fields=fields, timeout=timeout) - def CommandCalibrationOrchestrator( - self, - orchestratorId: str, - fields: Optional[Union[List[str], Dict[str, Any]]] = None, - timeout: Optional[float] = None, - ) -> Any: - """ - - Args: - orchestratorId (str): - fields (list or dict, optional): Specifies a subset of fields to return. - timeout (float, optional): Number of seconds to wait for response. - - Returns: - CommandCalibrationOrchestratorMutations: - """ - parameterNameTypeValues: List[Tuple[str, str, Any]] = [ - ('orchestratorId', 'String!', orchestratorId), - ] - return self._CallSimpleGraphAPI('mutation', operationName='CommandCalibrationOrchestrator', parameterNameTypeValues=parameterNameTypeValues, returnType='CommandCalibrationOrchestratorMutations', fields=fields, timeout=timeout) - def CommandCameraCalibrationOrchestrator( self, orchestratorId: str, @@ -9839,34 +9823,6 @@ def CallbackFunction(error: Optional[ControllerGraphClientException], response: ] return self._CallSubscribeGraphAPI(operationName='SubscribeBaseSystemOrchestratorState', parameterNameTypeValues=parameterNameTypeValues, returnType='BaseSystemOrchestratorState', callbackFunction=callbackFunction, fields=fields) - def SubscribeCalibrationOrchestratorState( - self, - callbackFunction: Callable[[Optional[Any], Optional[Dict[str, Any]]], None], - orchestratorId: str, - 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). - orchestratorId (str): ID of the orchestrator to subscribe to - 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: - CalibrationOrchestratorState: - """ - parameterNameTypeValues: List[Tuple[str, str, Any]] = [ - ('orchestratorId', 'String!', orchestratorId), - ('interval', 'String', interval), - ] - return self._CallSubscribeGraphAPI(operationName='SubscribeCalibrationOrchestratorState', parameterNameTypeValues=parameterNameTypeValues, returnType='CalibrationOrchestratorState', callbackFunction=callbackFunction, fields=fields) - def SubscribeCameraCalibrationOrchestratorState( self, callbackFunction: Callable[[Optional[Any], Optional[Dict[str, Any]]], None], From 8b835c8af222b8c36a6fa476be1ccc5dc1b10a6f Mon Sep 17 00:00:00 2001 From: Barkin Simsek Date: Fri, 5 Dec 2025 17:20:17 +0900 Subject: [PATCH 6/6] Bump changelog and version. --- CHANGELOG.md | 6 ++++++ python/mujinwebstackclient/version.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 713501b..14f866d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.9.25 (2025-12-05) + +### Changes + +- Re-generate graph api. + ## 0.9.24 (2025-10-24) ### Bug fixes diff --git a/python/mujinwebstackclient/version.py b/python/mujinwebstackclient/version.py index b47db5e..2da2b2e 100644 --- a/python/mujinwebstackclient/version.py +++ b/python/mujinwebstackclient/version.py @@ -1,3 +1,3 @@ -__version__ = '0.9.24' +__version__ = '0.9.25' # Do not forget to update CHANGELOG.md