windmill-api 1.438.0__py3-none-any.whl → 1.439.0__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 windmill-api might be problematic. Click here for more details.

@@ -5,15 +5,24 @@ import httpx
5
5
 
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
- from ...types import Response
8
+ from ...types import UNSET, Response, Unset
9
9
 
10
10
 
11
- def _get_kwargs() -> Dict[str, Any]:
11
+ def _get_kwargs(
12
+ *,
13
+ if_expiring_in_less_than_s: Union[Unset, None, int] = UNSET,
14
+ ) -> Dict[str, Any]:
12
15
  pass
13
16
 
17
+ params: Dict[str, Any] = {}
18
+ params["if_expiring_in_less_than_s"] = if_expiring_in_less_than_s
19
+
20
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
21
+
14
22
  return {
15
23
  "method": "get",
16
24
  "url": "/users/refresh_token",
25
+ "params": params,
17
26
  }
18
27
 
19
28
 
@@ -36,9 +45,13 @@ def _build_response(*, client: Union[AuthenticatedClient, Client], response: htt
36
45
  def sync_detailed(
37
46
  *,
38
47
  client: Union[AuthenticatedClient, Client],
48
+ if_expiring_in_less_than_s: Union[Unset, None, int] = UNSET,
39
49
  ) -> Response[Any]:
40
50
  """refresh the current token
41
51
 
52
+ Args:
53
+ if_expiring_in_less_than_s (Union[Unset, None, int]):
54
+
42
55
  Raises:
43
56
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
44
57
  httpx.TimeoutException: If the request takes longer than Client.timeout.
@@ -47,7 +60,9 @@ def sync_detailed(
47
60
  Response[Any]
48
61
  """
49
62
 
50
- kwargs = _get_kwargs()
63
+ kwargs = _get_kwargs(
64
+ if_expiring_in_less_than_s=if_expiring_in_less_than_s,
65
+ )
51
66
 
52
67
  response = client.get_httpx_client().request(
53
68
  **kwargs,
@@ -59,9 +74,13 @@ def sync_detailed(
59
74
  async def asyncio_detailed(
60
75
  *,
61
76
  client: Union[AuthenticatedClient, Client],
77
+ if_expiring_in_less_than_s: Union[Unset, None, int] = UNSET,
62
78
  ) -> Response[Any]:
63
79
  """refresh the current token
64
80
 
81
+ Args:
82
+ if_expiring_in_less_than_s (Union[Unset, None, int]):
83
+
65
84
  Raises:
66
85
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
67
86
  httpx.TimeoutException: If the request takes longer than Client.timeout.
@@ -70,7 +89,9 @@ async def asyncio_detailed(
70
89
  Response[Any]
71
90
  """
72
91
 
73
- kwargs = _get_kwargs()
92
+ kwargs = _get_kwargs(
93
+ if_expiring_in_less_than_s=if_expiring_in_less_than_s,
94
+ )
74
95
 
75
96
  response = await client.get_async_httpx_client().request(**kwargs)
76
97
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: windmill-api
3
- Version: 1.438.0
3
+ Version: 1.439.0
4
4
  Summary: A client library for accessing Windmill API
5
5
  License: Apache-2.0
6
6
  Author: Ruben Fiszel
@@ -340,7 +340,7 @@ windmill_api/api/user/list_workspace_invites.py,sha256=lXFv63CxJQ2927RufwGCPkGHR
340
340
  windmill_api/api/user/login.py,sha256=vxrh69CgmIMyLqdREbMZrrNH3TCRb5EHhj3c78oPqYk,2409
341
341
  windmill_api/api/user/login_with_oauth.py,sha256=nWt_bm8O0lqEehUzGAt7LNuU58EqB8Du0QdC_u7b7Eg,2771
342
342
  windmill_api/api/user/logout.py,sha256=PRFiLX2Iie9w26XbF0g7emWSbtTCYC7NXpHyDg9E_jI,2000
343
- windmill_api/api/user/refresh_user_token.py,sha256=QhdRaBqAfAM-mEebRB-gZaJIgGET7JCndmDWIJgM9xs,2045
343
+ windmill_api/api/user/refresh_user_token.py,sha256=3Ne3kcj1-_y27tO5omSChnDKzXEO8Sjj91nIkMekEJ0,2757
344
344
  windmill_api/api/user/set_login_type_for_user.py,sha256=YYnAdE28yTzA2GPlPw8ZUGuClbMr-tkUosEdBfMiqRg,2766
345
345
  windmill_api/api/user/set_password.py,sha256=WOdYlech3ywrL3qj0wJ9TBHkB2YkNcs7K5dB7XP6cD0,2445
346
346
  windmill_api/api/user/set_password_for_user.py,sha256=bXhg23BiMZmn5tVycvMMHhZoD9P9Qc6dAD4onQ60CL8,2755
@@ -3532,7 +3532,7 @@ windmill_api/models/workspace_invite.py,sha256=HnAJWGv5LwxWkz1T3fhgHKIccO7RFC1li
3532
3532
  windmill_api/models/workspace_mute_critical_alerts_ui_json_body.py,sha256=y8ZwkWEZgavVc-FgLuZZ4z8YPCLxjPcMfdGdKjGM6VQ,1883
3533
3533
  windmill_api/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
3534
3534
  windmill_api/types.py,sha256=GoYub3t4hQP2Yn5tsvShsBfIY3vHUmblU0MXszDx_V0,968
3535
- windmill_api-1.438.0.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
3536
- windmill_api-1.438.0.dist-info/METADATA,sha256=rbSXSuU3mdyR-TQOjA_XeAsAtZms8HuCdfsDK-gyRzk,5023
3537
- windmill_api-1.438.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
3538
- windmill_api-1.438.0.dist-info/RECORD,,
3535
+ windmill_api-1.439.0.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
3536
+ windmill_api-1.439.0.dist-info/METADATA,sha256=2tGdA9hoxA10FFJxocQ0QmETLZpzMEt05AWv56v4y7A,5023
3537
+ windmill_api-1.439.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
3538
+ windmill_api-1.439.0.dist-info/RECORD,,