uipath 2.1.47__py3-none-any.whl → 2.1.48__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/_utils/_studio_project.py +0 -3
- uipath/_services/_base_service.py +0 -9
- uipath/_services/actions_service.py +36 -29
- uipath/_services/api_client.py +2 -8
- uipath/_services/assets_service.py +13 -7
- uipath/_services/processes_service.py +9 -5
- {uipath-2.1.47.dist-info → uipath-2.1.48.dist-info}/METADATA +1 -1
- {uipath-2.1.47.dist-info → uipath-2.1.48.dist-info}/RECORD +11 -11
- {uipath-2.1.47.dist-info → uipath-2.1.48.dist-info}/WHEEL +0 -0
- {uipath-2.1.47.dist-info → uipath-2.1.48.dist-info}/entry_points.txt +0 -0
- {uipath-2.1.47.dist-info → uipath-2.1.48.dist-info}/licenses/LICENSE +0 -0
@@ -311,7 +311,6 @@ class StudioClient:
|
|
311
311
|
files=files_data,
|
312
312
|
url=f"{self.file_operations_base_url}/File/{remote_file.id}",
|
313
313
|
scoped="org",
|
314
|
-
infer_content_type=True,
|
315
314
|
headers=headers or {},
|
316
315
|
)
|
317
316
|
action = "Updated"
|
@@ -322,7 +321,6 @@ class StudioClient:
|
|
322
321
|
data={"parentId": folder.id} if folder else None,
|
323
322
|
files=files_data,
|
324
323
|
scoped="org",
|
325
|
-
infer_content_type=True,
|
326
324
|
headers=headers or {},
|
327
325
|
)
|
328
326
|
action = "Uploaded"
|
@@ -451,7 +449,6 @@ class StudioClient:
|
|
451
449
|
url=f"{self.file_operations_base_url}/StructuralMigration",
|
452
450
|
scoped="org",
|
453
451
|
files=files,
|
454
|
-
infer_content_type=True,
|
455
452
|
headers=headers or {},
|
456
453
|
)
|
457
454
|
|
@@ -74,7 +74,6 @@ class BaseService:
|
|
74
74
|
url: Union[URL, str],
|
75
75
|
*,
|
76
76
|
scoped: Literal["org", "tenant"] = "tenant",
|
77
|
-
infer_content_type=False,
|
78
77
|
**kwargs: Any,
|
79
78
|
) -> Response:
|
80
79
|
self._logger.debug(f"Request: {method} {url}")
|
@@ -106,9 +105,6 @@ class BaseService:
|
|
106
105
|
|
107
106
|
scoped_url = self._url.scope_url(str(url), scoped)
|
108
107
|
|
109
|
-
if infer_content_type:
|
110
|
-
self._client.headers.pop("Content-Type", None)
|
111
|
-
|
112
108
|
response = self._client.request(method, scoped_url, **kwargs)
|
113
109
|
|
114
110
|
try:
|
@@ -132,7 +128,6 @@ class BaseService:
|
|
132
128
|
url: Union[URL, str],
|
133
129
|
*,
|
134
130
|
scoped: Literal["org", "tenant"] = "tenant",
|
135
|
-
infer_content_type=False,
|
136
131
|
**kwargs: Any,
|
137
132
|
) -> Response:
|
138
133
|
self._logger.debug(f"Request: {method} {url}")
|
@@ -147,9 +142,6 @@ class BaseService:
|
|
147
142
|
|
148
143
|
scoped_url = self._url.scope_url(str(url), scoped)
|
149
144
|
|
150
|
-
if infer_content_type:
|
151
|
-
self._client_async.headers.pop("Content-Type", None)
|
152
|
-
|
153
145
|
response = await self._client_async.request(method, scoped_url, **kwargs)
|
154
146
|
|
155
147
|
try:
|
@@ -163,7 +155,6 @@ class BaseService:
|
|
163
155
|
def default_headers(self) -> dict[str, str]:
|
164
156
|
return {
|
165
157
|
"Accept": "application/json",
|
166
|
-
"Content-Type": "application/json",
|
167
158
|
**self.auth_headers,
|
168
159
|
**self.custom_headers,
|
169
160
|
}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import os
|
2
2
|
import uuid
|
3
|
-
from json import dumps
|
4
3
|
from typing import Any, Dict, List, Optional, Tuple
|
5
4
|
|
6
5
|
from .._config import Config
|
@@ -81,30 +80,28 @@ def _create_spec(
|
|
81
80
|
return RequestSpec(
|
82
81
|
method="POST",
|
83
82
|
endpoint=Endpoint("/orchestrator_/tasks/AppTasks/CreateAppTask"),
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
"
|
91
|
-
"
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
"
|
98
|
-
|
99
|
-
"actions": outcome_list,
|
100
|
-
}
|
101
|
-
if len(outcome_list) != 0
|
102
|
-
else {},
|
83
|
+
json={
|
84
|
+
"appId": app_key,
|
85
|
+
"appVersion": app_version,
|
86
|
+
"title": title,
|
87
|
+
"data": data if data is not None else {},
|
88
|
+
"actionableMessageMetaData": {
|
89
|
+
"fieldSet": {
|
90
|
+
"id": str(uuid.uuid4()),
|
91
|
+
"fields": field_list,
|
92
|
+
}
|
93
|
+
if len(field_list) != 0
|
94
|
+
else {},
|
95
|
+
"actionSet": {
|
96
|
+
"id": str(uuid.uuid4()),
|
97
|
+
"actions": outcome_list,
|
103
98
|
}
|
104
|
-
if
|
99
|
+
if len(outcome_list) != 0
|
105
100
|
else {},
|
106
101
|
}
|
107
|
-
|
102
|
+
if action_schema is not None
|
103
|
+
else {},
|
104
|
+
},
|
108
105
|
headers=folder_headers(app_folder_key, app_folder_path),
|
109
106
|
)
|
110
107
|
|
@@ -126,9 +123,7 @@ def _assign_task_spec(task_key: str, assignee: str) -> RequestSpec:
|
|
126
123
|
endpoint=Endpoint(
|
127
124
|
"/orchestrator_/odata/Tasks/UiPath.Server.Configuration.OData.AssignTasks"
|
128
125
|
),
|
129
|
-
|
130
|
-
{"taskAssignments": [{"taskId": task_key, "UserNameOrEmail": assignee}]}
|
131
|
-
),
|
126
|
+
json={"taskAssignments": [{"taskId": task_key, "UserNameOrEmail": assignee}]},
|
132
127
|
)
|
133
128
|
|
134
129
|
|
@@ -224,12 +219,18 @@ class ActionsService(FolderContext, BaseService):
|
|
224
219
|
)
|
225
220
|
|
226
221
|
response = await self.request_async(
|
227
|
-
spec.method,
|
222
|
+
spec.method,
|
223
|
+
spec.endpoint,
|
224
|
+
json=spec.json,
|
225
|
+
content=spec.content,
|
226
|
+
headers=spec.headers,
|
228
227
|
)
|
229
228
|
json_response = response.json()
|
230
229
|
if assignee:
|
231
230
|
spec = _assign_task_spec(json_response["id"], assignee)
|
232
|
-
await self.request_async(
|
231
|
+
await self.request_async(
|
232
|
+
spec.method, spec.endpoint, json=spec.json, content=spec.content
|
233
|
+
)
|
233
234
|
return Action.model_validate(json_response)
|
234
235
|
|
235
236
|
@traced(name="actions_create", run_type="uipath")
|
@@ -284,12 +285,18 @@ class ActionsService(FolderContext, BaseService):
|
|
284
285
|
)
|
285
286
|
|
286
287
|
response = self.request(
|
287
|
-
spec.method,
|
288
|
+
spec.method,
|
289
|
+
spec.endpoint,
|
290
|
+
json=spec.json,
|
291
|
+
content=spec.content,
|
292
|
+
headers=spec.headers,
|
288
293
|
)
|
289
294
|
json_response = response.json()
|
290
295
|
if assignee:
|
291
296
|
spec = _assign_task_spec(json_response["id"], assignee)
|
292
|
-
self.request(
|
297
|
+
self.request(
|
298
|
+
spec.method, spec.endpoint, json=spec.json, content=spec.content
|
299
|
+
)
|
293
300
|
return Action.model_validate(json_response)
|
294
301
|
|
295
302
|
@traced(name="actions_retrieve", run_type="uipath")
|
uipath/_services/api_client.py
CHANGED
@@ -25,7 +25,6 @@ class ApiClient(FolderContext, BaseService):
|
|
25
25
|
method: str,
|
26
26
|
url: Union[URL, str],
|
27
27
|
scoped: Literal["org", "tenant"] = "tenant",
|
28
|
-
infer_content_type=False,
|
29
28
|
**kwargs: Any,
|
30
29
|
) -> Response:
|
31
30
|
if kwargs.get("include_folder_headers", False):
|
@@ -37,16 +36,13 @@ class ApiClient(FolderContext, BaseService):
|
|
37
36
|
if "include_folder_headers" in kwargs:
|
38
37
|
del kwargs["include_folder_headers"]
|
39
38
|
|
40
|
-
return super().request(
|
41
|
-
method, url, scoped=scoped, infer_content_type=infer_content_type, **kwargs
|
42
|
-
)
|
39
|
+
return super().request(method, url, scoped=scoped, **kwargs)
|
43
40
|
|
44
41
|
async def request_async(
|
45
42
|
self,
|
46
43
|
method: str,
|
47
44
|
url: Union[URL, str],
|
48
45
|
scoped: Literal["org", "tenant"] = "tenant",
|
49
|
-
infer_content_type=False,
|
50
46
|
**kwargs: Any,
|
51
47
|
) -> Response:
|
52
48
|
if kwargs.get("include_folder_headers", False):
|
@@ -58,6 +54,4 @@ class ApiClient(FolderContext, BaseService):
|
|
58
54
|
if "include_folder_headers" in kwargs:
|
59
55
|
del kwargs["include_folder_headers"]
|
60
56
|
|
61
|
-
return await super().request_async(
|
62
|
-
method, url, scoped=scoped, infer_content_type=infer_content_type, **kwargs
|
63
|
-
)
|
57
|
+
return await super().request_async(method, url, scoped=scoped, **kwargs)
|
@@ -170,6 +170,8 @@ class AssetsService(FolderContext, BaseService):
|
|
170
170
|
response = self.request(
|
171
171
|
spec.method,
|
172
172
|
url=spec.endpoint,
|
173
|
+
params=spec.params,
|
174
|
+
json=spec.json,
|
173
175
|
content=spec.content,
|
174
176
|
headers=spec.headers,
|
175
177
|
)
|
@@ -223,6 +225,8 @@ class AssetsService(FolderContext, BaseService):
|
|
223
225
|
response = await self.request_async(
|
224
226
|
spec.method,
|
225
227
|
url=spec.endpoint,
|
228
|
+
params=spec.params,
|
229
|
+
json=spec.json,
|
226
230
|
content=spec.content,
|
227
231
|
headers=spec.headers,
|
228
232
|
)
|
@@ -267,6 +271,8 @@ class AssetsService(FolderContext, BaseService):
|
|
267
271
|
response = self.request(
|
268
272
|
spec.method,
|
269
273
|
url=spec.endpoint,
|
274
|
+
params=spec.params,
|
275
|
+
json=spec.json,
|
270
276
|
content=spec.content,
|
271
277
|
headers=spec.headers,
|
272
278
|
)
|
@@ -298,6 +304,8 @@ class AssetsService(FolderContext, BaseService):
|
|
298
304
|
response = await self.request_async(
|
299
305
|
spec.method,
|
300
306
|
url=spec.endpoint,
|
307
|
+
params=spec.params,
|
308
|
+
json=spec.json,
|
301
309
|
content=spec.content,
|
302
310
|
headers=spec.headers,
|
303
311
|
)
|
@@ -337,7 +345,7 @@ class AssetsService(FolderContext, BaseService):
|
|
337
345
|
endpoint=Endpoint(
|
338
346
|
"/orchestrator_/odata/Assets/UiPath.Server.Configuration.OData.GetRobotAssetByNameForRobotKey"
|
339
347
|
),
|
340
|
-
|
348
|
+
json={"assetName": name, "robotKey": robot_key},
|
341
349
|
headers={
|
342
350
|
**header_folder(folder_key, folder_path),
|
343
351
|
},
|
@@ -355,12 +363,10 @@ class AssetsService(FolderContext, BaseService):
|
|
355
363
|
endpoint=Endpoint(
|
356
364
|
"/orchestrator_/odata/Assets/UiPath.Server.Configuration.OData.SetRobotAssetByRobotKey"
|
357
365
|
),
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
}
|
363
|
-
),
|
366
|
+
json={
|
367
|
+
"robotKey": self._execution_context.robot_key,
|
368
|
+
"robotAsset": robot_asset.model_dump(by_alias=True, exclude_none=True),
|
369
|
+
},
|
364
370
|
headers={
|
365
371
|
**header_folder(folder_key, folder_path),
|
366
372
|
},
|
@@ -87,6 +87,8 @@ class ProcessesService(FolderContext, BaseService):
|
|
87
87
|
response = self.request(
|
88
88
|
spec.method,
|
89
89
|
url=spec.endpoint,
|
90
|
+
params=spec.params,
|
91
|
+
json=spec.json,
|
90
92
|
content=spec.content,
|
91
93
|
headers=spec.headers,
|
92
94
|
)
|
@@ -146,6 +148,8 @@ class ProcessesService(FolderContext, BaseService):
|
|
146
148
|
response = await self.request_async(
|
147
149
|
spec.method,
|
148
150
|
url=spec.endpoint,
|
151
|
+
params=spec.params,
|
152
|
+
json=spec.json,
|
149
153
|
content=spec.content,
|
150
154
|
headers=spec.headers,
|
151
155
|
)
|
@@ -230,18 +234,18 @@ class ProcessesService(FolderContext, BaseService):
|
|
230
234
|
folder_key: Optional[str] = None,
|
231
235
|
folder_path: Optional[str] = None,
|
232
236
|
) -> RequestSpec:
|
233
|
-
|
234
|
-
request_scope = RequestSpec(
|
237
|
+
request_spec = RequestSpec(
|
235
238
|
method="POST",
|
236
239
|
endpoint=Endpoint(
|
237
240
|
"/orchestrator_/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs"
|
238
241
|
),
|
239
|
-
|
242
|
+
json={"startInfo": {"ReleaseName": name, **(input_data or {})}},
|
240
243
|
headers={
|
241
244
|
**header_folder(folder_key, folder_path),
|
242
245
|
},
|
243
246
|
)
|
244
247
|
job_key = os.environ.get(ENV_JOB_KEY, None)
|
245
248
|
if job_key:
|
246
|
-
|
247
|
-
|
249
|
+
request_spec.headers[HEADER_JOB_KEY] = job_key
|
250
|
+
|
251
|
+
return request_spec
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: uipath
|
3
|
-
Version: 2.1.
|
3
|
+
Version: 2.1.48
|
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
|
@@ -80,14 +80,14 @@ uipath/_cli/_utils/_input_args.py,sha256=3LGNqVpJItvof75VGm-ZNTUMUH9-c7-YgleM5b2
|
|
80
80
|
uipath/_cli/_utils/_parse_ast.py,sha256=8Iohz58s6bYQ7rgWtOTjrEInLJ-ETikmOMZzZdIY2Co,20072
|
81
81
|
uipath/_cli/_utils/_processes.py,sha256=q7DfEKHISDWf3pngci5za_z0Pbnf_shWiYEcTOTCiyk,1855
|
82
82
|
uipath/_cli/_utils/_project_files.py,sha256=a_mhBN0CLp2h56DYswjE79BP3M_LpIMYteJcfcGoCRc,13144
|
83
|
-
uipath/_cli/_utils/_studio_project.py,sha256=
|
83
|
+
uipath/_cli/_utils/_studio_project.py,sha256=HvzcpIIIA4hUIvMbId1dsAhmFLMuhnS2ZtyNdcpXJ8c,15422
|
84
84
|
uipath/_cli/_utils/_tracing.py,sha256=2igb03j3EHjF_A406UhtCKkPfudVfFPjUq5tXUEG4oo,1541
|
85
85
|
uipath/_cli/_utils/_uv_helpers.py,sha256=6SvoLnZPoKIxW0sjMvD1-ENV_HOXDYzH34GjBqwT138,3450
|
86
86
|
uipath/_services/__init__.py,sha256=10xtw3ENC30yR9CCq_b94RMZ3YrUeyfHV33yWYUd8tU,896
|
87
|
-
uipath/_services/_base_service.py,sha256=
|
88
|
-
uipath/_services/actions_service.py,sha256=
|
89
|
-
uipath/_services/api_client.py,sha256=
|
90
|
-
uipath/_services/assets_service.py,sha256=
|
87
|
+
uipath/_services/_base_service.py,sha256=x9-9jhPzn9Z16KRdFHhJNvV-FZHvTniMsDfxlS4Cutk,5782
|
88
|
+
uipath/_services/actions_service.py,sha256=2RPMR-hFMsOlqEyjIf3aF7-lrf57jdrSD0pBjj0Kyko,16040
|
89
|
+
uipath/_services/api_client.py,sha256=kGm04ijk9AOEQd2BMxvQg-2QoB8dmyoDwFFDPyutAGw,1966
|
90
|
+
uipath/_services/assets_service.py,sha256=pG0Io--SeiRRQmfUWPQPl1vq3csZlQgx30LBNKRmmF8,12145
|
91
91
|
uipath/_services/attachments_service.py,sha256=NPQYK7CGjfBaNT_1S5vEAfODmOChTbQZforllFM2ofU,26678
|
92
92
|
uipath/_services/buckets_service.py,sha256=5s8tuivd7GUZYj774DDUYTa0axxlUuesc4EBY1V5sdk,18496
|
93
93
|
uipath/_services/connections_service.py,sha256=Rf-DCm43tsDM6Cfp41iwGR4gUk_YCdobGcmbSoKvQ6E,7480
|
@@ -95,7 +95,7 @@ uipath/_services/context_grounding_service.py,sha256=EBf7lIIYz_s1ubf_07OAZXQHjS8
|
|
95
95
|
uipath/_services/folder_service.py,sha256=9JqgjKhWD-G_KUnfUTP2BADxL6OK9QNZsBsWZHAULdE,2749
|
96
96
|
uipath/_services/jobs_service.py,sha256=UwsY0Cir7Yd5_mTeH0uHLmcmQZpdbT8KNx3z3F0cHZA,32775
|
97
97
|
uipath/_services/llm_gateway_service.py,sha256=oZR--75V8ULdLjVC7lo-lJ5786J_qfXUDe0R9iWNAKs,24306
|
98
|
-
uipath/_services/processes_service.py,sha256=
|
98
|
+
uipath/_services/processes_service.py,sha256=O_uHgQ1rnwiV5quG0OQqabAnE6Rf6cWrMENYY2jKWt8,8585
|
99
99
|
uipath/_services/queues_service.py,sha256=VaG3dWL2QK6AJBOLoW2NQTpkPfZjsqsYPl9-kfXPFzA,13534
|
100
100
|
uipath/_utils/__init__.py,sha256=VdcpnENJIa0R6Y26NoxY64-wUVyvb4pKfTh1wXDQeMk,526
|
101
101
|
uipath/_utils/_endpoint.py,sha256=yYHwqbQuJIevpaTkdfYJS9CrtlFeEyfb5JQK5osTCog,2489
|
@@ -145,8 +145,8 @@ uipath/tracing/_traced.py,sha256=qeVDrds2OUnpdUIA0RhtF0kg2dlAZhyC1RRkI-qivTM,185
|
|
145
145
|
uipath/tracing/_utils.py,sha256=wJRELaPu69iY0AhV432Dk5QYf_N_ViRU4kAUG1BI1ew,10384
|
146
146
|
uipath/utils/__init__.py,sha256=VD-KXFpF_oWexFg6zyiWMkxl2HM4hYJMIUDZ1UEtGx0,105
|
147
147
|
uipath/utils/_endpoints_manager.py,sha256=iRTl5Q0XAm_YgcnMcJOXtj-8052sr6jpWuPNz6CgT0Q,8408
|
148
|
-
uipath-2.1.
|
149
|
-
uipath-2.1.
|
150
|
-
uipath-2.1.
|
151
|
-
uipath-2.1.
|
152
|
-
uipath-2.1.
|
148
|
+
uipath-2.1.48.dist-info/METADATA,sha256=PYtAIE5tJUVOv7QMf82ym3nhNYhitzMO9K6d0yg_yKQ,6482
|
149
|
+
uipath-2.1.48.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
150
|
+
uipath-2.1.48.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
|
151
|
+
uipath-2.1.48.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
|
152
|
+
uipath-2.1.48.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|