@@ -86,6 +86,16 @@ class Config:
86
86
impactedScopes : List [str ] = Field (..., description = "List of streams that are impacted by the breaking change." , min_items = 1 )
87
87
88
88
89
+ class SuggestedStreams (BaseModel ):
90
+ class Config :
91
+ extra = Extra .allow
92
+
93
+ streams : Optional [List [str ]] = Field (
94
+ None ,
95
+ description = "An array of streams that this connector suggests the average user will want. SuggestedStreams not being present for the source means that all streams are suggested. An empty list here means that no streams are suggested." ,
96
+ )
97
+
98
+
89
99
class AirbyteInternal (BaseModel ):
90
100
class Config :
91
101
extra = Extra .allow
@@ -182,20 +192,9 @@ class Config:
182
192
extra = Extra .forbid
183
193
184
194
__root__ : Dict [constr (regex = r"^\d+\.\d+\.\d+$" ), VersionBreakingChange ] = Field (
185
- ..., description = "Each entry denotes a breaking change in a specific version of a connector that requires user action to upgrade."
186
- )
187
-
188
-
189
- class ConnectorReleases (BaseModel ):
190
- class Config :
191
- extra = Extra .forbid
192
-
193
- isReleaseCandidate : Optional [bool ] = Field (False , description = "Whether the release is eligible to be a release candidate." )
194
- rolloutConfiguration : Optional [RolloutConfiguration ] = None
195
- breakingChanges : ConnectorBreakingChanges
196
- migrationDocumentationUrl : Optional [AnyUrl ] = Field (
197
- None ,
198
- description = "URL to documentation on how to migrate from the previous version to the current version. Defaults to ${documentationUrl}-migrations" ,
195
+ ...,
196
+ description = "Each entry denotes a breaking change in a specific version of a connector that requires user action to upgrade." ,
197
+ title = "ConnectorBreakingChanges" ,
199
198
)
200
199
201
200
@@ -230,11 +229,82 @@ class Config:
230
229
description = "an optional flag indicating whether DBT is used in the normalization. If the flag value is NULL - DBT is not used." ,
231
230
)
232
231
allowedHosts : Optional [AllowedHosts ] = None
233
- releases : Optional [ConnectorReleases ] = None
232
+ releases : Optional [ConnectorRegistryReleases ] = None
234
233
ab_internal : Optional [AirbyteInternal ] = None
235
234
supportsRefreshes : Optional [bool ] = False
236
235
generated : Optional [GeneratedFields ] = None
237
236
packageInfo : Optional [ConnectorPackageInfo ] = None
238
- language : Optional [str ] = Field (
239
- None , description = "The language the connector is written in"
237
+ language : Optional [str ] = Field (None , description = "The language the connector is written in" )
238
+
239
+
240
+ class ConnectorRegistryReleases (BaseModel ):
241
+ class Config :
242
+ extra = Extra .forbid
243
+
244
+ releaseCandidates : Optional [ConnectorReleaseCandidates ] = None
245
+ rolloutConfiguration : Optional [RolloutConfiguration ] = None
246
+ breakingChanges : Optional [ConnectorBreakingChanges ] = None
247
+ migrationDocumentationUrl : Optional [AnyUrl ] = Field (
248
+ None ,
249
+ description = "URL to documentation on how to migrate from the previous version to the current version. Defaults to ${documentationUrl}-migrations" ,
250
+ )
251
+
252
+
253
+ class ConnectorReleaseCandidates (BaseModel ):
254
+ class Config :
255
+ extra = Extra .forbid
256
+
257
+ __root__ : Dict [constr (regex = r"^\d+\.\d+\.\d+$" ), VersionReleaseCandidate ] = Field (
258
+ ..., description = "Each entry denotes a release candidate version of a connector."
259
+ )
260
+
261
+
262
+ class VersionReleaseCandidate (BaseModel ):
263
+ class Config :
264
+ extra = Extra .forbid
265
+
266
+ __root__ : Union [ConnectorRegistrySourceDefinition , ConnectorRegistryDestinationDefinition ] = Field (
267
+ ..., description = "Contains information about a release candidate version of a connector."
268
+ )
269
+
270
+
271
+ class ConnectorRegistrySourceDefinition (BaseModel ):
272
+ class Config :
273
+ extra = Extra .allow
274
+
275
+ sourceDefinitionId : UUID
276
+ name : str
277
+ dockerRepository : str
278
+ dockerImageTag : str
279
+ documentationUrl : str
280
+ icon : Optional [str ] = None
281
+ iconUrl : Optional [str ] = None
282
+ sourceType : Optional [Literal ["api" , "file" , "database" , "custom" ]] = None
283
+ spec : Dict [str , Any ]
284
+ tombstone : Optional [bool ] = Field (
285
+ False , description = "if false, the configuration is active. if true, then this configuration is permanently off."
240
286
)
287
+ public : Optional [bool ] = Field (False , description = "true if this connector definition is available to all workspaces" )
288
+ custom : Optional [bool ] = Field (False , description = "whether this is a custom connector definition" )
289
+ releaseStage : Optional [ReleaseStage ] = None
290
+ supportLevel : Optional [SupportLevel ] = None
291
+ releaseDate : Optional [date ] = Field (None , description = "The date when this connector was first released, in yyyy-mm-dd format." )
292
+ resourceRequirements : Optional [ActorDefinitionResourceRequirements ] = None
293
+ protocolVersion : Optional [str ] = Field (None , description = "the Airbyte Protocol version supported by the connector" )
294
+ allowedHosts : Optional [AllowedHosts ] = None
295
+ suggestedStreams : Optional [SuggestedStreams ] = None
296
+ maxSecondsBetweenMessages : Optional [int ] = Field (
297
+ None , description = "Number of seconds allowed between 2 airbyte protocol messages. The source will timeout if this delay is reach"
298
+ )
299
+ erdUrl : Optional [str ] = Field (None , description = "The URL where you can visualize the ERD" )
300
+ releases : Optional [ConnectorRegistryReleases ] = None
301
+ ab_internal : Optional [AirbyteInternal ] = None
302
+ generated : Optional [GeneratedFields ] = None
303
+ packageInfo : Optional [ConnectorPackageInfo ] = None
304
+ language : Optional [str ] = Field (None , description = "The language the connector is written in" )
305
+
306
+
307
+ ConnectorRegistryDestinationDefinition .update_forward_refs ()
308
+ ConnectorRegistryReleases .update_forward_refs ()
309
+ ConnectorReleaseCandidates .update_forward_refs ()
310
+ VersionReleaseCandidate .update_forward_refs ()
0 commit comments