airweave-sdk 0.8.25__py3-none-any.whl → 0.8.63__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 -120
- 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 -120
- airweave/types/admin_sync_info.py +3 -3
- 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.25.dist-info → airweave_sdk-0.8.63.dist-info}/METADATA +1 -1
- {airweave_sdk-0.8.25.dist-info → airweave_sdk-0.8.63.dist-info}/RECORD +37 -60
- 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/values_count.py +0 -41
- {airweave_sdk-0.8.25.dist-info → airweave_sdk-0.8.63.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,10 +114,11 @@ 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
|
|
@@ -155,14 +136,11 @@ if typing.TYPE_CHECKING:
|
|
|
155
136
|
from .user_organization import UserOrganization
|
|
156
137
|
from .validation_error import ValidationError
|
|
157
138
|
from .validation_error_loc_item import ValidationErrorLocItem
|
|
158
|
-
from .value import Value
|
|
159
|
-
from .values_count import ValuesCount
|
|
160
139
|
_dynamic_imports: typing.Dict[str, str] = {
|
|
161
140
|
"ActionCheckRequest": ".action_check_request",
|
|
162
141
|
"ActionCheckResponse": ".action_check_response",
|
|
163
142
|
"AdminSearchDestination": ".admin_search_destination",
|
|
164
143
|
"AdminSyncInfo": ".admin_sync_info",
|
|
165
|
-
"Any": ".any",
|
|
166
144
|
"ApiKey": ".api_key",
|
|
167
145
|
"ApiKeyCreate": ".api_key_create",
|
|
168
146
|
"AuthProvider": ".auth_provider",
|
|
@@ -172,6 +150,7 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
172
150
|
"AuthProviderConnectionUpdate": ".auth_provider_connection_update",
|
|
173
151
|
"AuthenticationDetails": ".authentication_details",
|
|
174
152
|
"AuthenticationMethod": ".authentication_method",
|
|
153
|
+
"BehaviorConfig": ".behavior_config",
|
|
175
154
|
"BillingPeriod": ".billing_period",
|
|
176
155
|
"BillingPeriodStatus": ".billing_period_status",
|
|
177
156
|
"BillingPeriodUsage": ".billing_period_usage",
|
|
@@ -179,6 +158,7 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
179
158
|
"BillingStatus": ".billing_status",
|
|
180
159
|
"BillingTransition": ".billing_transition",
|
|
181
160
|
"BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost": ".body_connect_slack_with_token_connections_direct_token_slack_post",
|
|
161
|
+
"BodyResyncWithExecutionConfigAdminResyncSyncIdPost": ".body_resync_with_execution_config_admin_resync_sync_id_post",
|
|
182
162
|
"CheckoutSessionRequest": ".checkout_session_request",
|
|
183
163
|
"CheckoutSessionResponse": ".checkout_session_response",
|
|
184
164
|
"Collection": ".collection",
|
|
@@ -188,14 +168,18 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
188
168
|
"ConfigValues": ".config_values",
|
|
189
169
|
"Connection": ".connection",
|
|
190
170
|
"ConnectionStatus": ".connection_status",
|
|
171
|
+
"CreateSubscriptionRequest": ".create_subscription_request",
|
|
172
|
+
"CursorConfig": ".cursor_config",
|
|
191
173
|
"CustomerPortalRequest": ".customer_portal_request",
|
|
192
174
|
"CustomerPortalResponse": ".customer_portal_response",
|
|
193
|
-
"DatetimeRange": ".datetime_range",
|
|
194
175
|
"Destination": ".destination",
|
|
176
|
+
"DestinationConfig": ".destination_config",
|
|
195
177
|
"DestinationWithAuthenticationFields": ".destination_with_authentication_fields",
|
|
196
178
|
"DirectAuthentication": ".direct_authentication",
|
|
197
179
|
"EmbeddingModel": ".embedding_model",
|
|
198
180
|
"EmbeddingModelWithAuthenticationFields": ".embedding_model_with_authentication_fields",
|
|
181
|
+
"EndpointOut": ".endpoint_out",
|
|
182
|
+
"EndpointSecretOut": ".endpoint_secret_out",
|
|
199
183
|
"EntityCount": ".entity_count",
|
|
200
184
|
"EntityCountWithDefinition": ".entity_count_with_definition",
|
|
201
185
|
"EntityDefinition": ".entity_definition",
|
|
@@ -205,52 +189,27 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
205
189
|
"EntitySummary": ".entity_summary",
|
|
206
190
|
"EntityType": ".entity_type",
|
|
207
191
|
"EntityTypeStats": ".entity_type_stats",
|
|
208
|
-
"
|
|
192
|
+
"EventType": ".event_type",
|
|
209
193
|
"FeatureFlag": ".feature_flag",
|
|
210
|
-
"FieldCondition": ".field_condition",
|
|
211
194
|
"Fields": ".fields",
|
|
212
|
-
"
|
|
213
|
-
"FilterMustItem": ".filter_must_item",
|
|
214
|
-
"FilterMustNot": ".filter_must_not",
|
|
215
|
-
"FilterMustNotItem": ".filter_must_not_item",
|
|
216
|
-
"FilterShouldItem": ".filter_should_item",
|
|
217
|
-
"GeoBoundingBox": ".geo_bounding_box",
|
|
218
|
-
"GeoLineString": ".geo_line_string",
|
|
219
|
-
"GeoPoint": ".geo_point",
|
|
220
|
-
"GeoPolygon": ".geo_polygon",
|
|
221
|
-
"GeoRadius": ".geo_radius",
|
|
222
|
-
"Gt": ".gt",
|
|
223
|
-
"Gte": ".gte",
|
|
224
|
-
"HasIdCondition": ".has_id_condition",
|
|
225
|
-
"HasIdConditionHasIdItem": ".has_id_condition_has_id_item",
|
|
226
|
-
"HasVectorCondition": ".has_vector_condition",
|
|
195
|
+
"HandlerConfig": ".handler_config",
|
|
227
196
|
"HttpValidationError": ".http_validation_error",
|
|
228
197
|
"IntegrationCredentialInDb": ".integration_credential_in_db",
|
|
229
198
|
"IntegrationCredentialRawCreate": ".integration_credential_raw_create",
|
|
230
199
|
"IntegrationType": ".integration_type",
|
|
231
200
|
"InvitationCreate": ".invitation_create",
|
|
232
201
|
"InvitationResponse": ".invitation_response",
|
|
233
|
-
"IsEmptyCondition": ".is_empty_condition",
|
|
234
|
-
"IsNullCondition": ".is_null_condition",
|
|
235
202
|
"LegacySearchRequest": ".legacy_search_request",
|
|
236
203
|
"LegacySearchRequestSearchMethod": ".legacy_search_request_search_method",
|
|
237
204
|
"LegacySearchResponse": ".legacy_search_response",
|
|
238
|
-
"Lt": ".lt",
|
|
239
|
-
"Lte": ".lte",
|
|
240
|
-
"Match": ".match",
|
|
241
|
-
"MatchAny": ".match_any",
|
|
242
|
-
"MatchExcept": ".match_except",
|
|
243
|
-
"MatchPhrase": ".match_phrase",
|
|
244
|
-
"MatchText": ".match_text",
|
|
245
|
-
"MatchValue": ".match_value",
|
|
246
205
|
"MemberResponse": ".member_response",
|
|
206
|
+
"MessageAttemptOut": ".message_attempt_out",
|
|
207
|
+
"MessageAttemptTriggerType": ".message_attempt_trigger_type",
|
|
208
|
+
"MessageOut": ".message_out",
|
|
247
209
|
"MessageResponse": ".message_response",
|
|
248
|
-
"
|
|
249
|
-
"
|
|
210
|
+
"MessageStatus": ".message_status",
|
|
211
|
+
"MessageStatusText": ".message_status_text",
|
|
250
212
|
"MinuteLevelScheduleConfig": ".minute_level_schedule_config",
|
|
251
|
-
"Must": ".must",
|
|
252
|
-
"Nested": ".nested",
|
|
253
|
-
"NestedCondition": ".nested_condition",
|
|
254
213
|
"OAuthBrowserAuthentication": ".o_auth_browser_authentication",
|
|
255
214
|
"OAuthTokenAuthentication": ".o_auth_token_authentication",
|
|
256
215
|
"OAuthType": ".o_auth_type",
|
|
@@ -259,9 +218,8 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
259
218
|
"OrganizationCreate": ".organization_create",
|
|
260
219
|
"OrganizationMetrics": ".organization_metrics",
|
|
261
220
|
"OrganizationWithRole": ".organization_with_role",
|
|
262
|
-
"
|
|
221
|
+
"PatchSubscriptionRequest": ".patch_subscription_request",
|
|
263
222
|
"QueryExpansionStrategy": ".query_expansion_strategy",
|
|
264
|
-
"Range": ".range",
|
|
265
223
|
"ResponseType": ".response_type",
|
|
266
224
|
"RetrievalStrategy": ".retrieval_strategy",
|
|
267
225
|
"S3ConfigRequest": ".s_3_config_request",
|
|
@@ -272,7 +230,6 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
272
230
|
"SearchRequest": ".search_request",
|
|
273
231
|
"SearchResponse": ".search_response",
|
|
274
232
|
"SearchStatus": ".search_status",
|
|
275
|
-
"Should": ".should",
|
|
276
233
|
"SingleActionCheckResponse": ".single_action_check_response",
|
|
277
234
|
"SingleActionCheckResponseReason": ".single_action_check_response_reason",
|
|
278
235
|
"Source": ".source",
|
|
@@ -284,10 +241,11 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
284
241
|
"SourceRateLimitResponse": ".source_rate_limit_response",
|
|
285
242
|
"SourceRateLimitUpdateRequest": ".source_rate_limit_update_request",
|
|
286
243
|
"SubscriptionInfo": ".subscription_info",
|
|
244
|
+
"SubscriptionWithAttemptsOut": ".subscription_with_attempts_out",
|
|
287
245
|
"Sync": ".sync",
|
|
246
|
+
"SyncConfig": ".sync_config",
|
|
288
247
|
"SyncCreate": ".sync_create",
|
|
289
248
|
"SyncDetails": ".sync_details",
|
|
290
|
-
"SyncExecutionConfig": ".sync_execution_config",
|
|
291
249
|
"SyncJob": ".sync_job",
|
|
292
250
|
"SyncJobDetails": ".sync_job_details",
|
|
293
251
|
"SyncJobStatus": ".sync_job_status",
|
|
@@ -305,8 +263,6 @@ _dynamic_imports: typing.Dict[str, str] = {
|
|
|
305
263
|
"UserOrganization": ".user_organization",
|
|
306
264
|
"ValidationError": ".validation_error",
|
|
307
265
|
"ValidationErrorLocItem": ".validation_error_loc_item",
|
|
308
|
-
"Value": ".value",
|
|
309
|
-
"ValuesCount": ".values_count",
|
|
310
266
|
}
|
|
311
267
|
|
|
312
268
|
|
|
@@ -336,7 +292,6 @@ __all__ = [
|
|
|
336
292
|
"ActionCheckResponse",
|
|
337
293
|
"AdminSearchDestination",
|
|
338
294
|
"AdminSyncInfo",
|
|
339
|
-
"Any",
|
|
340
295
|
"ApiKey",
|
|
341
296
|
"ApiKeyCreate",
|
|
342
297
|
"AuthProvider",
|
|
@@ -346,6 +301,7 @@ __all__ = [
|
|
|
346
301
|
"AuthProviderConnectionUpdate",
|
|
347
302
|
"AuthenticationDetails",
|
|
348
303
|
"AuthenticationMethod",
|
|
304
|
+
"BehaviorConfig",
|
|
349
305
|
"BillingPeriod",
|
|
350
306
|
"BillingPeriodStatus",
|
|
351
307
|
"BillingPeriodUsage",
|
|
@@ -353,6 +309,7 @@ __all__ = [
|
|
|
353
309
|
"BillingStatus",
|
|
354
310
|
"BillingTransition",
|
|
355
311
|
"BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost",
|
|
312
|
+
"BodyResyncWithExecutionConfigAdminResyncSyncIdPost",
|
|
356
313
|
"CheckoutSessionRequest",
|
|
357
314
|
"CheckoutSessionResponse",
|
|
358
315
|
"Collection",
|
|
@@ -362,14 +319,18 @@ __all__ = [
|
|
|
362
319
|
"ConfigValues",
|
|
363
320
|
"Connection",
|
|
364
321
|
"ConnectionStatus",
|
|
322
|
+
"CreateSubscriptionRequest",
|
|
323
|
+
"CursorConfig",
|
|
365
324
|
"CustomerPortalRequest",
|
|
366
325
|
"CustomerPortalResponse",
|
|
367
|
-
"DatetimeRange",
|
|
368
326
|
"Destination",
|
|
327
|
+
"DestinationConfig",
|
|
369
328
|
"DestinationWithAuthenticationFields",
|
|
370
329
|
"DirectAuthentication",
|
|
371
330
|
"EmbeddingModel",
|
|
372
331
|
"EmbeddingModelWithAuthenticationFields",
|
|
332
|
+
"EndpointOut",
|
|
333
|
+
"EndpointSecretOut",
|
|
373
334
|
"EntityCount",
|
|
374
335
|
"EntityCountWithDefinition",
|
|
375
336
|
"EntityDefinition",
|
|
@@ -379,52 +340,27 @@ __all__ = [
|
|
|
379
340
|
"EntitySummary",
|
|
380
341
|
"EntityType",
|
|
381
342
|
"EntityTypeStats",
|
|
382
|
-
"
|
|
343
|
+
"EventType",
|
|
383
344
|
"FeatureFlag",
|
|
384
|
-
"FieldCondition",
|
|
385
345
|
"Fields",
|
|
386
|
-
"
|
|
387
|
-
"FilterMustItem",
|
|
388
|
-
"FilterMustNot",
|
|
389
|
-
"FilterMustNotItem",
|
|
390
|
-
"FilterShouldItem",
|
|
391
|
-
"GeoBoundingBox",
|
|
392
|
-
"GeoLineString",
|
|
393
|
-
"GeoPoint",
|
|
394
|
-
"GeoPolygon",
|
|
395
|
-
"GeoRadius",
|
|
396
|
-
"Gt",
|
|
397
|
-
"Gte",
|
|
398
|
-
"HasIdCondition",
|
|
399
|
-
"HasIdConditionHasIdItem",
|
|
400
|
-
"HasVectorCondition",
|
|
346
|
+
"HandlerConfig",
|
|
401
347
|
"HttpValidationError",
|
|
402
348
|
"IntegrationCredentialInDb",
|
|
403
349
|
"IntegrationCredentialRawCreate",
|
|
404
350
|
"IntegrationType",
|
|
405
351
|
"InvitationCreate",
|
|
406
352
|
"InvitationResponse",
|
|
407
|
-
"IsEmptyCondition",
|
|
408
|
-
"IsNullCondition",
|
|
409
353
|
"LegacySearchRequest",
|
|
410
354
|
"LegacySearchRequestSearchMethod",
|
|
411
355
|
"LegacySearchResponse",
|
|
412
|
-
"Lt",
|
|
413
|
-
"Lte",
|
|
414
|
-
"Match",
|
|
415
|
-
"MatchAny",
|
|
416
|
-
"MatchExcept",
|
|
417
|
-
"MatchPhrase",
|
|
418
|
-
"MatchText",
|
|
419
|
-
"MatchValue",
|
|
420
356
|
"MemberResponse",
|
|
357
|
+
"MessageAttemptOut",
|
|
358
|
+
"MessageAttemptTriggerType",
|
|
359
|
+
"MessageOut",
|
|
421
360
|
"MessageResponse",
|
|
422
|
-
"
|
|
423
|
-
"
|
|
361
|
+
"MessageStatus",
|
|
362
|
+
"MessageStatusText",
|
|
424
363
|
"MinuteLevelScheduleConfig",
|
|
425
|
-
"Must",
|
|
426
|
-
"Nested",
|
|
427
|
-
"NestedCondition",
|
|
428
364
|
"OAuthBrowserAuthentication",
|
|
429
365
|
"OAuthTokenAuthentication",
|
|
430
366
|
"OAuthType",
|
|
@@ -433,9 +369,8 @@ __all__ = [
|
|
|
433
369
|
"OrganizationCreate",
|
|
434
370
|
"OrganizationMetrics",
|
|
435
371
|
"OrganizationWithRole",
|
|
436
|
-
"
|
|
372
|
+
"PatchSubscriptionRequest",
|
|
437
373
|
"QueryExpansionStrategy",
|
|
438
|
-
"Range",
|
|
439
374
|
"ResponseType",
|
|
440
375
|
"RetrievalStrategy",
|
|
441
376
|
"S3ConfigRequest",
|
|
@@ -446,7 +381,6 @@ __all__ = [
|
|
|
446
381
|
"SearchRequest",
|
|
447
382
|
"SearchResponse",
|
|
448
383
|
"SearchStatus",
|
|
449
|
-
"Should",
|
|
450
384
|
"SingleActionCheckResponse",
|
|
451
385
|
"SingleActionCheckResponseReason",
|
|
452
386
|
"Source",
|
|
@@ -458,10 +392,11 @@ __all__ = [
|
|
|
458
392
|
"SourceRateLimitResponse",
|
|
459
393
|
"SourceRateLimitUpdateRequest",
|
|
460
394
|
"SubscriptionInfo",
|
|
395
|
+
"SubscriptionWithAttemptsOut",
|
|
461
396
|
"Sync",
|
|
397
|
+
"SyncConfig",
|
|
462
398
|
"SyncCreate",
|
|
463
399
|
"SyncDetails",
|
|
464
|
-
"SyncExecutionConfig",
|
|
465
400
|
"SyncJob",
|
|
466
401
|
"SyncJobDetails",
|
|
467
402
|
"SyncJobStatus",
|
|
@@ -479,6 +414,4 @@ __all__ = [
|
|
|
479
414
|
"UserOrganization",
|
|
480
415
|
"ValidationError",
|
|
481
416
|
"ValidationErrorLocItem",
|
|
482
|
-
"Value",
|
|
483
|
-
"ValuesCount",
|
|
484
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
|
|
@@ -36,12 +38,10 @@ class AdminSyncInfo(UniversalBaseModel):
|
|
|
36
38
|
last_job_status: typing.Optional[str] = None
|
|
37
39
|
last_job_at: typing.Optional[dt.datetime] = None
|
|
38
40
|
last_job_error: typing.Optional[str] = None
|
|
41
|
+
all_tags: typing.Optional[typing.List[str]] = None
|
|
39
42
|
source_short_name: typing.Optional[str] = None
|
|
40
43
|
source_is_authenticated: typing.Optional[bool] = None
|
|
41
44
|
readable_collection_id: typing.Optional[str] = None
|
|
42
|
-
last_vespa_job_id: typing.Optional[str] = None
|
|
43
|
-
last_vespa_job_status: typing.Optional[str] = None
|
|
44
|
-
last_vespa_job_at: typing.Optional[dt.datetime] = None
|
|
45
45
|
|
|
46
46
|
if IS_PYDANTIC_V2:
|
|
47
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:
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
|
|
8
|
+
|
|
9
|
+
class DestinationConfig(UniversalBaseModel):
|
|
10
|
+
"""
|
|
11
|
+
Controls where entities are written.
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
skip_qdrant: typing.Optional[bool] = pydantic.Field(default=None)
|
|
15
|
+
"""
|
|
16
|
+
Skip writing to native Qdrant
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
skip_vespa: typing.Optional[bool] = pydantic.Field(default=None)
|
|
20
|
+
"""
|
|
21
|
+
Skip writing to native Vespa
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
target_destinations: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
|
|
25
|
+
"""
|
|
26
|
+
If set, ONLY write to these destination UUIDs
|
|
27
|
+
"""
|
|
28
|
+
|
|
29
|
+
exclude_destinations: typing.Optional[typing.List[str]] = pydantic.Field(default=None)
|
|
30
|
+
"""
|
|
31
|
+
Skip these destination UUIDs
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
if IS_PYDANTIC_V2:
|
|
35
|
+
model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True) # type: ignore # Pydantic v2
|
|
36
|
+
else:
|
|
37
|
+
|
|
38
|
+
class Config:
|
|
39
|
+
frozen = True
|
|
40
|
+
smart_union = True
|
|
41
|
+
extra = pydantic.Extra.allow
|