uipath 2.0.43__py3-none-any.whl → 2.0.45__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.

Potentially problematic release.


This version of uipath might be problematic. Click here for more details.

@@ -16,7 +16,7 @@ from ._utils import (
16
16
  )
17
17
 
18
18
  console = ConsoleLogger()
19
- client = httpx.Client(follow_redirects=True)
19
+ client = httpx.Client(follow_redirects=True, timeout=30.0)
20
20
 
21
21
 
22
22
  class PortalService:
@@ -5,7 +5,7 @@ import httpx
5
5
  from ._console import ConsoleLogger
6
6
 
7
7
  console = ConsoleLogger()
8
- client = httpx.Client(follow_redirects=True)
8
+ client = httpx.Client(follow_redirects=True, timeout=30.0)
9
9
 
10
10
 
11
11
  def get_personal_workspace_info(
@@ -7,7 +7,7 @@ import httpx
7
7
  from ._console import ConsoleLogger
8
8
 
9
9
  console = ConsoleLogger()
10
- client = httpx.Client(follow_redirects=True)
10
+ client = httpx.Client(follow_redirects=True, timeout=30.0)
11
11
 
12
12
 
13
13
  def get_release_info(
uipath/_cli/cli_invoke.py CHANGED
@@ -21,7 +21,7 @@ from ._utils._processes import get_release_info
21
21
  logger = logging.getLogger(__name__)
22
22
  load_dotenv()
23
23
  console = ConsoleLogger()
24
- client = httpx.Client(follow_redirects=True)
24
+ client = httpx.Client(follow_redirects=True, timeout=30.0)
25
25
 
26
26
 
27
27
  def _read_project_name() -> str:
@@ -12,7 +12,7 @@ from ._utils._folders import get_personal_workspace_info
12
12
  from ._utils._processes import get_release_info
13
13
 
14
14
  console = ConsoleLogger()
15
- client = httpx.Client(follow_redirects=True)
15
+ client = httpx.Client(follow_redirects=True, timeout=30.0)
16
16
 
17
17
 
18
18
  def get_most_recent_package():
@@ -40,17 +40,25 @@ class BaseService:
40
40
  self._config = config
41
41
  self._execution_context = execution_context
42
42
  self._tenant_scope_client = Client(
43
- base_url=self._config.base_url, headers=Headers(self.default_headers)
43
+ base_url=self._config.base_url,
44
+ headers=Headers(self.default_headers),
45
+ timeout=30.0,
44
46
  )
45
47
  self._tenant_scope_client_async = AsyncClient(
46
- base_url=self._config.base_url, headers=Headers(self.default_headers)
48
+ base_url=self._config.base_url,
49
+ headers=Headers(self.default_headers),
50
+ timeout=30.0,
47
51
  )
48
52
  org_scope_base_url = self.__get_org_scope_base_url()
49
53
  self._org_scope_client = Client(
50
- base_url=org_scope_base_url, headers=self.default_headers
54
+ base_url=org_scope_base_url,
55
+ headers=Headers(self.default_headers),
56
+ timeout=30.0,
51
57
  )
52
58
  self._org_scope_client_async = AsyncClient(
53
- base_url=org_scope_base_url, headers=self.default_headers
59
+ base_url=org_scope_base_url,
60
+ headers=Headers(self.default_headers),
61
+ timeout=30.0,
54
62
  )
55
63
 
56
64
  self._overwrites_manager = OverwritesManager()
@@ -51,7 +51,7 @@ class BucketsService(FolderContext, BaseService):
51
51
  Exception: If the bucket with the specified key is not found.
52
52
  """
53
53
  bucket = self.retrieve(
54
- name, key, folder_key=folder_key, folder_path=folder_path
54
+ name=name, key=key, folder_key=folder_key, folder_path=folder_path
55
55
  )
56
56
  spec = self._retrieve_readUri_spec(
57
57
  bucket, blob_file_path, folder_key=folder_key, folder_path=folder_path
@@ -108,7 +108,7 @@ class BucketsService(FolderContext, BaseService):
108
108
  Exception: If the bucket with the specified key or name is not found.
109
109
  """
110
110
  bucket = self.retrieve(
111
- name, key, folder_key=folder_key, folder_path=folder_path
111
+ name=name, key=key, folder_key=folder_key, folder_path=folder_path
112
112
  )
113
113
 
114
114
  bucket_id = bucket["Id"]
@@ -171,7 +171,7 @@ class BucketsService(FolderContext, BaseService):
171
171
  Exception: If the bucket with the specified key or name is not found.
172
172
  """
173
173
  bucket = await self.retrieve_async(
174
- name, key, folder_key=folder_key, folder_path=folder_path
174
+ name=name, key=key, folder_key=folder_key, folder_path=folder_path
175
175
  )
176
176
 
177
177
  bucket_id = bucket["Id"]
@@ -242,7 +242,7 @@ class BucketsService(FolderContext, BaseService):
242
242
  Exception: If the bucket with the specified key or name is not found.
243
243
  """
244
244
  bucket = self.retrieve(
245
- name, key, folder_key=folder_key, folder_path=folder_path
245
+ name=name, key=key, folder_key=folder_key, folder_path=folder_path
246
246
  )
247
247
  bucket_id = bucket["Id"]
248
248
 
@@ -306,7 +306,7 @@ class BucketsService(FolderContext, BaseService):
306
306
  Exception: If the bucket with the specified key or name is not found.
307
307
  """
308
308
  bucket = await self.retrieve_async(
309
- name, key, folder_key=folder_key, folder_path=folder_path
309
+ name=name, key=key, folder_key=folder_key, folder_path=folder_path
310
310
  )
311
311
 
312
312
  bucket_id = bucket["Id"]
@@ -324,7 +324,7 @@ class ContextGroundingService(FolderContext, BaseService):
324
324
  List[ContextGroundingQueryResponse]: A list of search results, each containing
325
325
  relevant contextual information and metadata.
326
326
  """
327
- index = self.retrieve(name)
327
+ index = self.retrieve(name, folder_key=folder_key, folder_path=folder_path)
328
328
  if index and index.in_progress_ingestion():
329
329
  raise IngestionInProgressException(index_name=name)
330
330
 
@@ -1,18 +1,36 @@
1
- from pydantic import BaseModel
1
+ from datetime import datetime
2
+ from typing import Optional
3
+
4
+ from pydantic import BaseModel, ConfigDict, Field
2
5
 
3
6
 
4
7
  class ContextGroundingMetadata(BaseModel):
5
- operation_id: str
6
- strategy: str
8
+ model_config = ConfigDict(
9
+ validate_by_name=True,
10
+ validate_by_alias=True,
11
+ use_enum_values=True,
12
+ arbitrary_types_allowed=True,
13
+ extra="allow",
14
+ json_encoders={datetime: lambda v: v.isoformat() if v else None},
15
+ )
16
+ operation_id: str = Field(alias="operation_id")
17
+ strategy: str = Field(alias="strategy")
7
18
 
8
19
 
9
20
  class ContextGroundingQueryResponse(BaseModel):
10
- id: str
11
- reference: str
12
- source: str
13
- page_number: str
14
- source_document_id: str
15
- caption: str
16
- score: float
17
- content: str
18
- metadata: ContextGroundingMetadata
21
+ model_config = ConfigDict(
22
+ validate_by_name=True,
23
+ validate_by_alias=True,
24
+ use_enum_values=True,
25
+ arbitrary_types_allowed=True,
26
+ extra="allow",
27
+ json_encoders={datetime: lambda v: v.isoformat() if v else None},
28
+ )
29
+ source: str = Field(alias="source")
30
+ page_number: str = Field(alias="page_number")
31
+ content: str = Field(alias="content")
32
+ metadata: ContextGroundingMetadata = Field(alias="metadata")
33
+ source_document_id: Optional[str] = Field(default=None, alias="source_document_id")
34
+ caption: Optional[str] = Field(default=None, alias="caption")
35
+ score: Optional[float] = Field(default=None, alias="score")
36
+ reference: Optional[str] = Field(default=None, alias="reference")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: uipath
3
- Version: 2.0.43
3
+ Version: 2.0.45
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
@@ -9,17 +9,17 @@ uipath/_cli/__init__.py,sha256=vGz3vJHkUvgK9_lKdzqiwwHkge1TCALRiOzGGwyr-8E,1885
9
9
  uipath/_cli/cli_auth.py,sha256=O-hbaYxLXBPXgnjW2gGa1lbvmVh1ui2-U9BzrLUU708,3707
10
10
  uipath/_cli/cli_deploy.py,sha256=lDqZQOsTPe8UyUApSQyFDMChj5HR6_hrEbn5tXtbHQE,608
11
11
  uipath/_cli/cli_init.py,sha256=qleaHOuXZyqQ001XXFX3m8W2y3pW-miwuvMBl6rHCa4,3699
12
- uipath/_cli/cli_invoke.py,sha256=YsVfN7COiE_huLPXqsMnUmno1-l2oAHgnMIWqHlR_oE,3670
12
+ uipath/_cli/cli_invoke.py,sha256=Lmv-VBl8Mb7a8jsqJJKcnW_0hC-7kfZYAZeDblfsr1A,3684
13
13
  uipath/_cli/cli_new.py,sha256=6lLK_p7kRFQPgsc2i9t1v0Su4O1rC7zK55ic3y54QR8,2065
14
14
  uipath/_cli/cli_pack.py,sha256=-rUGw4vB50QpY-oNmVhIUXXmmFmk7_dhtafqZFBDyZg,14981
15
- uipath/_cli/cli_publish.py,sha256=ozastFqfKZVZIKZLvRTXJq0ZXm4p-ZEVgwc5MeccisI,5716
15
+ uipath/_cli/cli_publish.py,sha256=87rVMukQbCRNYn6BTG9MdiBtYQU7q3b4wJQFwBoPmns,5730
16
16
  uipath/_cli/cli_run.py,sha256=ke4UQiqzagv4ST60-mvcC7nh1dQMw_Z6GQ2hAbnspU0,5074
17
17
  uipath/_cli/middlewares.py,sha256=IiJgjsqrJVKSXx4RcIKHWoH-SqWqpHPbhzkQEybmAos,3937
18
18
  uipath/_cli/spinner.py,sha256=bS-U_HA5yne11ejUERu7CQoXmWdabUD2bm62EfEdV8M,1107
19
19
  uipath/_cli/_auth/_auth_server.py,sha256=GRdjXUcvZO2O2GecolFJ8uMv7_DUD_VXeBJpElqmtIQ,7034
20
20
  uipath/_cli/_auth/_models.py,sha256=sYMCfvmprIqnZxStlD_Dxx2bcxgn0Ri4D7uwemwkcNg,948
21
21
  uipath/_cli/_auth/_oidc_utils.py,sha256=WaX9jDlXrlX6yD8i8gsocV8ngjaT72Xd1tvsZMmSbco,2127
22
- uipath/_cli/_auth/_portal_service.py,sha256=EXpUXhA20iFtwFJi7I72UJzuA4lEE_ZWt6MdfuW65c4,7226
22
+ uipath/_cli/_auth/_portal_service.py,sha256=80W0cn3rx6NEi_b15aSQ0ZQWFv7Om7SaOlkUUk2k7pA,7240
23
23
  uipath/_cli/_auth/_utils.py,sha256=9nb76xe5XmDZ0TAncp-_1SKqL6FdwRi9eS3C2noN1lY,1591
24
24
  uipath/_cli/_auth/auth_config.json,sha256=NTb_ZZor5xEgya2QbK51GiTL5_yVqG_QpV4VYIp8_mk,342
25
25
  uipath/_cli/_auth/index.html,sha256=ML_xDOcKs0ETYucufJskiYfWSvdrD_E26C0Qd3qpGj8,6280
@@ -35,18 +35,18 @@ uipath/_cli/_templates/main.py.template,sha256=QB62qX5HKDbW4lFskxj7h9uuxBITnTWqu
35
35
  uipath/_cli/_templates/package.nuspec.template,sha256=YZyLc-u_EsmIoKf42JsLQ55OGeFmb8VkIU2VF7DFbtw,359
36
36
  uipath/_cli/_utils/_common.py,sha256=h0-lvaAzz-4iM7WuEqZhlTo5QadBpsQyAdlggx73-PA,1123
37
37
  uipath/_cli/_utils/_console.py,sha256=rj4V3yeR1wnJzFTHnaE6wcY9OoJV-PiIQnLg_p62ClQ,6664
38
- uipath/_cli/_utils/_folders.py,sha256=YfU-DS2GONeB0dMN7VFPonc4Eh1-tCNX8r6v_5J5tzI,956
38
+ uipath/_cli/_utils/_folders.py,sha256=usjLNOMdhvelEv0wsJ-v6q-qiUR1tbwXJL4Sd_SOocI,970
39
39
  uipath/_cli/_utils/_input_args.py,sha256=pyQhEcQXHdFHYTVNzvfWp439aii5StojoptnmCv5lfs,4094
40
40
  uipath/_cli/_utils/_parse_ast.py,sha256=3XVjnhJNnSfjXlitct91VOtqSl0l-sqDpoWww28mMc0,20663
41
- uipath/_cli/_utils/_processes.py,sha256=b2CMYFEqMsAPeAFRfx9-8QftujdB28gXJ4sVTT4UVvw,1396
41
+ uipath/_cli/_utils/_processes.py,sha256=3lMKUb5ZMbCjkvolfwQKkah91tyBO9MHv5U7YWh4HbY,1410
42
42
  uipath/_services/__init__.py,sha256=VPbwLDsvN26nWZgvR-8_-tc3i0rk5doqjTJbSrK0nN4,818
43
- uipath/_services/_base_service.py,sha256=M8_fbAr303k6HF6HqsN00TROaYQQP7sv_GfxGRoLW2E,8072
43
+ uipath/_services/_base_service.py,sha256=i4f-4rkORhEIa6EWiSBUGlfFftAqKrRdjcV7fCGBYSY,8246
44
44
  uipath/_services/actions_service.py,sha256=DaWXbbLHVC-bVtxhMBm3Zfhx6IP8s9mviOTgK5g_CAQ,15883
45
45
  uipath/_services/api_client.py,sha256=1hYLc_90dQzCGnqqirEHpPqvL3Gkv2sSKoeOV_iTmlk,2903
46
46
  uipath/_services/assets_service.py,sha256=TXuL8dHCVLHb3AC2QixrwGz0Rjs70GHKTKg-S20sA_U,11115
47
- uipath/_services/buckets_service.py,sha256=PYZdGdgxwFYwpvZMzfWzps46O1FZ4QanfhzjvNnm5x0,17414
47
+ uipath/_services/buckets_service.py,sha256=P6p0oQTUGA8TBN02FFrq8stgF0o5oEFen1R1bgVgnKw,17459
48
48
  uipath/_services/connections_service.py,sha256=qh-HNL_GJsyPUD0wSJZRF8ZdrTE9l4HrIilmXGK6dDk,4581
49
- uipath/_services/context_grounding_service.py,sha256=bIIXDpNoryjP_qfukG7208x3XySlVxbgyYEkAvTCxNw,24049
49
+ uipath/_services/context_grounding_service.py,sha256=wRYPnpTFeZunS88OggRZ9qRaILHKdoEP_6VUCaF-Xw0,24097
50
50
  uipath/_services/folder_service.py,sha256=HtsBoBejvMuIZ-9gocAG9B8uKOFsAAD4WUozta-isXk,1673
51
51
  uipath/_services/jobs_service.py,sha256=MsJlu1egvHKZhHdammp4Xo9iJzceWquW4qIWT-nPBws,8214
52
52
  uipath/_services/llm_gateway_service.py,sha256=ySg3sflIoXmY9K7txlSm7bkuI2qzBT0kAKmGlFBk5KA,12032
@@ -66,7 +66,7 @@ uipath/models/action_schema.py,sha256=lKDhP7Eix23fFvfQrqqNmSOiPyyNF6tiRpUu0VZIn_
66
66
  uipath/models/actions.py,sha256=ekSH4YUQR4KPOH-heBm9yOgOfirndx0In4_S4VYWeEU,2993
67
67
  uipath/models/assets.py,sha256=8ZPImmJ-1u5KqdR1UBgZnGjSBW-Nr81Ruq_5Uav417A,1841
68
68
  uipath/models/connections.py,sha256=perIqW99YEg_0yWZPdpZlmNpZcwY_toR1wkqDUBdAN0,2014
69
- uipath/models/context_grounding.py,sha256=ak3cjlA90X1FceAAI0ry4jioTtK6Zxo0oqmKY_xs8bo,352
69
+ uipath/models/context_grounding.py,sha256=S9PeOlFlw7VxzzJVR_Fs28OObW3MLHUPCFqNgkEz24k,1315
70
70
  uipath/models/context_grounding_index.py,sha256=0ADlH8fC10qIbakgwU89pRVawzJ36TiSDKIqOhUdhuA,2580
71
71
  uipath/models/errors.py,sha256=gPyU4sKYn57v03aOVqm97mnU9Do2e7bwMQwiSQVp9qc,461
72
72
  uipath/models/exceptions.py,sha256=jav4egsVRfC1jN_FLnV7FVgWZapSepSKZQCxMe94Pac,590
@@ -79,8 +79,8 @@ uipath/tracing/__init__.py,sha256=GimSzv6qkCOlHOG1WtjYKJsZqcXpA28IgoXfR33JhiA,13
79
79
  uipath/tracing/_otel_exporters.py,sha256=x0PDPmDKJcxashsuehVsSsqBCzRr6WsNFaq_3_HS5F0,3014
80
80
  uipath/tracing/_traced.py,sha256=GFxOp73jk0vGTN_H7YZOOsEl9rVLaEhXGztMiYKIA-8,16634
81
81
  uipath/tracing/_utils.py,sha256=5SwsTGpHkIouXBndw-u8eCLnN4p7LM8DsTCCuf2jJgs,10165
82
- uipath-2.0.43.dist-info/METADATA,sha256=NyfFqNSroqPWGYy-l7WaMWf7K7w0wMziFES7kVdWNbg,6254
83
- uipath-2.0.43.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
84
- uipath-2.0.43.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
85
- uipath-2.0.43.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
86
- uipath-2.0.43.dist-info/RECORD,,
82
+ uipath-2.0.45.dist-info/METADATA,sha256=kmwR3JN4m0boEGzkLcLaRDEIl3aOLIzoDSrcCOXMn64,6254
83
+ uipath-2.0.45.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
84
+ uipath-2.0.45.dist-info/entry_points.txt,sha256=9C2_29U6Oq1ExFu7usihR-dnfIVNSKc-0EFbh0rskB4,43
85
+ uipath-2.0.45.dist-info/licenses/LICENSE,sha256=-KBavWXepyDjimmzH5fVAsi-6jNVpIKFc2kZs0Ri4ng,1058
86
+ uipath-2.0.45.dist-info/RECORD,,