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.

Files changed (92) 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 +7 -3
  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 +143 -61
  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 +159 -0
  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.1.dist-info → minikai-0.1.3.dist-info}/METADATA +1 -1
  89. minikai-0.1.3.dist-info/RECORD +91 -0
  90. minikai/models/record_tags.py +0 -44
  91. minikai-0.1.1.dist-info/RECORD +0 -88
  92. {minikai-0.1.1.dist-info → minikai-0.1.3.dist-info}/WHEEL +0 -0
@@ -3,41 +3,53 @@ 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.add_attachments_body import AddAttachmentsBody
9
11
  from ...models.http_validation_problem_details import HttpValidationProblemDetails
10
12
  from ...models.record_attachment import RecordAttachment
11
- from ...types import Response
13
+ from typing import cast
14
+
12
15
 
13
16
 
14
17
  def _get_kwargs(
15
18
  record_id: str,
16
19
  *,
17
20
  body: AddAttachmentsBody,
21
+
18
22
  ) -> dict[str, Any]:
19
23
  headers: dict[str, Any] = {}
20
24
 
25
+
26
+
27
+
28
+
29
+
21
30
  _kwargs: dict[str, Any] = {
22
31
  "method": "post",
23
- "url": f"/api/Records/{record_id}/attachments",
32
+ "url": "/api/Records/{record_id}/attachments".format(record_id=record_id,),
24
33
  }
25
34
 
26
35
  _kwargs["files"] = body.to_multipart()
27
36
 
37
+
38
+
28
39
  _kwargs["headers"] = headers
29
40
  return _kwargs
30
41
 
31
42
 
32
- def _parse_response(
33
- *, client: Union[AuthenticatedClient, Client], response: httpx.Response
34
- ) -> Optional[Union[Any, HttpValidationProblemDetails, list["RecordAttachment"]]]:
43
+
44
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Union[Any, HttpValidationProblemDetails, list['RecordAttachment']]]:
35
45
  if response.status_code == 201:
36
46
  response_201 = []
37
47
  _response_201 = response.json()
38
- for response_201_item_data in _response_201:
48
+ for response_201_item_data in (_response_201):
39
49
  response_201_item = RecordAttachment.from_dict(response_201_item_data)
40
50
 
51
+
52
+
41
53
  response_201.append(response_201_item)
42
54
 
43
55
  return response_201
@@ -45,6 +57,8 @@ def _parse_response(
45
57
  if response.status_code == 400:
46
58
  response_400 = HttpValidationProblemDetails.from_dict(response.json())
47
59
 
60
+
61
+
48
62
  return response_400
49
63
 
50
64
  if response.status_code == 404:
@@ -57,9 +71,7 @@ def _parse_response(
57
71
  return None
58
72
 
59
73
 
60
- def _build_response(
61
- *, client: Union[AuthenticatedClient, Client], response: httpx.Response
62
- ) -> Response[Union[Any, HttpValidationProblemDetails, list["RecordAttachment"]]]:
74
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Union[Any, HttpValidationProblemDetails, list['RecordAttachment']]]:
63
75
  return Response(
64
76
  status_code=HTTPStatus(response.status_code),
65
77
  content=response.content,
@@ -73,8 +85,9 @@ def sync_detailed(
73
85
  *,
74
86
  client: Union[AuthenticatedClient, Client],
75
87
  body: AddAttachmentsBody,
76
- ) -> Response[Union[Any, HttpValidationProblemDetails, list["RecordAttachment"]]]:
77
- """
88
+
89
+ ) -> Response[Union[Any, HttpValidationProblemDetails, list['RecordAttachment']]]:
90
+ """
78
91
  Args:
79
92
  record_id (str):
80
93
  body (AddAttachmentsBody):
@@ -85,11 +98,13 @@ def sync_detailed(
85
98
 
86
99
  Returns:
87
100
  Response[Union[Any, HttpValidationProblemDetails, list['RecordAttachment']]]
88
- """
101
+ """
102
+
89
103
 
90
104
  kwargs = _get_kwargs(
91
105
  record_id=record_id,
92
- body=body,
106
+ body=body,
107
+
93
108
  )
94
109
 
95
110
  response = client.get_httpx_client().request(
@@ -98,14 +113,14 @@ def sync_detailed(
98
113
 
99
114
  return _build_response(client=client, response=response)
100
115
 
101
-
102
116
  def sync(
103
117
  record_id: str,
104
118
  *,
105
119
  client: Union[AuthenticatedClient, Client],
106
120
  body: AddAttachmentsBody,
107
- ) -> Optional[Union[Any, HttpValidationProblemDetails, list["RecordAttachment"]]]:
108
- """
121
+
122
+ ) -> Optional[Union[Any, HttpValidationProblemDetails, list['RecordAttachment']]]:
123
+ """
109
124
  Args:
110
125
  record_id (str):
111
126
  body (AddAttachmentsBody):
@@ -116,22 +131,24 @@ def sync(
116
131
 
117
132
  Returns:
118
133
  Union[Any, HttpValidationProblemDetails, list['RecordAttachment']]
119
- """
134
+ """
135
+
120
136
 
121
137
  return sync_detailed(
122
138
  record_id=record_id,
123
- client=client,
124
- body=body,
125
- ).parsed
139
+ client=client,
140
+ body=body,
126
141
 
142
+ ).parsed
127
143
 
128
144
  async def asyncio_detailed(
129
145
  record_id: str,
130
146
  *,
131
147
  client: Union[AuthenticatedClient, Client],
132
148
  body: AddAttachmentsBody,
133
- ) -> Response[Union[Any, HttpValidationProblemDetails, list["RecordAttachment"]]]:
134
- """
149
+
150
+ ) -> Response[Union[Any, HttpValidationProblemDetails, list['RecordAttachment']]]:
151
+ """
135
152
  Args:
136
153
  record_id (str):
137
154
  body (AddAttachmentsBody):
@@ -142,25 +159,29 @@ async def asyncio_detailed(
142
159
 
143
160
  Returns:
144
161
  Response[Union[Any, HttpValidationProblemDetails, list['RecordAttachment']]]
145
- """
162
+ """
163
+
146
164
 
147
165
  kwargs = _get_kwargs(
148
166
  record_id=record_id,
149
- body=body,
167
+ body=body,
168
+
150
169
  )
151
170
 
152
- response = await client.get_async_httpx_client().request(**kwargs)
171
+ response = await client.get_async_httpx_client().request(
172
+ **kwargs
173
+ )
153
174
 
154
175
  return _build_response(client=client, response=response)
155
176
 
156
-
157
177
  async def asyncio(
158
178
  record_id: str,
159
179
  *,
160
180
  client: Union[AuthenticatedClient, Client],
161
181
  body: AddAttachmentsBody,
162
- ) -> Optional[Union[Any, HttpValidationProblemDetails, list["RecordAttachment"]]]:
163
- """
182
+
183
+ ) -> Optional[Union[Any, HttpValidationProblemDetails, list['RecordAttachment']]]:
184
+ """
164
185
  Args:
165
186
  record_id (str):
166
187
  body (AddAttachmentsBody):
@@ -171,12 +192,12 @@ async def asyncio(
171
192
 
172
193
  Returns:
173
194
  Union[Any, HttpValidationProblemDetails, list['RecordAttachment']]
174
- """
175
-
176
- return (
177
- await asyncio_detailed(
178
- record_id=record_id,
179
- client=client,
180
- body=body,
181
- )
182
- ).parsed
195
+ """
196
+
197
+
198
+ return (await asyncio_detailed(
199
+ record_id=record_id,
200
+ client=client,
201
+ body=body,
202
+
203
+ )).parsed
@@ -3,24 +3,33 @@ 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.record_relation import RecordRelation
10
12
  from ...models.record_relation_dto import RecordRelationDto
11
- from ...types import Response
13
+ from typing import cast
14
+
12
15
 
13
16
 
14
17
  def _get_kwargs(
15
18
  record_id: str,
16
19
  *,
17
- body: list["RecordRelationDto"],
20
+ body: list['RecordRelationDto'],
21
+
18
22
  ) -> dict[str, Any]:
19
23
  headers: dict[str, Any] = {}
20
24
 
25
+
26
+
27
+
28
+
29
+
21
30
  _kwargs: dict[str, Any] = {
22
31
  "method": "post",
23
- "url": f"/api/Records/{record_id}/relations",
32
+ "url": "/api/Records/{record_id}/relations".format(record_id=record_id,),
24
33
  }
25
34
 
26
35
  _kwargs["json"] = []
@@ -28,21 +37,25 @@ def _get_kwargs(
28
37
  body_item = body_item_data.to_dict()
29
38
  _kwargs["json"].append(body_item)
30
39
 
40
+
41
+
42
+
31
43
  headers["Content-Type"] = "application/json"
32
44
 
33
45
  _kwargs["headers"] = headers
34
46
  return _kwargs
35
47
 
36
48
 
37
- def _parse_response(
38
- *, client: Union[AuthenticatedClient, Client], response: httpx.Response
39
- ) -> Optional[Union[Any, HttpValidationProblemDetails, list["RecordRelation"]]]:
49
+
50
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Union[Any, HttpValidationProblemDetails, list['RecordRelation']]]:
40
51
  if response.status_code == 201:
41
52
  response_201 = []
42
53
  _response_201 = response.json()
43
- for response_201_item_data in _response_201:
54
+ for response_201_item_data in (_response_201):
44
55
  response_201_item = RecordRelation.from_dict(response_201_item_data)
45
56
 
57
+
58
+
46
59
  response_201.append(response_201_item)
47
60
 
48
61
  return response_201
@@ -50,6 +63,8 @@ def _parse_response(
50
63
  if response.status_code == 400:
51
64
  response_400 = HttpValidationProblemDetails.from_dict(response.json())
52
65
 
66
+
67
+
53
68
  return response_400
54
69
 
55
70
  if response.status_code == 404:
@@ -62,9 +77,7 @@ def _parse_response(
62
77
  return None
63
78
 
64
79
 
65
- def _build_response(
66
- *, client: Union[AuthenticatedClient, Client], response: httpx.Response
67
- ) -> Response[Union[Any, HttpValidationProblemDetails, list["RecordRelation"]]]:
80
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Union[Any, HttpValidationProblemDetails, list['RecordRelation']]]:
68
81
  return Response(
69
82
  status_code=HTTPStatus(response.status_code),
70
83
  content=response.content,
@@ -77,9 +90,10 @@ def sync_detailed(
77
90
  record_id: str,
78
91
  *,
79
92
  client: Union[AuthenticatedClient, Client],
80
- body: list["RecordRelationDto"],
81
- ) -> Response[Union[Any, HttpValidationProblemDetails, list["RecordRelation"]]]:
82
- """
93
+ body: list['RecordRelationDto'],
94
+
95
+ ) -> Response[Union[Any, HttpValidationProblemDetails, list['RecordRelation']]]:
96
+ """
83
97
  Args:
84
98
  record_id (str):
85
99
  body (list['RecordRelationDto']):
@@ -90,11 +104,13 @@ def sync_detailed(
90
104
 
91
105
  Returns:
92
106
  Response[Union[Any, HttpValidationProblemDetails, list['RecordRelation']]]
93
- """
107
+ """
108
+
94
109
 
95
110
  kwargs = _get_kwargs(
96
111
  record_id=record_id,
97
- body=body,
112
+ body=body,
113
+
98
114
  )
99
115
 
100
116
  response = client.get_httpx_client().request(
@@ -103,14 +119,14 @@ def sync_detailed(
103
119
 
104
120
  return _build_response(client=client, response=response)
105
121
 
106
-
107
122
  def sync(
108
123
  record_id: str,
109
124
  *,
110
125
  client: Union[AuthenticatedClient, Client],
111
- body: list["RecordRelationDto"],
112
- ) -> Optional[Union[Any, HttpValidationProblemDetails, list["RecordRelation"]]]:
113
- """
126
+ body: list['RecordRelationDto'],
127
+
128
+ ) -> Optional[Union[Any, HttpValidationProblemDetails, list['RecordRelation']]]:
129
+ """
114
130
  Args:
115
131
  record_id (str):
116
132
  body (list['RecordRelationDto']):
@@ -121,22 +137,24 @@ def sync(
121
137
 
122
138
  Returns:
123
139
  Union[Any, HttpValidationProblemDetails, list['RecordRelation']]
124
- """
140
+ """
141
+
125
142
 
126
143
  return sync_detailed(
127
144
  record_id=record_id,
128
- client=client,
129
- body=body,
130
- ).parsed
145
+ client=client,
146
+ body=body,
131
147
 
148
+ ).parsed
132
149
 
133
150
  async def asyncio_detailed(
134
151
  record_id: str,
135
152
  *,
136
153
  client: Union[AuthenticatedClient, Client],
137
- body: list["RecordRelationDto"],
138
- ) -> Response[Union[Any, HttpValidationProblemDetails, list["RecordRelation"]]]:
139
- """
154
+ body: list['RecordRelationDto'],
155
+
156
+ ) -> Response[Union[Any, HttpValidationProblemDetails, list['RecordRelation']]]:
157
+ """
140
158
  Args:
141
159
  record_id (str):
142
160
  body (list['RecordRelationDto']):
@@ -147,25 +165,29 @@ async def asyncio_detailed(
147
165
 
148
166
  Returns:
149
167
  Response[Union[Any, HttpValidationProblemDetails, list['RecordRelation']]]
150
- """
168
+ """
169
+
151
170
 
152
171
  kwargs = _get_kwargs(
153
172
  record_id=record_id,
154
- body=body,
173
+ body=body,
174
+
155
175
  )
156
176
 
157
- response = await client.get_async_httpx_client().request(**kwargs)
177
+ response = await client.get_async_httpx_client().request(
178
+ **kwargs
179
+ )
158
180
 
159
181
  return _build_response(client=client, response=response)
160
182
 
161
-
162
183
  async def asyncio(
163
184
  record_id: str,
164
185
  *,
165
186
  client: Union[AuthenticatedClient, Client],
166
- body: list["RecordRelationDto"],
167
- ) -> Optional[Union[Any, HttpValidationProblemDetails, list["RecordRelation"]]]:
168
- """
187
+ body: list['RecordRelationDto'],
188
+
189
+ ) -> Optional[Union[Any, HttpValidationProblemDetails, list['RecordRelation']]]:
190
+ """
169
191
  Args:
170
192
  record_id (str):
171
193
  body (list['RecordRelationDto']):
@@ -176,12 +198,12 @@ async def asyncio(
176
198
 
177
199
  Returns:
178
200
  Union[Any, HttpValidationProblemDetails, list['RecordRelation']]
179
- """
180
-
181
- return (
182
- await asyncio_detailed(
183
- record_id=record_id,
184
- client=client,
185
- body=body,
186
- )
187
- ).parsed
201
+ """
202
+
203
+
204
+ return (await asyncio_detailed(
205
+ record_id=record_id,
206
+ client=client,
207
+ body=body,
208
+
209
+ )).parsed
@@ -1,22 +1,31 @@
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.create_record_command import CreateRecordCommand
9
11
  from ...models.http_validation_problem_details import HttpValidationProblemDetails
10
12
  from ...models.record import Record
11
- from ...types import Response
13
+ from typing import cast
14
+
12
15
 
13
16
 
14
17
  def _get_kwargs(
15
18
  *,
16
19
  body: CreateRecordCommand,
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": "post",
22
31
  "url": "/api/Records",
@@ -24,23 +33,27 @@ def _get_kwargs(
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
- def _parse_response(
34
- *, client: Union[AuthenticatedClient, Client], response: httpx.Response
35
- ) -> Optional[Union[HttpValidationProblemDetails, Record]]:
43
+
44
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[Union[HttpValidationProblemDetails, Record]]:
36
45
  if response.status_code == 201:
37
46
  response_201 = Record.from_dict(response.json())
38
47
 
48
+
49
+
39
50
  return response_201
40
51
 
41
52
  if response.status_code == 400:
42
53
  response_400 = HttpValidationProblemDetails.from_dict(response.json())
43
54
 
55
+
56
+
44
57
  return response_400
45
58
 
46
59
  if client.raise_on_unexpected_status:
@@ -49,9 +62,7 @@ def _parse_response(
49
62
  return None
50
63
 
51
64
 
52
- def _build_response(
53
- *, client: Union[AuthenticatedClient, Client], response: httpx.Response
54
- ) -> Response[Union[HttpValidationProblemDetails, Record]]:
65
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[Union[HttpValidationProblemDetails, Record]]:
55
66
  return Response(
56
67
  status_code=HTTPStatus(response.status_code),
57
68
  content=response.content,
@@ -64,8 +75,9 @@ def sync_detailed(
64
75
  *,
65
76
  client: Union[AuthenticatedClient, Client],
66
77
  body: CreateRecordCommand,
78
+
67
79
  ) -> Response[Union[HttpValidationProblemDetails, Record]]:
68
- """
80
+ """
69
81
  Args:
70
82
  body (CreateRecordCommand):
71
83
 
@@ -75,10 +87,12 @@ def sync_detailed(
75
87
 
76
88
  Returns:
77
89
  Response[Union[HttpValidationProblemDetails, Record]]
78
- """
90
+ """
91
+
79
92
 
80
93
  kwargs = _get_kwargs(
81
94
  body=body,
95
+
82
96
  )
83
97
 
84
98
  response = client.get_httpx_client().request(
@@ -87,13 +101,13 @@ def sync_detailed(
87
101
 
88
102
  return _build_response(client=client, response=response)
89
103
 
90
-
91
104
  def sync(
92
105
  *,
93
106
  client: Union[AuthenticatedClient, Client],
94
107
  body: CreateRecordCommand,
108
+
95
109
  ) -> Optional[Union[HttpValidationProblemDetails, Record]]:
96
- """
110
+ """
97
111
  Args:
98
112
  body (CreateRecordCommand):
99
113
 
@@ -103,20 +117,22 @@ def sync(
103
117
 
104
118
  Returns:
105
119
  Union[HttpValidationProblemDetails, Record]
106
- """
120
+ """
121
+
107
122
 
108
123
  return sync_detailed(
109
124
  client=client,
110
- body=body,
111
- ).parsed
125
+ body=body,
112
126
 
127
+ ).parsed
113
128
 
114
129
  async def asyncio_detailed(
115
130
  *,
116
131
  client: Union[AuthenticatedClient, Client],
117
132
  body: CreateRecordCommand,
133
+
118
134
  ) -> Response[Union[HttpValidationProblemDetails, Record]]:
119
- """
135
+ """
120
136
  Args:
121
137
  body (CreateRecordCommand):
122
138
 
@@ -126,23 +142,27 @@ async def asyncio_detailed(
126
142
 
127
143
  Returns:
128
144
  Response[Union[HttpValidationProblemDetails, Record]]
129
- """
145
+ """
146
+
130
147
 
131
148
  kwargs = _get_kwargs(
132
149
  body=body,
150
+
133
151
  )
134
152
 
135
- response = await client.get_async_httpx_client().request(**kwargs)
153
+ response = await client.get_async_httpx_client().request(
154
+ **kwargs
155
+ )
136
156
 
137
157
  return _build_response(client=client, response=response)
138
158
 
139
-
140
159
  async def asyncio(
141
160
  *,
142
161
  client: Union[AuthenticatedClient, Client],
143
162
  body: CreateRecordCommand,
163
+
144
164
  ) -> Optional[Union[HttpValidationProblemDetails, Record]]:
145
- """
165
+ """
146
166
  Args:
147
167
  body (CreateRecordCommand):
148
168
 
@@ -152,11 +172,11 @@ async def asyncio(
152
172
 
153
173
  Returns:
154
174
  Union[HttpValidationProblemDetails, Record]
155
- """
175
+ """
156
176
 
157
- return (
158
- await asyncio_detailed(
159
- client=client,
160
- body=body,
161
- )
162
- ).parsed
177
+
178
+ return (await asyncio_detailed(
179
+ client=client,
180
+ body=body,
181
+
182
+ )).parsed