smallestai 2.2.0__py3-none-any.whl → 3.0.1__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 smallestai might be problematic. Click here for more details.
- smallestai/__init__.py +95 -0
- smallestai/atoms/__init__.py +182 -0
- smallestai/atoms/api/__init__.py +12 -0
- smallestai/atoms/api/agent_templates_api.py +573 -0
- smallestai/atoms/api/agents_api.py +1465 -0
- smallestai/atoms/api/calls_api.py +320 -0
- smallestai/atoms/api/campaigns_api.py +1689 -0
- smallestai/atoms/api/knowledge_base_api.py +2271 -0
- smallestai/atoms/api/logs_api.py +305 -0
- smallestai/atoms/api/organization_api.py +285 -0
- smallestai/atoms/api/user_api.py +285 -0
- smallestai/atoms/api_client.py +797 -0
- smallestai/atoms/api_response.py +21 -0
- smallestai/atoms/atoms_client.py +560 -0
- smallestai/atoms/configuration.py +582 -0
- smallestai/atoms/exceptions.py +216 -0
- smallestai/atoms/models/__init__.py +72 -0
- smallestai/atoms/models/agent_dto.py +130 -0
- smallestai/atoms/models/agent_dto_language.py +91 -0
- smallestai/atoms/models/agent_dto_synthesizer.py +99 -0
- smallestai/atoms/models/agent_dto_synthesizer_voice_config.py +111 -0
- smallestai/atoms/models/api_response.py +89 -0
- smallestai/atoms/models/bad_request_error_response.py +89 -0
- smallestai/atoms/models/create_agent_from_template200_response.py +89 -0
- smallestai/atoms/models/create_agent_from_template_request.py +91 -0
- smallestai/atoms/models/create_agent_request.py +113 -0
- smallestai/atoms/models/create_agent_request_language.py +124 -0
- smallestai/atoms/models/create_agent_request_language_synthesizer.py +110 -0
- smallestai/atoms/models/create_agent_request_language_synthesizer_voice_config.py +137 -0
- smallestai/atoms/models/create_campaign201_response.py +93 -0
- smallestai/atoms/models/create_campaign201_response_data.py +104 -0
- smallestai/atoms/models/create_campaign_request.py +93 -0
- smallestai/atoms/models/create_knowledge_base201_response.py +89 -0
- smallestai/atoms/models/create_knowledge_base_request.py +89 -0
- smallestai/atoms/models/delete_agent200_response.py +87 -0
- smallestai/atoms/models/get_agent_by_id200_response.py +93 -0
- smallestai/atoms/models/get_agent_templates200_response.py +97 -0
- smallestai/atoms/models/get_agent_templates200_response_data_inner.py +97 -0
- smallestai/atoms/models/get_agents200_response.py +93 -0
- smallestai/atoms/models/get_agents200_response_data.py +101 -0
- smallestai/atoms/models/get_campaign_by_id200_response.py +93 -0
- smallestai/atoms/models/get_campaign_by_id200_response_data.py +110 -0
- smallestai/atoms/models/get_campaigns200_response.py +97 -0
- smallestai/atoms/models/get_campaigns200_response_data_inner.py +118 -0
- smallestai/atoms/models/get_campaigns200_response_data_inner_agent.py +89 -0
- smallestai/atoms/models/get_campaigns200_response_data_inner_audience.py +89 -0
- smallestai/atoms/models/get_campaigns_request.py +89 -0
- smallestai/atoms/models/get_conversation_logs200_response.py +93 -0
- smallestai/atoms/models/get_conversation_logs200_response_data.py +125 -0
- smallestai/atoms/models/get_current_user200_response.py +93 -0
- smallestai/atoms/models/get_current_user200_response_data.py +99 -0
- smallestai/atoms/models/get_knowledge_base_by_id200_response.py +93 -0
- smallestai/atoms/models/get_knowledge_base_items200_response.py +97 -0
- smallestai/atoms/models/get_knowledge_bases200_response.py +97 -0
- smallestai/atoms/models/get_organization200_response.py +93 -0
- smallestai/atoms/models/get_organization200_response_data.py +105 -0
- smallestai/atoms/models/get_organization200_response_data_members_inner.py +89 -0
- smallestai/atoms/models/get_organization200_response_data_subscription.py +87 -0
- smallestai/atoms/models/internal_server_error_response.py +89 -0
- smallestai/atoms/models/knowledge_base_dto.py +93 -0
- smallestai/atoms/models/knowledge_base_item_dto.py +124 -0
- smallestai/atoms/models/start_outbound_call200_response.py +93 -0
- smallestai/atoms/models/start_outbound_call200_response_data.py +87 -0
- smallestai/atoms/models/start_outbound_call_request.py +89 -0
- smallestai/atoms/models/unauthorized_error_reponse.py +89 -0
- smallestai/atoms/models/update_agent200_response.py +89 -0
- smallestai/atoms/models/update_agent_request.py +119 -0
- smallestai/atoms/models/update_agent_request_language.py +99 -0
- smallestai/atoms/models/update_agent_request_synthesizer.py +110 -0
- smallestai/atoms/models/update_agent_request_synthesizer_voice_config.py +137 -0
- smallestai/atoms/models/update_agent_request_synthesizer_voice_config_one_of.py +111 -0
- smallestai/atoms/models/update_agent_request_synthesizer_voice_config_one_of1.py +99 -0
- smallestai/atoms/models/upload_text_to_knowledge_base_request.py +89 -0
- smallestai/atoms/py.typed +0 -0
- smallestai/atoms/rest.py +258 -0
- smallestai/waves/__init__.py +5 -0
- smallest/async_tts.py → smallestai/waves/async_waves_client.py +3 -3
- {smallest → smallestai/waves}/stream_tts.py +6 -6
- {smallest → smallestai/waves}/utils.py +2 -2
- smallest/tts.py → smallestai/waves/waves_client.py +3 -3
- {smallestai-2.2.0.dist-info → smallestai-3.0.1.dist-info}/METADATA +182 -43
- smallestai-3.0.1.dist-info/RECORD +87 -0
- {smallestai-2.2.0.dist-info → smallestai-3.0.1.dist-info}/WHEEL +1 -1
- smallestai-3.0.1.dist-info/top_level.txt +1 -0
- smallest/__init__.py +0 -5
- smallestai-2.2.0.dist-info/RECORD +0 -12
- smallestai-2.2.0.dist-info/top_level.txt +0 -1
- {smallest → smallestai/waves}/exceptions.py +0 -0
- {smallest → smallestai/waves}/models.py +0 -0
- {smallestai-2.2.0.dist-info → smallestai-3.0.1.dist-info/licenses}/LICENSE +0 -0
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Agent Management API
|
|
5
|
+
|
|
6
|
+
API for managing agents, their templates, and call logs
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from pydantic import Field, StrictStr
|
|
20
|
+
from typing_extensions import Annotated
|
|
21
|
+
from smallestai.atoms.models.get_conversation_logs200_response import GetConversationLogs200Response
|
|
22
|
+
|
|
23
|
+
from smallestai.atoms.api_client import ApiClient, RequestSerialized
|
|
24
|
+
from smallestai.atoms.api_response import ApiResponse
|
|
25
|
+
from smallestai.atoms.rest import RESTResponseType
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class LogsApi:
|
|
29
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
30
|
+
Ref: https://openapi-generator.tech
|
|
31
|
+
|
|
32
|
+
Do not edit the class manually.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
def __init__(self, api_client=None) -> None:
|
|
36
|
+
if api_client is None:
|
|
37
|
+
api_client = ApiClient.get_default()
|
|
38
|
+
self.api_client = api_client
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
@validate_call
|
|
42
|
+
def get_conversation_logs(
|
|
43
|
+
self,
|
|
44
|
+
id: Annotated[StrictStr, Field(description="The callId of the conversation. You can get the callId from the conversation logs.")],
|
|
45
|
+
_request_timeout: Union[
|
|
46
|
+
None,
|
|
47
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
48
|
+
Tuple[
|
|
49
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
50
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
51
|
+
]
|
|
52
|
+
] = None,
|
|
53
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
54
|
+
_content_type: Optional[StrictStr] = None,
|
|
55
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
56
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
57
|
+
) -> GetConversationLogs200Response:
|
|
58
|
+
"""Get conversation logs
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
:param id: The callId of the conversation. You can get the callId from the conversation logs. (required)
|
|
62
|
+
:type id: str
|
|
63
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
64
|
+
number provided, it will be total request
|
|
65
|
+
timeout. It can also be a pair (tuple) of
|
|
66
|
+
(connection, read) timeouts.
|
|
67
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
68
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
69
|
+
request; this effectively ignores the
|
|
70
|
+
authentication in the spec for a single request.
|
|
71
|
+
:type _request_auth: dict, optional
|
|
72
|
+
:param _content_type: force content-type for the request.
|
|
73
|
+
:type _content_type: str, Optional
|
|
74
|
+
:param _headers: set to override the headers for a single
|
|
75
|
+
request; this effectively ignores the headers
|
|
76
|
+
in the spec for a single request.
|
|
77
|
+
:type _headers: dict, optional
|
|
78
|
+
:param _host_index: set to override the host_index for a single
|
|
79
|
+
request; this effectively ignores the host_index
|
|
80
|
+
in the spec for a single request.
|
|
81
|
+
:type _host_index: int, optional
|
|
82
|
+
:return: Returns the result object.
|
|
83
|
+
""" # noqa: E501
|
|
84
|
+
|
|
85
|
+
_param = self._get_conversation_logs_serialize(
|
|
86
|
+
id=id,
|
|
87
|
+
_request_auth=_request_auth,
|
|
88
|
+
_content_type=_content_type,
|
|
89
|
+
_headers=_headers,
|
|
90
|
+
_host_index=_host_index
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
94
|
+
'200': "GetConversationLogs200Response",
|
|
95
|
+
'400': "BadRequestErrorResponse",
|
|
96
|
+
'401': "UnauthorizedErrorReponse",
|
|
97
|
+
'500': "InternalServerErrorResponse",
|
|
98
|
+
}
|
|
99
|
+
response_data = self.api_client.call_api(
|
|
100
|
+
*_param,
|
|
101
|
+
_request_timeout=_request_timeout
|
|
102
|
+
)
|
|
103
|
+
response_data.read()
|
|
104
|
+
return self.api_client.response_deserialize(
|
|
105
|
+
response_data=response_data,
|
|
106
|
+
response_types_map=_response_types_map,
|
|
107
|
+
).data
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
@validate_call
|
|
111
|
+
def get_conversation_logs_with_http_info(
|
|
112
|
+
self,
|
|
113
|
+
id: Annotated[StrictStr, Field(description="The callId of the conversation. You can get the callId from the conversation logs.")],
|
|
114
|
+
_request_timeout: Union[
|
|
115
|
+
None,
|
|
116
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
117
|
+
Tuple[
|
|
118
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
119
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
120
|
+
]
|
|
121
|
+
] = None,
|
|
122
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
123
|
+
_content_type: Optional[StrictStr] = None,
|
|
124
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
125
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
126
|
+
) -> ApiResponse[GetConversationLogs200Response]:
|
|
127
|
+
"""Get conversation logs
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
:param id: The callId of the conversation. You can get the callId from the conversation logs. (required)
|
|
131
|
+
:type id: str
|
|
132
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
133
|
+
number provided, it will be total request
|
|
134
|
+
timeout. It can also be a pair (tuple) of
|
|
135
|
+
(connection, read) timeouts.
|
|
136
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
137
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
138
|
+
request; this effectively ignores the
|
|
139
|
+
authentication in the spec for a single request.
|
|
140
|
+
:type _request_auth: dict, optional
|
|
141
|
+
:param _content_type: force content-type for the request.
|
|
142
|
+
:type _content_type: str, Optional
|
|
143
|
+
:param _headers: set to override the headers for a single
|
|
144
|
+
request; this effectively ignores the headers
|
|
145
|
+
in the spec for a single request.
|
|
146
|
+
:type _headers: dict, optional
|
|
147
|
+
:param _host_index: set to override the host_index for a single
|
|
148
|
+
request; this effectively ignores the host_index
|
|
149
|
+
in the spec for a single request.
|
|
150
|
+
:type _host_index: int, optional
|
|
151
|
+
:return: Returns the result object.
|
|
152
|
+
""" # noqa: E501
|
|
153
|
+
|
|
154
|
+
_param = self._get_conversation_logs_serialize(
|
|
155
|
+
id=id,
|
|
156
|
+
_request_auth=_request_auth,
|
|
157
|
+
_content_type=_content_type,
|
|
158
|
+
_headers=_headers,
|
|
159
|
+
_host_index=_host_index
|
|
160
|
+
)
|
|
161
|
+
|
|
162
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
163
|
+
'200': "GetConversationLogs200Response",
|
|
164
|
+
'400': "BadRequestErrorResponse",
|
|
165
|
+
'401': "UnauthorizedErrorReponse",
|
|
166
|
+
'500': "InternalServerErrorResponse",
|
|
167
|
+
}
|
|
168
|
+
response_data = self.api_client.call_api(
|
|
169
|
+
*_param,
|
|
170
|
+
_request_timeout=_request_timeout
|
|
171
|
+
)
|
|
172
|
+
response_data.read()
|
|
173
|
+
return self.api_client.response_deserialize(
|
|
174
|
+
response_data=response_data,
|
|
175
|
+
response_types_map=_response_types_map,
|
|
176
|
+
)
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
@validate_call
|
|
180
|
+
def get_conversation_logs_without_preload_content(
|
|
181
|
+
self,
|
|
182
|
+
id: Annotated[StrictStr, Field(description="The callId of the conversation. You can get the callId from the conversation logs.")],
|
|
183
|
+
_request_timeout: Union[
|
|
184
|
+
None,
|
|
185
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
186
|
+
Tuple[
|
|
187
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
188
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
189
|
+
]
|
|
190
|
+
] = None,
|
|
191
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
192
|
+
_content_type: Optional[StrictStr] = None,
|
|
193
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
194
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
195
|
+
) -> RESTResponseType:
|
|
196
|
+
"""Get conversation logs
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
:param id: The callId of the conversation. You can get the callId from the conversation logs. (required)
|
|
200
|
+
:type id: str
|
|
201
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
202
|
+
number provided, it will be total request
|
|
203
|
+
timeout. It can also be a pair (tuple) of
|
|
204
|
+
(connection, read) timeouts.
|
|
205
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
206
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
207
|
+
request; this effectively ignores the
|
|
208
|
+
authentication in the spec for a single request.
|
|
209
|
+
:type _request_auth: dict, optional
|
|
210
|
+
:param _content_type: force content-type for the request.
|
|
211
|
+
:type _content_type: str, Optional
|
|
212
|
+
:param _headers: set to override the headers for a single
|
|
213
|
+
request; this effectively ignores the headers
|
|
214
|
+
in the spec for a single request.
|
|
215
|
+
:type _headers: dict, optional
|
|
216
|
+
:param _host_index: set to override the host_index for a single
|
|
217
|
+
request; this effectively ignores the host_index
|
|
218
|
+
in the spec for a single request.
|
|
219
|
+
:type _host_index: int, optional
|
|
220
|
+
:return: Returns the result object.
|
|
221
|
+
""" # noqa: E501
|
|
222
|
+
|
|
223
|
+
_param = self._get_conversation_logs_serialize(
|
|
224
|
+
id=id,
|
|
225
|
+
_request_auth=_request_auth,
|
|
226
|
+
_content_type=_content_type,
|
|
227
|
+
_headers=_headers,
|
|
228
|
+
_host_index=_host_index
|
|
229
|
+
)
|
|
230
|
+
|
|
231
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
232
|
+
'200': "GetConversationLogs200Response",
|
|
233
|
+
'400': "BadRequestErrorResponse",
|
|
234
|
+
'401': "UnauthorizedErrorReponse",
|
|
235
|
+
'500': "InternalServerErrorResponse",
|
|
236
|
+
}
|
|
237
|
+
response_data = self.api_client.call_api(
|
|
238
|
+
*_param,
|
|
239
|
+
_request_timeout=_request_timeout
|
|
240
|
+
)
|
|
241
|
+
return response_data.response
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
def _get_conversation_logs_serialize(
|
|
245
|
+
self,
|
|
246
|
+
id,
|
|
247
|
+
_request_auth,
|
|
248
|
+
_content_type,
|
|
249
|
+
_headers,
|
|
250
|
+
_host_index,
|
|
251
|
+
) -> RequestSerialized:
|
|
252
|
+
|
|
253
|
+
_host = None
|
|
254
|
+
|
|
255
|
+
_collection_formats: Dict[str, str] = {
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
_path_params: Dict[str, str] = {}
|
|
259
|
+
_query_params: List[Tuple[str, str]] = []
|
|
260
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
261
|
+
_form_params: List[Tuple[str, str]] = []
|
|
262
|
+
_files: Dict[
|
|
263
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
264
|
+
] = {}
|
|
265
|
+
_body_params: Optional[bytes] = None
|
|
266
|
+
|
|
267
|
+
# process the path parameters
|
|
268
|
+
if id is not None:
|
|
269
|
+
_path_params['id'] = id
|
|
270
|
+
# process the query parameters
|
|
271
|
+
# process the header parameters
|
|
272
|
+
# process the form parameters
|
|
273
|
+
# process the body parameter
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
# set the HTTP header `Accept`
|
|
277
|
+
if 'Accept' not in _header_params:
|
|
278
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
279
|
+
[
|
|
280
|
+
'application/json'
|
|
281
|
+
]
|
|
282
|
+
)
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
# authentication setting
|
|
286
|
+
_auth_settings: List[str] = [
|
|
287
|
+
'BearerAuth'
|
|
288
|
+
]
|
|
289
|
+
|
|
290
|
+
return self.api_client.param_serialize(
|
|
291
|
+
method='GET',
|
|
292
|
+
resource_path='/conversation/{id}',
|
|
293
|
+
path_params=_path_params,
|
|
294
|
+
query_params=_query_params,
|
|
295
|
+
header_params=_header_params,
|
|
296
|
+
body=_body_params,
|
|
297
|
+
post_params=_form_params,
|
|
298
|
+
files=_files,
|
|
299
|
+
auth_settings=_auth_settings,
|
|
300
|
+
collection_formats=_collection_formats,
|
|
301
|
+
_host=_host,
|
|
302
|
+
_request_auth=_request_auth
|
|
303
|
+
)
|
|
304
|
+
|
|
305
|
+
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Agent Management API
|
|
5
|
+
|
|
6
|
+
API for managing agents, their templates, and call logs
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from smallestai.atoms.models.get_organization200_response import GetOrganization200Response
|
|
20
|
+
|
|
21
|
+
from smallestai.atoms.api_client import ApiClient, RequestSerialized
|
|
22
|
+
from smallestai.atoms.api_response import ApiResponse
|
|
23
|
+
from smallestai.atoms.rest import RESTResponseType
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class OrganizationApi:
|
|
27
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
28
|
+
Ref: https://openapi-generator.tech
|
|
29
|
+
|
|
30
|
+
Do not edit the class manually.
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
def __init__(self, api_client=None) -> None:
|
|
34
|
+
if api_client is None:
|
|
35
|
+
api_client = ApiClient.get_default()
|
|
36
|
+
self.api_client = api_client
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
@validate_call
|
|
40
|
+
def get_organization(
|
|
41
|
+
self,
|
|
42
|
+
_request_timeout: Union[
|
|
43
|
+
None,
|
|
44
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
45
|
+
Tuple[
|
|
46
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
47
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
48
|
+
]
|
|
49
|
+
] = None,
|
|
50
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
51
|
+
_content_type: Optional[StrictStr] = None,
|
|
52
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
53
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
54
|
+
) -> GetOrganization200Response:
|
|
55
|
+
"""Get organization details
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
59
|
+
number provided, it will be total request
|
|
60
|
+
timeout. It can also be a pair (tuple) of
|
|
61
|
+
(connection, read) timeouts.
|
|
62
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
63
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
64
|
+
request; this effectively ignores the
|
|
65
|
+
authentication in the spec for a single request.
|
|
66
|
+
:type _request_auth: dict, optional
|
|
67
|
+
:param _content_type: force content-type for the request.
|
|
68
|
+
:type _content_type: str, Optional
|
|
69
|
+
:param _headers: set to override the headers for a single
|
|
70
|
+
request; this effectively ignores the headers
|
|
71
|
+
in the spec for a single request.
|
|
72
|
+
:type _headers: dict, optional
|
|
73
|
+
:param _host_index: set to override the host_index for a single
|
|
74
|
+
request; this effectively ignores the host_index
|
|
75
|
+
in the spec for a single request.
|
|
76
|
+
:type _host_index: int, optional
|
|
77
|
+
:return: Returns the result object.
|
|
78
|
+
""" # noqa: E501
|
|
79
|
+
|
|
80
|
+
_param = self._get_organization_serialize(
|
|
81
|
+
_request_auth=_request_auth,
|
|
82
|
+
_content_type=_content_type,
|
|
83
|
+
_headers=_headers,
|
|
84
|
+
_host_index=_host_index
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
88
|
+
'200': "GetOrganization200Response",
|
|
89
|
+
'401': "UnauthorizedErrorReponse",
|
|
90
|
+
'500': "InternalServerErrorResponse",
|
|
91
|
+
}
|
|
92
|
+
response_data = self.api_client.call_api(
|
|
93
|
+
*_param,
|
|
94
|
+
_request_timeout=_request_timeout
|
|
95
|
+
)
|
|
96
|
+
response_data.read()
|
|
97
|
+
return self.api_client.response_deserialize(
|
|
98
|
+
response_data=response_data,
|
|
99
|
+
response_types_map=_response_types_map,
|
|
100
|
+
).data
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
@validate_call
|
|
104
|
+
def get_organization_with_http_info(
|
|
105
|
+
self,
|
|
106
|
+
_request_timeout: Union[
|
|
107
|
+
None,
|
|
108
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
109
|
+
Tuple[
|
|
110
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
111
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
112
|
+
]
|
|
113
|
+
] = None,
|
|
114
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
115
|
+
_content_type: Optional[StrictStr] = None,
|
|
116
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
117
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
118
|
+
) -> ApiResponse[GetOrganization200Response]:
|
|
119
|
+
"""Get organization details
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
123
|
+
number provided, it will be total request
|
|
124
|
+
timeout. It can also be a pair (tuple) of
|
|
125
|
+
(connection, read) timeouts.
|
|
126
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
127
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
128
|
+
request; this effectively ignores the
|
|
129
|
+
authentication in the spec for a single request.
|
|
130
|
+
:type _request_auth: dict, optional
|
|
131
|
+
:param _content_type: force content-type for the request.
|
|
132
|
+
:type _content_type: str, Optional
|
|
133
|
+
:param _headers: set to override the headers for a single
|
|
134
|
+
request; this effectively ignores the headers
|
|
135
|
+
in the spec for a single request.
|
|
136
|
+
:type _headers: dict, optional
|
|
137
|
+
:param _host_index: set to override the host_index for a single
|
|
138
|
+
request; this effectively ignores the host_index
|
|
139
|
+
in the spec for a single request.
|
|
140
|
+
:type _host_index: int, optional
|
|
141
|
+
:return: Returns the result object.
|
|
142
|
+
""" # noqa: E501
|
|
143
|
+
|
|
144
|
+
_param = self._get_organization_serialize(
|
|
145
|
+
_request_auth=_request_auth,
|
|
146
|
+
_content_type=_content_type,
|
|
147
|
+
_headers=_headers,
|
|
148
|
+
_host_index=_host_index
|
|
149
|
+
)
|
|
150
|
+
|
|
151
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
152
|
+
'200': "GetOrganization200Response",
|
|
153
|
+
'401': "UnauthorizedErrorReponse",
|
|
154
|
+
'500': "InternalServerErrorResponse",
|
|
155
|
+
}
|
|
156
|
+
response_data = self.api_client.call_api(
|
|
157
|
+
*_param,
|
|
158
|
+
_request_timeout=_request_timeout
|
|
159
|
+
)
|
|
160
|
+
response_data.read()
|
|
161
|
+
return self.api_client.response_deserialize(
|
|
162
|
+
response_data=response_data,
|
|
163
|
+
response_types_map=_response_types_map,
|
|
164
|
+
)
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
@validate_call
|
|
168
|
+
def get_organization_without_preload_content(
|
|
169
|
+
self,
|
|
170
|
+
_request_timeout: Union[
|
|
171
|
+
None,
|
|
172
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
173
|
+
Tuple[
|
|
174
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
175
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
176
|
+
]
|
|
177
|
+
] = None,
|
|
178
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
179
|
+
_content_type: Optional[StrictStr] = None,
|
|
180
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
181
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
182
|
+
) -> RESTResponseType:
|
|
183
|
+
"""Get organization details
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
187
|
+
number provided, it will be total request
|
|
188
|
+
timeout. It can also be a pair (tuple) of
|
|
189
|
+
(connection, read) timeouts.
|
|
190
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
191
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
192
|
+
request; this effectively ignores the
|
|
193
|
+
authentication in the spec for a single request.
|
|
194
|
+
:type _request_auth: dict, optional
|
|
195
|
+
:param _content_type: force content-type for the request.
|
|
196
|
+
:type _content_type: str, Optional
|
|
197
|
+
:param _headers: set to override the headers for a single
|
|
198
|
+
request; this effectively ignores the headers
|
|
199
|
+
in the spec for a single request.
|
|
200
|
+
:type _headers: dict, optional
|
|
201
|
+
:param _host_index: set to override the host_index for a single
|
|
202
|
+
request; this effectively ignores the host_index
|
|
203
|
+
in the spec for a single request.
|
|
204
|
+
:type _host_index: int, optional
|
|
205
|
+
:return: Returns the result object.
|
|
206
|
+
""" # noqa: E501
|
|
207
|
+
|
|
208
|
+
_param = self._get_organization_serialize(
|
|
209
|
+
_request_auth=_request_auth,
|
|
210
|
+
_content_type=_content_type,
|
|
211
|
+
_headers=_headers,
|
|
212
|
+
_host_index=_host_index
|
|
213
|
+
)
|
|
214
|
+
|
|
215
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
216
|
+
'200': "GetOrganization200Response",
|
|
217
|
+
'401': "UnauthorizedErrorReponse",
|
|
218
|
+
'500': "InternalServerErrorResponse",
|
|
219
|
+
}
|
|
220
|
+
response_data = self.api_client.call_api(
|
|
221
|
+
*_param,
|
|
222
|
+
_request_timeout=_request_timeout
|
|
223
|
+
)
|
|
224
|
+
return response_data.response
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
def _get_organization_serialize(
|
|
228
|
+
self,
|
|
229
|
+
_request_auth,
|
|
230
|
+
_content_type,
|
|
231
|
+
_headers,
|
|
232
|
+
_host_index,
|
|
233
|
+
) -> RequestSerialized:
|
|
234
|
+
|
|
235
|
+
_host = None
|
|
236
|
+
|
|
237
|
+
_collection_formats: Dict[str, str] = {
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
_path_params: Dict[str, str] = {}
|
|
241
|
+
_query_params: List[Tuple[str, str]] = []
|
|
242
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
243
|
+
_form_params: List[Tuple[str, str]] = []
|
|
244
|
+
_files: Dict[
|
|
245
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
246
|
+
] = {}
|
|
247
|
+
_body_params: Optional[bytes] = None
|
|
248
|
+
|
|
249
|
+
# process the path parameters
|
|
250
|
+
# process the query parameters
|
|
251
|
+
# process the header parameters
|
|
252
|
+
# process the form parameters
|
|
253
|
+
# process the body parameter
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
# set the HTTP header `Accept`
|
|
257
|
+
if 'Accept' not in _header_params:
|
|
258
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
259
|
+
[
|
|
260
|
+
'application/json'
|
|
261
|
+
]
|
|
262
|
+
)
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
# authentication setting
|
|
266
|
+
_auth_settings: List[str] = [
|
|
267
|
+
'BearerAuth'
|
|
268
|
+
]
|
|
269
|
+
|
|
270
|
+
return self.api_client.param_serialize(
|
|
271
|
+
method='GET',
|
|
272
|
+
resource_path='/organization',
|
|
273
|
+
path_params=_path_params,
|
|
274
|
+
query_params=_query_params,
|
|
275
|
+
header_params=_header_params,
|
|
276
|
+
body=_body_params,
|
|
277
|
+
post_params=_form_params,
|
|
278
|
+
files=_files,
|
|
279
|
+
auth_settings=_auth_settings,
|
|
280
|
+
collection_formats=_collection_formats,
|
|
281
|
+
_host=_host,
|
|
282
|
+
_request_auth=_request_auth
|
|
283
|
+
)
|
|
284
|
+
|
|
285
|
+
|