smallestai 4.0.0__py3-none-any.whl → 4.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 +34 -44
- smallestai/atoms/__init__.py +249 -123
- smallestai/atoms/api/__init__.py +0 -1
- smallestai/atoms/api/agent_templates_api.py +26 -26
- smallestai/atoms/api/agents_api.py +1316 -190
- smallestai/atoms/api/calls_api.py +29 -29
- smallestai/atoms/api/campaigns_api.py +165 -165
- smallestai/atoms/api/knowledge_base_api.py +290 -290
- smallestai/atoms/api/logs_api.py +13 -13
- smallestai/atoms/api/organization_api.py +13 -13
- smallestai/atoms/api/user_api.py +13 -13
- smallestai/atoms/atoms_client.py +77 -49
- smallestai/atoms/models/__init__.py +103 -43
- smallestai/atoms/models/agent_agent_id_webhook_subscriptions_delete200_response.py +89 -0
- smallestai/atoms/models/{get_agent_templates200_response.py → agent_agent_id_webhook_subscriptions_get200_response.py} +7 -7
- smallestai/atoms/models/agent_agent_id_webhook_subscriptions_get404_response.py +89 -0
- smallestai/atoms/models/agent_agent_id_webhook_subscriptions_post201_response.py +89 -0
- smallestai/atoms/models/agent_agent_id_webhook_subscriptions_post400_response.py +89 -0
- smallestai/atoms/models/agent_agent_id_webhook_subscriptions_post_request.py +97 -0
- smallestai/atoms/models/agent_dto.py +8 -6
- smallestai/atoms/models/agent_dto_language.py +17 -3
- smallestai/atoms/models/agent_dto_language_switching.py +95 -0
- smallestai/atoms/models/agent_dto_synthesizer.py +1 -1
- smallestai/atoms/models/{create_agent_from_template200_response.py → agent_from_template_post200_response.py} +4 -4
- smallestai/atoms/models/{get_agents200_response.py → agent_get200_response.py} +7 -7
- smallestai/atoms/models/{get_agents200_response_data.py → agent_get200_response_data.py} +9 -13
- smallestai/atoms/models/{delete_agent200_response.py → agent_id_delete200_response.py} +4 -4
- smallestai/atoms/models/{get_agent_by_id200_response.py → agent_id_get200_response.py} +4 -4
- smallestai/atoms/models/{update_agent200_response.py → agent_id_patch200_response.py} +4 -4
- smallestai/atoms/models/{update_agent_request.py → agent_id_patch_request.py} +17 -15
- smallestai/atoms/models/{update_agent_request_language.py → agent_id_patch_request_language.py} +14 -10
- smallestai/atoms/models/agent_id_patch_request_language_switching.py +96 -0
- smallestai/atoms/models/{update_agent_request_synthesizer.py → agent_id_patch_request_synthesizer.py} +6 -6
- smallestai/atoms/models/{update_agent_request_synthesizer_voice_config.py → agent_id_patch_request_synthesizer_voice_config.py} +27 -27
- smallestai/atoms/models/{update_agent_request_synthesizer_voice_config_one_of.py → agent_id_patch_request_synthesizer_voice_config_one_of.py} +4 -4
- smallestai/atoms/models/{update_agent_request_synthesizer_voice_config_one_of1.py → agent_id_patch_request_synthesizer_voice_config_one_of1.py} +4 -4
- smallestai/atoms/models/{get_campaign_by_id200_response.py → agent_id_workflow_get200_response.py} +7 -7
- smallestai/atoms/models/agent_id_workflow_get200_response_data.py +105 -0
- smallestai/atoms/models/agent_id_workflow_get200_response_data_edges_inner.py +127 -0
- smallestai/atoms/models/agent_id_workflow_get200_response_data_edges_inner_data.py +91 -0
- smallestai/atoms/models/agent_id_workflow_get200_response_data_edges_inner_marker_end.py +91 -0
- smallestai/atoms/models/agent_id_workflow_get200_response_data_nodes_inner.py +114 -0
- smallestai/atoms/models/agent_id_workflow_get200_response_data_nodes_inner_data.py +115 -0
- smallestai/atoms/models/agent_id_workflow_get200_response_data_nodes_inner_data_variables.py +97 -0
- smallestai/atoms/models/agent_id_workflow_get200_response_data_nodes_inner_data_variables_data_inner.py +91 -0
- smallestai/atoms/models/agent_id_workflow_get200_response_data_nodes_inner_position.py +89 -0
- smallestai/atoms/models/agent_id_workflow_get404_response.py +89 -0
- smallestai/atoms/models/agent_template_get200_response.py +97 -0
- smallestai/atoms/models/{get_agent_templates200_response_data_inner.py → agent_template_get200_response_data_inner.py} +6 -6
- smallestai/atoms/models/{get_campaigns200_response.py → audience_get200_response.py} +7 -7
- smallestai/atoms/models/{create_campaign201_response_data.py → audience_get200_response_data_inner.py} +16 -18
- smallestai/atoms/models/audience_id_delete200_response.py +89 -0
- smallestai/atoms/models/audience_id_delete400_response.py +89 -0
- smallestai/atoms/models/{get_current_user200_response.py → audience_id_get200_response.py} +7 -7
- smallestai/atoms/models/audience_id_get400_response.py +89 -0
- smallestai/atoms/models/audience_id_get403_response.py +89 -0
- smallestai/atoms/models/audience_id_get404_response.py +89 -0
- smallestai/atoms/models/audience_id_members_delete200_response.py +93 -0
- smallestai/atoms/models/audience_id_members_delete200_response_data.py +87 -0
- smallestai/atoms/models/audience_id_members_delete_request.py +87 -0
- smallestai/atoms/models/audience_id_members_get200_response.py +93 -0
- smallestai/atoms/models/audience_id_members_get200_response_data.py +101 -0
- smallestai/atoms/models/{get_campaigns200_response_data_inner_audience.py → audience_id_members_get200_response_data_members_inner.py} +8 -8
- smallestai/atoms/models/audience_id_members_get400_response.py +89 -0
- smallestai/atoms/models/audience_id_members_get500_response.py +89 -0
- smallestai/atoms/models/audience_id_members_post200_response.py +97 -0
- smallestai/atoms/models/audience_id_members_post200_response_data_inner.py +93 -0
- smallestai/atoms/models/audience_id_members_post200_response_data_inner_data.py +89 -0
- smallestai/atoms/models/audience_id_members_post400_response.py +89 -0
- smallestai/atoms/models/audience_id_members_post403_response.py +89 -0
- smallestai/atoms/models/audience_id_members_post_request.py +87 -0
- smallestai/atoms/models/audience_id_members_search_get200_response.py +93 -0
- smallestai/atoms/models/audience_id_members_search_get200_response_data.py +101 -0
- smallestai/atoms/models/audience_id_members_search_get200_response_data_search_info.py +103 -0
- smallestai/atoms/models/audience_id_members_search_get400_response.py +89 -0
- smallestai/atoms/models/audience_id_members_search_get500_response.py +89 -0
- smallestai/atoms/models/{create_campaign201_response.py → audience_post200_response.py} +7 -7
- smallestai/atoms/models/audience_post200_response_data.py +104 -0
- smallestai/atoms/models/audience_post400_response.py +89 -0
- smallestai/atoms/models/campaign_get200_response.py +93 -0
- smallestai/atoms/models/campaign_get200_response_data.py +87 -0
- smallestai/atoms/models/{get_campaigns_request.py → campaign_get_request.py} +4 -4
- smallestai/atoms/models/campaign_id_get200_response.py +93 -0
- smallestai/atoms/models/{get_campaign_by_id200_response_data.py → campaign_id_get200_response_data.py} +4 -4
- smallestai/atoms/models/campaign_post201_response.py +89 -0
- smallestai/atoms/models/{create_campaign_request.py → campaign_post_request.py} +4 -4
- smallestai/atoms/models/{start_outbound_call200_response.py → conversation_id_get200_response.py} +7 -7
- smallestai/atoms/models/{get_conversation_logs200_response_data.py → conversation_id_get200_response_data.py} +4 -4
- smallestai/atoms/models/conversation_outbound_post200_response.py +93 -0
- smallestai/atoms/models/{start_outbound_call200_response_data.py → conversation_outbound_post200_response_data.py} +4 -4
- smallestai/atoms/models/{start_outbound_call_request.py → conversation_outbound_post_request.py} +4 -4
- smallestai/atoms/models/create_agent_request.py +10 -6
- smallestai/atoms/models/create_agent_request_language.py +11 -7
- smallestai/atoms/models/create_agent_request_language_synthesizer_voice_config.py +24 -24
- smallestai/atoms/models/{knowledge_base_dto.py → knowledge_base.py} +15 -8
- smallestai/atoms/models/{knowledge_base_item_dto.py → knowledge_base_item.py} +19 -17
- smallestai/atoms/models/{get_knowledge_bases200_response.py → knowledgebase_get200_response.py} +7 -7
- smallestai/atoms/models/{get_knowledge_base_by_id200_response.py → knowledgebase_id_get200_response.py} +7 -7
- smallestai/atoms/models/{get_knowledge_base_items200_response.py → knowledgebase_id_items_get200_response.py} +7 -7
- smallestai/atoms/models/{upload_text_to_knowledge_base_request.py → knowledgebase_id_items_upload_text_post_request.py} +4 -4
- smallestai/atoms/models/{create_knowledge_base201_response.py → knowledgebase_post201_response.py} +4 -4
- smallestai/atoms/models/{create_knowledge_base_request.py → knowledgebase_post_request.py} +4 -4
- smallestai/atoms/models/{get_organization200_response.py → organization_get200_response.py} +7 -7
- smallestai/atoms/models/{get_organization200_response_data.py → organization_get200_response_data.py} +10 -10
- smallestai/atoms/models/{get_organization200_response_data_members_inner.py → organization_get200_response_data_members_inner.py} +4 -4
- smallestai/atoms/models/{get_organization200_response_data_subscription.py → organization_get200_response_data_subscription.py} +4 -4
- smallestai/atoms/models/product_phone_numbers_get200_response.py +97 -0
- smallestai/atoms/models/product_phone_numbers_get200_response_data_inner.py +100 -0
- smallestai/atoms/models/product_phone_numbers_get200_response_data_inner_attributes.py +89 -0
- smallestai/atoms/models/user_get200_response.py +93 -0
- smallestai/atoms/models/{get_current_user200_response_data.py → user_get200_response_data.py} +4 -4
- smallestai/atoms/models/webhook.py +124 -0
- smallestai/atoms/models/{get_campaigns200_response_data_inner_agent.py → webhook_agent.py} +8 -6
- smallestai/atoms/models/webhook_event.py +98 -0
- smallestai/atoms/models/webhook_get200_response.py +93 -0
- smallestai/atoms/models/webhook_get200_response_data.py +140 -0
- smallestai/atoms/models/webhook_id_delete404_response.py +89 -0
- smallestai/atoms/models/webhook_post201_response.py +89 -0
- smallestai/atoms/models/webhook_post_request.py +99 -0
- smallestai/atoms/models/webhook_post_request_events_inner.py +99 -0
- smallestai/atoms/models/webhook_subscription.py +108 -0
- smallestai/atoms/models/webhook_subscription_populated.py +112 -0
- {smallestai-4.0.0.dist-info → smallestai-4.0.1.dist-info}/METADATA +2 -2
- smallestai-4.0.1.dist-info/RECORD +147 -0
- smallestai/atoms/models/get_campaigns200_response_data_inner.py +0 -118
- smallestai/atoms/models/get_conversation_logs200_response.py +0 -93
- smallestai-4.0.0.dist-info/RECORD +0 -87
- {smallestai-4.0.0.dist-info → smallestai-4.0.1.dist-info}/WHEEL +0 -0
- {smallestai-4.0.0.dist-info → smallestai-4.0.1.dist-info}/licenses/LICENSE +0 -0
- {smallestai-4.0.0.dist-info → smallestai-4.0.1.dist-info}/top_level.txt +0 -0
|
@@ -18,12 +18,12 @@ from typing_extensions import Annotated
|
|
|
18
18
|
|
|
19
19
|
from pydantic import Field, StrictStr
|
|
20
20
|
from typing_extensions import Annotated
|
|
21
|
-
from smallestai.atoms.models.
|
|
22
|
-
from smallestai.atoms.models.
|
|
23
|
-
from smallestai.atoms.models.
|
|
24
|
-
from smallestai.atoms.models.
|
|
25
|
-
from smallestai.atoms.models.
|
|
26
|
-
from smallestai.atoms.models.
|
|
21
|
+
from smallestai.atoms.models.agent_id_delete200_response import AgentIdDelete200Response
|
|
22
|
+
from smallestai.atoms.models.campaign_get200_response import CampaignGet200Response
|
|
23
|
+
from smallestai.atoms.models.campaign_get_request import CampaignGetRequest
|
|
24
|
+
from smallestai.atoms.models.campaign_id_get200_response import CampaignIdGet200Response
|
|
25
|
+
from smallestai.atoms.models.campaign_post201_response import CampaignPost201Response
|
|
26
|
+
from smallestai.atoms.models.campaign_post_request import CampaignPostRequest
|
|
27
27
|
|
|
28
28
|
from smallestai.atoms.api_client import ApiClient, RequestSerialized
|
|
29
29
|
from smallestai.atoms.api_response import ApiResponse
|
|
@@ -44,9 +44,9 @@ class CampaignsApi:
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
@validate_call
|
|
47
|
-
def
|
|
47
|
+
def campaign_get(
|
|
48
48
|
self,
|
|
49
|
-
|
|
49
|
+
campaign_get_request: CampaignGetRequest,
|
|
50
50
|
_request_timeout: Union[
|
|
51
51
|
None,
|
|
52
52
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -59,13 +59,13 @@ class CampaignsApi:
|
|
|
59
59
|
_content_type: Optional[StrictStr] = None,
|
|
60
60
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
61
61
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
62
|
-
) ->
|
|
63
|
-
"""
|
|
62
|
+
) -> CampaignGet200Response:
|
|
63
|
+
"""Retrieve all campaigns
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
Get all campaigns
|
|
66
66
|
|
|
67
|
-
:param
|
|
68
|
-
:type
|
|
67
|
+
:param campaign_get_request: (required)
|
|
68
|
+
:type campaign_get_request: CampaignGetRequest
|
|
69
69
|
:param _request_timeout: timeout setting for this request. If one
|
|
70
70
|
number provided, it will be total request
|
|
71
71
|
timeout. It can also be a pair (tuple) of
|
|
@@ -88,8 +88,8 @@ class CampaignsApi:
|
|
|
88
88
|
:return: Returns the result object.
|
|
89
89
|
""" # noqa: E501
|
|
90
90
|
|
|
91
|
-
_param = self.
|
|
92
|
-
|
|
91
|
+
_param = self._campaign_get_serialize(
|
|
92
|
+
campaign_get_request=campaign_get_request,
|
|
93
93
|
_request_auth=_request_auth,
|
|
94
94
|
_content_type=_content_type,
|
|
95
95
|
_headers=_headers,
|
|
@@ -97,7 +97,7 @@ class CampaignsApi:
|
|
|
97
97
|
)
|
|
98
98
|
|
|
99
99
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
100
|
-
'
|
|
100
|
+
'200': "CampaignGet200Response",
|
|
101
101
|
'400': "BadRequestErrorResponse",
|
|
102
102
|
'401': "UnauthorizedErrorReponse",
|
|
103
103
|
'500': "InternalServerErrorResponse",
|
|
@@ -114,9 +114,9 @@ class CampaignsApi:
|
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
@validate_call
|
|
117
|
-
def
|
|
117
|
+
def campaign_get_with_http_info(
|
|
118
118
|
self,
|
|
119
|
-
|
|
119
|
+
campaign_get_request: CampaignGetRequest,
|
|
120
120
|
_request_timeout: Union[
|
|
121
121
|
None,
|
|
122
122
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -129,13 +129,13 @@ class CampaignsApi:
|
|
|
129
129
|
_content_type: Optional[StrictStr] = None,
|
|
130
130
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
131
131
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
132
|
-
) -> ApiResponse[
|
|
133
|
-
"""
|
|
132
|
+
) -> ApiResponse[CampaignGet200Response]:
|
|
133
|
+
"""Retrieve all campaigns
|
|
134
134
|
|
|
135
|
-
|
|
135
|
+
Get all campaigns
|
|
136
136
|
|
|
137
|
-
:param
|
|
138
|
-
:type
|
|
137
|
+
:param campaign_get_request: (required)
|
|
138
|
+
:type campaign_get_request: CampaignGetRequest
|
|
139
139
|
:param _request_timeout: timeout setting for this request. If one
|
|
140
140
|
number provided, it will be total request
|
|
141
141
|
timeout. It can also be a pair (tuple) of
|
|
@@ -158,8 +158,8 @@ class CampaignsApi:
|
|
|
158
158
|
:return: Returns the result object.
|
|
159
159
|
""" # noqa: E501
|
|
160
160
|
|
|
161
|
-
_param = self.
|
|
162
|
-
|
|
161
|
+
_param = self._campaign_get_serialize(
|
|
162
|
+
campaign_get_request=campaign_get_request,
|
|
163
163
|
_request_auth=_request_auth,
|
|
164
164
|
_content_type=_content_type,
|
|
165
165
|
_headers=_headers,
|
|
@@ -167,7 +167,7 @@ class CampaignsApi:
|
|
|
167
167
|
)
|
|
168
168
|
|
|
169
169
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
170
|
-
'
|
|
170
|
+
'200': "CampaignGet200Response",
|
|
171
171
|
'400': "BadRequestErrorResponse",
|
|
172
172
|
'401': "UnauthorizedErrorReponse",
|
|
173
173
|
'500': "InternalServerErrorResponse",
|
|
@@ -184,9 +184,9 @@ class CampaignsApi:
|
|
|
184
184
|
|
|
185
185
|
|
|
186
186
|
@validate_call
|
|
187
|
-
def
|
|
187
|
+
def campaign_get_without_preload_content(
|
|
188
188
|
self,
|
|
189
|
-
|
|
189
|
+
campaign_get_request: CampaignGetRequest,
|
|
190
190
|
_request_timeout: Union[
|
|
191
191
|
None,
|
|
192
192
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -200,12 +200,12 @@ class CampaignsApi:
|
|
|
200
200
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
201
201
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
202
202
|
) -> RESTResponseType:
|
|
203
|
-
"""
|
|
203
|
+
"""Retrieve all campaigns
|
|
204
204
|
|
|
205
|
-
|
|
205
|
+
Get all campaigns
|
|
206
206
|
|
|
207
|
-
:param
|
|
208
|
-
:type
|
|
207
|
+
:param campaign_get_request: (required)
|
|
208
|
+
:type campaign_get_request: CampaignGetRequest
|
|
209
209
|
:param _request_timeout: timeout setting for this request. If one
|
|
210
210
|
number provided, it will be total request
|
|
211
211
|
timeout. It can also be a pair (tuple) of
|
|
@@ -228,8 +228,8 @@ class CampaignsApi:
|
|
|
228
228
|
:return: Returns the result object.
|
|
229
229
|
""" # noqa: E501
|
|
230
230
|
|
|
231
|
-
_param = self.
|
|
232
|
-
|
|
231
|
+
_param = self._campaign_get_serialize(
|
|
232
|
+
campaign_get_request=campaign_get_request,
|
|
233
233
|
_request_auth=_request_auth,
|
|
234
234
|
_content_type=_content_type,
|
|
235
235
|
_headers=_headers,
|
|
@@ -237,7 +237,7 @@ class CampaignsApi:
|
|
|
237
237
|
)
|
|
238
238
|
|
|
239
239
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
240
|
-
'
|
|
240
|
+
'200': "CampaignGet200Response",
|
|
241
241
|
'400': "BadRequestErrorResponse",
|
|
242
242
|
'401': "UnauthorizedErrorReponse",
|
|
243
243
|
'500': "InternalServerErrorResponse",
|
|
@@ -249,9 +249,9 @@ class CampaignsApi:
|
|
|
249
249
|
return response_data.response
|
|
250
250
|
|
|
251
251
|
|
|
252
|
-
def
|
|
252
|
+
def _campaign_get_serialize(
|
|
253
253
|
self,
|
|
254
|
-
|
|
254
|
+
campaign_get_request,
|
|
255
255
|
_request_auth,
|
|
256
256
|
_content_type,
|
|
257
257
|
_headers,
|
|
@@ -277,8 +277,8 @@ class CampaignsApi:
|
|
|
277
277
|
# process the header parameters
|
|
278
278
|
# process the form parameters
|
|
279
279
|
# process the body parameter
|
|
280
|
-
if
|
|
281
|
-
_body_params =
|
|
280
|
+
if campaign_get_request is not None:
|
|
281
|
+
_body_params = campaign_get_request
|
|
282
282
|
|
|
283
283
|
|
|
284
284
|
# set the HTTP header `Accept`
|
|
@@ -309,7 +309,7 @@ class CampaignsApi:
|
|
|
309
309
|
]
|
|
310
310
|
|
|
311
311
|
return self.api_client.param_serialize(
|
|
312
|
-
method='
|
|
312
|
+
method='GET',
|
|
313
313
|
resource_path='/campaign',
|
|
314
314
|
path_params=_path_params,
|
|
315
315
|
query_params=_query_params,
|
|
@@ -327,7 +327,7 @@ class CampaignsApi:
|
|
|
327
327
|
|
|
328
328
|
|
|
329
329
|
@validate_call
|
|
330
|
-
def
|
|
330
|
+
def campaign_id_delete(
|
|
331
331
|
self,
|
|
332
332
|
id: Annotated[StrictStr, Field(description="The ID of the campaign")],
|
|
333
333
|
_request_timeout: Union[
|
|
@@ -342,7 +342,7 @@ class CampaignsApi:
|
|
|
342
342
|
_content_type: Optional[StrictStr] = None,
|
|
343
343
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
344
344
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
345
|
-
) ->
|
|
345
|
+
) -> AgentIdDelete200Response:
|
|
346
346
|
"""Delete a campaign
|
|
347
347
|
|
|
348
348
|
Delete a campaign
|
|
@@ -371,7 +371,7 @@ class CampaignsApi:
|
|
|
371
371
|
:return: Returns the result object.
|
|
372
372
|
""" # noqa: E501
|
|
373
373
|
|
|
374
|
-
_param = self.
|
|
374
|
+
_param = self._campaign_id_delete_serialize(
|
|
375
375
|
id=id,
|
|
376
376
|
_request_auth=_request_auth,
|
|
377
377
|
_content_type=_content_type,
|
|
@@ -380,7 +380,7 @@ class CampaignsApi:
|
|
|
380
380
|
)
|
|
381
381
|
|
|
382
382
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
383
|
-
'200': "
|
|
383
|
+
'200': "AgentIdDelete200Response",
|
|
384
384
|
'400': "BadRequestErrorResponse",
|
|
385
385
|
'401': "UnauthorizedErrorReponse",
|
|
386
386
|
'500': "InternalServerErrorResponse",
|
|
@@ -397,7 +397,7 @@ class CampaignsApi:
|
|
|
397
397
|
|
|
398
398
|
|
|
399
399
|
@validate_call
|
|
400
|
-
def
|
|
400
|
+
def campaign_id_delete_with_http_info(
|
|
401
401
|
self,
|
|
402
402
|
id: Annotated[StrictStr, Field(description="The ID of the campaign")],
|
|
403
403
|
_request_timeout: Union[
|
|
@@ -412,7 +412,7 @@ class CampaignsApi:
|
|
|
412
412
|
_content_type: Optional[StrictStr] = None,
|
|
413
413
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
414
414
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
415
|
-
) -> ApiResponse[
|
|
415
|
+
) -> ApiResponse[AgentIdDelete200Response]:
|
|
416
416
|
"""Delete a campaign
|
|
417
417
|
|
|
418
418
|
Delete a campaign
|
|
@@ -441,7 +441,7 @@ class CampaignsApi:
|
|
|
441
441
|
:return: Returns the result object.
|
|
442
442
|
""" # noqa: E501
|
|
443
443
|
|
|
444
|
-
_param = self.
|
|
444
|
+
_param = self._campaign_id_delete_serialize(
|
|
445
445
|
id=id,
|
|
446
446
|
_request_auth=_request_auth,
|
|
447
447
|
_content_type=_content_type,
|
|
@@ -450,7 +450,7 @@ class CampaignsApi:
|
|
|
450
450
|
)
|
|
451
451
|
|
|
452
452
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
453
|
-
'200': "
|
|
453
|
+
'200': "AgentIdDelete200Response",
|
|
454
454
|
'400': "BadRequestErrorResponse",
|
|
455
455
|
'401': "UnauthorizedErrorReponse",
|
|
456
456
|
'500': "InternalServerErrorResponse",
|
|
@@ -467,7 +467,7 @@ class CampaignsApi:
|
|
|
467
467
|
|
|
468
468
|
|
|
469
469
|
@validate_call
|
|
470
|
-
def
|
|
470
|
+
def campaign_id_delete_without_preload_content(
|
|
471
471
|
self,
|
|
472
472
|
id: Annotated[StrictStr, Field(description="The ID of the campaign")],
|
|
473
473
|
_request_timeout: Union[
|
|
@@ -511,7 +511,7 @@ class CampaignsApi:
|
|
|
511
511
|
:return: Returns the result object.
|
|
512
512
|
""" # noqa: E501
|
|
513
513
|
|
|
514
|
-
_param = self.
|
|
514
|
+
_param = self._campaign_id_delete_serialize(
|
|
515
515
|
id=id,
|
|
516
516
|
_request_auth=_request_auth,
|
|
517
517
|
_content_type=_content_type,
|
|
@@ -520,7 +520,7 @@ class CampaignsApi:
|
|
|
520
520
|
)
|
|
521
521
|
|
|
522
522
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
523
|
-
'200': "
|
|
523
|
+
'200': "AgentIdDelete200Response",
|
|
524
524
|
'400': "BadRequestErrorResponse",
|
|
525
525
|
'401': "UnauthorizedErrorReponse",
|
|
526
526
|
'500': "InternalServerErrorResponse",
|
|
@@ -532,7 +532,7 @@ class CampaignsApi:
|
|
|
532
532
|
return response_data.response
|
|
533
533
|
|
|
534
534
|
|
|
535
|
-
def
|
|
535
|
+
def _campaign_id_delete_serialize(
|
|
536
536
|
self,
|
|
537
537
|
id,
|
|
538
538
|
_request_auth,
|
|
@@ -597,7 +597,7 @@ class CampaignsApi:
|
|
|
597
597
|
|
|
598
598
|
|
|
599
599
|
@validate_call
|
|
600
|
-
def
|
|
600
|
+
def campaign_id_get(
|
|
601
601
|
self,
|
|
602
602
|
id: Annotated[StrictStr, Field(description="The ID of the campaign")],
|
|
603
603
|
_request_timeout: Union[
|
|
@@ -612,7 +612,7 @@ class CampaignsApi:
|
|
|
612
612
|
_content_type: Optional[StrictStr] = None,
|
|
613
613
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
614
614
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
615
|
-
) ->
|
|
615
|
+
) -> CampaignIdGet200Response:
|
|
616
616
|
"""Get a campaign
|
|
617
617
|
|
|
618
618
|
Get a campaign
|
|
@@ -641,7 +641,7 @@ class CampaignsApi:
|
|
|
641
641
|
:return: Returns the result object.
|
|
642
642
|
""" # noqa: E501
|
|
643
643
|
|
|
644
|
-
_param = self.
|
|
644
|
+
_param = self._campaign_id_get_serialize(
|
|
645
645
|
id=id,
|
|
646
646
|
_request_auth=_request_auth,
|
|
647
647
|
_content_type=_content_type,
|
|
@@ -650,7 +650,7 @@ class CampaignsApi:
|
|
|
650
650
|
)
|
|
651
651
|
|
|
652
652
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
653
|
-
'200': "
|
|
653
|
+
'200': "CampaignIdGet200Response",
|
|
654
654
|
'400': "BadRequestErrorResponse",
|
|
655
655
|
'401': "UnauthorizedErrorReponse",
|
|
656
656
|
'500': "InternalServerErrorResponse",
|
|
@@ -667,7 +667,7 @@ class CampaignsApi:
|
|
|
667
667
|
|
|
668
668
|
|
|
669
669
|
@validate_call
|
|
670
|
-
def
|
|
670
|
+
def campaign_id_get_with_http_info(
|
|
671
671
|
self,
|
|
672
672
|
id: Annotated[StrictStr, Field(description="The ID of the campaign")],
|
|
673
673
|
_request_timeout: Union[
|
|
@@ -682,7 +682,7 @@ class CampaignsApi:
|
|
|
682
682
|
_content_type: Optional[StrictStr] = None,
|
|
683
683
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
684
684
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
685
|
-
) -> ApiResponse[
|
|
685
|
+
) -> ApiResponse[CampaignIdGet200Response]:
|
|
686
686
|
"""Get a campaign
|
|
687
687
|
|
|
688
688
|
Get a campaign
|
|
@@ -711,7 +711,7 @@ class CampaignsApi:
|
|
|
711
711
|
:return: Returns the result object.
|
|
712
712
|
""" # noqa: E501
|
|
713
713
|
|
|
714
|
-
_param = self.
|
|
714
|
+
_param = self._campaign_id_get_serialize(
|
|
715
715
|
id=id,
|
|
716
716
|
_request_auth=_request_auth,
|
|
717
717
|
_content_type=_content_type,
|
|
@@ -720,7 +720,7 @@ class CampaignsApi:
|
|
|
720
720
|
)
|
|
721
721
|
|
|
722
722
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
723
|
-
'200': "
|
|
723
|
+
'200': "CampaignIdGet200Response",
|
|
724
724
|
'400': "BadRequestErrorResponse",
|
|
725
725
|
'401': "UnauthorizedErrorReponse",
|
|
726
726
|
'500': "InternalServerErrorResponse",
|
|
@@ -737,7 +737,7 @@ class CampaignsApi:
|
|
|
737
737
|
|
|
738
738
|
|
|
739
739
|
@validate_call
|
|
740
|
-
def
|
|
740
|
+
def campaign_id_get_without_preload_content(
|
|
741
741
|
self,
|
|
742
742
|
id: Annotated[StrictStr, Field(description="The ID of the campaign")],
|
|
743
743
|
_request_timeout: Union[
|
|
@@ -781,7 +781,7 @@ class CampaignsApi:
|
|
|
781
781
|
:return: Returns the result object.
|
|
782
782
|
""" # noqa: E501
|
|
783
783
|
|
|
784
|
-
_param = self.
|
|
784
|
+
_param = self._campaign_id_get_serialize(
|
|
785
785
|
id=id,
|
|
786
786
|
_request_auth=_request_auth,
|
|
787
787
|
_content_type=_content_type,
|
|
@@ -790,7 +790,7 @@ class CampaignsApi:
|
|
|
790
790
|
)
|
|
791
791
|
|
|
792
792
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
793
|
-
'200': "
|
|
793
|
+
'200': "CampaignIdGet200Response",
|
|
794
794
|
'400': "BadRequestErrorResponse",
|
|
795
795
|
'401': "UnauthorizedErrorReponse",
|
|
796
796
|
'500': "InternalServerErrorResponse",
|
|
@@ -802,7 +802,7 @@ class CampaignsApi:
|
|
|
802
802
|
return response_data.response
|
|
803
803
|
|
|
804
804
|
|
|
805
|
-
def
|
|
805
|
+
def _campaign_id_get_serialize(
|
|
806
806
|
self,
|
|
807
807
|
id,
|
|
808
808
|
_request_auth,
|
|
@@ -867,9 +867,9 @@ class CampaignsApi:
|
|
|
867
867
|
|
|
868
868
|
|
|
869
869
|
@validate_call
|
|
870
|
-
def
|
|
870
|
+
def campaign_id_pause_post(
|
|
871
871
|
self,
|
|
872
|
-
|
|
872
|
+
id: Annotated[StrictStr, Field(description="The ID of the campaign")],
|
|
873
873
|
_request_timeout: Union[
|
|
874
874
|
None,
|
|
875
875
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -882,13 +882,13 @@ class CampaignsApi:
|
|
|
882
882
|
_content_type: Optional[StrictStr] = None,
|
|
883
883
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
884
884
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
885
|
-
) ->
|
|
886
|
-
"""
|
|
885
|
+
) -> AgentIdDelete200Response:
|
|
886
|
+
"""Pause a campaign
|
|
887
887
|
|
|
888
|
-
|
|
888
|
+
Pause a campaign
|
|
889
889
|
|
|
890
|
-
:param
|
|
891
|
-
:type
|
|
890
|
+
:param id: The ID of the campaign (required)
|
|
891
|
+
:type id: str
|
|
892
892
|
:param _request_timeout: timeout setting for this request. If one
|
|
893
893
|
number provided, it will be total request
|
|
894
894
|
timeout. It can also be a pair (tuple) of
|
|
@@ -911,8 +911,8 @@ class CampaignsApi:
|
|
|
911
911
|
:return: Returns the result object.
|
|
912
912
|
""" # noqa: E501
|
|
913
913
|
|
|
914
|
-
_param = self.
|
|
915
|
-
|
|
914
|
+
_param = self._campaign_id_pause_post_serialize(
|
|
915
|
+
id=id,
|
|
916
916
|
_request_auth=_request_auth,
|
|
917
917
|
_content_type=_content_type,
|
|
918
918
|
_headers=_headers,
|
|
@@ -920,7 +920,7 @@ class CampaignsApi:
|
|
|
920
920
|
)
|
|
921
921
|
|
|
922
922
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
923
|
-
'200': "
|
|
923
|
+
'200': "AgentIdDelete200Response",
|
|
924
924
|
'400': "BadRequestErrorResponse",
|
|
925
925
|
'401': "UnauthorizedErrorReponse",
|
|
926
926
|
'500': "InternalServerErrorResponse",
|
|
@@ -937,9 +937,9 @@ class CampaignsApi:
|
|
|
937
937
|
|
|
938
938
|
|
|
939
939
|
@validate_call
|
|
940
|
-
def
|
|
940
|
+
def campaign_id_pause_post_with_http_info(
|
|
941
941
|
self,
|
|
942
|
-
|
|
942
|
+
id: Annotated[StrictStr, Field(description="The ID of the campaign")],
|
|
943
943
|
_request_timeout: Union[
|
|
944
944
|
None,
|
|
945
945
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -952,13 +952,13 @@ class CampaignsApi:
|
|
|
952
952
|
_content_type: Optional[StrictStr] = None,
|
|
953
953
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
954
954
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
955
|
-
) -> ApiResponse[
|
|
956
|
-
"""
|
|
955
|
+
) -> ApiResponse[AgentIdDelete200Response]:
|
|
956
|
+
"""Pause a campaign
|
|
957
957
|
|
|
958
|
-
|
|
958
|
+
Pause a campaign
|
|
959
959
|
|
|
960
|
-
:param
|
|
961
|
-
:type
|
|
960
|
+
:param id: The ID of the campaign (required)
|
|
961
|
+
:type id: str
|
|
962
962
|
:param _request_timeout: timeout setting for this request. If one
|
|
963
963
|
number provided, it will be total request
|
|
964
964
|
timeout. It can also be a pair (tuple) of
|
|
@@ -981,8 +981,8 @@ class CampaignsApi:
|
|
|
981
981
|
:return: Returns the result object.
|
|
982
982
|
""" # noqa: E501
|
|
983
983
|
|
|
984
|
-
_param = self.
|
|
985
|
-
|
|
984
|
+
_param = self._campaign_id_pause_post_serialize(
|
|
985
|
+
id=id,
|
|
986
986
|
_request_auth=_request_auth,
|
|
987
987
|
_content_type=_content_type,
|
|
988
988
|
_headers=_headers,
|
|
@@ -990,7 +990,7 @@ class CampaignsApi:
|
|
|
990
990
|
)
|
|
991
991
|
|
|
992
992
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
993
|
-
'200': "
|
|
993
|
+
'200': "AgentIdDelete200Response",
|
|
994
994
|
'400': "BadRequestErrorResponse",
|
|
995
995
|
'401': "UnauthorizedErrorReponse",
|
|
996
996
|
'500': "InternalServerErrorResponse",
|
|
@@ -1007,9 +1007,9 @@ class CampaignsApi:
|
|
|
1007
1007
|
|
|
1008
1008
|
|
|
1009
1009
|
@validate_call
|
|
1010
|
-
def
|
|
1010
|
+
def campaign_id_pause_post_without_preload_content(
|
|
1011
1011
|
self,
|
|
1012
|
-
|
|
1012
|
+
id: Annotated[StrictStr, Field(description="The ID of the campaign")],
|
|
1013
1013
|
_request_timeout: Union[
|
|
1014
1014
|
None,
|
|
1015
1015
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1023,12 +1023,12 @@ class CampaignsApi:
|
|
|
1023
1023
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1024
1024
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1025
1025
|
) -> RESTResponseType:
|
|
1026
|
-
"""
|
|
1026
|
+
"""Pause a campaign
|
|
1027
1027
|
|
|
1028
|
-
|
|
1028
|
+
Pause a campaign
|
|
1029
1029
|
|
|
1030
|
-
:param
|
|
1031
|
-
:type
|
|
1030
|
+
:param id: The ID of the campaign (required)
|
|
1031
|
+
:type id: str
|
|
1032
1032
|
:param _request_timeout: timeout setting for this request. If one
|
|
1033
1033
|
number provided, it will be total request
|
|
1034
1034
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1051,8 +1051,8 @@ class CampaignsApi:
|
|
|
1051
1051
|
:return: Returns the result object.
|
|
1052
1052
|
""" # noqa: E501
|
|
1053
1053
|
|
|
1054
|
-
_param = self.
|
|
1055
|
-
|
|
1054
|
+
_param = self._campaign_id_pause_post_serialize(
|
|
1055
|
+
id=id,
|
|
1056
1056
|
_request_auth=_request_auth,
|
|
1057
1057
|
_content_type=_content_type,
|
|
1058
1058
|
_headers=_headers,
|
|
@@ -1060,7 +1060,7 @@ class CampaignsApi:
|
|
|
1060
1060
|
)
|
|
1061
1061
|
|
|
1062
1062
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1063
|
-
'200': "
|
|
1063
|
+
'200': "AgentIdDelete200Response",
|
|
1064
1064
|
'400': "BadRequestErrorResponse",
|
|
1065
1065
|
'401': "UnauthorizedErrorReponse",
|
|
1066
1066
|
'500': "InternalServerErrorResponse",
|
|
@@ -1072,9 +1072,9 @@ class CampaignsApi:
|
|
|
1072
1072
|
return response_data.response
|
|
1073
1073
|
|
|
1074
1074
|
|
|
1075
|
-
def
|
|
1075
|
+
def _campaign_id_pause_post_serialize(
|
|
1076
1076
|
self,
|
|
1077
|
-
|
|
1077
|
+
id,
|
|
1078
1078
|
_request_auth,
|
|
1079
1079
|
_content_type,
|
|
1080
1080
|
_headers,
|
|
@@ -1096,12 +1096,12 @@ class CampaignsApi:
|
|
|
1096
1096
|
_body_params: Optional[bytes] = None
|
|
1097
1097
|
|
|
1098
1098
|
# process the path parameters
|
|
1099
|
+
if id is not None:
|
|
1100
|
+
_path_params['id'] = id
|
|
1099
1101
|
# process the query parameters
|
|
1100
1102
|
# process the header parameters
|
|
1101
1103
|
# process the form parameters
|
|
1102
1104
|
# process the body parameter
|
|
1103
|
-
if get_campaigns_request is not None:
|
|
1104
|
-
_body_params = get_campaigns_request
|
|
1105
1105
|
|
|
1106
1106
|
|
|
1107
1107
|
# set the HTTP header `Accept`
|
|
@@ -1112,19 +1112,6 @@ class CampaignsApi:
|
|
|
1112
1112
|
]
|
|
1113
1113
|
)
|
|
1114
1114
|
|
|
1115
|
-
# set the HTTP header `Content-Type`
|
|
1116
|
-
if _content_type:
|
|
1117
|
-
_header_params['Content-Type'] = _content_type
|
|
1118
|
-
else:
|
|
1119
|
-
_default_content_type = (
|
|
1120
|
-
self.api_client.select_header_content_type(
|
|
1121
|
-
[
|
|
1122
|
-
'application/json'
|
|
1123
|
-
]
|
|
1124
|
-
)
|
|
1125
|
-
)
|
|
1126
|
-
if _default_content_type is not None:
|
|
1127
|
-
_header_params['Content-Type'] = _default_content_type
|
|
1128
1115
|
|
|
1129
1116
|
# authentication setting
|
|
1130
1117
|
_auth_settings: List[str] = [
|
|
@@ -1132,8 +1119,8 @@ class CampaignsApi:
|
|
|
1132
1119
|
]
|
|
1133
1120
|
|
|
1134
1121
|
return self.api_client.param_serialize(
|
|
1135
|
-
method='
|
|
1136
|
-
resource_path='/campaign',
|
|
1122
|
+
method='POST',
|
|
1123
|
+
resource_path='/campaign/{id}/pause',
|
|
1137
1124
|
path_params=_path_params,
|
|
1138
1125
|
query_params=_query_params,
|
|
1139
1126
|
header_params=_header_params,
|
|
@@ -1150,7 +1137,7 @@ class CampaignsApi:
|
|
|
1150
1137
|
|
|
1151
1138
|
|
|
1152
1139
|
@validate_call
|
|
1153
|
-
def
|
|
1140
|
+
def campaign_id_start_post(
|
|
1154
1141
|
self,
|
|
1155
1142
|
id: Annotated[StrictStr, Field(description="The ID of the campaign")],
|
|
1156
1143
|
_request_timeout: Union[
|
|
@@ -1165,10 +1152,10 @@ class CampaignsApi:
|
|
|
1165
1152
|
_content_type: Optional[StrictStr] = None,
|
|
1166
1153
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1167
1154
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1168
|
-
) ->
|
|
1169
|
-
"""
|
|
1155
|
+
) -> AgentIdDelete200Response:
|
|
1156
|
+
"""Start a campaign
|
|
1170
1157
|
|
|
1171
|
-
|
|
1158
|
+
Start a campaign
|
|
1172
1159
|
|
|
1173
1160
|
:param id: The ID of the campaign (required)
|
|
1174
1161
|
:type id: str
|
|
@@ -1194,7 +1181,7 @@ class CampaignsApi:
|
|
|
1194
1181
|
:return: Returns the result object.
|
|
1195
1182
|
""" # noqa: E501
|
|
1196
1183
|
|
|
1197
|
-
_param = self.
|
|
1184
|
+
_param = self._campaign_id_start_post_serialize(
|
|
1198
1185
|
id=id,
|
|
1199
1186
|
_request_auth=_request_auth,
|
|
1200
1187
|
_content_type=_content_type,
|
|
@@ -1203,7 +1190,7 @@ class CampaignsApi:
|
|
|
1203
1190
|
)
|
|
1204
1191
|
|
|
1205
1192
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1206
|
-
'
|
|
1193
|
+
'201': "AgentIdDelete200Response",
|
|
1207
1194
|
'400': "BadRequestErrorResponse",
|
|
1208
1195
|
'401': "UnauthorizedErrorReponse",
|
|
1209
1196
|
'500': "InternalServerErrorResponse",
|
|
@@ -1220,7 +1207,7 @@ class CampaignsApi:
|
|
|
1220
1207
|
|
|
1221
1208
|
|
|
1222
1209
|
@validate_call
|
|
1223
|
-
def
|
|
1210
|
+
def campaign_id_start_post_with_http_info(
|
|
1224
1211
|
self,
|
|
1225
1212
|
id: Annotated[StrictStr, Field(description="The ID of the campaign")],
|
|
1226
1213
|
_request_timeout: Union[
|
|
@@ -1235,10 +1222,10 @@ class CampaignsApi:
|
|
|
1235
1222
|
_content_type: Optional[StrictStr] = None,
|
|
1236
1223
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1237
1224
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1238
|
-
) -> ApiResponse[
|
|
1239
|
-
"""
|
|
1225
|
+
) -> ApiResponse[AgentIdDelete200Response]:
|
|
1226
|
+
"""Start a campaign
|
|
1240
1227
|
|
|
1241
|
-
|
|
1228
|
+
Start a campaign
|
|
1242
1229
|
|
|
1243
1230
|
:param id: The ID of the campaign (required)
|
|
1244
1231
|
:type id: str
|
|
@@ -1264,7 +1251,7 @@ class CampaignsApi:
|
|
|
1264
1251
|
:return: Returns the result object.
|
|
1265
1252
|
""" # noqa: E501
|
|
1266
1253
|
|
|
1267
|
-
_param = self.
|
|
1254
|
+
_param = self._campaign_id_start_post_serialize(
|
|
1268
1255
|
id=id,
|
|
1269
1256
|
_request_auth=_request_auth,
|
|
1270
1257
|
_content_type=_content_type,
|
|
@@ -1273,7 +1260,7 @@ class CampaignsApi:
|
|
|
1273
1260
|
)
|
|
1274
1261
|
|
|
1275
1262
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1276
|
-
'
|
|
1263
|
+
'201': "AgentIdDelete200Response",
|
|
1277
1264
|
'400': "BadRequestErrorResponse",
|
|
1278
1265
|
'401': "UnauthorizedErrorReponse",
|
|
1279
1266
|
'500': "InternalServerErrorResponse",
|
|
@@ -1290,7 +1277,7 @@ class CampaignsApi:
|
|
|
1290
1277
|
|
|
1291
1278
|
|
|
1292
1279
|
@validate_call
|
|
1293
|
-
def
|
|
1280
|
+
def campaign_id_start_post_without_preload_content(
|
|
1294
1281
|
self,
|
|
1295
1282
|
id: Annotated[StrictStr, Field(description="The ID of the campaign")],
|
|
1296
1283
|
_request_timeout: Union[
|
|
@@ -1306,9 +1293,9 @@ class CampaignsApi:
|
|
|
1306
1293
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1307
1294
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1308
1295
|
) -> RESTResponseType:
|
|
1309
|
-
"""
|
|
1296
|
+
"""Start a campaign
|
|
1310
1297
|
|
|
1311
|
-
|
|
1298
|
+
Start a campaign
|
|
1312
1299
|
|
|
1313
1300
|
:param id: The ID of the campaign (required)
|
|
1314
1301
|
:type id: str
|
|
@@ -1334,7 +1321,7 @@ class CampaignsApi:
|
|
|
1334
1321
|
:return: Returns the result object.
|
|
1335
1322
|
""" # noqa: E501
|
|
1336
1323
|
|
|
1337
|
-
_param = self.
|
|
1324
|
+
_param = self._campaign_id_start_post_serialize(
|
|
1338
1325
|
id=id,
|
|
1339
1326
|
_request_auth=_request_auth,
|
|
1340
1327
|
_content_type=_content_type,
|
|
@@ -1343,7 +1330,7 @@ class CampaignsApi:
|
|
|
1343
1330
|
)
|
|
1344
1331
|
|
|
1345
1332
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1346
|
-
'
|
|
1333
|
+
'201': "AgentIdDelete200Response",
|
|
1347
1334
|
'400': "BadRequestErrorResponse",
|
|
1348
1335
|
'401': "UnauthorizedErrorReponse",
|
|
1349
1336
|
'500': "InternalServerErrorResponse",
|
|
@@ -1355,7 +1342,7 @@ class CampaignsApi:
|
|
|
1355
1342
|
return response_data.response
|
|
1356
1343
|
|
|
1357
1344
|
|
|
1358
|
-
def
|
|
1345
|
+
def _campaign_id_start_post_serialize(
|
|
1359
1346
|
self,
|
|
1360
1347
|
id,
|
|
1361
1348
|
_request_auth,
|
|
@@ -1403,7 +1390,7 @@ class CampaignsApi:
|
|
|
1403
1390
|
|
|
1404
1391
|
return self.api_client.param_serialize(
|
|
1405
1392
|
method='POST',
|
|
1406
|
-
resource_path='/campaign/{id}/
|
|
1393
|
+
resource_path='/campaign/{id}/start',
|
|
1407
1394
|
path_params=_path_params,
|
|
1408
1395
|
query_params=_query_params,
|
|
1409
1396
|
header_params=_header_params,
|
|
@@ -1420,9 +1407,9 @@ class CampaignsApi:
|
|
|
1420
1407
|
|
|
1421
1408
|
|
|
1422
1409
|
@validate_call
|
|
1423
|
-
def
|
|
1410
|
+
def campaign_post(
|
|
1424
1411
|
self,
|
|
1425
|
-
|
|
1412
|
+
campaign_post_request: CampaignPostRequest,
|
|
1426
1413
|
_request_timeout: Union[
|
|
1427
1414
|
None,
|
|
1428
1415
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1435,13 +1422,13 @@ class CampaignsApi:
|
|
|
1435
1422
|
_content_type: Optional[StrictStr] = None,
|
|
1436
1423
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1437
1424
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1438
|
-
) ->
|
|
1439
|
-
"""
|
|
1425
|
+
) -> CampaignPost201Response:
|
|
1426
|
+
"""Create a campaign
|
|
1440
1427
|
|
|
1441
|
-
|
|
1428
|
+
Create a campaign
|
|
1442
1429
|
|
|
1443
|
-
:param
|
|
1444
|
-
:type
|
|
1430
|
+
:param campaign_post_request: (required)
|
|
1431
|
+
:type campaign_post_request: CampaignPostRequest
|
|
1445
1432
|
:param _request_timeout: timeout setting for this request. If one
|
|
1446
1433
|
number provided, it will be total request
|
|
1447
1434
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1464,8 +1451,8 @@ class CampaignsApi:
|
|
|
1464
1451
|
:return: Returns the result object.
|
|
1465
1452
|
""" # noqa: E501
|
|
1466
1453
|
|
|
1467
|
-
_param = self.
|
|
1468
|
-
|
|
1454
|
+
_param = self._campaign_post_serialize(
|
|
1455
|
+
campaign_post_request=campaign_post_request,
|
|
1469
1456
|
_request_auth=_request_auth,
|
|
1470
1457
|
_content_type=_content_type,
|
|
1471
1458
|
_headers=_headers,
|
|
@@ -1473,7 +1460,7 @@ class CampaignsApi:
|
|
|
1473
1460
|
)
|
|
1474
1461
|
|
|
1475
1462
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1476
|
-
'201': "
|
|
1463
|
+
'201': "CampaignPost201Response",
|
|
1477
1464
|
'400': "BadRequestErrorResponse",
|
|
1478
1465
|
'401': "UnauthorizedErrorReponse",
|
|
1479
1466
|
'500': "InternalServerErrorResponse",
|
|
@@ -1490,9 +1477,9 @@ class CampaignsApi:
|
|
|
1490
1477
|
|
|
1491
1478
|
|
|
1492
1479
|
@validate_call
|
|
1493
|
-
def
|
|
1480
|
+
def campaign_post_with_http_info(
|
|
1494
1481
|
self,
|
|
1495
|
-
|
|
1482
|
+
campaign_post_request: CampaignPostRequest,
|
|
1496
1483
|
_request_timeout: Union[
|
|
1497
1484
|
None,
|
|
1498
1485
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1505,13 +1492,13 @@ class CampaignsApi:
|
|
|
1505
1492
|
_content_type: Optional[StrictStr] = None,
|
|
1506
1493
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1507
1494
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1508
|
-
) -> ApiResponse[
|
|
1509
|
-
"""
|
|
1495
|
+
) -> ApiResponse[CampaignPost201Response]:
|
|
1496
|
+
"""Create a campaign
|
|
1510
1497
|
|
|
1511
|
-
|
|
1498
|
+
Create a campaign
|
|
1512
1499
|
|
|
1513
|
-
:param
|
|
1514
|
-
:type
|
|
1500
|
+
:param campaign_post_request: (required)
|
|
1501
|
+
:type campaign_post_request: CampaignPostRequest
|
|
1515
1502
|
:param _request_timeout: timeout setting for this request. If one
|
|
1516
1503
|
number provided, it will be total request
|
|
1517
1504
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1534,8 +1521,8 @@ class CampaignsApi:
|
|
|
1534
1521
|
:return: Returns the result object.
|
|
1535
1522
|
""" # noqa: E501
|
|
1536
1523
|
|
|
1537
|
-
_param = self.
|
|
1538
|
-
|
|
1524
|
+
_param = self._campaign_post_serialize(
|
|
1525
|
+
campaign_post_request=campaign_post_request,
|
|
1539
1526
|
_request_auth=_request_auth,
|
|
1540
1527
|
_content_type=_content_type,
|
|
1541
1528
|
_headers=_headers,
|
|
@@ -1543,7 +1530,7 @@ class CampaignsApi:
|
|
|
1543
1530
|
)
|
|
1544
1531
|
|
|
1545
1532
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1546
|
-
'201': "
|
|
1533
|
+
'201': "CampaignPost201Response",
|
|
1547
1534
|
'400': "BadRequestErrorResponse",
|
|
1548
1535
|
'401': "UnauthorizedErrorReponse",
|
|
1549
1536
|
'500': "InternalServerErrorResponse",
|
|
@@ -1560,9 +1547,9 @@ class CampaignsApi:
|
|
|
1560
1547
|
|
|
1561
1548
|
|
|
1562
1549
|
@validate_call
|
|
1563
|
-
def
|
|
1550
|
+
def campaign_post_without_preload_content(
|
|
1564
1551
|
self,
|
|
1565
|
-
|
|
1552
|
+
campaign_post_request: CampaignPostRequest,
|
|
1566
1553
|
_request_timeout: Union[
|
|
1567
1554
|
None,
|
|
1568
1555
|
Annotated[StrictFloat, Field(gt=0)],
|
|
@@ -1576,12 +1563,12 @@ class CampaignsApi:
|
|
|
1576
1563
|
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1577
1564
|
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1578
1565
|
) -> RESTResponseType:
|
|
1579
|
-
"""
|
|
1566
|
+
"""Create a campaign
|
|
1580
1567
|
|
|
1581
|
-
|
|
1568
|
+
Create a campaign
|
|
1582
1569
|
|
|
1583
|
-
:param
|
|
1584
|
-
:type
|
|
1570
|
+
:param campaign_post_request: (required)
|
|
1571
|
+
:type campaign_post_request: CampaignPostRequest
|
|
1585
1572
|
:param _request_timeout: timeout setting for this request. If one
|
|
1586
1573
|
number provided, it will be total request
|
|
1587
1574
|
timeout. It can also be a pair (tuple) of
|
|
@@ -1604,8 +1591,8 @@ class CampaignsApi:
|
|
|
1604
1591
|
:return: Returns the result object.
|
|
1605
1592
|
""" # noqa: E501
|
|
1606
1593
|
|
|
1607
|
-
_param = self.
|
|
1608
|
-
|
|
1594
|
+
_param = self._campaign_post_serialize(
|
|
1595
|
+
campaign_post_request=campaign_post_request,
|
|
1609
1596
|
_request_auth=_request_auth,
|
|
1610
1597
|
_content_type=_content_type,
|
|
1611
1598
|
_headers=_headers,
|
|
@@ -1613,7 +1600,7 @@ class CampaignsApi:
|
|
|
1613
1600
|
)
|
|
1614
1601
|
|
|
1615
1602
|
_response_types_map: Dict[str, Optional[str]] = {
|
|
1616
|
-
'201': "
|
|
1603
|
+
'201': "CampaignPost201Response",
|
|
1617
1604
|
'400': "BadRequestErrorResponse",
|
|
1618
1605
|
'401': "UnauthorizedErrorReponse",
|
|
1619
1606
|
'500': "InternalServerErrorResponse",
|
|
@@ -1625,9 +1612,9 @@ class CampaignsApi:
|
|
|
1625
1612
|
return response_data.response
|
|
1626
1613
|
|
|
1627
1614
|
|
|
1628
|
-
def
|
|
1615
|
+
def _campaign_post_serialize(
|
|
1629
1616
|
self,
|
|
1630
|
-
|
|
1617
|
+
campaign_post_request,
|
|
1631
1618
|
_request_auth,
|
|
1632
1619
|
_content_type,
|
|
1633
1620
|
_headers,
|
|
@@ -1649,12 +1636,12 @@ class CampaignsApi:
|
|
|
1649
1636
|
_body_params: Optional[bytes] = None
|
|
1650
1637
|
|
|
1651
1638
|
# process the path parameters
|
|
1652
|
-
if id is not None:
|
|
1653
|
-
_path_params['id'] = id
|
|
1654
1639
|
# process the query parameters
|
|
1655
1640
|
# process the header parameters
|
|
1656
1641
|
# process the form parameters
|
|
1657
1642
|
# process the body parameter
|
|
1643
|
+
if campaign_post_request is not None:
|
|
1644
|
+
_body_params = campaign_post_request
|
|
1658
1645
|
|
|
1659
1646
|
|
|
1660
1647
|
# set the HTTP header `Accept`
|
|
@@ -1665,6 +1652,19 @@ class CampaignsApi:
|
|
|
1665
1652
|
]
|
|
1666
1653
|
)
|
|
1667
1654
|
|
|
1655
|
+
# set the HTTP header `Content-Type`
|
|
1656
|
+
if _content_type:
|
|
1657
|
+
_header_params['Content-Type'] = _content_type
|
|
1658
|
+
else:
|
|
1659
|
+
_default_content_type = (
|
|
1660
|
+
self.api_client.select_header_content_type(
|
|
1661
|
+
[
|
|
1662
|
+
'application/json'
|
|
1663
|
+
]
|
|
1664
|
+
)
|
|
1665
|
+
)
|
|
1666
|
+
if _default_content_type is not None:
|
|
1667
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1668
1668
|
|
|
1669
1669
|
# authentication setting
|
|
1670
1670
|
_auth_settings: List[str] = [
|
|
@@ -1673,7 +1673,7 @@ class CampaignsApi:
|
|
|
1673
1673
|
|
|
1674
1674
|
return self.api_client.param_serialize(
|
|
1675
1675
|
method='POST',
|
|
1676
|
-
resource_path='/campaign
|
|
1676
|
+
resource_path='/campaign',
|
|
1677
1677
|
path_params=_path_params,
|
|
1678
1678
|
query_params=_query_params,
|
|
1679
1679
|
header_params=_header_params,
|