minikai 0.1.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 minikai might be problematic. Click here for more details.

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