airweave-sdk 0.8.65__py3-none-any.whl → 0.8.66__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 (48) hide show
  1. airweave/__init__.py +41 -43
  2. airweave/client.py +0 -16
  3. airweave/collections/__init__.py +3 -6
  4. airweave/collections/client.py +273 -113
  5. airweave/collections/raw_client.py +633 -94
  6. airweave/collections/types/__init__.py +2 -4
  7. airweave/core/client_wrapper.py +4 -30
  8. airweave/errors/__init__.py +10 -2
  9. airweave/errors/conflict_error.py +11 -0
  10. airweave/errors/not_found_error.py +11 -0
  11. airweave/errors/too_many_requests_error.py +11 -0
  12. airweave/errors/unprocessable_entity_error.py +1 -2
  13. airweave/events/client.py +281 -500
  14. airweave/events/raw_client.py +562 -551
  15. airweave/source_connections/client.py +210 -162
  16. airweave/source_connections/raw_client.py +574 -137
  17. airweave/sources/client.py +42 -18
  18. airweave/sources/raw_client.py +118 -17
  19. airweave/types/__init__.py +33 -39
  20. airweave/types/{endpoint_secret_out.py → conflict_error_response.py} +12 -2
  21. airweave/types/delivery_attempt.py +61 -0
  22. airweave/types/event_message.py +55 -0
  23. airweave/types/event_message_with_attempts.py +59 -0
  24. airweave/types/{enable_endpoint_request.py → not_found_error_response.py} +6 -4
  25. airweave/types/{subscription_with_attempts_out.py → rate_limit_error_response.py} +9 -6
  26. airweave/types/recovery_task.py +35 -0
  27. airweave/types/search_request.py +13 -10
  28. airweave/types/search_response.py +6 -3
  29. airweave/types/source_connection.py +73 -18
  30. airweave/types/source_connection_job.py +65 -15
  31. airweave/types/source_connection_list_item.py +45 -10
  32. airweave/types/sync_event_payload.py +72 -0
  33. airweave/types/{recover_out.py → validation_error_detail.py} +19 -6
  34. airweave/types/validation_error_response.py +30 -0
  35. airweave/types/webhook_subscription.py +68 -0
  36. {airweave_sdk-0.8.65.dist-info → airweave_sdk-0.8.66.dist-info}/METADATA +1 -5
  37. {airweave_sdk-0.8.65.dist-info → airweave_sdk-0.8.66.dist-info}/RECORD +38 -38
  38. airweave/collections/types/search_collections_readable_id_search_post_response.py +0 -8
  39. airweave/types/background_task_status.py +0 -5
  40. airweave/types/background_task_type.py +0 -17
  41. airweave/types/collection_update.py +0 -35
  42. airweave/types/endpoint_out.py +0 -35
  43. airweave/types/message_attempt_out.py +0 -37
  44. airweave/types/message_attempt_trigger_type.py +0 -3
  45. airweave/types/message_out.py +0 -29
  46. airweave/types/message_status.py +0 -3
  47. airweave/types/message_status_text.py +0 -5
  48. {airweave_sdk-0.8.65.dist-info → airweave_sdk-0.8.66.dist-info}/WHEEL +0 -0
@@ -25,10 +25,17 @@ class SourcesClient:
25
25
 
26
26
  def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[Source]:
27
27
  """
28
- List all available data source connectors.
28
+ Retrieve all available data source connectors.
29
29
 
30
- <br/><br/>
31
- Returns the complete catalog of source types that Airweave can connect to.
30
+ Returns the complete catalog of source types that Airweave can connect to,
31
+ including their authentication methods, configuration requirements, and
32
+ supported features. Use this endpoint to discover which integrations are
33
+ available for your organization.
34
+
35
+ Each source includes:
36
+ - **Authentication methods**: How to connect (OAuth, API key, etc.)
37
+ - **Configuration schemas**: What settings are required or optional
38
+ - **Supported auth providers**: Pre-configured OAuth providers available
32
39
 
33
40
  Parameters
34
41
  ----------
@@ -45,8 +52,6 @@ class SourcesClient:
45
52
  from airweave import AirweaveSDK
46
53
 
47
54
  client = AirweaveSDK(
48
- framework_name="YOUR_FRAMEWORK_NAME",
49
- framework_version="YOUR_FRAMEWORK_VERSION",
50
55
  api_key="YOUR_API_KEY",
51
56
  )
52
57
  client.sources.list()
@@ -56,7 +61,16 @@ class SourcesClient:
56
61
 
57
62
  def get(self, short_name: str, *, request_options: typing.Optional[RequestOptions] = None) -> Source:
58
63
  """
59
- Get detailed information about a specific data source connector.
64
+ Retrieve detailed information about a specific data source connector.
65
+
66
+ Returns the complete configuration for a source type, including:
67
+
68
+ - **Authentication fields**: Schema for credentials required to connect
69
+ - **Configuration fields**: Schema for optional settings and customization
70
+ - **Supported auth providers**: Pre-configured OAuth providers available for this source
71
+
72
+ Use this endpoint before creating a source connection to understand what
73
+ authentication and configuration values are required.
60
74
 
61
75
  Parameters
62
76
  ----------
@@ -76,12 +90,10 @@ class SourcesClient:
76
90
  from airweave import AirweaveSDK
77
91
 
78
92
  client = AirweaveSDK(
79
- framework_name="YOUR_FRAMEWORK_NAME",
80
- framework_version="YOUR_FRAMEWORK_VERSION",
81
93
  api_key="YOUR_API_KEY",
82
94
  )
83
95
  client.sources.get(
84
- short_name="short_name",
96
+ short_name="github",
85
97
  )
86
98
  """
87
99
  _response = self._raw_client.get(short_name, request_options=request_options)
@@ -105,10 +117,17 @@ class AsyncSourcesClient:
105
117
 
106
118
  async def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> typing.List[Source]:
107
119
  """
108
- List all available data source connectors.
120
+ Retrieve all available data source connectors.
109
121
 
110
- <br/><br/>
111
- Returns the complete catalog of source types that Airweave can connect to.
122
+ Returns the complete catalog of source types that Airweave can connect to,
123
+ including their authentication methods, configuration requirements, and
124
+ supported features. Use this endpoint to discover which integrations are
125
+ available for your organization.
126
+
127
+ Each source includes:
128
+ - **Authentication methods**: How to connect (OAuth, API key, etc.)
129
+ - **Configuration schemas**: What settings are required or optional
130
+ - **Supported auth providers**: Pre-configured OAuth providers available
112
131
 
113
132
  Parameters
114
133
  ----------
@@ -127,8 +146,6 @@ class AsyncSourcesClient:
127
146
  from airweave import AsyncAirweaveSDK
128
147
 
129
148
  client = AsyncAirweaveSDK(
130
- framework_name="YOUR_FRAMEWORK_NAME",
131
- framework_version="YOUR_FRAMEWORK_VERSION",
132
149
  api_key="YOUR_API_KEY",
133
150
  )
134
151
 
@@ -144,7 +161,16 @@ class AsyncSourcesClient:
144
161
 
145
162
  async def get(self, short_name: str, *, request_options: typing.Optional[RequestOptions] = None) -> Source:
146
163
  """
147
- Get detailed information about a specific data source connector.
164
+ Retrieve detailed information about a specific data source connector.
165
+
166
+ Returns the complete configuration for a source type, including:
167
+
168
+ - **Authentication fields**: Schema for credentials required to connect
169
+ - **Configuration fields**: Schema for optional settings and customization
170
+ - **Supported auth providers**: Pre-configured OAuth providers available for this source
171
+
172
+ Use this endpoint before creating a source connection to understand what
173
+ authentication and configuration values are required.
148
174
 
149
175
  Parameters
150
176
  ----------
@@ -166,15 +192,13 @@ class AsyncSourcesClient:
166
192
  from airweave import AsyncAirweaveSDK
167
193
 
168
194
  client = AsyncAirweaveSDK(
169
- framework_name="YOUR_FRAMEWORK_NAME",
170
- framework_version="YOUR_FRAMEWORK_VERSION",
171
195
  api_key="YOUR_API_KEY",
172
196
  )
173
197
 
174
198
 
175
199
  async def main() -> None:
176
200
  await client.sources.get(
177
- short_name="short_name",
201
+ short_name="github",
178
202
  )
179
203
 
180
204
 
@@ -9,8 +9,11 @@ from ..core.http_response import AsyncHttpResponse, HttpResponse
9
9
  from ..core.jsonable_encoder import jsonable_encoder
10
10
  from ..core.pydantic_utilities import parse_obj_as
11
11
  from ..core.request_options import RequestOptions
12
+ from ..errors.not_found_error import NotFoundError
13
+ from ..errors.too_many_requests_error import TooManyRequestsError
12
14
  from ..errors.unprocessable_entity_error import UnprocessableEntityError
13
- from ..types.http_validation_error import HttpValidationError
15
+ from ..types.not_found_error_response import NotFoundErrorResponse
16
+ from ..types.rate_limit_error_response import RateLimitErrorResponse
14
17
  from ..types.source import Source
15
18
 
16
19
 
@@ -20,10 +23,17 @@ class RawSourcesClient:
20
23
 
21
24
  def list(self, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[typing.List[Source]]:
22
25
  """
23
- List all available data source connectors.
26
+ Retrieve all available data source connectors.
24
27
 
25
- <br/><br/>
26
- Returns the complete catalog of source types that Airweave can connect to.
28
+ Returns the complete catalog of source types that Airweave can connect to,
29
+ including their authentication methods, configuration requirements, and
30
+ supported features. Use this endpoint to discover which integrations are
31
+ available for your organization.
32
+
33
+ Each source includes:
34
+ - **Authentication methods**: How to connect (OAuth, API key, etc.)
35
+ - **Configuration schemas**: What settings are required or optional
36
+ - **Supported auth providers**: Pre-configured OAuth providers available
27
37
 
28
38
  Parameters
29
39
  ----------
@@ -54,9 +64,20 @@ class RawSourcesClient:
54
64
  raise UnprocessableEntityError(
55
65
  headers=dict(_response.headers),
56
66
  body=typing.cast(
57
- HttpValidationError,
67
+ typing.Optional[typing.Any],
58
68
  parse_obj_as(
59
- type_=HttpValidationError, # type: ignore
69
+ type_=typing.Optional[typing.Any], # type: ignore
70
+ object_=_response.json(),
71
+ ),
72
+ ),
73
+ )
74
+ if _response.status_code == 429:
75
+ raise TooManyRequestsError(
76
+ headers=dict(_response.headers),
77
+ body=typing.cast(
78
+ RateLimitErrorResponse,
79
+ parse_obj_as(
80
+ type_=RateLimitErrorResponse, # type: ignore
60
81
  object_=_response.json(),
61
82
  ),
62
83
  ),
@@ -68,7 +89,16 @@ class RawSourcesClient:
68
89
 
69
90
  def get(self, short_name: str, *, request_options: typing.Optional[RequestOptions] = None) -> HttpResponse[Source]:
70
91
  """
71
- Get detailed information about a specific data source connector.
92
+ Retrieve detailed information about a specific data source connector.
93
+
94
+ Returns the complete configuration for a source type, including:
95
+
96
+ - **Authentication fields**: Schema for credentials required to connect
97
+ - **Configuration fields**: Schema for optional settings and customization
98
+ - **Supported auth providers**: Pre-configured OAuth providers available for this source
99
+
100
+ Use this endpoint before creating a source connection to understand what
101
+ authentication and configuration values are required.
72
102
 
73
103
  Parameters
74
104
  ----------
@@ -98,13 +128,35 @@ class RawSourcesClient:
98
128
  ),
99
129
  )
100
130
  return HttpResponse(response=_response, data=_data)
131
+ if _response.status_code == 404:
132
+ raise NotFoundError(
133
+ headers=dict(_response.headers),
134
+ body=typing.cast(
135
+ NotFoundErrorResponse,
136
+ parse_obj_as(
137
+ type_=NotFoundErrorResponse, # type: ignore
138
+ object_=_response.json(),
139
+ ),
140
+ ),
141
+ )
101
142
  if _response.status_code == 422:
102
143
  raise UnprocessableEntityError(
103
144
  headers=dict(_response.headers),
104
145
  body=typing.cast(
105
- HttpValidationError,
146
+ typing.Optional[typing.Any],
147
+ parse_obj_as(
148
+ type_=typing.Optional[typing.Any], # type: ignore
149
+ object_=_response.json(),
150
+ ),
151
+ ),
152
+ )
153
+ if _response.status_code == 429:
154
+ raise TooManyRequestsError(
155
+ headers=dict(_response.headers),
156
+ body=typing.cast(
157
+ RateLimitErrorResponse,
106
158
  parse_obj_as(
107
- type_=HttpValidationError, # type: ignore
159
+ type_=RateLimitErrorResponse, # type: ignore
108
160
  object_=_response.json(),
109
161
  ),
110
162
  ),
@@ -123,10 +175,17 @@ class AsyncRawSourcesClient:
123
175
  self, *, request_options: typing.Optional[RequestOptions] = None
124
176
  ) -> AsyncHttpResponse[typing.List[Source]]:
125
177
  """
126
- List all available data source connectors.
178
+ Retrieve all available data source connectors.
127
179
 
128
- <br/><br/>
129
- Returns the complete catalog of source types that Airweave can connect to.
180
+ Returns the complete catalog of source types that Airweave can connect to,
181
+ including their authentication methods, configuration requirements, and
182
+ supported features. Use this endpoint to discover which integrations are
183
+ available for your organization.
184
+
185
+ Each source includes:
186
+ - **Authentication methods**: How to connect (OAuth, API key, etc.)
187
+ - **Configuration schemas**: What settings are required or optional
188
+ - **Supported auth providers**: Pre-configured OAuth providers available
130
189
 
131
190
  Parameters
132
191
  ----------
@@ -157,9 +216,20 @@ class AsyncRawSourcesClient:
157
216
  raise UnprocessableEntityError(
158
217
  headers=dict(_response.headers),
159
218
  body=typing.cast(
160
- HttpValidationError,
219
+ typing.Optional[typing.Any],
161
220
  parse_obj_as(
162
- type_=HttpValidationError, # type: ignore
221
+ type_=typing.Optional[typing.Any], # type: ignore
222
+ object_=_response.json(),
223
+ ),
224
+ ),
225
+ )
226
+ if _response.status_code == 429:
227
+ raise TooManyRequestsError(
228
+ headers=dict(_response.headers),
229
+ body=typing.cast(
230
+ RateLimitErrorResponse,
231
+ parse_obj_as(
232
+ type_=RateLimitErrorResponse, # type: ignore
163
233
  object_=_response.json(),
164
234
  ),
165
235
  ),
@@ -173,7 +243,16 @@ class AsyncRawSourcesClient:
173
243
  self, short_name: str, *, request_options: typing.Optional[RequestOptions] = None
174
244
  ) -> AsyncHttpResponse[Source]:
175
245
  """
176
- Get detailed information about a specific data source connector.
246
+ Retrieve detailed information about a specific data source connector.
247
+
248
+ Returns the complete configuration for a source type, including:
249
+
250
+ - **Authentication fields**: Schema for credentials required to connect
251
+ - **Configuration fields**: Schema for optional settings and customization
252
+ - **Supported auth providers**: Pre-configured OAuth providers available for this source
253
+
254
+ Use this endpoint before creating a source connection to understand what
255
+ authentication and configuration values are required.
177
256
 
178
257
  Parameters
179
258
  ----------
@@ -203,13 +282,35 @@ class AsyncRawSourcesClient:
203
282
  ),
204
283
  )
205
284
  return AsyncHttpResponse(response=_response, data=_data)
285
+ if _response.status_code == 404:
286
+ raise NotFoundError(
287
+ headers=dict(_response.headers),
288
+ body=typing.cast(
289
+ NotFoundErrorResponse,
290
+ parse_obj_as(
291
+ type_=NotFoundErrorResponse, # type: ignore
292
+ object_=_response.json(),
293
+ ),
294
+ ),
295
+ )
206
296
  if _response.status_code == 422:
207
297
  raise UnprocessableEntityError(
208
298
  headers=dict(_response.headers),
209
299
  body=typing.cast(
210
- HttpValidationError,
300
+ typing.Optional[typing.Any],
301
+ parse_obj_as(
302
+ type_=typing.Optional[typing.Any], # type: ignore
303
+ object_=_response.json(),
304
+ ),
305
+ ),
306
+ )
307
+ if _response.status_code == 429:
308
+ raise TooManyRequestsError(
309
+ headers=dict(_response.headers),
310
+ body=typing.cast(
311
+ RateLimitErrorResponse,
211
312
  parse_obj_as(
212
- type_=HttpValidationError, # type: ignore
313
+ type_=RateLimitErrorResponse, # type: ignore
213
314
  object_=_response.json(),
214
315
  ),
215
316
  ),
@@ -19,8 +19,6 @@ if typing.TYPE_CHECKING:
19
19
  from .auth_provider_connection_update import AuthProviderConnectionUpdate
20
20
  from .authentication_details import AuthenticationDetails
21
21
  from .authentication_method import AuthenticationMethod
22
- from .background_task_status import BackgroundTaskStatus
23
- from .background_task_type import BackgroundTaskType
24
22
  from .behavior_config import BehaviorConfig
25
23
  from .billing_period import BillingPeriod
26
24
  from .billing_period_status import BillingPeriodStatus
@@ -38,23 +36,21 @@ if typing.TYPE_CHECKING:
38
36
  from .checkout_session_response import CheckoutSessionResponse
39
37
  from .collection import Collection
40
38
  from .collection_status import CollectionStatus
41
- from .collection_update import CollectionUpdate
42
39
  from .config_field import ConfigField
43
40
  from .config_values import ConfigValues
41
+ from .conflict_error_response import ConflictErrorResponse
44
42
  from .connection import Connection
45
43
  from .connection_status import ConnectionStatus
46
44
  from .cursor_config import CursorConfig
47
45
  from .customer_portal_request import CustomerPortalRequest
48
46
  from .customer_portal_response import CustomerPortalResponse
47
+ from .delivery_attempt import DeliveryAttempt
49
48
  from .destination import Destination
50
49
  from .destination_config import DestinationConfig
51
50
  from .destination_with_authentication_fields import DestinationWithAuthenticationFields
52
51
  from .direct_authentication import DirectAuthentication
53
52
  from .embedding_model import EmbeddingModel
54
53
  from .embedding_model_with_authentication_fields import EmbeddingModelWithAuthenticationFields
55
- from .enable_endpoint_request import EnableEndpointRequest
56
- from .endpoint_out import EndpointOut
57
- from .endpoint_secret_out import EndpointSecretOut
58
54
  from .entity_count import EntityCount
59
55
  from .entity_count_with_definition import EntityCountWithDefinition
60
56
  from .entity_definition import EntityDefinition
@@ -64,6 +60,8 @@ if typing.TYPE_CHECKING:
64
60
  from .entity_summary import EntitySummary
65
61
  from .entity_type import EntityType
66
62
  from .entity_type_stats import EntityTypeStats
63
+ from .event_message import EventMessage
64
+ from .event_message_with_attempts import EventMessageWithAttempts
67
65
  from .event_type import EventType
68
66
  from .feature_flag import FeatureFlag
69
67
  from .fields import Fields
@@ -78,13 +76,9 @@ if typing.TYPE_CHECKING:
78
76
  from .legacy_search_request_search_method import LegacySearchRequestSearchMethod
79
77
  from .legacy_search_response import LegacySearchResponse
80
78
  from .member_response import MemberResponse
81
- from .message_attempt_out import MessageAttemptOut
82
- from .message_attempt_trigger_type import MessageAttemptTriggerType
83
- from .message_out import MessageOut
84
79
  from .message_response import MessageResponse
85
- from .message_status import MessageStatus
86
- from .message_status_text import MessageStatusText
87
80
  from .minute_level_schedule_config import MinuteLevelScheduleConfig
81
+ from .not_found_error_response import NotFoundErrorResponse
88
82
  from .o_auth_browser_authentication import OAuthBrowserAuthentication
89
83
  from .o_auth_token_authentication import OAuthTokenAuthentication
90
84
  from .o_auth_type import OAuthType
@@ -94,7 +88,8 @@ if typing.TYPE_CHECKING:
94
88
  from .organization_metrics import OrganizationMetrics
95
89
  from .organization_with_role import OrganizationWithRole
96
90
  from .query_expansion_strategy import QueryExpansionStrategy
97
- from .recover_out import RecoverOut
91
+ from .rate_limit_error_response import RateLimitErrorResponse
92
+ from .recovery_task import RecoveryTask
98
93
  from .response_type import ResponseType
99
94
  from .retrieval_strategy import RetrievalStrategy
100
95
  from .s_3_config_request import S3ConfigRequest
@@ -116,11 +111,11 @@ if typing.TYPE_CHECKING:
116
111
  from .source_rate_limit_response import SourceRateLimitResponse
117
112
  from .source_rate_limit_update_request import SourceRateLimitUpdateRequest
118
113
  from .subscription_info import SubscriptionInfo
119
- from .subscription_with_attempts_out import SubscriptionWithAttemptsOut
120
114
  from .sync import Sync
121
115
  from .sync_config import SyncConfig
122
116
  from .sync_create import SyncCreate
123
117
  from .sync_details import SyncDetails
118
+ from .sync_event_payload import SyncEventPayload
124
119
  from .sync_job import SyncJob
125
120
  from .sync_job_details import SyncJobDetails
126
121
  from .sync_job_status import SyncJobStatus
@@ -137,7 +132,10 @@ if typing.TYPE_CHECKING:
137
132
  from .user_create import UserCreate
138
133
  from .user_organization import UserOrganization
139
134
  from .validation_error import ValidationError
135
+ from .validation_error_detail import ValidationErrorDetail
140
136
  from .validation_error_loc_item import ValidationErrorLocItem
137
+ from .validation_error_response import ValidationErrorResponse
138
+ from .webhook_subscription import WebhookSubscription
141
139
  _dynamic_imports: typing.Dict[str, str] = {
142
140
  "ActionCheckRequest": ".action_check_request",
143
141
  "ActionCheckResponse": ".action_check_response",
@@ -152,8 +150,6 @@ _dynamic_imports: typing.Dict[str, str] = {
152
150
  "AuthProviderConnectionUpdate": ".auth_provider_connection_update",
153
151
  "AuthenticationDetails": ".authentication_details",
154
152
  "AuthenticationMethod": ".authentication_method",
155
- "BackgroundTaskStatus": ".background_task_status",
156
- "BackgroundTaskType": ".background_task_type",
157
153
  "BehaviorConfig": ".behavior_config",
158
154
  "BillingPeriod": ".billing_period",
159
155
  "BillingPeriodStatus": ".billing_period_status",
@@ -167,23 +163,21 @@ _dynamic_imports: typing.Dict[str, str] = {
167
163
  "CheckoutSessionResponse": ".checkout_session_response",
168
164
  "Collection": ".collection",
169
165
  "CollectionStatus": ".collection_status",
170
- "CollectionUpdate": ".collection_update",
171
166
  "ConfigField": ".config_field",
172
167
  "ConfigValues": ".config_values",
168
+ "ConflictErrorResponse": ".conflict_error_response",
173
169
  "Connection": ".connection",
174
170
  "ConnectionStatus": ".connection_status",
175
171
  "CursorConfig": ".cursor_config",
176
172
  "CustomerPortalRequest": ".customer_portal_request",
177
173
  "CustomerPortalResponse": ".customer_portal_response",
174
+ "DeliveryAttempt": ".delivery_attempt",
178
175
  "Destination": ".destination",
179
176
  "DestinationConfig": ".destination_config",
180
177
  "DestinationWithAuthenticationFields": ".destination_with_authentication_fields",
181
178
  "DirectAuthentication": ".direct_authentication",
182
179
  "EmbeddingModel": ".embedding_model",
183
180
  "EmbeddingModelWithAuthenticationFields": ".embedding_model_with_authentication_fields",
184
- "EnableEndpointRequest": ".enable_endpoint_request",
185
- "EndpointOut": ".endpoint_out",
186
- "EndpointSecretOut": ".endpoint_secret_out",
187
181
  "EntityCount": ".entity_count",
188
182
  "EntityCountWithDefinition": ".entity_count_with_definition",
189
183
  "EntityDefinition": ".entity_definition",
@@ -193,6 +187,8 @@ _dynamic_imports: typing.Dict[str, str] = {
193
187
  "EntitySummary": ".entity_summary",
194
188
  "EntityType": ".entity_type",
195
189
  "EntityTypeStats": ".entity_type_stats",
190
+ "EventMessage": ".event_message",
191
+ "EventMessageWithAttempts": ".event_message_with_attempts",
196
192
  "EventType": ".event_type",
197
193
  "FeatureFlag": ".feature_flag",
198
194
  "Fields": ".fields",
@@ -207,13 +203,9 @@ _dynamic_imports: typing.Dict[str, str] = {
207
203
  "LegacySearchRequestSearchMethod": ".legacy_search_request_search_method",
208
204
  "LegacySearchResponse": ".legacy_search_response",
209
205
  "MemberResponse": ".member_response",
210
- "MessageAttemptOut": ".message_attempt_out",
211
- "MessageAttemptTriggerType": ".message_attempt_trigger_type",
212
- "MessageOut": ".message_out",
213
206
  "MessageResponse": ".message_response",
214
- "MessageStatus": ".message_status",
215
- "MessageStatusText": ".message_status_text",
216
207
  "MinuteLevelScheduleConfig": ".minute_level_schedule_config",
208
+ "NotFoundErrorResponse": ".not_found_error_response",
217
209
  "OAuthBrowserAuthentication": ".o_auth_browser_authentication",
218
210
  "OAuthTokenAuthentication": ".o_auth_token_authentication",
219
211
  "OAuthType": ".o_auth_type",
@@ -223,7 +215,8 @@ _dynamic_imports: typing.Dict[str, str] = {
223
215
  "OrganizationMetrics": ".organization_metrics",
224
216
  "OrganizationWithRole": ".organization_with_role",
225
217
  "QueryExpansionStrategy": ".query_expansion_strategy",
226
- "RecoverOut": ".recover_out",
218
+ "RateLimitErrorResponse": ".rate_limit_error_response",
219
+ "RecoveryTask": ".recovery_task",
227
220
  "ResponseType": ".response_type",
228
221
  "RetrievalStrategy": ".retrieval_strategy",
229
222
  "S3ConfigRequest": ".s_3_config_request",
@@ -245,11 +238,11 @@ _dynamic_imports: typing.Dict[str, str] = {
245
238
  "SourceRateLimitResponse": ".source_rate_limit_response",
246
239
  "SourceRateLimitUpdateRequest": ".source_rate_limit_update_request",
247
240
  "SubscriptionInfo": ".subscription_info",
248
- "SubscriptionWithAttemptsOut": ".subscription_with_attempts_out",
249
241
  "Sync": ".sync",
250
242
  "SyncConfig": ".sync_config",
251
243
  "SyncCreate": ".sync_create",
252
244
  "SyncDetails": ".sync_details",
245
+ "SyncEventPayload": ".sync_event_payload",
253
246
  "SyncJob": ".sync_job",
254
247
  "SyncJobDetails": ".sync_job_details",
255
248
  "SyncJobStatus": ".sync_job_status",
@@ -266,7 +259,10 @@ _dynamic_imports: typing.Dict[str, str] = {
266
259
  "UserCreate": ".user_create",
267
260
  "UserOrganization": ".user_organization",
268
261
  "ValidationError": ".validation_error",
262
+ "ValidationErrorDetail": ".validation_error_detail",
269
263
  "ValidationErrorLocItem": ".validation_error_loc_item",
264
+ "ValidationErrorResponse": ".validation_error_response",
265
+ "WebhookSubscription": ".webhook_subscription",
270
266
  }
271
267
 
272
268
 
@@ -305,8 +301,6 @@ __all__ = [
305
301
  "AuthProviderConnectionUpdate",
306
302
  "AuthenticationDetails",
307
303
  "AuthenticationMethod",
308
- "BackgroundTaskStatus",
309
- "BackgroundTaskType",
310
304
  "BehaviorConfig",
311
305
  "BillingPeriod",
312
306
  "BillingPeriodStatus",
@@ -320,23 +314,21 @@ __all__ = [
320
314
  "CheckoutSessionResponse",
321
315
  "Collection",
322
316
  "CollectionStatus",
323
- "CollectionUpdate",
324
317
  "ConfigField",
325
318
  "ConfigValues",
319
+ "ConflictErrorResponse",
326
320
  "Connection",
327
321
  "ConnectionStatus",
328
322
  "CursorConfig",
329
323
  "CustomerPortalRequest",
330
324
  "CustomerPortalResponse",
325
+ "DeliveryAttempt",
331
326
  "Destination",
332
327
  "DestinationConfig",
333
328
  "DestinationWithAuthenticationFields",
334
329
  "DirectAuthentication",
335
330
  "EmbeddingModel",
336
331
  "EmbeddingModelWithAuthenticationFields",
337
- "EnableEndpointRequest",
338
- "EndpointOut",
339
- "EndpointSecretOut",
340
332
  "EntityCount",
341
333
  "EntityCountWithDefinition",
342
334
  "EntityDefinition",
@@ -346,6 +338,8 @@ __all__ = [
346
338
  "EntitySummary",
347
339
  "EntityType",
348
340
  "EntityTypeStats",
341
+ "EventMessage",
342
+ "EventMessageWithAttempts",
349
343
  "EventType",
350
344
  "FeatureFlag",
351
345
  "Fields",
@@ -360,13 +354,9 @@ __all__ = [
360
354
  "LegacySearchRequestSearchMethod",
361
355
  "LegacySearchResponse",
362
356
  "MemberResponse",
363
- "MessageAttemptOut",
364
- "MessageAttemptTriggerType",
365
- "MessageOut",
366
357
  "MessageResponse",
367
- "MessageStatus",
368
- "MessageStatusText",
369
358
  "MinuteLevelScheduleConfig",
359
+ "NotFoundErrorResponse",
370
360
  "OAuthBrowserAuthentication",
371
361
  "OAuthTokenAuthentication",
372
362
  "OAuthType",
@@ -376,7 +366,8 @@ __all__ = [
376
366
  "OrganizationMetrics",
377
367
  "OrganizationWithRole",
378
368
  "QueryExpansionStrategy",
379
- "RecoverOut",
369
+ "RateLimitErrorResponse",
370
+ "RecoveryTask",
380
371
  "ResponseType",
381
372
  "RetrievalStrategy",
382
373
  "S3ConfigRequest",
@@ -398,11 +389,11 @@ __all__ = [
398
389
  "SourceRateLimitResponse",
399
390
  "SourceRateLimitUpdateRequest",
400
391
  "SubscriptionInfo",
401
- "SubscriptionWithAttemptsOut",
402
392
  "Sync",
403
393
  "SyncConfig",
404
394
  "SyncCreate",
405
395
  "SyncDetails",
396
+ "SyncEventPayload",
406
397
  "SyncJob",
407
398
  "SyncJobDetails",
408
399
  "SyncJobStatus",
@@ -419,5 +410,8 @@ __all__ = [
419
410
  "UserCreate",
420
411
  "UserOrganization",
421
412
  "ValidationError",
413
+ "ValidationErrorDetail",
422
414
  "ValidationErrorLocItem",
415
+ "ValidationErrorResponse",
416
+ "WebhookSubscription",
423
417
  ]
@@ -6,8 +6,18 @@ import pydantic
6
6
  from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
7
7
 
8
8
 
9
- class EndpointSecretOut(UniversalBaseModel):
10
- key: str
9
+ class ConflictErrorResponse(UniversalBaseModel):
10
+ """
11
+ Response returned when a resource conflict occurs (HTTP 409).
12
+
13
+ This typically occurs when attempting to create a resource that already exists,
14
+ or when an operation cannot be completed due to the current state of a resource.
15
+ """
16
+
17
+ detail: str = pydantic.Field()
18
+ """
19
+ Error message describing the conflict
20
+ """
11
21
 
12
22
  if IS_PYDANTIC_V2:
13
23
  model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2