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/minis/get_minis.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.slim_mini_dto import SlimMiniDto
|
|
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/Minis",
|
|
16
27
|
}
|
|
17
28
|
|
|
29
|
+
|
|
18
30
|
return _kwargs
|
|
19
31
|
|
|
20
32
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
) -> Optional[list["SlimMiniDto"]]:
|
|
33
|
+
|
|
34
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[list['SlimMiniDto']]:
|
|
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 = SlimMiniDto.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["SlimMiniDto"]]:
|
|
53
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[list['SlimMiniDto']]:
|
|
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['SlimMiniDto']]:
|
|
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['SlimMiniDto']]
|
|
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['SlimMiniDto']]:
|
|
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['SlimMiniDto']
|
|
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['SlimMiniDto']]:
|
|
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['SlimMiniDto']]
|
|
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['SlimMiniDto']]:
|
|
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['SlimMiniDto']
|
|
122
|
-
|
|
144
|
+
"""
|
|
123
145
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
).parsed
|
|
146
|
+
|
|
147
|
+
return (await asyncio_detailed(
|
|
148
|
+
client=client,
|
|
149
|
+
|
|
150
|
+
)).parsed
|
minikai/api/minis/patch_mini.py
CHANGED
|
@@ -3,36 +3,45 @@ 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
11
|
from ...models.patch_mini_command import PatchMiniCommand
|
|
10
|
-
from
|
|
12
|
+
from typing import cast
|
|
13
|
+
|
|
11
14
|
|
|
12
15
|
|
|
13
16
|
def _get_kwargs(
|
|
14
17
|
id: int,
|
|
15
18
|
*,
|
|
16
19
|
body: PatchMiniCommand,
|
|
20
|
+
|
|
17
21
|
) -> dict[str, Any]:
|
|
18
22
|
headers: dict[str, Any] = {}
|
|
19
23
|
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
20
29
|
_kwargs: dict[str, Any] = {
|
|
21
30
|
"method": "patch",
|
|
22
|
-
"url":
|
|
31
|
+
"url": "/api/Minis/{id}".format(id=id,),
|
|
23
32
|
}
|
|
24
33
|
|
|
25
34
|
_kwargs["json"] = body.to_dict()
|
|
26
35
|
|
|
36
|
+
|
|
27
37
|
headers["Content-Type"] = "application/json"
|
|
28
38
|
|
|
29
39
|
_kwargs["headers"] = headers
|
|
30
40
|
return _kwargs
|
|
31
41
|
|
|
32
42
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
) -> Optional[Union[Any, HttpValidationProblemDetails]]:
|
|
43
|
+
|
|
44
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Union[Any, HttpValidationProblemDetails]]:
|
|
36
45
|
if response.status_code == 204:
|
|
37
46
|
response_204 = cast(Any, None)
|
|
38
47
|
return response_204
|
|
@@ -40,6 +49,8 @@ def _parse_response(
|
|
|
40
49
|
if response.status_code == 400:
|
|
41
50
|
response_400 = HttpValidationProblemDetails.from_dict(response.json())
|
|
42
51
|
|
|
52
|
+
|
|
53
|
+
|
|
43
54
|
return response_400
|
|
44
55
|
|
|
45
56
|
if response.status_code == 404:
|
|
@@ -52,9 +63,7 @@ def _parse_response(
|
|
|
52
63
|
return None
|
|
53
64
|
|
|
54
65
|
|
|
55
|
-
def _build_response(
|
|
56
|
-
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
57
|
-
) -> Response[Union[Any, HttpValidationProblemDetails]]:
|
|
66
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Union[Any, HttpValidationProblemDetails]]:
|
|
58
67
|
return Response(
|
|
59
68
|
status_code=HTTPStatus(response.status_code),
|
|
60
69
|
content=response.content,
|
|
@@ -68,8 +77,9 @@ def sync_detailed(
|
|
|
68
77
|
*,
|
|
69
78
|
client: Union[AuthenticatedClient, Client],
|
|
70
79
|
body: PatchMiniCommand,
|
|
80
|
+
|
|
71
81
|
) -> Response[Union[Any, HttpValidationProblemDetails]]:
|
|
72
|
-
"""
|
|
82
|
+
"""
|
|
73
83
|
Args:
|
|
74
84
|
id (int):
|
|
75
85
|
body (PatchMiniCommand):
|
|
@@ -80,11 +90,13 @@ def sync_detailed(
|
|
|
80
90
|
|
|
81
91
|
Returns:
|
|
82
92
|
Response[Union[Any, HttpValidationProblemDetails]]
|
|
83
|
-
|
|
93
|
+
"""
|
|
94
|
+
|
|
84
95
|
|
|
85
96
|
kwargs = _get_kwargs(
|
|
86
97
|
id=id,
|
|
87
|
-
|
|
98
|
+
body=body,
|
|
99
|
+
|
|
88
100
|
)
|
|
89
101
|
|
|
90
102
|
response = client.get_httpx_client().request(
|
|
@@ -93,14 +105,14 @@ def sync_detailed(
|
|
|
93
105
|
|
|
94
106
|
return _build_response(client=client, response=response)
|
|
95
107
|
|
|
96
|
-
|
|
97
108
|
def sync(
|
|
98
109
|
id: int,
|
|
99
110
|
*,
|
|
100
111
|
client: Union[AuthenticatedClient, Client],
|
|
101
112
|
body: PatchMiniCommand,
|
|
113
|
+
|
|
102
114
|
) -> Optional[Union[Any, HttpValidationProblemDetails]]:
|
|
103
|
-
"""
|
|
115
|
+
"""
|
|
104
116
|
Args:
|
|
105
117
|
id (int):
|
|
106
118
|
body (PatchMiniCommand):
|
|
@@ -111,22 +123,24 @@ def sync(
|
|
|
111
123
|
|
|
112
124
|
Returns:
|
|
113
125
|
Union[Any, HttpValidationProblemDetails]
|
|
114
|
-
|
|
126
|
+
"""
|
|
127
|
+
|
|
115
128
|
|
|
116
129
|
return sync_detailed(
|
|
117
130
|
id=id,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
).parsed
|
|
131
|
+
client=client,
|
|
132
|
+
body=body,
|
|
121
133
|
|
|
134
|
+
).parsed
|
|
122
135
|
|
|
123
136
|
async def asyncio_detailed(
|
|
124
137
|
id: int,
|
|
125
138
|
*,
|
|
126
139
|
client: Union[AuthenticatedClient, Client],
|
|
127
140
|
body: PatchMiniCommand,
|
|
141
|
+
|
|
128
142
|
) -> Response[Union[Any, HttpValidationProblemDetails]]:
|
|
129
|
-
"""
|
|
143
|
+
"""
|
|
130
144
|
Args:
|
|
131
145
|
id (int):
|
|
132
146
|
body (PatchMiniCommand):
|
|
@@ -137,25 +151,29 @@ async def asyncio_detailed(
|
|
|
137
151
|
|
|
138
152
|
Returns:
|
|
139
153
|
Response[Union[Any, HttpValidationProblemDetails]]
|
|
140
|
-
|
|
154
|
+
"""
|
|
155
|
+
|
|
141
156
|
|
|
142
157
|
kwargs = _get_kwargs(
|
|
143
158
|
id=id,
|
|
144
|
-
|
|
159
|
+
body=body,
|
|
160
|
+
|
|
145
161
|
)
|
|
146
162
|
|
|
147
|
-
response = await client.get_async_httpx_client().request(
|
|
163
|
+
response = await client.get_async_httpx_client().request(
|
|
164
|
+
**kwargs
|
|
165
|
+
)
|
|
148
166
|
|
|
149
167
|
return _build_response(client=client, response=response)
|
|
150
168
|
|
|
151
|
-
|
|
152
169
|
async def asyncio(
|
|
153
170
|
id: int,
|
|
154
171
|
*,
|
|
155
172
|
client: Union[AuthenticatedClient, Client],
|
|
156
173
|
body: PatchMiniCommand,
|
|
174
|
+
|
|
157
175
|
) -> Optional[Union[Any, HttpValidationProblemDetails]]:
|
|
158
|
-
"""
|
|
176
|
+
"""
|
|
159
177
|
Args:
|
|
160
178
|
id (int):
|
|
161
179
|
body (PatchMiniCommand):
|
|
@@ -166,12 +184,12 @@ async def asyncio(
|
|
|
166
184
|
|
|
167
185
|
Returns:
|
|
168
186
|
Union[Any, HttpValidationProblemDetails]
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
).parsed
|
|
187
|
+
"""
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
return (await asyncio_detailed(
|
|
191
|
+
id=id,
|
|
192
|
+
client=client,
|
|
193
|
+
body=body,
|
|
194
|
+
|
|
195
|
+
)).parsed
|
minikai/api/minis/update_mini.py
CHANGED
|
@@ -3,36 +3,45 @@ 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
11
|
from ...models.update_mini_command import UpdateMiniCommand
|
|
10
|
-
from
|
|
12
|
+
from typing import cast
|
|
13
|
+
|
|
11
14
|
|
|
12
15
|
|
|
13
16
|
def _get_kwargs(
|
|
14
17
|
id: int,
|
|
15
18
|
*,
|
|
16
19
|
body: UpdateMiniCommand,
|
|
20
|
+
|
|
17
21
|
) -> dict[str, Any]:
|
|
18
22
|
headers: dict[str, Any] = {}
|
|
19
23
|
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
20
29
|
_kwargs: dict[str, Any] = {
|
|
21
30
|
"method": "put",
|
|
22
|
-
"url":
|
|
31
|
+
"url": "/api/Minis/{id}".format(id=id,),
|
|
23
32
|
}
|
|
24
33
|
|
|
25
34
|
_kwargs["json"] = body.to_dict()
|
|
26
35
|
|
|
36
|
+
|
|
27
37
|
headers["Content-Type"] = "application/json"
|
|
28
38
|
|
|
29
39
|
_kwargs["headers"] = headers
|
|
30
40
|
return _kwargs
|
|
31
41
|
|
|
32
42
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
) -> Optional[Union[Any, HttpValidationProblemDetails]]:
|
|
43
|
+
|
|
44
|
+
def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Union[Any, HttpValidationProblemDetails]]:
|
|
36
45
|
if response.status_code == 204:
|
|
37
46
|
response_204 = cast(Any, None)
|
|
38
47
|
return response_204
|
|
@@ -40,6 +49,8 @@ def _parse_response(
|
|
|
40
49
|
if response.status_code == 400:
|
|
41
50
|
response_400 = HttpValidationProblemDetails.from_dict(response.json())
|
|
42
51
|
|
|
52
|
+
|
|
53
|
+
|
|
43
54
|
return response_400
|
|
44
55
|
|
|
45
56
|
if response.status_code == 404:
|
|
@@ -52,9 +63,7 @@ def _parse_response(
|
|
|
52
63
|
return None
|
|
53
64
|
|
|
54
65
|
|
|
55
|
-
def _build_response(
|
|
56
|
-
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
57
|
-
) -> Response[Union[Any, HttpValidationProblemDetails]]:
|
|
66
|
+
def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Union[Any, HttpValidationProblemDetails]]:
|
|
58
67
|
return Response(
|
|
59
68
|
status_code=HTTPStatus(response.status_code),
|
|
60
69
|
content=response.content,
|
|
@@ -68,8 +77,9 @@ def sync_detailed(
|
|
|
68
77
|
*,
|
|
69
78
|
client: Union[AuthenticatedClient, Client],
|
|
70
79
|
body: UpdateMiniCommand,
|
|
80
|
+
|
|
71
81
|
) -> Response[Union[Any, HttpValidationProblemDetails]]:
|
|
72
|
-
"""
|
|
82
|
+
"""
|
|
73
83
|
Args:
|
|
74
84
|
id (int):
|
|
75
85
|
body (UpdateMiniCommand):
|
|
@@ -80,11 +90,13 @@ def sync_detailed(
|
|
|
80
90
|
|
|
81
91
|
Returns:
|
|
82
92
|
Response[Union[Any, HttpValidationProblemDetails]]
|
|
83
|
-
|
|
93
|
+
"""
|
|
94
|
+
|
|
84
95
|
|
|
85
96
|
kwargs = _get_kwargs(
|
|
86
97
|
id=id,
|
|
87
|
-
|
|
98
|
+
body=body,
|
|
99
|
+
|
|
88
100
|
)
|
|
89
101
|
|
|
90
102
|
response = client.get_httpx_client().request(
|
|
@@ -93,14 +105,14 @@ def sync_detailed(
|
|
|
93
105
|
|
|
94
106
|
return _build_response(client=client, response=response)
|
|
95
107
|
|
|
96
|
-
|
|
97
108
|
def sync(
|
|
98
109
|
id: int,
|
|
99
110
|
*,
|
|
100
111
|
client: Union[AuthenticatedClient, Client],
|
|
101
112
|
body: UpdateMiniCommand,
|
|
113
|
+
|
|
102
114
|
) -> Optional[Union[Any, HttpValidationProblemDetails]]:
|
|
103
|
-
"""
|
|
115
|
+
"""
|
|
104
116
|
Args:
|
|
105
117
|
id (int):
|
|
106
118
|
body (UpdateMiniCommand):
|
|
@@ -111,22 +123,24 @@ def sync(
|
|
|
111
123
|
|
|
112
124
|
Returns:
|
|
113
125
|
Union[Any, HttpValidationProblemDetails]
|
|
114
|
-
|
|
126
|
+
"""
|
|
127
|
+
|
|
115
128
|
|
|
116
129
|
return sync_detailed(
|
|
117
130
|
id=id,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
).parsed
|
|
131
|
+
client=client,
|
|
132
|
+
body=body,
|
|
121
133
|
|
|
134
|
+
).parsed
|
|
122
135
|
|
|
123
136
|
async def asyncio_detailed(
|
|
124
137
|
id: int,
|
|
125
138
|
*,
|
|
126
139
|
client: Union[AuthenticatedClient, Client],
|
|
127
140
|
body: UpdateMiniCommand,
|
|
141
|
+
|
|
128
142
|
) -> Response[Union[Any, HttpValidationProblemDetails]]:
|
|
129
|
-
"""
|
|
143
|
+
"""
|
|
130
144
|
Args:
|
|
131
145
|
id (int):
|
|
132
146
|
body (UpdateMiniCommand):
|
|
@@ -137,25 +151,29 @@ async def asyncio_detailed(
|
|
|
137
151
|
|
|
138
152
|
Returns:
|
|
139
153
|
Response[Union[Any, HttpValidationProblemDetails]]
|
|
140
|
-
|
|
154
|
+
"""
|
|
155
|
+
|
|
141
156
|
|
|
142
157
|
kwargs = _get_kwargs(
|
|
143
158
|
id=id,
|
|
144
|
-
|
|
159
|
+
body=body,
|
|
160
|
+
|
|
145
161
|
)
|
|
146
162
|
|
|
147
|
-
response = await client.get_async_httpx_client().request(
|
|
163
|
+
response = await client.get_async_httpx_client().request(
|
|
164
|
+
**kwargs
|
|
165
|
+
)
|
|
148
166
|
|
|
149
167
|
return _build_response(client=client, response=response)
|
|
150
168
|
|
|
151
|
-
|
|
152
169
|
async def asyncio(
|
|
153
170
|
id: int,
|
|
154
171
|
*,
|
|
155
172
|
client: Union[AuthenticatedClient, Client],
|
|
156
173
|
body: UpdateMiniCommand,
|
|
174
|
+
|
|
157
175
|
) -> Optional[Union[Any, HttpValidationProblemDetails]]:
|
|
158
|
-
"""
|
|
176
|
+
"""
|
|
159
177
|
Args:
|
|
160
178
|
id (int):
|
|
161
179
|
body (UpdateMiniCommand):
|
|
@@ -166,12 +184,12 @@ async def asyncio(
|
|
|
166
184
|
|
|
167
185
|
Returns:
|
|
168
186
|
Union[Any, HttpValidationProblemDetails]
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
).parsed
|
|
187
|
+
"""
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
return (await asyncio_detailed(
|
|
191
|
+
id=id,
|
|
192
|
+
client=client,
|
|
193
|
+
body=body,
|
|
194
|
+
|
|
195
|
+
)).parsed
|
minikai/api/records/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"""Contains endpoint functions for accessing the API"""
|
|
1
|
+
""" Contains endpoint functions for accessing the API """
|