airbyte-agent-mailchimp 0.1.4__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.
- airbyte_agent_mailchimp/__init__.py +217 -0
- airbyte_agent_mailchimp/_vendored/__init__.py +1 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/__init__.py +82 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/auth_strategies.py +1120 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/auth_template.py +135 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/cloud_utils/__init__.py +5 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/cloud_utils/client.py +213 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/connector_model_loader.py +965 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/constants.py +78 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/exceptions.py +23 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/executor/__init__.py +31 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/executor/hosted_executor.py +196 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/executor/local_executor.py +1641 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/executor/models.py +190 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/extensions.py +693 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/http/__init__.py +37 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/http/adapters/__init__.py +9 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/http/adapters/httpx_adapter.py +251 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/http/config.py +98 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/http/exceptions.py +119 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/http/protocols.py +114 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/http/response.py +104 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/http_client.py +686 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/introspection.py +262 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/logging/__init__.py +11 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/logging/logger.py +264 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/logging/types.py +92 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/observability/__init__.py +11 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/observability/config.py +179 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/observability/models.py +19 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/observability/redactor.py +81 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/observability/session.py +103 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/performance/__init__.py +6 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/performance/instrumentation.py +57 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/performance/metrics.py +93 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/schema/__init__.py +75 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/schema/base.py +164 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/schema/components.py +239 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/schema/connector.py +120 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/schema/extensions.py +230 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/schema/operations.py +146 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/schema/security.py +223 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/secrets.py +182 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/telemetry/__init__.py +10 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/telemetry/config.py +32 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/telemetry/events.py +59 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/telemetry/tracker.py +155 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/types.py +245 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/utils.py +60 -0
- airbyte_agent_mailchimp/_vendored/connector_sdk/validation.py +822 -0
- airbyte_agent_mailchimp/connector.py +1378 -0
- airbyte_agent_mailchimp/connector_model.py +4749 -0
- airbyte_agent_mailchimp/models.py +956 -0
- airbyte_agent_mailchimp/types.py +164 -0
- airbyte_agent_mailchimp-0.1.4.dist-info/METADATA +119 -0
- airbyte_agent_mailchimp-0.1.4.dist-info/RECORD +57 -0
- airbyte_agent_mailchimp-0.1.4.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,956 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Pydantic models for mailchimp connector.
|
|
3
|
+
|
|
4
|
+
This module contains Pydantic models used for authentication configuration
|
|
5
|
+
and response envelope types.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
from pydantic import BaseModel, ConfigDict, Field
|
|
11
|
+
from typing import TypeVar, Generic, Union, Any
|
|
12
|
+
from typing import Optional
|
|
13
|
+
|
|
14
|
+
# Authentication configuration
|
|
15
|
+
|
|
16
|
+
class MailchimpAuthConfig(BaseModel):
|
|
17
|
+
"""API Key Authentication"""
|
|
18
|
+
|
|
19
|
+
model_config = ConfigDict(extra="forbid")
|
|
20
|
+
|
|
21
|
+
api_key: str
|
|
22
|
+
"""Your Mailchimp API key. You can find this in your Mailchimp account under Account > Extras > API keys."""
|
|
23
|
+
data_center: Optional[str] = None
|
|
24
|
+
"""The data center for your Mailchimp account. This is the suffix of your API key (e.g., 'us6' if your API key ends with '-us6')."""
|
|
25
|
+
|
|
26
|
+
# ===== RESPONSE TYPE DEFINITIONS (PYDANTIC) =====
|
|
27
|
+
|
|
28
|
+
class CampaignRecipients(BaseModel):
|
|
29
|
+
"""List settings for the campaign"""
|
|
30
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
31
|
+
|
|
32
|
+
list_id: Union[str | None, Any] = Field(default=None, description="The unique list id")
|
|
33
|
+
"""The unique list id"""
|
|
34
|
+
list_is_active: Union[bool | None, Any] = Field(default=None, description="The status of the list used")
|
|
35
|
+
"""The status of the list used"""
|
|
36
|
+
list_name: Union[str | None, Any] = Field(default=None, description="The name of the list")
|
|
37
|
+
"""The name of the list"""
|
|
38
|
+
segment_text: Union[str | None, Any] = Field(default=None, description="A description of the segment used for the campaign")
|
|
39
|
+
"""A description of the segment used for the campaign"""
|
|
40
|
+
recipient_count: Union[int | None, Any] = Field(default=None, description="Count of the recipients on the associated list")
|
|
41
|
+
"""Count of the recipients on the associated list"""
|
|
42
|
+
|
|
43
|
+
class CampaignTracking(BaseModel):
|
|
44
|
+
"""The tracking options for a campaign"""
|
|
45
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
46
|
+
|
|
47
|
+
opens: Union[bool | None, Any] = Field(default=None, description="Whether to track opens")
|
|
48
|
+
"""Whether to track opens"""
|
|
49
|
+
html_clicks: Union[bool | None, Any] = Field(default=None, description="Whether to track clicks in the HTML version of the campaign")
|
|
50
|
+
"""Whether to track clicks in the HTML version of the campaign"""
|
|
51
|
+
text_clicks: Union[bool | None, Any] = Field(default=None, description="Whether to track clicks in the plain-text version of the campaign")
|
|
52
|
+
"""Whether to track clicks in the plain-text version of the campaign"""
|
|
53
|
+
goal_tracking: Union[bool | None, Any] = Field(default=None, description="Whether to enable Goal tracking")
|
|
54
|
+
"""Whether to enable Goal tracking"""
|
|
55
|
+
ecomm360: Union[bool | None, Any] = Field(default=None, description="Whether to enable eCommerce360 tracking")
|
|
56
|
+
"""Whether to enable eCommerce360 tracking"""
|
|
57
|
+
google_analytics: Union[str | None, Any] = Field(default=None, description="The custom slug for Google Analytics tracking")
|
|
58
|
+
"""The custom slug for Google Analytics tracking"""
|
|
59
|
+
clicktale: Union[str | None, Any] = Field(default=None, description="The custom slug for ClickTale tracking")
|
|
60
|
+
"""The custom slug for ClickTale tracking"""
|
|
61
|
+
|
|
62
|
+
class CampaignSettings(BaseModel):
|
|
63
|
+
"""The settings for your campaign"""
|
|
64
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
65
|
+
|
|
66
|
+
subject_line: Union[str | None, Any] = Field(default=None, description="The subject line for the campaign")
|
|
67
|
+
"""The subject line for the campaign"""
|
|
68
|
+
preview_text: Union[str | None, Any] = Field(default=None, description="The preview text for the campaign")
|
|
69
|
+
"""The preview text for the campaign"""
|
|
70
|
+
title: Union[str | None, Any] = Field(default=None, description="The title of the campaign")
|
|
71
|
+
"""The title of the campaign"""
|
|
72
|
+
from_name: Union[str | None, Any] = Field(default=None, description="The from name on the campaign")
|
|
73
|
+
"""The from name on the campaign"""
|
|
74
|
+
reply_to: Union[str | None, Any] = Field(default=None, description="The reply-to email address for the campaign")
|
|
75
|
+
"""The reply-to email address for the campaign"""
|
|
76
|
+
use_conversation: Union[bool | None, Any] = Field(default=None, description="Use Mailchimp Conversation feature to manage out-of-office replies")
|
|
77
|
+
"""Use Mailchimp Conversation feature to manage out-of-office replies"""
|
|
78
|
+
to_name: Union[str | None, Any] = Field(default=None, description="The campaign's custom to name")
|
|
79
|
+
"""The campaign's custom to name"""
|
|
80
|
+
folder_id: Union[str | None, Any] = Field(default=None, description="If the campaign is listed in a folder")
|
|
81
|
+
"""If the campaign is listed in a folder"""
|
|
82
|
+
authenticate: Union[bool | None, Any] = Field(default=None, description="Whether Mailchimp authenticated the campaign")
|
|
83
|
+
"""Whether Mailchimp authenticated the campaign"""
|
|
84
|
+
auto_footer: Union[bool | None, Any] = Field(default=None, description="Automatically append Mailchimp's default footer to the campaign")
|
|
85
|
+
"""Automatically append Mailchimp's default footer to the campaign"""
|
|
86
|
+
inline_css: Union[bool | None, Any] = Field(default=None, description="Automatically inline the CSS included with the campaign content")
|
|
87
|
+
"""Automatically inline the CSS included with the campaign content"""
|
|
88
|
+
auto_tweet: Union[bool | None, Any] = Field(default=None, description="Automatically tweet a link to the campaign archive page when the campaign is sent")
|
|
89
|
+
"""Automatically tweet a link to the campaign archive page when the campaign is sent"""
|
|
90
|
+
fb_comments: Union[bool | None, Any] = Field(default=None, description="Allows Facebook comments on the campaign")
|
|
91
|
+
"""Allows Facebook comments on the campaign"""
|
|
92
|
+
timewarp: Union[bool | None, Any] = Field(default=None, description="Send this campaign using Timewarp")
|
|
93
|
+
"""Send this campaign using Timewarp"""
|
|
94
|
+
template_id: Union[int | None, Any] = Field(default=None, description="The id for the template used in this campaign")
|
|
95
|
+
"""The id for the template used in this campaign"""
|
|
96
|
+
drag_and_drop: Union[bool | None, Any] = Field(default=None, description="Whether the campaign uses the drag-and-drop editor")
|
|
97
|
+
"""Whether the campaign uses the drag-and-drop editor"""
|
|
98
|
+
|
|
99
|
+
class CampaignDeliveryStatus(BaseModel):
|
|
100
|
+
"""Updates on campaigns in the process of sending"""
|
|
101
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
102
|
+
|
|
103
|
+
enabled: Union[bool | None, Any] = Field(default=None, description="Whether Campaign Delivery Status is enabled for this account and target campaign")
|
|
104
|
+
"""Whether Campaign Delivery Status is enabled for this account and target campaign"""
|
|
105
|
+
can_cancel: Union[bool | None, Any] = Field(default=None, description="Whether a campaign send can be canceled")
|
|
106
|
+
"""Whether a campaign send can be canceled"""
|
|
107
|
+
status: Union[str | None, Any] = Field(default=None, description="The current state of a campaign delivery")
|
|
108
|
+
"""The current state of a campaign delivery"""
|
|
109
|
+
emails_sent: Union[int | None, Any] = Field(default=None, description="The total number of emails confirmed sent for this campaign so far")
|
|
110
|
+
"""The total number of emails confirmed sent for this campaign so far"""
|
|
111
|
+
emails_canceled: Union[int | None, Any] = Field(default=None, description="The total number of emails canceled for this campaign")
|
|
112
|
+
"""The total number of emails canceled for this campaign"""
|
|
113
|
+
|
|
114
|
+
class CampaignReportSummaryEcommerce(BaseModel):
|
|
115
|
+
"""E-Commerce stats for a campaign"""
|
|
116
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
117
|
+
|
|
118
|
+
total_orders: Union[int | None, Any] = Field(default=None, description="The total orders for a campaign")
|
|
119
|
+
"""The total orders for a campaign"""
|
|
120
|
+
total_spent: Union[float | None, Any] = Field(default=None, description="The total spent for a campaign")
|
|
121
|
+
"""The total spent for a campaign"""
|
|
122
|
+
total_revenue: Union[float | None, Any] = Field(default=None, description="The total revenue for a campaign")
|
|
123
|
+
"""The total revenue for a campaign"""
|
|
124
|
+
|
|
125
|
+
class CampaignReportSummary(BaseModel):
|
|
126
|
+
"""For sent campaigns, a summary of opens, clicks, and e-commerce data"""
|
|
127
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
128
|
+
|
|
129
|
+
opens: Union[int | None, Any] = Field(default=None, description="The total number of opens for a campaign")
|
|
130
|
+
"""The total number of opens for a campaign"""
|
|
131
|
+
unique_opens: Union[int | None, Any] = Field(default=None, description="The number of unique opens")
|
|
132
|
+
"""The number of unique opens"""
|
|
133
|
+
open_rate: Union[float | None, Any] = Field(default=None, description="The number of unique opens divided by the total number of successful deliveries")
|
|
134
|
+
"""The number of unique opens divided by the total number of successful deliveries"""
|
|
135
|
+
clicks: Union[int | None, Any] = Field(default=None, description="The total number of clicks for an campaign")
|
|
136
|
+
"""The total number of clicks for an campaign"""
|
|
137
|
+
subscriber_clicks: Union[int | None, Any] = Field(default=None, description="The number of unique clicks")
|
|
138
|
+
"""The number of unique clicks"""
|
|
139
|
+
click_rate: Union[float | None, Any] = Field(default=None, description="The number of unique clicks divided by the total number of successful deliveries")
|
|
140
|
+
"""The number of unique clicks divided by the total number of successful deliveries"""
|
|
141
|
+
ecommerce: Union[CampaignReportSummaryEcommerce | None, Any] = Field(default=None, description="E-Commerce stats for a campaign")
|
|
142
|
+
"""E-Commerce stats for a campaign"""
|
|
143
|
+
|
|
144
|
+
class Campaign(BaseModel):
|
|
145
|
+
"""A summary of an individual campaign's settings and content"""
|
|
146
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
147
|
+
|
|
148
|
+
id: Union[str, Any] = Field(default=None)
|
|
149
|
+
web_id: Union[int | None, Any] = Field(default=None)
|
|
150
|
+
parent_campaign_id: Union[str | None, Any] = Field(default=None)
|
|
151
|
+
type: Union[str | None, Any] = Field(default=None)
|
|
152
|
+
create_time: Union[str | None, Any] = Field(default=None)
|
|
153
|
+
archive_url: Union[str | None, Any] = Field(default=None)
|
|
154
|
+
long_archive_url: Union[str | None, Any] = Field(default=None)
|
|
155
|
+
status: Union[str | None, Any] = Field(default=None)
|
|
156
|
+
emails_sent: Union[int | None, Any] = Field(default=None)
|
|
157
|
+
send_time: Union[str | None, Any] = Field(default=None)
|
|
158
|
+
content_type: Union[str | None, Any] = Field(default=None)
|
|
159
|
+
needs_block_refresh: Union[bool | None, Any] = Field(default=None)
|
|
160
|
+
resendable: Union[bool | None, Any] = Field(default=None)
|
|
161
|
+
recipients: Union[CampaignRecipients | None, Any] = Field(default=None)
|
|
162
|
+
settings: Union[CampaignSettings | None, Any] = Field(default=None)
|
|
163
|
+
tracking: Union[CampaignTracking | None, Any] = Field(default=None)
|
|
164
|
+
report_summary: Union[CampaignReportSummary | None, Any] = Field(default=None)
|
|
165
|
+
delivery_status: Union[CampaignDeliveryStatus | None, Any] = Field(default=None)
|
|
166
|
+
|
|
167
|
+
class CampaignsList(BaseModel):
|
|
168
|
+
"""A collection of campaigns"""
|
|
169
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
170
|
+
|
|
171
|
+
campaigns: Union[list[Campaign], Any] = Field(default=None)
|
|
172
|
+
total_items: Union[int, Any] = Field(default=None)
|
|
173
|
+
|
|
174
|
+
class ListCampaignDefaults(BaseModel):
|
|
175
|
+
"""Default values for campaigns created for this list"""
|
|
176
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
177
|
+
|
|
178
|
+
from_name: Union[str | None, Any] = Field(default=None, description="The default from name for campaigns sent to this list")
|
|
179
|
+
"""The default from name for campaigns sent to this list"""
|
|
180
|
+
from_email: Union[str | None, Any] = Field(default=None, description="The default from email for campaigns sent to this list")
|
|
181
|
+
"""The default from email for campaigns sent to this list"""
|
|
182
|
+
subject: Union[str | None, Any] = Field(default=None, description="The default subject line for campaigns sent to this list")
|
|
183
|
+
"""The default subject line for campaigns sent to this list"""
|
|
184
|
+
language: Union[str | None, Any] = Field(default=None, description="The default language for this list's forms")
|
|
185
|
+
"""The default language for this list's forms"""
|
|
186
|
+
|
|
187
|
+
class ListContact(BaseModel):
|
|
188
|
+
"""Contact information displayed in campaign footers to comply with international spam laws"""
|
|
189
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
190
|
+
|
|
191
|
+
company: Union[str | None, Any] = Field(default=None, description="The company name for the list")
|
|
192
|
+
"""The company name for the list"""
|
|
193
|
+
address1: Union[str | None, Any] = Field(default=None, description="The street address for the list contact")
|
|
194
|
+
"""The street address for the list contact"""
|
|
195
|
+
address2: Union[str | None, Any] = Field(default=None, description="The street address for the list contact")
|
|
196
|
+
"""The street address for the list contact"""
|
|
197
|
+
city: Union[str | None, Any] = Field(default=None, description="The city for the list contact")
|
|
198
|
+
"""The city for the list contact"""
|
|
199
|
+
state: Union[str | None, Any] = Field(default=None, description="The state for the list contact")
|
|
200
|
+
"""The state for the list contact"""
|
|
201
|
+
zip: Union[str | None, Any] = Field(default=None, description="The postal or zip code for the list contact")
|
|
202
|
+
"""The postal or zip code for the list contact"""
|
|
203
|
+
country: Union[str | None, Any] = Field(default=None, description="A two-character ISO3166 country code")
|
|
204
|
+
"""A two-character ISO3166 country code"""
|
|
205
|
+
phone: Union[str | None, Any] = Field(default=None, description="The phone number for the list contact")
|
|
206
|
+
"""The phone number for the list contact"""
|
|
207
|
+
|
|
208
|
+
class ListStats(BaseModel):
|
|
209
|
+
"""Stats for the list"""
|
|
210
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
211
|
+
|
|
212
|
+
member_count: Union[int | None, Any] = Field(default=None, description="The number of active members in the list")
|
|
213
|
+
"""The number of active members in the list"""
|
|
214
|
+
total_contacts: Union[int | None, Any] = Field(default=None, description="The number of contacts in the list, including subscribed, unsubscribed, pending, cleaned, deleted, transactional, and those that need to be reconfirmed")
|
|
215
|
+
"""The number of contacts in the list, including subscribed, unsubscribed, pending, cleaned, deleted, transactional, and those that need to be reconfirmed"""
|
|
216
|
+
unsubscribe_count: Union[int | None, Any] = Field(default=None, description="The number of members who have unsubscribed from the list")
|
|
217
|
+
"""The number of members who have unsubscribed from the list"""
|
|
218
|
+
cleaned_count: Union[int | None, Any] = Field(default=None, description="The number of members cleaned from the list")
|
|
219
|
+
"""The number of members cleaned from the list"""
|
|
220
|
+
member_count_since_send: Union[int | None, Any] = Field(default=None, description="The number of active members in the list since the last campaign was sent")
|
|
221
|
+
"""The number of active members in the list since the last campaign was sent"""
|
|
222
|
+
unsubscribe_count_since_send: Union[int | None, Any] = Field(default=None, description="The number of members who have unsubscribed since the last campaign was sent")
|
|
223
|
+
"""The number of members who have unsubscribed since the last campaign was sent"""
|
|
224
|
+
cleaned_count_since_send: Union[int | None, Any] = Field(default=None, description="The number of members cleaned from the list since the last campaign was sent")
|
|
225
|
+
"""The number of members cleaned from the list since the last campaign was sent"""
|
|
226
|
+
campaign_count: Union[int | None, Any] = Field(default=None, description="The number of campaigns in any status that use this list")
|
|
227
|
+
"""The number of campaigns in any status that use this list"""
|
|
228
|
+
campaign_last_sent: Union[str | None, Any] = Field(default=None, description="The date and time the last campaign was sent to this list")
|
|
229
|
+
"""The date and time the last campaign was sent to this list"""
|
|
230
|
+
merge_field_count: Union[int | None, Any] = Field(default=None, description="The number of merge fields for this list")
|
|
231
|
+
"""The number of merge fields for this list"""
|
|
232
|
+
avg_sub_rate: Union[float | None, Any] = Field(default=None, description="The average number of subscriptions per month for the list")
|
|
233
|
+
"""The average number of subscriptions per month for the list"""
|
|
234
|
+
avg_unsub_rate: Union[float | None, Any] = Field(default=None, description="The average number of unsubscriptions per month for the list")
|
|
235
|
+
"""The average number of unsubscriptions per month for the list"""
|
|
236
|
+
target_sub_rate: Union[float | None, Any] = Field(default=None, description="The target number of subscriptions per month for the list to keep it growing")
|
|
237
|
+
"""The target number of subscriptions per month for the list to keep it growing"""
|
|
238
|
+
open_rate: Union[float | None, Any] = Field(default=None, description="The average open rate for campaigns sent to this list")
|
|
239
|
+
"""The average open rate for campaigns sent to this list"""
|
|
240
|
+
click_rate: Union[float | None, Any] = Field(default=None, description="The average click rate for campaigns sent to this list")
|
|
241
|
+
"""The average click rate for campaigns sent to this list"""
|
|
242
|
+
last_sub_date: Union[str | None, Any] = Field(default=None, description="The date and time of the last time someone subscribed to this list")
|
|
243
|
+
"""The date and time of the last time someone subscribed to this list"""
|
|
244
|
+
last_unsub_date: Union[str | None, Any] = Field(default=None, description="The date and time of the last time someone unsubscribed from this list")
|
|
245
|
+
"""The date and time of the last time someone unsubscribed from this list"""
|
|
246
|
+
|
|
247
|
+
class List(BaseModel):
|
|
248
|
+
"""Information about a specific list"""
|
|
249
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
250
|
+
|
|
251
|
+
id: Union[str, Any] = Field(default=None)
|
|
252
|
+
web_id: Union[int | None, Any] = Field(default=None)
|
|
253
|
+
name: Union[str | None, Any] = Field(default=None)
|
|
254
|
+
contact: Union[ListContact | None, Any] = Field(default=None)
|
|
255
|
+
permission_reminder: Union[str | None, Any] = Field(default=None)
|
|
256
|
+
use_archive_bar: Union[bool | None, Any] = Field(default=None)
|
|
257
|
+
campaign_defaults: Union[ListCampaignDefaults | None, Any] = Field(default=None)
|
|
258
|
+
notify_on_subscribe: Union[str | None, Any] = Field(default=None)
|
|
259
|
+
notify_on_unsubscribe: Union[str | None, Any] = Field(default=None)
|
|
260
|
+
date_created: Union[str | None, Any] = Field(default=None)
|
|
261
|
+
list_rating: Union[int | None, Any] = Field(default=None)
|
|
262
|
+
email_type_option: Union[bool | None, Any] = Field(default=None)
|
|
263
|
+
subscribe_url_short: Union[str | None, Any] = Field(default=None)
|
|
264
|
+
subscribe_url_long: Union[str | None, Any] = Field(default=None)
|
|
265
|
+
beamer_address: Union[str | None, Any] = Field(default=None)
|
|
266
|
+
visibility: Union[str | None, Any] = Field(default=None)
|
|
267
|
+
double_optin: Union[bool | None, Any] = Field(default=None)
|
|
268
|
+
has_welcome: Union[bool | None, Any] = Field(default=None)
|
|
269
|
+
marketing_permissions: Union[bool | None, Any] = Field(default=None)
|
|
270
|
+
stats: Union[ListStats | None, Any] = Field(default=None)
|
|
271
|
+
|
|
272
|
+
class ListsList(BaseModel):
|
|
273
|
+
"""A collection of subscriber lists for this account"""
|
|
274
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
275
|
+
|
|
276
|
+
lists: Union[list[List], Any] = Field(default=None)
|
|
277
|
+
total_items: Union[int, Any] = Field(default=None)
|
|
278
|
+
|
|
279
|
+
class ListMemberStatsEcommerceData(BaseModel):
|
|
280
|
+
"""Ecommerce stats for the list member if the list is attached to a store"""
|
|
281
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
282
|
+
|
|
283
|
+
total_revenue: Union[float | None, Any] = Field(default=None, description="The total revenue the list member has brought in")
|
|
284
|
+
"""The total revenue the list member has brought in"""
|
|
285
|
+
number_of_orders: Union[float | None, Any] = Field(default=None, description="The total number of orders placed by the list member")
|
|
286
|
+
"""The total number of orders placed by the list member"""
|
|
287
|
+
currency_code: Union[str | None, Any] = Field(default=None, description="The three-letter ISO 4217 code for the currency that the store accepts")
|
|
288
|
+
"""The three-letter ISO 4217 code for the currency that the store accepts"""
|
|
289
|
+
|
|
290
|
+
class ListMemberStats(BaseModel):
|
|
291
|
+
"""Open and click rates for this subscriber"""
|
|
292
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
293
|
+
|
|
294
|
+
avg_open_rate: Union[float | None, Any] = Field(default=None, description="A subscriber's average open rate")
|
|
295
|
+
"""A subscriber's average open rate"""
|
|
296
|
+
avg_click_rate: Union[float | None, Any] = Field(default=None, description="A subscriber's average clickthrough rate")
|
|
297
|
+
"""A subscriber's average clickthrough rate"""
|
|
298
|
+
ecommerce_data: Union[ListMemberStatsEcommerceData | None, Any] = Field(default=None, description="Ecommerce stats for the list member if the list is attached to a store")
|
|
299
|
+
"""Ecommerce stats for the list member if the list is attached to a store"""
|
|
300
|
+
|
|
301
|
+
class ListMemberLocation(BaseModel):
|
|
302
|
+
"""Subscriber location information"""
|
|
303
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
304
|
+
|
|
305
|
+
latitude: Union[float | None, Any] = Field(default=None, description="The location latitude")
|
|
306
|
+
"""The location latitude"""
|
|
307
|
+
longitude: Union[float | None, Any] = Field(default=None, description="The location longitude")
|
|
308
|
+
"""The location longitude"""
|
|
309
|
+
gmtoff: Union[int | None, Any] = Field(default=None, description="The time difference in hours from GMT")
|
|
310
|
+
"""The time difference in hours from GMT"""
|
|
311
|
+
dstoff: Union[int | None, Any] = Field(default=None, description="The offset for timezones where daylight saving time is observed")
|
|
312
|
+
"""The offset for timezones where daylight saving time is observed"""
|
|
313
|
+
country_code: Union[str | None, Any] = Field(default=None, description="The unique code for the location country")
|
|
314
|
+
"""The unique code for the location country"""
|
|
315
|
+
timezone: Union[str | None, Any] = Field(default=None, description="The timezone for the location")
|
|
316
|
+
"""The timezone for the location"""
|
|
317
|
+
region: Union[str | None, Any] = Field(default=None, description="The region for the location")
|
|
318
|
+
"""The region for the location"""
|
|
319
|
+
|
|
320
|
+
class ListMemberTagsItem(BaseModel):
|
|
321
|
+
"""Nested schema for ListMember.tags_item"""
|
|
322
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
323
|
+
|
|
324
|
+
id: Union[int | None, Any] = Field(default=None, description="The tag id")
|
|
325
|
+
"""The tag id"""
|
|
326
|
+
name: Union[str | None, Any] = Field(default=None, description="The name of the tag")
|
|
327
|
+
"""The name of the tag"""
|
|
328
|
+
|
|
329
|
+
class ListMember(BaseModel):
|
|
330
|
+
"""Individuals who are currently or have been previously subscribed to this list"""
|
|
331
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
332
|
+
|
|
333
|
+
id: Union[str, Any] = Field(default=None)
|
|
334
|
+
email_address: Union[str | None, Any] = Field(default=None)
|
|
335
|
+
unique_email_id: Union[str | None, Any] = Field(default=None)
|
|
336
|
+
contact_id: Union[str | None, Any] = Field(default=None)
|
|
337
|
+
full_name: Union[str | None, Any] = Field(default=None)
|
|
338
|
+
web_id: Union[int | None, Any] = Field(default=None)
|
|
339
|
+
email_type: Union[str | None, Any] = Field(default=None)
|
|
340
|
+
status: Union[str | None, Any] = Field(default=None)
|
|
341
|
+
unsubscribe_reason: Union[str | None, Any] = Field(default=None)
|
|
342
|
+
consents_to_one_to_one_messaging: Union[bool | None, Any] = Field(default=None)
|
|
343
|
+
merge_fields: Union[dict[str, Any] | None, Any] = Field(default=None)
|
|
344
|
+
interests: Union[dict[str, bool] | None, Any] = Field(default=None)
|
|
345
|
+
stats: Union[ListMemberStats | None, Any] = Field(default=None)
|
|
346
|
+
ip_signup: Union[str | None, Any] = Field(default=None)
|
|
347
|
+
timestamp_signup: Union[str | None, Any] = Field(default=None)
|
|
348
|
+
ip_opt: Union[str | None, Any] = Field(default=None)
|
|
349
|
+
timestamp_opt: Union[str | None, Any] = Field(default=None)
|
|
350
|
+
member_rating: Union[int | None, Any] = Field(default=None)
|
|
351
|
+
last_changed: Union[str | None, Any] = Field(default=None)
|
|
352
|
+
language: Union[str | None, Any] = Field(default=None)
|
|
353
|
+
vip: Union[bool | None, Any] = Field(default=None)
|
|
354
|
+
email_client: Union[str | None, Any] = Field(default=None)
|
|
355
|
+
location: Union[ListMemberLocation | None, Any] = Field(default=None)
|
|
356
|
+
source: Union[str | None, Any] = Field(default=None)
|
|
357
|
+
tags_count: Union[int | None, Any] = Field(default=None)
|
|
358
|
+
tags: Union[list[ListMemberTagsItem] | None, Any] = Field(default=None)
|
|
359
|
+
list_id: Union[str | None, Any] = Field(default=None)
|
|
360
|
+
|
|
361
|
+
class ListMembersList(BaseModel):
|
|
362
|
+
"""Manage members of a specific Mailchimp list"""
|
|
363
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
364
|
+
|
|
365
|
+
members: Union[list[ListMember], Any] = Field(default=None)
|
|
366
|
+
list_id: Union[str | None, Any] = Field(default=None)
|
|
367
|
+
total_items: Union[int, Any] = Field(default=None)
|
|
368
|
+
|
|
369
|
+
class ReportListStats(BaseModel):
|
|
370
|
+
"""The average campaign statistics for your list"""
|
|
371
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
372
|
+
|
|
373
|
+
sub_rate: Union[float | None, Any] = Field(default=None, description="The average number of subscriptions per month for the list")
|
|
374
|
+
"""The average number of subscriptions per month for the list"""
|
|
375
|
+
unsub_rate: Union[float | None, Any] = Field(default=None, description="The average number of unsubscriptions per month for the list")
|
|
376
|
+
"""The average number of unsubscriptions per month for the list"""
|
|
377
|
+
open_rate: Union[float | None, Any] = Field(default=None, description="The average open rate for campaigns sent to this list")
|
|
378
|
+
"""The average open rate for campaigns sent to this list"""
|
|
379
|
+
click_rate: Union[float | None, Any] = Field(default=None, description="The average click rate for campaigns sent to this list")
|
|
380
|
+
"""The average click rate for campaigns sent to this list"""
|
|
381
|
+
|
|
382
|
+
class ReportEcommerce(BaseModel):
|
|
383
|
+
"""E-Commerce stats for a campaign"""
|
|
384
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
385
|
+
|
|
386
|
+
total_orders: Union[int | None, Any] = Field(default=None, description="The total orders for a campaign")
|
|
387
|
+
"""The total orders for a campaign"""
|
|
388
|
+
total_spent: Union[float | None, Any] = Field(default=None, description="The total spent for a campaign")
|
|
389
|
+
"""The total spent for a campaign"""
|
|
390
|
+
total_revenue: Union[float | None, Any] = Field(default=None, description="The total revenue for a campaign")
|
|
391
|
+
"""The total revenue for a campaign"""
|
|
392
|
+
|
|
393
|
+
class ReportFacebookLikes(BaseModel):
|
|
394
|
+
"""An object describing campaign engagement on Facebook"""
|
|
395
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
396
|
+
|
|
397
|
+
recipient_likes: Union[int | None, Any] = Field(default=None, description="The number of recipients who liked the campaign on Facebook")
|
|
398
|
+
"""The number of recipients who liked the campaign on Facebook"""
|
|
399
|
+
unique_likes: Union[int | None, Any] = Field(default=None, description="The number of unique likes")
|
|
400
|
+
"""The number of unique likes"""
|
|
401
|
+
facebook_likes: Union[int | None, Any] = Field(default=None, description="The number of Facebook likes for the campaign")
|
|
402
|
+
"""The number of Facebook likes for the campaign"""
|
|
403
|
+
|
|
404
|
+
class ReportIndustryStats(BaseModel):
|
|
405
|
+
"""The average campaign statistics for your industry"""
|
|
406
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
407
|
+
|
|
408
|
+
type: Union[str | None, Any] = Field(default=None, description="The type of business industry associated with your account")
|
|
409
|
+
"""The type of business industry associated with your account"""
|
|
410
|
+
open_rate: Union[float | None, Any] = Field(default=None, description="The industry open rate")
|
|
411
|
+
"""The industry open rate"""
|
|
412
|
+
click_rate: Union[float | None, Any] = Field(default=None, description="The industry click rate")
|
|
413
|
+
"""The industry click rate"""
|
|
414
|
+
bounce_rate: Union[float | None, Any] = Field(default=None, description="The industry bounce rate")
|
|
415
|
+
"""The industry bounce rate"""
|
|
416
|
+
unopen_rate: Union[float | None, Any] = Field(default=None, description="The industry unopened rate")
|
|
417
|
+
"""The industry unopened rate"""
|
|
418
|
+
unsub_rate: Union[float | None, Any] = Field(default=None, description="The industry unsubscribe rate")
|
|
419
|
+
"""The industry unsubscribe rate"""
|
|
420
|
+
abuse_rate: Union[float | None, Any] = Field(default=None, description="The industry abuse rate")
|
|
421
|
+
"""The industry abuse rate"""
|
|
422
|
+
|
|
423
|
+
class ReportOpens(BaseModel):
|
|
424
|
+
"""An object describing the open activity for the campaign"""
|
|
425
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
426
|
+
|
|
427
|
+
opens_total: Union[int | None, Any] = Field(default=None, description="The total number of opens for a campaign")
|
|
428
|
+
"""The total number of opens for a campaign"""
|
|
429
|
+
unique_opens: Union[int | None, Any] = Field(default=None, description="The total number of unique opens")
|
|
430
|
+
"""The total number of unique opens"""
|
|
431
|
+
open_rate: Union[float | None, Any] = Field(default=None, description="The number of unique opens divided by the total number of successful deliveries")
|
|
432
|
+
"""The number of unique opens divided by the total number of successful deliveries"""
|
|
433
|
+
last_open: Union[str | None, Any] = Field(default=None, description="The date and time of the last recorded open")
|
|
434
|
+
"""The date and time of the last recorded open"""
|
|
435
|
+
|
|
436
|
+
class ReportBounces(BaseModel):
|
|
437
|
+
"""An object describing the bounce summary for the campaign"""
|
|
438
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
439
|
+
|
|
440
|
+
hard_bounces: Union[int | None, Any] = Field(default=None, description="The total number of hard bounced email addresses")
|
|
441
|
+
"""The total number of hard bounced email addresses"""
|
|
442
|
+
soft_bounces: Union[int | None, Any] = Field(default=None, description="The total number of soft bounced email addresses")
|
|
443
|
+
"""The total number of soft bounced email addresses"""
|
|
444
|
+
syntax_errors: Union[int | None, Any] = Field(default=None, description="The total number of addresses that were syntax-related bounces")
|
|
445
|
+
"""The total number of addresses that were syntax-related bounces"""
|
|
446
|
+
|
|
447
|
+
class ReportDeliveryStatus(BaseModel):
|
|
448
|
+
"""Updates on campaigns in the process of sending"""
|
|
449
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
450
|
+
|
|
451
|
+
enabled: Union[bool | None, Any] = Field(default=None, description="Whether Campaign Delivery Status is enabled for this account and target campaign")
|
|
452
|
+
"""Whether Campaign Delivery Status is enabled for this account and target campaign"""
|
|
453
|
+
|
|
454
|
+
class ReportForwards(BaseModel):
|
|
455
|
+
"""An object describing the forwards and forward activity for the campaign"""
|
|
456
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
457
|
+
|
|
458
|
+
forwards_count: Union[int | None, Any] = Field(default=None, description="How many times the campaign has been forwarded")
|
|
459
|
+
"""How many times the campaign has been forwarded"""
|
|
460
|
+
forwards_opens: Union[int | None, Any] = Field(default=None, description="How many times the forwarded campaign has been opened")
|
|
461
|
+
"""How many times the forwarded campaign has been opened"""
|
|
462
|
+
|
|
463
|
+
class ReportClicks(BaseModel):
|
|
464
|
+
"""An object describing the click activity for the campaign"""
|
|
465
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
466
|
+
|
|
467
|
+
clicks_total: Union[int | None, Any] = Field(default=None, description="The total number of clicks for the campaign")
|
|
468
|
+
"""The total number of clicks for the campaign"""
|
|
469
|
+
unique_clicks: Union[int | None, Any] = Field(default=None, description="The total number of unique clicks for links across a campaign")
|
|
470
|
+
"""The total number of unique clicks for links across a campaign"""
|
|
471
|
+
unique_subscriber_clicks: Union[int | None, Any] = Field(default=None, description="The total number of subscribers who clicked on a campaign")
|
|
472
|
+
"""The total number of subscribers who clicked on a campaign"""
|
|
473
|
+
click_rate: Union[float | None, Any] = Field(default=None, description="The number of unique clicks divided by the total number of successful deliveries")
|
|
474
|
+
"""The number of unique clicks divided by the total number of successful deliveries"""
|
|
475
|
+
last_click: Union[str | None, Any] = Field(default=None, description="The date and time of the last recorded click for the campaign")
|
|
476
|
+
"""The date and time of the last recorded click for the campaign"""
|
|
477
|
+
|
|
478
|
+
class Report(BaseModel):
|
|
479
|
+
"""Report details about a sent campaign"""
|
|
480
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
481
|
+
|
|
482
|
+
id: Union[str, Any] = Field(default=None)
|
|
483
|
+
campaign_title: Union[str | None, Any] = Field(default=None)
|
|
484
|
+
type: Union[str | None, Any] = Field(default=None)
|
|
485
|
+
list_id: Union[str | None, Any] = Field(default=None)
|
|
486
|
+
list_is_active: Union[bool | None, Any] = Field(default=None)
|
|
487
|
+
list_name: Union[str | None, Any] = Field(default=None)
|
|
488
|
+
subject_line: Union[str | None, Any] = Field(default=None)
|
|
489
|
+
preview_text: Union[str | None, Any] = Field(default=None)
|
|
490
|
+
emails_sent: Union[int | None, Any] = Field(default=None)
|
|
491
|
+
abuse_reports: Union[int | None, Any] = Field(default=None)
|
|
492
|
+
unsubscribed: Union[int | None, Any] = Field(default=None)
|
|
493
|
+
send_time: Union[str | None, Any] = Field(default=None)
|
|
494
|
+
rss_last_send: Union[str | None, Any] = Field(default=None)
|
|
495
|
+
bounces: Union[ReportBounces | None, Any] = Field(default=None)
|
|
496
|
+
forwards: Union[ReportForwards | None, Any] = Field(default=None)
|
|
497
|
+
opens: Union[ReportOpens | None, Any] = Field(default=None)
|
|
498
|
+
clicks: Union[ReportClicks | None, Any] = Field(default=None)
|
|
499
|
+
facebook_likes: Union[ReportFacebookLikes | None, Any] = Field(default=None)
|
|
500
|
+
industry_stats: Union[ReportIndustryStats | None, Any] = Field(default=None)
|
|
501
|
+
list_stats: Union[ReportListStats | None, Any] = Field(default=None)
|
|
502
|
+
ecommerce: Union[ReportEcommerce | None, Any] = Field(default=None)
|
|
503
|
+
delivery_status: Union[ReportDeliveryStatus | None, Any] = Field(default=None)
|
|
504
|
+
|
|
505
|
+
class ReportsList(BaseModel):
|
|
506
|
+
"""A list of reports containing campaigns marked as Sent"""
|
|
507
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
508
|
+
|
|
509
|
+
reports: Union[list[Report], Any] = Field(default=None)
|
|
510
|
+
total_items: Union[int, Any] = Field(default=None)
|
|
511
|
+
|
|
512
|
+
class EmailActivityActivityItem(BaseModel):
|
|
513
|
+
"""Nested schema for EmailActivity.activity_item"""
|
|
514
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
515
|
+
|
|
516
|
+
action: Union[str | None, Any] = Field(default=None, description="One of the following actions open, click, or bounce")
|
|
517
|
+
"""One of the following actions open, click, or bounce"""
|
|
518
|
+
timestamp: Union[str | None, Any] = Field(default=None, description="The date and time recorded for the action")
|
|
519
|
+
"""The date and time recorded for the action"""
|
|
520
|
+
url: Union[str | None, Any] = Field(default=None, description="If the action is a click, the URL on which the member clicked")
|
|
521
|
+
"""If the action is a click, the URL on which the member clicked"""
|
|
522
|
+
type: Union[str | None, Any] = Field(default=None, description="If the action is a bounce, the type of bounce received hard, soft, or blocked")
|
|
523
|
+
"""If the action is a bounce, the type of bounce received hard, soft, or blocked"""
|
|
524
|
+
ip: Union[str | None, Any] = Field(default=None, description="The IP address recorded for the action")
|
|
525
|
+
"""The IP address recorded for the action"""
|
|
526
|
+
|
|
527
|
+
class EmailActivity(BaseModel):
|
|
528
|
+
"""A summary of the email activity for a campaign"""
|
|
529
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
530
|
+
|
|
531
|
+
campaign_id: Union[str | None, Any] = Field(default=None)
|
|
532
|
+
list_id: Union[str | None, Any] = Field(default=None)
|
|
533
|
+
list_is_active: Union[bool | None, Any] = Field(default=None)
|
|
534
|
+
email_id: Union[str | None, Any] = Field(default=None)
|
|
535
|
+
email_address: Union[str | None, Any] = Field(default=None)
|
|
536
|
+
activity: Union[list[EmailActivityActivityItem] | None, Any] = Field(default=None)
|
|
537
|
+
|
|
538
|
+
class EmailActivityList(BaseModel):
|
|
539
|
+
"""A list of member's subscriber activity in a specific campaign"""
|
|
540
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
541
|
+
|
|
542
|
+
emails: Union[list[EmailActivity], Any] = Field(default=None)
|
|
543
|
+
campaign_id: Union[str | None, Any] = Field(default=None)
|
|
544
|
+
total_items: Union[int, Any] = Field(default=None)
|
|
545
|
+
|
|
546
|
+
class AutomationReportSummary(BaseModel):
|
|
547
|
+
"""A summary of opens and clicks for sent campaigns"""
|
|
548
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
549
|
+
|
|
550
|
+
opens: Union[int | None, Any] = Field(default=None, description="The total number of opens for a campaign")
|
|
551
|
+
"""The total number of opens for a campaign"""
|
|
552
|
+
unique_opens: Union[int | None, Any] = Field(default=None, description="The number of unique opens")
|
|
553
|
+
"""The number of unique opens"""
|
|
554
|
+
open_rate: Union[float | None, Any] = Field(default=None, description="The number of unique opens divided by the total number of successful deliveries")
|
|
555
|
+
"""The number of unique opens divided by the total number of successful deliveries"""
|
|
556
|
+
clicks: Union[int | None, Any] = Field(default=None, description="The total number of clicks for an campaign")
|
|
557
|
+
"""The total number of clicks for an campaign"""
|
|
558
|
+
subscriber_clicks: Union[int | None, Any] = Field(default=None, description="The number of unique clicks")
|
|
559
|
+
"""The number of unique clicks"""
|
|
560
|
+
click_rate: Union[float | None, Any] = Field(default=None, description="The number of unique clicks divided by the total number of successful deliveries")
|
|
561
|
+
"""The number of unique clicks divided by the total number of successful deliveries"""
|
|
562
|
+
|
|
563
|
+
class AutomationTracking(BaseModel):
|
|
564
|
+
"""The tracking options for the Automation"""
|
|
565
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
566
|
+
|
|
567
|
+
opens: Union[bool | None, Any] = Field(default=None, description="Whether to track opens")
|
|
568
|
+
"""Whether to track opens"""
|
|
569
|
+
html_clicks: Union[bool | None, Any] = Field(default=None, description="Whether to track clicks in the HTML version")
|
|
570
|
+
"""Whether to track clicks in the HTML version"""
|
|
571
|
+
text_clicks: Union[bool | None, Any] = Field(default=None, description="Whether to track clicks in the plain-text version")
|
|
572
|
+
"""Whether to track clicks in the plain-text version"""
|
|
573
|
+
goal_tracking: Union[bool | None, Any] = Field(default=None, description="Whether to enable Goal tracking")
|
|
574
|
+
"""Whether to enable Goal tracking"""
|
|
575
|
+
ecomm360: Union[bool | None, Any] = Field(default=None, description="Whether to enable eCommerce360 tracking")
|
|
576
|
+
"""Whether to enable eCommerce360 tracking"""
|
|
577
|
+
google_analytics: Union[str | None, Any] = Field(default=None, description="The custom slug for Google Analytics tracking")
|
|
578
|
+
"""The custom slug for Google Analytics tracking"""
|
|
579
|
+
clicktale: Union[str | None, Any] = Field(default=None, description="The custom slug for ClickTale tracking")
|
|
580
|
+
"""The custom slug for ClickTale tracking"""
|
|
581
|
+
|
|
582
|
+
class AutomationRecipientsSegmentOpts(BaseModel):
|
|
583
|
+
"""An object representing all segmentation options"""
|
|
584
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
585
|
+
|
|
586
|
+
saved_segment_id: Union[int | None, Any] = Field(default=None, description="The id for an existing saved segment")
|
|
587
|
+
"""The id for an existing saved segment"""
|
|
588
|
+
match: Union[str | None, Any] = Field(default=None, description="Segment match type")
|
|
589
|
+
"""Segment match type"""
|
|
590
|
+
conditions: Union[list[dict[str, Any]] | None, Any] = Field(default=None, description="Segment match conditions")
|
|
591
|
+
"""Segment match conditions"""
|
|
592
|
+
|
|
593
|
+
class AutomationRecipients(BaseModel):
|
|
594
|
+
"""List settings for the Automation"""
|
|
595
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
596
|
+
|
|
597
|
+
list_id: Union[str | None, Any] = Field(default=None, description="The unique list id")
|
|
598
|
+
"""The unique list id"""
|
|
599
|
+
list_is_active: Union[bool | None, Any] = Field(default=None, description="The status of the list used")
|
|
600
|
+
"""The status of the list used"""
|
|
601
|
+
list_name: Union[str | None, Any] = Field(default=None, description="The name of the list")
|
|
602
|
+
"""The name of the list"""
|
|
603
|
+
segment_opts: Union[AutomationRecipientsSegmentOpts | None, Any] = Field(default=None, description="An object representing all segmentation options")
|
|
604
|
+
"""An object representing all segmentation options"""
|
|
605
|
+
store_id: Union[str | None, Any] = Field(default=None, description="The id of the store")
|
|
606
|
+
"""The id of the store"""
|
|
607
|
+
|
|
608
|
+
class AutomationSettings(BaseModel):
|
|
609
|
+
"""The settings for the Automation workflow"""
|
|
610
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
611
|
+
|
|
612
|
+
title: Union[str | None, Any] = Field(default=None, description="The title of the Automation")
|
|
613
|
+
"""The title of the Automation"""
|
|
614
|
+
from_name: Union[str | None, Any] = Field(default=None, description="The from name for the Automation")
|
|
615
|
+
"""The from name for the Automation"""
|
|
616
|
+
reply_to: Union[str | None, Any] = Field(default=None, description="The reply-to email address for the Automation")
|
|
617
|
+
"""The reply-to email address for the Automation"""
|
|
618
|
+
use_conversation: Union[bool | None, Any] = Field(default=None, description="Whether to use Mailchimp Conversation feature")
|
|
619
|
+
"""Whether to use Mailchimp Conversation feature"""
|
|
620
|
+
to_name: Union[str | None, Any] = Field(default=None, description="The Automation's custom to name")
|
|
621
|
+
"""The Automation's custom to name"""
|
|
622
|
+
authenticate: Union[bool | None, Any] = Field(default=None, description="Whether Mailchimp authenticated the Automation")
|
|
623
|
+
"""Whether Mailchimp authenticated the Automation"""
|
|
624
|
+
auto_footer: Union[bool | None, Any] = Field(default=None, description="Whether to automatically append Mailchimp's default footer")
|
|
625
|
+
"""Whether to automatically append Mailchimp's default footer"""
|
|
626
|
+
inline_css: Union[bool | None, Any] = Field(default=None, description="Whether to automatically inline the CSS")
|
|
627
|
+
"""Whether to automatically inline the CSS"""
|
|
628
|
+
|
|
629
|
+
class Automation(BaseModel):
|
|
630
|
+
"""A summary of an individual Automation workflow's settings and content"""
|
|
631
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
632
|
+
|
|
633
|
+
id: Union[str, Any] = Field(default=None)
|
|
634
|
+
create_time: Union[str | None, Any] = Field(default=None)
|
|
635
|
+
start_time: Union[str | None, Any] = Field(default=None)
|
|
636
|
+
status: Union[str | None, Any] = Field(default=None)
|
|
637
|
+
emails_sent: Union[int | None, Any] = Field(default=None)
|
|
638
|
+
recipients: Union[AutomationRecipients | None, Any] = Field(default=None)
|
|
639
|
+
settings: Union[AutomationSettings | None, Any] = Field(default=None)
|
|
640
|
+
tracking: Union[AutomationTracking | None, Any] = Field(default=None)
|
|
641
|
+
report_summary: Union[AutomationReportSummary | None, Any] = Field(default=None)
|
|
642
|
+
|
|
643
|
+
class AutomationsList(BaseModel):
|
|
644
|
+
"""A summary of the Automations for an account"""
|
|
645
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
646
|
+
|
|
647
|
+
automations: Union[list[Automation], Any] = Field(default=None)
|
|
648
|
+
total_items: Union[int, Any] = Field(default=None)
|
|
649
|
+
|
|
650
|
+
class Tag(BaseModel):
|
|
651
|
+
"""A tag that can be assigned to a list member"""
|
|
652
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
653
|
+
|
|
654
|
+
id: Union[int, Any] = Field(default=None)
|
|
655
|
+
name: Union[str | None, Any] = Field(default=None)
|
|
656
|
+
|
|
657
|
+
class TagsList(BaseModel):
|
|
658
|
+
"""A list of tags assigned to a list"""
|
|
659
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
660
|
+
|
|
661
|
+
tags: Union[list[Tag], Any] = Field(default=None)
|
|
662
|
+
total_items: Union[int, Any] = Field(default=None)
|
|
663
|
+
|
|
664
|
+
class InterestCategory(BaseModel):
|
|
665
|
+
"""Interest categories organize interests, which are used to group subscribers based on their preferences"""
|
|
666
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
667
|
+
|
|
668
|
+
list_id: Union[str | None, Any] = Field(default=None)
|
|
669
|
+
id: Union[str, Any] = Field(default=None)
|
|
670
|
+
title: Union[str | None, Any] = Field(default=None)
|
|
671
|
+
display_order: Union[int | None, Any] = Field(default=None)
|
|
672
|
+
type: Union[str | None, Any] = Field(default=None)
|
|
673
|
+
|
|
674
|
+
class InterestCategoriesList(BaseModel):
|
|
675
|
+
"""Information about this list's interest categories"""
|
|
676
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
677
|
+
|
|
678
|
+
list_id: Union[str | None, Any] = Field(default=None)
|
|
679
|
+
categories: Union[list[InterestCategory], Any] = Field(default=None)
|
|
680
|
+
total_items: Union[int, Any] = Field(default=None)
|
|
681
|
+
|
|
682
|
+
class Interest(BaseModel):
|
|
683
|
+
"""Assign subscribers to interests to group them together"""
|
|
684
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
685
|
+
|
|
686
|
+
category_id: Union[str | None, Any] = Field(default=None)
|
|
687
|
+
list_id: Union[str | None, Any] = Field(default=None)
|
|
688
|
+
id: Union[str, Any] = Field(default=None)
|
|
689
|
+
name: Union[str | None, Any] = Field(default=None)
|
|
690
|
+
subscriber_count: Union[str | None, Any] = Field(default=None)
|
|
691
|
+
display_order: Union[int | None, Any] = Field(default=None)
|
|
692
|
+
|
|
693
|
+
class InterestsList(BaseModel):
|
|
694
|
+
"""A list of interests for a specific list"""
|
|
695
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
696
|
+
|
|
697
|
+
interests: Union[list[Interest], Any] = Field(default=None)
|
|
698
|
+
list_id: Union[str | None, Any] = Field(default=None)
|
|
699
|
+
category_id: Union[str | None, Any] = Field(default=None)
|
|
700
|
+
total_items: Union[int, Any] = Field(default=None)
|
|
701
|
+
|
|
702
|
+
class SegmentOptions(BaseModel):
|
|
703
|
+
"""The conditions of the segment"""
|
|
704
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
705
|
+
|
|
706
|
+
match: Union[str | None, Any] = Field(default=None, description="Match type")
|
|
707
|
+
"""Match type"""
|
|
708
|
+
conditions: Union[list[dict[str, Any]] | None, Any] = Field(default=None, description="Segment match conditions")
|
|
709
|
+
"""Segment match conditions"""
|
|
710
|
+
|
|
711
|
+
class Segment(BaseModel):
|
|
712
|
+
"""Information about a specific segment"""
|
|
713
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
714
|
+
|
|
715
|
+
id: Union[int, Any] = Field(default=None)
|
|
716
|
+
name: Union[str | None, Any] = Field(default=None)
|
|
717
|
+
member_count: Union[int | None, Any] = Field(default=None)
|
|
718
|
+
type: Union[str | None, Any] = Field(default=None)
|
|
719
|
+
created_at: Union[str | None, Any] = Field(default=None)
|
|
720
|
+
updated_at: Union[str | None, Any] = Field(default=None)
|
|
721
|
+
options: Union[SegmentOptions | None, Any] = Field(default=None)
|
|
722
|
+
list_id: Union[str | None, Any] = Field(default=None)
|
|
723
|
+
|
|
724
|
+
class SegmentsList(BaseModel):
|
|
725
|
+
"""A list of available segments"""
|
|
726
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
727
|
+
|
|
728
|
+
segments: Union[list[Segment], Any] = Field(default=None)
|
|
729
|
+
list_id: Union[str | None, Any] = Field(default=None)
|
|
730
|
+
total_items: Union[int, Any] = Field(default=None)
|
|
731
|
+
|
|
732
|
+
class SegmentMemberStats(BaseModel):
|
|
733
|
+
"""Open and click rates for this subscriber"""
|
|
734
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
735
|
+
|
|
736
|
+
avg_open_rate: Union[float | None, Any] = Field(default=None, description="A subscriber's average open rate")
|
|
737
|
+
"""A subscriber's average open rate"""
|
|
738
|
+
avg_click_rate: Union[float | None, Any] = Field(default=None, description="A subscriber's average clickthrough rate")
|
|
739
|
+
"""A subscriber's average clickthrough rate"""
|
|
740
|
+
|
|
741
|
+
class SegmentMemberLocation(BaseModel):
|
|
742
|
+
"""Subscriber location information"""
|
|
743
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
744
|
+
|
|
745
|
+
latitude: Union[float | None, Any] = Field(default=None, description="The location latitude")
|
|
746
|
+
"""The location latitude"""
|
|
747
|
+
longitude: Union[float | None, Any] = Field(default=None, description="The location longitude")
|
|
748
|
+
"""The location longitude"""
|
|
749
|
+
gmtoff: Union[int | None, Any] = Field(default=None, description="The time difference in hours from GMT")
|
|
750
|
+
"""The time difference in hours from GMT"""
|
|
751
|
+
dstoff: Union[int | None, Any] = Field(default=None, description="The offset for timezones where daylight saving time is observed")
|
|
752
|
+
"""The offset for timezones where daylight saving time is observed"""
|
|
753
|
+
country_code: Union[str | None, Any] = Field(default=None, description="The unique code for the location country")
|
|
754
|
+
"""The unique code for the location country"""
|
|
755
|
+
timezone: Union[str | None, Any] = Field(default=None, description="The timezone for the location")
|
|
756
|
+
"""The timezone for the location"""
|
|
757
|
+
region: Union[str | None, Any] = Field(default=None, description="The region for the location")
|
|
758
|
+
"""The region for the location"""
|
|
759
|
+
|
|
760
|
+
class SegmentMember(BaseModel):
|
|
761
|
+
"""Individuals who are currently or have been previously subscribed to this list"""
|
|
762
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
763
|
+
|
|
764
|
+
id: Union[str, Any] = Field(default=None)
|
|
765
|
+
email_address: Union[str | None, Any] = Field(default=None)
|
|
766
|
+
unique_email_id: Union[str | None, Any] = Field(default=None)
|
|
767
|
+
email_type: Union[str | None, Any] = Field(default=None)
|
|
768
|
+
status: Union[str | None, Any] = Field(default=None)
|
|
769
|
+
merge_fields: Union[dict[str, Any] | None, Any] = Field(default=None)
|
|
770
|
+
interests: Union[dict[str, bool] | None, Any] = Field(default=None)
|
|
771
|
+
stats: Union[SegmentMemberStats | None, Any] = Field(default=None)
|
|
772
|
+
ip_signup: Union[str | None, Any] = Field(default=None)
|
|
773
|
+
timestamp_signup: Union[str | None, Any] = Field(default=None)
|
|
774
|
+
ip_opt: Union[str | None, Any] = Field(default=None)
|
|
775
|
+
timestamp_opt: Union[str | None, Any] = Field(default=None)
|
|
776
|
+
member_rating: Union[int | None, Any] = Field(default=None)
|
|
777
|
+
last_changed: Union[str | None, Any] = Field(default=None)
|
|
778
|
+
language: Union[str | None, Any] = Field(default=None)
|
|
779
|
+
vip: Union[bool | None, Any] = Field(default=None)
|
|
780
|
+
email_client: Union[str | None, Any] = Field(default=None)
|
|
781
|
+
location: Union[SegmentMemberLocation | None, Any] = Field(default=None)
|
|
782
|
+
list_id: Union[str | None, Any] = Field(default=None)
|
|
783
|
+
|
|
784
|
+
class SegmentMembersList(BaseModel):
|
|
785
|
+
"""View members in a specific list segment"""
|
|
786
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
787
|
+
|
|
788
|
+
members: Union[list[SegmentMember], Any] = Field(default=None)
|
|
789
|
+
total_items: Union[int, Any] = Field(default=None)
|
|
790
|
+
|
|
791
|
+
class Unsubscribe(BaseModel):
|
|
792
|
+
"""A member who unsubscribed from a specific campaign"""
|
|
793
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
794
|
+
|
|
795
|
+
email_id: Union[str | None, Any] = Field(default=None)
|
|
796
|
+
email_address: Union[str | None, Any] = Field(default=None)
|
|
797
|
+
merge_fields: Union[dict[str, Any] | None, Any] = Field(default=None)
|
|
798
|
+
vip: Union[bool | None, Any] = Field(default=None)
|
|
799
|
+
timestamp: Union[str | None, Any] = Field(default=None)
|
|
800
|
+
reason: Union[str | None, Any] = Field(default=None)
|
|
801
|
+
campaign_id: Union[str | None, Any] = Field(default=None)
|
|
802
|
+
list_id: Union[str | None, Any] = Field(default=None)
|
|
803
|
+
list_is_active: Union[bool | None, Any] = Field(default=None)
|
|
804
|
+
|
|
805
|
+
class UnsubscribesList(BaseModel):
|
|
806
|
+
"""A list of members who have unsubscribed from a specific campaign"""
|
|
807
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
808
|
+
|
|
809
|
+
unsubscribes: Union[list[Unsubscribe], Any] = Field(default=None)
|
|
810
|
+
campaign_id: Union[str | None, Any] = Field(default=None)
|
|
811
|
+
total_items: Union[int, Any] = Field(default=None)
|
|
812
|
+
|
|
813
|
+
# ===== METADATA TYPE DEFINITIONS (PYDANTIC) =====
|
|
814
|
+
# Meta types for operations that extract metadata (e.g., pagination info)
|
|
815
|
+
|
|
816
|
+
class CampaignsListResultMeta(BaseModel):
|
|
817
|
+
"""Metadata for campaigns.Action.LIST operation"""
|
|
818
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
819
|
+
|
|
820
|
+
total_items: Union[int, Any] = Field(default=None)
|
|
821
|
+
|
|
822
|
+
class ListsListResultMeta(BaseModel):
|
|
823
|
+
"""Metadata for lists.Action.LIST operation"""
|
|
824
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
825
|
+
|
|
826
|
+
total_items: Union[int, Any] = Field(default=None)
|
|
827
|
+
|
|
828
|
+
class ListMembersListResultMeta(BaseModel):
|
|
829
|
+
"""Metadata for list_members.Action.LIST operation"""
|
|
830
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
831
|
+
|
|
832
|
+
total_items: Union[int, Any] = Field(default=None)
|
|
833
|
+
|
|
834
|
+
class ReportsListResultMeta(BaseModel):
|
|
835
|
+
"""Metadata for reports.Action.LIST operation"""
|
|
836
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
837
|
+
|
|
838
|
+
total_items: Union[int, Any] = Field(default=None)
|
|
839
|
+
|
|
840
|
+
class EmailActivityListResultMeta(BaseModel):
|
|
841
|
+
"""Metadata for email_activity.Action.LIST operation"""
|
|
842
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
843
|
+
|
|
844
|
+
total_items: Union[int, Any] = Field(default=None)
|
|
845
|
+
|
|
846
|
+
class AutomationsListResultMeta(BaseModel):
|
|
847
|
+
"""Metadata for automations.Action.LIST operation"""
|
|
848
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
849
|
+
|
|
850
|
+
total_items: Union[int, Any] = Field(default=None)
|
|
851
|
+
|
|
852
|
+
class TagsListResultMeta(BaseModel):
|
|
853
|
+
"""Metadata for tags.Action.LIST operation"""
|
|
854
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
855
|
+
|
|
856
|
+
total_items: Union[int, Any] = Field(default=None)
|
|
857
|
+
|
|
858
|
+
class InterestCategoriesListResultMeta(BaseModel):
|
|
859
|
+
"""Metadata for interest_categories.Action.LIST operation"""
|
|
860
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
861
|
+
|
|
862
|
+
total_items: Union[int, Any] = Field(default=None)
|
|
863
|
+
|
|
864
|
+
class InterestsListResultMeta(BaseModel):
|
|
865
|
+
"""Metadata for interests.Action.LIST operation"""
|
|
866
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
867
|
+
|
|
868
|
+
total_items: Union[int, Any] = Field(default=None)
|
|
869
|
+
|
|
870
|
+
class SegmentsListResultMeta(BaseModel):
|
|
871
|
+
"""Metadata for segments.Action.LIST operation"""
|
|
872
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
873
|
+
|
|
874
|
+
total_items: Union[int, Any] = Field(default=None)
|
|
875
|
+
|
|
876
|
+
class SegmentMembersListResultMeta(BaseModel):
|
|
877
|
+
"""Metadata for segment_members.Action.LIST operation"""
|
|
878
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
879
|
+
|
|
880
|
+
total_items: Union[int, Any] = Field(default=None)
|
|
881
|
+
|
|
882
|
+
class UnsubscribesListResultMeta(BaseModel):
|
|
883
|
+
"""Metadata for unsubscribes.Action.LIST operation"""
|
|
884
|
+
model_config = ConfigDict(extra="allow", populate_by_name=True)
|
|
885
|
+
|
|
886
|
+
total_items: Union[int, Any] = Field(default=None)
|
|
887
|
+
|
|
888
|
+
# ===== RESPONSE ENVELOPE MODELS =====
|
|
889
|
+
|
|
890
|
+
# Type variables for generic envelope models
|
|
891
|
+
T = TypeVar('T')
|
|
892
|
+
S = TypeVar('S')
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
class MailchimpExecuteResult(BaseModel, Generic[T]):
|
|
896
|
+
"""Response envelope with data only.
|
|
897
|
+
|
|
898
|
+
Used for actions that return data without metadata.
|
|
899
|
+
"""
|
|
900
|
+
model_config = ConfigDict(extra="forbid")
|
|
901
|
+
|
|
902
|
+
data: T
|
|
903
|
+
"""Response data containing the result of the action."""
|
|
904
|
+
|
|
905
|
+
|
|
906
|
+
class MailchimpExecuteResultWithMeta(MailchimpExecuteResult[T], Generic[T, S]):
|
|
907
|
+
"""Response envelope with data and metadata.
|
|
908
|
+
|
|
909
|
+
Used for actions that return both data and metadata (e.g., pagination info).
|
|
910
|
+
"""
|
|
911
|
+
meta: S
|
|
912
|
+
"""Metadata about the response (e.g., pagination cursors, record counts)."""
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
# ===== OPERATION RESULT TYPE ALIASES =====
|
|
917
|
+
|
|
918
|
+
# Concrete type aliases for each operation result.
|
|
919
|
+
# These provide simpler, more readable type annotations than using the generic forms.
|
|
920
|
+
|
|
921
|
+
CampaignsListResult = MailchimpExecuteResultWithMeta[list[Campaign], CampaignsListResultMeta]
|
|
922
|
+
"""Result type for campaigns.list operation with data and metadata."""
|
|
923
|
+
|
|
924
|
+
ListsListResult = MailchimpExecuteResultWithMeta[list[List], ListsListResultMeta]
|
|
925
|
+
"""Result type for lists.list operation with data and metadata."""
|
|
926
|
+
|
|
927
|
+
ListMembersListResult = MailchimpExecuteResultWithMeta[list[ListMember], ListMembersListResultMeta]
|
|
928
|
+
"""Result type for list_members.list operation with data and metadata."""
|
|
929
|
+
|
|
930
|
+
ReportsListResult = MailchimpExecuteResultWithMeta[list[Report], ReportsListResultMeta]
|
|
931
|
+
"""Result type for reports.list operation with data and metadata."""
|
|
932
|
+
|
|
933
|
+
EmailActivityListResult = MailchimpExecuteResultWithMeta[list[EmailActivity], EmailActivityListResultMeta]
|
|
934
|
+
"""Result type for email_activity.list operation with data and metadata."""
|
|
935
|
+
|
|
936
|
+
AutomationsListResult = MailchimpExecuteResultWithMeta[list[Automation], AutomationsListResultMeta]
|
|
937
|
+
"""Result type for automations.list operation with data and metadata."""
|
|
938
|
+
|
|
939
|
+
TagsListResult = MailchimpExecuteResultWithMeta[list[Tag], TagsListResultMeta]
|
|
940
|
+
"""Result type for tags.list operation with data and metadata."""
|
|
941
|
+
|
|
942
|
+
InterestCategoriesListResult = MailchimpExecuteResultWithMeta[list[InterestCategory], InterestCategoriesListResultMeta]
|
|
943
|
+
"""Result type for interest_categories.list operation with data and metadata."""
|
|
944
|
+
|
|
945
|
+
InterestsListResult = MailchimpExecuteResultWithMeta[list[Interest], InterestsListResultMeta]
|
|
946
|
+
"""Result type for interests.list operation with data and metadata."""
|
|
947
|
+
|
|
948
|
+
SegmentsListResult = MailchimpExecuteResultWithMeta[list[Segment], SegmentsListResultMeta]
|
|
949
|
+
"""Result type for segments.list operation with data and metadata."""
|
|
950
|
+
|
|
951
|
+
SegmentMembersListResult = MailchimpExecuteResultWithMeta[list[SegmentMember], SegmentMembersListResultMeta]
|
|
952
|
+
"""Result type for segment_members.list operation with data and metadata."""
|
|
953
|
+
|
|
954
|
+
UnsubscribesListResult = MailchimpExecuteResultWithMeta[list[Unsubscribe], UnsubscribesListResultMeta]
|
|
955
|
+
"""Result type for unsubscribes.list operation with data and metadata."""
|
|
956
|
+
|