minikai 0.1.7__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 (100) 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 +196 -0
  5. minikai/api/groups/add_users_to_group.py +196 -0
  6. minikai/api/groups/create_group.py +178 -0
  7. minikai/api/groups/delete_group.py +115 -0
  8. minikai/api/groups/get_group.py +170 -0
  9. minikai/api/groups/get_group_minis.py +175 -0
  10. minikai/api/groups/get_group_users.py +175 -0
  11. minikai/api/groups/get_groups.py +150 -0
  12. minikai/api/groups/remove_minis_from_group.py +196 -0
  13. minikai/api/groups/remove_users_from_group.py +196 -0
  14. minikai/api/groups/update_group.py +195 -0
  15. minikai/api/minis/__init__.py +1 -0
  16. minikai/api/minis/create_mini.py +178 -0
  17. minikai/api/minis/delete_mini.py +115 -0
  18. minikai/api/minis/get_external_mini.py +183 -0
  19. minikai/api/minis/get_minis.py +150 -0
  20. minikai/api/minis/patch_mini.py +195 -0
  21. minikai/api/minis/update_mini.py +195 -0
  22. minikai/api/records/__init__.py +1 -0
  23. minikai/api/records/add_attachments.py +203 -0
  24. minikai/api/records/add_relations.py +209 -0
  25. minikai/api/records/create_record.py +182 -0
  26. minikai/api/records/delete_record.py +115 -0
  27. minikai/api/records/download_attachment.py +119 -0
  28. minikai/api/records/get_created_by.py +202 -0
  29. minikai/api/records/get_labels.py +194 -0
  30. minikai/api/records/get_records_by_external.py +248 -0
  31. minikai/api/records/get_states.py +194 -0
  32. minikai/api/records/get_updated_by.py +202 -0
  33. minikai/api/records/remove_attachments.py +132 -0
  34. minikai/api/records/remove_relations.py +132 -0
  35. minikai/api/records/update_attachments.py +203 -0
  36. minikai/api/records/update_record.py +199 -0
  37. minikai/api/records/update_relations.py +209 -0
  38. minikai/api/records/upsert_records_by_external_uri.py +182 -0
  39. minikai/api/users/__init__.py +1 -0
  40. minikai/api/users/delete_api_users_minis.py +122 -0
  41. minikai/api/users/get_api_users_minis.py +175 -0
  42. minikai/api/users/get_users.py +150 -0
  43. minikai/api/users/post_api_users_minis.py +187 -0
  44. minikai/client.py +271 -0
  45. minikai/errors.py +14 -0
  46. minikai/models/__init__.py +103 -0
  47. minikai/models/add_attachments_body.py +140 -0
  48. minikai/models/batch_upsert_result.py +124 -0
  49. minikai/models/create_group_command.py +127 -0
  50. minikai/models/create_mini_command.py +144 -0
  51. minikai/models/create_record_command.py +263 -0
  52. minikai/models/create_record_command_tags.py +63 -0
  53. minikai/models/cursor_paginated_list_of_record_dto.py +122 -0
  54. minikai/models/document_file_dto.py +171 -0
  55. minikai/models/document_file_metadata_dto.py +72 -0
  56. minikai/models/failed_upsert_item.py +83 -0
  57. minikai/models/form_field.py +138 -0
  58. minikai/models/form_field_dto.py +181 -0
  59. minikai/models/form_field_type.py +10 -0
  60. minikai/models/group_dto.py +155 -0
  61. minikai/models/http_validation_problem_details.py +198 -0
  62. minikai/models/http_validation_problem_details_errors.py +74 -0
  63. minikai/models/mini_dto.py +224 -0
  64. minikai/models/mini_template_dto.py +167 -0
  65. minikai/models/paginated_list_of_record_dto.py +124 -0
  66. minikai/models/patch_mini_command.py +102 -0
  67. minikai/models/problem_details.py +174 -0
  68. minikai/models/record.py +441 -0
  69. minikai/models/record_attachment.py +265 -0
  70. minikai/models/record_attachment_dto.py +265 -0
  71. minikai/models/record_attachment_dto_metadata_type_0.py +63 -0
  72. minikai/models/record_attachment_metadata_type_0.py +63 -0
  73. minikai/models/record_authorization.py +107 -0
  74. minikai/models/record_authorization_dto.py +107 -0
  75. minikai/models/record_dto.py +385 -0
  76. minikai/models/record_dto_tags.py +63 -0
  77. minikai/models/record_relation.py +105 -0
  78. minikai/models/record_relation_dto.py +105 -0
  79. minikai/models/record_state.py +10 -0
  80. minikai/models/record_tag.py +159 -0
  81. minikai/models/record_tag_dto.py +68 -0
  82. minikai/models/slim_mini_dto.py +197 -0
  83. minikai/models/tool_dto.py +95 -0
  84. minikai/models/update_attachments_body.py +140 -0
  85. minikai/models/update_group_command.py +148 -0
  86. minikai/models/update_mini_command.py +153 -0
  87. minikai/models/update_mini_template_workspaces_command.py +74 -0
  88. minikai/models/update_record_command.py +274 -0
  89. minikai/models/update_record_command_tags.py +63 -0
  90. minikai/models/upsert_record_dto.py +275 -0
  91. minikai/models/upsert_record_dto_tags.py +63 -0
  92. minikai/models/upsert_records_by_external_uri_command.py +79 -0
  93. minikai/models/user_dto.py +215 -0
  94. minikai/models/user_to_mini_dto.py +99 -0
  95. minikai/models/workspace_dto.py +99 -0
  96. minikai/py.typed +1 -0
  97. minikai/types.py +53 -0
  98. minikai-0.1.7.dist-info/METADATA +133 -0
  99. minikai-0.1.7.dist-info/RECORD +100 -0
  100. minikai-0.1.7.dist-info/WHEEL +4 -0
@@ -0,0 +1,202 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Optional, Union, cast
3
+
4
+ import httpx
5
+
6
+ from ...client import AuthenticatedClient, Client
7
+ from ...types import Response, UNSET
8
+ from ... import errors
9
+
10
+ from ...models.user_dto import UserDto
11
+ from ...types import UNSET, Unset
12
+ from typing import cast
13
+ from typing import cast, Union
14
+ from typing import Union
15
+
16
+
17
+
18
+ def _get_kwargs(
19
+ *,
20
+ mini_id: str,
21
+ session_id: Union[None, Unset, str] = UNSET,
22
+
23
+ ) -> dict[str, Any]:
24
+
25
+
26
+
27
+
28
+ params: dict[str, Any] = {}
29
+
30
+ params["miniId"] = mini_id
31
+
32
+ json_session_id: Union[None, Unset, str]
33
+ if isinstance(session_id, Unset):
34
+ json_session_id = UNSET
35
+ else:
36
+ json_session_id = session_id
37
+ params["sessionId"] = json_session_id
38
+
39
+
40
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
41
+
42
+
43
+ _kwargs: dict[str, Any] = {
44
+ "method": "get",
45
+ "url": "/api/Records/filters/created-by",
46
+ "params": params,
47
+ }
48
+
49
+
50
+ return _kwargs
51
+
52
+
53
+
54
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[list['UserDto']]:
55
+ if response.status_code == 200:
56
+ response_200 = []
57
+ _response_200 = response.json()
58
+ for response_200_item_data in (_response_200):
59
+ response_200_item = UserDto.from_dict(response_200_item_data)
60
+
61
+
62
+
63
+ response_200.append(response_200_item)
64
+
65
+ return response_200
66
+
67
+ if client.raise_on_unexpected_status:
68
+ raise errors.UnexpectedStatus(response.status_code, response.content)
69
+ else:
70
+ return None
71
+
72
+
73
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[list['UserDto']]:
74
+ return Response(
75
+ status_code=HTTPStatus(response.status_code),
76
+ content=response.content,
77
+ headers=response.headers,
78
+ parsed=_parse_response(client=client, response=response),
79
+ )
80
+
81
+
82
+ def sync_detailed(
83
+ *,
84
+ client: Union[AuthenticatedClient, Client],
85
+ mini_id: str,
86
+ session_id: Union[None, Unset, str] = UNSET,
87
+
88
+ ) -> Response[list['UserDto']]:
89
+ """
90
+ Args:
91
+ mini_id (str):
92
+ session_id (Union[None, Unset, str]):
93
+
94
+ Raises:
95
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
96
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
97
+
98
+ Returns:
99
+ Response[list['UserDto']]
100
+ """
101
+
102
+
103
+ kwargs = _get_kwargs(
104
+ mini_id=mini_id,
105
+ session_id=session_id,
106
+
107
+ )
108
+
109
+ response = client.get_httpx_client().request(
110
+ **kwargs,
111
+ )
112
+
113
+ return _build_response(client=client, response=response)
114
+
115
+ def sync(
116
+ *,
117
+ client: Union[AuthenticatedClient, Client],
118
+ mini_id: str,
119
+ session_id: Union[None, Unset, str] = UNSET,
120
+
121
+ ) -> Optional[list['UserDto']]:
122
+ """
123
+ Args:
124
+ mini_id (str):
125
+ session_id (Union[None, Unset, str]):
126
+
127
+ Raises:
128
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
129
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
130
+
131
+ Returns:
132
+ list['UserDto']
133
+ """
134
+
135
+
136
+ return sync_detailed(
137
+ client=client,
138
+ mini_id=mini_id,
139
+ session_id=session_id,
140
+
141
+ ).parsed
142
+
143
+ async def asyncio_detailed(
144
+ *,
145
+ client: Union[AuthenticatedClient, Client],
146
+ mini_id: str,
147
+ session_id: Union[None, Unset, str] = UNSET,
148
+
149
+ ) -> Response[list['UserDto']]:
150
+ """
151
+ Args:
152
+ mini_id (str):
153
+ session_id (Union[None, Unset, str]):
154
+
155
+ Raises:
156
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
157
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
158
+
159
+ Returns:
160
+ Response[list['UserDto']]
161
+ """
162
+
163
+
164
+ kwargs = _get_kwargs(
165
+ mini_id=mini_id,
166
+ session_id=session_id,
167
+
168
+ )
169
+
170
+ response = await client.get_async_httpx_client().request(
171
+ **kwargs
172
+ )
173
+
174
+ return _build_response(client=client, response=response)
175
+
176
+ async def asyncio(
177
+ *,
178
+ client: Union[AuthenticatedClient, Client],
179
+ mini_id: str,
180
+ session_id: Union[None, Unset, str] = UNSET,
181
+
182
+ ) -> Optional[list['UserDto']]:
183
+ """
184
+ Args:
185
+ mini_id (str):
186
+ session_id (Union[None, Unset, str]):
187
+
188
+ Raises:
189
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
190
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
191
+
192
+ Returns:
193
+ list['UserDto']
194
+ """
195
+
196
+
197
+ return (await asyncio_detailed(
198
+ client=client,
199
+ mini_id=mini_id,
200
+ session_id=session_id,
201
+
202
+ )).parsed
@@ -0,0 +1,194 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Optional, Union, cast
3
+
4
+ import httpx
5
+
6
+ from ...client import AuthenticatedClient, Client
7
+ from ...types import Response, UNSET
8
+ from ... import errors
9
+
10
+ from ...types import UNSET, Unset
11
+ from typing import cast
12
+ from typing import cast, Union
13
+ from typing import Union
14
+
15
+
16
+
17
+ def _get_kwargs(
18
+ *,
19
+ mini_id: str,
20
+ session_id: Union[None, Unset, str] = UNSET,
21
+
22
+ ) -> dict[str, Any]:
23
+
24
+
25
+
26
+
27
+ params: dict[str, Any] = {}
28
+
29
+ params["miniId"] = mini_id
30
+
31
+ json_session_id: Union[None, Unset, str]
32
+ if isinstance(session_id, Unset):
33
+ json_session_id = UNSET
34
+ else:
35
+ json_session_id = session_id
36
+ params["sessionId"] = json_session_id
37
+
38
+
39
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
40
+
41
+
42
+ _kwargs: dict[str, Any] = {
43
+ "method": "get",
44
+ "url": "/api/Records/filters/labels",
45
+ "params": params,
46
+ }
47
+
48
+
49
+ return _kwargs
50
+
51
+
52
+
53
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[list[str]]:
54
+ if response.status_code == 200:
55
+ response_200 = cast(list[str], response.json())
56
+
57
+ return response_200
58
+
59
+ if client.raise_on_unexpected_status:
60
+ raise errors.UnexpectedStatus(response.status_code, response.content)
61
+ else:
62
+ return None
63
+
64
+
65
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[list[str]]:
66
+ return Response(
67
+ status_code=HTTPStatus(response.status_code),
68
+ content=response.content,
69
+ headers=response.headers,
70
+ parsed=_parse_response(client=client, response=response),
71
+ )
72
+
73
+
74
+ def sync_detailed(
75
+ *,
76
+ client: Union[AuthenticatedClient, Client],
77
+ mini_id: str,
78
+ session_id: Union[None, Unset, str] = UNSET,
79
+
80
+ ) -> Response[list[str]]:
81
+ """
82
+ Args:
83
+ mini_id (str):
84
+ session_id (Union[None, Unset, str]):
85
+
86
+ Raises:
87
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
88
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
89
+
90
+ Returns:
91
+ Response[list[str]]
92
+ """
93
+
94
+
95
+ kwargs = _get_kwargs(
96
+ mini_id=mini_id,
97
+ session_id=session_id,
98
+
99
+ )
100
+
101
+ response = client.get_httpx_client().request(
102
+ **kwargs,
103
+ )
104
+
105
+ return _build_response(client=client, response=response)
106
+
107
+ def sync(
108
+ *,
109
+ client: Union[AuthenticatedClient, Client],
110
+ mini_id: str,
111
+ session_id: Union[None, Unset, str] = UNSET,
112
+
113
+ ) -> Optional[list[str]]:
114
+ """
115
+ Args:
116
+ mini_id (str):
117
+ session_id (Union[None, Unset, str]):
118
+
119
+ Raises:
120
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
121
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
122
+
123
+ Returns:
124
+ list[str]
125
+ """
126
+
127
+
128
+ return sync_detailed(
129
+ client=client,
130
+ mini_id=mini_id,
131
+ session_id=session_id,
132
+
133
+ ).parsed
134
+
135
+ async def asyncio_detailed(
136
+ *,
137
+ client: Union[AuthenticatedClient, Client],
138
+ mini_id: str,
139
+ session_id: Union[None, Unset, str] = UNSET,
140
+
141
+ ) -> Response[list[str]]:
142
+ """
143
+ Args:
144
+ mini_id (str):
145
+ session_id (Union[None, Unset, str]):
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
+ Response[list[str]]
153
+ """
154
+
155
+
156
+ kwargs = _get_kwargs(
157
+ mini_id=mini_id,
158
+ session_id=session_id,
159
+
160
+ )
161
+
162
+ response = await client.get_async_httpx_client().request(
163
+ **kwargs
164
+ )
165
+
166
+ return _build_response(client=client, response=response)
167
+
168
+ async def asyncio(
169
+ *,
170
+ client: Union[AuthenticatedClient, Client],
171
+ mini_id: str,
172
+ session_id: Union[None, Unset, str] = UNSET,
173
+
174
+ ) -> Optional[list[str]]:
175
+ """
176
+ Args:
177
+ mini_id (str):
178
+ session_id (Union[None, Unset, str]):
179
+
180
+ Raises:
181
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
182
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
183
+
184
+ Returns:
185
+ list[str]
186
+ """
187
+
188
+
189
+ return (await asyncio_detailed(
190
+ client=client,
191
+ mini_id=mini_id,
192
+ session_id=session_id,
193
+
194
+ )).parsed
@@ -0,0 +1,248 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Optional, Union, cast
3
+
4
+ import httpx
5
+
6
+ from ...client import AuthenticatedClient, Client
7
+ from ...types import Response, UNSET
8
+ from ... import errors
9
+
10
+ from ...models.paginated_list_of_record_dto import PaginatedListOfRecordDto
11
+ from ...types import UNSET, Unset
12
+ from typing import cast
13
+ from typing import cast, Union
14
+ from typing import Union
15
+
16
+
17
+
18
+ def _get_kwargs(
19
+ *,
20
+ body: list[str],
21
+ mini_id: str,
22
+ session_id: Union[None, Unset, str] = UNSET,
23
+ page_number: Union[Unset, int] = 1,
24
+ page_size: Union[Unset, int] = 10,
25
+
26
+ ) -> dict[str, Any]:
27
+ headers: dict[str, Any] = {}
28
+
29
+
30
+
31
+
32
+ params: dict[str, Any] = {}
33
+
34
+ params["miniId"] = mini_id
35
+
36
+ json_session_id: Union[None, Unset, str]
37
+ if isinstance(session_id, Unset):
38
+ json_session_id = UNSET
39
+ else:
40
+ json_session_id = session_id
41
+ params["sessionId"] = json_session_id
42
+
43
+ params["pageNumber"] = page_number
44
+
45
+ params["pageSize"] = page_size
46
+
47
+
48
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
49
+
50
+
51
+ _kwargs: dict[str, Any] = {
52
+ "method": "post",
53
+ "url": "/api/Records/external",
54
+ "params": params,
55
+ }
56
+
57
+ _kwargs["json"] = body
58
+
59
+
60
+
61
+
62
+ headers["Content-Type"] = "application/json"
63
+
64
+ _kwargs["headers"] = headers
65
+ return _kwargs
66
+
67
+
68
+
69
+ def _parse_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Optional[PaginatedListOfRecordDto]:
70
+ if response.status_code == 200:
71
+ response_200 = PaginatedListOfRecordDto.from_dict(response.json())
72
+
73
+
74
+
75
+ return response_200
76
+
77
+ if client.raise_on_unexpected_status:
78
+ raise errors.UnexpectedStatus(response.status_code, response.content)
79
+ else:
80
+ return None
81
+
82
+
83
+ def _build_response(*, client: Union[AuthenticatedClient, Client], response: httpx.Response) -> Response[PaginatedListOfRecordDto]:
84
+ return Response(
85
+ status_code=HTTPStatus(response.status_code),
86
+ content=response.content,
87
+ headers=response.headers,
88
+ parsed=_parse_response(client=client, response=response),
89
+ )
90
+
91
+
92
+ def sync_detailed(
93
+ *,
94
+ client: Union[AuthenticatedClient, Client],
95
+ body: list[str],
96
+ mini_id: str,
97
+ session_id: Union[None, Unset, str] = UNSET,
98
+ page_number: Union[Unset, int] = 1,
99
+ page_size: Union[Unset, int] = 10,
100
+
101
+ ) -> Response[PaginatedListOfRecordDto]:
102
+ """
103
+ Args:
104
+ mini_id (str):
105
+ session_id (Union[None, Unset, str]):
106
+ page_number (Union[Unset, int]): Default: 1.
107
+ page_size (Union[Unset, int]): Default: 10.
108
+ body (list[str]):
109
+
110
+ Raises:
111
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
112
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
113
+
114
+ Returns:
115
+ Response[PaginatedListOfRecordDto]
116
+ """
117
+
118
+
119
+ kwargs = _get_kwargs(
120
+ body=body,
121
+ mini_id=mini_id,
122
+ session_id=session_id,
123
+ page_number=page_number,
124
+ page_size=page_size,
125
+
126
+ )
127
+
128
+ response = client.get_httpx_client().request(
129
+ **kwargs,
130
+ )
131
+
132
+ return _build_response(client=client, response=response)
133
+
134
+ def sync(
135
+ *,
136
+ client: Union[AuthenticatedClient, Client],
137
+ body: list[str],
138
+ mini_id: str,
139
+ session_id: Union[None, Unset, str] = UNSET,
140
+ page_number: Union[Unset, int] = 1,
141
+ page_size: Union[Unset, int] = 10,
142
+
143
+ ) -> Optional[PaginatedListOfRecordDto]:
144
+ """
145
+ Args:
146
+ mini_id (str):
147
+ session_id (Union[None, Unset, str]):
148
+ page_number (Union[Unset, int]): Default: 1.
149
+ page_size (Union[Unset, int]): Default: 10.
150
+ body (list[str]):
151
+
152
+ Raises:
153
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
154
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
155
+
156
+ Returns:
157
+ PaginatedListOfRecordDto
158
+ """
159
+
160
+
161
+ return sync_detailed(
162
+ client=client,
163
+ body=body,
164
+ mini_id=mini_id,
165
+ session_id=session_id,
166
+ page_number=page_number,
167
+ page_size=page_size,
168
+
169
+ ).parsed
170
+
171
+ async def asyncio_detailed(
172
+ *,
173
+ client: Union[AuthenticatedClient, Client],
174
+ body: list[str],
175
+ mini_id: str,
176
+ session_id: Union[None, Unset, str] = UNSET,
177
+ page_number: Union[Unset, int] = 1,
178
+ page_size: Union[Unset, int] = 10,
179
+
180
+ ) -> Response[PaginatedListOfRecordDto]:
181
+ """
182
+ Args:
183
+ mini_id (str):
184
+ session_id (Union[None, Unset, str]):
185
+ page_number (Union[Unset, int]): Default: 1.
186
+ page_size (Union[Unset, int]): Default: 10.
187
+ body (list[str]):
188
+
189
+ Raises:
190
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
191
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
192
+
193
+ Returns:
194
+ Response[PaginatedListOfRecordDto]
195
+ """
196
+
197
+
198
+ kwargs = _get_kwargs(
199
+ body=body,
200
+ mini_id=mini_id,
201
+ session_id=session_id,
202
+ page_number=page_number,
203
+ page_size=page_size,
204
+
205
+ )
206
+
207
+ response = await client.get_async_httpx_client().request(
208
+ **kwargs
209
+ )
210
+
211
+ return _build_response(client=client, response=response)
212
+
213
+ async def asyncio(
214
+ *,
215
+ client: Union[AuthenticatedClient, Client],
216
+ body: list[str],
217
+ mini_id: str,
218
+ session_id: Union[None, Unset, str] = UNSET,
219
+ page_number: Union[Unset, int] = 1,
220
+ page_size: Union[Unset, int] = 10,
221
+
222
+ ) -> Optional[PaginatedListOfRecordDto]:
223
+ """
224
+ Args:
225
+ mini_id (str):
226
+ session_id (Union[None, Unset, str]):
227
+ page_number (Union[Unset, int]): Default: 1.
228
+ page_size (Union[Unset, int]): Default: 10.
229
+ body (list[str]):
230
+
231
+ Raises:
232
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
233
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
234
+
235
+ Returns:
236
+ PaginatedListOfRecordDto
237
+ """
238
+
239
+
240
+ return (await asyncio_detailed(
241
+ client=client,
242
+ body=body,
243
+ mini_id=mini_id,
244
+ session_id=session_id,
245
+ page_number=page_number,
246
+ page_size=page_size,
247
+
248
+ )).parsed