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

@@ -6,15 +6,24 @@ import httpx
6
6
  from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
8
  from ...models.get_global_connected_repositories_response_200_item import GetGlobalConnectedRepositoriesResponse200Item
9
- from ...types import Response
9
+ from ...types import UNSET, Response, Unset
10
10
 
11
11
 
12
- def _get_kwargs() -> Dict[str, Any]:
12
+ def _get_kwargs(
13
+ *,
14
+ search: Union[Unset, None, str] = UNSET,
15
+ ) -> Dict[str, Any]:
13
16
  pass
14
17
 
18
+ params: Dict[str, Any] = {}
19
+ params["search"] = search
20
+
21
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
22
+
15
23
  return {
16
24
  "method": "get",
17
25
  "url": "/github_app/connected_repositories",
26
+ "params": params,
18
27
  }
19
28
 
20
29
 
@@ -50,9 +59,13 @@ def _build_response(
50
59
  def sync_detailed(
51
60
  *,
52
61
  client: Union[AuthenticatedClient, Client],
62
+ search: Union[Unset, None, str] = UNSET,
53
63
  ) -> Response[List["GetGlobalConnectedRepositoriesResponse200Item"]]:
54
64
  """get connected repositories
55
65
 
66
+ Args:
67
+ search (Union[Unset, None, str]):
68
+
56
69
  Raises:
57
70
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
58
71
  httpx.TimeoutException: If the request takes longer than Client.timeout.
@@ -61,7 +74,9 @@ def sync_detailed(
61
74
  Response[List['GetGlobalConnectedRepositoriesResponse200Item']]
62
75
  """
63
76
 
64
- kwargs = _get_kwargs()
77
+ kwargs = _get_kwargs(
78
+ search=search,
79
+ )
65
80
 
66
81
  response = client.get_httpx_client().request(
67
82
  **kwargs,
@@ -73,9 +88,13 @@ def sync_detailed(
73
88
  def sync(
74
89
  *,
75
90
  client: Union[AuthenticatedClient, Client],
91
+ search: Union[Unset, None, str] = UNSET,
76
92
  ) -> Optional[List["GetGlobalConnectedRepositoriesResponse200Item"]]:
77
93
  """get connected repositories
78
94
 
95
+ Args:
96
+ search (Union[Unset, None, str]):
97
+
79
98
  Raises:
80
99
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
81
100
  httpx.TimeoutException: If the request takes longer than Client.timeout.
@@ -86,15 +105,20 @@ def sync(
86
105
 
87
106
  return sync_detailed(
88
107
  client=client,
108
+ search=search,
89
109
  ).parsed
90
110
 
91
111
 
92
112
  async def asyncio_detailed(
93
113
  *,
94
114
  client: Union[AuthenticatedClient, Client],
115
+ search: Union[Unset, None, str] = UNSET,
95
116
  ) -> Response[List["GetGlobalConnectedRepositoriesResponse200Item"]]:
96
117
  """get connected repositories
97
118
 
119
+ Args:
120
+ search (Union[Unset, None, str]):
121
+
98
122
  Raises:
99
123
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
100
124
  httpx.TimeoutException: If the request takes longer than Client.timeout.
@@ -103,7 +127,9 @@ async def asyncio_detailed(
103
127
  Response[List['GetGlobalConnectedRepositoriesResponse200Item']]
104
128
  """
105
129
 
106
- kwargs = _get_kwargs()
130
+ kwargs = _get_kwargs(
131
+ search=search,
132
+ )
107
133
 
108
134
  response = await client.get_async_httpx_client().request(**kwargs)
109
135
 
@@ -113,9 +139,13 @@ async def asyncio_detailed(
113
139
  async def asyncio(
114
140
  *,
115
141
  client: Union[AuthenticatedClient, Client],
142
+ search: Union[Unset, None, str] = UNSET,
116
143
  ) -> Optional[List["GetGlobalConnectedRepositoriesResponse200Item"]]:
117
144
  """get connected repositories
118
145
 
146
+ Args:
147
+ search (Union[Unset, None, str]):
148
+
119
149
  Raises:
120
150
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
121
151
  httpx.TimeoutException: If the request takes longer than Client.timeout.
@@ -127,5 +157,6 @@ async def asyncio(
127
157
  return (
128
158
  await asyncio_detailed(
129
159
  client=client,
160
+ search=search,
130
161
  )
131
162
  ).parsed
@@ -0,0 +1,93 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Dict, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...types import Response
9
+
10
+
11
+ def _get_kwargs(
12
+ workspace: str,
13
+ ) -> Dict[str, Any]:
14
+ pass
15
+
16
+ return {
17
+ "method": "delete",
18
+ "url": "/w/{workspace}/workspaces/slack_oauth_config".format(
19
+ workspace=workspace,
20
+ ),
21
+ }
22
+
23
+
24
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
25
+ if client.raise_on_unexpected_status:
26
+ raise errors.UnexpectedStatus(response.status_code, response.content)
27
+ else:
28
+ return None
29
+
30
+
31
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Any]:
32
+ return Response(
33
+ status_code=HTTPStatus(response.status_code),
34
+ content=response.content,
35
+ headers=response.headers,
36
+ parsed=_parse_response(client=client, response=response),
37
+ )
38
+
39
+
40
+ def sync_detailed(
41
+ workspace: str,
42
+ *,
43
+ client: Union[AuthenticatedClient, Client],
44
+ ) -> Response[Any]:
45
+ """delete workspace slack oauth config
46
+
47
+ Args:
48
+ workspace (str):
49
+
50
+ Raises:
51
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
52
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
53
+
54
+ Returns:
55
+ Response[Any]
56
+ """
57
+
58
+ kwargs = _get_kwargs(
59
+ workspace=workspace,
60
+ )
61
+
62
+ response = client.get_httpx_client().request(
63
+ **kwargs,
64
+ )
65
+
66
+ return _build_response(client=client, response=response)
67
+
68
+
69
+ async def asyncio_detailed(
70
+ workspace: str,
71
+ *,
72
+ client: Union[AuthenticatedClient, Client],
73
+ ) -> Response[Any]:
74
+ """delete workspace slack oauth config
75
+
76
+ Args:
77
+ workspace (str):
78
+
79
+ Raises:
80
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
81
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
82
+
83
+ Returns:
84
+ Response[Any]
85
+ """
86
+
87
+ kwargs = _get_kwargs(
88
+ workspace=workspace,
89
+ )
90
+
91
+ response = await client.get_async_httpx_client().request(**kwargs)
92
+
93
+ return _build_response(client=client, response=response)
@@ -0,0 +1,152 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Dict, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.get_workspace_slack_oauth_config_response_200 import GetWorkspaceSlackOauthConfigResponse200
9
+ from ...types import Response
10
+
11
+
12
+ def _get_kwargs(
13
+ workspace: str,
14
+ ) -> Dict[str, Any]:
15
+ pass
16
+
17
+ return {
18
+ "method": "get",
19
+ "url": "/w/{workspace}/workspaces/slack_oauth_config".format(
20
+ workspace=workspace,
21
+ ),
22
+ }
23
+
24
+
25
+ def _parse_response(
26
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
27
+ ) -> Optional[GetWorkspaceSlackOauthConfigResponse200]:
28
+ if response.status_code == HTTPStatus.OK:
29
+ response_200 = GetWorkspaceSlackOauthConfigResponse200.from_dict(response.json())
30
+
31
+ return response_200
32
+ if client.raise_on_unexpected_status:
33
+ raise errors.UnexpectedStatus(response.status_code, response.content)
34
+ else:
35
+ return None
36
+
37
+
38
+ def _build_response(
39
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
40
+ ) -> Response[GetWorkspaceSlackOauthConfigResponse200]:
41
+ return Response(
42
+ status_code=HTTPStatus(response.status_code),
43
+ content=response.content,
44
+ headers=response.headers,
45
+ parsed=_parse_response(client=client, response=response),
46
+ )
47
+
48
+
49
+ def sync_detailed(
50
+ workspace: str,
51
+ *,
52
+ client: Union[AuthenticatedClient, Client],
53
+ ) -> Response[GetWorkspaceSlackOauthConfigResponse200]:
54
+ """get workspace slack oauth config
55
+
56
+ Args:
57
+ workspace (str):
58
+
59
+ Raises:
60
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
61
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
62
+
63
+ Returns:
64
+ Response[GetWorkspaceSlackOauthConfigResponse200]
65
+ """
66
+
67
+ kwargs = _get_kwargs(
68
+ workspace=workspace,
69
+ )
70
+
71
+ response = client.get_httpx_client().request(
72
+ **kwargs,
73
+ )
74
+
75
+ return _build_response(client=client, response=response)
76
+
77
+
78
+ def sync(
79
+ workspace: str,
80
+ *,
81
+ client: Union[AuthenticatedClient, Client],
82
+ ) -> Optional[GetWorkspaceSlackOauthConfigResponse200]:
83
+ """get workspace slack oauth config
84
+
85
+ Args:
86
+ workspace (str):
87
+
88
+ Raises:
89
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
90
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
91
+
92
+ Returns:
93
+ GetWorkspaceSlackOauthConfigResponse200
94
+ """
95
+
96
+ return sync_detailed(
97
+ workspace=workspace,
98
+ client=client,
99
+ ).parsed
100
+
101
+
102
+ async def asyncio_detailed(
103
+ workspace: str,
104
+ *,
105
+ client: Union[AuthenticatedClient, Client],
106
+ ) -> Response[GetWorkspaceSlackOauthConfigResponse200]:
107
+ """get workspace slack oauth config
108
+
109
+ Args:
110
+ workspace (str):
111
+
112
+ Raises:
113
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
114
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
115
+
116
+ Returns:
117
+ Response[GetWorkspaceSlackOauthConfigResponse200]
118
+ """
119
+
120
+ kwargs = _get_kwargs(
121
+ workspace=workspace,
122
+ )
123
+
124
+ response = await client.get_async_httpx_client().request(**kwargs)
125
+
126
+ return _build_response(client=client, response=response)
127
+
128
+
129
+ async def asyncio(
130
+ workspace: str,
131
+ *,
132
+ client: Union[AuthenticatedClient, Client],
133
+ ) -> Optional[GetWorkspaceSlackOauthConfigResponse200]:
134
+ """get workspace slack oauth config
135
+
136
+ Args:
137
+ workspace (str):
138
+
139
+ Raises:
140
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
141
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
142
+
143
+ Returns:
144
+ GetWorkspaceSlackOauthConfigResponse200
145
+ """
146
+
147
+ return (
148
+ await asyncio_detailed(
149
+ workspace=workspace,
150
+ client=client,
151
+ )
152
+ ).parsed
@@ -0,0 +1,105 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Dict, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.set_workspace_slack_oauth_config_json_body import SetWorkspaceSlackOauthConfigJsonBody
9
+ from ...types import Response
10
+
11
+
12
+ def _get_kwargs(
13
+ workspace: str,
14
+ *,
15
+ json_body: SetWorkspaceSlackOauthConfigJsonBody,
16
+ ) -> Dict[str, Any]:
17
+ pass
18
+
19
+ json_json_body = json_body.to_dict()
20
+
21
+ return {
22
+ "method": "post",
23
+ "url": "/w/{workspace}/workspaces/slack_oauth_config".format(
24
+ workspace=workspace,
25
+ ),
26
+ "json": json_json_body,
27
+ }
28
+
29
+
30
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
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[Any]:
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
+ workspace: str,
48
+ *,
49
+ client: Union[AuthenticatedClient, Client],
50
+ json_body: SetWorkspaceSlackOauthConfigJsonBody,
51
+ ) -> Response[Any]:
52
+ """set workspace slack oauth config
53
+
54
+ Args:
55
+ workspace (str):
56
+ json_body (SetWorkspaceSlackOauthConfigJsonBody):
57
+
58
+ Raises:
59
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
60
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
61
+
62
+ Returns:
63
+ Response[Any]
64
+ """
65
+
66
+ kwargs = _get_kwargs(
67
+ workspace=workspace,
68
+ json_body=json_body,
69
+ )
70
+
71
+ response = client.get_httpx_client().request(
72
+ **kwargs,
73
+ )
74
+
75
+ return _build_response(client=client, response=response)
76
+
77
+
78
+ async def asyncio_detailed(
79
+ workspace: str,
80
+ *,
81
+ client: Union[AuthenticatedClient, Client],
82
+ json_body: SetWorkspaceSlackOauthConfigJsonBody,
83
+ ) -> Response[Any]:
84
+ """set workspace slack oauth config
85
+
86
+ Args:
87
+ workspace (str):
88
+ json_body (SetWorkspaceSlackOauthConfigJsonBody):
89
+
90
+ Raises:
91
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
92
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
93
+
94
+ Returns:
95
+ Response[Any]
96
+ """
97
+
98
+ kwargs = _get_kwargs(
99
+ workspace=workspace,
100
+ json_body=json_body,
101
+ )
102
+
103
+ response = await client.get_async_httpx_client().request(**kwargs)
104
+
105
+ return _build_response(client=client, response=response)
@@ -21,12 +21,16 @@ class GetGlobalConnectedRepositoriesResponse200Item:
21
21
  installation_id (float):
22
22
  account_id (str):
23
23
  repositories (List['GetGlobalConnectedRepositoriesResponse200ItemRepositoriesItem']):
24
+ total_count (float): Total number of repositories available for this installation
25
+ per_page (float): Number of repositories loaded per page
24
26
  workspace_id (Union[Unset, str]):
25
27
  """
26
28
 
27
29
  installation_id: float
28
30
  account_id: str
29
31
  repositories: List["GetGlobalConnectedRepositoriesResponse200ItemRepositoriesItem"]
32
+ total_count: float
33
+ per_page: float
30
34
  workspace_id: Union[Unset, str] = UNSET
31
35
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
32
36
 
@@ -39,6 +43,8 @@ class GetGlobalConnectedRepositoriesResponse200Item:
39
43
 
40
44
  repositories.append(repositories_item)
41
45
 
46
+ total_count = self.total_count
47
+ per_page = self.per_page
42
48
  workspace_id = self.workspace_id
43
49
 
44
50
  field_dict: Dict[str, Any] = {}
@@ -48,6 +54,8 @@ class GetGlobalConnectedRepositoriesResponse200Item:
48
54
  "installation_id": installation_id,
49
55
  "account_id": account_id,
50
56
  "repositories": repositories,
57
+ "total_count": total_count,
58
+ "per_page": per_page,
51
59
  }
52
60
  )
53
61
  if workspace_id is not UNSET:
@@ -75,12 +83,18 @@ class GetGlobalConnectedRepositoriesResponse200Item:
75
83
 
76
84
  repositories.append(repositories_item)
77
85
 
86
+ total_count = d.pop("total_count")
87
+
88
+ per_page = d.pop("per_page")
89
+
78
90
  workspace_id = d.pop("workspace_id", UNSET)
79
91
 
80
92
  get_global_connected_repositories_response_200_item = cls(
81
93
  installation_id=installation_id,
82
94
  account_id=account_id,
83
95
  repositories=repositories,
96
+ total_count=total_count,
97
+ per_page=per_page,
84
98
  workspace_id=workspace_id,
85
99
  )
86
100
 
@@ -31,6 +31,8 @@ class GetSettingsResponse200:
31
31
  slack_name (Union[Unset, str]):
32
32
  slack_team_id (Union[Unset, str]):
33
33
  slack_command_script (Union[Unset, str]):
34
+ slack_oauth_client_id (Union[Unset, str]):
35
+ slack_oauth_client_secret (Union[Unset, str]):
34
36
  teams_team_id (Union[Unset, str]):
35
37
  teams_command_script (Union[Unset, str]):
36
38
  teams_team_name (Union[Unset, str]):
@@ -63,6 +65,8 @@ class GetSettingsResponse200:
63
65
  slack_name: Union[Unset, str] = UNSET
64
66
  slack_team_id: Union[Unset, str] = UNSET
65
67
  slack_command_script: Union[Unset, str] = UNSET
68
+ slack_oauth_client_id: Union[Unset, str] = UNSET
69
+ slack_oauth_client_secret: Union[Unset, str] = UNSET
66
70
  teams_team_id: Union[Unset, str] = UNSET
67
71
  teams_command_script: Union[Unset, str] = UNSET
68
72
  teams_team_name: Union[Unset, str] = UNSET
@@ -95,6 +99,8 @@ class GetSettingsResponse200:
95
99
  slack_name = self.slack_name
96
100
  slack_team_id = self.slack_team_id
97
101
  slack_command_script = self.slack_command_script
102
+ slack_oauth_client_id = self.slack_oauth_client_id
103
+ slack_oauth_client_secret = self.slack_oauth_client_secret
98
104
  teams_team_id = self.teams_team_id
99
105
  teams_command_script = self.teams_command_script
100
106
  teams_team_name = self.teams_team_name
@@ -164,6 +170,10 @@ class GetSettingsResponse200:
164
170
  field_dict["slack_team_id"] = slack_team_id
165
171
  if slack_command_script is not UNSET:
166
172
  field_dict["slack_command_script"] = slack_command_script
173
+ if slack_oauth_client_id is not UNSET:
174
+ field_dict["slack_oauth_client_id"] = slack_oauth_client_id
175
+ if slack_oauth_client_secret is not UNSET:
176
+ field_dict["slack_oauth_client_secret"] = slack_oauth_client_secret
167
177
  if teams_team_id is not UNSET:
168
178
  field_dict["teams_team_id"] = teams_team_id
169
179
  if teams_command_script is not UNSET:
@@ -242,6 +252,10 @@ class GetSettingsResponse200:
242
252
 
243
253
  slack_command_script = d.pop("slack_command_script", UNSET)
244
254
 
255
+ slack_oauth_client_id = d.pop("slack_oauth_client_id", UNSET)
256
+
257
+ slack_oauth_client_secret = d.pop("slack_oauth_client_secret", UNSET)
258
+
245
259
  teams_team_id = d.pop("teams_team_id", UNSET)
246
260
 
247
261
  teams_command_script = d.pop("teams_command_script", UNSET)
@@ -345,6 +359,8 @@ class GetSettingsResponse200:
345
359
  slack_name=slack_name,
346
360
  slack_team_id=slack_team_id,
347
361
  slack_command_script=slack_command_script,
362
+ slack_oauth_client_id=slack_oauth_client_id,
363
+ slack_oauth_client_secret=slack_oauth_client_secret,
348
364
  teams_team_id=teams_team_id,
349
365
  teams_command_script=teams_command_script,
350
366
  teams_team_name=teams_team_name,
@@ -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="GetWorkspaceSlackOauthConfigResponse200")
9
+
10
+
11
+ @_attrs_define
12
+ class GetWorkspaceSlackOauthConfigResponse200:
13
+ """
14
+ Attributes:
15
+ slack_oauth_client_id (Union[Unset, None, str]):
16
+ slack_oauth_client_secret (Union[Unset, None, str]): Masked with *** if set
17
+ """
18
+
19
+ slack_oauth_client_id: Union[Unset, None, str] = UNSET
20
+ slack_oauth_client_secret: Union[Unset, None, str] = UNSET
21
+ additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
22
+
23
+ def to_dict(self) -> Dict[str, Any]:
24
+ slack_oauth_client_id = self.slack_oauth_client_id
25
+ slack_oauth_client_secret = self.slack_oauth_client_secret
26
+
27
+ field_dict: Dict[str, Any] = {}
28
+ field_dict.update(self.additional_properties)
29
+ field_dict.update({})
30
+ if slack_oauth_client_id is not UNSET:
31
+ field_dict["slack_oauth_client_id"] = slack_oauth_client_id
32
+ if slack_oauth_client_secret is not UNSET:
33
+ field_dict["slack_oauth_client_secret"] = slack_oauth_client_secret
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
+ slack_oauth_client_id = d.pop("slack_oauth_client_id", UNSET)
41
+
42
+ slack_oauth_client_secret = d.pop("slack_oauth_client_secret", UNSET)
43
+
44
+ get_workspace_slack_oauth_config_response_200 = cls(
45
+ slack_oauth_client_id=slack_oauth_client_id,
46
+ slack_oauth_client_secret=slack_oauth_client_secret,
47
+ )
48
+
49
+ get_workspace_slack_oauth_config_response_200.additional_properties = d
50
+ return get_workspace_slack_oauth_config_response_200
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
@@ -19,12 +19,16 @@ class GithubInstallationsItem:
19
19
  installation_id (float):
20
20
  account_id (str):
21
21
  repositories (List['GithubInstallationsItemRepositoriesItem']):
22
+ total_count (float): Total number of repositories available for this installation
23
+ per_page (float): Number of repositories loaded per page
22
24
  workspace_id (Union[Unset, str]):
23
25
  """
24
26
 
25
27
  installation_id: float
26
28
  account_id: str
27
29
  repositories: List["GithubInstallationsItemRepositoriesItem"]
30
+ total_count: float
31
+ per_page: float
28
32
  workspace_id: Union[Unset, str] = UNSET
29
33
  additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
30
34
 
@@ -37,6 +41,8 @@ class GithubInstallationsItem:
37
41
 
38
42
  repositories.append(repositories_item)
39
43
 
44
+ total_count = self.total_count
45
+ per_page = self.per_page
40
46
  workspace_id = self.workspace_id
41
47
 
42
48
  field_dict: Dict[str, Any] = {}
@@ -46,6 +52,8 @@ class GithubInstallationsItem:
46
52
  "installation_id": installation_id,
47
53
  "account_id": account_id,
48
54
  "repositories": repositories,
55
+ "total_count": total_count,
56
+ "per_page": per_page,
49
57
  }
50
58
  )
51
59
  if workspace_id is not UNSET:
@@ -69,12 +77,18 @@ class GithubInstallationsItem:
69
77
 
70
78
  repositories.append(repositories_item)
71
79
 
80
+ total_count = d.pop("total_count")
81
+
82
+ per_page = d.pop("per_page")
83
+
72
84
  workspace_id = d.pop("workspace_id", UNSET)
73
85
 
74
86
  github_installations_item = cls(
75
87
  installation_id=installation_id,
76
88
  account_id=account_id,
77
89
  repositories=repositories,
90
+ total_count=total_count,
91
+ per_page=per_page,
78
92
  workspace_id=workspace_id,
79
93
  )
80
94
 
@@ -0,0 +1,65 @@
1
+ from typing import Any, Dict, List, Type, TypeVar
2
+
3
+ from attrs import define as _attrs_define
4
+ from attrs import field as _attrs_field
5
+
6
+ T = TypeVar("T", bound="SetWorkspaceSlackOauthConfigJsonBody")
7
+
8
+
9
+ @_attrs_define
10
+ class SetWorkspaceSlackOauthConfigJsonBody:
11
+ """
12
+ Attributes:
13
+ slack_oauth_client_id (str):
14
+ slack_oauth_client_secret (str):
15
+ """
16
+
17
+ slack_oauth_client_id: str
18
+ slack_oauth_client_secret: str
19
+ additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
20
+
21
+ def to_dict(self) -> Dict[str, Any]:
22
+ slack_oauth_client_id = self.slack_oauth_client_id
23
+ slack_oauth_client_secret = self.slack_oauth_client_secret
24
+
25
+ field_dict: Dict[str, Any] = {}
26
+ field_dict.update(self.additional_properties)
27
+ field_dict.update(
28
+ {
29
+ "slack_oauth_client_id": slack_oauth_client_id,
30
+ "slack_oauth_client_secret": slack_oauth_client_secret,
31
+ }
32
+ )
33
+
34
+ return field_dict
35
+
36
+ @classmethod
37
+ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
38
+ d = src_dict.copy()
39
+ slack_oauth_client_id = d.pop("slack_oauth_client_id")
40
+
41
+ slack_oauth_client_secret = d.pop("slack_oauth_client_secret")
42
+
43
+ set_workspace_slack_oauth_config_json_body = cls(
44
+ slack_oauth_client_id=slack_oauth_client_id,
45
+ slack_oauth_client_secret=slack_oauth_client_secret,
46
+ )
47
+
48
+ set_workspace_slack_oauth_config_json_body.additional_properties = d
49
+ return set_workspace_slack_oauth_config_json_body
50
+
51
+ @property
52
+ def additional_keys(self) -> List[str]:
53
+ return list(self.additional_properties.keys())
54
+
55
+ def __getitem__(self, key: str) -> Any:
56
+ return self.additional_properties[key]
57
+
58
+ def __setitem__(self, key: str, value: Any) -> None:
59
+ self.additional_properties[key] = value
60
+
61
+ def __delitem__(self, key: str) -> None:
62
+ del self.additional_properties[key]
63
+
64
+ def __contains__(self, key: str) -> bool:
65
+ return key in self.additional_properties
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: windmill-api
3
- Version: 1.567.3
3
+ Version: 1.569.0
4
4
  Summary: A client library for accessing Windmill API
5
5
  License: Apache-2.0
6
6
  Author: Ruben Fiszel
@@ -128,7 +128,7 @@ windmill_api/api/gcp_trigger/update_gcp_trigger.py,sha256=lIsUA3hY1vlpanc2jG9o3v
128
128
  windmill_api/api/git_sync/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
129
129
  windmill_api/api/git_sync/delete_from_workspace.py,sha256=xpEMs8aBxLWGahl2iqcbPzciYjWdx-v5ekp_zJVkdNs,2895
130
130
  windmill_api/api/git_sync/export_installation.py,sha256=9e_yrCUIai5iX6xU5qFuxSEgT4LoU3p62U7CS8sbS5k,4766
131
- windmill_api/api/git_sync/get_global_connected_repositories.py,sha256=UR9Qo9VUcGAkAFYoMmBJiSdRLM_JnZ5z7mXN-KaOGIA,3983
131
+ windmill_api/api/git_sync/get_global_connected_repositories.py,sha256=FtOoaaDahiq-rU0AftPBVplKTKr7Fo421rhmxaiCj_M,4721
132
132
  windmill_api/api/git_sync/import_installation.py,sha256=P5itKxuLAE3agc4hsPCGTsDrGHVOUdCWifKam5pJpMw,3019
133
133
  windmill_api/api/git_sync/install_from_workspace.py,sha256=zAEt2t62z4HSkosCg07eVx4Ecuolh9fzg9tg8zrdNKk,2904
134
134
  windmill_api/api/granular_acl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -537,6 +537,7 @@ windmill_api/api/workspace/create_workspace_fork.py,sha256=V9hLOO6NwZZq5gQiQ4yHF
537
537
  windmill_api/api/workspace/delete_git_sync_repository.py,sha256=vTT0_IH4qHzLmqVcEsIrwSMKj_SAyPP1NtqVVdcCWD0,2902
538
538
  windmill_api/api/workspace/delete_invite.py,sha256=PfwTA5svQKFrbl_aiDc4NkL4POvd9uDxHQFApD7OYRg,2704
539
539
  windmill_api/api/workspace/delete_workspace.py,sha256=RPcF68hin2-ebX1Nf0XjCWIu6dJADFlkOMUKfpS45c0,2921
540
+ windmill_api/api/workspace/delete_workspace_slack_oauth_config.py,sha256=5nbJLPg6bxUdYa9LsKfJapCPhaz7o2JIPp4nrNrwUOc,2344
540
541
  windmill_api/api/workspace/edit_auto_invite.py,sha256=u-EY_aZyqp9vkXKWffDoNxCVheMLR9hDx0RCVYO0Muk,2718
541
542
  windmill_api/api/workspace/edit_copilot_config.py,sha256=U1gPohEbsQwruoBnol6s5EQP1mcKrVSkQZSMuoBX-Oo,2748
542
543
  windmill_api/api/workspace/edit_default_scripts.py,sha256=Zi7xXuSAf7fiYJu6nerr5pX4Ah84VTAjhl8ZJvdxjek,2781
@@ -568,6 +569,7 @@ windmill_api/api/workspace/get_used_triggers.py,sha256=YnShrlix42jOJUEgKyZULaFUH
568
569
  windmill_api/api/workspace/get_workspace_default_app.py,sha256=kl5g22l3PaEfULkf9Bvjd77x4_mSxa2TTUE4fhrDvyQ,3994
569
570
  windmill_api/api/workspace/get_workspace_encryption_key.py,sha256=UesuBMeiPvCjfBzBYIEEL7JlOUbqukFEM2AvTz1hk4Y,4108
570
571
  windmill_api/api/workspace/get_workspace_name.py,sha256=MrUklRfguSp556N1UCUT4aAzgqmXYM5FYynXXGS7Hts,2307
572
+ windmill_api/api/workspace/get_workspace_slack_oauth_config.py,sha256=08rRm5-YxbGl6cwzFuMOMjMQj0j5z_D3Z2GbWFsPS4A,4092
571
573
  windmill_api/api/workspace/get_workspace_usage.py,sha256=B6C47ukf-P2DiugnEw4AtY4QAJjP3S4PQqe84uBiEx4,2276
572
574
  windmill_api/api/workspace/invite_user.py,sha256=lFo3sd6ctRoNJnbY8wh1JLqJK79JiqxgpdtP1RoSy5U,2700
573
575
  windmill_api/api/workspace/is_domain_allowed.py,sha256=IFtBikqIJmddzRNCqijG2xST5gJf1ebnFJXYOCVnNmY,3152
@@ -585,6 +587,7 @@ windmill_api/api/workspace/run_teams_message_test_job.py,sha256=lpmj5y3g0-xOQWJ4
585
587
  windmill_api/api/workspace/set_environment_variable.py,sha256=EGDoktKua4YqffjpLAvudoOxRIhDPkcTlJ7JwxFeiPM,2798
586
588
  windmill_api/api/workspace/set_threshold_alert.py,sha256=faSqhLhlISONjrJWW0Yh983TVa8n51kjkAl0g97y15w,2754
587
589
  windmill_api/api/workspace/set_workspace_encryption_key.py,sha256=YVnjNSKUH8rUUHYcPTpSIEji9FAT6eEfWpU7SWCHgEE,2850
590
+ windmill_api/api/workspace/set_workspace_slack_oauth_config.py,sha256=bh3dIaQoJ-Ie_SkeQZIahSrH6kyrhod_ytTTaCxkiSg,2852
588
591
  windmill_api/api/workspace/unarchive_workspace.py,sha256=mS7jRZ5n64qYRrE5eoatDtchtHiu7ga1HzAtc96DhFQ,2299
589
592
  windmill_api/api/workspace/update_operator_settings.py,sha256=OSoXZy8m3IGZLQeBzcBB17I6dSOeQ4spS1k7HLiygu4,3094
590
593
  windmill_api/client.py,sha256=r4usc_1YIQRI4Sr33G9Z3H25-bKCZ5w2I9qZ_eCUP3M,12131
@@ -2558,7 +2561,7 @@ windmill_api/models/get_gcp_trigger_response_200_subscription_mode.py,sha256=fj2
2558
2561
  windmill_api/models/get_git_commit_hash_response_200.py,sha256=sYfKzfvZyBqJJnHCfK7dFGRskDNhBDaZYL2_g7I9chE,1617
2559
2562
  windmill_api/models/get_github_app_token_json_body.py,sha256=CnE22hyCp3RfOgoBzEjyq1WUpcV_Q4JHxQTPrSbVrEQ,1549
2560
2563
  windmill_api/models/get_github_app_token_response_200.py,sha256=Eoo5xAitZIy5N4lfso0MSJC3r_jo1z7qiAvDyAacye0,1524
2561
- windmill_api/models/get_global_connected_repositories_response_200_item.py,sha256=MTx9cZWOoG5uUQAK15AilUDjYnRU6X3Gra6dB0KWT6Q,3470
2564
+ windmill_api/models/get_global_connected_repositories_response_200_item.py,sha256=S1hFWivvRiz1ml9UA6Clx_DGZjRECDue4JadSa0LEo4,3972
2562
2565
  windmill_api/models/get_global_connected_repositories_response_200_item_repositories_item.py,sha256=uZ1k3HQW80V8rrJRBgJBTutFvdAZ38DROGmMZhNUqAc,1820
2563
2566
  windmill_api/models/get_granular_acls_kind.py,sha256=UPlzrTHqvIF_GYudWoNuNMO17k0ddZ5DbY1HXhJFR-w,649
2564
2567
  windmill_api/models/get_granular_acls_response_200.py,sha256=GBNLqaaap42IbGX8jniniFTUrtOFgiCLb5n5-2NKRIY,1297
@@ -3084,7 +3087,7 @@ windmill_api/models/get_script_by_path_with_draft_response_200_schema.py,sha256=
3084
3087
  windmill_api/models/get_script_deployment_status_response_200.py,sha256=xmVrdonWouCGM_3MdoVNSuaAWN8Qt7erpLpfhfauU5c,1985
3085
3088
  windmill_api/models/get_script_history_by_path_response_200_item.py,sha256=vc0iaH2j8BKXxXtjtEg7-lollyA5OxPLYoJsjSUiqc8,2009
3086
3089
  windmill_api/models/get_script_latest_version_response_200.py,sha256=tQENYMrpuFKHrllSdlpHe-P_EnWq74-07mDWIfDEres,1983
3087
- windmill_api/models/get_settings_response_200.py,sha256=fnY7o7JFA66iqc-Iq_qDxb5VqUHetPbOxHmF_Tfmses,17749
3090
+ windmill_api/models/get_settings_response_200.py,sha256=gxObPRzylS203t6nEJNigHnyxk5cZqzaU9M_W4hWTHU,18613
3088
3091
  windmill_api/models/get_settings_response_200_ai_config.py,sha256=kUNz44HvrbE96DCdzs29ps7eWCl4KR0VHPEzb5NPDJ8,7072
3089
3092
  windmill_api/models/get_settings_response_200_ai_config_code_completion_model.py,sha256=gIlLC7OwaC5oRgDHFDVa8n0V9ZTiLd7-EjlThJ2UQPY,2149
3090
3093
  windmill_api/models/get_settings_response_200_ai_config_code_completion_model_provider.py,sha256=VnxuHQRCiavp1ClBK73i8CBWKy-tISmd9L6kOa7rErw,426
@@ -3409,13 +3412,14 @@ windmill_api/models/get_websocket_trigger_response_200_retry_retry_if.py,sha256=
3409
3412
  windmill_api/models/get_websocket_trigger_response_200_url_runnable_args.py,sha256=TGU8QjyhBsLgCWiDQxfdqgcD0tUrJALQ2KSPGzMge2Q,1440
3410
3413
  windmill_api/models/get_workspace_default_app_response_200.py,sha256=FKINlHD6u4qyUDJgJjDuDIyIsWAuvRdPKYQA9s_Y00g,1758
3411
3414
  windmill_api/models/get_workspace_encryption_key_response_200.py,sha256=Fvs0c2FiaRvYp_qRzJ4xj-gQ-2mF58Ae5dOol6Onuow,1544
3415
+ windmill_api/models/get_workspace_slack_oauth_config_response_200.py,sha256=1_-EBshQO7InDtBNwATDeYPQfu--zKnzcJxZ-9S5rVw,2347
3412
3416
  windmill_api/models/git_repo_viewer_file_upload_response_200.py,sha256=W5MbTsIkg_gUIEFv7vqEADdek_WCJ7wHxj3VKq9uAIc,1587
3413
3417
  windmill_api/models/git_repository_settings.py,sha256=UMuFUfq9jZIv7tMNkHl7mrkNHJ1fIByMfIIXI_mow38,5142
3414
3418
  windmill_api/models/git_repository_settings_exclude_types_override_item.py,sha256=UgHD6OCUPd7AZ4J9DEH14ZZZg010hizcPzlHb8g0d6A,466
3415
3419
  windmill_api/models/git_repository_settings_settings.py,sha256=J5A0J2GUmiXWAPS-jt8JWZcdgxRht_XBJz8PP8DxcCE,3856
3416
3420
  windmill_api/models/git_repository_settings_settings_include_type_item.py,sha256=5I72KGK9v7h3uQX3a-aJarho1a5MlU5Z20h4ze4EBao,465
3417
3421
  windmill_api/models/git_sync_object_type.py,sha256=m8G9lKLN4bWeWuVIgOWSSw_5OcIev0noO4R36ENbsg4,438
3418
- windmill_api/models/github_installations_item.py,sha256=eQZySpUmGB8XibjaE1F7Iu11KtFr_Z7x_2XIM-RPsGU,3114
3422
+ windmill_api/models/github_installations_item.py,sha256=CGHq1Wcqa-n6LXxz3qnXprB9FImPq1l1k2gUK24UEvo,3616
3419
3423
  windmill_api/models/github_installations_item_repositories_item.py,sha256=ui-qQICI5iywFMczl6pDy3Ppaw1KsEkgex1HrNlkoaE,1698
3420
3424
  windmill_api/models/global_setting.py,sha256=NZxAwAz5Rh8LMvpHqRAaVZhF0-cXR9897d1lyNrXeTU,1821
3421
3425
  windmill_api/models/global_setting_value.py,sha256=iNYDija5EzLJMOATmSzfaW54v5ijJS8ZWPkVDiMncb4,1248
@@ -5441,6 +5445,7 @@ windmill_api/models/set_sqs_trigger_enabled_json_body.py,sha256=vLomxG05W0o7Aqze
5441
5445
  windmill_api/models/set_threshold_alert_json_body.py,sha256=i7qaWObe13Pdq8SouPwfR-7n1C0QF-aYZA6u8zn0OPA,1785
5442
5446
  windmill_api/models/set_websocket_trigger_enabled_json_body.py,sha256=7vo3qLPYnFxmZWMlZdJhxyVtG6Qf9Edi6hTGXuKCxgo,1576
5443
5447
  windmill_api/models/set_workspace_encryption_key_json_body.py,sha256=ouffHakm84NN5H-6AH5TCC6-bewjjnyyQHI1SzSCWwg,1945
5448
+ windmill_api/models/set_workspace_slack_oauth_config_json_body.py,sha256=ESKdFe1R9T4dKBjx_4lNsVlDu2sJoA9VJcRG8uwvt1o,2079
5444
5449
  windmill_api/models/setup_ducklake_catalog_db_response_200.py,sha256=elD_Ghy2Q1hiLpzfsFn71-psduKQq2RClksZInoMsBo,2511
5445
5450
  windmill_api/models/setup_ducklake_catalog_db_response_200_logs.py,sha256=YWv4rEA7v7buHWEuqD90ZjtEQ4SO66CSs9gGJSIA7Fo,7309
5446
5451
  windmill_api/models/setup_ducklake_catalog_db_response_200_logs_created_database.py,sha256=BOecprPc4NTKFK7Z5v1nCUMoJjAzzxLlHGvb1jqWZAU,207
@@ -5727,7 +5732,7 @@ windmill_api/models/workspace_invite.py,sha256=wp-J-VJLkXsfQzw1PdNPGQhETsFCFXh1e
5727
5732
  windmill_api/models/workspace_mute_critical_alerts_ui_json_body.py,sha256=y8ZwkWEZgavVc-FgLuZZ4z8YPCLxjPcMfdGdKjGM6VQ,1883
5728
5733
  windmill_api/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
5729
5734
  windmill_api/types.py,sha256=GoYub3t4hQP2Yn5tsvShsBfIY3vHUmblU0MXszDx_V0,968
5730
- windmill_api-1.567.3.dist-info/LICENSE,sha256=qJVFNTaOevCeSY6NoXeUG1SPOwQ1K-PxVQ2iEWJzX-A,11348
5731
- windmill_api-1.567.3.dist-info/METADATA,sha256=vZbLcMAM3t-dKzBr_isUrAFrt0mrkk0ssB1_VcK29XI,5023
5732
- windmill_api-1.567.3.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
5733
- windmill_api-1.567.3.dist-info/RECORD,,
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,,