minikai 0.1.2__py3-none-any.whl → 0.1.3__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 minikai might be problematic. Click here for more details.

Files changed (91) hide show
  1. minikai/__init__.py +1 -1
  2. minikai/api/__init__.py +1 -1
  3. minikai/api/groups/__init__.py +1 -1
  4. minikai/api/groups/add_minis_to_group.py +53 -33
  5. minikai/api/groups/add_users_to_group.py +53 -33
  6. minikai/api/groups/create_group.py +45 -27
  7. minikai/api/groups/delete_group.py +29 -9
  8. minikai/api/groups/get_group.py +47 -28
  9. minikai/api/groups/get_group_minis.py +52 -33
  10. minikai/api/groups/get_group_users.py +52 -33
  11. minikai/api/groups/get_groups.py +56 -34
  12. minikai/api/groups/remove_minis_from_group.py +53 -33
  13. minikai/api/groups/remove_users_from_group.py +53 -33
  14. minikai/api/groups/update_group.py +51 -33
  15. minikai/api/minis/__init__.py +1 -1
  16. minikai/api/minis/create_mini.py +45 -27
  17. minikai/api/minis/delete_mini.py +29 -9
  18. minikai/api/minis/get_external_mini.py +52 -33
  19. minikai/api/minis/get_minis.py +56 -34
  20. minikai/api/minis/patch_mini.py +51 -33
  21. minikai/api/minis/update_mini.py +51 -33
  22. minikai/api/records/__init__.py +1 -1
  23. minikai/api/records/add_attachments.py +59 -38
  24. minikai/api/records/add_relations.py +65 -43
  25. minikai/api/records/create_record.py +48 -28
  26. minikai/api/records/delete_record.py +29 -9
  27. minikai/api/records/download_attachment.py +119 -0
  28. minikai/api/records/get_records_by_external.py +68 -45
  29. minikai/api/records/remove_attachments.py +33 -11
  30. minikai/api/records/remove_relations.py +33 -11
  31. minikai/api/records/update_attachments.py +59 -38
  32. minikai/api/records/update_record.py +53 -33
  33. minikai/api/records/update_relations.py +65 -43
  34. minikai/api/users/__init__.py +1 -1
  35. minikai/api/users/delete_api_users_minis.py +31 -11
  36. minikai/api/users/get_api_users_minis.py +52 -33
  37. minikai/api/users/get_users.py +56 -34
  38. minikai/api/users/post_api_users_minis.py +52 -33
  39. minikai/client.py +6 -3
  40. minikai/errors.py +1 -3
  41. minikai/models/__init__.py +5 -1
  42. minikai/models/add_attachments_body.py +45 -13
  43. minikai/models/create_group_command.py +35 -10
  44. minikai/models/create_mini_command.py +34 -10
  45. minikai/models/create_record_command.py +87 -41
  46. minikai/models/create_record_command_tags.py +22 -3
  47. minikai/models/cursor_paginated_list_of_record_dto.py +122 -0
  48. minikai/models/document_file_dto.py +37 -13
  49. minikai/models/document_file_metadata_dto.py +27 -7
  50. minikai/models/form_field.py +38 -12
  51. minikai/models/form_field_dto.py +48 -16
  52. minikai/models/form_field_type.py +2 -8
  53. minikai/models/group_dto.py +50 -19
  54. minikai/models/http_validation_problem_details.py +41 -16
  55. minikai/models/http_validation_problem_details_errors.py +26 -3
  56. minikai/models/json_node.py +49 -24
  57. minikai/models/json_node_options.py +26 -7
  58. minikai/models/mini_dto.py +62 -27
  59. minikai/models/mini_template_dto.py +50 -18
  60. minikai/models/paginated_list_of_record_dto.py +39 -16
  61. minikai/models/patch_mini_command.py +30 -8
  62. minikai/models/problem_details.py +34 -11
  63. minikai/models/record.py +134 -55
  64. minikai/models/record_attachment.py +56 -27
  65. minikai/models/record_attachment_dto.py +56 -27
  66. minikai/models/record_attachment_dto_metadata_type_0.py +22 -3
  67. minikai/models/record_attachment_metadata_type_0.py +22 -3
  68. minikai/models/record_authorization.py +41 -9
  69. minikai/models/record_authorization_dto.py +41 -9
  70. minikai/models/record_dto.py +113 -54
  71. minikai/models/record_dto_tags.py +22 -3
  72. minikai/models/record_relation.py +35 -11
  73. minikai/models/record_relation_dto.py +35 -11
  74. minikai/models/record_tag.py +40 -13
  75. minikai/models/record_tag_dto.py +68 -0
  76. minikai/models/slim_mini_dto.py +51 -22
  77. minikai/models/tool_dto.py +29 -10
  78. minikai/models/update_attachments_body.py +45 -13
  79. minikai/models/update_group_command.py +37 -11
  80. minikai/models/update_mini_command.py +35 -11
  81. minikai/models/update_mini_template_workspaces_command.py +30 -7
  82. minikai/models/update_record_command.py +87 -42
  83. minikai/models/update_record_command_tags.py +22 -3
  84. minikai/models/user_dto.py +50 -17
  85. minikai/models/user_to_mini_dto.py +30 -9
  86. minikai/models/workspace_dto.py +30 -9
  87. minikai/types.py +5 -6
  88. {minikai-0.1.2.dist-info → minikai-0.1.3.dist-info}/METADATA +1 -1
  89. minikai-0.1.3.dist-info/RECORD +91 -0
  90. minikai-0.1.2.dist-info/RECORD +0 -88
  91. {minikai-0.1.2.dist-info → minikai-0.1.3.dist-info}/WHEEL +0 -0
minikai/__init__.py CHANGED
@@ -1,5 +1,5 @@
1
- """A client library for accessing Minikai API"""
2
1
 
2
+ """ A client library for accessing Minikai API """
3
3
  from .client import AuthenticatedClient, Client
4
4
 
5
5
  __all__ = (
minikai/api/__init__.py CHANGED
@@ -1 +1 @@
1
- """Contains methods for accessing the API"""
1
+ """ Contains methods for accessing the API """
@@ -1 +1 @@
1
- """Contains endpoint functions for accessing the API"""
1
+ """ Contains endpoint functions for accessing the API """
@@ -3,35 +3,46 @@ from typing import Any, Optional, Union, cast
3
3
 
4
4
  import httpx
5
5
 
6
- from ... import errors
7
6
  from ...client import AuthenticatedClient, Client
7
+ from ...types import Response, UNSET
8
+ from ... import errors
9
+
8
10
  from ...models.http_validation_problem_details import HttpValidationProblemDetails
9
- from ...types import Response
11
+ from typing import cast
12
+
10
13
 
11
14
 
12
15
  def _get_kwargs(
13
16
  group_id: str,
14
17
  *,
15
18
  body: list[int],
19
+
16
20
  ) -> dict[str, Any]:
17
21
  headers: dict[str, Any] = {}
18
22
 
23
+
24
+
25
+
26
+
27
+
19
28
  _kwargs: dict[str, Any] = {
20
29
  "method": "patch",
21
- "url": f"/api/Groups/{group_id}/minis",
30
+ "url": "/api/Groups/{group_id}/minis".format(group_id=group_id,),
22
31
  }
23
32
 
24
33
  _kwargs["json"] = body
25
34
 
35
+
36
+
37
+
26
38
  headers["Content-Type"] = "application/json"
27
39
 
28
40
  _kwargs["headers"] = headers
29
41
  return _kwargs
30
42
 
31
43
 
32
- def _parse_response(
33
- *, client: Union[AuthenticatedClient, Client], response: httpx.Response
34
- ) -> Optional[Union[Any, HttpValidationProblemDetails]]:
44
+
45
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Union[Any, HttpValidationProblemDetails]]:
35
46
  if response.status_code == 204:
36
47
  response_204 = cast(Any, None)
37
48
  return response_204
@@ -39,6 +50,8 @@ def _parse_response(
39
50
  if response.status_code == 400:
40
51
  response_400 = HttpValidationProblemDetails.from_dict(response.json())
41
52
 
53
+
54
+
42
55
  return response_400
43
56
 
44
57
  if response.status_code == 404:
@@ -51,9 +64,7 @@ def _parse_response(
51
64
  return None
52
65
 
53
66
 
54
- def _build_response(
55
- *, client: Union[AuthenticatedClient, Client], response: httpx.Response
56
- ) -> Response[Union[Any, HttpValidationProblemDetails]]:
67
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Union[Any, HttpValidationProblemDetails]]:
57
68
  return Response(
58
69
  status_code=HTTPStatus(response.status_code),
59
70
  content=response.content,
@@ -67,8 +78,9 @@ def sync_detailed(
67
78
  *,
68
79
  client: Union[AuthenticatedClient, Client],
69
80
  body: list[int],
81
+
70
82
  ) -> Response[Union[Any, HttpValidationProblemDetails]]:
71
- """
83
+ """
72
84
  Args:
73
85
  group_id (str):
74
86
  body (list[int]):
@@ -79,11 +91,13 @@ def sync_detailed(
79
91
 
80
92
  Returns:
81
93
  Response[Union[Any, HttpValidationProblemDetails]]
82
- """
94
+ """
95
+
83
96
 
84
97
  kwargs = _get_kwargs(
85
98
  group_id=group_id,
86
- body=body,
99
+ body=body,
100
+
87
101
  )
88
102
 
89
103
  response = client.get_httpx_client().request(
@@ -92,14 +106,14 @@ def sync_detailed(
92
106
 
93
107
  return _build_response(client=client, response=response)
94
108
 
95
-
96
109
  def sync(
97
110
  group_id: str,
98
111
  *,
99
112
  client: Union[AuthenticatedClient, Client],
100
113
  body: list[int],
114
+
101
115
  ) -> Optional[Union[Any, HttpValidationProblemDetails]]:
102
- """
116
+ """
103
117
  Args:
104
118
  group_id (str):
105
119
  body (list[int]):
@@ -110,22 +124,24 @@ def sync(
110
124
 
111
125
  Returns:
112
126
  Union[Any, HttpValidationProblemDetails]
113
- """
127
+ """
128
+
114
129
 
115
130
  return sync_detailed(
116
131
  group_id=group_id,
117
- client=client,
118
- body=body,
119
- ).parsed
132
+ client=client,
133
+ body=body,
120
134
 
135
+ ).parsed
121
136
 
122
137
  async def asyncio_detailed(
123
138
  group_id: str,
124
139
  *,
125
140
  client: Union[AuthenticatedClient, Client],
126
141
  body: list[int],
142
+
127
143
  ) -> Response[Union[Any, HttpValidationProblemDetails]]:
128
- """
144
+ """
129
145
  Args:
130
146
  group_id (str):
131
147
  body (list[int]):
@@ -136,25 +152,29 @@ async def asyncio_detailed(
136
152
 
137
153
  Returns:
138
154
  Response[Union[Any, HttpValidationProblemDetails]]
139
- """
155
+ """
156
+
140
157
 
141
158
  kwargs = _get_kwargs(
142
159
  group_id=group_id,
143
- body=body,
160
+ body=body,
161
+
144
162
  )
145
163
 
146
- response = await client.get_async_httpx_client().request(**kwargs)
164
+ response = await client.get_async_httpx_client().request(
165
+ **kwargs
166
+ )
147
167
 
148
168
  return _build_response(client=client, response=response)
149
169
 
150
-
151
170
  async def asyncio(
152
171
  group_id: str,
153
172
  *,
154
173
  client: Union[AuthenticatedClient, Client],
155
174
  body: list[int],
175
+
156
176
  ) -> Optional[Union[Any, HttpValidationProblemDetails]]:
157
- """
177
+ """
158
178
  Args:
159
179
  group_id (str):
160
180
  body (list[int]):
@@ -165,12 +185,12 @@ async def asyncio(
165
185
 
166
186
  Returns:
167
187
  Union[Any, HttpValidationProblemDetails]
168
- """
169
-
170
- return (
171
- await asyncio_detailed(
172
- group_id=group_id,
173
- client=client,
174
- body=body,
175
- )
176
- ).parsed
188
+ """
189
+
190
+
191
+ return (await asyncio_detailed(
192
+ group_id=group_id,
193
+ client=client,
194
+ body=body,
195
+
196
+ )).parsed
@@ -3,35 +3,46 @@ from typing import Any, Optional, Union, cast
3
3
 
4
4
  import httpx
5
5
 
6
- from ... import errors
7
6
  from ...client import AuthenticatedClient, Client
7
+ from ...types import Response, UNSET
8
+ from ... import errors
9
+
8
10
  from ...models.http_validation_problem_details import HttpValidationProblemDetails
9
- from ...types import Response
11
+ from typing import cast
12
+
10
13
 
11
14
 
12
15
  def _get_kwargs(
13
16
  group_id: str,
14
17
  *,
15
18
  body: list[str],
19
+
16
20
  ) -> dict[str, Any]:
17
21
  headers: dict[str, Any] = {}
18
22
 
23
+
24
+
25
+
26
+
27
+
19
28
  _kwargs: dict[str, Any] = {
20
29
  "method": "patch",
21
- "url": f"/api/Groups/{group_id}/users",
30
+ "url": "/api/Groups/{group_id}/users".format(group_id=group_id,),
22
31
  }
23
32
 
24
33
  _kwargs["json"] = body
25
34
 
35
+
36
+
37
+
26
38
  headers["Content-Type"] = "application/json"
27
39
 
28
40
  _kwargs["headers"] = headers
29
41
  return _kwargs
30
42
 
31
43
 
32
- def _parse_response(
33
- *, client: Union[AuthenticatedClient, Client], response: httpx.Response
34
- ) -> Optional[Union[Any, HttpValidationProblemDetails]]:
44
+
45
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Union[Any, HttpValidationProblemDetails]]:
35
46
  if response.status_code == 204:
36
47
  response_204 = cast(Any, None)
37
48
  return response_204
@@ -39,6 +50,8 @@ def _parse_response(
39
50
  if response.status_code == 400:
40
51
  response_400 = HttpValidationProblemDetails.from_dict(response.json())
41
52
 
53
+
54
+
42
55
  return response_400
43
56
 
44
57
  if response.status_code == 404:
@@ -51,9 +64,7 @@ def _parse_response(
51
64
  return None
52
65
 
53
66
 
54
- def _build_response(
55
- *, client: Union[AuthenticatedClient, Client], response: httpx.Response
56
- ) -> Response[Union[Any, HttpValidationProblemDetails]]:
67
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Union[Any, HttpValidationProblemDetails]]:
57
68
  return Response(
58
69
  status_code=HTTPStatus(response.status_code),
59
70
  content=response.content,
@@ -67,8 +78,9 @@ def sync_detailed(
67
78
  *,
68
79
  client: Union[AuthenticatedClient, Client],
69
80
  body: list[str],
81
+
70
82
  ) -> Response[Union[Any, HttpValidationProblemDetails]]:
71
- """
83
+ """
72
84
  Args:
73
85
  group_id (str):
74
86
  body (list[str]):
@@ -79,11 +91,13 @@ def sync_detailed(
79
91
 
80
92
  Returns:
81
93
  Response[Union[Any, HttpValidationProblemDetails]]
82
- """
94
+ """
95
+
83
96
 
84
97
  kwargs = _get_kwargs(
85
98
  group_id=group_id,
86
- body=body,
99
+ body=body,
100
+
87
101
  )
88
102
 
89
103
  response = client.get_httpx_client().request(
@@ -92,14 +106,14 @@ def sync_detailed(
92
106
 
93
107
  return _build_response(client=client, response=response)
94
108
 
95
-
96
109
  def sync(
97
110
  group_id: str,
98
111
  *,
99
112
  client: Union[AuthenticatedClient, Client],
100
113
  body: list[str],
114
+
101
115
  ) -> Optional[Union[Any, HttpValidationProblemDetails]]:
102
- """
116
+ """
103
117
  Args:
104
118
  group_id (str):
105
119
  body (list[str]):
@@ -110,22 +124,24 @@ def sync(
110
124
 
111
125
  Returns:
112
126
  Union[Any, HttpValidationProblemDetails]
113
- """
127
+ """
128
+
114
129
 
115
130
  return sync_detailed(
116
131
  group_id=group_id,
117
- client=client,
118
- body=body,
119
- ).parsed
132
+ client=client,
133
+ body=body,
120
134
 
135
+ ).parsed
121
136
 
122
137
  async def asyncio_detailed(
123
138
  group_id: str,
124
139
  *,
125
140
  client: Union[AuthenticatedClient, Client],
126
141
  body: list[str],
142
+
127
143
  ) -> Response[Union[Any, HttpValidationProblemDetails]]:
128
- """
144
+ """
129
145
  Args:
130
146
  group_id (str):
131
147
  body (list[str]):
@@ -136,25 +152,29 @@ async def asyncio_detailed(
136
152
 
137
153
  Returns:
138
154
  Response[Union[Any, HttpValidationProblemDetails]]
139
- """
155
+ """
156
+
140
157
 
141
158
  kwargs = _get_kwargs(
142
159
  group_id=group_id,
143
- body=body,
160
+ body=body,
161
+
144
162
  )
145
163
 
146
- response = await client.get_async_httpx_client().request(**kwargs)
164
+ response = await client.get_async_httpx_client().request(
165
+ **kwargs
166
+ )
147
167
 
148
168
  return _build_response(client=client, response=response)
149
169
 
150
-
151
170
  async def asyncio(
152
171
  group_id: str,
153
172
  *,
154
173
  client: Union[AuthenticatedClient, Client],
155
174
  body: list[str],
175
+
156
176
  ) -> Optional[Union[Any, HttpValidationProblemDetails]]:
157
- """
177
+ """
158
178
  Args:
159
179
  group_id (str):
160
180
  body (list[str]):
@@ -165,12 +185,12 @@ async def asyncio(
165
185
 
166
186
  Returns:
167
187
  Union[Any, HttpValidationProblemDetails]
168
- """
169
-
170
- return (
171
- await asyncio_detailed(
172
- group_id=group_id,
173
- client=client,
174
- body=body,
175
- )
176
- ).parsed
188
+ """
189
+
190
+
191
+ return (await asyncio_detailed(
192
+ group_id=group_id,
193
+ client=client,
194
+ body=body,
195
+
196
+ )).parsed
@@ -3,19 +3,28 @@ from typing import Any, Optional, Union, cast
3
3
 
4
4
  import httpx
5
5
 
6
- from ... import errors
7
6
  from ...client import AuthenticatedClient, Client
7
+ from ...types import Response, UNSET
8
+ from ... import errors
9
+
8
10
  from ...models.create_group_command import CreateGroupCommand
9
11
  from ...models.http_validation_problem_details import HttpValidationProblemDetails
10
- from ...types import Response
12
+ from typing import cast
13
+
11
14
 
12
15
 
13
16
  def _get_kwargs(
14
17
  *,
15
18
  body: CreateGroupCommand,
19
+
16
20
  ) -> dict[str, Any]:
17
21
  headers: dict[str, Any] = {}
18
22
 
23
+
24
+
25
+
26
+
27
+
19
28
  _kwargs: dict[str, Any] = {
20
29
  "method": "post",
21
30
  "url": "/api/Groups",
@@ -23,15 +32,15 @@ def _get_kwargs(
23
32
 
24
33
  _kwargs["json"] = body.to_dict()
25
34
 
35
+
26
36
  headers["Content-Type"] = "application/json"
27
37
 
28
38
  _kwargs["headers"] = headers
29
39
  return _kwargs
30
40
 
31
41
 
32
- def _parse_response(
33
- *, client: Union[AuthenticatedClient, Client], response: httpx.Response
34
- ) -> Optional[Union[HttpValidationProblemDetails, str]]:
42
+
43
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Union[HttpValidationProblemDetails, str]]:
35
44
  if response.status_code == 201:
36
45
  response_201 = cast(str, response.json())
37
46
  return response_201
@@ -39,6 +48,8 @@ def _parse_response(
39
48
  if response.status_code == 400:
40
49
  response_400 = HttpValidationProblemDetails.from_dict(response.json())
41
50
 
51
+
52
+
42
53
  return response_400
43
54
 
44
55
  if client.raise_on_unexpected_status:
@@ -47,9 +58,7 @@ def _parse_response(
47
58
  return None
48
59
 
49
60
 
50
- def _build_response(
51
- *, client: Union[AuthenticatedClient, Client], response: httpx.Response
52
- ) -> Response[Union[HttpValidationProblemDetails, str]]:
61
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Union[HttpValidationProblemDetails, str]]:
53
62
  return Response(
54
63
  status_code=HTTPStatus(response.status_code),
55
64
  content=response.content,
@@ -62,8 +71,9 @@ def sync_detailed(
62
71
  *,
63
72
  client: Union[AuthenticatedClient, Client],
64
73
  body: CreateGroupCommand,
74
+
65
75
  ) -> Response[Union[HttpValidationProblemDetails, str]]:
66
- """
76
+ """
67
77
  Args:
68
78
  body (CreateGroupCommand):
69
79
 
@@ -73,10 +83,12 @@ def sync_detailed(
73
83
 
74
84
  Returns:
75
85
  Response[Union[HttpValidationProblemDetails, str]]
76
- """
86
+ """
87
+
77
88
 
78
89
  kwargs = _get_kwargs(
79
90
  body=body,
91
+
80
92
  )
81
93
 
82
94
  response = client.get_httpx_client().request(
@@ -85,13 +97,13 @@ def sync_detailed(
85
97
 
86
98
  return _build_response(client=client, response=response)
87
99
 
88
-
89
100
  def sync(
90
101
  *,
91
102
  client: Union[AuthenticatedClient, Client],
92
103
  body: CreateGroupCommand,
104
+
93
105
  ) -> Optional[Union[HttpValidationProblemDetails, str]]:
94
- """
106
+ """
95
107
  Args:
96
108
  body (CreateGroupCommand):
97
109
 
@@ -101,20 +113,22 @@ def sync(
101
113
 
102
114
  Returns:
103
115
  Union[HttpValidationProblemDetails, str]
104
- """
116
+ """
117
+
105
118
 
106
119
  return sync_detailed(
107
120
  client=client,
108
- body=body,
109
- ).parsed
121
+ body=body,
110
122
 
123
+ ).parsed
111
124
 
112
125
  async def asyncio_detailed(
113
126
  *,
114
127
  client: Union[AuthenticatedClient, Client],
115
128
  body: CreateGroupCommand,
129
+
116
130
  ) -> Response[Union[HttpValidationProblemDetails, str]]:
117
- """
131
+ """
118
132
  Args:
119
133
  body (CreateGroupCommand):
120
134
 
@@ -124,23 +138,27 @@ async def asyncio_detailed(
124
138
 
125
139
  Returns:
126
140
  Response[Union[HttpValidationProblemDetails, str]]
127
- """
141
+ """
142
+
128
143
 
129
144
  kwargs = _get_kwargs(
130
145
  body=body,
146
+
131
147
  )
132
148
 
133
- response = await client.get_async_httpx_client().request(**kwargs)
149
+ response = await client.get_async_httpx_client().request(
150
+ **kwargs
151
+ )
134
152
 
135
153
  return _build_response(client=client, response=response)
136
154
 
137
-
138
155
  async def asyncio(
139
156
  *,
140
157
  client: Union[AuthenticatedClient, Client],
141
158
  body: CreateGroupCommand,
159
+
142
160
  ) -> Optional[Union[HttpValidationProblemDetails, str]]:
143
- """
161
+ """
144
162
  Args:
145
163
  body (CreateGroupCommand):
146
164
 
@@ -150,11 +168,11 @@ async def asyncio(
150
168
 
151
169
  Returns:
152
170
  Union[HttpValidationProblemDetails, str]
153
- """
171
+ """
154
172
 
155
- return (
156
- await asyncio_detailed(
157
- client=client,
158
- body=body,
159
- )
160
- ).parsed
173
+
174
+ return (await asyncio_detailed(
175
+ client=client,
176
+ body=body,
177
+
178
+ )).parsed
@@ -1,24 +1,35 @@
1
1
  from http import HTTPStatus
2
- from typing import Any, Optional, Union
2
+ from typing import Any, Optional, Union, cast
3
3
 
4
4
  import httpx
5
5
 
6
- from ... import errors
7
6
  from ...client import AuthenticatedClient, Client
8
- from ...types import Response
7
+ from ...types import Response, UNSET
8
+ from ... import errors
9
+
10
+
9
11
 
10
12
 
11
13
  def _get_kwargs(
12
14
  group_id: str,
15
+
13
16
  ) -> dict[str, Any]:
17
+
18
+
19
+
20
+
21
+
22
+
14
23
  _kwargs: dict[str, Any] = {
15
24
  "method": "delete",
16
- "url": f"/api/Groups/{group_id}",
25
+ "url": "/api/Groups/{group_id}".format(group_id=group_id,),
17
26
  }
18
27
 
28
+
19
29
  return _kwargs
20
30
 
21
31
 
32
+
22
33
  def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Any]:
23
34
  if response.status_code == 204:
24
35
  return None
@@ -45,8 +56,9 @@ def sync_detailed(
45
56
  group_id: str,
46
57
  *,
47
58
  client: Union[AuthenticatedClient, Client],
59
+
48
60
  ) -> Response[Any]:
49
- """
61
+ """
50
62
  Args:
51
63
  group_id (str):
52
64
 
@@ -56,10 +68,12 @@ def sync_detailed(
56
68
 
57
69
  Returns:
58
70
  Response[Any]
59
- """
71
+ """
72
+
60
73
 
61
74
  kwargs = _get_kwargs(
62
75
  group_id=group_id,
76
+
63
77
  )
64
78
 
65
79
  response = client.get_httpx_client().request(
@@ -73,8 +87,9 @@ async def asyncio_detailed(
73
87
  group_id: str,
74
88
  *,
75
89
  client: Union[AuthenticatedClient, Client],
90
+
76
91
  ) -> Response[Any]:
77
- """
92
+ """
78
93
  Args:
79
94
  group_id (str):
80
95
 
@@ -84,12 +99,17 @@ async def asyncio_detailed(
84
99
 
85
100
  Returns:
86
101
  Response[Any]
87
- """
102
+ """
103
+
88
104
 
89
105
  kwargs = _get_kwargs(
90
106
  group_id=group_id,
107
+
91
108
  )
92
109
 
93
- response = await client.get_async_httpx_client().request(**kwargs)
110
+ response = await client.get_async_httpx_client().request(
111
+ **kwargs
112
+ )
94
113
 
95
114
  return _build_response(client=client, response=response)
115
+