ultracart-rest-sdk 4.1.41__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 (46) hide show
  1. ultracart/__init__.py +1 -1
  2. ultracart/api/conversation_api.py +1293 -53
  3. ultracart/api_client.py +1 -1
  4. ultracart/configuration.py +1 -1
  5. ultracart/model/cart.py +6 -0
  6. ultracart/model/cart_utm.py +388 -0
  7. ultracart/model/conversation_agent_auth.py +8 -0
  8. ultracart/model/conversation_department_member.py +4 -0
  9. ultracart/model/conversation_pbx_address.py +4 -0
  10. ultracart/model/conversation_pbx_agent.py +21 -4
  11. ultracart/model/conversation_pbx_available_phone_number.py +4 -0
  12. ultracart/model/conversation_pbx_call.py +370 -0
  13. ultracart/model/conversation_pbx_call_agent.py +296 -0
  14. ultracart/model/conversation_pbx_call_ai_cost.py +276 -0
  15. ultracart/model/conversation_pbx_call_ai_engagement.py +314 -0
  16. ultracart/model/conversation_pbx_call_ai_tool_call.py +296 -0
  17. ultracart/model/conversation_pbx_call_ai_whisper.py +276 -0
  18. ultracart/model/conversation_pbx_call_caller.py +280 -0
  19. ultracart/model/conversation_pbx_call_financial.py +288 -0
  20. ultracart/model/conversation_pbx_call_hold.py +276 -0
  21. ultracart/model/conversation_pbx_call_queue.py +284 -0
  22. ultracart/model/conversation_pbx_call_recording.py +294 -0
  23. ultracart/model/conversation_pbx_call_response.py +292 -0
  24. ultracart/model/conversation_pbx_call_routing.py +278 -0
  25. ultracart/model/conversation_pbx_call_search_request.py +324 -0
  26. ultracart/model/conversation_pbx_call_search_response.py +292 -0
  27. ultracart/model/conversation_pbx_call_timeline.py +284 -0
  28. ultracart/model/conversation_pbx_call_transcript.py +294 -0
  29. ultracart/model/conversation_pbx_call_transcript_segment.py +292 -0
  30. ultracart/model/conversation_pbx_call_transfer.py +280 -0
  31. ultracart/model/conversation_pbx_hardware_phone.py +361 -0
  32. ultracart/model/conversation_pbx_hardware_phone_response.py +292 -0
  33. ultracart/model/conversation_pbx_hardware_phones_response.py +270 -0
  34. ultracart/model/conversation_pbx_phone_manufacturer.py +278 -0
  35. ultracart/model/conversation_pbx_phone_manufacturers_response.py +292 -0
  36. ultracart/model/conversation_pbx_phone_model.py +268 -0
  37. ultracart/model/conversation_pbx_phone_number.py +11 -0
  38. ultracart/model/conversation_pbx_queue.py +4 -0
  39. ultracart/model/coupon_codes_request.py +7 -0
  40. ultracart/model/item_content_multimedia.py +4 -0
  41. ultracart/models/__init__.py +26 -0
  42. {ultracart_rest_sdk-4.1.41.dist-info → ultracart_rest_sdk-4.1.54.dist-info}/METADATA +1 -1
  43. {ultracart_rest_sdk-4.1.41.dist-info → ultracart_rest_sdk-4.1.54.dist-info}/RECORD +46 -20
  44. {ultracart_rest_sdk-4.1.41.dist-info → ultracart_rest_sdk-4.1.54.dist-info}/LICENSE +0 -0
  45. {ultracart_rest_sdk-4.1.41.dist-info → ultracart_rest_sdk-4.1.54.dist-info}/WHEEL +0 -0
  46. {ultracart_rest_sdk-4.1.41.dist-info → ultracart_rest_sdk-4.1.54.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,314 @@
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_ai_cost import ConversationPbxCallAiCost
35
+ from ultracart.model.conversation_pbx_call_ai_tool_call import ConversationPbxCallAiToolCall
36
+ from ultracart.model.conversation_pbx_call_ai_whisper import ConversationPbxCallAiWhisper
37
+ globals()['ConversationPbxCallAiCost'] = ConversationPbxCallAiCost
38
+ globals()['ConversationPbxCallAiToolCall'] = ConversationPbxCallAiToolCall
39
+ globals()['ConversationPbxCallAiWhisper'] = ConversationPbxCallAiWhisper
40
+
41
+
42
+ class ConversationPbxCallAiEngagement(ModelNormal):
43
+ """NOTE: This class is auto generated by OpenAPI Generator.
44
+ Ref: https://openapi-generator.tech
45
+
46
+ Do not edit the class manually.
47
+
48
+ Attributes:
49
+ allowed_values (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
+ with a capitalized key describing the allowed value and an allowed
52
+ value. These dicts store the allowed enum values.
53
+ attribute_map (dict): The key is attribute name
54
+ and the value is json key in definition.
55
+ discriminator_value_class_map (dict): A dict to go from the discriminator
56
+ variable value to the discriminator class name.
57
+ validations (dict): The key is the tuple path to the attribute
58
+ and the for var_name this is (var_name,). The value is a dict
59
+ that stores validations for max_length, min_length, max_items,
60
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
61
+ inclusive_minimum, and regex.
62
+ additional_properties_type (tuple): A tuple of classes accepted
63
+ as additional properties values.
64
+ """
65
+
66
+ allowed_values = {
67
+ ('engagement_type',): {
68
+ 'AGENT': "ai_agent",
69
+ 'COACH': "ai_coach",
70
+ },
71
+ }
72
+
73
+ validations = {
74
+ }
75
+
76
+ @cached_property
77
+ def additional_properties_type():
78
+ """
79
+ This must be a method because a model may have properties that are
80
+ of type self, this must run after the class is loaded
81
+ """
82
+ lazy_import()
83
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
84
+
85
+ _nullable = False
86
+
87
+ @cached_property
88
+ def openapi_types():
89
+ """
90
+ This must be a method because a model may have properties that are
91
+ of type self, this must run after the class is loaded
92
+
93
+ Returns
94
+ openapi_types (dict): The key is attribute name
95
+ and the value is attribute type.
96
+ """
97
+ lazy_import()
98
+ return {
99
+ 'agent_name': (str,), # noqa: E501
100
+ 'agent_uuid': (str,), # noqa: E501
101
+ 'cost': (ConversationPbxCallAiCost,), # noqa: E501
102
+ 'ended_at_dts': (str,), # noqa: E501
103
+ 'engagement_type': (str,), # noqa: E501
104
+ 'session_uuid': (str,), # noqa: E501
105
+ 'started_at_dts': (str,), # noqa: E501
106
+ 'status': (str,), # noqa: E501
107
+ 'tool_calls': ([ConversationPbxCallAiToolCall],), # noqa: E501
108
+ 'whispers': ([ConversationPbxCallAiWhisper],), # noqa: E501
109
+ }
110
+
111
+ @cached_property
112
+ def discriminator():
113
+ return None
114
+
115
+
116
+ attribute_map = {
117
+ 'agent_name': 'agent_name', # noqa: E501
118
+ 'agent_uuid': 'agent_uuid', # noqa: E501
119
+ 'cost': 'cost', # noqa: E501
120
+ 'ended_at_dts': 'ended_at_dts', # noqa: E501
121
+ 'engagement_type': 'engagement_type', # noqa: E501
122
+ 'session_uuid': 'session_uuid', # noqa: E501
123
+ 'started_at_dts': 'started_at_dts', # noqa: E501
124
+ 'status': 'status', # noqa: E501
125
+ 'tool_calls': 'tool_calls', # noqa: E501
126
+ 'whispers': 'whispers', # noqa: E501
127
+ }
128
+
129
+ read_only_vars = {
130
+ }
131
+
132
+ _composed_schemas = {}
133
+
134
+ @classmethod
135
+ @convert_js_args_to_python_args
136
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
137
+ """ConversationPbxCallAiEngagement - a model defined in OpenAPI
138
+
139
+ Keyword Args:
140
+ _check_type (bool): if True, values for parameters in openapi_types
141
+ will be type checked and a TypeError will be
142
+ raised if the wrong type is input.
143
+ Defaults to True
144
+ _path_to_item (tuple/list): This is a list of keys or values to
145
+ drill down to the model in received_data
146
+ when deserializing a response
147
+ _spec_property_naming (bool): True if the variable names in the input data
148
+ are serialized names, as specified in the OpenAPI document.
149
+ False if the variable names in the input data
150
+ are pythonic names, e.g. snake case (default)
151
+ _configuration (Configuration): the instance to use when
152
+ deserializing a file_type parameter.
153
+ If passed, type conversion is attempted
154
+ If omitted no type conversion is done.
155
+ _visited_composed_classes (tuple): This stores a tuple of
156
+ classes that we have traveled through so that
157
+ if we see that class again we will not use its
158
+ discriminator again.
159
+ When traveling through a discriminator, the
160
+ composed schema that is
161
+ is traveled through is added to this set.
162
+ For example if Animal has a discriminator
163
+ petType and we pass in "Dog", and the class Dog
164
+ allOf includes Animal, we move through Animal
165
+ once using the discriminator, and pick Dog.
166
+ Then in Dog, we will make an instance of the
167
+ Animal class but this time we won't travel
168
+ through its discriminator because we passed in
169
+ _visited_composed_classes = (Animal,)
170
+ agent_name (str): Display name of the AI agent. [optional] # noqa: E501
171
+ agent_uuid (str): UUID of the AI agent configuration used. [optional] # noqa: E501
172
+ cost (ConversationPbxCallAiCost): [optional] # noqa: E501
173
+ ended_at_dts (str): Timestamp when the AI engagement ended. [optional] # noqa: E501
174
+ engagement_type (str): Type of AI engagement. [optional] # noqa: E501
175
+ session_uuid (str): Unique identifier for this AI engagement session. [optional] # noqa: E501
176
+ started_at_dts (str): Timestamp when the AI engagement started. [optional] # noqa: E501
177
+ status (str): Status of the AI engagement. [optional] # noqa: E501
178
+ tool_calls ([ConversationPbxCallAiToolCall]): List of tool calls made by the AI agent during this engagement. [optional] # noqa: E501
179
+ whispers ([ConversationPbxCallAiWhisper]): List of coaching whispers sent during this engagement. [optional] # noqa: E501
180
+ """
181
+
182
+ _check_type = kwargs.pop('_check_type', True)
183
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
184
+ _path_to_item = kwargs.pop('_path_to_item', ())
185
+ _configuration = kwargs.pop('_configuration', None)
186
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
187
+
188
+ self = super(OpenApiModel, cls).__new__(cls)
189
+
190
+ if args:
191
+ for arg in args:
192
+ if isinstance(arg, dict):
193
+ kwargs.update(arg)
194
+ else:
195
+ raise ApiTypeError(
196
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
197
+ args,
198
+ self.__class__.__name__,
199
+ ),
200
+ path_to_item=_path_to_item,
201
+ valid_classes=(self.__class__,),
202
+ )
203
+
204
+ self._data_store = {}
205
+ self._check_type = _check_type
206
+ self._spec_property_naming = _spec_property_naming
207
+ self._path_to_item = _path_to_item
208
+ self._configuration = _configuration
209
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
210
+
211
+ for var_name, var_value in kwargs.items():
212
+ if var_name not in self.attribute_map and \
213
+ self._configuration is not None and \
214
+ self._configuration.discard_unknown_keys and \
215
+ self.additional_properties_type is None:
216
+ # discard variable.
217
+ continue
218
+ setattr(self, var_name, var_value)
219
+ return self
220
+
221
+ required_properties = set([
222
+ '_data_store',
223
+ '_check_type',
224
+ '_spec_property_naming',
225
+ '_path_to_item',
226
+ '_configuration',
227
+ '_visited_composed_classes',
228
+ ])
229
+
230
+ @convert_js_args_to_python_args
231
+ def __init__(self, *args, **kwargs): # noqa: E501
232
+ """ConversationPbxCallAiEngagement - a model defined in OpenAPI
233
+
234
+ Keyword Args:
235
+ _check_type (bool): if True, values for parameters in openapi_types
236
+ will be type checked and a TypeError will be
237
+ raised if the wrong type is input.
238
+ Defaults to True
239
+ _path_to_item (tuple/list): This is a list of keys or values to
240
+ drill down to the model in received_data
241
+ when deserializing a response
242
+ _spec_property_naming (bool): True if the variable names in the input data
243
+ are serialized names, as specified in the OpenAPI document.
244
+ False if the variable names in the input data
245
+ are pythonic names, e.g. snake case (default)
246
+ _configuration (Configuration): the instance to use when
247
+ deserializing a file_type parameter.
248
+ If passed, type conversion is attempted
249
+ If omitted no type conversion is done.
250
+ _visited_composed_classes (tuple): This stores a tuple of
251
+ classes that we have traveled through so that
252
+ if we see that class again we will not use its
253
+ discriminator again.
254
+ When traveling through a discriminator, the
255
+ composed schema that is
256
+ is traveled through is added to this set.
257
+ For example if Animal has a discriminator
258
+ petType and we pass in "Dog", and the class Dog
259
+ allOf includes Animal, we move through Animal
260
+ once using the discriminator, and pick Dog.
261
+ Then in Dog, we will make an instance of the
262
+ Animal class but this time we won't travel
263
+ through its discriminator because we passed in
264
+ _visited_composed_classes = (Animal,)
265
+ agent_name (str): Display name of the AI agent. [optional] # noqa: E501
266
+ agent_uuid (str): UUID of the AI agent configuration used. [optional] # noqa: E501
267
+ cost (ConversationPbxCallAiCost): [optional] # noqa: E501
268
+ ended_at_dts (str): Timestamp when the AI engagement ended. [optional] # noqa: E501
269
+ engagement_type (str): Type of AI engagement. [optional] # noqa: E501
270
+ session_uuid (str): Unique identifier for this AI engagement session. [optional] # noqa: E501
271
+ started_at_dts (str): Timestamp when the AI engagement started. [optional] # noqa: E501
272
+ status (str): Status of the AI engagement. [optional] # noqa: E501
273
+ tool_calls ([ConversationPbxCallAiToolCall]): List of tool calls made by the AI agent during this engagement. [optional] # noqa: E501
274
+ whispers ([ConversationPbxCallAiWhisper]): List of coaching whispers sent during this engagement. [optional] # noqa: E501
275
+ """
276
+
277
+ _check_type = kwargs.pop('_check_type', True)
278
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
279
+ _path_to_item = kwargs.pop('_path_to_item', ())
280
+ _configuration = kwargs.pop('_configuration', None)
281
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
282
+
283
+ if args:
284
+ for arg in args:
285
+ if isinstance(arg, dict):
286
+ kwargs.update(arg)
287
+ else:
288
+ raise ApiTypeError(
289
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
290
+ args,
291
+ self.__class__.__name__,
292
+ ),
293
+ path_to_item=_path_to_item,
294
+ valid_classes=(self.__class__,),
295
+ )
296
+
297
+ self._data_store = {}
298
+ self._check_type = _check_type
299
+ self._spec_property_naming = _spec_property_naming
300
+ self._path_to_item = _path_to_item
301
+ self._configuration = _configuration
302
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
303
+
304
+ for var_name, var_value in kwargs.items():
305
+ if var_name not in self.attribute_map and \
306
+ self._configuration is not None and \
307
+ self._configuration.discard_unknown_keys and \
308
+ self.additional_properties_type is None:
309
+ # discard variable.
310
+ continue
311
+ setattr(self, var_name, var_value)
312
+ if var_name in self.read_only_vars:
313
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
314
+ f"class with read only attributes.")
@@ -0,0 +1,296 @@
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 ConversationPbxCallAiToolCall(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
+ }
60
+
61
+ validations = {
62
+ }
63
+
64
+ @cached_property
65
+ def additional_properties_type():
66
+ """
67
+ This must be a method because a model may have properties that are
68
+ of type self, this must run after the class is loaded
69
+ """
70
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
71
+
72
+ _nullable = False
73
+
74
+ @cached_property
75
+ def openapi_types():
76
+ """
77
+ This must be a method because a model may have properties that are
78
+ of type self, this must run after the class is loaded
79
+
80
+ Returns
81
+ openapi_types (dict): The key is attribute name
82
+ and the value is attribute type.
83
+ """
84
+ return {
85
+ 'called_at_dts': (str,), # noqa: E501
86
+ 'completed_at_dts': (str,), # noqa: E501
87
+ 'duration_ms': (int,), # noqa: E501
88
+ 'error_message': (str,), # noqa: E501
89
+ 'parameters': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
90
+ 'result': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
91
+ 'success': (bool,), # noqa: E501
92
+ 'tool_call_uuid': (str,), # noqa: E501
93
+ 'tool_name': (str,), # noqa: E501
94
+ }
95
+
96
+ @cached_property
97
+ def discriminator():
98
+ return None
99
+
100
+
101
+ attribute_map = {
102
+ 'called_at_dts': 'called_at_dts', # noqa: E501
103
+ 'completed_at_dts': 'completed_at_dts', # noqa: E501
104
+ 'duration_ms': 'duration_ms', # noqa: E501
105
+ 'error_message': 'error_message', # noqa: E501
106
+ 'parameters': 'parameters', # noqa: E501
107
+ 'result': 'result', # noqa: E501
108
+ 'success': 'success', # noqa: E501
109
+ 'tool_call_uuid': 'tool_call_uuid', # noqa: E501
110
+ 'tool_name': 'tool_name', # 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
+ """ConversationPbxCallAiToolCall - 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
+ called_at_dts (str): Timestamp when the tool was called. [optional] # noqa: E501
155
+ completed_at_dts (str): Timestamp when the tool call completed. [optional] # noqa: E501
156
+ duration_ms (int): Duration of the tool call in milliseconds. [optional] # noqa: E501
157
+ error_message (str): Error message if the tool call failed. [optional] # noqa: E501
158
+ parameters (bool, date, datetime, dict, float, int, list, str, none_type): Parameters passed to the tool (structure varies by tool). [optional] # noqa: E501
159
+ result (bool, date, datetime, dict, float, int, list, str, none_type): Result returned by the tool (structure varies by tool). [optional] # noqa: E501
160
+ success (bool): Whether the tool call succeeded. [optional] # noqa: E501
161
+ tool_call_uuid (str): Unique identifier for this tool call. [optional] # noqa: E501
162
+ tool_name (str): Name of the tool that was called. [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
+ """ConversationPbxCallAiToolCall - 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
+ called_at_dts (str): Timestamp when the tool was called. [optional] # noqa: E501
249
+ completed_at_dts (str): Timestamp when the tool call completed. [optional] # noqa: E501
250
+ duration_ms (int): Duration of the tool call in milliseconds. [optional] # noqa: E501
251
+ error_message (str): Error message if the tool call failed. [optional] # noqa: E501
252
+ parameters (bool, date, datetime, dict, float, int, list, str, none_type): Parameters passed to the tool (structure varies by tool). [optional] # noqa: E501
253
+ result (bool, date, datetime, dict, float, int, list, str, none_type): Result returned by the tool (structure varies by tool). [optional] # noqa: E501
254
+ success (bool): Whether the tool call succeeded. [optional] # noqa: E501
255
+ tool_call_uuid (str): Unique identifier for this tool call. [optional] # noqa: E501
256
+ tool_name (str): Name of the tool that was called. [optional] # noqa: E501
257
+ """
258
+
259
+ _check_type = kwargs.pop('_check_type', True)
260
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
261
+ _path_to_item = kwargs.pop('_path_to_item', ())
262
+ _configuration = kwargs.pop('_configuration', None)
263
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
264
+
265
+ if args:
266
+ for arg in args:
267
+ if isinstance(arg, dict):
268
+ kwargs.update(arg)
269
+ else:
270
+ raise ApiTypeError(
271
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
272
+ args,
273
+ self.__class__.__name__,
274
+ ),
275
+ path_to_item=_path_to_item,
276
+ valid_classes=(self.__class__,),
277
+ )
278
+
279
+ self._data_store = {}
280
+ self._check_type = _check_type
281
+ self._spec_property_naming = _spec_property_naming
282
+ self._path_to_item = _path_to_item
283
+ self._configuration = _configuration
284
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
285
+
286
+ for var_name, var_value in kwargs.items():
287
+ if var_name not in self.attribute_map and \
288
+ self._configuration is not None and \
289
+ self._configuration.discard_unknown_keys and \
290
+ self.additional_properties_type is None:
291
+ # discard variable.
292
+ continue
293
+ setattr(self, var_name, var_value)
294
+ if var_name in self.read_only_vars:
295
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
296
+ f"class with read only attributes.")