Skip to content

Commit a22cdb1

Browse files
authored
feat(core): add shared uipath metadata key (#1773)
1 parent bda3cab commit a22cdb1

6 files changed

Lines changed: 9 additions & 4 deletions

File tree

packages/uipath-core/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "uipath-core"
3-
version = "0.5.26"
3+
version = "0.5.27"
44
description = "UiPath Core abstractions"
55
readme = { file = "README.md", content-type = "text/markdown" }
66
requires-python = ">=3.11"

packages/uipath-core/src/uipath/core/triggers/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
"UiPathApiTrigger",
77
"UiPathIntegrationTrigger",
88
"UiPathResumeTriggerName",
9+
"UIPATH_METADATA_KEY",
910
]
1011

1112
from uipath.core.triggers.trigger import (
13+
UIPATH_METADATA_KEY,
1214
UiPathApiTrigger,
1315
UiPathIntegrationTrigger,
1416
UiPathResumeTrigger,

packages/uipath-core/src/uipath/core/triggers/trigger.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
from pydantic import BaseModel, ConfigDict, Field
88

9+
# Reserved key for UiPath-owned metadata embedded in user-visible payloads.
10+
UIPATH_METADATA_KEY = "__uipath"
11+
912

1013
class UiPathResumeTriggerType(str, Enum):
1114
"""Constants representing different types of resume job triggers in the system."""

packages/uipath-core/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/uipath-platform/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/uipath/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)