From 723228a8e080e01436d88b829387323dca7f57b0 Mon Sep 17 00:00:00 2001 From: Andrei Erghelegiu Date: Mon, 28 Sep 2026 15:34:37 +0300 Subject: [PATCH 1/2] feat: mirror GetUserAccessToken in the Python job-api IPC contract --- packages/uipath/src/uipath/_cli/_job_api.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/uipath/src/uipath/_cli/_job_api.py b/packages/uipath/src/uipath/_cli/_job_api.py index 8777bc3a8..7f911ad56 100644 --- a/packages/uipath/src/uipath/_cli/_job_api.py +++ b/packages/uipath/src/uipath/_cli/_job_api.py @@ -64,6 +64,15 @@ class PythonJobLogDto: logLevel: int = LogLevel.INFORMATION.value +@dataclass +class PythonUserAccessTokenRequestDto: + """A token request; field names are the wire keys (do not rename).""" + + jobKey: str + resumeVersion: int | None = None + scopes: str | None = None + + @dataclass class JobExecutorError: """A result error; field names are the wire keys (do not rename).""" @@ -99,6 +108,11 @@ async def SendLog(self, log: PythonJobLogDto) -> None: async def SetResult(self, result: PythonJobResultDto) -> bool: """Submit the final result.""" + # Not abstract, so existing implementers still instantiate; the IPC proxy never runs the body. + async def GetUserAccessToken(self, request: PythonUserAccessTokenRequestDto) -> str: + """Request a user access token for the job; empty scopes means the job's default scopes.""" + raise NotImplementedError + def _to_log_level(levelno: int) -> int: if levelno >= logging.CRITICAL: From 7edd94c4a837cb01e4f49259a70bfe0e5a869133 Mon Sep 17 00:00:00 2001 From: Andrei Erghelegiu Date: Fri, 2 Oct 2026 12:49:09 +0300 Subject: [PATCH 2/2] chore: bump uipath to 2.14.31 --- packages/uipath/pyproject.toml | 2 +- packages/uipath/uv.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/uipath/pyproject.toml b/packages/uipath/pyproject.toml index 28d05e372..edd1ec0e9 100644 --- a/packages/uipath/pyproject.toml +++ b/packages/uipath/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "uipath" -version = "2.14.30" +version = "2.14.31" description = "Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools." readme = { file = "README.md", content-type = "text/markdown" } requires-python = ">=3.11" diff --git a/packages/uipath/uv.lock b/packages/uipath/uv.lock index d4eb5cac9..7441005c5 100644 --- a/packages/uipath/uv.lock +++ b/packages/uipath/uv.lock @@ -2599,7 +2599,7 @@ wheels = [ [[package]] name = "uipath" -version = "2.14.30" +version = "2.14.31" source = { editable = "." } dependencies = [ { name = "applicationinsights" },