boltix 0.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.
Files changed (173) hide show
  1. boltix/README.md +190 -0
  2. boltix/__init__.py +347 -0
  3. boltix/_default_clients.py +30 -0
  4. boltix/audit/__init__.py +4 -0
  5. boltix/audit/client.py +243 -0
  6. boltix/audit/raw_client.py +259 -0
  7. boltix/auth/__init__.py +4 -0
  8. boltix/auth/client.py +321 -0
  9. boltix/auth/raw_client.py +372 -0
  10. boltix/automation/__init__.py +37 -0
  11. boltix/automation/client.py +1646 -0
  12. boltix/automation/raw_client.py +1812 -0
  13. boltix/automation/types/__init__.py +38 -0
  14. boltix/automation/types/create_trigger_input_body_match_type.py +5 -0
  15. boltix/automation/types/update_trigger_input_body_match_type.py +5 -0
  16. boltix/campaigns/__init__.py +4 -0
  17. boltix/campaigns/client.py +934 -0
  18. boltix/campaigns/raw_client.py +1033 -0
  19. boltix/catalog/__init__.py +4 -0
  20. boltix/catalog/client.py +740 -0
  21. boltix/catalog/raw_client.py +824 -0
  22. boltix/channels/__init__.py +34 -0
  23. boltix/channels/client.py +565 -0
  24. boltix/channels/raw_client.py +619 -0
  25. boltix/channels/types/__init__.py +34 -0
  26. boltix/channels/types/update_channel_input_body_status.py +5 -0
  27. boltix/client.py +528 -0
  28. boltix/contacts/__init__.py +4 -0
  29. boltix/contacts/client.py +710 -0
  30. boltix/contacts/raw_client.py +792 -0
  31. boltix/core/__init__.py +127 -0
  32. boltix/core/api_error.py +23 -0
  33. boltix/core/client_wrapper.py +105 -0
  34. boltix/core/datetime_utils.py +70 -0
  35. boltix/core/file.py +67 -0
  36. boltix/core/force_multipart.py +18 -0
  37. boltix/core/http_client.py +839 -0
  38. boltix/core/http_response.py +59 -0
  39. boltix/core/http_sse/__init__.py +42 -0
  40. boltix/core/http_sse/_api.py +148 -0
  41. boltix/core/http_sse/_decoders.py +61 -0
  42. boltix/core/http_sse/_exceptions.py +7 -0
  43. boltix/core/http_sse/_models.py +17 -0
  44. boltix/core/jsonable_encoder.py +120 -0
  45. boltix/core/logging.py +107 -0
  46. boltix/core/parse_error.py +36 -0
  47. boltix/core/pydantic_utilities.py +634 -0
  48. boltix/core/query_encoder.py +58 -0
  49. boltix/core/remove_none_from_dict.py +11 -0
  50. boltix/core/request_options.py +35 -0
  51. boltix/core/serialization.py +276 -0
  52. boltix/environment.py +7 -0
  53. boltix/identity/__init__.py +4 -0
  54. boltix/identity/client.py +354 -0
  55. boltix/identity/raw_client.py +429 -0
  56. boltix/insights/__init__.py +61 -0
  57. boltix/insights/client.py +880 -0
  58. boltix/insights/raw_client.py +957 -0
  59. boltix/insights/types/__init__.py +59 -0
  60. boltix/insights/types/create_panel_input_body_data_source.py +7 -0
  61. boltix/insights/types/create_panel_input_body_display_type.py +5 -0
  62. boltix/insights/types/create_panel_input_body_metric.py +5 -0
  63. boltix/insights/types/create_panel_input_body_size.py +5 -0
  64. boltix/insights/types/update_panel_input_body_data_source.py +7 -0
  65. boltix/insights/types/update_panel_input_body_display_type.py +5 -0
  66. boltix/insights/types/update_panel_input_body_metric.py +5 -0
  67. boltix/insights/types/update_panel_input_body_size.py +5 -0
  68. boltix/intelligence/__init__.py +37 -0
  69. boltix/intelligence/client.py +572 -0
  70. boltix/intelligence/raw_client.py +624 -0
  71. boltix/intelligence/types/__init__.py +38 -0
  72. boltix/intelligence/types/create_context_input_body_context_type.py +5 -0
  73. boltix/intelligence/types/update_context_input_body_context_type.py +5 -0
  74. boltix/media/__init__.py +4 -0
  75. boltix/media/client.py +204 -0
  76. boltix/media/raw_client.py +235 -0
  77. boltix/messages/__init__.py +4 -0
  78. boltix/messages/client.py +318 -0
  79. boltix/messages/raw_client.py +338 -0
  80. boltix/organizations/__init__.py +4 -0
  81. boltix/organizations/client.py +262 -0
  82. boltix/organizations/raw_client.py +313 -0
  83. boltix/routing/__init__.py +49 -0
  84. boltix/routing/client.py +1194 -0
  85. boltix/routing/raw_client.py +1362 -0
  86. boltix/routing/types/__init__.py +47 -0
  87. boltix/routing/types/add_agent_input_body_role.py +5 -0
  88. boltix/routing/types/create_handoff_input_body_source.py +7 -0
  89. boltix/routing/types/create_team_input_body_assignment_strategy.py +7 -0
  90. boltix/routing/types/update_team_input_body_assignment_strategy.py +7 -0
  91. boltix/snippets/__init__.py +4 -0
  92. boltix/snippets/client.py +526 -0
  93. boltix/snippets/raw_client.py +578 -0
  94. boltix/tags/__init__.py +34 -0
  95. boltix/tags/client.py +350 -0
  96. boltix/tags/raw_client.py +406 -0
  97. boltix/tags/types/__init__.py +38 -0
  98. boltix/tags/types/create_tag_input_body_color.py +5 -0
  99. boltix/tags/types/update_tag_input_body_color.py +5 -0
  100. boltix/templates/__init__.py +4 -0
  101. boltix/templates/client.py +854 -0
  102. boltix/templates/raw_client.py +908 -0
  103. boltix/tests/conftest.py +21 -0
  104. boltix/tests/test_aiohttp_autodetect.py +113 -0
  105. boltix/types/__init__.py +218 -0
  106. boltix/types/action_response.py +71 -0
  107. boltix/types/add_recipients_output_body.py +30 -0
  108. boltix/types/agent_response.py +60 -0
  109. boltix/types/automation_config_response.py +129 -0
  110. boltix/types/automation_trigger_response.py +115 -0
  111. boltix/types/automation_workflow_response.py +130 -0
  112. boltix/types/campaign_response.py +135 -0
  113. boltix/types/channel_response.py +101 -0
  114. boltix/types/channel_response_status.py +5 -0
  115. boltix/types/chart_data_point_response.py +27 -0
  116. boltix/types/contact_response.py +98 -0
  117. boltix/types/create_download_url_output_body.py +34 -0
  118. boltix/types/create_upload_url_output_body.py +39 -0
  119. boltix/types/error_detail.py +32 -0
  120. boltix/types/error_model.py +55 -0
  121. boltix/types/event_response.py +66 -0
  122. boltix/types/handoff_response.py +135 -0
  123. boltix/types/identity_account_response.py +85 -0
  124. boltix/types/intelligence_context_response.py +92 -0
  125. boltix/types/intelligence_context_response_context_type.py +5 -0
  126. boltix/types/list_accounts_output_body.py +30 -0
  127. boltix/types/list_actions_output_body.py +30 -0
  128. boltix/types/list_agents_output_body.py +30 -0
  129. boltix/types/list_campaigns_output_body.py +30 -0
  130. boltix/types/list_channels_output_body.py +30 -0
  131. boltix/types/list_contacts_output_body.py +30 -0
  132. boltix/types/list_contexts_output_body.py +30 -0
  133. boltix/types/list_events_output_body.py +30 -0
  134. boltix/types/list_handoffs_output_body.py +30 -0
  135. boltix/types/list_messages_output_body.py +30 -0
  136. boltix/types/list_organizations_output_body.py +30 -0
  137. boltix/types/list_panels_output_body.py +30 -0
  138. boltix/types/list_products_output_body.py +30 -0
  139. boltix/types/list_recipients_output_body.py +30 -0
  140. boltix/types/list_snippets_output_body.py +30 -0
  141. boltix/types/list_stores_output_body.py +30 -0
  142. boltix/types/list_tags_output_body.py +30 -0
  143. boltix/types/list_teams_output_body.py +30 -0
  144. boltix/types/list_templates_output_body.py +30 -0
  145. boltix/types/list_triggers_output_body.py +30 -0
  146. boltix/types/list_webhooks_output_body.py +30 -0
  147. boltix/types/list_workflows_output_body.py +30 -0
  148. boltix/types/login_output_body.py +45 -0
  149. boltix/types/message_response.py +126 -0
  150. boltix/types/organization_response.py +55 -0
  151. boltix/types/panel_data_response.py +45 -0
  152. boltix/types/panel_filter_input.py +33 -0
  153. boltix/types/panel_filter_input_operator.py +7 -0
  154. boltix/types/panel_filter_response.py +32 -0
  155. boltix/types/panel_response.py +151 -0
  156. boltix/types/product_response.py +100 -0
  157. boltix/types/recipient_input.py +37 -0
  158. boltix/types/recipient_response.py +85 -0
  159. boltix/types/refresh_output_body.py +39 -0
  160. boltix/types/register_output_body.py +30 -0
  161. boltix/types/snippet_response.py +81 -0
  162. boltix/types/store_response.py +70 -0
  163. boltix/types/tag_response.py +50 -0
  164. boltix/types/team_response.py +80 -0
  165. boltix/types/template_response.py +127 -0
  166. boltix/types/webhook_response.py +67 -0
  167. boltix/webhooks/__init__.py +4 -0
  168. boltix/webhooks/client.py +1078 -0
  169. boltix/webhooks/raw_client.py +1202 -0
  170. boltix-0.0.1.dist-info/METADATA +200 -0
  171. boltix-0.0.1.dist-info/RECORD +173 -0
  172. boltix-0.0.1.dist-info/WHEEL +5 -0
  173. boltix-0.0.1.dist-info/top_level.txt +1 -0
boltix/README.md ADDED
@@ -0,0 +1,190 @@
1
+ # Boltix Python Library
2
+
3
+ [![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-Built%20with%20Fern-brightgreen)](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=Boltix%2FPython)
4
+ [![pypi](https://img.shields.io/pypi/v/boltix)](https://pypi.python.org/pypi/boltix)
5
+
6
+ The Boltix Python library provides convenient access to the Boltix APIs from Python.
7
+
8
+ ## Table of Contents
9
+
10
+ - [Installation](#installation)
11
+ - [Reference](#reference)
12
+ - [Usage](#usage)
13
+ - [Environments](#environments)
14
+ - [Async Client](#async-client)
15
+ - [Exception Handling](#exception-handling)
16
+ - [Advanced](#advanced)
17
+ - [Access Raw Response Data](#access-raw-response-data)
18
+ - [Retries](#retries)
19
+ - [Timeouts](#timeouts)
20
+ - [Custom Client](#custom-client)
21
+ - [Contributing](#contributing)
22
+
23
+ ## Installation
24
+
25
+ ```sh
26
+ pip install boltix
27
+ ```
28
+
29
+ ## Reference
30
+
31
+ A full reference for this library is available [here](./reference.md).
32
+
33
+ ## Usage
34
+
35
+ Instantiate and use the client with the following:
36
+
37
+ ```python
38
+ from boltix import BoltixApi
39
+
40
+ client = BoltixApi(
41
+ token="<token>",
42
+ )
43
+
44
+ client.identity.create_account(
45
+ email="email",
46
+ password="password",
47
+ )
48
+ ```
49
+
50
+ ## Environments
51
+
52
+ This SDK allows you to configure different environments for API requests.
53
+
54
+ ```python
55
+ from boltix import BoltixApi
56
+ from boltix.environment import BoltixApiEnvironment
57
+
58
+ client = BoltixApi(
59
+ environment=BoltixApiEnvironment.PRODUCTION,
60
+ )
61
+ ```
62
+
63
+ ## Async Client
64
+
65
+ The SDK also exports an `async` client so that you can make non-blocking calls to our API. Note that if you are constructing an Async httpx client class to pass into this client, use `httpx.AsyncClient()` instead of `httpx.Client()` (e.g. for the `httpx_client` parameter of this client).
66
+
67
+ ```python
68
+ import asyncio
69
+
70
+ from boltix import AsyncBoltixApi
71
+
72
+ client = AsyncBoltixApi(
73
+ token="<token>",
74
+ )
75
+
76
+
77
+ async def main() -> None:
78
+ await client.identity.create_account(
79
+ email="email",
80
+ password="password",
81
+ )
82
+
83
+
84
+ asyncio.run(main())
85
+ ```
86
+
87
+ ## Exception Handling
88
+
89
+ When the API returns a non-success status code (4xx or 5xx response), a subclass of the following error
90
+ will be thrown.
91
+
92
+ ```python
93
+ from boltix.core.api_error import ApiError
94
+
95
+ try:
96
+ client.identity.create_account(...)
97
+ except ApiError as e:
98
+ print(e.status_code)
99
+ print(e.body)
100
+ ```
101
+
102
+ ## Advanced
103
+
104
+ ### Access Raw Response Data
105
+
106
+ The SDK provides access to raw response data, including headers, through the `.with_raw_response` property.
107
+ The `.with_raw_response` property returns a "raw" client that can be used to access the `.headers` and `.data` attributes.
108
+
109
+ ```python
110
+ from boltix import BoltixApi
111
+
112
+ client = BoltixApi(...)
113
+ response = client.identity.with_raw_response.create_account(...)
114
+ print(response.headers) # access the response headers
115
+ print(response.status_code) # access the response status code
116
+ print(response.data) # access the underlying object
117
+ ```
118
+
119
+ ### Retries
120
+
121
+ The SDK is instrumented with automatic retries with exponential backoff. A request will be retried as long
122
+ as the request is deemed retryable and the number of retry attempts has not grown larger than the configured
123
+ retry limit (default: 2).
124
+
125
+ Which status codes are retried depends on the `retryStatusCodes` generator configuration:
126
+
127
+ **`legacy`** (current default): retries on
128
+ - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
129
+ - [409](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409) (Conflict)
130
+ - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
131
+ - [5XX](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#server_error_responses) (All server errors, including 500)
132
+
133
+ **`recommended`**: retries on
134
+ - [408](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/408) (Timeout)
135
+ - [409](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/409) (Conflict)
136
+ - [429](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429) (Too Many Requests)
137
+ - [502](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/502) (Bad Gateway)
138
+ - [503](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/503) (Service Unavailable)
139
+ - [504](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/504) (Gateway Timeout)
140
+
141
+ Use the `max_retries` request option to configure this behavior.
142
+
143
+ ```python
144
+ client.identity.create_account(..., request_options={
145
+ "max_retries": 1
146
+ })
147
+ ```
148
+
149
+ ### Timeouts
150
+
151
+ The SDK defaults to a 60 second timeout. You can configure this with a timeout option at the client or request level.
152
+
153
+ ```python
154
+ from boltix import BoltixApi
155
+
156
+ client = BoltixApi(..., timeout=20.0)
157
+
158
+ # Override timeout for a specific method
159
+ client.identity.create_account(..., request_options={
160
+ "timeout_in_seconds": 1
161
+ })
162
+ ```
163
+
164
+ ### Custom Client
165
+
166
+ You can override the `httpx` client to customize it for your use-case. Some common use-cases include support for proxies
167
+ and transports.
168
+
169
+ ```python
170
+ import httpx
171
+ from boltix import BoltixApi
172
+
173
+ client = BoltixApi(
174
+ ...,
175
+ httpx_client=httpx.Client(
176
+ proxy="http://my.test.proxy.example.com",
177
+ transport=httpx.HTTPTransport(local_address="0.0.0.0"),
178
+ ),
179
+ )
180
+ ```
181
+
182
+ ## Contributing
183
+
184
+ While we value open-source contributions to this SDK, this library is generated programmatically.
185
+ Additions made directly to this library would have to be moved over to our generation code,
186
+ otherwise they would be overwritten upon the next generated release. Feel free to open a PR as
187
+ a proof of concept, but know that we will not be able to merge it as-is. We suggest opening
188
+ an issue first to discuss with us!
189
+
190
+ On the other hand, contributions to the README are always very welcome!
boltix/__init__.py ADDED
@@ -0,0 +1,347 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ # isort: skip_file
4
+
5
+ import typing
6
+ from importlib import import_module
7
+
8
+ if typing.TYPE_CHECKING:
9
+ from .types import (
10
+ ActionResponse,
11
+ AddRecipientsOutputBody,
12
+ AgentResponse,
13
+ AutomationConfigResponse,
14
+ AutomationTriggerResponse,
15
+ AutomationWorkflowResponse,
16
+ CampaignResponse,
17
+ ChannelResponse,
18
+ ChannelResponseStatus,
19
+ ChartDataPointResponse,
20
+ ContactResponse,
21
+ CreateDownloadUrlOutputBody,
22
+ CreateUploadUrlOutputBody,
23
+ ErrorDetail,
24
+ ErrorModel,
25
+ EventResponse,
26
+ HandoffResponse,
27
+ IdentityAccountResponse,
28
+ IntelligenceContextResponse,
29
+ IntelligenceContextResponseContextType,
30
+ ListAccountsOutputBody,
31
+ ListActionsOutputBody,
32
+ ListAgentsOutputBody,
33
+ ListCampaignsOutputBody,
34
+ ListChannelsOutputBody,
35
+ ListContactsOutputBody,
36
+ ListContextsOutputBody,
37
+ ListEventsOutputBody,
38
+ ListHandoffsOutputBody,
39
+ ListMessagesOutputBody,
40
+ ListOrganizationsOutputBody,
41
+ ListPanelsOutputBody,
42
+ ListProductsOutputBody,
43
+ ListRecipientsOutputBody,
44
+ ListSnippetsOutputBody,
45
+ ListStoresOutputBody,
46
+ ListTagsOutputBody,
47
+ ListTeamsOutputBody,
48
+ ListTemplatesOutputBody,
49
+ ListTriggersOutputBody,
50
+ ListWebhooksOutputBody,
51
+ ListWorkflowsOutputBody,
52
+ LoginOutputBody,
53
+ MessageResponse,
54
+ OrganizationResponse,
55
+ PanelDataResponse,
56
+ PanelFilterInput,
57
+ PanelFilterInputOperator,
58
+ PanelFilterResponse,
59
+ PanelResponse,
60
+ ProductResponse,
61
+ RecipientInput,
62
+ RecipientResponse,
63
+ RefreshOutputBody,
64
+ RegisterOutputBody,
65
+ SnippetResponse,
66
+ StoreResponse,
67
+ TagResponse,
68
+ TeamResponse,
69
+ TemplateResponse,
70
+ WebhookResponse,
71
+ )
72
+ from . import (
73
+ audit,
74
+ auth,
75
+ automation,
76
+ campaigns,
77
+ catalog,
78
+ channels,
79
+ contacts,
80
+ identity,
81
+ insights,
82
+ intelligence,
83
+ media,
84
+ messages,
85
+ organizations,
86
+ routing,
87
+ snippets,
88
+ tags,
89
+ templates,
90
+ webhooks,
91
+ )
92
+ from ._default_clients import DefaultAioHttpClient, DefaultAsyncHttpxClient
93
+ from .automation import CreateTriggerInputBodyMatchType, UpdateTriggerInputBodyMatchType
94
+ from .channels import UpdateChannelInputBodyStatus
95
+ from .client import AsyncBoltixApi, BoltixApi
96
+ from .environment import BoltixApiEnvironment
97
+ from .insights import (
98
+ CreatePanelInputBodyDataSource,
99
+ CreatePanelInputBodyDisplayType,
100
+ CreatePanelInputBodyMetric,
101
+ CreatePanelInputBodySize,
102
+ UpdatePanelInputBodyDataSource,
103
+ UpdatePanelInputBodyDisplayType,
104
+ UpdatePanelInputBodyMetric,
105
+ UpdatePanelInputBodySize,
106
+ )
107
+ from .intelligence import CreateContextInputBodyContextType, UpdateContextInputBodyContextType
108
+ from .routing import (
109
+ AddAgentInputBodyRole,
110
+ CreateHandoffInputBodySource,
111
+ CreateTeamInputBodyAssignmentStrategy,
112
+ UpdateTeamInputBodyAssignmentStrategy,
113
+ )
114
+ from .tags import CreateTagInputBodyColor, UpdateTagInputBodyColor
115
+ _dynamic_imports: typing.Dict[str, str] = {
116
+ "ActionResponse": ".types",
117
+ "AddAgentInputBodyRole": ".routing",
118
+ "AddRecipientsOutputBody": ".types",
119
+ "AgentResponse": ".types",
120
+ "AsyncBoltixApi": ".client",
121
+ "AutomationConfigResponse": ".types",
122
+ "AutomationTriggerResponse": ".types",
123
+ "AutomationWorkflowResponse": ".types",
124
+ "BoltixApi": ".client",
125
+ "BoltixApiEnvironment": ".environment",
126
+ "CampaignResponse": ".types",
127
+ "ChannelResponse": ".types",
128
+ "ChannelResponseStatus": ".types",
129
+ "ChartDataPointResponse": ".types",
130
+ "ContactResponse": ".types",
131
+ "CreateContextInputBodyContextType": ".intelligence",
132
+ "CreateDownloadUrlOutputBody": ".types",
133
+ "CreateHandoffInputBodySource": ".routing",
134
+ "CreatePanelInputBodyDataSource": ".insights",
135
+ "CreatePanelInputBodyDisplayType": ".insights",
136
+ "CreatePanelInputBodyMetric": ".insights",
137
+ "CreatePanelInputBodySize": ".insights",
138
+ "CreateTagInputBodyColor": ".tags",
139
+ "CreateTeamInputBodyAssignmentStrategy": ".routing",
140
+ "CreateTriggerInputBodyMatchType": ".automation",
141
+ "CreateUploadUrlOutputBody": ".types",
142
+ "DefaultAioHttpClient": "._default_clients",
143
+ "DefaultAsyncHttpxClient": "._default_clients",
144
+ "ErrorDetail": ".types",
145
+ "ErrorModel": ".types",
146
+ "EventResponse": ".types",
147
+ "HandoffResponse": ".types",
148
+ "IdentityAccountResponse": ".types",
149
+ "IntelligenceContextResponse": ".types",
150
+ "IntelligenceContextResponseContextType": ".types",
151
+ "ListAccountsOutputBody": ".types",
152
+ "ListActionsOutputBody": ".types",
153
+ "ListAgentsOutputBody": ".types",
154
+ "ListCampaignsOutputBody": ".types",
155
+ "ListChannelsOutputBody": ".types",
156
+ "ListContactsOutputBody": ".types",
157
+ "ListContextsOutputBody": ".types",
158
+ "ListEventsOutputBody": ".types",
159
+ "ListHandoffsOutputBody": ".types",
160
+ "ListMessagesOutputBody": ".types",
161
+ "ListOrganizationsOutputBody": ".types",
162
+ "ListPanelsOutputBody": ".types",
163
+ "ListProductsOutputBody": ".types",
164
+ "ListRecipientsOutputBody": ".types",
165
+ "ListSnippetsOutputBody": ".types",
166
+ "ListStoresOutputBody": ".types",
167
+ "ListTagsOutputBody": ".types",
168
+ "ListTeamsOutputBody": ".types",
169
+ "ListTemplatesOutputBody": ".types",
170
+ "ListTriggersOutputBody": ".types",
171
+ "ListWebhooksOutputBody": ".types",
172
+ "ListWorkflowsOutputBody": ".types",
173
+ "LoginOutputBody": ".types",
174
+ "MessageResponse": ".types",
175
+ "OrganizationResponse": ".types",
176
+ "PanelDataResponse": ".types",
177
+ "PanelFilterInput": ".types",
178
+ "PanelFilterInputOperator": ".types",
179
+ "PanelFilterResponse": ".types",
180
+ "PanelResponse": ".types",
181
+ "ProductResponse": ".types",
182
+ "RecipientInput": ".types",
183
+ "RecipientResponse": ".types",
184
+ "RefreshOutputBody": ".types",
185
+ "RegisterOutputBody": ".types",
186
+ "SnippetResponse": ".types",
187
+ "StoreResponse": ".types",
188
+ "TagResponse": ".types",
189
+ "TeamResponse": ".types",
190
+ "TemplateResponse": ".types",
191
+ "UpdateChannelInputBodyStatus": ".channels",
192
+ "UpdateContextInputBodyContextType": ".intelligence",
193
+ "UpdatePanelInputBodyDataSource": ".insights",
194
+ "UpdatePanelInputBodyDisplayType": ".insights",
195
+ "UpdatePanelInputBodyMetric": ".insights",
196
+ "UpdatePanelInputBodySize": ".insights",
197
+ "UpdateTagInputBodyColor": ".tags",
198
+ "UpdateTeamInputBodyAssignmentStrategy": ".routing",
199
+ "UpdateTriggerInputBodyMatchType": ".automation",
200
+ "WebhookResponse": ".types",
201
+ "audit": ".audit",
202
+ "auth": ".auth",
203
+ "automation": ".automation",
204
+ "campaigns": ".campaigns",
205
+ "catalog": ".catalog",
206
+ "channels": ".channels",
207
+ "contacts": ".contacts",
208
+ "identity": ".identity",
209
+ "insights": ".insights",
210
+ "intelligence": ".intelligence",
211
+ "media": ".media",
212
+ "messages": ".messages",
213
+ "organizations": ".organizations",
214
+ "routing": ".routing",
215
+ "snippets": ".snippets",
216
+ "tags": ".tags",
217
+ "templates": ".templates",
218
+ "webhooks": ".webhooks",
219
+ }
220
+
221
+
222
+ def __getattr__(attr_name: str) -> typing.Any:
223
+ module_name = _dynamic_imports.get(attr_name)
224
+ if module_name is None:
225
+ raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
226
+ try:
227
+ module = import_module(module_name, __package__)
228
+ if module_name == f".{attr_name}":
229
+ return module
230
+ else:
231
+ return getattr(module, attr_name)
232
+ except ImportError as e:
233
+ raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
234
+ except AttributeError as e:
235
+ raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
236
+
237
+
238
+ def __dir__():
239
+ lazy_attrs = list(_dynamic_imports.keys())
240
+ return sorted(lazy_attrs)
241
+
242
+
243
+ __all__ = [
244
+ "ActionResponse",
245
+ "AddAgentInputBodyRole",
246
+ "AddRecipientsOutputBody",
247
+ "AgentResponse",
248
+ "AsyncBoltixApi",
249
+ "AutomationConfigResponse",
250
+ "AutomationTriggerResponse",
251
+ "AutomationWorkflowResponse",
252
+ "BoltixApi",
253
+ "BoltixApiEnvironment",
254
+ "CampaignResponse",
255
+ "ChannelResponse",
256
+ "ChannelResponseStatus",
257
+ "ChartDataPointResponse",
258
+ "ContactResponse",
259
+ "CreateContextInputBodyContextType",
260
+ "CreateDownloadUrlOutputBody",
261
+ "CreateHandoffInputBodySource",
262
+ "CreatePanelInputBodyDataSource",
263
+ "CreatePanelInputBodyDisplayType",
264
+ "CreatePanelInputBodyMetric",
265
+ "CreatePanelInputBodySize",
266
+ "CreateTagInputBodyColor",
267
+ "CreateTeamInputBodyAssignmentStrategy",
268
+ "CreateTriggerInputBodyMatchType",
269
+ "CreateUploadUrlOutputBody",
270
+ "DefaultAioHttpClient",
271
+ "DefaultAsyncHttpxClient",
272
+ "ErrorDetail",
273
+ "ErrorModel",
274
+ "EventResponse",
275
+ "HandoffResponse",
276
+ "IdentityAccountResponse",
277
+ "IntelligenceContextResponse",
278
+ "IntelligenceContextResponseContextType",
279
+ "ListAccountsOutputBody",
280
+ "ListActionsOutputBody",
281
+ "ListAgentsOutputBody",
282
+ "ListCampaignsOutputBody",
283
+ "ListChannelsOutputBody",
284
+ "ListContactsOutputBody",
285
+ "ListContextsOutputBody",
286
+ "ListEventsOutputBody",
287
+ "ListHandoffsOutputBody",
288
+ "ListMessagesOutputBody",
289
+ "ListOrganizationsOutputBody",
290
+ "ListPanelsOutputBody",
291
+ "ListProductsOutputBody",
292
+ "ListRecipientsOutputBody",
293
+ "ListSnippetsOutputBody",
294
+ "ListStoresOutputBody",
295
+ "ListTagsOutputBody",
296
+ "ListTeamsOutputBody",
297
+ "ListTemplatesOutputBody",
298
+ "ListTriggersOutputBody",
299
+ "ListWebhooksOutputBody",
300
+ "ListWorkflowsOutputBody",
301
+ "LoginOutputBody",
302
+ "MessageResponse",
303
+ "OrganizationResponse",
304
+ "PanelDataResponse",
305
+ "PanelFilterInput",
306
+ "PanelFilterInputOperator",
307
+ "PanelFilterResponse",
308
+ "PanelResponse",
309
+ "ProductResponse",
310
+ "RecipientInput",
311
+ "RecipientResponse",
312
+ "RefreshOutputBody",
313
+ "RegisterOutputBody",
314
+ "SnippetResponse",
315
+ "StoreResponse",
316
+ "TagResponse",
317
+ "TeamResponse",
318
+ "TemplateResponse",
319
+ "UpdateChannelInputBodyStatus",
320
+ "UpdateContextInputBodyContextType",
321
+ "UpdatePanelInputBodyDataSource",
322
+ "UpdatePanelInputBodyDisplayType",
323
+ "UpdatePanelInputBodyMetric",
324
+ "UpdatePanelInputBodySize",
325
+ "UpdateTagInputBodyColor",
326
+ "UpdateTeamInputBodyAssignmentStrategy",
327
+ "UpdateTriggerInputBodyMatchType",
328
+ "WebhookResponse",
329
+ "audit",
330
+ "auth",
331
+ "automation",
332
+ "campaigns",
333
+ "catalog",
334
+ "channels",
335
+ "contacts",
336
+ "identity",
337
+ "insights",
338
+ "intelligence",
339
+ "media",
340
+ "messages",
341
+ "organizations",
342
+ "routing",
343
+ "snippets",
344
+ "tags",
345
+ "templates",
346
+ "webhooks",
347
+ ]
@@ -0,0 +1,30 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ import typing
4
+
5
+ import httpx
6
+
7
+ SDK_DEFAULT_TIMEOUT = 60
8
+
9
+ try:
10
+ import httpx_aiohttp # type: ignore[import-not-found]
11
+ except ImportError:
12
+
13
+ class DefaultAioHttpClient(httpx.AsyncClient): # type: ignore
14
+ def __init__(self, **kwargs: typing.Any) -> None:
15
+ raise RuntimeError("To use the aiohttp client, install the aiohttp extra: pip install package[aiohttp]")
16
+
17
+ else:
18
+
19
+ class DefaultAioHttpClient(httpx_aiohttp.HttpxAiohttpClient): # type: ignore
20
+ def __init__(self, **kwargs: typing.Any) -> None:
21
+ kwargs.setdefault("timeout", SDK_DEFAULT_TIMEOUT)
22
+ kwargs.setdefault("follow_redirects", True)
23
+ super().__init__(**kwargs)
24
+
25
+
26
+ class DefaultAsyncHttpxClient(httpx.AsyncClient):
27
+ def __init__(self, **kwargs: typing.Any) -> None:
28
+ kwargs.setdefault("timeout", SDK_DEFAULT_TIMEOUT)
29
+ kwargs.setdefault("follow_redirects", True)
30
+ super().__init__(**kwargs)
@@ -0,0 +1,4 @@
1
+ # This file was auto-generated by Fern from our API Definition.
2
+
3
+ # isort: skip_file
4
+