uipath 2.1.64__py3-none-any.whl → 2.1.66__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- uipath/_cli/__init__.py +1 -0
- uipath/_services/connections_service.py +15 -6
- uipath/agent/models/agent.py +26 -1
- uipath/models/connections.py +6 -0
- {uipath-2.1.64.dist-info → uipath-2.1.66.dist-info}/METADATA +1 -1
- {uipath-2.1.64.dist-info → uipath-2.1.66.dist-info}/RECORD +9 -9
- {uipath-2.1.64.dist-info → uipath-2.1.66.dist-info}/WHEEL +0 -0
- {uipath-2.1.64.dist-info → uipath-2.1.66.dist-info}/entry_points.txt +0 -0
- {uipath-2.1.64.dist-info → uipath-2.1.66.dist-info}/licenses/LICENSE +0 -0
uipath/_cli/__init__.py
CHANGED
@@ -6,6 +6,7 @@ from .._config import Config
|
|
6
6
|
from .._execution_context import ExecutionContext
|
7
7
|
from .._utils import Endpoint, RequestSpec, infer_bindings
|
8
8
|
from ..models import Connection, ConnectionToken, EventArguments
|
9
|
+
from ..models.connections import ConnectionTokenType
|
9
10
|
from ..tracing._traced import traced
|
10
11
|
from ._base_service import BaseService
|
11
12
|
|
@@ -71,7 +72,9 @@ class ConnectionsService(BaseService):
|
|
71
72
|
run_type="uipath",
|
72
73
|
hide_output=True,
|
73
74
|
)
|
74
|
-
def retrieve_token(
|
75
|
+
def retrieve_token(
|
76
|
+
self, key: str, token_type: ConnectionTokenType = ConnectionTokenType.DIRECT
|
77
|
+
) -> ConnectionToken:
|
75
78
|
"""Retrieve an authentication token for a connection.
|
76
79
|
|
77
80
|
This method obtains a fresh authentication token that can be used to
|
@@ -80,12 +83,13 @@ class ConnectionsService(BaseService):
|
|
80
83
|
|
81
84
|
Args:
|
82
85
|
key (str): The unique identifier of the connection.
|
86
|
+
token_type (ConnectionTokenType): The token type to use.
|
83
87
|
|
84
88
|
Returns:
|
85
89
|
ConnectionToken: The authentication token details, including the token
|
86
90
|
value and any associated metadata.
|
87
91
|
"""
|
88
|
-
spec = self._retrieve_token_spec(key)
|
92
|
+
spec = self._retrieve_token_spec(key, token_type)
|
89
93
|
response = self.request(spec.method, url=spec.endpoint, params=spec.params)
|
90
94
|
return ConnectionToken.model_validate(response.json())
|
91
95
|
|
@@ -94,7 +98,9 @@ class ConnectionsService(BaseService):
|
|
94
98
|
run_type="uipath",
|
95
99
|
hide_output=True,
|
96
100
|
)
|
97
|
-
async def retrieve_token_async(
|
101
|
+
async def retrieve_token_async(
|
102
|
+
self, key: str, token_type: ConnectionTokenType = ConnectionTokenType.DIRECT
|
103
|
+
) -> ConnectionToken:
|
98
104
|
"""Asynchronously retrieve an authentication token for a connection.
|
99
105
|
|
100
106
|
This method obtains a fresh authentication token that can be used to
|
@@ -103,12 +109,13 @@ class ConnectionsService(BaseService):
|
|
103
109
|
|
104
110
|
Args:
|
105
111
|
key (str): The unique identifier of the connection.
|
112
|
+
token_type (ConnectionTokenType): The token type to use.
|
106
113
|
|
107
114
|
Returns:
|
108
115
|
ConnectionToken: The authentication token details, including the token
|
109
116
|
value and any associated metadata.
|
110
117
|
"""
|
111
|
-
spec = self._retrieve_token_spec(key)
|
118
|
+
spec = self._retrieve_token_spec(key, token_type)
|
112
119
|
response = await self.request_async(
|
113
120
|
spec.method, url=spec.endpoint, params=spec.params
|
114
121
|
)
|
@@ -198,9 +205,11 @@ class ConnectionsService(BaseService):
|
|
198
205
|
endpoint=Endpoint(f"/connections_/api/v1/Connections/{key}"),
|
199
206
|
)
|
200
207
|
|
201
|
-
def _retrieve_token_spec(
|
208
|
+
def _retrieve_token_spec(
|
209
|
+
self, key: str, token_type: ConnectionTokenType = ConnectionTokenType.DIRECT
|
210
|
+
) -> RequestSpec:
|
202
211
|
return RequestSpec(
|
203
212
|
method="GET",
|
204
213
|
endpoint=Endpoint(f"/connections_/api/v1/Connections/{key}/token"),
|
205
|
-
params={"tokenType":
|
214
|
+
params={"tokenType": token_type.value},
|
206
215
|
)
|
uipath/agent/models/agent.py
CHANGED
@@ -97,6 +97,31 @@ class AgentProcessToolResourceConfig(BaseAgentToolResourceConfig):
|
|
97
97
|
)
|
98
98
|
|
99
99
|
|
100
|
+
class AgentIntegrationToolParameter(BaseModel):
|
101
|
+
"""Agent integration tool parameter."""
|
102
|
+
|
103
|
+
name: str = Field(..., alias="name")
|
104
|
+
type: str = Field(..., alias="type")
|
105
|
+
value: Optional[Any] = Field(None, alias="value")
|
106
|
+
field_location: str = Field(..., alias="fieldLocation")
|
107
|
+
|
108
|
+
# Useful Metadata
|
109
|
+
display_name: Optional[str] = Field(None, alias="displayName")
|
110
|
+
display_value: Optional[str] = Field(None, alias="displayValue")
|
111
|
+
description: Optional[str] = Field(None, alias="description")
|
112
|
+
position: Optional[str] = Field(None, alias="position")
|
113
|
+
field_variant: Optional[str] = Field(None, alias="fieldVariant")
|
114
|
+
dynamic: Optional[bool] = Field(None, alias="dynamic")
|
115
|
+
is_cascading: Optional[bool] = Field(None, alias="isCascading")
|
116
|
+
sort_order: Optional[int] = Field(..., alias="sortOrder")
|
117
|
+
required: Optional[bool] = Field(None, alias="required")
|
118
|
+
# enum_values, dynamic_behavior and reference not typed currently
|
119
|
+
|
120
|
+
model_config = ConfigDict(
|
121
|
+
validate_by_name=True, validate_by_alias=True, extra="allow"
|
122
|
+
)
|
123
|
+
|
124
|
+
|
100
125
|
class AgentIntegrationToolProperties(BaseModel):
|
101
126
|
"""Properties specific to tool configuration."""
|
102
127
|
|
@@ -107,6 +132,7 @@ class AgentIntegrationToolProperties(BaseModel):
|
|
107
132
|
method: str = Field(..., alias="method")
|
108
133
|
connection: Connection = Field(..., alias="connection")
|
109
134
|
body_structure: dict[str, Any] = Field(..., alias="bodyStructure")
|
135
|
+
parameters: List[AgentIntegrationToolParameter] = Field([], alias="parameters")
|
110
136
|
|
111
137
|
model_config = ConfigDict(
|
112
138
|
validate_by_name=True, validate_by_alias=True, extra="allow"
|
@@ -118,7 +144,6 @@ class AgentIntegrationToolResourceConfig(BaseAgentToolResourceConfig):
|
|
118
144
|
|
119
145
|
type: Literal[AgentToolType.INTEGRATION] = AgentToolType.INTEGRATION
|
120
146
|
properties: AgentIntegrationToolProperties
|
121
|
-
|
122
147
|
model_config = ConfigDict(
|
123
148
|
validate_by_name=True, validate_by_alias=True, extra="allow"
|
124
149
|
)
|
uipath/models/connections.py
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
from enum import Enum
|
1
2
|
from typing import Any, Optional
|
2
3
|
|
3
4
|
from pydantic import BaseModel, ConfigDict, Field
|
@@ -30,6 +31,11 @@ class Connection(BaseModel):
|
|
30
31
|
element_version: Optional[str] = Field(default=None, alias="elementVersion")
|
31
32
|
|
32
33
|
|
34
|
+
class ConnectionTokenType(str, Enum):
|
35
|
+
DIRECT = "direct"
|
36
|
+
BEARER = "bearer"
|
37
|
+
|
38
|
+
|
33
39
|
class ConnectionToken(BaseModel):
|
34
40
|
model_config = ConfigDict(
|
35
41
|
validate_by_name=True,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: uipath
|
3
|
-
Version: 2.1.
|
3
|
+
Version: 2.1.66
|
4
4
|
Summary: Python SDK and CLI for UiPath Platform, enabling programmatic interaction with automation services, process management, and deployment tools.
|
5
5
|
Project-URL: Homepage, https://uipath.com
|
6
6
|
Project-URL: Repository, https://github.com/UiPath/uipath-python
|
@@ -5,7 +5,7 @@ uipath/_folder_context.py,sha256=D-bgxdwpwJP4b_QdVKcPODYh15kMDrOar2xNonmMSm4,186
|
|
5
5
|
uipath/_uipath.py,sha256=p2ccvWpzBXAGFSSF_YaaSWdEqzMmRt786d0pFWrCEwU,4463
|
6
6
|
uipath/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
7
7
|
uipath/_cli/README.md,sha256=GLtCfbeIKZKNnGTCsfSVqRQ27V1btT1i2bSAyW_xZl4,474
|
8
|
-
uipath/_cli/__init__.py,sha256=
|
8
|
+
uipath/_cli/__init__.py,sha256=2RUgXYd8uJaYjA67xWb0w4IZuBmZoY8G1ccNmEQk9oM,2343
|
9
9
|
uipath/_cli/cli_auth.py,sha256=ZEA0Fwoo77Ez9ctpRAIq7sbAwj8F4OouAbMp1g1OvjM,2601
|
10
10
|
uipath/_cli/cli_deploy.py,sha256=KPCmQ0c_NYD5JofSDao5r6QYxHshVCRxlWDVnQvlp5w,645
|
11
11
|
uipath/_cli/cli_dev.py,sha256=nEfpjw1PZ72O6jmufYWVrueVwihFxDPOeJakdvNHdOA,2146
|
@@ -87,7 +87,7 @@ uipath/_services/api_client.py,sha256=kGm04ijk9AOEQd2BMxvQg-2QoB8dmyoDwFFDPyutAG
|
|
87
87
|
uipath/_services/assets_service.py,sha256=pG0Io--SeiRRQmfUWPQPl1vq3csZlQgx30LBNKRmmF8,12145
|
88
88
|
uipath/_services/attachments_service.py,sha256=NPQYK7CGjfBaNT_1S5vEAfODmOChTbQZforllFM2ofU,26678
|
89
89
|
uipath/_services/buckets_service.py,sha256=5s8tuivd7GUZYj774DDUYTa0axxlUuesc4EBY1V5sdk,18496
|
90
|
-
uipath/_services/connections_service.py,sha256=
|
90
|
+
uipath/_services/connections_service.py,sha256=Gt8zPY4oA7cMYAU2LI3lBieoBpV81BOGelnzDWJl_V4,7931
|
91
91
|
uipath/_services/context_grounding_service.py,sha256=kp7h6Hd-VUuTqiDO-G7IanmXhaq0XHjXUk0ISFev-5c,24835
|
92
92
|
uipath/_services/entities_service.py,sha256=QKCLE6wRgq3HZraF-M2mljy-8il4vsNHrQhUgkewVVk,14028
|
93
93
|
uipath/_services/folder_service.py,sha256=9JqgjKhWD-G_KUnfUTP2BADxL6OK9QNZsBsWZHAULdE,2749
|
@@ -117,7 +117,7 @@ uipath/agent/conversation/exchange.py,sha256=nuk1tEMBHc_skrraT17d8U6AtyJ3h07ExGQ
|
|
117
117
|
uipath/agent/conversation/message.py,sha256=1ZkEs146s79TrOAWCQwzBAEJvjAu4lQBpJ64tKXDgGE,2142
|
118
118
|
uipath/agent/conversation/meta.py,sha256=3t0eS9UHoAPHre97QTUeVbjDhnMX4zj4-qG6ju0B8wY,315
|
119
119
|
uipath/agent/conversation/tool.py,sha256=ol8XI8AVd-QNn5auXNBPcCzOkh9PPFtL7hTK3kqInkU,2191
|
120
|
-
uipath/agent/models/agent.py,sha256=
|
120
|
+
uipath/agent/models/agent.py,sha256=HVdv-VHV98ZI4afIxexPDSKEKzGlMJ7uSRLj7qLe6vA,12548
|
121
121
|
uipath/eval/_helpers/__init__.py,sha256=GSmZMryjuO3Wo_zdxZdrHCRRsgOxsVFYkYgJ15YNC3E,86
|
122
122
|
uipath/eval/_helpers/helpers.py,sha256=iE2HHdMiAdAMLqxHkPKHpfecEtAuN5BTBqvKFTI8ciE,1315
|
123
123
|
uipath/eval/evaluators/__init__.py,sha256=DJAAhgv0I5UfBod4sGnSiKerfrz1iMmk7GNFb71V8eI,494
|
@@ -135,7 +135,7 @@ uipath/models/actions.py,sha256=1vRsJ3JSmMdPkbiYAiHzY8K44vmW3VlMsmQUBAkSgrQ,3141
|
|
135
135
|
uipath/models/assets.py,sha256=7x3swJRnG_a4VgjdXKKwraJLT5TF0u4wHsl6coOjX0g,2762
|
136
136
|
uipath/models/attachment.py,sha256=lI6BxBY6DY5U6qZbxhkNu-usseA1zovYSTRtLq50ubI,1029
|
137
137
|
uipath/models/buckets.py,sha256=N3Lj_dVCv709-ywhOOdyCSvsuLn41eGuAfSiik6Q6F8,1285
|
138
|
-
uipath/models/connections.py,sha256=
|
138
|
+
uipath/models/connections.py,sha256=bTDg8xISSPmKB1GFNEEMD1OEZyBDFHfZVKqw4gab1pE,2524
|
139
139
|
uipath/models/context_grounding.py,sha256=3MaF2Fv2QYle8UUWvKGkCN5XGpx2T4a34fdbBqJ2fCs,1137
|
140
140
|
uipath/models/context_grounding_index.py,sha256=OhRyxZDHDSrEmBFK0-JLqMMMT64jir4XkHtQ54IKtc0,2683
|
141
141
|
uipath/models/entities.py,sha256=x6jbq4o_QhgL_pCgvHFsp9O8l333kQhn8e9ZCBs72UM,9823
|
@@ -155,8 +155,8 @@ uipath/tracing/_traced.py,sha256=yBIY05PCCrYyx50EIHZnwJaKNdHPNx-YTR1sHQl0a98,199
|
|
155
155
|
uipath/tracing/_utils.py,sha256=qd7N56tg6VXQ9pREh61esBgUWLNA0ssKsE0QlwrRWFM,11974
|
156
156
|
uipath/utils/__init__.py,sha256=VD-KXFpF_oWexFg6zyiWMkxl2HM4hYJMIUDZ1UEtGx0,105
|
157
157
|
uipath/utils/_endpoints_manager.py,sha256=iRTl5Q0XAm_YgcnMcJOXtj-8052sr6jpWuPNz6CgT0Q,8408
|
158
|
-
uipath-2.1.
|
159
|
-
uipath-2.1.
|
160
|
-
uipath-2.1.
|
161
|
-
uipath-2.1.
|
162
|
-
uipath-2.1.
|
158
|
+
uipath-2.1.66.dist-info/METADATA,sha256=z7MeB9RnfKf0m7T_AkTDc3jUJJt-yurcdkUwndUw7gM,6482
|
159
|
+
uipath-2.1.66.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
160
|
+
uipath-2.1.66.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
|
161
|
+
uipath-2.1.66.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
|
162
|
+
uipath-2.1.66.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|