asteroid-odyssey 1.6.22__py3-none-any.whl → 1.6.29__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.
- asteroid_odyssey/__init__.py +2 -0
- asteroid_odyssey/models/__init__.py +1 -0
- asteroid_odyssey/models/agents_profile_credential_update.py +90 -0
- asteroid_odyssey/models/agents_profile_update_agent_profile_request.py +11 -1
- {asteroid_odyssey-1.6.22.dist-info → asteroid_odyssey-1.6.29.dist-info}/METADATA +1 -1
- {asteroid_odyssey-1.6.22.dist-info → asteroid_odyssey-1.6.29.dist-info}/RECORD +8 -7
- {asteroid_odyssey-1.6.22.dist-info → asteroid_odyssey-1.6.29.dist-info}/WHEEL +0 -0
- {asteroid_odyssey-1.6.22.dist-info → asteroid_odyssey-1.6.29.dist-info}/top_level.txt +0 -0
asteroid_odyssey/__init__.py
CHANGED
|
@@ -122,6 +122,7 @@ __all__ = [
|
|
|
122
122
|
"AgentsProfileCountryCode",
|
|
123
123
|
"AgentsProfileCreateAgentProfileRequest",
|
|
124
124
|
"AgentsProfileCredential",
|
|
125
|
+
"AgentsProfileCredentialUpdate",
|
|
125
126
|
"AgentsProfileOperatingSystem",
|
|
126
127
|
"AgentsProfileProxyType",
|
|
127
128
|
"AgentsProfileSameSite",
|
|
@@ -248,6 +249,7 @@ from asteroid_odyssey.models.agents_profile_cookie import AgentsProfileCookie as
|
|
|
248
249
|
from asteroid_odyssey.models.agents_profile_country_code import AgentsProfileCountryCode as AgentsProfileCountryCode
|
|
249
250
|
from asteroid_odyssey.models.agents_profile_create_agent_profile_request import AgentsProfileCreateAgentProfileRequest as AgentsProfileCreateAgentProfileRequest
|
|
250
251
|
from asteroid_odyssey.models.agents_profile_credential import AgentsProfileCredential as AgentsProfileCredential
|
|
252
|
+
from asteroid_odyssey.models.agents_profile_credential_update import AgentsProfileCredentialUpdate as AgentsProfileCredentialUpdate
|
|
251
253
|
from asteroid_odyssey.models.agents_profile_operating_system import AgentsProfileOperatingSystem as AgentsProfileOperatingSystem
|
|
252
254
|
from asteroid_odyssey.models.agents_profile_proxy_type import AgentsProfileProxyType as AgentsProfileProxyType
|
|
253
255
|
from asteroid_odyssey.models.agents_profile_same_site import AgentsProfileSameSite as AgentsProfileSameSite
|
|
@@ -105,6 +105,7 @@ from asteroid_odyssey.models.agents_profile_cookie import AgentsProfileCookie
|
|
|
105
105
|
from asteroid_odyssey.models.agents_profile_country_code import AgentsProfileCountryCode
|
|
106
106
|
from asteroid_odyssey.models.agents_profile_create_agent_profile_request import AgentsProfileCreateAgentProfileRequest
|
|
107
107
|
from asteroid_odyssey.models.agents_profile_credential import AgentsProfileCredential
|
|
108
|
+
from asteroid_odyssey.models.agents_profile_credential_update import AgentsProfileCredentialUpdate
|
|
108
109
|
from asteroid_odyssey.models.agents_profile_operating_system import AgentsProfileOperatingSystem
|
|
109
110
|
from asteroid_odyssey.models.agents_profile_proxy_type import AgentsProfileProxyType
|
|
110
111
|
from asteroid_odyssey.models.agents_profile_same_site import AgentsProfileSameSite
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Agent Service
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
from __future__ import annotations
|
|
16
|
+
import pprint
|
|
17
|
+
import re # noqa: F401
|
|
18
|
+
import json
|
|
19
|
+
|
|
20
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
21
|
+
from typing import Any, ClassVar, Dict, List
|
|
22
|
+
from typing_extensions import Annotated
|
|
23
|
+
from typing import Optional, Set
|
|
24
|
+
from typing_extensions import Self
|
|
25
|
+
|
|
26
|
+
class AgentsProfileCredentialUpdate(BaseModel):
|
|
27
|
+
"""
|
|
28
|
+
Request to update an existing credential by name
|
|
29
|
+
""" # noqa: E501
|
|
30
|
+
name: Annotated[str, Field(min_length=1, strict=True)] = Field(description="Name of the credential to update (case-insensitive, will be matched as uppercase)")
|
|
31
|
+
data: Annotated[str, Field(min_length=1, strict=True)] = Field(description="New credential value (plaintext - will be encrypted server-side)")
|
|
32
|
+
__properties: ClassVar[List[str]] = ["name", "data"]
|
|
33
|
+
|
|
34
|
+
model_config = ConfigDict(
|
|
35
|
+
populate_by_name=True,
|
|
36
|
+
validate_assignment=True,
|
|
37
|
+
protected_namespaces=(),
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def to_str(self) -> str:
|
|
42
|
+
"""Returns the string representation of the model using alias"""
|
|
43
|
+
return pprint.pformat(self.model_dump(by_alias=True))
|
|
44
|
+
|
|
45
|
+
def to_json(self) -> str:
|
|
46
|
+
"""Returns the JSON representation of the model using alias"""
|
|
47
|
+
# TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> Optional[Self]:
|
|
52
|
+
"""Create an instance of AgentsProfileCredentialUpdate from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
56
|
+
"""Return the dictionary representation of the model using alias.
|
|
57
|
+
|
|
58
|
+
This has the following differences from calling pydantic's
|
|
59
|
+
`self.model_dump(by_alias=True)`:
|
|
60
|
+
|
|
61
|
+
* `None` is only added to the output dict for nullable fields that
|
|
62
|
+
were set at model initialization. Other fields with value `None`
|
|
63
|
+
are ignored.
|
|
64
|
+
"""
|
|
65
|
+
excluded_fields: Set[str] = set([
|
|
66
|
+
])
|
|
67
|
+
|
|
68
|
+
_dict = self.model_dump(
|
|
69
|
+
by_alias=True,
|
|
70
|
+
exclude=excluded_fields,
|
|
71
|
+
exclude_none=True,
|
|
72
|
+
)
|
|
73
|
+
return _dict
|
|
74
|
+
|
|
75
|
+
@classmethod
|
|
76
|
+
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
|
|
77
|
+
"""Create an instance of AgentsProfileCredentialUpdate from a dict"""
|
|
78
|
+
if obj is None:
|
|
79
|
+
return None
|
|
80
|
+
|
|
81
|
+
if not isinstance(obj, dict):
|
|
82
|
+
return cls.model_validate(obj)
|
|
83
|
+
|
|
84
|
+
_obj = cls.model_validate({
|
|
85
|
+
"name": obj.get("name"),
|
|
86
|
+
"data": obj.get("data")
|
|
87
|
+
})
|
|
88
|
+
return _obj
|
|
89
|
+
|
|
90
|
+
|
|
@@ -23,6 +23,7 @@ from typing_extensions import Annotated
|
|
|
23
23
|
from asteroid_odyssey.models.agents_profile_cookie import AgentsProfileCookie
|
|
24
24
|
from asteroid_odyssey.models.agents_profile_country_code import AgentsProfileCountryCode
|
|
25
25
|
from asteroid_odyssey.models.agents_profile_credential import AgentsProfileCredential
|
|
26
|
+
from asteroid_odyssey.models.agents_profile_credential_update import AgentsProfileCredentialUpdate
|
|
26
27
|
from asteroid_odyssey.models.agents_profile_operating_system import AgentsProfileOperatingSystem
|
|
27
28
|
from asteroid_odyssey.models.agents_profile_proxy_type import AgentsProfileProxyType
|
|
28
29
|
from typing import Optional, Set
|
|
@@ -41,10 +42,11 @@ class AgentsProfileUpdateAgentProfileRequest(BaseModel):
|
|
|
41
42
|
extra_stealth: Optional[StrictBool] = Field(default=None, description="Whether to enable extra stealth mode", alias="extraStealth")
|
|
42
43
|
cache_persistence: Optional[StrictBool] = Field(default=None, description="Whether to persist browser cache between sessions", alias="cachePersistence")
|
|
43
44
|
credentials_to_add: Optional[List[AgentsProfileCredential]] = Field(default=None, description="Credentials to add to the profile", alias="credentialsToAdd")
|
|
45
|
+
credentials_to_update: Optional[List[AgentsProfileCredentialUpdate]] = Field(default=None, description="Credentials to update by name (matched case-insensitively)", alias="credentialsToUpdate")
|
|
44
46
|
credentials_to_delete: Optional[List[StrictStr]] = Field(default=None, description="IDs of credentials to remove from the profile", alias="credentialsToDelete")
|
|
45
47
|
cookies_to_add: Optional[List[AgentsProfileCookie]] = Field(default=None, description="Cookies to add to the profile", alias="cookiesToAdd")
|
|
46
48
|
cookies_to_delete: Optional[List[StrictStr]] = Field(default=None, description="IDs of cookies to remove from the profile", alias="cookiesToDelete")
|
|
47
|
-
__properties: ClassVar[List[str]] = ["name", "description", "proxyCC", "proxyType", "captchaSolverActive", "operatingSystem", "extraStealth", "cachePersistence", "credentialsToAdd", "credentialsToDelete", "cookiesToAdd", "cookiesToDelete"]
|
|
49
|
+
__properties: ClassVar[List[str]] = ["name", "description", "proxyCC", "proxyType", "captchaSolverActive", "operatingSystem", "extraStealth", "cachePersistence", "credentialsToAdd", "credentialsToUpdate", "credentialsToDelete", "cookiesToAdd", "cookiesToDelete"]
|
|
48
50
|
|
|
49
51
|
model_config = ConfigDict(
|
|
50
52
|
populate_by_name=True,
|
|
@@ -92,6 +94,13 @@ class AgentsProfileUpdateAgentProfileRequest(BaseModel):
|
|
|
92
94
|
if _item_credentials_to_add:
|
|
93
95
|
_items.append(_item_credentials_to_add.to_dict())
|
|
94
96
|
_dict['credentialsToAdd'] = _items
|
|
97
|
+
# override the default output from pydantic by calling `to_dict()` of each item in credentials_to_update (list)
|
|
98
|
+
_items = []
|
|
99
|
+
if self.credentials_to_update:
|
|
100
|
+
for _item_credentials_to_update in self.credentials_to_update:
|
|
101
|
+
if _item_credentials_to_update:
|
|
102
|
+
_items.append(_item_credentials_to_update.to_dict())
|
|
103
|
+
_dict['credentialsToUpdate'] = _items
|
|
95
104
|
# override the default output from pydantic by calling `to_dict()` of each item in cookies_to_add (list)
|
|
96
105
|
_items = []
|
|
97
106
|
if self.cookies_to_add:
|
|
@@ -120,6 +129,7 @@ class AgentsProfileUpdateAgentProfileRequest(BaseModel):
|
|
|
120
129
|
"extraStealth": obj.get("extraStealth"),
|
|
121
130
|
"cachePersistence": obj.get("cachePersistence"),
|
|
122
131
|
"credentialsToAdd": [AgentsProfileCredential.from_dict(_item) for _item in obj["credentialsToAdd"]] if obj.get("credentialsToAdd") is not None else None,
|
|
132
|
+
"credentialsToUpdate": [AgentsProfileCredentialUpdate.from_dict(_item) for _item in obj["credentialsToUpdate"]] if obj.get("credentialsToUpdate") is not None else None,
|
|
123
133
|
"credentialsToDelete": obj.get("credentialsToDelete"),
|
|
124
134
|
"cookiesToAdd": [AgentsProfileCookie.from_dict(_item) for _item in obj["cookiesToAdd"]] if obj.get("cookiesToAdd") is not None else None,
|
|
125
135
|
"cookiesToDelete": obj.get("cookiesToDelete")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
asteroid_odyssey/__init__.py,sha256=
|
|
1
|
+
asteroid_odyssey/__init__.py,sha256=au_ZYQxXtGIj_11XExsvf6sS7JGuLHMx7tEmuTM5jSE,22370
|
|
2
2
|
asteroid_odyssey/api_client.py,sha256=vk7bgx6L2b1SvKdTD9RRCY2d1rRvHaI6QoQy0KiFZ8A,27723
|
|
3
3
|
asteroid_odyssey/api_response.py,sha256=eMxw1mpmJcoGZ3gs9z6jM4oYoZ10Gjk333s9sKxGv7s,652
|
|
4
4
|
asteroid_odyssey/configuration.py,sha256=ICQFu0VrF-OoEScevweF58q4R7IMpP_-r9x60nuyba4,18903
|
|
@@ -10,7 +10,7 @@ asteroid_odyssey/api/agent_profiles_api.py,sha256=EzvS-86oCwa_9xF5XBAy5Z0VaUvJmz
|
|
|
10
10
|
asteroid_odyssey/api/agents_api.py,sha256=EWiMV7wcVBMdas96xbWBNw2mqIs3b04G6S1URXW12-4,26482
|
|
11
11
|
asteroid_odyssey/api/execution_api.py,sha256=vqo84-Aw5BvJ0ZTDfc21SPdpeuSYRWzzBIgPj1u4-as,77059
|
|
12
12
|
asteroid_odyssey/api/files_api.py,sha256=3eelhlLfOhN53THJ90LfdLo3kdCnnw5Qml83dtWqPC4,35447
|
|
13
|
-
asteroid_odyssey/models/__init__.py,sha256=
|
|
13
|
+
asteroid_odyssey/models/__init__.py,sha256=Wr6OcKryAGz-xQtojTiFoU0fR2uGF7uXEafkZ7UqqSs,12331
|
|
14
14
|
asteroid_odyssey/models/agent_list200_response.py,sha256=fZNz18hRSrvKPHPAe16A5p1K1RopKj0Unn6Npglhu7w,3235
|
|
15
15
|
asteroid_odyssey/models/agent_profile_clear_browser_cache200_response.py,sha256=R7svpgREt63we4utbMFsBPxw2-oycWLwi5xfINc6wL4,2591
|
|
16
16
|
asteroid_odyssey/models/agent_profiles_list200_response.py,sha256=OHvPOC6Kzo0jLWgkbx8TnkRs9w4VlAMsghH6gpyitdc,3308
|
|
@@ -102,11 +102,12 @@ asteroid_odyssey/models/agents_profile_cookie.py,sha256=972PRRMXbzZC5ed2Ql2W-1s_
|
|
|
102
102
|
asteroid_odyssey/models/agents_profile_country_code.py,sha256=fJpWW77odDYMc5xssM8LP-v9KkdHHwTGNncvhsyGHr4,888
|
|
103
103
|
asteroid_odyssey/models/agents_profile_create_agent_profile_request.py,sha256=F7aEM-oK4khQgu9cVPy47w5050iho8demONBbRtkEhI,6590
|
|
104
104
|
asteroid_odyssey/models/agents_profile_credential.py,sha256=4RtP_-koDtuKADkR0JIXPUIGVjAuFrkrqiVlWs6UbmI,3246
|
|
105
|
+
asteroid_odyssey/models/agents_profile_credential_update.py,sha256=nsdvzfhZ0uZPp5Vytx5l8Wi5I3UTJfHVsCxPAsV3-IY,2926
|
|
105
106
|
asteroid_odyssey/models/agents_profile_operating_system.py,sha256=xQCfTpEEMtzXtTnNcWerahiL7J4_J1f-VUm-c74Rxig,814
|
|
106
107
|
asteroid_odyssey/models/agents_profile_proxy_type.py,sha256=NyLZ_oUcfOz47MFZhnXfx_9oe25gdZFGYykC83ZoP_Q,831
|
|
107
108
|
asteroid_odyssey/models/agents_profile_same_site.py,sha256=NBMQWIzxbGPZwghb4r7wl9lHqisvgXNzpMMNf8RYb9Q,800
|
|
108
109
|
asteroid_odyssey/models/agents_profile_sort_field.py,sha256=mLH_ycO9YNwwSMExi193Ty7MqyiEUvjNxd5FBOUUdHA,837
|
|
109
|
-
asteroid_odyssey/models/agents_profile_update_agent_profile_request.py,sha256=
|
|
110
|
+
asteroid_odyssey/models/agents_profile_update_agent_profile_request.py,sha256=6vY5VaOCCl29YuVHwTosPMRAJLASunEzYIPTMQ_Fgfk,7605
|
|
110
111
|
asteroid_odyssey/models/common_bad_request_error_body.py,sha256=cZQcZH6c2RmQleZe57-mfUsCKW74lGGtVMWbJFGc1ho,2889
|
|
111
112
|
asteroid_odyssey/models/common_error.py,sha256=to8zl1yPqcf8hRXEZeOrhuA_jWhmpaMmly5Y_Xl129k,2551
|
|
112
113
|
asteroid_odyssey/models/common_forbidden_error_body.py,sha256=9yADAujD_9eTW4BtZ7oYifmFCDTpAw-j1jEEJhwdAVs,2885
|
|
@@ -117,7 +118,7 @@ asteroid_odyssey/models/common_sort_direction.py,sha256=UBW99PM3QRGRRE7dB5OSBhmh
|
|
|
117
118
|
asteroid_odyssey/models/common_unauthorized_error_body.py,sha256=Ng62vZVuPWEkTvdnYimbItSKhUGT9G52ZOapMQ2O7Xg,2897
|
|
118
119
|
asteroid_odyssey/models/executions_list200_response.py,sha256=hbMbbsh7F8Cjl3S2hhRkcH4cvHCL24TVz8fwhGE9LfI,3288
|
|
119
120
|
asteroid_odyssey/models/version.py,sha256=Vjiri_a5CcDJ1lSziRqif5HuFpaxneVDLIB1r8SFIkE,707
|
|
120
|
-
asteroid_odyssey-1.6.
|
|
121
|
-
asteroid_odyssey-1.6.
|
|
122
|
-
asteroid_odyssey-1.6.
|
|
123
|
-
asteroid_odyssey-1.6.
|
|
121
|
+
asteroid_odyssey-1.6.29.dist-info/METADATA,sha256=9xfXckLkqEaAz1Gx2I0YjsIzLXwWi_WGl79NhOyeVKw,1890
|
|
122
|
+
asteroid_odyssey-1.6.29.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
123
|
+
asteroid_odyssey-1.6.29.dist-info/top_level.txt,sha256=h4T6NKscnThJ4Nhzors2NKlJeZzepnM7XvDgsnfi5HA,17
|
|
124
|
+
asteroid_odyssey-1.6.29.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|