ultracart-rest-sdk 4.1.49__py3-none-any.whl → 4.1.54__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.
Files changed (33) hide show
  1. ultracart/__init__.py +1 -1
  2. ultracart/api/conversation_api.py +292 -0
  3. ultracart/api_client.py +1 -1
  4. ultracart/configuration.py +1 -1
  5. ultracart/model/conversation_pbx_agent.py +21 -4
  6. ultracart/model/conversation_pbx_call.py +370 -0
  7. ultracart/model/conversation_pbx_call_agent.py +296 -0
  8. ultracart/model/conversation_pbx_call_ai_cost.py +276 -0
  9. ultracart/model/conversation_pbx_call_ai_engagement.py +314 -0
  10. ultracart/model/conversation_pbx_call_ai_tool_call.py +296 -0
  11. ultracart/model/conversation_pbx_call_ai_whisper.py +276 -0
  12. ultracart/model/conversation_pbx_call_caller.py +280 -0
  13. ultracart/model/conversation_pbx_call_financial.py +288 -0
  14. ultracart/model/conversation_pbx_call_hold.py +276 -0
  15. ultracart/model/conversation_pbx_call_queue.py +284 -0
  16. ultracart/model/conversation_pbx_call_recording.py +294 -0
  17. ultracart/model/conversation_pbx_call_response.py +292 -0
  18. ultracart/model/conversation_pbx_call_routing.py +278 -0
  19. ultracart/model/conversation_pbx_call_search_request.py +324 -0
  20. ultracart/model/conversation_pbx_call_search_response.py +292 -0
  21. ultracart/model/conversation_pbx_call_timeline.py +284 -0
  22. ultracart/model/conversation_pbx_call_transcript.py +294 -0
  23. ultracart/model/conversation_pbx_call_transcript_segment.py +292 -0
  24. ultracart/model/conversation_pbx_call_transfer.py +280 -0
  25. ultracart/model/conversation_pbx_hardware_phone.py +21 -2
  26. ultracart/model/conversation_pbx_phone_number.py +4 -0
  27. ultracart/model/conversation_pbx_queue.py +4 -0
  28. ultracart/models/__init__.py +19 -0
  29. {ultracart_rest_sdk-4.1.49.dist-info → ultracart_rest_sdk-4.1.54.dist-info}/METADATA +1 -1
  30. {ultracart_rest_sdk-4.1.49.dist-info → ultracart_rest_sdk-4.1.54.dist-info}/RECORD +33 -14
  31. {ultracart_rest_sdk-4.1.49.dist-info → ultracart_rest_sdk-4.1.54.dist-info}/LICENSE +0 -0
  32. {ultracart_rest_sdk-4.1.49.dist-info → ultracart_rest_sdk-4.1.54.dist-info}/WHEEL +0 -0
  33. {ultracart_rest_sdk-4.1.49.dist-info → ultracart_rest_sdk-4.1.54.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,294 @@
1
+ """
2
+ UltraCart Rest API V2
3
+
4
+ UltraCart REST API Version 2 # noqa: E501
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import re # noqa: F401
13
+ import sys # noqa: F401
14
+
15
+ from ultracart.model_utils import ( # noqa: F401
16
+ ApiTypeError,
17
+ ModelComposed,
18
+ ModelNormal,
19
+ ModelSimple,
20
+ cached_property,
21
+ change_keys_js_to_python,
22
+ convert_js_args_to_python_args,
23
+ date,
24
+ datetime,
25
+ file_type,
26
+ none_type,
27
+ validate_get_composed_info,
28
+ OpenApiModel
29
+ )
30
+ from ultracart.exceptions import ApiAttributeError
31
+
32
+
33
+ def lazy_import():
34
+ from ultracart.model.conversation_pbx_call_transcript_segment import ConversationPbxCallTranscriptSegment
35
+ globals()['ConversationPbxCallTranscriptSegment'] = ConversationPbxCallTranscriptSegment
36
+
37
+
38
+ class ConversationPbxCallTranscript(ModelNormal):
39
+ """NOTE: This class is auto generated by OpenAPI Generator.
40
+ Ref: https://openapi-generator.tech
41
+
42
+ Do not edit the class manually.
43
+
44
+ Attributes:
45
+ allowed_values (dict): The key is the tuple path to the attribute
46
+ and the for var_name this is (var_name,). The value is a dict
47
+ with a capitalized key describing the allowed value and an allowed
48
+ value. These dicts store the allowed enum values.
49
+ attribute_map (dict): The key is attribute name
50
+ and the value is json key in definition.
51
+ discriminator_value_class_map (dict): A dict to go from the discriminator
52
+ variable value to the discriminator class name.
53
+ validations (dict): The key is the tuple path to the attribute
54
+ and the for var_name this is (var_name,). The value is a dict
55
+ that stores validations for max_length, min_length, max_items,
56
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
57
+ inclusive_minimum, and regex.
58
+ additional_properties_type (tuple): A tuple of classes accepted
59
+ as additional properties values.
60
+ """
61
+
62
+ allowed_values = {
63
+ }
64
+
65
+ validations = {
66
+ }
67
+
68
+ @cached_property
69
+ def additional_properties_type():
70
+ """
71
+ This must be a method because a model may have properties that are
72
+ of type self, this must run after the class is loaded
73
+ """
74
+ lazy_import()
75
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
76
+
77
+ _nullable = False
78
+
79
+ @cached_property
80
+ def openapi_types():
81
+ """
82
+ This must be a method because a model may have properties that are
83
+ of type self, this must run after the class is loaded
84
+
85
+ Returns
86
+ openapi_types (dict): The key is attribute name
87
+ and the value is attribute type.
88
+ """
89
+ lazy_import()
90
+ return {
91
+ 'full_transcript_s3_key': (str,), # noqa: E501
92
+ 'job_name': (str,), # noqa: E501
93
+ 'language_code': (str,), # noqa: E501
94
+ 'provider': (str,), # noqa: E501
95
+ 'segments': ([ConversationPbxCallTranscriptSegment],), # noqa: E501
96
+ 'status': (str,), # noqa: E501
97
+ 'transcript_json_s3_key': (str,), # noqa: E501
98
+ }
99
+
100
+ @cached_property
101
+ def discriminator():
102
+ return None
103
+
104
+
105
+ attribute_map = {
106
+ 'full_transcript_s3_key': 'full_transcript_s3_key', # noqa: E501
107
+ 'job_name': 'job_name', # noqa: E501
108
+ 'language_code': 'language_code', # noqa: E501
109
+ 'provider': 'provider', # noqa: E501
110
+ 'segments': 'segments', # noqa: E501
111
+ 'status': 'status', # noqa: E501
112
+ 'transcript_json_s3_key': 'transcript_json_s3_key', # noqa: E501
113
+ }
114
+
115
+ read_only_vars = {
116
+ }
117
+
118
+ _composed_schemas = {}
119
+
120
+ @classmethod
121
+ @convert_js_args_to_python_args
122
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
123
+ """ConversationPbxCallTranscript - a model defined in OpenAPI
124
+
125
+ Keyword Args:
126
+ _check_type (bool): if True, values for parameters in openapi_types
127
+ will be type checked and a TypeError will be
128
+ raised if the wrong type is input.
129
+ Defaults to True
130
+ _path_to_item (tuple/list): This is a list of keys or values to
131
+ drill down to the model in received_data
132
+ when deserializing a response
133
+ _spec_property_naming (bool): True if the variable names in the input data
134
+ are serialized names, as specified in the OpenAPI document.
135
+ False if the variable names in the input data
136
+ are pythonic names, e.g. snake case (default)
137
+ _configuration (Configuration): the instance to use when
138
+ deserializing a file_type parameter.
139
+ If passed, type conversion is attempted
140
+ If omitted no type conversion is done.
141
+ _visited_composed_classes (tuple): This stores a tuple of
142
+ classes that we have traveled through so that
143
+ if we see that class again we will not use its
144
+ discriminator again.
145
+ When traveling through a discriminator, the
146
+ composed schema that is
147
+ is traveled through is added to this set.
148
+ For example if Animal has a discriminator
149
+ petType and we pass in "Dog", and the class Dog
150
+ allOf includes Animal, we move through Animal
151
+ once using the discriminator, and pick Dog.
152
+ Then in Dog, we will make an instance of the
153
+ Animal class but this time we won't travel
154
+ through its discriminator because we passed in
155
+ _visited_composed_classes = (Animal,)
156
+ full_transcript_s3_key (str): S3 key for the full transcript text file. [optional] # noqa: E501
157
+ job_name (str): AWS Transcribe job name. [optional] # noqa: E501
158
+ language_code (str): Language code for transcription. [optional] # noqa: E501
159
+ provider (str): Transcription service provider. [optional] # noqa: E501
160
+ segments ([ConversationPbxCallTranscriptSegment]): Transcript segments with speaker labels and timestamps. [optional] # noqa: E501
161
+ status (str): Status of the transcription. [optional] # noqa: E501
162
+ transcript_json_s3_key (str): S3 key for the detailed transcript JSON with speaker diarization. [optional] # noqa: E501
163
+ """
164
+
165
+ _check_type = kwargs.pop('_check_type', True)
166
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
167
+ _path_to_item = kwargs.pop('_path_to_item', ())
168
+ _configuration = kwargs.pop('_configuration', None)
169
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
170
+
171
+ self = super(OpenApiModel, cls).__new__(cls)
172
+
173
+ if args:
174
+ for arg in args:
175
+ if isinstance(arg, dict):
176
+ kwargs.update(arg)
177
+ else:
178
+ raise ApiTypeError(
179
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
180
+ args,
181
+ self.__class__.__name__,
182
+ ),
183
+ path_to_item=_path_to_item,
184
+ valid_classes=(self.__class__,),
185
+ )
186
+
187
+ self._data_store = {}
188
+ self._check_type = _check_type
189
+ self._spec_property_naming = _spec_property_naming
190
+ self._path_to_item = _path_to_item
191
+ self._configuration = _configuration
192
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
193
+
194
+ for var_name, var_value in kwargs.items():
195
+ if var_name not in self.attribute_map and \
196
+ self._configuration is not None and \
197
+ self._configuration.discard_unknown_keys and \
198
+ self.additional_properties_type is None:
199
+ # discard variable.
200
+ continue
201
+ setattr(self, var_name, var_value)
202
+ return self
203
+
204
+ required_properties = set([
205
+ '_data_store',
206
+ '_check_type',
207
+ '_spec_property_naming',
208
+ '_path_to_item',
209
+ '_configuration',
210
+ '_visited_composed_classes',
211
+ ])
212
+
213
+ @convert_js_args_to_python_args
214
+ def __init__(self, *args, **kwargs): # noqa: E501
215
+ """ConversationPbxCallTranscript - a model defined in OpenAPI
216
+
217
+ Keyword Args:
218
+ _check_type (bool): if True, values for parameters in openapi_types
219
+ will be type checked and a TypeError will be
220
+ raised if the wrong type is input.
221
+ Defaults to True
222
+ _path_to_item (tuple/list): This is a list of keys or values to
223
+ drill down to the model in received_data
224
+ when deserializing a response
225
+ _spec_property_naming (bool): True if the variable names in the input data
226
+ are serialized names, as specified in the OpenAPI document.
227
+ False if the variable names in the input data
228
+ are pythonic names, e.g. snake case (default)
229
+ _configuration (Configuration): the instance to use when
230
+ deserializing a file_type parameter.
231
+ If passed, type conversion is attempted
232
+ If omitted no type conversion is done.
233
+ _visited_composed_classes (tuple): This stores a tuple of
234
+ classes that we have traveled through so that
235
+ if we see that class again we will not use its
236
+ discriminator again.
237
+ When traveling through a discriminator, the
238
+ composed schema that is
239
+ is traveled through is added to this set.
240
+ For example if Animal has a discriminator
241
+ petType and we pass in "Dog", and the class Dog
242
+ allOf includes Animal, we move through Animal
243
+ once using the discriminator, and pick Dog.
244
+ Then in Dog, we will make an instance of the
245
+ Animal class but this time we won't travel
246
+ through its discriminator because we passed in
247
+ _visited_composed_classes = (Animal,)
248
+ full_transcript_s3_key (str): S3 key for the full transcript text file. [optional] # noqa: E501
249
+ job_name (str): AWS Transcribe job name. [optional] # noqa: E501
250
+ language_code (str): Language code for transcription. [optional] # noqa: E501
251
+ provider (str): Transcription service provider. [optional] # noqa: E501
252
+ segments ([ConversationPbxCallTranscriptSegment]): Transcript segments with speaker labels and timestamps. [optional] # noqa: E501
253
+ status (str): Status of the transcription. [optional] # noqa: E501
254
+ transcript_json_s3_key (str): S3 key for the detailed transcript JSON with speaker diarization. [optional] # noqa: E501
255
+ """
256
+
257
+ _check_type = kwargs.pop('_check_type', True)
258
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
259
+ _path_to_item = kwargs.pop('_path_to_item', ())
260
+ _configuration = kwargs.pop('_configuration', None)
261
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
262
+
263
+ if args:
264
+ for arg in args:
265
+ if isinstance(arg, dict):
266
+ kwargs.update(arg)
267
+ else:
268
+ raise ApiTypeError(
269
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
270
+ args,
271
+ self.__class__.__name__,
272
+ ),
273
+ path_to_item=_path_to_item,
274
+ valid_classes=(self.__class__,),
275
+ )
276
+
277
+ self._data_store = {}
278
+ self._check_type = _check_type
279
+ self._spec_property_naming = _spec_property_naming
280
+ self._path_to_item = _path_to_item
281
+ self._configuration = _configuration
282
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
283
+
284
+ for var_name, var_value in kwargs.items():
285
+ if var_name not in self.attribute_map and \
286
+ self._configuration is not None and \
287
+ self._configuration.discard_unknown_keys and \
288
+ self.additional_properties_type is None:
289
+ # discard variable.
290
+ continue
291
+ setattr(self, var_name, var_value)
292
+ if var_name in self.read_only_vars:
293
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
294
+ f"class with read only attributes.")
@@ -0,0 +1,292 @@
1
+ """
2
+ UltraCart Rest API V2
3
+
4
+ UltraCart REST API Version 2 # noqa: E501
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import re # noqa: F401
13
+ import sys # noqa: F401
14
+
15
+ from ultracart.model_utils import ( # noqa: F401
16
+ ApiTypeError,
17
+ ModelComposed,
18
+ ModelNormal,
19
+ ModelSimple,
20
+ cached_property,
21
+ change_keys_js_to_python,
22
+ convert_js_args_to_python_args,
23
+ date,
24
+ datetime,
25
+ file_type,
26
+ none_type,
27
+ validate_get_composed_info,
28
+ OpenApiModel
29
+ )
30
+ from ultracart.exceptions import ApiAttributeError
31
+
32
+
33
+
34
+ class ConversationPbxCallTranscriptSegment(ModelNormal):
35
+ """NOTE: This class is auto generated by OpenAPI Generator.
36
+ Ref: https://openapi-generator.tech
37
+
38
+ Do not edit the class manually.
39
+
40
+ Attributes:
41
+ allowed_values (dict): The key is the tuple path to the attribute
42
+ and the for var_name this is (var_name,). The value is a dict
43
+ with a capitalized key describing the allowed value and an allowed
44
+ value. These dicts store the allowed enum values.
45
+ attribute_map (dict): The key is attribute name
46
+ and the value is json key in definition.
47
+ discriminator_value_class_map (dict): A dict to go from the discriminator
48
+ variable value to the discriminator class name.
49
+ validations (dict): The key is the tuple path to the attribute
50
+ and the for var_name this is (var_name,). The value is a dict
51
+ that stores validations for max_length, min_length, max_items,
52
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
53
+ inclusive_minimum, and regex.
54
+ additional_properties_type (tuple): A tuple of classes accepted
55
+ as additional properties values.
56
+ """
57
+
58
+ allowed_values = {
59
+ ('speaker',): {
60
+ 'CUSTOMER': "customer",
61
+ '_AGENT': " agent",
62
+ },
63
+ }
64
+
65
+ validations = {
66
+ }
67
+
68
+ @cached_property
69
+ def additional_properties_type():
70
+ """
71
+ This must be a method because a model may have properties that are
72
+ of type self, this must run after the class is loaded
73
+ """
74
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
75
+
76
+ _nullable = False
77
+
78
+ @cached_property
79
+ def openapi_types():
80
+ """
81
+ This must be a method because a model may have properties that are
82
+ of type self, this must run after the class is loaded
83
+
84
+ Returns
85
+ openapi_types (dict): The key is attribute name
86
+ and the value is attribute type.
87
+ """
88
+ return {
89
+ 'agent_id': (str,), # noqa: E501
90
+ 'channel': (str,), # noqa: E501
91
+ 'confidence': (float,), # noqa: E501
92
+ 'end_time': (float,), # noqa: E501
93
+ 'speaker': (str,), # noqa: E501
94
+ 'start_time': (float,), # noqa: E501
95
+ 'text': (str,), # noqa: E501
96
+ }
97
+
98
+ @cached_property
99
+ def discriminator():
100
+ return None
101
+
102
+
103
+ attribute_map = {
104
+ 'agent_id': 'agent_id', # noqa: E501
105
+ 'channel': 'channel', # noqa: E501
106
+ 'confidence': 'confidence', # noqa: E501
107
+ 'end_time': 'end_time', # noqa: E501
108
+ 'speaker': 'speaker', # noqa: E501
109
+ 'start_time': 'start_time', # noqa: E501
110
+ 'text': 'text', # noqa: E501
111
+ }
112
+
113
+ read_only_vars = {
114
+ }
115
+
116
+ _composed_schemas = {}
117
+
118
+ @classmethod
119
+ @convert_js_args_to_python_args
120
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
121
+ """ConversationPbxCallTranscriptSegment - a model defined in OpenAPI
122
+
123
+ Keyword Args:
124
+ _check_type (bool): if True, values for parameters in openapi_types
125
+ will be type checked and a TypeError will be
126
+ raised if the wrong type is input.
127
+ Defaults to True
128
+ _path_to_item (tuple/list): This is a list of keys or values to
129
+ drill down to the model in received_data
130
+ when deserializing a response
131
+ _spec_property_naming (bool): True if the variable names in the input data
132
+ are serialized names, as specified in the OpenAPI document.
133
+ False if the variable names in the input data
134
+ are pythonic names, e.g. snake case (default)
135
+ _configuration (Configuration): the instance to use when
136
+ deserializing a file_type parameter.
137
+ If passed, type conversion is attempted
138
+ If omitted no type conversion is done.
139
+ _visited_composed_classes (tuple): This stores a tuple of
140
+ classes that we have traveled through so that
141
+ if we see that class again we will not use its
142
+ discriminator again.
143
+ When traveling through a discriminator, the
144
+ composed schema that is
145
+ is traveled through is added to this set.
146
+ For example if Animal has a discriminator
147
+ petType and we pass in "Dog", and the class Dog
148
+ allOf includes Animal, we move through Animal
149
+ once using the discriminator, and pick Dog.
150
+ Then in Dog, we will make an instance of the
151
+ Animal class but this time we won't travel
152
+ through its discriminator because we passed in
153
+ _visited_composed_classes = (Animal,)
154
+ agent_id (str): Agent ID if speaker is an agent. [optional] # noqa: E501
155
+ channel (str): Audio channel identifier (e.g. ch_0, ch_1). [optional] # noqa: E501
156
+ confidence (float): Transcription confidence score (0-1). [optional] # noqa: E501
157
+ end_time (float): End time in seconds from beginning of recording. [optional] # noqa: E501
158
+ speaker (str): Speaker role. [optional] # noqa: E501
159
+ start_time (float): Start time in seconds from beginning of recording. [optional] # noqa: E501
160
+ text (str): Transcribed text for this segment. [optional] # noqa: E501
161
+ """
162
+
163
+ _check_type = kwargs.pop('_check_type', True)
164
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
165
+ _path_to_item = kwargs.pop('_path_to_item', ())
166
+ _configuration = kwargs.pop('_configuration', None)
167
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
168
+
169
+ self = super(OpenApiModel, cls).__new__(cls)
170
+
171
+ if args:
172
+ for arg in args:
173
+ if isinstance(arg, dict):
174
+ kwargs.update(arg)
175
+ else:
176
+ raise ApiTypeError(
177
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
178
+ args,
179
+ self.__class__.__name__,
180
+ ),
181
+ path_to_item=_path_to_item,
182
+ valid_classes=(self.__class__,),
183
+ )
184
+
185
+ self._data_store = {}
186
+ self._check_type = _check_type
187
+ self._spec_property_naming = _spec_property_naming
188
+ self._path_to_item = _path_to_item
189
+ self._configuration = _configuration
190
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
191
+
192
+ for var_name, var_value in kwargs.items():
193
+ if var_name not in self.attribute_map and \
194
+ self._configuration is not None and \
195
+ self._configuration.discard_unknown_keys and \
196
+ self.additional_properties_type is None:
197
+ # discard variable.
198
+ continue
199
+ setattr(self, var_name, var_value)
200
+ return self
201
+
202
+ required_properties = set([
203
+ '_data_store',
204
+ '_check_type',
205
+ '_spec_property_naming',
206
+ '_path_to_item',
207
+ '_configuration',
208
+ '_visited_composed_classes',
209
+ ])
210
+
211
+ @convert_js_args_to_python_args
212
+ def __init__(self, *args, **kwargs): # noqa: E501
213
+ """ConversationPbxCallTranscriptSegment - a model defined in OpenAPI
214
+
215
+ Keyword Args:
216
+ _check_type (bool): if True, values for parameters in openapi_types
217
+ will be type checked and a TypeError will be
218
+ raised if the wrong type is input.
219
+ Defaults to True
220
+ _path_to_item (tuple/list): This is a list of keys or values to
221
+ drill down to the model in received_data
222
+ when deserializing a response
223
+ _spec_property_naming (bool): True if the variable names in the input data
224
+ are serialized names, as specified in the OpenAPI document.
225
+ False if the variable names in the input data
226
+ are pythonic names, e.g. snake case (default)
227
+ _configuration (Configuration): the instance to use when
228
+ deserializing a file_type parameter.
229
+ If passed, type conversion is attempted
230
+ If omitted no type conversion is done.
231
+ _visited_composed_classes (tuple): This stores a tuple of
232
+ classes that we have traveled through so that
233
+ if we see that class again we will not use its
234
+ discriminator again.
235
+ When traveling through a discriminator, the
236
+ composed schema that is
237
+ is traveled through is added to this set.
238
+ For example if Animal has a discriminator
239
+ petType and we pass in "Dog", and the class Dog
240
+ allOf includes Animal, we move through Animal
241
+ once using the discriminator, and pick Dog.
242
+ Then in Dog, we will make an instance of the
243
+ Animal class but this time we won't travel
244
+ through its discriminator because we passed in
245
+ _visited_composed_classes = (Animal,)
246
+ agent_id (str): Agent ID if speaker is an agent. [optional] # noqa: E501
247
+ channel (str): Audio channel identifier (e.g. ch_0, ch_1). [optional] # noqa: E501
248
+ confidence (float): Transcription confidence score (0-1). [optional] # noqa: E501
249
+ end_time (float): End time in seconds from beginning of recording. [optional] # noqa: E501
250
+ speaker (str): Speaker role. [optional] # noqa: E501
251
+ start_time (float): Start time in seconds from beginning of recording. [optional] # noqa: E501
252
+ text (str): Transcribed text for this segment. [optional] # noqa: E501
253
+ """
254
+
255
+ _check_type = kwargs.pop('_check_type', True)
256
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
257
+ _path_to_item = kwargs.pop('_path_to_item', ())
258
+ _configuration = kwargs.pop('_configuration', None)
259
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
260
+
261
+ if args:
262
+ for arg in args:
263
+ if isinstance(arg, dict):
264
+ kwargs.update(arg)
265
+ else:
266
+ raise ApiTypeError(
267
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
268
+ args,
269
+ self.__class__.__name__,
270
+ ),
271
+ path_to_item=_path_to_item,
272
+ valid_classes=(self.__class__,),
273
+ )
274
+
275
+ self._data_store = {}
276
+ self._check_type = _check_type
277
+ self._spec_property_naming = _spec_property_naming
278
+ self._path_to_item = _path_to_item
279
+ self._configuration = _configuration
280
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
281
+
282
+ for var_name, var_value in kwargs.items():
283
+ if var_name not in self.attribute_map and \
284
+ self._configuration is not None and \
285
+ self._configuration.discard_unknown_keys and \
286
+ self.additional_properties_type is None:
287
+ # discard variable.
288
+ continue
289
+ setattr(self, var_name, var_value)
290
+ if var_name in self.read_only_vars:
291
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
292
+ f"class with read only attributes.")