minikai 0.1.1__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.
- minikai/__init__.py +1 -1
- minikai/api/__init__.py +1 -1
- minikai/api/groups/__init__.py +1 -1
- minikai/api/groups/add_minis_to_group.py +53 -33
- minikai/api/groups/add_users_to_group.py +53 -33
- minikai/api/groups/create_group.py +45 -27
- minikai/api/groups/delete_group.py +29 -9
- minikai/api/groups/get_group.py +47 -28
- minikai/api/groups/get_group_minis.py +52 -33
- minikai/api/groups/get_group_users.py +52 -33
- minikai/api/groups/get_groups.py +56 -34
- minikai/api/groups/remove_minis_from_group.py +53 -33
- minikai/api/groups/remove_users_from_group.py +53 -33
- minikai/api/groups/update_group.py +51 -33
- minikai/api/minis/__init__.py +1 -1
- minikai/api/minis/create_mini.py +45 -27
- minikai/api/minis/delete_mini.py +29 -9
- minikai/api/minis/get_external_mini.py +52 -33
- minikai/api/minis/get_minis.py +56 -34
- minikai/api/minis/patch_mini.py +51 -33
- minikai/api/minis/update_mini.py +51 -33
- minikai/api/records/__init__.py +1 -1
- minikai/api/records/add_attachments.py +59 -38
- minikai/api/records/add_relations.py +65 -43
- minikai/api/records/create_record.py +48 -28
- minikai/api/records/delete_record.py +29 -9
- minikai/api/records/download_attachment.py +119 -0
- minikai/api/records/get_records_by_external.py +68 -45
- minikai/api/records/remove_attachments.py +33 -11
- minikai/api/records/remove_relations.py +33 -11
- minikai/api/records/update_attachments.py +59 -38
- minikai/api/records/update_record.py +53 -33
- minikai/api/records/update_relations.py +65 -43
- minikai/api/users/__init__.py +1 -1
- minikai/api/users/delete_api_users_minis.py +31 -11
- minikai/api/users/get_api_users_minis.py +52 -33
- minikai/api/users/get_users.py +56 -34
- minikai/api/users/post_api_users_minis.py +52 -33
- minikai/client.py +6 -3
- minikai/errors.py +1 -3
- minikai/models/__init__.py +7 -3
- minikai/models/add_attachments_body.py +45 -13
- minikai/models/create_group_command.py +35 -10
- minikai/models/create_mini_command.py +34 -10
- minikai/models/create_record_command.py +87 -41
- minikai/models/create_record_command_tags.py +22 -3
- minikai/models/cursor_paginated_list_of_record_dto.py +122 -0
- minikai/models/document_file_dto.py +37 -13
- minikai/models/document_file_metadata_dto.py +27 -7
- minikai/models/form_field.py +38 -12
- minikai/models/form_field_dto.py +48 -16
- minikai/models/form_field_type.py +2 -8
- minikai/models/group_dto.py +50 -19
- minikai/models/http_validation_problem_details.py +41 -16
- minikai/models/http_validation_problem_details_errors.py +26 -3
- minikai/models/json_node.py +49 -24
- minikai/models/json_node_options.py +26 -7
- minikai/models/mini_dto.py +62 -27
- minikai/models/mini_template_dto.py +50 -18
- minikai/models/paginated_list_of_record_dto.py +39 -16
- minikai/models/patch_mini_command.py +30 -8
- minikai/models/problem_details.py +34 -11
- minikai/models/record.py +143 -61
- minikai/models/record_attachment.py +56 -27
- minikai/models/record_attachment_dto.py +56 -27
- minikai/models/record_attachment_dto_metadata_type_0.py +22 -3
- minikai/models/record_attachment_metadata_type_0.py +22 -3
- minikai/models/record_authorization.py +41 -9
- minikai/models/record_authorization_dto.py +41 -9
- minikai/models/record_dto.py +113 -54
- minikai/models/record_dto_tags.py +22 -3
- minikai/models/record_relation.py +35 -11
- minikai/models/record_relation_dto.py +35 -11
- minikai/models/record_tag.py +159 -0
- minikai/models/record_tag_dto.py +68 -0
- minikai/models/slim_mini_dto.py +51 -22
- minikai/models/tool_dto.py +29 -10
- minikai/models/update_attachments_body.py +45 -13
- minikai/models/update_group_command.py +37 -11
- minikai/models/update_mini_command.py +35 -11
- minikai/models/update_mini_template_workspaces_command.py +30 -7
- minikai/models/update_record_command.py +87 -42
- minikai/models/update_record_command_tags.py +22 -3
- minikai/models/user_dto.py +50 -17
- minikai/models/user_to_mini_dto.py +30 -9
- minikai/models/workspace_dto.py +30 -9
- minikai/types.py +5 -6
- {minikai-0.1.1.dist-info → minikai-0.1.3.dist-info}/METADATA +1 -1
- minikai-0.1.3.dist-info/RECORD +91 -0
- minikai/models/record_tags.py +0 -44
- minikai-0.1.1.dist-info/RECORD +0 -88
- {minikai-0.1.1.dist-info → minikai-0.1.3.dist-info}/WHEEL +0 -0
minikai/api/groups/get_groups.py
CHANGED
|
@@ -1,32 +1,45 @@
|
|
|
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
|
|
7
|
+
from ...types import Response, UNSET
|
|
8
|
+
from ... import errors
|
|
9
|
+
|
|
8
10
|
from ...models.group_dto import GroupDto
|
|
9
|
-
from
|
|
11
|
+
from typing import cast
|
|
12
|
+
|
|
10
13
|
|
|
11
14
|
|
|
12
|
-
def _get_kwargs(
|
|
15
|
+
def _get_kwargs(
|
|
16
|
+
|
|
17
|
+
) -> dict[str, Any]:
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
13
24
|
_kwargs: dict[str, Any] = {
|
|
14
25
|
"method": "get",
|
|
15
26
|
"url": "/api/Groups",
|
|
16
27
|
}
|
|
17
28
|
|
|
29
|
+
|
|
18
30
|
return _kwargs
|
|
19
31
|
|
|
20
32
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
) -> Optional[list["GroupDto"]]:
|
|
33
|
+
|
|
34
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[list['GroupDto']]:
|
|
24
35
|
if response.status_code == 200:
|
|
25
36
|
response_200 = []
|
|
26
37
|
_response_200 = response.json()
|
|
27
|
-
for response_200_item_data in _response_200:
|
|
38
|
+
for response_200_item_data in (_response_200):
|
|
28
39
|
response_200_item = GroupDto.from_dict(response_200_item_data)
|
|
29
40
|
|
|
41
|
+
|
|
42
|
+
|
|
30
43
|
response_200.append(response_200_item)
|
|
31
44
|
|
|
32
45
|
return response_200
|
|
@@ -37,9 +50,7 @@ def _parse_response(
|
|
|
37
50
|
return None
|
|
38
51
|
|
|
39
52
|
|
|
40
|
-
def _build_response(
|
|
41
|
-
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
42
|
-
) -> Response[list["GroupDto"]]:
|
|
53
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[list['GroupDto']]:
|
|
43
54
|
return Response(
|
|
44
55
|
status_code=HTTPStatus(response.status_code),
|
|
45
56
|
content=response.content,
|
|
@@ -51,17 +62,21 @@ def _build_response(
|
|
|
51
62
|
def sync_detailed(
|
|
52
63
|
*,
|
|
53
64
|
client: Union[AuthenticatedClient, Client],
|
|
54
|
-
|
|
55
|
-
|
|
65
|
+
|
|
66
|
+
) -> Response[list['GroupDto']]:
|
|
67
|
+
"""
|
|
56
68
|
Raises:
|
|
57
69
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
58
70
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
59
71
|
|
|
60
72
|
Returns:
|
|
61
73
|
Response[list['GroupDto']]
|
|
62
|
-
|
|
74
|
+
"""
|
|
63
75
|
|
|
64
|
-
|
|
76
|
+
|
|
77
|
+
kwargs = _get_kwargs(
|
|
78
|
+
|
|
79
|
+
)
|
|
65
80
|
|
|
66
81
|
response = client.get_httpx_client().request(
|
|
67
82
|
**kwargs,
|
|
@@ -69,60 +84,67 @@ def sync_detailed(
|
|
|
69
84
|
|
|
70
85
|
return _build_response(client=client, response=response)
|
|
71
86
|
|
|
72
|
-
|
|
73
87
|
def sync(
|
|
74
88
|
*,
|
|
75
89
|
client: Union[AuthenticatedClient, Client],
|
|
76
|
-
|
|
77
|
-
|
|
90
|
+
|
|
91
|
+
) -> Optional[list['GroupDto']]:
|
|
92
|
+
"""
|
|
78
93
|
Raises:
|
|
79
94
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
80
95
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
81
96
|
|
|
82
97
|
Returns:
|
|
83
98
|
list['GroupDto']
|
|
84
|
-
|
|
99
|
+
"""
|
|
100
|
+
|
|
85
101
|
|
|
86
102
|
return sync_detailed(
|
|
87
103
|
client=client,
|
|
88
|
-
).parsed
|
|
89
104
|
|
|
105
|
+
).parsed
|
|
90
106
|
|
|
91
107
|
async def asyncio_detailed(
|
|
92
108
|
*,
|
|
93
109
|
client: Union[AuthenticatedClient, Client],
|
|
94
|
-
|
|
95
|
-
|
|
110
|
+
|
|
111
|
+
) -> Response[list['GroupDto']]:
|
|
112
|
+
"""
|
|
96
113
|
Raises:
|
|
97
114
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
98
115
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
99
116
|
|
|
100
117
|
Returns:
|
|
101
118
|
Response[list['GroupDto']]
|
|
102
|
-
|
|
119
|
+
"""
|
|
103
120
|
|
|
104
|
-
kwargs = _get_kwargs()
|
|
105
121
|
|
|
106
|
-
|
|
122
|
+
kwargs = _get_kwargs(
|
|
123
|
+
|
|
124
|
+
)
|
|
107
125
|
|
|
108
|
-
|
|
126
|
+
response = await client.get_async_httpx_client().request(
|
|
127
|
+
**kwargs
|
|
128
|
+
)
|
|
109
129
|
|
|
130
|
+
return _build_response(client=client, response=response)
|
|
110
131
|
|
|
111
132
|
async def asyncio(
|
|
112
133
|
*,
|
|
113
134
|
client: Union[AuthenticatedClient, Client],
|
|
114
|
-
|
|
115
|
-
|
|
135
|
+
|
|
136
|
+
) -> Optional[list['GroupDto']]:
|
|
137
|
+
"""
|
|
116
138
|
Raises:
|
|
117
139
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
118
140
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
119
141
|
|
|
120
142
|
Returns:
|
|
121
143
|
list['GroupDto']
|
|
122
|
-
|
|
144
|
+
"""
|
|
123
145
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
).parsed
|
|
146
|
+
|
|
147
|
+
return (await asyncio_detailed(
|
|
148
|
+
client=client,
|
|
149
|
+
|
|
150
|
+
)).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
|
|
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": "delete",
|
|
21
|
-
"url":
|
|
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
|
-
|
|
33
|
-
|
|
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
|
-
|
|
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
|
-
|
|
118
|
-
|
|
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
|
-
|
|
160
|
+
body=body,
|
|
161
|
+
|
|
144
162
|
)
|
|
145
163
|
|
|
146
|
-
response = await client.get_async_httpx_client().request(
|
|
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
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
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
|
|
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": "delete",
|
|
21
|
-
"url":
|
|
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
|
-
|
|
33
|
-
|
|
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
|
-
|
|
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
|
-
|
|
118
|
-
|
|
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
|
-
|
|
160
|
+
body=body,
|
|
161
|
+
|
|
144
162
|
)
|
|
145
163
|
|
|
146
|
-
response = await client.get_async_httpx_client().request(
|
|
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
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
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
|