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.
Files changed (69) hide show
  1. airweave/__init__.py +51 -123
  2. airweave/collections/client.py +15 -2
  3. airweave/collections/raw_client.py +15 -0
  4. airweave/core/client_wrapper.py +2 -2
  5. airweave/types/__init__.py +53 -123
  6. airweave/types/admin_sync_info.py +8 -4
  7. airweave/types/{geo_radius.py → behavior_config.py} +11 -7
  8. airweave/types/body_resync_with_execution_config_admin_resync_sync_id_post.py +28 -0
  9. airweave/types/collection.py +8 -2
  10. airweave/types/collection_update.py +8 -2
  11. airweave/types/{has_vector_condition.py → create_subscription_request.py} +6 -6
  12. airweave/types/{geo_line_string.py → cursor_config.py} +9 -5
  13. airweave/types/destination_config.py +41 -0
  14. airweave/types/endpoint_out.py +35 -0
  15. airweave/types/{payload_field.py → endpoint_secret_out.py} +2 -9
  16. airweave/types/event_type.py +7 -0
  17. airweave/types/feature_flag.py +8 -1
  18. airweave/types/{range.py → handler_config.py} +8 -13
  19. airweave/types/legacy_search_request.py +3 -13
  20. airweave/types/message_attempt_out.py +37 -0
  21. airweave/types/{value.py → message_attempt_trigger_type.py} +1 -3
  22. airweave/types/message_out.py +29 -0
  23. airweave/types/{has_id_condition_has_id_item.py → message_status.py} +1 -3
  24. airweave/types/message_status_text.py +5 -0
  25. airweave/types/{geo_point.py → patch_subscription_request.py} +5 -11
  26. airweave/types/s_3_config_request.py +5 -15
  27. airweave/types/search_request.py +1 -1
  28. airweave/types/source.py +10 -0
  29. airweave/types/{has_id_condition.py → subscription_with_attempts_out.py} +6 -7
  30. airweave/types/sync.py +2 -0
  31. airweave/types/sync_config.py +34 -0
  32. airweave/types/sync_create.py +2 -0
  33. airweave/types/sync_job.py +3 -1
  34. airweave/types/sync_update.py +2 -0
  35. {airweave_sdk-0.8.9.dist-info → airweave_sdk-0.8.56.dist-info}/METADATA +1 -1
  36. {airweave_sdk-0.8.9.dist-info → airweave_sdk-0.8.56.dist-info}/RECORD +37 -61
  37. airweave/types/any.py +0 -5
  38. airweave/types/datetime_range.py +0 -45
  39. airweave/types/except_.py +0 -5
  40. airweave/types/field_condition.py +0 -72
  41. airweave/types/filter.py +0 -53
  42. airweave/types/filter_must_item.py +0 -18
  43. airweave/types/filter_must_not.py +0 -26
  44. airweave/types/filter_must_not_item.py +0 -18
  45. airweave/types/filter_should_item.py +0 -18
  46. airweave/types/geo_bounding_box.py +0 -32
  47. airweave/types/geo_polygon.py +0 -32
  48. airweave/types/gt.py +0 -6
  49. airweave/types/gte.py +0 -6
  50. airweave/types/is_empty_condition.py +0 -27
  51. airweave/types/is_null_condition.py +0 -27
  52. airweave/types/lt.py +0 -6
  53. airweave/types/lte.py +0 -6
  54. airweave/types/match.py +0 -11
  55. airweave/types/match_any.py +0 -27
  56. airweave/types/match_except.py +0 -29
  57. airweave/types/match_phrase.py +0 -26
  58. airweave/types/match_text.py +0 -26
  59. airweave/types/match_value.py +0 -27
  60. airweave/types/min_should.py +0 -37
  61. airweave/types/min_should_conditions_item.py +0 -18
  62. airweave/types/must.py +0 -26
  63. airweave/types/nested.py +0 -40
  64. airweave/types/nested_condition.py +0 -31
  65. airweave/types/should.py +0 -26
  66. airweave/types/sync_execution_config.py +0 -79
  67. airweave/types/sync_with_source_connection.py +0 -42
  68. airweave/types/values_count.py +0 -41
  69. {airweave_sdk-0.8.9.dist-info → airweave_sdk-0.8.56.dist-info}/WHEEL +0 -0
airweave/__init__.py CHANGED
@@ -11,7 +11,6 @@ if typing.TYPE_CHECKING:
11
11
  ActionCheckResponse,
12
12
  AdminSearchDestination,
13
13
  AdminSyncInfo,
14
- Any,
15
14
  ApiKey,
16
15
  ApiKeyCreate,
17
16
  AuthProvider,
@@ -21,6 +20,7 @@ if typing.TYPE_CHECKING:
21
20
  AuthProviderConnectionUpdate,
22
21
  AuthenticationDetails,
23
22
  AuthenticationMethod,
23
+ BehaviorConfig,
24
24
  BillingPeriod,
25
25
  BillingPeriodStatus,
26
26
  BillingPeriodUsage,
@@ -28,6 +28,7 @@ if typing.TYPE_CHECKING:
28
28
  BillingStatus,
29
29
  BillingTransition,
30
30
  BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost,
31
+ BodyResyncWithExecutionConfigAdminResyncSyncIdPost,
31
32
  CheckoutSessionRequest,
32
33
  CheckoutSessionResponse,
33
34
  Collection,
@@ -37,14 +38,18 @@ if typing.TYPE_CHECKING:
37
38
  ConfigValues,
38
39
  Connection,
39
40
  ConnectionStatus,
41
+ CreateSubscriptionRequest,
42
+ CursorConfig,
40
43
  CustomerPortalRequest,
41
44
  CustomerPortalResponse,
42
- DatetimeRange,
43
45
  Destination,
46
+ DestinationConfig,
44
47
  DestinationWithAuthenticationFields,
45
48
  DirectAuthentication,
46
49
  EmbeddingModel,
47
50
  EmbeddingModelWithAuthenticationFields,
51
+ EndpointOut,
52
+ EndpointSecretOut,
48
53
  EntityCount,
49
54
  EntityCountWithDefinition,
50
55
  EntityDefinition,
@@ -54,52 +59,27 @@ if typing.TYPE_CHECKING:
54
59
  EntitySummary,
55
60
  EntityType,
56
61
  EntityTypeStats,
57
- Except,
62
+ EventType,
58
63
  FeatureFlag,
59
- FieldCondition,
60
64
  Fields,
61
- Filter,
62
- FilterMustItem,
63
- FilterMustNot,
64
- FilterMustNotItem,
65
- FilterShouldItem,
66
- GeoBoundingBox,
67
- GeoLineString,
68
- GeoPoint,
69
- GeoPolygon,
70
- GeoRadius,
71
- Gt,
72
- Gte,
73
- HasIdCondition,
74
- HasIdConditionHasIdItem,
75
- HasVectorCondition,
65
+ HandlerConfig,
76
66
  HttpValidationError,
77
67
  IntegrationCredentialInDb,
78
68
  IntegrationCredentialRawCreate,
79
69
  IntegrationType,
80
70
  InvitationCreate,
81
71
  InvitationResponse,
82
- IsEmptyCondition,
83
- IsNullCondition,
84
72
  LegacySearchRequest,
85
73
  LegacySearchRequestSearchMethod,
86
74
  LegacySearchResponse,
87
- Lt,
88
- Lte,
89
- Match,
90
- MatchAny,
91
- MatchExcept,
92
- MatchPhrase,
93
- MatchText,
94
- MatchValue,
95
75
  MemberResponse,
76
+ MessageAttemptOut,
77
+ MessageAttemptTriggerType,
78
+ MessageOut,
96
79
  MessageResponse,
97
- MinShould,
98
- MinShouldConditionsItem,
80
+ MessageStatus,
81
+ MessageStatusText,
99
82
  MinuteLevelScheduleConfig,
100
- Must,
101
- Nested,
102
- NestedCondition,
103
83
  OAuthBrowserAuthentication,
104
84
  OAuthTokenAuthentication,
105
85
  OAuthType,
@@ -108,9 +88,8 @@ if typing.TYPE_CHECKING:
108
88
  OrganizationCreate,
109
89
  OrganizationMetrics,
110
90
  OrganizationWithRole,
111
- PayloadField,
91
+ PatchSubscriptionRequest,
112
92
  QueryExpansionStrategy,
113
- Range,
114
93
  ResponseType,
115
94
  RetrievalStrategy,
116
95
  S3ConfigRequest,
@@ -121,7 +100,6 @@ if typing.TYPE_CHECKING:
121
100
  SearchRequest,
122
101
  SearchResponse,
123
102
  SearchStatus,
124
- Should,
125
103
  SingleActionCheckResponse,
126
104
  SingleActionCheckResponseReason,
127
105
  Source,
@@ -133,16 +111,16 @@ if typing.TYPE_CHECKING:
133
111
  SourceRateLimitResponse,
134
112
  SourceRateLimitUpdateRequest,
135
113
  SubscriptionInfo,
114
+ SubscriptionWithAttemptsOut,
136
115
  Sync,
116
+ SyncConfig,
137
117
  SyncCreate,
138
118
  SyncDetails,
139
- SyncExecutionConfig,
140
119
  SyncJob,
141
120
  SyncJobDetails,
142
121
  SyncJobStatus,
143
122
  SyncStatus,
144
123
  SyncUpdate,
145
- SyncWithSourceConnection,
146
124
  Transformer,
147
125
  TransformerCreate,
148
126
  TransformerUpdate,
@@ -155,8 +133,6 @@ if typing.TYPE_CHECKING:
155
133
  UserOrganization,
156
134
  ValidationError,
157
135
  ValidationErrorLocItem,
158
- Value,
159
- ValuesCount,
160
136
  )
161
137
  from .errors import UnprocessableEntityError
162
138
  from . import collections, source_connections, sources
@@ -172,7 +148,6 @@ _dynamic_imports: typing.Dict[str, str] = {
172
148
  "AdminSyncInfo": ".types",
173
149
  "AirweaveSDK": ".client",
174
150
  "AirweaveSDKEnvironment": ".environment",
175
- "Any": ".types",
176
151
  "ApiKey": ".types",
177
152
  "ApiKeyCreate": ".types",
178
153
  "AsyncAirweaveSDK": ".client",
@@ -184,6 +159,7 @@ _dynamic_imports: typing.Dict[str, str] = {
184
159
  "Authentication": ".source_connections",
185
160
  "AuthenticationDetails": ".types",
186
161
  "AuthenticationMethod": ".types",
162
+ "BehaviorConfig": ".types",
187
163
  "BillingPeriod": ".types",
188
164
  "BillingPeriodStatus": ".types",
189
165
  "BillingPeriodUsage": ".types",
@@ -191,6 +167,7 @@ _dynamic_imports: typing.Dict[str, str] = {
191
167
  "BillingStatus": ".types",
192
168
  "BillingTransition": ".types",
193
169
  "BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost": ".types",
170
+ "BodyResyncWithExecutionConfigAdminResyncSyncIdPost": ".types",
194
171
  "CheckoutSessionRequest": ".types",
195
172
  "CheckoutSessionResponse": ".types",
196
173
  "Collection": ".types",
@@ -200,14 +177,18 @@ _dynamic_imports: typing.Dict[str, str] = {
200
177
  "ConfigValues": ".types",
201
178
  "Connection": ".types",
202
179
  "ConnectionStatus": ".types",
180
+ "CreateSubscriptionRequest": ".types",
181
+ "CursorConfig": ".types",
203
182
  "CustomerPortalRequest": ".types",
204
183
  "CustomerPortalResponse": ".types",
205
- "DatetimeRange": ".types",
206
184
  "Destination": ".types",
185
+ "DestinationConfig": ".types",
207
186
  "DestinationWithAuthenticationFields": ".types",
208
187
  "DirectAuthentication": ".types",
209
188
  "EmbeddingModel": ".types",
210
189
  "EmbeddingModelWithAuthenticationFields": ".types",
190
+ "EndpointOut": ".types",
191
+ "EndpointSecretOut": ".types",
211
192
  "EntityCount": ".types",
212
193
  "EntityCountWithDefinition": ".types",
213
194
  "EntityDefinition": ".types",
@@ -217,52 +198,27 @@ _dynamic_imports: typing.Dict[str, str] = {
217
198
  "EntitySummary": ".types",
218
199
  "EntityType": ".types",
219
200
  "EntityTypeStats": ".types",
220
- "Except": ".types",
201
+ "EventType": ".types",
221
202
  "FeatureFlag": ".types",
222
- "FieldCondition": ".types",
223
203
  "Fields": ".types",
224
- "Filter": ".types",
225
- "FilterMustItem": ".types",
226
- "FilterMustNot": ".types",
227
- "FilterMustNotItem": ".types",
228
- "FilterShouldItem": ".types",
229
- "GeoBoundingBox": ".types",
230
- "GeoLineString": ".types",
231
- "GeoPoint": ".types",
232
- "GeoPolygon": ".types",
233
- "GeoRadius": ".types",
234
- "Gt": ".types",
235
- "Gte": ".types",
236
- "HasIdCondition": ".types",
237
- "HasIdConditionHasIdItem": ".types",
238
- "HasVectorCondition": ".types",
204
+ "HandlerConfig": ".types",
239
205
  "HttpValidationError": ".types",
240
206
  "IntegrationCredentialInDb": ".types",
241
207
  "IntegrationCredentialRawCreate": ".types",
242
208
  "IntegrationType": ".types",
243
209
  "InvitationCreate": ".types",
244
210
  "InvitationResponse": ".types",
245
- "IsEmptyCondition": ".types",
246
- "IsNullCondition": ".types",
247
211
  "LegacySearchRequest": ".types",
248
212
  "LegacySearchRequestSearchMethod": ".types",
249
213
  "LegacySearchResponse": ".types",
250
- "Lt": ".types",
251
- "Lte": ".types",
252
- "Match": ".types",
253
- "MatchAny": ".types",
254
- "MatchExcept": ".types",
255
- "MatchPhrase": ".types",
256
- "MatchText": ".types",
257
- "MatchValue": ".types",
258
214
  "MemberResponse": ".types",
215
+ "MessageAttemptOut": ".types",
216
+ "MessageAttemptTriggerType": ".types",
217
+ "MessageOut": ".types",
259
218
  "MessageResponse": ".types",
260
- "MinShould": ".types",
261
- "MinShouldConditionsItem": ".types",
219
+ "MessageStatus": ".types",
220
+ "MessageStatusText": ".types",
262
221
  "MinuteLevelScheduleConfig": ".types",
263
- "Must": ".types",
264
- "Nested": ".types",
265
- "NestedCondition": ".types",
266
222
  "OAuthBrowserAuthentication": ".types",
267
223
  "OAuthTokenAuthentication": ".types",
268
224
  "OAuthType": ".types",
@@ -271,9 +227,8 @@ _dynamic_imports: typing.Dict[str, str] = {
271
227
  "OrganizationCreate": ".types",
272
228
  "OrganizationMetrics": ".types",
273
229
  "OrganizationWithRole": ".types",
274
- "PayloadField": ".types",
230
+ "PatchSubscriptionRequest": ".types",
275
231
  "QueryExpansionStrategy": ".types",
276
- "Range": ".types",
277
232
  "ResponseType": ".types",
278
233
  "RetrievalStrategy": ".types",
279
234
  "S3ConfigRequest": ".types",
@@ -286,7 +241,6 @@ _dynamic_imports: typing.Dict[str, str] = {
286
241
  "SearchRequest": ".types",
287
242
  "SearchResponse": ".types",
288
243
  "SearchStatus": ".types",
289
- "Should": ".types",
290
244
  "SingleActionCheckResponse": ".types",
291
245
  "SingleActionCheckResponseReason": ".types",
292
246
  "Source": ".types",
@@ -298,16 +252,16 @@ _dynamic_imports: typing.Dict[str, str] = {
298
252
  "SourceRateLimitResponse": ".types",
299
253
  "SourceRateLimitUpdateRequest": ".types",
300
254
  "SubscriptionInfo": ".types",
255
+ "SubscriptionWithAttemptsOut": ".types",
301
256
  "Sync": ".types",
257
+ "SyncConfig": ".types",
302
258
  "SyncCreate": ".types",
303
259
  "SyncDetails": ".types",
304
- "SyncExecutionConfig": ".types",
305
260
  "SyncJob": ".types",
306
261
  "SyncJobDetails": ".types",
307
262
  "SyncJobStatus": ".types",
308
263
  "SyncStatus": ".types",
309
264
  "SyncUpdate": ".types",
310
- "SyncWithSourceConnection": ".types",
311
265
  "Transformer": ".types",
312
266
  "TransformerCreate": ".types",
313
267
  "TransformerUpdate": ".types",
@@ -321,8 +275,6 @@ _dynamic_imports: typing.Dict[str, str] = {
321
275
  "UserOrganization": ".types",
322
276
  "ValidationError": ".types",
323
277
  "ValidationErrorLocItem": ".types",
324
- "Value": ".types",
325
- "ValuesCount": ".types",
326
278
  "__version__": ".version",
327
279
  "collections": ".collections",
328
280
  "source_connections": ".source_connections",
@@ -358,7 +310,6 @@ __all__ = [
358
310
  "AdminSyncInfo",
359
311
  "AirweaveSDK",
360
312
  "AirweaveSDKEnvironment",
361
- "Any",
362
313
  "ApiKey",
363
314
  "ApiKeyCreate",
364
315
  "AsyncAirweaveSDK",
@@ -370,6 +321,7 @@ __all__ = [
370
321
  "Authentication",
371
322
  "AuthenticationDetails",
372
323
  "AuthenticationMethod",
324
+ "BehaviorConfig",
373
325
  "BillingPeriod",
374
326
  "BillingPeriodStatus",
375
327
  "BillingPeriodUsage",
@@ -377,6 +329,7 @@ __all__ = [
377
329
  "BillingStatus",
378
330
  "BillingTransition",
379
331
  "BodyConnectSlackWithTokenConnectionsDirectTokenSlackPost",
332
+ "BodyResyncWithExecutionConfigAdminResyncSyncIdPost",
380
333
  "CheckoutSessionRequest",
381
334
  "CheckoutSessionResponse",
382
335
  "Collection",
@@ -386,14 +339,18 @@ __all__ = [
386
339
  "ConfigValues",
387
340
  "Connection",
388
341
  "ConnectionStatus",
342
+ "CreateSubscriptionRequest",
343
+ "CursorConfig",
389
344
  "CustomerPortalRequest",
390
345
  "CustomerPortalResponse",
391
- "DatetimeRange",
392
346
  "Destination",
347
+ "DestinationConfig",
393
348
  "DestinationWithAuthenticationFields",
394
349
  "DirectAuthentication",
395
350
  "EmbeddingModel",
396
351
  "EmbeddingModelWithAuthenticationFields",
352
+ "EndpointOut",
353
+ "EndpointSecretOut",
397
354
  "EntityCount",
398
355
  "EntityCountWithDefinition",
399
356
  "EntityDefinition",
@@ -403,52 +360,27 @@ __all__ = [
403
360
  "EntitySummary",
404
361
  "EntityType",
405
362
  "EntityTypeStats",
406
- "Except",
363
+ "EventType",
407
364
  "FeatureFlag",
408
- "FieldCondition",
409
365
  "Fields",
410
- "Filter",
411
- "FilterMustItem",
412
- "FilterMustNot",
413
- "FilterMustNotItem",
414
- "FilterShouldItem",
415
- "GeoBoundingBox",
416
- "GeoLineString",
417
- "GeoPoint",
418
- "GeoPolygon",
419
- "GeoRadius",
420
- "Gt",
421
- "Gte",
422
- "HasIdCondition",
423
- "HasIdConditionHasIdItem",
424
- "HasVectorCondition",
366
+ "HandlerConfig",
425
367
  "HttpValidationError",
426
368
  "IntegrationCredentialInDb",
427
369
  "IntegrationCredentialRawCreate",
428
370
  "IntegrationType",
429
371
  "InvitationCreate",
430
372
  "InvitationResponse",
431
- "IsEmptyCondition",
432
- "IsNullCondition",
433
373
  "LegacySearchRequest",
434
374
  "LegacySearchRequestSearchMethod",
435
375
  "LegacySearchResponse",
436
- "Lt",
437
- "Lte",
438
- "Match",
439
- "MatchAny",
440
- "MatchExcept",
441
- "MatchPhrase",
442
- "MatchText",
443
- "MatchValue",
444
376
  "MemberResponse",
377
+ "MessageAttemptOut",
378
+ "MessageAttemptTriggerType",
379
+ "MessageOut",
445
380
  "MessageResponse",
446
- "MinShould",
447
- "MinShouldConditionsItem",
381
+ "MessageStatus",
382
+ "MessageStatusText",
448
383
  "MinuteLevelScheduleConfig",
449
- "Must",
450
- "Nested",
451
- "NestedCondition",
452
384
  "OAuthBrowserAuthentication",
453
385
  "OAuthTokenAuthentication",
454
386
  "OAuthType",
@@ -457,9 +389,8 @@ __all__ = [
457
389
  "OrganizationCreate",
458
390
  "OrganizationMetrics",
459
391
  "OrganizationWithRole",
460
- "PayloadField",
392
+ "PatchSubscriptionRequest",
461
393
  "QueryExpansionStrategy",
462
- "Range",
463
394
  "ResponseType",
464
395
  "RetrievalStrategy",
465
396
  "S3ConfigRequest",
@@ -472,7 +403,6 @@ __all__ = [
472
403
  "SearchRequest",
473
404
  "SearchResponse",
474
405
  "SearchStatus",
475
- "Should",
476
406
  "SingleActionCheckResponse",
477
407
  "SingleActionCheckResponseReason",
478
408
  "Source",
@@ -484,16 +414,16 @@ __all__ = [
484
414
  "SourceRateLimitResponse",
485
415
  "SourceRateLimitUpdateRequest",
486
416
  "SubscriptionInfo",
417
+ "SubscriptionWithAttemptsOut",
487
418
  "Sync",
419
+ "SyncConfig",
488
420
  "SyncCreate",
489
421
  "SyncDetails",
490
- "SyncExecutionConfig",
491
422
  "SyncJob",
492
423
  "SyncJobDetails",
493
424
  "SyncJobStatus",
494
425
  "SyncStatus",
495
426
  "SyncUpdate",
496
- "SyncWithSourceConnection",
497
427
  "Transformer",
498
428
  "TransformerCreate",
499
429
  "TransformerUpdate",
@@ -507,8 +437,6 @@ __all__ = [
507
437
  "UserOrganization",
508
438
  "ValidationError",
509
439
  "ValidationErrorLocItem",
510
- "Value",
511
- "ValuesCount",
512
440
  "__version__",
513
441
  "collections",
514
442
  "source_connections",
@@ -8,6 +8,7 @@ from ..types.collection import Collection
8
8
  from ..types.legacy_search_response import LegacySearchResponse
9
9
  from ..types.response_type import ResponseType
10
10
  from ..types.source_connection_job import SourceConnectionJob
11
+ from ..types.sync_config import SyncConfig
11
12
  from .raw_client import AsyncRawCollectionsClient, RawCollectionsClient
12
13
  from .types.search_collections_readable_id_search_post_request import SearchCollectionsReadableIdSearchPostRequest
13
14
  from .types.search_collections_readable_id_search_post_response import SearchCollectionsReadableIdSearchPostResponse
@@ -86,6 +87,7 @@ class CollectionsClient:
86
87
  *,
87
88
  name: str,
88
89
  readable_id: typing.Optional[str] = OMIT,
90
+ sync_config: typing.Optional[SyncConfig] = OMIT,
89
91
  request_options: typing.Optional[RequestOptions] = None,
90
92
  ) -> Collection:
91
93
  """
@@ -102,6 +104,9 @@ class CollectionsClient:
102
104
  readable_id : typing.Optional[str]
103
105
  URL-safe unique identifier used in API endpoints. Must contain only lowercase letters, numbers, and hyphens. If not provided, it will be automatically generated from the collection name with a random suffix for uniqueness (e.g., 'finance-data-ab123').
104
106
 
107
+ sync_config : typing.Optional[SyncConfig]
108
+ Default sync configuration for all syncs in this collection. This provides collection-level defaults that can be overridden at sync or job level.
109
+
105
110
  request_options : typing.Optional[RequestOptions]
106
111
  Request-specific configuration.
107
112
 
@@ -124,7 +129,9 @@ class CollectionsClient:
124
129
  readable_id="finance-data-reports",
125
130
  )
126
131
  """
127
- _response = self._raw_client.create(name=name, readable_id=readable_id, request_options=request_options)
132
+ _response = self._raw_client.create(
133
+ name=name, readable_id=readable_id, sync_config=sync_config, request_options=request_options
134
+ )
128
135
  return _response.data
129
136
 
130
137
  def get(self, readable_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Collection:
@@ -437,6 +444,7 @@ class AsyncCollectionsClient:
437
444
  *,
438
445
  name: str,
439
446
  readable_id: typing.Optional[str] = OMIT,
447
+ sync_config: typing.Optional[SyncConfig] = OMIT,
440
448
  request_options: typing.Optional[RequestOptions] = None,
441
449
  ) -> Collection:
442
450
  """
@@ -453,6 +461,9 @@ class AsyncCollectionsClient:
453
461
  readable_id : typing.Optional[str]
454
462
  URL-safe unique identifier used in API endpoints. Must contain only lowercase letters, numbers, and hyphens. If not provided, it will be automatically generated from the collection name with a random suffix for uniqueness (e.g., 'finance-data-ab123').
455
463
 
464
+ sync_config : typing.Optional[SyncConfig]
465
+ Default sync configuration for all syncs in this collection. This provides collection-level defaults that can be overridden at sync or job level.
466
+
456
467
  request_options : typing.Optional[RequestOptions]
457
468
  Request-specific configuration.
458
469
 
@@ -483,7 +494,9 @@ class AsyncCollectionsClient:
483
494
 
484
495
  asyncio.run(main())
485
496
  """
486
- _response = await self._raw_client.create(name=name, readable_id=readable_id, request_options=request_options)
497
+ _response = await self._raw_client.create(
498
+ name=name, readable_id=readable_id, sync_config=sync_config, request_options=request_options
499
+ )
487
500
  return _response.data
488
501
 
489
502
  async def get(self, readable_id: str, *, request_options: typing.Optional[RequestOptions] = None) -> Collection:
@@ -16,6 +16,7 @@ from ..types.http_validation_error import HttpValidationError
16
16
  from ..types.legacy_search_response import LegacySearchResponse
17
17
  from ..types.response_type import ResponseType
18
18
  from ..types.source_connection_job import SourceConnectionJob
19
+ from ..types.sync_config import SyncConfig
19
20
  from .types.search_collections_readable_id_search_post_request import SearchCollectionsReadableIdSearchPostRequest
20
21
  from .types.search_collections_readable_id_search_post_response import SearchCollectionsReadableIdSearchPostResponse
21
22
 
@@ -100,6 +101,7 @@ class RawCollectionsClient:
100
101
  *,
101
102
  name: str,
102
103
  readable_id: typing.Optional[str] = OMIT,
104
+ sync_config: typing.Optional[SyncConfig] = OMIT,
103
105
  request_options: typing.Optional[RequestOptions] = None,
104
106
  ) -> HttpResponse[Collection]:
105
107
  """
@@ -116,6 +118,9 @@ class RawCollectionsClient:
116
118
  readable_id : typing.Optional[str]
117
119
  URL-safe unique identifier used in API endpoints. Must contain only lowercase letters, numbers, and hyphens. If not provided, it will be automatically generated from the collection name with a random suffix for uniqueness (e.g., 'finance-data-ab123').
118
120
 
121
+ sync_config : typing.Optional[SyncConfig]
122
+ Default sync configuration for all syncs in this collection. This provides collection-level defaults that can be overridden at sync or job level.
123
+
119
124
  request_options : typing.Optional[RequestOptions]
120
125
  Request-specific configuration.
121
126
 
@@ -130,6 +135,9 @@ class RawCollectionsClient:
130
135
  json={
131
136
  "name": name,
132
137
  "readable_id": readable_id,
138
+ "sync_config": convert_and_respect_annotation_metadata(
139
+ object_=sync_config, annotation=SyncConfig, direction="write"
140
+ ),
133
141
  },
134
142
  headers={
135
143
  "content-type": "application/json",
@@ -549,6 +557,7 @@ class AsyncRawCollectionsClient:
549
557
  *,
550
558
  name: str,
551
559
  readable_id: typing.Optional[str] = OMIT,
560
+ sync_config: typing.Optional[SyncConfig] = OMIT,
552
561
  request_options: typing.Optional[RequestOptions] = None,
553
562
  ) -> AsyncHttpResponse[Collection]:
554
563
  """
@@ -565,6 +574,9 @@ class AsyncRawCollectionsClient:
565
574
  readable_id : typing.Optional[str]
566
575
  URL-safe unique identifier used in API endpoints. Must contain only lowercase letters, numbers, and hyphens. If not provided, it will be automatically generated from the collection name with a random suffix for uniqueness (e.g., 'finance-data-ab123').
567
576
 
577
+ sync_config : typing.Optional[SyncConfig]
578
+ Default sync configuration for all syncs in this collection. This provides collection-level defaults that can be overridden at sync or job level.
579
+
568
580
  request_options : typing.Optional[RequestOptions]
569
581
  Request-specific configuration.
570
582
 
@@ -579,6 +591,9 @@ class AsyncRawCollectionsClient:
579
591
  json={
580
592
  "name": name,
581
593
  "readable_id": readable_id,
594
+ "sync_config": convert_and_respect_annotation_metadata(
595
+ object_=sync_config, annotation=SyncConfig, direction="write"
596
+ ),
582
597
  },
583
598
  headers={
584
599
  "content-type": "application/json",
@@ -26,10 +26,10 @@ class BaseClientWrapper:
26
26
 
27
27
  def get_headers(self) -> typing.Dict[str, str]:
28
28
  headers: typing.Dict[str, str] = {
29
- "User-Agent": "airweave-sdk/v0.8.9",
29
+ "User-Agent": "airweave-sdk/v0.8.56",
30
30
  "X-Fern-Language": "Python",
31
31
  "X-Fern-SDK-Name": "airweave-sdk",
32
- "X-Fern-SDK-Version": "v0.8.9",
32
+ "X-Fern-SDK-Version": "v0.8.56",
33
33
  **(self.get_custom_headers() or {}),
34
34
  }
35
35
  if self._framework_name is not None: