windmill-api 1.569.0__py3-none-any.whl → 1.571.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.

@@ -0,0 +1,149 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Dict, Optional, Union, cast
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.submit_onboarding_data_json_body import SubmitOnboardingDataJsonBody
9
+ from ...types import Response
10
+
11
+
12
+ def _get_kwargs(
13
+ *,
14
+ json_body: SubmitOnboardingDataJsonBody,
15
+ ) -> Dict[str, Any]:
16
+ pass
17
+
18
+ json_json_body = json_body.to_dict()
19
+
20
+ return {
21
+ "method": "post",
22
+ "url": "/users/onboarding",
23
+ "json": json_json_body,
24
+ }
25
+
26
+
27
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[str]:
28
+ if response.status_code == HTTPStatus.OK:
29
+ response_200 = cast(str, response.json())
30
+ return response_200
31
+ if client.raise_on_unexpected_status:
32
+ raise errors.UnexpectedStatus(response.status_code, response.content)
33
+ else:
34
+ return None
35
+
36
+
37
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[str]:
38
+ return Response(
39
+ status_code=HTTPStatus(response.status_code),
40
+ content=response.content,
41
+ headers=response.headers,
42
+ parsed=_parse_response(client=client, response=response),
43
+ )
44
+
45
+
46
+ def sync_detailed(
47
+ *,
48
+ client: Union[AuthenticatedClient, Client],
49
+ json_body: SubmitOnboardingDataJsonBody,
50
+ ) -> Response[str]:
51
+ """Submit user onboarding data
52
+
53
+ Args:
54
+ json_body (SubmitOnboardingDataJsonBody):
55
+
56
+ Raises:
57
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
58
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
59
+
60
+ Returns:
61
+ Response[str]
62
+ """
63
+
64
+ kwargs = _get_kwargs(
65
+ json_body=json_body,
66
+ )
67
+
68
+ response = client.get_httpx_client().request(
69
+ **kwargs,
70
+ )
71
+
72
+ return _build_response(client=client, response=response)
73
+
74
+
75
+ def sync(
76
+ *,
77
+ client: Union[AuthenticatedClient, Client],
78
+ json_body: SubmitOnboardingDataJsonBody,
79
+ ) -> Optional[str]:
80
+ """Submit user onboarding data
81
+
82
+ Args:
83
+ json_body (SubmitOnboardingDataJsonBody):
84
+
85
+ Raises:
86
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
87
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
88
+
89
+ Returns:
90
+ str
91
+ """
92
+
93
+ return sync_detailed(
94
+ client=client,
95
+ json_body=json_body,
96
+ ).parsed
97
+
98
+
99
+ async def asyncio_detailed(
100
+ *,
101
+ client: Union[AuthenticatedClient, Client],
102
+ json_body: SubmitOnboardingDataJsonBody,
103
+ ) -> Response[str]:
104
+ """Submit user onboarding data
105
+
106
+ Args:
107
+ json_body (SubmitOnboardingDataJsonBody):
108
+
109
+ Raises:
110
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
111
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
112
+
113
+ Returns:
114
+ Response[str]
115
+ """
116
+
117
+ kwargs = _get_kwargs(
118
+ json_body=json_body,
119
+ )
120
+
121
+ response = await client.get_async_httpx_client().request(**kwargs)
122
+
123
+ return _build_response(client=client, response=response)
124
+
125
+
126
+ async def asyncio(
127
+ *,
128
+ client: Union[AuthenticatedClient, Client],
129
+ json_body: SubmitOnboardingDataJsonBody,
130
+ ) -> Optional[str]:
131
+ """Submit user onboarding data
132
+
133
+ Args:
134
+ json_body (SubmitOnboardingDataJsonBody):
135
+
136
+ Raises:
137
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
138
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
139
+
140
+ Returns:
141
+ str
142
+ """
143
+
144
+ return (
145
+ await asyncio_detailed(
146
+ client=client,
147
+ json_body=json_body,
148
+ )
149
+ ).parsed
@@ -17,6 +17,7 @@ class GlobalUserInfo:
17
17
  login_type (GlobalUserInfoLoginType):
18
18
  super_admin (bool):
19
19
  verified (bool):
20
+ first_time_user (bool):
20
21
  devops (Union[Unset, bool]):
21
22
  name (Union[Unset, str]):
22
23
  company (Union[Unset, str]):
@@ -28,6 +29,7 @@ class GlobalUserInfo:
28
29
  login_type: GlobalUserInfoLoginType
29
30
  super_admin: bool
30
31
  verified: bool
32
+ first_time_user: bool
31
33
  devops: Union[Unset, bool] = UNSET
32
34
  name: Union[Unset, str] = UNSET
33
35
  company: Union[Unset, str] = UNSET
@@ -41,6 +43,7 @@ class GlobalUserInfo:
41
43
 
42
44
  super_admin = self.super_admin
43
45
  verified = self.verified
46
+ first_time_user = self.first_time_user
44
47
  devops = self.devops
45
48
  name = self.name
46
49
  company = self.company
@@ -55,6 +58,7 @@ class GlobalUserInfo:
55
58
  "login_type": login_type,
56
59
  "super_admin": super_admin,
57
60
  "verified": verified,
61
+ "first_time_user": first_time_user,
58
62
  }
59
63
  )
60
64
  if devops is not UNSET:
@@ -81,6 +85,8 @@ class GlobalUserInfo:
81
85
 
82
86
  verified = d.pop("verified")
83
87
 
88
+ first_time_user = d.pop("first_time_user")
89
+
84
90
  devops = d.pop("devops", UNSET)
85
91
 
86
92
  name = d.pop("name", UNSET)
@@ -96,6 +102,7 @@ class GlobalUserInfo:
96
102
  login_type=login_type,
97
103
  super_admin=super_admin,
98
104
  verified=verified,
105
+ first_time_user=first_time_user,
99
106
  devops=devops,
100
107
  name=name,
101
108
  company=company,
@@ -17,6 +17,7 @@ class GlobalWhoamiResponse200:
17
17
  login_type (GlobalWhoamiResponse200LoginType):
18
18
  super_admin (bool):
19
19
  verified (bool):
20
+ first_time_user (bool):
20
21
  devops (Union[Unset, bool]):
21
22
  name (Union[Unset, str]):
22
23
  company (Union[Unset, str]):
@@ -28,6 +29,7 @@ class GlobalWhoamiResponse200:
28
29
  login_type: GlobalWhoamiResponse200LoginType
29
30
  super_admin: bool
30
31
  verified: bool
32
+ first_time_user: bool
31
33
  devops: Union[Unset, bool] = UNSET
32
34
  name: Union[Unset, str] = UNSET
33
35
  company: Union[Unset, str] = UNSET
@@ -41,6 +43,7 @@ class GlobalWhoamiResponse200:
41
43
 
42
44
  super_admin = self.super_admin
43
45
  verified = self.verified
46
+ first_time_user = self.first_time_user
44
47
  devops = self.devops
45
48
  name = self.name
46
49
  company = self.company
@@ -55,6 +58,7 @@ class GlobalWhoamiResponse200:
55
58
  "login_type": login_type,
56
59
  "super_admin": super_admin,
57
60
  "verified": verified,
61
+ "first_time_user": first_time_user,
58
62
  }
59
63
  )
60
64
  if devops is not UNSET:
@@ -81,6 +85,8 @@ class GlobalWhoamiResponse200:
81
85
 
82
86
  verified = d.pop("verified")
83
87
 
88
+ first_time_user = d.pop("first_time_user")
89
+
84
90
  devops = d.pop("devops", UNSET)
85
91
 
86
92
  name = d.pop("name", UNSET)
@@ -96,6 +102,7 @@ class GlobalWhoamiResponse200:
96
102
  login_type=login_type,
97
103
  super_admin=super_admin,
98
104
  verified=verified,
105
+ first_time_user=first_time_user,
99
106
  devops=devops,
100
107
  name=name,
101
108
  company=company,
@@ -19,6 +19,7 @@ class ListUsersAsSuperAdminResponse200Item:
19
19
  login_type (ListUsersAsSuperAdminResponse200ItemLoginType):
20
20
  super_admin (bool):
21
21
  verified (bool):
22
+ first_time_user (bool):
22
23
  devops (Union[Unset, bool]):
23
24
  name (Union[Unset, str]):
24
25
  company (Union[Unset, str]):
@@ -30,6 +31,7 @@ class ListUsersAsSuperAdminResponse200Item:
30
31
  login_type: ListUsersAsSuperAdminResponse200ItemLoginType
31
32
  super_admin: bool
32
33
  verified: bool
34
+ first_time_user: bool
33
35
  devops: Union[Unset, bool] = UNSET
34
36
  name: Union[Unset, str] = UNSET
35
37
  company: Union[Unset, str] = UNSET
@@ -43,6 +45,7 @@ class ListUsersAsSuperAdminResponse200Item:
43
45
 
44
46
  super_admin = self.super_admin
45
47
  verified = self.verified
48
+ first_time_user = self.first_time_user
46
49
  devops = self.devops
47
50
  name = self.name
48
51
  company = self.company
@@ -57,6 +60,7 @@ class ListUsersAsSuperAdminResponse200Item:
57
60
  "login_type": login_type,
58
61
  "super_admin": super_admin,
59
62
  "verified": verified,
63
+ "first_time_user": first_time_user,
60
64
  }
61
65
  )
62
66
  if devops is not UNSET:
@@ -83,6 +87,8 @@ class ListUsersAsSuperAdminResponse200Item:
83
87
 
84
88
  verified = d.pop("verified")
85
89
 
90
+ first_time_user = d.pop("first_time_user")
91
+
86
92
  devops = d.pop("devops", UNSET)
87
93
 
88
94
  name = d.pop("name", UNSET)
@@ -98,6 +104,7 @@ class ListUsersAsSuperAdminResponse200Item:
98
104
  login_type=login_type,
99
105
  super_admin=super_admin,
100
106
  verified=verified,
107
+ first_time_user=first_time_user,
101
108
  devops=devops,
102
109
  name=name,
103
110
  company=company,
@@ -0,0 +1,66 @@
1
+ from typing import Any, Dict, List, Type, TypeVar, Union
2
+
3
+ from attrs import define as _attrs_define
4
+ from attrs import field as _attrs_field
5
+
6
+ from ..types import UNSET, Unset
7
+
8
+ T = TypeVar("T", bound="SubmitOnboardingDataJsonBody")
9
+
10
+
11
+ @_attrs_define
12
+ class SubmitOnboardingDataJsonBody:
13
+ """
14
+ Attributes:
15
+ touch_point (Union[Unset, str]):
16
+ use_case (Union[Unset, str]):
17
+ """
18
+
19
+ touch_point: Union[Unset, str] = UNSET
20
+ use_case: Union[Unset, str] = UNSET
21
+ additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
22
+
23
+ def to_dict(self) -> Dict[str, Any]:
24
+ touch_point = self.touch_point
25
+ use_case = self.use_case
26
+
27
+ field_dict: Dict[str, Any] = {}
28
+ field_dict.update(self.additional_properties)
29
+ field_dict.update({})
30
+ if touch_point is not UNSET:
31
+ field_dict["touch_point"] = touch_point
32
+ if use_case is not UNSET:
33
+ field_dict["use_case"] = use_case
34
+
35
+ return field_dict
36
+
37
+ @classmethod
38
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
39
+ d = src_dict.copy()
40
+ touch_point = d.pop("touch_point", UNSET)
41
+
42
+ use_case = d.pop("use_case", UNSET)
43
+
44
+ submit_onboarding_data_json_body = cls(
45
+ touch_point=touch_point,
46
+ use_case=use_case,
47
+ )
48
+
49
+ submit_onboarding_data_json_body.additional_properties = d
50
+ return submit_onboarding_data_json_body
51
+
52
+ @property
53
+ def additional_keys(self) -> List[str]:
54
+ return list(self.additional_properties.keys())
55
+
56
+ def __getitem__(self, key: str) -> Any:
57
+ return self.additional_properties[key]
58
+
59
+ def __setitem__(self, key: str, value: Any) -> None:
60
+ self.additional_properties[key] = value
61
+
62
+ def __delitem__(self, key: str) -> None:
63
+ del self.additional_properties[key]
64
+
65
+ def __contains__(self, key: str) -> bool:
66
+ return key in self.additional_properties
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: windmill-api
3
- Version: 1.569.0
3
+ Version: 1.571.0
4
4
  Summary: A client library for accessing Windmill API
5
5
  License: Apache-2.0
6
6
  Author: Ruben Fiszel
@@ -491,6 +491,7 @@ windmill_api/api/user/refresh_user_token.py,sha256=3Ne3kcj1-_y27tO5omSChnDKzXEO8
491
491
  windmill_api/api/user/set_login_type_for_user.py,sha256=YYnAdE28yTzA2GPlPw8ZUGuClbMr-tkUosEdBfMiqRg,2766
492
492
  windmill_api/api/user/set_password.py,sha256=WOdYlech3ywrL3qj0wJ9TBHkB2YkNcs7K5dB7XP6cD0,2445
493
493
  windmill_api/api/user/set_password_for_user.py,sha256=bXhg23BiMZmn5tVycvMMHhZoD9P9Qc6dAD4onQ60CL8,2755
494
+ windmill_api/api/user/submit_onboarding_data.py,sha256=uaxaBRDTDrMknbHguI-avjF59X0BuHX7ctu0Jy2Jzio,3870
494
495
  windmill_api/api/user/update_tutorial_progress.py,sha256=2oD5-k1NyQ7sG7sSx81h5NP25di9r88pcmzMORBgCrc,2553
495
496
  windmill_api/api/user/update_user.py,sha256=pyneZS5dXGD7FchhnHtR96Ob3kANYnpod2vDAbThQoM,2917
496
497
  windmill_api/api/user/username_to_email.py,sha256=ytYMLD7uK89B9C1wGMb86_7LGCT7kq-3umRPIAdHanw,2512
@@ -3423,7 +3424,7 @@ windmill_api/models/github_installations_item.py,sha256=CGHq1Wcqa-n6LXxz3qnXprB9
3423
3424
  windmill_api/models/github_installations_item_repositories_item.py,sha256=ui-qQICI5iywFMczl6pDy3Ppaw1KsEkgex1HrNlkoaE,1698
3424
3425
  windmill_api/models/global_setting.py,sha256=NZxAwAz5Rh8LMvpHqRAaVZhF0-cXR9897d1lyNrXeTU,1821
3425
3426
  windmill_api/models/global_setting_value.py,sha256=iNYDija5EzLJMOATmSzfaW54v5ijJS8ZWPkVDiMncb4,1248
3426
- windmill_api/models/global_user_info.py,sha256=D3kaOE7wQCZInXfDjWZUInpzwhnZvrK75Rps2f1tIwA,3548
3427
+ windmill_api/models/global_user_info.py,sha256=9Nb8z-krzyLKZe00Snn1ySjvXzbkkx4cK6boBWVkZpE,3802
3427
3428
  windmill_api/models/global_user_info_login_type.py,sha256=tH-V57pP-V4cI1KyZghLrLLKGvwoWslebdS5q-FUP5k,176
3428
3429
  windmill_api/models/global_user_rename_json_body.py,sha256=KcZdvFfNXshHS4QX0DkrJdtxLDlIpy0Ecvik2IQPlNk,1571
3429
3430
  windmill_api/models/global_user_update_json_body.py,sha256=xjt42BsLRcOQe6VZ89SDHfkKbOsMhLfz5kChkvWErfY,2193
@@ -3431,7 +3432,7 @@ windmill_api/models/global_username_info_response_200.py,sha256=jIP6ayJCkWfSYzVw
3431
3432
  windmill_api/models/global_username_info_response_200_workspace_usernames_item.py,sha256=qkLgj-qbaQvgEzDcHleAQPCsfxWb4H35I759C6V7WfY,1897
3432
3433
  windmill_api/models/global_users_export_response_200_item.py,sha256=yWcU445ZK5e0WE1AmA5O-fSCCN4selkj_vvHFX5osy0,3305
3433
3434
  windmill_api/models/global_users_overwrite_json_body_item.py,sha256=vfxQAXvj-PD1wOzXfUcUlVOqgWfz6-IvfnFabfPAcIY,3305
3434
- windmill_api/models/global_whoami_response_200.py,sha256=P2YzOuDmowq7fAsrlFQnBgiMGoahZ0qn1TcPW6ylavI,3642
3435
+ windmill_api/models/global_whoami_response_200.py,sha256=ezQvTmG8YujqaIFIaKrlgMplSHq2PxGXGZsa1_Bupms,3896
3435
3436
  windmill_api/models/global_whoami_response_200_login_type.py,sha256=grlKtkJE27qxpXSUFBUoLo1-wQf45s82n_hoU7V7PaE,185
3436
3437
  windmill_api/models/group.py,sha256=yEfHcI9FEtk1tV6RS9B3r_vAPK0rqNCCLgIJoLAUZ8M,2890
3437
3438
  windmill_api/models/group_extra_perms.py,sha256=hn0wzgNVtx0HO3XwPsVOie8BJpV6-FypTN5u_851dvg,1236
@@ -4626,7 +4627,7 @@ windmill_api/models/list_tokens_response_200_item.py,sha256=5ve1lELULC7h0H7J8sLt
4626
4627
  windmill_api/models/list_user_workspaces_response_200.py,sha256=BAnO9piWEGR53SaMdvy3EipJauC7VwRg3wxOrO2fJ6M,2504
4627
4628
  windmill_api/models/list_user_workspaces_response_200_workspaces_item.py,sha256=OEFhYI09PrAKdG4YN1oIE1sHEmQWNPlylg_so-vlciw,4473
4628
4629
  windmill_api/models/list_user_workspaces_response_200_workspaces_item_operator_settings.py,sha256=U1OLjDz2oJTTFonNDWxaAWHFOPgL4mWBfQoOtDZtGdg,3696
4629
- windmill_api/models/list_users_as_super_admin_response_200_item.py,sha256=4u3fB3qr3kMpGeCOhLNq0VwkEkMFZu-yMaenZCNRXWU,3797
4630
+ windmill_api/models/list_users_as_super_admin_response_200_item.py,sha256=WnRTCKKC1g-vrcL1pg7w-O6E6vXvI_YJqdVA1upT8A4,4051
4630
4631
  windmill_api/models/list_users_as_super_admin_response_200_item_login_type.py,sha256=GqFojYh0I3SpWAhKpt5iup-ck8kMDmSapmBLjZ0XX8U,198
4631
4632
  windmill_api/models/list_users_response_200_item.py,sha256=z79X14Ef4sg4tgH9DP8uYrQu_Zy3603D7d0oC476uJY,4941
4632
4633
  windmill_api/models/list_users_response_200_item_added_via.py,sha256=tB1DN8KHuS4MYvrmWX_RnnPerww7NCLnTFMZ_6P4Qhc,2456
@@ -5474,6 +5475,7 @@ windmill_api/models/star_json_body_favorite_kind.py,sha256=RpElWhCdoid5bVgbwF6wR
5474
5475
  windmill_api/models/static_transform.py,sha256=gcLC3l70b5ZADU3HyDygSjt6OCMmvon4KEtX1xju9Ns,1835
5475
5476
  windmill_api/models/static_transform_type.py,sha256=6fqviypvSiia874L1i01bRlH7QX4R7Ov6qaSyLb4aXk,146
5476
5477
  windmill_api/models/stop_after_if.py,sha256=6MyULy-iK93eFflfUHiEwpGEGzCGCREC_RaoxyBSNgM,2129
5478
+ windmill_api/models/submit_onboarding_data_json_body.py,sha256=_oL4LuUA62S4rVKInnttFCUnYdSEGtEJuuSZenUuhFY,1942
5477
5479
  windmill_api/models/subscription_mode.py,sha256=CQRbhd2xcIyV-9YJirYhQb5Rw6DjdYTNltd7beT8O04,183
5478
5480
  windmill_api/models/table_to_track_item.py,sha256=jsKOo9WejPIqnb7qbBP9Nux5K1KVhqggYCs6Rl7vyqw,2318
5479
5481
  windmill_api/models/team_info.py,sha256=fsiSa1x8qDctqhR-EBDMW6r1TxO0Pv2lAbnum-UinAQ,2560
@@ -5732,7 +5734,7 @@ windmill_api/models/workspace_invite.py,sha256=wp-J-VJLkXsfQzw1PdNPGQhETsFCFXh1e
5732
5734
  windmill_api/models/workspace_mute_critical_alerts_ui_json_body.py,sha256=y8ZwkWEZgavVc-FgLuZZ4z8YPCLxjPcMfdGdKjGM6VQ,1883
5733
5735
  windmill_api/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
5734
5736
  windmill_api/types.py,sha256=GoYub3t4hQP2Yn5tsvShsBfIY3vHUmblU0MXszDx_V0,968
5735
- windmill_api-1.569.0.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
5736
- windmill_api-1.569.0.dist-info/METADATA,sha256=-_kfyjTLZYBnSsKgc3FG_frPPfkDXdWQ05GQC9xlvN4,5023
5737
- windmill_api-1.569.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
5738
- windmill_api-1.569.0.dist-info/RECORD,,
5737
+ windmill_api-1.571.0.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
5738
+ windmill_api-1.571.0.dist-info/METADATA,sha256=OBcCKeAU2mSMHToY66WozkpGFd1H6T0bCBZB2imGFVU,5023
5739
+ windmill_api-1.571.0.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
5740
+ windmill_api-1.571.0.dist-info/RECORD,,