newscatcher-catchall-sdk 0.0.0.dev0__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 (195) hide show
  1. newscatcher_catchall/__init__.py +496 -0
  2. newscatcher_catchall/_default_clients.py +32 -0
  3. newscatcher_catchall/client.py +326 -0
  4. newscatcher_catchall/core/__init__.py +127 -0
  5. newscatcher_catchall/core/api_error.py +23 -0
  6. newscatcher_catchall/core/client_wrapper.py +123 -0
  7. newscatcher_catchall/core/datetime_utils.py +70 -0
  8. newscatcher_catchall/core/file.py +67 -0
  9. newscatcher_catchall/core/force_multipart.py +18 -0
  10. newscatcher_catchall/core/http_client.py +839 -0
  11. newscatcher_catchall/core/http_response.py +59 -0
  12. newscatcher_catchall/core/http_sse/__init__.py +42 -0
  13. newscatcher_catchall/core/http_sse/_api.py +170 -0
  14. newscatcher_catchall/core/http_sse/_decoders.py +61 -0
  15. newscatcher_catchall/core/http_sse/_exceptions.py +7 -0
  16. newscatcher_catchall/core/http_sse/_models.py +17 -0
  17. newscatcher_catchall/core/jsonable_encoder.py +120 -0
  18. newscatcher_catchall/core/logging.py +107 -0
  19. newscatcher_catchall/core/parse_error.py +36 -0
  20. newscatcher_catchall/core/pydantic_utilities.py +508 -0
  21. newscatcher_catchall/core/query_encoder.py +58 -0
  22. newscatcher_catchall/core/remove_none_from_dict.py +11 -0
  23. newscatcher_catchall/core/request_options.py +35 -0
  24. newscatcher_catchall/core/serialization.py +347 -0
  25. newscatcher_catchall/datasets/__init__.py +4 -0
  26. newscatcher_catchall/datasets/client.py +1213 -0
  27. newscatcher_catchall/datasets/raw_client.py +1963 -0
  28. newscatcher_catchall/entities/__init__.py +4 -0
  29. newscatcher_catchall/entities/client.py +772 -0
  30. newscatcher_catchall/entities/raw_client.py +1019 -0
  31. newscatcher_catchall/environment.py +7 -0
  32. newscatcher_catchall/errors/__init__.py +44 -0
  33. newscatcher_catchall/errors/bad_request_error.py +10 -0
  34. newscatcher_catchall/errors/forbidden_error.py +11 -0
  35. newscatcher_catchall/errors/not_found_error.py +11 -0
  36. newscatcher_catchall/errors/unauthorized_error.py +11 -0
  37. newscatcher_catchall/errors/unprocessable_entity_error.py +11 -0
  38. newscatcher_catchall/jobs/__init__.py +34 -0
  39. newscatcher_catchall/jobs/client.py +1053 -0
  40. newscatcher_catchall/jobs/raw_client.py +1592 -0
  41. newscatcher_catchall/jobs/types/__init__.py +34 -0
  42. newscatcher_catchall/jobs/types/submit_request_dto_mode.py +5 -0
  43. newscatcher_catchall/meta/__init__.py +34 -0
  44. newscatcher_catchall/meta/client.py +224 -0
  45. newscatcher_catchall/meta/raw_client.py +289 -0
  46. newscatcher_catchall/meta/types/__init__.py +38 -0
  47. newscatcher_catchall/meta/types/get_version_response.py +19 -0
  48. newscatcher_catchall/meta/types/health_check_response.py +19 -0
  49. newscatcher_catchall/monitors/__init__.py +52 -0
  50. newscatcher_catchall/monitors/client.py +1025 -0
  51. newscatcher_catchall/monitors/raw_client.py +1629 -0
  52. newscatcher_catchall/monitors/types/__init__.py +50 -0
  53. newscatcher_catchall/monitors/types/disable_monitor_response.py +32 -0
  54. newscatcher_catchall/monitors/types/enable_monitor_response.py +32 -0
  55. newscatcher_catchall/monitors/types/list_monitor_jobs_request_sort.py +5 -0
  56. newscatcher_catchall/monitors/types/list_monitor_jobs_response.py +39 -0
  57. newscatcher_catchall/monitors/types/list_monitor_jobs_response_sort_order.py +5 -0
  58. newscatcher_catchall/projects/__init__.py +4 -0
  59. newscatcher_catchall/projects/client.py +909 -0
  60. newscatcher_catchall/projects/raw_client.py +1488 -0
  61. newscatcher_catchall/py.typed +0 -0
  62. newscatcher_catchall/types/__init__.py +403 -0
  63. newscatcher_catchall/types/add_resource_response_dto.py +33 -0
  64. newscatcher_catchall/types/additional_attributes.py +24 -0
  65. newscatcher_catchall/types/api_key_auth_dto.py +27 -0
  66. newscatcher_catchall/types/assign_webhook_resource_response_dto.py +38 -0
  67. newscatcher_catchall/types/base_record.py +37 -0
  68. newscatcher_catchall/types/base_record_enrichment.py +31 -0
  69. newscatcher_catchall/types/base_record_enrichment_enrichment_confidence.py +5 -0
  70. newscatcher_catchall/types/basic_auth_dto.py +27 -0
  71. newscatcher_catchall/types/bearer_auth_dto.py +22 -0
  72. newscatcher_catchall/types/citation.py +33 -0
  73. newscatcher_catchall/types/company_attributes.py +43 -0
  74. newscatcher_catchall/types/company_enrichment_output.py +34 -0
  75. newscatcher_catchall/types/company_enrichment_output_metadata.py +35 -0
  76. newscatcher_catchall/types/company_enrichment_output_metadata_domain_url_confidence.py +5 -0
  77. newscatcher_catchall/types/connected_dataset.py +36 -0
  78. newscatcher_catchall/types/connected_entity.py +73 -0
  79. newscatcher_catchall/types/context.py +6 -0
  80. newscatcher_catchall/types/continue_response_dto.py +37 -0
  81. newscatcher_catchall/types/create_dataset_csv_response.py +35 -0
  82. newscatcher_catchall/types/create_entities_batch_response.py +28 -0
  83. newscatcher_catchall/types/create_entity_request.py +42 -0
  84. newscatcher_catchall/types/create_entity_response.py +27 -0
  85. newscatcher_catchall/types/create_monitor_response_dto.py +27 -0
  86. newscatcher_catchall/types/create_project_response_dto.py +37 -0
  87. newscatcher_catchall/types/create_webhook_response_dto.py +33 -0
  88. newscatcher_catchall/types/dataset_entity_ids_request.py +22 -0
  89. newscatcher_catchall/types/dataset_entity_list_response.py +38 -0
  90. newscatcher_catchall/types/dataset_list_response.py +38 -0
  91. newscatcher_catchall/types/dataset_response.py +60 -0
  92. newscatcher_catchall/types/dataset_sort_by.py +5 -0
  93. newscatcher_catchall/types/dataset_status.py +5 -0
  94. newscatcher_catchall/types/dataset_status_entry.py +34 -0
  95. newscatcher_catchall/types/dataset_status_history_response.py +28 -0
  96. newscatcher_catchall/types/delete_job_response_dto.py +32 -0
  97. newscatcher_catchall/types/delete_monitor_response_dto.py +32 -0
  98. newscatcher_catchall/types/delivery_history_item_dto.py +75 -0
  99. newscatcher_catchall/types/delivery_history_response_dto.py +54 -0
  100. newscatcher_catchall/types/delivery_mode.py +5 -0
  101. newscatcher_catchall/types/delivery_status.py +5 -0
  102. newscatcher_catchall/types/end_date.py +12 -0
  103. newscatcher_catchall/types/enrichment_schema.py +36 -0
  104. newscatcher_catchall/types/enrichment_type.py +5 -0
  105. newscatcher_catchall/types/entity_association_type.py +5 -0
  106. newscatcher_catchall/types/entity_list_response.py +38 -0
  107. newscatcher_catchall/types/entity_response.py +64 -0
  108. newscatcher_catchall/types/entity_sort_by.py +5 -0
  109. newscatcher_catchall/types/entity_status.py +5 -0
  110. newscatcher_catchall/types/entity_summary.py +51 -0
  111. newscatcher_catchall/types/entity_type.py +5 -0
  112. newscatcher_catchall/types/entity_validation_error_body.py +39 -0
  113. newscatcher_catchall/types/error.py +22 -0
  114. newscatcher_catchall/types/get_plan_limits_response_dto.py +23 -0
  115. newscatcher_catchall/types/get_webhook_response_dto.py +33 -0
  116. newscatcher_catchall/types/http_method.py +5 -0
  117. newscatcher_catchall/types/initialize_response_dto.py +50 -0
  118. newscatcher_catchall/types/issue_type.py +18 -0
  119. newscatcher_catchall/types/job_step.py +29 -0
  120. newscatcher_catchall/types/limit.py +8 -0
  121. newscatcher_catchall/types/list_monitors_response_dto.py +43 -0
  122. newscatcher_catchall/types/list_user_jobs_response_dto.py +43 -0
  123. newscatcher_catchall/types/list_webhook_resources_response_dto.py +43 -0
  124. newscatcher_catchall/types/list_webhooks_response_dto.py +43 -0
  125. newscatcher_catchall/types/manage_entities_response.py +27 -0
  126. newscatcher_catchall/types/mappable_resource_type.py +5 -0
  127. newscatcher_catchall/types/monitor_citation.py +39 -0
  128. newscatcher_catchall/types/monitor_job_item.py +33 -0
  129. newscatcher_catchall/types/monitor_list_item_dto.py +75 -0
  130. newscatcher_catchall/types/monitor_record.py +41 -0
  131. newscatcher_catchall/types/monitor_status_entry.py +67 -0
  132. newscatcher_catchall/types/monitor_status_entry_status.py +5 -0
  133. newscatcher_catchall/types/monitor_status_history_response_dto.py +43 -0
  134. newscatcher_catchall/types/ownership_filter.py +5 -0
  135. newscatcher_catchall/types/plan_feature.py +42 -0
  136. newscatcher_catchall/types/project_list_response_dto.py +43 -0
  137. newscatcher_catchall/types/project_overview_counts_dto.py +8 -0
  138. newscatcher_catchall/types/project_overview_response_dto.py +28 -0
  139. newscatcher_catchall/types/project_overview_response_dto_overview.py +27 -0
  140. newscatcher_catchall/types/project_resource_dto.py +45 -0
  141. newscatcher_catchall/types/project_resource_list_response_dto.py +43 -0
  142. newscatcher_catchall/types/project_resource_type.py +5 -0
  143. newscatcher_catchall/types/project_response_dto.py +58 -0
  144. newscatcher_catchall/types/project_summary_dto.py +52 -0
  145. newscatcher_catchall/types/public_job_status.py +7 -0
  146. newscatcher_catchall/types/pull_job_response_dto.py +125 -0
  147. newscatcher_catchall/types/pull_job_response_dto_date_range.py +21 -0
  148. newscatcher_catchall/types/pull_job_response_dto_mode.py +5 -0
  149. newscatcher_catchall/types/pull_monitor_response_dto.py +74 -0
  150. newscatcher_catchall/types/pull_monitor_response_dto_run_info.py +32 -0
  151. newscatcher_catchall/types/query.py +8 -0
  152. newscatcher_catchall/types/query_status.py +5 -0
  153. newscatcher_catchall/types/record.py +31 -0
  154. newscatcher_catchall/types/reference_job.py +27 -0
  155. newscatcher_catchall/types/remove_resource_response_dto.py +27 -0
  156. newscatcher_catchall/types/resource_item_dto.py +24 -0
  157. newscatcher_catchall/types/resource_result_dto.py +42 -0
  158. newscatcher_catchall/types/sharing_info.py +40 -0
  159. newscatcher_catchall/types/sharing_info_permission.py +5 -0
  160. newscatcher_catchall/types/skipped_row.py +33 -0
  161. newscatcher_catchall/types/sort_order.py +5 -0
  162. newscatcher_catchall/types/start_date.py +12 -0
  163. newscatcher_catchall/types/status_response_dto.py +34 -0
  164. newscatcher_catchall/types/submit_response_dto.py +22 -0
  165. newscatcher_catchall/types/suggestion.py +37 -0
  166. newscatcher_catchall/types/test_webhook_response_dto.py +37 -0
  167. newscatcher_catchall/types/update_monitor_response_dto.py +27 -0
  168. newscatcher_catchall/types/update_project_response_dto.py +32 -0
  169. newscatcher_catchall/types/update_webhook_response_dto.py +33 -0
  170. newscatcher_catchall/types/upload_csv_to_dataset_response.py +30 -0
  171. newscatcher_catchall/types/user_job.py +55 -0
  172. newscatcher_catchall/types/user_job_mode.py +5 -0
  173. newscatcher_catchall/types/validate_query_response_dto.py +54 -0
  174. newscatcher_catchall/types/validation_error_detail.py +33 -0
  175. newscatcher_catchall/types/validation_error_detail_loc_item.py +5 -0
  176. newscatcher_catchall/types/validation_error_response.py +20 -0
  177. newscatcher_catchall/types/validation_report.py +43 -0
  178. newscatcher_catchall/types/validator_schema.py +38 -0
  179. newscatcher_catchall/types/webhook_dto.py +43 -0
  180. newscatcher_catchall/types/webhook_dto_method.py +5 -0
  181. newscatcher_catchall/types/webhook_payload.py +70 -0
  182. newscatcher_catchall/types/webhook_resource_mapping_response_dto.py +43 -0
  183. newscatcher_catchall/types/webhook_response_dto.py +79 -0
  184. newscatcher_catchall/types/webhook_type.py +5 -0
  185. newscatcher_catchall/version.py +3 -0
  186. newscatcher_catchall/webhooks/__init__.py +61 -0
  187. newscatcher_catchall/webhooks/client.py +1336 -0
  188. newscatcher_catchall/webhooks/raw_client.py +2127 -0
  189. newscatcher_catchall/webhooks/types/__init__.py +63 -0
  190. newscatcher_catchall/webhooks/types/create_webhook_request_dto_auth.py +82 -0
  191. newscatcher_catchall/webhooks/types/update_webhook_request_dto_auth.py +73 -0
  192. newscatcher_catchall_sdk-0.0.0.dev0.dist-info/LICENSE +21 -0
  193. newscatcher_catchall_sdk-0.0.0.dev0.dist-info/METADATA +255 -0
  194. newscatcher_catchall_sdk-0.0.0.dev0.dist-info/RECORD +195 -0
  195. newscatcher_catchall_sdk-0.0.0.dev0.dist-info/WHEEL +4 -0
@@ -0,0 +1,496 @@
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
+ AddResourceResponseDto,
11
+ AdditionalAttributes,
12
+ ApiKeyAuthDto,
13
+ AssignWebhookResourceResponseDto,
14
+ BaseRecord,
15
+ BaseRecordEnrichment,
16
+ BaseRecordEnrichmentEnrichmentConfidence,
17
+ BasicAuthDto,
18
+ BearerAuthDto,
19
+ Citation,
20
+ CompanyAttributes,
21
+ CompanyEnrichmentOutput,
22
+ CompanyEnrichmentOutputMetadata,
23
+ CompanyEnrichmentOutputMetadataDomainUrlConfidence,
24
+ ConnectedDataset,
25
+ ConnectedEntity,
26
+ Context,
27
+ ContinueResponseDto,
28
+ CreateDatasetCsvResponse,
29
+ CreateEntitiesBatchResponse,
30
+ CreateEntityRequest,
31
+ CreateEntityResponse,
32
+ CreateMonitorResponseDto,
33
+ CreateProjectResponseDto,
34
+ CreateWebhookResponseDto,
35
+ DatasetEntityIdsRequest,
36
+ DatasetEntityListResponse,
37
+ DatasetListResponse,
38
+ DatasetResponse,
39
+ DatasetSortBy,
40
+ DatasetStatus,
41
+ DatasetStatusEntry,
42
+ DatasetStatusHistoryResponse,
43
+ DeleteJobResponseDto,
44
+ DeleteMonitorResponseDto,
45
+ DeliveryHistoryItemDto,
46
+ DeliveryHistoryResponseDto,
47
+ DeliveryMode,
48
+ DeliveryStatus,
49
+ EndDate,
50
+ EnrichmentSchema,
51
+ EnrichmentType,
52
+ EntityAssociationType,
53
+ EntityListResponse,
54
+ EntityResponse,
55
+ EntitySortBy,
56
+ EntityStatus,
57
+ EntitySummary,
58
+ EntityType,
59
+ EntityValidationErrorBody,
60
+ Error,
61
+ GetPlanLimitsResponseDto,
62
+ GetWebhookResponseDto,
63
+ HttpMethod,
64
+ InitializeResponseDto,
65
+ IssueType,
66
+ JobStep,
67
+ Limit,
68
+ ListMonitorsResponseDto,
69
+ ListUserJobsResponseDto,
70
+ ListWebhookResourcesResponseDto,
71
+ ListWebhooksResponseDto,
72
+ ManageEntitiesResponse,
73
+ MappableResourceType,
74
+ MonitorCitation,
75
+ MonitorJobItem,
76
+ MonitorListItemDto,
77
+ MonitorRecord,
78
+ MonitorStatusEntry,
79
+ MonitorStatusEntryStatus,
80
+ MonitorStatusHistoryResponseDto,
81
+ OwnershipFilter,
82
+ PlanFeature,
83
+ ProjectListResponseDto,
84
+ ProjectOverviewCountsDto,
85
+ ProjectOverviewResponseDto,
86
+ ProjectOverviewResponseDtoOverview,
87
+ ProjectResourceDto,
88
+ ProjectResourceListResponseDto,
89
+ ProjectResourceType,
90
+ ProjectResponseDto,
91
+ ProjectSummaryDto,
92
+ PublicJobStatus,
93
+ PullJobResponseDto,
94
+ PullJobResponseDtoDateRange,
95
+ PullJobResponseDtoMode,
96
+ PullMonitorResponseDto,
97
+ PullMonitorResponseDtoRunInfo,
98
+ Query,
99
+ QueryStatus,
100
+ Record,
101
+ ReferenceJob,
102
+ RemoveResourceResponseDto,
103
+ ResourceItemDto,
104
+ ResourceResultDto,
105
+ SharingInfo,
106
+ SharingInfoPermission,
107
+ SkippedRow,
108
+ SortOrder,
109
+ StartDate,
110
+ StatusResponseDto,
111
+ SubmitResponseDto,
112
+ Suggestion,
113
+ TestWebhookResponseDto,
114
+ UpdateMonitorResponseDto,
115
+ UpdateProjectResponseDto,
116
+ UpdateWebhookResponseDto,
117
+ UploadCsvToDatasetResponse,
118
+ UserJob,
119
+ UserJobMode,
120
+ ValidateQueryResponseDto,
121
+ ValidationErrorDetail,
122
+ ValidationErrorDetailLocItem,
123
+ ValidationErrorResponse,
124
+ ValidationReport,
125
+ ValidatorSchema,
126
+ WebhookDto,
127
+ WebhookDtoMethod,
128
+ WebhookPayload,
129
+ WebhookResourceMappingResponseDto,
130
+ WebhookResponseDto,
131
+ WebhookType,
132
+ )
133
+ from .errors import BadRequestError, ForbiddenError, NotFoundError, UnauthorizedError, UnprocessableEntityError
134
+ from . import datasets, entities, jobs, meta, monitors, projects, webhooks
135
+ from ._default_clients import DefaultAioHttpClient, DefaultAsyncHttpxClient
136
+ from .client import AsyncCatchAllApi, CatchAllApi
137
+ from .environment import CatchAllApiEnvironment
138
+ from .jobs import SubmitRequestDtoMode
139
+ from .meta import GetVersionResponse, HealthCheckResponse
140
+ from .monitors import (
141
+ DisableMonitorResponse,
142
+ EnableMonitorResponse,
143
+ ListMonitorJobsRequestSort,
144
+ ListMonitorJobsResponse,
145
+ ListMonitorJobsResponseSortOrder,
146
+ )
147
+ from .version import __version__
148
+ from .webhooks import (
149
+ CreateWebhookRequestDtoAuth,
150
+ CreateWebhookRequestDtoAuth_ApiKey,
151
+ CreateWebhookRequestDtoAuth_Basic,
152
+ CreateWebhookRequestDtoAuth_Bearer,
153
+ UpdateWebhookRequestDtoAuth,
154
+ UpdateWebhookRequestDtoAuth_ApiKey,
155
+ UpdateWebhookRequestDtoAuth_Basic,
156
+ UpdateWebhookRequestDtoAuth_Bearer,
157
+ )
158
+ _dynamic_imports: typing.Dict[str, str] = {
159
+ "AddResourceResponseDto": ".types",
160
+ "AdditionalAttributes": ".types",
161
+ "ApiKeyAuthDto": ".types",
162
+ "AssignWebhookResourceResponseDto": ".types",
163
+ "AsyncCatchAllApi": ".client",
164
+ "BadRequestError": ".errors",
165
+ "BaseRecord": ".types",
166
+ "BaseRecordEnrichment": ".types",
167
+ "BaseRecordEnrichmentEnrichmentConfidence": ".types",
168
+ "BasicAuthDto": ".types",
169
+ "BearerAuthDto": ".types",
170
+ "CatchAllApi": ".client",
171
+ "CatchAllApiEnvironment": ".environment",
172
+ "Citation": ".types",
173
+ "CompanyAttributes": ".types",
174
+ "CompanyEnrichmentOutput": ".types",
175
+ "CompanyEnrichmentOutputMetadata": ".types",
176
+ "CompanyEnrichmentOutputMetadataDomainUrlConfidence": ".types",
177
+ "ConnectedDataset": ".types",
178
+ "ConnectedEntity": ".types",
179
+ "Context": ".types",
180
+ "ContinueResponseDto": ".types",
181
+ "CreateDatasetCsvResponse": ".types",
182
+ "CreateEntitiesBatchResponse": ".types",
183
+ "CreateEntityRequest": ".types",
184
+ "CreateEntityResponse": ".types",
185
+ "CreateMonitorResponseDto": ".types",
186
+ "CreateProjectResponseDto": ".types",
187
+ "CreateWebhookRequestDtoAuth": ".webhooks",
188
+ "CreateWebhookRequestDtoAuth_ApiKey": ".webhooks",
189
+ "CreateWebhookRequestDtoAuth_Basic": ".webhooks",
190
+ "CreateWebhookRequestDtoAuth_Bearer": ".webhooks",
191
+ "CreateWebhookResponseDto": ".types",
192
+ "DatasetEntityIdsRequest": ".types",
193
+ "DatasetEntityListResponse": ".types",
194
+ "DatasetListResponse": ".types",
195
+ "DatasetResponse": ".types",
196
+ "DatasetSortBy": ".types",
197
+ "DatasetStatus": ".types",
198
+ "DatasetStatusEntry": ".types",
199
+ "DatasetStatusHistoryResponse": ".types",
200
+ "DefaultAioHttpClient": "._default_clients",
201
+ "DefaultAsyncHttpxClient": "._default_clients",
202
+ "DeleteJobResponseDto": ".types",
203
+ "DeleteMonitorResponseDto": ".types",
204
+ "DeliveryHistoryItemDto": ".types",
205
+ "DeliveryHistoryResponseDto": ".types",
206
+ "DeliveryMode": ".types",
207
+ "DeliveryStatus": ".types",
208
+ "DisableMonitorResponse": ".monitors",
209
+ "EnableMonitorResponse": ".monitors",
210
+ "EndDate": ".types",
211
+ "EnrichmentSchema": ".types",
212
+ "EnrichmentType": ".types",
213
+ "EntityAssociationType": ".types",
214
+ "EntityListResponse": ".types",
215
+ "EntityResponse": ".types",
216
+ "EntitySortBy": ".types",
217
+ "EntityStatus": ".types",
218
+ "EntitySummary": ".types",
219
+ "EntityType": ".types",
220
+ "EntityValidationErrorBody": ".types",
221
+ "Error": ".types",
222
+ "ForbiddenError": ".errors",
223
+ "GetPlanLimitsResponseDto": ".types",
224
+ "GetVersionResponse": ".meta",
225
+ "GetWebhookResponseDto": ".types",
226
+ "HealthCheckResponse": ".meta",
227
+ "HttpMethod": ".types",
228
+ "InitializeResponseDto": ".types",
229
+ "IssueType": ".types",
230
+ "JobStep": ".types",
231
+ "Limit": ".types",
232
+ "ListMonitorJobsRequestSort": ".monitors",
233
+ "ListMonitorJobsResponse": ".monitors",
234
+ "ListMonitorJobsResponseSortOrder": ".monitors",
235
+ "ListMonitorsResponseDto": ".types",
236
+ "ListUserJobsResponseDto": ".types",
237
+ "ListWebhookResourcesResponseDto": ".types",
238
+ "ListWebhooksResponseDto": ".types",
239
+ "ManageEntitiesResponse": ".types",
240
+ "MappableResourceType": ".types",
241
+ "MonitorCitation": ".types",
242
+ "MonitorJobItem": ".types",
243
+ "MonitorListItemDto": ".types",
244
+ "MonitorRecord": ".types",
245
+ "MonitorStatusEntry": ".types",
246
+ "MonitorStatusEntryStatus": ".types",
247
+ "MonitorStatusHistoryResponseDto": ".types",
248
+ "NotFoundError": ".errors",
249
+ "OwnershipFilter": ".types",
250
+ "PlanFeature": ".types",
251
+ "ProjectListResponseDto": ".types",
252
+ "ProjectOverviewCountsDto": ".types",
253
+ "ProjectOverviewResponseDto": ".types",
254
+ "ProjectOverviewResponseDtoOverview": ".types",
255
+ "ProjectResourceDto": ".types",
256
+ "ProjectResourceListResponseDto": ".types",
257
+ "ProjectResourceType": ".types",
258
+ "ProjectResponseDto": ".types",
259
+ "ProjectSummaryDto": ".types",
260
+ "PublicJobStatus": ".types",
261
+ "PullJobResponseDto": ".types",
262
+ "PullJobResponseDtoDateRange": ".types",
263
+ "PullJobResponseDtoMode": ".types",
264
+ "PullMonitorResponseDto": ".types",
265
+ "PullMonitorResponseDtoRunInfo": ".types",
266
+ "Query": ".types",
267
+ "QueryStatus": ".types",
268
+ "Record": ".types",
269
+ "ReferenceJob": ".types",
270
+ "RemoveResourceResponseDto": ".types",
271
+ "ResourceItemDto": ".types",
272
+ "ResourceResultDto": ".types",
273
+ "SharingInfo": ".types",
274
+ "SharingInfoPermission": ".types",
275
+ "SkippedRow": ".types",
276
+ "SortOrder": ".types",
277
+ "StartDate": ".types",
278
+ "StatusResponseDto": ".types",
279
+ "SubmitRequestDtoMode": ".jobs",
280
+ "SubmitResponseDto": ".types",
281
+ "Suggestion": ".types",
282
+ "TestWebhookResponseDto": ".types",
283
+ "UnauthorizedError": ".errors",
284
+ "UnprocessableEntityError": ".errors",
285
+ "UpdateMonitorResponseDto": ".types",
286
+ "UpdateProjectResponseDto": ".types",
287
+ "UpdateWebhookRequestDtoAuth": ".webhooks",
288
+ "UpdateWebhookRequestDtoAuth_ApiKey": ".webhooks",
289
+ "UpdateWebhookRequestDtoAuth_Basic": ".webhooks",
290
+ "UpdateWebhookRequestDtoAuth_Bearer": ".webhooks",
291
+ "UpdateWebhookResponseDto": ".types",
292
+ "UploadCsvToDatasetResponse": ".types",
293
+ "UserJob": ".types",
294
+ "UserJobMode": ".types",
295
+ "ValidateQueryResponseDto": ".types",
296
+ "ValidationErrorDetail": ".types",
297
+ "ValidationErrorDetailLocItem": ".types",
298
+ "ValidationErrorResponse": ".types",
299
+ "ValidationReport": ".types",
300
+ "ValidatorSchema": ".types",
301
+ "WebhookDto": ".types",
302
+ "WebhookDtoMethod": ".types",
303
+ "WebhookPayload": ".types",
304
+ "WebhookResourceMappingResponseDto": ".types",
305
+ "WebhookResponseDto": ".types",
306
+ "WebhookType": ".types",
307
+ "__version__": ".version",
308
+ "datasets": ".datasets",
309
+ "entities": ".entities",
310
+ "jobs": ".jobs",
311
+ "meta": ".meta",
312
+ "monitors": ".monitors",
313
+ "projects": ".projects",
314
+ "webhooks": ".webhooks",
315
+ }
316
+
317
+
318
+ def __getattr__(attr_name: str) -> typing.Any:
319
+ module_name = _dynamic_imports.get(attr_name)
320
+ if module_name is None:
321
+ raise AttributeError(f"No {attr_name} found in _dynamic_imports for module name -> {__name__}")
322
+ try:
323
+ module = import_module(module_name, __package__)
324
+ if module_name == f".{attr_name}":
325
+ return module
326
+ else:
327
+ return getattr(module, attr_name)
328
+ except ImportError as e:
329
+ raise ImportError(f"Failed to import {attr_name} from {module_name}: {e}") from e
330
+ except AttributeError as e:
331
+ raise AttributeError(f"Failed to get {attr_name} from {module_name}: {e}") from e
332
+
333
+
334
+ def __dir__():
335
+ lazy_attrs = list(_dynamic_imports.keys())
336
+ return sorted(lazy_attrs)
337
+
338
+
339
+ __all__ = [
340
+ "AddResourceResponseDto",
341
+ "AdditionalAttributes",
342
+ "ApiKeyAuthDto",
343
+ "AssignWebhookResourceResponseDto",
344
+ "AsyncCatchAllApi",
345
+ "BadRequestError",
346
+ "BaseRecord",
347
+ "BaseRecordEnrichment",
348
+ "BaseRecordEnrichmentEnrichmentConfidence",
349
+ "BasicAuthDto",
350
+ "BearerAuthDto",
351
+ "CatchAllApi",
352
+ "CatchAllApiEnvironment",
353
+ "Citation",
354
+ "CompanyAttributes",
355
+ "CompanyEnrichmentOutput",
356
+ "CompanyEnrichmentOutputMetadata",
357
+ "CompanyEnrichmentOutputMetadataDomainUrlConfidence",
358
+ "ConnectedDataset",
359
+ "ConnectedEntity",
360
+ "Context",
361
+ "ContinueResponseDto",
362
+ "CreateDatasetCsvResponse",
363
+ "CreateEntitiesBatchResponse",
364
+ "CreateEntityRequest",
365
+ "CreateEntityResponse",
366
+ "CreateMonitorResponseDto",
367
+ "CreateProjectResponseDto",
368
+ "CreateWebhookRequestDtoAuth",
369
+ "CreateWebhookRequestDtoAuth_ApiKey",
370
+ "CreateWebhookRequestDtoAuth_Basic",
371
+ "CreateWebhookRequestDtoAuth_Bearer",
372
+ "CreateWebhookResponseDto",
373
+ "DatasetEntityIdsRequest",
374
+ "DatasetEntityListResponse",
375
+ "DatasetListResponse",
376
+ "DatasetResponse",
377
+ "DatasetSortBy",
378
+ "DatasetStatus",
379
+ "DatasetStatusEntry",
380
+ "DatasetStatusHistoryResponse",
381
+ "DefaultAioHttpClient",
382
+ "DefaultAsyncHttpxClient",
383
+ "DeleteJobResponseDto",
384
+ "DeleteMonitorResponseDto",
385
+ "DeliveryHistoryItemDto",
386
+ "DeliveryHistoryResponseDto",
387
+ "DeliveryMode",
388
+ "DeliveryStatus",
389
+ "DisableMonitorResponse",
390
+ "EnableMonitorResponse",
391
+ "EndDate",
392
+ "EnrichmentSchema",
393
+ "EnrichmentType",
394
+ "EntityAssociationType",
395
+ "EntityListResponse",
396
+ "EntityResponse",
397
+ "EntitySortBy",
398
+ "EntityStatus",
399
+ "EntitySummary",
400
+ "EntityType",
401
+ "EntityValidationErrorBody",
402
+ "Error",
403
+ "ForbiddenError",
404
+ "GetPlanLimitsResponseDto",
405
+ "GetVersionResponse",
406
+ "GetWebhookResponseDto",
407
+ "HealthCheckResponse",
408
+ "HttpMethod",
409
+ "InitializeResponseDto",
410
+ "IssueType",
411
+ "JobStep",
412
+ "Limit",
413
+ "ListMonitorJobsRequestSort",
414
+ "ListMonitorJobsResponse",
415
+ "ListMonitorJobsResponseSortOrder",
416
+ "ListMonitorsResponseDto",
417
+ "ListUserJobsResponseDto",
418
+ "ListWebhookResourcesResponseDto",
419
+ "ListWebhooksResponseDto",
420
+ "ManageEntitiesResponse",
421
+ "MappableResourceType",
422
+ "MonitorCitation",
423
+ "MonitorJobItem",
424
+ "MonitorListItemDto",
425
+ "MonitorRecord",
426
+ "MonitorStatusEntry",
427
+ "MonitorStatusEntryStatus",
428
+ "MonitorStatusHistoryResponseDto",
429
+ "NotFoundError",
430
+ "OwnershipFilter",
431
+ "PlanFeature",
432
+ "ProjectListResponseDto",
433
+ "ProjectOverviewCountsDto",
434
+ "ProjectOverviewResponseDto",
435
+ "ProjectOverviewResponseDtoOverview",
436
+ "ProjectResourceDto",
437
+ "ProjectResourceListResponseDto",
438
+ "ProjectResourceType",
439
+ "ProjectResponseDto",
440
+ "ProjectSummaryDto",
441
+ "PublicJobStatus",
442
+ "PullJobResponseDto",
443
+ "PullJobResponseDtoDateRange",
444
+ "PullJobResponseDtoMode",
445
+ "PullMonitorResponseDto",
446
+ "PullMonitorResponseDtoRunInfo",
447
+ "Query",
448
+ "QueryStatus",
449
+ "Record",
450
+ "ReferenceJob",
451
+ "RemoveResourceResponseDto",
452
+ "ResourceItemDto",
453
+ "ResourceResultDto",
454
+ "SharingInfo",
455
+ "SharingInfoPermission",
456
+ "SkippedRow",
457
+ "SortOrder",
458
+ "StartDate",
459
+ "StatusResponseDto",
460
+ "SubmitRequestDtoMode",
461
+ "SubmitResponseDto",
462
+ "Suggestion",
463
+ "TestWebhookResponseDto",
464
+ "UnauthorizedError",
465
+ "UnprocessableEntityError",
466
+ "UpdateMonitorResponseDto",
467
+ "UpdateProjectResponseDto",
468
+ "UpdateWebhookRequestDtoAuth",
469
+ "UpdateWebhookRequestDtoAuth_ApiKey",
470
+ "UpdateWebhookRequestDtoAuth_Basic",
471
+ "UpdateWebhookRequestDtoAuth_Bearer",
472
+ "UpdateWebhookResponseDto",
473
+ "UploadCsvToDatasetResponse",
474
+ "UserJob",
475
+ "UserJobMode",
476
+ "ValidateQueryResponseDto",
477
+ "ValidationErrorDetail",
478
+ "ValidationErrorDetailLocItem",
479
+ "ValidationErrorResponse",
480
+ "ValidationReport",
481
+ "ValidatorSchema",
482
+ "WebhookDto",
483
+ "WebhookDtoMethod",
484
+ "WebhookPayload",
485
+ "WebhookResourceMappingResponseDto",
486
+ "WebhookResponseDto",
487
+ "WebhookType",
488
+ "__version__",
489
+ "datasets",
490
+ "entities",
491
+ "jobs",
492
+ "meta",
493
+ "monitors",
494
+ "projects",
495
+ "webhooks",
496
+ ]
@@ -0,0 +1,32 @@
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(
16
+ "To use the aiohttp client, install the aiohttp extra: pip install newscatcher-catchall-sdk[aiohttp]"
17
+ )
18
+
19
+ else:
20
+
21
+ class DefaultAioHttpClient(httpx_aiohttp.HttpxAiohttpClient): # type: ignore
22
+ def __init__(self, **kwargs: typing.Any) -> None:
23
+ kwargs.setdefault("timeout", SDK_DEFAULT_TIMEOUT)
24
+ kwargs.setdefault("follow_redirects", True)
25
+ super().__init__(**kwargs)
26
+
27
+
28
+ class DefaultAsyncHttpxClient(httpx.AsyncClient):
29
+ def __init__(self, **kwargs: typing.Any) -> None:
30
+ kwargs.setdefault("timeout", SDK_DEFAULT_TIMEOUT)
31
+ kwargs.setdefault("follow_redirects", True)
32
+ super().__init__(**kwargs)