robosystems-client 0.2.4__py3-none-any.whl → 0.2.5__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 robosystems-client might be problematic. Click here for more details.
- robosystems_client/models/auth_response.py +40 -0
- {robosystems_client-0.2.4.dist-info → robosystems_client-0.2.5.dist-info}/METADATA +1 -1
- {robosystems_client-0.2.4.dist-info → robosystems_client-0.2.5.dist-info}/RECORD +5 -5
- {robosystems_client-0.2.4.dist-info → robosystems_client-0.2.5.dist-info}/WHEEL +0 -0
- {robosystems_client-0.2.4.dist-info → robosystems_client-0.2.5.dist-info}/licenses/LICENSE +0 -0
|
@@ -21,11 +21,15 @@ class AuthResponse:
|
|
|
21
21
|
user (AuthResponseUser): User information
|
|
22
22
|
message (str): Success message
|
|
23
23
|
token (Union[None, Unset, str]): JWT authentication token (optional for cookie-based auth)
|
|
24
|
+
expires_in (Union[None, Unset, int]): Token expiry time in seconds from now
|
|
25
|
+
refresh_threshold (Union[None, Unset, int]): Recommended refresh threshold in seconds before expiry
|
|
24
26
|
"""
|
|
25
27
|
|
|
26
28
|
user: "AuthResponseUser"
|
|
27
29
|
message: str
|
|
28
30
|
token: Union[None, Unset, str] = UNSET
|
|
31
|
+
expires_in: Union[None, Unset, int] = UNSET
|
|
32
|
+
refresh_threshold: Union[None, Unset, int] = UNSET
|
|
29
33
|
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
30
34
|
|
|
31
35
|
def to_dict(self) -> dict[str, Any]:
|
|
@@ -39,6 +43,18 @@ class AuthResponse:
|
|
|
39
43
|
else:
|
|
40
44
|
token = self.token
|
|
41
45
|
|
|
46
|
+
expires_in: Union[None, Unset, int]
|
|
47
|
+
if isinstance(self.expires_in, Unset):
|
|
48
|
+
expires_in = UNSET
|
|
49
|
+
else:
|
|
50
|
+
expires_in = self.expires_in
|
|
51
|
+
|
|
52
|
+
refresh_threshold: Union[None, Unset, int]
|
|
53
|
+
if isinstance(self.refresh_threshold, Unset):
|
|
54
|
+
refresh_threshold = UNSET
|
|
55
|
+
else:
|
|
56
|
+
refresh_threshold = self.refresh_threshold
|
|
57
|
+
|
|
42
58
|
field_dict: dict[str, Any] = {}
|
|
43
59
|
field_dict.update(self.additional_properties)
|
|
44
60
|
field_dict.update(
|
|
@@ -49,6 +65,10 @@ class AuthResponse:
|
|
|
49
65
|
)
|
|
50
66
|
if token is not UNSET:
|
|
51
67
|
field_dict["token"] = token
|
|
68
|
+
if expires_in is not UNSET:
|
|
69
|
+
field_dict["expires_in"] = expires_in
|
|
70
|
+
if refresh_threshold is not UNSET:
|
|
71
|
+
field_dict["refresh_threshold"] = refresh_threshold
|
|
52
72
|
|
|
53
73
|
return field_dict
|
|
54
74
|
|
|
@@ -70,10 +90,30 @@ class AuthResponse:
|
|
|
70
90
|
|
|
71
91
|
token = _parse_token(d.pop("token", UNSET))
|
|
72
92
|
|
|
93
|
+
def _parse_expires_in(data: object) -> Union[None, Unset, int]:
|
|
94
|
+
if data is None:
|
|
95
|
+
return data
|
|
96
|
+
if isinstance(data, Unset):
|
|
97
|
+
return data
|
|
98
|
+
return cast(Union[None, Unset, int], data)
|
|
99
|
+
|
|
100
|
+
expires_in = _parse_expires_in(d.pop("expires_in", UNSET))
|
|
101
|
+
|
|
102
|
+
def _parse_refresh_threshold(data: object) -> Union[None, Unset, int]:
|
|
103
|
+
if data is None:
|
|
104
|
+
return data
|
|
105
|
+
if isinstance(data, Unset):
|
|
106
|
+
return data
|
|
107
|
+
return cast(Union[None, Unset, int], data)
|
|
108
|
+
|
|
109
|
+
refresh_threshold = _parse_refresh_threshold(d.pop("refresh_threshold", UNSET))
|
|
110
|
+
|
|
73
111
|
auth_response = cls(
|
|
74
112
|
user=user,
|
|
75
113
|
message=message,
|
|
76
114
|
token=token,
|
|
115
|
+
expires_in=expires_in,
|
|
116
|
+
refresh_threshold=refresh_threshold,
|
|
77
117
|
)
|
|
78
118
|
|
|
79
119
|
auth_response.additional_properties = d
|
|
@@ -165,7 +165,7 @@ robosystems_client/models/agent_response_metadata_type_0.py,sha256=3Kn2zUDzbp49M
|
|
|
165
165
|
robosystems_client/models/agent_response_tokens_used_type_0.py,sha256=IcDJbOww9ZMAHvS8R4Stk8OJnQ30TVHlp89HN7tGZzg,1227
|
|
166
166
|
robosystems_client/models/api_key_info.py,sha256=xXNLsbL4Z-bIRf8jWd7G48iXP4oboiPQTPgGjipylOo,4070
|
|
167
167
|
robosystems_client/models/api_keys_response.py,sha256=SaqZcuXOQkT4rVT4uc8SlKTu_F0NZT5T9WjRFpCIGu8,1882
|
|
168
|
-
robosystems_client/models/auth_response.py,sha256=
|
|
168
|
+
robosystems_client/models/auth_response.py,sha256=rnoIGaRbJ9Nh-ty8e-H0qTwnFm2O6ZGJMB-F1HBIalI,3865
|
|
169
169
|
robosystems_client/models/auth_response_user.py,sha256=QSXztxSkwxAbCkUJBeKcN-_4d-NONtJnMB99cJHmuAw,1173
|
|
170
170
|
robosystems_client/models/available_extension.py,sha256=YKL7EfIcYfSdBFzpmlMXp0GQqCdab8CiRtapIpO6UOc,1824
|
|
171
171
|
robosystems_client/models/available_extensions_response.py,sha256=zt9ggowoErKKoqxle5sa10XCx5wh-j71xw-Rq4Ya16c,1979
|
|
@@ -345,7 +345,7 @@ robosystems_client/models/user_usage_response_graphs.py,sha256=xAH-ZnhaUfWQ_2EpZ
|
|
|
345
345
|
robosystems_client/models/user_usage_summary_response.py,sha256=4hthwTH7bXyzdYlHoekDYOgDLI-stGRH507Bl2rUjYA,3655
|
|
346
346
|
robosystems_client/models/user_usage_summary_response_usage_vs_limits.py,sha256=XrZnRcy1nD3xtKX4svbww7QfEHrN7_XIfeL9j5ZMbyQ,1298
|
|
347
347
|
robosystems_client/models/validation_error.py,sha256=R77OuQG2nJ3WDFfY--xbEhg6x1D7gAAp_1UdnG8Ka2A,1949
|
|
348
|
-
robosystems_client-0.2.
|
|
349
|
-
robosystems_client-0.2.
|
|
350
|
-
robosystems_client-0.2.
|
|
351
|
-
robosystems_client-0.2.
|
|
348
|
+
robosystems_client-0.2.5.dist-info/METADATA,sha256=cMsZYpIAJJuy5gL0pAcgO-r_7_pfvNVDvz7NmKGkS7M,3903
|
|
349
|
+
robosystems_client-0.2.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
350
|
+
robosystems_client-0.2.5.dist-info/licenses/LICENSE,sha256=LjFqQPU4eQh7jAQ04SmE9eC0j74HCdXvzbo0hjW4mWo,1063
|
|
351
|
+
robosystems_client-0.2.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|