ultracart-rest-sdk 4.1.49__py3-none-any.whl → 4.1.55__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.55.dist-info}/METADATA +1 -1
  30. {ultracart_rest_sdk-4.1.49.dist-info → ultracart_rest_sdk-4.1.55.dist-info}/RECORD +33 -14
  31. {ultracart_rest_sdk-4.1.49.dist-info → ultracart_rest_sdk-4.1.55.dist-info}/LICENSE +0 -0
  32. {ultracart_rest_sdk-4.1.49.dist-info → ultracart_rest_sdk-4.1.55.dist-info}/WHEEL +0 -0
  33. {ultracart_rest_sdk-4.1.49.dist-info → ultracart_rest_sdk-4.1.55.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,278 @@
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_queue import ConversationPbxCallQueue
35
+ globals()['ConversationPbxCallQueue'] = ConversationPbxCallQueue
36
+
37
+
38
+ class ConversationPbxCallRouting(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
+ 'call_type': (str,), # noqa: E501
92
+ 'direction': (str,), # noqa: E501
93
+ 'queue': (ConversationPbxCallQueue,), # noqa: E501
94
+ }
95
+
96
+ @cached_property
97
+ def discriminator():
98
+ return None
99
+
100
+
101
+ attribute_map = {
102
+ 'call_type': 'call_type', # noqa: E501
103
+ 'direction': 'direction', # noqa: E501
104
+ 'queue': 'queue', # noqa: E501
105
+ }
106
+
107
+ read_only_vars = {
108
+ }
109
+
110
+ _composed_schemas = {}
111
+
112
+ @classmethod
113
+ @convert_js_args_to_python_args
114
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
115
+ """ConversationPbxCallRouting - a model defined in OpenAPI
116
+
117
+ Keyword Args:
118
+ _check_type (bool): if True, values for parameters in openapi_types
119
+ will be type checked and a TypeError will be
120
+ raised if the wrong type is input.
121
+ Defaults to True
122
+ _path_to_item (tuple/list): This is a list of keys or values to
123
+ drill down to the model in received_data
124
+ when deserializing a response
125
+ _spec_property_naming (bool): True if the variable names in the input data
126
+ are serialized names, as specified in the OpenAPI document.
127
+ False if the variable names in the input data
128
+ are pythonic names, e.g. snake case (default)
129
+ _configuration (Configuration): the instance to use when
130
+ deserializing a file_type parameter.
131
+ If passed, type conversion is attempted
132
+ If omitted no type conversion is done.
133
+ _visited_composed_classes (tuple): This stores a tuple of
134
+ classes that we have traveled through so that
135
+ if we see that class again we will not use its
136
+ discriminator again.
137
+ When traveling through a discriminator, the
138
+ composed schema that is
139
+ is traveled through is added to this set.
140
+ For example if Animal has a discriminator
141
+ petType and we pass in "Dog", and the class Dog
142
+ allOf includes Animal, we move through Animal
143
+ once using the discriminator, and pick Dog.
144
+ Then in Dog, we will make an instance of the
145
+ Animal class but this time we won't travel
146
+ through its discriminator because we passed in
147
+ _visited_composed_classes = (Animal,)
148
+ call_type (str): Type of call routing used. [optional] # noqa: E501
149
+ direction (str): Direction of the call. [optional] # noqa: E501
150
+ queue (ConversationPbxCallQueue): [optional] # noqa: E501
151
+ """
152
+
153
+ _check_type = kwargs.pop('_check_type', True)
154
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
155
+ _path_to_item = kwargs.pop('_path_to_item', ())
156
+ _configuration = kwargs.pop('_configuration', None)
157
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
158
+
159
+ self = super(OpenApiModel, cls).__new__(cls)
160
+
161
+ if args:
162
+ for arg in args:
163
+ if isinstance(arg, dict):
164
+ kwargs.update(arg)
165
+ else:
166
+ raise ApiTypeError(
167
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
168
+ args,
169
+ self.__class__.__name__,
170
+ ),
171
+ path_to_item=_path_to_item,
172
+ valid_classes=(self.__class__,),
173
+ )
174
+
175
+ self._data_store = {}
176
+ self._check_type = _check_type
177
+ self._spec_property_naming = _spec_property_naming
178
+ self._path_to_item = _path_to_item
179
+ self._configuration = _configuration
180
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
181
+
182
+ for var_name, var_value in kwargs.items():
183
+ if var_name not in self.attribute_map and \
184
+ self._configuration is not None and \
185
+ self._configuration.discard_unknown_keys and \
186
+ self.additional_properties_type is None:
187
+ # discard variable.
188
+ continue
189
+ setattr(self, var_name, var_value)
190
+ return self
191
+
192
+ required_properties = set([
193
+ '_data_store',
194
+ '_check_type',
195
+ '_spec_property_naming',
196
+ '_path_to_item',
197
+ '_configuration',
198
+ '_visited_composed_classes',
199
+ ])
200
+
201
+ @convert_js_args_to_python_args
202
+ def __init__(self, *args, **kwargs): # noqa: E501
203
+ """ConversationPbxCallRouting - a model defined in OpenAPI
204
+
205
+ Keyword Args:
206
+ _check_type (bool): if True, values for parameters in openapi_types
207
+ will be type checked and a TypeError will be
208
+ raised if the wrong type is input.
209
+ Defaults to True
210
+ _path_to_item (tuple/list): This is a list of keys or values to
211
+ drill down to the model in received_data
212
+ when deserializing a response
213
+ _spec_property_naming (bool): True if the variable names in the input data
214
+ are serialized names, as specified in the OpenAPI document.
215
+ False if the variable names in the input data
216
+ are pythonic names, e.g. snake case (default)
217
+ _configuration (Configuration): the instance to use when
218
+ deserializing a file_type parameter.
219
+ If passed, type conversion is attempted
220
+ If omitted no type conversion is done.
221
+ _visited_composed_classes (tuple): This stores a tuple of
222
+ classes that we have traveled through so that
223
+ if we see that class again we will not use its
224
+ discriminator again.
225
+ When traveling through a discriminator, the
226
+ composed schema that is
227
+ is traveled through is added to this set.
228
+ For example if Animal has a discriminator
229
+ petType and we pass in "Dog", and the class Dog
230
+ allOf includes Animal, we move through Animal
231
+ once using the discriminator, and pick Dog.
232
+ Then in Dog, we will make an instance of the
233
+ Animal class but this time we won't travel
234
+ through its discriminator because we passed in
235
+ _visited_composed_classes = (Animal,)
236
+ call_type (str): Type of call routing used. [optional] # noqa: E501
237
+ direction (str): Direction of the call. [optional] # noqa: E501
238
+ queue (ConversationPbxCallQueue): [optional] # noqa: E501
239
+ """
240
+
241
+ _check_type = kwargs.pop('_check_type', True)
242
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
243
+ _path_to_item = kwargs.pop('_path_to_item', ())
244
+ _configuration = kwargs.pop('_configuration', None)
245
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
246
+
247
+ if args:
248
+ for arg in args:
249
+ if isinstance(arg, dict):
250
+ kwargs.update(arg)
251
+ else:
252
+ raise ApiTypeError(
253
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
254
+ args,
255
+ self.__class__.__name__,
256
+ ),
257
+ path_to_item=_path_to_item,
258
+ valid_classes=(self.__class__,),
259
+ )
260
+
261
+ self._data_store = {}
262
+ self._check_type = _check_type
263
+ self._spec_property_naming = _spec_property_naming
264
+ self._path_to_item = _path_to_item
265
+ self._configuration = _configuration
266
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
267
+
268
+ for var_name, var_value in kwargs.items():
269
+ if var_name not in self.attribute_map and \
270
+ self._configuration is not None and \
271
+ self._configuration.discard_unknown_keys and \
272
+ self.additional_properties_type is None:
273
+ # discard variable.
274
+ continue
275
+ setattr(self, var_name, var_value)
276
+ if var_name in self.read_only_vars:
277
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
278
+ f"class with read only attributes.")
@@ -0,0 +1,324 @@
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 ConversationPbxCallSearchRequest(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
+ 'agent_ids': ([str],), # noqa: E501
86
+ 'customer_name': (str,), # noqa: E501
87
+ 'direction': (str,), # noqa: E501
88
+ 'disposition': (str,), # noqa: E501
89
+ 'end_date': (str,), # noqa: E501
90
+ 'has_ai_engagement': (bool,), # noqa: E501
91
+ 'has_recording': (bool,), # noqa: E501
92
+ 'has_transcript': (bool,), # noqa: E501
93
+ 'max_duration_seconds': (int,), # noqa: E501
94
+ 'min_duration_seconds': (int,), # noqa: E501
95
+ 'phone_number': (str,), # noqa: E501
96
+ 'queue_uuids': ([str],), # noqa: E501
97
+ 'search_term': (str,), # noqa: E501
98
+ 'start_date': (str,), # noqa: E501
99
+ 'statuses': ([str],), # noqa: E501
100
+ 'transcript_search': (str,), # noqa: E501
101
+ }
102
+
103
+ @cached_property
104
+ def discriminator():
105
+ return None
106
+
107
+
108
+ attribute_map = {
109
+ 'agent_ids': 'agent_ids', # noqa: E501
110
+ 'customer_name': 'customer_name', # noqa: E501
111
+ 'direction': 'direction', # noqa: E501
112
+ 'disposition': 'disposition', # noqa: E501
113
+ 'end_date': 'end_date', # noqa: E501
114
+ 'has_ai_engagement': 'has_ai_engagement', # noqa: E501
115
+ 'has_recording': 'has_recording', # noqa: E501
116
+ 'has_transcript': 'has_transcript', # noqa: E501
117
+ 'max_duration_seconds': 'max_duration_seconds', # noqa: E501
118
+ 'min_duration_seconds': 'min_duration_seconds', # noqa: E501
119
+ 'phone_number': 'phone_number', # noqa: E501
120
+ 'queue_uuids': 'queue_uuids', # noqa: E501
121
+ 'search_term': 'search_term', # noqa: E501
122
+ 'start_date': 'start_date', # noqa: E501
123
+ 'statuses': 'statuses', # noqa: E501
124
+ 'transcript_search': 'transcript_search', # noqa: E501
125
+ }
126
+
127
+ read_only_vars = {
128
+ }
129
+
130
+ _composed_schemas = {}
131
+
132
+ @classmethod
133
+ @convert_js_args_to_python_args
134
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
135
+ """ConversationPbxCallSearchRequest - a model defined in OpenAPI
136
+
137
+ Keyword Args:
138
+ _check_type (bool): if True, values for parameters in openapi_types
139
+ will be type checked and a TypeError will be
140
+ raised if the wrong type is input.
141
+ Defaults to True
142
+ _path_to_item (tuple/list): This is a list of keys or values to
143
+ drill down to the model in received_data
144
+ when deserializing a response
145
+ _spec_property_naming (bool): True if the variable names in the input data
146
+ are serialized names, as specified in the OpenAPI document.
147
+ False if the variable names in the input data
148
+ are pythonic names, e.g. snake case (default)
149
+ _configuration (Configuration): the instance to use when
150
+ deserializing a file_type parameter.
151
+ If passed, type conversion is attempted
152
+ If omitted no type conversion is done.
153
+ _visited_composed_classes (tuple): This stores a tuple of
154
+ classes that we have traveled through so that
155
+ if we see that class again we will not use its
156
+ discriminator again.
157
+ When traveling through a discriminator, the
158
+ composed schema that is
159
+ is traveled through is added to this set.
160
+ For example if Animal has a discriminator
161
+ petType and we pass in "Dog", and the class Dog
162
+ allOf includes Animal, we move through Animal
163
+ once using the discriminator, and pick Dog.
164
+ Then in Dog, we will make an instance of the
165
+ Animal class but this time we won't travel
166
+ through its discriminator because we passed in
167
+ _visited_composed_classes = (Animal,)
168
+ agent_ids ([str]): Filter by agent IDs. [optional] # noqa: E501
169
+ customer_name (str): Filter by customer name. [optional] # noqa: E501
170
+ direction (str): Filter by call direction (inbound/outbound). [optional] # noqa: E501
171
+ disposition (str): Filter by call disposition. [optional] # noqa: E501
172
+ end_date (str): Filter calls created on or before this date (ISO 8601). [optional] # noqa: E501
173
+ has_ai_engagement (bool): Filter to calls with AI agent engagement. [optional] # noqa: E501
174
+ has_recording (bool): Filter to calls that have a recording. [optional] # noqa: E501
175
+ has_transcript (bool): Filter to calls that have a transcript. [optional] # noqa: E501
176
+ max_duration_seconds (int): Filter by maximum call duration in seconds. [optional] # noqa: E501
177
+ min_duration_seconds (int): Filter by minimum call duration in seconds. [optional] # noqa: E501
178
+ phone_number (str): Filter by phone number (partial match supported). [optional] # noqa: E501
179
+ queue_uuids ([str]): Filter by queue UUIDs. [optional] # noqa: E501
180
+ search_term (str): Free text search term - smart-routed based on content (phone, email, UUID, or general text). [optional] # noqa: E501
181
+ start_date (str): Filter calls created on or after this date (ISO 8601). [optional] # noqa: E501
182
+ statuses ([str]): Filter by call statuses. [optional] # noqa: E501
183
+ transcript_search (str): Search within transcript text. [optional] # noqa: E501
184
+ """
185
+
186
+ _check_type = kwargs.pop('_check_type', True)
187
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
188
+ _path_to_item = kwargs.pop('_path_to_item', ())
189
+ _configuration = kwargs.pop('_configuration', None)
190
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
191
+
192
+ self = super(OpenApiModel, cls).__new__(cls)
193
+
194
+ if args:
195
+ for arg in args:
196
+ if isinstance(arg, dict):
197
+ kwargs.update(arg)
198
+ else:
199
+ raise ApiTypeError(
200
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
201
+ args,
202
+ self.__class__.__name__,
203
+ ),
204
+ path_to_item=_path_to_item,
205
+ valid_classes=(self.__class__,),
206
+ )
207
+
208
+ self._data_store = {}
209
+ self._check_type = _check_type
210
+ self._spec_property_naming = _spec_property_naming
211
+ self._path_to_item = _path_to_item
212
+ self._configuration = _configuration
213
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
214
+
215
+ for var_name, var_value in kwargs.items():
216
+ if var_name not in self.attribute_map and \
217
+ self._configuration is not None and \
218
+ self._configuration.discard_unknown_keys and \
219
+ self.additional_properties_type is None:
220
+ # discard variable.
221
+ continue
222
+ setattr(self, var_name, var_value)
223
+ return self
224
+
225
+ required_properties = set([
226
+ '_data_store',
227
+ '_check_type',
228
+ '_spec_property_naming',
229
+ '_path_to_item',
230
+ '_configuration',
231
+ '_visited_composed_classes',
232
+ ])
233
+
234
+ @convert_js_args_to_python_args
235
+ def __init__(self, *args, **kwargs): # noqa: E501
236
+ """ConversationPbxCallSearchRequest - a model defined in OpenAPI
237
+
238
+ Keyword Args:
239
+ _check_type (bool): if True, values for parameters in openapi_types
240
+ will be type checked and a TypeError will be
241
+ raised if the wrong type is input.
242
+ Defaults to True
243
+ _path_to_item (tuple/list): This is a list of keys or values to
244
+ drill down to the model in received_data
245
+ when deserializing a response
246
+ _spec_property_naming (bool): True if the variable names in the input data
247
+ are serialized names, as specified in the OpenAPI document.
248
+ False if the variable names in the input data
249
+ are pythonic names, e.g. snake case (default)
250
+ _configuration (Configuration): the instance to use when
251
+ deserializing a file_type parameter.
252
+ If passed, type conversion is attempted
253
+ If omitted no type conversion is done.
254
+ _visited_composed_classes (tuple): This stores a tuple of
255
+ classes that we have traveled through so that
256
+ if we see that class again we will not use its
257
+ discriminator again.
258
+ When traveling through a discriminator, the
259
+ composed schema that is
260
+ is traveled through is added to this set.
261
+ For example if Animal has a discriminator
262
+ petType and we pass in "Dog", and the class Dog
263
+ allOf includes Animal, we move through Animal
264
+ once using the discriminator, and pick Dog.
265
+ Then in Dog, we will make an instance of the
266
+ Animal class but this time we won't travel
267
+ through its discriminator because we passed in
268
+ _visited_composed_classes = (Animal,)
269
+ agent_ids ([str]): Filter by agent IDs. [optional] # noqa: E501
270
+ customer_name (str): Filter by customer name. [optional] # noqa: E501
271
+ direction (str): Filter by call direction (inbound/outbound). [optional] # noqa: E501
272
+ disposition (str): Filter by call disposition. [optional] # noqa: E501
273
+ end_date (str): Filter calls created on or before this date (ISO 8601). [optional] # noqa: E501
274
+ has_ai_engagement (bool): Filter to calls with AI agent engagement. [optional] # noqa: E501
275
+ has_recording (bool): Filter to calls that have a recording. [optional] # noqa: E501
276
+ has_transcript (bool): Filter to calls that have a transcript. [optional] # noqa: E501
277
+ max_duration_seconds (int): Filter by maximum call duration in seconds. [optional] # noqa: E501
278
+ min_duration_seconds (int): Filter by minimum call duration in seconds. [optional] # noqa: E501
279
+ phone_number (str): Filter by phone number (partial match supported). [optional] # noqa: E501
280
+ queue_uuids ([str]): Filter by queue UUIDs. [optional] # noqa: E501
281
+ search_term (str): Free text search term - smart-routed based on content (phone, email, UUID, or general text). [optional] # noqa: E501
282
+ start_date (str): Filter calls created on or after this date (ISO 8601). [optional] # noqa: E501
283
+ statuses ([str]): Filter by call statuses. [optional] # noqa: E501
284
+ transcript_search (str): Search within transcript text. [optional] # noqa: E501
285
+ """
286
+
287
+ _check_type = kwargs.pop('_check_type', True)
288
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
289
+ _path_to_item = kwargs.pop('_path_to_item', ())
290
+ _configuration = kwargs.pop('_configuration', None)
291
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
292
+
293
+ if args:
294
+ for arg in args:
295
+ if isinstance(arg, dict):
296
+ kwargs.update(arg)
297
+ else:
298
+ raise ApiTypeError(
299
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
300
+ args,
301
+ self.__class__.__name__,
302
+ ),
303
+ path_to_item=_path_to_item,
304
+ valid_classes=(self.__class__,),
305
+ )
306
+
307
+ self._data_store = {}
308
+ self._check_type = _check_type
309
+ self._spec_property_naming = _spec_property_naming
310
+ self._path_to_item = _path_to_item
311
+ self._configuration = _configuration
312
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
313
+
314
+ for var_name, var_value in kwargs.items():
315
+ if var_name not in self.attribute_map and \
316
+ self._configuration is not None and \
317
+ self._configuration.discard_unknown_keys and \
318
+ self.additional_properties_type is None:
319
+ # discard variable.
320
+ continue
321
+ setattr(self, var_name, var_value)
322
+ if var_name in self.read_only_vars:
323
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
324
+ f"class with read only attributes.")