|
2 | 2 |
|
3 | 3 | from __future__ import annotations |
4 | 4 |
|
5 | | -from . import shared, tenants, notification_list_response |
| 5 | +from . import ( |
| 6 | + shared, |
| 7 | + tenants, |
| 8 | + audience, |
| 9 | + nested_filter_config, |
| 10 | + audience_list_response, |
| 11 | + audience_update_response, |
| 12 | + notification_list_response, |
| 13 | +) |
6 | 14 | from .. import _compat |
7 | 15 | from .logo import Logo as Logo |
8 | 16 | from .brand import Brand as Brand |
|
11 | 19 | from .filter import Filter as Filter |
12 | 20 | from .shared import ( |
13 | 21 | Utm as Utm, |
| 22 | + Expo as Expo, |
14 | 23 | Rule as Rule, |
| 24 | + Slack as Slack, |
| 25 | + Token as Token, |
15 | 26 | Paging as Paging, |
| 27 | + Discord as Discord, |
| 28 | + MsTeams as MsTeams, |
| 29 | + Intercom as Intercom, |
16 | 30 | Alignment as Alignment, |
17 | | - Recipient as Recipient, |
| 31 | + Pagerduty as Pagerduty, |
18 | 32 | TextStyle as TextStyle, |
| 33 | + DeviceType as DeviceType, |
| 34 | + ListFilter as ListFilter, |
19 | 35 | Preference as Preference, |
| 36 | + UserProfile as UserProfile, |
20 | 37 | ElementalNode as ElementalNode, |
| 38 | + ListRecipient as ListRecipient, |
| 39 | + SendToChannel as SendToChannel, |
21 | 40 | UserRecipient as UserRecipient, |
| 41 | + WebhookMethod as WebhookMethod, |
| 42 | + AirshipProfile as AirshipProfile, |
| 43 | + AudienceFilter as AudienceFilter, |
22 | 44 | MessageContext as MessageContext, |
23 | 45 | MessageRouting as MessageRouting, |
| 46 | + MultipleTokens as MultipleTokens, |
| 47 | + SlackRecipient as SlackRecipient, |
| 48 | + WebhookProfile as WebhookProfile, |
| 49 | + WebhookAuthMode as WebhookAuthMode, |
24 | 50 | ElementalContent as ElementalContent, |
| 51 | + MsTeamsRecipient as MsTeamsRecipient, |
25 | 52 | PreferenceStatus as PreferenceStatus, |
| 53 | + SendToSlackEmail as SendToSlackEmail, |
| 54 | + WebhookRecipient as WebhookRecipient, |
| 55 | + AudienceRecipient as AudienceRecipient, |
26 | 56 | ChannelPreference as ChannelPreference, |
27 | 57 | ElementalBaseNode as ElementalBaseNode, |
| 58 | + IntercomRecipient as IntercomRecipient, |
| 59 | + SendDirectMessage as SendDirectMessage, |
| 60 | + SendToSlackUserID as SendToSlackUserID, |
| 61 | + PagerdutyRecipient as PagerdutyRecipient, |
| 62 | + SendToMsTeamsEmail as SendToMsTeamsEmail, |
| 63 | + SendToSlackChannel as SendToSlackChannel, |
| 64 | + WebhookProfileType as WebhookProfileType, |
| 65 | + SendToMsTeamsUserID as SendToMsTeamsUserID, |
| 66 | + SlackBaseProperties as SlackBaseProperties, |
28 | 67 | ElementalChannelNode as ElementalChannelNode, |
| 68 | + ListPatternRecipient as ListPatternRecipient, |
29 | 69 | RecipientPreferences as RecipientPreferences, |
30 | 70 | ChannelClassification as ChannelClassification, |
31 | 71 | ElementalContentSugar as ElementalContentSugar, |
32 | 72 | MessageRoutingChannel as MessageRoutingChannel, |
| 73 | + MsTeamsBaseProperties as MsTeamsBaseProperties, |
| 74 | + WebhookAuthentication as WebhookAuthentication, |
| 75 | + AirshipProfileAudience as AirshipProfileAudience, |
| 76 | + SendToMsTeamsChannelID as SendToMsTeamsChannelID, |
| 77 | + SendToMsTeamsChannelName as SendToMsTeamsChannelName, |
| 78 | + UserProfileFirebaseToken as UserProfileFirebaseToken, |
33 | 79 | ElementalMetaNodeWithType as ElementalMetaNodeWithType, |
34 | 80 | ElementalTextNodeWithType as ElementalTextNodeWithType, |
35 | 81 | ElementalImageNodeWithType as ElementalImageNodeWithType, |
36 | 82 | ElementalQuoteNodeWithType as ElementalQuoteNodeWithType, |
37 | 83 | ElementalActionNodeWithType as ElementalActionNodeWithType, |
| 84 | + SendToMsTeamsConversationID as SendToMsTeamsConversationID, |
38 | 85 | ElementalChannelNodeWithType as ElementalChannelNodeWithType, |
39 | 86 | ElementalDividerNodeWithType as ElementalDividerNodeWithType, |
40 | 87 | NotificationPreferenceDetails as NotificationPreferenceDetails, |
|
51 | 98 | from .email_header import EmailHeader as EmailHeader |
52 | 99 | from .filter_param import FilterParam as FilterParam |
53 | 100 | from .brand_snippet import BrandSnippet as BrandSnippet |
| 101 | +from .filter_config import FilterConfig as FilterConfig |
54 | 102 | from .brand_settings import BrandSettings as BrandSettings |
55 | 103 | from .brand_snippets import BrandSnippets as BrandSnippets |
56 | 104 | from .brand_template import BrandTemplate as BrandTemplate |
|
73 | 121 | from .brand_snippet_param import BrandSnippetParam as BrandSnippetParam |
74 | 122 | from .brand_update_params import BrandUpdateParams as BrandUpdateParams |
75 | 123 | from .default_preferences import DefaultPreferences as DefaultPreferences |
| 124 | +from .filter_config_param import FilterConfigParam as FilterConfigParam |
76 | 125 | from .message_list_params import MessageListParams as MessageListParams |
77 | 126 | from .send_message_params import SendMessageParams as SendMessageParams |
78 | 127 | from .audience_list_params import AudienceListParams as AudienceListParams |
|
81 | 130 | from .brand_snippets_param import BrandSnippetsParam as BrandSnippetsParam |
82 | 131 | from .brand_template_param import BrandTemplateParam as BrandTemplateParam |
83 | 132 | from .inbound_bulk_message import InboundBulkMessage as InboundBulkMessage |
| 133 | +from .nested_filter_config import NestedFilterConfig as NestedFilterConfig |
| 134 | +from .single_filter_config import SingleFilterConfig as SingleFilterConfig |
84 | 135 | from .tenant_list_response import TenantListResponse as TenantListResponse |
85 | 136 | from .tenant_update_params import TenantUpdateParams as TenantUpdateParams |
86 | 137 | from .brand_settings_in_app import BrandSettingsInApp as BrandSettingsInApp |
|
122 | 173 | from .bulk_retrieve_job_response import BulkRetrieveJobResponse as BulkRetrieveJobResponse |
123 | 174 | from .inbound_bulk_message_param import InboundBulkMessageParam as InboundBulkMessageParam |
124 | 175 | from .inbound_track_event_params import InboundTrackEventParams as InboundTrackEventParams |
| 176 | +from .nested_filter_config_param import NestedFilterConfigParam as NestedFilterConfigParam |
125 | 177 | from .notification_list_response import NotificationListResponse as NotificationListResponse |
| 178 | +from .single_filter_config_param import SingleFilterConfigParam as SingleFilterConfigParam |
126 | 179 | from .tenant_list_users_response import TenantListUsersResponse as TenantListUsersResponse |
127 | 180 | from .brand_settings_in_app_param import BrandSettingsInAppParam as BrandSettingsInAppParam |
128 | 181 | from .audience_list_members_params import AudienceListMembersParams as AudienceListMembersParams |
|
140 | 193 | # Pydantic can resolve the necessary references. |
141 | 194 | # See: https://github.com/pydantic/pydantic/issues/11250 for more context. |
142 | 195 | if _compat.PYDANTIC_V1: |
| 196 | + audience.Audience.update_forward_refs() # type: ignore |
| 197 | + nested_filter_config.NestedFilterConfig.update_forward_refs() # type: ignore |
| 198 | + audience_update_response.AudienceUpdateResponse.update_forward_refs() # type: ignore |
| 199 | + audience_list_response.AudienceListResponse.update_forward_refs() # type: ignore |
143 | 200 | notification_list_response.NotificationListResponse.update_forward_refs() # type: ignore |
144 | 201 | tenants.template_list_response.TemplateListResponse.update_forward_refs() # type: ignore |
145 | 202 | shared.message_routing.MessageRouting.update_forward_refs() # type: ignore |
146 | 203 | else: |
| 204 | + audience.Audience.model_rebuild(_parent_namespace_depth=0) |
| 205 | + nested_filter_config.NestedFilterConfig.model_rebuild(_parent_namespace_depth=0) |
| 206 | + audience_update_response.AudienceUpdateResponse.model_rebuild(_parent_namespace_depth=0) |
| 207 | + audience_list_response.AudienceListResponse.model_rebuild(_parent_namespace_depth=0) |
147 | 208 | notification_list_response.NotificationListResponse.model_rebuild(_parent_namespace_depth=0) |
148 | 209 | tenants.template_list_response.TemplateListResponse.model_rebuild(_parent_namespace_depth=0) |
149 | 210 | shared.message_routing.MessageRouting.model_rebuild(_parent_namespace_depth=0) |
0 commit comments