airweave-sdk 0.8.9__py3-none-any.whl → 0.8.56__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.
- airweave/__init__.py +51 -123
- airweave/collections/client.py +15 -2
- airweave/collections/raw_client.py +15 -0
- airweave/core/client_wrapper.py +2 -2
- airweave/types/__init__.py +53 -123
- airweave/types/admin_sync_info.py +8 -4
- airweave/types/{geo_radius.py → behavior_config.py} +11 -7
- airweave/types/body_resync_with_execution_config_admin_resync_sync_id_post.py +28 -0
- airweave/types/collection.py +8 -2
- airweave/types/collection_update.py +8 -2
- airweave/types/{has_vector_condition.py → create_subscription_request.py} +6 -6
- airweave/types/{geo_line_string.py → cursor_config.py} +9 -5
- airweave/types/destination_config.py +41 -0
- airweave/types/endpoint_out.py +35 -0
- airweave/types/{payload_field.py → endpoint_secret_out.py} +2 -9
- airweave/types/event_type.py +7 -0
- airweave/types/feature_flag.py +8 -1
- airweave/types/{range.py → handler_config.py} +8 -13
- airweave/types/legacy_search_request.py +3 -13
- airweave/types/message_attempt_out.py +37 -0
- airweave/types/{value.py → message_attempt_trigger_type.py} +1 -3
- airweave/types/message_out.py +29 -0
- airweave/types/{has_id_condition_has_id_item.py → message_status.py} +1 -3
- airweave/types/message_status_text.py +5 -0
- airweave/types/{geo_point.py → patch_subscription_request.py} +5 -11
- airweave/types/s_3_config_request.py +5 -15
- airweave/types/search_request.py +1 -1
- airweave/types/source.py +10 -0
- airweave/types/{has_id_condition.py → subscription_with_attempts_out.py} +6 -7
- airweave/types/sync.py +2 -0
- airweave/types/sync_config.py +34 -0
- airweave/types/sync_create.py +2 -0
- airweave/types/sync_job.py +3 -1
- airweave/types/sync_update.py +2 -0
- {airweave_sdk-0.8.9.dist-info → airweave_sdk-0.8.56.dist-info}/METADATA +1 -1
- {airweave_sdk-0.8.9.dist-info → airweave_sdk-0.8.56.dist-info}/RECORD +37 -61
- airweave/types/any.py +0 -5
- airweave/types/datetime_range.py +0 -45
- airweave/types/except_.py +0 -5
- airweave/types/field_condition.py +0 -72
- airweave/types/filter.py +0 -53
- airweave/types/filter_must_item.py +0 -18
- airweave/types/filter_must_not.py +0 -26
- airweave/types/filter_must_not_item.py +0 -18
- airweave/types/filter_should_item.py +0 -18
- airweave/types/geo_bounding_box.py +0 -32
- airweave/types/geo_polygon.py +0 -32
- airweave/types/gt.py +0 -6
- airweave/types/gte.py +0 -6
- airweave/types/is_empty_condition.py +0 -27
- airweave/types/is_null_condition.py +0 -27
- airweave/types/lt.py +0 -6
- airweave/types/lte.py +0 -6
- airweave/types/match.py +0 -11
- airweave/types/match_any.py +0 -27
- airweave/types/match_except.py +0 -29
- airweave/types/match_phrase.py +0 -26
- airweave/types/match_text.py +0 -26
- airweave/types/match_value.py +0 -27
- airweave/types/min_should.py +0 -37
- airweave/types/min_should_conditions_item.py +0 -18
- airweave/types/must.py +0 -26
- airweave/types/nested.py +0 -40
- airweave/types/nested_condition.py +0 -31
- airweave/types/should.py +0 -26
- airweave/types/sync_execution_config.py +0 -79
- airweave/types/sync_with_source_connection.py +0 -42
- airweave/types/values_count.py +0 -41
- {airweave_sdk-0.8.9.dist-info → airweave_sdk-0.8.56.dist-info}/WHEEL +0 -0
airweave/types/__init__.py
CHANGED
|
@@ -10,7 +10,6 @@ if typing.TYPE_CHECKING:
|
|
|
10
10
|
from .action_check_response import ActionCheckResponse
|
|
11
11
|
from .admin_search_destination import AdminSearchDestination
|
|
12
12
|
from .admin_sync_info import AdminSyncInfo
|
|
13
|
-
from .any import Any
|
|
14
13
|
from .api_key import ApiKey
|
|
15
14
|
from .api_key_create import ApiKeyCreate
|
|
16
15
|
from .auth_provider import AuthProvider
|
|
@@ -20,6 +19,7 @@ if typing.TYPE_CHECKING:
|
|
|
20
19
|
from .auth_provider_connection_update import AuthProviderConnectionUpdate
|
|
21
20
|
from .authentication_details import AuthenticationDetails
|
|
22
21
|
from .authentication_method import AuthenticationMethod
|
|
22
|
+
from .behavior_config import BehaviorConfig
|
|
23
23
|
from .billing_period import BillingPeriod
|
|
24
24
|
from .billing_period_status import BillingPeriodStatus
|
|
25
25
|
from .billing_period_usage import BillingPeriodUsage
|
|
@@ -29,6 +29,9 @@ if typing.TYPE_CHECKING:
|
|
|
29
29
|
from .body_connect_slack_with_token_connections_direct_token_slack_post import (
|
|
30
30
|
BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost,
|
|
31
31
|
)
|
|
32
|
+
from .body_resync_with_execution_config_admin_resync_sync_id_post import (
|
|
33
|
+
BodyResyncWithExecutionConfigAdminResyncSyncIdPost,
|
|
34
|
+
)
|
|
32
35
|
from .checkout_session_request import CheckoutSessionRequest
|
|
33
36
|
from .checkout_session_response import CheckoutSessionResponse
|
|
34
37
|
from .collection import Collection
|
|
@@ -38,14 +41,18 @@ if typing.TYPE_CHECKING:
|
|
|
38
41
|
from .config_values import ConfigValues
|
|
39
42
|
from .connection import Connection
|
|
40
43
|
from .connection_status import ConnectionStatus
|
|
44
|
+
from .create_subscription_request import CreateSubscriptionRequest
|
|
45
|
+
from .cursor_config import CursorConfig
|
|
41
46
|
from .customer_portal_request import CustomerPortalRequest
|
|
42
47
|
from .customer_portal_response import CustomerPortalResponse
|
|
43
|
-
from .datetime_range import DatetimeRange
|
|
44
48
|
from .destination import Destination
|
|
49
|
+
from .destination_config import DestinationConfig
|
|
45
50
|
from .destination_with_authentication_fields import DestinationWithAuthenticationFields
|
|
46
51
|
from .direct_authentication import DirectAuthentication
|
|
47
52
|
from .embedding_model import EmbeddingModel
|
|
48
53
|
from .embedding_model_with_authentication_fields import EmbeddingModelWithAuthenticationFields
|
|
54
|
+
from .endpoint_out import EndpointOut
|
|
55
|
+
from .endpoint_secret_out import EndpointSecretOut
|
|
49
56
|
from .entity_count import EntityCount
|
|
50
57
|
from .entity_count_with_definition import EntityCountWithDefinition
|
|
51
58
|
from .entity_definition import EntityDefinition
|
|
@@ -55,52 +62,27 @@ if typing.TYPE_CHECKING:
|
|
|
55
62
|
from .entity_summary import EntitySummary
|
|
56
63
|
from .entity_type import EntityType
|
|
57
64
|
from .entity_type_stats import EntityTypeStats
|
|
58
|
-
from .
|
|
65
|
+
from .event_type import EventType
|
|
59
66
|
from .feature_flag import FeatureFlag
|
|
60
|
-
from .field_condition import FieldCondition
|
|
61
67
|
from .fields import Fields
|
|
62
|
-
from .
|
|
63
|
-
from .filter_must_item import FilterMustItem
|
|
64
|
-
from .filter_must_not import FilterMustNot
|
|
65
|
-
from .filter_must_not_item import FilterMustNotItem
|
|
66
|
-
from .filter_should_item import FilterShouldItem
|
|
67
|
-
from .geo_bounding_box import GeoBoundingBox
|
|
68
|
-
from .geo_line_string import GeoLineString
|
|
69
|
-
from .geo_point import GeoPoint
|
|
70
|
-
from .geo_polygon import GeoPolygon
|
|
71
|
-
from .geo_radius import GeoRadius
|
|
72
|
-
from .gt import Gt
|
|
73
|
-
from .gte import Gte
|
|
74
|
-
from .has_id_condition import HasIdCondition
|
|
75
|
-
from .has_id_condition_has_id_item import HasIdConditionHasIdItem
|
|
76
|
-
from .has_vector_condition import HasVectorCondition
|
|
68
|
+
from .handler_config import HandlerConfig
|
|
77
69
|
from .http_validation_error import HttpValidationError
|
|
78
70
|
from .integration_credential_in_db import IntegrationCredentialInDb
|
|
79
71
|
from .integration_credential_raw_create import IntegrationCredentialRawCreate
|
|
80
72
|
from .integration_type import IntegrationType
|
|
81
73
|
from .invitation_create import InvitationCreate
|
|
82
74
|
from .invitation_response import InvitationResponse
|
|
83
|
-
from .is_empty_condition import IsEmptyCondition
|
|
84
|
-
from .is_null_condition import IsNullCondition
|
|
85
75
|
from .legacy_search_request import LegacySearchRequest
|
|
86
76
|
from .legacy_search_request_search_method import LegacySearchRequestSearchMethod
|
|
87
77
|
from .legacy_search_response import LegacySearchResponse
|
|
88
|
-
from .lt import Lt
|
|
89
|
-
from .lte import Lte
|
|
90
|
-
from .match import Match
|
|
91
|
-
from .match_any import MatchAny
|
|
92
|
-
from .match_except import MatchExcept
|
|
93
|
-
from .match_phrase import MatchPhrase
|
|
94
|
-
from .match_text import MatchText
|
|
95
|
-
from .match_value import MatchValue
|
|
96
78
|
from .member_response import MemberResponse
|
|
79
|
+
from .message_attempt_out import MessageAttemptOut
|
|
80
|
+
from .message_attempt_trigger_type import MessageAttemptTriggerType
|
|
81
|
+
from .message_out import MessageOut
|
|
97
82
|
from .message_response import MessageResponse
|
|
98
|
-
from .
|
|
99
|
-
from .
|
|
83
|
+
from .message_status import MessageStatus
|
|
84
|
+
from .message_status_text import MessageStatusText
|
|
100
85
|
from .minute_level_schedule_config import MinuteLevelScheduleConfig
|
|
101
|
-
from .must import Must
|
|
102
|
-
from .nested import Nested
|
|
103
|
-
from .nested_condition import NestedCondition
|
|
104
86
|
from .o_auth_browser_authentication import OAuthBrowserAuthentication
|
|
105
87
|
from .o_auth_token_authentication import OAuthTokenAuthentication
|
|
106
88
|
from .o_auth_type import OAuthType
|
|
@@ -109,9 +91,8 @@ if typing.TYPE_CHECKING:
|
|
|
109
91
|
from .organization_create import OrganizationCreate
|
|
110
92
|
from .organization_metrics import OrganizationMetrics
|
|
111
93
|
from .organization_with_role import OrganizationWithRole
|
|
112
|
-
from .
|
|
94
|
+
from .patch_subscription_request import PatchSubscriptionRequest
|
|
113
95
|
from .query_expansion_strategy import QueryExpansionStrategy
|
|
114
|
-
from .range import Range
|
|
115
96
|
from .response_type import ResponseType
|
|
116
97
|
from .retrieval_strategy import RetrievalStrategy
|
|
117
98
|
from .s_3_config_request import S3ConfigRequest
|
|
@@ -122,7 +103,6 @@ if typing.TYPE_CHECKING:
|
|
|
122
103
|
from .search_request import SearchRequest
|
|
123
104
|
from .search_response import SearchResponse
|
|
124
105
|
from .search_status import SearchStatus
|
|
125
|
-
from .should import Should
|
|
126
106
|
from .single_action_check_response import SingleActionCheckResponse
|
|
127
107
|
from .single_action_check_response_reason import SingleActionCheckResponseReason
|
|
128
108
|
from .source import Source
|
|
@@ -134,16 +114,16 @@ if typing.TYPE_CHECKING:
|
|
|
134
114
|
from .source_rate_limit_response import SourceRateLimitResponse
|
|
135
115
|
from .source_rate_limit_update_request import SourceRateLimitUpdateRequest
|
|
136
116
|
from .subscription_info import SubscriptionInfo
|
|
117
|
+
from .subscription_with_attempts_out import SubscriptionWithAttemptsOut
|
|
137
118
|
from .sync import Sync
|
|
119
|
+
from .sync_config import SyncConfig
|
|
138
120
|
from .sync_create import SyncCreate
|
|
139
121
|
from .sync_details import SyncDetails
|
|
140
|
-
from .sync_execution_config import SyncExecutionConfig
|
|
141
122
|
from .sync_job import SyncJob
|
|
142
123
|
from .sync_job_details import SyncJobDetails
|
|
143
124
|
from .sync_job_status import SyncJobStatus
|
|
144
125
|
from .sync_status import SyncStatus
|
|
145
126
|
from .sync_update import SyncUpdate
|
|
146
|
-
from .sync_with_source_connection import SyncWithSourceConnection
|
|
147
127
|
from .transformer import Transformer
|
|
148
128
|
from .transformer_create import TransformerCreate
|
|
149
129
|
from .transformer_update import TransformerUpdate
|
|
@@ -156,14 +136,11 @@ if typing.TYPE_CHECKING:
|
|
|
156
136
|
from .user_organization import UserOrganization
|
|
157
137
|
from .validation_error import ValidationError
|
|
158
138
|
from .validation_error_loc_item import ValidationErrorLocItem
|
|
159
|
-
from .value import Value
|
|
160
|
-
from .values_count import ValuesCount
|
|
161
139
|
_dynamic_imports: typing.Dict[str, str] = {
|
|
162
140
|
"ActionCheckRequest": ".action_check_request",
|
|
163
141
|
"ActionCheckResponse": ".action_check_response",
|
|
164
142
|
"AdminSearchDestination": ".admin_search_destination",
|
|
165
143
|
"AdminSyncInfo": ".admin_sync_info",
|
|
166
|
-
"Any": ".any",
|
|
167
144
|
"ApiKey": ".api_key",
|
|
168
145
|
"ApiKeyCreate": ".api_key_create",
|
|
169
146
|
"AuthProvider": ".auth_provider",
|
|
@@ -173,6 +150,7 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
173
150
|
"AuthProviderConnectionUpdate": ".auth_provider_connection_update",
|
|
174
151
|
"AuthenticationDetails": ".authentication_details",
|
|
175
152
|
"AuthenticationMethod": ".authentication_method",
|
|
153
|
+
"BehaviorConfig": ".behavior_config",
|
|
176
154
|
"BillingPeriod": ".billing_period",
|
|
177
155
|
"BillingPeriodStatus": ".billing_period_status",
|
|
178
156
|
"BillingPeriodUsage": ".billing_period_usage",
|
|
@@ -180,6 +158,7 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
180
158
|
"BillingStatus": ".billing_status",
|
|
181
159
|
"BillingTransition": ".billing_transition",
|
|
182
160
|
"BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost": ".body_connect_slack_with_token_connections_direct_token_slack_post",
|
|
161
|
+
"BodyResyncWithExecutionConfigAdminResyncSyncIdPost": ".body_resync_with_execution_config_admin_resync_sync_id_post",
|
|
183
162
|
"CheckoutSessionRequest": ".checkout_session_request",
|
|
184
163
|
"CheckoutSessionResponse": ".checkout_session_response",
|
|
185
164
|
"Collection": ".collection",
|
|
@@ -189,14 +168,18 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
189
168
|
"ConfigValues": ".config_values",
|
|
190
169
|
"Connection": ".connection",
|
|
191
170
|
"ConnectionStatus": ".connection_status",
|
|
171
|
+
"CreateSubscriptionRequest": ".create_subscription_request",
|
|
172
|
+
"CursorConfig": ".cursor_config",
|
|
192
173
|
"CustomerPortalRequest": ".customer_portal_request",
|
|
193
174
|
"CustomerPortalResponse": ".customer_portal_response",
|
|
194
|
-
"DatetimeRange": ".datetime_range",
|
|
195
175
|
"Destination": ".destination",
|
|
176
|
+
"DestinationConfig": ".destination_config",
|
|
196
177
|
"DestinationWithAuthenticationFields": ".destination_with_authentication_fields",
|
|
197
178
|
"DirectAuthentication": ".direct_authentication",
|
|
198
179
|
"EmbeddingModel": ".embedding_model",
|
|
199
180
|
"EmbeddingModelWithAuthenticationFields": ".embedding_model_with_authentication_fields",
|
|
181
|
+
"EndpointOut": ".endpoint_out",
|
|
182
|
+
"EndpointSecretOut": ".endpoint_secret_out",
|
|
200
183
|
"EntityCount": ".entity_count",
|
|
201
184
|
"EntityCountWithDefinition": ".entity_count_with_definition",
|
|
202
185
|
"EntityDefinition": ".entity_definition",
|
|
@@ -206,52 +189,27 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
206
189
|
"EntitySummary": ".entity_summary",
|
|
207
190
|
"EntityType": ".entity_type",
|
|
208
191
|
"EntityTypeStats": ".entity_type_stats",
|
|
209
|
-
"
|
|
192
|
+
"EventType": ".event_type",
|
|
210
193
|
"FeatureFlag": ".feature_flag",
|
|
211
|
-
"FieldCondition": ".field_condition",
|
|
212
194
|
"Fields": ".fields",
|
|
213
|
-
"
|
|
214
|
-
"FilterMustItem": ".filter_must_item",
|
|
215
|
-
"FilterMustNot": ".filter_must_not",
|
|
216
|
-
"FilterMustNotItem": ".filter_must_not_item",
|
|
217
|
-
"FilterShouldItem": ".filter_should_item",
|
|
218
|
-
"GeoBoundingBox": ".geo_bounding_box",
|
|
219
|
-
"GeoLineString": ".geo_line_string",
|
|
220
|
-
"GeoPoint": ".geo_point",
|
|
221
|
-
"GeoPolygon": ".geo_polygon",
|
|
222
|
-
"GeoRadius": ".geo_radius",
|
|
223
|
-
"Gt": ".gt",
|
|
224
|
-
"Gte": ".gte",
|
|
225
|
-
"HasIdCondition": ".has_id_condition",
|
|
226
|
-
"HasIdConditionHasIdItem": ".has_id_condition_has_id_item",
|
|
227
|
-
"HasVectorCondition": ".has_vector_condition",
|
|
195
|
+
"HandlerConfig": ".handler_config",
|
|
228
196
|
"HttpValidationError": ".http_validation_error",
|
|
229
197
|
"IntegrationCredentialInDb": ".integration_credential_in_db",
|
|
230
198
|
"IntegrationCredentialRawCreate": ".integration_credential_raw_create",
|
|
231
199
|
"IntegrationType": ".integration_type",
|
|
232
200
|
"InvitationCreate": ".invitation_create",
|
|
233
201
|
"InvitationResponse": ".invitation_response",
|
|
234
|
-
"IsEmptyCondition": ".is_empty_condition",
|
|
235
|
-
"IsNullCondition": ".is_null_condition",
|
|
236
202
|
"LegacySearchRequest": ".legacy_search_request",
|
|
237
203
|
"LegacySearchRequestSearchMethod": ".legacy_search_request_search_method",
|
|
238
204
|
"LegacySearchResponse": ".legacy_search_response",
|
|
239
|
-
"Lt": ".lt",
|
|
240
|
-
"Lte": ".lte",
|
|
241
|
-
"Match": ".match",
|
|
242
|
-
"MatchAny": ".match_any",
|
|
243
|
-
"MatchExcept": ".match_except",
|
|
244
|
-
"MatchPhrase": ".match_phrase",
|
|
245
|
-
"MatchText": ".match_text",
|
|
246
|
-
"MatchValue": ".match_value",
|
|
247
205
|
"MemberResponse": ".member_response",
|
|
206
|
+
"MessageAttemptOut": ".message_attempt_out",
|
|
207
|
+
"MessageAttemptTriggerType": ".message_attempt_trigger_type",
|
|
208
|
+
"MessageOut": ".message_out",
|
|
248
209
|
"MessageResponse": ".message_response",
|
|
249
|
-
"
|
|
250
|
-
"
|
|
210
|
+
"MessageStatus": ".message_status",
|
|
211
|
+
"MessageStatusText": ".message_status_text",
|
|
251
212
|
"MinuteLevelScheduleConfig": ".minute_level_schedule_config",
|
|
252
|
-
"Must": ".must",
|
|
253
|
-
"Nested": ".nested",
|
|
254
|
-
"NestedCondition": ".nested_condition",
|
|
255
213
|
"OAuthBrowserAuthentication": ".o_auth_browser_authentication",
|
|
256
214
|
"OAuthTokenAuthentication": ".o_auth_token_authentication",
|
|
257
215
|
"OAuthType": ".o_auth_type",
|
|
@@ -260,9 +218,8 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
260
218
|
"OrganizationCreate": ".organization_create",
|
|
261
219
|
"OrganizationMetrics": ".organization_metrics",
|
|
262
220
|
"OrganizationWithRole": ".organization_with_role",
|
|
263
|
-
"
|
|
221
|
+
"PatchSubscriptionRequest": ".patch_subscription_request",
|
|
264
222
|
"QueryExpansionStrategy": ".query_expansion_strategy",
|
|
265
|
-
"Range": ".range",
|
|
266
223
|
"ResponseType": ".response_type",
|
|
267
224
|
"RetrievalStrategy": ".retrieval_strategy",
|
|
268
225
|
"S3ConfigRequest": ".s_3_config_request",
|
|
@@ -273,7 +230,6 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
273
230
|
"SearchRequest": ".search_request",
|
|
274
231
|
"SearchResponse": ".search_response",
|
|
275
232
|
"SearchStatus": ".search_status",
|
|
276
|
-
"Should": ".should",
|
|
277
233
|
"SingleActionCheckResponse": ".single_action_check_response",
|
|
278
234
|
"SingleActionCheckResponseReason": ".single_action_check_response_reason",
|
|
279
235
|
"Source": ".source",
|
|
@@ -285,16 +241,16 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
285
241
|
"SourceRateLimitResponse": ".source_rate_limit_response",
|
|
286
242
|
"SourceRateLimitUpdateRequest": ".source_rate_limit_update_request",
|
|
287
243
|
"SubscriptionInfo": ".subscription_info",
|
|
244
|
+
"SubscriptionWithAttemptsOut": ".subscription_with_attempts_out",
|
|
288
245
|
"Sync": ".sync",
|
|
246
|
+
"SyncConfig": ".sync_config",
|
|
289
247
|
"SyncCreate": ".sync_create",
|
|
290
248
|
"SyncDetails": ".sync_details",
|
|
291
|
-
"SyncExecutionConfig": ".sync_execution_config",
|
|
292
249
|
"SyncJob": ".sync_job",
|
|
293
250
|
"SyncJobDetails": ".sync_job_details",
|
|
294
251
|
"SyncJobStatus": ".sync_job_status",
|
|
295
252
|
"SyncStatus": ".sync_status",
|
|
296
253
|
"SyncUpdate": ".sync_update",
|
|
297
|
-
"SyncWithSourceConnection": ".sync_with_source_connection",
|
|
298
254
|
"Transformer": ".transformer",
|
|
299
255
|
"TransformerCreate": ".transformer_create",
|
|
300
256
|
"TransformerUpdate": ".transformer_update",
|
|
@@ -307,8 +263,6 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
307
263
|
"UserOrganization": ".user_organization",
|
|
308
264
|
"ValidationError": ".validation_error",
|
|
309
265
|
"ValidationErrorLocItem": ".validation_error_loc_item",
|
|
310
|
-
"Value": ".value",
|
|
311
|
-
"ValuesCount": ".values_count",
|
|
312
266
|
}
|
|
313
267
|
|
|
314
268
|
|
|
@@ -338,7 +292,6 @@ __all__ = [
|
|
|
338
292
|
"ActionCheckResponse",
|
|
339
293
|
"AdminSearchDestination",
|
|
340
294
|
"AdminSyncInfo",
|
|
341
|
-
"Any",
|
|
342
295
|
"ApiKey",
|
|
343
296
|
"ApiKeyCreate",
|
|
344
297
|
"AuthProvider",
|
|
@@ -348,6 +301,7 @@ __all__ = [
|
|
|
348
301
|
"AuthProviderConnectionUpdate",
|
|
349
302
|
"AuthenticationDetails",
|
|
350
303
|
"AuthenticationMethod",
|
|
304
|
+
"BehaviorConfig",
|
|
351
305
|
"BillingPeriod",
|
|
352
306
|
"BillingPeriodStatus",
|
|
353
307
|
"BillingPeriodUsage",
|
|
@@ -355,6 +309,7 @@ __all__ = [
|
|
|
355
309
|
"BillingStatus",
|
|
356
310
|
"BillingTransition",
|
|
357
311
|
"BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost",
|
|
312
|
+
"BodyResyncWithExecutionConfigAdminResyncSyncIdPost",
|
|
358
313
|
"CheckoutSessionRequest",
|
|
359
314
|
"CheckoutSessionResponse",
|
|
360
315
|
"Collection",
|
|
@@ -364,14 +319,18 @@ __all__ = [
|
|
|
364
319
|
"ConfigValues",
|
|
365
320
|
"Connection",
|
|
366
321
|
"ConnectionStatus",
|
|
322
|
+
"CreateSubscriptionRequest",
|
|
323
|
+
"CursorConfig",
|
|
367
324
|
"CustomerPortalRequest",
|
|
368
325
|
"CustomerPortalResponse",
|
|
369
|
-
"DatetimeRange",
|
|
370
326
|
"Destination",
|
|
327
|
+
"DestinationConfig",
|
|
371
328
|
"DestinationWithAuthenticationFields",
|
|
372
329
|
"DirectAuthentication",
|
|
373
330
|
"EmbeddingModel",
|
|
374
331
|
"EmbeddingModelWithAuthenticationFields",
|
|
332
|
+
"EndpointOut",
|
|
333
|
+
"EndpointSecretOut",
|
|
375
334
|
"EntityCount",
|
|
376
335
|
"EntityCountWithDefinition",
|
|
377
336
|
"EntityDefinition",
|
|
@@ -381,52 +340,27 @@ __all__ = [
|
|
|
381
340
|
"EntitySummary",
|
|
382
341
|
"EntityType",
|
|
383
342
|
"EntityTypeStats",
|
|
384
|
-
"
|
|
343
|
+
"EventType",
|
|
385
344
|
"FeatureFlag",
|
|
386
|
-
"FieldCondition",
|
|
387
345
|
"Fields",
|
|
388
|
-
"
|
|
389
|
-
"FilterMustItem",
|
|
390
|
-
"FilterMustNot",
|
|
391
|
-
"FilterMustNotItem",
|
|
392
|
-
"FilterShouldItem",
|
|
393
|
-
"GeoBoundingBox",
|
|
394
|
-
"GeoLineString",
|
|
395
|
-
"GeoPoint",
|
|
396
|
-
"GeoPolygon",
|
|
397
|
-
"GeoRadius",
|
|
398
|
-
"Gt",
|
|
399
|
-
"Gte",
|
|
400
|
-
"HasIdCondition",
|
|
401
|
-
"HasIdConditionHasIdItem",
|
|
402
|
-
"HasVectorCondition",
|
|
346
|
+
"HandlerConfig",
|
|
403
347
|
"HttpValidationError",
|
|
404
348
|
"IntegrationCredentialInDb",
|
|
405
349
|
"IntegrationCredentialRawCreate",
|
|
406
350
|
"IntegrationType",
|
|
407
351
|
"InvitationCreate",
|
|
408
352
|
"InvitationResponse",
|
|
409
|
-
"IsEmptyCondition",
|
|
410
|
-
"IsNullCondition",
|
|
411
353
|
"LegacySearchRequest",
|
|
412
354
|
"LegacySearchRequestSearchMethod",
|
|
413
355
|
"LegacySearchResponse",
|
|
414
|
-
"Lt",
|
|
415
|
-
"Lte",
|
|
416
|
-
"Match",
|
|
417
|
-
"MatchAny",
|
|
418
|
-
"MatchExcept",
|
|
419
|
-
"MatchPhrase",
|
|
420
|
-
"MatchText",
|
|
421
|
-
"MatchValue",
|
|
422
356
|
"MemberResponse",
|
|
357
|
+
"MessageAttemptOut",
|
|
358
|
+
"MessageAttemptTriggerType",
|
|
359
|
+
"MessageOut",
|
|
423
360
|
"MessageResponse",
|
|
424
|
-
"
|
|
425
|
-
"
|
|
361
|
+
"MessageStatus",
|
|
362
|
+
"MessageStatusText",
|
|
426
363
|
"MinuteLevelScheduleConfig",
|
|
427
|
-
"Must",
|
|
428
|
-
"Nested",
|
|
429
|
-
"NestedCondition",
|
|
430
364
|
"OAuthBrowserAuthentication",
|
|
431
365
|
"OAuthTokenAuthentication",
|
|
432
366
|
"OAuthType",
|
|
@@ -435,9 +369,8 @@ __all__ = [
|
|
|
435
369
|
"OrganizationCreate",
|
|
436
370
|
"OrganizationMetrics",
|
|
437
371
|
"OrganizationWithRole",
|
|
438
|
-
"
|
|
372
|
+
"PatchSubscriptionRequest",
|
|
439
373
|
"QueryExpansionStrategy",
|
|
440
|
-
"Range",
|
|
441
374
|
"ResponseType",
|
|
442
375
|
"RetrievalStrategy",
|
|
443
376
|
"S3ConfigRequest",
|
|
@@ -448,7 +381,6 @@ __all__ = [
|
|
|
448
381
|
"SearchRequest",
|
|
449
382
|
"SearchResponse",
|
|
450
383
|
"SearchStatus",
|
|
451
|
-
"Should",
|
|
452
384
|
"SingleActionCheckResponse",
|
|
453
385
|
"SingleActionCheckResponseReason",
|
|
454
386
|
"Source",
|
|
@@ -460,16 +392,16 @@ __all__ = [
|
|
|
460
392
|
"SourceRateLimitResponse",
|
|
461
393
|
"SourceRateLimitUpdateRequest",
|
|
462
394
|
"SubscriptionInfo",
|
|
395
|
+
"SubscriptionWithAttemptsOut",
|
|
463
396
|
"Sync",
|
|
397
|
+
"SyncConfig",
|
|
464
398
|
"SyncCreate",
|
|
465
399
|
"SyncDetails",
|
|
466
|
-
"SyncExecutionConfig",
|
|
467
400
|
"SyncJob",
|
|
468
401
|
"SyncJobDetails",
|
|
469
402
|
"SyncJobStatus",
|
|
470
403
|
"SyncStatus",
|
|
471
404
|
"SyncUpdate",
|
|
472
|
-
"SyncWithSourceConnection",
|
|
473
405
|
"Transformer",
|
|
474
406
|
"TransformerCreate",
|
|
475
407
|
"TransformerUpdate",
|
|
@@ -482,6 +414,4 @@ __all__ = [
|
|
|
482
414
|
"UserOrganization",
|
|
483
415
|
"ValidationError",
|
|
484
416
|
"ValidationErrorLocItem",
|
|
485
|
-
"Value",
|
|
486
|
-
"ValuesCount",
|
|
487
417
|
]
|
|
@@ -5,6 +5,7 @@ import typing
|
|
|
5
5
|
|
|
6
6
|
import pydantic
|
|
7
7
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
8
|
+
from .sync_config import SyncConfig
|
|
8
9
|
from .sync_status import SyncStatus
|
|
9
10
|
|
|
10
11
|
|
|
@@ -22,6 +23,7 @@ class AdminSyncInfo(UniversalBaseModel):
|
|
|
22
23
|
temporal_schedule_id: typing.Optional[str] = None
|
|
23
24
|
sync_type: typing.Optional[str] = None
|
|
24
25
|
sync_metadata: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
26
|
+
sync_config: typing.Optional[SyncConfig] = None
|
|
25
27
|
status: SyncStatus
|
|
26
28
|
id: str
|
|
27
29
|
organization_id: str
|
|
@@ -30,14 +32,16 @@ class AdminSyncInfo(UniversalBaseModel):
|
|
|
30
32
|
created_by_email: typing.Optional[str] = None
|
|
31
33
|
modified_by_email: typing.Optional[str] = None
|
|
32
34
|
total_entity_count: typing.Optional[int] = None
|
|
35
|
+
total_arf_entity_count: typing.Optional[int] = None
|
|
36
|
+
total_qdrant_entity_count: typing.Optional[int] = None
|
|
37
|
+
total_vespa_entity_count: typing.Optional[int] = None
|
|
33
38
|
last_job_status: typing.Optional[str] = None
|
|
34
39
|
last_job_at: typing.Optional[dt.datetime] = None
|
|
40
|
+
last_job_error: typing.Optional[str] = None
|
|
41
|
+
all_tags: typing.Optional[typing.List[str]] = None
|
|
35
42
|
source_short_name: typing.Optional[str] = None
|
|
43
|
+
source_is_authenticated: typing.Optional[bool] = None
|
|
36
44
|
readable_collection_id: typing.Optional[str] = None
|
|
37
|
-
last_vespa_job_id: typing.Optional[str] = None
|
|
38
|
-
last_vespa_job_status: typing.Optional[str] = None
|
|
39
|
-
last_vespa_job_at: typing.Optional[dt.datetime] = None
|
|
40
|
-
last_vespa_job_config: typing.Optional[typing.Dict[str, typing.Optional[typing.Any]]] = None
|
|
41
45
|
|
|
42
46
|
if IS_PYDANTIC_V2:
|
|
43
47
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -4,22 +4,26 @@ import typing
|
|
|
4
4
|
|
|
5
5
|
import pydantic
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
-
from .geo_point import GeoPoint
|
|
8
7
|
|
|
9
8
|
|
|
10
|
-
class
|
|
9
|
+
class BehaviorConfig(UniversalBaseModel):
|
|
11
10
|
"""
|
|
12
|
-
|
|
11
|
+
Miscellaneous execution behavior flags.
|
|
13
12
|
"""
|
|
14
13
|
|
|
15
|
-
|
|
14
|
+
skip_hash_comparison: typing.Optional[bool] = pydantic.Field(default=None)
|
|
16
15
|
"""
|
|
17
|
-
|
|
16
|
+
Force INSERT for all entities
|
|
18
17
|
"""
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
replay_from_arf: typing.Optional[bool] = pydantic.Field(default=None)
|
|
21
20
|
"""
|
|
22
|
-
|
|
21
|
+
Replay from ARF storage instead of calling source
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
skip_guardrails: typing.Optional[bool] = pydantic.Field(default=None)
|
|
25
|
+
"""
|
|
26
|
+
Skip usage guardrails (entity count checks)
|
|
23
27
|
"""
|
|
24
28
|
|
|
25
29
|
if IS_PYDANTIC_V2:
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
|
|
3
|
+
import typing
|
|
4
|
+
|
|
5
|
+
import pydantic
|
|
6
|
+
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
from .sync_config import SyncConfig
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class BodyResyncWithExecutionConfigAdminResyncSyncIdPost(UniversalBaseModel):
|
|
11
|
+
execution_config: typing.Optional[SyncConfig] = pydantic.Field(default=None)
|
|
12
|
+
"""
|
|
13
|
+
Optional nested SyncConfig for sync behavior (destinations, handlers, cursor, behavior)
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
tags: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
|
|
17
|
+
"""
|
|
18
|
+
Optional tags for filtering and organizing sync jobs (e.g., ['vespa-backfill-01-22-2026', 'manual'])
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
if IS_PYDANTIC_V2:
|
|
22
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
23
|
+
else:
|
|
24
|
+
|
|
25
|
+
class Config:
|
|
26
|
+
frozen = True
|
|
27
|
+
smart_union = True
|
|
28
|
+
extra = pydantic.Extra.allow
|
airweave/types/collection.py
CHANGED
|
@@ -6,6 +6,7 @@ import typing
|
|
|
6
6
|
import pydantic
|
|
7
7
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
8
8
|
from .collection_status import CollectionStatus
|
|
9
|
+
from .sync_config import SyncConfig
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
class Collection(UniversalBaseModel):
|
|
@@ -33,12 +34,17 @@ class Collection(UniversalBaseModel):
|
|
|
33
34
|
|
|
34
35
|
vector_size: int = pydantic.Field()
|
|
35
36
|
"""
|
|
36
|
-
Vector dimensions used by this collection. Determines which embedding model is used: 3072 (text-embedding-3-large), 1536 (text-embedding-3-small), or 384 (MiniLM-L6-v2).
|
|
37
|
+
Vector dimensions used by this collection. Determines which embedding model is used: 3072 (text-embedding-3-large), 1536 (text-embedding-3-small), 1024 (mistral-embed), or 384 (MiniLM-L6-v2).
|
|
37
38
|
"""
|
|
38
39
|
|
|
39
40
|
embedding_model_name: str = pydantic.Field()
|
|
40
41
|
"""
|
|
41
|
-
Name of the embedding model used for this collection (e.g., 'text-embedding-3-large', 'text-embedding-3-small'). This ensures queries use the same model as the indexed data.
|
|
42
|
+
Name of the embedding model used for this collection (e.g., 'text-embedding-3-large', 'text-embedding-3-small', 'mistral-embed'). This ensures queries use the same model as the indexed data.
|
|
43
|
+
"""
|
|
44
|
+
|
|
45
|
+
sync_config: typing.Optional[SyncConfig] = pydantic.Field(default=None)
|
|
46
|
+
"""
|
|
47
|
+
Default sync configuration for all syncs in this collection. Overridable at sync and job level.
|
|
42
48
|
"""
|
|
43
49
|
|
|
44
50
|
created_at: dt.datetime = pydantic.Field()
|
|
@@ -4,14 +4,15 @@ import typing
|
|
|
4
4
|
|
|
5
5
|
import pydantic
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
from .sync_config import SyncConfig
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
class CollectionUpdate(UniversalBaseModel):
|
|
10
11
|
"""
|
|
11
12
|
Schema for updating an existing collection.
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
to maintain stable API endpoints and references.
|
|
14
|
+
Allows updating the collection's display name and default sync configuration.
|
|
15
|
+
The readable_id is immutable to maintain stable API endpoints and references.
|
|
15
16
|
"""
|
|
16
17
|
|
|
17
18
|
name: typing.Optional[str] = pydantic.Field(default=None)
|
|
@@ -19,6 +20,11 @@ class CollectionUpdate(UniversalBaseModel):
|
|
|
19
20
|
Updated display name for the collection. Must be between 4 and 64 characters.
|
|
20
21
|
"""
|
|
21
22
|
|
|
23
|
+
sync_config: typing.Optional[SyncConfig] = pydantic.Field(default=None)
|
|
24
|
+
"""
|
|
25
|
+
Default sync configuration for all syncs in this collection. This provides collection-level defaults that can be overridden at sync or job level.
|
|
26
|
+
"""
|
|
27
|
+
|
|
22
28
|
if IS_PYDANTIC_V2:
|
|
23
29
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
24
30
|
else:
|
|
@@ -4,17 +4,17 @@ import typing
|
|
|
4
4
|
|
|
5
5
|
import pydantic
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
+
from .event_type import EventType
|
|
7
8
|
|
|
8
9
|
|
|
9
|
-
class
|
|
10
|
+
class CreateSubscriptionRequest(UniversalBaseModel):
|
|
10
11
|
"""
|
|
11
|
-
|
|
12
|
+
Request model for creating a new webhook subscription.
|
|
12
13
|
"""
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"""
|
|
15
|
+
url: str
|
|
16
|
+
event_types: typing.List[EventType]
|
|
17
|
+
secret: typing.Optional[str] = None
|
|
18
18
|
|
|
19
19
|
if IS_PYDANTIC_V2:
|
|
20
20
|
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
@@ -4,17 +4,21 @@ import typing
|
|
|
4
4
|
|
|
5
5
|
import pydantic
|
|
6
6
|
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
|
|
7
|
-
from .geo_point import GeoPoint
|
|
8
7
|
|
|
9
8
|
|
|
10
|
-
class
|
|
9
|
+
class CursorConfig(UniversalBaseModel):
|
|
11
10
|
"""
|
|
12
|
-
|
|
11
|
+
Controls incremental sync cursor behavior.
|
|
13
12
|
"""
|
|
14
13
|
|
|
15
|
-
|
|
14
|
+
skip_load: typing.Optional[bool] = pydantic.Field(default=None)
|
|
16
15
|
"""
|
|
17
|
-
|
|
16
|
+
Don't load cursor (fetch all entities)
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
skip_updates: typing.Optional[bool] = pydantic.Field(default=None)
|
|
20
|
+
"""
|
|
21
|
+
Don't persist cursor progress
|
|
18
22
|
"""
|
|
19
23
|
|
|
20
24
|
if IS_PYDANTIC_V2:
|