airbyte-internal-ops 0.4.2__py3-none-any.whl → 0.5.1__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.
- {airbyte_internal_ops-0.4.2.dist-info → airbyte_internal_ops-0.5.1.dist-info}/METADATA +2 -1
- {airbyte_internal_ops-0.4.2.dist-info → airbyte_internal_ops-0.5.1.dist-info}/RECORD +21 -129
- airbyte_ops_mcp/cli/cloud.py +31 -2
- airbyte_ops_mcp/cloud_admin/api_client.py +506 -33
- airbyte_ops_mcp/cloud_admin/models.py +56 -0
- airbyte_ops_mcp/constants.py +58 -0
- airbyte_ops_mcp/{_legacy/airbyte_ci/metadata_service/docker_hub.py → docker_hub.py} +16 -10
- airbyte_ops_mcp/mcp/cloud_connector_versions.py +491 -10
- airbyte_ops_mcp/mcp/prerelease.py +5 -44
- airbyte_ops_mcp/mcp/prod_db_queries.py +128 -4
- airbyte_ops_mcp/mcp/regression_tests.py +10 -5
- airbyte_ops_mcp/{_legacy/airbyte_ci/metadata_service/validators/metadata_validator.py → metadata_validator.py} +18 -12
- airbyte_ops_mcp/prod_db_access/queries.py +51 -0
- airbyte_ops_mcp/prod_db_access/sql.py +76 -0
- airbyte_ops_mcp/regression_tests/ci_output.py +8 -4
- airbyte_ops_mcp/regression_tests/connection_fetcher.py +16 -5
- airbyte_ops_mcp/regression_tests/http_metrics.py +21 -2
- airbyte_ops_mcp/regression_tests/models.py +7 -1
- airbyte_ops_mcp/telemetry.py +162 -0
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/.gitignore +0 -1
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/README.md +0 -420
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/__init__.py +0 -2
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/commons/__init__.py +0 -1
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/commons/backends/__init__.py +0 -8
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/commons/backends/base_backend.py +0 -16
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/commons/backends/duckdb_backend.py +0 -87
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/commons/backends/file_backend.py +0 -165
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/commons/connection_objects_retrieval.py +0 -377
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/commons/connector_runner.py +0 -247
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/commons/errors.py +0 -7
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/commons/evaluation_modes.py +0 -25
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/commons/hacks.py +0 -23
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/commons/json_schema_helper.py +0 -384
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/commons/mitm_addons.py +0 -37
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/commons/models.py +0 -595
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/commons/proxy.py +0 -207
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/commons/secret_access.py +0 -47
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/commons/segment_tracking.py +0 -45
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/commons/utils.py +0 -214
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/conftest.py.disabled +0 -751
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/consts.py +0 -4
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/poetry.lock +0 -4480
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/pytest.ini +0 -9
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/regression_tests/__init__.py +0 -1
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/regression_tests/test_check.py +0 -61
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/regression_tests/test_discover.py +0 -117
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/regression_tests/test_read.py +0 -627
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/regression_tests/test_spec.py +0 -43
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/report.py +0 -542
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/stash_keys.py +0 -38
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/templates/__init__.py +0 -0
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/templates/private_details.html.j2 +0 -305
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/templates/report.html.j2 +0 -515
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/utils.py +0 -187
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/validation_tests/__init__.py +0 -0
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/validation_tests/test_check.py +0 -61
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/validation_tests/test_discover.py +0 -217
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/validation_tests/test_read.py +0 -177
- airbyte_ops_mcp/_legacy/airbyte_ci/connector_live_tests/validation_tests/test_spec.py +0 -631
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/README.md +0 -91
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/bin/bundle-schemas.js +0 -48
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/bin/generate-metadata-models.sh +0 -36
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/ActorDefinitionResourceRequirements.py +0 -54
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/AirbyteInternal.py +0 -22
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/AllowedHosts.py +0 -18
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/ConnectorBreakingChanges.py +0 -65
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/ConnectorBuildOptions.py +0 -15
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/ConnectorIPCOptions.py +0 -25
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/ConnectorMetadataDefinitionV0.json +0 -897
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/ConnectorMetadataDefinitionV0.py +0 -478
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/ConnectorMetrics.py +0 -24
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/ConnectorPackageInfo.py +0 -12
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/ConnectorRegistryDestinationDefinition.py +0 -407
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/ConnectorRegistryReleases.py +0 -406
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/ConnectorRegistrySourceDefinition.py +0 -407
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/ConnectorRegistryV0.py +0 -413
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/ConnectorReleases.py +0 -98
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/ConnectorTestSuiteOptions.py +0 -58
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/GeneratedFields.py +0 -62
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/GitInfo.py +0 -31
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/JobType.py +0 -23
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/NormalizationDestinationDefinitionConfig.py +0 -24
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/RegistryOverrides.py +0 -111
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/ReleaseStage.py +0 -15
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/RemoteRegistries.py +0 -23
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/ResourceRequirements.py +0 -18
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/RolloutConfiguration.py +0 -29
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/Secret.py +0 -34
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/SecretStore.py +0 -22
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/SourceFileInfo.py +0 -16
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/SuggestedStreams.py +0 -18
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/SupportLevel.py +0 -15
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/TestConnections.py +0 -14
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/__init__.py +0 -31
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/generated/airbyte-connector-metadata-schema.json +0 -0
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/ActorDefinitionResourceRequirements.yaml +0 -30
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/AirbyteInternal.yaml +0 -32
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/AllowedHosts.yaml +0 -13
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/ConnectorBreakingChanges.yaml +0 -65
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/ConnectorBuildOptions.yaml +0 -10
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/ConnectorIPCOptions.yaml +0 -29
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/ConnectorMetadataDefinitionV0.yaml +0 -172
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/ConnectorMetrics.yaml +0 -30
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/ConnectorPackageInfo.yaml +0 -9
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/ConnectorRegistryDestinationDefinition.yaml +0 -90
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/ConnectorRegistryReleases.yaml +0 -35
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/ConnectorRegistrySourceDefinition.yaml +0 -92
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/ConnectorRegistryV0.yaml +0 -18
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/ConnectorReleases.yaml +0 -16
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/ConnectorTestSuiteOptions.yaml +0 -28
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/GeneratedFields.yaml +0 -16
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/GitInfo.yaml +0 -21
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/JobType.yaml +0 -14
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/NormalizationDestinationDefinitionConfig.yaml +0 -21
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/RegistryOverrides.yaml +0 -38
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/ReleaseStage.yaml +0 -11
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/RemoteRegistries.yaml +0 -25
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/ResourceRequirements.yaml +0 -16
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/RolloutConfiguration.yaml +0 -29
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/Secret.yaml +0 -19
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/SecretStore.yaml +0 -16
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/SourceFileInfo.yaml +0 -17
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/SuggestedStreams.yaml +0 -13
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/SupportLevel.yaml +0 -10
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/models/TestConnections.yaml +0 -17
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/package-lock.json +0 -62
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/package.json +0 -12
- airbyte_ops_mcp/_legacy/airbyte_ci/metadata_models/transform.py +0 -71
- {airbyte_internal_ops-0.4.2.dist-info → airbyte_internal_ops-0.5.1.dist-info}/WHEEL +0 -0
- {airbyte_internal_ops-0.4.2.dist-info → airbyte_internal_ops-0.5.1.dist-info}/entry_points.txt +0 -0
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"$schema": http://json-schema.org/draft-07/schema#
|
|
3
|
-
"$id": https://github.com/airbytehq/airbyte/airbyte-ci/connectors/metadata_service/lib/metadata_service/models/src/RolloutConfiguration.yaml
|
|
4
|
-
title: RolloutConfiguration
|
|
5
|
-
description: configuration for the rollout of a connector
|
|
6
|
-
type: object
|
|
7
|
-
additionalProperties: false
|
|
8
|
-
properties:
|
|
9
|
-
enableProgressiveRollout:
|
|
10
|
-
type: boolean
|
|
11
|
-
default: false
|
|
12
|
-
description: Whether to enable progressive rollout for the connector.
|
|
13
|
-
initialPercentage:
|
|
14
|
-
type: integer
|
|
15
|
-
minimum: 0
|
|
16
|
-
maximum: 100
|
|
17
|
-
default: 0
|
|
18
|
-
description: The percentage of users that should receive the new version initially.
|
|
19
|
-
maxPercentage:
|
|
20
|
-
type: integer
|
|
21
|
-
minimum: 0
|
|
22
|
-
maximum: 100
|
|
23
|
-
default: 50
|
|
24
|
-
description: The percentage of users who should receive the release candidate during the test phase before full rollout.
|
|
25
|
-
advanceDelayMinutes:
|
|
26
|
-
type: integer
|
|
27
|
-
minimum: 10
|
|
28
|
-
default: 10
|
|
29
|
-
description: The number of minutes to wait before advancing the rollout percentage.
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"$schema": http://json-schema.org/draft-07/schema#
|
|
3
|
-
"$id": https://github.com/airbytehq/airbyte/airbyte-ci/connectors/metadata_service/lib/metadata_service/models/src/Secret.yaml
|
|
4
|
-
title: Secret
|
|
5
|
-
description: An object describing a secret's metadata
|
|
6
|
-
type: object
|
|
7
|
-
required:
|
|
8
|
-
- name
|
|
9
|
-
- secretStore
|
|
10
|
-
additionalProperties: false
|
|
11
|
-
properties:
|
|
12
|
-
name:
|
|
13
|
-
type: string
|
|
14
|
-
description: "The secret name in the secret store"
|
|
15
|
-
fileName:
|
|
16
|
-
type: string
|
|
17
|
-
description: "The name of the file to which the secret value would be persisted"
|
|
18
|
-
secretStore:
|
|
19
|
-
"$ref": SecretStore.yaml
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"$schema": http://json-schema.org/draft-07/schema#
|
|
3
|
-
"$id": https://github.com/airbytehq/airbyte/airbyte-ci/connectors/metadata_service/lib/metadata_service/models/src/SecretStore.yaml
|
|
4
|
-
title: SecretStore
|
|
5
|
-
description: An object describing a secret store metadata
|
|
6
|
-
type: object
|
|
7
|
-
additionalProperties: false
|
|
8
|
-
properties:
|
|
9
|
-
alias:
|
|
10
|
-
type: string
|
|
11
|
-
description: "The alias of the secret store which can map to its actual secret address"
|
|
12
|
-
type:
|
|
13
|
-
type: string
|
|
14
|
-
description: "The type of the secret store"
|
|
15
|
-
enum:
|
|
16
|
-
- "GSM"
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"$schema": http://json-schema.org/draft-07/schema#
|
|
3
|
-
"$id": https://github.com/airbytehq/airbyte/airbyte-ci/connectors_ci/metadata_service/lib/models/src/SourceFileInfo.yaml
|
|
4
|
-
title: SourceFileInfo
|
|
5
|
-
description: Information about the source file that generated the registry entry
|
|
6
|
-
type: object
|
|
7
|
-
properties:
|
|
8
|
-
metadata_etag:
|
|
9
|
-
type: string
|
|
10
|
-
metadata_file_path:
|
|
11
|
-
type: string
|
|
12
|
-
metadata_bucket_name:
|
|
13
|
-
type: string
|
|
14
|
-
metadata_last_modified:
|
|
15
|
-
type: string
|
|
16
|
-
registry_entry_generated_at:
|
|
17
|
-
type: string
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"$schema": http://json-schema.org/draft-07/schema#
|
|
3
|
-
"$id": https://github.com/airbytehq/airbyte/airbyte-ci/connectors/metadata_service/lib/metadata_service/models/src/SuggestedStreams.yaml
|
|
4
|
-
title: SuggestedStreams
|
|
5
|
-
description: A source's suggested streams. These will be suggested by default for new connections using this source. Otherwise, all streams will be selected. This is useful for when your source has a lot of streams, but the average user will only want a subset of them synced.
|
|
6
|
-
type: object
|
|
7
|
-
additionalProperties: true
|
|
8
|
-
properties:
|
|
9
|
-
streams:
|
|
10
|
-
type: array
|
|
11
|
-
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.
|
|
12
|
-
items:
|
|
13
|
-
type: string
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"$schema": http://json-schema.org/draft-07/schema#
|
|
3
|
-
"$id": https://github.com/airbytehq/airbyte/airbyte-ci/connectors_ci/metadata_service/lib/models/src/SupportLevel.yaml
|
|
4
|
-
title: SupportLevel
|
|
5
|
-
description: enum that describes a connector's release stage
|
|
6
|
-
type: string
|
|
7
|
-
enum:
|
|
8
|
-
- community
|
|
9
|
-
- certified
|
|
10
|
-
- archived
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
"$schema": http://json-schema.org/draft-07/schema#
|
|
3
|
-
"$id": https://github.com/airbytehq/airbyte/airbyte-ci/connectors/metadata_service/lib/metadata_service/models/src/TestConnections.yaml
|
|
4
|
-
title: TestConnections
|
|
5
|
-
description: List of sandbox cloud connections that tests can be run against
|
|
6
|
-
type: object
|
|
7
|
-
required:
|
|
8
|
-
- name
|
|
9
|
-
- id
|
|
10
|
-
additionalProperties: false
|
|
11
|
-
properties:
|
|
12
|
-
name:
|
|
13
|
-
type: string
|
|
14
|
-
description: "The connection name"
|
|
15
|
-
id:
|
|
16
|
-
type: string
|
|
17
|
-
description: "The connection ID"
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "metadata-service-schema-tools",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"lockfileVersion": 3,
|
|
5
|
-
"requires": true,
|
|
6
|
-
"packages": {
|
|
7
|
-
"": {
|
|
8
|
-
"name": "metadata-service-schema-tools",
|
|
9
|
-
"version": "1.0.0",
|
|
10
|
-
"dependencies": {
|
|
11
|
-
"@apidevtools/json-schema-ref-parser": "^11.0.0"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
"node_modules/@apidevtools/json-schema-ref-parser": {
|
|
15
|
-
"version": "11.9.3",
|
|
16
|
-
"resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-11.9.3.tgz",
|
|
17
|
-
"integrity": "sha512-60vepv88RwcJtSHrD6MjIL6Ta3SOYbgfnkHb+ppAVK+o9mXprRtulx7VlRl3lN3bbvysAfCS7WMVfhUYemB0IQ==",
|
|
18
|
-
"license": "MIT",
|
|
19
|
-
"dependencies": {
|
|
20
|
-
"@jsdevtools/ono": "^7.1.3",
|
|
21
|
-
"@types/json-schema": "^7.0.15",
|
|
22
|
-
"js-yaml": "^4.1.0"
|
|
23
|
-
},
|
|
24
|
-
"engines": {
|
|
25
|
-
"node": ">= 16"
|
|
26
|
-
},
|
|
27
|
-
"funding": {
|
|
28
|
-
"url": "https://github.com/sponsors/philsturgeon"
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"node_modules/@jsdevtools/ono": {
|
|
32
|
-
"version": "7.1.3",
|
|
33
|
-
"resolved": "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz",
|
|
34
|
-
"integrity": "sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==",
|
|
35
|
-
"license": "MIT"
|
|
36
|
-
},
|
|
37
|
-
"node_modules/@types/json-schema": {
|
|
38
|
-
"version": "7.0.15",
|
|
39
|
-
"resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",
|
|
40
|
-
"integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",
|
|
41
|
-
"license": "MIT"
|
|
42
|
-
},
|
|
43
|
-
"node_modules/argparse": {
|
|
44
|
-
"version": "2.0.1",
|
|
45
|
-
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
|
|
46
|
-
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
|
|
47
|
-
"license": "Python-2.0"
|
|
48
|
-
},
|
|
49
|
-
"node_modules/js-yaml": {
|
|
50
|
-
"version": "4.1.0",
|
|
51
|
-
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",
|
|
52
|
-
"integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",
|
|
53
|
-
"license": "MIT",
|
|
54
|
-
"dependencies": {
|
|
55
|
-
"argparse": "^2.0.1"
|
|
56
|
-
},
|
|
57
|
-
"bin": {
|
|
58
|
-
"js-yaml": "bin/js-yaml.js"
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "metadata-service-schema-tools",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"description": "Schema bundling tools for Airbyte metadata service",
|
|
5
|
-
"private": true,
|
|
6
|
-
"scripts": {
|
|
7
|
-
"bundle-schemas": "node bin/bundle-schemas.js"
|
|
8
|
-
},
|
|
9
|
-
"dependencies": {
|
|
10
|
-
"@apidevtools/json-schema-ref-parser": "^11.0.0"
|
|
11
|
-
}
|
|
12
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
#
|
|
2
|
-
# Copyright (c) 2023 Airbyte, Inc., all rights reserved.
|
|
3
|
-
#
|
|
4
|
-
|
|
5
|
-
import json
|
|
6
|
-
|
|
7
|
-
from pydantic import BaseModel
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
def _apply_default_pydantic_kwargs(kwargs: dict) -> dict:
|
|
11
|
-
"""A helper function to apply default kwargs to pydantic models.
|
|
12
|
-
|
|
13
|
-
Args:
|
|
14
|
-
kwargs (dict): the kwargs to apply
|
|
15
|
-
|
|
16
|
-
Returns:
|
|
17
|
-
dict: the kwargs with defaults applied
|
|
18
|
-
"""
|
|
19
|
-
default_kwargs = {
|
|
20
|
-
"by_alias": True, # Ensure that the original field name from the jsonschema is used in the event it begins with an underscore (e.g. ab_internal)
|
|
21
|
-
"exclude_none": True, # Exclude fields that are None
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
return {**default_kwargs, **kwargs}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
def to_json_sanitized_dict(pydantic_model_obj: BaseModel, **kwargs) -> dict:
|
|
28
|
-
"""A helper function to convert a pydantic model to a sanitized dict.
|
|
29
|
-
|
|
30
|
-
Without this pydantic dictionary may contain values that are not JSON serializable.
|
|
31
|
-
|
|
32
|
-
Args:
|
|
33
|
-
pydantic_model_obj (BaseModel): a pydantic model
|
|
34
|
-
|
|
35
|
-
Returns:
|
|
36
|
-
dict: a sanitized dictionary
|
|
37
|
-
"""
|
|
38
|
-
|
|
39
|
-
return json.loads(to_json(pydantic_model_obj, **kwargs))
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
def to_json(pydantic_model_obj: BaseModel, **kwargs) -> str:
|
|
43
|
-
"""A helper function to convert a pydantic model to a json string.
|
|
44
|
-
|
|
45
|
-
Without this pydantic dictionary may contain values that are not JSON serializable.
|
|
46
|
-
|
|
47
|
-
Args:
|
|
48
|
-
pydantic_model_obj (BaseModel): a pydantic model
|
|
49
|
-
|
|
50
|
-
Returns:
|
|
51
|
-
str: a json string
|
|
52
|
-
"""
|
|
53
|
-
kwargs = _apply_default_pydantic_kwargs(kwargs)
|
|
54
|
-
|
|
55
|
-
return pydantic_model_obj.json(**kwargs)
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
def to_dict(pydantic_model_obj: BaseModel, **kwargs) -> dict:
|
|
59
|
-
"""A helper function to convert a pydantic model to a dict.
|
|
60
|
-
|
|
61
|
-
Without this pydantic dictionary may contain values that are not JSON serializable.
|
|
62
|
-
|
|
63
|
-
Args:
|
|
64
|
-
pydantic_model_obj (BaseModel): a pydantic model
|
|
65
|
-
|
|
66
|
-
Returns:
|
|
67
|
-
dict: a dict
|
|
68
|
-
"""
|
|
69
|
-
kwargs = _apply_default_pydantic_kwargs(kwargs)
|
|
70
|
-
|
|
71
|
-
return pydantic_model_obj.dict(**kwargs)
|
|
File without changes
|
{airbyte_internal_ops-0.4.2.dist-info → airbyte_internal_ops-0.5.1.dist-info}/entry_points.txt
RENAMED
|
File without changes
|